UNPKG

290 kBJavaScriptView Raw
1(function webpackUniversalModuleDefinition(root, factory) {
2 if(typeof exports === 'object' && typeof module === 'object')
3 module.exports = factory(require("react"), require("react-dom"));
4 else if(typeof define === 'function' && define.amd)
5 define(["react", "react-dom"], factory);
6 else if(typeof exports === 'object')
7 exports["rc-banner-anim"] = factory(require("react"), require("react-dom"));
8 else
9 root["rc-banner-anim"] = factory(root["React"], root["ReactDOM"]);
10})(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE_1__, __WEBPACK_EXTERNAL_MODULE_28__) {
11return /******/ (function(modules) { // webpackBootstrap
12/******/ // The module cache
13/******/ var installedModules = {};
14/******/
15/******/ // The require function
16/******/ function __webpack_require__(moduleId) {
17/******/
18/******/ // Check if module is in cache
19/******/ if(installedModules[moduleId]) {
20/******/ return installedModules[moduleId].exports;
21/******/ }
22/******/ // Create a new module (and put it into the cache)
23/******/ var module = installedModules[moduleId] = {
24/******/ i: moduleId,
25/******/ l: false,
26/******/ exports: {}
27/******/ };
28/******/
29/******/ // Execute the module function
30/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
31/******/
32/******/ // Flag the module as loaded
33/******/ module.l = true;
34/******/
35/******/ // Return the exports of the module
36/******/ return module.exports;
37/******/ }
38/******/
39/******/
40/******/ // expose the modules object (__webpack_modules__)
41/******/ __webpack_require__.m = modules;
42/******/
43/******/ // expose the module cache
44/******/ __webpack_require__.c = installedModules;
45/******/
46/******/ // define getter function for harmony exports
47/******/ __webpack_require__.d = function(exports, name, getter) {
48/******/ if(!__webpack_require__.o(exports, name)) {
49/******/ Object.defineProperty(exports, name, {
50/******/ configurable: false,
51/******/ enumerable: true,
52/******/ get: getter
53/******/ });
54/******/ }
55/******/ };
56/******/
57/******/ // getDefaultExport function for compatibility with non-harmony modules
58/******/ __webpack_require__.n = function(module) {
59/******/ var getter = module && module.__esModule ?
60/******/ function getDefault() { return module['default']; } :
61/******/ function getModuleExports() { return module; };
62/******/ __webpack_require__.d(getter, 'a', getter);
63/******/ return getter;
64/******/ };
65/******/
66/******/ // Object.prototype.hasOwnProperty.call
67/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
68/******/
69/******/ // __webpack_public_path__
70/******/ __webpack_require__.p = "";
71/******/
72/******/ // Load entry module and return exports
73/******/ return __webpack_require__(__webpack_require__.s = 67);
74/******/ })
75/************************************************************************/
76/******/ ([
77/* 0 */
78/***/ (function(module, exports, __webpack_require__) {
79
80"use strict";
81
82
83exports.__esModule = true;
84
85var _assign = __webpack_require__(71);
86
87var _assign2 = _interopRequireDefault(_assign);
88
89function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
90
91exports.default = _assign2.default || function (target) {
92 for (var i = 1; i < arguments.length; i++) {
93 var source = arguments[i];
94
95 for (var key in source) {
96 if (Object.prototype.hasOwnProperty.call(source, key)) {
97 target[key] = source[key];
98 }
99 }
100 }
101
102 return target;
103};
104
105/***/ }),
106/* 1 */
107/***/ (function(module, exports) {
108
109module.exports = __WEBPACK_EXTERNAL_MODULE_1__;
110
111/***/ }),
112/* 2 */
113/***/ (function(module, exports) {
114
115// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
116var global = module.exports = typeof window != 'undefined' && window.Math == Math
117 ? window : typeof self != 'undefined' && self.Math == Math ? self
118 // eslint-disable-next-line no-new-func
119 : Function('return this')();
120if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
121
122
123/***/ }),
124/* 3 */
125/***/ (function(module, exports) {
126
127var core = module.exports = { version: '2.6.9' };
128if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
129
130
131/***/ }),
132/* 4 */
133/***/ (function(module, exports, __webpack_require__) {
134
135// Thank's IE8 for his funny defineProperty
136module.exports = !__webpack_require__(20)(function () {
137 return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
138});
139
140
141/***/ }),
142/* 5 */
143/***/ (function(module, exports, __webpack_require__) {
144
145/* WEBPACK VAR INJECTION */(function(process) {/**
146 * Copyright (c) 2013-present, Facebook, Inc.
147 *
148 * This source code is licensed under the MIT license found in the
149 * LICENSE file in the root directory of this source tree.
150 */
151
152if (process.env.NODE_ENV !== 'production') {
153 var ReactIs = __webpack_require__(59);
154
155 // By explicitly using `prop-types` you are opting into new development behavior.
156 // http://fb.me/prop-types-in-prod
157 var throwOnDirectAccess = true;
158 module.exports = __webpack_require__(113)(ReactIs.isElement, throwOnDirectAccess);
159} else {
160 // By explicitly using `prop-types` you are opting into new production behavior.
161 // http://fb.me/prop-types-in-prod
162 module.exports = __webpack_require__(116)();
163}
164
165/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(17)))
166
167/***/ }),
168/* 6 */
169/***/ (function(module, exports, __webpack_require__) {
170
171var anObject = __webpack_require__(19);
172var IE8_DOM_DEFINE = __webpack_require__(49);
173var toPrimitive = __webpack_require__(31);
174var dP = Object.defineProperty;
175
176exports.f = __webpack_require__(4) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
177 anObject(O);
178 P = toPrimitive(P, true);
179 anObject(Attributes);
180 if (IE8_DOM_DEFINE) try {
181 return dP(O, P, Attributes);
182 } catch (e) { /* empty */ }
183 if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
184 if ('value' in Attributes) O[P] = Attributes.value;
185 return O;
186};
187
188
189/***/ }),
190/* 7 */
191/***/ (function(module, exports) {
192
193var hasOwnProperty = {}.hasOwnProperty;
194module.exports = function (it, key) {
195 return hasOwnProperty.call(it, key);
196};
197
198
199/***/ }),
200/* 8 */
201/***/ (function(module, exports, __webpack_require__) {
202
203"use strict";
204
205
206exports.__esModule = true;
207
208exports.default = function (instance, Constructor) {
209 if (!(instance instanceof Constructor)) {
210 throw new TypeError("Cannot call a class as a function");
211 }
212};
213
214/***/ }),
215/* 9 */
216/***/ (function(module, exports, __webpack_require__) {
217
218"use strict";
219
220
221exports.__esModule = true;
222
223var _typeof2 = __webpack_require__(54);
224
225var _typeof3 = _interopRequireDefault(_typeof2);
226
227function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
228
229exports.default = function (self, call) {
230 if (!self) {
231 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
232 }
233
234 return call && ((typeof call === "undefined" ? "undefined" : (0, _typeof3.default)(call)) === "object" || typeof call === "function") ? call : self;
235};
236
237/***/ }),
238/* 10 */
239/***/ (function(module, exports, __webpack_require__) {
240
241"use strict";
242
243
244exports.__esModule = true;
245
246var _defineProperty = __webpack_require__(101);
247
248var _defineProperty2 = _interopRequireDefault(_defineProperty);
249
250function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
251
252exports.default = function () {
253 function defineProperties(target, props) {
254 for (var i = 0; i < props.length; i++) {
255 var descriptor = props[i];
256 descriptor.enumerable = descriptor.enumerable || false;
257 descriptor.configurable = true;
258 if ("value" in descriptor) descriptor.writable = true;
259 (0, _defineProperty2.default)(target, descriptor.key, descriptor);
260 }
261 }
262
263 return function (Constructor, protoProps, staticProps) {
264 if (protoProps) defineProperties(Constructor.prototype, protoProps);
265 if (staticProps) defineProperties(Constructor, staticProps);
266 return Constructor;
267 };
268}();
269
270/***/ }),
271/* 11 */
272/***/ (function(module, exports, __webpack_require__) {
273
274"use strict";
275
276
277exports.__esModule = true;
278
279var _setPrototypeOf = __webpack_require__(104);
280
281var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);
282
283var _create = __webpack_require__(108);
284
285var _create2 = _interopRequireDefault(_create);
286
287var _typeof2 = __webpack_require__(54);
288
289var _typeof3 = _interopRequireDefault(_typeof2);
290
291function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
292
293exports.default = function (subClass, superClass) {
294 if (typeof superClass !== "function" && superClass !== null) {
295 throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : (0, _typeof3.default)(superClass)));
296 }
297
298 subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {
299 constructor: {
300 value: subClass,
301 enumerable: false,
302 writable: true,
303 configurable: true
304 }
305 });
306 if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;
307};
308
309/***/ }),
310/* 12 */
311/***/ (function(module, exports, __webpack_require__) {
312
313var global = __webpack_require__(2);
314var core = __webpack_require__(3);
315var ctx = __webpack_require__(48);
316var hide = __webpack_require__(13);
317var has = __webpack_require__(7);
318var PROTOTYPE = 'prototype';
319
320var $export = function (type, name, source) {
321 var IS_FORCED = type & $export.F;
322 var IS_GLOBAL = type & $export.G;
323 var IS_STATIC = type & $export.S;
324 var IS_PROTO = type & $export.P;
325 var IS_BIND = type & $export.B;
326 var IS_WRAP = type & $export.W;
327 var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
328 var expProto = exports[PROTOTYPE];
329 var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
330 var key, own, out;
331 if (IS_GLOBAL) source = name;
332 for (key in source) {
333 // contains in native
334 own = !IS_FORCED && target && target[key] !== undefined;
335 if (own && has(exports, key)) continue;
336 // export native or passed
337 out = own ? target[key] : source[key];
338 // prevent global pollution for namespaces
339 exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
340 // bind timers to global for call from export context
341 : IS_BIND && own ? ctx(out, global)
342 // wrap global constructors for prevent change them in library
343 : IS_WRAP && target[key] == out ? (function (C) {
344 var F = function (a, b, c) {
345 if (this instanceof C) {
346 switch (arguments.length) {
347 case 0: return new C();
348 case 1: return new C(a);
349 case 2: return new C(a, b);
350 } return new C(a, b, c);
351 } return C.apply(this, arguments);
352 };
353 F[PROTOTYPE] = C[PROTOTYPE];
354 return F;
355 // make static versions for prototype methods
356 })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
357 // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
358 if (IS_PROTO) {
359 (exports.virtual || (exports.virtual = {}))[key] = out;
360 // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
361 if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
362 }
363 }
364};
365// type bitmap
366$export.F = 1; // forced
367$export.G = 2; // global
368$export.S = 4; // static
369$export.P = 8; // proto
370$export.B = 16; // bind
371$export.W = 32; // wrap
372$export.U = 64; // safe
373$export.R = 128; // real proto method for `library`
374module.exports = $export;
375
376
377/***/ }),
378/* 13 */
379/***/ (function(module, exports, __webpack_require__) {
380
381var dP = __webpack_require__(6);
382var createDesc = __webpack_require__(23);
383module.exports = __webpack_require__(4) ? function (object, key, value) {
384 return dP.f(object, key, createDesc(1, value));
385} : function (object, key, value) {
386 object[key] = value;
387 return object;
388};
389
390
391/***/ }),
392/* 14 */
393/***/ (function(module, exports) {
394
395module.exports = function (it) {
396 return typeof it === 'object' ? it !== null : typeof it === 'function';
397};
398
399
400/***/ }),
401/* 15 */
402/***/ (function(module, exports, __webpack_require__) {
403
404// to indexed object, toObject with fallback for non-array-like ES3 strings
405var IObject = __webpack_require__(52);
406var defined = __webpack_require__(32);
407module.exports = function (it) {
408 return IObject(defined(it));
409};
410
411
412/***/ }),
413/* 16 */
414/***/ (function(module, exports, __webpack_require__) {
415
416var store = __webpack_require__(35)('wks');
417var uid = __webpack_require__(26);
418var Symbol = __webpack_require__(2).Symbol;
419var USE_SYMBOL = typeof Symbol == 'function';
420
421var $exports = module.exports = function (name) {
422 return store[name] || (store[name] =
423 USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
424};
425
426$exports.store = store;
427
428
429/***/ }),
430/* 17 */
431/***/ (function(module, exports) {
432
433// shim for using process in browser
434var process = module.exports = {};
435
436// cached from whatever global is present so that test runners that stub it
437// don't break things. But we need to wrap it in a try catch in case it is
438// wrapped in strict mode code which doesn't define any globals. It's inside a
439// function because try/catches deoptimize in certain engines.
440
441var cachedSetTimeout;
442var cachedClearTimeout;
443
444function defaultSetTimout() {
445 throw new Error('setTimeout has not been defined');
446}
447function defaultClearTimeout () {
448 throw new Error('clearTimeout has not been defined');
449}
450(function () {
451 try {
452 if (typeof setTimeout === 'function') {
453 cachedSetTimeout = setTimeout;
454 } else {
455 cachedSetTimeout = defaultSetTimout;
456 }
457 } catch (e) {
458 cachedSetTimeout = defaultSetTimout;
459 }
460 try {
461 if (typeof clearTimeout === 'function') {
462 cachedClearTimeout = clearTimeout;
463 } else {
464 cachedClearTimeout = defaultClearTimeout;
465 }
466 } catch (e) {
467 cachedClearTimeout = defaultClearTimeout;
468 }
469} ())
470function runTimeout(fun) {
471 if (cachedSetTimeout === setTimeout) {
472 //normal enviroments in sane situations
473 return setTimeout(fun, 0);
474 }
475 // if setTimeout wasn't available but was latter defined
476 if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
477 cachedSetTimeout = setTimeout;
478 return setTimeout(fun, 0);
479 }
480 try {
481 // when when somebody has screwed with setTimeout but no I.E. maddness
482 return cachedSetTimeout(fun, 0);
483 } catch(e){
484 try {
485 // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
486 return cachedSetTimeout.call(null, fun, 0);
487 } catch(e){
488 // 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
489 return cachedSetTimeout.call(this, fun, 0);
490 }
491 }
492
493
494}
495function runClearTimeout(marker) {
496 if (cachedClearTimeout === clearTimeout) {
497 //normal enviroments in sane situations
498 return clearTimeout(marker);
499 }
500 // if clearTimeout wasn't available but was latter defined
501 if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
502 cachedClearTimeout = clearTimeout;
503 return clearTimeout(marker);
504 }
505 try {
506 // when when somebody has screwed with setTimeout but no I.E. maddness
507 return cachedClearTimeout(marker);
508 } catch (e){
509 try {
510 // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
511 return cachedClearTimeout.call(null, marker);
512 } catch (e){
513 // 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.
514 // Some versions of I.E. have different rules for clearTimeout vs setTimeout
515 return cachedClearTimeout.call(this, marker);
516 }
517 }
518
519
520
521}
522var queue = [];
523var draining = false;
524var currentQueue;
525var queueIndex = -1;
526
527function cleanUpNextTick() {
528 if (!draining || !currentQueue) {
529 return;
530 }
531 draining = false;
532 if (currentQueue.length) {
533 queue = currentQueue.concat(queue);
534 } else {
535 queueIndex = -1;
536 }
537 if (queue.length) {
538 drainQueue();
539 }
540}
541
542function drainQueue() {
543 if (draining) {
544 return;
545 }
546 var timeout = runTimeout(cleanUpNextTick);
547 draining = true;
548
549 var len = queue.length;
550 while(len) {
551 currentQueue = queue;
552 queue = [];
553 while (++queueIndex < len) {
554 if (currentQueue) {
555 currentQueue[queueIndex].run();
556 }
557 }
558 queueIndex = -1;
559 len = queue.length;
560 }
561 currentQueue = null;
562 draining = false;
563 runClearTimeout(timeout);
564}
565
566process.nextTick = function (fun) {
567 var args = new Array(arguments.length - 1);
568 if (arguments.length > 1) {
569 for (var i = 1; i < arguments.length; i++) {
570 args[i - 1] = arguments[i];
571 }
572 }
573 queue.push(new Item(fun, args));
574 if (queue.length === 1 && !draining) {
575 runTimeout(drainQueue);
576 }
577};
578
579// v8 likes predictible objects
580function Item(fun, array) {
581 this.fun = fun;
582 this.array = array;
583}
584Item.prototype.run = function () {
585 this.fun.apply(null, this.array);
586};
587process.title = 'browser';
588process.browser = true;
589process.env = {};
590process.argv = [];
591process.version = ''; // empty string to avoid regexp issues
592process.versions = {};
593
594function noop() {}
595
596process.on = noop;
597process.addListener = noop;
598process.once = noop;
599process.off = noop;
600process.removeListener = noop;
601process.removeAllListeners = noop;
602process.emit = noop;
603process.prependListener = noop;
604process.prependOnceListener = noop;
605
606process.listeners = function (name) { return [] }
607
608process.binding = function (name) {
609 throw new Error('process.binding is not supported');
610};
611
612process.cwd = function () { return '/' };
613process.chdir = function (dir) {
614 throw new Error('process.chdir is not supported');
615};
616process.umask = function() { return 0; };
617
618
619/***/ }),
620/* 18 */
621/***/ (function(module, __webpack_exports__, __webpack_require__) {
622
623"use strict";
624/* harmony export (immutable) */ __webpack_exports__["f"] = toArrayChildren;
625/* harmony export (immutable) */ __webpack_exports__["c"] = dataToArray;
626/* harmony export (immutable) */ __webpack_exports__["d"] = setAnimCompToTagComp;
627/* harmony export (immutable) */ __webpack_exports__["b"] = currentScrollTop;
628/* harmony export (immutable) */ __webpack_exports__["a"] = currentScrollLeft;
629/* harmony export (immutable) */ __webpack_exports__["g"] = windowHeight;
630/* harmony export (immutable) */ __webpack_exports__["e"] = switchChildren;
631/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(1);
632/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
633/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(5);
634/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
635
636
637
638function toArrayChildren(children) {
639 var ret = [];
640 __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (c) {
641 ret.push(c);
642 });
643 return ret;
644}
645
646function dataToArray(vars) {
647 if (!vars && vars !== 0) {
648 return [];
649 }
650 if (Array.isArray(vars)) {
651 return vars;
652 }
653 return [vars];
654}
655
656function setAnimCompToTagComp(item, i) {
657 if (!item) {
658 return null;
659 }
660 var itemProps = item.props;
661 var props = {};
662 props.key = item.key || i;
663 // dom global attributes
664 var domAttrArray = ['accesskey', 'classname', 'contenteditable', 'contextmenu', 'dir', 'draggable', 'dropzone', 'hidden', 'id', 'lang', 'spellcheck', 'style', 'tabindex', 'title'];
665 Object.keys(itemProps).forEach(function (key) {
666 if (domAttrArray.indexOf(key.toLocaleLowerCase()) >= 0 || key.match('data-')) {
667 props[key] = itemProps[key];
668 }
669 });
670 return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(itemProps.component, props, itemProps.children);
671}
672setAnimCompToTagComp.propTypes = {
673 key: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string
674};
675
676function currentScrollTop() {
677 return window.pageYOffset || document.body.scrollTop || document.documentElement.scrollTop;
678}
679
680function currentScrollLeft() {
681 return window.pageXOffset || document.body.scrollLeft || document.documentElement.scrollLeft;
682}
683
684function windowHeight() {
685 return window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
686}
687
688function switchChildren(hideProps, item) {
689 if (!hideProps) {
690 return item;
691 }
692 if (item.type.isTweenOne) {
693 return __WEBPACK_IMPORTED_MODULE_0_react___default.a.cloneElement(item, { reverse: true });
694 }
695 return __WEBPACK_IMPORTED_MODULE_0_react___default.a.cloneElement(item, item.props, null);
696}
697
698/***/ }),
699/* 19 */
700/***/ (function(module, exports, __webpack_require__) {
701
702var isObject = __webpack_require__(14);
703module.exports = function (it) {
704 if (!isObject(it)) throw TypeError(it + ' is not an object!');
705 return it;
706};
707
708
709/***/ }),
710/* 20 */
711/***/ (function(module, exports) {
712
713module.exports = function (exec) {
714 try {
715 return !!exec();
716 } catch (e) {
717 return true;
718 }
719};
720
721
722/***/ }),
723/* 21 */
724/***/ (function(module, __webpack_exports__, __webpack_require__) {
725
726"use strict";
727/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return windowIsUndefined; });
728/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return transformOrFilter; });
729/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return styleValueToArray; });
730/* harmony export (immutable) */ __webpack_exports__["j"] = toArrayChildren;
731/* harmony export (immutable) */ __webpack_exports__["a"] = dataToArray;
732/* harmony export (immutable) */ __webpack_exports__["f"] = objectEqual;
733/* harmony export (immutable) */ __webpack_exports__["b"] = findChildInChildrenByKey;
734/* harmony export (immutable) */ __webpack_exports__["e"] = mergeChildren;
735/* harmony export (immutable) */ __webpack_exports__["k"] = transformArguments;
736/* harmony export (immutable) */ __webpack_exports__["c"] = getChildrenFromProps;
737/* harmony export (immutable) */ __webpack_exports__["h"] = startConvertToEndUnit;
738/* harmony export (immutable) */ __webpack_exports__["g"] = parsePath;
739/* harmony export (immutable) */ __webpack_exports__["d"] = getTransformValue;
740/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(1);
741/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
742
743
744var windowIsUndefined = !(typeof window !== 'undefined' && window.document && window.document.createElement);
745
746var transformOrFilter = {
747 transform: 1,
748 '-ms-transform': 1,
749 '-moz-transform': 1,
750 '-webkit-transform': 1,
751 '-o-transform': 1,
752 filter: 1,
753 '-webkit-filter': 1
754};
755
756var styleValueToArray = {
757 margin: 1,
758 padding: 1,
759 borderWidth: 1,
760 borderRadius: 1
761};
762
763function toArrayChildren(children) {
764 var ret = [];
765 __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (c) {
766 ret.push(c);
767 });
768 return ret;
769}
770
771function dataToArray(vars) {
772 if (!vars && vars !== 0) {
773 return [];
774 }
775 if (Array.isArray(vars)) {
776 return vars;
777 }
778 return [vars];
779}
780
781function deepEql(a, b) {
782 if (!a || !b) {
783 return false;
784 }
785 var $a = Object.keys(a);
786 var $b = Object.keys(b);
787 if ($a.length && $b.length && $a.length === $b.length) {
788 return !$a.some(function (key) {
789 var aa = a[key];
790 var bb = b[key];
791 if (Array.isArray(aa) && Array.isArray(bb)) {
792 aa = aa.join();
793 bb = bb.join();
794 }
795 return aa !== bb;
796 });
797 }
798 return false;
799}
800
801function objectEqual(obj1, obj2) {
802 if (obj1 === obj2 || deepEql(obj1, obj2)) {
803 return true;
804 }
805 if (!obj1 || !obj2) {
806 return false;
807 }
808 // animation 写在标签上的进行判断是否相等, 判断每个参数有没有 function;
809 var equalBool = true;
810 if (Array.isArray(obj1) && Array.isArray(obj2)) {
811 if (obj1.length !== obj2.length) {
812 return false;
813 }
814 for (var i = 0; i < obj1.length; i++) {
815 var currentObj = obj1[i];
816 var nextObj = obj2[i];
817 for (var p in currentObj) {
818 // eslint-disable-line no-restricted-syntax
819 if (currentObj[p] !== nextObj[p]) {
820 if (typeof currentObj[p] === 'object' && typeof nextObj[p] === 'object') {
821 equalBool = objectEqual(currentObj[p], nextObj[p]);
822 } else if (typeof currentObj[p] === 'function' && typeof nextObj[p] === 'function') {
823 if (currentObj[p].name !== nextObj[p].name) {
824 equalBool = false;
825 }
826 } else {
827 equalBool = false;
828 }
829 if (!equalBool) {
830 return false;
831 }
832 }
833 }
834 }
835 }
836
837 var setEqualBool = function setEqualBool(objA, objB) {
838 Object.keys(objA).forEach(function (key) {
839 // 如果前面有参数匹配不相同则直接返回;
840 if (!equalBool) {
841 return;
842 }
843 if (!(key in objB)) {
844 equalBool = false;
845 }
846
847 if (typeof objA[key] === 'object' && typeof objB[key] === 'object') {
848 equalBool = objectEqual(objA[key], objB[key]);
849 } else if (typeof objA[key] === 'function' && typeof objB[key] === 'function') {
850 if (objA[key].name !== objB[key].name) {
851 equalBool = false;
852 }
853 } else if (objA[key] !== objB[key]) {
854 equalBool = false;
855 }
856 });
857 };
858
859 setEqualBool(obj1, obj2);
860 setEqualBool(obj2, obj1);
861 return equalBool;
862}
863
864function findChildInChildrenByKey(children, key) {
865 var ret = null;
866 if (children) {
867 children.forEach(function (c) {
868 if (ret || !c) {
869 return;
870 }
871 if (c.key === key) {
872 ret = c;
873 }
874 });
875 }
876 return ret;
877}
878
879function mergeChildren(prev, next) {
880 var ret = [];
881 // For each key of `next`, the list of keys to insert before that key in
882 // the combined list
883 var nextChildrenPending = {};
884 var pendingChildren = [];
885 var followChildrenKey = void 0;
886 prev.forEach(function (c) {
887 if (!c) {
888 return;
889 }
890 if (findChildInChildrenByKey(next, c.key)) {
891 if (pendingChildren.length) {
892 nextChildrenPending[c.key] = pendingChildren;
893 pendingChildren = [];
894 }
895 followChildrenKey = c.key;
896 } else if (c.key) {
897 pendingChildren.push(c);
898 }
899 });
900 if (!followChildrenKey) {
901 ret = ret.concat(pendingChildren);
902 }
903
904 next.forEach(function (c) {
905 if (!c) {
906 return;
907 }
908 if (nextChildrenPending.hasOwnProperty(c.key)) {
909 // eslint-disable-line no-prototype-builtins
910 ret = ret.concat(nextChildrenPending[c.key]);
911 }
912 ret.push(c);
913 if (c.key === followChildrenKey) {
914 ret = ret.concat(pendingChildren);
915 }
916 });
917
918 return ret;
919}
920
921function transformArguments(arg, key, i) {
922 var result = void 0;
923 if (typeof arg === 'function') {
924 result = arg({
925 key: key,
926 index: i
927 });
928 } else {
929 result = arg;
930 }
931 return result;
932}
933
934function getChildrenFromProps(props) {
935 return props && props.children;
936}
937
938function startConvertToEndUnit(target, computedStyle, style, num, unit, dataUnit, fixed, isOriginWidth) {
939 if (windowIsUndefined) {
940 return num;
941 }
942 var horiz = /(?:Left|Right|Width|X)/i.test(style) || isOriginWidth;
943 horiz = style === 'padding' || style === 'marign' ? true : horiz;
944 var t = style.indexOf('border') !== -1 || style.indexOf('translate') !== -1 || style === 'transformOrigin' ? target : target.parentNode || document.body;
945 t = fixed ? document.body : t;
946 var pix = void 0;
947 var htmlComputedStyle = void 0;
948 // transform 在 safari 下会留着单位,chrome 下会全部转换成 px;
949 switch (unit) {
950 case '%':
951 pix = parseFloat(num) / 100 * (horiz ? t.clientWidth : t.clientHeight);
952 break;
953 case 'vw':
954 pix = parseFloat(num) * document.body.clientWidth / 100;
955 break;
956 case 'vh':
957 pix = parseFloat(num) * document.body.clientHeight / 100;
958 break;
959 case 'em':
960 pix = parseFloat(num) * parseFloat(computedStyle.fontSize);
961 break;
962 case 'rem':
963 {
964 htmlComputedStyle = window.getComputedStyle(document.getElementsByTagName('html')[0]);
965 pix = parseFloat(num) * parseFloat(htmlComputedStyle.fontSize);
966 break;
967 }
968 default:
969 pix = parseFloat(num);
970 break;
971 }
972 switch (dataUnit) {
973 case '%':
974 pix = pix ? pix * 100 / (horiz ? t.clientWidth : t.clientHeight) : 0;
975 break;
976 case 'vw':
977 pix = parseFloat(num) / document.body.clientWidth * 100;
978 break;
979 case 'vh':
980 pix = parseFloat(num) / document.body.clientHeight * 100;
981 break;
982 case 'em':
983 pix = parseFloat(num) / parseFloat(computedStyle.fontSize);
984 break;
985 case 'rem':
986 {
987 htmlComputedStyle = htmlComputedStyle || window.getComputedStyle(document.getElementsByTagName('html')[0]);
988 pix = parseFloat(num) / parseFloat(htmlComputedStyle.fontSize);
989 break;
990 }
991 default:
992 break;
993 }
994 return pix;
995}
996
997function parsePath(path) {
998 if (typeof path === 'string') {
999 if (path.charAt(0).match(/m/i)) {
1000 var domPath = document.createElementNS('http://www.w3.org/2000/svg', 'path');
1001 domPath.setAttributeNS(null, 'd', path);
1002 return domPath;
1003 }
1004 return document.querySelector(path);
1005 } else if (path.style) {
1006 return path;
1007 }
1008 throw new Error('Error while parsing the path');
1009}
1010
1011function getTransformValue(t) {
1012 if (typeof t === 'string') {
1013 return t;
1014 }
1015 var perspective = t.perspective;
1016 var angle = t.rotate;
1017 var rotateX = t.rotateX;
1018 var rotateY = t.rotateY;
1019 var sx = t.scaleX;
1020 var sy = t.scaleY;
1021 var sz = t.scaleZ;
1022 var skx = t.skewX;
1023 var sky = t.skewY;
1024 var translateX = typeof t.translateX === 'string' ? t.translateX : t.translateX + 'px';
1025 var translateY = typeof t.translateY === 'string' ? t.translateY : t.translateY + 'px';
1026 var translateZ = typeof t.translateZ === 'string' ? t.translateZ : t.translateZ + 'px';
1027 var sk = skx || sky ? 'skew(' + skx + 'deg,' + sky + 'deg)' : '';
1028 var an = angle ? 'rotate(' + angle + 'deg)' : '';
1029 var ss = sx !== 1 || sy !== 1 || sz !== 1 ? 'scale3d(' + sx + ',' + sy + ',' + sz + ')' : '';
1030 var rX = rotateX ? 'rotateX(' + rotateX + 'deg)' : '';
1031 var rY = rotateY ? 'rotateY(' + rotateY + 'deg)' : '';
1032 var per = perspective ? 'perspective(' + perspective + 'px)' : '';
1033 var defaultTranslate = ss || an || rX || rY || sk ? '' : 'translate(0px, 0px)';
1034 var translate = t.translateZ ? 'translate3d(' + translateX + ',' + translateY + ',' + translateZ + ')' : (t.translateX || t.translateY) && 'translate(' + translateX + ',' + translateY + ')' || defaultTranslate;
1035 return (per + ' ' + translate + ' ' + ss + ' ' + an + ' ' + rX + ' ' + rY + ' ' + sk).trim();
1036}
1037
1038/***/ }),
1039/* 22 */
1040/***/ (function(module, __webpack_exports__, __webpack_require__) {
1041
1042"use strict";
1043/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return polyfill; });
1044/**
1045 * Copyright (c) 2013-present, Facebook, Inc.
1046 *
1047 * This source code is licensed under the MIT license found in the
1048 * LICENSE file in the root directory of this source tree.
1049 */
1050
1051function componentWillMount() {
1052 // Call this.constructor.gDSFP to support sub-classes.
1053 var state = this.constructor.getDerivedStateFromProps(this.props, this.state);
1054 if (state !== null && state !== undefined) {
1055 this.setState(state);
1056 }
1057}
1058
1059function componentWillReceiveProps(nextProps) {
1060 // Call this.constructor.gDSFP to support sub-classes.
1061 // Use the setState() updater to ensure state isn't stale in certain edge cases.
1062 function updater(prevState) {
1063 var state = this.constructor.getDerivedStateFromProps(nextProps, prevState);
1064 return state !== null && state !== undefined ? state : null;
1065 }
1066 // Binding "this" is important for shallow renderer support.
1067 this.setState(updater.bind(this));
1068}
1069
1070function componentWillUpdate(nextProps, nextState) {
1071 try {
1072 var prevProps = this.props;
1073 var prevState = this.state;
1074 this.props = nextProps;
1075 this.state = nextState;
1076 this.__reactInternalSnapshotFlag = true;
1077 this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(
1078 prevProps,
1079 prevState
1080 );
1081 } finally {
1082 this.props = prevProps;
1083 this.state = prevState;
1084 }
1085}
1086
1087// React may warn about cWM/cWRP/cWU methods being deprecated.
1088// Add a flag to suppress these warnings for this special case.
1089componentWillMount.__suppressDeprecationWarning = true;
1090componentWillReceiveProps.__suppressDeprecationWarning = true;
1091componentWillUpdate.__suppressDeprecationWarning = true;
1092
1093function polyfill(Component) {
1094 var prototype = Component.prototype;
1095
1096 if (!prototype || !prototype.isReactComponent) {
1097 throw new Error('Can only polyfill class components');
1098 }
1099
1100 if (
1101 typeof Component.getDerivedStateFromProps !== 'function' &&
1102 typeof prototype.getSnapshotBeforeUpdate !== 'function'
1103 ) {
1104 return Component;
1105 }
1106
1107 // If new component APIs are defined, "unsafe" lifecycles won't be called.
1108 // Error if any of these lifecycles are present,
1109 // Because they would work differently between older and newer (16.3+) versions of React.
1110 var foundWillMountName = null;
1111 var foundWillReceivePropsName = null;
1112 var foundWillUpdateName = null;
1113 if (typeof prototype.componentWillMount === 'function') {
1114 foundWillMountName = 'componentWillMount';
1115 } else if (typeof prototype.UNSAFE_componentWillMount === 'function') {
1116 foundWillMountName = 'UNSAFE_componentWillMount';
1117 }
1118 if (typeof prototype.componentWillReceiveProps === 'function') {
1119 foundWillReceivePropsName = 'componentWillReceiveProps';
1120 } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') {
1121 foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
1122 }
1123 if (typeof prototype.componentWillUpdate === 'function') {
1124 foundWillUpdateName = 'componentWillUpdate';
1125 } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') {
1126 foundWillUpdateName = 'UNSAFE_componentWillUpdate';
1127 }
1128 if (
1129 foundWillMountName !== null ||
1130 foundWillReceivePropsName !== null ||
1131 foundWillUpdateName !== null
1132 ) {
1133 var componentName = Component.displayName || Component.name;
1134 var newApiName =
1135 typeof Component.getDerivedStateFromProps === 'function'
1136 ? 'getDerivedStateFromProps()'
1137 : 'getSnapshotBeforeUpdate()';
1138
1139 throw Error(
1140 'Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' +
1141 componentName +
1142 ' uses ' +
1143 newApiName +
1144 ' but also contains the following legacy lifecycles:' +
1145 (foundWillMountName !== null ? '\n ' + foundWillMountName : '') +
1146 (foundWillReceivePropsName !== null
1147 ? '\n ' + foundWillReceivePropsName
1148 : '') +
1149 (foundWillUpdateName !== null ? '\n ' + foundWillUpdateName : '') +
1150 '\n\nThe above lifecycles should be removed. Learn more about this warning here:\n' +
1151 'https://fb.me/react-async-component-lifecycle-hooks'
1152 );
1153 }
1154
1155 // React <= 16.2 does not support static getDerivedStateFromProps.
1156 // As a workaround, use cWM and cWRP to invoke the new static lifecycle.
1157 // Newer versions of React will ignore these lifecycles if gDSFP exists.
1158 if (typeof Component.getDerivedStateFromProps === 'function') {
1159 prototype.componentWillMount = componentWillMount;
1160 prototype.componentWillReceiveProps = componentWillReceiveProps;
1161 }
1162
1163 // React <= 16.2 does not support getSnapshotBeforeUpdate.
1164 // As a workaround, use cWU to invoke the new lifecycle.
1165 // Newer versions of React will ignore that lifecycle if gSBU exists.
1166 if (typeof prototype.getSnapshotBeforeUpdate === 'function') {
1167 if (typeof prototype.componentDidUpdate !== 'function') {
1168 throw new Error(
1169 'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype'
1170 );
1171 }
1172
1173 prototype.componentWillUpdate = componentWillUpdate;
1174
1175 var componentDidUpdate = prototype.componentDidUpdate;
1176
1177 prototype.componentDidUpdate = function componentDidUpdatePolyfill(
1178 prevProps,
1179 prevState,
1180 maybeSnapshot
1181 ) {
1182 // 16.3+ will not execute our will-update method;
1183 // It will pass a snapshot value to did-update though.
1184 // Older versions will require our polyfilled will-update value.
1185 // We need to handle both cases, but can't just check for the presence of "maybeSnapshot",
1186 // Because for <= 15.x versions this might be a "prevContext" object.
1187 // We also can't just check "__reactInternalSnapshot",
1188 // Because get-snapshot might return a falsy value.
1189 // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior.
1190 var snapshot = this.__reactInternalSnapshotFlag
1191 ? this.__reactInternalSnapshot
1192 : maybeSnapshot;
1193
1194 componentDidUpdate.call(this, prevProps, prevState, snapshot);
1195 };
1196 }
1197
1198 return Component;
1199}
1200
1201
1202
1203
1204/***/ }),
1205/* 23 */
1206/***/ (function(module, exports) {
1207
1208module.exports = function (bitmap, value) {
1209 return {
1210 enumerable: !(bitmap & 1),
1211 configurable: !(bitmap & 2),
1212 writable: !(bitmap & 4),
1213 value: value
1214 };
1215};
1216
1217
1218/***/ }),
1219/* 24 */
1220/***/ (function(module, exports, __webpack_require__) {
1221
1222// 19.1.2.14 / 15.2.3.14 Object.keys(O)
1223var $keys = __webpack_require__(51);
1224var enumBugKeys = __webpack_require__(36);
1225
1226module.exports = Object.keys || function keys(O) {
1227 return $keys(O, enumBugKeys);
1228};
1229
1230
1231/***/ }),
1232/* 25 */
1233/***/ (function(module, exports) {
1234
1235module.exports = true;
1236
1237
1238/***/ }),
1239/* 26 */
1240/***/ (function(module, exports) {
1241
1242var id = 0;
1243var px = Math.random();
1244module.exports = function (key) {
1245 return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
1246};
1247
1248
1249/***/ }),
1250/* 27 */
1251/***/ (function(module, exports) {
1252
1253exports.f = {}.propertyIsEnumerable;
1254
1255
1256/***/ }),
1257/* 28 */
1258/***/ (function(module, exports) {
1259
1260module.exports = __WEBPACK_EXTERNAL_MODULE_28__;
1261
1262/***/ }),
1263/* 29 */
1264/***/ (function(module, exports, __webpack_require__) {
1265
1266"use strict";
1267
1268
1269Object.defineProperty(exports, "__esModule", {
1270 value: true
1271});
1272exports.toCssLowerCase = toCssLowerCase;
1273exports.toStyleUpperCase = toStyleUpperCase;
1274exports.toFixed = toFixed;
1275exports.createMatrix = createMatrix;
1276exports.checkStyleName = checkStyleName;
1277exports.getGsapType = getGsapType;
1278exports.parseColor = parseColor;
1279exports.parseShadow = parseShadow;
1280exports.getColor = getColor;
1281exports.isTransform = isTransform;
1282exports.isConvert = isConvert;
1283exports.splitFilterToObject = splitFilterToObject;
1284exports.getMatrix = getMatrix;
1285exports.getTransform = getTransform;
1286exports.stylesToCss = stylesToCss;
1287exports.getUnit = getUnit;
1288exports.getValues = getValues;
1289exports.findStyleByName = findStyleByName;
1290exports.mergeStyle = mergeStyle;
1291var isUnitlessNumber = {
1292 animationIterationCount: true,
1293 borderImageOutset: true,
1294 borderImageSlice: true,
1295 borderImageWidth: true,
1296 boxFlex: true,
1297 boxFlexGroup: true,
1298 boxOrdinalGroup: true,
1299 columnCount: true,
1300 flex: true,
1301 flexGrow: true,
1302 flexPositive: true,
1303 flexShrink: true,
1304 flexNegative: true,
1305 flexOrder: true,
1306 gridRow: true,
1307 gridColumn: true,
1308 fontWeight: true,
1309 lineClamp: true,
1310 lineHeight: true,
1311 opacity: true,
1312 order: true,
1313 orphans: true,
1314 tabSize: true,
1315 widows: true,
1316 zIndex: true,
1317 zoom: true,
1318
1319 // SVG-related properties
1320 fillOpacity: true,
1321 floodOpacity: true,
1322 stopOpacity: true,
1323 strokeDasharray: true,
1324 strokeDashoffset: true,
1325 strokeMiterlimit: true,
1326 strokeOpacity: true,
1327 strokeWidth: true
1328};
1329var prefixes = ['Webkit', 'ms', 'Moz', 'O'];
1330
1331function prefixKey(prefix, key) {
1332 return prefix + key.charAt(0).toUpperCase() + key.substring(1);
1333}
1334
1335Object.keys(isUnitlessNumber).forEach(function (prop) {
1336 prefixes.forEach(function (prefix) {
1337 isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];
1338 });
1339});
1340
1341var unquotedContentValueRegex = /^(normal|none|(\b(url\([^)]*\)|chapter_counter|attr\([^)]*\)|(no-)?(open|close)-quote|inherit)((\b\s*)|$|\s+))+)$/;
1342
1343var IE = function () {
1344 if (typeof document === 'undefined') {
1345 return false;
1346 }
1347 if (navigator && (navigator.userAgent.indexOf("MSIE 8.0") > 0 || navigator.userAgent.indexOf("MSIE 9.0") > 0)) {
1348 return true;
1349 }
1350 return false;
1351}();
1352
1353var rnd = 100000;
1354
1355var colorLookup = {
1356 aqua: [0, 255, 255],
1357 lime: [0, 255, 0],
1358 silver: [192, 192, 192],
1359 black: [0, 0, 0],
1360 maroon: [128, 0, 0],
1361 teal: [0, 128, 128],
1362 blue: [0, 0, 255],
1363 navy: [0, 0, 128],
1364 white: [255, 255, 255],
1365 fuchsia: [255, 0, 255],
1366 olive: [128, 128, 0],
1367 yellow: [255, 255, 0],
1368 orange: [255, 165, 0],
1369 gray: [128, 128, 128],
1370 purple: [128, 0, 128],
1371 green: [0, 128, 0],
1372 red: [255, 0, 0],
1373 pink: [255, 192, 203],
1374 cyan: [0, 255, 255],
1375 transparent: [255, 255, 255, 0]
1376};
1377var _hue = function _hue(hh, m1, m2) {
1378 var h = hh > 1 ? hh - 1 : hh;
1379 h = hh < 0 ? hh + 1 : h;
1380 var a = h * 3 < 2 ? m1 + (m2 - m1) * (2 / 3 - h) * 6 : m1;
1381 var b = h < 0.5 ? m2 : a;
1382 var c = h * 6 < 1 ? m1 + (m2 - m1) * h * 6 : b;
1383 return c * 255 + 0.5 | 0;
1384};
1385var DEG2RAD = Math.PI / 180;
1386var RAD2DEG = 180 / Math.PI;
1387
1388var $cssList = {
1389 _lists: {
1390 transformsBase: ['translate', 'translateX', 'translateY', 'scale', 'scaleX', 'scaleY', 'skewX', 'skewY', 'rotateZ', 'rotate'],
1391 transforms3D: ['translate3d', 'translateZ', 'scaleZ', 'rotateX', 'rotateY', 'perspective']
1392 },
1393 transformGroup: { translate: 1, translate3d: 1, scale: 1, scale3d: 1, rotate: 1, rotate3d: 1, skew: 1 },
1394 filter: ['grayScale', 'sepia', 'hueRotate', 'invert', 'brightness', 'contrast', 'blur'],
1395 filterConvert: { grayScale: 'grayscale', hueRotate: 'hue-rotate' }
1396};
1397$cssList._lists.transformsBase = !IE ? $cssList._lists.transformsBase.concat($cssList._lists.transforms3D) : $cssList._lists.transformsBase;
1398
1399var cssList = exports.cssList = $cssList;
1400
1401function toCssLowerCase(d) {
1402 return d.replace(/[A-Z]/, function ($1) {
1403 return '-' + $1.toLocaleLowerCase();
1404 });
1405}
1406
1407function toStyleUpperCase(d) {
1408 return d.replace(/-(.?)/g, function ($1) {
1409 return $1.replace('-', '').toLocaleUpperCase();
1410 });
1411}
1412
1413function toFixed(num, length) {
1414 var _rnd = length ? Math.pow(10, length) : rnd;
1415 var n = num | 0;
1416 var dec = num - n;
1417 var fixed = num;
1418 if (dec) {
1419 var r = (dec * _rnd + (num < 0 ? -0.5 : 0.5) | 0) / _rnd;
1420 var t = r | 0;
1421 var str = r.toString();
1422 var decStr = str.split('.')[1] || '';
1423 fixed = '' + (num < 0 && !(n + t) ? '-' : '') + (n + t) + '.' + decStr;
1424 }
1425 return parseFloat(fixed);
1426}
1427
1428function createMatrix(style) {
1429 if (typeof document === 'undefined') {
1430 return null;
1431 }
1432 var matrixs = ['WebKitCSS', 'MozCSS', 'DOM', 'MsCSS', 'MSCSS', 'OCSS', 'CSS'].filter(function (key) {
1433 return key + 'Matrix' in window;
1434 });
1435 if (matrixs.length) {
1436 return new window[matrixs[0] + 'Matrix'](style);
1437 }
1438 console.warn('Browsers do not support matrix.');
1439 return '';
1440}
1441
1442function checkStyleName(p) {
1443 if (typeof document === 'undefined') {
1444 return null;
1445 }
1446 var a = ['O', 'Moz', 'ms', 'Ms', 'Webkit'];
1447 if (p !== 'filter' && p in document.body.style) {
1448 return p;
1449 }
1450 var _p = p.charAt(0).toUpperCase() + p.substr(1);
1451 var prefixCss = a.filter(function (key) {
1452 return '' + key + _p in document.body.style;
1453 });
1454 return prefixCss[0] ? '' + prefixCss[0] + _p : null;
1455}
1456
1457function getGsapType(_p) {
1458 var p = _p;
1459 p = p === 'x' ? 'translateX' : p;
1460 p = p === 'y' ? 'translateY' : p;
1461 p = p === 'z' ? 'translateZ' : p;
1462 // p = p === 'r' ? 'rotate' : p;
1463 return p;
1464}
1465
1466function parseColor(_v) {
1467 var a = void 0;
1468 var r = void 0;
1469 var g = void 0;
1470 var b = void 0;
1471 var h = void 0;
1472 var s = void 0;
1473 var l = void 0;
1474 var v = _v;
1475 var _numExp = /(?:\d|\-\d|\.\d|\-\.\d)+/g;
1476 if (!v) {
1477 a = colorLookup.black;
1478 } else if (typeof v === 'number') {
1479 a = [v >> 16, v >> 8 & 255, v & 255];
1480 } else {
1481 if (v.charAt(v.length - 1) === ',') {
1482 v = v.substr(0, v.length - 1);
1483 }
1484 if (colorLookup[v]) {
1485 a = colorLookup[v];
1486 } else if (v.charAt(0) === '#') {
1487 // is #FFF
1488 if (v.length === 4) {
1489 r = v.charAt(1);
1490 g = v.charAt(2);
1491 b = v.charAt(3);
1492 v = '#' + r + r + g + g + b + b;
1493 }
1494 v = parseInt(v.substr(1), 16);
1495 a = [v >> 16, v >> 8 & 255, v & 255];
1496 } else if (v.substr(0, 3) === 'hsl') {
1497 a = v.match(_numExp);
1498 h = Number(a[0]) % 360 / 360;
1499 s = Number(a[1]) / 100;
1500 l = Number(a[2]) / 100;
1501 g = l <= 0.5 ? l * (s + 1) : l + s - l * s;
1502 r = l * 2 - g;
1503 if (a.length > 3) {
1504 a[3] = Number(a[3]);
1505 }
1506 a[0] = _hue(h + 1 / 3, r, g);
1507 a[1] = _hue(h, r, g);
1508 a[2] = _hue(h - 1 / 3, r, g);
1509 } else {
1510 a = v.match(_numExp) || colorLookup.transparent;
1511 }
1512 a[0] = Number(a[0]);
1513 a[1] = Number(a[1]);
1514 a[2] = Number(a[2]);
1515
1516 if (a.length > 3) {
1517 a[3] = Number(a[3]);
1518 }
1519 }
1520 return a;
1521}
1522
1523function parseShadow(v) {
1524 if (!v) {
1525 return [0, 0, 0, 0, 0, 0, 0];
1526 }
1527 var inset = void 0;
1528 if (v.indexOf('rgb') >= 0) {
1529 var t = v.match(/rgb+(?:a)?\((.*)\)/);
1530 var s = v.replace(t[0], '').trim().split(/\s+/);
1531 inset = s.indexOf('inset');
1532 if (inset >= 0) {
1533 s.splice(inset, 1);
1534 }
1535 var c = t[1].replace(/\s+/g, '').split(',');
1536 if (c.length === 3) {
1537 c.push(1);
1538 }
1539 return s.concat(c, inset >= 0 ? ['inset'] : []);
1540 }
1541 var vArr = v.split(/\s+/);
1542 inset = vArr.indexOf('inset');
1543 if (inset >= 0) {
1544 vArr.splice(inset, 1);
1545 }
1546 var color = parseColor(vArr[vArr.length - 1]);
1547 color[3] = typeof color[3] === 'number' ? color[3] : 1;
1548 vArr = vArr.splice(0, vArr.length - 1);
1549 return vArr.concat(color, inset >= 0 ? ['inset'] : []);
1550}
1551
1552function getColor(v) {
1553 var rgba = v.length === 4 ? 'rgba' : 'rgb';
1554 var _vars = v.map(function (d, i) {
1555 return i < 3 ? Math.round(d) : d;
1556 });
1557 return rgba + '(' + _vars.join(',') + ')';
1558}
1559
1560function isTransform(p) {
1561 return cssList._lists.transformsBase.indexOf(p) >= 0 ? 'transform' : p;
1562}
1563
1564function isConvert(p) {
1565 var cssName = isTransform(p);
1566 return cssList.filter.indexOf(cssName) >= 0 ? 'filter' : cssName;
1567}
1568
1569function splitFilterToObject(data) {
1570 if (data === 'none' || !data || data === '') {
1571 return null;
1572 }
1573 var filter = data.replace(' ', '').split(')').filter(function (item) {
1574 return item;
1575 });
1576 var startData = {};
1577 filter.forEach(function (item) {
1578 var dataArr = item.split('(');
1579 startData[dataArr[0]] = dataArr[1];
1580 });
1581 return startData;
1582}
1583
1584function getMatrix(t) {
1585 var arr = t.match(/(?:\-|\b)[\d\-\.e]+\b/gi);
1586 var m = {};
1587 if (arr.length === 6) {
1588 m.m11 = parseFloat(arr[0]);
1589 m.m12 = parseFloat(arr[1]);
1590 m.m13 = 0;
1591 m.m14 = 0;
1592 m.m21 = parseFloat(arr[2]);
1593 m.m22 = parseFloat(arr[3]);
1594 m.m23 = 0;
1595 m.m24 = 0;
1596 m.m31 = 0;
1597 m.m32 = 0;
1598 m.m33 = 1;
1599 m.m34 = 0;
1600 m.m41 = parseFloat(arr[4]);
1601 m.m42 = parseFloat(arr[5]);
1602 m.m43 = 0;
1603 m.m44 = 0;
1604 } else {
1605 arr.forEach(function (item, i) {
1606 var ii = i % 4 + 1;
1607 var j = Math.floor(i / 4) + 1;
1608 m['m' + j + ii] = parseFloat(item);
1609 });
1610 }
1611 return m;
1612}
1613
1614function transformNoMatrix(transform) {
1615 var tm = {};
1616 tm.translateX = 0;
1617 tm.translateY = 0;
1618 tm.translateZ = 0;
1619 tm.rotate = 0;
1620 tm.rotateX = 0;
1621 tm.rotateY = 0;
1622 tm.scaleX = 1;
1623 tm.scaleY = 1;
1624 tm.scaleZ = 1;
1625 tm.skewX = 0;
1626 tm.skewY = 0;
1627 tm.perspective = 0;
1628 (transform.trim().match(/(\w+)\([^\)]+\)/ig) || []).forEach(function (str) {
1629 var strArray = str.split('(');
1630 var key = strArray[0].trim();
1631 var value = strArray[1].replace(')', '').trim();
1632 if (value.match(/%|em|rem/ig)) {
1633 console.warn('value(' + value + ') must be absolute, not relative, has been converted to absolute.');
1634 }
1635 value = value.replace(/px|deg|\)/ig, '');
1636 if (cssList.transformGroup[key] && key !== 'rotate') {
1637 value = value.split(',').map(function (num) {
1638 return parseFloat(num);
1639 });
1640 if (key === 'scale3d' || key === 'translate3d') {
1641 ['X', 'Y', 'Z'].forEach(function (s, i) {
1642 var $key = key.substring(0, key.length - 2);
1643 tm['' + $key + s] = value[i] || tm['' + $key + s];
1644 });
1645 } else if (key === 'rotate3d') {
1646 tm.rotateX = value[0] && value[3] || tm.rotateX;
1647 tm.rotateY = value[1] && value[3] || tm.rotateY;
1648 tm.rotate = value[2] && value[3] || tm.rotate;
1649 } else {
1650 ['X', 'Y'].forEach(function (s, i) {
1651 tm['' + key + s] = value[i] || tm['' + key + s];
1652 });
1653 }
1654 } else {
1655 if (key === 'rotateZ') {
1656 tm.rotate = parseFloat(value) || tm.rotate;
1657 } else {
1658 tm[key] = parseFloat(value) || tm[key];
1659 }
1660 }
1661 });
1662 return tm;
1663}
1664
1665function getTransform(transform) {
1666 var _transform = !transform || transform === 'none' || transform === '' ? 'matrix(1, 0, 0, 1, 0, 0)' : transform;
1667 if (!_transform.match('matrix')) {
1668 return transformNoMatrix(transform);
1669 }
1670 var m = getMatrix(_transform);
1671 var m11 = m.m11;
1672 var m12 = m.m12;
1673 var m13 = m.m13;
1674 var m14 = m.m14;
1675 var m21 = m.m21;
1676 var m22 = m.m22;
1677 var m23 = m.m23;
1678 var m24 = m.m24;
1679 var m31 = m.m31;
1680 var m32 = m.m32;
1681 var m33 = m.m33;
1682 var m34 = m.m34;
1683 var m43 = m.m43;
1684 var t1 = void 0;
1685 var t2 = void 0;
1686 var t3 = void 0;
1687 var tm = {};
1688 var angle = Math.atan2(m23, m33);
1689 var skewX = Math.tan(m21);
1690 var skewY = Math.tan(m12);
1691 var cos = void 0;
1692 var sin = void 0;
1693 // rotateX
1694 tm.rotateX = toFixed(angle * RAD2DEG) || 0;
1695 if (angle) {
1696 cos = Math.cos(-angle);
1697 sin = Math.sin(-angle);
1698 t1 = m21 * cos + m31 * sin;
1699 t2 = m22 * cos + m32 * sin;
1700 t3 = m23 * cos + m33 * sin;
1701 m31 = m21 * -sin + m31 * cos;
1702 m32 = m22 * -sin + m32 * cos;
1703 m33 = m23 * -sin + m33 * cos;
1704 m34 = m24 * -sin + m34 * cos;
1705 m21 = t1;
1706 m22 = t2;
1707 m23 = t3;
1708 }
1709 // rotateY
1710 angle = Math.atan2(-m13, m33);
1711 tm.rotateY = toFixed(angle * RAD2DEG) || 0;
1712 if (angle) {
1713 cos = Math.cos(-angle);
1714 sin = Math.sin(-angle);
1715 t1 = m11 * cos - m31 * sin;
1716 t2 = m12 * cos - m32 * sin;
1717 t3 = m13 * cos - m33 * sin;
1718 m32 = m12 * sin + m32 * cos;
1719 m33 = m13 * sin + m33 * cos;
1720 m34 = m14 * sin + m34 * cos;
1721 m11 = t1;
1722 m12 = t2;
1723 m13 = t3;
1724 }
1725 // rotateZ
1726 angle = Math.atan2(m12, m11);
1727 tm.rotate = toFixed(angle * RAD2DEG) || 0;
1728 if (angle) {
1729 cos = Math.cos(angle);
1730 sin = Math.sin(angle);
1731 t1 = m11 * cos + m12 * sin;
1732 t2 = m21 * cos + m22 * sin;
1733 t3 = m31 * cos + m32 * sin;
1734 m12 = m12 * cos - m11 * sin;
1735 m22 = m22 * cos - m21 * sin;
1736 m32 = m32 * cos - m31 * sin;
1737 m11 = t1;
1738 m21 = t2;
1739 m31 = t3;
1740 }
1741
1742 if (tm.rotateX && Math.abs(tm.rotateX) + Math.abs(tm.rotate) > 359.9) {
1743 tm.rotateX = tm.rotate = 0;
1744 tm.rotateY = 180 - tm.rotateY || 0;
1745 }
1746
1747 tm.scaleX = toFixed(Math.sqrt(m11 * m11 + m12 * m12 + m13 * m13));
1748 tm.scaleY = toFixed(Math.sqrt(m22 * m22 + m23 * m23));
1749 tm.scaleZ = toFixed(Math.sqrt(m31 * m31 + m32 * m32 + m33 * m33));
1750 // 不管 skewX skewY了;
1751 tm.skewX = skewX === -skewY ? 0 : skewX;
1752 tm.skewY = skewY === -skewX ? 0 : skewY;
1753 tm.perspective = m34 ? 1 / (m34 < 0 ? -m34 : m34) : 0;
1754 tm.translateX = m.m41;
1755 tm.translateY = m.m42;
1756 tm.translateZ = m43;
1757 return tm;
1758}
1759
1760function stylesToCss(key, value) {
1761 var _value = void 0;
1762 if (!isUnitlessNumber[key] && typeof value === 'number') {
1763 _value = ' ' + value + 'px';
1764 } else if (key === 'content' && !unquotedContentValueRegex.test(value)) {
1765 _value = '\'' + value.replace(/'/g, "\\'") + '\'';
1766 }
1767 return _value || value;
1768}
1769
1770function getUnit(p, v) {
1771 var currentUnit = v && v.toString().replace(/[^a-z|%]/ig, '');
1772 var unit = '';
1773 if (p.indexOf('translate') >= 0 || p.indexOf('perspective') >= 0 || p.indexOf('blur') >= 0) {
1774 unit = 'px';
1775 } else if (p.indexOf('skew') >= 0 || p.indexOf('rotate') >= 0) {
1776 unit = 'deg';
1777 }
1778 return currentUnit || unit;
1779}
1780
1781function getValues(p, d, u) {
1782 return p + '(' + d + (u || '') + ')';
1783}
1784
1785function findStyleByName(cssArray, name) {
1786 var ret = null;
1787 if (cssArray) {
1788 cssArray.forEach(function (_cname) {
1789 if (ret) {
1790 return;
1791 }
1792 var cName = _cname.split('(')[0];
1793 var a = cName in cssList.transformGroup && name.substring(0, name.length - 1).indexOf(cName) >= 0;
1794 var b = name in cssList.transformGroup && cName.substring(0, cName.length - 1).indexOf(name) >= 0;
1795 var c = cName in cssList.transformGroup && name in cssList.transformGroup && (cName.substring(0, cName.length - 2) === name || name.substring(0, name.length - 2) === cName);
1796 if (cName === name || a || b || c) {
1797 ret = _cname;
1798 }
1799 });
1800 }
1801 return ret;
1802}
1803
1804function mergeStyle(current, change) {
1805 if (!current || current === '') {
1806 return change;
1807 }
1808 if (!change || change === '') {
1809 return current;
1810 }
1811 var _current = current.replace(/\s/g, '').split(')').filter(function (item) {
1812 return item !== '' && item;
1813 }).map(function (item) {
1814 return item + ')';
1815 });
1816 var _change = change.replace(/\s/g, '').split(')').filter(function (item) {
1817 return item !== '' && item;
1818 });
1819 _change.forEach(function (changeOnly) {
1820 var changeArr = changeOnly.split('(');
1821 var changeName = changeArr[0];
1822 var currentSame = findStyleByName(_current, changeName);
1823 if (!currentSame) {
1824 _current.push(changeOnly + ')');
1825 } else {
1826 var index = _current.indexOf(currentSame);
1827 _current[index] = changeOnly + ')';
1828 }
1829 });
1830 _current.forEach(function (item, i) {
1831 if (item.indexOf('perspective') >= 0 && i) {
1832 _current.splice(i, 1);
1833 _current.unshift(item);
1834 }
1835 });
1836 return _current.join(' ').trim();
1837}
1838
1839
1840/***/ }),
1841/* 30 */
1842/***/ (function(module, __webpack_exports__, __webpack_require__) {
1843
1844"use strict";
1845/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(0);
1846/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
1847/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(1);
1848/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
1849/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__utils__ = __webpack_require__(18);
1850
1851
1852
1853
1854/* harmony default export */ __webpack_exports__["a"] = ({
1855 across: function across(elem, type, direction, animData, elemOffset, leaveChildHide) {
1856 var _x = void 0;
1857 var props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elem.props);
1858 var children = props.children;
1859 if (type === 'enter') {
1860 _x = direction === 'next' ? '100%' : '-100%';
1861 } else {
1862 // 时间轴不同,导致中间有空隙, 等修复 twee-one,先加delay
1863 _x = direction === 'next' ? '-100%' : '100%';
1864 children = Object(__WEBPACK_IMPORTED_MODULE_2__utils__["f" /* toArrayChildren */])(children).map(__WEBPACK_IMPORTED_MODULE_2__utils__["e" /* switchChildren */].bind(this, leaveChildHide));
1865 }
1866 return Object(__WEBPACK_IMPORTED_MODULE_1_react__["cloneElement"])(elem, {
1867 animation: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, animData, {
1868 x: _x,
1869 type: type === 'enter' ? 'from' : 'to'
1870 })
1871 }, children);
1872 },
1873 vertical: function vertical(elem, type, direction, animData, elemOffset, leaveChildHide) {
1874 var _y = void 0;
1875 var props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elem.props);
1876 var children = props.children;
1877 if (type === 'enter') {
1878 _y = direction === 'next' ? '-100%' : '100%';
1879 } else {
1880 // 时间轴不同,导致中间有空隙, 等修复 twee-one,先加delay
1881 _y = direction === 'next' ? '100%' : '-100%';
1882 children = Object(__WEBPACK_IMPORTED_MODULE_2__utils__["f" /* toArrayChildren */])(children).map(__WEBPACK_IMPORTED_MODULE_2__utils__["e" /* switchChildren */].bind(this, leaveChildHide));
1883 }
1884 return Object(__WEBPACK_IMPORTED_MODULE_1_react__["cloneElement"])(elem, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props, {
1885 animation: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, animData, {
1886 y: _y,
1887 type: type === 'enter' ? 'from' : 'to'
1888 })
1889 }), children);
1890 },
1891 acrossOverlay: function acrossOverlay(elem, type, direction, animData, elemOffset, leaveChildHide) {
1892 var _x = void 0;
1893 var props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elem.props);
1894 var children = props.children;
1895 if (type === 'enter') {
1896 _x = direction === 'next' ? '100%' : '-100%';
1897 } else {
1898 _x = direction === 'next' ? '-20%' : '20%';
1899 children = Object(__WEBPACK_IMPORTED_MODULE_2__utils__["f" /* toArrayChildren */])(children).map(__WEBPACK_IMPORTED_MODULE_2__utils__["e" /* switchChildren */].bind(this, leaveChildHide));
1900 }
1901 return Object(__WEBPACK_IMPORTED_MODULE_1_react__["cloneElement"])(elem, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props, {
1902 animation: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, animData, {
1903 x: _x,
1904 type: type === 'enter' ? 'from' : 'to'
1905 })
1906 }), children);
1907 },
1908 verticalOverlay: function verticalOverlay(elem, type, direction, animData, elemOffset, leaveChildHide) {
1909 var _y = void 0;
1910 var props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elem.props);
1911 var children = props.children;
1912 if (type === 'enter') {
1913 _y = direction === 'next' ? '-100%' : '100%';
1914 } else {
1915 _y = direction === 'next' ? '20%' : '-20%';
1916 children = Object(__WEBPACK_IMPORTED_MODULE_2__utils__["f" /* toArrayChildren */])(children).map(__WEBPACK_IMPORTED_MODULE_2__utils__["e" /* switchChildren */].bind(this, leaveChildHide));
1917 }
1918 return Object(__WEBPACK_IMPORTED_MODULE_1_react__["cloneElement"])(elem, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props, {
1919 animation: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, animData, {
1920 y: _y,
1921 type: type === 'enter' ? 'from' : 'to'
1922 })
1923 }), children);
1924 },
1925 gridBar: function gridBar(elem, type, direction, animData, elemOffset, leaveChildHide, ratio, paused) {
1926 var props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elem.props);
1927 var animChild = [];
1928 var gridNum = 10;
1929 var girdSize = 100 / gridNum;
1930
1931 var _y = void 0;
1932 var children = props.children;
1933 if (type === 'enter') {
1934 _y = direction === 'next' ? '-100%' : '100%';
1935 } else {
1936 _y = direction === 'next' ? '100%' : '-100%';
1937 }
1938 var moment = ratio * (animData.duration + animData.delay + gridNum * 50 - (type === 'enter' ? 50 : 0)) || 0;
1939 for (var i = 0; i < gridNum; i++) {
1940 var style = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props.style);
1941 style.width = girdSize + 0.1 + '%';
1942 style.left = i * girdSize + '%';
1943 style.position = 'absolute';
1944 style.overflow = 'hidden';
1945 var _style = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props.style);
1946 _style.width = elemOffset.width + 'px';
1947 _style.height = elemOffset.height + 'px';
1948 _style.float = 'left';
1949 _style.position = 'relative';
1950 _style.left = -i * girdSize / 100 * elemOffset.width + 'px';
1951 _style.overflow = 'hidden';
1952 var animProps = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props);
1953 animProps.style = _style;
1954 var delay = (direction === 'next' ? i : gridNum - i) * 50 + (type === 'enter' ? 0 : 50) + (animData.delay || 0);
1955 animProps.animation = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, animData, {
1956 y: _y,
1957 type: type === 'enter' ? 'from' : 'to',
1958 key: type,
1959 direction: direction,
1960 delay: delay,
1961 i: i,
1962 onComplete: i === (direction === 'next' ? gridNum - 1 : 0) ? animData.onComplete : null
1963 });
1964 animProps.paused = paused;
1965 animProps.moment = moment;
1966 var mask = __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
1967 'div',
1968 { style: style, key: i },
1969 Object(__WEBPACK_IMPORTED_MODULE_1_react__["cloneElement"])(elem, animProps, children)
1970 );
1971 animChild.push(mask);
1972 }
1973 var animSlot = __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
1974 'div',
1975 { style: { width: '100%', position: 'absolute', top: 0 } },
1976 animChild
1977 );
1978 var _props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elem.props);
1979 _props.children = animSlot;
1980 return Object(__WEBPACK_IMPORTED_MODULE_1_react__["cloneElement"])(elem, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, _props, { animation: { x: 0, y: 0, type: 'set' } }));
1981 },
1982 grid: function grid(elem, type, direction, animData, elemOffset, leaveChildHide, ratio, paused) {
1983 var props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elem.props);
1984 var animChild = [];
1985 var gridNum = 10;
1986 var gridWidth = elemOffset.width / gridNum;
1987 var gridNumH = Math.ceil(elemOffset.height / gridWidth);
1988 var _delay = (gridNum - 1) * 50 + (gridNumH - 1) * 50;
1989 if (type === 'leave') {
1990 props.animation = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, animData, {
1991 duration: _delay + animData.duration
1992 });
1993 props.moment = ((animData.delay || 0) + _delay + animData.duration) * ratio || 0;
1994 props.paused = paused;
1995 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.cloneElement(elem, props);
1996 }
1997 var moment = ratio * (animData.duration + animData.delay + _delay) || 0;
1998 for (var i = 0; i < gridNum * gridNumH; i++) {
1999 // mask样式
2000 var style = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props.style);
2001 style.position = 'absolute';
2002 style.overflow = 'hidden';
2003 style.width = gridWidth + 1 + 'px';
2004 style.height = gridWidth + 1 + 'px';
2005 style.left = i % gridNum * gridWidth;
2006 style.top = Math.floor(i / gridNum) * gridWidth;
2007 style.opacity = 0;
2008 // clone 的样式
2009 var _style = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props.style);
2010 _style.width = elemOffset.width + 'px';
2011 _style.height = elemOffset.height + 'px';
2012 _style.position = 'relative';
2013 _style.left = -i % gridNum * gridWidth;
2014 _style.top = -Math.floor(i / gridNum) * gridWidth;
2015 _style.overflow = 'hidden';
2016 props.style = _style;
2017 var delay = direction === 'next' ? i % gridNum * 50 + Math.floor(i / gridNum) * 50 : (gridNum - 1 - i % gridNum) * 50 + (gridNumH - 1 - Math.floor(i / gridNum)) * 50;
2018 delay += animData.delay || 0;
2019 var length = direction === 'next' ? gridNum * gridNumH - 1 : 0;
2020 var animation = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, animData, {
2021 opacity: 1,
2022 delay: delay,
2023 onComplete: i === length ? animData.onComplete : null
2024 });
2025 var mask = __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
2026 elem.type,
2027 {
2028 style: style,
2029 key: i,
2030 paused: paused,
2031 animation: animation,
2032 moment: moment
2033 },
2034 Object(__WEBPACK_IMPORTED_MODULE_1_react__["cloneElement"])(elem, props)
2035 );
2036 animChild.push(mask);
2037 }
2038 var _props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, elem.props);
2039 _props.children = animChild;
2040 return Object(__WEBPACK_IMPORTED_MODULE_1_react__["cloneElement"])(elem, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, _props, { animation: { x: 0, y: 0, type: 'set' } }));
2041 }
2042});
2043
2044/***/ }),
2045/* 31 */
2046/***/ (function(module, exports, __webpack_require__) {
2047
2048// 7.1.1 ToPrimitive(input [, PreferredType])
2049var isObject = __webpack_require__(14);
2050// instead of the ES6 spec version, we didn't implement @@toPrimitive case
2051// and the second argument - flag - preferred type is a string
2052module.exports = function (it, S) {
2053 if (!isObject(it)) return it;
2054 var fn, val;
2055 if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
2056 if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
2057 if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
2058 throw TypeError("Can't convert object to primitive value");
2059};
2060
2061
2062/***/ }),
2063/* 32 */
2064/***/ (function(module, exports) {
2065
2066// 7.2.1 RequireObjectCoercible(argument)
2067module.exports = function (it) {
2068 if (it == undefined) throw TypeError("Can't call method on " + it);
2069 return it;
2070};
2071
2072
2073/***/ }),
2074/* 33 */
2075/***/ (function(module, exports) {
2076
2077// 7.1.4 ToInteger
2078var ceil = Math.ceil;
2079var floor = Math.floor;
2080module.exports = function (it) {
2081 return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
2082};
2083
2084
2085/***/ }),
2086/* 34 */
2087/***/ (function(module, exports, __webpack_require__) {
2088
2089var shared = __webpack_require__(35)('keys');
2090var uid = __webpack_require__(26);
2091module.exports = function (key) {
2092 return shared[key] || (shared[key] = uid(key));
2093};
2094
2095
2096/***/ }),
2097/* 35 */
2098/***/ (function(module, exports, __webpack_require__) {
2099
2100var core = __webpack_require__(3);
2101var global = __webpack_require__(2);
2102var SHARED = '__core-js_shared__';
2103var store = global[SHARED] || (global[SHARED] = {});
2104
2105(module.exports = function (key, value) {
2106 return store[key] || (store[key] = value !== undefined ? value : {});
2107})('versions', []).push({
2108 version: core.version,
2109 mode: __webpack_require__(25) ? 'pure' : 'global',
2110 copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
2111});
2112
2113
2114/***/ }),
2115/* 36 */
2116/***/ (function(module, exports) {
2117
2118// IE 8- don't enum bug keys
2119module.exports = (
2120 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
2121).split(',');
2122
2123
2124/***/ }),
2125/* 37 */
2126/***/ (function(module, exports) {
2127
2128exports.f = Object.getOwnPropertySymbols;
2129
2130
2131/***/ }),
2132/* 38 */
2133/***/ (function(module, exports, __webpack_require__) {
2134
2135// 7.1.13 ToObject(argument)
2136var defined = __webpack_require__(32);
2137module.exports = function (it) {
2138 return Object(defined(it));
2139};
2140
2141
2142/***/ }),
2143/* 39 */
2144/***/ (function(module, exports) {
2145
2146module.exports = {};
2147
2148
2149/***/ }),
2150/* 40 */
2151/***/ (function(module, exports, __webpack_require__) {
2152
2153// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
2154var anObject = __webpack_require__(19);
2155var dPs = __webpack_require__(84);
2156var enumBugKeys = __webpack_require__(36);
2157var IE_PROTO = __webpack_require__(34)('IE_PROTO');
2158var Empty = function () { /* empty */ };
2159var PROTOTYPE = 'prototype';
2160
2161// Create object with fake `null` prototype: use iframe Object with cleared prototype
2162var createDict = function () {
2163 // Thrash, waste and sodomy: IE GC bug
2164 var iframe = __webpack_require__(50)('iframe');
2165 var i = enumBugKeys.length;
2166 var lt = '<';
2167 var gt = '>';
2168 var iframeDocument;
2169 iframe.style.display = 'none';
2170 __webpack_require__(85).appendChild(iframe);
2171 iframe.src = 'javascript:'; // eslint-disable-line no-script-url
2172 // createDict = iframe.contentWindow.Object;
2173 // html.removeChild(iframe);
2174 iframeDocument = iframe.contentWindow.document;
2175 iframeDocument.open();
2176 iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
2177 iframeDocument.close();
2178 createDict = iframeDocument.F;
2179 while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
2180 return createDict();
2181};
2182
2183module.exports = Object.create || function create(O, Properties) {
2184 var result;
2185 if (O !== null) {
2186 Empty[PROTOTYPE] = anObject(O);
2187 result = new Empty();
2188 Empty[PROTOTYPE] = null;
2189 // add "__proto__" for Object.getPrototypeOf polyfill
2190 result[IE_PROTO] = O;
2191 } else result = createDict();
2192 return Properties === undefined ? result : dPs(result, Properties);
2193};
2194
2195
2196/***/ }),
2197/* 41 */
2198/***/ (function(module, exports, __webpack_require__) {
2199
2200var def = __webpack_require__(6).f;
2201var has = __webpack_require__(7);
2202var TAG = __webpack_require__(16)('toStringTag');
2203
2204module.exports = function (it, tag, stat) {
2205 if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
2206};
2207
2208
2209/***/ }),
2210/* 42 */
2211/***/ (function(module, exports, __webpack_require__) {
2212
2213exports.f = __webpack_require__(16);
2214
2215
2216/***/ }),
2217/* 43 */
2218/***/ (function(module, exports, __webpack_require__) {
2219
2220var global = __webpack_require__(2);
2221var core = __webpack_require__(3);
2222var LIBRARY = __webpack_require__(25);
2223var wksExt = __webpack_require__(42);
2224var defineProperty = __webpack_require__(6).f;
2225module.exports = function (name) {
2226 var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
2227 if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
2228};
2229
2230
2231/***/ }),
2232/* 44 */
2233/***/ (function(module, exports, __webpack_require__) {
2234
2235"use strict";
2236/**
2237 * Copyright (c) 2013-present, Facebook, Inc.
2238 *
2239 * This source code is licensed under the MIT license found in the
2240 * LICENSE file in the root directory of this source tree.
2241 */
2242
2243
2244
2245var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
2246
2247module.exports = ReactPropTypesSecret;
2248
2249
2250/***/ }),
2251/* 45 */
2252/***/ (function(module, __webpack_exports__, __webpack_require__) {
2253
2254"use strict";
2255/* unused harmony export TweenOneGroup */
2256/* unused harmony export easing */
2257/* unused harmony export plugins */
2258/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return ticker; });
2259/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Tween; });
2260/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TweenOne__ = __webpack_require__(60);
2261/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Tween__ = __webpack_require__(61);
2262/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__TweenOneGroup__ = __webpack_require__(121);
2263/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__easing__ = __webpack_require__(62);
2264/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__plugins__ = __webpack_require__(46);
2265/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__ticker__ = __webpack_require__(64);
2266// export this package's api
2267
2268
2269
2270
2271
2272
2273
2274__WEBPACK_IMPORTED_MODULE_0__TweenOne__["a" /* default */].TweenOneGroup = __WEBPACK_IMPORTED_MODULE_2__TweenOneGroup__["a" /* default */];
2275__WEBPACK_IMPORTED_MODULE_0__TweenOne__["a" /* default */].easing = __WEBPACK_IMPORTED_MODULE_3__easing__["a" /* default */];
2276__WEBPACK_IMPORTED_MODULE_0__TweenOne__["a" /* default */].plugins = __WEBPACK_IMPORTED_MODULE_4__plugins__["a" /* default */];
2277__WEBPACK_IMPORTED_MODULE_0__TweenOne__["a" /* default */].ticker = __WEBPACK_IMPORTED_MODULE_5__ticker__["a" /* default */];
2278__WEBPACK_IMPORTED_MODULE_0__TweenOne__["a" /* default */].Tween = __WEBPACK_IMPORTED_MODULE_1__Tween__["a" /* default */];
2279
2280/* harmony default export */ __webpack_exports__["b"] = (__WEBPACK_IMPORTED_MODULE_0__TweenOne__["a" /* default */]);
2281
2282var TweenOneGroup = __WEBPACK_IMPORTED_MODULE_2__TweenOneGroup__["a" /* default */];
2283
2284var easing = __WEBPACK_IMPORTED_MODULE_3__easing__["a" /* default */];
2285
2286var plugins = __WEBPACK_IMPORTED_MODULE_4__plugins__["a" /* default */];
2287
2288var ticker = __WEBPACK_IMPORTED_MODULE_5__ticker__["a" /* default */];
2289
2290var Tween = __WEBPACK_IMPORTED_MODULE_1__Tween__["a" /* default */];
2291
2292/***/ }),
2293/* 46 */
2294/***/ (function(module, __webpack_exports__, __webpack_require__) {
2295
2296"use strict";
2297/* eslint-disable func-names */
2298var Plugins = function Plugins() {};
2299var p = Plugins.prototype;
2300p.push = function (plugin) {
2301 this[plugin.prototype.name] = plugin;
2302};
2303/* harmony default export */ __webpack_exports__["a"] = (new Plugins());
2304
2305/***/ }),
2306/* 47 */
2307/***/ (function(module, exports, __webpack_require__) {
2308
2309"use strict";
2310
2311
2312exports.__esModule = true;
2313
2314exports.default = function (obj, keys) {
2315 var target = {};
2316
2317 for (var i in obj) {
2318 if (keys.indexOf(i) >= 0) continue;
2319 if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
2320 target[i] = obj[i];
2321 }
2322
2323 return target;
2324};
2325
2326/***/ }),
2327/* 48 */
2328/***/ (function(module, exports, __webpack_require__) {
2329
2330// optional / simple context binding
2331var aFunction = __webpack_require__(74);
2332module.exports = function (fn, that, length) {
2333 aFunction(fn);
2334 if (that === undefined) return fn;
2335 switch (length) {
2336 case 1: return function (a) {
2337 return fn.call(that, a);
2338 };
2339 case 2: return function (a, b) {
2340 return fn.call(that, a, b);
2341 };
2342 case 3: return function (a, b, c) {
2343 return fn.call(that, a, b, c);
2344 };
2345 }
2346 return function (/* ...args */) {
2347 return fn.apply(that, arguments);
2348 };
2349};
2350
2351
2352/***/ }),
2353/* 49 */
2354/***/ (function(module, exports, __webpack_require__) {
2355
2356module.exports = !__webpack_require__(4) && !__webpack_require__(20)(function () {
2357 return Object.defineProperty(__webpack_require__(50)('div'), 'a', { get: function () { return 7; } }).a != 7;
2358});
2359
2360
2361/***/ }),
2362/* 50 */
2363/***/ (function(module, exports, __webpack_require__) {
2364
2365var isObject = __webpack_require__(14);
2366var document = __webpack_require__(2).document;
2367// typeof document.createElement is 'object' in old IE
2368var is = isObject(document) && isObject(document.createElement);
2369module.exports = function (it) {
2370 return is ? document.createElement(it) : {};
2371};
2372
2373
2374/***/ }),
2375/* 51 */
2376/***/ (function(module, exports, __webpack_require__) {
2377
2378var has = __webpack_require__(7);
2379var toIObject = __webpack_require__(15);
2380var arrayIndexOf = __webpack_require__(76)(false);
2381var IE_PROTO = __webpack_require__(34)('IE_PROTO');
2382
2383module.exports = function (object, names) {
2384 var O = toIObject(object);
2385 var i = 0;
2386 var result = [];
2387 var key;
2388 for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
2389 // Don't enum bug & hidden keys
2390 while (names.length > i) if (has(O, key = names[i++])) {
2391 ~arrayIndexOf(result, key) || result.push(key);
2392 }
2393 return result;
2394};
2395
2396
2397/***/ }),
2398/* 52 */
2399/***/ (function(module, exports, __webpack_require__) {
2400
2401// fallback for non-array-like ES3 and non-enumerable old V8 strings
2402var cof = __webpack_require__(53);
2403// eslint-disable-next-line no-prototype-builtins
2404module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
2405 return cof(it) == 'String' ? it.split('') : Object(it);
2406};
2407
2408
2409/***/ }),
2410/* 53 */
2411/***/ (function(module, exports) {
2412
2413var toString = {}.toString;
2414
2415module.exports = function (it) {
2416 return toString.call(it).slice(8, -1);
2417};
2418
2419
2420/***/ }),
2421/* 54 */
2422/***/ (function(module, exports, __webpack_require__) {
2423
2424"use strict";
2425
2426
2427exports.__esModule = true;
2428
2429var _iterator = __webpack_require__(79);
2430
2431var _iterator2 = _interopRequireDefault(_iterator);
2432
2433var _symbol = __webpack_require__(91);
2434
2435var _symbol2 = _interopRequireDefault(_symbol);
2436
2437var _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; };
2438
2439function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2440
2441exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) {
2442 return typeof obj === "undefined" ? "undefined" : _typeof(obj);
2443} : function (obj) {
2444 return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj);
2445};
2446
2447/***/ }),
2448/* 55 */
2449/***/ (function(module, exports, __webpack_require__) {
2450
2451"use strict";
2452
2453var LIBRARY = __webpack_require__(25);
2454var $export = __webpack_require__(12);
2455var redefine = __webpack_require__(56);
2456var hide = __webpack_require__(13);
2457var Iterators = __webpack_require__(39);
2458var $iterCreate = __webpack_require__(83);
2459var setToStringTag = __webpack_require__(41);
2460var getPrototypeOf = __webpack_require__(86);
2461var ITERATOR = __webpack_require__(16)('iterator');
2462var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
2463var FF_ITERATOR = '@@iterator';
2464var KEYS = 'keys';
2465var VALUES = 'values';
2466
2467var returnThis = function () { return this; };
2468
2469module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
2470 $iterCreate(Constructor, NAME, next);
2471 var getMethod = function (kind) {
2472 if (!BUGGY && kind in proto) return proto[kind];
2473 switch (kind) {
2474 case KEYS: return function keys() { return new Constructor(this, kind); };
2475 case VALUES: return function values() { return new Constructor(this, kind); };
2476 } return function entries() { return new Constructor(this, kind); };
2477 };
2478 var TAG = NAME + ' Iterator';
2479 var DEF_VALUES = DEFAULT == VALUES;
2480 var VALUES_BUG = false;
2481 var proto = Base.prototype;
2482 var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
2483 var $default = $native || getMethod(DEFAULT);
2484 var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
2485 var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
2486 var methods, key, IteratorPrototype;
2487 // Fix native
2488 if ($anyNative) {
2489 IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
2490 if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
2491 // Set @@toStringTag to native iterators
2492 setToStringTag(IteratorPrototype, TAG, true);
2493 // fix for some old engines
2494 if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
2495 }
2496 }
2497 // fix Array#{values, @@iterator}.name in V8 / FF
2498 if (DEF_VALUES && $native && $native.name !== VALUES) {
2499 VALUES_BUG = true;
2500 $default = function values() { return $native.call(this); };
2501 }
2502 // Define iterator
2503 if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
2504 hide(proto, ITERATOR, $default);
2505 }
2506 // Plug for library
2507 Iterators[NAME] = $default;
2508 Iterators[TAG] = returnThis;
2509 if (DEFAULT) {
2510 methods = {
2511 values: DEF_VALUES ? $default : getMethod(VALUES),
2512 keys: IS_SET ? $default : getMethod(KEYS),
2513 entries: $entries
2514 };
2515 if (FORCED) for (key in methods) {
2516 if (!(key in proto)) redefine(proto, key, methods[key]);
2517 } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
2518 }
2519 return methods;
2520};
2521
2522
2523/***/ }),
2524/* 56 */
2525/***/ (function(module, exports, __webpack_require__) {
2526
2527module.exports = __webpack_require__(13);
2528
2529
2530/***/ }),
2531/* 57 */
2532/***/ (function(module, exports, __webpack_require__) {
2533
2534// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
2535var $keys = __webpack_require__(51);
2536var hiddenKeys = __webpack_require__(36).concat('length', 'prototype');
2537
2538exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
2539 return $keys(O, hiddenKeys);
2540};
2541
2542
2543/***/ }),
2544/* 58 */
2545/***/ (function(module, exports, __webpack_require__) {
2546
2547var pIE = __webpack_require__(27);
2548var createDesc = __webpack_require__(23);
2549var toIObject = __webpack_require__(15);
2550var toPrimitive = __webpack_require__(31);
2551var has = __webpack_require__(7);
2552var IE8_DOM_DEFINE = __webpack_require__(49);
2553var gOPD = Object.getOwnPropertyDescriptor;
2554
2555exports.f = __webpack_require__(4) ? gOPD : function getOwnPropertyDescriptor(O, P) {
2556 O = toIObject(O);
2557 P = toPrimitive(P, true);
2558 if (IE8_DOM_DEFINE) try {
2559 return gOPD(O, P);
2560 } catch (e) { /* empty */ }
2561 if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
2562};
2563
2564
2565/***/ }),
2566/* 59 */
2567/***/ (function(module, exports, __webpack_require__) {
2568
2569"use strict";
2570/* WEBPACK VAR INJECTION */(function(process) {
2571
2572if (process.env.NODE_ENV === 'production') {
2573 module.exports = __webpack_require__(111);
2574} else {
2575 module.exports = __webpack_require__(112);
2576}
2577
2578/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(17)))
2579
2580/***/ }),
2581/* 60 */
2582/***/ (function(module, __webpack_exports__, __webpack_require__) {
2583
2584"use strict";
2585/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(0);
2586/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
2587/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(8);
2588/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);
2589/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9);
2590/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__);
2591/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__ = __webpack_require__(10);
2592/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__);
2593/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(11);
2594/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__);
2595/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(1);
2596/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__);
2597/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(5);
2598/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__);
2599/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_dom__ = __webpack_require__(28);
2600/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_react_dom__);
2601/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react_lifecycles_compat__ = __webpack_require__(22);
2602/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__util__ = __webpack_require__(21);
2603/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__Tween__ = __webpack_require__(61);
2604/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__ticker__ = __webpack_require__(64);
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619function noop() {}
2620
2621var perFrame = Math.round(1000 / 60);
2622var objectOrArray = __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.array]);
2623
2624var TweenOne = function (_Component) {
2625 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(TweenOne, _Component);
2626
2627 __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default()(TweenOne, null, [{
2628 key: 'getDerivedStateFromProps',
2629 value: function getDerivedStateFromProps(props, _ref) {
2630 var prevProps = _ref.prevProps,
2631 $self = _ref.$self;
2632
2633 var nextState = {
2634 prevProps: props
2635 };
2636 if (prevProps) {
2637 if (!$self.tween && !$self.dom) {
2638 $self.updateAnim = true;
2639 return;
2640 }
2641
2642 // 动画处理
2643 var newAnimation = props.animation;
2644 var currentAnimation = prevProps.animation;
2645 var equal = Object(__WEBPACK_IMPORTED_MODULE_9__util__["f" /* objectEqual */])(currentAnimation, newAnimation);
2646 if (!equal) {
2647 if (props.resetStyle && $self.tween) {
2648 $self.tween.resetDefaultStyle();
2649 }
2650 $self.updateAnim = true;
2651 }
2652
2653 // 跳帧事件 moment;
2654 var nextMoment = props.moment;
2655 if (typeof nextMoment === 'number' && nextMoment !== prevProps.moment) {
2656
2657 if ($self.tween && !$self.updateAnim) {
2658 $self.startMoment = nextMoment;
2659 $self.startTime = __WEBPACK_IMPORTED_MODULE_11__ticker__["a" /* default */].time;
2660 if (props.paused) {
2661 $self.raf();
2662 }
2663 if ($self.tween.progressTime >= $self.tween.totalTime) {
2664 $self.play();
2665 }
2666 } else {
2667 $self.updateAnim = true;
2668 }
2669 }
2670
2671 // 暂停倒放
2672 if ($self.paused !== props.paused || $self.reverse !== props.reverse) {
2673 $self.paused = props.paused;
2674 $self.reverse = props.reverse;
2675 if ($self.paused) {
2676 $self.cancelRequestAnimationFrame();
2677 } else if ($self.reverse && props.reverseDelay) {
2678 $self.cancelRequestAnimationFrame();
2679 __WEBPACK_IMPORTED_MODULE_11__ticker__["a" /* default */].timeout($self.restart, props.reverseDelay);
2680 } else {
2681 // 在 form 状态下,暂停时拉 moment 时,start 有值恢复播放,在 delay 的时间没有处理。。
2682 if ($self.tween) {
2683 $self.tween.resetAnimData();
2684 $self.tween.resetDefaultStyle();
2685 }
2686 if (!$self.updateAnim) {
2687 $self.restart();
2688 }
2689 }
2690 }
2691
2692 var styleEqual = Object(__WEBPACK_IMPORTED_MODULE_9__util__["f" /* objectEqual */])(prevProps.style, props.style);
2693 if (!styleEqual) {
2694 // 在动画时更改了 style, 作为更改开始数值。
2695 if ($self.tween) {
2696 $self.tween.reStart(props.style, prevProps.style, $self.tween.progressTime < $self.tween.totalTime);
2697 if ($self.paused) {
2698 $self.raf();
2699 }
2700 }
2701 }
2702 $self.setForcedJudg(props);
2703 }
2704 return nextState; // eslint-disable-line
2705 }
2706 }]);
2707
2708 function TweenOne(props) {
2709 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, TweenOne);
2710
2711 var _this = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, (TweenOne.__proto__ || Object.getPrototypeOf(TweenOne)).call(this, props));
2712
2713 _initialiseProps.call(_this);
2714
2715 _this.rafID = -1;
2716 _this.paused = props.paused;
2717 _this.reverse = props.reverse;
2718 _this.updateAnim = false;
2719 _this.repeatNum = 0;
2720 _this.forced = {};
2721 _this.currentRef = null;
2722 _this.setForcedJudg(props);
2723 _this.state = {
2724 $self: _this
2725 };
2726 return _this;
2727 }
2728
2729 __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default()(TweenOne, [{
2730 key: 'componentDidMount',
2731 value: function componentDidMount() {
2732 this.dom = __WEBPACK_IMPORTED_MODULE_7_react_dom___default.a.findDOMNode(this);
2733 if (this.dom && this.dom.nodeName !== '#text') {
2734 this.start();
2735 }
2736 }
2737 }, {
2738 key: 'componentDidUpdate',
2739 value: function componentDidUpdate() {
2740 if (!this.dom) {
2741 this.dom = __WEBPACK_IMPORTED_MODULE_7_react_dom___default.a.findDOMNode(this);
2742 }
2743 // 样式更新了后再执行动画;
2744 if (this.updateAnim && this.dom && this.dom.nodeName !== '#text') {
2745 if (this.tween) {
2746 this.cancelRequestAnimationFrame();
2747 }
2748 this.start();
2749 }
2750 }
2751 }, {
2752 key: 'componentWillUnmount',
2753 value: function componentWillUnmount() {
2754 this.cancelRequestAnimationFrame();
2755 }
2756
2757 /**
2758 * @method setForcedJudg
2759 * @param props
2760 * QueueAnim 套在组件下面后导至子级变化。
2761 * <QueueAnim component={Menu} >
2762 * <SubMenu key="a" title="导航">
2763 * <Item />
2764 * </SubMenu>
2765 * </QueueAnim>
2766 * rc-Menu 里是以 isXXX 来判断是 rc-Menu 的子级;
2767 * 如: 用 isSubMenu 来处理 hover 事件
2768 * 地址: https://github.com/react-component/menu/blob/master/src/MenuMixin.js#L172
2769 * 暂时方案: 在组件里添加判断用的值。
2770 */
2771
2772 }, {
2773 key: 'render',
2774 value: function render() {
2775 var _this2 = this;
2776
2777 var props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, this.props);
2778 ['animation', 'component', 'componentProps', 'reverseDelay', 'attr', 'paused', 'reverse', 'repeat', 'yoyo', 'moment', 'resetStyle', 'forcedJudg'].forEach(function (key) {
2779 return delete props[key];
2780 });
2781 props.style = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, this.props.style);
2782 Object.keys(props.style).forEach(function (p) {
2783 if (p.match(/filter/i)) {
2784 ['Webkit', 'Moz', 'Ms', 'ms'].forEach(function (prefix) {
2785 props.style[prefix + 'Filter'] = props.style[p];
2786 });
2787 }
2788 });
2789 // component 为空时调用子级的。。
2790 if (!this.props.component) {
2791 if (!this.props.children) {
2792 return this.props.children;
2793 }
2794 var childrenProps = this.props.children.props;
2795 var style = childrenProps.style,
2796 className = childrenProps.className;
2797 // 合并 style 与 className。
2798
2799 var newStyle = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, style, props.style);
2800 var newClassName = props.className ? props.className + ' ' + className : className;
2801 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.cloneElement(this.props.children, { style: newStyle, className: newClassName });
2802 }
2803 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(this.props.component, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({
2804 ref: function ref(c) {
2805 _this2.currentRef = c;
2806 }
2807 }, props, this.props.componentProps));
2808 }
2809 }]);
2810
2811 return TweenOne;
2812}(__WEBPACK_IMPORTED_MODULE_5_react__["Component"]);
2813
2814TweenOne.propTypes = {
2815 component: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any,
2816 componentProps: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any,
2817 animation: objectOrArray,
2818 children: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any,
2819 style: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object,
2820 paused: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
2821 reverse: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
2822 reverseDelay: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number,
2823 yoyo: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
2824 repeat: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number,
2825 moment: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number,
2826 attr: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,
2827 onChange: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
2828 resetStyle: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
2829 forcedJudg: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object
2830};
2831TweenOne.defaultProps = {
2832 component: 'div',
2833 componentProps: {},
2834 reverseDelay: 0,
2835 repeat: 0,
2836 attr: 'style',
2837 onChange: noop
2838};
2839
2840var _initialiseProps = function _initialiseProps() {
2841 var _this3 = this;
2842
2843 this.setForcedJudg = function (props) {
2844 Object.keys(_this3.forced).forEach(function (key) {
2845 delete _this3[key];
2846 delete _this3.forced[key];
2847 });
2848 if (props.forcedJudg) {
2849 Object.keys(props.forcedJudg).forEach(function (key) {
2850 if (!_this3[key]) {
2851 _this3[key] = props.forcedJudg[key];
2852 _this3.forced[key] = 1;
2853 }
2854 });
2855 }
2856 };
2857
2858 this.setDefault = function (props) {
2859 _this3.moment = props.moment || 0;
2860 _this3.startMoment = props.moment || 0;
2861 _this3.startTime = __WEBPACK_IMPORTED_MODULE_11__ticker__["a" /* default */].time;
2862 };
2863
2864 this.restart = function () {
2865 if (!_this3.tween) {
2866 return;
2867 }
2868 _this3.startMoment = _this3.moment;
2869 _this3.startTime = __WEBPACK_IMPORTED_MODULE_11__ticker__["a" /* default */].time;
2870 _this3.tween.reverse = _this3.reverse;
2871 _this3.tween.reverseStartTime = _this3.startMoment;
2872 _this3.raf();
2873 _this3.play();
2874 };
2875
2876 this.start = function () {
2877 _this3.updateAnim = false;
2878 var props = _this3.props;
2879 if (props.animation && Object.keys(props.animation).length) {
2880 _this3.setDefault(props);
2881 _this3.tween = new __WEBPACK_IMPORTED_MODULE_10__Tween__["a" /* default */](_this3.dom, props.animation, props.attr);
2882 _this3.tween.reverse = _this3.reverse;
2883 // 预先注册 raf, 初始动画数值。
2884 _this3.raf();
2885 // 开始动画
2886 _this3.play();
2887 } else {
2888 _this3.tween = null;
2889 }
2890 };
2891
2892 this.play = function () {
2893 _this3.cancelRequestAnimationFrame();
2894 if (_this3.paused) {
2895 return;
2896 }
2897 _this3.rafID = __WEBPACK_IMPORTED_MODULE_11__ticker__["a" /* default */].add(_this3.raf);
2898 };
2899
2900 this.frame = function () {
2901 var yoyo = _this3.props.yoyo;
2902 var repeat = _this3.props.repeat;
2903
2904 var totalTime = repeat === -1 ? Number.MAX_VALUE : _this3.tween.totalTime * (repeat + 1);
2905 repeat = repeat >= 0 ? repeat : Number.MAX_VALUE;
2906 var moment = __WEBPACK_IMPORTED_MODULE_11__ticker__["a" /* default */].time - _this3.startTime + _this3.startMoment;
2907 if (_this3.reverse) {
2908 moment = (_this3.startMoment || 0) - (__WEBPACK_IMPORTED_MODULE_11__ticker__["a" /* default */].time - _this3.startTime);
2909 }
2910 moment = moment > totalTime ? totalTime : moment;
2911 moment = moment <= 0 ? 0 : moment;
2912 var repeatNum = Math.floor(moment / _this3.tween.totalTime) || 0;
2913 repeatNum = repeatNum > repeat ? repeat : repeatNum;
2914 var tweenMoment = moment - _this3.tween.totalTime * repeatNum;
2915 tweenMoment = tweenMoment < perFrame && !_this3.reverse && totalTime >= perFrame ? 0 : tweenMoment;
2916 if (repeat && moment && moment - _this3.tween.totalTime * repeatNum < perFrame) {
2917 // 在重置样式之前补 complete;
2918 _this3.tween.frame(_this3.tween.totalTime * repeatNum);
2919 }
2920 if (moment < _this3.moment && !_this3.reverse || repeat !== 0 && repeatNum && repeatNum !== _this3.repeatNum) {
2921 // 在 form 状态下,暂停时拉 moment 时,start 有值,,往返方向播放时,在 delay 的时间没有处理。。
2922 // 与上面的处理一样,删除 start ,重新走一遍 start。。
2923 _this3.tween.resetAnimData();
2924 _this3.tween.resetDefaultStyle();
2925 }
2926 var yoyoReverse = yoyo && repeatNum % 2;
2927 if (yoyoReverse) {
2928 tweenMoment = _this3.tween.totalTime - tweenMoment;
2929 }
2930 _this3.tween.onChange = function (e) {
2931 var cb = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, e, {
2932 timelineMode: ''
2933 });
2934
2935 if (_this3.moment === _this3.startMoment && !_this3.reverse && !e.index && e.mode === 'onStart' || _this3.reverse) {
2936 cb.timelineMode = 'onTimelineStart';
2937 } else if (moment >= totalTime && !_this3.reverse || !moment && _this3.reverse) {
2938 cb.timelineMode = 'onTimelineComplete';
2939 } else if (repeatNum !== _this3.timelineRepeatNum) {
2940 cb.timelineMode = 'onTimelineRepeat';
2941 } else {
2942 cb.timelineMode = 'onTimelineUpdate';
2943 }
2944 _this3.timelineRepeatNum = repeatNum;
2945 _this3.props.onChange(cb);
2946 };
2947 _this3.moment = moment;
2948 _this3.repeatNum = repeatNum;
2949 _this3.tween.frame(tweenMoment);
2950 };
2951
2952 this.raf = function () {
2953 var tween = _this3.tween;
2954 _this3.frame();
2955 if (tween !== _this3.tween) {
2956 // 在 onComplete 时更换动画时,raf 没结束,所以需要强制退出,避逸两个时间的冲突。
2957 return null;
2958 }
2959 var repeat = _this3.props.repeat;
2960
2961 var totalTime = repeat === -1 ? Number.MAX_VALUE : _this3.tween.totalTime * (repeat + 1);
2962 if (_this3.moment >= totalTime && !_this3.reverse || _this3.paused || _this3.reverse && _this3.moment === 0) {
2963 return _this3.cancelRequestAnimationFrame();
2964 }
2965 return null;
2966 };
2967
2968 this.cancelRequestAnimationFrame = function () {
2969 __WEBPACK_IMPORTED_MODULE_11__ticker__["a" /* default */].clear(_this3.rafID);
2970 _this3.rafID = -1;
2971 };
2972};
2973
2974TweenOne.isTweenOne = true;
2975/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_8_react_lifecycles_compat__["a" /* polyfill */])(TweenOne));
2976
2977/***/ }),
2978/* 61 */
2979/***/ (function(module, __webpack_exports__, __webpack_require__) {
2980
2981"use strict";
2982/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(0);
2983/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
2984/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_style_utils__ = __webpack_require__(29);
2985/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_style_utils___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_style_utils__);
2986/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__easing__ = __webpack_require__(62);
2987/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__plugins__ = __webpack_require__(46);
2988/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__plugin_StylePlugin__ = __webpack_require__(117);
2989/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__util_js__ = __webpack_require__(21);
2990
2991/* eslint-disable func-names */
2992/**
2993 * Created by jljsj on 16/1/27.
2994 */
2995
2996
2997
2998
2999
3000
3001
3002var DEFAULT_EASING = 'easeInOutQuad';
3003var DEFAULT_DURATION = 450;
3004var DEFAULT_DELAY = 0;
3005function noop() {}
3006__WEBPACK_IMPORTED_MODULE_3__plugins__["a" /* default */].push(__WEBPACK_IMPORTED_MODULE_4__plugin_StylePlugin__["a" /* default */]);
3007// 设置默认数据
3008function defaultData(vars, now) {
3009 var duration = vars.duration || vars.duration === 0 ? vars.duration : DEFAULT_DURATION;
3010 return {
3011 duration: vars.type === 'set' ? 0 : duration,
3012 delay: vars.delay || DEFAULT_DELAY,
3013 ease: typeof vars.ease === 'function' ? vars.ease : __WEBPACK_IMPORTED_MODULE_2__easing__["a" /* default */][vars.ease || DEFAULT_EASING],
3014 onUpdate: vars.onUpdate || noop,
3015 onComplete: vars.onComplete || noop,
3016 onStart: vars.onStart || noop,
3017 onRepeat: vars.onRepeat || noop,
3018 repeat: vars.repeat || 0,
3019 repeatDelay: vars.repeatDelay || 0,
3020 yoyo: vars.yoyo || false,
3021 type: vars.type === 'from' ? 'from' : 'to',
3022 initTime: now,
3023 appearTo: typeof vars.appearTo === 'number' ? vars.appearTo : null,
3024 perTime: 0,
3025 currentRepeat: 0
3026 };
3027}
3028
3029var Tween = function Tween(target, to, attr) {
3030 var toData = Object(__WEBPACK_IMPORTED_MODULE_5__util_js__["a" /* dataToArray */])(to);
3031 this.target = target;
3032 this.attr = attr || 'style';
3033 // 时间精度补齐;
3034 this.accuracy = 0.00001;
3035 // 记录总时间;
3036 this.totalTime = 0;
3037 // 记录当前时间;
3038 this.progressTime = 0;
3039 // 记录时间轴数据;
3040 this.defaultData = [];
3041 // 每个的开始数据;
3042 this.start = {};
3043 // 开始默认的数据;
3044 this.startDefaultData = {};
3045 // 动画过程
3046 this.tween = {};
3047 // toData;
3048 this.data = toData;
3049 // 每帧的时间;
3050 this.perFrame = Math.round(1000 / 60);
3051 // 注册,第一次进入执行注册
3052 this.register = false;
3053 // svg元素
3054 this.isSvg = this.target.ownerSVGElement;
3055 // 设置 style
3056 var data = this.setAttrIsStyle();
3057 // 设置默认动画数据;
3058 this.setDefaultData(data);
3059};
3060var p = Tween.prototype;
3061p.setAttrIsStyle = function () {
3062 var _this = this;
3063
3064 var data = [];
3065 var defaultParam = defaultData({}, 0);
3066 this.data.forEach(function (d, i) {
3067 var _d = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, d);
3068 if (_this.attr === 'style') {
3069 data[i] = {};
3070 Object.keys(_d).forEach(function (key) {
3071 if (key in defaultParam) {
3072 data[i][key] = _d[key];
3073 delete _d[key];
3074 }
3075 });
3076 data[i].style = _d;
3077 _this.startDefaultData.style = _this.target.getAttribute('style') || '';
3078 } else if (_this.attr === 'attr') {
3079 Object.keys(_d).forEach(function (key) {
3080 if (key === 'style' && Array.isArray(d[key])) {
3081 throw new Error('Style should be the object.');
3082 }
3083 if (key === 'bezier') {
3084 _d.style = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, _d.style, { bezier: _d[key] });
3085 delete _d[key];
3086 _this.startDefaultData.style = _this.target.getAttribute('style') || '';
3087 } else {
3088 if (key in defaultParam) {
3089 return;
3090 }
3091 _this.startDefaultData[key] = _this.getValue(key);
3092 }
3093 });
3094 data[i] = _d;
3095 }
3096 });
3097 return data;
3098};
3099p.setDefaultData = function (_vars) {
3100 var _this2 = this;
3101
3102 var now = 0;
3103 var repeatMax = false;
3104 var data = _vars.map(function (item) {
3105 var appearToBool = typeof item.appearTo === 'number';
3106 // 加上延时,在没有播放过时;
3107 if (!appearToBool) {
3108 now += item.delay || 0;
3109 }
3110 var appearToTime = (item.appearTo || 0) + (item.delay || 0);
3111 // 获取默认数据
3112 var tweenData = defaultData(item, appearToBool ? appearToTime : now);
3113 tweenData.vars = {};
3114 Object.keys(item).forEach(function (_key) {
3115 if (!(_key in tweenData)) {
3116 var _data = item[_key];
3117 if (_key in __WEBPACK_IMPORTED_MODULE_3__plugins__["a" /* default */]) {
3118 tweenData.vars[_key] = new __WEBPACK_IMPORTED_MODULE_3__plugins__["a" /* default */][_key](_this2.target, _data, tweenData.type);
3119 } else if ((_key === 'd' || _key === 'points') && 'SVGMorph' in __WEBPACK_IMPORTED_MODULE_3__plugins__["a" /* default */]) {
3120 tweenData.vars[_key] = new __WEBPACK_IMPORTED_MODULE_3__plugins__["a" /* default */].SVGMorph(_this2.target, _data, _key);
3121 } else if (_key.match(/color/i) || _key === 'stroke' || _key === 'fill') {
3122 tweenData.vars[_key] = { type: 'color', vars: Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["parseColor"])(_data) };
3123 } else if (typeof _data === 'number' || _data.split(/[,|\s]/g).length <= 1) {
3124 var vars = parseFloat(_data);
3125 var unit = _data.toString().replace(/[^a-z|%]/g, '');
3126 var count = _data.toString().replace(/[^+|=|-]/g, '');
3127 tweenData.vars[_key] = { unit: unit, vars: vars, count: count };
3128 }
3129 }
3130 });
3131 if (tweenData.yoyo && !tweenData.repeat) {
3132 console.warn('Warning: yoyo must be used together with repeat;'); // eslint-disable-line
3133 }
3134 if (tweenData.repeat === -1) {
3135 repeatMax = true;
3136 }
3137 var repeat = tweenData.repeat === -1 ? 0 : tweenData.repeat;
3138 if (appearToBool) {
3139 // 如果有 appearTo 且这条时间比 now 大时,,总时间用这条;
3140 var appearNow = item.appearTo + (item.delay || 0) + tweenData.duration * (repeat + 1) + tweenData.repeatDelay * repeat;
3141 now = appearNow >= now ? appearNow : now;
3142 } else if (tweenData.delay < -tweenData.duration) {
3143 // 如果延时小于 负时间时,,不加,再减回延时;
3144 now -= tweenData.delay;
3145 } else {
3146 // repeat 为 -1 只记录一次。不能跟 reverse 同时使用;
3147 now += tweenData.duration * (repeat + 1) + tweenData.repeatDelay * repeat;
3148 }
3149 tweenData.mode = '';
3150 return tweenData;
3151 });
3152 this.totalTime = repeatMax ? Number.MAX_VALUE : now;
3153 this.defaultData = data;
3154};
3155p.getComputedStyle = function () {
3156 var style = typeof window !== 'undefined' && document.defaultView ? document.defaultView.getComputedStyle(this.target) : {};
3157 // 如果是 SVG, 样式全部提出为 transformSVG, 兼容 safari 不能获取 transform;
3158 if (this.isSvg) {
3159 var transform = style[Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["checkStyleName"])('transform')] || 'none';
3160 if (transform === 'none') {
3161 var attrStyle = this.target.getAttribute('style');
3162 if (attrStyle && attrStyle.indexOf('transform:') >= 0) {
3163 transform = attrStyle.split(';').filter(function (k) {
3164 return k.indexOf('transform:') >= 0;
3165 }).map(function (item) {
3166 return Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["createMatrix"])(item.split(':')[1].trim()).toString();
3167 })[0];
3168 } else if (this.target.getAttribute('transform')) {
3169 // 暂时不支持标签上的 transform,后期增加;
3170 console.warn('Do not add transform on the label, otherwise it will be invalid.'); // eslint-disable-line no-console
3171 }
3172 }
3173 style.transformSVG = transform;
3174 }
3175 return style;
3176};
3177p.getAnimStartData = function (item) {
3178 var _this3 = this;
3179
3180 var start = {};
3181 Object.keys(item).forEach(function (_key) {
3182 if (_key in __WEBPACK_IMPORTED_MODULE_3__plugins__["a" /* default */] || _this3.attr === 'attr' && (_key === 'd' || _key === 'points')) {
3183 _this3.computedStyle = _this3.computedStyle || (!_this3.target.getAttribute ? __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, _this3.target) : _this3.getComputedStyle());
3184 start[_key] = item[_key].getAnimStart(_this3.computedStyle, _this3.tween, _this3.isSvg);
3185 return;
3186 }
3187 if (_this3.attr === 'attr') {
3188 // 除了d和这points外的标签动画;
3189 var attribute = _this3.getValue(_key);
3190 var data = attribute === 'null' || !attribute ? 0 : attribute;
3191 if (_key.match(/color/i) || _key === 'stroke' || _key === 'fill') {
3192 data = !data && _key === 'stroke' ? 'rgba(255, 255, 255, 0)' : data;
3193 data = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["parseColor"])(data);
3194 start[_key] = data;
3195 } else if (parseFloat(data) || parseFloat(data) === 0 || data === 0) {
3196 var unit = data.toString().replace(/[^a-z|%]/g, '');
3197 start[_key] = unit !== item[_key].unit ? Object(__WEBPACK_IMPORTED_MODULE_5__util_js__["h" /* startConvertToEndUnit */])(_this3.target, _key, parseFloat(data), unit, item[_key].unit) : parseFloat(data);
3198 }
3199 return;
3200 }
3201 start[_key] = _this3.target[_key] || 0;
3202 });
3203 return start;
3204};
3205p.setAnimData = function (data) {
3206 var _this4 = this;
3207
3208 Object.keys(data).forEach(function (key) {
3209 if (key in __WEBPACK_IMPORTED_MODULE_3__plugins__["a" /* default */] || _this4.attr === 'attr' && (key === 'd' || key === 'points')) {
3210 return;
3211 }
3212 _this4.target[key] = data[key];
3213 });
3214};
3215p.setRatio = function (ratio, endData, i) {
3216 var _this5 = this;
3217
3218 Object.keys(endData.vars).forEach(function (_key) {
3219 if (_key in __WEBPACK_IMPORTED_MODULE_3__plugins__["a" /* default */] || _this5.attr === 'attr' && (_key === 'd' || _key === 'points')) {
3220 endData.vars[_key].setRatio(ratio, _this5.tween, _this5.isSvg && _this5.computedStyle);
3221 return;
3222 }
3223 var endVars = endData.vars[_key];
3224 var startVars = _this5.start[i][_key];
3225 var data = void 0;
3226 if (_this5.attr === 'attr') {
3227 // 除了d和这points外的标签动画;
3228 if (!endVars.type) {
3229 data = endVars.unit.charAt(1) === '=' ? startVars + endVars.vars * ratio + endVars.unit : (endVars.vars - startVars) * ratio + startVars + endVars.unit;
3230 _this5.setValue(_key, endVars.unit ? data : parseFloat(data));
3231 } else if (endVars.type === 'color') {
3232 if (endVars.vars.length === 3 && startVars.length === 4) {
3233 endVars.vars[3] = 1;
3234 }
3235 data = endVars.vars.map(function (_endData, _i) {
3236 var startData = startVars[_i] || 0;
3237 return (_endData - startData) * ratio + startData;
3238 });
3239 _this5.setValue(_key, Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["getColor"])(data));
3240 }
3241 }
3242 });
3243 this.setAnimData(this.tween);
3244};
3245p.getValue = function (key) {
3246 return this.target.getAttribute ? this.target.getAttribute(key) : this.target[key];
3247};
3248p.setValue = function (key, value) {
3249 if (this.target.setAttribute) {
3250 this.target.setAttribute(key, value);
3251 } else {
3252 this.target[key] = value;
3253 }
3254};
3255p.render = function () {
3256 var _this6 = this;
3257
3258 var reverse = this.reverse;
3259 this.defaultData.forEach(function (item, i) {
3260 var initTime = item.initTime;
3261 var duration = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["toFixed"])(item.duration);
3262 // 处理 yoyo 和 repeat; yoyo 是在时间轴上的, 并不是倒放
3263 var repeatNum = Math.ceil((_this6.progressTime - initTime) / (duration + item.repeatDelay)) - 1 || 0;
3264 repeatNum = repeatNum < 0 ? 0 : repeatNum;
3265 if (item.repeat) {
3266 if (item.repeat < repeatNum && item.repeat !== -1) {
3267 return;
3268 }
3269 if (item.repeat || item.repeat <= repeatNum) {
3270 initTime += repeatNum * (duration + item.repeatDelay);
3271 }
3272 }
3273 var startData = item.yoyo && repeatNum % 2 ? 1 : 0;
3274 var endData = item.yoyo && repeatNum % 2 ? 0 : 1;
3275 startData = item.type === 'from' ? 1 - startData : startData;
3276 endData = item.type === 'from' ? 1 - endData : endData;
3277 // 精度损失,只取小数点后10位。
3278 var progressTime = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["toFixed"])(_this6.progressTime - initTime);
3279
3280 var ratio = void 0;
3281
3282 // 开始注册;
3283 // from 时需先执行参数位置;
3284 var fromDelay = item.type === 'from' ? item.delay : 0;
3285 if (progressTime + fromDelay >= 0) {
3286 if (!_this6.start[i]) {
3287 // 设置 start
3288 _this6.start[i] = _this6.getAnimStartData(item.vars);
3289 if (progressTime < _this6.perFrame) {
3290 ratio = !item.duration && !item.delay ? item.ease(1, startData, endData, 1) : item.ease(0, startData, endData, 1);
3291 _this6.setRatio(ratio, item, i);
3292 } else if (progressTime > duration) {
3293 ratio = item.ease(1, startData, endData, 1);
3294 _this6.setRatio(ratio, item, i);
3295 }
3296 if (!_this6.register || i && !initTime) {
3297 _this6.register = true;
3298 if (progressTime === 0 && item.duration && item.delay) {
3299 return;
3300 }
3301 }
3302 }
3303 }
3304
3305 var e = {
3306 index: i,
3307 target: _this6.target
3308 };
3309 var cb = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({
3310 moment: _this6.progressTime
3311 }, e);
3312 var maxPer = _this6.perFrame - _this6.accuracy;
3313 var startTime = item.delay && reverse ? -maxPer : 0;
3314 if ((progressTime >= startTime && !(progressTime > duration && item.mode === 'onComplete') || progressTime < startTime && item.mode && item.mode !== 'onStart') && _this6.start[i]) {
3315 var updateAnim = _this6.updateAnim === 'update';
3316 progressTime = progressTime < maxPer && !reverse && item.duration >= _this6.perFrame ? 0 : progressTime;
3317 if ((progressTime >= duration - _this6.accuracy && !reverse || reverse && progressTime <= 0) && repeatNum >= item.repeat) {
3318 if (item.mode === 'onComplete') {
3319 return;
3320 }
3321 // onReveresComplete 和 onComplete 统一用 onComplete;
3322 ratio = item.ease(reverse ? 0 : 1, startData, endData, 1);
3323 _this6.setRatio(ratio, item, i, item.currentRepeat !== repeatNum);
3324 if ((!item.reset || item.reset && progressTime >= duration) && !updateAnim) {
3325 // duration 为 0 时的一个回调;
3326 if (duration < maxPer) {
3327 if (!duration) {
3328 item.onStart(e);
3329 cb.mode = 'onStart';
3330 _this6.onChange(cb);
3331 }
3332 item.onUpdate(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({ ratio: ratio }, e));
3333 cb.mode = 'onUpdate';
3334 _this6.onChange(cb);
3335 }
3336 item.onComplete(e);
3337 } else if (progressTime >= duration + maxPer) {
3338 return;
3339 }
3340 item.mode = 'onComplete';
3341 } else if (duration > maxPer) {
3342 var currentProgress = progressTime < 0 ? 0 : progressTime;
3343 currentProgress = currentProgress > duration ? duration : currentProgress;
3344 ratio = item.ease(currentProgress, startData, endData, duration);
3345 _this6.setRatio(ratio, item, i);
3346 if (!updateAnim) {
3347 if (item.repeat && repeatNum > 0 && item.currentRepeat !== repeatNum) {
3348 item.mode = 'onRepeat';
3349 item.currentRepeat = repeatNum;
3350 item.onRepeat(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, e, { repeatNum: repeatNum }));
3351 } else if ((item.perTime <= 0 || reverse && item.perTime >= _this6.reverseStartTime - initTime) && item.mode !== 'onStart') {
3352 // onReveresStart 和 onStart 统一用 onStart;
3353 item.mode = 'onStart';
3354 item.onStart(e);
3355 } else {
3356 item.mode = 'onUpdate';
3357 item.onUpdate(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({ ratio: ratio }, e));
3358 }
3359 }
3360 }
3361
3362 if (!updateAnim) {
3363 cb.mode = item.mode;
3364 _this6.onChange(cb);
3365 }
3366 item.perTime = progressTime;
3367 if (item.reset) {
3368 delete item.reset;
3369 }
3370 }
3371 });
3372};
3373// 播放帧
3374p.frame = function (moment) {
3375 var _this7 = this;
3376
3377 this.progressTime = moment;
3378 this.defaultData.forEach(function (item) {
3379 var t = _this7.progressTime - item.duration - item.initTime;
3380 if (t < _this7.perFrame && t > 0) {
3381 _this7.progressTime = item.duration + item.initTime;
3382 }
3383 });
3384 this.render();
3385};
3386
3387p.init = p.frame;
3388
3389p.resetAnimData = function () {
3390 this.tween = {};
3391 this.start = {};
3392};
3393
3394var getDefaultStyle = function getDefaultStyle(domStyle, defaultStyle, tweenData) {
3395 var $data = defaultData({}, 0);
3396 var getStyleToArray = function getStyleToArray(styleString) {
3397 return styleString.split(';').filter(function (c) {
3398 return c;
3399 }).map(function (str) {
3400 return str.split(':').map(function (s) {
3401 return s.trim();
3402 });
3403 });
3404 };
3405 var styleToArray = getStyleToArray(defaultStyle);
3406 var domStyleToArray = getStyleToArray(domStyle);
3407 tweenData.forEach(function (value) {
3408 Object.keys(value).forEach(function (name) {
3409 if (!(name in $data)) {
3410 var styleName = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["toCssLowerCase"])(Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["isTransform"])(Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["getGsapType"])(name)));
3411 domStyleToArray = domStyleToArray.filter(function (item) {
3412 if (__WEBPACK_IMPORTED_MODULE_5__util_js__["l" /* transformOrFilter */][item[0]] && __WEBPACK_IMPORTED_MODULE_5__util_js__["l" /* transformOrFilter */][styleName]) {
3413 return false;
3414 }
3415 return item[0] !== styleName;
3416 });
3417 }
3418 });
3419 });
3420 styleToArray.forEach(function (item) {
3421 domStyleToArray = domStyleToArray.filter(function ($item) {
3422 if ($item[0] === item[0]) {
3423 return false;
3424 }
3425 return true;
3426 });
3427 });
3428 return styleToArray.concat(domStyleToArray).map(function (item) {
3429 return item.join(':');
3430 }).join(';');
3431};
3432
3433p.resetDefaultStyle = function () {
3434 var _this8 = this;
3435
3436 this.tween = {};
3437 this.defaultData = this.defaultData.map(function (item) {
3438 item.reset = true;
3439 delete item.mode;
3440 return item;
3441 });
3442 var data = defaultData({}, 0);
3443 Object.keys(this.startDefaultData).forEach(function (key) {
3444 if (!(key in data)) {
3445 if (key === 'style') {
3446 var value = getDefaultStyle(_this8.target.style.cssText, _this8.startDefaultData.style, _this8.data);
3447 _this8.setValue(key, value);
3448 } else {
3449 _this8.setValue(key, _this8.startDefaultData[key]);
3450 }
3451 _this8.computedStyle = null;
3452 }
3453 });
3454};
3455
3456p.reStart = function (style, preStyle, isTween) {
3457 var _this9 = this;
3458
3459 this.start = {};
3460 this.tween = {};
3461 Object.keys(style || {}).forEach(function (key) {
3462 if (isTween || !preStyle || style[key] !== preStyle[key]) {
3463 _this9.target.style[key] = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["stylesToCss"])(key, style[key]);
3464 }
3465 });
3466 this.setAttrIsStyle();
3467 this.computedStyle = null;
3468};
3469
3470p.onChange = noop;
3471/* harmony default export */ __webpack_exports__["a"] = (Tween);
3472
3473/***/ }),
3474/* 62 */
3475/***/ (function(module, __webpack_exports__, __webpack_require__) {
3476
3477"use strict";
3478/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tween_functions__ = __webpack_require__(63);
3479/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_tween_functions___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_tween_functions__);
3480/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util__ = __webpack_require__(21);
3481
3482
3483
3484__WEBPACK_IMPORTED_MODULE_0_tween_functions___default.a.path = function (_path, _param) {
3485 var param = _param || {};
3486 if (__WEBPACK_IMPORTED_MODULE_1__util__["m" /* windowIsUndefined */]) {
3487 return 'linear';
3488 }
3489 var pathNode = Object(__WEBPACK_IMPORTED_MODULE_1__util__["g" /* parsePath */])(_path);
3490 var pathLength = pathNode.getTotalLength();
3491 var rect = param.rect || 100; // path 的大小,100 * 100,
3492 var lengthPixel = param.lengthPixel || 200; // 线上取点像素,默认分为 200 段。。
3493 var points = [];
3494 for (var i = 0; i < lengthPixel - 1; i++) {
3495 points.push(pathNode.getPointAtLength(pathLength / (lengthPixel - 1) * i));
3496 }
3497 points.push(pathNode.getPointAtLength(lengthPixel));
3498 return function path(t, b, _c, d) {
3499 var p = __WEBPACK_IMPORTED_MODULE_0_tween_functions___default.a.linear(t, b, _c, d);
3500 var timePointX = rect * p; // X 轴的百分比;
3501 // 取出 x 轴百分比上的点;
3502 var point = points.filter(function (item) {
3503 return item.x >= timePointX;
3504 })[0] || pathNode.getPointAtLength(p * pathLength);
3505 return 1 - point.y / rect;
3506 };
3507};
3508
3509/* harmony default export */ __webpack_exports__["a"] = (__WEBPACK_IMPORTED_MODULE_0_tween_functions___default.a);
3510
3511/***/ }),
3512/* 63 */
3513/***/ (function(module, exports, __webpack_require__) {
3514
3515"use strict";
3516
3517
3518// t: current time, b: beginning value, _c: final value, d: total duration
3519var tweenFunctions = {
3520 linear: function(t, b, _c, d) {
3521 var c = _c - b;
3522 return c * t / d + b;
3523 },
3524 easeInQuad: function(t, b, _c, d) {
3525 var c = _c - b;
3526 return c * (t /= d) * t + b;
3527 },
3528 easeOutQuad: function(t, b, _c, d) {
3529 var c = _c - b;
3530 return -c * (t /= d) * (t - 2) + b;
3531 },
3532 easeInOutQuad: function(t, b, _c, d) {
3533 var c = _c - b;
3534 if ((t /= d / 2) < 1) {
3535 return c / 2 * t * t + b;
3536 } else {
3537 return -c / 2 * ((--t) * (t - 2) - 1) + b;
3538 }
3539 },
3540 easeInCubic: function(t, b, _c, d) {
3541 var c = _c - b;
3542 return c * (t /= d) * t * t + b;
3543 },
3544 easeOutCubic: function(t, b, _c, d) {
3545 var c = _c - b;
3546 return c * ((t = t / d - 1) * t * t + 1) + b;
3547 },
3548 easeInOutCubic: function(t, b, _c, d) {
3549 var c = _c - b;
3550 if ((t /= d / 2) < 1) {
3551 return c / 2 * t * t * t + b;
3552 } else {
3553 return c / 2 * ((t -= 2) * t * t + 2) + b;
3554 }
3555 },
3556 easeInQuart: function(t, b, _c, d) {
3557 var c = _c - b;
3558 return c * (t /= d) * t * t * t + b;
3559 },
3560 easeOutQuart: function(t, b, _c, d) {
3561 var c = _c - b;
3562 return -c * ((t = t / d - 1) * t * t * t - 1) + b;
3563 },
3564 easeInOutQuart: function(t, b, _c, d) {
3565 var c = _c - b;
3566 if ((t /= d / 2) < 1) {
3567 return c / 2 * t * t * t * t + b;
3568 } else {
3569 return -c / 2 * ((t -= 2) * t * t * t - 2) + b;
3570 }
3571 },
3572 easeInQuint: function(t, b, _c, d) {
3573 var c = _c - b;
3574 return c * (t /= d) * t * t * t * t + b;
3575 },
3576 easeOutQuint: function(t, b, _c, d) {
3577 var c = _c - b;
3578 return c * ((t = t / d - 1) * t * t * t * t + 1) + b;
3579 },
3580 easeInOutQuint: function(t, b, _c, d) {
3581 var c = _c - b;
3582 if ((t /= d / 2) < 1) {
3583 return c / 2 * t * t * t * t * t + b;
3584 } else {
3585 return c / 2 * ((t -= 2) * t * t * t * t + 2) + b;
3586 }
3587 },
3588 easeInSine: function(t, b, _c, d) {
3589 var c = _c - b;
3590 return -c * Math.cos(t / d * (Math.PI / 2)) + c + b;
3591 },
3592 easeOutSine: function(t, b, _c, d) {
3593 var c = _c - b;
3594 return c * Math.sin(t / d * (Math.PI / 2)) + b;
3595 },
3596 easeInOutSine: function(t, b, _c, d) {
3597 var c = _c - b;
3598 return -c / 2 * (Math.cos(Math.PI * t / d) - 1) + b;
3599 },
3600 easeInExpo: function(t, b, _c, d) {
3601 var c = _c - b;
3602 return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
3603 },
3604 easeOutExpo: function(t, b, _c, d) {
3605 var c = _c - b;
3606 return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
3607 },
3608 easeInOutExpo: function(t, b, _c, d) {
3609 var c = _c - b;
3610 if (t === 0) {
3611 return b;
3612 }
3613 if (t === d) {
3614 return b + c;
3615 }
3616 if ((t /= d / 2) < 1) {
3617 return c / 2 * Math.pow(2, 10 * (t - 1)) + b;
3618 } else {
3619 return c / 2 * (-Math.pow(2, -10 * --t) + 2) + b;
3620 }
3621 },
3622 easeInCirc: function(t, b, _c, d) {
3623 var c = _c - b;
3624 return -c * (Math.sqrt(1 - (t /= d) * t) - 1) + b;
3625 },
3626 easeOutCirc: function(t, b, _c, d) {
3627 var c = _c - b;
3628 return c * Math.sqrt(1 - (t = t / d - 1) * t) + b;
3629 },
3630 easeInOutCirc: function(t, b, _c, d) {
3631 var c = _c - b;
3632 if ((t /= d / 2) < 1) {
3633 return -c / 2 * (Math.sqrt(1 - t * t) - 1) + b;
3634 } else {
3635 return c / 2 * (Math.sqrt(1 - (t -= 2) * t) + 1) + b;
3636 }
3637 },
3638 easeInElastic: function(t, b, _c, d) {
3639 var c = _c - b;
3640 var a, p, s;
3641 s = 1.70158;
3642 p = 0;
3643 a = c;
3644 if (t === 0) {
3645 return b;
3646 } else if ((t /= d) === 1) {
3647 return b + c;
3648 }
3649 if (!p) {
3650 p = d * 0.3;
3651 }
3652 if (a < Math.abs(c)) {
3653 a = c;
3654 s = p / 4;
3655 } else {
3656 s = p / (2 * Math.PI) * Math.asin(c / a);
3657 }
3658 return -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b;
3659 },
3660 easeOutElastic: function(t, b, _c, d) {
3661 var c = _c - b;
3662 var a, p, s;
3663 s = 1.70158;
3664 p = 0;
3665 a = c;
3666 if (t === 0) {
3667 return b;
3668 } else if ((t /= d) === 1) {
3669 return b + c;
3670 }
3671 if (!p) {
3672 p = d * 0.3;
3673 }
3674 if (a < Math.abs(c)) {
3675 a = c;
3676 s = p / 4;
3677 } else {
3678 s = p / (2 * Math.PI) * Math.asin(c / a);
3679 }
3680 return a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * (2 * Math.PI) / p) + c + b;
3681 },
3682 easeInOutElastic: function(t, b, _c, d) {
3683 var c = _c - b;
3684 var a, p, s;
3685 s = 1.70158;
3686 p = 0;
3687 a = c;
3688 if (t === 0) {
3689 return b;
3690 } else if ((t /= d / 2) === 2) {
3691 return b + c;
3692 }
3693 if (!p) {
3694 p = d * (0.3 * 1.5);
3695 }
3696 if (a < Math.abs(c)) {
3697 a = c;
3698 s = p / 4;
3699 } else {
3700 s = p / (2 * Math.PI) * Math.asin(c / a);
3701 }
3702 if (t < 1) {
3703 return -0.5 * (a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b;
3704 } else {
3705 return a * Math.pow(2, -10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p) * 0.5 + c + b;
3706 }
3707 },
3708 easeInBack: function(t, b, _c, d, s) {
3709 var c = _c - b;
3710 if (s === void 0) {
3711 s = 1.70158;
3712 }
3713 return c * (t /= d) * t * ((s + 1) * t - s) + b;
3714 },
3715 easeOutBack: function(t, b, _c, d, s) {
3716 var c = _c - b;
3717 if (s === void 0) {
3718 s = 1.70158;
3719 }
3720 return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b;
3721 },
3722 easeInOutBack: function(t, b, _c, d, s) {
3723 var c = _c - b;
3724 if (s === void 0) {
3725 s = 1.70158;
3726 }
3727 if ((t /= d / 2) < 1) {
3728 return c / 2 * (t * t * (((s *= 1.525) + 1) * t - s)) + b;
3729 } else {
3730 return c / 2 * ((t -= 2) * t * (((s *= 1.525) + 1) * t + s) + 2) + b;
3731 }
3732 },
3733 easeInBounce: function(t, b, _c, d) {
3734 var c = _c - b;
3735 var v;
3736 v = tweenFunctions.easeOutBounce(d - t, 0, c, d);
3737 return c - v + b;
3738 },
3739 easeOutBounce: function(t, b, _c, d) {
3740 var c = _c - b;
3741 if ((t /= d) < 1 / 2.75) {
3742 return c * (7.5625 * t * t) + b;
3743 } else if (t < 2 / 2.75) {
3744 return c * (7.5625 * (t -= 1.5 / 2.75) * t + 0.75) + b;
3745 } else if (t < 2.5 / 2.75) {
3746 return c * (7.5625 * (t -= 2.25 / 2.75) * t + 0.9375) + b;
3747 } else {
3748 return c * (7.5625 * (t -= 2.625 / 2.75) * t + 0.984375) + b;
3749 }
3750 },
3751 easeInOutBounce: function(t, b, _c, d) {
3752 var c = _c - b;
3753 var v;
3754 if (t < d / 2) {
3755 v = tweenFunctions.easeInBounce(t * 2, 0, c, d);
3756 return v * 0.5 + b;
3757 } else {
3758 v = tweenFunctions.easeOutBounce(t * 2 - d, 0, c, d);
3759 return v * 0.5 + c * 0.5 + b;
3760 }
3761 }
3762};
3763
3764module.exports = tweenFunctions;
3765
3766
3767/***/ }),
3768/* 64 */
3769/***/ (function(module, __webpack_exports__, __webpack_require__) {
3770
3771"use strict";
3772/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_raf__ = __webpack_require__(118);
3773/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_raf___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_raf__);
3774/* eslint-disable func-names */
3775
3776
3777var getTime = Date.now || function () {
3778 return new Date().getTime();
3779};
3780var sortObj = {
3781 interval: 1,
3782 timeout: 1,
3783 TweenOneTicker: 2
3784};
3785var tickObjToArray = function tickObjToArray(obj) {
3786 return Object.keys(obj).map(function (k) {
3787 return {
3788 key: k,
3789 func: obj[k]
3790 };
3791 }).sort(function (a, b) {
3792 var aa = a.key.split('_')[0];
3793 var bb = b.key.split('_')[0];
3794 return sortObj[bb] - sortObj[aa];
3795 });
3796};
3797var Ticker = function Ticker() {};
3798Ticker.prototype = {
3799 tickFnArray: [],
3800 tickKeyObject: {},
3801 id: -1,
3802 tweenId: 0,
3803 frame: 0,
3804 perFrame: Math.round(1000 / 60),
3805 elapsed: 0,
3806 lastUpdate: getTime(),
3807 startTime: getTime(), // 开始时间,不计算 react 渲染时间;
3808 nextTime: 0,
3809 time: 0
3810};
3811var p = Ticker.prototype;
3812p.add = function (fn) {
3813 var key = 'TweenOneTicker_' + this.tweenId;
3814 this.tweenId++;
3815 this.wake(key, fn);
3816 return key;
3817};
3818p.wake = function (key, fn) {
3819 this.tickKeyObject[key] = fn;
3820 this.tickFnArray = tickObjToArray(this.tickKeyObject);
3821 if (this.id === -1) {
3822 this.id = __WEBPACK_IMPORTED_MODULE_0_raf___default()(this.tick);
3823 }
3824};
3825p.clear = function (key) {
3826 delete this.tickKeyObject[key];
3827 this.tickFnArray = tickObjToArray(this.tickKeyObject);
3828};
3829p.sleep = function () {
3830 __WEBPACK_IMPORTED_MODULE_0_raf___default.a.cancel(this.id);
3831 this.id = -1;
3832 this.frame = 0;
3833};
3834var ticker = new Ticker();
3835p.tick = function (a) {
3836 ticker.elapsed = getTime() - ticker.lastUpdate;
3837 // 离开当前时设值 300;大于 300 则为离开。
3838 if (ticker.elapsed > 300) {
3839 ticker.startTime += ticker.elapsed - ticker.perFrame;
3840 }
3841 ticker.lastUpdate += ticker.elapsed;
3842 ticker.time = ticker.lastUpdate - ticker.startTime;
3843 var overlap = ticker.time - ticker.nextTime;
3844 if (overlap > 0 || !ticker.frame) {
3845 ticker.frame++;
3846 ticker.nextTime += overlap;
3847 }
3848 // console.log(ticker.frame, ticker.nextTime, ticker.time)
3849 ticker.tickFnArray.forEach(function (item) {
3850 return item.func(a);
3851 });
3852 // 如果 object 里没对象了,自动杀掉;
3853 if (!ticker.tickFnArray.length) {
3854 ticker.sleep();
3855 return;
3856 }
3857 ticker.id = __WEBPACK_IMPORTED_MODULE_0_raf___default()(ticker.tick);
3858};
3859var timeoutIdNumber = 0;
3860p.timeout = function (fn, time) {
3861 var _this = this;
3862
3863 if (!(typeof fn === 'function')) {
3864 return console.warn('not function'); // eslint-disable-line
3865 }
3866 var timeoutID = 'timeout_' + Date.now() + '-' + timeoutIdNumber;
3867 var startTime = this.time;
3868 this.wake(timeoutID, function () {
3869 var moment = _this.time - startTime;
3870 if (moment >= (time || 0)) {
3871 _this.clear(timeoutID);
3872 fn();
3873 }
3874 });
3875 timeoutIdNumber++;
3876 return timeoutID;
3877};
3878var intervalIdNumber = 0;
3879p.interval = function (fn, time) {
3880 var _this2 = this;
3881
3882 if (!(typeof fn === 'function')) {
3883 console.warn('not function'); // eslint-disable-line
3884 return null;
3885 }
3886 var intervalID = 'interval_' + Date.now() + '-' + intervalIdNumber;
3887 var starTime = this.time;
3888 this.wake(intervalID, function () {
3889 var moment = _this2.time - starTime;
3890 if (moment >= (time || 0)) {
3891 starTime = _this2.time;
3892 fn();
3893 }
3894 });
3895 intervalIdNumber++;
3896 return intervalID;
3897};
3898/* harmony default export */ __webpack_exports__["a"] = (ticker);
3899
3900/***/ }),
3901/* 65 */
3902/***/ (function(module, __webpack_exports__, __webpack_require__) {
3903
3904"use strict";
3905/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(0);
3906/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
3907/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(8);
3908/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);
3909/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__ = __webpack_require__(10);
3910/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__);
3911/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9);
3912/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__);
3913/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(11);
3914/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__);
3915/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(1);
3916/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__);
3917/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(5);
3918/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__);
3919
3920
3921
3922
3923
3924
3925
3926
3927var Arrow = function (_Component) {
3928 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Arrow, _Component);
3929
3930 function Arrow() {
3931 var _ref;
3932
3933 var _temp, _this, _ret;
3934
3935 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, Arrow);
3936
3937 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
3938 args[_key] = arguments[_key];
3939 }
3940
3941 return _ret = (_temp = (_this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, (_ref = Arrow.__proto__ || Object.getPrototypeOf(Arrow)).call.apply(_ref, [this].concat(args))), _this), _this.onClick = function (e) {
3942 if (e.stopPropagation) {
3943 e.stopPropagation();
3944 }
3945 _this.props[_this.props.arrowType](e);
3946 }, _temp), __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(_this, _ret);
3947 }
3948
3949 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default()(Arrow, [{
3950 key: 'render',
3951 value: function render() {
3952 var className = this.props.className;
3953 var defaultClass = className + '-default';
3954 className = (className + ' ' + (this.props.prefixCls || '')).trim();
3955 className = !this.props['default'] ? className : (className + ' ' + defaultClass).trim();
3956 className = className + ' ' + this.props.arrowType;
3957 var props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, this.props, this.props.componentProps);
3958 ['arrowType', 'next', 'prev', 'component', 'componentProps', 'default', 'prefixCls'].forEach(function (key) {
3959 return delete props[key];
3960 });
3961 props.className = className;
3962 props.onClick = this.onClick;
3963 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(this.props.component, props, this.props.children);
3964 }
3965 }]);
3966
3967 return Arrow;
3968}(__WEBPACK_IMPORTED_MODULE_5_react__["Component"]);
3969
3970Arrow.propTypes = {
3971 children: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any,
3972 style: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object,
3973 className: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,
3974 prefixCls: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,
3975 component: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any,
3976 arrowType: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,
3977 'default': __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
3978 next: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
3979 prev: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
3980 componentProps: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object
3981};
3982Arrow.defaultProps = {
3983 component: 'div',
3984 className: 'banner-anim-arrow',
3985 componentProps: {}
3986};
3987
3988Arrow.isBannerAnimArrow = true;
3989
3990/* harmony default export */ __webpack_exports__["a"] = (Arrow);
3991
3992/***/ }),
3993/* 66 */
3994/***/ (function(module, __webpack_exports__, __webpack_require__) {
3995
3996"use strict";
3997/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(0);
3998/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
3999/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(8);
4000/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);
4001/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__ = __webpack_require__(10);
4002/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__);
4003/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9);
4004/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__);
4005/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(11);
4006/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__);
4007/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(1);
4008/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__);
4009/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(5);
4010/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__);
4011/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__utils__ = __webpack_require__(18);
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021var Thumb = function (_Component) {
4022 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(Thumb, _Component);
4023
4024 function Thumb() {
4025 var _ref;
4026
4027 var _temp, _this, _ret;
4028
4029 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, Thumb);
4030
4031 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
4032 args[_key] = arguments[_key];
4033 }
4034
4035 return _ret = (_temp = (_this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, (_ref = Thumb.__proto__ || Object.getPrototypeOf(Thumb)).call.apply(_ref, [this].concat(args))), _this), _this.getDefaultThumb = function () {
4036 var children = [];
4037 for (var i = 0; i < _this.props.length; i++) {
4038 children.push(__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement('span', { key: i }));
4039 }
4040 return children;
4041 }, _temp), __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(_this, _ret);
4042 }
4043
4044 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default()(Thumb, [{
4045 key: 'render',
4046 value: function render() {
4047 var _this2 = this;
4048
4049 var className = 'banner-anim-thumb';
4050 var defaultClass = className + '-default';
4051 className = (className + ' ' + (this.props.prefixCls || '')).trim();
4052 className = !this.props['default'] ? className : (className + ' ' + defaultClass).trim();
4053 var children = this.props['default'] ? this.getDefaultThumb() : this.props.children;
4054 if (this.props.length && Object(__WEBPACK_IMPORTED_MODULE_7__utils__["f" /* toArrayChildren */])(children).length !== this.props.length) {
4055 console.warn('The thumbnail length and the images length different.'); // eslint-disable-line
4056 }
4057 var childToRender = Object(__WEBPACK_IMPORTED_MODULE_7__utils__["f" /* toArrayChildren */])(children).map(function (item, i) {
4058 var props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, item.props);
4059 props.onClick = function (e) {
4060 if (e.stopPropagation) {
4061 e.stopPropagation();
4062 }
4063 _this2.props.thumbClick(i);
4064 };
4065 props.className = ((props.className || '') + ' ' + (_this2.props.active === i ? 'active' : '')).trim();
4066 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.cloneElement(item, props);
4067 });
4068 var props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, this.props, this.props.componentProps);
4069 ['length', 'thumbClick', 'active', 'default', 'component', 'componentProps', 'prefixCls'].forEach(function (key) {
4070 return delete props[key];
4071 });
4072 props.className = className;
4073 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(this.props.component, props, childToRender);
4074 }
4075 }]);
4076
4077 return Thumb;
4078}(__WEBPACK_IMPORTED_MODULE_5_react__["Component"]);
4079
4080Thumb.propTypes = {
4081 children: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any,
4082 style: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object,
4083 prefixCls: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,
4084 component: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any,
4085 thumbClick: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
4086 'default': __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
4087 length: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number,
4088 active: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number,
4089 componentProps: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object
4090};
4091Thumb.defaultProps = {
4092 component: 'div',
4093 componentProps: {},
4094 thumbClick: function thumbClick() {}
4095};
4096Thumb.isBannerAnimThumb = true;
4097
4098/* harmony default export */ __webpack_exports__["a"] = (Thumb);
4099
4100/***/ }),
4101/* 67 */
4102/***/ (function(module, exports, __webpack_require__) {
4103
4104__webpack_require__(68);
4105module.exports = __webpack_require__(69);
4106
4107
4108/***/ }),
4109/* 68 */
4110/***/ (function(module, exports) {
4111
4112// removed by extract-text-webpack-plugin
4113
4114/***/ }),
4115/* 69 */
4116/***/ (function(module, __webpack_exports__, __webpack_require__) {
4117
4118"use strict";
4119Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
4120/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react_lifecycles_compat__ = __webpack_require__(22);
4121/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__BannerAnim__ = __webpack_require__(70);
4122/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Arrow__ = __webpack_require__(65);
4123/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Element__ = __webpack_require__(122);
4124/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Thumb__ = __webpack_require__(66);
4125/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__anim__ = __webpack_require__(30);
4126/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__utils__ = __webpack_require__(18);
4127/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Arrow", function() { return __WEBPACK_IMPORTED_MODULE_2__Arrow__["a"]; });
4128/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Element", function() { return __WEBPACK_IMPORTED_MODULE_3__Element__["a"]; });
4129/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Thumb", function() { return __WEBPACK_IMPORTED_MODULE_4__Thumb__["a"]; });
4130/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "animType", function() { return __WEBPACK_IMPORTED_MODULE_5__anim__["a"]; });
4131/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "setAnimCompToTagComp", function() { return __WEBPACK_IMPORTED_MODULE_6__utils__["d"]; });
4132/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "switchChildren", function() { return __WEBPACK_IMPORTED_MODULE_6__utils__["e"]; });
4133// export this package's api
4134
4135
4136
4137
4138
4139
4140
4141
4142__WEBPACK_IMPORTED_MODULE_1__BannerAnim__["a" /* default */].Arrow = __WEBPACK_IMPORTED_MODULE_2__Arrow__["a" /* default */];
4143__WEBPACK_IMPORTED_MODULE_1__BannerAnim__["a" /* default */].Element = __WEBPACK_IMPORTED_MODULE_3__Element__["a" /* default */];
4144__WEBPACK_IMPORTED_MODULE_1__BannerAnim__["a" /* default */].Thumb = __WEBPACK_IMPORTED_MODULE_4__Thumb__["a" /* default */];
4145__WEBPACK_IMPORTED_MODULE_1__BannerAnim__["a" /* default */].animType = __WEBPACK_IMPORTED_MODULE_5__anim__["a" /* default */];
4146__WEBPACK_IMPORTED_MODULE_1__BannerAnim__["a" /* default */].setAnimCompToTagComp = __WEBPACK_IMPORTED_MODULE_6__utils__["d" /* setAnimCompToTagComp */];
4147__WEBPACK_IMPORTED_MODULE_1__BannerAnim__["a" /* default */].switchChildren = __WEBPACK_IMPORTED_MODULE_6__utils__["e" /* switchChildren */];
4148
4149/* harmony default export */ __webpack_exports__["default"] = (Object(__WEBPACK_IMPORTED_MODULE_0_react_lifecycles_compat__["a" /* polyfill */])(__WEBPACK_IMPORTED_MODULE_1__BannerAnim__["a" /* default */]));
4150
4151
4152
4153/***/ }),
4154/* 70 */
4155/***/ (function(module, __webpack_exports__, __webpack_require__) {
4156
4157"use strict";
4158/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(47);
4159/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__);
4160/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__ = __webpack_require__(0);
4161/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__);
4162/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(8);
4163/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__);
4164/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9);
4165/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__);
4166/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_createClass__ = __webpack_require__(10);
4167/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_createClass__);
4168/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__ = __webpack_require__(11);
4169/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__);
4170/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(1);
4171/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__);
4172/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_dom__ = __webpack_require__(28);
4173/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_react_dom__);
4174/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types__ = __webpack_require__(5);
4175/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_prop_types__);
4176/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_rc_tween_one__ = __webpack_require__(45);
4177/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__Arrow__ = __webpack_require__(65);
4178/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__Thumb__ = __webpack_require__(66);
4179/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__utils__ = __webpack_require__(18);
4180/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__anim__ = __webpack_require__(30);
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196var BannerAnim = function (_Component) {
4197 __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default()(BannerAnim, _Component);
4198
4199 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_createClass___default()(BannerAnim, null, [{
4200 key: 'getDerivedStateFromProps',
4201 value: function getDerivedStateFromProps(props, _ref) {
4202 var prevProps = _ref.prevProps,
4203 $self = _ref.$self;
4204
4205 var nextState = {
4206 prevProps: props
4207 };
4208 if (prevProps && props !== prevProps) {
4209 $self.tweenBool = false;
4210 }
4211 return nextState; // eslint-disable-line
4212 }
4213 }]);
4214
4215 function BannerAnim(props) {
4216 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, BannerAnim);
4217
4218 var _this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, (BannerAnim.__proto__ || Object.getPrototypeOf(BannerAnim)).call(this, props));
4219
4220 _this.onMouseEnter = function (e) {
4221 _this.props.onMouseEnter(e);
4222 if (_this.props.autoPlay && _this.props.autoPlayEffect) {
4223 __WEBPACK_IMPORTED_MODULE_9_rc_tween_one__["c" /* ticker */].clear(_this.autoPlayId);
4224 _this.autoPlayId = -1;
4225 }
4226 };
4227
4228 _this.onMouseLeave = function (e) {
4229 _this.props.onMouseLeave(e);
4230 if (_this.props.autoPlay && _this.props.autoPlayEffect) {
4231 _this.autoPlay();
4232 }
4233 };
4234
4235 _this.onTouchStart = function (e) {
4236 if (e.touches && e.touches.length > 1 || _this.elemWrapper.length <= 1 || _this.getDomIsArrowOrThumb(e) || e.button === 2 || _this.tweenBool) {
4237 return;
4238 }
4239 if (_this.props.autoPlay) {
4240 __WEBPACK_IMPORTED_MODULE_9_rc_tween_one__["c" /* ticker */].clear(_this.autoPlayId);
4241 _this.autoPlayId = -1;
4242 }
4243 _this.animType = _this.getAnimType(_this.props.type);
4244 _this.currentShow = _this.state.currentShow;
4245 // this.mouseMoveType = 'start';
4246 _this.mouseStartXY = {
4247 startX: e.touches === undefined ? e.clientX : e.touches[0].clientX,
4248 startY: e.touches === undefined ? e.clientY : e.touches[0].clientY
4249 };
4250 };
4251
4252 _this.onTouchMove = function (e) {
4253 if (!_this.mouseStartXY || e.touches && e.touches.length > 1 || _this.tweenBool) {
4254 return;
4255 }
4256
4257 var _this$getDiffer = _this.getDiffer(e, e.touches),
4258 differ = _this$getDiffer.differ,
4259 rectName = _this$getDiffer.rectName;
4260
4261 if (!differ) {
4262 return;
4263 }
4264 var ratio = differ / _this.state.domRect[rectName] * 2;
4265 var ratioType = ratio < 0 ? '+' : '-';
4266 var currentShow = _this.currentShow;
4267 _this.mouseMoveType = 'update';
4268 if (_this.ratioType !== ratioType) {
4269 _this.ratioType = ratioType;
4270 _this.mouseMoveType = 'reChild';
4271 _this.setState({
4272 currentShow: currentShow
4273 });
4274 return;
4275 }
4276 if ((_this.animType === __WEBPACK_IMPORTED_MODULE_13__anim__["a" /* default */].gridBar || _this.animType === __WEBPACK_IMPORTED_MODULE_13__anim__["a" /* default */].grid) && e.touches) {
4277 return;
4278 }
4279 _this.ratio = ratio;
4280 if (_this.ratio) {
4281 var type = void 0;
4282 if (_this.ratio < 0) {
4283 currentShow += 1;
4284 type = 'next';
4285 } else {
4286 currentShow -= 1;
4287 type = 'prev';
4288 }
4289 _this.ratio = Math.abs(_this.ratio);
4290 _this.ratio = _this.ratio > 0.99 ? 0.99 : _this.ratio;
4291 currentShow = currentShow >= _this.elemWrapper.length ? 0 : currentShow;
4292 currentShow = currentShow < 0 ? _this.elemWrapper.length - 1 : currentShow;
4293 _this.setState({
4294 currentShow: currentShow,
4295 direction: type
4296 });
4297 }
4298 };
4299
4300 _this.onTouchEnd = function (e) {
4301 if (!_this.mouseStartXY || e.changedTouches && e.changedTouches.length > 1 || _this.tweenBool) {
4302 return;
4303 }
4304 if (_this.props.autoPlay && _this.autoPlayId === -1) {
4305 _this.autoPlay();
4306 }
4307
4308 var _this$getDiffer2 = _this.getDiffer(e, e.changedTouches),
4309 differ = _this$getDiffer2.differ,
4310 rectName = _this$getDiffer2.rectName;
4311
4312 delete _this.mouseStartXY;
4313 _this.mouseMoveType = 'end';
4314 if (!differ) {
4315 _this.mouseMoveType = '';
4316 return;
4317 }
4318 if ((_this.animType === __WEBPACK_IMPORTED_MODULE_13__anim__["a" /* default */].gridBar || _this.animType === __WEBPACK_IMPORTED_MODULE_13__anim__["a" /* default */].grid) && e.changedTouches) {
4319 var currentShow = _this.currentShow;
4320 var ratio = differ / _this.state.domRect[rectName] * 2;
4321 if (ratio < 0) {
4322 currentShow += 1;
4323 } else {
4324 currentShow -= 1;
4325 }
4326 currentShow = currentShow >= _this.elemWrapper.length ? 0 : currentShow;
4327 currentShow = currentShow < 0 ? _this.elemWrapper.length - 1 : currentShow;
4328 _this.ratio = 0;
4329 _this.mouseMoveType = '';
4330 _this.slickGoTo(currentShow, true);
4331 _this.tweenBool = true;
4332 return;
4333 }
4334
4335 if (_this.ratio > 0.3) {
4336 _this.forceUpdate(function () {
4337 _this.ratio = 0;
4338 _this.mouseMoveType = '';
4339 });
4340 } else {
4341 _this.setState({
4342 currentShow: _this.currentShow,
4343 direction: _this.ratioType === '+' ? 'prev' : 'next'
4344 }, function () {
4345 _this.ratio = 0;
4346 _this.mouseMoveType = '';
4347 });
4348 }
4349 };
4350
4351 _this.getDiffer = function (e, touches) {
4352 var currentX = touches === undefined ? e.clientX : touches[0].clientX;
4353 var currentY = touches === undefined ? e.clientY : touches[0].clientY;
4354 var differX = currentX - _this.mouseStartXY.startX;
4355 var differY = currentY - _this.mouseStartXY.startY;
4356 var differ = Math.max(Math.abs(differX), Math.abs(differY));
4357 differ = differ === Math.abs(differX) ? differX : differY;
4358 return {
4359 differ: differ,
4360 rectName: differ === differX ? 'width' : 'height'
4361 };
4362 };
4363
4364 _this.getDomIsArrowOrThumb = function (e) {
4365 var arrowClassName = e.target.className;
4366 var thumbClassName = e.target.parentNode.className;
4367 if (arrowClassName.indexOf('banner-anim-arrow') >= 0 || thumbClassName.indexOf('banner-anim-thumb') >= 0) {
4368 return true;
4369 }
4370 return false;
4371 };
4372
4373 _this.getRenderChildren = function (children) {
4374 var elem = [];
4375 var arrow = [];
4376 var thumb = void 0;
4377 var elementKeyNum = 0;
4378 var thumbKeyNum = 0;
4379
4380 Object(__WEBPACK_IMPORTED_MODULE_12__utils__["f" /* toArrayChildren */])(children).forEach(function (item, i) {
4381 if (!item) {
4382 return;
4383 }
4384 var itemProps = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, item.props);
4385 if (item.type.isBannerAnimElement) {
4386 itemProps.key = item.key || 'element-' + elementKeyNum;
4387 elementKeyNum += 1;
4388 itemProps.callBack = _this.animEnd;
4389 itemProps.show = _this.state.currentShow === i;
4390 itemProps.animType = _this.animType;
4391 itemProps.duration = _this.props.duration;
4392 itemProps.delay = _this.props.delay;
4393 itemProps.ease = _this.props.ease;
4394 itemProps.sync = _this.props.sync || itemProps.sync;
4395 itemProps.elemOffset = {
4396 top: _this.state.domRect.top,
4397 width: _this.state.domRect.width,
4398 height: _this.state.domRect.height
4399 };
4400 itemProps.direction = _this.state.direction;
4401 itemProps.ratio = _this.ratio;
4402 itemProps.mouseMoveType = _this.mouseMoveType;
4403 elem.push(__WEBPACK_IMPORTED_MODULE_6_react___default.a.cloneElement(item, itemProps));
4404 } else if (item.type.isBannerAnimArrow) {
4405 itemProps.next = _this.next;
4406 itemProps.prev = _this.prev;
4407 itemProps.key = item.key || itemProps.arrowType;
4408 itemProps.elemHeight = _this.state.domRect.height;
4409 arrow.push(__WEBPACK_IMPORTED_MODULE_6_react___default.a.cloneElement(item, itemProps));
4410 } else if (item.type.isBannerAnimThumb) {
4411 itemProps.key = item.key || 'thumb-' + thumbKeyNum;
4412 thumbKeyNum += 1;
4413 itemProps.thumbClick = _this.slickGoTo;
4414 itemProps.active = _this.state.currentShow;
4415 thumb = __WEBPACK_IMPORTED_MODULE_6_react___default.a.cloneElement(item, itemProps);
4416 }
4417 });
4418 if (elem.length > 1) {
4419 if (!arrow.length && _this.props.arrow) {
4420 arrow.push(__WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10__Arrow__["a" /* default */], { arrowType: 'prev', key: 'arrowPrev', next: _this.next, prev: _this.prev, 'default': true }), __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10__Arrow__["a" /* default */], { arrowType: 'next', key: 'arrowNext', next: _this.next, prev: _this.prev, 'default': true }));
4421 }
4422 if (!thumb && _this.props.thumb) {
4423 thumb = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11__Thumb__["a" /* default */], { length: elem.length, key: 'thumb',
4424 thumbClick: _this.slickGoTo,
4425 active: _this.state.currentShow,
4426 'default': true
4427 });
4428 }
4429 }
4430 _this.elemWrapper = elem;
4431 return elem.concat(arrow, thumb);
4432 };
4433
4434 _this.getDomDataSetToState = function () {
4435 _this.dom = __WEBPACK_IMPORTED_MODULE_7_react_dom___default.a.findDOMNode(_this);
4436 var domRect = _this.dom.getBoundingClientRect();
4437 _this.setState({
4438 domRect: domRect
4439 });
4440 _this.tweenBool = false;
4441 };
4442
4443 _this.getAnimType = function (type) {
4444 var typeArray = type ? Object(__WEBPACK_IMPORTED_MODULE_12__utils__["c" /* dataToArray */])(type) : Object.keys(__WEBPACK_IMPORTED_MODULE_13__anim__["a" /* default */]);
4445 var random = Math.round(Math.random() * (typeArray.length - 1));
4446 return __WEBPACK_IMPORTED_MODULE_13__anim__["a" /* default */][typeArray[random]];
4447 };
4448
4449 _this.autoPlay = function () {
4450 _this.autoPlayId = __WEBPACK_IMPORTED_MODULE_9_rc_tween_one__["c" /* ticker */].interval(_this.next, _this.props.autoPlaySpeed);
4451 };
4452
4453 _this.animTweenStart = function (show, type, noGetAnimType) {
4454 if (!noGetAnimType) {
4455 _this.animType = _this.getAnimType(_this.props.type);
4456 }
4457 _this.props.onChange('before', show);
4458 _this.setState({
4459 currentShow: show,
4460 direction: type
4461 });
4462 };
4463
4464 _this.animEnd = function (type) {
4465 if (type === 'enter') {
4466 _this.tweenBool = false;
4467 _this.props.onChange('after', _this.state.currentShow);
4468 }
4469 };
4470
4471 _this.next = function () {
4472 if (!_this.tweenBool) {
4473 _this.tweenBool = true;
4474 var newShow = _this.state.currentShow;
4475 newShow++;
4476 if (newShow >= _this.elemWrapper.length) {
4477 newShow = 0;
4478 }
4479 _this.animTweenStart(newShow, 'next');
4480 }
4481 };
4482
4483 _this.prev = function () {
4484 if (!_this.tweenBool) {
4485 _this.tweenBool = true;
4486 var newShow = _this.state.currentShow;
4487 newShow--;
4488 if (newShow < 0) {
4489 newShow = _this.elemWrapper.length - 1;
4490 }
4491 _this.animTweenStart(newShow, 'prev');
4492 }
4493 };
4494
4495 _this.slickGoTo = function (i, noGetAnimType) {
4496 if (!_this.tweenBool && i !== _this.state.currentShow) {
4497 _this.tweenBool = true;
4498 var type = i > _this.state.currentShow ? 'next' : 'prev';
4499 _this.animTweenStart(i, type, noGetAnimType);
4500 }
4501 };
4502
4503 _this.state = {
4504 currentShow: _this.props.initShow,
4505 direction: null,
4506 domRect: {},
4507 $self: _this // eslint-disable-line
4508 };
4509 _this.tweenBool = false;
4510 return _this;
4511 }
4512
4513 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_createClass___default()(BannerAnim, [{
4514 key: 'componentDidMount',
4515 value: function componentDidMount() {
4516 this.getDomDataSetToState();
4517 if (window.addEventListener) {
4518 window.addEventListener('resize', this.getDomDataSetToState);
4519 } else {
4520 window.attachEvent('onresize', this.getDomDataSetToState);
4521 }
4522 if (this.props.autoPlay) {
4523 this.autoPlay();
4524 }
4525 }
4526 }, {
4527 key: 'componentWillUnmount',
4528 value: function componentWillUnmount() {
4529 if (this.autoPlayId) {
4530 __WEBPACK_IMPORTED_MODULE_9_rc_tween_one__["c" /* ticker */].clear(this.autoPlayId);
4531 this.autoPlayId = 0;
4532 }
4533 if (window.addEventListener) {
4534 window.removeEventListener('touchend', this.onTouchEnd);
4535 window.removeEventListener('mouseup', this.onTouchEnd);
4536 window.removeEventListener('resize', this.getDomDataSetToState);
4537 } else {
4538 window.detachEvent('ontouchend', this.onTouchEnd);
4539 window.attachEvent('onmouseup', this.onTouchEnd);
4540 window.detachEvent('onresize', this.getDomDataSetToState);
4541 }
4542 }
4543 }, {
4544 key: 'render',
4545 value: function render() {
4546 var _props = this.props,
4547 type = _props.type,
4548 prefixCls = _props.prefixCls,
4549 component = _props.component,
4550 initShow = _props.initShow,
4551 duration = _props.duration,
4552 delay = _props.delay,
4553 ease = _props.ease,
4554 arrow = _props.arrow,
4555 thumb = _props.thumb,
4556 autoPlaySpeed = _props.autoPlaySpeed,
4557 autoPlay = _props.autoPlay,
4558 sync = _props.sync,
4559 dragPlay = _props.dragPlay,
4560 autoPlayEffect = _props.autoPlayEffect,
4561 props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['type', 'prefixCls', 'component', 'initShow', 'duration', 'delay', 'ease', 'arrow', 'thumb', 'autoPlaySpeed', 'autoPlay', 'sync', 'dragPlay', 'autoPlayEffect']);
4562
4563 var childrenToRender = this.getRenderChildren(props.children);
4564 props.className = (props.className + ' ' + (prefixCls || '')).trim();
4565 props.style = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, props.style);
4566 props.onMouseEnter = this.onMouseEnter;
4567 props.onMouseLeave = this.onMouseLeave;
4568 if (childrenToRender.length > 1 && this.props.dragPlay) {
4569 props.onTouchStart = this.onTouchStart;
4570 props.onMouseDown = this.onTouchStart;
4571 props.onTouchMove = this.onTouchMove;
4572 props.onMouseMove = this.onTouchMove;
4573 props.onTouchEnd = this.onTouchEnd;
4574 props.onMouseUp = this.onTouchEnd;
4575 }
4576 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(this.props.component, props, childrenToRender);
4577 }
4578 }]);
4579
4580 return BannerAnim;
4581}(__WEBPACK_IMPORTED_MODULE_6_react__["Component"]);
4582
4583BannerAnim.propTypes = {
4584 children: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.any,
4585 style: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.object,
4586 className: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.string,
4587 prefixCls: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.string,
4588 component: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.any,
4589 arrow: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool,
4590 thumb: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool,
4591 initShow: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.number,
4592 type: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.any,
4593 duration: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.number,
4594 delay: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.number,
4595 ease: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.string,
4596 autoPlay: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool,
4597 autoPlaySpeed: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.number,
4598 autoPlayEffect: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool,
4599 onChange: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func,
4600 onMouseEnter: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func,
4601 onMouseLeave: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func,
4602 sync: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool,
4603 dragPlay: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool
4604};
4605BannerAnim.defaultProps = {
4606 component: 'div',
4607 className: 'banner-anim',
4608 initShow: 0,
4609 duration: 450,
4610 delay: 0,
4611 ease: 'easeInOutQuad',
4612 arrow: true,
4613 thumb: true,
4614 autoPlaySpeed: 5000,
4615 autoPlayEffect: true,
4616 dragPlay: true,
4617 onChange: function onChange() {},
4618 onMouseEnter: function onMouseEnter() {},
4619 onMouseLeave: function onMouseLeave() {}
4620};
4621BannerAnim.isBannerAnim = true;
4622/* harmony default export */ __webpack_exports__["a"] = (BannerAnim);
4623
4624/***/ }),
4625/* 71 */
4626/***/ (function(module, exports, __webpack_require__) {
4627
4628module.exports = { "default": __webpack_require__(72), __esModule: true };
4629
4630/***/ }),
4631/* 72 */
4632/***/ (function(module, exports, __webpack_require__) {
4633
4634__webpack_require__(73);
4635module.exports = __webpack_require__(3).Object.assign;
4636
4637
4638/***/ }),
4639/* 73 */
4640/***/ (function(module, exports, __webpack_require__) {
4641
4642// 19.1.3.1 Object.assign(target, source)
4643var $export = __webpack_require__(12);
4644
4645$export($export.S + $export.F, 'Object', { assign: __webpack_require__(75) });
4646
4647
4648/***/ }),
4649/* 74 */
4650/***/ (function(module, exports) {
4651
4652module.exports = function (it) {
4653 if (typeof it != 'function') throw TypeError(it + ' is not a function!');
4654 return it;
4655};
4656
4657
4658/***/ }),
4659/* 75 */
4660/***/ (function(module, exports, __webpack_require__) {
4661
4662"use strict";
4663
4664// 19.1.2.1 Object.assign(target, source, ...)
4665var DESCRIPTORS = __webpack_require__(4);
4666var getKeys = __webpack_require__(24);
4667var gOPS = __webpack_require__(37);
4668var pIE = __webpack_require__(27);
4669var toObject = __webpack_require__(38);
4670var IObject = __webpack_require__(52);
4671var $assign = Object.assign;
4672
4673// should work with symbols and should have deterministic property order (V8 bug)
4674module.exports = !$assign || __webpack_require__(20)(function () {
4675 var A = {};
4676 var B = {};
4677 // eslint-disable-next-line no-undef
4678 var S = Symbol();
4679 var K = 'abcdefghijklmnopqrst';
4680 A[S] = 7;
4681 K.split('').forEach(function (k) { B[k] = k; });
4682 return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
4683}) ? function assign(target, source) { // eslint-disable-line no-unused-vars
4684 var T = toObject(target);
4685 var aLen = arguments.length;
4686 var index = 1;
4687 var getSymbols = gOPS.f;
4688 var isEnum = pIE.f;
4689 while (aLen > index) {
4690 var S = IObject(arguments[index++]);
4691 var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
4692 var length = keys.length;
4693 var j = 0;
4694 var key;
4695 while (length > j) {
4696 key = keys[j++];
4697 if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key];
4698 }
4699 } return T;
4700} : $assign;
4701
4702
4703/***/ }),
4704/* 76 */
4705/***/ (function(module, exports, __webpack_require__) {
4706
4707// false -> Array#indexOf
4708// true -> Array#includes
4709var toIObject = __webpack_require__(15);
4710var toLength = __webpack_require__(77);
4711var toAbsoluteIndex = __webpack_require__(78);
4712module.exports = function (IS_INCLUDES) {
4713 return function ($this, el, fromIndex) {
4714 var O = toIObject($this);
4715 var length = toLength(O.length);
4716 var index = toAbsoluteIndex(fromIndex, length);
4717 var value;
4718 // Array#includes uses SameValueZero equality algorithm
4719 // eslint-disable-next-line no-self-compare
4720 if (IS_INCLUDES && el != el) while (length > index) {
4721 value = O[index++];
4722 // eslint-disable-next-line no-self-compare
4723 if (value != value) return true;
4724 // Array#indexOf ignores holes, Array#includes - not
4725 } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
4726 if (O[index] === el) return IS_INCLUDES || index || 0;
4727 } return !IS_INCLUDES && -1;
4728 };
4729};
4730
4731
4732/***/ }),
4733/* 77 */
4734/***/ (function(module, exports, __webpack_require__) {
4735
4736// 7.1.15 ToLength
4737var toInteger = __webpack_require__(33);
4738var min = Math.min;
4739module.exports = function (it) {
4740 return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
4741};
4742
4743
4744/***/ }),
4745/* 78 */
4746/***/ (function(module, exports, __webpack_require__) {
4747
4748var toInteger = __webpack_require__(33);
4749var max = Math.max;
4750var min = Math.min;
4751module.exports = function (index, length) {
4752 index = toInteger(index);
4753 return index < 0 ? max(index + length, 0) : min(index, length);
4754};
4755
4756
4757/***/ }),
4758/* 79 */
4759/***/ (function(module, exports, __webpack_require__) {
4760
4761module.exports = { "default": __webpack_require__(80), __esModule: true };
4762
4763/***/ }),
4764/* 80 */
4765/***/ (function(module, exports, __webpack_require__) {
4766
4767__webpack_require__(81);
4768__webpack_require__(87);
4769module.exports = __webpack_require__(42).f('iterator');
4770
4771
4772/***/ }),
4773/* 81 */
4774/***/ (function(module, exports, __webpack_require__) {
4775
4776"use strict";
4777
4778var $at = __webpack_require__(82)(true);
4779
4780// 21.1.3.27 String.prototype[@@iterator]()
4781__webpack_require__(55)(String, 'String', function (iterated) {
4782 this._t = String(iterated); // target
4783 this._i = 0; // next index
4784// 21.1.5.2.1 %StringIteratorPrototype%.next()
4785}, function () {
4786 var O = this._t;
4787 var index = this._i;
4788 var point;
4789 if (index >= O.length) return { value: undefined, done: true };
4790 point = $at(O, index);
4791 this._i += point.length;
4792 return { value: point, done: false };
4793});
4794
4795
4796/***/ }),
4797/* 82 */
4798/***/ (function(module, exports, __webpack_require__) {
4799
4800var toInteger = __webpack_require__(33);
4801var defined = __webpack_require__(32);
4802// true -> String#at
4803// false -> String#codePointAt
4804module.exports = function (TO_STRING) {
4805 return function (that, pos) {
4806 var s = String(defined(that));
4807 var i = toInteger(pos);
4808 var l = s.length;
4809 var a, b;
4810 if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
4811 a = s.charCodeAt(i);
4812 return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
4813 ? TO_STRING ? s.charAt(i) : a
4814 : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
4815 };
4816};
4817
4818
4819/***/ }),
4820/* 83 */
4821/***/ (function(module, exports, __webpack_require__) {
4822
4823"use strict";
4824
4825var create = __webpack_require__(40);
4826var descriptor = __webpack_require__(23);
4827var setToStringTag = __webpack_require__(41);
4828var IteratorPrototype = {};
4829
4830// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
4831__webpack_require__(13)(IteratorPrototype, __webpack_require__(16)('iterator'), function () { return this; });
4832
4833module.exports = function (Constructor, NAME, next) {
4834 Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
4835 setToStringTag(Constructor, NAME + ' Iterator');
4836};
4837
4838
4839/***/ }),
4840/* 84 */
4841/***/ (function(module, exports, __webpack_require__) {
4842
4843var dP = __webpack_require__(6);
4844var anObject = __webpack_require__(19);
4845var getKeys = __webpack_require__(24);
4846
4847module.exports = __webpack_require__(4) ? Object.defineProperties : function defineProperties(O, Properties) {
4848 anObject(O);
4849 var keys = getKeys(Properties);
4850 var length = keys.length;
4851 var i = 0;
4852 var P;
4853 while (length > i) dP.f(O, P = keys[i++], Properties[P]);
4854 return O;
4855};
4856
4857
4858/***/ }),
4859/* 85 */
4860/***/ (function(module, exports, __webpack_require__) {
4861
4862var document = __webpack_require__(2).document;
4863module.exports = document && document.documentElement;
4864
4865
4866/***/ }),
4867/* 86 */
4868/***/ (function(module, exports, __webpack_require__) {
4869
4870// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
4871var has = __webpack_require__(7);
4872var toObject = __webpack_require__(38);
4873var IE_PROTO = __webpack_require__(34)('IE_PROTO');
4874var ObjectProto = Object.prototype;
4875
4876module.exports = Object.getPrototypeOf || function (O) {
4877 O = toObject(O);
4878 if (has(O, IE_PROTO)) return O[IE_PROTO];
4879 if (typeof O.constructor == 'function' && O instanceof O.constructor) {
4880 return O.constructor.prototype;
4881 } return O instanceof Object ? ObjectProto : null;
4882};
4883
4884
4885/***/ }),
4886/* 87 */
4887/***/ (function(module, exports, __webpack_require__) {
4888
4889__webpack_require__(88);
4890var global = __webpack_require__(2);
4891var hide = __webpack_require__(13);
4892var Iterators = __webpack_require__(39);
4893var TO_STRING_TAG = __webpack_require__(16)('toStringTag');
4894
4895var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
4896 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
4897 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
4898 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
4899 'TextTrackList,TouchList').split(',');
4900
4901for (var i = 0; i < DOMIterables.length; i++) {
4902 var NAME = DOMIterables[i];
4903 var Collection = global[NAME];
4904 var proto = Collection && Collection.prototype;
4905 if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
4906 Iterators[NAME] = Iterators.Array;
4907}
4908
4909
4910/***/ }),
4911/* 88 */
4912/***/ (function(module, exports, __webpack_require__) {
4913
4914"use strict";
4915
4916var addToUnscopables = __webpack_require__(89);
4917var step = __webpack_require__(90);
4918var Iterators = __webpack_require__(39);
4919var toIObject = __webpack_require__(15);
4920
4921// 22.1.3.4 Array.prototype.entries()
4922// 22.1.3.13 Array.prototype.keys()
4923// 22.1.3.29 Array.prototype.values()
4924// 22.1.3.30 Array.prototype[@@iterator]()
4925module.exports = __webpack_require__(55)(Array, 'Array', function (iterated, kind) {
4926 this._t = toIObject(iterated); // target
4927 this._i = 0; // next index
4928 this._k = kind; // kind
4929// 22.1.5.2.1 %ArrayIteratorPrototype%.next()
4930}, function () {
4931 var O = this._t;
4932 var kind = this._k;
4933 var index = this._i++;
4934 if (!O || index >= O.length) {
4935 this._t = undefined;
4936 return step(1);
4937 }
4938 if (kind == 'keys') return step(0, index);
4939 if (kind == 'values') return step(0, O[index]);
4940 return step(0, [index, O[index]]);
4941}, 'values');
4942
4943// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
4944Iterators.Arguments = Iterators.Array;
4945
4946addToUnscopables('keys');
4947addToUnscopables('values');
4948addToUnscopables('entries');
4949
4950
4951/***/ }),
4952/* 89 */
4953/***/ (function(module, exports) {
4954
4955module.exports = function () { /* empty */ };
4956
4957
4958/***/ }),
4959/* 90 */
4960/***/ (function(module, exports) {
4961
4962module.exports = function (done, value) {
4963 return { value: value, done: !!done };
4964};
4965
4966
4967/***/ }),
4968/* 91 */
4969/***/ (function(module, exports, __webpack_require__) {
4970
4971module.exports = { "default": __webpack_require__(92), __esModule: true };
4972
4973/***/ }),
4974/* 92 */
4975/***/ (function(module, exports, __webpack_require__) {
4976
4977__webpack_require__(93);
4978__webpack_require__(98);
4979__webpack_require__(99);
4980__webpack_require__(100);
4981module.exports = __webpack_require__(3).Symbol;
4982
4983
4984/***/ }),
4985/* 93 */
4986/***/ (function(module, exports, __webpack_require__) {
4987
4988"use strict";
4989
4990// ECMAScript 6 symbols shim
4991var global = __webpack_require__(2);
4992var has = __webpack_require__(7);
4993var DESCRIPTORS = __webpack_require__(4);
4994var $export = __webpack_require__(12);
4995var redefine = __webpack_require__(56);
4996var META = __webpack_require__(94).KEY;
4997var $fails = __webpack_require__(20);
4998var shared = __webpack_require__(35);
4999var setToStringTag = __webpack_require__(41);
5000var uid = __webpack_require__(26);
5001var wks = __webpack_require__(16);
5002var wksExt = __webpack_require__(42);
5003var wksDefine = __webpack_require__(43);
5004var enumKeys = __webpack_require__(95);
5005var isArray = __webpack_require__(96);
5006var anObject = __webpack_require__(19);
5007var isObject = __webpack_require__(14);
5008var toObject = __webpack_require__(38);
5009var toIObject = __webpack_require__(15);
5010var toPrimitive = __webpack_require__(31);
5011var createDesc = __webpack_require__(23);
5012var _create = __webpack_require__(40);
5013var gOPNExt = __webpack_require__(97);
5014var $GOPD = __webpack_require__(58);
5015var $GOPS = __webpack_require__(37);
5016var $DP = __webpack_require__(6);
5017var $keys = __webpack_require__(24);
5018var gOPD = $GOPD.f;
5019var dP = $DP.f;
5020var gOPN = gOPNExt.f;
5021var $Symbol = global.Symbol;
5022var $JSON = global.JSON;
5023var _stringify = $JSON && $JSON.stringify;
5024var PROTOTYPE = 'prototype';
5025var HIDDEN = wks('_hidden');
5026var TO_PRIMITIVE = wks('toPrimitive');
5027var isEnum = {}.propertyIsEnumerable;
5028var SymbolRegistry = shared('symbol-registry');
5029var AllSymbols = shared('symbols');
5030var OPSymbols = shared('op-symbols');
5031var ObjectProto = Object[PROTOTYPE];
5032var USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f;
5033var QObject = global.QObject;
5034// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
5035var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
5036
5037// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
5038var setSymbolDesc = DESCRIPTORS && $fails(function () {
5039 return _create(dP({}, 'a', {
5040 get: function () { return dP(this, 'a', { value: 7 }).a; }
5041 })).a != 7;
5042}) ? function (it, key, D) {
5043 var protoDesc = gOPD(ObjectProto, key);
5044 if (protoDesc) delete ObjectProto[key];
5045 dP(it, key, D);
5046 if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);
5047} : dP;
5048
5049var wrap = function (tag) {
5050 var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
5051 sym._k = tag;
5052 return sym;
5053};
5054
5055var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
5056 return typeof it == 'symbol';
5057} : function (it) {
5058 return it instanceof $Symbol;
5059};
5060
5061var $defineProperty = function defineProperty(it, key, D) {
5062 if (it === ObjectProto) $defineProperty(OPSymbols, key, D);
5063 anObject(it);
5064 key = toPrimitive(key, true);
5065 anObject(D);
5066 if (has(AllSymbols, key)) {
5067 if (!D.enumerable) {
5068 if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
5069 it[HIDDEN][key] = true;
5070 } else {
5071 if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
5072 D = _create(D, { enumerable: createDesc(0, false) });
5073 } return setSymbolDesc(it, key, D);
5074 } return dP(it, key, D);
5075};
5076var $defineProperties = function defineProperties(it, P) {
5077 anObject(it);
5078 var keys = enumKeys(P = toIObject(P));
5079 var i = 0;
5080 var l = keys.length;
5081 var key;
5082 while (l > i) $defineProperty(it, key = keys[i++], P[key]);
5083 return it;
5084};
5085var $create = function create(it, P) {
5086 return P === undefined ? _create(it) : $defineProperties(_create(it), P);
5087};
5088var $propertyIsEnumerable = function propertyIsEnumerable(key) {
5089 var E = isEnum.call(this, key = toPrimitive(key, true));
5090 if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
5091 return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
5092};
5093var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
5094 it = toIObject(it);
5095 key = toPrimitive(key, true);
5096 if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
5097 var D = gOPD(it, key);
5098 if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
5099 return D;
5100};
5101var $getOwnPropertyNames = function getOwnPropertyNames(it) {
5102 var names = gOPN(toIObject(it));
5103 var result = [];
5104 var i = 0;
5105 var key;
5106 while (names.length > i) {
5107 if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
5108 } return result;
5109};
5110var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
5111 var IS_OP = it === ObjectProto;
5112 var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
5113 var result = [];
5114 var i = 0;
5115 var key;
5116 while (names.length > i) {
5117 if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
5118 } return result;
5119};
5120
5121// 19.4.1.1 Symbol([description])
5122if (!USE_NATIVE) {
5123 $Symbol = function Symbol() {
5124 if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
5125 var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
5126 var $set = function (value) {
5127 if (this === ObjectProto) $set.call(OPSymbols, value);
5128 if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
5129 setSymbolDesc(this, tag, createDesc(1, value));
5130 };
5131 if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
5132 return wrap(tag);
5133 };
5134 redefine($Symbol[PROTOTYPE], 'toString', function toString() {
5135 return this._k;
5136 });
5137
5138 $GOPD.f = $getOwnPropertyDescriptor;
5139 $DP.f = $defineProperty;
5140 __webpack_require__(57).f = gOPNExt.f = $getOwnPropertyNames;
5141 __webpack_require__(27).f = $propertyIsEnumerable;
5142 $GOPS.f = $getOwnPropertySymbols;
5143
5144 if (DESCRIPTORS && !__webpack_require__(25)) {
5145 redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
5146 }
5147
5148 wksExt.f = function (name) {
5149 return wrap(wks(name));
5150 };
5151}
5152
5153$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });
5154
5155for (var es6Symbols = (
5156 // 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
5157 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
5158).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);
5159
5160for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);
5161
5162$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
5163 // 19.4.2.1 Symbol.for(key)
5164 'for': function (key) {
5165 return has(SymbolRegistry, key += '')
5166 ? SymbolRegistry[key]
5167 : SymbolRegistry[key] = $Symbol(key);
5168 },
5169 // 19.4.2.5 Symbol.keyFor(sym)
5170 keyFor: function keyFor(sym) {
5171 if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
5172 for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
5173 },
5174 useSetter: function () { setter = true; },
5175 useSimple: function () { setter = false; }
5176});
5177
5178$export($export.S + $export.F * !USE_NATIVE, 'Object', {
5179 // 19.1.2.2 Object.create(O [, Properties])
5180 create: $create,
5181 // 19.1.2.4 Object.defineProperty(O, P, Attributes)
5182 defineProperty: $defineProperty,
5183 // 19.1.2.3 Object.defineProperties(O, Properties)
5184 defineProperties: $defineProperties,
5185 // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
5186 getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
5187 // 19.1.2.7 Object.getOwnPropertyNames(O)
5188 getOwnPropertyNames: $getOwnPropertyNames,
5189 // 19.1.2.8 Object.getOwnPropertySymbols(O)
5190 getOwnPropertySymbols: $getOwnPropertySymbols
5191});
5192
5193// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
5194// https://bugs.chromium.org/p/v8/issues/detail?id=3443
5195var FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); });
5196
5197$export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', {
5198 getOwnPropertySymbols: function getOwnPropertySymbols(it) {
5199 return $GOPS.f(toObject(it));
5200 }
5201});
5202
5203// 24.3.2 JSON.stringify(value [, replacer [, space]])
5204$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
5205 var S = $Symbol();
5206 // MS Edge converts symbol values to JSON as {}
5207 // WebKit converts symbol values to JSON as null
5208 // V8 throws on boxed symbols
5209 return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';
5210})), 'JSON', {
5211 stringify: function stringify(it) {
5212 var args = [it];
5213 var i = 1;
5214 var replacer, $replacer;
5215 while (arguments.length > i) args.push(arguments[i++]);
5216 $replacer = replacer = args[1];
5217 if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
5218 if (!isArray(replacer)) replacer = function (key, value) {
5219 if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
5220 if (!isSymbol(value)) return value;
5221 };
5222 args[1] = replacer;
5223 return _stringify.apply($JSON, args);
5224 }
5225});
5226
5227// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
5228$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(13)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
5229// 19.4.3.5 Symbol.prototype[@@toStringTag]
5230setToStringTag($Symbol, 'Symbol');
5231// 20.2.1.9 Math[@@toStringTag]
5232setToStringTag(Math, 'Math', true);
5233// 24.3.3 JSON[@@toStringTag]
5234setToStringTag(global.JSON, 'JSON', true);
5235
5236
5237/***/ }),
5238/* 94 */
5239/***/ (function(module, exports, __webpack_require__) {
5240
5241var META = __webpack_require__(26)('meta');
5242var isObject = __webpack_require__(14);
5243var has = __webpack_require__(7);
5244var setDesc = __webpack_require__(6).f;
5245var id = 0;
5246var isExtensible = Object.isExtensible || function () {
5247 return true;
5248};
5249var FREEZE = !__webpack_require__(20)(function () {
5250 return isExtensible(Object.preventExtensions({}));
5251});
5252var setMeta = function (it) {
5253 setDesc(it, META, { value: {
5254 i: 'O' + ++id, // object ID
5255 w: {} // weak collections IDs
5256 } });
5257};
5258var fastKey = function (it, create) {
5259 // return primitive with prefix
5260 if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
5261 if (!has(it, META)) {
5262 // can't set metadata to uncaught frozen object
5263 if (!isExtensible(it)) return 'F';
5264 // not necessary to add metadata
5265 if (!create) return 'E';
5266 // add missing metadata
5267 setMeta(it);
5268 // return object ID
5269 } return it[META].i;
5270};
5271var getWeak = function (it, create) {
5272 if (!has(it, META)) {
5273 // can't set metadata to uncaught frozen object
5274 if (!isExtensible(it)) return true;
5275 // not necessary to add metadata
5276 if (!create) return false;
5277 // add missing metadata
5278 setMeta(it);
5279 // return hash weak collections IDs
5280 } return it[META].w;
5281};
5282// add metadata on freeze-family methods calling
5283var onFreeze = function (it) {
5284 if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
5285 return it;
5286};
5287var meta = module.exports = {
5288 KEY: META,
5289 NEED: false,
5290 fastKey: fastKey,
5291 getWeak: getWeak,
5292 onFreeze: onFreeze
5293};
5294
5295
5296/***/ }),
5297/* 95 */
5298/***/ (function(module, exports, __webpack_require__) {
5299
5300// all enumerable object keys, includes symbols
5301var getKeys = __webpack_require__(24);
5302var gOPS = __webpack_require__(37);
5303var pIE = __webpack_require__(27);
5304module.exports = function (it) {
5305 var result = getKeys(it);
5306 var getSymbols = gOPS.f;
5307 if (getSymbols) {
5308 var symbols = getSymbols(it);
5309 var isEnum = pIE.f;
5310 var i = 0;
5311 var key;
5312 while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
5313 } return result;
5314};
5315
5316
5317/***/ }),
5318/* 96 */
5319/***/ (function(module, exports, __webpack_require__) {
5320
5321// 7.2.2 IsArray(argument)
5322var cof = __webpack_require__(53);
5323module.exports = Array.isArray || function isArray(arg) {
5324 return cof(arg) == 'Array';
5325};
5326
5327
5328/***/ }),
5329/* 97 */
5330/***/ (function(module, exports, __webpack_require__) {
5331
5332// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
5333var toIObject = __webpack_require__(15);
5334var gOPN = __webpack_require__(57).f;
5335var toString = {}.toString;
5336
5337var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
5338 ? Object.getOwnPropertyNames(window) : [];
5339
5340var getWindowNames = function (it) {
5341 try {
5342 return gOPN(it);
5343 } catch (e) {
5344 return windowNames.slice();
5345 }
5346};
5347
5348module.exports.f = function getOwnPropertyNames(it) {
5349 return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
5350};
5351
5352
5353/***/ }),
5354/* 98 */
5355/***/ (function(module, exports) {
5356
5357
5358
5359/***/ }),
5360/* 99 */
5361/***/ (function(module, exports, __webpack_require__) {
5362
5363__webpack_require__(43)('asyncIterator');
5364
5365
5366/***/ }),
5367/* 100 */
5368/***/ (function(module, exports, __webpack_require__) {
5369
5370__webpack_require__(43)('observable');
5371
5372
5373/***/ }),
5374/* 101 */
5375/***/ (function(module, exports, __webpack_require__) {
5376
5377module.exports = { "default": __webpack_require__(102), __esModule: true };
5378
5379/***/ }),
5380/* 102 */
5381/***/ (function(module, exports, __webpack_require__) {
5382
5383__webpack_require__(103);
5384var $Object = __webpack_require__(3).Object;
5385module.exports = function defineProperty(it, key, desc) {
5386 return $Object.defineProperty(it, key, desc);
5387};
5388
5389
5390/***/ }),
5391/* 103 */
5392/***/ (function(module, exports, __webpack_require__) {
5393
5394var $export = __webpack_require__(12);
5395// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
5396$export($export.S + $export.F * !__webpack_require__(4), 'Object', { defineProperty: __webpack_require__(6).f });
5397
5398
5399/***/ }),
5400/* 104 */
5401/***/ (function(module, exports, __webpack_require__) {
5402
5403module.exports = { "default": __webpack_require__(105), __esModule: true };
5404
5405/***/ }),
5406/* 105 */
5407/***/ (function(module, exports, __webpack_require__) {
5408
5409__webpack_require__(106);
5410module.exports = __webpack_require__(3).Object.setPrototypeOf;
5411
5412
5413/***/ }),
5414/* 106 */
5415/***/ (function(module, exports, __webpack_require__) {
5416
5417// 19.1.3.19 Object.setPrototypeOf(O, proto)
5418var $export = __webpack_require__(12);
5419$export($export.S, 'Object', { setPrototypeOf: __webpack_require__(107).set });
5420
5421
5422/***/ }),
5423/* 107 */
5424/***/ (function(module, exports, __webpack_require__) {
5425
5426// Works with __proto__ only. Old v8 can't work with null proto objects.
5427/* eslint-disable no-proto */
5428var isObject = __webpack_require__(14);
5429var anObject = __webpack_require__(19);
5430var check = function (O, proto) {
5431 anObject(O);
5432 if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
5433};
5434module.exports = {
5435 set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
5436 function (test, buggy, set) {
5437 try {
5438 set = __webpack_require__(48)(Function.call, __webpack_require__(58).f(Object.prototype, '__proto__').set, 2);
5439 set(test, []);
5440 buggy = !(test instanceof Array);
5441 } catch (e) { buggy = true; }
5442 return function setPrototypeOf(O, proto) {
5443 check(O, proto);
5444 if (buggy) O.__proto__ = proto;
5445 else set(O, proto);
5446 return O;
5447 };
5448 }({}, false) : undefined),
5449 check: check
5450};
5451
5452
5453/***/ }),
5454/* 108 */
5455/***/ (function(module, exports, __webpack_require__) {
5456
5457module.exports = { "default": __webpack_require__(109), __esModule: true };
5458
5459/***/ }),
5460/* 109 */
5461/***/ (function(module, exports, __webpack_require__) {
5462
5463__webpack_require__(110);
5464var $Object = __webpack_require__(3).Object;
5465module.exports = function create(P, D) {
5466 return $Object.create(P, D);
5467};
5468
5469
5470/***/ }),
5471/* 110 */
5472/***/ (function(module, exports, __webpack_require__) {
5473
5474var $export = __webpack_require__(12);
5475// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
5476$export($export.S, 'Object', { create: __webpack_require__(40) });
5477
5478
5479/***/ }),
5480/* 111 */
5481/***/ (function(module, exports, __webpack_require__) {
5482
5483"use strict";
5484/** @license React v16.9.0
5485 * react-is.production.min.js
5486 *
5487 * Copyright (c) Facebook, Inc. and its affiliates.
5488 *
5489 * This source code is licensed under the MIT license found in the
5490 * LICENSE file in the root directory of this source tree.
5491 */
5492
5493Object.defineProperty(exports,"__esModule",{value:!0});
5494var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?Symbol.for("react.suspense_list"):
549560120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.fundamental"):60117,w=b?Symbol.for("react.responder"):60118;function x(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 t:case r:case d:return u}}}function y(a){return x(a)===m}exports.typeOf=x;exports.AsyncMode=l;
5496exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;exports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;
5497exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===v||a.$$typeof===w)};exports.isAsyncMode=function(a){return y(a)||x(a)===l};exports.isConcurrentMode=y;exports.isContextConsumer=function(a){return x(a)===k};exports.isContextProvider=function(a){return x(a)===h};
5498exports.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return x(a)===n};exports.isFragment=function(a){return x(a)===e};exports.isLazy=function(a){return x(a)===t};exports.isMemo=function(a){return x(a)===r};exports.isPortal=function(a){return x(a)===d};exports.isProfiler=function(a){return x(a)===g};exports.isStrictMode=function(a){return x(a)===f};exports.isSuspense=function(a){return x(a)===p};
5499
5500
5501/***/ }),
5502/* 112 */
5503/***/ (function(module, exports, __webpack_require__) {
5504
5505"use strict";
5506/* WEBPACK VAR INJECTION */(function(process) {/** @license React v16.9.0
5507 * react-is.development.js
5508 *
5509 * Copyright (c) Facebook, Inc. and its affiliates.
5510 *
5511 * This source code is licensed under the MIT license found in the
5512 * LICENSE file in the root directory of this source tree.
5513 */
5514
5515
5516
5517
5518
5519if (process.env.NODE_ENV !== "production") {
5520 (function() {
5521'use strict';
5522
5523Object.defineProperty(exports, '__esModule', { value: true });
5524
5525// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
5526// nor polyfill, then a plain number is used for performance.
5527var hasSymbol = typeof Symbol === 'function' && Symbol.for;
5528
5529var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
5530var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
5531var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
5532var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
5533var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
5534var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
5535var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
5536// TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
5537// (unstable) APIs that have been removed. Can we remove the symbols?
5538var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
5539var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
5540var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
5541var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
5542var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
5543var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
5544var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
5545var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
5546var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
5547
5548function isValidElementType(type) {
5549 return typeof type === 'string' || typeof type === 'function' ||
5550 // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
5551 type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE);
5552}
5553
5554/**
5555 * Forked from fbjs/warning:
5556 * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
5557 *
5558 * Only change is we use console.warn instead of console.error,
5559 * and do nothing when 'console' is not supported.
5560 * This really simplifies the code.
5561 * ---
5562 * Similar to invariant but only logs a warning if the condition is not met.
5563 * This can be used to log issues in development environments in critical
5564 * paths. Removing the logging code for production environments will keep the
5565 * same logic and follow the same code paths.
5566 */
5567
5568var lowPriorityWarning = function () {};
5569
5570{
5571 var printWarning = function (format) {
5572 for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
5573 args[_key - 1] = arguments[_key];
5574 }
5575
5576 var argIndex = 0;
5577 var message = 'Warning: ' + format.replace(/%s/g, function () {
5578 return args[argIndex++];
5579 });
5580 if (typeof console !== 'undefined') {
5581 console.warn(message);
5582 }
5583 try {
5584 // --- Welcome to debugging React ---
5585 // This error was thrown as a convenience so that you can use this stack
5586 // to find the callsite that caused this warning to fire.
5587 throw new Error(message);
5588 } catch (x) {}
5589 };
5590
5591 lowPriorityWarning = function (condition, format) {
5592 if (format === undefined) {
5593 throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
5594 }
5595 if (!condition) {
5596 for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
5597 args[_key2 - 2] = arguments[_key2];
5598 }
5599
5600 printWarning.apply(undefined, [format].concat(args));
5601 }
5602 };
5603}
5604
5605var lowPriorityWarning$1 = lowPriorityWarning;
5606
5607function typeOf(object) {
5608 if (typeof object === 'object' && object !== null) {
5609 var $$typeof = object.$$typeof;
5610 switch ($$typeof) {
5611 case REACT_ELEMENT_TYPE:
5612 var type = object.type;
5613
5614 switch (type) {
5615 case REACT_ASYNC_MODE_TYPE:
5616 case REACT_CONCURRENT_MODE_TYPE:
5617 case REACT_FRAGMENT_TYPE:
5618 case REACT_PROFILER_TYPE:
5619 case REACT_STRICT_MODE_TYPE:
5620 case REACT_SUSPENSE_TYPE:
5621 return type;
5622 default:
5623 var $$typeofType = type && type.$$typeof;
5624
5625 switch ($$typeofType) {
5626 case REACT_CONTEXT_TYPE:
5627 case REACT_FORWARD_REF_TYPE:
5628 case REACT_PROVIDER_TYPE:
5629 return $$typeofType;
5630 default:
5631 return $$typeof;
5632 }
5633 }
5634 case REACT_LAZY_TYPE:
5635 case REACT_MEMO_TYPE:
5636 case REACT_PORTAL_TYPE:
5637 return $$typeof;
5638 }
5639 }
5640
5641 return undefined;
5642}
5643
5644// AsyncMode is deprecated along with isAsyncMode
5645var AsyncMode = REACT_ASYNC_MODE_TYPE;
5646var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
5647var ContextConsumer = REACT_CONTEXT_TYPE;
5648var ContextProvider = REACT_PROVIDER_TYPE;
5649var Element = REACT_ELEMENT_TYPE;
5650var ForwardRef = REACT_FORWARD_REF_TYPE;
5651var Fragment = REACT_FRAGMENT_TYPE;
5652var Lazy = REACT_LAZY_TYPE;
5653var Memo = REACT_MEMO_TYPE;
5654var Portal = REACT_PORTAL_TYPE;
5655var Profiler = REACT_PROFILER_TYPE;
5656var StrictMode = REACT_STRICT_MODE_TYPE;
5657var Suspense = REACT_SUSPENSE_TYPE;
5658
5659var hasWarnedAboutDeprecatedIsAsyncMode = false;
5660
5661// AsyncMode should be deprecated
5662function isAsyncMode(object) {
5663 {
5664 if (!hasWarnedAboutDeprecatedIsAsyncMode) {
5665 hasWarnedAboutDeprecatedIsAsyncMode = true;
5666 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.');
5667 }
5668 }
5669 return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
5670}
5671function isConcurrentMode(object) {
5672 return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
5673}
5674function isContextConsumer(object) {
5675 return typeOf(object) === REACT_CONTEXT_TYPE;
5676}
5677function isContextProvider(object) {
5678 return typeOf(object) === REACT_PROVIDER_TYPE;
5679}
5680function isElement(object) {
5681 return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
5682}
5683function isForwardRef(object) {
5684 return typeOf(object) === REACT_FORWARD_REF_TYPE;
5685}
5686function isFragment(object) {
5687 return typeOf(object) === REACT_FRAGMENT_TYPE;
5688}
5689function isLazy(object) {
5690 return typeOf(object) === REACT_LAZY_TYPE;
5691}
5692function isMemo(object) {
5693 return typeOf(object) === REACT_MEMO_TYPE;
5694}
5695function isPortal(object) {
5696 return typeOf(object) === REACT_PORTAL_TYPE;
5697}
5698function isProfiler(object) {
5699 return typeOf(object) === REACT_PROFILER_TYPE;
5700}
5701function isStrictMode(object) {
5702 return typeOf(object) === REACT_STRICT_MODE_TYPE;
5703}
5704function isSuspense(object) {
5705 return typeOf(object) === REACT_SUSPENSE_TYPE;
5706}
5707
5708exports.typeOf = typeOf;
5709exports.AsyncMode = AsyncMode;
5710exports.ConcurrentMode = ConcurrentMode;
5711exports.ContextConsumer = ContextConsumer;
5712exports.ContextProvider = ContextProvider;
5713exports.Element = Element;
5714exports.ForwardRef = ForwardRef;
5715exports.Fragment = Fragment;
5716exports.Lazy = Lazy;
5717exports.Memo = Memo;
5718exports.Portal = Portal;
5719exports.Profiler = Profiler;
5720exports.StrictMode = StrictMode;
5721exports.Suspense = Suspense;
5722exports.isValidElementType = isValidElementType;
5723exports.isAsyncMode = isAsyncMode;
5724exports.isConcurrentMode = isConcurrentMode;
5725exports.isContextConsumer = isContextConsumer;
5726exports.isContextProvider = isContextProvider;
5727exports.isElement = isElement;
5728exports.isForwardRef = isForwardRef;
5729exports.isFragment = isFragment;
5730exports.isLazy = isLazy;
5731exports.isMemo = isMemo;
5732exports.isPortal = isPortal;
5733exports.isProfiler = isProfiler;
5734exports.isStrictMode = isStrictMode;
5735exports.isSuspense = isSuspense;
5736 })();
5737}
5738
5739/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(17)))
5740
5741/***/ }),
5742/* 113 */
5743/***/ (function(module, exports, __webpack_require__) {
5744
5745"use strict";
5746/* WEBPACK VAR INJECTION */(function(process) {/**
5747 * Copyright (c) 2013-present, Facebook, Inc.
5748 *
5749 * This source code is licensed under the MIT license found in the
5750 * LICENSE file in the root directory of this source tree.
5751 */
5752
5753
5754
5755var ReactIs = __webpack_require__(59);
5756var assign = __webpack_require__(114);
5757
5758var ReactPropTypesSecret = __webpack_require__(44);
5759var checkPropTypes = __webpack_require__(115);
5760
5761var has = Function.call.bind(Object.prototype.hasOwnProperty);
5762var printWarning = function() {};
5763
5764if (process.env.NODE_ENV !== 'production') {
5765 printWarning = function(text) {
5766 var message = 'Warning: ' + text;
5767 if (typeof console !== 'undefined') {
5768 console.error(message);
5769 }
5770 try {
5771 // --- Welcome to debugging React ---
5772 // This error was thrown as a convenience so that you can use this stack
5773 // to find the callsite that caused this warning to fire.
5774 throw new Error(message);
5775 } catch (x) {}
5776 };
5777}
5778
5779function emptyFunctionThatReturnsNull() {
5780 return null;
5781}
5782
5783module.exports = function(isValidElement, throwOnDirectAccess) {
5784 /* global Symbol */
5785 var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
5786 var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
5787
5788 /**
5789 * Returns the iterator method function contained on the iterable object.
5790 *
5791 * Be sure to invoke the function with the iterable as context:
5792 *
5793 * var iteratorFn = getIteratorFn(myIterable);
5794 * if (iteratorFn) {
5795 * var iterator = iteratorFn.call(myIterable);
5796 * ...
5797 * }
5798 *
5799 * @param {?object} maybeIterable
5800 * @return {?function}
5801 */
5802 function getIteratorFn(maybeIterable) {
5803 var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
5804 if (typeof iteratorFn === 'function') {
5805 return iteratorFn;
5806 }
5807 }
5808
5809 /**
5810 * Collection of methods that allow declaration and validation of props that are
5811 * supplied to React components. Example usage:
5812 *
5813 * var Props = require('ReactPropTypes');
5814 * var MyArticle = React.createClass({
5815 * propTypes: {
5816 * // An optional string prop named "description".
5817 * description: Props.string,
5818 *
5819 * // A required enum prop named "category".
5820 * category: Props.oneOf(['News','Photos']).isRequired,
5821 *
5822 * // A prop named "dialog" that requires an instance of Dialog.
5823 * dialog: Props.instanceOf(Dialog).isRequired
5824 * },
5825 * render: function() { ... }
5826 * });
5827 *
5828 * A more formal specification of how these methods are used:
5829 *
5830 * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
5831 * decl := ReactPropTypes.{type}(.isRequired)?
5832 *
5833 * Each and every declaration produces a function with the same signature. This
5834 * allows the creation of custom validation functions. For example:
5835 *
5836 * var MyLink = React.createClass({
5837 * propTypes: {
5838 * // An optional string or URI prop named "href".
5839 * href: function(props, propName, componentName) {
5840 * var propValue = props[propName];
5841 * if (propValue != null && typeof propValue !== 'string' &&
5842 * !(propValue instanceof URI)) {
5843 * return new Error(
5844 * 'Expected a string or an URI for ' + propName + ' in ' +
5845 * componentName
5846 * );
5847 * }
5848 * }
5849 * },
5850 * render: function() {...}
5851 * });
5852 *
5853 * @internal
5854 */
5855
5856 var ANONYMOUS = '<<anonymous>>';
5857
5858 // Important!
5859 // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
5860 var ReactPropTypes = {
5861 array: createPrimitiveTypeChecker('array'),
5862 bool: createPrimitiveTypeChecker('boolean'),
5863 func: createPrimitiveTypeChecker('function'),
5864 number: createPrimitiveTypeChecker('number'),
5865 object: createPrimitiveTypeChecker('object'),
5866 string: createPrimitiveTypeChecker('string'),
5867 symbol: createPrimitiveTypeChecker('symbol'),
5868
5869 any: createAnyTypeChecker(),
5870 arrayOf: createArrayOfTypeChecker,
5871 element: createElementTypeChecker(),
5872 elementType: createElementTypeTypeChecker(),
5873 instanceOf: createInstanceTypeChecker,
5874 node: createNodeChecker(),
5875 objectOf: createObjectOfTypeChecker,
5876 oneOf: createEnumTypeChecker,
5877 oneOfType: createUnionTypeChecker,
5878 shape: createShapeTypeChecker,
5879 exact: createStrictShapeTypeChecker,
5880 };
5881
5882 /**
5883 * inlined Object.is polyfill to avoid requiring consumers ship their own
5884 * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
5885 */
5886 /*eslint-disable no-self-compare*/
5887 function is(x, y) {
5888 // SameValue algorithm
5889 if (x === y) {
5890 // Steps 1-5, 7-10
5891 // Steps 6.b-6.e: +0 != -0
5892 return x !== 0 || 1 / x === 1 / y;
5893 } else {
5894 // Step 6.a: NaN == NaN
5895 return x !== x && y !== y;
5896 }
5897 }
5898 /*eslint-enable no-self-compare*/
5899
5900 /**
5901 * We use an Error-like object for backward compatibility as people may call
5902 * PropTypes directly and inspect their output. However, we don't use real
5903 * Errors anymore. We don't inspect their stack anyway, and creating them
5904 * is prohibitively expensive if they are created too often, such as what
5905 * happens in oneOfType() for any type before the one that matched.
5906 */
5907 function PropTypeError(message) {
5908 this.message = message;
5909 this.stack = '';
5910 }
5911 // Make `instanceof Error` still work for returned errors.
5912 PropTypeError.prototype = Error.prototype;
5913
5914 function createChainableTypeChecker(validate) {
5915 if (process.env.NODE_ENV !== 'production') {
5916 var manualPropTypeCallCache = {};
5917 var manualPropTypeWarningCount = 0;
5918 }
5919 function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
5920 componentName = componentName || ANONYMOUS;
5921 propFullName = propFullName || propName;
5922
5923 if (secret !== ReactPropTypesSecret) {
5924 if (throwOnDirectAccess) {
5925 // New behavior only for users of `prop-types` package
5926 var err = new Error(
5927 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
5928 'Use `PropTypes.checkPropTypes()` to call them. ' +
5929 'Read more at http://fb.me/use-check-prop-types'
5930 );
5931 err.name = 'Invariant Violation';
5932 throw err;
5933 } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
5934 // Old behavior for people using React.PropTypes
5935 var cacheKey = componentName + ':' + propName;
5936 if (
5937 !manualPropTypeCallCache[cacheKey] &&
5938 // Avoid spamming the console because they are often not actionable except for lib authors
5939 manualPropTypeWarningCount < 3
5940 ) {
5941 printWarning(
5942 'You are manually calling a React.PropTypes validation ' +
5943 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
5944 'and will throw in the standalone `prop-types` package. ' +
5945 'You may be seeing this warning due to a third-party PropTypes ' +
5946 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
5947 );
5948 manualPropTypeCallCache[cacheKey] = true;
5949 manualPropTypeWarningCount++;
5950 }
5951 }
5952 }
5953 if (props[propName] == null) {
5954 if (isRequired) {
5955 if (props[propName] === null) {
5956 return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
5957 }
5958 return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
5959 }
5960 return null;
5961 } else {
5962 return validate(props, propName, componentName, location, propFullName);
5963 }
5964 }
5965
5966 var chainedCheckType = checkType.bind(null, false);
5967 chainedCheckType.isRequired = checkType.bind(null, true);
5968
5969 return chainedCheckType;
5970 }
5971
5972 function createPrimitiveTypeChecker(expectedType) {
5973 function validate(props, propName, componentName, location, propFullName, secret) {
5974 var propValue = props[propName];
5975 var propType = getPropType(propValue);
5976 if (propType !== expectedType) {
5977 // `propValue` being instance of, say, date/regexp, pass the 'object'
5978 // check, but we can offer a more precise error message here rather than
5979 // 'of type `object`'.
5980 var preciseType = getPreciseType(propValue);
5981
5982 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
5983 }
5984 return null;
5985 }
5986 return createChainableTypeChecker(validate);
5987 }
5988
5989 function createAnyTypeChecker() {
5990 return createChainableTypeChecker(emptyFunctionThatReturnsNull);
5991 }
5992
5993 function createArrayOfTypeChecker(typeChecker) {
5994 function validate(props, propName, componentName, location, propFullName) {
5995 if (typeof typeChecker !== 'function') {
5996 return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
5997 }
5998 var propValue = props[propName];
5999 if (!Array.isArray(propValue)) {
6000 var propType = getPropType(propValue);
6001 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
6002 }
6003 for (var i = 0; i < propValue.length; i++) {
6004 var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
6005 if (error instanceof Error) {
6006 return error;
6007 }
6008 }
6009 return null;
6010 }
6011 return createChainableTypeChecker(validate);
6012 }
6013
6014 function createElementTypeChecker() {
6015 function validate(props, propName, componentName, location, propFullName) {
6016 var propValue = props[propName];
6017 if (!isValidElement(propValue)) {
6018 var propType = getPropType(propValue);
6019 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
6020 }
6021 return null;
6022 }
6023 return createChainableTypeChecker(validate);
6024 }
6025
6026 function createElementTypeTypeChecker() {
6027 function validate(props, propName, componentName, location, propFullName) {
6028 var propValue = props[propName];
6029 if (!ReactIs.isValidElementType(propValue)) {
6030 var propType = getPropType(propValue);
6031 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
6032 }
6033 return null;
6034 }
6035 return createChainableTypeChecker(validate);
6036 }
6037
6038 function createInstanceTypeChecker(expectedClass) {
6039 function validate(props, propName, componentName, location, propFullName) {
6040 if (!(props[propName] instanceof expectedClass)) {
6041 var expectedClassName = expectedClass.name || ANONYMOUS;
6042 var actualClassName = getClassName(props[propName]);
6043 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
6044 }
6045 return null;
6046 }
6047 return createChainableTypeChecker(validate);
6048 }
6049
6050 function createEnumTypeChecker(expectedValues) {
6051 if (!Array.isArray(expectedValues)) {
6052 if (process.env.NODE_ENV !== 'production') {
6053 if (arguments.length > 1) {
6054 printWarning(
6055 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
6056 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
6057 );
6058 } else {
6059 printWarning('Invalid argument supplied to oneOf, expected an array.');
6060 }
6061 }
6062 return emptyFunctionThatReturnsNull;
6063 }
6064
6065 function validate(props, propName, componentName, location, propFullName) {
6066 var propValue = props[propName];
6067 for (var i = 0; i < expectedValues.length; i++) {
6068 if (is(propValue, expectedValues[i])) {
6069 return null;
6070 }
6071 }
6072
6073 var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
6074 var type = getPreciseType(value);
6075 if (type === 'symbol') {
6076 return String(value);
6077 }
6078 return value;
6079 });
6080 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
6081 }
6082 return createChainableTypeChecker(validate);
6083 }
6084
6085 function createObjectOfTypeChecker(typeChecker) {
6086 function validate(props, propName, componentName, location, propFullName) {
6087 if (typeof typeChecker !== 'function') {
6088 return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
6089 }
6090 var propValue = props[propName];
6091 var propType = getPropType(propValue);
6092 if (propType !== 'object') {
6093 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
6094 }
6095 for (var key in propValue) {
6096 if (has(propValue, key)) {
6097 var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
6098 if (error instanceof Error) {
6099 return error;
6100 }
6101 }
6102 }
6103 return null;
6104 }
6105 return createChainableTypeChecker(validate);
6106 }
6107
6108 function createUnionTypeChecker(arrayOfTypeCheckers) {
6109 if (!Array.isArray(arrayOfTypeCheckers)) {
6110 process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
6111 return emptyFunctionThatReturnsNull;
6112 }
6113
6114 for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
6115 var checker = arrayOfTypeCheckers[i];
6116 if (typeof checker !== 'function') {
6117 printWarning(
6118 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
6119 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
6120 );
6121 return emptyFunctionThatReturnsNull;
6122 }
6123 }
6124
6125 function validate(props, propName, componentName, location, propFullName) {
6126 for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
6127 var checker = arrayOfTypeCheckers[i];
6128 if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
6129 return null;
6130 }
6131 }
6132
6133 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
6134 }
6135 return createChainableTypeChecker(validate);
6136 }
6137
6138 function createNodeChecker() {
6139 function validate(props, propName, componentName, location, propFullName) {
6140 if (!isNode(props[propName])) {
6141 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
6142 }
6143 return null;
6144 }
6145 return createChainableTypeChecker(validate);
6146 }
6147
6148 function createShapeTypeChecker(shapeTypes) {
6149 function validate(props, propName, componentName, location, propFullName) {
6150 var propValue = props[propName];
6151 var propType = getPropType(propValue);
6152 if (propType !== 'object') {
6153 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
6154 }
6155 for (var key in shapeTypes) {
6156 var checker = shapeTypes[key];
6157 if (!checker) {
6158 continue;
6159 }
6160 var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
6161 if (error) {
6162 return error;
6163 }
6164 }
6165 return null;
6166 }
6167 return createChainableTypeChecker(validate);
6168 }
6169
6170 function createStrictShapeTypeChecker(shapeTypes) {
6171 function validate(props, propName, componentName, location, propFullName) {
6172 var propValue = props[propName];
6173 var propType = getPropType(propValue);
6174 if (propType !== 'object') {
6175 return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
6176 }
6177 // We need to check all keys in case some are required but missing from
6178 // props.
6179 var allKeys = assign({}, props[propName], shapeTypes);
6180 for (var key in allKeys) {
6181 var checker = shapeTypes[key];
6182 if (!checker) {
6183 return new PropTypeError(
6184 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
6185 '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
6186 '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
6187 );
6188 }
6189 var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
6190 if (error) {
6191 return error;
6192 }
6193 }
6194 return null;
6195 }
6196
6197 return createChainableTypeChecker(validate);
6198 }
6199
6200 function isNode(propValue) {
6201 switch (typeof propValue) {
6202 case 'number':
6203 case 'string':
6204 case 'undefined':
6205 return true;
6206 case 'boolean':
6207 return !propValue;
6208 case 'object':
6209 if (Array.isArray(propValue)) {
6210 return propValue.every(isNode);
6211 }
6212 if (propValue === null || isValidElement(propValue)) {
6213 return true;
6214 }
6215
6216 var iteratorFn = getIteratorFn(propValue);
6217 if (iteratorFn) {
6218 var iterator = iteratorFn.call(propValue);
6219 var step;
6220 if (iteratorFn !== propValue.entries) {
6221 while (!(step = iterator.next()).done) {
6222 if (!isNode(step.value)) {
6223 return false;
6224 }
6225 }
6226 } else {
6227 // Iterator will provide entry [k,v] tuples rather than values.
6228 while (!(step = iterator.next()).done) {
6229 var entry = step.value;
6230 if (entry) {
6231 if (!isNode(entry[1])) {
6232 return false;
6233 }
6234 }
6235 }
6236 }
6237 } else {
6238 return false;
6239 }
6240
6241 return true;
6242 default:
6243 return false;
6244 }
6245 }
6246
6247 function isSymbol(propType, propValue) {
6248 // Native Symbol.
6249 if (propType === 'symbol') {
6250 return true;
6251 }
6252
6253 // falsy value can't be a Symbol
6254 if (!propValue) {
6255 return false;
6256 }
6257
6258 // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
6259 if (propValue['@@toStringTag'] === 'Symbol') {
6260 return true;
6261 }
6262
6263 // Fallback for non-spec compliant Symbols which are polyfilled.
6264 if (typeof Symbol === 'function' && propValue instanceof Symbol) {
6265 return true;
6266 }
6267
6268 return false;
6269 }
6270
6271 // Equivalent of `typeof` but with special handling for array and regexp.
6272 function getPropType(propValue) {
6273 var propType = typeof propValue;
6274 if (Array.isArray(propValue)) {
6275 return 'array';
6276 }
6277 if (propValue instanceof RegExp) {
6278 // Old webkits (at least until Android 4.0) return 'function' rather than
6279 // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
6280 // passes PropTypes.object.
6281 return 'object';
6282 }
6283 if (isSymbol(propType, propValue)) {
6284 return 'symbol';
6285 }
6286 return propType;
6287 }
6288
6289 // This handles more types than `getPropType`. Only used for error messages.
6290 // See `createPrimitiveTypeChecker`.
6291 function getPreciseType(propValue) {
6292 if (typeof propValue === 'undefined' || propValue === null) {
6293 return '' + propValue;
6294 }
6295 var propType = getPropType(propValue);
6296 if (propType === 'object') {
6297 if (propValue instanceof Date) {
6298 return 'date';
6299 } else if (propValue instanceof RegExp) {
6300 return 'regexp';
6301 }
6302 }
6303 return propType;
6304 }
6305
6306 // Returns a string that is postfixed to a warning about an invalid type.
6307 // For example, "undefined" or "of type array"
6308 function getPostfixForTypeWarning(value) {
6309 var type = getPreciseType(value);
6310 switch (type) {
6311 case 'array':
6312 case 'object':
6313 return 'an ' + type;
6314 case 'boolean':
6315 case 'date':
6316 case 'regexp':
6317 return 'a ' + type;
6318 default:
6319 return type;
6320 }
6321 }
6322
6323 // Returns class name of the object, if any.
6324 function getClassName(propValue) {
6325 if (!propValue.constructor || !propValue.constructor.name) {
6326 return ANONYMOUS;
6327 }
6328 return propValue.constructor.name;
6329 }
6330
6331 ReactPropTypes.checkPropTypes = checkPropTypes;
6332 ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
6333 ReactPropTypes.PropTypes = ReactPropTypes;
6334
6335 return ReactPropTypes;
6336};
6337
6338/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(17)))
6339
6340/***/ }),
6341/* 114 */
6342/***/ (function(module, exports, __webpack_require__) {
6343
6344"use strict";
6345/*
6346object-assign
6347(c) Sindre Sorhus
6348@license MIT
6349*/
6350
6351
6352/* eslint-disable no-unused-vars */
6353var getOwnPropertySymbols = Object.getOwnPropertySymbols;
6354var hasOwnProperty = Object.prototype.hasOwnProperty;
6355var propIsEnumerable = Object.prototype.propertyIsEnumerable;
6356
6357function toObject(val) {
6358 if (val === null || val === undefined) {
6359 throw new TypeError('Object.assign cannot be called with null or undefined');
6360 }
6361
6362 return Object(val);
6363}
6364
6365function shouldUseNative() {
6366 try {
6367 if (!Object.assign) {
6368 return false;
6369 }
6370
6371 // Detect buggy property enumeration order in older V8 versions.
6372
6373 // https://bugs.chromium.org/p/v8/issues/detail?id=4118
6374 var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
6375 test1[5] = 'de';
6376 if (Object.getOwnPropertyNames(test1)[0] === '5') {
6377 return false;
6378 }
6379
6380 // https://bugs.chromium.org/p/v8/issues/detail?id=3056
6381 var test2 = {};
6382 for (var i = 0; i < 10; i++) {
6383 test2['_' + String.fromCharCode(i)] = i;
6384 }
6385 var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
6386 return test2[n];
6387 });
6388 if (order2.join('') !== '0123456789') {
6389 return false;
6390 }
6391
6392 // https://bugs.chromium.org/p/v8/issues/detail?id=3056
6393 var test3 = {};
6394 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
6395 test3[letter] = letter;
6396 });
6397 if (Object.keys(Object.assign({}, test3)).join('') !==
6398 'abcdefghijklmnopqrst') {
6399 return false;
6400 }
6401
6402 return true;
6403 } catch (err) {
6404 // We don't expect any of the above to throw, but better to be safe.
6405 return false;
6406 }
6407}
6408
6409module.exports = shouldUseNative() ? Object.assign : function (target, source) {
6410 var from;
6411 var to = toObject(target);
6412 var symbols;
6413
6414 for (var s = 1; s < arguments.length; s++) {
6415 from = Object(arguments[s]);
6416
6417 for (var key in from) {
6418 if (hasOwnProperty.call(from, key)) {
6419 to[key] = from[key];
6420 }
6421 }
6422
6423 if (getOwnPropertySymbols) {
6424 symbols = getOwnPropertySymbols(from);
6425 for (var i = 0; i < symbols.length; i++) {
6426 if (propIsEnumerable.call(from, symbols[i])) {
6427 to[symbols[i]] = from[symbols[i]];
6428 }
6429 }
6430 }
6431 }
6432
6433 return to;
6434};
6435
6436
6437/***/ }),
6438/* 115 */
6439/***/ (function(module, exports, __webpack_require__) {
6440
6441"use strict";
6442/* WEBPACK VAR INJECTION */(function(process) {/**
6443 * Copyright (c) 2013-present, Facebook, Inc.
6444 *
6445 * This source code is licensed under the MIT license found in the
6446 * LICENSE file in the root directory of this source tree.
6447 */
6448
6449
6450
6451var printWarning = function() {};
6452
6453if (process.env.NODE_ENV !== 'production') {
6454 var ReactPropTypesSecret = __webpack_require__(44);
6455 var loggedTypeFailures = {};
6456 var has = Function.call.bind(Object.prototype.hasOwnProperty);
6457
6458 printWarning = function(text) {
6459 var message = 'Warning: ' + text;
6460 if (typeof console !== 'undefined') {
6461 console.error(message);
6462 }
6463 try {
6464 // --- Welcome to debugging React ---
6465 // This error was thrown as a convenience so that you can use this stack
6466 // to find the callsite that caused this warning to fire.
6467 throw new Error(message);
6468 } catch (x) {}
6469 };
6470}
6471
6472/**
6473 * Assert that the values match with the type specs.
6474 * Error messages are memorized and will only be shown once.
6475 *
6476 * @param {object} typeSpecs Map of name to a ReactPropType
6477 * @param {object} values Runtime values that need to be type-checked
6478 * @param {string} location e.g. "prop", "context", "child context"
6479 * @param {string} componentName Name of the component for error messages.
6480 * @param {?Function} getStack Returns the component stack.
6481 * @private
6482 */
6483function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
6484 if (process.env.NODE_ENV !== 'production') {
6485 for (var typeSpecName in typeSpecs) {
6486 if (has(typeSpecs, typeSpecName)) {
6487 var error;
6488 // Prop type validation may throw. In case they do, we don't want to
6489 // fail the render phase where it didn't fail before. So we log it.
6490 // After these have been cleaned up, we'll let them throw.
6491 try {
6492 // This is intentionally an invariant that gets caught. It's the same
6493 // behavior as without this statement except with a better message.
6494 if (typeof typeSpecs[typeSpecName] !== 'function') {
6495 var err = Error(
6496 (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
6497 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
6498 );
6499 err.name = 'Invariant Violation';
6500 throw err;
6501 }
6502 error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
6503 } catch (ex) {
6504 error = ex;
6505 }
6506 if (error && !(error instanceof Error)) {
6507 printWarning(
6508 (componentName || 'React class') + ': type specification of ' +
6509 location + ' `' + typeSpecName + '` is invalid; the type checker ' +
6510 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
6511 'You may have forgotten to pass an argument to the type checker ' +
6512 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
6513 'shape all require an argument).'
6514 );
6515 }
6516 if (error instanceof Error && !(error.message in loggedTypeFailures)) {
6517 // Only monitor this failure once because there tends to be a lot of the
6518 // same error.
6519 loggedTypeFailures[error.message] = true;
6520
6521 var stack = getStack ? getStack() : '';
6522
6523 printWarning(
6524 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
6525 );
6526 }
6527 }
6528 }
6529 }
6530}
6531
6532/**
6533 * Resets warning cache when testing.
6534 *
6535 * @private
6536 */
6537checkPropTypes.resetWarningCache = function() {
6538 if (process.env.NODE_ENV !== 'production') {
6539 loggedTypeFailures = {};
6540 }
6541}
6542
6543module.exports = checkPropTypes;
6544
6545/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(17)))
6546
6547/***/ }),
6548/* 116 */
6549/***/ (function(module, exports, __webpack_require__) {
6550
6551"use strict";
6552/**
6553 * Copyright (c) 2013-present, Facebook, Inc.
6554 *
6555 * This source code is licensed under the MIT license found in the
6556 * LICENSE file in the root directory of this source tree.
6557 */
6558
6559
6560
6561var ReactPropTypesSecret = __webpack_require__(44);
6562
6563function emptyFunction() {}
6564function emptyFunctionWithReset() {}
6565emptyFunctionWithReset.resetWarningCache = emptyFunction;
6566
6567module.exports = function() {
6568 function shim(props, propName, componentName, location, propFullName, secret) {
6569 if (secret === ReactPropTypesSecret) {
6570 // It is still safe when called from React.
6571 return;
6572 }
6573 var err = new Error(
6574 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
6575 'Use PropTypes.checkPropTypes() to call them. ' +
6576 'Read more at http://fb.me/use-check-prop-types'
6577 );
6578 err.name = 'Invariant Violation';
6579 throw err;
6580 };
6581 shim.isRequired = shim;
6582 function getShim() {
6583 return shim;
6584 };
6585 // Important!
6586 // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
6587 var ReactPropTypes = {
6588 array: shim,
6589 bool: shim,
6590 func: shim,
6591 number: shim,
6592 object: shim,
6593 string: shim,
6594 symbol: shim,
6595
6596 any: shim,
6597 arrayOf: getShim,
6598 element: shim,
6599 elementType: shim,
6600 instanceOf: getShim,
6601 node: shim,
6602 objectOf: getShim,
6603 oneOf: getShim,
6604 oneOfType: getShim,
6605 shape: getShim,
6606 exact: getShim,
6607
6608 checkPropTypes: emptyFunctionWithReset,
6609 resetWarningCache: emptyFunction
6610 };
6611
6612 ReactPropTypes.PropTypes = ReactPropTypes;
6613
6614 return ReactPropTypes;
6615};
6616
6617
6618/***/ }),
6619/* 117 */
6620/***/ (function(module, __webpack_exports__, __webpack_require__) {
6621
6622"use strict";
6623/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(0);
6624/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
6625/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_style_utils__ = __webpack_require__(29);
6626/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_style_utils___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_style_utils__);
6627/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_js__ = __webpack_require__(21);
6628/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__plugins__ = __webpack_require__(46);
6629
6630/* eslint-disable func-names, no-console */
6631
6632
6633
6634
6635var StylePlugin = function StylePlugin(target, vars, type) {
6636 this.target = target;
6637 this.vars = vars;
6638 this.type = type;
6639 this.propsData = {};
6640 this.setDefaultData();
6641};
6642StylePlugin.prototype = {
6643 name: 'style'
6644};
6645var p = StylePlugin.prototype;
6646p.getTweenData = function (key, $vars) {
6647 var data = {
6648 data: {},
6649 dataType: {},
6650 dataUnit: {},
6651 dataCount: {},
6652 dataSplitStr: {}
6653 };
6654 var vars = $vars;
6655 if (__WEBPACK_IMPORTED_MODULE_2__util_js__["i" /* styleValueToArray */][key]) {
6656 vars = vars.toString().split(' ');
6657 vars = vars.map(function (c) {
6658 return typeof $vars === 'number' ? c + 'px' : c;
6659 });
6660 vars[1] = vars[1] || vars[0];
6661 vars[2] = vars[2] || vars[0];
6662 vars[3] = vars[3] || vars[1] || vars[0];
6663 vars = vars.join(' ');
6664 }
6665 if (key.match(/colo|fill|storker/i)) {
6666 data.data[key] = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["parseColor"])(vars);
6667 data.dataType[key] = 'color';
6668 } else if (key === 'strokeDasharray') {
6669 data.data[key] = vars.split(',');
6670 data.dataType[key] = 'strokeDasharray';
6671 } else if (key.match(/shadow/i)) {
6672 data.data[key] = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["parseShadow"])(vars);
6673 data.dataType[key] = 'shadow';
6674 } else if (typeof vars === 'string' && vars.split(/[\s|,]/).length > 1) {
6675 data.data[key] = vars.split(/[\s|,]/);
6676 data.dataSplitStr[key] = vars.replace(/[^\s|,]/g, '').replace(/\s+/g, ' ');
6677 data.dataType[key] = 'string';
6678 } else {
6679 data.data[key] = vars;
6680 data.dataType[key] = 'other';
6681 }
6682 if (Array.isArray(data.data[key])) {
6683 data.dataUnit[key] = data.data[key].map(function (_item) {
6684 return _item.toString().replace(/[^a-z|%]/g, '');
6685 });
6686 data.dataCount[key] = data.data[key].map(function (_item) {
6687 return _item.toString().replace(/[^+|=|-]/g, '');
6688 });
6689
6690 data.data[key] = data.data[key].map(function (_item) {
6691 return !parseFloat(_item) && parseFloat(_item) !== 0 ? _item : parseFloat(_item);
6692 });
6693 } else {
6694 data.dataUnit[key] = data.data[key].toString().replace(/[^a-z|%]/g, '');
6695 data.dataCount[key] = data.data[key].toString().replace(/[^+|=|-]/g, '');
6696 var d = parseFloat(data.data[key].toString().replace(/[a-z|%|=]/g, ''));
6697 data.data[key] = !d && d !== 0 ? data.data[key] : d;
6698 }
6699 return data;
6700};
6701p.setDefaultData = function () {
6702 var _this = this;
6703
6704 this.propsData.data = {};
6705 this.propsData.dataType = {};
6706 this.propsData.dataUnit = {};
6707 this.propsData.dataCount = {};
6708 this.propsData.dataSplitStr = {};
6709 Object.keys(this.vars).forEach(function (_key) {
6710 if (_key in __WEBPACK_IMPORTED_MODULE_3__plugins__["a" /* default */]) {
6711 _this.propsData.data[_key] = new __WEBPACK_IMPORTED_MODULE_3__plugins__["a" /* default */][_key](_this.target, _this.vars[_key]);
6712 return;
6713 }
6714 var key = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["getGsapType"])(_key);
6715 var _data = _this.getTweenData(key, _this.vars[_key]);
6716 _this.propsData.data[key] = _data.data[key];
6717 _this.propsData.dataType[key] = _data.dataType[key];
6718 _this.propsData.dataUnit[key] = _data.dataUnit[key];
6719 _this.propsData.dataCount[key] = _data.dataCount[key];
6720 if (_data.dataSplitStr[key]) {
6721 _this.propsData.dataSplitStr[key] = _data.dataSplitStr[key];
6722 }
6723 });
6724};
6725p.convertToMarksArray = function (computedStyle, unit, key, data, i) {
6726 var startUnit = data.toString().replace(/[^a-z|%]/g, '');
6727 var endUnit = unit[i];
6728 if (startUnit === endUnit) {
6729 return parseFloat(data);
6730 } else if (!parseFloat(data) && parseFloat(data) !== 0) {
6731 return data;
6732 }
6733 return Object(__WEBPACK_IMPORTED_MODULE_2__util_js__["h" /* startConvertToEndUnit */])(this.target, computedStyle, key, data, startUnit, endUnit, null, key === 'transformOrigin' && !i);
6734};
6735p.getAnimStart = function (computedStyle, tween, isSvg) {
6736 var _this2 = this;
6737
6738 var style = {};
6739 var tweenStyle = tween.style || {};
6740 var transform = void 0;
6741 Object.keys(this.propsData.data).forEach(function (key) {
6742 var cssName = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["isConvert"])(key);
6743 var startData = tweenStyle[cssName] || computedStyle[cssName];
6744 var fixed = computedStyle.position === 'fixed';
6745 if (!startData || startData === 'none' || startData === 'auto') {
6746 startData = '';
6747 }
6748 var endUnit = void 0;
6749 var startUnit = void 0;
6750 if (key in __WEBPACK_IMPORTED_MODULE_3__plugins__["a" /* default */]) {
6751 if (key === 'bezier') {
6752 _this2.transform = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["checkStyleName"])('transform');
6753 startData = computedStyle[isSvg ? 'transformSVG' : _this2.transform];
6754 transform = transform || (tweenStyle.transform ? __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, tweenStyle.transform) : style.transform || Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["getTransform"])(startData));
6755 style.transform = transform;
6756 }
6757 _this2.propsData.data[key].getAnimStart(computedStyle, isSvg);
6758 } else if (cssName === 'transform') {
6759 _this2.transform = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["checkStyleName"])('transform');
6760 startData = computedStyle[isSvg ? 'transformSVG' : _this2.transform];
6761 endUnit = _this2.propsData.dataUnit[key];
6762 transform = transform || (tweenStyle.transform ? __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, tweenStyle.transform) : style.transform || Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["getTransform"])(startData));
6763 var unitReg = /%|vw|vh|em|rem/i;
6764 if (endUnit && endUnit.match(unitReg)) {
6765 transform[key] = transform[key] && transform[key].toString().match(unitReg) ? parseFloat(transform[key]) : Object(__WEBPACK_IMPORTED_MODULE_2__util_js__["h" /* startConvertToEndUnit */])(_this2.target, computedStyle, key, transform[key], null, endUnit);
6766 }
6767 style.transform = transform;
6768 } else if (cssName === 'filter') {
6769 if (tweenStyle[cssName]) {
6770 startData = tweenStyle[cssName];
6771 } else {
6772 _this2.filterName = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["checkStyleName"])('filter') || 'filter';
6773 startData = computedStyle[_this2.filterName];
6774 _this2.filterObject = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, _this2.filterObject, Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["splitFilterToObject"])(startData));
6775 startData = _this2.filterObject[key] || 0;
6776 }
6777 startUnit = startData.toString().replace(/[^a-z|%]/g, '');
6778 endUnit = _this2.propsData.dataUnit[key];
6779 if (endUnit !== startUnit) {
6780 startData = Object(__WEBPACK_IMPORTED_MODULE_2__util_js__["h" /* startConvertToEndUnit */])(_this2.target, computedStyle, cssName, parseFloat(startData), startUnit, endUnit, fixed);
6781 }
6782 style[key] = parseFloat(startData);
6783 } else if (key.match(/color|fill/i) || key === 'stroke') {
6784 startData = !startData && key === 'stroke' ? 'rgba(255, 255, 255, 0)' : startData;
6785 style[cssName] = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["parseColor"])(startData);
6786 } else if (key.match(/shadow/i)) {
6787 startData = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["parseShadow"])(startData);
6788 endUnit = _this2.propsData.dataUnit[key];
6789 startData = startData.map(_this2.convertToMarksArray.bind(_this2, computedStyle, endUnit, key));
6790 style[cssName] = startData;
6791 } else if (Array.isArray(_this2.propsData.data[key])) {
6792 startData = startData.split(/[\s|,]/).filter(function (c) {
6793 return c || c === 0;
6794 });
6795 endUnit = _this2.propsData.dataUnit[key];
6796 startData = startData.map(_this2.convertToMarksArray.bind(_this2, computedStyle, endUnit, key));
6797 style[cssName] = startData;
6798 } else {
6799 // 计算单位
6800 endUnit = _this2.propsData.dataUnit[cssName];
6801 startUnit = startData.toString().replace(/[^a-z|%]/g, '');
6802 if (endUnit !== startUnit) {
6803 startData = Object(__WEBPACK_IMPORTED_MODULE_2__util_js__["h" /* startConvertToEndUnit */])(_this2.target, computedStyle, cssName, parseFloat(startData), startUnit, endUnit, fixed);
6804 }
6805 style[cssName] = parseFloat(startData || 0);
6806 }
6807 });
6808 this.start = style;
6809 return style;
6810};
6811p.setArrayRatio = function (ratio, start, vars, unit, type) {
6812 if (type === 'color' && start.length === 4 && vars.length === 3) {
6813 vars[3] = 1;
6814 }
6815 var startInset = start.indexOf('inset') >= 0;
6816 var endInset = vars.indexOf('inset') >= 0;
6817 if (startInset && !endInset || endInset && !startInset) {
6818 throw console.error('Error: "box-shadow" inset have to exist');
6819 }
6820 var length = endInset ? 9 : 8;
6821 if (start.length === length && vars.length === length - 1) {
6822 vars.splice(3, 0, 0);
6823 unit.splice(3, 0, '');
6824 } else if (vars.length === length && start.length === length - 1) {
6825 start.splice(3, 0, 0);
6826 }
6827 var _vars = vars.map(function (endData, i) {
6828 var startIsAlpha = type === 'color' && i === 3 && !start[i] ? 1 : 0;
6829 var startData = typeof start[i] === 'number' ? start[i] : startIsAlpha;
6830 if (typeof endData === 'string') {
6831 return endData;
6832 }
6833 return (endData - startData) * ratio + startData + (unit[i] || 0);
6834 });
6835 if (type === 'color') {
6836 return Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["getColor"])(_vars);
6837 } else if (type === 'shadow') {
6838 var l = _vars.length === length ? 4 : 3;
6839 var s = _vars.slice(0, l).map(function (item) {
6840 if (typeof item === 'number') {
6841 return item + 'px';
6842 }
6843 return item;
6844 });
6845 var c = _vars.slice(l, endInset ? _vars.length - 1 : _vars.length);
6846 var color = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["getColor"])(c);
6847 return (s.join(' ') + ' ' + color + ' ' + (endInset ? 'inset' : '')).trim();
6848 }
6849 return _vars;
6850};
6851
6852p.setRatio = function (ratio, tween, computedStyle) {
6853 var _this3 = this;
6854
6855 tween.style = tween.style || {};
6856 if (this.start.transform) {
6857 tween.style.transform = tween.style.transform || __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, this.start.transform);
6858 }
6859 var style = this.target.style;
6860 Object.keys(this.propsData.data).forEach(function (key) {
6861 var _isTransform = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["isTransform"])(key) === 'transform';
6862 var startVars = _isTransform ? _this3.start.transform[key] : _this3.start[key];
6863 var endVars = _this3.propsData.data[key];
6864 var unit = _this3.propsData.dataUnit[key];
6865 var count = _this3.propsData.dataCount[key];
6866 if (key in __WEBPACK_IMPORTED_MODULE_3__plugins__["a" /* default */]) {
6867 _this3.propsData.data[key].setRatio(ratio, tween, computedStyle);
6868 if (key === 'bezier') {
6869 style[_this3.transform] = Object(__WEBPACK_IMPORTED_MODULE_2__util_js__["d" /* getTransformValue */])(tween.style.transform);
6870 } else {
6871 Object.keys(tween.style).forEach(function (css) {
6872 style[css] = tween.style[css];
6873 });
6874 }
6875 return;
6876 } else if (_isTransform) {
6877 if (unit && unit.match(/%|vw|vh|em|rem/i)) {
6878 startVars = parseFloat(_this3.start.transform[key]);
6879 if (count.charAt(1) === '=') {
6880 tween.style.transform[key] = startVars + endVars * ratio + unit;
6881 } else {
6882 tween.style.transform[key] = (endVars - startVars) * ratio + startVars + unit;
6883 }
6884 } else if (key === 'scale') {
6885 var xStart = _this3.start.transform.scaleX;
6886 var yStart = _this3.start.transform.scaleY;
6887 if (count.charAt(1) === '=') {
6888 tween.style.transform.scaleX = xStart + endVars * ratio;
6889 tween.style.transform.scaleY = yStart + endVars * ratio;
6890 } else {
6891 tween.style.transform.scaleX = (endVars - xStart) * ratio + xStart;
6892 tween.style.transform.scaleY = (endVars - yStart) * ratio + yStart;
6893 }
6894 } else if (count.charAt(1) === '=') {
6895 tween.style.transform[key] = startVars + endVars * ratio;
6896 } else {
6897 tween.style.transform[key] = (endVars - startVars) * ratio + startVars;
6898 }
6899 style[_this3.transform] = Object(__WEBPACK_IMPORTED_MODULE_2__util_js__["d" /* getTransformValue */])(tween.style.transform);
6900 if (computedStyle) {
6901 computedStyle.transformSVG = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["createMatrix"])(style[_this3.transform]).toString();
6902 }
6903 return;
6904 } else if (Array.isArray(endVars)) {
6905 var _type = _this3.propsData.dataType[key];
6906 tween.style[key] = _this3.setArrayRatio(ratio, startVars, endVars, unit, _type);
6907 if (_type === 'string') {
6908 tween.style[key] = tween.style[key].join(_this3.propsData.dataSplitStr[key]);
6909 }
6910 } else {
6911 var styleUnit = Object(__WEBPACK_IMPORTED_MODULE_1_style_utils__["stylesToCss"])(key, 0);
6912 styleUnit = typeof styleUnit === 'number' ? '' : styleUnit.replace(/[^a-z|%]/g, '');
6913 unit = unit || (__WEBPACK_IMPORTED_MODULE_1_style_utils__["cssList"].filter.indexOf(key) >= 0 ? '' : styleUnit);
6914 if (typeof endVars === 'string') {
6915 tween.style[key] = endVars;
6916 } else if (count.charAt(1) === '=') {
6917 tween.style[key] = startVars + endVars * ratio + unit;
6918 } else {
6919 var value = (endVars - startVars) * ratio + startVars;
6920 tween.style[key] = unit ? '' + value + unit : value;
6921 }
6922 }
6923 if (__WEBPACK_IMPORTED_MODULE_1_style_utils__["cssList"].filter.indexOf(key) >= 0) {
6924 if (!_this3.filterObject) {
6925 return;
6926 }
6927 _this3.filterObject[key] = tween.style[key];
6928 var filterStyle = '';
6929 Object.keys(_this3.filterObject).forEach(function (filterKey) {
6930 filterStyle += ' ' + filterKey + '(' + _this3.filterObject[filterKey] + ')';
6931 });
6932 style[_this3.filterName] = filterStyle.trim();
6933 return;
6934 }
6935 style[key] = tween.style[key];
6936 });
6937};
6938/* harmony default export */ __webpack_exports__["a"] = (StylePlugin);
6939
6940/***/ }),
6941/* 118 */
6942/***/ (function(module, exports, __webpack_require__) {
6943
6944/* WEBPACK VAR INJECTION */(function(global) {var now = __webpack_require__(120)
6945 , root = typeof window === 'undefined' ? global : window
6946 , vendors = ['moz', 'webkit']
6947 , suffix = 'AnimationFrame'
6948 , raf = root['request' + suffix]
6949 , caf = root['cancel' + suffix] || root['cancelRequest' + suffix]
6950
6951for(var i = 0; !raf && i < vendors.length; i++) {
6952 raf = root[vendors[i] + 'Request' + suffix]
6953 caf = root[vendors[i] + 'Cancel' + suffix]
6954 || root[vendors[i] + 'CancelRequest' + suffix]
6955}
6956
6957// Some versions of FF have rAF but not cAF
6958if(!raf || !caf) {
6959 var last = 0
6960 , id = 0
6961 , queue = []
6962 , frameDuration = 1000 / 60
6963
6964 raf = function(callback) {
6965 if(queue.length === 0) {
6966 var _now = now()
6967 , next = Math.max(0, frameDuration - (_now - last))
6968 last = next + _now
6969 setTimeout(function() {
6970 var cp = queue.slice(0)
6971 // Clear queue here to prevent
6972 // callbacks from appending listeners
6973 // to the current frame's queue
6974 queue.length = 0
6975 for(var i = 0; i < cp.length; i++) {
6976 if(!cp[i].cancelled) {
6977 try{
6978 cp[i].callback(last)
6979 } catch(e) {
6980 setTimeout(function() { throw e }, 0)
6981 }
6982 }
6983 }
6984 }, Math.round(next))
6985 }
6986 queue.push({
6987 handle: ++id,
6988 callback: callback,
6989 cancelled: false
6990 })
6991 return id
6992 }
6993
6994 caf = function(handle) {
6995 for(var i = 0; i < queue.length; i++) {
6996 if(queue[i].handle === handle) {
6997 queue[i].cancelled = true
6998 }
6999 }
7000 }
7001}
7002
7003module.exports = function(fn) {
7004 // Wrap in a new function to prevent
7005 // `cancel` potentially being assigned
7006 // to the native rAF function
7007 return raf.call(root, fn)
7008}
7009module.exports.cancel = function() {
7010 caf.apply(root, arguments)
7011}
7012module.exports.polyfill = function(object) {
7013 if (!object) {
7014 object = root;
7015 }
7016 object.requestAnimationFrame = raf
7017 object.cancelAnimationFrame = caf
7018}
7019
7020/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(119)))
7021
7022/***/ }),
7023/* 119 */
7024/***/ (function(module, exports) {
7025
7026var g;
7027
7028// This works in non-strict mode
7029g = (function() {
7030 return this;
7031})();
7032
7033try {
7034 // This works if eval is allowed (see CSP)
7035 g = g || Function("return this")() || (1,eval)("this");
7036} catch(e) {
7037 // This works if the window reference is available
7038 if(typeof window === "object")
7039 g = window;
7040}
7041
7042// g can still be undefined, but nothing to do about it...
7043// We return undefined, instead of nothing here, so it's
7044// easier to handle this case. if(!global) { ...}
7045
7046module.exports = g;
7047
7048
7049/***/ }),
7050/* 120 */
7051/***/ (function(module, exports, __webpack_require__) {
7052
7053/* WEBPACK VAR INJECTION */(function(process) {// Generated by CoffeeScript 1.12.2
7054(function() {
7055 var getNanoSeconds, hrtime, loadTime, moduleLoadTime, nodeLoadTime, upTime;
7056
7057 if ((typeof performance !== "undefined" && performance !== null) && performance.now) {
7058 module.exports = function() {
7059 return performance.now();
7060 };
7061 } else if ((typeof process !== "undefined" && process !== null) && process.hrtime) {
7062 module.exports = function() {
7063 return (getNanoSeconds() - nodeLoadTime) / 1e6;
7064 };
7065 hrtime = process.hrtime;
7066 getNanoSeconds = function() {
7067 var hr;
7068 hr = hrtime();
7069 return hr[0] * 1e9 + hr[1];
7070 };
7071 moduleLoadTime = getNanoSeconds();
7072 upTime = process.uptime() * 1e9;
7073 nodeLoadTime = moduleLoadTime - upTime;
7074 } else if (Date.now) {
7075 module.exports = function() {
7076 return Date.now() - loadTime;
7077 };
7078 loadTime = Date.now();
7079 } else {
7080 module.exports = function() {
7081 return new Date().getTime() - loadTime;
7082 };
7083 loadTime = new Date().getTime();
7084 }
7085
7086}).call(this);
7087
7088//# sourceMappingURL=performance-now.js.map
7089
7090/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(17)))
7091
7092/***/ }),
7093/* 121 */
7094/***/ (function(module, __webpack_exports__, __webpack_require__) {
7095
7096"use strict";
7097/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(0);
7098/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
7099/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(8);
7100/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);
7101/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9);
7102/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__);
7103/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__ = __webpack_require__(10);
7104/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__);
7105/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(11);
7106/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__);
7107/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(1);
7108/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__);
7109/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(5);
7110/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__);
7111/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_lifecycles_compat__ = __webpack_require__(22);
7112/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__TweenOne__ = __webpack_require__(60);
7113/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__util__ = __webpack_require__(21);
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126function noop() {}
7127
7128var TweenOneGroup = function (_Component) {
7129 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(TweenOneGroup, _Component);
7130
7131 __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default()(TweenOneGroup, null, [{
7132 key: 'getDerivedStateFromProps',
7133 value: function getDerivedStateFromProps(props, _ref) {
7134 var prevProps = _ref.prevProps,
7135 $self = _ref.$self;
7136
7137 var nextState = {
7138 prevProps: props
7139 };
7140 if (prevProps) {
7141 var nextChildren = Object(__WEBPACK_IMPORTED_MODULE_9__util__["j" /* toArrayChildren */])(props.children);
7142 if (Object.keys($self.isTween).length && !props.exclusive) {
7143 $self.animQueue.push(nextChildren);
7144 return;
7145 }
7146 var currentChildren = Object(__WEBPACK_IMPORTED_MODULE_9__util__["j" /* toArrayChildren */])($self.currentChildren);
7147 nextState.children = $self.changeChildren(nextChildren, currentChildren);
7148 }
7149 return nextState; // eslint-disable-line
7150 }
7151 }]);
7152
7153 function TweenOneGroup(props) {
7154 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, TweenOneGroup);
7155
7156 var _this = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, (TweenOneGroup.__proto__ || Object.getPrototypeOf(TweenOneGroup)).call(this, props));
7157
7158 _initialiseProps.call(_this);
7159
7160 _this.keysToEnter = [];
7161 _this.keysToLeave = [];
7162 _this.saveTweenTag = {};
7163 _this.onEnterBool = false;
7164 _this.animQueue = [];
7165 _this.isTween = {};
7166 // 第一进入,appear 为 true 时默认用 enter 或 tween-one 上的效果
7167 var children = Object(__WEBPACK_IMPORTED_MODULE_9__util__["j" /* toArrayChildren */])(Object(__WEBPACK_IMPORTED_MODULE_9__util__["c" /* getChildrenFromProps */])(_this.props));
7168 _this.currentChildren = Object(__WEBPACK_IMPORTED_MODULE_9__util__["j" /* toArrayChildren */])(Object(__WEBPACK_IMPORTED_MODULE_9__util__["c" /* getChildrenFromProps */])(_this.props));
7169 _this.state = {
7170 children: children,
7171 $self: _this
7172 };
7173 return _this;
7174 }
7175
7176 __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default()(TweenOneGroup, [{
7177 key: 'componentDidMount',
7178 value: function componentDidMount() {
7179 this.onEnterBool = true;
7180 }
7181 }, {
7182 key: 'changeChildren',
7183 value: function changeChildren(nextChildren, currentChildren) {
7184 var _this2 = this;
7185
7186 var newChildren = Object(__WEBPACK_IMPORTED_MODULE_9__util__["e" /* mergeChildren */])(currentChildren, nextChildren);
7187 this.keysToEnter = [];
7188 this.keysToLeave = [];
7189 nextChildren.forEach(function (c) {
7190 if (!c) {
7191 return;
7192 }
7193 var key = c.key;
7194 var hasPrev = Object(__WEBPACK_IMPORTED_MODULE_9__util__["b" /* findChildInChildrenByKey */])(currentChildren, key);
7195 // 如果当前 key 已存在 saveTweenTag 里,,刷新 child;
7196 if (_this2.saveTweenTag[key]) {
7197 _this2.saveTweenTag[key] = __WEBPACK_IMPORTED_MODULE_5_react___default.a.cloneElement(_this2.saveTweenTag[key], {}, c);
7198 }
7199 if (!hasPrev && key) {
7200 _this2.keysToEnter.push(key);
7201 }
7202 });
7203
7204 currentChildren.forEach(function (c) {
7205 if (!c) {
7206 return;
7207 }
7208 var key = c.key;
7209 var hasNext = Object(__WEBPACK_IMPORTED_MODULE_9__util__["b" /* findChildInChildrenByKey */])(nextChildren, key);
7210 if (!hasNext && key) {
7211 _this2.keysToLeave.push(key);
7212 delete _this2.saveTweenTag[key];
7213 }
7214 });
7215 this.currentChildren = newChildren;
7216 return newChildren;
7217 }
7218 }, {
7219 key: 'render',
7220 value: function render() {
7221 var childrenToRender = this.getChildrenToRender(this.state.children);
7222 if (!this.props.component) {
7223 return childrenToRender[0] || null;
7224 }
7225 var componentProps = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, this.props);
7226 ['component', 'componentProps', 'appear', 'enter', 'leave', 'animatingClassName', 'onEnd', 'exclusive', 'resetStyle'].forEach(function (key) {
7227 return delete componentProps[key];
7228 });
7229 return Object(__WEBPACK_IMPORTED_MODULE_5_react__["createElement"])(this.props.component, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, componentProps, this.props.componentProps), childrenToRender);
7230 }
7231 }]);
7232
7233 return TweenOneGroup;
7234}(__WEBPACK_IMPORTED_MODULE_5_react__["Component"]);
7235
7236var _initialiseProps = function _initialiseProps() {
7237 var _this3 = this;
7238
7239 this.onChange = function (animation, key, type, obj) {
7240 var length = Object(__WEBPACK_IMPORTED_MODULE_9__util__["a" /* dataToArray */])(animation).length;
7241 var tag = obj.target;
7242 var classIsSvg = typeof tag.className === 'object' && 'baseVal' in tag.className;
7243 var isEnter = type === 'enter' || type === 'appear';
7244 if (obj.mode === 'onStart') {
7245 if (classIsSvg) {
7246 tag.className.baseVal = _this3.setClassName(tag.className.baseVal, isEnter);
7247 } else {
7248 tag.className = _this3.setClassName(tag.className, isEnter);
7249 }
7250 } else if (obj.index === length - 1 && obj.mode === 'onComplete') {
7251 delete _this3.isTween[key];
7252 if (classIsSvg) {
7253 tag.className.baseVal = tag.className.baseVal.replace(_this3.props.animatingClassName[isEnter ? 0 : 1], '').trim();
7254 } else {
7255 tag.className = tag.className.replace(_this3.props.animatingClassName[isEnter ? 0 : 1], '').trim();
7256 }
7257 if (type === 'enter') {
7258 _this3.keysToEnter.splice(_this3.keysToEnter.indexOf(key), 1);
7259 if (!_this3.keysToEnter.length) {
7260 _this3.reAnimQueue();
7261 }
7262 } else if (type === 'leave') {
7263 _this3.keysToLeave.splice(_this3.keysToLeave.indexOf(key), 1);
7264 _this3.currentChildren = _this3.currentChildren.filter(function (child) {
7265 return key !== child.key;
7266 });
7267 if (!_this3.keysToLeave.length) {
7268 var currentChildrenKeys = _this3.currentChildren.map(function (item) {
7269 return item.key;
7270 });
7271 Object.keys(_this3.saveTweenTag).forEach(function ($key) {
7272 if (currentChildrenKeys.indexOf($key) === -1) {
7273 delete _this3.saveTweenTag[$key];
7274 }
7275 });
7276 _this3.setState({
7277 children: _this3.currentChildren
7278 }, _this3.reAnimQueue);
7279 }
7280 }
7281 var _obj = { key: key, type: type };
7282 _this3.props.onEnd(_obj);
7283 }
7284 };
7285
7286 this.setClassName = function (name, isEnter) {
7287 var className = name.replace(_this3.props.animatingClassName[isEnter ? 1 : 0], '').trim();
7288 if (className.indexOf(_this3.props.animatingClassName[isEnter ? 0 : 1]) === -1) {
7289 className = (className + ' ' + _this3.props.animatingClassName[isEnter ? 0 : 1]).trim();
7290 }
7291 return className;
7292 };
7293
7294 this.getTweenChild = function (child) {
7295 var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
7296
7297 var key = child.key;
7298 _this3.saveTweenTag[key] = __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__TweenOne__["a" /* default */], __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props, {
7299 key: key,
7300 component: null
7301 }), child);
7302 return _this3.saveTweenTag[key];
7303 };
7304
7305 this.getCoverAnimation = function (child, i, type) {
7306 var animation = void 0;
7307 animation = type === 'leave' ? _this3.props.leave : _this3.props.enter;
7308 if (type === 'appear') {
7309 var appear = Object(__WEBPACK_IMPORTED_MODULE_9__util__["k" /* transformArguments */])(_this3.props.appear, child.key, i);
7310 animation = appear && _this3.props.enter || null;
7311 }
7312 var animate = Object(__WEBPACK_IMPORTED_MODULE_9__util__["k" /* transformArguments */])(animation, child.key, i);
7313 var onChange = _this3.onChange.bind(_this3, animate, child.key, type);
7314 var props = {
7315 key: child.key,
7316 animation: animate,
7317 onChange: onChange,
7318 resetStyle: _this3.props.resetStyle
7319 };
7320 if (_this3.keysToEnter.concat(_this3.keysToLeave).indexOf(child.key) >= 0 || !_this3.onEnterBool && animation) {
7321 if (!_this3.saveTweenTag[child.key]) {
7322 _this3.isTween[child.key] = type;
7323 }
7324 }
7325 var children = _this3.getTweenChild(child, props);
7326 return children;
7327 };
7328
7329 this.getChildrenToRender = function (children) {
7330 return children.map(function (child, i) {
7331 if (!child || !child.key) {
7332 return child;
7333 }
7334 var key = child.key;
7335
7336 if (_this3.keysToLeave.indexOf(key) >= 0) {
7337 return _this3.getCoverAnimation(child, i, 'leave');
7338 } else if ((_this3.keysToEnter.indexOf(key) >= 0 || _this3.isTween[key] && _this3.keysToLeave.indexOf(key) === -1) && !(_this3.isTween[key] === 'enter' && _this3.saveTweenTag[key])) {
7339 /**
7340 * 1. 在 key 在 enter 里。
7341 * 2. 出场未结束,触发进场, this.isTween[key] 为 leave, key 在 enter 里。
7342 * 3. 状态为 enter 且 tweenTag 里有值时,不执行重载动画属性,直接调用 tweenTag 里的。
7343 */
7344 return _this3.getCoverAnimation(child, i, 'enter');
7345 } else if (!_this3.onEnterBool) {
7346 return _this3.getCoverAnimation(child, i, 'appear');
7347 }
7348 return _this3.saveTweenTag[key];
7349 });
7350 };
7351
7352 this.reAnimQueue = function () {
7353 if (!Object.keys(_this3.isTween).length && _this3.animQueue.length) {
7354 var children = _this3.changeChildren(_this3.animQueue[_this3.animQueue.length - 1], _this3.state.children);
7355 _this3.setState({
7356 children: children
7357 });
7358 _this3.animQueue = [];
7359 }
7360 };
7361};
7362
7363TweenOneGroup.propTypes = {
7364 component: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any,
7365 componentProps: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object,
7366 children: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any,
7367 style: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object,
7368 appear: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
7369 enter: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any,
7370 leave: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.any,
7371 animatingClassName: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.array,
7372 onEnd: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
7373 resetStyle: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
7374 exclusive: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool
7375};
7376
7377TweenOneGroup.defaultProps = {
7378 component: 'div',
7379 componentProps: {},
7380 appear: true,
7381 animatingClassName: ['tween-one-entering', 'tween-one-leaving'],
7382 enter: { x: 50, opacity: 0, type: 'from' },
7383 leave: { x: -50, opacity: 0 },
7384 onEnd: noop,
7385 resetStyle: true,
7386 exclusive: false
7387};
7388TweenOneGroup.isTweenOneGroup = true;
7389/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_7_react_lifecycles_compat__["a" /* polyfill */])(TweenOneGroup));
7390
7391/***/ }),
7392/* 122 */
7393/***/ (function(module, __webpack_exports__, __webpack_require__) {
7394
7395"use strict";
7396/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(47);
7397/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties__);
7398/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__ = __webpack_require__(0);
7399/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__);
7400/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(8);
7401/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__);
7402/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9);
7403/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__);
7404/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_createClass__ = __webpack_require__(10);
7405/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_createClass__);
7406/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__ = __webpack_require__(11);
7407/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__);
7408/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__(1);
7409/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react__);
7410/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(5);
7411/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__);
7412/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react_dom__ = __webpack_require__(28);
7413/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_react_dom__);
7414/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react_lifecycles_compat__ = __webpack_require__(22);
7415/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_rc_tween_one__ = __webpack_require__(45);
7416/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_tween_functions__ = __webpack_require__(63);
7417/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_tween_functions___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_tween_functions__);
7418/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_style_utils__ = __webpack_require__(29);
7419/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_style_utils___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12_style_utils__);
7420/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__BgElement__ = __webpack_require__(123);
7421/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__utils__ = __webpack_require__(18);
7422/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__anim__ = __webpack_require__(30);
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441function noop() {}
7442
7443var Element = function (_Component) {
7444 __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default()(Element, _Component);
7445
7446 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_createClass___default()(Element, null, [{
7447 key: 'getDerivedStateFromProps',
7448 value: function getDerivedStateFromProps(props, _ref) {
7449 var prevProps = _ref.prevProps,
7450 $self = _ref.$self;
7451
7452 var nextState = {
7453 prevProps: props
7454 };
7455 if (prevProps && props !== prevProps) {
7456 if ($self.tickerId !== -1) {
7457 __WEBPACK_IMPORTED_MODULE_10_rc_tween_one__["c" /* ticker */].clear($self.tickerId);
7458 $self.tickerId = -1;
7459 }
7460 var followParallax = props.followParallax;
7461 if ($self.followParallax && !followParallax) {
7462 $self.reFollowParallax();
7463 } else {
7464 $self.followParallax = followParallax;
7465 }
7466 nextState.mouseMoveType = props.mouseMoveType;
7467 }
7468 return nextState;
7469 }
7470 }]);
7471
7472 function Element(props) {
7473 __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Element);
7474
7475 var _this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, (Element.__proto__ || Object.getPrototypeOf(Element)).call(this, props));
7476
7477 _initialiseProps.call(_this);
7478
7479 _this.state = {
7480 show: props.show,
7481 $self: _this
7482 };
7483 _this.tickerId = -1;
7484 _this.enterMouse = null;
7485 _this.delayTimeout = null;
7486 _this.followParallax = props.followParallax;
7487 _this.transform = Object(__WEBPACK_IMPORTED_MODULE_12_style_utils__["checkStyleName"])('transform');
7488 return _this;
7489 }
7490
7491 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_createClass___default()(Element, [{
7492 key: 'componentDidMount',
7493 value: function componentDidMount() {
7494 this.dom = __WEBPACK_IMPORTED_MODULE_8_react_dom___default.a.findDOMNode(this);
7495 }
7496 }, {
7497 key: 'componentDidUpdate',
7498 value: function componentDidUpdate() {
7499 if (this.followParallax) {
7500 this.doms = this.followParallax.data.map(function (item) {
7501 return document.getElementById(item.id);
7502 });
7503 }
7504 }
7505 }, {
7506 key: 'componentWillUnmount',
7507 value: function componentWillUnmount() {
7508 __WEBPACK_IMPORTED_MODULE_10_rc_tween_one__["c" /* ticker */].clear(this.timeoutID);
7509 __WEBPACK_IMPORTED_MODULE_10_rc_tween_one__["c" /* ticker */].clear(this.delayTimeout);
7510 this.delayTimeout = -1;
7511 this.timeoutID = -1;
7512 }
7513 }, {
7514 key: 'render',
7515 value: function render() {
7516 var props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, this.props, this.props.componentProps);
7517 var style = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, props.style);
7518 var show = props.show;
7519
7520 style.display = show ? 'block' : 'none';
7521 style.position = 'absolute';
7522 style.width = '100%';
7523 if (this.props.mouseMoveType !== 'end') {
7524 style[this.transform] = '';
7525 }
7526 props.style = style;
7527 props.className = ('banner-anim-elem ' + (this.props.prefixCls || '')).trim();
7528 var bgElem = Object(__WEBPACK_IMPORTED_MODULE_14__utils__["f" /* toArrayChildren */])(this.props.children).filter(function (item) {
7529 return item && item.type.isBannerAnimBgElement;
7530 }).map(function (item) {
7531 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.cloneElement(item, { show: props.show });
7532 });
7533 ['prefixCls', 'callBack', 'animType', 'duration', 'delay', 'ease', 'elemOffset', 'followParallax', 'show', 'type', 'direction', 'leaveChildHide', 'sync', 'ratio', 'mouseMoveType'].forEach(function (key) {
7534 return delete props[key];
7535 });
7536 if (this.state.show === show && !this.state.mouseMoveType || this.state.mouseMoveType === 'reChild') {
7537 props.animation = { x: 0, y: 0, type: 'set' };
7538 if (!show) {
7539 this.enterMouse = null;
7540 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10_rc_tween_one__["b" /* default */], props, bgElem);
7541 }
7542 if (this.props.followParallax) {
7543 props.onMouseMove = this.getFollowMouseMove();
7544 }
7545 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10_rc_tween_one__["b" /* default */], props, this.props.mouseMoveType === 'update' ? bgElem : this.getChildren());
7546 }
7547 return this.animChildren(props, style, bgElem);
7548 }
7549 }]);
7550
7551 return Element;
7552}(__WEBPACK_IMPORTED_MODULE_6_react__["Component"]);
7553
7554var _initialiseProps = function _initialiseProps() {
7555 var _this2 = this;
7556
7557 this.onMouseMove = function (e) {
7558 _this2.domRect = _this2.dom.getBoundingClientRect();
7559 _this2.enterMouse = _this2.enterMouse || { x: _this2.domRect.width / 2, y: _this2.domRect.height / 2 };
7560 _this2.domWH = {
7561 w: _this2.domRect.width,
7562 h: _this2.domRect.height
7563 };
7564 _this2.offsetTop = _this2.domRect.top + Object(__WEBPACK_IMPORTED_MODULE_14__utils__["b" /* currentScrollTop */])();
7565 _this2.offsetLeft = _this2.domRect.left + Object(__WEBPACK_IMPORTED_MODULE_14__utils__["a" /* currentScrollLeft */])();
7566 var mouseXY = {
7567 x: e.pageX - _this2.offsetLeft,
7568 y: e.pageY - _this2.offsetTop
7569 };
7570 _this2.setTicker(_this2.followParallax, mouseXY);
7571 };
7572
7573 this.setTicker = function (followParallax, mouseXY) {
7574 var callback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : noop;
7575
7576 __WEBPACK_IMPORTED_MODULE_10_rc_tween_one__["c" /* ticker */].clear(_this2.tickerId);
7577 _this2.tickerId = 'bannerElementTicker' + (Date.now() + Math.random());
7578 var startFrame = __WEBPACK_IMPORTED_MODULE_10_rc_tween_one__["c" /* ticker */].frame;
7579 var startX = _this2.enterMouse.x;
7580 var startY = _this2.enterMouse.y;
7581 var duration = followParallax.duration || 450;
7582 var easeFunc = __WEBPACK_IMPORTED_MODULE_11_tween_functions___default.a[followParallax.ease || 'easeOutQuad'];
7583 var start = typeof followParallax.minMove === 'number' ? followParallax.minMove : 0.08;
7584 __WEBPACK_IMPORTED_MODULE_10_rc_tween_one__["c" /* ticker */].wake(_this2.tickerId, function () {
7585 var moment = (__WEBPACK_IMPORTED_MODULE_10_rc_tween_one__["c" /* ticker */].frame - startFrame) * __WEBPACK_IMPORTED_MODULE_10_rc_tween_one__["c" /* ticker */].perFrame;
7586 var ratio = easeFunc(moment, start, 1, duration);
7587 _this2.enterMouse.x = startX + (mouseXY.x - startX) * ratio;
7588 _this2.enterMouse.y = startY + (mouseXY.y - startY) * ratio;
7589 _this2.setFollowStyle(_this2.domWH);
7590 if (moment >= duration) {
7591 __WEBPACK_IMPORTED_MODULE_10_rc_tween_one__["c" /* ticker */].clear(_this2.tickerId);
7592 callback();
7593 }
7594 });
7595 };
7596
7597 this.getFollowMouseMove = function () {
7598 var onMouseMove = void 0;
7599 if (_this2.followParallax) {
7600 if (_this2.followParallax.delay) {
7601 onMouseMove = !_this2.delayTimeout ? null : _this2.state.onMouseMove;
7602 _this2.delayTimeout = _this2.delayTimeout || __WEBPACK_IMPORTED_MODULE_10_rc_tween_one__["c" /* ticker */].timeout(function () {
7603 _this2.setState({
7604 onMouseMove: _this2.onMouseMove
7605 });
7606 }, _this2.followParallax.delay);
7607 } else {
7608 onMouseMove = _this2.onMouseMove;
7609 }
7610 }
7611 return onMouseMove;
7612 };
7613
7614 this.getFollowStyle = function (data, domWH) {
7615 var style = {};
7616 Object(__WEBPACK_IMPORTED_MODULE_14__utils__["c" /* dataToArray */])(data.type).forEach(function (type) {
7617 var mouseData = _this2.enterMouse.x;
7618 var domData = domWH.w;
7619 var value = data.value;
7620 if ((type.indexOf('y') >= 0 || type.indexOf('Y') >= 0) && type !== 'opacity') {
7621 mouseData = _this2.enterMouse.y;
7622 domData = domWH.h;
7623 }
7624 var d = (mouseData - domData / 2) / (domData / 2) * value;
7625 var _type = Object(__WEBPACK_IMPORTED_MODULE_12_style_utils__["getGsapType"])(type);
7626 var cssName = Object(__WEBPACK_IMPORTED_MODULE_12_style_utils__["isConvert"])(_type);
7627 if (cssName === 'transform') {
7628 var transform = Object(__WEBPACK_IMPORTED_MODULE_12_style_utils__["checkStyleName"])('transform');
7629 style[transform] = style[transform] || {};
7630 style[transform][_type] = Object(__WEBPACK_IMPORTED_MODULE_12_style_utils__["stylesToCss"])(_type, d).trim();
7631 } else if (cssName === 'filter') {
7632 var filter = Object(__WEBPACK_IMPORTED_MODULE_12_style_utils__["checkStyleName"])('filter');
7633 style[filter] = style[filter] || {};
7634 style[filter][_type] = Object(__WEBPACK_IMPORTED_MODULE_12_style_utils__["stylesToCss"])(_type, d).trim();
7635 } else {
7636 style[cssName] = Object(__WEBPACK_IMPORTED_MODULE_12_style_utils__["stylesToCss"])(_type, d).trim();
7637 }
7638 });
7639 return style;
7640 };
7641
7642 this.setFollowStyle = function (domWH) {
7643 _this2.doms.forEach(function (item, i) {
7644 if (!item) {
7645 return;
7646 }
7647 var data = _this2.followParallax.data[i];
7648 var style = _this2.getFollowStyle(data, domWH);
7649 Object.keys(style).forEach(function (key) {
7650 if (typeof style[key] === 'object') {
7651 var styleStr = '';
7652 Object.keys(style[key]).forEach(function (_key) {
7653 styleStr += (' ' + _key + '(' + style[key][_key] + ')').trim();
7654 });
7655 item.style[key] = styleStr;
7656 return;
7657 }
7658 item.style[key] = key.indexOf('backgroundPosition') >= 0 ? 'calc(' + (data.bgPosition || '0%') + ' + ' + style[key] + ' )' : style[key];
7659 });
7660 });
7661 };
7662
7663 this.getChildren = function () {
7664 return Object(__WEBPACK_IMPORTED_MODULE_14__utils__["f" /* toArrayChildren */])(_this2.props.children).map(function (item, i) {
7665 if (item && item.type === __WEBPACK_IMPORTED_MODULE_13__BgElement__["a" /* default */]) {
7666 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.cloneElement(item, { show: _this2.state.show });
7667 }
7668 return _this2.useTagComp ? Object(__WEBPACK_IMPORTED_MODULE_14__utils__["d" /* setAnimCompToTagComp */])(item, i) : item;
7669 });
7670 };
7671
7672 this.reFollowParallax = function () {
7673 if (!_this2.domRect) {
7674 return;
7675 }
7676 _this2.setTicker(_this2.followParallax, {
7677 x: _this2.domRect.width / 2 - _this2.offsetLeft,
7678 y: _this2.domRect.height / 2 - _this2.offsetTop
7679 }, function () {
7680 _this2.followParallax = null;
7681 });
7682 };
7683
7684 this.animEnd = function () {
7685 var type = _this2.state.show ? 'enter' : 'leave';
7686 _this2.props.callBack(type);
7687 _this2.setState(function (_, props) {
7688 return { show: props.show, mouseMoveType: null };
7689 });
7690 };
7691
7692 this.animChildren = function (props, style, bgElem) {
7693 var _props = _this2.props,
7694 elemOffset = _props.elemOffset,
7695 leaveChildHide = _props.leaveChildHide,
7696 ratio = _props.ratio,
7697 currentAnimType = _props.animType,
7698 direction = _props.direction,
7699 mouseMoveType = _props.mouseMoveType,
7700 ease = _props.ease,
7701 duration = _props.duration,
7702 delay = _props.delay,
7703 show = _props.show,
7704 sync = _props.sync,
7705 component = _props.component;
7706
7707 if (_this2.tickerId) {
7708 __WEBPACK_IMPORTED_MODULE_10_rc_tween_one__["c" /* ticker */].clear(_this2.tickerId);
7709 }
7710 if (_this2.delayTimeout) {
7711 __WEBPACK_IMPORTED_MODULE_10_rc_tween_one__["c" /* ticker */].clear(_this2.delayTimeout);
7712 _this2.delayTimeout = null;
7713 }
7714 style.display = 'block';
7715
7716 props.component = component;
7717 style.zIndex = show ? 1 : 0;
7718 var type = show ? 'enter' : 'leave';
7719 _this2.useTagComp = (currentAnimType === __WEBPACK_IMPORTED_MODULE_15__anim__["a" /* default */].gridBar || currentAnimType === __WEBPACK_IMPORTED_MODULE_15__anim__["a" /* default */].grid) && (show === _this2.state.show || _this2.state.show && !show);
7720 // 状态没改,锁定 children
7721 props.children = !sync && (show && show !== _this2.state.show || !show && !_this2.state.show) ? bgElem : _this2.getChildren();
7722 var childrenToRender = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10_rc_tween_one__["b" /* default */], props);
7723 var $ratio = mouseMoveType === 'end' && ratio <= 0.3 ? 1 - ratio : ratio;
7724 var tag = currentAnimType(childrenToRender, type, direction, {
7725 ease: ease,
7726 duration: duration,
7727 delay: delay,
7728 onComplete: _this2.animEnd
7729 }, elemOffset, leaveChildHide, $ratio, _this2.state.mouseMoveType === 'update');
7730
7731 var tagProps = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_objectWithoutProperties___default()(tag.props, []);
7732
7733 if (tagProps.animation) {
7734 tagProps.moment = (tagProps.animation.duration + tagProps.animation.delay) * $ratio || 0;
7735 tagProps.paused = _this2.state.mouseMoveType === 'update' || $ratio === 1;
7736 }
7737 return __WEBPACK_IMPORTED_MODULE_6_react___default.a.cloneElement(tag, tagProps);
7738 };
7739};
7740
7741Element.propTypes = {
7742 children: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.any,
7743 style: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object,
7744 prefixCls: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string,
7745 component: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.any,
7746 elemOffset: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object,
7747 type: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string,
7748 animType: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func,
7749 ease: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string,
7750 duration: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number,
7751 delay: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number,
7752 direction: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string,
7753 callBack: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.func,
7754 followParallax: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.any,
7755 show: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool,
7756 leaveChildHide: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool,
7757 sync: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool,
7758 ratio: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.number,
7759 mouseMoveType: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string,
7760 componentProps: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object
7761};
7762Element.defaultProps = {
7763 component: 'div',
7764 componentProps: {},
7765 callBack: noop,
7766 delay: 0
7767};
7768
7769Element.BgElement = Object(__WEBPACK_IMPORTED_MODULE_9_react_lifecycles_compat__["a" /* polyfill */])(__WEBPACK_IMPORTED_MODULE_13__BgElement__["a" /* default */]);
7770Element.isBannerAnimElement = true;
7771/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_9_react_lifecycles_compat__["a" /* polyfill */])(Element));
7772
7773/***/ }),
7774/* 123 */
7775/***/ (function(module, __webpack_exports__, __webpack_require__) {
7776
7777"use strict";
7778/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(0);
7779/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
7780/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(8);
7781/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);
7782/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(9);
7783/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__);
7784/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__ = __webpack_require__(10);
7785/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__);
7786/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(11);
7787/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__);
7788/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(1);
7789/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__);
7790/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom__ = __webpack_require__(28);
7791/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_dom__);
7792/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types__ = __webpack_require__(5);
7793/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types__);
7794/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_tween_one__ = __webpack_require__(45);
7795/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_style_utils__ = __webpack_require__(29);
7796/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_style_utils___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_style_utils__);
7797/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils__ = __webpack_require__(18);
7798/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__anim__ = __webpack_require__(30);
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812var BgElement = function (_React$Component) {
7813 __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(BgElement, _React$Component);
7814
7815 __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default()(BgElement, null, [{
7816 key: 'getDerivedStateFromProps',
7817 value: function getDerivedStateFromProps(props, _ref) {
7818 var prevProps = _ref.prevProps,
7819 $self = _ref.$self;
7820
7821 var nextState = {
7822 prevProps: props
7823 };
7824 if (prevProps && props !== prevProps) {
7825 if (props.show) {
7826 // 取 dom 在 render 之后;
7827 setTimeout(function () {
7828 if ($self.video && prevProps.videoResize && $self.videoLoad) {
7829 $self.onResize();
7830 }
7831 if (prevProps.scrollParallax) {
7832 $self.onScroll();
7833 }
7834 });
7835 }
7836 }
7837 return nextState;
7838 }
7839 }]);
7840
7841 function BgElement(props) {
7842 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, BgElement);
7843
7844 var _this = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, (BgElement.__proto__ || Object.getPrototypeOf(BgElement)).call(this, props));
7845
7846 _this.onScroll = function () {
7847 var scrollTop = Object(__WEBPACK_IMPORTED_MODULE_10__utils__["b" /* currentScrollTop */])();
7848 var domRect = _this.dom.parentNode.getBoundingClientRect();
7849 var offsetTop = domRect.top + scrollTop;
7850 var height = Math.max(domRect.height, Object(__WEBPACK_IMPORTED_MODULE_10__utils__["g" /* windowHeight */])());
7851 var elementShowHeight = scrollTop - offsetTop + height;
7852 var scale = elementShowHeight / (height + domRect.height);
7853 scale = scale || 0;
7854 scale = scale >= 1 ? 1 : scale;
7855 _this.tween.frame(scale * _this.scrollParallaxDuration);
7856 };
7857
7858 _this.onResize = function () {
7859 if (!_this.props.show) {
7860 return;
7861 }
7862 var domRect = _this.dom.getBoundingClientRect();
7863 var videoDomRect = _this.video.getBoundingClientRect();
7864 _this.videoLoad = true;
7865 var scale = void 0;
7866 var videoRect = {
7867 display: 'block',
7868 position: 'relative',
7869 top: 0,
7870 left: 0
7871 };
7872 if (domRect.width / domRect.height > videoDomRect.width / videoDomRect.height) {
7873 scale = domRect.width / videoDomRect.width;
7874 videoRect.width = domRect.width;
7875 videoRect.height = videoDomRect.height * scale;
7876 videoRect.top = -(videoRect.height - domRect.height) / 2;
7877 } else {
7878 scale = domRect.height / videoDomRect.height;
7879 videoRect.height = domRect.height;
7880 videoRect.width = videoDomRect.width * scale;
7881 videoRect.left = -(videoRect.width - domRect.width) / 2;
7882 }
7883
7884 Object.keys(videoRect).forEach(function (key) {
7885 _this.video.style[key] = Object(__WEBPACK_IMPORTED_MODULE_9_style_utils__["stylesToCss"])(key, videoRect[key]);
7886 });
7887 };
7888
7889 _this.videoLoadedData = function () {
7890 _this.onResize();
7891 if (window.addEventListener) {
7892 window.addEventListener('resize', _this.onResize);
7893 } else {
7894 window.attachEvent('onresize', _this.onResize);
7895 }
7896 };
7897
7898 _this.isVideo = Object(__WEBPACK_IMPORTED_MODULE_10__utils__["f" /* toArrayChildren */])(_this.props.children).some(function (item) {
7899 return item.type === 'video';
7900 });
7901 if (_this.isVideo) {
7902 // 如果是 video,删除 grid 系列,位置发生变化,重加载了 video;
7903 delete __WEBPACK_IMPORTED_MODULE_11__anim__["a" /* default */].grid;
7904 delete __WEBPACK_IMPORTED_MODULE_11__anim__["a" /* default */].gridBar;
7905 }
7906 if (_this.props.scrollParallax) {
7907 _this.scrollParallaxDuration = _this.props.scrollParallax.duration || 450;
7908 }
7909 _this.video = null;
7910 _this.videoLoad = false;
7911 _this.state = {
7912 $self: _this
7913 };
7914 return _this;
7915 }
7916
7917 __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default()(BgElement, [{
7918 key: 'componentDidMount',
7919 value: function componentDidMount() {
7920 this.dom = __WEBPACK_IMPORTED_MODULE_6_react_dom___default.a.findDOMNode(this);
7921 if (!this.videoLoad) {
7922 if (this.video && this.props.videoResize) {
7923 this.video.onloadeddata = this.videoLoadedData;
7924 }
7925 }
7926 if (this.props.scrollParallax) {
7927 this.tween = new __WEBPACK_IMPORTED_MODULE_8_rc_tween_one__["a" /* Tween */](this.dom, [__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({
7928 ease: 'linear' }, this.props.scrollParallax)]);
7929 this.tween.init();
7930 this.onScroll();
7931 if (window.addEventListener) {
7932 window.addEventListener('scroll', this.onScroll);
7933 } else {
7934 window.attachEvent('onscroll', this.onScroll);
7935 }
7936 }
7937 }
7938 }, {
7939 key: 'componentWillUnmount',
7940 value: function componentWillUnmount() {
7941 if (window.addEventListener) {
7942 window.removeEventListener('resize', this.onResize);
7943 window.removeEventListener('scroll', this.onScroll);
7944 } else {
7945 window.detachEvent('onresize', this.onResize);
7946 window.detachEvent('onscroll', this.onScroll);
7947 }
7948 }
7949 }, {
7950 key: 'render',
7951 value: function render() {
7952 var _this2 = this;
7953
7954 var props = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, this.props, this.props.componentProps);
7955 ['videoResize', 'scrollParallax', 'scrollParallaxDuration', 'show', 'component', 'componentProps'].forEach(function (key) {
7956 return delete props[key];
7957 });
7958 if (this.isVideo && this.props.videoResize) {
7959 var children = Object(__WEBPACK_IMPORTED_MODULE_10__utils__["f" /* toArrayChildren */])(props.children).map(function (item, i) {
7960 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.cloneElement(item, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, item.props, { key: item.key || 'bg-video-' + i, ref: function ref(c) {
7961 _this2.video = c;
7962 if (typeof item.ref === 'function') {
7963 item.ref(c);
7964 }
7965 }
7966 }));
7967 });
7968 props.children = children.length === 1 ? children[0] : children;
7969 }
7970 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(this.props.component, props);
7971 }
7972 }]);
7973
7974 return BgElement;
7975}(__WEBPACK_IMPORTED_MODULE_5_react___default.a.Component);
7976
7977/* harmony default export */ __webpack_exports__["a"] = (BgElement);
7978
7979
7980BgElement.propTypes = {
7981 className: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.string,
7982 style: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object,
7983 children: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.any,
7984 component: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.any,
7985 videoResize: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool,
7986 scrollParallax: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object,
7987 show: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.bool,
7988 componentProps: __WEBPACK_IMPORTED_MODULE_7_prop_types___default.a.object
7989};
7990
7991BgElement.defaultProps = {
7992 component: 'div',
7993 videoResize: true,
7994 componentProps: {}
7995};
7996
7997BgElement.isBannerAnimBgElement = true;
7998
7999/***/ })
8000/******/ ])["default"];
8001});
8002//# sourceMappingURL=rc-banner-anim.js.map
\No newline at end of file