github.com/linapex/ethereum-go-chinese@v0.0.0-20190316121929-f8b7a73c3fa1/dashboard/assets.go (about) 1 2 //<developer> 3 // <name>linapex 曹一峰</name> 4 // <email>linapex@163.com</email> 5 // <wx>superexc</wx> 6 // <qqgroup>128148617</qqgroup> 7 // <url>https://jsq.ink</url> 8 // <role>pku engineer</role> 9 // <date>2019-03-16 19:16:36</date> 10 //</624450085844946944> 11 12 //由go bindata生成的代码。不要编辑。 13 //资料来源: 14 //资产/index.html 15 //资产/捆绑.js 16 17 package dashboard 18 19 import ( 20 "crypto/sha256" 21 "fmt" 22 "io/ioutil" 23 "os" 24 "path/filepath" 25 "strings" 26 "time" 27 ) 28 29 type asset struct { 30 bytes []byte 31 info os.FileInfo 32 digest [sha256.Size]byte 33 } 34 35 type bindataFileInfo struct { 36 name string 37 size int64 38 mode os.FileMode 39 modTime time.Time 40 } 41 42 func (fi bindataFileInfo) Name() string { 43 return fi.name 44 } 45 func (fi bindataFileInfo) Size() int64 { 46 return fi.size 47 } 48 func (fi bindataFileInfo) Mode() os.FileMode { 49 return fi.mode 50 } 51 func (fi bindataFileInfo) ModTime() time.Time { 52 return fi.modTime 53 } 54 func (fi bindataFileInfo) IsDir() bool { 55 return false 56 } 57 func (fi bindataFileInfo) Sys() interface{} { 58 return nil 59 } 60 61 //诺林特:拼错 62 var _indexHtml = []byte(`<!DOCTYPE html> 63 <html lang="en" style="height: 100%"> 64 <head> 65 <meta charset="UTF-8"> 66 <meta http-equiv="X-UA-Compatible" content="IE=edge"> 67 <meta name="viewport" content="width=device-width, initial-scale=1"> 68 69 <title>Go Ethereum Dashboard</title> 70 <link rel="shortcut icon" type="image/ico" href="https://Org/Favigim.ICO//> 71 <style> 72 ::-webkit-scrollbar { 73 width: 16px; 74 } 75 ::-webkit-scrollbar-thumb { 76 background: #212121; 77 } 78 ::-webkit-scrollbar-corner { 79 background: transparent; 80 } 81 </style> 82 </head> 83 <body style="height: 100%; margin: 0"> 84 <div id="dashboard" style="height: 100%"></div> 85 <script src="bundle.js"></script> 86 </body> 87 </html> 88 `) 89 90 func indexHtmlBytes() ([]byte, error) { 91 return _indexHtml, nil 92 } 93 94 func indexHtml() (*asset, error) { 95 bytes, err := indexHtmlBytes() 96 if err != nil { 97 return nil, err 98 } 99 100 info := bindataFileInfo{name: "index.html", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} 101 a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x22, 0xc8, 0x3d, 0x86, 0x2f, 0xb4, 0x6a, 0x1f, 0xda, 0xd, 0x54, 0x14, 0xa3, 0x6e, 0x80, 0x56, 0x28, 0xea, 0x44, 0xcf, 0xf5, 0xf2, 0xe, 0xad, 0x19, 0xf5, 0x93, 0xd6, 0x8d, 0x6d, 0x2f, 0x35}} 102 return a, nil 103 } 104 105 //诺林特:拼错 106 var _bundleJs = []byte((((((((((`!function(modules) { 107 function __webpack_require__(moduleId) { 108 if (installedModules[moduleId]) return installedModules[moduleId].exports; 109 var module = installedModules[moduleId] = { 110 i: moduleId, 111 l: !1, 112 exports: {} 113 }; 114 return modules[moduleId].call(module.exports, module, module.exports, __webpack_require__), 115 module.l = !0, module.exports; 116 } 117 var installedModules = {}; 118 __webpack_require__.m = modules, __webpack_require__.c = installedModules, __webpack_require__.d = function(exports, name, getter) { 119 __webpack_require__.o(exports, name) || Object.defineProperty(exports, name, { 120 configurable: !1, 121 enumerable: !0, 122 get: getter 123 }); 124 }, __webpack_require__.n = function(module) { 125 var getter = module && module.__esModule ? function() { 126 return module.default; 127 } : function() { 128 return module; 129 }; 130 return __webpack_require__.d(getter, "a", getter), getter; 131 }, __webpack_require__.o = function(object, property) { 132 return Object.prototype.hasOwnProperty.call(object, property); 133 }, __webpack_require__.p = "", __webpack_require__(__webpack_require__.s = 375); 134 }([ function(module, exports, __webpack_require__) { 135 "use strict"; 136 (function(process) { 137 "production" === process.env.NODE_ENV ? module.exports = __webpack_require__(376) : module.exports = __webpack_require__(377); 138 }).call(exports, __webpack_require__(2)); 139 }, function(module, exports, __webpack_require__) { 140 (function(process) { 141 if ("production" !== process.env.NODE_ENV) { 142 var REACT_ELEMENT_TYPE = "function" == typeof Symbol && Symbol.for && Symbol.for("react.element") || 60103, isValidElement = function(object) { 143 return "object" == typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE; 144 }; 145 module.exports = __webpack_require__(418)(isValidElement, !0); 146 } else module.exports = __webpack_require__(419)(); 147 }).call(exports, __webpack_require__(2)); 148 }, function(module, exports) { 149 function defaultSetTimout() { 150 throw new Error("setTimeout has not been defined"); 151 } 152 function defaultClearTimeout() { 153 throw new Error("clearTimeout has not been defined"); 154 } 155 function runTimeout(fun) { 156 if (cachedSetTimeout === setTimeout) return setTimeout(fun, 0); 157 if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) return cachedSetTimeout = setTimeout, 158 setTimeout(fun, 0); 159 try { 160 return cachedSetTimeout(fun, 0); 161 } catch (e) { 162 try { 163 return cachedSetTimeout.call(null, fun, 0); 164 } catch (e) { 165 return cachedSetTimeout.call(this, fun, 0); 166 } 167 } 168 } 169 function runClearTimeout(marker) { 170 if (cachedClearTimeout === clearTimeout) return clearTimeout(marker); 171 if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) return cachedClearTimeout = clearTimeout, 172 clearTimeout(marker); 173 try { 174 return cachedClearTimeout(marker); 175 } catch (e) { 176 try { 177 return cachedClearTimeout.call(null, marker); 178 } catch (e) { 179 return cachedClearTimeout.call(this, marker); 180 } 181 } 182 } 183 function cleanUpNextTick() { 184 draining && currentQueue && (draining = !1, currentQueue.length ? queue = currentQueue.concat(queue) : queueIndex = -1, 185 queue.length && drainQueue()); 186 } 187 function drainQueue() { 188 if (!draining) { 189 var timeout = runTimeout(cleanUpNextTick); 190 draining = !0; 191 for (var len = queue.length; len; ) { 192 for (currentQueue = queue, queue = []; ++queueIndex < len; ) currentQueue && currentQueue[queueIndex].run(); 193 queueIndex = -1, len = queue.length; 194 } 195 currentQueue = null, draining = !1, runClearTimeout(timeout); 196 } 197 } 198 function Item(fun, array) { 199 this.fun = fun, this.array = array; 200 } 201 function noop() {} 202 var cachedSetTimeout, cachedClearTimeout, process = module.exports = {}; 203 !function() { 204 try { 205 cachedSetTimeout = "function" == typeof setTimeout ? setTimeout : defaultSetTimout; 206 } catch (e) { 207 cachedSetTimeout = defaultSetTimout; 208 } 209 try { 210 cachedClearTimeout = "function" == typeof clearTimeout ? clearTimeout : defaultClearTimeout; 211 } catch (e) { 212 cachedClearTimeout = defaultClearTimeout; 213 } 214 }(); 215 var currentQueue, queue = [], draining = !1, queueIndex = -1; 216 process.nextTick = function(fun) { 217 var args = new Array(arguments.length - 1); 218 if (arguments.length > 1) for (var i = 1; i < arguments.length; i++) args[i - 1] = arguments[i]; 219 queue.push(new Item(fun, args)), 1 !== queue.length || draining || runTimeout(drainQueue); 220 }, Item.prototype.run = function() { 221 this.fun.apply(null, this.array); 222 }, process.title = "browser", process.browser = !0, process.env = {}, process.argv = [], 223 process.version = "", process.versions = {}, process.on = noop, process.addListener = noop, 224 process.once = noop, process.off = noop, process.removeListener = noop, process.removeAllListeners = noop, 225 process.emit = noop, process.prependListener = noop, process.prependOnceListener = noop, 226 process.listeners = function(name) { 227 return []; 228 }, process.binding = function(name) { 229 throw new Error("process.binding is not supported"); 230 }, process.cwd = function() { 231 return "/"; 232 }, process.chdir = function(dir) { 233 throw new Error("process.chdir is not supported"); 234 }, process.umask = function() { 235 return 0; 236 }; 237 }, function(module, exports, __webpack_require__) { 238 var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; 239 !function() { 240 "use strict"; 241 function classNames() { 242 for (var classes = [], i = 0; i < arguments.length; i++) { 243 var arg = arguments[i]; 244 if (arg) { 245 var argType = typeof arg; 246 if ("string" === argType || "number" === argType) classes.push(arg); else if (Array.isArray(arg)) classes.push(classNames.apply(null, arg)); else if ("object" === argType) for (var key in arg) hasOwn.call(arg, key) && arg[key] && classes.push(key); 247 } 248 } 249 return classes.join(" "); 250 } 251 var hasOwn = {}.hasOwnProperty; 252 void 0 !== module && module.exports ? module.exports = classNames : (__WEBPACK_AMD_DEFINE_ARRAY__ = [], 253 void 0 !== (__WEBPACK_AMD_DEFINE_RESULT__ = function() { 254 return classNames; 255 }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); 256 }(); 257 }, function(module, __webpack_exports__, __webpack_require__) { 258 "use strict"; 259 function _toConsumableArray(arr) { 260 if (Array.isArray(arr)) { 261 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; 262 return arr2; 263 } 264 return Array.from(arr); 265 } 266 function _objectWithoutProperties(obj, keys) { 267 var target = {}; 268 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 269 return target; 270 } 271 __webpack_require__.d(__webpack_exports__, "c", function() { 272 return PRESENTATION_ATTRIBUTES; 273 }), __webpack_require__.d(__webpack_exports__, "a", function() { 274 return EVENT_ATTRIBUTES; 275 }), __webpack_require__.d(__webpack_exports__, "d", function() { 276 return SCALE_TYPES; 277 }), __webpack_require__.d(__webpack_exports__, "b", function() { 278 return LEGEND_TYPES; 279 }), __webpack_require__.d(__webpack_exports__, "j", function() { 280 return getDisplayName; 281 }), __webpack_require__.d(__webpack_exports__, "h", function() { 282 return findAllByType; 283 }), __webpack_require__.d(__webpack_exports__, "i", function() { 284 return findChildByType; 285 }), __webpack_require__.d(__webpack_exports__, "k", function() { 286 return getPresentationAttributes; 287 }), __webpack_require__.d(__webpack_exports__, "e", function() { 288 return filterEventAttributes; 289 }), __webpack_require__.d(__webpack_exports__, "f", function() { 290 return filterEventsOfChild; 291 }), __webpack_require__.d(__webpack_exports__, "q", function() { 292 return validateWidthHeight; 293 }), __webpack_require__.d(__webpack_exports__, "n", function() { 294 return isSsr; 295 }), __webpack_require__.d(__webpack_exports__, "g", function() { 296 return filterSvgElements; 297 }), __webpack_require__.d(__webpack_exports__, "m", function() { 298 return isChildrenEqual; 299 }), __webpack_require__.d(__webpack_exports__, "p", function() { 300 return renderByOrder; 301 }), __webpack_require__.d(__webpack_exports__, "l", function() { 302 return getReactEventByType; 303 }), __webpack_require__.d(__webpack_exports__, "o", function() { 304 return parseChildIndex; 305 }); 306 var __WEBPACK_IMPORTED_MODULE_0_lodash_isNil__ = __webpack_require__(20), __WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isNil__), __WEBPACK_IMPORTED_MODULE_1_lodash_isString__ = __webpack_require__(173), __WEBPACK_IMPORTED_MODULE_1_lodash_isString___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isString__), __WEBPACK_IMPORTED_MODULE_2_lodash_isObject__ = __webpack_require__(32), __WEBPACK_IMPORTED_MODULE_2_lodash_isObject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_lodash_isObject__), __WEBPACK_IMPORTED_MODULE_3_lodash_isFunction__ = __webpack_require__(8), __WEBPACK_IMPORTED_MODULE_3_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_lodash_isFunction__), __WEBPACK_IMPORTED_MODULE_4_lodash_isArray__ = __webpack_require__(13), __WEBPACK_IMPORTED_MODULE_4_lodash_isArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_lodash_isArray__), __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__), __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__), __WEBPACK_IMPORTED_MODULE_7__DataUtils__ = __webpack_require__(9), __WEBPACK_IMPORTED_MODULE_8__PureRender__ = __webpack_require__(5), PRESENTATION_ATTRIBUTES = { 307 alignmentBaseline: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 308 angle: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 309 baselineShift: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 310 clip: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 311 clipPath: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 312 clipRule: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 313 color: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 314 colorInterpolation: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 315 colorInterpolationFilters: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 316 colorProfile: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 317 colorRendering: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 318 cursor: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 319 direction: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "ltr", "rtl", "inherit" ]), 320 display: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 321 dominantBaseline: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 322 enableBackground: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 323 fill: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 324 fillOpacity: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number ]), 325 fillRule: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "nonzero", "evenodd", "inherit" ]), 326 filter: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 327 floodColor: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 328 floodOpacity: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number ]), 329 font: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 330 fontFamily: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 331 fontSize: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string ]), 332 fontSizeAdjust: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string ]), 333 fontStretch: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "normal", "wider", "narrower", "ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", "inherit" ]), 334 fontStyle: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "normal", "italic", "oblique", "inherit" ]), 335 fontVariant: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "normal", "small-caps", "inherit" ]), 336 fontWeight: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "normal", "bold", "bolder", "lighter", 100, 200, 300, 400, 500, 600, 700, 800, 900, "inherit" ]), 337 glyphOrientationHorizontal: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 338 glyphOrientationVertical: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 339 imageRendering: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "auto", "optimizeSpeed", "optimizeQuality", "inherit" ]), 340 kerning: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string ]), 341 letterSpacing: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string ]), 342 lightingColor: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 343 markerEnd: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 344 markerMid: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 345 markerStart: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 346 mask: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 347 opacity: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string ]), 348 overflow: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "visible", "hidden", "scroll", "auto", "inherit" ]), 349 pointerEvents: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "visiblePainted", "visibleFill", "visibleStroke", "visible", "painted", "fill", "stroke", "all", "none", "inherit" ]), 350 shapeRendering: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "auto", "optimizeSpeed", "crispEdges", "geometricPrecision", "inherit" ]), 351 stopColor: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 352 stopOpacity: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string ]), 353 stroke: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string ]), 354 strokeDasharray: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 355 strokeDashoffset: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string ]), 356 strokeLinecap: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "butt", "round", "square", "inherit" ]), 357 strokeLinejoin: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "miter", "round", "bevel", "inherit" ]), 358 strokeMiterlimit: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string ]), 359 strokeOpacity: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string ]), 360 strokeWidth: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string ]), 361 textAnchor: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "start", "middle", "end", "inherit" ]), 362 textDecoration: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "none", "underline", "overline", "line-through", "blink", "inherit" ]), 363 textRendering: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "auto", "optimizeSpeed", "optimizeLegibility", "geometricPrecision", "inherit" ]), 364 unicodeBidi: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "normal", "embed", "bidi-override", "inherit" ]), 365 visibility: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "visible", "hidden", "collapse", "inherit" ]), 366 wordSpacing: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string ]), 367 writingMode: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "lr-tb", "rl-tb", "tb-rl", "lr", "rl", "tb", "inherit" ]), 368 transform: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 369 style: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object, 370 width: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 371 height: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 372 dx: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 373 dy: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 374 x: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 375 y: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 376 r: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 377 radius: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.array ]) 378 }, EVENT_ATTRIBUTES = { 379 onClick: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 380 onMouseDown: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 381 onMouseUp: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 382 onMouseOver: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 383 onMouseMove: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 384 onMouseOut: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 385 onMouseEnter: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 386 onMouseLeave: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 387 onTouchEnd: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 388 onTouchMove: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 389 onTouchStart: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 390 onTouchCancel: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func 391 }, REACT_BROWSER_EVENT_MAP = { 392 click: "onClick", 393 mousedown: "onMouseDown", 394 mouseup: "onMouseUp", 395 mouseover: "onMouseOver", 396 mousemove: "onMouseMove", 397 mouseout: "onMouseOut", 398 mouseenter: "onMouseEnter", 399 mouseleave: "onMouseLeave", 400 touchcancel: "onTouchCancel", 401 touchend: "onTouchEnd", 402 touchmove: "onTouchMove", 403 touchstart: "onTouchStart" 404 }, SCALE_TYPES = [ "auto", "linear", "pow", "sqrt", "log", "identity", "time", "band", "point", "ordinal", "quantile", "quantize", "utcTime", "sequential", "threshold" ], LEGEND_TYPES = [ "plainline", "line", "square", "rect", "circle", "cross", "diamond", "star", "triangle", "wye", "none" ], getDisplayName = function(Comp) { 405 return Comp ? "string" == typeof Comp ? Comp : Comp.displayName || Comp.name || "Component" : ""; 406 }, findAllByType = function(children, type) { 407 var result = [], types = []; 408 return types = __WEBPACK_IMPORTED_MODULE_4_lodash_isArray___default()(type) ? type.map(function(t) { 409 return getDisplayName(t); 410 }) : [ getDisplayName(type) ], __WEBPACK_IMPORTED_MODULE_5_react___default.a.Children.forEach(children, function(child) { 411 var childType = child && child.type && (child.type.displayName || child.type.name); 412 -1 !== types.indexOf(childType) && result.push(child); 413 }), result; 414 }, findChildByType = function(children, type) { 415 var result = findAllByType(children, type); 416 return result && result[0]; 417 }, getPresentationAttributes = function(el) { 418 if (!el || __WEBPACK_IMPORTED_MODULE_3_lodash_isFunction___default()(el)) return null; 419 var props = __WEBPACK_IMPORTED_MODULE_5_react___default.a.isValidElement(el) ? el.props : el; 420 if (!__WEBPACK_IMPORTED_MODULE_2_lodash_isObject___default()(props)) return null; 421 var out = null; 422 for (var i in props) ({}).hasOwnProperty.call(props, i) && PRESENTATION_ATTRIBUTES[i] && (out || (out = {}), 423 out[i] = props[i]); 424 return out; 425 }, getEventHandlerOfElement = function(originalHandler, props) { 426 return function(e) { 427 return originalHandler(props, e), null; 428 }; 429 }, filterEventAttributes = function(el, newHandler) { 430 var wrapCallback = arguments.length > 2 && void 0 !== arguments[2] && arguments[2]; 431 if (!el || __WEBPACK_IMPORTED_MODULE_3_lodash_isFunction___default()(el)) return null; 432 var props = __WEBPACK_IMPORTED_MODULE_5_react___default.a.isValidElement(el) ? el.props : el; 433 if (!__WEBPACK_IMPORTED_MODULE_2_lodash_isObject___default()(props)) return null; 434 var out = null; 435 for (var i in props) ({}).hasOwnProperty.call(props, i) && EVENT_ATTRIBUTES[i] && (out || (out = {}), 436 out[i] = newHandler || (wrapCallback ? getEventHandlerOfElement(props[i], props) : props[i])); 437 return out; 438 }, getEventHandlerOfChild = function(originalHandler, data, index) { 439 return function(e) { 440 return originalHandler(data, index, e), null; 441 }; 442 }, filterEventsOfChild = function(props, data, index) { 443 if (!__WEBPACK_IMPORTED_MODULE_2_lodash_isObject___default()(props)) return null; 444 var out = null; 445 for (var i in props) ({}).hasOwnProperty.call(props, i) && EVENT_ATTRIBUTES[i] && __WEBPACK_IMPORTED_MODULE_3_lodash_isFunction___default()(props[i]) && (out || (out = {}), 446 out[i] = getEventHandlerOfChild(props[i], data, index)); 447 return out; 448 }, validateWidthHeight = function(el) { 449 if (!el || !el.props) return !1; 450 var _el$props = el.props, width = _el$props.width, height = _el$props.height; 451 return !(!Object(__WEBPACK_IMPORTED_MODULE_7__DataUtils__.h)(width) || width <= 0 || !Object(__WEBPACK_IMPORTED_MODULE_7__DataUtils__.h)(height) || height <= 0); 452 }, isSsr = function() { 453 return !("undefined" != typeof window && window.document && window.document.createElement && window.setTimeout); 454 }, SVG_TAGS = [ "a", "altGlyph", "altGlyphDef", "altGlyphItem", "animate", "animateColor", "animateMotion", "animateTransform", "circle", "clipPath", "color-profile", "cursor", "defs", "desc", "ellipse", "feBlend", "feColormatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "font", "font-face", "font-face-format", "font-face-name", "font-face-url", "foreignObject", "g", "glyph", "glyphRef", "hkern", "image", "line", "lineGradient", "marker", "mask", "metadata", "missing-glyph", "mpath", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "script", "set", "stop", "style", "svg", "switch", "symbol", "text", "textPath", "title", "tref", "tspan", "use", "view", "vkern" ], isSvgElement = function(child) { 455 return child && child.type && __WEBPACK_IMPORTED_MODULE_1_lodash_isString___default()(child.type) && SVG_TAGS.indexOf(child.type) >= 0; 456 }, filterSvgElements = function(children) { 457 var svgElements = []; 458 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.Children.forEach(children, function(entry) { 459 entry && entry.type && __WEBPACK_IMPORTED_MODULE_1_lodash_isString___default()(entry.type) && SVG_TAGS.indexOf(entry.type) >= 0 && svgElements.push(entry); 460 }), svgElements; 461 }, isSingleChildEqual = function(nextChild, prevChild) { 462 if (__WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default()(nextChild) && __WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default()(prevChild)) return !0; 463 if (!__WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default()(nextChild) && !__WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default()(prevChild)) { 464 var _ref = nextChild.props || {}, nextChildren = _ref.children, nextProps = _objectWithoutProperties(_ref, [ "children" ]), _ref2 = prevChild.props || {}, prevChildren = _ref2.children, prevProps = _objectWithoutProperties(_ref2, [ "children" ]); 465 return nextChildren && prevChildren ? Object(__WEBPACK_IMPORTED_MODULE_8__PureRender__.b)(nextProps, prevProps) && isChildrenEqual(nextChildren, prevChildren) : !nextChildren && !prevChildren && Object(__WEBPACK_IMPORTED_MODULE_8__PureRender__.b)(nextProps, prevProps); 466 } 467 return !1; 468 }, isChildrenEqual = function isChildrenEqual(nextChildren, prevChildren) { 469 if (nextChildren === prevChildren) return !0; 470 if (__WEBPACK_IMPORTED_MODULE_5_react__.Children.count(nextChildren) !== __WEBPACK_IMPORTED_MODULE_5_react__.Children.count(prevChildren)) return !1; 471 var count = __WEBPACK_IMPORTED_MODULE_5_react__.Children.count(nextChildren); 472 if (0 === count) return !0; 473 if (1 === count) return isSingleChildEqual(__WEBPACK_IMPORTED_MODULE_4_lodash_isArray___default()(nextChildren) ? nextChildren[0] : nextChildren, __WEBPACK_IMPORTED_MODULE_4_lodash_isArray___default()(prevChildren) ? prevChildren[0] : prevChildren); 474 for (var i = 0; i < count; i++) { 475 var nextChild = nextChildren[i], prevChild = prevChildren[i]; 476 if (__WEBPACK_IMPORTED_MODULE_4_lodash_isArray___default()(nextChild) || __WEBPACK_IMPORTED_MODULE_4_lodash_isArray___default()(prevChild)) { 477 if (!isChildrenEqual(nextChild, prevChild)) return !1; 478 } else if (!isSingleChildEqual(nextChild, prevChild)) return !1; 479 } 480 return !0; 481 }, renderByOrder = function(children, renderMap) { 482 var elements = [], record = {}; 483 return __WEBPACK_IMPORTED_MODULE_5_react__.Children.forEach(children, function(child, index) { 484 if (child && isSvgElement(child)) elements.push(child); else if (child && renderMap[getDisplayName(child.type)]) { 485 var displayName = getDisplayName(child.type), _renderMap$displayNam = renderMap[displayName], handler = _renderMap$displayNam.handler, once = _renderMap$displayNam.once; 486 if (once && !record[displayName] || !once) { 487 var results = handler(child, displayName, index); 488 __WEBPACK_IMPORTED_MODULE_4_lodash_isArray___default()(results) ? elements = [ elements ].concat(_toConsumableArray(results)) : elements.push(results), 489 record[displayName] = !0; 490 } 491 } 492 }), elements; 493 }, getReactEventByType = function(e) { 494 var type = e && e.type; 495 return type && REACT_BROWSER_EVENT_MAP[type] ? REACT_BROWSER_EVENT_MAP[type] : null; 496 }, parseChildIndex = function(child, children) { 497 var result = -1; 498 return __WEBPACK_IMPORTED_MODULE_5_react__.Children.forEach(children, function(entry, index) { 499 entry === child && (result = index); 500 }), result; 501 }; 502 }, function(module, __webpack_exports__, __webpack_require__) { 503 "use strict"; 504 function shallowEqual(a, b) { 505 for (var key in a) if ({}.hasOwnProperty.call(a, key) && (!{}.hasOwnProperty.call(b, key) || a[key] !== b[key])) return !1; 506 for (var _key in b) if ({}.hasOwnProperty.call(b, _key) && !{}.hasOwnProperty.call(a, _key)) return !1; 507 return !0; 508 } 509 function shouldComponentUpdate(props, state) { 510 return !shallowEqual(props, this.props) || !shallowEqual(state, this.state); 511 } 512 function pureRenderDecorator(component) { 513 component.prototype.shouldComponentUpdate = shouldComponentUpdate; 514 } 515 __webpack_exports__.b = shallowEqual, __webpack_exports__.a = pureRenderDecorator; 516 }, function(module, exports, __webpack_require__) { 517 "use strict"; 518 exports.__esModule = !0; 519 var _assign = __webpack_require__(222), _assign2 = function(obj) { 520 return obj && obj.__esModule ? obj : { 521 default: obj 522 }; 523 }(_assign); 524 exports.default = _assign2.default || function(target) { 525 for (var i = 1; i < arguments.length; i++) { 526 var source = arguments[i]; 527 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 528 } 529 return target; 530 }; 531 }, function(module, exports, __webpack_require__) { 532 "use strict"; 533 exports.__esModule = !0, exports.default = function(obj, keys) { 534 var target = {}; 535 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 536 return target; 537 }; 538 }, function(module, exports, __webpack_require__) { 539 function isFunction(value) { 540 if (!isObject(value)) return !1; 541 var tag = baseGetTag(value); 542 return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; 543 } 544 var baseGetTag = __webpack_require__(41), isObject = __webpack_require__(32), asyncTag = "[object AsyncFunction]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]"; 545 module.exports = isFunction; 546 }, function(module, __webpack_exports__, __webpack_require__) { 547 "use strict"; 548 __webpack_require__.d(__webpack_exports__, "j", function() { 549 return mathSign; 550 }), __webpack_require__.d(__webpack_exports__, "i", function() { 551 return isPercent; 552 }), __webpack_require__.d(__webpack_exports__, "h", function() { 553 return isNumber; 554 }), __webpack_require__.d(__webpack_exports__, "g", function() { 555 return isNumOrStr; 556 }), __webpack_require__.d(__webpack_exports__, "k", function() { 557 return uniqueId; 558 }), __webpack_require__.d(__webpack_exports__, "d", function() { 559 return getPercentValue; 560 }), __webpack_require__.d(__webpack_exports__, "b", function() { 561 return getAnyElementOfObject; 562 }), __webpack_require__.d(__webpack_exports__, "e", function() { 563 return hasDuplicate; 564 }), __webpack_require__.d(__webpack_exports__, "f", function() { 565 return interpolateNumber; 566 }), __webpack_require__.d(__webpack_exports__, "a", function() { 567 return findEntryInArray; 568 }), __webpack_require__.d(__webpack_exports__, "c", function() { 569 return getLinearRegression; 570 }); 571 var __WEBPACK_IMPORTED_MODULE_0_lodash_get__ = __webpack_require__(174), __WEBPACK_IMPORTED_MODULE_0_lodash_get___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_get__), __WEBPACK_IMPORTED_MODULE_1_lodash_isArray__ = __webpack_require__(13), __WEBPACK_IMPORTED_MODULE_1_lodash_isArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isArray__), __WEBPACK_IMPORTED_MODULE_2_lodash_isNaN__ = __webpack_require__(120), __WEBPACK_IMPORTED_MODULE_2_lodash_isNaN___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_lodash_isNaN__), __WEBPACK_IMPORTED_MODULE_3_lodash_isNumber__ = __webpack_require__(272), __WEBPACK_IMPORTED_MODULE_3_lodash_isNumber___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_lodash_isNumber__), __WEBPACK_IMPORTED_MODULE_4_lodash_isString__ = __webpack_require__(173), __WEBPACK_IMPORTED_MODULE_4_lodash_isString___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_lodash_isString__), mathSign = function(value) { 572 return 0 === value ? 0 : value > 0 ? 1 : -1; 573 }, isPercent = function(value) { 574 return __WEBPACK_IMPORTED_MODULE_4_lodash_isString___default()(value) && value.indexOf("%") === value.length - 1; 575 }, isNumber = function(value) { 576 return __WEBPACK_IMPORTED_MODULE_3_lodash_isNumber___default()(value) && !__WEBPACK_IMPORTED_MODULE_2_lodash_isNaN___default()(value); 577 }, isNumOrStr = function(value) { 578 return isNumber(value) || __WEBPACK_IMPORTED_MODULE_4_lodash_isString___default()(value); 579 }, idCounter = 0, uniqueId = function(prefix) { 580 var id = ++idCounter; 581 return "" + (prefix || "") + id; 582 }, getPercentValue = function(percent, totalValue) { 583 var defaultValue = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 0, validate = arguments.length > 3 && void 0 !== arguments[3] && arguments[3]; 584 if (!isNumber(percent) && !__WEBPACK_IMPORTED_MODULE_4_lodash_isString___default()(percent)) return defaultValue; 585 var value = void 0; 586 if (isPercent(percent)) { 587 var index = percent.indexOf("%"); 588 value = totalValue * parseFloat(percent.slice(0, index)) / 100; 589 } else value = +percent; 590 return __WEBPACK_IMPORTED_MODULE_2_lodash_isNaN___default()(value) && (value = defaultValue), 591 validate && value > totalValue && (value = totalValue), value; 592 }, getAnyElementOfObject = function(obj) { 593 if (!obj) return null; 594 var keys = Object.keys(obj); 595 return keys && keys.length ? obj[keys[0]] : null; 596 }, hasDuplicate = function(ary) { 597 if (!__WEBPACK_IMPORTED_MODULE_1_lodash_isArray___default()(ary)) return !1; 598 for (var len = ary.length, cache = {}, i = 0; i < len; i++) { 599 if (cache[ary[i]]) return !0; 600 cache[ary[i]] = !0; 601 } 602 return !1; 603 }, interpolateNumber = function(numberA, numberB) { 604 return isNumber(numberA) && isNumber(numberB) ? function(t) { 605 return numberA + t * (numberB - numberA); 606 } : function() { 607 return numberB; 608 }; 609 }, findEntryInArray = function(ary, specifiedKey, specifiedValue) { 610 return ary && ary.length ? ary.find(function(entry) { 611 return entry && __WEBPACK_IMPORTED_MODULE_0_lodash_get___default()(entry, specifiedKey) === specifiedValue; 612 }) : null; 613 }, getLinearRegression = function(data) { 614 if (!data || !data.length) return null; 615 for (var len = data.length, xsum = 0, ysum = 0, xysum = 0, xxsum = 0, xmin = 1 / 0, xmax = -1 / 0, i = 0; i < len; i++) xsum += data[i].cx, 616 ysum += data[i].cy, xysum += data[i].cx * data[i].cy, xxsum += data[i].cx * data[i].cx, 617 xmin = Math.min(xmin, data[i].cx), xmax = Math.max(xmax, data[i].cx); 618 var a = len * xxsum != xsum * xsum ? (len * xysum - xsum * ysum) / (len * xxsum - xsum * xsum) : 0; 619 return { 620 xmin: xmin, 621 xmax: xmax, 622 a: a, 623 b: (ysum - a * xsum) / len 624 }; 625 }; 626 }, function(module, exports, __webpack_require__) { 627 "use strict"; 628 (function(process) { 629 function _interopRequireDefault(obj) { 630 return obj && obj.__esModule ? obj : { 631 default: obj 632 }; 633 } 634 function getDefaultTheme() { 635 return defaultTheme || (defaultTheme = (0, _createMuiTheme2.default)()); 636 } 637 Object.defineProperty(exports, "__esModule", { 638 value: !0 639 }), exports.sheetsManager = void 0; 640 var _keys = __webpack_require__(55), _keys2 = _interopRequireDefault(_keys), _extends2 = __webpack_require__(6), _extends3 = _interopRequireDefault(_extends2), _getPrototypeOf = __webpack_require__(26), _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf), _classCallCheck2 = __webpack_require__(27), _classCallCheck3 = _interopRequireDefault(_classCallCheck2), _createClass2 = __webpack_require__(28), _createClass3 = _interopRequireDefault(_createClass2), _possibleConstructorReturn2 = __webpack_require__(29), _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2), _inherits2 = __webpack_require__(30), _inherits3 = _interopRequireDefault(_inherits2), _objectWithoutProperties2 = __webpack_require__(7), _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2), _map = __webpack_require__(440), _map2 = _interopRequireDefault(_map), _minSafeInteger = __webpack_require__(456), _minSafeInteger2 = _interopRequireDefault(_minSafeInteger), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _warning = __webpack_require__(11), _warning2 = _interopRequireDefault(_warning), _hoistNonReactStatics = __webpack_require__(162), _hoistNonReactStatics2 = _interopRequireDefault(_hoistNonReactStatics), _getDisplayName = __webpack_require__(244), _getDisplayName2 = _interopRequireDefault(_getDisplayName), _wrapDisplayName = __webpack_require__(79), _wrapDisplayName2 = _interopRequireDefault(_wrapDisplayName), _contextTypes = __webpack_require__(459), _contextTypes2 = _interopRequireDefault(_contextTypes), _jss = __webpack_require__(246), _ns = __webpack_require__(245), ns = function(obj) { 641 if (obj && obj.__esModule) return obj; 642 var newObj = {}; 643 if (null != obj) for (var key in obj) Object.prototype.hasOwnProperty.call(obj, key) && (newObj[key] = obj[key]); 644 return newObj.default = obj, newObj; 645 }(_ns), _jssPreset = __webpack_require__(481), _jssPreset2 = _interopRequireDefault(_jssPreset), _createMuiTheme = __webpack_require__(161), _createMuiTheme2 = _interopRequireDefault(_createMuiTheme), _themeListener = __webpack_require__(160), _themeListener2 = _interopRequireDefault(_themeListener), _createGenerateClassName = __webpack_require__(494), _createGenerateClassName2 = _interopRequireDefault(_createGenerateClassName), _getStylesCreator = __webpack_require__(495), _getStylesCreator2 = _interopRequireDefault(_getStylesCreator), jss = (0, 646 _jss.create)((0, _jssPreset2.default)()), generateClassName = (0, _createGenerateClassName2.default)(), indexCounter = _minSafeInteger2.default, sheetsManager = exports.sheetsManager = new _map2.default(), noopTheme = {}, defaultTheme = void 0, withStyles = function(stylesOrCreator) { 647 var options = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; 648 return function(Component) { 649 var _options$withTheme = options.withTheme, withTheme = void 0 !== _options$withTheme && _options$withTheme, _options$flip = options.flip, flip = void 0 === _options$flip ? null : _options$flip, name = options.name, styleSheetOptions = (0, 650 _objectWithoutProperties3.default)(options, [ "withTheme", "flip", "name" ]), stylesCreator = (0, 651 _getStylesCreator2.default)(stylesOrCreator), listenToTheme = stylesCreator.themingEnabled || withTheme || "string" == typeof name; 652 indexCounter += 1, stylesCreator.options.index = indexCounter, "production" !== process.env.NODE_ENV && (0, 653 _warning2.default)(indexCounter < 0, [ "Material-UI: you might have a memory leak.", "The indexCounter is not supposed to grow that much." ].join(" ")); 654 var WithStyles = function(_React$Component) { 655 function WithStyles(props, context) { 656 (0, _classCallCheck3.default)(this, WithStyles); 657 var _this = (0, _possibleConstructorReturn3.default)(this, (WithStyles.__proto__ || (0, 658 _getPrototypeOf2.default)(WithStyles)).call(this, props, context)); 659 _this.state = {}, _this.disableStylesGeneration = !1, _this.jss = null, _this.sheetOptions = null, 660 _this.sheetsManager = sheetsManager, _this.stylesCreatorSaved = null, _this.theme = null, 661 _this.unsubscribeId = null, _this.jss = _this.context[ns.jss] || jss; 662 var muiThemeProviderOptions = _this.context.muiThemeProviderOptions; 663 return muiThemeProviderOptions && (muiThemeProviderOptions.sheetsManager && (_this.sheetsManager = muiThemeProviderOptions.sheetsManager), 664 _this.disableStylesGeneration = muiThemeProviderOptions.disableStylesGeneration), 665 _this.stylesCreatorSaved = stylesCreator, _this.sheetOptions = (0, _extends3.default)({ 666 generateClassName: generateClassName 667 }, _this.context[ns.sheetOptions]), _this.theme = listenToTheme ? _themeListener2.default.initial(context) || getDefaultTheme() : noopTheme, 668 _this; 669 } 670 return (0, _inherits3.default)(WithStyles, _React$Component), (0, _createClass3.default)(WithStyles, [ { 671 key: "componentWillMount", 672 value: function() { 673 this.attach(this.theme); 674 } 675 }, { 676 key: "componentDidMount", 677 value: function() { 678 var _this2 = this; 679 listenToTheme && (this.unsubscribeId = _themeListener2.default.subscribe(this.context, function(theme) { 680 var oldTheme = _this2.theme; 681 _this2.theme = theme, _this2.attach(_this2.theme), _this2.setState({}, function() { 682 _this2.detach(oldTheme); 683 }); 684 })); 685 } 686 }, { 687 key: "componentWillReceiveProps", 688 value: function() { 689 this.stylesCreatorSaved !== stylesCreator && "production" !== process.env.NODE_ENV && (this.detach(this.theme), 690 this.stylesCreatorSaved = stylesCreator, this.attach(this.theme)); 691 } 692 }, { 693 key: "componentWillUnmount", 694 value: function() { 695 this.detach(this.theme), null !== this.unsubscribeId && _themeListener2.default.unsubscribe(this.context, this.unsubscribeId); 696 } 697 }, { 698 key: "attach", 699 value: function(theme) { 700 if (!this.disableStylesGeneration) { 701 var stylesCreatorSaved = this.stylesCreatorSaved, sheetManager = this.sheetsManager.get(stylesCreatorSaved); 702 sheetManager || (sheetManager = new _map2.default(), this.sheetsManager.set(stylesCreatorSaved, sheetManager)); 703 var sheetManagerTheme = sheetManager.get(theme); 704 if (sheetManagerTheme || (sheetManagerTheme = { 705 refs: 0, 706 sheet: null 707 }, sheetManager.set(theme, sheetManagerTheme)), 0 === sheetManagerTheme.refs) { 708 var styles = stylesCreatorSaved.create(theme, name), meta = name; 709 "production" === process.env.NODE_ENV || meta || (meta = (0, _getDisplayName2.default)(Component)); 710 var sheet = this.jss.createStyleSheet(styles, (0, _extends3.default)({ 711 meta: meta, 712 classNamePrefix: meta, 713 flip: "boolean" == typeof flip ? flip : "rtl" === theme.direction, 714 link: !1 715 }, this.sheetOptions, stylesCreatorSaved.options, { 716 name: name 717 }, styleSheetOptions)); 718 sheetManagerTheme.sheet = sheet, sheet.attach(); 719 var sheetsRegistry = this.context[ns.sheetsRegistry]; 720 sheetsRegistry && sheetsRegistry.add(sheet); 721 } 722 sheetManagerTheme.refs += 1; 723 } 724 } 725 }, { 726 key: "detach", 727 value: function(theme) { 728 if (!this.disableStylesGeneration) { 729 var stylesCreatorSaved = this.stylesCreatorSaved, sheetManager = this.sheetsManager.get(stylesCreatorSaved), sheetManagerTheme = sheetManager.get(theme); 730 if (sheetManagerTheme.refs -= 1, 0 === sheetManagerTheme.refs) { 731 sheetManager.delete(theme), this.jss.removeStyleSheet(sheetManagerTheme.sheet); 732 var sheetsRegistry = this.context[ns.sheetsRegistry]; 733 sheetsRegistry && sheetsRegistry.remove(sheetManagerTheme.sheet); 734 } 735 } 736 } 737 }, { 738 key: "render", 739 value: function() { 740 var _this3 = this, _props = this.props, classesProp = _props.classes, innerRef = _props.innerRef, other = (0, 741 _objectWithoutProperties3.default)(_props, [ "classes", "innerRef" ]), classes = void 0, renderedClasses = {}; 742 if (!this.disableStylesGeneration) { 743 var sheetManager = this.sheetsManager.get(this.stylesCreatorSaved), sheetsManagerTheme = sheetManager.get(this.theme); 744 renderedClasses = sheetsManagerTheme.sheet.classes; 745 } 746 classes = classesProp ? (0, _extends3.default)({}, renderedClasses, (0, _keys2.default)(classesProp).reduce(function(accumulator, key) { 747 return "production" !== process.env.NODE_ENV && (0, _warning2.default)(renderedClasses[key] || _this3.disableStylesGeneration, [ "Material-UI: the key ` + ("`" + `" + key + "`)) + ("`" + (` provided to the classes property is not implemented in " + (0, 748 _getDisplayName2.default)(Component) + ".", "You can only override one of the following: " + (0, 749 _keys2.default)(renderedClasses).join(",") ].join("\n")), "production" !== process.env.NODE_ENV && (0, 750 _warning2.default)(!classesProp[key] || "string" == typeof classesProp[key], [ "Material-UI: the key ` + "`"))) + ((`" + key + "` + ("`" + ` provided to the classes property is not valid for " + (0, 751 _getDisplayName2.default)(Component) + ".", "You need to provide a non empty string instead of: " + classesProp[key] + "." ].join("\n")), 752 classesProp[key] && (accumulator[key] = renderedClasses[key] + " " + classesProp[key]), 753 accumulator; 754 }, {})) : renderedClasses; 755 var more = {}; 756 return withTheme && (more.theme = this.theme), _react2.default.createElement(Component, (0, 757 _extends3.default)({ 758 classes: classes 759 }, more, other, { 760 ref: innerRef 761 })); 762 } 763 } ]), WithStyles; 764 }(_react2.default.Component); 765 return WithStyles.propTypes = "production" !== process.env.NODE_ENV ? { 766 classes: _propTypes2.default.object, 767 innerRef: _propTypes2.default.func 768 } : {}, WithStyles.contextTypes = (0, _extends3.default)({ 769 muiThemeProviderOptions: _propTypes2.default.object 770 }, _contextTypes2.default, listenToTheme ? _themeListener2.default.contextTypes : {}), 771 "production" !== process.env.NODE_ENV && (WithStyles.displayName = (0, _wrapDisplayName2.default)(Component, "WithStyles")), 772 (0, _hoistNonReactStatics2.default)(WithStyles, Component), "production" !== process.env.NODE_ENV && (WithStyles.Naked = Component, 773 WithStyles.options = options), WithStyles; 774 }; 775 }; 776 exports.default = withStyles; 777 }).call(exports, __webpack_require__(2)); 778 }, function(module, exports, __webpack_require__) { 779 "use strict"; 780 (function(process) { 781 var warning = function() {}; 782 "production" !== process.env.NODE_ENV && (warning = function(condition, format, args) { 783 var len = arguments.length; 784 args = new Array(len > 2 ? len - 2 : 0); 785 for (var key = 2; key < len; key++) args[key - 2] = arguments[key]; 786 if (void 0 === format) throw new Error("`)) + ("`" + (`warning(condition, format, ...args)` + "`")))) + (((` requires a warning message argument"); 787 if (format.length < 10 || /^[s\W]*$/.test(format)) throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: " + format); 788 if (!condition) { 789 var argIndex = 0, message = "Warning: " + format.replace(/%s/g, function() { 790 return args[argIndex++]; 791 }); 792 "undefined" != typeof console && console.error(message); 793 try { 794 throw new Error(message); 795 } catch (x) {} 796 } 797 }), module.exports = warning; 798 }).call(exports, __webpack_require__(2)); 799 }, function(module, exports, __webpack_require__) { 800 "use strict"; 801 exports.__esModule = !0; 802 var _defineProperty = __webpack_require__(154), _defineProperty2 = function(obj) { 803 return obj && obj.__esModule ? obj : { 804 default: obj 805 }; 806 }(_defineProperty); 807 exports.default = function(obj, key, value) { 808 return key in obj ? (0, _defineProperty2.default)(obj, key, { 809 value: value, 810 enumerable: !0, 811 configurable: !0, 812 writable: !0 813 }) : obj[key] = value, obj; 814 }; 815 }, function(module, exports) { 816 var isArray = Array.isArray; 817 module.exports = isArray; 818 }, function(module, __webpack_exports__, __webpack_require__) { 819 "use strict"; 820 function _objectWithoutProperties(obj, keys) { 821 var target = {}; 822 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 823 return target; 824 } 825 function Layer(props) { 826 var children = props.children, className = props.className, others = _objectWithoutProperties(props, [ "children", "className" ]), layerClass = __WEBPACK_IMPORTED_MODULE_2_classnames___default()("recharts-layer", className); 827 return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("g", _extends({ 828 className: layerClass 829 }, others), children); 830 } 831 var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__), __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__), __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(3), __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__), _extends = Object.assign || function(target) { 832 for (var i = 1; i < arguments.length; i++) { 833 var source = arguments[i]; 834 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 835 } 836 return target; 837 }, propTypes = { 838 className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, 839 children: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node), __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node ]) 840 }; 841 Layer.propTypes = propTypes, __webpack_exports__.a = Layer; 842 }, function(module, exports, __webpack_require__) { 843 var global = __webpack_require__(167), core = __webpack_require__(168), hide = __webpack_require__(266), redefine = __webpack_require__(581), ctx = __webpack_require__(584), $export = function(type, name, source) { 844 var key, own, out, exp, IS_FORCED = type & $export.F, IS_GLOBAL = type & $export.G, IS_STATIC = type & $export.S, IS_PROTO = type & $export.P, IS_BIND = type & $export.B, target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {}).prototype, exports = IS_GLOBAL ? core : core[name] || (core[name] = {}), expProto = exports.prototype || (exports.prototype = {}); 845 IS_GLOBAL && (source = name); 846 for (key in source) own = !IS_FORCED && target && void 0 !== target[key], out = (own ? target : source)[key], 847 exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && "function" == typeof out ? ctx(Function.call, out) : out, 848 target && redefine(target, key, out, type & $export.U), exports[key] != out && hide(exports, key, exp), 849 IS_PROTO && expProto[key] != out && (expProto[key] = out); 850 }; 851 global.core = core, $export.F = 1, $export.G = 2, $export.S = 4, $export.P = 8, 852 $export.B = 16, $export.W = 32, $export.U = 64, $export.R = 128, module.exports = $export; 853 }, function(module, __webpack_exports__, __webpack_require__) { 854 "use strict"; 855 function _defineProperty(obj, key, value) { 856 return key in obj ? Object.defineProperty(obj, key, { 857 value: value, 858 enumerable: !0, 859 configurable: !0, 860 writable: !0 861 }) : obj[key] = value, obj; 862 } 863 function _toConsumableArray(arr) { 864 if (Array.isArray(arr)) { 865 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; 866 return arr2; 867 } 868 return Array.from(arr); 869 } 870 __webpack_require__.d(__webpack_exports__, "w", function() { 871 return getValueByDataKey; 872 }), __webpack_require__.d(__webpack_exports__, "n", function() { 873 return getDomainOfDataByKey; 874 }), __webpack_require__.d(__webpack_exports__, "b", function() { 875 return calculateActiveTickIndex; 876 }), __webpack_require__.d(__webpack_exports__, "r", function() { 877 return getMainColorOfGraphicItem; 878 }), __webpack_require__.d(__webpack_exports__, "q", function() { 879 return getLegendProps; 880 }), __webpack_require__.d(__webpack_exports__, "i", function() { 881 return getBarSizeList; 882 }), __webpack_require__.d(__webpack_exports__, "h", function() { 883 return getBarPosition; 884 }), __webpack_require__.d(__webpack_exports__, "a", function() { 885 return appendOffsetOfLegend; 886 }), __webpack_require__.d(__webpack_exports__, "z", function() { 887 return parseErrorBarsOfAxis; 888 }), __webpack_require__.d(__webpack_exports__, "o", function() { 889 return getDomainOfItemsWithSameAxis; 890 }), __webpack_require__.d(__webpack_exports__, "x", function() { 891 return isCategorialAxis; 892 }), __webpack_require__.d(__webpack_exports__, "m", function() { 893 return getCoordinatesOfGrid; 894 }), __webpack_require__.d(__webpack_exports__, "u", function() { 895 return getTicksOfAxis; 896 }), __webpack_require__.d(__webpack_exports__, "d", function() { 897 return combineEventHandlers; 898 }), __webpack_require__.d(__webpack_exports__, "A", function() { 899 return parseScale; 900 }), __webpack_require__.d(__webpack_exports__, "c", function() { 901 return checkDomainOfScale; 902 }), __webpack_require__.d(__webpack_exports__, "f", function() { 903 return findPositionOfBar; 904 }), __webpack_require__.d(__webpack_exports__, "C", function() { 905 return truncateByDomain; 906 }), __webpack_require__.d(__webpack_exports__, "s", function() { 907 return getStackGroupsByAxisId; 908 }), __webpack_require__.d(__webpack_exports__, "v", function() { 909 return getTicksOfScale; 910 }), __webpack_require__.d(__webpack_exports__, "l", function() { 911 return getCateCoordinateOfLine; 912 }), __webpack_require__.d(__webpack_exports__, "k", function() { 913 return getCateCoordinateOfBar; 914 }), __webpack_require__.d(__webpack_exports__, "j", function() { 915 return getBaseValueOfBar; 916 }), __webpack_require__.d(__webpack_exports__, "e", function() { 917 return detectReferenceElementsDomain; 918 }), __webpack_require__.d(__webpack_exports__, "t", function() { 919 return getStackedDataOfItem; 920 }), __webpack_require__.d(__webpack_exports__, "p", function() { 921 return getDomainOfStackGroups; 922 }), __webpack_require__.d(__webpack_exports__, "B", function() { 923 return parseSpecifiedDomain; 924 }), __webpack_require__.d(__webpack_exports__, "D", function() { 925 return validateCoordinateInRange; 926 }), __webpack_require__.d(__webpack_exports__, "g", function() { 927 return getBandSizeOfAxis; 928 }), __webpack_require__.d(__webpack_exports__, "y", function() { 929 return parseDomainOfCategoryAxis; 930 }); 931 var __WEBPACK_IMPORTED_MODULE_0_lodash_isEqual__ = __webpack_require__(45), __WEBPACK_IMPORTED_MODULE_0_lodash_isEqual___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isEqual__), __WEBPACK_IMPORTED_MODULE_1_lodash_sortBy__ = __webpack_require__(321), __WEBPACK_IMPORTED_MODULE_1_lodash_sortBy___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_sortBy__), __WEBPACK_IMPORTED_MODULE_2_lodash_isNaN__ = __webpack_require__(120), __WEBPACK_IMPORTED_MODULE_2_lodash_isNaN___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_lodash_isNaN__), __WEBPACK_IMPORTED_MODULE_3_lodash_isString__ = __webpack_require__(173), __WEBPACK_IMPORTED_MODULE_3_lodash_isString___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_lodash_isString__), __WEBPACK_IMPORTED_MODULE_4_lodash_max__ = __webpack_require__(841), __WEBPACK_IMPORTED_MODULE_4_lodash_max___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_lodash_max__), __WEBPACK_IMPORTED_MODULE_5_lodash_min__ = __webpack_require__(328), __WEBPACK_IMPORTED_MODULE_5_lodash_min___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_lodash_min__), __WEBPACK_IMPORTED_MODULE_6_lodash_isArray__ = __webpack_require__(13), __WEBPACK_IMPORTED_MODULE_6_lodash_isArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_lodash_isArray__), __WEBPACK_IMPORTED_MODULE_7_lodash_flatMap__ = __webpack_require__(842), __WEBPACK_IMPORTED_MODULE_7_lodash_flatMap___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_lodash_flatMap__), __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction__ = __webpack_require__(8), __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_lodash_isFunction__), __WEBPACK_IMPORTED_MODULE_9_lodash_get__ = __webpack_require__(174), __WEBPACK_IMPORTED_MODULE_9_lodash_get___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_lodash_get__), __WEBPACK_IMPORTED_MODULE_10_lodash_isNil__ = __webpack_require__(20), __WEBPACK_IMPORTED_MODULE_10_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_lodash_isNil__), __WEBPACK_IMPORTED_MODULE_11_recharts_scale__ = __webpack_require__(844), __WEBPACK_IMPORTED_MODULE_12_d3_scale__ = (__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_recharts_scale__), 932 __webpack_require__(331)), __WEBPACK_IMPORTED_MODULE_13_d3_shape__ = __webpack_require__(182), __WEBPACK_IMPORTED_MODULE_14__DataUtils__ = __webpack_require__(9), __WEBPACK_IMPORTED_MODULE_15__cartesian_ReferenceDot__ = __webpack_require__(364), __WEBPACK_IMPORTED_MODULE_16__cartesian_ReferenceLine__ = __webpack_require__(365), __WEBPACK_IMPORTED_MODULE_17__cartesian_ReferenceArea__ = __webpack_require__(366), __WEBPACK_IMPORTED_MODULE_18__cartesian_ErrorBar__ = __webpack_require__(95), __WEBPACK_IMPORTED_MODULE_19__component_Legend__ = __webpack_require__(180), __WEBPACK_IMPORTED_MODULE_20__ReactUtils__ = __webpack_require__(4), _extends = Object.assign || function(target) { 933 for (var i = 1; i < arguments.length; i++) { 934 var source = arguments[i]; 935 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 936 } 937 return target; 938 }, getValueByDataKey = function(obj, dataKey, defaultValue) { 939 return __WEBPACK_IMPORTED_MODULE_10_lodash_isNil___default()(obj) || __WEBPACK_IMPORTED_MODULE_10_lodash_isNil___default()(dataKey) ? defaultValue : Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.g)(dataKey) ? __WEBPACK_IMPORTED_MODULE_9_lodash_get___default()(obj, dataKey, defaultValue) : __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(dataKey) ? dataKey(obj) : defaultValue; 940 }, getDomainOfDataByKey = function(data, key, type, filterNil) { 941 var flattenData = __WEBPACK_IMPORTED_MODULE_7_lodash_flatMap___default()(data, function(entry) { 942 return getValueByDataKey(entry, key); 943 }); 944 if ("number" === type) { 945 var domain = flattenData.filter(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.h); 946 return [ Math.min.apply(null, domain), Math.max.apply(null, domain) ]; 947 } 948 return (filterNil ? flattenData.filter(function(entry) { 949 return !__WEBPACK_IMPORTED_MODULE_10_lodash_isNil___default()(entry); 950 }) : flattenData).map(function(entry) { 951 return Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.g)(entry) ? entry : ""; 952 }); 953 }, calculateActiveTickIndex = function(coordinate, ticks, unsortedTicks, axis) { 954 var index = -1, len = ticks.length; 955 if (len > 1) { 956 if (axis && "angleAxis" === axis.axisType && Math.abs(Math.abs(axis.range[1] - axis.range[0]) - 360) <= 1e-6) for (var range = axis.range, i = 0; i < len; i++) { 957 var before = i > 0 ? unsortedTicks[i - 1].coordinate : unsortedTicks[len - 1].coordinate, cur = unsortedTicks[i].coordinate, after = i >= len - 1 ? unsortedTicks[0].coordinate : unsortedTicks[i + 1].coordinate, sameDirectionCoord = void 0; 958 if (Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.j)(cur - before) !== Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.j)(after - cur)) { 959 var diffInterval = []; 960 if (Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.j)(after - cur) === Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.j)(range[1] - range[0])) { 961 sameDirectionCoord = after; 962 var curInRange = cur + range[1] - range[0]; 963 diffInterval[0] = Math.min(curInRange, (curInRange + before) / 2), diffInterval[1] = Math.max(curInRange, (curInRange + before) / 2); 964 } else { 965 sameDirectionCoord = before; 966 var afterInRange = after + range[1] - range[0]; 967 diffInterval[0] = Math.min(cur, (afterInRange + cur) / 2), diffInterval[1] = Math.max(cur, (afterInRange + cur) / 2); 968 } 969 var sameInterval = [ Math.min(cur, (sameDirectionCoord + cur) / 2), Math.max(cur, (sameDirectionCoord + cur) / 2) ]; 970 if (coordinate > sameInterval[0] && coordinate <= sameInterval[1] || coordinate >= diffInterval[0] && coordinate <= diffInterval[1]) { 971 index = unsortedTicks[i].index; 972 break; 973 } 974 } else { 975 var min = Math.min(before, after), max = Math.max(before, after); 976 if (coordinate > (min + cur) / 2 && coordinate <= (max + cur) / 2) { 977 index = unsortedTicks[i].index; 978 break; 979 } 980 } 981 } else for (var _i = 0; _i < len; _i++) if (0 === _i && coordinate <= (ticks[_i].coordinate + ticks[_i + 1].coordinate) / 2 || _i > 0 && _i < len - 1 && coordinate > (ticks[_i].coordinate + ticks[_i - 1].coordinate) / 2 && coordinate <= (ticks[_i].coordinate + ticks[_i + 1].coordinate) / 2 || _i === len - 1 && coordinate > (ticks[_i].coordinate + ticks[_i - 1].coordinate) / 2) { 982 index = ticks[_i].index; 983 break; 984 } 985 } else index = 0; 986 return index; 987 }, getMainColorOfGraphicItem = function(item) { 988 var displayName = item.type.displayName, result = void 0; 989 switch (displayName) { 990 case "Line": 991 case "Area": 992 case "Radar": 993 result = item.props.stroke; 994 break; 995 996 default: 997 result = item.props.fill; 998 } 999 return result; 1000 }, getLegendProps = function(_ref) { 1001 var children = _ref.children, formatedGraphicalItems = _ref.formatedGraphicalItems, legendWidth = _ref.legendWidth, legendContent = _ref.legendContent, legendItem = Object(__WEBPACK_IMPORTED_MODULE_20__ReactUtils__.i)(children, __WEBPACK_IMPORTED_MODULE_19__component_Legend__.a); 1002 if (!legendItem) return null; 1003 var legendData = void 0; 1004 return legendData = legendItem.props && legendItem.props.payload ? legendItem.props && legendItem.props.payload : "children" === legendContent ? (formatedGraphicalItems || []).reduce(function(result, _ref2) { 1005 var item = _ref2.item, props = _ref2.props, data = props.sectors || props.data || []; 1006 return result.concat(data.map(function(entry) { 1007 return { 1008 type: legendItem.props.iconType || item.props.legendType, 1009 value: entry.name, 1010 color: entry.fill, 1011 payload: entry 1012 }; 1013 })); 1014 }, []) : (formatedGraphicalItems || []).map(function(_ref3) { 1015 var item = _ref3.item, _item$props = item.props, dataKey = _item$props.dataKey, name = _item$props.name, legendType = _item$props.legendType; 1016 return { 1017 inactive: _item$props.hide, 1018 dataKey: dataKey, 1019 type: legendItem.props.iconType || legendType || "square", 1020 color: getMainColorOfGraphicItem(item), 1021 value: name || dataKey, 1022 payload: item.props 1023 }; 1024 }), _extends({}, legendItem.props, __WEBPACK_IMPORTED_MODULE_19__component_Legend__.a.getWithHeight(legendItem, legendWidth), { 1025 payload: legendData, 1026 item: legendItem 1027 }); 1028 }, getBarSizeList = function(_ref4) { 1029 var globalSize = _ref4.barSize, _ref4$stackGroups = _ref4.stackGroups, stackGroups = void 0 === _ref4$stackGroups ? {} : _ref4$stackGroups; 1030 if (!stackGroups) return {}; 1031 for (var result = {}, numericAxisIds = Object.keys(stackGroups), i = 0, len = numericAxisIds.length; i < len; i++) for (var sgs = stackGroups[numericAxisIds[i]].stackGroups, stackIds = Object.keys(sgs), j = 0, sLen = stackIds.length; j < sLen; j++) { 1032 var _sgs$stackIds$j = sgs[stackIds[j]], items = _sgs$stackIds$j.items, cateAxisId = _sgs$stackIds$j.cateAxisId, barItems = items.filter(function(item) { 1033 return Object(__WEBPACK_IMPORTED_MODULE_20__ReactUtils__.j)(item.type).indexOf("Bar") >= 0; 1034 }); 1035 if (barItems && barItems.length) { 1036 var selfSize = barItems[0].props.barSize, cateId = barItems[0].props[cateAxisId]; 1037 result[cateId] || (result[cateId] = []), result[cateId].push({ 1038 item: barItems[0], 1039 stackList: barItems.slice(1), 1040 barSize: __WEBPACK_IMPORTED_MODULE_10_lodash_isNil___default()(selfSize) ? globalSize : selfSize 1041 }); 1042 } 1043 } 1044 return result; 1045 }, getBarPosition = function(_ref5) { 1046 var barGap = _ref5.barGap, barCategoryGap = _ref5.barCategoryGap, bandSize = _ref5.bandSize, _ref5$sizeList = _ref5.sizeList, sizeList = void 0 === _ref5$sizeList ? [] : _ref5$sizeList, maxBarSize = _ref5.maxBarSize, len = sizeList.length; 1047 if (len < 1) return null; 1048 var realBarGap = Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.d)(barGap, bandSize, 0, !0), result = void 0; 1049 if (sizeList[0].barSize === +sizeList[0].barSize) { 1050 var useFull = !1, fullBarSize = bandSize / len, sum = sizeList.reduce(function(res, entry) { 1051 return res + entry.barSize || 0; 1052 }, 0); 1053 sum += (len - 1) * realBarGap, sum >= bandSize && (sum -= (len - 1) * realBarGap, 1054 realBarGap = 0), sum >= bandSize && fullBarSize > 0 && (useFull = !0, fullBarSize *= .9, 1055 sum = len * fullBarSize); 1056 var offset = (bandSize - sum) / 2 >> 0, prev = { 1057 offset: offset - realBarGap, 1058 size: 0 1059 }; 1060 result = sizeList.reduce(function(res, entry) { 1061 var newRes = [].concat(_toConsumableArray(res), [ { 1062 item: entry.item, 1063 position: { 1064 offset: prev.offset + prev.size + realBarGap, 1065 size: useFull ? fullBarSize : entry.barSize 1066 } 1067 } ]); 1068 return prev = newRes[newRes.length - 1].position, entry.stackList && entry.stackList.length && entry.stackList.forEach(function(item) { 1069 newRes.push({ 1070 item: item, 1071 position: prev 1072 }); 1073 }), newRes; 1074 }, []); 1075 } else { 1076 var _offset = Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.d)(barCategoryGap, bandSize, 0, !0); 1077 bandSize - 2 * _offset - (len - 1) * realBarGap <= 0 && (realBarGap = 0); 1078 var originalSize = (bandSize - 2 * _offset - (len - 1) * realBarGap) / len; 1079 originalSize > 1 && (originalSize >>= 0); 1080 var size = maxBarSize === +maxBarSize ? Math.min(originalSize, maxBarSize) : originalSize; 1081 result = sizeList.reduce(function(res, entry, i) { 1082 var newRes = [].concat(_toConsumableArray(res), [ { 1083 item: entry.item, 1084 position: { 1085 offset: _offset + (originalSize + realBarGap) * i + (originalSize - size) / 2, 1086 size: size 1087 } 1088 } ]); 1089 return entry.stackList && entry.stackList.length && entry.stackList.forEach(function(item) { 1090 newRes.push({ 1091 item: item, 1092 position: newRes[newRes.length - 1].position 1093 }); 1094 }), newRes; 1095 }, []); 1096 } 1097 return result; 1098 }, appendOffsetOfLegend = function(offset, items, props, legendBox) { 1099 var children = props.children, width = props.width, height = props.height, margin = props.margin, legendWidth = width - (margin.left || 0) - (margin.right || 0), legendHeight = height - (margin.top || 0) - (margin.bottom || 0), legendProps = getLegendProps({ 1100 children: children, 1101 items: items, 1102 legendWidth: legendWidth, 1103 legendHeight: legendHeight 1104 }), newOffset = offset; 1105 if (legendProps) { 1106 var box = legendBox || {}, align = legendProps.align, verticalAlign = legendProps.verticalAlign, layout = legendProps.layout; 1107 ("vertical" === layout || "horizontal" === layout && "center" === verticalAlign) && Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.h)(offset[align]) && (newOffset = _extends({}, offset, _defineProperty({}, align, newOffset[align] + (box.width || 0)))), 1108 ("horizontal" === layout || "vertical" === layout && "center" === align) && Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.h)(offset[verticalAlign]) && (newOffset = _extends({}, offset, _defineProperty({}, verticalAlign, newOffset[verticalAlign] + (box.height || 0)))); 1109 } 1110 return newOffset; 1111 }, getDomainOfErrorBars = function(data, item, dataKey, axisType) { 1112 var children = item.props.children, errorBars = Object(__WEBPACK_IMPORTED_MODULE_20__ReactUtils__.h)(children, __WEBPACK_IMPORTED_MODULE_18__cartesian_ErrorBar__.a).filter(function(errorBarChild) { 1113 var direction = errorBarChild.props.direction; 1114 return !(!__WEBPACK_IMPORTED_MODULE_10_lodash_isNil___default()(direction) && !__WEBPACK_IMPORTED_MODULE_10_lodash_isNil___default()(axisType)) || axisType.indexOf(direction) >= 0; 1115 }); 1116 if (errorBars && errorBars.length) { 1117 var keys = errorBars.map(function(errorBarChild) { 1118 return errorBarChild.props.dataKey; 1119 }); 1120 return data.reduce(function(result, entry) { 1121 var entryValue = getValueByDataKey(entry, dataKey, 0), mainValue = __WEBPACK_IMPORTED_MODULE_6_lodash_isArray___default()(entryValue) ? [ __WEBPACK_IMPORTED_MODULE_5_lodash_min___default()(entryValue), __WEBPACK_IMPORTED_MODULE_4_lodash_max___default()(entryValue) ] : [ entryValue, entryValue ], errorDomain = keys.reduce(function(prevErrorArr, k) { 1122 var errorValue = getValueByDataKey(entry, k, 0), lowerValue = mainValue[0] - Math.abs(__WEBPACK_IMPORTED_MODULE_6_lodash_isArray___default()(errorValue) ? errorValue[0] : errorValue), upperValue = mainValue[1] + Math.abs(__WEBPACK_IMPORTED_MODULE_6_lodash_isArray___default()(errorValue) ? errorValue[1] : errorValue); 1123 return [ Math.min(lowerValue, prevErrorArr[0]), Math.max(upperValue, prevErrorArr[1]) ]; 1124 }, [ 1 / 0, -1 / 0 ]); 1125 return [ Math.min(errorDomain[0], result[0]), Math.max(errorDomain[1], result[1]) ]; 1126 }, [ 1 / 0, -1 / 0 ]); 1127 } 1128 return null; 1129 }, parseErrorBarsOfAxis = function(data, items, dataKey, axisType) { 1130 var domains = items.map(function(item) { 1131 return getDomainOfErrorBars(data, item, dataKey, axisType); 1132 }).filter(function(entry) { 1133 return !__WEBPACK_IMPORTED_MODULE_10_lodash_isNil___default()(entry); 1134 }); 1135 return domains && domains.length ? domains.reduce(function(result, entry) { 1136 return [ Math.min(result[0], entry[0]), Math.max(result[1], entry[1]) ]; 1137 }, [ 1 / 0, -1 / 0 ]) : null; 1138 }, getDomainOfItemsWithSameAxis = function(data, items, type, filterNil) { 1139 var domains = items.map(function(item) { 1140 var dataKey = item.props.dataKey; 1141 return "number" === type && dataKey ? getDomainOfErrorBars(data, item, dataKey) || getDomainOfDataByKey(data, dataKey, type, filterNil) : getDomainOfDataByKey(data, dataKey, type, filterNil); 1142 }); 1143 if ("number" === type) return domains.reduce(function(result, entry) { 1144 return [ Math.min(result[0], entry[0]), Math.max(result[1], entry[1]) ]; 1145 }, [ 1 / 0, -1 / 0 ]); 1146 var tag = {}; 1147 return domains.reduce(function(result, entry) { 1148 for (var i = 0, len = entry.length; i < len; i++) tag[entry[i]] || (tag[entry[i]] = !0, 1149 result.push(entry[i])); 1150 return result; 1151 }, []); 1152 }, isCategorialAxis = function(layout, axisType) { 1153 return "horizontal" === layout && "xAxis" === axisType || "vertical" === layout && "yAxis" === axisType || "centric" === layout && "angleAxis" === axisType || "radial" === layout && "radiusAxis" === axisType; 1154 }, getCoordinatesOfGrid = function(ticks, min, max) { 1155 var hasMin = void 0, hasMax = void 0, values = ticks.map(function(entry) { 1156 return entry.coordinate === min && (hasMin = !0), entry.coordinate === max && (hasMax = !0), 1157 entry.coordinate; 1158 }); 1159 return hasMin || values.push(min), hasMax || values.push(max), values; 1160 }, getTicksOfAxis = function(axis, isGrid, isAll) { 1161 if (!axis) return null; 1162 var scale = axis.scale, duplicateDomain = axis.duplicateDomain, type = axis.type, range = axis.range, offset = (isGrid || isAll) && "category" === type && scale.bandwidth ? scale.bandwidth() / 2 : 0; 1163 return offset = "angleAxis" === axis.axisType ? 2 * Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.j)(range[0] - range[1]) * offset : offset, 1164 isGrid && (axis.ticks || axis.niceTicks) ? (axis.ticks || axis.niceTicks).map(function(entry) { 1165 var scaleContent = duplicateDomain ? duplicateDomain.indexOf(entry) : entry; 1166 return { 1167 coordinate: scale(scaleContent) + offset, 1168 value: entry, 1169 offset: offset 1170 }; 1171 }) : axis.isCategorial && axis.categoricalDomain ? axis.categoricalDomain.map(function(entry, index) { 1172 return { 1173 coordinate: scale(entry), 1174 value: entry, 1175 index: index, 1176 offset: offset 1177 }; 1178 }) : scale.ticks && !isAll ? scale.ticks(axis.tickCount).map(function(entry) { 1179 return { 1180 coordinate: scale(entry) + offset, 1181 value: entry, 1182 offset: offset 1183 }; 1184 }) : scale.domain().map(function(entry, index) { 1185 return { 1186 coordinate: scale(entry) + offset, 1187 value: duplicateDomain ? duplicateDomain[entry] : entry, 1188 index: index, 1189 offset: offset 1190 }; 1191 }); 1192 }, combineEventHandlers = function(defaultHandler, parentHandler, childHandler) { 1193 var customizedHandler = void 0; 1194 return __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(childHandler) ? customizedHandler = childHandler : __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(parentHandler) && (customizedHandler = parentHandler), 1195 __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(defaultHandler) || customizedHandler ? function(arg1, arg2, arg3, arg4) { 1196 __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(defaultHandler) && defaultHandler(arg1, arg2, arg3, arg4), 1197 __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(customizedHandler) && customizedHandler(arg1, arg2, arg3, arg4); 1198 } : null; 1199 }, parseScale = function(axis, chartType) { 1200 var scale = axis.scale, type = axis.type, layout = axis.layout, axisType = axis.axisType; 1201 if ("auto" === scale) return "radial" === layout && "radiusAxis" === axisType ? { 1202 scale: __WEBPACK_IMPORTED_MODULE_12_d3_scale__.scaleBand(), 1203 realScaleType: "band" 1204 } : "radial" === layout && "angleAxis" === axisType ? { 1205 scale: __WEBPACK_IMPORTED_MODULE_12_d3_scale__.scaleLinear(), 1206 realScaleType: "linear" 1207 } : "category" === type && chartType && (chartType.indexOf("LineChart") >= 0 || chartType.indexOf("AreaChart") >= 0) ? { 1208 scale: __WEBPACK_IMPORTED_MODULE_12_d3_scale__.scalePoint(), 1209 realScaleType: "point" 1210 } : "category" === type ? { 1211 scale: __WEBPACK_IMPORTED_MODULE_12_d3_scale__.scaleBand(), 1212 realScaleType: "band" 1213 } : { 1214 scale: __WEBPACK_IMPORTED_MODULE_12_d3_scale__.scaleLinear(), 1215 realScaleType: "linear" 1216 }; 1217 if (__WEBPACK_IMPORTED_MODULE_3_lodash_isString___default()(scale)) { 1218 var name = "scale" + scale.slice(0, 1).toUpperCase() + scale.slice(1); 1219 return { 1220 scale: (__WEBPACK_IMPORTED_MODULE_12_d3_scale__[name] || __WEBPACK_IMPORTED_MODULE_12_d3_scale__.scalePoint)(), 1221 realScaleType: __WEBPACK_IMPORTED_MODULE_12_d3_scale__[name] ? name : "point" 1222 }; 1223 } 1224 return __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(scale) ? { 1225 scale: scale 1226 } : { 1227 scale: __WEBPACK_IMPORTED_MODULE_12_d3_scale__.scalePoint(), 1228 realScaleType: "point" 1229 }; 1230 }, checkDomainOfScale = function(scale) { 1231 var domain = scale.domain(); 1232 if (domain && !(domain.length <= 2)) { 1233 var len = domain.length, range = scale.range(), min = Math.min(range[0], range[1]) - 1e-4, max = Math.max(range[0], range[1]) + 1e-4, first = scale(domain[0]), last = scale(domain[len - 1]); 1234 (first < min || first > max || last < min || last > max) && scale.domain([ domain[0], domain[len - 1] ]); 1235 } 1236 }, findPositionOfBar = function(barPosition, child) { 1237 if (!barPosition) return null; 1238 for (var i = 0, len = barPosition.length; i < len; i++) if (barPosition[i].item === child) return barPosition[i].position; 1239 return null; 1240 }, truncateByDomain = function(value, domain) { 1241 if (!domain || 2 !== domain.length || !Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.h)(domain[0]) || !Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.h)(domain[1])) return value; 1242 var min = Math.min(domain[0], domain[1]), max = Math.max(domain[0], domain[1]), result = [ value[0], value[1] ]; 1243 return (!Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.h)(value[0]) || value[0] < min) && (result[0] = min), 1244 (!Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.h)(value[1]) || value[1] > max) && (result[1] = max), 1245 result[0] > max && (result[0] = max), result[1] < min && (result[1] = min), result; 1246 }, offsetSign = function(series) { 1247 var n = series.length; 1248 if (!(n <= 0)) for (var j = 0, m = series[0].length; j < m; ++j) for (var positive = 0, negative = 0, i = 0; i < n; ++i) { 1249 var value = __WEBPACK_IMPORTED_MODULE_2_lodash_isNaN___default()(series[i][j][1]) ? series[i][j][0] : series[i][j][1]; 1250 value >= 0 ? (series[i][j][0] = positive, series[i][j][1] = positive + value, positive = series[i][j][1]) : (series[i][j][0] = negative, 1251 series[i][j][1] = negative + value, negative = series[i][j][1]); 1252 } 1253 }, STACK_OFFSET_MAP = { 1254 sign: offsetSign, 1255 expand: __WEBPACK_IMPORTED_MODULE_13_d3_shape__.o, 1256 none: __WEBPACK_IMPORTED_MODULE_13_d3_shape__.p, 1257 silhouette: __WEBPACK_IMPORTED_MODULE_13_d3_shape__.q, 1258 wiggle: __WEBPACK_IMPORTED_MODULE_13_d3_shape__.r 1259 }, getStackedData = function(data, stackItems, offsetType) { 1260 var dataKeys = stackItems.map(function(item) { 1261 return item.props.dataKey; 1262 }); 1263 return Object(__WEBPACK_IMPORTED_MODULE_13_d3_shape__.n)().keys(dataKeys).value(function(d, key) { 1264 return +getValueByDataKey(d, key, 0); 1265 }).order(__WEBPACK_IMPORTED_MODULE_13_d3_shape__.s).offset(STACK_OFFSET_MAP[offsetType])(data); 1266 }, getStackGroupsByAxisId = function(data, _items, numericAxisId, cateAxisId, offsetType, reverseStackOrder) { 1267 if (!data) return null; 1268 var items = reverseStackOrder ? _items.reverse() : _items, stackGroups = items.reduce(function(result, item) { 1269 var _item$props2 = item.props, stackId = _item$props2.stackId; 1270 if (_item$props2.hide) return result; 1271 var axisId = item.props[numericAxisId], parentGroup = result[axisId] || { 1272 hasStack: !1, 1273 stackGroups: {} 1274 }; 1275 if (Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.g)(stackId)) { 1276 var childGroup = parentGroup.stackGroups[stackId] || { 1277 numericAxisId: numericAxisId, 1278 cateAxisId: cateAxisId, 1279 items: [] 1280 }; 1281 childGroup.items.push(item), parentGroup.hasStack = !0, parentGroup.stackGroups[stackId] = childGroup; 1282 } else parentGroup.stackGroups[Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.k)("_stackId_")] = { 1283 numericAxisId: numericAxisId, 1284 cateAxisId: cateAxisId, 1285 items: [ item ] 1286 }; 1287 return _extends({}, result, _defineProperty({}, axisId, parentGroup)); 1288 }, {}); 1289 return Object.keys(stackGroups).reduce(function(result, axisId) { 1290 var group = stackGroups[axisId]; 1291 return group.hasStack && (group.stackGroups = Object.keys(group.stackGroups).reduce(function(res, stackId) { 1292 var g = group.stackGroups[stackId]; 1293 return _extends({}, res, _defineProperty({}, stackId, { 1294 numericAxisId: numericAxisId, 1295 cateAxisId: cateAxisId, 1296 items: g.items, 1297 stackedData: getStackedData(data, g.items, offsetType) 1298 })); 1299 }, {})), _extends({}, result, _defineProperty({}, axisId, group)); 1300 }, {}); 1301 }, calculateDomainOfTicks = function(ticks, type) { 1302 return "number" === type ? [ Math.min.apply(null, ticks), Math.max.apply(null, ticks) ] : ticks; 1303 }, getTicksOfScale = function(scale, opts) { 1304 var realScaleType = opts.realScaleType, type = opts.type, tickCount = opts.tickCount, originalDomain = opts.originalDomain, allowDecimals = opts.allowDecimals, scaleType = realScaleType || opts.scale; 1305 if ("auto" !== scaleType && "linear" !== scaleType) return null; 1306 if (tickCount && "number" === type && originalDomain && ("auto" === originalDomain[0] || "auto" === originalDomain[1])) { 1307 var domain = scale.domain(), tickValues = Object(__WEBPACK_IMPORTED_MODULE_11_recharts_scale__.getNiceTickValues)(domain, tickCount, allowDecimals); 1308 return scale.domain(calculateDomainOfTicks(tickValues, type)), { 1309 niceTicks: tickValues 1310 }; 1311 } 1312 if (tickCount && "number" === type) { 1313 var _domain = scale.domain(); 1314 return { 1315 niceTicks: Object(__WEBPACK_IMPORTED_MODULE_11_recharts_scale__.getTickValuesFixedDomain)(_domain, tickCount, allowDecimals) 1316 }; 1317 } 1318 return null; 1319 }, getCateCoordinateOfLine = function(_ref6) { 1320 var axis = _ref6.axis, ticks = _ref6.ticks, bandSize = _ref6.bandSize, entry = _ref6.entry, index = _ref6.index; 1321 if ("category" === axis.type) { 1322 if (!axis.allowDuplicatedCategory && axis.dataKey && !__WEBPACK_IMPORTED_MODULE_10_lodash_isNil___default()(entry[axis.dataKey])) { 1323 var matchedTick = Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.a)(ticks, "value", entry[axis.dataKey]); 1324 if (matchedTick) return matchedTick.coordinate + bandSize / 2; 1325 } 1326 return ticks[index] ? ticks[index].coordinate + bandSize / 2 : null; 1327 } 1328 var value = getValueByDataKey(entry, axis.dataKey); 1329 return __WEBPACK_IMPORTED_MODULE_10_lodash_isNil___default()(value) ? null : axis.scale(value); 1330 }, getCateCoordinateOfBar = function(_ref7) { 1331 var axis = _ref7.axis, ticks = _ref7.ticks, offset = _ref7.offset, bandSize = _ref7.bandSize, entry = _ref7.entry, index = _ref7.index; 1332 if ("category" === axis.type) return ticks[index] ? ticks[index].coordinate + offset : null; 1333 var value = getValueByDataKey(entry, axis.dataKey, axis.domain[index]); 1334 return __WEBPACK_IMPORTED_MODULE_10_lodash_isNil___default()(value) ? null : axis.scale(value) - bandSize / 2 + offset; 1335 }, getBaseValueOfBar = function(_ref8) { 1336 var numericAxis = _ref8.numericAxis, domain = numericAxis.scale.domain(); 1337 if ("number" === numericAxis.type) { 1338 var min = Math.min(domain[0], domain[1]), max = Math.max(domain[0], domain[1]); 1339 return min <= 0 && max >= 0 ? 0 : max < 0 ? max : min; 1340 } 1341 return domain[0]; 1342 }, detectReferenceElementsDomain = function(children, domain, axisId, axisType, specifiedTicks) { 1343 var lines = Object(__WEBPACK_IMPORTED_MODULE_20__ReactUtils__.h)(children, __WEBPACK_IMPORTED_MODULE_16__cartesian_ReferenceLine__.a), dots = Object(__WEBPACK_IMPORTED_MODULE_20__ReactUtils__.h)(children, __WEBPACK_IMPORTED_MODULE_15__cartesian_ReferenceDot__.a), elements = lines.concat(dots), areas = Object(__WEBPACK_IMPORTED_MODULE_20__ReactUtils__.h)(children, __WEBPACK_IMPORTED_MODULE_17__cartesian_ReferenceArea__.a), idKey = axisType + "Id", valueKey = axisType[0], finalDomain = domain; 1344 if (elements.length && (finalDomain = elements.reduce(function(result, el) { 1345 if (el.props[idKey] === axisId && el.props.alwaysShow && Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.h)(el.props[valueKey])) { 1346 var value = el.props[valueKey]; 1347 return [ Math.min(result[0], value), Math.max(result[1], value) ]; 1348 } 1349 return result; 1350 }, finalDomain)), areas.length) { 1351 var key1 = valueKey + "1", key2 = valueKey + "2"; 1352 finalDomain = areas.reduce(function(result, el) { 1353 if (el.props[idKey] === axisId && el.props.alwaysShow && Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.h)(el.props[key1]) && Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.h)(el.props[key2])) { 1354 var value1 = el.props[key1], value2 = el.props[key2]; 1355 return [ Math.min(result[0], value1, value2), Math.max(result[1], value1, value2) ]; 1356 } 1357 return result; 1358 }, finalDomain); 1359 } 1360 return specifiedTicks && specifiedTicks.length && (finalDomain = specifiedTicks.reduce(function(result, tick) { 1361 return Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.h)(tick) ? [ Math.min(result[0], tick), Math.max(result[1], tick) ] : result; 1362 }, finalDomain)), finalDomain; 1363 }, getStackedDataOfItem = function(item, stackGroups) { 1364 var stackId = item.props.stackId; 1365 if (Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.g)(stackId)) { 1366 var group = stackGroups[stackId]; 1367 if (group && group.items.length) { 1368 for (var itemIndex = -1, i = 0, len = group.items.length; i < len; i++) if (group.items[i] === item) { 1369 itemIndex = i; 1370 break; 1371 } 1372 return itemIndex >= 0 ? group.stackedData[itemIndex] : null; 1373 } 1374 } 1375 return null; 1376 }, getDomainOfSingle = function(data) { 1377 return data.reduce(function(result, entry) { 1378 return [ Math.min.apply(null, entry.concat([ result[0] ]).filter(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.h)), Math.max.apply(null, entry.concat([ result[1] ]).filter(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.h)) ]; 1379 }, [ 1 / 0, -1 / 0 ]); 1380 }, getDomainOfStackGroups = function(stackGroups, startIndex, endIndex) { 1381 return Object.keys(stackGroups).reduce(function(result, stackId) { 1382 var group = stackGroups[stackId], stackedData = group.stackedData, domain = stackedData.reduce(function(res, entry) { 1383 var s = getDomainOfSingle(entry.slice(startIndex, endIndex + 1)); 1384 return [ Math.min(res[0], s[0]), Math.max(res[1], s[1]) ]; 1385 }, [ 1 / 0, -1 / 0 ]); 1386 return [ Math.min(domain[0], result[0]), Math.max(domain[1], result[1]) ]; 1387 }, [ 1 / 0, -1 / 0 ]).map(function(result) { 1388 return result === 1 / 0 || result === -1 / 0 ? 0 : result; 1389 }); 1390 }, MIN_VALUE_REG = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, MAX_VALUE_REG = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, parseSpecifiedDomain = function(specifiedDomain, dataDomain, allowDataOverflow) { 1391 if (!__WEBPACK_IMPORTED_MODULE_6_lodash_isArray___default()(specifiedDomain)) return dataDomain; 1392 var domain = []; 1393 if (Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.h)(specifiedDomain[0])) domain[0] = allowDataOverflow ? specifiedDomain[0] : Math.min(specifiedDomain[0], dataDomain[0]); else if (MIN_VALUE_REG.test(specifiedDomain[0])) { 1394 var value = +MIN_VALUE_REG.exec(specifiedDomain[0])[1]; 1395 domain[0] = dataDomain[0] - value; 1396 } else __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(specifiedDomain[0]) ? domain[0] = specifiedDomain[0](dataDomain[0]) : domain[0] = dataDomain[0]; 1397 if (Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.h)(specifiedDomain[1])) domain[1] = allowDataOverflow ? specifiedDomain[1] : Math.max(specifiedDomain[1], dataDomain[1]); else if (MAX_VALUE_REG.test(specifiedDomain[1])) { 1398 var _value = +MAX_VALUE_REG.exec(specifiedDomain[1])[1]; 1399 domain[1] = dataDomain[1] + _value; 1400 } else __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(specifiedDomain[1]) ? domain[1] = specifiedDomain[1](dataDomain[1]) : domain[1] = dataDomain[1]; 1401 return domain; 1402 }, validateCoordinateInRange = function(coordinate, scale) { 1403 if (!scale) return !1; 1404 var range = scale.range(), first = range[0], last = range[range.length - 1]; 1405 return first <= last ? coordinate >= first && coordinate <= last : coordinate >= last && coordinate <= first; 1406 }, getBandSizeOfAxis = function(axis, ticks) { 1407 if (axis && axis.scale && axis.scale.bandwidth) return axis.scale.bandwidth(); 1408 if (axis && ticks && ticks.length >= 2) { 1409 for (var orderedTicks = __WEBPACK_IMPORTED_MODULE_1_lodash_sortBy___default()(ticks, function(o) { 1410 return o.coordinate; 1411 }), bandSize = 1 / 0, i = 1, len = orderedTicks.length; i < len; i++) { 1412 var cur = orderedTicks[i], prev = orderedTicks[i - 1]; 1413 bandSize = Math.min((cur.coordinate || 0) - (prev.coordinate || 0), bandSize); 1414 } 1415 return bandSize === 1 / 0 ? 0 : bandSize; 1416 } 1417 return 0; 1418 }, parseDomainOfCategoryAxis = function(specifiedDomain, calculatedDomain, axisChild) { 1419 return specifiedDomain && specifiedDomain.length ? __WEBPACK_IMPORTED_MODULE_0_lodash_isEqual___default()(specifiedDomain, __WEBPACK_IMPORTED_MODULE_9_lodash_get___default()(axisChild, "type.defaultProps.domain")) ? calculatedDomain : specifiedDomain : calculatedDomain; 1420 }; 1421 }, function(module, exports) { 1422 var core = module.exports = { 1423 version: "2.5.7" 1424 }; 1425 "number" == typeof __e && (__e = core); 1426 }, function(module, __webpack_exports__, __webpack_require__) { 1427 "use strict"; 1428 function newInterval(floori, offseti, count, field) { 1429 function interval(date) { 1430 return floori(date = new Date(+date)), date; 1431 } 1432 return interval.floor = interval, interval.ceil = function(date) { 1433 return floori(date = new Date(date - 1)), offseti(date, 1), floori(date), date; 1434 }, interval.round = function(date) { 1435 var d0 = interval(date), d1 = interval.ceil(date); 1436 return date - d0 < d1 - date ? d0 : d1; 1437 }, interval.offset = function(date, step) { 1438 return offseti(date = new Date(+date), null == step ? 1 : Math.floor(step)), date; 1439 }, interval.range = function(start, stop, step) { 1440 var previous, range = []; 1441 if (start = interval.ceil(start), step = null == step ? 1 : Math.floor(step), !(start < stop && step > 0)) return range; 1442 do { 1443 range.push(previous = new Date(+start)), offseti(start, step), floori(start); 1444 } while (previous < start && start < stop); 1445 return range; 1446 }, interval.filter = function(test) { 1447 return newInterval(function(date) { 1448 if (date >= date) for (;floori(date), !test(date); ) date.setTime(date - 1); 1449 }, function(date, step) { 1450 if (date >= date) if (step < 0) for (;++step <= 0; ) for (;offseti(date, -1), !test(date); ) ; else for (;--step >= 0; ) for (;offseti(date, 1), 1451 !test(date); ) ; 1452 }); 1453 }, count && (interval.count = function(start, end) { 1454 return t0.setTime(+start), t1.setTime(+end), floori(t0), floori(t1), Math.floor(count(t0, t1)); 1455 }, interval.every = function(step) { 1456 return step = Math.floor(step), isFinite(step) && step > 0 ? step > 1 ? interval.filter(field ? function(d) { 1457 return field(d) % step == 0; 1458 } : function(d) { 1459 return interval.count(0, d) % step == 0; 1460 }) : interval : null; 1461 }), interval; 1462 } 1463 __webpack_exports__.a = newInterval; 1464 var t0 = new Date(), t1 = new Date(); 1465 }, function(module, exports, __webpack_require__) { 1466 var global = __webpack_require__(24), core = __webpack_require__(17), ctx = __webpack_require__(51), hide = __webpack_require__(39), has = __webpack_require__(54), $export = function(type, name, source) { 1467 var key, own, out, IS_FORCED = type & $export.F, IS_GLOBAL = type & $export.G, IS_STATIC = type & $export.S, IS_PROTO = type & $export.P, IS_BIND = type & $export.B, IS_WRAP = type & $export.W, exports = IS_GLOBAL ? core : core[name] || (core[name] = {}), expProto = exports.prototype, target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {}).prototype; 1468 IS_GLOBAL && (source = name); 1469 for (key in source) (own = !IS_FORCED && target && void 0 !== target[key]) && has(exports, key) || (out = own ? target[key] : source[key], 1470 exports[key] = IS_GLOBAL && "function" != typeof target[key] ? source[key] : IS_BIND && own ? ctx(out, global) : IS_WRAP && target[key] == out ? function(C) { 1471 var F = function(a, b, c) { 1472 if (this instanceof C) { 1473 switch (arguments.length) { 1474 case 0: 1475 return new C(); 1476 1477 case 1: 1478 return new C(a); 1479 1480 case 2: 1481 return new C(a, b); 1482 } 1483 return new C(a, b, c); 1484 } 1485 return C.apply(this, arguments); 1486 }; 1487 return F.prototype = C.prototype, F; 1488 }(out) : IS_PROTO && "function" == typeof out ? ctx(Function.call, out) : out, IS_PROTO && ((exports.virtual || (exports.virtual = {}))[key] = out, 1489 type & $export.R && expProto && !expProto[key] && hide(expProto, key, out))); 1490 }; 1491 $export.F = 1, $export.G = 2, $export.S = 4, $export.P = 8, $export.B = 16, $export.W = 32, 1492 $export.U = 64, $export.R = 128, module.exports = $export; 1493 }, function(module, exports) { 1494 function isNil(value) { 1495 return null == value; 1496 } 1497 module.exports = isNil; 1498 }, function(module, exports, __webpack_require__) { 1499 var store = __webpack_require__(151)("wks"), uid = __webpack_require__(103), Symbol = __webpack_require__(24).Symbol, USE_SYMBOL = "function" == typeof Symbol; 1500 (module.exports = function(name) { 1501 return store[name] || (store[name] = USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)("Symbol." + name)); 1502 }).store = store; 1503 }, function(module, exports, __webpack_require__) { 1504 var anObject = __webpack_require__(52), IE8_DOM_DEFINE = __webpack_require__(224), toPrimitive = __webpack_require__(145), dP = Object.defineProperty; 1505 exports.f = __webpack_require__(25) ? Object.defineProperty : function(O, P, Attributes) { 1506 if (anObject(O), P = toPrimitive(P, !0), anObject(Attributes), IE8_DOM_DEFINE) try { 1507 return dP(O, P, Attributes); 1508 } catch (e) {} 1509 if ("get" in Attributes || "set" in Attributes) throw TypeError("Accessors not supported!"); 1510 return "value" in Attributes && (O[P] = Attributes.value), O; 1511 }; 1512 }, function(module, __webpack_exports__, __webpack_require__) { 1513 "use strict"; 1514 function _defineProperty(obj, key, value) { 1515 return key in obj ? Object.defineProperty(obj, key, { 1516 value: value, 1517 enumerable: !0, 1518 configurable: !0, 1519 writable: !0 1520 }) : obj[key] = value, obj; 1521 } 1522 __webpack_require__.d(__webpack_exports__, "a", function() { 1523 return RADIAN; 1524 }), __webpack_require__.d(__webpack_exports__, "e", function() { 1525 return polarToCartesian; 1526 }), __webpack_require__.d(__webpack_exports__, "c", function() { 1527 return getMaxRadius; 1528 }), __webpack_require__.d(__webpack_exports__, "b", function() { 1529 return formatAxisMap; 1530 }), __webpack_require__.d(__webpack_exports__, "d", function() { 1531 return inRangeOfSector; 1532 }); 1533 var __WEBPACK_IMPORTED_MODULE_0_lodash_isNil__ = __webpack_require__(20), __WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isNil__), __WEBPACK_IMPORTED_MODULE_1__DataUtils__ = __webpack_require__(9), __WEBPACK_IMPORTED_MODULE_2__ChartUtils__ = __webpack_require__(16), _extends = Object.assign || function(target) { 1534 for (var i = 1; i < arguments.length; i++) { 1535 var source = arguments[i]; 1536 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 1537 } 1538 return target; 1539 }, RADIAN = Math.PI / 180, radianToDegree = function(angleInRadian) { 1540 return 180 * angleInRadian / Math.PI; 1541 }, polarToCartesian = function(cx, cy, radius, angle) { 1542 return { 1543 x: cx + Math.cos(-RADIAN * angle) * radius, 1544 y: cy + Math.sin(-RADIAN * angle) * radius 1545 }; 1546 }, getMaxRadius = function(width, height) { 1547 var offset = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : { 1548 top: 0, 1549 right: 0, 1550 bottom: 0, 1551 left: 0 1552 }; 1553 return Math.min(Math.abs(width - (offset.left || 0) - (offset.right || 0)), Math.abs(height - (offset.top || 0) - (offset.bottom || 0))) / 2; 1554 }, formatAxisMap = function(props, axisMap, offset, axisType, chartName) { 1555 var width = props.width, height = props.height, startAngle = props.startAngle, endAngle = props.endAngle, cx = Object(__WEBPACK_IMPORTED_MODULE_1__DataUtils__.d)(props.cx, width, width / 2), cy = Object(__WEBPACK_IMPORTED_MODULE_1__DataUtils__.d)(props.cy, height, height / 2), maxRadius = getMaxRadius(width, height, offset), innerRadius = Object(__WEBPACK_IMPORTED_MODULE_1__DataUtils__.d)(props.innerRadius, maxRadius, 0), outerRadius = Object(__WEBPACK_IMPORTED_MODULE_1__DataUtils__.d)(props.outerRadius, maxRadius, .8 * maxRadius); 1556 return Object.keys(axisMap).reduce(function(result, id) { 1557 var axis = axisMap[id], domain = axis.domain, reversed = axis.reversed, range = void 0; 1558 __WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default()(axis.range) ? ("angleAxis" === axisType ? range = [ startAngle, endAngle ] : "radiusAxis" === axisType && (range = [ innerRadius, outerRadius ]), 1559 reversed && (range = [ range[1], range[0] ])) : (range = axis.range, startAngle = range[0], 1560 endAngle = range[1]); 1561 var _parseScale = Object(__WEBPACK_IMPORTED_MODULE_2__ChartUtils__.A)(axis, chartName), realScaleType = _parseScale.realScaleType, scale = _parseScale.scale; 1562 scale.domain(domain).range(range), Object(__WEBPACK_IMPORTED_MODULE_2__ChartUtils__.c)(scale); 1563 var ticks = Object(__WEBPACK_IMPORTED_MODULE_2__ChartUtils__.v)(scale, _extends({}, axis, { 1564 realScaleType: realScaleType 1565 })), finalAxis = _extends({}, axis, ticks, { 1566 range: range, 1567 radius: outerRadius, 1568 realScaleType: realScaleType, 1569 scale: scale, 1570 cx: cx, 1571 cy: cy, 1572 innerRadius: innerRadius, 1573 outerRadius: outerRadius, 1574 startAngle: startAngle, 1575 endAngle: endAngle 1576 }); 1577 return _extends({}, result, _defineProperty({}, id, finalAxis)); 1578 }, {}); 1579 }, distanceBetweenPoints = function(point, anotherPoint) { 1580 var x1 = point.x, y1 = point.y, x2 = anotherPoint.x, y2 = anotherPoint.y; 1581 return Math.sqrt(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2)); 1582 }, getAngleOfPoint = function(_ref, _ref2) { 1583 var x = _ref.x, y = _ref.y, cx = _ref2.cx, cy = _ref2.cy, radius = distanceBetweenPoints({ 1584 x: x, 1585 y: y 1586 }, { 1587 x: cx, 1588 y: cy 1589 }); 1590 if (radius <= 0) return { 1591 radius: radius 1592 }; 1593 var cos = (x - cx) / radius, angleInRadian = Math.acos(cos); 1594 return y > cy && (angleInRadian = 2 * Math.PI - angleInRadian), { 1595 radius: radius, 1596 angle: radianToDegree(angleInRadian), 1597 angleInRadian: angleInRadian 1598 }; 1599 }, formatAngleOfSector = function(_ref3) { 1600 var startAngle = _ref3.startAngle, endAngle = _ref3.endAngle, startCnt = Math.floor(startAngle / 360), endCnt = Math.floor(endAngle / 360), min = Math.min(startCnt, endCnt); 1601 return { 1602 startAngle: startAngle - 360 * min, 1603 endAngle: endAngle - 360 * min 1604 }; 1605 }, reverseFormatAngleOfSetor = function(angle, _ref4) { 1606 var startAngle = _ref4.startAngle, endAngle = _ref4.endAngle, startCnt = Math.floor(startAngle / 360), endCnt = Math.floor(endAngle / 360); 1607 return angle + 360 * Math.min(startCnt, endCnt); 1608 }, inRangeOfSector = function(_ref5, sector) { 1609 var x = _ref5.x, y = _ref5.y, _getAngleOfPoint = getAngleOfPoint({ 1610 x: x, 1611 y: y 1612 }, sector), radius = _getAngleOfPoint.radius, angle = _getAngleOfPoint.angle, innerRadius = sector.innerRadius, outerRadius = sector.outerRadius; 1613 if (radius < innerRadius || radius > outerRadius) return !1; 1614 if (0 === radius) return !0; 1615 var _formatAngleOfSector = formatAngleOfSector(sector), startAngle = _formatAngleOfSector.startAngle, endAngle = _formatAngleOfSector.endAngle, formatAngle = angle, inRange = void 0; 1616 if (startAngle <= endAngle) { 1617 for (;formatAngle > endAngle; ) formatAngle -= 360; 1618 for (;formatAngle < startAngle; ) formatAngle += 360; 1619 inRange = formatAngle >= startAngle && formatAngle <= endAngle; 1620 } else { 1621 for (;formatAngle > startAngle; ) formatAngle -= 360; 1622 for (;formatAngle < endAngle; ) formatAngle += 360; 1623 inRange = formatAngle >= endAngle && formatAngle <= startAngle; 1624 } 1625 return inRange ? _extends({}, sector, { 1626 radius: radius, 1627 angle: reverseFormatAngleOfSetor(formatAngle, sector) 1628 }) : null; 1629 }; 1630 }, function(module, exports) { 1631 var global = module.exports = "undefined" != typeof window && window.Math == Math ? window : "undefined" != typeof self && self.Math == Math ? self : Function("return this")(); 1632 "number" == typeof __g && (__g = global); 1633 }, function(module, exports, __webpack_require__) { 1634 module.exports = !__webpack_require__(53)(function() { 1635 return 7 != Object.defineProperty({}, "a", { 1636 get: function() { 1637 return 7; 1638 } 1639 }).a; 1640 }); 1641 }, function(module, exports, __webpack_require__) { 1642 module.exports = { 1643 default: __webpack_require__(394), 1644 __esModule: !0 1645 }; 1646 }, function(module, exports, __webpack_require__) { 1647 "use strict"; 1648 exports.__esModule = !0, exports.default = function(instance, Constructor) { 1649 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 1650 }; 1651 }, function(module, exports, __webpack_require__) { 1652 "use strict"; 1653 exports.__esModule = !0; 1654 var _defineProperty = __webpack_require__(154), _defineProperty2 = function(obj) { 1655 return obj && obj.__esModule ? obj : { 1656 default: obj 1657 }; 1658 }(_defineProperty); 1659 exports.default = function() { 1660 function defineProperties(target, props) { 1661 for (var i = 0; i < props.length; i++) { 1662 var descriptor = props[i]; 1663 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 1664 "value" in descriptor && (descriptor.writable = !0), (0, _defineProperty2.default)(target, descriptor.key, descriptor); 1665 } 1666 } 1667 return function(Constructor, protoProps, staticProps) { 1668 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 1669 Constructor; 1670 }; 1671 }(); 1672 }, function(module, exports, __webpack_require__) { 1673 "use strict"; 1674 exports.__esModule = !0; 1675 var _typeof2 = __webpack_require__(105), _typeof3 = function(obj) { 1676 return obj && obj.__esModule ? obj : { 1677 default: obj 1678 }; 1679 }(_typeof2); 1680 exports.default = function(self, call) { 1681 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 1682 return !call || "object" !== (void 0 === call ? "undefined" : (0, _typeof3.default)(call)) && "function" != typeof call ? self : call; 1683 }; 1684 }, function(module, exports, __webpack_require__) { 1685 "use strict"; 1686 function _interopRequireDefault(obj) { 1687 return obj && obj.__esModule ? obj : { 1688 default: obj 1689 }; 1690 } 1691 exports.__esModule = !0; 1692 var _setPrototypeOf = __webpack_require__(411), _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf), _create = __webpack_require__(415), _create2 = _interopRequireDefault(_create), _typeof2 = __webpack_require__(105), _typeof3 = _interopRequireDefault(_typeof2); 1693 exports.default = function(subClass, superClass) { 1694 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + (void 0 === superClass ? "undefined" : (0, 1695 _typeof3.default)(superClass))); 1696 subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, { 1697 constructor: { 1698 value: subClass, 1699 enumerable: !1, 1700 writable: !0, 1701 configurable: !0 1702 } 1703 }), superClass && (_setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass); 1704 }; 1705 }, function(module, exports, __webpack_require__) { 1706 var freeGlobal = __webpack_require__(268), freeSelf = "object" == typeof self && self && self.Object === Object && self, root = freeGlobal || freeSelf || Function("return this")(); 1707 module.exports = root; 1708 }, function(module, exports) { 1709 function isObject(value) { 1710 var type = typeof value; 1711 return null != value && ("object" == type || "function" == type); 1712 } 1713 module.exports = isObject; 1714 }, function(module, exports, __webpack_require__) { 1715 "use strict"; 1716 function _interopRequireDefault(obj) { 1717 return obj && obj.__esModule ? obj : { 1718 default: obj 1719 }; 1720 } 1721 Object.defineProperty(exports, "__esModule", { 1722 value: !0 1723 }), exports.translateStyle = exports.AnimateGroup = exports.configBezier = exports.configSpring = void 0; 1724 var _Animate = __webpack_require__(287), _Animate2 = _interopRequireDefault(_Animate), _easing = __webpack_require__(305), _util = __webpack_require__(132), _AnimateGroup = __webpack_require__(762), _AnimateGroup2 = _interopRequireDefault(_AnimateGroup); 1725 exports.configSpring = _easing.configSpring, exports.configBezier = _easing.configBezier, 1726 exports.AnimateGroup = _AnimateGroup2.default, exports.translateStyle = _util.translateStyle, 1727 exports.default = _Animate2.default; 1728 }, function(module, exports) { 1729 var isArray = Array.isArray; 1730 module.exports = isArray; 1731 }, function(module, exports) { 1732 module.exports = function(it) { 1733 return "object" == typeof it ? null !== it : "function" == typeof it; 1734 }; 1735 }, function(module, exports, __webpack_require__) { 1736 var freeGlobal = __webpack_require__(292), freeSelf = "object" == typeof self && self && self.Object === Object && self, root = freeGlobal || freeSelf || Function("return this")(); 1737 module.exports = root; 1738 }, function(module, __webpack_exports__, __webpack_require__) { 1739 "use strict"; 1740 var __WEBPACK_IMPORTED_MODULE_0__src_bisect__ = __webpack_require__(332); 1741 __webpack_require__.d(__webpack_exports__, "b", function() { 1742 return __WEBPACK_IMPORTED_MODULE_0__src_bisect__.a; 1743 }); 1744 var __WEBPACK_IMPORTED_MODULE_1__src_ascending__ = __webpack_require__(69); 1745 __webpack_require__.d(__webpack_exports__, "a", function() { 1746 return __WEBPACK_IMPORTED_MODULE_1__src_ascending__.a; 1747 }); 1748 var __WEBPACK_IMPORTED_MODULE_2__src_bisector__ = __webpack_require__(333); 1749 __webpack_require__.d(__webpack_exports__, "c", function() { 1750 return __WEBPACK_IMPORTED_MODULE_2__src_bisector__.a; 1751 }); 1752 var __WEBPACK_IMPORTED_MODULE_18__src_quantile__ = (__webpack_require__(848), __webpack_require__(849), 1753 __webpack_require__(335), __webpack_require__(337), __webpack_require__(850), __webpack_require__(853), 1754 __webpack_require__(854), __webpack_require__(341), __webpack_require__(855), __webpack_require__(856), 1755 __webpack_require__(857), __webpack_require__(858), __webpack_require__(342), __webpack_require__(334), 1756 __webpack_require__(859), __webpack_require__(204)); 1757 __webpack_require__.d(__webpack_exports__, "d", function() { 1758 return __WEBPACK_IMPORTED_MODULE_18__src_quantile__.a; 1759 }); 1760 var __WEBPACK_IMPORTED_MODULE_19__src_range__ = __webpack_require__(339); 1761 __webpack_require__.d(__webpack_exports__, "e", function() { 1762 return __WEBPACK_IMPORTED_MODULE_19__src_range__.a; 1763 }); 1764 var __WEBPACK_IMPORTED_MODULE_23__src_ticks__ = (__webpack_require__(860), __webpack_require__(861), 1765 __webpack_require__(862), __webpack_require__(340)); 1766 __webpack_require__.d(__webpack_exports__, "h", function() { 1767 return __WEBPACK_IMPORTED_MODULE_23__src_ticks__.a; 1768 }), __webpack_require__.d(__webpack_exports__, "f", function() { 1769 return __WEBPACK_IMPORTED_MODULE_23__src_ticks__.b; 1770 }), __webpack_require__.d(__webpack_exports__, "g", function() { 1771 return __WEBPACK_IMPORTED_MODULE_23__src_ticks__.c; 1772 }); 1773 __webpack_require__(343), __webpack_require__(336), __webpack_require__(863); 1774 }, function(module, __webpack_exports__, __webpack_require__) { 1775 "use strict"; 1776 __webpack_require__.d(__webpack_exports__, "d", function() { 1777 return durationSecond; 1778 }), __webpack_require__.d(__webpack_exports__, "c", function() { 1779 return durationMinute; 1780 }), __webpack_require__.d(__webpack_exports__, "b", function() { 1781 return durationHour; 1782 }), __webpack_require__.d(__webpack_exports__, "a", function() { 1783 return durationDay; 1784 }), __webpack_require__.d(__webpack_exports__, "e", function() { 1785 return durationWeek; 1786 }); 1787 var durationSecond = 1e3, durationMinute = 6e4, durationHour = 36e5, durationDay = 864e5, durationWeek = 6048e5; 1788 }, function(module, exports, __webpack_require__) { 1789 var dP = __webpack_require__(22), createDesc = __webpack_require__(75); 1790 module.exports = __webpack_require__(25) ? function(object, key, value) { 1791 return dP.f(object, key, createDesc(1, value)); 1792 } : function(object, key, value) { 1793 return object[key] = value, object; 1794 }; 1795 }, function(module, exports) { 1796 var g; 1797 g = function() { 1798 return this; 1799 }(); 1800 try { 1801 g = g || Function("return this")() || (0, eval)("this"); 1802 } catch (e) { 1803 "object" == typeof window && (g = window); 1804 } 1805 module.exports = g; 1806 }, function(module, exports, __webpack_require__) { 1807 function baseGetTag(value) { 1808 return null == value ? void 0 === value ? undefinedTag : nullTag : symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value); 1809 } 1810 var Symbol = __webpack_require__(83), getRawTag = __webpack_require__(603), objectToString = __webpack_require__(604), nullTag = "[object Null]", undefinedTag = "[object Undefined]", symToStringTag = Symbol ? Symbol.toStringTag : void 0; 1811 module.exports = baseGetTag; 1812 }, function(module, exports) { 1813 function isObjectLike(value) { 1814 return null != value && "object" == typeof value; 1815 } 1816 module.exports = isObjectLike; 1817 }, function(module, exports) { 1818 function isObjectLike(value) { 1819 return null != value && "object" == typeof value; 1820 } 1821 module.exports = isObjectLike; 1822 }, function(module, __webpack_exports__, __webpack_require__) { 1823 "use strict"; 1824 function _toConsumableArray(arr) { 1825 if (Array.isArray(arr)) { 1826 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; 1827 return arr2; 1828 } 1829 return Array.from(arr); 1830 } 1831 function Label(props) { 1832 var viewBox = props.viewBox, position = props.position, value = props.value, children = props.children, content = props.content, _props$className = props.className, className = void 0 === _props$className ? "" : _props$className; 1833 if (!viewBox || __WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default()(value) && __WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default()(children) && !Object(__WEBPACK_IMPORTED_MODULE_3_react__.isValidElement)(content) && !__WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(content)) return null; 1834 if (Object(__WEBPACK_IMPORTED_MODULE_3_react__.isValidElement)(content)) return Object(__WEBPACK_IMPORTED_MODULE_3_react__.cloneElement)(content, props); 1835 var label = void 0; 1836 if (__WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(content)) { 1837 if (label = content(props), Object(__WEBPACK_IMPORTED_MODULE_3_react__.isValidElement)(label)) return label; 1838 } else label = getLabel(props); 1839 var isPolarLabel = isPolar(viewBox), attrs = Object(__WEBPACK_IMPORTED_MODULE_7__util_ReactUtils__.k)(props); 1840 if (isPolarLabel && ("insideStart" === position || "insideEnd" === position || "end" === position)) return renderRadialLabel(props, label, attrs); 1841 var positionAttrs = isPolarLabel ? getAttrsOfPolarLabel(props) : getAttrsOfCartesianLabel(props); 1842 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__Text__.a, _extends({ 1843 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()("recharts-label", className) 1844 }, attrs, positionAttrs), label); 1845 } 1846 var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject__ = __webpack_require__(32), __WEBPACK_IMPORTED_MODULE_0_lodash_isObject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isObject__), __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction__ = __webpack_require__(8), __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isFunction__), __WEBPACK_IMPORTED_MODULE_2_lodash_isNil__ = __webpack_require__(20), __WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_lodash_isNil__), __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__), __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__), __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(3), __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__), __WEBPACK_IMPORTED_MODULE_6__Text__ = __webpack_require__(61), __WEBPACK_IMPORTED_MODULE_7__util_ReactUtils__ = __webpack_require__(4), __WEBPACK_IMPORTED_MODULE_8__util_DataUtils__ = __webpack_require__(9), __WEBPACK_IMPORTED_MODULE_9__util_PolarUtils__ = __webpack_require__(23), _extends = Object.assign || function(target) { 1847 for (var i = 1; i < arguments.length; i++) { 1848 var source = arguments[i]; 1849 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 1850 } 1851 return target; 1852 }, cartesianViewBoxShape = __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.shape({ 1853 x: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 1854 y: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 1855 width: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 1856 height: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number 1857 }), polarViewBoxShape = __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.shape({ 1858 cx: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 1859 cy: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 1860 innerRadius: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 1861 outerRadius: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 1862 startAngle: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 1863 endAngle: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number 1864 }), propTypes = { 1865 viewBox: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ cartesianViewBoxShape, polarViewBoxShape ]), 1866 formatter: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func, 1867 value: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string ]), 1868 offset: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 1869 position: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf([ "top", "left", "right", "bottom", "inside", "outside", "insideLeft", "insideRight", "insideTop", "insideBottom", "insideTopLeft", "insideBottomLeft", "insideTopRight", "insideBottomRight", "insideStart", "insideEnd", "end", "center" ]), 1870 children: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node), __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node ]), 1871 className: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, 1872 content: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.element, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func ]) 1873 }, defaultProps = { 1874 offset: 5 1875 }, getLabel = function(props) { 1876 var value = props.value, formatter = props.formatter, label = __WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default()(props.children) ? value : props.children; 1877 return __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(formatter) ? formatter(label) : label; 1878 }, getDeltaAngle = function(startAngle, endAngle) { 1879 return Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.j)(endAngle - startAngle) * Math.min(Math.abs(endAngle - startAngle), 360); 1880 }, renderRadialLabel = function(labelProps, label, attrs) { 1881 var position = labelProps.position, viewBox = labelProps.viewBox, offset = labelProps.offset, className = labelProps.className, cx = viewBox.cx, cy = viewBox.cy, innerRadius = viewBox.innerRadius, outerRadius = viewBox.outerRadius, startAngle = viewBox.startAngle, endAngle = viewBox.endAngle, clockWise = viewBox.clockWise, radius = (innerRadius + outerRadius) / 2, deltaAngle = getDeltaAngle(startAngle, endAngle), sign = deltaAngle >= 0 ? 1 : -1, labelAngle = void 0, direction = void 0; 1882 "insideStart" === position ? (labelAngle = startAngle + sign * offset, direction = clockWise) : "insideEnd" === position ? (labelAngle = endAngle - sign * offset, 1883 direction = !clockWise) : "end" === position && (labelAngle = endAngle + sign * offset, 1884 direction = clockWise), direction = deltaAngle <= 0 ? direction : !direction; 1885 var startPoint = Object(__WEBPACK_IMPORTED_MODULE_9__util_PolarUtils__.e)(cx, cy, radius, labelAngle), endPoint = Object(__WEBPACK_IMPORTED_MODULE_9__util_PolarUtils__.e)(cx, cy, radius, labelAngle + 359 * (direction ? 1 : -1)), path = "M" + startPoint.x + "," + startPoint.y + "\n A" + radius + "," + radius + ",0,1," + (direction ? 0 : 1) + ",\n " + endPoint.x + "," + endPoint.y, id = __WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default()(labelProps.id) ? Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.k)("recharts-radial-line-") : labelProps.id; 1886 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement("text", _extends({}, attrs, { 1887 dominantBaseline: "central", 1888 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()("recharts-radial-bar-label", className) 1889 }), __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement("defs", null, __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement("path", { 1890 id: id, 1891 d: path 1892 })), __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement("textPath", { 1893 xlinkHref: "#" + id 1894 }, label)); 1895 }, getAttrsOfPolarLabel = function(props) { 1896 var viewBox = props.viewBox, offset = props.offset, position = props.position, cx = viewBox.cx, cy = viewBox.cy, innerRadius = viewBox.innerRadius, outerRadius = viewBox.outerRadius, startAngle = viewBox.startAngle, endAngle = viewBox.endAngle, midAngle = (startAngle + endAngle) / 2; 1897 if ("outside" === position) { 1898 var _polarToCartesian = Object(__WEBPACK_IMPORTED_MODULE_9__util_PolarUtils__.e)(cx, cy, outerRadius + offset, midAngle), _x = _polarToCartesian.x; 1899 return { 1900 x: _x, 1901 y: _polarToCartesian.y, 1902 textAnchor: _x >= cx ? "start" : "end", 1903 verticalAnchor: "middle" 1904 }; 1905 } 1906 if ("center" === position) return { 1907 x: cx, 1908 y: cy, 1909 textAnchor: "middle", 1910 verticalAnchor: "middle" 1911 }; 1912 var r = (innerRadius + outerRadius) / 2, _polarToCartesian2 = Object(__WEBPACK_IMPORTED_MODULE_9__util_PolarUtils__.e)(cx, cy, r, midAngle); 1913 return { 1914 x: _polarToCartesian2.x, 1915 y: _polarToCartesian2.y, 1916 textAnchor: "middle", 1917 verticalAnchor: "middle" 1918 }; 1919 }, getAttrsOfCartesianLabel = function(props) { 1920 var viewBox = props.viewBox, offset = props.offset, position = props.position, x = viewBox.x, y = viewBox.y, width = viewBox.width, height = viewBox.height, sign = height >= 0 ? 1 : -1; 1921 return "top" === position ? { 1922 x: x + width / 2, 1923 y: y - sign * offset, 1924 textAnchor: "middle", 1925 verticalAnchor: "end" 1926 } : "bottom" === position ? { 1927 x: x + width / 2, 1928 y: y + height + sign * offset, 1929 textAnchor: "middle", 1930 verticalAnchor: "start" 1931 } : "left" === position ? { 1932 x: x - offset, 1933 y: y + height / 2, 1934 textAnchor: "end", 1935 verticalAnchor: "middle" 1936 } : "right" === position ? { 1937 x: x + width + offset, 1938 y: y + height / 2, 1939 textAnchor: "start", 1940 verticalAnchor: "middle" 1941 } : "insideLeft" === position ? { 1942 x: x + offset, 1943 y: y + height / 2, 1944 textAnchor: "start", 1945 verticalAnchor: "middle" 1946 } : "insideRight" === position ? { 1947 x: x + width - offset, 1948 y: y + height / 2, 1949 textAnchor: "end", 1950 verticalAnchor: "middle" 1951 } : "insideTop" === position ? { 1952 x: x + width / 2, 1953 y: y + sign * offset, 1954 textAnchor: "middle", 1955 verticalAnchor: "start" 1956 } : "insideBottom" === position ? { 1957 x: x + width / 2, 1958 y: y + height - sign * offset, 1959 textAnchor: "middle", 1960 verticalAnchor: "end" 1961 } : "insideTopLeft" === position ? { 1962 x: x + offset, 1963 y: y + sign * offset, 1964 textAnchor: "start", 1965 verticalAnchor: "start" 1966 } : "insideTopRight" === position ? { 1967 x: x + width - offset, 1968 y: y + sign * offset, 1969 textAnchor: "end", 1970 verticalAnchor: "start" 1971 } : "insideBottomLeft" === position ? { 1972 x: x + offset, 1973 y: y + height - sign * offset, 1974 textAnchor: "start", 1975 verticalAnchor: "end" 1976 } : "insideBottomRight" === position ? { 1977 x: x + width - offset, 1978 y: y + height - sign * offset, 1979 textAnchor: "end", 1980 verticalAnchor: "end" 1981 } : __WEBPACK_IMPORTED_MODULE_0_lodash_isObject___default()(position) && (Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.h)(position.x) || Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.i)(position.x)) && (Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.h)(position.y) || Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.i)(position.y)) ? { 1982 x: x + Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.d)(position.x, width), 1983 y: y + Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.d)(position.y, height), 1984 textAnchor: "end", 1985 verticalAnchor: "end" 1986 } : { 1987 x: x + width / 2, 1988 y: y + height / 2, 1989 textAnchor: "middle", 1990 verticalAnchor: "middle" 1991 }; 1992 }, isPolar = function(viewBox) { 1993 return Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.h)(viewBox.cx); 1994 }; 1995 Label.displayName = "Label", Label.defaultProps = defaultProps, Label.propTypes = propTypes; 1996 var parseViewBox = function(props) { 1997 var cx = props.cx, cy = props.cy, angle = props.angle, startAngle = props.startAngle, endAngle = props.endAngle, r = props.r, radius = props.radius, innerRadius = props.innerRadius, outerRadius = props.outerRadius, x = props.x, y = props.y, top = props.top, left = props.left, width = props.width, height = props.height, clockWise = props.clockWise; 1998 if (Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.h)(width) && Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.h)(height)) { 1999 if (Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.h)(x) && Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.h)(y)) return { 2000 x: x, 2001 y: y, 2002 width: width, 2003 height: height 2004 }; 2005 if (Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.h)(top) && Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.h)(left)) return { 2006 x: top, 2007 y: left, 2008 width: width, 2009 height: height 2010 }; 2011 } 2012 return Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.h)(x) && Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.h)(y) ? { 2013 x: x, 2014 y: y, 2015 width: 0, 2016 height: 0 2017 } : Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.h)(cx) && Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.h)(cy) ? { 2018 cx: cx, 2019 cy: cy, 2020 startAngle: startAngle || angle || 0, 2021 endAngle: endAngle || angle || 0, 2022 innerRadius: innerRadius || 0, 2023 outerRadius: outerRadius || radius || r || 0, 2024 clockWise: clockWise 2025 } : props.viewBox ? props.viewBox : {}; 2026 }, parseLabel = function(label, viewBox) { 2027 return label ? !0 === label ? __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(Label, { 2028 key: "label-implicit", 2029 viewBox: viewBox 2030 }) : Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.g)(label) ? __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(Label, { 2031 key: "label-implicit", 2032 viewBox: viewBox, 2033 value: label 2034 }) : Object(__WEBPACK_IMPORTED_MODULE_3_react__.isValidElement)(label) || __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(label) ? __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(Label, { 2035 key: "label-implicit", 2036 content: label, 2037 viewBox: viewBox 2038 }) : __WEBPACK_IMPORTED_MODULE_0_lodash_isObject___default()(label) ? __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(Label, _extends({ 2039 viewBox: viewBox 2040 }, label, { 2041 key: "label-implicit" 2042 })) : null : null; 2043 }, renderCallByParent = function(parentProps, viewBox) { 2044 var ckeckPropsLabel = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2]; 2045 if (!parentProps || !parentProps.children && ckeckPropsLabel && !parentProps.label) return null; 2046 var children = parentProps.children, parentViewBox = parseViewBox(parentProps), explicitChilren = Object(__WEBPACK_IMPORTED_MODULE_7__util_ReactUtils__.h)(children, Label).map(function(child, index) { 2047 return Object(__WEBPACK_IMPORTED_MODULE_3_react__.cloneElement)(child, { 2048 viewBox: viewBox || parentViewBox, 2049 key: "label-" + index 2050 }); 2051 }); 2052 return ckeckPropsLabel ? [ parseLabel(parentProps.label, viewBox || parentViewBox) ].concat(_toConsumableArray(explicitChilren)) : explicitChilren; 2053 }; 2054 Label.parseViewBox = parseViewBox, Label.renderCallByParent = renderCallByParent, 2055 __webpack_exports__.a = Label; 2056 }, function(module, exports, __webpack_require__) { 2057 function isEqual(value, other) { 2058 return baseIsEqual(value, other); 2059 } 2060 var baseIsEqual = __webpack_require__(199); 2061 module.exports = isEqual; 2062 }, function(module, __webpack_exports__, __webpack_require__) { 2063 "use strict"; 2064 var __WEBPACK_IMPORTED_MODULE_0__src_color__ = __webpack_require__(207); 2065 __webpack_require__.d(__webpack_exports__, "a", function() { 2066 return __WEBPACK_IMPORTED_MODULE_0__src_color__.e; 2067 }), __webpack_require__.d(__webpack_exports__, "f", function() { 2068 return __WEBPACK_IMPORTED_MODULE_0__src_color__.g; 2069 }), __webpack_require__.d(__webpack_exports__, "d", function() { 2070 return __WEBPACK_IMPORTED_MODULE_0__src_color__.f; 2071 }); 2072 var __WEBPACK_IMPORTED_MODULE_1__src_lab__ = __webpack_require__(871); 2073 __webpack_require__.d(__webpack_exports__, "e", function() { 2074 return __WEBPACK_IMPORTED_MODULE_1__src_lab__.a; 2075 }), __webpack_require__.d(__webpack_exports__, "c", function() { 2076 return __WEBPACK_IMPORTED_MODULE_1__src_lab__.b; 2077 }); 2078 var __WEBPACK_IMPORTED_MODULE_2__src_cubehelix__ = __webpack_require__(872); 2079 __webpack_require__.d(__webpack_exports__, "b", function() { 2080 return __WEBPACK_IMPORTED_MODULE_2__src_cubehelix__.a; 2081 }); 2082 }, function(module, __webpack_exports__, __webpack_require__) { 2083 "use strict"; 2084 function _toConsumableArray(arr) { 2085 if (Array.isArray(arr)) { 2086 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; 2087 return arr2; 2088 } 2089 return Array.from(arr); 2090 } 2091 function _objectWithoutProperties(obj, keys) { 2092 var target = {}; 2093 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 2094 return target; 2095 } 2096 function LabelList(props) { 2097 var data = props.data, valueAccessor = props.valueAccessor, dataKey = props.dataKey, clockWise = props.clockWise, id = props.id, others = _objectWithoutProperties(props, [ "data", "valueAccessor", "dataKey", "clockWise", "id" ]); 2098 return data && data.length ? __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, { 2099 className: "recharts-label-list" 2100 }, data.map(function(entry, index) { 2101 var value = __WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default()(dataKey) ? valueAccessor(entry, index) : Object(__WEBPACK_IMPORTED_MODULE_10__util_ChartUtils__.w)(entry && entry.payload, dataKey), idProps = __WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default()(id) ? {} : { 2102 id: id + "-" + index 2103 }; 2104 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__Label__.a, _extends({}, Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.k)(entry), others, idProps, { 2105 index: index, 2106 value: value, 2107 viewBox: __WEBPACK_IMPORTED_MODULE_7__Label__.a.parseViewBox(__WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default()(clockWise) ? entry : _extends({}, entry, { 2108 clockWise: clockWise 2109 })), 2110 key: "label-" + index 2111 })); 2112 })) : null; 2113 } 2114 var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject__ = __webpack_require__(32), __WEBPACK_IMPORTED_MODULE_0_lodash_isObject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isObject__), __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction__ = __webpack_require__(8), __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isFunction__), __WEBPACK_IMPORTED_MODULE_2_lodash_isNil__ = __webpack_require__(20), __WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_lodash_isNil__), __WEBPACK_IMPORTED_MODULE_3_lodash_last__ = __webpack_require__(922), __WEBPACK_IMPORTED_MODULE_3_lodash_last___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_lodash_last__), __WEBPACK_IMPORTED_MODULE_4_lodash_isArray__ = __webpack_require__(13), __WEBPACK_IMPORTED_MODULE_4_lodash_isArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_lodash_isArray__), __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__), __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__), __WEBPACK_IMPORTED_MODULE_7__Label__ = __webpack_require__(44), __WEBPACK_IMPORTED_MODULE_8__container_Layer__ = __webpack_require__(14), __WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__ = __webpack_require__(4), __WEBPACK_IMPORTED_MODULE_10__util_ChartUtils__ = __webpack_require__(16), _extends = Object.assign || function(target) { 2115 for (var i = 1; i < arguments.length; i++) { 2116 var source = arguments[i]; 2117 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 2118 } 2119 return target; 2120 }, propTypes = { 2121 id: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 2122 data: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object), 2123 valueAccessor: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 2124 clockWise: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, 2125 dataKey: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func ]) 2126 }, defaultProps = { 2127 valueAccessor: function(entry) { 2128 return __WEBPACK_IMPORTED_MODULE_4_lodash_isArray___default()(entry.value) ? __WEBPACK_IMPORTED_MODULE_3_lodash_last___default()(entry.value) : entry.value; 2129 } 2130 }; 2131 LabelList.propTypes = propTypes, LabelList.displayName = "LabelList"; 2132 var parseLabelList = function(label, data) { 2133 return label ? !0 === label ? __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(LabelList, { 2134 key: "labelList-implicit", 2135 data: data 2136 }) : __WEBPACK_IMPORTED_MODULE_5_react___default.a.isValidElement(label) || __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(label) ? __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(LabelList, { 2137 key: "labelList-implicit", 2138 data: data, 2139 content: label 2140 }) : __WEBPACK_IMPORTED_MODULE_0_lodash_isObject___default()(label) ? __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(LabelList, _extends({ 2141 data: data 2142 }, label, { 2143 key: "labelList-implicit" 2144 })) : null : null; 2145 }, renderCallByParent = function(parentProps, data) { 2146 var ckeckPropsLabel = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2]; 2147 if (!parentProps || !parentProps.children && ckeckPropsLabel && !parentProps.label) return null; 2148 var children = parentProps.children, explicitChilren = Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.h)(children, LabelList).map(function(child, index) { 2149 return Object(__WEBPACK_IMPORTED_MODULE_5_react__.cloneElement)(child, { 2150 data: data, 2151 key: "labelList-" + index 2152 }); 2153 }); 2154 return ckeckPropsLabel ? [ parseLabelList(parentProps.label, data) ].concat(_toConsumableArray(explicitChilren)) : explicitChilren; 2155 }; 2156 LabelList.renderCallByParent = renderCallByParent, LabelList.defaultProps = defaultProps, 2157 __webpack_exports__.a = LabelList; 2158 }, function(module, __webpack_exports__, __webpack_require__) { 2159 "use strict"; 2160 function _objectWithoutProperties(obj, keys) { 2161 var target = {}; 2162 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 2163 return target; 2164 } 2165 function _defineProperty(obj, key, value) { 2166 return key in obj ? Object.defineProperty(obj, key, { 2167 value: value, 2168 enumerable: !0, 2169 configurable: !0, 2170 writable: !0 2171 }) : obj[key] = value, obj; 2172 } 2173 function _toConsumableArray(arr) { 2174 if (Array.isArray(arr)) { 2175 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; 2176 return arr2; 2177 } 2178 return Array.from(arr); 2179 } 2180 function _classCallCheck(instance, Constructor) { 2181 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 2182 } 2183 function _possibleConstructorReturn(self, call) { 2184 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 2185 return !call || "object" != typeof call && "function" != typeof call ? self : call; 2186 } 2187 function _inherits(subClass, superClass) { 2188 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 2189 subClass.prototype = Object.create(superClass && superClass.prototype, { 2190 constructor: { 2191 value: subClass, 2192 enumerable: !1, 2193 writable: !0, 2194 configurable: !0 2195 } 2196 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 2197 } 2198 var __WEBPACK_IMPORTED_MODULE_0_lodash_sortBy__ = __webpack_require__(321), __WEBPACK_IMPORTED_MODULE_0_lodash_sortBy___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_sortBy__), __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction__ = __webpack_require__(8), __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isFunction__), __WEBPACK_IMPORTED_MODULE_2_lodash_range__ = __webpack_require__(373), __WEBPACK_IMPORTED_MODULE_2_lodash_range___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_lodash_range__), __WEBPACK_IMPORTED_MODULE_3_lodash_throttle__ = __webpack_require__(933), __WEBPACK_IMPORTED_MODULE_3_lodash_throttle___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_lodash_throttle__), __WEBPACK_IMPORTED_MODULE_4_lodash_isNil__ = __webpack_require__(20), __WEBPACK_IMPORTED_MODULE_4_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_lodash_isNil__), __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__), __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__), __WEBPACK_IMPORTED_MODULE_7_classnames__ = __webpack_require__(3), __WEBPACK_IMPORTED_MODULE_7_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_classnames__), __WEBPACK_IMPORTED_MODULE_8__container_Surface__ = __webpack_require__(82), __WEBPACK_IMPORTED_MODULE_9__container_Layer__ = __webpack_require__(14), __WEBPACK_IMPORTED_MODULE_10__component_Tooltip__ = __webpack_require__(125), __WEBPACK_IMPORTED_MODULE_11__component_Legend__ = __webpack_require__(180), __WEBPACK_IMPORTED_MODULE_12__shape_Curve__ = __webpack_require__(71), __WEBPACK_IMPORTED_MODULE_13__shape_Cross__ = __webpack_require__(367), __WEBPACK_IMPORTED_MODULE_14__shape_Sector__ = __webpack_require__(139), __WEBPACK_IMPORTED_MODULE_15__shape_Dot__ = __webpack_require__(63), __WEBPACK_IMPORTED_MODULE_16__shape_Rectangle__ = __webpack_require__(70), __WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__ = __webpack_require__(4), __WEBPACK_IMPORTED_MODULE_18__cartesian_CartesianAxis__ = __webpack_require__(374), __WEBPACK_IMPORTED_MODULE_19__cartesian_Brush__ = __webpack_require__(372), __WEBPACK_IMPORTED_MODULE_20__util_DOMUtils__ = __webpack_require__(198), __WEBPACK_IMPORTED_MODULE_21__util_DataUtils__ = __webpack_require__(9), __WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__ = __webpack_require__(16), __WEBPACK_IMPORTED_MODULE_23__util_PolarUtils__ = __webpack_require__(23), __WEBPACK_IMPORTED_MODULE_24__util_PureRender__ = __webpack_require__(5), __WEBPACK_IMPORTED_MODULE_25__util_Events__ = __webpack_require__(934), _extends = Object.assign || function(target) { 2199 for (var i = 1; i < arguments.length; i++) { 2200 var source = arguments[i]; 2201 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 2202 } 2203 return target; 2204 }, _createClass = function() { 2205 function defineProperties(target, props) { 2206 for (var i = 0; i < props.length; i++) { 2207 var descriptor = props[i]; 2208 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 2209 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 2210 } 2211 } 2212 return function(Constructor, protoProps, staticProps) { 2213 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 2214 Constructor; 2215 }; 2216 }(), ORIENT_MAP = { 2217 xAxis: [ "bottom", "top" ], 2218 yAxis: [ "left", "right" ] 2219 }, originCoordinate = { 2220 x: 0, 2221 y: 0 2222 }, generateCategoricalChart = function(_ref) { 2223 var _class, _temp, _initialiseProps, chartName = _ref.chartName, GraphicalChild = _ref.GraphicalChild, _ref$eventType = _ref.eventType, eventType = void 0 === _ref$eventType ? "axis" : _ref$eventType, axisComponents = _ref.axisComponents, legendContent = _ref.legendContent, formatAxisMap = _ref.formatAxisMap, defaultProps = _ref.defaultProps, propTypes = _ref.propTypes; 2224 return _temp = _class = function(_Component) { 2225 function CategoricalChartWrapper(props) { 2226 _classCallCheck(this, CategoricalChartWrapper); 2227 var _this = _possibleConstructorReturn(this, (CategoricalChartWrapper.__proto__ || Object.getPrototypeOf(CategoricalChartWrapper)).call(this, props)); 2228 _initialiseProps.call(_this); 2229 var defaultState = _this.constructor.createDefaultState(props); 2230 return _this.state = _extends({}, defaultState, { 2231 updateId: 0 2232 }, _this.updateStateOfAxisMapsOffsetAndStackGroups(_extends({ 2233 props: props 2234 }, defaultState, { 2235 updateId: 0 2236 }))), _this.uniqueChartId = __WEBPACK_IMPORTED_MODULE_4_lodash_isNil___default()(props.id) ? Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.k)("recharts") : props.id, 2237 props.throttleDelay && (_this.triggeredAfterMouseMove = __WEBPACK_IMPORTED_MODULE_3_lodash_throttle___default()(_this.triggeredAfterMouseMove, props.throttleDelay)), 2238 _this; 2239 } 2240 return _inherits(CategoricalChartWrapper, _Component), _createClass(CategoricalChartWrapper, [ { 2241 key: "componentDidMount", 2242 value: function() { 2243 __WEBPACK_IMPORTED_MODULE_4_lodash_isNil___default()(this.props.syncId) || this.addListener(); 2244 } 2245 }, { 2246 key: "componentWillReceiveProps", 2247 value: function(nextProps) { 2248 var _props = this.props, data = _props.data, children = _props.children, width = _props.width, height = _props.height, layout = _props.layout, stackOffset = _props.stackOffset, margin = _props.margin, updateId = this.state.updateId; 2249 if (nextProps.data === data && nextProps.width === width && nextProps.height === height && nextProps.layout === layout && nextProps.stackOffset === stackOffset && Object(__WEBPACK_IMPORTED_MODULE_24__util_PureRender__.b)(nextProps.margin, margin)) { 2250 if (!Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.m)(nextProps.children, children)) { 2251 var hasGlobalData = !__WEBPACK_IMPORTED_MODULE_4_lodash_isNil___default()(nextProps.data), newUpdateId = hasGlobalData ? updateId : updateId + 1, _state = this.state, dataStartIndex = _state.dataStartIndex, dataEndIndex = _state.dataEndIndex, _defaultState = _extends({}, this.constructor.createDefaultState(nextProps), { 2252 dataEndIndex: dataEndIndex, 2253 dataStartIndex: dataStartIndex 2254 }); 2255 this.setState(_extends({}, _defaultState, { 2256 updateId: newUpdateId 2257 }, this.updateStateOfAxisMapsOffsetAndStackGroups(_extends({ 2258 props: nextProps 2259 }, _defaultState, { 2260 updateId: newUpdateId 2261 })))); 2262 } 2263 } else { 2264 var defaultState = this.constructor.createDefaultState(nextProps); 2265 this.setState(_extends({}, defaultState, { 2266 updateId: updateId + 1 2267 }, this.updateStateOfAxisMapsOffsetAndStackGroups(_extends({ 2268 props: nextProps 2269 }, defaultState, { 2270 updateId: updateId + 1 2271 })))); 2272 } 2273 __WEBPACK_IMPORTED_MODULE_4_lodash_isNil___default()(this.props.syncId) && !__WEBPACK_IMPORTED_MODULE_4_lodash_isNil___default()(nextProps.syncId) && this.addListener(), 2274 !__WEBPACK_IMPORTED_MODULE_4_lodash_isNil___default()(this.props.syncId) && __WEBPACK_IMPORTED_MODULE_4_lodash_isNil___default()(nextProps.syncId) && this.removeListener(); 2275 } 2276 }, { 2277 key: "componentWillUnmount", 2278 value: function() { 2279 __WEBPACK_IMPORTED_MODULE_4_lodash_isNil___default()(this.props.syncId) || this.removeListener(), 2280 "function" == typeof this.triggeredAfterMouseMove.cancel && this.triggeredAfterMouseMove.cancel(); 2281 } 2282 }, { 2283 key: "getAxisMap", 2284 value: function(props, _ref2) { 2285 var _ref2$axisType = _ref2.axisType, axisType = void 0 === _ref2$axisType ? "xAxis" : _ref2$axisType, AxisComp = _ref2.AxisComp, graphicalItems = _ref2.graphicalItems, stackGroups = _ref2.stackGroups, dataStartIndex = _ref2.dataStartIndex, dataEndIndex = _ref2.dataEndIndex, children = props.children, axisIdKey = axisType + "Id", axes = Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.h)(children, AxisComp), axisMap = {}; 2286 return axes && axes.length ? axisMap = this.getAxisMapByAxes(props, { 2287 axes: axes, 2288 graphicalItems: graphicalItems, 2289 axisType: axisType, 2290 axisIdKey: axisIdKey, 2291 stackGroups: stackGroups, 2292 dataStartIndex: dataStartIndex, 2293 dataEndIndex: dataEndIndex 2294 }) : graphicalItems && graphicalItems.length && (axisMap = this.getAxisMapByItems(props, { 2295 Axis: AxisComp, 2296 graphicalItems: graphicalItems, 2297 axisType: axisType, 2298 axisIdKey: axisIdKey, 2299 stackGroups: stackGroups, 2300 dataStartIndex: dataStartIndex, 2301 dataEndIndex: dataEndIndex 2302 })), axisMap; 2303 } 2304 }, { 2305 key: "getAxisMapByAxes", 2306 value: function(props, _ref3) { 2307 var _this2 = this, axes = _ref3.axes, graphicalItems = _ref3.graphicalItems, axisType = _ref3.axisType, axisIdKey = _ref3.axisIdKey, stackGroups = _ref3.stackGroups, dataStartIndex = _ref3.dataStartIndex, dataEndIndex = _ref3.dataEndIndex, layout = props.layout, children = props.children, stackOffset = props.stackOffset, isCategorial = Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.x)(layout, axisType); 2308 return axes.reduce(function(result, child) { 2309 var _child$props = child.props, type = _child$props.type, dataKey = _child$props.dataKey, allowDataOverflow = _child$props.allowDataOverflow, allowDuplicatedCategory = _child$props.allowDuplicatedCategory, scale = _child$props.scale, ticks = _child$props.ticks, axisId = child.props[axisIdKey], displayedData = _this2.constructor.getDisplayedData(props, { 2310 graphicalItems: graphicalItems.filter(function(item) { 2311 return item.props[axisIdKey] === axisId; 2312 }), 2313 dataStartIndex: dataStartIndex, 2314 dataEndIndex: dataEndIndex 2315 }), len = displayedData.length; 2316 if (!result[axisId]) { 2317 var domain = void 0, duplicateDomain = void 0, categoricalDomain = void 0; 2318 if (dataKey) { 2319 if (domain = Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.n)(displayedData, dataKey, type), 2320 "category" === type && isCategorial) { 2321 var duplicate = Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.e)(domain); 2322 allowDuplicatedCategory && duplicate ? (duplicateDomain = domain, domain = __WEBPACK_IMPORTED_MODULE_2_lodash_range___default()(0, len)) : allowDuplicatedCategory || (domain = Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.y)(child.props.domain, domain, child).reduce(function(finalDomain, entry) { 2323 return finalDomain.indexOf(entry) >= 0 ? finalDomain : [].concat(_toConsumableArray(finalDomain), [ entry ]); 2324 }, [])); 2325 } else if ("category" === type) domain = allowDuplicatedCategory ? domain.filter(function(entry) { 2326 return "" !== entry && !__WEBPACK_IMPORTED_MODULE_4_lodash_isNil___default()(entry); 2327 }) : Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.y)(child.props.domain, domain, child).reduce(function(finalDomain, entry) { 2328 return finalDomain.indexOf(entry) >= 0 || "" === entry || __WEBPACK_IMPORTED_MODULE_4_lodash_isNil___default()(entry) ? finalDomain : [].concat(_toConsumableArray(finalDomain), [ entry ]); 2329 }, []); else if ("number" === type) { 2330 var errorBarsDomain = Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.z)(displayedData, graphicalItems.filter(function(item) { 2331 return item.props[axisIdKey] === axisId && !item.props.hide; 2332 }), dataKey, axisType); 2333 errorBarsDomain && (domain = errorBarsDomain); 2334 } 2335 !isCategorial || "number" !== type && "auto" === scale || (categoricalDomain = Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.n)(displayedData, dataKey, "category")); 2336 } else domain = isCategorial ? __WEBPACK_IMPORTED_MODULE_2_lodash_range___default()(0, len) : stackGroups && stackGroups[axisId] && stackGroups[axisId].hasStack && "number" === type ? "expand" === stackOffset ? [ 0, 1 ] : Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.p)(stackGroups[axisId].stackGroups, dataStartIndex, dataEndIndex) : Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.o)(displayedData, graphicalItems.filter(function(item) { 2337 return item.props[axisIdKey] === axisId && !item.props.hide; 2338 }), type, !0); 2339 return "number" === type && (domain = Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.e)(children, domain, axisId, axisType, ticks), 2340 child.props.domain && (domain = Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.B)(child.props.domain, domain, allowDataOverflow))), 2341 _extends({}, result, _defineProperty({}, axisId, _extends({}, child.props, { 2342 axisType: axisType, 2343 domain: domain, 2344 categoricalDomain: categoricalDomain, 2345 duplicateDomain: duplicateDomain, 2346 originalDomain: child.props.domain, 2347 isCategorial: isCategorial, 2348 layout: layout 2349 }))); 2350 } 2351 return result; 2352 }, {}); 2353 } 2354 }, { 2355 key: "getAxisMapByItems", 2356 value: function(props, _ref4) { 2357 var graphicalItems = _ref4.graphicalItems, Axis = _ref4.Axis, axisType = _ref4.axisType, axisIdKey = _ref4.axisIdKey, stackGroups = _ref4.stackGroups, dataStartIndex = _ref4.dataStartIndex, dataEndIndex = _ref4.dataEndIndex, layout = props.layout, children = props.children, displayedData = this.constructor.getDisplayedData(props, { 2358 graphicalItems: graphicalItems, 2359 dataStartIndex: dataStartIndex, 2360 dataEndIndex: dataEndIndex 2361 }), len = displayedData.length, isCategorial = Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.x)(layout, axisType), index = -1; 2362 return graphicalItems.reduce(function(result, child) { 2363 var axisId = child.props[axisIdKey]; 2364 if (!result[axisId]) { 2365 index++; 2366 var domain = void 0; 2367 return isCategorial ? domain = __WEBPACK_IMPORTED_MODULE_2_lodash_range___default()(0, len) : stackGroups && stackGroups[axisId] && stackGroups[axisId].hasStack ? (domain = Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.p)(stackGroups[axisId].stackGroups, dataStartIndex, dataEndIndex), 2368 domain = Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.e)(children, domain, axisId, axisType)) : (domain = Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.B)(Axis.defaultProps.domain, Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.o)(displayedData, graphicalItems.filter(function(item) { 2369 return item.props[axisIdKey] === axisId && !item.props.hide; 2370 }), "number"), Axis.defaultProps.allowDataOverflow), domain = Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.e)(children, domain, axisId, axisType)), 2371 _extends({}, result, _defineProperty({}, axisId, _extends({ 2372 axisType: axisType 2373 }, Axis.defaultProps, { 2374 hide: !0, 2375 orientation: ORIENT_MAP[axisType] && ORIENT_MAP[axisType][index % 2], 2376 domain: domain, 2377 originalDomain: Axis.defaultProps.domain, 2378 isCategorial: isCategorial, 2379 layout: layout 2380 }))); 2381 } 2382 return result; 2383 }, {}); 2384 } 2385 }, { 2386 key: "getActiveCoordinate", 2387 value: function(tooltipTicks, activeIndex, rangeObj) { 2388 var layout = this.props.layout, entry = tooltipTicks.find(function(tick) { 2389 return tick && tick.index === activeIndex; 2390 }); 2391 if (entry) { 2392 if ("horizontal" === layout) return { 2393 x: entry.coordinate, 2394 y: rangeObj.y 2395 }; 2396 if ("vertical" === layout) return { 2397 x: rangeObj.x, 2398 y: entry.coordinate 2399 }; 2400 if ("centric" === layout) { 2401 var _angle = entry.coordinate, _radius = rangeObj.radius; 2402 return _extends({}, rangeObj, Object(__WEBPACK_IMPORTED_MODULE_23__util_PolarUtils__.e)(rangeObj.cx, rangeObj.cy, _radius, _angle), { 2403 angle: _angle, 2404 radius: _radius 2405 }); 2406 } 2407 var radius = entry.coordinate, angle = rangeObj.angle; 2408 return _extends({}, rangeObj, Object(__WEBPACK_IMPORTED_MODULE_23__util_PolarUtils__.e)(rangeObj.cx, rangeObj.cy, radius, angle), { 2409 angle: angle, 2410 radius: radius 2411 }); 2412 } 2413 return originCoordinate; 2414 } 2415 }, { 2416 key: "getMouseInfo", 2417 value: function(event) { 2418 if (!this.container) return null; 2419 var containerOffset = Object(__WEBPACK_IMPORTED_MODULE_20__util_DOMUtils__.b)(this.container), e = Object(__WEBPACK_IMPORTED_MODULE_20__util_DOMUtils__.a)(event, containerOffset), rangeObj = this.inRange(e.chartX, e.chartY); 2420 if (!rangeObj) return null; 2421 var _state2 = this.state, xAxisMap = _state2.xAxisMap, yAxisMap = _state2.yAxisMap; 2422 if ("axis" !== eventType && xAxisMap && yAxisMap) { 2423 var xScale = Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.b)(xAxisMap).scale, yScale = Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.b)(yAxisMap).scale, xValue = xScale && xScale.invert ? xScale.invert(e.chartX) : null, yValue = yScale && yScale.invert ? yScale.invert(e.chartY) : null; 2424 return _extends({}, e, { 2425 xValue: xValue, 2426 yValue: yValue 2427 }); 2428 } 2429 var _state3 = this.state, ticks = _state3.orderedTooltipTicks, axis = _state3.tooltipAxis, tooltipTicks = _state3.tooltipTicks, pos = this.calculateTooltipPos(rangeObj), activeIndex = Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.b)(pos, ticks, tooltipTicks, axis); 2430 if (activeIndex >= 0 && tooltipTicks) { 2431 var activeLabel = tooltipTicks[activeIndex] && tooltipTicks[activeIndex].value, activePayload = this.getTooltipContent(activeIndex, activeLabel), activeCoordinate = this.getActiveCoordinate(ticks, activeIndex, rangeObj); 2432 return _extends({}, e, { 2433 activeTooltipIndex: activeIndex, 2434 activeLabel: activeLabel, 2435 activePayload: activePayload, 2436 activeCoordinate: activeCoordinate 2437 }); 2438 } 2439 return null; 2440 } 2441 }, { 2442 key: "getTooltipContent", 2443 value: function(activeIndex, activeLabel) { 2444 var _state4 = this.state, graphicalItems = _state4.graphicalItems, tooltipAxis = _state4.tooltipAxis, displayedData = this.constructor.getDisplayedData(this.props, this.state); 2445 return activeIndex < 0 || !graphicalItems || !graphicalItems.length || activeIndex >= displayedData.length ? null : graphicalItems.reduce(function(result, child) { 2446 if (child.props.hide) return result; 2447 var _child$props2 = child.props, dataKey = _child$props2.dataKey, name = _child$props2.name, unit = _child$props2.unit, formatter = _child$props2.formatter, data = _child$props2.data, payload = void 0; 2448 return payload = tooltipAxis.dataKey && !tooltipAxis.allowDuplicatedCategory ? Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.a)(data || displayedData, tooltipAxis.dataKey, activeLabel) : displayedData[activeIndex], 2449 payload ? [].concat(_toConsumableArray(result), [ _extends({}, Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.k)(child), { 2450 dataKey: dataKey, 2451 unit: unit, 2452 formatter: formatter, 2453 name: name || dataKey, 2454 color: Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.r)(child), 2455 value: Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.w)(payload, dataKey), 2456 payload: payload 2457 }) ]) : result; 2458 }, []); 2459 } 2460 }, { 2461 key: "getFormatItems", 2462 value: function(props, currentState) { 2463 var _this3 = this, graphicalItems = currentState.graphicalItems, stackGroups = currentState.stackGroups, offset = currentState.offset, updateId = currentState.updateId, dataStartIndex = currentState.dataStartIndex, dataEndIndex = currentState.dataEndIndex, barSize = props.barSize, layout = props.layout, barGap = props.barGap, barCategoryGap = props.barCategoryGap, globalMaxBarSize = props.maxBarSize, _getAxisNameByLayout = this.getAxisNameByLayout(layout), numericAxisName = _getAxisNameByLayout.numericAxisName, cateAxisName = _getAxisNameByLayout.cateAxisName, hasBar = this.constructor.hasBar(graphicalItems), sizeList = hasBar && Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.i)({ 2464 barSize: barSize, 2465 stackGroups: stackGroups 2466 }), formatedItems = []; 2467 return graphicalItems.forEach(function(item, index) { 2468 var displayedData = _this3.constructor.getDisplayedData(props, { 2469 dataStartIndex: dataStartIndex, 2470 dataEndIndex: dataEndIndex 2471 }, item), _item$props = item.props, dataKey = _item$props.dataKey, childMaxBarSize = _item$props.maxBarSize, numericAxisId = item.props[numericAxisName + "Id"], cateAxisId = item.props[cateAxisName + "Id"], axisObj = axisComponents.reduce(function(result, entry) { 2472 var _extends4, axisMap = currentState[entry.axisType + "Map"], id = item.props[entry.axisType + "Id"], axis = axisMap && axisMap[id]; 2473 return _extends({}, result, (_extends4 = {}, _defineProperty(_extends4, entry.axisType, axis), 2474 _defineProperty(_extends4, entry.axisType + "Ticks", Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.u)(axis)), 2475 _extends4)); 2476 }, {}), cateAxis = axisObj[cateAxisName], cateTicks = axisObj[cateAxisName + "Ticks"], stackedData = stackGroups && stackGroups[numericAxisId] && stackGroups[numericAxisId].hasStack && Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.t)(item, stackGroups[numericAxisId].stackGroups), bandSize = Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.g)(cateAxis, cateTicks), maxBarSize = __WEBPACK_IMPORTED_MODULE_4_lodash_isNil___default()(childMaxBarSize) ? globalMaxBarSize : childMaxBarSize, barPosition = hasBar && Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.h)({ 2477 barGap: barGap, 2478 barCategoryGap: barCategoryGap, 2479 bandSize: bandSize, 2480 sizeList: sizeList[cateAxisId], 2481 maxBarSize: maxBarSize 2482 }), componsedFn = item && item.type && item.type.getComposedData; 2483 if (componsedFn) { 2484 var _extends5; 2485 formatedItems.push({ 2486 props: _extends({}, componsedFn(_extends({}, axisObj, { 2487 displayedData: displayedData, 2488 props: props, 2489 dataKey: dataKey, 2490 item: item, 2491 bandSize: bandSize, 2492 barPosition: barPosition, 2493 offset: offset, 2494 stackedData: stackedData, 2495 layout: layout, 2496 dataStartIndex: dataStartIndex, 2497 dataEndIndex: dataEndIndex, 2498 onItemMouseLeave: Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.d)(_this3.handleItemMouseLeave, null, item.props.onMouseLeave), 2499 onItemMouseEnter: Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.d)(_this3.handleItemMouseEnter, null, item.props.onMouseEnter) 2500 })), (_extends5 = { 2501 key: item.key || "item-" + index 2502 }, _defineProperty(_extends5, numericAxisName, axisObj[numericAxisName]), _defineProperty(_extends5, cateAxisName, axisObj[cateAxisName]), 2503 _defineProperty(_extends5, "animationId", updateId), _extends5)), 2504 childIndex: Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.o)(item, props.children), 2505 item: item 2506 }); 2507 } 2508 }), formatedItems; 2509 } 2510 }, { 2511 key: "getCursorRectangle", 2512 value: function() { 2513 var layout = this.props.layout, _state5 = this.state, activeCoordinate = _state5.activeCoordinate, offset = _state5.offset, tooltipAxisBandSize = _state5.tooltipAxisBandSize, halfSize = tooltipAxisBandSize / 2; 2514 return { 2515 stroke: "none", 2516 fill: "#ccc", 2517 x: "horizontal" === layout ? activeCoordinate.x - halfSize : offset.left + .5, 2518 y: "horizontal" === layout ? offset.top + .5 : activeCoordinate.y - halfSize, 2519 width: "horizontal" === layout ? tooltipAxisBandSize : offset.width - 1, 2520 height: "horizontal" === layout ? offset.height - 1 : tooltipAxisBandSize 2521 }; 2522 } 2523 }, { 2524 key: "getCursorPoints", 2525 value: function() { 2526 var layout = this.props.layout, _state6 = this.state, activeCoordinate = _state6.activeCoordinate, offset = _state6.offset, x1 = void 0, y1 = void 0, x2 = void 0, y2 = void 0; 2527 if ("horizontal" === layout) x1 = activeCoordinate.x, x2 = x1, y1 = offset.top, 2528 y2 = offset.top + offset.height; else if ("vertical" === layout) y1 = activeCoordinate.y, 2529 y2 = y1, x1 = offset.left, x2 = offset.left + offset.width; else if (!__WEBPACK_IMPORTED_MODULE_4_lodash_isNil___default()(activeCoordinate.cx) || !__WEBPACK_IMPORTED_MODULE_4_lodash_isNil___default()(activeCoordinate.cy)) { 2530 if ("centric" !== layout) { 2531 var _cx = activeCoordinate.cx, _cy = activeCoordinate.cy, radius = activeCoordinate.radius, startAngle = activeCoordinate.startAngle, endAngle = activeCoordinate.endAngle, startPoint = Object(__WEBPACK_IMPORTED_MODULE_23__util_PolarUtils__.e)(_cx, _cy, radius, startAngle), endPoint = Object(__WEBPACK_IMPORTED_MODULE_23__util_PolarUtils__.e)(_cx, _cy, radius, endAngle); 2532 return { 2533 points: [ startPoint, endPoint ], 2534 cx: _cx, 2535 cy: _cy, 2536 radius: radius, 2537 startAngle: startAngle, 2538 endAngle: endAngle 2539 }; 2540 } 2541 var cx = activeCoordinate.cx, cy = activeCoordinate.cy, innerRadius = activeCoordinate.innerRadius, outerRadius = activeCoordinate.outerRadius, angle = activeCoordinate.angle, innerPoint = Object(__WEBPACK_IMPORTED_MODULE_23__util_PolarUtils__.e)(cx, cy, innerRadius, angle), outerPoint = Object(__WEBPACK_IMPORTED_MODULE_23__util_PolarUtils__.e)(cx, cy, outerRadius, angle); 2542 x1 = innerPoint.x, y1 = innerPoint.y, x2 = outerPoint.x, y2 = outerPoint.y; 2543 } 2544 return [ { 2545 x: x1, 2546 y: y1 2547 }, { 2548 x: x2, 2549 y: y2 2550 } ]; 2551 } 2552 }, { 2553 key: "getAxisNameByLayout", 2554 value: function(layout) { 2555 return "horizontal" === layout ? { 2556 numericAxisName: "yAxis", 2557 cateAxisName: "xAxis" 2558 } : "vertical" === layout ? { 2559 numericAxisName: "xAxis", 2560 cateAxisName: "yAxis" 2561 } : "centric" === layout ? { 2562 numericAxisName: "radiusAxis", 2563 cateAxisName: "angleAxis" 2564 } : { 2565 numericAxisName: "angleAxis", 2566 cateAxisName: "radiusAxis" 2567 }; 2568 } 2569 }, { 2570 key: "calculateTooltipPos", 2571 value: function(rangeObj) { 2572 var layout = this.props.layout; 2573 return "horizontal" === layout ? rangeObj.x : "vertical" === layout ? rangeObj.y : "centric" === layout ? rangeObj.angle : rangeObj.radius; 2574 } 2575 }, { 2576 key: "inRange", 2577 value: function(x, y) { 2578 var layout = this.props.layout; 2579 if ("horizontal" === layout || "vertical" === layout) { 2580 var offset = this.state.offset; 2581 return x >= offset.left && x <= offset.left + offset.width && y >= offset.top && y <= offset.top + offset.height ? { 2582 x: x, 2583 y: y 2584 } : null; 2585 } 2586 var _state7 = this.state, angleAxisMap = _state7.angleAxisMap, radiusAxisMap = _state7.radiusAxisMap; 2587 if (angleAxisMap && radiusAxisMap) { 2588 var angleAxis = Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.b)(angleAxisMap); 2589 return Object(__WEBPACK_IMPORTED_MODULE_23__util_PolarUtils__.d)({ 2590 x: x, 2591 y: y 2592 }, angleAxis); 2593 } 2594 return null; 2595 } 2596 }, { 2597 key: "parseEventsOfWrapper", 2598 value: function() { 2599 var children = this.props.children, tooltipItem = Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.i)(children, __WEBPACK_IMPORTED_MODULE_10__component_Tooltip__.a), tooltipEvents = tooltipItem && "axis" === eventType ? { 2600 onMouseEnter: this.handleMouseEnter, 2601 onMouseMove: this.handleMouseMove, 2602 onMouseLeave: this.handleMouseLeave, 2603 onTouchMove: this.handleTouchMove 2604 } : {}, outerEvents = Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.e)(this.props, this.handleOuterEvent); 2605 return _extends({}, outerEvents, tooltipEvents); 2606 } 2607 }, { 2608 key: "updateStateOfAxisMapsOffsetAndStackGroups", 2609 value: function(_ref5) { 2610 var _this4 = this, props = _ref5.props, dataStartIndex = _ref5.dataStartIndex, dataEndIndex = _ref5.dataEndIndex, updateId = _ref5.updateId; 2611 if (!Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.q)({ 2612 props: props 2613 })) return null; 2614 var children = props.children, layout = props.layout, stackOffset = props.stackOffset, data = props.data, reverseStackOrder = props.reverseStackOrder, _getAxisNameByLayout2 = this.getAxisNameByLayout(layout), numericAxisName = _getAxisNameByLayout2.numericAxisName, cateAxisName = _getAxisNameByLayout2.cateAxisName, graphicalItems = Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.h)(children, GraphicalChild), stackGroups = Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.s)(data, graphicalItems, numericAxisName + "Id", cateAxisName + "Id", stackOffset, reverseStackOrder), axisObj = axisComponents.reduce(function(result, entry) { 2615 var name = entry.axisType + "Map"; 2616 return _extends({}, result, _defineProperty({}, name, _this4.getAxisMap(props, _extends({}, entry, { 2617 graphicalItems: graphicalItems, 2618 stackGroups: entry.axisType === numericAxisName && stackGroups, 2619 dataStartIndex: dataStartIndex, 2620 dataEndIndex: dataEndIndex 2621 })))); 2622 }, {}), offset = this.calculateOffset(_extends({}, axisObj, { 2623 props: props, 2624 graphicalItems: graphicalItems 2625 })); 2626 Object.keys(axisObj).forEach(function(key) { 2627 axisObj[key] = formatAxisMap(props, axisObj[key], offset, key.replace("Map", ""), chartName); 2628 }); 2629 var cateAxisMap = axisObj[cateAxisName + "Map"], ticksObj = this.tooltipTicksGenerator(cateAxisMap), formatedGraphicalItems = this.getFormatItems(props, _extends({}, axisObj, { 2630 dataStartIndex: dataStartIndex, 2631 dataEndIndex: dataEndIndex, 2632 updateId: updateId, 2633 graphicalItems: graphicalItems, 2634 stackGroups: stackGroups, 2635 offset: offset 2636 })); 2637 return _extends({ 2638 formatedGraphicalItems: formatedGraphicalItems, 2639 graphicalItems: graphicalItems, 2640 offset: offset, 2641 stackGroups: stackGroups 2642 }, ticksObj, axisObj); 2643 } 2644 }, { 2645 key: "addListener", 2646 value: function() { 2647 __WEBPACK_IMPORTED_MODULE_25__util_Events__.b.on(__WEBPACK_IMPORTED_MODULE_25__util_Events__.a, this.handleReceiveSyncEvent), 2648 __WEBPACK_IMPORTED_MODULE_25__util_Events__.b.setMaxListeners && __WEBPACK_IMPORTED_MODULE_25__util_Events__.b._maxListeners && __WEBPACK_IMPORTED_MODULE_25__util_Events__.b.setMaxListeners(__WEBPACK_IMPORTED_MODULE_25__util_Events__.b._maxListeners + 1); 2649 } 2650 }, { 2651 key: "removeListener", 2652 value: function() { 2653 __WEBPACK_IMPORTED_MODULE_25__util_Events__.b.removeListener(__WEBPACK_IMPORTED_MODULE_25__util_Events__.a, this.handleReceiveSyncEvent), 2654 __WEBPACK_IMPORTED_MODULE_25__util_Events__.b.setMaxListeners && __WEBPACK_IMPORTED_MODULE_25__util_Events__.b._maxListeners && __WEBPACK_IMPORTED_MODULE_25__util_Events__.b.setMaxListeners(__WEBPACK_IMPORTED_MODULE_25__util_Events__.b._maxListeners - 1); 2655 } 2656 }, { 2657 key: "calculateOffset", 2658 value: function(_ref6) { 2659 var props = _ref6.props, graphicalItems = _ref6.graphicalItems, _ref6$xAxisMap = _ref6.xAxisMap, xAxisMap = void 0 === _ref6$xAxisMap ? {} : _ref6$xAxisMap, _ref6$yAxisMap = _ref6.yAxisMap, yAxisMap = void 0 === _ref6$yAxisMap ? {} : _ref6$yAxisMap, width = props.width, height = props.height, children = props.children, margin = props.margin || {}, brushItem = Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.i)(children, __WEBPACK_IMPORTED_MODULE_19__cartesian_Brush__.a), legendItem = Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.i)(children, __WEBPACK_IMPORTED_MODULE_11__component_Legend__.a), offsetH = Object.keys(yAxisMap).reduce(function(result, id) { 2660 var entry = yAxisMap[id], orientation = entry.orientation; 2661 return entry.mirror || entry.hide ? result : _extends({}, result, _defineProperty({}, orientation, result[orientation] + entry.width)); 2662 }, { 2663 left: margin.left || 0, 2664 right: margin.right || 0 2665 }), offsetV = Object.keys(xAxisMap).reduce(function(result, id) { 2666 var entry = xAxisMap[id], orientation = entry.orientation; 2667 return entry.mirror || entry.hide ? result : _extends({}, result, _defineProperty({}, orientation, result[orientation] + entry.height)); 2668 }, { 2669 top: margin.top || 0, 2670 bottom: margin.bottom || 0 2671 }), offset = _extends({}, offsetV, offsetH), brushBottom = offset.bottom; 2672 if (brushItem && (offset.bottom += brushItem.props.height || __WEBPACK_IMPORTED_MODULE_19__cartesian_Brush__.a.defaultProps.height), 2673 legendItem && this.legendInstance) { 2674 var legendBox = this.legendInstance.getBBox(); 2675 offset = Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.a)(offset, graphicalItems, props, legendBox); 2676 } 2677 return _extends({ 2678 brushBottom: brushBottom 2679 }, offset, { 2680 width: width - offset.left - offset.right, 2681 height: height - offset.top - offset.bottom 2682 }); 2683 } 2684 }, { 2685 key: "triggerSyncEvent", 2686 value: function(data) { 2687 var syncId = this.props.syncId; 2688 __WEBPACK_IMPORTED_MODULE_4_lodash_isNil___default()(syncId) || __WEBPACK_IMPORTED_MODULE_25__util_Events__.b.emit(__WEBPACK_IMPORTED_MODULE_25__util_Events__.a, syncId, this.uniqueChartId, data); 2689 } 2690 }, { 2691 key: "filterFormatItem", 2692 value: function(item, displayName, childIndex) { 2693 for (var formatedGraphicalItems = this.state.formatedGraphicalItems, i = 0, len = formatedGraphicalItems.length; i < len; i++) { 2694 var entry = formatedGraphicalItems[i]; 2695 if (entry.item === item || entry.props.key === item.key || displayName === Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.j)(entry.item.type) && childIndex === entry.childIndex) return entry; 2696 } 2697 return null; 2698 } 2699 }, { 2700 key: "renderAxis", 2701 value: function(axisOptions, element, displayName, index) { 2702 var _props2 = this.props, width = _props2.width, height = _props2.height; 2703 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_18__cartesian_CartesianAxis__.a, _extends({}, axisOptions, { 2704 className: "recharts-" + axisOptions.axisType + " " + axisOptions.axisType, 2705 key: element.key || displayName + "-" + index, 2706 viewBox: { 2707 x: 0, 2708 y: 0, 2709 width: width, 2710 height: height 2711 }, 2712 ticksGenerator: this.axesTicksGenerator 2713 })); 2714 } 2715 }, { 2716 key: "renderLegend", 2717 value: function() { 2718 var _this5 = this, formatedGraphicalItems = this.state.formatedGraphicalItems, _props3 = this.props, children = _props3.children, width = _props3.width, height = _props3.height, margin = this.props.margin || {}, legendWidth = width - (margin.left || 0) - (margin.right || 0), legendHeight = height - (margin.top || 0) - (margin.bottom || 0), props = Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.q)({ 2719 children: children, 2720 formatedGraphicalItems: formatedGraphicalItems, 2721 legendWidth: legendWidth, 2722 legendHeight: legendHeight, 2723 legendContent: legendContent 2724 }); 2725 if (!props) return null; 2726 var item = props.item, otherProps = _objectWithoutProperties(props, [ "item" ]); 2727 return Object(__WEBPACK_IMPORTED_MODULE_5_react__.cloneElement)(item, _extends({}, otherProps, { 2728 chartWidth: width, 2729 chartHeight: height, 2730 margin: margin, 2731 ref: function(legend) { 2732 _this5.legendInstance = legend; 2733 }, 2734 onBBoxUpdate: this.handleLegendBBoxUpdate 2735 })); 2736 } 2737 }, { 2738 key: "renderTooltip", 2739 value: function() { 2740 var children = this.props.children, tooltipItem = Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.i)(children, __WEBPACK_IMPORTED_MODULE_10__component_Tooltip__.a); 2741 if (!tooltipItem) return null; 2742 var _state8 = this.state, isTooltipActive = _state8.isTooltipActive, activeCoordinate = _state8.activeCoordinate, activePayload = _state8.activePayload, activeLabel = _state8.activeLabel, offset = _state8.offset; 2743 return Object(__WEBPACK_IMPORTED_MODULE_5_react__.cloneElement)(tooltipItem, { 2744 viewBox: _extends({}, offset, { 2745 x: offset.left, 2746 y: offset.top 2747 }), 2748 active: isTooltipActive, 2749 label: activeLabel, 2750 payload: isTooltipActive ? activePayload : [], 2751 coordinate: activeCoordinate 2752 }); 2753 } 2754 }, { 2755 key: "renderActiveDot", 2756 value: function(option, props) { 2757 var dot = void 0; 2758 return dot = Object(__WEBPACK_IMPORTED_MODULE_5_react__.isValidElement)(option) ? Object(__WEBPACK_IMPORTED_MODULE_5_react__.cloneElement)(option, props) : __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(option) ? option(props) : __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_15__shape_Dot__.a, props), 2759 __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__container_Layer__.a, { 2760 className: "recharts-active-dot", 2761 key: props.key 2762 }, dot); 2763 } 2764 }, { 2765 key: "renderActivePoints", 2766 value: function(_ref7) { 2767 var item = _ref7.item, activePoint = _ref7.activePoint, basePoint = _ref7.basePoint, childIndex = _ref7.childIndex, isRange = _ref7.isRange, result = [], key = item.props.key, _item$item$props = item.item.props, activeDot = _item$item$props.activeDot, dataKey = _item$item$props.dataKey, dotProps = _extends({ 2768 index: childIndex, 2769 dataKey: dataKey, 2770 cx: activePoint.x, 2771 cy: activePoint.y, 2772 r: 4, 2773 fill: Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.r)(item.item), 2774 strokeWidth: 2, 2775 stroke: "#fff", 2776 payload: activePoint.payload, 2777 value: activePoint.value, 2778 key: key + "-activePoint-" + childIndex 2779 }, Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.k)(activeDot), Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.e)(activeDot)); 2780 return result.push(this.renderActiveDot(activeDot, dotProps, childIndex)), basePoint ? result.push(this.renderActiveDot(activeDot, _extends({}, dotProps, { 2781 cx: basePoint.x, 2782 cy: basePoint.y, 2783 key: key + "-basePoint-" + childIndex 2784 }), childIndex)) : isRange && result.push(null), result; 2785 } 2786 }, { 2787 key: "render", 2788 value: function() { 2789 var _this6 = this; 2790 if (!Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.q)(this)) return null; 2791 var _props4 = this.props, children = _props4.children, className = _props4.className, width = _props4.width, height = _props4.height, style = _props4.style, compact = _props4.compact, others = _objectWithoutProperties(_props4, [ "children", "className", "width", "height", "style", "compact" ]), attrs = Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.k)(others), map = { 2792 CartesianGrid: { 2793 handler: this.renderGrid, 2794 once: !0 2795 }, 2796 ReferenceArea: { 2797 handler: this.renderReferenceElement 2798 }, 2799 ReferenceLine: { 2800 handler: this.renderReferenceElement 2801 }, 2802 ReferenceDot: { 2803 handler: this.renderReferenceElement 2804 }, 2805 XAxis: { 2806 handler: this.renderXAxis 2807 }, 2808 YAxis: { 2809 handler: this.renderYAxis 2810 }, 2811 Brush: { 2812 handler: this.renderBrush, 2813 once: !0 2814 }, 2815 Bar: { 2816 handler: this.renderGraphicChild 2817 }, 2818 Line: { 2819 handler: this.renderGraphicChild 2820 }, 2821 Area: { 2822 handler: this.renderGraphicChild 2823 }, 2824 Radar: { 2825 handler: this.renderGraphicChild 2826 }, 2827 RadialBar: { 2828 handler: this.renderGraphicChild 2829 }, 2830 Scatter: { 2831 handler: this.renderGraphicChild 2832 }, 2833 Pie: { 2834 handler: this.renderGraphicChild 2835 }, 2836 Tooltip: { 2837 handler: this.renderCursor, 2838 once: !0 2839 }, 2840 PolarGrid: { 2841 handler: this.renderPolarGrid, 2842 once: !0 2843 }, 2844 PolarAngleAxis: { 2845 handler: this.renderPolarAxis 2846 }, 2847 PolarRadiusAxis: { 2848 handler: this.renderPolarAxis 2849 } 2850 }; 2851 if (compact) return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Surface__.a, _extends({}, attrs, { 2852 width: width, 2853 height: height 2854 }), Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.p)(children, map)); 2855 var events = this.parseEventsOfWrapper(); 2856 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement("div", _extends({ 2857 className: __WEBPACK_IMPORTED_MODULE_7_classnames___default()("recharts-wrapper", className), 2858 style: _extends({}, style, { 2859 position: "relative", 2860 cursor: "default", 2861 width: width, 2862 height: height 2863 }) 2864 }, events, { 2865 ref: function(node) { 2866 _this6.container = node; 2867 } 2868 }), __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Surface__.a, _extends({}, attrs, { 2869 width: width, 2870 height: height 2871 }), Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.p)(children, map)), this.renderLegend(), this.renderTooltip()); 2872 } 2873 } ]), CategoricalChartWrapper; 2874 }(__WEBPACK_IMPORTED_MODULE_5_react__.Component), _class.displayName = chartName, 2875 _class.propTypes = _extends({ 2876 syncId: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number ]), 2877 compact: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, 2878 width: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 2879 height: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 2880 data: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object), 2881 layout: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "horizontal", "vertical" ]), 2882 stackOffset: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "sign", "expand", "none", "wiggle", "silhouette" ]), 2883 throttleDelay: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 2884 margin: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.shape({ 2885 top: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 2886 right: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 2887 bottom: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 2888 left: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number 2889 }), 2890 barCategoryGap: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string ]), 2891 barGap: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string ]), 2892 barSize: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string ]), 2893 maxBarSize: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 2894 style: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object, 2895 className: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 2896 children: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node), __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node ]), 2897 onClick: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 2898 onMouseLeave: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 2899 onMouseEnter: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 2900 onMouseMove: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 2901 onMouseDown: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 2902 onMouseUp: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 2903 reverseStackOrder: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, 2904 id: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string 2905 }, propTypes), _class.defaultProps = _extends({ 2906 layout: "horizontal", 2907 stackOffset: "none", 2908 barCategoryGap: "10%", 2909 barGap: 4, 2910 margin: { 2911 top: 5, 2912 right: 5, 2913 bottom: 5, 2914 left: 5 2915 }, 2916 reverseStackOrder: !1 2917 }, defaultProps), _class.createDefaultState = function(props) { 2918 var children = props.children, brushItem = Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.i)(children, __WEBPACK_IMPORTED_MODULE_19__cartesian_Brush__.a); 2919 return { 2920 chartX: 0, 2921 chartY: 0, 2922 dataStartIndex: brushItem && brushItem.props && brushItem.props.startIndex || 0, 2923 dataEndIndex: brushItem && brushItem.props && brushItem.props.endIndex || props.data && props.data.length - 1 || 0, 2924 activeTooltipIndex: -1, 2925 isTooltipActive: !1 2926 }; 2927 }, _class.hasBar = function(graphicalItems) { 2928 return !(!graphicalItems || !graphicalItems.length) && graphicalItems.some(function(item) { 2929 var name = Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.j)(item && item.type); 2930 return name && name.indexOf("Bar") >= 0; 2931 }); 2932 }, _class.getDisplayedData = function(props, _ref8, item) { 2933 var graphicalItems = _ref8.graphicalItems, dataStartIndex = _ref8.dataStartIndex, dataEndIndex = _ref8.dataEndIndex, itemsData = (graphicalItems || []).reduce(function(result, child) { 2934 var itemData = child.props.data; 2935 return itemData && itemData.length ? [].concat(_toConsumableArray(result), _toConsumableArray(itemData)) : result; 2936 }, []); 2937 if (itemsData && itemsData.length > 0) return itemsData; 2938 if (item && item.props && item.props.data && item.props.data.length > 0) return item.props.data; 2939 var data = props.data; 2940 return data && data.length && Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.h)(dataStartIndex) && Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.h)(dataEndIndex) ? data.slice(dataStartIndex, dataEndIndex + 1) : []; 2941 }, _initialiseProps = function() { 2942 var _this7 = this; 2943 this.handleLegendBBoxUpdate = function(box) { 2944 if (box && _this7.legendInstance) { 2945 var _state9 = _this7.state, dataStartIndex = _state9.dataStartIndex, dataEndIndex = _state9.dataEndIndex, updateId = _state9.updateId; 2946 _this7.setState(_this7.updateStateOfAxisMapsOffsetAndStackGroups({ 2947 props: _this7.props, 2948 dataStartIndex: dataStartIndex, 2949 dataEndIndex: dataEndIndex, 2950 updateId: updateId 2951 })); 2952 } 2953 }, this.handleReceiveSyncEvent = function(cId, chartId, data) { 2954 var _props5 = _this7.props, syncId = _props5.syncId, layout = _props5.layout, updateId = _this7.state.updateId; 2955 if (syncId === cId && chartId !== _this7.uniqueChartId) { 2956 var dataStartIndex = data.dataStartIndex, dataEndIndex = data.dataEndIndex; 2957 if (__WEBPACK_IMPORTED_MODULE_4_lodash_isNil___default()(data.dataStartIndex) && __WEBPACK_IMPORTED_MODULE_4_lodash_isNil___default()(data.dataEndIndex)) if (__WEBPACK_IMPORTED_MODULE_4_lodash_isNil___default()(data.activeTooltipIndex)) _this7.setState(data); else { 2958 var chartX = data.chartX, chartY = data.chartY, activeTooltipIndex = data.activeTooltipIndex, _state10 = _this7.state, offset = _state10.offset, tooltipTicks = _state10.tooltipTicks; 2959 if (!offset) return; 2960 var viewBox = _extends({}, offset, { 2961 x: offset.left, 2962 y: offset.top 2963 }), validateChartX = Math.min(chartX, viewBox.x + viewBox.width), validateChartY = Math.min(chartY, viewBox.y + viewBox.height), activeLabel = tooltipTicks[activeTooltipIndex] && tooltipTicks[activeTooltipIndex].value, activePayload = _this7.getTooltipContent(activeTooltipIndex), activeCoordinate = tooltipTicks[activeTooltipIndex] ? { 2964 x: "horizontal" === layout ? tooltipTicks[activeTooltipIndex].coordinate : validateChartX, 2965 y: "horizontal" === layout ? validateChartY : tooltipTicks[activeTooltipIndex].coordinate 2966 } : originCoordinate; 2967 _this7.setState(_extends({}, data, { 2968 activeLabel: activeLabel, 2969 activeCoordinate: activeCoordinate, 2970 activePayload: activePayload 2971 })); 2972 } else _this7.setState(_extends({ 2973 dataStartIndex: dataStartIndex, 2974 dataEndIndex: dataEndIndex 2975 }, _this7.updateStateOfAxisMapsOffsetAndStackGroups({ 2976 props: _this7.props, 2977 dataStartIndex: dataStartIndex, 2978 dataEndIndex: dataEndIndex, 2979 updateId: updateId 2980 }))); 2981 } 2982 }, this.handleBrushChange = function(_ref9) { 2983 var startIndex = _ref9.startIndex, endIndex = _ref9.endIndex; 2984 if (startIndex !== _this7.state.dataStartIndex || endIndex !== _this7.state.dataEndIndex) { 2985 var updateId = _this7.state.updateId; 2986 _this7.setState(function() { 2987 return _extends({ 2988 dataStartIndex: startIndex, 2989 dataEndIndex: endIndex 2990 }, _this7.updateStateOfAxisMapsOffsetAndStackGroups({ 2991 props: _this7.props, 2992 dataStartIndex: startIndex, 2993 dataEndIndex: endIndex, 2994 updateId: updateId 2995 })); 2996 }), _this7.triggerSyncEvent({ 2997 dataStartIndex: startIndex, 2998 dataEndIndex: endIndex 2999 }); 3000 } 3001 }, this.handleMouseEnter = function(e) { 3002 var onMouseEnter = _this7.props.onMouseEnter, mouse = _this7.getMouseInfo(e); 3003 if (mouse) { 3004 var nextState = _extends({}, mouse, { 3005 isTooltipActive: !0 3006 }); 3007 _this7.setState(nextState), _this7.triggerSyncEvent(nextState), __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(onMouseEnter) && onMouseEnter(nextState, e); 3008 } 3009 }, this.triggeredAfterMouseMove = function(e) { 3010 var onMouseMove = _this7.props.onMouseMove, mouse = _this7.getMouseInfo(e), nextState = mouse ? _extends({}, mouse, { 3011 isTooltipActive: !0 3012 }) : { 3013 isTooltipActive: !1 3014 }; 3015 _this7.setState(nextState), _this7.triggerSyncEvent(nextState), __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(onMouseMove) && onMouseMove(nextState, e); 3016 }, this.handleItemMouseEnter = function(el) { 3017 _this7.setState(function() { 3018 return { 3019 isTooltipActive: !0, 3020 activeItem: el, 3021 activePayload: el.tooltipPayload, 3022 activeCoordinate: el.tooltipPosition || { 3023 x: el.cx, 3024 y: el.cy 3025 } 3026 }; 3027 }); 3028 }, this.handleItemMouseLeave = function() { 3029 _this7.setState(function() { 3030 return { 3031 isTooltipActive: !1 3032 }; 3033 }); 3034 }, this.handleMouseMove = function(e) { 3035 e && __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(e.persist) && e.persist(), 3036 _this7.triggeredAfterMouseMove(e); 3037 }, this.handleMouseLeave = function(e) { 3038 var onMouseLeave = _this7.props.onMouseLeave, nextState = { 3039 isTooltipActive: !1 3040 }; 3041 _this7.setState(nextState), _this7.triggerSyncEvent(nextState), __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(onMouseLeave) && onMouseLeave(nextState, e); 3042 }, this.handleOuterEvent = function(e) { 3043 var eventName = Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.l)(e); 3044 if (eventName && __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(_this7.props[eventName])) { 3045 var mouse = _this7.getMouseInfo(e); 3046 (0, _this7.props[eventName])(mouse, e); 3047 } 3048 }, this.handleClick = function(e) { 3049 var onClick = _this7.props.onClick; 3050 if (__WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(onClick)) { 3051 onClick(_this7.getMouseInfo(e), e); 3052 } 3053 }, this.handleMouseDown = function(e) { 3054 var onMouseDown = _this7.props.onMouseDown; 3055 if (__WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(onMouseDown)) { 3056 onMouseDown(_this7.getMouseInfo(e), e); 3057 } 3058 }, this.handleMouseUp = function(e) { 3059 var onMouseUp = _this7.props.onMouseUp; 3060 if (__WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(onMouseUp)) { 3061 onMouseUp(_this7.getMouseInfo(e), e); 3062 } 3063 }, this.handleTouchMove = function(e) { 3064 null != e.changedTouches && e.changedTouches.length > 0 && _this7.handleMouseMove(e.changedTouches[0]); 3065 }, this.verticalCoordinatesGenerator = function(_ref10) { 3066 var xAxis = _ref10.xAxis, width = _ref10.width, height = _ref10.height, offset = _ref10.offset; 3067 return Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.m)(__WEBPACK_IMPORTED_MODULE_18__cartesian_CartesianAxis__.a.getTicks(_extends({}, __WEBPACK_IMPORTED_MODULE_18__cartesian_CartesianAxis__.a.defaultProps, xAxis, { 3068 ticks: Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.u)(xAxis, !0), 3069 viewBox: { 3070 x: 0, 3071 y: 0, 3072 width: width, 3073 height: height 3074 } 3075 })), offset.left, offset.left + offset.width); 3076 }, this.horizontalCoordinatesGenerator = function(_ref11) { 3077 var yAxis = _ref11.yAxis, width = _ref11.width, height = _ref11.height, offset = _ref11.offset; 3078 return Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.m)(__WEBPACK_IMPORTED_MODULE_18__cartesian_CartesianAxis__.a.getTicks(_extends({}, __WEBPACK_IMPORTED_MODULE_18__cartesian_CartesianAxis__.a.defaultProps, yAxis, { 3079 ticks: Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.u)(yAxis, !0), 3080 viewBox: { 3081 x: 0, 3082 y: 0, 3083 width: width, 3084 height: height 3085 } 3086 })), offset.top, offset.top + offset.height); 3087 }, this.axesTicksGenerator = function(axis) { 3088 return Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.u)(axis, !0); 3089 }, this.tooltipTicksGenerator = function(axisMap) { 3090 var axis = Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.b)(axisMap), tooltipTicks = Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.u)(axis, !1, !0); 3091 return { 3092 tooltipTicks: tooltipTicks, 3093 orderedTooltipTicks: __WEBPACK_IMPORTED_MODULE_0_lodash_sortBy___default()(tooltipTicks, function(o) { 3094 return o.coordinate; 3095 }), 3096 tooltipAxis: axis, 3097 tooltipAxisBandSize: Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.g)(axis) 3098 }; 3099 }, this.renderCursor = function(element) { 3100 var _state11 = _this7.state, isTooltipActive = _state11.isTooltipActive, activeCoordinate = _state11.activeCoordinate, activePayload = _state11.activePayload, offset = _state11.offset; 3101 if (!(element && element.props.cursor && isTooltipActive && activeCoordinate)) return null; 3102 var layout = _this7.props.layout, restProps = void 0, cursorComp = __WEBPACK_IMPORTED_MODULE_12__shape_Curve__.a; 3103 if ("ScatterChart" === chartName) restProps = activeCoordinate, cursorComp = __WEBPACK_IMPORTED_MODULE_13__shape_Cross__.a; else if ("BarChart" === chartName) restProps = _this7.getCursorRectangle(), 3104 cursorComp = __WEBPACK_IMPORTED_MODULE_16__shape_Rectangle__.a; else if ("radial" === layout) { 3105 var _getCursorPoints = _this7.getCursorPoints(), cx = _getCursorPoints.cx, cy = _getCursorPoints.cy, radius = _getCursorPoints.radius, startAngle = _getCursorPoints.startAngle, endAngle = _getCursorPoints.endAngle; 3106 restProps = { 3107 cx: cx, 3108 cy: cy, 3109 startAngle: startAngle, 3110 endAngle: endAngle, 3111 innerRadius: radius, 3112 outerRadius: radius 3113 }, cursorComp = __WEBPACK_IMPORTED_MODULE_14__shape_Sector__.a; 3114 } else restProps = { 3115 points: _this7.getCursorPoints() 3116 }, cursorComp = __WEBPACK_IMPORTED_MODULE_12__shape_Curve__.a; 3117 var key = element.key || "_recharts-cursor", cursorProps = _extends({ 3118 stroke: "#ccc" 3119 }, offset, restProps, Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.k)(element.props.cursor), { 3120 payload: activePayload, 3121 key: key, 3122 className: "recharts-tooltip-cursor" 3123 }); 3124 return Object(__WEBPACK_IMPORTED_MODULE_5_react__.isValidElement)(element.props.cursor) ? Object(__WEBPACK_IMPORTED_MODULE_5_react__.cloneElement)(element.props.cursor, cursorProps) : Object(__WEBPACK_IMPORTED_MODULE_5_react__.createElement)(cursorComp, cursorProps); 3125 }, this.renderPolarAxis = function(element, displayName, index) { 3126 var axisType = element.type.axisType, axisMap = _this7.state[axisType + "Map"], axisOption = axisMap[element.props[axisType + "Id"]]; 3127 return Object(__WEBPACK_IMPORTED_MODULE_5_react__.cloneElement)(element, _extends({}, axisOption, { 3128 className: axisType, 3129 key: element.key || displayName + "-" + index, 3130 ticks: Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.u)(axisOption, !0) 3131 })); 3132 }, this.renderXAxis = function(element, displayName, index) { 3133 var xAxisMap = _this7.state.xAxisMap, axisObj = xAxisMap[element.props.xAxisId]; 3134 return _this7.renderAxis(axisObj, element, displayName, index); 3135 }, this.renderYAxis = function(element, displayName, index) { 3136 var yAxisMap = _this7.state.yAxisMap, axisObj = yAxisMap[element.props.yAxisId]; 3137 return _this7.renderAxis(axisObj, element, displayName, index); 3138 }, this.renderGrid = function(element) { 3139 var _state12 = _this7.state, xAxisMap = _state12.xAxisMap, yAxisMap = _state12.yAxisMap, offset = _state12.offset, _props6 = _this7.props, width = _props6.width, height = _props6.height, xAxis = Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.b)(xAxisMap), yAxis = Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.b)(yAxisMap), props = element.props || {}; 3140 return Object(__WEBPACK_IMPORTED_MODULE_5_react__.cloneElement)(element, { 3141 key: element.key || "grid", 3142 x: Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.h)(props.x) ? props.x : offset.left, 3143 y: Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.h)(props.y) ? props.y : offset.top, 3144 width: Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.h)(props.width) ? props.width : offset.width, 3145 height: Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.h)(props.height) ? props.height : offset.height, 3146 xAxis: xAxis, 3147 yAxis: yAxis, 3148 offset: offset, 3149 chartWidth: width, 3150 chartHeight: height, 3151 verticalCoordinatesGenerator: _this7.verticalCoordinatesGenerator, 3152 horizontalCoordinatesGenerator: _this7.horizontalCoordinatesGenerator 3153 }); 3154 }, this.renderPolarGrid = function(element) { 3155 var _state13 = _this7.state, radiusAxisMap = _state13.radiusAxisMap, angleAxisMap = _state13.angleAxisMap, radiusAxis = Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.b)(radiusAxisMap), angleAxis = Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.b)(angleAxisMap), cx = angleAxis.cx, cy = angleAxis.cy, innerRadius = angleAxis.innerRadius, outerRadius = angleAxis.outerRadius; 3156 return Object(__WEBPACK_IMPORTED_MODULE_5_react__.cloneElement)(element, { 3157 polarAngles: Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.u)(angleAxis, !0).map(function(entry) { 3158 return entry.coordinate; 3159 }), 3160 polarRadius: Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.u)(radiusAxis, !0).map(function(entry) { 3161 return entry.coordinate; 3162 }), 3163 cx: cx, 3164 cy: cy, 3165 innerRadius: innerRadius, 3166 outerRadius: outerRadius, 3167 key: element.key || "polar-grid" 3168 }); 3169 }, this.renderBrush = function(element) { 3170 var _props7 = _this7.props, margin = _props7.margin, data = _props7.data, _state14 = _this7.state, offset = _state14.offset, dataStartIndex = _state14.dataStartIndex, dataEndIndex = _state14.dataEndIndex, updateId = _state14.updateId; 3171 return Object(__WEBPACK_IMPORTED_MODULE_5_react__.cloneElement)(element, { 3172 key: element.key || "_recharts-brush", 3173 onChange: Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.d)(_this7.handleBrushChange, null, element.props.onChange), 3174 data: data, 3175 x: Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.h)(element.props.x) ? element.props.x : offset.left, 3176 y: Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.h)(element.props.y) ? element.props.y : offset.top + offset.height + offset.brushBottom - (margin.bottom || 0), 3177 width: Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.h)(element.props.width) ? element.props.width : offset.width, 3178 startIndex: dataStartIndex, 3179 endIndex: dataEndIndex, 3180 updateId: "brush-" + updateId 3181 }); 3182 }, this.renderReferenceElement = function(element, displayName, index) { 3183 if (!element) return null; 3184 var _state15 = _this7.state, xAxisMap = _state15.xAxisMap, yAxisMap = _state15.yAxisMap, offset = _state15.offset, _element$props = element.props, xAxisId = _element$props.xAxisId, yAxisId = _element$props.yAxisId; 3185 return Object(__WEBPACK_IMPORTED_MODULE_5_react__.cloneElement)(element, { 3186 key: element.key || displayName + "-" + index, 3187 xAxis: xAxisMap[xAxisId], 3188 yAxis: yAxisMap[yAxisId], 3189 viewBox: { 3190 x: offset.left, 3191 y: offset.top, 3192 width: offset.width, 3193 height: offset.height 3194 } 3195 }); 3196 }, this.renderGraphicChild = function(element, displayName, index) { 3197 var item = _this7.filterFormatItem(element, displayName, index); 3198 if (!item) return null; 3199 var graphicalItem = Object(__WEBPACK_IMPORTED_MODULE_5_react__.cloneElement)(element, item.props), _state16 = _this7.state, isTooltipActive = _state16.isTooltipActive, tooltipAxis = _state16.tooltipAxis, activeTooltipIndex = _state16.activeTooltipIndex, activeLabel = _state16.activeLabel, children = _this7.props.children, tooltipItem = Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.i)(children, __WEBPACK_IMPORTED_MODULE_10__component_Tooltip__.a), _item$props2 = item.props, points = _item$props2.points, isRange = _item$props2.isRange, baseLine = _item$props2.baseLine, _item$item$props2 = item.item.props, activeDot = _item$item$props2.activeDot; 3200 if (!_item$item$props2.hide && isTooltipActive && tooltipItem && activeDot && activeTooltipIndex >= 0) { 3201 var activePoint = void 0, basePoint = void 0; 3202 if (tooltipAxis.dataKey && !tooltipAxis.allowDuplicatedCategory ? (activePoint = Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.a)(points, "payload." + tooltipAxis.dataKey, activeLabel), 3203 basePoint = isRange && baseLine && Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.a)(baseLine, "payload." + tooltipAxis.dataKey, activeLabel)) : (activePoint = points[activeTooltipIndex], 3204 basePoint = isRange && baseLine && baseLine[activeTooltipIndex]), !__WEBPACK_IMPORTED_MODULE_4_lodash_isNil___default()(activePoint)) return [ graphicalItem ].concat(_toConsumableArray(_this7.renderActivePoints({ 3205 item: item, 3206 activePoint: activePoint, 3207 basePoint: basePoint, 3208 childIndex: activeTooltipIndex, 3209 isRange: isRange 3210 }))); 3211 } 3212 return isRange ? [ graphicalItem, null, null ] : [ graphicalItem, null ]; 3213 }; 3214 }, _temp; 3215 }; 3216 __webpack_exports__.a = generateCategoricalChart; 3217 }, function(module, exports, __webpack_require__) { 3218 "use strict"; 3219 (function(process) { 3220 function invariant(condition, format, a, b, c, d, e, f) { 3221 if (validateFormat(format), !condition) { 3222 var error; 3223 if (void 0 === format) error = new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."); else { 3224 var args = [ a, b, c, d, e, f ], argIndex = 0; 3225 error = new Error(format.replace(/%s/g, function() { 3226 return args[argIndex++]; 3227 })), error.name = "Invariant Violation"; 3228 } 3229 throw error.framesToPop = 1, error; 3230 } 3231 } 3232 var validateFormat = function(format) {}; 3233 "production" !== process.env.NODE_ENV && (validateFormat = function(format) { 3234 if (void 0 === format) throw new Error("invariant requires an error message argument"); 3235 }), module.exports = invariant; 3236 }).call(exports, __webpack_require__(2)); 3237 }, function(module, exports, __webpack_require__) { 3238 "use strict"; 3239 function makeEmptyFunction(arg) { 3240 return function() { 3241 return arg; 3242 }; 3243 } 3244 var emptyFunction = function() {}; 3245 emptyFunction.thatReturns = makeEmptyFunction, emptyFunction.thatReturnsFalse = makeEmptyFunction(!1), 3246 emptyFunction.thatReturnsTrue = makeEmptyFunction(!0), emptyFunction.thatReturnsNull = makeEmptyFunction(null), 3247 emptyFunction.thatReturnsThis = function() { 3248 return this; 3249 }, emptyFunction.thatReturnsArgument = function(arg) { 3250 return arg; 3251 }, module.exports = emptyFunction; 3252 }, function(module, exports, __webpack_require__) { 3253 var aFunction = __webpack_require__(223); 3254 module.exports = function(fn, that, length) { 3255 if (aFunction(fn), void 0 === that) return fn; 3256 switch (length) { 3257 case 1: 3258 return function(a) { 3259 return fn.call(that, a); 3260 }; 3261 3262 case 2: 3263 return function(a, b) { 3264 return fn.call(that, a, b); 3265 }; 3266 3267 case 3: 3268 return function(a, b, c) { 3269 return fn.call(that, a, b, c); 3270 }; 3271 } 3272 return function() { 3273 return fn.apply(that, arguments); 3274 }; 3275 }; 3276 }, function(module, exports, __webpack_require__) { 3277 var isObject = __webpack_require__(35); 3278 module.exports = function(it) { 3279 if (!isObject(it)) throw TypeError(it + " is not an object!"); 3280 return it; 3281 }; 3282 }, function(module, exports) { 3283 module.exports = function(exec) { 3284 try { 3285 return !!exec(); 3286 } catch (e) { 3287 return !0; 3288 } 3289 }; 3290 }, function(module, exports) { 3291 var hasOwnProperty = {}.hasOwnProperty; 3292 module.exports = function(it, key) { 3293 return hasOwnProperty.call(it, key); 3294 }; 3295 }, function(module, exports, __webpack_require__) { 3296 module.exports = { 3297 default: __webpack_require__(421), 3298 __esModule: !0 3299 }; 3300 }, function(module, exports, __webpack_require__) { 3301 "use strict"; 3302 (function(process) { 3303 function _interopRequireDefault(obj) { 3304 return obj && obj.__esModule ? obj : { 3305 default: obj 3306 }; 3307 } 3308 function capitalize(string) { 3309 if ("production" !== process.env.NODE_ENV && "string" != typeof string) throw new Error("Material-UI: capitalize(string) expects a string argument."); 3310 return string.charAt(0).toUpperCase() + string.slice(1); 3311 } 3312 function contains(obj, pred) { 3313 return (0, _keys2.default)(pred).every(function(key) { 3314 return obj.hasOwnProperty(key) && obj[key] === pred[key]; 3315 }); 3316 } 3317 function findIndex(arr, pred) { 3318 for (var predType = void 0 === pred ? "undefined" : (0, _typeof3.default)(pred), i = 0; i < arr.length; i += 1) { 3319 if ("function" === predType && !0 == !!pred(arr[i], i, arr)) return i; 3320 if ("object" === predType && contains(arr[i], pred)) return i; 3321 if (-1 !== [ "string", "number", "boolean" ].indexOf(predType)) return arr.indexOf(pred); 3322 } 3323 return -1; 3324 } 3325 function find(arr, pred) { 3326 var index = findIndex(arr, pred); 3327 return index > -1 ? arr[index] : void 0; 3328 } 3329 function createChainedFunction() { 3330 for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) funcs[_key] = arguments[_key]; 3331 return funcs.filter(function(func) { 3332 return null != func; 3333 }).reduce(function(acc, func) { 3334 return "production" !== process.env.NODE_ENV && (0, _warning2.default)("function" == typeof func, "Material-UI: invalid Argument Type, must only provide functions, undefined, or null."), 3335 function() { 3336 for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) args[_key2] = arguments[_key2]; 3337 acc.apply(this, args), func.apply(this, args); 3338 }; 3339 }, function() {}); 3340 } 3341 Object.defineProperty(exports, "__esModule", { 3342 value: !0 3343 }); 3344 var _typeof2 = __webpack_require__(105), _typeof3 = _interopRequireDefault(_typeof2), _keys = __webpack_require__(55), _keys2 = _interopRequireDefault(_keys); 3345 exports.capitalize = capitalize, exports.contains = contains, exports.findIndex = findIndex, 3346 exports.find = find, exports.createChainedFunction = createChainedFunction; 3347 var _warning = __webpack_require__(11), _warning2 = _interopRequireDefault(_warning); 3348 }).call(exports, __webpack_require__(2)); 3349 }, function(module, exports, __webpack_require__) { 3350 function getNative(object, key) { 3351 var value = getValue(object, key); 3352 return baseIsNative(value) ? value : void 0; 3353 } 3354 var baseIsNative = __webpack_require__(611), getValue = __webpack_require__(614); 3355 module.exports = getNative; 3356 }, function(module, __webpack_exports__, __webpack_require__) { 3357 "use strict"; 3358 __webpack_exports__.a = function(x) { 3359 return function() { 3360 return x; 3361 }; 3362 }; 3363 }, function(module, exports, __webpack_require__) { 3364 function getNative(object, key) { 3365 var value = getValue(object, key); 3366 return baseIsNative(value) ? value : void 0; 3367 } 3368 var baseIsNative = __webpack_require__(668), getValue = __webpack_require__(673); 3369 module.exports = getNative; 3370 }, function(module, exports, __webpack_require__) { 3371 function baseGetTag(value) { 3372 return null == value ? void 0 === value ? undefinedTag : nullTag : symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value); 3373 } 3374 var Symbol = __webpack_require__(128), getRawTag = __webpack_require__(669), objectToString = __webpack_require__(670), nullTag = "[object Null]", undefinedTag = "[object Undefined]", symToStringTag = Symbol ? Symbol.toStringTag : void 0; 3375 module.exports = baseGetTag; 3376 }, function(module, __webpack_exports__, __webpack_require__) { 3377 "use strict"; 3378 function _objectWithoutProperties(obj, keys) { 3379 var target = {}; 3380 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 3381 return target; 3382 } 3383 function _classCallCheck(instance, Constructor) { 3384 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 3385 } 3386 function _possibleConstructorReturn(self, call) { 3387 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 3388 return !call || "object" != typeof call && "function" != typeof call ? self : call; 3389 } 3390 function _inherits(subClass, superClass) { 3391 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 3392 subClass.prototype = Object.create(superClass && superClass.prototype, { 3393 constructor: { 3394 value: subClass, 3395 enumerable: !1, 3396 writable: !0, 3397 configurable: !0 3398 } 3399 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 3400 } 3401 var _class, _temp2, __WEBPACK_IMPORTED_MODULE_0_lodash_isNil__ = __webpack_require__(20), __WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isNil__), __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__), __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__), __WEBPACK_IMPORTED_MODULE_3_reduce_css_calc__ = __webpack_require__(771), __WEBPACK_IMPORTED_MODULE_3_reduce_css_calc___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_reduce_css_calc__), __WEBPACK_IMPORTED_MODULE_4_classnames__ = __webpack_require__(3), __WEBPACK_IMPORTED_MODULE_4_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_classnames__), __WEBPACK_IMPORTED_MODULE_5__util_DataUtils__ = __webpack_require__(9), __WEBPACK_IMPORTED_MODULE_6__util_ReactUtils__ = __webpack_require__(4), __WEBPACK_IMPORTED_MODULE_7__util_DOMUtils__ = __webpack_require__(198), _extends = Object.assign || function(target) { 3402 for (var i = 1; i < arguments.length; i++) { 3403 var source = arguments[i]; 3404 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 3405 } 3406 return target; 3407 }, _createClass = function() { 3408 function defineProperties(target, props) { 3409 for (var i = 0; i < props.length; i++) { 3410 var descriptor = props[i]; 3411 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 3412 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 3413 } 3414 } 3415 return function(Constructor, protoProps, staticProps) { 3416 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 3417 Constructor; 3418 }; 3419 }(), BREAKING_SPACES = /[ \f\n\r\t\v\u2028\u2029]+/, calculateWordWidths = function(props) { 3420 try { 3421 return { 3422 wordsWithComputedWidth: (__WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default()(props.children) ? [] : props.children.toString().split(BREAKING_SPACES)).map(function(word) { 3423 return { 3424 word: word, 3425 width: Object(__WEBPACK_IMPORTED_MODULE_7__util_DOMUtils__.c)(word, props.style).width 3426 }; 3427 }), 3428 spaceWidth: Object(__WEBPACK_IMPORTED_MODULE_7__util_DOMUtils__.c)(" ", props.style).width 3429 }; 3430 } catch (e) { 3431 return null; 3432 } 3433 }, Text = (_temp2 = _class = function(_Component) { 3434 function Text() { 3435 var _ref, _temp, _this, _ret; 3436 _classCallCheck(this, Text); 3437 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 3438 return _temp = _this = _possibleConstructorReturn(this, (_ref = Text.__proto__ || Object.getPrototypeOf(Text)).call.apply(_ref, [ this ].concat(args))), 3439 _this.state = { 3440 wordsByLines: [] 3441 }, _ret = _temp, _possibleConstructorReturn(_this, _ret); 3442 } 3443 return _inherits(Text, _Component), _createClass(Text, [ { 3444 key: "componentWillMount", 3445 value: function() { 3446 this.updateWordsByLines(this.props, !0); 3447 } 3448 }, { 3449 key: "componentWillReceiveProps", 3450 value: function(nextProps) { 3451 var needCalculate = this.props.children !== nextProps.children || this.props.style !== nextProps.style; 3452 this.updateWordsByLines(nextProps, needCalculate); 3453 } 3454 }, { 3455 key: "updateWordsByLines", 3456 value: function(props, needCalculate) { 3457 if (!props.width && !props.scaleToFit || Object(__WEBPACK_IMPORTED_MODULE_6__util_ReactUtils__.n)()) this.updateWordsWithoutCalculate(props); else { 3458 if (needCalculate) { 3459 var wordWidths = calculateWordWidths(props); 3460 if (!wordWidths) return void this.updateWordsWithoutCalculate(props); 3461 var wordsWithComputedWidth = wordWidths.wordsWithComputedWidth, spaceWidth = wordWidths.spaceWidth; 3462 this.wordsWithComputedWidth = wordsWithComputedWidth, this.spaceWidth = spaceWidth; 3463 } 3464 var wordsByLines = this.calculateWordsByLines(this.wordsWithComputedWidth, this.spaceWidth, props.width); 3465 this.setState({ 3466 wordsByLines: wordsByLines 3467 }); 3468 } 3469 } 3470 }, { 3471 key: "updateWordsWithoutCalculate", 3472 value: function(props) { 3473 var words = __WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default()(props.children) ? [] : props.children.toString().split(BREAKING_SPACES); 3474 this.setState({ 3475 wordsByLines: [ { 3476 words: words 3477 } ] 3478 }); 3479 } 3480 }, { 3481 key: "calculateWordsByLines", 3482 value: function(wordsWithComputedWidth, spaceWidth, lineWidth) { 3483 var scaleToFit = this.props.scaleToFit; 3484 return wordsWithComputedWidth.reduce(function(result, _ref2) { 3485 var word = _ref2.word, width = _ref2.width, currentLine = result[result.length - 1]; 3486 if (currentLine && (null == lineWidth || scaleToFit || currentLine.width + width + spaceWidth < lineWidth)) currentLine.words.push(word), 3487 currentLine.width += width + spaceWidth; else { 3488 var newLine = { 3489 words: [ word ], 3490 width: width 3491 }; 3492 result.push(newLine); 3493 } 3494 return result; 3495 }, []); 3496 } 3497 }, { 3498 key: "render", 3499 value: function() { 3500 var _props = this.props, dx = _props.dx, dy = _props.dy, textAnchor = _props.textAnchor, verticalAnchor = _props.verticalAnchor, scaleToFit = _props.scaleToFit, angle = _props.angle, lineHeight = _props.lineHeight, capHeight = _props.capHeight, className = _props.className, textProps = _objectWithoutProperties(_props, [ "dx", "dy", "textAnchor", "verticalAnchor", "scaleToFit", "angle", "lineHeight", "capHeight", "className" ]), wordsByLines = this.state.wordsByLines; 3501 if (!Object(__WEBPACK_IMPORTED_MODULE_5__util_DataUtils__.g)(textProps.x) || !Object(__WEBPACK_IMPORTED_MODULE_5__util_DataUtils__.g)(textProps.y)) return null; 3502 var x = textProps.x + (Object(__WEBPACK_IMPORTED_MODULE_5__util_DataUtils__.h)(dx) ? dx : 0), y = textProps.y + (Object(__WEBPACK_IMPORTED_MODULE_5__util_DataUtils__.h)(dy) ? dy : 0), startDy = void 0; 3503 switch (verticalAnchor) { 3504 case "start": 3505 startDy = __WEBPACK_IMPORTED_MODULE_3_reduce_css_calc___default()("calc(" + capHeight + ")"); 3506 break; 3507 3508 case "middle": 3509 startDy = __WEBPACK_IMPORTED_MODULE_3_reduce_css_calc___default()("calc(" + (wordsByLines.length - 1) / 2 + " * -" + lineHeight + " + (" + capHeight + " / 2))"); 3510 break; 3511 3512 default: 3513 startDy = __WEBPACK_IMPORTED_MODULE_3_reduce_css_calc___default()("calc(" + (wordsByLines.length - 1) + " * -" + lineHeight + ")"); 3514 } 3515 var transforms = []; 3516 if (scaleToFit) { 3517 var lineWidth = wordsByLines[0].width; 3518 transforms.push("scale(" + this.props.width / lineWidth + ")"); 3519 } 3520 return angle && transforms.push("rotate(" + angle + ", " + x + ", " + y + ")"), 3521 transforms.length && (textProps.transform = transforms.join(" ")), __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("text", _extends({}, Object(__WEBPACK_IMPORTED_MODULE_6__util_ReactUtils__.k)(textProps), { 3522 x: x, 3523 y: y, 3524 className: __WEBPACK_IMPORTED_MODULE_4_classnames___default()("recharts-text", className), 3525 textAnchor: textAnchor 3526 }), wordsByLines.map(function(line, index) { 3527 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("tspan", { 3528 x: x, 3529 dy: 0 === index ? startDy : lineHeight, 3530 key: index 3531 }, line.words.join(" ")); 3532 })); 3533 } 3534 } ]), Text; 3535 }(__WEBPACK_IMPORTED_MODULE_1_react__.Component), _class.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_6__util_ReactUtils__.c, { 3536 scaleToFit: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, 3537 angle: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 3538 textAnchor: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOf([ "start", "middle", "end", "inherit" ]), 3539 verticalAnchor: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOf([ "start", "middle", "end" ]), 3540 style: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object 3541 }), _class.defaultProps = { 3542 x: 0, 3543 y: 0, 3544 lineHeight: "1em", 3545 capHeight: "0.71em", 3546 scaleToFit: !1, 3547 textAnchor: "start", 3548 verticalAnchor: "end" 3549 }, _temp2); 3550 __webpack_exports__.a = Text; 3551 }, function(module, __webpack_exports__, __webpack_require__) { 3552 "use strict"; 3553 __webpack_require__.d(__webpack_exports__, "a", function() { 3554 return map; 3555 }), __webpack_require__.d(__webpack_exports__, "b", function() { 3556 return slice; 3557 }); 3558 var array = Array.prototype, map = array.map, slice = array.slice; 3559 }, function(module, __webpack_exports__, __webpack_require__) { 3560 "use strict"; 3561 function _classCallCheck(instance, Constructor) { 3562 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 3563 } 3564 function _possibleConstructorReturn(self, call) { 3565 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 3566 return !call || "object" != typeof call && "function" != typeof call ? self : call; 3567 } 3568 function _inherits(subClass, superClass) { 3569 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 3570 subClass.prototype = Object.create(superClass && superClass.prototype, { 3571 constructor: { 3572 value: subClass, 3573 enumerable: !1, 3574 writable: !0, 3575 configurable: !0 3576 } 3577 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 3578 } 3579 var _class, _class2, _temp, __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__), __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__), __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(3), __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__), __WEBPACK_IMPORTED_MODULE_3__util_PureRender__ = __webpack_require__(5), __WEBPACK_IMPORTED_MODULE_4__util_ReactUtils__ = __webpack_require__(4), _extends = Object.assign || function(target) { 3580 for (var i = 1; i < arguments.length; i++) { 3581 var source = arguments[i]; 3582 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 3583 } 3584 return target; 3585 }, _createClass = function() { 3586 function defineProperties(target, props) { 3587 for (var i = 0; i < props.length; i++) { 3588 var descriptor = props[i]; 3589 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 3590 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 3591 } 3592 } 3593 return function(Constructor, protoProps, staticProps) { 3594 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 3595 Constructor; 3596 }; 3597 }(), Dot = Object(__WEBPACK_IMPORTED_MODULE_3__util_PureRender__.a)((_temp = _class2 = function(_Component) { 3598 function Dot() { 3599 return _classCallCheck(this, Dot), _possibleConstructorReturn(this, (Dot.__proto__ || Object.getPrototypeOf(Dot)).apply(this, arguments)); 3600 } 3601 return _inherits(Dot, _Component), _createClass(Dot, [ { 3602 key: "render", 3603 value: function() { 3604 var _props = this.props, cx = _props.cx, cy = _props.cy, r = _props.r, className = _props.className, layerClass = __WEBPACK_IMPORTED_MODULE_2_classnames___default()("recharts-dot", className); 3605 return cx === +cx && cy === +cy && r === +r ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("circle", _extends({}, Object(__WEBPACK_IMPORTED_MODULE_4__util_ReactUtils__.k)(this.props), Object(__WEBPACK_IMPORTED_MODULE_4__util_ReactUtils__.e)(this.props, null, !0), { 3606 className: layerClass, 3607 cx: cx, 3608 cy: cy, 3609 r: r 3610 })) : null; 3611 } 3612 } ]), Dot; 3613 }(__WEBPACK_IMPORTED_MODULE_0_react__.Component), _class2.displayName = "Dot", _class2.propTypes = { 3614 className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, 3615 cx: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 3616 cy: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 3617 r: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number 3618 }, _class = _temp)) || _class; 3619 __webpack_exports__.a = Dot; 3620 }, function(module, exports, __webpack_require__) { 3621 var IObject = __webpack_require__(146), defined = __webpack_require__(148); 3622 module.exports = function(it) { 3623 return IObject(defined(it)); 3624 }; 3625 }, function(module, exports, __webpack_require__) { 3626 var defined = __webpack_require__(148); 3627 module.exports = function(it) { 3628 return Object(defined(it)); 3629 }; 3630 }, function(module, exports, __webpack_require__) { 3631 "use strict"; 3632 function _interopRequireDefault(obj) { 3633 return obj && obj.__esModule ? obj : { 3634 default: obj 3635 }; 3636 } 3637 function _classCallCheck(instance, Constructor) { 3638 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 3639 } 3640 Object.defineProperty(exports, "__esModule", { 3641 value: !0 3642 }); 3643 var _extends = Object.assign || function(target) { 3644 for (var i = 1; i < arguments.length; i++) { 3645 var source = arguments[i]; 3646 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 3647 } 3648 return target; 3649 }, _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj) { 3650 return typeof obj; 3651 } : function(obj) { 3652 return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 3653 }, _createClass = function() { 3654 function defineProperties(target, props) { 3655 for (var i = 0; i < props.length; i++) { 3656 var descriptor = props[i]; 3657 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 3658 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 3659 } 3660 } 3661 return function(Constructor, protoProps, staticProps) { 3662 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 3663 Constructor; 3664 }; 3665 }(), _warning = __webpack_require__(11), _warning2 = _interopRequireDefault(_warning), _toCss = __webpack_require__(163), _toCss2 = _interopRequireDefault(_toCss), _toCssValue = __webpack_require__(110), _toCssValue2 = _interopRequireDefault(_toCssValue), StyleRule = function() { 3666 function StyleRule(key, style, options) { 3667 _classCallCheck(this, StyleRule), this.type = "style", this.isProcessed = !1; 3668 var sheet = options.sheet, Renderer = options.Renderer, selector = options.selector; 3669 this.key = key, this.options = options, this.style = style, selector && (this.selectorText = selector), 3670 this.renderer = sheet ? sheet.renderer : new Renderer(); 3671 } 3672 return _createClass(StyleRule, [ { 3673 key: "prop", 3674 value: function(name, value) { 3675 if (void 0 === value) return this.style[name]; 3676 if (this.style[name] === value) return this; 3677 value = this.options.jss.plugins.onChangeValue(value, name, this); 3678 var isEmpty = null == value || !1 === value, isDefined = name in this.style; 3679 if (isEmpty && !isDefined) return this; 3680 var remove = isEmpty && isDefined; 3681 if (remove ? delete this.style[name] : this.style[name] = value, this.renderable) return remove ? this.renderer.removeProperty(this.renderable, name) : this.renderer.setProperty(this.renderable, name, value), 3682 this; 3683 var sheet = this.options.sheet; 3684 return sheet && sheet.attached && (0, _warning2.default)(!1, 'Rule is not linked. Missing sheet option "link: true".'), 3685 this; 3686 } 3687 }, { 3688 key: "applyTo", 3689 value: function(renderable) { 3690 var json = this.toJSON(); 3691 for (var prop in json) this.renderer.setProperty(renderable, prop, json[prop]); 3692 return this; 3693 } 3694 }, { 3695 key: "toJSON", 3696 value: function() { 3697 var json = {}; 3698 for (var prop in this.style) { 3699 var value = this.style[prop]; 3700 "object" !== (void 0 === value ? "undefined" : _typeof(value)) ? json[prop] = value : Array.isArray(value) && (json[prop] = (0, 3701 _toCssValue2.default)(value)); 3702 } 3703 return json; 3704 } 3705 }, { 3706 key: "toString", 3707 value: function(options) { 3708 var sheet = this.options.sheet, link = !!sheet && sheet.options.link, opts = link ? _extends({}, options, { 3709 allowEmpty: !0 3710 }) : options; 3711 return (0, _toCss2.default)(this.selector, this.style, opts); 3712 } 3713 }, { 3714 key: "selector", 3715 set: function(selector) { 3716 if (selector !== this.selectorText && (this.selectorText = selector, this.renderable)) { 3717 if (!this.renderer.setSelector(this.renderable, selector) && this.renderable) { 3718 var renderable = this.renderer.replaceRule(this.renderable, this); 3719 renderable && (this.renderable = renderable); 3720 } 3721 } 3722 }, 3723 get: function() { 3724 return this.selectorText; 3725 } 3726 } ]), StyleRule; 3727 }(); 3728 exports.default = StyleRule; 3729 }, function(module, exports, __webpack_require__) { 3730 function isSymbol(value) { 3731 return "symbol" == typeof value || isObjectLike(value) && baseGetTag(value) == symbolTag; 3732 } 3733 var baseGetTag = __webpack_require__(41), isObjectLike = __webpack_require__(42), symbolTag = "[object Symbol]"; 3734 module.exports = isSymbol; 3735 }, function(module, exports) { 3736 function identity(value) { 3737 return value; 3738 } 3739 module.exports = identity; 3740 }, function(module, __webpack_exports__, __webpack_require__) { 3741 "use strict"; 3742 __webpack_exports__.a = function(a, b) { 3743 return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN; 3744 }; 3745 }, function(module, __webpack_exports__, __webpack_require__) { 3746 "use strict"; 3747 function _classCallCheck(instance, Constructor) { 3748 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 3749 } 3750 function _possibleConstructorReturn(self, call) { 3751 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 3752 return !call || "object" != typeof call && "function" != typeof call ? self : call; 3753 } 3754 function _inherits(subClass, superClass) { 3755 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 3756 subClass.prototype = Object.create(superClass && superClass.prototype, { 3757 constructor: { 3758 value: subClass, 3759 enumerable: !1, 3760 writable: !0, 3761 configurable: !0 3762 } 3763 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 3764 } 3765 var _class, _class2, _temp2, __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__), __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__), __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(3), __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__), __WEBPACK_IMPORTED_MODULE_3_react_smooth__ = __webpack_require__(33), __WEBPACK_IMPORTED_MODULE_3_react_smooth___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react_smooth__), __WEBPACK_IMPORTED_MODULE_4__util_PureRender__ = __webpack_require__(5), __WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__ = __webpack_require__(4), _extends = Object.assign || function(target) { 3766 for (var i = 1; i < arguments.length; i++) { 3767 var source = arguments[i]; 3768 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 3769 } 3770 return target; 3771 }, _createClass = function() { 3772 function defineProperties(target, props) { 3773 for (var i = 0; i < props.length; i++) { 3774 var descriptor = props[i]; 3775 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 3776 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 3777 } 3778 } 3779 return function(Constructor, protoProps, staticProps) { 3780 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 3781 Constructor; 3782 }; 3783 }(), getRectangePath = function(x, y, width, height, radius) { 3784 var maxRadius = Math.min(Math.abs(width) / 2, Math.abs(height) / 2), sign = height >= 0 ? 1 : -1, clockWise = height >= 0 ? 1 : 0, path = void 0; 3785 if (maxRadius > 0 && radius instanceof Array) { 3786 for (var newRadius = [], i = 0; i < 4; i++) newRadius[i] = radius[i] > maxRadius ? maxRadius : radius[i]; 3787 path = "M" + x + "," + (y + sign * newRadius[0]), newRadius[0] > 0 && (path += "A " + newRadius[0] + "," + newRadius[0] + ",0,0," + clockWise + "," + (x + newRadius[0]) + "," + y), 3788 path += "L " + (x + width - newRadius[1]) + "," + y, newRadius[1] > 0 && (path += "A " + newRadius[1] + "," + newRadius[1] + ",0,0," + clockWise + ",\n " + (x + width) + "," + (y + sign * newRadius[1])), 3789 path += "L " + (x + width) + "," + (y + height - sign * newRadius[2]), newRadius[2] > 0 && (path += "A " + newRadius[2] + "," + newRadius[2] + ",0,0," + clockWise + ",\n " + (x + width - newRadius[2]) + "," + (y + height)), 3790 path += "L " + (x + newRadius[3]) + "," + (y + height), newRadius[3] > 0 && (path += "A " + newRadius[3] + "," + newRadius[3] + ",0,0," + clockWise + ",\n " + x + "," + (y + height - sign * newRadius[3])), 3791 path += "Z"; 3792 } else if (maxRadius > 0 && radius === +radius && radius > 0) { 3793 var _newRadius = Math.min(maxRadius, radius); 3794 path = "M " + x + "," + (y + sign * _newRadius) + "\n A " + _newRadius + "," + _newRadius + ",0,0," + clockWise + "," + (x + _newRadius) + "," + y + "\n L " + (x + width - _newRadius) + "," + y + "\n A " + _newRadius + "," + _newRadius + ",0,0," + clockWise + "," + (x + width) + "," + (y + sign * _newRadius) + "\n L " + (x + width) + "," + (y + height - sign * _newRadius) + "\n A " + _newRadius + "," + _newRadius + ",0,0," + clockWise + "," + (x + width - _newRadius) + "," + (y + height) + "\n L " + (x + _newRadius) + "," + (y + height) + "\n A " + _newRadius + "," + _newRadius + ",0,0," + clockWise + "," + x + "," + (y + height - sign * _newRadius) + " Z"; 3795 } else path = "M " + x + "," + y + " h " + width + " v " + height + " h " + -width + " Z"; 3796 return path; 3797 }, Rectangle = Object(__WEBPACK_IMPORTED_MODULE_4__util_PureRender__.a)((_temp2 = _class2 = function(_Component) { 3798 function Rectangle() { 3799 var _ref, _temp, _this, _ret; 3800 _classCallCheck(this, Rectangle); 3801 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 3802 return _temp = _this = _possibleConstructorReturn(this, (_ref = Rectangle.__proto__ || Object.getPrototypeOf(Rectangle)).call.apply(_ref, [ this ].concat(args))), 3803 _this.state = { 3804 totalLength: -1 3805 }, _ret = _temp, _possibleConstructorReturn(_this, _ret); 3806 } 3807 return _inherits(Rectangle, _Component), _createClass(Rectangle, [ { 3808 key: "componentDidMount", 3809 value: function() { 3810 if (this.node && this.node.getTotalLength) try { 3811 var totalLength = this.node.getTotalLength(); 3812 totalLength && this.setState({ 3813 totalLength: totalLength 3814 }); 3815 } catch (err) {} 3816 } 3817 }, { 3818 key: "render", 3819 value: function() { 3820 var _this2 = this, _props = this.props, x = _props.x, y = _props.y, width = _props.width, height = _props.height, radius = _props.radius, className = _props.className, totalLength = this.state.totalLength, _props2 = this.props, animationEasing = _props2.animationEasing, animationDuration = _props2.animationDuration, animationBegin = _props2.animationBegin, isAnimationActive = _props2.isAnimationActive, isUpdateAnimationActive = _props2.isUpdateAnimationActive; 3821 if (x !== +x || y !== +y || width !== +width || height !== +height || 0 === width || 0 === height) return null; 3822 var layerClass = __WEBPACK_IMPORTED_MODULE_2_classnames___default()("recharts-rectangle", className); 3823 return isUpdateAnimationActive ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_react_smooth___default.a, { 3824 canBegin: totalLength > 0, 3825 from: { 3826 width: width, 3827 height: height, 3828 x: x, 3829 y: y 3830 }, 3831 to: { 3832 width: width, 3833 height: height, 3834 x: x, 3835 y: y 3836 }, 3837 duration: animationDuration, 3838 animationEasing: animationEasing, 3839 isActive: isUpdateAnimationActive 3840 }, function(_ref2) { 3841 var currWidth = _ref2.width, currHeight = _ref2.height, currX = _ref2.x, currY = _ref2.y; 3842 return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_react_smooth___default.a, { 3843 canBegin: totalLength > 0, 3844 from: "0px " + (-1 === totalLength ? 1 : totalLength) + "px", 3845 to: totalLength + "px 0px", 3846 attributeName: "strokeDasharray", 3847 begin: animationBegin, 3848 duration: animationDuration, 3849 isActive: isAnimationActive, 3850 easing: animationEasing 3851 }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("path", _extends({}, Object(__WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__.k)(_this2.props), Object(__WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__.e)(_this2.props), { 3852 className: layerClass, 3853 d: getRectangePath(currX, currY, currWidth, currHeight, radius), 3854 ref: function(node) { 3855 _this2.node = node; 3856 } 3857 }))); 3858 }) : __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("path", _extends({}, Object(__WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__.k)(this.props), Object(__WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__.e)(this.props), { 3859 className: layerClass, 3860 d: getRectangePath(x, y, width, height, radius) 3861 })); 3862 } 3863 } ]), Rectangle; 3864 }(__WEBPACK_IMPORTED_MODULE_0_react__.Component), _class2.displayName = "Rectangle", 3865 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__.c, __WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__.a, { 3866 className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, 3867 x: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 3868 y: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 3869 width: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 3870 height: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 3871 radius: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.array ]), 3872 isAnimationActive: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, 3873 isUpdateAnimationActive: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, 3874 animationBegin: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 3875 animationDuration: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 3876 animationEasing: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf([ "ease", "ease-in", "ease-out", "ease-in-out", "linear" ]) 3877 }), _class2.defaultProps = { 3878 x: 0, 3879 y: 0, 3880 width: 0, 3881 height: 0, 3882 radius: 0, 3883 isAnimationActive: !1, 3884 isUpdateAnimationActive: !1, 3885 animationBegin: 0, 3886 animationDuration: 1500, 3887 animationEasing: "ease" 3888 }, _class = _temp2)) || _class; 3889 __webpack_exports__.a = Rectangle; 3890 }, function(module, __webpack_exports__, __webpack_require__) { 3891 "use strict"; 3892 function _classCallCheck(instance, Constructor) { 3893 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 3894 } 3895 function _possibleConstructorReturn(self, call) { 3896 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 3897 return !call || "object" != typeof call && "function" != typeof call ? self : call; 3898 } 3899 function _inherits(subClass, superClass) { 3900 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 3901 subClass.prototype = Object.create(superClass && superClass.prototype, { 3902 constructor: { 3903 value: subClass, 3904 enumerable: !1, 3905 writable: !0, 3906 configurable: !0 3907 } 3908 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 3909 } 3910 var _class, _class2, _temp, __WEBPACK_IMPORTED_MODULE_0_lodash_isArray__ = __webpack_require__(13), __WEBPACK_IMPORTED_MODULE_0_lodash_isArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isArray__), __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction__ = __webpack_require__(8), __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isFunction__), __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__), __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__), __WEBPACK_IMPORTED_MODULE_4_d3_shape__ = __webpack_require__(182), __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(3), __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__), __WEBPACK_IMPORTED_MODULE_6__util_PureRender__ = __webpack_require__(5), __WEBPACK_IMPORTED_MODULE_7__util_ReactUtils__ = __webpack_require__(4), __WEBPACK_IMPORTED_MODULE_8__util_DataUtils__ = __webpack_require__(9), _extends = Object.assign || function(target) { 3911 for (var i = 1; i < arguments.length; i++) { 3912 var source = arguments[i]; 3913 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 3914 } 3915 return target; 3916 }, _createClass = function() { 3917 function defineProperties(target, props) { 3918 for (var i = 0; i < props.length; i++) { 3919 var descriptor = props[i]; 3920 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 3921 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 3922 } 3923 } 3924 return function(Constructor, protoProps, staticProps) { 3925 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 3926 Constructor; 3927 }; 3928 }(), CURVE_FACTORIES = { 3929 curveBasisClosed: __WEBPACK_IMPORTED_MODULE_4_d3_shape__.c, 3930 curveBasisOpen: __WEBPACK_IMPORTED_MODULE_4_d3_shape__.d, 3931 curveBasis: __WEBPACK_IMPORTED_MODULE_4_d3_shape__.b, 3932 curveLinearClosed: __WEBPACK_IMPORTED_MODULE_4_d3_shape__.f, 3933 curveLinear: __WEBPACK_IMPORTED_MODULE_4_d3_shape__.e, 3934 curveMonotoneX: __WEBPACK_IMPORTED_MODULE_4_d3_shape__.g, 3935 curveMonotoneY: __WEBPACK_IMPORTED_MODULE_4_d3_shape__.h, 3936 curveNatural: __WEBPACK_IMPORTED_MODULE_4_d3_shape__.i, 3937 curveStep: __WEBPACK_IMPORTED_MODULE_4_d3_shape__.j, 3938 curveStepAfter: __WEBPACK_IMPORTED_MODULE_4_d3_shape__.k, 3939 curveStepBefore: __WEBPACK_IMPORTED_MODULE_4_d3_shape__.l 3940 }, defined = function(p) { 3941 return p.x === +p.x && p.y === +p.y; 3942 }, getX = function(p) { 3943 return p.x; 3944 }, getY = function(p) { 3945 return p.y; 3946 }, getCurveFactory = function(type, layout) { 3947 if (__WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(type)) return type; 3948 var name = "curve" + type.slice(0, 1).toUpperCase() + type.slice(1); 3949 return "curveMonotone" === name && layout ? CURVE_FACTORIES[name + ("vertical" === layout ? "Y" : "X")] : CURVE_FACTORIES[name] || __WEBPACK_IMPORTED_MODULE_4_d3_shape__.e; 3950 }, Curve = Object(__WEBPACK_IMPORTED_MODULE_6__util_PureRender__.a)((_temp = _class2 = function(_Component) { 3951 function Curve() { 3952 return _classCallCheck(this, Curve), _possibleConstructorReturn(this, (Curve.__proto__ || Object.getPrototypeOf(Curve)).apply(this, arguments)); 3953 } 3954 return _inherits(Curve, _Component), _createClass(Curve, [ { 3955 key: "getPath", 3956 value: function() { 3957 var _props = this.props, type = _props.type, points = _props.points, baseLine = _props.baseLine, layout = _props.layout, connectNulls = _props.connectNulls, curveFactory = getCurveFactory(type, layout), formatPoints = connectNulls ? points.filter(function(entry) { 3958 return defined(entry); 3959 }) : points, lineFunction = void 0; 3960 if (__WEBPACK_IMPORTED_MODULE_0_lodash_isArray___default()(baseLine)) { 3961 var areaPoints = formatPoints.map(function(entry, index) { 3962 return _extends({}, entry, { 3963 base: baseLine[index] 3964 }); 3965 }); 3966 return lineFunction = "vertical" === layout ? Object(__WEBPACK_IMPORTED_MODULE_4_d3_shape__.a)().y(getY).x1(getX).x0(function(d) { 3967 return d.base.x; 3968 }) : Object(__WEBPACK_IMPORTED_MODULE_4_d3_shape__.a)().x(getX).y1(getY).y0(function(d) { 3969 return d.base.y; 3970 }), lineFunction.defined(defined).curve(curveFactory), lineFunction(areaPoints); 3971 } 3972 return lineFunction = "vertical" === layout && Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.h)(baseLine) ? Object(__WEBPACK_IMPORTED_MODULE_4_d3_shape__.a)().y(getY).x1(getX).x0(baseLine) : Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.h)(baseLine) ? Object(__WEBPACK_IMPORTED_MODULE_4_d3_shape__.a)().x(getX).y1(getY).y0(baseLine) : Object(__WEBPACK_IMPORTED_MODULE_4_d3_shape__.m)().x(getX).y(getY), 3973 lineFunction.defined(defined).curve(curveFactory), lineFunction(formatPoints); 3974 } 3975 }, { 3976 key: "render", 3977 value: function() { 3978 var _props2 = this.props, className = _props2.className, points = _props2.points, path = _props2.path, pathRef = _props2.pathRef; 3979 if (!(points && points.length || path)) return null; 3980 var realPath = points && points.length ? this.getPath() : path; 3981 return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("path", _extends({}, Object(__WEBPACK_IMPORTED_MODULE_7__util_ReactUtils__.k)(this.props), Object(__WEBPACK_IMPORTED_MODULE_7__util_ReactUtils__.e)(this.props, null, !0), { 3982 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()("recharts-curve", className), 3983 d: realPath, 3984 ref: pathRef 3985 })); 3986 } 3987 } ]), Curve; 3988 }(__WEBPACK_IMPORTED_MODULE_2_react__.Component), _class2.displayName = "Curve", 3989 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_7__util_ReactUtils__.c, { 3990 className: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string, 3991 type: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf([ "basis", "basisClosed", "basisOpen", "linear", "linearClosed", "natural", "monotoneX", "monotoneY", "monotone", "step", "stepBefore", "stepAfter" ]), __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func ]), 3992 layout: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf([ "horizontal", "vertical" ]), 3993 baseLine: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.array ]), 3994 points: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object), 3995 connectNulls: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool, 3996 path: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string, 3997 pathRef: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func 3998 }), _class2.defaultProps = { 3999 type: "linear", 4000 points: [], 4001 connectNulls: !1 4002 }, _class = _temp)) || _class; 4003 __webpack_exports__.a = Curve; 4004 }, function(module, __webpack_exports__, __webpack_require__) { 4005 "use strict"; 4006 function _classCallCheck(instance, Constructor) { 4007 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 4008 } 4009 function _possibleConstructorReturn(self, call) { 4010 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 4011 return !call || "object" != typeof call && "function" != typeof call ? self : call; 4012 } 4013 function _inherits(subClass, superClass) { 4014 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 4015 subClass.prototype = Object.create(superClass && superClass.prototype, { 4016 constructor: { 4017 value: subClass, 4018 enumerable: !1, 4019 writable: !0, 4020 configurable: !0 4021 } 4022 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 4023 } 4024 var _class, _class2, _temp, __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_1_prop_types__ = (__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__), 4025 __webpack_require__(1)), __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__), __WEBPACK_IMPORTED_MODULE_2__util_PureRender__ = __webpack_require__(5), __WEBPACK_IMPORTED_MODULE_3__util_ReactUtils__ = __webpack_require__(4), _createClass = function() { 4026 function defineProperties(target, props) { 4027 for (var i = 0; i < props.length; i++) { 4028 var descriptor = props[i]; 4029 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 4030 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 4031 } 4032 } 4033 return function(Constructor, protoProps, staticProps) { 4034 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 4035 Constructor; 4036 }; 4037 }(), XAxis = Object(__WEBPACK_IMPORTED_MODULE_2__util_PureRender__.a)((_temp = _class2 = function(_Component) { 4038 function XAxis() { 4039 return _classCallCheck(this, XAxis), _possibleConstructorReturn(this, (XAxis.__proto__ || Object.getPrototypeOf(XAxis)).apply(this, arguments)); 4040 } 4041 return _inherits(XAxis, _Component), _createClass(XAxis, [ { 4042 key: "render", 4043 value: function() { 4044 return null; 4045 } 4046 } ]), XAxis; 4047 }(__WEBPACK_IMPORTED_MODULE_0_react__.Component), _class2.displayName = "XAxis", 4048 _class2.propTypes = { 4049 allowDecimals: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, 4050 allowDuplicatedCategory: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, 4051 hide: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, 4052 name: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number ]), 4053 unit: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number ]), 4054 xAxisId: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number ]), 4055 domain: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf([ "auto", "dataMin", "dataMax" ]) ])), 4056 dataKey: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func ]), 4057 width: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4058 height: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4059 mirror: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, 4060 orientation: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf([ "top", "bottom" ]), 4061 type: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf([ "number", "category" ]), 4062 ticks: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.array, 4063 tickCount: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4064 tickFormatter: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, 4065 padding: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape({ 4066 left: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4067 right: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number 4068 }), 4069 allowDataOverflow: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, 4070 scale: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf(__WEBPACK_IMPORTED_MODULE_3__util_ReactUtils__.d), __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func ]), 4071 tick: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.element ]), 4072 axisLine: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object ]), 4073 tickLine: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object ]), 4074 minTickGap: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4075 tickSize: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4076 interval: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf([ "preserveStart", "preserveEnd", "preserveStartEnd" ]) ]), 4077 reversed: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool 4078 }, _class2.defaultProps = { 4079 allowDecimals: !0, 4080 hide: !1, 4081 orientation: "bottom", 4082 width: 0, 4083 height: 30, 4084 mirror: !1, 4085 xAxisId: 0, 4086 tickCount: 5, 4087 type: "category", 4088 domain: [ 0, "auto" ], 4089 padding: { 4090 left: 0, 4091 right: 0 4092 }, 4093 allowDataOverflow: !1, 4094 scale: "auto", 4095 reversed: !1, 4096 allowDuplicatedCategory: !0 4097 }, _class = _temp)) || _class; 4098 __webpack_exports__.a = XAxis; 4099 }, function(module, __webpack_exports__, __webpack_require__) { 4100 "use strict"; 4101 function _classCallCheck(instance, Constructor) { 4102 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 4103 } 4104 function _possibleConstructorReturn(self, call) { 4105 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 4106 return !call || "object" != typeof call && "function" != typeof call ? self : call; 4107 } 4108 function _inherits(subClass, superClass) { 4109 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 4110 subClass.prototype = Object.create(superClass && superClass.prototype, { 4111 constructor: { 4112 value: subClass, 4113 enumerable: !1, 4114 writable: !0, 4115 configurable: !0 4116 } 4117 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 4118 } 4119 var _class, _class2, _temp, __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_1_prop_types__ = (__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__), 4120 __webpack_require__(1)), __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__), __WEBPACK_IMPORTED_MODULE_2__util_PureRender__ = __webpack_require__(5), _createClass = function() { 4121 function defineProperties(target, props) { 4122 for (var i = 0; i < props.length; i++) { 4123 var descriptor = props[i]; 4124 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 4125 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 4126 } 4127 } 4128 return function(Constructor, protoProps, staticProps) { 4129 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 4130 Constructor; 4131 }; 4132 }(), YAxis = Object(__WEBPACK_IMPORTED_MODULE_2__util_PureRender__.a)((_temp = _class2 = function(_Component) { 4133 function YAxis() { 4134 return _classCallCheck(this, YAxis), _possibleConstructorReturn(this, (YAxis.__proto__ || Object.getPrototypeOf(YAxis)).apply(this, arguments)); 4135 } 4136 return _inherits(YAxis, _Component), _createClass(YAxis, [ { 4137 key: "render", 4138 value: function() { 4139 return null; 4140 } 4141 } ]), YAxis; 4142 }(__WEBPACK_IMPORTED_MODULE_0_react__.Component), _class2.displayName = "YAxis", 4143 _class2.propTypes = { 4144 allowDecimals: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, 4145 allowDuplicatedCategory: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, 4146 hide: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, 4147 name: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number ]), 4148 unit: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number ]), 4149 yAxisId: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number ]), 4150 domain: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf([ "auto", "dataMin", "dataMax" ]) ])), 4151 dataKey: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func ]), 4152 ticks: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.array, 4153 tickCount: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4154 tickFormatter: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, 4155 width: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4156 height: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4157 mirror: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, 4158 orientation: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf([ "left", "right" ]), 4159 type: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf([ "number", "category" ]), 4160 padding: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape({ 4161 top: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4162 bottom: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number 4163 }), 4164 allowDataOverflow: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, 4165 scale: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf([ "auto", "linear", "pow", "sqrt", "log", "identity", "time", "band", "point", "ordinal", "quantile", "quantize", "utcTime", "sequential", "threshold" ]), __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func ]), 4166 tick: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.element ]), 4167 axisLine: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object ]), 4168 tickLine: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object ]), 4169 minTickGap: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4170 tickSize: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4171 interval: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf([ "preserveStart", "preserveEnd", "preserveStartEnd" ]) ]), 4172 reversed: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool 4173 }, _class2.defaultProps = { 4174 allowDuplicatedCategory: !0, 4175 allowDecimals: !0, 4176 hide: !1, 4177 orientation: "left", 4178 width: 60, 4179 height: 0, 4180 mirror: !1, 4181 yAxisId: 0, 4182 tickCount: 5, 4183 type: "number", 4184 domain: [ 0, "auto" ], 4185 padding: { 4186 top: 0, 4187 bottom: 0 4188 }, 4189 allowDataOverflow: !1, 4190 scale: "auto", 4191 reversed: !1 4192 }, _class = _temp)) || _class; 4193 __webpack_exports__.a = YAxis; 4194 }, function(module, exports, __webpack_require__) { 4195 "use strict"; 4196 function toObject(val) { 4197 if (null === val || void 0 === val) throw new TypeError("Object.assign cannot be called with null or undefined"); 4198 return Object(val); 4199 } 4200 var getOwnPropertySymbols = Object.getOwnPropertySymbols, hasOwnProperty = Object.prototype.hasOwnProperty, propIsEnumerable = Object.prototype.propertyIsEnumerable; 4201 module.exports = function() { 4202 try { 4203 if (!Object.assign) return !1; 4204 var test1 = new String("abc"); 4205 if (test1[5] = "de", "5" === Object.getOwnPropertyNames(test1)[0]) return !1; 4206 for (var test2 = {}, i = 0; i < 10; i++) test2["_" + String.fromCharCode(i)] = i; 4207 if ("0123456789" !== Object.getOwnPropertyNames(test2).map(function(n) { 4208 return test2[n]; 4209 }).join("")) return !1; 4210 var test3 = {}; 4211 return "abcdefghijklmnopqrst".split("").forEach(function(letter) { 4212 test3[letter] = letter; 4213 }), "abcdefghijklmnopqrst" === Object.keys(Object.assign({}, test3)).join(""); 4214 } catch (err) { 4215 return !1; 4216 } 4217 }() ? Object.assign : function(target, source) { 4218 for (var from, symbols, to = toObject(target), s = 1; s < arguments.length; s++) { 4219 from = Object(arguments[s]); 4220 for (var key in from) hasOwnProperty.call(from, key) && (to[key] = from[key]); 4221 if (getOwnPropertySymbols) { 4222 symbols = getOwnPropertySymbols(from); 4223 for (var i = 0; i < symbols.length; i++) propIsEnumerable.call(from, symbols[i]) && (to[symbols[i]] = from[symbols[i]]); 4224 } 4225 } 4226 return to; 4227 }; 4228 }, function(module, exports) { 4229 module.exports = function(bitmap, value) { 4230 return { 4231 enumerable: !(1 & bitmap), 4232 configurable: !(2 & bitmap), 4233 writable: !(4 & bitmap), 4234 value: value 4235 }; 4236 }; 4237 }, function(module, exports, __webpack_require__) { 4238 var $keys = __webpack_require__(226), enumBugKeys = __webpack_require__(152); 4239 module.exports = Object.keys || function(O) { 4240 return $keys(O, enumBugKeys); 4241 }; 4242 }, function(module, exports) { 4243 module.exports = {}; 4244 }, function(module, exports, __webpack_require__) { 4245 "use strict"; 4246 function _interopRequireDefault(obj) { 4247 return obj && obj.__esModule ? obj : { 4248 default: obj 4249 }; 4250 } 4251 function createBreakpoints(breakpoints) { 4252 function up(key) { 4253 return "@media (min-width:" + ("number" == typeof values[key] ? values[key] : key) + unit + ")"; 4254 } 4255 function down(key) { 4256 var endIndex = keys.indexOf(key) + 1, upperbound = values[keys[endIndex]]; 4257 return endIndex === keys.length ? up("xs") : "@media (max-width:" + (("number" == typeof upperbound && endIndex > 0 ? upperbound : key) - step / 100) + unit + ")"; 4258 } 4259 function between(start, end) { 4260 var endIndex = keys.indexOf(end) + 1; 4261 return endIndex === keys.length ? up(start) : "@media (min-width:" + values[start] + unit + ") and (max-width:" + (values[keys[endIndex]] - step / 100) + unit + ")"; 4262 } 4263 function only(key) { 4264 return between(key, key); 4265 } 4266 function width(key) { 4267 return values[key]; 4268 } 4269 var _breakpoints$values = breakpoints.values, values = void 0 === _breakpoints$values ? { 4270 xs: 0, 4271 sm: 600, 4272 md: 960, 4273 lg: 1280, 4274 xl: 1920 4275 } : _breakpoints$values, _breakpoints$unit = breakpoints.unit, unit = void 0 === _breakpoints$unit ? "px" : _breakpoints$unit, _breakpoints$step = breakpoints.step, step = void 0 === _breakpoints$step ? 5 : _breakpoints$step, other = (0, 4276 _objectWithoutProperties3.default)(breakpoints, [ "values", "unit", "step" ]); 4277 return (0, _extends3.default)({ 4278 keys: keys, 4279 values: values, 4280 up: up, 4281 down: down, 4282 between: between, 4283 only: only, 4284 width: width 4285 }, other); 4286 } 4287 Object.defineProperty(exports, "__esModule", { 4288 value: !0 4289 }), exports.keys = void 0; 4290 var _extends2 = __webpack_require__(6), _extends3 = _interopRequireDefault(_extends2), _objectWithoutProperties2 = __webpack_require__(7), _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); 4291 exports.default = createBreakpoints; 4292 var keys = exports.keys = [ "xs", "sm", "md", "lg", "xl" ]; 4293 }, function(module, exports, __webpack_require__) { 4294 "use strict"; 4295 exports.__esModule = !0; 4296 var _getDisplayName = __webpack_require__(244), _getDisplayName2 = function(obj) { 4297 return obj && obj.__esModule ? obj : { 4298 default: obj 4299 }; 4300 }(_getDisplayName), wrapDisplayName = function(BaseComponent, hocName) { 4301 return hocName + "(" + (0, _getDisplayName2.default)(BaseComponent) + ")"; 4302 }; 4303 exports.default = wrapDisplayName; 4304 }, function(module, exports, __webpack_require__) { 4305 "use strict"; 4306 function _interopRequireDefault(obj) { 4307 return obj && obj.__esModule ? obj : { 4308 default: obj 4309 }; 4310 } 4311 function _classCallCheck(instance, Constructor) { 4312 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 4313 } 4314 Object.defineProperty(exports, "__esModule", { 4315 value: !0 4316 }); 4317 var _extends = Object.assign || function(target) { 4318 for (var i = 1; i < arguments.length; i++) { 4319 var source = arguments[i]; 4320 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 4321 } 4322 return target; 4323 }, _createClass = function() { 4324 function defineProperties(target, props) { 4325 for (var i = 0; i < props.length; i++) { 4326 var descriptor = props[i]; 4327 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 4328 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 4329 } 4330 } 4331 return function(Constructor, protoProps, staticProps) { 4332 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 4333 Constructor; 4334 }; 4335 }(), _createRule = __webpack_require__(111), _createRule2 = _interopRequireDefault(_createRule), _linkRule = __webpack_require__(249), _linkRule2 = _interopRequireDefault(_linkRule), _StyleRule = __webpack_require__(66), _StyleRule2 = _interopRequireDefault(_StyleRule), _escape = __webpack_require__(467), _escape2 = _interopRequireDefault(_escape), RuleList = function() { 4336 function RuleList(options) { 4337 _classCallCheck(this, RuleList), this.map = {}, this.raw = {}, this.index = [], 4338 this.options = options, this.classes = options.classes; 4339 } 4340 return _createClass(RuleList, [ { 4341 key: "add", 4342 value: function(name, decl, options) { 4343 var _options = this.options, parent = _options.parent, sheet = _options.sheet, jss = _options.jss, Renderer = _options.Renderer, generateClassName = _options.generateClassName; 4344 options = _extends({ 4345 classes: this.classes, 4346 parent: parent, 4347 sheet: sheet, 4348 jss: jss, 4349 Renderer: Renderer, 4350 generateClassName: generateClassName 4351 }, options), !options.selector && this.classes[name] && (options.selector = "." + (0, 4352 _escape2.default)(this.classes[name])), this.raw[name] = decl; 4353 var rule = (0, _createRule2.default)(name, decl, options), className = void 0; 4354 !options.selector && rule instanceof _StyleRule2.default && (className = generateClassName(rule, sheet), 4355 rule.selector = "." + (0, _escape2.default)(className)), this.register(rule, className); 4356 var index = void 0 === options.index ? this.index.length : options.index; 4357 return this.index.splice(index, 0, rule), rule; 4358 } 4359 }, { 4360 key: "get", 4361 value: function(name) { 4362 return this.map[name]; 4363 } 4364 }, { 4365 key: "remove", 4366 value: function(rule) { 4367 this.unregister(rule), this.index.splice(this.indexOf(rule), 1); 4368 } 4369 }, { 4370 key: "indexOf", 4371 value: function(rule) { 4372 return this.index.indexOf(rule); 4373 } 4374 }, { 4375 key: "process", 4376 value: function() { 4377 var plugins = this.options.jss.plugins; 4378 this.index.slice(0).forEach(plugins.onProcessRule, plugins); 4379 } 4380 }, { 4381 key: "register", 4382 value: function(rule, className) { 4383 this.map[rule.key] = rule, rule instanceof _StyleRule2.default && (this.map[rule.selector] = rule, 4384 className && (this.classes[rule.key] = className)); 4385 } 4386 }, { 4387 key: "unregister", 4388 value: function(rule) { 4389 delete this.map[rule.key], rule instanceof _StyleRule2.default && (delete this.map[rule.selector], 4390 delete this.classes[rule.key]); 4391 } 4392 }, { 4393 key: "update", 4394 value: function(name, data) { 4395 var _options2 = this.options, plugins = _options2.jss.plugins, sheet = _options2.sheet; 4396 if ("string" == typeof name) return void plugins.onUpdate(data, this.get(name), sheet); 4397 for (var index = 0; index < this.index.length; index++) plugins.onUpdate(name, this.index[index], sheet); 4398 } 4399 }, { 4400 key: "link", 4401 value: function(cssRules) { 4402 for (var map = this.options.sheet.renderer.getUnescapedKeysMap(this.index), i = 0; i < cssRules.length; i++) { 4403 var cssRule = cssRules[i], _key = this.options.sheet.renderer.getKey(cssRule); 4404 map[_key] && (_key = map[_key]); 4405 var rule = this.map[_key]; 4406 rule && (0, _linkRule2.default)(rule, cssRule); 4407 } 4408 } 4409 }, { 4410 key: "toString", 4411 value: function(options) { 4412 for (var str = "", sheet = this.options.sheet, link = !!sheet && sheet.options.link, index = 0; index < this.index.length; index++) { 4413 var rule = this.index[index], css = rule.toString(options); 4414 (css || link) && (str && (str += "\n"), str += css); 4415 } 4416 return str; 4417 } 4418 } ]), RuleList; 4419 }(); 4420 exports.default = RuleList; 4421 }, function(module, exports, __webpack_require__) { 4422 "use strict"; 4423 Object.defineProperty(exports, "__esModule", { 4424 value: !0 4425 }); 4426 var _extends = Object.assign || function(target) { 4427 for (var i = 1; i < arguments.length; i++) { 4428 var source = arguments[i]; 4429 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 4430 } 4431 return target; 4432 }, menuSkeletons = [ { 4433 id: "home", 4434 menu: { 4435 title: "Home", 4436 icon: "home" 4437 } 4438 }, { 4439 id: "chain", 4440 menu: { 4441 title: "Chain", 4442 icon: "link" 4443 } 4444 }, { 4445 id: "txpool", 4446 menu: { 4447 title: "TxPool", 4448 icon: "credit-card" 4449 } 4450 }, { 4451 id: "network", 4452 menu: { 4453 title: "Network", 4454 icon: "globe" 4455 } 4456 }, { 4457 id: "system", 4458 menu: { 4459 title: "System", 4460 icon: "tachometer" 4461 } 4462 }, { 4463 id: "logs", 4464 menu: { 4465 title: "Logs", 4466 icon: "list" 4467 } 4468 } ]; 4469 exports.MENU = new Map(menuSkeletons.map(function(_ref) { 4470 var id = _ref.id, menu = _ref.menu; 4471 return [ id, _extends({ 4472 id: id 4473 }, menu) ]; 4474 })), exports.DURATION = 200, exports.styles = { 4475 light: { 4476 color: "rgba(255, 255, 255, 0.54)" 4477 } 4478 }; 4479 }, function(module, __webpack_exports__, __webpack_require__) { 4480 "use strict"; 4481 function _objectWithoutProperties(obj, keys) { 4482 var target = {}; 4483 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 4484 return target; 4485 } 4486 function Surface(props) { 4487 var children = props.children, width = props.width, height = props.height, viewBox = props.viewBox, className = props.className, style = props.style, others = _objectWithoutProperties(props, [ "children", "width", "height", "viewBox", "className", "style" ]), svgView = viewBox || { 4488 width: width, 4489 height: height, 4490 x: 0, 4491 y: 0 4492 }, layerClass = __WEBPACK_IMPORTED_MODULE_2_classnames___default()("recharts-surface", className), attrs = Object(__WEBPACK_IMPORTED_MODULE_3__util_ReactUtils__.k)(others); 4493 return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("svg", _extends({}, attrs, { 4494 className: layerClass, 4495 width: width, 4496 height: height, 4497 style: style, 4498 viewBox: svgView.x + " " + svgView.y + " " + svgView.width + " " + svgView.height, 4499 version: "1.1" 4500 }), children); 4501 } 4502 var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__), __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__), __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(3), __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__), __WEBPACK_IMPORTED_MODULE_3__util_ReactUtils__ = __webpack_require__(4), _extends = Object.assign || function(target) { 4503 for (var i = 1; i < arguments.length; i++) { 4504 var source = arguments[i]; 4505 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 4506 } 4507 return target; 4508 }, propTypes = { 4509 width: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number.isRequired, 4510 height: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number.isRequired, 4511 viewBox: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape({ 4512 x: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4513 y: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4514 width: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4515 height: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number 4516 }), 4517 className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, 4518 style: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object, 4519 children: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node), __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node ]) 4520 }; 4521 Surface.propTypes = propTypes, __webpack_exports__.a = Surface; 4522 }, function(module, exports, __webpack_require__) { 4523 var root = __webpack_require__(31), Symbol = root.Symbol; 4524 module.exports = Symbol; 4525 }, function(module, __webpack_exports__, __webpack_require__) { 4526 "use strict"; 4527 var __WEBPACK_IMPORTED_MODULE_0__src_path__ = __webpack_require__(633); 4528 __webpack_require__.d(__webpack_exports__, "a", function() { 4529 return __WEBPACK_IMPORTED_MODULE_0__src_path__.a; 4530 }); 4531 }, function(module, __webpack_exports__, __webpack_require__) { 4532 "use strict"; 4533 function acos(x) { 4534 return x > 1 ? 0 : x < -1 ? pi : Math.acos(x); 4535 } 4536 function asin(x) { 4537 return x >= 1 ? halfPi : x <= -1 ? -halfPi : Math.asin(x); 4538 } 4539 __webpack_require__.d(__webpack_exports__, "a", function() { 4540 return abs; 4541 }), __webpack_require__.d(__webpack_exports__, "d", function() { 4542 return atan2; 4543 }), __webpack_require__.d(__webpack_exports__, "e", function() { 4544 return cos; 4545 }), __webpack_require__.d(__webpack_exports__, "h", function() { 4546 return max; 4547 }), __webpack_require__.d(__webpack_exports__, "i", function() { 4548 return min; 4549 }), __webpack_require__.d(__webpack_exports__, "k", function() { 4550 return sin; 4551 }), __webpack_require__.d(__webpack_exports__, "l", function() { 4552 return sqrt; 4553 }), __webpack_require__.d(__webpack_exports__, "f", function() { 4554 return epsilon; 4555 }), __webpack_require__.d(__webpack_exports__, "j", function() { 4556 return pi; 4557 }), __webpack_require__.d(__webpack_exports__, "g", function() { 4558 return halfPi; 4559 }), __webpack_require__.d(__webpack_exports__, "m", function() { 4560 return tau; 4561 }), __webpack_exports__.b = acos, __webpack_exports__.c = asin; 4562 var abs = Math.abs, atan2 = Math.atan2, cos = Math.cos, max = Math.max, min = Math.min, sin = Math.sin, sqrt = Math.sqrt, epsilon = 1e-12, pi = Math.PI, halfPi = pi / 2, tau = 2 * pi; 4563 }, function(module, __webpack_exports__, __webpack_require__) { 4564 "use strict"; 4565 __webpack_exports__.a = function(series, order) { 4566 if ((n = series.length) > 1) for (var j, s0, n, i = 1, s1 = series[order[0]], m = s1.length; i < n; ++i) for (s0 = s1, 4567 s1 = series[order[i]], j = 0; j < m; ++j) s1[j][1] += s1[j][0] = isNaN(s0[j][1]) ? s0[j][0] : s0[j][1]; 4568 }; 4569 }, function(module, __webpack_exports__, __webpack_require__) { 4570 "use strict"; 4571 __webpack_exports__.a = function(series) { 4572 for (var n = series.length, o = new Array(n); --n >= 0; ) o[n] = n; 4573 return o; 4574 }; 4575 }, function(module, __webpack_exports__, __webpack_require__) { 4576 "use strict"; 4577 function Cell() { 4578 return null; 4579 } 4580 var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_1__util_ReactUtils__ = (__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__), 4581 __webpack_require__(4)), _extends = Object.assign || function(target) { 4582 for (var i = 1; i < arguments.length; i++) { 4583 var source = arguments[i]; 4584 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 4585 } 4586 return target; 4587 }; 4588 Cell.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_1__util_ReactUtils__.c), 4589 Cell.displayName = "Cell", __webpack_exports__.a = Cell; 4590 }, function(module, exports, __webpack_require__) { 4591 function baseIteratee(value) { 4592 return "function" == typeof value ? value : null == value ? identity : "object" == typeof value ? isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value) : property(value); 4593 } 4594 var baseMatches = __webpack_require__(815), baseMatchesProperty = __webpack_require__(818), identity = __webpack_require__(68), isArray = __webpack_require__(13), property = __webpack_require__(822); 4595 module.exports = baseIteratee; 4596 }, function(module, __webpack_exports__, __webpack_require__) { 4597 "use strict"; 4598 __webpack_exports__.a = function(x) { 4599 return null === x ? NaN : +x; 4600 }; 4601 }, function(module, __webpack_exports__, __webpack_require__) { 4602 "use strict"; 4603 function linearish(scale) { 4604 var domain = scale.domain; 4605 return scale.ticks = function(count) { 4606 var d = domain(); 4607 return Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__.h)(d[0], d[d.length - 1], null == count ? 10 : count); 4608 }, scale.tickFormat = function(count, specifier) { 4609 return Object(__WEBPACK_IMPORTED_MODULE_3__tickFormat__.a)(domain(), count, specifier); 4610 }, scale.nice = function(count) { 4611 null == count && (count = 10); 4612 var step, d = domain(), i0 = 0, i1 = d.length - 1, start = d[i0], stop = d[i1]; 4613 return stop < start && (step = start, start = stop, stop = step, step = i0, i0 = i1, 4614 i1 = step), step = Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__.f)(start, stop, count), 4615 step > 0 ? (start = Math.floor(start / step) * step, stop = Math.ceil(stop / step) * step, 4616 step = Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__.f)(start, stop, count)) : step < 0 && (start = Math.ceil(start * step) / step, 4617 stop = Math.floor(stop * step) / step, step = Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__.f)(start, stop, count)), 4618 step > 0 ? (d[i0] = Math.floor(start / step) * step, d[i1] = Math.ceil(stop / step) * step, 4619 domain(d)) : step < 0 && (d[i0] = Math.ceil(start * step) / step, d[i1] = Math.floor(stop * step) / step, 4620 domain(d)), scale; 4621 }, scale; 4622 } 4623 function linear() { 4624 var scale = Object(__WEBPACK_IMPORTED_MODULE_2__continuous__.b)(__WEBPACK_IMPORTED_MODULE_2__continuous__.c, __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__.c); 4625 return scale.copy = function() { 4626 return Object(__WEBPACK_IMPORTED_MODULE_2__continuous__.a)(scale, linear()); 4627 }, linearish(scale); 4628 } 4629 __webpack_exports__.b = linearish, __webpack_exports__.a = linear; 4630 var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(37), __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__ = __webpack_require__(92), __WEBPACK_IMPORTED_MODULE_2__continuous__ = __webpack_require__(137), __WEBPACK_IMPORTED_MODULE_3__tickFormat__ = __webpack_require__(883); 4631 }, function(module, __webpack_exports__, __webpack_require__) { 4632 "use strict"; 4633 var __WEBPACK_IMPORTED_MODULE_0__src_value__ = __webpack_require__(206); 4634 __webpack_require__.d(__webpack_exports__, "a", function() { 4635 return __WEBPACK_IMPORTED_MODULE_0__src_value__.a; 4636 }); 4637 var __WEBPACK_IMPORTED_MODULE_5__src_number__ = (__webpack_require__(349), __webpack_require__(209), 4638 __webpack_require__(347), __webpack_require__(350), __webpack_require__(136)); 4639 __webpack_require__.d(__webpack_exports__, "c", function() { 4640 return __WEBPACK_IMPORTED_MODULE_5__src_number__.a; 4641 }); 4642 var __WEBPACK_IMPORTED_MODULE_7__src_round__ = (__webpack_require__(351), __webpack_require__(873)); 4643 __webpack_require__.d(__webpack_exports__, "d", function() { 4644 return __WEBPACK_IMPORTED_MODULE_7__src_round__.a; 4645 }); 4646 var __WEBPACK_IMPORTED_MODULE_15__src_cubehelix__ = (__webpack_require__(352), __webpack_require__(874), 4647 __webpack_require__(877), __webpack_require__(346), __webpack_require__(878), __webpack_require__(879), 4648 __webpack_require__(880), __webpack_require__(881)); 4649 __webpack_require__.d(__webpack_exports__, "b", function() { 4650 return __WEBPACK_IMPORTED_MODULE_15__src_cubehelix__.a; 4651 }); 4652 __webpack_require__(882); 4653 }, function(module, __webpack_exports__, __webpack_require__) { 4654 "use strict"; 4655 function linear(a, d) { 4656 return function(t) { 4657 return a + t * d; 4658 }; 4659 } 4660 function exponential(a, b, y) { 4661 return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function(t) { 4662 return Math.pow(a + t * b, y); 4663 }; 4664 } 4665 function hue(a, b) { 4666 var d = b - a; 4667 return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : Object(__WEBPACK_IMPORTED_MODULE_0__constant__.a)(isNaN(a) ? b : a); 4668 } 4669 function gamma(y) { 4670 return 1 == (y = +y) ? nogamma : function(a, b) { 4671 return b - a ? exponential(a, b, y) : Object(__WEBPACK_IMPORTED_MODULE_0__constant__.a)(isNaN(a) ? b : a); 4672 }; 4673 } 4674 function nogamma(a, b) { 4675 var d = b - a; 4676 return d ? linear(a, d) : Object(__WEBPACK_IMPORTED_MODULE_0__constant__.a)(isNaN(a) ? b : a); 4677 } 4678 __webpack_exports__.c = hue, __webpack_exports__.b = gamma, __webpack_exports__.a = nogamma; 4679 var __WEBPACK_IMPORTED_MODULE_0__constant__ = __webpack_require__(348); 4680 }, function(module, __webpack_exports__, __webpack_require__) { 4681 "use strict"; 4682 __webpack_exports__.a = function(s) { 4683 return s.match(/.{6}/g).map(function(x) { 4684 return "#" + x; 4685 }); 4686 }; 4687 }, function(module, __webpack_exports__, __webpack_require__) { 4688 "use strict"; 4689 function _objectWithoutProperties(obj, keys) { 4690 var target = {}; 4691 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 4692 return target; 4693 } 4694 function _classCallCheck(instance, Constructor) { 4695 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 4696 } 4697 function _possibleConstructorReturn(self, call) { 4698 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 4699 return !call || "object" != typeof call && "function" != typeof call ? self : call; 4700 } 4701 function _inherits(subClass, superClass) { 4702 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 4703 subClass.prototype = Object.create(superClass && superClass.prototype, { 4704 constructor: { 4705 value: subClass, 4706 enumerable: !1, 4707 writable: !0, 4708 configurable: !0 4709 } 4710 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 4711 } 4712 var _class, _temp, __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__), __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__), __WEBPACK_IMPORTED_MODULE_2__container_Layer__ = __webpack_require__(14), __WEBPACK_IMPORTED_MODULE_3__util_ReactUtils__ = __webpack_require__(4), _extends = Object.assign || function(target) { 4713 for (var i = 1; i < arguments.length; i++) { 4714 var source = arguments[i]; 4715 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 4716 } 4717 return target; 4718 }, _createClass = function() { 4719 function defineProperties(target, props) { 4720 for (var i = 0; i < props.length; i++) { 4721 var descriptor = props[i]; 4722 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 4723 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 4724 } 4725 } 4726 return function(Constructor, protoProps, staticProps) { 4727 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 4728 Constructor; 4729 }; 4730 }(), ErrorBar = (_temp = _class = function(_Component) { 4731 function ErrorBar() { 4732 return _classCallCheck(this, ErrorBar), _possibleConstructorReturn(this, (ErrorBar.__proto__ || Object.getPrototypeOf(ErrorBar)).apply(this, arguments)); 4733 } 4734 return _inherits(ErrorBar, _Component), _createClass(ErrorBar, [ { 4735 key: "renderErrorBars", 4736 value: function() { 4737 var _props = this.props, offset = _props.offset, layout = _props.layout, width = _props.width, dataKey = _props.dataKey, data = _props.data, dataPointFormatter = _props.dataPointFormatter, xAxis = _props.xAxis, yAxis = _props.yAxis, others = _objectWithoutProperties(_props, [ "offset", "layout", "width", "dataKey", "data", "dataPointFormatter", "xAxis", "yAxis" ]), props = Object(__WEBPACK_IMPORTED_MODULE_3__util_ReactUtils__.k)(others); 4738 return data.map(function(entry, i) { 4739 var _dataPointFormatter = dataPointFormatter(entry, dataKey), x = _dataPointFormatter.x, y = _dataPointFormatter.y, value = _dataPointFormatter.value, errorVal = _dataPointFormatter.errorVal; 4740 if (!errorVal) return null; 4741 var xMid = void 0, yMid = void 0, xMin = void 0, yMin = void 0, xMax = void 0, yMax = void 0, scale = void 0, coordsTop = void 0, coordsMid = void 0, coordsBot = void 0, lowBound = void 0, highBound = void 0; 4742 return Array.isArray(errorVal) ? (lowBound = errorVal[0], highBound = errorVal[1]) : (lowBound = errorVal, 4743 highBound = errorVal), "vertical" === layout ? (scale = xAxis.scale, xMid = value, 4744 yMid = y + offset, xMin = scale(xMid - lowBound), yMin = yMid + width, xMax = scale(xMid + highBound), 4745 yMax = yMid - width, coordsTop = { 4746 x1: xMax, 4747 y1: yMin, 4748 x2: xMax, 4749 y2: yMax 4750 }, coordsMid = { 4751 x1: xMin, 4752 y1: yMid, 4753 x2: xMax, 4754 y2: yMid 4755 }, coordsBot = { 4756 x1: xMin, 4757 y1: yMin, 4758 x2: xMin, 4759 y2: yMax 4760 }) : "horizontal" === layout && (scale = yAxis.scale, xMid = x + offset, yMid = value, 4761 xMin = xMid - width, xMax = xMid + width, yMin = scale(yMid - lowBound), yMax = scale(yMid + highBound), 4762 coordsTop = { 4763 x1: xMin, 4764 y1: yMax, 4765 x2: xMax, 4766 y2: yMax 4767 }, coordsMid = { 4768 x1: xMid, 4769 y1: yMin, 4770 x2: xMid, 4771 y2: yMax 4772 }, coordsBot = { 4773 x1: xMin, 4774 y1: yMin, 4775 x2: xMax, 4776 y2: yMin 4777 }), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__container_Layer__.a, _extends({ 4778 className: "recharts-errorBar", 4779 key: i 4780 }, props), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("line", coordsTop), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("line", coordsMid), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("line", coordsBot)); 4781 }); 4782 } 4783 }, { 4784 key: "render", 4785 value: function() { 4786 return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__container_Layer__.a, { 4787 className: "recharts-errorBars" 4788 }, this.renderErrorBars()); 4789 } 4790 } ]), ErrorBar; 4791 }(__WEBPACK_IMPORTED_MODULE_0_react__.Component), _class.propTypes = { 4792 dataKey: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func ]).isRequired, 4793 data: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.array, 4794 xAxis: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object, 4795 yAxis: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object, 4796 layout: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, 4797 dataPointFormatter: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, 4798 stroke: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, 4799 strokeWidth: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4800 width: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4801 offset: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number 4802 }, _class.defaultProps = { 4803 stroke: "black", 4804 strokeWidth: 1.5, 4805 width: 5, 4806 offset: 0, 4807 layout: "horizontal" 4808 }, _temp); 4809 __webpack_exports__.a = ErrorBar; 4810 }, function(module, __webpack_exports__, __webpack_require__) { 4811 "use strict"; 4812 function _defineProperty(obj, key, value) { 4813 return key in obj ? Object.defineProperty(obj, key, { 4814 value: value, 4815 enumerable: !0, 4816 configurable: !0, 4817 writable: !0 4818 }) : obj[key] = value, obj; 4819 } 4820 __webpack_require__.d(__webpack_exports__, "a", function() { 4821 return formatAxisMap; 4822 }); 4823 var __WEBPACK_IMPORTED_MODULE_0__ChartUtils__ = __webpack_require__(16), _extends = Object.assign || function(target) { 4824 for (var i = 1; i < arguments.length; i++) { 4825 var source = arguments[i]; 4826 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 4827 } 4828 return target; 4829 }, formatAxisMap = function(props, axisMap, offset, axisType, chartName) { 4830 var width = props.width, height = props.height, layout = props.layout, ids = Object.keys(axisMap), steps = { 4831 left: offset.left, 4832 leftMirror: offset.left, 4833 right: width - offset.right, 4834 rightMirror: width - offset.right, 4835 top: offset.top, 4836 topMirror: offset.top, 4837 bottom: height - offset.bottom, 4838 bottomMirror: height - offset.bottom 4839 }; 4840 return ids.reduce(function(result, id) { 4841 var axis = axisMap[id], orientation = axis.orientation, domain = axis.domain, _axis$padding = axis.padding, padding = void 0 === _axis$padding ? {} : _axis$padding, mirror = axis.mirror, reversed = axis.reversed, offsetKey = orientation + (mirror ? "Mirror" : ""), range = void 0, x = void 0, y = void 0, needSpace = void 0; 4842 range = "xAxis" === axisType ? [ offset.left + (padding.left || 0), offset.left + offset.width - (padding.right || 0) ] : "yAxis" === axisType ? "horizontal" === layout ? [ offset.top + offset.height - (padding.bottom || 0), offset.top + (padding.top || 0) ] : [ offset.top + (padding.top || 0), offset.top + offset.height - (padding.bottom || 0) ] : axis.range, 4843 reversed && (range = [ range[1], range[0] ]); 4844 var _parseScale = Object(__WEBPACK_IMPORTED_MODULE_0__ChartUtils__.A)(axis, chartName), scale = _parseScale.scale, realScaleType = _parseScale.realScaleType; 4845 scale.domain(domain).range(range), Object(__WEBPACK_IMPORTED_MODULE_0__ChartUtils__.c)(scale); 4846 var ticks = Object(__WEBPACK_IMPORTED_MODULE_0__ChartUtils__.v)(scale, _extends({}, axis, { 4847 realScaleType: realScaleType 4848 })); 4849 "xAxis" === axisType ? (needSpace = "top" === orientation && !mirror || "bottom" === orientation && mirror, 4850 x = offset.left, y = steps[offsetKey] - needSpace * axis.height) : "yAxis" === axisType && (needSpace = "left" === orientation && !mirror || "right" === orientation && mirror, 4851 x = steps[offsetKey] - needSpace * axis.width, y = offset.top); 4852 var finalAxis = _extends({}, axis, ticks, { 4853 realScaleType: realScaleType, 4854 x: x, 4855 y: y, 4856 scale: scale, 4857 width: "xAxis" === axisType ? offset.width : axis.width, 4858 height: "yAxis" === axisType ? offset.height : axis.height 4859 }); 4860 return finalAxis.bandSize = Object(__WEBPACK_IMPORTED_MODULE_0__ChartUtils__.g)(finalAxis, ticks), 4861 axis.hide || "xAxis" !== axisType ? axis.hide || (steps[offsetKey] += (needSpace ? -1 : 1) * finalAxis.width) : steps[offsetKey] += (needSpace ? -1 : 1) * finalAxis.height, 4862 _extends({}, result, _defineProperty({}, id, finalAxis)); 4863 }, {}); 4864 }; 4865 }, function(module, exports, __webpack_require__) { 4866 "use strict"; 4867 (function(process) { 4868 var emptyObject = {}; 4869 "production" !== process.env.NODE_ENV && Object.freeze(emptyObject), module.exports = emptyObject; 4870 }).call(exports, __webpack_require__(2)); 4871 }, function(module, exports, __webpack_require__) { 4872 "use strict"; 4873 (function(process) { 4874 var emptyFunction = __webpack_require__(50), warning = emptyFunction; 4875 if ("production" !== process.env.NODE_ENV) { 4876 var printWarning = function(format) { 4877 for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) args[_key - 1] = arguments[_key]; 4878 var argIndex = 0, message = "Warning: " + format.replace(/%s/g, function() { 4879 return args[argIndex++]; 4880 }); 4881 "undefined" != typeof console && console.error(message); 4882 try { 4883 throw new Error(message); 4884 } catch (x) {} 4885 }; 4886 warning = function(condition, format) { 4887 if (void 0 === format) throw new Error("` + ("`" + `warning(condition, format, ...args)`)) + ("`" + (` requires a warning message argument"); 4888 if (0 !== format.indexOf("Failed Composite propType: ") && !condition) { 4889 for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) args[_key2 - 2] = arguments[_key2]; 4890 printWarning.apply(void 0, [ format ].concat(args)); 4891 } 4892 }; 4893 } 4894 module.exports = warning; 4895 }).call(exports, __webpack_require__(2)); 4896 }, function(module, exports, __webpack_require__) { 4897 "use strict"; 4898 (function(process) { 4899 function checkDCE() { 4900 if ("undefined" != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE) { 4901 if ("production" !== process.env.NODE_ENV) throw new Error("^_^"); 4902 try { 4903 __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE); 4904 } catch (err) { 4905 console.error(err); 4906 } 4907 } 4908 } 4909 "production" === process.env.NODE_ENV ? (checkDCE(), module.exports = __webpack_require__(378)) : module.exports = __webpack_require__(381); 4910 }).call(exports, __webpack_require__(2)); 4911 }, function(module, exports, __webpack_require__) { 4912 "use strict"; 4913 function is(x, y) { 4914 return x === y ? 0 !== x || 0 !== y || 1 / x == 1 / y : x !== x && y !== y; 4915 } 4916 function shallowEqual(objA, objB) { 4917 if (is(objA, objB)) return !0; 4918 if ("object" != typeof objA || null === objA || "object" != typeof objB || null === objB) return !1; 4919 var keysA = Object.keys(objA), keysB = Object.keys(objB); 4920 if (keysA.length !== keysB.length) return !1; 4921 for (var i = 0; i < keysA.length; i++) if (!hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) return !1; 4922 return !0; 4923 } 4924 var hasOwnProperty = Object.prototype.hasOwnProperty; 4925 module.exports = shallowEqual; 4926 }, function(module, exports, __webpack_require__) { 4927 var toInteger = __webpack_require__(149), min = Math.min; 4928 module.exports = function(it) { 4929 return it > 0 ? min(toInteger(it), 9007199254740991) : 0; 4930 }; 4931 }, function(module, exports) { 4932 module.exports = !0; 4933 }, function(module, exports) { 4934 var id = 0, px = Math.random(); 4935 module.exports = function(key) { 4936 return "Symbol(".concat(void 0 === key ? "" : key, ")_", (++id + px).toString(36)); 4937 }; 4938 }, function(module, exports) { 4939 exports.f = {}.propertyIsEnumerable; 4940 }, function(module, exports, __webpack_require__) { 4941 "use strict"; 4942 function _interopRequireDefault(obj) { 4943 return obj && obj.__esModule ? obj : { 4944 default: obj 4945 }; 4946 } 4947 exports.__esModule = !0; 4948 var _iterator = __webpack_require__(396), _iterator2 = _interopRequireDefault(_iterator), _symbol = __webpack_require__(404), _symbol2 = _interopRequireDefault(_symbol), _typeof = "function" == typeof _symbol2.default && "symbol" == typeof _iterator2.default ? function(obj) { 4949 return typeof obj; 4950 } : function(obj) { 4951 return obj && "function" == typeof _symbol2.default && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; 4952 }; 4953 exports.default = "function" == typeof _symbol2.default && "symbol" === _typeof(_iterator2.default) ? function(obj) { 4954 return void 0 === obj ? "undefined" : _typeof(obj); 4955 } : function(obj) { 4956 return obj && "function" == typeof _symbol2.default && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : void 0 === obj ? "undefined" : _typeof(obj); 4957 }; 4958 }, function(module, exports, __webpack_require__) { 4959 var anObject = __webpack_require__(52), dPs = __webpack_require__(400), enumBugKeys = __webpack_require__(152), IE_PROTO = __webpack_require__(150)("IE_PROTO"), Empty = function() {}, createDict = function() { 4960 var iframeDocument, iframe = __webpack_require__(225)("iframe"), i = enumBugKeys.length; 4961 for (iframe.style.display = "none", __webpack_require__(401).appendChild(iframe), 4962 iframe.src = "javascript:", iframeDocument = iframe.contentWindow.document, iframeDocument.open(), 4963 iframeDocument.write("<script>document.F=Object<\/script>"), iframeDocument.close(), 4964 createDict = iframeDocument.F; i--; ) delete createDict.prototype[enumBugKeys[i]]; 4965 return createDict(); 4966 }; 4967 module.exports = Object.create || function(O, Properties) { 4968 var result; 4969 return null !== O ? (Empty.prototype = anObject(O), result = new Empty(), Empty.prototype = null, 4970 result[IE_PROTO] = O) : result = createDict(), void 0 === Properties ? result : dPs(result, Properties); 4971 }; 4972 }, function(module, exports, __webpack_require__) { 4973 var def = __webpack_require__(22).f, has = __webpack_require__(54), TAG = __webpack_require__(21)("toStringTag"); 4974 module.exports = function(it, tag, stat) { 4975 it && !has(it = stat ? it : it.prototype, TAG) && def(it, TAG, { 4976 configurable: !0, 4977 value: tag 4978 }); 4979 }; 4980 }, function(module, __webpack_exports__, __webpack_require__) { 4981 "use strict"; 4982 function isNonNullObject(value) { 4983 return !!value && "object" == typeof value; 4984 } 4985 function isSpecial(value) { 4986 var stringValue = Object.prototype.toString.call(value); 4987 return "[object RegExp]" === stringValue || "[object Date]" === stringValue || isReactElement(value); 4988 } 4989 function isReactElement(value) { 4990 return value.$$typeof === REACT_ELEMENT_TYPE; 4991 } 4992 function emptyTarget(val) { 4993 return Array.isArray(val) ? [] : {}; 4994 } 4995 function cloneUnlessOtherwiseSpecified(value, optionsArgument) { 4996 return optionsArgument && !1 === optionsArgument.clone || !isMergeableObject(value) ? value : deepmerge(emptyTarget(value), value, optionsArgument); 4997 } 4998 function defaultArrayMerge(target, source, optionsArgument) { 4999 return target.concat(source).map(function(element) { 5000 return cloneUnlessOtherwiseSpecified(element, optionsArgument); 5001 }); 5002 } 5003 function mergeObject(target, source, optionsArgument) { 5004 var destination = {}; 5005 return isMergeableObject(target) && Object.keys(target).forEach(function(key) { 5006 destination[key] = cloneUnlessOtherwiseSpecified(target[key], optionsArgument); 5007 }), Object.keys(source).forEach(function(key) { 5008 isMergeableObject(source[key]) && target[key] ? destination[key] = deepmerge(target[key], source[key], optionsArgument) : destination[key] = cloneUnlessOtherwiseSpecified(source[key], optionsArgument); 5009 }), destination; 5010 } 5011 function deepmerge(target, source, optionsArgument) { 5012 var sourceIsArray = Array.isArray(source), targetIsArray = Array.isArray(target), options = optionsArgument || { 5013 arrayMerge: defaultArrayMerge 5014 }; 5015 if (sourceIsArray === targetIsArray) return sourceIsArray ? (options.arrayMerge || defaultArrayMerge)(target, source, optionsArgument) : mergeObject(target, source, optionsArgument); 5016 return cloneUnlessOtherwiseSpecified(source, optionsArgument); 5017 } 5018 Object.defineProperty(__webpack_exports__, "__esModule", { 5019 value: !0 5020 }); 5021 var isMergeableObject = function(value) { 5022 return isNonNullObject(value) && !isSpecial(value); 5023 }, canUseSymbol = "function" == typeof Symbol && Symbol.for, REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for("react.element") : 60103; 5024 deepmerge.all = function(array, optionsArgument) { 5025 if (!Array.isArray(array)) throw new Error("first argument should be an array"); 5026 return array.reduce(function(prev, next) { 5027 return deepmerge(prev, next, optionsArgument); 5028 }, {}); 5029 }; 5030 var deepmerge_1 = deepmerge; 5031 __webpack_exports__.default = deepmerge_1; 5032 }, function(module, exports, __webpack_require__) { 5033 var ctx = __webpack_require__(51), call = __webpack_require__(239), isArrayIter = __webpack_require__(240), anObject = __webpack_require__(52), toLength = __webpack_require__(101), getIterFn = __webpack_require__(241), BREAK = {}, RETURN = {}, exports = module.exports = function(iterable, entries, fn, that, ITERATOR) { 5034 var length, step, iterator, result, iterFn = ITERATOR ? function() { 5035 return iterable; 5036 } : getIterFn(iterable), f = ctx(fn, that, entries ? 2 : 1), index = 0; 5037 if ("function" != typeof iterFn) throw TypeError(iterable + " is not iterable!"); 5038 if (isArrayIter(iterFn)) { 5039 for (length = toLength(iterable.length); length > index; index++) if ((result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index])) === BREAK || result === RETURN) return result; 5040 } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done; ) if ((result = call(iterator, f, step.value, entries)) === BREAK || result === RETURN) return result; 5041 }; 5042 exports.BREAK = BREAK, exports.RETURN = RETURN; 5043 }, function(module, exports, __webpack_require__) { 5044 "use strict"; 5045 function toCssValue(value) { 5046 var ignoreImportant = arguments.length > 1 && void 0 !== arguments[1] && arguments[1]; 5047 if (!Array.isArray(value)) return value; 5048 var cssValue = ""; 5049 if (Array.isArray(value[0])) for (var i = 0; i < value.length && "!important" !== value[i]; i++) cssValue && (cssValue += ", "), 5050 cssValue += join(value[i], " "); else cssValue = join(value, ", "); 5051 return ignoreImportant || "!important" !== value[value.length - 1] || (cssValue += " !important"), 5052 cssValue; 5053 } 5054 Object.defineProperty(exports, "__esModule", { 5055 value: !0 5056 }), exports.default = toCssValue; 5057 var join = function(value, by) { 5058 for (var result = "", i = 0; i < value.length && "!important" !== value[i]; i++) result && (result += by), 5059 result += value[i]; 5060 return result; 5061 }; 5062 }, function(module, exports, __webpack_require__) { 5063 "use strict"; 5064 function _interopRequireDefault(obj) { 5065 return obj && obj.__esModule ? obj : { 5066 default: obj 5067 }; 5068 } 5069 function createRule() { 5070 var name = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "unnamed", decl = arguments[1], options = arguments[2], jss = options.jss, declCopy = (0, 5071 _cloneStyle2.default)(decl), rule = jss.plugins.onCreateRule(name, declCopy, options); 5072 return rule || ("@" === name[0] && (0, _warning2.default)(!1, "[JSS] Unknown at-rule %s", name), 5073 new _StyleRule2.default(name, declCopy, options)); 5074 } 5075 Object.defineProperty(exports, "__esModule", { 5076 value: !0 5077 }), exports.default = createRule; 5078 var _warning = __webpack_require__(11), _warning2 = _interopRequireDefault(_warning), _StyleRule = __webpack_require__(66), _StyleRule2 = _interopRequireDefault(_StyleRule), _cloneStyle = __webpack_require__(463), _cloneStyle2 = _interopRequireDefault(_cloneStyle); 5079 }, function(module, __webpack_exports__, __webpack_require__) { 5080 "use strict"; 5081 Object.defineProperty(__webpack_exports__, "__esModule", { 5082 value: !0 5083 }), __webpack_require__.d(__webpack_exports__, "isBrowser", function() { 5084 return isBrowser; 5085 }); 5086 var _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj) { 5087 return typeof obj; 5088 } : function(obj) { 5089 return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 5090 }, isBrowser = "object" === ("undefined" == typeof window ? "undefined" : _typeof(window)) && "object" === ("undefined" == typeof document ? "undefined" : _typeof(document)) && 9 === document.nodeType; 5091 __webpack_exports__.default = isBrowser; 5092 }, function(module, exports, __webpack_require__) { 5093 "use strict"; 5094 function _interopRequireDefault(obj) { 5095 return obj && obj.__esModule ? obj : { 5096 default: obj 5097 }; 5098 } 5099 Object.defineProperty(exports, "__esModule", { 5100 value: !0 5101 }); 5102 var _Typography = __webpack_require__(528); 5103 Object.defineProperty(exports, "default", { 5104 enumerable: !0, 5105 get: function() { 5106 return _interopRequireDefault(_Typography).default; 5107 } 5108 }); 5109 }, function(module, exports) { 5110 module.exports = function(exec) { 5111 try { 5112 return !!exec(); 5113 } catch (e) { 5114 return !0; 5115 } 5116 }; 5117 }, function(module, exports, __webpack_require__) { 5118 var getNative = __webpack_require__(57), nativeCreate = getNative(Object, "create"); 5119 module.exports = nativeCreate; 5120 }, function(module, exports, __webpack_require__) { 5121 function ListCache(entries) { 5122 var index = -1, length = null == entries ? 0 : entries.length; 5123 for (this.clear(); ++index < length; ) { 5124 var entry = entries[index]; 5125 this.set(entry[0], entry[1]); 5126 } 5127 } 5128 var listCacheClear = __webpack_require__(619), listCacheDelete = __webpack_require__(620), listCacheGet = __webpack_require__(621), listCacheHas = __webpack_require__(622), listCacheSet = __webpack_require__(623); 5129 ListCache.prototype.clear = listCacheClear, ListCache.prototype.delete = listCacheDelete, 5130 ListCache.prototype.get = listCacheGet, ListCache.prototype.has = listCacheHas, 5131 ListCache.prototype.set = listCacheSet, module.exports = ListCache; 5132 }, function(module, exports, __webpack_require__) { 5133 function assocIndexOf(array, key) { 5134 for (var length = array.length; length--; ) if (eq(array[length][0], key)) return length; 5135 return -1; 5136 } 5137 var eq = __webpack_require__(177); 5138 module.exports = assocIndexOf; 5139 }, function(module, exports, __webpack_require__) { 5140 function getMapData(map, key) { 5141 var data = map.__data__; 5142 return isKeyable(key) ? data["string" == typeof key ? "string" : "hash"] : data.map; 5143 } 5144 var isKeyable = __webpack_require__(625); 5145 module.exports = getMapData; 5146 }, function(module, exports, __webpack_require__) { 5147 function toKey(value) { 5148 if ("string" == typeof value || isSymbol(value)) return value; 5149 var result = value + ""; 5150 return "0" == result && 1 / value == -INFINITY ? "-0" : result; 5151 } 5152 var isSymbol = __webpack_require__(67), INFINITY = 1 / 0; 5153 module.exports = toKey; 5154 }, function(module, exports, __webpack_require__) { 5155 function isNaN(value) { 5156 return isNumber(value) && value != +value; 5157 } 5158 var isNumber = __webpack_require__(272); 5159 module.exports = isNaN; 5160 }, function(module, __webpack_exports__, __webpack_require__) { 5161 "use strict"; 5162 function Linear(context) { 5163 this._context = context; 5164 } 5165 Linear.prototype = { 5166 areaStart: function() { 5167 this._line = 0; 5168 }, 5169 areaEnd: function() { 5170 this._line = NaN; 5171 }, 5172 lineStart: function() { 5173 this._point = 0; 5174 }, 5175 lineEnd: function() { 5176 (this._line || 0 !== this._line && 1 === this._point) && this._context.closePath(), 5177 this._line = 1 - this._line; 5178 }, 5179 point: function(x, y) { 5180 switch (x = +x, y = +y, this._point) { 5181 case 0: 5182 this._point = 1, this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); 5183 break; 5184 5185 case 1: 5186 this._point = 2; 5187 5188 default: 5189 this._context.lineTo(x, y); 5190 } 5191 } 5192 }, __webpack_exports__.a = function(context) { 5193 return new Linear(context); 5194 }; 5195 }, function(module, __webpack_exports__, __webpack_require__) { 5196 "use strict"; 5197 __webpack_exports__.a = function() {}; 5198 }, function(module, __webpack_exports__, __webpack_require__) { 5199 "use strict"; 5200 function point(that, x, y) { 5201 that._context.bezierCurveTo((2 * that._x0 + that._x1) / 3, (2 * that._y0 + that._y1) / 3, (that._x0 + 2 * that._x1) / 3, (that._y0 + 2 * that._y1) / 3, (that._x0 + 4 * that._x1 + x) / 6, (that._y0 + 4 * that._y1 + y) / 6); 5202 } 5203 function Basis(context) { 5204 this._context = context; 5205 } 5206 __webpack_exports__.c = point, __webpack_exports__.a = Basis, Basis.prototype = { 5207 areaStart: function() { 5208 this._line = 0; 5209 }, 5210 areaEnd: function() { 5211 this._line = NaN; 5212 }, 5213 lineStart: function() { 5214 this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0; 5215 }, 5216 lineEnd: function() { 5217 switch (this._point) { 5218 case 3: 5219 point(this, this._x1, this._y1); 5220 5221 case 2: 5222 this._context.lineTo(this._x1, this._y1); 5223 } 5224 (this._line || 0 !== this._line && 1 === this._point) && this._context.closePath(), 5225 this._line = 1 - this._line; 5226 }, 5227 point: function(x, y) { 5228 switch (x = +x, y = +y, this._point) { 5229 case 0: 5230 this._point = 1, this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); 5231 break; 5232 5233 case 1: 5234 this._point = 2; 5235 break; 5236 5237 case 2: 5238 this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6); 5239 5240 default: 5241 point(this, x, y); 5242 } 5243 this._x0 = this._x1, this._x1 = x, this._y0 = this._y1, this._y1 = y; 5244 } 5245 }, __webpack_exports__.b = function(context) { 5246 return new Basis(context); 5247 }; 5248 }, function(module, __webpack_exports__, __webpack_require__) { 5249 "use strict"; 5250 function point(that, x, y) { 5251 that._context.bezierCurveTo(that._x1 + that._k * (that._x2 - that._x0), that._y1 + that._k * (that._y2 - that._y0), that._x2 + that._k * (that._x1 - x), that._y2 + that._k * (that._y1 - y), that._x2, that._y2); 5252 } 5253 function Cardinal(context, tension) { 5254 this._context = context, this._k = (1 - tension) / 6; 5255 } 5256 __webpack_exports__.b = point, __webpack_exports__.a = Cardinal, Cardinal.prototype = { 5257 areaStart: function() { 5258 this._line = 0; 5259 }, 5260 areaEnd: function() { 5261 this._line = NaN; 5262 }, 5263 lineStart: function() { 5264 this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0; 5265 }, 5266 lineEnd: function() { 5267 switch (this._point) { 5268 case 2: 5269 this._context.lineTo(this._x2, this._y2); 5270 break; 5271 5272 case 3: 5273 point(this, this._x1, this._y1); 5274 } 5275 (this._line || 0 !== this._line && 1 === this._point) && this._context.closePath(), 5276 this._line = 1 - this._line; 5277 }, 5278 point: function(x, y) { 5279 switch (x = +x, y = +y, this._point) { 5280 case 0: 5281 this._point = 1, this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); 5282 break; 5283 5284 case 1: 5285 this._point = 2, this._x1 = x, this._y1 = y; 5286 break; 5287 5288 case 2: 5289 this._point = 3; 5290 5291 default: 5292 point(this, x, y); 5293 } 5294 this._x0 = this._x1, this._x1 = this._x2, this._x2 = x, this._y0 = this._y1, this._y1 = this._y2, 5295 this._y2 = y; 5296 } 5297 }; 5298 !function custom(tension) { 5299 function cardinal(context) { 5300 return new Cardinal(context, tension); 5301 } 5302 return cardinal.tension = function(tension) { 5303 return custom(+tension); 5304 }, cardinal; 5305 }(0); 5306 }, function(module, __webpack_exports__, __webpack_require__) { 5307 "use strict"; 5308 function _classCallCheck(instance, Constructor) { 5309 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 5310 } 5311 function _possibleConstructorReturn(self, call) { 5312 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 5313 return !call || "object" != typeof call && "function" != typeof call ? self : call; 5314 } 5315 function _inherits(subClass, superClass) { 5316 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 5317 subClass.prototype = Object.create(superClass && superClass.prototype, { 5318 constructor: { 5319 value: subClass, 5320 enumerable: !1, 5321 writable: !0, 5322 configurable: !0 5323 } 5324 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 5325 } 5326 var _class, _class2, _temp2, __WEBPACK_IMPORTED_MODULE_0_lodash_isNil__ = __webpack_require__(20), __WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isNil__), __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction__ = __webpack_require__(8), __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isFunction__), __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__), __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__), __WEBPACK_IMPORTED_MODULE_4_react_smooth__ = __webpack_require__(33), __WEBPACK_IMPORTED_MODULE_5__DefaultTooltipContent__ = (__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react_smooth__), 5327 __webpack_require__(765)), __WEBPACK_IMPORTED_MODULE_6__util_ReactUtils__ = __webpack_require__(4), __WEBPACK_IMPORTED_MODULE_7__util_DataUtils__ = __webpack_require__(9), __WEBPACK_IMPORTED_MODULE_8__util_PureRender__ = __webpack_require__(5), _extends = Object.assign || function(target) { 5328 for (var i = 1; i < arguments.length; i++) { 5329 var source = arguments[i]; 5330 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 5331 } 5332 return target; 5333 }, _createClass = function() { 5334 function defineProperties(target, props) { 5335 for (var i = 0; i < props.length; i++) { 5336 var descriptor = props[i]; 5337 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 5338 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 5339 } 5340 } 5341 return function(Constructor, protoProps, staticProps) { 5342 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 5343 Constructor; 5344 }; 5345 }(), propTypes = { 5346 content: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.element, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func ]), 5347 viewBox: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.shape({ 5348 x: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 5349 y: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 5350 width: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 5351 height: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number 5352 }), 5353 active: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool, 5354 separator: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string, 5355 formatter: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, 5356 offset: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 5357 itemStyle: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object, 5358 labelStyle: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object, 5359 wrapperStyle: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object, 5360 cursor: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.element, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object ]), 5361 coordinate: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.shape({ 5362 x: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 5363 y: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number 5364 }), 5365 position: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.shape({ 5366 x: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 5367 y: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number 5368 }), 5369 label: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.any, 5370 payload: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.shape({ 5371 name: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.any, 5372 value: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.array ]), 5373 unit: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.any 5374 })), 5375 isAnimationActive: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool, 5376 animationDuration: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 5377 animationEasing: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf([ "ease", "ease-in", "ease-out", "ease-in-out", "linear" ]), 5378 itemSorter: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, 5379 filterNull: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool, 5380 useTranslate3d: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool 5381 }, defaultProps = { 5382 active: !1, 5383 offset: 10, 5384 viewBox: { 5385 x1: 0, 5386 x2: 0, 5387 y1: 0, 5388 y2: 0 5389 }, 5390 coordinate: { 5391 x: 0, 5392 y: 0 5393 }, 5394 cursorStyle: {}, 5395 separator: " : ", 5396 wrapperStyle: {}, 5397 itemStyle: {}, 5398 labelStyle: {}, 5399 cursor: !0, 5400 isAnimationActive: !Object(__WEBPACK_IMPORTED_MODULE_6__util_ReactUtils__.n)(), 5401 animationEasing: "ease", 5402 animationDuration: 400, 5403 itemSorter: function() { 5404 return -1; 5405 }, 5406 filterNull: !0, 5407 useTranslate3d: !1 5408 }, renderContent = function(content, props) { 5409 return __WEBPACK_IMPORTED_MODULE_2_react___default.a.isValidElement(content) ? __WEBPACK_IMPORTED_MODULE_2_react___default.a.cloneElement(content, props) : __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(content) ? content(props) : __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__DefaultTooltipContent__.a, props); 5410 }, Tooltip = Object(__WEBPACK_IMPORTED_MODULE_8__util_PureRender__.a)((_temp2 = _class2 = function(_Component) { 5411 function Tooltip() { 5412 var _ref, _temp, _this, _ret; 5413 _classCallCheck(this, Tooltip); 5414 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 5415 return _temp = _this = _possibleConstructorReturn(this, (_ref = Tooltip.__proto__ || Object.getPrototypeOf(Tooltip)).call.apply(_ref, [ this ].concat(args))), 5416 _this.state = { 5417 boxWidth: -1, 5418 boxHeight: -1 5419 }, _ret = _temp, _possibleConstructorReturn(_this, _ret); 5420 } 5421 return _inherits(Tooltip, _Component), _createClass(Tooltip, [ { 5422 key: "componentDidMount", 5423 value: function() { 5424 this.updateBBox(); 5425 } 5426 }, { 5427 key: "componentDidUpdate", 5428 value: function() { 5429 this.updateBBox(); 5430 } 5431 }, { 5432 key: "updateBBox", 5433 value: function() { 5434 var _state = this.state, boxWidth = _state.boxWidth, boxHeight = _state.boxHeight; 5435 if (this.wrapperNode && this.wrapperNode.getBoundingClientRect) { 5436 var box = this.wrapperNode.getBoundingClientRect(); 5437 (Math.abs(box.width - boxWidth) > 1 || Math.abs(box.height - boxHeight) > 1) && this.setState({ 5438 boxWidth: box.width, 5439 boxHeight: box.height 5440 }); 5441 } else -1 === boxWidth && -1 === boxHeight || this.setState({ 5442 boxWidth: -1, 5443 boxHeight: -1 5444 }); 5445 } 5446 }, { 5447 key: "render", 5448 value: function() { 5449 var _this2 = this, _props = this.props, payload = _props.payload, isAnimationActive = _props.isAnimationActive, animationDuration = _props.animationDuration, animationEasing = _props.animationEasing, filterNull = _props.filterNull, finalPayload = filterNull && payload && payload.length ? payload.filter(function(entry) { 5450 return !__WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default()(entry.value); 5451 }) : payload, hasPayload = finalPayload && finalPayload.length, _props2 = this.props, content = _props2.content, viewBox = _props2.viewBox, coordinate = _props2.coordinate, position = _props2.position, active = _props2.active, offset = _props2.offset, wrapperStyle = _props2.wrapperStyle, outerStyle = _extends({ 5452 pointerEvents: "none", 5453 visibility: active && hasPayload ? "visible" : "hidden", 5454 position: "absolute", 5455 top: 0 5456 }, wrapperStyle), translateX = void 0, translateY = void 0; 5457 if (position && Object(__WEBPACK_IMPORTED_MODULE_7__util_DataUtils__.h)(position.x) && Object(__WEBPACK_IMPORTED_MODULE_7__util_DataUtils__.h)(position.y)) translateX = position.x, 5458 translateY = position.y; else { 5459 var _state2 = this.state, boxWidth = _state2.boxWidth, boxHeight = _state2.boxHeight; 5460 boxWidth > 0 && boxHeight > 0 && coordinate ? (translateX = position && Object(__WEBPACK_IMPORTED_MODULE_7__util_DataUtils__.h)(position.x) ? position.x : Math.max(coordinate.x + boxWidth + offset > viewBox.x + viewBox.width ? coordinate.x - boxWidth - offset : coordinate.x + offset, viewBox.x), 5461 translateY = position && Object(__WEBPACK_IMPORTED_MODULE_7__util_DataUtils__.h)(position.y) ? position.y : Math.max(coordinate.y + boxHeight + offset > viewBox.y + viewBox.height ? coordinate.y - boxHeight - offset : coordinate.y + offset, viewBox.y)) : outerStyle.visibility = "hidden"; 5462 } 5463 return outerStyle = _extends({}, outerStyle, Object(__WEBPACK_IMPORTED_MODULE_4_react_smooth__.translateStyle)({ 5464 transform: this.props.useTranslate3d ? "translate3d(" + translateX + "px, " + translateY + "px, 0)" : "translate(" + translateX + "px, " + translateY + "px)" 5465 })), isAnimationActive && active && (outerStyle = _extends({}, outerStyle, Object(__WEBPACK_IMPORTED_MODULE_4_react_smooth__.translateStyle)({ 5466 transition: "transform " + animationDuration + "ms " + animationEasing 5467 }))), __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("div", { 5468 className: "recharts-tooltip-wrapper", 5469 style: outerStyle, 5470 ref: function(node) { 5471 _this2.wrapperNode = node; 5472 } 5473 }, renderContent(content, _extends({}, this.props, { 5474 payload: finalPayload 5475 }))); 5476 } 5477 } ]), Tooltip; 5478 }(__WEBPACK_IMPORTED_MODULE_2_react__.Component), _class2.displayName = "Tooltip", 5479 _class2.propTypes = propTypes, _class2.defaultProps = defaultProps, _class = _temp2)) || _class; 5480 __webpack_exports__.a = Tooltip; 5481 }, function(module, exports, __webpack_require__) { 5482 function ListCache(entries) { 5483 var index = -1, length = null == entries ? 0 : entries.length; 5484 for (this.clear(); ++index < length; ) { 5485 var entry = entries[index]; 5486 this.set(entry[0], entry[1]); 5487 } 5488 } 5489 var listCacheClear = __webpack_require__(658), listCacheDelete = __webpack_require__(659), listCacheGet = __webpack_require__(660), listCacheHas = __webpack_require__(661), listCacheSet = __webpack_require__(662); 5490 ListCache.prototype.clear = listCacheClear, ListCache.prototype.delete = listCacheDelete, 5491 ListCache.prototype.get = listCacheGet, ListCache.prototype.has = listCacheHas, 5492 ListCache.prototype.set = listCacheSet, module.exports = ListCache; 5493 }, function(module, exports, __webpack_require__) { 5494 function assocIndexOf(array, key) { 5495 for (var length = array.length; length--; ) if (eq(array[length][0], key)) return length; 5496 return -1; 5497 } 5498 var eq = __webpack_require__(290); 5499 module.exports = assocIndexOf; 5500 }, function(module, exports, __webpack_require__) { 5501 var root = __webpack_require__(36), Symbol = root.Symbol; 5502 module.exports = Symbol; 5503 }, function(module, exports, __webpack_require__) { 5504 var getNative = __webpack_require__(59), nativeCreate = getNative(Object, "create"); 5505 module.exports = nativeCreate; 5506 }, function(module, exports, __webpack_require__) { 5507 function getMapData(map, key) { 5508 var data = map.__data__; 5509 return isKeyable(key) ? data["string" == typeof key ? "string" : "hash"] : data.map; 5510 } 5511 var isKeyable = __webpack_require__(682); 5512 module.exports = getMapData; 5513 }, function(module, exports) { 5514 module.exports = function(module) { 5515 return module.webpackPolyfill || (module.deprecate = function() {}, module.paths = [], 5516 module.children || (module.children = []), Object.defineProperty(module, "loaded", { 5517 enumerable: !0, 5518 get: function() { 5519 return module.l; 5520 } 5521 }), Object.defineProperty(module, "id", { 5522 enumerable: !0, 5523 get: function() { 5524 return module.i; 5525 } 5526 }), module.webpackPolyfill = 1), module; 5527 }; 5528 }, function(module, exports, __webpack_require__) { 5529 "use strict"; 5530 (function(process) { 5531 function _defineProperty(obj, key, value) { 5532 return key in obj ? Object.defineProperty(obj, key, { 5533 value: value, 5534 enumerable: !0, 5535 configurable: !0, 5536 writable: !0 5537 }) : obj[key] = value, obj; 5538 } 5539 Object.defineProperty(exports, "__esModule", { 5540 value: !0 5541 }), exports.warn = exports.getTransitionVal = exports.compose = exports.translateStyle = exports.mapObject = exports.debugf = exports.debug = exports.log = exports.generatePrefixStyle = exports.getDashCase = exports.identity = exports.getIntersectionKeys = void 0; 5542 var _intersection2 = __webpack_require__(719), _intersection3 = function(obj) { 5543 return obj && obj.__esModule ? obj : { 5544 default: obj 5545 }; 5546 }(_intersection2), _extends = Object.assign || function(target) { 5547 for (var i = 1; i < arguments.length; i++) { 5548 var source = arguments[i]; 5549 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 5550 } 5551 return target; 5552 }, PREFIX_LIST = [ "Webkit", "Moz", "O", "ms" ], IN_LINE_PREFIX_LIST = [ "-webkit-", "-moz-", "-o-", "-ms-" ], IN_COMPATIBLE_PROPERTY = [ "transform", "transformOrigin", "transition" ], identity = (exports.getIntersectionKeys = function(preObj, nextObj) { 5553 return (0, _intersection3.default)(Object.keys(preObj), Object.keys(nextObj)); 5554 }, exports.identity = function(param) { 5555 return param; 5556 }), getDashCase = exports.getDashCase = function(name) { 5557 return name.replace(/([A-Z])/g, function(v) { 5558 return "-" + v.toLowerCase(); 5559 }); 5560 }, generatePrefixStyle = exports.generatePrefixStyle = function(name, value) { 5561 if (-1 === IN_COMPATIBLE_PROPERTY.indexOf(name)) return _defineProperty({}, name, value); 5562 var isTransition = "transition" === name, camelName = name.replace(/(\w)/, function(v) { 5563 return v.toUpperCase(); 5564 }), styleVal = value; 5565 return PREFIX_LIST.reduce(function(result, property, i) { 5566 return isTransition && (styleVal = value.replace(/(transform|transform-origin)/gim, IN_LINE_PREFIX_LIST[i] + "$1")), 5567 _extends({}, result, _defineProperty({}, property + camelName, styleVal)); 5568 }, {}); 5569 }, log = exports.log = function() { 5570 var _console; 5571 (_console = console).log.apply(_console, arguments); 5572 }, isDev = (exports.debug = function(name) { 5573 return function(item) { 5574 return log(name, item), item; 5575 }; 5576 }, exports.debugf = function(tag, f) { 5577 return function() { 5578 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 5579 var res = f.apply(void 0, args), name = tag || f.name || "anonymous function", argNames = "(" + args.map(JSON.stringify).join(", ") + ")"; 5580 return log(name + ": " + argNames + " => " + JSON.stringify(res)), res; 5581 }; 5582 }, exports.mapObject = function(fn, obj) { 5583 return Object.keys(obj).reduce(function(res, key) { 5584 return _extends({}, res, _defineProperty({}, key, fn(key, obj[key]))); 5585 }, {}); 5586 }, exports.translateStyle = function(style) { 5587 return Object.keys(style).reduce(function(res, key) { 5588 return _extends({}, res, generatePrefixStyle(key, res[key])); 5589 }, style); 5590 }, exports.compose = function() { 5591 for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) args[_key2] = arguments[_key2]; 5592 if (!args.length) return identity; 5593 var fns = args.reverse(), firstFn = fns[0], tailsFn = fns.slice(1); 5594 return function() { 5595 return tailsFn.reduce(function(res, fn) { 5596 return fn(res); 5597 }, firstFn.apply(void 0, arguments)); 5598 }; 5599 }, exports.getTransitionVal = function(props, duration, easing) { 5600 return props.map(function(prop) { 5601 return getDashCase(prop) + " " + duration + "ms " + easing; 5602 }).join(","); 5603 }, "production" !== process.env.NODE_ENV); 5604 exports.warn = function(condition, format, a, b, c, d, e, f) { 5605 if (isDev && "undefined" != typeof console && console.warn && (void 0 === format && console.warn("LogUtils requires an error message argument"), 5606 !condition)) if (void 0 === format) console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."); else { 5607 var args = [ a, b, c, d, e, f ], argIndex = 0; 5608 console.warn(format.replace(/%s/g, function() { 5609 return args[argIndex++]; 5610 })); 5611 } 5612 }; 5613 }).call(exports, __webpack_require__(2)); 5614 }, function(module, exports, __webpack_require__) { 5615 function toKey(value) { 5616 if ("string" == typeof value || isSymbol(value)) return value; 5617 var result = value + ""; 5618 return "0" == result && 1 / value == -INFINITY ? "-0" : result; 5619 } 5620 var isSymbol = __webpack_require__(197), INFINITY = 1 / 0; 5621 module.exports = toKey; 5622 }, function(module, exports, __webpack_require__) { 5623 function isArrayLike(value) { 5624 return null != value && isLength(value.length) && !isFunction(value); 5625 } 5626 var isFunction = __webpack_require__(8), isLength = __webpack_require__(203); 5627 module.exports = isArrayLike; 5628 }, function(module, exports, __webpack_require__) { 5629 function baseExtremum(array, iteratee, comparator) { 5630 for (var index = -1, length = array.length; ++index < length; ) { 5631 var value = array[index], current = iteratee(value); 5632 if (null != current && (void 0 === computed ? current === current && !isSymbol(current) : comparator(current, computed))) var computed = current, result = value; 5633 } 5634 return result; 5635 } 5636 var isSymbol = __webpack_require__(67); 5637 module.exports = baseExtremum; 5638 }, function(module, __webpack_exports__, __webpack_require__) { 5639 "use strict"; 5640 __webpack_exports__.a = function(a, b) { 5641 return a = +a, b -= a, function(t) { 5642 return a + b * t; 5643 }; 5644 }; 5645 }, function(module, __webpack_exports__, __webpack_require__) { 5646 "use strict"; 5647 function deinterpolateLinear(a, b) { 5648 return (b -= a = +a) ? function(x) { 5649 return (x - a) / b; 5650 } : Object(__WEBPACK_IMPORTED_MODULE_3__constant__.a)(b); 5651 } 5652 function deinterpolateClamp(deinterpolate) { 5653 return function(a, b) { 5654 var d = deinterpolate(a = +a, b = +b); 5655 return function(x) { 5656 return x <= a ? 0 : x >= b ? 1 : d(x); 5657 }; 5658 }; 5659 } 5660 function reinterpolateClamp(reinterpolate) { 5661 return function(a, b) { 5662 var r = reinterpolate(a = +a, b = +b); 5663 return function(t) { 5664 return t <= 0 ? a : t >= 1 ? b : r(t); 5665 }; 5666 }; 5667 } 5668 function bimap(domain, range, deinterpolate, reinterpolate) { 5669 var d0 = domain[0], d1 = domain[1], r0 = range[0], r1 = range[1]; 5670 return d1 < d0 ? (d0 = deinterpolate(d1, d0), r0 = reinterpolate(r1, r0)) : (d0 = deinterpolate(d0, d1), 5671 r0 = reinterpolate(r0, r1)), function(x) { 5672 return r0(d0(x)); 5673 }; 5674 } 5675 function polymap(domain, range, deinterpolate, reinterpolate) { 5676 var j = Math.min(domain.length, range.length) - 1, d = new Array(j), r = new Array(j), i = -1; 5677 for (domain[j] < domain[0] && (domain = domain.slice().reverse(), range = range.slice().reverse()); ++i < j; ) d[i] = deinterpolate(domain[i], domain[i + 1]), 5678 r[i] = reinterpolate(range[i], range[i + 1]); 5679 return function(x) { 5680 var i = Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__.b)(domain, x, 1, j) - 1; 5681 return r[i](d[i](x)); 5682 }; 5683 } 5684 function copy(source, target) { 5685 return target.domain(source.domain()).range(source.range()).interpolate(source.interpolate()).clamp(source.clamp()); 5686 } 5687 function continuous(deinterpolate, reinterpolate) { 5688 function rescale() { 5689 return piecewise = Math.min(domain.length, range.length) > 2 ? polymap : bimap, 5690 output = input = null, scale; 5691 } 5692 function scale(x) { 5693 return (output || (output = piecewise(domain, range, clamp ? deinterpolateClamp(deinterpolate) : deinterpolate, interpolate)))(+x); 5694 } 5695 var piecewise, output, input, domain = unit, range = unit, interpolate = __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__.a, clamp = !1; 5696 return scale.invert = function(y) { 5697 return (input || (input = piecewise(range, domain, deinterpolateLinear, clamp ? reinterpolateClamp(reinterpolate) : reinterpolate)))(+y); 5698 }, scale.domain = function(_) { 5699 return arguments.length ? (domain = __WEBPACK_IMPORTED_MODULE_2__array__.a.call(_, __WEBPACK_IMPORTED_MODULE_4__number__.a), 5700 rescale()) : domain.slice(); 5701 }, scale.range = function(_) { 5702 return arguments.length ? (range = __WEBPACK_IMPORTED_MODULE_2__array__.b.call(_), 5703 rescale()) : range.slice(); 5704 }, scale.rangeRound = function(_) { 5705 return range = __WEBPACK_IMPORTED_MODULE_2__array__.b.call(_), interpolate = __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__.d, 5706 rescale(); 5707 }, scale.clamp = function(_) { 5708 return arguments.length ? (clamp = !!_, rescale()) : clamp; 5709 }, scale.interpolate = function(_) { 5710 return arguments.length ? (interpolate = _, rescale()) : interpolate; 5711 }, rescale(); 5712 } 5713 __webpack_exports__.c = deinterpolateLinear, __webpack_exports__.a = copy, __webpack_exports__.b = continuous; 5714 var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(37), __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__ = __webpack_require__(92), __WEBPACK_IMPORTED_MODULE_2__array__ = __webpack_require__(62), __WEBPACK_IMPORTED_MODULE_3__constant__ = __webpack_require__(210), __WEBPACK_IMPORTED_MODULE_4__number__ = __webpack_require__(353), unit = [ 0, 1 ]; 5715 }, function(module, __webpack_exports__, __webpack_require__) { 5716 "use strict"; 5717 var __WEBPACK_IMPORTED_MODULE_0__formatDecimal__ = __webpack_require__(211); 5718 __webpack_exports__.a = function(x) { 5719 return x = Object(__WEBPACK_IMPORTED_MODULE_0__formatDecimal__.a)(Math.abs(x)), 5720 x ? x[1] : NaN; 5721 }; 5722 }, function(module, __webpack_exports__, __webpack_require__) { 5723 "use strict"; 5724 function _classCallCheck(instance, Constructor) { 5725 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 5726 } 5727 function _possibleConstructorReturn(self, call) { 5728 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 5729 return !call || "object" != typeof call && "function" != typeof call ? self : call; 5730 } 5731 function _inherits(subClass, superClass) { 5732 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 5733 subClass.prototype = Object.create(superClass && superClass.prototype, { 5734 constructor: { 5735 value: subClass, 5736 enumerable: !1, 5737 writable: !0, 5738 configurable: !0 5739 } 5740 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 5741 } 5742 var _class, _class2, _temp, __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__), __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__), __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(3), __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__), __WEBPACK_IMPORTED_MODULE_3__util_PureRender__ = __webpack_require__(5), __WEBPACK_IMPORTED_MODULE_4__util_ReactUtils__ = __webpack_require__(4), __WEBPACK_IMPORTED_MODULE_5__util_PolarUtils__ = __webpack_require__(23), __WEBPACK_IMPORTED_MODULE_6__util_DataUtils__ = __webpack_require__(9), _extends = Object.assign || function(target) { 5743 for (var i = 1; i < arguments.length; i++) { 5744 var source = arguments[i]; 5745 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 5746 } 5747 return target; 5748 }, _createClass = function() { 5749 function defineProperties(target, props) { 5750 for (var i = 0; i < props.length; i++) { 5751 var descriptor = props[i]; 5752 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 5753 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 5754 } 5755 } 5756 return function(Constructor, protoProps, staticProps) { 5757 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 5758 Constructor; 5759 }; 5760 }(), getDeltaAngle = function(startAngle, endAngle) { 5761 return Object(__WEBPACK_IMPORTED_MODULE_6__util_DataUtils__.j)(endAngle - startAngle) * Math.min(Math.abs(endAngle - startAngle), 359.999); 5762 }, getTangentCircle = function(_ref) { 5763 var cx = _ref.cx, cy = _ref.cy, radius = _ref.radius, angle = _ref.angle, sign = _ref.sign, isExternal = _ref.isExternal, cornerRadius = _ref.cornerRadius, centerRadius = cornerRadius * (isExternal ? 1 : -1) + radius, theta = Math.asin(cornerRadius / centerRadius) / __WEBPACK_IMPORTED_MODULE_5__util_PolarUtils__.a, centerAngle = angle + sign * theta; 5764 return { 5765 center: Object(__WEBPACK_IMPORTED_MODULE_5__util_PolarUtils__.e)(cx, cy, centerRadius, centerAngle), 5766 circleTangency: Object(__WEBPACK_IMPORTED_MODULE_5__util_PolarUtils__.e)(cx, cy, radius, centerAngle), 5767 lineTangency: Object(__WEBPACK_IMPORTED_MODULE_5__util_PolarUtils__.e)(cx, cy, centerRadius * Math.cos(theta * __WEBPACK_IMPORTED_MODULE_5__util_PolarUtils__.a), angle), 5768 theta: theta 5769 }; 5770 }, getSectorPath = function(_ref2) { 5771 var cx = _ref2.cx, cy = _ref2.cy, innerRadius = _ref2.innerRadius, outerRadius = _ref2.outerRadius, startAngle = _ref2.startAngle, endAngle = _ref2.endAngle, angle = getDeltaAngle(startAngle, endAngle), tempEndAngle = startAngle + angle, outerStartPoint = Object(__WEBPACK_IMPORTED_MODULE_5__util_PolarUtils__.e)(cx, cy, outerRadius, startAngle), outerEndPoint = Object(__WEBPACK_IMPORTED_MODULE_5__util_PolarUtils__.e)(cx, cy, outerRadius, tempEndAngle), path = "M " + outerStartPoint.x + "," + outerStartPoint.y + "\n A " + outerRadius + "," + outerRadius + ",0,\n " + +(Math.abs(angle) > 180) + "," + +(startAngle > tempEndAngle) + ",\n " + outerEndPoint.x + "," + outerEndPoint.y + "\n "; 5772 if (innerRadius > 0) { 5773 var innerStartPoint = Object(__WEBPACK_IMPORTED_MODULE_5__util_PolarUtils__.e)(cx, cy, innerRadius, startAngle), innerEndPoint = Object(__WEBPACK_IMPORTED_MODULE_5__util_PolarUtils__.e)(cx, cy, innerRadius, tempEndAngle); 5774 path += "L " + innerEndPoint.x + "," + innerEndPoint.y + "\n A " + innerRadius + "," + innerRadius + ",0,\n " + +(Math.abs(angle) > 180) + "," + +(startAngle <= tempEndAngle) + ",\n " + innerStartPoint.x + "," + innerStartPoint.y + " Z"; 5775 } else path += "L " + cx + "," + cy + " Z"; 5776 return path; 5777 }, getSectorWithCorner = function(_ref3) { 5778 var cx = _ref3.cx, cy = _ref3.cy, innerRadius = _ref3.innerRadius, outerRadius = _ref3.outerRadius, cornerRadius = _ref3.cornerRadius, startAngle = _ref3.startAngle, endAngle = _ref3.endAngle, sign = Object(__WEBPACK_IMPORTED_MODULE_6__util_DataUtils__.j)(endAngle - startAngle), _getTangentCircle = getTangentCircle({ 5779 cx: cx, 5780 cy: cy, 5781 radius: outerRadius, 5782 angle: startAngle, 5783 sign: sign, 5784 cornerRadius: cornerRadius 5785 }), soct = _getTangentCircle.circleTangency, solt = _getTangentCircle.lineTangency, sot = _getTangentCircle.theta, _getTangentCircle2 = getTangentCircle({ 5786 cx: cx, 5787 cy: cy, 5788 radius: outerRadius, 5789 angle: endAngle, 5790 sign: -sign, 5791 cornerRadius: cornerRadius 5792 }), eoct = _getTangentCircle2.circleTangency, eolt = _getTangentCircle2.lineTangency, eot = _getTangentCircle2.theta, outerArcAngle = Math.abs(startAngle - endAngle) - sot - eot; 5793 if (outerArcAngle < 0) return getSectorPath({ 5794 cx: cx, 5795 cy: cy, 5796 innerRadius: innerRadius, 5797 outerRadius: outerRadius, 5798 startAngle: startAngle, 5799 endAngle: endAngle 5800 }); 5801 var path = "M " + solt.x + "," + solt.y + "\n A" + cornerRadius + "," + cornerRadius + ",0,0," + +(sign < 0) + "," + soct.x + "," + soct.y + "\n A" + outerRadius + "," + outerRadius + ",0," + +(outerArcAngle > 180) + "," + +(sign < 0) + "," + eoct.x + "," + eoct.y + "\n A" + cornerRadius + "," + cornerRadius + ",0,0," + +(sign < 0) + "," + eolt.x + "," + eolt.y + "\n "; 5802 if (innerRadius > 0) { 5803 var _getTangentCircle3 = getTangentCircle({ 5804 cx: cx, 5805 cy: cy, 5806 radius: innerRadius, 5807 angle: startAngle, 5808 sign: sign, 5809 isExternal: !0, 5810 cornerRadius: cornerRadius 5811 }), sict = _getTangentCircle3.circleTangency, silt = _getTangentCircle3.lineTangency, sit = _getTangentCircle3.theta, _getTangentCircle4 = getTangentCircle({ 5812 cx: cx, 5813 cy: cy, 5814 radius: innerRadius, 5815 angle: endAngle, 5816 sign: -sign, 5817 isExternal: !0, 5818 cornerRadius: cornerRadius 5819 }), eict = _getTangentCircle4.circleTangency, eilt = _getTangentCircle4.lineTangency, eit = _getTangentCircle4.theta, innerArcAngle = Math.abs(startAngle - endAngle) - sit - eit; 5820 if (innerArcAngle < 0) return path + "L" + cx + "," + cy + "Z"; 5821 path += "L" + eilt.x + "," + eilt.y + "\n A" + cornerRadius + "," + cornerRadius + ",0,0," + +(sign < 0) + "," + eict.x + "," + eict.y + "\n A" + innerRadius + "," + innerRadius + ",0," + +(innerArcAngle > 180) + "," + +(sign > 0) + "," + sict.x + "," + sict.y + "\n A" + cornerRadius + "," + cornerRadius + ",0,0," + +(sign < 0) + "," + silt.x + "," + silt.y + "Z"; 5822 } else path += "L" + cx + "," + cy + "Z"; 5823 return path; 5824 }, Sector = Object(__WEBPACK_IMPORTED_MODULE_3__util_PureRender__.a)((_temp = _class2 = function(_Component) { 5825 function Sector() { 5826 return _classCallCheck(this, Sector), _possibleConstructorReturn(this, (Sector.__proto__ || Object.getPrototypeOf(Sector)).apply(this, arguments)); 5827 } 5828 return _inherits(Sector, _Component), _createClass(Sector, [ { 5829 key: "render", 5830 value: function() { 5831 var _props = this.props, cx = _props.cx, cy = _props.cy, innerRadius = _props.innerRadius, outerRadius = _props.outerRadius, cornerRadius = _props.cornerRadius, startAngle = _props.startAngle, endAngle = _props.endAngle, className = _props.className; 5832 if (outerRadius < innerRadius || startAngle === endAngle) return null; 5833 var layerClass = __WEBPACK_IMPORTED_MODULE_2_classnames___default()("recharts-sector", className), deltaRadius = outerRadius - innerRadius, cr = Object(__WEBPACK_IMPORTED_MODULE_6__util_DataUtils__.d)(cornerRadius, deltaRadius, 0, !0), path = void 0; 5834 return path = cr > 0 && Math.abs(startAngle - endAngle) < 360 ? getSectorWithCorner({ 5835 cx: cx, 5836 cy: cy, 5837 innerRadius: innerRadius, 5838 outerRadius: outerRadius, 5839 cornerRadius: Math.min(cr, deltaRadius / 2), 5840 startAngle: startAngle, 5841 endAngle: endAngle 5842 }) : getSectorPath({ 5843 cx: cx, 5844 cy: cy, 5845 innerRadius: innerRadius, 5846 outerRadius: outerRadius, 5847 startAngle: startAngle, 5848 endAngle: endAngle 5849 }), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("path", _extends({}, Object(__WEBPACK_IMPORTED_MODULE_4__util_ReactUtils__.k)(this.props), Object(__WEBPACK_IMPORTED_MODULE_4__util_ReactUtils__.e)(this.props), { 5850 className: layerClass, 5851 d: path 5852 })); 5853 } 5854 } ]), Sector; 5855 }(__WEBPACK_IMPORTED_MODULE_0_react__.Component), _class2.displayName = "Sector", 5856 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_4__util_ReactUtils__.c, { 5857 className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, 5858 cx: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 5859 cy: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 5860 innerRadius: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 5861 outerRadius: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 5862 startAngle: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 5863 endAngle: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 5864 cornerRadius: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string ]) 5865 }), _class2.defaultProps = { 5866 cx: 0, 5867 cy: 0, 5868 innerRadius: 0, 5869 outerRadius: 0, 5870 startAngle: 0, 5871 endAngle: 0, 5872 cornerRadius: 0 5873 }, _class = _temp)) || _class; 5874 __webpack_exports__.a = Sector; 5875 }, function(module, __webpack_exports__, __webpack_require__) { 5876 "use strict"; 5877 function _objectWithoutProperties(obj, keys) { 5878 var target = {}; 5879 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 5880 return target; 5881 } 5882 function _classCallCheck(instance, Constructor) { 5883 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 5884 } 5885 function _possibleConstructorReturn(self, call) { 5886 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 5887 return !call || "object" != typeof call && "function" != typeof call ? self : call; 5888 } 5889 function _inherits(subClass, superClass) { 5890 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 5891 subClass.prototype = Object.create(superClass && superClass.prototype, { 5892 constructor: { 5893 value: subClass, 5894 enumerable: !1, 5895 writable: !0, 5896 configurable: !0 5897 } 5898 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 5899 } 5900 var _class, _class2, _temp, __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction__ = __webpack_require__(8), __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isFunction__), __WEBPACK_IMPORTED_MODULE_1_lodash_minBy__ = __webpack_require__(924), __WEBPACK_IMPORTED_MODULE_1_lodash_minBy___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_minBy__), __WEBPACK_IMPORTED_MODULE_2_lodash_maxBy__ = __webpack_require__(368), __WEBPACK_IMPORTED_MODULE_2_lodash_maxBy___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_lodash_maxBy__), __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__), __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__), __WEBPACK_IMPORTED_MODULE_5__util_PureRender__ = __webpack_require__(5), __WEBPACK_IMPORTED_MODULE_6__component_Text__ = __webpack_require__(61), __WEBPACK_IMPORTED_MODULE_7__component_Label__ = __webpack_require__(44), __WEBPACK_IMPORTED_MODULE_8__container_Layer__ = __webpack_require__(14), __WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__ = __webpack_require__(4), __WEBPACK_IMPORTED_MODULE_10__util_PolarUtils__ = __webpack_require__(23), _extends = Object.assign || function(target) { 5901 for (var i = 1; i < arguments.length; i++) { 5902 var source = arguments[i]; 5903 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 5904 } 5905 return target; 5906 }, _createClass = function() { 5907 function defineProperties(target, props) { 5908 for (var i = 0; i < props.length; i++) { 5909 var descriptor = props[i]; 5910 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 5911 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 5912 } 5913 } 5914 return function(Constructor, protoProps, staticProps) { 5915 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 5916 Constructor; 5917 }; 5918 }(), PolarRadiusAxis = Object(__WEBPACK_IMPORTED_MODULE_5__util_PureRender__.a)((_temp = _class2 = function(_Component) { 5919 function PolarRadiusAxis() { 5920 return _classCallCheck(this, PolarRadiusAxis), _possibleConstructorReturn(this, (PolarRadiusAxis.__proto__ || Object.getPrototypeOf(PolarRadiusAxis)).apply(this, arguments)); 5921 } 5922 return _inherits(PolarRadiusAxis, _Component), _createClass(PolarRadiusAxis, [ { 5923 key: "getTickValueCoord", 5924 value: function(_ref) { 5925 var coordinate = _ref.coordinate, _props = this.props, angle = _props.angle, cx = _props.cx, cy = _props.cy; 5926 return Object(__WEBPACK_IMPORTED_MODULE_10__util_PolarUtils__.e)(cx, cy, coordinate, angle); 5927 } 5928 }, { 5929 key: "getTickTextAnchor", 5930 value: function() { 5931 var orientation = this.props.orientation, textAnchor = void 0; 5932 switch (orientation) { 5933 case "left": 5934 textAnchor = "end"; 5935 break; 5936 5937 case "right": 5938 textAnchor = "start"; 5939 break; 5940 5941 default: 5942 textAnchor = "middle"; 5943 } 5944 return textAnchor; 5945 } 5946 }, { 5947 key: "getViewBox", 5948 value: function() { 5949 var _props2 = this.props, cx = _props2.cx, cy = _props2.cy, angle = _props2.angle, ticks = _props2.ticks, maxRadiusTick = __WEBPACK_IMPORTED_MODULE_2_lodash_maxBy___default()(ticks, function(entry) { 5950 return entry.coordinate || 0; 5951 }); 5952 return { 5953 cx: cx, 5954 cy: cy, 5955 startAngle: angle, 5956 endAngle: angle, 5957 innerRadius: __WEBPACK_IMPORTED_MODULE_1_lodash_minBy___default()(ticks, function(entry) { 5958 return entry.coordinate || 0; 5959 }).coordinate || 0, 5960 outerRadius: maxRadiusTick.coordinate || 0 5961 }; 5962 } 5963 }, { 5964 key: "renderAxisLine", 5965 value: function() { 5966 var _props3 = this.props, cx = _props3.cx, cy = _props3.cy, angle = _props3.angle, ticks = _props3.ticks, axisLine = _props3.axisLine, others = _objectWithoutProperties(_props3, [ "cx", "cy", "angle", "ticks", "axisLine" ]), extent = ticks.reduce(function(result, entry) { 5967 return [ Math.min(result[0], entry.coordinate), Math.max(result[1], entry.coordinate) ]; 5968 }, [ 1 / 0, -1 / 0 ]), point0 = Object(__WEBPACK_IMPORTED_MODULE_10__util_PolarUtils__.e)(cx, cy, extent[0], angle), point1 = Object(__WEBPACK_IMPORTED_MODULE_10__util_PolarUtils__.e)(cx, cy, extent[1], angle), props = _extends({}, Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.k)(others), { 5969 fill: "none" 5970 }, Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.k)(axisLine), { 5971 x1: point0.x, 5972 y1: point0.y, 5973 x2: point1.x, 5974 y2: point1.y 5975 }); 5976 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement("line", _extends({ 5977 className: "recharts-polar-radius-axis-line" 5978 }, props)); 5979 } 5980 }, { 5981 key: "renderTickItem", 5982 value: function(option, props, value) { 5983 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.isValidElement(option) ? __WEBPACK_IMPORTED_MODULE_3_react___default.a.cloneElement(option, props) : __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default()(option) ? option(props) : __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__component_Text__.a, _extends({}, props, { 5984 className: "recharts-polar-radius-axis-tick-value" 5985 }), value); 5986 } 5987 }, { 5988 key: "renderTicks", 5989 value: function() { 5990 var _this2 = this, _props4 = this.props, ticks = _props4.ticks, tick = _props4.tick, angle = _props4.angle, tickFormatter = _props4.tickFormatter, stroke = _props4.stroke, others = _objectWithoutProperties(_props4, [ "ticks", "tick", "angle", "tickFormatter", "stroke" ]), textAnchor = this.getTickTextAnchor(), axisProps = Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.k)(others), customTickProps = Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.k)(tick), items = ticks.map(function(entry, i) { 5991 var coord = _this2.getTickValueCoord(entry), tickProps = _extends({ 5992 textAnchor: textAnchor, 5993 transform: "rotate(" + (90 - angle) + ", " + coord.x + ", " + coord.y + ")" 5994 }, axisProps, { 5995 stroke: "none", 5996 fill: stroke 5997 }, customTickProps, { 5998 index: i 5999 }, coord, { 6000 payload: entry 6001 }); 6002 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, _extends({ 6003 className: "recharts-polar-radius-axis-tick", 6004 key: "tick-" + i 6005 }, Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.f)(_this2.props, entry, i)), _this2.renderTickItem(tick, tickProps, tickFormatter ? tickFormatter(entry.value) : entry.value)); 6006 }); 6007 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, { 6008 className: "recharts-polar-radius-axis-ticks" 6009 }, items); 6010 } 6011 }, { 6012 key: "render", 6013 value: function() { 6014 var _props5 = this.props, ticks = _props5.ticks, axisLine = _props5.axisLine, tick = _props5.tick; 6015 return ticks && ticks.length ? __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, { 6016 className: "recharts-polar-radius-axis" 6017 }, axisLine && this.renderAxisLine(), tick && this.renderTicks(), __WEBPACK_IMPORTED_MODULE_7__component_Label__.a.renderCallByParent(this.props, this.getViewBox())) : null; 6018 } 6019 } ]), PolarRadiusAxis; 6020 }(__WEBPACK_IMPORTED_MODULE_3_react__.Component), _class2.displayName = "PolarRadiusAxis", 6021 _class2.axisType = "radiusAxis", _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.c, __WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.a, { 6022 type: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf([ "number", "category" ]), 6023 cx: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 6024 cy: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 6025 hide: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool, 6026 radiusAxisId: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number ]), 6027 angle: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 6028 tickCount: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 6029 ticks: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.shape({ 6030 value: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.any, 6031 coordinate: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number 6032 })), 6033 orientation: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf([ "left", "right", "middle" ]), 6034 axisLine: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object ]), 6035 tick: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.element, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func ]), 6036 stroke: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, 6037 tickFormatter: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func, 6038 domain: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf([ "auto", "dataMin", "dataMax" ]) ])), 6039 scale: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf([ "auto", "linear", "pow", "sqrt", "log", "identity", "time", "band", "point", "ordinal", "quantile", "quantize", "utcTime", "sequential", "threshold" ]), __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func ]), 6040 allowDataOverflow: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool, 6041 allowDuplicatedCategory: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool 6042 }), _class2.defaultProps = { 6043 type: "number", 6044 radiusAxisId: 0, 6045 cx: 0, 6046 cy: 0, 6047 angle: 0, 6048 orientation: "right", 6049 stroke: "#ccc", 6050 axisLine: !0, 6051 tick: !0, 6052 tickCount: 5, 6053 domain: [ 0, "auto" ], 6054 allowDataOverflow: !1, 6055 scale: "auto", 6056 allowDuplicatedCategory: !0 6057 }, _class = _temp)) || _class; 6058 __webpack_exports__.a = PolarRadiusAxis; 6059 }, function(module, __webpack_exports__, __webpack_require__) { 6060 "use strict"; 6061 function _classCallCheck(instance, Constructor) { 6062 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 6063 } 6064 function _possibleConstructorReturn(self, call) { 6065 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 6066 return !call || "object" != typeof call && "function" != typeof call ? self : call; 6067 } 6068 function _inherits(subClass, superClass) { 6069 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 6070 subClass.prototype = Object.create(superClass && superClass.prototype, { 6071 constructor: { 6072 value: subClass, 6073 enumerable: !1, 6074 writable: !0, 6075 configurable: !0 6076 } 6077 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 6078 } 6079 var _class, _class2, _temp, __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction__ = __webpack_require__(8), __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isFunction__), __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__), __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__), __WEBPACK_IMPORTED_MODULE_3__util_PureRender__ = __webpack_require__(5), __WEBPACK_IMPORTED_MODULE_4__container_Layer__ = __webpack_require__(14), __WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__ = __webpack_require__(4), __WEBPACK_IMPORTED_MODULE_6__shape_Dot__ = __webpack_require__(63), __WEBPACK_IMPORTED_MODULE_7__shape_Polygon__ = __webpack_require__(214), __WEBPACK_IMPORTED_MODULE_8__component_Text__ = __webpack_require__(61), __WEBPACK_IMPORTED_MODULE_9__util_PolarUtils__ = __webpack_require__(23), _extends = Object.assign || function(target) { 6080 for (var i = 1; i < arguments.length; i++) { 6081 var source = arguments[i]; 6082 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 6083 } 6084 return target; 6085 }, _createClass = function() { 6086 function defineProperties(target, props) { 6087 for (var i = 0; i < props.length; i++) { 6088 var descriptor = props[i]; 6089 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 6090 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 6091 } 6092 } 6093 return function(Constructor, protoProps, staticProps) { 6094 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 6095 Constructor; 6096 }; 6097 }(), RADIAN = Math.PI / 180, PolarAngleAxis = Object(__WEBPACK_IMPORTED_MODULE_3__util_PureRender__.a)((_temp = _class2 = function(_Component) { 6098 function PolarAngleAxis() { 6099 return _classCallCheck(this, PolarAngleAxis), _possibleConstructorReturn(this, (PolarAngleAxis.__proto__ || Object.getPrototypeOf(PolarAngleAxis)).apply(this, arguments)); 6100 } 6101 return _inherits(PolarAngleAxis, _Component), _createClass(PolarAngleAxis, [ { 6102 key: "getTickLineCoord", 6103 value: function(data) { 6104 var _props = this.props, cx = _props.cx, cy = _props.cy, radius = _props.radius, orientation = _props.orientation, tickLine = _props.tickLine, tickLineSize = tickLine && tickLine.size || 8, p1 = Object(__WEBPACK_IMPORTED_MODULE_9__util_PolarUtils__.e)(cx, cy, radius, data.coordinate), p2 = Object(__WEBPACK_IMPORTED_MODULE_9__util_PolarUtils__.e)(cx, cy, radius + ("inner" === orientation ? -1 : 1) * tickLineSize, data.coordinate); 6105 return { 6106 x1: p1.x, 6107 y1: p1.y, 6108 x2: p2.x, 6109 y2: p2.y 6110 }; 6111 } 6112 }, { 6113 key: "getTickTextAnchor", 6114 value: function(data) { 6115 var orientation = this.props.orientation, cos = Math.cos(-data.coordinate * RADIAN); 6116 return cos > 1e-5 ? "outer" === orientation ? "start" : "end" : cos < -1e-5 ? "outer" === orientation ? "end" : "start" : "middle"; 6117 } 6118 }, { 6119 key: "renderAxisLine", 6120 value: function() { 6121 var _props2 = this.props, cx = _props2.cx, cy = _props2.cy, radius = _props2.radius, axisLine = _props2.axisLine, axisLineType = _props2.axisLineType, props = _extends({}, Object(__WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__.k)(this.props), { 6122 fill: "none" 6123 }, Object(__WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__.k)(axisLine)); 6124 if ("circle" === axisLineType) return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__shape_Dot__.a, _extends({ 6125 className: "recharts-polar-angle-axis-line" 6126 }, props, { 6127 cx: cx, 6128 cy: cy, 6129 r: radius 6130 })); 6131 var ticks = this.props.ticks, points = ticks.map(function(entry) { 6132 return Object(__WEBPACK_IMPORTED_MODULE_9__util_PolarUtils__.e)(cx, cy, radius, entry.coordinate); 6133 }); 6134 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__shape_Polygon__.a, _extends({ 6135 className: "recharts-polar-angle-axis-line" 6136 }, props, { 6137 points: points 6138 })); 6139 } 6140 }, { 6141 key: "renderTickItem", 6142 value: function(option, props, value) { 6143 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.isValidElement(option) ? __WEBPACK_IMPORTED_MODULE_1_react___default.a.cloneElement(option, props) : __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default()(option) ? option(props) : __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__component_Text__.a, _extends({}, props, { 6144 className: "recharts-polar-angle-axis-tick-value" 6145 }), value); 6146 } 6147 }, { 6148 key: "renderTicks", 6149 value: function() { 6150 var _this2 = this, _props3 = this.props, ticks = _props3.ticks, tick = _props3.tick, tickLine = _props3.tickLine, tickFormatter = _props3.tickFormatter, stroke = _props3.stroke, axisProps = Object(__WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__.k)(this.props), customTickProps = Object(__WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__.k)(tick), tickLineProps = _extends({}, axisProps, { 6151 fill: "none" 6152 }, Object(__WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__.k)(tickLine)), items = ticks.map(function(entry, i) { 6153 var lineCoord = _this2.getTickLineCoord(entry), textAnchor = _this2.getTickTextAnchor(entry), tickProps = _extends({ 6154 textAnchor: textAnchor 6155 }, axisProps, { 6156 stroke: "none", 6157 fill: stroke 6158 }, customTickProps, { 6159 index: i, 6160 payload: entry, 6161 x: lineCoord.x2, 6162 y: lineCoord.y2 6163 }); 6164 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__container_Layer__.a, _extends({ 6165 className: "recharts-polar-angle-axis-tick", 6166 key: "tick-" + i 6167 }, Object(__WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__.f)(_this2.props, entry, i)), tickLine && __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("line", _extends({ 6168 className: "recharts-polar-angle-axis-tick-line" 6169 }, tickLineProps, lineCoord)), tick && _this2.renderTickItem(tick, tickProps, tickFormatter ? tickFormatter(entry.value) : entry.value)); 6170 }); 6171 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__container_Layer__.a, { 6172 className: "recharts-polar-angle-axis-ticks" 6173 }, items); 6174 } 6175 }, { 6176 key: "render", 6177 value: function() { 6178 var _props4 = this.props, ticks = _props4.ticks, radius = _props4.radius, axisLine = _props4.axisLine; 6179 return radius <= 0 || !ticks || !ticks.length ? null : __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__container_Layer__.a, { 6180 className: "recharts-polar-angle-axis" 6181 }, axisLine && this.renderAxisLine(), this.renderTicks()); 6182 } 6183 } ]), PolarAngleAxis; 6184 }(__WEBPACK_IMPORTED_MODULE_1_react__.Component), _class2.displayName = "PolarAngleAxis", 6185 _class2.axisType = "angleAxis", _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__.c, __WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__.a, { 6186 type: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOf([ "number", "category" ]), 6187 angleAxisId: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number ]), 6188 dataKey: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func ]), 6189 cx: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 6190 cy: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 6191 radius: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string ]), 6192 hide: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, 6193 scale: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOf(__WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__.d), __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func ]), 6194 axisLine: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object ]), 6195 axisLineType: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOf([ "polygon", "circle" ]), 6196 tickLine: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object ]), 6197 tick: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.element ]), 6198 ticks: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.shape({ 6199 value: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.any, 6200 coordinate: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number 6201 })), 6202 stroke: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, 6203 orientation: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOf([ "inner", "outer" ]), 6204 tickFormatter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, 6205 allowDuplicatedCategory: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool 6206 }), _class2.defaultProps = { 6207 type: "category", 6208 angleAxisId: 0, 6209 scale: "auto", 6210 cx: 0, 6211 cy: 0, 6212 domain: [ 0, "auto" ], 6213 orientation: "outer", 6214 axisLine: !0, 6215 tickLine: !0, 6216 tick: !0, 6217 hide: !1, 6218 allowDuplicatedCategory: !0 6219 }, _class = _temp)) || _class; 6220 __webpack_exports__.a = PolarAngleAxis; 6221 }, function(module, __webpack_exports__, __webpack_require__) { 6222 "use strict"; 6223 function _classCallCheck(instance, Constructor) { 6224 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 6225 } 6226 function _possibleConstructorReturn(self, call) { 6227 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 6228 return !call || "object" != typeof call && "function" != typeof call ? self : call; 6229 } 6230 function _inherits(subClass, superClass) { 6231 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 6232 subClass.prototype = Object.create(superClass && superClass.prototype, { 6233 constructor: { 6234 value: subClass, 6235 enumerable: !1, 6236 writable: !0, 6237 configurable: !0 6238 } 6239 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 6240 } 6241 var _class, _class2, _temp, __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_1_prop_types__ = (__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__), 6242 __webpack_require__(1)), __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__), __WEBPACK_IMPORTED_MODULE_2__util_PureRender__ = __webpack_require__(5), _createClass = function() { 6243 function defineProperties(target, props) { 6244 for (var i = 0; i < props.length; i++) { 6245 var descriptor = props[i]; 6246 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 6247 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 6248 } 6249 } 6250 return function(Constructor, protoProps, staticProps) { 6251 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 6252 Constructor; 6253 }; 6254 }(), ZAxis = Object(__WEBPACK_IMPORTED_MODULE_2__util_PureRender__.a)((_temp = _class2 = function(_Component) { 6255 function ZAxis() { 6256 return _classCallCheck(this, ZAxis), _possibleConstructorReturn(this, (ZAxis.__proto__ || Object.getPrototypeOf(ZAxis)).apply(this, arguments)); 6257 } 6258 return _inherits(ZAxis, _Component), _createClass(ZAxis, [ { 6259 key: "render", 6260 value: function() { 6261 return null; 6262 } 6263 } ]), ZAxis; 6264 }(__WEBPACK_IMPORTED_MODULE_0_react__.Component), _class2.displayName = "ZAxis", 6265 _class2.propTypes = { 6266 type: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf([ "number", "category" ]), 6267 name: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number ]), 6268 unit: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number ]), 6269 zAxisId: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number ]), 6270 dataKey: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func ]), 6271 range: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number), 6272 scale: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf([ "auto", "linear", "pow", "sqrt", "log", "identity", "time", "band", "point", "ordinal", "quantile", "quantize", "utcTime", "sequential", "threshold" ]), __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func ]) 6273 }, _class2.defaultProps = { 6274 zAxisId: 0, 6275 range: [ 64, 64 ], 6276 scale: "auto", 6277 type: "number" 6278 }, _class = _temp)) || _class; 6279 __webpack_exports__.a = ZAxis; 6280 }, function(module, exports, __webpack_require__) { 6281 "use strict"; 6282 (function(process) { 6283 function checkPropTypes(typeSpecs, values, location, componentName, getStack) { 6284 if ("production" !== process.env.NODE_ENV) for (var typeSpecName in typeSpecs) if (typeSpecs.hasOwnProperty(typeSpecName)) { 6285 var error; 6286 try { 6287 invariant("function" == typeof typeSpecs[typeSpecName], "%s: %s type ` + "`"))) + ((`%s` + ("`" + ` is invalid; it must be a function, usually from the `)) + ("`" + (`prop-types` + "`"))))) + ((((` package, but received ` + ("`" + `%s`)) + ("`" + (`.", componentName || "React class", location, typeSpecName, typeof typeSpecs[typeSpecName]), 6288 error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); 6289 } catch (ex) { 6290 error = ex; 6291 } 6292 if (warning(!error || error instanceof Error, "%s: type specification of %s ` + "`"))) + ((`%s` + ("`" + ` is invalid; the type checker function must return `)) + ("`" + (`null` + "`")))) + (((` or an ` + ("`" + `Error`)) + ("`" + (` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error), 6293 error instanceof Error && !(error.message in loggedTypeFailures)) { 6294 loggedTypeFailures[error.message] = !0; 6295 var stack = getStack ? getStack() : ""; 6296 warning(!1, "Failed %s type: %s%s", location, error.message, null != stack ? stack : ""); 6297 } 6298 } 6299 } 6300 if ("production" !== process.env.NODE_ENV) var invariant = __webpack_require__(49), warning = __webpack_require__(98), ReactPropTypesSecret = __webpack_require__(144), loggedTypeFailures = {}; 6301 module.exports = checkPropTypes; 6302 }).call(exports, __webpack_require__(2)); 6303 }, function(module, exports, __webpack_require__) { 6304 "use strict"; 6305 module.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; 6306 }, function(module, exports, __webpack_require__) { 6307 var isObject = __webpack_require__(35); 6308 module.exports = function(it, S) { 6309 if (!isObject(it)) return it; 6310 var fn, val; 6311 if (S && "function" == typeof (fn = it.toString) && !isObject(val = fn.call(it))) return val; 6312 if ("function" == typeof (fn = it.valueOf) && !isObject(val = fn.call(it))) return val; 6313 if (!S && "function" == typeof (fn = it.toString) && !isObject(val = fn.call(it))) return val; 6314 throw TypeError("Can't convert object to primitive value"); 6315 }; 6316 }, function(module, exports, __webpack_require__) { 6317 var cof = __webpack_require__(147); 6318 module.exports = Object("z").propertyIsEnumerable(0) ? Object : function(it) { 6319 return "String" == cof(it) ? it.split("") : Object(it); 6320 }; 6321 }, function(module, exports) { 6322 var toString = {}.toString; 6323 module.exports = function(it) { 6324 return toString.call(it).slice(8, -1); 6325 }; 6326 }, function(module, exports) { 6327 module.exports = function(it) { 6328 if (void 0 == it) throw TypeError("Can't call method on " + it); 6329 return it; 6330 }; 6331 }, function(module, exports) { 6332 var ceil = Math.ceil, floor = Math.floor; 6333 module.exports = function(it) { 6334 return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); 6335 }; 6336 }, function(module, exports, __webpack_require__) { 6337 var shared = __webpack_require__(151)("keys"), uid = __webpack_require__(103); 6338 module.exports = function(key) { 6339 return shared[key] || (shared[key] = uid(key)); 6340 }; 6341 }, function(module, exports, __webpack_require__) { 6342 var core = __webpack_require__(17), global = __webpack_require__(24), store = global["__core-js_shared__"] || (global["__core-js_shared__"] = {}); 6343 (module.exports = function(key, value) { 6344 return store[key] || (store[key] = void 0 !== value ? value : {}); 6345 })("versions", []).push({ 6346 version: core.version, 6347 mode: __webpack_require__(102) ? "pure" : "global", 6348 copyright: "© 2018 Denis Pushkarev (zloirock.ru)" 6349 }); 6350 }, function(module, exports) { 6351 module.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","); 6352 }, function(module, exports) { 6353 exports.f = Object.getOwnPropertySymbols; 6354 }, function(module, exports, __webpack_require__) { 6355 module.exports = { 6356 default: __webpack_require__(392), 6357 __esModule: !0 6358 }; 6359 }, function(module, exports, __webpack_require__) { 6360 "use strict"; 6361 var $at = __webpack_require__(398)(!0); 6362 __webpack_require__(156)(String, "String", function(iterated) { 6363 this._t = String(iterated), this._i = 0; 6364 }, function() { 6365 var point, O = this._t, index = this._i; 6366 return index >= O.length ? { 6367 value: void 0, 6368 done: !0 6369 } : (point = $at(O, index), this._i += point.length, { 6370 value: point, 6371 done: !1 6372 }); 6373 }); 6374 }, function(module, exports, __webpack_require__) { 6375 "use strict"; 6376 var LIBRARY = __webpack_require__(102), $export = __webpack_require__(19), redefine = __webpack_require__(229), hide = __webpack_require__(39), Iterators = __webpack_require__(77), $iterCreate = __webpack_require__(399), setToStringTag = __webpack_require__(107), getPrototypeOf = __webpack_require__(227), ITERATOR = __webpack_require__(21)("iterator"), BUGGY = !([].keys && "next" in [].keys()), returnThis = function() { 6377 return this; 6378 }; 6379 module.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { 6380 $iterCreate(Constructor, NAME, next); 6381 var methods, key, IteratorPrototype, getMethod = function(kind) { 6382 if (!BUGGY && kind in proto) return proto[kind]; 6383 switch (kind) { 6384 case "keys": 6385 case "values": 6386 return function() { 6387 return new Constructor(this, kind); 6388 }; 6389 } 6390 return function() { 6391 return new Constructor(this, kind); 6392 }; 6393 }, TAG = NAME + " Iterator", DEF_VALUES = "values" == DEFAULT, VALUES_BUG = !1, proto = Base.prototype, $native = proto[ITERATOR] || proto["@@iterator"] || DEFAULT && proto[DEFAULT], $default = $native || getMethod(DEFAULT), $entries = DEFAULT ? DEF_VALUES ? getMethod("entries") : $default : void 0, $anyNative = "Array" == NAME ? proto.entries || $native : $native; 6394 if ($anyNative && (IteratorPrototype = getPrototypeOf($anyNative.call(new Base()))) !== Object.prototype && IteratorPrototype.next && (setToStringTag(IteratorPrototype, TAG, !0), 6395 LIBRARY || "function" == typeof IteratorPrototype[ITERATOR] || hide(IteratorPrototype, ITERATOR, returnThis)), 6396 DEF_VALUES && $native && "values" !== $native.name && (VALUES_BUG = !0, $default = function() { 6397 return $native.call(this); 6398 }), LIBRARY && !FORCED || !BUGGY && !VALUES_BUG && proto[ITERATOR] || hide(proto, ITERATOR, $default), 6399 Iterators[NAME] = $default, Iterators[TAG] = returnThis, DEFAULT) if (methods = { 6400 values: DEF_VALUES ? $default : getMethod("values"), 6401 keys: IS_SET ? $default : getMethod("keys"), 6402 entries: $entries 6403 }, FORCED) for (key in methods) key in proto || redefine(proto, key, methods[key]); else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); 6404 return methods; 6405 }; 6406 }, function(module, exports, __webpack_require__) { 6407 exports.f = __webpack_require__(21); 6408 }, function(module, exports, __webpack_require__) { 6409 var META = __webpack_require__(103)("meta"), isObject = __webpack_require__(35), has = __webpack_require__(54), setDesc = __webpack_require__(22).f, id = 0, isExtensible = Object.isExtensible || function() { 6410 return !0; 6411 }, FREEZE = !__webpack_require__(53)(function() { 6412 return isExtensible(Object.preventExtensions({})); 6413 }), setMeta = function(it) { 6414 setDesc(it, META, { 6415 value: { 6416 i: "O" + ++id, 6417 w: {} 6418 } 6419 }); 6420 }, fastKey = function(it, create) { 6421 if (!isObject(it)) return "symbol" == typeof it ? it : ("string" == typeof it ? "S" : "P") + it; 6422 if (!has(it, META)) { 6423 if (!isExtensible(it)) return "F"; 6424 if (!create) return "E"; 6425 setMeta(it); 6426 } 6427 return it[META].i; 6428 }, getWeak = function(it, create) { 6429 if (!has(it, META)) { 6430 if (!isExtensible(it)) return !0; 6431 if (!create) return !1; 6432 setMeta(it); 6433 } 6434 return it[META].w; 6435 }, onFreeze = function(it) { 6436 return FREEZE && meta.NEED && isExtensible(it) && !has(it, META) && setMeta(it), 6437 it; 6438 }, meta = module.exports = { 6439 KEY: META, 6440 NEED: !1, 6441 fastKey: fastKey, 6442 getWeak: getWeak, 6443 onFreeze: onFreeze 6444 }; 6445 }, function(module, exports, __webpack_require__) { 6446 var global = __webpack_require__(24), core = __webpack_require__(17), LIBRARY = __webpack_require__(102), wksExt = __webpack_require__(157), defineProperty = __webpack_require__(22).f; 6447 module.exports = function(name) { 6448 var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); 6449 "_" == name.charAt(0) || name in $Symbol || defineProperty($Symbol, name, { 6450 value: wksExt.f(name) 6451 }); 6452 }; 6453 }, function(module, exports, __webpack_require__) { 6454 "use strict"; 6455 function _interopRequireDefault(obj) { 6456 return obj && obj.__esModule ? obj : { 6457 default: obj 6458 }; 6459 } 6460 Object.defineProperty(exports, "__esModule", { 6461 value: !0 6462 }), exports.CHANNEL = void 0; 6463 var _defineProperty2 = __webpack_require__(12), _defineProperty3 = _interopRequireDefault(_defineProperty2), _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), CHANNEL = exports.CHANNEL = "__THEMING__", themeListener = { 6464 contextTypes: (0, _defineProperty3.default)({}, CHANNEL, _propTypes2.default.object), 6465 initial: function(context) { 6466 return context[CHANNEL] ? context[CHANNEL].getState() : null; 6467 }, 6468 subscribe: function(context, cb) { 6469 return context[CHANNEL] ? context[CHANNEL].subscribe(cb) : null; 6470 }, 6471 unsubscribe: function(context, subscriptionId) { 6472 context[CHANNEL] && context[CHANNEL].unsubscribe(subscriptionId); 6473 } 6474 }; 6475 exports.default = themeListener; 6476 }, function(module, exports, __webpack_require__) { 6477 "use strict"; 6478 (function(process) { 6479 function _interopRequireDefault(obj) { 6480 return obj && obj.__esModule ? obj : { 6481 default: obj 6482 }; 6483 } 6484 function createMuiTheme() { 6485 var options = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, _options$palette = options.palette, paletteInput = void 0 === _options$palette ? {} : _options$palette, _options$breakpoints = options.breakpoints, breakpointsInput = void 0 === _options$breakpoints ? {} : _options$breakpoints, _options$mixins = options.mixins, mixinsInput = void 0 === _options$mixins ? {} : _options$mixins, _options$typography = options.typography, typographyInput = void 0 === _options$typography ? {} : _options$typography, shadowsInput = options.shadows, other = (0, 6486 _objectWithoutProperties3.default)(options, [ "palette", "breakpoints", "mixins", "typography", "shadows" ]), palette = (0, 6487 _createPalette2.default)(paletteInput), breakpoints = (0, _createBreakpoints2.default)(breakpointsInput), muiTheme = (0, 6488 _extends3.default)({ 6489 direction: "ltr", 6490 palette: palette, 6491 typography: (0, _createTypography2.default)(palette, typographyInput), 6492 mixins: (0, _createMixins2.default)(breakpoints, _spacing2.default, mixinsInput), 6493 breakpoints: breakpoints, 6494 shadows: shadowsInput || _shadows2.default 6495 }, (0, _deepmerge2.default)({ 6496 transitions: _transitions2.default, 6497 spacing: _spacing2.default, 6498 zIndex: _zIndex2.default 6499 }, other)); 6500 return "production" !== process.env.NODE_ENV && (0, _warning2.default)(25 === muiTheme.shadows.length, "Material-UI: the shadows array provided to createMuiTheme should support 25 elevations."), 6501 muiTheme; 6502 } 6503 Object.defineProperty(exports, "__esModule", { 6504 value: !0 6505 }); 6506 var _extends2 = __webpack_require__(6), _extends3 = _interopRequireDefault(_extends2), _objectWithoutProperties2 = __webpack_require__(7), _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2), _deepmerge = __webpack_require__(108), _deepmerge2 = _interopRequireDefault(_deepmerge), _warning = __webpack_require__(11), _warning2 = _interopRequireDefault(_warning), _createTypography = __webpack_require__(423), _createTypography2 = _interopRequireDefault(_createTypography), _createBreakpoints = __webpack_require__(78), _createBreakpoints2 = _interopRequireDefault(_createBreakpoints), _createPalette = __webpack_require__(424), _createPalette2 = _interopRequireDefault(_createPalette), _createMixins = __webpack_require__(431), _createMixins2 = _interopRequireDefault(_createMixins), _shadows = __webpack_require__(432), _shadows2 = _interopRequireDefault(_shadows), _transitions = __webpack_require__(433), _transitions2 = _interopRequireDefault(_transitions), _zIndex = __webpack_require__(437), _zIndex2 = _interopRequireDefault(_zIndex), _spacing = __webpack_require__(438), _spacing2 = _interopRequireDefault(_spacing); 6507 exports.default = createMuiTheme; 6508 }).call(exports, __webpack_require__(2)); 6509 }, function(module, exports, __webpack_require__) { 6510 !function(global, factory) { 6511 module.exports = factory(); 6512 }(0, function() { 6513 "use strict"; 6514 var REACT_STATICS = { 6515 childContextTypes: !0, 6516 contextTypes: !0, 6517 defaultProps: !0, 6518 displayName: !0, 6519 getDefaultProps: !0, 6520 getDerivedStateFromProps: !0, 6521 mixins: !0, 6522 propTypes: !0, 6523 type: !0 6524 }, KNOWN_STATICS = { 6525 name: !0, 6526 length: !0, 6527 prototype: !0, 6528 caller: !0, 6529 callee: !0, 6530 arguments: !0, 6531 arity: !0 6532 }, defineProperty = Object.defineProperty, getOwnPropertyNames = Object.getOwnPropertyNames, getOwnPropertySymbols = Object.getOwnPropertySymbols, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, getPrototypeOf = Object.getPrototypeOf, objectPrototype = getPrototypeOf && getPrototypeOf(Object); 6533 return function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) { 6534 if ("string" != typeof sourceComponent) { 6535 if (objectPrototype) { 6536 var inheritedComponent = getPrototypeOf(sourceComponent); 6537 inheritedComponent && inheritedComponent !== objectPrototype && hoistNonReactStatics(targetComponent, inheritedComponent, blacklist); 6538 } 6539 var keys = getOwnPropertyNames(sourceComponent); 6540 getOwnPropertySymbols && (keys = keys.concat(getOwnPropertySymbols(sourceComponent))); 6541 for (var i = 0; i < keys.length; ++i) { 6542 var key = keys[i]; 6543 if (!(REACT_STATICS[key] || KNOWN_STATICS[key] || blacklist && blacklist[key])) { 6544 var descriptor = getOwnPropertyDescriptor(sourceComponent, key); 6545 try { 6546 defineProperty(targetComponent, key, descriptor); 6547 } catch (e) {} 6548 } 6549 } 6550 return targetComponent; 6551 } 6552 return targetComponent; 6553 }; 6554 }); 6555 }, function(module, exports, __webpack_require__) { 6556 "use strict"; 6557 function indentStr(str, indent) { 6558 for (var result = "", index = 0; index < indent; index++) result += " "; 6559 return result + str; 6560 } 6561 function toCss(selector, style) { 6562 var options = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, result = ""; 6563 if (!style) return result; 6564 var _options$indent = options.indent, indent = void 0 === _options$indent ? 0 : _options$indent, fallbacks = style.fallbacks; 6565 if (indent++, fallbacks) if (Array.isArray(fallbacks)) for (var index = 0; index < fallbacks.length; index++) { 6566 var fallback = fallbacks[index]; 6567 for (var prop in fallback) { 6568 var value = fallback[prop]; 6569 null != value && (result += "\n" + indentStr(prop + ": " + (0, _toCssValue2.default)(value) + ";", indent)); 6570 } 6571 } else for (var _prop in fallbacks) { 6572 var _value = fallbacks[_prop]; 6573 null != _value && (result += "\n" + indentStr(_prop + ": " + (0, _toCssValue2.default)(_value) + ";", indent)); 6574 } 6575 for (var _prop2 in style) { 6576 var _value2 = style[_prop2]; 6577 null != _value2 && "fallbacks" !== _prop2 && (result += "\n" + indentStr(_prop2 + ": " + (0, 6578 _toCssValue2.default)(_value2) + ";", indent)); 6579 } 6580 return result || options.allowEmpty ? (indent--, result = indentStr(selector + " {" + result + "\n", indent) + indentStr("}", indent)) : result; 6581 } 6582 Object.defineProperty(exports, "__esModule", { 6583 value: !0 6584 }), exports.default = toCss; 6585 var _toCssValue = __webpack_require__(110), _toCssValue2 = function(obj) { 6586 return obj && obj.__esModule ? obj : { 6587 default: obj 6588 }; 6589 }(_toCssValue); 6590 }, function(module, exports, __webpack_require__) { 6591 "use strict"; 6592 Object.defineProperty(exports, "__esModule", { 6593 value: !0 6594 }); 6595 var _SheetsRegistry = __webpack_require__(247), _SheetsRegistry2 = function(obj) { 6596 return obj && obj.__esModule ? obj : { 6597 default: obj 6598 }; 6599 }(_SheetsRegistry); 6600 exports.default = new _SheetsRegistry2.default(); 6601 }, function(module, exports, __webpack_require__) { 6602 "use strict"; 6603 Object.defineProperty(exports, "__esModule", { 6604 value: !0 6605 }); 6606 var _isInBrowser = __webpack_require__(112), _isInBrowser2 = function(obj) { 6607 return obj && obj.__esModule ? obj : { 6608 default: obj 6609 }; 6610 }(_isInBrowser), js = "", css = ""; 6611 if (_isInBrowser2.default) { 6612 var jsCssMap = { 6613 Moz: "-moz-", 6614 ms: "-ms-", 6615 O: "-o-", 6616 Webkit: "-webkit-" 6617 }, style = document.createElement("p").style; 6618 for (var key in jsCssMap) if (key + "Transform" in style) { 6619 js = key, css = jsCssMap[key]; 6620 break; 6621 } 6622 } 6623 exports.default = { 6624 js: js, 6625 css: css 6626 }; 6627 }, function(module, exports, __webpack_require__) { 6628 "use strict"; 6629 (function(process) { 6630 function _interopRequireDefault(obj) { 6631 return obj && obj.__esModule ? obj : { 6632 default: obj 6633 }; 6634 } 6635 function _objectWithoutProperties(obj, keys) { 6636 var target = {}; 6637 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 6638 return target; 6639 } 6640 function _classCallCheck(instance, Constructor) { 6641 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 6642 } 6643 function _possibleConstructorReturn(self, call) { 6644 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 6645 return !call || "object" != typeof call && "function" != typeof call ? self : call; 6646 } 6647 function _inherits(subClass, superClass) { 6648 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 6649 subClass.prototype = Object.create(superClass && superClass.prototype, { 6650 constructor: { 6651 value: subClass, 6652 enumerable: !1, 6653 writable: !0, 6654 configurable: !0 6655 } 6656 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 6657 } 6658 function noop() {} 6659 exports.__esModule = !0, exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = void 0; 6660 var _propTypes = __webpack_require__(1), PropTypes = function(obj) { 6661 if (obj && obj.__esModule) return obj; 6662 var newObj = {}; 6663 if (null != obj) for (var key in obj) Object.prototype.hasOwnProperty.call(obj, key) && (newObj[key] = obj[key]); 6664 return newObj.default = obj, newObj; 6665 }(_propTypes), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _reactDom = __webpack_require__(99), _reactDom2 = _interopRequireDefault(_reactDom), _PropTypes = __webpack_require__(519), UNMOUNTED = exports.UNMOUNTED = "unmounted", EXITED = exports.EXITED = "exited", ENTERING = exports.ENTERING = "entering", ENTERED = exports.ENTERED = "entered", EXITING = exports.EXITING = "exiting", Transition = function(_React$Component) { 6666 function Transition(props, context) { 6667 _classCallCheck(this, Transition); 6668 var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)), parentGroup = context.transitionGroup, appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear, initialStatus = void 0; 6669 return _this.nextStatus = null, props.in ? appear ? (initialStatus = EXITED, _this.nextStatus = ENTERING) : initialStatus = ENTERED : initialStatus = props.unmountOnExit || props.mountOnEnter ? UNMOUNTED : EXITED, 6670 _this.state = { 6671 status: initialStatus 6672 }, _this.nextCallback = null, _this; 6673 } 6674 return _inherits(Transition, _React$Component), Transition.prototype.getChildContext = function() { 6675 return { 6676 transitionGroup: null 6677 }; 6678 }, Transition.prototype.componentDidMount = function() { 6679 this.updateStatus(!0); 6680 }, Transition.prototype.componentWillReceiveProps = function(nextProps) { 6681 var _ref = this.pendingState || this.state, status = _ref.status; 6682 nextProps.in ? (status === UNMOUNTED && this.setState({ 6683 status: EXITED 6684 }), status !== ENTERING && status !== ENTERED && (this.nextStatus = ENTERING)) : status !== ENTERING && status !== ENTERED || (this.nextStatus = EXITING); 6685 }, Transition.prototype.componentDidUpdate = function() { 6686 this.updateStatus(); 6687 }, Transition.prototype.componentWillUnmount = function() { 6688 this.cancelNextCallback(); 6689 }, Transition.prototype.getTimeouts = function() { 6690 var timeout = this.props.timeout, exit = void 0, enter = void 0, appear = void 0; 6691 return exit = enter = appear = timeout, null != timeout && "number" != typeof timeout && (exit = timeout.exit, 6692 enter = timeout.enter, appear = timeout.appear), { 6693 exit: exit, 6694 enter: enter, 6695 appear: appear 6696 }; 6697 }, Transition.prototype.updateStatus = function() { 6698 var mounting = arguments.length > 0 && void 0 !== arguments[0] && arguments[0], nextStatus = this.nextStatus; 6699 if (null !== nextStatus) { 6700 this.nextStatus = null, this.cancelNextCallback(); 6701 var node = _reactDom2.default.findDOMNode(this); 6702 nextStatus === ENTERING ? this.performEnter(node, mounting) : this.performExit(node); 6703 } else this.props.unmountOnExit && this.state.status === EXITED && this.setState({ 6704 status: UNMOUNTED 6705 }); 6706 }, Transition.prototype.performEnter = function(node, mounting) { 6707 var _this2 = this, enter = this.props.enter, appearing = this.context.transitionGroup ? this.context.transitionGroup.isMounting : mounting, timeouts = this.getTimeouts(); 6708 if (!mounting && !enter) return void this.safeSetState({ 6709 status: ENTERED 6710 }, function() { 6711 _this2.props.onEntered(node); 6712 }); 6713 this.props.onEnter(node, appearing), this.safeSetState({ 6714 status: ENTERING 6715 }, function() { 6716 _this2.props.onEntering(node, appearing), _this2.onTransitionEnd(node, timeouts.enter, function() { 6717 _this2.safeSetState({ 6718 status: ENTERED 6719 }, function() { 6720 _this2.props.onEntered(node, appearing); 6721 }); 6722 }); 6723 }); 6724 }, Transition.prototype.performExit = function(node) { 6725 var _this3 = this, exit = this.props.exit, timeouts = this.getTimeouts(); 6726 if (!exit) return void this.safeSetState({ 6727 status: EXITED 6728 }, function() { 6729 _this3.props.onExited(node); 6730 }); 6731 this.props.onExit(node), this.safeSetState({ 6732 status: EXITING 6733 }, function() { 6734 _this3.props.onExiting(node), _this3.onTransitionEnd(node, timeouts.exit, function() { 6735 _this3.safeSetState({ 6736 status: EXITED 6737 }, function() { 6738 _this3.props.onExited(node); 6739 }); 6740 }); 6741 }); 6742 }, Transition.prototype.cancelNextCallback = function() { 6743 null !== this.nextCallback && (this.nextCallback.cancel(), this.nextCallback = null); 6744 }, Transition.prototype.safeSetState = function(nextState, callback) { 6745 var _this4 = this; 6746 this.pendingState = nextState, callback = this.setNextCallback(callback), this.setState(nextState, function() { 6747 _this4.pendingState = null, callback(); 6748 }); 6749 }, Transition.prototype.setNextCallback = function(callback) { 6750 var _this5 = this, active = !0; 6751 return this.nextCallback = function(event) { 6752 active && (active = !1, _this5.nextCallback = null, callback(event)); 6753 }, this.nextCallback.cancel = function() { 6754 active = !1; 6755 }, this.nextCallback; 6756 }, Transition.prototype.onTransitionEnd = function(node, timeout, handler) { 6757 this.setNextCallback(handler), node ? (this.props.addEndListener && this.props.addEndListener(node, this.nextCallback), 6758 null != timeout && setTimeout(this.nextCallback, timeout)) : setTimeout(this.nextCallback, 0); 6759 }, Transition.prototype.render = function() { 6760 var status = this.state.status; 6761 if (status === UNMOUNTED) return null; 6762 var _props = this.props, children = _props.children, childProps = _objectWithoutProperties(_props, [ "children" ]); 6763 if (delete childProps.in, delete childProps.mountOnEnter, delete childProps.unmountOnExit, 6764 delete childProps.appear, delete childProps.enter, delete childProps.exit, delete childProps.timeout, 6765 delete childProps.addEndListener, delete childProps.onEnter, delete childProps.onEntering, 6766 delete childProps.onEntered, delete childProps.onExit, delete childProps.onExiting, 6767 delete childProps.onExited, "function" == typeof children) return children(status, childProps); 6768 var child = _react2.default.Children.only(children); 6769 return _react2.default.cloneElement(child, childProps); 6770 }, Transition; 6771 }(_react2.default.Component); 6772 Transition.contextTypes = { 6773 transitionGroup: PropTypes.object 6774 }, Transition.childContextTypes = { 6775 transitionGroup: function() {} 6776 }, Transition.propTypes = "production" !== process.env.NODE_ENV ? { 6777 children: PropTypes.oneOfType([ PropTypes.func.isRequired, PropTypes.element.isRequired ]).isRequired, 6778 in: PropTypes.bool, 6779 mountOnEnter: PropTypes.bool, 6780 unmountOnExit: PropTypes.bool, 6781 appear: PropTypes.bool, 6782 enter: PropTypes.bool, 6783 exit: PropTypes.bool, 6784 timeout: function(props) { 6785 for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) args[_key - 1] = arguments[_key]; 6786 var pt = _PropTypes.timeoutsShape; 6787 return props.addEndListener || (pt = pt.isRequired), pt.apply(void 0, [ props ].concat(args)); 6788 }, 6789 addEndListener: PropTypes.func, 6790 onEnter: PropTypes.func, 6791 onEntering: PropTypes.func, 6792 onEntered: PropTypes.func, 6793 onExit: PropTypes.func, 6794 onExiting: PropTypes.func, 6795 onExited: PropTypes.func 6796 } : {}, Transition.defaultProps = { 6797 in: !1, 6798 mountOnEnter: !1, 6799 unmountOnExit: !1, 6800 appear: !1, 6801 enter: !0, 6802 exit: !0, 6803 onEnter: noop, 6804 onEntering: noop, 6805 onEntered: noop, 6806 onExit: noop, 6807 onExiting: noop, 6808 onExited: noop 6809 }, Transition.UNMOUNTED = 0, Transition.EXITED = 1, Transition.ENTERING = 2, Transition.ENTERED = 3, 6810 Transition.EXITING = 4, exports.default = Transition; 6811 }).call(exports, __webpack_require__(2)); 6812 }, function(module, exports) { 6813 var global = module.exports = "undefined" != typeof window && window.Math == Math ? window : "undefined" != typeof self && self.Math == Math ? self : Function("return this")(); 6814 "number" == typeof __g && (__g = global); 6815 }, function(module, exports) { 6816 var core = module.exports = { 6817 version: "2.5.1" 6818 }; 6819 "number" == typeof __e && (__e = core); 6820 }, function(module, exports) { 6821 module.exports = function(it) { 6822 return "object" == typeof it ? null !== it : "function" == typeof it; 6823 }; 6824 }, function(module, exports, __webpack_require__) { 6825 module.exports = !__webpack_require__(114)(function() { 6826 return 7 != Object.defineProperty({}, "a", { 6827 get: function() { 6828 return 7; 6829 } 6830 }).a; 6831 }); 6832 }, function(module, exports) { 6833 module.exports = Math.sign || function(x) { 6834 return 0 == (x = +x) || x != x ? x : x < 0 ? -1 : 1; 6835 }; 6836 }, function(module, exports) { 6837 var $expm1 = Math.expm1; 6838 module.exports = !$expm1 || $expm1(10) > 22025.465794806718 || $expm1(10) < 22025.465794806718 || -2e-17 != $expm1(-2e-17) ? function(x) { 6839 return 0 == (x = +x) ? x : x > -1e-6 && x < 1e-6 ? x + x * x / 2 : Math.exp(x) - 1; 6840 } : $expm1; 6841 }, function(module, exports, __webpack_require__) { 6842 function isString(value) { 6843 return "string" == typeof value || !isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag; 6844 } 6845 var baseGetTag = __webpack_require__(41), isArray = __webpack_require__(13), isObjectLike = __webpack_require__(42), stringTag = "[object String]"; 6846 module.exports = isString; 6847 }, function(module, exports, __webpack_require__) { 6848 function get(object, path, defaultValue) { 6849 var result = null == object ? void 0 : baseGet(object, path); 6850 return void 0 === result ? defaultValue : result; 6851 } 6852 var baseGet = __webpack_require__(269); 6853 module.exports = get; 6854 }, function(module, exports, __webpack_require__) { 6855 function isKey(value, object) { 6856 if (isArray(value)) return !1; 6857 var type = typeof value; 6858 return !("number" != type && "symbol" != type && "boolean" != type && null != value && !isSymbol(value)) || (reIsPlainProp.test(value) || !reIsDeepProp.test(value) || null != object && value in Object(object)); 6859 } 6860 var isArray = __webpack_require__(13), isSymbol = __webpack_require__(67), reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/; 6861 module.exports = isKey; 6862 }, function(module, exports, __webpack_require__) { 6863 function MapCache(entries) { 6864 var index = -1, length = null == entries ? 0 : entries.length; 6865 for (this.clear(); ++index < length; ) { 6866 var entry = entries[index]; 6867 this.set(entry[0], entry[1]); 6868 } 6869 } 6870 var mapCacheClear = __webpack_require__(608), mapCacheDelete = __webpack_require__(624), mapCacheGet = __webpack_require__(626), mapCacheHas = __webpack_require__(627), mapCacheSet = __webpack_require__(628); 6871 MapCache.prototype.clear = mapCacheClear, MapCache.prototype.delete = mapCacheDelete, 6872 MapCache.prototype.get = mapCacheGet, MapCache.prototype.has = mapCacheHas, MapCache.prototype.set = mapCacheSet, 6873 module.exports = MapCache; 6874 }, function(module, exports) { 6875 function eq(value, other) { 6876 return value === other || value !== value && other !== other; 6877 } 6878 module.exports = eq; 6879 }, function(module, exports, __webpack_require__) { 6880 var getNative = __webpack_require__(57), root = __webpack_require__(31), Map = getNative(root, "Map"); 6881 module.exports = Map; 6882 }, function(module, exports) { 6883 function arrayMap(array, iteratee) { 6884 for (var index = -1, length = null == array ? 0 : array.length, result = Array(length); ++index < length; ) result[index] = iteratee(array[index], index, array); 6885 return result; 6886 } 6887 module.exports = arrayMap; 6888 }, function(module, __webpack_exports__, __webpack_require__) { 6889 "use strict"; 6890 function _classCallCheck(instance, Constructor) { 6891 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 6892 } 6893 function _possibleConstructorReturn(self, call) { 6894 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 6895 return !call || "object" != typeof call && "function" != typeof call ? self : call; 6896 } 6897 function _inherits(subClass, superClass) { 6898 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 6899 subClass.prototype = Object.create(superClass && superClass.prototype, { 6900 constructor: { 6901 value: subClass, 6902 enumerable: !1, 6903 writable: !0, 6904 configurable: !0 6905 } 6906 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 6907 } 6908 var _class, _class2, _temp2, __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction__ = __webpack_require__(8), __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isFunction__), __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__), __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__), __WEBPACK_IMPORTED_MODULE_3__util_PureRender__ = __webpack_require__(5), __WEBPACK_IMPORTED_MODULE_4__DefaultLegendContent__ = __webpack_require__(631), __WEBPACK_IMPORTED_MODULE_5__util_DataUtils__ = __webpack_require__(9), __WEBPACK_IMPORTED_MODULE_6__util_ReactUtils__ = __webpack_require__(4), _extends = Object.assign || function(target) { 6909 for (var i = 1; i < arguments.length; i++) { 6910 var source = arguments[i]; 6911 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 6912 } 6913 return target; 6914 }, _createClass = function() { 6915 function defineProperties(target, props) { 6916 for (var i = 0; i < props.length; i++) { 6917 var descriptor = props[i]; 6918 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 6919 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 6920 } 6921 } 6922 return function(Constructor, protoProps, staticProps) { 6923 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 6924 Constructor; 6925 }; 6926 }(), renderContent = function(content, props) { 6927 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.isValidElement(content) ? __WEBPACK_IMPORTED_MODULE_1_react___default.a.cloneElement(content, props) : __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default()(content) ? content(props) : __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__DefaultLegendContent__.a, props); 6928 }, ICON_TYPES = __WEBPACK_IMPORTED_MODULE_6__util_ReactUtils__.b.filter(function(type) { 6929 return "none" !== type; 6930 }), Legend = Object(__WEBPACK_IMPORTED_MODULE_3__util_PureRender__.a)((_temp2 = _class2 = function(_Component) { 6931 function Legend() { 6932 var _ref, _temp, _this, _ret; 6933 _classCallCheck(this, Legend); 6934 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 6935 return _temp = _this = _possibleConstructorReturn(this, (_ref = Legend.__proto__ || Object.getPrototypeOf(Legend)).call.apply(_ref, [ this ].concat(args))), 6936 _this.state = { 6937 boxWidth: -1, 6938 boxHeight: -1 6939 }, _ret = _temp, _possibleConstructorReturn(_this, _ret); 6940 } 6941 return _inherits(Legend, _Component), _createClass(Legend, [ { 6942 key: "componentDidMount", 6943 value: function() { 6944 this.updateBBox(); 6945 } 6946 }, { 6947 key: "componentDidUpdate", 6948 value: function() { 6949 this.updateBBox(); 6950 } 6951 }, { 6952 key: "getBBox", 6953 value: function() { 6954 var _state = this.state, boxWidth = _state.boxWidth, boxHeight = _state.boxHeight; 6955 return boxWidth >= 0 && boxHeight >= 0 ? { 6956 width: boxWidth, 6957 height: boxHeight 6958 } : null; 6959 } 6960 }, { 6961 key: "getDefaultPosition", 6962 value: function(style) { 6963 var _props = this.props, layout = _props.layout, align = _props.align, verticalAlign = _props.verticalAlign, margin = _props.margin, chartWidth = _props.chartWidth, chartHeight = _props.chartHeight, hPos = void 0, vPos = void 0; 6964 if (!style || (void 0 === style.left || null === style.left) && (void 0 === style.right || null === style.right)) if ("center" === align && "vertical" === layout) { 6965 var box = this.getBBox() || { 6966 width: 0 6967 }; 6968 hPos = { 6969 left: ((chartWidth || 0) - box.width) / 2 6970 }; 6971 } else hPos = "right" === align ? { 6972 right: margin && margin.right || 0 6973 } : { 6974 left: margin && margin.left || 0 6975 }; 6976 if (!style || (void 0 === style.top || null === style.top) && (void 0 === style.bottom || null === style.bottom)) if ("middle" === verticalAlign) { 6977 var _box = this.getBBox() || { 6978 height: 0 6979 }; 6980 vPos = { 6981 top: ((chartHeight || 0) - _box.height) / 2 6982 }; 6983 } else vPos = "bottom" === verticalAlign ? { 6984 bottom: margin && margin.bottom || 0 6985 } : { 6986 top: margin && margin.top || 0 6987 }; 6988 return _extends({}, hPos, vPos); 6989 } 6990 }, { 6991 key: "updateBBox", 6992 value: function() { 6993 var _state2 = this.state, boxWidth = _state2.boxWidth, boxHeight = _state2.boxHeight, onBBoxUpdate = this.props.onBBoxUpdate; 6994 if (this.wrapperNode && this.wrapperNode.getBoundingClientRect) { 6995 var box = this.wrapperNode.getBoundingClientRect(); 6996 (Math.abs(box.width - boxWidth) > 1 || Math.abs(box.height - boxHeight) > 1) && this.setState({ 6997 boxWidth: box.width, 6998 boxHeight: box.height 6999 }, function() { 7000 onBBoxUpdate && onBBoxUpdate(box); 7001 }); 7002 } else -1 === boxWidth && -1 === boxHeight || this.setState({ 7003 boxWidth: -1, 7004 boxHeight: -1 7005 }, function() { 7006 onBBoxUpdate && onBBoxUpdate(null); 7007 }); 7008 } 7009 }, { 7010 key: "render", 7011 value: function() { 7012 var _this2 = this, _props2 = this.props, content = _props2.content, width = _props2.width, height = _props2.height, wrapperStyle = _props2.wrapperStyle, outerStyle = _extends({ 7013 position: "absolute", 7014 width: width || "auto", 7015 height: height || "auto" 7016 }, this.getDefaultPosition(wrapperStyle), wrapperStyle); 7017 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("div", { 7018 className: "recharts-legend-wrapper", 7019 style: outerStyle, 7020 ref: function(node) { 7021 _this2.wrapperNode = node; 7022 } 7023 }, renderContent(content, this.props)); 7024 } 7025 } ], [ { 7026 key: "getWithHeight", 7027 value: function(item, chartWidth) { 7028 var layout = item.props.layout; 7029 return "vertical" === layout && Object(__WEBPACK_IMPORTED_MODULE_5__util_DataUtils__.h)(item.props.height) ? { 7030 height: item.props.height 7031 } : "horizontal" === layout ? { 7032 width: item.props.width || chartWidth 7033 } : null; 7034 } 7035 } ]), Legend; 7036 }(__WEBPACK_IMPORTED_MODULE_1_react__.Component), _class2.displayName = "Legend", 7037 _class2.propTypes = { 7038 content: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.element, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func ]), 7039 wrapperStyle: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object, 7040 chartWidth: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 7041 chartHeight: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 7042 width: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 7043 height: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 7044 iconSize: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 7045 iconType: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOf(ICON_TYPES), 7046 layout: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOf([ "horizontal", "vertical" ]), 7047 align: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOf([ "center", "left", "right" ]), 7048 verticalAlign: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOf([ "top", "bottom", "middle" ]), 7049 margin: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.shape({ 7050 top: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 7051 left: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 7052 bottom: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 7053 right: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number 7054 }), 7055 payload: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.shape({ 7056 value: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.any, 7057 id: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.any, 7058 type: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOf(__WEBPACK_IMPORTED_MODULE_6__util_ReactUtils__.b) 7059 })), 7060 formatter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, 7061 onMouseEnter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, 7062 onMouseLeave: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, 7063 onClick: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, 7064 onBBoxUpdate: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func 7065 }, _class2.defaultProps = { 7066 iconSize: 14, 7067 layout: "horizontal", 7068 align: "center", 7069 verticalAlign: "bottom" 7070 }, _class = _temp2)) || _class; 7071 __webpack_exports__.a = Legend; 7072 }, function(module, __webpack_exports__, __webpack_require__) { 7073 "use strict"; 7074 function _classCallCheck(instance, Constructor) { 7075 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 7076 } 7077 function _possibleConstructorReturn(self, call) { 7078 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 7079 return !call || "object" != typeof call && "function" != typeof call ? self : call; 7080 } 7081 function _inherits(subClass, superClass) { 7082 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 7083 subClass.prototype = Object.create(superClass && superClass.prototype, { 7084 constructor: { 7085 value: subClass, 7086 enumerable: !1, 7087 writable: !0, 7088 configurable: !0 7089 } 7090 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 7091 } 7092 var _class, _class2, _temp, __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__), __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__), __WEBPACK_IMPORTED_MODULE_2_d3_shape__ = __webpack_require__(182), __WEBPACK_IMPORTED_MODULE_3_classnames__ = __webpack_require__(3), __WEBPACK_IMPORTED_MODULE_3_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_classnames__), __WEBPACK_IMPORTED_MODULE_4__util_PureRender__ = __webpack_require__(5), __WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__ = __webpack_require__(4), _extends = Object.assign || function(target) { 7093 for (var i = 1; i < arguments.length; i++) { 7094 var source = arguments[i]; 7095 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 7096 } 7097 return target; 7098 }, _createClass = function() { 7099 function defineProperties(target, props) { 7100 for (var i = 0; i < props.length; i++) { 7101 var descriptor = props[i]; 7102 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 7103 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 7104 } 7105 } 7106 return function(Constructor, protoProps, staticProps) { 7107 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 7108 Constructor; 7109 }; 7110 }(), SYMBOL_FACTORIES = { 7111 symbolCircle: __WEBPACK_IMPORTED_MODULE_2_d3_shape__.u, 7112 symbolCross: __WEBPACK_IMPORTED_MODULE_2_d3_shape__.v, 7113 symbolDiamond: __WEBPACK_IMPORTED_MODULE_2_d3_shape__.w, 7114 symbolSquare: __WEBPACK_IMPORTED_MODULE_2_d3_shape__.x, 7115 symbolStar: __WEBPACK_IMPORTED_MODULE_2_d3_shape__.y, 7116 symbolTriangle: __WEBPACK_IMPORTED_MODULE_2_d3_shape__.z, 7117 symbolWye: __WEBPACK_IMPORTED_MODULE_2_d3_shape__.A 7118 }, RADIAN = Math.PI / 180, getSymbolFactory = function(type) { 7119 var name = "symbol" + type.slice(0, 1).toUpperCase() + type.slice(1); 7120 return SYMBOL_FACTORIES[name] || __WEBPACK_IMPORTED_MODULE_2_d3_shape__.u; 7121 }, calculateAreaSize = function(size, sizeType, type) { 7122 if ("area" === sizeType) return size; 7123 switch (type) { 7124 case "cross": 7125 return 5 * size * size / 9; 7126 7127 case "diamond": 7128 return .5 * size * size / Math.sqrt(3); 7129 7130 case "square": 7131 return size * size; 7132 7133 case "star": 7134 var angle = 18 * RADIAN; 7135 return 1.25 * size * size * (Math.tan(angle) - Math.tan(2 * angle) * Math.pow(Math.tan(angle), 2)); 7136 7137 case "triangle": 7138 return Math.sqrt(3) * size * size / 4; 7139 7140 case "wye": 7141 return (21 - 10 * Math.sqrt(3)) * size * size / 8; 7142 7143 default: 7144 return Math.PI * size * size / 4; 7145 } 7146 }, Symbols = Object(__WEBPACK_IMPORTED_MODULE_4__util_PureRender__.a)((_temp = _class2 = function(_Component) { 7147 function Symbols() { 7148 return _classCallCheck(this, Symbols), _possibleConstructorReturn(this, (Symbols.__proto__ || Object.getPrototypeOf(Symbols)).apply(this, arguments)); 7149 } 7150 return _inherits(Symbols, _Component), _createClass(Symbols, [ { 7151 key: "getPath", 7152 value: function() { 7153 var _props = this.props, size = _props.size, sizeType = _props.sizeType, type = _props.type, symbolFactory = getSymbolFactory(type); 7154 return Object(__WEBPACK_IMPORTED_MODULE_2_d3_shape__.t)().type(symbolFactory).size(calculateAreaSize(size, sizeType, type))(); 7155 } 7156 }, { 7157 key: "render", 7158 value: function() { 7159 var _props2 = this.props, className = _props2.className, cx = _props2.cx, cy = _props2.cy, size = _props2.size; 7160 return cx === +cx && cy === +cy && size === +size ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("path", _extends({}, Object(__WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__.k)(this.props), Object(__WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__.e)(this.props), { 7161 className: __WEBPACK_IMPORTED_MODULE_3_classnames___default()("recharts-symbols", className), 7162 transform: "translate(" + cx + ", " + cy + ")", 7163 d: this.getPath() 7164 })) : null; 7165 } 7166 } ]), Symbols; 7167 }(__WEBPACK_IMPORTED_MODULE_0_react__.Component), _class2.displayName = "Symbols", 7168 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__.c, { 7169 className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, 7170 type: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf([ "circle", "cross", "diamond", "square", "star", "triangle", "wye" ]), 7171 cx: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 7172 cy: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 7173 size: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 7174 sizeType: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf([ "area", "diameter" ]) 7175 }), _class2.defaultProps = { 7176 type: "circle", 7177 size: 64, 7178 sizeType: "area" 7179 }, _class = _temp)) || _class; 7180 __webpack_exports__.a = Symbols; 7181 }, function(module, __webpack_exports__, __webpack_require__) { 7182 "use strict"; 7183 var __WEBPACK_IMPORTED_MODULE_1__src_area__ = (__webpack_require__(632), __webpack_require__(273)); 7184 __webpack_require__.d(__webpack_exports__, "a", function() { 7185 return __WEBPACK_IMPORTED_MODULE_1__src_area__.a; 7186 }); 7187 var __WEBPACK_IMPORTED_MODULE_2__src_line__ = __webpack_require__(183); 7188 __webpack_require__.d(__webpack_exports__, "m", function() { 7189 return __WEBPACK_IMPORTED_MODULE_2__src_line__.a; 7190 }); 7191 var __WEBPACK_IMPORTED_MODULE_8__src_symbol__ = (__webpack_require__(634), __webpack_require__(637), 7192 __webpack_require__(275), __webpack_require__(276), __webpack_require__(638), __webpack_require__(639)); 7193 __webpack_require__.d(__webpack_exports__, "t", function() { 7194 return __WEBPACK_IMPORTED_MODULE_8__src_symbol__.a; 7195 }); 7196 var __WEBPACK_IMPORTED_MODULE_9__src_symbol_circle__ = __webpack_require__(278); 7197 __webpack_require__.d(__webpack_exports__, "u", function() { 7198 return __WEBPACK_IMPORTED_MODULE_9__src_symbol_circle__.a; 7199 }); 7200 var __WEBPACK_IMPORTED_MODULE_10__src_symbol_cross__ = __webpack_require__(279); 7201 __webpack_require__.d(__webpack_exports__, "v", function() { 7202 return __WEBPACK_IMPORTED_MODULE_10__src_symbol_cross__.a; 7203 }); 7204 var __WEBPACK_IMPORTED_MODULE_11__src_symbol_diamond__ = __webpack_require__(280); 7205 __webpack_require__.d(__webpack_exports__, "w", function() { 7206 return __WEBPACK_IMPORTED_MODULE_11__src_symbol_diamond__.a; 7207 }); 7208 var __WEBPACK_IMPORTED_MODULE_12__src_symbol_square__ = __webpack_require__(282); 7209 __webpack_require__.d(__webpack_exports__, "x", function() { 7210 return __WEBPACK_IMPORTED_MODULE_12__src_symbol_square__.a; 7211 }); 7212 var __WEBPACK_IMPORTED_MODULE_13__src_symbol_star__ = __webpack_require__(281); 7213 __webpack_require__.d(__webpack_exports__, "y", function() { 7214 return __WEBPACK_IMPORTED_MODULE_13__src_symbol_star__.a; 7215 }); 7216 var __WEBPACK_IMPORTED_MODULE_14__src_symbol_triangle__ = __webpack_require__(283); 7217 __webpack_require__.d(__webpack_exports__, "z", function() { 7218 return __WEBPACK_IMPORTED_MODULE_14__src_symbol_triangle__.a; 7219 }); 7220 var __WEBPACK_IMPORTED_MODULE_15__src_symbol_wye__ = __webpack_require__(284); 7221 __webpack_require__.d(__webpack_exports__, "A", function() { 7222 return __WEBPACK_IMPORTED_MODULE_15__src_symbol_wye__.a; 7223 }); 7224 var __WEBPACK_IMPORTED_MODULE_16__src_curve_basisClosed__ = __webpack_require__(640); 7225 __webpack_require__.d(__webpack_exports__, "c", function() { 7226 return __WEBPACK_IMPORTED_MODULE_16__src_curve_basisClosed__.a; 7227 }); 7228 var __WEBPACK_IMPORTED_MODULE_17__src_curve_basisOpen__ = __webpack_require__(641); 7229 __webpack_require__.d(__webpack_exports__, "d", function() { 7230 return __WEBPACK_IMPORTED_MODULE_17__src_curve_basisOpen__.a; 7231 }); 7232 var __WEBPACK_IMPORTED_MODULE_18__src_curve_basis__ = __webpack_require__(123); 7233 __webpack_require__.d(__webpack_exports__, "b", function() { 7234 return __WEBPACK_IMPORTED_MODULE_18__src_curve_basis__.b; 7235 }); 7236 var __WEBPACK_IMPORTED_MODULE_26__src_curve_linearClosed__ = (__webpack_require__(642), 7237 __webpack_require__(285), __webpack_require__(286), __webpack_require__(124), __webpack_require__(643), 7238 __webpack_require__(644), __webpack_require__(185), __webpack_require__(645)); 7239 __webpack_require__.d(__webpack_exports__, "f", function() { 7240 return __WEBPACK_IMPORTED_MODULE_26__src_curve_linearClosed__.a; 7241 }); 7242 var __WEBPACK_IMPORTED_MODULE_27__src_curve_linear__ = __webpack_require__(121); 7243 __webpack_require__.d(__webpack_exports__, "e", function() { 7244 return __WEBPACK_IMPORTED_MODULE_27__src_curve_linear__.a; 7245 }); 7246 var __WEBPACK_IMPORTED_MODULE_28__src_curve_monotone__ = __webpack_require__(646); 7247 __webpack_require__.d(__webpack_exports__, "g", function() { 7248 return __WEBPACK_IMPORTED_MODULE_28__src_curve_monotone__.a; 7249 }), __webpack_require__.d(__webpack_exports__, "h", function() { 7250 return __WEBPACK_IMPORTED_MODULE_28__src_curve_monotone__.b; 7251 }); 7252 var __WEBPACK_IMPORTED_MODULE_29__src_curve_natural__ = __webpack_require__(647); 7253 __webpack_require__.d(__webpack_exports__, "i", function() { 7254 return __WEBPACK_IMPORTED_MODULE_29__src_curve_natural__.a; 7255 }); 7256 var __WEBPACK_IMPORTED_MODULE_30__src_curve_step__ = __webpack_require__(648); 7257 __webpack_require__.d(__webpack_exports__, "j", function() { 7258 return __WEBPACK_IMPORTED_MODULE_30__src_curve_step__.a; 7259 }), __webpack_require__.d(__webpack_exports__, "k", function() { 7260 return __WEBPACK_IMPORTED_MODULE_30__src_curve_step__.b; 7261 }), __webpack_require__.d(__webpack_exports__, "l", function() { 7262 return __WEBPACK_IMPORTED_MODULE_30__src_curve_step__.c; 7263 }); 7264 var __WEBPACK_IMPORTED_MODULE_31__src_stack__ = __webpack_require__(649); 7265 __webpack_require__.d(__webpack_exports__, "n", function() { 7266 return __WEBPACK_IMPORTED_MODULE_31__src_stack__.a; 7267 }); 7268 var __WEBPACK_IMPORTED_MODULE_32__src_offset_expand__ = __webpack_require__(650); 7269 __webpack_require__.d(__webpack_exports__, "o", function() { 7270 return __WEBPACK_IMPORTED_MODULE_32__src_offset_expand__.a; 7271 }); 7272 var __WEBPACK_IMPORTED_MODULE_34__src_offset_none__ = (__webpack_require__(651), 7273 __webpack_require__(86)); 7274 __webpack_require__.d(__webpack_exports__, "p", function() { 7275 return __WEBPACK_IMPORTED_MODULE_34__src_offset_none__.a; 7276 }); 7277 var __WEBPACK_IMPORTED_MODULE_35__src_offset_silhouette__ = __webpack_require__(652); 7278 __webpack_require__.d(__webpack_exports__, "q", function() { 7279 return __WEBPACK_IMPORTED_MODULE_35__src_offset_silhouette__.a; 7280 }); 7281 var __WEBPACK_IMPORTED_MODULE_36__src_offset_wiggle__ = __webpack_require__(653); 7282 __webpack_require__.d(__webpack_exports__, "r", function() { 7283 return __WEBPACK_IMPORTED_MODULE_36__src_offset_wiggle__.a; 7284 }); 7285 var __WEBPACK_IMPORTED_MODULE_40__src_order_none__ = (__webpack_require__(186), 7286 __webpack_require__(654), __webpack_require__(655), __webpack_require__(87)); 7287 __webpack_require__.d(__webpack_exports__, "s", function() { 7288 return __WEBPACK_IMPORTED_MODULE_40__src_order_none__.a; 7289 }); 7290 __webpack_require__(656); 7291 }, function(module, __webpack_exports__, __webpack_require__) { 7292 "use strict"; 7293 var __WEBPACK_IMPORTED_MODULE_0_d3_path__ = __webpack_require__(84), __WEBPACK_IMPORTED_MODULE_1__constant__ = __webpack_require__(58), __WEBPACK_IMPORTED_MODULE_2__curve_linear__ = __webpack_require__(121), __WEBPACK_IMPORTED_MODULE_3__point__ = __webpack_require__(184); 7294 __webpack_exports__.a = function() { 7295 function line(data) { 7296 var i, d, buffer, n = data.length, defined0 = !1; 7297 for (null == context && (output = curve(buffer = Object(__WEBPACK_IMPORTED_MODULE_0_d3_path__.a)())), 7298 i = 0; i <= n; ++i) !(i < n && defined(d = data[i], i, data)) === defined0 && ((defined0 = !defined0) ? output.lineStart() : output.lineEnd()), 7299 defined0 && output.point(+x(d, i, data), +y(d, i, data)); 7300 if (buffer) return output = null, buffer + "" || null; 7301 } 7302 var x = __WEBPACK_IMPORTED_MODULE_3__point__.a, y = __WEBPACK_IMPORTED_MODULE_3__point__.b, defined = Object(__WEBPACK_IMPORTED_MODULE_1__constant__.a)(!0), context = null, curve = __WEBPACK_IMPORTED_MODULE_2__curve_linear__.a, output = null; 7303 return line.x = function(_) { 7304 return arguments.length ? (x = "function" == typeof _ ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__.a)(+_), 7305 line) : x; 7306 }, line.y = function(_) { 7307 return arguments.length ? (y = "function" == typeof _ ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__.a)(+_), 7308 line) : y; 7309 }, line.defined = function(_) { 7310 return arguments.length ? (defined = "function" == typeof _ ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__.a)(!!_), 7311 line) : defined; 7312 }, line.curve = function(_) { 7313 return arguments.length ? (curve = _, null != context && (output = curve(context)), 7314 line) : curve; 7315 }, line.context = function(_) { 7316 return arguments.length ? (null == _ ? context = output = null : output = curve(context = _), 7317 line) : context; 7318 }, line; 7319 }; 7320 }, function(module, __webpack_exports__, __webpack_require__) { 7321 "use strict"; 7322 function x(p) { 7323 return p[0]; 7324 } 7325 function y(p) { 7326 return p[1]; 7327 } 7328 __webpack_exports__.a = x, __webpack_exports__.b = y; 7329 }, function(module, __webpack_exports__, __webpack_require__) { 7330 "use strict"; 7331 function point(that, x, y) { 7332 var x1 = that._x1, y1 = that._y1, x2 = that._x2, y2 = that._y2; 7333 if (that._l01_a > __WEBPACK_IMPORTED_MODULE_0__math__.f) { 7334 var a = 2 * that._l01_2a + 3 * that._l01_a * that._l12_a + that._l12_2a, n = 3 * that._l01_a * (that._l01_a + that._l12_a); 7335 x1 = (x1 * a - that._x0 * that._l12_2a + that._x2 * that._l01_2a) / n, y1 = (y1 * a - that._y0 * that._l12_2a + that._y2 * that._l01_2a) / n; 7336 } 7337 if (that._l23_a > __WEBPACK_IMPORTED_MODULE_0__math__.f) { 7338 var b = 2 * that._l23_2a + 3 * that._l23_a * that._l12_a + that._l12_2a, m = 3 * that._l23_a * (that._l23_a + that._l12_a); 7339 x2 = (x2 * b + that._x1 * that._l23_2a - x * that._l12_2a) / m, y2 = (y2 * b + that._y1 * that._l23_2a - y * that._l12_2a) / m; 7340 } 7341 that._context.bezierCurveTo(x1, y1, x2, y2, that._x2, that._y2); 7342 } 7343 function CatmullRom(context, alpha) { 7344 this._context = context, this._alpha = alpha; 7345 } 7346 __webpack_exports__.a = point; 7347 var __WEBPACK_IMPORTED_MODULE_0__math__ = __webpack_require__(85), __WEBPACK_IMPORTED_MODULE_1__cardinal__ = __webpack_require__(124); 7348 CatmullRom.prototype = { 7349 areaStart: function() { 7350 this._line = 0; 7351 }, 7352 areaEnd: function() { 7353 this._line = NaN; 7354 }, 7355 lineStart: function() { 7356 this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0; 7357 }, 7358 lineEnd: function() { 7359 switch (this._point) { 7360 case 2: 7361 this._context.lineTo(this._x2, this._y2); 7362 break; 7363 7364 case 3: 7365 this.point(this._x2, this._y2); 7366 } 7367 (this._line || 0 !== this._line && 1 === this._point) && this._context.closePath(), 7368 this._line = 1 - this._line; 7369 }, 7370 point: function(x, y) { 7371 if (x = +x, y = +y, this._point) { 7372 var x23 = this._x2 - x, y23 = this._y2 - y; 7373 this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha)); 7374 } 7375 switch (this._point) { 7376 case 0: 7377 this._point = 1, this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); 7378 break; 7379 7380 case 1: 7381 this._point = 2; 7382 break; 7383 7384 case 2: 7385 this._point = 3; 7386 7387 default: 7388 point(this, x, y); 7389 } 7390 this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, 7391 this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = x, 7392 this._y0 = this._y1, this._y1 = this._y2, this._y2 = y; 7393 } 7394 }; 7395 !function custom(alpha) { 7396 function catmullRom(context) { 7397 return alpha ? new CatmullRom(context, alpha) : new __WEBPACK_IMPORTED_MODULE_1__cardinal__.a(context, 0); 7398 } 7399 return catmullRom.alpha = function(alpha) { 7400 return custom(+alpha); 7401 }, catmullRom; 7402 }(.5); 7403 }, function(module, __webpack_exports__, __webpack_require__) { 7404 "use strict"; 7405 function sum(series) { 7406 for (var v, s = 0, i = -1, n = series.length; ++i < n; ) (v = +series[i][1]) && (s += v); 7407 return s; 7408 } 7409 __webpack_exports__.b = sum; 7410 var __WEBPACK_IMPORTED_MODULE_0__none__ = __webpack_require__(87); 7411 __webpack_exports__.a = function(series) { 7412 var sums = series.map(sum); 7413 return Object(__WEBPACK_IMPORTED_MODULE_0__none__.a)(series).sort(function(a, b) { 7414 return sums[a] - sums[b]; 7415 }); 7416 }; 7417 }, function(module, exports, __webpack_require__) { 7418 function baseIsEqual(value, other, bitmask, customizer, stack) { 7419 return value === other || (null == value || null == other || !isObjectLike(value) && !isObjectLike(other) ? value !== value && other !== other : baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack)); 7420 } 7421 var baseIsEqualDeep = __webpack_require__(657), isObjectLike = __webpack_require__(43); 7422 module.exports = baseIsEqual; 7423 }, function(module, exports, __webpack_require__) { 7424 var getNative = __webpack_require__(59), root = __webpack_require__(36), Map = getNative(root, "Map"); 7425 module.exports = Map; 7426 }, function(module, exports) { 7427 function isObject(value) { 7428 var type = typeof value; 7429 return null != value && ("object" == type || "function" == type); 7430 } 7431 module.exports = isObject; 7432 }, function(module, exports, __webpack_require__) { 7433 function MapCache(entries) { 7434 var index = -1, length = null == entries ? 0 : entries.length; 7435 for (this.clear(); ++index < length; ) { 7436 var entry = entries[index]; 7437 this.set(entry[0], entry[1]); 7438 } 7439 } 7440 var mapCacheClear = __webpack_require__(674), mapCacheDelete = __webpack_require__(681), mapCacheGet = __webpack_require__(683), mapCacheHas = __webpack_require__(684), mapCacheSet = __webpack_require__(685); 7441 MapCache.prototype.clear = mapCacheClear, MapCache.prototype.delete = mapCacheDelete, 7442 MapCache.prototype.get = mapCacheGet, MapCache.prototype.has = mapCacheHas, MapCache.prototype.set = mapCacheSet, 7443 module.exports = MapCache; 7444 }, function(module, exports, __webpack_require__) { 7445 function keys(object) { 7446 return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); 7447 } 7448 var arrayLikeKeys = __webpack_require__(699), baseKeys = __webpack_require__(705), isArrayLike = __webpack_require__(193); 7449 module.exports = keys; 7450 }, function(module, exports) { 7451 function isLength(value) { 7452 return "number" == typeof value && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; 7453 } 7454 var MAX_SAFE_INTEGER = 9007199254740991; 7455 module.exports = isLength; 7456 }, function(module, exports, __webpack_require__) { 7457 function isArrayLike(value) { 7458 return null != value && isLength(value.length) && !isFunction(value); 7459 } 7460 var isFunction = __webpack_require__(291), isLength = __webpack_require__(192); 7461 module.exports = isArrayLike; 7462 }, function(module, exports) { 7463 function arrayMap(array, iteratee) { 7464 for (var index = -1, length = null == array ? 0 : array.length, result = Array(length); ++index < length; ) result[index] = iteratee(array[index], index, array); 7465 return result; 7466 } 7467 module.exports = arrayMap; 7468 }, function(module, exports) { 7469 function identity(value) { 7470 return value; 7471 } 7472 module.exports = identity; 7473 }, function(module, exports, __webpack_require__) { 7474 function isKey(value, object) { 7475 if (isArray(value)) return !1; 7476 var type = typeof value; 7477 return !("number" != type && "symbol" != type && "boolean" != type && null != value && !isSymbol(value)) || (reIsPlainProp.test(value) || !reIsDeepProp.test(value) || null != object && value in Object(object)); 7478 } 7479 var isArray = __webpack_require__(34), isSymbol = __webpack_require__(197), reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/; 7480 module.exports = isKey; 7481 }, function(module, exports, __webpack_require__) { 7482 function isSymbol(value) { 7483 return "symbol" == typeof value || isObjectLike(value) && baseGetTag(value) == symbolTag; 7484 } 7485 var baseGetTag = __webpack_require__(60), isObjectLike = __webpack_require__(43), symbolTag = "[object Symbol]"; 7486 module.exports = isSymbol; 7487 }, function(module, __webpack_exports__, __webpack_require__) { 7488 "use strict"; 7489 function _toConsumableArray(arr) { 7490 if (Array.isArray(arr)) { 7491 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; 7492 return arr2; 7493 } 7494 return Array.from(arr); 7495 } 7496 function autoCompleteStyle(name, value) { 7497 return STYLE_LIST.indexOf(name) >= 0 && value === +value ? value + "px" : value; 7498 } 7499 function camelToMiddleLine(text) { 7500 return text.split("").reduce(function(result, entry) { 7501 return entry === entry.toUpperCase() ? [].concat(_toConsumableArray(result), [ "-", entry.toLowerCase() ]) : [].concat(_toConsumableArray(result), [ entry ]); 7502 }, []).join(""); 7503 } 7504 __webpack_require__.d(__webpack_exports__, "c", function() { 7505 return getStringSize; 7506 }), __webpack_require__.d(__webpack_exports__, "b", function() { 7507 return getOffset; 7508 }), __webpack_require__.d(__webpack_exports__, "a", function() { 7509 return calculateChartCoordinate; 7510 }); 7511 var __WEBPACK_IMPORTED_MODULE_0__ReactUtils__ = __webpack_require__(4), _extends = Object.assign || function(target) { 7512 for (var i = 1; i < arguments.length; i++) { 7513 var source = arguments[i]; 7514 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 7515 } 7516 return target; 7517 }, stringCache = { 7518 widthCache: {}, 7519 cacheCount: 0 7520 }, SPAN_STYLE = { 7521 position: "absolute", 7522 top: "-20000px", 7523 left: 0, 7524 padding: 0, 7525 margin: 0, 7526 border: "none", 7527 whiteSpace: "pre" 7528 }, STYLE_LIST = [ "minWidth", "maxWidth", "width", "minHeight", "maxHeight", "height", "top", "left", "fontSize", "lineHeight", "padding", "margin", "paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom" ], getStyleString = function(style) { 7529 return Object.keys(style).reduce(function(result, s) { 7530 return "" + result + camelToMiddleLine(s) + ":" + autoCompleteStyle(s, style[s]) + ";"; 7531 }, ""); 7532 }, getStringSize = function(text) { 7533 var style = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; 7534 if (void 0 === text || null === text || Object(__WEBPACK_IMPORTED_MODULE_0__ReactUtils__.n)()) return { 7535 width: 0, 7536 height: 0 7537 }; 7538 var str = "" + text, styleString = getStyleString(style), cacheKey = str + "-" + styleString; 7539 if (stringCache.widthCache[cacheKey]) return stringCache.widthCache[cacheKey]; 7540 try { 7541 var measurementSpan = document.getElementById("recharts_measurement_span"); 7542 measurementSpan || (measurementSpan = document.createElement("span"), measurementSpan.setAttribute("id", "recharts_measurement_span"), 7543 document.body.appendChild(measurementSpan)); 7544 var measurementSpanStyle = _extends({}, SPAN_STYLE, style); 7545 Object.keys(measurementSpanStyle).map(function(styleKey) { 7546 return measurementSpan.style[styleKey] = measurementSpanStyle[styleKey], styleKey; 7547 }), measurementSpan.textContent = str; 7548 var rect = measurementSpan.getBoundingClientRect(), result = { 7549 width: rect.width, 7550 height: rect.height 7551 }; 7552 return stringCache.widthCache[cacheKey] = result, ++stringCache.cacheCount > 2e3 && (stringCache.cacheCount = 0, 7553 stringCache.widthCache = {}), result; 7554 } catch (e) { 7555 return { 7556 width: 0, 7557 height: 0 7558 }; 7559 } 7560 }, getOffset = function(el) { 7561 var html = el.ownerDocument.documentElement, box = { 7562 top: 0, 7563 left: 0 7564 }; 7565 return void 0 !== el.getBoundingClientRect && (box = el.getBoundingClientRect()), 7566 { 7567 top: box.top + window.pageYOffset - html.clientTop, 7568 left: box.left + window.pageXOffset - html.clientLeft 7569 }; 7570 }, calculateChartCoordinate = function(event, offset) { 7571 return { 7572 chartX: Math.round(event.pageX - offset.left), 7573 chartY: Math.round(event.pageY - offset.top) 7574 }; 7575 }; 7576 }, function(module, exports, __webpack_require__) { 7577 function baseIsEqual(value, other, bitmask, customizer, stack) { 7578 return value === other || (null == value || null == other || !isObjectLike(value) && !isObjectLike(other) ? value !== value && other !== other : baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack)); 7579 } 7580 var baseIsEqualDeep = __webpack_require__(778), isObjectLike = __webpack_require__(42); 7581 module.exports = baseIsEqual; 7582 }, function(module, exports, __webpack_require__) { 7583 function keys(object) { 7584 return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); 7585 } 7586 var arrayLikeKeys = __webpack_require__(799), baseKeys = __webpack_require__(805), isArrayLike = __webpack_require__(134); 7587 module.exports = keys; 7588 }, function(module, exports, __webpack_require__) { 7589 var baseIsArguments = __webpack_require__(801), isObjectLike = __webpack_require__(42), objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty, propertyIsEnumerable = objectProto.propertyIsEnumerable, isArguments = baseIsArguments(function() { 7590 return arguments; 7591 }()) ? baseIsArguments : function(value) { 7592 return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee"); 7593 }; 7594 module.exports = isArguments; 7595 }, function(module, exports) { 7596 function isIndex(value, length) { 7597 var type = typeof value; 7598 return !!(length = null == length ? MAX_SAFE_INTEGER : length) && ("number" == type || "symbol" != type && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length; 7599 } 7600 var MAX_SAFE_INTEGER = 9007199254740991, reIsUint = /^(?:0|[1-9]\d*)$/; 7601 module.exports = isIndex; 7602 }, function(module, exports) { 7603 function isLength(value) { 7604 return "number" == typeof value && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; 7605 } 7606 var MAX_SAFE_INTEGER = 9007199254740991; 7607 module.exports = isLength; 7608 }, function(module, __webpack_exports__, __webpack_require__) { 7609 "use strict"; 7610 var __WEBPACK_IMPORTED_MODULE_0__number__ = __webpack_require__(90); 7611 __webpack_exports__.a = function(values, p, valueof) { 7612 if (null == valueof && (valueof = __WEBPACK_IMPORTED_MODULE_0__number__.a), n = values.length) { 7613 if ((p = +p) <= 0 || n < 2) return +valueof(values[0], 0, values); 7614 if (p >= 1) return +valueof(values[n - 1], n - 1, values); 7615 var n, i = (n - 1) * p, i0 = Math.floor(i), value0 = +valueof(values[i0], i0, values); 7616 return value0 + (+valueof(values[i0 + 1], i0 + 1, values) - value0) * (i - i0); 7617 } 7618 }; 7619 }, function(module, __webpack_exports__, __webpack_require__) { 7620 "use strict"; 7621 function Map() {} 7622 function map(object, f) { 7623 var map = new Map(); 7624 if (object instanceof Map) object.each(function(value, key) { 7625 map.set(key, value); 7626 }); else if (Array.isArray(object)) { 7627 var o, i = -1, n = object.length; 7628 if (null == f) for (;++i < n; ) map.set(i, object[i]); else for (;++i < n; ) map.set(f(o = object[i], i, object), o); 7629 } else if (object) for (var key in object) map.set(key, object[key]); 7630 return map; 7631 } 7632 __webpack_require__.d(__webpack_exports__, "b", function() { 7633 return prefix; 7634 }); 7635 var prefix = "$"; 7636 Map.prototype = map.prototype = { 7637 constructor: Map, 7638 has: function(key) { 7639 return prefix + key in this; 7640 }, 7641 get: function(key) { 7642 return this[prefix + key]; 7643 }, 7644 set: function(key, value) { 7645 return this[prefix + key] = value, this; 7646 }, 7647 remove: function(key) { 7648 var property = prefix + key; 7649 return property in this && delete this[property]; 7650 }, 7651 clear: function() { 7652 for (var property in this) property[0] === prefix && delete this[property]; 7653 }, 7654 keys: function() { 7655 var keys = []; 7656 for (var property in this) property[0] === prefix && keys.push(property.slice(1)); 7657 return keys; 7658 }, 7659 values: function() { 7660 var values = []; 7661 for (var property in this) property[0] === prefix && values.push(this[property]); 7662 return values; 7663 }, 7664 entries: function() { 7665 var entries = []; 7666 for (var property in this) property[0] === prefix && entries.push({ 7667 key: property.slice(1), 7668 value: this[property] 7669 }); 7670 return entries; 7671 }, 7672 size: function() { 7673 var size = 0; 7674 for (var property in this) property[0] === prefix && ++size; 7675 return size; 7676 }, 7677 empty: function() { 7678 for (var property in this) if (property[0] === prefix) return !1; 7679 return !0; 7680 }, 7681 each: function(f) { 7682 for (var property in this) property[0] === prefix && f(this[property], property.slice(1), this); 7683 } 7684 }, __webpack_exports__.a = map; 7685 }, function(module, __webpack_exports__, __webpack_require__) { 7686 "use strict"; 7687 var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(46), __WEBPACK_IMPORTED_MODULE_1__rgb__ = __webpack_require__(346), __WEBPACK_IMPORTED_MODULE_2__array__ = __webpack_require__(349), __WEBPACK_IMPORTED_MODULE_3__date__ = __webpack_require__(350), __WEBPACK_IMPORTED_MODULE_4__number__ = __webpack_require__(136), __WEBPACK_IMPORTED_MODULE_5__object__ = __webpack_require__(351), __WEBPACK_IMPORTED_MODULE_6__string__ = __webpack_require__(352), __WEBPACK_IMPORTED_MODULE_7__constant__ = __webpack_require__(348); 7688 __webpack_exports__.a = function(a, b) { 7689 var c, t = typeof b; 7690 return null == b || "boolean" === t ? Object(__WEBPACK_IMPORTED_MODULE_7__constant__.a)(b) : ("number" === t ? __WEBPACK_IMPORTED_MODULE_4__number__.a : "string" === t ? (c = Object(__WEBPACK_IMPORTED_MODULE_0_d3_color__.a)(b)) ? (b = c, 7691 __WEBPACK_IMPORTED_MODULE_1__rgb__.a) : __WEBPACK_IMPORTED_MODULE_6__string__.a : b instanceof __WEBPACK_IMPORTED_MODULE_0_d3_color__.a ? __WEBPACK_IMPORTED_MODULE_1__rgb__.a : b instanceof Date ? __WEBPACK_IMPORTED_MODULE_3__date__.a : Array.isArray(b) ? __WEBPACK_IMPORTED_MODULE_2__array__.a : "function" != typeof b.valueOf && "function" != typeof b.toString || isNaN(b) ? __WEBPACK_IMPORTED_MODULE_5__object__.a : __WEBPACK_IMPORTED_MODULE_4__number__.a)(a, b); 7692 }; 7693 }, function(module, __webpack_exports__, __webpack_require__) { 7694 "use strict"; 7695 function Color() {} 7696 function color(format) { 7697 var m; 7698 return format = (format + "").trim().toLowerCase(), (m = reHex3.exec(format)) ? (m = parseInt(m[1], 16), 7699 new Rgb(m >> 8 & 15 | m >> 4 & 240, m >> 4 & 15 | 240 & m, (15 & m) << 4 | 15 & m, 1)) : (m = reHex6.exec(format)) ? rgbn(parseInt(m[1], 16)) : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) : (m = reRgbPercent.exec(format)) ? new Rgb(255 * m[1] / 100, 255 * m[2] / 100, 255 * m[3] / 100, 1) : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) : (m = reRgbaPercent.exec(format)) ? rgba(255 * m[1] / 100, 255 * m[2] / 100, 255 * m[3] / 100, m[4]) : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) : named.hasOwnProperty(format) ? rgbn(named[format]) : "transparent" === format ? new Rgb(NaN, NaN, NaN, 0) : null; 7700 } 7701 function rgbn(n) { 7702 return new Rgb(n >> 16 & 255, n >> 8 & 255, 255 & n, 1); 7703 } 7704 function rgba(r, g, b, a) { 7705 return a <= 0 && (r = g = b = NaN), new Rgb(r, g, b, a); 7706 } 7707 function rgbConvert(o) { 7708 return o instanceof Color || (o = color(o)), o ? (o = o.rgb(), new Rgb(o.r, o.g, o.b, o.opacity)) : new Rgb(); 7709 } 7710 function rgb(r, g, b, opacity) { 7711 return 1 === arguments.length ? rgbConvert(r) : new Rgb(r, g, b, null == opacity ? 1 : opacity); 7712 } 7713 function Rgb(r, g, b, opacity) { 7714 this.r = +r, this.g = +g, this.b = +b, this.opacity = +opacity; 7715 } 7716 function hsla(h, s, l, a) { 7717 return a <= 0 ? h = s = l = NaN : l <= 0 || l >= 1 ? h = s = NaN : s <= 0 && (h = NaN), 7718 new Hsl(h, s, l, a); 7719 } 7720 function hslConvert(o) { 7721 if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity); 7722 if (o instanceof Color || (o = color(o)), !o) return new Hsl(); 7723 if (o instanceof Hsl) return o; 7724 o = o.rgb(); 7725 var r = o.r / 255, g = o.g / 255, b = o.b / 255, min = Math.min(r, g, b), max = Math.max(r, g, b), h = NaN, s = max - min, l = (max + min) / 2; 7726 return s ? (h = r === max ? (g - b) / s + 6 * (g < b) : g === max ? (b - r) / s + 2 : (r - g) / s + 4, 7727 s /= l < .5 ? max + min : 2 - max - min, h *= 60) : s = l > 0 && l < 1 ? 0 : h, 7728 new Hsl(h, s, l, o.opacity); 7729 } 7730 function hsl(h, s, l, opacity) { 7731 return 1 === arguments.length ? hslConvert(h) : new Hsl(h, s, l, null == opacity ? 1 : opacity); 7732 } 7733 function Hsl(h, s, l, opacity) { 7734 this.h = +h, this.s = +s, this.l = +l, this.opacity = +opacity; 7735 } 7736 function hsl2rgb(h, m1, m2) { 7737 return 255 * (h < 60 ? m1 + (m2 - m1) * h / 60 : h < 180 ? m2 : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 : m1); 7738 } 7739 __webpack_exports__.a = Color, __webpack_require__.d(__webpack_exports__, "d", function() { 7740 return darker; 7741 }), __webpack_require__.d(__webpack_exports__, "c", function() { 7742 return brighter; 7743 }), __webpack_exports__.e = color, __webpack_exports__.h = rgbConvert, __webpack_exports__.g = rgb, 7744 __webpack_exports__.b = Rgb, __webpack_exports__.f = hsl; 7745 var __WEBPACK_IMPORTED_MODULE_0__define__ = __webpack_require__(208), darker = .7, brighter = 1 / darker, reI = "\\s*([+-]?\\d+)\\s*", reN = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*", reP = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*", reHex3 = /^#([0-9a-f]{3})$/, reHex6 = /^#([0-9a-f]{6})$/, reRgbInteger = new RegExp("^rgb\\(" + [ reI, reI, reI ] + "\\)$"), reRgbPercent = new RegExp("^rgb\\(" + [ reP, reP, reP ] + "\\)$"), reRgbaInteger = new RegExp("^rgba\\(" + [ reI, reI, reI, reN ] + "\\)$"), reRgbaPercent = new RegExp("^rgba\\(" + [ reP, reP, reP, reN ] + "\\)$"), reHslPercent = new RegExp("^hsl\\(" + [ reN, reP, reP ] + "\\)$"), reHslaPercent = new RegExp("^hsla\\(" + [ reN, reP, reP, reN ] + "\\)$"), named = { 7746 aliceblue: 15792383, 7747 antiquewhite: 16444375, 7748 aqua: 65535, 7749 aquamarine: 8388564, 7750 azure: 15794175, 7751 beige: 16119260, 7752 bisque: 16770244, 7753 black: 0, 7754 blanchedalmond: 16772045, 7755 blue: 255, 7756 blueviolet: 9055202, 7757 brown: 10824234, 7758 burlywood: 14596231, 7759 cadetblue: 6266528, 7760 chartreuse: 8388352, 7761 chocolate: 13789470, 7762 coral: 16744272, 7763 cornflowerblue: 6591981, 7764 cornsilk: 16775388, 7765 crimson: 14423100, 7766 cyan: 65535, 7767 darkblue: 139, 7768 darkcyan: 35723, 7769 darkgoldenrod: 12092939, 7770 darkgray: 11119017, 7771 darkgreen: 25600, 7772 darkgrey: 11119017, 7773 darkkhaki: 12433259, 7774 darkmagenta: 9109643, 7775 darkolivegreen: 5597999, 7776 darkorange: 16747520, 7777 darkorchid: 10040012, 7778 darkred: 9109504, 7779 darksalmon: 15308410, 7780 darkseagreen: 9419919, 7781 darkslateblue: 4734347, 7782 darkslategray: 3100495, 7783 darkslategrey: 3100495, 7784 darkturquoise: 52945, 7785 darkviolet: 9699539, 7786 deeppink: 16716947, 7787 deepskyblue: 49151, 7788 dimgray: 6908265, 7789 dimgrey: 6908265, 7790 dodgerblue: 2003199, 7791 firebrick: 11674146, 7792 floralwhite: 16775920, 7793 forestgreen: 2263842, 7794 fuchsia: 16711935, 7795 gainsboro: 14474460, 7796 ghostwhite: 16316671, 7797 gold: 16766720, 7798 goldenrod: 14329120, 7799 gray: 8421504, 7800 green: 32768, 7801 greenyellow: 11403055, 7802 grey: 8421504, 7803 honeydew: 15794160, 7804 hotpink: 16738740, 7805 indianred: 13458524, 7806 indigo: 4915330, 7807 ivory: 16777200, 7808 khaki: 15787660, 7809 lavender: 15132410, 7810 lavenderblush: 16773365, 7811 lawngreen: 8190976, 7812 lemonchiffon: 16775885, 7813 lightblue: 11393254, 7814 lightcoral: 15761536, 7815 lightcyan: 14745599, 7816 lightgoldenrodyellow: 16448210, 7817 lightgray: 13882323, 7818 lightgreen: 9498256, 7819 lightgrey: 13882323, 7820 lightpink: 16758465, 7821 lightsalmon: 16752762, 7822 lightseagreen: 2142890, 7823 lightskyblue: 8900346, 7824 lightslategray: 7833753, 7825 lightslategrey: 7833753, 7826 lightsteelblue: 11584734, 7827 lightyellow: 16777184, 7828 lime: 65280, 7829 limegreen: 3329330, 7830 linen: 16445670, 7831 magenta: 16711935, 7832 maroon: 8388608, 7833 mediumaquamarine: 6737322, 7834 mediumblue: 205, 7835 mediumorchid: 12211667, 7836 mediumpurple: 9662683, 7837 mediumseagreen: 3978097, 7838 mediumslateblue: 8087790, 7839 mediumspringgreen: 64154, 7840 mediumturquoise: 4772300, 7841 mediumvioletred: 13047173, 7842 midnightblue: 1644912, 7843 mintcream: 16121850, 7844 mistyrose: 16770273, 7845 moccasin: 16770229, 7846 navajowhite: 16768685, 7847 navy: 128, 7848 oldlace: 16643558, 7849 olive: 8421376, 7850 olivedrab: 7048739, 7851 orange: 16753920, 7852 orangered: 16729344, 7853 orchid: 14315734, 7854 palegoldenrod: 15657130, 7855 palegreen: 10025880, 7856 paleturquoise: 11529966, 7857 palevioletred: 14381203, 7858 papayawhip: 16773077, 7859 peachpuff: 16767673, 7860 peru: 13468991, 7861 pink: 16761035, 7862 plum: 14524637, 7863 powderblue: 11591910, 7864 purple: 8388736, 7865 rebeccapurple: 6697881, 7866 red: 16711680, 7867 rosybrown: 12357519, 7868 royalblue: 4286945, 7869 saddlebrown: 9127187, 7870 salmon: 16416882, 7871 sandybrown: 16032864, 7872 seagreen: 3050327, 7873 seashell: 16774638, 7874 sienna: 10506797, 7875 silver: 12632256, 7876 skyblue: 8900331, 7877 slateblue: 6970061, 7878 slategray: 7372944, 7879 slategrey: 7372944, 7880 snow: 16775930, 7881 springgreen: 65407, 7882 steelblue: 4620980, 7883 tan: 13808780, 7884 teal: 32896, 7885 thistle: 14204888, 7886 tomato: 16737095, 7887 turquoise: 4251856, 7888 violet: 15631086, 7889 wheat: 16113331, 7890 white: 16777215, 7891 whitesmoke: 16119285, 7892 yellow: 16776960, 7893 yellowgreen: 10145074 7894 }; 7895 Object(__WEBPACK_IMPORTED_MODULE_0__define__.a)(Color, color, { 7896 displayable: function() { 7897 return this.rgb().displayable(); 7898 }, 7899 toString: function() { 7900 return this.rgb() + ""; 7901 } 7902 }), Object(__WEBPACK_IMPORTED_MODULE_0__define__.a)(Rgb, rgb, Object(__WEBPACK_IMPORTED_MODULE_0__define__.b)(Color, { 7903 brighter: function(k) { 7904 return k = null == k ? brighter : Math.pow(brighter, k), new Rgb(this.r * k, this.g * k, this.b * k, this.opacity); 7905 }, 7906 darker: function(k) { 7907 return k = null == k ? darker : Math.pow(darker, k), new Rgb(this.r * k, this.g * k, this.b * k, this.opacity); 7908 }, 7909 rgb: function() { 7910 return this; 7911 }, 7912 displayable: function() { 7913 return 0 <= this.r && this.r <= 255 && 0 <= this.g && this.g <= 255 && 0 <= this.b && this.b <= 255 && 0 <= this.opacity && this.opacity <= 1; 7914 }, 7915 toString: function() { 7916 var a = this.opacity; 7917 return a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a)), (1 === a ? "rgb(" : "rgba(") + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.b) || 0)) + (1 === a ? ")" : ", " + a + ")"); 7918 } 7919 })), Object(__WEBPACK_IMPORTED_MODULE_0__define__.a)(Hsl, hsl, Object(__WEBPACK_IMPORTED_MODULE_0__define__.b)(Color, { 7920 brighter: function(k) { 7921 return k = null == k ? brighter : Math.pow(brighter, k), new Hsl(this.h, this.s, this.l * k, this.opacity); 7922 }, 7923 darker: function(k) { 7924 return k = null == k ? darker : Math.pow(darker, k), new Hsl(this.h, this.s, this.l * k, this.opacity); 7925 }, 7926 rgb: function() { 7927 var h = this.h % 360 + 360 * (this.h < 0), s = isNaN(h) || isNaN(this.s) ? 0 : this.s, l = this.l, m2 = l + (l < .5 ? l : 1 - l) * s, m1 = 2 * l - m2; 7928 return new Rgb(hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2), hsl2rgb(h, m1, m2), hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2), this.opacity); 7929 }, 7930 displayable: function() { 7931 return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1; 7932 } 7933 })); 7934 }, function(module, __webpack_exports__, __webpack_require__) { 7935 "use strict"; 7936 function extend(parent, definition) { 7937 var prototype = Object.create(parent.prototype); 7938 for (var key in definition) prototype[key] = definition[key]; 7939 return prototype; 7940 } 7941 __webpack_exports__.b = extend, __webpack_exports__.a = function(constructor, factory, prototype) { 7942 constructor.prototype = factory.prototype = prototype, prototype.constructor = constructor; 7943 }; 7944 }, function(module, __webpack_exports__, __webpack_require__) { 7945 "use strict"; 7946 function basis(t1, v0, v1, v2, v3) { 7947 var t2 = t1 * t1, t3 = t2 * t1; 7948 return ((1 - 3 * t1 + 3 * t2 - t3) * v0 + (4 - 6 * t2 + 3 * t3) * v1 + (1 + 3 * t1 + 3 * t2 - 3 * t3) * v2 + t3 * v3) / 6; 7949 } 7950 __webpack_exports__.a = basis, __webpack_exports__.b = function(values) { 7951 var n = values.length - 1; 7952 return function(t) { 7953 var i = t <= 0 ? t = 0 : t >= 1 ? (t = 1, n - 1) : Math.floor(t * n), v1 = values[i], v2 = values[i + 1], v0 = i > 0 ? values[i - 1] : 2 * v1 - v2, v3 = i < n - 1 ? values[i + 2] : 2 * v2 - v1; 7954 return basis((t - i / n) * n, v0, v1, v2, v3); 7955 }; 7956 }; 7957 }, function(module, __webpack_exports__, __webpack_require__) { 7958 "use strict"; 7959 __webpack_exports__.a = function(x) { 7960 return function() { 7961 return x; 7962 }; 7963 }; 7964 }, function(module, __webpack_exports__, __webpack_require__) { 7965 "use strict"; 7966 __webpack_exports__.a = function(x, p) { 7967 if ((i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf("e")) < 0) return null; 7968 var i, coefficient = x.slice(0, i); 7969 return [ coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient, +x.slice(i + 1) ]; 7970 }; 7971 }, function(module, __webpack_exports__, __webpack_require__) { 7972 "use strict"; 7973 var __WEBPACK_IMPORTED_MODULE_1__src_millisecond__ = (__webpack_require__(18), __webpack_require__(898)); 7974 __webpack_require__.d(__webpack_exports__, "c", function() { 7975 return __WEBPACK_IMPORTED_MODULE_1__src_millisecond__.a; 7976 }), __webpack_require__.d(__webpack_exports__, "n", function() { 7977 return __WEBPACK_IMPORTED_MODULE_1__src_millisecond__.a; 7978 }); 7979 var __WEBPACK_IMPORTED_MODULE_2__src_second__ = __webpack_require__(899); 7980 __webpack_require__.d(__webpack_exports__, "g", function() { 7981 return __WEBPACK_IMPORTED_MODULE_2__src_second__.a; 7982 }), __webpack_require__.d(__webpack_exports__, "r", function() { 7983 return __WEBPACK_IMPORTED_MODULE_2__src_second__.a; 7984 }); 7985 var __WEBPACK_IMPORTED_MODULE_3__src_minute__ = __webpack_require__(900); 7986 __webpack_require__.d(__webpack_exports__, "d", function() { 7987 return __WEBPACK_IMPORTED_MODULE_3__src_minute__.a; 7988 }); 7989 var __WEBPACK_IMPORTED_MODULE_4__src_hour__ = __webpack_require__(901); 7990 __webpack_require__.d(__webpack_exports__, "b", function() { 7991 return __WEBPACK_IMPORTED_MODULE_4__src_hour__.a; 7992 }); 7993 var __WEBPACK_IMPORTED_MODULE_5__src_day__ = __webpack_require__(902); 7994 __webpack_require__.d(__webpack_exports__, "a", function() { 7995 return __WEBPACK_IMPORTED_MODULE_5__src_day__.a; 7996 }); 7997 var __WEBPACK_IMPORTED_MODULE_6__src_week__ = __webpack_require__(903); 7998 __webpack_require__.d(__webpack_exports__, "j", function() { 7999 return __WEBPACK_IMPORTED_MODULE_6__src_week__.b; 8000 }), __webpack_require__.d(__webpack_exports__, "h", function() { 8001 return __WEBPACK_IMPORTED_MODULE_6__src_week__.b; 8002 }), __webpack_require__.d(__webpack_exports__, "e", function() { 8003 return __WEBPACK_IMPORTED_MODULE_6__src_week__.a; 8004 }), __webpack_require__.d(__webpack_exports__, "i", function() { 8005 return __WEBPACK_IMPORTED_MODULE_6__src_week__.c; 8006 }); 8007 var __WEBPACK_IMPORTED_MODULE_7__src_month__ = __webpack_require__(904); 8008 __webpack_require__.d(__webpack_exports__, "f", function() { 8009 return __WEBPACK_IMPORTED_MODULE_7__src_month__.a; 8010 }); 8011 var __WEBPACK_IMPORTED_MODULE_8__src_year__ = __webpack_require__(905); 8012 __webpack_require__.d(__webpack_exports__, "k", function() { 8013 return __WEBPACK_IMPORTED_MODULE_8__src_year__.a; 8014 }); 8015 var __WEBPACK_IMPORTED_MODULE_9__src_utcMinute__ = __webpack_require__(906); 8016 __webpack_require__.d(__webpack_exports__, "o", function() { 8017 return __WEBPACK_IMPORTED_MODULE_9__src_utcMinute__.a; 8018 }); 8019 var __WEBPACK_IMPORTED_MODULE_10__src_utcHour__ = __webpack_require__(907); 8020 __webpack_require__.d(__webpack_exports__, "m", function() { 8021 return __WEBPACK_IMPORTED_MODULE_10__src_utcHour__.a; 8022 }); 8023 var __WEBPACK_IMPORTED_MODULE_11__src_utcDay__ = __webpack_require__(908); 8024 __webpack_require__.d(__webpack_exports__, "l", function() { 8025 return __WEBPACK_IMPORTED_MODULE_11__src_utcDay__.a; 8026 }); 8027 var __WEBPACK_IMPORTED_MODULE_12__src_utcWeek__ = __webpack_require__(909); 8028 __webpack_require__.d(__webpack_exports__, "u", function() { 8029 return __WEBPACK_IMPORTED_MODULE_12__src_utcWeek__.b; 8030 }), __webpack_require__.d(__webpack_exports__, "s", function() { 8031 return __WEBPACK_IMPORTED_MODULE_12__src_utcWeek__.b; 8032 }), __webpack_require__.d(__webpack_exports__, "p", function() { 8033 return __WEBPACK_IMPORTED_MODULE_12__src_utcWeek__.a; 8034 }), __webpack_require__.d(__webpack_exports__, "t", function() { 8035 return __WEBPACK_IMPORTED_MODULE_12__src_utcWeek__.c; 8036 }); 8037 var __WEBPACK_IMPORTED_MODULE_13__src_utcMonth__ = __webpack_require__(910); 8038 __webpack_require__.d(__webpack_exports__, "q", function() { 8039 return __WEBPACK_IMPORTED_MODULE_13__src_utcMonth__.a; 8040 }); 8041 var __WEBPACK_IMPORTED_MODULE_14__src_utcYear__ = __webpack_require__(911); 8042 __webpack_require__.d(__webpack_exports__, "v", function() { 8043 return __WEBPACK_IMPORTED_MODULE_14__src_utcYear__.a; 8044 }); 8045 }, function(module, __webpack_exports__, __webpack_require__) { 8046 "use strict"; 8047 __webpack_require__.d(__webpack_exports__, "a", function() { 8048 return timeFormat; 8049 }), __webpack_require__.d(__webpack_exports__, "b", function() { 8050 return utcFormat; 8051 }), __webpack_require__.d(__webpack_exports__, "c", function() { 8052 return utcParse; 8053 }); 8054 var locale, timeFormat, timeParse, utcFormat, utcParse, __WEBPACK_IMPORTED_MODULE_0__locale__ = __webpack_require__(362); 8055 !function(definition) { 8056 locale = Object(__WEBPACK_IMPORTED_MODULE_0__locale__.a)(definition), timeFormat = locale.format, 8057 timeParse = locale.parse, utcFormat = locale.utcFormat, utcParse = locale.utcParse; 8058 }({ 8059 dateTime: "%x, %X", 8060 date: "%-m/%-d/%Y", 8061 time: "%-I:%M:%S %p", 8062 periods: [ "AM", "PM" ], 8063 days: [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ], 8064 shortDays: [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ], 8065 months: [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ], 8066 shortMonths: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ] 8067 }); 8068 }, function(module, __webpack_exports__, __webpack_require__) { 8069 "use strict"; 8070 function _classCallCheck(instance, Constructor) { 8071 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 8072 } 8073 function _possibleConstructorReturn(self, call) { 8074 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 8075 return !call || "object" != typeof call && "function" != typeof call ? self : call; 8076 } 8077 function _inherits(subClass, superClass) { 8078 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 8079 subClass.prototype = Object.create(superClass && superClass.prototype, { 8080 constructor: { 8081 value: subClass, 8082 enumerable: !1, 8083 writable: !0, 8084 configurable: !0 8085 } 8086 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 8087 } 8088 var _class, _class2, _temp, __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__), __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__), __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(3), __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__), __WEBPACK_IMPORTED_MODULE_3__util_PureRender__ = __webpack_require__(5), __WEBPACK_IMPORTED_MODULE_4__util_ReactUtils__ = __webpack_require__(4), _extends = Object.assign || function(target) { 8089 for (var i = 1; i < arguments.length; i++) { 8090 var source = arguments[i]; 8091 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 8092 } 8093 return target; 8094 }, _createClass = function() { 8095 function defineProperties(target, props) { 8096 for (var i = 0; i < props.length; i++) { 8097 var descriptor = props[i]; 8098 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 8099 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 8100 } 8101 } 8102 return function(Constructor, protoProps, staticProps) { 8103 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 8104 Constructor; 8105 }; 8106 }(), getPolygonPoints = function(points) { 8107 return points.reduce(function(result, entry) { 8108 return entry.x === +entry.x && entry.y === +entry.y && result.push([ entry.x, entry.y ]), 8109 result; 8110 }, []).join(" "); 8111 }, Polygon = Object(__WEBPACK_IMPORTED_MODULE_3__util_PureRender__.a)((_temp = _class2 = function(_Component) { 8112 function Polygon() { 8113 return _classCallCheck(this, Polygon), _possibleConstructorReturn(this, (Polygon.__proto__ || Object.getPrototypeOf(Polygon)).apply(this, arguments)); 8114 } 8115 return _inherits(Polygon, _Component), _createClass(Polygon, [ { 8116 key: "render", 8117 value: function() { 8118 var _props = this.props, points = _props.points, className = _props.className; 8119 if (!points || !points.length) return null; 8120 var layerClass = __WEBPACK_IMPORTED_MODULE_2_classnames___default()("recharts-polygon", className); 8121 return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("polygon", _extends({}, Object(__WEBPACK_IMPORTED_MODULE_4__util_ReactUtils__.k)(this.props), Object(__WEBPACK_IMPORTED_MODULE_4__util_ReactUtils__.e)(this.props), { 8122 className: layerClass, 8123 points: getPolygonPoints(points) 8124 })); 8125 } 8126 } ]), Polygon; 8127 }(__WEBPACK_IMPORTED_MODULE_0_react__.Component), _class2.displayName = "Polygon", 8128 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_4__util_ReactUtils__.c, { 8129 className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, 8130 points: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape({ 8131 x: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 8132 y: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number 8133 })) 8134 }), _class = _temp)) || _class; 8135 __webpack_exports__.a = Polygon; 8136 }, function(module, __webpack_exports__, __webpack_require__) { 8137 "use strict"; 8138 function _objectWithoutProperties(obj, keys) { 8139 var target = {}; 8140 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 8141 return target; 8142 } 8143 function _toConsumableArray(arr) { 8144 if (Array.isArray(arr)) { 8145 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; 8146 return arr2; 8147 } 8148 return Array.from(arr); 8149 } 8150 function _classCallCheck(instance, Constructor) { 8151 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 8152 } 8153 function _possibleConstructorReturn(self, call) { 8154 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 8155 return !call || "object" != typeof call && "function" != typeof call ? self : call; 8156 } 8157 function _inherits(subClass, superClass) { 8158 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 8159 subClass.prototype = Object.create(superClass && superClass.prototype, { 8160 constructor: { 8161 value: subClass, 8162 enumerable: !1, 8163 writable: !0, 8164 configurable: !0 8165 } 8166 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 8167 } 8168 var _class, _class2, _temp2, __WEBPACK_IMPORTED_MODULE_0_lodash_isEqual__ = __webpack_require__(45), __WEBPACK_IMPORTED_MODULE_0_lodash_isEqual___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isEqual__), __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction__ = __webpack_require__(8), __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isFunction__), __WEBPACK_IMPORTED_MODULE_2_lodash_isNil__ = __webpack_require__(20), __WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_lodash_isNil__), __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__), __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__), __WEBPACK_IMPORTED_MODULE_5_react_smooth__ = __webpack_require__(33), __WEBPACK_IMPORTED_MODULE_5_react_smooth___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react_smooth__), __WEBPACK_IMPORTED_MODULE_6_classnames__ = __webpack_require__(3), __WEBPACK_IMPORTED_MODULE_6_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_classnames__), __WEBPACK_IMPORTED_MODULE_7__util_PureRender__ = __webpack_require__(5), __WEBPACK_IMPORTED_MODULE_8__shape_Curve__ = __webpack_require__(71), __WEBPACK_IMPORTED_MODULE_9__shape_Dot__ = __webpack_require__(63), __WEBPACK_IMPORTED_MODULE_10__container_Layer__ = __webpack_require__(14), __WEBPACK_IMPORTED_MODULE_11__component_LabelList__ = __webpack_require__(47), __WEBPACK_IMPORTED_MODULE_12__ErrorBar__ = __webpack_require__(95), __WEBPACK_IMPORTED_MODULE_13__util_DataUtils__ = __webpack_require__(9), __WEBPACK_IMPORTED_MODULE_14__util_ReactUtils__ = __webpack_require__(4), __WEBPACK_IMPORTED_MODULE_15__util_ChartUtils__ = __webpack_require__(16), _extends = Object.assign || function(target) { 8169 for (var i = 1; i < arguments.length; i++) { 8170 var source = arguments[i]; 8171 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 8172 } 8173 return target; 8174 }, _createClass = function() { 8175 function defineProperties(target, props) { 8176 for (var i = 0; i < props.length; i++) { 8177 var descriptor = props[i]; 8178 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 8179 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 8180 } 8181 } 8182 return function(Constructor, protoProps, staticProps) { 8183 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 8184 Constructor; 8185 }; 8186 }(), Line = Object(__WEBPACK_IMPORTED_MODULE_7__util_PureRender__.a)((_temp2 = _class2 = function(_Component) { 8187 function Line() { 8188 var _ref, _temp, _this, _ret; 8189 _classCallCheck(this, Line); 8190 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 8191 return _temp = _this = _possibleConstructorReturn(this, (_ref = Line.__proto__ || Object.getPrototypeOf(Line)).call.apply(_ref, [ this ].concat(args))), 8192 _this.state = { 8193 isAnimationFinished: !0, 8194 totalLength: 0 8195 }, _this.id = Object(__WEBPACK_IMPORTED_MODULE_13__util_DataUtils__.k)("recharts-line-"), 8196 _this.cachePrevData = function(points) { 8197 _this.setState({ 8198 prevPoints: points 8199 }); 8200 }, _this.pathRef = function(node) { 8201 _this.mainCurve = node; 8202 }, _this.handleAnimationEnd = function() { 8203 _this.setState({ 8204 isAnimationFinished: !0 8205 }), _this.props.onAnimationEnd(); 8206 }, _this.handleAnimationStart = function() { 8207 _this.setState({ 8208 isAnimationFinished: !1 8209 }), _this.props.onAnimationStart(); 8210 }, _ret = _temp, _possibleConstructorReturn(_this, _ret); 8211 } 8212 return _inherits(Line, _Component), _createClass(Line, [ { 8213 key: "componentDidMount", 8214 value: function() { 8215 if (this.props.isAnimationActive) { 8216 var totalLength = this.getTotalLength(); 8217 this.setState({ 8218 totalLength: totalLength 8219 }); 8220 } 8221 } 8222 }, { 8223 key: "componentWillReceiveProps", 8224 value: function(nextProps) { 8225 var _props = this.props, animationId = _props.animationId, points = _props.points; 8226 nextProps.animationId !== animationId && this.cachePrevData(points); 8227 } 8228 }, { 8229 key: "getTotalLength", 8230 value: function() { 8231 var curveDom = this.mainCurve; 8232 try { 8233 return curveDom && curveDom.getTotalLength && curveDom.getTotalLength() || 0; 8234 } catch (err) { 8235 return 0; 8236 } 8237 } 8238 }, { 8239 key: "getStrokeDasharray", 8240 value: function(length, totalLength, lines) { 8241 for (var lineLength = lines.reduce(function(pre, next) { 8242 return pre + next; 8243 }), count = parseInt(length / lineLength, 10), remainLength = length % lineLength, restLength = totalLength - length, remainLines = [], i = 0, sum = 0; ;sum += lines[i], 8244 ++i) if (sum + lines[i] > remainLength) { 8245 remainLines = [].concat(_toConsumableArray(lines.slice(0, i)), [ remainLength - sum ]); 8246 break; 8247 } 8248 var emptyLines = remainLines.length % 2 == 0 ? [ 0, restLength ] : [ restLength ]; 8249 return [].concat(_toConsumableArray(this.repeat(lines, count)), _toConsumableArray(remainLines), emptyLines).map(function(line) { 8250 return line + "px"; 8251 }).join(", "); 8252 } 8253 }, { 8254 key: "repeat", 8255 value: function(lines, count) { 8256 for (var linesUnit = lines.length % 2 != 0 ? [].concat(_toConsumableArray(lines), [ 0 ]) : lines, result = [], i = 0; i < count; ++i) result = [].concat(_toConsumableArray(result), _toConsumableArray(linesUnit)); 8257 return result; 8258 } 8259 }, { 8260 key: "renderErrorBar", 8261 value: function() { 8262 function dataPointFormatter(dataPoint, dataKey) { 8263 return { 8264 x: dataPoint.x, 8265 y: dataPoint.y, 8266 value: dataPoint.value, 8267 errorVal: Object(__WEBPACK_IMPORTED_MODULE_15__util_ChartUtils__.w)(dataPoint.payload, dataKey) 8268 }; 8269 } 8270 if (this.props.isAnimationActive && !this.state.isAnimationFinished) return null; 8271 var _props2 = this.props, points = _props2.points, xAxis = _props2.xAxis, yAxis = _props2.yAxis, layout = _props2.layout, children = _props2.children, errorBarItems = Object(__WEBPACK_IMPORTED_MODULE_14__util_ReactUtils__.h)(children, __WEBPACK_IMPORTED_MODULE_12__ErrorBar__.a); 8272 return errorBarItems ? errorBarItems.map(function(item, i) { 8273 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.cloneElement(item, { 8274 key: i, 8275 data: points, 8276 xAxis: xAxis, 8277 yAxis: yAxis, 8278 layout: layout, 8279 dataPointFormatter: dataPointFormatter 8280 }); 8281 }) : null; 8282 } 8283 }, { 8284 key: "renderDotItem", 8285 value: function(option, props) { 8286 var dotItem = void 0; 8287 if (__WEBPACK_IMPORTED_MODULE_3_react___default.a.isValidElement(option)) dotItem = __WEBPACK_IMPORTED_MODULE_3_react___default.a.cloneElement(option, props); else if (__WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(option)) dotItem = option(props); else { 8288 var className = __WEBPACK_IMPORTED_MODULE_6_classnames___default()("recharts-line-dot", option ? option.className : ""); 8289 dotItem = __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__shape_Dot__.a, _extends({}, props, { 8290 className: className 8291 })); 8292 } 8293 return dotItem; 8294 } 8295 }, { 8296 key: "renderDots", 8297 value: function() { 8298 var _this2 = this; 8299 if (this.props.isAnimationActive && !this.state.isAnimationFinished) return null; 8300 var _props3 = this.props, dot = _props3.dot, points = _props3.points, dataKey = _props3.dataKey, lineProps = Object(__WEBPACK_IMPORTED_MODULE_14__util_ReactUtils__.k)(this.props), customDotProps = Object(__WEBPACK_IMPORTED_MODULE_14__util_ReactUtils__.k)(dot), dotEvents = Object(__WEBPACK_IMPORTED_MODULE_14__util_ReactUtils__.e)(dot), dots = points.map(function(entry, i) { 8301 var dotProps = _extends({ 8302 key: "dot-" + i, 8303 r: 3 8304 }, lineProps, customDotProps, dotEvents, { 8305 value: entry.value, 8306 dataKey: dataKey, 8307 cx: entry.x, 8308 cy: entry.y, 8309 index: i, 8310 payload: entry.payload 8311 }); 8312 return _this2.renderDotItem(dot, dotProps); 8313 }); 8314 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10__container_Layer__.a, { 8315 className: "recharts-line-dots", 8316 key: "dots" 8317 }, dots); 8318 } 8319 }, { 8320 key: "renderCurveStatically", 8321 value: function(points, needClip, props) { 8322 var _props4 = this.props, type = _props4.type, layout = _props4.layout, connectNulls = _props4.connectNulls, id = _props4.id, clipPathId = __WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default()(id) ? this.id : id, curveProps = _extends({}, Object(__WEBPACK_IMPORTED_MODULE_14__util_ReactUtils__.k)(this.props), Object(__WEBPACK_IMPORTED_MODULE_14__util_ReactUtils__.e)(this.props), { 8323 fill: "none", 8324 className: "recharts-line-curve", 8325 clipPath: needClip ? "url(#clipPath-" + clipPathId + ")" : null, 8326 points: points 8327 }, props, { 8328 type: type, 8329 layout: layout, 8330 connectNulls: connectNulls 8331 }); 8332 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__shape_Curve__.a, _extends({}, curveProps, { 8333 pathRef: this.pathRef 8334 })); 8335 } 8336 }, { 8337 key: "renderCurveWithAnimation", 8338 value: function(needClip) { 8339 var _this3 = this, _props5 = this.props, points = _props5.points, strokeDasharray = _props5.strokeDasharray, isAnimationActive = _props5.isAnimationActive, animationBegin = _props5.animationBegin, animationDuration = _props5.animationDuration, animationEasing = _props5.animationEasing, animationId = _props5.animationId, width = _props5.width, height = _props5.height, _state = (_objectWithoutProperties(_props5, [ "points", "strokeDasharray", "isAnimationActive", "animationBegin", "animationDuration", "animationEasing", "animationId", "width", "height" ]), 8340 this.state), prevPoints = _state.prevPoints, totalLength = _state.totalLength; 8341 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5_react_smooth___default.a, { 8342 begin: animationBegin, 8343 duration: animationDuration, 8344 isActive: isAnimationActive, 8345 easing: animationEasing, 8346 from: { 8347 t: 0 8348 }, 8349 to: { 8350 t: 1 8351 }, 8352 key: "line-" + animationId, 8353 onAnimationEnd: this.handleAnimationEnd, 8354 onAnimationStart: this.handleAnimationStart 8355 }, function(_ref2) { 8356 var t = _ref2.t; 8357 if (prevPoints) { 8358 var stepData = points.map(function(entry, index) { 8359 if (prevPoints[index]) { 8360 var prev = prevPoints[index], _interpolatorX = Object(__WEBPACK_IMPORTED_MODULE_13__util_DataUtils__.f)(prev.x, entry.x), _interpolatorY = Object(__WEBPACK_IMPORTED_MODULE_13__util_DataUtils__.f)(prev.y, entry.y); 8361 return _extends({}, entry, { 8362 x: _interpolatorX(t), 8363 y: _interpolatorY(t) 8364 }); 8365 } 8366 var interpolatorX = Object(__WEBPACK_IMPORTED_MODULE_13__util_DataUtils__.f)(2 * width, entry.x), interpolatorY = Object(__WEBPACK_IMPORTED_MODULE_13__util_DataUtils__.f)(height / 2, entry.y); 8367 return _extends({}, entry, { 8368 x: interpolatorX(t), 8369 y: interpolatorY(t) 8370 }); 8371 }); 8372 return _this3.renderCurveStatically(stepData, needClip); 8373 } 8374 var interpolator = Object(__WEBPACK_IMPORTED_MODULE_13__util_DataUtils__.f)(0, totalLength), curLength = interpolator(t), currentStrokeDasharray = void 0; 8375 if (strokeDasharray) { 8376 var lines = strokeDasharray.split(/[,\s]+/gim).map(function(num) { 8377 return parseFloat(num); 8378 }); 8379 currentStrokeDasharray = _this3.getStrokeDasharray(curLength, totalLength, lines); 8380 } else currentStrokeDasharray = curLength + "px " + (totalLength - curLength) + "px"; 8381 return _this3.renderCurveStatically(points, needClip, { 8382 strokeDasharray: currentStrokeDasharray 8383 }); 8384 }); 8385 } 8386 }, { 8387 key: "renderCurve", 8388 value: function(needClip) { 8389 var _props6 = this.props, points = _props6.points, isAnimationActive = _props6.isAnimationActive, _state2 = this.state, prevPoints = _state2.prevPoints, totalLength = _state2.totalLength; 8390 return isAnimationActive && points && points.length && (!prevPoints && totalLength > 0 || !__WEBPACK_IMPORTED_MODULE_0_lodash_isEqual___default()(prevPoints, points)) ? this.renderCurveWithAnimation(needClip) : this.renderCurveStatically(points, needClip); 8391 } 8392 }, { 8393 key: "render", 8394 value: function() { 8395 var _props7 = this.props, hide = _props7.hide, dot = _props7.dot, points = _props7.points, className = _props7.className, xAxis = _props7.xAxis, yAxis = _props7.yAxis, top = _props7.top, left = _props7.left, width = _props7.width, height = _props7.height, isAnimationActive = _props7.isAnimationActive, id = _props7.id; 8396 if (hide || !points || !points.length) return null; 8397 var isAnimationFinished = this.state.isAnimationFinished, hasSinglePoint = 1 === points.length, layerClass = __WEBPACK_IMPORTED_MODULE_6_classnames___default()("recharts-line", className), needClip = xAxis && xAxis.allowDataOverflow || yAxis && yAxis.allowDataOverflow, clipPathId = __WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default()(id) ? this.id : id; 8398 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10__container_Layer__.a, { 8399 className: layerClass 8400 }, needClip ? __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement("defs", null, __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement("clipPath", { 8401 id: "clipPath-" + clipPathId 8402 }, __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement("rect", { 8403 x: left, 8404 y: top, 8405 width: width, 8406 height: height 8407 }))) : null, !hasSinglePoint && this.renderCurve(needClip), this.renderErrorBar(), (hasSinglePoint || dot) && this.renderDots(), (!isAnimationActive || isAnimationFinished) && __WEBPACK_IMPORTED_MODULE_11__component_LabelList__.a.renderCallByParent(this.props, points)); 8408 } 8409 } ]), Line; 8410 }(__WEBPACK_IMPORTED_MODULE_3_react__.Component), _class2.displayName = "Line", 8411 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_14__util_ReactUtils__.c, __WEBPACK_IMPORTED_MODULE_14__util_ReactUtils__.a, { 8412 className: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, 8413 type: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf([ "basis", "basisClosed", "basisOpen", "linear", "linearClosed", "natural", "monotoneX", "monotoneY", "monotone", "step", "stepBefore", "stepAfter" ]), __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func ]), 8414 unit: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number ]), 8415 name: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number ]), 8416 yAxisId: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number ]), 8417 xAxisId: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number ]), 8418 yAxis: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object, 8419 xAxis: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object, 8420 legendType: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf(__WEBPACK_IMPORTED_MODULE_14__util_ReactUtils__.b), 8421 layout: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf([ "horizontal", "vertical" ]), 8422 connectNulls: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool, 8423 hide: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool, 8424 activeDot: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.element, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool ]), 8425 dot: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.element, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool ]), 8426 top: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 8427 left: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 8428 width: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 8429 height: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 8430 points: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.shape({ 8431 x: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 8432 y: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 8433 value: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.value 8434 })), 8435 onAnimationStart: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func, 8436 onAnimationEnd: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func, 8437 isAnimationActive: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool, 8438 animationBegin: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 8439 animationDuration: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 8440 animationEasing: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf([ "ease", "ease-in", "ease-out", "ease-in-out", "linear" ]), 8441 animationId: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 8442 id: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string 8443 }), _class2.defaultProps = { 8444 xAxisId: 0, 8445 yAxisId: 0, 8446 connectNulls: !1, 8447 activeDot: !0, 8448 dot: !0, 8449 legendType: "line", 8450 stroke: "#3182bd", 8451 strokeWidth: 1, 8452 fill: "#fff", 8453 points: [], 8454 isAnimationActive: !Object(__WEBPACK_IMPORTED_MODULE_14__util_ReactUtils__.n)(), 8455 animationBegin: 0, 8456 animationDuration: 1500, 8457 animationEasing: "ease", 8458 hide: !1, 8459 onAnimationStart: function() {}, 8460 onAnimationEnd: function() {} 8461 }, _class2.getComposedData = function(_ref3) { 8462 var props = _ref3.props, xAxis = _ref3.xAxis, yAxis = _ref3.yAxis, xAxisTicks = _ref3.xAxisTicks, yAxisTicks = _ref3.yAxisTicks, dataKey = _ref3.dataKey, bandSize = _ref3.bandSize, displayedData = _ref3.displayedData, offset = _ref3.offset, layout = props.layout, points = displayedData.map(function(entry, index) { 8463 var value = Object(__WEBPACK_IMPORTED_MODULE_15__util_ChartUtils__.w)(entry, dataKey); 8464 return "horizontal" === layout ? { 8465 x: Object(__WEBPACK_IMPORTED_MODULE_15__util_ChartUtils__.l)({ 8466 axis: xAxis, 8467 ticks: xAxisTicks, 8468 bandSize: bandSize, 8469 entry: entry, 8470 index: index 8471 }), 8472 y: __WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default()(value) ? null : yAxis.scale(value), 8473 value: value, 8474 payload: entry 8475 } : { 8476 x: __WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default()(value) ? null : xAxis.scale(value), 8477 y: Object(__WEBPACK_IMPORTED_MODULE_15__util_ChartUtils__.l)({ 8478 axis: yAxis, 8479 ticks: yAxisTicks, 8480 bandSize: bandSize, 8481 entry: entry, 8482 index: index 8483 }), 8484 value: value, 8485 payload: entry 8486 }; 8487 }); 8488 return _extends({ 8489 points: points, 8490 layout: layout 8491 }, offset); 8492 }, _class = _temp2)) || _class; 8493 __webpack_exports__.a = Line; 8494 }, function(module, __webpack_exports__, __webpack_require__) { 8495 "use strict"; 8496 function _classCallCheck(instance, Constructor) { 8497 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 8498 } 8499 function _possibleConstructorReturn(self, call) { 8500 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 8501 return !call || "object" != typeof call && "function" != typeof call ? self : call; 8502 } 8503 function _inherits(subClass, superClass) { 8504 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 8505 subClass.prototype = Object.create(superClass && superClass.prototype, { 8506 constructor: { 8507 value: subClass, 8508 enumerable: !1, 8509 writable: !0, 8510 configurable: !0 8511 } 8512 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 8513 } 8514 var _class, _class2, _temp2, __WEBPACK_IMPORTED_MODULE_0_lodash_isEqual__ = __webpack_require__(45), __WEBPACK_IMPORTED_MODULE_0_lodash_isEqual___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isEqual__), __WEBPACK_IMPORTED_MODULE_1_lodash_isNaN__ = __webpack_require__(120), __WEBPACK_IMPORTED_MODULE_1_lodash_isNaN___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isNaN__), __WEBPACK_IMPORTED_MODULE_2_lodash_isFunction__ = __webpack_require__(8), __WEBPACK_IMPORTED_MODULE_2_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_lodash_isFunction__), __WEBPACK_IMPORTED_MODULE_3_lodash_isNil__ = __webpack_require__(20), __WEBPACK_IMPORTED_MODULE_3_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_lodash_isNil__), __WEBPACK_IMPORTED_MODULE_4_lodash_isArray__ = __webpack_require__(13), __WEBPACK_IMPORTED_MODULE_4_lodash_isArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_lodash_isArray__), __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__), __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__), __WEBPACK_IMPORTED_MODULE_7_classnames__ = __webpack_require__(3), __WEBPACK_IMPORTED_MODULE_7_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_classnames__), __WEBPACK_IMPORTED_MODULE_8_react_smooth__ = __webpack_require__(33), __WEBPACK_IMPORTED_MODULE_8_react_smooth___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_react_smooth__), __WEBPACK_IMPORTED_MODULE_9__shape_Curve__ = __webpack_require__(71), __WEBPACK_IMPORTED_MODULE_10__shape_Dot__ = __webpack_require__(63), __WEBPACK_IMPORTED_MODULE_11__container_Layer__ = __webpack_require__(14), __WEBPACK_IMPORTED_MODULE_12__component_LabelList__ = __webpack_require__(47), __WEBPACK_IMPORTED_MODULE_13__util_PureRender__ = __webpack_require__(5), __WEBPACK_IMPORTED_MODULE_14__util_ReactUtils__ = __webpack_require__(4), __WEBPACK_IMPORTED_MODULE_15__util_DataUtils__ = __webpack_require__(9), __WEBPACK_IMPORTED_MODULE_16__util_ChartUtils__ = __webpack_require__(16), _extends = Object.assign || function(target) { 8515 for (var i = 1; i < arguments.length; i++) { 8516 var source = arguments[i]; 8517 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 8518 } 8519 return target; 8520 }, _createClass = function() { 8521 function defineProperties(target, props) { 8522 for (var i = 0; i < props.length; i++) { 8523 var descriptor = props[i]; 8524 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 8525 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 8526 } 8527 } 8528 return function(Constructor, protoProps, staticProps) { 8529 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 8530 Constructor; 8531 }; 8532 }(), Area = Object(__WEBPACK_IMPORTED_MODULE_13__util_PureRender__.a)((_temp2 = _class2 = function(_Component) { 8533 function Area() { 8534 var _ref, _temp, _this, _ret; 8535 _classCallCheck(this, Area); 8536 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 8537 return _temp = _this = _possibleConstructorReturn(this, (_ref = Area.__proto__ || Object.getPrototypeOf(Area)).call.apply(_ref, [ this ].concat(args))), 8538 _this.state = { 8539 isAnimationFinished: !0 8540 }, _this.id = Object(__WEBPACK_IMPORTED_MODULE_15__util_DataUtils__.k)("recharts-area-"), 8541 _this.cachePrevData = function(points, baseLine) { 8542 _this.setState({ 8543 prevPoints: points, 8544 prevBaseLine: baseLine 8545 }); 8546 }, _this.handleAnimationEnd = function() { 8547 var onAnimationEnd = _this.props.onAnimationEnd; 8548 _this.setState({ 8549 isAnimationFinished: !0 8550 }), __WEBPACK_IMPORTED_MODULE_2_lodash_isFunction___default()(onAnimationEnd) && onAnimationEnd(); 8551 }, _this.handleAnimationStart = function() { 8552 var onAnimationStart = _this.props.onAnimationStart; 8553 _this.setState({ 8554 isAnimationFinished: !1 8555 }), __WEBPACK_IMPORTED_MODULE_2_lodash_isFunction___default()(onAnimationStart) && onAnimationStart(); 8556 }, _ret = _temp, _possibleConstructorReturn(_this, _ret); 8557 } 8558 return _inherits(Area, _Component), _createClass(Area, [ { 8559 key: "componentWillReceiveProps", 8560 value: function(nextProps) { 8561 var _props = this.props, animationId = _props.animationId, points = _props.points, baseLine = _props.baseLine; 8562 nextProps.animationId !== animationId && this.cachePrevData(points, baseLine); 8563 } 8564 }, { 8565 key: "renderDots", 8566 value: function() { 8567 var _this2 = this; 8568 if (this.props.isAnimationActive && !this.state.isAnimationFinished) return null; 8569 var _props2 = this.props, dot = _props2.dot, points = _props2.points, dataKey = _props2.dataKey, areaProps = Object(__WEBPACK_IMPORTED_MODULE_14__util_ReactUtils__.k)(this.props), customDotProps = Object(__WEBPACK_IMPORTED_MODULE_14__util_ReactUtils__.k)(dot), dotEvents = Object(__WEBPACK_IMPORTED_MODULE_14__util_ReactUtils__.e)(dot), dots = points.map(function(entry, i) { 8570 var dotProps = _extends({ 8571 key: "dot-" + i, 8572 r: 3 8573 }, areaProps, customDotProps, dotEvents, { 8574 dataKey: dataKey, 8575 cx: entry.x, 8576 cy: entry.y, 8577 index: i, 8578 value: entry.value, 8579 payload: entry.payload 8580 }); 8581 return _this2.constructor.renderDotItem(dot, dotProps); 8582 }); 8583 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11__container_Layer__.a, { 8584 className: "recharts-area-dots" 8585 }, dots); 8586 } 8587 }, { 8588 key: "renderHorizontalRect", 8589 value: function(alpha) { 8590 var _props3 = this.props, baseLine = _props3.baseLine, points = _props3.points, strokeWidth = _props3.strokeWidth, startX = points[0].x, endX = points[points.length - 1].x, width = alpha * Math.abs(startX - endX), maxY = Math.max.apply(null, points.map(function(entry) { 8591 return entry.y || 0; 8592 })); 8593 return Object(__WEBPACK_IMPORTED_MODULE_15__util_DataUtils__.h)(baseLine) ? maxY = Math.max(baseLine, maxY) : baseLine && __WEBPACK_IMPORTED_MODULE_4_lodash_isArray___default()(baseLine) && baseLine.length && (maxY = Math.max(Math.max.apply(null, baseLine.map(function(entry) { 8594 return entry.y || 0; 8595 })), maxY)), Object(__WEBPACK_IMPORTED_MODULE_15__util_DataUtils__.h)(maxY) ? __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement("rect", { 8596 x: startX < endX ? startX : startX - width, 8597 y: 0, 8598 width: width, 8599 height: maxY + (strokeWidth || 1) 8600 }) : null; 8601 } 8602 }, { 8603 key: "renderVerticalRect", 8604 value: function(alpha) { 8605 var _props4 = this.props, baseLine = _props4.baseLine, points = _props4.points, strokeWidth = _props4.strokeWidth, startY = points[0].y, endY = points[points.length - 1].y, height = alpha * Math.abs(startY - endY), maxX = Math.max.apply(null, points.map(function(entry) { 8606 return entry.x || 0; 8607 })); 8608 return Object(__WEBPACK_IMPORTED_MODULE_15__util_DataUtils__.h)(baseLine) ? maxX = Math.max(baseLine, maxX) : baseLine && __WEBPACK_IMPORTED_MODULE_4_lodash_isArray___default()(baseLine) && baseLine.length && (maxX = Math.max(Math.max.apply(null, baseLine.map(function(entry) { 8609 return entry.x || 0; 8610 })), maxX)), Object(__WEBPACK_IMPORTED_MODULE_15__util_DataUtils__.h)(maxX) ? __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement("rect", { 8611 x: 0, 8612 y: startY < endY ? startY : startY - height, 8613 width: maxX + (strokeWidth || 1), 8614 height: height 8615 }) : null; 8616 } 8617 }, { 8618 key: "renderClipRect", 8619 value: function(alpha) { 8620 return "vertical" === this.props.layout ? this.renderVerticalRect(alpha) : this.renderHorizontalRect(alpha); 8621 } 8622 }, { 8623 key: "renderAreaStatically", 8624 value: function(points, baseLine, needClip) { 8625 var _props5 = this.props, layout = _props5.layout, type = _props5.type, stroke = _props5.stroke, connectNulls = _props5.connectNulls, isRange = _props5.isRange; 8626 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11__container_Layer__.a, { 8627 clipPath: needClip ? "url(#clipPath-" + this.id + ")" : null 8628 }, __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__shape_Curve__.a, _extends({}, this.props, { 8629 points: points, 8630 baseLine: baseLine, 8631 stroke: "none", 8632 className: "recharts-area-area" 8633 })), "none" !== stroke && __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__shape_Curve__.a, _extends({}, Object(__WEBPACK_IMPORTED_MODULE_14__util_ReactUtils__.k)(this.props), { 8634 className: "recharts-area-curve", 8635 layout: layout, 8636 type: type, 8637 connectNulls: connectNulls, 8638 fill: "none", 8639 points: points 8640 })), "none" !== stroke && isRange && __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__shape_Curve__.a, _extends({}, Object(__WEBPACK_IMPORTED_MODULE_14__util_ReactUtils__.k)(this.props), { 8641 className: "recharts-area-curve", 8642 layout: layout, 8643 type: type, 8644 connectNulls: connectNulls, 8645 fill: "none", 8646 points: baseLine 8647 }))); 8648 } 8649 }, { 8650 key: "renderAreaWithAnimation", 8651 value: function(needClip) { 8652 var _this3 = this, _props6 = this.props, points = _props6.points, baseLine = _props6.baseLine, isAnimationActive = _props6.isAnimationActive, animationBegin = _props6.animationBegin, animationDuration = _props6.animationDuration, animationEasing = _props6.animationEasing, animationId = _props6.animationId, id = _props6.id, _state = this.state, prevPoints = _state.prevPoints, prevBaseLine = _state.prevBaseLine, clipPathId = __WEBPACK_IMPORTED_MODULE_3_lodash_isNil___default()(id) ? this.id : id; 8653 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8_react_smooth___default.a, { 8654 begin: animationBegin, 8655 duration: animationDuration, 8656 isActive: isAnimationActive, 8657 easing: animationEasing, 8658 from: { 8659 t: 0 8660 }, 8661 to: { 8662 t: 1 8663 }, 8664 key: "area-" + animationId, 8665 onAnimationEnd: this.handleAnimationEnd, 8666 onAnimationStart: this.handleAnimationStart 8667 }, function(_ref2) { 8668 var t = _ref2.t; 8669 if (prevPoints) { 8670 var stepPoints = points.map(function(entry, index) { 8671 if (prevPoints[index]) { 8672 var prev = prevPoints[index], interpolatorX = Object(__WEBPACK_IMPORTED_MODULE_15__util_DataUtils__.f)(prev.x, entry.x), interpolatorY = Object(__WEBPACK_IMPORTED_MODULE_15__util_DataUtils__.f)(prev.y, entry.y); 8673 return _extends({}, entry, { 8674 x: interpolatorX(t), 8675 y: interpolatorY(t) 8676 }); 8677 } 8678 return entry; 8679 }), stepBaseLine = void 0; 8680 if (Object(__WEBPACK_IMPORTED_MODULE_15__util_DataUtils__.h)(baseLine)) { 8681 stepBaseLine = Object(__WEBPACK_IMPORTED_MODULE_15__util_DataUtils__.f)(prevBaseLine, baseLine)(t); 8682 } else if (__WEBPACK_IMPORTED_MODULE_3_lodash_isNil___default()(baseLine) || __WEBPACK_IMPORTED_MODULE_1_lodash_isNaN___default()(baseLine)) { 8683 var _interpolator = Object(__WEBPACK_IMPORTED_MODULE_15__util_DataUtils__.f)(prevBaseLine, 0); 8684 stepBaseLine = _interpolator(t); 8685 } else stepBaseLine = baseLine.map(function(entry, index) { 8686 if (prevBaseLine[index]) { 8687 var prev = prevBaseLine[index], interpolatorX = Object(__WEBPACK_IMPORTED_MODULE_15__util_DataUtils__.f)(prev.x, entry.x), interpolatorY = Object(__WEBPACK_IMPORTED_MODULE_15__util_DataUtils__.f)(prev.y, entry.y); 8688 return _extends({}, entry, { 8689 x: interpolatorX(t), 8690 y: interpolatorY(t) 8691 }); 8692 } 8693 return entry; 8694 }); 8695 return _this3.renderAreaStatically(stepPoints, stepBaseLine, needClip); 8696 } 8697 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11__container_Layer__.a, null, __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement("defs", null, __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement("clipPath", { 8698 id: "animationClipPath-" + clipPathId 8699 }, _this3.renderClipRect(t))), __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11__container_Layer__.a, { 8700 clipPath: "url(#animationClipPath-" + clipPathId + ")" 8701 }, _this3.renderAreaStatically(points, baseLine, needClip))); 8702 }); 8703 } 8704 }, { 8705 key: "renderArea", 8706 value: function(needClip) { 8707 var _props7 = this.props, points = _props7.points, baseLine = _props7.baseLine, isAnimationActive = _props7.isAnimationActive, _state2 = this.state, prevPoints = _state2.prevPoints, prevBaseLine = _state2.prevBaseLine, totalLength = _state2.totalLength; 8708 return isAnimationActive && points && points.length && (!prevPoints && totalLength > 0 || !__WEBPACK_IMPORTED_MODULE_0_lodash_isEqual___default()(prevPoints, points) || !__WEBPACK_IMPORTED_MODULE_0_lodash_isEqual___default()(prevBaseLine, baseLine)) ? this.renderAreaWithAnimation(needClip) : this.renderAreaStatically(points, baseLine, needClip); 8709 } 8710 }, { 8711 key: "render", 8712 value: function() { 8713 var _props8 = this.props, hide = _props8.hide, dot = _props8.dot, points = _props8.points, className = _props8.className, top = _props8.top, left = _props8.left, xAxis = _props8.xAxis, yAxis = _props8.yAxis, width = _props8.width, height = _props8.height, isAnimationActive = _props8.isAnimationActive, id = _props8.id; 8714 if (hide || !points || !points.length) return null; 8715 var isAnimationFinished = this.state.isAnimationFinished, hasSinglePoint = 1 === points.length, layerClass = __WEBPACK_IMPORTED_MODULE_7_classnames___default()("recharts-area", className), needClip = xAxis && xAxis.allowDataOverflow || yAxis && yAxis.allowDataOverflow, clipPathId = __WEBPACK_IMPORTED_MODULE_3_lodash_isNil___default()(id) ? this.id : id; 8716 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11__container_Layer__.a, { 8717 className: layerClass 8718 }, needClip ? __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement("defs", null, __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement("clipPath", { 8719 id: "clipPath-" + clipPathId 8720 }, __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement("rect", { 8721 x: left, 8722 y: top, 8723 width: width, 8724 height: height 8725 }))) : null, hasSinglePoint ? null : this.renderArea(needClip), (dot || hasSinglePoint) && this.renderDots(), (!isAnimationActive || isAnimationFinished) && __WEBPACK_IMPORTED_MODULE_12__component_LabelList__.a.renderCallByParent(this.props, points)); 8726 } 8727 } ]), Area; 8728 }(__WEBPACK_IMPORTED_MODULE_5_react__.Component), _class2.displayName = "Area", 8729 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_14__util_ReactUtils__.c, __WEBPACK_IMPORTED_MODULE_14__util_ReactUtils__.a, { 8730 className: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 8731 dataKey: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func ]).isRequired, 8732 type: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "basis", "basisClosed", "basisOpen", "linear", "linearClosed", "natural", "monotoneX", "monotoneY", "monotone", "step", "stepBefore", "stepAfter" ]), __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func ]), 8733 unit: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number ]), 8734 name: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number ]), 8735 yAxisId: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number ]), 8736 xAxisId: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number ]), 8737 yAxis: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object, 8738 xAxis: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object, 8739 stackId: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string ]), 8740 legendType: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf(__WEBPACK_IMPORTED_MODULE_14__util_ReactUtils__.b), 8741 connectNulls: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, 8742 activeDot: __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.element, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool ]), 8743 dot: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.element, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool ]), 8744 label: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.element, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool ]), 8745 hide: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, 8746 layout: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "horizontal", "vertical" ]), 8747 baseLine: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.array ]), 8748 isRange: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, 8749 points: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.shape({ 8750 x: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 8751 y: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 8752 value: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.array ]) 8753 })), 8754 onAnimationStart: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 8755 onAnimationEnd: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 8756 animationId: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 8757 isAnimationActive: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, 8758 animationBegin: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 8759 animationDuration: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 8760 animationEasing: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "ease", "ease-in", "ease-out", "ease-in-out", "linear" ]), 8761 id: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string 8762 }), _class2.defaultProps = { 8763 stroke: "#3182bd", 8764 fill: "#3182bd", 8765 fillOpacity: .6, 8766 xAxisId: 0, 8767 yAxisId: 0, 8768 legendType: "line", 8769 connectNulls: !1, 8770 points: [], 8771 dot: !1, 8772 activeDot: !0, 8773 hide: !1, 8774 isAnimationActive: !Object(__WEBPACK_IMPORTED_MODULE_14__util_ReactUtils__.n)(), 8775 animationBegin: 0, 8776 animationDuration: 1500, 8777 animationEasing: "ease" 8778 }, _class2.getBaseValue = function(props, xAxis, yAxis) { 8779 var layout = props.layout, baseValue = props.baseValue; 8780 if (Object(__WEBPACK_IMPORTED_MODULE_15__util_DataUtils__.h)(baseValue)) return baseValue; 8781 var numericAxis = "horizontal" === layout ? yAxis : xAxis, domain = numericAxis.scale.domain(); 8782 if ("number" === numericAxis.type) { 8783 var max = Math.max(domain[0], domain[1]), min = Math.min(domain[0], domain[1]); 8784 return "dataMin" === baseValue ? min : "dataMax" === baseValue ? max : max < 0 ? max : Math.max(Math.min(domain[0], domain[1]), 0); 8785 } 8786 return "dataMin" === baseValue ? domain[0] : "dataMax" === baseValue ? domain[1] : domain[0]; 8787 }, _class2.getComposedData = function(_ref3) { 8788 var props = _ref3.props, xAxis = _ref3.xAxis, yAxis = _ref3.yAxis, xAxisTicks = _ref3.xAxisTicks, yAxisTicks = _ref3.yAxisTicks, bandSize = _ref3.bandSize, dataKey = _ref3.dataKey, stackedData = _ref3.stackedData, dataStartIndex = _ref3.dataStartIndex, displayedData = _ref3.displayedData, offset = _ref3.offset, layout = props.layout, hasStack = stackedData && stackedData.length, baseValue = Area.getBaseValue(props, xAxis, yAxis), isRange = !1, points = displayedData.map(function(entry, index) { 8789 var value = void 0; 8790 return hasStack ? value = stackedData[dataStartIndex + index] : (value = Object(__WEBPACK_IMPORTED_MODULE_16__util_ChartUtils__.w)(entry, dataKey), 8791 __WEBPACK_IMPORTED_MODULE_4_lodash_isArray___default()(value) ? isRange = !0 : value = [ baseValue, value ]), 8792 "horizontal" === layout ? { 8793 x: Object(__WEBPACK_IMPORTED_MODULE_16__util_ChartUtils__.l)({ 8794 axis: xAxis, 8795 ticks: xAxisTicks, 8796 bandSize: bandSize, 8797 entry: entry, 8798 index: index 8799 }), 8800 y: __WEBPACK_IMPORTED_MODULE_3_lodash_isNil___default()(value[1]) ? null : yAxis.scale(value[1]), 8801 value: value, 8802 payload: entry 8803 } : { 8804 x: __WEBPACK_IMPORTED_MODULE_3_lodash_isNil___default()(value[1]) ? null : xAxis.scale(value[1]), 8805 y: Object(__WEBPACK_IMPORTED_MODULE_16__util_ChartUtils__.l)({ 8806 axis: yAxis, 8807 ticks: yAxisTicks, 8808 bandSize: bandSize, 8809 entry: entry, 8810 index: index 8811 }), 8812 value: value, 8813 payload: entry 8814 }; 8815 }), baseLine = void 0; 8816 return baseLine = hasStack || isRange ? points.map(function(entry) { 8817 return { 8818 x: "horizontal" === layout ? entry.x : xAxis.scale(entry && entry.value[0]), 8819 y: "horizontal" === layout ? yAxis.scale(entry && entry.value[0]) : entry.y 8820 }; 8821 }) : "horizontal" === layout ? yAxis.scale(baseValue) : xAxis.scale(baseValue), 8822 _extends({ 8823 points: points, 8824 baseLine: baseLine, 8825 layout: layout, 8826 isRange: isRange 8827 }, offset); 8828 }, _class2.renderDotItem = function(option, props) { 8829 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.isValidElement(option) ? __WEBPACK_IMPORTED_MODULE_5_react___default.a.cloneElement(option, props) : __WEBPACK_IMPORTED_MODULE_2_lodash_isFunction___default()(option) ? option(props) : __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10__shape_Dot__.a, _extends({}, props, { 8830 className: "recharts-area-dot" 8831 })); 8832 }, _class = _temp2)) || _class; 8833 __webpack_exports__.a = Area; 8834 }, function(module, __webpack_exports__, __webpack_require__) { 8835 "use strict"; 8836 function _objectWithoutProperties(obj, keys) { 8837 var target = {}; 8838 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 8839 return target; 8840 } 8841 function _classCallCheck(instance, Constructor) { 8842 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 8843 } 8844 function _possibleConstructorReturn(self, call) { 8845 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 8846 return !call || "object" != typeof call && "function" != typeof call ? self : call; 8847 } 8848 function _inherits(subClass, superClass) { 8849 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 8850 subClass.prototype = Object.create(superClass && superClass.prototype, { 8851 constructor: { 8852 value: subClass, 8853 enumerable: !1, 8854 writable: !0, 8855 configurable: !0 8856 } 8857 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 8858 } 8859 var _class, _class2, _temp2, __WEBPACK_IMPORTED_MODULE_0_lodash_isNil__ = __webpack_require__(20), __WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isNil__), __WEBPACK_IMPORTED_MODULE_1_lodash_isEqual__ = __webpack_require__(45), __WEBPACK_IMPORTED_MODULE_1_lodash_isEqual___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isEqual__), __WEBPACK_IMPORTED_MODULE_2_lodash_isFunction__ = __webpack_require__(8), __WEBPACK_IMPORTED_MODULE_2_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_lodash_isFunction__), __WEBPACK_IMPORTED_MODULE_3_lodash_isArray__ = __webpack_require__(13), __WEBPACK_IMPORTED_MODULE_3_lodash_isArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_lodash_isArray__), __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__), __WEBPACK_IMPORTED_MODULE_5_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_5_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_prop_types__), __WEBPACK_IMPORTED_MODULE_6_classnames__ = __webpack_require__(3), __WEBPACK_IMPORTED_MODULE_6_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_classnames__), __WEBPACK_IMPORTED_MODULE_7_react_smooth__ = __webpack_require__(33), __WEBPACK_IMPORTED_MODULE_7_react_smooth___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_react_smooth__), __WEBPACK_IMPORTED_MODULE_8__shape_Rectangle__ = __webpack_require__(70), __WEBPACK_IMPORTED_MODULE_9__container_Layer__ = __webpack_require__(14), __WEBPACK_IMPORTED_MODULE_10__ErrorBar__ = __webpack_require__(95), __WEBPACK_IMPORTED_MODULE_11__component_Cell__ = __webpack_require__(88), __WEBPACK_IMPORTED_MODULE_12__component_LabelList__ = __webpack_require__(47), __WEBPACK_IMPORTED_MODULE_13__util_PureRender__ = __webpack_require__(5), __WEBPACK_IMPORTED_MODULE_14__util_DataUtils__ = __webpack_require__(9), __WEBPACK_IMPORTED_MODULE_15__util_ReactUtils__ = __webpack_require__(4), __WEBPACK_IMPORTED_MODULE_16__util_ChartUtils__ = __webpack_require__(16), _extends = Object.assign || function(target) { 8860 for (var i = 1; i < arguments.length; i++) { 8861 var source = arguments[i]; 8862 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 8863 } 8864 return target; 8865 }, _createClass = function() { 8866 function defineProperties(target, props) { 8867 for (var i = 0; i < props.length; i++) { 8868 var descriptor = props[i]; 8869 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 8870 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 8871 } 8872 } 8873 return function(Constructor, protoProps, staticProps) { 8874 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 8875 Constructor; 8876 }; 8877 }(), Bar = Object(__WEBPACK_IMPORTED_MODULE_13__util_PureRender__.a)((_temp2 = _class2 = function(_Component) { 8878 function Bar() { 8879 var _ref, _temp, _this, _ret; 8880 _classCallCheck(this, Bar); 8881 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 8882 return _temp = _this = _possibleConstructorReturn(this, (_ref = Bar.__proto__ || Object.getPrototypeOf(Bar)).call.apply(_ref, [ this ].concat(args))), 8883 _this.state = { 8884 isAnimationFinished: !1 8885 }, _this.id = Object(__WEBPACK_IMPORTED_MODULE_14__util_DataUtils__.k)("recharts-bar-"), 8886 _this.cachePrevData = function(data) { 8887 _this.setState({ 8888 prevData: data 8889 }); 8890 }, _this.handleAnimationEnd = function() { 8891 _this.setState({ 8892 isAnimationFinished: !0 8893 }), _this.props.onAnimationEnd(); 8894 }, _this.handleAnimationStart = function() { 8895 _this.setState({ 8896 isAnimationFinished: !1 8897 }), _this.props.onAnimationStart(); 8898 }, _ret = _temp, _possibleConstructorReturn(_this, _ret); 8899 } 8900 return _inherits(Bar, _Component), _createClass(Bar, [ { 8901 key: "componentWillReceiveProps", 8902 value: function(nextProps) { 8903 var _props = this.props, animationId = _props.animationId, data = _props.data; 8904 nextProps.animationId !== animationId && this.cachePrevData(data); 8905 } 8906 }, { 8907 key: "renderRectangle", 8908 value: function(option, props) { 8909 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.isValidElement(option) ? __WEBPACK_IMPORTED_MODULE_4_react___default.a.cloneElement(option, props) : __WEBPACK_IMPORTED_MODULE_2_lodash_isFunction___default()(option) ? option(props) : __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__shape_Rectangle__.a, props); 8910 } 8911 }, { 8912 key: "renderRectanglesStatically", 8913 value: function(data) { 8914 var _this2 = this, shape = this.props.shape, baseProps = Object(__WEBPACK_IMPORTED_MODULE_15__util_ReactUtils__.k)(this.props); 8915 return data && data.map(function(entry, i) { 8916 var props = _extends({}, baseProps, entry, { 8917 index: i 8918 }); 8919 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__container_Layer__.a, _extends({ 8920 className: "recharts-bar-rectangle" 8921 }, Object(__WEBPACK_IMPORTED_MODULE_15__util_ReactUtils__.f)(_this2.props, entry, i), { 8922 key: "rectangle-" + i 8923 }), _this2.renderRectangle(shape, props)); 8924 }); 8925 } 8926 }, { 8927 key: "renderRectanglesWithAnimation", 8928 value: function() { 8929 var _this3 = this, _props2 = this.props, data = _props2.data, layout = _props2.layout, isAnimationActive = _props2.isAnimationActive, animationBegin = _props2.animationBegin, animationDuration = _props2.animationDuration, animationEasing = _props2.animationEasing, animationId = _props2.animationId, prevData = (_props2.width, 8930 this.state.prevData); 8931 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_react_smooth___default.a, { 8932 begin: animationBegin, 8933 duration: animationDuration, 8934 isActive: isAnimationActive, 8935 easing: animationEasing, 8936 from: { 8937 t: 0 8938 }, 8939 to: { 8940 t: 1 8941 }, 8942 key: "bar-" + animationId, 8943 onAnimationEnd: this.handleAnimationEnd, 8944 onAnimationStart: this.handleAnimationStart 8945 }, function(_ref2) { 8946 var t = _ref2.t, stepData = data.map(function(entry, index) { 8947 var prev = prevData && prevData[index]; 8948 if (prev) { 8949 var interpolatorX = Object(__WEBPACK_IMPORTED_MODULE_14__util_DataUtils__.f)(prev.x, entry.x), interpolatorY = Object(__WEBPACK_IMPORTED_MODULE_14__util_DataUtils__.f)(prev.y, entry.y), interpolatorWidth = Object(__WEBPACK_IMPORTED_MODULE_14__util_DataUtils__.f)(prev.width, entry.width), interpolatorHeight = Object(__WEBPACK_IMPORTED_MODULE_14__util_DataUtils__.f)(prev.height, entry.height); 8950 return _extends({}, entry, { 8951 x: interpolatorX(t), 8952 y: interpolatorY(t), 8953 width: interpolatorWidth(t), 8954 height: interpolatorHeight(t) 8955 }); 8956 } 8957 if ("horizontal" === layout) { 8958 var _interpolatorHeight = Object(__WEBPACK_IMPORTED_MODULE_14__util_DataUtils__.f)(0, entry.height), h = _interpolatorHeight(t); 8959 return _extends({}, entry, { 8960 y: entry.y + entry.height - h, 8961 height: h 8962 }); 8963 } 8964 var interpolator = Object(__WEBPACK_IMPORTED_MODULE_14__util_DataUtils__.f)(0, entry.width), w = interpolator(t); 8965 return _extends({}, entry, { 8966 width: w 8967 }); 8968 }); 8969 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__container_Layer__.a, null, _this3.renderRectanglesStatically(stepData)); 8970 }); 8971 } 8972 }, { 8973 key: "renderRectangles", 8974 value: function() { 8975 var _props3 = this.props, data = _props3.data, isAnimationActive = _props3.isAnimationActive, prevData = this.state.prevData; 8976 return !(isAnimationActive && data && data.length) || prevData && __WEBPACK_IMPORTED_MODULE_1_lodash_isEqual___default()(prevData, data) ? this.renderRectanglesStatically(data) : this.renderRectanglesWithAnimation(); 8977 } 8978 }, { 8979 key: "renderBackground", 8980 value: function(sectors) { 8981 var _this4 = this, data = this.props.data, backgroundProps = Object(__WEBPACK_IMPORTED_MODULE_15__util_ReactUtils__.k)(this.props.background); 8982 return data.map(function(entry, i) { 8983 var background = (entry.value, entry.background), rest = _objectWithoutProperties(entry, [ "value", "background" ]); 8984 if (!background) return null; 8985 var props = _extends({}, rest, { 8986 fill: "#eee" 8987 }, background, backgroundProps, Object(__WEBPACK_IMPORTED_MODULE_15__util_ReactUtils__.f)(_this4.props, entry, i), { 8988 index: i, 8989 key: "background-bar-" + i, 8990 className: "recharts-bar-background-rectangle" 8991 }); 8992 return _this4.renderRectangle(background, props); 8993 }); 8994 } 8995 }, { 8996 key: "renderErrorBar", 8997 value: function() { 8998 function dataPointFormatter(dataPoint, dataKey) { 8999 return { 9000 x: dataPoint.x, 9001 y: dataPoint.y, 9002 value: dataPoint.value, 9003 errorVal: Object(__WEBPACK_IMPORTED_MODULE_16__util_ChartUtils__.w)(dataPoint, dataKey) 9004 }; 9005 } 9006 if (this.props.isAnimationActive && !this.state.isAnimationFinished) return null; 9007 var _props4 = this.props, data = _props4.data, xAxis = _props4.xAxis, yAxis = _props4.yAxis, layout = _props4.layout, children = _props4.children, errorBarItems = Object(__WEBPACK_IMPORTED_MODULE_15__util_ReactUtils__.h)(children, __WEBPACK_IMPORTED_MODULE_10__ErrorBar__.a); 9008 if (!errorBarItems) return null; 9009 var offset = "vertical" === layout ? data[0].height / 2 : data[0].width / 2; 9010 return errorBarItems.map(function(item, i) { 9011 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.cloneElement(item, { 9012 key: i, 9013 data: data, 9014 xAxis: xAxis, 9015 yAxis: yAxis, 9016 layout: layout, 9017 offset: offset, 9018 dataPointFormatter: dataPointFormatter 9019 }); 9020 }); 9021 } 9022 }, { 9023 key: "render", 9024 value: function() { 9025 var _props5 = this.props, hide = _props5.hide, data = _props5.data, className = _props5.className, xAxis = _props5.xAxis, yAxis = _props5.yAxis, left = _props5.left, top = _props5.top, width = _props5.width, height = _props5.height, isAnimationActive = _props5.isAnimationActive, background = _props5.background, id = _props5.id; 9026 if (hide || !data || !data.length) return null; 9027 var isAnimationFinished = this.state.isAnimationFinished, layerClass = __WEBPACK_IMPORTED_MODULE_6_classnames___default()("recharts-bar", className), needClip = xAxis && xAxis.allowDataOverflow || yAxis && yAxis.allowDataOverflow, clipPathId = __WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default()(id) ? this.id : id; 9028 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__container_Layer__.a, { 9029 className: layerClass 9030 }, needClip ? __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("defs", null, __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("clipPath", { 9031 id: "clipPath-" + clipPathId 9032 }, __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("rect", { 9033 x: left, 9034 y: top, 9035 width: width, 9036 height: height 9037 }))) : null, __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__container_Layer__.a, { 9038 className: "recharts-bar-rectangles", 9039 clipPath: needClip ? "url(#clipPath-" + clipPathId + ")" : null 9040 }, background ? this.renderBackground() : null, this.renderRectangles()), this.renderErrorBar(), (!isAnimationActive || isAnimationFinished) && __WEBPACK_IMPORTED_MODULE_12__component_LabelList__.a.renderCallByParent(this.props, data)); 9041 } 9042 } ]), Bar; 9043 }(__WEBPACK_IMPORTED_MODULE_4_react__.Component), _class2.displayName = "Bar", _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_15__util_ReactUtils__.c, __WEBPACK_IMPORTED_MODULE_15__util_ReactUtils__.a, { 9044 className: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, 9045 layout: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOf([ "vertical", "horizontal" ]), 9046 xAxisId: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string ]), 9047 yAxisId: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string ]), 9048 yAxis: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object, 9049 xAxis: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object, 9050 stackId: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string ]), 9051 barSize: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 9052 unit: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number ]), 9053 name: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number ]), 9054 dataKey: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func ]).isRequired, 9055 legendType: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOf(__WEBPACK_IMPORTED_MODULE_15__util_ReactUtils__.b), 9056 minPointSize: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 9057 maxBarSize: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 9058 hide: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool, 9059 shape: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.element ]), 9060 data: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.shape({ 9061 x: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 9062 y: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 9063 width: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 9064 height: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 9065 radius: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.array ]), 9066 value: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.array ]) 9067 })), 9068 onAnimationStart: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func, 9069 onAnimationEnd: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func, 9070 animationId: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 9071 isAnimationActive: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool, 9072 animationBegin: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 9073 animationDuration: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 9074 animationEasing: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOf([ "ease", "ease-in", "ease-out", "ease-in-out", "linear" ]), 9075 id: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string 9076 }), _class2.defaultProps = { 9077 xAxisId: 0, 9078 yAxisId: 0, 9079 legendType: "rect", 9080 minPointSize: 0, 9081 hide: !1, 9082 data: [], 9083 layout: "vertical", 9084 isAnimationActive: !Object(__WEBPACK_IMPORTED_MODULE_15__util_ReactUtils__.n)(), 9085 animationBegin: 0, 9086 animationDuration: 400, 9087 animationEasing: "ease", 9088 onAnimationStart: function() {}, 9089 onAnimationEnd: function() {} 9090 }, _class2.getComposedData = function(_ref3) { 9091 var props = _ref3.props, item = _ref3.item, barPosition = _ref3.barPosition, bandSize = _ref3.bandSize, xAxis = _ref3.xAxis, yAxis = _ref3.yAxis, xAxisTicks = _ref3.xAxisTicks, yAxisTicks = _ref3.yAxisTicks, stackedData = _ref3.stackedData, dataStartIndex = _ref3.dataStartIndex, displayedData = _ref3.displayedData, offset = _ref3.offset, pos = Object(__WEBPACK_IMPORTED_MODULE_16__util_ChartUtils__.f)(barPosition, item); 9092 if (!pos) return []; 9093 var layout = props.layout, _item$props = item.props, dataKey = _item$props.dataKey, children = _item$props.children, minPointSize = _item$props.minPointSize, numericAxis = "horizontal" === layout ? yAxis : xAxis, stackedDomain = stackedData ? numericAxis.scale.domain() : null, baseValue = Object(__WEBPACK_IMPORTED_MODULE_16__util_ChartUtils__.j)({ 9094 props: props, 9095 numericAxis: numericAxis 9096 }), cells = Object(__WEBPACK_IMPORTED_MODULE_15__util_ReactUtils__.h)(children, __WEBPACK_IMPORTED_MODULE_11__component_Cell__.a), rects = displayedData.map(function(entry, index) { 9097 var value = void 0, x = void 0, y = void 0, width = void 0, height = void 0, background = void 0; 9098 if (stackedData ? value = Object(__WEBPACK_IMPORTED_MODULE_16__util_ChartUtils__.C)(stackedData[dataStartIndex + index], stackedDomain) : (value = Object(__WEBPACK_IMPORTED_MODULE_16__util_ChartUtils__.w)(entry, dataKey), 9099 __WEBPACK_IMPORTED_MODULE_3_lodash_isArray___default()(value) || (value = [ baseValue, value ])), 9100 "horizontal" === layout) { 9101 if (x = Object(__WEBPACK_IMPORTED_MODULE_16__util_ChartUtils__.k)({ 9102 axis: xAxis, 9103 ticks: xAxisTicks, 9104 bandSize: bandSize, 9105 offset: pos.offset, 9106 entry: entry, 9107 index: index 9108 }), y = yAxis.scale(value[1]), width = pos.size, height = yAxis.scale(value[0]) - yAxis.scale(value[1]), 9109 background = { 9110 x: x, 9111 y: yAxis.y, 9112 width: width, 9113 height: yAxis.height 9114 }, Math.abs(minPointSize) > 0 && Math.abs(height) < Math.abs(minPointSize)) { 9115 var delta = Object(__WEBPACK_IMPORTED_MODULE_14__util_DataUtils__.j)(height || minPointSize) * (Math.abs(minPointSize) - Math.abs(height)); 9116 y -= delta, height += delta; 9117 } 9118 } else if (x = xAxis.scale(value[0]), y = Object(__WEBPACK_IMPORTED_MODULE_16__util_ChartUtils__.k)({ 9119 axis: yAxis, 9120 ticks: yAxisTicks, 9121 bandSize: bandSize, 9122 offset: pos.offset, 9123 entry: entry, 9124 index: index 9125 }), width = xAxis.scale(value[1]) - xAxis.scale(value[0]), height = pos.size, background = { 9126 x: xAxis.x, 9127 y: y, 9128 width: xAxis.width, 9129 height: height 9130 }, Math.abs(minPointSize) > 0 && Math.abs(width) < Math.abs(minPointSize)) { 9131 var _delta = Object(__WEBPACK_IMPORTED_MODULE_14__util_DataUtils__.j)(width || minPointSize) * (Math.abs(minPointSize) - Math.abs(width)); 9132 width += _delta; 9133 } 9134 return _extends({}, entry, { 9135 x: x, 9136 y: y, 9137 width: width, 9138 height: height, 9139 value: stackedData ? value : value[1], 9140 payload: entry, 9141 background: background 9142 }, cells && cells[index] && cells[index].props); 9143 }); 9144 return _extends({ 9145 data: rects, 9146 layout: layout 9147 }, offset); 9148 }, _class = _temp2)) || _class; 9149 __webpack_exports__.a = Bar; 9150 }, function(module, __webpack_exports__, __webpack_require__) { 9151 "use strict"; 9152 function _classCallCheck(instance, Constructor) { 9153 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 9154 } 9155 function _possibleConstructorReturn(self, call) { 9156 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 9157 return !call || "object" != typeof call && "function" != typeof call ? self : call; 9158 } 9159 function _inherits(subClass, superClass) { 9160 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 9161 subClass.prototype = Object.create(superClass && superClass.prototype, { 9162 constructor: { 9163 value: subClass, 9164 enumerable: !1, 9165 writable: !0, 9166 configurable: !0 9167 } 9168 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 9169 } 9170 var _class, _class2, _temp2, __WEBPACK_IMPORTED_MODULE_0_lodash_isEqual__ = __webpack_require__(45), __WEBPACK_IMPORTED_MODULE_0_lodash_isEqual___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isEqual__), __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction__ = __webpack_require__(8), __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isFunction__), __WEBPACK_IMPORTED_MODULE_2_lodash_isNil__ = __webpack_require__(20), __WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_lodash_isNil__), __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__), __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__), __WEBPACK_IMPORTED_MODULE_5_react_smooth__ = __webpack_require__(33), __WEBPACK_IMPORTED_MODULE_5_react_smooth___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react_smooth__), __WEBPACK_IMPORTED_MODULE_6_classnames__ = __webpack_require__(3), __WEBPACK_IMPORTED_MODULE_6_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_classnames__), __WEBPACK_IMPORTED_MODULE_7__util_PureRender__ = __webpack_require__(5), __WEBPACK_IMPORTED_MODULE_8__container_Layer__ = __webpack_require__(14), __WEBPACK_IMPORTED_MODULE_9__component_LabelList__ = __webpack_require__(47), __WEBPACK_IMPORTED_MODULE_10__util_ReactUtils__ = __webpack_require__(4), __WEBPACK_IMPORTED_MODULE_11__ZAxis__ = __webpack_require__(142), __WEBPACK_IMPORTED_MODULE_12__shape_Curve__ = __webpack_require__(71), __WEBPACK_IMPORTED_MODULE_13__shape_Symbols__ = __webpack_require__(181), __WEBPACK_IMPORTED_MODULE_14__ErrorBar__ = __webpack_require__(95), __WEBPACK_IMPORTED_MODULE_15__component_Cell__ = __webpack_require__(88), __WEBPACK_IMPORTED_MODULE_16__util_DataUtils__ = __webpack_require__(9), __WEBPACK_IMPORTED_MODULE_17__util_ChartUtils__ = __webpack_require__(16), _extends = Object.assign || function(target) { 9171 for (var i = 1; i < arguments.length; i++) { 9172 var source = arguments[i]; 9173 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 9174 } 9175 return target; 9176 }, _createClass = function() { 9177 function defineProperties(target, props) { 9178 for (var i = 0; i < props.length; i++) { 9179 var descriptor = props[i]; 9180 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 9181 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 9182 } 9183 } 9184 return function(Constructor, protoProps, staticProps) { 9185 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 9186 Constructor; 9187 }; 9188 }(), Scatter = Object(__WEBPACK_IMPORTED_MODULE_7__util_PureRender__.a)((_temp2 = _class2 = function(_Component) { 9189 function Scatter() { 9190 var _ref, _temp, _this, _ret; 9191 _classCallCheck(this, Scatter); 9192 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 9193 return _temp = _this = _possibleConstructorReturn(this, (_ref = Scatter.__proto__ || Object.getPrototypeOf(Scatter)).call.apply(_ref, [ this ].concat(args))), 9194 _this.state = { 9195 isAnimationFinished: !1 9196 }, _this.cachePrevPoints = function(points) { 9197 _this.setState({ 9198 prevPoints: points 9199 }); 9200 }, _this.handleAnimationEnd = function() { 9201 _this.setState({ 9202 isAnimationFinished: !0 9203 }); 9204 }, _this.handleAnimationStart = function() { 9205 _this.setState({ 9206 isAnimationFinished: !1 9207 }); 9208 }, _this.id = Object(__WEBPACK_IMPORTED_MODULE_16__util_DataUtils__.k)("recharts-scatter-"), 9209 _ret = _temp, _possibleConstructorReturn(_this, _ret); 9210 } 9211 return _inherits(Scatter, _Component), _createClass(Scatter, [ { 9212 key: "componentWillReceiveProps", 9213 value: function(nextProps) { 9214 var _props = this.props, animationId = _props.animationId, points = _props.points; 9215 nextProps.animationId !== animationId && this.cachePrevPoints(points); 9216 } 9217 }, { 9218 key: "renderSymbolItem", 9219 value: function(option, props) { 9220 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.isValidElement(option) ? __WEBPACK_IMPORTED_MODULE_3_react___default.a.cloneElement(option, props) : __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(option) ? option(props) : __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_13__shape_Symbols__.a, _extends({}, props, { 9221 type: option 9222 })); 9223 } 9224 }, { 9225 key: "renderSymbolsStatically", 9226 value: function(points) { 9227 var _this2 = this, _props2 = this.props, shape = _props2.shape, activeShape = _props2.activeShape, activeIndex = _props2.activeIndex, baseProps = Object(__WEBPACK_IMPORTED_MODULE_10__util_ReactUtils__.k)(this.props); 9228 return points.map(function(entry, i) { 9229 var props = _extends({ 9230 key: "symbol-" + i 9231 }, baseProps, entry); 9232 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, _extends({ 9233 className: "recharts-scatter-symbol" 9234 }, Object(__WEBPACK_IMPORTED_MODULE_10__util_ReactUtils__.f)(_this2.props, entry, i), { 9235 key: "symbol-" + i 9236 }), _this2.renderSymbolItem(activeIndex === i ? activeShape : shape, props)); 9237 }); 9238 } 9239 }, { 9240 key: "renderSymbolsWithAnimation", 9241 value: function() { 9242 var _this3 = this, _props3 = this.props, points = _props3.points, isAnimationActive = _props3.isAnimationActive, animationBegin = _props3.animationBegin, animationDuration = _props3.animationDuration, animationEasing = _props3.animationEasing, animationId = _props3.animationId, prevPoints = this.state.prevPoints; 9243 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5_react_smooth___default.a, { 9244 begin: animationBegin, 9245 duration: animationDuration, 9246 isActive: isAnimationActive, 9247 easing: animationEasing, 9248 from: { 9249 t: 0 9250 }, 9251 to: { 9252 t: 1 9253 }, 9254 key: "pie-" + animationId, 9255 onAnimationEnd: this.handleAnimationEnd, 9256 onAnimationStart: this.handleAnimationStart 9257 }, function(_ref2) { 9258 var t = _ref2.t, stepData = points.map(function(entry, index) { 9259 var prev = prevPoints && prevPoints[index]; 9260 if (prev) { 9261 var interpolatorCx = Object(__WEBPACK_IMPORTED_MODULE_16__util_DataUtils__.f)(prev.cx, entry.cx), interpolatorCy = Object(__WEBPACK_IMPORTED_MODULE_16__util_DataUtils__.f)(prev.cy, entry.cy), interpolatorSize = Object(__WEBPACK_IMPORTED_MODULE_16__util_DataUtils__.f)(prev.size, entry.size); 9262 return _extends({}, entry, { 9263 cx: interpolatorCx(t), 9264 cy: interpolatorCy(t), 9265 size: interpolatorSize(t) 9266 }); 9267 } 9268 var interpolator = Object(__WEBPACK_IMPORTED_MODULE_16__util_DataUtils__.f)(0, entry.size); 9269 return _extends({}, entry, { 9270 size: interpolator(t) 9271 }); 9272 }); 9273 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, null, _this3.renderSymbolsStatically(stepData)); 9274 }); 9275 } 9276 }, { 9277 key: "renderSymbols", 9278 value: function() { 9279 var _props4 = this.props, points = _props4.points, isAnimationActive = _props4.isAnimationActive, prevPoints = this.state.prevPoints; 9280 return !(isAnimationActive && points && points.length) || prevPoints && __WEBPACK_IMPORTED_MODULE_0_lodash_isEqual___default()(prevPoints, points) ? this.renderSymbolsStatically(points) : this.renderSymbolsWithAnimation(); 9281 } 9282 }, { 9283 key: "renderErrorBar", 9284 value: function() { 9285 function dataPointFormatterY(dataPoint, dataKey) { 9286 return { 9287 x: dataPoint.cx, 9288 y: dataPoint.cy, 9289 value: dataPoint.y, 9290 errorVal: Object(__WEBPACK_IMPORTED_MODULE_17__util_ChartUtils__.w)(dataPoint, dataKey) 9291 }; 9292 } 9293 function dataPointFormatterX(dataPoint, dataKey) { 9294 return { 9295 x: dataPoint.cx, 9296 y: dataPoint.cy, 9297 value: dataPoint.x, 9298 errorVal: Object(__WEBPACK_IMPORTED_MODULE_17__util_ChartUtils__.w)(dataPoint, dataKey) 9299 }; 9300 } 9301 if (this.props.isAnimationActive && !this.state.isAnimationFinished) return null; 9302 var _props5 = this.props, points = _props5.points, xAxis = _props5.xAxis, yAxis = _props5.yAxis, children = _props5.children, errorBarItems = Object(__WEBPACK_IMPORTED_MODULE_10__util_ReactUtils__.h)(children, __WEBPACK_IMPORTED_MODULE_14__ErrorBar__.a); 9303 return errorBarItems ? errorBarItems.map(function(item, i) { 9304 var direction = item.props.direction; 9305 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.cloneElement(item, { 9306 key: i, 9307 data: points, 9308 xAxis: xAxis, 9309 yAxis: yAxis, 9310 layout: "x" === direction ? "vertical" : "horizontal", 9311 dataPointFormatter: "x" === direction ? dataPointFormatterX : dataPointFormatterY 9312 }); 9313 }) : null; 9314 } 9315 }, { 9316 key: "renderLine", 9317 value: function() { 9318 var _props6 = this.props, points = _props6.points, line = _props6.line, lineType = _props6.lineType, lineJointType = _props6.lineJointType, scatterProps = Object(__WEBPACK_IMPORTED_MODULE_10__util_ReactUtils__.k)(this.props), customLineProps = Object(__WEBPACK_IMPORTED_MODULE_10__util_ReactUtils__.k)(line), linePoints = void 0, lineItem = void 0; 9319 if ("joint" === lineType) linePoints = points.map(function(entry) { 9320 return { 9321 x: entry.cx, 9322 y: entry.cy 9323 }; 9324 }); else if ("fitting" === lineType) { 9325 var _getLinearRegression = Object(__WEBPACK_IMPORTED_MODULE_16__util_DataUtils__.c)(points), xmin = _getLinearRegression.xmin, xmax = _getLinearRegression.xmax, a = _getLinearRegression.a, b = _getLinearRegression.b, linearExp = function(x) { 9326 return a * x + b; 9327 }; 9328 linePoints = [ { 9329 x: xmin, 9330 y: linearExp(xmin) 9331 }, { 9332 x: xmax, 9333 y: linearExp(xmax) 9334 } ]; 9335 } 9336 var lineProps = _extends({}, scatterProps, { 9337 fill: "none", 9338 stroke: scatterProps && scatterProps.fill 9339 }, customLineProps, { 9340 points: linePoints 9341 }); 9342 return lineItem = __WEBPACK_IMPORTED_MODULE_3_react___default.a.isValidElement(line) ? __WEBPACK_IMPORTED_MODULE_3_react___default.a.cloneElement(line, lineProps) : __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(line) ? line(lineProps) : __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_12__shape_Curve__.a, _extends({}, lineProps, { 9343 type: lineJointType 9344 })), __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, { 9345 className: "recharts-scatter-line", 9346 key: "recharts-scatter-line" 9347 }, lineItem); 9348 } 9349 }, { 9350 key: "render", 9351 value: function() { 9352 var _props7 = this.props, hide = _props7.hide, points = _props7.points, line = _props7.line, className = _props7.className, xAxis = _props7.xAxis, yAxis = _props7.yAxis, left = _props7.left, top = _props7.top, width = _props7.width, height = _props7.height, id = _props7.id; 9353 if (hide || !points || !points.length) return null; 9354 var _state = this.state, isAnimationActive = _state.isAnimationActive, isAnimationFinished = _state.isAnimationFinished, layerClass = __WEBPACK_IMPORTED_MODULE_6_classnames___default()("recharts-scatter", className), needClip = xAxis && xAxis.allowDataOverflow || yAxis && yAxis.allowDataOverflow, clipPathId = __WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default()(id) ? this.id : id; 9355 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, { 9356 className: layerClass, 9357 clipPath: needClip ? "url(#clipPath-" + clipPathId + ")" : null 9358 }, needClip ? __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement("defs", null, __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement("clipPath", { 9359 id: "clipPath-" + clipPathId 9360 }, __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement("rect", { 9361 x: left, 9362 y: top, 9363 width: width, 9364 height: height 9365 }))) : null, line && this.renderLine(), this.renderErrorBar(), __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, { 9366 key: "recharts-scatter-symbols" 9367 }, this.renderSymbols()), (!isAnimationActive || isAnimationFinished) && __WEBPACK_IMPORTED_MODULE_9__component_LabelList__.a.renderCallByParent(this.props, points)); 9368 } 9369 } ]), Scatter; 9370 }(__WEBPACK_IMPORTED_MODULE_3_react__.Component), _class2.displayName = "Scatter", 9371 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_10__util_ReactUtils__.a, __WEBPACK_IMPORTED_MODULE_10__util_ReactUtils__.c, { 9372 xAxisId: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number ]), 9373 yAxisId: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number ]), 9374 zAxisId: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number ]), 9375 line: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.element ]), 9376 lineType: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf([ "fitting", "joint" ]), 9377 lineJointType: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf([ "basis", "basisClosed", "basisOpen", "linear", "linearClosed", "natural", "monotoneX", "monotoneY", "monotone", "step", "stepBefore", "stepAfter" ]), __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func ]), 9378 legendType: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf(__WEBPACK_IMPORTED_MODULE_10__util_ReactUtils__.b), 9379 className: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, 9380 name: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number ]), 9381 activeIndex: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 9382 activeShape: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.element ]), 9383 shape: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf([ "circle", "cross", "diamond", "square", "star", "triangle", "wye" ]), __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.element, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func ]), 9384 points: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.shape({ 9385 cx: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 9386 cy: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 9387 size: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 9388 node: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.shape({ 9389 x: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string ]), 9390 y: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string ]), 9391 z: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string ]) 9392 }), 9393 payload: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.any 9394 })), 9395 hide: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool, 9396 isAnimationActive: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool, 9397 animationId: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 9398 animationBegin: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 9399 animationDuration: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 9400 animationEasing: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf([ "ease", "ease-in", "ease-out", "ease-in-out", "linear" ]) 9401 }), _class2.defaultProps = { 9402 xAxisId: 0, 9403 yAxisId: 0, 9404 zAxisId: 0, 9405 legendType: "circle", 9406 lineType: "joint", 9407 lineJointType: "linear", 9408 data: [], 9409 shape: "circle", 9410 hide: !1, 9411 isAnimationActive: !Object(__WEBPACK_IMPORTED_MODULE_10__util_ReactUtils__.n)(), 9412 animationBegin: 0, 9413 animationDuration: 400, 9414 animationEasing: "linear" 9415 }, _class2.getComposedData = function(_ref3) { 9416 var xAxis = _ref3.xAxis, yAxis = _ref3.yAxis, zAxis = _ref3.zAxis, item = _ref3.item, displayedData = _ref3.displayedData, onItemMouseLeave = _ref3.onItemMouseLeave, onItemMouseEnter = _ref3.onItemMouseEnter, offset = _ref3.offset, xAxisTicks = _ref3.xAxisTicks, cells = Object(__WEBPACK_IMPORTED_MODULE_10__util_ReactUtils__.h)(item.props.children, __WEBPACK_IMPORTED_MODULE_15__component_Cell__.a), xAxisDataKey = __WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default()(xAxis.dataKey) ? item.props.dataKey : xAxis.dataKey, yAxisDataKey = __WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default()(yAxis.dataKey) ? item.props.dataKey : yAxis.dataKey, zAxisDataKey = zAxis && zAxis.dataKey, defaultRangeZ = zAxis ? zAxis.range : __WEBPACK_IMPORTED_MODULE_11__ZAxis__.a.defaultProps.range, defaultZ = defaultRangeZ && defaultRangeZ[0], xBandSize = xAxis.scale.bandwidth ? xAxis.scale.bandwidth() : 0, yBandSize = yAxis.scale.bandwidth ? yAxis.scale.bandwidth() : 0, points = displayedData.map(function(entry, index) { 9417 var x = entry[xAxisDataKey], y = entry[yAxisDataKey], z = !__WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default()(zAxisDataKey) && entry[zAxisDataKey] || "-", tooltipPayload = [ { 9418 name: xAxis.name || xAxis.dataKey, 9419 unit: xAxis.unit || "", 9420 value: x, 9421 payload: entry 9422 }, { 9423 name: yAxis.name || yAxis.dataKey, 9424 unit: yAxis.unit || "", 9425 value: y, 9426 payload: entry 9427 } ]; 9428 "-" !== z && tooltipPayload.push({ 9429 name: zAxis.name || zAxis.dataKey, 9430 unit: zAxis.unit || "", 9431 value: z, 9432 payload: entry 9433 }); 9434 var cx = Object(__WEBPACK_IMPORTED_MODULE_17__util_ChartUtils__.l)({ 9435 axis: xAxis, 9436 ticks: xAxisTicks, 9437 bandSize: xBandSize, 9438 entry: entry, 9439 index: index 9440 }), cy = Object(__WEBPACK_IMPORTED_MODULE_17__util_ChartUtils__.l)({ 9441 axis: yAxis, 9442 ticks: xAxisTicks, 9443 bandSize: yBandSize, 9444 entry: entry, 9445 index: index 9446 }), size = "-" !== z ? zAxis.scale(z) : defaultZ, radius = Math.sqrt(Math.max(size, 0) / Math.PI); 9447 return _extends({}, entry, { 9448 cx: cx, 9449 cy: cy, 9450 x: cx - radius, 9451 y: cy - radius, 9452 xAxis: xAxis, 9453 yAxis: yAxis, 9454 zAxis: zAxis, 9455 width: 2 * radius, 9456 height: 2 * radius, 9457 size: size, 9458 node: { 9459 x: x, 9460 y: y, 9461 z: z 9462 }, 9463 tooltipPayload: tooltipPayload, 9464 tooltipPosition: { 9465 x: cx, 9466 y: cy 9467 }, 9468 payload: entry 9469 }, cells && cells[index] && cells[index].props); 9470 }); 9471 return _extends({ 9472 onMouseLeave: onItemMouseLeave, 9473 onMouseEnter: onItemMouseEnter, 9474 points: points 9475 }, offset); 9476 }, _class = _temp2)) || _class; 9477 __webpack_exports__.a = Scatter; 9478 }, function(module, exports, __webpack_require__) { 9479 "use strict"; 9480 var canUseDOM = !("undefined" == typeof window || !window.document || !window.document.createElement), ExecutionEnvironment = { 9481 canUseDOM: canUseDOM, 9482 canUseWorkers: "undefined" != typeof Worker, 9483 canUseEventListeners: canUseDOM && !(!window.addEventListener && !window.attachEvent), 9484 canUseViewport: canUseDOM && !!window.screen, 9485 isInWorker: !canUseDOM 9486 }; 9487 module.exports = ExecutionEnvironment; 9488 }, function(module, exports, __webpack_require__) { 9489 "use strict"; 9490 function getActiveElement(doc) { 9491 if (void 0 === (doc = doc || ("undefined" != typeof document ? document : void 0))) return null; 9492 try { 9493 return doc.activeElement || doc.body; 9494 } catch (e) { 9495 return doc.body; 9496 } 9497 } 9498 module.exports = getActiveElement; 9499 }, function(module, exports, __webpack_require__) { 9500 "use strict"; 9501 function containsNode(outerNode, innerNode) { 9502 return !(!outerNode || !innerNode) && (outerNode === innerNode || !isTextNode(outerNode) && (isTextNode(innerNode) ? containsNode(outerNode, innerNode.parentNode) : "contains" in outerNode ? outerNode.contains(innerNode) : !!outerNode.compareDocumentPosition && !!(16 & outerNode.compareDocumentPosition(innerNode)))); 9503 } 9504 var isTextNode = __webpack_require__(379); 9505 module.exports = containsNode; 9506 }, function(module, exports, __webpack_require__) { 9507 module.exports = { 9508 default: __webpack_require__(387), 9509 __esModule: !0 9510 }; 9511 }, function(module, exports) { 9512 module.exports = function(it) { 9513 if ("function" != typeof it) throw TypeError(it + " is not a function!"); 9514 return it; 9515 }; 9516 }, function(module, exports, __webpack_require__) { 9517 module.exports = !__webpack_require__(25) && !__webpack_require__(53)(function() { 9518 return 7 != Object.defineProperty(__webpack_require__(225)("div"), "a", { 9519 get: function() { 9520 return 7; 9521 } 9522 }).a; 9523 }); 9524 }, function(module, exports, __webpack_require__) { 9525 var isObject = __webpack_require__(35), document = __webpack_require__(24).document, is = isObject(document) && isObject(document.createElement); 9526 module.exports = function(it) { 9527 return is ? document.createElement(it) : {}; 9528 }; 9529 }, function(module, exports, __webpack_require__) { 9530 var has = __webpack_require__(54), toIObject = __webpack_require__(64), arrayIndexOf = __webpack_require__(390)(!1), IE_PROTO = __webpack_require__(150)("IE_PROTO"); 9531 module.exports = function(object, names) { 9532 var key, O = toIObject(object), i = 0, result = []; 9533 for (key in O) key != IE_PROTO && has(O, key) && result.push(key); 9534 for (;names.length > i; ) has(O, key = names[i++]) && (~arrayIndexOf(result, key) || result.push(key)); 9535 return result; 9536 }; 9537 }, function(module, exports, __webpack_require__) { 9538 var has = __webpack_require__(54), toObject = __webpack_require__(65), IE_PROTO = __webpack_require__(150)("IE_PROTO"), ObjectProto = Object.prototype; 9539 module.exports = Object.getPrototypeOf || function(O) { 9540 return O = toObject(O), has(O, IE_PROTO) ? O[IE_PROTO] : "function" == typeof O.constructor && O instanceof O.constructor ? O.constructor.prototype : O instanceof Object ? ObjectProto : null; 9541 }; 9542 }, function(module, exports, __webpack_require__) { 9543 var $export = __webpack_require__(19), core = __webpack_require__(17), fails = __webpack_require__(53); 9544 module.exports = function(KEY, exec) { 9545 var fn = (core.Object || {})[KEY] || Object[KEY], exp = {}; 9546 exp[KEY] = exec(fn), $export($export.S + $export.F * fails(function() { 9547 fn(1); 9548 }), "Object", exp); 9549 }; 9550 }, function(module, exports, __webpack_require__) { 9551 module.exports = __webpack_require__(39); 9552 }, function(module, exports, __webpack_require__) { 9553 __webpack_require__(402); 9554 for (var global = __webpack_require__(24), hide = __webpack_require__(39), Iterators = __webpack_require__(77), TO_STRING_TAG = __webpack_require__(21)("toStringTag"), DOMIterables = "CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","), i = 0; i < DOMIterables.length; i++) { 9555 var NAME = DOMIterables[i], Collection = global[NAME], proto = Collection && Collection.prototype; 9556 proto && !proto[TO_STRING_TAG] && hide(proto, TO_STRING_TAG, NAME), Iterators[NAME] = Iterators.Array; 9557 } 9558 }, function(module, exports) { 9559 module.exports = function(done, value) { 9560 return { 9561 value: value, 9562 done: !!done 9563 }; 9564 }; 9565 }, function(module, exports, __webpack_require__) { 9566 var cof = __webpack_require__(147); 9567 module.exports = Array.isArray || function(arg) { 9568 return "Array" == cof(arg); 9569 }; 9570 }, function(module, exports, __webpack_require__) { 9571 var $keys = __webpack_require__(226), hiddenKeys = __webpack_require__(152).concat("length", "prototype"); 9572 exports.f = Object.getOwnPropertyNames || function(O) { 9573 return $keys(O, hiddenKeys); 9574 }; 9575 }, function(module, exports, __webpack_require__) { 9576 var pIE = __webpack_require__(104), createDesc = __webpack_require__(75), toIObject = __webpack_require__(64), toPrimitive = __webpack_require__(145), has = __webpack_require__(54), IE8_DOM_DEFINE = __webpack_require__(224), gOPD = Object.getOwnPropertyDescriptor; 9577 exports.f = __webpack_require__(25) ? gOPD : function(O, P) { 9578 if (O = toIObject(O), P = toPrimitive(P, !0), IE8_DOM_DEFINE) try { 9579 return gOPD(O, P); 9580 } catch (e) {} 9581 if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); 9582 }; 9583 }, function(module, exports) {}, function(module, exports, __webpack_require__) { 9584 "use strict"; 9585 function _interopRequireDefault(obj) { 9586 return obj && obj.__esModule ? obj : { 9587 default: obj 9588 }; 9589 } 9590 function exactProp(propTypes, componentNameInError) { 9591 return (0, _extends4.default)({}, propTypes, (0, _defineProperty3.default)({}, specialProperty, function(props) { 9592 var unknownProps = (0, _keys2.default)(props).filter(function(prop) { 9593 return !propTypes.hasOwnProperty(prop); 9594 }); 9595 return unknownProps.length > 0 ? new TypeError(componentNameInError + ": unknown props found: " + unknownProps.join(", ") + ". Please remove the unknown properties.") : null; 9596 })); 9597 } 9598 Object.defineProperty(exports, "__esModule", { 9599 value: !0 9600 }), exports.specialProperty = void 0; 9601 var _defineProperty2 = __webpack_require__(12), _defineProperty3 = _interopRequireDefault(_defineProperty2), _keys = __webpack_require__(55), _keys2 = _interopRequireDefault(_keys), _extends3 = __webpack_require__(6), _extends4 = _interopRequireDefault(_extends3); 9602 exports.default = exactProp; 9603 var specialProperty = exports.specialProperty = "exact-prop: "; 9604 }, function(module, exports, __webpack_require__) { 9605 var hide = __webpack_require__(39); 9606 module.exports = function(target, src, safe) { 9607 for (var key in src) safe && target[key] ? target[key] = src[key] : hide(target, key, src[key]); 9608 return target; 9609 }; 9610 }, function(module, exports) { 9611 module.exports = function(it, Constructor, name, forbiddenField) { 9612 if (!(it instanceof Constructor) || void 0 !== forbiddenField && forbiddenField in it) throw TypeError(name + ": incorrect invocation!"); 9613 return it; 9614 }; 9615 }, function(module, exports, __webpack_require__) { 9616 var anObject = __webpack_require__(52); 9617 module.exports = function(iterator, fn, value, entries) { 9618 try { 9619 return entries ? fn(anObject(value)[0], value[1]) : fn(value); 9620 } catch (e) { 9621 var ret = iterator.return; 9622 throw void 0 !== ret && anObject(ret.call(iterator)), e; 9623 } 9624 }; 9625 }, function(module, exports, __webpack_require__) { 9626 var Iterators = __webpack_require__(77), ITERATOR = __webpack_require__(21)("iterator"), ArrayProto = Array.prototype; 9627 module.exports = function(it) { 9628 return void 0 !== it && (Iterators.Array === it || ArrayProto[ITERATOR] === it); 9629 }; 9630 }, function(module, exports, __webpack_require__) { 9631 var classof = __webpack_require__(242), ITERATOR = __webpack_require__(21)("iterator"), Iterators = __webpack_require__(77); 9632 module.exports = __webpack_require__(17).getIteratorMethod = function(it) { 9633 if (void 0 != it) return it[ITERATOR] || it["@@iterator"] || Iterators[classof(it)]; 9634 }; 9635 }, function(module, exports, __webpack_require__) { 9636 var cof = __webpack_require__(147), TAG = __webpack_require__(21)("toStringTag"), ARG = "Arguments" == cof(function() { 9637 return arguments; 9638 }()), tryGet = function(it, key) { 9639 try { 9640 return it[key]; 9641 } catch (e) {} 9642 }; 9643 module.exports = function(it) { 9644 var O, T, B; 9645 return void 0 === it ? "Undefined" : null === it ? "Null" : "string" == typeof (T = tryGet(O = Object(it), TAG)) ? T : ARG ? cof(O) : "Object" == (B = cof(O)) && "function" == typeof O.callee ? "Arguments" : B; 9646 }; 9647 }, function(module, exports, __webpack_require__) { 9648 var isObject = __webpack_require__(35); 9649 module.exports = function(it, TYPE) { 9650 if (!isObject(it) || it._t !== TYPE) throw TypeError("Incompatible receiver, " + TYPE + " required!"); 9651 return it; 9652 }; 9653 }, function(module, exports, __webpack_require__) { 9654 "use strict"; 9655 exports.__esModule = !0; 9656 var getDisplayName = function(Component) { 9657 if ("string" == typeof Component) return Component; 9658 if (Component) return Component.displayName || Component.name || "Component"; 9659 }; 9660 exports.default = getDisplayName; 9661 }, function(module, exports, __webpack_require__) { 9662 "use strict"; 9663 Object.defineProperty(exports, "__esModule", { 9664 value: !0 9665 }); 9666 exports.jss = "64a55d578f856d258dc345b094a2a2b3", exports.sheetsRegistry = "d4bd0baacbc52bbd48bbb9eb24344ecd", 9667 exports.managers = "b768b78919504fba9de2c03545c5cd3a", exports.sheetOptions = "6fc570d6bd61383819d0f9e7407c452d"; 9668 }, function(module, exports, __webpack_require__) { 9669 "use strict"; 9670 function _interopRequireDefault(obj) { 9671 return obj && obj.__esModule ? obj : { 9672 default: obj 9673 }; 9674 } 9675 Object.defineProperty(exports, "__esModule", { 9676 value: !0 9677 }), exports.create = exports.createGenerateClassName = exports.sheets = exports.RuleList = exports.SheetsManager = exports.SheetsRegistry = exports.toCssValue = exports.getDynamicStyles = void 0; 9678 var _getDynamicStyles = __webpack_require__(461); 9679 Object.defineProperty(exports, "getDynamicStyles", { 9680 enumerable: !0, 9681 get: function() { 9682 return _interopRequireDefault(_getDynamicStyles).default; 9683 } 9684 }); 9685 var _toCssValue = __webpack_require__(110); 9686 Object.defineProperty(exports, "toCssValue", { 9687 enumerable: !0, 9688 get: function() { 9689 return _interopRequireDefault(_toCssValue).default; 9690 } 9691 }); 9692 var _SheetsRegistry = __webpack_require__(247); 9693 Object.defineProperty(exports, "SheetsRegistry", { 9694 enumerable: !0, 9695 get: function() { 9696 return _interopRequireDefault(_SheetsRegistry).default; 9697 } 9698 }); 9699 var _SheetsManager = __webpack_require__(462); 9700 Object.defineProperty(exports, "SheetsManager", { 9701 enumerable: !0, 9702 get: function() { 9703 return _interopRequireDefault(_SheetsManager).default; 9704 } 9705 }); 9706 var _RuleList = __webpack_require__(80); 9707 Object.defineProperty(exports, "RuleList", { 9708 enumerable: !0, 9709 get: function() { 9710 return _interopRequireDefault(_RuleList).default; 9711 } 9712 }); 9713 var _sheets = __webpack_require__(164); 9714 Object.defineProperty(exports, "sheets", { 9715 enumerable: !0, 9716 get: function() { 9717 return _interopRequireDefault(_sheets).default; 9718 } 9719 }); 9720 var _createGenerateClassName = __webpack_require__(250); 9721 Object.defineProperty(exports, "createGenerateClassName", { 9722 enumerable: !0, 9723 get: function() { 9724 return _interopRequireDefault(_createGenerateClassName).default; 9725 } 9726 }); 9727 var _Jss = __webpack_require__(469), _Jss2 = _interopRequireDefault(_Jss), create = exports.create = function(options) { 9728 return new _Jss2.default(options); 9729 }; 9730 exports.default = create(); 9731 }, function(module, exports, __webpack_require__) { 9732 "use strict"; 9733 function _classCallCheck(instance, Constructor) { 9734 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 9735 } 9736 Object.defineProperty(exports, "__esModule", { 9737 value: !0 9738 }); 9739 var _createClass = function() { 9740 function defineProperties(target, props) { 9741 for (var i = 0; i < props.length; i++) { 9742 var descriptor = props[i]; 9743 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 9744 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 9745 } 9746 } 9747 return function(Constructor, protoProps, staticProps) { 9748 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 9749 Constructor; 9750 }; 9751 }(), SheetsRegistry = function() { 9752 function SheetsRegistry() { 9753 _classCallCheck(this, SheetsRegistry), this.registry = []; 9754 } 9755 return _createClass(SheetsRegistry, [ { 9756 key: "add", 9757 value: function(sheet) { 9758 var registry = this.registry, index = sheet.options.index; 9759 if (-1 === registry.indexOf(sheet)) { 9760 if (0 === registry.length || index >= this.index) return void registry.push(sheet); 9761 for (var i = 0; i < registry.length; i++) if (registry[i].options.index > index) return void registry.splice(i, 0, sheet); 9762 } 9763 } 9764 }, { 9765 key: "reset", 9766 value: function() { 9767 this.registry = []; 9768 } 9769 }, { 9770 key: "remove", 9771 value: function(sheet) { 9772 var index = this.registry.indexOf(sheet); 9773 this.registry.splice(index, 1); 9774 } 9775 }, { 9776 key: "toString", 9777 value: function(options) { 9778 return this.registry.filter(function(sheet) { 9779 return sheet.attached; 9780 }).map(function(sheet) { 9781 return sheet.toString(options); 9782 }).join("\n"); 9783 } 9784 }, { 9785 key: "index", 9786 get: function() { 9787 return 0 === this.registry.length ? 0 : this.registry[this.registry.length - 1].options.index; 9788 } 9789 } ]), SheetsRegistry; 9790 }(); 9791 exports.default = SheetsRegistry; 9792 }, function(module, exports, __webpack_require__) { 9793 "use strict"; 9794 Object.defineProperty(exports, "__esModule", { 9795 value: !0 9796 }); 9797 var _symbolObservable = __webpack_require__(464), _symbolObservable2 = function(obj) { 9798 return obj && obj.__esModule ? obj : { 9799 default: obj 9800 }; 9801 }(_symbolObservable); 9802 exports.default = function(value) { 9803 return value && value[_symbolObservable2.default] && value === value[_symbolObservable2.default](); 9804 }; 9805 }, function(module, exports, __webpack_require__) { 9806 "use strict"; 9807 function linkRule(rule, cssRule) { 9808 rule.renderable = cssRule, rule.rules && cssRule.cssRules && rule.rules.link(cssRule.cssRules); 9809 } 9810 Object.defineProperty(exports, "__esModule", { 9811 value: !0 9812 }), exports.default = linkRule; 9813 }, function(module, exports, __webpack_require__) { 9814 "use strict"; 9815 (function(process) { 9816 function _interopRequireDefault(obj) { 9817 return obj && obj.__esModule ? obj : { 9818 default: obj 9819 }; 9820 } 9821 Object.defineProperty(exports, "__esModule", { 9822 value: !0 9823 }); 9824 var _warning = __webpack_require__(11), _warning2 = _interopRequireDefault(_warning), _StyleSheet = __webpack_require__(251), _moduleId = (_interopRequireDefault(_StyleSheet), 9825 __webpack_require__(468)), _moduleId2 = _interopRequireDefault(_moduleId), env = process.env.NODE_ENV; 9826 exports.default = function() { 9827 var ruleCounter = 0, defaultPrefix = "production" === env ? "c" : ""; 9828 return function(rule, sheet) { 9829 (ruleCounter += 1) > 1e10 && (0, _warning2.default)(!1, "[JSS] You might have a memory leak. Rule counter is at %s.", ruleCounter); 9830 var prefix = defaultPrefix, jssId = ""; 9831 return sheet && (prefix = sheet.options.classNamePrefix || defaultPrefix, null != sheet.options.jss.id && (jssId += sheet.options.jss.id)), 9832 "production" === env ? "" + prefix + _moduleId2.default + jssId + ruleCounter : prefix + rule.key + "-" + _moduleId2.default + (jssId && "-" + jssId) + "-" + ruleCounter; 9833 }; 9834 }; 9835 }).call(exports, __webpack_require__(2)); 9836 }, function(module, exports, __webpack_require__) { 9837 "use strict"; 9838 function _interopRequireDefault(obj) { 9839 return obj && obj.__esModule ? obj : { 9840 default: obj 9841 }; 9842 } 9843 function _classCallCheck(instance, Constructor) { 9844 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 9845 } 9846 Object.defineProperty(exports, "__esModule", { 9847 value: !0 9848 }); 9849 var _extends = Object.assign || function(target) { 9850 for (var i = 1; i < arguments.length; i++) { 9851 var source = arguments[i]; 9852 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 9853 } 9854 return target; 9855 }, _createClass = function() { 9856 function defineProperties(target, props) { 9857 for (var i = 0; i < props.length; i++) { 9858 var descriptor = props[i]; 9859 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 9860 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 9861 } 9862 } 9863 return function(Constructor, protoProps, staticProps) { 9864 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 9865 Constructor; 9866 }; 9867 }(), _linkRule = __webpack_require__(249), _linkRule2 = _interopRequireDefault(_linkRule), _RuleList = __webpack_require__(80), _RuleList2 = _interopRequireDefault(_RuleList), StyleSheet = function() { 9868 function StyleSheet(styles, options) { 9869 _classCallCheck(this, StyleSheet), this.attached = !1, this.deployed = !1, this.linked = !1, 9870 this.classes = {}, this.options = _extends({}, options, { 9871 sheet: this, 9872 parent: this, 9873 classes: this.classes 9874 }), this.renderer = new options.Renderer(this), this.rules = new _RuleList2.default(this.options); 9875 for (var name in styles) this.rules.add(name, styles[name]); 9876 this.rules.process(); 9877 } 9878 return _createClass(StyleSheet, [ { 9879 key: "attach", 9880 value: function() { 9881 return this.attached ? this : (this.deployed || this.deploy(), this.renderer.attach(), 9882 !this.linked && this.options.link && this.link(), this.attached = !0, this); 9883 } 9884 }, { 9885 key: "detach", 9886 value: function() { 9887 return this.attached ? (this.renderer.detach(), this.attached = !1, this) : this; 9888 } 9889 }, { 9890 key: "addRule", 9891 value: function(name, decl, options) { 9892 var queue = this.queue; 9893 this.attached && !queue && (this.queue = []); 9894 var rule = this.rules.add(name, decl, options); 9895 return this.options.jss.plugins.onProcessRule(rule), this.attached ? this.deployed ? (queue ? queue.push(rule) : (this.insertRule(rule), 9896 this.queue && (this.queue.forEach(this.insertRule, this), this.queue = void 0)), 9897 rule) : rule : (this.deployed = !1, rule); 9898 } 9899 }, { 9900 key: "insertRule", 9901 value: function(rule) { 9902 var renderable = this.renderer.insertRule(rule); 9903 renderable && this.options.link && (0, _linkRule2.default)(rule, renderable); 9904 } 9905 }, { 9906 key: "addRules", 9907 value: function(styles, options) { 9908 var added = []; 9909 for (var name in styles) added.push(this.addRule(name, styles[name], options)); 9910 return added; 9911 } 9912 }, { 9913 key: "getRule", 9914 value: function(name) { 9915 return this.rules.get(name); 9916 } 9917 }, { 9918 key: "deleteRule", 9919 value: function(name) { 9920 var rule = this.rules.get(name); 9921 return !!rule && (this.rules.remove(rule), !this.attached || !rule.renderable || this.renderer.deleteRule(rule.renderable)); 9922 } 9923 }, { 9924 key: "indexOf", 9925 value: function(rule) { 9926 return this.rules.indexOf(rule); 9927 } 9928 }, { 9929 key: "deploy", 9930 value: function() { 9931 return this.renderer.deploy(), this.deployed = !0, this; 9932 } 9933 }, { 9934 key: "link", 9935 value: function() { 9936 var cssRules = this.renderer.getRules(); 9937 return cssRules && this.rules.link(cssRules), this.linked = !0, this; 9938 } 9939 }, { 9940 key: "update", 9941 value: function(name, data) { 9942 return this.rules.update(name, data), this; 9943 } 9944 }, { 9945 key: "toString", 9946 value: function(options) { 9947 return this.rules.toString(options); 9948 } 9949 } ]), StyleSheet; 9950 }(); 9951 exports.default = StyleSheet; 9952 }, function(module, exports, __webpack_require__) { 9953 "use strict"; 9954 function _interopRequireDefault(obj) { 9955 return obj && obj.__esModule ? obj : { 9956 default: obj 9957 }; 9958 } 9959 Object.defineProperty(exports, "__esModule", { 9960 value: !0 9961 }); 9962 var _ButtonBase = __webpack_require__(505); 9963 Object.defineProperty(exports, "default", { 9964 enumerable: !0, 9965 get: function() { 9966 return _interopRequireDefault(_ButtonBase).default; 9967 } 9968 }); 9969 }, function(module, exports) { 9970 exports = module.exports = function(searchInput) { 9971 if (searchInput && "object" == typeof searchInput) { 9972 var hasKeyCode = searchInput.which || searchInput.keyCode || searchInput.charCode; 9973 hasKeyCode && (searchInput = hasKeyCode); 9974 } 9975 if ("number" == typeof searchInput) return names[searchInput]; 9976 var search = String(searchInput), foundNamedKey = codes[search.toLowerCase()]; 9977 if (foundNamedKey) return foundNamedKey; 9978 var foundNamedKey = aliases[search.toLowerCase()]; 9979 return foundNamedKey || (1 === search.length ? search.charCodeAt(0) : void 0); 9980 }; 9981 var codes = exports.code = exports.codes = { 9982 backspace: 8, 9983 tab: 9, 9984 enter: 13, 9985 shift: 16, 9986 ctrl: 17, 9987 alt: 18, 9988 "pause/break": 19, 9989 "caps lock": 20, 9990 esc: 27, 9991 space: 32, 9992 "page up": 33, 9993 "page down": 34, 9994 end: 35, 9995 home: 36, 9996 left: 37, 9997 up: 38, 9998 right: 39, 9999 down: 40, 10000 insert: 45, 10001 delete: 46, 10002 command: 91, 10003 "left command": 91, 10004 "right command": 93, 10005 "numpad *": 106, 10006 "numpad +": 107, 10007 "numpad -": 109, 10008 "numpad .": 110, 10009 "numpad /": 111, 10010 "num lock": 144, 10011 "scroll lock": 145, 10012 "my computer": 182, 10013 "my calculator": 183, 10014 ";": 186, 10015 "=": 187, 10016 ",": 188, 10017 "-": 189, 10018 ".": 190, 10019 "/": 191, 10020 "` + "`"))) + ((`": 192, 10021 "[": 219, 10022 "\\": 220, 10023 "]": 221, 10024 "'": 222 10025 }, aliases = exports.aliases = { 10026 windows: 91, 10027 "⇧": 16, 10028 "⌥": 18, 10029 "⌃": 17, 10030 "⌘": 91, 10031 ctl: 17, 10032 control: 17, 10033 option: 18, 10034 pause: 19, 10035 break: 19, 10036 caps: 20, 10037 return: 13, 10038 escape: 27, 10039 spc: 32, 10040 pgup: 33, 10041 pgdn: 34, 10042 ins: 45, 10043 del: 46, 10044 cmd: 91 10045 }; 10046 for (i = 97; i < 123; i++) codes[String.fromCharCode(i)] = i - 32; 10047 for (var i = 48; i < 58; i++) codes[i - 48] = i; 10048 for (i = 1; i < 13; i++) codes["f" + i] = i + 111; 10049 for (i = 0; i < 10; i++) codes["numpad " + i] = i + 96; 10050 var names = exports.names = exports.title = {}; 10051 for (i in codes) names[codes[i]] = i; 10052 for (var alias in aliases) codes[alias] = aliases[alias]; 10053 }, function(module, exports, __webpack_require__) { 10054 "use strict"; 10055 function ownerDocument(node) { 10056 return node && node.ownerDocument || document; 10057 } 10058 Object.defineProperty(exports, "__esModule", { 10059 value: !0 10060 }), exports.default = ownerDocument, module.exports = exports.default; 10061 }, function(module, exports, __webpack_require__) { 10062 "use strict"; 10063 (function(process) { 10064 function _interopRequireDefault(obj) { 10065 return obj && obj.__esModule ? obj : { 10066 default: obj 10067 }; 10068 } 10069 function _objectWithoutProperties(obj, keys) { 10070 var target = {}; 10071 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 10072 return target; 10073 } 10074 function _classCallCheck(instance, Constructor) { 10075 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 10076 } 10077 function _possibleConstructorReturn(self, call) { 10078 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 10079 return !call || "object" != typeof call && "function" != typeof call ? self : call; 10080 } 10081 function _inherits(subClass, superClass) { 10082 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 10083 subClass.prototype = Object.create(superClass && superClass.prototype, { 10084 constructor: { 10085 value: subClass, 10086 enumerable: !1, 10087 writable: !0, 10088 configurable: !0 10089 } 10090 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 10091 } 10092 exports.__esModule = !0; 10093 var _extends = Object.assign || function(target) { 10094 for (var i = 1; i < arguments.length; i++) { 10095 var source = arguments[i]; 10096 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 10097 } 10098 return target; 10099 }, _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _ChildMapping = __webpack_require__(517), values = Object.values || function(obj) { 10100 return Object.keys(obj).map(function(k) { 10101 return obj[k]; 10102 }); 10103 }, propTypes = { 10104 component: _propTypes2.default.any, 10105 children: _propTypes2.default.node, 10106 appear: _propTypes2.default.bool, 10107 enter: _propTypes2.default.bool, 10108 exit: _propTypes2.default.bool, 10109 childFactory: _propTypes2.default.func 10110 }, defaultProps = { 10111 component: "div", 10112 childFactory: function(child) { 10113 return child; 10114 } 10115 }, TransitionGroup = function(_React$Component) { 10116 function TransitionGroup(props, context) { 10117 _classCallCheck(this, TransitionGroup); 10118 var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)); 10119 return _this.handleExited = function(key, node, originalHandler) { 10120 var currentChildMapping = (0, _ChildMapping.getChildMapping)(_this.props.children); 10121 key in currentChildMapping || (originalHandler && originalHandler(node), _this.setState(function(state) { 10122 var children = _extends({}, state.children); 10123 return delete children[key], { 10124 children: children 10125 }; 10126 })); 10127 }, _this.state = { 10128 children: (0, _ChildMapping.getChildMapping)(props.children, function(child) { 10129 var onExited = function(node) { 10130 _this.handleExited(child.key, node, child.props.onExited); 10131 }; 10132 return (0, _react.cloneElement)(child, { 10133 onExited: onExited, 10134 in: !0, 10135 appear: _this.getProp(child, "appear"), 10136 enter: _this.getProp(child, "enter"), 10137 exit: _this.getProp(child, "exit") 10138 }); 10139 }) 10140 }, _this; 10141 } 10142 return _inherits(TransitionGroup, _React$Component), TransitionGroup.prototype.getChildContext = function() { 10143 return { 10144 transitionGroup: { 10145 isMounting: !this.appeared 10146 } 10147 }; 10148 }, TransitionGroup.prototype.getProp = function(child, prop) { 10149 var props = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : this.props; 10150 return null != props[prop] ? props[prop] : child.props[prop]; 10151 }, TransitionGroup.prototype.componentDidMount = function() { 10152 this.appeared = !0; 10153 }, TransitionGroup.prototype.componentWillReceiveProps = function(nextProps) { 10154 var _this2 = this, prevChildMapping = this.state.children, nextChildMapping = (0, 10155 _ChildMapping.getChildMapping)(nextProps.children), children = (0, _ChildMapping.mergeChildMappings)(prevChildMapping, nextChildMapping); 10156 Object.keys(children).forEach(function(key) { 10157 var child = children[key]; 10158 if ((0, _react.isValidElement)(child)) { 10159 var onExited = function(node) { 10160 _this2.handleExited(child.key, node, child.props.onExited); 10161 }, hasPrev = key in prevChildMapping, hasNext = key in nextChildMapping, prevChild = prevChildMapping[key], isLeaving = (0, 10162 _react.isValidElement)(prevChild) && !prevChild.props.in; 10163 !hasNext || hasPrev && !isLeaving ? hasNext || !hasPrev || isLeaving ? hasNext && hasPrev && (0, 10164 _react.isValidElement)(prevChild) && (children[key] = (0, _react.cloneElement)(child, { 10165 onExited: onExited, 10166 in: prevChild.props.in, 10167 exit: _this2.getProp(child, "exit", nextProps), 10168 enter: _this2.getProp(child, "enter", nextProps) 10169 })) : children[key] = (0, _react.cloneElement)(child, { 10170 in: !1 10171 }) : children[key] = (0, _react.cloneElement)(child, { 10172 onExited: onExited, 10173 in: !0, 10174 exit: _this2.getProp(child, "exit", nextProps), 10175 enter: _this2.getProp(child, "enter", nextProps) 10176 }); 10177 } 10178 }), this.setState({ 10179 children: children 10180 }); 10181 }, TransitionGroup.prototype.render = function() { 10182 var _props = this.props, Component = _props.component, childFactory = _props.childFactory, props = _objectWithoutProperties(_props, [ "component", "childFactory" ]), children = this.state.children; 10183 return delete props.appear, delete props.enter, delete props.exit, _react2.default.createElement(Component, props, values(children).map(childFactory)); 10184 }, TransitionGroup; 10185 }(_react2.default.Component); 10186 TransitionGroup.childContextTypes = { 10187 transitionGroup: _propTypes2.default.object.isRequired 10188 }, TransitionGroup.propTypes = "production" !== process.env.NODE_ENV ? propTypes : {}, 10189 TransitionGroup.defaultProps = defaultProps, exports.default = TransitionGroup, 10190 module.exports = exports.default; 10191 }).call(exports, __webpack_require__(2)); 10192 }, function(module, exports, __webpack_require__) { 10193 "use strict"; 10194 function _interopRequireDefault(obj) { 10195 return obj && obj.__esModule ? obj : { 10196 default: obj 10197 }; 10198 } 10199 function cloneChildrenWithClassName(children, className) { 10200 return _react2.default.Children.map(children, function(child) { 10201 return _react2.default.isValidElement(child) && _react2.default.cloneElement(child, { 10202 className: (0, _classnames2.default)(child.props.className, className) 10203 }); 10204 }); 10205 } 10206 function isMuiElement(element, muiNames) { 10207 return _react2.default.isValidElement(element) && -1 !== muiNames.indexOf(element.type.muiName); 10208 } 10209 function isMuiComponent(element, muiNames) { 10210 return -1 !== muiNames.indexOf(element.muiName); 10211 } 10212 Object.defineProperty(exports, "__esModule", { 10213 value: !0 10214 }), exports.cloneChildrenWithClassName = cloneChildrenWithClassName, exports.isMuiElement = isMuiElement, 10215 exports.isMuiComponent = isMuiComponent; 10216 var _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _classnames = __webpack_require__(3), _classnames2 = _interopRequireDefault(_classnames); 10217 }, function(module, exports, __webpack_require__) { 10218 "use strict"; 10219 function _interopRequireDefault(obj) { 10220 return obj && obj.__esModule ? obj : { 10221 default: obj 10222 }; 10223 } 10224 Object.defineProperty(exports, "__esModule", { 10225 value: !0 10226 }); 10227 var _SvgIcon = __webpack_require__(521); 10228 Object.defineProperty(exports, "default", { 10229 enumerable: !0, 10230 get: function() { 10231 return _interopRequireDefault(_SvgIcon).default; 10232 } 10233 }); 10234 }, function(module, exports, __webpack_require__) { 10235 "use strict"; 10236 function _interopRequireDefault(obj) { 10237 return obj && obj.__esModule ? obj : { 10238 default: obj 10239 }; 10240 } 10241 Object.defineProperty(exports, "__esModule", { 10242 value: !0 10243 }); 10244 var _Icon = __webpack_require__(522); 10245 Object.defineProperty(exports, "default", { 10246 enumerable: !0, 10247 get: function() { 10248 return _interopRequireDefault(_Icon).default; 10249 } 10250 }); 10251 }, function(module, exports, __webpack_require__) { 10252 "use strict"; 10253 exports.__esModule = !0; 10254 var _setStatic = __webpack_require__(526), _setStatic2 = function(obj) { 10255 return obj && obj.__esModule ? obj : { 10256 default: obj 10257 }; 10258 }(_setStatic), setDisplayName = function(displayName) { 10259 return (0, _setStatic2.default)("displayName", displayName); 10260 }; 10261 exports.default = setDisplayName; 10262 }, function(module, exports, __webpack_require__) { 10263 "use strict"; 10264 function _interopRequireDefault(obj) { 10265 return obj && obj.__esModule ? obj : { 10266 default: obj 10267 }; 10268 } 10269 Object.defineProperty(exports, "__esModule", { 10270 value: !0 10271 }); 10272 var _List = __webpack_require__(531); 10273 Object.defineProperty(exports, "default", { 10274 enumerable: !0, 10275 get: function() { 10276 return _interopRequireDefault(_List).default; 10277 } 10278 }); 10279 var _ListItem = __webpack_require__(532); 10280 Object.defineProperty(exports, "ListItem", { 10281 enumerable: !0, 10282 get: function() { 10283 return _interopRequireDefault(_ListItem).default; 10284 } 10285 }); 10286 var _ListItemAvatar = __webpack_require__(533); 10287 Object.defineProperty(exports, "ListItemAvatar", { 10288 enumerable: !0, 10289 get: function() { 10290 return _interopRequireDefault(_ListItemAvatar).default; 10291 } 10292 }); 10293 var _ListItemText = __webpack_require__(534); 10294 Object.defineProperty(exports, "ListItemText", { 10295 enumerable: !0, 10296 get: function() { 10297 return _interopRequireDefault(_ListItemText).default; 10298 } 10299 }); 10300 var _ListItemIcon = __webpack_require__(535); 10301 Object.defineProperty(exports, "ListItemIcon", { 10302 enumerable: !0, 10303 get: function() { 10304 return _interopRequireDefault(_ListItemIcon).default; 10305 } 10306 }); 10307 var _ListItemSecondaryAction = __webpack_require__(536); 10308 Object.defineProperty(exports, "ListItemSecondaryAction", { 10309 enumerable: !0, 10310 get: function() { 10311 return _interopRequireDefault(_ListItemSecondaryAction).default; 10312 } 10313 }); 10314 var _ListSubheader = __webpack_require__(537); 10315 Object.defineProperty(exports, "ListSubheader", { 10316 enumerable: !0, 10317 get: function() { 10318 return _interopRequireDefault(_ListSubheader).default; 10319 } 10320 }); 10321 }, function(module, exports, __webpack_require__) { 10322 "use strict"; 10323 function _interopRequireDefault(obj) { 10324 return obj && obj.__esModule ? obj : { 10325 default: obj 10326 }; 10327 } 10328 function _classCallCheck(instance, Constructor) { 10329 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 10330 } 10331 function _possibleConstructorReturn(self, call) { 10332 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 10333 return !call || "object" != typeof call && "function" != typeof call ? self : call; 10334 } 10335 function _inherits(subClass, superClass) { 10336 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 10337 subClass.prototype = Object.create(superClass && superClass.prototype, { 10338 constructor: { 10339 value: subClass, 10340 enumerable: !1, 10341 writable: !0, 10342 configurable: !0 10343 } 10344 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 10345 } 10346 function _toConsumableArray(arr) { 10347 if (Array.isArray(arr)) { 10348 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; 10349 return arr2; 10350 } 10351 return Array.from(arr); 10352 } 10353 Object.defineProperty(exports, "__esModule", { 10354 value: !0 10355 }), exports.inserter = void 0; 10356 var _createClass = function() { 10357 function defineProperties(target, props) { 10358 for (var i = 0; i < props.length; i++) { 10359 var descriptor = props[i]; 10360 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 10361 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 10362 } 10363 } 10364 return function(Constructor, protoProps, staticProps) { 10365 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 10366 Constructor; 10367 }; 10368 }(), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _List = __webpack_require__(260), _List2 = _interopRequireDefault(_List), _escapeHtml = __webpack_require__(550), _escapeHtml2 = _interopRequireDefault(_escapeHtml), requestBand = .05, fieldPadding = new Map(), createChunk = function(records) { 10369 var content = ""; 10370 return records.forEach(function(record) { 10371 var t = record.t, ctx = record.ctx, lvl = record.lvl, msg = record.msg, color = "#ce3c23"; 10372 switch (lvl) { 10373 case "trace": 10374 case "trce": 10375 lvl = "TRACE", color = "#3465a4"; 10376 break; 10377 10378 case "debug": 10379 case "dbug": 10380 lvl = "DEBUG", color = "#3d989b"; 10381 break; 10382 10383 case "info": 10384 lvl = "INFO ", color = "#4c8f0f"; 10385 break; 10386 10387 case "warn": 10388 lvl = "WARN ", color = "#b79a22"; 10389 break; 10390 10391 case "error": 10392 case "eror": 10393 lvl = "ERROR", color = "#754b70"; 10394 break; 10395 10396 case "crit": 10397 lvl = "CRIT ", color = "#ce3c23"; 10398 break; 10399 10400 default: 10401 lvl = ""; 10402 } 10403 var time = new Date(t); 10404 if ("" === lvl || !(time instanceof Date) || isNaN(time) || "string" != typeof msg || !Array.isArray(ctx)) return void (content += '<span style="color:#ce3c23">Invalid log record</span><br />'); 10405 ctx.length > 0 && (msg += " ".repeat(Math.max(40 - msg.length, 0))); 10406 var month = ("0" + (time.getMonth() + 1)).slice(-2), date = ("0" + time.getDate()).slice(-2), hours = ("0" + time.getHours()).slice(-2), minutes = ("0" + time.getMinutes()).slice(-2), seconds = ("0" + time.getSeconds()).slice(-2); 10407 content += '<span style="color:' + color + '">' + lvl + "</span>[" + month + "-" + date + "|" + hours + ":" + minutes + ":" + seconds + "] " + msg; 10408 for (var i = 0; i < ctx.length; i += 2) { 10409 var key = (0, _escapeHtml2.default)(ctx[i]), val = (0, _escapeHtml2.default)(ctx[i + 1]), padding = fieldPadding.get(key); 10410 ("number" != typeof padding || padding < val.length) && (padding = val.length, fieldPadding.set(key, padding)); 10411 var p = ""; 10412 i < ctx.length - 2 && (p = " ".repeat(padding - val.length)), content += ' <span style="color:' + color + '">' + key + "</span>=" + val + p; 10413 } 10414 content += "<br />"; 10415 }), content; 10416 }, ADDED = 1, REMOVED = -1, styles = (exports.inserter = function(limit) { 10417 return function(update, prev) { 10418 if (prev.topChanged = 0, prev.bottomChanged = 0, !Array.isArray(update.chunk) || update.chunk.length < 1) return prev; 10419 Array.isArray(prev.chunks) || (prev.chunks = []); 10420 var content = createChunk(update.chunk); 10421 if (!update.source) return prev.endBottom ? prev.chunks.length < 1 ? [ { 10422 content: content, 10423 name: "00000000000000.log" 10424 } ] : (prev.chunks[prev.chunks.length - 1].content += content, prev.bottomChanged = ADDED, 10425 prev) : prev; 10426 var chunk = { 10427 content: content, 10428 name: update.source.name 10429 }; 10430 return prev.chunks.length > 0 && update.source.name < prev.chunks[0].name ? (update.source.last && (prev.endTop = !0), 10431 prev.chunks.length >= limit && (prev.endBottom = !1, prev.chunks.splice(limit - 1, prev.chunks.length - limit + 1), 10432 prev.bottomChanged = REMOVED), prev.chunks = [ chunk ].concat(_toConsumableArray(prev.chunks)), 10433 prev.topChanged = ADDED, prev) : (update.source.last && (prev.endBottom = !0), prev.chunks.length >= limit && (prev.endTop = !1, 10434 prev.chunks.splice(0, prev.chunks.length - limit + 1), prev.topChanged = REMOVED), 10435 prev.chunks = [].concat(_toConsumableArray(prev.chunks), [ chunk ]), prev.bottomChanged = ADDED, 10436 prev); 10437 }; 10438 }, { 10439 logListItem: { 10440 padding: 0, 10441 lineHeight: 1.231 10442 }, 10443 logChunk: { 10444 color: "white", 10445 fontFamily: "monospace", 10446 whiteSpace: "nowrap", 10447 width: 0 10448 }, 10449 waitMsg: { 10450 textAlign: "center", 10451 color: "white", 10452 fontFamily: "monospace" 10453 } 10454 }), Logs = function(_Component) { 10455 function Logs(props) { 10456 _classCallCheck(this, Logs); 10457 var _this = _possibleConstructorReturn(this, (Logs.__proto__ || Object.getPrototypeOf(Logs)).call(this, props)); 10458 return _this.onScroll = function() { 10459 if (_this.state.requestAllowed && void 0 !== _this.content) { 10460 var logs = _this.props.content.logs; 10461 logs.chunks.length < 1 || (_this.atTop() && !logs.endTop ? _this.sendRequest(logs.chunks[0].name, !0) : _this.atBottom() && !logs.endBottom && _this.sendRequest(logs.chunks[logs.chunks.length - 1].name, !1)); 10462 } 10463 }, _this.sendRequest = function(name, past) { 10464 _this.setState({ 10465 requestAllowed: !1 10466 }), _this.props.send(JSON.stringify({ 10467 Logs: { 10468 Name: name, 10469 Past: past 10470 } 10471 })); 10472 }, _this.atTop = function() { 10473 return _this.props.container.scrollTop <= _this.props.container.scrollHeight * requestBand; 10474 }, _this.atBottom = function() { 10475 var container = _this.props.container; 10476 return container.scrollHeight - container.scrollTop <= container.clientHeight + container.scrollHeight * requestBand; 10477 }, _this.beforeUpdate = function() { 10478 var firstHeight = 0, chunkList = _this.content.children[1]; 10479 return chunkList && chunkList.children[0] && (firstHeight = chunkList.children[0].clientHeight), 10480 { 10481 scrollTop: _this.props.container.scrollTop, 10482 firstHeight: firstHeight 10483 }; 10484 }, _this.didUpdate = function(prevProps, prevState, snapshot) { 10485 if (void 0 !== _this.props.shouldUpdate.logs && void 0 !== _this.content && null !== snapshot) { 10486 var logs = _this.props.content.logs, container = _this.props.container; 10487 if (!(void 0 === container || logs.chunks.length < 1)) { 10488 if (_this.content.clientHeight < container.clientHeight) return void (logs.endTop || _this.sendRequest(logs.chunks[0].name, !0)); 10489 var scrollTop = snapshot.scrollTop; 10490 logs.topChanged === ADDED ? scrollTop += _this.content.children[1].children[0].clientHeight : logs.bottomChanged === ADDED && (logs.topChanged === REMOVED ? scrollTop -= snapshot.firstHeight : _this.atBottom() && logs.endBottom && (scrollTop = container.scrollHeight - container.clientHeight)), 10491 container.scrollTop = scrollTop, _this.setState({ 10492 requestAllowed: !0 10493 }); 10494 } 10495 } 10496 }, _this.content = _react2.default.createRef(), _this.state = { 10497 requestAllowed: !0 10498 }, _this; 10499 } 10500 return _inherits(Logs, _Component), _createClass(Logs, [ { 10501 key: "componentDidMount", 10502 value: function() { 10503 var container = this.props.container; 10504 if (void 0 !== container) { 10505 container.scrollTop = container.scrollHeight - container.clientHeight; 10506 var logs = this.props.content.logs; 10507 void 0 === this.content || logs.chunks.length < 1 || this.content.clientHeight < container.clientHeight && !logs.endTop && this.sendRequest(logs.chunks[0].name, !0); 10508 } 10509 } 10510 }, { 10511 key: "render", 10512 value: function() { 10513 var _this2 = this; 10514 return _react2.default.createElement("div", { 10515 ref: function(_ref) { 10516 _this2.content = _ref; 10517 } 10518 }, _react2.default.createElement("div", { 10519 style: styles.waitMsg 10520 }, this.props.content.logs.endTop ? "No more logs." : "Waiting for server..."), _react2.default.createElement(_List2.default, null, this.props.content.logs.chunks.map(function(c, index) { 10521 return _react2.default.createElement(_List.ListItem, { 10522 style: styles.logListItem, 10523 key: index 10524 }, _react2.default.createElement("div", { 10525 style: styles.logChunk, 10526 dangerouslySetInnerHTML: { 10527 __html: c.content 10528 } 10529 })); 10530 })), this.props.content.logs.endBottom || _react2.default.createElement("div", { 10531 style: styles.waitMsg 10532 }, "Waiting for server...")); 10533 } 10534 } ]), Logs; 10535 }(_react.Component); 10536 exports.default = Logs; 10537 }, function(module, exports, __webpack_require__) { 10538 "use strict"; 10539 function _interopRequireDefault(obj) { 10540 return obj && obj.__esModule ? obj : { 10541 default: obj 10542 }; 10543 } 10544 Object.defineProperty(exports, "__esModule", { 10545 value: !0 10546 }); 10547 var _Grid = __webpack_require__(552); 10548 Object.defineProperty(exports, "default", { 10549 enumerable: !0, 10550 get: function() { 10551 return _interopRequireDefault(_Grid).default; 10552 } 10553 }); 10554 }, function(module, exports) { 10555 function isObject(value) { 10556 var type = typeof value; 10557 return null != value && ("object" == type || "function" == type); 10558 } 10559 module.exports = isObject; 10560 }, function(module, exports, __webpack_require__) { 10561 var freeGlobal = __webpack_require__(562), freeSelf = "object" == typeof self && self && self.Object === Object && self, root = freeGlobal || freeSelf || Function("return this")(); 10562 module.exports = root; 10563 }, function(module, exports, __webpack_require__) { 10564 var root = __webpack_require__(264), Symbol = root.Symbol; 10565 module.exports = Symbol; 10566 }, function(module, exports, __webpack_require__) { 10567 var dP = __webpack_require__(575), createDesc = __webpack_require__(580); 10568 module.exports = __webpack_require__(170) ? function(object, key, value) { 10569 return dP.f(object, key, createDesc(1, value)); 10570 } : function(object, key, value) { 10571 return object[key] = value, object; 10572 }; 10573 }, function(module, exports) { 10574 module.exports = Math.log1p || function(x) { 10575 return (x = +x) > -1e-8 && x < 1e-8 ? x - x * x / 2 : Math.log(1 + x); 10576 }; 10577 }, function(module, exports, __webpack_require__) { 10578 (function(global) { 10579 var freeGlobal = "object" == typeof global && global && global.Object === Object && global; 10580 module.exports = freeGlobal; 10581 }).call(exports, __webpack_require__(40)); 10582 }, function(module, exports, __webpack_require__) { 10583 function baseGet(object, path) { 10584 path = castPath(path, object); 10585 for (var index = 0, length = path.length; null != object && index < length; ) object = object[toKey(path[index++])]; 10586 return index && index == length ? object : void 0; 10587 } 10588 var castPath = __webpack_require__(270), toKey = __webpack_require__(119); 10589 module.exports = baseGet; 10590 }, function(module, exports, __webpack_require__) { 10591 function castPath(value, object) { 10592 return isArray(value) ? value : isKey(value, object) ? [ value ] : stringToPath(toString(value)); 10593 } 10594 var isArray = __webpack_require__(13), isKey = __webpack_require__(175), stringToPath = __webpack_require__(605), toString = __webpack_require__(629); 10595 module.exports = castPath; 10596 }, function(module, exports) { 10597 function toSource(func) { 10598 if (null != func) { 10599 try { 10600 return funcToString.call(func); 10601 } catch (e) {} 10602 try { 10603 return func + ""; 10604 } catch (e) {} 10605 } 10606 return ""; 10607 } 10608 var funcProto = Function.prototype, funcToString = funcProto.toString; 10609 module.exports = toSource; 10610 }, function(module, exports, __webpack_require__) { 10611 function isNumber(value) { 10612 return "number" == typeof value || isObjectLike(value) && baseGetTag(value) == numberTag; 10613 } 10614 var baseGetTag = __webpack_require__(41), isObjectLike = __webpack_require__(42), numberTag = "[object Number]"; 10615 module.exports = isNumber; 10616 }, function(module, __webpack_exports__, __webpack_require__) { 10617 "use strict"; 10618 var __WEBPACK_IMPORTED_MODULE_0_d3_path__ = __webpack_require__(84), __WEBPACK_IMPORTED_MODULE_1__constant__ = __webpack_require__(58), __WEBPACK_IMPORTED_MODULE_2__curve_linear__ = __webpack_require__(121), __WEBPACK_IMPORTED_MODULE_3__line__ = __webpack_require__(183), __WEBPACK_IMPORTED_MODULE_4__point__ = __webpack_require__(184); 10619 __webpack_exports__.a = function() { 10620 function area(data) { 10621 var i, j, k, d, buffer, n = data.length, defined0 = !1, x0z = new Array(n), y0z = new Array(n); 10622 for (null == context && (output = curve(buffer = Object(__WEBPACK_IMPORTED_MODULE_0_d3_path__.a)())), 10623 i = 0; i <= n; ++i) { 10624 if (!(i < n && defined(d = data[i], i, data)) === defined0) if (defined0 = !defined0) j = i, 10625 output.areaStart(), output.lineStart(); else { 10626 for (output.lineEnd(), output.lineStart(), k = i - 1; k >= j; --k) output.point(x0z[k], y0z[k]); 10627 output.lineEnd(), output.areaEnd(); 10628 } 10629 defined0 && (x0z[i] = +x0(d, i, data), y0z[i] = +y0(d, i, data), output.point(x1 ? +x1(d, i, data) : x0z[i], y1 ? +y1(d, i, data) : y0z[i])); 10630 } 10631 if (buffer) return output = null, buffer + "" || null; 10632 } 10633 function arealine() { 10634 return Object(__WEBPACK_IMPORTED_MODULE_3__line__.a)().defined(defined).curve(curve).context(context); 10635 } 10636 var x0 = __WEBPACK_IMPORTED_MODULE_4__point__.a, x1 = null, y0 = Object(__WEBPACK_IMPORTED_MODULE_1__constant__.a)(0), y1 = __WEBPACK_IMPORTED_MODULE_4__point__.b, defined = Object(__WEBPACK_IMPORTED_MODULE_1__constant__.a)(!0), context = null, curve = __WEBPACK_IMPORTED_MODULE_2__curve_linear__.a, output = null; 10637 return area.x = function(_) { 10638 return arguments.length ? (x0 = "function" == typeof _ ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__.a)(+_), 10639 x1 = null, area) : x0; 10640 }, area.x0 = function(_) { 10641 return arguments.length ? (x0 = "function" == typeof _ ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__.a)(+_), 10642 area) : x0; 10643 }, area.x1 = function(_) { 10644 return arguments.length ? (x1 = null == _ ? null : "function" == typeof _ ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__.a)(+_), 10645 area) : x1; 10646 }, area.y = function(_) { 10647 return arguments.length ? (y0 = "function" == typeof _ ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__.a)(+_), 10648 y1 = null, area) : y0; 10649 }, area.y0 = function(_) { 10650 return arguments.length ? (y0 = "function" == typeof _ ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__.a)(+_), 10651 area) : y0; 10652 }, area.y1 = function(_) { 10653 return arguments.length ? (y1 = null == _ ? null : "function" == typeof _ ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__.a)(+_), 10654 area) : y1; 10655 }, area.lineX0 = area.lineY0 = function() { 10656 return arealine().x(x0).y(y0); 10657 }, area.lineY1 = function() { 10658 return arealine().x(x0).y(y1); 10659 }, area.lineX1 = function() { 10660 return arealine().x(x1).y(y0); 10661 }, area.defined = function(_) { 10662 return arguments.length ? (defined = "function" == typeof _ ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__.a)(!!_), 10663 area) : defined; 10664 }, area.curve = function(_) { 10665 return arguments.length ? (curve = _, null != context && (output = curve(context)), 10666 area) : curve; 10667 }, area.context = function(_) { 10668 return arguments.length ? (null == _ ? context = output = null : output = curve(context = _), 10669 area) : context; 10670 }, area; 10671 }; 10672 }, function(module, __webpack_exports__, __webpack_require__) { 10673 "use strict"; 10674 function Radial(curve) { 10675 this._curve = curve; 10676 } 10677 function curveRadial(curve) { 10678 function radial(context) { 10679 return new Radial(curve(context)); 10680 } 10681 return radial._curve = curve, radial; 10682 } 10683 __webpack_require__.d(__webpack_exports__, "a", function() { 10684 return curveRadialLinear; 10685 }), __webpack_exports__.b = curveRadial; 10686 var __WEBPACK_IMPORTED_MODULE_0__linear__ = __webpack_require__(121), curveRadialLinear = curveRadial(__WEBPACK_IMPORTED_MODULE_0__linear__.a); 10687 Radial.prototype = { 10688 areaStart: function() { 10689 this._curve.areaStart(); 10690 }, 10691 areaEnd: function() { 10692 this._curve.areaEnd(); 10693 }, 10694 lineStart: function() { 10695 this._curve.lineStart(); 10696 }, 10697 lineEnd: function() { 10698 this._curve.lineEnd(); 10699 }, 10700 point: function(a, r) { 10701 this._curve.point(r * Math.sin(a), r * -Math.cos(a)); 10702 } 10703 }; 10704 }, function(module, __webpack_exports__, __webpack_require__) { 10705 "use strict"; 10706 function lineRadial(l) { 10707 var c = l.curve; 10708 return l.angle = l.x, delete l.x, l.radius = l.y, delete l.y, l.curve = function(_) { 10709 return arguments.length ? c(Object(__WEBPACK_IMPORTED_MODULE_0__curve_radial__.b)(_)) : c()._curve; 10710 }, l; 10711 } 10712 __webpack_exports__.a = lineRadial; 10713 var __WEBPACK_IMPORTED_MODULE_0__curve_radial__ = __webpack_require__(274); 10714 __webpack_require__(183); 10715 }, function(module, __webpack_exports__, __webpack_require__) { 10716 "use strict"; 10717 __webpack_exports__.a = function(x, y) { 10718 return [ (y = +y) * Math.cos(x -= Math.PI / 2), y * Math.sin(x) ]; 10719 }; 10720 }, function(module, __webpack_exports__, __webpack_require__) { 10721 "use strict"; 10722 __webpack_require__.d(__webpack_exports__, "a", function() { 10723 return slice; 10724 }); 10725 var slice = Array.prototype.slice; 10726 }, function(module, __webpack_exports__, __webpack_require__) { 10727 "use strict"; 10728 var __WEBPACK_IMPORTED_MODULE_0__math__ = __webpack_require__(85); 10729 __webpack_exports__.a = { 10730 draw: function(context, size) { 10731 var r = Math.sqrt(size / __WEBPACK_IMPORTED_MODULE_0__math__.j); 10732 context.moveTo(r, 0), context.arc(0, 0, r, 0, __WEBPACK_IMPORTED_MODULE_0__math__.m); 10733 } 10734 }; 10735 }, function(module, __webpack_exports__, __webpack_require__) { 10736 "use strict"; 10737 __webpack_exports__.a = { 10738 draw: function(context, size) { 10739 var r = Math.sqrt(size / 5) / 2; 10740 context.moveTo(-3 * r, -r), context.lineTo(-r, -r), context.lineTo(-r, -3 * r), 10741 context.lineTo(r, -3 * r), context.lineTo(r, -r), context.lineTo(3 * r, -r), context.lineTo(3 * r, r), 10742 context.lineTo(r, r), context.lineTo(r, 3 * r), context.lineTo(-r, 3 * r), context.lineTo(-r, r), 10743 context.lineTo(-3 * r, r), context.closePath(); 10744 } 10745 }; 10746 }, function(module, __webpack_exports__, __webpack_require__) { 10747 "use strict"; 10748 var tan30 = Math.sqrt(1 / 3), tan30_2 = 2 * tan30; 10749 __webpack_exports__.a = { 10750 draw: function(context, size) { 10751 var y = Math.sqrt(size / tan30_2), x = y * tan30; 10752 context.moveTo(0, -y), context.lineTo(x, 0), context.lineTo(0, y), context.lineTo(-x, 0), 10753 context.closePath(); 10754 } 10755 }; 10756 }, function(module, __webpack_exports__, __webpack_require__) { 10757 "use strict"; 10758 var __WEBPACK_IMPORTED_MODULE_0__math__ = __webpack_require__(85), kr = Math.sin(__WEBPACK_IMPORTED_MODULE_0__math__.j / 10) / Math.sin(7 * __WEBPACK_IMPORTED_MODULE_0__math__.j / 10), kx = Math.sin(__WEBPACK_IMPORTED_MODULE_0__math__.m / 10) * kr, ky = -Math.cos(__WEBPACK_IMPORTED_MODULE_0__math__.m / 10) * kr; 10759 __webpack_exports__.a = { 10760 draw: function(context, size) { 10761 var r = Math.sqrt(.8908130915292852 * size), x = kx * r, y = ky * r; 10762 context.moveTo(0, -r), context.lineTo(x, y); 10763 for (var i = 1; i < 5; ++i) { 10764 var a = __WEBPACK_IMPORTED_MODULE_0__math__.m * i / 5, c = Math.cos(a), s = Math.sin(a); 10765 context.lineTo(s * r, -c * r), context.lineTo(c * x - s * y, s * x + c * y); 10766 } 10767 context.closePath(); 10768 } 10769 }; 10770 }, function(module, __webpack_exports__, __webpack_require__) { 10771 "use strict"; 10772 __webpack_exports__.a = { 10773 draw: function(context, size) { 10774 var w = Math.sqrt(size), x = -w / 2; 10775 context.rect(x, x, w, w); 10776 } 10777 }; 10778 }, function(module, __webpack_exports__, __webpack_require__) { 10779 "use strict"; 10780 var sqrt3 = Math.sqrt(3); 10781 __webpack_exports__.a = { 10782 draw: function(context, size) { 10783 var y = -Math.sqrt(size / (3 * sqrt3)); 10784 context.moveTo(0, 2 * y), context.lineTo(-sqrt3 * y, -y), context.lineTo(sqrt3 * y, -y), 10785 context.closePath(); 10786 } 10787 }; 10788 }, function(module, __webpack_exports__, __webpack_require__) { 10789 "use strict"; 10790 var c = -.5, s = Math.sqrt(3) / 2, k = 1 / Math.sqrt(12), a = 3 * (k / 2 + 1); 10791 __webpack_exports__.a = { 10792 draw: function(context, size) { 10793 var r = Math.sqrt(size / a), x0 = r / 2, y0 = r * k, x1 = x0, y1 = r * k + r, x2 = -x1, y2 = y1; 10794 context.moveTo(x0, y0), context.lineTo(x1, y1), context.lineTo(x2, y2), context.lineTo(c * x0 - s * y0, s * x0 + c * y0), 10795 context.lineTo(c * x1 - s * y1, s * x1 + c * y1), context.lineTo(c * x2 - s * y2, s * x2 + c * y2), 10796 context.lineTo(c * x0 + s * y0, c * y0 - s * x0), context.lineTo(c * x1 + s * y1, c * y1 - s * x1), 10797 context.lineTo(c * x2 + s * y2, c * y2 - s * x2), context.closePath(); 10798 } 10799 }; 10800 }, function(module, __webpack_exports__, __webpack_require__) { 10801 "use strict"; 10802 function CardinalClosed(context, tension) { 10803 this._context = context, this._k = (1 - tension) / 6; 10804 } 10805 __webpack_exports__.a = CardinalClosed; 10806 var __WEBPACK_IMPORTED_MODULE_0__noop__ = __webpack_require__(122), __WEBPACK_IMPORTED_MODULE_1__cardinal__ = __webpack_require__(124); 10807 CardinalClosed.prototype = { 10808 areaStart: __WEBPACK_IMPORTED_MODULE_0__noop__.a, 10809 areaEnd: __WEBPACK_IMPORTED_MODULE_0__noop__.a, 10810 lineStart: function() { 10811 this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, 10812 this._point = 0; 10813 }, 10814 lineEnd: function() { 10815 switch (this._point) { 10816 case 1: 10817 this._context.moveTo(this._x3, this._y3), this._context.closePath(); 10818 break; 10819 10820 case 2: 10821 this._context.lineTo(this._x3, this._y3), this._context.closePath(); 10822 break; 10823 10824 case 3: 10825 this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5); 10826 } 10827 }, 10828 point: function(x, y) { 10829 switch (x = +x, y = +y, this._point) { 10830 case 0: 10831 this._point = 1, this._x3 = x, this._y3 = y; 10832 break; 10833 10834 case 1: 10835 this._point = 2, this._context.moveTo(this._x4 = x, this._y4 = y); 10836 break; 10837 10838 case 2: 10839 this._point = 3, this._x5 = x, this._y5 = y; 10840 break; 10841 10842 default: 10843 Object(__WEBPACK_IMPORTED_MODULE_1__cardinal__.b)(this, x, y); 10844 } 10845 this._x0 = this._x1, this._x1 = this._x2, this._x2 = x, this._y0 = this._y1, this._y1 = this._y2, 10846 this._y2 = y; 10847 } 10848 }; 10849 !function custom(tension) { 10850 function cardinal(context) { 10851 return new CardinalClosed(context, tension); 10852 } 10853 return cardinal.tension = function(tension) { 10854 return custom(+tension); 10855 }, cardinal; 10856 }(0); 10857 }, function(module, __webpack_exports__, __webpack_require__) { 10858 "use strict"; 10859 function CardinalOpen(context, tension) { 10860 this._context = context, this._k = (1 - tension) / 6; 10861 } 10862 __webpack_exports__.a = CardinalOpen; 10863 var __WEBPACK_IMPORTED_MODULE_0__cardinal__ = __webpack_require__(124); 10864 CardinalOpen.prototype = { 10865 areaStart: function() { 10866 this._line = 0; 10867 }, 10868 areaEnd: function() { 10869 this._line = NaN; 10870 }, 10871 lineStart: function() { 10872 this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0; 10873 }, 10874 lineEnd: function() { 10875 (this._line || 0 !== this._line && 3 === this._point) && this._context.closePath(), 10876 this._line = 1 - this._line; 10877 }, 10878 point: function(x, y) { 10879 switch (x = +x, y = +y, this._point) { 10880 case 0: 10881 this._point = 1; 10882 break; 10883 10884 case 1: 10885 this._point = 2; 10886 break; 10887 10888 case 2: 10889 this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); 10890 break; 10891 10892 case 3: 10893 this._point = 4; 10894 10895 default: 10896 Object(__WEBPACK_IMPORTED_MODULE_0__cardinal__.b)(this, x, y); 10897 } 10898 this._x0 = this._x1, this._x1 = this._x2, this._x2 = x, this._y0 = this._y1, this._y1 = this._y2, 10899 this._y2 = y; 10900 } 10901 }; 10902 !function custom(tension) { 10903 function cardinal(context) { 10904 return new CardinalOpen(context, tension); 10905 } 10906 return cardinal.tension = function(tension) { 10907 return custom(+tension); 10908 }, cardinal; 10909 }(0); 10910 }, function(module, exports, __webpack_require__) { 10911 "use strict"; 10912 function _interopRequireDefault(obj) { 10913 return obj && obj.__esModule ? obj : { 10914 default: obj 10915 }; 10916 } 10917 function _objectWithoutProperties(obj, keys) { 10918 var target = {}; 10919 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 10920 return target; 10921 } 10922 function _toConsumableArray(arr) { 10923 if (Array.isArray(arr)) { 10924 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; 10925 return arr2; 10926 } 10927 return Array.from(arr); 10928 } 10929 function _defineProperty(obj, key, value) { 10930 return key in obj ? Object.defineProperty(obj, key, { 10931 value: value, 10932 enumerable: !0, 10933 configurable: !0, 10934 writable: !0 10935 }) : obj[key] = value, obj; 10936 } 10937 function _classCallCheck(instance, Constructor) { 10938 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 10939 } 10940 function _possibleConstructorReturn(self, call) { 10941 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 10942 return !call || "object" != typeof call && "function" != typeof call ? self : call; 10943 } 10944 function _inherits(subClass, superClass) { 10945 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 10946 subClass.prototype = Object.create(superClass && superClass.prototype, { 10947 constructor: { 10948 value: subClass, 10949 enumerable: !1, 10950 writable: !0, 10951 configurable: !0 10952 } 10953 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 10954 } 10955 Object.defineProperty(exports, "__esModule", { 10956 value: !0 10957 }); 10958 var _class, _class2, _temp, _isEqual2 = __webpack_require__(288), _isEqual3 = _interopRequireDefault(_isEqual2), _extends = Object.assign || function(target) { 10959 for (var i = 1; i < arguments.length; i++) { 10960 var source = arguments[i]; 10961 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 10962 } 10963 return target; 10964 }, _createClass = function() { 10965 function defineProperties(target, props) { 10966 for (var i = 0; i < props.length; i++) { 10967 var descriptor = props[i]; 10968 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 10969 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 10970 } 10971 } 10972 return function(Constructor, protoProps, staticProps) { 10973 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 10974 Constructor; 10975 }; 10976 }(), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _AnimateManager = __webpack_require__(713), _AnimateManager2 = _interopRequireDefault(_AnimateManager), _PureRender = __webpack_require__(716), _PureRender2 = _interopRequireDefault(_PureRender), _easing = __webpack_require__(305), _configUpdate = __webpack_require__(737), _configUpdate2 = _interopRequireDefault(_configUpdate), _util = __webpack_require__(132), Animate = (0, 10977 _PureRender2.default)((_temp = _class2 = function(_Component) { 10978 function Animate(props, context) { 10979 _classCallCheck(this, Animate); 10980 var _this = _possibleConstructorReturn(this, (Animate.__proto__ || Object.getPrototypeOf(Animate)).call(this, props, context)), _this$props = _this.props, isActive = _this$props.isActive, attributeName = _this$props.attributeName, from = _this$props.from, to = _this$props.to, steps = _this$props.steps, children = _this$props.children; 10981 if (_this.handleStyleChange = _this.handleStyleChange.bind(_this), _this.changeStyle = _this.changeStyle.bind(_this), 10982 !isActive) return _this.state = { 10983 style: {} 10984 }, "function" == typeof children && (_this.state = { 10985 style: to 10986 }), _possibleConstructorReturn(_this); 10987 if (steps && steps.length) _this.state = { 10988 style: steps[0].style 10989 }; else if (from) { 10990 if ("function" == typeof children) return _this.state = { 10991 style: from 10992 }, _possibleConstructorReturn(_this); 10993 _this.state = { 10994 style: attributeName ? _defineProperty({}, attributeName, from) : from 10995 }; 10996 } else _this.state = { 10997 style: {} 10998 }; 10999 return _this; 11000 } 11001 return _inherits(Animate, _Component), _createClass(Animate, [ { 11002 key: "componentDidMount", 11003 value: function() { 11004 var _props = this.props, isActive = _props.isActive, canBegin = _props.canBegin; 11005 this.mounted = !0, isActive && canBegin && this.runAnimation(this.props); 11006 } 11007 }, { 11008 key: "componentWillReceiveProps", 11009 value: function(nextProps) { 11010 var isActive = nextProps.isActive, canBegin = nextProps.canBegin, attributeName = nextProps.attributeName, shouldReAnimate = nextProps.shouldReAnimate; 11011 if (canBegin) { 11012 if (!isActive) return void this.setState({ 11013 style: attributeName ? _defineProperty({}, attributeName, nextProps.to) : nextProps.to 11014 }); 11015 if (!((0, _isEqual3.default)(this.props.to, nextProps.to) && this.props.canBegin && this.props.isActive)) { 11016 var isTriggered = !this.props.canBegin || !this.props.isActive; 11017 this.manager && this.manager.stop(), this.stopJSAnimation && this.stopJSAnimation(); 11018 var from = isTriggered || shouldReAnimate ? nextProps.from : this.props.to; 11019 this.setState({ 11020 style: attributeName ? _defineProperty({}, attributeName, from) : from 11021 }), this.runAnimation(_extends({}, nextProps, { 11022 from: from, 11023 begin: 0 11024 })); 11025 } 11026 } 11027 } 11028 }, { 11029 key: "componentWillUnmount", 11030 value: function() { 11031 this.mounted = !1, this.unSubscribe && this.unSubscribe(), this.manager && (this.manager.stop(), 11032 this.manager = null), this.stopJSAnimation && this.stopJSAnimation(); 11033 } 11034 }, { 11035 key: "runJSAnimation", 11036 value: function(props) { 11037 var _this2 = this, from = props.from, to = props.to, duration = props.duration, easing = props.easing, begin = props.begin, onAnimationEnd = props.onAnimationEnd, onAnimationStart = props.onAnimationStart, startAnimation = (0, 11038 _configUpdate2.default)(from, to, (0, _easing.configEasing)(easing), duration, this.changeStyle), finalStartAnimation = function() { 11039 _this2.stopJSAnimation = startAnimation(); 11040 }; 11041 this.manager.start([ onAnimationStart, begin, finalStartAnimation, duration, onAnimationEnd ]); 11042 } 11043 }, { 11044 key: "runStepAnimation", 11045 value: function(props) { 11046 var _this3 = this, steps = props.steps, begin = props.begin, onAnimationStart = props.onAnimationStart, _steps$ = steps[0], initialStyle = _steps$.style, _steps$$duration = _steps$.duration, initialTime = void 0 === _steps$$duration ? 0 : _steps$$duration, addStyle = function(sequence, nextItem, index) { 11047 if (0 === index) return sequence; 11048 var duration = nextItem.duration, _nextItem$easing = nextItem.easing, easing = void 0 === _nextItem$easing ? "ease" : _nextItem$easing, style = nextItem.style, nextProperties = nextItem.properties, onAnimationEnd = nextItem.onAnimationEnd, preItem = index > 0 ? steps[index - 1] : nextItem, properties = nextProperties || Object.keys(style); 11049 if ("function" == typeof easing || "spring" === easing) return [].concat(_toConsumableArray(sequence), [ _this3.runJSAnimation.bind(_this3, { 11050 from: preItem.style, 11051 to: style, 11052 duration: duration, 11053 easing: easing 11054 }), duration ]); 11055 var transition = (0, _util.getTransitionVal)(properties, duration, easing), newStyle = _extends({}, preItem.style, style, { 11056 transition: transition 11057 }); 11058 return [].concat(_toConsumableArray(sequence), [ newStyle, duration, onAnimationEnd ]).filter(_util.identity); 11059 }; 11060 return this.manager.start([ onAnimationStart ].concat(_toConsumableArray(steps.reduce(addStyle, [ initialStyle, Math.max(initialTime, begin) ])), [ props.onAnimationEnd ])); 11061 } 11062 }, { 11063 key: "runAnimation", 11064 value: function(props) { 11065 this.manager || (this.manager = (0, _AnimateManager2.default)()); 11066 var begin = props.begin, duration = props.duration, attributeName = props.attributeName, propsTo = (props.from, 11067 props.to), easing = props.easing, onAnimationStart = props.onAnimationStart, onAnimationEnd = props.onAnimationEnd, steps = props.steps, children = props.children, manager = this.manager; 11068 if (this.unSubscribe = manager.subscribe(this.handleStyleChange), "function" == typeof easing || "function" == typeof children || "spring" === easing) return void this.runJSAnimation(props); 11069 if (steps.length > 1) return void this.runStepAnimation(props); 11070 var to = attributeName ? _defineProperty({}, attributeName, propsTo) : propsTo, transition = (0, 11071 _util.getTransitionVal)(Object.keys(to), duration, easing); 11072 manager.start([ onAnimationStart, begin, _extends({}, to, { 11073 transition: transition 11074 }), duration, onAnimationEnd ]); 11075 } 11076 }, { 11077 key: "handleStyleChange", 11078 value: function(style) { 11079 this.changeStyle(style); 11080 } 11081 }, { 11082 key: "changeStyle", 11083 value: function(style) { 11084 this.mounted && this.setState({ 11085 style: style 11086 }); 11087 } 11088 }, { 11089 key: "render", 11090 value: function() { 11091 var _props2 = this.props, children = _props2.children, isActive = (_props2.begin, 11092 _props2.duration, _props2.attributeName, _props2.easing, _props2.isActive), others = (_props2.steps, 11093 _props2.from, _props2.to, _props2.canBegin, _props2.onAnimationEnd, _props2.shouldReAnimate, 11094 _props2.onAnimationReStart, _objectWithoutProperties(_props2, [ "children", "begin", "duration", "attributeName", "easing", "isActive", "steps", "from", "to", "canBegin", "onAnimationEnd", "shouldReAnimate", "onAnimationReStart" ])), count = _react.Children.count(children), stateStyle = (0, 11095 _util.translateStyle)(this.state.style); 11096 if ("function" == typeof children) return children(stateStyle); 11097 if (!isActive || 0 === count) return children; 11098 var cloneContainer = function(container) { 11099 var _container$props = container.props, _container$props$styl = _container$props.style, style = void 0 === _container$props$styl ? {} : _container$props$styl, className = _container$props.className; 11100 return (0, _react.cloneElement)(container, _extends({}, others, { 11101 style: _extends({}, style, stateStyle), 11102 className: className 11103 })); 11104 }; 11105 if (1 === count) { 11106 _react.Children.only(children); 11107 return cloneContainer(_react.Children.only(children)); 11108 } 11109 return _react2.default.createElement("div", null, _react.Children.map(children, function(child) { 11110 return cloneContainer(child); 11111 })); 11112 } 11113 } ]), Animate; 11114 }(_react.Component), _class2.displayName = "Animate", _class2.propTypes = { 11115 from: _propTypes2.default.oneOfType([ _propTypes2.default.object, _propTypes2.default.string ]), 11116 to: _propTypes2.default.oneOfType([ _propTypes2.default.object, _propTypes2.default.string ]), 11117 attributeName: _propTypes2.default.string, 11118 duration: _propTypes2.default.number, 11119 begin: _propTypes2.default.number, 11120 easing: _propTypes2.default.oneOfType([ _propTypes2.default.string, _propTypes2.default.func ]), 11121 steps: _propTypes2.default.arrayOf(_propTypes2.default.shape({ 11122 duration: _propTypes2.default.number.isRequired, 11123 style: _propTypes2.default.object.isRequired, 11124 easing: _propTypes2.default.oneOfType([ _propTypes2.default.oneOf([ "ease", "ease-in", "ease-out", "ease-in-out", "linear" ]), _propTypes2.default.func ]), 11125 properties: _propTypes2.default.arrayOf("string"), 11126 onAnimationEnd: _propTypes2.default.func 11127 })), 11128 children: _propTypes2.default.oneOfType([ _propTypes2.default.node, _propTypes2.default.func ]), 11129 isActive: _propTypes2.default.bool, 11130 canBegin: _propTypes2.default.bool, 11131 onAnimationEnd: _propTypes2.default.func, 11132 shouldReAnimate: _propTypes2.default.bool, 11133 onAnimationStart: _propTypes2.default.func, 11134 onAnimationReStart: _propTypes2.default.func 11135 }, _class2.defaultProps = { 11136 begin: 0, 11137 duration: 1e3, 11138 from: "", 11139 to: "", 11140 attributeName: "", 11141 easing: "ease", 11142 isActive: !0, 11143 canBegin: !0, 11144 steps: [], 11145 onAnimationEnd: function() {}, 11146 onAnimationStart: function() {} 11147 }, _class = _temp)) || _class; 11148 exports.default = Animate; 11149 }, function(module, exports, __webpack_require__) { 11150 function isEqual(value, other) { 11151 return baseIsEqual(value, other); 11152 } 11153 var baseIsEqual = __webpack_require__(187); 11154 module.exports = isEqual; 11155 }, function(module, exports, __webpack_require__) { 11156 function Stack(entries) { 11157 var data = this.__data__ = new ListCache(entries); 11158 this.size = data.size; 11159 } 11160 var ListCache = __webpack_require__(126), stackClear = __webpack_require__(663), stackDelete = __webpack_require__(664), stackGet = __webpack_require__(665), stackHas = __webpack_require__(666), stackSet = __webpack_require__(667); 11161 Stack.prototype.clear = stackClear, Stack.prototype.delete = stackDelete, Stack.prototype.get = stackGet, 11162 Stack.prototype.has = stackHas, Stack.prototype.set = stackSet, module.exports = Stack; 11163 }, function(module, exports) { 11164 function eq(value, other) { 11165 return value === other || value !== value && other !== other; 11166 } 11167 module.exports = eq; 11168 }, function(module, exports, __webpack_require__) { 11169 function isFunction(value) { 11170 if (!isObject(value)) return !1; 11171 var tag = baseGetTag(value); 11172 return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; 11173 } 11174 var baseGetTag = __webpack_require__(60), isObject = __webpack_require__(189), asyncTag = "[object AsyncFunction]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]"; 11175 module.exports = isFunction; 11176 }, function(module, exports, __webpack_require__) { 11177 (function(global) { 11178 var freeGlobal = "object" == typeof global && global && global.Object === Object && global; 11179 module.exports = freeGlobal; 11180 }).call(exports, __webpack_require__(40)); 11181 }, function(module, exports) { 11182 function toSource(func) { 11183 if (null != func) { 11184 try { 11185 return funcToString.call(func); 11186 } catch (e) {} 11187 try { 11188 return func + ""; 11189 } catch (e) {} 11190 } 11191 return ""; 11192 } 11193 var funcProto = Function.prototype, funcToString = funcProto.toString; 11194 module.exports = toSource; 11195 }, function(module, exports, __webpack_require__) { 11196 function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { 11197 var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length; 11198 if (arrLength != othLength && !(isPartial && othLength > arrLength)) return !1; 11199 var stacked = stack.get(array); 11200 if (stacked && stack.get(other)) return stacked == other; 11201 var index = -1, result = !0, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : void 0; 11202 for (stack.set(array, other), stack.set(other, array); ++index < arrLength; ) { 11203 var arrValue = array[index], othValue = other[index]; 11204 if (customizer) var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack); 11205 if (void 0 !== compared) { 11206 if (compared) continue; 11207 result = !1; 11208 break; 11209 } 11210 if (seen) { 11211 if (!arraySome(other, function(othValue, othIndex) { 11212 if (!cacheHas(seen, othIndex) && (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) return seen.push(othIndex); 11213 })) { 11214 result = !1; 11215 break; 11216 } 11217 } else if (arrValue !== othValue && !equalFunc(arrValue, othValue, bitmask, customizer, stack)) { 11218 result = !1; 11219 break; 11220 } 11221 } 11222 return stack.delete(array), stack.delete(other), result; 11223 } 11224 var SetCache = __webpack_require__(295), arraySome = __webpack_require__(688), cacheHas = __webpack_require__(296), COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; 11225 module.exports = equalArrays; 11226 }, function(module, exports, __webpack_require__) { 11227 function SetCache(values) { 11228 var index = -1, length = null == values ? 0 : values.length; 11229 for (this.__data__ = new MapCache(); ++index < length; ) this.add(values[index]); 11230 } 11231 var MapCache = __webpack_require__(190), setCacheAdd = __webpack_require__(686), setCacheHas = __webpack_require__(687); 11232 SetCache.prototype.add = SetCache.prototype.push = setCacheAdd, SetCache.prototype.has = setCacheHas, 11233 module.exports = SetCache; 11234 }, function(module, exports) { 11235 function cacheHas(cache, key) { 11236 return cache.has(key); 11237 } 11238 module.exports = cacheHas; 11239 }, function(module, exports) { 11240 function arrayFilter(array, predicate) { 11241 for (var index = -1, length = null == array ? 0 : array.length, resIndex = 0, result = []; ++index < length; ) { 11242 var value = array[index]; 11243 predicate(value, index, array) && (result[resIndex++] = value); 11244 } 11245 return result; 11246 } 11247 module.exports = arrayFilter; 11248 }, function(module, exports, __webpack_require__) { 11249 var baseIsArguments = __webpack_require__(701), isObjectLike = __webpack_require__(43), objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty, propertyIsEnumerable = objectProto.propertyIsEnumerable, isArguments = baseIsArguments(function() { 11250 return arguments; 11251 }()) ? baseIsArguments : function(value) { 11252 return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee"); 11253 }; 11254 module.exports = isArguments; 11255 }, function(module, exports, __webpack_require__) { 11256 (function(module) { 11257 var root = __webpack_require__(36), stubFalse = __webpack_require__(702), freeExports = "object" == typeof exports && exports && !exports.nodeType && exports, freeModule = freeExports && "object" == typeof module && module && !module.nodeType && module, moduleExports = freeModule && freeModule.exports === freeExports, Buffer = moduleExports ? root.Buffer : void 0, nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0, isBuffer = nativeIsBuffer || stubFalse; 11258 module.exports = isBuffer; 11259 }).call(exports, __webpack_require__(131)(module)); 11260 }, function(module, exports) { 11261 function isIndex(value, length) { 11262 var type = typeof value; 11263 return !!(length = null == length ? MAX_SAFE_INTEGER : length) && ("number" == type || "symbol" != type && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length; 11264 } 11265 var MAX_SAFE_INTEGER = 9007199254740991, reIsUint = /^(?:0|[1-9]\d*)$/; 11266 module.exports = isIndex; 11267 }, function(module, exports, __webpack_require__) { 11268 var baseIsTypedArray = __webpack_require__(703), baseUnary = __webpack_require__(302), nodeUtil = __webpack_require__(704), nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray, isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; 11269 module.exports = isTypedArray; 11270 }, function(module, exports) { 11271 function baseUnary(func) { 11272 return function(value) { 11273 return func(value); 11274 }; 11275 } 11276 module.exports = baseUnary; 11277 }, function(module, exports) { 11278 function overArg(func, transform) { 11279 return function(arg) { 11280 return func(transform(arg)); 11281 }; 11282 } 11283 module.exports = overArg; 11284 }, function(module, exports, __webpack_require__) { 11285 (function(global) { 11286 for (var now = __webpack_require__(715), root = "undefined" == typeof window ? global : window, vendors = [ "moz", "webkit" ], suffix = "AnimationFrame", raf = root["request" + suffix], caf = root["cancel" + suffix] || root["cancelRequest" + suffix], i = 0; !raf && i < vendors.length; i++) raf = root[vendors[i] + "Request" + suffix], 11287 caf = root[vendors[i] + "Cancel" + suffix] || root[vendors[i] + "CancelRequest" + suffix]; 11288 if (!raf || !caf) { 11289 var last = 0, id = 0, queue = []; 11290 raf = function(callback) { 11291 if (0 === queue.length) { 11292 var _now = now(), next = Math.max(0, 1e3 / 60 - (_now - last)); 11293 last = next + _now, setTimeout(function() { 11294 var cp = queue.slice(0); 11295 queue.length = 0; 11296 for (var i = 0; i < cp.length; i++) if (!cp[i].cancelled) try { 11297 cp[i].callback(last); 11298 } catch (e) { 11299 setTimeout(function() { 11300 throw e; 11301 }, 0); 11302 } 11303 }, Math.round(next)); 11304 } 11305 return queue.push({ 11306 handle: ++id, 11307 callback: callback, 11308 cancelled: !1 11309 }), id; 11310 }, caf = function(handle) { 11311 for (var i = 0; i < queue.length; i++) queue[i].handle === handle && (queue[i].cancelled = !0); 11312 }; 11313 } 11314 module.exports = function(fn) { 11315 return raf.call(root, fn); 11316 }, module.exports.cancel = function() { 11317 caf.apply(root, arguments); 11318 }, module.exports.polyfill = function(object) { 11319 object || (object = root), object.requestAnimationFrame = raf, object.cancelAnimationFrame = caf; 11320 }; 11321 }).call(exports, __webpack_require__(40)); 11322 }, function(module, exports, __webpack_require__) { 11323 "use strict"; 11324 function _toConsumableArray(arr) { 11325 if (Array.isArray(arr)) { 11326 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; 11327 return arr2; 11328 } 11329 return Array.from(arr); 11330 } 11331 Object.defineProperty(exports, "__esModule", { 11332 value: !0 11333 }), exports.configEasing = exports.configSpring = exports.configBezier = void 0; 11334 var _util = __webpack_require__(132), cubicBezierFactor = function(c1, c2) { 11335 return [ 0, 3 * c1, 3 * c2 - 6 * c1, 3 * c1 - 3 * c2 + 1 ]; 11336 }, multyTime = function(params, t) { 11337 return params.map(function(param, i) { 11338 return param * Math.pow(t, i); 11339 }).reduce(function(pre, curr) { 11340 return pre + curr; 11341 }); 11342 }, cubicBezier = function(c1, c2) { 11343 return function(t) { 11344 var params = cubicBezierFactor(c1, c2); 11345 return multyTime(params, t); 11346 }; 11347 }, derivativeCubicBezier = function(c1, c2) { 11348 return function(t) { 11349 var params = cubicBezierFactor(c1, c2), newParams = [].concat(_toConsumableArray(params.map(function(param, i) { 11350 return param * i; 11351 }).slice(1)), [ 0 ]); 11352 return multyTime(newParams, t); 11353 }; 11354 }, configBezier = exports.configBezier = function() { 11355 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 11356 var x1 = args[0], y1 = args[1], x2 = args[2], y2 = args[3]; 11357 if (1 === args.length) switch (args[0]) { 11358 case "linear": 11359 x1 = 0, y1 = 0, x2 = 1, y2 = 1; 11360 break; 11361 11362 case "ease": 11363 x1 = .25, y1 = .1, x2 = .25, y2 = 1; 11364 break; 11365 11366 case "ease-in": 11367 x1 = .42, y1 = 0, x2 = 1, y2 = 1; 11368 break; 11369 11370 case "ease-out": 11371 x1 = .42, y1 = 0, x2 = .58, y2 = 1; 11372 break; 11373 11374 case "ease-in-out": 11375 x1 = 0, y1 = 0, x2 = .58, y2 = 1; 11376 break; 11377 11378 default: 11379 (0, _util.warn)(!1, "[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out', instead received %s", args); 11380 } 11381 (0, _util.warn)([ x1, x2, y1, y2 ].every(function(num) { 11382 return "number" == typeof num && num >= 0 && num <= 1; 11383 }), "[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s", args); 11384 var curveX = cubicBezier(x1, x2), curveY = cubicBezier(y1, y2), derCurveX = derivativeCubicBezier(x1, x2), rangeValue = function(value) { 11385 return value > 1 ? 1 : value < 0 ? 0 : value; 11386 }, bezier = function(_t) { 11387 for (var t = _t > 1 ? 1 : _t, x = t, i = 0; i < 8; ++i) { 11388 var evalT = curveX(x) - t, derVal = derCurveX(x); 11389 if (Math.abs(evalT - t) < 1e-4 || derVal < 1e-4) return curveY(x); 11390 x = rangeValue(x - evalT / derVal); 11391 } 11392 return curveY(x); 11393 }; 11394 return bezier.isStepper = !1, bezier; 11395 }, configSpring = exports.configSpring = function() { 11396 var config = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, _config$stiff = config.stiff, stiff = void 0 === _config$stiff ? 100 : _config$stiff, _config$damping = config.damping, damping = void 0 === _config$damping ? 8 : _config$damping, _config$dt = config.dt, dt = void 0 === _config$dt ? 17 : _config$dt, stepper = function(currX, destX, currV) { 11397 var FSpring = -(currX - destX) * stiff, FDamping = currV * damping, newV = currV + (FSpring - FDamping) * dt / 1e3, newX = currV * dt / 1e3 + currX; 11398 return Math.abs(newX - destX) < 1e-4 && Math.abs(newV) < 1e-4 ? [ destX, 0 ] : [ newX, newV ]; 11399 }; 11400 return stepper.isStepper = !0, stepper.dt = dt, stepper; 11401 }; 11402 exports.configEasing = function() { 11403 for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) args[_key2] = arguments[_key2]; 11404 var easing = args[0]; 11405 if ("string" == typeof easing) switch (easing) { 11406 case "ease": 11407 case "ease-in-out": 11408 case "ease-out": 11409 case "ease-in": 11410 case "linear": 11411 return configBezier(easing); 11412 11413 case "spring": 11414 return configSpring(); 11415 11416 default: 11417 (0, _util.warn)(!1, "[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out', 'linear' and 'spring', instead received %s", args); 11418 } 11419 return "function" == typeof easing ? easing : ((0, _util.warn)(!1, "[configEasing]: first argument type should be function or string, instead received %s", args), 11420 null); 11421 }; 11422 }, function(module, exports, __webpack_require__) { 11423 function isStrictComparable(value) { 11424 return value === value && !isObject(value); 11425 } 11426 var isObject = __webpack_require__(189); 11427 module.exports = isStrictComparable; 11428 }, function(module, exports) { 11429 function matchesStrictComparable(key, srcValue) { 11430 return function(object) { 11431 return null != object && (object[key] === srcValue && (void 0 !== srcValue || key in Object(object))); 11432 }; 11433 } 11434 module.exports = matchesStrictComparable; 11435 }, function(module, exports, __webpack_require__) { 11436 function baseGet(object, path) { 11437 path = castPath(path, object); 11438 for (var index = 0, length = path.length; null != object && index < length; ) object = object[toKey(path[index++])]; 11439 return index && index == length ? object : void 0; 11440 } 11441 var castPath = __webpack_require__(309), toKey = __webpack_require__(133); 11442 module.exports = baseGet; 11443 }, function(module, exports, __webpack_require__) { 11444 function castPath(value, object) { 11445 return isArray(value) ? value : isKey(value, object) ? [ value ] : stringToPath(toString(value)); 11446 } 11447 var isArray = __webpack_require__(34), isKey = __webpack_require__(196), stringToPath = __webpack_require__(751), toString = __webpack_require__(754); 11448 module.exports = castPath; 11449 }, function(module, exports, __webpack_require__) { 11450 function debounce(func, wait, options) { 11451 function invokeFunc(time) { 11452 var args = lastArgs, thisArg = lastThis; 11453 return lastArgs = lastThis = void 0, lastInvokeTime = time, result = func.apply(thisArg, args); 11454 } 11455 function leadingEdge(time) { 11456 return lastInvokeTime = time, timerId = setTimeout(timerExpired, wait), leading ? invokeFunc(time) : result; 11457 } 11458 function remainingWait(time) { 11459 var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall; 11460 return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting; 11461 } 11462 function shouldInvoke(time) { 11463 var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime; 11464 return void 0 === lastCallTime || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait; 11465 } 11466 function timerExpired() { 11467 var time = now(); 11468 if (shouldInvoke(time)) return trailingEdge(time); 11469 timerId = setTimeout(timerExpired, remainingWait(time)); 11470 } 11471 function trailingEdge(time) { 11472 return timerId = void 0, trailing && lastArgs ? invokeFunc(time) : (lastArgs = lastThis = void 0, 11473 result); 11474 } 11475 function cancel() { 11476 void 0 !== timerId && clearTimeout(timerId), lastInvokeTime = 0, lastArgs = lastCallTime = lastThis = timerId = void 0; 11477 } 11478 function flush() { 11479 return void 0 === timerId ? result : trailingEdge(now()); 11480 } 11481 function debounced() { 11482 var time = now(), isInvoking = shouldInvoke(time); 11483 if (lastArgs = arguments, lastThis = this, lastCallTime = time, isInvoking) { 11484 if (void 0 === timerId) return leadingEdge(lastCallTime); 11485 if (maxing) return timerId = setTimeout(timerExpired, wait), invokeFunc(lastCallTime); 11486 } 11487 return void 0 === timerId && (timerId = setTimeout(timerExpired, wait)), result; 11488 } 11489 var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = !1, maxing = !1, trailing = !0; 11490 if ("function" != typeof func) throw new TypeError(FUNC_ERROR_TEXT); 11491 return wait = toNumber(wait) || 0, isObject(options) && (leading = !!options.leading, 11492 maxing = "maxWait" in options, maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait, 11493 trailing = "trailing" in options ? !!options.trailing : trailing), debounced.cancel = cancel, 11494 debounced.flush = flush, debounced; 11495 } 11496 var isObject = __webpack_require__(32), now = __webpack_require__(767), toNumber = __webpack_require__(311), FUNC_ERROR_TEXT = "Expected a function", nativeMax = Math.max, nativeMin = Math.min; 11497 module.exports = debounce; 11498 }, function(module, exports, __webpack_require__) { 11499 function toNumber(value) { 11500 if ("number" == typeof value) return value; 11501 if (isSymbol(value)) return NAN; 11502 if (isObject(value)) { 11503 var other = "function" == typeof value.valueOf ? value.valueOf() : value; 11504 value = isObject(other) ? other + "" : other; 11505 } 11506 if ("string" != typeof value) return 0 === value ? value : +value; 11507 value = value.replace(reTrim, ""); 11508 var isBinary = reIsBinary.test(value); 11509 return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value; 11510 } 11511 var isObject = __webpack_require__(32), isSymbol = __webpack_require__(67), NAN = NaN, reTrim = /^\s+|\s+$/g, reIsBadHex = /^[-+]0x[0-9a-f]+$/i, reIsBinary = /^0b[01]+$/i, reIsOctal = /^0o[0-7]+$/i, freeParseInt = parseInt; 11512 module.exports = toNumber; 11513 }, function(module, __webpack_exports__, __webpack_require__) { 11514 "use strict"; 11515 (function(process) { 11516 __webpack_require__.d(__webpack_exports__, "a", function() { 11517 return warn; 11518 }); 11519 var isDev = "production" !== process.env.NODE_ENV, warn = function(condition, format, a, b, c, d, e, f) { 11520 if (isDev && "undefined" != typeof console && console.warn && (void 0 === format && console.warn("LogUtils requires an error message argument"), 11521 !condition)) if (void 0 === format) console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."); else { 11522 var args = [ a, b, c, d, e, f ], argIndex = 0; 11523 console.warn(format.replace(/%s/g, function() { 11524 return args[argIndex++]; 11525 })); 11526 } 11527 }; 11528 }).call(__webpack_exports__, __webpack_require__(2)); 11529 }, function(module, exports) { 11530 function balanced(a, b, str) { 11531 a instanceof RegExp && (a = maybeMatch(a, str)), b instanceof RegExp && (b = maybeMatch(b, str)); 11532 var r = range(a, b, str); 11533 return r && { 11534 start: r[0], 11535 end: r[1], 11536 pre: str.slice(0, r[0]), 11537 body: str.slice(r[0] + a.length, r[1]), 11538 post: str.slice(r[1] + b.length) 11539 }; 11540 } 11541 function maybeMatch(reg, str) { 11542 var m = str.match(reg); 11543 return m ? m[0] : null; 11544 } 11545 function range(a, b, str) { 11546 var begs, beg, left, right, result, ai = str.indexOf(a), bi = str.indexOf(b, ai + 1), i = ai; 11547 if (ai >= 0 && bi > 0) { 11548 for (begs = [], left = str.length; i >= 0 && !result; ) i == ai ? (begs.push(i), 11549 ai = str.indexOf(a, i + 1)) : 1 == begs.length ? result = [ begs.pop(), bi ] : (beg = begs.pop(), 11550 beg < left && (left = beg, right = bi), bi = str.indexOf(b, i + 1)), i = ai < bi && ai >= 0 ? ai : bi; 11551 begs.length && (result = [ left, right ]); 11552 } 11553 return result; 11554 } 11555 module.exports = balanced, balanced.range = range; 11556 }, function(module, exports, __webpack_require__) { 11557 function Stack(entries) { 11558 var data = this.__data__ = new ListCache(entries); 11559 this.size = data.size; 11560 } 11561 var ListCache = __webpack_require__(116), stackClear = __webpack_require__(779), stackDelete = __webpack_require__(780), stackGet = __webpack_require__(781), stackHas = __webpack_require__(782), stackSet = __webpack_require__(783); 11562 Stack.prototype.clear = stackClear, Stack.prototype.delete = stackDelete, Stack.prototype.get = stackGet, 11563 Stack.prototype.has = stackHas, Stack.prototype.set = stackSet, module.exports = Stack; 11564 }, function(module, exports, __webpack_require__) { 11565 function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { 11566 var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length; 11567 if (arrLength != othLength && !(isPartial && othLength > arrLength)) return !1; 11568 var stacked = stack.get(array); 11569 if (stacked && stack.get(other)) return stacked == other; 11570 var index = -1, result = !0, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : void 0; 11571 for (stack.set(array, other), stack.set(other, array); ++index < arrLength; ) { 11572 var arrValue = array[index], othValue = other[index]; 11573 if (customizer) var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack); 11574 if (void 0 !== compared) { 11575 if (compared) continue; 11576 result = !1; 11577 break; 11578 } 11579 if (seen) { 11580 if (!arraySome(other, function(othValue, othIndex) { 11581 if (!cacheHas(seen, othIndex) && (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) return seen.push(othIndex); 11582 })) { 11583 result = !1; 11584 break; 11585 } 11586 } else if (arrValue !== othValue && !equalFunc(arrValue, othValue, bitmask, customizer, stack)) { 11587 result = !1; 11588 break; 11589 } 11590 } 11591 return stack.delete(array), stack.delete(other), result; 11592 } 11593 var SetCache = __webpack_require__(784), arraySome = __webpack_require__(787), cacheHas = __webpack_require__(788), COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; 11594 module.exports = equalArrays; 11595 }, function(module, exports) { 11596 function arrayPush(array, values) { 11597 for (var index = -1, length = values.length, offset = array.length; ++index < length; ) array[offset + index] = values[index]; 11598 return array; 11599 } 11600 module.exports = arrayPush; 11601 }, function(module, exports, __webpack_require__) { 11602 (function(module) { 11603 var root = __webpack_require__(31), stubFalse = __webpack_require__(802), freeExports = "object" == typeof exports && exports && !exports.nodeType && exports, freeModule = freeExports && "object" == typeof module && module && !module.nodeType && module, moduleExports = freeModule && freeModule.exports === freeExports, Buffer = moduleExports ? root.Buffer : void 0, nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0, isBuffer = nativeIsBuffer || stubFalse; 11604 module.exports = isBuffer; 11605 }).call(exports, __webpack_require__(131)(module)); 11606 }, function(module, exports, __webpack_require__) { 11607 var baseIsTypedArray = __webpack_require__(803), baseUnary = __webpack_require__(319), nodeUtil = __webpack_require__(804), nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray, isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; 11608 module.exports = isTypedArray; 11609 }, function(module, exports) { 11610 function baseUnary(func) { 11611 return function(value) { 11612 return func(value); 11613 }; 11614 } 11615 module.exports = baseUnary; 11616 }, function(module, exports) { 11617 function overArg(func, transform) { 11618 return function(arg) { 11619 return func(transform(arg)); 11620 }; 11621 } 11622 module.exports = overArg; 11623 }, function(module, exports, __webpack_require__) { 11624 var baseFlatten = __webpack_require__(322), baseOrderBy = __webpack_require__(814), baseRest = __webpack_require__(833), isIterateeCall = __webpack_require__(326), sortBy = baseRest(function(collection, iteratees) { 11625 if (null == collection) return []; 11626 var length = iteratees.length; 11627 return length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1]) ? iteratees = [] : length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2]) && (iteratees = [ iteratees[0] ]), 11628 baseOrderBy(collection, baseFlatten(iteratees, 1), []); 11629 }); 11630 module.exports = sortBy; 11631 }, function(module, exports, __webpack_require__) { 11632 function baseFlatten(array, depth, predicate, isStrict, result) { 11633 var index = -1, length = array.length; 11634 for (predicate || (predicate = isFlattenable), result || (result = []); ++index < length; ) { 11635 var value = array[index]; 11636 depth > 0 && predicate(value) ? depth > 1 ? baseFlatten(value, depth - 1, predicate, isStrict, result) : arrayPush(result, value) : isStrict || (result[result.length] = value); 11637 } 11638 return result; 11639 } 11640 var arrayPush = __webpack_require__(316), isFlattenable = __webpack_require__(813); 11641 module.exports = baseFlatten; 11642 }, function(module, exports, __webpack_require__) { 11643 function isStrictComparable(value) { 11644 return value === value && !isObject(value); 11645 } 11646 var isObject = __webpack_require__(32); 11647 module.exports = isStrictComparable; 11648 }, function(module, exports) { 11649 function matchesStrictComparable(key, srcValue) { 11650 return function(object) { 11651 return null != object && (object[key] === srcValue && (void 0 !== srcValue || key in Object(object))); 11652 }; 11653 } 11654 module.exports = matchesStrictComparable; 11655 }, function(module, exports, __webpack_require__) { 11656 function baseMap(collection, iteratee) { 11657 var index = -1, result = isArrayLike(collection) ? Array(collection.length) : []; 11658 return baseEach(collection, function(value, key, collection) { 11659 result[++index] = iteratee(value, key, collection); 11660 }), result; 11661 } 11662 var baseEach = __webpack_require__(825), isArrayLike = __webpack_require__(134); 11663 module.exports = baseMap; 11664 }, function(module, exports, __webpack_require__) { 11665 function isIterateeCall(value, index, object) { 11666 if (!isObject(object)) return !1; 11667 var type = typeof index; 11668 return !!("number" == type ? isArrayLike(object) && isIndex(index, object.length) : "string" == type && index in object) && eq(object[index], value); 11669 } 11670 var eq = __webpack_require__(177), isArrayLike = __webpack_require__(134), isIndex = __webpack_require__(202), isObject = __webpack_require__(32); 11671 module.exports = isIterateeCall; 11672 }, function(module, exports) { 11673 function baseGt(value, other) { 11674 return value > other; 11675 } 11676 module.exports = baseGt; 11677 }, function(module, exports, __webpack_require__) { 11678 function min(array) { 11679 return array && array.length ? baseExtremum(array, identity, baseLt) : void 0; 11680 } 11681 var baseExtremum = __webpack_require__(135), baseLt = __webpack_require__(329), identity = __webpack_require__(68); 11682 module.exports = min; 11683 }, function(module, exports) { 11684 function baseLt(value, other) { 11685 return value < other; 11686 } 11687 module.exports = baseLt; 11688 }, function(module, exports, __webpack_require__) { 11689 "use strict"; 11690 function _toConsumableArray(arr) { 11691 if (Array.isArray(arr)) { 11692 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; 11693 return arr2; 11694 } 11695 return Array.from(arr); 11696 } 11697 Object.defineProperty(exports, "__esModule", { 11698 value: !0 11699 }); 11700 var identity = function(i) { 11701 return i; 11702 }, PLACE_HOLDER = exports.PLACE_HOLDER = { 11703 "@@functional/placeholder": !0 11704 }, isPlaceHolder = function(val) { 11705 return val === PLACE_HOLDER; 11706 }, curry0 = function(fn) { 11707 return function _curried() { 11708 return 0 === arguments.length || 1 === arguments.length && isPlaceHolder(arguments.length <= 0 ? void 0 : arguments[0]) ? _curried : fn.apply(void 0, arguments); 11709 }; 11710 }, curryN = function curryN(n, fn) { 11711 return 1 === n ? fn : curry0(function() { 11712 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 11713 var argsLength = args.filter(function(arg) { 11714 return arg !== PLACE_HOLDER; 11715 }).length; 11716 return argsLength >= n ? fn.apply(void 0, args) : curryN(n - argsLength, curry0(function() { 11717 for (var _len2 = arguments.length, restArgs = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) restArgs[_key2] = arguments[_key2]; 11718 var newArgs = args.map(function(arg) { 11719 return isPlaceHolder(arg) ? restArgs.shift() : arg; 11720 }); 11721 return fn.apply(void 0, _toConsumableArray(newArgs).concat(restArgs)); 11722 })); 11723 }); 11724 }, curry = exports.curry = function(fn) { 11725 return curryN(fn.length, fn); 11726 }; 11727 exports.range = function(begin, end) { 11728 for (var arr = [], i = begin; i < end; ++i) arr[i - begin] = i; 11729 return arr; 11730 }, exports.map = curry(function(fn, arr) { 11731 return Array.isArray(arr) ? arr.map(fn) : Object.keys(arr).map(function(key) { 11732 return arr[key]; 11733 }).map(fn); 11734 }), exports.compose = function() { 11735 for (var _len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) args[_key3] = arguments[_key3]; 11736 if (!args.length) return identity; 11737 var fns = args.reverse(), firstFn = fns[0], tailsFn = fns.slice(1); 11738 return function() { 11739 return tailsFn.reduce(function(res, fn) { 11740 return fn(res); 11741 }, firstFn.apply(void 0, arguments)); 11742 }; 11743 }, exports.reverse = function(arr) { 11744 return Array.isArray(arr) ? arr.reverse() : arr.split("").reverse.join(""); 11745 }, exports.memoize = function(fn) { 11746 var lastArgs = null, lastResult = null; 11747 return function() { 11748 for (var _len4 = arguments.length, args = Array(_len4), _key4 = 0; _key4 < _len4; _key4++) args[_key4] = arguments[_key4]; 11749 return lastArgs && args.every(function(val, i) { 11750 return val === lastArgs[i]; 11751 }) ? lastResult : (lastArgs = args, lastResult = fn.apply(void 0, args)); 11752 }; 11753 }; 11754 }, function(module, __webpack_exports__, __webpack_require__) { 11755 "use strict"; 11756 Object.defineProperty(__webpack_exports__, "__esModule", { 11757 value: !0 11758 }); 11759 var __WEBPACK_IMPORTED_MODULE_0__src_band__ = __webpack_require__(847); 11760 __webpack_require__.d(__webpack_exports__, "scaleBand", function() { 11761 return __WEBPACK_IMPORTED_MODULE_0__src_band__.a; 11762 }), __webpack_require__.d(__webpack_exports__, "scalePoint", function() { 11763 return __WEBPACK_IMPORTED_MODULE_0__src_band__.b; 11764 }); 11765 var __WEBPACK_IMPORTED_MODULE_1__src_identity__ = __webpack_require__(870); 11766 __webpack_require__.d(__webpack_exports__, "scaleIdentity", function() { 11767 return __WEBPACK_IMPORTED_MODULE_1__src_identity__.a; 11768 }); 11769 var __WEBPACK_IMPORTED_MODULE_2__src_linear__ = __webpack_require__(91); 11770 __webpack_require__.d(__webpack_exports__, "scaleLinear", function() { 11771 return __WEBPACK_IMPORTED_MODULE_2__src_linear__.a; 11772 }); 11773 var __WEBPACK_IMPORTED_MODULE_3__src_log__ = __webpack_require__(893); 11774 __webpack_require__.d(__webpack_exports__, "scaleLog", function() { 11775 return __WEBPACK_IMPORTED_MODULE_3__src_log__.a; 11776 }); 11777 var __WEBPACK_IMPORTED_MODULE_4__src_ordinal__ = __webpack_require__(344); 11778 __webpack_require__.d(__webpack_exports__, "scaleOrdinal", function() { 11779 return __WEBPACK_IMPORTED_MODULE_4__src_ordinal__.a; 11780 }), __webpack_require__.d(__webpack_exports__, "scaleImplicit", function() { 11781 return __WEBPACK_IMPORTED_MODULE_4__src_ordinal__.b; 11782 }); 11783 var __WEBPACK_IMPORTED_MODULE_5__src_pow__ = __webpack_require__(894); 11784 __webpack_require__.d(__webpack_exports__, "scalePow", function() { 11785 return __WEBPACK_IMPORTED_MODULE_5__src_pow__.a; 11786 }), __webpack_require__.d(__webpack_exports__, "scaleSqrt", function() { 11787 return __WEBPACK_IMPORTED_MODULE_5__src_pow__.b; 11788 }); 11789 var __WEBPACK_IMPORTED_MODULE_6__src_quantile__ = __webpack_require__(895); 11790 __webpack_require__.d(__webpack_exports__, "scaleQuantile", function() { 11791 return __WEBPACK_IMPORTED_MODULE_6__src_quantile__.a; 11792 }); 11793 var __WEBPACK_IMPORTED_MODULE_7__src_quantize__ = __webpack_require__(896); 11794 __webpack_require__.d(__webpack_exports__, "scaleQuantize", function() { 11795 return __WEBPACK_IMPORTED_MODULE_7__src_quantize__.a; 11796 }); 11797 var __WEBPACK_IMPORTED_MODULE_8__src_threshold__ = __webpack_require__(897); 11798 __webpack_require__.d(__webpack_exports__, "scaleThreshold", function() { 11799 return __WEBPACK_IMPORTED_MODULE_8__src_threshold__.a; 11800 }); 11801 var __WEBPACK_IMPORTED_MODULE_9__src_time__ = __webpack_require__(360); 11802 __webpack_require__.d(__webpack_exports__, "scaleTime", function() { 11803 return __WEBPACK_IMPORTED_MODULE_9__src_time__.b; 11804 }); 11805 var __WEBPACK_IMPORTED_MODULE_10__src_utcTime__ = __webpack_require__(913); 11806 __webpack_require__.d(__webpack_exports__, "scaleUtc", function() { 11807 return __WEBPACK_IMPORTED_MODULE_10__src_utcTime__.a; 11808 }); 11809 var __WEBPACK_IMPORTED_MODULE_11__src_category10__ = __webpack_require__(914); 11810 __webpack_require__.d(__webpack_exports__, "schemeCategory10", function() { 11811 return __WEBPACK_IMPORTED_MODULE_11__src_category10__.a; 11812 }); 11813 var __WEBPACK_IMPORTED_MODULE_12__src_category20b__ = __webpack_require__(915); 11814 __webpack_require__.d(__webpack_exports__, "schemeCategory20b", function() { 11815 return __WEBPACK_IMPORTED_MODULE_12__src_category20b__.a; 11816 }); 11817 var __WEBPACK_IMPORTED_MODULE_13__src_category20c__ = __webpack_require__(916); 11818 __webpack_require__.d(__webpack_exports__, "schemeCategory20c", function() { 11819 return __WEBPACK_IMPORTED_MODULE_13__src_category20c__.a; 11820 }); 11821 var __WEBPACK_IMPORTED_MODULE_14__src_category20__ = __webpack_require__(917); 11822 __webpack_require__.d(__webpack_exports__, "schemeCategory20", function() { 11823 return __WEBPACK_IMPORTED_MODULE_14__src_category20__.a; 11824 }); 11825 var __WEBPACK_IMPORTED_MODULE_15__src_cubehelix__ = __webpack_require__(918); 11826 __webpack_require__.d(__webpack_exports__, "interpolateCubehelixDefault", function() { 11827 return __WEBPACK_IMPORTED_MODULE_15__src_cubehelix__.a; 11828 }); 11829 var __WEBPACK_IMPORTED_MODULE_16__src_rainbow__ = __webpack_require__(919); 11830 __webpack_require__.d(__webpack_exports__, "interpolateRainbow", function() { 11831 return __WEBPACK_IMPORTED_MODULE_16__src_rainbow__.b; 11832 }), __webpack_require__.d(__webpack_exports__, "interpolateWarm", function() { 11833 return __WEBPACK_IMPORTED_MODULE_16__src_rainbow__.c; 11834 }), __webpack_require__.d(__webpack_exports__, "interpolateCool", function() { 11835 return __WEBPACK_IMPORTED_MODULE_16__src_rainbow__.a; 11836 }); 11837 var __WEBPACK_IMPORTED_MODULE_17__src_viridis__ = __webpack_require__(920); 11838 __webpack_require__.d(__webpack_exports__, "interpolateViridis", function() { 11839 return __WEBPACK_IMPORTED_MODULE_17__src_viridis__.a; 11840 }), __webpack_require__.d(__webpack_exports__, "interpolateMagma", function() { 11841 return __WEBPACK_IMPORTED_MODULE_17__src_viridis__.c; 11842 }), __webpack_require__.d(__webpack_exports__, "interpolateInferno", function() { 11843 return __WEBPACK_IMPORTED_MODULE_17__src_viridis__.b; 11844 }), __webpack_require__.d(__webpack_exports__, "interpolatePlasma", function() { 11845 return __WEBPACK_IMPORTED_MODULE_17__src_viridis__.d; 11846 }); 11847 var __WEBPACK_IMPORTED_MODULE_18__src_sequential__ = __webpack_require__(921); 11848 __webpack_require__.d(__webpack_exports__, "scaleSequential", function() { 11849 return __WEBPACK_IMPORTED_MODULE_18__src_sequential__.a; 11850 }); 11851 }, function(module, __webpack_exports__, __webpack_require__) { 11852 "use strict"; 11853 var __WEBPACK_IMPORTED_MODULE_0__ascending__ = __webpack_require__(69), __WEBPACK_IMPORTED_MODULE_1__bisector__ = __webpack_require__(333), ascendingBisect = Object(__WEBPACK_IMPORTED_MODULE_1__bisector__.a)(__WEBPACK_IMPORTED_MODULE_0__ascending__.a), bisectRight = ascendingBisect.right; 11854 ascendingBisect.left; 11855 __webpack_exports__.a = bisectRight; 11856 }, function(module, __webpack_exports__, __webpack_require__) { 11857 "use strict"; 11858 function ascendingComparator(f) { 11859 return function(d, x) { 11860 return Object(__WEBPACK_IMPORTED_MODULE_0__ascending__.a)(f(d), x); 11861 }; 11862 } 11863 var __WEBPACK_IMPORTED_MODULE_0__ascending__ = __webpack_require__(69); 11864 __webpack_exports__.a = function(compare) { 11865 return 1 === compare.length && (compare = ascendingComparator(compare)), { 11866 left: function(a, x, lo, hi) { 11867 for (null == lo && (lo = 0), null == hi && (hi = a.length); lo < hi; ) { 11868 var mid = lo + hi >>> 1; 11869 compare(a[mid], x) < 0 ? lo = mid + 1 : hi = mid; 11870 } 11871 return lo; 11872 }, 11873 right: function(a, x, lo, hi) { 11874 for (null == lo && (lo = 0), null == hi && (hi = a.length); lo < hi; ) { 11875 var mid = lo + hi >>> 1; 11876 compare(a[mid], x) > 0 ? hi = mid : lo = mid + 1; 11877 } 11878 return lo; 11879 } 11880 }; 11881 }; 11882 }, function(module, __webpack_exports__, __webpack_require__) { 11883 "use strict"; 11884 function pair(a, b) { 11885 return [ a, b ]; 11886 } 11887 __webpack_exports__.a = pair; 11888 }, function(module, __webpack_exports__, __webpack_require__) { 11889 "use strict"; 11890 var __WEBPACK_IMPORTED_MODULE_0__variance__ = __webpack_require__(336); 11891 __webpack_exports__.a = function(array, f) { 11892 var v = Object(__WEBPACK_IMPORTED_MODULE_0__variance__.a)(array, f); 11893 return v ? Math.sqrt(v) : v; 11894 }; 11895 }, function(module, __webpack_exports__, __webpack_require__) { 11896 "use strict"; 11897 var __WEBPACK_IMPORTED_MODULE_0__number__ = __webpack_require__(90); 11898 __webpack_exports__.a = function(values, valueof) { 11899 var value, delta, n = values.length, m = 0, i = -1, mean = 0, sum = 0; 11900 if (null == valueof) for (;++i < n; ) isNaN(value = Object(__WEBPACK_IMPORTED_MODULE_0__number__.a)(values[i])) || (delta = value - mean, 11901 mean += delta / ++m, sum += delta * (value - mean)); else for (;++i < n; ) isNaN(value = Object(__WEBPACK_IMPORTED_MODULE_0__number__.a)(valueof(values[i], i, values))) || (delta = value - mean, 11902 mean += delta / ++m, sum += delta * (value - mean)); 11903 if (m > 1) return sum / (m - 1); 11904 }; 11905 }, function(module, __webpack_exports__, __webpack_require__) { 11906 "use strict"; 11907 __webpack_exports__.a = function(values, valueof) { 11908 var value, min, max, n = values.length, i = -1; 11909 if (null == valueof) { 11910 for (;++i < n; ) if (null != (value = values[i]) && value >= value) for (min = max = value; ++i < n; ) null != (value = values[i]) && (min > value && (min = value), 11911 max < value && (max = value)); 11912 } else for (;++i < n; ) if (null != (value = valueof(values[i], i, values)) && value >= value) for (min = max = value; ++i < n; ) null != (value = valueof(values[i], i, values)) && (min > value && (min = value), 11913 max < value && (max = value)); 11914 return [ min, max ]; 11915 }; 11916 }, function(module, __webpack_exports__, __webpack_require__) { 11917 "use strict"; 11918 __webpack_require__.d(__webpack_exports__, "b", function() { 11919 return slice; 11920 }), __webpack_require__.d(__webpack_exports__, "a", function() { 11921 return map; 11922 }); 11923 var array = Array.prototype, slice = array.slice, map = array.map; 11924 }, function(module, __webpack_exports__, __webpack_require__) { 11925 "use strict"; 11926 __webpack_exports__.a = function(start, stop, step) { 11927 start = +start, stop = +stop, step = (n = arguments.length) < 2 ? (stop = start, 11928 start = 0, 1) : n < 3 ? 1 : +step; 11929 for (var i = -1, n = 0 | Math.max(0, Math.ceil((stop - start) / step)), range = new Array(n); ++i < n; ) range[i] = start + i * step; 11930 return range; 11931 }; 11932 }, function(module, __webpack_exports__, __webpack_require__) { 11933 "use strict"; 11934 function tickIncrement(start, stop, count) { 11935 var step = (stop - start) / Math.max(0, count), power = Math.floor(Math.log(step) / Math.LN10), error = step / Math.pow(10, power); 11936 return power >= 0 ? (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1) * Math.pow(10, power) : -Math.pow(10, -power) / (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1); 11937 } 11938 function tickStep(start, stop, count) { 11939 var step0 = Math.abs(stop - start) / Math.max(0, count), step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)), error = step0 / step1; 11940 return error >= e10 ? step1 *= 10 : error >= e5 ? step1 *= 5 : error >= e2 && (step1 *= 2), 11941 stop < start ? -step1 : step1; 11942 } 11943 __webpack_exports__.b = tickIncrement, __webpack_exports__.c = tickStep; 11944 var e10 = Math.sqrt(50), e5 = Math.sqrt(10), e2 = Math.sqrt(2); 11945 __webpack_exports__.a = function(start, stop, count) { 11946 var reverse, n, ticks, step, i = -1; 11947 if (stop = +stop, start = +start, count = +count, start === stop && count > 0) return [ start ]; 11948 if ((reverse = stop < start) && (n = start, start = stop, stop = n), 0 === (step = tickIncrement(start, stop, count)) || !isFinite(step)) return []; 11949 if (step > 0) for (start = Math.ceil(start / step), stop = Math.floor(stop / step), 11950 ticks = new Array(n = Math.ceil(stop - start + 1)); ++i < n; ) ticks[i] = (start + i) * step; else for (start = Math.floor(start * step), 11951 stop = Math.ceil(stop * step), ticks = new Array(n = Math.ceil(start - stop + 1)); ++i < n; ) ticks[i] = (start - i) / step; 11952 return reverse && ticks.reverse(), ticks; 11953 }; 11954 }, function(module, __webpack_exports__, __webpack_require__) { 11955 "use strict"; 11956 __webpack_exports__.a = function(values) { 11957 return Math.ceil(Math.log(values.length) / Math.LN2) + 1; 11958 }; 11959 }, function(module, __webpack_exports__, __webpack_require__) { 11960 "use strict"; 11961 __webpack_exports__.a = function(values, valueof) { 11962 var value, min, n = values.length, i = -1; 11963 if (null == valueof) { 11964 for (;++i < n; ) if (null != (value = values[i]) && value >= value) for (min = value; ++i < n; ) null != (value = values[i]) && min > value && (min = value); 11965 } else for (;++i < n; ) if (null != (value = valueof(values[i], i, values)) && value >= value) for (min = value; ++i < n; ) null != (value = valueof(values[i], i, values)) && min > value && (min = value); 11966 return min; 11967 }; 11968 }, function(module, __webpack_exports__, __webpack_require__) { 11969 "use strict"; 11970 function length(d) { 11971 return d.length; 11972 } 11973 var __WEBPACK_IMPORTED_MODULE_0__min__ = __webpack_require__(342); 11974 __webpack_exports__.a = function(matrix) { 11975 if (!(n = matrix.length)) return []; 11976 for (var i = -1, m = Object(__WEBPACK_IMPORTED_MODULE_0__min__.a)(matrix, length), transpose = new Array(m); ++i < m; ) for (var n, j = -1, row = transpose[i] = new Array(n); ++j < n; ) row[j] = matrix[j][i]; 11977 return transpose; 11978 }; 11979 }, function(module, __webpack_exports__, __webpack_require__) { 11980 "use strict"; 11981 function ordinal(range) { 11982 function scale(d) { 11983 var key = d + "", i = index.get(key); 11984 if (!i) { 11985 if (unknown !== implicit) return unknown; 11986 index.set(key, i = domain.push(d)); 11987 } 11988 return range[(i - 1) % range.length]; 11989 } 11990 var index = Object(__WEBPACK_IMPORTED_MODULE_0_d3_collection__.a)(), domain = [], unknown = implicit; 11991 return range = null == range ? [] : __WEBPACK_IMPORTED_MODULE_1__array__.b.call(range), 11992 scale.domain = function(_) { 11993 if (!arguments.length) return domain.slice(); 11994 domain = [], index = Object(__WEBPACK_IMPORTED_MODULE_0_d3_collection__.a)(); 11995 for (var d, key, i = -1, n = _.length; ++i < n; ) index.has(key = (d = _[i]) + "") || index.set(key, domain.push(d)); 11996 return scale; 11997 }, scale.range = function(_) { 11998 return arguments.length ? (range = __WEBPACK_IMPORTED_MODULE_1__array__.b.call(_), 11999 scale) : range.slice(); 12000 }, scale.unknown = function(_) { 12001 return arguments.length ? (unknown = _, scale) : unknown; 12002 }, scale.copy = function() { 12003 return ordinal().domain(domain).range(range).unknown(unknown); 12004 }, scale; 12005 } 12006 __webpack_require__.d(__webpack_exports__, "b", function() { 12007 return implicit; 12008 }), __webpack_exports__.a = ordinal; 12009 var __WEBPACK_IMPORTED_MODULE_0_d3_collection__ = __webpack_require__(864), __WEBPACK_IMPORTED_MODULE_1__array__ = __webpack_require__(62), implicit = { 12010 name: "implicit" 12011 }; 12012 }, function(module, __webpack_exports__, __webpack_require__) { 12013 "use strict"; 12014 __webpack_require__.d(__webpack_exports__, "a", function() { 12015 return deg2rad; 12016 }), __webpack_require__.d(__webpack_exports__, "b", function() { 12017 return rad2deg; 12018 }); 12019 var deg2rad = Math.PI / 180, rad2deg = 180 / Math.PI; 12020 }, function(module, __webpack_exports__, __webpack_require__) { 12021 "use strict"; 12022 function rgbSpline(spline) { 12023 return function(colors) { 12024 var i, color, n = colors.length, r = new Array(n), g = new Array(n), b = new Array(n); 12025 for (i = 0; i < n; ++i) color = Object(__WEBPACK_IMPORTED_MODULE_0_d3_color__.f)(colors[i]), 12026 r[i] = color.r || 0, g[i] = color.g || 0, b[i] = color.b || 0; 12027 return r = spline(r), g = spline(g), b = spline(b), color.opacity = 1, function(t) { 12028 return color.r = r(t), color.g = g(t), color.b = b(t), color + ""; 12029 }; 12030 }; 12031 } 12032 var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(46), __WEBPACK_IMPORTED_MODULE_1__basis__ = __webpack_require__(209), __WEBPACK_IMPORTED_MODULE_2__basisClosed__ = __webpack_require__(347), __WEBPACK_IMPORTED_MODULE_3__color__ = __webpack_require__(93); 12033 __webpack_exports__.a = function rgbGamma(y) { 12034 function rgb(start, end) { 12035 var r = color((start = Object(__WEBPACK_IMPORTED_MODULE_0_d3_color__.f)(start)).r, (end = Object(__WEBPACK_IMPORTED_MODULE_0_d3_color__.f)(end)).r), g = color(start.g, end.g), b = color(start.b, end.b), opacity = Object(__WEBPACK_IMPORTED_MODULE_3__color__.a)(start.opacity, end.opacity); 12036 return function(t) { 12037 return start.r = r(t), start.g = g(t), start.b = b(t), start.opacity = opacity(t), 12038 start + ""; 12039 }; 12040 } 12041 var color = Object(__WEBPACK_IMPORTED_MODULE_3__color__.b)(y); 12042 return rgb.gamma = rgbGamma, rgb; 12043 }(1); 12044 rgbSpline(__WEBPACK_IMPORTED_MODULE_1__basis__.b), rgbSpline(__WEBPACK_IMPORTED_MODULE_2__basisClosed__.a); 12045 }, function(module, __webpack_exports__, __webpack_require__) { 12046 "use strict"; 12047 var __WEBPACK_IMPORTED_MODULE_0__basis__ = __webpack_require__(209); 12048 __webpack_exports__.a = function(values) { 12049 var n = values.length; 12050 return function(t) { 12051 var i = Math.floor(((t %= 1) < 0 ? ++t : t) * n), v0 = values[(i + n - 1) % n], v1 = values[i % n], v2 = values[(i + 1) % n], v3 = values[(i + 2) % n]; 12052 return Object(__WEBPACK_IMPORTED_MODULE_0__basis__.a)((t - i / n) * n, v0, v1, v2, v3); 12053 }; 12054 }; 12055 }, function(module, __webpack_exports__, __webpack_require__) { 12056 "use strict"; 12057 __webpack_exports__.a = function(x) { 12058 return function() { 12059 return x; 12060 }; 12061 }; 12062 }, function(module, __webpack_exports__, __webpack_require__) { 12063 "use strict"; 12064 var __WEBPACK_IMPORTED_MODULE_0__value__ = __webpack_require__(206); 12065 __webpack_exports__.a = function(a, b) { 12066 var i, nb = b ? b.length : 0, na = a ? Math.min(nb, a.length) : 0, x = new Array(na), c = new Array(nb); 12067 for (i = 0; i < na; ++i) x[i] = Object(__WEBPACK_IMPORTED_MODULE_0__value__.a)(a[i], b[i]); 12068 for (;i < nb; ++i) c[i] = b[i]; 12069 return function(t) { 12070 for (i = 0; i < na; ++i) c[i] = x[i](t); 12071 return c; 12072 }; 12073 }; 12074 }, function(module, __webpack_exports__, __webpack_require__) { 12075 "use strict"; 12076 __webpack_exports__.a = function(a, b) { 12077 var d = new Date(); 12078 return a = +a, b -= a, function(t) { 12079 return d.setTime(a + b * t), d; 12080 }; 12081 }; 12082 }, function(module, __webpack_exports__, __webpack_require__) { 12083 "use strict"; 12084 var __WEBPACK_IMPORTED_MODULE_0__value__ = __webpack_require__(206); 12085 __webpack_exports__.a = function(a, b) { 12086 var k, i = {}, c = {}; 12087 null !== a && "object" == typeof a || (a = {}), null !== b && "object" == typeof b || (b = {}); 12088 for (k in b) k in a ? i[k] = Object(__WEBPACK_IMPORTED_MODULE_0__value__.a)(a[k], b[k]) : c[k] = b[k]; 12089 return function(t) { 12090 for (k in i) c[k] = i[k](t); 12091 return c; 12092 }; 12093 }; 12094 }, function(module, __webpack_exports__, __webpack_require__) { 12095 "use strict"; 12096 function zero(b) { 12097 return function() { 12098 return b; 12099 }; 12100 } 12101 function one(b) { 12102 return function(t) { 12103 return b(t) + ""; 12104 }; 12105 } 12106 var __WEBPACK_IMPORTED_MODULE_0__number__ = __webpack_require__(136), reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, reB = new RegExp(reA.source, "g"); 12107 __webpack_exports__.a = function(a, b) { 12108 var am, bm, bs, bi = reA.lastIndex = reB.lastIndex = 0, i = -1, s = [], q = []; 12109 for (a += "", b += ""; (am = reA.exec(a)) && (bm = reB.exec(b)); ) (bs = bm.index) > bi && (bs = b.slice(bi, bs), 12110 s[i] ? s[i] += bs : s[++i] = bs), (am = am[0]) === (bm = bm[0]) ? s[i] ? s[i] += bm : s[++i] = bm : (s[++i] = null, 12111 q.push({ 12112 i: i, 12113 x: Object(__WEBPACK_IMPORTED_MODULE_0__number__.a)(am, bm) 12114 })), bi = reB.lastIndex; 12115 return bi < b.length && (bs = b.slice(bi), s[i] ? s[i] += bs : s[++i] = bs), s.length < 2 ? q[0] ? one(q[0].x) : zero(b) : (b = q.length, 12116 function(t) { 12117 for (var o, i = 0; i < b; ++i) s[(o = q[i]).i] = o.x(t); 12118 return s.join(""); 12119 }); 12120 }; 12121 }, function(module, __webpack_exports__, __webpack_require__) { 12122 "use strict"; 12123 __webpack_exports__.a = function(x) { 12124 return +x; 12125 }; 12126 }, function(module, __webpack_exports__, __webpack_require__) { 12127 "use strict"; 12128 var __WEBPACK_IMPORTED_MODULE_0__src_defaultLocale__ = __webpack_require__(884); 12129 __webpack_require__.d(__webpack_exports__, "a", function() { 12130 return __WEBPACK_IMPORTED_MODULE_0__src_defaultLocale__.a; 12131 }), __webpack_require__.d(__webpack_exports__, "b", function() { 12132 return __WEBPACK_IMPORTED_MODULE_0__src_defaultLocale__.b; 12133 }); 12134 var __WEBPACK_IMPORTED_MODULE_2__src_formatSpecifier__ = (__webpack_require__(355), 12135 __webpack_require__(356)); 12136 __webpack_require__.d(__webpack_exports__, "c", function() { 12137 return __WEBPACK_IMPORTED_MODULE_2__src_formatSpecifier__.a; 12138 }); 12139 var __WEBPACK_IMPORTED_MODULE_3__src_precisionFixed__ = __webpack_require__(890); 12140 __webpack_require__.d(__webpack_exports__, "d", function() { 12141 return __WEBPACK_IMPORTED_MODULE_3__src_precisionFixed__.a; 12142 }); 12143 var __WEBPACK_IMPORTED_MODULE_4__src_precisionPrefix__ = __webpack_require__(891); 12144 __webpack_require__.d(__webpack_exports__, "e", function() { 12145 return __WEBPACK_IMPORTED_MODULE_4__src_precisionPrefix__.a; 12146 }); 12147 var __WEBPACK_IMPORTED_MODULE_5__src_precisionRound__ = __webpack_require__(892); 12148 __webpack_require__.d(__webpack_exports__, "f", function() { 12149 return __WEBPACK_IMPORTED_MODULE_5__src_precisionRound__.a; 12150 }); 12151 }, function(module, __webpack_exports__, __webpack_require__) { 12152 "use strict"; 12153 var __WEBPACK_IMPORTED_MODULE_0__exponent__ = __webpack_require__(138), __WEBPACK_IMPORTED_MODULE_1__formatGroup__ = __webpack_require__(885), __WEBPACK_IMPORTED_MODULE_2__formatNumerals__ = __webpack_require__(886), __WEBPACK_IMPORTED_MODULE_3__formatSpecifier__ = __webpack_require__(356), __WEBPACK_IMPORTED_MODULE_4__formatTypes__ = __webpack_require__(357), __WEBPACK_IMPORTED_MODULE_5__formatPrefixAuto__ = __webpack_require__(358), __WEBPACK_IMPORTED_MODULE_6__identity__ = __webpack_require__(889), prefixes = [ "y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y" ]; 12154 __webpack_exports__.a = function(locale) { 12155 function newFormat(specifier) { 12156 function format(value) { 12157 var i, n, c, valuePrefix = prefix, valueSuffix = suffix; 12158 if ("c" === type) valueSuffix = formatType(value) + valueSuffix, value = ""; else { 12159 value = +value; 12160 var valueNegative = value < 0; 12161 if (value = formatType(Math.abs(value), precision), valueNegative && 0 == +value && (valueNegative = !1), 12162 valuePrefix = (valueNegative ? "(" === sign ? sign : "-" : "-" === sign || "(" === sign ? "" : sign) + valuePrefix, 12163 valueSuffix = ("s" === type ? prefixes[8 + __WEBPACK_IMPORTED_MODULE_5__formatPrefixAuto__.b / 3] : "") + valueSuffix + (valueNegative && "(" === sign ? ")" : ""), 12164 maybeSuffix) for (i = -1, n = value.length; ++i < n; ) if (48 > (c = value.charCodeAt(i)) || c > 57) { 12165 valueSuffix = (46 === c ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix, 12166 value = value.slice(0, i); 12167 break; 12168 } 12169 } 12170 comma && !zero && (value = group(value, 1 / 0)); 12171 var length = valuePrefix.length + value.length + valueSuffix.length, padding = length < width ? new Array(width - length + 1).join(fill) : ""; 12172 switch (comma && zero && (value = group(padding + value, padding.length ? width - valueSuffix.length : 1 / 0), 12173 padding = ""), align) { 12174 case "<": 12175 value = valuePrefix + value + valueSuffix + padding; 12176 break; 12177 12178 case "=": 12179 value = valuePrefix + padding + value + valueSuffix; 12180 break; 12181 12182 case "^": 12183 value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length); 12184 break; 12185 12186 default: 12187 value = padding + valuePrefix + value + valueSuffix; 12188 } 12189 return numerals(value); 12190 } 12191 specifier = Object(__WEBPACK_IMPORTED_MODULE_3__formatSpecifier__.a)(specifier); 12192 var fill = specifier.fill, align = specifier.align, sign = specifier.sign, symbol = specifier.symbol, zero = specifier.zero, width = specifier.width, comma = specifier.comma, precision = specifier.precision, type = specifier.type, prefix = "$" === symbol ? currency[0] : "#" === symbol && /[boxX]/.test(type) ? "0" + type.toLowerCase() : "", suffix = "$" === symbol ? currency[1] : /[%p]/.test(type) ? percent : "", formatType = __WEBPACK_IMPORTED_MODULE_4__formatTypes__.a[type], maybeSuffix = !type || /[defgprs%]/.test(type); 12193 return precision = null == precision ? type ? 6 : 12 : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision)) : Math.max(0, Math.min(20, precision)), 12194 format.toString = function() { 12195 return specifier + ""; 12196 }, format; 12197 } 12198 function formatPrefix(specifier, value) { 12199 var f = newFormat((specifier = Object(__WEBPACK_IMPORTED_MODULE_3__formatSpecifier__.a)(specifier), 12200 specifier.type = "f", specifier)), e = 3 * Math.max(-8, Math.min(8, Math.floor(Object(__WEBPACK_IMPORTED_MODULE_0__exponent__.a)(value) / 3))), k = Math.pow(10, -e), prefix = prefixes[8 + e / 3]; 12201 return function(value) { 12202 return f(k * value) + prefix; 12203 }; 12204 } 12205 var group = locale.grouping && locale.thousands ? Object(__WEBPACK_IMPORTED_MODULE_1__formatGroup__.a)(locale.grouping, locale.thousands) : __WEBPACK_IMPORTED_MODULE_6__identity__.a, currency = locale.currency, decimal = locale.decimal, numerals = locale.numerals ? Object(__WEBPACK_IMPORTED_MODULE_2__formatNumerals__.a)(locale.numerals) : __WEBPACK_IMPORTED_MODULE_6__identity__.a, percent = locale.percent || "%"; 12206 return { 12207 format: newFormat, 12208 formatPrefix: formatPrefix 12209 }; 12210 }; 12211 }, function(module, __webpack_exports__, __webpack_require__) { 12212 "use strict"; 12213 function formatSpecifier(specifier) { 12214 return new FormatSpecifier(specifier); 12215 } 12216 function FormatSpecifier(specifier) { 12217 if (!(match = re.exec(specifier))) throw new Error("invalid format: " + specifier); 12218 var match, fill = match[1] || " ", align = match[2] || ">", sign = match[3] || "-", symbol = match[4] || "", zero = !!match[5], width = match[6] && +match[6], comma = !!match[7], precision = match[8] && +match[8].slice(1), type = match[9] || ""; 12219 "n" === type ? (comma = !0, type = "g") : __WEBPACK_IMPORTED_MODULE_0__formatTypes__.a[type] || (type = ""), 12220 (zero || "0" === fill && "=" === align) && (zero = !0, fill = "0", align = "="), 12221 this.fill = fill, this.align = align, this.sign = sign, this.symbol = symbol, this.zero = zero, 12222 this.width = width, this.comma = comma, this.precision = precision, this.type = type; 12223 } 12224 __webpack_exports__.a = formatSpecifier; 12225 var __WEBPACK_IMPORTED_MODULE_0__formatTypes__ = __webpack_require__(357), re = /^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i; 12226 formatSpecifier.prototype = FormatSpecifier.prototype, FormatSpecifier.prototype.toString = function() { 12227 return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (null == this.width ? "" : Math.max(1, 0 | this.width)) + (this.comma ? "," : "") + (null == this.precision ? "" : "." + Math.max(0, 0 | this.precision)) + this.type; 12228 }; 12229 }, function(module, __webpack_exports__, __webpack_require__) { 12230 "use strict"; 12231 var __WEBPACK_IMPORTED_MODULE_0__formatDefault__ = __webpack_require__(887), __WEBPACK_IMPORTED_MODULE_1__formatPrefixAuto__ = __webpack_require__(358), __WEBPACK_IMPORTED_MODULE_2__formatRounded__ = __webpack_require__(888); 12232 __webpack_exports__.a = { 12233 "": __WEBPACK_IMPORTED_MODULE_0__formatDefault__.a, 12234 "%": function(x, p) { 12235 return (100 * x).toFixed(p); 12236 }, 12237 b: function(x) { 12238 return Math.round(x).toString(2); 12239 }, 12240 c: function(x) { 12241 return x + ""; 12242 }, 12243 d: function(x) { 12244 return Math.round(x).toString(10); 12245 }, 12246 e: function(x, p) { 12247 return x.toExponential(p); 12248 }, 12249 f: function(x, p) { 12250 return x.toFixed(p); 12251 }, 12252 g: function(x, p) { 12253 return x.toPrecision(p); 12254 }, 12255 o: function(x) { 12256 return Math.round(x).toString(8); 12257 }, 12258 p: function(x, p) { 12259 return Object(__WEBPACK_IMPORTED_MODULE_2__formatRounded__.a)(100 * x, p); 12260 }, 12261 r: __WEBPACK_IMPORTED_MODULE_2__formatRounded__.a, 12262 s: __WEBPACK_IMPORTED_MODULE_1__formatPrefixAuto__.a, 12263 X: function(x) { 12264 return Math.round(x).toString(16).toUpperCase(); 12265 }, 12266 x: function(x) { 12267 return Math.round(x).toString(16); 12268 } 12269 }; 12270 }, function(module, __webpack_exports__, __webpack_require__) { 12271 "use strict"; 12272 __webpack_require__.d(__webpack_exports__, "b", function() { 12273 return prefixExponent; 12274 }); 12275 var prefixExponent, __WEBPACK_IMPORTED_MODULE_0__formatDecimal__ = __webpack_require__(211); 12276 __webpack_exports__.a = function(x, p) { 12277 var d = Object(__WEBPACK_IMPORTED_MODULE_0__formatDecimal__.a)(x, p); 12278 if (!d) return x + ""; 12279 var coefficient = d[0], exponent = d[1], i = exponent - (prefixExponent = 3 * Math.max(-8, Math.min(8, Math.floor(exponent / 3)))) + 1, n = coefficient.length; 12280 return i === n ? coefficient : i > n ? coefficient + new Array(i - n + 1).join("0") : i > 0 ? coefficient.slice(0, i) + "." + coefficient.slice(i) : "0." + new Array(1 - i).join("0") + Object(__WEBPACK_IMPORTED_MODULE_0__formatDecimal__.a)(x, Math.max(0, p + i - 1))[0]; 12281 }; 12282 }, function(module, __webpack_exports__, __webpack_require__) { 12283 "use strict"; 12284 __webpack_exports__.a = function(domain, interval) { 12285 domain = domain.slice(); 12286 var t, i0 = 0, i1 = domain.length - 1, x0 = domain[i0], x1 = domain[i1]; 12287 return x1 < x0 && (t = i0, i0 = i1, i1 = t, t = x0, x0 = x1, x1 = t), domain[i0] = interval.floor(x0), 12288 domain[i1] = interval.ceil(x1), domain; 12289 }; 12290 }, function(module, __webpack_exports__, __webpack_require__) { 12291 "use strict"; 12292 function date(t) { 12293 return new Date(t); 12294 } 12295 function number(t) { 12296 return t instanceof Date ? +t : +new Date(+t); 12297 } 12298 function calendar(year, month, week, day, hour, minute, second, millisecond, format) { 12299 function tickFormat(date) { 12300 return (second(date) < date ? formatMillisecond : minute(date) < date ? formatSecond : hour(date) < date ? formatMinute : day(date) < date ? formatHour : month(date) < date ? week(date) < date ? formatDay : formatWeek : year(date) < date ? formatMonth : formatYear)(date); 12301 } 12302 function tickInterval(interval, start, stop, step) { 12303 if (null == interval && (interval = 10), "number" == typeof interval) { 12304 var target = Math.abs(stop - start) / interval, i = Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__.c)(function(i) { 12305 return i[2]; 12306 }).right(tickIntervals, target); 12307 i === tickIntervals.length ? (step = Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__.g)(start / durationYear, stop / durationYear, interval), 12308 interval = year) : i ? (i = tickIntervals[target / tickIntervals[i - 1][2] < tickIntervals[i][2] / target ? i - 1 : i], 12309 step = i[1], interval = i[0]) : (step = Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__.g)(start, stop, interval), 12310 interval = millisecond); 12311 } 12312 return null == step ? interval : interval.every(step); 12313 } 12314 var scale = Object(__WEBPACK_IMPORTED_MODULE_5__continuous__.b)(__WEBPACK_IMPORTED_MODULE_5__continuous__.c, __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__.c), invert = scale.invert, domain = scale.domain, formatMillisecond = format(".%L"), formatSecond = format(":%S"), formatMinute = format("%I:%M"), formatHour = format("%I %p"), formatDay = format("%a %d"), formatWeek = format("%b %d"), formatMonth = format("%B"), formatYear = format("%Y"), tickIntervals = [ [ second, 1, durationSecond ], [ second, 5, 5 * durationSecond ], [ second, 15, 15 * durationSecond ], [ second, 30, 30 * durationSecond ], [ minute, 1, durationMinute ], [ minute, 5, 5 * durationMinute ], [ minute, 15, 15 * durationMinute ], [ minute, 30, 30 * durationMinute ], [ hour, 1, durationHour ], [ hour, 3, 3 * durationHour ], [ hour, 6, 6 * durationHour ], [ hour, 12, 12 * durationHour ], [ day, 1, durationDay ], [ day, 2, 2 * durationDay ], [ week, 1, durationWeek ], [ month, 1, durationMonth ], [ month, 3, 3 * durationMonth ], [ year, 1, durationYear ] ]; 12315 return scale.invert = function(y) { 12316 return new Date(invert(y)); 12317 }, scale.domain = function(_) { 12318 return arguments.length ? domain(__WEBPACK_IMPORTED_MODULE_4__array__.a.call(_, number)) : domain().map(date); 12319 }, scale.ticks = function(interval, step) { 12320 var t, d = domain(), t0 = d[0], t1 = d[d.length - 1], r = t1 < t0; 12321 return r && (t = t0, t0 = t1, t1 = t), t = tickInterval(interval, t0, t1, step), 12322 t = t ? t.range(t0, t1 + 1) : [], r ? t.reverse() : t; 12323 }, scale.tickFormat = function(count, specifier) { 12324 return null == specifier ? tickFormat : format(specifier); 12325 }, scale.nice = function(interval, step) { 12326 var d = domain(); 12327 return (interval = tickInterval(interval, d[0], d[d.length - 1], step)) ? domain(Object(__WEBPACK_IMPORTED_MODULE_6__nice__.a)(d, interval)) : scale; 12328 }, scale.copy = function() { 12329 return Object(__WEBPACK_IMPORTED_MODULE_5__continuous__.a)(scale, calendar(year, month, week, day, hour, minute, second, millisecond, format)); 12330 }, scale; 12331 } 12332 __webpack_exports__.a = calendar; 12333 var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(37), __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__ = __webpack_require__(92), __WEBPACK_IMPORTED_MODULE_2_d3_time__ = __webpack_require__(212), __WEBPACK_IMPORTED_MODULE_3_d3_time_format__ = __webpack_require__(361), __WEBPACK_IMPORTED_MODULE_4__array__ = __webpack_require__(62), __WEBPACK_IMPORTED_MODULE_5__continuous__ = __webpack_require__(137), __WEBPACK_IMPORTED_MODULE_6__nice__ = __webpack_require__(359), durationSecond = 1e3, durationMinute = 60 * durationSecond, durationHour = 60 * durationMinute, durationDay = 24 * durationHour, durationWeek = 7 * durationDay, durationMonth = 30 * durationDay, durationYear = 365 * durationDay; 12334 __webpack_exports__.b = function() { 12335 return calendar(__WEBPACK_IMPORTED_MODULE_2_d3_time__.k, __WEBPACK_IMPORTED_MODULE_2_d3_time__.f, __WEBPACK_IMPORTED_MODULE_2_d3_time__.j, __WEBPACK_IMPORTED_MODULE_2_d3_time__.a, __WEBPACK_IMPORTED_MODULE_2_d3_time__.b, __WEBPACK_IMPORTED_MODULE_2_d3_time__.d, __WEBPACK_IMPORTED_MODULE_2_d3_time__.g, __WEBPACK_IMPORTED_MODULE_2_d3_time__.c, __WEBPACK_IMPORTED_MODULE_3_d3_time_format__.a).domain([ new Date(2e3, 0, 1), new Date(2e3, 0, 2) ]); 12336 }; 12337 }, function(module, __webpack_exports__, __webpack_require__) { 12338 "use strict"; 12339 var __WEBPACK_IMPORTED_MODULE_0__src_defaultLocale__ = __webpack_require__(213); 12340 __webpack_require__.d(__webpack_exports__, "a", function() { 12341 return __WEBPACK_IMPORTED_MODULE_0__src_defaultLocale__.a; 12342 }), __webpack_require__.d(__webpack_exports__, "b", function() { 12343 return __WEBPACK_IMPORTED_MODULE_0__src_defaultLocale__.b; 12344 }); 12345 __webpack_require__(362), __webpack_require__(363), __webpack_require__(912); 12346 }, function(module, __webpack_exports__, __webpack_require__) { 12347 "use strict"; 12348 function localDate(d) { 12349 if (0 <= d.y && d.y < 100) { 12350 var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L); 12351 return date.setFullYear(d.y), date; 12352 } 12353 return new Date(d.y, d.m, d.d, d.H, d.M, d.S, d.L); 12354 } 12355 function utcDate(d) { 12356 if (0 <= d.y && d.y < 100) { 12357 var date = new Date(Date.UTC(-1, d.m, d.d, d.H, d.M, d.S, d.L)); 12358 return date.setUTCFullYear(d.y), date; 12359 } 12360 return new Date(Date.UTC(d.y, d.m, d.d, d.H, d.M, d.S, d.L)); 12361 } 12362 function newYear(y) { 12363 return { 12364 y: y, 12365 m: 0, 12366 d: 1, 12367 H: 0, 12368 M: 0, 12369 S: 0, 12370 L: 0 12371 }; 12372 } 12373 function formatLocale(locale) { 12374 function newFormat(specifier, formats) { 12375 return function(date) { 12376 var c, pad, format, string = [], i = -1, j = 0, n = specifier.length; 12377 for (date instanceof Date || (date = new Date(+date)); ++i < n; ) 37 === specifier.charCodeAt(i) && (string.push(specifier.slice(j, i)), 12378 null != (pad = pads[c = specifier.charAt(++i)]) ? c = specifier.charAt(++i) : pad = "e" === c ? " " : "0", 12379 (format = formats[c]) && (c = format(date, pad)), string.push(c), j = i + 1); 12380 return string.push(specifier.slice(j, i)), string.join(""); 12381 }; 12382 } 12383 function newParse(specifier, newDate) { 12384 return function(string) { 12385 var week, day, d = newYear(1900), i = parseSpecifier(d, specifier, string += "", 0); 12386 if (i != string.length) return null; 12387 if ("Q" in d) return new Date(d.Q); 12388 if ("p" in d && (d.H = d.H % 12 + 12 * d.p), "V" in d) { 12389 if (d.V < 1 || d.V > 53) return null; 12390 "w" in d || (d.w = 1), "Z" in d ? (week = utcDate(newYear(d.y)), day = week.getUTCDay(), 12391 week = day > 4 || 0 === day ? __WEBPACK_IMPORTED_MODULE_0_d3_time__.p.ceil(week) : Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__.p)(week), 12392 week = __WEBPACK_IMPORTED_MODULE_0_d3_time__.l.offset(week, 7 * (d.V - 1)), d.y = week.getUTCFullYear(), 12393 d.m = week.getUTCMonth(), d.d = week.getUTCDate() + (d.w + 6) % 7) : (week = newDate(newYear(d.y)), 12394 day = week.getDay(), week = day > 4 || 0 === day ? __WEBPACK_IMPORTED_MODULE_0_d3_time__.e.ceil(week) : Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__.e)(week), 12395 week = __WEBPACK_IMPORTED_MODULE_0_d3_time__.a.offset(week, 7 * (d.V - 1)), d.y = week.getFullYear(), 12396 d.m = week.getMonth(), d.d = week.getDate() + (d.w + 6) % 7); 12397 } else ("W" in d || "U" in d) && ("w" in d || (d.w = "u" in d ? d.u % 7 : "W" in d ? 1 : 0), 12398 day = "Z" in d ? utcDate(newYear(d.y)).getUTCDay() : newDate(newYear(d.y)).getDay(), 12399 d.m = 0, d.d = "W" in d ? (d.w + 6) % 7 + 7 * d.W - (day + 5) % 7 : d.w + 7 * d.U - (day + 6) % 7); 12400 return "Z" in d ? (d.H += d.Z / 100 | 0, d.M += d.Z % 100, utcDate(d)) : newDate(d); 12401 }; 12402 } 12403 function parseSpecifier(d, specifier, string, j) { 12404 for (var c, parse, i = 0, n = specifier.length, m = string.length; i < n; ) { 12405 if (j >= m) return -1; 12406 if (37 === (c = specifier.charCodeAt(i++))) { 12407 if (c = specifier.charAt(i++), !(parse = parses[c in pads ? specifier.charAt(i++) : c]) || (j = parse(d, string, j)) < 0) return -1; 12408 } else if (c != string.charCodeAt(j++)) return -1; 12409 } 12410 return j; 12411 } 12412 function parsePeriod(d, string, i) { 12413 var n = periodRe.exec(string.slice(i)); 12414 return n ? (d.p = periodLookup[n[0].toLowerCase()], i + n[0].length) : -1; 12415 } 12416 function parseShortWeekday(d, string, i) { 12417 var n = shortWeekdayRe.exec(string.slice(i)); 12418 return n ? (d.w = shortWeekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1; 12419 } 12420 function parseWeekday(d, string, i) { 12421 var n = weekdayRe.exec(string.slice(i)); 12422 return n ? (d.w = weekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1; 12423 } 12424 function parseShortMonth(d, string, i) { 12425 var n = shortMonthRe.exec(string.slice(i)); 12426 return n ? (d.m = shortMonthLookup[n[0].toLowerCase()], i + n[0].length) : -1; 12427 } 12428 function parseMonth(d, string, i) { 12429 var n = monthRe.exec(string.slice(i)); 12430 return n ? (d.m = monthLookup[n[0].toLowerCase()], i + n[0].length) : -1; 12431 } 12432 function parseLocaleDateTime(d, string, i) { 12433 return parseSpecifier(d, locale_dateTime, string, i); 12434 } 12435 function parseLocaleDate(d, string, i) { 12436 return parseSpecifier(d, locale_date, string, i); 12437 } 12438 function parseLocaleTime(d, string, i) { 12439 return parseSpecifier(d, locale_time, string, i); 12440 } 12441 function formatShortWeekday(d) { 12442 return locale_shortWeekdays[d.getDay()]; 12443 } 12444 function formatWeekday(d) { 12445 return locale_weekdays[d.getDay()]; 12446 } 12447 function formatShortMonth(d) { 12448 return locale_shortMonths[d.getMonth()]; 12449 } 12450 function formatMonth(d) { 12451 return locale_months[d.getMonth()]; 12452 } 12453 function formatPeriod(d) { 12454 return locale_periods[+(d.getHours() >= 12)]; 12455 } 12456 function formatUTCShortWeekday(d) { 12457 return locale_shortWeekdays[d.getUTCDay()]; 12458 } 12459 function formatUTCWeekday(d) { 12460 return locale_weekdays[d.getUTCDay()]; 12461 } 12462 function formatUTCShortMonth(d) { 12463 return locale_shortMonths[d.getUTCMonth()]; 12464 } 12465 function formatUTCMonth(d) { 12466 return locale_months[d.getUTCMonth()]; 12467 } 12468 function formatUTCPeriod(d) { 12469 return locale_periods[+(d.getUTCHours() >= 12)]; 12470 } 12471 var locale_dateTime = locale.dateTime, locale_date = locale.date, locale_time = locale.time, locale_periods = locale.periods, locale_weekdays = locale.days, locale_shortWeekdays = locale.shortDays, locale_months = locale.months, locale_shortMonths = locale.shortMonths, periodRe = formatRe(locale_periods), periodLookup = formatLookup(locale_periods), weekdayRe = formatRe(locale_weekdays), weekdayLookup = formatLookup(locale_weekdays), shortWeekdayRe = formatRe(locale_shortWeekdays), shortWeekdayLookup = formatLookup(locale_shortWeekdays), monthRe = formatRe(locale_months), monthLookup = formatLookup(locale_months), shortMonthRe = formatRe(locale_shortMonths), shortMonthLookup = formatLookup(locale_shortMonths), formats = { 12472 a: formatShortWeekday, 12473 A: formatWeekday, 12474 b: formatShortMonth, 12475 B: formatMonth, 12476 c: null, 12477 d: formatDayOfMonth, 12478 e: formatDayOfMonth, 12479 f: formatMicroseconds, 12480 H: formatHour24, 12481 I: formatHour12, 12482 j: formatDayOfYear, 12483 L: formatMilliseconds, 12484 m: formatMonthNumber, 12485 M: formatMinutes, 12486 p: formatPeriod, 12487 Q: formatUnixTimestamp, 12488 s: formatUnixTimestampSeconds, 12489 S: formatSeconds, 12490 u: formatWeekdayNumberMonday, 12491 U: formatWeekNumberSunday, 12492 V: formatWeekNumberISO, 12493 w: formatWeekdayNumberSunday, 12494 W: formatWeekNumberMonday, 12495 x: null, 12496 X: null, 12497 y: formatYear, 12498 Y: formatFullYear, 12499 Z: formatZone, 12500 "%": formatLiteralPercent 12501 }, utcFormats = { 12502 a: formatUTCShortWeekday, 12503 A: formatUTCWeekday, 12504 b: formatUTCShortMonth, 12505 B: formatUTCMonth, 12506 c: null, 12507 d: formatUTCDayOfMonth, 12508 e: formatUTCDayOfMonth, 12509 f: formatUTCMicroseconds, 12510 H: formatUTCHour24, 12511 I: formatUTCHour12, 12512 j: formatUTCDayOfYear, 12513 L: formatUTCMilliseconds, 12514 m: formatUTCMonthNumber, 12515 M: formatUTCMinutes, 12516 p: formatUTCPeriod, 12517 Q: formatUnixTimestamp, 12518 s: formatUnixTimestampSeconds, 12519 S: formatUTCSeconds, 12520 u: formatUTCWeekdayNumberMonday, 12521 U: formatUTCWeekNumberSunday, 12522 V: formatUTCWeekNumberISO, 12523 w: formatUTCWeekdayNumberSunday, 12524 W: formatUTCWeekNumberMonday, 12525 x: null, 12526 X: null, 12527 y: formatUTCYear, 12528 Y: formatUTCFullYear, 12529 Z: formatUTCZone, 12530 "%": formatLiteralPercent 12531 }, parses = { 12532 a: parseShortWeekday, 12533 A: parseWeekday, 12534 b: parseShortMonth, 12535 B: parseMonth, 12536 c: parseLocaleDateTime, 12537 d: parseDayOfMonth, 12538 e: parseDayOfMonth, 12539 f: parseMicroseconds, 12540 H: parseHour24, 12541 I: parseHour24, 12542 j: parseDayOfYear, 12543 L: parseMilliseconds, 12544 m: parseMonthNumber, 12545 M: parseMinutes, 12546 p: parsePeriod, 12547 Q: parseUnixTimestamp, 12548 s: parseUnixTimestampSeconds, 12549 S: parseSeconds, 12550 u: parseWeekdayNumberMonday, 12551 U: parseWeekNumberSunday, 12552 V: parseWeekNumberISO, 12553 w: parseWeekdayNumberSunday, 12554 W: parseWeekNumberMonday, 12555 x: parseLocaleDate, 12556 X: parseLocaleTime, 12557 y: parseYear, 12558 Y: parseFullYear, 12559 Z: parseZone, 12560 "%": parseLiteralPercent 12561 }; 12562 return formats.x = newFormat(locale_date, formats), formats.X = newFormat(locale_time, formats), 12563 formats.c = newFormat(locale_dateTime, formats), utcFormats.x = newFormat(locale_date, utcFormats), 12564 utcFormats.X = newFormat(locale_time, utcFormats), utcFormats.c = newFormat(locale_dateTime, utcFormats), 12565 { 12566 format: function(specifier) { 12567 var f = newFormat(specifier += "", formats); 12568 return f.toString = function() { 12569 return specifier; 12570 }, f; 12571 }, 12572 parse: function(specifier) { 12573 var p = newParse(specifier += "", localDate); 12574 return p.toString = function() { 12575 return specifier; 12576 }, p; 12577 }, 12578 utcFormat: function(specifier) { 12579 var f = newFormat(specifier += "", utcFormats); 12580 return f.toString = function() { 12581 return specifier; 12582 }, f; 12583 }, 12584 utcParse: function(specifier) { 12585 var p = newParse(specifier, utcDate); 12586 return p.toString = function() { 12587 return specifier; 12588 }, p; 12589 } 12590 }; 12591 } 12592 function pad(value, fill, width) { 12593 var sign = value < 0 ? "-" : "", string = (sign ? -value : value) + "", length = string.length; 12594 return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string); 12595 } 12596 function requote(s) { 12597 return s.replace(requoteRe, "\\$&"); 12598 } 12599 function formatRe(names) { 12600 return new RegExp("^(?:" + names.map(requote).join("|") + ")", "i"); 12601 } 12602 function formatLookup(names) { 12603 for (var map = {}, i = -1, n = names.length; ++i < n; ) map[names[i].toLowerCase()] = i; 12604 return map; 12605 } 12606 function parseWeekdayNumberSunday(d, string, i) { 12607 var n = numberRe.exec(string.slice(i, i + 1)); 12608 return n ? (d.w = +n[0], i + n[0].length) : -1; 12609 } 12610 function parseWeekdayNumberMonday(d, string, i) { 12611 var n = numberRe.exec(string.slice(i, i + 1)); 12612 return n ? (d.u = +n[0], i + n[0].length) : -1; 12613 } 12614 function parseWeekNumberSunday(d, string, i) { 12615 var n = numberRe.exec(string.slice(i, i + 2)); 12616 return n ? (d.U = +n[0], i + n[0].length) : -1; 12617 } 12618 function parseWeekNumberISO(d, string, i) { 12619 var n = numberRe.exec(string.slice(i, i + 2)); 12620 return n ? (d.V = +n[0], i + n[0].length) : -1; 12621 } 12622 function parseWeekNumberMonday(d, string, i) { 12623 var n = numberRe.exec(string.slice(i, i + 2)); 12624 return n ? (d.W = +n[0], i + n[0].length) : -1; 12625 } 12626 function parseFullYear(d, string, i) { 12627 var n = numberRe.exec(string.slice(i, i + 4)); 12628 return n ? (d.y = +n[0], i + n[0].length) : -1; 12629 } 12630 function parseYear(d, string, i) { 12631 var n = numberRe.exec(string.slice(i, i + 2)); 12632 return n ? (d.y = +n[0] + (+n[0] > 68 ? 1900 : 2e3), i + n[0].length) : -1; 12633 } 12634 function parseZone(d, string, i) { 12635 var n = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(string.slice(i, i + 6)); 12636 return n ? (d.Z = n[1] ? 0 : -(n[2] + (n[3] || "00")), i + n[0].length) : -1; 12637 } 12638 function parseMonthNumber(d, string, i) { 12639 var n = numberRe.exec(string.slice(i, i + 2)); 12640 return n ? (d.m = n[0] - 1, i + n[0].length) : -1; 12641 } 12642 function parseDayOfMonth(d, string, i) { 12643 var n = numberRe.exec(string.slice(i, i + 2)); 12644 return n ? (d.d = +n[0], i + n[0].length) : -1; 12645 } 12646 function parseDayOfYear(d, string, i) { 12647 var n = numberRe.exec(string.slice(i, i + 3)); 12648 return n ? (d.m = 0, d.d = +n[0], i + n[0].length) : -1; 12649 } 12650 function parseHour24(d, string, i) { 12651 var n = numberRe.exec(string.slice(i, i + 2)); 12652 return n ? (d.H = +n[0], i + n[0].length) : -1; 12653 } 12654 function parseMinutes(d, string, i) { 12655 var n = numberRe.exec(string.slice(i, i + 2)); 12656 return n ? (d.M = +n[0], i + n[0].length) : -1; 12657 } 12658 function parseSeconds(d, string, i) { 12659 var n = numberRe.exec(string.slice(i, i + 2)); 12660 return n ? (d.S = +n[0], i + n[0].length) : -1; 12661 } 12662 function parseMilliseconds(d, string, i) { 12663 var n = numberRe.exec(string.slice(i, i + 3)); 12664 return n ? (d.L = +n[0], i + n[0].length) : -1; 12665 } 12666 function parseMicroseconds(d, string, i) { 12667 var n = numberRe.exec(string.slice(i, i + 6)); 12668 return n ? (d.L = Math.floor(n[0] / 1e3), i + n[0].length) : -1; 12669 } 12670 function parseLiteralPercent(d, string, i) { 12671 var n = percentRe.exec(string.slice(i, i + 1)); 12672 return n ? i + n[0].length : -1; 12673 } 12674 function parseUnixTimestamp(d, string, i) { 12675 var n = numberRe.exec(string.slice(i)); 12676 return n ? (d.Q = +n[0], i + n[0].length) : -1; 12677 } 12678 function parseUnixTimestampSeconds(d, string, i) { 12679 var n = numberRe.exec(string.slice(i)); 12680 return n ? (d.Q = 1e3 * +n[0], i + n[0].length) : -1; 12681 } 12682 function formatDayOfMonth(d, p) { 12683 return pad(d.getDate(), p, 2); 12684 } 12685 function formatHour24(d, p) { 12686 return pad(d.getHours(), p, 2); 12687 } 12688 function formatHour12(d, p) { 12689 return pad(d.getHours() % 12 || 12, p, 2); 12690 } 12691 function formatDayOfYear(d, p) { 12692 return pad(1 + __WEBPACK_IMPORTED_MODULE_0_d3_time__.a.count(Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__.k)(d), d), p, 3); 12693 } 12694 function formatMilliseconds(d, p) { 12695 return pad(d.getMilliseconds(), p, 3); 12696 } 12697 function formatMicroseconds(d, p) { 12698 return formatMilliseconds(d, p) + "000"; 12699 } 12700 function formatMonthNumber(d, p) { 12701 return pad(d.getMonth() + 1, p, 2); 12702 } 12703 function formatMinutes(d, p) { 12704 return pad(d.getMinutes(), p, 2); 12705 } 12706 function formatSeconds(d, p) { 12707 return pad(d.getSeconds(), p, 2); 12708 } 12709 function formatWeekdayNumberMonday(d) { 12710 var day = d.getDay(); 12711 return 0 === day ? 7 : day; 12712 } 12713 function formatWeekNumberSunday(d, p) { 12714 return pad(__WEBPACK_IMPORTED_MODULE_0_d3_time__.h.count(Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__.k)(d), d), p, 2); 12715 } 12716 function formatWeekNumberISO(d, p) { 12717 var day = d.getDay(); 12718 return d = day >= 4 || 0 === day ? Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__.i)(d) : __WEBPACK_IMPORTED_MODULE_0_d3_time__.i.ceil(d), 12719 pad(__WEBPACK_IMPORTED_MODULE_0_d3_time__.i.count(Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__.k)(d), d) + (4 === Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__.k)(d).getDay()), p, 2); 12720 } 12721 function formatWeekdayNumberSunday(d) { 12722 return d.getDay(); 12723 } 12724 function formatWeekNumberMonday(d, p) { 12725 return pad(__WEBPACK_IMPORTED_MODULE_0_d3_time__.e.count(Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__.k)(d), d), p, 2); 12726 } 12727 function formatYear(d, p) { 12728 return pad(d.getFullYear() % 100, p, 2); 12729 } 12730 function formatFullYear(d, p) { 12731 return pad(d.getFullYear() % 1e4, p, 4); 12732 } 12733 function formatZone(d) { 12734 var z = d.getTimezoneOffset(); 12735 return (z > 0 ? "-" : (z *= -1, "+")) + pad(z / 60 | 0, "0", 2) + pad(z % 60, "0", 2); 12736 } 12737 function formatUTCDayOfMonth(d, p) { 12738 return pad(d.getUTCDate(), p, 2); 12739 } 12740 function formatUTCHour24(d, p) { 12741 return pad(d.getUTCHours(), p, 2); 12742 } 12743 function formatUTCHour12(d, p) { 12744 return pad(d.getUTCHours() % 12 || 12, p, 2); 12745 } 12746 function formatUTCDayOfYear(d, p) { 12747 return pad(1 + __WEBPACK_IMPORTED_MODULE_0_d3_time__.l.count(Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__.v)(d), d), p, 3); 12748 } 12749 function formatUTCMilliseconds(d, p) { 12750 return pad(d.getUTCMilliseconds(), p, 3); 12751 } 12752 function formatUTCMicroseconds(d, p) { 12753 return formatUTCMilliseconds(d, p) + "000"; 12754 } 12755 function formatUTCMonthNumber(d, p) { 12756 return pad(d.getUTCMonth() + 1, p, 2); 12757 } 12758 function formatUTCMinutes(d, p) { 12759 return pad(d.getUTCMinutes(), p, 2); 12760 } 12761 function formatUTCSeconds(d, p) { 12762 return pad(d.getUTCSeconds(), p, 2); 12763 } 12764 function formatUTCWeekdayNumberMonday(d) { 12765 var dow = d.getUTCDay(); 12766 return 0 === dow ? 7 : dow; 12767 } 12768 function formatUTCWeekNumberSunday(d, p) { 12769 return pad(__WEBPACK_IMPORTED_MODULE_0_d3_time__.s.count(Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__.v)(d), d), p, 2); 12770 } 12771 function formatUTCWeekNumberISO(d, p) { 12772 var day = d.getUTCDay(); 12773 return d = day >= 4 || 0 === day ? Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__.t)(d) : __WEBPACK_IMPORTED_MODULE_0_d3_time__.t.ceil(d), 12774 pad(__WEBPACK_IMPORTED_MODULE_0_d3_time__.t.count(Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__.v)(d), d) + (4 === Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__.v)(d).getUTCDay()), p, 2); 12775 } 12776 function formatUTCWeekdayNumberSunday(d) { 12777 return d.getUTCDay(); 12778 } 12779 function formatUTCWeekNumberMonday(d, p) { 12780 return pad(__WEBPACK_IMPORTED_MODULE_0_d3_time__.p.count(Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__.v)(d), d), p, 2); 12781 } 12782 function formatUTCYear(d, p) { 12783 return pad(d.getUTCFullYear() % 100, p, 2); 12784 } 12785 function formatUTCFullYear(d, p) { 12786 return pad(d.getUTCFullYear() % 1e4, p, 4); 12787 } 12788 function formatUTCZone() { 12789 return "+0000"; 12790 } 12791 function formatLiteralPercent() { 12792 return "%"; 12793 } 12794 function formatUnixTimestamp(d) { 12795 return +d; 12796 } 12797 function formatUnixTimestampSeconds(d) { 12798 return Math.floor(+d / 1e3); 12799 } 12800 __webpack_exports__.a = formatLocale; 12801 var __WEBPACK_IMPORTED_MODULE_0_d3_time__ = __webpack_require__(212), pads = { 12802 "-": "", 12803 _: " ", 12804 "0": "0" 12805 }, numberRe = /^\s*\d+/, percentRe = /^%/, requoteRe = /[\\^$*+?|[\]().{}]/g; 12806 }, function(module, __webpack_exports__, __webpack_require__) { 12807 "use strict"; 12808 function formatIsoNative(date) { 12809 return date.toISOString(); 12810 } 12811 __webpack_require__.d(__webpack_exports__, "a", function() { 12812 return isoSpecifier; 12813 }); 12814 var __WEBPACK_IMPORTED_MODULE_0__defaultLocale__ = __webpack_require__(213), isoSpecifier = "%Y-%m-%dT%H:%M:%S.%LZ"; 12815 Date.prototype.toISOString || Object(__WEBPACK_IMPORTED_MODULE_0__defaultLocale__.b)(isoSpecifier); 12816 }, function(module, __webpack_exports__, __webpack_require__) { 12817 "use strict"; 12818 function _classCallCheck(instance, Constructor) { 12819 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 12820 } 12821 function _possibleConstructorReturn(self, call) { 12822 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 12823 return !call || "object" != typeof call && "function" != typeof call ? self : call; 12824 } 12825 function _inherits(subClass, superClass) { 12826 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 12827 subClass.prototype = Object.create(superClass && superClass.prototype, { 12828 constructor: { 12829 value: subClass, 12830 enumerable: !1, 12831 writable: !0, 12832 configurable: !0 12833 } 12834 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 12835 } 12836 var _class, _class2, _temp, __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction__ = __webpack_require__(8), __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isFunction__), __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__), __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__), __WEBPACK_IMPORTED_MODULE_3_classnames__ = __webpack_require__(3), __WEBPACK_IMPORTED_MODULE_3_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_classnames__), __WEBPACK_IMPORTED_MODULE_4__util_PureRender__ = __webpack_require__(5), __WEBPACK_IMPORTED_MODULE_5__container_Layer__ = __webpack_require__(14), __WEBPACK_IMPORTED_MODULE_6__shape_Dot__ = __webpack_require__(63), __WEBPACK_IMPORTED_MODULE_7__util_ReactUtils__ = __webpack_require__(4), __WEBPACK_IMPORTED_MODULE_8__component_Label__ = __webpack_require__(44), __WEBPACK_IMPORTED_MODULE_9__util_DataUtils__ = __webpack_require__(9), __WEBPACK_IMPORTED_MODULE_10__util_ChartUtils__ = __webpack_require__(16), _extends = Object.assign || function(target) { 12837 for (var i = 1; i < arguments.length; i++) { 12838 var source = arguments[i]; 12839 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 12840 } 12841 return target; 12842 }, _createClass = function() { 12843 function defineProperties(target, props) { 12844 for (var i = 0; i < props.length; i++) { 12845 var descriptor = props[i]; 12846 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 12847 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 12848 } 12849 } 12850 return function(Constructor, protoProps, staticProps) { 12851 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 12852 Constructor; 12853 }; 12854 }(), ReferenceDot = Object(__WEBPACK_IMPORTED_MODULE_4__util_PureRender__.a)((_temp = _class2 = function(_Component) { 12855 function ReferenceDot() { 12856 return _classCallCheck(this, ReferenceDot), _possibleConstructorReturn(this, (ReferenceDot.__proto__ || Object.getPrototypeOf(ReferenceDot)).apply(this, arguments)); 12857 } 12858 return _inherits(ReferenceDot, _Component), _createClass(ReferenceDot, [ { 12859 key: "getCoordinate", 12860 value: function() { 12861 var _props = this.props, x = _props.x, y = _props.y, xAxis = _props.xAxis, yAxis = _props.yAxis, xScale = xAxis.scale, yScale = yAxis.scale, result = { 12862 cx: xScale(x) + (xScale.bandwidth ? xScale.bandwidth() / 2 : 0), 12863 cy: yScale(y) + (yScale.bandwidth ? yScale.bandwidth() / 2 : 0) 12864 }; 12865 return Object(__WEBPACK_IMPORTED_MODULE_10__util_ChartUtils__.D)(result.cx, xScale) && Object(__WEBPACK_IMPORTED_MODULE_10__util_ChartUtils__.D)(result.cy, yScale) ? result : null; 12866 } 12867 }, { 12868 key: "renderDot", 12869 value: function(option, props) { 12870 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.isValidElement(option) ? __WEBPACK_IMPORTED_MODULE_1_react___default.a.cloneElement(option, props) : __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default()(option) ? option(props) : __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__shape_Dot__.a, _extends({}, props, { 12871 cx: props.cx, 12872 cy: props.cy, 12873 className: "recharts-reference-dot-dot" 12874 })); 12875 } 12876 }, { 12877 key: "render", 12878 value: function() { 12879 var _props2 = this.props, x = _props2.x, y = _props2.y, r = _props2.r, isX = Object(__WEBPACK_IMPORTED_MODULE_9__util_DataUtils__.g)(x), isY = Object(__WEBPACK_IMPORTED_MODULE_9__util_DataUtils__.g)(y); 12880 if (!isX || !isY) return null; 12881 var coordinate = this.getCoordinate(); 12882 if (!coordinate) return null; 12883 var _props3 = this.props, shape = _props3.shape, className = _props3.className, dotProps = _extends({}, Object(__WEBPACK_IMPORTED_MODULE_7__util_ReactUtils__.k)(this.props), Object(__WEBPACK_IMPORTED_MODULE_7__util_ReactUtils__.e)(this.props), coordinate); 12884 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__container_Layer__.a, { 12885 className: __WEBPACK_IMPORTED_MODULE_3_classnames___default()("recharts-reference-dot", className) 12886 }, this.renderDot(shape, dotProps), __WEBPACK_IMPORTED_MODULE_8__component_Label__.a.renderCallByParent(this.props, { 12887 x: coordinate.cx - r, 12888 y: coordinate.cy - r, 12889 width: 2 * r, 12890 height: 2 * r 12891 })); 12892 } 12893 } ]), ReferenceDot; 12894 }(__WEBPACK_IMPORTED_MODULE_1_react__.Component), _class2.displayName = "ReferenceDot", 12895 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_7__util_ReactUtils__.c, __WEBPACK_IMPORTED_MODULE_7__util_ReactUtils__.a, { 12896 r: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 12897 xAxis: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.shape({ 12898 scale: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func 12899 }), 12900 yAxis: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.shape({ 12901 scale: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func 12902 }), 12903 isFront: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, 12904 alwaysShow: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, 12905 x: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string ]), 12906 y: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string ]), 12907 className: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string ]), 12908 yAxisId: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number ]), 12909 xAxisId: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number ]), 12910 shape: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.element ]) 12911 }), _class2.defaultProps = { 12912 isFront: !1, 12913 alwaysShow: !1, 12914 xAxisId: 0, 12915 yAxisId: 0, 12916 r: 10, 12917 fill: "#fff", 12918 stroke: "#ccc", 12919 fillOpacity: 1, 12920 strokeWidth: 1 12921 }, _class = _temp)) || _class; 12922 __webpack_exports__.a = ReferenceDot; 12923 }, function(module, __webpack_exports__, __webpack_require__) { 12924 "use strict"; 12925 function _classCallCheck(instance, Constructor) { 12926 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 12927 } 12928 function _possibleConstructorReturn(self, call) { 12929 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 12930 return !call || "object" != typeof call && "function" != typeof call ? self : call; 12931 } 12932 function _inherits(subClass, superClass) { 12933 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 12934 subClass.prototype = Object.create(superClass && superClass.prototype, { 12935 constructor: { 12936 value: subClass, 12937 enumerable: !1, 12938 writable: !0, 12939 configurable: !0 12940 } 12941 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 12942 } 12943 var _class, _class2, _temp, __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction__ = __webpack_require__(8), __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isFunction__), __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__), __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__), __WEBPACK_IMPORTED_MODULE_3_classnames__ = __webpack_require__(3), __WEBPACK_IMPORTED_MODULE_3_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_classnames__), __WEBPACK_IMPORTED_MODULE_4__util_PureRender__ = __webpack_require__(5), __WEBPACK_IMPORTED_MODULE_5__container_Layer__ = __webpack_require__(14), __WEBPACK_IMPORTED_MODULE_6__util_ReactUtils__ = __webpack_require__(4), __WEBPACK_IMPORTED_MODULE_7__component_Label__ = __webpack_require__(44), __WEBPACK_IMPORTED_MODULE_8__util_DataUtils__ = __webpack_require__(9), __WEBPACK_IMPORTED_MODULE_9__util_ChartUtils__ = __webpack_require__(16), _slicedToArray = function() { 12944 function sliceIterator(arr, i) { 12945 var _arr = [], _n = !0, _d = !1, _e = void 0; 12946 try { 12947 for (var _s, _i = arr[Symbol.iterator](); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), 12948 !i || _arr.length !== i); _n = !0) ; 12949 } catch (err) { 12950 _d = !0, _e = err; 12951 } finally { 12952 try { 12953 !_n && _i.return && _i.return(); 12954 } finally { 12955 if (_d) throw _e; 12956 } 12957 } 12958 return _arr; 12959 } 12960 return function(arr, i) { 12961 if (Array.isArray(arr)) return arr; 12962 if (Symbol.iterator in Object(arr)) return sliceIterator(arr, i); 12963 throw new TypeError("Invalid attempt to destructure non-iterable instance"); 12964 }; 12965 }(), _createClass = function() { 12966 function defineProperties(target, props) { 12967 for (var i = 0; i < props.length; i++) { 12968 var descriptor = props[i]; 12969 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 12970 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 12971 } 12972 } 12973 return function(Constructor, protoProps, staticProps) { 12974 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 12975 Constructor; 12976 }; 12977 }(), _extends = Object.assign || function(target) { 12978 for (var i = 1; i < arguments.length; i++) { 12979 var source = arguments[i]; 12980 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 12981 } 12982 return target; 12983 }, renderLine = function(option, props) { 12984 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.isValidElement(option) ? __WEBPACK_IMPORTED_MODULE_1_react___default.a.cloneElement(option, props) : __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default()(option) ? option(props) : __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("line", _extends({}, props, { 12985 className: "recharts-reference-line-line" 12986 })); 12987 }, ReferenceLine = Object(__WEBPACK_IMPORTED_MODULE_4__util_PureRender__.a)((_temp = _class2 = function(_Component) { 12988 function ReferenceLine() { 12989 return _classCallCheck(this, ReferenceLine), _possibleConstructorReturn(this, (ReferenceLine.__proto__ || Object.getPrototypeOf(ReferenceLine)).apply(this, arguments)); 12990 } 12991 return _inherits(ReferenceLine, _Component), _createClass(ReferenceLine, [ { 12992 key: "getEndPoints", 12993 value: function(isX, isY) { 12994 var _props = this.props, xAxis = _props.xAxis, yAxis = _props.yAxis, viewBox = _props.viewBox, x = viewBox.x, y = viewBox.y, width = viewBox.width, height = viewBox.height; 12995 if (isY) { 12996 var value = this.props.y, scale = yAxis.scale, offset = scale.bandwidth ? scale.bandwidth() / 2 : 0, coord = scale(value) + offset; 12997 if (Object(__WEBPACK_IMPORTED_MODULE_9__util_ChartUtils__.D)(coord, scale)) return "left" === yAxis.orientation ? [ { 12998 x: x, 12999 y: coord 13000 }, { 13001 x: x + width, 13002 y: coord 13003 } ] : [ { 13004 x: x + width, 13005 y: coord 13006 }, { 13007 x: x, 13008 y: coord 13009 } ]; 13010 } else if (isX) { 13011 var _value = this.props.x, _scale = xAxis.scale, _offset = _scale.bandwidth ? _scale.bandwidth() / 2 : 0, _coord = _scale(_value) + _offset; 13012 if (Object(__WEBPACK_IMPORTED_MODULE_9__util_ChartUtils__.D)(_coord, _scale)) return "top" === xAxis.orientation ? [ { 13013 x: _coord, 13014 y: y 13015 }, { 13016 x: _coord, 13017 y: y + height 13018 } ] : [ { 13019 x: _coord, 13020 y: y + height 13021 }, { 13022 x: _coord, 13023 y: y 13024 } ]; 13025 } 13026 return null; 13027 } 13028 }, { 13029 key: "render", 13030 value: function() { 13031 var _props2 = this.props, x = _props2.x, y = _props2.y, shape = _props2.shape, className = _props2.className, isX = Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.g)(x), isY = Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.g)(y); 13032 if (!isX && !isY) return null; 13033 var endPoints = this.getEndPoints(isX, isY); 13034 if (!endPoints) return null; 13035 var _endPoints = _slicedToArray(endPoints, 2), start = _endPoints[0], end = _endPoints[1], props = _extends({}, Object(__WEBPACK_IMPORTED_MODULE_6__util_ReactUtils__.k)(this.props), Object(__WEBPACK_IMPORTED_MODULE_6__util_ReactUtils__.e)(this.props), { 13036 x1: start.x, 13037 y1: start.y, 13038 x2: end.x, 13039 y2: end.y 13040 }); 13041 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__container_Layer__.a, { 13042 className: __WEBPACK_IMPORTED_MODULE_3_classnames___default()("recharts-reference-line", className) 13043 }, renderLine(shape, props), __WEBPACK_IMPORTED_MODULE_7__component_Label__.a.renderCallByParent(this.props, { 13044 x: Math.min(props.x1, props.x2), 13045 y: Math.min(props.y1, props.y2), 13046 width: Math.abs(props.x2 - props.x1), 13047 height: Math.abs(props.y2 - props.y1) 13048 })); 13049 } 13050 } ]), ReferenceLine; 13051 }(__WEBPACK_IMPORTED_MODULE_1_react__.Component), _class2.displayName = "ReferenceLine", 13052 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_6__util_ReactUtils__.c, { 13053 viewBox: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.shape({ 13054 x: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 13055 y: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 13056 width: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 13057 height: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number 13058 }), 13059 xAxis: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object, 13060 yAxis: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object, 13061 isFront: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, 13062 alwaysShow: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, 13063 x: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string ]), 13064 y: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string ]), 13065 className: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string ]), 13066 yAxisId: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number ]), 13067 xAxisId: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number ]), 13068 shape: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func 13069 }), _class2.defaultProps = { 13070 isFront: !1, 13071 alwaysShow: !1, 13072 xAxisId: 0, 13073 yAxisId: 0, 13074 fill: "none", 13075 stroke: "#ccc", 13076 fillOpacity: 1, 13077 strokeWidth: 1 13078 }, _class = _temp)) || _class; 13079 __webpack_exports__.a = ReferenceLine; 13080 }, function(module, __webpack_exports__, __webpack_require__) { 13081 "use strict"; 13082 function _classCallCheck(instance, Constructor) { 13083 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 13084 } 13085 function _possibleConstructorReturn(self, call) { 13086 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 13087 return !call || "object" != typeof call && "function" != typeof call ? self : call; 13088 } 13089 function _inherits(subClass, superClass) { 13090 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 13091 subClass.prototype = Object.create(superClass && superClass.prototype, { 13092 constructor: { 13093 value: subClass, 13094 enumerable: !1, 13095 writable: !0, 13096 configurable: !0 13097 } 13098 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 13099 } 13100 var _class, _class2, _temp, __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction__ = __webpack_require__(8), __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isFunction__), __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__), __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__), __WEBPACK_IMPORTED_MODULE_3_classnames__ = __webpack_require__(3), __WEBPACK_IMPORTED_MODULE_3_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_classnames__), __WEBPACK_IMPORTED_MODULE_4__util_PureRender__ = __webpack_require__(5), __WEBPACK_IMPORTED_MODULE_5__container_Layer__ = __webpack_require__(14), __WEBPACK_IMPORTED_MODULE_6__component_Label__ = __webpack_require__(44), __WEBPACK_IMPORTED_MODULE_7__util_ReactUtils__ = __webpack_require__(4), __WEBPACK_IMPORTED_MODULE_8__util_DataUtils__ = __webpack_require__(9), __WEBPACK_IMPORTED_MODULE_9__util_ChartUtils__ = __webpack_require__(16), __WEBPACK_IMPORTED_MODULE_10__shape_Rectangle__ = __webpack_require__(70), _extends = Object.assign || function(target) { 13101 for (var i = 1; i < arguments.length; i++) { 13102 var source = arguments[i]; 13103 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 13104 } 13105 return target; 13106 }, _createClass = function() { 13107 function defineProperties(target, props) { 13108 for (var i = 0; i < props.length; i++) { 13109 var descriptor = props[i]; 13110 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 13111 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 13112 } 13113 } 13114 return function(Constructor, protoProps, staticProps) { 13115 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 13116 Constructor; 13117 }; 13118 }(), ReferenceArea = Object(__WEBPACK_IMPORTED_MODULE_4__util_PureRender__.a)((_temp = _class2 = function(_Component) { 13119 function ReferenceArea() { 13120 return _classCallCheck(this, ReferenceArea), _possibleConstructorReturn(this, (ReferenceArea.__proto__ || Object.getPrototypeOf(ReferenceArea)).apply(this, arguments)); 13121 } 13122 return _inherits(ReferenceArea, _Component), _createClass(ReferenceArea, [ { 13123 key: "getRect", 13124 value: function(hasX1, hasX2, hasY1, hasY2) { 13125 var _props = this.props, xValue1 = _props.x1, xValue2 = _props.x2, yValue1 = _props.y1, yValue2 = _props.y2, xAxis = _props.xAxis, yAxis = _props.yAxis, xScale = xAxis.scale, yScale = yAxis.scale, xOffset = xScale.bandwidth ? xScale.bandwidth() / 2 : 0, yOffset = yScale.bandwidth ? yScale.bandwidth() / 2 : 0, xRange = xScale.range(), yRange = yScale.range(), x1 = void 0, x2 = void 0, y1 = void 0, y2 = void 0; 13126 return x1 = hasX1 ? xScale(xValue1) + xOffset : xRange[0], x2 = hasX2 ? xScale(xValue2) + xOffset : xRange[1], 13127 y1 = hasY1 ? yScale(yValue1) + yOffset : yRange[0], y2 = hasY2 ? yScale(yValue2) + yOffset : yRange[1], 13128 Object(__WEBPACK_IMPORTED_MODULE_9__util_ChartUtils__.D)(x1, xScale) && Object(__WEBPACK_IMPORTED_MODULE_9__util_ChartUtils__.D)(x2, xScale) && Object(__WEBPACK_IMPORTED_MODULE_9__util_ChartUtils__.D)(y1, yScale) && Object(__WEBPACK_IMPORTED_MODULE_9__util_ChartUtils__.D)(y2, yScale) ? { 13129 x: Math.min(x1, x2), 13130 y: Math.min(y1, y2), 13131 width: Math.abs(x2 - x1), 13132 height: Math.abs(y2 - y1) 13133 } : null; 13134 } 13135 }, { 13136 key: "renderRect", 13137 value: function(option, props) { 13138 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.isValidElement(option) ? __WEBPACK_IMPORTED_MODULE_1_react___default.a.cloneElement(option, props) : __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default()(option) ? option(props) : __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10__shape_Rectangle__.a, _extends({}, props, { 13139 className: "recharts-reference-area-rect" 13140 })); 13141 } 13142 }, { 13143 key: "render", 13144 value: function() { 13145 var _props2 = this.props, x1 = _props2.x1, x2 = _props2.x2, y1 = _props2.y1, y2 = _props2.y2, className = _props2.className, hasX1 = Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.g)(x1), hasX2 = Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.g)(x2), hasY1 = Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.g)(y1), hasY2 = Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.g)(y2); 13146 if (!(hasX1 || hasX2 || hasY1 || hasY2)) return null; 13147 var rect = this.getRect(hasX1, hasX2, hasY1, hasY2); 13148 if (!rect) return null; 13149 var shape = this.props.shape; 13150 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__container_Layer__.a, { 13151 className: __WEBPACK_IMPORTED_MODULE_3_classnames___default()("recharts-reference-area", className) 13152 }, this.renderRect(shape, _extends({}, this.props, rect)), __WEBPACK_IMPORTED_MODULE_6__component_Label__.a.renderCallByParent(this.props, rect)); 13153 } 13154 } ]), ReferenceArea; 13155 }(__WEBPACK_IMPORTED_MODULE_1_react__.Component), _class2.displayName = "ReferenceArea", 13156 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_7__util_ReactUtils__.c, { 13157 viewBox: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.shape({ 13158 x: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 13159 y: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 13160 width: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 13161 height: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number 13162 }), 13163 xAxis: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object, 13164 yAxis: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object, 13165 isFront: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, 13166 alwaysShow: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, 13167 x1: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string ]), 13168 x2: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string ]), 13169 y1: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string ]), 13170 y2: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string ]), 13171 className: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string ]), 13172 yAxisId: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number ]), 13173 xAxisId: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number ]), 13174 shape: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.element ]) 13175 }), _class2.defaultProps = { 13176 isFront: !1, 13177 alwaysShow: !1, 13178 xAxisId: 0, 13179 yAxisId: 0, 13180 r: 10, 13181 fill: "#ccc", 13182 fillOpacity: .5, 13183 stroke: "none", 13184 strokeWidth: 1 13185 }, _class = _temp)) || _class; 13186 __webpack_exports__.a = ReferenceArea; 13187 }, function(module, __webpack_exports__, __webpack_require__) { 13188 "use strict"; 13189 function _classCallCheck(instance, Constructor) { 13190 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 13191 } 13192 function _possibleConstructorReturn(self, call) { 13193 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 13194 return !call || "object" != typeof call && "function" != typeof call ? self : call; 13195 } 13196 function _inherits(subClass, superClass) { 13197 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 13198 subClass.prototype = Object.create(superClass && superClass.prototype, { 13199 constructor: { 13200 value: subClass, 13201 enumerable: !1, 13202 writable: !0, 13203 configurable: !0 13204 } 13205 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 13206 } 13207 var _class, _class2, _temp, __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__), __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__), __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(3), __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__), __WEBPACK_IMPORTED_MODULE_3__util_PureRender__ = __webpack_require__(5), __WEBPACK_IMPORTED_MODULE_4__util_DataUtils__ = __webpack_require__(9), __WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__ = __webpack_require__(4), _extends = Object.assign || function(target) { 13208 for (var i = 1; i < arguments.length; i++) { 13209 var source = arguments[i]; 13210 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 13211 } 13212 return target; 13213 }, _createClass = function() { 13214 function defineProperties(target, props) { 13215 for (var i = 0; i < props.length; i++) { 13216 var descriptor = props[i]; 13217 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 13218 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 13219 } 13220 } 13221 return function(Constructor, protoProps, staticProps) { 13222 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 13223 Constructor; 13224 }; 13225 }(), Cross = Object(__WEBPACK_IMPORTED_MODULE_3__util_PureRender__.a)((_temp = _class2 = function(_Component) { 13226 function Cross() { 13227 return _classCallCheck(this, Cross), _possibleConstructorReturn(this, (Cross.__proto__ || Object.getPrototypeOf(Cross)).apply(this, arguments)); 13228 } 13229 return _inherits(Cross, _Component), _createClass(Cross, [ { 13230 key: "getPath", 13231 value: function(x, y, width, height, top, left) { 13232 return "M" + x + "," + top + "v" + height + "M" + left + "," + y + "h" + width; 13233 } 13234 }, { 13235 key: "render", 13236 value: function() { 13237 var _props = this.props, x = _props.x, y = _props.y, width = _props.width, height = _props.height, top = _props.top, left = _props.left, className = _props.className; 13238 return Object(__WEBPACK_IMPORTED_MODULE_4__util_DataUtils__.h)(x) && Object(__WEBPACK_IMPORTED_MODULE_4__util_DataUtils__.h)(y) && Object(__WEBPACK_IMPORTED_MODULE_4__util_DataUtils__.h)(width) && Object(__WEBPACK_IMPORTED_MODULE_4__util_DataUtils__.h)(height) && Object(__WEBPACK_IMPORTED_MODULE_4__util_DataUtils__.h)(top) && Object(__WEBPACK_IMPORTED_MODULE_4__util_DataUtils__.h)(left) ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("path", _extends({}, Object(__WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__.k)(this.props), { 13239 className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()("recharts-cross", className), 13240 d: this.getPath(x, y, width, height, top, left) 13241 })) : null; 13242 } 13243 } ]), Cross; 13244 }(__WEBPACK_IMPORTED_MODULE_0_react__.Component), _class2.displayName = "Cross", 13245 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__.c, { 13246 x: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 13247 y: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 13248 width: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 13249 height: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 13250 top: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 13251 left: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 13252 className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string 13253 }), _class2.defaultProps = { 13254 x: 0, 13255 y: 0, 13256 top: 0, 13257 left: 0, 13258 width: 0, 13259 height: 0 13260 }, _class = _temp)) || _class; 13261 __webpack_exports__.a = Cross; 13262 }, function(module, exports, __webpack_require__) { 13263 function maxBy(array, iteratee) { 13264 return array && array.length ? baseExtremum(array, baseIteratee(iteratee, 2), baseGt) : void 0; 13265 } 13266 var baseExtremum = __webpack_require__(135), baseGt = __webpack_require__(327), baseIteratee = __webpack_require__(89); 13267 module.exports = maxBy; 13268 }, function(module, __webpack_exports__, __webpack_require__) { 13269 "use strict"; 13270 function _classCallCheck(instance, Constructor) { 13271 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 13272 } 13273 function _possibleConstructorReturn(self, call) { 13274 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 13275 return !call || "object" != typeof call && "function" != typeof call ? self : call; 13276 } 13277 function _inherits(subClass, superClass) { 13278 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 13279 subClass.prototype = Object.create(superClass && superClass.prototype, { 13280 constructor: { 13281 value: subClass, 13282 enumerable: !1, 13283 writable: !0, 13284 configurable: !0 13285 } 13286 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 13287 } 13288 var _class, _class2, _temp2, __WEBPACK_IMPORTED_MODULE_0_lodash_isEqual__ = __webpack_require__(45), __WEBPACK_IMPORTED_MODULE_0_lodash_isEqual___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isEqual__), __WEBPACK_IMPORTED_MODULE_1_lodash_isPlainObject__ = __webpack_require__(925), __WEBPACK_IMPORTED_MODULE_1_lodash_isPlainObject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isPlainObject__), __WEBPACK_IMPORTED_MODULE_2_lodash_isFunction__ = __webpack_require__(8), __WEBPACK_IMPORTED_MODULE_2_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_lodash_isFunction__), __WEBPACK_IMPORTED_MODULE_3_lodash_isNil__ = __webpack_require__(20), __WEBPACK_IMPORTED_MODULE_3_lodash_isNil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_lodash_isNil__), __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__), __WEBPACK_IMPORTED_MODULE_5_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_5_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_prop_types__), __WEBPACK_IMPORTED_MODULE_6_react_smooth__ = __webpack_require__(33), __WEBPACK_IMPORTED_MODULE_6_react_smooth___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_smooth__), __WEBPACK_IMPORTED_MODULE_7_classnames__ = __webpack_require__(3), __WEBPACK_IMPORTED_MODULE_7_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_classnames__), __WEBPACK_IMPORTED_MODULE_8__util_PureRender__ = __webpack_require__(5), __WEBPACK_IMPORTED_MODULE_9__container_Layer__ = __webpack_require__(14), __WEBPACK_IMPORTED_MODULE_10__shape_Sector__ = __webpack_require__(139), __WEBPACK_IMPORTED_MODULE_11__shape_Curve__ = __webpack_require__(71), __WEBPACK_IMPORTED_MODULE_12__component_Text__ = __webpack_require__(61), __WEBPACK_IMPORTED_MODULE_13__component_Label__ = __webpack_require__(44), __WEBPACK_IMPORTED_MODULE_14__component_LabelList__ = __webpack_require__(47), __WEBPACK_IMPORTED_MODULE_15__component_Cell__ = __webpack_require__(88), __WEBPACK_IMPORTED_MODULE_16__util_ReactUtils__ = __webpack_require__(4), __WEBPACK_IMPORTED_MODULE_17__util_PolarUtils__ = __webpack_require__(23), __WEBPACK_IMPORTED_MODULE_18__util_DataUtils__ = __webpack_require__(9), __WEBPACK_IMPORTED_MODULE_19__util_ChartUtils__ = __webpack_require__(16), __WEBPACK_IMPORTED_MODULE_20__util_LogUtils__ = __webpack_require__(312), _extends = Object.assign || function(target) { 13289 for (var i = 1; i < arguments.length; i++) { 13290 var source = arguments[i]; 13291 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 13292 } 13293 return target; 13294 }, _createClass = function() { 13295 function defineProperties(target, props) { 13296 for (var i = 0; i < props.length; i++) { 13297 var descriptor = props[i]; 13298 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 13299 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 13300 } 13301 } 13302 return function(Constructor, protoProps, staticProps) { 13303 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 13304 Constructor; 13305 }; 13306 }(), Pie = Object(__WEBPACK_IMPORTED_MODULE_8__util_PureRender__.a)((_temp2 = _class2 = function(_Component) { 13307 function Pie() { 13308 var _ref, _temp, _this, _ret; 13309 _classCallCheck(this, Pie); 13310 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 13311 return _temp = _this = _possibleConstructorReturn(this, (_ref = Pie.__proto__ || Object.getPrototypeOf(Pie)).call.apply(_ref, [ this ].concat(args))), 13312 _this.state = { 13313 isAnimationFinished: !1, 13314 isAnimationStarted: !1 13315 }, _this.id = Object(__WEBPACK_IMPORTED_MODULE_18__util_DataUtils__.k)("recharts-pie-"), 13316 _this.cachePrevData = function(sectors) { 13317 _this.setState({ 13318 prevSectors: sectors 13319 }); 13320 }, _this.handleAnimationEnd = function() { 13321 _this.setState({ 13322 isAnimationFinished: !0 13323 }); 13324 }, _this.handleAnimationStart = function() { 13325 _this.setState({ 13326 isAnimationStarted: !0 13327 }); 13328 }, _ret = _temp, _possibleConstructorReturn(_this, _ret); 13329 } 13330 return _inherits(Pie, _Component), _createClass(Pie, [ { 13331 key: "componentWillReceiveProps", 13332 value: function(nextProps) { 13333 var _props = this.props, animationId = _props.animationId, sectors = _props.sectors; 13334 nextProps.isAnimationActive !== this.props.isAnimationActive ? this.cachePrevData([]) : nextProps.animationId !== animationId && this.cachePrevData(sectors); 13335 } 13336 }, { 13337 key: "getTextAnchor", 13338 value: function(x, cx) { 13339 return x > cx ? "start" : x < cx ? "end" : "middle"; 13340 } 13341 }, { 13342 key: "isActiveIndex", 13343 value: function(i) { 13344 var activeIndex = this.props.activeIndex; 13345 return Array.isArray(activeIndex) ? -1 !== activeIndex.indexOf(i) : i === activeIndex; 13346 } 13347 }, { 13348 key: "renderLabelLineItem", 13349 value: function(option, props) { 13350 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.isValidElement(option) ? __WEBPACK_IMPORTED_MODULE_4_react___default.a.cloneElement(option, props) : __WEBPACK_IMPORTED_MODULE_2_lodash_isFunction___default()(option) ? option(props) : __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11__shape_Curve__.a, _extends({}, props, { 13351 type: "linear", 13352 className: "recharts-pie-label-line" 13353 })); 13354 } 13355 }, { 13356 key: "renderLabelItem", 13357 value: function(option, props, value) { 13358 if (__WEBPACK_IMPORTED_MODULE_4_react___default.a.isValidElement(option)) return __WEBPACK_IMPORTED_MODULE_4_react___default.a.cloneElement(option, props); 13359 var label = value; 13360 return __WEBPACK_IMPORTED_MODULE_2_lodash_isFunction___default()(option) && (label = option(props), 13361 __WEBPACK_IMPORTED_MODULE_4_react___default.a.isValidElement(label)) ? label : __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_12__component_Text__.a, _extends({}, props, { 13362 alignmentBaseline: "middle", 13363 className: "recharts-pie-label-text" 13364 }), label); 13365 } 13366 }, { 13367 key: "renderLabels", 13368 value: function(sectors) { 13369 var _this2 = this; 13370 if (this.props.isAnimationActive && !this.state.isAnimationFinished) return null; 13371 var _props2 = this.props, label = _props2.label, labelLine = _props2.labelLine, dataKey = _props2.dataKey, valueKey = _props2.valueKey, pieProps = Object(__WEBPACK_IMPORTED_MODULE_16__util_ReactUtils__.k)(this.props), customLabelProps = Object(__WEBPACK_IMPORTED_MODULE_16__util_ReactUtils__.k)(label), customLabelLineProps = Object(__WEBPACK_IMPORTED_MODULE_16__util_ReactUtils__.k)(labelLine), offsetRadius = label && label.offsetRadius || 20, labels = sectors.map(function(entry, i) { 13372 var midAngle = (entry.startAngle + entry.endAngle) / 2, endPoint = Object(__WEBPACK_IMPORTED_MODULE_17__util_PolarUtils__.e)(entry.cx, entry.cy, entry.outerRadius + offsetRadius, midAngle), labelProps = _extends({}, pieProps, entry, { 13373 stroke: "none" 13374 }, customLabelProps, { 13375 index: i, 13376 textAnchor: _this2.getTextAnchor(endPoint.x, entry.cx) 13377 }, endPoint), lineProps = _extends({}, pieProps, entry, { 13378 fill: "none", 13379 stroke: entry.fill 13380 }, customLabelLineProps, { 13381 index: i, 13382 points: [ Object(__WEBPACK_IMPORTED_MODULE_17__util_PolarUtils__.e)(entry.cx, entry.cy, entry.outerRadius, midAngle), endPoint ] 13383 }), realDataKey = dataKey; 13384 return __WEBPACK_IMPORTED_MODULE_3_lodash_isNil___default()(dataKey) && __WEBPACK_IMPORTED_MODULE_3_lodash_isNil___default()(valueKey) ? realDataKey = "value" : __WEBPACK_IMPORTED_MODULE_3_lodash_isNil___default()(dataKey) && (realDataKey = valueKey), 13385 __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__container_Layer__.a, { 13386 key: "label-" + i 13387 }, labelLine && _this2.renderLabelLineItem(labelLine, lineProps), _this2.renderLabelItem(label, labelProps, Object(__WEBPACK_IMPORTED_MODULE_19__util_ChartUtils__.w)(entry, realDataKey))); 13388 }); 13389 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__container_Layer__.a, { 13390 className: "recharts-pie-labels" 13391 }, labels); 13392 } 13393 }, { 13394 key: "renderSectorItem", 13395 value: function(option, props) { 13396 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.isValidElement(option) ? __WEBPACK_IMPORTED_MODULE_4_react___default.a.cloneElement(option, props) : __WEBPACK_IMPORTED_MODULE_2_lodash_isFunction___default()(option) ? option(props) : __WEBPACK_IMPORTED_MODULE_1_lodash_isPlainObject___default()(option) ? __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10__shape_Sector__.a, _extends({}, props, option)) : __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10__shape_Sector__.a, props); 13397 } 13398 }, { 13399 key: "renderSectorsStatically", 13400 value: function(sectors) { 13401 var _this3 = this, activeShape = this.props.activeShape; 13402 return sectors.map(function(entry, i) { 13403 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__container_Layer__.a, _extends({ 13404 className: "recharts-pie-sector" 13405 }, Object(__WEBPACK_IMPORTED_MODULE_16__util_ReactUtils__.f)(_this3.props, entry, i), { 13406 key: "sector-" + i 13407 }), _this3.renderSectorItem(_this3.isActiveIndex(i) ? activeShape : null, entry)); 13408 }); 13409 } 13410 }, { 13411 key: "renderSectorsWithAnimation", 13412 value: function() { 13413 var _this4 = this, _props3 = this.props, sectors = _props3.sectors, isAnimationActive = _props3.isAnimationActive, animationBegin = _props3.animationBegin, animationDuration = _props3.animationDuration, animationEasing = _props3.animationEasing, animationId = _props3.animationId, prevSectors = this.state.prevSectors; 13414 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6_react_smooth___default.a, { 13415 begin: animationBegin, 13416 duration: animationDuration, 13417 isActive: isAnimationActive, 13418 easing: animationEasing, 13419 from: { 13420 t: 0 13421 }, 13422 to: { 13423 t: 1 13424 }, 13425 key: "pie-" + animationId, 13426 onAnimationEnd: this.handleAnimationEnd 13427 }, function(_ref2) { 13428 var t = _ref2.t, stepData = [], first = sectors && sectors[0], curAngle = first.startAngle; 13429 return sectors.forEach(function(entry, index) { 13430 var prev = prevSectors && prevSectors[index], paddingAngle = index > 0 ? entry.paddingAngle : 0; 13431 if (prev) { 13432 var angleIp = Object(__WEBPACK_IMPORTED_MODULE_18__util_DataUtils__.f)(prev.endAngle - prev.startAngle, entry.endAngle - entry.startAngle), latest = _extends({}, entry, { 13433 startAngle: curAngle + paddingAngle, 13434 endAngle: curAngle + angleIp(t) + paddingAngle 13435 }); 13436 stepData.push(latest), curAngle = latest.endAngle; 13437 } else { 13438 var endAngle = entry.endAngle, startAngle = entry.startAngle, interpolatorAngle = Object(__WEBPACK_IMPORTED_MODULE_18__util_DataUtils__.f)(0, endAngle - startAngle), deltaAngle = interpolatorAngle(t), _latest = _extends({}, entry, { 13439 startAngle: curAngle + paddingAngle, 13440 endAngle: curAngle + deltaAngle + paddingAngle 13441 }); 13442 stepData.push(_latest), curAngle = _latest.endAngle; 13443 } 13444 }), __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__container_Layer__.a, null, _this4.renderSectorsStatically(stepData)); 13445 }); 13446 } 13447 }, { 13448 key: "renderSectors", 13449 value: function() { 13450 var _props4 = this.props, sectors = _props4.sectors, isAnimationActive = _props4.isAnimationActive, prevSectors = this.state.prevSectors; 13451 return !(isAnimationActive && sectors && sectors.length) || prevSectors && __WEBPACK_IMPORTED_MODULE_0_lodash_isEqual___default()(prevSectors, sectors) ? this.renderSectorsStatically(sectors) : this.renderSectorsWithAnimation(); 13452 } 13453 }, { 13454 key: "render", 13455 value: function() { 13456 var _props5 = this.props, hide = _props5.hide, sectors = _props5.sectors, className = _props5.className, label = _props5.label, cx = _props5.cx, cy = _props5.cy, innerRadius = _props5.innerRadius, outerRadius = _props5.outerRadius, isAnimationActive = _props5.isAnimationActive, id = _props5.id; 13457 if (hide || !sectors || !sectors.length || !Object(__WEBPACK_IMPORTED_MODULE_18__util_DataUtils__.h)(cx) || !Object(__WEBPACK_IMPORTED_MODULE_18__util_DataUtils__.h)(cy) || !Object(__WEBPACK_IMPORTED_MODULE_18__util_DataUtils__.h)(innerRadius) || !Object(__WEBPACK_IMPORTED_MODULE_18__util_DataUtils__.h)(outerRadius)) return null; 13458 var isAnimationFinished = this.state.isAnimationFinished, layerClass = __WEBPACK_IMPORTED_MODULE_7_classnames___default()("recharts-pie", className); 13459 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__container_Layer__.a, { 13460 className: layerClass 13461 }, __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("g", { 13462 clipPath: "url(#" + (__WEBPACK_IMPORTED_MODULE_3_lodash_isNil___default()(id) ? this.id : id) + ")" 13463 }, this.renderSectors()), label && this.renderLabels(sectors), __WEBPACK_IMPORTED_MODULE_13__component_Label__.a.renderCallByParent(this.props, null, !1), (!isAnimationActive || isAnimationFinished) && __WEBPACK_IMPORTED_MODULE_14__component_LabelList__.a.renderCallByParent(this.props, sectors, !1)); 13464 } 13465 } ]), Pie; 13466 }(__WEBPACK_IMPORTED_MODULE_4_react__.Component), _class2.displayName = "Pie", _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_16__util_ReactUtils__.c, __WEBPACK_IMPORTED_MODULE_16__util_ReactUtils__.a, { 13467 className: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, 13468 animationId: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 13469 cx: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string ]), 13470 cy: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string ]), 13471 startAngle: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 13472 endAngle: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 13473 paddingAngle: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 13474 innerRadius: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string ]), 13475 outerRadius: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string ]), 13476 cornerRadius: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string ]), 13477 dataKey: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func ]).isRequired, 13478 nameKey: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func ]), 13479 valueKey: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func ]), 13480 data: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object), 13481 minAngle: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 13482 legendType: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOf(__WEBPACK_IMPORTED_MODULE_16__util_ReactUtils__.b), 13483 maxRadius: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 13484 sectors: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object), 13485 hide: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool, 13486 labelLine: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.element, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool ]), 13487 label: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.shape({ 13488 offsetRadius: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number 13489 }), __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.element, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool ]), 13490 activeShape: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.element ]), 13491 activeIndex: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number) ]), 13492 isAnimationActive: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool, 13493 animationBegin: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 13494 animationDuration: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 13495 animationEasing: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOf([ "ease", "ease-in", "ease-out", "ease-in-out", "spring", "linear" ]), 13496 id: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string 13497 }), _class2.defaultProps = { 13498 stroke: "#fff", 13499 fill: "#808080", 13500 legendType: "rect", 13501 cx: "50%", 13502 cy: "50%", 13503 startAngle: 0, 13504 endAngle: 360, 13505 innerRadius: 0, 13506 outerRadius: "80%", 13507 paddingAngle: 0, 13508 labelLine: !0, 13509 hide: !1, 13510 minAngle: 0, 13511 isAnimationActive: !Object(__WEBPACK_IMPORTED_MODULE_16__util_ReactUtils__.n)(), 13512 animationBegin: 400, 13513 animationDuration: 1500, 13514 animationEasing: "ease", 13515 nameKey: "name" 13516 }, _class2.parseDeltaAngle = function(_ref3) { 13517 var startAngle = _ref3.startAngle, endAngle = _ref3.endAngle; 13518 return Object(__WEBPACK_IMPORTED_MODULE_18__util_DataUtils__.j)(endAngle - startAngle) * Math.min(Math.abs(endAngle - startAngle), 360); 13519 }, _class2.getRealPieData = function(item) { 13520 var _item$props = item.props, data = _item$props.data, children = _item$props.children, presentationProps = Object(__WEBPACK_IMPORTED_MODULE_16__util_ReactUtils__.k)(item.props), cells = Object(__WEBPACK_IMPORTED_MODULE_16__util_ReactUtils__.h)(children, __WEBPACK_IMPORTED_MODULE_15__component_Cell__.a); 13521 return data && data.length ? data.map(function(entry, index) { 13522 return _extends({ 13523 payload: entry 13524 }, presentationProps, entry, cells && cells[index] && cells[index].props); 13525 }) : cells && cells.length ? cells.map(function(cell) { 13526 return _extends({}, presentationProps, cell.props); 13527 }) : []; 13528 }, _class2.parseCoordinateOfPie = function(item, offset) { 13529 var top = offset.top, left = offset.left, width = offset.width, height = offset.height, maxPieRadius = Object(__WEBPACK_IMPORTED_MODULE_17__util_PolarUtils__.c)(width, height); 13530 return { 13531 cx: left + Object(__WEBPACK_IMPORTED_MODULE_18__util_DataUtils__.d)(item.props.cx, width, width / 2), 13532 cy: top + Object(__WEBPACK_IMPORTED_MODULE_18__util_DataUtils__.d)(item.props.cy, height, height / 2), 13533 innerRadius: Object(__WEBPACK_IMPORTED_MODULE_18__util_DataUtils__.d)(item.props.innerRadius, maxPieRadius, 0), 13534 outerRadius: Object(__WEBPACK_IMPORTED_MODULE_18__util_DataUtils__.d)(item.props.outerRadius, maxPieRadius, .8 * maxPieRadius), 13535 maxRadius: item.props.maxRadius || Math.sqrt(width * width + height * height) / 2 13536 }; 13537 }, _class2.getComposedData = function(_ref4) { 13538 var item = _ref4.item, offset = _ref4.offset, onItemMouseLeave = _ref4.onItemMouseLeave, onItemMouseEnter = _ref4.onItemMouseEnter, pieData = Pie.getRealPieData(item); 13539 if (!pieData || !pieData.length) return []; 13540 var _item$props2 = item.props, cornerRadius = _item$props2.cornerRadius, startAngle = _item$props2.startAngle, endAngle = _item$props2.endAngle, paddingAngle = _item$props2.paddingAngle, dataKey = _item$props2.dataKey, nameKey = _item$props2.nameKey, valueKey = _item$props2.valueKey, minAngle = Math.abs(item.props.minAngle), coordinate = Pie.parseCoordinateOfPie(item, offset), len = pieData.length, deltaAngle = Pie.parseDeltaAngle({ 13541 startAngle: startAngle, 13542 endAngle: endAngle 13543 }), absDeltaAngle = Math.abs(deltaAngle), totalPadingAngle = (absDeltaAngle >= 360 ? len : len - 1) * paddingAngle, realTotalAngle = absDeltaAngle - len * minAngle - totalPadingAngle, realDataKey = dataKey; 13544 __WEBPACK_IMPORTED_MODULE_3_lodash_isNil___default()(dataKey) && __WEBPACK_IMPORTED_MODULE_3_lodash_isNil___default()(valueKey) ? (Object(__WEBPACK_IMPORTED_MODULE_20__util_LogUtils__.a)(!1, 'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'), 13545 realDataKey = "value") : __WEBPACK_IMPORTED_MODULE_3_lodash_isNil___default()(dataKey) && (Object(__WEBPACK_IMPORTED_MODULE_20__util_LogUtils__.a)(!1, 'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'), 13546 realDataKey = valueKey); 13547 var sum = pieData.reduce(function(result, entry) { 13548 var val = Object(__WEBPACK_IMPORTED_MODULE_19__util_ChartUtils__.w)(entry, realDataKey, 0); 13549 return result + (Object(__WEBPACK_IMPORTED_MODULE_18__util_DataUtils__.h)(val) ? val : 0); 13550 }, 0), sectors = void 0; 13551 if (sum > 0) { 13552 var prev = void 0; 13553 sectors = pieData.map(function(entry, i) { 13554 var val = Object(__WEBPACK_IMPORTED_MODULE_19__util_ChartUtils__.w)(entry, realDataKey, 0), name = Object(__WEBPACK_IMPORTED_MODULE_19__util_ChartUtils__.w)(entry, nameKey, i), percent = (Object(__WEBPACK_IMPORTED_MODULE_18__util_DataUtils__.h)(val) ? val : 0) / sum, tempStartAngle = void 0; 13555 tempStartAngle = i ? prev.endAngle + Object(__WEBPACK_IMPORTED_MODULE_18__util_DataUtils__.j)(deltaAngle) * paddingAngle : startAngle; 13556 var tempEndAngle = tempStartAngle + Object(__WEBPACK_IMPORTED_MODULE_18__util_DataUtils__.j)(deltaAngle) * (minAngle + percent * realTotalAngle), midAngle = (tempStartAngle + tempEndAngle) / 2, middleRadius = (coordinate.innerRadius + coordinate.outerRadius) / 2, tooltipPayload = [ { 13557 name: name, 13558 value: val, 13559 payload: entry 13560 } ], tooltipPosition = Object(__WEBPACK_IMPORTED_MODULE_17__util_PolarUtils__.e)(coordinate.cx, coordinate.cy, middleRadius, midAngle); 13561 return prev = _extends({ 13562 percent: percent, 13563 cornerRadius: cornerRadius, 13564 name: name, 13565 tooltipPayload: tooltipPayload, 13566 midAngle: midAngle, 13567 middleRadius: middleRadius, 13568 tooltipPosition: tooltipPosition 13569 }, entry, coordinate, { 13570 value: Object(__WEBPACK_IMPORTED_MODULE_19__util_ChartUtils__.w)(entry, realDataKey), 13571 startAngle: tempStartAngle, 13572 endAngle: tempEndAngle, 13573 payload: entry, 13574 paddingAngle: Object(__WEBPACK_IMPORTED_MODULE_18__util_DataUtils__.j)(deltaAngle) * paddingAngle 13575 }); 13576 }); 13577 } 13578 return _extends({}, coordinate, { 13579 sectors: sectors, 13580 data: pieData, 13581 onMouseLeave: onItemMouseLeave, 13582 onMouseEnter: onItemMouseEnter 13583 }); 13584 }, _class = _temp2)) || _class; 13585 __webpack_exports__.a = Pie; 13586 }, function(module, __webpack_exports__, __webpack_require__) { 13587 "use strict"; 13588 function _classCallCheck(instance, Constructor) { 13589 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 13590 } 13591 function _possibleConstructorReturn(self, call) { 13592 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 13593 return !call || "object" != typeof call && "function" != typeof call ? self : call; 13594 } 13595 function _inherits(subClass, superClass) { 13596 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 13597 subClass.prototype = Object.create(superClass && superClass.prototype, { 13598 constructor: { 13599 value: subClass, 13600 enumerable: !1, 13601 writable: !0, 13602 configurable: !0 13603 } 13604 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 13605 } 13606 var _class, _class2, _temp2, __WEBPACK_IMPORTED_MODULE_0_lodash_isEqual__ = __webpack_require__(45), __WEBPACK_IMPORTED_MODULE_0_lodash_isEqual___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isEqual__), __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction__ = __webpack_require__(8), __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isFunction__), __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__), __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__), __WEBPACK_IMPORTED_MODULE_4_react_smooth__ = __webpack_require__(33), __WEBPACK_IMPORTED_MODULE_4_react_smooth___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react_smooth__), __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(3), __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__), __WEBPACK_IMPORTED_MODULE_6__util_DataUtils__ = __webpack_require__(9), __WEBPACK_IMPORTED_MODULE_7__util_PureRender__ = __webpack_require__(5), __WEBPACK_IMPORTED_MODULE_8__util_ReactUtils__ = __webpack_require__(4), __WEBPACK_IMPORTED_MODULE_9__util_PolarUtils__ = __webpack_require__(23), __WEBPACK_IMPORTED_MODULE_10__util_ChartUtils__ = __webpack_require__(16), __WEBPACK_IMPORTED_MODULE_11__shape_Polygon__ = __webpack_require__(214), __WEBPACK_IMPORTED_MODULE_12__shape_Dot__ = __webpack_require__(63), __WEBPACK_IMPORTED_MODULE_13__container_Layer__ = __webpack_require__(14), __WEBPACK_IMPORTED_MODULE_14__component_LabelList__ = __webpack_require__(47), _extends = Object.assign || function(target) { 13607 for (var i = 1; i < arguments.length; i++) { 13608 var source = arguments[i]; 13609 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 13610 } 13611 return target; 13612 }, _createClass = function() { 13613 function defineProperties(target, props) { 13614 for (var i = 0; i < props.length; i++) { 13615 var descriptor = props[i]; 13616 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 13617 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 13618 } 13619 } 13620 return function(Constructor, protoProps, staticProps) { 13621 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 13622 Constructor; 13623 }; 13624 }(), Radar = Object(__WEBPACK_IMPORTED_MODULE_7__util_PureRender__.a)((_temp2 = _class2 = function(_Component) { 13625 function Radar() { 13626 var _ref, _temp, _this, _ret; 13627 _classCallCheck(this, Radar); 13628 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 13629 return _temp = _this = _possibleConstructorReturn(this, (_ref = Radar.__proto__ || Object.getPrototypeOf(Radar)).call.apply(_ref, [ this ].concat(args))), 13630 _this.state = { 13631 isAnimationFinished: !1 13632 }, _this.cachePrevData = function(points) { 13633 _this.setState({ 13634 prevPoints: points 13635 }); 13636 }, _this.handleAnimationEnd = function() { 13637 _this.setState({ 13638 isAnimationFinished: !0 13639 }); 13640 }, _this.handleAnimationStart = function() { 13641 _this.setState({ 13642 isAnimationFinished: !1 13643 }); 13644 }, _this.handleMouseEnter = function(e) { 13645 var onMouseEnter = _this.props.onMouseEnter; 13646 onMouseEnter && onMouseEnter(_this.props, e); 13647 }, _this.handleMouseLeave = function(e) { 13648 var onMouseLeave = _this.props.onMouseLeave; 13649 onMouseLeave && onMouseLeave(_this.props, e); 13650 }, _ret = _temp, _possibleConstructorReturn(_this, _ret); 13651 } 13652 return _inherits(Radar, _Component), _createClass(Radar, [ { 13653 key: "componentWillReceiveProps", 13654 value: function(nextProps) { 13655 var _props = this.props, animationId = _props.animationId, points = _props.points; 13656 nextProps.animationId !== animationId && this.cachePrevData(points); 13657 } 13658 }, { 13659 key: "renderDotItem", 13660 value: function(option, props) { 13661 return __WEBPACK_IMPORTED_MODULE_2_react___default.a.isValidElement(option) ? __WEBPACK_IMPORTED_MODULE_2_react___default.a.cloneElement(option, props) : __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(option) ? option(props) : __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_12__shape_Dot__.a, _extends({}, props, { 13662 className: "recharts-radar-dot" 13663 })); 13664 } 13665 }, { 13666 key: "renderDots", 13667 value: function(points) { 13668 var _this2 = this, _props2 = this.props, dot = _props2.dot, dataKey = _props2.dataKey, baseProps = Object(__WEBPACK_IMPORTED_MODULE_8__util_ReactUtils__.k)(this.props), customDotProps = Object(__WEBPACK_IMPORTED_MODULE_8__util_ReactUtils__.k)(dot), dots = points.map(function(entry, i) { 13669 var dotProps = _extends({ 13670 key: "dot-" + i, 13671 r: 3 13672 }, baseProps, customDotProps, { 13673 dataKey: dataKey, 13674 cx: entry.x, 13675 cy: entry.y, 13676 index: i, 13677 playload: entry 13678 }); 13679 return _this2.renderDotItem(dot, dotProps); 13680 }); 13681 return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_13__container_Layer__.a, { 13682 className: "recharts-radar-dots" 13683 }, dots); 13684 } 13685 }, { 13686 key: "renderPolygonStatically", 13687 value: function(points) { 13688 var _props3 = this.props, shape = _props3.shape, dot = _props3.dot, radar = void 0; 13689 return radar = __WEBPACK_IMPORTED_MODULE_2_react___default.a.isValidElement(shape) ? __WEBPACK_IMPORTED_MODULE_2_react___default.a.cloneElement(shape, _extends({}, this.props, { 13690 points: points 13691 })) : __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(shape) ? shape(_extends({}, this.props, { 13692 points: points 13693 })) : __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11__shape_Polygon__.a, _extends({}, Object(__WEBPACK_IMPORTED_MODULE_8__util_ReactUtils__.e)(this.props), { 13694 onMouseEnter: this.handleMouseEnter, 13695 onMouseLeave: this.handleMouseLeave 13696 }, Object(__WEBPACK_IMPORTED_MODULE_8__util_ReactUtils__.k)(this.props), { 13697 points: points 13698 })), __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_13__container_Layer__.a, { 13699 className: "recharts-radar-polygon" 13700 }, radar, dot ? this.renderDots(points) : null); 13701 } 13702 }, { 13703 key: "renderPolygonWithAnimation", 13704 value: function() { 13705 var _this3 = this, _props4 = this.props, points = _props4.points, isAnimationActive = _props4.isAnimationActive, animationBegin = _props4.animationBegin, animationDuration = _props4.animationDuration, animationEasing = _props4.animationEasing, animationId = _props4.animationId, prevPoints = this.state.prevPoints; 13706 return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4_react_smooth___default.a, { 13707 begin: animationBegin, 13708 duration: animationDuration, 13709 isActive: isAnimationActive, 13710 easing: animationEasing, 13711 from: { 13712 t: 0 13713 }, 13714 to: { 13715 t: 1 13716 }, 13717 key: "radar-" + animationId, 13718 onAnimationEnd: this.handleAnimationEnd, 13719 onAnimationStart: this.handleAnimationStart 13720 }, function(_ref2) { 13721 var t = _ref2.t, stepData = points.map(function(entry, index) { 13722 var prev = prevPoints && prevPoints[index]; 13723 if (prev) { 13724 var _interpolatorX = Object(__WEBPACK_IMPORTED_MODULE_6__util_DataUtils__.f)(prev.x, entry.x), _interpolatorY = Object(__WEBPACK_IMPORTED_MODULE_6__util_DataUtils__.f)(prev.y, entry.y); 13725 return _extends({}, entry, { 13726 x: _interpolatorX(t), 13727 y: _interpolatorY(t) 13728 }); 13729 } 13730 var interpolatorX = Object(__WEBPACK_IMPORTED_MODULE_6__util_DataUtils__.f)(entry.cx, entry.x), interpolatorY = Object(__WEBPACK_IMPORTED_MODULE_6__util_DataUtils__.f)(entry.cy, entry.y); 13731 return _extends({}, entry, { 13732 x: interpolatorX(t), 13733 y: interpolatorY(t) 13734 }); 13735 }); 13736 return _this3.renderPolygonStatically(stepData); 13737 }); 13738 } 13739 }, { 13740 key: "renderPolygon", 13741 value: function() { 13742 var _props5 = this.props, points = _props5.points, isAnimationActive = _props5.isAnimationActive, prevPoints = this.state.prevPoints; 13743 return !(isAnimationActive && points && points.length) || prevPoints && __WEBPACK_IMPORTED_MODULE_0_lodash_isEqual___default()(prevPoints, points) ? this.renderPolygonStatically(points) : this.renderPolygonWithAnimation(); 13744 } 13745 }, { 13746 key: "render", 13747 value: function() { 13748 var _props6 = this.props, hide = _props6.hide, className = _props6.className, points = _props6.points, isAnimationActive = _props6.isAnimationActive; 13749 if (hide || !points || !points.length) return null; 13750 var isAnimationFinished = this.state.isAnimationFinished, layerClass = __WEBPACK_IMPORTED_MODULE_5_classnames___default()("recharts-radar", className); 13751 return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_13__container_Layer__.a, { 13752 className: layerClass 13753 }, this.renderPolygon(), (!isAnimationActive || isAnimationFinished) && __WEBPACK_IMPORTED_MODULE_14__component_LabelList__.a.renderCallByParent(this.props, points)); 13754 } 13755 } ]), Radar; 13756 }(__WEBPACK_IMPORTED_MODULE_2_react__.Component), _class2.displayName = "Radar", 13757 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_8__util_ReactUtils__.c, { 13758 className: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string, 13759 dataKey: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func ]).isRequired, 13760 angleAxisId: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number ]), 13761 radiusAxisId: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number ]), 13762 points: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.shape({ 13763 x: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 13764 y: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 13765 cx: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 13766 cy: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 13767 angle: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 13768 radius: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 13769 value: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 13770 payload: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object 13771 })), 13772 shape: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.element, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func ]), 13773 activeDot: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.element, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool ]), 13774 dot: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.element, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool ]), 13775 label: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.element, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool ]), 13776 legendType: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf(__WEBPACK_IMPORTED_MODULE_8__util_ReactUtils__.b), 13777 hide: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool, 13778 onMouseEnter: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, 13779 onMouseLeave: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, 13780 onClick: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, 13781 isAnimationActive: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool, 13782 animationId: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 13783 animationBegin: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 13784 animationDuration: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 13785 animationEasing: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf([ "ease", "ease-in", "ease-out", "ease-in-out", "linear" ]) 13786 }), _class2.defaultProps = { 13787 angleAxisId: 0, 13788 radiusAxisId: 0, 13789 hide: !1, 13790 activeDot: !0, 13791 dot: !1, 13792 legendType: "rect", 13793 isAnimationActive: !Object(__WEBPACK_IMPORTED_MODULE_8__util_ReactUtils__.n)(), 13794 animationBegin: 0, 13795 animationDuration: 1500, 13796 animationEasing: "ease" 13797 }, _class2.getComposedData = function(_ref3) { 13798 var radiusAxis = _ref3.radiusAxis, angleAxis = _ref3.angleAxis, displayedData = _ref3.displayedData, dataKey = _ref3.dataKey, bandSize = _ref3.bandSize, cx = angleAxis.cx, cy = angleAxis.cy; 13799 return { 13800 points: displayedData.map(function(entry, i) { 13801 var name = Object(__WEBPACK_IMPORTED_MODULE_10__util_ChartUtils__.w)(entry, angleAxis.dataKey, i), value = Object(__WEBPACK_IMPORTED_MODULE_10__util_ChartUtils__.w)(entry, dataKey, 0), angle = angleAxis.scale(name) + (bandSize || 0), radius = radiusAxis.scale(value); 13802 return _extends({}, Object(__WEBPACK_IMPORTED_MODULE_9__util_PolarUtils__.e)(cx, cy, radius, angle), { 13803 name: name, 13804 value: value, 13805 cx: cx, 13806 cy: cy, 13807 radius: radius, 13808 angle: angle, 13809 payload: entry 13810 }); 13811 }) 13812 }; 13813 }, _class = _temp2)) || _class; 13814 __webpack_exports__.a = Radar; 13815 }, function(module, __webpack_exports__, __webpack_require__) { 13816 "use strict"; 13817 function _objectWithoutProperties(obj, keys) { 13818 var target = {}; 13819 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 13820 return target; 13821 } 13822 function _classCallCheck(instance, Constructor) { 13823 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 13824 } 13825 function _possibleConstructorReturn(self, call) { 13826 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 13827 return !call || "object" != typeof call && "function" != typeof call ? self : call; 13828 } 13829 function _inherits(subClass, superClass) { 13830 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 13831 subClass.prototype = Object.create(superClass && superClass.prototype, { 13832 constructor: { 13833 value: subClass, 13834 enumerable: !1, 13835 writable: !0, 13836 configurable: !0 13837 } 13838 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 13839 } 13840 var _class, _class2, _temp2, __WEBPACK_IMPORTED_MODULE_0_lodash_isEqual__ = __webpack_require__(45), __WEBPACK_IMPORTED_MODULE_0_lodash_isEqual___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isEqual__), __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction__ = __webpack_require__(8), __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isFunction__), __WEBPACK_IMPORTED_MODULE_2_lodash_isArray__ = __webpack_require__(13), __WEBPACK_IMPORTED_MODULE_2_lodash_isArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_lodash_isArray__), __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__), __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__), __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(3), __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__), __WEBPACK_IMPORTED_MODULE_6_react_smooth__ = __webpack_require__(33), __WEBPACK_IMPORTED_MODULE_6_react_smooth___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_smooth__), __WEBPACK_IMPORTED_MODULE_7__shape_Sector__ = __webpack_require__(139), __WEBPACK_IMPORTED_MODULE_8__container_Layer__ = __webpack_require__(14), __WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__ = __webpack_require__(4), __WEBPACK_IMPORTED_MODULE_10__util_PureRender__ = __webpack_require__(5), __WEBPACK_IMPORTED_MODULE_11__component_LabelList__ = __webpack_require__(47), __WEBPACK_IMPORTED_MODULE_12__component_Cell__ = __webpack_require__(88), __WEBPACK_IMPORTED_MODULE_13__util_DataUtils__ = __webpack_require__(9), __WEBPACK_IMPORTED_MODULE_14__util_ChartUtils__ = __webpack_require__(16), _extends = Object.assign || function(target) { 13841 for (var i = 1; i < arguments.length; i++) { 13842 var source = arguments[i]; 13843 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 13844 } 13845 return target; 13846 }, _createClass = function() { 13847 function defineProperties(target, props) { 13848 for (var i = 0; i < props.length; i++) { 13849 var descriptor = props[i]; 13850 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 13851 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 13852 } 13853 } 13854 return function(Constructor, protoProps, staticProps) { 13855 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 13856 Constructor; 13857 }; 13858 }(), RadialBar = Object(__WEBPACK_IMPORTED_MODULE_10__util_PureRender__.a)((_temp2 = _class2 = function(_Component) { 13859 function RadialBar() { 13860 var _ref, _temp, _this, _ret; 13861 _classCallCheck(this, RadialBar); 13862 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 13863 return _temp = _this = _possibleConstructorReturn(this, (_ref = RadialBar.__proto__ || Object.getPrototypeOf(RadialBar)).call.apply(_ref, [ this ].concat(args))), 13864 _this.state = { 13865 isAnimationFinished: !1 13866 }, _this.cachePrevData = function(data) { 13867 _this.setState({ 13868 prevData: data 13869 }); 13870 }, _this.handleAnimationEnd = function() { 13871 _this.setState({ 13872 isAnimationFinished: !0 13873 }); 13874 }, _this.handleAnimationStart = function() { 13875 _this.setState({ 13876 isAnimationFinished: !1 13877 }); 13878 }, _ret = _temp, _possibleConstructorReturn(_this, _ret); 13879 } 13880 return _inherits(RadialBar, _Component), _createClass(RadialBar, [ { 13881 key: "componentWillReceiveProps", 13882 value: function(nextProps) { 13883 var _props = this.props, animationId = _props.animationId, data = _props.data; 13884 nextProps.animationId !== animationId && this.cachePrevData(data); 13885 } 13886 }, { 13887 key: "getDeltaAngle", 13888 value: function() { 13889 var _props2 = this.props, startAngle = _props2.startAngle, endAngle = _props2.endAngle; 13890 return Object(__WEBPACK_IMPORTED_MODULE_13__util_DataUtils__.j)(endAngle - startAngle) * Math.min(Math.abs(endAngle - startAngle), 360); 13891 } 13892 }, { 13893 key: "renderSectorShape", 13894 value: function(shape, props) { 13895 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.isValidElement(shape) ? __WEBPACK_IMPORTED_MODULE_3_react___default.a.cloneElement(shape, props) : __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(shape) ? shape(props) : __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__shape_Sector__.a, props); 13896 } 13897 }, { 13898 key: "renderSectorsStatically", 13899 value: function(sectors) { 13900 var _this2 = this, _props3 = this.props, shape = _props3.shape, activeShape = _props3.activeShape, activeIndex = _props3.activeIndex, cornerRadius = _props3.cornerRadius, others = _objectWithoutProperties(_props3, [ "shape", "activeShape", "activeIndex", "cornerRadius" ]), baseProps = Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.k)(others); 13901 return sectors.map(function(entry, i) { 13902 var props = _extends({}, baseProps, { 13903 cornerRadius: cornerRadius 13904 }, entry, Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.f)(_this2.props, entry, i), { 13905 key: "sector-" + i, 13906 className: "recharts-radial-bar-sector" 13907 }); 13908 return _this2.renderSectorShape(i === activeIndex ? activeShape : shape, props); 13909 }); 13910 } 13911 }, { 13912 key: "renderSectorsWithAnimation", 13913 value: function() { 13914 var _this3 = this, _props4 = this.props, data = _props4.data, isAnimationActive = _props4.isAnimationActive, animationBegin = _props4.animationBegin, animationDuration = _props4.animationDuration, animationEasing = _props4.animationEasing, animationId = _props4.animationId, prevData = this.state.prevData; 13915 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6_react_smooth___default.a, { 13916 begin: animationBegin, 13917 duration: animationDuration, 13918 isActive: isAnimationActive, 13919 easing: animationEasing, 13920 from: { 13921 t: 0 13922 }, 13923 to: { 13924 t: 1 13925 }, 13926 key: "radialBar-" + animationId, 13927 onAnimationStart: this.handleAnimationStart, 13928 onAnimationEnd: this.handleAnimationEnd 13929 }, function(_ref2) { 13930 var t = _ref2.t, stepData = data.map(function(entry, index) { 13931 var prev = prevData && prevData[index]; 13932 if (prev) { 13933 var interpolatorStartAngle = Object(__WEBPACK_IMPORTED_MODULE_13__util_DataUtils__.f)(prev.startAngle, entry.startAngle), interpolatorEndAngle = Object(__WEBPACK_IMPORTED_MODULE_13__util_DataUtils__.f)(prev.endAngle, entry.endAngle); 13934 return _extends({}, entry, { 13935 startAngle: interpolatorStartAngle(t), 13936 endAngle: interpolatorEndAngle(t) 13937 }); 13938 } 13939 var endAngle = entry.endAngle, startAngle = entry.startAngle, interpolator = Object(__WEBPACK_IMPORTED_MODULE_13__util_DataUtils__.f)(startAngle, endAngle); 13940 return _extends({}, entry, { 13941 endAngle: interpolator(t) 13942 }); 13943 }); 13944 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, null, _this3.renderSectorsStatically(stepData)); 13945 }); 13946 } 13947 }, { 13948 key: "renderSectors", 13949 value: function() { 13950 var _props5 = this.props, data = _props5.data, isAnimationActive = _props5.isAnimationActive, prevData = this.state.prevData; 13951 return !(isAnimationActive && data && data.length) || prevData && __WEBPACK_IMPORTED_MODULE_0_lodash_isEqual___default()(prevData, data) ? this.renderSectorsStatically(data) : this.renderSectorsWithAnimation(); 13952 } 13953 }, { 13954 key: "renderBackground", 13955 value: function(sectors) { 13956 var _this4 = this, cornerRadius = this.props.cornerRadius, backgroundProps = Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.k)(this.props.background); 13957 return sectors.map(function(entry, i) { 13958 var background = (entry.value, entry.background), rest = _objectWithoutProperties(entry, [ "value", "background" ]); 13959 if (!background) return null; 13960 var props = _extends({ 13961 cornerRadius: cornerRadius 13962 }, rest, { 13963 fill: "#eee" 13964 }, background, backgroundProps, Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.f)(_this4.props, entry, i), { 13965 index: i, 13966 key: "sector-" + i, 13967 className: "recharts-radial-bar-background-sector" 13968 }); 13969 return _this4.renderSectorShape(background, props); 13970 }); 13971 } 13972 }, { 13973 key: "render", 13974 value: function() { 13975 var _props6 = this.props, hide = _props6.hide, data = _props6.data, className = _props6.className, background = _props6.background, isAnimationActive = _props6.isAnimationActive; 13976 if (hide || !data || !data.length) return null; 13977 var isAnimationFinished = this.state.isAnimationFinished, layerClass = __WEBPACK_IMPORTED_MODULE_5_classnames___default()("recharts-area", className); 13978 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, { 13979 className: layerClass 13980 }, background && __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, { 13981 className: "recharts-radial-bar-background" 13982 }, this.renderBackground(data)), __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, { 13983 className: "recharts-radial-bar-sectors" 13984 }, this.renderSectors(data)), (!isAnimationActive || isAnimationFinished) && __WEBPACK_IMPORTED_MODULE_11__component_LabelList__.a.renderCallByParent(_extends({}, this.props, { 13985 clockWise: this.getDeltaAngle() < 0 13986 }), data)); 13987 } 13988 } ]), RadialBar; 13989 }(__WEBPACK_IMPORTED_MODULE_3_react__.Component), _class2.displayName = "RadialBar", 13990 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.c, { 13991 className: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, 13992 angleAxisId: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number ]), 13993 radiusAxisId: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number ]), 13994 shape: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.element ]), 13995 activeShape: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.element ]), 13996 activeIndex: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 13997 dataKey: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func ]).isRequired, 13998 cornerRadius: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string ]), 13999 minPointSize: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 14000 maxBarSize: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 14001 data: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.shape({ 14002 cx: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 14003 cy: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 14004 innerRadius: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 14005 outerRadius: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 14006 value: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.value 14007 })), 14008 legendType: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.b), 14009 label: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.element, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object ]), 14010 background: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.element ]), 14011 hide: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool, 14012 onMouseEnter: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func, 14013 onMouseLeave: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func, 14014 onClick: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func, 14015 isAnimationActive: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool, 14016 animationBegin: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 14017 animationDuration: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 14018 animationEasing: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf([ "ease", "ease-in", "ease-out", "ease-in-out", "linear", "spring" ]) 14019 }), _class2.defaultProps = { 14020 angleAxisId: 0, 14021 radiusAxisId: 0, 14022 minPointSize: 0, 14023 hide: !1, 14024 legendType: "rect", 14025 data: [], 14026 isAnimationActive: !Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.n)(), 14027 animationBegin: 0, 14028 animationDuration: 1500, 14029 animationEasing: "ease" 14030 }, _class2.getComposedData = function(_ref3) { 14031 var item = _ref3.item, props = _ref3.props, radiusAxis = _ref3.radiusAxis, radiusAxisTicks = _ref3.radiusAxisTicks, angleAxis = _ref3.angleAxis, angleAxisTicks = _ref3.angleAxisTicks, displayedData = _ref3.displayedData, dataKey = _ref3.dataKey, stackedData = _ref3.stackedData, barPosition = _ref3.barPosition, bandSize = _ref3.bandSize, dataStartIndex = _ref3.dataStartIndex, pos = Object(__WEBPACK_IMPORTED_MODULE_14__util_ChartUtils__.f)(barPosition, item); 14032 if (!pos) return []; 14033 var cx = angleAxis.cx, cy = angleAxis.cy, layout = props.layout, _item$props = item.props, children = _item$props.children, minPointSize = _item$props.minPointSize, numericAxis = "radial" === layout ? angleAxis : radiusAxis, stackedDomain = stackedData ? numericAxis.scale.domain() : null, baseValue = Object(__WEBPACK_IMPORTED_MODULE_14__util_ChartUtils__.j)({ 14034 props: props, 14035 numericAxis: numericAxis 14036 }), cells = Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.h)(children, __WEBPACK_IMPORTED_MODULE_12__component_Cell__.a); 14037 return { 14038 data: displayedData.map(function(entry, index) { 14039 var value = void 0, innerRadius = void 0, outerRadius = void 0, startAngle = void 0, endAngle = void 0, backgroundSector = void 0; 14040 if (stackedData ? value = Object(__WEBPACK_IMPORTED_MODULE_14__util_ChartUtils__.C)(stackedData[dataStartIndex + index], stackedDomain) : (value = Object(__WEBPACK_IMPORTED_MODULE_14__util_ChartUtils__.w)(entry, dataKey), 14041 __WEBPACK_IMPORTED_MODULE_2_lodash_isArray___default()(value) || (value = [ baseValue, value ])), 14042 "radial" === layout) { 14043 innerRadius = Object(__WEBPACK_IMPORTED_MODULE_14__util_ChartUtils__.k)({ 14044 axis: radiusAxis, 14045 ticks: radiusAxisTicks, 14046 bandSize: bandSize, 14047 offset: pos.offset, 14048 entry: entry, 14049 index: index 14050 }), endAngle = angleAxis.scale(value[1]), startAngle = angleAxis.scale(value[0]), 14051 outerRadius = innerRadius + pos.size; 14052 var deltaAngle = endAngle - startAngle; 14053 if (Math.abs(minPointSize) > 0 && Math.abs(deltaAngle) < Math.abs(minPointSize)) { 14054 endAngle += Object(__WEBPACK_IMPORTED_MODULE_13__util_DataUtils__.j)(deltaAngle || minPointSize) * (Math.abs(minPointSize) - Math.abs(deltaAngle)); 14055 } 14056 backgroundSector = { 14057 background: { 14058 cx: cx, 14059 cy: cy, 14060 innerRadius: innerRadius, 14061 outerRadius: outerRadius, 14062 startAngle: props.startAngle, 14063 endAngle: props.endAngle 14064 } 14065 }; 14066 } else { 14067 innerRadius = radiusAxis.scale(value[0]), outerRadius = radiusAxis.scale(value[1]), 14068 startAngle = Object(__WEBPACK_IMPORTED_MODULE_14__util_ChartUtils__.k)({ 14069 axis: angleAxis, 14070 ticks: angleAxisTicks, 14071 bandSize: bandSize, 14072 offset: pos.offset, 14073 entry: entry, 14074 index: index 14075 }), endAngle = startAngle + pos.size; 14076 var deltaRadius = outerRadius - innerRadius; 14077 if (Math.abs(minPointSize) > 0 && Math.abs(deltaRadius) < Math.abs(minPointSize)) { 14078 outerRadius += Object(__WEBPACK_IMPORTED_MODULE_13__util_DataUtils__.j)(deltaRadius || minPointSize) * (Math.abs(minPointSize) - Math.abs(deltaRadius)); 14079 } 14080 } 14081 return _extends({}, entry, backgroundSector, { 14082 payload: entry, 14083 value: stackedData ? value : value[1], 14084 cx: cx, 14085 cy: cy, 14086 innerRadius: innerRadius, 14087 outerRadius: outerRadius, 14088 startAngle: startAngle, 14089 endAngle: endAngle 14090 }, cells && cells[index] && cells[index].props); 14091 }), 14092 layout: layout 14093 }; 14094 }, _class = _temp2)) || _class; 14095 __webpack_exports__.a = RadialBar; 14096 }, function(module, __webpack_exports__, __webpack_require__) { 14097 "use strict"; 14098 function _defineProperty(obj, key, value) { 14099 return key in obj ? Object.defineProperty(obj, key, { 14100 value: value, 14101 enumerable: !0, 14102 configurable: !0, 14103 writable: !0 14104 }) : obj[key] = value, obj; 14105 } 14106 function _classCallCheck(instance, Constructor) { 14107 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 14108 } 14109 function _possibleConstructorReturn(self, call) { 14110 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 14111 return !call || "object" != typeof call && "function" != typeof call ? self : call; 14112 } 14113 function _inherits(subClass, superClass) { 14114 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 14115 subClass.prototype = Object.create(superClass && superClass.prototype, { 14116 constructor: { 14117 value: subClass, 14118 enumerable: !1, 14119 writable: !0, 14120 configurable: !0 14121 } 14122 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 14123 } 14124 var _class, _class2, _temp, __WEBPACK_IMPORTED_MODULE_0_lodash_range__ = __webpack_require__(373), __WEBPACK_IMPORTED_MODULE_0_lodash_range___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_range__), __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction__ = __webpack_require__(8), __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isFunction__), __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__), __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__), __WEBPACK_IMPORTED_MODULE_4_classnames__ = __webpack_require__(3), __WEBPACK_IMPORTED_MODULE_4_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_classnames__), __WEBPACK_IMPORTED_MODULE_5_d3_scale__ = __webpack_require__(331), __WEBPACK_IMPORTED_MODULE_6__util_ChartUtils__ = __webpack_require__(16), __WEBPACK_IMPORTED_MODULE_7__util_PureRender__ = __webpack_require__(5), __WEBPACK_IMPORTED_MODULE_8__container_Layer__ = __webpack_require__(14), __WEBPACK_IMPORTED_MODULE_9__component_Text__ = __webpack_require__(61), __WEBPACK_IMPORTED_MODULE_10__util_DataUtils__ = __webpack_require__(9), __WEBPACK_IMPORTED_MODULE_11__util_CssPrefixUtils__ = __webpack_require__(930), _extends = Object.assign || function(target) { 14125 for (var i = 1; i < arguments.length; i++) { 14126 var source = arguments[i]; 14127 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 14128 } 14129 return target; 14130 }, _createClass = function() { 14131 function defineProperties(target, props) { 14132 for (var i = 0; i < props.length; i++) { 14133 var descriptor = props[i]; 14134 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 14135 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 14136 } 14137 } 14138 return function(Constructor, protoProps, staticProps) { 14139 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 14140 Constructor; 14141 }; 14142 }(), Brush = Object(__WEBPACK_IMPORTED_MODULE_7__util_PureRender__.a)((_temp = _class2 = function(_Component) { 14143 function Brush(props) { 14144 _classCallCheck(this, Brush); 14145 var _this = _possibleConstructorReturn(this, (Brush.__proto__ || Object.getPrototypeOf(Brush)).call(this, props)); 14146 return _this.handleDrag = function(e) { 14147 _this.leaveTimer && (clearTimeout(_this.leaveTimer), _this.leaveTimer = null), _this.state.isTravellerMoving ? _this.handleTravellerMove(e) : _this.state.isSlideMoving && _this.handleSlideDrag(e); 14148 }, _this.handleTouchMove = function(e) { 14149 null != e.changedTouches && e.changedTouches.length > 0 && _this.handleDrag(e.changedTouches[0]); 14150 }, _this.handleDragEnd = function() { 14151 _this.setState({ 14152 isTravellerMoving: !1, 14153 isSlideMoving: !1 14154 }); 14155 }, _this.handleLeaveWrapper = function() { 14156 (_this.state.isTravellerMoving || _this.state.isSlideMoving) && (_this.leaveTimer = setTimeout(_this.handleDragEnd, 1e3)); 14157 }, _this.handleEnterSlideOrTraveller = function() { 14158 _this.setState({ 14159 isTextActive: !0 14160 }); 14161 }, _this.handleLeaveSlideOrTraveller = function() { 14162 _this.setState({ 14163 isTextActive: !1 14164 }); 14165 }, _this.handleSlideDragStart = function(e) { 14166 var event = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : e; 14167 _this.setState({ 14168 isTravellerMoving: !1, 14169 isSlideMoving: !0, 14170 slideMoveStartX: event.pageX 14171 }); 14172 }, _this.travellerDragStartHandlers = { 14173 startX: _this.handleTravellerDragStart.bind(_this, "startX"), 14174 endX: _this.handleTravellerDragStart.bind(_this, "endX") 14175 }, _this.state = props.data && props.data.length ? _this.updateScale(props) : {}, 14176 _this; 14177 } 14178 return _inherits(Brush, _Component), _createClass(Brush, [ { 14179 key: "componentWillReceiveProps", 14180 value: function(nextProps) { 14181 var _this2 = this, _props = this.props, data = _props.data, width = _props.width, x = _props.x, travellerWidth = _props.travellerWidth, updateId = _props.updateId; 14182 (nextProps.data !== data || nextProps.updateId !== updateId) && nextProps.data && nextProps.data.length ? this.setState(this.updateScale(nextProps)) : nextProps.width === width && nextProps.x === x && nextProps.travellerWidth === travellerWidth || (this.scale.range([ nextProps.x, nextProps.x + nextProps.width - nextProps.travellerWidth ]), 14183 this.scaleValues = this.scale.domain().map(function(entry) { 14184 return _this2.scale(entry); 14185 }), this.setState({ 14186 startX: this.scale(nextProps.startIndex), 14187 endX: this.scale(nextProps.endIndex) 14188 })); 14189 } 14190 }, { 14191 key: "componentWillUnmount", 14192 value: function() { 14193 this.scale = null, this.scaleValues = null, this.leaveTimer && (clearTimeout(this.leaveTimer), 14194 this.leaveTimer = null); 14195 } 14196 }, { 14197 key: "getIndexInRange", 14198 value: function(range, x) { 14199 for (var len = range.length, start = 0, end = len - 1; end - start > 1; ) { 14200 var middle = Math.floor((start + end) / 2); 14201 range[middle] > x ? end = middle : start = middle; 14202 } 14203 return x >= range[end] ? end : start; 14204 } 14205 }, { 14206 key: "getIndex", 14207 value: function(_ref) { 14208 var startX = _ref.startX, endX = _ref.endX, _props2 = this.props, gap = _props2.gap, data = _props2.data, lastIndex = data.length - 1, min = Math.min(startX, endX), max = Math.max(startX, endX), minIndex = this.getIndexInRange(this.scaleValues, min), maxIndex = this.getIndexInRange(this.scaleValues, max); 14209 return { 14210 startIndex: minIndex - minIndex % gap, 14211 endIndex: maxIndex === lastIndex ? lastIndex : maxIndex - maxIndex % gap 14212 }; 14213 } 14214 }, { 14215 key: "getTextOfTick", 14216 value: function(index) { 14217 var _props3 = this.props, data = _props3.data, tickFormatter = _props3.tickFormatter, dataKey = _props3.dataKey, text = Object(__WEBPACK_IMPORTED_MODULE_6__util_ChartUtils__.w)(data[index], dataKey, index); 14218 return __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(tickFormatter) ? tickFormatter(text) : text; 14219 } 14220 }, { 14221 key: "handleSlideDrag", 14222 value: function(e) { 14223 var _state = this.state, slideMoveStartX = _state.slideMoveStartX, startX = _state.startX, endX = _state.endX, _props4 = this.props, x = _props4.x, width = _props4.width, travellerWidth = _props4.travellerWidth, startIndex = _props4.startIndex, endIndex = _props4.endIndex, onChange = _props4.onChange, delta = e.pageX - slideMoveStartX; 14224 delta > 0 ? delta = Math.min(delta, x + width - travellerWidth - endX, x + width - travellerWidth - startX) : delta < 0 && (delta = Math.max(delta, x - startX, x - endX)); 14225 var newIndex = this.getIndex({ 14226 startX: startX + delta, 14227 endX: endX + delta 14228 }); 14229 newIndex.startIndex === startIndex && newIndex.endIndex === endIndex || !onChange || onChange(newIndex), 14230 this.setState({ 14231 startX: startX + delta, 14232 endX: endX + delta, 14233 slideMoveStartX: e.pageX 14234 }); 14235 } 14236 }, { 14237 key: "handleTravellerDragStart", 14238 value: function(id, e) { 14239 var event = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : e; 14240 this.setState({ 14241 isSlideMoving: !1, 14242 isTravellerMoving: !0, 14243 movingTravellerId: id, 14244 brushMoveStartX: event.pageX 14245 }); 14246 } 14247 }, { 14248 key: "handleTravellerMove", 14249 value: function(e) { 14250 var _setState, _state2 = this.state, brushMoveStartX = _state2.brushMoveStartX, movingTravellerId = _state2.movingTravellerId, endX = _state2.endX, startX = _state2.startX, prevValue = this.state[movingTravellerId], _props5 = this.props, x = _props5.x, width = _props5.width, travellerWidth = _props5.travellerWidth, onChange = _props5.onChange, gap = _props5.gap, data = _props5.data, params = { 14251 startX: this.state.startX, 14252 endX: this.state.endX 14253 }, delta = e.pageX - brushMoveStartX; 14254 delta > 0 ? delta = Math.min(delta, x + width - travellerWidth - prevValue) : delta < 0 && (delta = Math.max(delta, x - prevValue)), 14255 params[movingTravellerId] = prevValue + delta; 14256 var newIndex = this.getIndex(params), startIndex = newIndex.startIndex, endIndex = newIndex.endIndex, isFullGap = function() { 14257 var lastIndex = data.length - 1; 14258 return "startX" === movingTravellerId && (endX > startX ? startIndex % gap == 0 : endIndex % gap == 0) || endX < startX && endIndex === lastIndex || "endX" === movingTravellerId && (endX > startX ? endIndex % gap == 0 : startIndex % gap == 0) || endX > startX && endIndex === lastIndex; 14259 }; 14260 this.setState((_setState = {}, _defineProperty(_setState, movingTravellerId, prevValue + delta), 14261 _defineProperty(_setState, "brushMoveStartX", e.pageX), _setState), function() { 14262 onChange && isFullGap() && onChange(newIndex); 14263 }); 14264 } 14265 }, { 14266 key: "updateScale", 14267 value: function(props) { 14268 var _this3 = this, data = props.data, startIndex = props.startIndex, endIndex = props.endIndex, x = props.x, width = props.width, travellerWidth = props.travellerWidth, len = data.length; 14269 return this.scale = Object(__WEBPACK_IMPORTED_MODULE_5_d3_scale__.scalePoint)().domain(__WEBPACK_IMPORTED_MODULE_0_lodash_range___default()(0, len)).range([ x, x + width - travellerWidth ]), 14270 this.scaleValues = this.scale.domain().map(function(entry) { 14271 return _this3.scale(entry); 14272 }), { 14273 isTextActive: !1, 14274 isSlideMoving: !1, 14275 isTravellerMoving: !1, 14276 startX: this.scale(startIndex), 14277 endX: this.scale(endIndex) 14278 }; 14279 } 14280 }, { 14281 key: "renderBackground", 14282 value: function() { 14283 var _props6 = this.props, x = _props6.x, y = _props6.y, width = _props6.width, height = _props6.height, fill = _props6.fill, stroke = _props6.stroke; 14284 return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("rect", { 14285 stroke: stroke, 14286 fill: fill, 14287 x: x, 14288 y: y, 14289 width: width, 14290 height: height 14291 }); 14292 } 14293 }, { 14294 key: "renderPanorama", 14295 value: function() { 14296 var _props7 = this.props, x = _props7.x, y = _props7.y, width = _props7.width, height = _props7.height, data = _props7.data, children = _props7.children, padding = _props7.padding, chartElement = __WEBPACK_IMPORTED_MODULE_2_react__.Children.only(children); 14297 return chartElement ? __WEBPACK_IMPORTED_MODULE_2_react___default.a.cloneElement(chartElement, { 14298 x: x, 14299 y: y, 14300 width: width, 14301 height: height, 14302 margin: padding, 14303 compact: !0, 14304 data: data 14305 }) : null; 14306 } 14307 }, { 14308 key: "renderTraveller", 14309 value: function(travellerX, id) { 14310 var _props8 = this.props, y = _props8.y, travellerWidth = _props8.travellerWidth, height = _props8.height, stroke = _props8.stroke, lineY = Math.floor(y + height / 2) - 1, x = Math.max(travellerX, this.props.x); 14311 return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, { 14312 className: "recharts-brush-traveller", 14313 onMouseEnter: this.handleEnterSlideOrTraveller, 14314 onMouseLeave: this.handleLeaveSlideOrTraveller, 14315 onMouseDown: this.travellerDragStartHandlers[id], 14316 onTouchStart: this.travellerDragStartHandlers[id], 14317 style: { 14318 cursor: "col-resize" 14319 } 14320 }, __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("rect", { 14321 x: x, 14322 y: y, 14323 width: travellerWidth, 14324 height: height, 14325 fill: stroke, 14326 stroke: "none" 14327 }), __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("line", { 14328 x1: x + 1, 14329 y1: lineY, 14330 x2: x + travellerWidth - 1, 14331 y2: lineY, 14332 fill: "none", 14333 stroke: "#fff" 14334 }), __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("line", { 14335 x1: x + 1, 14336 y1: lineY + 2, 14337 x2: x + travellerWidth - 1, 14338 y2: lineY + 2, 14339 fill: "none", 14340 stroke: "#fff" 14341 })); 14342 } 14343 }, { 14344 key: "renderSlide", 14345 value: function(startX, endX) { 14346 var _props9 = this.props, y = _props9.y, height = _props9.height, stroke = _props9.stroke; 14347 return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("rect", { 14348 className: "recharts-brush-slide", 14349 onMouseEnter: this.handleEnterSlideOrTraveller, 14350 onMouseLeave: this.handleLeaveSlideOrTraveller, 14351 onMouseDown: this.handleSlideDragStart, 14352 onTouchStart: this.handleSlideDragStart, 14353 style: { 14354 cursor: "move" 14355 }, 14356 stroke: "none", 14357 fill: stroke, 14358 fillOpacity: .2, 14359 x: Math.min(startX, endX), 14360 y: y, 14361 width: Math.abs(endX - startX), 14362 height: height 14363 }); 14364 } 14365 }, { 14366 key: "renderText", 14367 value: function() { 14368 var _props10 = this.props, startIndex = _props10.startIndex, endIndex = _props10.endIndex, y = _props10.y, height = _props10.height, travellerWidth = _props10.travellerWidth, stroke = _props10.stroke, _state3 = this.state, startX = _state3.startX, endX = _state3.endX, attrs = { 14369 pointerEvents: "none", 14370 fill: stroke 14371 }; 14372 return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, { 14373 className: "recharts-brush-texts" 14374 }, __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__component_Text__.a, _extends({ 14375 textAnchor: "end", 14376 verticalAnchor: "middle", 14377 x: Math.min(startX, endX) - 5, 14378 y: y + height / 2 14379 }, attrs), this.getTextOfTick(startIndex)), __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__component_Text__.a, _extends({ 14380 textAnchor: "start", 14381 verticalAnchor: "middle", 14382 x: Math.max(startX, endX) + travellerWidth + 5, 14383 y: y + height / 2 14384 }, attrs), this.getTextOfTick(endIndex))); 14385 } 14386 }, { 14387 key: "render", 14388 value: function() { 14389 var _props11 = this.props, data = _props11.data, className = _props11.className, children = _props11.children, x = _props11.x, y = _props11.y, width = _props11.width, height = _props11.height, _state4 = this.state, startX = _state4.startX, endX = _state4.endX, isTextActive = _state4.isTextActive, isSlideMoving = _state4.isSlideMoving, isTravellerMoving = _state4.isTravellerMoving; 14390 if (!data || !data.length || !Object(__WEBPACK_IMPORTED_MODULE_10__util_DataUtils__.h)(x) || !Object(__WEBPACK_IMPORTED_MODULE_10__util_DataUtils__.h)(y) || !Object(__WEBPACK_IMPORTED_MODULE_10__util_DataUtils__.h)(width) || !Object(__WEBPACK_IMPORTED_MODULE_10__util_DataUtils__.h)(height) || width <= 0 || height <= 0) return null; 14391 var layerClass = __WEBPACK_IMPORTED_MODULE_4_classnames___default()("recharts-brush", className), isPanoramic = 1 === __WEBPACK_IMPORTED_MODULE_2_react___default.a.Children.count(children), style = Object(__WEBPACK_IMPORTED_MODULE_11__util_CssPrefixUtils__.a)("userSelect", "none"); 14392 return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, { 14393 className: layerClass, 14394 onMouseMove: this.handleDrag, 14395 onMouseLeave: this.handleLeaveWrapper, 14396 onMouseUp: this.handleDragEnd, 14397 onTouchEnd: this.handleDragEnd, 14398 onTouchMove: this.handleTouchMove, 14399 style: style 14400 }, this.renderBackground(), isPanoramic && this.renderPanorama(), this.renderSlide(startX, endX), this.renderTraveller(startX, "startX"), this.renderTraveller(endX, "endX"), (isTextActive || isSlideMoving || isTravellerMoving) && this.renderText()); 14401 } 14402 } ]), Brush; 14403 }(__WEBPACK_IMPORTED_MODULE_2_react__.Component), _class2.displayName = "Brush", 14404 _class2.propTypes = { 14405 className: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string, 14406 fill: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string, 14407 stroke: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string, 14408 x: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 14409 y: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 14410 width: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 14411 height: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number.isRequired, 14412 travellerWidth: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 14413 gap: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 14414 padding: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.shape({ 14415 top: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 14416 right: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 14417 bottom: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 14418 left: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number 14419 }), 14420 dataKey: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func ]), 14421 data: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.array, 14422 startIndex: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 14423 endIndex: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 14424 tickFormatter: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, 14425 children: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.node, 14426 onChange: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, 14427 updateId: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number ]) 14428 }, _class2.defaultProps = { 14429 height: 40, 14430 travellerWidth: 5, 14431 gap: 1, 14432 fill: "#fff", 14433 stroke: "#666", 14434 padding: { 14435 top: 1, 14436 right: 1, 14437 bottom: 1, 14438 left: 1 14439 } 14440 }, _class = _temp)) || _class; 14441 __webpack_exports__.a = Brush; 14442 }, function(module, exports, __webpack_require__) { 14443 var createRange = __webpack_require__(927), range = createRange(); 14444 module.exports = range; 14445 }, function(module, __webpack_exports__, __webpack_require__) { 14446 "use strict"; 14447 function _objectWithoutProperties(obj, keys) { 14448 var target = {}; 14449 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 14450 return target; 14451 } 14452 function _classCallCheck(instance, Constructor) { 14453 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 14454 } 14455 function _possibleConstructorReturn(self, call) { 14456 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 14457 return !call || "object" != typeof call && "function" != typeof call ? self : call; 14458 } 14459 function _inherits(subClass, superClass) { 14460 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 14461 subClass.prototype = Object.create(superClass && superClass.prototype, { 14462 constructor: { 14463 value: subClass, 14464 enumerable: !1, 14465 writable: !0, 14466 configurable: !0 14467 } 14468 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 14469 } 14470 var _class, _temp, __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction__ = __webpack_require__(8), __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isFunction__), __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__), __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__), __WEBPACK_IMPORTED_MODULE_3_classnames__ = __webpack_require__(3), __WEBPACK_IMPORTED_MODULE_3_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_classnames__), __WEBPACK_IMPORTED_MODULE_4__util_PureRender__ = __webpack_require__(5), __WEBPACK_IMPORTED_MODULE_5__util_DOMUtils__ = __webpack_require__(198), __WEBPACK_IMPORTED_MODULE_6__container_Layer__ = __webpack_require__(14), __WEBPACK_IMPORTED_MODULE_7__component_Text__ = __webpack_require__(61), __WEBPACK_IMPORTED_MODULE_8__component_Label__ = __webpack_require__(44), __WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__ = __webpack_require__(4), __WEBPACK_IMPORTED_MODULE_10__util_DataUtils__ = __webpack_require__(9), _extends = Object.assign || function(target) { 14471 for (var i = 1; i < arguments.length; i++) { 14472 var source = arguments[i]; 14473 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 14474 } 14475 return target; 14476 }, _createClass = function() { 14477 function defineProperties(target, props) { 14478 for (var i = 0; i < props.length; i++) { 14479 var descriptor = props[i]; 14480 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 14481 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 14482 } 14483 } 14484 return function(Constructor, protoProps, staticProps) { 14485 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 14486 Constructor; 14487 }; 14488 }(), CartesianAxis = (_temp = _class = function(_Component) { 14489 function CartesianAxis() { 14490 return _classCallCheck(this, CartesianAxis), _possibleConstructorReturn(this, (CartesianAxis.__proto__ || Object.getPrototypeOf(CartesianAxis)).apply(this, arguments)); 14491 } 14492 return _inherits(CartesianAxis, _Component), _createClass(CartesianAxis, [ { 14493 key: "shouldComponentUpdate", 14494 value: function(_ref, state) { 14495 var viewBox = _ref.viewBox, restProps = _objectWithoutProperties(_ref, [ "viewBox" ]), _props = this.props, viewBoxOld = _props.viewBox, restPropsOld = _objectWithoutProperties(_props, [ "viewBox" ]); 14496 return !Object(__WEBPACK_IMPORTED_MODULE_4__util_PureRender__.b)(viewBox, viewBoxOld) || !Object(__WEBPACK_IMPORTED_MODULE_4__util_PureRender__.b)(restProps, restPropsOld) || !Object(__WEBPACK_IMPORTED_MODULE_4__util_PureRender__.b)(state, this.state); 14497 } 14498 }, { 14499 key: "getTickLineCoord", 14500 value: function(data) { 14501 var _props2 = this.props, x = _props2.x, y = _props2.y, width = _props2.width, height = _props2.height, orientation = _props2.orientation, tickSize = _props2.tickSize, mirror = _props2.mirror, tickMargin = _props2.tickMargin, x1 = void 0, x2 = void 0, y1 = void 0, y2 = void 0, tx = void 0, ty = void 0, sign = mirror ? -1 : 1, finalTickSize = data.tickSize || tickSize, tickCoord = Object(__WEBPACK_IMPORTED_MODULE_10__util_DataUtils__.h)(data.tickCoord) ? data.tickCoord : data.coordinate; 14502 switch (orientation) { 14503 case "top": 14504 x1 = x2 = data.coordinate, y2 = y + !mirror * height, y1 = y2 - sign * finalTickSize, 14505 ty = y1 - sign * tickMargin, tx = tickCoord; 14506 break; 14507 14508 case "left": 14509 y1 = y2 = data.coordinate, x2 = x + !mirror * width, x1 = x2 - sign * finalTickSize, 14510 tx = x1 - sign * tickMargin, ty = tickCoord; 14511 break; 14512 14513 case "right": 14514 y1 = y2 = data.coordinate, x2 = x + mirror * width, x1 = x2 + sign * finalTickSize, 14515 tx = x1 + sign * tickMargin, ty = tickCoord; 14516 break; 14517 14518 default: 14519 x1 = x2 = data.coordinate, y2 = y + mirror * height, y1 = y2 + sign * finalTickSize, 14520 ty = y1 + sign * tickMargin, tx = tickCoord; 14521 } 14522 return { 14523 line: { 14524 x1: x1, 14525 y1: y1, 14526 x2: x2, 14527 y2: y2 14528 }, 14529 tick: { 14530 x: tx, 14531 y: ty 14532 } 14533 }; 14534 } 14535 }, { 14536 key: "getTickTextAnchor", 14537 value: function() { 14538 var _props3 = this.props, orientation = _props3.orientation, mirror = _props3.mirror, textAnchor = void 0; 14539 switch (orientation) { 14540 case "left": 14541 textAnchor = mirror ? "start" : "end"; 14542 break; 14543 14544 case "right": 14545 textAnchor = mirror ? "end" : "start"; 14546 break; 14547 14548 default: 14549 textAnchor = "middle"; 14550 } 14551 return textAnchor; 14552 } 14553 }, { 14554 key: "getTickVerticalAnchor", 14555 value: function() { 14556 var _props4 = this.props, orientation = _props4.orientation, mirror = _props4.mirror, verticalAnchor = "end"; 14557 switch (orientation) { 14558 case "left": 14559 case "right": 14560 verticalAnchor = "middle"; 14561 break; 14562 14563 case "top": 14564 verticalAnchor = mirror ? "start" : "end"; 14565 break; 14566 14567 default: 14568 verticalAnchor = mirror ? "end" : "start"; 14569 } 14570 return verticalAnchor; 14571 } 14572 }, { 14573 key: "renderAxisLine", 14574 value: function() { 14575 var _props5 = this.props, x = _props5.x, y = _props5.y, width = _props5.width, height = _props5.height, orientation = _props5.orientation, axisLine = _props5.axisLine, mirror = _props5.mirror, props = _extends({}, Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.k)(this.props), { 14576 fill: "none" 14577 }, Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.k)(axisLine)); 14578 if ("top" === orientation || "bottom" === orientation) { 14579 var needHeight = "top" === orientation && !mirror || "bottom" === orientation && mirror; 14580 props = _extends({}, props, { 14581 x1: x, 14582 y1: y + needHeight * height, 14583 x2: x + width, 14584 y2: y + needHeight * height 14585 }); 14586 } else { 14587 var needWidth = "left" === orientation && !mirror || "right" === orientation && mirror; 14588 props = _extends({}, props, { 14589 x1: x + needWidth * width, 14590 y1: y, 14591 x2: x + needWidth * width, 14592 y2: y + height 14593 }); 14594 } 14595 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("line", _extends({ 14596 className: "recharts-cartesian-axis-line" 14597 }, props)); 14598 } 14599 }, { 14600 key: "renderTickItem", 14601 value: function(option, props, value) { 14602 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.isValidElement(option) ? __WEBPACK_IMPORTED_MODULE_1_react___default.a.cloneElement(option, props) : __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default()(option) ? option(props) : __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__component_Text__.a, _extends({}, props, { 14603 className: "recharts-cartesian-axis-tick-value" 14604 }), value); 14605 } 14606 }, { 14607 key: "renderTicks", 14608 value: function(ticks) { 14609 var _this2 = this, _props6 = this.props, tickLine = _props6.tickLine, stroke = _props6.stroke, tick = _props6.tick, tickFormatter = _props6.tickFormatter, unit = _props6.unit, finalTicks = CartesianAxis.getTicks(_extends({}, this.props, { 14610 ticks: ticks 14611 })), textAnchor = this.getTickTextAnchor(), verticalAnchor = this.getTickVerticalAnchor(), axisProps = Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.k)(this.props), customTickProps = Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.k)(tick), tickLineProps = _extends({}, axisProps, { 14612 fill: "none" 14613 }, Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.k)(tickLine)), items = finalTicks.map(function(entry, i) { 14614 var _getTickLineCoord = _this2.getTickLineCoord(entry), lineCoord = _getTickLineCoord.line, tickCoord = _getTickLineCoord.tick, tickProps = _extends({ 14615 textAnchor: textAnchor, 14616 verticalAnchor: verticalAnchor 14617 }, axisProps, { 14618 stroke: "none", 14619 fill: stroke 14620 }, customTickProps, tickCoord, { 14621 index: i, 14622 payload: entry, 14623 visibleTicksCount: finalTicks.length 14624 }); 14625 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__container_Layer__.a, _extends({ 14626 className: "recharts-cartesian-axis-tick", 14627 key: "tick-" + i 14628 }, Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.f)(_this2.props, entry, i)), tickLine && __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("line", _extends({ 14629 className: "recharts-cartesian-axis-tick-line" 14630 }, tickLineProps, lineCoord)), tick && _this2.renderTickItem(tick, tickProps, "" + (__WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default()(tickFormatter) ? tickFormatter(entry.value) : entry.value) + (unit || ""))); 14631 }); 14632 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("g", { 14633 className: "recharts-cartesian-axis-ticks" 14634 }, items); 14635 } 14636 }, { 14637 key: "render", 14638 value: function() { 14639 var _props7 = this.props, axisLine = _props7.axisLine, width = _props7.width, height = _props7.height, ticksGenerator = _props7.ticksGenerator, className = _props7.className; 14640 if (_props7.hide) return null; 14641 var _props8 = this.props, ticks = _props8.ticks, noTicksProps = _objectWithoutProperties(_props8, [ "ticks" ]), finalTicks = ticks; 14642 return __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default()(ticksGenerator) && (finalTicks = ticksGenerator(ticks && ticks.length > 0 ? this.props : noTicksProps)), 14643 width <= 0 || height <= 0 || !finalTicks || !finalTicks.length ? null : __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__container_Layer__.a, { 14644 className: __WEBPACK_IMPORTED_MODULE_3_classnames___default()("recharts-cartesian-axis", className) 14645 }, axisLine && this.renderAxisLine(), this.renderTicks(finalTicks), __WEBPACK_IMPORTED_MODULE_8__component_Label__.a.renderCallByParent(this.props)); 14646 } 14647 } ], [ { 14648 key: "getTicks", 14649 value: function(props) { 14650 var tick = props.tick, ticks = props.ticks, viewBox = props.viewBox, minTickGap = props.minTickGap, orientation = props.orientation, interval = props.interval, tickFormatter = props.tickFormatter, unit = props.unit; 14651 return ticks && ticks.length && tick ? Object(__WEBPACK_IMPORTED_MODULE_10__util_DataUtils__.h)(interval) || Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.n)() ? CartesianAxis.getNumberIntervalTicks(ticks, Object(__WEBPACK_IMPORTED_MODULE_10__util_DataUtils__.h)(interval) ? interval : 0) : "preserveStartEnd" === interval ? CartesianAxis.getTicksStart({ 14652 ticks: ticks, 14653 tickFormatter: tickFormatter, 14654 viewBox: viewBox, 14655 orientation: orientation, 14656 minTickGap: minTickGap, 14657 unit: unit 14658 }, !0) : "preserveStart" === interval ? CartesianAxis.getTicksStart({ 14659 ticks: ticks, 14660 tickFormatter: tickFormatter, 14661 viewBox: viewBox, 14662 orientation: orientation, 14663 minTickGap: minTickGap, 14664 unit: unit 14665 }) : CartesianAxis.getTicksEnd({ 14666 ticks: ticks, 14667 tickFormatter: tickFormatter, 14668 viewBox: viewBox, 14669 orientation: orientation, 14670 minTickGap: minTickGap, 14671 unit: unit 14672 }) : []; 14673 } 14674 }, { 14675 key: "getNumberIntervalTicks", 14676 value: function(ticks, interval) { 14677 return ticks.filter(function(entry, i) { 14678 return i % (interval + 1) == 0; 14679 }); 14680 } 14681 }, { 14682 key: "getTicksStart", 14683 value: function(_ref2, preserveEnd) { 14684 var ticks = _ref2.ticks, tickFormatter = _ref2.tickFormatter, viewBox = _ref2.viewBox, orientation = _ref2.orientation, minTickGap = _ref2.minTickGap, unit = _ref2.unit, x = viewBox.x, y = viewBox.y, width = viewBox.width, height = viewBox.height, sizeKey = "top" === orientation || "bottom" === orientation ? "width" : "height", result = (ticks || []).slice(), unitSize = unit ? Object(__WEBPACK_IMPORTED_MODULE_5__util_DOMUtils__.c)(unit)[sizeKey] : 0, len = result.length, sign = len >= 2 ? Object(__WEBPACK_IMPORTED_MODULE_10__util_DataUtils__.j)(result[1].coordinate - result[0].coordinate) : 1, start = void 0, end = void 0; 14685 if (1 === sign ? (start = "width" === sizeKey ? x : y, end = "width" === sizeKey ? x + width : y + height) : (start = "width" === sizeKey ? x + width : y + height, 14686 end = "width" === sizeKey ? x : y), preserveEnd) { 14687 var tail = ticks[len - 1], tailContent = __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default()(tickFormatter) ? tickFormatter(tail.value) : tail.value, tailSize = Object(__WEBPACK_IMPORTED_MODULE_5__util_DOMUtils__.c)(tailContent)[sizeKey] + unitSize, tailGap = sign * (tail.coordinate + sign * tailSize / 2 - end); 14688 result[len - 1] = tail = _extends({}, tail, { 14689 tickCoord: tailGap > 0 ? tail.coordinate - tailGap * sign : tail.coordinate 14690 }); 14691 sign * (tail.tickCoord - sign * tailSize / 2 - start) >= 0 && sign * (tail.tickCoord + sign * tailSize / 2 - end) <= 0 && (end = tail.tickCoord - sign * (tailSize / 2 + minTickGap), 14692 result[len - 1] = _extends({}, tail, { 14693 isShow: !0 14694 })); 14695 } 14696 for (var count = preserveEnd ? len - 1 : len, i = 0; i < count; i++) { 14697 var entry = result[i], content = __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default()(tickFormatter) ? tickFormatter(entry.value) : entry.value, size = Object(__WEBPACK_IMPORTED_MODULE_5__util_DOMUtils__.c)(content)[sizeKey] + unitSize; 14698 if (0 === i) { 14699 var gap = sign * (entry.coordinate - sign * size / 2 - start); 14700 result[i] = entry = _extends({}, entry, { 14701 tickCoord: gap < 0 ? entry.coordinate - gap * sign : entry.coordinate 14702 }); 14703 } else result[i] = entry = _extends({}, entry, { 14704 tickCoord: entry.coordinate 14705 }); 14706 sign * (entry.tickCoord - sign * size / 2 - start) >= 0 && sign * (entry.tickCoord + sign * size / 2 - end) <= 0 && (start = entry.tickCoord + sign * (size / 2 + minTickGap), 14707 result[i] = _extends({}, entry, { 14708 isShow: !0 14709 })); 14710 } 14711 return result.filter(function(entry) { 14712 return entry.isShow; 14713 }); 14714 } 14715 }, { 14716 key: "getTicksEnd", 14717 value: function(_ref3) { 14718 var ticks = _ref3.ticks, tickFormatter = _ref3.tickFormatter, viewBox = _ref3.viewBox, orientation = _ref3.orientation, minTickGap = _ref3.minTickGap, unit = _ref3.unit, x = viewBox.x, y = viewBox.y, width = viewBox.width, height = viewBox.height, sizeKey = "top" === orientation || "bottom" === orientation ? "width" : "height", unitSize = unit ? Object(__WEBPACK_IMPORTED_MODULE_5__util_DOMUtils__.c)(unit)[sizeKey] : 0, result = (ticks || []).slice(), len = result.length, sign = len >= 2 ? Object(__WEBPACK_IMPORTED_MODULE_10__util_DataUtils__.j)(result[1].coordinate - result[0].coordinate) : 1, start = void 0, end = void 0; 14719 1 === sign ? (start = "width" === sizeKey ? x : y, end = "width" === sizeKey ? x + width : y + height) : (start = "width" === sizeKey ? x + width : y + height, 14720 end = "width" === sizeKey ? x : y); 14721 for (var i = len - 1; i >= 0; i--) { 14722 var entry = result[i], content = __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default()(tickFormatter) ? tickFormatter(entry.value) : entry.value, size = Object(__WEBPACK_IMPORTED_MODULE_5__util_DOMUtils__.c)(content)[sizeKey] + unitSize; 14723 if (i === len - 1) { 14724 var gap = sign * (entry.coordinate + sign * size / 2 - end); 14725 result[i] = entry = _extends({}, entry, { 14726 tickCoord: gap > 0 ? entry.coordinate - gap * sign : entry.coordinate 14727 }); 14728 } else result[i] = entry = _extends({}, entry, { 14729 tickCoord: entry.coordinate 14730 }); 14731 sign * (entry.tickCoord - sign * size / 2 - start) >= 0 && sign * (entry.tickCoord + sign * size / 2 - end) <= 0 && (end = entry.tickCoord - sign * (size / 2 + minTickGap), 14732 result[i] = _extends({}, entry, { 14733 isShow: !0 14734 })); 14735 } 14736 return result.filter(function(entry) { 14737 return entry.isShow; 14738 }); 14739 } 14740 } ]), CartesianAxis; 14741 }(__WEBPACK_IMPORTED_MODULE_1_react__.Component), _class.displayName = "CartesianAxis", 14742 _class.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.c, __WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.a, { 14743 className: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, 14744 x: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 14745 y: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 14746 width: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 14747 height: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 14748 orientation: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOf([ "top", "bottom", "left", "right" ]), 14749 viewBox: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.shape({ 14750 x: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 14751 y: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 14752 width: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 14753 height: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number 14754 }), 14755 tick: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.element ]), 14756 axisLine: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object ]), 14757 tickLine: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object ]), 14758 mirror: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, 14759 tickMargin: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number.isRequired, 14760 minTickGap: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 14761 ticks: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.array, 14762 tickSize: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 14763 stroke: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, 14764 tickFormatter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, 14765 ticksGenerator: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, 14766 interval: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOf([ "preserveStart", "preserveEnd", "preserveStartEnd" ]) ]) 14767 }), _class.defaultProps = { 14768 x: 0, 14769 y: 0, 14770 width: 0, 14771 height: 0, 14772 viewBox: { 14773 x: 0, 14774 y: 0, 14775 width: 0, 14776 height: 0 14777 }, 14778 orientation: "bottom", 14779 ticks: [], 14780 stroke: "#666", 14781 tickLine: !0, 14782 axisLine: !0, 14783 tick: !0, 14784 mirror: !1, 14785 minTickGap: 5, 14786 tickSize: 6, 14787 tickMargin: 2, 14788 interval: "preserveEnd" 14789 }, _temp); 14790 __webpack_exports__.a = CartesianAxis; 14791 }, function(module, exports, __webpack_require__) { 14792 "use strict"; 14793 function _interopRequireDefault(obj) { 14794 return obj && obj.__esModule ? obj : { 14795 default: obj 14796 }; 14797 } 14798 var _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _reactDom = __webpack_require__(99), _MuiThemeProvider = __webpack_require__(386), _MuiThemeProvider2 = _interopRequireDefault(_MuiThemeProvider), _createMuiTheme = __webpack_require__(161), _createMuiTheme2 = _interopRequireDefault(_createMuiTheme), _Dashboard = __webpack_require__(439), _Dashboard2 = _interopRequireDefault(_Dashboard), theme = (0, 14799 _createMuiTheme2.default)({ 14800 palette: { 14801 type: "dark" 14802 } 14803 }), dashboard = document.getElementById("dashboard"); 14804 dashboard && (0, _reactDom.render)(_react2.default.createElement(_MuiThemeProvider2.default, { 14805 theme: theme 14806 }, _react2.default.createElement(_Dashboard2.default, null)), dashboard); 14807 }, function(module, exports, __webpack_require__) { 14808 "use strict"; 14809 function D(a) { 14810 for (var b = arguments.length - 1, e = "https://reactjs.org/docs/error-decoder.html?不变量=“+A,C=0;C<B;C++)E+=“& ARGs[] =”+ EnCODE URIC(参数[C+2]); 14811 n(!1, "Minified React error #" + a + "; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ", e); 14812 } 14813 function F(a, b, e) { 14814 this.props = a, this.context = b, this.refs = p, this.updater = e || E; 14815 } 14816 function G() {} 14817 function H(a, b, e) { 14818 this.props = a, this.context = b, this.refs = p, this.updater = e || E; 14819 } 14820 function M(a, b, e) { 14821 var c = void 0, d = {}, g = null, h = null; 14822 if (null != b) for (c in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (g = "" + b.key), 14823 b) K.call(b, c) && !L.hasOwnProperty(c) && (d[c] = b[c]); 14824 var f = arguments.length - 2; 14825 if (1 === f) d.children = e; else if (1 < f) { 14826 for (var l = Array(f), m = 0; m < f; m++) l[m] = arguments[m + 2]; 14827 d.children = l; 14828 } 14829 if (a && a.defaultProps) for (c in f = a.defaultProps) void 0 === d[c] && (d[c] = f[c]); 14830 return { 14831 $$typeof: t, 14832 type: a, 14833 key: g, 14834 ref: h, 14835 props: d, 14836 _owner: J.current 14837 }; 14838 } 14839 function N(a) { 14840 return "object" == typeof a && null !== a && a.$$typeof === t; 14841 } 14842 function escape(a) { 14843 var b = { 14844 "=": "=0", 14845 ":": "=2" 14846 }; 14847 return "$" + ("" + a).replace(/[=:]/g, function(a) { 14848 return b[a]; 14849 }); 14850 } 14851 function Q(a, b, e, c) { 14852 if (P.length) { 14853 var d = P.pop(); 14854 return d.result = a, d.keyPrefix = b, d.func = e, d.context = c, d.count = 0, d; 14855 } 14856 return { 14857 result: a, 14858 keyPrefix: b, 14859 func: e, 14860 context: c, 14861 count: 0 14862 }; 14863 } 14864 function R(a) { 14865 a.result = null, a.keyPrefix = null, a.func = null, a.context = null, a.count = 0, 14866 10 > P.length && P.push(a); 14867 } 14868 function S(a, b, e, c) { 14869 var d = typeof a; 14870 "undefined" !== d && "boolean" !== d || (a = null); 14871 var g = !1; 14872 if (null === a) g = !0; else switch (d) { 14873 case "string": 14874 case "number": 14875 g = !0; 14876 break; 14877 14878 case "object": 14879 switch (a.$$typeof) { 14880 case t: 14881 case u: 14882 g = !0; 14883 } 14884 } 14885 if (g) return e(c, a, "" === b ? "." + T(a, 0) : b), 1; 14886 if (g = 0, b = "" === b ? "." : b + ":", Array.isArray(a)) for (var h = 0; h < a.length; h++) { 14887 d = a[h]; 14888 var f = b + T(d, h); 14889 g += S(d, f, e, c); 14890 } else if (null === a || void 0 === a ? f = null : (f = C && a[C] || a["@@iterator"], 14891 f = "function" == typeof f ? f : null), "function" == typeof f) for (a = f.call(a), 14892 h = 0; !(d = a.next()).done; ) d = d.value, f = b + T(d, h++), g += S(d, f, e, c); else "object" === d && (e = "" + a, 14893 D("31", "[object Object]" === e ? "object with keys {" + Object.keys(a).join(", ") + "}" : e, "")); 14894 return g; 14895 } 14896 function T(a, b) { 14897 return "object" == typeof a && null !== a && null != a.key ? escape(a.key) : b.toString(36); 14898 } 14899 function U(a, b) { 14900 a.func.call(a.context, b, a.count++); 14901 } 14902 function V(a, b, e) { 14903 var c = a.result, d = a.keyPrefix; 14904 a = a.func.call(a.context, b, a.count++), Array.isArray(a) ? W(a, c, e, q.thatReturnsArgument) : null != a && (N(a) && (b = d + (!a.key || b && b.key === a.key ? "" : ("" + a.key).replace(O, "$&/") + "/") + e, 14905 a = { 14906 $$typeof: t, 14907 type: a.type, 14908 key: b, 14909 ref: a.ref, 14910 props: a.props, 14911 _owner: a._owner 14912 }), c.push(a)); 14913 } 14914 function W(a, b, e, c, d) { 14915 var g = ""; 14916 null != e && (g = ("" + e).replace(O, "$&/") + "/"), b = Q(b, g, c, d), null == a || S(a, "", V, b), 14917 R(b); 14918 } 14919 var k = __webpack_require__(74), n = __webpack_require__(49), p = __webpack_require__(97), q = __webpack_require__(50), r = "function" == typeof Symbol && Symbol.for, t = r ? Symbol.for("react.element") : 60103, u = r ? Symbol.for("react.portal") : 60106, v = r ? Symbol.for("react.fragment") : 60107, w = r ? Symbol.for("react.strict_mode") : 60108, x = r ? Symbol.for("react.profiler") : 60114, y = r ? Symbol.for("react.provider") : 60109, z = r ? Symbol.for("react.context") : 60110, A = r ? Symbol.for("react.async_mode") : 60111, B = r ? Symbol.for("react.forward_ref") : 60112; 14920 r && Symbol.for("react.timeout"); 14921 var C = "function" == typeof Symbol && Symbol.iterator, E = { 14922 isMounted: function() { 14923 return !1; 14924 }, 14925 enqueueForceUpdate: function() {}, 14926 enqueueReplaceState: function() {}, 14927 enqueueSetState: function() {} 14928 }; 14929 F.prototype.isReactComponent = {}, F.prototype.setState = function(a, b) { 14930 "object" != typeof a && "function" != typeof a && null != a && D("85"), this.updater.enqueueSetState(this, a, b, "setState"); 14931 }, F.prototype.forceUpdate = function(a) { 14932 this.updater.enqueueForceUpdate(this, a, "forceUpdate"); 14933 }, G.prototype = F.prototype; 14934 var I = H.prototype = new G(); 14935 I.constructor = H, k(I, F.prototype), I.isPureReactComponent = !0; 14936 var J = { 14937 current: null 14938 }, K = Object.prototype.hasOwnProperty, L = { 14939 key: !0, 14940 ref: !0, 14941 __self: !0, 14942 __source: !0 14943 }, O = /\/+/g, P = [], X = { 14944 Children: { 14945 map: function(a, b, e) { 14946 if (null == a) return a; 14947 var c = []; 14948 return W(a, c, null, b, e), c; 14949 }, 14950 forEach: function(a, b, e) { 14951 if (null == a) return a; 14952 b = Q(null, null, b, e), null == a || S(a, "", U, b), R(b); 14953 }, 14954 count: function(a) { 14955 return null == a ? 0 : S(a, "", q.thatReturnsNull, null); 14956 }, 14957 toArray: function(a) { 14958 var b = []; 14959 return W(a, b, null, q.thatReturnsArgument), b; 14960 }, 14961 only: function(a) { 14962 return N(a) || D("143"), a; 14963 } 14964 }, 14965 createRef: function() { 14966 return { 14967 current: null 14968 }; 14969 }, 14970 Component: F, 14971 PureComponent: H, 14972 createContext: function(a, b) { 14973 return void 0 === b && (b = null), a = { 14974 $$typeof: z, 14975 _calculateChangedBits: b, 14976 _defaultValue: a, 14977 _currentValue: a, 14978 _currentValue2: a, 14979 _changedBits: 0, 14980 _changedBits2: 0, 14981 Provider: null, 14982 Consumer: null 14983 }, a.Provider = { 14984 $$typeof: y, 14985 _context: a 14986 }, a.Consumer = a; 14987 }, 14988 forwardRef: function(a) { 14989 return { 14990 $$typeof: B, 14991 render: a 14992 }; 14993 }, 14994 Fragment: v, 14995 StrictMode: w, 14996 unstable_AsyncMode: A, 14997 unstable_Profiler: x, 14998 createElement: M, 14999 cloneElement: function(a, b, e) { 15000 (null === a || void 0 === a) && D("267", a); 15001 var c = void 0, d = k({}, a.props), g = a.key, h = a.ref, f = a._owner; 15002 if (null != b) { 15003 void 0 !== b.ref && (h = b.ref, f = J.current), void 0 !== b.key && (g = "" + b.key); 15004 var l = void 0; 15005 a.type && a.type.defaultProps && (l = a.type.defaultProps); 15006 for (c in b) K.call(b, c) && !L.hasOwnProperty(c) && (d[c] = void 0 === b[c] && void 0 !== l ? l[c] : b[c]); 15007 } 15008 if (1 === (c = arguments.length - 2)) d.children = e; else if (1 < c) { 15009 l = Array(c); 15010 for (var m = 0; m < c; m++) l[m] = arguments[m + 2]; 15011 d.children = l; 15012 } 15013 return { 15014 $$typeof: t, 15015 type: a.type, 15016 key: g, 15017 ref: h, 15018 props: d, 15019 _owner: f 15020 }; 15021 }, 15022 createFactory: function(a) { 15023 var b = M.bind(null, a); 15024 return b.type = a, b; 15025 }, 15026 isValidElement: N, 15027 version: "16.4.0", 15028 __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { 15029 ReactCurrentOwner: J, 15030 assign: k 15031 } 15032 }, Y = { 15033 default: X 15034 }, Z = Y && X || Y; 15035 module.exports = Z.default ? Z.default : Z; 15036 }, function(module, exports, __webpack_require__) { 15037 "use strict"; 15038 (function(process) { 15039 "production" !== process.env.NODE_ENV && function() { 15040 function getIteratorFn(maybeIterable) { 15041 if (null === maybeIterable || void 0 === maybeIterable) return null; 15042 var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; 15043 return "function" == typeof maybeIterator ? maybeIterator : null; 15044 } 15045 function warnNoop(publicInstance, callerName) { 15046 var _constructor = publicInstance.constructor, componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass", warningKey = componentName + "." + callerName; 15047 didWarnStateUpdateForUnmountedComponent[warningKey] || (warning(!1, "Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to ` + ("`" + `this.state`)) + ("`" + (` directly or define a ` + "`")))))) + (((((`state = {};` + ("`" + ` class property with the desired state in the %s component.", callerName, componentName), 15048 didWarnStateUpdateForUnmountedComponent[warningKey] = !0); 15049 } 15050 function Component(props, context, updater) { 15051 this.props = props, this.context = context, this.refs = emptyObject, this.updater = updater || ReactNoopUpdateQueue; 15052 } 15053 function ComponentDummy() {} 15054 function PureComponent(props, context, updater) { 15055 this.props = props, this.context = context, this.refs = emptyObject, this.updater = updater || ReactNoopUpdateQueue; 15056 } 15057 function createRef() { 15058 var refObject = { 15059 current: null 15060 }; 15061 return Object.seal(refObject), refObject; 15062 } 15063 function hasValidRef(config) { 15064 if (hasOwnProperty.call(config, "ref")) { 15065 var getter = Object.getOwnPropertyDescriptor(config, "ref").get; 15066 if (getter && getter.isReactWarning) return !1; 15067 } 15068 return void 0 !== config.ref; 15069 } 15070 function hasValidKey(config) { 15071 if (hasOwnProperty.call(config, "key")) { 15072 var getter = Object.getOwnPropertyDescriptor(config, "key").get; 15073 if (getter && getter.isReactWarning) return !1; 15074 } 15075 return void 0 !== config.key; 15076 } 15077 function defineKeyPropWarningGetter(props, displayName) { 15078 var warnAboutAccessingKey = function() { 15079 specialPropKeyWarningShown || (specialPropKeyWarningShown = !0, warning(!1, "%s: `)) + ("`" + (`key` + "`"))) + ((` is not a prop. Trying to access it will result in ` + ("`" + `undefined`)) + ("`" + (` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special props)“,displayname)); 15080 }; 15081 warnAboutAccessingKey.isReactWarning = !0, Object.defineProperty(props, "key", { 15082 get: warnAboutAccessingKey, 15083 configurable: !0 15084 }); 15085 } 15086 function defineRefPropWarningGetter(props, displayName) { 15087 var warnAboutAccessingRef = function() { 15088 specialPropRefWarningShown || (specialPropRefWarningShown = !0, warning(!1, "%s: ` + "`")))) + (((`ref` + ("`" + ` is not a prop. Trying to access it will result in `)) + ("`" + (`undefined` + "`"))) + ((` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special props)“,displayname)); 15089 }; 15090 warnAboutAccessingRef.isReactWarning = !0, Object.defineProperty(props, "ref", { 15091 get: warnAboutAccessingRef, 15092 configurable: !0 15093 }); 15094 } 15095 function createElement(type, config, children) { 15096 var propName = void 0, props = {}, key = null, ref = null, self = null, source = null; 15097 if (null != config) { 15098 hasValidRef(config) && (ref = config.ref), hasValidKey(config) && (key = "" + config.key), 15099 self = void 0 === config.__self ? null : config.__self, source = void 0 === config.__source ? null : config.__source; 15100 for (propName in config) hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName) && (props[propName] = config[propName]); 15101 } 15102 var childrenLength = arguments.length - 2; 15103 if (1 === childrenLength) props.children = children; else if (childrenLength > 1) { 15104 for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++) childArray[i] = arguments[i + 2]; 15105 Object.freeze && Object.freeze(childArray), props.children = childArray; 15106 } 15107 if (type && type.defaultProps) { 15108 var defaultProps = type.defaultProps; 15109 for (propName in defaultProps) void 0 === props[propName] && (props[propName] = defaultProps[propName]); 15110 } 15111 if ((key || ref) && (void 0 === props.$$typeof || props.$$typeof !== REACT_ELEMENT_TYPE)) { 15112 var displayName = "function" == typeof type ? type.displayName || type.name || "Unknown" : type; 15113 key && defineKeyPropWarningGetter(props, displayName), ref && defineRefPropWarningGetter(props, displayName); 15114 } 15115 return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props); 15116 } 15117 function cloneAndReplaceKey(oldElement, newKey) { 15118 return ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props); 15119 } 15120 function cloneElement(element, config, children) { 15121 (null === element || void 0 === element) && invariant(!1, "React.cloneElement(...): The argument must be a React element, but you passed %s.", element); 15122 var propName = void 0, props = _assign({}, element.props), key = element.key, ref = element.ref, self = element._self, source = element._source, owner = element._owner; 15123 if (null != config) { 15124 hasValidRef(config) && (ref = config.ref, owner = ReactCurrentOwner.current), hasValidKey(config) && (key = "" + config.key); 15125 var defaultProps = void 0; 15126 element.type && element.type.defaultProps && (defaultProps = element.type.defaultProps); 15127 for (propName in config) hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName) && (void 0 === config[propName] && void 0 !== defaultProps ? props[propName] = defaultProps[propName] : props[propName] = config[propName]); 15128 } 15129 var childrenLength = arguments.length - 2; 15130 if (1 === childrenLength) props.children = children; else if (childrenLength > 1) { 15131 for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++) childArray[i] = arguments[i + 2]; 15132 props.children = childArray; 15133 } 15134 return ReactElement(element.type, key, ref, self, source, owner, props); 15135 } 15136 function isValidElement(object) { 15137 return "object" == typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE; 15138 } 15139 function escape(key) { 15140 var escaperLookup = { 15141 "=": "=0", 15142 ":": "=2" 15143 }; 15144 return "$" + ("" + key).replace(/[=:]/g, function(match) { 15145 return escaperLookup[match]; 15146 }); 15147 } 15148 function escapeUserProvidedKey(text) { 15149 return ("" + text).replace(userProvidedKeyEscapeRegex, "$&/"); 15150 } 15151 function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) { 15152 if (traverseContextPool.length) { 15153 var traverseContext = traverseContextPool.pop(); 15154 return traverseContext.result = mapResult, traverseContext.keyPrefix = keyPrefix, 15155 traverseContext.func = mapFunction, traverseContext.context = mapContext, traverseContext.count = 0, 15156 traverseContext; 15157 } 15158 return { 15159 result: mapResult, 15160 keyPrefix: keyPrefix, 15161 func: mapFunction, 15162 context: mapContext, 15163 count: 0 15164 }; 15165 } 15166 function releaseTraverseContext(traverseContext) { 15167 traverseContext.result = null, traverseContext.keyPrefix = null, traverseContext.func = null, 15168 traverseContext.context = null, traverseContext.count = 0, traverseContextPool.length < POOL_SIZE && traverseContextPool.push(traverseContext); 15169 } 15170 function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) { 15171 var type = typeof children; 15172 "undefined" !== type && "boolean" !== type || (children = null); 15173 var invokeCallback = !1; 15174 if (null === children) invokeCallback = !0; else switch (type) { 15175 case "string": 15176 case "number": 15177 invokeCallback = !0; 15178 break; 15179 15180 case "object": 15181 switch (children.$$typeof) { 15182 case REACT_ELEMENT_TYPE: 15183 case REACT_PORTAL_TYPE: 15184 invokeCallback = !0; 15185 } 15186 } 15187 if (invokeCallback) return callback(traverseContext, children, "" === nameSoFar ? SEPARATOR + getComponentKey(children, 0) : nameSoFar), 15188 1; 15189 var child = void 0, nextName = void 0, subtreeCount = 0, nextNamePrefix = "" === nameSoFar ? SEPARATOR : nameSoFar + SUBSEPARATOR; 15190 if (Array.isArray(children)) for (var i = 0; i < children.length; i++) child = children[i], 15191 nextName = nextNamePrefix + getComponentKey(child, i), subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); else { 15192 var iteratorFn = getIteratorFn(children); 15193 if ("function" == typeof iteratorFn) { 15194 iteratorFn === children.entries && (didWarnAboutMaps || warning(!1, "Using Maps as children is unsupported and will likely yield unexpected results. Convert it to a sequence/iterable of keyed ReactElements instead.%s", ReactDebugCurrentFrame.getStackAddendum()), 15195 didWarnAboutMaps = !0); 15196 for (var iterator = iteratorFn.call(children), step = void 0, ii = 0; !(step = iterator.next()).done; ) child = step.value, 15197 nextName = nextNamePrefix + getComponentKey(child, ii++), subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); 15198 } else if ("object" === type) { 15199 var addendum = ""; 15200 addendum = " If you meant to render a collection of children, use an array instead." + ReactDebugCurrentFrame.getStackAddendum(); 15201 var childrenString = "" + children; 15202 invariant(!1, "Objects are not valid as a React child (found: %s).%s", "[object Object]" === childrenString ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString, addendum); 15203 } 15204 } 15205 return subtreeCount; 15206 } 15207 function traverseAllChildren(children, callback, traverseContext) { 15208 return null == children ? 0 : traverseAllChildrenImpl(children, "", callback, traverseContext); 15209 } 15210 function getComponentKey(component, index) { 15211 return "object" == typeof component && null !== component && null != component.key ? escape(component.key) : index.toString(36); 15212 } 15213 function forEachSingleChild(bookKeeping, child, name) { 15214 var func = bookKeeping.func, context = bookKeeping.context; 15215 func.call(context, child, bookKeeping.count++); 15216 } 15217 function forEachChildren(children, forEachFunc, forEachContext) { 15218 if (null == children) return children; 15219 var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext); 15220 traverseAllChildren(children, forEachSingleChild, traverseContext), releaseTraverseContext(traverseContext); 15221 } 15222 function mapSingleChildIntoContext(bookKeeping, child, childKey) { 15223 var result = bookKeeping.result, keyPrefix = bookKeeping.keyPrefix, func = bookKeeping.func, context = bookKeeping.context, mappedChild = func.call(context, child, bookKeeping.count++); 15224 Array.isArray(mappedChild) ? mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, emptyFunction.thatReturnsArgument) : null != mappedChild && (isValidElement(mappedChild) && (mappedChild = cloneAndReplaceKey(mappedChild, keyPrefix + (!mappedChild.key || child && child.key === mappedChild.key ? "" : escapeUserProvidedKey(mappedChild.key) + "/") + childKey)), 15225 result.push(mappedChild)); 15226 } 15227 function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) { 15228 var escapedPrefix = ""; 15229 null != prefix && (escapedPrefix = escapeUserProvidedKey(prefix) + "/"); 15230 var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context); 15231 traverseAllChildren(children, mapSingleChildIntoContext, traverseContext), releaseTraverseContext(traverseContext); 15232 } 15233 function mapChildren(children, func, context) { 15234 if (null == children) return children; 15235 var result = []; 15236 return mapIntoWithKeyPrefixInternal(children, result, null, func, context), result; 15237 } 15238 function countChildren(children) { 15239 return traverseAllChildren(children, emptyFunction.thatReturnsNull, null); 15240 } 15241 function toArray(children) { 15242 var result = []; 15243 return mapIntoWithKeyPrefixInternal(children, result, null, emptyFunction.thatReturnsArgument), 15244 result; 15245 } 15246 function onlyChild(children) { 15247 return isValidElement(children) || invariant(!1, "React.Children.only expected to receive a single React element child."), 15248 children; 15249 } 15250 function createContext(defaultValue, calculateChangedBits) { 15251 void 0 === calculateChangedBits ? calculateChangedBits = null : null !== calculateChangedBits && "function" != typeof calculateChangedBits && warning(!1, "createContext: Expected the optional second argument to be a function. Instead received: %s", calculateChangedBits); 15252 var context = { 15253 $$typeof: REACT_CONTEXT_TYPE, 15254 _calculateChangedBits: calculateChangedBits, 15255 _defaultValue: defaultValue, 15256 _currentValue: defaultValue, 15257 _currentValue2: defaultValue, 15258 _changedBits: 0, 15259 _changedBits2: 0, 15260 Provider: null, 15261 Consumer: null 15262 }; 15263 return context.Provider = { 15264 $$typeof: REACT_PROVIDER_TYPE, 15265 _context: context 15266 }, context.Consumer = context, context._currentRenderer = null, context._currentRenderer2 = null, 15267 context; 15268 } 15269 function forwardRef(render) { 15270 return "function" != typeof render && warning(!1, "forwardRef requires a render function but was given %s.", null === render ? "null" : typeof render), 15271 null != render && (null != render.defaultProps || null != render.propTypes) && warning(!1, "forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"), 15272 { 15273 $$typeof: REACT_FORWARD_REF_TYPE, 15274 render: render 15275 }; 15276 } 15277 function isValidElementType(type) { 15278 return "string" == typeof type || "function" == typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_ASYNC_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_TIMEOUT_TYPE || "object" == typeof type && null !== type && (type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE); 15279 } 15280 function getComponentName(fiber) { 15281 var type = fiber.type; 15282 if ("function" == typeof type) return type.displayName || type.name; 15283 if ("string" == typeof type) return type; 15284 switch (type) { 15285 case REACT_ASYNC_MODE_TYPE: 15286 return "AsyncMode"; 15287 15288 case REACT_CONTEXT_TYPE: 15289 return "Context.Consumer"; 15290 15291 case REACT_FRAGMENT_TYPE: 15292 return "ReactFragment"; 15293 15294 case REACT_PORTAL_TYPE: 15295 return "ReactPortal"; 15296 15297 case REACT_PROFILER_TYPE: 15298 return "Profiler(" + fiber.pendingProps.id + ")"; 15299 15300 case REACT_PROVIDER_TYPE: 15301 return "Context.Provider"; 15302 15303 case REACT_STRICT_MODE_TYPE: 15304 return "StrictMode"; 15305 15306 case REACT_TIMEOUT_TYPE: 15307 return "Timeout"; 15308 } 15309 if ("object" == typeof type && null !== type) switch (type.$$typeof) { 15310 case REACT_FORWARD_REF_TYPE: 15311 var functionName = type.render.displayName || type.render.name || ""; 15312 return "" !== functionName ? "ForwardRef(" + functionName + ")" : "ForwardRef"; 15313 } 15314 return null; 15315 } 15316 function getDeclarationErrorAddendum() { 15317 if (ReactCurrentOwner.current) { 15318 var name = getComponentName(ReactCurrentOwner.current); 15319 if (name) return "\n\nCheck the render method of ` + ("`" + `" + name + "`)) + ("`" + (`."; 15320 } 15321 return ""; 15322 } 15323 function getSourceInfoErrorAddendum(elementProps) { 15324 if (null !== elementProps && void 0 !== elementProps && void 0 !== elementProps.__source) { 15325 var source = elementProps.__source; 15326 return "\n\nCheck your code at " + source.fileName.replace(/^.*[\\\/]/, "") + ":" + source.lineNumber + "."; 15327 } 15328 return ""; 15329 } 15330 function getCurrentComponentErrorInfo(parentType) { 15331 var info = getDeclarationErrorAddendum(); 15332 if (!info) { 15333 var parentName = "string" == typeof parentType ? parentType : parentType.displayName || parentType.name; 15334 parentName && (info = "\n\nCheck the top-level render call using <" + parentName + ">."); 15335 } 15336 return info; 15337 } 15338 function validateExplicitKey(element, parentType) { 15339 if (element._store && !element._store.validated && null == element.key) { 15340 element._store.validated = !0; 15341 var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType); 15342 if (!ownerHasKeyUseWarning[currentComponentErrorInfo]) { 15343 ownerHasKeyUseWarning[currentComponentErrorInfo] = !0; 15344 var childOwner = ""; 15345 element && element._owner && element._owner !== ReactCurrentOwner.current && (childOwner = " It was passed a child from " + getComponentName(element._owner) + "."), 15346 currentlyValidatingElement = element, warning(!1, 'Each child in an array or iterator should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys了解更多信息。%s',currentComponentErrorInfo,childOwner,getStackEngagement()), 15347 currentlyValidatingElement = null; 15348 } 15349 } 15350 } 15351 function validateChildKeys(node, parentType) { 15352 if ("object" == typeof node) if (Array.isArray(node)) for (var i = 0; i < node.length; i++) { 15353 var child = node[i]; 15354 isValidElement(child) && validateExplicitKey(child, parentType); 15355 } else if (isValidElement(node)) node._store && (node._store.validated = !0); else if (node) { 15356 var iteratorFn = getIteratorFn(node); 15357 if ("function" == typeof iteratorFn && iteratorFn !== node.entries) for (var iterator = iteratorFn.call(node), step = void 0; !(step = iterator.next()).done; ) isValidElement(step.value) && validateExplicitKey(step.value, parentType); 15358 } 15359 } 15360 function validatePropTypes(element) { 15361 var componentClass = element.type; 15362 if ("function" == typeof componentClass) { 15363 var name = componentClass.displayName || componentClass.name, propTypes = componentClass.propTypes; 15364 propTypes ? (currentlyValidatingElement = element, checkPropTypes(propTypes, element.props, "prop", name, getStackAddendum), 15365 currentlyValidatingElement = null) : void 0 === componentClass.PropTypes || propTypesMisspellWarningShown || (propTypesMisspellWarningShown = !0, 15366 warning(!1, "Component %s declared ` + "`"))))) + ((((`PropTypes` + ("`" + ` instead of `)) + ("`" + (`propTypes` + "`"))) + ((`. Did you misspell the property assignment?", name || "Unknown")), 15367 "function" == typeof componentClass.getDefaultProps && (componentClass.getDefaultProps.isReactClassApproved || warning(!1, "getDefaultProps is only used on classic React.createClass definitions. Use a static property named ` + ("`" + `defaultProps`)) + ("`" + (` instead.")); 15368 } 15369 } 15370 function validateFragmentProps(fragment) { 15371 currentlyValidatingElement = fragment; 15372 for (var keys = Object.keys(fragment.props), i = 0; i < keys.length; i++) { 15373 var key = keys[i]; 15374 if ("children" !== key && "key" !== key) { 15375 warning(!1, "Invalid prop ` + "`")))) + (((`%s` + ("`" + ` supplied to `)) + ("`" + (`React.Fragment` + "`"))) + ((`. React.Fragment can only have ` + ("`" + `key`)) + ("`" + (` and ` + "`"))))))) + ((((((`children` + ("`" + ` props.%s", key, getStackAddendum()); 15376 break; 15377 } 15378 } 15379 null !== fragment.ref && warning(!1, "Invalid attribute `)) + ("`" + (`ref` + "`"))) + ((` supplied to ` + ("`" + `React.Fragment`)) + ("`" + (`.%s", getStackAddendum()), 15380 currentlyValidatingElement = null; 15381 } 15382 function createElementWithValidation(type, props, children) { 15383 var validType = isValidElementType(type); 15384 if (!validType) { 15385 var info = ""; 15386 (void 0 === type || "object" == typeof type && null !== type && 0 === Object.keys(type).length) && (info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); 15387 var sourceInfo = getSourceInfoErrorAddendum(props); 15388 info += sourceInfo || getDeclarationErrorAddendum(), info += getStackAddendum() || ""; 15389 var typeString = void 0; 15390 typeString = null === type ? "null" : Array.isArray(type) ? "array" : typeof type, 15391 warning(!1, "React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info); 15392 } 15393 var element = createElement.apply(this, arguments); 15394 if (null == element) return element; 15395 if (validType) for (var i = 2; i < arguments.length; i++) validateChildKeys(arguments[i], type); 15396 return type === REACT_FRAGMENT_TYPE ? validateFragmentProps(element) : validatePropTypes(element), 15397 element; 15398 } 15399 function createFactoryWithValidation(type) { 15400 var validatedFactory = createElementWithValidation.bind(null, type); 15401 return validatedFactory.type = type, Object.defineProperty(validatedFactory, "type", { 15402 enumerable: !1, 15403 get: function() { 15404 return lowPriorityWarning$1(!1, "Factory.type is deprecated. Access the class directly before passing it to createFactory."), 15405 Object.defineProperty(this, "type", { 15406 value: type 15407 }), type; 15408 } 15409 }), validatedFactory; 15410 } 15411 function cloneElementWithValidation(element, props, children) { 15412 for (var newElement = cloneElement.apply(this, arguments), i = 2; i < arguments.length; i++) validateChildKeys(arguments[i], newElement.type); 15413 return validatePropTypes(newElement), newElement; 15414 } 15415 var _assign = __webpack_require__(74), invariant = __webpack_require__(49), emptyObject = __webpack_require__(97), warning = __webpack_require__(98), emptyFunction = __webpack_require__(50), checkPropTypes = __webpack_require__(143), hasSymbol = "function" == typeof Symbol && Symbol.for, REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103, REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106, REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107, REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108, REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114, REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109, REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110, REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111, REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112, REACT_TIMEOUT_TYPE = hasSymbol ? Symbol.for("react.timeout") : 60113, MAYBE_ITERATOR_SYMBOL = "function" == typeof Symbol && Symbol.iterator, FAUX_ITERATOR_SYMBOL = "@@iterator", lowPriorityWarning = function() {}, printWarning = function(format) { 15416 for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) args[_key - 1] = arguments[_key]; 15417 var argIndex = 0, message = "Warning: " + format.replace(/%s/g, function() { 15418 return args[argIndex++]; 15419 }); 15420 "undefined" != typeof console && console.warn(message); 15421 try { 15422 throw new Error(message); 15423 } catch (x) {} 15424 }; 15425 lowPriorityWarning = function(condition, format) { 15426 if (void 0 === format) throw new Error("` + "`")))) + (((`warning(condition, format, ...args)` + ("`" + ` requires a warning message argument"); 15427 if (!condition) { 15428 for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) args[_key2 - 2] = arguments[_key2]; 15429 printWarning.apply(void 0, [ format ].concat(args)); 15430 } 15431 }; 15432 var lowPriorityWarning$1 = lowPriorityWarning, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = { 15433 isMounted: function(publicInstance) { 15434 return !1; 15435 }, 15436 enqueueForceUpdate: function(publicInstance, callback, callerName) { 15437 warnNoop(publicInstance, "forceUpdate"); 15438 }, 15439 enqueueReplaceState: function(publicInstance, completeState, callback, callerName) { 15440 warnNoop(publicInstance, "replaceState"); 15441 }, 15442 enqueueSetState: function(publicInstance, partialState, callback, callerName) { 15443 warnNoop(publicInstance, "setState"); 15444 } 15445 }; 15446 Component.prototype.isReactComponent = {}, Component.prototype.setState = function(partialState, callback) { 15447 "object" != typeof partialState && "function" != typeof partialState && null != partialState && invariant(!1, "setState(...): takes an object of state variables to update or a function which returns an object of state variables."), 15448 this.updater.enqueueSetState(this, partialState, callback, "setState"); 15449 }, Component.prototype.forceUpdate = function(callback) { 15450 this.updater.enqueueForceUpdate(this, callback, "forceUpdate"); 15451 }; 15452 var deprecatedAPIs = { 15453 isMounted: [ "isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks." ], 15454 replaceState: [ "replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)." ] 15455 }; 15456 for (var fnName in deprecatedAPIs) deprecatedAPIs.hasOwnProperty(fnName) && function(methodName, info) { 15457 Object.defineProperty(Component.prototype, methodName, { 15458 get: function() { 15459 lowPriorityWarning$1(!1, "%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]); 15460 } 15461 }); 15462 }(fnName, deprecatedAPIs[fnName]); 15463 ComponentDummy.prototype = Component.prototype; 15464 var pureComponentPrototype = PureComponent.prototype = new ComponentDummy(); 15465 pureComponentPrototype.constructor = PureComponent, _assign(pureComponentPrototype, Component.prototype), 15466 pureComponentPrototype.isPureReactComponent = !0; 15467 var ReactCurrentOwner = { 15468 current: null 15469 }, hasOwnProperty = Object.prototype.hasOwnProperty, RESERVED_PROPS = { 15470 key: !0, 15471 ref: !0, 15472 __self: !0, 15473 __source: !0 15474 }, specialPropKeyWarningShown = void 0, specialPropRefWarningShown = void 0, ReactElement = function(type, key, ref, self, source, owner, props) { 15475 var element = { 15476 $$typeof: REACT_ELEMENT_TYPE, 15477 type: type, 15478 key: key, 15479 ref: ref, 15480 props: props, 15481 _owner: owner 15482 }; 15483 return element._store = {}, Object.defineProperty(element._store, "validated", { 15484 configurable: !1, 15485 enumerable: !1, 15486 writable: !0, 15487 value: !1 15488 }), Object.defineProperty(element, "_self", { 15489 configurable: !1, 15490 enumerable: !1, 15491 writable: !1, 15492 value: self 15493 }), Object.defineProperty(element, "_source", { 15494 configurable: !1, 15495 enumerable: !1, 15496 writable: !1, 15497 value: source 15498 }), Object.freeze && (Object.freeze(element.props), Object.freeze(element)), element; 15499 }, ReactDebugCurrentFrame = {}; 15500 ReactDebugCurrentFrame.getCurrentStack = null, ReactDebugCurrentFrame.getStackAddendum = function() { 15501 var impl = ReactDebugCurrentFrame.getCurrentStack; 15502 return impl ? impl() : null; 15503 }; 15504 var SEPARATOR = ".", SUBSEPARATOR = ":", didWarnAboutMaps = !1, userProvidedKeyEscapeRegex = /\/+/g, POOL_SIZE = 10, traverseContextPool = [], describeComponentFrame = function(name, source, ownerName) { 15505 return "\n in " + (name || "Unknown") + (source ? " (at " + source.fileName.replace(/^.*[\\\/]/, "") + ":" + source.lineNumber + ")" : ownerName ? " (created by " + ownerName + ")" : ""); 15506 }, currentlyValidatingElement = void 0, propTypesMisspellWarningShown = void 0, getDisplayName = function() {}, getStackAddendum = function() {}; 15507 currentlyValidatingElement = null, propTypesMisspellWarningShown = !1, getDisplayName = function(element) { 15508 return null == element ? "#empty" : "string" == typeof element || "number" == typeof element ? "#text" : "string" == typeof element.type ? element.type : element.type === REACT_FRAGMENT_TYPE ? "React.Fragment" : element.type.displayName || element.type.name || "Unknown"; 15509 }, getStackAddendum = function() { 15510 var stack = ""; 15511 if (currentlyValidatingElement) { 15512 var name = getDisplayName(currentlyValidatingElement), owner = currentlyValidatingElement._owner; 15513 stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner)); 15514 } 15515 return stack += ReactDebugCurrentFrame.getStackAddendum() || ""; 15516 }; 15517 var ownerHasKeyUseWarning = {}, React = { 15518 Children: { 15519 map: mapChildren, 15520 forEach: forEachChildren, 15521 count: countChildren, 15522 toArray: toArray, 15523 only: onlyChild 15524 }, 15525 createRef: createRef, 15526 Component: Component, 15527 PureComponent: PureComponent, 15528 createContext: createContext, 15529 forwardRef: forwardRef, 15530 Fragment: REACT_FRAGMENT_TYPE, 15531 StrictMode: REACT_STRICT_MODE_TYPE, 15532 unstable_AsyncMode: REACT_ASYNC_MODE_TYPE, 15533 unstable_Profiler: REACT_PROFILER_TYPE, 15534 createElement: createElementWithValidation, 15535 cloneElement: cloneElementWithValidation, 15536 createFactory: createFactoryWithValidation, 15537 isValidElement: isValidElement, 15538 version: "16.4.0", 15539 __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { 15540 ReactCurrentOwner: ReactCurrentOwner, 15541 assign: _assign 15542 } 15543 }; 15544 _assign(React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, { 15545 ReactDebugCurrentFrame: ReactDebugCurrentFrame, 15546 ReactComponentTreeHook: {} 15547 }); 15548 var React$2 = Object.freeze({ 15549 default: React 15550 }), React$3 = React$2 && React || React$2, react = React$3.default ? React$3.default : React$3; 15551 module.exports = react; 15552 }(); 15553 }).call(exports, __webpack_require__(2)); 15554 }, function(module, exports, __webpack_require__) { 15555 "use strict"; 15556 function A(a) { 15557 for (var b = arguments.length - 1, c = "https://reactjs.org/docs/error-decoder.html?不变量=“+a,d=0;d<b;d++)c+=“&args[]=”+编码成分(参数[d+1]); 15558 aa(!1, "Minified React error #" + a + "; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ", c); 15559 } 15560 function ia(a, b, c, d, e, f, g, h, k) { 15561 this._hasCaughtError = !1, this._caughtError = null; 15562 var n = Array.prototype.slice.call(arguments, 3); 15563 try { 15564 b.apply(c, n); 15565 } catch (r) { 15566 this._caughtError = r, this._hasCaughtError = !0; 15567 } 15568 } 15569 function ka() { 15570 if (B._hasRethrowError) { 15571 var a = B._rethrowError; 15572 throw B._rethrowError = null, B._hasRethrowError = !1, a; 15573 } 15574 } 15575 function na() { 15576 if (la) for (var a in ma) { 15577 var b = ma[a], c = la.indexOf(a); 15578 if (-1 < c || A("96", a), !oa[c]) { 15579 b.extractEvents || A("97", a), oa[c] = b, c = b.eventTypes; 15580 for (var d in c) { 15581 var e = void 0, f = c[d], g = b, h = d; 15582 pa.hasOwnProperty(h) && A("99", h), pa[h] = f; 15583 var k = f.phasedRegistrationNames; 15584 if (k) { 15585 for (e in k) k.hasOwnProperty(e) && qa(k[e], g, h); 15586 e = !0; 15587 } else f.registrationName ? (qa(f.registrationName, g, h), e = !0) : e = !1; 15588 e || A("98", d, a); 15589 } 15590 } 15591 } 15592 } 15593 function qa(a, b, c) { 15594 ra[a] && A("100", a), ra[a] = b, sa[a] = b.eventTypes[c].dependencies; 15595 } 15596 function ta(a) { 15597 la && A("101"), la = Array.prototype.slice.call(a), na(); 15598 } 15599 function ua(a) { 15600 var c, b = !1; 15601 for (c in a) if (a.hasOwnProperty(c)) { 15602 var d = a[c]; 15603 ma.hasOwnProperty(c) && ma[c] === d || (ma[c] && A("102", c), ma[c] = d, b = !0); 15604 } 15605 b && na(); 15606 } 15607 function za(a, b, c, d) { 15608 b = a.type || "unknown-event", a.currentTarget = ya(d), B.invokeGuardedCallbackAndCatchFirstError(b, c, void 0, a), 15609 a.currentTarget = null; 15610 } 15611 function Aa(a, b) { 15612 return null == b && A("30"), null == a ? b : Array.isArray(a) ? Array.isArray(b) ? (a.push.apply(a, b), 15613 a) : (a.push(b), a) : Array.isArray(b) ? [ a ].concat(b) : [ a, b ]; 15614 } 15615 function Ba(a, b, c) { 15616 Array.isArray(a) ? a.forEach(b, c) : a && b.call(c, a); 15617 } 15618 function Da(a, b) { 15619 if (a) { 15620 var c = a._dispatchListeners, d = a._dispatchInstances; 15621 if (Array.isArray(c)) for (var e = 0; e < c.length && !a.isPropagationStopped(); e++) za(a, b, c[e], d[e]); else c && za(a, b, c, d); 15622 a._dispatchListeners = null, a._dispatchInstances = null, a.isPersistent() || a.constructor.release(a); 15623 } 15624 } 15625 function Ea(a) { 15626 return Da(a, !0); 15627 } 15628 function Fa(a) { 15629 return Da(a, !1); 15630 } 15631 function Ha(a, b) { 15632 var c = a.stateNode; 15633 if (!c) return null; 15634 var d = wa(c); 15635 if (!d) return null; 15636 c = d[b]; 15637 a: switch (b) { 15638 case "onClick": 15639 case "onClickCapture": 15640 case "onDoubleClick": 15641 case "onDoubleClickCapture": 15642 case "onMouseDown": 15643 case "onMouseDownCapture": 15644 case "onMouseMove": 15645 case "onMouseMoveCapture": 15646 case "onMouseUp": 15647 case "onMouseUpCapture": 15648 (d = !d.disabled) || (a = a.type, d = !("button" === a || "input" === a || "select" === a || "textarea" === a)), 15649 a = !d; 15650 break a; 15651 15652 default: 15653 a = !1; 15654 } 15655 return a ? null : (c && "function" != typeof c && A("231", b, typeof c), c); 15656 } 15657 function Ia(a, b) { 15658 null !== a && (Ca = Aa(Ca, a)), a = Ca, Ca = null, a && (b ? Ba(a, Ea) : Ba(a, Fa), 15659 Ca && A("95"), B.rethrowCaughtError()); 15660 } 15661 function Ja(a, b, c, d) { 15662 for (var e = null, f = 0; f < oa.length; f++) { 15663 var g = oa[f]; 15664 g && (g = g.extractEvents(a, b, c, d)) && (e = Aa(e, g)); 15665 } 15666 Ia(e, !1); 15667 } 15668 function Na(a) { 15669 if (a[C]) return a[C]; 15670 for (;!a[C]; ) { 15671 if (!a.parentNode) return null; 15672 a = a.parentNode; 15673 } 15674 return a = a[C], 5 === a.tag || 6 === a.tag ? a : null; 15675 } 15676 function Oa(a) { 15677 if (5 === a.tag || 6 === a.tag) return a.stateNode; 15678 A("33"); 15679 } 15680 function Pa(a) { 15681 return a[Ma] || null; 15682 } 15683 function F(a) { 15684 do { 15685 a = a.return; 15686 } while (a && 5 !== a.tag); 15687 return a || null; 15688 } 15689 function Ra(a, b, c) { 15690 for (var d = []; a; ) d.push(a), a = F(a); 15691 for (a = d.length; 0 < a--; ) b(d[a], "captured", c); 15692 for (a = 0; a < d.length; a++) b(d[a], "bubbled", c); 15693 } 15694 function Sa(a, b, c) { 15695 (b = Ha(a, c.dispatchConfig.phasedRegistrationNames[b])) && (c._dispatchListeners = Aa(c._dispatchListeners, b), 15696 c._dispatchInstances = Aa(c._dispatchInstances, a)); 15697 } 15698 function Ta(a) { 15699 a && a.dispatchConfig.phasedRegistrationNames && Ra(a._targetInst, Sa, a); 15700 } 15701 function Ua(a) { 15702 if (a && a.dispatchConfig.phasedRegistrationNames) { 15703 var b = a._targetInst; 15704 b = b ? F(b) : null, Ra(b, Sa, a); 15705 } 15706 } 15707 function Va(a, b, c) { 15708 a && c && c.dispatchConfig.registrationName && (b = Ha(a, c.dispatchConfig.registrationName)) && (c._dispatchListeners = Aa(c._dispatchListeners, b), 15709 c._dispatchInstances = Aa(c._dispatchInstances, a)); 15710 } 15711 function Xa(a) { 15712 a && a.dispatchConfig.registrationName && Va(a._targetInst, null, a); 15713 } 15714 function Ya(a) { 15715 Ba(a, Ta); 15716 } 15717 function Za(a, b, c, d) { 15718 if (c && d) a: { 15719 for (var e = c, f = d, g = 0, h = e; h; h = F(h)) g++; 15720 h = 0; 15721 for (var k = f; k; k = F(k)) h++; 15722 for (;0 < g - h; ) e = F(e), g--; 15723 for (;0 < h - g; ) f = F(f), h--; 15724 for (;g--; ) { 15725 if (e === f || e === f.alternate) break a; 15726 e = F(e), f = F(f); 15727 } 15728 e = null; 15729 } else e = null; 15730 for (f = e, e = []; c && c !== f && (null === (g = c.alternate) || g !== f); ) e.push(c), 15731 c = F(c); 15732 for (c = []; d && d !== f && (null === (g = d.alternate) || g !== f); ) c.push(d), 15733 d = F(d); 15734 for (d = 0; d < e.length; d++) Va(e[d], "bubbled", a); 15735 for (a = c.length; 0 < a--; ) Va(c[a], "captured", b); 15736 } 15737 function ab(a, b) { 15738 var c = {}; 15739 return c[a.toLowerCase()] = b.toLowerCase(), c["Webkit" + a] = "webkit" + b, c["Moz" + a] = "moz" + b, 15740 c["ms" + a] = "MS" + b, c["O" + a] = "o" + b.toLowerCase(), c; 15741 } 15742 function eb(a) { 15743 if (cb[a]) return cb[a]; 15744 if (!bb[a]) return a; 15745 var c, b = bb[a]; 15746 for (c in b) if (b.hasOwnProperty(c) && c in db) return cb[a] = b[c]; 15747 return a; 15748 } 15749 function lb() { 15750 return !kb && m.canUseDOM && (kb = "textContent" in document.documentElement ? "textContent" : "innerText"), 15751 kb; 15752 } 15753 function mb() { 15754 if (G._fallbackText) return G._fallbackText; 15755 var a, d, b = G._startText, c = b.length, e = nb(), f = e.length; 15756 for (a = 0; a < c && b[a] === e[a]; a++) ; 15757 var g = c - a; 15758 for (d = 1; d <= g && b[c - d] === e[f - d]; d++) ; 15759 return G._fallbackText = e.slice(a, 1 < d ? 1 - d : void 0), G._fallbackText; 15760 } 15761 function nb() { 15762 return "value" in G._root ? G._root.value : G._root[lb()]; 15763 } 15764 function H(a, b, c, d) { 15765 this.dispatchConfig = a, this._targetInst = b, this.nativeEvent = c, a = this.constructor.Interface; 15766 for (var e in a) a.hasOwnProperty(e) && ((b = a[e]) ? this[e] = b(c) : "target" === e ? this.target = d : this[e] = c[e]); 15767 return this.isDefaultPrevented = (null != c.defaultPrevented ? c.defaultPrevented : !1 === c.returnValue) ? v.thatReturnsTrue : v.thatReturnsFalse, 15768 this.isPropagationStopped = v.thatReturnsFalse, this; 15769 } 15770 function rb(a, b, c, d) { 15771 if (this.eventPool.length) { 15772 var e = this.eventPool.pop(); 15773 return this.call(e, a, b, c, d), e; 15774 } 15775 return new this(a, b, c, d); 15776 } 15777 function sb(a) { 15778 a instanceof this || A("223"), a.destructor(), 10 > this.eventPool.length && this.eventPool.push(a); 15779 } 15780 function qb(a) { 15781 a.eventPool = [], a.getPooled = rb, a.release = sb; 15782 } 15783 function Db(a, b) { 15784 switch (a) { 15785 case "keyup": 15786 return -1 !== vb.indexOf(b.keyCode); 15787 15788 case "keydown": 15789 return 229 !== b.keyCode; 15790 15791 case "keypress": 15792 case "mousedown": 15793 case "blur": 15794 return !0; 15795 15796 default: 15797 return !1; 15798 } 15799 } 15800 function Eb(a) { 15801 return a = a.detail, "object" == typeof a && "data" in a ? a.data : null; 15802 } 15803 function Gb(a, b) { 15804 switch (a) { 15805 case "compositionend": 15806 return Eb(b); 15807 15808 case "keypress": 15809 return 32 !== b.which ? null : (Cb = !0, Ab); 15810 15811 case "textInput": 15812 return a = b.data, a === Ab && Cb ? null : a; 15813 15814 default: 15815 return null; 15816 } 15817 } 15818 function Hb(a, b) { 15819 if (Fb) return "compositionend" === a || !wb && Db(a, b) ? (a = mb(), G._root = null, 15820 G._startText = null, G._fallbackText = null, Fb = !1, a) : null; 15821 switch (a) { 15822 case "paste": 15823 return null; 15824 15825 case "keypress": 15826 if (!(b.ctrlKey || b.altKey || b.metaKey) || b.ctrlKey && b.altKey) { 15827 if (b.char && 1 < b.char.length) return b.char; 15828 if (b.which) return String.fromCharCode(b.which); 15829 } 15830 return null; 15831 15832 case "compositionend": 15833 return zb ? null : b.data; 15834 15835 default: 15836 return null; 15837 } 15838 } 15839 function Nb(a) { 15840 if (a = xa(a)) { 15841 Jb && "function" == typeof Jb.restoreControlledState || A("194"); 15842 var b = wa(a.stateNode); 15843 Jb.restoreControlledState(a.stateNode, a.type, b); 15844 } 15845 } 15846 function Ob(a) { 15847 Lb ? Mb ? Mb.push(a) : Mb = [ a ] : Lb = a; 15848 } 15849 function Pb() { 15850 return null !== Lb || null !== Mb; 15851 } 15852 function Qb() { 15853 if (Lb) { 15854 var a = Lb, b = Mb; 15855 if (Mb = Lb = null, Nb(a), b) for (a = 0; a < b.length; a++) Nb(b[a]); 15856 } 15857 } 15858 function Sb(a, b) { 15859 return a(b); 15860 } 15861 function Tb(a, b, c) { 15862 return a(b, c); 15863 } 15864 function Ub() {} 15865 function Wb(a, b) { 15866 if (Vb) return a(b); 15867 Vb = !0; 15868 try { 15869 return Sb(a, b); 15870 } finally { 15871 Vb = !1, Pb() && (Ub(), Qb()); 15872 } 15873 } 15874 function Yb(a) { 15875 var b = a && a.nodeName && a.nodeName.toLowerCase(); 15876 return "input" === b ? !!Xb[a.type] : "textarea" === b; 15877 } 15878 function Zb(a) { 15879 return a = a.target || window, a.correspondingUseElement && (a = a.correspondingUseElement), 15880 3 === a.nodeType ? a.parentNode : a; 15881 } 15882 function $b(a, b) { 15883 return !(!m.canUseDOM || b && !("addEventListener" in document)) && (a = "on" + a, 15884 b = a in document, b || (b = document.createElement("div"), b.setAttribute(a, "return;"), 15885 b = "function" == typeof b[a]), b); 15886 } 15887 function ac(a) { 15888 var b = a.type; 15889 return (a = a.nodeName) && "input" === a.toLowerCase() && ("checkbox" === b || "radio" === b); 15890 } 15891 function bc(a) { 15892 var b = ac(a) ? "checked" : "value", c = Object.getOwnPropertyDescriptor(a.constructor.prototype, b), d = "" + a[b]; 15893 if (!a.hasOwnProperty(b) && void 0 !== c && "function" == typeof c.get && "function" == typeof c.set) { 15894 var e = c.get, f = c.set; 15895 return Object.defineProperty(a, b, { 15896 configurable: !0, 15897 get: function() { 15898 return e.call(this); 15899 }, 15900 set: function(a) { 15901 d = "" + a, f.call(this, a); 15902 } 15903 }), Object.defineProperty(a, b, { 15904 enumerable: c.enumerable 15905 }), { 15906 getValue: function() { 15907 return d; 15908 }, 15909 setValue: function(a) { 15910 d = "" + a; 15911 }, 15912 stopTracking: function() { 15913 a._valueTracker = null, delete a[b]; 15914 } 15915 }; 15916 } 15917 } 15918 function cc(a) { 15919 a._valueTracker || (a._valueTracker = bc(a)); 15920 } 15921 function dc(a) { 15922 if (!a) return !1; 15923 var b = a._valueTracker; 15924 if (!b) return !0; 15925 var c = b.getValue(), d = ""; 15926 return a && (d = ac(a) ? a.checked ? "true" : "false" : a.value), (a = d) !== c && (b.setValue(a), 15927 !0); 15928 } 15929 function sc(a) { 15930 return null === a || void 0 === a ? null : (a = rc && a[rc] || a["@@iterator"], 15931 "function" == typeof a ? a : null); 15932 } 15933 function tc(a) { 15934 var b = a.type; 15935 if ("function" == typeof b) return b.displayName || b.name; 15936 if ("string" == typeof b) return b; 15937 switch (b) { 15938 case oc: 15939 return "AsyncMode"; 15940 15941 case nc: 15942 return "Context.Consumer"; 15943 15944 case hc: 15945 return "ReactFragment"; 15946 15947 case gc: 15948 return "ReactPortal"; 15949 15950 case jc: 15951 return "Profiler(" + a.pendingProps.id + ")"; 15952 15953 case mc: 15954 return "Context.Provider"; 15955 15956 case ic: 15957 return "StrictMode"; 15958 15959 case qc: 15960 return "Timeout"; 15961 } 15962 if ("object" == typeof b && null !== b) switch (b.$$typeof) { 15963 case pc: 15964 return a = b.render.displayName || b.render.name || "", "" !== a ? "ForwardRef(" + a + ")" : "ForwardRef"; 15965 } 15966 return null; 15967 } 15968 function vc(a) { 15969 var b = ""; 15970 do { 15971 a: switch (a.tag) { 15972 case 0: 15973 case 1: 15974 case 2: 15975 case 5: 15976 var c = a._debugOwner, d = a._debugSource, e = tc(a), f = null; 15977 c && (f = tc(c)), c = d, e = "\n in " + (e || "Unknown") + (c ? " (at " + c.fileName.replace(/^.*[\\\/]/, "") + ":" + c.lineNumber + ")" : f ? " (created by " + f + ")" : ""); 15978 break a; 15979 15980 default: 15981 e = ""; 15982 } 15983 b += e, a = a.return; 15984 } while (a); 15985 return b; 15986 } 15987 function zc(a) { 15988 return !!yc.hasOwnProperty(a) || !xc.hasOwnProperty(a) && (wc.test(a) ? yc[a] = !0 : (xc[a] = !0, 15989 !1)); 15990 } 15991 function Ac(a, b, c, d) { 15992 if (null !== c && 0 === c.type) return !1; 15993 switch (typeof b) { 15994 case "function": 15995 case "symbol": 15996 return !0; 15997 15998 case "boolean": 15999 return !d && (null !== c ? !c.acceptsBooleans : "data-" !== (a = a.toLowerCase().slice(0, 5)) && "aria-" !== a); 16000 16001 default: 16002 return !1; 16003 } 16004 } 16005 function Bc(a, b, c, d) { 16006 if (null === b || void 0 === b || Ac(a, b, c, d)) return !0; 16007 if (d) return !1; 16008 if (null !== c) switch (c.type) { 16009 case 3: 16010 return !b; 16011 16012 case 4: 16013 return !1 === b; 16014 16015 case 5: 16016 return isNaN(b); 16017 16018 case 6: 16019 return isNaN(b) || 1 > b; 16020 } 16021 return !1; 16022 } 16023 function J(a, b, c, d, e) { 16024 this.acceptsBooleans = 2 === b || 3 === b || 4 === b, this.attributeName = d, this.attributeNamespace = e, 16025 this.mustUseProperty = c, this.propertyName = a, this.type = b; 16026 } 16027 function Dc(a) { 16028 return a[1].toUpperCase(); 16029 } 16030 function Ec(a, b, c, d) { 16031 var e = K.hasOwnProperty(b) ? K[b] : null; 16032 (null !== e ? 0 === e.type : !d && (2 < b.length && ("o" === b[0] || "O" === b[0]) && ("n" === b[1] || "N" === b[1]))) || (Bc(b, c, e, d) && (c = null), 16033 d || null === e ? zc(b) && (null === c ? a.removeAttribute(b) : a.setAttribute(b, "" + c)) : e.mustUseProperty ? a[e.propertyName] = null === c ? 3 !== e.type && "" : c : (b = e.attributeName, 16034 d = e.attributeNamespace, null === c ? a.removeAttribute(b) : (e = e.type, c = 3 === e || 4 === e && !0 === c ? "" : "" + c, 16035 d ? a.setAttributeNS(d, b, c) : a.setAttribute(b, c)))); 16036 } 16037 function Fc(a, b) { 16038 var c = b.checked; 16039 return p({}, b, { 16040 defaultChecked: void 0, 16041 defaultValue: void 0, 16042 value: void 0, 16043 checked: null != c ? c : a._wrapperState.initialChecked 16044 }); 16045 } 16046 function Gc(a, b) { 16047 var c = null == b.defaultValue ? "" : b.defaultValue, d = null != b.checked ? b.checked : b.defaultChecked; 16048 c = Hc(null != b.value ? b.value : c), a._wrapperState = { 16049 initialChecked: d, 16050 initialValue: c, 16051 controlled: "checkbox" === b.type || "radio" === b.type ? null != b.checked : null != b.value 16052 }; 16053 } 16054 function Ic(a, b) { 16055 null != (b = b.checked) && Ec(a, "checked", b, !1); 16056 } 16057 function Jc(a, b) { 16058 Ic(a, b); 16059 var c = Hc(b.value); 16060 null != c && ("number" === b.type ? (0 === c && "" === a.value || a.value != c) && (a.value = "" + c) : a.value !== "" + c && (a.value = "" + c)), 16061 b.hasOwnProperty("value") ? Kc(a, b.type, c) : b.hasOwnProperty("defaultValue") && Kc(a, b.type, Hc(b.defaultValue)), 16062 null == b.checked && null != b.defaultChecked && (a.defaultChecked = !!b.defaultChecked); 16063 } 16064 function Lc(a, b) { 16065 (b.hasOwnProperty("value") || b.hasOwnProperty("defaultValue")) && ("" === a.value && (a.value = "" + a._wrapperState.initialValue), 16066 a.defaultValue = "" + a._wrapperState.initialValue), b = a.name, "" !== b && (a.name = ""), 16067 a.defaultChecked = !a.defaultChecked, a.defaultChecked = !a.defaultChecked, "" !== b && (a.name = b); 16068 } 16069 function Kc(a, b, c) { 16070 "number" === b && a.ownerDocument.activeElement === a || (null == c ? a.defaultValue = "" + a._wrapperState.initialValue : a.defaultValue !== "" + c && (a.defaultValue = "" + c)); 16071 } 16072 function Hc(a) { 16073 switch (typeof a) { 16074 case "boolean": 16075 case "number": 16076 case "object": 16077 case "string": 16078 case "undefined": 16079 return a; 16080 16081 default: 16082 return ""; 16083 } 16084 } 16085 function Nc(a, b, c) { 16086 return a = H.getPooled(Mc.change, a, b, c), a.type = "change", Ob(c), Ya(a), a; 16087 } 16088 function Qc(a) { 16089 Ia(a, !1); 16090 } 16091 function Rc(a) { 16092 if (dc(Oa(a))) return a; 16093 } 16094 function Sc(a, b) { 16095 if ("change" === a) return b; 16096 } 16097 function Uc() { 16098 Oc && (Oc.detachEvent("onpropertychange", Vc), Pc = Oc = null); 16099 } 16100 function Vc(a) { 16101 "value" === a.propertyName && Rc(Pc) && (a = Nc(Pc, a, Zb(a)), Wb(Qc, a)); 16102 } 16103 function Wc(a, b, c) { 16104 "focus" === a ? (Uc(), Oc = b, Pc = c, Oc.attachEvent("onpropertychange", Vc)) : "blur" === a && Uc(); 16105 } 16106 function Xc(a) { 16107 if ("selectionchange" === a || "keyup" === a || "keydown" === a) return Rc(Pc); 16108 } 16109 function Yc(a, b) { 16110 if ("click" === a) return Rc(b); 16111 } 16112 function Zc(a, b) { 16113 if ("input" === a || "change" === a) return Rc(b); 16114 } 16115 function cd(a) { 16116 var b = this.nativeEvent; 16117 return b.getModifierState ? b.getModifierState(a) : !!(a = bd[a]) && !!b[a]; 16118 } 16119 function dd() { 16120 return cd; 16121 } 16122 function id(a) { 16123 var b = a; 16124 if (a.alternate) for (;b.return; ) b = b.return; else { 16125 if (0 != (2 & b.effectTag)) return 1; 16126 for (;b.return; ) if (b = b.return, 0 != (2 & b.effectTag)) return 1; 16127 } 16128 return 3 === b.tag ? 2 : 3; 16129 } 16130 function jd(a) { 16131 2 !== id(a) && A("188"); 16132 } 16133 function kd(a) { 16134 var b = a.alternate; 16135 if (!b) return b = id(a), 3 === b && A("188"), 1 === b ? null : a; 16136 for (var c = a, d = b; ;) { 16137 var e = c.return, f = e ? e.alternate : null; 16138 if (!e || !f) break; 16139 if (e.child === f.child) { 16140 for (var g = e.child; g; ) { 16141 if (g === c) return jd(e), a; 16142 if (g === d) return jd(e), b; 16143 g = g.sibling; 16144 } 16145 A("188"); 16146 } 16147 if (c.return !== d.return) c = e, d = f; else { 16148 g = !1; 16149 for (var h = e.child; h; ) { 16150 if (h === c) { 16151 g = !0, c = e, d = f; 16152 break; 16153 } 16154 if (h === d) { 16155 g = !0, d = e, c = f; 16156 break; 16157 } 16158 h = h.sibling; 16159 } 16160 if (!g) { 16161 for (h = f.child; h; ) { 16162 if (h === c) { 16163 g = !0, c = f, d = e; 16164 break; 16165 } 16166 if (h === d) { 16167 g = !0, d = f, c = e; 16168 break; 16169 } 16170 h = h.sibling; 16171 } 16172 g || A("189"); 16173 } 16174 } 16175 c.alternate !== d && A("190"); 16176 } 16177 return 3 !== c.tag && A("188"), c.stateNode.current === c ? a : b; 16178 } 16179 function ld(a) { 16180 if (!(a = kd(a))) return null; 16181 for (var b = a; ;) { 16182 if (5 === b.tag || 6 === b.tag) return b; 16183 if (b.child) b.child.return = b, b = b.child; else { 16184 if (b === a) break; 16185 for (;!b.sibling; ) { 16186 if (!b.return || b.return === a) return null; 16187 b = b.return; 16188 } 16189 b.sibling.return = b.return, b = b.sibling; 16190 } 16191 } 16192 return null; 16193 } 16194 function md(a) { 16195 if (!(a = kd(a))) return null; 16196 for (var b = a; ;) { 16197 if (5 === b.tag || 6 === b.tag) return b; 16198 if (b.child && 4 !== b.tag) b.child.return = b, b = b.child; else { 16199 if (b === a) break; 16200 for (;!b.sibling; ) { 16201 if (!b.return || b.return === a) return null; 16202 b = b.return; 16203 } 16204 b.sibling.return = b.return, b = b.sibling; 16205 } 16206 } 16207 return null; 16208 } 16209 function qd(a) { 16210 var b = a.keyCode; 16211 return "charCode" in a ? 0 === (a = a.charCode) && 13 === b && (a = 13) : a = b, 16212 10 === a && (a = 13), 32 <= a || 13 === a ? a : 0; 16213 } 16214 function Bd(a, b) { 16215 var c = a[0]; 16216 a = a[1]; 16217 var d = "on" + (a[0].toUpperCase() + a.slice(1)); 16218 b = { 16219 phasedRegistrationNames: { 16220 bubbled: d, 16221 captured: d + "Capture" 16222 }, 16223 dependencies: [ c ], 16224 isInteractive: b 16225 }, zd[a] = b, Ad[c] = b; 16226 } 16227 function Fd(a) { 16228 var b = a.targetInst; 16229 do { 16230 if (!b) { 16231 a.ancestors.push(b); 16232 break; 16233 } 16234 var c; 16235 for (c = b; c.return; ) c = c.return; 16236 if (!(c = 3 !== c.tag ? null : c.stateNode.containerInfo)) break; 16237 a.ancestors.push(b), b = Na(c); 16238 } while (b); 16239 for (c = 0; c < a.ancestors.length; c++) b = a.ancestors[c], Ja(a.topLevelType, b, a.nativeEvent, Zb(a.nativeEvent)); 16240 } 16241 function Id(a) { 16242 Gd = !!a; 16243 } 16244 function L(a, b) { 16245 if (!b) return null; 16246 var c = (Dd(a) ? Jd : Kd).bind(null, a); 16247 b.addEventListener(a, c, !1); 16248 } 16249 function Ld(a, b) { 16250 if (!b) return null; 16251 var c = (Dd(a) ? Jd : Kd).bind(null, a); 16252 b.addEventListener(a, c, !0); 16253 } 16254 function Jd(a, b) { 16255 Tb(Kd, a, b); 16256 } 16257 function Kd(a, b) { 16258 if (Gd) { 16259 var c = Zb(b); 16260 if (c = Na(c), null === c || "number" != typeof c.tag || 2 === id(c) || (c = null), 16261 Ed.length) { 16262 var d = Ed.pop(); 16263 d.topLevelType = a, d.nativeEvent = b, d.targetInst = c, a = d; 16264 } else a = { 16265 topLevelType: a, 16266 nativeEvent: b, 16267 targetInst: c, 16268 ancestors: [] 16269 }; 16270 try { 16271 Wb(Fd, a); 16272 } finally { 16273 a.topLevelType = null, a.nativeEvent = null, a.targetInst = null, a.ancestors.length = 0, 16274 10 > Ed.length && Ed.push(a); 16275 } 16276 } 16277 } 16278 function Qd(a) { 16279 return Object.prototype.hasOwnProperty.call(a, Pd) || (a[Pd] = Od++, Nd[a[Pd]] = {}), 16280 Nd[a[Pd]]; 16281 } 16282 function Rd(a) { 16283 for (;a && a.firstChild; ) a = a.firstChild; 16284 return a; 16285 } 16286 function Sd(a, b) { 16287 var c = Rd(a); 16288 a = 0; 16289 for (var d; c; ) { 16290 if (3 === c.nodeType) { 16291 if (d = a + c.textContent.length, a <= b && d >= b) return { 16292 node: c, 16293 offset: b - a 16294 }; 16295 a = d; 16296 } 16297 a: { 16298 for (;c; ) { 16299 if (c.nextSibling) { 16300 c = c.nextSibling; 16301 break a; 16302 } 16303 c = c.parentNode; 16304 } 16305 c = void 0; 16306 } 16307 c = Rd(c); 16308 } 16309 } 16310 function Td(a) { 16311 var b = a && a.nodeName && a.nodeName.toLowerCase(); 16312 return b && ("input" === b && "text" === a.type || "textarea" === b || "true" === a.contentEditable); 16313 } 16314 function $d(a, b) { 16315 if (Zd || null == Wd || Wd !== da()) return null; 16316 var c = Wd; 16317 return "selectionStart" in c && Td(c) ? c = { 16318 start: c.selectionStart, 16319 end: c.selectionEnd 16320 } : window.getSelection ? (c = window.getSelection(), c = { 16321 anchorNode: c.anchorNode, 16322 anchorOffset: c.anchorOffset, 16323 focusNode: c.focusNode, 16324 focusOffset: c.focusOffset 16325 }) : c = void 0, Yd && ea(Yd, c) ? null : (Yd = c, a = H.getPooled(Vd.select, Xd, a, b), 16326 a.type = "select", a.target = Wd, Ya(a), a); 16327 } 16328 function te(a) { 16329 var b = ""; 16330 return ca.Children.forEach(a, function(a) { 16331 null == a || "string" != typeof a && "number" != typeof a || (b += a); 16332 }), b; 16333 } 16334 function ue(a, b) { 16335 return a = p({ 16336 children: void 0 16337 }, b), (b = te(b.children)) && (a.children = b), a; 16338 } 16339 function ve(a, b, c, d) { 16340 if (a = a.options, b) { 16341 b = {}; 16342 for (var e = 0; e < c.length; e++) b["$" + c[e]] = !0; 16343 for (c = 0; c < a.length; c++) e = b.hasOwnProperty("$" + a[c].value), a[c].selected !== e && (a[c].selected = e), 16344 e && d && (a[c].defaultSelected = !0); 16345 } else { 16346 for (c = "" + c, b = null, e = 0; e < a.length; e++) { 16347 if (a[e].value === c) return a[e].selected = !0, void (d && (a[e].defaultSelected = !0)); 16348 null !== b || a[e].disabled || (b = a[e]); 16349 } 16350 null !== b && (b.selected = !0); 16351 } 16352 } 16353 function we(a, b) { 16354 var c = b.value; 16355 a._wrapperState = { 16356 initialValue: null != c ? c : b.defaultValue, 16357 wasMultiple: !!b.multiple 16358 }; 16359 } 16360 function xe(a, b) { 16361 return null != b.dangerouslySetInnerHTML && A("91"), p({}, b, { 16362 value: void 0, 16363 defaultValue: void 0, 16364 children: "" + a._wrapperState.initialValue 16365 }); 16366 } 16367 function ye(a, b) { 16368 var c = b.value; 16369 null == c && (c = b.defaultValue, b = b.children, null != b && (null != c && A("92"), 16370 Array.isArray(b) && (1 >= b.length || A("93"), b = b[0]), c = "" + b), null == c && (c = "")), 16371 a._wrapperState = { 16372 initialValue: "" + c 16373 }; 16374 } 16375 function ze(a, b) { 16376 var c = b.value; 16377 null != c && (c = "" + c, c !== a.value && (a.value = c), null == b.defaultValue && (a.defaultValue = c)), 16378 null != b.defaultValue && (a.defaultValue = b.defaultValue); 16379 } 16380 function Ae(a) { 16381 var b = a.textContent; 16382 b === a._wrapperState.initialValue && (a.value = b); 16383 } 16384 function Ce(a) { 16385 switch (a) { 16386 case "svg": 16387 return "http://www. W3.org/2000/SVG; 16388 16389 case "math": 16390 return "http://www.w3.org/1998/math/mathml; 16391 16392 default: 16393 return "http://www.w3.org/1999/xhtml; 16394 } 16395 } 16396 function De(a, b) { 16397 return null == a || "http://www. W3.org/1999/xHTML===a?Ce(b) : "http://www.w3.org/2000/svg" === a && "foreignObject" === b ? "http://www.w3.org/1999/xhtml" : a; 16398 } 16399 function Ge(a, b) { 16400 if (b) { 16401 var c = a.firstChild; 16402 if (c && c === a.lastChild && 3 === c.nodeType) return void (c.nodeValue = b); 16403 } 16404 a.textContent = b; 16405 } 16406 function Je(a, b) { 16407 a = a.style; 16408 for (var c in b) if (b.hasOwnProperty(c)) { 16409 var d = 0 === c.indexOf("--"), e = c, f = b[c]; 16410 e = null == f || "boolean" == typeof f || "" === f ? "" : d || "number" != typeof f || 0 === f || He.hasOwnProperty(e) && He[e] ? ("" + f).trim() : f + "px", 16411 "float" === c && (c = "cssFloat"), d ? a.setProperty(c, e) : a[c] = e; 16412 } 16413 } 16414 function Le(a, b, c) { 16415 b && (Ke[a] && (null != b.children || null != b.dangerouslySetInnerHTML) && A("137", a, c()), 16416 null != b.dangerouslySetInnerHTML && (null != b.children && A("60"), "object" == typeof b.dangerouslySetInnerHTML && "__html" in b.dangerouslySetInnerHTML || A("61")), 16417 null != b.style && "object" != typeof b.style && A("62", c())); 16418 } 16419 function Me(a, b) { 16420 if (-1 === a.indexOf("-")) return "string" == typeof b.is; 16421 switch (a) { 16422 case "annotation-xml": 16423 case "color-profile": 16424 case "font-face": 16425 case "font-face-src": 16426 case "font-face-uri": 16427 case "font-face-format": 16428 case "font-face-name": 16429 case "missing-glyph": 16430 return !1; 16431 16432 default: 16433 return !0; 16434 } 16435 } 16436 function Oe(a, b) { 16437 a = 9 === a.nodeType || 11 === a.nodeType ? a : a.ownerDocument; 16438 var c = Qd(a); 16439 b = sa[b]; 16440 for (var d = 0; d < b.length; d++) { 16441 var e = b[d]; 16442 if (!c.hasOwnProperty(e) || !c[e]) { 16443 switch (e) { 16444 case "scroll": 16445 Ld("scroll", a); 16446 break; 16447 16448 case "focus": 16449 case "blur": 16450 Ld("focus", a), Ld("blur", a), c.blur = !0, c.focus = !0; 16451 break; 16452 16453 case "cancel": 16454 case "close": 16455 $b(e, !0) && Ld(e, a); 16456 break; 16457 16458 case "invalid": 16459 case "submit": 16460 case "reset": 16461 break; 16462 16463 default: 16464 -1 === jb.indexOf(e) && L(e, a); 16465 } 16466 c[e] = !0; 16467 } 16468 } 16469 } 16470 function Pe(a, b, c, d) { 16471 return c = 9 === c.nodeType ? c : c.ownerDocument, d === Be.html && (d = Ce(a)), 16472 d === Be.html ? "script" === a ? (a = c.createElement("div"), a.innerHTML = "<script><\/script>", 16473 a = a.removeChild(a.firstChild)) : a = "string" == typeof b.is ? c.createElement(a, { 16474 is: b.is 16475 }) : c.createElement(a) : a = c.createElementNS(d, a), a; 16476 } 16477 function Qe(a, b) { 16478 return (9 === b.nodeType ? b : b.ownerDocument).createTextNode(a); 16479 } 16480 function Re(a, b, c, d) { 16481 var e = Me(b, c); 16482 switch (b) { 16483 case "iframe": 16484 case "object": 16485 L("load", a); 16486 var f = c; 16487 break; 16488 16489 case "video": 16490 case "audio": 16491 for (f = 0; f < jb.length; f++) L(jb[f], a); 16492 f = c; 16493 break; 16494 16495 case "source": 16496 L("error", a), f = c; 16497 break; 16498 16499 case "img": 16500 case "image": 16501 case "link": 16502 L("error", a), L("load", a), f = c; 16503 break; 16504 16505 case "form": 16506 L("reset", a), L("submit", a), f = c; 16507 break; 16508 16509 case "details": 16510 L("toggle", a), f = c; 16511 break; 16512 16513 case "input": 16514 Gc(a, c), f = Fc(a, c), L("invalid", a), Oe(d, "onChange"); 16515 break; 16516 16517 case "option": 16518 f = ue(a, c); 16519 break; 16520 16521 case "select": 16522 we(a, c), f = p({}, c, { 16523 value: void 0 16524 }), L("invalid", a), Oe(d, "onChange"); 16525 break; 16526 16527 case "textarea": 16528 ye(a, c), f = xe(a, c), L("invalid", a), Oe(d, "onChange"); 16529 break; 16530 16531 default: 16532 f = c; 16533 } 16534 Le(b, f, Ne); 16535 var h, g = f; 16536 for (h in g) if (g.hasOwnProperty(h)) { 16537 var k = g[h]; 16538 "style" === h ? Je(a, k, Ne) : "dangerouslySetInnerHTML" === h ? null != (k = k ? k.__html : void 0) && Fe(a, k) : "children" === h ? "string" == typeof k ? ("textarea" !== b || "" !== k) && Ge(a, k) : "number" == typeof k && Ge(a, "" + k) : "suppressContentEditableWarning" !== h && "suppressHydrationWarning" !== h && "autoFocus" !== h && (ra.hasOwnProperty(h) ? null != k && Oe(d, h) : null != k && Ec(a, h, k, e)); 16539 } 16540 switch (b) { 16541 case "input": 16542 cc(a), Lc(a, c); 16543 break; 16544 16545 case "textarea": 16546 cc(a), Ae(a, c); 16547 break; 16548 16549 case "option": 16550 null != c.value && a.setAttribute("value", c.value); 16551 break; 16552 16553 case "select": 16554 a.multiple = !!c.multiple, b = c.value, null != b ? ve(a, !!c.multiple, b, !1) : null != c.defaultValue && ve(a, !!c.multiple, c.defaultValue, !0); 16555 break; 16556 16557 default: 16558 "function" == typeof f.onClick && (a.onclick = v); 16559 } 16560 } 16561 function Se(a, b, c, d, e) { 16562 var f = null; 16563 switch (b) { 16564 case "input": 16565 c = Fc(a, c), d = Fc(a, d), f = []; 16566 break; 16567 16568 case "option": 16569 c = ue(a, c), d = ue(a, d), f = []; 16570 break; 16571 16572 case "select": 16573 c = p({}, c, { 16574 value: void 0 16575 }), d = p({}, d, { 16576 value: void 0 16577 }), f = []; 16578 break; 16579 16580 case "textarea": 16581 c = xe(a, c), d = xe(a, d), f = []; 16582 break; 16583 16584 default: 16585 "function" != typeof c.onClick && "function" == typeof d.onClick && (a.onclick = v); 16586 } 16587 Le(b, d, Ne), b = a = void 0; 16588 var g = null; 16589 for (a in c) if (!d.hasOwnProperty(a) && c.hasOwnProperty(a) && null != c[a]) if ("style" === a) { 16590 var h = c[a]; 16591 for (b in h) h.hasOwnProperty(b) && (g || (g = {}), g[b] = ""); 16592 } else "dangerouslySetInnerHTML" !== a && "children" !== a && "suppressContentEditableWarning" !== a && "suppressHydrationWarning" !== a && "autoFocus" !== a && (ra.hasOwnProperty(a) ? f || (f = []) : (f = f || []).push(a, null)); 16593 for (a in d) { 16594 var k = d[a]; 16595 if (h = null != c ? c[a] : void 0, d.hasOwnProperty(a) && k !== h && (null != k || null != h)) if ("style" === a) if (h) { 16596 for (b in h) !h.hasOwnProperty(b) || k && k.hasOwnProperty(b) || (g || (g = {}), 16597 g[b] = ""); 16598 for (b in k) k.hasOwnProperty(b) && h[b] !== k[b] && (g || (g = {}), g[b] = k[b]); 16599 } else g || (f || (f = []), f.push(a, g)), g = k; else "dangerouslySetInnerHTML" === a ? (k = k ? k.__html : void 0, 16600 h = h ? h.__html : void 0, null != k && h !== k && (f = f || []).push(a, "" + k)) : "children" === a ? h === k || "string" != typeof k && "number" != typeof k || (f = f || []).push(a, "" + k) : "suppressContentEditableWarning" !== a && "suppressHydrationWarning" !== a && (ra.hasOwnProperty(a) ? (null != k && Oe(e, a), 16601 f || h === k || (f = [])) : (f = f || []).push(a, k)); 16602 } 16603 return g && (f = f || []).push("style", g), f; 16604 } 16605 function Te(a, b, c, d, e) { 16606 "input" === c && "radio" === e.type && null != e.name && Ic(a, e), Me(c, d), d = Me(c, e); 16607 for (var f = 0; f < b.length; f += 2) { 16608 var g = b[f], h = b[f + 1]; 16609 "style" === g ? Je(a, h, Ne) : "dangerouslySetInnerHTML" === g ? Fe(a, h) : "children" === g ? Ge(a, h) : Ec(a, g, h, d); 16610 } 16611 switch (c) { 16612 case "input": 16613 Jc(a, e); 16614 break; 16615 16616 case "textarea": 16617 ze(a, e); 16618 break; 16619 16620 case "select": 16621 a._wrapperState.initialValue = void 0, b = a._wrapperState.wasMultiple, a._wrapperState.wasMultiple = !!e.multiple, 16622 c = e.value, null != c ? ve(a, !!e.multiple, c, !1) : b !== !!e.multiple && (null != e.defaultValue ? ve(a, !!e.multiple, e.defaultValue, !0) : ve(a, !!e.multiple, e.multiple ? [] : "", !1)); 16623 } 16624 } 16625 function Ue(a, b, c, d, e) { 16626 switch (b) { 16627 case "iframe": 16628 case "object": 16629 L("load", a); 16630 break; 16631 16632 case "video": 16633 case "audio": 16634 for (d = 0; d < jb.length; d++) L(jb[d], a); 16635 break; 16636 16637 case "source": 16638 L("error", a); 16639 break; 16640 16641 case "img": 16642 case "image": 16643 case "link": 16644 L("error", a), L("load", a); 16645 break; 16646 16647 case "form": 16648 L("reset", a), L("submit", a); 16649 break; 16650 16651 case "details": 16652 L("toggle", a); 16653 break; 16654 16655 case "input": 16656 Gc(a, c), L("invalid", a), Oe(e, "onChange"); 16657 break; 16658 16659 case "select": 16660 we(a, c), L("invalid", a), Oe(e, "onChange"); 16661 break; 16662 16663 case "textarea": 16664 ye(a, c), L("invalid", a), Oe(e, "onChange"); 16665 } 16666 Le(b, c, Ne), d = null; 16667 for (var f in c) if (c.hasOwnProperty(f)) { 16668 var g = c[f]; 16669 "children" === f ? "string" == typeof g ? a.textContent !== g && (d = [ "children", g ]) : "number" == typeof g && a.textContent !== "" + g && (d = [ "children", "" + g ]) : ra.hasOwnProperty(f) && null != g && Oe(e, f); 16670 } 16671 switch (b) { 16672 case "input": 16673 cc(a), Lc(a, c); 16674 break; 16675 16676 case "textarea": 16677 cc(a), Ae(a, c); 16678 break; 16679 16680 case "select": 16681 case "option": 16682 break; 16683 16684 default: 16685 "function" == typeof c.onClick && (a.onclick = v); 16686 } 16687 return d; 16688 } 16689 function Ve(a, b) { 16690 return a.nodeValue !== b; 16691 } 16692 function Ze(a, b) { 16693 switch (a) { 16694 case "button": 16695 case "input": 16696 case "select": 16697 case "textarea": 16698 return !!b.autoFocus; 16699 } 16700 return !1; 16701 } 16702 function $e(a, b) { 16703 return "textarea" === a || "string" == typeof b.children || "number" == typeof b.children || "object" == typeof b.dangerouslySetInnerHTML && null !== b.dangerouslySetInnerHTML && "string" == typeof b.dangerouslySetInnerHTML.__html; 16704 } 16705 function df(a) { 16706 for (a = a.nextSibling; a && 1 !== a.nodeType && 3 !== a.nodeType; ) a = a.nextSibling; 16707 return a; 16708 } 16709 function ef(a) { 16710 for (a = a.firstChild; a && 1 !== a.nodeType && 3 !== a.nodeType; ) a = a.nextSibling; 16711 return a; 16712 } 16713 function hf(a) { 16714 return { 16715 current: a 16716 }; 16717 } 16718 function M(a) { 16719 0 > gf || (a.current = ff[gf], ff[gf] = null, gf--); 16720 } 16721 function N(a, b) { 16722 gf++, ff[gf] = a.current, a.current = b; 16723 } 16724 function lf(a) { 16725 return mf(a) ? kf : jf.current; 16726 } 16727 function nf(a, b) { 16728 var c = a.type.contextTypes; 16729 if (!c) return ha; 16730 var d = a.stateNode; 16731 if (d && d.__reactInternalMemoizedUnmaskedChildContext === b) return d.__reactInternalMemoizedMaskedChildContext; 16732 var f, e = {}; 16733 for (f in c) e[f] = b[f]; 16734 return d && (a = a.stateNode, a.__reactInternalMemoizedUnmaskedChildContext = b, 16735 a.__reactInternalMemoizedMaskedChildContext = e), e; 16736 } 16737 function mf(a) { 16738 return 2 === a.tag && null != a.type.childContextTypes; 16739 } 16740 function of(a) { 16741 mf(a) && (M(O, a), M(jf, a)); 16742 } 16743 function pf(a) { 16744 M(O, a), M(jf, a); 16745 } 16746 function qf(a, b, c) { 16747 jf.current !== ha && A("168"), N(jf, b, a), N(O, c, a); 16748 } 16749 function rf(a, b) { 16750 var c = a.stateNode, d = a.type.childContextTypes; 16751 if ("function" != typeof c.getChildContext) return b; 16752 c = c.getChildContext(); 16753 for (var e in c) e in d || A("108", tc(a) || "Unknown", e); 16754 return p({}, b, c); 16755 } 16756 function sf(a) { 16757 if (!mf(a)) return !1; 16758 var b = a.stateNode; 16759 return b = b && b.__reactInternalMemoizedMergedChildContext || ha, kf = jf.current, 16760 N(jf, b, a), N(O, O.current, a), !0; 16761 } 16762 function tf(a, b) { 16763 var c = a.stateNode; 16764 if (c || A("169"), b) { 16765 var d = rf(a, kf); 16766 c.__reactInternalMemoizedMergedChildContext = d, M(O, a), M(jf, a), N(jf, d, a); 16767 } else M(O, a); 16768 N(O, b, a); 16769 } 16770 function uf(a, b, c, d) { 16771 this.tag = a, this.key = c, this.sibling = this.child = this.return = this.stateNode = this.type = null, 16772 this.index = 0, this.ref = null, this.pendingProps = b, this.memoizedState = this.updateQueue = this.memoizedProps = null, 16773 this.mode = d, this.effectTag = 0, this.lastEffect = this.firstEffect = this.nextEffect = null, 16774 this.expirationTime = 0, this.alternate = null; 16775 } 16776 function vf(a, b, c) { 16777 var d = a.alternate; 16778 return null === d ? (d = new uf(a.tag, b, a.key, a.mode), d.type = a.type, d.stateNode = a.stateNode, 16779 d.alternate = a, a.alternate = d) : (d.pendingProps = b, d.effectTag = 0, d.nextEffect = null, 16780 d.firstEffect = null, d.lastEffect = null), d.expirationTime = c, d.child = a.child, 16781 d.memoizedProps = a.memoizedProps, d.memoizedState = a.memoizedState, d.updateQueue = a.updateQueue, 16782 d.sibling = a.sibling, d.index = a.index, d.ref = a.ref, d; 16783 } 16784 function wf(a, b, c) { 16785 var d = a.type, e = a.key; 16786 if (a = a.props, "function" == typeof d) var f = d.prototype && d.prototype.isReactComponent ? 2 : 0; else if ("string" == typeof d) f = 5; else switch (d) { 16787 case hc: 16788 return xf(a.children, b, c, e); 16789 16790 case oc: 16791 f = 11, b |= 3; 16792 break; 16793 16794 case ic: 16795 f = 11, b |= 2; 16796 break; 16797 16798 case jc: 16799 return d = new uf(15, a, e, 4 | b), d.type = jc, d.expirationTime = c, d; 16800 16801 case qc: 16802 f = 16, b |= 2; 16803 break; 16804 16805 default: 16806 a: { 16807 switch ("object" == typeof d && null !== d ? d.$$typeof : null) { 16808 case mc: 16809 f = 13; 16810 break a; 16811 16812 case nc: 16813 f = 12; 16814 break a; 16815 16816 case pc: 16817 f = 14; 16818 break a; 16819 16820 default: 16821 A("130", null == d ? d : typeof d, ""); 16822 } 16823 f = void 0; 16824 } 16825 } 16826 return b = new uf(f, a, e, b), b.type = d, b.expirationTime = c, b; 16827 } 16828 function xf(a, b, c, d) { 16829 return a = new uf(10, a, d, b), a.expirationTime = c, a; 16830 } 16831 function yf(a, b, c) { 16832 return a = new uf(6, a, null, b), a.expirationTime = c, a; 16833 } 16834 function zf(a, b, c) { 16835 return b = new uf(4, null !== a.children ? a.children : [], a.key, b), b.expirationTime = c, 16836 b.stateNode = { 16837 containerInfo: a.containerInfo, 16838 pendingChildren: null, 16839 implementation: a.implementation 16840 }, b; 16841 } 16842 function Af(a, b, c) { 16843 return b = new uf(3, null, null, b ? 3 : 0), a = { 16844 current: b, 16845 containerInfo: a, 16846 pendingChildren: null, 16847 earliestPendingTime: 0, 16848 latestPendingTime: 0, 16849 earliestSuspendedTime: 0, 16850 latestSuspendedTime: 0, 16851 latestPingedTime: 0, 16852 pendingCommitExpirationTime: 0, 16853 finishedWork: null, 16854 context: null, 16855 pendingContext: null, 16856 hydrate: c, 16857 remainingExpirationTime: 0, 16858 firstBatch: null, 16859 nextScheduledRoot: null 16860 }, b.stateNode = a; 16861 } 16862 function Df(a) { 16863 return function(b) { 16864 try { 16865 return a(b); 16866 } catch (c) {} 16867 }; 16868 } 16869 function Ef(a) { 16870 if ("undefined" == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; 16871 var b = __REACT_DEVTOOLS_GLOBAL_HOOK__; 16872 if (b.isDisabled || !b.supportsFiber) return !0; 16873 try { 16874 var c = b.inject(a); 16875 Bf = Df(function(a) { 16876 return b.onCommitFiberRoot(c, a); 16877 }), Cf = Df(function(a) { 16878 return b.onCommitFiberUnmount(c, a); 16879 }); 16880 } catch (d) {} 16881 return !0; 16882 } 16883 function Ff(a) { 16884 "function" == typeof Bf && Bf(a); 16885 } 16886 function Gf(a) { 16887 "function" == typeof Cf && Cf(a); 16888 } 16889 function If(a) { 16890 return { 16891 expirationTime: 0, 16892 baseState: a, 16893 firstUpdate: null, 16894 lastUpdate: null, 16895 firstCapturedUpdate: null, 16896 lastCapturedUpdate: null, 16897 firstEffect: null, 16898 lastEffect: null, 16899 firstCapturedEffect: null, 16900 lastCapturedEffect: null 16901 }; 16902 } 16903 function Jf(a) { 16904 return { 16905 expirationTime: a.expirationTime, 16906 baseState: a.baseState, 16907 firstUpdate: a.firstUpdate, 16908 lastUpdate: a.lastUpdate, 16909 firstCapturedUpdate: null, 16910 lastCapturedUpdate: null, 16911 firstEffect: null, 16912 lastEffect: null, 16913 firstCapturedEffect: null, 16914 lastCapturedEffect: null 16915 }; 16916 } 16917 function Kf(a) { 16918 return { 16919 expirationTime: a, 16920 tag: 0, 16921 payload: null, 16922 callback: null, 16923 next: null, 16924 nextEffect: null 16925 }; 16926 } 16927 function Lf(a, b, c) { 16928 null === a.lastUpdate ? a.firstUpdate = a.lastUpdate = b : (a.lastUpdate.next = b, 16929 a.lastUpdate = b), (0 === a.expirationTime || a.expirationTime > c) && (a.expirationTime = c); 16930 } 16931 function Mf(a, b, c) { 16932 var d = a.alternate; 16933 if (null === d) { 16934 var e = a.updateQueue, f = null; 16935 null === e && (e = a.updateQueue = If(a.memoizedState)); 16936 } else e = a.updateQueue, f = d.updateQueue, null === e ? null === f ? (e = a.updateQueue = If(a.memoizedState), 16937 f = d.updateQueue = If(d.memoizedState)) : e = a.updateQueue = Jf(f) : null === f && (f = d.updateQueue = Jf(e)); 16938 null === f || e === f ? Lf(e, b, c) : null === e.lastUpdate || null === f.lastUpdate ? (Lf(e, b, c), 16939 Lf(f, b, c)) : (Lf(e, b, c), f.lastUpdate = b); 16940 } 16941 function Nf(a, b, c) { 16942 var d = a.updateQueue; 16943 d = null === d ? a.updateQueue = If(a.memoizedState) : Of(a, d), null === d.lastCapturedUpdate ? d.firstCapturedUpdate = d.lastCapturedUpdate = b : (d.lastCapturedUpdate.next = b, 16944 d.lastCapturedUpdate = b), (0 === d.expirationTime || d.expirationTime > c) && (d.expirationTime = c); 16945 } 16946 function Of(a, b) { 16947 var c = a.alternate; 16948 return null !== c && b === c.updateQueue && (b = a.updateQueue = Jf(b)), b; 16949 } 16950 function Pf(a, b, c, d, e, f) { 16951 switch (c.tag) { 16952 case 1: 16953 return a = c.payload, "function" == typeof a ? a.call(f, d, e) : a; 16954 16955 case 3: 16956 a.effectTag = -1025 & a.effectTag | 64; 16957 16958 case 0: 16959 if (a = c.payload, null === (e = "function" == typeof a ? a.call(f, d, e) : a) || void 0 === e) break; 16960 return p({}, d, e); 16961 16962 case 2: 16963 Hf = !0; 16964 } 16965 return d; 16966 } 16967 function Qf(a, b, c, d, e) { 16968 if (Hf = !1, !(0 === b.expirationTime || b.expirationTime > e)) { 16969 b = Of(a, b); 16970 for (var f = b.baseState, g = null, h = 0, k = b.firstUpdate, n = f; null !== k; ) { 16971 var r = k.expirationTime; 16972 r > e ? (null === g && (g = k, f = n), (0 === h || h > r) && (h = r)) : (n = Pf(a, b, k, n, c, d), 16973 null !== k.callback && (a.effectTag |= 32, k.nextEffect = null, null === b.lastEffect ? b.firstEffect = b.lastEffect = k : (b.lastEffect.nextEffect = k, 16974 b.lastEffect = k))), k = k.next; 16975 } 16976 for (r = null, k = b.firstCapturedUpdate; null !== k; ) { 16977 var w = k.expirationTime; 16978 w > e ? (null === r && (r = k, null === g && (f = n)), (0 === h || h > w) && (h = w)) : (n = Pf(a, b, k, n, c, d), 16979 null !== k.callback && (a.effectTag |= 32, k.nextEffect = null, null === b.lastCapturedEffect ? b.firstCapturedEffect = b.lastCapturedEffect = k : (b.lastCapturedEffect.nextEffect = k, 16980 b.lastCapturedEffect = k))), k = k.next; 16981 } 16982 null === g && (b.lastUpdate = null), null === r ? b.lastCapturedUpdate = null : a.effectTag |= 32, 16983 null === g && null === r && (f = n), b.baseState = f, b.firstUpdate = g, b.firstCapturedUpdate = r, 16984 b.expirationTime = h, a.memoizedState = n; 16985 } 16986 } 16987 function Rf(a, b) { 16988 "function" != typeof a && A("191", a), a.call(b); 16989 } 16990 function Sf(a, b, c) { 16991 for (null !== b.firstCapturedUpdate && (null !== b.lastUpdate && (b.lastUpdate.next = b.firstCapturedUpdate, 16992 b.lastUpdate = b.lastCapturedUpdate), b.firstCapturedUpdate = b.lastCapturedUpdate = null), 16993 a = b.firstEffect, b.firstEffect = b.lastEffect = null; null !== a; ) { 16994 var d = a.callback; 16995 null !== d && (a.callback = null, Rf(d, c)), a = a.nextEffect; 16996 } 16997 for (a = b.firstCapturedEffect, b.firstCapturedEffect = b.lastCapturedEffect = null; null !== a; ) b = a.callback, 16998 null !== b && (a.callback = null, Rf(b, c)), a = a.nextEffect; 16999 } 17000 function Tf(a, b) { 17001 return { 17002 value: a, 17003 source: b, 17004 stack: vc(b) 17005 }; 17006 } 17007 function Xf(a) { 17008 var b = a.type._context; 17009 N(Wf, b._changedBits, a), N(Vf, b._currentValue, a), N(Uf, a, a), b._currentValue = a.pendingProps.value, 17010 b._changedBits = a.stateNode; 17011 } 17012 function Yf(a) { 17013 var b = Wf.current, c = Vf.current; 17014 M(Uf, a), M(Vf, a), M(Wf, a), a = a.type._context, a._currentValue = c, a._changedBits = b; 17015 } 17016 function cg(a) { 17017 return a === Zf && A("174"), a; 17018 } 17019 function dg(a, b) { 17020 N(bg, b, a), N(ag, a, a), N($f, Zf, a); 17021 var c = b.nodeType; 17022 switch (c) { 17023 case 9: 17024 case 11: 17025 b = (b = b.documentElement) ? b.namespaceURI : De(null, ""); 17026 break; 17027 17028 default: 17029 c = 8 === c ? b.parentNode : b, b = c.namespaceURI || null, c = c.tagName, b = De(b, c); 17030 } 17031 M($f, a), N($f, b, a); 17032 } 17033 function eg(a) { 17034 M($f, a), M(ag, a), M(bg, a); 17035 } 17036 function fg(a) { 17037 ag.current === a && (M($f, a), M(ag, a)); 17038 } 17039 function hg(a, b, c) { 17040 var d = a.memoizedState; 17041 b = b(c, d), d = null === b || void 0 === b ? d : p({}, d, b), a.memoizedState = d, 17042 null !== (a = a.updateQueue) && 0 === a.expirationTime && (a.baseState = d); 17043 } 17044 function mg(a, b, c, d, e, f) { 17045 var g = a.stateNode; 17046 return a = a.type, "function" == typeof g.shouldComponentUpdate ? g.shouldComponentUpdate(c, e, f) : !a.prototype || !a.prototype.isPureReactComponent || (!ea(b, c) || !ea(d, e)); 17047 } 17048 function ng(a, b, c, d) { 17049 a = b.state, "function" == typeof b.componentWillReceiveProps && b.componentWillReceiveProps(c, d), 17050 "function" == typeof b.UNSAFE_componentWillReceiveProps && b.UNSAFE_componentWillReceiveProps(c, d), 17051 b.state !== a && lg.enqueueReplaceState(b, b.state, null); 17052 } 17053 function og(a, b) { 17054 var c = a.type, d = a.stateNode, e = a.pendingProps, f = lf(a); 17055 d.props = e, d.state = a.memoizedState, d.refs = ha, d.context = nf(a, f), f = a.updateQueue, 17056 null !== f && (Qf(a, f, e, d, b), d.state = a.memoizedState), f = a.type.getDerivedStateFromProps, 17057 "function" == typeof f && (hg(a, f, e), d.state = a.memoizedState), "function" == typeof c.getDerivedStateFromProps || "function" == typeof d.getSnapshotBeforeUpdate || "function" != typeof d.UNSAFE_componentWillMount && "function" != typeof d.componentWillMount || (c = d.state, 17058 "function" == typeof d.componentWillMount && d.componentWillMount(), "function" == typeof d.UNSAFE_componentWillMount && d.UNSAFE_componentWillMount(), 17059 c !== d.state && lg.enqueueReplaceState(d, d.state, null), null !== (f = a.updateQueue) && (Qf(a, f, e, d, b), 17060 d.state = a.memoizedState)), "function" == typeof d.componentDidMount && (a.effectTag |= 4); 17061 } 17062 function qg(a, b, c) { 17063 if (null !== (a = c.ref) && "function" != typeof a && "object" != typeof a) { 17064 if (c._owner) { 17065 c = c._owner; 17066 var d = void 0; 17067 c && (2 !== c.tag && A("110"), d = c.stateNode), d || A("147", a); 17068 var e = "" + a; 17069 return null !== b && null !== b.ref && "function" == typeof b.ref && b.ref._stringRef === e ? b.ref : (b = function(a) { 17070 var b = d.refs === ha ? d.refs = {} : d.refs; 17071 null === a ? delete b[e] : b[e] = a; 17072 }, b._stringRef = e, b); 17073 } 17074 "string" != typeof a && A("148"), c._owner || A("254", a); 17075 } 17076 return a; 17077 } 17078 function rg(a, b) { 17079 "textarea" !== a.type && A("31", "[object Object]" === Object.prototype.toString.call(b) ? "object with keys {" + Object.keys(b).join(", ") + "}" : b, ""); 17080 } 17081 function sg(a) { 17082 function b(b, c) { 17083 if (a) { 17084 var d = b.lastEffect; 17085 null !== d ? (d.nextEffect = c, b.lastEffect = c) : b.firstEffect = b.lastEffect = c, 17086 c.nextEffect = null, c.effectTag = 8; 17087 } 17088 } 17089 function c(c, d) { 17090 if (!a) return null; 17091 for (;null !== d; ) b(c, d), d = d.sibling; 17092 return null; 17093 } 17094 function d(a, b) { 17095 for (a = new Map(); null !== b; ) null !== b.key ? a.set(b.key, b) : a.set(b.index, b), 17096 b = b.sibling; 17097 return a; 17098 } 17099 function e(a, b, c) { 17100 return a = vf(a, b, c), a.index = 0, a.sibling = null, a; 17101 } 17102 function f(b, c, d) { 17103 return b.index = d, a ? null !== (d = b.alternate) ? (d = d.index, d < c ? (b.effectTag = 2, 17104 c) : d) : (b.effectTag = 2, c) : c; 17105 } 17106 function g(b) { 17107 return a && null === b.alternate && (b.effectTag = 2), b; 17108 } 17109 function h(a, b, c, d) { 17110 return null === b || 6 !== b.tag ? (b = yf(c, a.mode, d), b.return = a, b) : (b = e(b, c, d), 17111 b.return = a, b); 17112 } 17113 function k(a, b, c, d) { 17114 return null !== b && b.type === c.type ? (d = e(b, c.props, d), d.ref = qg(a, b, c), 17115 d.return = a, d) : (d = wf(c, a.mode, d), d.ref = qg(a, b, c), d.return = a, d); 17116 } 17117 function n(a, b, c, d) { 17118 return null === b || 4 !== b.tag || b.stateNode.containerInfo !== c.containerInfo || b.stateNode.implementation !== c.implementation ? (b = zf(c, a.mode, d), 17119 b.return = a, b) : (b = e(b, c.children || [], d), b.return = a, b); 17120 } 17121 function r(a, b, c, d, f) { 17122 return null === b || 10 !== b.tag ? (b = xf(c, a.mode, d, f), b.return = a, b) : (b = e(b, c, d), 17123 b.return = a, b); 17124 } 17125 function w(a, b, c) { 17126 if ("string" == typeof b || "number" == typeof b) return b = yf("" + b, a.mode, c), 17127 b.return = a, b; 17128 if ("object" == typeof b && null !== b) { 17129 switch (b.$$typeof) { 17130 case fc: 17131 return c = wf(b, a.mode, c), c.ref = qg(a, null, b), c.return = a, c; 17132 17133 case gc: 17134 return b = zf(b, a.mode, c), b.return = a, b; 17135 } 17136 if (pg(b) || sc(b)) return b = xf(b, a.mode, c, null), b.return = a, b; 17137 rg(a, b); 17138 } 17139 return null; 17140 } 17141 function P(a, b, c, d) { 17142 var e = null !== b ? b.key : null; 17143 if ("string" == typeof c || "number" == typeof c) return null !== e ? null : h(a, b, "" + c, d); 17144 if ("object" == typeof c && null !== c) { 17145 switch (c.$$typeof) { 17146 case fc: 17147 return c.key === e ? c.type === hc ? r(a, b, c.props.children, d, e) : k(a, b, c, d) : null; 17148 17149 case gc: 17150 return c.key === e ? n(a, b, c, d) : null; 17151 } 17152 if (pg(c) || sc(c)) return null !== e ? null : r(a, b, c, d, null); 17153 rg(a, c); 17154 } 17155 return null; 17156 } 17157 function kc(a, b, c, d, e) { 17158 if ("string" == typeof d || "number" == typeof d) return a = a.get(c) || null, h(b, a, "" + d, e); 17159 if ("object" == typeof d && null !== d) { 17160 switch (d.$$typeof) { 17161 case fc: 17162 return a = a.get(null === d.key ? c : d.key) || null, d.type === hc ? r(b, a, d.props.children, e, d.key) : k(b, a, d, e); 17163 17164 case gc: 17165 return a = a.get(null === d.key ? c : d.key) || null, n(b, a, d, e); 17166 } 17167 if (pg(d) || sc(d)) return a = a.get(c) || null, r(b, a, d, e, null); 17168 rg(b, d); 17169 } 17170 return null; 17171 } 17172 function Hd(e, g, h, k) { 17173 for (var u = null, x = null, t = g, q = g = 0, n = null; null !== t && q < h.length; q++) { 17174 t.index > q ? (n = t, t = null) : n = t.sibling; 17175 var l = P(e, t, h[q], k); 17176 if (null === l) { 17177 null === t && (t = n); 17178 break; 17179 } 17180 a && t && null === l.alternate && b(e, t), g = f(l, g, q), null === x ? u = l : x.sibling = l, 17181 x = l, t = n; 17182 } 17183 if (q === h.length) return c(e, t), u; 17184 if (null === t) { 17185 for (;q < h.length; q++) (t = w(e, h[q], k)) && (g = f(t, g, q), null === x ? u = t : x.sibling = t, 17186 x = t); 17187 return u; 17188 } 17189 for (t = d(e, t); q < h.length; q++) (n = kc(t, e, q, h[q], k)) && (a && null !== n.alternate && t.delete(null === n.key ? q : n.key), 17190 g = f(n, g, q), null === x ? u = n : x.sibling = n, x = n); 17191 return a && t.forEach(function(a) { 17192 return b(e, a); 17193 }), u; 17194 } 17195 function E(e, g, h, k) { 17196 var t = sc(h); 17197 "function" != typeof t && A("150"), null == (h = t.call(h)) && A("151"); 17198 for (var u = t = null, n = g, x = g = 0, y = null, l = h.next(); null !== n && !l.done; x++, 17199 l = h.next()) { 17200 n.index > x ? (y = n, n = null) : y = n.sibling; 17201 var r = P(e, n, l.value, k); 17202 if (null === r) { 17203 n || (n = y); 17204 break; 17205 } 17206 a && n && null === r.alternate && b(e, n), g = f(r, g, x), null === u ? t = r : u.sibling = r, 17207 u = r, n = y; 17208 } 17209 if (l.done) return c(e, n), t; 17210 if (null === n) { 17211 for (;!l.done; x++, l = h.next()) null !== (l = w(e, l.value, k)) && (g = f(l, g, x), 17212 null === u ? t = l : u.sibling = l, u = l); 17213 return t; 17214 } 17215 for (n = d(e, n); !l.done; x++, l = h.next()) null !== (l = kc(n, e, x, l.value, k)) && (a && null !== l.alternate && n.delete(null === l.key ? x : l.key), 17216 g = f(l, g, x), null === u ? t = l : u.sibling = l, u = l); 17217 return a && n.forEach(function(a) { 17218 return b(e, a); 17219 }), t; 17220 } 17221 return function(a, d, f, h) { 17222 "object" == typeof f && null !== f && f.type === hc && null === f.key && (f = f.props.children); 17223 var k = "object" == typeof f && null !== f; 17224 if (k) switch (f.$$typeof) { 17225 case fc: 17226 a: { 17227 var n = f.key; 17228 for (k = d; null !== k; ) { 17229 if (k.key === n) { 17230 if (10 === k.tag ? f.type === hc : k.type === f.type) { 17231 c(a, k.sibling), d = e(k, f.type === hc ? f.props.children : f.props, h), d.ref = qg(a, k, f), 17232 d.return = a, a = d; 17233 break a; 17234 } 17235 c(a, k); 17236 break; 17237 } 17238 b(a, k), k = k.sibling; 17239 } 17240 f.type === hc ? (d = xf(f.props.children, a.mode, h, f.key), d.return = a, a = d) : (h = wf(f, a.mode, h), 17241 h.ref = qg(a, d, f), h.return = a, a = h); 17242 } 17243 return g(a); 17244 17245 case gc: 17246 a: { 17247 for (k = f.key; null !== d; ) { 17248 if (d.key === k) { 17249 if (4 === d.tag && d.stateNode.containerInfo === f.containerInfo && d.stateNode.implementation === f.implementation) { 17250 c(a, d.sibling), d = e(d, f.children || [], h), d.return = a, a = d; 17251 break a; 17252 } 17253 c(a, d); 17254 break; 17255 } 17256 b(a, d), d = d.sibling; 17257 } 17258 d = zf(f, a.mode, h), d.return = a, a = d; 17259 } 17260 return g(a); 17261 } 17262 if ("string" == typeof f || "number" == typeof f) return f = "" + f, null !== d && 6 === d.tag ? (c(a, d.sibling), 17263 d = e(d, f, h), d.return = a, a = d) : (c(a, d), d = yf(f, a.mode, h), d.return = a, 17264 a = d), g(a); 17265 if (pg(f)) return Hd(a, d, f, h); 17266 if (sc(f)) return E(a, d, f, h); 17267 if (k && rg(a, f), void 0 === f) switch (a.tag) { 17268 case 2: 17269 case 1: 17270 h = a.type, A("152", h.displayName || h.name || "Component"); 17271 } 17272 return c(a, d); 17273 }; 17274 } 17275 function yg(a, b) { 17276 var c = new uf(5, null, null, 0); 17277 c.type = "DELETED", c.stateNode = b, c.return = a, c.effectTag = 8, null !== a.lastEffect ? (a.lastEffect.nextEffect = c, 17278 a.lastEffect = c) : a.firstEffect = a.lastEffect = c; 17279 } 17280 function zg(a, b) { 17281 switch (a.tag) { 17282 case 5: 17283 var c = a.type; 17284 return null !== (b = 1 !== b.nodeType || c.toLowerCase() !== b.nodeName.toLowerCase() ? null : b) && (a.stateNode = b, 17285 !0); 17286 17287 case 6: 17288 return null !== (b = "" === a.pendingProps || 3 !== b.nodeType ? null : b) && (a.stateNode = b, 17289 !0); 17290 17291 default: 17292 return !1; 17293 } 17294 } 17295 function Ag(a) { 17296 if (xg) { 17297 var b = wg; 17298 if (b) { 17299 var c = b; 17300 if (!zg(a, b)) { 17301 if (!(b = df(c)) || !zg(a, b)) return a.effectTag |= 2, xg = !1, void (vg = a); 17302 yg(vg, c); 17303 } 17304 vg = a, wg = ef(b); 17305 } else a.effectTag |= 2, xg = !1, vg = a; 17306 } 17307 } 17308 function Bg(a) { 17309 for (a = a.return; null !== a && 5 !== a.tag && 3 !== a.tag; ) a = a.return; 17310 vg = a; 17311 } 17312 function Cg(a) { 17313 if (a !== vg) return !1; 17314 if (!xg) return Bg(a), xg = !0, !1; 17315 var b = a.type; 17316 if (5 !== a.tag || "head" !== b && "body" !== b && !$e(b, a.memoizedProps)) for (b = wg; b; ) yg(a, b), 17317 b = df(b); 17318 return Bg(a), wg = vg ? df(a.stateNode) : null, !0; 17319 } 17320 function Dg() { 17321 wg = vg = null, xg = !1; 17322 } 17323 function Q(a, b, c) { 17324 Eg(a, b, c, b.expirationTime); 17325 } 17326 function Eg(a, b, c, d) { 17327 b.child = null === a ? ug(b, null, c, d) : tg(b, a.child, c, d); 17328 } 17329 function Fg(a, b) { 17330 var c = b.ref; 17331 (null === a && null !== c || null !== a && a.ref !== c) && (b.effectTag |= 128); 17332 } 17333 function Gg(a, b, c, d, e) { 17334 Fg(a, b); 17335 var f = 0 != (64 & b.effectTag); 17336 if (!c && !f) return d && tf(b, !1), R(a, b); 17337 c = b.stateNode, ec.current = b; 17338 var g = f ? null : c.render(); 17339 return b.effectTag |= 1, f && (Eg(a, b, null, e), b.child = null), Eg(a, b, g, e), 17340 b.memoizedState = c.state, b.memoizedProps = c.props, d && tf(b, !0), b.child; 17341 } 17342 function Hg(a) { 17343 var b = a.stateNode; 17344 b.pendingContext ? qf(a, b.pendingContext, b.pendingContext !== b.context) : b.context && qf(a, b.context, !1), 17345 dg(a, b.containerInfo); 17346 } 17347 function Ig(a, b, c, d) { 17348 var e = a.child; 17349 for (null !== e && (e.return = a); null !== e; ) { 17350 switch (e.tag) { 17351 case 12: 17352 var f = 0 | e.stateNode; 17353 if (e.type === b && 0 != (f & c)) { 17354 for (f = e; null !== f; ) { 17355 var g = f.alternate; 17356 if (0 === f.expirationTime || f.expirationTime > d) f.expirationTime = d, null !== g && (0 === g.expirationTime || g.expirationTime > d) && (g.expirationTime = d); else { 17357 if (null === g || !(0 === g.expirationTime || g.expirationTime > d)) break; 17358 g.expirationTime = d; 17359 } 17360 f = f.return; 17361 } 17362 f = null; 17363 } else f = e.child; 17364 break; 17365 17366 case 13: 17367 f = e.type === a.type ? null : e.child; 17368 break; 17369 17370 default: 17371 f = e.child; 17372 } 17373 if (null !== f) f.return = e; else for (f = e; null !== f; ) { 17374 if (f === a) { 17375 f = null; 17376 break; 17377 } 17378 if (null !== (e = f.sibling)) { 17379 e.return = f.return, f = e; 17380 break; 17381 } 17382 f = f.return; 17383 } 17384 e = f; 17385 } 17386 } 17387 function Jg(a, b, c) { 17388 var d = b.type._context, e = b.pendingProps, f = b.memoizedProps, g = !0; 17389 if (O.current) g = !1; else if (f === e) return b.stateNode = 0, Xf(b), R(a, b); 17390 var h = e.value; 17391 if (b.memoizedProps = e, null === f) h = 1073741823; else if (f.value === e.value) { 17392 if (f.children === e.children && g) return b.stateNode = 0, Xf(b), R(a, b); 17393 h = 0; 17394 } else { 17395 var k = f.value; 17396 if (k === h && (0 !== k || 1 / k == 1 / h) || k !== k && h !== h) { 17397 if (f.children === e.children && g) return b.stateNode = 0, Xf(b), R(a, b); 17398 h = 0; 17399 } else if (h = "function" == typeof d._calculateChangedBits ? d._calculateChangedBits(k, h) : 1073741823, 17400 0 === (h |= 0)) { 17401 if (f.children === e.children && g) return b.stateNode = 0, Xf(b), R(a, b); 17402 } else Ig(b, d, h, c); 17403 } 17404 return b.stateNode = h, Xf(b), Q(a, b, e.children), b.child; 17405 } 17406 function R(a, b) { 17407 if (null !== a && b.child !== a.child && A("153"), null !== b.child) { 17408 a = b.child; 17409 var c = vf(a, a.pendingProps, a.expirationTime); 17410 for (b.child = c, c.return = b; null !== a.sibling; ) a = a.sibling, c = c.sibling = vf(a, a.pendingProps, a.expirationTime), 17411 c.return = b; 17412 c.sibling = null; 17413 } 17414 return b.child; 17415 } 17416 function Kg(a, b, c) { 17417 if (0 === b.expirationTime || b.expirationTime > c) { 17418 switch (b.tag) { 17419 case 3: 17420 Hg(b); 17421 break; 17422 17423 case 2: 17424 sf(b); 17425 break; 17426 17427 case 4: 17428 dg(b, b.stateNode.containerInfo); 17429 break; 17430 17431 case 13: 17432 Xf(b); 17433 } 17434 return null; 17435 } 17436 switch (b.tag) { 17437 case 0: 17438 null !== a && A("155"); 17439 var d = b.type, e = b.pendingProps, f = lf(b); 17440 return f = nf(b, f), d = d(e, f), b.effectTag |= 1, "object" == typeof d && null !== d && "function" == typeof d.render && void 0 === d.$$typeof ? (f = b.type, 17441 b.tag = 2, b.memoizedState = null !== d.state && void 0 !== d.state ? d.state : null, 17442 f = f.getDerivedStateFromProps, "function" == typeof f && hg(b, f, e), e = sf(b), 17443 d.updater = lg, b.stateNode = d, d._reactInternalFiber = b, og(b, c), a = Gg(a, b, !0, e, c)) : (b.tag = 1, 17444 Q(a, b, d), b.memoizedProps = e, a = b.child), a; 17445 17446 case 1: 17447 return e = b.type, c = b.pendingProps, O.current || b.memoizedProps !== c ? (d = lf(b), 17448 d = nf(b, d), e = e(c, d), b.effectTag |= 1, Q(a, b, e), b.memoizedProps = c, a = b.child) : a = R(a, b), 17449 a; 17450 17451 case 2: 17452 if (e = sf(b), null === a) if (null === b.stateNode) { 17453 var g = b.pendingProps, h = b.type; 17454 d = lf(b); 17455 var k = 2 === b.tag && null != b.type.contextTypes; 17456 f = k ? nf(b, d) : ha, g = new h(g, f), b.memoizedState = null !== g.state && void 0 !== g.state ? g.state : null, 17457 g.updater = lg, b.stateNode = g, g._reactInternalFiber = b, k && (k = b.stateNode, 17458 k.__reactInternalMemoizedUnmaskedChildContext = d, k.__reactInternalMemoizedMaskedChildContext = f), 17459 og(b, c), d = !0; 17460 } else { 17461 h = b.type, d = b.stateNode, k = b.memoizedProps, f = b.pendingProps, d.props = k; 17462 var n = d.context; 17463 g = lf(b), g = nf(b, g); 17464 var r = h.getDerivedStateFromProps; 17465 (h = "function" == typeof r || "function" == typeof d.getSnapshotBeforeUpdate) || "function" != typeof d.UNSAFE_componentWillReceiveProps && "function" != typeof d.componentWillReceiveProps || (k !== f || n !== g) && ng(b, d, f, g), 17466 Hf = !1; 17467 var w = b.memoizedState; 17468 n = d.state = w; 17469 var P = b.updateQueue; 17470 null !== P && (Qf(b, P, f, d, c), n = b.memoizedState), k !== f || w !== n || O.current || Hf ? ("function" == typeof r && (hg(b, r, f), 17471 n = b.memoizedState), (k = Hf || mg(b, k, f, w, n, g)) ? (h || "function" != typeof d.UNSAFE_componentWillMount && "function" != typeof d.componentWillMount || ("function" == typeof d.componentWillMount && d.componentWillMount(), 17472 "function" == typeof d.UNSAFE_componentWillMount && d.UNSAFE_componentWillMount()), 17473 "function" == typeof d.componentDidMount && (b.effectTag |= 4)) : ("function" == typeof d.componentDidMount && (b.effectTag |= 4), 17474 b.memoizedProps = f, b.memoizedState = n), d.props = f, d.state = n, d.context = g, 17475 d = k) : ("function" == typeof d.componentDidMount && (b.effectTag |= 4), d = !1); 17476 } else h = b.type, d = b.stateNode, f = b.memoizedProps, k = b.pendingProps, d.props = f, 17477 n = d.context, g = lf(b), g = nf(b, g), r = h.getDerivedStateFromProps, (h = "function" == typeof r || "function" == typeof d.getSnapshotBeforeUpdate) || "function" != typeof d.UNSAFE_componentWillReceiveProps && "function" != typeof d.componentWillReceiveProps || (f !== k || n !== g) && ng(b, d, k, g), 17478 Hf = !1, n = b.memoizedState, w = d.state = n, P = b.updateQueue, null !== P && (Qf(b, P, k, d, c), 17479 w = b.memoizedState), f !== k || n !== w || O.current || Hf ? ("function" == typeof r && (hg(b, r, k), 17480 w = b.memoizedState), (r = Hf || mg(b, f, k, n, w, g)) ? (h || "function" != typeof d.UNSAFE_componentWillUpdate && "function" != typeof d.componentWillUpdate || ("function" == typeof d.componentWillUpdate && d.componentWillUpdate(k, w, g), 17481 "function" == typeof d.UNSAFE_componentWillUpdate && d.UNSAFE_componentWillUpdate(k, w, g)), 17482 "function" == typeof d.componentDidUpdate && (b.effectTag |= 4), "function" == typeof d.getSnapshotBeforeUpdate && (b.effectTag |= 256)) : ("function" != typeof d.componentDidUpdate || f === a.memoizedProps && n === a.memoizedState || (b.effectTag |= 4), 17483 "function" != typeof d.getSnapshotBeforeUpdate || f === a.memoizedProps && n === a.memoizedState || (b.effectTag |= 256), 17484 b.memoizedProps = k, b.memoizedState = w), d.props = k, d.state = w, d.context = g, 17485 d = r) : ("function" != typeof d.componentDidUpdate || f === a.memoizedProps && n === a.memoizedState || (b.effectTag |= 4), 17486 "function" != typeof d.getSnapshotBeforeUpdate || f === a.memoizedProps && n === a.memoizedState || (b.effectTag |= 256), 17487 d = !1); 17488 return Gg(a, b, d, e, c); 17489 17490 case 3: 17491 return Hg(b), e = b.updateQueue, null !== e ? (d = b.memoizedState, d = null !== d ? d.element : null, 17492 Qf(b, e, b.pendingProps, null, c), (e = b.memoizedState.element) === d ? (Dg(), 17493 a = R(a, b)) : (d = b.stateNode, (d = (null === a || null === a.child) && d.hydrate) && (wg = ef(b.stateNode.containerInfo), 17494 vg = b, d = xg = !0), d ? (b.effectTag |= 2, b.child = ug(b, null, e, c)) : (Dg(), 17495 Q(a, b, e)), a = b.child)) : (Dg(), a = R(a, b)), a; 17496 17497 case 5: 17498 return cg(bg.current), e = cg($f.current), d = De(e, b.type), e !== d && (N(ag, b, b), 17499 N($f, d, b)), null === a && Ag(b), e = b.type, k = b.memoizedProps, d = b.pendingProps, 17500 f = null !== a ? a.memoizedProps : null, O.current || k !== d || ((k = 1 & b.mode && !!d.hidden) && (b.expirationTime = 1073741823), 17501 k && 1073741823 === c) ? (k = d.children, $e(e, d) ? k = null : f && $e(e, f) && (b.effectTag |= 16), 17502 Fg(a, b), 1073741823 !== c && 1 & b.mode && d.hidden ? (b.expirationTime = 1073741823, 17503 b.memoizedProps = d, a = null) : (Q(a, b, k), b.memoizedProps = d, a = b.child)) : a = R(a, b), 17504 a; 17505 17506 case 6: 17507 return null === a && Ag(b), b.memoizedProps = b.pendingProps, null; 17508 17509 case 16: 17510 return null; 17511 17512 case 4: 17513 return dg(b, b.stateNode.containerInfo), e = b.pendingProps, O.current || b.memoizedProps !== e ? (null === a ? b.child = tg(b, null, e, c) : Q(a, b, e), 17514 b.memoizedProps = e, a = b.child) : a = R(a, b), a; 17515 17516 case 14: 17517 return e = b.type.render, c = b.pendingProps, d = b.ref, O.current || b.memoizedProps !== c || d !== (null !== a ? a.ref : null) ? (e = e(c, d), 17518 Q(a, b, e), b.memoizedProps = c, a = b.child) : a = R(a, b), a; 17519 17520 case 10: 17521 return c = b.pendingProps, O.current || b.memoizedProps !== c ? (Q(a, b, c), b.memoizedProps = c, 17522 a = b.child) : a = R(a, b), a; 17523 17524 case 11: 17525 return c = b.pendingProps.children, O.current || null !== c && b.memoizedProps !== c ? (Q(a, b, c), 17526 b.memoizedProps = c, a = b.child) : a = R(a, b), a; 17527 17528 case 15: 17529 return c = b.pendingProps, b.memoizedProps === c ? a = R(a, b) : (Q(a, b, c.children), 17530 b.memoizedProps = c, a = b.child), a; 17531 17532 case 13: 17533 return Jg(a, b, c); 17534 17535 case 12: 17536 a: if (d = b.type, f = b.pendingProps, k = b.memoizedProps, e = d._currentValue, 17537 g = d._changedBits, O.current || 0 !== g || k !== f) { 17538 if (b.memoizedProps = f, h = f.unstable_observedBits, void 0 !== h && null !== h || (h = 1073741823), 17539 b.stateNode = h, 0 != (g & h)) Ig(b, d, g, c); else if (k === f) { 17540 a = R(a, b); 17541 break a; 17542 } 17543 c = f.children, c = c(e), b.effectTag |= 1, Q(a, b, c), a = b.child; 17544 } else a = R(a, b); 17545 return a; 17546 17547 default: 17548 A("156"); 17549 } 17550 } 17551 function Lg(a) { 17552 a.effectTag |= 4; 17553 } 17554 function Sg(a, b) { 17555 var c = b.pendingProps; 17556 switch (b.tag) { 17557 case 1: 17558 return null; 17559 17560 case 2: 17561 return of(b), null; 17562 17563 case 3: 17564 eg(b), pf(b); 17565 var d = b.stateNode; 17566 return d.pendingContext && (d.context = d.pendingContext, d.pendingContext = null), 17567 null !== a && null !== a.child || (Cg(b), b.effectTag &= -3), Pg(b), null; 17568 17569 case 5: 17570 fg(b), d = cg(bg.current); 17571 var e = b.type; 17572 if (null !== a && null != b.stateNode) { 17573 var f = a.memoizedProps, g = b.stateNode, h = cg($f.current); 17574 g = Se(g, e, f, c, d), Qg(a, b, g, e, f, c, d, h), a.ref !== b.ref && (b.effectTag |= 128); 17575 } else { 17576 if (!c) return null === b.stateNode && A("166"), null; 17577 if (a = cg($f.current), Cg(b)) c = b.stateNode, e = b.type, f = b.memoizedProps, 17578 c[C] = b, c[Ma] = f, d = Ue(c, e, f, a, d), b.updateQueue = d, null !== d && Lg(b); else { 17579 a = Pe(e, c, d, a), a[C] = b, a[Ma] = c; 17580 a: for (f = b.child; null !== f; ) { 17581 if (5 === f.tag || 6 === f.tag) a.appendChild(f.stateNode); else if (4 !== f.tag && null !== f.child) { 17582 f.child.return = f, f = f.child; 17583 continue; 17584 } 17585 if (f === b) break; 17586 for (;null === f.sibling; ) { 17587 if (null === f.return || f.return === b) break a; 17588 f = f.return; 17589 } 17590 f.sibling.return = f.return, f = f.sibling; 17591 } 17592 Re(a, e, c, d), Ze(e, c) && Lg(b), b.stateNode = a; 17593 } 17594 null !== b.ref && (b.effectTag |= 128); 17595 } 17596 return null; 17597 17598 case 6: 17599 if (a && null != b.stateNode) Rg(a, b, a.memoizedProps, c); else { 17600 if ("string" != typeof c) return null === b.stateNode && A("166"), null; 17601 d = cg(bg.current), cg($f.current), Cg(b) ? (d = b.stateNode, c = b.memoizedProps, 17602 d[C] = b, Ve(d, c) && Lg(b)) : (d = Qe(c, d), d[C] = b, b.stateNode = d); 17603 } 17604 return null; 17605 17606 case 14: 17607 case 16: 17608 case 10: 17609 case 11: 17610 case 15: 17611 return null; 17612 17613 case 4: 17614 return eg(b), Pg(b), null; 17615 17616 case 13: 17617 return Yf(b), null; 17618 17619 case 12: 17620 return null; 17621 17622 case 0: 17623 A("167"); 17624 17625 default: 17626 A("156"); 17627 } 17628 } 17629 function Tg(a, b) { 17630 var c = b.source; 17631 null === b.stack && null !== c && vc(c), null !== c && tc(c), b = b.value, null !== a && 2 === a.tag && tc(a); 17632 try { 17633 b && b.suppressReactErrorLogging || console.error(b); 17634 } catch (d) { 17635 d && d.suppressReactErrorLogging || console.error(d); 17636 } 17637 } 17638 function Ug(a) { 17639 var b = a.ref; 17640 if (null !== b) if ("function" == typeof b) try { 17641 b(null); 17642 } catch (c) { 17643 Vg(a, c); 17644 } else b.current = null; 17645 } 17646 function Wg(a) { 17647 switch ("function" == typeof Gf && Gf(a), a.tag) { 17648 case 2: 17649 Ug(a); 17650 var b = a.stateNode; 17651 if ("function" == typeof b.componentWillUnmount) try { 17652 b.props = a.memoizedProps, b.state = a.memoizedState, b.componentWillUnmount(); 17653 } catch (c) { 17654 Vg(a, c); 17655 } 17656 break; 17657 17658 case 5: 17659 Ug(a); 17660 break; 17661 17662 case 4: 17663 Xg(a); 17664 } 17665 } 17666 function Yg(a) { 17667 return 5 === a.tag || 3 === a.tag || 4 === a.tag; 17668 } 17669 function Zg(a) { 17670 a: { 17671 for (var b = a.return; null !== b; ) { 17672 if (Yg(b)) { 17673 var c = b; 17674 break a; 17675 } 17676 b = b.return; 17677 } 17678 A("160"), c = void 0; 17679 } 17680 var d = b = void 0; 17681 switch (c.tag) { 17682 case 5: 17683 b = c.stateNode, d = !1; 17684 break; 17685 17686 case 3: 17687 case 4: 17688 b = c.stateNode.containerInfo, d = !0; 17689 break; 17690 17691 default: 17692 A("161"); 17693 } 17694 16 & c.effectTag && (Ge(b, ""), c.effectTag &= -17); 17695 a: b: for (c = a; ;) { 17696 for (;null === c.sibling; ) { 17697 if (null === c.return || Yg(c.return)) { 17698 c = null; 17699 break a; 17700 } 17701 c = c.return; 17702 } 17703 for (c.sibling.return = c.return, c = c.sibling; 5 !== c.tag && 6 !== c.tag; ) { 17704 if (2 & c.effectTag) continue b; 17705 if (null === c.child || 4 === c.tag) continue b; 17706 c.child.return = c, c = c.child; 17707 } 17708 if (!(2 & c.effectTag)) { 17709 c = c.stateNode; 17710 break a; 17711 } 17712 } 17713 for (var e = a; ;) { 17714 if (5 === e.tag || 6 === e.tag) if (c) if (d) { 17715 var f = b, g = e.stateNode, h = c; 17716 8 === f.nodeType ? f.parentNode.insertBefore(g, h) : f.insertBefore(g, h); 17717 } else b.insertBefore(e.stateNode, c); else d ? (f = b, g = e.stateNode, 8 === f.nodeType ? f.parentNode.insertBefore(g, f) : f.appendChild(g)) : b.appendChild(e.stateNode); else if (4 !== e.tag && null !== e.child) { 17718 e.child.return = e, e = e.child; 17719 continue; 17720 } 17721 if (e === a) break; 17722 for (;null === e.sibling; ) { 17723 if (null === e.return || e.return === a) return; 17724 e = e.return; 17725 } 17726 e.sibling.return = e.return, e = e.sibling; 17727 } 17728 } 17729 function Xg(a) { 17730 for (var b = a, c = !1, d = void 0, e = void 0; ;) { 17731 if (!c) { 17732 c = b.return; 17733 a: for (;;) { 17734 switch (null === c && A("160"), c.tag) { 17735 case 5: 17736 d = c.stateNode, e = !1; 17737 break a; 17738 17739 case 3: 17740 case 4: 17741 d = c.stateNode.containerInfo, e = !0; 17742 break a; 17743 } 17744 c = c.return; 17745 } 17746 c = !0; 17747 } 17748 if (5 === b.tag || 6 === b.tag) { 17749 a: for (var f = b, g = f; ;) if (Wg(g), null !== g.child && 4 !== g.tag) g.child.return = g, 17750 g = g.child; else { 17751 if (g === f) break; 17752 for (;null === g.sibling; ) { 17753 if (null === g.return || g.return === f) break a; 17754 g = g.return; 17755 } 17756 g.sibling.return = g.return, g = g.sibling; 17757 } 17758 e ? (f = d, g = b.stateNode, 8 === f.nodeType ? f.parentNode.removeChild(g) : f.removeChild(g)) : d.removeChild(b.stateNode); 17759 } else if (4 === b.tag ? d = b.stateNode.containerInfo : Wg(b), null !== b.child) { 17760 b.child.return = b, b = b.child; 17761 continue; 17762 } 17763 if (b === a) break; 17764 for (;null === b.sibling; ) { 17765 if (null === b.return || b.return === a) return; 17766 b = b.return, 4 === b.tag && (c = !1); 17767 } 17768 b.sibling.return = b.return, b = b.sibling; 17769 } 17770 } 17771 function $g(a, b) { 17772 switch (b.tag) { 17773 case 2: 17774 break; 17775 17776 case 5: 17777 var c = b.stateNode; 17778 if (null != c) { 17779 var d = b.memoizedProps; 17780 a = null !== a ? a.memoizedProps : d; 17781 var e = b.type, f = b.updateQueue; 17782 b.updateQueue = null, null !== f && (c[Ma] = d, Te(c, f, e, a, d)); 17783 } 17784 break; 17785 17786 case 6: 17787 null === b.stateNode && A("162"), b.stateNode.nodeValue = b.memoizedProps; 17788 break; 17789 17790 case 3: 17791 case 15: 17792 case 16: 17793 break; 17794 17795 default: 17796 A("163"); 17797 } 17798 } 17799 function ah(a, b, c) { 17800 c = Kf(c), c.tag = 3, c.payload = { 17801 element: null 17802 }; 17803 var d = b.value; 17804 return c.callback = function() { 17805 bh(d), Tg(a, b); 17806 }, c; 17807 } 17808 function ch(a, b, c) { 17809 c = Kf(c), c.tag = 3; 17810 var d = a.stateNode; 17811 return null !== d && "function" == typeof d.componentDidCatch && (c.callback = function() { 17812 null === dh ? dh = new Set([ this ]) : dh.add(this); 17813 var c = b.value, d = b.stack; 17814 Tg(a, b), this.componentDidCatch(c, { 17815 componentStack: null !== d ? d : "" 17816 }); 17817 }), c; 17818 } 17819 function eh(a, b, c, d, e, f) { 17820 c.effectTag |= 512, c.firstEffect = c.lastEffect = null, d = Tf(d, c), a = b; 17821 do { 17822 switch (a.tag) { 17823 case 3: 17824 return a.effectTag |= 1024, d = ah(a, d, f), void Nf(a, d, f); 17825 17826 case 2: 17827 if (b = d, c = a.stateNode, 0 == (64 & a.effectTag) && null !== c && "function" == typeof c.componentDidCatch && (null === dh || !dh.has(c))) return a.effectTag |= 1024, 17828 d = ch(a, b, f), void Nf(a, d, f); 17829 } 17830 a = a.return; 17831 } while (null !== a); 17832 } 17833 function fh(a) { 17834 switch (a.tag) { 17835 case 2: 17836 of(a); 17837 var b = a.effectTag; 17838 return 1024 & b ? (a.effectTag = -1025 & b | 64, a) : null; 17839 17840 case 3: 17841 return eg(a), pf(a), b = a.effectTag, 1024 & b ? (a.effectTag = -1025 & b | 64, 17842 a) : null; 17843 17844 case 5: 17845 return fg(a), null; 17846 17847 case 16: 17848 return b = a.effectTag, 1024 & b ? (a.effectTag = -1025 & b | 64, a) : null; 17849 17850 case 4: 17851 return eg(a), null; 17852 17853 case 13: 17854 return Yf(a), null; 17855 17856 default: 17857 return null; 17858 } 17859 } 17860 function rh() { 17861 if (null !== S) for (var a = S.return; null !== a; ) { 17862 var b = a; 17863 switch (b.tag) { 17864 case 2: 17865 of(b); 17866 break; 17867 17868 case 3: 17869 eg(b), pf(b); 17870 break; 17871 17872 case 5: 17873 fg(b); 17874 break; 17875 17876 case 4: 17877 eg(b); 17878 break; 17879 17880 case 13: 17881 Yf(b); 17882 } 17883 a = a.return; 17884 } 17885 mh = null, T = 0, nh = -1, oh = !1, S = null, qh = !1; 17886 } 17887 function sh(a) { 17888 for (;;) { 17889 var b = a.alternate, c = a.return, d = a.sibling; 17890 if (0 == (512 & a.effectTag)) { 17891 b = Sg(b, a, T); 17892 var e = a; 17893 if (1073741823 === T || 1073741823 !== e.expirationTime) { 17894 var f = 0; 17895 switch (e.tag) { 17896 case 3: 17897 case 2: 17898 var g = e.updateQueue; 17899 null !== g && (f = g.expirationTime); 17900 } 17901 for (g = e.child; null !== g; ) 0 !== g.expirationTime && (0 === f || f > g.expirationTime) && (f = g.expirationTime), 17902 g = g.sibling; 17903 e.expirationTime = f; 17904 } 17905 if (null !== b) return b; 17906 if (null !== c && 0 == (512 & c.effectTag) && (null === c.firstEffect && (c.firstEffect = a.firstEffect), 17907 null !== a.lastEffect && (null !== c.lastEffect && (c.lastEffect.nextEffect = a.firstEffect), 17908 c.lastEffect = a.lastEffect), 1 < a.effectTag && (null !== c.lastEffect ? c.lastEffect.nextEffect = a : c.firstEffect = a, 17909 c.lastEffect = a)), null !== d) return d; 17910 if (null === c) { 17911 qh = !0; 17912 break; 17913 } 17914 a = c; 17915 } else { 17916 if (null !== (a = fh(a, oh, T))) return a.effectTag &= 511, a; 17917 if (null !== c && (c.firstEffect = c.lastEffect = null, c.effectTag |= 512), null !== d) return d; 17918 if (null === c) break; 17919 a = c; 17920 } 17921 } 17922 return null; 17923 } 17924 function th(a) { 17925 var b = Kg(a.alternate, a, T); 17926 return null === b && (b = sh(a)), ec.current = null, b; 17927 } 17928 function uh(a, b, c) { 17929 lh && A("243"), lh = !0, b === T && a === mh && null !== S || (rh(), mh = a, T = b, 17930 nh = -1, S = vf(mh.current, null, T), a.pendingCommitExpirationTime = 0); 17931 var d = !1; 17932 for (oh = !c || T <= hh; ;) { 17933 try { 17934 if (c) for (;null !== S && !vh(); ) S = th(S); else for (;null !== S; ) S = th(S); 17935 } catch (f) { 17936 if (null === S) d = !0, bh(f); else { 17937 null === S && A("271"), c = S; 17938 var e = c.return; 17939 if (null === e) { 17940 d = !0, bh(f); 17941 break; 17942 } 17943 eh(a, e, c, f, oh, T, ih), S = sh(c); 17944 } 17945 } 17946 break; 17947 } 17948 if (lh = !1, d) return null; 17949 if (null === S) { 17950 if (qh) return a.pendingCommitExpirationTime = b, a.current.alternate; 17951 oh && A("262"), 0 <= nh && setTimeout(function() { 17952 var b = a.current.expirationTime; 17953 0 !== b && (0 === a.remainingExpirationTime || a.remainingExpirationTime < b) && wh(a, b); 17954 }, nh), xh(a.current.expirationTime); 17955 } 17956 return null; 17957 } 17958 function Vg(a, b) { 17959 var c; 17960 a: { 17961 for (lh && !ph && A("263"), c = a.return; null !== c; ) { 17962 switch (c.tag) { 17963 case 2: 17964 var d = c.stateNode; 17965 if ("function" == typeof c.type.getDerivedStateFromCatch || "function" == typeof d.componentDidCatch && (null === dh || !dh.has(d))) { 17966 a = Tf(b, a), a = ch(c, a, 1), Mf(c, a, 1), kg(c, 1), c = void 0; 17967 break a; 17968 } 17969 break; 17970 17971 case 3: 17972 a = Tf(b, a), a = ah(c, a, 1), Mf(c, a, 1), kg(c, 1), c = void 0; 17973 break a; 17974 } 17975 c = c.return; 17976 } 17977 3 === a.tag && (c = Tf(b, a), c = ah(a, c, 1), Mf(a, c, 1), kg(a, 1)), c = void 0; 17978 } 17979 return c; 17980 } 17981 function yh() { 17982 var a = 2 + 25 * (1 + ((ig() - 2 + 500) / 25 | 0)); 17983 return a <= jh && (a = jh + 1), jh = a; 17984 } 17985 function jg(a, b) { 17986 return a = 0 !== kh ? kh : lh ? ph ? 1 : T : 1 & b.mode ? zh ? 2 + 10 * (1 + ((a - 2 + 15) / 10 | 0)) : 2 + 25 * (1 + ((a - 2 + 500) / 25 | 0)) : 1, 17987 zh && (0 === Ah || a > Ah) && (Ah = a), a; 17988 } 17989 function kg(a, b) { 17990 for (;null !== a; ) { 17991 if ((0 === a.expirationTime || a.expirationTime > b) && (a.expirationTime = b), 17992 null !== a.alternate && (0 === a.alternate.expirationTime || a.alternate.expirationTime > b) && (a.alternate.expirationTime = b), 17993 null === a.return) { 17994 if (3 !== a.tag) break; 17995 var c = a.stateNode; 17996 !lh && 0 !== T && b < T && rh(); 17997 var d = c.current.expirationTime; 17998 lh && !ph && mh === c || wh(c, d), Bh > Ch && A("185"); 17999 } 18000 a = a.return; 18001 } 18002 } 18003 function ig() { 18004 return ih = af() - gh, hh = 2 + (ih / 10 | 0); 18005 } 18006 function Dh(a) { 18007 var b = kh; 18008 kh = 2 + 25 * (1 + ((ig() - 2 + 500) / 25 | 0)); 18009 try { 18010 return a(); 18011 } finally { 18012 kh = b; 18013 } 18014 } 18015 function Eh(a, b, c, d, e) { 18016 var f = kh; 18017 kh = 1; 18018 try { 18019 return a(b, c, d, e); 18020 } finally { 18021 kh = f; 18022 } 18023 } 18024 function Ph(a) { 18025 if (0 !== Gh) { 18026 if (a > Gh) return; 18027 cf(Hh); 18028 } 18029 var b = af() - gh; 18030 Gh = a, Hh = bf(Qh, { 18031 timeout: 10 * (a - 2) - b 18032 }); 18033 } 18034 function wh(a, b) { 18035 if (null === a.nextScheduledRoot) a.remainingExpirationTime = b, null === V ? (Fh = V = a, 18036 a.nextScheduledRoot = a) : (V = V.nextScheduledRoot = a, V.nextScheduledRoot = Fh); else { 18037 var c = a.remainingExpirationTime; 18038 (0 === c || b < c) && (a.remainingExpirationTime = b); 18039 } 18040 W || (Z ? Mh && (X = a, Y = 1, Rh(a, 1, !1)) : 1 === b ? Sh() : Ph(b)); 18041 } 18042 function Th() { 18043 var a = 0, b = null; 18044 if (null !== V) for (var c = V, d = Fh; null !== d; ) { 18045 var e = d.remainingExpirationTime; 18046 if (0 === e) { 18047 if ((null === c || null === V) && A("244"), d === d.nextScheduledRoot) { 18048 Fh = V = d.nextScheduledRoot = null; 18049 break; 18050 } 18051 if (d === Fh) Fh = e = d.nextScheduledRoot, V.nextScheduledRoot = e, d.nextScheduledRoot = null; else { 18052 if (d === V) { 18053 V = c, V.nextScheduledRoot = Fh, d.nextScheduledRoot = null; 18054 break; 18055 } 18056 c.nextScheduledRoot = d.nextScheduledRoot, d.nextScheduledRoot = null; 18057 } 18058 d = c.nextScheduledRoot; 18059 } else { 18060 if ((0 === a || e < a) && (a = e, b = d), d === V) break; 18061 c = d, d = d.nextScheduledRoot; 18062 } 18063 } 18064 c = X, null !== c && c === b && 1 === a ? Bh++ : Bh = 0, X = b, Y = a; 18065 } 18066 function Qh(a) { 18067 Uh(0, !0, a); 18068 } 18069 function Sh() { 18070 Uh(1, !1, null); 18071 } 18072 function Uh(a, b, c) { 18073 if (Lh = c, Th(), b) for (;null !== X && 0 !== Y && (0 === a || a >= Y) && (!Ih || ig() >= Y); ) ig(), 18074 Rh(X, Y, !Ih), Th(); else for (;null !== X && 0 !== Y && (0 === a || a >= Y); ) Rh(X, Y, !1), 18075 Th(); 18076 null !== Lh && (Gh = 0, Hh = -1), 0 !== Y && Ph(Y), Lh = null, Ih = !1, Vh(); 18077 } 18078 function Wh(a, b) { 18079 W && A("253"), X = a, Y = b, Rh(a, b, !1), Sh(), Vh(); 18080 } 18081 function Vh() { 18082 if (Bh = 0, null !== Nh) { 18083 var a = Nh; 18084 Nh = null; 18085 for (var b = 0; b < a.length; b++) { 18086 var c = a[b]; 18087 try { 18088 c._onComplete(); 18089 } catch (d) { 18090 Jh || (Jh = !0, Kh = d); 18091 } 18092 } 18093 } 18094 if (Jh) throw a = Kh, Kh = null, Jh = !1, a; 18095 } 18096 function Rh(a, b, c) { 18097 W && A("245"), W = !0, c ? (c = a.finishedWork, null !== c ? Xh(a, c, b) : (a.finishedWork = null, 18098 null !== (c = uh(a, b, !0)) && (vh() ? a.finishedWork = c : Xh(a, c, b)))) : (c = a.finishedWork, 18099 null !== c ? Xh(a, c, b) : (a.finishedWork = null, null !== (c = uh(a, b, !1)) && Xh(a, c, b))), 18100 W = !1; 18101 } 18102 function Xh(a, b, c) { 18103 var d = a.firstBatch; 18104 if (null !== d && d._expirationTime <= c && (null === Nh ? Nh = [ d ] : Nh.push(d), 18105 d._defer)) return a.finishedWork = b, void (a.remainingExpirationTime = 0); 18106 if (a.finishedWork = null, ph = lh = !0, c = b.stateNode, c.current === b && A("177"), 18107 d = c.pendingCommitExpirationTime, 0 === d && A("261"), c.pendingCommitExpirationTime = 0, 18108 ig(), ec.current = null, 1 < b.effectTag) if (null !== b.lastEffect) { 18109 b.lastEffect.nextEffect = b; 18110 var e = b.firstEffect; 18111 } else e = b; else e = b.firstEffect; 18112 Xe = Gd; 18113 var f = da(); 18114 if (Td(f)) { 18115 if ("selectionStart" in f) var g = { 18116 start: f.selectionStart, 18117 end: f.selectionEnd 18118 }; else a: { 18119 var h = window.getSelection && window.getSelection(); 18120 if (h && 0 !== h.rangeCount) { 18121 g = h.anchorNode; 18122 var k = h.anchorOffset, n = h.focusNode; 18123 h = h.focusOffset; 18124 try { 18125 g.nodeType, n.nodeType; 18126 } catch (Wa) { 18127 g = null; 18128 break a; 18129 } 18130 var r = 0, w = -1, P = -1, kc = 0, Hd = 0, E = f, t = null; 18131 b: for (;;) { 18132 for (var x; E !== g || 0 !== k && 3 !== E.nodeType || (w = r + k), E !== n || 0 !== h && 3 !== E.nodeType || (P = r + h), 18133 3 === E.nodeType && (r += E.nodeValue.length), null !== (x = E.firstChild); ) t = E, 18134 E = x; 18135 for (;;) { 18136 if (E === f) break b; 18137 if (t === g && ++kc === k && (w = r), t === n && ++Hd === h && (P = r), null !== (x = E.nextSibling)) break; 18138 E = t, t = E.parentNode; 18139 } 18140 E = x; 18141 } 18142 g = -1 === w || -1 === P ? null : { 18143 start: w, 18144 end: P 18145 }; 18146 } else g = null; 18147 } 18148 g = g || { 18149 start: 0, 18150 end: 0 18151 }; 18152 } else g = null; 18153 for (Ye = { 18154 focusedElem: f, 18155 selectionRange: g 18156 }, Id(!1), U = e; null !== U; ) { 18157 f = !1, g = void 0; 18158 try { 18159 for (;null !== U; ) { 18160 if (256 & U.effectTag) { 18161 var u = U.alternate; 18162 switch (k = U, k.tag) { 18163 case 2: 18164 if (256 & k.effectTag && null !== u) { 18165 var y = u.memoizedProps, D = u.memoizedState, ja = k.stateNode; 18166 ja.props = k.memoizedProps, ja.state = k.memoizedState; 18167 var hi = ja.getSnapshotBeforeUpdate(y, D); 18168 ja.__reactInternalSnapshotBeforeUpdate = hi; 18169 } 18170 break; 18171 18172 case 3: 18173 case 5: 18174 case 6: 18175 case 4: 18176 break; 18177 18178 default: 18179 A("163"); 18180 } 18181 } 18182 U = U.nextEffect; 18183 } 18184 } catch (Wa) { 18185 f = !0, g = Wa; 18186 } 18187 f && (null === U && A("178"), Vg(U, g), null !== U && (U = U.nextEffect)); 18188 } 18189 for (U = e; null !== U; ) { 18190 u = !1, y = void 0; 18191 try { 18192 for (;null !== U; ) { 18193 var q = U.effectTag; 18194 if (16 & q && Ge(U.stateNode, ""), 128 & q) { 18195 var z = U.alternate; 18196 if (null !== z) { 18197 var l = z.ref; 18198 null !== l && ("function" == typeof l ? l(null) : l.current = null); 18199 } 18200 } 18201 switch (14 & q) { 18202 case 2: 18203 Zg(U), U.effectTag &= -3; 18204 break; 18205 18206 case 6: 18207 Zg(U), U.effectTag &= -3, $g(U.alternate, U); 18208 break; 18209 18210 case 4: 18211 $g(U.alternate, U); 18212 break; 18213 18214 case 8: 18215 D = U, Xg(D), D.return = null, D.child = null, D.alternate && (D.alternate.child = null, 18216 D.alternate.return = null); 18217 } 18218 U = U.nextEffect; 18219 } 18220 } catch (Wa) { 18221 u = !0, y = Wa; 18222 } 18223 u && (null === U && A("178"), Vg(U, y), null !== U && (U = U.nextEffect)); 18224 } 18225 if (l = Ye, z = da(), q = l.focusedElem, u = l.selectionRange, z !== q && fa(document.documentElement, q)) { 18226 Td(q) && (z = u.start, l = u.end, void 0 === l && (l = z), "selectionStart" in q ? (q.selectionStart = z, 18227 q.selectionEnd = Math.min(l, q.value.length)) : window.getSelection && (z = window.getSelection(), 18228 y = q[lb()].length, l = Math.min(u.start, y), u = void 0 === u.end ? l : Math.min(u.end, y), 18229 !z.extend && l > u && (y = u, u = l, l = y), y = Sd(q, l), D = Sd(q, u), y && D && (1 !== z.rangeCount || z.anchorNode !== y.node || z.anchorOffset !== y.offset || z.focusNode !== D.node || z.focusOffset !== D.offset) && (ja = document.createRange(), 18230 ja.setStart(y.node, y.offset), z.removeAllRanges(), l > u ? (z.addRange(ja), z.extend(D.node, D.offset)) : (ja.setEnd(D.node, D.offset), 18231 z.addRange(ja))))), z = []; 18232 for (l = q; l = l.parentNode; ) 1 === l.nodeType && z.push({ 18233 element: l, 18234 left: l.scrollLeft, 18235 top: l.scrollTop 18236 }); 18237 for (q.focus(), q = 0; q < z.length; q++) l = z[q], l.element.scrollLeft = l.left, 18238 l.element.scrollTop = l.top; 18239 } 18240 for (Ye = null, Id(Xe), Xe = null, c.current = b, U = e; null !== U; ) { 18241 e = !1, q = void 0; 18242 try { 18243 for (z = d; null !== U; ) { 18244 var gg = U.effectTag; 18245 if (36 & gg) { 18246 var lc = U.alternate; 18247 switch (l = U, u = z, l.tag) { 18248 case 2: 18249 var ba = l.stateNode; 18250 if (4 & l.effectTag) if (null === lc) ba.props = l.memoizedProps, ba.state = l.memoizedState, 18251 ba.componentDidMount(); else { 18252 var ri = lc.memoizedProps, si = lc.memoizedState; 18253 ba.props = l.memoizedProps, ba.state = l.memoizedState, ba.componentDidUpdate(ri, si, ba.__reactInternalSnapshotBeforeUpdate); 18254 } 18255 var Mg = l.updateQueue; 18256 null !== Mg && (ba.props = l.memoizedProps, ba.state = l.memoizedState, Sf(l, Mg, ba, u)); 18257 break; 18258 18259 case 3: 18260 var Ng = l.updateQueue; 18261 if (null !== Ng) { 18262 if (y = null, null !== l.child) switch (l.child.tag) { 18263 case 5: 18264 y = l.child.stateNode; 18265 break; 18266 18267 case 2: 18268 y = l.child.stateNode; 18269 } 18270 Sf(l, Ng, y, u); 18271 } 18272 break; 18273 18274 case 5: 18275 var ti = l.stateNode; 18276 null === lc && 4 & l.effectTag && Ze(l.type, l.memoizedProps) && ti.focus(); 18277 break; 18278 18279 case 6: 18280 case 4: 18281 case 15: 18282 case 16: 18283 break; 18284 18285 default: 18286 A("163"); 18287 } 18288 } 18289 if (128 & gg) { 18290 l = void 0; 18291 var uc = U.ref; 18292 if (null !== uc) { 18293 var Og = U.stateNode; 18294 switch (U.tag) { 18295 case 5: 18296 l = Og; 18297 break; 18298 18299 default: 18300 l = Og; 18301 } 18302 "function" == typeof uc ? uc(l) : uc.current = l; 18303 } 18304 } 18305 var ui = U.nextEffect; 18306 U.nextEffect = null, U = ui; 18307 } 18308 } catch (Wa) { 18309 e = !0, q = Wa; 18310 } 18311 e && (null === U && A("178"), Vg(U, q), null !== U && (U = U.nextEffect)); 18312 } 18313 lh = ph = !1, "function" == typeof Ff && Ff(b.stateNode), b = c.current.expirationTime, 18314 0 === b && (dh = null), a.remainingExpirationTime = b; 18315 } 18316 function vh() { 18317 return !(null === Lh || Lh.timeRemaining() > Oh) && (Ih = !0); 18318 } 18319 function bh(a) { 18320 null === X && A("246"), X.remainingExpirationTime = 0, Jh || (Jh = !0, Kh = a); 18321 } 18322 function xh(a) { 18323 null === X && A("246"), X.remainingExpirationTime = a; 18324 } 18325 function Yh(a, b) { 18326 var c = Z; 18327 Z = !0; 18328 try { 18329 return a(b); 18330 } finally { 18331 (Z = c) || W || Sh(); 18332 } 18333 } 18334 function Zh(a, b) { 18335 if (Z && !Mh) { 18336 Mh = !0; 18337 try { 18338 return a(b); 18339 } finally { 18340 Mh = !1; 18341 } 18342 } 18343 return a(b); 18344 } 18345 function $h(a, b) { 18346 W && A("187"); 18347 var c = Z; 18348 Z = !0; 18349 try { 18350 return Eh(a, b); 18351 } finally { 18352 Z = c, Sh(); 18353 } 18354 } 18355 function ai(a) { 18356 var b = Z; 18357 Z = !0; 18358 try { 18359 Eh(a); 18360 } finally { 18361 (Z = b) || W || Uh(1, !1, null); 18362 } 18363 } 18364 function bi(a, b, c, d, e) { 18365 var f = b.current; 18366 if (c) { 18367 c = c._reactInternalFiber; 18368 var g; 18369 b: { 18370 for (2 === id(c) && 2 === c.tag || A("170"), g = c; 3 !== g.tag; ) { 18371 if (mf(g)) { 18372 g = g.stateNode.__reactInternalMemoizedMergedChildContext; 18373 break b; 18374 } 18375 (g = g.return) || A("171"); 18376 } 18377 g = g.stateNode.context; 18378 } 18379 c = mf(c) ? rf(c, g) : g; 18380 } else c = ha; 18381 return null === b.context ? b.context = c : b.pendingContext = c, b = e, e = Kf(d), 18382 e.payload = { 18383 element: a 18384 }, b = void 0 === b ? null : b, null !== b && (e.callback = b), Mf(f, e, d), kg(f, d), 18385 d; 18386 } 18387 function ci(a) { 18388 var b = a._reactInternalFiber; 18389 return void 0 === b && ("function" == typeof a.render ? A("188") : A("268", Object.keys(a))), 18390 a = ld(b), null === a ? null : a.stateNode; 18391 } 18392 function di(a, b, c, d) { 18393 var e = b.current; 18394 return e = jg(ig(), e), bi(a, b, c, e, d); 18395 } 18396 function ei(a) { 18397 if (a = a.current, !a.child) return null; 18398 switch (a.child.tag) { 18399 case 5: 18400 default: 18401 return a.child.stateNode; 18402 } 18403 } 18404 function fi(a) { 18405 var b = a.findFiberByHostInstance; 18406 return Ef(p({}, a, { 18407 findHostInstanceByFiber: function(a) { 18408 return a = ld(a), null === a ? null : a.stateNode; 18409 }, 18410 findFiberByHostInstance: function(a) { 18411 return b ? b(a) : null; 18412 } 18413 })); 18414 } 18415 function ii(a, b, c) { 18416 var d = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null; 18417 return { 18418 $$typeof: gc, 18419 key: null == d ? null : "" + d, 18420 children: a, 18421 containerInfo: b, 18422 implementation: c 18423 }; 18424 } 18425 function ji(a) { 18426 this._expirationTime = yh(), this._root = a, this._callbacks = this._next = null, 18427 this._hasChildren = this._didComplete = !1, this._children = null, this._defer = !0; 18428 } 18429 function ki() { 18430 this._callbacks = null, this._didCommit = !1, this._onCommit = this._onCommit.bind(this); 18431 } 18432 function li(a, b, c) { 18433 this._internalRoot = Af(a, b, c); 18434 } 18435 function mi(a) { 18436 return !(!a || 1 !== a.nodeType && 9 !== a.nodeType && 11 !== a.nodeType && (8 !== a.nodeType || " react-mount-point-unstable " !== a.nodeValue)); 18437 } 18438 function ni(a, b) { 18439 if (b || (b = a ? 9 === a.nodeType ? a.documentElement : a.firstChild : null, b = !(!b || 1 !== b.nodeType || !b.hasAttribute("data-reactroot"))), 18440 !b) for (var c; c = a.lastChild; ) a.removeChild(c); 18441 return new li(a, !1, b); 18442 } 18443 function oi(a, b, c, d, e) { 18444 mi(c) || A("200"); 18445 var f = c._reactRootContainer; 18446 if (f) { 18447 if ("function" == typeof e) { 18448 var g = e; 18449 e = function() { 18450 var a = ei(f._internalRoot); 18451 g.call(a); 18452 }; 18453 } 18454 null != a ? f.legacy_renderSubtreeIntoContainer(a, b, e) : f.render(b, e); 18455 } else { 18456 if (f = c._reactRootContainer = ni(c, d), "function" == typeof e) { 18457 var h = e; 18458 e = function() { 18459 var a = ei(f._internalRoot); 18460 h.call(a); 18461 }; 18462 } 18463 Zh(function() { 18464 null != a ? f.legacy_renderSubtreeIntoContainer(a, b, e) : f.render(b, e); 18465 }); 18466 } 18467 return ei(f._internalRoot); 18468 } 18469 function pi(a, b) { 18470 var c = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null; 18471 return mi(b) || A("200"), ii(a, b, null, c); 18472 } 18473 var aa = __webpack_require__(49), ca = __webpack_require__(0), m = __webpack_require__(219), p = __webpack_require__(74), v = __webpack_require__(50), da = __webpack_require__(220), ea = __webpack_require__(100), fa = __webpack_require__(221), ha = __webpack_require__(97); 18474 ca || A("227"); 18475 var B = { 18476 _caughtError: null, 18477 _hasCaughtError: !1, 18478 _rethrowError: null, 18479 _hasRethrowError: !1, 18480 invokeGuardedCallback: function(a, b, c, d, e, f, g, h, k) { 18481 ia.apply(B, arguments); 18482 }, 18483 invokeGuardedCallbackAndCatchFirstError: function(a, b, c, d, e, f, g, h, k) { 18484 if (B.invokeGuardedCallback.apply(this, arguments), B.hasCaughtError()) { 18485 var n = B.clearCaughtError(); 18486 B._hasRethrowError || (B._hasRethrowError = !0, B._rethrowError = n); 18487 } 18488 }, 18489 rethrowCaughtError: function() { 18490 return ka.apply(B, arguments); 18491 }, 18492 hasCaughtError: function() { 18493 return B._hasCaughtError; 18494 }, 18495 clearCaughtError: function() { 18496 if (B._hasCaughtError) { 18497 var a = B._caughtError; 18498 return B._caughtError = null, B._hasCaughtError = !1, a; 18499 } 18500 A("198"); 18501 } 18502 }, la = null, ma = {}, oa = [], pa = {}, ra = {}, sa = {}, va = { 18503 plugins: oa, 18504 eventNameDispatchConfigs: pa, 18505 registrationNameModules: ra, 18506 registrationNameDependencies: sa, 18507 possibleRegistrationNames: null, 18508 injectEventPluginOrder: ta, 18509 injectEventPluginsByName: ua 18510 }, wa = null, xa = null, ya = null, Ca = null, Ga = { 18511 injectEventPluginOrder: ta, 18512 injectEventPluginsByName: ua 18513 }, Ka = { 18514 injection: Ga, 18515 getListener: Ha, 18516 runEventsInBatch: Ia, 18517 runExtractedEventsInBatch: Ja 18518 }, La = Math.random().toString(36).slice(2), C = "__reactInternalInstance$" + La, Ma = "__reactEventHandlers$" + La, Qa = { 18519 precacheFiberNode: function(a, b) { 18520 b[C] = a; 18521 }, 18522 getClosestInstanceFromNode: Na, 18523 getInstanceFromNode: function(a) { 18524 return a = a[C], !a || 5 !== a.tag && 6 !== a.tag ? null : a; 18525 }, 18526 getNodeFromInstance: Oa, 18527 getFiberCurrentPropsFromNode: Pa, 18528 updateFiberProps: function(a, b) { 18529 a[Ma] = b; 18530 } 18531 }, $a = { 18532 accumulateTwoPhaseDispatches: Ya, 18533 accumulateTwoPhaseDispatchesSkipTarget: function(a) { 18534 Ba(a, Ua); 18535 }, 18536 accumulateEnterLeaveDispatches: Za, 18537 accumulateDirectDispatches: function(a) { 18538 Ba(a, Xa); 18539 } 18540 }, bb = { 18541 animationend: ab("Animation", "AnimationEnd"), 18542 animationiteration: ab("Animation", "AnimationIteration"), 18543 animationstart: ab("Animation", "AnimationStart"), 18544 transitionend: ab("Transition", "TransitionEnd") 18545 }, cb = {}, db = {}; 18546 m.canUseDOM && (db = document.createElement("div").style, "AnimationEvent" in window || (delete bb.animationend.animation, 18547 delete bb.animationiteration.animation, delete bb.animationstart.animation), "TransitionEvent" in window || delete bb.transitionend.transition); 18548 var fb = eb("animationend"), gb = eb("animationiteration"), hb = eb("animationstart"), ib = eb("transitionend"), jb = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), kb = null, G = { 18549 _root: null, 18550 _startText: null, 18551 _fallbackText: null 18552 }, ob = "dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "), pb = { 18553 type: null, 18554 target: null, 18555 currentTarget: v.thatReturnsNull, 18556 eventPhase: null, 18557 bubbles: null, 18558 cancelable: null, 18559 timeStamp: function(a) { 18560 return a.timeStamp || Date.now(); 18561 }, 18562 defaultPrevented: null, 18563 isTrusted: null 18564 }; 18565 p(H.prototype, { 18566 preventDefault: function() { 18567 this.defaultPrevented = !0; 18568 var a = this.nativeEvent; 18569 a && (a.preventDefault ? a.preventDefault() : "unknown" != typeof a.returnValue && (a.returnValue = !1), 18570 this.isDefaultPrevented = v.thatReturnsTrue); 18571 }, 18572 stopPropagation: function() { 18573 var a = this.nativeEvent; 18574 a && (a.stopPropagation ? a.stopPropagation() : "unknown" != typeof a.cancelBubble && (a.cancelBubble = !0), 18575 this.isPropagationStopped = v.thatReturnsTrue); 18576 }, 18577 persist: function() { 18578 this.isPersistent = v.thatReturnsTrue; 18579 }, 18580 isPersistent: v.thatReturnsFalse, 18581 destructor: function() { 18582 var b, a = this.constructor.Interface; 18583 for (b in a) this[b] = null; 18584 for (a = 0; a < ob.length; a++) this[ob[a]] = null; 18585 } 18586 }), H.Interface = pb, H.extend = function(a) { 18587 function b() {} 18588 function c() { 18589 return d.apply(this, arguments); 18590 } 18591 var d = this; 18592 b.prototype = d.prototype; 18593 var e = new b(); 18594 return p(e, c.prototype), c.prototype = e, c.prototype.constructor = c, c.Interface = p({}, d.Interface, a), 18595 c.extend = d.extend, qb(c), c; 18596 }, qb(H); 18597 var tb = H.extend({ 18598 data: null 18599 }), ub = H.extend({ 18600 data: null 18601 }), vb = [ 9, 13, 27, 32 ], wb = m.canUseDOM && "CompositionEvent" in window, xb = null; 18602 m.canUseDOM && "documentMode" in document && (xb = document.documentMode); 18603 var yb = m.canUseDOM && "TextEvent" in window && !xb, zb = m.canUseDOM && (!wb || xb && 8 < xb && 11 >= xb), Ab = String.fromCharCode(32), Bb = { 18604 beforeInput: { 18605 phasedRegistrationNames: { 18606 bubbled: "onBeforeInput", 18607 captured: "onBeforeInputCapture" 18608 }, 18609 dependencies: [ "compositionend", "keypress", "textInput", "paste" ] 18610 }, 18611 compositionEnd: { 18612 phasedRegistrationNames: { 18613 bubbled: "onCompositionEnd", 18614 captured: "onCompositionEndCapture" 18615 }, 18616 dependencies: "blur compositionend keydown keypress keyup mousedown".split(" ") 18617 }, 18618 compositionStart: { 18619 phasedRegistrationNames: { 18620 bubbled: "onCompositionStart", 18621 captured: "onCompositionStartCapture" 18622 }, 18623 dependencies: "blur compositionstart keydown keypress keyup mousedown".split(" ") 18624 }, 18625 compositionUpdate: { 18626 phasedRegistrationNames: { 18627 bubbled: "onCompositionUpdate", 18628 captured: "onCompositionUpdateCapture" 18629 }, 18630 dependencies: "blur compositionupdate keydown keypress keyup mousedown".split(" ") 18631 } 18632 }, Cb = !1, Fb = !1, Ib = { 18633 eventTypes: Bb, 18634 extractEvents: function(a, b, c, d) { 18635 var e = void 0, f = void 0; 18636 if (wb) b: { 18637 switch (a) { 18638 case "compositionstart": 18639 e = Bb.compositionStart; 18640 break b; 18641 18642 case "compositionend": 18643 e = Bb.compositionEnd; 18644 break b; 18645 18646 case "compositionupdate": 18647 e = Bb.compositionUpdate; 18648 break b; 18649 } 18650 e = void 0; 18651 } else Fb ? Db(a, c) && (e = Bb.compositionEnd) : "keydown" === a && 229 === c.keyCode && (e = Bb.compositionStart); 18652 return e ? (zb && (Fb || e !== Bb.compositionStart ? e === Bb.compositionEnd && Fb && (f = mb()) : (G._root = d, 18653 G._startText = nb(), Fb = !0)), e = tb.getPooled(e, b, c, d), f ? e.data = f : null !== (f = Eb(c)) && (e.data = f), 18654 Ya(e), f = e) : f = null, (a = yb ? Gb(a, c) : Hb(a, c)) ? (b = ub.getPooled(Bb.beforeInput, b, c, d), 18655 b.data = a, Ya(b)) : b = null, null === f ? b : null === b ? f : [ f, b ]; 18656 } 18657 }, Jb = null, Kb = { 18658 injectFiberControlledHostComponent: function(a) { 18659 Jb = a; 18660 } 18661 }, Lb = null, Mb = null, Rb = { 18662 injection: Kb, 18663 enqueueStateRestore: Ob, 18664 needsStateRestore: Pb, 18665 restoreStateIfNeeded: Qb 18666 }, Vb = !1, Xb = { 18667 color: !0, 18668 date: !0, 18669 datetime: !0, 18670 "datetime-local": !0, 18671 email: !0, 18672 month: !0, 18673 number: !0, 18674 password: !0, 18675 range: !0, 18676 search: !0, 18677 tel: !0, 18678 text: !0, 18679 time: !0, 18680 url: !0, 18681 week: !0 18682 }, ec = ca.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, I = "function" == typeof Symbol && Symbol.for, fc = I ? Symbol.for("react.element") : 60103, gc = I ? Symbol.for("react.portal") : 60106, hc = I ? Symbol.for("react.fragment") : 60107, ic = I ? Symbol.for("react.strict_mode") : 60108, jc = I ? Symbol.for("react.profiler") : 60114, mc = I ? Symbol.for("react.provider") : 60109, nc = I ? Symbol.for("react.context") : 60110, oc = I ? Symbol.for("react.async_mode") : 60111, pc = I ? Symbol.for("react.forward_ref") : 60112, qc = I ? Symbol.for("react.timeout") : 60113, rc = "function" == typeof Symbol && Symbol.iterator, wc = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, xc = {}, yc = {}, K = {}; 18683 "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a) { 18684 K[a] = new J(a, 0, !1, a, null); 18685 }), [ [ "acceptCharset", "accept-charset" ], [ "className", "class" ], [ "htmlFor", "for" ], [ "httpEquiv", "http-equiv" ] ].forEach(function(a) { 18686 var b = a[0]; 18687 K[b] = new J(b, 1, !1, a[1], null); 18688 }), [ "contentEditable", "draggable", "spellCheck", "value" ].forEach(function(a) { 18689 K[a] = new J(a, 2, !1, a.toLowerCase(), null); 18690 }), [ "autoReverse", "externalResourcesRequired", "preserveAlpha" ].forEach(function(a) { 18691 K[a] = new J(a, 2, !1, a, null); 18692 }), "allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a) { 18693 K[a] = new J(a, 3, !1, a.toLowerCase(), null); 18694 }), [ "checked", "multiple", "muted", "selected" ].forEach(function(a) { 18695 K[a] = new J(a, 3, !0, a.toLowerCase(), null); 18696 }), [ "capture", "download" ].forEach(function(a) { 18697 K[a] = new J(a, 4, !1, a.toLowerCase(), null); 18698 }), [ "cols", "rows", "size", "span" ].forEach(function(a) { 18699 K[a] = new J(a, 6, !1, a.toLowerCase(), null); 18700 }), [ "rowSpan", "start" ].forEach(function(a) { 18701 K[a] = new J(a, 5, !1, a.toLowerCase(), null); 18702 }); 18703 var Cc = /[\-:]([a-z])/g; 18704 "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a) { 18705 var b = a.replace(Cc, Dc); 18706 K[b] = new J(b, 1, !1, a, null); 18707 }), "xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a) { 18708 var b = a.replace(Cc, Dc); 18709 K[b] = new J(b, 1, !1, a, "http://www.w3.org/1999/xlink);; 18710 }), [ "xml:base", "xml:lang", "xml:space" ].forEach(function(a) { 18711 var b = a.replace(Cc, Dc); 18712 K[b] = new J(b, 1, !1, a, "http://www.w3.org/XML/1998/namespace"); 18713 }), K.tabIndex = new J("tabIndex", 1, !1, "tabindex", null); 18714 var Mc = { 18715 change: { 18716 phasedRegistrationNames: { 18717 bubbled: "onChange", 18718 captured: "onChangeCapture" 18719 }, 18720 dependencies: "blur change click focus input keydown keyup selectionchange".split(" ") 18721 } 18722 }, Oc = null, Pc = null, Tc = !1; 18723 m.canUseDOM && (Tc = $b("input") && (!document.documentMode || 9 < document.documentMode)); 18724 var $c = { 18725 eventTypes: Mc, 18726 _isInputEventSupported: Tc, 18727 extractEvents: function(a, b, c, d) { 18728 var e = b ? Oa(b) : window, f = void 0, g = void 0, h = e.nodeName && e.nodeName.toLowerCase(); 18729 if ("select" === h || "input" === h && "file" === e.type ? f = Sc : Yb(e) ? Tc ? f = Zc : (f = Xc, 18730 g = Wc) : (h = e.nodeName) && "input" === h.toLowerCase() && ("checkbox" === e.type || "radio" === e.type) && (f = Yc), 18731 f && (f = f(a, b))) return Nc(f, c, d); 18732 g && g(a, e, b), "blur" === a && null != b && (a = b._wrapperState || e._wrapperState) && a.controlled && "number" === e.type && Kc(e, "number", e.value); 18733 } 18734 }, ad = H.extend({ 18735 view: null, 18736 detail: null 18737 }), bd = { 18738 Alt: "altKey", 18739 Control: "ctrlKey", 18740 Meta: "metaKey", 18741 Shift: "shiftKey" 18742 }, ed = ad.extend({ 18743 screenX: null, 18744 screenY: null, 18745 clientX: null, 18746 clientY: null, 18747 pageX: null, 18748 pageY: null, 18749 ctrlKey: null, 18750 shiftKey: null, 18751 altKey: null, 18752 metaKey: null, 18753 getModifierState: dd, 18754 button: null, 18755 buttons: null, 18756 relatedTarget: function(a) { 18757 return a.relatedTarget || (a.fromElement === a.srcElement ? a.toElement : a.fromElement); 18758 } 18759 }), fd = ed.extend({ 18760 pointerId: null, 18761 width: null, 18762 height: null, 18763 pressure: null, 18764 tiltX: null, 18765 tiltY: null, 18766 pointerType: null, 18767 isPrimary: null 18768 }), gd = { 18769 mouseEnter: { 18770 registrationName: "onMouseEnter", 18771 dependencies: [ "mouseout", "mouseover" ] 18772 }, 18773 mouseLeave: { 18774 registrationName: "onMouseLeave", 18775 dependencies: [ "mouseout", "mouseover" ] 18776 }, 18777 pointerEnter: { 18778 registrationName: "onPointerEnter", 18779 dependencies: [ "pointerout", "pointerover" ] 18780 }, 18781 pointerLeave: { 18782 registrationName: "onPointerLeave", 18783 dependencies: [ "pointerout", "pointerover" ] 18784 } 18785 }, hd = { 18786 eventTypes: gd, 18787 extractEvents: function(a, b, c, d) { 18788 var e = "mouseover" === a || "pointerover" === a, f = "mouseout" === a || "pointerout" === a; 18789 if (e && (c.relatedTarget || c.fromElement) || !f && !e) return null; 18790 if (e = d.window === d ? d : (e = d.ownerDocument) ? e.defaultView || e.parentWindow : window, 18791 f ? (f = b, b = (b = c.relatedTarget || c.toElement) ? Na(b) : null) : f = null, 18792 f === b) return null; 18793 var g = void 0, h = void 0, k = void 0, n = void 0; 18794 return "mouseout" === a || "mouseover" === a ? (g = ed, h = gd.mouseLeave, k = gd.mouseEnter, 18795 n = "mouse") : "pointerout" !== a && "pointerover" !== a || (g = fd, h = gd.pointerLeave, 18796 k = gd.pointerEnter, n = "pointer"), a = null == f ? e : Oa(f), e = null == b ? e : Oa(b), 18797 h = g.getPooled(h, f, c, d), h.type = n + "leave", h.target = a, h.relatedTarget = e, 18798 c = g.getPooled(k, b, c, d), c.type = n + "enter", c.target = e, c.relatedTarget = a, 18799 Za(h, c, f, b), [ h, c ]; 18800 } 18801 }, nd = H.extend({ 18802 animationName: null, 18803 elapsedTime: null, 18804 pseudoElement: null 18805 }), od = H.extend({ 18806 clipboardData: function(a) { 18807 return "clipboardData" in a ? a.clipboardData : window.clipboardData; 18808 } 18809 }), pd = ad.extend({ 18810 relatedTarget: null 18811 }), rd = { 18812 Esc: "Escape", 18813 Spacebar: " ", 18814 Left: "ArrowLeft", 18815 Up: "ArrowUp", 18816 Right: "ArrowRight", 18817 Down: "ArrowDown", 18818 Del: "Delete", 18819 Win: "OS", 18820 Menu: "ContextMenu", 18821 Apps: "ContextMenu", 18822 Scroll: "ScrollLock", 18823 MozPrintableKey: "Unidentified" 18824 }, sd = { 18825 8: "Backspace", 18826 9: "Tab", 18827 12: "Clear", 18828 13: "Enter", 18829 16: "Shift", 18830 17: "Control", 18831 18: "Alt", 18832 19: "Pause", 18833 20: "CapsLock", 18834 27: "Escape", 18835 32: " ", 18836 33: "PageUp", 18837 34: "PageDown", 18838 35: "End", 18839 36: "Home", 18840 37: "ArrowLeft", 18841 38: "ArrowUp", 18842 39: "ArrowRight", 18843 40: "ArrowDown", 18844 45: "Insert", 18845 46: "Delete", 18846 112: "F1", 18847 113: "F2", 18848 114: "F3", 18849 115: "F4", 18850 116: "F5", 18851 117: "F6", 18852 118: "F7", 18853 119: "F8", 18854 120: "F9", 18855 121: "F10", 18856 122: "F11", 18857 123: "F12", 18858 144: "NumLock", 18859 145: "ScrollLock", 18860 224: "Meta" 18861 }, td = ad.extend({ 18862 key: function(a) { 18863 if (a.key) { 18864 var b = rd[a.key] || a.key; 18865 if ("Unidentified" !== b) return b; 18866 } 18867 return "keypress" === a.type ? (a = qd(a), 13 === a ? "Enter" : String.fromCharCode(a)) : "keydown" === a.type || "keyup" === a.type ? sd[a.keyCode] || "Unidentified" : ""; 18868 }, 18869 location: null, 18870 ctrlKey: null, 18871 shiftKey: null, 18872 altKey: null, 18873 metaKey: null, 18874 repeat: null, 18875 locale: null, 18876 getModifierState: dd, 18877 charCode: function(a) { 18878 return "keypress" === a.type ? qd(a) : 0; 18879 }, 18880 keyCode: function(a) { 18881 return "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0; 18882 }, 18883 which: function(a) { 18884 return "keypress" === a.type ? qd(a) : "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0; 18885 } 18886 }), ud = ed.extend({ 18887 dataTransfer: null 18888 }), vd = ad.extend({ 18889 touches: null, 18890 targetTouches: null, 18891 changedTouches: null, 18892 altKey: null, 18893 metaKey: null, 18894 ctrlKey: null, 18895 shiftKey: null, 18896 getModifierState: dd 18897 }), wd = H.extend({ 18898 propertyName: null, 18899 elapsedTime: null, 18900 pseudoElement: null 18901 }), xd = ed.extend({ 18902 deltaX: function(a) { 18903 return "deltaX" in a ? a.deltaX : "wheelDeltaX" in a ? -a.wheelDeltaX : 0; 18904 }, 18905 deltaY: function(a) { 18906 return "deltaY" in a ? a.deltaY : "wheelDeltaY" in a ? -a.wheelDeltaY : "wheelDelta" in a ? -a.wheelDelta : 0; 18907 }, 18908 deltaZ: null, 18909 deltaMode: null 18910 }), yd = [ [ "abort", "abort" ], [ fb, "animationEnd" ], [ gb, "animationIteration" ], [ hb, "animationStart" ], [ "canplay", "canPlay" ], [ "canplaythrough", "canPlayThrough" ], [ "drag", "drag" ], [ "dragenter", "dragEnter" ], [ "dragexit", "dragExit" ], [ "dragleave", "dragLeave" ], [ "dragover", "dragOver" ], [ "durationchange", "durationChange" ], [ "emptied", "emptied" ], [ "encrypted", "encrypted" ], [ "ended", "ended" ], [ "error", "error" ], [ "gotpointercapture", "gotPointerCapture" ], [ "load", "load" ], [ "loadeddata", "loadedData" ], [ "loadedmetadata", "loadedMetadata" ], [ "loadstart", "loadStart" ], [ "lostpointercapture", "lostPointerCapture" ], [ "mousemove", "mouseMove" ], [ "mouseout", "mouseOut" ], [ "mouseover", "mouseOver" ], [ "playing", "playing" ], [ "pointermove", "pointerMove" ], [ "pointerout", "pointerOut" ], [ "pointerover", "pointerOver" ], [ "progress", "progress" ], [ "scroll", "scroll" ], [ "seeking", "seeking" ], [ "stalled", "stalled" ], [ "suspend", "suspend" ], [ "timeupdate", "timeUpdate" ], [ "toggle", "toggle" ], [ "touchmove", "touchMove" ], [ ib, "transitionEnd" ], [ "waiting", "waiting" ], [ "wheel", "wheel" ] ], zd = {}, Ad = {}; 18911 [ [ "blur", "blur" ], [ "cancel", "cancel" ], [ "click", "click" ], [ "close", "close" ], [ "contextmenu", "contextMenu" ], [ "copy", "copy" ], [ "cut", "cut" ], [ "dblclick", "doubleClick" ], [ "dragend", "dragEnd" ], [ "dragstart", "dragStart" ], [ "drop", "drop" ], [ "focus", "focus" ], [ "input", "input" ], [ "invalid", "invalid" ], [ "keydown", "keyDown" ], [ "keypress", "keyPress" ], [ "keyup", "keyUp" ], [ "mousedown", "mouseDown" ], [ "mouseup", "mouseUp" ], [ "paste", "paste" ], [ "pause", "pause" ], [ "play", "play" ], [ "pointercancel", "pointerCancel" ], [ "pointerdown", "pointerDown" ], [ "pointerup", "pointerUp" ], [ "ratechange", "rateChange" ], [ "reset", "reset" ], [ "seeked", "seeked" ], [ "submit", "submit" ], [ "touchcancel", "touchCancel" ], [ "touchend", "touchEnd" ], [ "touchstart", "touchStart" ], [ "volumechange", "volumeChange" ] ].forEach(function(a) { 18912 Bd(a, !0); 18913 }), yd.forEach(function(a) { 18914 Bd(a, !1); 18915 }); 18916 var Cd = { 18917 eventTypes: zd, 18918 isInteractiveTopLevelEventType: function(a) { 18919 return void 0 !== (a = Ad[a]) && !0 === a.isInteractive; 18920 }, 18921 extractEvents: function(a, b, c, d) { 18922 var e = Ad[a]; 18923 if (!e) return null; 18924 switch (a) { 18925 case "keypress": 18926 if (0 === qd(c)) return null; 18927 18928 case "keydown": 18929 case "keyup": 18930 a = td; 18931 break; 18932 18933 case "blur": 18934 case "focus": 18935 a = pd; 18936 break; 18937 18938 case "click": 18939 if (2 === c.button) return null; 18940 18941 case "dblclick": 18942 case "mousedown": 18943 case "mousemove": 18944 case "mouseup": 18945 case "mouseout": 18946 case "mouseover": 18947 case "contextmenu": 18948 a = ed; 18949 break; 18950 18951 case "drag": 18952 case "dragend": 18953 case "dragenter": 18954 case "dragexit": 18955 case "dragleave": 18956 case "dragover": 18957 case "dragstart": 18958 case "drop": 18959 a = ud; 18960 break; 18961 18962 case "touchcancel": 18963 case "touchend": 18964 case "touchmove": 18965 case "touchstart": 18966 a = vd; 18967 break; 18968 18969 case fb: 18970 case gb: 18971 case hb: 18972 a = nd; 18973 break; 18974 18975 case ib: 18976 a = wd; 18977 break; 18978 18979 case "scroll": 18980 a = ad; 18981 break; 18982 18983 case "wheel": 18984 a = xd; 18985 break; 18986 18987 case "copy": 18988 case "cut": 18989 case "paste": 18990 a = od; 18991 break; 18992 18993 case "gotpointercapture": 18994 case "lostpointercapture": 18995 case "pointercancel": 18996 case "pointerdown": 18997 case "pointermove": 18998 case "pointerout": 18999 case "pointerover": 19000 case "pointerup": 19001 a = fd; 19002 break; 19003 19004 default: 19005 a = H; 19006 } 19007 return b = a.getPooled(e, b, c, d), Ya(b), b; 19008 } 19009 }, Dd = Cd.isInteractiveTopLevelEventType, Ed = [], Gd = !0, Md = { 19010 get _enabled() { 19011 return Gd; 19012 }, 19013 setEnabled: Id, 19014 isEnabled: function() { 19015 return Gd; 19016 }, 19017 trapBubbledEvent: L, 19018 trapCapturedEvent: Ld, 19019 dispatchEvent: Kd 19020 }, Nd = {}, Od = 0, Pd = "_reactListenersID" + ("" + Math.random()).slice(2), Ud = m.canUseDOM && "documentMode" in document && 11 >= document.documentMode, Vd = { 19021 select: { 19022 phasedRegistrationNames: { 19023 bubbled: "onSelect", 19024 captured: "onSelectCapture" 19025 }, 19026 dependencies: "blur contextmenu focus keydown keyup mousedown mouseup selectionchange".split(" ") 19027 } 19028 }, Wd = null, Xd = null, Yd = null, Zd = !1, ae = { 19029 eventTypes: Vd, 19030 extractEvents: function(a, b, c, d) { 19031 var f, e = d.window === d ? d.document : 9 === d.nodeType ? d : d.ownerDocument; 19032 if (!(f = !e)) { 19033 a: { 19034 e = Qd(e), f = sa.onSelect; 19035 for (var g = 0; g < f.length; g++) { 19036 var h = f[g]; 19037 if (!e.hasOwnProperty(h) || !e[h]) { 19038 e = !1; 19039 break a; 19040 } 19041 } 19042 e = !0; 19043 } 19044 f = !e; 19045 } 19046 if (f) return null; 19047 switch (e = b ? Oa(b) : window, a) { 19048 case "focus": 19049 (Yb(e) || "true" === e.contentEditable) && (Wd = e, Xd = b, Yd = null); 19050 break; 19051 19052 case "blur": 19053 Yd = Xd = Wd = null; 19054 break; 19055 19056 case "mousedown": 19057 Zd = !0; 19058 break; 19059 19060 case "contextmenu": 19061 case "mouseup": 19062 return Zd = !1, $d(c, d); 19063 19064 case "selectionchange": 19065 if (Ud) break; 19066 19067 case "keydown": 19068 case "keyup": 19069 return $d(c, d); 19070 } 19071 return null; 19072 } 19073 }; 19074 Ga.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")), 19075 wa = Qa.getFiberCurrentPropsFromNode, xa = Qa.getInstanceFromNode, ya = Qa.getNodeFromInstance, 19076 Ga.injectEventPluginsByName({ 19077 SimpleEventPlugin: Cd, 19078 EnterLeaveEventPlugin: hd, 19079 ChangeEventPlugin: $c, 19080 SelectEventPlugin: ae, 19081 BeforeInputEventPlugin: Ib 19082 }); 19083 var be = void 0; 19084 be = "object" == typeof performance && "function" == typeof performance.now ? function() { 19085 return performance.now(); 19086 } : function() { 19087 return Date.now(); 19088 }; 19089 var ce = void 0, de = void 0; 19090 if (m.canUseDOM) { 19091 var ee = [], fe = 0, ge = {}, he = -1, ie = !1, je = !1, ke = 0, le = 33, me = 33, ne = { 19092 didTimeout: !1, 19093 timeRemaining: function() { 19094 var a = ke - be(); 19095 return 0 < a ? a : 0; 19096 } 19097 }, oe = function(a, b) { 19098 if (ge[b]) try { 19099 a(ne); 19100 } finally { 19101 delete ge[b]; 19102 } 19103 }, pe = "__reactIdleCallback$" + Math.random().toString(36).slice(2); 19104 window.addEventListener("message", function(a) { 19105 if (a.source === window && a.data === pe && (ie = !1, 0 !== ee.length)) { 19106 if (0 !== ee.length && (a = be(), !(-1 === he || he > a))) { 19107 he = -1, ne.didTimeout = !0; 19108 for (var b = 0, c = ee.length; b < c; b++) { 19109 var d = ee[b], e = d.timeoutTime; 19110 -1 !== e && e <= a ? oe(d.scheduledCallback, d.callbackId) : -1 !== e && (-1 === he || e < he) && (he = e); 19111 } 19112 } 19113 for (a = be(); 0 < ke - a && 0 < ee.length; ) a = ee.shift(), ne.didTimeout = !1, 19114 oe(a.scheduledCallback, a.callbackId), a = be(); 19115 0 < ee.length && !je && (je = !0, requestAnimationFrame(qe)); 19116 } 19117 }, !1); 19118 var qe = function(a) { 19119 je = !1; 19120 var b = a - ke + me; 19121 b < me && le < me ? (8 > b && (b = 8), me = b < le ? le : b) : le = b, ke = a + me, 19122 ie || (ie = !0, window.postMessage(pe, "*")); 19123 }; 19124 ce = function(a, b) { 19125 var c = -1; 19126 return null != b && "number" == typeof b.timeout && (c = be() + b.timeout), (-1 === he || -1 !== c && c < he) && (he = c), 19127 fe++, b = fe, ee.push({ 19128 scheduledCallback: a, 19129 callbackId: b, 19130 timeoutTime: c 19131 }), ge[b] = !0, je || (je = !0, requestAnimationFrame(qe)), b; 19132 }, de = function(a) { 19133 delete ge[a]; 19134 }; 19135 } else { 19136 var re = 0, se = {}; 19137 ce = function(a) { 19138 var b = re++, c = setTimeout(function() { 19139 a({ 19140 timeRemaining: function() { 19141 return 1 / 0; 19142 }, 19143 didTimeout: !1 19144 }); 19145 }); 19146 return se[b] = c, b; 19147 }, de = function(a) { 19148 var b = se[a]; 19149 delete se[a], clearTimeout(b); 19150 }; 19151 } 19152 var Be = { 19153 html: "http://www.w3.org/1999/xhtml“, 19154 mathml: "http://www.w3.org/1998/math/mathml“, 19155 svg: "http://www.w3.org/2000/svg“ 19156 }, Ee = void 0, Fe = function(a) { 19157 return "undefined" != typeof MSApp && MSApp.execUnsafeLocalFunction ? function(b, c, d, e) { 19158 MSApp.execUnsafeLocalFunction(function() { 19159 return a(b, c); 19160 }); 19161 } : a; 19162 }(function(a, b) { 19163 if (a.namespaceURI !== Be.svg || "innerHTML" in a) a.innerHTML = b; else { 19164 for (Ee = Ee || document.createElement("div"), Ee.innerHTML = "<svg>" + b + "</svg>", 19165 b = Ee.firstChild; a.firstChild; ) a.removeChild(a.firstChild); 19166 for (;b.firstChild; ) a.appendChild(b.firstChild); 19167 } 19168 }), He = { 19169 animationIterationCount: !0, 19170 borderImageOutset: !0, 19171 borderImageSlice: !0, 19172 borderImageWidth: !0, 19173 boxFlex: !0, 19174 boxFlexGroup: !0, 19175 boxOrdinalGroup: !0, 19176 columnCount: !0, 19177 columns: !0, 19178 flex: !0, 19179 flexGrow: !0, 19180 flexPositive: !0, 19181 flexShrink: !0, 19182 flexNegative: !0, 19183 flexOrder: !0, 19184 gridRow: !0, 19185 gridRowEnd: !0, 19186 gridRowSpan: !0, 19187 gridRowStart: !0, 19188 gridColumn: !0, 19189 gridColumnEnd: !0, 19190 gridColumnSpan: !0, 19191 gridColumnStart: !0, 19192 fontWeight: !0, 19193 lineClamp: !0, 19194 lineHeight: !0, 19195 opacity: !0, 19196 order: !0, 19197 orphans: !0, 19198 tabSize: !0, 19199 widows: !0, 19200 zIndex: !0, 19201 zoom: !0, 19202 fillOpacity: !0, 19203 floodOpacity: !0, 19204 stopOpacity: !0, 19205 strokeDasharray: !0, 19206 strokeDashoffset: !0, 19207 strokeMiterlimit: !0, 19208 strokeOpacity: !0, 19209 strokeWidth: !0 19210 }, Ie = [ "Webkit", "ms", "Moz", "O" ]; 19211 Object.keys(He).forEach(function(a) { 19212 Ie.forEach(function(b) { 19213 b = b + a.charAt(0).toUpperCase() + a.substring(1), He[b] = He[a]; 19214 }); 19215 }); 19216 var Ke = p({ 19217 menuitem: !0 19218 }, { 19219 area: !0, 19220 base: !0, 19221 br: !0, 19222 col: !0, 19223 embed: !0, 19224 hr: !0, 19225 img: !0, 19226 input: !0, 19227 keygen: !0, 19228 link: !0, 19229 meta: !0, 19230 param: !0, 19231 source: !0, 19232 track: !0, 19233 wbr: !0 19234 }), Ne = v.thatReturns(""), We = { 19235 createElement: Pe, 19236 createTextNode: Qe, 19237 setInitialProperties: Re, 19238 diffProperties: Se, 19239 updateProperties: Te, 19240 diffHydratedProperties: Ue, 19241 diffHydratedText: Ve, 19242 warnForUnmatchedText: function() {}, 19243 warnForDeletedHydratableElement: function() {}, 19244 warnForDeletedHydratableText: function() {}, 19245 warnForInsertedHydratedElement: function() {}, 19246 warnForInsertedHydratedText: function() {}, 19247 restoreControlledState: function(a, b, c) { 19248 switch (b) { 19249 case "input": 19250 if (Jc(a, c), b = c.name, "radio" === c.type && null != b) { 19251 for (c = a; c.parentNode; ) c = c.parentNode; 19252 for (c = c.querySelectorAll("input[name=" + JSON.stringify("" + b) + '][type="radio"]'), 19253 b = 0; b < c.length; b++) { 19254 var d = c[b]; 19255 if (d !== a && d.form === a.form) { 19256 var e = Pa(d); 19257 e || A("90"), dc(d), Jc(d, e); 19258 } 19259 } 19260 } 19261 break; 19262 19263 case "textarea": 19264 ze(a, c); 19265 break; 19266 19267 case "select": 19268 null != (b = c.value) && ve(a, !!c.multiple, b, !1); 19269 } 19270 } 19271 }, Xe = null, Ye = null, af = be, bf = ce, cf = de; 19272 new Set(); 19273 var ff = [], gf = -1, jf = hf(ha), O = hf(!1), kf = ha, Bf = null, Cf = null, Hf = !1, Uf = hf(null), Vf = hf(null), Wf = hf(0), Zf = {}, $f = hf(Zf), ag = hf(Zf), bg = hf(Zf), lg = { 19274 isMounted: function(a) { 19275 return !!(a = a._reactInternalFiber) && 2 === id(a); 19276 }, 19277 enqueueSetState: function(a, b, c) { 19278 a = a._reactInternalFiber; 19279 var d = ig(); 19280 d = jg(d, a); 19281 var e = Kf(d); 19282 e.payload = b, void 0 !== c && null !== c && (e.callback = c), Mf(a, e, d), kg(a, d); 19283 }, 19284 enqueueReplaceState: function(a, b, c) { 19285 a = a._reactInternalFiber; 19286 var d = ig(); 19287 d = jg(d, a); 19288 var e = Kf(d); 19289 e.tag = 1, e.payload = b, void 0 !== c && null !== c && (e.callback = c), Mf(a, e, d), 19290 kg(a, d); 19291 }, 19292 enqueueForceUpdate: function(a, b) { 19293 a = a._reactInternalFiber; 19294 var c = ig(); 19295 c = jg(c, a); 19296 var d = Kf(c); 19297 d.tag = 2, void 0 !== b && null !== b && (d.callback = b), Mf(a, d, c), kg(a, c); 19298 } 19299 }, pg = Array.isArray, tg = sg(!0), ug = sg(!1), vg = null, wg = null, xg = !1, Pg = void 0, Qg = void 0, Rg = void 0; 19300 Pg = function() {}, Qg = function(a, b, c) { 19301 (b.updateQueue = c) && Lg(b); 19302 }, Rg = function(a, b, c, d) { 19303 c !== d && Lg(b); 19304 }; 19305 var gh = af(), hh = 2, ih = gh, jh = 0, kh = 0, lh = !1, S = null, mh = null, T = 0, nh = -1, oh = !1, U = null, ph = !1, qh = !1, dh = null, Fh = null, V = null, Gh = 0, Hh = -1, W = !1, X = null, Y = 0, Ah = 0, Ih = !1, Jh = !1, Kh = null, Lh = null, Z = !1, Mh = !1, zh = !1, Nh = null, Ch = 1e3, Bh = 0, Oh = 1, gi = { 19306 updateContainerAtExpirationTime: bi, 19307 createContainer: function(a, b, c) { 19308 return Af(a, b, c); 19309 }, 19310 updateContainer: di, 19311 flushRoot: Wh, 19312 requestWork: wh, 19313 computeUniqueAsyncExpiration: yh, 19314 batchedUpdates: Yh, 19315 unbatchedUpdates: Zh, 19316 deferredUpdates: Dh, 19317 syncUpdates: Eh, 19318 interactiveUpdates: function(a, b, c) { 19319 if (zh) return a(b, c); 19320 Z || W || 0 === Ah || (Uh(Ah, !1, null), Ah = 0); 19321 var d = zh, e = Z; 19322 Z = zh = !0; 19323 try { 19324 return a(b, c); 19325 } finally { 19326 zh = d, (Z = e) || W || Sh(); 19327 } 19328 }, 19329 flushInteractiveUpdates: function() { 19330 W || 0 === Ah || (Uh(Ah, !1, null), Ah = 0); 19331 }, 19332 flushControlled: ai, 19333 flushSync: $h, 19334 getPublicRootInstance: ei, 19335 findHostInstance: ci, 19336 findHostInstanceWithNoPortals: function(a) { 19337 return a = md(a), null === a ? null : a.stateNode; 19338 }, 19339 injectIntoDevTools: fi 19340 }; 19341 Kb.injectFiberControlledHostComponent(We), ji.prototype.render = function(a) { 19342 this._defer || A("250"), this._hasChildren = !0, this._children = a; 19343 var b = this._root._internalRoot, c = this._expirationTime, d = new ki(); 19344 return bi(a, b, null, c, d._onCommit), d; 19345 }, ji.prototype.then = function(a) { 19346 if (this._didComplete) a(); else { 19347 var b = this._callbacks; 19348 null === b && (b = this._callbacks = []), b.push(a); 19349 } 19350 }, ji.prototype.commit = function() { 19351 var a = this._root._internalRoot, b = a.firstBatch; 19352 if (this._defer && null !== b || A("251"), this._hasChildren) { 19353 var c = this._expirationTime; 19354 if (b !== this) { 19355 this._hasChildren && (c = this._expirationTime = b._expirationTime, this.render(this._children)); 19356 for (var d = null, e = b; e !== this; ) d = e, e = e._next; 19357 null === d && A("251"), d._next = e._next, this._next = b, a.firstBatch = this; 19358 } 19359 this._defer = !1, Wh(a, c), b = this._next, this._next = null, b = a.firstBatch = b, 19360 null !== b && b._hasChildren && b.render(b._children); 19361 } else this._next = null, this._defer = !1; 19362 }, ji.prototype._onComplete = function() { 19363 if (!this._didComplete) { 19364 this._didComplete = !0; 19365 var a = this._callbacks; 19366 if (null !== a) for (var b = 0; b < a.length; b++) (0, a[b])(); 19367 } 19368 }, ki.prototype.then = function(a) { 19369 if (this._didCommit) a(); else { 19370 var b = this._callbacks; 19371 null === b && (b = this._callbacks = []), b.push(a); 19372 } 19373 }, ki.prototype._onCommit = function() { 19374 if (!this._didCommit) { 19375 this._didCommit = !0; 19376 var a = this._callbacks; 19377 if (null !== a) for (var b = 0; b < a.length; b++) { 19378 var c = a[b]; 19379 "function" != typeof c && A("191", c), c(); 19380 } 19381 } 19382 }, li.prototype.render = function(a, b) { 19383 var c = this._internalRoot, d = new ki(); 19384 return b = void 0 === b ? null : b, null !== b && d.then(b), di(a, c, null, d._onCommit), 19385 d; 19386 }, li.prototype.unmount = function(a) { 19387 var b = this._internalRoot, c = new ki(); 19388 return a = void 0 === a ? null : a, null !== a && c.then(a), di(null, b, null, c._onCommit), 19389 c; 19390 }, li.prototype.legacy_renderSubtreeIntoContainer = function(a, b, c) { 19391 var d = this._internalRoot, e = new ki(); 19392 return c = void 0 === c ? null : c, null !== c && e.then(c), di(b, d, a, e._onCommit), 19393 e; 19394 }, li.prototype.createBatch = function() { 19395 var a = new ji(this), b = a._expirationTime, c = this._internalRoot, d = c.firstBatch; 19396 if (null === d) c.firstBatch = a, a._next = null; else { 19397 for (c = null; null !== d && d._expirationTime <= b; ) c = d, d = d._next; 19398 a._next = d, null !== c && (c._next = a); 19399 } 19400 return a; 19401 }, Sb = gi.batchedUpdates, Tb = gi.interactiveUpdates, Ub = gi.flushInteractiveUpdates; 19402 var qi = { 19403 createPortal: pi, 19404 findDOMNode: function(a) { 19405 return null == a ? null : 1 === a.nodeType ? a : ci(a); 19406 }, 19407 hydrate: function(a, b, c) { 19408 return oi(null, a, b, !0, c); 19409 }, 19410 render: function(a, b, c) { 19411 return oi(null, a, b, !1, c); 19412 }, 19413 unstable_renderSubtreeIntoContainer: function(a, b, c, d) { 19414 return (null == a || void 0 === a._reactInternalFiber) && A("38"), oi(a, b, c, !1, d); 19415 }, 19416 unmountComponentAtNode: function(a) { 19417 return mi(a) || A("40"), !!a._reactRootContainer && (Zh(function() { 19418 oi(null, null, a, !1, function() { 19419 a._reactRootContainer = null; 19420 }); 19421 }), !0); 19422 }, 19423 unstable_createPortal: function() { 19424 return pi.apply(void 0, arguments); 19425 }, 19426 unstable_batchedUpdates: Yh, 19427 unstable_deferredUpdates: Dh, 19428 flushSync: $h, 19429 unstable_flushControlled: ai, 19430 __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { 19431 EventPluginHub: Ka, 19432 EventPluginRegistry: va, 19433 EventPropagators: $a, 19434 ReactControlledComponent: Rb, 19435 ReactDOMComponentTree: Qa, 19436 ReactDOMEventListener: Md 19437 }, 19438 unstable_createRoot: function(a, b) { 19439 return new li(a, !0, null != b && !0 === b.hydrate); 19440 } 19441 }; 19442 fi({ 19443 findFiberByHostInstance: Na, 19444 bundleType: 0, 19445 version: "16.4.0", 19446 rendererPackageName: "react-dom" 19447 }); 19448 var vi = { 19449 default: qi 19450 }, wi = vi && qi || vi; 19451 module.exports = wi.default ? wi.default : wi; 19452 }, function(module, exports, __webpack_require__) { 19453 "use strict"; 19454 function isTextNode(object) { 19455 return isNode(object) && 3 == object.nodeType; 19456 } 19457 var isNode = __webpack_require__(380); 19458 module.exports = isTextNode; 19459 }, function(module, exports, __webpack_require__) { 19460 "use strict"; 19461 function isNode(object) { 19462 var doc = object ? object.ownerDocument || object : document, defaultView = doc.defaultView || window; 19463 return !(!object || !("function" == typeof defaultView.Node ? object instanceof defaultView.Node : "object" == typeof object && "number" == typeof object.nodeType && "string" == typeof object.nodeName)); 19464 } 19465 module.exports = isNode; 19466 }, function(module, exports, __webpack_require__) { 19467 "use strict"; 19468 (function(process) { 19469 "production" !== process.env.NODE_ENV && function() { 19470 function recomputePluginOrdering() { 19471 if (eventPluginOrder) for (var pluginName in namesToPlugins) { 19472 var pluginModule = namesToPlugins[pluginName], pluginIndex = eventPluginOrder.indexOf(pluginName); 19473 if (pluginIndex > -1 || invariant(!1, "EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `)) + ("`" + (`%s` + "`"))) + ((`.", pluginName), 19474 !plugins[pluginIndex]) { 19475 pluginModule.extractEvents || invariant(!1, "EventPluginRegistry: Event plugins must implement an ` + ("`" + `extractEvents`)) + ("`" + (` method, but ` + "`"))))) + ((((`%s` + ("`" + ` does not.", pluginName), 19476 plugins[pluginIndex] = pluginModule; 19477 var publishedEvents = pluginModule.eventTypes; 19478 for (var eventName in publishedEvents) publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName) || invariant(!1, "EventPluginRegistry: Failed to publish event `)) + ("`" + (`%s` + "`"))) + ((` for plugin ` + ("`" + `%s`)) + ("`" + (`.", eventName, pluginName); 19479 } 19480 } 19481 } 19482 function publishEventForPlugin(dispatchConfig, pluginModule, eventName) { 19483 eventNameDispatchConfigs.hasOwnProperty(eventName) && invariant(!1, "EventPluginHub: More than one plugin attempted to publish the same event name, ` + "`")))) + (((`%s` + ("`" + `.", eventName), 19484 eventNameDispatchConfigs[eventName] = dispatchConfig; 19485 var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; 19486 if (phasedRegistrationNames) { 19487 for (var phaseName in phasedRegistrationNames) if (phasedRegistrationNames.hasOwnProperty(phaseName)) { 19488 var phasedRegistrationName = phasedRegistrationNames[phaseName]; 19489 publishRegistrationName(phasedRegistrationName, pluginModule, eventName); 19490 } 19491 return !0; 19492 } 19493 return !!dispatchConfig.registrationName && (publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName), 19494 !0); 19495 } 19496 function publishRegistrationName(registrationName, pluginModule, eventName) { 19497 registrationNameModules[registrationName] && invariant(!1, "EventPluginHub: More than one plugin attempted to publish the same registration name, `)) + ("`" + (`%s` + "`"))) + ((`.", registrationName), 19498 registrationNameModules[registrationName] = pluginModule, registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies; 19499 var lowerCasedName = registrationName.toLowerCase(); 19500 possibleRegistrationNames[lowerCasedName] = registrationName, "onDoubleClick" === registrationName && (possibleRegistrationNames.ondblclick = registrationName); 19501 } 19502 function injectEventPluginOrder(injectedEventPluginOrder) { 19503 eventPluginOrder && invariant(!1, "EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React."), 19504 eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder), recomputePluginOrdering(); 19505 } 19506 function injectEventPluginsByName(injectedNamesToPlugins) { 19507 var isOrderingDirty = !1; 19508 for (var pluginName in injectedNamesToPlugins) if (injectedNamesToPlugins.hasOwnProperty(pluginName)) { 19509 var pluginModule = injectedNamesToPlugins[pluginName]; 19510 namesToPlugins.hasOwnProperty(pluginName) && namesToPlugins[pluginName] === pluginModule || (namesToPlugins[pluginName] && invariant(!1, "EventPluginRegistry: Cannot inject two different event plugins using the same name, ` + ("`" + `%s`)) + ("`" + (`.", pluginName), 19511 namesToPlugins[pluginName] = pluginModule, isOrderingDirty = !0); 19512 } 19513 isOrderingDirty && recomputePluginOrdering(); 19514 } 19515 function executeDispatch(event, simulated, listener, inst) { 19516 var type = event.type || "unknown-event"; 19517 event.currentTarget = getNodeFromInstance(inst), ReactErrorUtils.invokeGuardedCallbackAndCatchFirstError(type, listener, void 0, event), 19518 event.currentTarget = null; 19519 } 19520 function executeDispatchesInOrder(event, simulated) { 19521 var dispatchListeners = event._dispatchListeners, dispatchInstances = event._dispatchInstances; 19522 if (validateEventDispatches(event), Array.isArray(dispatchListeners)) for (var i = 0; i < dispatchListeners.length && !event.isPropagationStopped(); i++) executeDispatch(event, simulated, dispatchListeners[i], dispatchInstances[i]); else dispatchListeners && executeDispatch(event, simulated, dispatchListeners, dispatchInstances); 19523 event._dispatchListeners = null, event._dispatchInstances = null; 19524 } 19525 function accumulateInto(current, next) { 19526 return null == next && invariant(!1, "accumulateInto(...): Accumulated items must not be null or undefined."), 19527 null == current ? next : Array.isArray(current) ? Array.isArray(next) ? (current.push.apply(current, next), 19528 current) : (current.push(next), current) : Array.isArray(next) ? [ current ].concat(next) : [ current, next ]; 19529 } 19530 function forEachAccumulated(arr, cb, scope) { 19531 Array.isArray(arr) ? arr.forEach(cb, scope) : arr && cb.call(scope, arr); 19532 } 19533 function isInteractive(tag) { 19534 return "button" === tag || "input" === tag || "select" === tag || "textarea" === tag; 19535 } 19536 function shouldPreventMouseEvent(name, type, props) { 19537 switch (name) { 19538 case "onClick": 19539 case "onClickCapture": 19540 case "onDoubleClick": 19541 case "onDoubleClickCapture": 19542 case "onMouseDown": 19543 case "onMouseDownCapture": 19544 case "onMouseMove": 19545 case "onMouseMoveCapture": 19546 case "onMouseUp": 19547 case "onMouseUpCapture": 19548 return !(!props.disabled || !isInteractive(type)); 19549 19550 default: 19551 return !1; 19552 } 19553 } 19554 function getListener(inst, registrationName) { 19555 var listener = void 0, stateNode = inst.stateNode; 19556 if (!stateNode) return null; 19557 var props = getFiberCurrentPropsFromNode(stateNode); 19558 return props ? (listener = props[registrationName], shouldPreventMouseEvent(registrationName, inst.type, props) ? null : (listener && "function" != typeof listener && invariant(!1, "Expected ` + "`")))))) + (((((`%s` + ("`" + ` listener to be a function, instead got a value of `)) + ("`" + (`%s` + "`"))) + ((` type.", registrationName, typeof listener), 19559 listener)) : null; 19560 } 19561 function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { 19562 for (var events = null, i = 0; i < plugins.length; i++) { 19563 var possiblePlugin = plugins[i]; 19564 if (possiblePlugin) { 19565 var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget); 19566 extractedEvents && (events = accumulateInto(events, extractedEvents)); 19567 } 19568 } 19569 return events; 19570 } 19571 function runEventsInBatch(events, simulated) { 19572 null !== events && (eventQueue = accumulateInto(eventQueue, events)); 19573 var processingEventQueue = eventQueue; 19574 eventQueue = null, processingEventQueue && (simulated ? forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseSimulated) : forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel), 19575 eventQueue && invariant(!1, "processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented."), 19576 ReactErrorUtils.rethrowCaughtError()); 19577 } 19578 function runExtractedEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget) { 19579 runEventsInBatch(extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget), !1); 19580 } 19581 function precacheFiberNode(hostInst, node) { 19582 node[internalInstanceKey] = hostInst; 19583 } 19584 function getClosestInstanceFromNode(node) { 19585 if (node[internalInstanceKey]) return node[internalInstanceKey]; 19586 for (;!node[internalInstanceKey]; ) { 19587 if (!node.parentNode) return null; 19588 node = node.parentNode; 19589 } 19590 var inst = node[internalInstanceKey]; 19591 return inst.tag === HostComponent || inst.tag === HostText ? inst : null; 19592 } 19593 function getInstanceFromNode$1(node) { 19594 var inst = node[internalInstanceKey]; 19595 return inst && (inst.tag === HostComponent || inst.tag === HostText) ? inst : null; 19596 } 19597 function getNodeFromInstance$1(inst) { 19598 if (inst.tag === HostComponent || inst.tag === HostText) return inst.stateNode; 19599 invariant(!1, "getNodeFromInstance: Invalid argument."); 19600 } 19601 function getFiberCurrentPropsFromNode$1(node) { 19602 return node[internalEventHandlersKey] || null; 19603 } 19604 function updateFiberProps(node, props) { 19605 node[internalEventHandlersKey] = props; 19606 } 19607 function getParent(inst) { 19608 do { 19609 inst = inst.return; 19610 } while (inst && inst.tag !== HostComponent); 19611 return inst || null; 19612 } 19613 function getLowestCommonAncestor(instA, instB) { 19614 for (var depthA = 0, tempA = instA; tempA; tempA = getParent(tempA)) depthA++; 19615 for (var depthB = 0, tempB = instB; tempB; tempB = getParent(tempB)) depthB++; 19616 for (;depthA - depthB > 0; ) instA = getParent(instA), depthA--; 19617 for (;depthB - depthA > 0; ) instB = getParent(instB), depthB--; 19618 for (var depth = depthA; depth--; ) { 19619 if (instA === instB || instA === instB.alternate) return instA; 19620 instA = getParent(instA), instB = getParent(instB); 19621 } 19622 return null; 19623 } 19624 function getParentInstance(inst) { 19625 return getParent(inst); 19626 } 19627 function traverseTwoPhase(inst, fn, arg) { 19628 for (var path = []; inst; ) path.push(inst), inst = getParent(inst); 19629 var i = void 0; 19630 for (i = path.length; i-- > 0; ) fn(path[i], "captured", arg); 19631 for (i = 0; i < path.length; i++) fn(path[i], "bubbled", arg); 19632 } 19633 function traverseEnterLeave(from, to, fn, argFrom, argTo) { 19634 for (var common = from && to ? getLowestCommonAncestor(from, to) : null, pathFrom = []; ;) { 19635 if (!from) break; 19636 if (from === common) break; 19637 var alternate = from.alternate; 19638 if (null !== alternate && alternate === common) break; 19639 pathFrom.push(from), from = getParent(from); 19640 } 19641 for (var pathTo = []; ;) { 19642 if (!to) break; 19643 if (to === common) break; 19644 var _alternate = to.alternate; 19645 if (null !== _alternate && _alternate === common) break; 19646 pathTo.push(to), to = getParent(to); 19647 } 19648 for (var i = 0; i < pathFrom.length; i++) fn(pathFrom[i], "bubbled", argFrom); 19649 for (var _i = pathTo.length; _i-- > 0; ) fn(pathTo[_i], "captured", argTo); 19650 } 19651 function listenerAtPhase(inst, event, propagationPhase) { 19652 return getListener(inst, event.dispatchConfig.phasedRegistrationNames[propagationPhase]); 19653 } 19654 function accumulateDirectionalDispatches(inst, phase, event) { 19655 inst || warning(!1, "Dispatching inst must not be null"); 19656 var listener = listenerAtPhase(inst, event, phase); 19657 listener && (event._dispatchListeners = accumulateInto(event._dispatchListeners, listener), 19658 event._dispatchInstances = accumulateInto(event._dispatchInstances, inst)); 19659 } 19660 function accumulateTwoPhaseDispatchesSingle(event) { 19661 event && event.dispatchConfig.phasedRegistrationNames && traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event); 19662 } 19663 function accumulateTwoPhaseDispatchesSingleSkipTarget(event) { 19664 if (event && event.dispatchConfig.phasedRegistrationNames) { 19665 var targetInst = event._targetInst; 19666 traverseTwoPhase(targetInst ? getParentInstance(targetInst) : null, accumulateDirectionalDispatches, event); 19667 } 19668 } 19669 function accumulateDispatches(inst, ignoredDirection, event) { 19670 if (inst && event && event.dispatchConfig.registrationName) { 19671 var registrationName = event.dispatchConfig.registrationName, listener = getListener(inst, registrationName); 19672 listener && (event._dispatchListeners = accumulateInto(event._dispatchListeners, listener), 19673 event._dispatchInstances = accumulateInto(event._dispatchInstances, inst)); 19674 } 19675 } 19676 function accumulateDirectDispatchesSingle(event) { 19677 event && event.dispatchConfig.registrationName && accumulateDispatches(event._targetInst, null, event); 19678 } 19679 function accumulateTwoPhaseDispatches(events) { 19680 forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle); 19681 } 19682 function accumulateTwoPhaseDispatchesSkipTarget(events) { 19683 forEachAccumulated(events, accumulateTwoPhaseDispatchesSingleSkipTarget); 19684 } 19685 function accumulateEnterLeaveDispatches(leave, enter, from, to) { 19686 traverseEnterLeave(from, to, accumulateDispatches, leave, enter); 19687 } 19688 function accumulateDirectDispatches(events) { 19689 forEachAccumulated(events, accumulateDirectDispatchesSingle); 19690 } 19691 function unsafeCastStringToDOMTopLevelType(topLevelType) { 19692 return topLevelType; 19693 } 19694 function unsafeCastDOMTopLevelTypeToString(topLevelType) { 19695 return topLevelType; 19696 } 19697 function makePrefixMap(styleProp, eventName) { 19698 var prefixes = {}; 19699 return prefixes[styleProp.toLowerCase()] = eventName.toLowerCase(), prefixes["Webkit" + styleProp] = "webkit" + eventName, 19700 prefixes["Moz" + styleProp] = "moz" + eventName, prefixes["ms" + styleProp] = "MS" + eventName, 19701 prefixes["O" + styleProp] = "o" + eventName.toLowerCase(), prefixes; 19702 } 19703 function getVendorPrefixedEventName(eventName) { 19704 if (prefixedEventNames[eventName]) return prefixedEventNames[eventName]; 19705 if (!vendorPrefixes[eventName]) return eventName; 19706 var prefixMap = vendorPrefixes[eventName]; 19707 for (var styleProp in prefixMap) if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) return prefixedEventNames[eventName] = prefixMap[styleProp]; 19708 return eventName; 19709 } 19710 function getRawEventName(topLevelType) { 19711 return unsafeCastDOMTopLevelTypeToString(topLevelType); 19712 } 19713 function getTextContentAccessor() { 19714 return !contentKey && ExecutionEnvironment.canUseDOM && (contentKey = "textContent" in document.documentElement ? "textContent" : "innerText"), 19715 contentKey; 19716 } 19717 function initialize(nativeEventTarget) { 19718 return compositionState._root = nativeEventTarget, compositionState._startText = getText(), 19719 !0; 19720 } 19721 function reset() { 19722 compositionState._root = null, compositionState._startText = null, compositionState._fallbackText = null; 19723 } 19724 function getData() { 19725 if (compositionState._fallbackText) return compositionState._fallbackText; 19726 var start = void 0, startValue = compositionState._startText, startLength = startValue.length, end = void 0, endValue = getText(), endLength = endValue.length; 19727 for (start = 0; start < startLength && startValue[start] === endValue[start]; start++) ; 19728 var minEnd = startLength - start; 19729 for (end = 1; end <= minEnd && startValue[startLength - end] === endValue[endLength - end]; end++) ; 19730 var sliceTail = end > 1 ? 1 - end : void 0; 19731 return compositionState._fallbackText = endValue.slice(start, sliceTail), compositionState._fallbackText; 19732 } 19733 function getText() { 19734 return "value" in compositionState._root ? compositionState._root.value : compositionState._root[getTextContentAccessor()]; 19735 } 19736 function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { 19737 delete this.nativeEvent, delete this.preventDefault, delete this.stopPropagation, 19738 this.dispatchConfig = dispatchConfig, this._targetInst = targetInst, this.nativeEvent = nativeEvent; 19739 var Interface = this.constructor.Interface; 19740 for (var propName in Interface) if (Interface.hasOwnProperty(propName)) { 19741 delete this[propName]; 19742 var normalize = Interface[propName]; 19743 normalize ? this[propName] = normalize(nativeEvent) : "target" === propName ? this.target = nativeEventTarget : this[propName] = nativeEvent[propName]; 19744 } 19745 var defaultPrevented = null != nativeEvent.defaultPrevented ? nativeEvent.defaultPrevented : !1 === nativeEvent.returnValue; 19746 return this.isDefaultPrevented = defaultPrevented ? emptyFunction.thatReturnsTrue : emptyFunction.thatReturnsFalse, 19747 this.isPropagationStopped = emptyFunction.thatReturnsFalse, this; 19748 } 19749 function getPooledWarningPropertyDefinition(propName, getVal) { 19750 function set(val) { 19751 return warn(isFunction ? "setting the method" : "setting the property", "This is effectively a no-op"), 19752 val; 19753 } 19754 function get() { 19755 return warn(isFunction ? "accessing the method" : "accessing the property", isFunction ? "This is a no-op function" : "This is set to null"), 19756 getVal; 19757 } 19758 function warn(action, result) { 19759 warning(!1, "This synthetic event is reused for performance reasons. If you're seeing this, you're %s ` + ("`" + `%s`)) + ("`" + (` on a released/nullified synthetic event. %s. If you must keep the original synthetic event around, use event.persist(). See https://fb.me/react-event-pooling了解更多信息。“,action,propname,result); 19760 } 19761 var isFunction = "function" == typeof getVal; 19762 return { 19763 configurable: !0, 19764 set: set, 19765 get: get 19766 }; 19767 } 19768 function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) { 19769 var EventConstructor = this; 19770 if (EventConstructor.eventPool.length) { 19771 var instance = EventConstructor.eventPool.pop(); 19772 return EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst), 19773 instance; 19774 } 19775 return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst); 19776 } 19777 function releasePooledEvent(event) { 19778 var EventConstructor = this; 19779 event instanceof EventConstructor || invariant(!1, "Trying to release an event instance into a pool of a different type."), 19780 event.destructor(), EventConstructor.eventPool.length < EVENT_POOL_SIZE && EventConstructor.eventPool.push(event); 19781 } 19782 function addEventPoolingTo(EventConstructor) { 19783 EventConstructor.eventPool = [], EventConstructor.getPooled = getPooledEvent, EventConstructor.release = releasePooledEvent; 19784 } 19785 function isKeypressCommand(nativeEvent) { 19786 return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) && !(nativeEvent.ctrlKey && nativeEvent.altKey); 19787 } 19788 function getCompositionEventType(topLevelType) { 19789 switch (topLevelType) { 19790 case TOP_COMPOSITION_START: 19791 return eventTypes.compositionStart; 19792 19793 case TOP_COMPOSITION_END: 19794 return eventTypes.compositionEnd; 19795 19796 case TOP_COMPOSITION_UPDATE: 19797 return eventTypes.compositionUpdate; 19798 } 19799 } 19800 function isFallbackCompositionStart(topLevelType, nativeEvent) { 19801 return topLevelType === TOP_KEY_DOWN && nativeEvent.keyCode === START_KEYCODE; 19802 } 19803 function isFallbackCompositionEnd(topLevelType, nativeEvent) { 19804 switch (topLevelType) { 19805 case TOP_KEY_UP: 19806 return -1 !== END_KEYCODES.indexOf(nativeEvent.keyCode); 19807 19808 case TOP_KEY_DOWN: 19809 return nativeEvent.keyCode !== START_KEYCODE; 19810 19811 case TOP_KEY_PRESS: 19812 case TOP_MOUSE_DOWN: 19813 case TOP_BLUR: 19814 return !0; 19815 19816 default: 19817 return !1; 19818 } 19819 } 19820 function getDataFromCustomEvent(nativeEvent) { 19821 var detail = nativeEvent.detail; 19822 return "object" == typeof detail && "data" in detail ? detail.data : null; 19823 } 19824 function extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) { 19825 var eventType = void 0, fallbackData = void 0; 19826 if (canUseCompositionEvent ? eventType = getCompositionEventType(topLevelType) : isComposing ? isFallbackCompositionEnd(topLevelType, nativeEvent) && (eventType = eventTypes.compositionEnd) : isFallbackCompositionStart(topLevelType, nativeEvent) && (eventType = eventTypes.compositionStart), 19827 !eventType) return null; 19828 useFallbackCompositionData && (isComposing || eventType !== eventTypes.compositionStart ? eventType === eventTypes.compositionEnd && isComposing && (fallbackData = getData()) : isComposing = initialize(nativeEventTarget)); 19829 var event = SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget); 19830 if (fallbackData) event.data = fallbackData; else { 19831 var customData = getDataFromCustomEvent(nativeEvent); 19832 null !== customData && (event.data = customData); 19833 } 19834 return accumulateTwoPhaseDispatches(event), event; 19835 } 19836 function getNativeBeforeInputChars(topLevelType, nativeEvent) { 19837 switch (topLevelType) { 19838 case TOP_COMPOSITION_END: 19839 return getDataFromCustomEvent(nativeEvent); 19840 19841 case TOP_KEY_PRESS: 19842 return nativeEvent.which !== SPACEBAR_CODE ? null : (hasSpaceKeypress = !0, SPACEBAR_CHAR); 19843 19844 case TOP_TEXT_INPUT: 19845 var chars = nativeEvent.data; 19846 return chars === SPACEBAR_CHAR && hasSpaceKeypress ? null : chars; 19847 19848 default: 19849 return null; 19850 } 19851 } 19852 function getFallbackBeforeInputChars(topLevelType, nativeEvent) { 19853 if (isComposing) { 19854 if (topLevelType === TOP_COMPOSITION_END || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) { 19855 var chars = getData(); 19856 return reset(), isComposing = !1, chars; 19857 } 19858 return null; 19859 } 19860 switch (topLevelType) { 19861 case TOP_PASTE: 19862 return null; 19863 19864 case TOP_KEY_PRESS: 19865 if (!isKeypressCommand(nativeEvent)) { 19866 if (nativeEvent.char && nativeEvent.char.length > 1) return nativeEvent.char; 19867 if (nativeEvent.which) return String.fromCharCode(nativeEvent.which); 19868 } 19869 return null; 19870 19871 case TOP_COMPOSITION_END: 19872 return useFallbackCompositionData ? null : nativeEvent.data; 19873 19874 default: 19875 return null; 19876 } 19877 } 19878 function extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) { 19879 var chars = void 0; 19880 if (!(chars = canUseTextInputEvent ? getNativeBeforeInputChars(topLevelType, nativeEvent) : getFallbackBeforeInputChars(topLevelType, nativeEvent))) return null; 19881 var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget); 19882 return event.data = chars, accumulateTwoPhaseDispatches(event), event; 19883 } 19884 function restoreStateOfTarget(target) { 19885 var internalInstance = getInstanceFromNode(target); 19886 if (internalInstance) { 19887 fiberHostComponent && "function" == typeof fiberHostComponent.restoreControlledState || invariant(!1, "Fiber needs to be injected to handle a fiber target for controlled events. This error is likely caused by a bug in React. Please file an issue."); 19888 var props = getFiberCurrentPropsFromNode(internalInstance.stateNode); 19889 fiberHostComponent.restoreControlledState(internalInstance.stateNode, internalInstance.type, props); 19890 } 19891 } 19892 function enqueueStateRestore(target) { 19893 restoreTarget ? restoreQueue ? restoreQueue.push(target) : restoreQueue = [ target ] : restoreTarget = target; 19894 } 19895 function needsStateRestore() { 19896 return null !== restoreTarget || null !== restoreQueue; 19897 } 19898 function restoreStateIfNeeded() { 19899 if (restoreTarget) { 19900 var target = restoreTarget, queuedTargets = restoreQueue; 19901 if (restoreTarget = null, restoreQueue = null, restoreStateOfTarget(target), queuedTargets) for (var i = 0; i < queuedTargets.length; i++) restoreStateOfTarget(queuedTargets[i]); 19902 } 19903 } 19904 function batchedUpdates(fn, bookkeeping) { 19905 if (isBatching) return fn(bookkeeping); 19906 isBatching = !0; 19907 try { 19908 return _batchedUpdates(fn, bookkeeping); 19909 } finally { 19910 isBatching = !1; 19911 needsStateRestore() && (_flushInteractiveUpdates(), restoreStateIfNeeded()); 19912 } 19913 } 19914 function interactiveUpdates(fn, a, b) { 19915 return _interactiveUpdates(fn, a, b); 19916 } 19917 function isTextInputElement(elem) { 19918 var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); 19919 return "input" === nodeName ? !!supportedInputTypes[elem.type] : "textarea" === nodeName; 19920 } 19921 function getEventTarget(nativeEvent) { 19922 var target = nativeEvent.target || window; 19923 return target.correspondingUseElement && (target = target.correspondingUseElement), 19924 target.nodeType === TEXT_NODE ? target.parentNode : target; 19925 } 19926 function isEventSupported(eventNameSuffix, capture) { 19927 if (!ExecutionEnvironment.canUseDOM || capture && !("addEventListener" in document)) return !1; 19928 var eventName = "on" + eventNameSuffix, isSupported = eventName in document; 19929 if (!isSupported) { 19930 var element = document.createElement("div"); 19931 element.setAttribute(eventName, "return;"), isSupported = "function" == typeof element[eventName]; 19932 } 19933 return isSupported; 19934 } 19935 function isCheckable(elem) { 19936 var type = elem.type, nodeName = elem.nodeName; 19937 return nodeName && "input" === nodeName.toLowerCase() && ("checkbox" === type || "radio" === type); 19938 } 19939 function getTracker(node) { 19940 return node._valueTracker; 19941 } 19942 function detachTracker(node) { 19943 node._valueTracker = null; 19944 } 19945 function getValueFromNode(node) { 19946 var value = ""; 19947 return node ? value = isCheckable(node) ? node.checked ? "true" : "false" : node.value : value; 19948 } 19949 function trackValueOnNode(node) { 19950 var valueField = isCheckable(node) ? "checked" : "value", descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField), currentValue = "" + node[valueField]; 19951 if (!node.hasOwnProperty(valueField) && void 0 !== descriptor && "function" == typeof descriptor.get && "function" == typeof descriptor.set) { 19952 var get = descriptor.get, set = descriptor.set; 19953 Object.defineProperty(node, valueField, { 19954 configurable: !0, 19955 get: function() { 19956 return get.call(this); 19957 }, 19958 set: function(value) { 19959 currentValue = "" + value, set.call(this, value); 19960 } 19961 }), Object.defineProperty(node, valueField, { 19962 enumerable: descriptor.enumerable 19963 }); 19964 return { 19965 getValue: function() { 19966 return currentValue; 19967 }, 19968 setValue: function(value) { 19969 currentValue = "" + value; 19970 }, 19971 stopTracking: function() { 19972 detachTracker(node), delete node[valueField]; 19973 } 19974 }; 19975 } 19976 } 19977 function track(node) { 19978 getTracker(node) || (node._valueTracker = trackValueOnNode(node)); 19979 } 19980 function updateValueIfChanged(node) { 19981 if (!node) return !1; 19982 var tracker = getTracker(node); 19983 if (!tracker) return !0; 19984 var lastValue = tracker.getValue(), nextValue = getValueFromNode(node); 19985 return nextValue !== lastValue && (tracker.setValue(nextValue), !0); 19986 } 19987 function getIteratorFn(maybeIterable) { 19988 if (null === maybeIterable || void 0 === maybeIterable) return null; 19989 var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; 19990 return "function" == typeof maybeIterator ? maybeIterator : null; 19991 } 19992 function getComponentName(fiber) { 19993 var type = fiber.type; 19994 if ("function" == typeof type) return type.displayName || type.name; 19995 if ("string" == typeof type) return type; 19996 switch (type) { 19997 case REACT_ASYNC_MODE_TYPE: 19998 return "AsyncMode"; 19999 20000 case REACT_CONTEXT_TYPE: 20001 return "Context.Consumer"; 20002 20003 case REACT_FRAGMENT_TYPE: 20004 return "ReactFragment"; 20005 20006 case REACT_PORTAL_TYPE: 20007 return "ReactPortal"; 20008 20009 case REACT_PROFILER_TYPE: 20010 return "Profiler(" + fiber.pendingProps.id + ")"; 20011 20012 case REACT_PROVIDER_TYPE: 20013 return "Context.Provider"; 20014 20015 case REACT_STRICT_MODE_TYPE: 20016 return "StrictMode"; 20017 20018 case REACT_TIMEOUT_TYPE: 20019 return "Timeout"; 20020 } 20021 if ("object" == typeof type && null !== type) switch (type.$$typeof) { 20022 case REACT_FORWARD_REF_TYPE: 20023 var functionName = type.render.displayName || type.render.name || ""; 20024 return "" !== functionName ? "ForwardRef(" + functionName + ")" : "ForwardRef"; 20025 } 20026 return null; 20027 } 20028 function describeFiber(fiber) { 20029 switch (fiber.tag) { 20030 case IndeterminateComponent: 20031 case FunctionalComponent: 20032 case ClassComponent: 20033 case HostComponent: 20034 var owner = fiber._debugOwner, source = fiber._debugSource, name = getComponentName(fiber), ownerName = null; 20035 return owner && (ownerName = getComponentName(owner)), describeComponentFrame(name, source, ownerName); 20036 20037 default: 20038 return ""; 20039 } 20040 } 20041 function getStackAddendumByWorkInProgressFiber(workInProgress) { 20042 var info = "", node = workInProgress; 20043 do { 20044 info += describeFiber(node), node = node.return; 20045 } while (node); 20046 return info; 20047 } 20048 function getCurrentFiberOwnerName$1() { 20049 var fiber = ReactDebugCurrentFiber.current; 20050 if (null === fiber) return null; 20051 var owner = fiber._debugOwner; 20052 return null !== owner && void 0 !== owner ? getComponentName(owner) : null; 20053 } 20054 function getCurrentFiberStackAddendum$1() { 20055 var fiber = ReactDebugCurrentFiber.current; 20056 return null === fiber ? null : getStackAddendumByWorkInProgressFiber(fiber); 20057 } 20058 function resetCurrentFiber() { 20059 ReactDebugCurrentFrame.getCurrentStack = null, ReactDebugCurrentFiber.current = null, 20060 ReactDebugCurrentFiber.phase = null; 20061 } 20062 function setCurrentFiber(fiber) { 20063 ReactDebugCurrentFrame.getCurrentStack = getCurrentFiberStackAddendum$1, ReactDebugCurrentFiber.current = fiber, 20064 ReactDebugCurrentFiber.phase = null; 20065 } 20066 function setCurrentPhase(phase) { 20067 ReactDebugCurrentFiber.phase = phase; 20068 } 20069 function isAttributeNameSafe(attributeName) { 20070 return !!validatedAttributeNameCache.hasOwnProperty(attributeName) || !illegalAttributeNameCache.hasOwnProperty(attributeName) && (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName) ? (validatedAttributeNameCache[attributeName] = !0, 20071 !0) : (illegalAttributeNameCache[attributeName] = !0, warning(!1, "Invalid attribute name: ` + "`")))) + (((`%s` + ("`" + `", attributeName), 20072 !1)); 20073 } 20074 function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) { 20075 return null !== propertyInfo ? propertyInfo.type === RESERVED : !isCustomComponentTag && (name.length > 2 && ("o" === name[0] || "O" === name[0]) && ("n" === name[1] || "N" === name[1])); 20076 } 20077 function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) { 20078 if (null !== propertyInfo && propertyInfo.type === RESERVED) return !1; 20079 switch (typeof value) { 20080 case "function": 20081 case "symbol": 20082 return !0; 20083 20084 case "boolean": 20085 if (isCustomComponentTag) return !1; 20086 if (null !== propertyInfo) return !propertyInfo.acceptsBooleans; 20087 var prefix = name.toLowerCase().slice(0, 5); 20088 return "data-" !== prefix && "aria-" !== prefix; 20089 20090 default: 20091 return !1; 20092 } 20093 } 20094 function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) { 20095 if (null === value || void 0 === value) return !0; 20096 if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) return !0; 20097 if (isCustomComponentTag) return !1; 20098 if (null !== propertyInfo) switch (propertyInfo.type) { 20099 case BOOLEAN: 20100 return !value; 20101 20102 case OVERLOADED_BOOLEAN: 20103 return !1 === value; 20104 20105 case NUMERIC: 20106 return isNaN(value); 20107 20108 case POSITIVE_NUMERIC: 20109 return isNaN(value) || value < 1; 20110 } 20111 return !1; 20112 } 20113 function getPropertyInfo(name) { 20114 return properties.hasOwnProperty(name) ? properties[name] : null; 20115 } 20116 function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace) { 20117 this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN, 20118 this.attributeName = attributeName, this.attributeNamespace = attributeNamespace, 20119 this.mustUseProperty = mustUseProperty, this.propertyName = name, this.type = type; 20120 } 20121 function getValueForProperty(node, name, expected, propertyInfo) { 20122 if (propertyInfo.mustUseProperty) { 20123 return node[propertyInfo.propertyName]; 20124 } 20125 var attributeName = propertyInfo.attributeName, stringValue = null; 20126 if (propertyInfo.type === OVERLOADED_BOOLEAN) { 20127 if (node.hasAttribute(attributeName)) { 20128 var value = node.getAttribute(attributeName); 20129 return "" === value || (shouldRemoveAttribute(name, expected, propertyInfo, !1) ? value : value === "" + expected ? expected : value); 20130 } 20131 } else if (node.hasAttribute(attributeName)) { 20132 if (shouldRemoveAttribute(name, expected, propertyInfo, !1)) return node.getAttribute(attributeName); 20133 if (propertyInfo.type === BOOLEAN) return expected; 20134 stringValue = node.getAttribute(attributeName); 20135 } 20136 return shouldRemoveAttribute(name, expected, propertyInfo, !1) ? null === stringValue ? expected : stringValue : stringValue === "" + expected ? expected : stringValue; 20137 } 20138 function getValueForAttribute(node, name, expected) { 20139 if (isAttributeNameSafe(name)) { 20140 if (!node.hasAttribute(name)) return void 0 === expected ? void 0 : null; 20141 var value = node.getAttribute(name); 20142 return value === "" + expected ? expected : value; 20143 } 20144 } 20145 function setValueForProperty(node, name, value, isCustomComponentTag) { 20146 var propertyInfo = getPropertyInfo(name); 20147 if (!shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) && (value = null), 20148 isCustomComponentTag || null === propertyInfo) { 20149 if (isAttributeNameSafe(name)) { 20150 var _attributeName = name; 20151 null === value ? node.removeAttribute(_attributeName) : node.setAttribute(_attributeName, "" + value); 20152 } 20153 } else { 20154 var mustUseProperty = propertyInfo.mustUseProperty; 20155 if (mustUseProperty) { 20156 var propertyName = propertyInfo.propertyName; 20157 if (null === value) { 20158 var type = propertyInfo.type; 20159 node[propertyName] = type !== BOOLEAN && ""; 20160 } else node[propertyName] = value; 20161 } else { 20162 var attributeName = propertyInfo.attributeName, attributeNamespace = propertyInfo.attributeNamespace; 20163 if (null === value) node.removeAttribute(attributeName); else { 20164 var _type = propertyInfo.type, attributeValue = void 0; 20165 attributeValue = _type === BOOLEAN || _type === OVERLOADED_BOOLEAN && !0 === value ? "" : "" + value, 20166 attributeNamespace ? node.setAttributeNS(attributeNamespace, attributeName, attributeValue) : node.setAttribute(attributeName, attributeValue); 20167 } 20168 } 20169 } 20170 } 20171 function isControlled(props) { 20172 return "checkbox" === props.type || "radio" === props.type ? null != props.checked : null != props.value; 20173 } 20174 function getHostProps(element, props) { 20175 var node = element, checked = props.checked; 20176 return _assign({}, props, { 20177 defaultChecked: void 0, 20178 defaultValue: void 0, 20179 value: void 0, 20180 checked: null != checked ? checked : node._wrapperState.initialChecked 20181 }); 20182 } 20183 function initWrapperState(element, props) { 20184 ReactControlledValuePropTypes.checkPropTypes("input", props, getCurrentFiberStackAddendum), 20185 void 0 === props.checked || void 0 === props.defaultChecked || didWarnCheckedDefaultChecked || (warning(!1, "%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://fb.me/react-controlled components”,getcurrentfiberownername()“A component”,props.type), 20186 didWarnCheckedDefaultChecked = !0), void 0 === props.value || void 0 === props.defaultValue || didWarnValueDefaultValue || (warning(!1, "%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://fb.me/react-controlled components”,getcurrentfiberownername()“A component”,props.type), 20187 didWarnValueDefaultValue = !0); 20188 var node = element, defaultValue = null == props.defaultValue ? "" : props.defaultValue; 20189 node._wrapperState = { 20190 initialChecked: null != props.checked ? props.checked : props.defaultChecked, 20191 initialValue: getSafeValue(null != props.value ? props.value : defaultValue), 20192 controlled: isControlled(props) 20193 }; 20194 } 20195 function updateChecked(element, props) { 20196 var node = element, checked = props.checked; 20197 null != checked && setValueForProperty(node, "checked", checked, !1); 20198 } 20199 function updateWrapper(element, props) { 20200 var node = element, _controlled = isControlled(props); 20201 node._wrapperState.controlled || !_controlled || didWarnUncontrolledToControlled || (warning(!1, "A component is changing an uncontrolled input of type %s to be controlled. Input elements should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://fb.me/反应控制组件%s“,props.type,getcurrentfiberstackEngation()), 20202 didWarnUncontrolledToControlled = !0), !node._wrapperState.controlled || _controlled || didWarnControlledToUncontrolled || (warning(!1, "A component is changing a controlled input of type %s to be uncontrolled. Input elements should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://fb.me/反应控制组件%s“,props.type,getcurrentfiberstackEngation()), 20203 didWarnControlledToUncontrolled = !0), updateChecked(element, props); 20204 var value = getSafeValue(props.value); 20205 null != value && ("number" === props.type ? (0 === value && "" === node.value || node.value != value) && (node.value = "" + value) : node.value !== "" + value && (node.value = "" + value)), 20206 props.hasOwnProperty("value") ? setDefaultValue(node, props.type, value) : props.hasOwnProperty("defaultValue") && setDefaultValue(node, props.type, getSafeValue(props.defaultValue)), 20207 null == props.checked && null != props.defaultChecked && (node.defaultChecked = !!props.defaultChecked); 20208 } 20209 function postMountWrapper(element, props) { 20210 var node = element; 20211 (props.hasOwnProperty("value") || props.hasOwnProperty("defaultValue")) && ("" === node.value && (node.value = "" + node._wrapperState.initialValue), 20212 node.defaultValue = "" + node._wrapperState.initialValue); 20213 var name = node.name; 20214 "" !== name && (node.name = ""), node.defaultChecked = !node.defaultChecked, node.defaultChecked = !node.defaultChecked, 20215 "" !== name && (node.name = name); 20216 } 20217 function restoreControlledState(element, props) { 20218 var node = element; 20219 updateWrapper(node, props), updateNamedCousins(node, props); 20220 } 20221 function updateNamedCousins(rootNode, props) { 20222 var name = props.name; 20223 if ("radio" === props.type && null != name) { 20224 for (var queryRoot = rootNode; queryRoot.parentNode; ) queryRoot = queryRoot.parentNode; 20225 for (var group = queryRoot.querySelectorAll("input[name=" + JSON.stringify("" + name) + '][type="radio"]'), i = 0; i < group.length; i++) { 20226 var otherNode = group[i]; 20227 if (otherNode !== rootNode && otherNode.form === rootNode.form) { 20228 var otherProps = getFiberCurrentPropsFromNode$1(otherNode); 20229 otherProps || invariant(!1, "ReactDOMInput: Mixing React and non-React radio inputs with the same `)) + ("`" + (`name` + "`"))) + ((` is not supported."), 20230 updateValueIfChanged(otherNode), updateWrapper(otherNode, otherProps); 20231 } 20232 } 20233 } 20234 } 20235 function setDefaultValue(node, type, value) { 20236 "number" === type && node.ownerDocument.activeElement === node || (null == value ? node.defaultValue = "" + node._wrapperState.initialValue : node.defaultValue !== "" + value && (node.defaultValue = "" + value)); 20237 } 20238 function getSafeValue(value) { 20239 switch (typeof value) { 20240 case "boolean": 20241 case "number": 20242 case "object": 20243 case "string": 20244 case "undefined": 20245 return value; 20246 20247 default: 20248 return ""; 20249 } 20250 } 20251 function createAndAccumulateChangeEvent(inst, nativeEvent, target) { 20252 var event = SyntheticEvent$1.getPooled(eventTypes$1.change, inst, nativeEvent, target); 20253 return event.type = "change", enqueueStateRestore(target), accumulateTwoPhaseDispatches(event), 20254 event; 20255 } 20256 function shouldUseChangeEvent(elem) { 20257 var nodeName = elem.nodeName && elem.nodeName.toLowerCase(); 20258 return "select" === nodeName || "input" === nodeName && "file" === elem.type; 20259 } 20260 function manualDispatchChangeEvent(nativeEvent) { 20261 batchedUpdates(runEventInBatch, createAndAccumulateChangeEvent(activeElementInst, nativeEvent, getEventTarget(nativeEvent))); 20262 } 20263 function runEventInBatch(event) { 20264 runEventsInBatch(event, !1); 20265 } 20266 function getInstIfValueChanged(targetInst) { 20267 if (updateValueIfChanged(getNodeFromInstance$1(targetInst))) return targetInst; 20268 } 20269 function getTargetInstForChangeEvent(topLevelType, targetInst) { 20270 if (topLevelType === TOP_CHANGE) return targetInst; 20271 } 20272 function startWatchingForValueChange(target, targetInst) { 20273 activeElement = target, activeElementInst = targetInst, activeElement.attachEvent("onpropertychange", handlePropertyChange); 20274 } 20275 function stopWatchingForValueChange() { 20276 activeElement && (activeElement.detachEvent("onpropertychange", handlePropertyChange), 20277 activeElement = null, activeElementInst = null); 20278 } 20279 function handlePropertyChange(nativeEvent) { 20280 "value" === nativeEvent.propertyName && getInstIfValueChanged(activeElementInst) && manualDispatchChangeEvent(nativeEvent); 20281 } 20282 function handleEventsForInputEventPolyfill(topLevelType, target, targetInst) { 20283 topLevelType === TOP_FOCUS ? (stopWatchingForValueChange(), startWatchingForValueChange(target, targetInst)) : topLevelType === TOP_BLUR && stopWatchingForValueChange(); 20284 } 20285 function getTargetInstForInputEventPolyfill(topLevelType, targetInst) { 20286 if (topLevelType === TOP_SELECTION_CHANGE || topLevelType === TOP_KEY_UP || topLevelType === TOP_KEY_DOWN) return getInstIfValueChanged(activeElementInst); 20287 } 20288 function shouldUseClickEvent(elem) { 20289 var nodeName = elem.nodeName; 20290 return nodeName && "input" === nodeName.toLowerCase() && ("checkbox" === elem.type || "radio" === elem.type); 20291 } 20292 function getTargetInstForClickEvent(topLevelType, targetInst) { 20293 if (topLevelType === TOP_CLICK) return getInstIfValueChanged(targetInst); 20294 } 20295 function getTargetInstForInputOrChangeEvent(topLevelType, targetInst) { 20296 if (topLevelType === TOP_INPUT || topLevelType === TOP_CHANGE) return getInstIfValueChanged(targetInst); 20297 } 20298 function handleControlledInputBlur(inst, node) { 20299 if (null != inst) { 20300 var state = inst._wrapperState || node._wrapperState; 20301 state && state.controlled && "number" === node.type && setDefaultValue(node, "number", node.value); 20302 } 20303 } 20304 function modifierStateGetter(keyArg) { 20305 var syntheticEvent = this, nativeEvent = syntheticEvent.nativeEvent; 20306 if (nativeEvent.getModifierState) return nativeEvent.getModifierState(keyArg); 20307 var keyProp = modifierKeyToProp[keyArg]; 20308 return !!keyProp && !!nativeEvent[keyProp]; 20309 } 20310 function getEventModifierState(nativeEvent) { 20311 return modifierStateGetter; 20312 } 20313 function get(key) { 20314 return key._reactInternalFiber; 20315 } 20316 function has(key) { 20317 return void 0 !== key._reactInternalFiber; 20318 } 20319 function set(key, value) { 20320 key._reactInternalFiber = value; 20321 } 20322 function isFiberMountedImpl(fiber) { 20323 var node = fiber; 20324 if (fiber.alternate) for (;node.return; ) node = node.return; else { 20325 if ((node.effectTag & Placement) !== NoEffect) return MOUNTING; 20326 for (;node.return; ) if (node = node.return, (node.effectTag & Placement) !== NoEffect) return MOUNTING; 20327 } 20328 return node.tag === HostRoot ? MOUNTED : UNMOUNTED; 20329 } 20330 function isFiberMounted(fiber) { 20331 return isFiberMountedImpl(fiber) === MOUNTED; 20332 } 20333 function isMounted(component) { 20334 var owner = ReactCurrentOwner.current; 20335 if (null !== owner && owner.tag === ClassComponent) { 20336 var ownerFiber = owner, instance = ownerFiber.stateNode; 20337 instance._warnedAboutRefsInRender || warning(!1, "%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.", getComponentName(ownerFiber) || "A component"), 20338 instance._warnedAboutRefsInRender = !0; 20339 } 20340 var fiber = get(component); 20341 return !!fiber && isFiberMountedImpl(fiber) === MOUNTED; 20342 } 20343 function assertIsMounted(fiber) { 20344 isFiberMountedImpl(fiber) !== MOUNTED && invariant(!1, "Unable to find node on an unmounted component."); 20345 } 20346 function findCurrentFiberUsingSlowPath(fiber) { 20347 var alternate = fiber.alternate; 20348 if (!alternate) { 20349 var state = isFiberMountedImpl(fiber); 20350 return state === UNMOUNTED && invariant(!1, "Unable to find node on an unmounted component."), 20351 state === MOUNTING ? null : fiber; 20352 } 20353 for (var a = fiber, b = alternate; ;) { 20354 var parentA = a.return, parentB = parentA ? parentA.alternate : null; 20355 if (!parentA || !parentB) break; 20356 if (parentA.child === parentB.child) { 20357 for (var child = parentA.child; child; ) { 20358 if (child === a) return assertIsMounted(parentA), fiber; 20359 if (child === b) return assertIsMounted(parentA), alternate; 20360 child = child.sibling; 20361 } 20362 invariant(!1, "Unable to find node on an unmounted component."); 20363 } 20364 if (a.return !== b.return) a = parentA, b = parentB; else { 20365 for (var didFindChild = !1, _child = parentA.child; _child; ) { 20366 if (_child === a) { 20367 didFindChild = !0, a = parentA, b = parentB; 20368 break; 20369 } 20370 if (_child === b) { 20371 didFindChild = !0, b = parentA, a = parentB; 20372 break; 20373 } 20374 _child = _child.sibling; 20375 } 20376 if (!didFindChild) { 20377 for (_child = parentB.child; _child; ) { 20378 if (_child === a) { 20379 didFindChild = !0, a = parentB, b = parentA; 20380 break; 20381 } 20382 if (_child === b) { 20383 didFindChild = !0, b = parentB, a = parentA; 20384 break; 20385 } 20386 _child = _child.sibling; 20387 } 20388 didFindChild || invariant(!1, "Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue."); 20389 } 20390 } 20391 a.alternate !== b && invariant(!1, "Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue."); 20392 } 20393 return a.tag !== HostRoot && invariant(!1, "Unable to find node on an unmounted component."), 20394 a.stateNode.current === a ? fiber : alternate; 20395 } 20396 function findCurrentHostFiber(parent) { 20397 var currentParent = findCurrentFiberUsingSlowPath(parent); 20398 if (!currentParent) return null; 20399 for (var node = currentParent; ;) { 20400 if (node.tag === HostComponent || node.tag === HostText) return node; 20401 if (node.child) node.child.return = node, node = node.child; else { 20402 if (node === currentParent) return null; 20403 for (;!node.sibling; ) { 20404 if (!node.return || node.return === currentParent) return null; 20405 node = node.return; 20406 } 20407 node.sibling.return = node.return, node = node.sibling; 20408 } 20409 } 20410 return null; 20411 } 20412 function findCurrentHostFiberWithNoPortals(parent) { 20413 var currentParent = findCurrentFiberUsingSlowPath(parent); 20414 if (!currentParent) return null; 20415 for (var node = currentParent; ;) { 20416 if (node.tag === HostComponent || node.tag === HostText) return node; 20417 if (node.child && node.tag !== HostPortal) node.child.return = node, node = node.child; else { 20418 if (node === currentParent) return null; 20419 for (;!node.sibling; ) { 20420 if (!node.return || node.return === currentParent) return null; 20421 node = node.return; 20422 } 20423 node.sibling.return = node.return, node = node.sibling; 20424 } 20425 } 20426 return null; 20427 } 20428 function addEventBubbleListener(element, eventType, listener) { 20429 element.addEventListener(eventType, listener, !1); 20430 } 20431 function addEventCaptureListener(element, eventType, listener) { 20432 element.addEventListener(eventType, listener, !0); 20433 } 20434 function getEventCharCode(nativeEvent) { 20435 var charCode = void 0, keyCode = nativeEvent.keyCode; 20436 return "charCode" in nativeEvent ? 0 === (charCode = nativeEvent.charCode) && 13 === keyCode && (charCode = 13) : charCode = keyCode, 20437 10 === charCode && (charCode = 13), charCode >= 32 || 13 === charCode ? charCode : 0; 20438 } 20439 function getEventKey(nativeEvent) { 20440 if (nativeEvent.key) { 20441 var key = normalizeKey[nativeEvent.key] || nativeEvent.key; 20442 if ("Unidentified" !== key) return key; 20443 } 20444 if ("keypress" === nativeEvent.type) { 20445 var charCode = getEventCharCode(nativeEvent); 20446 return 13 === charCode ? "Enter" : String.fromCharCode(charCode); 20447 } 20448 return "keydown" === nativeEvent.type || "keyup" === nativeEvent.type ? translateToKey[nativeEvent.keyCode] || "Unidentified" : ""; 20449 } 20450 function addEventTypeNameToConfig(_ref, isInteractive) { 20451 var topEvent = _ref[0], event = _ref[1], capitalizedEvent = event[0].toUpperCase() + event.slice(1), onEvent = "on" + capitalizedEvent, type = { 20452 phasedRegistrationNames: { 20453 bubbled: onEvent, 20454 captured: onEvent + "Capture" 20455 }, 20456 dependencies: [ topEvent ], 20457 isInteractive: isInteractive 20458 }; 20459 eventTypes$4[event] = type, topLevelEventsToDispatchConfig[topEvent] = type; 20460 } 20461 function findRootContainerNode(inst) { 20462 for (;inst.return; ) inst = inst.return; 20463 return inst.tag !== HostRoot ? null : inst.stateNode.containerInfo; 20464 } 20465 function getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst) { 20466 if (callbackBookkeepingPool.length) { 20467 var instance = callbackBookkeepingPool.pop(); 20468 return instance.topLevelType = topLevelType, instance.nativeEvent = nativeEvent, 20469 instance.targetInst = targetInst, instance; 20470 } 20471 return { 20472 topLevelType: topLevelType, 20473 nativeEvent: nativeEvent, 20474 targetInst: targetInst, 20475 ancestors: [] 20476 }; 20477 } 20478 function releaseTopLevelCallbackBookKeeping(instance) { 20479 instance.topLevelType = null, instance.nativeEvent = null, instance.targetInst = null, 20480 instance.ancestors.length = 0, callbackBookkeepingPool.length < CALLBACK_BOOKKEEPING_POOL_SIZE && callbackBookkeepingPool.push(instance); 20481 } 20482 function handleTopLevel(bookKeeping) { 20483 var targetInst = bookKeeping.targetInst, ancestor = targetInst; 20484 do { 20485 if (!ancestor) { 20486 bookKeeping.ancestors.push(ancestor); 20487 break; 20488 } 20489 var root = findRootContainerNode(ancestor); 20490 if (!root) break; 20491 bookKeeping.ancestors.push(ancestor), ancestor = getClosestInstanceFromNode(root); 20492 } while (ancestor); 20493 for (var i = 0; i < bookKeeping.ancestors.length; i++) targetInst = bookKeeping.ancestors[i], 20494 runExtractedEventsInBatch(bookKeeping.topLevelType, targetInst, bookKeeping.nativeEvent, getEventTarget(bookKeeping.nativeEvent)); 20495 } 20496 function setEnabled(enabled) { 20497 _enabled = !!enabled; 20498 } 20499 function isEnabled() { 20500 return _enabled; 20501 } 20502 function trapBubbledEvent(topLevelType, element) { 20503 if (!element) return null; 20504 var dispatch = isInteractiveTopLevelEventType(topLevelType) ? dispatchInteractiveEvent : dispatchEvent; 20505 addEventBubbleListener(element, getRawEventName(topLevelType), dispatch.bind(null, topLevelType)); 20506 } 20507 function trapCapturedEvent(topLevelType, element) { 20508 if (!element) return null; 20509 var dispatch = isInteractiveTopLevelEventType(topLevelType) ? dispatchInteractiveEvent : dispatchEvent; 20510 addEventCaptureListener(element, getRawEventName(topLevelType), dispatch.bind(null, topLevelType)); 20511 } 20512 function dispatchInteractiveEvent(topLevelType, nativeEvent) { 20513 interactiveUpdates(dispatchEvent, topLevelType, nativeEvent); 20514 } 20515 function dispatchEvent(topLevelType, nativeEvent) { 20516 if (_enabled) { 20517 var nativeEventTarget = getEventTarget(nativeEvent), targetInst = getClosestInstanceFromNode(nativeEventTarget); 20518 null === targetInst || "number" != typeof targetInst.tag || isFiberMounted(targetInst) || (targetInst = null); 20519 var bookKeeping = getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst); 20520 try { 20521 batchedUpdates(handleTopLevel, bookKeeping); 20522 } finally { 20523 releaseTopLevelCallbackBookKeeping(bookKeeping); 20524 } 20525 } 20526 } 20527 function getListeningForDocument(mountAt) { 20528 return Object.prototype.hasOwnProperty.call(mountAt, topListenersIDKey) || (mountAt[topListenersIDKey] = reactTopListenersCounter++, 20529 alreadyListeningTo[mountAt[topListenersIDKey]] = {}), alreadyListeningTo[mountAt[topListenersIDKey]]; 20530 } 20531 function listenTo(registrationName, mountAt) { 20532 for (var isListening = getListeningForDocument(mountAt), dependencies = registrationNameDependencies[registrationName], i = 0; i < dependencies.length; i++) { 20533 var dependency = dependencies[i]; 20534 if (!isListening.hasOwnProperty(dependency) || !isListening[dependency]) { 20535 switch (dependency) { 20536 case TOP_SCROLL: 20537 trapCapturedEvent(TOP_SCROLL, mountAt); 20538 break; 20539 20540 case TOP_FOCUS: 20541 case TOP_BLUR: 20542 trapCapturedEvent(TOP_FOCUS, mountAt), trapCapturedEvent(TOP_BLUR, mountAt), isListening[TOP_BLUR] = !0, 20543 isListening[TOP_FOCUS] = !0; 20544 break; 20545 20546 case TOP_CANCEL: 20547 case TOP_CLOSE: 20548 isEventSupported(getRawEventName(dependency), !0) && trapCapturedEvent(dependency, mountAt); 20549 break; 20550 20551 case TOP_INVALID: 20552 case TOP_SUBMIT: 20553 case TOP_RESET: 20554 break; 20555 20556 default: 20557 -1 !== mediaEventTypes.indexOf(dependency) || trapBubbledEvent(dependency, mountAt); 20558 } 20559 isListening[dependency] = !0; 20560 } 20561 } 20562 } 20563 function isListeningToAllDependencies(registrationName, mountAt) { 20564 for (var isListening = getListeningForDocument(mountAt), dependencies = registrationNameDependencies[registrationName], i = 0; i < dependencies.length; i++) { 20565 var dependency = dependencies[i]; 20566 if (!isListening.hasOwnProperty(dependency) || !isListening[dependency]) return !1; 20567 } 20568 return !0; 20569 } 20570 function getLeafNode(node) { 20571 for (;node && node.firstChild; ) node = node.firstChild; 20572 return node; 20573 } 20574 function getSiblingNode(node) { 20575 for (;node; ) { 20576 if (node.nextSibling) return node.nextSibling; 20577 node = node.parentNode; 20578 } 20579 } 20580 function getNodeForCharacterOffset(root, offset) { 20581 for (var node = getLeafNode(root), nodeStart = 0, nodeEnd = 0; node; ) { 20582 if (node.nodeType === TEXT_NODE) { 20583 if (nodeEnd = nodeStart + node.textContent.length, nodeStart <= offset && nodeEnd >= offset) return { 20584 node: node, 20585 offset: offset - nodeStart 20586 }; 20587 nodeStart = nodeEnd; 20588 } 20589 node = getLeafNode(getSiblingNode(node)); 20590 } 20591 } 20592 function getOffsets(outerNode) { 20593 var selection = window.getSelection && window.getSelection(); 20594 if (!selection || 0 === selection.rangeCount) return null; 20595 var anchorNode = selection.anchorNode, anchorOffset = selection.anchorOffset, focusNode = selection.focusNode, focusOffset = selection.focusOffset; 20596 try { 20597 anchorNode.nodeType, focusNode.nodeType; 20598 } catch (e) { 20599 return null; 20600 } 20601 return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset); 20602 } 20603 function getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset) { 20604 var length = 0, start = -1, end = -1, indexWithinAnchor = 0, indexWithinFocus = 0, node = outerNode, parentNode = null; 20605 outer: for (;;) { 20606 for (var next = null; ;) { 20607 if (node !== anchorNode || 0 !== anchorOffset && node.nodeType !== TEXT_NODE || (start = length + anchorOffset), 20608 node !== focusNode || 0 !== focusOffset && node.nodeType !== TEXT_NODE || (end = length + focusOffset), 20609 node.nodeType === TEXT_NODE && (length += node.nodeValue.length), null === (next = node.firstChild)) break; 20610 parentNode = node, node = next; 20611 } 20612 for (;;) { 20613 if (node === outerNode) break outer; 20614 if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset && (start = length), 20615 parentNode === focusNode && ++indexWithinFocus === focusOffset && (end = length), 20616 null !== (next = node.nextSibling)) break; 20617 node = parentNode, parentNode = node.parentNode; 20618 } 20619 node = next; 20620 } 20621 return -1 === start || -1 === end ? null : { 20622 start: start, 20623 end: end 20624 }; 20625 } 20626 function setOffsets(node, offsets) { 20627 if (window.getSelection) { 20628 var selection = window.getSelection(), length = node[getTextContentAccessor()].length, start = Math.min(offsets.start, length), end = void 0 === offsets.end ? start : Math.min(offsets.end, length); 20629 if (!selection.extend && start > end) { 20630 var temp = end; 20631 end = start, start = temp; 20632 } 20633 var startMarker = getNodeForCharacterOffset(node, start), endMarker = getNodeForCharacterOffset(node, end); 20634 if (startMarker && endMarker) { 20635 if (1 === selection.rangeCount && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) return; 20636 var range = document.createRange(); 20637 range.setStart(startMarker.node, startMarker.offset), selection.removeAllRanges(), 20638 start > end ? (selection.addRange(range), selection.extend(endMarker.node, endMarker.offset)) : (range.setEnd(endMarker.node, endMarker.offset), 20639 selection.addRange(range)); 20640 } 20641 } 20642 } 20643 function isInDocument(node) { 20644 return containsNode(document.documentElement, node); 20645 } 20646 function hasSelectionCapabilities(elem) { 20647 var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); 20648 return nodeName && ("input" === nodeName && "text" === elem.type || "textarea" === nodeName || "true" === elem.contentEditable); 20649 } 20650 function getSelectionInformation() { 20651 var focusedElem = getActiveElement(); 20652 return { 20653 focusedElem: focusedElem, 20654 selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection$1(focusedElem) : null 20655 }; 20656 } 20657 function restoreSelection(priorSelectionInformation) { 20658 var curFocusedElem = getActiveElement(), priorFocusedElem = priorSelectionInformation.focusedElem, priorSelectionRange = priorSelectionInformation.selectionRange; 20659 if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) { 20660 hasSelectionCapabilities(priorFocusedElem) && setSelection(priorFocusedElem, priorSelectionRange); 20661 for (var ancestors = [], ancestor = priorFocusedElem; ancestor = ancestor.parentNode; ) ancestor.nodeType === ELEMENT_NODE && ancestors.push({ 20662 element: ancestor, 20663 left: ancestor.scrollLeft, 20664 top: ancestor.scrollTop 20665 }); 20666 priorFocusedElem.focus(); 20667 for (var i = 0; i < ancestors.length; i++) { 20668 var info = ancestors[i]; 20669 info.element.scrollLeft = info.left, info.element.scrollTop = info.top; 20670 } 20671 } 20672 } 20673 function getSelection$1(input) { 20674 return ("selectionStart" in input ? { 20675 start: input.selectionStart, 20676 end: input.selectionEnd 20677 } : getOffsets(input)) || { 20678 start: 0, 20679 end: 0 20680 }; 20681 } 20682 function setSelection(input, offsets) { 20683 var start = offsets.start, end = offsets.end; 20684 void 0 === end && (end = start), "selectionStart" in input ? (input.selectionStart = start, 20685 input.selectionEnd = Math.min(end, input.value.length)) : setOffsets(input, offsets); 20686 } 20687 function getSelection(node) { 20688 if ("selectionStart" in node && hasSelectionCapabilities(node)) return { 20689 start: node.selectionStart, 20690 end: node.selectionEnd 20691 }; 20692 if (window.getSelection) { 20693 var selection = window.getSelection(); 20694 return { 20695 anchorNode: selection.anchorNode, 20696 anchorOffset: selection.anchorOffset, 20697 focusNode: selection.focusNode, 20698 focusOffset: selection.focusOffset 20699 }; 20700 } 20701 } 20702 function constructSelectEvent(nativeEvent, nativeEventTarget) { 20703 if (mouseDown || null == activeElement$1 || activeElement$1 !== getActiveElement()) return null; 20704 var currentSelection = getSelection(activeElement$1); 20705 if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) { 20706 lastSelection = currentSelection; 20707 var syntheticEvent = SyntheticEvent$1.getPooled(eventTypes$3.select, activeElementInst$1, nativeEvent, nativeEventTarget); 20708 return syntheticEvent.type = "select", syntheticEvent.target = activeElement$1, 20709 accumulateTwoPhaseDispatches(syntheticEvent), syntheticEvent; 20710 } 20711 return null; 20712 } 20713 function flattenChildren(children) { 20714 var content = ""; 20715 return React.Children.forEach(children, function(child) { 20716 null != child && ("string" != typeof child && "number" != typeof child || (content += child)); 20717 }), content; 20718 } 20719 function validateProps(element, props) { 20720 null == props.selected || didWarnSelectedSetOnOption || (warning(!1, "Use the ` + ("`" + `defaultValue`)) + ("`" + (` or ` + "`"))))) + ((((`value` + ("`" + ` props on <select> instead of setting `)) + ("`" + (`selected` + "`"))) + ((` on <option>."), 20721 didWarnSelectedSetOnOption = !0); 20722 } 20723 function postMountWrapper$1(element, props) { 20724 null != props.value && element.setAttribute("value", props.value); 20725 } 20726 function getHostProps$1(element, props) { 20727 var hostProps = _assign({ 20728 children: void 0 20729 }, props), content = flattenChildren(props.children); 20730 return content && (hostProps.children = content), hostProps; 20731 } 20732 function getDeclarationErrorAddendum() { 20733 var ownerName = getCurrentFiberOwnerName$3(); 20734 return ownerName ? "\n\nCheck the render method of ` + ("`" + `" + ownerName + "`)) + ("`" + (`." : ""; 20735 } 20736 function checkSelectPropTypes(props) { 20737 ReactControlledValuePropTypes.checkPropTypes("select", props, getCurrentFiberStackAddendum$3); 20738 for (var i = 0; i < valuePropNames.length; i++) { 20739 var propName = valuePropNames[i]; 20740 if (null != props[propName]) { 20741 var isArray = Array.isArray(props[propName]); 20742 props.multiple && !isArray ? warning(!1, "The ` + "`")))) + (((`%s` + ("`" + ` prop supplied to <select> must be an array if `)) + ("`" + (`multiple` + "`"))) + ((` is true.%s", propName, getDeclarationErrorAddendum()) : !props.multiple && isArray && warning(!1, "The ` + ("`" + `%s`)) + (("`" + ` prop supplied to <select> must be a scalar value if `) + ("`" + `multiple`)))))))) + ((((((("`" + (` is false.%s", propName, getDeclarationErrorAddendum()); 20743 } 20744 } 20745 } 20746 function updateOptions(node, multiple, propValue, setDefaultSelected) { 20747 var options = node.options; 20748 if (multiple) { 20749 for (var selectedValues = propValue, selectedValue = {}, i = 0; i < selectedValues.length; i++) selectedValue["$" + selectedValues[i]] = !0; 20750 for (var _i = 0; _i < options.length; _i++) { 20751 var selected = selectedValue.hasOwnProperty("$" + options[_i].value); 20752 options[_i].selected !== selected && (options[_i].selected = selected), selected && setDefaultSelected && (options[_i].defaultSelected = !0); 20753 } 20754 } else { 20755 for (var _selectedValue = "" + propValue, defaultSelected = null, _i2 = 0; _i2 < options.length; _i2++) { 20756 if (options[_i2].value === _selectedValue) return options[_i2].selected = !0, void (setDefaultSelected && (options[_i2].defaultSelected = !0)); 20757 null !== defaultSelected || options[_i2].disabled || (defaultSelected = options[_i2]); 20758 } 20759 null !== defaultSelected && (defaultSelected.selected = !0); 20760 } 20761 } 20762 function getHostProps$2(element, props) { 20763 return _assign({}, props, { 20764 value: void 0 20765 }); 20766 } 20767 function initWrapperState$1(element, props) { 20768 var node = element; 20769 checkSelectPropTypes(props); 20770 var value = props.value; 20771 node._wrapperState = { 20772 initialValue: null != value ? value : props.defaultValue, 20773 wasMultiple: !!props.multiple 20774 }, void 0 === props.value || void 0 === props.defaultValue || didWarnValueDefaultValue$1 || (warning(!1, "Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://fb.me/反应控制组件”), 20775 didWarnValueDefaultValue$1 = !0); 20776 } 20777 function postMountWrapper$2(element, props) { 20778 var node = element; 20779 node.multiple = !!props.multiple; 20780 var value = props.value; 20781 null != value ? updateOptions(node, !!props.multiple, value, !1) : null != props.defaultValue && updateOptions(node, !!props.multiple, props.defaultValue, !0); 20782 } 20783 function postUpdateWrapper(element, props) { 20784 var node = element; 20785 node._wrapperState.initialValue = void 0; 20786 var wasMultiple = node._wrapperState.wasMultiple; 20787 node._wrapperState.wasMultiple = !!props.multiple; 20788 var value = props.value; 20789 null != value ? updateOptions(node, !!props.multiple, value, !1) : wasMultiple !== !!props.multiple && (null != props.defaultValue ? updateOptions(node, !!props.multiple, props.defaultValue, !0) : updateOptions(node, !!props.multiple, props.multiple ? [] : "", !1)); 20790 } 20791 function restoreControlledState$2(element, props) { 20792 var node = element, value = props.value; 20793 null != value && updateOptions(node, !!props.multiple, value, !1); 20794 } 20795 function getHostProps$3(element, props) { 20796 var node = element; 20797 return null != props.dangerouslySetInnerHTML && invariant(!1, "` + "`")) + (`dangerouslySetInnerHTML` + ("`" + ` does not make sense on <textarea>."), 20798 _assign({}, props, { 20799 value: void 0, 20800 defaultValue: void 0, 20801 children: "" + node._wrapperState.initialValue 20802 }); 20803 } 20804 function initWrapperState$2(element, props) { 20805 var node = element; 20806 ReactControlledValuePropTypes.checkPropTypes("textarea", props, getCurrentFiberStackAddendum$4), 20807 void 0 === props.value || void 0 === props.defaultValue || didWarnValDefaultVal || (warning(!1, "Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://fb.me/反应控制组件”), 20808 didWarnValDefaultVal = !0); 20809 var initialValue = props.value; 20810 if (null == initialValue) { 20811 var defaultValue = props.defaultValue, children = props.children; 20812 null != children && (warning(!1, "Use the `))) + (("`" + (`defaultValue` + "`")) + (` or ` + ("`" + `value`)))) + ((("`" + (` props instead of setting children on <textarea>."), 20813 null != defaultValue && invariant(!1, "If you supply ` + "`")) + (`defaultValue` + ("`" + ` on a <textarea>, do not pass children."), 20814 Array.isArray(children) && (children.length <= 1 || invariant(!1, "<textarea> can only have at most one child."), 20815 children = children[0]), defaultValue = "" + children), null == defaultValue && (defaultValue = ""), 20816 initialValue = defaultValue; 20817 } 20818 node._wrapperState = { 20819 initialValue: "" + initialValue 20820 }; 20821 } 20822 function updateWrapper$1(element, props) { 20823 var node = element, value = props.value; 20824 if (null != value) { 20825 var newValue = "" + value; 20826 newValue !== node.value && (node.value = newValue), null == props.defaultValue && (node.defaultValue = newValue); 20827 } 20828 null != props.defaultValue && (node.defaultValue = props.defaultValue); 20829 } 20830 function postMountWrapper$3(element, props) { 20831 var node = element, textContent = node.textContent; 20832 textContent === node._wrapperState.initialValue && (node.value = textContent); 20833 } 20834 function restoreControlledState$3(element, props) { 20835 updateWrapper$1(element, props); 20836 } 20837 function getIntrinsicNamespace(type) { 20838 switch (type) { 20839 case "svg": 20840 return SVG_NAMESPACE; 20841 20842 case "math": 20843 return MATH_NAMESPACE; 20844 20845 default: 20846 return HTML_NAMESPACE$1; 20847 } 20848 } 20849 function getChildNamespace(parentNamespace, type) { 20850 return null == parentNamespace || parentNamespace === HTML_NAMESPACE$1 ? getIntrinsicNamespace(type) : parentNamespace === SVG_NAMESPACE && "foreignObject" === type ? HTML_NAMESPACE$1 : parentNamespace; 20851 } 20852 function prefixKey(prefix, key) { 20853 return prefix + key.charAt(0).toUpperCase() + key.substring(1); 20854 } 20855 function dangerousStyleValue(name, value, isCustomProperty) { 20856 return null == value || "boolean" == typeof value || "" === value ? "" : isCustomProperty || "number" != typeof value || 0 === value || isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name] ? ("" + value).trim() : value + "px"; 20857 } 20858 function createDangerousStringForStyles(styles) { 20859 var serialized = "", delimiter = ""; 20860 for (var styleName in styles) if (styles.hasOwnProperty(styleName)) { 20861 var styleValue = styles[styleName]; 20862 if (null != styleValue) { 20863 var isCustomProperty = 0 === styleName.indexOf("--"); 20864 serialized += delimiter + hyphenateStyleName(styleName) + ":", serialized += dangerousStyleValue(styleName, styleValue, isCustomProperty), 20865 delimiter = ";"; 20866 } 20867 } 20868 return serialized || null; 20869 } 20870 function setValueForStyles(node, styles, getStack) { 20871 var style = node.style; 20872 for (var styleName in styles) if (styles.hasOwnProperty(styleName)) { 20873 var isCustomProperty = 0 === styleName.indexOf("--"); 20874 isCustomProperty || warnValidStyle$1(styleName, styles[styleName], getStack); 20875 var styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty); 20876 "float" === styleName && (styleName = "cssFloat"), isCustomProperty ? style.setProperty(styleName, styleValue) : style[styleName] = styleValue; 20877 } 20878 } 20879 function assertValidProps(tag, props, getStack) { 20880 props && (voidElementTags[tag] && (null != props.children || null != props.dangerouslySetInnerHTML) && invariant(!1, "%s is a void element tag and must neither have `))) + (("`" + (`children` + "`")) + (` nor use ` + ("`" + `dangerouslySetInnerHTML`))))) + (((("`" + (`.%s", tag, getStack()), 20881 null != props.dangerouslySetInnerHTML && (null != props.children && invariant(!1, "Can only set one of ` + "`")) + (`children` + ("`" + ` or `))) + (("`" + (`props.dangerouslySetInnerHTML` + "`")) + (`."), 20882 "object" == typeof props.dangerouslySetInnerHTML && HTML$1 in props.dangerouslySetInnerHTML || invariant(!1, "` + ("`" + `props.dangerouslySetInnerHTML`)))) + ((("`" + (` must be in the form ` + "`")) + (`{__html: ...}` + ("`" + `. Please visit https://fb.me/react-invariant-dangerous-set-inner-html了解更多信息。“), 20883 !props.suppressContentEditableWarning && props.contentEditable && null != props.children && warning(!1, "A component is `))) + (("`" + (`contentEditable` + "`")) + (` and contains ` + ("`" + `children`)))))) + ((((("`" + (` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.%s", getStack()), 20884 null != props.style && "object" != typeof props.style && invariant(!1, "The ` + "`")) + (`style` + ("`" + ` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.%s", getStack())); 20885 } 20886 function isCustomComponent(tagName, props) { 20887 if (-1 === tagName.indexOf("-")) return "string" == typeof props.is; 20888 switch (tagName) { 20889 case "annotation-xml": 20890 case "color-profile": 20891 case "font-face": 20892 case "font-face-src": 20893 case "font-face-uri": 20894 case "font-face-format": 20895 case "font-face-name": 20896 case "missing-glyph": 20897 return !1; 20898 20899 default: 20900 return !0; 20901 } 20902 } 20903 function getStackAddendum() { 20904 var stack = ReactDebugCurrentFrame.getStackAddendum(); 20905 return null != stack ? stack : ""; 20906 } 20907 function validateProperty(tagName, name) { 20908 if (hasOwnProperty.call(warnedProperties, name) && warnedProperties[name]) return !0; 20909 if (rARIACamel.test(name)) { 20910 var ariaName = "aria-" + name.slice(4).toLowerCase(), correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null; 20911 if (null == correctName) return warning(!1, "Invalid ARIA attribute `))) + (("`" + (`%s` + "`")) + (`. ARIA attributes follow the pattern aria-* and must be lowercase.%s", name, getStackAddendum()), 20912 warnedProperties[name] = !0, !0; 20913 if (name !== correctName) return warning(!1, "Invalid ARIA attribute ` + ("`" + `%s`)))) + ((("`" + (`. Did you mean ` + "`")) + (`%s` + ("`" + `?%s", name, correctName, getStackAddendum()), 20914 warnedProperties[name] = !0, !0; 20915 } 20916 if (rARIA.test(name)) { 20917 var lowerCasedName = name.toLowerCase(), standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null; 20918 if (null == standardName) return warnedProperties[name] = !0, !1; 20919 if (name !== standardName) return warning(!1, "Unknown ARIA attribute `))) + (("`" + (`%s` + "`")) + (`. Did you mean ` + ("`" + `%s`))))) + (((("`" + (`?%s", name, standardName, getStackAddendum()), 20920 warnedProperties[name] = !0, !0; 20921 } 20922 return !0; 20923 } 20924 function warnInvalidARIAProps(type, props) { 20925 var invalidProps = []; 20926 for (var key in props) { 20927 validateProperty(type, key) || invalidProps.push(key); 20928 } 20929 var unknownPropString = invalidProps.map(function(prop) { 20930 return "` + "`")) + (`" + prop + "` + ("`" + `"; 20931 }).join(", "); 20932 1 === invalidProps.length ? warning(!1, "Invalid aria prop %s on <%s> tag. For details, see https://fb.me/无效的aria prop%s“,unknownPropstring,type,getStackEngagement()):invalidProps.length>1&&warning(!1,“标记<%s>上的aria props%s无效。有关详细信息,请参阅https://fb.me/invalid aria prop%s“,unknownPropstring,type,getStackEngagement()); 20933 } 20934 function validateProperties(type, props) { 20935 isCustomComponent(type, props) || warnInvalidARIAProps(type, props); 20936 } 20937 function getStackAddendum$1() { 20938 var stack = ReactDebugCurrentFrame.getStackAddendum(); 20939 return null != stack ? stack : ""; 20940 } 20941 function validateProperties$1(type, props) { 20942 "input" !== type && "textarea" !== type && "select" !== type || null == props || null !== props.value || didWarnValueNull || (didWarnValueNull = !0, 20943 "select" === type && props.multiple ? warning(!1, "`))) + (("`" + (`value` + "`")) + (` prop on ` + ("`" + `%s`)))) + ((("`" + (` should not be null. Consider using an empty array when ` + "`")) + (`multiple` + ("`" + ` is set to `))) + (("`" + (`true` + "`")) + ((` to clear the component or ` + "`") + (`undefined` + "`"))))))) + ((((((` for uncontrolled components.%s", type, getStackAddendum$1()) : warning(!1, "` + ("`" + `value`)) + ("`" + (` prop on ` + "`"))) + ((`%s` + ("`" + ` should not be null. Consider using an empty string to clear the component or `)) + ("`" + (`undefined` + "`")))) + (((` for uncontrolled components.%s", type, getStackAddendum$1())); 20944 } 20945 function getStackAddendum$2() { 20946 var stack = ReactDebugCurrentFrame.getStackAddendum(); 20947 return null != stack ? stack : ""; 20948 } 20949 function validateProperties$2(type, props, canUseEventSystem) { 20950 isCustomComponent(type, props) || warnUnknownProperties(type, props, canUseEventSystem); 20951 } 20952 function ensureListeningTo(rootContainerElement, registrationName) { 20953 listenTo(registrationName, rootContainerElement.nodeType === DOCUMENT_NODE || rootContainerElement.nodeType === DOCUMENT_FRAGMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument); 20954 } 20955 function getOwnerDocumentFromRootContainer(rootContainerElement) { 20956 return rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument; 20957 } 20958 function trapClickOnNonInteractiveElement(node) { 20959 node.onclick = emptyFunction; 20960 } 20961 function setInitialDOMProperties(tag, domElement, rootContainerElement, nextProps, isCustomComponentTag) { 20962 for (var propKey in nextProps) if (nextProps.hasOwnProperty(propKey)) { 20963 var nextProp = nextProps[propKey]; 20964 if (propKey === STYLE) nextProp && Object.freeze(nextProp), setValueForStyles(domElement, nextProp, getStack); else if (propKey === DANGEROUSLY_SET_INNER_HTML) { 20965 var nextHtml = nextProp ? nextProp[HTML] : void 0; 20966 null != nextHtml && setInnerHTML(domElement, nextHtml); 20967 } else if (propKey === CHILDREN) if ("string" == typeof nextProp) { 20968 var canSetTextContent = "textarea" !== tag || "" !== nextProp; 20969 canSetTextContent && setTextContent(domElement, nextProp); 20970 } else "number" == typeof nextProp && setTextContent(domElement, "" + nextProp); else propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1 || propKey === AUTOFOCUS || (registrationNameModules.hasOwnProperty(propKey) ? null != nextProp && ("function" != typeof nextProp && warnForInvalidEventListener(propKey, nextProp), 20971 ensureListeningTo(rootContainerElement, propKey)) : null != nextProp && setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag)); 20972 } 20973 } 20974 function updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) { 20975 for (var i = 0; i < updatePayload.length; i += 2) { 20976 var propKey = updatePayload[i], propValue = updatePayload[i + 1]; 20977 propKey === STYLE ? setValueForStyles(domElement, propValue, getStack) : propKey === DANGEROUSLY_SET_INNER_HTML ? setInnerHTML(domElement, propValue) : propKey === CHILDREN ? setTextContent(domElement, propValue) : setValueForProperty(domElement, propKey, propValue, isCustomComponentTag); 20978 } 20979 } 20980 function createElement$1(type, props, rootContainerElement, parentNamespace) { 20981 var isCustomComponentTag = void 0, ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement), domElement = void 0, namespaceURI = parentNamespace; 20982 if (namespaceURI === HTML_NAMESPACE && (namespaceURI = getIntrinsicNamespace(type)), 20983 namespaceURI === HTML_NAMESPACE) if ((isCustomComponentTag = isCustomComponent(type, props)) || type === type.toLowerCase() || warning(!1, "<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.", type), 20984 "script" === type) { 20985 var div = ownerDocument.createElement("div"); 20986 div.innerHTML = "<script><\/script>"; 20987 var firstChild = div.firstChild; 20988 domElement = div.removeChild(firstChild); 20989 } else domElement = "string" == typeof props.is ? ownerDocument.createElement(type, { 20990 is: props.is 20991 }) : ownerDocument.createElement(type); else domElement = ownerDocument.createElementNS(namespaceURI, type); 20992 return namespaceURI === HTML_NAMESPACE && (isCustomComponentTag || "[object HTMLUnknownElement]" !== Object.prototype.toString.call(domElement) || Object.prototype.hasOwnProperty.call(warnedUnknownTags, type) || (warnedUnknownTags[type] = !0, 20993 warning(!1, "The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.", type))), 20994 domElement; 20995 } 20996 function createTextNode$1(text, rootContainerElement) { 20997 return getOwnerDocumentFromRootContainer(rootContainerElement).createTextNode(text); 20998 } 20999 function setInitialProperties$1(domElement, tag, rawProps, rootContainerElement) { 21000 var isCustomComponentTag = isCustomComponent(tag, rawProps); 21001 validatePropertiesInDevelopment(tag, rawProps), isCustomComponentTag && !didWarnShadyDOM && domElement.shadyRoot && (warning(!1, "%s is using shady DOM. Using shady DOM with React can cause things to break subtly.", getCurrentFiberOwnerName$2() || "A component"), 21002 didWarnShadyDOM = !0); 21003 var props = void 0; 21004 switch (tag) { 21005 case "iframe": 21006 case "object": 21007 trapBubbledEvent(TOP_LOAD, domElement), props = rawProps; 21008 break; 21009 21010 case "video": 21011 case "audio": 21012 for (var i = 0; i < mediaEventTypes.length; i++) trapBubbledEvent(mediaEventTypes[i], domElement); 21013 props = rawProps; 21014 break; 21015 21016 case "source": 21017 trapBubbledEvent(TOP_ERROR, domElement), props = rawProps; 21018 break; 21019 21020 case "img": 21021 case "image": 21022 case "link": 21023 trapBubbledEvent(TOP_ERROR, domElement), trapBubbledEvent(TOP_LOAD, domElement), 21024 props = rawProps; 21025 break; 21026 21027 case "form": 21028 trapBubbledEvent(TOP_RESET, domElement), trapBubbledEvent(TOP_SUBMIT, domElement), 21029 props = rawProps; 21030 break; 21031 21032 case "details": 21033 trapBubbledEvent(TOP_TOGGLE, domElement), props = rawProps; 21034 break; 21035 21036 case "input": 21037 initWrapperState(domElement, rawProps), props = getHostProps(domElement, rawProps), 21038 trapBubbledEvent(TOP_INVALID, domElement), ensureListeningTo(rootContainerElement, "onChange"); 21039 break; 21040 21041 case "option": 21042 validateProps(domElement, rawProps), props = getHostProps$1(domElement, rawProps); 21043 break; 21044 21045 case "select": 21046 initWrapperState$1(domElement, rawProps), props = getHostProps$2(domElement, rawProps), 21047 trapBubbledEvent(TOP_INVALID, domElement), ensureListeningTo(rootContainerElement, "onChange"); 21048 break; 21049 21050 case "textarea": 21051 initWrapperState$2(domElement, rawProps), props = getHostProps$3(domElement, rawProps), 21052 trapBubbledEvent(TOP_INVALID, domElement), ensureListeningTo(rootContainerElement, "onChange"); 21053 break; 21054 21055 default: 21056 props = rawProps; 21057 } 21058 switch (assertValidProps(tag, props, getStack), setInitialDOMProperties(tag, domElement, rootContainerElement, props, isCustomComponentTag), 21059 tag) { 21060 case "input": 21061 track(domElement), postMountWrapper(domElement, rawProps); 21062 break; 21063 21064 case "textarea": 21065 track(domElement), postMountWrapper$3(domElement, rawProps); 21066 break; 21067 21068 case "option": 21069 postMountWrapper$1(domElement, rawProps); 21070 break; 21071 21072 case "select": 21073 postMountWrapper$2(domElement, rawProps); 21074 break; 21075 21076 default: 21077 "function" == typeof props.onClick && trapClickOnNonInteractiveElement(domElement); 21078 } 21079 } 21080 function diffProperties$1(domElement, tag, lastRawProps, nextRawProps, rootContainerElement) { 21081 validatePropertiesInDevelopment(tag, nextRawProps); 21082 var updatePayload = null, lastProps = void 0, nextProps = void 0; 21083 switch (tag) { 21084 case "input": 21085 lastProps = getHostProps(domElement, lastRawProps), nextProps = getHostProps(domElement, nextRawProps), 21086 updatePayload = []; 21087 break; 21088 21089 case "option": 21090 lastProps = getHostProps$1(domElement, lastRawProps), nextProps = getHostProps$1(domElement, nextRawProps), 21091 updatePayload = []; 21092 break; 21093 21094 case "select": 21095 lastProps = getHostProps$2(domElement, lastRawProps), nextProps = getHostProps$2(domElement, nextRawProps), 21096 updatePayload = []; 21097 break; 21098 21099 case "textarea": 21100 lastProps = getHostProps$3(domElement, lastRawProps), nextProps = getHostProps$3(domElement, nextRawProps), 21101 updatePayload = []; 21102 break; 21103 21104 default: 21105 lastProps = lastRawProps, nextProps = nextRawProps, "function" != typeof lastProps.onClick && "function" == typeof nextProps.onClick && trapClickOnNonInteractiveElement(domElement); 21106 } 21107 assertValidProps(tag, nextProps, getStack); 21108 var propKey = void 0, styleName = void 0, styleUpdates = null; 21109 for (propKey in lastProps) if (!nextProps.hasOwnProperty(propKey) && lastProps.hasOwnProperty(propKey) && null != lastProps[propKey]) if (propKey === STYLE) { 21110 var lastStyle = lastProps[propKey]; 21111 for (styleName in lastStyle) lastStyle.hasOwnProperty(styleName) && (styleUpdates || (styleUpdates = {}), 21112 styleUpdates[styleName] = ""); 21113 } else propKey === DANGEROUSLY_SET_INNER_HTML || propKey === CHILDREN || propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1 || propKey === AUTOFOCUS || (registrationNameModules.hasOwnProperty(propKey) ? updatePayload || (updatePayload = []) : (updatePayload = updatePayload || []).push(propKey, null)); 21114 for (propKey in nextProps) { 21115 var nextProp = nextProps[propKey], lastProp = null != lastProps ? lastProps[propKey] : void 0; 21116 if (nextProps.hasOwnProperty(propKey) && nextProp !== lastProp && (null != nextProp || null != lastProp)) if (propKey === STYLE) if (nextProp && Object.freeze(nextProp), 21117 lastProp) { 21118 for (styleName in lastProp) !lastProp.hasOwnProperty(styleName) || nextProp && nextProp.hasOwnProperty(styleName) || (styleUpdates || (styleUpdates = {}), 21119 styleUpdates[styleName] = ""); 21120 for (styleName in nextProp) nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName] && (styleUpdates || (styleUpdates = {}), 21121 styleUpdates[styleName] = nextProp[styleName]); 21122 } else styleUpdates || (updatePayload || (updatePayload = []), updatePayload.push(propKey, styleUpdates)), 21123 styleUpdates = nextProp; else if (propKey === DANGEROUSLY_SET_INNER_HTML) { 21124 var nextHtml = nextProp ? nextProp[HTML] : void 0, lastHtml = lastProp ? lastProp[HTML] : void 0; 21125 null != nextHtml && lastHtml !== nextHtml && (updatePayload = updatePayload || []).push(propKey, "" + nextHtml); 21126 } else propKey === CHILDREN ? lastProp === nextProp || "string" != typeof nextProp && "number" != typeof nextProp || (updatePayload = updatePayload || []).push(propKey, "" + nextProp) : propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1 || (registrationNameModules.hasOwnProperty(propKey) ? (null != nextProp && ("function" != typeof nextProp && warnForInvalidEventListener(propKey, nextProp), 21127 ensureListeningTo(rootContainerElement, propKey)), updatePayload || lastProp === nextProp || (updatePayload = [])) : (updatePayload = updatePayload || []).push(propKey, nextProp)); 21128 } 21129 return styleUpdates && (updatePayload = updatePayload || []).push(STYLE, styleUpdates), 21130 updatePayload; 21131 } 21132 function updateProperties$1(domElement, updatePayload, tag, lastRawProps, nextRawProps) { 21133 switch ("input" === tag && "radio" === nextRawProps.type && null != nextRawProps.name && updateChecked(domElement, nextRawProps), 21134 updateDOMProperties(domElement, updatePayload, isCustomComponent(tag, lastRawProps), isCustomComponent(tag, nextRawProps)), 21135 tag) { 21136 case "input": 21137 updateWrapper(domElement, nextRawProps); 21138 break; 21139 21140 case "textarea": 21141 updateWrapper$1(domElement, nextRawProps); 21142 break; 21143 21144 case "select": 21145 postUpdateWrapper(domElement, nextRawProps); 21146 } 21147 } 21148 function getPossibleStandardName(propName) { 21149 var lowerCasedName = propName.toLowerCase(); 21150 return possibleStandardNames.hasOwnProperty(lowerCasedName) ? possibleStandardNames[lowerCasedName] || null : null; 21151 } 21152 function diffHydratedProperties$1(domElement, tag, rawProps, parentNamespace, rootContainerElement) { 21153 var isCustomComponentTag = void 0, extraAttributeNames = void 0; 21154 switch (suppressHydrationWarning = !0 === rawProps[SUPPRESS_HYDRATION_WARNING$1], 21155 isCustomComponentTag = isCustomComponent(tag, rawProps), validatePropertiesInDevelopment(tag, rawProps), 21156 isCustomComponentTag && !didWarnShadyDOM && domElement.shadyRoot && (warning(!1, "%s is using shady DOM. Using shady DOM with React can cause things to break subtly.", getCurrentFiberOwnerName$2() || "A component"), 21157 didWarnShadyDOM = !0), tag) { 21158 case "iframe": 21159 case "object": 21160 trapBubbledEvent(TOP_LOAD, domElement); 21161 break; 21162 21163 case "video": 21164 case "audio": 21165 for (var i = 0; i < mediaEventTypes.length; i++) trapBubbledEvent(mediaEventTypes[i], domElement); 21166 break; 21167 21168 case "source": 21169 trapBubbledEvent(TOP_ERROR, domElement); 21170 break; 21171 21172 case "img": 21173 case "image": 21174 case "link": 21175 trapBubbledEvent(TOP_ERROR, domElement), trapBubbledEvent(TOP_LOAD, domElement); 21176 break; 21177 21178 case "form": 21179 trapBubbledEvent(TOP_RESET, domElement), trapBubbledEvent(TOP_SUBMIT, domElement); 21180 break; 21181 21182 case "details": 21183 trapBubbledEvent(TOP_TOGGLE, domElement); 21184 break; 21185 21186 case "input": 21187 initWrapperState(domElement, rawProps), trapBubbledEvent(TOP_INVALID, domElement), 21188 ensureListeningTo(rootContainerElement, "onChange"); 21189 break; 21190 21191 case "option": 21192 validateProps(domElement, rawProps); 21193 break; 21194 21195 case "select": 21196 initWrapperState$1(domElement, rawProps), trapBubbledEvent(TOP_INVALID, domElement), 21197 ensureListeningTo(rootContainerElement, "onChange"); 21198 break; 21199 21200 case "textarea": 21201 initWrapperState$2(domElement, rawProps), trapBubbledEvent(TOP_INVALID, domElement), 21202 ensureListeningTo(rootContainerElement, "onChange"); 21203 } 21204 assertValidProps(tag, rawProps, getStack), extraAttributeNames = new Set(); 21205 for (var attributes = domElement.attributes, _i = 0; _i < attributes.length; _i++) { 21206 switch (attributes[_i].name.toLowerCase()) { 21207 case "data-reactroot": 21208 case "value": 21209 case "checked": 21210 case "selected": 21211 break; 21212 21213 default: 21214 extraAttributeNames.add(attributes[_i].name); 21215 } 21216 } 21217 var updatePayload = null; 21218 for (var propKey in rawProps) if (rawProps.hasOwnProperty(propKey)) { 21219 var nextProp = rawProps[propKey]; 21220 if (propKey === CHILDREN) "string" == typeof nextProp ? domElement.textContent !== nextProp && (suppressHydrationWarning || warnForTextDifference(domElement.textContent, nextProp), 21221 updatePayload = [ CHILDREN, nextProp ]) : "number" == typeof nextProp && domElement.textContent !== "" + nextProp && (suppressHydrationWarning || warnForTextDifference(domElement.textContent, nextProp), 21222 updatePayload = [ CHILDREN, "" + nextProp ]); else if (registrationNameModules.hasOwnProperty(propKey)) null != nextProp && ("function" != typeof nextProp && warnForInvalidEventListener(propKey, nextProp), 21223 ensureListeningTo(rootContainerElement, propKey)); else if ("boolean" == typeof isCustomComponentTag) { 21224 var serverValue = void 0, propertyInfo = getPropertyInfo(propKey); 21225 if (suppressHydrationWarning) ; else if (propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1 || "value" === propKey || "checked" === propKey || "selected" === propKey) ; else if (propKey === DANGEROUSLY_SET_INNER_HTML) { 21226 var rawHtml = nextProp ? nextProp[HTML] || "" : "", serverHTML = domElement.innerHTML, expectedHTML = normalizeHTML(domElement, rawHtml); 21227 expectedHTML !== serverHTML && warnForPropDifference(propKey, serverHTML, expectedHTML); 21228 } else if (propKey === STYLE) { 21229 extraAttributeNames.delete(propKey); 21230 var expectedStyle = createDangerousStringForStyles(nextProp); 21231 serverValue = domElement.getAttribute("style"), expectedStyle !== serverValue && warnForPropDifference(propKey, serverValue, expectedStyle); 21232 } else if (isCustomComponentTag) extraAttributeNames.delete(propKey.toLowerCase()), 21233 serverValue = getValueForAttribute(domElement, propKey, nextProp), nextProp !== serverValue && warnForPropDifference(propKey, serverValue, nextProp); else if (!shouldIgnoreAttribute(propKey, propertyInfo, isCustomComponentTag) && !shouldRemoveAttribute(propKey, nextProp, propertyInfo, isCustomComponentTag)) { 21234 var isMismatchDueToBadCasing = !1; 21235 if (null !== propertyInfo) extraAttributeNames.delete(propertyInfo.attributeName), 21236 serverValue = getValueForProperty(domElement, propKey, nextProp, propertyInfo); else { 21237 var ownNamespace = parentNamespace; 21238 if (ownNamespace === HTML_NAMESPACE && (ownNamespace = getIntrinsicNamespace(tag)), 21239 ownNamespace === HTML_NAMESPACE) extraAttributeNames.delete(propKey.toLowerCase()); else { 21240 var standardName = getPossibleStandardName(propKey); 21241 null !== standardName && standardName !== propKey && (isMismatchDueToBadCasing = !0, 21242 extraAttributeNames.delete(standardName)), extraAttributeNames.delete(propKey); 21243 } 21244 serverValue = getValueForAttribute(domElement, propKey, nextProp); 21245 } 21246 nextProp === serverValue || isMismatchDueToBadCasing || warnForPropDifference(propKey, serverValue, nextProp); 21247 } 21248 } 21249 } 21250 switch (extraAttributeNames.size > 0 && !suppressHydrationWarning && warnForExtraAttributes(extraAttributeNames), 21251 tag) { 21252 case "input": 21253 track(domElement), postMountWrapper(domElement, rawProps); 21254 break; 21255 21256 case "textarea": 21257 track(domElement), postMountWrapper$3(domElement, rawProps); 21258 break; 21259 21260 case "select": 21261 case "option": 21262 break; 21263 21264 default: 21265 "function" == typeof rawProps.onClick && trapClickOnNonInteractiveElement(domElement); 21266 } 21267 return updatePayload; 21268 } 21269 function diffHydratedText$1(textNode, text) { 21270 return textNode.nodeValue !== text; 21271 } 21272 function warnForUnmatchedText$1(textNode, text) { 21273 warnForTextDifference(textNode.nodeValue, text); 21274 } 21275 function warnForDeletedHydratableElement$1(parentNode, child) { 21276 didWarnInvalidHydration || (didWarnInvalidHydration = !0, warning(!1, "Did not expect server HTML to contain a <%s> in <%s>.", child.nodeName.toLowerCase(), parentNode.nodeName.toLowerCase())); 21277 } 21278 function warnForDeletedHydratableText$1(parentNode, child) { 21279 didWarnInvalidHydration || (didWarnInvalidHydration = !0, warning(!1, 'Did not expect server HTML to contain the text node "%s" in <%s>.', child.nodeValue, parentNode.nodeName.toLowerCase())); 21280 } 21281 function warnForInsertedHydratedElement$1(parentNode, tag, props) { 21282 didWarnInvalidHydration || (didWarnInvalidHydration = !0, warning(!1, "Expected server HTML to contain a matching <%s> in <%s>.", tag, parentNode.nodeName.toLowerCase())); 21283 } 21284 function warnForInsertedHydratedText$1(parentNode, text) { 21285 "" !== text && (didWarnInvalidHydration || (didWarnInvalidHydration = !0, warning(!1, 'Expected server HTML to contain a matching text node for "%s" in <%s>.', text, parentNode.nodeName.toLowerCase()))); 21286 } 21287 function restoreControlledState$1(domElement, tag, props) { 21288 switch (tag) { 21289 case "input": 21290 return void restoreControlledState(domElement, props); 21291 21292 case "textarea": 21293 return void restoreControlledState$3(domElement, props); 21294 21295 case "select": 21296 return void restoreControlledState$2(domElement, props); 21297 } 21298 } 21299 function shim() { 21300 invariant(!1, "The current renderer does not support persistence. This error is likely caused by a bug in React. Please file an issue."); 21301 } 21302 function shouldAutoFocusHostComponent(type, props) { 21303 switch (type) { 21304 case "button": 21305 case "input": 21306 case "select": 21307 case "textarea": 21308 return !!props.autoFocus; 21309 } 21310 return !1; 21311 } 21312 function getRootHostContext(rootContainerInstance) { 21313 var type = void 0, namespace = void 0, nodeType = rootContainerInstance.nodeType; 21314 switch (nodeType) { 21315 case DOCUMENT_NODE: 21316 case DOCUMENT_FRAGMENT_NODE: 21317 type = nodeType === DOCUMENT_NODE ? "#document" : "#fragment"; 21318 var root = rootContainerInstance.documentElement; 21319 namespace = root ? root.namespaceURI : getChildNamespace(null, ""); 21320 break; 21321 21322 default: 21323 var container = nodeType === COMMENT_NODE ? rootContainerInstance.parentNode : rootContainerInstance, ownNamespace = container.namespaceURI || null; 21324 type = container.tagName, namespace = getChildNamespace(ownNamespace, type); 21325 } 21326 var validatedTag = type.toLowerCase(); 21327 return { 21328 namespace: namespace, 21329 ancestorInfo: updatedAncestorInfo(null, validatedTag, null) 21330 }; 21331 } 21332 function getChildHostContext(parentHostContext, type, rootContainerInstance) { 21333 var parentHostContextDev = parentHostContext; 21334 return { 21335 namespace: getChildNamespace(parentHostContextDev.namespace, type), 21336 ancestorInfo: updatedAncestorInfo(parentHostContextDev.ancestorInfo, type, null) 21337 }; 21338 } 21339 function getPublicInstance(instance) { 21340 return instance; 21341 } 21342 function prepareForCommit(containerInfo) { 21343 eventsEnabled = isEnabled(), selectionInformation = getSelectionInformation(), setEnabled(!1); 21344 } 21345 function resetAfterCommit(containerInfo) { 21346 restoreSelection(selectionInformation), selectionInformation = null, setEnabled(eventsEnabled), 21347 eventsEnabled = null; 21348 } 21349 function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) { 21350 var parentNamespace = void 0, hostContextDev = hostContext; 21351 if (validateDOMNesting$1(type, null, hostContextDev.ancestorInfo), "string" == typeof props.children || "number" == typeof props.children) { 21352 var string = "" + props.children, ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type, null); 21353 validateDOMNesting$1(null, string, ownAncestorInfo); 21354 } 21355 parentNamespace = hostContextDev.namespace; 21356 var domElement = createElement(type, props, rootContainerInstance, parentNamespace); 21357 return precacheFiberNode$1(internalInstanceHandle, domElement), updateFiberProps$1(domElement, props), 21358 domElement; 21359 } 21360 function appendInitialChild(parentInstance, child) { 21361 parentInstance.appendChild(child); 21362 } 21363 function finalizeInitialChildren(domElement, type, props, rootContainerInstance, hostContext) { 21364 return setInitialProperties(domElement, type, props, rootContainerInstance), shouldAutoFocusHostComponent(type, props); 21365 } 21366 function prepareUpdate(domElement, type, oldProps, newProps, rootContainerInstance, hostContext) { 21367 var hostContextDev = hostContext; 21368 if (typeof newProps.children != typeof oldProps.children && ("string" == typeof newProps.children || "number" == typeof newProps.children)) { 21369 var string = "" + newProps.children, ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type, null); 21370 validateDOMNesting$1(null, string, ownAncestorInfo); 21371 } 21372 return diffProperties(domElement, type, oldProps, newProps, rootContainerInstance); 21373 } 21374 function shouldSetTextContent(type, props) { 21375 return "textarea" === type || "string" == typeof props.children || "number" == typeof props.children || "object" == typeof props.dangerouslySetInnerHTML && null !== props.dangerouslySetInnerHTML && "string" == typeof props.dangerouslySetInnerHTML.__html; 21376 } 21377 function shouldDeprioritizeSubtree(type, props) { 21378 return !!props.hidden; 21379 } 21380 function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) { 21381 validateDOMNesting$1(null, text, hostContext.ancestorInfo); 21382 var textNode = createTextNode(text, rootContainerInstance); 21383 return precacheFiberNode$1(internalInstanceHandle, textNode), textNode; 21384 } 21385 function commitMount(domElement, type, newProps, internalInstanceHandle) { 21386 shouldAutoFocusHostComponent(type, newProps) && domElement.focus(); 21387 } 21388 function commitUpdate(domElement, updatePayload, type, oldProps, newProps, internalInstanceHandle) { 21389 updateFiberProps$1(domElement, newProps), updateProperties(domElement, updatePayload, type, oldProps, newProps); 21390 } 21391 function resetTextContent(domElement) { 21392 setTextContent(domElement, ""); 21393 } 21394 function commitTextUpdate(textInstance, oldText, newText) { 21395 textInstance.nodeValue = newText; 21396 } 21397 function appendChild(parentInstance, child) { 21398 parentInstance.appendChild(child); 21399 } 21400 function appendChildToContainer(container, child) { 21401 container.nodeType === COMMENT_NODE ? container.parentNode.insertBefore(child, container) : container.appendChild(child); 21402 } 21403 function insertBefore(parentInstance, child, beforeChild) { 21404 parentInstance.insertBefore(child, beforeChild); 21405 } 21406 function insertInContainerBefore(container, child, beforeChild) { 21407 container.nodeType === COMMENT_NODE ? container.parentNode.insertBefore(child, beforeChild) : container.insertBefore(child, beforeChild); 21408 } 21409 function removeChild(parentInstance, child) { 21410 parentInstance.removeChild(child); 21411 } 21412 function removeChildFromContainer(container, child) { 21413 container.nodeType === COMMENT_NODE ? container.parentNode.removeChild(child) : container.removeChild(child); 21414 } 21415 function canHydrateInstance(instance, type, props) { 21416 return instance.nodeType !== ELEMENT_NODE || type.toLowerCase() !== instance.nodeName.toLowerCase() ? null : instance; 21417 } 21418 function canHydrateTextInstance(instance, text) { 21419 return "" === text || instance.nodeType !== TEXT_NODE ? null : instance; 21420 } 21421 function getNextHydratableSibling(instance) { 21422 for (var node = instance.nextSibling; node && node.nodeType !== ELEMENT_NODE && node.nodeType !== TEXT_NODE; ) node = node.nextSibling; 21423 return node; 21424 } 21425 function getFirstHydratableChild(parentInstance) { 21426 for (var next = parentInstance.firstChild; next && next.nodeType !== ELEMENT_NODE && next.nodeType !== TEXT_NODE; ) next = next.nextSibling; 21427 return next; 21428 } 21429 function hydrateInstance(instance, type, props, rootContainerInstance, hostContext, internalInstanceHandle) { 21430 precacheFiberNode$1(internalInstanceHandle, instance), updateFiberProps$1(instance, props); 21431 var parentNamespace = void 0; 21432 return parentNamespace = hostContext.namespace, diffHydratedProperties(instance, type, props, parentNamespace, rootContainerInstance); 21433 } 21434 function hydrateTextInstance(textInstance, text, internalInstanceHandle) { 21435 return precacheFiberNode$1(internalInstanceHandle, textInstance), diffHydratedText(textInstance, text); 21436 } 21437 function didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, text) { 21438 warnForUnmatchedText(textInstance, text); 21439 } 21440 function didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, text) { 21441 !0 !== parentProps[SUPPRESS_HYDRATION_WARNING] && warnForUnmatchedText(textInstance, text); 21442 } 21443 function didNotHydrateContainerInstance(parentContainer, instance) { 21444 1 === instance.nodeType ? warnForDeletedHydratableElement(parentContainer, instance) : warnForDeletedHydratableText(parentContainer, instance); 21445 } 21446 function didNotHydrateInstance(parentType, parentProps, parentInstance, instance) { 21447 !0 !== parentProps[SUPPRESS_HYDRATION_WARNING] && (1 === instance.nodeType ? warnForDeletedHydratableElement(parentInstance, instance) : warnForDeletedHydratableText(parentInstance, instance)); 21448 } 21449 function didNotFindHydratableContainerInstance(parentContainer, type, props) { 21450 warnForInsertedHydratedElement(parentContainer, type, props); 21451 } 21452 function didNotFindHydratableContainerTextInstance(parentContainer, text) { 21453 warnForInsertedHydratedText(parentContainer, text); 21454 } 21455 function didNotFindHydratableInstance(parentType, parentProps, parentInstance, type, props) { 21456 !0 !== parentProps[SUPPRESS_HYDRATION_WARNING] && warnForInsertedHydratedElement(parentInstance, type, props); 21457 } 21458 function didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, text) { 21459 !0 !== parentProps[SUPPRESS_HYDRATION_WARNING] && warnForInsertedHydratedText(parentInstance, text); 21460 } 21461 function recordEffect() { 21462 enableUserTimingAPI && effectCountInCurrentCommit++; 21463 } 21464 function recordScheduleUpdate() { 21465 enableUserTimingAPI && (isCommitting && (hasScheduledUpdateInCurrentCommit = !0), 21466 null !== currentPhase && "componentWillMount" !== currentPhase && "componentWillReceiveProps" !== currentPhase && (hasScheduledUpdateInCurrentPhase = !0)); 21467 } 21468 function startRequestCallbackTimer() { 21469 enableUserTimingAPI && supportsUserTiming && !isWaitingForCallback && (isWaitingForCallback = !0, 21470 beginMark("(Waiting for async callback...)")); 21471 } 21472 function stopRequestCallbackTimer(didExpire, expirationTime) { 21473 if (enableUserTimingAPI && supportsUserTiming) { 21474 isWaitingForCallback = !1; 21475 endMark("(Waiting for async callback... will force flush in " + expirationTime + " ms)", "(Waiting for async callback...)", didExpire ? "React was blocked by main thread" : null); 21476 } 21477 } 21478 function startWorkTimer(fiber) { 21479 if (enableUserTimingAPI) { 21480 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) return; 21481 if (currentFiber = fiber, !beginFiberMark(fiber, null)) return; 21482 fiber._debugIsCurrentlyTiming = !0; 21483 } 21484 } 21485 function cancelWorkTimer(fiber) { 21486 if (enableUserTimingAPI) { 21487 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) return; 21488 fiber._debugIsCurrentlyTiming = !1, clearFiberMark(fiber, null); 21489 } 21490 } 21491 function stopWorkTimer(fiber) { 21492 if (enableUserTimingAPI) { 21493 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) return; 21494 if (currentFiber = fiber.return, !fiber._debugIsCurrentlyTiming) return; 21495 fiber._debugIsCurrentlyTiming = !1, endFiberMark(fiber, null, null); 21496 } 21497 } 21498 function stopFailedWorkTimer(fiber) { 21499 if (enableUserTimingAPI) { 21500 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) return; 21501 if (currentFiber = fiber.return, !fiber._debugIsCurrentlyTiming) return; 21502 fiber._debugIsCurrentlyTiming = !1; 21503 endFiberMark(fiber, null, "An error was thrown inside this error boundary"); 21504 } 21505 } 21506 function startPhaseTimer(fiber, phase) { 21507 if (enableUserTimingAPI) { 21508 if (!supportsUserTiming) return; 21509 if (clearPendingPhaseMeasurement(), !beginFiberMark(fiber, phase)) return; 21510 currentPhaseFiber = fiber, currentPhase = phase; 21511 } 21512 } 21513 function stopPhaseTimer() { 21514 if (enableUserTimingAPI) { 21515 if (!supportsUserTiming) return; 21516 if (null !== currentPhase && null !== currentPhaseFiber) { 21517 endFiberMark(currentPhaseFiber, currentPhase, hasScheduledUpdateInCurrentPhase ? "Scheduled a cascading update" : null); 21518 } 21519 currentPhase = null, currentPhaseFiber = null; 21520 } 21521 } 21522 function startWorkLoopTimer(nextUnitOfWork) { 21523 if (enableUserTimingAPI) { 21524 if (currentFiber = nextUnitOfWork, !supportsUserTiming) return; 21525 commitCountInCurrentWorkLoop = 0, beginMark("(React Tree Reconciliation)"), resumeTimers(); 21526 } 21527 } 21528 function stopWorkLoopTimer(interruptedBy, didCompleteRoot) { 21529 if (enableUserTimingAPI) { 21530 if (!supportsUserTiming) return; 21531 var warning$$1 = null; 21532 if (null !== interruptedBy) if (interruptedBy.tag === HostRoot) warning$$1 = "A top-level update interrupted the previous render"; else { 21533 var componentName = getComponentName(interruptedBy) || "Unknown"; 21534 warning$$1 = "An update to " + componentName + " interrupted the previous render"; 21535 } else commitCountInCurrentWorkLoop > 1 && (warning$$1 = "There were cascading updates"); 21536 commitCountInCurrentWorkLoop = 0; 21537 var label = didCompleteRoot ? "(React Tree Reconciliation: Completed Root)" : "(React Tree Reconciliation: Yielded)"; 21538 pauseTimers(), endMark(label, "(React Tree Reconciliation)", warning$$1); 21539 } 21540 } 21541 function startCommitTimer() { 21542 if (enableUserTimingAPI) { 21543 if (!supportsUserTiming) return; 21544 isCommitting = !0, hasScheduledUpdateInCurrentCommit = !1, labelsInCurrentCommit.clear(), 21545 beginMark("(Committing Changes)"); 21546 } 21547 } 21548 function stopCommitTimer() { 21549 if (enableUserTimingAPI) { 21550 if (!supportsUserTiming) return; 21551 var warning$$1 = null; 21552 hasScheduledUpdateInCurrentCommit ? warning$$1 = "Lifecycle hook scheduled a cascading update" : commitCountInCurrentWorkLoop > 0 && (warning$$1 = "Caused by a cascading update in earlier commit"), 21553 hasScheduledUpdateInCurrentCommit = !1, commitCountInCurrentWorkLoop++, isCommitting = !1, 21554 labelsInCurrentCommit.clear(), endMark("(Committing Changes)", "(Committing Changes)", warning$$1); 21555 } 21556 } 21557 function startCommitSnapshotEffectsTimer() { 21558 if (enableUserTimingAPI) { 21559 if (!supportsUserTiming) return; 21560 effectCountInCurrentCommit = 0, beginMark("(Committing Snapshot Effects)"); 21561 } 21562 } 21563 function stopCommitSnapshotEffectsTimer() { 21564 if (enableUserTimingAPI) { 21565 if (!supportsUserTiming) return; 21566 var count = effectCountInCurrentCommit; 21567 effectCountInCurrentCommit = 0, endMark("(Committing Snapshot Effects: " + count + " Total)", "(Committing Snapshot Effects)", null); 21568 } 21569 } 21570 function startCommitHostEffectsTimer() { 21571 if (enableUserTimingAPI) { 21572 if (!supportsUserTiming) return; 21573 effectCountInCurrentCommit = 0, beginMark("(Committing Host Effects)"); 21574 } 21575 } 21576 function stopCommitHostEffectsTimer() { 21577 if (enableUserTimingAPI) { 21578 if (!supportsUserTiming) return; 21579 var count = effectCountInCurrentCommit; 21580 effectCountInCurrentCommit = 0, endMark("(Committing Host Effects: " + count + " Total)", "(Committing Host Effects)", null); 21581 } 21582 } 21583 function startCommitLifeCyclesTimer() { 21584 if (enableUserTimingAPI) { 21585 if (!supportsUserTiming) return; 21586 effectCountInCurrentCommit = 0, beginMark("(Calling Lifecycle Methods)"); 21587 } 21588 } 21589 function stopCommitLifeCyclesTimer() { 21590 if (enableUserTimingAPI) { 21591 if (!supportsUserTiming) return; 21592 var count = effectCountInCurrentCommit; 21593 effectCountInCurrentCommit = 0, endMark("(Calling Lifecycle Methods: " + count + " Total)", "(Calling Lifecycle Methods)", null); 21594 } 21595 } 21596 function createCursor(defaultValue) { 21597 return { 21598 current: defaultValue 21599 }; 21600 } 21601 function pop(cursor, fiber) { 21602 if (index < 0) return void warning(!1, "Unexpected pop."); 21603 fiber !== fiberStack[index] && warning(!1, "Unexpected Fiber popped."), cursor.current = valueStack[index], 21604 valueStack[index] = null, fiberStack[index] = null, index--; 21605 } 21606 function push(cursor, value, fiber) { 21607 index++, valueStack[index] = cursor.current, fiberStack[index] = fiber, cursor.current = value; 21608 } 21609 function checkThatStackIsEmpty() { 21610 -1 !== index && warning(!1, "Expected an empty stack. Something was not reset properly."); 21611 } 21612 function resetStackAfterFatalErrorInDev() { 21613 index = -1, valueStack.length = 0, fiberStack.length = 0; 21614 } 21615 function getUnmaskedContext(workInProgress) { 21616 return isContextProvider(workInProgress) ? previousContext : contextStackCursor.current; 21617 } 21618 function cacheContext(workInProgress, unmaskedContext, maskedContext) { 21619 var instance = workInProgress.stateNode; 21620 instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext, instance.__reactInternalMemoizedMaskedChildContext = maskedContext; 21621 } 21622 function getMaskedContext(workInProgress, unmaskedContext) { 21623 var type = workInProgress.type, contextTypes = type.contextTypes; 21624 if (!contextTypes) return emptyObject; 21625 var instance = workInProgress.stateNode; 21626 if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) return instance.__reactInternalMemoizedMaskedChildContext; 21627 var context = {}; 21628 for (var key in contextTypes) context[key] = unmaskedContext[key]; 21629 var name = getComponentName(workInProgress) || "Unknown"; 21630 return checkPropTypes(contextTypes, context, "context", name, ReactDebugCurrentFiber.getCurrentFiberStackAddendum), 21631 instance && cacheContext(workInProgress, unmaskedContext, context), context; 21632 } 21633 function hasContextChanged() { 21634 return didPerformWorkStackCursor.current; 21635 } 21636 function isContextConsumer(fiber) { 21637 return fiber.tag === ClassComponent && null != fiber.type.contextTypes; 21638 } 21639 function isContextProvider(fiber) { 21640 return fiber.tag === ClassComponent && null != fiber.type.childContextTypes; 21641 } 21642 function popContextProvider(fiber) { 21643 isContextProvider(fiber) && (pop(didPerformWorkStackCursor, fiber), pop(contextStackCursor, fiber)); 21644 } 21645 function popTopLevelContextObject(fiber) { 21646 pop(didPerformWorkStackCursor, fiber), pop(contextStackCursor, fiber); 21647 } 21648 function pushTopLevelContextObject(fiber, context, didChange) { 21649 contextStackCursor.current !== emptyObject && invariant(!1, "Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue."), 21650 push(contextStackCursor, context, fiber), push(didPerformWorkStackCursor, didChange, fiber); 21651 } 21652 function processChildContext(fiber, parentContext) { 21653 var instance = fiber.stateNode, childContextTypes = fiber.type.childContextTypes; 21654 if ("function" != typeof instance.getChildContext) { 21655 var componentName = getComponentName(fiber) || "Unknown"; 21656 return warnedAboutMissingGetChildContext[componentName] || (warnedAboutMissingGetChildContext[componentName] = !0, 21657 warning(!1, "%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.", componentName, componentName)), 21658 parentContext; 21659 } 21660 var childContext = void 0; 21661 ReactDebugCurrentFiber.setCurrentPhase("getChildContext"), startPhaseTimer(fiber, "getChildContext"), 21662 childContext = instance.getChildContext(), stopPhaseTimer(), ReactDebugCurrentFiber.setCurrentPhase(null); 21663 for (var contextKey in childContext) contextKey in childContextTypes || invariant(!1, '%s.getChildContext(): key "%s" is not defined in childContextTypes.', getComponentName(fiber) || "Unknown", contextKey); 21664 var name = getComponentName(fiber) || "Unknown"; 21665 return checkPropTypes(childContextTypes, childContext, "child context", name, ReactDebugCurrentFiber.getCurrentFiberStackAddendum), 21666 _assign({}, parentContext, childContext); 21667 } 21668 function pushContextProvider(workInProgress) { 21669 if (!isContextProvider(workInProgress)) return !1; 21670 var instance = workInProgress.stateNode, memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyObject; 21671 return previousContext = contextStackCursor.current, push(contextStackCursor, memoizedMergedChildContext, workInProgress), 21672 push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress), 21673 !0; 21674 } 21675 function invalidateContextProvider(workInProgress, didChange) { 21676 var instance = workInProgress.stateNode; 21677 if (instance || invariant(!1, "Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue."), 21678 didChange) { 21679 var mergedContext = processChildContext(workInProgress, previousContext); 21680 instance.__reactInternalMemoizedMergedChildContext = mergedContext, pop(didPerformWorkStackCursor, workInProgress), 21681 pop(contextStackCursor, workInProgress), push(contextStackCursor, mergedContext, workInProgress), 21682 push(didPerformWorkStackCursor, didChange, workInProgress); 21683 } else pop(didPerformWorkStackCursor, workInProgress), push(didPerformWorkStackCursor, didChange, workInProgress); 21684 } 21685 function findCurrentUnmaskedContext(fiber) { 21686 isFiberMounted(fiber) && fiber.tag === ClassComponent || invariant(!1, "Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue."); 21687 for (var node = fiber; node.tag !== HostRoot; ) { 21688 if (isContextProvider(node)) return node.stateNode.__reactInternalMemoizedMergedChildContext; 21689 var parent = node.return; 21690 parent || invariant(!1, "Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue."), 21691 node = parent; 21692 } 21693 return node.stateNode.context; 21694 } 21695 function msToExpirationTime(ms) { 21696 return (ms / UNIT_SIZE | 0) + MAGIC_NUMBER_OFFSET; 21697 } 21698 function expirationTimeToMs(expirationTime) { 21699 return (expirationTime - MAGIC_NUMBER_OFFSET) * UNIT_SIZE; 21700 } 21701 function ceiling(num, precision) { 21702 return (1 + (num / precision | 0)) * precision; 21703 } 21704 function computeExpirationBucket(currentTime, expirationInMs, bucketSizeMs) { 21705 return MAGIC_NUMBER_OFFSET + ceiling(currentTime - MAGIC_NUMBER_OFFSET + expirationInMs / UNIT_SIZE, bucketSizeMs / UNIT_SIZE); 21706 } 21707 function FiberNode(tag, pendingProps, key, mode) { 21708 this.tag = tag, this.key = key, this.type = null, this.stateNode = null, this.return = null, 21709 this.child = null, this.sibling = null, this.index = 0, this.ref = null, this.pendingProps = pendingProps, 21710 this.memoizedProps = null, this.updateQueue = null, this.memoizedState = null, this.mode = mode, 21711 this.effectTag = NoEffect, this.nextEffect = null, this.firstEffect = null, this.lastEffect = null, 21712 this.expirationTime = NoWork, this.alternate = null, enableProfilerTimer && (this.selfBaseTime = 0, 21713 this.treeBaseTime = 0), this._debugID = debugCounter++, this._debugSource = null, 21714 this._debugOwner = null, this._debugIsCurrentlyTiming = !1, hasBadMapPolyfill || "function" != typeof Object.preventExtensions || Object.preventExtensions(this); 21715 } 21716 function shouldConstruct(Component) { 21717 return !(!Component.prototype || !Component.prototype.isReactComponent); 21718 } 21719 function createWorkInProgress(current, pendingProps, expirationTime) { 21720 var workInProgress = current.alternate; 21721 return null === workInProgress ? (workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode), 21722 workInProgress.type = current.type, workInProgress.stateNode = current.stateNode, 21723 workInProgress._debugID = current._debugID, workInProgress._debugSource = current._debugSource, 21724 workInProgress._debugOwner = current._debugOwner, workInProgress.alternate = current, 21725 current.alternate = workInProgress) : (workInProgress.pendingProps = pendingProps, 21726 workInProgress.effectTag = NoEffect, workInProgress.nextEffect = null, workInProgress.firstEffect = null, 21727 workInProgress.lastEffect = null), workInProgress.expirationTime = expirationTime, 21728 workInProgress.child = current.child, workInProgress.memoizedProps = current.memoizedProps, 21729 workInProgress.memoizedState = current.memoizedState, workInProgress.updateQueue = current.updateQueue, 21730 workInProgress.sibling = current.sibling, workInProgress.index = current.index, 21731 workInProgress.ref = current.ref, enableProfilerTimer && (workInProgress.selfBaseTime = current.selfBaseTime, 21732 workInProgress.treeBaseTime = current.treeBaseTime), workInProgress; 21733 } 21734 function createHostRootFiber(isAsync) { 21735 return createFiber(HostRoot, null, null, isAsync ? AsyncMode | StrictMode : NoContext); 21736 } 21737 function createFiberFromElement(element, mode, expirationTime) { 21738 var owner = null; 21739 owner = element._owner; 21740 var fiber = void 0, type = element.type, key = element.key, pendingProps = element.props, fiberTag = void 0; 21741 if ("function" == typeof type) fiberTag = shouldConstruct(type) ? ClassComponent : IndeterminateComponent; else if ("string" == typeof type) fiberTag = HostComponent; else switch (type) { 21742 case REACT_FRAGMENT_TYPE: 21743 return createFiberFromFragment(pendingProps.children, mode, expirationTime, key); 21744 21745 case REACT_ASYNC_MODE_TYPE: 21746 fiberTag = Mode, mode |= AsyncMode | StrictMode; 21747 break; 21748 21749 case REACT_STRICT_MODE_TYPE: 21750 fiberTag = Mode, mode |= StrictMode; 21751 break; 21752 21753 case REACT_PROFILER_TYPE: 21754 return createFiberFromProfiler(pendingProps, mode, expirationTime, key); 21755 21756 case REACT_TIMEOUT_TYPE: 21757 fiberTag = TimeoutComponent, mode |= StrictMode; 21758 break; 21759 21760 default: 21761 fiberTag = getFiberTagFromObjectType(type, owner); 21762 } 21763 return fiber = createFiber(fiberTag, pendingProps, key, mode), fiber.type = type, 21764 fiber.expirationTime = expirationTime, fiber._debugSource = element._source, fiber._debugOwner = element._owner, 21765 fiber; 21766 } 21767 function getFiberTagFromObjectType(type, owner) { 21768 switch ("object" == typeof type && null !== type ? type.$$typeof : null) { 21769 case REACT_PROVIDER_TYPE: 21770 return ContextProvider; 21771 21772 case REACT_CONTEXT_TYPE: 21773 return ContextConsumer; 21774 21775 case REACT_FORWARD_REF_TYPE: 21776 return ForwardRef; 21777 21778 default: 21779 var info = ""; 21780 (void 0 === type || "object" == typeof type && null !== type && 0 === Object.keys(type).length) && (info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); 21781 var ownerName = owner ? getComponentName(owner) : null; 21782 ownerName && (info += "\n\nCheck the render method of ` + ("`" + `" + ownerName + "`)) + ("`" + (`."), invariant(!1, "Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", null == type ? type : typeof type, info); 21783 } 21784 } 21785 function createFiberFromFragment(elements, mode, expirationTime, key) { 21786 var fiber = createFiber(Fragment, elements, key, mode); 21787 return fiber.expirationTime = expirationTime, fiber; 21788 } 21789 function createFiberFromProfiler(pendingProps, mode, expirationTime, key) { 21790 "string" == typeof pendingProps.id && "function" == typeof pendingProps.onRender || invariant(!1, 'Profiler must specify an "id" string and "onRender" function as props'); 21791 var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode); 21792 return fiber.type = REACT_PROFILER_TYPE, fiber.expirationTime = expirationTime, 21793 enableProfilerTimer && (fiber.stateNode = { 21794 elapsedPauseTimeAtStart: 0, 21795 duration: 0, 21796 startTime: 0 21797 }), fiber; 21798 } 21799 function createFiberFromText(content, mode, expirationTime) { 21800 var fiber = createFiber(HostText, content, null, mode); 21801 return fiber.expirationTime = expirationTime, fiber; 21802 } 21803 function createFiberFromHostInstanceForDeletion() { 21804 var fiber = createFiber(HostComponent, null, null, NoContext); 21805 return fiber.type = "DELETED", fiber; 21806 } 21807 function createFiberFromPortal(portal, mode, expirationTime) { 21808 var pendingProps = null !== portal.children ? portal.children : [], fiber = createFiber(HostPortal, pendingProps, portal.key, mode); 21809 return fiber.expirationTime = expirationTime, fiber.stateNode = { 21810 containerInfo: portal.containerInfo, 21811 pendingChildren: null, 21812 implementation: portal.implementation 21813 }, fiber; 21814 } 21815 function assignFiberPropertiesInDEV(target, source) { 21816 return null === target && (target = createFiber(IndeterminateComponent, null, null, NoContext)), 21817 target.tag = source.tag, target.key = source.key, target.type = source.type, target.stateNode = source.stateNode, 21818 target.return = source.return, target.child = source.child, target.sibling = source.sibling, 21819 target.index = source.index, target.ref = source.ref, target.pendingProps = source.pendingProps, 21820 target.memoizedProps = source.memoizedProps, target.updateQueue = source.updateQueue, 21821 target.memoizedState = source.memoizedState, target.mode = source.mode, target.effectTag = source.effectTag, 21822 target.nextEffect = source.nextEffect, target.firstEffect = source.firstEffect, 21823 target.lastEffect = source.lastEffect, target.expirationTime = source.expirationTime, 21824 target.alternate = source.alternate, enableProfilerTimer && (target.selfBaseTime = source.selfBaseTime, 21825 target.treeBaseTime = source.treeBaseTime), target._debugID = source._debugID, target._debugSource = source._debugSource, 21826 target._debugOwner = source._debugOwner, target._debugIsCurrentlyTiming = source._debugIsCurrentlyTiming, 21827 target; 21828 } 21829 function createFiberRoot(containerInfo, isAsync, hydrate) { 21830 var uninitializedFiber = createHostRootFiber(isAsync), root = { 21831 current: uninitializedFiber, 21832 containerInfo: containerInfo, 21833 pendingChildren: null, 21834 earliestPendingTime: NoWork, 21835 latestPendingTime: NoWork, 21836 earliestSuspendedTime: NoWork, 21837 latestSuspendedTime: NoWork, 21838 latestPingedTime: NoWork, 21839 pendingCommitExpirationTime: NoWork, 21840 finishedWork: null, 21841 context: null, 21842 pendingContext: null, 21843 hydrate: hydrate, 21844 remainingExpirationTime: NoWork, 21845 firstBatch: null, 21846 nextScheduledRoot: null 21847 }; 21848 return uninitializedFiber.stateNode = root, root; 21849 } 21850 function catchErrors(fn) { 21851 return function(arg) { 21852 try { 21853 return fn(arg); 21854 } catch (err) { 21855 hasLoggedError || (hasLoggedError = !0, warning(!1, "React DevTools encountered an error: %s", err)); 21856 } 21857 }; 21858 } 21859 function injectInternals(internals) { 21860 if ("undefined" == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; 21861 var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; 21862 if (hook.isDisabled) return !0; 21863 if (!hook.supportsFiber) return warning(!1, "The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://fb.me/react devtools”), 21864 !0; 21865 try { 21866 var rendererID = hook.inject(internals); 21867 onCommitFiberRoot = catchErrors(function(root) { 21868 return hook.onCommitFiberRoot(rendererID, root); 21869 }), onCommitFiberUnmount = catchErrors(function(fiber) { 21870 return hook.onCommitFiberUnmount(rendererID, fiber); 21871 }); 21872 } catch (err) { 21873 warning(!1, "React DevTools encountered an error: %s.", err); 21874 } 21875 return !0; 21876 } 21877 function onCommitRoot(root) { 21878 "function" == typeof onCommitFiberRoot && onCommitFiberRoot(root); 21879 } 21880 function onCommitUnmount(fiber) { 21881 "function" == typeof onCommitFiberUnmount && onCommitFiberUnmount(fiber); 21882 } 21883 function markPendingPriorityLevel(root, expirationTime) { 21884 if (enableSuspense) { 21885 var earliestPendingTime = root.earliestPendingTime; 21886 if (earliestPendingTime === NoWork) root.earliestPendingTime = root.latestPendingTime = expirationTime; else if (earliestPendingTime > expirationTime) root.earliestPendingTime = expirationTime; else { 21887 var latestPendingTime = root.latestPendingTime; 21888 latestPendingTime < expirationTime && (root.latestPendingTime = expirationTime); 21889 } 21890 } 21891 } 21892 function markCommittedPriorityLevels(root, currentTime, earliestRemainingTime) { 21893 if (enableSuspense) { 21894 if (earliestRemainingTime === NoWork) return root.earliestPendingTime = NoWork, 21895 root.latestPendingTime = NoWork, root.earliestSuspendedTime = NoWork, root.latestSuspendedTime = NoWork, 21896 void (root.latestPingedTime = NoWork); 21897 var latestPendingTime = root.latestPendingTime; 21898 if (latestPendingTime !== NoWork) if (latestPendingTime < earliestRemainingTime) root.earliestPendingTime = root.latestPendingTime = NoWork; else { 21899 var earliestPendingTime = root.earliestPendingTime; 21900 earliestPendingTime < earliestRemainingTime && (root.earliestPendingTime = root.latestPendingTime); 21901 } 21902 var earliestSuspendedTime = root.earliestSuspendedTime; 21903 if (earliestSuspendedTime === NoWork) return void markPendingPriorityLevel(root, earliestRemainingTime); 21904 if (earliestRemainingTime > root.latestSuspendedTime) return root.earliestSuspendedTime = NoWork, 21905 root.latestSuspendedTime = NoWork, root.latestPingedTime = NoWork, void markPendingPriorityLevel(root, earliestRemainingTime); 21906 if (earliestRemainingTime < earliestSuspendedTime) return void markPendingPriorityLevel(root, earliestRemainingTime); 21907 } 21908 } 21909 function markSuspendedPriorityLevel(root, suspendedTime) { 21910 if (enableSuspense) { 21911 var earliestPendingTime = root.earliestPendingTime, latestPendingTime = root.latestPendingTime; 21912 earliestPendingTime === suspendedTime ? root.earliestPendingTime = latestPendingTime === suspendedTime ? root.latestPendingTime = NoWork : latestPendingTime : latestPendingTime === suspendedTime && (root.latestPendingTime = earliestPendingTime); 21913 var latestSuspendedTime = root.latestSuspendedTime; 21914 latestSuspendedTime === suspendedTime && (root.latestPingedTime = NoWork); 21915 var earliestSuspendedTime = root.earliestSuspendedTime; 21916 earliestSuspendedTime === NoWork ? root.earliestSuspendedTime = root.latestSuspendedTime = suspendedTime : earliestSuspendedTime > suspendedTime ? root.earliestSuspendedTime = suspendedTime : latestSuspendedTime < suspendedTime && (root.latestSuspendedTime = suspendedTime); 21917 } 21918 } 21919 function markPingedPriorityLevel(root, pingedTime) { 21920 if (enableSuspense) { 21921 var latestSuspendedTime = root.latestSuspendedTime; 21922 if (latestSuspendedTime !== NoWork && latestSuspendedTime <= pingedTime) { 21923 var latestPingedTime = root.latestPingedTime; 21924 (latestPingedTime === NoWork || latestPingedTime < pingedTime) && (root.latestPingedTime = pingedTime); 21925 } 21926 } 21927 } 21928 function findNextPendingPriorityLevel(root) { 21929 if (enableSuspense) { 21930 var earliestSuspendedTime = root.earliestSuspendedTime, earliestPendingTime = root.earliestPendingTime; 21931 return earliestSuspendedTime === NoWork ? earliestPendingTime : earliestPendingTime !== NoWork ? earliestPendingTime : root.latestPingedTime; 21932 } 21933 return root.current.expirationTime; 21934 } 21935 function createUpdateQueue(baseState) { 21936 return { 21937 expirationTime: NoWork, 21938 baseState: baseState, 21939 firstUpdate: null, 21940 lastUpdate: null, 21941 firstCapturedUpdate: null, 21942 lastCapturedUpdate: null, 21943 firstEffect: null, 21944 lastEffect: null, 21945 firstCapturedEffect: null, 21946 lastCapturedEffect: null 21947 }; 21948 } 21949 function cloneUpdateQueue(currentQueue) { 21950 return { 21951 expirationTime: currentQueue.expirationTime, 21952 baseState: currentQueue.baseState, 21953 firstUpdate: currentQueue.firstUpdate, 21954 lastUpdate: currentQueue.lastUpdate, 21955 firstCapturedUpdate: null, 21956 lastCapturedUpdate: null, 21957 firstEffect: null, 21958 lastEffect: null, 21959 firstCapturedEffect: null, 21960 lastCapturedEffect: null 21961 }; 21962 } 21963 function createUpdate(expirationTime) { 21964 return { 21965 expirationTime: expirationTime, 21966 tag: UpdateState, 21967 payload: null, 21968 callback: null, 21969 next: null, 21970 nextEffect: null 21971 }; 21972 } 21973 function appendUpdateToQueue(queue, update, expirationTime) { 21974 null === queue.lastUpdate ? queue.firstUpdate = queue.lastUpdate = update : (queue.lastUpdate.next = update, 21975 queue.lastUpdate = update), (queue.expirationTime === NoWork || queue.expirationTime > expirationTime) && (queue.expirationTime = expirationTime); 21976 } 21977 function enqueueUpdate(fiber, update, expirationTime) { 21978 var alternate = fiber.alternate, queue1 = void 0, queue2 = void 0; 21979 null === alternate ? (queue1 = fiber.updateQueue, queue2 = null, null === queue1 && (queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState))) : (queue1 = fiber.updateQueue, 21980 queue2 = alternate.updateQueue, null === queue1 ? null === queue2 ? (queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState), 21981 queue2 = alternate.updateQueue = createUpdateQueue(alternate.memoizedState)) : queue1 = fiber.updateQueue = cloneUpdateQueue(queue2) : null === queue2 && (queue2 = alternate.updateQueue = cloneUpdateQueue(queue1))), 21982 null === queue2 || queue1 === queue2 ? appendUpdateToQueue(queue1, update, expirationTime) : null === queue1.lastUpdate || null === queue2.lastUpdate ? (appendUpdateToQueue(queue1, update, expirationTime), 21983 appendUpdateToQueue(queue2, update, expirationTime)) : (appendUpdateToQueue(queue1, update, expirationTime), 21984 queue2.lastUpdate = update), fiber.tag !== ClassComponent || currentlyProcessingQueue !== queue1 && (null === queue2 || currentlyProcessingQueue !== queue2) || didWarnUpdateInsideUpdate || (warning(!1, "An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."), 21985 didWarnUpdateInsideUpdate = !0); 21986 } 21987 function enqueueCapturedUpdate(workInProgress, update, renderExpirationTime) { 21988 var workInProgressQueue = workInProgress.updateQueue; 21989 workInProgressQueue = null === workInProgressQueue ? workInProgress.updateQueue = createUpdateQueue(workInProgress.memoizedState) : ensureWorkInProgressQueueIsAClone(workInProgress, workInProgressQueue), 21990 null === workInProgressQueue.lastCapturedUpdate ? workInProgressQueue.firstCapturedUpdate = workInProgressQueue.lastCapturedUpdate = update : (workInProgressQueue.lastCapturedUpdate.next = update, 21991 workInProgressQueue.lastCapturedUpdate = update), (workInProgressQueue.expirationTime === NoWork || workInProgressQueue.expirationTime > renderExpirationTime) && (workInProgressQueue.expirationTime = renderExpirationTime); 21992 } 21993 function ensureWorkInProgressQueueIsAClone(workInProgress, queue) { 21994 var current = workInProgress.alternate; 21995 return null !== current && queue === current.updateQueue && (queue = workInProgress.updateQueue = cloneUpdateQueue(queue)), 21996 queue; 21997 } 21998 function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) { 21999 switch (update.tag) { 22000 case ReplaceState: 22001 var _payload = update.payload; 22002 return "function" == typeof _payload ? ((debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) && _payload.call(instance, prevState, nextProps), 22003 _payload.call(instance, prevState, nextProps)) : _payload; 22004 22005 case CaptureUpdate: 22006 workInProgress.effectTag = workInProgress.effectTag & ~ShouldCapture | DidCapture; 22007 22008 case UpdateState: 22009 var _payload2 = update.payload, partialState = void 0; 22010 return "function" == typeof _payload2 ? ((debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) && _payload2.call(instance, prevState, nextProps), 22011 partialState = _payload2.call(instance, prevState, nextProps)) : partialState = _payload2, 22012 null === partialState || void 0 === partialState ? prevState : _assign({}, prevState, partialState); 22013 22014 case ForceUpdate: 22015 return hasForceUpdate = !0, prevState; 22016 } 22017 return prevState; 22018 } 22019 function processUpdateQueue(workInProgress, queue, props, instance, renderExpirationTime) { 22020 if (hasForceUpdate = !1, !(queue.expirationTime === NoWork || queue.expirationTime > renderExpirationTime)) { 22021 queue = ensureWorkInProgressQueueIsAClone(workInProgress, queue), currentlyProcessingQueue = queue; 22022 for (var newBaseState = queue.baseState, newFirstUpdate = null, newExpirationTime = NoWork, update = queue.firstUpdate, resultState = newBaseState; null !== update; ) { 22023 var updateExpirationTime = update.expirationTime; 22024 if (updateExpirationTime > renderExpirationTime) null === newFirstUpdate && (newFirstUpdate = update, 22025 newBaseState = resultState), (newExpirationTime === NoWork || newExpirationTime > updateExpirationTime) && (newExpirationTime = updateExpirationTime); else { 22026 resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance); 22027 null !== update.callback && (workInProgress.effectTag |= Callback, update.nextEffect = null, 22028 null === queue.lastEffect ? queue.firstEffect = queue.lastEffect = update : (queue.lastEffect.nextEffect = update, 22029 queue.lastEffect = update)); 22030 } 22031 update = update.next; 22032 } 22033 var newFirstCapturedUpdate = null; 22034 for (update = queue.firstCapturedUpdate; null !== update; ) { 22035 var _updateExpirationTime = update.expirationTime; 22036 if (_updateExpirationTime > renderExpirationTime) null === newFirstCapturedUpdate && (newFirstCapturedUpdate = update, 22037 null === newFirstUpdate && (newBaseState = resultState)), (newExpirationTime === NoWork || newExpirationTime > _updateExpirationTime) && (newExpirationTime = _updateExpirationTime); else { 22038 resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance); 22039 null !== update.callback && (workInProgress.effectTag |= Callback, update.nextEffect = null, 22040 null === queue.lastCapturedEffect ? queue.firstCapturedEffect = queue.lastCapturedEffect = update : (queue.lastCapturedEffect.nextEffect = update, 22041 queue.lastCapturedEffect = update)); 22042 } 22043 update = update.next; 22044 } 22045 null === newFirstUpdate && (queue.lastUpdate = null), null === newFirstCapturedUpdate ? queue.lastCapturedUpdate = null : workInProgress.effectTag |= Callback, 22046 null === newFirstUpdate && null === newFirstCapturedUpdate && (newBaseState = resultState), 22047 queue.baseState = newBaseState, queue.firstUpdate = newFirstUpdate, queue.firstCapturedUpdate = newFirstCapturedUpdate, 22048 queue.expirationTime = newExpirationTime, workInProgress.memoizedState = resultState, 22049 currentlyProcessingQueue = null; 22050 } 22051 } 22052 function callCallback(callback, context) { 22053 "function" != typeof callback && invariant(!1, "Invalid argument passed as callback. Expected a function. Instead received: %s", callback), 22054 callback.call(context); 22055 } 22056 function resetHasForceUpdateBeforeProcessing() { 22057 hasForceUpdate = !1; 22058 } 22059 function checkHasForceUpdateAfterProcessing() { 22060 return hasForceUpdate; 22061 } 22062 function commitUpdateQueue(finishedWork, finishedQueue, instance, renderExpirationTime) { 22063 null !== finishedQueue.firstCapturedUpdate && (null !== finishedQueue.lastUpdate && (finishedQueue.lastUpdate.next = finishedQueue.firstCapturedUpdate, 22064 finishedQueue.lastUpdate = finishedQueue.lastCapturedUpdate), finishedQueue.firstCapturedUpdate = finishedQueue.lastCapturedUpdate = null); 22065 var effect = finishedQueue.firstEffect; 22066 for (finishedQueue.firstEffect = finishedQueue.lastEffect = null; null !== effect; ) { 22067 var _callback3 = effect.callback; 22068 null !== _callback3 && (effect.callback = null, callCallback(_callback3, instance)), 22069 effect = effect.nextEffect; 22070 } 22071 for (effect = finishedQueue.firstCapturedEffect, finishedQueue.firstCapturedEffect = finishedQueue.lastCapturedEffect = null; null !== effect; ) { 22072 var _callback4 = effect.callback; 22073 null !== _callback4 && (effect.callback = null, callCallback(_callback4, instance)), 22074 effect = effect.nextEffect; 22075 } 22076 } 22077 function createCapturedValue(value, source) { 22078 return { 22079 value: value, 22080 source: source, 22081 stack: getStackAddendumByWorkInProgressFiber(source) 22082 }; 22083 } 22084 function pushProvider(providerFiber) { 22085 var context = providerFiber.type._context; 22086 isPrimaryRenderer ? (push(changedBitsCursor, context._changedBits, providerFiber), 22087 push(valueCursor, context._currentValue, providerFiber), push(providerCursor, providerFiber, providerFiber), 22088 context._currentValue = providerFiber.pendingProps.value, context._changedBits = providerFiber.stateNode, 22089 void 0 !== context._currentRenderer && null !== context._currentRenderer && context._currentRenderer !== rendererSigil && warning(!1, "Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."), 22090 context._currentRenderer = rendererSigil) : (push(changedBitsCursor, context._changedBits2, providerFiber), 22091 push(valueCursor, context._currentValue2, providerFiber), push(providerCursor, providerFiber, providerFiber), 22092 context._currentValue2 = providerFiber.pendingProps.value, context._changedBits2 = providerFiber.stateNode, 22093 void 0 !== context._currentRenderer2 && null !== context._currentRenderer2 && context._currentRenderer2 !== rendererSigil && warning(!1, "Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."), 22094 context._currentRenderer2 = rendererSigil); 22095 } 22096 function popProvider(providerFiber) { 22097 var changedBits = changedBitsCursor.current, currentValue = valueCursor.current; 22098 pop(providerCursor, providerFiber), pop(valueCursor, providerFiber), pop(changedBitsCursor, providerFiber); 22099 var context = providerFiber.type._context; 22100 isPrimaryRenderer ? (context._currentValue = currentValue, context._changedBits = changedBits) : (context._currentValue2 = currentValue, 22101 context._changedBits2 = changedBits); 22102 } 22103 function getContextCurrentValue(context) { 22104 return isPrimaryRenderer ? context._currentValue : context._currentValue2; 22105 } 22106 function getContextChangedBits(context) { 22107 return isPrimaryRenderer ? context._changedBits : context._changedBits2; 22108 } 22109 function requiredContext(c) { 22110 return c === NO_CONTEXT && invariant(!1, "Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."), 22111 c; 22112 } 22113 function getRootHostContainer() { 22114 return requiredContext(rootInstanceStackCursor.current); 22115 } 22116 function pushHostContainer(fiber, nextRootInstance) { 22117 push(rootInstanceStackCursor, nextRootInstance, fiber), push(contextFiberStackCursor, fiber, fiber), 22118 push(contextStackCursor$1, NO_CONTEXT, fiber); 22119 var nextRootContext = getRootHostContext(nextRootInstance); 22120 pop(contextStackCursor$1, fiber), push(contextStackCursor$1, nextRootContext, fiber); 22121 } 22122 function popHostContainer(fiber) { 22123 pop(contextStackCursor$1, fiber), pop(contextFiberStackCursor, fiber), pop(rootInstanceStackCursor, fiber); 22124 } 22125 function getHostContext() { 22126 return requiredContext(contextStackCursor$1.current); 22127 } 22128 function pushHostContext(fiber) { 22129 var rootInstance = requiredContext(rootInstanceStackCursor.current), context = requiredContext(contextStackCursor$1.current), nextContext = getChildHostContext(context, fiber.type, rootInstance); 22130 context !== nextContext && (push(contextFiberStackCursor, fiber, fiber), push(contextStackCursor$1, nextContext, fiber)); 22131 } 22132 function popHostContext(fiber) { 22133 contextFiberStackCursor.current === fiber && (pop(contextStackCursor$1, fiber), 22134 pop(contextFiberStackCursor, fiber)); 22135 } 22136 function getCommitTime() { 22137 return commitTime; 22138 } 22139 function recordCommitTime() { 22140 enableProfilerTimer && (commitTime = now()); 22141 } 22142 function checkActualRenderTimeStackEmpty() { 22143 enableProfilerTimer && 0 !== fiberStack$1.length && warning(!1, "Expected an empty stack. Something was not reset properly."); 22144 } 22145 function markActualRenderTimeStarted(fiber) { 22146 if (enableProfilerTimer) { 22147 fiberStack$1.push(fiber); 22148 var stateNode = fiber.stateNode; 22149 stateNode.elapsedPauseTimeAtStart = totalElapsedPauseTime, stateNode.startTime = now(); 22150 } 22151 } 22152 function pauseActualRenderTimerIfRunning() { 22153 enableProfilerTimer && 0 === timerPausedAt && (timerPausedAt = now()); 22154 } 22155 function recordElapsedActualRenderTime(fiber) { 22156 if (enableProfilerTimer) { 22157 fiber !== fiberStack$1.pop() && warning(!1, "Unexpected Fiber popped."); 22158 var stateNode = fiber.stateNode; 22159 stateNode.duration += now() - (totalElapsedPauseTime - stateNode.elapsedPauseTimeAtStart) - stateNode.startTime; 22160 } 22161 } 22162 function resetActualRenderTimer() { 22163 enableProfilerTimer && (totalElapsedPauseTime = 0); 22164 } 22165 function resumeActualRenderTimerIfPaused() { 22166 enableProfilerTimer && timerPausedAt > 0 && (totalElapsedPauseTime += now() - timerPausedAt, 22167 timerPausedAt = 0); 22168 } 22169 function recordElapsedBaseRenderTimeIfRunning(fiber) { 22170 enableProfilerTimer && -1 !== baseStartTime && (fiber.selfBaseTime = now() - baseStartTime); 22171 } 22172 function startBaseRenderTimer() { 22173 enableProfilerTimer && (-1 !== baseStartTime && warning(!1, "Cannot start base timer that is already running. This error is likely caused by a bug in React. Please file an issue."), 22174 baseStartTime = now()); 22175 } 22176 function stopBaseRenderTimerIfRunning() { 22177 enableProfilerTimer && (baseStartTime = -1); 22178 } 22179 function applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, nextProps) { 22180 var prevState = workInProgress.memoizedState; 22181 (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) && getDerivedStateFromProps(nextProps, prevState); 22182 var partialState = getDerivedStateFromProps(nextProps, prevState); 22183 warnOnUndefinedDerivedState(workInProgress, partialState); 22184 var memoizedState = null === partialState || void 0 === partialState ? prevState : _assign({}, prevState, partialState); 22185 workInProgress.memoizedState = memoizedState; 22186 var updateQueue = workInProgress.updateQueue; 22187 null !== updateQueue && updateQueue.expirationTime === NoWork && (updateQueue.baseState = memoizedState); 22188 } 22189 function checkShouldComponentUpdate(workInProgress, oldProps, newProps, oldState, newState, newContext) { 22190 var instance = workInProgress.stateNode, ctor = workInProgress.type; 22191 if ("function" == typeof instance.shouldComponentUpdate) { 22192 startPhaseTimer(workInProgress, "shouldComponentUpdate"); 22193 var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, newContext); 22194 return stopPhaseTimer(), void 0 === shouldUpdate && warning(!1, "%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.", getComponentName(workInProgress) || "Component"), 22195 shouldUpdate; 22196 } 22197 return !ctor.prototype || !ctor.prototype.isPureReactComponent || (!shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState)); 22198 } 22199 function checkClassInstance(workInProgress) { 22200 var instance = workInProgress.stateNode, type = workInProgress.type, name = getComponentName(workInProgress) || "Component"; 22201 instance.render || (type.prototype && "function" == typeof type.prototype.render ? warning(!1, "%s(...): No ` + "`"))) + ((`render` + ("`" + ` method found on the returned component instance: did you accidentally return an object from the constructor?", name) : warning(!1, "%s(...): No `)) + ("`" + (`render` + "`"))))) + ((((` method found on the returned component instance: you may have forgotten to define ` + ("`" + `render`)) + ("`" + (`.", name)), 22202 !instance.getInitialState || instance.getInitialState.isReactClassApproved || instance.state || warning(!1, "getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?", name), 22203 !instance.getDefaultProps || instance.getDefaultProps.isReactClassApproved || warning(!1, "getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.", name), 22204 !instance.propTypes || warning(!1, "propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.", name), 22205 !instance.contextTypes || warning(!1, "contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.", name), 22206 "function" != typeof instance.componentShouldUpdate || warning(!1, "%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.", name), 22207 type.prototype && type.prototype.isPureReactComponent && void 0 !== instance.shouldComponentUpdate && warning(!1, "%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.", getComponentName(workInProgress) || "A pure component"), 22208 "function" != typeof instance.componentDidUnmount || warning(!1, "%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?", name), 22209 "function" != typeof instance.componentDidReceiveProps || warning(!1, "%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().", name), 22210 "function" != typeof instance.componentWillRecieveProps || warning(!1, "%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?", name), 22211 "function" != typeof instance.UNSAFE_componentWillRecieveProps || warning(!1, "%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?", name); 22212 var hasMutatedProps = instance.props !== workInProgress.pendingProps; 22213 void 0 !== instance.props && hasMutatedProps && warning(!1, "%s(...): When calling super() in ` + "`"))) + ((`%s` + ("`" + `, make sure to pass up the same props that your component's constructor was passed.", name, name), 22214 !instance.defaultProps || warning(!1, "Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.", name, name), 22215 "function" != typeof instance.getSnapshotBeforeUpdate || "function" == typeof instance.componentDidUpdate || didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(type) || (didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(type), 22216 warning(!1, "%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.", getComponentName(workInProgress))), 22217 "function" != typeof instance.getDerivedStateFromProps || warning(!1, "%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.", name), 22218 "function" != typeof instance.getDerivedStateFromCatch || warning(!1, "%s: getDerivedStateFromCatch() is defined as an instance method and will be ignored. Instead, declare it as a static method.", name), 22219 "function" != typeof type.getSnapshotBeforeUpdate || warning(!1, "%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.", name); 22220 var _state = instance.state; 22221 _state && ("object" != typeof _state || isArray(_state)) && warning(!1, "%s.state: must be set to an object or null", name), 22222 "function" == typeof instance.getChildContext && "object" != typeof type.childContextTypes && warning(!1, "%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().", name); 22223 } 22224 function adoptClassInstance(workInProgress, instance) { 22225 instance.updater = classComponentUpdater, workInProgress.stateNode = instance, set(instance, workInProgress), 22226 instance._reactInternalInstance = fakeInternalInstance; 22227 } 22228 function constructClassInstance(workInProgress, props, renderExpirationTime) { 22229 var ctor = workInProgress.type, unmaskedContext = getUnmaskedContext(workInProgress), needsContext = isContextConsumer(workInProgress), context = needsContext ? getMaskedContext(workInProgress, unmaskedContext) : emptyObject; 22230 (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) && new ctor(props, context); 22231 var instance = new ctor(props, context), state = workInProgress.memoizedState = null !== instance.state && void 0 !== instance.state ? instance.state : null; 22232 if (adoptClassInstance(workInProgress, instance), "function" == typeof ctor.getDerivedStateFromProps && null === state) { 22233 var componentName = getComponentName(workInProgress) || "Component"; 22234 didWarnAboutUninitializedState.has(componentName) || (didWarnAboutUninitializedState.add(componentName), 22235 warning(!1, "%s: Did not properly initialize state during construction. Expected state to be an object, but it was %s.", componentName, null === instance.state ? "null" : "undefined")); 22236 } 22237 if ("function" == typeof ctor.getDerivedStateFromProps || "function" == typeof instance.getSnapshotBeforeUpdate) { 22238 var foundWillMountName = null, foundWillReceivePropsName = null, foundWillUpdateName = null; 22239 if ("function" == typeof instance.componentWillMount && !0 !== instance.componentWillMount.__suppressDeprecationWarning ? foundWillMountName = "componentWillMount" : "function" == typeof instance.UNSAFE_componentWillMount && (foundWillMountName = "UNSAFE_componentWillMount"), 22240 "function" == typeof instance.componentWillReceiveProps && !0 !== instance.componentWillReceiveProps.__suppressDeprecationWarning ? foundWillReceivePropsName = "componentWillReceiveProps" : "function" == typeof instance.UNSAFE_componentWillReceiveProps && (foundWillReceivePropsName = "UNSAFE_componentWillReceiveProps"), 22241 "function" == typeof instance.componentWillUpdate && !0 !== instance.componentWillUpdate.__suppressDeprecationWarning ? foundWillUpdateName = "componentWillUpdate" : "function" == typeof instance.UNSAFE_componentWillUpdate && (foundWillUpdateName = "UNSAFE_componentWillUpdate"), 22242 null !== foundWillMountName || null !== foundWillReceivePropsName || null !== foundWillUpdateName) { 22243 var _componentName = getComponentName(workInProgress) || "Component", newApiName = "function" == typeof ctor.getDerivedStateFromProps ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()"; 22244 didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName) || (didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName), 22245 warning(!1, "Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react异步组件生命周期挂钩“_componentname,newapinname,空!==foundwillmountname?“\n“+foundWillMountName:”,空!=FoundWillReceivePropsName?“\n“+FoundWillReceivePropsName:”,空!==foundwillupdatename?“\n“+foundwillupdatename:”“); 22246 } 22247 } 22248 return needsContext && cacheContext(workInProgress, unmaskedContext, context), instance; 22249 } 22250 function callComponentWillMount(workInProgress, instance) { 22251 startPhaseTimer(workInProgress, "componentWillMount"); 22252 var oldState = instance.state; 22253 "function" == typeof instance.componentWillMount && instance.componentWillMount(), 22254 "function" == typeof instance.UNSAFE_componentWillMount && instance.UNSAFE_componentWillMount(), 22255 stopPhaseTimer(), oldState !== instance.state && (warning(!1, "%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", getComponentName(workInProgress) || "Component"), 22256 classComponentUpdater.enqueueReplaceState(instance, instance.state, null)); 22257 } 22258 function callComponentWillReceiveProps(workInProgress, instance, newProps, newContext) { 22259 var oldState = instance.state; 22260 if (startPhaseTimer(workInProgress, "componentWillReceiveProps"), "function" == typeof instance.componentWillReceiveProps && instance.componentWillReceiveProps(newProps, newContext), 22261 "function" == typeof instance.UNSAFE_componentWillReceiveProps && instance.UNSAFE_componentWillReceiveProps(newProps, newContext), 22262 stopPhaseTimer(), instance.state !== oldState) { 22263 var componentName = getComponentName(workInProgress) || "Component"; 22264 didWarnAboutStateAssignmentForComponent.has(componentName) || (didWarnAboutStateAssignmentForComponent.add(componentName), 22265 warning(!1, "%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", componentName)), 22266 classComponentUpdater.enqueueReplaceState(instance, instance.state, null); 22267 } 22268 } 22269 function mountClassInstance(workInProgress, renderExpirationTime) { 22270 var ctor = workInProgress.type; 22271 checkClassInstance(workInProgress); 22272 var instance = workInProgress.stateNode, props = workInProgress.pendingProps, unmaskedContext = getUnmaskedContext(workInProgress); 22273 instance.props = props, instance.state = workInProgress.memoizedState, instance.refs = emptyObject, 22274 instance.context = getMaskedContext(workInProgress, unmaskedContext), workInProgress.mode & StrictMode && (ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance), 22275 ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance)), warnAboutDeprecatedLifecycles && ReactStrictModeWarnings.recordDeprecationWarnings(workInProgress, instance); 22276 var updateQueue = workInProgress.updateQueue; 22277 null !== updateQueue && (processUpdateQueue(workInProgress, updateQueue, props, instance, renderExpirationTime), 22278 instance.state = workInProgress.memoizedState); 22279 var getDerivedStateFromProps = workInProgress.type.getDerivedStateFromProps; 22280 "function" == typeof getDerivedStateFromProps && (applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, props), 22281 instance.state = workInProgress.memoizedState), "function" == typeof ctor.getDerivedStateFromProps || "function" == typeof instance.getSnapshotBeforeUpdate || "function" != typeof instance.UNSAFE_componentWillMount && "function" != typeof instance.componentWillMount || (callComponentWillMount(workInProgress, instance), 22282 null !== (updateQueue = workInProgress.updateQueue) && (processUpdateQueue(workInProgress, updateQueue, props, instance, renderExpirationTime), 22283 instance.state = workInProgress.memoizedState)), "function" == typeof instance.componentDidMount && (workInProgress.effectTag |= Update); 22284 } 22285 function resumeMountClassInstance(workInProgress, renderExpirationTime) { 22286 var ctor = workInProgress.type, instance = workInProgress.stateNode, oldProps = workInProgress.memoizedProps, newProps = workInProgress.pendingProps; 22287 instance.props = oldProps; 22288 var oldContext = instance.context, newUnmaskedContext = getUnmaskedContext(workInProgress), newContext = getMaskedContext(workInProgress, newUnmaskedContext), getDerivedStateFromProps = ctor.getDerivedStateFromProps, hasNewLifecycles = "function" == typeof getDerivedStateFromProps || "function" == typeof instance.getSnapshotBeforeUpdate; 22289 hasNewLifecycles || "function" != typeof instance.UNSAFE_componentWillReceiveProps && "function" != typeof instance.componentWillReceiveProps || oldProps === newProps && oldContext === newContext || callComponentWillReceiveProps(workInProgress, instance, newProps, newContext), 22290 resetHasForceUpdateBeforeProcessing(); 22291 var oldState = workInProgress.memoizedState, newState = instance.state = oldState, updateQueue = workInProgress.updateQueue; 22292 if (null !== updateQueue && (processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime), 22293 newState = workInProgress.memoizedState), oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) return "function" == typeof instance.componentDidMount && (workInProgress.effectTag |= Update), 22294 !1; 22295 "function" == typeof getDerivedStateFromProps && (applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, newProps), 22296 newState = workInProgress.memoizedState); 22297 var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, oldProps, newProps, oldState, newState, newContext); 22298 return shouldUpdate ? (hasNewLifecycles || "function" != typeof instance.UNSAFE_componentWillMount && "function" != typeof instance.componentWillMount || (startPhaseTimer(workInProgress, "componentWillMount"), 22299 "function" == typeof instance.componentWillMount && instance.componentWillMount(), 22300 "function" == typeof instance.UNSAFE_componentWillMount && instance.UNSAFE_componentWillMount(), 22301 stopPhaseTimer()), "function" == typeof instance.componentDidMount && (workInProgress.effectTag |= Update)) : ("function" == typeof instance.componentDidMount && (workInProgress.effectTag |= Update), 22302 workInProgress.memoizedProps = newProps, workInProgress.memoizedState = newState), 22303 instance.props = newProps, instance.state = newState, instance.context = newContext, 22304 shouldUpdate; 22305 } 22306 function updateClassInstance(current, workInProgress, renderExpirationTime) { 22307 var ctor = workInProgress.type, instance = workInProgress.stateNode, oldProps = workInProgress.memoizedProps, newProps = workInProgress.pendingProps; 22308 instance.props = oldProps; 22309 var oldContext = instance.context, newUnmaskedContext = getUnmaskedContext(workInProgress), newContext = getMaskedContext(workInProgress, newUnmaskedContext), getDerivedStateFromProps = ctor.getDerivedStateFromProps, hasNewLifecycles = "function" == typeof getDerivedStateFromProps || "function" == typeof instance.getSnapshotBeforeUpdate; 22310 hasNewLifecycles || "function" != typeof instance.UNSAFE_componentWillReceiveProps && "function" != typeof instance.componentWillReceiveProps || oldProps === newProps && oldContext === newContext || callComponentWillReceiveProps(workInProgress, instance, newProps, newContext), 22311 resetHasForceUpdateBeforeProcessing(); 22312 var oldState = workInProgress.memoizedState, newState = instance.state = oldState, updateQueue = workInProgress.updateQueue; 22313 if (null !== updateQueue && (processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime), 22314 newState = workInProgress.memoizedState), oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) return "function" == typeof instance.componentDidUpdate && (oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.effectTag |= Update)), 22315 "function" == typeof instance.getSnapshotBeforeUpdate && (oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.effectTag |= Snapshot)), 22316 !1; 22317 "function" == typeof getDerivedStateFromProps && (fireGetDerivedStateFromPropsOnStateUpdates || oldProps !== newProps) && (applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, newProps), 22318 newState = workInProgress.memoizedState); 22319 var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, oldProps, newProps, oldState, newState, newContext); 22320 return shouldUpdate ? (hasNewLifecycles || "function" != typeof instance.UNSAFE_componentWillUpdate && "function" != typeof instance.componentWillUpdate || (startPhaseTimer(workInProgress, "componentWillUpdate"), 22321 "function" == typeof instance.componentWillUpdate && instance.componentWillUpdate(newProps, newState, newContext), 22322 "function" == typeof instance.UNSAFE_componentWillUpdate && instance.UNSAFE_componentWillUpdate(newProps, newState, newContext), 22323 stopPhaseTimer()), "function" == typeof instance.componentDidUpdate && (workInProgress.effectTag |= Update), 22324 "function" == typeof instance.getSnapshotBeforeUpdate && (workInProgress.effectTag |= Snapshot)) : ("function" == typeof instance.componentDidUpdate && (oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.effectTag |= Update)), 22325 "function" == typeof instance.getSnapshotBeforeUpdate && (oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.effectTag |= Snapshot)), 22326 workInProgress.memoizedProps = newProps, workInProgress.memoizedState = newState), 22327 instance.props = newProps, instance.state = newState, instance.context = newContext, 22328 shouldUpdate; 22329 } 22330 function coerceRef(returnFiber, current, element) { 22331 var mixedRef = element.ref; 22332 if (null !== mixedRef && "function" != typeof mixedRef && "object" != typeof mixedRef) { 22333 if (returnFiber.mode & StrictMode) { 22334 var componentName = getComponentName(returnFiber) || "Component"; 22335 didWarnAboutStringRefInStrictMode[componentName] || (warning(!1, 'A string ref, "%s", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using createRef() instead.\n%s\n\nLearn more about using refs safely here:\nhttps://fb.me/react-strict-mode-string-ref',mixedRef,getStackAddendingDumbyWorkinProgressFiber(返回光纤)), 22336 didWarnAboutStringRefInStrictMode[componentName] = !0); 22337 } 22338 if (element._owner) { 22339 var owner = element._owner, inst = void 0; 22340 if (owner) { 22341 var ownerFiber = owner; 22342 ownerFiber.tag !== ClassComponent && invariant(!1, "Stateless function components cannot have refs."), 22343 inst = ownerFiber.stateNode; 22344 } 22345 inst || invariant(!1, "Missing owner for string ref %s. This error is likely caused by a bug in React. Please file an issue.", mixedRef); 22346 var stringRef = "" + mixedRef; 22347 if (null !== current && null !== current.ref && "function" == typeof current.ref && current.ref._stringRef === stringRef) return current.ref; 22348 var ref = function(value) { 22349 var refs = inst.refs === emptyObject ? inst.refs = {} : inst.refs; 22350 null === value ? delete refs[stringRef] : refs[stringRef] = value; 22351 }; 22352 return ref._stringRef = stringRef, ref; 22353 } 22354 "string" != typeof mixedRef && invariant(!1, "Expected ref to be a function or a string."), 22355 element._owner || invariant(!1, "Element ref was specified as a string (%s) but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a functional component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://fb.me/react-refs-must-have-owner了解更多信息。“,mixedref); 22356 } 22357 return mixedRef; 22358 } 22359 function throwOnInvalidObjectType(returnFiber, newChild) { 22360 if ("textarea" !== returnFiber.type) { 22361 var addendum = ""; 22362 addendum = " If you meant to render a collection of children, use an array instead." + (getCurrentFiberStackAddendum$7() || ""), 22363 invariant(!1, "Objects are not valid as a React child (found: %s).%s", "[object Object]" === Object.prototype.toString.call(newChild) ? "object with keys {" + Object.keys(newChild).join(", ") + "}" : newChild, addendum); 22364 } 22365 } 22366 function warnOnFunctionType() { 22367 var currentComponentErrorInfo = "Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it." + (getCurrentFiberStackAddendum$7() || ""); 22368 ownerHasFunctionTypeWarning[currentComponentErrorInfo] || (ownerHasFunctionTypeWarning[currentComponentErrorInfo] = !0, 22369 warning(!1, "Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.%s", getCurrentFiberStackAddendum$7() || "")); 22370 } 22371 function ChildReconciler(shouldTrackSideEffects) { 22372 function deleteChild(returnFiber, childToDelete) { 22373 if (shouldTrackSideEffects) { 22374 var last = returnFiber.lastEffect; 22375 null !== last ? (last.nextEffect = childToDelete, returnFiber.lastEffect = childToDelete) : returnFiber.firstEffect = returnFiber.lastEffect = childToDelete, 22376 childToDelete.nextEffect = null, childToDelete.effectTag = Deletion; 22377 } 22378 } 22379 function deleteRemainingChildren(returnFiber, currentFirstChild) { 22380 if (!shouldTrackSideEffects) return null; 22381 for (var childToDelete = currentFirstChild; null !== childToDelete; ) deleteChild(returnFiber, childToDelete), 22382 childToDelete = childToDelete.sibling; 22383 return null; 22384 } 22385 function mapRemainingChildren(returnFiber, currentFirstChild) { 22386 for (var existingChildren = new Map(), existingChild = currentFirstChild; null !== existingChild; ) null !== existingChild.key ? existingChildren.set(existingChild.key, existingChild) : existingChildren.set(existingChild.index, existingChild), 22387 existingChild = existingChild.sibling; 22388 return existingChildren; 22389 } 22390 function useFiber(fiber, pendingProps, expirationTime) { 22391 var clone = createWorkInProgress(fiber, pendingProps, expirationTime); 22392 return clone.index = 0, clone.sibling = null, clone; 22393 } 22394 function placeChild(newFiber, lastPlacedIndex, newIndex) { 22395 if (newFiber.index = newIndex, !shouldTrackSideEffects) return lastPlacedIndex; 22396 var current = newFiber.alternate; 22397 if (null !== current) { 22398 var oldIndex = current.index; 22399 return oldIndex < lastPlacedIndex ? (newFiber.effectTag = Placement, lastPlacedIndex) : oldIndex; 22400 } 22401 return newFiber.effectTag = Placement, lastPlacedIndex; 22402 } 22403 function placeSingleChild(newFiber) { 22404 return shouldTrackSideEffects && null === newFiber.alternate && (newFiber.effectTag = Placement), 22405 newFiber; 22406 } 22407 function updateTextNode(returnFiber, current, textContent, expirationTime) { 22408 if (null === current || current.tag !== HostText) { 22409 var created = createFiberFromText(textContent, returnFiber.mode, expirationTime); 22410 return created.return = returnFiber, created; 22411 } 22412 var existing = useFiber(current, textContent, expirationTime); 22413 return existing.return = returnFiber, existing; 22414 } 22415 function updateElement(returnFiber, current, element, expirationTime) { 22416 if (null !== current && current.type === element.type) { 22417 var existing = useFiber(current, element.props, expirationTime); 22418 return existing.ref = coerceRef(returnFiber, current, element), existing.return = returnFiber, 22419 existing._debugSource = element._source, existing._debugOwner = element._owner, 22420 existing; 22421 } 22422 var created = createFiberFromElement(element, returnFiber.mode, expirationTime); 22423 return created.ref = coerceRef(returnFiber, current, element), created.return = returnFiber, 22424 created; 22425 } 22426 function updatePortal(returnFiber, current, portal, expirationTime) { 22427 if (null === current || current.tag !== HostPortal || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) { 22428 var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime); 22429 return created.return = returnFiber, created; 22430 } 22431 var existing = useFiber(current, portal.children || [], expirationTime); 22432 return existing.return = returnFiber, existing; 22433 } 22434 function updateFragment(returnFiber, current, fragment, expirationTime, key) { 22435 if (null === current || current.tag !== Fragment) { 22436 var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key); 22437 return created.return = returnFiber, created; 22438 } 22439 var existing = useFiber(current, fragment, expirationTime); 22440 return existing.return = returnFiber, existing; 22441 } 22442 function createChild(returnFiber, newChild, expirationTime) { 22443 if ("string" == typeof newChild || "number" == typeof newChild) { 22444 var created = createFiberFromText("" + newChild, returnFiber.mode, expirationTime); 22445 return created.return = returnFiber, created; 22446 } 22447 if ("object" == typeof newChild && null !== newChild) { 22448 switch (newChild.$$typeof) { 22449 case REACT_ELEMENT_TYPE: 22450 var _created = createFiberFromElement(newChild, returnFiber.mode, expirationTime); 22451 return _created.ref = coerceRef(returnFiber, null, newChild), _created.return = returnFiber, 22452 _created; 22453 22454 case REACT_PORTAL_TYPE: 22455 var _created2 = createFiberFromPortal(newChild, returnFiber.mode, expirationTime); 22456 return _created2.return = returnFiber, _created2; 22457 } 22458 if (isArray$1(newChild) || getIteratorFn(newChild)) { 22459 var _created3 = createFiberFromFragment(newChild, returnFiber.mode, expirationTime, null); 22460 return _created3.return = returnFiber, _created3; 22461 } 22462 throwOnInvalidObjectType(returnFiber, newChild); 22463 } 22464 return "function" == typeof newChild && warnOnFunctionType(), null; 22465 } 22466 function updateSlot(returnFiber, oldFiber, newChild, expirationTime) { 22467 var key = null !== oldFiber ? oldFiber.key : null; 22468 if ("string" == typeof newChild || "number" == typeof newChild) return null !== key ? null : updateTextNode(returnFiber, oldFiber, "" + newChild, expirationTime); 22469 if ("object" == typeof newChild && null !== newChild) { 22470 switch (newChild.$$typeof) { 22471 case REACT_ELEMENT_TYPE: 22472 return newChild.key === key ? newChild.type === REACT_FRAGMENT_TYPE ? updateFragment(returnFiber, oldFiber, newChild.props.children, expirationTime, key) : updateElement(returnFiber, oldFiber, newChild, expirationTime) : null; 22473 22474 case REACT_PORTAL_TYPE: 22475 return newChild.key === key ? updatePortal(returnFiber, oldFiber, newChild, expirationTime) : null; 22476 } 22477 if (isArray$1(newChild) || getIteratorFn(newChild)) return null !== key ? null : updateFragment(returnFiber, oldFiber, newChild, expirationTime, null); 22478 throwOnInvalidObjectType(returnFiber, newChild); 22479 } 22480 return "function" == typeof newChild && warnOnFunctionType(), null; 22481 } 22482 function updateFromMap(existingChildren, returnFiber, newIdx, newChild, expirationTime) { 22483 if ("string" == typeof newChild || "number" == typeof newChild) { 22484 return updateTextNode(returnFiber, existingChildren.get(newIdx) || null, "" + newChild, expirationTime); 22485 } 22486 if ("object" == typeof newChild && null !== newChild) { 22487 switch (newChild.$$typeof) { 22488 case REACT_ELEMENT_TYPE: 22489 var _matchedFiber = existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null; 22490 return newChild.type === REACT_FRAGMENT_TYPE ? updateFragment(returnFiber, _matchedFiber, newChild.props.children, expirationTime, newChild.key) : updateElement(returnFiber, _matchedFiber, newChild, expirationTime); 22491 22492 case REACT_PORTAL_TYPE: 22493 return updatePortal(returnFiber, existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null, newChild, expirationTime); 22494 } 22495 if (isArray$1(newChild) || getIteratorFn(newChild)) { 22496 return updateFragment(returnFiber, existingChildren.get(newIdx) || null, newChild, expirationTime, null); 22497 } 22498 throwOnInvalidObjectType(returnFiber, newChild); 22499 } 22500 return "function" == typeof newChild && warnOnFunctionType(), null; 22501 } 22502 function warnOnInvalidKey(child, knownKeys) { 22503 if ("object" != typeof child || null === child) return knownKeys; 22504 switch (child.$$typeof) { 22505 case REACT_ELEMENT_TYPE: 22506 case REACT_PORTAL_TYPE: 22507 warnForMissingKey(child); 22508 var key = child.key; 22509 if ("string" != typeof key) break; 22510 if (null === knownKeys) { 22511 knownKeys = new Set(), knownKeys.add(key); 22512 break; 22513 } 22514 if (!knownKeys.has(key)) { 22515 knownKeys.add(key); 22516 break; 22517 } 22518 warning(!1, "Encountered two children with the same key, `)) + ("`" + (`%s` + "`")))) + (((`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.%s", key, getCurrentFiberStackAddendum$7()); 22519 } 22520 return knownKeys; 22521 } 22522 function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, expirationTime) { 22523 for (var knownKeys = null, i = 0; i < newChildren.length; i++) { 22524 knownKeys = warnOnInvalidKey(newChildren[i], knownKeys); 22525 } 22526 for (var resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, lastPlacedIndex = 0, newIdx = 0, nextOldFiber = null; null !== oldFiber && newIdx < newChildren.length; newIdx++) { 22527 oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; 22528 var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], expirationTime); 22529 if (null === newFiber) { 22530 null === oldFiber && (oldFiber = nextOldFiber); 22531 break; 22532 } 22533 shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber), 22534 lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx), null === previousNewFiber ? resultingFirstChild = newFiber : previousNewFiber.sibling = newFiber, 22535 previousNewFiber = newFiber, oldFiber = nextOldFiber; 22536 } 22537 if (newIdx === newChildren.length) return deleteRemainingChildren(returnFiber, oldFiber), 22538 resultingFirstChild; 22539 if (null === oldFiber) { 22540 for (;newIdx < newChildren.length; newIdx++) { 22541 var _newFiber = createChild(returnFiber, newChildren[newIdx], expirationTime); 22542 _newFiber && (lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx), 22543 null === previousNewFiber ? resultingFirstChild = _newFiber : previousNewFiber.sibling = _newFiber, 22544 previousNewFiber = _newFiber); 22545 } 22546 return resultingFirstChild; 22547 } 22548 for (var existingChildren = mapRemainingChildren(returnFiber, oldFiber); newIdx < newChildren.length; newIdx++) { 22549 var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], expirationTime); 22550 _newFiber2 && (shouldTrackSideEffects && null !== _newFiber2.alternate && existingChildren.delete(null === _newFiber2.key ? newIdx : _newFiber2.key), 22551 lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx), null === previousNewFiber ? resultingFirstChild = _newFiber2 : previousNewFiber.sibling = _newFiber2, 22552 previousNewFiber = _newFiber2); 22553 } 22554 return shouldTrackSideEffects && existingChildren.forEach(function(child) { 22555 return deleteChild(returnFiber, child); 22556 }), resultingFirstChild; 22557 } 22558 function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, expirationTime) { 22559 var iteratorFn = getIteratorFn(newChildrenIterable); 22560 "function" != typeof iteratorFn && invariant(!1, "An object is not an iterable. This error is likely caused by a bug in React. Please file an issue."), 22561 newChildrenIterable.entries === iteratorFn && (didWarnAboutMaps || warning(!1, "Using Maps as children is unsupported and will likely yield unexpected results. Convert it to a sequence/iterable of keyed ReactElements instead.%s", getCurrentFiberStackAddendum$7()), 22562 didWarnAboutMaps = !0); 22563 var _newChildren = iteratorFn.call(newChildrenIterable); 22564 if (_newChildren) for (var knownKeys = null, _step = _newChildren.next(); !_step.done; _step = _newChildren.next()) { 22565 var child = _step.value; 22566 knownKeys = warnOnInvalidKey(child, knownKeys); 22567 } 22568 var newChildren = iteratorFn.call(newChildrenIterable); 22569 null == newChildren && invariant(!1, "An iterable object provided no iterator."); 22570 for (var resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, lastPlacedIndex = 0, newIdx = 0, nextOldFiber = null, step = newChildren.next(); null !== oldFiber && !step.done; newIdx++, 22571 step = newChildren.next()) { 22572 oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; 22573 var newFiber = updateSlot(returnFiber, oldFiber, step.value, expirationTime); 22574 if (null === newFiber) { 22575 oldFiber || (oldFiber = nextOldFiber); 22576 break; 22577 } 22578 shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber), 22579 lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx), null === previousNewFiber ? resultingFirstChild = newFiber : previousNewFiber.sibling = newFiber, 22580 previousNewFiber = newFiber, oldFiber = nextOldFiber; 22581 } 22582 if (step.done) return deleteRemainingChildren(returnFiber, oldFiber), resultingFirstChild; 22583 if (null === oldFiber) { 22584 for (;!step.done; newIdx++, step = newChildren.next()) { 22585 var _newFiber3 = createChild(returnFiber, step.value, expirationTime); 22586 null !== _newFiber3 && (lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx), 22587 null === previousNewFiber ? resultingFirstChild = _newFiber3 : previousNewFiber.sibling = _newFiber3, 22588 previousNewFiber = _newFiber3); 22589 } 22590 return resultingFirstChild; 22591 } 22592 for (var existingChildren = mapRemainingChildren(returnFiber, oldFiber); !step.done; newIdx++, 22593 step = newChildren.next()) { 22594 var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, expirationTime); 22595 null !== _newFiber4 && (shouldTrackSideEffects && null !== _newFiber4.alternate && existingChildren.delete(null === _newFiber4.key ? newIdx : _newFiber4.key), 22596 lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx), null === previousNewFiber ? resultingFirstChild = _newFiber4 : previousNewFiber.sibling = _newFiber4, 22597 previousNewFiber = _newFiber4); 22598 } 22599 return shouldTrackSideEffects && existingChildren.forEach(function(child) { 22600 return deleteChild(returnFiber, child); 22601 }), resultingFirstChild; 22602 } 22603 function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, expirationTime) { 22604 if (null !== currentFirstChild && currentFirstChild.tag === HostText) { 22605 deleteRemainingChildren(returnFiber, currentFirstChild.sibling); 22606 var existing = useFiber(currentFirstChild, textContent, expirationTime); 22607 return existing.return = returnFiber, existing; 22608 } 22609 deleteRemainingChildren(returnFiber, currentFirstChild); 22610 var created = createFiberFromText(textContent, returnFiber.mode, expirationTime); 22611 return created.return = returnFiber, created; 22612 } 22613 function reconcileSingleElement(returnFiber, currentFirstChild, element, expirationTime) { 22614 for (var key = element.key, child = currentFirstChild; null !== child; ) { 22615 if (child.key === key) { 22616 if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : child.type === element.type) { 22617 deleteRemainingChildren(returnFiber, child.sibling); 22618 var existing = useFiber(child, element.type === REACT_FRAGMENT_TYPE ? element.props.children : element.props, expirationTime); 22619 return existing.ref = coerceRef(returnFiber, child, element), existing.return = returnFiber, 22620 existing._debugSource = element._source, existing._debugOwner = element._owner, 22621 existing; 22622 } 22623 deleteRemainingChildren(returnFiber, child); 22624 break; 22625 } 22626 deleteChild(returnFiber, child), child = child.sibling; 22627 } 22628 if (element.type === REACT_FRAGMENT_TYPE) { 22629 var created = createFiberFromFragment(element.props.children, returnFiber.mode, expirationTime, element.key); 22630 return created.return = returnFiber, created; 22631 } 22632 var _created4 = createFiberFromElement(element, returnFiber.mode, expirationTime); 22633 return _created4.ref = coerceRef(returnFiber, currentFirstChild, element), _created4.return = returnFiber, 22634 _created4; 22635 } 22636 function reconcileSinglePortal(returnFiber, currentFirstChild, portal, expirationTime) { 22637 for (var key = portal.key, child = currentFirstChild; null !== child; ) { 22638 if (child.key === key) { 22639 if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) { 22640 deleteRemainingChildren(returnFiber, child.sibling); 22641 var existing = useFiber(child, portal.children || [], expirationTime); 22642 return existing.return = returnFiber, existing; 22643 } 22644 deleteRemainingChildren(returnFiber, child); 22645 break; 22646 } 22647 deleteChild(returnFiber, child), child = child.sibling; 22648 } 22649 var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime); 22650 return created.return = returnFiber, created; 22651 } 22652 function reconcileChildFibers(returnFiber, currentFirstChild, newChild, expirationTime) { 22653 "object" == typeof newChild && null !== newChild && newChild.type === REACT_FRAGMENT_TYPE && null === newChild.key && (newChild = newChild.props.children); 22654 var isObject = "object" == typeof newChild && null !== newChild; 22655 if (isObject) switch (newChild.$$typeof) { 22656 case REACT_ELEMENT_TYPE: 22657 return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, expirationTime)); 22658 22659 case REACT_PORTAL_TYPE: 22660 return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, expirationTime)); 22661 } 22662 if ("string" == typeof newChild || "number" == typeof newChild) return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, "" + newChild, expirationTime)); 22663 if (isArray$1(newChild)) return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, expirationTime); 22664 if (getIteratorFn(newChild)) return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, expirationTime); 22665 if (isObject && throwOnInvalidObjectType(returnFiber, newChild), "function" == typeof newChild && warnOnFunctionType(), 22666 void 0 === newChild) switch (returnFiber.tag) { 22667 case ClassComponent: 22668 if (returnFiber.stateNode.render._isMockFunction) break; 22669 22670 case FunctionalComponent: 22671 var Component = returnFiber.type; 22672 invariant(!1, "%s(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.", Component.displayName || Component.name || "Component"); 22673 } 22674 return deleteRemainingChildren(returnFiber, currentFirstChild); 22675 } 22676 return reconcileChildFibers; 22677 } 22678 function cloneChildFibers(current, workInProgress) { 22679 if (null !== current && workInProgress.child !== current.child && invariant(!1, "Resuming work not yet implemented."), 22680 null !== workInProgress.child) { 22681 var currentChild = workInProgress.child, newChild = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime); 22682 for (workInProgress.child = newChild, newChild.return = workInProgress; null !== currentChild.sibling; ) currentChild = currentChild.sibling, 22683 newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime), 22684 newChild.return = workInProgress; 22685 newChild.sibling = null; 22686 } 22687 } 22688 function enterHydrationState(fiber) { 22689 if (!supportsHydration) return !1; 22690 var parentInstance = fiber.stateNode.containerInfo; 22691 return nextHydratableInstance = getFirstHydratableChild(parentInstance), hydrationParentFiber = fiber, 22692 isHydrating = !0, !0; 22693 } 22694 function deleteHydratableInstance(returnFiber, instance) { 22695 switch (returnFiber.tag) { 22696 case HostRoot: 22697 didNotHydrateContainerInstance(returnFiber.stateNode.containerInfo, instance); 22698 break; 22699 22700 case HostComponent: 22701 didNotHydrateInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, instance); 22702 } 22703 var childToDelete = createFiberFromHostInstanceForDeletion(); 22704 childToDelete.stateNode = instance, childToDelete.return = returnFiber, childToDelete.effectTag = Deletion, 22705 null !== returnFiber.lastEffect ? (returnFiber.lastEffect.nextEffect = childToDelete, 22706 returnFiber.lastEffect = childToDelete) : returnFiber.firstEffect = returnFiber.lastEffect = childToDelete; 22707 } 22708 function insertNonHydratedInstance(returnFiber, fiber) { 22709 switch (fiber.effectTag |= Placement, returnFiber.tag) { 22710 case HostRoot: 22711 var parentContainer = returnFiber.stateNode.containerInfo; 22712 switch (fiber.tag) { 22713 case HostComponent: 22714 didNotFindHydratableContainerInstance(parentContainer, fiber.type, fiber.pendingProps); 22715 break; 22716 22717 case HostText: 22718 didNotFindHydratableContainerTextInstance(parentContainer, fiber.pendingProps); 22719 } 22720 break; 22721 22722 case HostComponent: 22723 var parentType = returnFiber.type, parentProps = returnFiber.memoizedProps, parentInstance = returnFiber.stateNode; 22724 switch (fiber.tag) { 22725 case HostComponent: 22726 didNotFindHydratableInstance(parentType, parentProps, parentInstance, fiber.type, fiber.pendingProps); 22727 break; 22728 22729 case HostText: 22730 didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, fiber.pendingProps); 22731 } 22732 break; 22733 22734 default: 22735 return; 22736 } 22737 } 22738 function tryHydrate(fiber, nextInstance) { 22739 switch (fiber.tag) { 22740 case HostComponent: 22741 var type = fiber.type, props = fiber.pendingProps, instance = canHydrateInstance(nextInstance, type, props); 22742 return null !== instance && (fiber.stateNode = instance, !0); 22743 22744 case HostText: 22745 var text = fiber.pendingProps, textInstance = canHydrateTextInstance(nextInstance, text); 22746 return null !== textInstance && (fiber.stateNode = textInstance, !0); 22747 22748 default: 22749 return !1; 22750 } 22751 } 22752 function tryToClaimNextHydratableInstance(fiber) { 22753 if (isHydrating) { 22754 var nextInstance = nextHydratableInstance; 22755 if (!nextInstance) return insertNonHydratedInstance(hydrationParentFiber, fiber), 22756 isHydrating = !1, void (hydrationParentFiber = fiber); 22757 var firstAttemptedInstance = nextInstance; 22758 if (!tryHydrate(fiber, nextInstance)) { 22759 if (!(nextInstance = getNextHydratableSibling(firstAttemptedInstance)) || !tryHydrate(fiber, nextInstance)) return insertNonHydratedInstance(hydrationParentFiber, fiber), 22760 isHydrating = !1, void (hydrationParentFiber = fiber); 22761 deleteHydratableInstance(hydrationParentFiber, firstAttemptedInstance); 22762 } 22763 hydrationParentFiber = fiber, nextHydratableInstance = getFirstHydratableChild(nextInstance); 22764 } 22765 } 22766 function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) { 22767 supportsHydration || invariant(!1, "Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue."); 22768 var instance = fiber.stateNode, updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber); 22769 return fiber.updateQueue = updatePayload, null !== updatePayload; 22770 } 22771 function prepareToHydrateHostTextInstance(fiber) { 22772 supportsHydration || invariant(!1, "Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue."); 22773 var textInstance = fiber.stateNode, textContent = fiber.memoizedProps, shouldUpdate = hydrateTextInstance(textInstance, textContent, fiber); 22774 if (shouldUpdate) { 22775 var returnFiber = hydrationParentFiber; 22776 if (null !== returnFiber) switch (returnFiber.tag) { 22777 case HostRoot: 22778 didNotMatchHydratedContainerTextInstance(returnFiber.stateNode.containerInfo, textInstance, textContent); 22779 break; 22780 22781 case HostComponent: 22782 didNotMatchHydratedTextInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, textInstance, textContent); 22783 } 22784 } 22785 return shouldUpdate; 22786 } 22787 function popToNextHostParent(fiber) { 22788 for (var parent = fiber.return; null !== parent && parent.tag !== HostComponent && parent.tag !== HostRoot; ) parent = parent.return; 22789 hydrationParentFiber = parent; 22790 } 22791 function popHydrationState(fiber) { 22792 if (!supportsHydration) return !1; 22793 if (fiber !== hydrationParentFiber) return !1; 22794 if (!isHydrating) return popToNextHostParent(fiber), isHydrating = !0, !1; 22795 var type = fiber.type; 22796 if (fiber.tag !== HostComponent || "head" !== type && "body" !== type && !shouldSetTextContent(type, fiber.memoizedProps)) for (var nextInstance = nextHydratableInstance; nextInstance; ) deleteHydratableInstance(fiber, nextInstance), 22797 nextInstance = getNextHydratableSibling(nextInstance); 22798 return popToNextHostParent(fiber), nextHydratableInstance = hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null, 22799 !0; 22800 } 22801 function resetHydrationState() { 22802 supportsHydration && (hydrationParentFiber = null, nextHydratableInstance = null, 22803 isHydrating = !1); 22804 } 22805 function reconcileChildren(current, workInProgress, nextChildren) { 22806 reconcileChildrenAtExpirationTime(current, workInProgress, nextChildren, workInProgress.expirationTime); 22807 } 22808 function reconcileChildrenAtExpirationTime(current, workInProgress, nextChildren, renderExpirationTime) { 22809 workInProgress.child = null === current ? mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime) : reconcileChildFibers(workInProgress, current.child, nextChildren, renderExpirationTime); 22810 } 22811 function updateForwardRef(current, workInProgress) { 22812 var render = workInProgress.type.render, nextProps = workInProgress.pendingProps, ref = workInProgress.ref; 22813 if (hasContextChanged()) ; else if (workInProgress.memoizedProps === nextProps) { 22814 var currentRef = null !== current ? current.ref : null; 22815 if (ref === currentRef) return bailoutOnAlreadyFinishedWork(current, workInProgress); 22816 } 22817 var nextChildren = void 0; 22818 return ReactCurrentOwner.current = workInProgress, ReactDebugCurrentFiber.setCurrentPhase("render"), 22819 nextChildren = render(nextProps, ref), ReactDebugCurrentFiber.setCurrentPhase(null), 22820 reconcileChildren(current, workInProgress, nextChildren), memoizeProps(workInProgress, nextProps), 22821 workInProgress.child; 22822 } 22823 function updateFragment(current, workInProgress) { 22824 var nextChildren = workInProgress.pendingProps; 22825 if (hasContextChanged()) ; else if (workInProgress.memoizedProps === nextChildren) return bailoutOnAlreadyFinishedWork(current, workInProgress); 22826 return reconcileChildren(current, workInProgress, nextChildren), memoizeProps(workInProgress, nextChildren), 22827 workInProgress.child; 22828 } 22829 function updateMode(current, workInProgress) { 22830 var nextChildren = workInProgress.pendingProps.children; 22831 if (hasContextChanged()) ; else if (null === nextChildren || workInProgress.memoizedProps === nextChildren) return bailoutOnAlreadyFinishedWork(current, workInProgress); 22832 return reconcileChildren(current, workInProgress, nextChildren), memoizeProps(workInProgress, nextChildren), 22833 workInProgress.child; 22834 } 22835 function updateProfiler(current, workInProgress) { 22836 var nextProps = workInProgress.pendingProps; 22837 return enableProfilerTimer && (markActualRenderTimeStarted(workInProgress), workInProgress.effectTag |= Update), 22838 workInProgress.memoizedProps === nextProps ? bailoutOnAlreadyFinishedWork(current, workInProgress) : (reconcileChildren(current, workInProgress, nextProps.children), 22839 memoizeProps(workInProgress, nextProps), workInProgress.child); 22840 } 22841 function markRef(current, workInProgress) { 22842 var ref = workInProgress.ref; 22843 (null === current && null !== ref || null !== current && current.ref !== ref) && (workInProgress.effectTag |= Ref); 22844 } 22845 function updateFunctionalComponent(current, workInProgress) { 22846 var fn = workInProgress.type, nextProps = workInProgress.pendingProps; 22847 if (hasContextChanged()) ; else if (workInProgress.memoizedProps === nextProps) return bailoutOnAlreadyFinishedWork(current, workInProgress); 22848 var unmaskedContext = getUnmaskedContext(workInProgress), context = getMaskedContext(workInProgress, unmaskedContext), nextChildren = void 0; 22849 return ReactCurrentOwner.current = workInProgress, ReactDebugCurrentFiber.setCurrentPhase("render"), 22850 nextChildren = fn(nextProps, context), ReactDebugCurrentFiber.setCurrentPhase(null), 22851 workInProgress.effectTag |= PerformedWork, reconcileChildren(current, workInProgress, nextChildren), 22852 memoizeProps(workInProgress, nextProps), workInProgress.child; 22853 } 22854 function updateClassComponent(current, workInProgress, renderExpirationTime) { 22855 var hasContext = pushContextProvider(workInProgress), shouldUpdate = void 0; 22856 return null === current ? null === workInProgress.stateNode ? (constructClassInstance(workInProgress, workInProgress.pendingProps, renderExpirationTime), 22857 mountClassInstance(workInProgress, renderExpirationTime), shouldUpdate = !0) : shouldUpdate = resumeMountClassInstance(workInProgress, renderExpirationTime) : shouldUpdate = updateClassInstance(current, workInProgress, renderExpirationTime), 22858 finishClassComponent(current, workInProgress, shouldUpdate, hasContext, renderExpirationTime); 22859 } 22860 function finishClassComponent(current, workInProgress, shouldUpdate, hasContext, renderExpirationTime) { 22861 markRef(current, workInProgress); 22862 var didCaptureError = (workInProgress.effectTag & DidCapture) !== NoEffect; 22863 if (!shouldUpdate && !didCaptureError) return hasContext && invalidateContextProvider(workInProgress, !1), 22864 bailoutOnAlreadyFinishedWork(current, workInProgress); 22865 var ctor = workInProgress.type, instance = workInProgress.stateNode; 22866 ReactCurrentOwner.current = workInProgress; 22867 var nextChildren = void 0; 22868 return !didCaptureError || enableGetDerivedStateFromCatch && "function" == typeof ctor.getDerivedStateFromCatch ? (ReactDebugCurrentFiber.setCurrentPhase("render"), 22869 nextChildren = instance.render(), (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) && instance.render(), 22870 ReactDebugCurrentFiber.setCurrentPhase(null)) : (nextChildren = null, enableProfilerTimer && stopBaseRenderTimerIfRunning()), 22871 workInProgress.effectTag |= PerformedWork, didCaptureError && (reconcileChildrenAtExpirationTime(current, workInProgress, null, renderExpirationTime), 22872 workInProgress.child = null), reconcileChildrenAtExpirationTime(current, workInProgress, nextChildren, renderExpirationTime), 22873 memoizeState(workInProgress, instance.state), memoizeProps(workInProgress, instance.props), 22874 hasContext && invalidateContextProvider(workInProgress, !0), workInProgress.child; 22875 } 22876 function pushHostRootContext(workInProgress) { 22877 var root = workInProgress.stateNode; 22878 root.pendingContext ? pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context) : root.context && pushTopLevelContextObject(workInProgress, root.context, !1), 22879 pushHostContainer(workInProgress, root.containerInfo); 22880 } 22881 function updateHostRoot(current, workInProgress, renderExpirationTime) { 22882 pushHostRootContext(workInProgress); 22883 var updateQueue = workInProgress.updateQueue; 22884 if (null !== updateQueue) { 22885 var nextProps = workInProgress.pendingProps, prevState = workInProgress.memoizedState, prevChildren = null !== prevState ? prevState.element : null; 22886 processUpdateQueue(workInProgress, updateQueue, nextProps, null, renderExpirationTime); 22887 var nextState = workInProgress.memoizedState, nextChildren = nextState.element; 22888 if (nextChildren === prevChildren) return resetHydrationState(), bailoutOnAlreadyFinishedWork(current, workInProgress); 22889 var root = workInProgress.stateNode; 22890 return (null === current || null === current.child) && root.hydrate && enterHydrationState(workInProgress) ? (workInProgress.effectTag |= Placement, 22891 workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime)) : (resetHydrationState(), 22892 reconcileChildren(current, workInProgress, nextChildren)), workInProgress.child; 22893 } 22894 return resetHydrationState(), bailoutOnAlreadyFinishedWork(current, workInProgress); 22895 } 22896 function updateHostComponent(current, workInProgress, renderExpirationTime) { 22897 pushHostContext(workInProgress), null === current && tryToClaimNextHydratableInstance(workInProgress); 22898 var type = workInProgress.type, memoizedProps = workInProgress.memoizedProps, nextProps = workInProgress.pendingProps, prevProps = null !== current ? current.memoizedProps : null; 22899 if (hasContextChanged()) ; else if (memoizedProps === nextProps) { 22900 var isHidden = workInProgress.mode & AsyncMode && shouldDeprioritizeSubtree(type, nextProps); 22901 if (isHidden && (workInProgress.expirationTime = Never), !isHidden || renderExpirationTime !== Never) return bailoutOnAlreadyFinishedWork(current, workInProgress); 22902 } 22903 var nextChildren = nextProps.children; 22904 return shouldSetTextContent(type, nextProps) ? nextChildren = null : prevProps && shouldSetTextContent(type, prevProps) && (workInProgress.effectTag |= ContentReset), 22905 markRef(current, workInProgress), renderExpirationTime !== Never && workInProgress.mode & AsyncMode && shouldDeprioritizeSubtree(type, nextProps) ? (workInProgress.expirationTime = Never, 22906 workInProgress.memoizedProps = nextProps, null) : (reconcileChildren(current, workInProgress, nextChildren), 22907 memoizeProps(workInProgress, nextProps), workInProgress.child); 22908 } 22909 function updateHostText(current, workInProgress) { 22910 return null === current && tryToClaimNextHydratableInstance(workInProgress), memoizeProps(workInProgress, workInProgress.pendingProps), 22911 null; 22912 } 22913 function mountIndeterminateComponent(current, workInProgress, renderExpirationTime) { 22914 null !== current && invariant(!1, "An indeterminate component should never have mounted. This error is likely caused by a bug in React. Please file an issue."); 22915 var fn = workInProgress.type, props = workInProgress.pendingProps, unmaskedContext = getUnmaskedContext(workInProgress), context = getMaskedContext(workInProgress, unmaskedContext), value = void 0; 22916 if (fn.prototype && "function" == typeof fn.prototype.render) { 22917 var componentName = getComponentName(workInProgress) || "Unknown"; 22918 didWarnAboutBadClass[componentName] || (warning(!1, "The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.", componentName, componentName), 22919 didWarnAboutBadClass[componentName] = !0); 22920 } 22921 if (workInProgress.mode & StrictMode && ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null), 22922 ReactCurrentOwner.current = workInProgress, value = fn(props, context), workInProgress.effectTag |= PerformedWork, 22923 "object" == typeof value && null !== value && "function" == typeof value.render && void 0 === value.$$typeof) { 22924 var Component = workInProgress.type; 22925 workInProgress.tag = ClassComponent, workInProgress.memoizedState = null !== value.state && void 0 !== value.state ? value.state : null; 22926 var getDerivedStateFromProps = Component.getDerivedStateFromProps; 22927 "function" == typeof getDerivedStateFromProps && applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, props); 22928 var hasContext = pushContextProvider(workInProgress); 22929 return adoptClassInstance(workInProgress, value), mountClassInstance(workInProgress, renderExpirationTime), 22930 finishClassComponent(current, workInProgress, !0, hasContext, renderExpirationTime); 22931 } 22932 workInProgress.tag = FunctionalComponent; 22933 var _Component = workInProgress.type; 22934 if (_Component && _Component.childContextTypes && warning(!1, "%s(...): childContextTypes cannot be defined on a functional component.", _Component.displayName || _Component.name || "Component"), 22935 null !== workInProgress.ref) { 22936 var info = "", ownerName = ReactDebugCurrentFiber.getCurrentFiberOwnerName(); 22937 ownerName && (info += "\n\nCheck the render method of ` + ("`" + `" + ownerName + "`)) + ("`" + (`."); 22938 var warningKey = ownerName || workInProgress._debugID || "", debugSource = workInProgress._debugSource; 22939 debugSource && (warningKey = debugSource.fileName + ":" + debugSource.lineNumber), 22940 didWarnAboutStatelessRefs[warningKey] || (didWarnAboutStatelessRefs[warningKey] = !0, 22941 warning(!1, "Stateless function components cannot be given refs. Attempts to access this ref will fail.%s%s", info, ReactDebugCurrentFiber.getCurrentFiberStackAddendum())); 22942 } 22943 if ("function" == typeof fn.getDerivedStateFromProps) { 22944 var _componentName = getComponentName(workInProgress) || "Unknown"; 22945 didWarnAboutGetDerivedStateOnFunctionalComponent[_componentName] || (warning(!1, "%s: Stateless functional components do not support getDerivedStateFromProps.", _componentName), 22946 didWarnAboutGetDerivedStateOnFunctionalComponent[_componentName] = !0); 22947 } 22948 return reconcileChildren(current, workInProgress, value), memoizeProps(workInProgress, props), 22949 workInProgress.child; 22950 } 22951 function updateTimeoutComponent(current, workInProgress, renderExpirationTime) { 22952 if (enableSuspense) { 22953 var nextProps = workInProgress.pendingProps, prevProps = workInProgress.memoizedProps, prevDidTimeout = workInProgress.memoizedState, alreadyCaptured = (workInProgress.effectTag & DidCapture) === NoEffect, nextDidTimeout = !alreadyCaptured; 22954 if (hasContextChanged()) ; else if (nextProps === prevProps && nextDidTimeout === prevDidTimeout) return bailoutOnAlreadyFinishedWork(current, workInProgress); 22955 var render = nextProps.children, nextChildren = render(nextDidTimeout); 22956 return workInProgress.memoizedProps = nextProps, workInProgress.memoizedState = nextDidTimeout, 22957 reconcileChildren(current, workInProgress, nextChildren), workInProgress.child; 22958 } 22959 return null; 22960 } 22961 function updatePortalComponent(current, workInProgress, renderExpirationTime) { 22962 pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); 22963 var nextChildren = workInProgress.pendingProps; 22964 if (hasContextChanged()) ; else if (workInProgress.memoizedProps === nextChildren) return bailoutOnAlreadyFinishedWork(current, workInProgress); 22965 return null === current ? (workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime), 22966 memoizeProps(workInProgress, nextChildren)) : (reconcileChildren(current, workInProgress, nextChildren), 22967 memoizeProps(workInProgress, nextChildren)), workInProgress.child; 22968 } 22969 function propagateContextChange(workInProgress, context, changedBits, renderExpirationTime) { 22970 var fiber = workInProgress.child; 22971 for (null !== fiber && (fiber.return = workInProgress); null !== fiber; ) { 22972 var nextFiber = void 0; 22973 switch (fiber.tag) { 22974 case ContextConsumer: 22975 var observedBits = 0 | fiber.stateNode; 22976 if (fiber.type === context && 0 != (observedBits & changedBits)) { 22977 for (var node = fiber; null !== node; ) { 22978 var alternate = node.alternate; 22979 if (node.expirationTime === NoWork || node.expirationTime > renderExpirationTime) node.expirationTime = renderExpirationTime, 22980 null !== alternate && (alternate.expirationTime === NoWork || alternate.expirationTime > renderExpirationTime) && (alternate.expirationTime = renderExpirationTime); else { 22981 if (null === alternate || !(alternate.expirationTime === NoWork || alternate.expirationTime > renderExpirationTime)) break; 22982 alternate.expirationTime = renderExpirationTime; 22983 } 22984 node = node.return; 22985 } 22986 nextFiber = null; 22987 } else nextFiber = fiber.child; 22988 break; 22989 22990 case ContextProvider: 22991 nextFiber = fiber.type === workInProgress.type ? null : fiber.child; 22992 break; 22993 22994 default: 22995 nextFiber = fiber.child; 22996 } 22997 if (null !== nextFiber) nextFiber.return = fiber; else for (nextFiber = fiber; null !== nextFiber; ) { 22998 if (nextFiber === workInProgress) { 22999 nextFiber = null; 23000 break; 23001 } 23002 var sibling = nextFiber.sibling; 23003 if (null !== sibling) { 23004 sibling.return = nextFiber.return, nextFiber = sibling; 23005 break; 23006 } 23007 nextFiber = nextFiber.return; 23008 } 23009 fiber = nextFiber; 23010 } 23011 } 23012 function updateContextProvider(current, workInProgress, renderExpirationTime) { 23013 var providerType = workInProgress.type, context = providerType._context, newProps = workInProgress.pendingProps, oldProps = workInProgress.memoizedProps, canBailOnProps = !0; 23014 if (hasContextChanged()) canBailOnProps = !1; else if (oldProps === newProps) return workInProgress.stateNode = 0, 23015 pushProvider(workInProgress), bailoutOnAlreadyFinishedWork(current, workInProgress); 23016 var newValue = newProps.value; 23017 workInProgress.memoizedProps = newProps; 23018 var providerPropTypes = workInProgress.type.propTypes; 23019 providerPropTypes && checkPropTypes(providerPropTypes, newProps, "prop", "Context.Provider", getCurrentFiberStackAddendum$6); 23020 var changedBits = void 0; 23021 if (null === oldProps) changedBits = MAX_SIGNED_31_BIT_INT; else if (oldProps.value === newProps.value) { 23022 if (oldProps.children === newProps.children && canBailOnProps) return workInProgress.stateNode = 0, 23023 pushProvider(workInProgress), bailoutOnAlreadyFinishedWork(current, workInProgress); 23024 changedBits = 0; 23025 } else { 23026 var oldValue = oldProps.value; 23027 if (oldValue === newValue && (0 !== oldValue || 1 / oldValue == 1 / newValue) || oldValue !== oldValue && newValue !== newValue) { 23028 if (oldProps.children === newProps.children && canBailOnProps) return workInProgress.stateNode = 0, 23029 pushProvider(workInProgress), bailoutOnAlreadyFinishedWork(current, workInProgress); 23030 changedBits = 0; 23031 } else if (changedBits = "function" == typeof context._calculateChangedBits ? context._calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT, 23032 (changedBits & MAX_SIGNED_31_BIT_INT) !== changedBits && warning(!1, "calculateChangedBits: Expected the return value to be a 31-bit integer. Instead received: %s", changedBits), 23033 0 === (changedBits |= 0)) { 23034 if (oldProps.children === newProps.children && canBailOnProps) return workInProgress.stateNode = 0, 23035 pushProvider(workInProgress), bailoutOnAlreadyFinishedWork(current, workInProgress); 23036 } else propagateContextChange(workInProgress, context, changedBits, renderExpirationTime); 23037 } 23038 return workInProgress.stateNode = changedBits, pushProvider(workInProgress), reconcileChildren(current, workInProgress, newProps.children), 23039 workInProgress.child; 23040 } 23041 function updateContextConsumer(current, workInProgress, renderExpirationTime) { 23042 var context = workInProgress.type, newProps = workInProgress.pendingProps, oldProps = workInProgress.memoizedProps, newValue = getContextCurrentValue(context), changedBits = getContextChangedBits(context); 23043 if (hasContextChanged()) ; else if (0 === changedBits && oldProps === newProps) return bailoutOnAlreadyFinishedWork(current, workInProgress); 23044 workInProgress.memoizedProps = newProps; 23045 var observedBits = newProps.unstable_observedBits; 23046 if (void 0 !== observedBits && null !== observedBits || (observedBits = MAX_SIGNED_31_BIT_INT), 23047 workInProgress.stateNode = observedBits, 0 != (changedBits & observedBits)) propagateContextChange(workInProgress, context, changedBits, renderExpirationTime); else if (oldProps === newProps) return bailoutOnAlreadyFinishedWork(current, workInProgress); 23048 var render = newProps.children; 23049 "function" != typeof render && warning(!1, "A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."); 23050 var newChildren = void 0; 23051 return ReactCurrentOwner.current = workInProgress, ReactDebugCurrentFiber.setCurrentPhase("render"), 23052 newChildren = render(newValue), ReactDebugCurrentFiber.setCurrentPhase(null), workInProgress.effectTag |= PerformedWork, 23053 reconcileChildren(current, workInProgress, newChildren), workInProgress.child; 23054 } 23055 function bailoutOnAlreadyFinishedWork(current, workInProgress) { 23056 return cancelWorkTimer(workInProgress), enableProfilerTimer && stopBaseRenderTimerIfRunning(), 23057 cloneChildFibers(current, workInProgress), workInProgress.child; 23058 } 23059 function bailoutOnLowPriority(current, workInProgress) { 23060 switch (cancelWorkTimer(workInProgress), enableProfilerTimer && stopBaseRenderTimerIfRunning(), 23061 workInProgress.tag) { 23062 case HostRoot: 23063 pushHostRootContext(workInProgress); 23064 break; 23065 23066 case ClassComponent: 23067 pushContextProvider(workInProgress); 23068 break; 23069 23070 case HostPortal: 23071 pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); 23072 break; 23073 23074 case ContextProvider: 23075 pushProvider(workInProgress); 23076 break; 23077 23078 case Profiler: 23079 enableProfilerTimer && markActualRenderTimeStarted(workInProgress); 23080 } 23081 return null; 23082 } 23083 function memoizeProps(workInProgress, nextProps) { 23084 workInProgress.memoizedProps = nextProps; 23085 } 23086 function memoizeState(workInProgress, nextState) { 23087 workInProgress.memoizedState = nextState; 23088 } 23089 function beginWork(current, workInProgress, renderExpirationTime) { 23090 if (workInProgress.expirationTime === NoWork || workInProgress.expirationTime > renderExpirationTime) return bailoutOnLowPriority(current, workInProgress); 23091 switch (workInProgress.tag) { 23092 case IndeterminateComponent: 23093 return mountIndeterminateComponent(current, workInProgress, renderExpirationTime); 23094 23095 case FunctionalComponent: 23096 return updateFunctionalComponent(current, workInProgress); 23097 23098 case ClassComponent: 23099 return updateClassComponent(current, workInProgress, renderExpirationTime); 23100 23101 case HostRoot: 23102 return updateHostRoot(current, workInProgress, renderExpirationTime); 23103 23104 case HostComponent: 23105 return updateHostComponent(current, workInProgress, renderExpirationTime); 23106 23107 case HostText: 23108 return updateHostText(current, workInProgress); 23109 23110 case TimeoutComponent: 23111 return updateTimeoutComponent(current, workInProgress, renderExpirationTime); 23112 23113 case HostPortal: 23114 return updatePortalComponent(current, workInProgress, renderExpirationTime); 23115 23116 case ForwardRef: 23117 return updateForwardRef(current, workInProgress); 23118 23119 case Fragment: 23120 return updateFragment(current, workInProgress); 23121 23122 case Mode: 23123 return updateMode(current, workInProgress); 23124 23125 case Profiler: 23126 return updateProfiler(current, workInProgress); 23127 23128 case ContextProvider: 23129 return updateContextProvider(current, workInProgress, renderExpirationTime); 23130 23131 case ContextConsumer: 23132 return updateContextConsumer(current, workInProgress, renderExpirationTime); 23133 23134 default: 23135 invariant(!1, "Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue."); 23136 } 23137 } 23138 function markUpdate(workInProgress) { 23139 workInProgress.effectTag |= Update; 23140 } 23141 function markRef$1(workInProgress) { 23142 workInProgress.effectTag |= Ref; 23143 } 23144 function appendAllChildren(parent, workInProgress) { 23145 for (var node = workInProgress.child; null !== node; ) { 23146 if (node.tag === HostComponent || node.tag === HostText) appendInitialChild(parent, node.stateNode); else if (node.tag === HostPortal) ; else if (null !== node.child) { 23147 node.child.return = node, node = node.child; 23148 continue; 23149 } 23150 if (node === workInProgress) return; 23151 for (;null === node.sibling; ) { 23152 if (null === node.return || node.return === workInProgress) return; 23153 node = node.return; 23154 } 23155 node.sibling.return = node.return, node = node.sibling; 23156 } 23157 } 23158 function completeWork(current, workInProgress, renderExpirationTime) { 23159 var newProps = workInProgress.pendingProps; 23160 switch (workInProgress.tag) { 23161 case FunctionalComponent: 23162 return null; 23163 23164 case ClassComponent: 23165 return popContextProvider(workInProgress), null; 23166 23167 case HostRoot: 23168 popHostContainer(workInProgress), popTopLevelContextObject(workInProgress); 23169 var fiberRoot = workInProgress.stateNode; 23170 return fiberRoot.pendingContext && (fiberRoot.context = fiberRoot.pendingContext, 23171 fiberRoot.pendingContext = null), null !== current && null !== current.child || (popHydrationState(workInProgress), 23172 workInProgress.effectTag &= ~Placement), updateHostContainer(workInProgress), null; 23173 23174 case HostComponent: 23175 popHostContext(workInProgress); 23176 var rootContainerInstance = getRootHostContainer(), type = workInProgress.type; 23177 if (null !== current && null != workInProgress.stateNode) { 23178 var oldProps = current.memoizedProps, instance = workInProgress.stateNode, currentHostContext = getHostContext(), updatePayload = prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext); 23179 updateHostComponent$1(current, workInProgress, updatePayload, type, oldProps, newProps, rootContainerInstance, currentHostContext), 23180 current.ref !== workInProgress.ref && markRef$1(workInProgress); 23181 } else { 23182 if (!newProps) return null === workInProgress.stateNode && invariant(!1, "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."), 23183 null; 23184 var _currentHostContext = getHostContext(); 23185 if (popHydrationState(workInProgress)) prepareToHydrateHostInstance(workInProgress, rootContainerInstance, _currentHostContext) && markUpdate(workInProgress); else { 23186 var _instance = createInstance(type, newProps, rootContainerInstance, _currentHostContext, workInProgress); 23187 appendAllChildren(_instance, workInProgress), finalizeInitialChildren(_instance, type, newProps, rootContainerInstance, _currentHostContext) && markUpdate(workInProgress), 23188 workInProgress.stateNode = _instance; 23189 } 23190 null !== workInProgress.ref && markRef$1(workInProgress); 23191 } 23192 return null; 23193 23194 case HostText: 23195 var newText = newProps; 23196 if (current && null != workInProgress.stateNode) { 23197 var oldText = current.memoizedProps; 23198 updateHostText$1(current, workInProgress, oldText, newText); 23199 } else { 23200 if ("string" != typeof newText) return null === workInProgress.stateNode && invariant(!1, "We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."), 23201 null; 23202 var _rootContainerInstance = getRootHostContainer(), _currentHostContext2 = getHostContext(); 23203 popHydrationState(workInProgress) ? prepareToHydrateHostTextInstance(workInProgress) && markUpdate(workInProgress) : workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext2, workInProgress); 23204 } 23205 return null; 23206 23207 case ForwardRef: 23208 case TimeoutComponent: 23209 case Fragment: 23210 case Mode: 23211 return null; 23212 23213 case Profiler: 23214 return enableProfilerTimer && recordElapsedActualRenderTime(workInProgress), null; 23215 23216 case HostPortal: 23217 return popHostContainer(workInProgress), updateHostContainer(workInProgress), null; 23218 23219 case ContextProvider: 23220 return popProvider(workInProgress), null; 23221 23222 case ContextConsumer: 23223 return null; 23224 23225 case IndeterminateComponent: 23226 invariant(!1, "An indeterminate component should have become determinate before completing. This error is likely caused by a bug in React. Please file an issue."); 23227 23228 default: 23229 invariant(!1, "Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue."); 23230 } 23231 } 23232 function showErrorDialog(capturedError) { 23233 return !0; 23234 } 23235 function logCapturedError(capturedError) { 23236 if (!1 !== showErrorDialog(capturedError)) { 23237 var error = capturedError.error; 23238 if (!error || !error.suppressReactErrorLogging) { 23239 var componentName = capturedError.componentName, componentStack = capturedError.componentStack, errorBoundaryName = capturedError.errorBoundaryName, errorBoundaryFound = capturedError.errorBoundaryFound, willRetry = capturedError.willRetry, componentNameMessage = componentName ? "The above error occurred in the <" + componentName + "> component:" : "The above error occurred in one of your React components:", errorBoundaryMessage = void 0; 23240 errorBoundaryMessage = errorBoundaryFound && errorBoundaryName ? willRetry ? "React will try to recreate this component tree from scratch using the error boundary you provided, " + errorBoundaryName + "." : "This error was initially handled by the error boundary " + errorBoundaryName + ".\nRecreating the tree from scratch failed so React will unmount the tree." : "Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://fb.me/react-error-bounders了解更多关于错误边界的信息。”; 23241 var combinedMessage = "" + componentNameMessage + componentStack + "\n\n" + errorBoundaryMessage; 23242 console.error(combinedMessage); 23243 } 23244 } 23245 } 23246 function logError(boundary, errorInfo) { 23247 var source = errorInfo.source, stack = errorInfo.stack; 23248 null === stack && null !== source && (stack = getStackAddendumByWorkInProgressFiber(source)); 23249 var capturedError = { 23250 componentName: null !== source ? getComponentName(source) : null, 23251 componentStack: null !== stack ? stack : "", 23252 error: errorInfo.value, 23253 errorBoundary: null, 23254 errorBoundaryName: null, 23255 errorBoundaryFound: !1, 23256 willRetry: !1 23257 }; 23258 null !== boundary && boundary.tag === ClassComponent && (capturedError.errorBoundary = boundary.stateNode, 23259 capturedError.errorBoundaryName = getComponentName(boundary), capturedError.errorBoundaryFound = !0, 23260 capturedError.willRetry = !0); 23261 try { 23262 logCapturedError(capturedError); 23263 } catch (e) { 23264 var suppressLogging = e && e.suppressReactErrorLogging; 23265 suppressLogging || console.error(e); 23266 } 23267 } 23268 function safelyCallComponentWillUnmount(current, instance) { 23269 if (invokeGuardedCallback$3(null, callComponentWillUnmountWithTimer, null, current, instance), 23270 hasCaughtError$1()) { 23271 captureCommitPhaseError(current, clearCaughtError$1()); 23272 } 23273 } 23274 function safelyDetachRef(current) { 23275 var ref = current.ref; 23276 if (null !== ref) if ("function" == typeof ref) { 23277 if (invokeGuardedCallback$3(null, ref, null, null), hasCaughtError$1()) { 23278 var refError = clearCaughtError$1(); 23279 captureCommitPhaseError(current, refError); 23280 } 23281 } else ref.current = null; 23282 } 23283 function commitBeforeMutationLifeCycles(current, finishedWork) { 23284 switch (finishedWork.tag) { 23285 case ClassComponent: 23286 if (finishedWork.effectTag & Snapshot && null !== current) { 23287 var prevProps = current.memoizedProps, prevState = current.memoizedState; 23288 startPhaseTimer(finishedWork, "getSnapshotBeforeUpdate"); 23289 var instance = finishedWork.stateNode; 23290 instance.props = finishedWork.memoizedProps, instance.state = finishedWork.memoizedState; 23291 var snapshot = instance.getSnapshotBeforeUpdate(prevProps, prevState), didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate; 23292 void 0 !== snapshot || didWarnSet.has(finishedWork.type) || (didWarnSet.add(finishedWork.type), 23293 warning(!1, "%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.", getComponentName(finishedWork))), 23294 instance.__reactInternalSnapshotBeforeUpdate = snapshot, stopPhaseTimer(); 23295 } 23296 return; 23297 23298 case HostRoot: 23299 case HostComponent: 23300 case HostText: 23301 case HostPortal: 23302 return; 23303 23304 default: 23305 invariant(!1, "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."); 23306 } 23307 } 23308 function commitLifeCycles(finishedRoot, current, finishedWork, currentTime, committedExpirationTime) { 23309 switch (finishedWork.tag) { 23310 case ClassComponent: 23311 var instance = finishedWork.stateNode; 23312 if (finishedWork.effectTag & Update) if (null === current) startPhaseTimer(finishedWork, "componentDidMount"), 23313 instance.props = finishedWork.memoizedProps, instance.state = finishedWork.memoizedState, 23314 instance.componentDidMount(), stopPhaseTimer(); else { 23315 var prevProps = current.memoizedProps, prevState = current.memoizedState; 23316 startPhaseTimer(finishedWork, "componentDidUpdate"), instance.props = finishedWork.memoizedProps, 23317 instance.state = finishedWork.memoizedState, instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate), 23318 stopPhaseTimer(); 23319 } 23320 var updateQueue = finishedWork.updateQueue; 23321 return void (null !== updateQueue && (instance.props = finishedWork.memoizedProps, 23322 instance.state = finishedWork.memoizedState, commitUpdateQueue(finishedWork, updateQueue, instance, committedExpirationTime))); 23323 23324 case HostRoot: 23325 var _updateQueue = finishedWork.updateQueue; 23326 if (null !== _updateQueue) { 23327 var _instance = null; 23328 if (null !== finishedWork.child) switch (finishedWork.child.tag) { 23329 case HostComponent: 23330 _instance = getPublicInstance(finishedWork.child.stateNode); 23331 break; 23332 23333 case ClassComponent: 23334 _instance = finishedWork.child.stateNode; 23335 } 23336 commitUpdateQueue(finishedWork, _updateQueue, _instance, committedExpirationTime); 23337 } 23338 return; 23339 23340 case HostComponent: 23341 var _instance2 = finishedWork.stateNode; 23342 if (null === current && finishedWork.effectTag & Update) { 23343 commitMount(_instance2, finishedWork.type, finishedWork.memoizedProps, finishedWork); 23344 } 23345 return; 23346 23347 case HostText: 23348 case HostPortal: 23349 case Profiler: 23350 case TimeoutComponent: 23351 return; 23352 23353 default: 23354 invariant(!1, "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."); 23355 } 23356 } 23357 function commitAttachRef(finishedWork) { 23358 var ref = finishedWork.ref; 23359 if (null !== ref) { 23360 var instance = finishedWork.stateNode, instanceToUse = void 0; 23361 switch (finishedWork.tag) { 23362 case HostComponent: 23363 instanceToUse = getPublicInstance(instance); 23364 break; 23365 23366 default: 23367 instanceToUse = instance; 23368 } 23369 "function" == typeof ref ? ref(instanceToUse) : (ref.hasOwnProperty("current") || warning(!1, "Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().%s", getComponentName(finishedWork), getStackAddendumByWorkInProgressFiber(finishedWork)), 23370 ref.current = instanceToUse); 23371 } 23372 } 23373 function commitDetachRef(current) { 23374 var currentRef = current.ref; 23375 null !== currentRef && ("function" == typeof currentRef ? currentRef(null) : currentRef.current = null); 23376 } 23377 function commitUnmount(current) { 23378 switch ("function" == typeof onCommitUnmount && onCommitUnmount(current), current.tag) { 23379 case ClassComponent: 23380 safelyDetachRef(current); 23381 var instance = current.stateNode; 23382 return void ("function" == typeof instance.componentWillUnmount && safelyCallComponentWillUnmount(current, instance)); 23383 23384 case HostComponent: 23385 return void safelyDetachRef(current); 23386 23387 case HostPortal: 23388 return void (supportsMutation ? unmountHostComponents(current) : supportsPersistence && emptyPortalContainer(current)); 23389 } 23390 } 23391 function commitNestedUnmounts(root) { 23392 for (var node = root; ;) if (commitUnmount(node), null === node.child || supportsMutation && node.tag === HostPortal) { 23393 if (node === root) return; 23394 for (;null === node.sibling; ) { 23395 if (null === node.return || node.return === root) return; 23396 node = node.return; 23397 } 23398 node.sibling.return = node.return, node = node.sibling; 23399 } else node.child.return = node, node = node.child; 23400 } 23401 function detachFiber(current) { 23402 current.return = null, current.child = null, current.alternate && (current.alternate.child = null, 23403 current.alternate.return = null); 23404 } 23405 function emptyPortalContainer(current) { 23406 if (supportsPersistence) { 23407 var portal = current.stateNode, containerInfo = portal.containerInfo, emptyChildSet = createContainerChildSet(containerInfo); 23408 replaceContainerChildren(containerInfo, emptyChildSet); 23409 } 23410 } 23411 function commitContainer(finishedWork) { 23412 if (supportsPersistence) switch (finishedWork.tag) { 23413 case ClassComponent: 23414 case HostComponent: 23415 case HostText: 23416 return; 23417 23418 case HostRoot: 23419 case HostPortal: 23420 var portalOrRoot = finishedWork.stateNode, containerInfo = portalOrRoot.containerInfo, _pendingChildren = portalOrRoot.pendingChildren; 23421 return void replaceContainerChildren(containerInfo, _pendingChildren); 23422 23423 default: 23424 invariant(!1, "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."); 23425 } 23426 } 23427 function getHostParentFiber(fiber) { 23428 for (var parent = fiber.return; null !== parent; ) { 23429 if (isHostParent(parent)) return parent; 23430 parent = parent.return; 23431 } 23432 invariant(!1, "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."); 23433 } 23434 function isHostParent(fiber) { 23435 return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal; 23436 } 23437 function getHostSibling(fiber) { 23438 var node = fiber; 23439 siblings: for (;;) { 23440 for (;null === node.sibling; ) { 23441 if (null === node.return || isHostParent(node.return)) return null; 23442 node = node.return; 23443 } 23444 for (node.sibling.return = node.return, node = node.sibling; node.tag !== HostComponent && node.tag !== HostText; ) { 23445 if (node.effectTag & Placement) continue siblings; 23446 if (null === node.child || node.tag === HostPortal) continue siblings; 23447 node.child.return = node, node = node.child; 23448 } 23449 if (!(node.effectTag & Placement)) return node.stateNode; 23450 } 23451 } 23452 function commitPlacement(finishedWork) { 23453 if (supportsMutation) { 23454 var parentFiber = getHostParentFiber(finishedWork), parent = void 0, isContainer = void 0; 23455 switch (parentFiber.tag) { 23456 case HostComponent: 23457 parent = parentFiber.stateNode, isContainer = !1; 23458 break; 23459 23460 case HostRoot: 23461 case HostPortal: 23462 parent = parentFiber.stateNode.containerInfo, isContainer = !0; 23463 break; 23464 23465 default: 23466 invariant(!1, "Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue."); 23467 } 23468 parentFiber.effectTag & ContentReset && (resetTextContent(parent), parentFiber.effectTag &= ~ContentReset); 23469 for (var before = getHostSibling(finishedWork), node = finishedWork; ;) { 23470 if (node.tag === HostComponent || node.tag === HostText) before ? isContainer ? insertInContainerBefore(parent, node.stateNode, before) : insertBefore(parent, node.stateNode, before) : isContainer ? appendChildToContainer(parent, node.stateNode) : appendChild(parent, node.stateNode); else if (node.tag === HostPortal) ; else if (null !== node.child) { 23471 node.child.return = node, node = node.child; 23472 continue; 23473 } 23474 if (node === finishedWork) return; 23475 for (;null === node.sibling; ) { 23476 if (null === node.return || node.return === finishedWork) return; 23477 node = node.return; 23478 } 23479 node.sibling.return = node.return, node = node.sibling; 23480 } 23481 } 23482 } 23483 function unmountHostComponents(current) { 23484 for (var node = current, currentParentIsValid = !1, currentParent = void 0, currentParentIsContainer = void 0; ;) { 23485 if (!currentParentIsValid) { 23486 var parent = node.return; 23487 findParent: for (;;) { 23488 switch (null === parent && invariant(!1, "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."), 23489 parent.tag) { 23490 case HostComponent: 23491 currentParent = parent.stateNode, currentParentIsContainer = !1; 23492 break findParent; 23493 23494 case HostRoot: 23495 case HostPortal: 23496 currentParent = parent.stateNode.containerInfo, currentParentIsContainer = !0; 23497 break findParent; 23498 } 23499 parent = parent.return; 23500 } 23501 currentParentIsValid = !0; 23502 } 23503 if (node.tag === HostComponent || node.tag === HostText) commitNestedUnmounts(node), 23504 currentParentIsContainer ? removeChildFromContainer(currentParent, node.stateNode) : removeChild(currentParent, node.stateNode); else if (node.tag === HostPortal) { 23505 if (currentParent = node.stateNode.containerInfo, null !== node.child) { 23506 node.child.return = node, node = node.child; 23507 continue; 23508 } 23509 } else if (commitUnmount(node), null !== node.child) { 23510 node.child.return = node, node = node.child; 23511 continue; 23512 } 23513 if (node === current) return; 23514 for (;null === node.sibling; ) { 23515 if (null === node.return || node.return === current) return; 23516 node = node.return, node.tag === HostPortal && (currentParentIsValid = !1); 23517 } 23518 node.sibling.return = node.return, node = node.sibling; 23519 } 23520 } 23521 function commitDeletion(current) { 23522 supportsMutation ? unmountHostComponents(current) : commitNestedUnmounts(current), 23523 detachFiber(current); 23524 } 23525 function commitWork(current, finishedWork) { 23526 if (!supportsMutation) return void commitContainer(finishedWork); 23527 switch (finishedWork.tag) { 23528 case ClassComponent: 23529 return; 23530 23531 case HostComponent: 23532 var instance = finishedWork.stateNode; 23533 if (null != instance) { 23534 var newProps = finishedWork.memoizedProps, oldProps = null !== current ? current.memoizedProps : newProps, type = finishedWork.type, updatePayload = finishedWork.updateQueue; 23535 finishedWork.updateQueue = null, null !== updatePayload && commitUpdate(instance, updatePayload, type, oldProps, newProps, finishedWork); 23536 } 23537 return; 23538 23539 case HostText: 23540 null === finishedWork.stateNode && invariant(!1, "This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue."); 23541 var textInstance = finishedWork.stateNode, newText = finishedWork.memoizedProps; 23542 return void commitTextUpdate(textInstance, null !== current ? current.memoizedProps : newText, newText); 23543 23544 case HostRoot: 23545 return; 23546 23547 case Profiler: 23548 if (enableProfilerTimer) { 23549 (0, finishedWork.memoizedProps.onRender)(finishedWork.memoizedProps.id, null === current ? "mount" : "update", finishedWork.stateNode.duration, finishedWork.treeBaseTime, finishedWork.stateNode.startTime, getCommitTime()), 23550 finishedWork.stateNode.duration = 0; 23551 } 23552 return; 23553 23554 case TimeoutComponent: 23555 return; 23556 23557 default: 23558 invariant(!1, "This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."); 23559 } 23560 } 23561 function commitResetTextContent(current) { 23562 supportsMutation && resetTextContent(current.stateNode); 23563 } 23564 function createRootErrorUpdate(fiber, errorInfo, expirationTime) { 23565 var update = createUpdate(expirationTime); 23566 update.tag = CaptureUpdate, update.payload = { 23567 element: null 23568 }; 23569 var error = errorInfo.value; 23570 return update.callback = function() { 23571 onUncaughtError(error), logError(fiber, errorInfo); 23572 }, update; 23573 } 23574 function createClassErrorUpdate(fiber, errorInfo, expirationTime) { 23575 var update = createUpdate(expirationTime); 23576 update.tag = CaptureUpdate; 23577 var getDerivedStateFromCatch = fiber.type.getDerivedStateFromCatch; 23578 if (enableGetDerivedStateFromCatch && "function" == typeof getDerivedStateFromCatch) { 23579 var error = errorInfo.value; 23580 update.payload = function() { 23581 return getDerivedStateFromCatch(error); 23582 }; 23583 } 23584 var inst = fiber.stateNode; 23585 return null !== inst && "function" == typeof inst.componentDidCatch && (update.callback = function() { 23586 enableGetDerivedStateFromCatch && "function" === getDerivedStateFromCatch || markLegacyErrorBoundaryAsFailed(this); 23587 var error = errorInfo.value, stack = errorInfo.stack; 23588 logError(fiber, errorInfo), this.componentDidCatch(error, { 23589 componentStack: null !== stack ? stack : "" 23590 }); 23591 }), update; 23592 } 23593 function schedulePing(finishedWork) { 23594 var currentTime = recalculateCurrentTime(), expirationTime = computeExpirationForFiber(currentTime, finishedWork); 23595 enqueueUpdate(finishedWork, createUpdate(expirationTime), expirationTime), scheduleWork$1(finishedWork, expirationTime); 23596 } 23597 function throwException(root, returnFiber, sourceFiber, value, renderIsExpired, renderExpirationTime, currentTimeMs) { 23598 if (sourceFiber.effectTag |= Incomplete, sourceFiber.firstEffect = sourceFiber.lastEffect = null, 23599 enableSuspense && null !== value && "object" == typeof value && "function" == typeof value.then) { 23600 var thenable = value, expirationTimeMs = expirationTimeToMs(renderExpirationTime), startTimeMs = expirationTimeMs - 5e3, elapsedMs = currentTimeMs - startTimeMs; 23601 elapsedMs < 0 && (elapsedMs = 0); 23602 var remainingTimeMs = expirationTimeMs - currentTimeMs, _workInProgress = returnFiber, earliestTimeoutMs = -1; 23603 searchForEarliestTimeout: do { 23604 if (_workInProgress.tag === TimeoutComponent) { 23605 var current = _workInProgress.alternate; 23606 if (null !== current && !0 === current.memoizedState) { 23607 earliestTimeoutMs = 0; 23608 break searchForEarliestTimeout; 23609 } 23610 var timeoutPropMs = _workInProgress.pendingProps.ms; 23611 if ("number" == typeof timeoutPropMs) { 23612 if (timeoutPropMs <= 0) { 23613 earliestTimeoutMs = 0; 23614 break searchForEarliestTimeout; 23615 } 23616 (-1 === earliestTimeoutMs || timeoutPropMs < earliestTimeoutMs) && (earliestTimeoutMs = timeoutPropMs); 23617 } else -1 === earliestTimeoutMs && (earliestTimeoutMs = remainingTimeMs); 23618 } 23619 _workInProgress = _workInProgress.return; 23620 } while (null !== _workInProgress); 23621 var msUntilTimeout = earliestTimeoutMs - elapsedMs; 23622 if (renderExpirationTime === Never || msUntilTimeout > 0) { 23623 suspendRoot(root, thenable, msUntilTimeout, renderExpirationTime); 23624 var onResolveOrReject = function() { 23625 retrySuspendedRoot(root, renderExpirationTime); 23626 }; 23627 return void thenable.then(onResolveOrReject, onResolveOrReject); 23628 } 23629 _workInProgress = returnFiber; 23630 do { 23631 switch (_workInProgress.tag) { 23632 case HostRoot: 23633 var message = renderExpirationTime === Sync ? "A synchronous update was suspended, but no fallback UI was provided." : "An update was suspended for longer than the timeout, but no fallback UI was provided."; 23634 value = new Error(message); 23635 break; 23636 23637 case TimeoutComponent: 23638 if ((_workInProgress.effectTag & DidCapture) === NoEffect) { 23639 _workInProgress.effectTag |= ShouldCapture; 23640 var _onResolveOrReject = schedulePing.bind(null, _workInProgress); 23641 return void thenable.then(_onResolveOrReject, _onResolveOrReject); 23642 } 23643 } 23644 _workInProgress = _workInProgress.return; 23645 } while (null !== _workInProgress); 23646 } 23647 value = createCapturedValue(value, sourceFiber); 23648 var workInProgress = returnFiber; 23649 do { 23650 switch (workInProgress.tag) { 23651 case HostRoot: 23652 var _errorInfo = value; 23653 workInProgress.effectTag |= ShouldCapture; 23654 return void enqueueCapturedUpdate(workInProgress, createRootErrorUpdate(workInProgress, _errorInfo, renderExpirationTime), renderExpirationTime); 23655 23656 case ClassComponent: 23657 var errorInfo = value, ctor = workInProgress.type, instance = workInProgress.stateNode; 23658 if ((workInProgress.effectTag & DidCapture) === NoEffect && ("function" == typeof ctor.getDerivedStateFromCatch && enableGetDerivedStateFromCatch || null !== instance && "function" == typeof instance.componentDidCatch && !isAlreadyFailedLegacyErrorBoundary(instance))) { 23659 workInProgress.effectTag |= ShouldCapture; 23660 return void enqueueCapturedUpdate(workInProgress, createClassErrorUpdate(workInProgress, errorInfo, renderExpirationTime), renderExpirationTime); 23661 } 23662 } 23663 workInProgress = workInProgress.return; 23664 } while (null !== workInProgress); 23665 } 23666 function unwindWork(workInProgress, renderIsExpired, renderExpirationTime) { 23667 switch (workInProgress.tag) { 23668 case ClassComponent: 23669 popContextProvider(workInProgress); 23670 var effectTag = workInProgress.effectTag; 23671 return effectTag & ShouldCapture ? (workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture, 23672 workInProgress) : null; 23673 23674 case HostRoot: 23675 popHostContainer(workInProgress), popTopLevelContextObject(workInProgress); 23676 var _effectTag = workInProgress.effectTag; 23677 return _effectTag & ShouldCapture ? (workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture, 23678 workInProgress) : null; 23679 23680 case HostComponent: 23681 return popHostContext(workInProgress), null; 23682 23683 case TimeoutComponent: 23684 var _effectTag2 = workInProgress.effectTag; 23685 return _effectTag2 & ShouldCapture ? (workInProgress.effectTag = _effectTag2 & ~ShouldCapture | DidCapture, 23686 workInProgress) : null; 23687 23688 case HostPortal: 23689 return popHostContainer(workInProgress), null; 23690 23691 case ContextProvider: 23692 return popProvider(workInProgress), null; 23693 23694 default: 23695 return null; 23696 } 23697 } 23698 function unwindInterruptedWork(interruptedWork) { 23699 switch (interruptedWork.tag) { 23700 case ClassComponent: 23701 popContextProvider(interruptedWork); 23702 break; 23703 23704 case HostRoot: 23705 popHostContainer(interruptedWork), popTopLevelContextObject(interruptedWork); 23706 break; 23707 23708 case HostComponent: 23709 popHostContext(interruptedWork); 23710 break; 23711 23712 case HostPortal: 23713 popHostContainer(interruptedWork); 23714 break; 23715 23716 case ContextProvider: 23717 popProvider(interruptedWork); 23718 break; 23719 23720 case Profiler: 23721 enableProfilerTimer && (resumeActualRenderTimerIfPaused(), recordElapsedActualRenderTime(interruptedWork)); 23722 } 23723 } 23724 function resetStack() { 23725 if (null !== nextUnitOfWork) for (var interruptedWork = nextUnitOfWork.return; null !== interruptedWork; ) unwindInterruptedWork(interruptedWork), 23726 interruptedWork = interruptedWork.return; 23727 ReactStrictModeWarnings.discardPendingWarnings(), checkThatStackIsEmpty(), nextRoot = null, 23728 nextRenderExpirationTime = NoWork, nextLatestTimeoutMs = -1, nextRenderIsExpired = !1, 23729 nextUnitOfWork = null, isRootReadyForCommit = !1; 23730 } 23731 function commitAllHostEffects() { 23732 for (;null !== nextEffect; ) { 23733 ReactDebugCurrentFiber.setCurrentFiber(nextEffect), recordEffect(); 23734 var effectTag = nextEffect.effectTag; 23735 if (effectTag & ContentReset && commitResetTextContent(nextEffect), effectTag & Ref) { 23736 var current = nextEffect.alternate; 23737 null !== current && commitDetachRef(current); 23738 } 23739 switch (effectTag & (Placement | Update | Deletion)) { 23740 case Placement: 23741 commitPlacement(nextEffect), nextEffect.effectTag &= ~Placement; 23742 break; 23743 23744 case PlacementAndUpdate: 23745 commitPlacement(nextEffect), nextEffect.effectTag &= ~Placement; 23746 commitWork(nextEffect.alternate, nextEffect); 23747 break; 23748 23749 case Update: 23750 commitWork(nextEffect.alternate, nextEffect); 23751 break; 23752 23753 case Deletion: 23754 commitDeletion(nextEffect); 23755 } 23756 nextEffect = nextEffect.nextEffect; 23757 } 23758 ReactDebugCurrentFiber.resetCurrentFiber(); 23759 } 23760 function commitBeforeMutationLifecycles() { 23761 for (;null !== nextEffect; ) { 23762 if (nextEffect.effectTag & Snapshot) { 23763 recordEffect(); 23764 commitBeforeMutationLifeCycles(nextEffect.alternate, nextEffect); 23765 } 23766 nextEffect = nextEffect.nextEffect; 23767 } 23768 } 23769 function commitAllLifeCycles(finishedRoot, currentTime, committedExpirationTime) { 23770 for (ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings(), warnAboutDeprecatedLifecycles && ReactStrictModeWarnings.flushPendingDeprecationWarnings(), 23771 warnAboutLegacyContextAPI && ReactStrictModeWarnings.flushLegacyContextWarning(); null !== nextEffect; ) { 23772 var effectTag = nextEffect.effectTag; 23773 if (effectTag & (Update | Callback)) { 23774 recordEffect(); 23775 commitLifeCycles(finishedRoot, nextEffect.alternate, nextEffect, currentTime, committedExpirationTime); 23776 } 23777 effectTag & Ref && (recordEffect(), commitAttachRef(nextEffect)); 23778 var next = nextEffect.nextEffect; 23779 nextEffect.nextEffect = null, nextEffect = next; 23780 } 23781 } 23782 function isAlreadyFailedLegacyErrorBoundary(instance) { 23783 return null !== legacyErrorBoundariesThatAlreadyFailed && legacyErrorBoundariesThatAlreadyFailed.has(instance); 23784 } 23785 function markLegacyErrorBoundaryAsFailed(instance) { 23786 null === legacyErrorBoundariesThatAlreadyFailed ? legacyErrorBoundariesThatAlreadyFailed = new Set([ instance ]) : legacyErrorBoundariesThatAlreadyFailed.add(instance); 23787 } 23788 function commitRoot(finishedWork) { 23789 isWorking = !0, isCommitting$1 = !0, startCommitTimer(); 23790 var root = finishedWork.stateNode; 23791 root.current === finishedWork && invariant(!1, "Cannot commit the same tree as before. This is probably a bug related to the return field. This error is likely caused by a bug in React. Please file an issue."); 23792 var committedExpirationTime = root.pendingCommitExpirationTime; 23793 committedExpirationTime === NoWork && invariant(!1, "Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."), 23794 root.pendingCommitExpirationTime = NoWork; 23795 var currentTime = recalculateCurrentTime(); 23796 ReactCurrentOwner.current = null; 23797 var firstEffect = void 0; 23798 for (finishedWork.effectTag > PerformedWork ? null !== finishedWork.lastEffect ? (finishedWork.lastEffect.nextEffect = finishedWork, 23799 firstEffect = finishedWork.firstEffect) : firstEffect = finishedWork : firstEffect = finishedWork.firstEffect, 23800 prepareForCommit(root.containerInfo), nextEffect = firstEffect, startCommitSnapshotEffectsTimer(); null !== nextEffect; ) { 23801 var didError = !1, error = void 0; 23802 invokeGuardedCallback$2(null, commitBeforeMutationLifecycles, null), hasCaughtError() && (didError = !0, 23803 error = clearCaughtError()), didError && (null === nextEffect && invariant(!1, "Should have next effect. This error is likely caused by a bug in React. Please file an issue."), 23804 captureCommitPhaseError(nextEffect, error), null !== nextEffect && (nextEffect = nextEffect.nextEffect)); 23805 } 23806 for (stopCommitSnapshotEffectsTimer(), enableProfilerTimer && recordCommitTime(), 23807 nextEffect = firstEffect, startCommitHostEffectsTimer(); null !== nextEffect; ) { 23808 var _didError = !1, _error = void 0; 23809 invokeGuardedCallback$2(null, commitAllHostEffects, null), hasCaughtError() && (_didError = !0, 23810 _error = clearCaughtError()), _didError && (null === nextEffect && invariant(!1, "Should have next effect. This error is likely caused by a bug in React. Please file an issue."), 23811 captureCommitPhaseError(nextEffect, _error), null !== nextEffect && (nextEffect = nextEffect.nextEffect)); 23812 } 23813 for (stopCommitHostEffectsTimer(), resetAfterCommit(root.containerInfo), root.current = finishedWork, 23814 nextEffect = firstEffect, startCommitLifeCyclesTimer(); null !== nextEffect; ) { 23815 var _didError2 = !1, _error2 = void 0; 23816 invokeGuardedCallback$2(null, commitAllLifeCycles, null, root, currentTime, committedExpirationTime), 23817 hasCaughtError() && (_didError2 = !0, _error2 = clearCaughtError()), _didError2 && (null === nextEffect && invariant(!1, "Should have next effect. This error is likely caused by a bug in React. Please file an issue."), 23818 captureCommitPhaseError(nextEffect, _error2), null !== nextEffect && (nextEffect = nextEffect.nextEffect)); 23819 } 23820 enableProfilerTimer && (checkActualRenderTimeStackEmpty(), resetActualRenderTimer()), 23821 isCommitting$1 = !1, isWorking = !1, stopCommitLifeCyclesTimer(), stopCommitTimer(), 23822 "function" == typeof onCommitRoot && onCommitRoot(finishedWork.stateNode), ReactFiberInstrumentation_1.debugTool && ReactFiberInstrumentation_1.debugTool.onCommitWork(finishedWork), 23823 markCommittedPriorityLevels(root, currentTime, root.current.expirationTime); 23824 var remainingTime = findNextPendingPriorityLevel(root); 23825 return remainingTime === NoWork && (legacyErrorBoundariesThatAlreadyFailed = null), 23826 remainingTime; 23827 } 23828 function resetExpirationTime(workInProgress, renderTime) { 23829 if (renderTime === Never || workInProgress.expirationTime !== Never) { 23830 var newExpirationTime = NoWork; 23831 switch (workInProgress.tag) { 23832 case HostRoot: 23833 case ClassComponent: 23834 var updateQueue = workInProgress.updateQueue; 23835 null !== updateQueue && (newExpirationTime = updateQueue.expirationTime); 23836 } 23837 if (enableProfilerTimer && workInProgress.mode & ProfileMode) { 23838 for (var treeBaseTime = workInProgress.selfBaseTime, child = workInProgress.child; null !== child; ) treeBaseTime += child.treeBaseTime, 23839 child.expirationTime !== NoWork && (newExpirationTime === NoWork || newExpirationTime > child.expirationTime) && (newExpirationTime = child.expirationTime), 23840 child = child.sibling; 23841 workInProgress.treeBaseTime = treeBaseTime; 23842 } else for (var _child = workInProgress.child; null !== _child; ) _child.expirationTime !== NoWork && (newExpirationTime === NoWork || newExpirationTime > _child.expirationTime) && (newExpirationTime = _child.expirationTime), 23843 _child = _child.sibling; 23844 workInProgress.expirationTime = newExpirationTime; 23845 } 23846 } 23847 function completeUnitOfWork(workInProgress) { 23848 for (;;) { 23849 var current = workInProgress.alternate; 23850 ReactDebugCurrentFiber.setCurrentFiber(workInProgress); 23851 var returnFiber = workInProgress.return, siblingFiber = workInProgress.sibling; 23852 if ((workInProgress.effectTag & Incomplete) === NoEffect) { 23853 var next = completeWork(current, workInProgress, nextRenderExpirationTime); 23854 if (stopWorkTimer(workInProgress), resetExpirationTime(workInProgress, nextRenderExpirationTime), 23855 ReactDebugCurrentFiber.resetCurrentFiber(), null !== next) return stopWorkTimer(workInProgress), 23856 ReactFiberInstrumentation_1.debugTool && ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress), 23857 next; 23858 if (null !== returnFiber && (returnFiber.effectTag & Incomplete) === NoEffect) { 23859 null === returnFiber.firstEffect && (returnFiber.firstEffect = workInProgress.firstEffect), 23860 null !== workInProgress.lastEffect && (null !== returnFiber.lastEffect && (returnFiber.lastEffect.nextEffect = workInProgress.firstEffect), 23861 returnFiber.lastEffect = workInProgress.lastEffect); 23862 workInProgress.effectTag > PerformedWork && (null !== returnFiber.lastEffect ? returnFiber.lastEffect.nextEffect = workInProgress : returnFiber.firstEffect = workInProgress, 23863 returnFiber.lastEffect = workInProgress); 23864 } 23865 if (ReactFiberInstrumentation_1.debugTool && ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress), 23866 null !== siblingFiber) return siblingFiber; 23867 if (null !== returnFiber) { 23868 workInProgress = returnFiber; 23869 continue; 23870 } 23871 return isRootReadyForCommit = !0, null; 23872 } 23873 var _next = unwindWork(workInProgress, nextRenderIsExpired, nextRenderExpirationTime); 23874 if (workInProgress.effectTag & DidCapture ? stopFailedWorkTimer(workInProgress) : stopWorkTimer(workInProgress), 23875 ReactDebugCurrentFiber.resetCurrentFiber(), null !== _next) return stopWorkTimer(workInProgress), 23876 ReactFiberInstrumentation_1.debugTool && ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress), 23877 _next.effectTag &= HostEffectMask, _next; 23878 if (null !== returnFiber && (returnFiber.firstEffect = returnFiber.lastEffect = null, 23879 returnFiber.effectTag |= Incomplete), ReactFiberInstrumentation_1.debugTool && ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress), 23880 null !== siblingFiber) return siblingFiber; 23881 if (null === returnFiber) return null; 23882 workInProgress = returnFiber; 23883 } 23884 return null; 23885 } 23886 function performUnitOfWork(workInProgress) { 23887 var current = workInProgress.alternate; 23888 startWorkTimer(workInProgress), ReactDebugCurrentFiber.setCurrentFiber(workInProgress), 23889 replayFailedUnitOfWorkWithInvokeGuardedCallback && (stashedWorkInProgressProperties = assignFiberPropertiesInDEV(stashedWorkInProgressProperties, workInProgress)); 23890 var next = void 0; 23891 return enableProfilerTimer ? (workInProgress.mode & ProfileMode && startBaseRenderTimer(), 23892 next = beginWork(current, workInProgress, nextRenderExpirationTime), workInProgress.mode & ProfileMode && (recordElapsedBaseRenderTimeIfRunning(workInProgress), 23893 stopBaseRenderTimerIfRunning())) : next = beginWork(current, workInProgress, nextRenderExpirationTime), 23894 ReactDebugCurrentFiber.resetCurrentFiber(), isReplayingFailedUnitOfWork && rethrowOriginalError(), 23895 ReactFiberInstrumentation_1.debugTool && ReactFiberInstrumentation_1.debugTool.onBeginWork(workInProgress), 23896 null === next && (next = completeUnitOfWork(workInProgress)), ReactCurrentOwner.current = null, 23897 next; 23898 } 23899 function workLoop(isAsync) { 23900 if (isAsync) { 23901 for (;null !== nextUnitOfWork && !shouldYield(); ) nextUnitOfWork = performUnitOfWork(nextUnitOfWork); 23902 enableProfilerTimer && pauseActualRenderTimerIfRunning(); 23903 } else for (;null !== nextUnitOfWork; ) nextUnitOfWork = performUnitOfWork(nextUnitOfWork); 23904 } 23905 function renderRoot(root, expirationTime, isAsync) { 23906 isWorking && invariant(!1, "renderRoot was called recursively. This error is likely caused by a bug in React. Please file an issue."), 23907 isWorking = !0, expirationTime === nextRenderExpirationTime && root === nextRoot && null !== nextUnitOfWork || (resetStack(), 23908 nextRoot = root, nextRenderExpirationTime = expirationTime, nextLatestTimeoutMs = -1, 23909 nextUnitOfWork = createWorkInProgress(nextRoot.current, null, nextRenderExpirationTime), 23910 root.pendingCommitExpirationTime = NoWork); 23911 var didFatal = !1; 23912 for (nextRenderIsExpired = !isAsync || nextRenderExpirationTime <= mostRecentCurrentTime, 23913 startWorkLoopTimer(nextUnitOfWork); ;) { 23914 try { 23915 workLoop(isAsync); 23916 } catch (thrownValue) { 23917 if (enableProfilerTimer && stopBaseRenderTimerIfRunning(), null === nextUnitOfWork) didFatal = !0, 23918 onUncaughtError(thrownValue); else { 23919 resetCurrentlyProcessingQueue(); 23920 var failedUnitOfWork = nextUnitOfWork; 23921 replayFailedUnitOfWorkWithInvokeGuardedCallback && replayUnitOfWork(failedUnitOfWork, thrownValue, isAsync), 23922 null === nextUnitOfWork && invariant(!1, "Failed to replay rendering after an error. This is likely caused by a bug in React. Please file an issue with a reproducing case to help us find it."); 23923 var sourceFiber = nextUnitOfWork, returnFiber = sourceFiber.return; 23924 if (null === returnFiber) { 23925 didFatal = !0, onUncaughtError(thrownValue); 23926 break; 23927 } 23928 throwException(root, returnFiber, sourceFiber, thrownValue, nextRenderIsExpired, nextRenderExpirationTime, mostRecentCurrentTimeMs), 23929 nextUnitOfWork = completeUnitOfWork(sourceFiber); 23930 } 23931 } 23932 break; 23933 } 23934 var didCompleteRoot = !1; 23935 if (isWorking = !1, didFatal) return stopWorkLoopTimer(interruptedBy, didCompleteRoot), 23936 interruptedBy = null, resetStackAfterFatalErrorInDev(), null; 23937 if (null === nextUnitOfWork) { 23938 if (isRootReadyForCommit) { 23939 didCompleteRoot = !0, stopWorkLoopTimer(interruptedBy, didCompleteRoot), interruptedBy = null, 23940 root.pendingCommitExpirationTime = expirationTime; 23941 return root.current.alternate; 23942 } 23943 stopWorkLoopTimer(interruptedBy, didCompleteRoot), interruptedBy = null, nextRenderIsExpired && invariant(!1, "Expired work should have completed. This error is likely caused by a bug in React. Please file an issue."), 23944 markSuspendedPriorityLevel(root, expirationTime), nextLatestTimeoutMs >= 0 && setTimeout(function() { 23945 retrySuspendedRoot(root, expirationTime); 23946 }, nextLatestTimeoutMs); 23947 return onBlock(findNextPendingPriorityLevel(root)), null; 23948 } 23949 return stopWorkLoopTimer(interruptedBy, didCompleteRoot), interruptedBy = null, 23950 null; 23951 } 23952 function dispatch(sourceFiber, value, expirationTime) { 23953 isWorking && !isCommitting$1 && invariant(!1, "dispatch: Cannot dispatch during the render phase."); 23954 for (var fiber = sourceFiber.return; null !== fiber; ) { 23955 switch (fiber.tag) { 23956 case ClassComponent: 23957 var ctor = fiber.type, instance = fiber.stateNode; 23958 if ("function" == typeof ctor.getDerivedStateFromCatch || "function" == typeof instance.componentDidCatch && !isAlreadyFailedLegacyErrorBoundary(instance)) { 23959 return enqueueUpdate(fiber, createClassErrorUpdate(fiber, createCapturedValue(value, sourceFiber), expirationTime), expirationTime), 23960 void scheduleWork$1(fiber, expirationTime); 23961 } 23962 break; 23963 23964 case HostRoot: 23965 return enqueueUpdate(fiber, createRootErrorUpdate(fiber, createCapturedValue(value, sourceFiber), expirationTime), expirationTime), 23966 void scheduleWork$1(fiber, expirationTime); 23967 } 23968 fiber = fiber.return; 23969 } 23970 if (sourceFiber.tag === HostRoot) { 23971 var rootFiber = sourceFiber; 23972 enqueueUpdate(rootFiber, createRootErrorUpdate(rootFiber, createCapturedValue(value, rootFiber), expirationTime), expirationTime), 23973 scheduleWork$1(rootFiber, expirationTime); 23974 } 23975 } 23976 function captureCommitPhaseError(fiber, error) { 23977 return dispatch(fiber, error, Sync); 23978 } 23979 function computeAsyncExpiration(currentTime) { 23980 return computeExpirationBucket(currentTime, 5e3, 250); 23981 } 23982 function computeInteractiveExpiration(currentTime) { 23983 var expirationMs = void 0; 23984 expirationMs = 500; 23985 return computeExpirationBucket(currentTime, expirationMs, 100); 23986 } 23987 function computeUniqueAsyncExpiration() { 23988 var currentTime = recalculateCurrentTime(), result = computeAsyncExpiration(currentTime); 23989 return result <= lastUniqueAsyncExpiration && (result = lastUniqueAsyncExpiration + 1), 23990 lastUniqueAsyncExpiration = result; 23991 } 23992 function computeExpirationForFiber(currentTime, fiber) { 23993 var expirationTime = void 0; 23994 return expirationTime = expirationContext !== NoWork ? expirationContext : isWorking ? isCommitting$1 ? Sync : nextRenderExpirationTime : fiber.mode & AsyncMode ? isBatchingInteractiveUpdates ? computeInteractiveExpiration(currentTime) : computeAsyncExpiration(currentTime) : Sync, 23995 isBatchingInteractiveUpdates && (lowestPendingInteractiveExpirationTime === NoWork || expirationTime > lowestPendingInteractiveExpirationTime) && (lowestPendingInteractiveExpirationTime = expirationTime), 23996 expirationTime; 23997 } 23998 function suspendRoot(root, thenable, timeoutMs, suspendedTime) { 23999 timeoutMs >= 0 && nextLatestTimeoutMs < timeoutMs && (nextLatestTimeoutMs = timeoutMs); 24000 } 24001 function retrySuspendedRoot(root, suspendedTime) { 24002 markPingedPriorityLevel(root, suspendedTime); 24003 var retryTime = findNextPendingPriorityLevel(root); 24004 retryTime !== NoWork && requestRetry(root, retryTime); 24005 } 24006 function scheduleWork$1(fiber, expirationTime) { 24007 if (recordScheduleUpdate(), fiber.tag === ClassComponent) { 24008 var instance = fiber.stateNode; 24009 warnAboutInvalidUpdates(instance); 24010 } 24011 for (var node = fiber; null !== node; ) { 24012 if ((node.expirationTime === NoWork || node.expirationTime > expirationTime) && (node.expirationTime = expirationTime), 24013 null !== node.alternate && (node.alternate.expirationTime === NoWork || node.alternate.expirationTime > expirationTime) && (node.alternate.expirationTime = expirationTime), 24014 null === node.return) { 24015 if (node.tag !== HostRoot) return void (fiber.tag === ClassComponent && warnAboutUpdateOnUnmounted(fiber)); 24016 var root = node.stateNode; 24017 !isWorking && nextRenderExpirationTime !== NoWork && expirationTime < nextRenderExpirationTime && (interruptedBy = fiber, 24018 resetStack()), markPendingPriorityLevel(root, expirationTime); 24019 var nextExpirationTimeToWorkOn = findNextPendingPriorityLevel(root); 24020 isWorking && !isCommitting$1 && nextRoot === root || requestWork(root, nextExpirationTimeToWorkOn), 24021 nestedUpdateCount > NESTED_UPDATE_LIMIT && invariant(!1, "Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops."); 24022 } 24023 node = node.return; 24024 } 24025 } 24026 function recalculateCurrentTime() { 24027 return mostRecentCurrentTimeMs = now() - originalStartTimeMs, mostRecentCurrentTime = msToExpirationTime(mostRecentCurrentTimeMs); 24028 } 24029 function deferredUpdates(fn) { 24030 var previousExpirationContext = expirationContext, currentTime = recalculateCurrentTime(); 24031 expirationContext = computeAsyncExpiration(currentTime); 24032 try { 24033 return fn(); 24034 } finally { 24035 expirationContext = previousExpirationContext; 24036 } 24037 } 24038 function syncUpdates(fn, a, b, c, d) { 24039 var previousExpirationContext = expirationContext; 24040 expirationContext = Sync; 24041 try { 24042 return fn(a, b, c, d); 24043 } finally { 24044 expirationContext = previousExpirationContext; 24045 } 24046 } 24047 function scheduleCallbackWithExpiration(expirationTime) { 24048 if (callbackExpirationTime !== NoWork) { 24049 if (expirationTime > callbackExpirationTime) return; 24050 cancelDeferredCallback(callbackID); 24051 } else startRequestCallbackTimer(); 24052 var currentMs = now() - originalStartTimeMs, expirationMs = expirationTimeToMs(expirationTime), timeout = expirationMs - currentMs; 24053 callbackExpirationTime = expirationTime, callbackID = scheduleDeferredCallback(performAsyncWork, { 24054 timeout: timeout 24055 }); 24056 } 24057 function requestRetry(root, expirationTime) { 24058 (root.remainingExpirationTime === NoWork || root.remainingExpirationTime < expirationTime) && requestWork(root, expirationTime); 24059 } 24060 function requestWork(root, expirationTime) { 24061 if (addRootToSchedule(root, expirationTime), !isRendering) return isBatchingUpdates ? void (isUnbatchingUpdates && (nextFlushedRoot = root, 24062 nextFlushedExpirationTime = Sync, performWorkOnRoot(root, Sync, !1))) : void (expirationTime === Sync ? performSyncWork() : scheduleCallbackWithExpiration(expirationTime)); 24063 } 24064 function addRootToSchedule(root, expirationTime) { 24065 if (null === root.nextScheduledRoot) root.remainingExpirationTime = expirationTime, 24066 null === lastScheduledRoot ? (firstScheduledRoot = lastScheduledRoot = root, root.nextScheduledRoot = root) : (lastScheduledRoot.nextScheduledRoot = root, 24067 lastScheduledRoot = root, lastScheduledRoot.nextScheduledRoot = firstScheduledRoot); else { 24068 var remainingExpirationTime = root.remainingExpirationTime; 24069 (remainingExpirationTime === NoWork || expirationTime < remainingExpirationTime) && (root.remainingExpirationTime = expirationTime); 24070 } 24071 } 24072 function findHighestPriorityRoot() { 24073 var highestPriorityWork = NoWork, highestPriorityRoot = null; 24074 if (null !== lastScheduledRoot) for (var previousScheduledRoot = lastScheduledRoot, root = firstScheduledRoot; null !== root; ) { 24075 var remainingExpirationTime = root.remainingExpirationTime; 24076 if (remainingExpirationTime === NoWork) { 24077 if ((null === previousScheduledRoot || null === lastScheduledRoot) && invariant(!1, "Should have a previous and last root. This error is likely caused by a bug in React. Please file an issue."), 24078 root === root.nextScheduledRoot) { 24079 root.nextScheduledRoot = null, firstScheduledRoot = lastScheduledRoot = null; 24080 break; 24081 } 24082 if (root === firstScheduledRoot) { 24083 var next = root.nextScheduledRoot; 24084 firstScheduledRoot = next, lastScheduledRoot.nextScheduledRoot = next, root.nextScheduledRoot = null; 24085 } else { 24086 if (root === lastScheduledRoot) { 24087 lastScheduledRoot = previousScheduledRoot, lastScheduledRoot.nextScheduledRoot = firstScheduledRoot, 24088 root.nextScheduledRoot = null; 24089 break; 24090 } 24091 previousScheduledRoot.nextScheduledRoot = root.nextScheduledRoot, root.nextScheduledRoot = null; 24092 } 24093 root = previousScheduledRoot.nextScheduledRoot; 24094 } else { 24095 if ((highestPriorityWork === NoWork || remainingExpirationTime < highestPriorityWork) && (highestPriorityWork = remainingExpirationTime, 24096 highestPriorityRoot = root), root === lastScheduledRoot) break; 24097 previousScheduledRoot = root, root = root.nextScheduledRoot; 24098 } 24099 } 24100 var previousFlushedRoot = nextFlushedRoot; 24101 null !== previousFlushedRoot && previousFlushedRoot === highestPriorityRoot && highestPriorityWork === Sync ? nestedUpdateCount++ : nestedUpdateCount = 0, 24102 nextFlushedRoot = highestPriorityRoot, nextFlushedExpirationTime = highestPriorityWork; 24103 } 24104 function performAsyncWork(dl) { 24105 performWork(NoWork, !0, dl); 24106 } 24107 function performSyncWork() { 24108 performWork(Sync, !1, null); 24109 } 24110 function performWork(minExpirationTime, isAsync, dl) { 24111 if (deadline = dl, findHighestPriorityRoot(), enableProfilerTimer && resumeActualRenderTimerIfPaused(), 24112 enableUserTimingAPI && null !== deadline) { 24113 stopRequestCallbackTimer(nextFlushedExpirationTime < recalculateCurrentTime(), expirationTimeToMs(nextFlushedExpirationTime)); 24114 } 24115 if (isAsync) for (;null !== nextFlushedRoot && nextFlushedExpirationTime !== NoWork && (minExpirationTime === NoWork || minExpirationTime >= nextFlushedExpirationTime) && (!deadlineDidExpire || recalculateCurrentTime() >= nextFlushedExpirationTime); ) recalculateCurrentTime(), 24116 performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, !deadlineDidExpire), 24117 findHighestPriorityRoot(); else for (;null !== nextFlushedRoot && nextFlushedExpirationTime !== NoWork && (minExpirationTime === NoWork || minExpirationTime >= nextFlushedExpirationTime); ) performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, !1), 24118 findHighestPriorityRoot(); 24119 null !== deadline && (callbackExpirationTime = NoWork, callbackID = -1), nextFlushedExpirationTime !== NoWork && scheduleCallbackWithExpiration(nextFlushedExpirationTime), 24120 deadline = null, deadlineDidExpire = !1, finishRendering(); 24121 } 24122 function flushRoot(root, expirationTime) { 24123 isRendering && invariant(!1, "work.commit(): Cannot commit while already rendering. This likely means you attempted to commit from inside a lifecycle method."), 24124 nextFlushedRoot = root, nextFlushedExpirationTime = expirationTime, performWorkOnRoot(root, expirationTime, !1), 24125 performSyncWork(), finishRendering(); 24126 } 24127 function finishRendering() { 24128 if (nestedUpdateCount = 0, null !== completedBatches) { 24129 var batches = completedBatches; 24130 completedBatches = null; 24131 for (var i = 0; i < batches.length; i++) { 24132 var batch = batches[i]; 24133 try { 24134 batch._onComplete(); 24135 } catch (error) { 24136 hasUnhandledError || (hasUnhandledError = !0, unhandledError = error); 24137 } 24138 } 24139 } 24140 if (hasUnhandledError) { 24141 var error = unhandledError; 24142 throw unhandledError = null, hasUnhandledError = !1, error; 24143 } 24144 } 24145 function performWorkOnRoot(root, expirationTime, isAsync) { 24146 if (isRendering && invariant(!1, "performWorkOnRoot was called recursively. This error is likely caused by a bug in React. Please file an issue."), 24147 isRendering = !0, isAsync) { 24148 var _finishedWork = root.finishedWork; 24149 null !== _finishedWork ? completeRoot(root, _finishedWork, expirationTime) : (root.finishedWork = null, 24150 null !== (_finishedWork = renderRoot(root, expirationTime, !0)) && (shouldYield() ? (root.finishedWork = _finishedWork, 24151 enableProfilerTimer && pauseActualRenderTimerIfRunning()) : completeRoot(root, _finishedWork, expirationTime))); 24152 } else { 24153 var finishedWork = root.finishedWork; 24154 null !== finishedWork ? completeRoot(root, finishedWork, expirationTime) : (root.finishedWork = null, 24155 null !== (finishedWork = renderRoot(root, expirationTime, !1)) && completeRoot(root, finishedWork, expirationTime)); 24156 } 24157 isRendering = !1; 24158 } 24159 function completeRoot(root, finishedWork, expirationTime) { 24160 var firstBatch = root.firstBatch; 24161 if (null !== firstBatch && firstBatch._expirationTime <= expirationTime && (null === completedBatches ? completedBatches = [ firstBatch ] : completedBatches.push(firstBatch), 24162 firstBatch._defer)) return root.finishedWork = finishedWork, void (root.remainingExpirationTime = NoWork); 24163 root.finishedWork = null, root.remainingExpirationTime = commitRoot(finishedWork); 24164 } 24165 function shouldYield() { 24166 return null !== deadline && (!(deadline.timeRemaining() > timeHeuristicForUnitOfWork) && (deadlineDidExpire = !0, 24167 !0)); 24168 } 24169 function onUncaughtError(error) { 24170 null === nextFlushedRoot && invariant(!1, "Should be working on a root. This error is likely caused by a bug in React. Please file an issue."), 24171 nextFlushedRoot.remainingExpirationTime = NoWork, hasUnhandledError || (hasUnhandledError = !0, 24172 unhandledError = error); 24173 } 24174 function onBlock(remainingExpirationTime) { 24175 null === nextFlushedRoot && invariant(!1, "Should be working on a root. This error is likely caused by a bug in React. Please file an issue."), 24176 nextFlushedRoot.remainingExpirationTime = remainingExpirationTime; 24177 } 24178 function batchedUpdates$1(fn, a) { 24179 var previousIsBatchingUpdates = isBatchingUpdates; 24180 isBatchingUpdates = !0; 24181 try { 24182 return fn(a); 24183 } finally { 24184 isBatchingUpdates = previousIsBatchingUpdates, isBatchingUpdates || isRendering || performSyncWork(); 24185 } 24186 } 24187 function unbatchedUpdates(fn, a) { 24188 if (isBatchingUpdates && !isUnbatchingUpdates) { 24189 isUnbatchingUpdates = !0; 24190 try { 24191 return fn(a); 24192 } finally { 24193 isUnbatchingUpdates = !1; 24194 } 24195 } 24196 return fn(a); 24197 } 24198 function flushSync(fn, a) { 24199 isRendering && invariant(!1, "flushSync was called from inside a lifecycle method. It cannot be called when React is already rendering."); 24200 var previousIsBatchingUpdates = isBatchingUpdates; 24201 isBatchingUpdates = !0; 24202 try { 24203 return syncUpdates(fn, a); 24204 } finally { 24205 isBatchingUpdates = previousIsBatchingUpdates, performSyncWork(); 24206 } 24207 } 24208 function interactiveUpdates$1(fn, a, b) { 24209 if (isBatchingInteractiveUpdates) return fn(a, b); 24210 isBatchingUpdates || isRendering || lowestPendingInteractiveExpirationTime === NoWork || (performWork(lowestPendingInteractiveExpirationTime, !1, null), 24211 lowestPendingInteractiveExpirationTime = NoWork); 24212 var previousIsBatchingInteractiveUpdates = isBatchingInteractiveUpdates, previousIsBatchingUpdates = isBatchingUpdates; 24213 isBatchingInteractiveUpdates = !0, isBatchingUpdates = !0; 24214 try { 24215 return fn(a, b); 24216 } finally { 24217 isBatchingInteractiveUpdates = previousIsBatchingInteractiveUpdates, isBatchingUpdates = previousIsBatchingUpdates, 24218 isBatchingUpdates || isRendering || performSyncWork(); 24219 } 24220 } 24221 function flushInteractiveUpdates$1() { 24222 isRendering || lowestPendingInteractiveExpirationTime === NoWork || (performWork(lowestPendingInteractiveExpirationTime, !1, null), 24223 lowestPendingInteractiveExpirationTime = NoWork); 24224 } 24225 function flushControlled(fn) { 24226 var previousIsBatchingUpdates = isBatchingUpdates; 24227 isBatchingUpdates = !0; 24228 try { 24229 syncUpdates(fn); 24230 } finally { 24231 isBatchingUpdates = previousIsBatchingUpdates, isBatchingUpdates || isRendering || performWork(Sync, !1, null); 24232 } 24233 } 24234 function getContextForSubtree(parentComponent) { 24235 if (!parentComponent) return emptyObject; 24236 var fiber = get(parentComponent), parentContext = findCurrentUnmaskedContext(fiber); 24237 return isContextProvider(fiber) ? processChildContext(fiber, parentContext) : parentContext; 24238 } 24239 function scheduleRootUpdate(current, element, expirationTime, callback) { 24240 "render" !== ReactDebugCurrentFiber.phase || null === ReactDebugCurrentFiber.current || didWarnAboutNestedUpdates || (didWarnAboutNestedUpdates = !0, 24241 warning(!1, "Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.\n\nCheck the render method of %s.", getComponentName(ReactDebugCurrentFiber.current) || "Unknown")); 24242 var update = createUpdate(expirationTime); 24243 return update.payload = { 24244 element: element 24245 }, callback = void 0 === callback ? null : callback, null !== callback && ("function" != typeof callback && warning(!1, "render(...): Expected the last optional ` + "`"))) + ((`callback` + ("`" + ` argument to be a function. Instead received: %s.", callback), 24246 update.callback = callback), enqueueUpdate(current, update, expirationTime), scheduleWork$1(current, expirationTime), 24247 expirationTime; 24248 } 24249 function updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, callback) { 24250 var current = container.current; 24251 ReactFiberInstrumentation_1.debugTool && (null === current.alternate ? ReactFiberInstrumentation_1.debugTool.onMountContainer(container) : null === element ? ReactFiberInstrumentation_1.debugTool.onUnmountContainer(container) : ReactFiberInstrumentation_1.debugTool.onUpdateContainer(container)); 24252 var context = getContextForSubtree(parentComponent); 24253 return null === container.context ? container.context = context : container.pendingContext = context, 24254 scheduleRootUpdate(current, element, expirationTime, callback); 24255 } 24256 function findHostInstance(component) { 24257 var fiber = get(component); 24258 void 0 === fiber && ("function" == typeof component.render ? invariant(!1, "Unable to find node on an unmounted component.") : invariant(!1, "Argument appears to not be a ReactComponent. Keys: %s", Object.keys(component))); 24259 var hostFiber = findCurrentHostFiber(fiber); 24260 return null === hostFiber ? null : hostFiber.stateNode; 24261 } 24262 function createContainer(containerInfo, isAsync, hydrate) { 24263 return createFiberRoot(containerInfo, isAsync, hydrate); 24264 } 24265 function updateContainer(element, container, parentComponent, callback) { 24266 var current = container.current; 24267 return updateContainerAtExpirationTime(element, container, parentComponent, computeExpirationForFiber(recalculateCurrentTime(), current), callback); 24268 } 24269 function getPublicRootInstance(container) { 24270 var containerFiber = container.current; 24271 if (!containerFiber.child) return null; 24272 switch (containerFiber.child.tag) { 24273 case HostComponent: 24274 return getPublicInstance(containerFiber.child.stateNode); 24275 24276 default: 24277 return containerFiber.child.stateNode; 24278 } 24279 } 24280 function findHostInstanceWithNoPortals(fiber) { 24281 var hostFiber = findCurrentHostFiberWithNoPortals(fiber); 24282 return null === hostFiber ? null : hostFiber.stateNode; 24283 } 24284 function injectIntoDevTools(devToolsConfig) { 24285 var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance; 24286 return injectInternals(_assign({}, devToolsConfig, { 24287 findHostInstanceByFiber: function(fiber) { 24288 var hostFiber = findCurrentHostFiber(fiber); 24289 return null === hostFiber ? null : hostFiber.stateNode; 24290 }, 24291 findFiberByHostInstance: function(instance) { 24292 return findFiberByHostInstance ? findFiberByHostInstance(instance) : null; 24293 } 24294 })); 24295 } 24296 function createPortal$1(children, containerInfo, implementation) { 24297 var key = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : null; 24298 return { 24299 $$typeof: REACT_PORTAL_TYPE, 24300 key: null == key ? null : "" + key, 24301 children: children, 24302 containerInfo: containerInfo, 24303 implementation: implementation 24304 }; 24305 } 24306 function ReactBatch(root) { 24307 var expirationTime = computeUniqueAsyncExpiration(); 24308 this._expirationTime = expirationTime, this._root = root, this._next = null, this._callbacks = null, 24309 this._didComplete = !1, this._hasChildren = !1, this._children = null, this._defer = !0; 24310 } 24311 function ReactWork() { 24312 this._callbacks = null, this._didCommit = !1, this._onCommit = this._onCommit.bind(this); 24313 } 24314 function ReactRoot(container, isAsync, hydrate) { 24315 var root = createContainer(container, isAsync, hydrate); 24316 this._internalRoot = root; 24317 } 24318 function isValidContainer(node) { 24319 return !(!node || node.nodeType !== ELEMENT_NODE && node.nodeType !== DOCUMENT_NODE && node.nodeType !== DOCUMENT_FRAGMENT_NODE && (node.nodeType !== COMMENT_NODE || " react-mount-point-unstable " !== node.nodeValue)); 24320 } 24321 function getReactRootElementInContainer(container) { 24322 return container ? container.nodeType === DOCUMENT_NODE ? container.documentElement : container.firstChild : null; 24323 } 24324 function shouldHydrateDueToLegacyHeuristic(container) { 24325 var rootElement = getReactRootElementInContainer(container); 24326 return !(!rootElement || rootElement.nodeType !== ELEMENT_NODE || !rootElement.hasAttribute(ROOT_ATTRIBUTE_NAME)); 24327 } 24328 function legacyCreateRootFromDOMContainer(container, forceHydrate) { 24329 var shouldHydrate = forceHydrate || shouldHydrateDueToLegacyHeuristic(container); 24330 if (!shouldHydrate) for (var warned = !1, rootSibling = void 0; rootSibling = container.lastChild; ) !warned && rootSibling.nodeType === ELEMENT_NODE && rootSibling.hasAttribute(ROOT_ATTRIBUTE_NAME) && (warned = !0, 24331 warning(!1, "render(): Target node has markup rendered by React, but there are unrelated nodes as well. This is most commonly caused by white-space inserted around server-rendered markup.")), 24332 container.removeChild(rootSibling); 24333 !shouldHydrate || forceHydrate || warnedAboutHydrateAPI || (warnedAboutHydrateAPI = !0, 24334 lowPriorityWarning$1(!1, "render(): Calling ReactDOM.render() to hydrate server-rendered markup will stop working in React v17. Replace the ReactDOM.render() call with ReactDOM.hydrate() if you want React to attach to the server HTML.")); 24335 return new ReactRoot(container, !1, shouldHydrate); 24336 } 24337 function legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback) { 24338 isValidContainer(container) || invariant(!1, "Target container is not a DOM element."), 24339 topLevelUpdateWarnings(container); 24340 var root = container._reactRootContainer; 24341 if (root) { 24342 if ("function" == typeof callback) { 24343 var _originalCallback = callback; 24344 callback = function() { 24345 var instance = getPublicRootInstance(root._internalRoot); 24346 _originalCallback.call(instance); 24347 }; 24348 } 24349 null != parentComponent ? root.legacy_renderSubtreeIntoContainer(parentComponent, children, callback) : root.render(children, callback); 24350 } else { 24351 if (root = container._reactRootContainer = legacyCreateRootFromDOMContainer(container, forceHydrate), 24352 "function" == typeof callback) { 24353 var originalCallback = callback; 24354 callback = function() { 24355 var instance = getPublicRootInstance(root._internalRoot); 24356 originalCallback.call(instance); 24357 }; 24358 } 24359 unbatchedUpdates(function() { 24360 null != parentComponent ? root.legacy_renderSubtreeIntoContainer(parentComponent, children, callback) : root.render(children, callback); 24361 }); 24362 } 24363 return getPublicRootInstance(root._internalRoot); 24364 } 24365 function createPortal(children, container) { 24366 var key = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : null; 24367 return isValidContainer(container) || invariant(!1, "Target container is not a DOM element."), 24368 createPortal$1(children, container, null, key); 24369 } 24370 var invariant = __webpack_require__(49), React = __webpack_require__(0), warning = __webpack_require__(98), ExecutionEnvironment = __webpack_require__(219), _assign = __webpack_require__(74), emptyFunction = __webpack_require__(50), checkPropTypes = __webpack_require__(143), getActiveElement = __webpack_require__(220), shallowEqual = __webpack_require__(100), containsNode = __webpack_require__(221), emptyObject = __webpack_require__(97), hyphenateStyleName = __webpack_require__(382), camelizeStyleName = __webpack_require__(384); 24371 React || invariant(!1, "ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM."); 24372 var invokeGuardedCallback = function(name, func, context, a, b, c, d, e, f) { 24373 this._hasCaughtError = !1, this._caughtError = null; 24374 var funcArgs = Array.prototype.slice.call(arguments, 3); 24375 try { 24376 func.apply(context, funcArgs); 24377 } catch (error) { 24378 this._caughtError = error, this._hasCaughtError = !0; 24379 } 24380 }; 24381 if ("undefined" != typeof window && "function" == typeof window.dispatchEvent && "undefined" != typeof document && "function" == typeof document.createEvent) { 24382 var fakeNode = document.createElement("react"); 24383 invokeGuardedCallback = function(name, func, context, a, b, c, d, e, f) { 24384 function callCallback() { 24385 fakeNode.removeEventListener(evtType, callCallback, !1), func.apply(context, funcArgs), 24386 didError = !1; 24387 } 24388 function onError(event) { 24389 error = event.error, didSetError = !0, null === error && 0 === event.colno && 0 === event.lineno && (isCrossOriginError = !0); 24390 } 24391 "undefined" == typeof document && invariant(!1, "The `)) + ("`" + (`document` + "`")))))) + (((((` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in ` + ("`" + `componentWillUnmount`)) + ("`" + (`), or you can change the test itself to be asynchronous."); 24392 var evt = document.createEvent("Event"), didError = !0, funcArgs = Array.prototype.slice.call(arguments, 3), error = void 0, didSetError = !1, isCrossOriginError = !1, evtType = "react-" + (name || "invokeguardedcallback"); 24393 window.addEventListener("error", onError), fakeNode.addEventListener(evtType, callCallback, !1), 24394 evt.initEvent(evtType, !1, !1), fakeNode.dispatchEvent(evt), didError ? (didSetError ? isCrossOriginError && (error = new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://fb.me/react-crossorigin-error了解更多信息。“):error=new error(“某个组件中抛出了一个错误,但react不知道是什么错误。”这可能是由于浏览器的片状。react尽力保留devtools的“异常暂停”行为,这只需要一些dev模式的技巧。有可能这些在您的浏览器中不起作用。Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue."), 24395 this._hasCaughtError = !0, this._caughtError = error) : (this._hasCaughtError = !1, 24396 this._caughtError = null), window.removeEventListener("error", onError); 24397 }; 24398 } 24399 var invokeGuardedCallback$1 = invokeGuardedCallback, ReactErrorUtils = { 24400 _caughtError: null, 24401 _hasCaughtError: !1, 24402 _rethrowError: null, 24403 _hasRethrowError: !1, 24404 invokeGuardedCallback: function(name, func, context, a, b, c, d, e, f) { 24405 invokeGuardedCallback$1.apply(ReactErrorUtils, arguments); 24406 }, 24407 invokeGuardedCallbackAndCatchFirstError: function(name, func, context, a, b, c, d, e, f) { 24408 if (ReactErrorUtils.invokeGuardedCallback.apply(this, arguments), ReactErrorUtils.hasCaughtError()) { 24409 var error = ReactErrorUtils.clearCaughtError(); 24410 ReactErrorUtils._hasRethrowError || (ReactErrorUtils._hasRethrowError = !0, ReactErrorUtils._rethrowError = error); 24411 } 24412 }, 24413 rethrowCaughtError: function() { 24414 return rethrowCaughtError.apply(ReactErrorUtils, arguments); 24415 }, 24416 hasCaughtError: function() { 24417 return ReactErrorUtils._hasCaughtError; 24418 }, 24419 clearCaughtError: function() { 24420 if (ReactErrorUtils._hasCaughtError) { 24421 var error = ReactErrorUtils._caughtError; 24422 return ReactErrorUtils._caughtError = null, ReactErrorUtils._hasCaughtError = !1, 24423 error; 24424 } 24425 invariant(!1, "clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue."); 24426 } 24427 }, rethrowCaughtError = function() { 24428 if (ReactErrorUtils._hasRethrowError) { 24429 var error = ReactErrorUtils._rethrowError; 24430 throw ReactErrorUtils._rethrowError = null, ReactErrorUtils._hasRethrowError = !1, 24431 error; 24432 } 24433 }, eventPluginOrder = null, namesToPlugins = {}, plugins = [], eventNameDispatchConfigs = {}, registrationNameModules = {}, registrationNameDependencies = {}, possibleRegistrationNames = {}, EventPluginRegistry = Object.freeze({ 24434 plugins: plugins, 24435 eventNameDispatchConfigs: eventNameDispatchConfigs, 24436 registrationNameModules: registrationNameModules, 24437 registrationNameDependencies: registrationNameDependencies, 24438 possibleRegistrationNames: possibleRegistrationNames, 24439 injectEventPluginOrder: injectEventPluginOrder, 24440 injectEventPluginsByName: injectEventPluginsByName 24441 }), getFiberCurrentPropsFromNode = null, getInstanceFromNode = null, getNodeFromInstance = null, injection$1 = { 24442 injectComponentTree: function(Injected) { 24443 getFiberCurrentPropsFromNode = Injected.getFiberCurrentPropsFromNode, getInstanceFromNode = Injected.getInstanceFromNode, 24444 (getNodeFromInstance = Injected.getNodeFromInstance) && getInstanceFromNode || warning(!1, "EventPluginUtils.injection.injectComponentTree(...): Injected module is missing getNodeFromInstance or getInstanceFromNode."); 24445 } 24446 }, validateEventDispatches = void 0; 24447 validateEventDispatches = function(event) { 24448 var dispatchListeners = event._dispatchListeners, dispatchInstances = event._dispatchInstances, listenersIsArr = Array.isArray(dispatchListeners), listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0, instancesIsArr = Array.isArray(dispatchInstances), instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0; 24449 (instancesIsArr !== listenersIsArr || instancesLen !== listenersLen) && warning(!1, "EventPluginUtils: Invalid ` + "`"))) + ((`event` + ("`" + `."); 24450 }; 24451 var eventQueue = null, executeDispatchesAndRelease = function(event, simulated) { 24452 event && (executeDispatchesInOrder(event, simulated), event.isPersistent() || event.constructor.release(event)); 24453 }, executeDispatchesAndReleaseSimulated = function(e) { 24454 return executeDispatchesAndRelease(e, !0); 24455 }, executeDispatchesAndReleaseTopLevel = function(e) { 24456 return executeDispatchesAndRelease(e, !1); 24457 }, injection = { 24458 injectEventPluginOrder: injectEventPluginOrder, 24459 injectEventPluginsByName: injectEventPluginsByName 24460 }, EventPluginHub = Object.freeze({ 24461 injection: injection, 24462 getListener: getListener, 24463 runEventsInBatch: runEventsInBatch, 24464 runExtractedEventsInBatch: runExtractedEventsInBatch 24465 }), IndeterminateComponent = 0, FunctionalComponent = 1, ClassComponent = 2, HostRoot = 3, HostPortal = 4, HostComponent = 5, HostText = 6, Fragment = 10, Mode = 11, ContextConsumer = 12, ContextProvider = 13, ForwardRef = 14, Profiler = 15, TimeoutComponent = 16, randomKey = Math.random().toString(36).slice(2), internalInstanceKey = "__reactInternalInstance$" + randomKey, internalEventHandlersKey = "__reactEventHandlers$" + randomKey, ReactDOMComponentTree = Object.freeze({ 24466 precacheFiberNode: precacheFiberNode, 24467 getClosestInstanceFromNode: getClosestInstanceFromNode, 24468 getInstanceFromNode: getInstanceFromNode$1, 24469 getNodeFromInstance: getNodeFromInstance$1, 24470 getFiberCurrentPropsFromNode: getFiberCurrentPropsFromNode$1, 24471 updateFiberProps: updateFiberProps 24472 }), EventPropagators = Object.freeze({ 24473 accumulateTwoPhaseDispatches: accumulateTwoPhaseDispatches, 24474 accumulateTwoPhaseDispatchesSkipTarget: accumulateTwoPhaseDispatchesSkipTarget, 24475 accumulateEnterLeaveDispatches: accumulateEnterLeaveDispatches, 24476 accumulateDirectDispatches: accumulateDirectDispatches 24477 }), vendorPrefixes = { 24478 animationend: makePrefixMap("Animation", "AnimationEnd"), 24479 animationiteration: makePrefixMap("Animation", "AnimationIteration"), 24480 animationstart: makePrefixMap("Animation", "AnimationStart"), 24481 transitionend: makePrefixMap("Transition", "TransitionEnd") 24482 }, prefixedEventNames = {}, style = {}; 24483 ExecutionEnvironment.canUseDOM && (style = document.createElement("div").style, 24484 "AnimationEvent" in window || (delete vendorPrefixes.animationend.animation, delete vendorPrefixes.animationiteration.animation, 24485 delete vendorPrefixes.animationstart.animation), "TransitionEvent" in window || delete vendorPrefixes.transitionend.transition); 24486 var TOP_ABORT = unsafeCastStringToDOMTopLevelType("abort"), TOP_ANIMATION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName("animationend")), TOP_ANIMATION_ITERATION = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName("animationiteration")), TOP_ANIMATION_START = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName("animationstart")), TOP_BLUR = unsafeCastStringToDOMTopLevelType("blur"), TOP_CAN_PLAY = unsafeCastStringToDOMTopLevelType("canplay"), TOP_CAN_PLAY_THROUGH = unsafeCastStringToDOMTopLevelType("canplaythrough"), TOP_CANCEL = unsafeCastStringToDOMTopLevelType("cancel"), TOP_CHANGE = unsafeCastStringToDOMTopLevelType("change"), TOP_CLICK = unsafeCastStringToDOMTopLevelType("click"), TOP_CLOSE = unsafeCastStringToDOMTopLevelType("close"), TOP_COMPOSITION_END = unsafeCastStringToDOMTopLevelType("compositionend"), TOP_COMPOSITION_START = unsafeCastStringToDOMTopLevelType("compositionstart"), TOP_COMPOSITION_UPDATE = unsafeCastStringToDOMTopLevelType("compositionupdate"), TOP_CONTEXT_MENU = unsafeCastStringToDOMTopLevelType("contextmenu"), TOP_COPY = unsafeCastStringToDOMTopLevelType("copy"), TOP_CUT = unsafeCastStringToDOMTopLevelType("cut"), TOP_DOUBLE_CLICK = unsafeCastStringToDOMTopLevelType("dblclick"), TOP_DRAG = unsafeCastStringToDOMTopLevelType("drag"), TOP_DRAG_END = unsafeCastStringToDOMTopLevelType("dragend"), TOP_DRAG_ENTER = unsafeCastStringToDOMTopLevelType("dragenter"), TOP_DRAG_EXIT = unsafeCastStringToDOMTopLevelType("dragexit"), TOP_DRAG_LEAVE = unsafeCastStringToDOMTopLevelType("dragleave"), TOP_DRAG_OVER = unsafeCastStringToDOMTopLevelType("dragover"), TOP_DRAG_START = unsafeCastStringToDOMTopLevelType("dragstart"), TOP_DROP = unsafeCastStringToDOMTopLevelType("drop"), TOP_DURATION_CHANGE = unsafeCastStringToDOMTopLevelType("durationchange"), TOP_EMPTIED = unsafeCastStringToDOMTopLevelType("emptied"), TOP_ENCRYPTED = unsafeCastStringToDOMTopLevelType("encrypted"), TOP_ENDED = unsafeCastStringToDOMTopLevelType("ended"), TOP_ERROR = unsafeCastStringToDOMTopLevelType("error"), TOP_FOCUS = unsafeCastStringToDOMTopLevelType("focus"), TOP_GOT_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType("gotpointercapture"), TOP_INPUT = unsafeCastStringToDOMTopLevelType("input"), TOP_INVALID = unsafeCastStringToDOMTopLevelType("invalid"), TOP_KEY_DOWN = unsafeCastStringToDOMTopLevelType("keydown"), TOP_KEY_PRESS = unsafeCastStringToDOMTopLevelType("keypress"), TOP_KEY_UP = unsafeCastStringToDOMTopLevelType("keyup"), TOP_LOAD = unsafeCastStringToDOMTopLevelType("load"), TOP_LOAD_START = unsafeCastStringToDOMTopLevelType("loadstart"), TOP_LOADED_DATA = unsafeCastStringToDOMTopLevelType("loadeddata"), TOP_LOADED_METADATA = unsafeCastStringToDOMTopLevelType("loadedmetadata"), TOP_LOST_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType("lostpointercapture"), TOP_MOUSE_DOWN = unsafeCastStringToDOMTopLevelType("mousedown"), TOP_MOUSE_MOVE = unsafeCastStringToDOMTopLevelType("mousemove"), TOP_MOUSE_OUT = unsafeCastStringToDOMTopLevelType("mouseout"), TOP_MOUSE_OVER = unsafeCastStringToDOMTopLevelType("mouseover"), TOP_MOUSE_UP = unsafeCastStringToDOMTopLevelType("mouseup"), TOP_PASTE = unsafeCastStringToDOMTopLevelType("paste"), TOP_PAUSE = unsafeCastStringToDOMTopLevelType("pause"), TOP_PLAY = unsafeCastStringToDOMTopLevelType("play"), TOP_PLAYING = unsafeCastStringToDOMTopLevelType("playing"), TOP_POINTER_CANCEL = unsafeCastStringToDOMTopLevelType("pointercancel"), TOP_POINTER_DOWN = unsafeCastStringToDOMTopLevelType("pointerdown"), TOP_POINTER_MOVE = unsafeCastStringToDOMTopLevelType("pointermove"), TOP_POINTER_OUT = unsafeCastStringToDOMTopLevelType("pointerout"), TOP_POINTER_OVER = unsafeCastStringToDOMTopLevelType("pointerover"), TOP_POINTER_UP = unsafeCastStringToDOMTopLevelType("pointerup"), TOP_PROGRESS = unsafeCastStringToDOMTopLevelType("progress"), TOP_RATE_CHANGE = unsafeCastStringToDOMTopLevelType("ratechange"), TOP_RESET = unsafeCastStringToDOMTopLevelType("reset"), TOP_SCROLL = unsafeCastStringToDOMTopLevelType("scroll"), TOP_SEEKED = unsafeCastStringToDOMTopLevelType("seeked"), TOP_SEEKING = unsafeCastStringToDOMTopLevelType("seeking"), TOP_SELECTION_CHANGE = unsafeCastStringToDOMTopLevelType("selectionchange"), TOP_STALLED = unsafeCastStringToDOMTopLevelType("stalled"), TOP_SUBMIT = unsafeCastStringToDOMTopLevelType("submit"), TOP_SUSPEND = unsafeCastStringToDOMTopLevelType("suspend"), TOP_TEXT_INPUT = unsafeCastStringToDOMTopLevelType("textInput"), TOP_TIME_UPDATE = unsafeCastStringToDOMTopLevelType("timeupdate"), TOP_TOGGLE = unsafeCastStringToDOMTopLevelType("toggle"), TOP_TOUCH_CANCEL = unsafeCastStringToDOMTopLevelType("touchcancel"), TOP_TOUCH_END = unsafeCastStringToDOMTopLevelType("touchend"), TOP_TOUCH_MOVE = unsafeCastStringToDOMTopLevelType("touchmove"), TOP_TOUCH_START = unsafeCastStringToDOMTopLevelType("touchstart"), TOP_TRANSITION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName("transitionend")), TOP_VOLUME_CHANGE = unsafeCastStringToDOMTopLevelType("volumechange"), TOP_WAITING = unsafeCastStringToDOMTopLevelType("waiting"), TOP_WHEEL = unsafeCastStringToDOMTopLevelType("wheel"), mediaEventTypes = [ TOP_ABORT, TOP_CAN_PLAY, TOP_CAN_PLAY_THROUGH, TOP_DURATION_CHANGE, TOP_EMPTIED, TOP_ENCRYPTED, TOP_ENDED, TOP_ERROR, TOP_LOADED_DATA, TOP_LOADED_METADATA, TOP_LOAD_START, TOP_PAUSE, TOP_PLAY, TOP_PLAYING, TOP_PROGRESS, TOP_RATE_CHANGE, TOP_SEEKED, TOP_SEEKING, TOP_STALLED, TOP_SUSPEND, TOP_TIME_UPDATE, TOP_VOLUME_CHANGE, TOP_WAITING ], contentKey = null, compositionState = { 24487 _root: null, 24488 _startText: null, 24489 _fallbackText: null 24490 }, didWarnForAddedNewProperty = !1, EVENT_POOL_SIZE = 10, shouldBeReleasedProperties = [ "dispatchConfig", "_targetInst", "nativeEvent", "isDefaultPrevented", "isPropagationStopped", "_dispatchListeners", "_dispatchInstances" ], EventInterface = { 24491 type: null, 24492 target: null, 24493 currentTarget: emptyFunction.thatReturnsNull, 24494 eventPhase: null, 24495 bubbles: null, 24496 cancelable: null, 24497 timeStamp: function(event) { 24498 return event.timeStamp || Date.now(); 24499 }, 24500 defaultPrevented: null, 24501 isTrusted: null 24502 }; 24503 _assign(SyntheticEvent.prototype, { 24504 preventDefault: function() { 24505 this.defaultPrevented = !0; 24506 var event = this.nativeEvent; 24507 event && (event.preventDefault ? event.preventDefault() : "unknown" != typeof event.returnValue && (event.returnValue = !1), 24508 this.isDefaultPrevented = emptyFunction.thatReturnsTrue); 24509 }, 24510 stopPropagation: function() { 24511 var event = this.nativeEvent; 24512 event && (event.stopPropagation ? event.stopPropagation() : "unknown" != typeof event.cancelBubble && (event.cancelBubble = !0), 24513 this.isPropagationStopped = emptyFunction.thatReturnsTrue); 24514 }, 24515 persist: function() { 24516 this.isPersistent = emptyFunction.thatReturnsTrue; 24517 }, 24518 isPersistent: emptyFunction.thatReturnsFalse, 24519 destructor: function() { 24520 var Interface = this.constructor.Interface; 24521 for (var propName in Interface) Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName])); 24522 for (var i = 0; i < shouldBeReleasedProperties.length; i++) this[shouldBeReleasedProperties[i]] = null; 24523 Object.defineProperty(this, "nativeEvent", getPooledWarningPropertyDefinition("nativeEvent", null)), 24524 Object.defineProperty(this, "preventDefault", getPooledWarningPropertyDefinition("preventDefault", emptyFunction)), 24525 Object.defineProperty(this, "stopPropagation", getPooledWarningPropertyDefinition("stopPropagation", emptyFunction)); 24526 } 24527 }), SyntheticEvent.Interface = EventInterface, SyntheticEvent.extend = function(Interface) { 24528 function Class() { 24529 return Super.apply(this, arguments); 24530 } 24531 var Super = this, E = function() {}; 24532 E.prototype = Super.prototype; 24533 var prototype = new E(); 24534 return _assign(prototype, Class.prototype), Class.prototype = prototype, Class.prototype.constructor = Class, 24535 Class.Interface = _assign({}, Super.Interface, Interface), Class.extend = Super.extend, 24536 addEventPoolingTo(Class), Class; 24537 }, "function" == typeof Proxy && !Object.isSealed(new Proxy({}, {})) && (SyntheticEvent = new Proxy(SyntheticEvent, { 24538 construct: function(target, args) { 24539 return this.apply(target, Object.create(target.prototype), args); 24540 }, 24541 apply: function(constructor, that, args) { 24542 return new Proxy(constructor.apply(that, args), { 24543 set: function(target, prop, value) { 24544 return "isPersistent" === prop || target.constructor.Interface.hasOwnProperty(prop) || -1 !== shouldBeReleasedProperties.indexOf(prop) || (didWarnForAddedNewProperty || target.isPersistent() || warning(!1, "This synthetic event is reused for performance reasons. If you're seeing this, you're adding a new property in the synthetic event object. The property is never released. See https://fb.me/react-event-pooling了解更多信息。“), 24545 didWarnForAddedNewProperty = !0), target[prop] = value, !0; 24546 } 24547 }); 24548 } 24549 })), addEventPoolingTo(SyntheticEvent); 24550 var SyntheticEvent$1 = SyntheticEvent, SyntheticCompositionEvent = SyntheticEvent$1.extend({ 24551 data: null 24552 }), SyntheticInputEvent = SyntheticEvent$1.extend({ 24553 data: null 24554 }), END_KEYCODES = [ 9, 13, 27, 32 ], START_KEYCODE = 229, canUseCompositionEvent = ExecutionEnvironment.canUseDOM && "CompositionEvent" in window, documentMode = null; 24555 ExecutionEnvironment.canUseDOM && "documentMode" in document && (documentMode = document.documentMode); 24556 var canUseTextInputEvent = ExecutionEnvironment.canUseDOM && "TextEvent" in window && !documentMode, useFallbackCompositionData = ExecutionEnvironment.canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11), SPACEBAR_CODE = 32, SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE), eventTypes = { 24557 beforeInput: { 24558 phasedRegistrationNames: { 24559 bubbled: "onBeforeInput", 24560 captured: "onBeforeInputCapture" 24561 }, 24562 dependencies: [ TOP_COMPOSITION_END, TOP_KEY_PRESS, TOP_TEXT_INPUT, TOP_PASTE ] 24563 }, 24564 compositionEnd: { 24565 phasedRegistrationNames: { 24566 bubbled: "onCompositionEnd", 24567 captured: "onCompositionEndCapture" 24568 }, 24569 dependencies: [ TOP_BLUR, TOP_COMPOSITION_END, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN ] 24570 }, 24571 compositionStart: { 24572 phasedRegistrationNames: { 24573 bubbled: "onCompositionStart", 24574 captured: "onCompositionStartCapture" 24575 }, 24576 dependencies: [ TOP_BLUR, TOP_COMPOSITION_START, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN ] 24577 }, 24578 compositionUpdate: { 24579 phasedRegistrationNames: { 24580 bubbled: "onCompositionUpdate", 24581 captured: "onCompositionUpdateCapture" 24582 }, 24583 dependencies: [ TOP_BLUR, TOP_COMPOSITION_UPDATE, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN ] 24584 } 24585 }, hasSpaceKeypress = !1, isComposing = !1, BeforeInputEventPlugin = { 24586 eventTypes: eventTypes, 24587 extractEvents: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) { 24588 var composition = extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget), beforeInput = extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget); 24589 return null === composition ? beforeInput : null === beforeInput ? composition : [ composition, beforeInput ]; 24590 } 24591 }, fiberHostComponent = null, ReactControlledComponentInjection = { 24592 injectFiberControlledHostComponent: function(hostComponentImpl) { 24593 fiberHostComponent = hostComponentImpl; 24594 } 24595 }, restoreTarget = null, restoreQueue = null, injection$2 = ReactControlledComponentInjection, ReactControlledComponent = Object.freeze({ 24596 injection: injection$2, 24597 enqueueStateRestore: enqueueStateRestore, 24598 needsStateRestore: needsStateRestore, 24599 restoreStateIfNeeded: restoreStateIfNeeded 24600 }), _batchedUpdates = function(fn, bookkeeping) { 24601 return fn(bookkeeping); 24602 }, _interactiveUpdates = function(fn, a, b) { 24603 return fn(a, b); 24604 }, _flushInteractiveUpdates = function() {}, isBatching = !1, injection$3 = { 24605 injectRenderer: function(renderer) { 24606 _batchedUpdates = renderer.batchedUpdates, _interactiveUpdates = renderer.interactiveUpdates, 24607 _flushInteractiveUpdates = renderer.flushInteractiveUpdates; 24608 } 24609 }, supportedInputTypes = { 24610 color: !0, 24611 date: !0, 24612 datetime: !0, 24613 "datetime-local": !0, 24614 email: !0, 24615 month: !0, 24616 number: !0, 24617 password: !0, 24618 range: !0, 24619 search: !0, 24620 tel: !0, 24621 text: !0, 24622 time: !0, 24623 url: !0, 24624 week: !0 24625 }, ELEMENT_NODE = 1, TEXT_NODE = 3, COMMENT_NODE = 8, DOCUMENT_NODE = 9, DOCUMENT_FRAGMENT_NODE = 11, ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, ReactCurrentOwner = ReactInternals.ReactCurrentOwner, ReactDebugCurrentFrame = ReactInternals.ReactDebugCurrentFrame, describeComponentFrame = function(name, source, ownerName) { 24626 return "\n in " + (name || "Unknown") + (source ? " (at " + source.fileName.replace(/^.*[\\\/]/, "") + ":" + source.lineNumber + ")" : ownerName ? " (created by " + ownerName + ")" : ""); 24627 }, hasSymbol = "function" == typeof Symbol && Symbol.for, REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103, REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106, REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107, REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108, REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114, REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109, REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110, REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111, REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112, REACT_TIMEOUT_TYPE = hasSymbol ? Symbol.for("react.timeout") : 60113, MAYBE_ITERATOR_SYMBOL = "function" == typeof Symbol && Symbol.iterator, FAUX_ITERATOR_SYMBOL = "@@iterator", ReactDebugCurrentFiber = { 24628 current: null, 24629 phase: null, 24630 resetCurrentFiber: resetCurrentFiber, 24631 setCurrentFiber: setCurrentFiber, 24632 setCurrentPhase: setCurrentPhase, 24633 getCurrentFiberOwnerName: getCurrentFiberOwnerName$1, 24634 getCurrentFiberStackAddendum: getCurrentFiberStackAddendum$1 24635 }, RESERVED = 0, BOOLEANISH_STRING = 2, BOOLEAN = 3, OVERLOADED_BOOLEAN = 4, NUMERIC = 5, POSITIVE_NUMERIC = 6, ATTRIBUTE_NAME_START_CHAR = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040", ROOT_ATTRIBUTE_NAME = "data-reactroot", VALID_ATTRIBUTE_NAME_REGEX = new RegExp("^[" + ATTRIBUTE_NAME_START_CHAR + "][" + ATTRIBUTE_NAME_CHAR + "]*$"), illegalAttributeNameCache = {}, validatedAttributeNameCache = {}, properties = {}; 24636 [ "children", "dangerouslySetInnerHTML", "defaultValue", "defaultChecked", "innerHTML", "suppressContentEditableWarning", "suppressHydrationWarning", "style" ].forEach(function(name) { 24637 properties[name] = new PropertyInfoRecord(name, RESERVED, !1, name, null); 24638 }), [ [ "acceptCharset", "accept-charset" ], [ "className", "class" ], [ "htmlFor", "for" ], [ "httpEquiv", "http-equiv" ] ].forEach(function(_ref) { 24639 var name = _ref[0], attributeName = _ref[1]; 24640 properties[name] = new PropertyInfoRecord(name, 1, !1, attributeName, null); 24641 }), [ "contentEditable", "draggable", "spellCheck", "value" ].forEach(function(name) { 24642 properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, !1, name.toLowerCase(), null); 24643 }), [ "autoReverse", "externalResourcesRequired", "preserveAlpha" ].forEach(function(name) { 24644 properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, !1, name, null); 24645 }), [ "allowFullScreen", "async", "autoFocus", "autoPlay", "controls", "default", "defer", "disabled", "formNoValidate", "hidden", "loop", "noModule", "noValidate", "open", "playsInline", "readOnly", "required", "reversed", "scoped", "seamless", "itemScope" ].forEach(function(name) { 24646 properties[name] = new PropertyInfoRecord(name, BOOLEAN, !1, name.toLowerCase(), null); 24647 }), [ "checked", "multiple", "muted", "selected" ].forEach(function(name) { 24648 properties[name] = new PropertyInfoRecord(name, BOOLEAN, !0, name.toLowerCase(), null); 24649 }), [ "capture", "download" ].forEach(function(name) { 24650 properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, !1, name.toLowerCase(), null); 24651 }), [ "cols", "rows", "size", "span" ].forEach(function(name) { 24652 properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, !1, name.toLowerCase(), null); 24653 }), [ "rowSpan", "start" ].forEach(function(name) { 24654 properties[name] = new PropertyInfoRecord(name, NUMERIC, !1, name.toLowerCase(), null); 24655 }); 24656 var CAMELIZE = /[\-\:]([a-z])/g, capitalize = function(token) { 24657 return token[1].toUpperCase(); 24658 }; 24659 [ "accent-height", "alignment-baseline", "arabic-form", "baseline-shift", "cap-height", "clip-path", "clip-rule", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "dominant-baseline", "enable-background", "fill-opacity", "fill-rule", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "glyph-name", "glyph-orientation-horizontal", "glyph-orientation-vertical", "horiz-adv-x", "horiz-origin-x", "image-rendering", "letter-spacing", "lighting-color", "marker-end", "marker-mid", "marker-start", "overline-position", "overline-thickness", "paint-order", "panose-1", "pointer-events", "rendering-intent", "shape-rendering", "stop-color", "stop-opacity", "strikethrough-position", "strikethrough-thickness", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke-width", "text-anchor", "text-decoration", "text-rendering", "underline-position", "underline-thickness", "unicode-bidi", "unicode-range", "units-per-em", "v-alphabetic", "v-hanging", "v-ideographic", "v-mathematical", "vector-effect", "vert-adv-y", "vert-origin-x", "vert-origin-y", "word-spacing", "writing-mode", "xmlns:xlink", "x-height" ].forEach(function(attributeName) { 24660 var name = attributeName.replace(CAMELIZE, capitalize); 24661 properties[name] = new PropertyInfoRecord(name, 1, !1, attributeName, null); 24662 }), [ "xlink:actuate", "xlink:arcrole", "xlink:href", "xlink:role", "xlink:show", "xlink:title", "xlink:type" ].forEach(function(attributeName) { 24663 var name = attributeName.replace(CAMELIZE, capitalize); 24664 properties[name] = new PropertyInfoRecord(name, 1, !1, attributeName, "http://www.w3.org/1999/xlink);; 24665 }), [ "xml:base", "xml:lang", "xml:space" ].forEach(function(attributeName) { 24666 var name = attributeName.replace(CAMELIZE, capitalize); 24667 properties[name] = new PropertyInfoRecord(name, 1, !1, attributeName, "http://www.w3.org/xml/1998/namespace”); 24668 }), properties.tabIndex = new PropertyInfoRecord("tabIndex", 1, !1, "tabindex", null); 24669 var ReactControlledValuePropTypes = { 24670 checkPropTypes: null 24671 }, hasReadOnlyValue = { 24672 button: !0, 24673 checkbox: !0, 24674 image: !0, 24675 hidden: !0, 24676 radio: !0, 24677 reset: !0, 24678 submit: !0 24679 }, propTypes = { 24680 value: function(props, propName, componentName) { 24681 return !props[propName] || hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled ? null : new Error("You provided a `)) + ("`" + (`value` + "`")))) + (((` prop to a form field without an ` + ("`" + `onChange`)) + ("`" + (` handler. This will render a read-only field. If the field should be mutable use ` + "`"))) + ((`defaultValue` + ("`" + `. Otherwise, set either `)) + ("`" + (`onChange` + "`"))))) + ((((` or ` + ("`" + `readOnly`)) + ("`" + (`."); 24682 }, 24683 checked: function(props, propName, componentName) { 24684 return !props[propName] || props.onChange || props.readOnly || props.disabled ? null : new Error("You provided a ` + "`"))) + ((`checked` + ("`" + ` prop to a form field without an `)) + ("`" + (`onChange` + "`")))) + (((` handler. This will render a read-only field. If the field should be mutable use ` + ("`" + `defaultChecked`)) + ("`" + (`. Otherwise, set either ` + "`"))) + ((`onChange` + ("`" + ` or `)) + (("`" + `readOnly`) + ("`" + `."); 24685 } 24686 }; 24687 ReactControlledValuePropTypes.checkPropTypes = function(tagName, props, getStack) { 24688 checkPropTypes(propTypes, props, "prop", tagName, getStack); 24689 }; 24690 var getCurrentFiberOwnerName = ReactDebugCurrentFiber.getCurrentFiberOwnerName, getCurrentFiberStackAddendum = ReactDebugCurrentFiber.getCurrentFiberStackAddendum, didWarnValueDefaultValue = !1, didWarnCheckedDefaultChecked = !1, didWarnControlledToUncontrolled = !1, didWarnUncontrolledToControlled = !1, eventTypes$1 = { 24691 change: { 24692 phasedRegistrationNames: { 24693 bubbled: "onChange", 24694 captured: "onChangeCapture" 24695 }, 24696 dependencies: [ TOP_BLUR, TOP_CHANGE, TOP_CLICK, TOP_FOCUS, TOP_INPUT, TOP_KEY_DOWN, TOP_KEY_UP, TOP_SELECTION_CHANGE ] 24697 } 24698 }, activeElement = null, activeElementInst = null, isInputEventSupported = !1; 24699 ExecutionEnvironment.canUseDOM && (isInputEventSupported = isEventSupported("input") && (!document.documentMode || document.documentMode > 9)); 24700 var ChangeEventPlugin = { 24701 eventTypes: eventTypes$1, 24702 _isInputEventSupported: isInputEventSupported, 24703 extractEvents: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) { 24704 var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window, getTargetInstFunc = void 0, handleEventFunc = void 0; 24705 if (shouldUseChangeEvent(targetNode) ? getTargetInstFunc = getTargetInstForChangeEvent : isTextInputElement(targetNode) ? isInputEventSupported ? getTargetInstFunc = getTargetInstForInputOrChangeEvent : (getTargetInstFunc = getTargetInstForInputEventPolyfill, 24706 handleEventFunc = handleEventsForInputEventPolyfill) : shouldUseClickEvent(targetNode) && (getTargetInstFunc = getTargetInstForClickEvent), 24707 getTargetInstFunc) { 24708 var inst = getTargetInstFunc(topLevelType, targetInst); 24709 if (inst) { 24710 return createAndAccumulateChangeEvent(inst, nativeEvent, nativeEventTarget); 24711 } 24712 } 24713 handleEventFunc && handleEventFunc(topLevelType, targetNode, targetInst), topLevelType === TOP_BLUR && handleControlledInputBlur(targetInst, targetNode); 24714 } 24715 }, DOMEventPluginOrder = [ "ResponderEventPlugin", "SimpleEventPlugin", "TapEventPlugin", "EnterLeaveEventPlugin", "ChangeEventPlugin", "SelectEventPlugin", "BeforeInputEventPlugin" ], SyntheticUIEvent = SyntheticEvent$1.extend({ 24716 view: null, 24717 detail: null 24718 }), modifierKeyToProp = { 24719 Alt: "altKey", 24720 Control: "ctrlKey", 24721 Meta: "metaKey", 24722 Shift: "shiftKey" 24723 }, SyntheticMouseEvent = SyntheticUIEvent.extend({ 24724 screenX: null, 24725 screenY: null, 24726 clientX: null, 24727 clientY: null, 24728 pageX: null, 24729 pageY: null, 24730 ctrlKey: null, 24731 shiftKey: null, 24732 altKey: null, 24733 metaKey: null, 24734 getModifierState: getEventModifierState, 24735 button: null, 24736 buttons: null, 24737 relatedTarget: function(event) { 24738 return event.relatedTarget || (event.fromElement === event.srcElement ? event.toElement : event.fromElement); 24739 } 24740 }), SyntheticPointerEvent = SyntheticMouseEvent.extend({ 24741 pointerId: null, 24742 width: null, 24743 height: null, 24744 pressure: null, 24745 tiltX: null, 24746 tiltY: null, 24747 pointerType: null, 24748 isPrimary: null 24749 }), eventTypes$2 = { 24750 mouseEnter: { 24751 registrationName: "onMouseEnter", 24752 dependencies: [ TOP_MOUSE_OUT, TOP_MOUSE_OVER ] 24753 }, 24754 mouseLeave: { 24755 registrationName: "onMouseLeave", 24756 dependencies: [ TOP_MOUSE_OUT, TOP_MOUSE_OVER ] 24757 }, 24758 pointerEnter: { 24759 registrationName: "onPointerEnter", 24760 dependencies: [ TOP_POINTER_OUT, TOP_POINTER_OVER ] 24761 }, 24762 pointerLeave: { 24763 registrationName: "onPointerLeave", 24764 dependencies: [ TOP_POINTER_OUT, TOP_POINTER_OVER ] 24765 } 24766 }, EnterLeaveEventPlugin = { 24767 eventTypes: eventTypes$2, 24768 extractEvents: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) { 24769 var isOverEvent = topLevelType === TOP_MOUSE_OVER || topLevelType === TOP_POINTER_OVER, isOutEvent = topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_POINTER_OUT; 24770 if (isOverEvent && (nativeEvent.relatedTarget || nativeEvent.fromElement)) return null; 24771 if (!isOutEvent && !isOverEvent) return null; 24772 var win = void 0; 24773 if (nativeEventTarget.window === nativeEventTarget) win = nativeEventTarget; else { 24774 var doc = nativeEventTarget.ownerDocument; 24775 win = doc ? doc.defaultView || doc.parentWindow : window; 24776 } 24777 var from = void 0, to = void 0; 24778 if (isOutEvent) { 24779 from = targetInst; 24780 var related = nativeEvent.relatedTarget || nativeEvent.toElement; 24781 to = related ? getClosestInstanceFromNode(related) : null; 24782 } else from = null, to = targetInst; 24783 if (from === to) return null; 24784 var eventInterface = void 0, leaveEventType = void 0, enterEventType = void 0, eventTypePrefix = void 0; 24785 topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_MOUSE_OVER ? (eventInterface = SyntheticMouseEvent, 24786 leaveEventType = eventTypes$2.mouseLeave, enterEventType = eventTypes$2.mouseEnter, 24787 eventTypePrefix = "mouse") : topLevelType !== TOP_POINTER_OUT && topLevelType !== TOP_POINTER_OVER || (eventInterface = SyntheticPointerEvent, 24788 leaveEventType = eventTypes$2.pointerLeave, enterEventType = eventTypes$2.pointerEnter, 24789 eventTypePrefix = "pointer"); 24790 var fromNode = null == from ? win : getNodeFromInstance$1(from), toNode = null == to ? win : getNodeFromInstance$1(to), leave = eventInterface.getPooled(leaveEventType, from, nativeEvent, nativeEventTarget); 24791 leave.type = eventTypePrefix + "leave", leave.target = fromNode, leave.relatedTarget = toNode; 24792 var enter = eventInterface.getPooled(enterEventType, to, nativeEvent, nativeEventTarget); 24793 return enter.type = eventTypePrefix + "enter", enter.target = toNode, enter.relatedTarget = fromNode, 24794 accumulateEnterLeaveDispatches(leave, enter, from, to), [ leave, enter ]; 24795 } 24796 }, NoEffect = 0, PerformedWork = 1, Placement = 2, Update = 4, PlacementAndUpdate = 6, Deletion = 8, ContentReset = 16, Callback = 32, DidCapture = 64, Ref = 128, Snapshot = 256, HostEffectMask = 511, Incomplete = 512, ShouldCapture = 1024, MOUNTING = 1, MOUNTED = 2, UNMOUNTED = 3, SyntheticAnimationEvent = SyntheticEvent$1.extend({ 24797 animationName: null, 24798 elapsedTime: null, 24799 pseudoElement: null 24800 }), SyntheticClipboardEvent = SyntheticEvent$1.extend({ 24801 clipboardData: function(event) { 24802 return "clipboardData" in event ? event.clipboardData : window.clipboardData; 24803 } 24804 }), SyntheticFocusEvent = SyntheticUIEvent.extend({ 24805 relatedTarget: null 24806 }), normalizeKey = { 24807 Esc: "Escape", 24808 Spacebar: " ", 24809 Left: "ArrowLeft", 24810 Up: "ArrowUp", 24811 Right: "ArrowRight", 24812 Down: "ArrowDown", 24813 Del: "Delete", 24814 Win: "OS", 24815 Menu: "ContextMenu", 24816 Apps: "ContextMenu", 24817 Scroll: "ScrollLock", 24818 MozPrintableKey: "Unidentified" 24819 }, translateToKey = { 24820 "8": "Backspace", 24821 "9": "Tab", 24822 "12": "Clear", 24823 "13": "Enter", 24824 "16": "Shift", 24825 "17": "Control", 24826 "18": "Alt", 24827 "19": "Pause", 24828 "20": "CapsLock", 24829 "27": "Escape", 24830 "32": " ", 24831 "33": "PageUp", 24832 "34": "PageDown", 24833 "35": "End", 24834 "36": "Home", 24835 "37": "ArrowLeft", 24836 "38": "ArrowUp", 24837 "39": "ArrowRight", 24838 "40": "ArrowDown", 24839 "45": "Insert", 24840 "46": "Delete", 24841 "112": "F1", 24842 "113": "F2", 24843 "114": "F3", 24844 "115": "F4", 24845 "116": "F5", 24846 "117": "F6", 24847 "118": "F7", 24848 "119": "F8", 24849 "120": "F9", 24850 "121": "F10", 24851 "122": "F11", 24852 "123": "F12", 24853 "144": "NumLock", 24854 "145": "ScrollLock", 24855 "224": "Meta" 24856 }, SyntheticKeyboardEvent = SyntheticUIEvent.extend({ 24857 key: getEventKey, 24858 location: null, 24859 ctrlKey: null, 24860 shiftKey: null, 24861 altKey: null, 24862 metaKey: null, 24863 repeat: null, 24864 locale: null, 24865 getModifierState: getEventModifierState, 24866 charCode: function(event) { 24867 return "keypress" === event.type ? getEventCharCode(event) : 0; 24868 }, 24869 keyCode: function(event) { 24870 return "keydown" === event.type || "keyup" === event.type ? event.keyCode : 0; 24871 }, 24872 which: function(event) { 24873 return "keypress" === event.type ? getEventCharCode(event) : "keydown" === event.type || "keyup" === event.type ? event.keyCode : 0; 24874 } 24875 }), SyntheticDragEvent = SyntheticMouseEvent.extend({ 24876 dataTransfer: null 24877 }), SyntheticTouchEvent = SyntheticUIEvent.extend({ 24878 touches: null, 24879 targetTouches: null, 24880 changedTouches: null, 24881 altKey: null, 24882 metaKey: null, 24883 ctrlKey: null, 24884 shiftKey: null, 24885 getModifierState: getEventModifierState 24886 }), SyntheticTransitionEvent = SyntheticEvent$1.extend({ 24887 propertyName: null, 24888 elapsedTime: null, 24889 pseudoElement: null 24890 }), SyntheticWheelEvent = SyntheticMouseEvent.extend({ 24891 deltaX: function(event) { 24892 return "deltaX" in event ? event.deltaX : "wheelDeltaX" in event ? -event.wheelDeltaX : 0; 24893 }, 24894 deltaY: function(event) { 24895 return "deltaY" in event ? event.deltaY : "wheelDeltaY" in event ? -event.wheelDeltaY : "wheelDelta" in event ? -event.wheelDelta : 0; 24896 }, 24897 deltaZ: null, 24898 deltaMode: null 24899 }), interactiveEventTypeNames = [ [ TOP_BLUR, "blur" ], [ TOP_CANCEL, "cancel" ], [ TOP_CLICK, "click" ], [ TOP_CLOSE, "close" ], [ TOP_CONTEXT_MENU, "contextMenu" ], [ TOP_COPY, "copy" ], [ TOP_CUT, "cut" ], [ TOP_DOUBLE_CLICK, "doubleClick" ], [ TOP_DRAG_END, "dragEnd" ], [ TOP_DRAG_START, "dragStart" ], [ TOP_DROP, "drop" ], [ TOP_FOCUS, "focus" ], [ TOP_INPUT, "input" ], [ TOP_INVALID, "invalid" ], [ TOP_KEY_DOWN, "keyDown" ], [ TOP_KEY_PRESS, "keyPress" ], [ TOP_KEY_UP, "keyUp" ], [ TOP_MOUSE_DOWN, "mouseDown" ], [ TOP_MOUSE_UP, "mouseUp" ], [ TOP_PASTE, "paste" ], [ TOP_PAUSE, "pause" ], [ TOP_PLAY, "play" ], [ TOP_POINTER_CANCEL, "pointerCancel" ], [ TOP_POINTER_DOWN, "pointerDown" ], [ TOP_POINTER_UP, "pointerUp" ], [ TOP_RATE_CHANGE, "rateChange" ], [ TOP_RESET, "reset" ], [ TOP_SEEKED, "seeked" ], [ TOP_SUBMIT, "submit" ], [ TOP_TOUCH_CANCEL, "touchCancel" ], [ TOP_TOUCH_END, "touchEnd" ], [ TOP_TOUCH_START, "touchStart" ], [ TOP_VOLUME_CHANGE, "volumeChange" ] ], nonInteractiveEventTypeNames = [ [ TOP_ABORT, "abort" ], [ TOP_ANIMATION_END, "animationEnd" ], [ TOP_ANIMATION_ITERATION, "animationIteration" ], [ TOP_ANIMATION_START, "animationStart" ], [ TOP_CAN_PLAY, "canPlay" ], [ TOP_CAN_PLAY_THROUGH, "canPlayThrough" ], [ TOP_DRAG, "drag" ], [ TOP_DRAG_ENTER, "dragEnter" ], [ TOP_DRAG_EXIT, "dragExit" ], [ TOP_DRAG_LEAVE, "dragLeave" ], [ TOP_DRAG_OVER, "dragOver" ], [ TOP_DURATION_CHANGE, "durationChange" ], [ TOP_EMPTIED, "emptied" ], [ TOP_ENCRYPTED, "encrypted" ], [ TOP_ENDED, "ended" ], [ TOP_ERROR, "error" ], [ TOP_GOT_POINTER_CAPTURE, "gotPointerCapture" ], [ TOP_LOAD, "load" ], [ TOP_LOADED_DATA, "loadedData" ], [ TOP_LOADED_METADATA, "loadedMetadata" ], [ TOP_LOAD_START, "loadStart" ], [ TOP_LOST_POINTER_CAPTURE, "lostPointerCapture" ], [ TOP_MOUSE_MOVE, "mouseMove" ], [ TOP_MOUSE_OUT, "mouseOut" ], [ TOP_MOUSE_OVER, "mouseOver" ], [ TOP_PLAYING, "playing" ], [ TOP_POINTER_MOVE, "pointerMove" ], [ TOP_POINTER_OUT, "pointerOut" ], [ TOP_POINTER_OVER, "pointerOver" ], [ TOP_PROGRESS, "progress" ], [ TOP_SCROLL, "scroll" ], [ TOP_SEEKING, "seeking" ], [ TOP_STALLED, "stalled" ], [ TOP_SUSPEND, "suspend" ], [ TOP_TIME_UPDATE, "timeUpdate" ], [ TOP_TOGGLE, "toggle" ], [ TOP_TOUCH_MOVE, "touchMove" ], [ TOP_TRANSITION_END, "transitionEnd" ], [ TOP_WAITING, "waiting" ], [ TOP_WHEEL, "wheel" ] ], eventTypes$4 = {}, topLevelEventsToDispatchConfig = {}; 24900 interactiveEventTypeNames.forEach(function(eventTuple) { 24901 addEventTypeNameToConfig(eventTuple, !0); 24902 }), nonInteractiveEventTypeNames.forEach(function(eventTuple) { 24903 addEventTypeNameToConfig(eventTuple, !1); 24904 }); 24905 var knownHTMLTopLevelTypes = [ TOP_ABORT, TOP_CANCEL, TOP_CAN_PLAY, TOP_CAN_PLAY_THROUGH, TOP_CLOSE, TOP_DURATION_CHANGE, TOP_EMPTIED, TOP_ENCRYPTED, TOP_ENDED, TOP_ERROR, TOP_INPUT, TOP_INVALID, TOP_LOAD, TOP_LOADED_DATA, TOP_LOADED_METADATA, TOP_LOAD_START, TOP_PAUSE, TOP_PLAY, TOP_PLAYING, TOP_PROGRESS, TOP_RATE_CHANGE, TOP_RESET, TOP_SEEKED, TOP_SEEKING, TOP_STALLED, TOP_SUBMIT, TOP_SUSPEND, TOP_TIME_UPDATE, TOP_TOGGLE, TOP_VOLUME_CHANGE, TOP_WAITING ], SimpleEventPlugin = { 24906 eventTypes: eventTypes$4, 24907 isInteractiveTopLevelEventType: function(topLevelType) { 24908 var config = topLevelEventsToDispatchConfig[topLevelType]; 24909 return void 0 !== config && !0 === config.isInteractive; 24910 }, 24911 extractEvents: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) { 24912 var dispatchConfig = topLevelEventsToDispatchConfig[topLevelType]; 24913 if (!dispatchConfig) return null; 24914 var EventConstructor = void 0; 24915 switch (topLevelType) { 24916 case TOP_KEY_PRESS: 24917 if (0 === getEventCharCode(nativeEvent)) return null; 24918 24919 case TOP_KEY_DOWN: 24920 case TOP_KEY_UP: 24921 EventConstructor = SyntheticKeyboardEvent; 24922 break; 24923 24924 case TOP_BLUR: 24925 case TOP_FOCUS: 24926 EventConstructor = SyntheticFocusEvent; 24927 break; 24928 24929 case TOP_CLICK: 24930 if (2 === nativeEvent.button) return null; 24931 24932 case TOP_DOUBLE_CLICK: 24933 case TOP_MOUSE_DOWN: 24934 case TOP_MOUSE_MOVE: 24935 case TOP_MOUSE_UP: 24936 case TOP_MOUSE_OUT: 24937 case TOP_MOUSE_OVER: 24938 case TOP_CONTEXT_MENU: 24939 EventConstructor = SyntheticMouseEvent; 24940 break; 24941 24942 case TOP_DRAG: 24943 case TOP_DRAG_END: 24944 case TOP_DRAG_ENTER: 24945 case TOP_DRAG_EXIT: 24946 case TOP_DRAG_LEAVE: 24947 case TOP_DRAG_OVER: 24948 case TOP_DRAG_START: 24949 case TOP_DROP: 24950 EventConstructor = SyntheticDragEvent; 24951 break; 24952 24953 case TOP_TOUCH_CANCEL: 24954 case TOP_TOUCH_END: 24955 case TOP_TOUCH_MOVE: 24956 case TOP_TOUCH_START: 24957 EventConstructor = SyntheticTouchEvent; 24958 break; 24959 24960 case TOP_ANIMATION_END: 24961 case TOP_ANIMATION_ITERATION: 24962 case TOP_ANIMATION_START: 24963 EventConstructor = SyntheticAnimationEvent; 24964 break; 24965 24966 case TOP_TRANSITION_END: 24967 EventConstructor = SyntheticTransitionEvent; 24968 break; 24969 24970 case TOP_SCROLL: 24971 EventConstructor = SyntheticUIEvent; 24972 break; 24973 24974 case TOP_WHEEL: 24975 EventConstructor = SyntheticWheelEvent; 24976 break; 24977 24978 case TOP_COPY: 24979 case TOP_CUT: 24980 case TOP_PASTE: 24981 EventConstructor = SyntheticClipboardEvent; 24982 break; 24983 24984 case TOP_GOT_POINTER_CAPTURE: 24985 case TOP_LOST_POINTER_CAPTURE: 24986 case TOP_POINTER_CANCEL: 24987 case TOP_POINTER_DOWN: 24988 case TOP_POINTER_MOVE: 24989 case TOP_POINTER_OUT: 24990 case TOP_POINTER_OVER: 24991 case TOP_POINTER_UP: 24992 EventConstructor = SyntheticPointerEvent; 24993 break; 24994 24995 default: 24996 -1 === knownHTMLTopLevelTypes.indexOf(topLevelType) && warning(!1, "SimpleEventPlugin: Unhandled event type, `))))))))) + (((((((("`" + (`%s` + "`")) + (`. This warning is likely caused by a bug in React. Please file an issue.", topLevelType), 24997 EventConstructor = SyntheticEvent$1; 24998 } 24999 var event = EventConstructor.getPooled(dispatchConfig, targetInst, nativeEvent, nativeEventTarget); 25000 return accumulateTwoPhaseDispatches(event), event; 25001 } 25002 }, isInteractiveTopLevelEventType = SimpleEventPlugin.isInteractiveTopLevelEventType, CALLBACK_BOOKKEEPING_POOL_SIZE = 10, callbackBookkeepingPool = [], _enabled = !0, ReactDOMEventListener = Object.freeze({ 25003 get _enabled() { 25004 return _enabled; 25005 }, 25006 setEnabled: setEnabled, 25007 isEnabled: isEnabled, 25008 trapBubbledEvent: trapBubbledEvent, 25009 trapCapturedEvent: trapCapturedEvent, 25010 dispatchEvent: dispatchEvent 25011 }), alreadyListeningTo = {}, reactTopListenersCounter = 0, topListenersIDKey = "_reactListenersID" + ("" + Math.random()).slice(2), skipSelectionChangeEvent = ExecutionEnvironment.canUseDOM && "documentMode" in document && document.documentMode <= 11, eventTypes$3 = { 25012 select: { 25013 phasedRegistrationNames: { 25014 bubbled: "onSelect", 25015 captured: "onSelectCapture" 25016 }, 25017 dependencies: [ TOP_BLUR, TOP_CONTEXT_MENU, TOP_FOCUS, TOP_KEY_DOWN, TOP_KEY_UP, TOP_MOUSE_DOWN, TOP_MOUSE_UP, TOP_SELECTION_CHANGE ] 25018 } 25019 }, activeElement$1 = null, activeElementInst$1 = null, lastSelection = null, mouseDown = !1, SelectEventPlugin = { 25020 eventTypes: eventTypes$3, 25021 extractEvents: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) { 25022 var doc = nativeEventTarget.window === nativeEventTarget ? nativeEventTarget.document : nativeEventTarget.nodeType === DOCUMENT_NODE ? nativeEventTarget : nativeEventTarget.ownerDocument; 25023 if (!doc || !isListeningToAllDependencies("onSelect", doc)) return null; 25024 var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window; 25025 switch (topLevelType) { 25026 case TOP_FOCUS: 25027 (isTextInputElement(targetNode) || "true" === targetNode.contentEditable) && (activeElement$1 = targetNode, 25028 activeElementInst$1 = targetInst, lastSelection = null); 25029 break; 25030 25031 case TOP_BLUR: 25032 activeElement$1 = null, activeElementInst$1 = null, lastSelection = null; 25033 break; 25034 25035 case TOP_MOUSE_DOWN: 25036 mouseDown = !0; 25037 break; 25038 25039 case TOP_CONTEXT_MENU: 25040 case TOP_MOUSE_UP: 25041 return mouseDown = !1, constructSelectEvent(nativeEvent, nativeEventTarget); 25042 25043 case TOP_SELECTION_CHANGE: 25044 if (skipSelectionChangeEvent) break; 25045 25046 case TOP_KEY_DOWN: 25047 case TOP_KEY_UP: 25048 return constructSelectEvent(nativeEvent, nativeEventTarget); 25049 } 25050 return null; 25051 } 25052 }; 25053 injection.injectEventPluginOrder(DOMEventPluginOrder), injection$1.injectComponentTree(ReactDOMComponentTree), 25054 injection.injectEventPluginsByName({ 25055 SimpleEventPlugin: SimpleEventPlugin, 25056 EnterLeaveEventPlugin: EnterLeaveEventPlugin, 25057 ChangeEventPlugin: ChangeEventPlugin, 25058 SelectEventPlugin: SelectEventPlugin, 25059 BeforeInputEventPlugin: BeforeInputEventPlugin 25060 }), ExecutionEnvironment.canUseDOM && "function" != typeof requestAnimationFrame && warning(!1, "React depends on requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react polyfills);; 25061 var hasNativePerformanceNow = "object" == typeof performance && "function" == typeof performance.now, now$1 = void 0; 25062 now$1 = hasNativePerformanceNow ? function() { 25063 return performance.now(); 25064 } : function() { 25065 return Date.now(); 25066 }; 25067 var scheduleWork = void 0, cancelScheduledWork = void 0; 25068 if (ExecutionEnvironment.canUseDOM) { 25069 var pendingCallbacks = [], _callbackIdCounter = 0, getCallbackId = function() { 25070 return ++_callbackIdCounter; 25071 }, registeredCallbackIds = {}, nextSoonestTimeoutTime = -1, isIdleScheduled = !1, isAnimationFrameScheduled = !1, frameDeadline = 0, previousFrameTime = 33, activeFrameTime = 33, frameDeadlineObject = { 25072 didTimeout: !1, 25073 timeRemaining: function() { 25074 var remaining = frameDeadline - now$1(); 25075 return remaining > 0 ? remaining : 0; 25076 } 25077 }, safelyCallScheduledCallback = function(callback, callbackId) { 25078 if (registeredCallbackIds[callbackId]) try { 25079 callback(frameDeadlineObject); 25080 } finally { 25081 delete registeredCallbackIds[callbackId]; 25082 } 25083 }, callTimedOutCallbacks = function() { 25084 if (0 !== pendingCallbacks.length) { 25085 var currentTime = now$1(); 25086 if (!(-1 === nextSoonestTimeoutTime || nextSoonestTimeoutTime > currentTime)) { 25087 nextSoonestTimeoutTime = -1, frameDeadlineObject.didTimeout = !0; 25088 for (var i = 0, len = pendingCallbacks.length; i < len; i++) { 25089 var currentCallbackConfig = pendingCallbacks[i], _timeoutTime = currentCallbackConfig.timeoutTime; 25090 if (-1 !== _timeoutTime && _timeoutTime <= currentTime) { 25091 var _callback = currentCallbackConfig.scheduledCallback; 25092 safelyCallScheduledCallback(_callback, currentCallbackConfig.callbackId); 25093 } else -1 !== _timeoutTime && (-1 === nextSoonestTimeoutTime || _timeoutTime < nextSoonestTimeoutTime) && (nextSoonestTimeoutTime = _timeoutTime); 25094 } 25095 } 25096 } 25097 }, messageKey = "__reactIdleCallback$" + Math.random().toString(36).slice(2), idleTick = function(event) { 25098 if (event.source === window && event.data === messageKey && (isIdleScheduled = !1, 25099 0 !== pendingCallbacks.length)) { 25100 callTimedOutCallbacks(); 25101 for (var currentTime = now$1(); frameDeadline - currentTime > 0 && pendingCallbacks.length > 0; ) { 25102 var latestCallbackConfig = pendingCallbacks.shift(); 25103 frameDeadlineObject.didTimeout = !1; 25104 var latestCallback = latestCallbackConfig.scheduledCallback, newCallbackId = latestCallbackConfig.callbackId; 25105 safelyCallScheduledCallback(latestCallback, newCallbackId), currentTime = now$1(); 25106 } 25107 pendingCallbacks.length > 0 && (isAnimationFrameScheduled || (isAnimationFrameScheduled = !0, 25108 requestAnimationFrame(animationTick))); 25109 } 25110 }; 25111 window.addEventListener("message", idleTick, !1); 25112 var animationTick = function(rafTime) { 25113 isAnimationFrameScheduled = !1; 25114 var nextFrameTime = rafTime - frameDeadline + activeFrameTime; 25115 nextFrameTime < activeFrameTime && previousFrameTime < activeFrameTime ? (nextFrameTime < 8 && (nextFrameTime = 8), 25116 activeFrameTime = nextFrameTime < previousFrameTime ? previousFrameTime : nextFrameTime) : previousFrameTime = nextFrameTime, 25117 frameDeadline = rafTime + activeFrameTime, isIdleScheduled || (isIdleScheduled = !0, 25118 window.postMessage(messageKey, "*")); 25119 }; 25120 scheduleWork = function(callback, options) { 25121 var timeoutTime = -1; 25122 null != options && "number" == typeof options.timeout && (timeoutTime = now$1() + options.timeout), 25123 (-1 === nextSoonestTimeoutTime || -1 !== timeoutTime && timeoutTime < nextSoonestTimeoutTime) && (nextSoonestTimeoutTime = timeoutTime); 25124 var newCallbackId = getCallbackId(), scheduledCallbackConfig = { 25125 scheduledCallback: callback, 25126 callbackId: newCallbackId, 25127 timeoutTime: timeoutTime 25128 }; 25129 return pendingCallbacks.push(scheduledCallbackConfig), registeredCallbackIds[newCallbackId] = !0, 25130 isAnimationFrameScheduled || (isAnimationFrameScheduled = !0, requestAnimationFrame(animationTick)), 25131 newCallbackId; 25132 }, cancelScheduledWork = function(callbackId) { 25133 delete registeredCallbackIds[callbackId]; 25134 }; 25135 } else { 25136 var callbackIdCounter = 0, timeoutIds = {}; 25137 scheduleWork = function(callback, options) { 25138 var callbackId = callbackIdCounter++, timeoutId = setTimeout(function() { 25139 callback({ 25140 timeRemaining: function() { 25141 return 1 / 0; 25142 }, 25143 didTimeout: !1 25144 }); 25145 }); 25146 return timeoutIds[callbackId] = timeoutId, callbackId; 25147 }, cancelScheduledWork = function(callbackId) { 25148 var timeoutId = timeoutIds[callbackId]; 25149 delete timeoutIds[callbackId], clearTimeout(timeoutId); 25150 }; 25151 } 25152 var didWarnSelectedSetOnOption = !1, getCurrentFiberOwnerName$3 = ReactDebugCurrentFiber.getCurrentFiberOwnerName, getCurrentFiberStackAddendum$3 = ReactDebugCurrentFiber.getCurrentFiberStackAddendum, didWarnValueDefaultValue$1 = void 0; 25153 didWarnValueDefaultValue$1 = !1; 25154 var valuePropNames = [ "value", "defaultValue" ], getCurrentFiberStackAddendum$4 = ReactDebugCurrentFiber.getCurrentFiberStackAddendum, didWarnValDefaultVal = !1, HTML_NAMESPACE$1 = "http://www.w3.org/1999/xhtml", MATH_NAMESPACE = "http://www.w3.org/1998/Math/MathML", SVG_NAMESPACE = "http://www.w3.org/2000/svg", Namespaces = { 25155 html: HTML_NAMESPACE$1, 25156 mathml: MATH_NAMESPACE, 25157 svg: SVG_NAMESPACE 25158 }, reusableSVGContainer = void 0, setInnerHTML = function(func) { 25159 return "undefined" != typeof MSApp && MSApp.execUnsafeLocalFunction ? function(arg0, arg1, arg2, arg3) { 25160 MSApp.execUnsafeLocalFunction(function() { 25161 return func(arg0, arg1, arg2, arg3); 25162 }); 25163 } : func; 25164 }(function(node, html) { 25165 if (node.namespaceURI !== Namespaces.svg || "innerHTML" in node) node.innerHTML = html; else { 25166 reusableSVGContainer = reusableSVGContainer || document.createElement("div"), reusableSVGContainer.innerHTML = "<svg>" + html + "</svg>"; 25167 for (var svgNode = reusableSVGContainer.firstChild; node.firstChild; ) node.removeChild(node.firstChild); 25168 for (;svgNode.firstChild; ) node.appendChild(svgNode.firstChild); 25169 } 25170 }), setTextContent = function(node, text) { 25171 if (text) { 25172 var firstChild = node.firstChild; 25173 if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE) return void (firstChild.nodeValue = text); 25174 } 25175 node.textContent = text; 25176 }, isUnitlessNumber = { 25177 animationIterationCount: !0, 25178 borderImageOutset: !0, 25179 borderImageSlice: !0, 25180 borderImageWidth: !0, 25181 boxFlex: !0, 25182 boxFlexGroup: !0, 25183 boxOrdinalGroup: !0, 25184 columnCount: !0, 25185 columns: !0, 25186 flex: !0, 25187 flexGrow: !0, 25188 flexPositive: !0, 25189 flexShrink: !0, 25190 flexNegative: !0, 25191 flexOrder: !0, 25192 gridRow: !0, 25193 gridRowEnd: !0, 25194 gridRowSpan: !0, 25195 gridRowStart: !0, 25196 gridColumn: !0, 25197 gridColumnEnd: !0, 25198 gridColumnSpan: !0, 25199 gridColumnStart: !0, 25200 fontWeight: !0, 25201 lineClamp: !0, 25202 lineHeight: !0, 25203 opacity: !0, 25204 order: !0, 25205 orphans: !0, 25206 tabSize: !0, 25207 widows: !0, 25208 zIndex: !0, 25209 zoom: !0, 25210 fillOpacity: !0, 25211 floodOpacity: !0, 25212 stopOpacity: !0, 25213 strokeDasharray: !0, 25214 strokeDashoffset: !0, 25215 strokeMiterlimit: !0, 25216 strokeOpacity: !0, 25217 strokeWidth: !0 25218 }, prefixes = [ "Webkit", "ms", "Moz", "O" ]; 25219 Object.keys(isUnitlessNumber).forEach(function(prop) { 25220 prefixes.forEach(function(prefix) { 25221 isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop]; 25222 }); 25223 }); 25224 var warnValidStyle = emptyFunction, badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/, badStyleValueWithSemicolonPattern = /;\s*$/, warnedStyleNames = {}, warnedStyleValues = {}, warnedForNaNValue = !1, warnedForInfinityValue = !1, warnHyphenatedStyleName = function(name, getStack) { 25225 warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name] || (warnedStyleNames[name] = !0, 25226 warning(!1, "Unsupported style property %s. Did you mean %s?%s", name, camelizeStyleName(name), getStack())); 25227 }, warnBadVendoredStyleName = function(name, getStack) { 25228 warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name] || (warnedStyleNames[name] = !0, 25229 warning(!1, "Unsupported vendor-prefixed style property %s. Did you mean %s?%s", name, name.charAt(0).toUpperCase() + name.slice(1), getStack())); 25230 }, warnStyleValueWithSemicolon = function(name, value, getStack) { 25231 warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value] || (warnedStyleValues[value] = !0, 25232 warning(!1, 'Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.%s', name, value.replace(badStyleValueWithSemicolonPattern, ""), getStack())); 25233 }, warnStyleValueIsNaN = function(name, value, getStack) { 25234 warnedForNaNValue || (warnedForNaNValue = !0, warning(!1, "` + ("`" + `NaN`))) + (("`" + (` is an invalid value for the ` + "`")) + (`%s` + ("`" + ` css style property.%s", name, getStack())); 25235 }, warnStyleValueIsInfinity = function(name, value, getStack) { 25236 warnedForInfinityValue || (warnedForInfinityValue = !0, warning(!1, "`)))) + ((("`" + (`Infinity` + "`")) + (` is an invalid value for the ` + ("`" + `%s`))) + (("`" + (` css style property.%s", name, getStack())); 25237 }; 25238 warnValidStyle = function(name, value, getStack) { 25239 name.indexOf("-") > -1 ? warnHyphenatedStyleName(name, getStack) : badVendoredStyleNamePattern.test(name) ? warnBadVendoredStyleName(name, getStack) : badStyleValueWithSemicolonPattern.test(value) && warnStyleValueWithSemicolon(name, value, getStack), 25240 "number" == typeof value && (isNaN(value) ? warnStyleValueIsNaN(name, 0, getStack) : isFinite(value) || warnStyleValueIsInfinity(name, 0, getStack)); 25241 }; 25242 var warnValidStyle$1 = warnValidStyle, omittedCloseTags = { 25243 area: !0, 25244 base: !0, 25245 br: !0, 25246 col: !0, 25247 embed: !0, 25248 hr: !0, 25249 img: !0, 25250 input: !0, 25251 keygen: !0, 25252 link: !0, 25253 meta: !0, 25254 param: !0, 25255 source: !0, 25256 track: !0, 25257 wbr: !0 25258 }, voidElementTags = _assign({ 25259 menuitem: !0 25260 }, omittedCloseTags), HTML$1 = "__html", possibleStandardNames = { 25261 accept: "accept", 25262 acceptcharset: "acceptCharset", 25263 "accept-charset": "acceptCharset", 25264 accesskey: "accessKey", 25265 action: "action", 25266 allowfullscreen: "allowFullScreen", 25267 alt: "alt", 25268 as: "as", 25269 async: "async", 25270 autocapitalize: "autoCapitalize", 25271 autocomplete: "autoComplete", 25272 autocorrect: "autoCorrect", 25273 autofocus: "autoFocus", 25274 autoplay: "autoPlay", 25275 autosave: "autoSave", 25276 capture: "capture", 25277 cellpadding: "cellPadding", 25278 cellspacing: "cellSpacing", 25279 challenge: "challenge", 25280 charset: "charSet", 25281 checked: "checked", 25282 children: "children", 25283 cite: "cite", 25284 class: "className", 25285 classid: "classID", 25286 classname: "className", 25287 cols: "cols", 25288 colspan: "colSpan", 25289 content: "content", 25290 contenteditable: "contentEditable", 25291 contextmenu: "contextMenu", 25292 controls: "controls", 25293 controlslist: "controlsList", 25294 coords: "coords", 25295 crossorigin: "crossOrigin", 25296 dangerouslysetinnerhtml: "dangerouslySetInnerHTML", 25297 data: "data", 25298 datetime: "dateTime", 25299 default: "default", 25300 defaultchecked: "defaultChecked", 25301 defaultvalue: "defaultValue", 25302 defer: "defer", 25303 dir: "dir", 25304 disabled: "disabled", 25305 download: "download", 25306 draggable: "draggable", 25307 enctype: "encType", 25308 for: "htmlFor", 25309 form: "form", 25310 formmethod: "formMethod", 25311 formaction: "formAction", 25312 formenctype: "formEncType", 25313 formnovalidate: "formNoValidate", 25314 formtarget: "formTarget", 25315 frameborder: "frameBorder", 25316 headers: "headers", 25317 height: "height", 25318 hidden: "hidden", 25319 high: "high", 25320 href: "href", 25321 hreflang: "hrefLang", 25322 htmlfor: "htmlFor", 25323 httpequiv: "httpEquiv", 25324 "http-equiv": "httpEquiv", 25325 icon: "icon", 25326 id: "id", 25327 innerhtml: "innerHTML", 25328 inputmode: "inputMode", 25329 integrity: "integrity", 25330 is: "is", 25331 itemid: "itemID", 25332 itemprop: "itemProp", 25333 itemref: "itemRef", 25334 itemscope: "itemScope", 25335 itemtype: "itemType", 25336 keyparams: "keyParams", 25337 keytype: "keyType", 25338 kind: "kind", 25339 label: "label", 25340 lang: "lang", 25341 list: "list", 25342 loop: "loop", 25343 low: "low", 25344 manifest: "manifest", 25345 marginwidth: "marginWidth", 25346 marginheight: "marginHeight", 25347 max: "max", 25348 maxlength: "maxLength", 25349 media: "media", 25350 mediagroup: "mediaGroup", 25351 method: "method", 25352 min: "min", 25353 minlength: "minLength", 25354 multiple: "multiple", 25355 muted: "muted", 25356 name: "name", 25357 nomodule: "noModule", 25358 nonce: "nonce", 25359 novalidate: "noValidate", 25360 open: "open", 25361 optimum: "optimum", 25362 pattern: "pattern", 25363 placeholder: "placeholder", 25364 playsinline: "playsInline", 25365 poster: "poster", 25366 preload: "preload", 25367 profile: "profile", 25368 radiogroup: "radioGroup", 25369 readonly: "readOnly", 25370 referrerpolicy: "referrerPolicy", 25371 rel: "rel", 25372 required: "required", 25373 reversed: "reversed", 25374 role: "role", 25375 rows: "rows", 25376 rowspan: "rowSpan", 25377 sandbox: "sandbox", 25378 scope: "scope", 25379 scoped: "scoped", 25380 scrolling: "scrolling", 25381 seamless: "seamless", 25382 selected: "selected", 25383 shape: "shape", 25384 size: "size", 25385 sizes: "sizes", 25386 span: "span", 25387 spellcheck: "spellCheck", 25388 src: "src", 25389 srcdoc: "srcDoc", 25390 srclang: "srcLang", 25391 srcset: "srcSet", 25392 start: "start", 25393 step: "step", 25394 style: "style", 25395 summary: "summary", 25396 tabindex: "tabIndex", 25397 target: "target", 25398 title: "title", 25399 type: "type", 25400 usemap: "useMap", 25401 value: "value", 25402 width: "width", 25403 wmode: "wmode", 25404 wrap: "wrap", 25405 about: "about", 25406 accentheight: "accentHeight", 25407 "accent-height": "accentHeight", 25408 accumulate: "accumulate", 25409 additive: "additive", 25410 alignmentbaseline: "alignmentBaseline", 25411 "alignment-baseline": "alignmentBaseline", 25412 allowreorder: "allowReorder", 25413 alphabetic: "alphabetic", 25414 amplitude: "amplitude", 25415 arabicform: "arabicForm", 25416 "arabic-form": "arabicForm", 25417 ascent: "ascent", 25418 attributename: "attributeName", 25419 attributetype: "attributeType", 25420 autoreverse: "autoReverse", 25421 azimuth: "azimuth", 25422 basefrequency: "baseFrequency", 25423 baselineshift: "baselineShift", 25424 "baseline-shift": "baselineShift", 25425 baseprofile: "baseProfile", 25426 bbox: "bbox", 25427 begin: "begin", 25428 bias: "bias", 25429 by: "by", 25430 calcmode: "calcMode", 25431 capheight: "capHeight", 25432 "cap-height": "capHeight", 25433 clip: "clip", 25434 clippath: "clipPath", 25435 "clip-path": "clipPath", 25436 clippathunits: "clipPathUnits", 25437 cliprule: "clipRule", 25438 "clip-rule": "clipRule", 25439 color: "color", 25440 colorinterpolation: "colorInterpolation", 25441 "color-interpolation": "colorInterpolation", 25442 colorinterpolationfilters: "colorInterpolationFilters", 25443 "color-interpolation-filters": "colorInterpolationFilters", 25444 colorprofile: "colorProfile", 25445 "color-profile": "colorProfile", 25446 colorrendering: "colorRendering", 25447 "color-rendering": "colorRendering", 25448 contentscripttype: "contentScriptType", 25449 contentstyletype: "contentStyleType", 25450 cursor: "cursor", 25451 cx: "cx", 25452 cy: "cy", 25453 d: "d", 25454 datatype: "datatype", 25455 decelerate: "decelerate", 25456 descent: "descent", 25457 diffuseconstant: "diffuseConstant", 25458 direction: "direction", 25459 display: "display", 25460 divisor: "divisor", 25461 dominantbaseline: "dominantBaseline", 25462 "dominant-baseline": "dominantBaseline", 25463 dur: "dur", 25464 dx: "dx", 25465 dy: "dy", 25466 edgemode: "edgeMode", 25467 elevation: "elevation", 25468 enablebackground: "enableBackground", 25469 "enable-background": "enableBackground", 25470 end: "end", 25471 exponent: "exponent", 25472 externalresourcesrequired: "externalResourcesRequired", 25473 fill: "fill", 25474 fillopacity: "fillOpacity", 25475 "fill-opacity": "fillOpacity", 25476 fillrule: "fillRule", 25477 "fill-rule": "fillRule", 25478 filter: "filter", 25479 filterres: "filterRes", 25480 filterunits: "filterUnits", 25481 floodopacity: "floodOpacity", 25482 "flood-opacity": "floodOpacity", 25483 floodcolor: "floodColor", 25484 "flood-color": "floodColor", 25485 focusable: "focusable", 25486 fontfamily: "fontFamily", 25487 "font-family": "fontFamily", 25488 fontsize: "fontSize", 25489 "font-size": "fontSize", 25490 fontsizeadjust: "fontSizeAdjust", 25491 "font-size-adjust": "fontSizeAdjust", 25492 fontstretch: "fontStretch", 25493 "font-stretch": "fontStretch", 25494 fontstyle: "fontStyle", 25495 "font-style": "fontStyle", 25496 fontvariant: "fontVariant", 25497 "font-variant": "fontVariant", 25498 fontweight: "fontWeight", 25499 "font-weight": "fontWeight", 25500 format: "format", 25501 from: "from", 25502 fx: "fx", 25503 fy: "fy", 25504 g1: "g1", 25505 g2: "g2", 25506 glyphname: "glyphName", 25507 "glyph-name": "glyphName", 25508 glyphorientationhorizontal: "glyphOrientationHorizontal", 25509 "glyph-orientation-horizontal": "glyphOrientationHorizontal", 25510 glyphorientationvertical: "glyphOrientationVertical", 25511 "glyph-orientation-vertical": "glyphOrientationVertical", 25512 glyphref: "glyphRef", 25513 gradienttransform: "gradientTransform", 25514 gradientunits: "gradientUnits", 25515 hanging: "hanging", 25516 horizadvx: "horizAdvX", 25517 "horiz-adv-x": "horizAdvX", 25518 horizoriginx: "horizOriginX", 25519 "horiz-origin-x": "horizOriginX", 25520 ideographic: "ideographic", 25521 imagerendering: "imageRendering", 25522 "image-rendering": "imageRendering", 25523 in2: "in2", 25524 in: "in", 25525 inlist: "inlist", 25526 intercept: "intercept", 25527 k1: "k1", 25528 k2: "k2", 25529 k3: "k3", 25530 k4: "k4", 25531 k: "k", 25532 kernelmatrix: "kernelMatrix", 25533 kernelunitlength: "kernelUnitLength", 25534 kerning: "kerning", 25535 keypoints: "keyPoints", 25536 keysplines: "keySplines", 25537 keytimes: "keyTimes", 25538 lengthadjust: "lengthAdjust", 25539 letterspacing: "letterSpacing", 25540 "letter-spacing": "letterSpacing", 25541 lightingcolor: "lightingColor", 25542 "lighting-color": "lightingColor", 25543 limitingconeangle: "limitingConeAngle", 25544 local: "local", 25545 markerend: "markerEnd", 25546 "marker-end": "markerEnd", 25547 markerheight: "markerHeight", 25548 markermid: "markerMid", 25549 "marker-mid": "markerMid", 25550 markerstart: "markerStart", 25551 "marker-start": "markerStart", 25552 markerunits: "markerUnits", 25553 markerwidth: "markerWidth", 25554 mask: "mask", 25555 maskcontentunits: "maskContentUnits", 25556 maskunits: "maskUnits", 25557 mathematical: "mathematical", 25558 mode: "mode", 25559 numoctaves: "numOctaves", 25560 offset: "offset", 25561 opacity: "opacity", 25562 operator: "operator", 25563 order: "order", 25564 orient: "orient", 25565 orientation: "orientation", 25566 origin: "origin", 25567 overflow: "overflow", 25568 overlineposition: "overlinePosition", 25569 "overline-position": "overlinePosition", 25570 overlinethickness: "overlineThickness", 25571 "overline-thickness": "overlineThickness", 25572 paintorder: "paintOrder", 25573 "paint-order": "paintOrder", 25574 panose1: "panose1", 25575 "panose-1": "panose1", 25576 pathlength: "pathLength", 25577 patterncontentunits: "patternContentUnits", 25578 patterntransform: "patternTransform", 25579 patternunits: "patternUnits", 25580 pointerevents: "pointerEvents", 25581 "pointer-events": "pointerEvents", 25582 points: "points", 25583 pointsatx: "pointsAtX", 25584 pointsaty: "pointsAtY", 25585 pointsatz: "pointsAtZ", 25586 prefix: "prefix", 25587 preservealpha: "preserveAlpha", 25588 preserveaspectratio: "preserveAspectRatio", 25589 primitiveunits: "primitiveUnits", 25590 property: "property", 25591 r: "r", 25592 radius: "radius", 25593 refx: "refX", 25594 refy: "refY", 25595 renderingintent: "renderingIntent", 25596 "rendering-intent": "renderingIntent", 25597 repeatcount: "repeatCount", 25598 repeatdur: "repeatDur", 25599 requiredextensions: "requiredExtensions", 25600 requiredfeatures: "requiredFeatures", 25601 resource: "resource", 25602 restart: "restart", 25603 result: "result", 25604 results: "results", 25605 rotate: "rotate", 25606 rx: "rx", 25607 ry: "ry", 25608 scale: "scale", 25609 security: "security", 25610 seed: "seed", 25611 shaperendering: "shapeRendering", 25612 "shape-rendering": "shapeRendering", 25613 slope: "slope", 25614 spacing: "spacing", 25615 specularconstant: "specularConstant", 25616 specularexponent: "specularExponent", 25617 speed: "speed", 25618 spreadmethod: "spreadMethod", 25619 startoffset: "startOffset", 25620 stddeviation: "stdDeviation", 25621 stemh: "stemh", 25622 stemv: "stemv", 25623 stitchtiles: "stitchTiles", 25624 stopcolor: "stopColor", 25625 "stop-color": "stopColor", 25626 stopopacity: "stopOpacity", 25627 "stop-opacity": "stopOpacity", 25628 strikethroughposition: "strikethroughPosition", 25629 "strikethrough-position": "strikethroughPosition", 25630 strikethroughthickness: "strikethroughThickness", 25631 "strikethrough-thickness": "strikethroughThickness", 25632 string: "string", 25633 stroke: "stroke", 25634 strokedasharray: "strokeDasharray", 25635 "stroke-dasharray": "strokeDasharray", 25636 strokedashoffset: "strokeDashoffset", 25637 "stroke-dashoffset": "strokeDashoffset", 25638 strokelinecap: "strokeLinecap", 25639 "stroke-linecap": "strokeLinecap", 25640 strokelinejoin: "strokeLinejoin", 25641 "stroke-linejoin": "strokeLinejoin", 25642 strokemiterlimit: "strokeMiterlimit", 25643 "stroke-miterlimit": "strokeMiterlimit", 25644 strokewidth: "strokeWidth", 25645 "stroke-width": "strokeWidth", 25646 strokeopacity: "strokeOpacity", 25647 "stroke-opacity": "strokeOpacity", 25648 suppresscontenteditablewarning: "suppressContentEditableWarning", 25649 suppresshydrationwarning: "suppressHydrationWarning", 25650 surfacescale: "surfaceScale", 25651 systemlanguage: "systemLanguage", 25652 tablevalues: "tableValues", 25653 targetx: "targetX", 25654 targety: "targetY", 25655 textanchor: "textAnchor", 25656 "text-anchor": "textAnchor", 25657 textdecoration: "textDecoration", 25658 "text-decoration": "textDecoration", 25659 textlength: "textLength", 25660 textrendering: "textRendering", 25661 "text-rendering": "textRendering", 25662 to: "to", 25663 transform: "transform", 25664 typeof: "typeof", 25665 u1: "u1", 25666 u2: "u2", 25667 underlineposition: "underlinePosition", 25668 "underline-position": "underlinePosition", 25669 underlinethickness: "underlineThickness", 25670 "underline-thickness": "underlineThickness", 25671 unicode: "unicode", 25672 unicodebidi: "unicodeBidi", 25673 "unicode-bidi": "unicodeBidi", 25674 unicoderange: "unicodeRange", 25675 "unicode-range": "unicodeRange", 25676 unitsperem: "unitsPerEm", 25677 "units-per-em": "unitsPerEm", 25678 unselectable: "unselectable", 25679 valphabetic: "vAlphabetic", 25680 "v-alphabetic": "vAlphabetic", 25681 values: "values", 25682 vectoreffect: "vectorEffect", 25683 "vector-effect": "vectorEffect", 25684 version: "version", 25685 vertadvy: "vertAdvY", 25686 "vert-adv-y": "vertAdvY", 25687 vertoriginx: "vertOriginX", 25688 "vert-origin-x": "vertOriginX", 25689 vertoriginy: "vertOriginY", 25690 "vert-origin-y": "vertOriginY", 25691 vhanging: "vHanging", 25692 "v-hanging": "vHanging", 25693 videographic: "vIdeographic", 25694 "v-ideographic": "vIdeographic", 25695 viewbox: "viewBox", 25696 viewtarget: "viewTarget", 25697 visibility: "visibility", 25698 vmathematical: "vMathematical", 25699 "v-mathematical": "vMathematical", 25700 vocab: "vocab", 25701 widths: "widths", 25702 wordspacing: "wordSpacing", 25703 "word-spacing": "wordSpacing", 25704 writingmode: "writingMode", 25705 "writing-mode": "writingMode", 25706 x1: "x1", 25707 x2: "x2", 25708 x: "x", 25709 xchannelselector: "xChannelSelector", 25710 xheight: "xHeight", 25711 "x-height": "xHeight", 25712 xlinkactuate: "xlinkActuate", 25713 "xlink:actuate": "xlinkActuate", 25714 xlinkarcrole: "xlinkArcrole", 25715 "xlink:arcrole": "xlinkArcrole", 25716 xlinkhref: "xlinkHref", 25717 "xlink:href": "xlinkHref", 25718 xlinkrole: "xlinkRole", 25719 "xlink:role": "xlinkRole", 25720 xlinkshow: "xlinkShow", 25721 "xlink:show": "xlinkShow", 25722 xlinktitle: "xlinkTitle", 25723 "xlink:title": "xlinkTitle", 25724 xlinktype: "xlinkType", 25725 "xlink:type": "xlinkType", 25726 xmlbase: "xmlBase", 25727 "xml:base": "xmlBase", 25728 xmllang: "xmlLang", 25729 "xml:lang": "xmlLang", 25730 xmlns: "xmlns", 25731 "xml:space": "xmlSpace", 25732 xmlnsxlink: "xmlnsXlink", 25733 "xmlns:xlink": "xmlnsXlink", 25734 xmlspace: "xmlSpace", 25735 y1: "y1", 25736 y2: "y2", 25737 y: "y", 25738 ychannelselector: "yChannelSelector", 25739 z: "z", 25740 zoomandpan: "zoomAndPan" 25741 }, ariaProperties = { 25742 "aria-current": 0, 25743 "aria-details": 0, 25744 "aria-disabled": 0, 25745 "aria-hidden": 0, 25746 "aria-invalid": 0, 25747 "aria-keyshortcuts": 0, 25748 "aria-label": 0, 25749 "aria-roledescription": 0, 25750 "aria-autocomplete": 0, 25751 "aria-checked": 0, 25752 "aria-expanded": 0, 25753 "aria-haspopup": 0, 25754 "aria-level": 0, 25755 "aria-modal": 0, 25756 "aria-multiline": 0, 25757 "aria-multiselectable": 0, 25758 "aria-orientation": 0, 25759 "aria-placeholder": 0, 25760 "aria-pressed": 0, 25761 "aria-readonly": 0, 25762 "aria-required": 0, 25763 "aria-selected": 0, 25764 "aria-sort": 0, 25765 "aria-valuemax": 0, 25766 "aria-valuemin": 0, 25767 "aria-valuenow": 0, 25768 "aria-valuetext": 0, 25769 "aria-atomic": 0, 25770 "aria-busy": 0, 25771 "aria-live": 0, 25772 "aria-relevant": 0, 25773 "aria-dropeffect": 0, 25774 "aria-grabbed": 0, 25775 "aria-activedescendant": 0, 25776 "aria-colcount": 0, 25777 "aria-colindex": 0, 25778 "aria-colspan": 0, 25779 "aria-controls": 0, 25780 "aria-describedby": 0, 25781 "aria-errormessage": 0, 25782 "aria-flowto": 0, 25783 "aria-labelledby": 0, 25784 "aria-owns": 0, 25785 "aria-posinset": 0, 25786 "aria-rowcount": 0, 25787 "aria-rowindex": 0, 25788 "aria-rowspan": 0, 25789 "aria-setsize": 0 25790 }, warnedProperties = {}, rARIA = new RegExp("^(aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$"), rARIACamel = new RegExp("^(aria)[A-Z][" + ATTRIBUTE_NAME_CHAR + "]*$"), hasOwnProperty = Object.prototype.hasOwnProperty, didWarnValueNull = !1, validateProperty$1 = function() {}, warnedProperties$1 = {}, _hasOwnProperty = Object.prototype.hasOwnProperty, EVENT_NAME_REGEX = /^on./, INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/, rARIA$1 = new RegExp("^(aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$"), rARIACamel$1 = new RegExp("^(aria)[A-Z][" + ATTRIBUTE_NAME_CHAR + "]*$"); 25791 validateProperty$1 = function(tagName, name, value, canUseEventSystem) { 25792 if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) return !0; 25793 var lowerCasedName = name.toLowerCase(); 25794 if ("onfocusin" === lowerCasedName || "onfocusout" === lowerCasedName) return warning(!1, "React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."), 25795 warnedProperties$1[name] = !0, !0; 25796 if (canUseEventSystem) { 25797 if (registrationNameModules.hasOwnProperty(name)) return !0; 25798 var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null; 25799 if (null != registrationName) return warning(!1, "Invalid event handler property ` + "`")) + (`%s` + ("`" + `. Did you mean `))))) + (((("`" + (`%s` + "`")) + (`?%s", name, registrationName, getStackAddendum$2()), 25800 warnedProperties$1[name] = !0, !0; 25801 if (EVENT_NAME_REGEX.test(name)) return warning(!1, "Unknown event handler property ` + ("`" + `%s`))) + (("`" + (`. It will be ignored.%s", name, getStackAddendum$2()), 25802 warnedProperties$1[name] = !0, !0; 25803 } else if (EVENT_NAME_REGEX.test(name)) return INVALID_EVENT_NAME_REGEX.test(name) && warning(!1, "Invalid event handler property ` + "`")) + (`%s` + ("`" + `. React events use the camelCase naming convention, for example `)))) + ((("`" + (`onClick` + "`")) + (`.%s", name, getStackAddendum$2()), 25804 warnedProperties$1[name] = !0, !0; 25805 if (rARIA$1.test(name) || rARIACamel$1.test(name)) return !0; 25806 if ("innerhtml" === lowerCasedName) return warning(!1, "Directly setting property ` + ("`" + `innerHTML`))) + (("`" + (` is not permitted. For more information, lookup documentation on ` + "`")) + (`dangerouslySetInnerHTML` + ("`" + `."), 25807 warnedProperties$1[name] = !0, !0; 25808 if ("aria" === lowerCasedName) return warning(!1, "The `)))))) + ((((("`" + (`aria` + "`")) + (` attribute is reserved for future use in React. Pass individual ` + ("`" + `aria-`))) + (("`" + (` attributes instead."), 25809 warnedProperties$1[name] = !0, !0; 25810 if ("is" === lowerCasedName && null !== value && void 0 !== value && "string" != typeof value) return warning(!1, "Received a ` + "`")) + (`%s` + ("`" + ` for a string attribute `)))) + ((("`" + (`is` + "`")) + (`. If this is expected, cast the value to a string.%s", typeof value, getStackAddendum$2()), 25811 warnedProperties$1[name] = !0, !0; 25812 if ("number" == typeof value && isNaN(value)) return warning(!1, "Received NaN for the ` + ("`" + `%s`))) + (("`" + (` attribute. If this is expected, cast the value to a string.%s", name, getStackAddendum$2()), 25813 warnedProperties$1[name] = !0, !0; 25814 var propertyInfo = getPropertyInfo(name), isReserved = null !== propertyInfo && propertyInfo.type === RESERVED; 25815 if (possibleStandardNames.hasOwnProperty(lowerCasedName)) { 25816 var standardName = possibleStandardNames[lowerCasedName]; 25817 if (standardName !== name) return warning(!1, "Invalid DOM property ` + "`")) + (`%s` + ("`" + `. Did you mean `))))) + (((("`" + (`%s` + "`")) + (`?%s", name, standardName, getStackAddendum$2()), 25818 warnedProperties$1[name] = !0, !0; 25819 } else if (!isReserved && name !== lowerCasedName) return warning(!1, "React does not recognize the ` + ("`" + `%s`))) + (("`" + (` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase ` + "`")) + (`%s` + ("`" + ` instead. If you accidentally passed it from a parent component, remove it from the DOM element.%s", name, lowerCasedName, getStackAddendum$2()), 25820 warnedProperties$1[name] = !0, !0; 25821 return "boolean" == typeof value && shouldRemoveAttributeWithWarning(name, value, propertyInfo, !1) ? (value ? warning(!1, 'Received `)))) + ((("`" + (`%s` + "`")) + (` for a non-boolean attribute ` + ("`" + `%s`))) + (("`" + (`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.%s', value, name, name, value, name, getStackAddendum$2()) : warning(!1, 'Received ` + "`")) + ((`%s` + "`") + (` for a non-boolean attribute ` + "`"))))))) + ((((((`%s` + ("`" + `.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.%s', value, name, name, value, name, name, name, getStackAddendum$2()), 25822 warnedProperties$1[name] = !0, !0) : !!isReserved || (!shouldRemoveAttributeWithWarning(name, value, propertyInfo, !1) || (warnedProperties$1[name] = !0, 25823 !1)); 25824 }; 25825 var warnUnknownProperties = function(type, props, canUseEventSystem) { 25826 var unknownProps = []; 25827 for (var key in props) { 25828 validateProperty$1(type, key, props[key], canUseEventSystem) || unknownProps.push(key); 25829 } 25830 var unknownPropString = unknownProps.map(function(prop) { 25831 return "`)) + ("`" + (`" + prop + "` + "`"))) + ((`"; 25832 }).join(", "); 25833 1 === unknownProps.length ? warning(!1, "Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://fb.me/react属性行为%s“,unknownPropstring,type,getStackEngagement$2()):unknownProps.length>1&&warning(!1,“props%s在<%s>标记上的值无效。或者从元素中移除它们,或者传递一个字符串或数字值以将它们保存在DOM中。有关详细信息,请参阅https://fb.me/react-attribute-behavior%s“,unknownPropstring,type,getStackEngagement$2()); 25834 }, getCurrentFiberOwnerName$2 = ReactDebugCurrentFiber.getCurrentFiberOwnerName, getCurrentFiberStackAddendum$2 = ReactDebugCurrentFiber.getCurrentFiberStackAddendum, didWarnInvalidHydration = !1, didWarnShadyDOM = !1, DANGEROUSLY_SET_INNER_HTML = "dangerouslySetInnerHTML", SUPPRESS_CONTENT_EDITABLE_WARNING = "suppressContentEditableWarning", SUPPRESS_HYDRATION_WARNING$1 = "suppressHydrationWarning", AUTOFOCUS = "autoFocus", CHILDREN = "children", STYLE = "style", HTML = "__html", HTML_NAMESPACE = Namespaces.html, getStack = emptyFunction.thatReturns(""), warnedUnknownTags = void 0, suppressHydrationWarning = void 0, validatePropertiesInDevelopment = void 0, warnForTextDifference = void 0, warnForPropDifference = void 0, warnForExtraAttributes = void 0, warnForInvalidEventListener = void 0, normalizeMarkupForTextOrAttribute = void 0, normalizeHTML = void 0; 25835 getStack = getCurrentFiberStackAddendum$2, warnedUnknownTags = { 25836 time: !0, 25837 dialog: !0 25838 }, validatePropertiesInDevelopment = function(type, props) { 25839 validateProperties(type, props), validateProperties$1(type, props), validateProperties$2(type, props, !0); 25840 }; 25841 var NORMALIZE_NEWLINES_REGEX = /\r\n?/g, NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g; 25842 normalizeMarkupForTextOrAttribute = function(markup) { 25843 return ("string" == typeof markup ? markup : "" + markup).replace(NORMALIZE_NEWLINES_REGEX, "\n").replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, ""); 25844 }, warnForTextDifference = function(serverText, clientText) { 25845 if (!didWarnInvalidHydration) { 25846 var normalizedClientText = normalizeMarkupForTextOrAttribute(clientText), normalizedServerText = normalizeMarkupForTextOrAttribute(serverText); 25847 normalizedServerText !== normalizedClientText && (didWarnInvalidHydration = !0, 25848 warning(!1, 'Text content did not match. Server: "%s" Client: "%s"', normalizedServerText, normalizedClientText)); 25849 } 25850 }, warnForPropDifference = function(propName, serverValue, clientValue) { 25851 if (!didWarnInvalidHydration) { 25852 var normalizedClientValue = normalizeMarkupForTextOrAttribute(clientValue), normalizedServerValue = normalizeMarkupForTextOrAttribute(serverValue); 25853 normalizedServerValue !== normalizedClientValue && (didWarnInvalidHydration = !0, 25854 warning(!1, "Prop ` + ("`" + `%s`)) + ("`" + (` did not match. Server: %s Client: %s", propName, JSON.stringify(normalizedServerValue), JSON.stringify(normalizedClientValue))); 25855 } 25856 }, warnForExtraAttributes = function(attributeNames) { 25857 if (!didWarnInvalidHydration) { 25858 didWarnInvalidHydration = !0; 25859 var names = []; 25860 attributeNames.forEach(function(name) { 25861 names.push(name); 25862 }), warning(!1, "Extra attributes from the server: %s", names); 25863 } 25864 }, warnForInvalidEventListener = function(registrationName, listener) { 25865 !1 === listener ? warning(!1, "Expected ` + "`")))) + (((`%s` + ("`" + ` listener to be a function, instead got `)) + ("`" + (`false` + "`"))) + ((`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.%s", registrationName, registrationName, registrationName, getCurrentFiberStackAddendum$2()) : warning(!1, "Expected ` + ("`" + `%s`)) + ("`" + (` listener to be a function, instead got a value of ` + "`"))))) + ((((`%s` + ("`" + ` type.%s", registrationName, typeof listener, getCurrentFiberStackAddendum$2()); 25866 }, normalizeHTML = function(parent, html) { 25867 var testElement = parent.namespaceURI === HTML_NAMESPACE ? parent.ownerDocument.createElement(parent.tagName) : parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName); 25868 return testElement.innerHTML = html, testElement.innerHTML; 25869 }; 25870 var ReactDOMFiberComponent = Object.freeze({ 25871 createElement: createElement$1, 25872 createTextNode: createTextNode$1, 25873 setInitialProperties: setInitialProperties$1, 25874 diffProperties: diffProperties$1, 25875 updateProperties: updateProperties$1, 25876 diffHydratedProperties: diffHydratedProperties$1, 25877 diffHydratedText: diffHydratedText$1, 25878 warnForUnmatchedText: warnForUnmatchedText$1, 25879 warnForDeletedHydratableElement: warnForDeletedHydratableElement$1, 25880 warnForDeletedHydratableText: warnForDeletedHydratableText$1, 25881 warnForInsertedHydratedElement: warnForInsertedHydratedElement$1, 25882 warnForInsertedHydratedText: warnForInsertedHydratedText$1, 25883 restoreControlledState: restoreControlledState$1 25884 }), getCurrentFiberStackAddendum$5 = ReactDebugCurrentFiber.getCurrentFiberStackAddendum, validateDOMNesting = emptyFunction, specialTags = [ "address", "applet", "area", "article", "aside", "base", "basefont", "bgsound", "blockquote", "body", "br", "button", "caption", "center", "col", "colgroup", "dd", "details", "dir", "div", "dl", "dt", "embed", "fieldset", "figcaption", "figure", "footer", "form", "frame", "frameset", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "iframe", "img", "input", "isindex", "li", "link", "listing", "main", "marquee", "menu", "menuitem", "meta", "nav", "noembed", "noframes", "noscript", "object", "ol", "p", "param", "plaintext", "pre", "script", "section", "select", "source", "style", "summary", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "title", "tr", "track", "ul", "wbr", "xmp" ], inScopeTags = [ "applet", "caption", "html", "table", "td", "th", "marquee", "object", "template", "foreignObject", "desc", "title" ], buttonScopeTags = inScopeTags.concat([ "button" ]), impliedEndTags = [ "dd", "dt", "li", "option", "optgroup", "p", "rp", "rt" ], emptyAncestorInfo = { 25885 current: null, 25886 formTag: null, 25887 aTagInScope: null, 25888 buttonTagInScope: null, 25889 nobrTagInScope: null, 25890 pTagInButtonScope: null, 25891 listItemTagAutoclosing: null, 25892 dlItemTagAutoclosing: null 25893 }, updatedAncestorInfo$1 = function(oldInfo, tag, instance) { 25894 var ancestorInfo = _assign({}, oldInfo || emptyAncestorInfo), info = { 25895 tag: tag, 25896 instance: instance 25897 }; 25898 return -1 !== inScopeTags.indexOf(tag) && (ancestorInfo.aTagInScope = null, ancestorInfo.buttonTagInScope = null, 25899 ancestorInfo.nobrTagInScope = null), -1 !== buttonScopeTags.indexOf(tag) && (ancestorInfo.pTagInButtonScope = null), 25900 -1 !== specialTags.indexOf(tag) && "address" !== tag && "div" !== tag && "p" !== tag && (ancestorInfo.listItemTagAutoclosing = null, 25901 ancestorInfo.dlItemTagAutoclosing = null), ancestorInfo.current = info, "form" === tag && (ancestorInfo.formTag = info), 25902 "a" === tag && (ancestorInfo.aTagInScope = info), "button" === tag && (ancestorInfo.buttonTagInScope = info), 25903 "nobr" === tag && (ancestorInfo.nobrTagInScope = info), "p" === tag && (ancestorInfo.pTagInButtonScope = info), 25904 "li" === tag && (ancestorInfo.listItemTagAutoclosing = info), "dd" !== tag && "dt" !== tag || (ancestorInfo.dlItemTagAutoclosing = info), 25905 ancestorInfo; 25906 }, isTagValidWithParent = function(tag, parentTag) { 25907 switch (parentTag) { 25908 case "select": 25909 return "option" === tag || "optgroup" === tag || "#text" === tag; 25910 25911 case "optgroup": 25912 return "option" === tag || "#text" === tag; 25913 25914 case "option": 25915 return "#text" === tag; 25916 25917 case "tr": 25918 return "th" === tag || "td" === tag || "style" === tag || "script" === tag || "template" === tag; 25919 25920 case "tbody": 25921 case "thead": 25922 case "tfoot": 25923 return "tr" === tag || "style" === tag || "script" === tag || "template" === tag; 25924 25925 case "colgroup": 25926 return "col" === tag || "template" === tag; 25927 25928 case "table": 25929 return "caption" === tag || "colgroup" === tag || "tbody" === tag || "tfoot" === tag || "thead" === tag || "style" === tag || "script" === tag || "template" === tag; 25930 25931 case "head": 25932 return "base" === tag || "basefont" === tag || "bgsound" === tag || "link" === tag || "meta" === tag || "title" === tag || "noscript" === tag || "noframes" === tag || "style" === tag || "script" === tag || "template" === tag; 25933 25934 case "html": 25935 return "head" === tag || "body" === tag; 25936 25937 case "#document": 25938 return "html" === tag; 25939 } 25940 switch (tag) { 25941 case "h1": 25942 case "h2": 25943 case "h3": 25944 case "h4": 25945 case "h5": 25946 case "h6": 25947 return "h1" !== parentTag && "h2" !== parentTag && "h3" !== parentTag && "h4" !== parentTag && "h5" !== parentTag && "h6" !== parentTag; 25948 25949 case "rp": 25950 case "rt": 25951 return -1 === impliedEndTags.indexOf(parentTag); 25952 25953 case "body": 25954 case "caption": 25955 case "col": 25956 case "colgroup": 25957 case "frame": 25958 case "head": 25959 case "html": 25960 case "tbody": 25961 case "td": 25962 case "tfoot": 25963 case "th": 25964 case "thead": 25965 case "tr": 25966 return null == parentTag; 25967 } 25968 return !0; 25969 }, findInvalidAncestorForTag = function(tag, ancestorInfo) { 25970 switch (tag) { 25971 case "address": 25972 case "article": 25973 case "aside": 25974 case "blockquote": 25975 case "center": 25976 case "details": 25977 case "dialog": 25978 case "dir": 25979 case "div": 25980 case "dl": 25981 case "fieldset": 25982 case "figcaption": 25983 case "figure": 25984 case "footer": 25985 case "header": 25986 case "hgroup": 25987 case "main": 25988 case "menu": 25989 case "nav": 25990 case "ol": 25991 case "p": 25992 case "section": 25993 case "summary": 25994 case "ul": 25995 case "pre": 25996 case "listing": 25997 case "table": 25998 case "hr": 25999 case "xmp": 26000 case "h1": 26001 case "h2": 26002 case "h3": 26003 case "h4": 26004 case "h5": 26005 case "h6": 26006 return ancestorInfo.pTagInButtonScope; 26007 26008 case "form": 26009 return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope; 26010 26011 case "li": 26012 return ancestorInfo.listItemTagAutoclosing; 26013 26014 case "dd": 26015 case "dt": 26016 return ancestorInfo.dlItemTagAutoclosing; 26017 26018 case "button": 26019 return ancestorInfo.buttonTagInScope; 26020 26021 case "a": 26022 return ancestorInfo.aTagInScope; 26023 26024 case "nobr": 26025 return ancestorInfo.nobrTagInScope; 26026 } 26027 return null; 26028 }, didWarn = {}; 26029 validateDOMNesting = function(childTag, childText, ancestorInfo) { 26030 ancestorInfo = ancestorInfo || emptyAncestorInfo; 26031 var parentInfo = ancestorInfo.current, parentTag = parentInfo && parentInfo.tag; 26032 null != childText && (null != childTag && warning(!1, "validateDOMNesting: when childText is passed, childTag should be null"), 26033 childTag = "#text"); 26034 var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo, invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo), invalidParentOrAncestor = invalidParent || invalidAncestor; 26035 if (invalidParentOrAncestor) { 26036 var ancestorTag = invalidParentOrAncestor.tag, addendum = getCurrentFiberStackAddendum$5(), warnKey = !!invalidParent + "|" + childTag + "|" + ancestorTag + "|" + addendum; 26037 if (!didWarn[warnKey]) { 26038 didWarn[warnKey] = !0; 26039 var tagDisplayName = childTag, whitespaceInfo = ""; 26040 if ("#text" === childTag ? /\S/.test(childText) ? tagDisplayName = "Text nodes" : (tagDisplayName = "Whitespace text nodes", 26041 whitespaceInfo = " Make sure you don't have any extra whitespace between tags on each line of your source code.") : tagDisplayName = "<" + childTag + ">", 26042 invalidParent) { 26043 var info = ""; 26044 "table" === ancestorTag && "tr" === childTag && (info += " Add a <tbody> to your code to match the DOM tree generated by the browser."), 26045 warning(!1, "validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s%s", tagDisplayName, ancestorTag, whitespaceInfo, info, addendum); 26046 } else warning(!1, "validateDOMNesting(...): %s cannot appear as a descendant of <%s>.%s", tagDisplayName, ancestorTag, addendum); 26047 } 26048 } 26049 }, validateDOMNesting.updatedAncestorInfo = updatedAncestorInfo$1; 26050 var validateDOMNesting$1 = validateDOMNesting, supportsPersistence = !1, cloneInstance = shim, createContainerChildSet = shim, appendChildToContainerChildSet = shim, finalizeContainerChildren = shim, replaceContainerChildren = shim, createElement = createElement$1, createTextNode = createTextNode$1, setInitialProperties = setInitialProperties$1, diffProperties = diffProperties$1, updateProperties = updateProperties$1, diffHydratedProperties = diffHydratedProperties$1, diffHydratedText = diffHydratedText$1, warnForUnmatchedText = warnForUnmatchedText$1, warnForDeletedHydratableElement = warnForDeletedHydratableElement$1, warnForDeletedHydratableText = warnForDeletedHydratableText$1, warnForInsertedHydratedElement = warnForInsertedHydratedElement$1, warnForInsertedHydratedText = warnForInsertedHydratedText$1, updatedAncestorInfo = validateDOMNesting$1.updatedAncestorInfo, precacheFiberNode$1 = precacheFiberNode, updateFiberProps$1 = updateFiberProps, SUPPRESS_HYDRATION_WARNING = void 0; 26051 SUPPRESS_HYDRATION_WARNING = "suppressHydrationWarning"; 26052 var eventsEnabled = null, selectionInformation = null, now = now$1, isPrimaryRenderer = !0, scheduleDeferredCallback = scheduleWork, cancelDeferredCallback = cancelScheduledWork, supportsMutation = !0, supportsHydration = !0, enableUserTimingAPI = !0, enableGetDerivedStateFromCatch = !1, enableSuspense = !1, debugRenderPhaseSideEffects = !1, debugRenderPhaseSideEffectsForStrictMode = !0, replayFailedUnitOfWorkWithInvokeGuardedCallback = !0, warnAboutDeprecatedLifecycles = !1, warnAboutLegacyContextAPI = !1, enableProfilerTimer = !0, fireGetDerivedStateFromPropsOnStateUpdates = !0, supportsUserTiming = "undefined" != typeof performance && "function" == typeof performance.mark && "function" == typeof performance.clearMarks && "function" == typeof performance.measure && "function" == typeof performance.clearMeasures, currentFiber = null, currentPhase = null, currentPhaseFiber = null, isCommitting = !1, hasScheduledUpdateInCurrentCommit = !1, hasScheduledUpdateInCurrentPhase = !1, commitCountInCurrentWorkLoop = 0, effectCountInCurrentCommit = 0, isWaitingForCallback = !1, labelsInCurrentCommit = new Set(), formatMarkName = function(markName) { 26053 return "⚛ " + markName; 26054 }, formatLabel = function(label, warning$$1) { 26055 return (warning$$1 ? "⛔ " : "⚛ ") + label + (warning$$1 ? " Warning: " + warning$$1 : ""); 26056 }, beginMark = function(markName) { 26057 performance.mark(formatMarkName(markName)); 26058 }, clearMark = function(markName) { 26059 performance.clearMarks(formatMarkName(markName)); 26060 }, endMark = function(label, markName, warning$$1) { 26061 var formattedMarkName = formatMarkName(markName), formattedLabel = formatLabel(label, warning$$1); 26062 try { 26063 performance.measure(formattedLabel, formattedMarkName); 26064 } catch (err) {} 26065 performance.clearMarks(formattedMarkName), performance.clearMeasures(formattedLabel); 26066 }, getFiberMarkName = function(label, debugID) { 26067 return label + " (#" + debugID + ")"; 26068 }, getFiberLabel = function(componentName, isMounted, phase) { 26069 return null === phase ? componentName + " [" + (isMounted ? "update" : "mount") + "]" : componentName + "." + phase; 26070 }, beginFiberMark = function(fiber, phase) { 26071 var componentName = getComponentName(fiber) || "Unknown", debugID = fiber._debugID, isMounted = null !== fiber.alternate, label = getFiberLabel(componentName, isMounted, phase); 26072 if (isCommitting && labelsInCurrentCommit.has(label)) return !1; 26073 labelsInCurrentCommit.add(label); 26074 var markName = getFiberMarkName(label, debugID); 26075 return beginMark(markName), !0; 26076 }, clearFiberMark = function(fiber, phase) { 26077 var componentName = getComponentName(fiber) || "Unknown", debugID = fiber._debugID, isMounted = null !== fiber.alternate, label = getFiberLabel(componentName, isMounted, phase), markName = getFiberMarkName(label, debugID); 26078 clearMark(markName); 26079 }, endFiberMark = function(fiber, phase, warning$$1) { 26080 var componentName = getComponentName(fiber) || "Unknown", debugID = fiber._debugID, isMounted = null !== fiber.alternate, label = getFiberLabel(componentName, isMounted, phase), markName = getFiberMarkName(label, debugID); 26081 endMark(label, markName, warning$$1); 26082 }, shouldIgnoreFiber = function(fiber) { 26083 switch (fiber.tag) { 26084 case HostRoot: 26085 case HostComponent: 26086 case HostText: 26087 case HostPortal: 26088 case Fragment: 26089 case ContextProvider: 26090 case ContextConsumer: 26091 case Mode: 26092 return !0; 26093 26094 default: 26095 return !1; 26096 } 26097 }, clearPendingPhaseMeasurement = function() { 26098 null !== currentPhase && null !== currentPhaseFiber && clearFiberMark(currentPhaseFiber, currentPhase), 26099 currentPhaseFiber = null, currentPhase = null, hasScheduledUpdateInCurrentPhase = !1; 26100 }, pauseTimers = function() { 26101 for (var fiber = currentFiber; fiber; ) fiber._debugIsCurrentlyTiming && endFiberMark(fiber, null, null), 26102 fiber = fiber.return; 26103 }, resumeTimersRecursively = function(fiber) { 26104 null !== fiber.return && resumeTimersRecursively(fiber.return), fiber._debugIsCurrentlyTiming && beginFiberMark(fiber, null); 26105 }, resumeTimers = function() { 26106 null !== currentFiber && resumeTimersRecursively(currentFiber); 26107 }, valueStack = [], fiberStack = void 0; 26108 fiberStack = []; 26109 var index = -1, warnedAboutMissingGetChildContext = void 0; 26110 warnedAboutMissingGetChildContext = {}; 26111 var contextStackCursor = createCursor(emptyObject), didPerformWorkStackCursor = createCursor(!1), previousContext = emptyObject, MAX_SIGNED_31_BIT_INT = 1073741823, NoWork = 0, Sync = 1, Never = MAX_SIGNED_31_BIT_INT, UNIT_SIZE = 10, MAGIC_NUMBER_OFFSET = 2, NoContext = 0, AsyncMode = 1, StrictMode = 2, ProfileMode = 4, hasBadMapPolyfill = void 0; 26112 hasBadMapPolyfill = !1; 26113 try { 26114 var nonExtensibleObject = Object.preventExtensions({}), testMap = new Map([ [ nonExtensibleObject, null ] ]), testSet = new Set([ nonExtensibleObject ]); 26115 testMap.set(0, 0), testSet.add(0); 26116 } catch (e) { 26117 hasBadMapPolyfill = !0; 26118 } 26119 var debugCounter = void 0; 26120 debugCounter = 1; 26121 var createFiber = function(tag, pendingProps, key, mode) { 26122 return new FiberNode(tag, pendingProps, key, mode); 26123 }, onCommitFiberRoot = null, onCommitFiberUnmount = null, hasLoggedError = !1, lowPriorityWarning = function() {}, printWarning = function(format) { 26124 for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) args[_key - 1] = arguments[_key]; 26125 var argIndex = 0, message = "Warning: " + format.replace(/%s/g, function() { 26126 return args[argIndex++]; 26127 }); 26128 "undefined" != typeof console && console.warn(message); 26129 try { 26130 throw new Error(message); 26131 } catch (x) {} 26132 }; 26133 lowPriorityWarning = function(condition, format) { 26134 if (void 0 === format) throw new Error("`)) + ("`" + (`warning(condition, format, ...args)` + "`"))) + ((` requires a warning message argument"); 26135 if (!condition) { 26136 for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) args[_key2 - 2] = arguments[_key2]; 26137 printWarning.apply(void 0, [ format ].concat(args)); 26138 } 26139 }; 26140 var lowPriorityWarning$1 = lowPriorityWarning, ReactStrictModeWarnings = { 26141 discardPendingWarnings: function() {}, 26142 flushPendingDeprecationWarnings: function() {}, 26143 flushPendingUnsafeLifecycleWarnings: function() {}, 26144 recordDeprecationWarnings: function(fiber, instance) {}, 26145 recordUnsafeLifecycleWarnings: function(fiber, instance) {}, 26146 recordLegacyContextWarning: function(fiber, instance) {}, 26147 flushLegacyContextWarning: function() {} 26148 }, LIFECYCLE_SUGGESTIONS = { 26149 UNSAFE_componentWillMount: "componentDidMount", 26150 UNSAFE_componentWillReceiveProps: "static getDerivedStateFromProps", 26151 UNSAFE_componentWillUpdate: "componentDidUpdate" 26152 }, pendingComponentWillMountWarnings = [], pendingComponentWillReceivePropsWarnings = [], pendingComponentWillUpdateWarnings = [], pendingUnsafeLifecycleWarnings = new Map(), pendingLegacyContextWarning = new Map(), didWarnAboutDeprecatedLifecycles = new Set(), didWarnAboutUnsafeLifecycles = new Set(), didWarnAboutLegacyContext = new Set(), setToSortedString = function(set) { 26153 var array = []; 26154 return set.forEach(function(value) { 26155 array.push(value); 26156 }), array.sort().join(", "); 26157 }; 26158 ReactStrictModeWarnings.discardPendingWarnings = function() { 26159 pendingComponentWillMountWarnings = [], pendingComponentWillReceivePropsWarnings = [], 26160 pendingComponentWillUpdateWarnings = [], pendingUnsafeLifecycleWarnings = new Map(), 26161 pendingLegacyContextWarning = new Map(); 26162 }, ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function() { 26163 pendingUnsafeLifecycleWarnings.forEach(function(lifecycleWarningsMap, strictRoot) { 26164 var lifecyclesWarningMesages = []; 26165 if (Object.keys(lifecycleWarningsMap).forEach(function(lifecycle) { 26166 var lifecycleWarnings = lifecycleWarningsMap[lifecycle]; 26167 if (lifecycleWarnings.length > 0) { 26168 var componentNames = new Set(); 26169 lifecycleWarnings.forEach(function(fiber) { 26170 componentNames.add(getComponentName(fiber) || "Component"), didWarnAboutUnsafeLifecycles.add(fiber.type); 26171 }); 26172 var formatted = lifecycle.replace("UNSAFE_", ""), suggestion = LIFECYCLE_SUGGESTIONS[lifecycle], sortedComponentNames = setToSortedString(componentNames); 26173 lifecyclesWarningMesages.push(formatted + ": Please update the following components to use " + suggestion + " instead: " + sortedComponentNames); 26174 } 26175 }), lifecyclesWarningMesages.length > 0) { 26176 var strictRootComponentStack = getStackAddendumByWorkInProgressFiber(strictRoot); 26177 warning(!1, "Unsafe lifecycle methods were found within a strict-mode tree:%s\n\n%s\n\nLearn more about this warning here:\nhttps://FB.Me/反应严格模式警告“,StReStReToCuffTeCube,LIFECKEVISEWHAREN MESIGES.CAMIN(\\N\N)); 26178 } 26179 }), pendingUnsafeLifecycleWarnings = new Map(); 26180 }; 26181 var findStrictRoot = function(fiber) { 26182 for (var maybeStrictRoot = null, node = fiber; null !== node; ) node.mode & StrictMode && (maybeStrictRoot = node), 26183 node = node.return; 26184 return maybeStrictRoot; 26185 }; 26186 ReactStrictModeWarnings.flushPendingDeprecationWarnings = function() { 26187 if (pendingComponentWillMountWarnings.length > 0) { 26188 var uniqueNames = new Set(); 26189 pendingComponentWillMountWarnings.forEach(function(fiber) { 26190 uniqueNames.add(getComponentName(fiber) || "Component"), didWarnAboutDeprecatedLifecycles.add(fiber.type); 26191 }); 26192 var sortedNames = setToSortedString(uniqueNames); 26193 lowPriorityWarning$1(!1, "componentWillMount is deprecated and will be removed in the next major version. Use componentDidMount instead. As a temporary workaround, you can rename to UNSAFE_componentWillMount.\n\nPlease update the following components: %s\n\nLearn more about this warning here:\nhttps://fb.me/react异步组件生命周期挂钩“,SortedNames”), 26194 pendingComponentWillMountWarnings = []; 26195 } 26196 if (pendingComponentWillReceivePropsWarnings.length > 0) { 26197 var _uniqueNames = new Set(); 26198 pendingComponentWillReceivePropsWarnings.forEach(function(fiber) { 26199 _uniqueNames.add(getComponentName(fiber) || "Component"), didWarnAboutDeprecatedLifecycles.add(fiber.type); 26200 }); 26201 var _sortedNames = setToSortedString(_uniqueNames); 26202 lowPriorityWarning$1(!1, "componentWillReceiveProps is deprecated and will be removed in the next major version. Use static getDerivedStateFromProps instead.\n\nPlease update the following components: %s\n\nLearn more about this warning here:\nhttps://fb.me/react异步组件生命周期挂钩,“排序名称”, 26203 pendingComponentWillReceivePropsWarnings = []; 26204 } 26205 if (pendingComponentWillUpdateWarnings.length > 0) { 26206 var _uniqueNames2 = new Set(); 26207 pendingComponentWillUpdateWarnings.forEach(function(fiber) { 26208 _uniqueNames2.add(getComponentName(fiber) || "Component"), didWarnAboutDeprecatedLifecycles.add(fiber.type); 26209 }); 26210 var _sortedNames2 = setToSortedString(_uniqueNames2); 26211 lowPriorityWarning$1(!1, "componentWillUpdate is deprecated and will be removed in the next major version. Use componentDidUpdate instead. As a temporary workaround, you can rename to UNSAFE_componentWillUpdate.\n\nPlease update the following components: %s\n\nLearn more about this warning here:\nhttps://fb.me/react异步组件生命周期挂钩,“排序名称2”, 26212 pendingComponentWillUpdateWarnings = []; 26213 } 26214 }, ReactStrictModeWarnings.recordDeprecationWarnings = function(fiber, instance) { 26215 didWarnAboutDeprecatedLifecycles.has(fiber.type) || ("function" == typeof instance.componentWillMount && !0 !== instance.componentWillMount.__suppressDeprecationWarning && pendingComponentWillMountWarnings.push(fiber), 26216 "function" == typeof instance.componentWillReceiveProps && !0 !== instance.componentWillReceiveProps.__suppressDeprecationWarning && pendingComponentWillReceivePropsWarnings.push(fiber), 26217 "function" == typeof instance.componentWillUpdate && !0 !== instance.componentWillUpdate.__suppressDeprecationWarning && pendingComponentWillUpdateWarnings.push(fiber)); 26218 }, ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function(fiber, instance) { 26219 var strictRoot = findStrictRoot(fiber); 26220 if (null === strictRoot) return void warning(!1, "Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."); 26221 if (!didWarnAboutUnsafeLifecycles.has(fiber.type)) { 26222 var warningsForRoot = void 0; 26223 pendingUnsafeLifecycleWarnings.has(strictRoot) ? warningsForRoot = pendingUnsafeLifecycleWarnings.get(strictRoot) : (warningsForRoot = { 26224 UNSAFE_componentWillMount: [], 26225 UNSAFE_componentWillReceiveProps: [], 26226 UNSAFE_componentWillUpdate: [] 26227 }, pendingUnsafeLifecycleWarnings.set(strictRoot, warningsForRoot)); 26228 var unsafeLifecycles = []; 26229 ("function" == typeof instance.componentWillMount && !0 !== instance.componentWillMount.__suppressDeprecationWarning || "function" == typeof instance.UNSAFE_componentWillMount) && unsafeLifecycles.push("UNSAFE_componentWillMount"), 26230 ("function" == typeof instance.componentWillReceiveProps && !0 !== instance.componentWillReceiveProps.__suppressDeprecationWarning || "function" == typeof instance.UNSAFE_componentWillReceiveProps) && unsafeLifecycles.push("UNSAFE_componentWillReceiveProps"), 26231 ("function" == typeof instance.componentWillUpdate && !0 !== instance.componentWillUpdate.__suppressDeprecationWarning || "function" == typeof instance.UNSAFE_componentWillUpdate) && unsafeLifecycles.push("UNSAFE_componentWillUpdate"), 26232 unsafeLifecycles.length > 0 && unsafeLifecycles.forEach(function(lifecycle) { 26233 warningsForRoot[lifecycle].push(fiber); 26234 }); 26235 } 26236 }, ReactStrictModeWarnings.recordLegacyContextWarning = function(fiber, instance) { 26237 var strictRoot = findStrictRoot(fiber); 26238 if (null === strictRoot) return void warning(!1, "Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."); 26239 if (!didWarnAboutLegacyContext.has(fiber.type)) { 26240 var warningsForRoot = pendingLegacyContextWarning.get(strictRoot); 26241 (null != fiber.type.contextTypes || null != fiber.type.childContextTypes || null !== instance && "function" == typeof instance.getChildContext) && (void 0 === warningsForRoot && (warningsForRoot = [], 26242 pendingLegacyContextWarning.set(strictRoot, warningsForRoot)), warningsForRoot.push(fiber)); 26243 } 26244 }, ReactStrictModeWarnings.flushLegacyContextWarning = function() { 26245 pendingLegacyContextWarning.forEach(function(fiberArray, strictRoot) { 26246 var uniqueNames = new Set(); 26247 fiberArray.forEach(function(fiber) { 26248 uniqueNames.add(getComponentName(fiber) || "Component"), didWarnAboutLegacyContext.add(fiber.type); 26249 }); 26250 var sortedNames = setToSortedString(uniqueNames), strictRootComponentStack = getStackAddendumByWorkInProgressFiber(strictRoot); 26251 warning(!1, "Legacy context API has been detected within a strict-mode tree: %s\n\nPlease update the following components: %s\n\nLearn more about this warning here:\nhttps://fb.me/react strict模式警告“,strictrootcomponentstack,sortednames); 26252 }); 26253 }; 26254 var ReactFiberInstrumentation = { 26255 debugTool: null 26256 }, ReactFiberInstrumentation_1 = ReactFiberInstrumentation, UpdateState = 0, ReplaceState = 1, ForceUpdate = 2, CaptureUpdate = 3, hasForceUpdate = !1, didWarnUpdateInsideUpdate = void 0, currentlyProcessingQueue = void 0, resetCurrentlyProcessingQueue = void 0; 26257 didWarnUpdateInsideUpdate = !1, currentlyProcessingQueue = null, resetCurrentlyProcessingQueue = function() { 26258 currentlyProcessingQueue = null; 26259 }; 26260 var providerCursor = createCursor(null), valueCursor = createCursor(null), changedBitsCursor = createCursor(0), rendererSigil = void 0; 26261 rendererSigil = {}; 26262 var NO_CONTEXT = {}, contextStackCursor$1 = createCursor(NO_CONTEXT), contextFiberStackCursor = createCursor(NO_CONTEXT), rootInstanceStackCursor = createCursor(NO_CONTEXT), commitTime = 0, fiberStack$1 = void 0; 26263 fiberStack$1 = []; 26264 var timerPausedAt = 0, totalElapsedPauseTime = 0, baseStartTime = -1, fakeInternalInstance = {}, isArray = Array.isArray, didWarnAboutStateAssignmentForComponent = void 0, didWarnAboutUninitializedState = void 0, didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = void 0, didWarnAboutLegacyLifecyclesAndDerivedState = void 0, didWarnAboutUndefinedDerivedState = void 0, warnOnUndefinedDerivedState = void 0, warnOnInvalidCallback$1 = void 0; 26265 didWarnAboutStateAssignmentForComponent = new Set(), didWarnAboutUninitializedState = new Set(), 26266 didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set(), didWarnAboutLegacyLifecyclesAndDerivedState = new Set(), 26267 didWarnAboutUndefinedDerivedState = new Set(); 26268 var didWarnOnInvalidCallback = new Set(); 26269 warnOnInvalidCallback$1 = function(callback, callerName) { 26270 if (null !== callback && "function" != typeof callback) { 26271 var key = callerName + "_" + callback; 26272 didWarnOnInvalidCallback.has(key) || (didWarnOnInvalidCallback.add(key), warning(!1, "%s(...): Expected the last optional ` + ("`" + `callback`)) + ("`" + (` argument to be a function. Instead received: %s.", callerName, callback)); 26273 } 26274 }, warnOnUndefinedDerivedState = function(workInProgress, partialState) { 26275 if (void 0 === partialState) { 26276 var componentName = getComponentName(workInProgress) || "Component"; 26277 didWarnAboutUndefinedDerivedState.has(componentName) || (didWarnAboutUndefinedDerivedState.add(componentName), 26278 warning(!1, "%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.", componentName)); 26279 } 26280 }, Object.defineProperty(fakeInternalInstance, "_processChildContext", { 26281 enumerable: !1, 26282 value: function() { 26283 invariant(!1, "_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal)."); 26284 } 26285 }), Object.freeze(fakeInternalInstance); 26286 var classComponentUpdater = { 26287 isMounted: isMounted, 26288 enqueueSetState: function(inst, payload, callback) { 26289 var fiber = get(inst), currentTime = recalculateCurrentTime(), expirationTime = computeExpirationForFiber(currentTime, fiber), update = createUpdate(expirationTime); 26290 update.payload = payload, void 0 !== callback && null !== callback && (warnOnInvalidCallback$1(callback, "setState"), 26291 update.callback = callback), enqueueUpdate(fiber, update, expirationTime), scheduleWork$1(fiber, expirationTime); 26292 }, 26293 enqueueReplaceState: function(inst, payload, callback) { 26294 var fiber = get(inst), currentTime = recalculateCurrentTime(), expirationTime = computeExpirationForFiber(currentTime, fiber), update = createUpdate(expirationTime); 26295 update.tag = ReplaceState, update.payload = payload, void 0 !== callback && null !== callback && (warnOnInvalidCallback$1(callback, "replaceState"), 26296 update.callback = callback), enqueueUpdate(fiber, update, expirationTime), scheduleWork$1(fiber, expirationTime); 26297 }, 26298 enqueueForceUpdate: function(inst, callback) { 26299 var fiber = get(inst), currentTime = recalculateCurrentTime(), expirationTime = computeExpirationForFiber(currentTime, fiber), update = createUpdate(expirationTime); 26300 update.tag = ForceUpdate, void 0 !== callback && null !== callback && (warnOnInvalidCallback$1(callback, "forceUpdate"), 26301 update.callback = callback), enqueueUpdate(fiber, update, expirationTime), scheduleWork$1(fiber, expirationTime); 26302 } 26303 }, getCurrentFiberStackAddendum$7 = ReactDebugCurrentFiber.getCurrentFiberStackAddendum, didWarnAboutMaps = void 0, didWarnAboutStringRefInStrictMode = void 0, ownerHasKeyUseWarning = void 0, ownerHasFunctionTypeWarning = void 0, warnForMissingKey = function(child) {}; 26304 didWarnAboutMaps = !1, didWarnAboutStringRefInStrictMode = {}, ownerHasKeyUseWarning = {}, 26305 ownerHasFunctionTypeWarning = {}, warnForMissingKey = function(child) { 26306 if (null !== child && "object" == typeof child && child._store && !child._store.validated && null == child.key) { 26307 "object" != typeof child._store && invariant(!1, "React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue."), 26308 child._store.validated = !0; 26309 var currentComponentErrorInfo = 'Each child in an array or iterator should have a unique "key" prop. See https://fb.me/react-warning-keys了解更多信息。'+(getcurrentfiberstackEngagement$7()“”); 26310 ownerHasKeyUseWarning[currentComponentErrorInfo] || (ownerHasKeyUseWarning[currentComponentErrorInfo] = !0, 26311 warning(!1, 'Each child in an array or iterator should have a unique "key" prop. See https://fb.me/react-warning-keys了解更多信息。%s',getcurrentfiberstackEngagement$7()); 26312 } 26313 }; 26314 var isArray$1 = Array.isArray, reconcileChildFibers = ChildReconciler(!0), mountChildFibers = ChildReconciler(!1), hydrationParentFiber = null, nextHydratableInstance = null, isHydrating = !1, getCurrentFiberStackAddendum$6 = ReactDebugCurrentFiber.getCurrentFiberStackAddendum, didWarnAboutBadClass = void 0, didWarnAboutGetDerivedStateOnFunctionalComponent = void 0, didWarnAboutStatelessRefs = void 0; 26315 didWarnAboutBadClass = {}, didWarnAboutGetDerivedStateOnFunctionalComponent = {}, 26316 didWarnAboutStatelessRefs = {}; 26317 var updateHostContainer = void 0, updateHostComponent$1 = void 0, updateHostText$1 = void 0; 26318 if (supportsMutation) updateHostContainer = function(workInProgress) {}, updateHostComponent$1 = function(current, workInProgress, updatePayload, type, oldProps, newProps, rootContainerInstance, currentHostContext) { 26319 workInProgress.updateQueue = updatePayload, updatePayload && markUpdate(workInProgress); 26320 }, updateHostText$1 = function(current, workInProgress, oldText, newText) { 26321 oldText !== newText && markUpdate(workInProgress); 26322 }; else if (supportsPersistence) { 26323 var appendAllChildrenToContainer = function(containerChildSet, workInProgress) { 26324 for (var node = workInProgress.child; null !== node; ) { 26325 if (node.tag === HostComponent || node.tag === HostText) appendChildToContainerChildSet(containerChildSet, node.stateNode); else if (node.tag === HostPortal) ; else if (null !== node.child) { 26326 node.child.return = node, node = node.child; 26327 continue; 26328 } 26329 if (node === workInProgress) return; 26330 for (;null === node.sibling; ) { 26331 if (null === node.return || node.return === workInProgress) return; 26332 node = node.return; 26333 } 26334 node.sibling.return = node.return, node = node.sibling; 26335 } 26336 }; 26337 updateHostContainer = function(workInProgress) { 26338 var portalOrRoot = workInProgress.stateNode; 26339 if (null === workInProgress.firstEffect) ; else { 26340 var container = portalOrRoot.containerInfo, newChildSet = createContainerChildSet(container); 26341 appendAllChildrenToContainer(newChildSet, workInProgress), portalOrRoot.pendingChildren = newChildSet, 26342 markUpdate(workInProgress), finalizeContainerChildren(container, newChildSet); 26343 } 26344 }, updateHostComponent$1 = function(current, workInProgress, updatePayload, type, oldProps, newProps, rootContainerInstance, currentHostContext) { 26345 var childrenUnchanged = null === workInProgress.firstEffect, currentInstance = current.stateNode; 26346 if (childrenUnchanged && null === updatePayload) workInProgress.stateNode = currentInstance; else { 26347 var recyclableInstance = workInProgress.stateNode, newInstance = cloneInstance(currentInstance, updatePayload, type, oldProps, newProps, workInProgress, childrenUnchanged, recyclableInstance); 26348 finalizeInitialChildren(newInstance, type, newProps, rootContainerInstance, currentHostContext) && markUpdate(workInProgress), 26349 workInProgress.stateNode = newInstance, childrenUnchanged ? markUpdate(workInProgress) : appendAllChildren(newInstance, workInProgress); 26350 } 26351 }, updateHostText$1 = function(current, workInProgress, oldText, newText) { 26352 if (oldText !== newText) { 26353 var rootContainerInstance = getRootHostContainer(), currentHostContext = getHostContext(); 26354 workInProgress.stateNode = createTextInstance(newText, rootContainerInstance, currentHostContext, workInProgress), 26355 markUpdate(workInProgress); 26356 } 26357 }; 26358 } else updateHostContainer = function(workInProgress) {}, updateHostComponent$1 = function(current, workInProgress, updatePayload, type, oldProps, newProps, rootContainerInstance, currentHostContext) {}, 26359 updateHostText$1 = function(current, workInProgress, oldText, newText) {}; 26360 var invokeGuardedCallback$3 = ReactErrorUtils.invokeGuardedCallback, hasCaughtError$1 = ReactErrorUtils.hasCaughtError, clearCaughtError$1 = ReactErrorUtils.clearCaughtError, didWarnAboutUndefinedSnapshotBeforeUpdate = null; 26361 didWarnAboutUndefinedSnapshotBeforeUpdate = new Set(); 26362 var callComponentWillUnmountWithTimer = function(current, instance) { 26363 startPhaseTimer(current, "componentWillUnmount"), instance.props = current.memoizedProps, 26364 instance.state = current.memoizedState, instance.componentWillUnmount(), stopPhaseTimer(); 26365 }, invokeGuardedCallback$2 = ReactErrorUtils.invokeGuardedCallback, hasCaughtError = ReactErrorUtils.hasCaughtError, clearCaughtError = ReactErrorUtils.clearCaughtError, didWarnAboutStateTransition = void 0, didWarnSetStateChildContext = void 0, warnAboutUpdateOnUnmounted = void 0, warnAboutInvalidUpdates = void 0; 26366 didWarnAboutStateTransition = !1, didWarnSetStateChildContext = !1; 26367 var didWarnStateUpdateForUnmountedComponent = {}; 26368 warnAboutUpdateOnUnmounted = function(fiber) { 26369 var componentName = getComponentName(fiber) || "ReactClass"; 26370 didWarnStateUpdateForUnmountedComponent[componentName] || (warning(!1, "Can't call setState (or forceUpdate) on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.%s", getStackAddendumByWorkInProgressFiber(fiber)), 26371 didWarnStateUpdateForUnmountedComponent[componentName] = !0); 26372 }, warnAboutInvalidUpdates = function(instance) { 26373 switch (ReactDebugCurrentFiber.phase) { 26374 case "getChildContext": 26375 if (didWarnSetStateChildContext) return; 26376 warning(!1, "setState(...): Cannot call setState() inside getChildContext()"), didWarnSetStateChildContext = !0; 26377 break; 26378 26379 case "render": 26380 if (didWarnAboutStateTransition) return; 26381 warning(!1, "Cannot update during an existing state transition (such as within ` + "`")))) + (((`render` + ("`" + ` or another component's constructor). Render methods should be a pure function of props and state; constructor side-effects are an anti-pattern, but can be moved to `)) + ("`" + (`componentWillMount` + "`"))) + ((`."), 26382 didWarnAboutStateTransition = !0; 26383 } 26384 }; 26385 var originalStartTimeMs = now(), mostRecentCurrentTime = msToExpirationTime(0), mostRecentCurrentTimeMs = originalStartTimeMs, lastUniqueAsyncExpiration = 0, expirationContext = NoWork, isWorking = !1, nextUnitOfWork = null, nextRoot = null, nextRenderExpirationTime = NoWork, nextLatestTimeoutMs = -1, nextRenderIsExpired = !1, nextEffect = null, isCommitting$1 = !1, isRootReadyForCommit = !1, legacyErrorBoundariesThatAlreadyFailed = null, interruptedBy = null, stashedWorkInProgressProperties = void 0, replayUnitOfWork = void 0, isReplayingFailedUnitOfWork = void 0, originalReplayError = void 0, rethrowOriginalError = void 0; 26386 replayFailedUnitOfWorkWithInvokeGuardedCallback && (stashedWorkInProgressProperties = null, 26387 isReplayingFailedUnitOfWork = !1, originalReplayError = null, replayUnitOfWork = function(failedUnitOfWork, thrownValue, isAsync) { 26388 if (null === thrownValue || "object" != typeof thrownValue || "function" != typeof thrownValue.then) { 26389 if (null === stashedWorkInProgressProperties) return void warning(!1, "Could not replay rendering after an error. This is likely a bug in React. Please file an issue."); 26390 switch (assignFiberPropertiesInDEV(failedUnitOfWork, stashedWorkInProgressProperties), 26391 failedUnitOfWork.tag) { 26392 case HostRoot: 26393 popHostContainer(failedUnitOfWork), popTopLevelContextObject(failedUnitOfWork); 26394 break; 26395 26396 case HostComponent: 26397 popHostContext(failedUnitOfWork); 26398 break; 26399 26400 case ClassComponent: 26401 popContextProvider(failedUnitOfWork); 26402 break; 26403 26404 case HostPortal: 26405 popHostContainer(failedUnitOfWork); 26406 break; 26407 26408 case ContextProvider: 26409 popProvider(failedUnitOfWork); 26410 } 26411 isReplayingFailedUnitOfWork = !0, originalReplayError = thrownValue, invokeGuardedCallback$2(null, workLoop, null, isAsync), 26412 isReplayingFailedUnitOfWork = !1, originalReplayError = null, hasCaughtError() ? (clearCaughtError(), 26413 enableProfilerTimer && stopBaseRenderTimerIfRunning()) : nextUnitOfWork = failedUnitOfWork; 26414 } 26415 }, rethrowOriginalError = function() { 26416 throw originalReplayError; 26417 }); 26418 var firstScheduledRoot = null, lastScheduledRoot = null, callbackExpirationTime = NoWork, callbackID = -1, isRendering = !1, nextFlushedRoot = null, nextFlushedExpirationTime = NoWork, lowestPendingInteractiveExpirationTime = NoWork, deadlineDidExpire = !1, hasUnhandledError = !1, unhandledError = null, deadline = null, isBatchingUpdates = !1, isUnbatchingUpdates = !1, isBatchingInteractiveUpdates = !1, completedBatches = null, NESTED_UPDATE_LIMIT = 1e3, nestedUpdateCount = 0, timeHeuristicForUnitOfWork = 1, didWarnAboutNestedUpdates = void 0; 26419 didWarnAboutNestedUpdates = !1; 26420 var DOMRenderer = Object.freeze({ 26421 updateContainerAtExpirationTime: updateContainerAtExpirationTime, 26422 createContainer: createContainer, 26423 updateContainer: updateContainer, 26424 flushRoot: flushRoot, 26425 requestWork: requestWork, 26426 computeUniqueAsyncExpiration: computeUniqueAsyncExpiration, 26427 batchedUpdates: batchedUpdates$1, 26428 unbatchedUpdates: unbatchedUpdates, 26429 deferredUpdates: deferredUpdates, 26430 syncUpdates: syncUpdates, 26431 interactiveUpdates: interactiveUpdates$1, 26432 flushInteractiveUpdates: flushInteractiveUpdates$1, 26433 flushControlled: flushControlled, 26434 flushSync: flushSync, 26435 getPublicRootInstance: getPublicRootInstance, 26436 findHostInstance: findHostInstance, 26437 findHostInstanceWithNoPortals: findHostInstanceWithNoPortals, 26438 injectIntoDevTools: injectIntoDevTools 26439 }), topLevelUpdateWarnings = void 0, warnOnInvalidCallback = void 0, didWarnAboutUnstableCreatePortal = !1; 26440 "function" == typeof Map && null != Map.prototype && "function" == typeof Map.prototype.forEach && "function" == typeof Set && null != Set.prototype && "function" == typeof Set.prototype.clear && "function" == typeof Set.prototype.forEach || warning(!1, "React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://fb.me/react polyfills”), 26441 topLevelUpdateWarnings = function(container) { 26442 if (container._reactRootContainer && container.nodeType !== COMMENT_NODE) { 26443 var hostInstance = findHostInstanceWithNoPortals(container._reactRootContainer._internalRoot.current); 26444 hostInstance && hostInstance.parentNode !== container && warning(!1, "render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container."); 26445 } 26446 var isRootRenderedBySomeReact = !!container._reactRootContainer, rootEl = getReactRootElementInContainer(container); 26447 !(!rootEl || !getInstanceFromNode$1(rootEl)) && !isRootRenderedBySomeReact && warning(!1, "render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."), 26448 container.nodeType === ELEMENT_NODE && container.tagName && "BODY" === container.tagName.toUpperCase() && warning(!1, "render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app."); 26449 }, warnOnInvalidCallback = function(callback, callerName) { 26450 null !== callback && "function" != typeof callback && warning(!1, "%s(...): Expected the last optional ` + ("`" + `callback`)) + ("`" + (` argument to be a function. Instead received: %s.", callerName, callback); 26451 }, injection$2.injectFiberControlledHostComponent(ReactDOMFiberComponent), ReactBatch.prototype.render = function(children) { 26452 this._defer || invariant(!1, "batch.render: Cannot render a batch that already committed."), 26453 this._hasChildren = !0, this._children = children; 26454 var internalRoot = this._root._internalRoot, expirationTime = this._expirationTime, work = new ReactWork(); 26455 return updateContainerAtExpirationTime(children, internalRoot, null, expirationTime, work._onCommit), 26456 work; 26457 }, ReactBatch.prototype.then = function(onComplete) { 26458 if (this._didComplete) return void onComplete(); 26459 var callbacks = this._callbacks; 26460 null === callbacks && (callbacks = this._callbacks = []), callbacks.push(onComplete); 26461 }, ReactBatch.prototype.commit = function() { 26462 var internalRoot = this._root._internalRoot, firstBatch = internalRoot.firstBatch; 26463 if (this._defer && null !== firstBatch || invariant(!1, "batch.commit: Cannot commit a batch multiple times."), 26464 !this._hasChildren) return this._next = null, void (this._defer = !1); 26465 var expirationTime = this._expirationTime; 26466 if (firstBatch !== this) { 26467 this._hasChildren && (expirationTime = this._expirationTime = firstBatch._expirationTime, 26468 this.render(this._children)); 26469 for (var previous = null, batch = firstBatch; batch !== this; ) previous = batch, 26470 batch = batch._next; 26471 null === previous && invariant(!1, "batch.commit: Cannot commit a batch multiple times."), 26472 previous._next = batch._next, this._next = firstBatch, firstBatch = internalRoot.firstBatch = this; 26473 } 26474 this._defer = !1, flushRoot(internalRoot, expirationTime); 26475 var next = this._next; 26476 this._next = null, null !== (firstBatch = internalRoot.firstBatch = next) && firstBatch._hasChildren && firstBatch.render(firstBatch._children); 26477 }, ReactBatch.prototype._onComplete = function() { 26478 if (!this._didComplete) { 26479 this._didComplete = !0; 26480 var callbacks = this._callbacks; 26481 if (null !== callbacks) for (var i = 0; i < callbacks.length; i++) { 26482 var _callback = callbacks[i]; 26483 _callback(); 26484 } 26485 } 26486 }, ReactWork.prototype.then = function(onCommit) { 26487 if (this._didCommit) return void onCommit(); 26488 var callbacks = this._callbacks; 26489 null === callbacks && (callbacks = this._callbacks = []), callbacks.push(onCommit); 26490 }, ReactWork.prototype._onCommit = function() { 26491 if (!this._didCommit) { 26492 this._didCommit = !0; 26493 var callbacks = this._callbacks; 26494 if (null !== callbacks) for (var i = 0; i < callbacks.length; i++) { 26495 var _callback2 = callbacks[i]; 26496 "function" != typeof _callback2 && invariant(!1, "Invalid argument passed as callback. Expected a function. Instead received: %s", _callback2), 26497 _callback2(); 26498 } 26499 } 26500 }, ReactRoot.prototype.render = function(children, callback) { 26501 var root = this._internalRoot, work = new ReactWork(); 26502 return callback = void 0 === callback ? null : callback, warnOnInvalidCallback(callback, "render"), 26503 null !== callback && work.then(callback), updateContainer(children, root, null, work._onCommit), 26504 work; 26505 }, ReactRoot.prototype.unmount = function(callback) { 26506 var root = this._internalRoot, work = new ReactWork(); 26507 return callback = void 0 === callback ? null : callback, warnOnInvalidCallback(callback, "render"), 26508 null !== callback && work.then(callback), updateContainer(null, root, null, work._onCommit), 26509 work; 26510 }, ReactRoot.prototype.legacy_renderSubtreeIntoContainer = function(parentComponent, children, callback) { 26511 var root = this._internalRoot, work = new ReactWork(); 26512 return callback = void 0 === callback ? null : callback, warnOnInvalidCallback(callback, "render"), 26513 null !== callback && work.then(callback), updateContainer(children, root, parentComponent, work._onCommit), 26514 work; 26515 }, ReactRoot.prototype.createBatch = function() { 26516 var batch = new ReactBatch(this), expirationTime = batch._expirationTime, internalRoot = this._internalRoot, firstBatch = internalRoot.firstBatch; 26517 if (null === firstBatch) internalRoot.firstBatch = batch, batch._next = null; else { 26518 for (var insertAfter = null, insertBefore = firstBatch; null !== insertBefore && insertBefore._expirationTime <= expirationTime; ) insertAfter = insertBefore, 26519 insertBefore = insertBefore._next; 26520 batch._next = insertBefore, null !== insertAfter && (insertAfter._next = batch); 26521 } 26522 return batch; 26523 }, injection$3.injectRenderer(DOMRenderer); 26524 var warnedAboutHydrateAPI = !1, ReactDOM = { 26525 createPortal: createPortal, 26526 findDOMNode: function(componentOrElement) { 26527 var owner = ReactCurrentOwner.current; 26528 if (null !== owner && null !== owner.stateNode) { 26529 owner.stateNode._warnedAboutRefsInRender || warning(!1, "%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.", getComponentName(owner) || "A component"), 26530 owner.stateNode._warnedAboutRefsInRender = !0; 26531 } 26532 return null == componentOrElement ? null : componentOrElement.nodeType === ELEMENT_NODE ? componentOrElement : findHostInstance(componentOrElement); 26533 }, 26534 hydrate: function(element, container, callback) { 26535 return legacyRenderSubtreeIntoContainer(null, element, container, !0, callback); 26536 }, 26537 render: function(element, container, callback) { 26538 return legacyRenderSubtreeIntoContainer(null, element, container, !1, callback); 26539 }, 26540 unstable_renderSubtreeIntoContainer: function(parentComponent, element, containerNode, callback) { 26541 return null != parentComponent && has(parentComponent) || invariant(!1, "parentComponent must be a valid React Component"), 26542 legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, !1, callback); 26543 }, 26544 unmountComponentAtNode: function(container) { 26545 if (isValidContainer(container) || invariant(!1, "unmountComponentAtNode(...): Target container is not a DOM element."), 26546 container._reactRootContainer) { 26547 var rootEl = getReactRootElementInContainer(container); 26548 return rootEl && !getInstanceFromNode$1(rootEl) && warning(!1, "unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React."), 26549 unbatchedUpdates(function() { 26550 legacyRenderSubtreeIntoContainer(null, null, container, !1, function() { 26551 container._reactRootContainer = null; 26552 }); 26553 }), !0; 26554 } 26555 var _rootEl = getReactRootElementInContainer(container), hasNonRootReactChild = !(!_rootEl || !getInstanceFromNode$1(_rootEl)), isContainerReactRoot = 1 === container.nodeType && isValidContainer(container.parentNode) && !!container.parentNode._reactRootContainer; 26556 return hasNonRootReactChild && warning(!1, "unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s", isContainerReactRoot ? "You may have accidentally passed in a React root node instead of its container." : "Instead, have the parent component update its state and rerender in order to remove this component."), 26557 !1; 26558 }, 26559 unstable_createPortal: function() { 26560 return didWarnAboutUnstableCreatePortal || (didWarnAboutUnstableCreatePortal = !0, 26561 lowPriorityWarning$1(!1, 'The ReactDOM.unstable_createPortal() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactDOM.createPortal() instead. It has the exact same API, but without the "unstable_" prefix.')), 26562 createPortal.apply(void 0, arguments); 26563 }, 26564 unstable_batchedUpdates: batchedUpdates$1, 26565 unstable_deferredUpdates: deferredUpdates, 26566 flushSync: flushSync, 26567 unstable_flushControlled: flushControlled, 26568 __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { 26569 EventPluginHub: EventPluginHub, 26570 EventPluginRegistry: EventPluginRegistry, 26571 EventPropagators: EventPropagators, 26572 ReactControlledComponent: ReactControlledComponent, 26573 ReactDOMComponentTree: ReactDOMComponentTree, 26574 ReactDOMEventListener: ReactDOMEventListener 26575 } 26576 }; 26577 if (ReactDOM.unstable_createRoot = function(container, options) { 26578 return new ReactRoot(container, !0, null != options && !0 === options.hydrate); 26579 }, !injectIntoDevTools({ 26580 findFiberByHostInstance: getClosestInstanceFromNode, 26581 bundleType: 1, 26582 version: "16.4.0", 26583 rendererPackageName: "react-dom" 26584 }) && ExecutionEnvironment.canUseDOM && window.top === window.self && (navigator.userAgent.indexOf("Chrome") > -1 && -1 === navigator.userAgent.indexOf("Edge") || navigator.userAgent.indexOf("Firefox") > -1)) { 26585 var protocol = window.location.protocol; 26586 /^(https?|file):$/.test(protocol) && console.info("%cDownload the React DevTools for a better development experience: https://fb.me/react devtools“+”(文件:“==协议?”\n您可能需要使用本地HTTP服务器(而不是file://):https://fb.me/react-devtools-faq“:”“,“font-weight:bold”); 26587 } 26588 var ReactDOM$2 = Object.freeze({ 26589 default: ReactDOM 26590 }), ReactDOM$3 = ReactDOM$2 && ReactDOM || ReactDOM$2, reactDom = ReactDOM$3.default ? ReactDOM$3.default : ReactDOM$3; 26591 module.exports = reactDom; 26592 }(); 26593 }).call(exports, __webpack_require__(2)); 26594 }, function(module, exports, __webpack_require__) { 26595 "use strict"; 26596 function hyphenateStyleName(string) { 26597 return hyphenate(string).replace(msPattern, "-ms-"); 26598 } 26599 var hyphenate = __webpack_require__(383), msPattern = /^ms-/; 26600 module.exports = hyphenateStyleName; 26601 }, function(module, exports, __webpack_require__) { 26602 "use strict"; 26603 function hyphenate(string) { 26604 return string.replace(_uppercasePattern, "-$1").toLowerCase(); 26605 } 26606 var _uppercasePattern = /([A-Z])/g; 26607 module.exports = hyphenate; 26608 }, function(module, exports, __webpack_require__) { 26609 "use strict"; 26610 function camelizeStyleName(string) { 26611 return camelize(string.replace(msPattern, "ms-")); 26612 } 26613 var camelize = __webpack_require__(385), msPattern = /^-ms-/; 26614 module.exports = camelizeStyleName; 26615 }, function(module, exports, __webpack_require__) { 26616 "use strict"; 26617 function camelize(string) { 26618 return string.replace(_hyphenPattern, function(_, character) { 26619 return character.toUpperCase(); 26620 }); 26621 } 26622 var _hyphenPattern = /-(.)/g; 26623 module.exports = camelize; 26624 }, function(module, exports, __webpack_require__) { 26625 "use strict"; 26626 (function(process) { 26627 function _interopRequireDefault(obj) { 26628 return obj && obj.__esModule ? obj : { 26629 default: obj 26630 }; 26631 } 26632 Object.defineProperty(exports, "__esModule", { 26633 value: !0 26634 }); 26635 var _extends2 = __webpack_require__(6), _extends3 = _interopRequireDefault(_extends2), _defineProperty2 = __webpack_require__(12), _defineProperty3 = _interopRequireDefault(_defineProperty2), _getPrototypeOf = __webpack_require__(26), _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf), _classCallCheck2 = __webpack_require__(27), _classCallCheck3 = _interopRequireDefault(_classCallCheck2), _createClass2 = __webpack_require__(28), _createClass3 = _interopRequireDefault(_createClass2), _possibleConstructorReturn2 = __webpack_require__(29), _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2), _inherits2 = __webpack_require__(30), _inherits3 = _interopRequireDefault(_inherits2), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _warning = __webpack_require__(11), _warning2 = _interopRequireDefault(_warning), _brcast = __webpack_require__(420), _brcast2 = _interopRequireDefault(_brcast), _themeListener = __webpack_require__(160), _themeListener2 = _interopRequireDefault(_themeListener), _exactProp = __webpack_require__(236), _exactProp2 = _interopRequireDefault(_exactProp), MuiThemeProvider = function(_React$Component) { 26636 function MuiThemeProvider(props, context) { 26637 (0, _classCallCheck3.default)(this, MuiThemeProvider); 26638 var _this = (0, _possibleConstructorReturn3.default)(this, (MuiThemeProvider.__proto__ || (0, 26639 _getPrototypeOf2.default)(MuiThemeProvider)).call(this, props, context)); 26640 return _this.broadcast = (0, _brcast2.default)(), _this.unsubscribeId = null, _this.outerTheme = null, 26641 _this.outerTheme = _themeListener2.default.initial(context), _this.broadcast.setState(_this.mergeOuterLocalTheme(_this.props.theme)), 26642 _this; 26643 } 26644 return (0, _inherits3.default)(MuiThemeProvider, _React$Component), (0, _createClass3.default)(MuiThemeProvider, [ { 26645 key: "getChildContext", 26646 value: function() { 26647 var _ref, _props = this.props, sheetsManager = _props.sheetsManager, disableStylesGeneration = _props.disableStylesGeneration, muiThemeProviderOptions = this.context.muiThemeProviderOptions || {}; 26648 return void 0 !== sheetsManager && (muiThemeProviderOptions.sheetsManager = sheetsManager), 26649 void 0 !== disableStylesGeneration && (muiThemeProviderOptions.disableStylesGeneration = disableStylesGeneration), 26650 _ref = {}, (0, _defineProperty3.default)(_ref, _themeListener.CHANNEL, this.broadcast), 26651 (0, _defineProperty3.default)(_ref, "muiThemeProviderOptions", muiThemeProviderOptions), 26652 _ref; 26653 } 26654 }, { 26655 key: "componentDidMount", 26656 value: function() { 26657 var _this2 = this; 26658 this.unsubscribeId = _themeListener2.default.subscribe(this.context, function(outerTheme) { 26659 _this2.outerTheme = outerTheme, _this2.broadcast.setState(_this2.mergeOuterLocalTheme(_this2.props.theme)); 26660 }); 26661 } 26662 }, { 26663 key: "componentWillReceiveProps", 26664 value: function(nextProps) { 26665 this.props.theme !== nextProps.theme && this.broadcast.setState(this.mergeOuterLocalTheme(nextProps.theme)); 26666 } 26667 }, { 26668 key: "componentWillUnmount", 26669 value: function() { 26670 null !== this.unsubscribeId && _themeListener2.default.unsubscribe(this.context, this.unsubscribeId); 26671 } 26672 }, { 26673 key: "mergeOuterLocalTheme", 26674 value: function(localTheme) { 26675 return "function" == typeof localTheme ? ("production" !== process.env.NODE_ENV && (0, 26676 _warning2.default)(this.outerTheme, [ "Material-UI: you are providing a theme function property to the MuiThemeProvider component:", "<MuiThemeProvider theme={outerTheme => outerTheme} />", "", "However, no outer theme is present.", "Make sure a theme is already injected higher in the React tree or provide a theme object." ].join("\n")), 26677 localTheme(this.outerTheme)) : this.outerTheme ? (0, _extends3.default)({}, this.outerTheme, localTheme) : localTheme; 26678 } 26679 }, { 26680 key: "render", 26681 value: function() { 26682 return this.props.children; 26683 } 26684 } ]), MuiThemeProvider; 26685 }(_react2.default.Component); 26686 MuiThemeProvider.propTypes = "production" !== process.env.NODE_ENV ? { 26687 children: _propTypes2.default.node.isRequired, 26688 disableStylesGeneration: _propTypes2.default.bool, 26689 sheetsManager: _propTypes2.default.object, 26690 theme: _propTypes2.default.oneOfType([ _propTypes2.default.object, _propTypes2.default.func ]).isRequired 26691 } : {}, MuiThemeProvider.propTypes = "production" !== process.env.NODE_ENV ? (0, 26692 _exactProp2.default)(MuiThemeProvider.propTypes, "MuiThemeProvider") : {}, MuiThemeProvider.childContextTypes = (0, 26693 _extends3.default)({}, _themeListener2.default.contextTypes, { 26694 muiThemeProviderOptions: _propTypes2.default.object 26695 }), MuiThemeProvider.contextTypes = (0, _extends3.default)({}, _themeListener2.default.contextTypes, { 26696 muiThemeProviderOptions: _propTypes2.default.object 26697 }), exports.default = MuiThemeProvider; 26698 }).call(exports, __webpack_require__(2)); 26699 }, function(module, exports, __webpack_require__) { 26700 __webpack_require__(388), module.exports = __webpack_require__(17).Object.assign; 26701 }, function(module, exports, __webpack_require__) { 26702 var $export = __webpack_require__(19); 26703 $export($export.S + $export.F, "Object", { 26704 assign: __webpack_require__(389) 26705 }); 26706 }, function(module, exports, __webpack_require__) { 26707 "use strict"; 26708 var getKeys = __webpack_require__(76), gOPS = __webpack_require__(153), pIE = __webpack_require__(104), toObject = __webpack_require__(65), IObject = __webpack_require__(146), $assign = Object.assign; 26709 module.exports = !$assign || __webpack_require__(53)(function() { 26710 var A = {}, B = {}, S = Symbol(), K = "abcdefghijklmnopqrst"; 26711 return A[S] = 7, K.split("").forEach(function(k) { 26712 B[k] = k; 26713 }), 7 != $assign({}, A)[S] || Object.keys($assign({}, B)).join("") != K; 26714 }) ? function(target, source) { 26715 for (var T = toObject(target), aLen = arguments.length, index = 1, getSymbols = gOPS.f, isEnum = pIE.f; aLen > index; ) for (var key, S = IObject(arguments[index++]), keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S), length = keys.length, j = 0; length > j; ) isEnum.call(S, key = keys[j++]) && (T[key] = S[key]); 26716 return T; 26717 } : $assign; 26718 }, function(module, exports, __webpack_require__) { 26719 var toIObject = __webpack_require__(64), toLength = __webpack_require__(101), toAbsoluteIndex = __webpack_require__(391); 26720 module.exports = function(IS_INCLUDES) { 26721 return function($this, el, fromIndex) { 26722 var value, O = toIObject($this), length = toLength(O.length), index = toAbsoluteIndex(fromIndex, length); 26723 if (IS_INCLUDES && el != el) { 26724 for (;length > index; ) if ((value = O[index++]) != value) return !0; 26725 } else for (;length > index; index++) if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; 26726 return !IS_INCLUDES && -1; 26727 }; 26728 }; 26729 }, function(module, exports, __webpack_require__) { 26730 var toInteger = __webpack_require__(149), max = Math.max, min = Math.min; 26731 module.exports = function(index, length) { 26732 return index = toInteger(index), index < 0 ? max(index + length, 0) : min(index, length); 26733 }; 26734 }, function(module, exports, __webpack_require__) { 26735 __webpack_require__(393); 26736 var $Object = __webpack_require__(17).Object; 26737 module.exports = function(it, key, desc) { 26738 return $Object.defineProperty(it, key, desc); 26739 }; 26740 }, function(module, exports, __webpack_require__) { 26741 var $export = __webpack_require__(19); 26742 $export($export.S + $export.F * !__webpack_require__(25), "Object", { 26743 defineProperty: __webpack_require__(22).f 26744 }); 26745 }, function(module, exports, __webpack_require__) { 26746 __webpack_require__(395), module.exports = __webpack_require__(17).Object.getPrototypeOf; 26747 }, function(module, exports, __webpack_require__) { 26748 var toObject = __webpack_require__(65), $getPrototypeOf = __webpack_require__(227); 26749 __webpack_require__(228)("getPrototypeOf", function() { 26750 return function(it) { 26751 return $getPrototypeOf(toObject(it)); 26752 }; 26753 }); 26754 }, function(module, exports, __webpack_require__) { 26755 module.exports = { 26756 default: __webpack_require__(397), 26757 __esModule: !0 26758 }; 26759 }, function(module, exports, __webpack_require__) { 26760 __webpack_require__(155), __webpack_require__(230), module.exports = __webpack_require__(157).f("iterator"); 26761 }, function(module, exports, __webpack_require__) { 26762 var toInteger = __webpack_require__(149), defined = __webpack_require__(148); 26763 module.exports = function(TO_STRING) { 26764 return function(that, pos) { 26765 var a, b, s = String(defined(that)), i = toInteger(pos), l = s.length; 26766 return i < 0 || i >= l ? TO_STRING ? "" : void 0 : (a = s.charCodeAt(i), a < 55296 || a > 56319 || i + 1 === l || (b = s.charCodeAt(i + 1)) < 56320 || b > 57343 ? TO_STRING ? s.charAt(i) : a : TO_STRING ? s.slice(i, i + 2) : b - 56320 + (a - 55296 << 10) + 65536); 26767 }; 26768 }; 26769 }, function(module, exports, __webpack_require__) { 26770 "use strict"; 26771 var create = __webpack_require__(106), descriptor = __webpack_require__(75), setToStringTag = __webpack_require__(107), IteratorPrototype = {}; 26772 __webpack_require__(39)(IteratorPrototype, __webpack_require__(21)("iterator"), function() { 26773 return this; 26774 }), module.exports = function(Constructor, NAME, next) { 26775 Constructor.prototype = create(IteratorPrototype, { 26776 next: descriptor(1, next) 26777 }), setToStringTag(Constructor, NAME + " Iterator"); 26778 }; 26779 }, function(module, exports, __webpack_require__) { 26780 var dP = __webpack_require__(22), anObject = __webpack_require__(52), getKeys = __webpack_require__(76); 26781 module.exports = __webpack_require__(25) ? Object.defineProperties : function(O, Properties) { 26782 anObject(O); 26783 for (var P, keys = getKeys(Properties), length = keys.length, i = 0; length > i; ) dP.f(O, P = keys[i++], Properties[P]); 26784 return O; 26785 }; 26786 }, function(module, exports, __webpack_require__) { 26787 var document = __webpack_require__(24).document; 26788 module.exports = document && document.documentElement; 26789 }, function(module, exports, __webpack_require__) { 26790 "use strict"; 26791 var addToUnscopables = __webpack_require__(403), step = __webpack_require__(231), Iterators = __webpack_require__(77), toIObject = __webpack_require__(64); 26792 module.exports = __webpack_require__(156)(Array, "Array", function(iterated, kind) { 26793 this._t = toIObject(iterated), this._i = 0, this._k = kind; 26794 }, function() { 26795 var O = this._t, kind = this._k, index = this._i++; 26796 return !O || index >= O.length ? (this._t = void 0, step(1)) : "keys" == kind ? step(0, index) : "values" == kind ? step(0, O[index]) : step(0, [ index, O[index] ]); 26797 }, "values"), Iterators.Arguments = Iterators.Array, addToUnscopables("keys"), addToUnscopables("values"), 26798 addToUnscopables("entries"); 26799 }, function(module, exports) { 26800 module.exports = function() {}; 26801 }, function(module, exports, __webpack_require__) { 26802 module.exports = { 26803 default: __webpack_require__(405), 26804 __esModule: !0 26805 }; 26806 }, function(module, exports, __webpack_require__) { 26807 __webpack_require__(406), __webpack_require__(235), __webpack_require__(409), __webpack_require__(410), 26808 module.exports = __webpack_require__(17).Symbol; 26809 }, function(module, exports, __webpack_require__) { 26810 "use strict"; 26811 var global = __webpack_require__(24), has = __webpack_require__(54), DESCRIPTORS = __webpack_require__(25), $export = __webpack_require__(19), redefine = __webpack_require__(229), META = __webpack_require__(158).KEY, $fails = __webpack_require__(53), shared = __webpack_require__(151), setToStringTag = __webpack_require__(107), uid = __webpack_require__(103), wks = __webpack_require__(21), wksExt = __webpack_require__(157), wksDefine = __webpack_require__(159), enumKeys = __webpack_require__(407), isArray = __webpack_require__(232), anObject = __webpack_require__(52), isObject = __webpack_require__(35), toIObject = __webpack_require__(64), toPrimitive = __webpack_require__(145), createDesc = __webpack_require__(75), _create = __webpack_require__(106), gOPNExt = __webpack_require__(408), $GOPD = __webpack_require__(234), $DP = __webpack_require__(22), $keys = __webpack_require__(76), gOPD = $GOPD.f, dP = $DP.f, gOPN = gOPNExt.f, $Symbol = global.Symbol, $JSON = global.JSON, _stringify = $JSON && $JSON.stringify, HIDDEN = wks("_hidden"), TO_PRIMITIVE = wks("toPrimitive"), isEnum = {}.propertyIsEnumerable, SymbolRegistry = shared("symbol-registry"), AllSymbols = shared("symbols"), OPSymbols = shared("op-symbols"), ObjectProto = Object.prototype, USE_NATIVE = "function" == typeof $Symbol, QObject = global.QObject, setter = !QObject || !QObject.prototype || !QObject.prototype.findChild, setSymbolDesc = DESCRIPTORS && $fails(function() { 26812 return 7 != _create(dP({}, "a", { 26813 get: function() { 26814 return dP(this, "a", { 26815 value: 7 26816 }).a; 26817 } 26818 })).a; 26819 }) ? function(it, key, D) { 26820 var protoDesc = gOPD(ObjectProto, key); 26821 protoDesc && delete ObjectProto[key], dP(it, key, D), protoDesc && it !== ObjectProto && dP(ObjectProto, key, protoDesc); 26822 } : dP, wrap = function(tag) { 26823 var sym = AllSymbols[tag] = _create($Symbol.prototype); 26824 return sym._k = tag, sym; 26825 }, isSymbol = USE_NATIVE && "symbol" == typeof $Symbol.iterator ? function(it) { 26826 return "symbol" == typeof it; 26827 } : function(it) { 26828 return it instanceof $Symbol; 26829 }, $defineProperty = function(it, key, D) { 26830 return it === ObjectProto && $defineProperty(OPSymbols, key, D), anObject(it), key = toPrimitive(key, !0), 26831 anObject(D), has(AllSymbols, key) ? (D.enumerable ? (has(it, HIDDEN) && it[HIDDEN][key] && (it[HIDDEN][key] = !1), 26832 D = _create(D, { 26833 enumerable: createDesc(0, !1) 26834 })) : (has(it, HIDDEN) || dP(it, HIDDEN, createDesc(1, {})), it[HIDDEN][key] = !0), 26835 setSymbolDesc(it, key, D)) : dP(it, key, D); 26836 }, $defineProperties = function(it, P) { 26837 anObject(it); 26838 for (var key, keys = enumKeys(P = toIObject(P)), i = 0, l = keys.length; l > i; ) $defineProperty(it, key = keys[i++], P[key]); 26839 return it; 26840 }, $create = function(it, P) { 26841 return void 0 === P ? _create(it) : $defineProperties(_create(it), P); 26842 }, $propertyIsEnumerable = function(key) { 26843 var E = isEnum.call(this, key = toPrimitive(key, !0)); 26844 return !(this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) && (!(E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key]) || E); 26845 }, $getOwnPropertyDescriptor = function(it, key) { 26846 if (it = toIObject(it), key = toPrimitive(key, !0), it !== ObjectProto || !has(AllSymbols, key) || has(OPSymbols, key)) { 26847 var D = gOPD(it, key); 26848 return !D || !has(AllSymbols, key) || has(it, HIDDEN) && it[HIDDEN][key] || (D.enumerable = !0), 26849 D; 26850 } 26851 }, $getOwnPropertyNames = function(it) { 26852 for (var key, names = gOPN(toIObject(it)), result = [], i = 0; names.length > i; ) has(AllSymbols, key = names[i++]) || key == HIDDEN || key == META || result.push(key); 26853 return result; 26854 }, $getOwnPropertySymbols = function(it) { 26855 for (var key, IS_OP = it === ObjectProto, names = gOPN(IS_OP ? OPSymbols : toIObject(it)), result = [], i = 0; names.length > i; ) !has(AllSymbols, key = names[i++]) || IS_OP && !has(ObjectProto, key) || result.push(AllSymbols[key]); 26856 return result; 26857 }; 26858 USE_NATIVE || ($Symbol = function() { 26859 if (this instanceof $Symbol) throw TypeError("Symbol is not a constructor!"); 26860 var tag = uid(arguments.length > 0 ? arguments[0] : void 0), $set = function(value) { 26861 this === ObjectProto && $set.call(OPSymbols, value), has(this, HIDDEN) && has(this[HIDDEN], tag) && (this[HIDDEN][tag] = !1), 26862 setSymbolDesc(this, tag, createDesc(1, value)); 26863 }; 26864 return DESCRIPTORS && setter && setSymbolDesc(ObjectProto, tag, { 26865 configurable: !0, 26866 set: $set 26867 }), wrap(tag); 26868 }, redefine($Symbol.prototype, "toString", function() { 26869 return this._k; 26870 }), $GOPD.f = $getOwnPropertyDescriptor, $DP.f = $defineProperty, __webpack_require__(233).f = gOPNExt.f = $getOwnPropertyNames, 26871 __webpack_require__(104).f = $propertyIsEnumerable, __webpack_require__(153).f = $getOwnPropertySymbols, 26872 DESCRIPTORS && !__webpack_require__(102) && redefine(ObjectProto, "propertyIsEnumerable", $propertyIsEnumerable, !0), 26873 wksExt.f = function(name) { 26874 return wrap(wks(name)); 26875 }), $export($export.G + $export.W + $export.F * !USE_NATIVE, { 26876 Symbol: $Symbol 26877 }); 26878 for (var es6Symbols = "hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","), j = 0; es6Symbols.length > j; ) wks(es6Symbols[j++]); 26879 for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k; ) wksDefine(wellKnownSymbols[k++]); 26880 $export($export.S + $export.F * !USE_NATIVE, "Symbol", { 26881 for: function(key) { 26882 return has(SymbolRegistry, key += "") ? SymbolRegistry[key] : SymbolRegistry[key] = $Symbol(key); 26883 }, 26884 keyFor: function(sym) { 26885 if (!isSymbol(sym)) throw TypeError(sym + " is not a symbol!"); 26886 for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key; 26887 }, 26888 useSetter: function() { 26889 setter = !0; 26890 }, 26891 useSimple: function() { 26892 setter = !1; 26893 } 26894 }), $export($export.S + $export.F * !USE_NATIVE, "Object", { 26895 create: $create, 26896 defineProperty: $defineProperty, 26897 defineProperties: $defineProperties, 26898 getOwnPropertyDescriptor: $getOwnPropertyDescriptor, 26899 getOwnPropertyNames: $getOwnPropertyNames, 26900 getOwnPropertySymbols: $getOwnPropertySymbols 26901 }), $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function() { 26902 var S = $Symbol(); 26903 return "[null]" != _stringify([ S ]) || "{}" != _stringify({ 26904 a: S 26905 }) || "{}" != _stringify(Object(S)); 26906 })), "JSON", { 26907 stringify: function(it) { 26908 for (var replacer, $replacer, args = [ it ], i = 1; arguments.length > i; ) args.push(arguments[i++]); 26909 if ($replacer = replacer = args[1], (isObject(replacer) || void 0 !== it) && !isSymbol(it)) return isArray(replacer) || (replacer = function(key, value) { 26910 if ("function" == typeof $replacer && (value = $replacer.call(this, key, value)), 26911 !isSymbol(value)) return value; 26912 }), args[1] = replacer, _stringify.apply($JSON, args); 26913 } 26914 }), $Symbol.prototype[TO_PRIMITIVE] || __webpack_require__(39)($Symbol.prototype, TO_PRIMITIVE, $Symbol.prototype.valueOf), 26915 setToStringTag($Symbol, "Symbol"), setToStringTag(Math, "Math", !0), setToStringTag(global.JSON, "JSON", !0); 26916 }, function(module, exports, __webpack_require__) { 26917 var getKeys = __webpack_require__(76), gOPS = __webpack_require__(153), pIE = __webpack_require__(104); 26918 module.exports = function(it) { 26919 var result = getKeys(it), getSymbols = gOPS.f; 26920 if (getSymbols) for (var key, symbols = getSymbols(it), isEnum = pIE.f, i = 0; symbols.length > i; ) isEnum.call(it, key = symbols[i++]) && result.push(key); 26921 return result; 26922 }; 26923 }, function(module, exports, __webpack_require__) { 26924 var toIObject = __webpack_require__(64), gOPN = __webpack_require__(233).f, toString = {}.toString, windowNames = "object" == typeof window && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], getWindowNames = function(it) { 26925 try { 26926 return gOPN(it); 26927 } catch (e) { 26928 return windowNames.slice(); 26929 } 26930 }; 26931 module.exports.f = function(it) { 26932 return windowNames && "[object Window]" == toString.call(it) ? getWindowNames(it) : gOPN(toIObject(it)); 26933 }; 26934 }, function(module, exports, __webpack_require__) { 26935 __webpack_require__(159)("asyncIterator"); 26936 }, function(module, exports, __webpack_require__) { 26937 __webpack_require__(159)("observable"); 26938 }, function(module, exports, __webpack_require__) { 26939 module.exports = { 26940 default: __webpack_require__(412), 26941 __esModule: !0 26942 }; 26943 }, function(module, exports, __webpack_require__) { 26944 __webpack_require__(413), module.exports = __webpack_require__(17).Object.setPrototypeOf; 26945 }, function(module, exports, __webpack_require__) { 26946 var $export = __webpack_require__(19); 26947 $export($export.S, "Object", { 26948 setPrototypeOf: __webpack_require__(414).set 26949 }); 26950 }, function(module, exports, __webpack_require__) { 26951 var isObject = __webpack_require__(35), anObject = __webpack_require__(52), check = function(O, proto) { 26952 if (anObject(O), !isObject(proto) && null !== proto) throw TypeError(proto + ": can't set as prototype!"); 26953 }; 26954 module.exports = { 26955 set: Object.setPrototypeOf || ("__proto__" in {} ? function(test, buggy, set) { 26956 try { 26957 set = __webpack_require__(51)(Function.call, __webpack_require__(234).f(Object.prototype, "__proto__").set, 2), 26958 set(test, []), buggy = !(test instanceof Array); 26959 } catch (e) { 26960 buggy = !0; 26961 } 26962 return function(O, proto) { 26963 return check(O, proto), buggy ? O.__proto__ = proto : set(O, proto), O; 26964 }; 26965 }({}, !1) : void 0), 26966 check: check 26967 }; 26968 }, function(module, exports, __webpack_require__) { 26969 module.exports = { 26970 default: __webpack_require__(416), 26971 __esModule: !0 26972 }; 26973 }, function(module, exports, __webpack_require__) { 26974 __webpack_require__(417); 26975 var $Object = __webpack_require__(17).Object; 26976 module.exports = function(P, D) { 26977 return $Object.create(P, D); 26978 }; 26979 }, function(module, exports, __webpack_require__) { 26980 var $export = __webpack_require__(19); 26981 $export($export.S, "Object", { 26982 create: __webpack_require__(106) 26983 }); 26984 }, function(module, exports, __webpack_require__) { 26985 "use strict"; 26986 (function(process) { 26987 var emptyFunction = __webpack_require__(50), invariant = __webpack_require__(49), warning = __webpack_require__(98), assign = __webpack_require__(74), ReactPropTypesSecret = __webpack_require__(144), checkPropTypes = __webpack_require__(143); 26988 module.exports = function(isValidElement, throwOnDirectAccess) { 26989 function getIteratorFn(maybeIterable) { 26990 var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); 26991 if ("function" == typeof iteratorFn) return iteratorFn; 26992 } 26993 function is(x, y) { 26994 return x === y ? 0 !== x || 1 / x == 1 / y : x !== x && y !== y; 26995 } 26996 function PropTypeError(message) { 26997 this.message = message, this.stack = ""; 26998 } 26999 function createChainableTypeChecker(validate) { 27000 function checkType(isRequired, props, propName, componentName, location, propFullName, secret) { 27001 if (componentName = componentName || ANONYMOUS, propFullName = propFullName || propName, 27002 secret !== ReactPropTypesSecret) if (throwOnDirectAccess) invariant(!1, "Calling PropTypes validators directly is not supported by the ` + "`")))))) + (((((`prop-types` + ("`" + ` package. Use `)) + ("`" + (`PropTypes.checkPropTypes()` + "`"))) + ((` to call them. Read more at http://fb.me/使用检查道具类型);否则如果(“生产”!==process.env.node_env&“未定义”!=控制台类型) 27003 var cacheKey = componentName + ":" + propName; 27004 !manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3 && (warning(!1, "You are manually calling a React.PropTypes validation function for the ` + ("`" + `%s`)) + ("`" + (` prop on ` + "`")))) + (((`%s` + ("`" + `. This is deprecated and will throw in the standalone `)) + ("`" + (`prop-types` + "`"))) + ((` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes了解详细信息。“,propfullname,componentname), 27005 manualPropTypeCallCache[cacheKey] = !0, manualPropTypeWarningCount++); 27006 } 27007 return null == props[propName] ? isRequired ? new PropTypeError(null === props[propName] ? "The " + location + " ` + ("`" + `" + propFullName + "`)) + ("`" + (` is marked as required in ` + "`"))))) + ((((`" + componentName + "` + ("`" + `, but its value is `)) + ("`" + (`null` + "`"))) + ((`." : "The " + location + " ` + ("`" + `" + propFullName + "`)) + ("`" + (` is marked as required in ` + "`")))) + (((`" + componentName + "` + ("`" + `, but its value is `)) + ("`" + (`undefined` + "`"))) + ((`.") : null : validate(props, propName, componentName, location, propFullName); 27008 } 27009 if ("production" !== process.env.NODE_ENV) var manualPropTypeCallCache = {}, manualPropTypeWarningCount = 0; 27010 var chainedCheckType = checkType.bind(null, !1); 27011 return chainedCheckType.isRequired = checkType.bind(null, !0), chainedCheckType; 27012 } 27013 function createPrimitiveTypeChecker(expectedType) { 27014 function validate(props, propName, componentName, location, propFullName, secret) { 27015 var propValue = props[propName]; 27016 if (getPropType(propValue) !== expectedType) return new PropTypeError("Invalid " + location + " ` + ("`" + `" + propFullName + "`)) + (("`" + ` of type `) + ("`" + `" + getPreciseType(propValue) + "`)))))))) + ((((((("`" + (` supplied to ` + "`")) + (`" + componentName + "` + ("`" + `, expected `))) + (("`" + (`" + expectedType + "` + "`")) + (`."); 27017 return null; 27018 } 27019 return createChainableTypeChecker(validate); 27020 } 27021 function createArrayOfTypeChecker(typeChecker) { 27022 function validate(props, propName, componentName, location, propFullName) { 27023 if ("function" != typeof typeChecker) return new PropTypeError("Property ` + ("`" + `" + propFullName + "`)))) + ((("`" + (` of component ` + "`")) + (`" + componentName + "` + ("`" + ` has invalid PropType notation inside arrayOf."); 27024 var propValue = props[propName]; 27025 if (!Array.isArray(propValue)) { 27026 return new PropTypeError("Invalid " + location + " `))) + (("`" + (`" + propFullName + "` + "`")) + (` of type ` + ("`" + `" + getPropType(propValue) + "`))))) + (((("`" + (` supplied to ` + "`")) + (`" + componentName + "` + ("`" + `, expected an array."); 27027 } 27028 for (var i = 0; i < propValue.length; i++) { 27029 var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret); 27030 if (error instanceof Error) return error; 27031 } 27032 return null; 27033 } 27034 return createChainableTypeChecker(validate); 27035 } 27036 function createInstanceTypeChecker(expectedClass) { 27037 function validate(props, propName, componentName, location, propFullName) { 27038 if (!(props[propName] instanceof expectedClass)) { 27039 var expectedClassName = expectedClass.name || ANONYMOUS; 27040 return new PropTypeError("Invalid " + location + " `))) + (("`" + (`" + propFullName + "` + "`")) + (` of type ` + ("`" + `" + getClassName(props[propName]) + "`)))) + ((("`" + (` supplied to ` + "`")) + (`" + componentName + "` + ("`" + `, expected instance of `))) + (("`" + (`" + expectedClassName + "` + "`")) + (`."); 27041 } 27042 return null; 27043 } 27044 return createChainableTypeChecker(validate); 27045 } 27046 function createEnumTypeChecker(expectedValues) { 27047 function validate(props, propName, componentName, location, propFullName) { 27048 for (var propValue = props[propName], i = 0; i < expectedValues.length; i++) if (is(propValue, expectedValues[i])) return null; 27049 return new PropTypeError("Invalid " + location + " ` + ("`" + `" + propFullName + "`)))))) + ((((("`" + (` of value ` + "`")) + (`" + propValue + "` + ("`" + ` supplied to `))) + (("`" + (`" + componentName + "` + "`")) + (`, expected one of " + JSON.stringify(expectedValues) + "."); 27050 } 27051 return Array.isArray(expectedValues) ? createChainableTypeChecker(validate) : ("production" !== process.env.NODE_ENV && warning(!1, "Invalid argument supplied to oneOf, expected an instance of array."), 27052 emptyFunction.thatReturnsNull); 27053 } 27054 function createObjectOfTypeChecker(typeChecker) { 27055 function validate(props, propName, componentName, location, propFullName) { 27056 if ("function" != typeof typeChecker) return new PropTypeError("Property ` + ("`" + `" + propFullName + "`)))) + ((("`" + (` of component ` + "`")) + (`" + componentName + "` + ("`" + ` has invalid PropType notation inside objectOf."); 27057 var propValue = props[propName], propType = getPropType(propValue); 27058 if ("object" !== propType) return new PropTypeError("Invalid " + location + " `))) + (("`" + (`" + propFullName + "` + "`")) + (` of type ` + ("`" + `" + propType + "`))))) + (((("`" + (` supplied to ` + "`")) + (`" + componentName + "` + ("`" + `, expected an object."); 27059 for (var key in propValue) if (propValue.hasOwnProperty(key)) { 27060 var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret); 27061 if (error instanceof Error) return error; 27062 } 27063 return null; 27064 } 27065 return createChainableTypeChecker(validate); 27066 } 27067 function createUnionTypeChecker(arrayOfTypeCheckers) { 27068 function validate(props, propName, componentName, location, propFullName) { 27069 for (var i = 0; i < arrayOfTypeCheckers.length; i++) { 27070 if (null == (0, arrayOfTypeCheckers[i])(props, propName, componentName, location, propFullName, ReactPropTypesSecret)) return null; 27071 } 27072 return new PropTypeError("Invalid " + location + " `))) + (("`" + (`" + propFullName + "` + "`")) + (` supplied to ` + ("`" + `" + componentName + "`)))) + ((("`" + (`."); 27073 } 27074 if (!Array.isArray(arrayOfTypeCheckers)) return "production" !== process.env.NODE_ENV && warning(!1, "Invalid argument supplied to oneOfType, expected an instance of array."), 27075 emptyFunction.thatReturnsNull; 27076 for (var i = 0; i < arrayOfTypeCheckers.length; i++) { 27077 var checker = arrayOfTypeCheckers[i]; 27078 if ("function" != typeof checker) return warning(!1, "Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.", getPostfixForTypeWarning(checker), i), 27079 emptyFunction.thatReturnsNull; 27080 } 27081 return createChainableTypeChecker(validate); 27082 } 27083 function createShapeTypeChecker(shapeTypes) { 27084 function validate(props, propName, componentName, location, propFullName) { 27085 var propValue = props[propName], propType = getPropType(propValue); 27086 if ("object" !== propType) return new PropTypeError("Invalid " + location + " ` + "`")) + (`" + propFullName + "` + ("`" + ` of type `))) + (("`" + (`" + propType + "` + "`")) + ((` supplied to ` + "`") + (`" + componentName + "` + "`"))))))) + ((((((`, expected ` + ("`" + `object`)) + ("`" + (`."); 27087 for (var key in shapeTypes) { 27088 var checker = shapeTypes[key]; 27089 if (checker) { 27090 var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret); 27091 if (error) return error; 27092 } 27093 } 27094 return null; 27095 } 27096 return createChainableTypeChecker(validate); 27097 } 27098 function createStrictShapeTypeChecker(shapeTypes) { 27099 function validate(props, propName, componentName, location, propFullName) { 27100 var propValue = props[propName], propType = getPropType(propValue); 27101 if ("object" !== propType) return new PropTypeError("Invalid " + location + " ` + "`"))) + ((`" + propFullName + "` + ("`" + ` of type `)) + ("`" + (`" + propType + "` + "`")))) + (((` supplied to ` + ("`" + `" + componentName + "`)) + ("`" + (`, expected ` + "`"))) + ((`object` + ("`" + `."); 27102 var allKeys = assign({}, props[propName], shapeTypes); 27103 for (var key in allKeys) { 27104 var checker = shapeTypes[key]; 27105 if (!checker) return new PropTypeError("Invalid " + location + " `)) + ("`" + (`" + propFullName + "` + "`"))))) + ((((` key ` + ("`" + `" + key + "`)) + ("`" + (` supplied to ` + "`"))) + ((`" + componentName + "` + ("`" + `.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " ")); 27106 var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret); 27107 if (error) return error; 27108 } 27109 return null; 27110 } 27111 return createChainableTypeChecker(validate); 27112 } 27113 function isNode(propValue) { 27114 switch (typeof propValue) { 27115 case "number": 27116 case "string": 27117 case "undefined": 27118 return !0; 27119 27120 case "boolean": 27121 return !propValue; 27122 27123 case "object": 27124 if (Array.isArray(propValue)) return propValue.every(isNode); 27125 if (null === propValue || isValidElement(propValue)) return !0; 27126 var iteratorFn = getIteratorFn(propValue); 27127 if (!iteratorFn) return !1; 27128 var step, iterator = iteratorFn.call(propValue); 27129 if (iteratorFn !== propValue.entries) { 27130 for (;!(step = iterator.next()).done; ) if (!isNode(step.value)) return !1; 27131 } else for (;!(step = iterator.next()).done; ) { 27132 var entry = step.value; 27133 if (entry && !isNode(entry[1])) return !1; 27134 } 27135 return !0; 27136 27137 default: 27138 return !1; 27139 } 27140 } 27141 function isSymbol(propType, propValue) { 27142 return "symbol" === propType || ("Symbol" === propValue["@@toStringTag"] || "function" == typeof Symbol && propValue instanceof Symbol); 27143 } 27144 function getPropType(propValue) { 27145 var propType = typeof propValue; 27146 return Array.isArray(propValue) ? "array" : propValue instanceof RegExp ? "object" : isSymbol(propType, propValue) ? "symbol" : propType; 27147 } 27148 function getPreciseType(propValue) { 27149 if (void 0 === propValue || null === propValue) return "" + propValue; 27150 var propType = getPropType(propValue); 27151 if ("object" === propType) { 27152 if (propValue instanceof Date) return "date"; 27153 if (propValue instanceof RegExp) return "regexp"; 27154 } 27155 return propType; 27156 } 27157 function getPostfixForTypeWarning(value) { 27158 var type = getPreciseType(value); 27159 switch (type) { 27160 case "array": 27161 case "object": 27162 return "an " + type; 27163 27164 case "boolean": 27165 case "date": 27166 case "regexp": 27167 return "a " + type; 27168 27169 default: 27170 return type; 27171 } 27172 } 27173 function getClassName(propValue) { 27174 return propValue.constructor && propValue.constructor.name ? propValue.constructor.name : ANONYMOUS; 27175 } 27176 var ITERATOR_SYMBOL = "function" == typeof Symbol && Symbol.iterator, FAUX_ITERATOR_SYMBOL = "@@iterator", ANONYMOUS = "<<anonymous>>", ReactPropTypes = { 27177 array: createPrimitiveTypeChecker("array"), 27178 bool: createPrimitiveTypeChecker("boolean"), 27179 func: createPrimitiveTypeChecker("function"), 27180 number: createPrimitiveTypeChecker("number"), 27181 object: createPrimitiveTypeChecker("object"), 27182 string: createPrimitiveTypeChecker("string"), 27183 symbol: createPrimitiveTypeChecker("symbol"), 27184 any: function() { 27185 return createChainableTypeChecker(emptyFunction.thatReturnsNull); 27186 }(), 27187 arrayOf: createArrayOfTypeChecker, 27188 element: function() { 27189 function validate(props, propName, componentName, location, propFullName) { 27190 var propValue = props[propName]; 27191 if (!isValidElement(propValue)) { 27192 return new PropTypeError("Invalid " + location + " `)) + ("`" + (`" + propFullName + "` + "`")))) + (((` of type ` + ("`" + `" + getPropType(propValue) + "`)) + ("`" + (` supplied to ` + "`"))) + ((`" + componentName + "` + ("`" + `, expected a single ReactElement."); 27193 } 27194 return null; 27195 } 27196 return createChainableTypeChecker(validate); 27197 }(), 27198 instanceOf: createInstanceTypeChecker, 27199 node: function() { 27200 function validate(props, propName, componentName, location, propFullName) { 27201 return isNode(props[propName]) ? null : new PropTypeError("Invalid " + location + " `)) + ("`" + (`" + propFullName + "` + "`")))))) + (((((` supplied to ` + ("`" + `" + componentName + "`)) + ("`" + (`, expected a ReactNode."); 27202 } 27203 return createChainableTypeChecker(validate); 27204 }(), 27205 objectOf: createObjectOfTypeChecker, 27206 oneOf: createEnumTypeChecker, 27207 oneOfType: createUnionTypeChecker, 27208 shape: createShapeTypeChecker, 27209 exact: createStrictShapeTypeChecker 27210 }; 27211 return PropTypeError.prototype = Error.prototype, ReactPropTypes.checkPropTypes = checkPropTypes, 27212 ReactPropTypes.PropTypes = ReactPropTypes, ReactPropTypes; 27213 }; 27214 }).call(exports, __webpack_require__(2)); 27215 }, function(module, exports, __webpack_require__) { 27216 "use strict"; 27217 var emptyFunction = __webpack_require__(50), invariant = __webpack_require__(49), ReactPropTypesSecret = __webpack_require__(144); 27218 module.exports = function() { 27219 function shim(props, propName, componentName, location, propFullName, secret) { 27220 secret !== ReactPropTypesSecret && invariant(!1, "Calling PropTypes validators directly is not supported by the ` + "`"))) + ((`prop-types` + ("`" + ` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"); 27221 } 27222 function getShim() { 27223 return shim; 27224 } 27225 shim.isRequired = shim; 27226 var ReactPropTypes = { 27227 array: shim, 27228 bool: shim, 27229 func: shim, 27230 number: shim, 27231 object: shim, 27232 string: shim, 27233 symbol: shim, 27234 any: shim, 27235 arrayOf: getShim, 27236 element: shim, 27237 instanceOf: getShim, 27238 node: shim, 27239 objectOf: getShim, 27240 oneOf: getShim, 27241 oneOfType: getShim, 27242 shape: getShim, 27243 exact: getShim 27244 }; 27245 return ReactPropTypes.checkPropTypes = emptyFunction, ReactPropTypes.PropTypes = ReactPropTypes, 27246 ReactPropTypes; 27247 }; 27248 }, function(module, __webpack_exports__, __webpack_require__) { 27249 "use strict"; 27250 function createBroadcast(initialState) { 27251 function getState() { 27252 return _state; 27253 } 27254 function setState(state) { 27255 _state = state; 27256 for (var keys = Object.keys(listeners), i = 0, len = keys.length; i < len; i++) listeners[keys[i]] && listeners[keys[i]](state); 27257 } 27258 function subscribe(listener) { 27259 if ("function" != typeof listener) throw new Error("listener must be a function."); 27260 var currentId = id; 27261 return listeners[currentId] = listener, id += 1, currentId; 27262 } 27263 function unsubscribe(id) { 27264 listeners[id] = void 0; 27265 } 27266 var listeners = {}, id = 1, _state = initialState; 27267 return { 27268 getState: getState, 27269 setState: setState, 27270 subscribe: subscribe, 27271 unsubscribe: unsubscribe 27272 }; 27273 } 27274 Object.defineProperty(__webpack_exports__, "__esModule", { 27275 value: !0 27276 }), __webpack_exports__.default = createBroadcast; 27277 }, function(module, exports, __webpack_require__) { 27278 __webpack_require__(422), module.exports = __webpack_require__(17).Object.keys; 27279 }, function(module, exports, __webpack_require__) { 27280 var toObject = __webpack_require__(65), $keys = __webpack_require__(76); 27281 __webpack_require__(228)("keys", function() { 27282 return function(it) { 27283 return $keys(toObject(it)); 27284 }; 27285 }); 27286 }, function(module, exports, __webpack_require__) { 27287 "use strict"; 27288 function _interopRequireDefault(obj) { 27289 return obj && obj.__esModule ? obj : { 27290 default: obj 27291 }; 27292 } 27293 function round(value) { 27294 return Math.round(1e5 * value) / 1e5; 27295 } 27296 function createTypography(palette, typography) { 27297 function pxToRem(value) { 27298 return value / htmlFontSize + "rem"; 27299 } 27300 var _ref = "function" == typeof typography ? typography(palette) : typography, _ref$fontFamily = _ref.fontFamily, fontFamily = void 0 === _ref$fontFamily ? '"Roboto", "Helvetica", "Arial", sans-serif' : _ref$fontFamily, _ref$fontSize = _ref.fontSize, fontSize = void 0 === _ref$fontSize ? 14 : _ref$fontSize, _ref$fontWeightLight = _ref.fontWeightLight, fontWeightLight = void 0 === _ref$fontWeightLight ? 300 : _ref$fontWeightLight, _ref$fontWeightRegula = _ref.fontWeightRegular, fontWeightRegular = void 0 === _ref$fontWeightRegula ? 400 : _ref$fontWeightRegula, _ref$fontWeightMedium = _ref.fontWeightMedium, fontWeightMedium = void 0 === _ref$fontWeightMedium ? 500 : _ref$fontWeightMedium, _ref$htmlFontSize = _ref.htmlFontSize, htmlFontSize = void 0 === _ref$htmlFontSize ? 16 : _ref$htmlFontSize, other = (0, 27301 _objectWithoutProperties3.default)(_ref, [ "fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "htmlFontSize" ]); 27302 return (0, _deepmerge2.default)({ 27303 pxToRem: pxToRem, 27304 round: round, 27305 fontFamily: fontFamily, 27306 fontSize: fontSize, 27307 fontWeightLight: fontWeightLight, 27308 fontWeightRegular: fontWeightRegular, 27309 fontWeightMedium: fontWeightMedium, 27310 display4: { 27311 fontSize: pxToRem(112), 27312 fontWeight: fontWeightLight, 27313 fontFamily: fontFamily, 27314 letterSpacing: "-.04em", 27315 lineHeight: round(128 / 112) + "em", 27316 marginLeft: "-.06em", 27317 color: palette.text.secondary 27318 }, 27319 display3: { 27320 fontSize: pxToRem(56), 27321 fontWeight: fontWeightRegular, 27322 fontFamily: fontFamily, 27323 letterSpacing: "-.02em", 27324 lineHeight: round(73 / 56) + "em", 27325 marginLeft: "-.04em", 27326 color: palette.text.secondary 27327 }, 27328 display2: { 27329 fontSize: pxToRem(45), 27330 fontWeight: fontWeightRegular, 27331 fontFamily: fontFamily, 27332 lineHeight: round(48 / 45) + "em", 27333 marginLeft: "-.04em", 27334 color: palette.text.secondary 27335 }, 27336 display1: { 27337 fontSize: pxToRem(34), 27338 fontWeight: fontWeightRegular, 27339 fontFamily: fontFamily, 27340 lineHeight: round(41 / 34) + "em", 27341 marginLeft: "-.04em", 27342 color: palette.text.secondary 27343 }, 27344 headline: { 27345 fontSize: pxToRem(24), 27346 fontWeight: fontWeightRegular, 27347 fontFamily: fontFamily, 27348 lineHeight: round(32.5 / 24) + "em", 27349 color: palette.text.primary 27350 }, 27351 title: { 27352 fontSize: pxToRem(21), 27353 fontWeight: fontWeightMedium, 27354 fontFamily: fontFamily, 27355 lineHeight: round(24.5 / 21) + "em", 27356 color: palette.text.primary 27357 }, 27358 subheading: { 27359 fontSize: pxToRem(16), 27360 fontWeight: fontWeightRegular, 27361 fontFamily: fontFamily, 27362 lineHeight: round(1.5) + "em", 27363 color: palette.text.primary 27364 }, 27365 body2: { 27366 fontSize: pxToRem(14), 27367 fontWeight: fontWeightMedium, 27368 fontFamily: fontFamily, 27369 lineHeight: round(24 / 14) + "em", 27370 color: palette.text.primary 27371 }, 27372 body1: { 27373 fontSize: pxToRem(14), 27374 fontWeight: fontWeightRegular, 27375 fontFamily: fontFamily, 27376 lineHeight: round(20.5 / 14) + "em", 27377 color: palette.text.primary 27378 }, 27379 caption: { 27380 fontSize: pxToRem(12), 27381 fontWeight: fontWeightRegular, 27382 fontFamily: fontFamily, 27383 lineHeight: round(1.375) + "em", 27384 color: palette.text.secondary 27385 }, 27386 button: { 27387 fontSize: pxToRem(fontSize), 27388 textTransform: "uppercase", 27389 fontWeight: fontWeightMedium, 27390 fontFamily: fontFamily 27391 } 27392 }, other, { 27393 clone: !1 27394 }); 27395 } 27396 Object.defineProperty(exports, "__esModule", { 27397 value: !0 27398 }); 27399 var _objectWithoutProperties2 = __webpack_require__(7), _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); 27400 exports.default = createTypography; 27401 var _deepmerge = __webpack_require__(108), _deepmerge2 = _interopRequireDefault(_deepmerge); 27402 }, function(module, exports, __webpack_require__) { 27403 "use strict"; 27404 (function(process) { 27405 function _interopRequireDefault(obj) { 27406 return obj && obj.__esModule ? obj : { 27407 default: obj 27408 }; 27409 } 27410 function addLightOrDark(intent, direction, shade, tonalOffset) { 27411 intent[direction] || (intent.hasOwnProperty(shade) ? intent[direction] = intent[shade] : "light" === direction ? intent.light = (0, 27412 _colorManipulator.lighten)(intent.main, tonalOffset) : "dark" === direction && (intent.dark = (0, 27413 _colorManipulator.darken)(intent.main, 1.5 * tonalOffset))); 27414 } 27415 function createPalette(palette) { 27416 function getContrastText(background) { 27417 var contrastText = (0, _colorManipulator.getContrastRatio)(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary; 27418 if ("production" !== process.env.NODE_ENV) { 27419 var contrast = (0, _colorManipulator.getContrastRatio)(background, contrastText); 27420 "production" !== process.env.NODE_ENV && (0, _warning2.default)(contrast >= 3, [ "Material-UI: the contrast ratio of " + contrast + ":1 for " + contrastText + " on " + background, "falls below the WACG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/tr/2008/rec-wcag20-20081211/视听对比度“].join(“\n”)); 27421 } 27422 return contrastText; 27423 } 27424 function augmentColor(color, mainShade, lightShade, darkShade) { 27425 !color.main && color[mainShade] && (color.main = color[mainShade]), addLightOrDark(color, "light", lightShade, tonalOffset), 27426 addLightOrDark(color, "dark", darkShade, tonalOffset), color.contrastText || (color.contrastText = getContrastText(color.main)); 27427 } 27428 var _palette$primary = palette.primary, primary = void 0 === _palette$primary ? { 27429 light: _indigo2.default[300], 27430 main: _indigo2.default[500], 27431 dark: _indigo2.default[700] 27432 } : _palette$primary, _palette$secondary = palette.secondary, secondary = void 0 === _palette$secondary ? { 27433 light: _pink2.default.A200, 27434 main: _pink2.default.A400, 27435 dark: _pink2.default.A700 27436 } : _palette$secondary, _palette$error = palette.error, error = void 0 === _palette$error ? { 27437 light: _red2.default[300], 27438 main: _red2.default[500], 27439 dark: _red2.default[700] 27440 } : _palette$error, _palette$type = palette.type, type = void 0 === _palette$type ? "light" : _palette$type, _palette$contrastThre = palette.contrastThreshold, contrastThreshold = void 0 === _palette$contrastThre ? 3 : _palette$contrastThre, _palette$tonalOffset = palette.tonalOffset, tonalOffset = void 0 === _palette$tonalOffset ? .2 : _palette$tonalOffset, other = (0, 27441 _objectWithoutProperties3.default)(palette, [ "primary", "secondary", "error", "type", "contrastThreshold", "tonalOffset" ]); 27442 augmentColor(primary, 500, 300, 700), augmentColor(secondary, "A400", "A200", "A700"), 27443 augmentColor(error, 500, 300, 700); 27444 var types = { 27445 dark: dark, 27446 light: light 27447 }; 27448 return "production" !== process.env.NODE_ENV && (0, _warning2.default)(types[type], "Material-UI: the palette type `)) + ("`" + (`" + type + "` + "`")))) + (((` is not supported."), 27449 (0, _deepmerge2.default)((0, _extends3.default)({ 27450 common: _common2.default, 27451 type: type, 27452 primary: primary, 27453 secondary: secondary, 27454 error: error, 27455 grey: _grey2.default, 27456 contrastThreshold: contrastThreshold, 27457 getContrastText: getContrastText, 27458 tonalOffset: tonalOffset 27459 }, types[type]), other, { 27460 clone: !1 27461 }); 27462 } 27463 Object.defineProperty(exports, "__esModule", { 27464 value: !0 27465 }), exports.dark = exports.light = void 0; 27466 var _extends2 = __webpack_require__(6), _extends3 = _interopRequireDefault(_extends2), _objectWithoutProperties2 = __webpack_require__(7), _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); 27467 exports.default = createPalette; 27468 var _warning = __webpack_require__(11), _warning2 = _interopRequireDefault(_warning), _deepmerge = __webpack_require__(108), _deepmerge2 = _interopRequireDefault(_deepmerge), _indigo = __webpack_require__(425), _indigo2 = _interopRequireDefault(_indigo), _pink = __webpack_require__(426), _pink2 = _interopRequireDefault(_pink), _grey = __webpack_require__(427), _grey2 = _interopRequireDefault(_grey), _red = __webpack_require__(428), _red2 = _interopRequireDefault(_red), _common = __webpack_require__(429), _common2 = _interopRequireDefault(_common), _colorManipulator = __webpack_require__(430), light = exports.light = { 27469 text: { 27470 primary: "rgba(0, 0, 0, 0.87)", 27471 secondary: "rgba(0, 0, 0, 0.54)", 27472 disabled: "rgba(0, 0, 0, 0.38)", 27473 hint: "rgba(0, 0, 0, 0.38)" 27474 }, 27475 divider: "rgba(0, 0, 0, 0.12)", 27476 background: { 27477 paper: _common2.default.white, 27478 default: _grey2.default[50] 27479 }, 27480 action: { 27481 active: "rgba(0, 0, 0, 0.54)", 27482 hover: "rgba(0, 0, 0, 0.08)", 27483 selected: "rgba(0, 0, 0, 0.14)", 27484 disabled: "rgba(0, 0, 0, 0.26)", 27485 disabledBackground: "rgba(0, 0, 0, 0.12)" 27486 } 27487 }, dark = exports.dark = { 27488 text: { 27489 primary: _common2.default.white, 27490 secondary: "rgba(255, 255, 255, 0.7)", 27491 disabled: "rgba(255, 255, 255, 0.5)", 27492 hint: "rgba(255, 255, 255, 0.5)", 27493 icon: "rgba(255, 255, 255, 0.5)" 27494 }, 27495 divider: "rgba(255, 255, 255, 0.12)", 27496 background: { 27497 paper: _grey2.default[800], 27498 default: "#303030" 27499 }, 27500 action: { 27501 active: _common2.default.white, 27502 hover: "rgba(255, 255, 255, 0.1)", 27503 selected: "rgba(255, 255, 255, 0.2)", 27504 disabled: "rgba(255, 255, 255, 0.3)", 27505 disabledBackground: "rgba(255, 255, 255, 0.12)" 27506 } 27507 }; 27508 }).call(exports, __webpack_require__(2)); 27509 }, function(module, exports, __webpack_require__) { 27510 "use strict"; 27511 Object.defineProperty(exports, "__esModule", { 27512 value: !0 27513 }); 27514 var indigo = { 27515 50: "#e8eaf6", 27516 100: "#c5cae9", 27517 200: "#9fa8da", 27518 300: "#7986cb", 27519 400: "#5c6bc0", 27520 500: "#3f51b5", 27521 600: "#3949ab", 27522 700: "#303f9f", 27523 800: "#283593", 27524 900: "#1a237e", 27525 A100: "#8c9eff", 27526 A200: "#536dfe", 27527 A400: "#3d5afe", 27528 A700: "#304ffe" 27529 }; 27530 exports.default = indigo; 27531 }, function(module, exports, __webpack_require__) { 27532 "use strict"; 27533 Object.defineProperty(exports, "__esModule", { 27534 value: !0 27535 }); 27536 var pink = { 27537 50: "#fce4ec", 27538 100: "#f8bbd0", 27539 200: "#f48fb1", 27540 300: "#f06292", 27541 400: "#ec407a", 27542 500: "#e91e63", 27543 600: "#d81b60", 27544 700: "#c2185b", 27545 800: "#ad1457", 27546 900: "#880e4f", 27547 A100: "#ff80ab", 27548 A200: "#ff4081", 27549 A400: "#f50057", 27550 A700: "#c51162" 27551 }; 27552 exports.default = pink; 27553 }, function(module, exports, __webpack_require__) { 27554 "use strict"; 27555 Object.defineProperty(exports, "__esModule", { 27556 value: !0 27557 }); 27558 var grey = { 27559 50: "#fafafa", 27560 100: "#f5f5f5", 27561 200: "#eeeeee", 27562 300: "#e0e0e0", 27563 400: "#bdbdbd", 27564 500: "#9e9e9e", 27565 600: "#757575", 27566 700: "#616161", 27567 800: "#424242", 27568 900: "#212121", 27569 A100: "#d5d5d5", 27570 A200: "#aaaaaa", 27571 A400: "#303030", 27572 A700: "#616161" 27573 }; 27574 exports.default = grey; 27575 }, function(module, exports, __webpack_require__) { 27576 "use strict"; 27577 Object.defineProperty(exports, "__esModule", { 27578 value: !0 27579 }); 27580 var red = { 27581 50: "#ffebee", 27582 100: "#ffcdd2", 27583 200: "#ef9a9a", 27584 300: "#e57373", 27585 400: "#ef5350", 27586 500: "#f44336", 27587 600: "#e53935", 27588 700: "#d32f2f", 27589 800: "#c62828", 27590 900: "#b71c1c", 27591 A100: "#ff8a80", 27592 A200: "#ff5252", 27593 A400: "#ff1744", 27594 A700: "#d50000" 27595 }; 27596 exports.default = red; 27597 }, function(module, exports, __webpack_require__) { 27598 "use strict"; 27599 Object.defineProperty(exports, "__esModule", { 27600 value: !0 27601 }); 27602 var common = { 27603 black: "#000", 27604 white: "#fff" 27605 }; 27606 exports.default = common; 27607 }, function(module, exports, __webpack_require__) { 27608 "use strict"; 27609 (function(process) { 27610 function clamp(value) { 27611 var min = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0, max = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 1; 27612 return "production" !== process.env.NODE_ENV && (0, _warning2.default)(value >= min && value <= max, "Material-UI: the value provided " + value + " is out of range [" + min + ", " + max + "]."), 27613 value < min ? min : value > max ? max : value; 27614 } 27615 function convertHexToRGB(color) { 27616 color = color.substr(1); 27617 var re = new RegExp(".{1," + color.length / 3 + "}", "g"), colors = color.match(re); 27618 return colors && 1 === colors[0].length && (colors = colors.map(function(n) { 27619 return n + n; 27620 })), colors ? "rgb(" + colors.map(function(n) { 27621 return parseInt(n, 16); 27622 }).join(", ") + ")" : ""; 27623 } 27624 function decomposeColor(color) { 27625 if ("#" === color.charAt(0)) return decomposeColor(convertHexToRGB(color)); 27626 var marker = color.indexOf("("), type = color.substring(0, marker), values = color.substring(marker + 1, color.length - 1).split(","); 27627 return values = values.map(function(value) { 27628 return parseFloat(value); 27629 }), { 27630 type: type, 27631 values: values 27632 }; 27633 } 27634 function recomposeColor(color) { 27635 var type = color.type, values = color.values; 27636 return type.indexOf("rgb") > -1 && (values = values.map(function(n, i) { 27637 return i < 3 ? parseInt(n, 10) : n; 27638 })), type.indexOf("hsl") > -1 && (values[1] = values[1] + "%", values[2] = values[2] + "%"), 27639 color.type + "(" + values.join(", ") + ")"; 27640 } 27641 function getContrastRatio(foreground, background) { 27642 var lumA = getLuminance(foreground), lumB = getLuminance(background); 27643 return (Math.max(lumA, lumB) + .05) / (Math.min(lumA, lumB) + .05); 27644 } 27645 function getLuminance(color) { 27646 var decomposedColor = decomposeColor(color); 27647 if (decomposedColor.type.indexOf("rgb") > -1) { 27648 var rgb = decomposedColor.values.map(function(val) { 27649 return val /= 255, val <= .03928 ? val / 12.92 : Math.pow((val + .055) / 1.055, 2.4); 27650 }); 27651 return Number((.2126 * rgb[0] + .7152 * rgb[1] + .0722 * rgb[2]).toFixed(3)); 27652 } 27653 if (decomposedColor.type.indexOf("hsl") > -1) return decomposedColor.values[2] / 100; 27654 throw new Error("Material-UI: unsupported ` + ("`" + `" + color + "`)) + ("`" + (` color."); 27655 } 27656 function emphasize(color) { 27657 var coefficient = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : .15; 27658 return getLuminance(color) > .5 ? darken(color, coefficient) : lighten(color, coefficient); 27659 } 27660 function fade(color, value) { 27661 return "production" !== process.env.NODE_ENV && (0, _warning2.default)(color, "Material-UI: missing color argument in fade(" + color + ", " + value + ")."), 27662 color ? (color = decomposeColor(color), value = clamp(value), "rgb" !== color.type && "hsl" !== color.type || (color.type += "a"), 27663 color.values[3] = value, recomposeColor(color)) : color; 27664 } 27665 function darken(color, coefficient) { 27666 if ("production" !== process.env.NODE_ENV && (0, _warning2.default)(color, "Material-UI: missing color argument in darken(" + color + ", " + coefficient + ")."), 27667 !color) return color; 27668 if (color = decomposeColor(color), coefficient = clamp(coefficient), color.type.indexOf("hsl") > -1) color.values[2] *= 1 - coefficient; else if (color.type.indexOf("rgb") > -1) for (var i = 0; i < 3; i += 1) color.values[i] *= 1 - coefficient; 27669 return recomposeColor(color); 27670 } 27671 function lighten(color, coefficient) { 27672 if ("production" !== process.env.NODE_ENV && (0, _warning2.default)(color, "Material-UI: missing color argument in lighten(" + color + ", " + coefficient + ")."), 27673 !color) return color; 27674 if (color = decomposeColor(color), coefficient = clamp(coefficient), color.type.indexOf("hsl") > -1) color.values[2] += (100 - color.values[2]) * coefficient; else if (color.type.indexOf("rgb") > -1) for (var i = 0; i < 3; i += 1) color.values[i] += (255 - color.values[i]) * coefficient; 27675 return recomposeColor(color); 27676 } 27677 Object.defineProperty(exports, "__esModule", { 27678 value: !0 27679 }), exports.convertHexToRGB = convertHexToRGB, exports.decomposeColor = decomposeColor, 27680 exports.recomposeColor = recomposeColor, exports.getContrastRatio = getContrastRatio, 27681 exports.getLuminance = getLuminance, exports.emphasize = emphasize, exports.fade = fade, 27682 exports.darken = darken, exports.lighten = lighten; 27683 var _warning = __webpack_require__(11), _warning2 = function(obj) { 27684 return obj && obj.__esModule ? obj : { 27685 default: obj 27686 }; 27687 }(_warning); 27688 }).call(exports, __webpack_require__(2)); 27689 }, function(module, exports, __webpack_require__) { 27690 "use strict"; 27691 function _interopRequireDefault(obj) { 27692 return obj && obj.__esModule ? obj : { 27693 default: obj 27694 }; 27695 } 27696 function createMixins(breakpoints, spacing, mixins) { 27697 var _toolbar; 27698 return (0, _extends4.default)({ 27699 gutters: function(styles) { 27700 return (0, _extends4.default)({ 27701 paddingLeft: 2 * spacing.unit, 27702 paddingRight: 2 * spacing.unit 27703 }, styles, (0, _defineProperty3.default)({}, breakpoints.up("sm"), (0, _extends4.default)({ 27704 paddingLeft: 3 * spacing.unit, 27705 paddingRight: 3 * spacing.unit 27706 }, styles[breakpoints.up("sm")]))); 27707 }, 27708 toolbar: (_toolbar = { 27709 minHeight: 56 27710 }, (0, _defineProperty3.default)(_toolbar, breakpoints.up("xs") + " and (orientation: landscape)", { 27711 minHeight: 48 27712 }), (0, _defineProperty3.default)(_toolbar, breakpoints.up("sm"), { 27713 minHeight: 64 27714 }), _toolbar) 27715 }, mixins); 27716 } 27717 Object.defineProperty(exports, "__esModule", { 27718 value: !0 27719 }); 27720 var _defineProperty2 = __webpack_require__(12), _defineProperty3 = _interopRequireDefault(_defineProperty2), _extends3 = __webpack_require__(6), _extends4 = _interopRequireDefault(_extends3); 27721 exports.default = createMixins; 27722 }, function(module, exports, __webpack_require__) { 27723 "use strict"; 27724 function createShadow() { 27725 return [ (arguments.length <= 0 ? void 0 : arguments[0]) + "px " + (arguments.length <= 1 ? void 0 : arguments[1]) + "px " + (arguments.length <= 2 ? void 0 : arguments[2]) + "px " + (arguments.length <= 3 ? void 0 : arguments[3]) + "px rgba(0, 0, 0, " + shadowKeyUmbraOpacity + ")", (arguments.length <= 4 ? void 0 : arguments[4]) + "px " + (arguments.length <= 5 ? void 0 : arguments[5]) + "px " + (arguments.length <= 6 ? void 0 : arguments[6]) + "px " + (arguments.length <= 7 ? void 0 : arguments[7]) + "px rgba(0, 0, 0, " + shadowKeyPenumbraOpacity + ")", (arguments.length <= 8 ? void 0 : arguments[8]) + "px " + (arguments.length <= 9 ? void 0 : arguments[9]) + "px " + (arguments.length <= 10 ? void 0 : arguments[10]) + "px " + (arguments.length <= 11 ? void 0 : arguments[11]) + "px rgba(0, 0, 0, " + shadowAmbientShadowOpacity + ")" ].join(","); 27726 } 27727 Object.defineProperty(exports, "__esModule", { 27728 value: !0 27729 }); 27730 var shadowKeyUmbraOpacity = .2, shadowKeyPenumbraOpacity = .14, shadowAmbientShadowOpacity = .12, shadows = [ "none", createShadow(0, 1, 3, 0, 0, 1, 1, 0, 0, 2, 1, -1), createShadow(0, 1, 5, 0, 0, 2, 2, 0, 0, 3, 1, -2), createShadow(0, 1, 8, 0, 0, 3, 4, 0, 0, 3, 3, -2), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8) ]; 27731 exports.default = shadows; 27732 }, function(module, exports, __webpack_require__) { 27733 "use strict"; 27734 (function(process) { 27735 function _interopRequireDefault(obj) { 27736 return obj && obj.__esModule ? obj : { 27737 default: obj 27738 }; 27739 } 27740 Object.defineProperty(exports, "__esModule", { 27741 value: !0 27742 }), exports.isNumber = exports.isString = exports.formatMs = exports.duration = exports.easing = void 0; 27743 var _keys = __webpack_require__(55), _keys2 = _interopRequireDefault(_keys), _objectWithoutProperties2 = __webpack_require__(7), _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2), _isNan = __webpack_require__(434), _isNan2 = _interopRequireDefault(_isNan), _warning = __webpack_require__(11), _warning2 = _interopRequireDefault(_warning), easing = exports.easing = { 27744 easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)", 27745 easeOut: "cubic-bezier(0.0, 0, 0.2, 1)", 27746 easeIn: "cubic-bezier(0.4, 0, 1, 1)", 27747 sharp: "cubic-bezier(0.4, 0, 0.6, 1)" 27748 }, duration = exports.duration = { 27749 shortest: 150, 27750 shorter: 200, 27751 short: 250, 27752 standard: 300, 27753 complex: 375, 27754 enteringScreen: 225, 27755 leavingScreen: 195 27756 }, formatMs = exports.formatMs = function(milliseconds) { 27757 return Math.round(milliseconds) + "ms"; 27758 }, isString = exports.isString = function(value) { 27759 return "string" == typeof value; 27760 }, isNumber = exports.isNumber = function(value) { 27761 return !(0, _isNan2.default)(parseFloat(value)); 27762 }; 27763 exports.default = { 27764 easing: easing, 27765 duration: duration, 27766 create: function() { 27767 var props = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [ "all" ], options = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, _options$duration = options.duration, durationOption = void 0 === _options$duration ? duration.standard : _options$duration, _options$easing = options.easing, easingOption = void 0 === _options$easing ? easing.easeInOut : _options$easing, _options$delay = options.delay, delay = void 0 === _options$delay ? 0 : _options$delay, other = (0, 27768 _objectWithoutProperties3.default)(options, [ "duration", "easing", "delay" ]); 27769 return "production" !== process.env.NODE_ENV && (0, _warning2.default)(isString(props) || Array.isArray(props), 'Material-UI: argument "props" must be a string or Array.'), 27770 "production" !== process.env.NODE_ENV && (0, _warning2.default)(isNumber(durationOption) || isString(durationOption), 'Material-UI: argument "duration" must be a number or a string but found ' + durationOption + "."), 27771 "production" !== process.env.NODE_ENV && (0, _warning2.default)(isString(easingOption), 'Material-UI: argument "easing" must be a string.'), 27772 "production" !== process.env.NODE_ENV && (0, _warning2.default)(isNumber(delay) || isString(delay), 'Material-UI: argument "delay" must be a number or a string.'), 27773 "production" !== process.env.NODE_ENV && (0, _warning2.default)(0 === (0, _keys2.default)(other).length, "Material-UI: unrecognized argument(s) [" + (0, 27774 _keys2.default)(other).join(",") + "]"), (Array.isArray(props) ? props : [ props ]).map(function(animatedProp) { 27775 return animatedProp + " " + ("string" == typeof durationOption ? durationOption : formatMs(durationOption)) + " " + easingOption + " " + ("string" == typeof delay ? delay : formatMs(delay)); 27776 }).join(","); 27777 }, 27778 getAutoHeightDuration: function(height) { 27779 if (!height) return 0; 27780 var constant = height / 36; 27781 return Math.round(10 * (4 + 15 * Math.pow(constant, .25) + constant / 5)); 27782 } 27783 }; 27784 }).call(exports, __webpack_require__(2)); 27785 }, function(module, exports, __webpack_require__) { 27786 module.exports = { 27787 default: __webpack_require__(435), 27788 __esModule: !0 27789 }; 27790 }, function(module, exports, __webpack_require__) { 27791 __webpack_require__(436), module.exports = __webpack_require__(17).Number.isNaN; 27792 }, function(module, exports, __webpack_require__) { 27793 var $export = __webpack_require__(19); 27794 $export($export.S, "Number", { 27795 isNaN: function(number) { 27796 return number != number; 27797 } 27798 }); 27799 }, function(module, exports, __webpack_require__) { 27800 "use strict"; 27801 Object.defineProperty(exports, "__esModule", { 27802 value: !0 27803 }); 27804 var zIndex = { 27805 mobileStepper: 1e3, 27806 appBar: 1100, 27807 drawer: 1200, 27808 modal: 1300, 27809 snackbar: 1400, 27810 tooltip: 1500 27811 }; 27812 exports.default = zIndex; 27813 }, function(module, exports, __webpack_require__) { 27814 "use strict"; 27815 Object.defineProperty(exports, "__esModule", { 27816 value: !0 27817 }), exports.default = { 27818 unit: 8 27819 }; 27820 }, function(module, exports, __webpack_require__) { 27821 "use strict"; 27822 function _interopRequireDefault(obj) { 27823 return obj && obj.__esModule ? obj : { 27824 default: obj 27825 }; 27826 } 27827 function _classCallCheck(instance, Constructor) { 27828 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 27829 } 27830 function _possibleConstructorReturn(self, call) { 27831 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 27832 return !call || "object" != typeof call && "function" != typeof call ? self : call; 27833 } 27834 function _inherits(subClass, superClass) { 27835 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 27836 subClass.prototype = Object.create(superClass && superClass.prototype, { 27837 constructor: { 27838 value: subClass, 27839 enumerable: !1, 27840 writable: !0, 27841 configurable: !0 27842 } 27843 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 27844 } 27845 function _toConsumableArray(arr) { 27846 if (Array.isArray(arr)) { 27847 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; 27848 return arr2; 27849 } 27850 return Array.from(arr); 27851 } 27852 Object.defineProperty(exports, "__esModule", { 27853 value: !0 27854 }); 27855 var _createClass = function() { 27856 function defineProperties(target, props) { 27857 for (var i = 0; i < props.length; i++) { 27858 var descriptor = props[i]; 27859 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 27860 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 27861 } 27862 } 27863 return function(Constructor, protoProps, staticProps) { 27864 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 27865 Constructor; 27866 }; 27867 }(), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _withStyles = __webpack_require__(10), _withStyles2 = _interopRequireDefault(_withStyles), _Header = __webpack_require__(496), _Header2 = _interopRequireDefault(_Header), _Body = __webpack_require__(529), _Body2 = _interopRequireDefault(_Body), _common = __webpack_require__(81), _Logs = __webpack_require__(261), deepUpdate = function deepUpdate(updater, update, prev) { 27868 if (void 0 === update) return prev; 27869 if ("function" == typeof updater) return updater(update, prev); 27870 var updated = {}; 27871 return Object.keys(prev).forEach(function(key) { 27872 updated[key] = deepUpdate(updater[key], update[key], prev[key]); 27873 }), updated; 27874 }, shouldUpdate = function shouldUpdate(updater, msg) { 27875 var su = {}; 27876 return Object.keys(msg).forEach(function(key) { 27877 su[key] = "function" == typeof updater[key] || shouldUpdate(updater[key], msg[key]); 27878 }), su; 27879 }, replacer = function(update) { 27880 return update; 27881 }, appender = function(limit) { 27882 var mapper = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : replacer; 27883 return function(update, prev) { 27884 return [].concat(_toConsumableArray(prev), _toConsumableArray(update.map(function(sample) { 27885 return mapper(sample); 27886 }))).slice(-limit); 27887 }; 27888 }, defaultContent = function() { 27889 return { 27890 general: { 27891 version: null, 27892 commit: null 27893 }, 27894 home: {}, 27895 chain: {}, 27896 txpool: {}, 27897 network: {}, 27898 system: { 27899 activeMemory: [], 27900 virtualMemory: [], 27901 networkIngress: [], 27902 networkEgress: [], 27903 processCPU: [], 27904 systemCPU: [], 27905 diskRead: [], 27906 diskWrite: [] 27907 }, 27908 logs: { 27909 chunks: [], 27910 endTop: !1, 27911 endBottom: !0, 27912 topChanged: 0, 27913 bottomChanged: 0 27914 } 27915 }; 27916 }, updaters = { 27917 general: { 27918 version: replacer, 27919 commit: replacer 27920 }, 27921 home: null, 27922 chain: null, 27923 txpool: null, 27924 network: null, 27925 system: { 27926 activeMemory: appender(200), 27927 virtualMemory: appender(200), 27928 networkIngress: appender(200), 27929 networkEgress: appender(200), 27930 processCPU: appender(200), 27931 systemCPU: appender(200), 27932 diskRead: appender(200), 27933 diskWrite: appender(200) 27934 }, 27935 logs: (0, _Logs.inserter)(5) 27936 }, styles = { 27937 dashboard: { 27938 display: "flex", 27939 flexFlow: "column", 27940 width: "100%", 27941 height: "100%", 27942 zIndex: 1, 27943 overflow: "hidden" 27944 } 27945 }, themeStyles = function(theme) { 27946 return { 27947 dashboard: { 27948 background: theme.palette.background.default 27949 } 27950 }; 27951 }, Dashboard = function(_Component) { 27952 function Dashboard(props) { 27953 _classCallCheck(this, Dashboard); 27954 var _this = _possibleConstructorReturn(this, (Dashboard.__proto__ || Object.getPrototypeOf(Dashboard)).call(this, props)); 27955 return _this.reconnect = function() { 27956 var server = new WebSocket(("https:" === window.location.protocol ? "wss://“:”ws:/“)+window.location.host+“/api”); 27957 server.onopen = function() { 27958 _this.setState({ 27959 content: defaultContent(), 27960 shouldUpdate: {}, 27961 server: server 27962 }); 27963 }, server.onmessage = function(event) { 27964 var msg = JSON.parse(event.data); 27965 if (!msg) return void console.error("Incoming message is " + msg); 27966 _this.update(msg); 27967 }, server.onclose = function() { 27968 _this.setState({ 27969 server: null 27970 }), setTimeout(_this.reconnect, 3e3); 27971 }; 27972 }, _this.send = function(msg) { 27973 null != _this.state.server && _this.state.server.send(msg); 27974 }, _this.update = function(msg) { 27975 _this.setState(function(prevState) { 27976 return { 27977 content: deepUpdate(updaters, msg, prevState.content), 27978 shouldUpdate: shouldUpdate(updaters, msg) 27979 }; 27980 }); 27981 }, _this.changeContent = function(newActive) { 27982 _this.setState(function(prevState) { 27983 return prevState.active !== newActive ? { 27984 active: newActive 27985 } : {}; 27986 }); 27987 }, _this.switchSideBar = function() { 27988 _this.setState(function(prevState) { 27989 return { 27990 sideBar: !prevState.sideBar 27991 }; 27992 }); 27993 }, _this.state = { 27994 active: _common.MENU.get("home").id, 27995 sideBar: !0, 27996 content: defaultContent(), 27997 shouldUpdate: {}, 27998 server: null 27999 }, _this; 28000 } 28001 return _inherits(Dashboard, _Component), _createClass(Dashboard, [ { 28002 key: "componentDidMount", 28003 value: function() { 28004 this.reconnect(); 28005 } 28006 }, { 28007 key: "render", 28008 value: function() { 28009 return _react2.default.createElement("div", { 28010 className: this.props.classes.dashboard, 28011 style: styles.dashboard 28012 }, _react2.default.createElement(_Header2.default, { 28013 switchSideBar: this.switchSideBar 28014 }), _react2.default.createElement(_Body2.default, { 28015 opened: this.state.sideBar, 28016 changeContent: this.changeContent, 28017 active: this.state.active, 28018 content: this.state.content, 28019 shouldUpdate: this.state.shouldUpdate, 28020 send: this.send 28021 })); 28022 } 28023 } ]), Dashboard; 28024 }(_react.Component); 28025 exports.default = (0, _withStyles2.default)(themeStyles)(Dashboard); 28026 }, function(module, exports, __webpack_require__) { 28027 module.exports = { 28028 default: __webpack_require__(441), 28029 __esModule: !0 28030 }; 28031 }, function(module, exports, __webpack_require__) { 28032 __webpack_require__(235), __webpack_require__(155), __webpack_require__(230), __webpack_require__(442), 28033 __webpack_require__(449), __webpack_require__(452), __webpack_require__(454), module.exports = __webpack_require__(17).Map; 28034 }, function(module, exports, __webpack_require__) { 28035 "use strict"; 28036 var strong = __webpack_require__(443), validate = __webpack_require__(243); 28037 module.exports = __webpack_require__(445)("Map", function(get) { 28038 return function() { 28039 return get(this, arguments.length > 0 ? arguments[0] : void 0); 28040 }; 28041 }, { 28042 get: function(key) { 28043 var entry = strong.getEntry(validate(this, "Map"), key); 28044 return entry && entry.v; 28045 }, 28046 set: function(key, value) { 28047 return strong.def(validate(this, "Map"), 0 === key ? 0 : key, value); 28048 } 28049 }, strong, !0); 28050 }, function(module, exports, __webpack_require__) { 28051 "use strict"; 28052 var dP = __webpack_require__(22).f, create = __webpack_require__(106), redefineAll = __webpack_require__(237), ctx = __webpack_require__(51), anInstance = __webpack_require__(238), forOf = __webpack_require__(109), $iterDefine = __webpack_require__(156), step = __webpack_require__(231), setSpecies = __webpack_require__(444), DESCRIPTORS = __webpack_require__(25), fastKey = __webpack_require__(158).fastKey, validate = __webpack_require__(243), SIZE = DESCRIPTORS ? "_s" : "size", getEntry = function(that, key) { 28053 var entry, index = fastKey(key); 28054 if ("F" !== index) return that._i[index]; 28055 for (entry = that._f; entry; entry = entry.n) if (entry.k == key) return entry; 28056 }; 28057 module.exports = { 28058 getConstructor: function(wrapper, NAME, IS_MAP, ADDER) { 28059 var C = wrapper(function(that, iterable) { 28060 anInstance(that, C, NAME, "_i"), that._t = NAME, that._i = create(null), that._f = void 0, 28061 that._l = void 0, that[SIZE] = 0, void 0 != iterable && forOf(iterable, IS_MAP, that[ADDER], that); 28062 }); 28063 return redefineAll(C.prototype, { 28064 clear: function() { 28065 for (var that = validate(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) entry.r = !0, 28066 entry.p && (entry.p = entry.p.n = void 0), delete data[entry.i]; 28067 that._f = that._l = void 0, that[SIZE] = 0; 28068 }, 28069 delete: function(key) { 28070 var that = validate(this, NAME), entry = getEntry(that, key); 28071 if (entry) { 28072 var next = entry.n, prev = entry.p; 28073 delete that._i[entry.i], entry.r = !0, prev && (prev.n = next), next && (next.p = prev), 28074 that._f == entry && (that._f = next), that._l == entry && (that._l = prev), that[SIZE]--; 28075 } 28076 return !!entry; 28077 }, 28078 forEach: function(callbackfn) { 28079 validate(this, NAME); 28080 for (var entry, f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : void 0, 3); entry = entry ? entry.n : this._f; ) for (f(entry.v, entry.k, this); entry && entry.r; ) entry = entry.p; 28081 }, 28082 has: function(key) { 28083 return !!getEntry(validate(this, NAME), key); 28084 } 28085 }), DESCRIPTORS && dP(C.prototype, "size", { 28086 get: function() { 28087 return validate(this, NAME)[SIZE]; 28088 } 28089 }), C; 28090 }, 28091 def: function(that, key, value) { 28092 var prev, index, entry = getEntry(that, key); 28093 return entry ? entry.v = value : (that._l = entry = { 28094 i: index = fastKey(key, !0), 28095 k: key, 28096 v: value, 28097 p: prev = that._l, 28098 n: void 0, 28099 r: !1 28100 }, that._f || (that._f = entry), prev && (prev.n = entry), that[SIZE]++, "F" !== index && (that._i[index] = entry)), 28101 that; 28102 }, 28103 getEntry: getEntry, 28104 setStrong: function(C, NAME, IS_MAP) { 28105 $iterDefine(C, NAME, function(iterated, kind) { 28106 this._t = validate(iterated, NAME), this._k = kind, this._l = void 0; 28107 }, function() { 28108 for (var that = this, kind = that._k, entry = that._l; entry && entry.r; ) entry = entry.p; 28109 return that._t && (that._l = entry = entry ? entry.n : that._t._f) ? "keys" == kind ? step(0, entry.k) : "values" == kind ? step(0, entry.v) : step(0, [ entry.k, entry.v ]) : (that._t = void 0, 28110 step(1)); 28111 }, IS_MAP ? "entries" : "values", !IS_MAP, !0), setSpecies(NAME); 28112 } 28113 }; 28114 }, function(module, exports, __webpack_require__) { 28115 "use strict"; 28116 var global = __webpack_require__(24), core = __webpack_require__(17), dP = __webpack_require__(22), DESCRIPTORS = __webpack_require__(25), SPECIES = __webpack_require__(21)("species"); 28117 module.exports = function(KEY) { 28118 var C = "function" == typeof core[KEY] ? core[KEY] : global[KEY]; 28119 DESCRIPTORS && C && !C[SPECIES] && dP.f(C, SPECIES, { 28120 configurable: !0, 28121 get: function() { 28122 return this; 28123 } 28124 }); 28125 }; 28126 }, function(module, exports, __webpack_require__) { 28127 "use strict"; 28128 var global = __webpack_require__(24), $export = __webpack_require__(19), meta = __webpack_require__(158), fails = __webpack_require__(53), hide = __webpack_require__(39), redefineAll = __webpack_require__(237), forOf = __webpack_require__(109), anInstance = __webpack_require__(238), isObject = __webpack_require__(35), setToStringTag = __webpack_require__(107), dP = __webpack_require__(22).f, each = __webpack_require__(446)(0), DESCRIPTORS = __webpack_require__(25); 28129 module.exports = function(NAME, wrapper, methods, common, IS_MAP, IS_WEAK) { 28130 var Base = global[NAME], C = Base, ADDER = IS_MAP ? "set" : "add", proto = C && C.prototype, O = {}; 28131 return DESCRIPTORS && "function" == typeof C && (IS_WEAK || proto.forEach && !fails(function() { 28132 new C().entries().next(); 28133 })) ? (C = wrapper(function(target, iterable) { 28134 anInstance(target, C, NAME, "_c"), target._c = new Base(), void 0 != iterable && forOf(iterable, IS_MAP, target[ADDER], target); 28135 }), each("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","), function(KEY) { 28136 var IS_ADDER = "add" == KEY || "set" == KEY; 28137 KEY in proto && (!IS_WEAK || "clear" != KEY) && hide(C.prototype, KEY, function(a, b) { 28138 if (anInstance(this, C, KEY), !IS_ADDER && IS_WEAK && !isObject(a)) return "get" == KEY && void 0; 28139 var result = this._c[KEY](0 === a ? 0 : a, b); 28140 return IS_ADDER ? this : result; 28141 }); 28142 }), IS_WEAK || dP(C.prototype, "size", { 28143 get: function() { 28144 return this._c.size; 28145 } 28146 })) : (C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER), redefineAll(C.prototype, methods), 28147 meta.NEED = !0), setToStringTag(C, NAME), O[NAME] = C, $export($export.G + $export.W + $export.F, O), 28148 IS_WEAK || common.setStrong(C, NAME, IS_MAP), C; 28149 }; 28150 }, function(module, exports, __webpack_require__) { 28151 var ctx = __webpack_require__(51), IObject = __webpack_require__(146), toObject = __webpack_require__(65), toLength = __webpack_require__(101), asc = __webpack_require__(447); 28152 module.exports = function(TYPE, $create) { 28153 var IS_MAP = 1 == TYPE, IS_FILTER = 2 == TYPE, IS_SOME = 3 == TYPE, IS_EVERY = 4 == TYPE, IS_FIND_INDEX = 6 == TYPE, NO_HOLES = 5 == TYPE || IS_FIND_INDEX, create = $create || asc; 28154 return function($this, callbackfn, that) { 28155 for (var val, res, O = toObject($this), self = IObject(O), f = ctx(callbackfn, that, 3), length = toLength(self.length), index = 0, result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : void 0; length > index; index++) if ((NO_HOLES || index in self) && (val = self[index], 28156 res = f(val, index, O), TYPE)) if (IS_MAP) result[index] = res; else if (res) switch (TYPE) { 28157 case 3: 28158 return !0; 28159 28160 case 5: 28161 return val; 28162 28163 case 6: 28164 return index; 28165 28166 case 2: 28167 result.push(val); 28168 } else if (IS_EVERY) return !1; 28169 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result; 28170 }; 28171 }; 28172 }, function(module, exports, __webpack_require__) { 28173 var speciesConstructor = __webpack_require__(448); 28174 module.exports = function(original, length) { 28175 return new (speciesConstructor(original))(length); 28176 }; 28177 }, function(module, exports, __webpack_require__) { 28178 var isObject = __webpack_require__(35), isArray = __webpack_require__(232), SPECIES = __webpack_require__(21)("species"); 28179 module.exports = function(original) { 28180 var C; 28181 return isArray(original) && (C = original.constructor, "function" != typeof C || C !== Array && !isArray(C.prototype) || (C = void 0), 28182 isObject(C) && null === (C = C[SPECIES]) && (C = void 0)), void 0 === C ? Array : C; 28183 }; 28184 }, function(module, exports, __webpack_require__) { 28185 var $export = __webpack_require__(19); 28186 $export($export.P + $export.R, "Map", { 28187 toJSON: __webpack_require__(450)("Map") 28188 }); 28189 }, function(module, exports, __webpack_require__) { 28190 var classof = __webpack_require__(242), from = __webpack_require__(451); 28191 module.exports = function(NAME) { 28192 return function() { 28193 if (classof(this) != NAME) throw TypeError(NAME + "#toJSON isn't generic"); 28194 return from(this); 28195 }; 28196 }; 28197 }, function(module, exports, __webpack_require__) { 28198 var forOf = __webpack_require__(109); 28199 module.exports = function(iter, ITERATOR) { 28200 var result = []; 28201 return forOf(iter, !1, result.push, result, ITERATOR), result; 28202 }; 28203 }, function(module, exports, __webpack_require__) { 28204 __webpack_require__(453)("Map"); 28205 }, function(module, exports, __webpack_require__) { 28206 "use strict"; 28207 var $export = __webpack_require__(19); 28208 module.exports = function(COLLECTION) { 28209 $export($export.S, COLLECTION, { 28210 of: function() { 28211 for (var length = arguments.length, A = new Array(length); length--; ) A[length] = arguments[length]; 28212 return new this(A); 28213 } 28214 }); 28215 }; 28216 }, function(module, exports, __webpack_require__) { 28217 __webpack_require__(455)("Map"); 28218 }, function(module, exports, __webpack_require__) { 28219 "use strict"; 28220 var $export = __webpack_require__(19), aFunction = __webpack_require__(223), ctx = __webpack_require__(51), forOf = __webpack_require__(109); 28221 module.exports = function(COLLECTION) { 28222 $export($export.S, COLLECTION, { 28223 from: function(source) { 28224 var mapping, A, n, cb, mapFn = arguments[1]; 28225 return aFunction(this), mapping = void 0 !== mapFn, mapping && aFunction(mapFn), 28226 void 0 == source ? new this() : (A = [], mapping ? (n = 0, cb = ctx(mapFn, arguments[2], 2), 28227 forOf(source, !1, function(nextItem) { 28228 A.push(cb(nextItem, n++)); 28229 })) : forOf(source, !1, A.push, A), new this(A)); 28230 } 28231 }); 28232 }; 28233 }, function(module, exports, __webpack_require__) { 28234 module.exports = { 28235 default: __webpack_require__(457), 28236 __esModule: !0 28237 }; 28238 }, function(module, exports, __webpack_require__) { 28239 __webpack_require__(458), module.exports = -9007199254740991; 28240 }, function(module, exports, __webpack_require__) { 28241 var $export = __webpack_require__(19); 28242 $export($export.S, "Number", { 28243 MIN_SAFE_INTEGER: -9007199254740991 28244 }); 28245 }, function(module, exports, __webpack_require__) { 28246 "use strict"; 28247 function _defineProperty(obj, key, value) { 28248 return key in obj ? Object.defineProperty(obj, key, { 28249 value: value, 28250 enumerable: !0, 28251 configurable: !0, 28252 writable: !0 28253 }) : obj[key] = value, obj; 28254 } 28255 Object.defineProperty(exports, "__esModule", { 28256 value: !0 28257 }); 28258 var _ns$jss$ns$sheetOptio, _propTypes = __webpack_require__(1), _ns = __webpack_require__(245), ns = function(obj) { 28259 if (obj && obj.__esModule) return obj; 28260 var newObj = {}; 28261 if (null != obj) for (var key in obj) Object.prototype.hasOwnProperty.call(obj, key) && (newObj[key] = obj[key]); 28262 return newObj.default = obj, newObj; 28263 }(_ns), _propTypes2 = __webpack_require__(460), _propTypes3 = function(obj) { 28264 return obj && obj.__esModule ? obj : { 28265 default: obj 28266 }; 28267 }(_propTypes2); 28268 exports.default = (_ns$jss$ns$sheetOptio = {}, _defineProperty(_ns$jss$ns$sheetOptio, ns.jss, _propTypes3.default.jss), 28269 _defineProperty(_ns$jss$ns$sheetOptio, ns.sheetOptions, _propTypes.object), _defineProperty(_ns$jss$ns$sheetOptio, ns.sheetsRegistry, _propTypes3.default.registry), 28270 _defineProperty(_ns$jss$ns$sheetOptio, ns.managers, _propTypes.object), _ns$jss$ns$sheetOptio); 28271 }, function(module, exports, __webpack_require__) { 28272 "use strict"; 28273 Object.defineProperty(exports, "__esModule", { 28274 value: !0 28275 }); 28276 var _propTypes = __webpack_require__(1); 28277 exports.default = { 28278 jss: (0, _propTypes.shape)({ 28279 options: (0, _propTypes.shape)({ 28280 createGenerateClassName: _propTypes.func.isRequired 28281 }).isRequired, 28282 createStyleSheet: _propTypes.func.isRequired, 28283 removeStyleSheet: _propTypes.func.isRequired 28284 }), 28285 registry: (0, _propTypes.shape)({ 28286 add: _propTypes.func.isRequired, 28287 toString: _propTypes.func.isRequired 28288 }) 28289 }; 28290 }, function(module, exports, __webpack_require__) { 28291 "use strict"; 28292 Object.defineProperty(exports, "__esModule", { 28293 value: !0 28294 }); 28295 var _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj) { 28296 return typeof obj; 28297 } : function(obj) { 28298 return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 28299 }; 28300 exports.default = function(styles) { 28301 function extract(styles) { 28302 var to = null; 28303 for (var key in styles) { 28304 var value = styles[key], type = void 0 === value ? "undefined" : _typeof(value); 28305 if ("function" === type) to || (to = {}), to[key] = value; else if ("object" === type && null !== value && !Array.isArray(value)) { 28306 var extracted = extract(value); 28307 extracted && (to || (to = {}), to[key] = extracted); 28308 } 28309 } 28310 return to; 28311 } 28312 return extract(styles); 28313 }; 28314 }, function(module, exports, __webpack_require__) { 28315 "use strict"; 28316 function _classCallCheck(instance, Constructor) { 28317 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 28318 } 28319 Object.defineProperty(exports, "__esModule", { 28320 value: !0 28321 }); 28322 var _createClass = function() { 28323 function defineProperties(target, props) { 28324 for (var i = 0; i < props.length; i++) { 28325 var descriptor = props[i]; 28326 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 28327 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 28328 } 28329 } 28330 return function(Constructor, protoProps, staticProps) { 28331 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 28332 Constructor; 28333 }; 28334 }(), _warning = __webpack_require__(11), _warning2 = function(obj) { 28335 return obj && obj.__esModule ? obj : { 28336 default: obj 28337 }; 28338 }(_warning), SheetsManager = function() { 28339 function SheetsManager() { 28340 _classCallCheck(this, SheetsManager), this.sheets = [], this.refs = [], this.keys = []; 28341 } 28342 return _createClass(SheetsManager, [ { 28343 key: "get", 28344 value: function(key) { 28345 var index = this.keys.indexOf(key); 28346 return this.sheets[index]; 28347 } 28348 }, { 28349 key: "add", 28350 value: function(key, sheet) { 28351 var sheets = this.sheets, refs = this.refs, keys = this.keys, index = sheets.indexOf(sheet); 28352 return -1 !== index ? index : (sheets.push(sheet), refs.push(0), keys.push(key), 28353 sheets.length - 1); 28354 } 28355 }, { 28356 key: "manage", 28357 value: function(key) { 28358 var index = this.keys.indexOf(key), sheet = this.sheets[index]; 28359 return 0 === this.refs[index] && sheet.attach(), this.refs[index]++, this.keys[index] || this.keys.splice(index, 0, key), 28360 sheet; 28361 } 28362 }, { 28363 key: "unmanage", 28364 value: function(key) { 28365 var index = this.keys.indexOf(key); 28366 if (-1 === index) return void (0, _warning2.default)(!1, "SheetsManager: can't find sheet to unmanage"); 28367 this.refs[index] > 0 && 0 === --this.refs[index] && this.sheets[index].detach(); 28368 } 28369 }, { 28370 key: "size", 28371 get: function() { 28372 return this.keys.length; 28373 } 28374 } ]), SheetsManager; 28375 }(); 28376 exports.default = SheetsManager; 28377 }, function(module, exports, __webpack_require__) { 28378 "use strict"; 28379 function cloneStyle(style) { 28380 if (null == style) return style; 28381 var typeOfStyle = void 0 === style ? "undefined" : _typeof(style); 28382 if ("string" === typeOfStyle || "number" === typeOfStyle || "function" === typeOfStyle) return style; 28383 if (isArray(style)) return style.map(cloneStyle); 28384 if ((0, _isObservable2.default)(style)) return style; 28385 var newStyle = {}; 28386 for (var name in style) { 28387 var value = style[name]; 28388 "object" !== (void 0 === value ? "undefined" : _typeof(value)) ? newStyle[name] = value : newStyle[name] = cloneStyle(value); 28389 } 28390 return newStyle; 28391 } 28392 Object.defineProperty(exports, "__esModule", { 28393 value: !0 28394 }); 28395 var _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj) { 28396 return typeof obj; 28397 } : function(obj) { 28398 return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 28399 }; 28400 exports.default = cloneStyle; 28401 var _isObservable = __webpack_require__(248), _isObservable2 = function(obj) { 28402 return obj && obj.__esModule ? obj : { 28403 default: obj 28404 }; 28405 }(_isObservable), isArray = Array.isArray; 28406 }, function(module, __webpack_exports__, __webpack_require__) { 28407 "use strict"; 28408 Object.defineProperty(__webpack_exports__, "__esModule", { 28409 value: !0 28410 }), function(global, module) { 28411 var root, __WEBPACK_IMPORTED_MODULE_0__ponyfill_js__ = __webpack_require__(466); 28412 root = "undefined" != typeof self ? self : "undefined" != typeof window ? window : void 0 !== global ? global : module; 28413 var result = Object(__WEBPACK_IMPORTED_MODULE_0__ponyfill_js__.a)(root); 28414 __webpack_exports__.default = result; 28415 }.call(__webpack_exports__, __webpack_require__(40), __webpack_require__(465)(module)); 28416 }, function(module, exports) { 28417 module.exports = function(originalModule) { 28418 if (!originalModule.webpackPolyfill) { 28419 var module = Object.create(originalModule); 28420 module.children || (module.children = []), Object.defineProperty(module, "loaded", { 28421 enumerable: !0, 28422 get: function() { 28423 return module.l; 28424 } 28425 }), Object.defineProperty(module, "id", { 28426 enumerable: !0, 28427 get: function() { 28428 return module.i; 28429 } 28430 }), Object.defineProperty(module, "exports", { 28431 enumerable: !0 28432 }), module.webpackPolyfill = 1; 28433 } 28434 return module; 28435 }; 28436 }, function(module, __webpack_exports__, __webpack_require__) { 28437 "use strict"; 28438 function symbolObservablePonyfill(root) { 28439 var result, Symbol = root.Symbol; 28440 return "function" == typeof Symbol ? Symbol.observable ? result = Symbol.observable : (result = Symbol("observable"), 28441 Symbol.observable = result) : result = "@@observable", result; 28442 } 28443 __webpack_exports__.a = symbolObservablePonyfill; 28444 }, function(module, exports, __webpack_require__) { 28445 "use strict"; 28446 (function(global, process) { 28447 Object.defineProperty(exports, "__esModule", { 28448 value: !0 28449 }); 28450 var CSS = global.CSS, env = process.env.NODE_ENV, escapeRegex = /([[\].#*$><+~=|^:(),"'` + "`"))) + ((`])/g; 28451 exports.default = function(str) { 28452 return "production" === env ? str : CSS && CSS.escape ? CSS.escape(str) : str.replace(escapeRegex, "\\$1"); 28453 }; 28454 }).call(exports, __webpack_require__(40), __webpack_require__(2)); 28455 }, function(module, exports, __webpack_require__) { 28456 "use strict"; 28457 (function(global) { 28458 Object.defineProperty(exports, "__esModule", { 28459 value: !0 28460 }); 28461 var ns = "2f1acc6c3a606b082e5eef5e54414ffb"; 28462 null == global[ns] && (global[ns] = 0), exports.default = global[ns]++; 28463 }).call(exports, __webpack_require__(40)); 28464 }, function(module, exports, __webpack_require__) { 28465 "use strict"; 28466 function _interopRequireDefault(obj) { 28467 return obj && obj.__esModule ? obj : { 28468 default: obj 28469 }; 28470 } 28471 function _classCallCheck(instance, Constructor) { 28472 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 28473 } 28474 Object.defineProperty(exports, "__esModule", { 28475 value: !0 28476 }); 28477 var _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj) { 28478 return typeof obj; 28479 } : function(obj) { 28480 return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 28481 }, _extends = Object.assign || function(target) { 28482 for (var i = 1; i < arguments.length; i++) { 28483 var source = arguments[i]; 28484 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 28485 } 28486 return target; 28487 }, _createClass = function() { 28488 function defineProperties(target, props) { 28489 for (var i = 0; i < props.length; i++) { 28490 var descriptor = props[i]; 28491 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 28492 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 28493 } 28494 } 28495 return function(Constructor, protoProps, staticProps) { 28496 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 28497 Constructor; 28498 }; 28499 }(), _isInBrowser = __webpack_require__(112), _isInBrowser2 = _interopRequireDefault(_isInBrowser), _StyleSheet = __webpack_require__(251), _StyleSheet2 = _interopRequireDefault(_StyleSheet), _PluginsRegistry = __webpack_require__(470), _PluginsRegistry2 = _interopRequireDefault(_PluginsRegistry), _rules = __webpack_require__(471), _rules2 = _interopRequireDefault(_rules), _observables = __webpack_require__(477), _observables2 = _interopRequireDefault(_observables), _functions = __webpack_require__(478), _functions2 = _interopRequireDefault(_functions), _sheets = __webpack_require__(164), _sheets2 = _interopRequireDefault(_sheets), _StyleRule = __webpack_require__(66), _StyleRule2 = _interopRequireDefault(_StyleRule), _createGenerateClassName = __webpack_require__(250), _createGenerateClassName2 = _interopRequireDefault(_createGenerateClassName), _createRule2 = __webpack_require__(111), _createRule3 = _interopRequireDefault(_createRule2), _DomRenderer = __webpack_require__(479), _DomRenderer2 = _interopRequireDefault(_DomRenderer), _VirtualRenderer = __webpack_require__(480), _VirtualRenderer2 = _interopRequireDefault(_VirtualRenderer), defaultPlugins = _rules2.default.concat([ _observables2.default, _functions2.default ]), instanceCounter = 0, Jss = function() { 28500 function Jss(options) { 28501 _classCallCheck(this, Jss), this.id = instanceCounter++, this.version = "9.8.0", 28502 this.plugins = new _PluginsRegistry2.default(), this.options = { 28503 createGenerateClassName: _createGenerateClassName2.default, 28504 Renderer: _isInBrowser2.default ? _DomRenderer2.default : _VirtualRenderer2.default, 28505 plugins: [] 28506 }, this.generateClassName = (0, _createGenerateClassName2.default)(), this.use.apply(this, defaultPlugins), 28507 this.setup(options); 28508 } 28509 return _createClass(Jss, [ { 28510 key: "setup", 28511 value: function() { 28512 var options = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; 28513 return options.createGenerateClassName && (this.options.createGenerateClassName = options.createGenerateClassName, 28514 this.generateClassName = options.createGenerateClassName()), null != options.insertionPoint && (this.options.insertionPoint = options.insertionPoint), 28515 (options.virtual || options.Renderer) && (this.options.Renderer = options.Renderer || (options.virtual ? _VirtualRenderer2.default : _DomRenderer2.default)), 28516 options.plugins && this.use.apply(this, options.plugins), this; 28517 } 28518 }, { 28519 key: "createStyleSheet", 28520 value: function(styles) { 28521 var options = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, index = options.index; 28522 "number" != typeof index && (index = 0 === _sheets2.default.index ? 0 : _sheets2.default.index + 1); 28523 var sheet = new _StyleSheet2.default(styles, _extends({}, options, { 28524 jss: this, 28525 generateClassName: options.generateClassName || this.generateClassName, 28526 insertionPoint: this.options.insertionPoint, 28527 Renderer: this.options.Renderer, 28528 index: index 28529 })); 28530 return this.plugins.onProcessSheet(sheet), sheet; 28531 } 28532 }, { 28533 key: "removeStyleSheet", 28534 value: function(sheet) { 28535 return sheet.detach(), _sheets2.default.remove(sheet), this; 28536 } 28537 }, { 28538 key: "createRule", 28539 value: function(name) { 28540 var style = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, options = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; 28541 "object" === (void 0 === name ? "undefined" : _typeof(name)) && (options = style, 28542 style = name, name = void 0); 28543 var ruleOptions = options; 28544 ruleOptions.jss = this, ruleOptions.Renderer = this.options.Renderer, ruleOptions.generateClassName || (ruleOptions.generateClassName = this.generateClassName), 28545 ruleOptions.classes || (ruleOptions.classes = {}); 28546 var rule = (0, _createRule3.default)(name, style, ruleOptions); 28547 return !ruleOptions.selector && rule instanceof _StyleRule2.default && (rule.selector = "." + ruleOptions.generateClassName(rule)), 28548 this.plugins.onProcessRule(rule), rule; 28549 } 28550 }, { 28551 key: "use", 28552 value: function() { 28553 for (var _this = this, _len = arguments.length, plugins = Array(_len), _key = 0; _key < _len; _key++) plugins[_key] = arguments[_key]; 28554 return plugins.forEach(function(plugin) { 28555 -1 === _this.options.plugins.indexOf(plugin) && (_this.options.plugins.push(plugin), 28556 _this.plugins.use(plugin)); 28557 }), this; 28558 } 28559 } ]), Jss; 28560 }(); 28561 exports.default = Jss; 28562 }, function(module, exports, __webpack_require__) { 28563 "use strict"; 28564 function _classCallCheck(instance, Constructor) { 28565 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 28566 } 28567 Object.defineProperty(exports, "__esModule", { 28568 value: !0 28569 }); 28570 var _createClass = function() { 28571 function defineProperties(target, props) { 28572 for (var i = 0; i < props.length; i++) { 28573 var descriptor = props[i]; 28574 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 28575 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 28576 } 28577 } 28578 return function(Constructor, protoProps, staticProps) { 28579 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 28580 Constructor; 28581 }; 28582 }(), _warning = __webpack_require__(11), _warning2 = function(obj) { 28583 return obj && obj.__esModule ? obj : { 28584 default: obj 28585 }; 28586 }(_warning), PluginsRegistry = function() { 28587 function PluginsRegistry() { 28588 _classCallCheck(this, PluginsRegistry), this.hooks = { 28589 onCreateRule: [], 28590 onProcessRule: [], 28591 onProcessStyle: [], 28592 onProcessSheet: [], 28593 onChangeValue: [], 28594 onUpdate: [] 28595 }; 28596 } 28597 return _createClass(PluginsRegistry, [ { 28598 key: "onCreateRule", 28599 value: function(name, decl, options) { 28600 for (var i = 0; i < this.hooks.onCreateRule.length; i++) { 28601 var rule = this.hooks.onCreateRule[i](name, decl, options); 28602 if (rule) return rule; 28603 } 28604 return null; 28605 } 28606 }, { 28607 key: "onProcessRule", 28608 value: function(rule) { 28609 if (!rule.isProcessed) { 28610 for (var sheet = rule.options.sheet, i = 0; i < this.hooks.onProcessRule.length; i++) this.hooks.onProcessRule[i](rule, sheet); 28611 rule.style && this.onProcessStyle(rule.style, rule, sheet), rule.isProcessed = !0; 28612 } 28613 } 28614 }, { 28615 key: "onProcessStyle", 28616 value: function(style, rule, sheet) { 28617 for (var nextStyle = style, i = 0; i < this.hooks.onProcessStyle.length; i++) nextStyle = this.hooks.onProcessStyle[i](nextStyle, rule, sheet), 28618 rule.style = nextStyle; 28619 } 28620 }, { 28621 key: "onProcessSheet", 28622 value: function(sheet) { 28623 for (var i = 0; i < this.hooks.onProcessSheet.length; i++) this.hooks.onProcessSheet[i](sheet); 28624 } 28625 }, { 28626 key: "onUpdate", 28627 value: function(data, rule, sheet) { 28628 for (var i = 0; i < this.hooks.onUpdate.length; i++) this.hooks.onUpdate[i](data, rule, sheet); 28629 } 28630 }, { 28631 key: "onChangeValue", 28632 value: function(value, prop, rule) { 28633 for (var processedValue = value, i = 0; i < this.hooks.onChangeValue.length; i++) processedValue = this.hooks.onChangeValue[i](processedValue, prop, rule); 28634 return processedValue; 28635 } 28636 }, { 28637 key: "use", 28638 value: function(plugin) { 28639 for (var name in plugin) this.hooks[name] ? this.hooks[name].push(plugin[name]) : (0, 28640 _warning2.default)(!1, '[JSS] Unknown hook "%s".', name); 28641 } 28642 } ]), PluginsRegistry; 28643 }(); 28644 exports.default = PluginsRegistry; 28645 }, function(module, exports, __webpack_require__) { 28646 "use strict"; 28647 function _interopRequireDefault(obj) { 28648 return obj && obj.__esModule ? obj : { 28649 default: obj 28650 }; 28651 } 28652 Object.defineProperty(exports, "__esModule", { 28653 value: !0 28654 }); 28655 var _SimpleRule = __webpack_require__(472), _SimpleRule2 = _interopRequireDefault(_SimpleRule), _KeyframesRule = __webpack_require__(473), _KeyframesRule2 = _interopRequireDefault(_KeyframesRule), _ConditionalRule = __webpack_require__(474), _ConditionalRule2 = _interopRequireDefault(_ConditionalRule), _FontFaceRule = __webpack_require__(475), _FontFaceRule2 = _interopRequireDefault(_FontFaceRule), _ViewportRule = __webpack_require__(476), _ViewportRule2 = _interopRequireDefault(_ViewportRule), classes = { 28656 "@charset": _SimpleRule2.default, 28657 "@import": _SimpleRule2.default, 28658 "@namespace": _SimpleRule2.default, 28659 "@keyframes": _KeyframesRule2.default, 28660 "@media": _ConditionalRule2.default, 28661 "@supports": _ConditionalRule2.default, 28662 "@font-face": _FontFaceRule2.default, 28663 "@viewport": _ViewportRule2.default, 28664 "@-ms-viewport": _ViewportRule2.default 28665 }; 28666 exports.default = Object.keys(classes).map(function(key) { 28667 var re = new RegExp("^" + key); 28668 return { 28669 onCreateRule: function(name, decl, options) { 28670 return re.test(name) ? new classes[key](name, decl, options) : null; 28671 } 28672 }; 28673 }); 28674 }, function(module, exports, __webpack_require__) { 28675 "use strict"; 28676 function _classCallCheck(instance, Constructor) { 28677 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 28678 } 28679 Object.defineProperty(exports, "__esModule", { 28680 value: !0 28681 }); 28682 var _createClass = function() { 28683 function defineProperties(target, props) { 28684 for (var i = 0; i < props.length; i++) { 28685 var descriptor = props[i]; 28686 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 28687 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 28688 } 28689 } 28690 return function(Constructor, protoProps, staticProps) { 28691 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 28692 Constructor; 28693 }; 28694 }(), SimpleRule = function() { 28695 function SimpleRule(key, value, options) { 28696 _classCallCheck(this, SimpleRule), this.type = "simple", this.isProcessed = !1, 28697 this.key = key, this.value = value, this.options = options; 28698 } 28699 return _createClass(SimpleRule, [ { 28700 key: "toString", 28701 value: function(options) { 28702 if (Array.isArray(this.value)) { 28703 for (var str = "", index = 0; index < this.value.length; index++) str += this.key + " " + this.value[index] + ";", 28704 this.value[index + 1] && (str += "\n"); 28705 return str; 28706 } 28707 return this.key + " " + this.value + ";"; 28708 } 28709 } ]), SimpleRule; 28710 }(); 28711 exports.default = SimpleRule; 28712 }, function(module, exports, __webpack_require__) { 28713 "use strict"; 28714 function _classCallCheck(instance, Constructor) { 28715 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 28716 } 28717 Object.defineProperty(exports, "__esModule", { 28718 value: !0 28719 }); 28720 var _extends = Object.assign || function(target) { 28721 for (var i = 1; i < arguments.length; i++) { 28722 var source = arguments[i]; 28723 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 28724 } 28725 return target; 28726 }, _createClass = function() { 28727 function defineProperties(target, props) { 28728 for (var i = 0; i < props.length; i++) { 28729 var descriptor = props[i]; 28730 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 28731 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 28732 } 28733 } 28734 return function(Constructor, protoProps, staticProps) { 28735 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 28736 Constructor; 28737 }; 28738 }(), _RuleList = __webpack_require__(80), _RuleList2 = function(obj) { 28739 return obj && obj.__esModule ? obj : { 28740 default: obj 28741 }; 28742 }(_RuleList), KeyframesRule = function() { 28743 function KeyframesRule(key, frames, options) { 28744 _classCallCheck(this, KeyframesRule), this.type = "keyframes", this.isProcessed = !1, 28745 this.key = key, this.options = options, this.rules = new _RuleList2.default(_extends({}, options, { 28746 parent: this 28747 })); 28748 for (var name in frames) this.rules.add(name, frames[name], _extends({}, this.options, { 28749 parent: this, 28750 selector: name 28751 })); 28752 this.rules.process(); 28753 } 28754 return _createClass(KeyframesRule, [ { 28755 key: "toString", 28756 value: function() { 28757 var options = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : { 28758 indent: 1 28759 }, inner = this.rules.toString(options); 28760 return inner && (inner += "\n"), this.key + " {\n" + inner + "}"; 28761 } 28762 } ]), KeyframesRule; 28763 }(); 28764 exports.default = KeyframesRule; 28765 }, function(module, exports, __webpack_require__) { 28766 "use strict"; 28767 function _classCallCheck(instance, Constructor) { 28768 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 28769 } 28770 Object.defineProperty(exports, "__esModule", { 28771 value: !0 28772 }); 28773 var _extends = Object.assign || function(target) { 28774 for (var i = 1; i < arguments.length; i++) { 28775 var source = arguments[i]; 28776 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 28777 } 28778 return target; 28779 }, _createClass = function() { 28780 function defineProperties(target, props) { 28781 for (var i = 0; i < props.length; i++) { 28782 var descriptor = props[i]; 28783 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 28784 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 28785 } 28786 } 28787 return function(Constructor, protoProps, staticProps) { 28788 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 28789 Constructor; 28790 }; 28791 }(), _RuleList = __webpack_require__(80), _RuleList2 = function(obj) { 28792 return obj && obj.__esModule ? obj : { 28793 default: obj 28794 }; 28795 }(_RuleList), ConditionalRule = function() { 28796 function ConditionalRule(key, styles, options) { 28797 _classCallCheck(this, ConditionalRule), this.type = "conditional", this.isProcessed = !1, 28798 this.key = key, this.options = options, this.rules = new _RuleList2.default(_extends({}, options, { 28799 parent: this 28800 })); 28801 for (var name in styles) this.rules.add(name, styles[name]); 28802 this.rules.process(); 28803 } 28804 return _createClass(ConditionalRule, [ { 28805 key: "getRule", 28806 value: function(name) { 28807 return this.rules.get(name); 28808 } 28809 }, { 28810 key: "indexOf", 28811 value: function(rule) { 28812 return this.rules.indexOf(rule); 28813 } 28814 }, { 28815 key: "addRule", 28816 value: function(name, style, options) { 28817 var rule = this.rules.add(name, style, options); 28818 return this.options.jss.plugins.onProcessRule(rule), rule; 28819 } 28820 }, { 28821 key: "toString", 28822 value: function() { 28823 var options = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : { 28824 indent: 1 28825 }, inner = this.rules.toString(options); 28826 return inner ? this.key + " {\n" + inner + "\n}" : ""; 28827 } 28828 } ]), ConditionalRule; 28829 }(); 28830 exports.default = ConditionalRule; 28831 }, function(module, exports, __webpack_require__) { 28832 "use strict"; 28833 function _classCallCheck(instance, Constructor) { 28834 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 28835 } 28836 Object.defineProperty(exports, "__esModule", { 28837 value: !0 28838 }); 28839 var _createClass = function() { 28840 function defineProperties(target, props) { 28841 for (var i = 0; i < props.length; i++) { 28842 var descriptor = props[i]; 28843 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 28844 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 28845 } 28846 } 28847 return function(Constructor, protoProps, staticProps) { 28848 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 28849 Constructor; 28850 }; 28851 }(), _toCss = __webpack_require__(163), _toCss2 = function(obj) { 28852 return obj && obj.__esModule ? obj : { 28853 default: obj 28854 }; 28855 }(_toCss), FontFaceRule = function() { 28856 function FontFaceRule(key, style, options) { 28857 _classCallCheck(this, FontFaceRule), this.type = "font-face", this.isProcessed = !1, 28858 this.key = key, this.style = style, this.options = options; 28859 } 28860 return _createClass(FontFaceRule, [ { 28861 key: "toString", 28862 value: function(options) { 28863 if (Array.isArray(this.style)) { 28864 for (var str = "", index = 0; index < this.style.length; index++) str += (0, _toCss2.default)(this.key, this.style[index]), 28865 this.style[index + 1] && (str += "\n"); 28866 return str; 28867 } 28868 return (0, _toCss2.default)(this.key, this.style, options); 28869 } 28870 } ]), FontFaceRule; 28871 }(); 28872 exports.default = FontFaceRule; 28873 }, function(module, exports, __webpack_require__) { 28874 "use strict"; 28875 function _classCallCheck(instance, Constructor) { 28876 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 28877 } 28878 Object.defineProperty(exports, "__esModule", { 28879 value: !0 28880 }); 28881 var _createClass = function() { 28882 function defineProperties(target, props) { 28883 for (var i = 0; i < props.length; i++) { 28884 var descriptor = props[i]; 28885 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 28886 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 28887 } 28888 } 28889 return function(Constructor, protoProps, staticProps) { 28890 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 28891 Constructor; 28892 }; 28893 }(), _toCss = __webpack_require__(163), _toCss2 = function(obj) { 28894 return obj && obj.__esModule ? obj : { 28895 default: obj 28896 }; 28897 }(_toCss), ViewportRule = function() { 28898 function ViewportRule(key, style, options) { 28899 _classCallCheck(this, ViewportRule), this.type = "viewport", this.isProcessed = !1, 28900 this.key = key, this.style = style, this.options = options; 28901 } 28902 return _createClass(ViewportRule, [ { 28903 key: "toString", 28904 value: function(options) { 28905 return (0, _toCss2.default)(this.key, this.style, options); 28906 } 28907 } ]), ViewportRule; 28908 }(); 28909 exports.default = ViewportRule; 28910 }, function(module, exports, __webpack_require__) { 28911 "use strict"; 28912 function _interopRequireDefault(obj) { 28913 return obj && obj.__esModule ? obj : { 28914 default: obj 28915 }; 28916 } 28917 Object.defineProperty(exports, "__esModule", { 28918 value: !0 28919 }); 28920 var _StyleRule = __webpack_require__(66), _StyleRule2 = _interopRequireDefault(_StyleRule), _createRule = __webpack_require__(111), _createRule2 = _interopRequireDefault(_createRule), _isObservable = __webpack_require__(248), _isObservable2 = _interopRequireDefault(_isObservable); 28921 exports.default = { 28922 onCreateRule: function(name, decl, options) { 28923 if (!(0, _isObservable2.default)(decl)) return null; 28924 var style$ = decl, rule = (0, _createRule2.default)(name, {}, options); 28925 return style$.subscribe(function(style) { 28926 for (var prop in style) rule.prop(prop, style[prop]); 28927 }), rule; 28928 }, 28929 onProcessRule: function(rule) { 28930 if (rule instanceof _StyleRule2.default) { 28931 var styleRule = rule, style = styleRule.style; 28932 for (var prop in style) { 28933 (function(prop) { 28934 var value = style[prop]; 28935 if (!(0, _isObservable2.default)(value)) return "continue"; 28936 delete style[prop], value.subscribe({ 28937 next: function(nextValue) { 28938 styleRule.prop(prop, nextValue); 28939 } 28940 }); 28941 })(prop); 28942 } 28943 } 28944 } 28945 }; 28946 }, function(module, exports, __webpack_require__) { 28947 "use strict"; 28948 function _interopRequireDefault(obj) { 28949 return obj && obj.__esModule ? obj : { 28950 default: obj 28951 }; 28952 } 28953 Object.defineProperty(exports, "__esModule", { 28954 value: !0 28955 }); 28956 var _RuleList = __webpack_require__(80), _RuleList2 = _interopRequireDefault(_RuleList), _StyleRule = __webpack_require__(66), _StyleRule2 = _interopRequireDefault(_StyleRule), _createRule = __webpack_require__(111), _createRule2 = _interopRequireDefault(_createRule), now = Date.now(), fnValuesNs = "fnValues" + now, fnStyleNs = "fnStyle" + ++now; 28957 exports.default = { 28958 onCreateRule: function(name, decl, options) { 28959 if ("function" != typeof decl) return null; 28960 var rule = (0, _createRule2.default)(name, {}, options); 28961 return rule[fnStyleNs] = decl, rule; 28962 }, 28963 onProcessStyle: function(style, rule) { 28964 var fn = {}; 28965 for (var prop in style) { 28966 var value = style[prop]; 28967 "function" == typeof value && (delete style[prop], fn[prop] = value); 28968 } 28969 return rule = rule, rule[fnValuesNs] = fn, style; 28970 }, 28971 onUpdate: function(data, rule) { 28972 if (rule.rules instanceof _RuleList2.default) return void rule.rules.update(data); 28973 if (rule instanceof _StyleRule2.default) { 28974 if (rule = rule, rule[fnValuesNs]) for (var prop in rule[fnValuesNs]) rule.prop(prop, rule[fnValuesNs][prop](data)); 28975 rule = rule; 28976 var fnStyle = rule[fnStyleNs]; 28977 if (fnStyle) { 28978 var style = fnStyle(data); 28979 for (var _prop in style) rule.prop(_prop, style[_prop]); 28980 } 28981 } 28982 } 28983 }; 28984 }, function(module, exports, __webpack_require__) { 28985 "use strict"; 28986 function _interopRequireDefault(obj) { 28987 return obj && obj.__esModule ? obj : { 28988 default: obj 28989 }; 28990 } 28991 function _classCallCheck(instance, Constructor) { 28992 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 28993 } 28994 function getPropertyValue(cssRule, prop) { 28995 try { 28996 return cssRule.style.getPropertyValue(prop); 28997 } catch (err) { 28998 return ""; 28999 } 29000 } 29001 function setProperty(cssRule, prop, value) { 29002 try { 29003 var cssValue = value; 29004 if (Array.isArray(value) && (cssValue = (0, _toCssValue2.default)(value, !0), "!important" === value[value.length - 1])) return cssRule.style.setProperty(prop, cssValue, "important"), 29005 !0; 29006 cssRule.style.setProperty(prop, cssValue); 29007 } catch (err) { 29008 return !1; 29009 } 29010 return !0; 29011 } 29012 function removeProperty(cssRule, prop) { 29013 try { 29014 cssRule.style.removeProperty(prop); 29015 } catch (err) { 29016 (0, _warning2.default)(!1, '[JSS] DOMException "%s" was thrown. Tried to remove property "%s".', err.message, prop); 29017 } 29018 } 29019 function setSelector(cssRule, selectorText) { 29020 return cssRule.selectorText = selectorText, cssRule.selectorText === selectorText; 29021 } 29022 function findHigherSheet(registry, options) { 29023 for (var i = 0; i < registry.length; i++) { 29024 var sheet = registry[i]; 29025 if (sheet.attached && sheet.options.index > options.index && sheet.options.insertionPoint === options.insertionPoint) return sheet; 29026 } 29027 return null; 29028 } 29029 function findHighestSheet(registry, options) { 29030 for (var i = registry.length - 1; i >= 0; i--) { 29031 var sheet = registry[i]; 29032 if (sheet.attached && sheet.options.insertionPoint === options.insertionPoint) return sheet; 29033 } 29034 return null; 29035 } 29036 function findCommentNode(text) { 29037 for (var head = getHead(), i = 0; i < head.childNodes.length; i++) { 29038 var node = head.childNodes[i]; 29039 if (8 === node.nodeType && node.nodeValue.trim() === text) return node; 29040 } 29041 return null; 29042 } 29043 function findPrevNode(options) { 29044 var registry = _sheets2.default.registry; 29045 if (registry.length > 0) { 29046 var sheet = findHigherSheet(registry, options); 29047 if (sheet) return sheet.renderer.element; 29048 if (sheet = findHighestSheet(registry, options)) return sheet.renderer.element.nextElementSibling; 29049 } 29050 var insertionPoint = options.insertionPoint; 29051 if (insertionPoint && "string" == typeof insertionPoint) { 29052 var comment = findCommentNode(insertionPoint); 29053 if (comment) return comment.nextSibling; 29054 (0, _warning2.default)("jss" === insertionPoint, '[JSS] Insertion point "%s" not found.', insertionPoint); 29055 } 29056 return null; 29057 } 29058 function insertStyle(style, options) { 29059 var insertionPoint = options.insertionPoint, prevNode = findPrevNode(options); 29060 if (prevNode) { 29061 var parentNode = prevNode.parentNode; 29062 return void (parentNode && parentNode.insertBefore(style, prevNode)); 29063 } 29064 if (insertionPoint && "number" == typeof insertionPoint.nodeType) { 29065 var insertionPointElement = insertionPoint, _parentNode = insertionPointElement.parentNode; 29066 return void (_parentNode ? _parentNode.insertBefore(style, insertionPointElement.nextSibling) : (0, 29067 _warning2.default)(!1, "[JSS] Insertion point is not in the DOM.")); 29068 } 29069 getHead().insertBefore(style, prevNode); 29070 } 29071 Object.defineProperty(exports, "__esModule", { 29072 value: !0 29073 }); 29074 var _createClass = function() { 29075 function defineProperties(target, props) { 29076 for (var i = 0; i < props.length; i++) { 29077 var descriptor = props[i]; 29078 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 29079 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 29080 } 29081 } 29082 return function(Constructor, protoProps, staticProps) { 29083 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 29084 Constructor; 29085 }; 29086 }(), _warning = __webpack_require__(11), _warning2 = _interopRequireDefault(_warning), _sheets = __webpack_require__(164), _sheets2 = _interopRequireDefault(_sheets), _StyleRule = __webpack_require__(66), _StyleRule2 = _interopRequireDefault(_StyleRule), _toCssValue = __webpack_require__(110), _toCssValue2 = _interopRequireDefault(_toCssValue), memoize = function(fn) { 29087 var value = void 0; 29088 return function() { 29089 return value || (value = fn()), value; 29090 }; 29091 }, CSSRuleTypes = { 29092 STYLE_RULE: 1, 29093 KEYFRAMES_RULE: 7 29094 }, getKey = function() { 29095 var extractKey = function(cssText) { 29096 var from = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0; 29097 return cssText.substr(from, cssText.indexOf("{") - 1); 29098 }; 29099 return function(cssRule) { 29100 if (cssRule.type === CSSRuleTypes.STYLE_RULE) return cssRule.selectorText; 29101 if (cssRule.type === CSSRuleTypes.KEYFRAMES_RULE) { 29102 var name = cssRule.name; 29103 if (name) return "@keyframes " + name; 29104 var cssText = cssRule.cssText; 29105 return "@" + extractKey(cssText, cssText.indexOf("keyframes")); 29106 } 29107 return extractKey(cssRule.cssText); 29108 }; 29109 }(), getHead = memoize(function() { 29110 return document.head || document.getElementsByTagName("head")[0]; 29111 }), getUnescapedKeysMap = function() { 29112 var style = void 0, isAttached = !1; 29113 return function(rules) { 29114 var map = {}; 29115 style || (style = document.createElement("style")); 29116 for (var i = 0; i < rules.length; i++) { 29117 var rule = rules[i]; 29118 if (rule instanceof _StyleRule2.default) { 29119 var selector = rule.selector; 29120 if (selector && -1 !== selector.indexOf("\\")) { 29121 isAttached || (getHead().appendChild(style), isAttached = !0), style.textContent = selector + " {}"; 29122 var _style = style, sheet = _style.sheet; 29123 if (sheet) { 29124 var cssRules = sheet.cssRules; 29125 cssRules && (map[cssRules[0].selectorText] = rule.key); 29126 } 29127 } 29128 } 29129 } 29130 return isAttached && (getHead().removeChild(style), isAttached = !1), map; 29131 }; 29132 }(), getNonce = memoize(function() { 29133 var node = document.querySelector('meta[property="csp-nonce"]'); 29134 return node ? node.getAttribute("content") : null; 29135 }), DomRenderer = function() { 29136 function DomRenderer(sheet) { 29137 _classCallCheck(this, DomRenderer), this.getPropertyValue = getPropertyValue, this.setProperty = setProperty, 29138 this.removeProperty = removeProperty, this.setSelector = setSelector, this.getKey = getKey, 29139 this.getUnescapedKeysMap = getUnescapedKeysMap, this.hasInsertedRules = !1, sheet && _sheets2.default.add(sheet), 29140 this.sheet = sheet; 29141 var _ref = this.sheet ? this.sheet.options : {}, media = _ref.media, meta = _ref.meta, element = _ref.element; 29142 this.element = element || document.createElement("style"), this.element.type = "text/css", 29143 this.element.setAttribute("data-jss", ""), media && this.element.setAttribute("media", media), 29144 meta && this.element.setAttribute("data-meta", meta); 29145 var nonce = getNonce(); 29146 nonce && this.element.setAttribute("nonce", nonce); 29147 } 29148 return _createClass(DomRenderer, [ { 29149 key: "attach", 29150 value: function() { 29151 !this.element.parentNode && this.sheet && (this.hasInsertedRules && (this.deploy(), 29152 this.hasInsertedRules = !1), insertStyle(this.element, this.sheet.options)); 29153 } 29154 }, { 29155 key: "detach", 29156 value: function() { 29157 this.element.parentNode.removeChild(this.element); 29158 } 29159 }, { 29160 key: "deploy", 29161 value: function() { 29162 this.sheet && (this.element.textContent = "\n" + this.sheet.toString() + "\n"); 29163 } 29164 }, { 29165 key: "insertRule", 29166 value: function(rule, index) { 29167 var sheet = this.element.sheet, cssRules = sheet.cssRules, str = rule.toString(); 29168 if (index || (index = cssRules.length), !str) return !1; 29169 try { 29170 sheet.insertRule(str, index); 29171 } catch (err) { 29172 return (0, _warning2.default)(!1, "[JSS] Can not insert an unsupported rule \n\r%s", rule), 29173 !1; 29174 } 29175 return this.hasInsertedRules = !0, cssRules[index]; 29176 } 29177 }, { 29178 key: "deleteRule", 29179 value: function(cssRule) { 29180 var sheet = this.element.sheet, index = this.indexOf(cssRule); 29181 return -1 !== index && (sheet.deleteRule(index), !0); 29182 } 29183 }, { 29184 key: "indexOf", 29185 value: function(cssRule) { 29186 for (var cssRules = this.element.sheet.cssRules, _index = 0; _index < cssRules.length; _index++) if (cssRule === cssRules[_index]) return _index; 29187 return -1; 29188 } 29189 }, { 29190 key: "replaceRule", 29191 value: function(cssRule, rule) { 29192 var index = this.indexOf(cssRule), newCssRule = this.insertRule(rule, index); 29193 return this.element.sheet.deleteRule(index), newCssRule; 29194 } 29195 }, { 29196 key: "getRules", 29197 value: function() { 29198 return this.element.sheet.cssRules; 29199 } 29200 } ]), DomRenderer; 29201 }(); 29202 exports.default = DomRenderer; 29203 }, function(module, exports, __webpack_require__) { 29204 "use strict"; 29205 function _classCallCheck(instance, Constructor) { 29206 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 29207 } 29208 Object.defineProperty(exports, "__esModule", { 29209 value: !0 29210 }); 29211 var _createClass = function() { 29212 function defineProperties(target, props) { 29213 for (var i = 0; i < props.length; i++) { 29214 var descriptor = props[i]; 29215 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 29216 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 29217 } 29218 } 29219 return function(Constructor, protoProps, staticProps) { 29220 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 29221 Constructor; 29222 }; 29223 }(), VirtualRenderer = function() { 29224 function VirtualRenderer() { 29225 _classCallCheck(this, VirtualRenderer); 29226 } 29227 return _createClass(VirtualRenderer, [ { 29228 key: "setProperty", 29229 value: function() { 29230 return !0; 29231 } 29232 }, { 29233 key: "getPropertyValue", 29234 value: function() { 29235 return ""; 29236 } 29237 }, { 29238 key: "removeProperty", 29239 value: function() {} 29240 }, { 29241 key: "setSelector", 29242 value: function() { 29243 return !0; 29244 } 29245 }, { 29246 key: "getKey", 29247 value: function() { 29248 return ""; 29249 } 29250 }, { 29251 key: "attach", 29252 value: function() {} 29253 }, { 29254 key: "detach", 29255 value: function() {} 29256 }, { 29257 key: "deploy", 29258 value: function() {} 29259 }, { 29260 key: "insertRule", 29261 value: function() { 29262 return !1; 29263 } 29264 }, { 29265 key: "deleteRule", 29266 value: function() { 29267 return !0; 29268 } 29269 }, { 29270 key: "replaceRule", 29271 value: function() { 29272 return !1; 29273 } 29274 }, { 29275 key: "getRules", 29276 value: function() {} 29277 }, { 29278 key: "indexOf", 29279 value: function() { 29280 return -1; 29281 } 29282 } ]), VirtualRenderer; 29283 }(); 29284 exports.default = VirtualRenderer; 29285 }, function(module, exports, __webpack_require__) { 29286 "use strict"; 29287 function _interopRequireDefault(obj) { 29288 return obj && obj.__esModule ? obj : { 29289 default: obj 29290 }; 29291 } 29292 function jssPreset() { 29293 return { 29294 plugins: [ (0, _jssGlobal2.default)(), (0, _jssNested2.default)(), (0, _jssCamelCase2.default)(), (0, 29295 _jssDefaultUnit2.default)(), (0, _jssVendorPrefixer2.default)(), (0, _jssPropsSort2.default)() ] 29296 }; 29297 } 29298 Object.defineProperty(exports, "__esModule", { 29299 value: !0 29300 }); 29301 var _jssGlobal = __webpack_require__(482), _jssGlobal2 = _interopRequireDefault(_jssGlobal), _jssNested = __webpack_require__(483), _jssNested2 = _interopRequireDefault(_jssNested), _jssCamelCase = __webpack_require__(484), _jssCamelCase2 = _interopRequireDefault(_jssCamelCase), _jssDefaultUnit = __webpack_require__(486), _jssDefaultUnit2 = _interopRequireDefault(_jssDefaultUnit), _jssVendorPrefixer = __webpack_require__(488), _jssVendorPrefixer2 = _interopRequireDefault(_jssVendorPrefixer), _jssPropsSort = __webpack_require__(493), _jssPropsSort2 = _interopRequireDefault(_jssPropsSort); 29302 exports.default = jssPreset; 29303 }, function(module, exports, __webpack_require__) { 29304 "use strict"; 29305 function _classCallCheck(instance, Constructor) { 29306 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 29307 } 29308 function addScope(selector, scope) { 29309 for (var parts = selector.split(separatorRegExp), scoped = "", i = 0; i < parts.length; i++) scoped += scope + " " + parts[i].trim(), 29310 parts[i + 1] && (scoped += ", "); 29311 return scoped; 29312 } 29313 function handleNestedGlobalContainerRule(rule) { 29314 var options = rule.options, style = rule.style, rules = style[propKey]; 29315 if (rules) { 29316 for (var name in rules) options.sheet.addRule(name, rules[name], _extends({}, options, { 29317 selector: addScope(name, rule.selector) 29318 })); 29319 delete style[propKey]; 29320 } 29321 } 29322 function handlePrefixedGlobalRule(rule) { 29323 var options = rule.options, style = rule.style; 29324 for (var prop in style) if (prop.substr(0, propKey.length) === propKey) { 29325 var selector = addScope(prop.substr(propKey.length), rule.selector); 29326 options.sheet.addRule(selector, style[prop], _extends({}, options, { 29327 selector: selector 29328 })), delete style[prop]; 29329 } 29330 } 29331 function jssGlobal() { 29332 function onCreateRule(name, styles, options) { 29333 if (name === propKey) return new GlobalContainerRule(name, styles, options); 29334 if ("@" === name[0] && name.substr(0, prefixKey.length) === prefixKey) return new GlobalPrefixedRule(name, styles, options); 29335 var parent = options.parent; 29336 return parent && ("global" !== parent.type && "global" !== parent.options.parent.type || (options.global = !0)), 29337 options.global && (options.selector = name), null; 29338 } 29339 function onProcessRule(rule) { 29340 "style" === rule.type && (handleNestedGlobalContainerRule(rule), handlePrefixedGlobalRule(rule)); 29341 } 29342 return { 29343 onCreateRule: onCreateRule, 29344 onProcessRule: onProcessRule 29345 }; 29346 } 29347 Object.defineProperty(exports, "__esModule", { 29348 value: !0 29349 }); 29350 var _extends = Object.assign || function(target) { 29351 for (var i = 1; i < arguments.length; i++) { 29352 var source = arguments[i]; 29353 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 29354 } 29355 return target; 29356 }, _createClass = function() { 29357 function defineProperties(target, props) { 29358 for (var i = 0; i < props.length; i++) { 29359 var descriptor = props[i]; 29360 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 29361 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 29362 } 29363 } 29364 return function(Constructor, protoProps, staticProps) { 29365 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 29366 Constructor; 29367 }; 29368 }(); 29369 exports.default = jssGlobal; 29370 var _jss = __webpack_require__(246), propKey = "@global", prefixKey = "@global ", GlobalContainerRule = function() { 29371 function GlobalContainerRule(key, styles, options) { 29372 _classCallCheck(this, GlobalContainerRule), this.type = "global", this.key = key, 29373 this.options = options, this.rules = new _jss.RuleList(_extends({}, options, { 29374 parent: this 29375 })); 29376 for (var selector in styles) this.rules.add(selector, styles[selector], { 29377 selector: selector 29378 }); 29379 this.rules.process(); 29380 } 29381 return _createClass(GlobalContainerRule, [ { 29382 key: "getRule", 29383 value: function(name) { 29384 return this.rules.get(name); 29385 } 29386 }, { 29387 key: "addRule", 29388 value: function(name, style, options) { 29389 var rule = this.rules.add(name, style, options); 29390 return this.options.jss.plugins.onProcessRule(rule), rule; 29391 } 29392 }, { 29393 key: "indexOf", 29394 value: function(rule) { 29395 return this.rules.indexOf(rule); 29396 } 29397 }, { 29398 key: "toString", 29399 value: function() { 29400 return this.rules.toString(); 29401 } 29402 } ]), GlobalContainerRule; 29403 }(), GlobalPrefixedRule = function() { 29404 function GlobalPrefixedRule(name, style, options) { 29405 _classCallCheck(this, GlobalPrefixedRule), this.name = name, this.options = options; 29406 var selector = name.substr(prefixKey.length); 29407 this.rule = options.jss.createRule(selector, style, _extends({}, options, { 29408 parent: this, 29409 selector: selector 29410 })); 29411 } 29412 return _createClass(GlobalPrefixedRule, [ { 29413 key: "toString", 29414 value: function(options) { 29415 return this.rule.toString(options); 29416 } 29417 } ]), GlobalPrefixedRule; 29418 }(), separatorRegExp = /\s*,\s*/g; 29419 }, function(module, exports, __webpack_require__) { 29420 "use strict"; 29421 function jssNested() { 29422 function getReplaceRef(container) { 29423 return function(match, key) { 29424 var rule = container.getRule(key); 29425 return rule ? rule.selector : ((0, _warning2.default)(!1, "[JSS] Could not find the referenced rule %s in %s.", key, container.options.meta || container), 29426 key); 29427 }; 29428 } 29429 function replaceParentRefs(nestedProp, parentProp) { 29430 for (var parentSelectors = parentProp.split(separatorRegExp), nestedSelectors = nestedProp.split(separatorRegExp), result = "", i = 0; i < parentSelectors.length; i++) for (var parent = parentSelectors[i], j = 0; j < nestedSelectors.length; j++) { 29431 var nested = nestedSelectors[j]; 29432 result && (result += ", "), result += hasAnd(nested) ? nested.replace(parentRegExp, parent) : parent + " " + nested; 29433 } 29434 return result; 29435 } 29436 function getOptions(rule, container, options) { 29437 if (options) return _extends({}, options, { 29438 index: options.index + 1 29439 }); 29440 var nestingLevel = rule.options.nestingLevel; 29441 return nestingLevel = void 0 === nestingLevel ? 1 : nestingLevel + 1, _extends({}, rule.options, { 29442 nestingLevel: nestingLevel, 29443 index: container.indexOf(rule) + 1 29444 }); 29445 } 29446 function onProcessStyle(style, rule) { 29447 if ("style" !== rule.type) return style; 29448 var container = rule.options.parent, options = void 0, replaceRef = void 0; 29449 for (var prop in style) { 29450 var isNested = hasAnd(prop), isNestedConditional = "@" === prop[0]; 29451 if (isNested || isNestedConditional) { 29452 if (options = getOptions(rule, container, options), isNested) { 29453 var selector = replaceParentRefs(prop, rule.selector); 29454 replaceRef || (replaceRef = getReplaceRef(container)), selector = selector.replace(refRegExp, replaceRef), 29455 container.addRule(selector, style[prop], _extends({}, options, { 29456 selector: selector 29457 })); 29458 } else isNestedConditional && container.addRule(prop, null, options).addRule(rule.key, style[prop], { 29459 selector: rule.selector 29460 }); 29461 delete style[prop]; 29462 } 29463 } 29464 return style; 29465 } 29466 var hasAnd = function(str) { 29467 return -1 !== str.indexOf("&"); 29468 }; 29469 return { 29470 onProcessStyle: onProcessStyle 29471 }; 29472 } 29473 Object.defineProperty(exports, "__esModule", { 29474 value: !0 29475 }); 29476 var _extends = Object.assign || function(target) { 29477 for (var i = 1; i < arguments.length; i++) { 29478 var source = arguments[i]; 29479 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 29480 } 29481 return target; 29482 }; 29483 exports.default = jssNested; 29484 var _warning = __webpack_require__(11), _warning2 = function(obj) { 29485 return obj && obj.__esModule ? obj : { 29486 default: obj 29487 }; 29488 }(_warning), separatorRegExp = /\s*,\s*/g, parentRegExp = /&/g, refRegExp = /\$([\w-]+)/g; 29489 }, function(module, exports, __webpack_require__) { 29490 "use strict"; 29491 function convertCase(style) { 29492 var converted = {}; 29493 for (var prop in style) converted[(0, _hyphenateStyleName2.default)(prop)] = style[prop]; 29494 return style.fallbacks && (Array.isArray(style.fallbacks) ? converted.fallbacks = style.fallbacks.map(convertCase) : converted.fallbacks = convertCase(style.fallbacks)), 29495 converted; 29496 } 29497 function camelCase() { 29498 function onProcessStyle(style) { 29499 if (Array.isArray(style)) { 29500 for (var index = 0; index < style.length; index++) style[index] = convertCase(style[index]); 29501 return style; 29502 } 29503 return convertCase(style); 29504 } 29505 function onChangeValue(value, prop, rule) { 29506 var hyphenatedProp = (0, _hyphenateStyleName2.default)(prop); 29507 return prop === hyphenatedProp ? value : (rule.prop(hyphenatedProp, value), null); 29508 } 29509 return { 29510 onProcessStyle: onProcessStyle, 29511 onChangeValue: onChangeValue 29512 }; 29513 } 29514 Object.defineProperty(exports, "__esModule", { 29515 value: !0 29516 }), exports.default = camelCase; 29517 var _hyphenateStyleName = __webpack_require__(485), _hyphenateStyleName2 = function(obj) { 29518 return obj && obj.__esModule ? obj : { 29519 default: obj 29520 }; 29521 }(_hyphenateStyleName); 29522 }, function(module, exports, __webpack_require__) { 29523 "use strict"; 29524 function hyphenateStyleName(string) { 29525 return string in cache ? cache[string] : cache[string] = string.replace(uppercasePattern, "-$&").toLowerCase().replace(msPattern, "-ms-"); 29526 } 29527 var uppercasePattern = /[A-Z]/g, msPattern = /^ms-/, cache = {}; 29528 module.exports = hyphenateStyleName; 29529 }, function(module, exports, __webpack_require__) { 29530 "use strict"; 29531 function addCamelCasedVersion(obj) { 29532 var regExp = /(-[a-z])/g, replace = function(str) { 29533 return str[1].toUpperCase(); 29534 }, newObj = {}; 29535 for (var key in obj) newObj[key] = obj[key], newObj[key.replace(regExp, replace)] = obj[key]; 29536 return newObj; 29537 } 29538 function iterate(prop, value, options) { 29539 if (!value) return value; 29540 var convertedValue = value, type = void 0 === value ? "undefined" : _typeof(value); 29541 switch ("object" === type && Array.isArray(value) && (type = "array"), type) { 29542 case "object": 29543 if ("fallbacks" === prop) { 29544 for (var innerProp in value) value[innerProp] = iterate(innerProp, value[innerProp], options); 29545 break; 29546 } 29547 for (var _innerProp in value) value[_innerProp] = iterate(prop + "-" + _innerProp, value[_innerProp], options); 29548 break; 29549 29550 case "array": 29551 for (var i = 0; i < value.length; i++) value[i] = iterate(prop, value[i], options); 29552 break; 29553 29554 case "number": 29555 0 !== value && (convertedValue = value + (options[prop] || units[prop] || "")); 29556 } 29557 return convertedValue; 29558 } 29559 function defaultUnit() { 29560 function onProcessStyle(style, rule) { 29561 if ("style" !== rule.type) return style; 29562 for (var prop in style) style[prop] = iterate(prop, style[prop], camelCasedOptions); 29563 return style; 29564 } 29565 function onChangeValue(value, prop) { 29566 return iterate(prop, value, camelCasedOptions); 29567 } 29568 var options = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, camelCasedOptions = addCamelCasedVersion(options); 29569 return { 29570 onProcessStyle: onProcessStyle, 29571 onChangeValue: onChangeValue 29572 }; 29573 } 29574 Object.defineProperty(exports, "__esModule", { 29575 value: !0 29576 }); 29577 var _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj) { 29578 return typeof obj; 29579 } : function(obj) { 29580 return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 29581 }; 29582 exports.default = defaultUnit; 29583 var _defaultUnits = __webpack_require__(487), _defaultUnits2 = function(obj) { 29584 return obj && obj.__esModule ? obj : { 29585 default: obj 29586 }; 29587 }(_defaultUnits), units = addCamelCasedVersion(_defaultUnits2.default); 29588 }, function(module, exports, __webpack_require__) { 29589 "use strict"; 29590 Object.defineProperty(exports, "__esModule", { 29591 value: !0 29592 }), exports.default = { 29593 "animation-delay": "ms", 29594 "animation-duration": "ms", 29595 "background-position": "px", 29596 "background-position-x": "px", 29597 "background-position-y": "px", 29598 "background-size": "px", 29599 border: "px", 29600 "border-bottom": "px", 29601 "border-bottom-left-radius": "px", 29602 "border-bottom-right-radius": "px", 29603 "border-bottom-width": "px", 29604 "border-left": "px", 29605 "border-left-width": "px", 29606 "border-radius": "px", 29607 "border-right": "px", 29608 "border-right-width": "px", 29609 "border-spacing": "px", 29610 "border-top": "px", 29611 "border-top-left-radius": "px", 29612 "border-top-right-radius": "px", 29613 "border-top-width": "px", 29614 "border-width": "px", 29615 "border-after-width": "px", 29616 "border-before-width": "px", 29617 "border-end-width": "px", 29618 "border-horizontal-spacing": "px", 29619 "border-start-width": "px", 29620 "border-vertical-spacing": "px", 29621 bottom: "px", 29622 "box-shadow": "px", 29623 "column-gap": "px", 29624 "column-rule": "px", 29625 "column-rule-width": "px", 29626 "column-width": "px", 29627 "flex-basis": "px", 29628 "font-size": "px", 29629 "font-size-delta": "px", 29630 height: "px", 29631 left: "px", 29632 "letter-spacing": "px", 29633 "logical-height": "px", 29634 "logical-width": "px", 29635 margin: "px", 29636 "margin-after": "px", 29637 "margin-before": "px", 29638 "margin-bottom": "px", 29639 "margin-left": "px", 29640 "margin-right": "px", 29641 "margin-top": "px", 29642 "max-height": "px", 29643 "max-width": "px", 29644 "margin-end": "px", 29645 "margin-start": "px", 29646 "mask-position-x": "px", 29647 "mask-position-y": "px", 29648 "mask-size": "px", 29649 "max-logical-height": "px", 29650 "max-logical-width": "px", 29651 "min-height": "px", 29652 "min-width": "px", 29653 "min-logical-height": "px", 29654 "min-logical-width": "px", 29655 motion: "px", 29656 "motion-offset": "px", 29657 outline: "px", 29658 "outline-offset": "px", 29659 "outline-width": "px", 29660 padding: "px", 29661 "padding-bottom": "px", 29662 "padding-left": "px", 29663 "padding-right": "px", 29664 "padding-top": "px", 29665 "padding-after": "px", 29666 "padding-before": "px", 29667 "padding-end": "px", 29668 "padding-start": "px", 29669 "perspective-origin-x": "%", 29670 "perspective-origin-y": "%", 29671 perspective: "px", 29672 right: "px", 29673 "shape-margin": "px", 29674 size: "px", 29675 "text-indent": "px", 29676 "text-stroke": "px", 29677 "text-stroke-width": "px", 29678 top: "px", 29679 "transform-origin": "%", 29680 "transform-origin-x": "%", 29681 "transform-origin-y": "%", 29682 "transform-origin-z": "%", 29683 "transition-delay": "ms", 29684 "transition-duration": "ms", 29685 "vertical-align": "px", 29686 width: "px", 29687 "word-spacing": "px", 29688 "box-shadow-x": "px", 29689 "box-shadow-y": "px", 29690 "box-shadow-blur": "px", 29691 "box-shadow-spread": "px", 29692 "font-line-height": "px", 29693 "text-shadow-x": "px", 29694 "text-shadow-y": "px", 29695 "text-shadow-blur": "px" 29696 }; 29697 }, function(module, exports, __webpack_require__) { 29698 "use strict"; 29699 function jssVendorPrefixer() { 29700 function onProcessRule(rule) { 29701 "keyframes" === rule.type && (rule.key = "@" + vendor.prefix.css + rule.key.substr(1)); 29702 } 29703 function onProcessStyle(style, rule) { 29704 if ("style" !== rule.type) return style; 29705 for (var prop in style) { 29706 var value = style[prop], changeProp = !1, supportedProp = vendor.supportedProperty(prop); 29707 supportedProp && supportedProp !== prop && (changeProp = !0); 29708 var changeValue = !1, supportedValue = vendor.supportedValue(supportedProp, value); 29709 supportedValue && supportedValue !== value && (changeValue = !0), (changeProp || changeValue) && (changeProp && delete style[prop], 29710 style[supportedProp || prop] = supportedValue || value); 29711 } 29712 return style; 29713 } 29714 function onChangeValue(value, prop) { 29715 return vendor.supportedValue(prop, value); 29716 } 29717 return { 29718 onProcessRule: onProcessRule, 29719 onProcessStyle: onProcessStyle, 29720 onChangeValue: onChangeValue 29721 }; 29722 } 29723 Object.defineProperty(exports, "__esModule", { 29724 value: !0 29725 }), exports.default = jssVendorPrefixer; 29726 var _cssVendor = __webpack_require__(489), vendor = function(obj) { 29727 if (obj && obj.__esModule) return obj; 29728 var newObj = {}; 29729 if (null != obj) for (var key in obj) Object.prototype.hasOwnProperty.call(obj, key) && (newObj[key] = obj[key]); 29730 return newObj.default = obj, newObj; 29731 }(_cssVendor); 29732 }, function(module, exports, __webpack_require__) { 29733 "use strict"; 29734 function _interopRequireDefault(obj) { 29735 return obj && obj.__esModule ? obj : { 29736 default: obj 29737 }; 29738 } 29739 Object.defineProperty(exports, "__esModule", { 29740 value: !0 29741 }), exports.supportedValue = exports.supportedProperty = exports.prefix = void 0; 29742 var _prefix = __webpack_require__(165), _prefix2 = _interopRequireDefault(_prefix), _supportedProperty = __webpack_require__(490), _supportedProperty2 = _interopRequireDefault(_supportedProperty), _supportedValue = __webpack_require__(492), _supportedValue2 = _interopRequireDefault(_supportedValue); 29743 exports.default = { 29744 prefix: _prefix2.default, 29745 supportedProperty: _supportedProperty2.default, 29746 supportedValue: _supportedValue2.default 29747 }, exports.prefix = _prefix2.default, exports.supportedProperty = _supportedProperty2.default, 29748 exports.supportedValue = _supportedValue2.default; 29749 }, function(module, exports, __webpack_require__) { 29750 "use strict"; 29751 function _interopRequireDefault(obj) { 29752 return obj && obj.__esModule ? obj : { 29753 default: obj 29754 }; 29755 } 29756 function supportedProperty(prop) { 29757 return el ? null != cache[prop] ? cache[prop] : ((0, _camelize2.default)(prop) in el.style ? cache[prop] = prop : _prefix2.default.js + (0, 29758 _camelize2.default)("-" + prop) in el.style ? cache[prop] = _prefix2.default.css + prop : cache[prop] = !1, 29759 cache[prop]) : prop; 29760 } 29761 Object.defineProperty(exports, "__esModule", { 29762 value: !0 29763 }), exports.default = supportedProperty; 29764 var _isInBrowser = __webpack_require__(112), _isInBrowser2 = _interopRequireDefault(_isInBrowser), _prefix = __webpack_require__(165), _prefix2 = _interopRequireDefault(_prefix), _camelize = __webpack_require__(491), _camelize2 = _interopRequireDefault(_camelize), el = void 0, cache = {}; 29765 if (_isInBrowser2.default) { 29766 el = document.createElement("p"); 29767 var computed = window.getComputedStyle(document.documentElement, ""); 29768 for (var key in computed) isNaN(key) || (cache[computed[key]] = computed[key]); 29769 } 29770 }, function(module, exports, __webpack_require__) { 29771 "use strict"; 29772 function camelize(str) { 29773 return str.replace(regExp, toUpper); 29774 } 29775 function toUpper(match, c) { 29776 return c ? c.toUpperCase() : ""; 29777 } 29778 Object.defineProperty(exports, "__esModule", { 29779 value: !0 29780 }), exports.default = camelize; 29781 var regExp = /[-\s]+(.)?/g; 29782 }, function(module, exports, __webpack_require__) { 29783 "use strict"; 29784 function _interopRequireDefault(obj) { 29785 return obj && obj.__esModule ? obj : { 29786 default: obj 29787 }; 29788 } 29789 function supportedValue(property, value) { 29790 if (!el) return value; 29791 if ("string" != typeof value || !isNaN(parseInt(value, 10))) return value; 29792 var cacheKey = property + value; 29793 if (null != cache[cacheKey]) return cache[cacheKey]; 29794 try { 29795 el.style[property] = value; 29796 } catch (err) { 29797 return cache[cacheKey] = !1, !1; 29798 } 29799 return "" !== el.style[property] ? cache[cacheKey] = value : (value = _prefix2.default.css + value, 29800 "-ms-flex" === value && (value = "-ms-flexbox"), el.style[property] = value, "" !== el.style[property] && (cache[cacheKey] = value)), 29801 cache[cacheKey] || (cache[cacheKey] = !1), el.style[property] = "", cache[cacheKey]; 29802 } 29803 Object.defineProperty(exports, "__esModule", { 29804 value: !0 29805 }), exports.default = supportedValue; 29806 var _isInBrowser = __webpack_require__(112), _isInBrowser2 = _interopRequireDefault(_isInBrowser), _prefix = __webpack_require__(165), _prefix2 = _interopRequireDefault(_prefix), cache = {}, el = void 0; 29807 _isInBrowser2.default && (el = document.createElement("p")); 29808 }, function(module, exports, __webpack_require__) { 29809 "use strict"; 29810 function jssPropsSort() { 29811 function sort(prop0, prop1) { 29812 return prop0.length - prop1.length; 29813 } 29814 function onProcessStyle(style, rule) { 29815 if ("style" !== rule.type) return style; 29816 var newStyle = {}, props = Object.keys(style).sort(sort); 29817 for (var prop in props) newStyle[props[prop]] = style[props[prop]]; 29818 return newStyle; 29819 } 29820 return { 29821 onProcessStyle: onProcessStyle 29822 }; 29823 } 29824 Object.defineProperty(exports, "__esModule", { 29825 value: !0 29826 }), exports.default = jssPropsSort; 29827 }, function(module, exports, __webpack_require__) { 29828 "use strict"; 29829 (function(process) { 29830 function createGenerateClassName() { 29831 var options = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, _options$dangerouslyU = options.dangerouslyUseGlobalCSS, dangerouslyUseGlobalCSS = void 0 !== _options$dangerouslyU && _options$dangerouslyU, _options$productionPr = options.productionPrefix, productionPrefix = void 0 === _options$productionPr ? "jss" : _options$productionPr, escapeRegex = /([[\].#*$><+~=|^:(),"'` + ("`" + `\s])/g, ruleCounter = 0; 29832 return "production" === process.env.NODE_ENV && "undefined" != typeof window && "jss" === productionPrefix && (generatorCounter += 1) > 2 && console.error([ "Material-UI: we have detected more than needed creation of the class name generator.", "You should only use one class name generator on the client side.", "If you do otherwise, you take the risk to have conflicting class names in production." ].join("\n")), 29833 function(rule, styleSheet) { 29834 if (ruleCounter += 1, "production" !== process.env.NODE_ENV && (0, _warning2.default)(ruleCounter < 1e10, [ "Material-UI: you might have a memory leak.", "The ruleCounter is not supposed to grow that much." ].join("")), 29835 dangerouslyUseGlobalCSS) { 29836 if (styleSheet && styleSheet.options.classNamePrefix) { 29837 var prefix = styleSheet.options.classNamePrefix; 29838 if (prefix = prefix.replace(escapeRegex, "-"), prefix.match(/^Mui/)) return prefix + "-" + rule.key; 29839 if ("production" !== process.env.NODE_ENV) return prefix + "-" + rule.key + "-" + ruleCounter; 29840 } 29841 return "production" === process.env.NODE_ENV ? "" + productionPrefix + ruleCounter : rule.key + "-" + ruleCounter; 29842 } 29843 if ("production" === process.env.NODE_ENV) return "" + productionPrefix + ruleCounter; 29844 if (styleSheet && styleSheet.options.classNamePrefix) { 29845 var _prefix = styleSheet.options.classNamePrefix; 29846 return (_prefix = _prefix.replace(escapeRegex, "-")) + "-" + rule.key + "-" + ruleCounter; 29847 } 29848 return rule.key + "-" + ruleCounter; 29849 }; 29850 } 29851 Object.defineProperty(exports, "__esModule", { 29852 value: !0 29853 }), exports.default = createGenerateClassName; 29854 var _warning = __webpack_require__(11), _warning2 = function(obj) { 29855 return obj && obj.__esModule ? obj : { 29856 default: obj 29857 }; 29858 }(_warning), generatorCounter = 0; 29859 }).call(exports, __webpack_require__(2)); 29860 }, function(module, exports, __webpack_require__) { 29861 "use strict"; 29862 (function(process) { 29863 function _interopRequireDefault(obj) { 29864 return obj && obj.__esModule ? obj : { 29865 default: obj 29866 }; 29867 } 29868 function getStylesCreator(stylesOrCreator) { 29869 function create(theme, name) { 29870 var styles = themingEnabled ? stylesOrCreator(theme) : stylesOrCreator; 29871 if (!theme.overrides || !name || !theme.overrides[name]) return styles; 29872 var overrides = theme.overrides[name], stylesWithOverrides = (0, _extends3.default)({}, styles); 29873 return (0, _keys2.default)(overrides).forEach(function(key) { 29874 "production" !== process.env.NODE_ENV && (0, _warning2.default)(stylesWithOverrides[key], [ "Material-UI: you are trying to override a style that does not exist.", "Fix the `)) + ("`" + (`" + key + "` + "`"))))) + ((((` key of ` + ("`" + `theme.overrides." + name + "`)) + ("`" + (`." ].join("\n")), 29875 stylesWithOverrides[key] = (0, _deepmerge2.default)(stylesWithOverrides[key], overrides[key]); 29876 }), stylesWithOverrides; 29877 } 29878 var themingEnabled = "function" == typeof stylesOrCreator; 29879 return { 29880 create: create, 29881 options: {}, 29882 themingEnabled: themingEnabled 29883 }; 29884 } 29885 Object.defineProperty(exports, "__esModule", { 29886 value: !0 29887 }); 29888 var _keys = __webpack_require__(55), _keys2 = _interopRequireDefault(_keys), _extends2 = __webpack_require__(6), _extends3 = _interopRequireDefault(_extends2), _warning = __webpack_require__(11), _warning2 = _interopRequireDefault(_warning), _deepmerge = __webpack_require__(108), _deepmerge2 = _interopRequireDefault(_deepmerge); 29889 exports.default = getStylesCreator; 29890 }).call(exports, __webpack_require__(2)); 29891 }, function(module, exports, __webpack_require__) { 29892 "use strict"; 29893 function _interopRequireDefault(obj) { 29894 return obj && obj.__esModule ? obj : { 29895 default: obj 29896 }; 29897 } 29898 function _classCallCheck(instance, Constructor) { 29899 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 29900 } 29901 function _possibleConstructorReturn(self, call) { 29902 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 29903 return !call || "object" != typeof call && "function" != typeof call ? self : call; 29904 } 29905 function _inherits(subClass, superClass) { 29906 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 29907 subClass.prototype = Object.create(superClass && superClass.prototype, { 29908 constructor: { 29909 value: subClass, 29910 enumerable: !1, 29911 writable: !0, 29912 configurable: !0 29913 } 29914 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 29915 } 29916 Object.defineProperty(exports, "__esModule", { 29917 value: !0 29918 }); 29919 var _createClass = function() { 29920 function defineProperties(target, props) { 29921 for (var i = 0; i < props.length; i++) { 29922 var descriptor = props[i]; 29923 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 29924 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 29925 } 29926 } 29927 return function(Constructor, protoProps, staticProps) { 29928 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 29929 Constructor; 29930 }; 29931 }(), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _withStyles = __webpack_require__(10), _withStyles2 = _interopRequireDefault(_withStyles), _AppBar = __webpack_require__(497), _AppBar2 = _interopRequireDefault(_AppBar), _Toolbar = __webpack_require__(501), _Toolbar2 = _interopRequireDefault(_Toolbar), _IconButton = __webpack_require__(503), _IconButton2 = _interopRequireDefault(_IconButton), _Icon = __webpack_require__(258), _Icon2 = _interopRequireDefault(_Icon), _Menu = __webpack_require__(523), _Menu2 = _interopRequireDefault(_Menu), _Typography = __webpack_require__(113), _Typography2 = _interopRequireDefault(_Typography), styles = { 29932 header: { 29933 height: "8%" 29934 }, 29935 toolbar: { 29936 height: "100%" 29937 } 29938 }, themeStyles = function(theme) { 29939 return { 29940 header: { 29941 backgroundColor: theme.palette.grey[900], 29942 color: theme.palette.getContrastText(theme.palette.grey[900]), 29943 zIndex: theme.zIndex.appBar 29944 }, 29945 toolbar: { 29946 paddingLeft: theme.spacing.unit, 29947 paddingRight: theme.spacing.unit 29948 }, 29949 title: { 29950 paddingLeft: theme.spacing.unit, 29951 fontSize: 3 * theme.spacing.unit 29952 } 29953 }; 29954 }, Header = function(_Component) { 29955 function Header() { 29956 return _classCallCheck(this, Header), _possibleConstructorReturn(this, (Header.__proto__ || Object.getPrototypeOf(Header)).apply(this, arguments)); 29957 } 29958 return _inherits(Header, _Component), _createClass(Header, [ { 29959 key: "render", 29960 value: function() { 29961 var classes = this.props.classes; 29962 return _react2.default.createElement(_AppBar2.default, { 29963 position: "static", 29964 className: classes.header, 29965 style: styles.header 29966 }, _react2.default.createElement(_Toolbar2.default, { 29967 className: classes.toolbar, 29968 style: styles.toolbar 29969 }, _react2.default.createElement(_IconButton2.default, { 29970 onClick: this.props.switchSideBar 29971 }, _react2.default.createElement(_Icon2.default, null, _react2.default.createElement(_Menu2.default, null))), _react2.default.createElement(_Typography2.default, { 29972 type: "title", 29973 color: "inherit", 29974 noWrap: !0, 29975 className: classes.title 29976 }, "Go Ethereum Dashboard"))); 29977 } 29978 } ]), Header; 29979 }(_react.Component); 29980 exports.default = (0, _withStyles2.default)(themeStyles)(Header); 29981 }, function(module, exports, __webpack_require__) { 29982 "use strict"; 29983 function _interopRequireDefault(obj) { 29984 return obj && obj.__esModule ? obj : { 29985 default: obj 29986 }; 29987 } 29988 Object.defineProperty(exports, "__esModule", { 29989 value: !0 29990 }); 29991 var _AppBar = __webpack_require__(498); 29992 Object.defineProperty(exports, "default", { 29993 enumerable: !0, 29994 get: function() { 29995 return _interopRequireDefault(_AppBar).default; 29996 } 29997 }); 29998 }, function(module, exports, __webpack_require__) { 29999 "use strict"; 30000 (function(process) { 30001 function _interopRequireDefault(obj) { 30002 return obj && obj.__esModule ? obj : { 30003 default: obj 30004 }; 30005 } 30006 function AppBar(props) { 30007 var _classNames, children = props.children, classes = props.classes, classNameProp = props.className, color = props.color, position = props.position, other = (0, 30008 _objectWithoutProperties3.default)(props, [ "children", "classes", "className", "color", "position" ]), className = (0, 30009 _classnames2.default)(classes.root, classes["position" + (0, _helpers.capitalize)(position)], (_classNames = {}, 30010 (0, _defineProperty3.default)(_classNames, classes["color" + (0, _helpers.capitalize)(color)], "inherit" !== color), 30011 (0, _defineProperty3.default)(_classNames, "mui-fixed", "fixed" === position), _classNames), classNameProp); 30012 return _react2.default.createElement(_Paper2.default, (0, _extends3.default)({ 30013 square: !0, 30014 component: "header", 30015 elevation: 4, 30016 className: className 30017 }, other), children); 30018 } 30019 Object.defineProperty(exports, "__esModule", { 30020 value: !0 30021 }), exports.styles = void 0; 30022 var _extends2 = __webpack_require__(6), _extends3 = _interopRequireDefault(_extends2), _defineProperty2 = __webpack_require__(12), _defineProperty3 = _interopRequireDefault(_defineProperty2), _objectWithoutProperties2 = __webpack_require__(7), _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _classnames = __webpack_require__(3), _classnames2 = _interopRequireDefault(_classnames), _withStyles = __webpack_require__(10), _withStyles2 = _interopRequireDefault(_withStyles), _helpers = __webpack_require__(56), _Paper = __webpack_require__(499), _Paper2 = _interopRequireDefault(_Paper), styles = exports.styles = function(theme) { 30023 var backgroundColorDefault = "light" === theme.palette.type ? theme.palette.grey[100] : theme.palette.grey[900]; 30024 return { 30025 root: { 30026 display: "flex", 30027 flexDirection: "column", 30028 width: "100%", 30029 boxSizing: "border-box", 30030 zIndex: theme.zIndex.appBar, 30031 flexShrink: 0 30032 }, 30033 positionFixed: { 30034 position: "fixed", 30035 top: 0, 30036 left: "auto", 30037 right: 0 30038 }, 30039 positionAbsolute: { 30040 position: "absolute", 30041 top: 0, 30042 left: "auto", 30043 right: 0 30044 }, 30045 positionSticky: { 30046 position: "sticky", 30047 top: 0, 30048 left: "auto", 30049 right: 0 30050 }, 30051 positionStatic: { 30052 position: "static" 30053 }, 30054 colorDefault: { 30055 backgroundColor: backgroundColorDefault, 30056 color: theme.palette.getContrastText(backgroundColorDefault) 30057 }, 30058 colorPrimary: { 30059 backgroundColor: theme.palette.primary.main, 30060 color: theme.palette.primary.contrastText 30061 }, 30062 colorSecondary: { 30063 backgroundColor: theme.palette.secondary.main, 30064 color: theme.palette.secondary.contrastText 30065 } 30066 }; 30067 }; 30068 AppBar.propTypes = "production" !== process.env.NODE_ENV ? { 30069 children: _propTypes2.default.node.isRequired, 30070 classes: _propTypes2.default.object.isRequired, 30071 className: _propTypes2.default.string, 30072 color: _propTypes2.default.oneOf([ "inherit", "primary", "secondary", "default" ]), 30073 position: _propTypes2.default.oneOf([ "fixed", "absolute", "sticky", "static" ]) 30074 } : {}, AppBar.defaultProps = { 30075 color: "primary", 30076 position: "fixed" 30077 }, exports.default = (0, _withStyles2.default)(styles, { 30078 name: "MuiAppBar" 30079 })(AppBar); 30080 }).call(exports, __webpack_require__(2)); 30081 }, function(module, exports, __webpack_require__) { 30082 "use strict"; 30083 function _interopRequireDefault(obj) { 30084 return obj && obj.__esModule ? obj : { 30085 default: obj 30086 }; 30087 } 30088 Object.defineProperty(exports, "__esModule", { 30089 value: !0 30090 }); 30091 var _Paper = __webpack_require__(500); 30092 Object.defineProperty(exports, "default", { 30093 enumerable: !0, 30094 get: function() { 30095 return _interopRequireDefault(_Paper).default; 30096 } 30097 }); 30098 }, function(module, exports, __webpack_require__) { 30099 "use strict"; 30100 (function(process) { 30101 function _interopRequireDefault(obj) { 30102 return obj && obj.__esModule ? obj : { 30103 default: obj 30104 }; 30105 } 30106 function Paper(props) { 30107 var classes = props.classes, classNameProp = props.className, Component = props.component, square = props.square, elevation = props.elevation, other = (0, 30108 _objectWithoutProperties3.default)(props, [ "classes", "className", "component", "square", "elevation" ]); 30109 "production" !== process.env.NODE_ENV && (0, _warning2.default)(elevation >= 0 && elevation < 25, "Material-UI: this elevation ` + "`"))) + ((`" + elevation + "` + ("`" + ` is not implemented."); 30110 var className = (0, _classnames2.default)(classes.root, classes["shadow" + elevation], (0, 30111 _defineProperty3.default)({}, classes.rounded, !square), classNameProp); 30112 return _react2.default.createElement(Component, (0, _extends3.default)({ 30113 className: className 30114 }, other)); 30115 } 30116 Object.defineProperty(exports, "__esModule", { 30117 value: !0 30118 }), exports.styles = void 0; 30119 var _defineProperty2 = __webpack_require__(12), _defineProperty3 = _interopRequireDefault(_defineProperty2), _objectWithoutProperties2 = __webpack_require__(7), _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2), _extends2 = __webpack_require__(6), _extends3 = _interopRequireDefault(_extends2), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _classnames = __webpack_require__(3), _classnames2 = _interopRequireDefault(_classnames), _warning = __webpack_require__(11), _warning2 = _interopRequireDefault(_warning), _withStyles = __webpack_require__(10), _withStyles2 = _interopRequireDefault(_withStyles), styles = exports.styles = function(theme) { 30120 var shadows = {}; 30121 return theme.shadows.forEach(function(shadow, index) { 30122 shadows["shadow" + index] = { 30123 boxShadow: shadow 30124 }; 30125 }), (0, _extends3.default)({ 30126 root: { 30127 backgroundColor: theme.palette.background.paper 30128 }, 30129 rounded: { 30130 borderRadius: 2 30131 } 30132 }, shadows); 30133 }; 30134 Paper.propTypes = "production" !== process.env.NODE_ENV ? { 30135 children: _propTypes2.default.node, 30136 classes: _propTypes2.default.object.isRequired, 30137 className: _propTypes2.default.string, 30138 component: _propTypes2.default.oneOfType([ _propTypes2.default.string, _propTypes2.default.func ]), 30139 elevation: _propTypes2.default.number, 30140 square: _propTypes2.default.bool 30141 } : {}, Paper.defaultProps = { 30142 component: "div", 30143 elevation: 2, 30144 square: !1 30145 }, exports.default = (0, _withStyles2.default)(styles, { 30146 name: "MuiPaper" 30147 })(Paper); 30148 }).call(exports, __webpack_require__(2)); 30149 }, function(module, exports, __webpack_require__) { 30150 "use strict"; 30151 function _interopRequireDefault(obj) { 30152 return obj && obj.__esModule ? obj : { 30153 default: obj 30154 }; 30155 } 30156 Object.defineProperty(exports, "__esModule", { 30157 value: !0 30158 }); 30159 var _Toolbar = __webpack_require__(502); 30160 Object.defineProperty(exports, "default", { 30161 enumerable: !0, 30162 get: function() { 30163 return _interopRequireDefault(_Toolbar).default; 30164 } 30165 }); 30166 }, function(module, exports, __webpack_require__) { 30167 "use strict"; 30168 (function(process) { 30169 function _interopRequireDefault(obj) { 30170 return obj && obj.__esModule ? obj : { 30171 default: obj 30172 }; 30173 } 30174 function Toolbar(props) { 30175 var children = props.children, classes = props.classes, classNameProp = props.className, disableGutters = props.disableGutters, other = (0, 30176 _objectWithoutProperties3.default)(props, [ "children", "classes", "className", "disableGutters" ]), className = (0, 30177 _classnames2.default)(classes.root, (0, _defineProperty3.default)({}, classes.gutters, !disableGutters), classNameProp); 30178 return _react2.default.createElement("div", (0, _extends3.default)({ 30179 className: className 30180 }, other), children); 30181 } 30182 Object.defineProperty(exports, "__esModule", { 30183 value: !0 30184 }), exports.styles = void 0; 30185 var _defineProperty2 = __webpack_require__(12), _defineProperty3 = _interopRequireDefault(_defineProperty2), _objectWithoutProperties2 = __webpack_require__(7), _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2), _extends2 = __webpack_require__(6), _extends3 = _interopRequireDefault(_extends2), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _classnames = __webpack_require__(3), _classnames2 = _interopRequireDefault(_classnames), _withStyles = __webpack_require__(10), _withStyles2 = _interopRequireDefault(_withStyles), styles = exports.styles = function(theme) { 30186 return { 30187 root: (0, _extends3.default)({ 30188 position: "relative", 30189 display: "flex", 30190 alignItems: "center" 30191 }, theme.mixins.toolbar), 30192 gutters: theme.mixins.gutters({}) 30193 }; 30194 }; 30195 Toolbar.propTypes = "production" !== process.env.NODE_ENV ? { 30196 children: _propTypes2.default.node, 30197 classes: _propTypes2.default.object.isRequired, 30198 className: _propTypes2.default.string, 30199 disableGutters: _propTypes2.default.bool 30200 } : {}, Toolbar.defaultProps = { 30201 disableGutters: !1 30202 }, exports.default = (0, _withStyles2.default)(styles, { 30203 name: "MuiToolbar" 30204 })(Toolbar); 30205 }).call(exports, __webpack_require__(2)); 30206 }, function(module, exports, __webpack_require__) { 30207 "use strict"; 30208 function _interopRequireDefault(obj) { 30209 return obj && obj.__esModule ? obj : { 30210 default: obj 30211 }; 30212 } 30213 Object.defineProperty(exports, "__esModule", { 30214 value: !0 30215 }); 30216 var _IconButton = __webpack_require__(504); 30217 Object.defineProperty(exports, "default", { 30218 enumerable: !0, 30219 get: function() { 30220 return _interopRequireDefault(_IconButton).default; 30221 } 30222 }); 30223 }, function(module, exports, __webpack_require__) { 30224 "use strict"; 30225 (function(process) { 30226 function _interopRequireDefault(obj) { 30227 return obj && obj.__esModule ? obj : { 30228 default: obj 30229 }; 30230 } 30231 function IconButton(props) { 30232 var _classNames, children = props.children, classes = props.classes, className = props.className, color = props.color, disabled = props.disabled, other = (0, 30233 _objectWithoutProperties3.default)(props, [ "children", "classes", "className", "color", "disabled" ]); 30234 return _react2.default.createElement(_ButtonBase2.default, (0, _extends3.default)({ 30235 className: (0, _classnames2.default)(classes.root, (_classNames = {}, (0, _defineProperty3.default)(_classNames, classes["color" + (0, 30236 _helpers.capitalize)(color)], "default" !== color), (0, _defineProperty3.default)(_classNames, classes.disabled, disabled), 30237 _classNames), className), 30238 centerRipple: !0, 30239 focusRipple: !0, 30240 disabled: disabled 30241 }, other), _react2.default.createElement("span", { 30242 className: classes.label 30243 }, _react2.default.Children.map(children, function(child) { 30244 return (0, _reactHelpers.isMuiElement)(child, [ "Icon", "SvgIcon" ]) ? _react2.default.cloneElement(child, { 30245 fontSize: !0 30246 }) : child; 30247 }))); 30248 } 30249 Object.defineProperty(exports, "__esModule", { 30250 value: !0 30251 }), exports.styles = void 0; 30252 var _extends2 = __webpack_require__(6), _extends3 = _interopRequireDefault(_extends2), _defineProperty2 = __webpack_require__(12), _defineProperty3 = _interopRequireDefault(_defineProperty2), _objectWithoutProperties2 = __webpack_require__(7), _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _classnames = __webpack_require__(3), _classnames2 = _interopRequireDefault(_classnames), _withStyles = __webpack_require__(10), _withStyles2 = _interopRequireDefault(_withStyles), _ButtonBase = __webpack_require__(252), _ButtonBase2 = _interopRequireDefault(_ButtonBase), _helpers = __webpack_require__(56), _reactHelpers = __webpack_require__(256); 30253 __webpack_require__(257); 30254 var styles = exports.styles = function(theme) { 30255 return { 30256 root: { 30257 textAlign: "center", 30258 flex: "0 0 auto", 30259 fontSize: theme.typography.pxToRem(24), 30260 width: 6 * theme.spacing.unit, 30261 height: 6 * theme.spacing.unit, 30262 padding: 0, 30263 borderRadius: "50%", 30264 color: theme.palette.action.active, 30265 transition: theme.transitions.create("background-color", { 30266 duration: theme.transitions.duration.shortest 30267 }) 30268 }, 30269 colorInherit: { 30270 color: "inherit" 30271 }, 30272 colorPrimary: { 30273 color: theme.palette.primary.main 30274 }, 30275 colorSecondary: { 30276 color: theme.palette.secondary.main 30277 }, 30278 disabled: { 30279 color: theme.palette.action.disabled 30280 }, 30281 label: { 30282 width: "100%", 30283 display: "flex", 30284 alignItems: "inherit", 30285 justifyContent: "inherit" 30286 } 30287 }; 30288 }; 30289 IconButton.propTypes = "production" !== process.env.NODE_ENV ? { 30290 children: _propTypes2.default.node, 30291 classes: _propTypes2.default.object.isRequired, 30292 className: _propTypes2.default.string, 30293 color: _propTypes2.default.oneOf([ "default", "inherit", "primary", "secondary" ]), 30294 disabled: _propTypes2.default.bool, 30295 disableRipple: _propTypes2.default.bool 30296 } : {}, IconButton.defaultProps = { 30297 color: "default", 30298 disabled: !1, 30299 disableRipple: !1 30300 }, exports.default = (0, _withStyles2.default)(styles, { 30301 name: "MuiIconButton" 30302 })(IconButton); 30303 }).call(exports, __webpack_require__(2)); 30304 }, function(module, exports, __webpack_require__) { 30305 "use strict"; 30306 (function(process) { 30307 function _interopRequireDefault(obj) { 30308 return obj && obj.__esModule ? obj : { 30309 default: obj 30310 }; 30311 } 30312 Object.defineProperty(exports, "__esModule", { 30313 value: !0 30314 }), exports.styles = void 0; 30315 var _extends2 = __webpack_require__(6), _extends3 = _interopRequireDefault(_extends2), _defineProperty2 = __webpack_require__(12), _defineProperty3 = _interopRequireDefault(_defineProperty2), _objectWithoutProperties2 = __webpack_require__(7), _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2), _getPrototypeOf = __webpack_require__(26), _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf), _classCallCheck2 = __webpack_require__(27), _classCallCheck3 = _interopRequireDefault(_classCallCheck2), _createClass2 = __webpack_require__(28), _createClass3 = _interopRequireDefault(_createClass2), _possibleConstructorReturn2 = __webpack_require__(29), _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2), _inherits2 = __webpack_require__(30), _inherits3 = _interopRequireDefault(_inherits2), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _reactDom = __webpack_require__(99), _classnames = __webpack_require__(3), _classnames2 = _interopRequireDefault(_classnames), _keycode = __webpack_require__(253), _keycode2 = _interopRequireDefault(_keycode), _ownerWindow = __webpack_require__(506), _ownerWindow2 = _interopRequireDefault(_ownerWindow), _withStyles = __webpack_require__(10), _withStyles2 = _interopRequireDefault(_withStyles), _keyboardFocus = __webpack_require__(507), _TouchRipple = __webpack_require__(510), _TouchRipple2 = _interopRequireDefault(_TouchRipple), _createRippleHandler = __webpack_require__(520), _createRippleHandler2 = _interopRequireDefault(_createRippleHandler), styles = exports.styles = { 30316 root: { 30317 display: "inline-flex", 30318 alignItems: "center", 30319 justifyContent: "center", 30320 position: "relative", 30321 WebkitTapHighlightColor: "transparent", 30322 backgroundColor: "transparent", 30323 outline: "none", 30324 border: 0, 30325 margin: 0, 30326 borderRadius: 0, 30327 padding: 0, 30328 cursor: "pointer", 30329 userSelect: "none", 30330 verticalAlign: "middle", 30331 "-moz-appearance": "none", 30332 "-webkit-appearance": "none", 30333 textDecoration: "none", 30334 color: "inherit", 30335 "&::-moz-focus-inner": { 30336 borderStyle: "none" 30337 } 30338 }, 30339 disabled: { 30340 pointerEvents: "none", 30341 cursor: "default" 30342 } 30343 }, ButtonBase = function(_React$Component) { 30344 function ButtonBase() { 30345 var _ref, _temp, _this, _ret; 30346 (0, _classCallCheck3.default)(this, ButtonBase); 30347 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 30348 return _temp = _this = (0, _possibleConstructorReturn3.default)(this, (_ref = ButtonBase.__proto__ || (0, 30349 _getPrototypeOf2.default)(ButtonBase)).call.apply(_ref, [ this ].concat(args))), 30350 _this.state = { 30351 keyboardFocused: !1 30352 }, _this.onKeyboardFocusHandler = function(event) { 30353 _this.keyDown = !1, _this.setState({ 30354 keyboardFocused: !0 30355 }), _this.props.onKeyboardFocus && _this.props.onKeyboardFocus(event); 30356 }, _this.onRippleRef = function(node) { 30357 _this.ripple = node; 30358 }, _this.ripple = null, _this.keyDown = !1, _this.button = null, _this.keyboardFocusTimeout = null, 30359 _this.keyboardFocusCheckTime = 50, _this.keyboardFocusMaxCheckTimes = 5, _this.handleKeyDown = function(event) { 30360 var _this$props = _this.props, component = _this$props.component, focusRipple = _this$props.focusRipple, onKeyDown = _this$props.onKeyDown, onClick = _this$props.onClick, key = (0, 30361 _keycode2.default)(event); 30362 focusRipple && !_this.keyDown && _this.state.keyboardFocused && _this.ripple && "space" === key && (_this.keyDown = !0, 30363 event.persist(), _this.ripple.stop(event, function() { 30364 _this.ripple.start(event); 30365 })), onKeyDown && onKeyDown(event), event.target !== event.currentTarget || !component || "button" === component || "space" !== key && "enter" !== key || (event.preventDefault(), 30366 onClick && onClick(event)); 30367 }, _this.handleKeyUp = function(event) { 30368 _this.props.focusRipple && "space" === (0, _keycode2.default)(event) && _this.ripple && _this.state.keyboardFocused && (_this.keyDown = !1, 30369 event.persist(), _this.ripple.stop(event, function() { 30370 return _this.ripple.pulsate(event); 30371 })), _this.props.onKeyUp && _this.props.onKeyUp(event); 30372 }, _this.handleMouseDown = (0, _createRippleHandler2.default)(_this, "MouseDown", "start", function() { 30373 clearTimeout(_this.keyboardFocusTimeout), (0, _keyboardFocus.focusKeyPressed)(!1), 30374 _this.state.keyboardFocused && _this.setState({ 30375 keyboardFocused: !1 30376 }); 30377 }), _this.handleMouseUp = (0, _createRippleHandler2.default)(_this, "MouseUp", "stop"), 30378 _this.handleMouseLeave = (0, _createRippleHandler2.default)(_this, "MouseLeave", "stop", function(event) { 30379 _this.state.keyboardFocused && event.preventDefault(); 30380 }), _this.handleTouchStart = (0, _createRippleHandler2.default)(_this, "TouchStart", "start"), 30381 _this.handleTouchEnd = (0, _createRippleHandler2.default)(_this, "TouchEnd", "stop"), 30382 _this.handleTouchMove = (0, _createRippleHandler2.default)(_this, "TouchEnd", "stop"), 30383 _this.handleBlur = (0, _createRippleHandler2.default)(_this, "Blur", "stop", function() { 30384 clearTimeout(_this.keyboardFocusTimeout), (0, _keyboardFocus.focusKeyPressed)(!1), 30385 _this.setState({ 30386 keyboardFocused: !1 30387 }); 30388 }), _this.handleFocus = function(event) { 30389 _this.props.disabled || (_this.button || (_this.button = event.currentTarget), event.persist(), 30390 (0, _keyboardFocus.detectKeyboardFocus)(_this, _this.button, function() { 30391 _this.onKeyboardFocusHandler(event); 30392 }), _this.props.onFocus && _this.props.onFocus(event)); 30393 }, _ret = _temp, (0, _possibleConstructorReturn3.default)(_this, _ret); 30394 } 30395 return (0, _inherits3.default)(ButtonBase, _React$Component), (0, _createClass3.default)(ButtonBase, [ { 30396 key: "componentDidMount", 30397 value: function() { 30398 this.button = (0, _reactDom.findDOMNode)(this), (0, _keyboardFocus.listenForFocusKeys)((0, 30399 _ownerWindow2.default)(this.button)); 30400 } 30401 }, { 30402 key: "componentWillReceiveProps", 30403 value: function(nextProps) { 30404 !this.props.disabled && nextProps.disabled && this.state.keyboardFocused && this.setState({ 30405 keyboardFocused: !1 30406 }); 30407 } 30408 }, { 30409 key: "componentWillUpdate", 30410 value: function(nextProps, nextState) { 30411 this.props.focusRipple && nextState.keyboardFocused && !this.state.keyboardFocused && !this.props.disableRipple && this.ripple.pulsate(); 30412 } 30413 }, { 30414 key: "componentWillUnmount", 30415 value: function() { 30416 this.button = null, clearTimeout(this.keyboardFocusTimeout); 30417 } 30418 }, { 30419 key: "render", 30420 value: function() { 30421 var _classNames, _props = this.props, buttonRef = _props.buttonRef, centerRipple = _props.centerRipple, children = _props.children, classes = _props.classes, classNameProp = _props.className, component = _props.component, disabled = _props.disabled, disableRipple = _props.disableRipple, keyboardFocusedClassName = (_props.focusRipple, 30422 _props.keyboardFocusedClassName), tabIndex = (_props.onBlur, _props.onFocus, _props.onKeyboardFocus, 30423 _props.onKeyDown, _props.onKeyUp, _props.onMouseDown, _props.onMouseLeave, _props.onMouseUp, 30424 _props.onTouchEnd, _props.onTouchMove, _props.onTouchStart, _props.tabIndex), type = _props.type, other = (0, 30425 _objectWithoutProperties3.default)(_props, [ "buttonRef", "centerRipple", "children", "classes", "className", "component", "disabled", "disableRipple", "focusRipple", "keyboardFocusedClassName", "onBlur", "onFocus", "onKeyboardFocus", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "tabIndex", "type" ]), className = (0, 30426 _classnames2.default)(classes.root, (_classNames = {}, (0, _defineProperty3.default)(_classNames, classes.disabled, disabled), 30427 (0, _defineProperty3.default)(_classNames, keyboardFocusedClassName || "", this.state.keyboardFocused), 30428 _classNames), classNameProp), buttonProps = {}, ComponentProp = component; 30429 return ComponentProp || (ComponentProp = other.href ? "a" : "button"), "button" === ComponentProp ? (buttonProps.type = type || "button", 30430 buttonProps.disabled = disabled) : buttonProps.role = "button", _react2.default.createElement(ComponentProp, (0, 30431 _extends3.default)({ 30432 onBlur: this.handleBlur, 30433 onFocus: this.handleFocus, 30434 onKeyDown: this.handleKeyDown, 30435 onKeyUp: this.handleKeyUp, 30436 onMouseDown: this.handleMouseDown, 30437 onMouseLeave: this.handleMouseLeave, 30438 onMouseUp: this.handleMouseUp, 30439 onTouchEnd: this.handleTouchEnd, 30440 onTouchMove: this.handleTouchMove, 30441 onTouchStart: this.handleTouchStart, 30442 tabIndex: disabled ? "-1" : tabIndex, 30443 className: className, 30444 ref: buttonRef 30445 }, buttonProps, other), children, disableRipple || disabled ? null : _react2.default.createElement(_TouchRipple2.default, { 30446 innerRef: this.onRippleRef, 30447 center: centerRipple 30448 })); 30449 } 30450 } ]), ButtonBase; 30451 }(_react2.default.Component); 30452 ButtonBase.propTypes = "production" !== process.env.NODE_ENV ? { 30453 buttonRef: _propTypes2.default.func, 30454 centerRipple: _propTypes2.default.bool, 30455 children: _propTypes2.default.node, 30456 classes: _propTypes2.default.object.isRequired, 30457 className: _propTypes2.default.string, 30458 component: _propTypes2.default.oneOfType([ _propTypes2.default.string, _propTypes2.default.func ]), 30459 disabled: _propTypes2.default.bool, 30460 disableRipple: _propTypes2.default.bool, 30461 focusRipple: _propTypes2.default.bool, 30462 keyboardFocusedClassName: _propTypes2.default.string, 30463 onBlur: _propTypes2.default.func, 30464 onClick: _propTypes2.default.func, 30465 onFocus: _propTypes2.default.func, 30466 onKeyboardFocus: _propTypes2.default.func, 30467 onKeyDown: _propTypes2.default.func, 30468 onKeyUp: _propTypes2.default.func, 30469 onMouseDown: _propTypes2.default.func, 30470 onMouseLeave: _propTypes2.default.func, 30471 onMouseUp: _propTypes2.default.func, 30472 onTouchEnd: _propTypes2.default.func, 30473 onTouchMove: _propTypes2.default.func, 30474 onTouchStart: _propTypes2.default.func, 30475 role: _propTypes2.default.string, 30476 tabIndex: _propTypes2.default.oneOfType([ _propTypes2.default.number, _propTypes2.default.string ]), 30477 type: _propTypes2.default.string 30478 } : {}, ButtonBase.defaultProps = { 30479 centerRipple: !1, 30480 disableRipple: !1, 30481 focusRipple: !1, 30482 tabIndex: "0", 30483 type: "button" 30484 }, exports.default = (0, _withStyles2.default)(styles, { 30485 name: "MuiButtonBase" 30486 })(ButtonBase); 30487 }).call(exports, __webpack_require__(2)); 30488 }, function(module, exports, __webpack_require__) { 30489 "use strict"; 30490 function ownerWindow(node) { 30491 var doc = (0, _ownerDocument2.default)(node); 30492 return doc && doc.defaultView || doc.parentWindow; 30493 } 30494 Object.defineProperty(exports, "__esModule", { 30495 value: !0 30496 }), exports.default = ownerWindow; 30497 var _ownerDocument = __webpack_require__(254), _ownerDocument2 = function(obj) { 30498 return obj && obj.__esModule ? obj : { 30499 default: obj 30500 }; 30501 }(_ownerDocument); 30502 module.exports = exports.default; 30503 }, function(module, exports, __webpack_require__) { 30504 "use strict"; 30505 (function(process) { 30506 function _interopRequireDefault(obj) { 30507 return obj && obj.__esModule ? obj : { 30508 default: obj 30509 }; 30510 } 30511 function focusKeyPressed(pressed) { 30512 return void 0 !== pressed && (internal.focusKeyPressed = Boolean(pressed)), internal.focusKeyPressed; 30513 } 30514 function detectKeyboardFocus(instance, element, callback) { 30515 var attempt = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : 1; 30516 "production" !== process.env.NODE_ENV && (0, _warning2.default)(instance.keyboardFocusCheckTime, "Material-UI: missing instance.keyboardFocusCheckTime"), 30517 "production" !== process.env.NODE_ENV && (0, _warning2.default)(instance.keyboardFocusMaxCheckTimes, "Material-UI: missing instance.keyboardFocusMaxCheckTimes"), 30518 instance.keyboardFocusTimeout = setTimeout(function() { 30519 var doc = (0, _ownerDocument2.default)(element); 30520 focusKeyPressed() && (doc.activeElement === element || (0, _contains2.default)(element, doc.activeElement)) ? callback() : attempt < instance.keyboardFocusMaxCheckTimes && detectKeyboardFocus(instance, element, callback, attempt + 1); 30521 }, instance.keyboardFocusCheckTime); 30522 } 30523 function isFocusKey(event) { 30524 return -1 !== FOCUS_KEYS.indexOf((0, _keycode2.default)(event)); 30525 } 30526 function listenForFocusKeys(win) { 30527 win.addEventListener("keyup", handleKeyUpEvent); 30528 } 30529 Object.defineProperty(exports, "__esModule", { 30530 value: !0 30531 }), exports.focusKeyPressed = focusKeyPressed, exports.detectKeyboardFocus = detectKeyboardFocus, 30532 exports.listenForFocusKeys = listenForFocusKeys; 30533 var _keycode = __webpack_require__(253), _keycode2 = _interopRequireDefault(_keycode), _warning = __webpack_require__(11), _warning2 = _interopRequireDefault(_warning), _contains = __webpack_require__(508), _contains2 = _interopRequireDefault(_contains), _ownerDocument = __webpack_require__(254), _ownerDocument2 = _interopRequireDefault(_ownerDocument), internal = { 30534 focusKeyPressed: !1 30535 }, FOCUS_KEYS = [ "tab", "enter", "space", "esc", "up", "down", "left", "right" ], handleKeyUpEvent = function(event) { 30536 isFocusKey(event) && (internal.focusKeyPressed = !0); 30537 }; 30538 }).call(exports, __webpack_require__(2)); 30539 }, function(module, exports, __webpack_require__) { 30540 "use strict"; 30541 function fallback(context, node) { 30542 if (node) do { 30543 if (node === context) return !0; 30544 } while (node = node.parentNode); 30545 return !1; 30546 } 30547 Object.defineProperty(exports, "__esModule", { 30548 value: !0 30549 }); 30550 var _inDOM = __webpack_require__(509), _inDOM2 = function(obj) { 30551 return obj && obj.__esModule ? obj : { 30552 default: obj 30553 }; 30554 }(_inDOM); 30555 exports.default = function() { 30556 return _inDOM2.default ? function(context, node) { 30557 return context.contains ? context.contains(node) : context.compareDocumentPosition ? context === node || !!(16 & context.compareDocumentPosition(node)) : fallback(context, node); 30558 } : fallback; 30559 }(), module.exports = exports.default; 30560 }, function(module, exports, __webpack_require__) { 30561 "use strict"; 30562 Object.defineProperty(exports, "__esModule", { 30563 value: !0 30564 }), exports.default = !("undefined" == typeof window || !window.document || !window.document.createElement), 30565 module.exports = exports.default; 30566 }, function(module, exports, __webpack_require__) { 30567 "use strict"; 30568 (function(process) { 30569 function _interopRequireDefault(obj) { 30570 return obj && obj.__esModule ? obj : { 30571 default: obj 30572 }; 30573 } 30574 Object.defineProperty(exports, "__esModule", { 30575 value: !0 30576 }), exports.styles = exports.DELAY_RIPPLE = void 0; 30577 var _extends2 = __webpack_require__(6), _extends3 = _interopRequireDefault(_extends2), _objectWithoutProperties2 = __webpack_require__(7), _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2), _toConsumableArray2 = __webpack_require__(511), _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2), _getPrototypeOf = __webpack_require__(26), _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf), _classCallCheck2 = __webpack_require__(27), _classCallCheck3 = _interopRequireDefault(_classCallCheck2), _createClass2 = __webpack_require__(28), _createClass3 = _interopRequireDefault(_createClass2), _possibleConstructorReturn2 = __webpack_require__(29), _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2), _inherits2 = __webpack_require__(30), _inherits3 = _interopRequireDefault(_inherits2), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _reactDom = __webpack_require__(99), _reactDom2 = _interopRequireDefault(_reactDom), _TransitionGroup = __webpack_require__(255), _TransitionGroup2 = _interopRequireDefault(_TransitionGroup), _classnames = __webpack_require__(3), _classnames2 = _interopRequireDefault(_classnames), _withStyles = __webpack_require__(10), _withStyles2 = _interopRequireDefault(_withStyles), _Ripple = __webpack_require__(518), _Ripple2 = _interopRequireDefault(_Ripple), DURATION = 550, DELAY_RIPPLE = exports.DELAY_RIPPLE = 80, styles = exports.styles = function(theme) { 30578 return { 30579 root: { 30580 display: "block", 30581 position: "absolute", 30582 overflow: "hidden", 30583 borderRadius: "inherit", 30584 width: "100%", 30585 height: "100%", 30586 left: 0, 30587 top: 0, 30588 pointerEvents: "none", 30589 zIndex: 0 30590 }, 30591 wrapper: { 30592 opacity: 1 30593 }, 30594 wrapperLeaving: { 30595 opacity: 0, 30596 animation: "mui-ripple-exit " + DURATION + "ms " + theme.transitions.easing.easeInOut 30597 }, 30598 wrapperPulsating: { 30599 position: "absolute", 30600 left: 0, 30601 top: 0, 30602 display: "block", 30603 width: "100%", 30604 height: "100%", 30605 animation: "mui-ripple-pulsate 2500ms " + theme.transitions.easing.easeInOut + " 200ms infinite" 30606 }, 30607 "@keyframes mui-ripple-enter": { 30608 "0%": { 30609 transform: "scale(0)" 30610 }, 30611 "100%": { 30612 transform: "scale(1)" 30613 } 30614 }, 30615 "@keyframes mui-ripple-exit": { 30616 "0%": { 30617 opacity: 1 30618 }, 30619 "100%": { 30620 opacity: 0 30621 } 30622 }, 30623 "@keyframes mui-ripple-pulsate": { 30624 "0%": { 30625 transform: "scale(1)" 30626 }, 30627 "50%": { 30628 transform: "scale(0.92)" 30629 }, 30630 "100%": { 30631 transform: "scale(1)" 30632 } 30633 }, 30634 ripple: { 30635 width: 50, 30636 height: 50, 30637 left: 0, 30638 top: 0, 30639 opacity: 0, 30640 position: "absolute", 30641 borderRadius: "50%", 30642 background: "currentColor" 30643 }, 30644 rippleVisible: { 30645 opacity: .3, 30646 transform: "scale(1)", 30647 animation: "mui-ripple-enter " + DURATION + "ms " + theme.transitions.easing.easeInOut 30648 }, 30649 rippleFast: { 30650 animationDuration: "200ms" 30651 } 30652 }; 30653 }, TouchRipple = function(_React$Component) { 30654 function TouchRipple() { 30655 var _ref, _temp, _this, _ret; 30656 (0, _classCallCheck3.default)(this, TouchRipple); 30657 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 30658 return _temp = _this = (0, _possibleConstructorReturn3.default)(this, (_ref = TouchRipple.__proto__ || (0, 30659 _getPrototypeOf2.default)(TouchRipple)).call.apply(_ref, [ this ].concat(args))), 30660 _this.state = { 30661 nextKey: 0, 30662 ripples: [] 30663 }, _this.ignoringMouseDown = !1, _this.startTimer = null, _this.startTimerCommit = null, 30664 _this.pulsate = function() { 30665 _this.start({}, { 30666 pulsate: !0 30667 }); 30668 }, _this.start = function() { 30669 var event = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, options = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, cb = arguments[2], _options$pulsate = options.pulsate, pulsate = void 0 !== _options$pulsate && _options$pulsate, _options$center = options.center, center = void 0 === _options$center ? _this.props.center || options.pulsate : _options$center, _options$fakeElement = options.fakeElement, fakeElement = void 0 !== _options$fakeElement && _options$fakeElement; 30670 if ("mousedown" === event.type && _this.ignoringMouseDown) return void (_this.ignoringMouseDown = !1); 30671 "touchstart" === event.type && (_this.ignoringMouseDown = !0); 30672 var element = fakeElement ? null : _reactDom2.default.findDOMNode(_this), rect = element ? element.getBoundingClientRect() : { 30673 width: 0, 30674 height: 0, 30675 left: 0, 30676 top: 0 30677 }, rippleX = void 0, rippleY = void 0, rippleSize = void 0; 30678 if (center || 0 === event.clientX && 0 === event.clientY || !event.clientX && !event.touches) rippleX = Math.round(rect.width / 2), 30679 rippleY = Math.round(rect.height / 2); else { 30680 var clientX = event.clientX ? event.clientX : event.touches[0].clientX, clientY = event.clientY ? event.clientY : event.touches[0].clientY; 30681 rippleX = Math.round(clientX - rect.left), rippleY = Math.round(clientY - rect.top); 30682 } 30683 if (center) (rippleSize = Math.sqrt((2 * Math.pow(rect.width, 2) + Math.pow(rect.height, 2)) / 3)) % 2 == 0 && (rippleSize += 1); else { 30684 var sizeX = 2 * Math.max(Math.abs((element ? element.clientWidth : 0) - rippleX), rippleX) + 2, sizeY = 2 * Math.max(Math.abs((element ? element.clientHeight : 0) - rippleY), rippleY) + 2; 30685 rippleSize = Math.sqrt(Math.pow(sizeX, 2) + Math.pow(sizeY, 2)); 30686 } 30687 event.touches ? (_this.startTimerCommit = function() { 30688 _this.startCommit({ 30689 pulsate: pulsate, 30690 rippleX: rippleX, 30691 rippleY: rippleY, 30692 rippleSize: rippleSize, 30693 cb: cb 30694 }); 30695 }, _this.startTimer = setTimeout(function() { 30696 _this.startTimerCommit(), _this.startTimerCommit = null; 30697 }, DELAY_RIPPLE)) : _this.startCommit({ 30698 pulsate: pulsate, 30699 rippleX: rippleX, 30700 rippleY: rippleY, 30701 rippleSize: rippleSize, 30702 cb: cb 30703 }); 30704 }, _this.startCommit = function(params) { 30705 var pulsate = params.pulsate, rippleX = params.rippleX, rippleY = params.rippleY, rippleSize = params.rippleSize, cb = params.cb, ripples = _this.state.ripples; 30706 ripples = [].concat((0, _toConsumableArray3.default)(ripples), [ _react2.default.createElement(_Ripple2.default, { 30707 key: _this.state.nextKey, 30708 classes: _this.props.classes, 30709 timeout: { 30710 exit: DURATION, 30711 enter: DURATION 30712 }, 30713 pulsate: pulsate, 30714 rippleX: rippleX, 30715 rippleY: rippleY, 30716 rippleSize: rippleSize 30717 }) ]), _this.setState({ 30718 nextKey: _this.state.nextKey + 1, 30719 ripples: ripples 30720 }, cb); 30721 }, _this.stop = function(event, cb) { 30722 clearTimeout(_this.startTimer); 30723 var ripples = _this.state.ripples; 30724 if ("touchend" === event.type && _this.startTimerCommit) return event.persist(), 30725 _this.startTimerCommit(), _this.startTimerCommit = null, void (_this.startTimer = setTimeout(function() { 30726 _this.stop(event, cb); 30727 }, 0)); 30728 _this.startTimerCommit = null, ripples && ripples.length && _this.setState({ 30729 ripples: ripples.slice(1) 30730 }, cb); 30731 }, _ret = _temp, (0, _possibleConstructorReturn3.default)(_this, _ret); 30732 } 30733 return (0, _inherits3.default)(TouchRipple, _React$Component), (0, _createClass3.default)(TouchRipple, [ { 30734 key: "componentWillUnmount", 30735 value: function() { 30736 clearTimeout(this.startTimer); 30737 } 30738 }, { 30739 key: "render", 30740 value: function() { 30741 var _props = this.props, classes = (_props.center, _props.classes), className = _props.className, other = (0, 30742 _objectWithoutProperties3.default)(_props, [ "center", "classes", "className" ]); 30743 return _react2.default.createElement(_TransitionGroup2.default, (0, _extends3.default)({ 30744 component: "span", 30745 enter: !0, 30746 exit: !0, 30747 className: (0, _classnames2.default)(classes.root, className) 30748 }, other), this.state.ripples); 30749 } 30750 } ]), TouchRipple; 30751 }(_react2.default.Component); 30752 TouchRipple.propTypes = "production" !== process.env.NODE_ENV ? { 30753 center: _propTypes2.default.bool, 30754 classes: _propTypes2.default.object.isRequired, 30755 className: _propTypes2.default.string 30756 } : {}, TouchRipple.defaultProps = { 30757 center: !1 30758 }, exports.default = (0, _withStyles2.default)(styles, { 30759 flip: !1, 30760 name: "MuiTouchRipple" 30761 })(TouchRipple); 30762 }).call(exports, __webpack_require__(2)); 30763 }, function(module, exports, __webpack_require__) { 30764 "use strict"; 30765 exports.__esModule = !0; 30766 var _from = __webpack_require__(512), _from2 = function(obj) { 30767 return obj && obj.__esModule ? obj : { 30768 default: obj 30769 }; 30770 }(_from); 30771 exports.default = function(arr) { 30772 if (Array.isArray(arr)) { 30773 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; 30774 return arr2; 30775 } 30776 return (0, _from2.default)(arr); 30777 }; 30778 }, function(module, exports, __webpack_require__) { 30779 module.exports = { 30780 default: __webpack_require__(513), 30781 __esModule: !0 30782 }; 30783 }, function(module, exports, __webpack_require__) { 30784 __webpack_require__(155), __webpack_require__(514), module.exports = __webpack_require__(17).Array.from; 30785 }, function(module, exports, __webpack_require__) { 30786 "use strict"; 30787 var ctx = __webpack_require__(51), $export = __webpack_require__(19), toObject = __webpack_require__(65), call = __webpack_require__(239), isArrayIter = __webpack_require__(240), toLength = __webpack_require__(101), createProperty = __webpack_require__(515), getIterFn = __webpack_require__(241); 30788 $export($export.S + $export.F * !__webpack_require__(516)(function(iter) { 30789 Array.from(iter); 30790 }), "Array", { 30791 from: function(arrayLike) { 30792 var length, result, step, iterator, O = toObject(arrayLike), C = "function" == typeof this ? this : Array, aLen = arguments.length, mapfn = aLen > 1 ? arguments[1] : void 0, mapping = void 0 !== mapfn, index = 0, iterFn = getIterFn(O); 30793 if (mapping && (mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : void 0, 2)), void 0 == iterFn || C == Array && isArrayIter(iterFn)) for (length = toLength(O.length), 30794 result = new C(length); length > index; index++) createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]); else for (iterator = iterFn.call(O), 30795 result = new C(); !(step = iterator.next()).done; index++) createProperty(result, index, mapping ? call(iterator, mapfn, [ step.value, index ], !0) : step.value); 30796 return result.length = index, result; 30797 } 30798 }); 30799 }, function(module, exports, __webpack_require__) { 30800 "use strict"; 30801 var $defineProperty = __webpack_require__(22), createDesc = __webpack_require__(75); 30802 module.exports = function(object, index, value) { 30803 index in object ? $defineProperty.f(object, index, createDesc(0, value)) : object[index] = value; 30804 }; 30805 }, function(module, exports, __webpack_require__) { 30806 var ITERATOR = __webpack_require__(21)("iterator"), SAFE_CLOSING = !1; 30807 try { 30808 var riter = [ 7 ][ITERATOR](); 30809 riter.return = function() { 30810 SAFE_CLOSING = !0; 30811 }, Array.from(riter, function() { 30812 throw 2; 30813 }); 30814 } catch (e) {} 30815 module.exports = function(exec, skipClosing) { 30816 if (!skipClosing && !SAFE_CLOSING) return !1; 30817 var safe = !1; 30818 try { 30819 var arr = [ 7 ], iter = arr[ITERATOR](); 30820 iter.next = function() { 30821 return { 30822 done: safe = !0 30823 }; 30824 }, arr[ITERATOR] = function() { 30825 return iter; 30826 }, exec(arr); 30827 } catch (e) {} 30828 return safe; 30829 }; 30830 }, function(module, exports, __webpack_require__) { 30831 "use strict"; 30832 function getChildMapping(children, mapFn) { 30833 var mapper = function(child) { 30834 return mapFn && (0, _react.isValidElement)(child) ? mapFn(child) : child; 30835 }, result = Object.create(null); 30836 return children && _react.Children.map(children, function(c) { 30837 return c; 30838 }).forEach(function(child) { 30839 result[child.key] = mapper(child); 30840 }), result; 30841 } 30842 function mergeChildMappings(prev, next) { 30843 function getValueForKey(key) { 30844 return key in next ? next[key] : prev[key]; 30845 } 30846 prev = prev || {}, next = next || {}; 30847 var nextKeysPending = Object.create(null), pendingKeys = []; 30848 for (var prevKey in prev) prevKey in next ? pendingKeys.length && (nextKeysPending[prevKey] = pendingKeys, 30849 pendingKeys = []) : pendingKeys.push(prevKey); 30850 var i = void 0, childMapping = {}; 30851 for (var nextKey in next) { 30852 if (nextKeysPending[nextKey]) for (i = 0; i < nextKeysPending[nextKey].length; i++) { 30853 var pendingNextKey = nextKeysPending[nextKey][i]; 30854 childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey); 30855 } 30856 childMapping[nextKey] = getValueForKey(nextKey); 30857 } 30858 for (i = 0; i < pendingKeys.length; i++) childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]); 30859 return childMapping; 30860 } 30861 exports.__esModule = !0, exports.getChildMapping = getChildMapping, exports.mergeChildMappings = mergeChildMappings; 30862 var _react = __webpack_require__(0); 30863 }, function(module, exports, __webpack_require__) { 30864 "use strict"; 30865 (function(process) { 30866 function _interopRequireDefault(obj) { 30867 return obj && obj.__esModule ? obj : { 30868 default: obj 30869 }; 30870 } 30871 Object.defineProperty(exports, "__esModule", { 30872 value: !0 30873 }); 30874 var _extends2 = __webpack_require__(6), _extends3 = _interopRequireDefault(_extends2), _defineProperty2 = __webpack_require__(12), _defineProperty3 = _interopRequireDefault(_defineProperty2), _objectWithoutProperties2 = __webpack_require__(7), _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2), _getPrototypeOf = __webpack_require__(26), _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf), _classCallCheck2 = __webpack_require__(27), _classCallCheck3 = _interopRequireDefault(_classCallCheck2), _createClass2 = __webpack_require__(28), _createClass3 = _interopRequireDefault(_createClass2), _possibleConstructorReturn2 = __webpack_require__(29), _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2), _inherits2 = __webpack_require__(30), _inherits3 = _interopRequireDefault(_inherits2), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _classnames = __webpack_require__(3), _classnames2 = _interopRequireDefault(_classnames), _Transition = __webpack_require__(166), _Transition2 = _interopRequireDefault(_Transition), Ripple = function(_React$Component) { 30875 function Ripple() { 30876 var _ref, _temp, _this, _ret; 30877 (0, _classCallCheck3.default)(this, Ripple); 30878 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 30879 return _temp = _this = (0, _possibleConstructorReturn3.default)(this, (_ref = Ripple.__proto__ || (0, 30880 _getPrototypeOf2.default)(Ripple)).call.apply(_ref, [ this ].concat(args))), _this.state = { 30881 rippleVisible: !1, 30882 rippleLeaving: !1 30883 }, _this.handleEnter = function() { 30884 _this.setState({ 30885 rippleVisible: !0 30886 }); 30887 }, _this.handleExit = function() { 30888 _this.setState({ 30889 rippleLeaving: !0 30890 }); 30891 }, _ret = _temp, (0, _possibleConstructorReturn3.default)(_this, _ret); 30892 } 30893 return (0, _inherits3.default)(Ripple, _React$Component), (0, _createClass3.default)(Ripple, [ { 30894 key: "render", 30895 value: function() { 30896 var _classNames, _classNames2, _props = this.props, classes = _props.classes, classNameProp = _props.className, pulsate = _props.pulsate, rippleX = _props.rippleX, rippleY = _props.rippleY, rippleSize = _props.rippleSize, other = (0, 30897 _objectWithoutProperties3.default)(_props, [ "classes", "className", "pulsate", "rippleX", "rippleY", "rippleSize" ]), _state = this.state, rippleVisible = _state.rippleVisible, rippleLeaving = _state.rippleLeaving, className = (0, 30898 _classnames2.default)(classes.wrapper, (_classNames = {}, (0, _defineProperty3.default)(_classNames, classes.wrapperLeaving, rippleLeaving), 30899 (0, _defineProperty3.default)(_classNames, classes.wrapperPulsating, pulsate), _classNames), classNameProp), rippleClassName = (0, 30900 _classnames2.default)(classes.ripple, (_classNames2 = {}, (0, _defineProperty3.default)(_classNames2, classes.rippleVisible, rippleVisible), 30901 (0, _defineProperty3.default)(_classNames2, classes.rippleFast, pulsate), _classNames2)), rippleStyles = { 30902 width: rippleSize, 30903 height: rippleSize, 30904 top: -rippleSize / 2 + rippleY, 30905 left: -rippleSize / 2 + rippleX 30906 }; 30907 return _react2.default.createElement(_Transition2.default, (0, _extends3.default)({ 30908 onEnter: this.handleEnter, 30909 onExit: this.handleExit 30910 }, other), _react2.default.createElement("span", { 30911 className: className 30912 }, _react2.default.createElement("span", { 30913 className: rippleClassName, 30914 style: rippleStyles 30915 }))); 30916 } 30917 } ]), Ripple; 30918 }(_react2.default.Component); 30919 Ripple.propTypes = "production" !== process.env.NODE_ENV ? { 30920 classes: _propTypes2.default.object.isRequired, 30921 className: _propTypes2.default.string, 30922 pulsate: _propTypes2.default.bool, 30923 rippleSize: _propTypes2.default.number, 30924 rippleX: _propTypes2.default.number, 30925 rippleY: _propTypes2.default.number 30926 } : {}, Ripple.defaultProps = { 30927 pulsate: !1 30928 }, exports.default = Ripple; 30929 }).call(exports, __webpack_require__(2)); 30930 }, function(module, exports, __webpack_require__) { 30931 "use strict"; 30932 function transitionTimeout(transitionType) { 30933 var timeoutPropName = "transition" + transitionType + "Timeout", enabledPropName = "transition" + transitionType; 30934 return function(props) { 30935 if (props[enabledPropName]) { 30936 if (null == props[timeoutPropName]) return new Error(timeoutPropName + " wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout了解更多信息。“); 30937 if ("number" != typeof props[timeoutPropName]) return new Error(timeoutPropName + " must be a number (in milliseconds)"); 30938 } 30939 return null; 30940 }; 30941 } 30942 exports.__esModule = !0, exports.classNamesShape = exports.timeoutsShape = void 0, 30943 exports.transitionTimeout = transitionTimeout; 30944 var _propTypes = __webpack_require__(1), _propTypes2 = function(obj) { 30945 return obj && obj.__esModule ? obj : { 30946 default: obj 30947 }; 30948 }(_propTypes); 30949 exports.timeoutsShape = _propTypes2.default.oneOfType([ _propTypes2.default.number, _propTypes2.default.shape({ 30950 enter: _propTypes2.default.number, 30951 exit: _propTypes2.default.number 30952 }).isRequired ]), exports.classNamesShape = _propTypes2.default.oneOfType([ _propTypes2.default.string, _propTypes2.default.shape({ 30953 enter: _propTypes2.default.string, 30954 exit: _propTypes2.default.string, 30955 active: _propTypes2.default.string 30956 }), _propTypes2.default.shape({ 30957 enter: _propTypes2.default.string, 30958 enterActive: _propTypes2.default.string, 30959 exit: _propTypes2.default.string, 30960 exitActive: _propTypes2.default.string 30961 }) ]); 30962 }, function(module, exports, __webpack_require__) { 30963 "use strict"; 30964 function createRippleHandler(instance, eventName, action, cb) { 30965 return function(event) { 30966 return cb && cb.call(instance, event), !event.defaultPrevented && (instance.ripple && instance.ripple[action](event), 30967 instance.props && "function" == typeof instance.props["on" + eventName] && instance.props["on" + eventName](event), 30968 !0); 30969 }; 30970 } 30971 Object.defineProperty(exports, "__esModule", { 30972 value: !0 30973 }), exports.default = createRippleHandler; 30974 }, function(module, exports, __webpack_require__) { 30975 "use strict"; 30976 (function(process) { 30977 function _interopRequireDefault(obj) { 30978 return obj && obj.__esModule ? obj : { 30979 default: obj 30980 }; 30981 } 30982 function SvgIcon(props) { 30983 var _classNames, children = props.children, classes = props.classes, classNameProp = props.className, color = props.color, fontSize = props.fontSize, nativeColor = props.nativeColor, titleAccess = props.titleAccess, viewBox = props.viewBox, other = (0, 30984 _objectWithoutProperties3.default)(props, [ "children", "classes", "className", "color", "fontSize", "nativeColor", "titleAccess", "viewBox" ]), className = (0, 30985 _classnames2.default)(classes.root, (_classNames = {}, (0, _defineProperty3.default)(_classNames, classes["color" + (0, 30986 _helpers.capitalize)(color)], "inherit" !== color), (0, _defineProperty3.default)(_classNames, classes.fontSize, fontSize), 30987 _classNames), classNameProp); 30988 return _react2.default.createElement("svg", (0, _extends3.default)({ 30989 className: className, 30990 focusable: "false", 30991 viewBox: viewBox, 30992 color: nativeColor, 30993 "aria-hidden": titleAccess ? "false" : "true" 30994 }, other), titleAccess ? _react2.default.createElement("title", null, titleAccess) : null, children); 30995 } 30996 Object.defineProperty(exports, "__esModule", { 30997 value: !0 30998 }), exports.styles = void 0; 30999 var _extends2 = __webpack_require__(6), _extends3 = _interopRequireDefault(_extends2), _defineProperty2 = __webpack_require__(12), _defineProperty3 = _interopRequireDefault(_defineProperty2), _objectWithoutProperties2 = __webpack_require__(7), _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _classnames = __webpack_require__(3), _classnames2 = _interopRequireDefault(_classnames), _withStyles = __webpack_require__(10), _withStyles2 = _interopRequireDefault(_withStyles), _helpers = __webpack_require__(56), styles = exports.styles = function(theme) { 31000 return { 31001 root: { 31002 display: "inline-block", 31003 fill: "currentColor", 31004 height: 24, 31005 width: 24, 31006 userSelect: "none", 31007 flexShrink: 0, 31008 transition: theme.transitions.create("fill", { 31009 duration: theme.transitions.duration.shorter 31010 }) 31011 }, 31012 colorPrimary: { 31013 color: theme.palette.primary.main 31014 }, 31015 colorSecondary: { 31016 color: theme.palette.secondary.main 31017 }, 31018 colorAction: { 31019 color: theme.palette.action.active 31020 }, 31021 colorDisabled: { 31022 color: theme.palette.action.disabled 31023 }, 31024 colorError: { 31025 color: theme.palette.error.main 31026 }, 31027 fontSize: { 31028 width: "1em", 31029 height: "1em" 31030 } 31031 }; 31032 }; 31033 SvgIcon.propTypes = "production" !== process.env.NODE_ENV ? { 31034 children: _propTypes2.default.node.isRequired, 31035 classes: _propTypes2.default.object.isRequired, 31036 className: _propTypes2.default.string, 31037 color: _propTypes2.default.oneOf([ "action", "disabled", "error", "inherit", "primary", "secondary" ]), 31038 fontSize: _propTypes2.default.bool, 31039 nativeColor: _propTypes2.default.string, 31040 titleAccess: _propTypes2.default.string, 31041 viewBox: _propTypes2.default.string 31042 } : {}, SvgIcon.defaultProps = { 31043 color: "inherit", 31044 fontSize: !1, 31045 viewBox: "0 0 24 24" 31046 }, SvgIcon.muiName = "SvgIcon", exports.default = (0, _withStyles2.default)(styles, { 31047 name: "MuiSvgIcon" 31048 })(SvgIcon); 31049 }).call(exports, __webpack_require__(2)); 31050 }, function(module, exports, __webpack_require__) { 31051 "use strict"; 31052 (function(process) { 31053 function _interopRequireDefault(obj) { 31054 return obj && obj.__esModule ? obj : { 31055 default: obj 31056 }; 31057 } 31058 function Icon(props) { 31059 var _classNames, children = props.children, classes = props.classes, classNameProp = props.className, color = props.color, fontSize = props.fontSize, other = (0, 31060 _objectWithoutProperties3.default)(props, [ "children", "classes", "className", "color", "fontSize" ]), className = (0, 31061 _classnames2.default)("material-icons", classes.root, (_classNames = {}, (0, _defineProperty3.default)(_classNames, classes["color" + (0, 31062 _helpers.capitalize)(color)], "inherit" !== color), (0, _defineProperty3.default)(_classNames, classes.fontSize, fontSize), 31063 _classNames), classNameProp); 31064 return _react2.default.createElement("span", (0, _extends3.default)({ 31065 className: className, 31066 "aria-hidden": "true" 31067 }, other), children); 31068 } 31069 Object.defineProperty(exports, "__esModule", { 31070 value: !0 31071 }), exports.styles = void 0; 31072 var _extends2 = __webpack_require__(6), _extends3 = _interopRequireDefault(_extends2), _defineProperty2 = __webpack_require__(12), _defineProperty3 = _interopRequireDefault(_defineProperty2), _objectWithoutProperties2 = __webpack_require__(7), _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _classnames = __webpack_require__(3), _classnames2 = _interopRequireDefault(_classnames), _withStyles = __webpack_require__(10), _withStyles2 = _interopRequireDefault(_withStyles), _helpers = __webpack_require__(56), styles = exports.styles = function(theme) { 31073 return { 31074 root: { 31075 userSelect: "none" 31076 }, 31077 colorPrimary: { 31078 color: theme.palette.primary.main 31079 }, 31080 colorSecondary: { 31081 color: theme.palette.secondary.main 31082 }, 31083 colorAction: { 31084 color: theme.palette.action.active 31085 }, 31086 colorDisabled: { 31087 color: theme.palette.action.disabled 31088 }, 31089 colorError: { 31090 color: theme.palette.error.main 31091 }, 31092 fontSize: { 31093 width: "1em", 31094 height: "1em" 31095 } 31096 }; 31097 }; 31098 Icon.propTypes = "production" !== process.env.NODE_ENV ? { 31099 children: _propTypes2.default.node, 31100 classes: _propTypes2.default.object.isRequired, 31101 className: _propTypes2.default.string, 31102 color: _propTypes2.default.oneOf([ "inherit", "secondary", "action", "disabled", "error", "primary" ]), 31103 fontSize: _propTypes2.default.bool 31104 } : {}, Icon.defaultProps = { 31105 color: "inherit", 31106 fontSize: !1 31107 }, Icon.muiName = "Icon", exports.default = (0, _withStyles2.default)(styles, { 31108 name: "MuiIcon" 31109 })(Icon); 31110 }).call(exports, __webpack_require__(2)); 31111 }, function(module, exports, __webpack_require__) { 31112 "use strict"; 31113 (function(global) { 31114 function _interopRequireDefault(obj) { 31115 return obj && obj.__esModule ? obj : { 31116 default: obj 31117 }; 31118 } 31119 Object.defineProperty(exports, "__esModule", { 31120 value: !0 31121 }); 31122 var _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _pure = __webpack_require__(524), _pure2 = _interopRequireDefault(_pure), _SvgIcon = __webpack_require__(257), _SvgIcon2 = _interopRequireDefault(_SvgIcon), SvgIconCustom = global.__MUI_SvgIcon__ || _SvgIcon2.default, _ref = _react2.default.createElement("path", { 31123 d: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" 31124 }), Menu = function(props) { 31125 return _react2.default.createElement(SvgIconCustom, props, _ref); 31126 }; 31127 Menu = (0, _pure2.default)(Menu), Menu.muiName = "SvgIcon", exports.default = Menu; 31128 }).call(exports, __webpack_require__(40)); 31129 }, function(module, exports, __webpack_require__) { 31130 "use strict"; 31131 (function(process) { 31132 function _interopRequireDefault(obj) { 31133 return obj && obj.__esModule ? obj : { 31134 default: obj 31135 }; 31136 } 31137 exports.__esModule = !0; 31138 var _shouldUpdate = __webpack_require__(525), _shouldUpdate2 = _interopRequireDefault(_shouldUpdate), _shallowEqual = __webpack_require__(527), _shallowEqual2 = _interopRequireDefault(_shallowEqual), _setDisplayName = __webpack_require__(259), _setDisplayName2 = _interopRequireDefault(_setDisplayName), _wrapDisplayName = __webpack_require__(79), _wrapDisplayName2 = _interopRequireDefault(_wrapDisplayName), pure = function(BaseComponent) { 31139 var hoc = (0, _shouldUpdate2.default)(function(props, nextProps) { 31140 return !(0, _shallowEqual2.default)(props, nextProps); 31141 }); 31142 return "production" !== process.env.NODE_ENV ? (0, _setDisplayName2.default)((0, 31143 _wrapDisplayName2.default)(BaseComponent, "pure"))(hoc(BaseComponent)) : hoc(BaseComponent); 31144 }; 31145 exports.default = pure; 31146 }).call(exports, __webpack_require__(2)); 31147 }, function(module, exports, __webpack_require__) { 31148 "use strict"; 31149 (function(process) { 31150 function _interopRequireDefault(obj) { 31151 return obj && obj.__esModule ? obj : { 31152 default: obj 31153 }; 31154 } 31155 function _classCallCheck(instance, Constructor) { 31156 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 31157 } 31158 function _possibleConstructorReturn(self, call) { 31159 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 31160 return !call || "object" != typeof call && "function" != typeof call ? self : call; 31161 } 31162 function _inherits(subClass, superClass) { 31163 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 31164 subClass.prototype = Object.create(superClass && superClass.prototype, { 31165 constructor: { 31166 value: subClass, 31167 enumerable: !1, 31168 writable: !0, 31169 configurable: !0 31170 } 31171 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 31172 } 31173 exports.__esModule = !0; 31174 var _react = __webpack_require__(0), _setDisplayName = __webpack_require__(259), _setDisplayName2 = _interopRequireDefault(_setDisplayName), _wrapDisplayName = __webpack_require__(79), _wrapDisplayName2 = _interopRequireDefault(_wrapDisplayName), shouldUpdate = function(test) { 31175 return function(BaseComponent) { 31176 var factory = (0, _react.createFactory)(BaseComponent), ShouldUpdate = function(_Component) { 31177 function ShouldUpdate() { 31178 return _classCallCheck(this, ShouldUpdate), _possibleConstructorReturn(this, _Component.apply(this, arguments)); 31179 } 31180 return _inherits(ShouldUpdate, _Component), ShouldUpdate.prototype.shouldComponentUpdate = function(nextProps) { 31181 return test(this.props, nextProps); 31182 }, ShouldUpdate.prototype.render = function() { 31183 return factory(this.props); 31184 }, ShouldUpdate; 31185 }(_react.Component); 31186 return "production" !== process.env.NODE_ENV ? (0, _setDisplayName2.default)((0, 31187 _wrapDisplayName2.default)(BaseComponent, "shouldUpdate"))(ShouldUpdate) : ShouldUpdate; 31188 }; 31189 }; 31190 exports.default = shouldUpdate; 31191 }).call(exports, __webpack_require__(2)); 31192 }, function(module, exports, __webpack_require__) { 31193 "use strict"; 31194 exports.__esModule = !0; 31195 var setStatic = function(key, value) { 31196 return function(BaseComponent) { 31197 return BaseComponent[key] = value, BaseComponent; 31198 }; 31199 }; 31200 exports.default = setStatic; 31201 }, function(module, exports, __webpack_require__) { 31202 "use strict"; 31203 exports.__esModule = !0; 31204 var _shallowEqual = __webpack_require__(100), _shallowEqual2 = function(obj) { 31205 return obj && obj.__esModule ? obj : { 31206 default: obj 31207 }; 31208 }(_shallowEqual); 31209 exports.default = _shallowEqual2.default; 31210 }, function(module, exports, __webpack_require__) { 31211 "use strict"; 31212 (function(process) { 31213 function _interopRequireDefault(obj) { 31214 return obj && obj.__esModule ? obj : { 31215 default: obj 31216 }; 31217 } 31218 function Typography(props) { 31219 var _classNames, align = props.align, classes = props.classes, classNameProp = props.className, componentProp = props.component, color = props.color, gutterBottom = props.gutterBottom, headlineMapping = props.headlineMapping, noWrap = props.noWrap, paragraph = props.paragraph, variant = props.variant, other = (0, 31220 _objectWithoutProperties3.default)(props, [ "align", "classes", "className", "component", "color", "gutterBottom", "headlineMapping", "noWrap", "paragraph", "variant" ]), className = (0, 31221 _classnames2.default)(classes.root, classes[variant], (_classNames = {}, (0, _defineProperty3.default)(_classNames, classes["color" + (0, 31222 _helpers.capitalize)(color)], "default" !== color), (0, _defineProperty3.default)(_classNames, classes.noWrap, noWrap), 31223 (0, _defineProperty3.default)(_classNames, classes.gutterBottom, gutterBottom), 31224 (0, _defineProperty3.default)(_classNames, classes.paragraph, paragraph), (0, _defineProperty3.default)(_classNames, classes["align" + (0, 31225 _helpers.capitalize)(align)], "inherit" !== align), _classNames), classNameProp), Component = componentProp || (paragraph ? "p" : headlineMapping[variant]) || "span"; 31226 return _react2.default.createElement(Component, (0, _extends3.default)({ 31227 className: className 31228 }, other)); 31229 } 31230 Object.defineProperty(exports, "__esModule", { 31231 value: !0 31232 }), exports.styles = void 0; 31233 var _extends2 = __webpack_require__(6), _extends3 = _interopRequireDefault(_extends2), _defineProperty2 = __webpack_require__(12), _defineProperty3 = _interopRequireDefault(_defineProperty2), _objectWithoutProperties2 = __webpack_require__(7), _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _classnames = __webpack_require__(3), _classnames2 = _interopRequireDefault(_classnames), _withStyles = __webpack_require__(10), _withStyles2 = _interopRequireDefault(_withStyles), _helpers = __webpack_require__(56), styles = exports.styles = function(theme) { 31234 return { 31235 root: { 31236 display: "block", 31237 margin: 0 31238 }, 31239 display4: theme.typography.display4, 31240 display3: theme.typography.display3, 31241 display2: theme.typography.display2, 31242 display1: theme.typography.display1, 31243 headline: theme.typography.headline, 31244 title: theme.typography.title, 31245 subheading: theme.typography.subheading, 31246 body2: theme.typography.body2, 31247 body1: theme.typography.body1, 31248 caption: theme.typography.caption, 31249 button: theme.typography.button, 31250 alignLeft: { 31251 textAlign: "left" 31252 }, 31253 alignCenter: { 31254 textAlign: "center" 31255 }, 31256 alignRight: { 31257 textAlign: "right" 31258 }, 31259 alignJustify: { 31260 textAlign: "justify" 31261 }, 31262 noWrap: { 31263 overflow: "hidden", 31264 textOverflow: "ellipsis", 31265 whiteSpace: "nowrap" 31266 }, 31267 gutterBottom: { 31268 marginBottom: "0.35em" 31269 }, 31270 paragraph: { 31271 marginBottom: 2 * theme.spacing.unit 31272 }, 31273 colorInherit: { 31274 color: "inherit" 31275 }, 31276 colorPrimary: { 31277 color: theme.palette.primary.main 31278 }, 31279 colorSecondary: { 31280 color: theme.palette.secondary.main 31281 }, 31282 colorTextSecondary: { 31283 color: theme.palette.text.secondary 31284 }, 31285 colorError: { 31286 color: theme.palette.error.main 31287 } 31288 }; 31289 }; 31290 Typography.propTypes = "production" !== process.env.NODE_ENV ? { 31291 align: _propTypes2.default.oneOf([ "inherit", "left", "center", "right", "justify" ]), 31292 children: _propTypes2.default.node, 31293 classes: _propTypes2.default.object.isRequired, 31294 className: _propTypes2.default.string, 31295 color: _propTypes2.default.oneOf([ "inherit", "primary", "textSecondary", "secondary", "error", "default" ]), 31296 component: _propTypes2.default.oneOfType([ _propTypes2.default.string, _propTypes2.default.func ]), 31297 gutterBottom: _propTypes2.default.bool, 31298 headlineMapping: _propTypes2.default.object, 31299 noWrap: _propTypes2.default.bool, 31300 paragraph: _propTypes2.default.bool, 31301 variant: _propTypes2.default.oneOf([ "display4", "display3", "display2", "display1", "headline", "title", "subheading", "body2", "body1", "caption", "button" ]) 31302 } : {}, Typography.defaultProps = { 31303 align: "inherit", 31304 color: "default", 31305 gutterBottom: !1, 31306 headlineMapping: { 31307 display4: "h1", 31308 display3: "h1", 31309 display2: "h1", 31310 display1: "h1", 31311 headline: "h1", 31312 title: "h2", 31313 subheading: "h3", 31314 body2: "aside", 31315 body1: "p" 31316 }, 31317 noWrap: !1, 31318 paragraph: !1, 31319 variant: "body1" 31320 }, exports.default = (0, _withStyles2.default)(styles, { 31321 name: "MuiTypography" 31322 })(Typography); 31323 }).call(exports, __webpack_require__(2)); 31324 }, function(module, exports, __webpack_require__) { 31325 "use strict"; 31326 function _interopRequireDefault(obj) { 31327 return obj && obj.__esModule ? obj : { 31328 default: obj 31329 }; 31330 } 31331 function _classCallCheck(instance, Constructor) { 31332 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 31333 } 31334 function _possibleConstructorReturn(self, call) { 31335 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 31336 return !call || "object" != typeof call && "function" != typeof call ? self : call; 31337 } 31338 function _inherits(subClass, superClass) { 31339 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 31340 subClass.prototype = Object.create(superClass && superClass.prototype, { 31341 constructor: { 31342 value: subClass, 31343 enumerable: !1, 31344 writable: !0, 31345 configurable: !0 31346 } 31347 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 31348 } 31349 Object.defineProperty(exports, "__esModule", { 31350 value: !0 31351 }); 31352 var _createClass = function() { 31353 function defineProperties(target, props) { 31354 for (var i = 0; i < props.length; i++) { 31355 var descriptor = props[i]; 31356 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 31357 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 31358 } 31359 } 31360 return function(Constructor, protoProps, staticProps) { 31361 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 31362 Constructor; 31363 }; 31364 }(), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _SideBar = __webpack_require__(530), _SideBar2 = _interopRequireDefault(_SideBar), _Main = __webpack_require__(549), _Main2 = _interopRequireDefault(_Main), styles = { 31365 body: { 31366 display: "flex", 31367 width: "100%", 31368 height: "92%" 31369 } 31370 }, Body = function(_Component) { 31371 function Body() { 31372 return _classCallCheck(this, Body), _possibleConstructorReturn(this, (Body.__proto__ || Object.getPrototypeOf(Body)).apply(this, arguments)); 31373 } 31374 return _inherits(Body, _Component), _createClass(Body, [ { 31375 key: "render", 31376 value: function() { 31377 return _react2.default.createElement("div", { 31378 style: styles.body 31379 }, _react2.default.createElement(_SideBar2.default, { 31380 opened: this.props.opened, 31381 changeContent: this.props.changeContent 31382 }), _react2.default.createElement(_Main2.default, { 31383 active: this.props.active, 31384 content: this.props.content, 31385 shouldUpdate: this.props.shouldUpdate, 31386 send: this.props.send 31387 })); 31388 } 31389 } ]), Body; 31390 }(_react.Component); 31391 exports.default = Body; 31392 }, function(module, exports, __webpack_require__) { 31393 "use strict"; 31394 function _interopRequireDefault(obj) { 31395 return obj && obj.__esModule ? obj : { 31396 default: obj 31397 }; 31398 } 31399 function _classCallCheck(instance, Constructor) { 31400 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 31401 } 31402 function _possibleConstructorReturn(self, call) { 31403 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 31404 return !call || "object" != typeof call && "function" != typeof call ? self : call; 31405 } 31406 function _inherits(subClass, superClass) { 31407 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 31408 subClass.prototype = Object.create(superClass && superClass.prototype, { 31409 constructor: { 31410 value: subClass, 31411 enumerable: !1, 31412 writable: !0, 31413 configurable: !0 31414 } 31415 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 31416 } 31417 Object.defineProperty(exports, "__esModule", { 31418 value: !0 31419 }); 31420 var _extends = Object.assign || function(target) { 31421 for (var i = 1; i < arguments.length; i++) { 31422 var source = arguments[i]; 31423 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 31424 } 31425 return target; 31426 }, _createClass = function() { 31427 function defineProperties(target, props) { 31428 for (var i = 0; i < props.length; i++) { 31429 var descriptor = props[i]; 31430 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 31431 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 31432 } 31433 } 31434 return function(Constructor, protoProps, staticProps) { 31435 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 31436 Constructor; 31437 }; 31438 }(), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _withStyles = __webpack_require__(10), _withStyles2 = _interopRequireDefault(_withStyles), _List = __webpack_require__(260), _List2 = _interopRequireDefault(_List), _Icon = __webpack_require__(258), _Icon2 = _interopRequireDefault(_Icon), _Transition = __webpack_require__(166), _Transition2 = _interopRequireDefault(_Transition), _reactFa = __webpack_require__(538), _common = __webpack_require__(81), styles = { 31439 menu: { 31440 default: { 31441 transition: "margin-left " + _common.DURATION + "ms" 31442 }, 31443 transition: { 31444 entered: { 31445 marginLeft: -200 31446 } 31447 } 31448 } 31449 }, themeStyles = function(theme) { 31450 return { 31451 list: { 31452 background: theme.palette.grey[900] 31453 }, 31454 listItem: { 31455 minWidth: 7 * theme.spacing.unit 31456 }, 31457 icon: { 31458 fontSize: 3 * theme.spacing.unit 31459 } 31460 }; 31461 }, SideBar = function(_Component) { 31462 function SideBar() { 31463 var _ref, _temp, _this, _ret; 31464 _classCallCheck(this, SideBar); 31465 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 31466 return _temp = _this = _possibleConstructorReturn(this, (_ref = SideBar.__proto__ || Object.getPrototypeOf(SideBar)).call.apply(_ref, [ this ].concat(args))), 31467 _this.clickOn = function(menu) { 31468 return function(event) { 31469 event.preventDefault(), _this.props.changeContent(menu); 31470 }; 31471 }, _this.menuItems = function(transitionState) { 31472 var classes = _this.props.classes, children = []; 31473 return _common.MENU.forEach(function(menu) { 31474 children.push(_react2.default.createElement(_List.ListItem, { 31475 button: !0, 31476 key: menu.id, 31477 onClick: _this.clickOn(menu.id), 31478 className: classes.listItem 31479 }, _react2.default.createElement(_List.ListItemIcon, null, _react2.default.createElement(_Icon2.default, { 31480 className: classes.icon 31481 }, _react2.default.createElement(_reactFa.Icon, { 31482 name: menu.icon 31483 }))), _react2.default.createElement(_List.ListItemText, { 31484 primary: menu.title, 31485 style: _extends({}, styles.menu.default, styles.menu.transition[transitionState], { 31486 padding: 0 31487 }) 31488 }))); 31489 }), children; 31490 }, _this.menu = function(transitionState) { 31491 return _react2.default.createElement("div", { 31492 className: _this.props.classes.list 31493 }, _react2.default.createElement(_List2.default, null, _this.menuItems(transitionState))); 31494 }, _ret = _temp, _possibleConstructorReturn(_this, _ret); 31495 } 31496 return _inherits(SideBar, _Component), _createClass(SideBar, [ { 31497 key: "shouldComponentUpdate", 31498 value: function(nextProps) { 31499 return nextProps.opened !== this.props.opened; 31500 } 31501 }, { 31502 key: "render", 31503 value: function() { 31504 return _react2.default.createElement(_Transition2.default, { 31505 mountOnEnter: !0, 31506 in: this.props.opened, 31507 timeout: { 31508 enter: _common.DURATION 31509 } 31510 }, this.menu); 31511 } 31512 } ]), SideBar; 31513 }(_react.Component); 31514 exports.default = (0, _withStyles2.default)(themeStyles)(SideBar); 31515 }, function(module, exports, __webpack_require__) { 31516 "use strict"; 31517 (function(process) { 31518 function _interopRequireDefault(obj) { 31519 return obj && obj.__esModule ? obj : { 31520 default: obj 31521 }; 31522 } 31523 Object.defineProperty(exports, "__esModule", { 31524 value: !0 31525 }), exports.styles = void 0; 31526 var _extends2 = __webpack_require__(6), _extends3 = _interopRequireDefault(_extends2), _defineProperty2 = __webpack_require__(12), _defineProperty3 = _interopRequireDefault(_defineProperty2), _objectWithoutProperties2 = __webpack_require__(7), _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2), _getPrototypeOf = __webpack_require__(26), _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf), _classCallCheck2 = __webpack_require__(27), _classCallCheck3 = _interopRequireDefault(_classCallCheck2), _createClass2 = __webpack_require__(28), _createClass3 = _interopRequireDefault(_createClass2), _possibleConstructorReturn2 = __webpack_require__(29), _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2), _inherits2 = __webpack_require__(30), _inherits3 = _interopRequireDefault(_inherits2), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _classnames = __webpack_require__(3), _classnames2 = _interopRequireDefault(_classnames), _withStyles = __webpack_require__(10), _withStyles2 = _interopRequireDefault(_withStyles), styles = exports.styles = function(theme) { 31527 return { 31528 root: { 31529 listStyle: "none", 31530 margin: 0, 31531 padding: 0, 31532 position: "relative" 31533 }, 31534 padding: { 31535 paddingTop: theme.spacing.unit, 31536 paddingBottom: theme.spacing.unit 31537 }, 31538 dense: { 31539 paddingTop: theme.spacing.unit / 2, 31540 paddingBottom: theme.spacing.unit / 2 31541 }, 31542 subheader: { 31543 paddingTop: 0 31544 } 31545 }; 31546 }, List = function(_React$Component) { 31547 function List() { 31548 return (0, _classCallCheck3.default)(this, List), (0, _possibleConstructorReturn3.default)(this, (List.__proto__ || (0, 31549 _getPrototypeOf2.default)(List)).apply(this, arguments)); 31550 } 31551 return (0, _inherits3.default)(List, _React$Component), (0, _createClass3.default)(List, [ { 31552 key: "getChildContext", 31553 value: function() { 31554 return { 31555 dense: this.props.dense 31556 }; 31557 } 31558 }, { 31559 key: "render", 31560 value: function() { 31561 var _classNames, _props = this.props, children = _props.children, classes = _props.classes, classNameProp = _props.className, Component = _props.component, dense = _props.dense, disablePadding = _props.disablePadding, subheader = _props.subheader, other = (0, 31562 _objectWithoutProperties3.default)(_props, [ "children", "classes", "className", "component", "dense", "disablePadding", "subheader" ]), className = (0, 31563 _classnames2.default)(classes.root, (_classNames = {}, (0, _defineProperty3.default)(_classNames, classes.dense, dense && !disablePadding), 31564 (0, _defineProperty3.default)(_classNames, classes.padding, !disablePadding), (0, 31565 _defineProperty3.default)(_classNames, classes.subheader, subheader), _classNames), classNameProp); 31566 return _react2.default.createElement(Component, (0, _extends3.default)({ 31567 className: className 31568 }, other), subheader, children); 31569 } 31570 } ]), List; 31571 }(_react2.default.Component); 31572 List.propTypes = "production" !== process.env.NODE_ENV ? { 31573 children: _propTypes2.default.node, 31574 classes: _propTypes2.default.object.isRequired, 31575 className: _propTypes2.default.string, 31576 component: _propTypes2.default.oneOfType([ _propTypes2.default.string, _propTypes2.default.func ]), 31577 dense: _propTypes2.default.bool, 31578 disablePadding: _propTypes2.default.bool, 31579 subheader: _propTypes2.default.node 31580 } : {}, List.defaultProps = { 31581 component: "ul", 31582 dense: !1, 31583 disablePadding: !1 31584 }, List.childContextTypes = { 31585 dense: _propTypes2.default.bool 31586 }, exports.default = (0, _withStyles2.default)(styles, { 31587 name: "MuiList" 31588 })(List); 31589 }).call(exports, __webpack_require__(2)); 31590 }, function(module, exports, __webpack_require__) { 31591 "use strict"; 31592 (function(process) { 31593 function _interopRequireDefault(obj) { 31594 return obj && obj.__esModule ? obj : { 31595 default: obj 31596 }; 31597 } 31598 Object.defineProperty(exports, "__esModule", { 31599 value: !0 31600 }), exports.styles = void 0; 31601 var _extends2 = __webpack_require__(6), _extends3 = _interopRequireDefault(_extends2), _defineProperty2 = __webpack_require__(12), _defineProperty3 = _interopRequireDefault(_defineProperty2), _objectWithoutProperties2 = __webpack_require__(7), _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2), _getPrototypeOf = __webpack_require__(26), _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf), _classCallCheck2 = __webpack_require__(27), _classCallCheck3 = _interopRequireDefault(_classCallCheck2), _createClass2 = __webpack_require__(28), _createClass3 = _interopRequireDefault(_createClass2), _possibleConstructorReturn2 = __webpack_require__(29), _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2), _inherits2 = __webpack_require__(30), _inherits3 = _interopRequireDefault(_inherits2), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _classnames = __webpack_require__(3), _classnames2 = _interopRequireDefault(_classnames), _withStyles = __webpack_require__(10), _withStyles2 = _interopRequireDefault(_withStyles), _ButtonBase = __webpack_require__(252), _ButtonBase2 = _interopRequireDefault(_ButtonBase), _reactHelpers = __webpack_require__(256), styles = exports.styles = function(theme) { 31602 return { 31603 root: { 31604 display: "flex", 31605 justifyContent: "flex-start", 31606 alignItems: "center", 31607 position: "relative", 31608 textDecoration: "none", 31609 width: "100%", 31610 boxSizing: "border-box", 31611 textAlign: "left" 31612 }, 31613 container: { 31614 position: "relative" 31615 }, 31616 keyboardFocused: { 31617 backgroundColor: theme.palette.action.hover 31618 }, 31619 default: { 31620 paddingTop: 12, 31621 paddingBottom: 12 31622 }, 31623 dense: { 31624 paddingTop: theme.spacing.unit, 31625 paddingBottom: theme.spacing.unit 31626 }, 31627 disabled: { 31628 opacity: .5 31629 }, 31630 divider: { 31631 borderBottom: "1px solid " + theme.palette.divider, 31632 backgroundClip: "padding-box" 31633 }, 31634 gutters: { 31635 paddingLeft: 2 * theme.spacing.unit, 31636 paddingRight: 2 * theme.spacing.unit 31637 }, 31638 button: { 31639 transition: theme.transitions.create("background-color", { 31640 duration: theme.transitions.duration.shortest 31641 }), 31642 "&:hover": { 31643 textDecoration: "none", 31644 backgroundColor: theme.palette.action.hover, 31645 "@media (hover: none)": { 31646 backgroundColor: "transparent" 31647 } 31648 } 31649 }, 31650 secondaryAction: { 31651 paddingRight: 4 * theme.spacing.unit 31652 } 31653 }; 31654 }, ListItem = function(_React$Component) { 31655 function ListItem() { 31656 return (0, _classCallCheck3.default)(this, ListItem), (0, _possibleConstructorReturn3.default)(this, (ListItem.__proto__ || (0, 31657 _getPrototypeOf2.default)(ListItem)).apply(this, arguments)); 31658 } 31659 return (0, _inherits3.default)(ListItem, _React$Component), (0, _createClass3.default)(ListItem, [ { 31660 key: "getChildContext", 31661 value: function() { 31662 return { 31663 dense: this.props.dense || this.context.dense || !1 31664 }; 31665 } 31666 }, { 31667 key: "render", 31668 value: function() { 31669 var _classNames, _props = this.props, button = _props.button, childrenProp = _props.children, classes = _props.classes, classNameProp = _props.className, componentProp = _props.component, ContainerComponent = _props.ContainerComponent, ContainerProps = _props.ContainerProps, dense = _props.dense, disabled = _props.disabled, disableGutters = _props.disableGutters, divider = _props.divider, other = (0, 31670 _objectWithoutProperties3.default)(_props, [ "button", "children", "classes", "className", "component", "ContainerComponent", "ContainerProps", "dense", "disabled", "disableGutters", "divider" ]), isDense = dense || this.context.dense || !1, children = _react2.default.Children.toArray(childrenProp), hasAvatar = children.some(function(value) { 31671 return (0, _reactHelpers.isMuiElement)(value, [ "ListItemAvatar" ]); 31672 }), hasSecondaryAction = children.length && (0, _reactHelpers.isMuiElement)(children[children.length - 1], [ "ListItemSecondaryAction" ]), className = (0, 31673 _classnames2.default)(classes.root, isDense || hasAvatar ? classes.dense : classes.default, (_classNames = {}, 31674 (0, _defineProperty3.default)(_classNames, classes.gutters, !disableGutters), (0, 31675 _defineProperty3.default)(_classNames, classes.divider, divider), (0, _defineProperty3.default)(_classNames, classes.disabled, disabled), 31676 (0, _defineProperty3.default)(_classNames, classes.button, button), (0, _defineProperty3.default)(_classNames, classes.secondaryAction, hasSecondaryAction), 31677 _classNames), classNameProp), componentProps = (0, _extends3.default)({ 31678 className: className, 31679 disabled: disabled 31680 }, other), Component = componentProp || "li"; 31681 return button && (componentProps.component = componentProp || "div", componentProps.keyboardFocusedClassName = classes.keyboardFocused, 31682 Component = _ButtonBase2.default), hasSecondaryAction ? (Component = Component === _ButtonBase2.default || componentProp ? Component : "div", 31683 _react2.default.createElement(ContainerComponent, (0, _extends3.default)({ 31684 className: classes.container 31685 }, ContainerProps), _react2.default.createElement(Component, componentProps, children), children.pop())) : _react2.default.createElement(Component, componentProps, children); 31686 } 31687 } ]), ListItem; 31688 }(_react2.default.Component); 31689 ListItem.propTypes = "production" !== process.env.NODE_ENV ? { 31690 button: _propTypes2.default.bool, 31691 children: _propTypes2.default.node, 31692 classes: _propTypes2.default.object.isRequired, 31693 className: _propTypes2.default.string, 31694 component: _propTypes2.default.oneOfType([ _propTypes2.default.string, _propTypes2.default.func ]), 31695 ContainerComponent: _propTypes2.default.oneOfType([ _propTypes2.default.string, _propTypes2.default.func ]), 31696 ContainerProps: _propTypes2.default.object, 31697 dense: _propTypes2.default.bool, 31698 disabled: _propTypes2.default.bool, 31699 disableGutters: _propTypes2.default.bool, 31700 divider: _propTypes2.default.bool 31701 } : {}, ListItem.defaultProps = { 31702 button: !1, 31703 ContainerComponent: "li", 31704 dense: !1, 31705 disabled: !1, 31706 disableGutters: !1, 31707 divider: !1 31708 }, ListItem.contextTypes = { 31709 dense: _propTypes2.default.bool 31710 }, ListItem.childContextTypes = { 31711 dense: _propTypes2.default.bool 31712 }, exports.default = (0, _withStyles2.default)(styles, { 31713 name: "MuiListItem" 31714 })(ListItem); 31715 }).call(exports, __webpack_require__(2)); 31716 }, function(module, exports, __webpack_require__) { 31717 "use strict"; 31718 (function(process) { 31719 function _interopRequireDefault(obj) { 31720 return obj && obj.__esModule ? obj : { 31721 default: obj 31722 }; 31723 } 31724 function ListItemAvatar(props, context) { 31725 var children = props.children, classes = props.classes, classNameProp = props.className, other = (0, 31726 _objectWithoutProperties3.default)(props, [ "children", "classes", "className" ]); 31727 return void 0 === context.dense ? ("production" !== process.env.NODE_ENV && (0, 31728 _warning2.default)(!1, "Material-UI: <ListItemAvatar> is a simple wrapper to apply the dense styles\n to <Avatar>. You do not need it unless you are controlling the <List> dense property."), 31729 props.children) : _react2.default.cloneElement(children, (0, _extends3.default)({ 31730 className: (0, _classnames2.default)((0, _defineProperty3.default)({}, classes.root, context.dense), classNameProp, children.props.className), 31731 childrenClassName: (0, _classnames2.default)((0, _defineProperty3.default)({}, classes.icon, context.dense), children.props.childrenClassName) 31732 }, other)); 31733 } 31734 Object.defineProperty(exports, "__esModule", { 31735 value: !0 31736 }), exports.styles = void 0; 31737 var _defineProperty2 = __webpack_require__(12), _defineProperty3 = _interopRequireDefault(_defineProperty2), _extends2 = __webpack_require__(6), _extends3 = _interopRequireDefault(_extends2), _objectWithoutProperties2 = __webpack_require__(7), _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _classnames = __webpack_require__(3), _classnames2 = _interopRequireDefault(_classnames), _warning = __webpack_require__(11), _warning2 = _interopRequireDefault(_warning), _withStyles = __webpack_require__(10), _withStyles2 = _interopRequireDefault(_withStyles), styles = exports.styles = function(theme) { 31738 return { 31739 root: { 31740 width: 36, 31741 height: 36, 31742 fontSize: theme.typography.pxToRem(18), 31743 marginRight: 4 31744 }, 31745 icon: { 31746 width: 20, 31747 height: 20, 31748 fontSize: theme.typography.pxToRem(20) 31749 } 31750 }; 31751 }; 31752 ListItemAvatar.propTypes = "production" !== process.env.NODE_ENV ? { 31753 children: _propTypes2.default.element.isRequired, 31754 classes: _propTypes2.default.object.isRequired, 31755 className: _propTypes2.default.string 31756 } : {}, ListItemAvatar.contextTypes = { 31757 dense: _propTypes2.default.bool 31758 }, ListItemAvatar.muiName = "ListItemAvatar", exports.default = (0, _withStyles2.default)(styles, { 31759 name: "MuiListItemAvatar" 31760 })(ListItemAvatar); 31761 }).call(exports, __webpack_require__(2)); 31762 }, function(module, exports, __webpack_require__) { 31763 "use strict"; 31764 (function(process) { 31765 function _interopRequireDefault(obj) { 31766 return obj && obj.__esModule ? obj : { 31767 default: obj 31768 }; 31769 } 31770 function ListItemText(props, context) { 31771 var _classNames, classes = props.classes, classNameProp = props.className, disableTypography = props.disableTypography, inset = props.inset, primary = props.primary, secondary = props.secondary, other = (0, 31772 _objectWithoutProperties3.default)(props, [ "classes", "className", "disableTypography", "inset", "primary", "secondary" ]), dense = context.dense, className = (0, 31773 _classnames2.default)(classes.root, (_classNames = {}, (0, _defineProperty3.default)(_classNames, classes.dense, dense), 31774 (0, _defineProperty3.default)(_classNames, classes.inset, inset), _classNames), classNameProp); 31775 return _react2.default.createElement("div", (0, _extends3.default)({ 31776 className: className 31777 }, other), primary && (disableTypography ? primary : _react2.default.createElement(_Typography2.default, { 31778 variant: "subheading", 31779 className: (0, _classnames2.default)(classes.primary, (0, _defineProperty3.default)({}, classes.textDense, dense)) 31780 }, primary)), secondary && (disableTypography ? secondary : _react2.default.createElement(_Typography2.default, { 31781 variant: "body1", 31782 className: (0, _classnames2.default)(classes.secondary, (0, _defineProperty3.default)({}, classes.textDense, dense)), 31783 color: "textSecondary" 31784 }, secondary))); 31785 } 31786 Object.defineProperty(exports, "__esModule", { 31787 value: !0 31788 }), exports.styles = void 0; 31789 var _extends2 = __webpack_require__(6), _extends3 = _interopRequireDefault(_extends2), _defineProperty2 = __webpack_require__(12), _defineProperty3 = _interopRequireDefault(_defineProperty2), _objectWithoutProperties2 = __webpack_require__(7), _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _classnames = __webpack_require__(3), _classnames2 = _interopRequireDefault(_classnames), _withStyles = __webpack_require__(10), _withStyles2 = _interopRequireDefault(_withStyles), _Typography = __webpack_require__(113), _Typography2 = _interopRequireDefault(_Typography), styles = exports.styles = function(theme) { 31790 return { 31791 root: { 31792 flex: "1 1 auto", 31793 minWidth: 0, 31794 padding: "0 16px", 31795 "&:first-child": { 31796 paddingLeft: 0 31797 } 31798 }, 31799 inset: { 31800 "&:first-child": { 31801 paddingLeft: 7 * theme.spacing.unit 31802 } 31803 }, 31804 dense: { 31805 fontSize: theme.typography.pxToRem(13) 31806 }, 31807 primary: { 31808 "&$textDense": { 31809 fontSize: "inherit" 31810 } 31811 }, 31812 secondary: { 31813 "&$textDense": { 31814 fontSize: "inherit" 31815 } 31816 }, 31817 textDense: {} 31818 }; 31819 }; 31820 ListItemText.propTypes = "production" !== process.env.NODE_ENV ? { 31821 classes: _propTypes2.default.object.isRequired, 31822 className: _propTypes2.default.string, 31823 disableTypography: _propTypes2.default.bool, 31824 inset: _propTypes2.default.bool, 31825 primary: _propTypes2.default.node, 31826 secondary: _propTypes2.default.node 31827 } : {}, ListItemText.defaultProps = { 31828 disableTypography: !1, 31829 inset: !1, 31830 primary: !1, 31831 secondary: !1 31832 }, ListItemText.contextTypes = { 31833 dense: _propTypes2.default.bool 31834 }, exports.default = (0, _withStyles2.default)(styles, { 31835 name: "MuiListItemText" 31836 })(ListItemText); 31837 }).call(exports, __webpack_require__(2)); 31838 }, function(module, exports, __webpack_require__) { 31839 "use strict"; 31840 (function(process) { 31841 function _interopRequireDefault(obj) { 31842 return obj && obj.__esModule ? obj : { 31843 default: obj 31844 }; 31845 } 31846 function ListItemIcon(props) { 31847 var children = props.children, classes = props.classes, classNameProp = props.className, other = (0, 31848 _objectWithoutProperties3.default)(props, [ "children", "classes", "className" ]); 31849 return _react2.default.cloneElement(children, (0, _extends3.default)({ 31850 className: (0, _classnames2.default)(classes.root, classNameProp, children.props.className) 31851 }, other)); 31852 } 31853 Object.defineProperty(exports, "__esModule", { 31854 value: !0 31855 }), exports.styles = void 0; 31856 var _extends2 = __webpack_require__(6), _extends3 = _interopRequireDefault(_extends2), _objectWithoutProperties2 = __webpack_require__(7), _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _classnames = __webpack_require__(3), _classnames2 = _interopRequireDefault(_classnames), _withStyles = __webpack_require__(10), _withStyles2 = _interopRequireDefault(_withStyles), styles = exports.styles = function(theme) { 31857 return { 31858 root: { 31859 height: 24, 31860 marginRight: 2 * theme.spacing.unit, 31861 width: 24, 31862 color: theme.palette.action.active, 31863 flexShrink: 0 31864 } 31865 }; 31866 }; 31867 ListItemIcon.propTypes = "production" !== process.env.NODE_ENV ? { 31868 children: _propTypes2.default.element.isRequired, 31869 classes: _propTypes2.default.object.isRequired, 31870 className: _propTypes2.default.string 31871 } : {}, exports.default = (0, _withStyles2.default)(styles, { 31872 name: "MuiListItemIcon" 31873 })(ListItemIcon); 31874 }).call(exports, __webpack_require__(2)); 31875 }, function(module, exports, __webpack_require__) { 31876 "use strict"; 31877 (function(process) { 31878 function _interopRequireDefault(obj) { 31879 return obj && obj.__esModule ? obj : { 31880 default: obj 31881 }; 31882 } 31883 function ListItemSecondaryAction(props) { 31884 var children = props.children, classes = props.classes, className = props.className, other = (0, 31885 _objectWithoutProperties3.default)(props, [ "children", "classes", "className" ]); 31886 return _react2.default.createElement("div", (0, _extends3.default)({ 31887 className: (0, _classnames2.default)(classes.root, className) 31888 }, other), children); 31889 } 31890 Object.defineProperty(exports, "__esModule", { 31891 value: !0 31892 }), exports.styles = void 0; 31893 var _extends2 = __webpack_require__(6), _extends3 = _interopRequireDefault(_extends2), _objectWithoutProperties2 = __webpack_require__(7), _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _classnames = __webpack_require__(3), _classnames2 = _interopRequireDefault(_classnames), _withStyles = __webpack_require__(10), _withStyles2 = _interopRequireDefault(_withStyles), styles = exports.styles = function(theme) { 31894 return { 31895 root: { 31896 position: "absolute", 31897 right: 4, 31898 top: "50%", 31899 marginTop: 3 * -theme.spacing.unit 31900 } 31901 }; 31902 }; 31903 ListItemSecondaryAction.propTypes = "production" !== process.env.NODE_ENV ? { 31904 children: _propTypes2.default.node, 31905 classes: _propTypes2.default.object.isRequired, 31906 className: _propTypes2.default.string 31907 } : {}, ListItemSecondaryAction.muiName = "ListItemSecondaryAction", exports.default = (0, 31908 _withStyles2.default)(styles, { 31909 name: "MuiListItemSecondaryAction" 31910 })(ListItemSecondaryAction); 31911 }).call(exports, __webpack_require__(2)); 31912 }, function(module, exports, __webpack_require__) { 31913 "use strict"; 31914 (function(process) { 31915 function _interopRequireDefault(obj) { 31916 return obj && obj.__esModule ? obj : { 31917 default: obj 31918 }; 31919 } 31920 function ListSubheader(props) { 31921 var _classNames, classes = props.classes, classNameProp = props.className, color = props.color, Component = props.component, disableSticky = props.disableSticky, inset = props.inset, other = (0, 31922 _objectWithoutProperties3.default)(props, [ "classes", "className", "color", "component", "disableSticky", "inset" ]), className = (0, 31923 _classnames2.default)(classes.root, (_classNames = {}, (0, _defineProperty3.default)(_classNames, classes["color" + (0, 31924 _helpers.capitalize)(color)], "default" !== color), (0, _defineProperty3.default)(_classNames, classes.inset, inset), 31925 (0, _defineProperty3.default)(_classNames, classes.sticky, !disableSticky), _classNames), classNameProp); 31926 return _react2.default.createElement(Component, (0, _extends3.default)({ 31927 className: className 31928 }, other)); 31929 } 31930 Object.defineProperty(exports, "__esModule", { 31931 value: !0 31932 }), exports.styles = void 0; 31933 var _extends2 = __webpack_require__(6), _extends3 = _interopRequireDefault(_extends2), _defineProperty2 = __webpack_require__(12), _defineProperty3 = _interopRequireDefault(_defineProperty2), _objectWithoutProperties2 = __webpack_require__(7), _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _classnames = __webpack_require__(3), _classnames2 = _interopRequireDefault(_classnames), _withStyles = __webpack_require__(10), _withStyles2 = _interopRequireDefault(_withStyles), _helpers = __webpack_require__(56), styles = exports.styles = function(theme) { 31934 return { 31935 root: { 31936 boxSizing: "border-box", 31937 lineHeight: "48px", 31938 listStyle: "none", 31939 paddingLeft: 2 * theme.spacing.unit, 31940 paddingRight: 2 * theme.spacing.unit, 31941 color: theme.palette.text.secondary, 31942 fontFamily: theme.typography.fontFamily, 31943 fontWeight: theme.typography.fontWeightMedium, 31944 fontSize: theme.typography.pxToRem(theme.typography.fontSize) 31945 }, 31946 colorPrimary: { 31947 color: theme.palette.primary.main 31948 }, 31949 colorInherit: { 31950 color: "inherit" 31951 }, 31952 inset: { 31953 paddingLeft: 9 * theme.spacing.unit 31954 }, 31955 sticky: { 31956 position: "sticky", 31957 top: 0, 31958 zIndex: 1, 31959 backgroundColor: "inherit" 31960 } 31961 }; 31962 }; 31963 ListSubheader.propTypes = "production" !== process.env.NODE_ENV ? { 31964 children: _propTypes2.default.node, 31965 classes: _propTypes2.default.object.isRequired, 31966 className: _propTypes2.default.string, 31967 color: _propTypes2.default.oneOf([ "default", "primary", "inherit" ]), 31968 component: _propTypes2.default.oneOfType([ _propTypes2.default.string, _propTypes2.default.func ]), 31969 disableSticky: _propTypes2.default.bool, 31970 inset: _propTypes2.default.bool 31971 } : {}, ListSubheader.defaultProps = { 31972 color: "default", 31973 component: "li", 31974 disableSticky: !1, 31975 inset: !1 31976 }, ListSubheader.muiName = "ListSubheader", exports.default = (0, _withStyles2.default)(styles, { 31977 name: "MuiListSubheader" 31978 })(ListSubheader); 31979 }).call(exports, __webpack_require__(2)); 31980 }, function(module, exports, __webpack_require__) { 31981 "use strict"; 31982 function _interopRequireDefault(obj) { 31983 return obj && obj.__esModule ? obj : { 31984 default: obj 31985 }; 31986 } 31987 Object.defineProperty(exports, "__esModule", { 31988 value: !0 31989 }), exports.IconStack = exports.Icon = exports.default = void 0, __webpack_require__(539); 31990 var _Icon = __webpack_require__(547), _Icon2 = _interopRequireDefault(_Icon), _IconStack = __webpack_require__(548), _IconStack2 = _interopRequireDefault(_IconStack); 31991 exports.default = _Icon2.default, exports.Icon = _Icon2.default, exports.IconStack = _IconStack2.default; 31992 }, function(module, exports, __webpack_require__) { 31993 var content = __webpack_require__(540); 31994 "string" == typeof content && (content = [ [ module.i, content, "" ] ]); 31995 var options = { 31996 hmr: !0 31997 }; 31998 options.transform = void 0; 31999 __webpack_require__(545)(content, options); 32000 content.locals && (module.exports = content.locals); 32001 }, function(module, exports, __webpack_require__) { 32002 var escape = __webpack_require__(541); 32003 /* 32004 ,功能(模块,导出) 32005 module.exports=函数(url) 32006 返回“string”!= URL类型?url:(/^['“].*['”]$/.test(url)&&(url=url.slice(1,-1)), 32007 /[“'()\t\n]/.test(url)?'“”+url.replace(/“/g,”\\”)。replace(/\n/g,”\\n”)+“':url); 32008 }; 32009 ,功能(模块,导出) 32010 函数csswithmappingtostring(item,usesourcemap) 32011 var content=item[1]“”,cssmapping=item[3]; 32012 如果(!)cssmapping)返回内容; 32013 if(usesourcemap&“function”==btoa类型) 32014 var sourcemapping=tocomment(cssmapping); 32015 返回[content].concat(cssmapping.sources.map(函数(源) 32016 返回“/*sourceURL=”+cssmapping.sourceRoot+source+“*/"; 32017 32018 })).concat([ sourceMapping ]).join("\n"); 32019 } 32020 return [ content ].join("\n"); 32021 } 32022 function toComment(sourceMap) { 32023 /*urn“/*sourcemappingurl=data:application/json;charset=utf-8;base64,”+btoa(unescape(encodeuricomponent(json.stringify(sourcemap)))+“*/”; 32024 } 32025 module.exports=函数(useSourceMap) 32026 var列表=[]; 32027 return list.toString=function() 32028 返回此.map(函数(项) 32029 var content=csswithmappingtostring(item,usesourcemap); 32030 返回项目[ 2 ]?@媒体+项目[2 ] +“{+ +内容+ }”:内容; 32031 }连接(“”); 32032 ,list.i=功能(模块,媒体查询) 32033 “string”==typeof modules&&(modules=[[null,modules,“”]); 32034 对于(var alreadyimportedmodules=,i=0;i<this.length;i++) 32035 var id=这个[i][0]; 32036 “number”==typeof id&&(alreadyImportedModules[id]=!0); 32037 } 32038 对于(i=0;i<modules.length;i++) 32039 var项=模块[i]; 32040 "number" == typeof item[0] && alreadyImportedModules[item[0]] || (mediaQuery && !项目〔2〕?item[2] = mediaQuery : mediaQuery && (item[2] = "(" + item[2] + ") and (" + mediaQuery + ")"), 32041 list.push(item)); 32042 } 32043 },列表; 32044 }; 32045 ,功能(模块,导出) 32046 32047 ,功能(模块,导出) 32048 32049 ,功能(模块,导出,uu webpack_u require_uuuuu) 32050 函数addStylesToDom(样式,选项) 32051 对于(var i=0;i<styles.length;i++) 32052 var item=styles[i],domstyle=stylesindom[item.id]; 32053 如果(DOMSTORE){ 32054 domstyle.refs++; 32055 for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j](item.parts[j]); 32056 对于(;j<item.parts.length;j++)domstyle.parts.push(addstyle(item.parts[j],options)); 32057 }否则{ 32058 for (var parts = [], j = 0; j < item.parts.length; j++) parts.push(addStyle(item.parts[j], options)); 32059 stylesindom[item.id]= 32060 身份证: 32061 参考文献1 32062 零件:零件 32063 }; 32064 } 32065 } 32066 } 32067 函数ListToStyles(列表,选项) 32068 对于(var styles=[],newstyles=,i=0;i<list.length;i++) 32069 var item = list[i], id = options.base ? item[0] + options.base : item[0], css = item[1], media = item[2], sourceMap = item[3], part = { 32070 CSS,CSS, 32071 媒体:媒体, 32072 源映射:源映射 32073 }; 32074 新闻风格?newStyles[id].parts.push(part):styles.push(newStyles[id]= 32075 身份证: 32076 零件:[零件] 32077 (}); 32078 } 32079 回归风格; 32080 } 32081 函数插入样式元素(选项,样式) 32082 var target=getelement(options.insertinto); 32083 如果(!)target)引发新错误(“找不到样式目标”。这可能意味着“insertinto”参数的值无效。“); 32084 var lastStyleElementInsertedAttop=StylesInsertedAttop[StylesInsertedAttop.Length-1]; 32085 if(“top”==options.insertat)lastStyleElementInsertedAttop?上一个StyleElementInsertedAttop.NextSibling?Target.InsertBefore(Style,LastStyleElementInsertedAttop.NextSibling):Target.AppendChild(Style):Target.InsertBefore(Style,Target.FirstChild), 32086 stylesInsertedatop.push(style);else if(“bottom”==options.insertat)target.AppendChild(style);else 32087 如果(“对象”)!=typeof options.insertat!options.insertat.before)引发新错误(“[style loader]\n\n找到参数'insertat'('options.insertat')的值无效。\n必须是'top'、'bottom'或object.\n(https://github.com/webpack contrib/style loader insertat)\n”); 32088 var nextsiling=getelement(options.insertinto+“”+options.insertat.before); 32089 target.insertbefore(样式,NextSibling); 32090 } 32091 } 32092 功能移除(样式) 32093 if(null==Style.ParentNode)返回!1; 32094 style.parentnode.removechild(样式); 32095 var idx=stylesInsertedatop.indexof(样式); 32096 idx>=0&&stylesInsertedatop.splice(idx,1); 32097 } 32098 函数createStyleElement(选项) 32099 var style = document.createElement("style"); 32100 return options.attrs.type=“text/css”,addattrs(style,options.attrs),insertStyleElement(options,style), 32101 风格; 32102 } 32103 函数createLinkElement(选项) 32104 var link=document.createElement(“link”); 32105 返回options.attrs.type=“text/css”,options.attrs.rel=“stylesheet”,addattrs(link,options.attrs), 32106 insertStyleElement(选项,链接),链接; 32107 } 32108 函数addattrs(el,attrs) 32109 对象.keys(attrs).foreach(函数(key) 32110 el.setattribute(键,attrs[键]); 32111 (}); 32112 } 32113 函数addStyle(obj,选项) 32114 var样式,更新,删除,结果; 32115 if(options.transform和obj.css) 32116 如果(!)(result=options.transform(obj.css)))返回函数() 32117 obj.css = result; 32118 } 32119 如果(options.singleton) 32120 var styleindex=singletoncounter++; 32121 style=singleton(singleton=createStyleElement(options)),update=applyTosingletOntag.bind(空,样式,样式索引,!1) 32122 remove=applyToSingletOnTag.bind(空,样式,样式索引,!0); 32123 } else obj.sourceMap && "function" == typeof URL && "function" == typeof URL.createObjectURL && "function" == typeof URL.revokeObjectURL && "function" == typeof Blob && "function" == typeof btoa ? (style = createLinkElement(options), 32124 update=updateLink.bind(空,样式,选项),remove=function() 32125 removestyleElement(style),style.href&&url.revokeObjectURL(style.href); 32126 ):(style=createStyleElement(选项),update=applytotag.bind(空,样式), 32127 remove=function() 32128 removeStyleElement(style); 32129 (}); 32130 返回更新(obj),函数(newobj) 32131 如果(NeWOBJ){ 32132 如果(NeWObj.CSS= = Obj.CSS& NeObj.Mult==Obj.Multudio&NeObj.SoReCAMAP==Obj.SoReCAMAP)返回; 32133 更新(obj=newobj); 32134 else remove(); 32135 }; 32136 } 32137 函数applyToSingletOnTag(样式、索引、删除、obj) 32138 var css=删除?“对象:CSS; 32139 if (style.styleSheet) style.styleSheet.cssText = replaceText(index, css); else { 32140 var cssnode=document.createdextnode(css),childnodes=style.childnodes; 32141 childnodes[index]&&style.removechild(childnodes[index]),childnodes.length?style.insertbefore(cssnode,childnodes[索引]):style.appendchild(cssnode); 32142 } 32143 } 32144 函数applytotag(style,obj) 32145 var css=obj.css,media=obj.media; 32146 if(media&&style.setattribute(“media”,media),style.stylesheet)style.stylesheet.csstext=css;else 32147 对于(;style.firstchild;)style.removechild(style.firstchild); 32148 style.appendChild(document.createTextNode(css)); 32149 } 32150 } 32151 函数updateLink(link,options,obj) 32152 var css = obj.css, sourceMap = obj.sourceMap, autoFixUrls = void 0 === options.convertToAbsoluteUrls && sourceMap; 32153 (options.converttoabsoluteurls autofixurls)&&(css=fixurls(css)),sourcemap&&(css+=“\n/*sourcemappingurl=data:application/json;base64,”+btoa(unescape(encodeuricomponent(json.stringify(sourcemap)))+“*/"); 32154 32155 var blob = new Blob([ css ], { 32156 type: "text/css" 32157 }), oldSrc = link.href; 32158 link.href = URL.createObjectURL(blob), oldSrc && URL.revokeObjectURL(oldSrc); 32159 } 32160 var stylesInDom = {}, isOldIE = function(fn) { 32161 var memo; 32162 return function() { 32163 return void 0 === memo && (memo = fn.apply(this, arguments)), memo; 32164 }; 32165 }(function() { 32166 return window && document && document.all && !window.atob; 32167 }), getElement = function(fn) { 32168 var memo = {}; 32169 return function(selector) { 32170 if (void 0 === memo[selector]) { 32171 var styleTarget = fn.call(this, selector); 32172 if (styleTarget instanceof window.HTMLIFrameElement) try { 32173 styleTarget = styleTarget.contentDocument.head; 32174 } catch (e) { 32175 styleTarget = null; 32176 } 32177 memo[selector] = styleTarget; 32178 } 32179 return memo[selector]; 32180 }; 32181 }(function(target) { 32182 return document.querySelector(target); 32183 }), singleton = null, singletonCounter = 0, stylesInsertedAtTop = [], fixUrls = __webpack_require__(546); 32184 module.exports = function(list, options) { 32185 if ("undefined" != typeof DEBUG && DEBUG && "object" != typeof document) throw new Error("The style-loader cannot be used in a non-browser environment"); 32186 options = options || {}, options.attrs = "object" == typeof options.attrs ? options.attrs : {}, 32187 options.singleton || "boolean" == typeof options.singleton || (options.singleton = isOldIE()), 32188 options.insertInto || (options.insertInto = "head"), options.insertAt || (options.insertAt = "bottom"); 32189 var styles = listToStyles(list, options); 32190 return addStylesToDom(styles, options), function(newList) { 32191 for (var mayRemove = [], i = 0; i < styles.length; i++) { 32192 var item = styles[i], domStyle = stylesInDom[item.id]; 32193 domStyle.refs--, mayRemove.push(domStyle); 32194 } 32195 if (newList) { 32196 addStylesToDom(listToStyles(newList, options), options); 32197 } 32198 for (var i = 0; i < mayRemove.length; i++) { 32199 var domStyle = mayRemove[i]; 32200 if (0 === domStyle.refs) { 32201 for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j](); 32202 delete stylesInDom[domStyle.id]; 32203 } 32204 } 32205 }; 32206 }; 32207 var replaceText = function() { 32208 var textStore = []; 32209 return function(index, replacement) { 32210 return textStore[index] = replacement, textStore.filter(Boolean).join("\n"); 32211 }; 32212 }(); 32213 }, function(module, exports) { 32214 module.exports = function(css) { 32215 var location = "undefined" != typeof window && window.location; 32216 if (!location) throw new Error("fixUrls requires window.location"); 32217 if (!css || "string" != typeof css) return css; 32218 var baseUrl = location.protocol + "//“+location.host,currentdir=baseurl+location.pathname.replace(/\/[^\/]*$/,”/“); 32219 return css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(fullMatch, origUrl) { 32220 var unquotedOrigUrl = origUrl.trim().replace(/^"(.*)"$/, function(o, $1) { 32221 return $1; 32222 }).replace(/^'(.*)'$/, function(o, $1) { 32223 return $1; 32224 }); 32225 if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(unquotedOrigUrl)) return fullMatch; 32226 var newUrl; 32227 return newUrl = 0 === unquotedOrigUrl.indexOf("//“”?unquotedorigurl:0==unquotedorigurl.indexof(“/”)?baseurl+unquotedorigurl:currentdir+unquotedorigurl.replace(/^\.\/,“”), 32228 "url(" + JSON.stringify(newUrl) + ")"; 32229 }); 32230 }; 32231 }, function(module, exports, __webpack_require__) { 32232 "use strict"; 32233 function _objectWithoutProperties(obj, keys) { 32234 var target = {}; 32235 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 32236 return target; 32237 } 32238 function _classCallCheck(instance, Constructor) { 32239 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 32240 } 32241 function _possibleConstructorReturn(self, call) { 32242 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 32243 return !call || "object" != typeof call && "function" != typeof call ? self : call; 32244 } 32245 function _inherits(subClass, superClass) { 32246 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 32247 subClass.prototype = Object.create(superClass && superClass.prototype, { 32248 constructor: { 32249 value: subClass, 32250 enumerable: !1, 32251 writable: !0, 32252 configurable: !0 32253 } 32254 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 32255 } 32256 Object.defineProperty(exports, "__esModule", { 32257 value: !0 32258 }); 32259 var _extends = Object.assign || function(target) { 32260 for (var i = 1; i < arguments.length; i++) { 32261 var source = arguments[i]; 32262 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 32263 } 32264 return target; 32265 }, _createClass = function() { 32266 function defineProperties(target, props) { 32267 for (var i = 0; i < props.length; i++) { 32268 var descriptor = props[i]; 32269 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 32270 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 32271 } 32272 } 32273 return function(Constructor, protoProps, staticProps) { 32274 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 32275 Constructor; 32276 }; 32277 }(), _react = __webpack_require__(0), React = function(obj) { 32278 if (obj && obj.__esModule) return obj; 32279 var newObj = {}; 32280 if (null != obj) for (var key in obj) Object.prototype.hasOwnProperty.call(obj, key) && (newObj[key] = obj[key]); 32281 return newObj.default = obj, newObj; 32282 }(_react), _propTypes = __webpack_require__(1), _propTypes2 = function(obj) { 32283 return obj && obj.__esModule ? obj : { 32284 default: obj 32285 }; 32286 }(_propTypes), Icon = function(_React$Component) { 32287 function Icon() { 32288 return _classCallCheck(this, Icon), _possibleConstructorReturn(this, (Icon.__proto__ || Object.getPrototypeOf(Icon)).apply(this, arguments)); 32289 } 32290 return _inherits(Icon, _React$Component), _createClass(Icon, [ { 32291 key: "render", 32292 value: function() { 32293 var _props = this.props, Component = _props.Component, name = _props.name, size = _props.size, rotate = _props.rotate, flip = _props.flip, spin = _props.spin, fixedWidth = _props.fixedWidth, stack = _props.stack, inverse = _props.inverse, pulse = _props.pulse, className = _props.className, props = _objectWithoutProperties(_props, [ "Component", "name", "size", "rotate", "flip", "spin", "fixedWidth", "stack", "inverse", "pulse", "className" ]), classNames = "fa fa-" + name; 32294 return size && (classNames = classNames + " fa-" + size), rotate && (classNames = classNames + " fa-rotate-" + rotate), 32295 flip && (classNames = classNames + " fa-flip-" + flip), fixedWidth && (classNames += " fa-fw"), 32296 spin && (classNames += " fa-spin"), pulse && (classNames += " fa-pulse"), stack && (classNames = classNames + " fa-stack-" + stack), 32297 inverse && (classNames += " fa-inverse"), className && (classNames = classNames + " " + className), 32298 React.createElement(Component, _extends({}, props, { 32299 className: classNames 32300 })); 32301 } 32302 } ]), Icon; 32303 }(React.Component); 32304 Icon.propTypes = { 32305 name: _propTypes2.default.string.isRequired, 32306 className: _propTypes2.default.string, 32307 size: _propTypes2.default.oneOf([ "lg", "2x", "3x", "4x", "5x" ]), 32308 rotate: _propTypes2.default.oneOf([ "45", "90", "135", "180", "225", "270", "315" ]), 32309 flip: _propTypes2.default.oneOf([ "horizontal", "vertical" ]), 32310 fixedWidth: _propTypes2.default.bool, 32311 spin: _propTypes2.default.bool, 32312 pulse: _propTypes2.default.bool, 32313 stack: _propTypes2.default.oneOf([ "1x", "2x" ]), 32314 inverse: _propTypes2.default.bool, 32315 Component: _propTypes2.default.oneOfType([ _propTypes2.default.string, _propTypes2.default.func ]) 32316 }, Icon.defaultProps = { 32317 Component: "span" 32318 }, exports.default = Icon; 32319 }, function(module, exports, __webpack_require__) { 32320 "use strict"; 32321 function _objectWithoutProperties(obj, keys) { 32322 var target = {}; 32323 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 32324 return target; 32325 } 32326 function _classCallCheck(instance, Constructor) { 32327 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 32328 } 32329 function _possibleConstructorReturn(self, call) { 32330 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 32331 return !call || "object" != typeof call && "function" != typeof call ? self : call; 32332 } 32333 function _inherits(subClass, superClass) { 32334 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 32335 subClass.prototype = Object.create(superClass && superClass.prototype, { 32336 constructor: { 32337 value: subClass, 32338 enumerable: !1, 32339 writable: !0, 32340 configurable: !0 32341 } 32342 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 32343 } 32344 Object.defineProperty(exports, "__esModule", { 32345 value: !0 32346 }); 32347 var _extends = Object.assign || function(target) { 32348 for (var i = 1; i < arguments.length; i++) { 32349 var source = arguments[i]; 32350 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 32351 } 32352 return target; 32353 }, _createClass = function() { 32354 function defineProperties(target, props) { 32355 for (var i = 0; i < props.length; i++) { 32356 var descriptor = props[i]; 32357 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 32358 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 32359 } 32360 } 32361 return function(Constructor, protoProps, staticProps) { 32362 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 32363 Constructor; 32364 }; 32365 }(), _react = __webpack_require__(0), React = function(obj) { 32366 if (obj && obj.__esModule) return obj; 32367 var newObj = {}; 32368 if (null != obj) for (var key in obj) Object.prototype.hasOwnProperty.call(obj, key) && (newObj[key] = obj[key]); 32369 return newObj.default = obj, newObj; 32370 }(_react), _propTypes = __webpack_require__(1), _propTypes2 = function(obj) { 32371 return obj && obj.__esModule ? obj : { 32372 default: obj 32373 }; 32374 }(_propTypes), IconStack = function(_React$Component) { 32375 function IconStack() { 32376 return _classCallCheck(this, IconStack), _possibleConstructorReturn(this, (IconStack.__proto__ || Object.getPrototypeOf(IconStack)).apply(this, arguments)); 32377 } 32378 return _inherits(IconStack, _React$Component), _createClass(IconStack, [ { 32379 key: "render", 32380 value: function() { 32381 var _props = this.props, className = _props.className, size = _props.size, children = _props.children, props = _objectWithoutProperties(_props, [ "className", "size", "children" ]), classNames = [ "fa-stack" ]; 32382 size && classNames.push("fa-" + size), className && classNames.push(className); 32383 var iconStackClassName = classNames.join(" "); 32384 return React.createElement("span", _extends({}, props, { 32385 className: iconStackClassName 32386 }), children); 32387 } 32388 } ]), IconStack; 32389 }(React.Component); 32390 IconStack.propTypes = { 32391 className: _propTypes2.default.string, 32392 size: _propTypes2.default.oneOf([ "lg", "2x", "3x", "4x", "5x" ]), 32393 children: _propTypes2.default.node.isRequired 32394 }, exports.default = IconStack; 32395 }, function(module, exports, __webpack_require__) { 32396 "use strict"; 32397 function _interopRequireDefault(obj) { 32398 return obj && obj.__esModule ? obj : { 32399 default: obj 32400 }; 32401 } 32402 function _classCallCheck(instance, Constructor) { 32403 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 32404 } 32405 function _possibleConstructorReturn(self, call) { 32406 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 32407 return !call || "object" != typeof call && "function" != typeof call ? self : call; 32408 } 32409 function _inherits(subClass, superClass) { 32410 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 32411 subClass.prototype = Object.create(superClass && superClass.prototype, { 32412 constructor: { 32413 value: subClass, 32414 enumerable: !1, 32415 writable: !0, 32416 configurable: !0 32417 } 32418 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 32419 } 32420 Object.defineProperty(exports, "__esModule", { 32421 value: !0 32422 }); 32423 var _createClass = function() { 32424 function defineProperties(target, props) { 32425 for (var i = 0; i < props.length; i++) { 32426 var descriptor = props[i]; 32427 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 32428 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 32429 } 32430 } 32431 return function(Constructor, protoProps, staticProps) { 32432 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 32433 Constructor; 32434 }; 32435 }(), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _withStyles = __webpack_require__(10), _withStyles2 = _interopRequireDefault(_withStyles), _common = __webpack_require__(81), _Logs = __webpack_require__(261), _Logs2 = _interopRequireDefault(_Logs), _Footer = __webpack_require__(551), _Footer2 = _interopRequireDefault(_Footer), styles = { 32436 wrapper: { 32437 display: "flex", 32438 flexDirection: "column", 32439 width: "100%" 32440 }, 32441 content: { 32442 flex: 1, 32443 overflow: "auto" 32444 } 32445 }, themeStyles = function(theme) { 32446 return { 32447 content: { 32448 backgroundColor: theme.palette.background.default, 32449 padding: 3 * theme.spacing.unit 32450 } 32451 }; 32452 }, Main = function(_Component) { 32453 function Main(props) { 32454 _classCallCheck(this, Main); 32455 var _this = _possibleConstructorReturn(this, (Main.__proto__ || Object.getPrototypeOf(Main)).call(this, props)); 32456 return _this.onScroll = function() { 32457 _this.content && "function" == typeof _this.content.onScroll && _this.content.onScroll(); 32458 }, _this.container = _react2.default.createRef(), _this.content = _react2.default.createRef(), 32459 _this; 32460 } 32461 return _inherits(Main, _Component), _createClass(Main, [ { 32462 key: "getSnapshotBeforeUpdate", 32463 value: function() { 32464 return this.content && "function" == typeof this.content.beforeUpdate ? this.content.beforeUpdate() : null; 32465 } 32466 }, { 32467 key: "componentDidUpdate", 32468 value: function(prevProps, prevState, snapshot) { 32469 this.content && "function" == typeof this.content.didUpdate && this.content.didUpdate(prevProps, prevState, snapshot); 32470 } 32471 }, { 32472 key: "render", 32473 value: function() { 32474 var _this2 = this, _props = this.props, classes = _props.classes, active = _props.active, content = _props.content, shouldUpdate = _props.shouldUpdate, children = null; 32475 switch (active) { 32476 case _common.MENU.get("home").id: 32477 case _common.MENU.get("chain").id: 32478 case _common.MENU.get("txpool").id: 32479 case _common.MENU.get("network").id: 32480 case _common.MENU.get("system").id: 32481 children = _react2.default.createElement("div", null, "Work in progress."); 32482 break; 32483 32484 case _common.MENU.get("logs").id: 32485 children = _react2.default.createElement(_Logs2.default, { 32486 ref: function(_ref) { 32487 _this2.content = _ref; 32488 }, 32489 container: this.container, 32490 send: this.props.send, 32491 content: this.props.content, 32492 shouldUpdate: shouldUpdate 32493 }); 32494 } 32495 return _react2.default.createElement("div", { 32496 style: styles.wrapper 32497 }, _react2.default.createElement("div", { 32498 className: classes.content, 32499 style: styles.content, 32500 ref: function(_ref2) { 32501 _this2.container = _ref2; 32502 }, 32503 onScroll: this.onScroll 32504 }, children), _react2.default.createElement(_Footer2.default, { 32505 general: content.general, 32506 system: content.system, 32507 shouldUpdate: shouldUpdate 32508 })); 32509 } 32510 } ]), Main; 32511 }(_react.Component); 32512 exports.default = (0, _withStyles2.default)(themeStyles)(Main); 32513 }, function(module, exports, __webpack_require__) { 32514 "use strict"; 32515 function escapeHtml(string) { 32516 var str = "" + string, match = matchHtmlRegExp.exec(str); 32517 if (!match) return str; 32518 var escape, html = "", index = 0, lastIndex = 0; 32519 for (index = match.index; index < str.length; index++) { 32520 switch (str.charCodeAt(index)) { 32521 case 34: 32522 escape = """; 32523 break; 32524 32525 case 38: 32526 escape = "&"; 32527 break; 32528 32529 case 39: 32530 escape = "'"; 32531 break; 32532 32533 case 60: 32534 escape = "<"; 32535 break; 32536 32537 case 62: 32538 escape = ">"; 32539 break; 32540 32541 default: 32542 continue; 32543 } 32544 lastIndex !== index && (html += str.substring(lastIndex, index)), lastIndex = index + 1, 32545 html += escape; 32546 } 32547 return lastIndex !== index ? html + str.substring(lastIndex, index) : html; 32548 } 32549 var matchHtmlRegExp = /["'&<>]/; 32550 module.exports = escapeHtml; 32551 }, function(module, exports, __webpack_require__) { 32552 "use strict"; 32553 function _interopRequireDefault(obj) { 32554 return obj && obj.__esModule ? obj : { 32555 default: obj 32556 }; 32557 } 32558 function _defineProperty(obj, key, value) { 32559 return key in obj ? Object.defineProperty(obj, key, { 32560 value: value, 32561 enumerable: !0, 32562 configurable: !0, 32563 writable: !0 32564 }) : obj[key] = value, obj; 32565 } 32566 function _classCallCheck(instance, Constructor) { 32567 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 32568 } 32569 function _possibleConstructorReturn(self, call) { 32570 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 32571 return !call || "object" != typeof call && "function" != typeof call ? self : call; 32572 } 32573 function _inherits(subClass, superClass) { 32574 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 32575 subClass.prototype = Object.create(superClass && superClass.prototype, { 32576 constructor: { 32577 value: subClass, 32578 enumerable: !1, 32579 writable: !0, 32580 configurable: !0 32581 } 32582 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 32583 } 32584 Object.defineProperty(exports, "__esModule", { 32585 value: !0 32586 }); 32587 var _extends = Object.assign || function(target) { 32588 for (var i = 1; i < arguments.length; i++) { 32589 var source = arguments[i]; 32590 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 32591 } 32592 return target; 32593 }, _createClass = function() { 32594 function defineProperties(target, props) { 32595 for (var i = 0; i < props.length; i++) { 32596 var descriptor = props[i]; 32597 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 32598 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 32599 } 32600 } 32601 return function(Constructor, protoProps, staticProps) { 32602 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 32603 Constructor; 32604 }; 32605 }(), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _withStyles = __webpack_require__(10), _withStyles2 = _interopRequireDefault(_withStyles), _Typography = __webpack_require__(113), _Typography2 = _interopRequireDefault(_Typography), _Grid = __webpack_require__(262), _Grid2 = _interopRequireDefault(_Grid), _recharts = __webpack_require__(571), _ChartRow = __webpack_require__(947), _ChartRow2 = _interopRequireDefault(_ChartRow), _CustomTooltip = __webpack_require__(948), _CustomTooltip2 = _interopRequireDefault(_CustomTooltip), _common = __webpack_require__(81), TOP = "Top", BOTTOM = "Bottom", styles = { 32606 footer: { 32607 maxWidth: "100%", 32608 flexWrap: "nowrap", 32609 margin: 0 32610 }, 32611 chartRowWrapper: { 32612 height: "100%", 32613 padding: 0 32614 }, 32615 doubleChartWrapper: { 32616 height: "100%", 32617 width: "99%" 32618 } 32619 }, themeStyles = function(theme) { 32620 return { 32621 footer: { 32622 backgroundColor: theme.palette.grey[900], 32623 color: theme.palette.getContrastText(theme.palette.grey[900]), 32624 zIndex: theme.zIndex.appBar, 32625 height: 10 * theme.spacing.unit 32626 } 32627 }; 32628 }, Footer = function(_Component) { 32629 function Footer() { 32630 var _ref, _temp, _this, _ret; 32631 _classCallCheck(this, Footer); 32632 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 32633 return _temp = _this = _possibleConstructorReturn(this, (_ref = Footer.__proto__ || Object.getPrototypeOf(Footer)).call.apply(_ref, [ this ].concat(args))), 32634 _this.halfHeightChart = function(chartProps, tooltip, areaProps) { 32635 return _react2.default.createElement(_recharts.ResponsiveContainer, { 32636 width: "100%", 32637 height: "50%" 32638 }, _react2.default.createElement(_recharts.AreaChart, chartProps, !tooltip || _react2.default.createElement(_recharts.Tooltip, { 32639 cursor: !1, 32640 content: _react2.default.createElement(_CustomTooltip2.default, { 32641 tooltip: tooltip 32642 }) 32643 }), _react2.default.createElement(_recharts.Area, _extends({ 32644 isAnimationActive: !1, 32645 type: "monotone" 32646 }, areaProps)))); 32647 }, _this.doubleChart = function(syncId, chartKey, topChart, bottomChart) { 32648 if (!Array.isArray(topChart.data) || !Array.isArray(bottomChart.data)) return null; 32649 var topDefault = topChart.default || 0, bottomDefault = bottomChart.default || 0, topKey = "" + chartKey + TOP, bottomKey = "" + chartKey + BOTTOM; 32650 return _react2.default.createElement("div", { 32651 style: styles.doubleChartWrapper 32652 }, _this.halfHeightChart({ 32653 syncId: syncId, 32654 data: topChart.data.map(function(_ref2) { 32655 var value = _ref2.value; 32656 return _defineProperty({}, topKey, value || topDefault); 32657 }), 32658 margin: { 32659 top: 5, 32660 right: 5, 32661 bottom: 0, 32662 left: 5 32663 } 32664 }, topChart.tooltip, { 32665 dataKey: topKey, 32666 stroke: "#8884d8", 32667 fill: "#8884d8" 32668 }), _this.halfHeightChart({ 32669 syncId: syncId, 32670 data: bottomChart.data.map(function(_ref4) { 32671 var value = _ref4.value; 32672 return _defineProperty({}, bottomKey, -value || -bottomDefault); 32673 }), 32674 margin: { 32675 top: 0, 32676 right: 5, 32677 bottom: 5, 32678 left: 5 32679 } 32680 }, bottomChart.tooltip, { 32681 dataKey: bottomKey, 32682 stroke: "#82ca9d", 32683 fill: "#82ca9d" 32684 })); 32685 }, _ret = _temp, _possibleConstructorReturn(_this, _ret); 32686 } 32687 return _inherits(Footer, _Component), _createClass(Footer, [ { 32688 key: "shouldComponentUpdate", 32689 value: function(nextProps) { 32690 return void 0 !== nextProps.shouldUpdate.general || void 0 !== nextProps.shouldUpdate.system; 32691 } 32692 }, { 32693 key: "render", 32694 value: function() { 32695 var _props = this.props, general = _props.general, system = _props.system; 32696 return _react2.default.createElement(_Grid2.default, { 32697 container: !0, 32698 className: this.props.classes.footer, 32699 direction: "row", 32700 alignItems: "center", 32701 style: styles.footer 32702 }, _react2.default.createElement(_Grid2.default, { 32703 item: !0, 32704 xs: !0, 32705 style: styles.chartRowWrapper 32706 }, _react2.default.createElement(_ChartRow2.default, null, this.doubleChart("footerSyncId", "cpu", { 32707 data: system.processCPU, 32708 tooltip: (0, _CustomTooltip.percentPlotter)("Process load") 32709 }, { 32710 data: system.systemCPU, 32711 tooltip: (0, _CustomTooltip.percentPlotter)("System load", (0, _CustomTooltip.multiplier)(-1)) 32712 }), this.doubleChart("footerSyncId", "memory", { 32713 data: system.activeMemory, 32714 tooltip: (0, _CustomTooltip.bytePlotter)("Active memory") 32715 }, { 32716 data: system.virtualMemory, 32717 tooltip: (0, _CustomTooltip.bytePlotter)("Virtual memory", (0, _CustomTooltip.multiplier)(-1)) 32718 }), this.doubleChart("footerSyncId", "disk", { 32719 data: system.diskRead, 32720 tooltip: (0, _CustomTooltip.bytePerSecPlotter)("Disk read") 32721 }, { 32722 data: system.diskWrite, 32723 tooltip: (0, _CustomTooltip.bytePerSecPlotter)("Disk write", (0, _CustomTooltip.multiplier)(-1)) 32724 }), this.doubleChart("footerSyncId", "traffic", { 32725 data: system.networkIngress, 32726 tooltip: (0, _CustomTooltip.bytePerSecPlotter)("Download") 32727 }, { 32728 data: system.networkEgress, 32729 tooltip: (0, _CustomTooltip.bytePerSecPlotter)("Upload", (0, _CustomTooltip.multiplier)(-1)) 32730 }))), _react2.default.createElement(_Grid2.default, { 32731 item: !0 32732 }, _react2.default.createElement(_Typography2.default, { 32733 type: "caption", 32734 color: "inherit" 32735 }, _react2.default.createElement("span", { 32736 style: _common.styles.light 32737 }, "Geth"), " ", general.version), general.commit && _react2.default.createElement(_Typography2.default, { 32738 type: "caption", 32739 color: "inherit" 32740 }, _react2.default.createElement("span", { 32741 style: _common.styles.light 32742 }, "Commit "), _react2.default.createElement("a", { 32743 href: "https://github.com/ethereum/go-ethereum/commit/“+常规.commit, 32744 target: "_blank", 32745 style: { 32746 color: "inherit", 32747 textDecoration: "none" 32748 } 32749 }, general.commit.substring(0, 8))))); 32750 } 32751 } ]), Footer; 32752 }(_react.Component); 32753 exports.default = (0, _withStyles2.default)(themeStyles)(Footer); 32754 }, function(module, exports, __webpack_require__) { 32755 "use strict"; 32756 (function(process) { 32757 function _interopRequireDefault(obj) { 32758 return obj && obj.__esModule ? obj : { 32759 default: obj 32760 }; 32761 } 32762 function generateGrid(globalStyles, theme, breakpoint) { 32763 var styles = (0, _defineProperty3.default)({}, "grid-" + breakpoint, { 32764 flexBasis: 0, 32765 flexGrow: 1, 32766 maxWidth: "100%" 32767 }); 32768 GRID_SIZES.forEach(function(size) { 32769 if ("boolean" != typeof size) { 32770 var width = Math.round(size / 12 * 1e7) / 1e5 + "%"; 32771 styles["grid-" + breakpoint + "-" + size] = { 32772 flexBasis: width, 32773 maxWidth: width 32774 }; 32775 } 32776 }), "xs" === breakpoint ? (0, _extends3.default)(globalStyles, styles) : globalStyles[theme.breakpoints.up(breakpoint)] = styles; 32777 } 32778 function generateGutter(theme, breakpoint) { 32779 var styles = {}; 32780 return GUTTERS.forEach(function(spacing, index) { 32781 0 !== index && (styles["spacing-" + breakpoint + "-" + spacing] = { 32782 margin: -spacing / 2, 32783 width: "calc(100% + " + spacing + "px)", 32784 "& > $typeItem": { 32785 padding: spacing / 2 32786 } 32787 }); 32788 }), styles; 32789 } 32790 function Grid(props) { 32791 var _classNames, alignContent = props.alignContent, alignItems = props.alignItems, classes = props.classes, classNameProp = props.className, Component = props.component, container = props.container, direction = props.direction, hidden = props.hidden, item = props.item, justify = props.justify, lg = props.lg, md = props.md, zeroMinWidth = props.zeroMinWidth, sm = props.sm, spacing = props.spacing, wrap = props.wrap, xl = props.xl, xs = props.xs, other = (0, 32792 _objectWithoutProperties3.default)(props, [ "alignContent", "alignItems", "classes", "className", "component", "container", "direction", "hidden", "item", "justify", "lg", "md", "zeroMinWidth", "sm", "spacing", "wrap", "xl", "xs" ]), className = (0, 32793 _classnames2.default)((_classNames = {}, (0, _defineProperty3.default)(_classNames, classes.typeContainer, container), 32794 (0, _defineProperty3.default)(_classNames, classes.typeItem, item), (0, _defineProperty3.default)(_classNames, classes.zeroMinWidth, zeroMinWidth), 32795 (0, _defineProperty3.default)(_classNames, classes["spacing-xs-" + String(spacing)], container && 0 !== spacing), 32796 (0, _defineProperty3.default)(_classNames, classes["direction-xs-" + String(direction)], direction !== Grid.defaultProps.direction), 32797 (0, _defineProperty3.default)(_classNames, classes["wrap-xs-" + String(wrap)], wrap !== Grid.defaultProps.wrap), 32798 (0, _defineProperty3.default)(_classNames, classes["align-items-xs-" + String(alignItems)], alignItems !== Grid.defaultProps.alignItems), 32799 (0, _defineProperty3.default)(_classNames, classes["align-content-xs-" + String(alignContent)], alignContent !== Grid.defaultProps.alignContent), 32800 (0, _defineProperty3.default)(_classNames, classes["justify-xs-" + String(justify)], justify !== Grid.defaultProps.justify), 32801 (0, _defineProperty3.default)(_classNames, classes["grid-xs"], !0 === xs), (0, _defineProperty3.default)(_classNames, classes["grid-xs-" + String(xs)], xs && !0 !== xs), 32802 (0, _defineProperty3.default)(_classNames, classes["grid-sm"], !0 === sm), (0, _defineProperty3.default)(_classNames, classes["grid-sm-" + String(sm)], sm && !0 !== sm), 32803 (0, _defineProperty3.default)(_classNames, classes["grid-md"], !0 === md), (0, _defineProperty3.default)(_classNames, classes["grid-md-" + String(md)], md && !0 !== md), 32804 (0, _defineProperty3.default)(_classNames, classes["grid-lg"], !0 === lg), (0, _defineProperty3.default)(_classNames, classes["grid-lg-" + String(lg)], lg && !0 !== lg), 32805 (0, _defineProperty3.default)(_classNames, classes["grid-xl"], !0 === xl), (0, _defineProperty3.default)(_classNames, classes["grid-xl-" + String(xl)], xl && !0 !== xl), 32806 _classNames), classNameProp), gridProps = (0, _extends3.default)({ 32807 className: className 32808 }, other); 32809 return hidden ? _react2.default.createElement(_Hidden2.default, hidden, _react2.default.createElement(Component, gridProps)) : _react2.default.createElement(Component, gridProps); 32810 } 32811 Object.defineProperty(exports, "__esModule", { 32812 value: !0 32813 }), exports.styles = void 0; 32814 var _objectWithoutProperties2 = __webpack_require__(7), _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2), _extends2 = __webpack_require__(6), _extends3 = _interopRequireDefault(_extends2), _defineProperty2 = __webpack_require__(12), _defineProperty3 = _interopRequireDefault(_defineProperty2), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _classnames = __webpack_require__(3), _classnames2 = _interopRequireDefault(_classnames), _withStyles = __webpack_require__(10), _withStyles2 = _interopRequireDefault(_withStyles), _createBreakpoints = __webpack_require__(78), _requirePropFactory = __webpack_require__(553), _requirePropFactory2 = _interopRequireDefault(_requirePropFactory), _Hidden = __webpack_require__(554), _Hidden2 = _interopRequireDefault(_Hidden), GUTTERS = [ 0, 8, 16, 24, 40 ], GRID_SIZES = [ !0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ], styles = exports.styles = function(theme) { 32815 return (0, _extends3.default)({ 32816 typeContainer: { 32817 boxSizing: "border-box", 32818 display: "flex", 32819 flexWrap: "wrap", 32820 width: "100%" 32821 }, 32822 typeItem: { 32823 boxSizing: "border-box", 32824 flex: "0 0 auto", 32825 margin: "0" 32826 }, 32827 zeroMinWidth: { 32828 minWidth: 0 32829 }, 32830 "direction-xs-column": { 32831 flexDirection: "column" 32832 }, 32833 "direction-xs-column-reverse": { 32834 flexDirection: "column-reverse" 32835 }, 32836 "direction-xs-row-reverse": { 32837 flexDirection: "row-reverse" 32838 }, 32839 "wrap-xs-nowrap": { 32840 flexWrap: "nowrap" 32841 }, 32842 "wrap-xs-wrap-reverse": { 32843 flexWrap: "wrap-reverse" 32844 }, 32845 "align-items-xs-center": { 32846 alignItems: "center" 32847 }, 32848 "align-items-xs-flex-start": { 32849 alignItems: "flex-start" 32850 }, 32851 "align-items-xs-flex-end": { 32852 alignItems: "flex-end" 32853 }, 32854 "align-items-xs-baseline": { 32855 alignItems: "baseline" 32856 }, 32857 "align-content-xs-center": { 32858 alignContent: "center" 32859 }, 32860 "align-content-xs-flex-start": { 32861 alignContent: "flex-start" 32862 }, 32863 "align-content-xs-flex-end": { 32864 alignContent: "flex-end" 32865 }, 32866 "align-content-xs-space-between": { 32867 alignContent: "space-between" 32868 }, 32869 "align-content-xs-space-around": { 32870 alignContent: "space-around" 32871 }, 32872 "justify-xs-center": { 32873 justifyContent: "center" 32874 }, 32875 "justify-xs-flex-end": { 32876 justifyContent: "flex-end" 32877 }, 32878 "justify-xs-space-between": { 32879 justifyContent: "space-between" 32880 }, 32881 "justify-xs-space-around": { 32882 justifyContent: "space-around" 32883 } 32884 }, generateGutter(theme, "xs"), _createBreakpoints.keys.reduce(function(accumulator, key) { 32885 return generateGrid(accumulator, theme, key), accumulator; 32886 }, {})); 32887 }; 32888 Grid.propTypes = "production" !== process.env.NODE_ENV ? { 32889 alignContent: _propTypes2.default.oneOf([ "stretch", "center", "flex-start", "flex-end", "space-between", "space-around" ]), 32890 alignItems: _propTypes2.default.oneOf([ "flex-start", "center", "flex-end", "stretch", "baseline" ]), 32891 children: _propTypes2.default.node, 32892 classes: _propTypes2.default.object.isRequired, 32893 className: _propTypes2.default.string, 32894 component: _propTypes2.default.oneOfType([ _propTypes2.default.string, _propTypes2.default.func ]), 32895 container: _propTypes2.default.bool, 32896 direction: _propTypes2.default.oneOf([ "row", "row-reverse", "column", "column-reverse" ]), 32897 hidden: _propTypes2.default.object, 32898 item: _propTypes2.default.bool, 32899 justify: _propTypes2.default.oneOf([ "flex-start", "center", "flex-end", "space-between", "space-around" ]), 32900 lg: _propTypes2.default.oneOf([ !0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ]), 32901 md: _propTypes2.default.oneOf([ !0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ]), 32902 sm: _propTypes2.default.oneOf([ !0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ]), 32903 spacing: _propTypes2.default.oneOf(GUTTERS), 32904 wrap: _propTypes2.default.oneOf([ "nowrap", "wrap", "wrap-reverse" ]), 32905 xl: _propTypes2.default.oneOf([ !0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ]), 32906 xs: _propTypes2.default.oneOf([ !0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ]), 32907 zeroMinWidth: _propTypes2.default.bool 32908 } : {}, Grid.defaultProps = { 32909 alignContent: "stretch", 32910 alignItems: "stretch", 32911 component: "div", 32912 container: !1, 32913 direction: "row", 32914 item: !1, 32915 justify: "flex-start", 32916 zeroMinWidth: !1, 32917 spacing: 16, 32918 wrap: "wrap" 32919 }; 32920 var GridWrapper = Grid; 32921 if ("production" !== process.env.NODE_ENV) { 32922 GridWrapper = function(props) { 32923 return _react2.default.createElement(Grid, props); 32924 }; 32925 var requireProp = (0, _requirePropFactory2.default)("Grid"); 32926 GridWrapper.propTypes = { 32927 alignContent: requireProp("container"), 32928 alignItems: requireProp("container"), 32929 direction: requireProp("container"), 32930 justify: requireProp("container"), 32931 lg: requireProp("item"), 32932 md: requireProp("item"), 32933 sm: requireProp("item"), 32934 spacing: requireProp("container"), 32935 wrap: requireProp("container"), 32936 xs: requireProp("item"), 32937 zeroMinWidth: requireProp("zeroMinWidth") 32938 }; 32939 } 32940 exports.default = (0, _withStyles2.default)(styles, { 32941 name: "MuiGrid" 32942 })(GridWrapper); 32943 }).call(exports, __webpack_require__(2)); 32944 }, function(module, exports, __webpack_require__) { 32945 "use strict"; 32946 Object.defineProperty(exports, "__esModule", { 32947 value: !0 32948 }); 32949 var requirePropFactory = function(componentNameInError) { 32950 return function(requiredProp) { 32951 return function(props, propName, componentName, location, propFullName) { 32952 var propFullNameSafe = propFullName || propName; 32953 return void 0 === props[propName] || props[requiredProp] ? null : new Error("The property `)) + ("`" + (`" + propFullNameSafe + "` + "`")))) + (((` of ` + ("`" + `" + componentNameInError + "`)) + ("`" + (` must be used on ` + "`"))) + ((`" + requiredProp + "` + ("`" + `."); 32954 }; 32955 }; 32956 }; 32957 exports.default = requirePropFactory; 32958 }, function(module, exports, __webpack_require__) { 32959 "use strict"; 32960 function _interopRequireDefault(obj) { 32961 return obj && obj.__esModule ? obj : { 32962 default: obj 32963 }; 32964 } 32965 Object.defineProperty(exports, "__esModule", { 32966 value: !0 32967 }); 32968 var _Hidden = __webpack_require__(555); 32969 Object.defineProperty(exports, "default", { 32970 enumerable: !0, 32971 get: function() { 32972 return _interopRequireDefault(_Hidden).default; 32973 } 32974 }); 32975 }, function(module, exports, __webpack_require__) { 32976 "use strict"; 32977 (function(process) { 32978 function _interopRequireDefault(obj) { 32979 return obj && obj.__esModule ? obj : { 32980 default: obj 32981 }; 32982 } 32983 function Hidden(props) { 32984 var implementation = props.implementation, other = (0, _objectWithoutProperties3.default)(props, [ "implementation" ]); 32985 return "js" === implementation ? _react2.default.createElement(_HiddenJs2.default, other) : _react2.default.createElement(_HiddenCss2.default, other); 32986 } 32987 Object.defineProperty(exports, "__esModule", { 32988 value: !0 32989 }); 32990 var _objectWithoutProperties2 = __webpack_require__(7), _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _HiddenJs = __webpack_require__(556), _HiddenJs2 = _interopRequireDefault(_HiddenJs), _HiddenCss = __webpack_require__(570), _HiddenCss2 = _interopRequireDefault(_HiddenCss); 32991 Hidden.propTypes = "production" !== process.env.NODE_ENV ? { 32992 children: _propTypes2.default.node, 32993 className: _propTypes2.default.string, 32994 implementation: _propTypes2.default.oneOf([ "js", "css" ]), 32995 initialWidth: _propTypes2.default.oneOf([ "xs", "sm", "md", "lg", "xl" ]), 32996 lgDown: _propTypes2.default.bool, 32997 lgUp: _propTypes2.default.bool, 32998 mdDown: _propTypes2.default.bool, 32999 mdUp: _propTypes2.default.bool, 33000 only: _propTypes2.default.oneOfType([ _propTypes2.default.oneOf([ "xs", "sm", "md", "lg", "xl" ]), _propTypes2.default.arrayOf(_propTypes2.default.oneOf([ "xs", "sm", "md", "lg", "xl" ])) ]), 33001 smDown: _propTypes2.default.bool, 33002 smUp: _propTypes2.default.bool, 33003 xlDown: _propTypes2.default.bool, 33004 xlUp: _propTypes2.default.bool, 33005 xsDown: _propTypes2.default.bool, 33006 xsUp: _propTypes2.default.bool 33007 } : {}, Hidden.defaultProps = { 33008 implementation: "js", 33009 lgDown: !1, 33010 lgUp: !1, 33011 mdDown: !1, 33012 mdUp: !1, 33013 smDown: !1, 33014 smUp: !1, 33015 xlDown: !1, 33016 xlUp: !1, 33017 xsDown: !1, 33018 xsUp: !1 33019 }, exports.default = Hidden; 33020 }).call(exports, __webpack_require__(2)); 33021 }, function(module, exports, __webpack_require__) { 33022 "use strict"; 33023 function _interopRequireDefault(obj) { 33024 return obj && obj.__esModule ? obj : { 33025 default: obj 33026 }; 33027 } 33028 function HiddenJs(props) { 33029 var children = props.children, only = props.only, width = props.width, visible = !0; 33030 if (only) if (Array.isArray(only)) for (var i = 0; i < only.length; i += 1) { 33031 var breakpoint = only[i]; 33032 if (width === breakpoint) { 33033 visible = !1; 33034 break; 33035 } 33036 } else only && width === only && (visible = !1); 33037 if (visible) for (var _i = 0; _i < _createBreakpoints.keys.length; _i += 1) { 33038 var _breakpoint = _createBreakpoints.keys[_i], breakpointUp = props[_breakpoint + "Up"], breakpointDown = props[_breakpoint + "Down"]; 33039 if (breakpointUp && (0, _withWidth.isWidthUp)(_breakpoint, width) || breakpointDown && (0, 33040 _withWidth.isWidthDown)(_breakpoint, width)) { 33041 visible = !1; 33042 break; 33043 } 33044 } 33045 return visible ? children : null; 33046 } 33047 Object.defineProperty(exports, "__esModule", { 33048 value: !0 33049 }); 33050 var _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _createBreakpoints = __webpack_require__(78), _withWidth = __webpack_require__(557), _withWidth2 = _interopRequireDefault(_withWidth), _exactProp = __webpack_require__(236), _exactProp2 = _interopRequireDefault(_exactProp); 33051 HiddenJs.propTypes = { 33052 children: _propTypes2.default.node, 33053 className: _propTypes2.default.string, 33054 implementation: _propTypes2.default.oneOf([ "js", "css" ]), 33055 initialWidth: _propTypes2.default.oneOf([ "xs", "sm", "md", "lg", "xl" ]), 33056 lgDown: _propTypes2.default.bool, 33057 lgUp: _propTypes2.default.bool, 33058 mdDown: _propTypes2.default.bool, 33059 mdUp: _propTypes2.default.bool, 33060 only: _propTypes2.default.oneOfType([ _propTypes2.default.oneOf([ "xs", "sm", "md", "lg", "xl" ]), _propTypes2.default.arrayOf(_propTypes2.default.oneOf([ "xs", "sm", "md", "lg", "xl" ])) ]), 33061 smDown: _propTypes2.default.bool, 33062 smUp: _propTypes2.default.bool, 33063 width: _propTypes2.default.string.isRequired, 33064 xlDown: _propTypes2.default.bool, 33065 xlUp: _propTypes2.default.bool, 33066 xsDown: _propTypes2.default.bool, 33067 xsUp: _propTypes2.default.bool 33068 }, HiddenJs.propTypes = (0, _exactProp2.default)(HiddenJs.propTypes, "HiddenJs"), 33069 exports.default = (0, _withWidth2.default)()(HiddenJs); 33070 }, function(module, exports, __webpack_require__) { 33071 "use strict"; 33072 (function(process) { 33073 function _interopRequireDefault(obj) { 33074 return obj && obj.__esModule ? obj : { 33075 default: obj 33076 }; 33077 } 33078 Object.defineProperty(exports, "__esModule", { 33079 value: !0 33080 }), exports.isWidthDown = exports.isWidthUp = void 0; 33081 var _extends2 = __webpack_require__(6), _extends3 = _interopRequireDefault(_extends2), _objectWithoutProperties2 = __webpack_require__(7), _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2), _getPrototypeOf = __webpack_require__(26), _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf), _classCallCheck2 = __webpack_require__(27), _classCallCheck3 = _interopRequireDefault(_classCallCheck2), _createClass2 = __webpack_require__(28), _createClass3 = _interopRequireDefault(_createClass2), _possibleConstructorReturn2 = __webpack_require__(29), _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2), _inherits2 = __webpack_require__(30), _inherits3 = _interopRequireDefault(_inherits2), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _reactEventListener = __webpack_require__(558), _reactEventListener2 = _interopRequireDefault(_reactEventListener), _debounce = __webpack_require__(560), _debounce2 = _interopRequireDefault(_debounce), _wrapDisplayName = __webpack_require__(79), _wrapDisplayName2 = _interopRequireDefault(_wrapDisplayName), _hoistNonReactStatics = __webpack_require__(162), _hoistNonReactStatics2 = _interopRequireDefault(_hoistNonReactStatics), _withTheme = __webpack_require__(569), _withTheme2 = _interopRequireDefault(_withTheme), _createBreakpoints = __webpack_require__(78), withWidth = (exports.isWidthUp = function(breakpoint, width) { 33082 return arguments.length > 2 && void 0 !== arguments[2] && !arguments[2] ? _createBreakpoints.keys.indexOf(breakpoint) < _createBreakpoints.keys.indexOf(width) : _createBreakpoints.keys.indexOf(breakpoint) <= _createBreakpoints.keys.indexOf(width); 33083 }, exports.isWidthDown = function(breakpoint, width) { 33084 return arguments.length > 2 && void 0 !== arguments[2] && !arguments[2] ? _createBreakpoints.keys.indexOf(width) < _createBreakpoints.keys.indexOf(breakpoint) : _createBreakpoints.keys.indexOf(width) <= _createBreakpoints.keys.indexOf(breakpoint); 33085 }, function() { 33086 var options = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; 33087 return function(Component) { 33088 var _options$resizeInterv = options.resizeInterval, resizeInterval = void 0 === _options$resizeInterv ? 166 : _options$resizeInterv, _options$withTheme = options.withTheme, withThemeOption = void 0 !== _options$withTheme && _options$withTheme, WithWidth = function(_React$Component) { 33089 function WithWidth() { 33090 var _ref, _temp, _this, _ret; 33091 (0, _classCallCheck3.default)(this, WithWidth); 33092 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 33093 return _temp = _this = (0, _possibleConstructorReturn3.default)(this, (_ref = WithWidth.__proto__ || (0, 33094 _getPrototypeOf2.default)(WithWidth)).call.apply(_ref, [ this ].concat(args))), 33095 _this.state = { 33096 width: void 0 33097 }, _this.handleResize = (0, _debounce2.default)(function() { 33098 _this.updateWidth(window.innerWidth); 33099 }, resizeInterval), _ret = _temp, (0, _possibleConstructorReturn3.default)(_this, _ret); 33100 } 33101 return (0, _inherits3.default)(WithWidth, _React$Component), (0, _createClass3.default)(WithWidth, [ { 33102 key: "componentDidMount", 33103 value: function() { 33104 this.updateWidth(window.innerWidth); 33105 } 33106 }, { 33107 key: "componentWillUnmount", 33108 value: function() { 33109 this.handleResize.cancel(); 33110 } 33111 }, { 33112 key: "updateWidth", 33113 value: function(innerWidth) { 33114 for (var breakpoints = this.props.theme.breakpoints, width = null, index = 1; null === width && index < _createBreakpoints.keys.length; ) { 33115 var currentWidth = _createBreakpoints.keys[index]; 33116 if (innerWidth < breakpoints.values[currentWidth]) { 33117 width = _createBreakpoints.keys[index - 1]; 33118 break; 33119 } 33120 index += 1; 33121 } 33122 (width = width || "xl") !== this.state.width && this.setState({ 33123 width: width 33124 }); 33125 } 33126 }, { 33127 key: "render", 33128 value: function() { 33129 var _props = this.props, initialWidth = _props.initialWidth, theme = _props.theme, width = _props.width, other = (0, 33130 _objectWithoutProperties3.default)(_props, [ "initialWidth", "theme", "width" ]), props = (0, 33131 _extends3.default)({ 33132 width: width || this.state.width || initialWidth 33133 }, other), more = {}; 33134 return withThemeOption && (more.theme = theme), void 0 === props.width ? null : _react2.default.createElement(_reactEventListener2.default, { 33135 target: "window", 33136 onResize: this.handleResize 33137 }, _react2.default.createElement(Component, (0, _extends3.default)({}, more, props))); 33138 } 33139 } ]), WithWidth; 33140 }(_react2.default.Component); 33141 return WithWidth.propTypes = "production" !== process.env.NODE_ENV ? { 33142 initialWidth: _propTypes2.default.oneOf([ "xs", "sm", "md", "lg", "xl" ]), 33143 theme: _propTypes2.default.object.isRequired, 33144 width: _propTypes2.default.oneOf([ "xs", "sm", "md", "lg", "xl" ]) 33145 } : {}, "production" !== process.env.NODE_ENV && (WithWidth.displayName = (0, _wrapDisplayName2.default)(Component, "WithWidth")), 33146 (0, _hoistNonReactStatics2.default)(WithWidth, Component), (0, _withTheme2.default)()(WithWidth); 33147 }; 33148 }); 33149 exports.default = withWidth; 33150 }).call(exports, __webpack_require__(2)); 33151 }, function(module, exports, __webpack_require__) { 33152 "use strict"; 33153 (function(process) { 33154 function _interopRequireDefault(obj) { 33155 return obj && obj.__esModule ? obj : { 33156 default: obj 33157 }; 33158 } 33159 function mergeDefaultEventOptions(options) { 33160 return (0, _assign2.default)({}, defaultEventOptions, options); 33161 } 33162 function getEventListenerArgs(eventName, callback, options) { 33163 var args = [ eventName, callback ]; 33164 return args.push(_supports.passiveOption ? options : options.capture), args; 33165 } 33166 function on(target, eventName, callback, options) { 33167 target.addEventListener.apply(target, getEventListenerArgs(eventName, callback, options)); 33168 } 33169 function off(target, eventName, callback, options) { 33170 target.removeEventListener.apply(target, getEventListenerArgs(eventName, callback, options)); 33171 } 33172 function forEachListener(props, iteratee) { 33173 var eventProps = (props.children, props.target, (0, _objectWithoutProperties3.default)(props, [ "children", "target" ])); 33174 (0, _keys2.default)(eventProps).forEach(function(name) { 33175 if ("on" === name.substring(0, 2)) { 33176 var prop = eventProps[name], type = void 0 === prop ? "undefined" : (0, _typeof3.default)(prop), isObject = "object" === type, isFunction = "function" === type; 33177 if (isObject || isFunction) { 33178 var capture = "capture" === name.substr(-7).toLowerCase(), eventName = name.substring(2).toLowerCase(); 33179 eventName = capture ? eventName.substring(0, eventName.length - 7) : eventName, 33180 isObject ? iteratee(eventName, prop.handler, prop.options) : iteratee(eventName, prop, mergeDefaultEventOptions({ 33181 capture: capture 33182 })); 33183 } 33184 } 33185 }); 33186 } 33187 function withOptions(handler, options) { 33188 return "production" !== process.env.NODE_ENV && (0, _warning2.default)(options, "react-event-listener: should be specified options in withOptions."), 33189 { 33190 handler: handler, 33191 options: mergeDefaultEventOptions(options) 33192 }; 33193 } 33194 Object.defineProperty(exports, "__esModule", { 33195 value: !0 33196 }); 33197 var _getPrototypeOf = __webpack_require__(26), _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf), _classCallCheck2 = __webpack_require__(27), _classCallCheck3 = _interopRequireDefault(_classCallCheck2), _createClass2 = __webpack_require__(28), _createClass3 = _interopRequireDefault(_createClass2), _possibleConstructorReturn2 = __webpack_require__(29), _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2), _inherits2 = __webpack_require__(30), _inherits3 = _interopRequireDefault(_inherits2), _typeof2 = __webpack_require__(105), _typeof3 = _interopRequireDefault(_typeof2), _keys = __webpack_require__(55), _keys2 = _interopRequireDefault(_keys), _objectWithoutProperties2 = __webpack_require__(7), _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2), _assign = __webpack_require__(222), _assign2 = _interopRequireDefault(_assign); 33198 exports.withOptions = withOptions; 33199 var _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _shallowEqual = __webpack_require__(100), _shallowEqual2 = _interopRequireDefault(_shallowEqual), _warning = __webpack_require__(11), _warning2 = _interopRequireDefault(_warning), _supports = __webpack_require__(559), defaultEventOptions = { 33200 capture: !1, 33201 passive: !1 33202 }, EventListener = function(_React$Component) { 33203 function EventListener() { 33204 return (0, _classCallCheck3.default)(this, EventListener), (0, _possibleConstructorReturn3.default)(this, (EventListener.__proto__ || (0, 33205 _getPrototypeOf2.default)(EventListener)).apply(this, arguments)); 33206 } 33207 return (0, _inherits3.default)(EventListener, _React$Component), (0, _createClass3.default)(EventListener, [ { 33208 key: "componentDidMount", 33209 value: function() { 33210 this.addListeners(); 33211 } 33212 }, { 33213 key: "shouldComponentUpdate", 33214 value: function(nextProps) { 33215 return !(0, _shallowEqual2.default)(this.props, nextProps); 33216 } 33217 }, { 33218 key: "componentWillUpdate", 33219 value: function() { 33220 this.removeListeners(); 33221 } 33222 }, { 33223 key: "componentDidUpdate", 33224 value: function() { 33225 this.addListeners(); 33226 } 33227 }, { 33228 key: "componentWillUnmount", 33229 value: function() { 33230 this.removeListeners(); 33231 } 33232 }, { 33233 key: "addListeners", 33234 value: function() { 33235 this.applyListeners(on); 33236 } 33237 }, { 33238 key: "removeListeners", 33239 value: function() { 33240 this.applyListeners(off); 33241 } 33242 }, { 33243 key: "applyListeners", 33244 value: function(onOrOff) { 33245 var target = this.props.target; 33246 if (target) { 33247 var element = target; 33248 "string" == typeof target && (element = window[target]), forEachListener(this.props, onOrOff.bind(null, element)); 33249 } 33250 } 33251 }, { 33252 key: "render", 33253 value: function() { 33254 return this.props.children || null; 33255 } 33256 } ]), EventListener; 33257 }(_react2.default.Component); 33258 EventListener.propTypes = "production" !== process.env.NODE_ENV ? { 33259 children: _propTypes2.default.node, 33260 target: _propTypes2.default.oneOfType([ _propTypes2.default.object, _propTypes2.default.string ]).isRequired 33261 } : {}, exports.default = EventListener; 33262 }).call(exports, __webpack_require__(2)); 33263 }, function(module, exports, __webpack_require__) { 33264 "use strict"; 33265 function defineProperty(object, property, attr) { 33266 return (0, _defineProperty2.default)(object, property, attr); 33267 } 33268 Object.defineProperty(exports, "__esModule", { 33269 value: !0 33270 }), exports.passiveOption = void 0; 33271 var _defineProperty = __webpack_require__(154), _defineProperty2 = function(obj) { 33272 return obj && obj.__esModule ? obj : { 33273 default: obj 33274 }; 33275 }(_defineProperty); 33276 exports.passiveOption = function() { 33277 var cache = null; 33278 return function() { 33279 if (null !== cache) return cache; 33280 var supportsPassiveOption = !1; 33281 try { 33282 window.addEventListener("test", null, defineProperty({}, "passive", { 33283 get: function() { 33284 supportsPassiveOption = !0; 33285 } 33286 })); 33287 } catch (err) {} 33288 return cache = supportsPassiveOption, supportsPassiveOption; 33289 }(); 33290 }(); 33291 exports.default = {}; 33292 }, function(module, exports, __webpack_require__) { 33293 function debounce(func, wait, options) { 33294 function invokeFunc(time) { 33295 var args = lastArgs, thisArg = lastThis; 33296 return lastArgs = lastThis = void 0, lastInvokeTime = time, result = func.apply(thisArg, args); 33297 } 33298 function leadingEdge(time) { 33299 return lastInvokeTime = time, timerId = setTimeout(timerExpired, wait), leading ? invokeFunc(time) : result; 33300 } 33301 function remainingWait(time) { 33302 var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall; 33303 return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting; 33304 } 33305 function shouldInvoke(time) { 33306 var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime; 33307 return void 0 === lastCallTime || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait; 33308 } 33309 function timerExpired() { 33310 var time = now(); 33311 if (shouldInvoke(time)) return trailingEdge(time); 33312 timerId = setTimeout(timerExpired, remainingWait(time)); 33313 } 33314 function trailingEdge(time) { 33315 return timerId = void 0, trailing && lastArgs ? invokeFunc(time) : (lastArgs = lastThis = void 0, 33316 result); 33317 } 33318 function cancel() { 33319 void 0 !== timerId && clearTimeout(timerId), lastInvokeTime = 0, lastArgs = lastCallTime = lastThis = timerId = void 0; 33320 } 33321 function flush() { 33322 return void 0 === timerId ? result : trailingEdge(now()); 33323 } 33324 function debounced() { 33325 var time = now(), isInvoking = shouldInvoke(time); 33326 if (lastArgs = arguments, lastThis = this, lastCallTime = time, isInvoking) { 33327 if (void 0 === timerId) return leadingEdge(lastCallTime); 33328 if (maxing) return timerId = setTimeout(timerExpired, wait), invokeFunc(lastCallTime); 33329 } 33330 return void 0 === timerId && (timerId = setTimeout(timerExpired, wait)), result; 33331 } 33332 var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = !1, maxing = !1, trailing = !0; 33333 if ("function" != typeof func) throw new TypeError(FUNC_ERROR_TEXT); 33334 return wait = toNumber(wait) || 0, isObject(options) && (leading = !!options.leading, 33335 maxing = "maxWait" in options, maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait, 33336 trailing = "trailing" in options ? !!options.trailing : trailing), debounced.cancel = cancel, 33337 debounced.flush = flush, debounced; 33338 } 33339 var isObject = __webpack_require__(263), now = __webpack_require__(561), toNumber = __webpack_require__(563), FUNC_ERROR_TEXT = "Expected a function", nativeMax = Math.max, nativeMin = Math.min; 33340 module.exports = debounce; 33341 }, function(module, exports, __webpack_require__) { 33342 var root = __webpack_require__(264), now = function() { 33343 return root.Date.now(); 33344 }; 33345 module.exports = now; 33346 }, function(module, exports, __webpack_require__) { 33347 (function(global) { 33348 var freeGlobal = "object" == typeof global && global && global.Object === Object && global; 33349 module.exports = freeGlobal; 33350 }).call(exports, __webpack_require__(40)); 33351 }, function(module, exports, __webpack_require__) { 33352 function toNumber(value) { 33353 if ("number" == typeof value) return value; 33354 if (isSymbol(value)) return NAN; 33355 if (isObject(value)) { 33356 var other = "function" == typeof value.valueOf ? value.valueOf() : value; 33357 value = isObject(other) ? other + "" : other; 33358 } 33359 if ("string" != typeof value) return 0 === value ? value : +value; 33360 value = value.replace(reTrim, ""); 33361 var isBinary = reIsBinary.test(value); 33362 return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value; 33363 } 33364 var isObject = __webpack_require__(263), isSymbol = __webpack_require__(564), NAN = NaN, reTrim = /^\s+|\s+$/g, reIsBadHex = /^[-+]0x[0-9a-f]+$/i, reIsBinary = /^0b[01]+$/i, reIsOctal = /^0o[0-7]+$/i, freeParseInt = parseInt; 33365 module.exports = toNumber; 33366 }, function(module, exports, __webpack_require__) { 33367 function isSymbol(value) { 33368 return "symbol" == typeof value || isObjectLike(value) && baseGetTag(value) == symbolTag; 33369 } 33370 var baseGetTag = __webpack_require__(565), isObjectLike = __webpack_require__(568), symbolTag = "[object Symbol]"; 33371 module.exports = isSymbol; 33372 }, function(module, exports, __webpack_require__) { 33373 function baseGetTag(value) { 33374 return null == value ? void 0 === value ? undefinedTag : nullTag : symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value); 33375 } 33376 var Symbol = __webpack_require__(265), getRawTag = __webpack_require__(566), objectToString = __webpack_require__(567), nullTag = "[object Null]", undefinedTag = "[object Undefined]", symToStringTag = Symbol ? Symbol.toStringTag : void 0; 33377 module.exports = baseGetTag; 33378 }, function(module, exports, __webpack_require__) { 33379 function getRawTag(value) { 33380 var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag]; 33381 try { 33382 value[symToStringTag] = void 0; 33383 var unmasked = !0; 33384 } catch (e) {} 33385 var result = nativeObjectToString.call(value); 33386 return unmasked && (isOwn ? value[symToStringTag] = tag : delete value[symToStringTag]), 33387 result; 33388 } 33389 var Symbol = __webpack_require__(265), objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty, nativeObjectToString = objectProto.toString, symToStringTag = Symbol ? Symbol.toStringTag : void 0; 33390 module.exports = getRawTag; 33391 }, function(module, exports) { 33392 function objectToString(value) { 33393 return nativeObjectToString.call(value); 33394 } 33395 var objectProto = Object.prototype, nativeObjectToString = objectProto.toString; 33396 module.exports = objectToString; 33397 }, function(module, exports) { 33398 function isObjectLike(value) { 33399 return null != value && "object" == typeof value; 33400 } 33401 module.exports = isObjectLike; 33402 }, function(module, exports, __webpack_require__) { 33403 "use strict"; 33404 (function(process) { 33405 function _interopRequireDefault(obj) { 33406 return obj && obj.__esModule ? obj : { 33407 default: obj 33408 }; 33409 } 33410 function getDefaultTheme() { 33411 return defaultTheme || (defaultTheme = (0, _createMuiTheme2.default)()); 33412 } 33413 Object.defineProperty(exports, "__esModule", { 33414 value: !0 33415 }); 33416 var _extends2 = __webpack_require__(6), _extends3 = _interopRequireDefault(_extends2), _getPrototypeOf = __webpack_require__(26), _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf), _classCallCheck2 = __webpack_require__(27), _classCallCheck3 = _interopRequireDefault(_classCallCheck2), _createClass2 = __webpack_require__(28), _createClass3 = _interopRequireDefault(_createClass2), _possibleConstructorReturn2 = __webpack_require__(29), _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2), _inherits2 = __webpack_require__(30), _inherits3 = _interopRequireDefault(_inherits2), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _hoistNonReactStatics = __webpack_require__(162), _hoistNonReactStatics2 = _interopRequireDefault(_hoistNonReactStatics), _wrapDisplayName = __webpack_require__(79), _wrapDisplayName2 = _interopRequireDefault(_wrapDisplayName), _createMuiTheme = __webpack_require__(161), _createMuiTheme2 = _interopRequireDefault(_createMuiTheme), _themeListener = __webpack_require__(160), _themeListener2 = _interopRequireDefault(_themeListener), defaultTheme = void 0, withTheme = function() { 33417 return function(Component) { 33418 var WithTheme = function(_React$Component) { 33419 function WithTheme(props, context) { 33420 (0, _classCallCheck3.default)(this, WithTheme); 33421 var _this = (0, _possibleConstructorReturn3.default)(this, (WithTheme.__proto__ || (0, 33422 _getPrototypeOf2.default)(WithTheme)).call(this, props, context)); 33423 return _this.state = {}, _this.unsubscribeId = null, _this.state = { 33424 theme: _themeListener2.default.initial(context) || getDefaultTheme() 33425 }, _this; 33426 } 33427 return (0, _inherits3.default)(WithTheme, _React$Component), (0, _createClass3.default)(WithTheme, [ { 33428 key: "componentDidMount", 33429 value: function() { 33430 var _this2 = this; 33431 this.unsubscribeId = _themeListener2.default.subscribe(this.context, function(theme) { 33432 _this2.setState({ 33433 theme: theme 33434 }); 33435 }); 33436 } 33437 }, { 33438 key: "componentWillUnmount", 33439 value: function() { 33440 null !== this.unsubscribeId && _themeListener2.default.unsubscribe(this.context, this.unsubscribeId); 33441 } 33442 }, { 33443 key: "render", 33444 value: function() { 33445 return _react2.default.createElement(Component, (0, _extends3.default)({ 33446 theme: this.state.theme 33447 }, this.props)); 33448 } 33449 } ]), WithTheme; 33450 }(_react2.default.Component); 33451 return WithTheme.contextTypes = _themeListener2.default.contextTypes, "production" !== process.env.NODE_ENV && (WithTheme.displayName = (0, 33452 _wrapDisplayName2.default)(Component, "WithTheme")), (0, _hoistNonReactStatics2.default)(WithTheme, Component), 33453 "production" !== process.env.NODE_ENV && (WithTheme.Naked = Component), WithTheme; 33454 }; 33455 }; 33456 exports.default = withTheme; 33457 }).call(exports, __webpack_require__(2)); 33458 }, function(module, exports, __webpack_require__) { 33459 "use strict"; 33460 (function(process) { 33461 function _interopRequireDefault(obj) { 33462 return obj && obj.__esModule ? obj : { 33463 default: obj 33464 }; 33465 } 33466 function HiddenCss(props) { 33467 var children = props.children, classes = props.classes, className = props.className, only = (props.lgDown, 33468 props.lgUp, props.mdDown, props.mdUp, props.only), other = (props.smDown, props.smUp, 33469 props.xlDown, props.xlUp, props.xsDown, props.xsUp, (0, _objectWithoutProperties3.default)(props, [ "children", "classes", "className", "lgDown", "lgUp", "mdDown", "mdUp", "only", "smDown", "smUp", "xlDown", "xlUp", "xsDown", "xsUp" ])); 33470 "production" !== process.env.NODE_ENV && (0, _warning2.default)(0 === (0, _keys2.default)(other).length || 1 === (0, 33471 _keys2.default)(other).length && other.hasOwnProperty("ref"), "Material-UI: unsupported properties received " + (0, 33472 _keys2.default)(other).join(", ") + " by `)) + (("`" + `<Hidden />`) + ("`" + `."); 33473 var classNames = []; 33474 className && classNames.push(className); 33475 for (var i = 0; i < _createBreakpoints.keys.length; i += 1) { 33476 var breakpoint = _createBreakpoints.keys[i], breakpointUp = props[breakpoint + "Up"], breakpointDown = props[breakpoint + "Down"]; 33477 breakpointUp && classNames.push(classes[breakpoint + "Up"]), breakpointDown && classNames.push(classes[breakpoint + "Down"]); 33478 } 33479 if (only) { 33480 (Array.isArray(only) ? only : [ only ]).forEach(function(breakpoint) { 33481 classNames.push(classes["only" + (0, _helpers.capitalize)(breakpoint)]); 33482 }); 33483 } 33484 return _react2.default.createElement("div", { 33485 className: classNames.join(" ") 33486 }, children); 33487 } 33488 Object.defineProperty(exports, "__esModule", { 33489 value: !0 33490 }); 33491 var _keys = __webpack_require__(55), _keys2 = _interopRequireDefault(_keys), _objectWithoutProperties2 = __webpack_require__(7), _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2), _defineProperty2 = __webpack_require__(12), _defineProperty3 = _interopRequireDefault(_defineProperty2), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _warning = __webpack_require__(11), _warning2 = _interopRequireDefault(_warning), _createBreakpoints = __webpack_require__(78), _helpers = __webpack_require__(56), _withStyles = __webpack_require__(10), _withStyles2 = _interopRequireDefault(_withStyles), styles = function(theme) { 33492 var hidden = { 33493 display: "none" 33494 }; 33495 return _createBreakpoints.keys.reduce(function(acc, key) { 33496 return acc["only" + (0, _helpers.capitalize)(key)] = (0, _defineProperty3.default)({}, theme.breakpoints.only(key), hidden), 33497 acc[key + "Up"] = (0, _defineProperty3.default)({}, theme.breakpoints.up(key), hidden), 33498 acc[key + "Down"] = (0, _defineProperty3.default)({}, theme.breakpoints.down(key), hidden), 33499 acc; 33500 }, {}); 33501 }; 33502 HiddenCss.propTypes = "production" !== process.env.NODE_ENV ? { 33503 children: _propTypes2.default.node, 33504 classes: _propTypes2.default.object.isRequired, 33505 className: _propTypes2.default.string, 33506 implementation: _propTypes2.default.oneOf([ "js", "css" ]), 33507 lgDown: _propTypes2.default.bool, 33508 lgUp: _propTypes2.default.bool, 33509 mdDown: _propTypes2.default.bool, 33510 mdUp: _propTypes2.default.bool, 33511 only: _propTypes2.default.oneOfType([ _propTypes2.default.oneOf([ "xs", "sm", "md", "lg", "xl" ]), _propTypes2.default.arrayOf(_propTypes2.default.oneOf([ "xs", "sm", "md", "lg", "xl" ])) ]), 33512 smDown: _propTypes2.default.bool, 33513 smUp: _propTypes2.default.bool, 33514 xlDown: _propTypes2.default.bool, 33515 xlUp: _propTypes2.default.bool, 33516 xsDown: _propTypes2.default.bool, 33517 xsUp: _propTypes2.default.bool 33518 } : {}, exports.default = (0, _withStyles2.default)(styles, { 33519 name: "MuiHiddenCss" 33520 })(HiddenCss); 33521 }).call(exports, __webpack_require__(2)); 33522 }, function(module, __webpack_exports__, __webpack_require__) { 33523 "use strict"; 33524 Object.defineProperty(__webpack_exports__, "__esModule", { 33525 value: !0 33526 }); 33527 var __WEBPACK_IMPORTED_MODULE_1__container_Surface__ = (__webpack_require__(572), 33528 __webpack_require__(82)); 33529 __webpack_require__.d(__webpack_exports__, "Surface", function() { 33530 return __WEBPACK_IMPORTED_MODULE_1__container_Surface__.a; 33531 }); 33532 var __WEBPACK_IMPORTED_MODULE_2__container_Layer__ = __webpack_require__(14); 33533 __webpack_require__.d(__webpack_exports__, "Layer", function() { 33534 return __WEBPACK_IMPORTED_MODULE_2__container_Layer__.a; 33535 }); 33536 var __WEBPACK_IMPORTED_MODULE_3__component_Legend__ = __webpack_require__(180); 33537 __webpack_require__.d(__webpack_exports__, "Legend", function() { 33538 return __WEBPACK_IMPORTED_MODULE_3__component_Legend__.a; 33539 }); 33540 var __WEBPACK_IMPORTED_MODULE_4__component_Tooltip__ = __webpack_require__(125); 33541 __webpack_require__.d(__webpack_exports__, "Tooltip", function() { 33542 return __WEBPACK_IMPORTED_MODULE_4__component_Tooltip__.a; 33543 }); 33544 var __WEBPACK_IMPORTED_MODULE_5__component_ResponsiveContainer__ = __webpack_require__(766); 33545 __webpack_require__.d(__webpack_exports__, "ResponsiveContainer", function() { 33546 return __WEBPACK_IMPORTED_MODULE_5__component_ResponsiveContainer__.a; 33547 }); 33548 var __WEBPACK_IMPORTED_MODULE_6__component_Cell__ = __webpack_require__(88); 33549 __webpack_require__.d(__webpack_exports__, "Cell", function() { 33550 return __WEBPACK_IMPORTED_MODULE_6__component_Cell__.a; 33551 }); 33552 var __WEBPACK_IMPORTED_MODULE_7__component_Text__ = __webpack_require__(61); 33553 __webpack_require__.d(__webpack_exports__, "Text", function() { 33554 return __WEBPACK_IMPORTED_MODULE_7__component_Text__.a; 33555 }); 33556 var __WEBPACK_IMPORTED_MODULE_8__component_Label__ = __webpack_require__(44); 33557 __webpack_require__.d(__webpack_exports__, "Label", function() { 33558 return __WEBPACK_IMPORTED_MODULE_8__component_Label__.a; 33559 }); 33560 var __WEBPACK_IMPORTED_MODULE_9__component_LabelList__ = __webpack_require__(47); 33561 __webpack_require__.d(__webpack_exports__, "LabelList", function() { 33562 return __WEBPACK_IMPORTED_MODULE_9__component_LabelList__.a; 33563 }); 33564 var __WEBPACK_IMPORTED_MODULE_10__shape_Sector__ = __webpack_require__(139); 33565 __webpack_require__.d(__webpack_exports__, "Sector", function() { 33566 return __WEBPACK_IMPORTED_MODULE_10__shape_Sector__.a; 33567 }); 33568 var __WEBPACK_IMPORTED_MODULE_11__shape_Curve__ = __webpack_require__(71); 33569 __webpack_require__.d(__webpack_exports__, "Curve", function() { 33570 return __WEBPACK_IMPORTED_MODULE_11__shape_Curve__.a; 33571 }); 33572 var __WEBPACK_IMPORTED_MODULE_12__shape_Rectangle__ = __webpack_require__(70); 33573 __webpack_require__.d(__webpack_exports__, "Rectangle", function() { 33574 return __WEBPACK_IMPORTED_MODULE_12__shape_Rectangle__.a; 33575 }); 33576 var __WEBPACK_IMPORTED_MODULE_13__shape_Polygon__ = __webpack_require__(214); 33577 __webpack_require__.d(__webpack_exports__, "Polygon", function() { 33578 return __WEBPACK_IMPORTED_MODULE_13__shape_Polygon__.a; 33579 }); 33580 var __WEBPACK_IMPORTED_MODULE_14__shape_Dot__ = __webpack_require__(63); 33581 __webpack_require__.d(__webpack_exports__, "Dot", function() { 33582 return __WEBPACK_IMPORTED_MODULE_14__shape_Dot__.a; 33583 }); 33584 var __WEBPACK_IMPORTED_MODULE_15__shape_Cross__ = __webpack_require__(367); 33585 __webpack_require__.d(__webpack_exports__, "Cross", function() { 33586 return __WEBPACK_IMPORTED_MODULE_15__shape_Cross__.a; 33587 }); 33588 var __WEBPACK_IMPORTED_MODULE_16__shape_Symbols__ = __webpack_require__(181); 33589 __webpack_require__.d(__webpack_exports__, "Symbols", function() { 33590 return __WEBPACK_IMPORTED_MODULE_16__shape_Symbols__.a; 33591 }); 33592 var __WEBPACK_IMPORTED_MODULE_17__polar_PolarGrid__ = __webpack_require__(923); 33593 __webpack_require__.d(__webpack_exports__, "PolarGrid", function() { 33594 return __WEBPACK_IMPORTED_MODULE_17__polar_PolarGrid__.a; 33595 }); 33596 var __WEBPACK_IMPORTED_MODULE_18__polar_PolarRadiusAxis__ = __webpack_require__(140); 33597 __webpack_require__.d(__webpack_exports__, "PolarRadiusAxis", function() { 33598 return __WEBPACK_IMPORTED_MODULE_18__polar_PolarRadiusAxis__.a; 33599 }); 33600 var __WEBPACK_IMPORTED_MODULE_19__polar_PolarAngleAxis__ = __webpack_require__(141); 33601 __webpack_require__.d(__webpack_exports__, "PolarAngleAxis", function() { 33602 return __WEBPACK_IMPORTED_MODULE_19__polar_PolarAngleAxis__.a; 33603 }); 33604 var __WEBPACK_IMPORTED_MODULE_20__polar_Pie__ = __webpack_require__(369); 33605 __webpack_require__.d(__webpack_exports__, "Pie", function() { 33606 return __WEBPACK_IMPORTED_MODULE_20__polar_Pie__.a; 33607 }); 33608 var __WEBPACK_IMPORTED_MODULE_21__polar_Radar__ = __webpack_require__(370); 33609 __webpack_require__.d(__webpack_exports__, "Radar", function() { 33610 return __WEBPACK_IMPORTED_MODULE_21__polar_Radar__.a; 33611 }); 33612 var __WEBPACK_IMPORTED_MODULE_22__polar_RadialBar__ = __webpack_require__(371); 33613 __webpack_require__.d(__webpack_exports__, "RadialBar", function() { 33614 return __WEBPACK_IMPORTED_MODULE_22__polar_RadialBar__.a; 33615 }); 33616 var __WEBPACK_IMPORTED_MODULE_23__cartesian_Brush__ = __webpack_require__(372); 33617 __webpack_require__.d(__webpack_exports__, "Brush", function() { 33618 return __WEBPACK_IMPORTED_MODULE_23__cartesian_Brush__.a; 33619 }); 33620 var __WEBPACK_IMPORTED_MODULE_24__cartesian_ReferenceLine__ = __webpack_require__(365); 33621 __webpack_require__.d(__webpack_exports__, "ReferenceLine", function() { 33622 return __WEBPACK_IMPORTED_MODULE_24__cartesian_ReferenceLine__.a; 33623 }); 33624 var __WEBPACK_IMPORTED_MODULE_25__cartesian_ReferenceDot__ = __webpack_require__(364); 33625 __webpack_require__.d(__webpack_exports__, "ReferenceDot", function() { 33626 return __WEBPACK_IMPORTED_MODULE_25__cartesian_ReferenceDot__.a; 33627 }); 33628 var __WEBPACK_IMPORTED_MODULE_26__cartesian_ReferenceArea__ = __webpack_require__(366); 33629 __webpack_require__.d(__webpack_exports__, "ReferenceArea", function() { 33630 return __WEBPACK_IMPORTED_MODULE_26__cartesian_ReferenceArea__.a; 33631 }); 33632 var __WEBPACK_IMPORTED_MODULE_27__cartesian_CartesianAxis__ = __webpack_require__(374); 33633 __webpack_require__.d(__webpack_exports__, "CartesianAxis", function() { 33634 return __WEBPACK_IMPORTED_MODULE_27__cartesian_CartesianAxis__.a; 33635 }); 33636 var __WEBPACK_IMPORTED_MODULE_28__cartesian_CartesianGrid__ = __webpack_require__(931); 33637 __webpack_require__.d(__webpack_exports__, "CartesianGrid", function() { 33638 return __WEBPACK_IMPORTED_MODULE_28__cartesian_CartesianGrid__.a; 33639 }); 33640 var __WEBPACK_IMPORTED_MODULE_29__cartesian_Line__ = __webpack_require__(215); 33641 __webpack_require__.d(__webpack_exports__, "Line", function() { 33642 return __WEBPACK_IMPORTED_MODULE_29__cartesian_Line__.a; 33643 }); 33644 var __WEBPACK_IMPORTED_MODULE_30__cartesian_Area__ = __webpack_require__(216); 33645 __webpack_require__.d(__webpack_exports__, "Area", function() { 33646 return __WEBPACK_IMPORTED_MODULE_30__cartesian_Area__.a; 33647 }); 33648 var __WEBPACK_IMPORTED_MODULE_31__cartesian_Bar__ = __webpack_require__(217); 33649 __webpack_require__.d(__webpack_exports__, "Bar", function() { 33650 return __WEBPACK_IMPORTED_MODULE_31__cartesian_Bar__.a; 33651 }); 33652 var __WEBPACK_IMPORTED_MODULE_32__cartesian_Scatter__ = __webpack_require__(218); 33653 __webpack_require__.d(__webpack_exports__, "Scatter", function() { 33654 return __WEBPACK_IMPORTED_MODULE_32__cartesian_Scatter__.a; 33655 }); 33656 var __WEBPACK_IMPORTED_MODULE_33__cartesian_XAxis__ = __webpack_require__(72); 33657 __webpack_require__.d(__webpack_exports__, "XAxis", function() { 33658 return __WEBPACK_IMPORTED_MODULE_33__cartesian_XAxis__.a; 33659 }); 33660 var __WEBPACK_IMPORTED_MODULE_34__cartesian_YAxis__ = __webpack_require__(73); 33661 __webpack_require__.d(__webpack_exports__, "YAxis", function() { 33662 return __WEBPACK_IMPORTED_MODULE_34__cartesian_YAxis__.a; 33663 }); 33664 var __WEBPACK_IMPORTED_MODULE_35__cartesian_ZAxis__ = __webpack_require__(142); 33665 __webpack_require__.d(__webpack_exports__, "ZAxis", function() { 33666 return __WEBPACK_IMPORTED_MODULE_35__cartesian_ZAxis__.a; 33667 }); 33668 var __WEBPACK_IMPORTED_MODULE_36__cartesian_ErrorBar__ = __webpack_require__(95); 33669 __webpack_require__.d(__webpack_exports__, "ErrorBar", function() { 33670 return __WEBPACK_IMPORTED_MODULE_36__cartesian_ErrorBar__.a; 33671 }); 33672 var __WEBPACK_IMPORTED_MODULE_37__chart_LineChart__ = __webpack_require__(932); 33673 __webpack_require__.d(__webpack_exports__, "LineChart", function() { 33674 return __WEBPACK_IMPORTED_MODULE_37__chart_LineChart__.a; 33675 }); 33676 var __WEBPACK_IMPORTED_MODULE_38__chart_BarChart__ = __webpack_require__(936); 33677 __webpack_require__.d(__webpack_exports__, "BarChart", function() { 33678 return __WEBPACK_IMPORTED_MODULE_38__chart_BarChart__.a; 33679 }); 33680 var __WEBPACK_IMPORTED_MODULE_39__chart_PieChart__ = __webpack_require__(937); 33681 __webpack_require__.d(__webpack_exports__, "PieChart", function() { 33682 return __WEBPACK_IMPORTED_MODULE_39__chart_PieChart__.a; 33683 }); 33684 var __WEBPACK_IMPORTED_MODULE_40__chart_Treemap__ = __webpack_require__(938); 33685 __webpack_require__.d(__webpack_exports__, "Treemap", function() { 33686 return __WEBPACK_IMPORTED_MODULE_40__chart_Treemap__.a; 33687 }); 33688 var __WEBPACK_IMPORTED_MODULE_41__chart_Sankey__ = __webpack_require__(939); 33689 __webpack_require__.d(__webpack_exports__, "Sankey", function() { 33690 return __WEBPACK_IMPORTED_MODULE_41__chart_Sankey__.a; 33691 }); 33692 var __WEBPACK_IMPORTED_MODULE_42__chart_RadarChart__ = __webpack_require__(942); 33693 __webpack_require__.d(__webpack_exports__, "RadarChart", function() { 33694 return __WEBPACK_IMPORTED_MODULE_42__chart_RadarChart__.a; 33695 }); 33696 var __WEBPACK_IMPORTED_MODULE_43__chart_ScatterChart__ = __webpack_require__(943); 33697 __webpack_require__.d(__webpack_exports__, "ScatterChart", function() { 33698 return __WEBPACK_IMPORTED_MODULE_43__chart_ScatterChart__.a; 33699 }); 33700 var __WEBPACK_IMPORTED_MODULE_44__chart_AreaChart__ = __webpack_require__(944); 33701 __webpack_require__.d(__webpack_exports__, "AreaChart", function() { 33702 return __WEBPACK_IMPORTED_MODULE_44__chart_AreaChart__.a; 33703 }); 33704 var __WEBPACK_IMPORTED_MODULE_45__chart_RadialBarChart__ = __webpack_require__(945); 33705 __webpack_require__.d(__webpack_exports__, "RadialBarChart", function() { 33706 return __WEBPACK_IMPORTED_MODULE_45__chart_RadialBarChart__.a; 33707 }); 33708 var __WEBPACK_IMPORTED_MODULE_46__chart_ComposedChart__ = __webpack_require__(946); 33709 __webpack_require__.d(__webpack_exports__, "ComposedChart", function() { 33710 return __WEBPACK_IMPORTED_MODULE_46__chart_ComposedChart__.a; 33711 }); 33712 }, function(module, __webpack_exports__, __webpack_require__) { 33713 "use strict"; 33714 var __WEBPACK_IMPORTED_MODULE_0_core_js_es6_math__ = __webpack_require__(573), testObject = (__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_core_js_es6_math__), 33715 {}); 33716 if (!Object.setPrototypeOf && !testObject.__proto__) { 33717 var nativeGetPrototypeOf = Object.getPrototypeOf; 33718 Object.getPrototypeOf = function(object) { 33719 return object.__proto__ ? object.__proto__ : nativeGetPrototypeOf.call(Object, object); 33720 }; 33721 } 33722 }, function(module, exports, __webpack_require__) { 33723 __webpack_require__(574), __webpack_require__(586), __webpack_require__(587), __webpack_require__(588), 33724 __webpack_require__(589), __webpack_require__(590), __webpack_require__(591), __webpack_require__(592), 33725 __webpack_require__(594), __webpack_require__(595), __webpack_require__(596), __webpack_require__(597), 33726 __webpack_require__(598), __webpack_require__(599), __webpack_require__(600), __webpack_require__(601), 33727 __webpack_require__(602), module.exports = __webpack_require__(168).Math; 33728 }, function(module, exports, __webpack_require__) { 33729 var $export = __webpack_require__(15), log1p = __webpack_require__(267), sqrt = Math.sqrt, $acosh = Math.acosh; 33730 $export($export.S + $export.F * !($acosh && 710 == Math.floor($acosh(Number.MAX_VALUE)) && $acosh(1 / 0) == 1 / 0), "Math", { 33731 acosh: function(x) { 33732 return (x = +x) < 1 ? NaN : x > 94906265.62425156 ? Math.log(x) + Math.LN2 : log1p(x - 1 + sqrt(x - 1) * sqrt(x + 1)); 33733 } 33734 }); 33735 }, function(module, exports, __webpack_require__) { 33736 var anObject = __webpack_require__(576), IE8_DOM_DEFINE = __webpack_require__(577), toPrimitive = __webpack_require__(579), dP = Object.defineProperty; 33737 exports.f = __webpack_require__(170) ? Object.defineProperty : function(O, P, Attributes) { 33738 if (anObject(O), P = toPrimitive(P, !0), anObject(Attributes), IE8_DOM_DEFINE) try { 33739 return dP(O, P, Attributes); 33740 } catch (e) {} 33741 if ("get" in Attributes || "set" in Attributes) throw TypeError("Accessors not supported!"); 33742 return "value" in Attributes && (O[P] = Attributes.value), O; 33743 }; 33744 }, function(module, exports, __webpack_require__) { 33745 var isObject = __webpack_require__(169); 33746 module.exports = function(it) { 33747 if (!isObject(it)) throw TypeError(it + " is not an object!"); 33748 return it; 33749 }; 33750 }, function(module, exports, __webpack_require__) { 33751 module.exports = !__webpack_require__(170) && !__webpack_require__(114)(function() { 33752 return 7 != Object.defineProperty(__webpack_require__(578)("div"), "a", { 33753 get: function() { 33754 return 7; 33755 } 33756 }).a; 33757 }); 33758 }, function(module, exports, __webpack_require__) { 33759 var isObject = __webpack_require__(169), document = __webpack_require__(167).document, is = isObject(document) && isObject(document.createElement); 33760 module.exports = function(it) { 33761 return is ? document.createElement(it) : {}; 33762 }; 33763 }, function(module, exports, __webpack_require__) { 33764 var isObject = __webpack_require__(169); 33765 module.exports = function(it, S) { 33766 if (!isObject(it)) return it; 33767 var fn, val; 33768 if (S && "function" == typeof (fn = it.toString) && !isObject(val = fn.call(it))) return val; 33769 if ("function" == typeof (fn = it.valueOf) && !isObject(val = fn.call(it))) return val; 33770 if (!S && "function" == typeof (fn = it.toString) && !isObject(val = fn.call(it))) return val; 33771 throw TypeError("Can't convert object to primitive value"); 33772 }; 33773 }, function(module, exports) { 33774 module.exports = function(bitmap, value) { 33775 return { 33776 enumerable: !(1 & bitmap), 33777 configurable: !(2 & bitmap), 33778 writable: !(4 & bitmap), 33779 value: value 33780 }; 33781 }; 33782 }, function(module, exports, __webpack_require__) { 33783 var global = __webpack_require__(167), hide = __webpack_require__(266), has = __webpack_require__(582), SRC = __webpack_require__(583)("src"), $toString = Function.toString, TPL = ("" + $toString).split("toString"); 33784 __webpack_require__(168).inspectSource = function(it) { 33785 return $toString.call(it); 33786 }, (module.exports = function(O, key, val, safe) { 33787 var isFunction = "function" == typeof val; 33788 isFunction && (has(val, "name") || hide(val, "name", key)), O[key] !== val && (isFunction && (has(val, SRC) || hide(val, SRC, O[key] ? "" + O[key] : TPL.join(String(key)))), 33789 O === global ? O[key] = val : safe ? O[key] ? O[key] = val : hide(O, key, val) : (delete O[key], 33790 hide(O, key, val))); 33791 })(Function.prototype, "toString", function() { 33792 return "function" == typeof this && this[SRC] || $toString.call(this); 33793 }); 33794 }, function(module, exports) { 33795 var hasOwnProperty = {}.hasOwnProperty; 33796 module.exports = function(it, key) { 33797 return hasOwnProperty.call(it, key); 33798 }; 33799 }, function(module, exports) { 33800 var id = 0, px = Math.random(); 33801 module.exports = function(key) { 33802 return "Symbol(".concat(void 0 === key ? "" : key, ")_", (++id + px).toString(36)); 33803 }; 33804 }, function(module, exports, __webpack_require__) { 33805 var aFunction = __webpack_require__(585); 33806 module.exports = function(fn, that, length) { 33807 if (aFunction(fn), void 0 === that) return fn; 33808 switch (length) { 33809 case 1: 33810 return function(a) { 33811 return fn.call(that, a); 33812 }; 33813 33814 case 2: 33815 return function(a, b) { 33816 return fn.call(that, a, b); 33817 }; 33818 33819 case 3: 33820 return function(a, b, c) { 33821 return fn.call(that, a, b, c); 33822 }; 33823 } 33824 return function() { 33825 return fn.apply(that, arguments); 33826 }; 33827 }; 33828 }, function(module, exports) { 33829 module.exports = function(it) { 33830 if ("function" != typeof it) throw TypeError(it + " is not a function!"); 33831 return it; 33832 }; 33833 }, function(module, exports, __webpack_require__) { 33834 function asinh(x) { 33835 return isFinite(x = +x) && 0 != x ? x < 0 ? -asinh(-x) : Math.log(x + Math.sqrt(x * x + 1)) : x; 33836 } 33837 var $export = __webpack_require__(15), $asinh = Math.asinh; 33838 $export($export.S + $export.F * !($asinh && 1 / $asinh(0) > 0), "Math", { 33839 asinh: asinh 33840 }); 33841 }, function(module, exports, __webpack_require__) { 33842 var $export = __webpack_require__(15), $atanh = Math.atanh; 33843 $export($export.S + $export.F * !($atanh && 1 / $atanh(-0) < 0), "Math", { 33844 atanh: function(x) { 33845 return 0 == (x = +x) ? x : Math.log((1 + x) / (1 - x)) / 2; 33846 } 33847 }); 33848 }, function(module, exports, __webpack_require__) { 33849 var $export = __webpack_require__(15), sign = __webpack_require__(171); 33850 $export($export.S, "Math", { 33851 cbrt: function(x) { 33852 return sign(x = +x) * Math.pow(Math.abs(x), 1 / 3); 33853 } 33854 }); 33855 }, function(module, exports, __webpack_require__) { 33856 var $export = __webpack_require__(15); 33857 $export($export.S, "Math", { 33858 clz32: function(x) { 33859 return (x >>>= 0) ? 31 - Math.floor(Math.log(x + .5) * Math.LOG2E) : 32; 33860 } 33861 }); 33862 }, function(module, exports, __webpack_require__) { 33863 var $export = __webpack_require__(15), exp = Math.exp; 33864 $export($export.S, "Math", { 33865 cosh: function(x) { 33866 return (exp(x = +x) + exp(-x)) / 2; 33867 } 33868 }); 33869 }, function(module, exports, __webpack_require__) { 33870 var $export = __webpack_require__(15), $expm1 = __webpack_require__(172); 33871 $export($export.S + $export.F * ($expm1 != Math.expm1), "Math", { 33872 expm1: $expm1 33873 }); 33874 }, function(module, exports, __webpack_require__) { 33875 var $export = __webpack_require__(15); 33876 $export($export.S, "Math", { 33877 fround: __webpack_require__(593) 33878 }); 33879 }, function(module, exports, __webpack_require__) { 33880 var sign = __webpack_require__(171), pow = Math.pow, EPSILON = pow(2, -52), EPSILON32 = pow(2, -23), MAX32 = pow(2, 127) * (2 - EPSILON32), MIN32 = pow(2, -126), roundTiesToEven = function(n) { 33881 return n + 1 / EPSILON - 1 / EPSILON; 33882 }; 33883 module.exports = Math.fround || function(x) { 33884 var a, result, $abs = Math.abs(x), $sign = sign(x); 33885 return $abs < MIN32 ? $sign * roundTiesToEven($abs / MIN32 / EPSILON32) * MIN32 * EPSILON32 : (a = (1 + EPSILON32 / EPSILON) * $abs, 33886 result = a - (a - $abs), result > MAX32 || result != result ? $sign * (1 / 0) : $sign * result); 33887 }; 33888 }, function(module, exports, __webpack_require__) { 33889 var $export = __webpack_require__(15), abs = Math.abs; 33890 $export($export.S, "Math", { 33891 hypot: function(value1, value2) { 33892 for (var arg, div, sum = 0, i = 0, aLen = arguments.length, larg = 0; i < aLen; ) arg = abs(arguments[i++]), 33893 larg < arg ? (div = larg / arg, sum = sum * div * div + 1, larg = arg) : arg > 0 ? (div = arg / larg, 33894 sum += div * div) : sum += arg; 33895 return larg === 1 / 0 ? 1 / 0 : larg * Math.sqrt(sum); 33896 } 33897 }); 33898 }, function(module, exports, __webpack_require__) { 33899 var $export = __webpack_require__(15), $imul = Math.imul; 33900 $export($export.S + $export.F * __webpack_require__(114)(function() { 33901 return -5 != $imul(4294967295, 5) || 2 != $imul.length; 33902 }), "Math", { 33903 imul: function(x, y) { 33904 var xn = +x, yn = +y, xl = 65535 & xn, yl = 65535 & yn; 33905 return 0 | xl * yl + ((65535 & xn >>> 16) * yl + xl * (65535 & yn >>> 16) << 16 >>> 0); 33906 } 33907 }); 33908 }, function(module, exports, __webpack_require__) { 33909 var $export = __webpack_require__(15); 33910 $export($export.S, "Math", { 33911 log10: function(x) { 33912 return Math.log(x) * Math.LOG10E; 33913 } 33914 }); 33915 }, function(module, exports, __webpack_require__) { 33916 var $export = __webpack_require__(15); 33917 $export($export.S, "Math", { 33918 log1p: __webpack_require__(267) 33919 }); 33920 }, function(module, exports, __webpack_require__) { 33921 var $export = __webpack_require__(15); 33922 $export($export.S, "Math", { 33923 log2: function(x) { 33924 return Math.log(x) / Math.LN2; 33925 } 33926 }); 33927 }, function(module, exports, __webpack_require__) { 33928 var $export = __webpack_require__(15); 33929 $export($export.S, "Math", { 33930 sign: __webpack_require__(171) 33931 }); 33932 }, function(module, exports, __webpack_require__) { 33933 var $export = __webpack_require__(15), expm1 = __webpack_require__(172), exp = Math.exp; 33934 $export($export.S + $export.F * __webpack_require__(114)(function() { 33935 return -2e-17 != !Math.sinh(-2e-17); 33936 }), "Math", { 33937 sinh: function(x) { 33938 return Math.abs(x = +x) < 1 ? (expm1(x) - expm1(-x)) / 2 : (exp(x - 1) - exp(-x - 1)) * (Math.E / 2); 33939 } 33940 }); 33941 }, function(module, exports, __webpack_require__) { 33942 var $export = __webpack_require__(15), expm1 = __webpack_require__(172), exp = Math.exp; 33943 $export($export.S, "Math", { 33944 tanh: function(x) { 33945 var a = expm1(x = +x), b = expm1(-x); 33946 return a == 1 / 0 ? 1 : b == 1 / 0 ? -1 : (a - b) / (exp(x) + exp(-x)); 33947 } 33948 }); 33949 }, function(module, exports, __webpack_require__) { 33950 var $export = __webpack_require__(15); 33951 $export($export.S, "Math", { 33952 trunc: function(it) { 33953 return (it > 0 ? Math.floor : Math.ceil)(it); 33954 } 33955 }); 33956 }, function(module, exports, __webpack_require__) { 33957 function getRawTag(value) { 33958 var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag]; 33959 try { 33960 value[symToStringTag] = void 0; 33961 var unmasked = !0; 33962 } catch (e) {} 33963 var result = nativeObjectToString.call(value); 33964 return unmasked && (isOwn ? value[symToStringTag] = tag : delete value[symToStringTag]), 33965 result; 33966 } 33967 var Symbol = __webpack_require__(83), objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty, nativeObjectToString = objectProto.toString, symToStringTag = Symbol ? Symbol.toStringTag : void 0; 33968 module.exports = getRawTag; 33969 }, function(module, exports) { 33970 function objectToString(value) { 33971 return nativeObjectToString.call(value); 33972 } 33973 var objectProto = Object.prototype, nativeObjectToString = objectProto.toString; 33974 module.exports = objectToString; 33975 }, function(module, exports, __webpack_require__) { 33976 var memoizeCapped = __webpack_require__(606), rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, reEscapeChar = /\\(\\)?/g, stringToPath = memoizeCapped(function(string) { 33977 var result = []; 33978 return 46 === string.charCodeAt(0) && result.push(""), string.replace(rePropName, function(match, number, quote, subString) { 33979 result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match); 33980 }), result; 33981 }); 33982 module.exports = stringToPath; 33983 }, function(module, exports, __webpack_require__) { 33984 function memoizeCapped(func) { 33985 var result = memoize(func, function(key) { 33986 return cache.size === MAX_MEMOIZE_SIZE && cache.clear(), key; 33987 }), cache = result.cache; 33988 return result; 33989 } 33990 var memoize = __webpack_require__(607), MAX_MEMOIZE_SIZE = 500; 33991 module.exports = memoizeCapped; 33992 }, function(module, exports, __webpack_require__) { 33993 function memoize(func, resolver) { 33994 if ("function" != typeof func || null != resolver && "function" != typeof resolver) throw new TypeError(FUNC_ERROR_TEXT); 33995 var memoized = function() { 33996 var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache; 33997 if (cache.has(key)) return cache.get(key); 33998 var result = func.apply(this, args); 33999 return memoized.cache = cache.set(key, result) || cache, result; 34000 }; 34001 return memoized.cache = new (memoize.Cache || MapCache)(), memoized; 34002 } 34003 var MapCache = __webpack_require__(176), FUNC_ERROR_TEXT = "Expected a function"; 34004 memoize.Cache = MapCache, module.exports = memoize; 34005 }, function(module, exports, __webpack_require__) { 34006 function mapCacheClear() { 34007 this.size = 0, this.__data__ = { 34008 hash: new Hash(), 34009 map: new (Map || ListCache)(), 34010 string: new Hash() 34011 }; 34012 } 34013 var Hash = __webpack_require__(609), ListCache = __webpack_require__(116), Map = __webpack_require__(178); 34014 module.exports = mapCacheClear; 34015 }, function(module, exports, __webpack_require__) { 34016 function Hash(entries) { 34017 var index = -1, length = null == entries ? 0 : entries.length; 34018 for (this.clear(); ++index < length; ) { 34019 var entry = entries[index]; 34020 this.set(entry[0], entry[1]); 34021 } 34022 } 34023 var hashClear = __webpack_require__(610), hashDelete = __webpack_require__(615), hashGet = __webpack_require__(616), hashHas = __webpack_require__(617), hashSet = __webpack_require__(618); 34024 Hash.prototype.clear = hashClear, Hash.prototype.delete = hashDelete, Hash.prototype.get = hashGet, 34025 Hash.prototype.has = hashHas, Hash.prototype.set = hashSet, module.exports = Hash; 34026 }, function(module, exports, __webpack_require__) { 34027 function hashClear() { 34028 this.__data__ = nativeCreate ? nativeCreate(null) : {}, this.size = 0; 34029 } 34030 var nativeCreate = __webpack_require__(115); 34031 module.exports = hashClear; 34032 }, function(module, exports, __webpack_require__) { 34033 function baseIsNative(value) { 34034 return !(!isObject(value) || isMasked(value)) && (isFunction(value) ? reIsNative : reIsHostCtor).test(toSource(value)); 34035 } 34036 var isFunction = __webpack_require__(8), isMasked = __webpack_require__(612), isObject = __webpack_require__(32), toSource = __webpack_require__(271), reRegExpChar = /[\\^$.*+?()[\]{}|]/g, reIsHostCtor = /^\[object .+?Constructor\]$/, funcProto = Function.prototype, objectProto = Object.prototype, funcToString = funcProto.toString, hasOwnProperty = objectProto.hasOwnProperty, reIsNative = RegExp("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"); 34037 module.exports = baseIsNative; 34038 }, function(module, exports, __webpack_require__) { 34039 function isMasked(func) { 34040 return !!maskSrcKey && maskSrcKey in func; 34041 } 34042 var coreJsData = __webpack_require__(613), maskSrcKey = function() { 34043 var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ""); 34044 return uid ? "Symbol(src)_1." + uid : ""; 34045 }(); 34046 module.exports = isMasked; 34047 }, function(module, exports, __webpack_require__) { 34048 var root = __webpack_require__(31), coreJsData = root["__core-js_shared__"]; 34049 module.exports = coreJsData; 34050 }, function(module, exports) { 34051 function getValue(object, key) { 34052 return null == object ? void 0 : object[key]; 34053 } 34054 module.exports = getValue; 34055 }, function(module, exports) { 34056 function hashDelete(key) { 34057 var result = this.has(key) && delete this.__data__[key]; 34058 return this.size -= result ? 1 : 0, result; 34059 } 34060 module.exports = hashDelete; 34061 }, function(module, exports, __webpack_require__) { 34062 function hashGet(key) { 34063 var data = this.__data__; 34064 if (nativeCreate) { 34065 var result = data[key]; 34066 return result === HASH_UNDEFINED ? void 0 : result; 34067 } 34068 return hasOwnProperty.call(data, key) ? data[key] : void 0; 34069 } 34070 var nativeCreate = __webpack_require__(115), HASH_UNDEFINED = "__lodash_hash_undefined__", objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty; 34071 module.exports = hashGet; 34072 }, function(module, exports, __webpack_require__) { 34073 function hashHas(key) { 34074 var data = this.__data__; 34075 return nativeCreate ? void 0 !== data[key] : hasOwnProperty.call(data, key); 34076 } 34077 var nativeCreate = __webpack_require__(115), objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty; 34078 module.exports = hashHas; 34079 }, function(module, exports, __webpack_require__) { 34080 function hashSet(key, value) { 34081 var data = this.__data__; 34082 return this.size += this.has(key) ? 0 : 1, data[key] = nativeCreate && void 0 === value ? HASH_UNDEFINED : value, 34083 this; 34084 } 34085 var nativeCreate = __webpack_require__(115), HASH_UNDEFINED = "__lodash_hash_undefined__"; 34086 module.exports = hashSet; 34087 }, function(module, exports) { 34088 function listCacheClear() { 34089 this.__data__ = [], this.size = 0; 34090 } 34091 module.exports = listCacheClear; 34092 }, function(module, exports, __webpack_require__) { 34093 function listCacheDelete(key) { 34094 var data = this.__data__, index = assocIndexOf(data, key); 34095 return !(index < 0) && (index == data.length - 1 ? data.pop() : splice.call(data, index, 1), 34096 --this.size, !0); 34097 } 34098 var assocIndexOf = __webpack_require__(117), arrayProto = Array.prototype, splice = arrayProto.splice; 34099 module.exports = listCacheDelete; 34100 }, function(module, exports, __webpack_require__) { 34101 function listCacheGet(key) { 34102 var data = this.__data__, index = assocIndexOf(data, key); 34103 return index < 0 ? void 0 : data[index][1]; 34104 } 34105 var assocIndexOf = __webpack_require__(117); 34106 module.exports = listCacheGet; 34107 }, function(module, exports, __webpack_require__) { 34108 function listCacheHas(key) { 34109 return assocIndexOf(this.__data__, key) > -1; 34110 } 34111 var assocIndexOf = __webpack_require__(117); 34112 module.exports = listCacheHas; 34113 }, function(module, exports, __webpack_require__) { 34114 function listCacheSet(key, value) { 34115 var data = this.__data__, index = assocIndexOf(data, key); 34116 return index < 0 ? (++this.size, data.push([ key, value ])) : data[index][1] = value, 34117 this; 34118 } 34119 var assocIndexOf = __webpack_require__(117); 34120 module.exports = listCacheSet; 34121 }, function(module, exports, __webpack_require__) { 34122 function mapCacheDelete(key) { 34123 var result = getMapData(this, key).delete(key); 34124 return this.size -= result ? 1 : 0, result; 34125 } 34126 var getMapData = __webpack_require__(118); 34127 module.exports = mapCacheDelete; 34128 }, function(module, exports) { 34129 function isKeyable(value) { 34130 var type = typeof value; 34131 return "string" == type || "number" == type || "symbol" == type || "boolean" == type ? "__proto__" !== value : null === value; 34132 } 34133 module.exports = isKeyable; 34134 }, function(module, exports, __webpack_require__) { 34135 function mapCacheGet(key) { 34136 return getMapData(this, key).get(key); 34137 } 34138 var getMapData = __webpack_require__(118); 34139 module.exports = mapCacheGet; 34140 }, function(module, exports, __webpack_require__) { 34141 function mapCacheHas(key) { 34142 return getMapData(this, key).has(key); 34143 } 34144 var getMapData = __webpack_require__(118); 34145 module.exports = mapCacheHas; 34146 }, function(module, exports, __webpack_require__) { 34147 function mapCacheSet(key, value) { 34148 var data = getMapData(this, key), size = data.size; 34149 return data.set(key, value), this.size += data.size == size ? 0 : 1, this; 34150 } 34151 var getMapData = __webpack_require__(118); 34152 module.exports = mapCacheSet; 34153 }, function(module, exports, __webpack_require__) { 34154 function toString(value) { 34155 return null == value ? "" : baseToString(value); 34156 } 34157 var baseToString = __webpack_require__(630); 34158 module.exports = toString; 34159 }, function(module, exports, __webpack_require__) { 34160 function baseToString(value) { 34161 if ("string" == typeof value) return value; 34162 if (isArray(value)) return arrayMap(value, baseToString) + ""; 34163 if (isSymbol(value)) return symbolToString ? symbolToString.call(value) : ""; 34164 var result = value + ""; 34165 return "0" == result && 1 / value == -INFINITY ? "-0" : result; 34166 } 34167 var Symbol = __webpack_require__(83), arrayMap = __webpack_require__(179), isArray = __webpack_require__(13), isSymbol = __webpack_require__(67), INFINITY = 1 / 0, symbolProto = Symbol ? Symbol.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0; 34168 module.exports = baseToString; 34169 }, function(module, __webpack_exports__, __webpack_require__) { 34170 "use strict"; 34171 function _defineProperty(obj, key, value) { 34172 return key in obj ? Object.defineProperty(obj, key, { 34173 value: value, 34174 enumerable: !0, 34175 configurable: !0, 34176 writable: !0 34177 }) : obj[key] = value, obj; 34178 } 34179 function _classCallCheck(instance, Constructor) { 34180 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 34181 } 34182 function _possibleConstructorReturn(self, call) { 34183 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 34184 return !call || "object" != typeof call && "function" != typeof call ? self : call; 34185 } 34186 function _inherits(subClass, superClass) { 34187 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 34188 subClass.prototype = Object.create(superClass && superClass.prototype, { 34189 constructor: { 34190 value: subClass, 34191 enumerable: !1, 34192 writable: !0, 34193 configurable: !0 34194 } 34195 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 34196 } 34197 var _class, _class2, _temp, __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__), __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__), __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(3), __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__), __WEBPACK_IMPORTED_MODULE_3__util_PureRender__ = __webpack_require__(5), __WEBPACK_IMPORTED_MODULE_4__container_Surface__ = __webpack_require__(82), __WEBPACK_IMPORTED_MODULE_5__shape_Symbols__ = __webpack_require__(181), __WEBPACK_IMPORTED_MODULE_6__util_ReactUtils__ = __webpack_require__(4), _extends = Object.assign || function(target) { 34198 for (var i = 1; i < arguments.length; i++) { 34199 var source = arguments[i]; 34200 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 34201 } 34202 return target; 34203 }, _createClass = function() { 34204 function defineProperties(target, props) { 34205 for (var i = 0; i < props.length; i++) { 34206 var descriptor = props[i]; 34207 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 34208 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 34209 } 34210 } 34211 return function(Constructor, protoProps, staticProps) { 34212 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 34213 Constructor; 34214 }; 34215 }(), ICON_TYPES = __WEBPACK_IMPORTED_MODULE_6__util_ReactUtils__.b.filter(function(type) { 34216 return "none" !== type; 34217 }), DefaultLegendContent = Object(__WEBPACK_IMPORTED_MODULE_3__util_PureRender__.a)((_temp = _class2 = function(_Component) { 34218 function DefaultLegendContent() { 34219 return _classCallCheck(this, DefaultLegendContent), _possibleConstructorReturn(this, (DefaultLegendContent.__proto__ || Object.getPrototypeOf(DefaultLegendContent)).apply(this, arguments)); 34220 } 34221 return _inherits(DefaultLegendContent, _Component), _createClass(DefaultLegendContent, [ { 34222 key: "renderIcon", 34223 value: function(data) { 34224 var inactiveColor = this.props.inactiveColor, color = data.inactive ? inactiveColor : data.color; 34225 return "plainline" === data.type ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("line", { 34226 strokeWidth: 4, 34227 fill: "none", 34228 stroke: color, 34229 strokeDasharray: data.payload.strokeDasharray, 34230 x1: 0, 34231 y1: 16, 34232 x2: 32, 34233 y2: 16, 34234 className: "recharts-legend-icon" 34235 }) : "line" === data.type ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("path", { 34236 strokeWidth: 4, 34237 fill: "none", 34238 stroke: color, 34239 d: "M0,16h" + 32 / 3 + "\n A" + 32 / 6 + "," + 32 / 6 + ",0,1,1," + 32 / 3 * 2 + ",16\n H32M" + 32 / 3 * 2 + ",16\n A" + 32 / 6 + "," + 32 / 6 + ",0,1,1," + 32 / 3 + ",16", 34240 className: "recharts-legend-icon" 34241 }) : "rect" === data.type ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("path", { 34242 stroke: "none", 34243 fill: color, 34244 d: "M0,4h32v24h-32z", 34245 className: "recharts-legend-icon" 34246 }) : __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__shape_Symbols__.a, { 34247 fill: color, 34248 cx: 16, 34249 cy: 16, 34250 size: 32, 34251 sizeType: "diameter", 34252 type: data.type 34253 }); 34254 } 34255 }, { 34256 key: "renderItems", 34257 value: function() { 34258 var _this2 = this, _props = this.props, payload = _props.payload, iconSize = _props.iconSize, layout = _props.layout, formatter = _props.formatter, viewBox = { 34259 x: 0, 34260 y: 0, 34261 width: 32, 34262 height: 32 34263 }, itemStyle = { 34264 display: "horizontal" === layout ? "inline-block" : "block", 34265 marginRight: 10 34266 }, svgStyle = { 34267 display: "inline-block", 34268 verticalAlign: "middle", 34269 marginRight: 4 34270 }; 34271 return payload.map(function(entry, i) { 34272 var _classNames, finalFormatter = entry.formatter || formatter, className = __WEBPACK_IMPORTED_MODULE_2_classnames___default()((_classNames = { 34273 "recharts-legend-item": !0 34274 }, _defineProperty(_classNames, "legend-item-" + i, !0), _defineProperty(_classNames, "inactive", entry.inactive), 34275 _classNames)); 34276 return "none" === entry.type ? null : __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("li", _extends({ 34277 className: className, 34278 style: itemStyle, 34279 key: "legend-item-" + i 34280 }, Object(__WEBPACK_IMPORTED_MODULE_6__util_ReactUtils__.f)(_this2.props, entry, i)), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__container_Surface__.a, { 34281 width: iconSize, 34282 height: iconSize, 34283 viewBox: viewBox, 34284 style: svgStyle 34285 }, _this2.renderIcon(entry)), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("span", { 34286 className: "recharts-legend-item-text" 34287 }, finalFormatter ? finalFormatter(entry.value, entry, i) : entry.value)); 34288 }); 34289 } 34290 }, { 34291 key: "render", 34292 value: function() { 34293 var _props2 = this.props, payload = _props2.payload, layout = _props2.layout, align = _props2.align; 34294 if (!payload || !payload.length) return null; 34295 var finalStyle = { 34296 padding: 0, 34297 margin: 0, 34298 textAlign: "horizontal" === layout ? align : "left" 34299 }; 34300 return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("ul", { 34301 className: "recharts-default-legend", 34302 style: finalStyle 34303 }, this.renderItems()); 34304 } 34305 } ]), DefaultLegendContent; 34306 }(__WEBPACK_IMPORTED_MODULE_0_react__.Component), _class2.displayName = "Legend", 34307 _class2.propTypes = { 34308 content: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.element, 34309 iconSize: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 34310 iconType: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf(ICON_TYPES), 34311 layout: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf([ "horizontal", "vertical" ]), 34312 align: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf([ "center", "left", "right" ]), 34313 verticalAlign: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf([ "top", "bottom", "middle" ]), 34314 payload: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape({ 34315 value: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.any, 34316 id: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.any, 34317 type: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf(__WEBPACK_IMPORTED_MODULE_6__util_ReactUtils__.b) 34318 })), 34319 inactiveColor: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, 34320 formatter: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, 34321 onMouseEnter: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, 34322 onMouseLeave: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, 34323 onClick: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func 34324 }, _class2.defaultProps = { 34325 iconSize: 14, 34326 layout: "horizontal", 34327 align: "center", 34328 verticalAlign: "middle", 34329 inactiveColor: "#ccc" 34330 }, _class = _temp)) || _class; 34331 __webpack_exports__.a = DefaultLegendContent; 34332 }, function(module, __webpack_exports__, __webpack_require__) { 34333 "use strict"; 34334 __webpack_require__(84), __webpack_require__(58), __webpack_require__(85); 34335 }, function(module, __webpack_exports__, __webpack_require__) { 34336 "use strict"; 34337 function Path() { 34338 this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = ""; 34339 } 34340 function path() { 34341 return new Path(); 34342 } 34343 var pi = Math.PI, tau = 2 * pi, tauEpsilon = tau - 1e-6; 34344 Path.prototype = path.prototype = { 34345 constructor: Path, 34346 moveTo: function(x, y) { 34347 this._ += "M" + (this._x0 = this._x1 = +x) + "," + (this._y0 = this._y1 = +y); 34348 }, 34349 closePath: function() { 34350 null !== this._x1 && (this._x1 = this._x0, this._y1 = this._y0, this._ += "Z"); 34351 }, 34352 lineTo: function(x, y) { 34353 this._ += "L" + (this._x1 = +x) + "," + (this._y1 = +y); 34354 }, 34355 quadraticCurveTo: function(x1, y1, x, y) { 34356 this._ += "Q" + +x1 + "," + +y1 + "," + (this._x1 = +x) + "," + (this._y1 = +y); 34357 }, 34358 bezierCurveTo: function(x1, y1, x2, y2, x, y) { 34359 this._ += "C" + +x1 + "," + +y1 + "," + +x2 + "," + +y2 + "," + (this._x1 = +x) + "," + (this._y1 = +y); 34360 }, 34361 arcTo: function(x1, y1, x2, y2, r) { 34362 x1 = +x1, y1 = +y1, x2 = +x2, y2 = +y2, r = +r; 34363 var x0 = this._x1, y0 = this._y1, x21 = x2 - x1, y21 = y2 - y1, x01 = x0 - x1, y01 = y0 - y1, l01_2 = x01 * x01 + y01 * y01; 34364 if (r < 0) throw new Error("negative radius: " + r); 34365 if (null === this._x1) this._ += "M" + (this._x1 = x1) + "," + (this._y1 = y1); else if (l01_2 > 1e-6) if (Math.abs(y01 * x21 - y21 * x01) > 1e-6 && r) { 34366 var x20 = x2 - x0, y20 = y2 - y0, l21_2 = x21 * x21 + y21 * y21, l20_2 = x20 * x20 + y20 * y20, l21 = Math.sqrt(l21_2), l01 = Math.sqrt(l01_2), l = r * Math.tan((pi - Math.acos((l21_2 + l01_2 - l20_2) / (2 * l21 * l01))) / 2), t01 = l / l01, t21 = l / l21; 34367 Math.abs(t01 - 1) > 1e-6 && (this._ += "L" + (x1 + t01 * x01) + "," + (y1 + t01 * y01)), 34368 this._ += "A" + r + "," + r + ",0,0," + +(y01 * x20 > x01 * y20) + "," + (this._x1 = x1 + t21 * x21) + "," + (this._y1 = y1 + t21 * y21); 34369 } else this._ += "L" + (this._x1 = x1) + "," + (this._y1 = y1); else ; 34370 }, 34371 arc: function(x, y, r, a0, a1, ccw) { 34372 x = +x, y = +y, r = +r; 34373 var dx = r * Math.cos(a0), dy = r * Math.sin(a0), x0 = x + dx, y0 = y + dy, cw = 1 ^ ccw, da = ccw ? a0 - a1 : a1 - a0; 34374 if (r < 0) throw new Error("negative radius: " + r); 34375 null === this._x1 ? this._ += "M" + x0 + "," + y0 : (Math.abs(this._x1 - x0) > 1e-6 || Math.abs(this._y1 - y0) > 1e-6) && (this._ += "L" + x0 + "," + y0), 34376 r && (da < 0 && (da = da % tau + tau), da > tauEpsilon ? this._ += "A" + r + "," + r + ",0,1," + cw + "," + (x - dx) + "," + (y - dy) + "A" + r + "," + r + ",0,1," + cw + "," + (this._x1 = x0) + "," + (this._y1 = y0) : da > 1e-6 && (this._ += "A" + r + "," + r + ",0," + +(da >= pi) + "," + cw + "," + (this._x1 = x + r * Math.cos(a1)) + "," + (this._y1 = y + r * Math.sin(a1)))); 34377 }, 34378 rect: function(x, y, w, h) { 34379 this._ += "M" + (this._x0 = this._x1 = +x) + "," + (this._y0 = this._y1 = +y) + "h" + +w + "v" + +h + "h" + -w + "Z"; 34380 }, 34381 toString: function() { 34382 return this._; 34383 } 34384 }, __webpack_exports__.a = path; 34385 }, function(module, __webpack_exports__, __webpack_require__) { 34386 "use strict"; 34387 __webpack_require__(58), __webpack_require__(635), __webpack_require__(636), __webpack_require__(85); 34388 }, function(module, __webpack_exports__, __webpack_require__) { 34389 "use strict"; 34390 __webpack_exports__.a = function(a, b) { 34391 return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN; 34392 }; 34393 }, function(module, __webpack_exports__, __webpack_require__) { 34394 "use strict"; 34395 __webpack_exports__.a = function(d) { 34396 return d; 34397 }; 34398 }, function(module, __webpack_exports__, __webpack_require__) { 34399 "use strict"; 34400 __webpack_require__(274), __webpack_require__(273), __webpack_require__(275); 34401 }, function(module, __webpack_exports__, __webpack_require__) { 34402 "use strict"; 34403 __webpack_require__(84), __webpack_require__(277), __webpack_require__(58), __webpack_require__(184), 34404 __webpack_require__(276); 34405 }, function(module, __webpack_exports__, __webpack_require__) { 34406 "use strict"; 34407 var __WEBPACK_IMPORTED_MODULE_0_d3_path__ = __webpack_require__(84), __WEBPACK_IMPORTED_MODULE_1__symbol_circle__ = __webpack_require__(278), __WEBPACK_IMPORTED_MODULE_2__symbol_cross__ = __webpack_require__(279), __WEBPACK_IMPORTED_MODULE_3__symbol_diamond__ = __webpack_require__(280), __WEBPACK_IMPORTED_MODULE_4__symbol_star__ = __webpack_require__(281), __WEBPACK_IMPORTED_MODULE_5__symbol_square__ = __webpack_require__(282), __WEBPACK_IMPORTED_MODULE_6__symbol_triangle__ = __webpack_require__(283), __WEBPACK_IMPORTED_MODULE_7__symbol_wye__ = __webpack_require__(284), __WEBPACK_IMPORTED_MODULE_8__constant__ = __webpack_require__(58); 34408 __WEBPACK_IMPORTED_MODULE_1__symbol_circle__.a, __WEBPACK_IMPORTED_MODULE_2__symbol_cross__.a, 34409 __WEBPACK_IMPORTED_MODULE_3__symbol_diamond__.a, __WEBPACK_IMPORTED_MODULE_5__symbol_square__.a, 34410 __WEBPACK_IMPORTED_MODULE_4__symbol_star__.a, __WEBPACK_IMPORTED_MODULE_6__symbol_triangle__.a, 34411 __WEBPACK_IMPORTED_MODULE_7__symbol_wye__.a; 34412 __webpack_exports__.a = function() { 34413 function symbol() { 34414 var buffer; 34415 if (context || (context = buffer = Object(__WEBPACK_IMPORTED_MODULE_0_d3_path__.a)()), 34416 type.apply(this, arguments).draw(context, +size.apply(this, arguments)), buffer) return context = null, 34417 buffer + "" || null; 34418 } 34419 var type = Object(__WEBPACK_IMPORTED_MODULE_8__constant__.a)(__WEBPACK_IMPORTED_MODULE_1__symbol_circle__.a), size = Object(__WEBPACK_IMPORTED_MODULE_8__constant__.a)(64), context = null; 34420 return symbol.type = function(_) { 34421 return arguments.length ? (type = "function" == typeof _ ? _ : Object(__WEBPACK_IMPORTED_MODULE_8__constant__.a)(_), 34422 symbol) : type; 34423 }, symbol.size = function(_) { 34424 return arguments.length ? (size = "function" == typeof _ ? _ : Object(__WEBPACK_IMPORTED_MODULE_8__constant__.a)(+_), 34425 symbol) : size; 34426 }, symbol.context = function(_) { 34427 return arguments.length ? (context = null == _ ? null : _, symbol) : context; 34428 }, symbol; 34429 }; 34430 }, function(module, __webpack_exports__, __webpack_require__) { 34431 "use strict"; 34432 function BasisClosed(context) { 34433 this._context = context; 34434 } 34435 var __WEBPACK_IMPORTED_MODULE_0__noop__ = __webpack_require__(122), __WEBPACK_IMPORTED_MODULE_1__basis__ = __webpack_require__(123); 34436 BasisClosed.prototype = { 34437 areaStart: __WEBPACK_IMPORTED_MODULE_0__noop__.a, 34438 areaEnd: __WEBPACK_IMPORTED_MODULE_0__noop__.a, 34439 lineStart: function() { 34440 this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, 34441 this._point = 0; 34442 }, 34443 lineEnd: function() { 34444 switch (this._point) { 34445 case 1: 34446 this._context.moveTo(this._x2, this._y2), this._context.closePath(); 34447 break; 34448 34449 case 2: 34450 this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3), 34451 this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3), 34452 this._context.closePath(); 34453 break; 34454 34455 case 3: 34456 this.point(this._x2, this._y2), this.point(this._x3, this._y3), this.point(this._x4, this._y4); 34457 } 34458 }, 34459 point: function(x, y) { 34460 switch (x = +x, y = +y, this._point) { 34461 case 0: 34462 this._point = 1, this._x2 = x, this._y2 = y; 34463 break; 34464 34465 case 1: 34466 this._point = 2, this._x3 = x, this._y3 = y; 34467 break; 34468 34469 case 2: 34470 this._point = 3, this._x4 = x, this._y4 = y, this._context.moveTo((this._x0 + 4 * this._x1 + x) / 6, (this._y0 + 4 * this._y1 + y) / 6); 34471 break; 34472 34473 default: 34474 Object(__WEBPACK_IMPORTED_MODULE_1__basis__.c)(this, x, y); 34475 } 34476 this._x0 = this._x1, this._x1 = x, this._y0 = this._y1, this._y1 = y; 34477 } 34478 }, __webpack_exports__.a = function(context) { 34479 return new BasisClosed(context); 34480 }; 34481 }, function(module, __webpack_exports__, __webpack_require__) { 34482 "use strict"; 34483 function BasisOpen(context) { 34484 this._context = context; 34485 } 34486 var __WEBPACK_IMPORTED_MODULE_0__basis__ = __webpack_require__(123); 34487 BasisOpen.prototype = { 34488 areaStart: function() { 34489 this._line = 0; 34490 }, 34491 areaEnd: function() { 34492 this._line = NaN; 34493 }, 34494 lineStart: function() { 34495 this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0; 34496 }, 34497 lineEnd: function() { 34498 (this._line || 0 !== this._line && 3 === this._point) && this._context.closePath(), 34499 this._line = 1 - this._line; 34500 }, 34501 point: function(x, y) { 34502 switch (x = +x, y = +y, this._point) { 34503 case 0: 34504 this._point = 1; 34505 break; 34506 34507 case 1: 34508 this._point = 2; 34509 break; 34510 34511 case 2: 34512 this._point = 3; 34513 var x0 = (this._x0 + 4 * this._x1 + x) / 6, y0 = (this._y0 + 4 * this._y1 + y) / 6; 34514 this._line ? this._context.lineTo(x0, y0) : this._context.moveTo(x0, y0); 34515 break; 34516 34517 case 3: 34518 this._point = 4; 34519 34520 default: 34521 Object(__WEBPACK_IMPORTED_MODULE_0__basis__.c)(this, x, y); 34522 } 34523 this._x0 = this._x1, this._x1 = x, this._y0 = this._y1, this._y1 = y; 34524 } 34525 }, __webpack_exports__.a = function(context) { 34526 return new BasisOpen(context); 34527 }; 34528 }, function(module, __webpack_exports__, __webpack_require__) { 34529 "use strict"; 34530 function Bundle(context, beta) { 34531 this._basis = new __WEBPACK_IMPORTED_MODULE_0__basis__.a(context), this._beta = beta; 34532 } 34533 var __WEBPACK_IMPORTED_MODULE_0__basis__ = __webpack_require__(123); 34534 Bundle.prototype = { 34535 lineStart: function() { 34536 this._x = [], this._y = [], this._basis.lineStart(); 34537 }, 34538 lineEnd: function() { 34539 var x = this._x, y = this._y, j = x.length - 1; 34540 if (j > 0) for (var t, x0 = x[0], y0 = y[0], dx = x[j] - x0, dy = y[j] - y0, i = -1; ++i <= j; ) t = i / j, 34541 this._basis.point(this._beta * x[i] + (1 - this._beta) * (x0 + t * dx), this._beta * y[i] + (1 - this._beta) * (y0 + t * dy)); 34542 this._x = this._y = null, this._basis.lineEnd(); 34543 }, 34544 point: function(x, y) { 34545 this._x.push(+x), this._y.push(+y); 34546 } 34547 }; 34548 !function custom(beta) { 34549 function bundle(context) { 34550 return 1 === beta ? new __WEBPACK_IMPORTED_MODULE_0__basis__.a(context) : new Bundle(context, beta); 34551 } 34552 return bundle.beta = function(beta) { 34553 return custom(+beta); 34554 }, bundle; 34555 }(.85); 34556 }, function(module, __webpack_exports__, __webpack_require__) { 34557 "use strict"; 34558 function CatmullRomClosed(context, alpha) { 34559 this._context = context, this._alpha = alpha; 34560 } 34561 var __WEBPACK_IMPORTED_MODULE_0__cardinalClosed__ = __webpack_require__(285), __WEBPACK_IMPORTED_MODULE_1__noop__ = __webpack_require__(122), __WEBPACK_IMPORTED_MODULE_2__catmullRom__ = __webpack_require__(185); 34562 CatmullRomClosed.prototype = { 34563 areaStart: __WEBPACK_IMPORTED_MODULE_1__noop__.a, 34564 areaEnd: __WEBPACK_IMPORTED_MODULE_1__noop__.a, 34565 lineStart: function() { 34566 this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, 34567 this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0; 34568 }, 34569 lineEnd: function() { 34570 switch (this._point) { 34571 case 1: 34572 this._context.moveTo(this._x3, this._y3), this._context.closePath(); 34573 break; 34574 34575 case 2: 34576 this._context.lineTo(this._x3, this._y3), this._context.closePath(); 34577 break; 34578 34579 case 3: 34580 this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5); 34581 } 34582 }, 34583 point: function(x, y) { 34584 if (x = +x, y = +y, this._point) { 34585 var x23 = this._x2 - x, y23 = this._y2 - y; 34586 this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha)); 34587 } 34588 switch (this._point) { 34589 case 0: 34590 this._point = 1, this._x3 = x, this._y3 = y; 34591 break; 34592 34593 case 1: 34594 this._point = 2, this._context.moveTo(this._x4 = x, this._y4 = y); 34595 break; 34596 34597 case 2: 34598 this._point = 3, this._x5 = x, this._y5 = y; 34599 break; 34600 34601 default: 34602 Object(__WEBPACK_IMPORTED_MODULE_2__catmullRom__.a)(this, x, y); 34603 } 34604 this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, 34605 this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = x, 34606 this._y0 = this._y1, this._y1 = this._y2, this._y2 = y; 34607 } 34608 }; 34609 !function custom(alpha) { 34610 function catmullRom(context) { 34611 return alpha ? new CatmullRomClosed(context, alpha) : new __WEBPACK_IMPORTED_MODULE_0__cardinalClosed__.a(context, 0); 34612 } 34613 return catmullRom.alpha = function(alpha) { 34614 return custom(+alpha); 34615 }, catmullRom; 34616 }(.5); 34617 }, function(module, __webpack_exports__, __webpack_require__) { 34618 "use strict"; 34619 function CatmullRomOpen(context, alpha) { 34620 this._context = context, this._alpha = alpha; 34621 } 34622 var __WEBPACK_IMPORTED_MODULE_0__cardinalOpen__ = __webpack_require__(286), __WEBPACK_IMPORTED_MODULE_1__catmullRom__ = __webpack_require__(185); 34623 CatmullRomOpen.prototype = { 34624 areaStart: function() { 34625 this._line = 0; 34626 }, 34627 areaEnd: function() { 34628 this._line = NaN; 34629 }, 34630 lineStart: function() { 34631 this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0; 34632 }, 34633 lineEnd: function() { 34634 (this._line || 0 !== this._line && 3 === this._point) && this._context.closePath(), 34635 this._line = 1 - this._line; 34636 }, 34637 point: function(x, y) { 34638 if (x = +x, y = +y, this._point) { 34639 var x23 = this._x2 - x, y23 = this._y2 - y; 34640 this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha)); 34641 } 34642 switch (this._point) { 34643 case 0: 34644 this._point = 1; 34645 break; 34646 34647 case 1: 34648 this._point = 2; 34649 break; 34650 34651 case 2: 34652 this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); 34653 break; 34654 34655 case 3: 34656 this._point = 4; 34657 34658 default: 34659 Object(__WEBPACK_IMPORTED_MODULE_1__catmullRom__.a)(this, x, y); 34660 } 34661 this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, 34662 this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = x, 34663 this._y0 = this._y1, this._y1 = this._y2, this._y2 = y; 34664 } 34665 }; 34666 !function custom(alpha) { 34667 function catmullRom(context) { 34668 return alpha ? new CatmullRomOpen(context, alpha) : new __WEBPACK_IMPORTED_MODULE_0__cardinalOpen__.a(context, 0); 34669 } 34670 return catmullRom.alpha = function(alpha) { 34671 return custom(+alpha); 34672 }, catmullRom; 34673 }(.5); 34674 }, function(module, __webpack_exports__, __webpack_require__) { 34675 "use strict"; 34676 function LinearClosed(context) { 34677 this._context = context; 34678 } 34679 var __WEBPACK_IMPORTED_MODULE_0__noop__ = __webpack_require__(122); 34680 LinearClosed.prototype = { 34681 areaStart: __WEBPACK_IMPORTED_MODULE_0__noop__.a, 34682 areaEnd: __WEBPACK_IMPORTED_MODULE_0__noop__.a, 34683 lineStart: function() { 34684 this._point = 0; 34685 }, 34686 lineEnd: function() { 34687 this._point && this._context.closePath(); 34688 }, 34689 point: function(x, y) { 34690 x = +x, y = +y, this._point ? this._context.lineTo(x, y) : (this._point = 1, this._context.moveTo(x, y)); 34691 } 34692 }, __webpack_exports__.a = function(context) { 34693 return new LinearClosed(context); 34694 }; 34695 }, function(module, __webpack_exports__, __webpack_require__) { 34696 "use strict"; 34697 function sign(x) { 34698 return x < 0 ? -1 : 1; 34699 } 34700 function slope3(that, x2, y2) { 34701 var h0 = that._x1 - that._x0, h1 = x2 - that._x1, s0 = (that._y1 - that._y0) / (h0 || h1 < 0 && -0), s1 = (y2 - that._y1) / (h1 || h0 < 0 && -0), p = (s0 * h1 + s1 * h0) / (h0 + h1); 34702 return (sign(s0) + sign(s1)) * Math.min(Math.abs(s0), Math.abs(s1), .5 * Math.abs(p)) || 0; 34703 } 34704 function slope2(that, t) { 34705 var h = that._x1 - that._x0; 34706 return h ? (3 * (that._y1 - that._y0) / h - t) / 2 : t; 34707 } 34708 function point(that, t0, t1) { 34709 var x0 = that._x0, y0 = that._y0, x1 = that._x1, y1 = that._y1, dx = (x1 - x0) / 3; 34710 that._context.bezierCurveTo(x0 + dx, y0 + dx * t0, x1 - dx, y1 - dx * t1, x1, y1); 34711 } 34712 function MonotoneX(context) { 34713 this._context = context; 34714 } 34715 function MonotoneY(context) { 34716 this._context = new ReflectContext(context); 34717 } 34718 function ReflectContext(context) { 34719 this._context = context; 34720 } 34721 function monotoneX(context) { 34722 return new MonotoneX(context); 34723 } 34724 function monotoneY(context) { 34725 return new MonotoneY(context); 34726 } 34727 __webpack_exports__.a = monotoneX, __webpack_exports__.b = monotoneY, MonotoneX.prototype = { 34728 areaStart: function() { 34729 this._line = 0; 34730 }, 34731 areaEnd: function() { 34732 this._line = NaN; 34733 }, 34734 lineStart: function() { 34735 this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN, this._point = 0; 34736 }, 34737 lineEnd: function() { 34738 switch (this._point) { 34739 case 2: 34740 this._context.lineTo(this._x1, this._y1); 34741 break; 34742 34743 case 3: 34744 point(this, this._t0, slope2(this, this._t0)); 34745 } 34746 (this._line || 0 !== this._line && 1 === this._point) && this._context.closePath(), 34747 this._line = 1 - this._line; 34748 }, 34749 point: function(x, y) { 34750 var t1 = NaN; 34751 if (x = +x, y = +y, x !== this._x1 || y !== this._y1) { 34752 switch (this._point) { 34753 case 0: 34754 this._point = 1, this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); 34755 break; 34756 34757 case 1: 34758 this._point = 2; 34759 break; 34760 34761 case 2: 34762 this._point = 3, point(this, slope2(this, t1 = slope3(this, x, y)), t1); 34763 break; 34764 34765 default: 34766 point(this, this._t0, t1 = slope3(this, x, y)); 34767 } 34768 this._x0 = this._x1, this._x1 = x, this._y0 = this._y1, this._y1 = y, this._t0 = t1; 34769 } 34770 } 34771 }, (MonotoneY.prototype = Object.create(MonotoneX.prototype)).point = function(x, y) { 34772 MonotoneX.prototype.point.call(this, y, x); 34773 }, ReflectContext.prototype = { 34774 moveTo: function(x, y) { 34775 this._context.moveTo(y, x); 34776 }, 34777 closePath: function() { 34778 this._context.closePath(); 34779 }, 34780 lineTo: function(x, y) { 34781 this._context.lineTo(y, x); 34782 }, 34783 bezierCurveTo: function(x1, y1, x2, y2, x, y) { 34784 this._context.bezierCurveTo(y1, x1, y2, x2, y, x); 34785 } 34786 }; 34787 }, function(module, __webpack_exports__, __webpack_require__) { 34788 "use strict"; 34789 function Natural(context) { 34790 this._context = context; 34791 } 34792 function controlPoints(x) { 34793 var i, m, n = x.length - 1, a = new Array(n), b = new Array(n), r = new Array(n); 34794 for (a[0] = 0, b[0] = 2, r[0] = x[0] + 2 * x[1], i = 1; i < n - 1; ++i) a[i] = 1, 34795 b[i] = 4, r[i] = 4 * x[i] + 2 * x[i + 1]; 34796 for (a[n - 1] = 2, b[n - 1] = 7, r[n - 1] = 8 * x[n - 1] + x[n], i = 1; i < n; ++i) m = a[i] / b[i - 1], 34797 b[i] -= m, r[i] -= m * r[i - 1]; 34798 for (a[n - 1] = r[n - 1] / b[n - 1], i = n - 2; i >= 0; --i) a[i] = (r[i] - a[i + 1]) / b[i]; 34799 for (b[n - 1] = (x[n] + a[n - 1]) / 2, i = 0; i < n - 1; ++i) b[i] = 2 * x[i + 1] - a[i + 1]; 34800 return [ a, b ]; 34801 } 34802 Natural.prototype = { 34803 areaStart: function() { 34804 this._line = 0; 34805 }, 34806 areaEnd: function() { 34807 this._line = NaN; 34808 }, 34809 lineStart: function() { 34810 this._x = [], this._y = []; 34811 }, 34812 lineEnd: function() { 34813 var x = this._x, y = this._y, n = x.length; 34814 if (n) if (this._line ? this._context.lineTo(x[0], y[0]) : this._context.moveTo(x[0], y[0]), 34815 2 === n) this._context.lineTo(x[1], y[1]); else for (var px = controlPoints(x), py = controlPoints(y), i0 = 0, i1 = 1; i1 < n; ++i0, 34816 ++i1) this._context.bezierCurveTo(px[0][i0], py[0][i0], px[1][i0], py[1][i0], x[i1], y[i1]); 34817 (this._line || 0 !== this._line && 1 === n) && this._context.closePath(), this._line = 1 - this._line, 34818 this._x = this._y = null; 34819 }, 34820 point: function(x, y) { 34821 this._x.push(+x), this._y.push(+y); 34822 } 34823 }, __webpack_exports__.a = function(context) { 34824 return new Natural(context); 34825 }; 34826 }, function(module, __webpack_exports__, __webpack_require__) { 34827 "use strict"; 34828 function Step(context, t) { 34829 this._context = context, this._t = t; 34830 } 34831 function stepBefore(context) { 34832 return new Step(context, 0); 34833 } 34834 function stepAfter(context) { 34835 return new Step(context, 1); 34836 } 34837 __webpack_exports__.c = stepBefore, __webpack_exports__.b = stepAfter, Step.prototype = { 34838 areaStart: function() { 34839 this._line = 0; 34840 }, 34841 areaEnd: function() { 34842 this._line = NaN; 34843 }, 34844 lineStart: function() { 34845 this._x = this._y = NaN, this._point = 0; 34846 }, 34847 lineEnd: function() { 34848 0 < this._t && this._t < 1 && 2 === this._point && this._context.lineTo(this._x, this._y), 34849 (this._line || 0 !== this._line && 1 === this._point) && this._context.closePath(), 34850 this._line >= 0 && (this._t = 1 - this._t, this._line = 1 - this._line); 34851 }, 34852 point: function(x, y) { 34853 switch (x = +x, y = +y, this._point) { 34854 case 0: 34855 this._point = 1, this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); 34856 break; 34857 34858 case 1: 34859 this._point = 2; 34860 34861 default: 34862 if (this._t <= 0) this._context.lineTo(this._x, y), this._context.lineTo(x, y); else { 34863 var x1 = this._x * (1 - this._t) + x * this._t; 34864 this._context.lineTo(x1, this._y), this._context.lineTo(x1, y); 34865 } 34866 } 34867 this._x = x, this._y = y; 34868 } 34869 }, __webpack_exports__.a = function(context) { 34870 return new Step(context, .5); 34871 }; 34872 }, function(module, __webpack_exports__, __webpack_require__) { 34873 "use strict"; 34874 function stackValue(d, key) { 34875 return d[key]; 34876 } 34877 var __WEBPACK_IMPORTED_MODULE_0__array__ = __webpack_require__(277), __WEBPACK_IMPORTED_MODULE_1__constant__ = __webpack_require__(58), __WEBPACK_IMPORTED_MODULE_2__offset_none__ = __webpack_require__(86), __WEBPACK_IMPORTED_MODULE_3__order_none__ = __webpack_require__(87); 34878 __webpack_exports__.a = function() { 34879 function stack(data) { 34880 var i, oz, kz = keys.apply(this, arguments), m = data.length, n = kz.length, sz = new Array(n); 34881 for (i = 0; i < n; ++i) { 34882 for (var sij, ki = kz[i], si = sz[i] = new Array(m), j = 0; j < m; ++j) si[j] = sij = [ 0, +value(data[j], ki, j, data) ], 34883 sij.data = data[j]; 34884 si.key = ki; 34885 } 34886 for (i = 0, oz = order(sz); i < n; ++i) sz[oz[i]].index = i; 34887 return offset(sz, oz), sz; 34888 } 34889 var keys = Object(__WEBPACK_IMPORTED_MODULE_1__constant__.a)([]), order = __WEBPACK_IMPORTED_MODULE_3__order_none__.a, offset = __WEBPACK_IMPORTED_MODULE_2__offset_none__.a, value = stackValue; 34890 return stack.keys = function(_) { 34891 return arguments.length ? (keys = "function" == typeof _ ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__.a)(__WEBPACK_IMPORTED_MODULE_0__array__.a.call(_)), 34892 stack) : keys; 34893 }, stack.value = function(_) { 34894 return arguments.length ? (value = "function" == typeof _ ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__.a)(+_), 34895 stack) : value; 34896 }, stack.order = function(_) { 34897 return arguments.length ? (order = null == _ ? __WEBPACK_IMPORTED_MODULE_3__order_none__.a : "function" == typeof _ ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__.a)(__WEBPACK_IMPORTED_MODULE_0__array__.a.call(_)), 34898 stack) : order; 34899 }, stack.offset = function(_) { 34900 return arguments.length ? (offset = null == _ ? __WEBPACK_IMPORTED_MODULE_2__offset_none__.a : _, 34901 stack) : offset; 34902 }, stack; 34903 }; 34904 }, function(module, __webpack_exports__, __webpack_require__) { 34905 "use strict"; 34906 var __WEBPACK_IMPORTED_MODULE_0__none__ = __webpack_require__(86); 34907 __webpack_exports__.a = function(series, order) { 34908 if ((n = series.length) > 0) { 34909 for (var i, n, y, j = 0, m = series[0].length; j < m; ++j) { 34910 for (y = i = 0; i < n; ++i) y += series[i][j][1] || 0; 34911 if (y) for (i = 0; i < n; ++i) series[i][j][1] /= y; 34912 } 34913 Object(__WEBPACK_IMPORTED_MODULE_0__none__.a)(series, order); 34914 } 34915 }; 34916 }, function(module, __webpack_exports__, __webpack_require__) { 34917 "use strict"; 34918 }, function(module, __webpack_exports__, __webpack_require__) { 34919 "use strict"; 34920 var __WEBPACK_IMPORTED_MODULE_0__none__ = __webpack_require__(86); 34921 __webpack_exports__.a = function(series, order) { 34922 if ((n = series.length) > 0) { 34923 for (var n, j = 0, s0 = series[order[0]], m = s0.length; j < m; ++j) { 34924 for (var i = 0, y = 0; i < n; ++i) y += series[i][j][1] || 0; 34925 s0[j][1] += s0[j][0] = -y / 2; 34926 } 34927 Object(__WEBPACK_IMPORTED_MODULE_0__none__.a)(series, order); 34928 } 34929 }; 34930 }, function(module, __webpack_exports__, __webpack_require__) { 34931 "use strict"; 34932 var __WEBPACK_IMPORTED_MODULE_0__none__ = __webpack_require__(86); 34933 __webpack_exports__.a = function(series, order) { 34934 if ((n = series.length) > 0 && (m = (s0 = series[order[0]]).length) > 0) { 34935 for (var s0, m, n, y = 0, j = 1; j < m; ++j) { 34936 for (var i = 0, s1 = 0, s2 = 0; i < n; ++i) { 34937 for (var si = series[order[i]], sij0 = si[j][1] || 0, sij1 = si[j - 1][1] || 0, s3 = (sij0 - sij1) / 2, k = 0; k < i; ++k) { 34938 var sk = series[order[k]]; 34939 s3 += (sk[j][1] || 0) - (sk[j - 1][1] || 0); 34940 } 34941 s1 += sij0, s2 += s3 * sij0; 34942 } 34943 s0[j - 1][1] += s0[j - 1][0] = y, s1 && (y -= s2 / s1); 34944 } 34945 s0[j - 1][1] += s0[j - 1][0] = y, Object(__WEBPACK_IMPORTED_MODULE_0__none__.a)(series, order); 34946 } 34947 }; 34948 }, function(module, __webpack_exports__, __webpack_require__) { 34949 "use strict"; 34950 __webpack_require__(186); 34951 }, function(module, __webpack_exports__, __webpack_require__) { 34952 "use strict"; 34953 __webpack_require__(87), __webpack_require__(186); 34954 }, function(module, __webpack_exports__, __webpack_require__) { 34955 "use strict"; 34956 __webpack_require__(87); 34957 }, function(module, exports, __webpack_require__) { 34958 function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { 34959 var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other); 34960 objTag = objTag == argsTag ? objectTag : objTag, othTag = othTag == argsTag ? objectTag : othTag; 34961 var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag; 34962 if (isSameTag && isBuffer(object)) { 34963 if (!isBuffer(other)) return !1; 34964 objIsArr = !0, objIsObj = !1; 34965 } 34966 if (isSameTag && !objIsObj) return stack || (stack = new Stack()), objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack); 34967 if (!(bitmask & COMPARE_PARTIAL_FLAG)) { 34968 var objIsWrapped = objIsObj && hasOwnProperty.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__"); 34969 if (objIsWrapped || othIsWrapped) { 34970 var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other; 34971 return stack || (stack = new Stack()), equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); 34972 } 34973 } 34974 return !!isSameTag && (stack || (stack = new Stack()), equalObjects(object, other, bitmask, customizer, equalFunc, stack)); 34975 } 34976 var Stack = __webpack_require__(289), equalArrays = __webpack_require__(294), equalByTag = __webpack_require__(689), equalObjects = __webpack_require__(693), getTag = __webpack_require__(708), isArray = __webpack_require__(34), isBuffer = __webpack_require__(299), isTypedArray = __webpack_require__(301), COMPARE_PARTIAL_FLAG = 1, argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]", objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty; 34977 module.exports = baseIsEqualDeep; 34978 }, function(module, exports) { 34979 function listCacheClear() { 34980 this.__data__ = [], this.size = 0; 34981 } 34982 module.exports = listCacheClear; 34983 }, function(module, exports, __webpack_require__) { 34984 function listCacheDelete(key) { 34985 var data = this.__data__, index = assocIndexOf(data, key); 34986 return !(index < 0) && (index == data.length - 1 ? data.pop() : splice.call(data, index, 1), 34987 --this.size, !0); 34988 } 34989 var assocIndexOf = __webpack_require__(127), arrayProto = Array.prototype, splice = arrayProto.splice; 34990 module.exports = listCacheDelete; 34991 }, function(module, exports, __webpack_require__) { 34992 function listCacheGet(key) { 34993 var data = this.__data__, index = assocIndexOf(data, key); 34994 return index < 0 ? void 0 : data[index][1]; 34995 } 34996 var assocIndexOf = __webpack_require__(127); 34997 module.exports = listCacheGet; 34998 }, function(module, exports, __webpack_require__) { 34999 function listCacheHas(key) { 35000 return assocIndexOf(this.__data__, key) > -1; 35001 } 35002 var assocIndexOf = __webpack_require__(127); 35003 module.exports = listCacheHas; 35004 }, function(module, exports, __webpack_require__) { 35005 function listCacheSet(key, value) { 35006 var data = this.__data__, index = assocIndexOf(data, key); 35007 return index < 0 ? (++this.size, data.push([ key, value ])) : data[index][1] = value, 35008 this; 35009 } 35010 var assocIndexOf = __webpack_require__(127); 35011 module.exports = listCacheSet; 35012 }, function(module, exports, __webpack_require__) { 35013 function stackClear() { 35014 this.__data__ = new ListCache(), this.size = 0; 35015 } 35016 var ListCache = __webpack_require__(126); 35017 module.exports = stackClear; 35018 }, function(module, exports) { 35019 function stackDelete(key) { 35020 var data = this.__data__, result = data.delete(key); 35021 return this.size = data.size, result; 35022 } 35023 module.exports = stackDelete; 35024 }, function(module, exports) { 35025 function stackGet(key) { 35026 return this.__data__.get(key); 35027 } 35028 module.exports = stackGet; 35029 }, function(module, exports) { 35030 function stackHas(key) { 35031 return this.__data__.has(key); 35032 } 35033 module.exports = stackHas; 35034 }, function(module, exports, __webpack_require__) { 35035 function stackSet(key, value) { 35036 var data = this.__data__; 35037 if (data instanceof ListCache) { 35038 var pairs = data.__data__; 35039 if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) return pairs.push([ key, value ]), 35040 this.size = ++data.size, this; 35041 data = this.__data__ = new MapCache(pairs); 35042 } 35043 return data.set(key, value), this.size = data.size, this; 35044 } 35045 var ListCache = __webpack_require__(126), Map = __webpack_require__(188), MapCache = __webpack_require__(190), LARGE_ARRAY_SIZE = 200; 35046 module.exports = stackSet; 35047 }, function(module, exports, __webpack_require__) { 35048 function baseIsNative(value) { 35049 return !(!isObject(value) || isMasked(value)) && (isFunction(value) ? reIsNative : reIsHostCtor).test(toSource(value)); 35050 } 35051 var isFunction = __webpack_require__(291), isMasked = __webpack_require__(671), isObject = __webpack_require__(189), toSource = __webpack_require__(293), reRegExpChar = /[\\^$.*+?()[\]{}|]/g, reIsHostCtor = /^\[object .+?Constructor\]$/, funcProto = Function.prototype, objectProto = Object.prototype, funcToString = funcProto.toString, hasOwnProperty = objectProto.hasOwnProperty, reIsNative = RegExp("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"); 35052 module.exports = baseIsNative; 35053 }, function(module, exports, __webpack_require__) { 35054 function getRawTag(value) { 35055 var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag]; 35056 try { 35057 value[symToStringTag] = void 0; 35058 var unmasked = !0; 35059 } catch (e) {} 35060 var result = nativeObjectToString.call(value); 35061 return unmasked && (isOwn ? value[symToStringTag] = tag : delete value[symToStringTag]), 35062 result; 35063 } 35064 var Symbol = __webpack_require__(128), objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty, nativeObjectToString = objectProto.toString, symToStringTag = Symbol ? Symbol.toStringTag : void 0; 35065 module.exports = getRawTag; 35066 }, function(module, exports) { 35067 function objectToString(value) { 35068 return nativeObjectToString.call(value); 35069 } 35070 var objectProto = Object.prototype, nativeObjectToString = objectProto.toString; 35071 module.exports = objectToString; 35072 }, function(module, exports, __webpack_require__) { 35073 function isMasked(func) { 35074 return !!maskSrcKey && maskSrcKey in func; 35075 } 35076 var coreJsData = __webpack_require__(672), maskSrcKey = function() { 35077 var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ""); 35078 return uid ? "Symbol(src)_1." + uid : ""; 35079 }(); 35080 module.exports = isMasked; 35081 }, function(module, exports, __webpack_require__) { 35082 var root = __webpack_require__(36), coreJsData = root["__core-js_shared__"]; 35083 module.exports = coreJsData; 35084 }, function(module, exports) { 35085 function getValue(object, key) { 35086 return null == object ? void 0 : object[key]; 35087 } 35088 module.exports = getValue; 35089 }, function(module, exports, __webpack_require__) { 35090 function mapCacheClear() { 35091 this.size = 0, this.__data__ = { 35092 hash: new Hash(), 35093 map: new (Map || ListCache)(), 35094 string: new Hash() 35095 }; 35096 } 35097 var Hash = __webpack_require__(675), ListCache = __webpack_require__(126), Map = __webpack_require__(188); 35098 module.exports = mapCacheClear; 35099 }, function(module, exports, __webpack_require__) { 35100 function Hash(entries) { 35101 var index = -1, length = null == entries ? 0 : entries.length; 35102 for (this.clear(); ++index < length; ) { 35103 var entry = entries[index]; 35104 this.set(entry[0], entry[1]); 35105 } 35106 } 35107 var hashClear = __webpack_require__(676), hashDelete = __webpack_require__(677), hashGet = __webpack_require__(678), hashHas = __webpack_require__(679), hashSet = __webpack_require__(680); 35108 Hash.prototype.clear = hashClear, Hash.prototype.delete = hashDelete, Hash.prototype.get = hashGet, 35109 Hash.prototype.has = hashHas, Hash.prototype.set = hashSet, module.exports = Hash; 35110 }, function(module, exports, __webpack_require__) { 35111 function hashClear() { 35112 this.__data__ = nativeCreate ? nativeCreate(null) : {}, this.size = 0; 35113 } 35114 var nativeCreate = __webpack_require__(129); 35115 module.exports = hashClear; 35116 }, function(module, exports) { 35117 function hashDelete(key) { 35118 var result = this.has(key) && delete this.__data__[key]; 35119 return this.size -= result ? 1 : 0, result; 35120 } 35121 module.exports = hashDelete; 35122 }, function(module, exports, __webpack_require__) { 35123 function hashGet(key) { 35124 var data = this.__data__; 35125 if (nativeCreate) { 35126 var result = data[key]; 35127 return result === HASH_UNDEFINED ? void 0 : result; 35128 } 35129 return hasOwnProperty.call(data, key) ? data[key] : void 0; 35130 } 35131 var nativeCreate = __webpack_require__(129), HASH_UNDEFINED = "__lodash_hash_undefined__", objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty; 35132 module.exports = hashGet; 35133 }, function(module, exports, __webpack_require__) { 35134 function hashHas(key) { 35135 var data = this.__data__; 35136 return nativeCreate ? void 0 !== data[key] : hasOwnProperty.call(data, key); 35137 } 35138 var nativeCreate = __webpack_require__(129), objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty; 35139 module.exports = hashHas; 35140 }, function(module, exports, __webpack_require__) { 35141 function hashSet(key, value) { 35142 var data = this.__data__; 35143 return this.size += this.has(key) ? 0 : 1, data[key] = nativeCreate && void 0 === value ? HASH_UNDEFINED : value, 35144 this; 35145 } 35146 var nativeCreate = __webpack_require__(129), HASH_UNDEFINED = "__lodash_hash_undefined__"; 35147 module.exports = hashSet; 35148 }, function(module, exports, __webpack_require__) { 35149 function mapCacheDelete(key) { 35150 var result = getMapData(this, key).delete(key); 35151 return this.size -= result ? 1 : 0, result; 35152 } 35153 var getMapData = __webpack_require__(130); 35154 module.exports = mapCacheDelete; 35155 }, function(module, exports) { 35156 function isKeyable(value) { 35157 var type = typeof value; 35158 return "string" == type || "number" == type || "symbol" == type || "boolean" == type ? "__proto__" !== value : null === value; 35159 } 35160 module.exports = isKeyable; 35161 }, function(module, exports, __webpack_require__) { 35162 function mapCacheGet(key) { 35163 return getMapData(this, key).get(key); 35164 } 35165 var getMapData = __webpack_require__(130); 35166 module.exports = mapCacheGet; 35167 }, function(module, exports, __webpack_require__) { 35168 function mapCacheHas(key) { 35169 return getMapData(this, key).has(key); 35170 } 35171 var getMapData = __webpack_require__(130); 35172 module.exports = mapCacheHas; 35173 }, function(module, exports, __webpack_require__) { 35174 function mapCacheSet(key, value) { 35175 var data = getMapData(this, key), size = data.size; 35176 return data.set(key, value), this.size += data.size == size ? 0 : 1, this; 35177 } 35178 var getMapData = __webpack_require__(130); 35179 module.exports = mapCacheSet; 35180 }, function(module, exports) { 35181 function setCacheAdd(value) { 35182 return this.__data__.set(value, HASH_UNDEFINED), this; 35183 } 35184 var HASH_UNDEFINED = "__lodash_hash_undefined__"; 35185 module.exports = setCacheAdd; 35186 }, function(module, exports) { 35187 function setCacheHas(value) { 35188 return this.__data__.has(value); 35189 } 35190 module.exports = setCacheHas; 35191 }, function(module, exports) { 35192 function arraySome(array, predicate) { 35193 for (var index = -1, length = null == array ? 0 : array.length; ++index < length; ) if (predicate(array[index], index, array)) return !0; 35194 return !1; 35195 } 35196 module.exports = arraySome; 35197 }, function(module, exports, __webpack_require__) { 35198 function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { 35199 switch (tag) { 35200 case dataViewTag: 35201 if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) return !1; 35202 object = object.buffer, other = other.buffer; 35203 35204 case arrayBufferTag: 35205 return !(object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))); 35206 35207 case boolTag: 35208 case dateTag: 35209 case numberTag: 35210 return eq(+object, +other); 35211 35212 case errorTag: 35213 return object.name == other.name && object.message == other.message; 35214 35215 case regexpTag: 35216 case stringTag: 35217 return object == other + ""; 35218 35219 case mapTag: 35220 var convert = mapToArray; 35221 35222 case setTag: 35223 var isPartial = bitmask & COMPARE_PARTIAL_FLAG; 35224 if (convert || (convert = setToArray), object.size != other.size && !isPartial) return !1; 35225 var stacked = stack.get(object); 35226 if (stacked) return stacked == other; 35227 bitmask |= COMPARE_UNORDERED_FLAG, stack.set(object, other); 35228 var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack); 35229 return stack.delete(object), result; 35230 35231 case symbolTag: 35232 if (symbolValueOf) return symbolValueOf.call(object) == symbolValueOf.call(other); 35233 } 35234 return !1; 35235 } 35236 var Symbol = __webpack_require__(128), Uint8Array = __webpack_require__(690), eq = __webpack_require__(290), equalArrays = __webpack_require__(294), mapToArray = __webpack_require__(691), setToArray = __webpack_require__(692), COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2, boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", mapTag = "[object Map]", numberTag = "[object Number]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", symbolProto = Symbol ? Symbol.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0; 35237 module.exports = equalByTag; 35238 }, function(module, exports, __webpack_require__) { 35239 var root = __webpack_require__(36), Uint8Array = root.Uint8Array; 35240 module.exports = Uint8Array; 35241 }, function(module, exports) { 35242 function mapToArray(map) { 35243 var index = -1, result = Array(map.size); 35244 return map.forEach(function(value, key) { 35245 result[++index] = [ key, value ]; 35246 }), result; 35247 } 35248 module.exports = mapToArray; 35249 }, function(module, exports) { 35250 function setToArray(set) { 35251 var index = -1, result = Array(set.size); 35252 return set.forEach(function(value) { 35253 result[++index] = value; 35254 }), result; 35255 } 35256 module.exports = setToArray; 35257 }, function(module, exports, __webpack_require__) { 35258 function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { 35259 var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = getAllKeys(object), objLength = objProps.length; 35260 if (objLength != getAllKeys(other).length && !isPartial) return !1; 35261 for (var index = objLength; index--; ) { 35262 var key = objProps[index]; 35263 if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) return !1; 35264 } 35265 var stacked = stack.get(object); 35266 if (stacked && stack.get(other)) return stacked == other; 35267 var result = !0; 35268 stack.set(object, other), stack.set(other, object); 35269 for (var skipCtor = isPartial; ++index < objLength; ) { 35270 key = objProps[index]; 35271 var objValue = object[key], othValue = other[key]; 35272 if (customizer) var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack); 35273 if (!(void 0 === compared ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) { 35274 result = !1; 35275 break; 35276 } 35277 skipCtor || (skipCtor = "constructor" == key); 35278 } 35279 if (result && !skipCtor) { 35280 var objCtor = object.constructor, othCtor = other.constructor; 35281 objCtor != othCtor && "constructor" in object && "constructor" in other && !("function" == typeof objCtor && objCtor instanceof objCtor && "function" == typeof othCtor && othCtor instanceof othCtor) && (result = !1); 35282 } 35283 return stack.delete(object), stack.delete(other), result; 35284 } 35285 var getAllKeys = __webpack_require__(694), COMPARE_PARTIAL_FLAG = 1, objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty; 35286 module.exports = equalObjects; 35287 }, function(module, exports, __webpack_require__) { 35288 function getAllKeys(object) { 35289 return baseGetAllKeys(object, keys, getSymbols); 35290 } 35291 var baseGetAllKeys = __webpack_require__(695), getSymbols = __webpack_require__(697), keys = __webpack_require__(191); 35292 module.exports = getAllKeys; 35293 }, function(module, exports, __webpack_require__) { 35294 function baseGetAllKeys(object, keysFunc, symbolsFunc) { 35295 var result = keysFunc(object); 35296 return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); 35297 } 35298 var arrayPush = __webpack_require__(696), isArray = __webpack_require__(34); 35299 module.exports = baseGetAllKeys; 35300 }, function(module, exports) { 35301 function arrayPush(array, values) { 35302 for (var index = -1, length = values.length, offset = array.length; ++index < length; ) array[offset + index] = values[index]; 35303 return array; 35304 } 35305 module.exports = arrayPush; 35306 }, function(module, exports, __webpack_require__) { 35307 var arrayFilter = __webpack_require__(297), stubArray = __webpack_require__(698), objectProto = Object.prototype, propertyIsEnumerable = objectProto.propertyIsEnumerable, nativeGetSymbols = Object.getOwnPropertySymbols, getSymbols = nativeGetSymbols ? function(object) { 35308 return null == object ? [] : (object = Object(object), arrayFilter(nativeGetSymbols(object), function(symbol) { 35309 return propertyIsEnumerable.call(object, symbol); 35310 })); 35311 } : stubArray; 35312 module.exports = getSymbols; 35313 }, function(module, exports) { 35314 function stubArray() { 35315 return []; 35316 } 35317 module.exports = stubArray; 35318 }, function(module, exports, __webpack_require__) { 35319 function arrayLikeKeys(value, inherited) { 35320 var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length; 35321 for (var key in value) !inherited && !hasOwnProperty.call(value, key) || skipIndexes && ("length" == key || isBuff && ("offset" == key || "parent" == key) || isType && ("buffer" == key || "byteLength" == key || "byteOffset" == key) || isIndex(key, length)) || result.push(key); 35322 return result; 35323 } 35324 var baseTimes = __webpack_require__(700), isArguments = __webpack_require__(298), isArray = __webpack_require__(34), isBuffer = __webpack_require__(299), isIndex = __webpack_require__(300), isTypedArray = __webpack_require__(301), objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty; 35325 module.exports = arrayLikeKeys; 35326 }, function(module, exports) { 35327 function baseTimes(n, iteratee) { 35328 for (var index = -1, result = Array(n); ++index < n; ) result[index] = iteratee(index); 35329 return result; 35330 } 35331 module.exports = baseTimes; 35332 }, function(module, exports, __webpack_require__) { 35333 function baseIsArguments(value) { 35334 return isObjectLike(value) && baseGetTag(value) == argsTag; 35335 } 35336 var baseGetTag = __webpack_require__(60), isObjectLike = __webpack_require__(43), argsTag = "[object Arguments]"; 35337 module.exports = baseIsArguments; 35338 }, function(module, exports) { 35339 function stubFalse() { 35340 return !1; 35341 } 35342 module.exports = stubFalse; 35343 }, function(module, exports, __webpack_require__) { 35344 function baseIsTypedArray(value) { 35345 return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; 35346 } 35347 var baseGetTag = __webpack_require__(60), isLength = __webpack_require__(192), isObjectLike = __webpack_require__(43), typedArrayTags = {}; 35348 typedArrayTags["[object Float32Array]"] = typedArrayTags["[object Float64Array]"] = typedArrayTags["[object Int8Array]"] = typedArrayTags["[object Int16Array]"] = typedArrayTags["[object Int32Array]"] = typedArrayTags["[object Uint8Array]"] = typedArrayTags["[object Uint8ClampedArray]"] = typedArrayTags["[object Uint16Array]"] = typedArrayTags["[object Uint32Array]"] = !0, 35349 typedArrayTags["[object Arguments]"] = typedArrayTags["[object Array]"] = typedArrayTags["[object ArrayBuffer]"] = typedArrayTags["[object Boolean]"] = typedArrayTags["[object DataView]"] = typedArrayTags["[object Date]"] = typedArrayTags["[object Error]"] = typedArrayTags["[object Function]"] = typedArrayTags["[object Map]"] = typedArrayTags["[object Number]"] = typedArrayTags["[object Object]"] = typedArrayTags["[object RegExp]"] = typedArrayTags["[object Set]"] = typedArrayTags["[object String]"] = typedArrayTags["[object WeakMap]"] = !1, 35350 module.exports = baseIsTypedArray; 35351 }, function(module, exports, __webpack_require__) { 35352 (function(module) { 35353 var freeGlobal = __webpack_require__(292), freeExports = "object" == typeof exports && exports && !exports.nodeType && exports, freeModule = freeExports && "object" == typeof module && module && !module.nodeType && module, moduleExports = freeModule && freeModule.exports === freeExports, freeProcess = moduleExports && freeGlobal.process, nodeUtil = function() { 35354 try { 35355 return freeProcess && freeProcess.binding && freeProcess.binding("util"); 35356 } catch (e) {} 35357 }(); 35358 module.exports = nodeUtil; 35359 }).call(exports, __webpack_require__(131)(module)); 35360 }, function(module, exports, __webpack_require__) { 35361 function baseKeys(object) { 35362 if (!isPrototype(object)) return nativeKeys(object); 35363 var result = []; 35364 for (var key in Object(object)) hasOwnProperty.call(object, key) && "constructor" != key && result.push(key); 35365 return result; 35366 } 35367 var isPrototype = __webpack_require__(706), nativeKeys = __webpack_require__(707), objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty; 35368 module.exports = baseKeys; 35369 }, function(module, exports) { 35370 function isPrototype(value) { 35371 var Ctor = value && value.constructor; 35372 return value === ("function" == typeof Ctor && Ctor.prototype || objectProto); 35373 } 35374 var objectProto = Object.prototype; 35375 module.exports = isPrototype; 35376 }, function(module, exports, __webpack_require__) { 35377 var overArg = __webpack_require__(303), nativeKeys = overArg(Object.keys, Object); 35378 module.exports = nativeKeys; 35379 }, function(module, exports, __webpack_require__) { 35380 var DataView = __webpack_require__(709), Map = __webpack_require__(188), Promise = __webpack_require__(710), Set = __webpack_require__(711), WeakMap = __webpack_require__(712), baseGetTag = __webpack_require__(60), toSource = __webpack_require__(293), dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap), getTag = baseGetTag; 35381 (DataView && "[object DataView]" != getTag(new DataView(new ArrayBuffer(1))) || Map && "[object Map]" != getTag(new Map()) || Promise && "[object Promise]" != getTag(Promise.resolve()) || Set && "[object Set]" != getTag(new Set()) || WeakMap && "[object WeakMap]" != getTag(new WeakMap())) && (getTag = function(value) { 35382 var result = baseGetTag(value), Ctor = "[object Object]" == result ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : ""; 35383 if (ctorString) switch (ctorString) { 35384 case dataViewCtorString: 35385 return "[object DataView]"; 35386 35387 case mapCtorString: 35388 return "[object Map]"; 35389 35390 case promiseCtorString: 35391 return "[object Promise]"; 35392 35393 case setCtorString: 35394 return "[object Set]"; 35395 35396 case weakMapCtorString: 35397 return "[object WeakMap]"; 35398 } 35399 return result; 35400 }), module.exports = getTag; 35401 }, function(module, exports, __webpack_require__) { 35402 var getNative = __webpack_require__(59), root = __webpack_require__(36), DataView = getNative(root, "DataView"); 35403 module.exports = DataView; 35404 }, function(module, exports, __webpack_require__) { 35405 var getNative = __webpack_require__(59), root = __webpack_require__(36), Promise = getNative(root, "Promise"); 35406 module.exports = Promise; 35407 }, function(module, exports, __webpack_require__) { 35408 var getNative = __webpack_require__(59), root = __webpack_require__(36), Set = getNative(root, "Set"); 35409 module.exports = Set; 35410 }, function(module, exports, __webpack_require__) { 35411 var getNative = __webpack_require__(59), root = __webpack_require__(36), WeakMap = getNative(root, "WeakMap"); 35412 module.exports = WeakMap; 35413 }, function(module, exports, __webpack_require__) { 35414 "use strict"; 35415 function _toArray(arr) { 35416 return Array.isArray(arr) ? arr : Array.from(arr); 35417 } 35418 function createAnimateManager() { 35419 var currStyle = {}, handleChange = function() { 35420 return null; 35421 }, shouldStop = !1, setStyle = function setStyle(_style) { 35422 if (!shouldStop) { 35423 if (Array.isArray(_style)) { 35424 if (!_style.length) return; 35425 var styles = _style, _styles = _toArray(styles), curr = _styles[0], restStyles = _styles.slice(1); 35426 return "number" == typeof curr ? void (0, _setRafTimeout2.default)(setStyle.bind(null, restStyles), curr) : (setStyle(curr), 35427 void (0, _setRafTimeout2.default)(setStyle.bind(null, restStyles))); 35428 } 35429 "object" === (void 0 === _style ? "undefined" : _typeof(_style)) && (currStyle = _style, 35430 handleChange(currStyle)), "function" == typeof _style && _style(); 35431 } 35432 }; 35433 return { 35434 stop: function() { 35435 shouldStop = !0; 35436 }, 35437 start: function(style) { 35438 shouldStop = !1, setStyle(style); 35439 }, 35440 subscribe: function(_handleChange) { 35441 return handleChange = _handleChange, function() { 35442 handleChange = function() { 35443 return null; 35444 }; 35445 }; 35446 } 35447 }; 35448 } 35449 Object.defineProperty(exports, "__esModule", { 35450 value: !0 35451 }); 35452 var _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj) { 35453 return typeof obj; 35454 } : function(obj) { 35455 return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 35456 }; 35457 exports.default = createAnimateManager; 35458 var _setRafTimeout = __webpack_require__(714), _setRafTimeout2 = function(obj) { 35459 return obj && obj.__esModule ? obj : { 35460 default: obj 35461 }; 35462 }(_setRafTimeout); 35463 }, function(module, exports, __webpack_require__) { 35464 "use strict"; 35465 function setRafTimeout(callback) { 35466 var timeout = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0, currTime = -1, shouldUpdate = function shouldUpdate(now) { 35467 currTime < 0 && (currTime = now), now - currTime > timeout ? (callback(now), currTime = -1) : (0, 35468 _raf2.default)(shouldUpdate); 35469 }; 35470 (0, _raf2.default)(shouldUpdate); 35471 } 35472 Object.defineProperty(exports, "__esModule", { 35473 value: !0 35474 }), exports.default = setRafTimeout; 35475 var _raf = __webpack_require__(304), _raf2 = function(obj) { 35476 return obj && obj.__esModule ? obj : { 35477 default: obj 35478 }; 35479 }(_raf); 35480 }, function(module, exports, __webpack_require__) { 35481 (function(process) { 35482 (function() { 35483 var getNanoSeconds, hrtime, loadTime, moduleLoadTime, nodeLoadTime, upTime; 35484 "undefined" != typeof performance && null !== performance && performance.now ? module.exports = function() { 35485 return performance.now(); 35486 } : void 0 !== process && null !== process && process.hrtime ? (module.exports = function() { 35487 return (getNanoSeconds() - nodeLoadTime) / 1e6; 35488 }, hrtime = process.hrtime, getNanoSeconds = function() { 35489 var hr; 35490 return hr = hrtime(), 1e9 * hr[0] + hr[1]; 35491 }, moduleLoadTime = getNanoSeconds(), upTime = 1e9 * process.uptime(), nodeLoadTime = moduleLoadTime - upTime) : Date.now ? (module.exports = function() { 35492 return Date.now() - loadTime; 35493 }, loadTime = Date.now()) : (module.exports = function() { 35494 return new Date().getTime() - loadTime; 35495 }, loadTime = new Date().getTime()); 35496 }).call(this); 35497 }).call(exports, __webpack_require__(2)); 35498 }, function(module, exports, __webpack_require__) { 35499 "use strict"; 35500 function _interopRequireDefault(obj) { 35501 return obj && obj.__esModule ? obj : { 35502 default: obj 35503 }; 35504 } 35505 function shallowEqual(objA, objB) { 35506 if (objA === objB) return !0; 35507 if ("object" !== (void 0 === objA ? "undefined" : _typeof(objA)) || null === objA || "object" !== (void 0 === objB ? "undefined" : _typeof(objB)) || null === objB) return !1; 35508 var keysA = Object.keys(objA), keysB = Object.keys(objB); 35509 if (keysA.length !== keysB.length) return !1; 35510 for (var bHasOwnProperty = hasOwnProperty.bind(objB), i = 0; i < keysA.length; i++) { 35511 var keyA = keysA[i]; 35512 if (objA[keyA] !== objB[keyA]) if ((0, _isArray3.default)(objA[keyA])) { 35513 if (!(0, _isArray3.default)(objB[keyA]) || objA[keyA].length !== objB[keyA].length) return !1; 35514 if (!(0, _isEqual3.default)(objA[keyA], objB[keyA])) return !1; 35515 } else if ((0, _isPlainObject3.default)(objA[keyA])) { 35516 if (!(0, _isPlainObject3.default)(objB[keyA]) || !(0, _isEqual3.default)(objA[keyA], objB[keyA])) return !1; 35517 } else if (!bHasOwnProperty(keysA[i]) || objA[keysA[i]] !== objB[keysA[i]]) return !1; 35518 } 35519 return !0; 35520 } 35521 function shallowCompare(instance, nextProps, nextState) { 35522 return !shallowEqual(instance.props, nextProps) || !shallowEqual(instance.state, nextState); 35523 } 35524 function shouldComponentUpdate(nextProps, nextState) { 35525 return shallowCompare(this, nextProps, nextState); 35526 } 35527 function pureRenderDecorator(component) { 35528 component.prototype.shouldComponentUpdate = shouldComponentUpdate; 35529 } 35530 Object.defineProperty(exports, "__esModule", { 35531 value: !0 35532 }), exports.shallowEqual = void 0; 35533 var _isPlainObject2 = __webpack_require__(717), _isPlainObject3 = _interopRequireDefault(_isPlainObject2), _isEqual2 = __webpack_require__(288), _isEqual3 = _interopRequireDefault(_isEqual2), _isArray2 = __webpack_require__(34), _isArray3 = _interopRequireDefault(_isArray2), _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj) { 35534 return typeof obj; 35535 } : function(obj) { 35536 return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 35537 }; 35538 exports.shallowEqual = shallowEqual, exports.default = pureRenderDecorator; 35539 }, function(module, exports, __webpack_require__) { 35540 function isPlainObject(value) { 35541 if (!isObjectLike(value) || baseGetTag(value) != objectTag) return !1; 35542 var proto = getPrototype(value); 35543 if (null === proto) return !0; 35544 var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor; 35545 return "function" == typeof Ctor && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString; 35546 } 35547 var baseGetTag = __webpack_require__(60), getPrototype = __webpack_require__(718), isObjectLike = __webpack_require__(43), objectTag = "[object Object]", funcProto = Function.prototype, objectProto = Object.prototype, funcToString = funcProto.toString, hasOwnProperty = objectProto.hasOwnProperty, objectCtorString = funcToString.call(Object); 35548 module.exports = isPlainObject; 35549 }, function(module, exports, __webpack_require__) { 35550 var overArg = __webpack_require__(303), getPrototype = overArg(Object.getPrototypeOf, Object); 35551 module.exports = getPrototype; 35552 }, function(module, exports, __webpack_require__) { 35553 var arrayMap = __webpack_require__(194), baseIntersection = __webpack_require__(720), baseRest = __webpack_require__(727), castArrayLikeObject = __webpack_require__(735), intersection = baseRest(function(arrays) { 35554 var mapped = arrayMap(arrays, castArrayLikeObject); 35555 return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped) : []; 35556 }); 35557 module.exports = intersection; 35558 }, function(module, exports, __webpack_require__) { 35559 function baseIntersection(arrays, iteratee, comparator) { 35560 for (var includes = comparator ? arrayIncludesWith : arrayIncludes, length = arrays[0].length, othLength = arrays.length, othIndex = othLength, caches = Array(othLength), maxLength = 1 / 0, result = []; othIndex--; ) { 35561 var array = arrays[othIndex]; 35562 othIndex && iteratee && (array = arrayMap(array, baseUnary(iteratee))), maxLength = nativeMin(array.length, maxLength), 35563 caches[othIndex] = !comparator && (iteratee || length >= 120 && array.length >= 120) ? new SetCache(othIndex && array) : void 0; 35564 } 35565 array = arrays[0]; 35566 var index = -1, seen = caches[0]; 35567 outer: for (;++index < length && result.length < maxLength; ) { 35568 var value = array[index], computed = iteratee ? iteratee(value) : value; 35569 if (value = comparator || 0 !== value ? value : 0, !(seen ? cacheHas(seen, computed) : includes(result, computed, comparator))) { 35570 for (othIndex = othLength; --othIndex; ) { 35571 var cache = caches[othIndex]; 35572 if (!(cache ? cacheHas(cache, computed) : includes(arrays[othIndex], computed, comparator))) continue outer; 35573 } 35574 seen && seen.push(computed), result.push(value); 35575 } 35576 } 35577 return result; 35578 } 35579 var SetCache = __webpack_require__(295), arrayIncludes = __webpack_require__(721), arrayIncludesWith = __webpack_require__(726), arrayMap = __webpack_require__(194), baseUnary = __webpack_require__(302), cacheHas = __webpack_require__(296), nativeMin = Math.min; 35580 module.exports = baseIntersection; 35581 }, function(module, exports, __webpack_require__) { 35582 function arrayIncludes(array, value) { 35583 return !!(null == array ? 0 : array.length) && baseIndexOf(array, value, 0) > -1; 35584 } 35585 var baseIndexOf = __webpack_require__(722); 35586 module.exports = arrayIncludes; 35587 }, function(module, exports, __webpack_require__) { 35588 function baseIndexOf(array, value, fromIndex) { 35589 return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex); 35590 } 35591 var baseFindIndex = __webpack_require__(723), baseIsNaN = __webpack_require__(724), strictIndexOf = __webpack_require__(725); 35592 module.exports = baseIndexOf; 35593 }, function(module, exports) { 35594 function baseFindIndex(array, predicate, fromIndex, fromRight) { 35595 for (var length = array.length, index = fromIndex + (fromRight ? 1 : -1); fromRight ? index-- : ++index < length; ) if (predicate(array[index], index, array)) return index; 35596 return -1; 35597 } 35598 module.exports = baseFindIndex; 35599 }, function(module, exports) { 35600 function baseIsNaN(value) { 35601 return value !== value; 35602 } 35603 module.exports = baseIsNaN; 35604 }, function(module, exports) { 35605 function strictIndexOf(array, value, fromIndex) { 35606 for (var index = fromIndex - 1, length = array.length; ++index < length; ) if (array[index] === value) return index; 35607 return -1; 35608 } 35609 module.exports = strictIndexOf; 35610 }, function(module, exports) { 35611 function arrayIncludesWith(array, value, comparator) { 35612 for (var index = -1, length = null == array ? 0 : array.length; ++index < length; ) if (comparator(value, array[index])) return !0; 35613 return !1; 35614 } 35615 module.exports = arrayIncludesWith; 35616 }, function(module, exports, __webpack_require__) { 35617 function baseRest(func, start) { 35618 return setToString(overRest(func, start, identity), func + ""); 35619 } 35620 var identity = __webpack_require__(195), overRest = __webpack_require__(728), setToString = __webpack_require__(730); 35621 module.exports = baseRest; 35622 }, function(module, exports, __webpack_require__) { 35623 function overRest(func, start, transform) { 35624 return start = nativeMax(void 0 === start ? func.length - 1 : start, 0), function() { 35625 for (var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length); ++index < length; ) array[index] = args[start + index]; 35626 index = -1; 35627 for (var otherArgs = Array(start + 1); ++index < start; ) otherArgs[index] = args[index]; 35628 return otherArgs[start] = transform(array), apply(func, this, otherArgs); 35629 }; 35630 } 35631 var apply = __webpack_require__(729), nativeMax = Math.max; 35632 module.exports = overRest; 35633 }, function(module, exports) { 35634 function apply(func, thisArg, args) { 35635 switch (args.length) { 35636 case 0: 35637 return func.call(thisArg); 35638 35639 case 1: 35640 return func.call(thisArg, args[0]); 35641 35642 case 2: 35643 return func.call(thisArg, args[0], args[1]); 35644 35645 case 3: 35646 return func.call(thisArg, args[0], args[1], args[2]); 35647 } 35648 return func.apply(thisArg, args); 35649 } 35650 module.exports = apply; 35651 }, function(module, exports, __webpack_require__) { 35652 var baseSetToString = __webpack_require__(731), shortOut = __webpack_require__(734), setToString = shortOut(baseSetToString); 35653 module.exports = setToString; 35654 }, function(module, exports, __webpack_require__) { 35655 var constant = __webpack_require__(732), defineProperty = __webpack_require__(733), identity = __webpack_require__(195), baseSetToString = defineProperty ? function(func, string) { 35656 return defineProperty(func, "toString", { 35657 configurable: !0, 35658 enumerable: !1, 35659 value: constant(string), 35660 writable: !0 35661 }); 35662 } : identity; 35663 module.exports = baseSetToString; 35664 }, function(module, exports) { 35665 function constant(value) { 35666 return function() { 35667 return value; 35668 }; 35669 } 35670 module.exports = constant; 35671 }, function(module, exports, __webpack_require__) { 35672 var getNative = __webpack_require__(59), defineProperty = function() { 35673 try { 35674 var func = getNative(Object, "defineProperty"); 35675 return func({}, "", {}), func; 35676 } catch (e) {} 35677 }(); 35678 module.exports = defineProperty; 35679 }, function(module, exports) { 35680 function shortOut(func) { 35681 var count = 0, lastCalled = 0; 35682 return function() { 35683 var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled); 35684 if (lastCalled = stamp, remaining > 0) { 35685 if (++count >= HOT_COUNT) return arguments[0]; 35686 } else count = 0; 35687 return func.apply(void 0, arguments); 35688 }; 35689 } 35690 var HOT_COUNT = 800, HOT_SPAN = 16, nativeNow = Date.now; 35691 module.exports = shortOut; 35692 }, function(module, exports, __webpack_require__) { 35693 function castArrayLikeObject(value) { 35694 return isArrayLikeObject(value) ? value : []; 35695 } 35696 var isArrayLikeObject = __webpack_require__(736); 35697 module.exports = castArrayLikeObject; 35698 }, function(module, exports, __webpack_require__) { 35699 function isArrayLikeObject(value) { 35700 return isObjectLike(value) && isArrayLike(value); 35701 } 35702 var isArrayLike = __webpack_require__(193), isObjectLike = __webpack_require__(43); 35703 module.exports = isArrayLikeObject; 35704 }, function(module, exports, __webpack_require__) { 35705 "use strict"; 35706 function _interopRequireDefault(obj) { 35707 return obj && obj.__esModule ? obj : { 35708 default: obj 35709 }; 35710 } 35711 function _toConsumableArray(arr) { 35712 if (Array.isArray(arr)) { 35713 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; 35714 return arr2; 35715 } 35716 return Array.from(arr); 35717 } 35718 function _defineProperty(obj, key, value) { 35719 return key in obj ? Object.defineProperty(obj, key, { 35720 value: value, 35721 enumerable: !0, 35722 configurable: !0, 35723 writable: !0 35724 }) : obj[key] = value, obj; 35725 } 35726 Object.defineProperty(exports, "__esModule", { 35727 value: !0 35728 }); 35729 var _filter2 = __webpack_require__(738), _filter3 = _interopRequireDefault(_filter2), _extends = Object.assign || function(target) { 35730 for (var i = 1; i < arguments.length; i++) { 35731 var source = arguments[i]; 35732 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 35733 } 35734 return target; 35735 }, _slicedToArray = function() { 35736 function sliceIterator(arr, i) { 35737 var _arr = [], _n = !0, _d = !1, _e = void 0; 35738 try { 35739 for (var _s, _i = arr[Symbol.iterator](); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), 35740 !i || _arr.length !== i); _n = !0) ; 35741 } catch (err) { 35742 _d = !0, _e = err; 35743 } finally { 35744 try { 35745 !_n && _i.return && _i.return(); 35746 } finally { 35747 if (_d) throw _e; 35748 } 35749 } 35750 return _arr; 35751 } 35752 return function(arr, i) { 35753 if (Array.isArray(arr)) return arr; 35754 if (Symbol.iterator in Object(arr)) return sliceIterator(arr, i); 35755 throw new TypeError("Invalid attempt to destructure non-iterable instance"); 35756 }; 35757 }(), _raf = __webpack_require__(304), _raf2 = _interopRequireDefault(_raf), _util = __webpack_require__(132), alpha = function(begin, end, k) { 35758 return begin + (end - begin) * k; 35759 }, needContinue = function(_ref) { 35760 return _ref.from !== _ref.to; 35761 }, calStepperVals = function calStepperVals(easing, preVals, steps) { 35762 var nextStepVals = (0, _util.mapObject)(function(key, val) { 35763 if (needContinue(val)) { 35764 var _easing = easing(val.from, val.to, val.velocity), _easing2 = _slicedToArray(_easing, 2), newX = _easing2[0], newV = _easing2[1]; 35765 return _extends({}, val, { 35766 from: newX, 35767 velocity: newV 35768 }); 35769 } 35770 return val; 35771 }, preVals); 35772 return steps < 1 ? (0, _util.mapObject)(function(key, val) { 35773 return needContinue(val) ? _extends({}, val, { 35774 velocity: alpha(val.velocity, nextStepVals[key].velocity, steps), 35775 from: alpha(val.from, nextStepVals[key].from, steps) 35776 }) : val; 35777 }, preVals) : calStepperVals(easing, nextStepVals, steps - 1); 35778 }; 35779 exports.default = function(from, to, easing, duration, render) { 35780 var interKeys = (0, _util.getIntersectionKeys)(from, to), timingStyle = interKeys.reduce(function(res, key) { 35781 return _extends({}, res, _defineProperty({}, key, [ from[key], to[key] ])); 35782 }, {}), stepperStyle = interKeys.reduce(function(res, key) { 35783 return _extends({}, res, _defineProperty({}, key, { 35784 from: from[key], 35785 velocity: 0, 35786 to: to[key] 35787 })); 35788 }, {}), cafId = -1, preTime = void 0, beginTime = void 0, update = function() { 35789 return null; 35790 }, getCurrStyle = function() { 35791 return (0, _util.mapObject)(function(key, val) { 35792 return val.from; 35793 }, stepperStyle); 35794 }, shouldStopAnimation = function() { 35795 return !(0, _filter3.default)(stepperStyle, needContinue).length; 35796 }, stepperUpdate = function(now) { 35797 preTime || (preTime = now); 35798 var deltaTime = now - preTime, steps = deltaTime / easing.dt; 35799 stepperStyle = calStepperVals(easing, stepperStyle, steps), render(_extends({}, from, to, getCurrStyle())), 35800 preTime = now, shouldStopAnimation() || (cafId = (0, _raf2.default)(update)); 35801 }, timingUpdate = function(now) { 35802 beginTime || (beginTime = now); 35803 var t = (now - beginTime) / duration, currStyle = (0, _util.mapObject)(function(key, val) { 35804 return alpha.apply(void 0, _toConsumableArray(val).concat([ easing(t) ])); 35805 }, timingStyle); 35806 if (render(_extends({}, from, to, currStyle)), t < 1) cafId = (0, _raf2.default)(update); else { 35807 var finalStyle = (0, _util.mapObject)(function(key, val) { 35808 return alpha.apply(void 0, _toConsumableArray(val).concat([ easing(1) ])); 35809 }, timingStyle); 35810 render(_extends({}, from, to, finalStyle)); 35811 } 35812 }; 35813 return update = easing.isStepper ? stepperUpdate : timingUpdate, function() { 35814 return (0, _raf2.default)(update), function() { 35815 (0, _raf.cancel)(cafId); 35816 }; 35817 }; 35818 }; 35819 }, function(module, exports, __webpack_require__) { 35820 function filter(collection, predicate) { 35821 return (isArray(collection) ? arrayFilter : baseFilter)(collection, baseIteratee(predicate, 3)); 35822 } 35823 var arrayFilter = __webpack_require__(297), baseFilter = __webpack_require__(739), baseIteratee = __webpack_require__(745), isArray = __webpack_require__(34); 35824 module.exports = filter; 35825 }, function(module, exports, __webpack_require__) { 35826 function baseFilter(collection, predicate) { 35827 var result = []; 35828 return baseEach(collection, function(value, index, collection) { 35829 predicate(value, index, collection) && result.push(value); 35830 }), result; 35831 } 35832 var baseEach = __webpack_require__(740); 35833 module.exports = baseFilter; 35834 }, function(module, exports, __webpack_require__) { 35835 var baseForOwn = __webpack_require__(741), createBaseEach = __webpack_require__(744), baseEach = createBaseEach(baseForOwn); 35836 module.exports = baseEach; 35837 }, function(module, exports, __webpack_require__) { 35838 function baseForOwn(object, iteratee) { 35839 return object && baseFor(object, iteratee, keys); 35840 } 35841 var baseFor = __webpack_require__(742), keys = __webpack_require__(191); 35842 module.exports = baseForOwn; 35843 }, function(module, exports, __webpack_require__) { 35844 var createBaseFor = __webpack_require__(743), baseFor = createBaseFor(); 35845 module.exports = baseFor; 35846 }, function(module, exports) { 35847 function createBaseFor(fromRight) { 35848 return function(object, iteratee, keysFunc) { 35849 for (var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length; length--; ) { 35850 var key = props[fromRight ? length : ++index]; 35851 if (!1 === iteratee(iterable[key], key, iterable)) break; 35852 } 35853 return object; 35854 }; 35855 } 35856 module.exports = createBaseFor; 35857 }, function(module, exports, __webpack_require__) { 35858 function createBaseEach(eachFunc, fromRight) { 35859 return function(collection, iteratee) { 35860 if (null == collection) return collection; 35861 if (!isArrayLike(collection)) return eachFunc(collection, iteratee); 35862 for (var length = collection.length, index = fromRight ? length : -1, iterable = Object(collection); (fromRight ? index-- : ++index < length) && !1 !== iteratee(iterable[index], index, iterable); ) ; 35863 return collection; 35864 }; 35865 } 35866 var isArrayLike = __webpack_require__(193); 35867 module.exports = createBaseEach; 35868 }, function(module, exports, __webpack_require__) { 35869 function baseIteratee(value) { 35870 return "function" == typeof value ? value : null == value ? identity : "object" == typeof value ? isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value) : property(value); 35871 } 35872 var baseMatches = __webpack_require__(746), baseMatchesProperty = __webpack_require__(749), identity = __webpack_require__(195), isArray = __webpack_require__(34), property = __webpack_require__(759); 35873 module.exports = baseIteratee; 35874 }, function(module, exports, __webpack_require__) { 35875 function baseMatches(source) { 35876 var matchData = getMatchData(source); 35877 return 1 == matchData.length && matchData[0][2] ? matchesStrictComparable(matchData[0][0], matchData[0][1]) : function(object) { 35878 return object === source || baseIsMatch(object, source, matchData); 35879 }; 35880 } 35881 var baseIsMatch = __webpack_require__(747), getMatchData = __webpack_require__(748), matchesStrictComparable = __webpack_require__(307); 35882 module.exports = baseMatches; 35883 }, function(module, exports, __webpack_require__) { 35884 function baseIsMatch(object, source, matchData, customizer) { 35885 var index = matchData.length, length = index, noCustomizer = !customizer; 35886 if (null == object) return !length; 35887 for (object = Object(object); index--; ) { 35888 var data = matchData[index]; 35889 if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) return !1; 35890 } 35891 for (;++index < length; ) { 35892 data = matchData[index]; 35893 var key = data[0], objValue = object[key], srcValue = data[1]; 35894 if (noCustomizer && data[2]) { 35895 if (void 0 === objValue && !(key in object)) return !1; 35896 } else { 35897 var stack = new Stack(); 35898 if (customizer) var result = customizer(objValue, srcValue, key, object, source, stack); 35899 if (!(void 0 === result ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) : result)) return !1; 35900 } 35901 } 35902 return !0; 35903 } 35904 var Stack = __webpack_require__(289), baseIsEqual = __webpack_require__(187), COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; 35905 module.exports = baseIsMatch; 35906 }, function(module, exports, __webpack_require__) { 35907 function getMatchData(object) { 35908 for (var result = keys(object), length = result.length; length--; ) { 35909 var key = result[length], value = object[key]; 35910 result[length] = [ key, value, isStrictComparable(value) ]; 35911 } 35912 return result; 35913 } 35914 var isStrictComparable = __webpack_require__(306), keys = __webpack_require__(191); 35915 module.exports = getMatchData; 35916 }, function(module, exports, __webpack_require__) { 35917 function baseMatchesProperty(path, srcValue) { 35918 return isKey(path) && isStrictComparable(srcValue) ? matchesStrictComparable(toKey(path), srcValue) : function(object) { 35919 var objValue = get(object, path); 35920 return void 0 === objValue && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG); 35921 }; 35922 } 35923 var baseIsEqual = __webpack_require__(187), get = __webpack_require__(750), hasIn = __webpack_require__(756), isKey = __webpack_require__(196), isStrictComparable = __webpack_require__(306), matchesStrictComparable = __webpack_require__(307), toKey = __webpack_require__(133), COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; 35924 module.exports = baseMatchesProperty; 35925 }, function(module, exports, __webpack_require__) { 35926 function get(object, path, defaultValue) { 35927 var result = null == object ? void 0 : baseGet(object, path); 35928 return void 0 === result ? defaultValue : result; 35929 } 35930 var baseGet = __webpack_require__(308); 35931 module.exports = get; 35932 }, function(module, exports, __webpack_require__) { 35933 var memoizeCapped = __webpack_require__(752), rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, reEscapeChar = /\\(\\)?/g, stringToPath = memoizeCapped(function(string) { 35934 var result = []; 35935 return 46 === string.charCodeAt(0) && result.push(""), string.replace(rePropName, function(match, number, quote, subString) { 35936 result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match); 35937 }), result; 35938 }); 35939 module.exports = stringToPath; 35940 }, function(module, exports, __webpack_require__) { 35941 function memoizeCapped(func) { 35942 var result = memoize(func, function(key) { 35943 return cache.size === MAX_MEMOIZE_SIZE && cache.clear(), key; 35944 }), cache = result.cache; 35945 return result; 35946 } 35947 var memoize = __webpack_require__(753), MAX_MEMOIZE_SIZE = 500; 35948 module.exports = memoizeCapped; 35949 }, function(module, exports, __webpack_require__) { 35950 function memoize(func, resolver) { 35951 if ("function" != typeof func || null != resolver && "function" != typeof resolver) throw new TypeError(FUNC_ERROR_TEXT); 35952 var memoized = function() { 35953 var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache; 35954 if (cache.has(key)) return cache.get(key); 35955 var result = func.apply(this, args); 35956 return memoized.cache = cache.set(key, result) || cache, result; 35957 }; 35958 return memoized.cache = new (memoize.Cache || MapCache)(), memoized; 35959 } 35960 var MapCache = __webpack_require__(190), FUNC_ERROR_TEXT = "Expected a function"; 35961 memoize.Cache = MapCache, module.exports = memoize; 35962 }, function(module, exports, __webpack_require__) { 35963 function toString(value) { 35964 return null == value ? "" : baseToString(value); 35965 } 35966 var baseToString = __webpack_require__(755); 35967 module.exports = toString; 35968 }, function(module, exports, __webpack_require__) { 35969 function baseToString(value) { 35970 if ("string" == typeof value) return value; 35971 if (isArray(value)) return arrayMap(value, baseToString) + ""; 35972 if (isSymbol(value)) return symbolToString ? symbolToString.call(value) : ""; 35973 var result = value + ""; 35974 return "0" == result && 1 / value == -INFINITY ? "-0" : result; 35975 } 35976 var Symbol = __webpack_require__(128), arrayMap = __webpack_require__(194), isArray = __webpack_require__(34), isSymbol = __webpack_require__(197), INFINITY = 1 / 0, symbolProto = Symbol ? Symbol.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0; 35977 module.exports = baseToString; 35978 }, function(module, exports, __webpack_require__) { 35979 function hasIn(object, path) { 35980 return null != object && hasPath(object, path, baseHasIn); 35981 } 35982 var baseHasIn = __webpack_require__(757), hasPath = __webpack_require__(758); 35983 module.exports = hasIn; 35984 }, function(module, exports) { 35985 function baseHasIn(object, key) { 35986 return null != object && key in Object(object); 35987 } 35988 module.exports = baseHasIn; 35989 }, function(module, exports, __webpack_require__) { 35990 function hasPath(object, path, hasFunc) { 35991 path = castPath(path, object); 35992 for (var index = -1, length = path.length, result = !1; ++index < length; ) { 35993 var key = toKey(path[index]); 35994 if (!(result = null != object && hasFunc(object, key))) break; 35995 object = object[key]; 35996 } 35997 return result || ++index != length ? result : !!(length = null == object ? 0 : object.length) && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object)); 35998 } 35999 var castPath = __webpack_require__(309), isArguments = __webpack_require__(298), isArray = __webpack_require__(34), isIndex = __webpack_require__(300), isLength = __webpack_require__(192), toKey = __webpack_require__(133); 36000 module.exports = hasPath; 36001 }, function(module, exports, __webpack_require__) { 36002 function property(path) { 36003 return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path); 36004 } 36005 var baseProperty = __webpack_require__(760), basePropertyDeep = __webpack_require__(761), isKey = __webpack_require__(196), toKey = __webpack_require__(133); 36006 module.exports = property; 36007 }, function(module, exports) { 36008 function baseProperty(key) { 36009 return function(object) { 36010 return null == object ? void 0 : object[key]; 36011 }; 36012 } 36013 module.exports = baseProperty; 36014 }, function(module, exports, __webpack_require__) { 36015 function basePropertyDeep(path) { 36016 return function(object) { 36017 return baseGet(object, path); 36018 }; 36019 } 36020 var baseGet = __webpack_require__(308); 36021 module.exports = basePropertyDeep; 36022 }, function(module, exports, __webpack_require__) { 36023 "use strict"; 36024 function _interopRequireDefault(obj) { 36025 return obj && obj.__esModule ? obj : { 36026 default: obj 36027 }; 36028 } 36029 function _classCallCheck(instance, Constructor) { 36030 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 36031 } 36032 function _possibleConstructorReturn(self, call) { 36033 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 36034 return !call || "object" != typeof call && "function" != typeof call ? self : call; 36035 } 36036 function _inherits(subClass, superClass) { 36037 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 36038 subClass.prototype = Object.create(superClass && superClass.prototype, { 36039 constructor: { 36040 value: subClass, 36041 enumerable: !1, 36042 writable: !0, 36043 configurable: !0 36044 } 36045 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 36046 } 36047 Object.defineProperty(exports, "__esModule", { 36048 value: !0 36049 }); 36050 var _class, _temp, _createClass = function() { 36051 function defineProperties(target, props) { 36052 for (var i = 0; i < props.length; i++) { 36053 var descriptor = props[i]; 36054 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 36055 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 36056 } 36057 } 36058 return function(Constructor, protoProps, staticProps) { 36059 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 36060 Constructor; 36061 }; 36062 }(), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _TransitionGroup = __webpack_require__(255), _TransitionGroup2 = _interopRequireDefault(_TransitionGroup), _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _AnimateGroupChild = __webpack_require__(763), _AnimateGroupChild2 = _interopRequireDefault(_AnimateGroupChild), AnimateGroup = (_temp = _class = function(_Component) { 36063 function AnimateGroup() { 36064 return _classCallCheck(this, AnimateGroup), _possibleConstructorReturn(this, (AnimateGroup.__proto__ || Object.getPrototypeOf(AnimateGroup)).apply(this, arguments)); 36065 } 36066 return _inherits(AnimateGroup, _Component), _createClass(AnimateGroup, [ { 36067 key: "render", 36068 value: function() { 36069 var _props = this.props, component = _props.component, children = _props.children, appear = _props.appear, enter = _props.enter, leave = _props.leave; 36070 return _react2.default.createElement(_TransitionGroup2.default, { 36071 component: component 36072 }, _react.Children.map(children, function(child, index) { 36073 return _react2.default.createElement(_AnimateGroupChild2.default, { 36074 appearOptions: appear, 36075 enterOptions: enter, 36076 leaveOptions: leave, 36077 key: "child-" + index 36078 }, child); 36079 })); 36080 } 36081 } ]), AnimateGroup; 36082 }(_react.Component), _class.propTypes = { 36083 appear: _propTypes2.default.object, 36084 enter: _propTypes2.default.object, 36085 leave: _propTypes2.default.object, 36086 children: _propTypes2.default.oneOfType([ _propTypes2.default.array, _propTypes2.default.element ]), 36087 component: _propTypes2.default.any 36088 }, _class.defaultProps = { 36089 component: "span" 36090 }, _temp); 36091 exports.default = AnimateGroup; 36092 }, function(module, exports, __webpack_require__) { 36093 "use strict"; 36094 function _interopRequireDefault(obj) { 36095 return obj && obj.__esModule ? obj : { 36096 default: obj 36097 }; 36098 } 36099 function _objectWithoutProperties(obj, keys) { 36100 var target = {}; 36101 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 36102 return target; 36103 } 36104 function _classCallCheck(instance, Constructor) { 36105 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 36106 } 36107 function _possibleConstructorReturn(self, call) { 36108 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 36109 return !call || "object" != typeof call && "function" != typeof call ? self : call; 36110 } 36111 function _inherits(subClass, superClass) { 36112 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 36113 subClass.prototype = Object.create(superClass && superClass.prototype, { 36114 constructor: { 36115 value: subClass, 36116 enumerable: !1, 36117 writable: !0, 36118 configurable: !0 36119 } 36120 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 36121 } 36122 Object.defineProperty(exports, "__esModule", { 36123 value: !0 36124 }); 36125 var _class, _temp2, _isNumber2 = __webpack_require__(764), _isNumber3 = _interopRequireDefault(_isNumber2), _extends = Object.assign || function(target) { 36126 for (var i = 1; i < arguments.length; i++) { 36127 var source = arguments[i]; 36128 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 36129 } 36130 return target; 36131 }, _createClass = function() { 36132 function defineProperties(target, props) { 36133 for (var i = 0; i < props.length; i++) { 36134 var descriptor = props[i]; 36135 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 36136 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 36137 } 36138 } 36139 return function(Constructor, protoProps, staticProps) { 36140 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 36141 Constructor; 36142 }; 36143 }(), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _Transition = __webpack_require__(166), _Transition2 = _interopRequireDefault(_Transition), _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _Animate = __webpack_require__(287), _Animate2 = _interopRequireDefault(_Animate), parseDurationOfSingleTransition = function() { 36144 var options = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, steps = options.steps, duration = options.duration; 36145 return steps && steps.length ? steps.reduce(function(result, entry) { 36146 return result + ((0, _isNumber3.default)(entry.duration) && entry.duration > 0 ? entry.duration : 0); 36147 }, 0) : (0, _isNumber3.default)(duration) ? duration : 0; 36148 }, AnimateGroupChild = (_temp2 = _class = function(_Component) { 36149 function AnimateGroupChild() { 36150 var _ref, _temp, _this, _ret; 36151 _classCallCheck(this, AnimateGroupChild); 36152 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 36153 return _temp = _this = _possibleConstructorReturn(this, (_ref = AnimateGroupChild.__proto__ || Object.getPrototypeOf(AnimateGroupChild)).call.apply(_ref, [ this ].concat(args))), 36154 _this.state = { 36155 isActive: !1 36156 }, _this.handleEnter = function(node, isAppearing) { 36157 var _this$props = _this.props, appearOptions = _this$props.appearOptions, enterOptions = _this$props.enterOptions; 36158 _this.handleStyleActive(isAppearing ? appearOptions : enterOptions); 36159 }, _this.handleExit = function() { 36160 _this.handleStyleActive(_this.props.leaveOptions); 36161 }, _ret = _temp, _possibleConstructorReturn(_this, _ret); 36162 } 36163 return _inherits(AnimateGroupChild, _Component), _createClass(AnimateGroupChild, [ { 36164 key: "handleStyleActive", 36165 value: function(style) { 36166 if (style) { 36167 var onAnimationEnd = style.onAnimationEnd ? function() { 36168 style.onAnimationEnd(); 36169 } : null; 36170 this.setState(_extends({}, style, { 36171 onAnimationEnd: onAnimationEnd, 36172 isActive: !0 36173 })); 36174 } 36175 } 36176 }, { 36177 key: "parseTimeout", 36178 value: function() { 36179 var _props = this.props, appearOptions = _props.appearOptions, enterOptions = _props.enterOptions, leaveOptions = _props.leaveOptions; 36180 return parseDurationOfSingleTransition(appearOptions) + parseDurationOfSingleTransition(enterOptions) + parseDurationOfSingleTransition(leaveOptions); 36181 } 36182 }, { 36183 key: "render", 36184 value: function() { 36185 var _this2 = this, _props2 = this.props, children = _props2.children, props = (_props2.appearOptions, 36186 _props2.enterOptions, _props2.leaveOptions, _objectWithoutProperties(_props2, [ "children", "appearOptions", "enterOptions", "leaveOptions" ])); 36187 return _react2.default.createElement(_Transition2.default, _extends({}, props, { 36188 onEnter: this.handleEnter, 36189 onExit: this.handleExit, 36190 timeout: this.parseTimeout() 36191 }), function(transitionState) { 36192 return _react2.default.createElement(_Animate2.default, _this2.state, _react.Children.only(children)); 36193 }); 36194 } 36195 } ]), AnimateGroupChild; 36196 }(_react.Component), _class.propTypes = { 36197 appearOptions: _propTypes2.default.object, 36198 enterOptions: _propTypes2.default.object, 36199 leaveOptions: _propTypes2.default.object, 36200 children: _propTypes2.default.element 36201 }, _temp2); 36202 exports.default = AnimateGroupChild; 36203 }, function(module, exports, __webpack_require__) { 36204 function isNumber(value) { 36205 return "number" == typeof value || isObjectLike(value) && baseGetTag(value) == numberTag; 36206 } 36207 var baseGetTag = __webpack_require__(60), isObjectLike = __webpack_require__(43), numberTag = "[object Number]"; 36208 module.exports = isNumber; 36209 }, function(module, __webpack_exports__, __webpack_require__) { 36210 "use strict"; 36211 function _classCallCheck(instance, Constructor) { 36212 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 36213 } 36214 function _possibleConstructorReturn(self, call) { 36215 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 36216 return !call || "object" != typeof call && "function" != typeof call ? self : call; 36217 } 36218 function _inherits(subClass, superClass) { 36219 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 36220 subClass.prototype = Object.create(superClass && superClass.prototype, { 36221 constructor: { 36222 value: subClass, 36223 enumerable: !1, 36224 writable: !0, 36225 configurable: !0 36226 } 36227 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 36228 } 36229 var _class, _class2, _temp, __WEBPACK_IMPORTED_MODULE_0_lodash_isArray__ = __webpack_require__(13), __WEBPACK_IMPORTED_MODULE_0_lodash_isArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isArray__), __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__), __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__), __WEBPACK_IMPORTED_MODULE_3__util_PureRender__ = __webpack_require__(5), __WEBPACK_IMPORTED_MODULE_4__util_DataUtils__ = __webpack_require__(9), _extends = Object.assign || function(target) { 36230 for (var i = 1; i < arguments.length; i++) { 36231 var source = arguments[i]; 36232 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 36233 } 36234 return target; 36235 }, _createClass = function() { 36236 function defineProperties(target, props) { 36237 for (var i = 0; i < props.length; i++) { 36238 var descriptor = props[i]; 36239 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 36240 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 36241 } 36242 } 36243 return function(Constructor, protoProps, staticProps) { 36244 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 36245 Constructor; 36246 }; 36247 }(), defaultFormatter = function(value) { 36248 return __WEBPACK_IMPORTED_MODULE_0_lodash_isArray___default()(value) && Object(__WEBPACK_IMPORTED_MODULE_4__util_DataUtils__.g)(value[0]) && Object(__WEBPACK_IMPORTED_MODULE_4__util_DataUtils__.g)(value[1]) ? value.join(" ~ ") : value; 36249 }, DefaultTooltipContent = Object(__WEBPACK_IMPORTED_MODULE_3__util_PureRender__.a)((_temp = _class2 = function(_Component) { 36250 function DefaultTooltipContent() { 36251 return _classCallCheck(this, DefaultTooltipContent), _possibleConstructorReturn(this, (DefaultTooltipContent.__proto__ || Object.getPrototypeOf(DefaultTooltipContent)).apply(this, arguments)); 36252 } 36253 return _inherits(DefaultTooltipContent, _Component), _createClass(DefaultTooltipContent, [ { 36254 key: "renderContent", 36255 value: function() { 36256 var _props = this.props, payload = _props.payload, separator = _props.separator, formatter = _props.formatter, itemStyle = _props.itemStyle, itemSorter = _props.itemSorter; 36257 if (payload && payload.length) { 36258 var listStyle = { 36259 padding: 0, 36260 margin: 0 36261 }, items = payload.sort(itemSorter).map(function(entry, i) { 36262 var finalItemStyle = _extends({ 36263 display: "block", 36264 paddingTop: 4, 36265 paddingBottom: 4, 36266 color: entry.color || "#000" 36267 }, itemStyle), hasName = Object(__WEBPACK_IMPORTED_MODULE_4__util_DataUtils__.g)(entry.name), finalFormatter = entry.formatter || formatter || defaultFormatter; 36268 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("li", { 36269 className: "recharts-tooltip-item", 36270 key: "tooltip-item-" + i, 36271 style: finalItemStyle 36272 }, hasName ? __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("span", { 36273 className: "recharts-tooltip-item-name" 36274 }, entry.name) : null, hasName ? __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("span", { 36275 className: "recharts-tooltip-item-separator" 36276 }, separator) : null, __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("span", { 36277 className: "recharts-tooltip-item-value" 36278 }, finalFormatter ? finalFormatter(entry.value, entry.name, entry, i) : entry.value), __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("span", { 36279 className: "recharts-tooltip-item-unit" 36280 }, entry.unit || "")); 36281 }); 36282 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("ul", { 36283 className: "recharts-tooltip-item-list", 36284 style: listStyle 36285 }, items); 36286 } 36287 return null; 36288 } 36289 }, { 36290 key: "render", 36291 value: function() { 36292 var _props2 = this.props, labelStyle = _props2.labelStyle, label = _props2.label, labelFormatter = _props2.labelFormatter, wrapperStyle = _props2.wrapperStyle, finalStyle = _extends({ 36293 margin: 0, 36294 padding: 10, 36295 backgroundColor: "#fff", 36296 border: "1px solid #ccc", 36297 whiteSpace: "nowrap" 36298 }, wrapperStyle), finalLabelStyle = _extends({ 36299 margin: 0 36300 }, labelStyle), hasLabel = Object(__WEBPACK_IMPORTED_MODULE_4__util_DataUtils__.g)(label), finalLabel = hasLabel ? label : ""; 36301 return hasLabel && labelFormatter && (finalLabel = labelFormatter(label)), __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("div", { 36302 className: "recharts-default-tooltip", 36303 style: finalStyle 36304 }, __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("p", { 36305 className: "recharts-tooltip-label", 36306 style: finalLabelStyle 36307 }, finalLabel), this.renderContent()); 36308 } 36309 } ]), DefaultTooltipContent; 36310 }(__WEBPACK_IMPORTED_MODULE_1_react__.Component), _class2.displayName = "DefaultTooltipContent", 36311 _class2.propTypes = { 36312 separator: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, 36313 formatter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, 36314 wrapperStyle: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object, 36315 itemStyle: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object, 36316 labelStyle: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object, 36317 labelFormatter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, 36318 label: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.any, 36319 payload: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.shape({ 36320 name: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.any, 36321 value: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.array ]), 36322 unit: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.any 36323 })), 36324 itemSorter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func 36325 }, _class2.defaultProps = { 36326 separator: " : ", 36327 itemStyle: {}, 36328 labelStyle: {} 36329 }, _class = _temp)) || _class; 36330 __webpack_exports__.a = DefaultTooltipContent; 36331 }, function(module, __webpack_exports__, __webpack_require__) { 36332 "use strict"; 36333 function _classCallCheck(instance, Constructor) { 36334 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 36335 } 36336 function _possibleConstructorReturn(self, call) { 36337 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 36338 return !call || "object" != typeof call && "function" != typeof call ? self : call; 36339 } 36340 function _inherits(subClass, superClass) { 36341 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 36342 subClass.prototype = Object.create(superClass && superClass.prototype, { 36343 constructor: { 36344 value: subClass, 36345 enumerable: !1, 36346 writable: !0, 36347 configurable: !0 36348 } 36349 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 36350 } 36351 var _class, _temp, __WEBPACK_IMPORTED_MODULE_0_lodash_debounce__ = __webpack_require__(310), __WEBPACK_IMPORTED_MODULE_0_lodash_debounce___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_debounce__), __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__), __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__), __WEBPACK_IMPORTED_MODULE_3_classnames__ = __webpack_require__(3), __WEBPACK_IMPORTED_MODULE_3_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_classnames__), __WEBPACK_IMPORTED_MODULE_4_react_resize_detector__ = __webpack_require__(768), __WEBPACK_IMPORTED_MODULE_4_react_resize_detector___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react_resize_detector__), __WEBPACK_IMPORTED_MODULE_5__util_DataUtils__ = __webpack_require__(9), __WEBPACK_IMPORTED_MODULE_6__util_LogUtils__ = __webpack_require__(312), _createClass = function() { 36352 function defineProperties(target, props) { 36353 for (var i = 0; i < props.length; i++) { 36354 var descriptor = props[i]; 36355 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 36356 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 36357 } 36358 } 36359 return function(Constructor, protoProps, staticProps) { 36360 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 36361 Constructor; 36362 }; 36363 }(), ResponsiveContainer = (_temp = _class = function(_Component) { 36364 function ResponsiveContainer(props) { 36365 _classCallCheck(this, ResponsiveContainer); 36366 var _this = _possibleConstructorReturn(this, (ResponsiveContainer.__proto__ || Object.getPrototypeOf(ResponsiveContainer)).call(this, props)); 36367 return _this.updateDimensionsImmediate = function() { 36368 if (_this.mounted) { 36369 var newSize = _this.getContainerSize(); 36370 if (newSize) { 36371 var _this$state = _this.state, oldWidth = _this$state.containerWidth, oldHeight = _this$state.containerHeight, containerWidth = newSize.containerWidth, containerHeight = newSize.containerHeight; 36372 containerWidth === oldWidth && containerHeight === oldHeight || _this.setState({ 36373 containerWidth: containerWidth, 36374 containerHeight: containerHeight 36375 }); 36376 } 36377 } 36378 }, _this.state = { 36379 containerWidth: -1, 36380 containerHeight: -1 36381 }, _this.handleResize = props.debounce > 0 ? __WEBPACK_IMPORTED_MODULE_0_lodash_debounce___default()(_this.updateDimensionsImmediate, props.debounce) : _this.updateDimensionsImmediate, 36382 _this; 36383 } 36384 return _inherits(ResponsiveContainer, _Component), _createClass(ResponsiveContainer, [ { 36385 key: "componentDidMount", 36386 value: function() { 36387 this.mounted = !0; 36388 var size = this.getContainerSize(); 36389 size && this.setState(size); 36390 } 36391 }, { 36392 key: "componentWillUnmount", 36393 value: function() { 36394 this.mounted = !1; 36395 } 36396 }, { 36397 key: "getContainerSize", 36398 value: function() { 36399 return this.container ? { 36400 containerWidth: this.container.clientWidth, 36401 containerHeight: this.container.clientHeight 36402 } : null; 36403 } 36404 }, { 36405 key: "renderChart", 36406 value: function() { 36407 var _state = this.state, containerWidth = _state.containerWidth, containerHeight = _state.containerHeight; 36408 if (containerWidth < 0 || containerHeight < 0) return null; 36409 var _props = this.props, aspect = _props.aspect, width = _props.width, height = _props.height, minWidth = _props.minWidth, minHeight = _props.minHeight, maxHeight = _props.maxHeight, children = _props.children; 36410 Object(__WEBPACK_IMPORTED_MODULE_6__util_LogUtils__.a)(Object(__WEBPACK_IMPORTED_MODULE_5__util_DataUtils__.i)(width) || Object(__WEBPACK_IMPORTED_MODULE_5__util_DataUtils__.i)(height), "The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.", width, height), 36411 Object(__WEBPACK_IMPORTED_MODULE_6__util_LogUtils__.a)(!aspect || aspect > 0, "The aspect(%s) must be greater than zero.", aspect); 36412 var calculatedWidth = Object(__WEBPACK_IMPORTED_MODULE_5__util_DataUtils__.i)(width) ? containerWidth : width, calculatedHeight = Object(__WEBPACK_IMPORTED_MODULE_5__util_DataUtils__.i)(height) ? containerHeight : height; 36413 return aspect && aspect > 0 && (calculatedHeight = calculatedWidth / aspect, maxHeight && calculatedHeight > maxHeight && (calculatedHeight = maxHeight)), 36414 Object(__WEBPACK_IMPORTED_MODULE_6__util_LogUtils__.a)(calculatedWidth > 0 || calculatedHeight > 0, "The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.", calculatedWidth, calculatedHeight, width, height, minWidth, minHeight, aspect), 36415 __WEBPACK_IMPORTED_MODULE_1_react___default.a.cloneElement(children, { 36416 width: calculatedWidth, 36417 height: calculatedHeight 36418 }); 36419 } 36420 }, { 36421 key: "render", 36422 value: function() { 36423 var _this2 = this, _props2 = this.props, minWidth = _props2.minWidth, minHeight = _props2.minHeight, width = _props2.width, height = _props2.height, maxHeight = _props2.maxHeight, id = _props2.id, className = _props2.className, style = { 36424 width: width, 36425 height: height, 36426 minWidth: minWidth, 36427 minHeight: minHeight, 36428 maxHeight: maxHeight 36429 }; 36430 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("div", { 36431 id: id, 36432 className: __WEBPACK_IMPORTED_MODULE_3_classnames___default()("recharts-responsive-container", className), 36433 style: style, 36434 ref: function(node) { 36435 _this2.container = node; 36436 } 36437 }, this.renderChart(), __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4_react_resize_detector___default.a, { 36438 handleWidth: !0, 36439 handleHeight: !0, 36440 onResize: this.handleResize 36441 })); 36442 } 36443 } ]), ResponsiveContainer; 36444 }(__WEBPACK_IMPORTED_MODULE_1_react__.Component), _class.displayName = "ResponsiveContainer", 36445 _class.propTypes = { 36446 aspect: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 36447 width: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number ]), 36448 height: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number ]), 36449 minHeight: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number ]), 36450 minWidth: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number ]), 36451 maxHeight: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number ]), 36452 children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node.isRequired, 36453 debounce: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 36454 id: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number ]), 36455 className: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number ]) 36456 }, _class.defaultProps = { 36457 width: "100%", 36458 height: "100%", 36459 debounce: 0 36460 }, _temp); 36461 __webpack_exports__.a = ResponsiveContainer; 36462 }, function(module, exports, __webpack_require__) { 36463 var root = __webpack_require__(31), now = function() { 36464 return root.Date.now(); 36465 }; 36466 module.exports = now; 36467 }, function(module, exports, __webpack_require__) { 36468 "use strict"; 36469 Object.defineProperty(exports, "__esModule", { 36470 value: !0 36471 }); 36472 var _ResizeDetector = __webpack_require__(769), _ResizeDetector2 = function(obj) { 36473 return obj && obj.__esModule ? obj : { 36474 default: obj 36475 }; 36476 }(_ResizeDetector); 36477 exports.default = _ResizeDetector2.default; 36478 }, function(module, exports, __webpack_require__) { 36479 "use strict"; 36480 function _interopRequireDefault(obj) { 36481 return obj && obj.__esModule ? obj : { 36482 default: obj 36483 }; 36484 } 36485 function _classCallCheck(instance, Constructor) { 36486 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 36487 } 36488 function _possibleConstructorReturn(self, call) { 36489 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 36490 return !call || "object" != typeof call && "function" != typeof call ? self : call; 36491 } 36492 function _inherits(subClass, superClass) { 36493 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 36494 subClass.prototype = Object.create(superClass && superClass.prototype, { 36495 constructor: { 36496 value: subClass, 36497 enumerable: !1, 36498 writable: !0, 36499 configurable: !0 36500 } 36501 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 36502 } 36503 Object.defineProperty(exports, "__esModule", { 36504 value: !0 36505 }); 36506 var _extends = Object.assign || function(target) { 36507 for (var i = 1; i < arguments.length; i++) { 36508 var source = arguments[i]; 36509 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 36510 } 36511 return target; 36512 }, _slicedToArray = function() { 36513 function sliceIterator(arr, i) { 36514 var _arr = [], _n = !0, _d = !1, _e = void 0; 36515 try { 36516 for (var _s, _i = arr[Symbol.iterator](); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), 36517 !i || _arr.length !== i); _n = !0) ; 36518 } catch (err) { 36519 _d = !0, _e = err; 36520 } finally { 36521 try { 36522 !_n && _i.return && _i.return(); 36523 } finally { 36524 if (_d) throw _e; 36525 } 36526 } 36527 return _arr; 36528 } 36529 return function(arr, i) { 36530 if (Array.isArray(arr)) return arr; 36531 if (Symbol.iterator in Object(arr)) return sliceIterator(arr, i); 36532 throw new TypeError("Invalid attempt to destructure non-iterable instance"); 36533 }; 36534 }(), _createClass = function() { 36535 function defineProperties(target, props) { 36536 for (var i = 0; i < props.length; i++) { 36537 var descriptor = props[i]; 36538 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 36539 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 36540 } 36541 } 36542 return function(Constructor, protoProps, staticProps) { 36543 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 36544 Constructor; 36545 }; 36546 }(), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _resizeDetectorStyles = __webpack_require__(770), ResizeDetector = function(_Component) { 36547 function ResizeDetector() { 36548 _classCallCheck(this, ResizeDetector); 36549 var _this = _possibleConstructorReturn(this, (ResizeDetector.__proto__ || Object.getPrototypeOf(ResizeDetector)).call(this)); 36550 return _this.state = { 36551 expandChildHeight: 0, 36552 expandChildWidth: 0, 36553 expandScrollLeft: 0, 36554 expandScrollTop: 0, 36555 shrinkScrollTop: 0, 36556 shrinkScrollLeft: 0, 36557 lastWidth: 0, 36558 lastHeight: 0 36559 }, _this.reset = _this.reset.bind(_this), _this.handleScroll = _this.handleScroll.bind(_this), 36560 _this; 36561 } 36562 return _inherits(ResizeDetector, _Component), _createClass(ResizeDetector, [ { 36563 key: "componentWillMount", 36564 value: function() { 36565 this.forceUpdate(); 36566 } 36567 }, { 36568 key: "componentDidMount", 36569 value: function() { 36570 var _containerSize = this.containerSize(), _containerSize2 = _slicedToArray(_containerSize, 2), width = _containerSize2[0], height = _containerSize2[1]; 36571 this.reset(width, height), this.props.onResize(width, height); 36572 } 36573 }, { 36574 key: "shouldComponentUpdate", 36575 value: function(nextProps, nextState) { 36576 return this.props !== nextProps || this.state !== nextState; 36577 } 36578 }, { 36579 key: "componentDidUpdate", 36580 value: function() { 36581 this.expand.scrollLeft = this.expand.scrollWidth, this.expand.scrollTop = this.expand.scrollHeight, 36582 this.shrink.scrollLeft = this.shrink.scrollWidth, this.shrink.scrollTop = this.shrink.scrollHeight; 36583 } 36584 }, { 36585 key: "containerSize", 36586 value: function() { 36587 return [ this.props.handleWidth && this.container.parentElement.offsetWidth, this.props.handleHeight && this.container.parentElement.offsetHeight ]; 36588 } 36589 }, { 36590 key: "reset", 36591 value: function(containerWidth, containerHeight) { 36592 if ("undefined" != typeof window) { 36593 var parent = this.container.parentElement, position = "static"; 36594 parent.currentStyle ? position = parent.currentStyle.position : window.getComputedStyle && (position = window.getComputedStyle(parent).position), 36595 "static" === position && (parent.style.position = "relative"), this.setState({ 36596 expandChildHeight: this.expand.offsetHeight + 10, 36597 expandChildWidth: this.expand.offsetWidth + 10, 36598 lastWidth: containerWidth, 36599 lastHeight: containerHeight 36600 }); 36601 } 36602 } 36603 }, { 36604 key: "handleScroll", 36605 value: function(e) { 36606 if ("undefined" != typeof window) { 36607 e.preventDefault(), e.stopPropagation(); 36608 var state = this.state, _containerSize3 = this.containerSize(), _containerSize4 = _slicedToArray(_containerSize3, 2), width = _containerSize4[0], height = _containerSize4[1]; 36609 width === state.lastWidth && height === state.lastHeight || this.props.onResize(width, height), 36610 this.reset(width, height); 36611 } 36612 } 36613 }, { 36614 key: "render", 36615 value: function() { 36616 var _this2 = this, state = this.state, expandStyle = _extends({}, _resizeDetectorStyles.expandChildStyle, { 36617 width: state.expandChildWidth, 36618 height: state.expandChildHeight 36619 }); 36620 return _react2.default.createElement("div", { 36621 style: _resizeDetectorStyles.parentStyle, 36622 ref: function(e) { 36623 _this2.container = e; 36624 } 36625 }, _react2.default.createElement("div", { 36626 style: _resizeDetectorStyles.parentStyle, 36627 onScroll: this.handleScroll, 36628 ref: function(e) { 36629 _this2.expand = e; 36630 } 36631 }, _react2.default.createElement("div", { 36632 style: expandStyle 36633 })), _react2.default.createElement("div", { 36634 style: _resizeDetectorStyles.parentStyle, 36635 onScroll: this.handleScroll, 36636 ref: function(e) { 36637 _this2.shrink = e; 36638 } 36639 }, _react2.default.createElement("div", { 36640 style: _resizeDetectorStyles.shrinkChildStyle 36641 }))); 36642 } 36643 } ]), ResizeDetector; 36644 }(_react.Component); 36645 exports.default = ResizeDetector, ResizeDetector.propTypes = { 36646 handleWidth: _propTypes2.default.bool, 36647 handleHeight: _propTypes2.default.bool, 36648 onResize: _propTypes2.default.func 36649 }, ResizeDetector.defaultProps = { 36650 handleWidth: !1, 36651 handleHeight: !1, 36652 onResize: function(e) { 36653 return e; 36654 } 36655 }; 36656 }, function(module, exports, __webpack_require__) { 36657 "use strict"; 36658 Object.defineProperty(exports, "__esModule", { 36659 value: !0 36660 }); 36661 exports.parentStyle = { 36662 position: "absolute", 36663 left: 0, 36664 top: 0, 36665 right: 0, 36666 bottom: 0, 36667 overflow: "hidden", 36668 zIndex: -1, 36669 visibility: "hidden" 36670 }, exports.shrinkChildStyle = { 36671 position: "absolute", 36672 left: 0, 36673 top: 0, 36674 width: "200%", 36675 height: "200%" 36676 }, exports.expandChildStyle = { 36677 position: "absolute", 36678 left: 0, 36679 top: 0, 36680 width: "100%", 36681 height: "100%" 36682 }; 36683 }, function(module, exports, __webpack_require__) { 36684 function reduceCSSCalc(value, decimalPrecision) { 36685 function evaluateExpression(expression, functionIdentifier, call) { 36686 if (stack++ > MAX_STACK) throw stack = 0, new Error("Call stack overflow for " + call); 36687 if ("" === expression) throw new Error(functionIdentifier + "(): '" + call + "' must contain a non-whitespace string"); 36688 expression = evaluateNestedExpression(expression, call); 36689 var units = getUnitsInExpression(expression); 36690 if (units.length > 1 || expression.indexOf("var(") > -1) return functionIdentifier + "(" + expression + ")"; 36691 var unit = units[0] || ""; 36692 "%" === unit && (expression = expression.replace(/\b[0-9\.]+%/g, function(percent) { 36693 return .01 * parseFloat(percent.slice(0, -1)); 36694 })); 36695 var result, toEvaluate = expression.replace(new RegExp(unit, "gi"), ""); 36696 try { 36697 result = mexp.eval(toEvaluate); 36698 } catch (e) { 36699 return functionIdentifier + "(" + expression + ")"; 36700 } 36701 return "%" === unit && (result *= 100), (functionIdentifier.length || "%" === unit) && (result = Math.round(result * decimalPrecision) / decimalPrecision), 36702 result += unit; 36703 } 36704 function evaluateNestedExpression(expression, call) { 36705 expression = expression.replace(/((?:\-[a-z]+\-)?calc)/g, ""); 36706 for (var matches, evaluatedPart = "", nonEvaluatedPart = expression; matches = NESTED_CALC_RE.exec(nonEvaluatedPart); ) { 36707 matches[0].index > 0 && (evaluatedPart += nonEvaluatedPart.substring(0, matches[0].index)); 36708 var balancedExpr = balanced("(", ")", nonEvaluatedPart.substring([ 0 ].index)); 36709 if ("" === balancedExpr.body) throw new Error("'" + expression + "' must contain a non-whitespace string"); 36710 var evaluated = evaluateExpression(balancedExpr.body, "", call); 36711 evaluatedPart += balancedExpr.pre + evaluated, nonEvaluatedPart = balancedExpr.post; 36712 } 36713 return evaluatedPart + nonEvaluatedPart; 36714 } 36715 return stack = 0, decimalPrecision = Math.pow(10, void 0 === decimalPrecision ? 5 : decimalPrecision), 36716 value = value.replace(/\n+/g, " "), reduceFunctionCall(value, /((?:\-[a-z]+\-)?calc)\(/, evaluateExpression); 36717 } 36718 function getUnitsInExpression(expression) { 36719 for (var uniqueUnits = [], uniqueLowerCaseUnits = [], unitRegEx = /[\.0-9]([%a-z]+)/gi, matches = unitRegEx.exec(expression); matches; ) matches && matches[1] && (-1 === uniqueLowerCaseUnits.indexOf(matches[1].toLowerCase()) && (uniqueUnits.push(matches[1]), 36720 uniqueLowerCaseUnits.push(matches[1].toLowerCase())), matches = unitRegEx.exec(expression)); 36721 return uniqueUnits; 36722 } 36723 var stack, balanced = __webpack_require__(313), reduceFunctionCall = __webpack_require__(772), mexp = __webpack_require__(773), MAX_STACK = 100, NESTED_CALC_RE = /(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g; 36724 module.exports = reduceCSSCalc; 36725 }, function(module, exports, __webpack_require__) { 36726 function reduceFunctionCall(string, functionRE, callback) { 36727 var call = string; 36728 return getFunctionCalls(string, functionRE).reduce(function(string, obj) { 36729 return string.replace(obj.functionIdentifier + "(" + obj.matches.body + ")", evalFunctionCall(obj.matches.body, obj.functionIdentifier, callback, call, functionRE)); 36730 }, string); 36731 } 36732 function getFunctionCalls(call, functionRE) { 36733 var expressions = [], fnRE = "string" == typeof functionRE ? new RegExp("\\b(" + functionRE + ")\\(") : functionRE; 36734 do { 36735 var searchMatch = fnRE.exec(call); 36736 if (!searchMatch) return expressions; 36737 if (void 0 === searchMatch[1]) throw new Error("Missing the first couple of parenthesis to get the function identifier in " + functionRE); 36738 var fn = searchMatch[1], startIndex = searchMatch.index, matches = balanced("(", ")", call.substring(startIndex)); 36739 if (!matches || matches.start !== searchMatch[0].length - 1) throw new SyntaxError(fn + "(): missing closing ')' in the value '" + call + "'"); 36740 expressions.push({ 36741 matches: matches, 36742 functionIdentifier: fn 36743 }), call = matches.post; 36744 } while (fnRE.test(call)); 36745 return expressions; 36746 } 36747 function evalFunctionCall(string, functionIdentifier, callback, call, functionRE) { 36748 return callback(reduceFunctionCall(string, functionRE, callback), functionIdentifier, call); 36749 } 36750 var balanced = __webpack_require__(313); 36751 module.exports = reduceFunctionCall; 36752 }, function(module, exports, __webpack_require__) { 36753 var Mexp = __webpack_require__(774); 36754 Mexp.prototype.formulaEval = function() { 36755 "use strict"; 36756 for (var pop1, pop2, pop3, disp = [], arr = this.value, i = 0; i < arr.length; i++) 1 === arr[i].type || 3 === arr[i].type ? disp.push({ 36757 value: 3 === arr[i].type ? arr[i].show : arr[i].value, 36758 type: 1 36759 }) : 13 === arr[i].type ? disp.push({ 36760 value: arr[i].show, 36761 type: 1 36762 }) : 0 === arr[i].type ? disp[disp.length - 1] = { 36763 value: arr[i].show + ("-" != arr[i].show ? "(" : "") + disp[disp.length - 1].value + ("-" != arr[i].show ? ")" : ""), 36764 type: 0 36765 } : 7 === arr[i].type ? disp[disp.length - 1] = { 36766 value: (1 != disp[disp.length - 1].type ? "(" : "") + disp[disp.length - 1].value + (1 != disp[disp.length - 1].type ? ")" : "") + arr[i].show, 36767 type: 7 36768 } : 10 === arr[i].type ? (pop1 = disp.pop(), pop2 = disp.pop(), "P" === arr[i].show || "C" === arr[i].show ? disp.push({ 36769 value: "<sup>" + pop2.value + "</sup>" + arr[i].show + "<sub>" + pop1.value + "</sub>", 36770 type: 10 36771 }) : disp.push({ 36772 value: (1 != pop2.type ? "(" : "") + pop2.value + (1 != pop2.type ? ")" : "") + "<sup>" + pop1.value + "</sup>", 36773 type: 1 36774 })) : 2 === arr[i].type || 9 === arr[i].type ? (pop1 = disp.pop(), pop2 = disp.pop(), 36775 disp.push({ 36776 value: (1 != pop2.type ? "(" : "") + pop2.value + (1 != pop2.type ? ")" : "") + arr[i].show + (1 != pop1.type ? "(" : "") + pop1.value + (1 != pop1.type ? ")" : ""), 36777 type: arr[i].type 36778 })) : 12 === arr[i].type && (pop1 = disp.pop(), pop2 = disp.pop(), pop3 = disp.pop(), 36779 disp.push({ 36780 value: arr[i].show + "(" + pop3.value + "," + pop2.value + "," + pop1.value + ")", 36781 type: 12 36782 })); 36783 return disp[0].value; 36784 }, module.exports = Mexp; 36785 }, function(module, exports, __webpack_require__) { 36786 var Mexp = __webpack_require__(775); 36787 Mexp.prototype.postfixEval = function(UserDefined) { 36788 "use strict"; 36789 UserDefined = UserDefined || {}, UserDefined.PI = Math.PI, UserDefined.E = Math.E; 36790 for (var pop1, pop2, pop3, stack = [], arr = this.value, bool = void 0 !== UserDefined.n, i = 0; i < arr.length; i++) 1 === arr[i].type ? stack.push({ 36791 value: arr[i].value, 36792 type: 1 36793 }) : 3 === arr[i].type ? stack.push({ 36794 value: UserDefined[arr[i].value], 36795 type: 1 36796 }) : 0 === arr[i].type ? void 0 === stack[stack.length - 1].type ? stack[stack.length - 1].value.push(arr[i]) : stack[stack.length - 1].value = arr[i].value(stack[stack.length - 1].value) : 7 === arr[i].type ? void 0 === stack[stack.length - 1].type ? stack[stack.length - 1].value.push(arr[i]) : stack[stack.length - 1].value = arr[i].value(stack[stack.length - 1].value) : 8 === arr[i].type ? (pop1 = stack.pop(), 36797 pop2 = stack.pop(), stack.push({ 36798 type: 1, 36799 value: arr[i].value(pop2.value, pop1.value) 36800 })) : 10 === arr[i].type ? (pop1 = stack.pop(), pop2 = stack.pop(), void 0 === pop2.type ? (pop2.value = pop2.concat(pop1), 36801 pop2.value.push(arr[i]), stack.push(pop2)) : void 0 === pop1.type ? (pop1.unshift(pop2), 36802 pop1.push(arr[i]), stack.push(pop1)) : stack.push({ 36803 type: 1, 36804 value: arr[i].value(pop2.value, pop1.value) 36805 })) : 2 === arr[i].type || 9 === arr[i].type ? (pop1 = stack.pop(), pop2 = stack.pop(), 36806 void 0 === pop2.type ? (console.log(pop2), pop2 = pop2.concat(pop1), pop2.push(arr[i]), 36807 stack.push(pop2)) : void 0 === pop1.type ? (pop1.unshift(pop2), pop1.push(arr[i]), 36808 stack.push(pop1)) : stack.push({ 36809 type: 1, 36810 value: arr[i].value(pop2.value, pop1.value) 36811 })) : 12 === arr[i].type ? (pop1 = stack.pop(), void 0 !== pop1.type && (pop1 = [ pop1 ]), 36812 pop2 = stack.pop(), pop3 = stack.pop(), stack.push({ 36813 type: 1, 36814 value: arr[i].value(pop3.value, pop2.value, new Mexp(pop1)) 36815 })) : 13 === arr[i].type && (bool ? stack.push({ 36816 value: UserDefined[arr[i].value], 36817 type: 3 36818 }) : stack.push([ arr[i] ])); 36819 if (stack.length > 1) throw new Mexp.exception("Uncaught Syntax error"); 36820 return stack[0].value > 1e15 ? "Infinity" : parseFloat(stack[0].value.toFixed(15)); 36821 }, Mexp.eval = function(str, tokens, obj) { 36822 return void 0 === tokens ? this.lex(str).toPostfix().postfixEval() : void 0 === obj ? void 0 !== tokens.length ? this.lex(str, tokens).toPostfix().postfixEval() : this.lex(str).toPostfix().postfixEval(tokens) : this.lex(str, tokens).toPostfix().postfixEval(obj); 36823 }, module.exports = Mexp; 36824 }, function(module, exports, __webpack_require__) { 36825 var Mexp = __webpack_require__(776); 36826 Mexp.prototype.toPostfix = function() { 36827 "use strict"; 36828 for (var elem, popped, prep, pre, ele, post = [], stack = [ { 36829 value: "(", 36830 type: 4, 36831 pre: 0 36832 } ], arr = this.value, i = 1; i < arr.length; i++) if (1 === arr[i].type || 3 === arr[i].type || 13 === arr[i].type) 1 === arr[i].type && (arr[i].value = Number(arr[i].value)), 36833 post.push(arr[i]); else if (4 === arr[i].type) stack.push(arr[i]); else if (5 === arr[i].type) for (;4 !== (popped = stack.pop()).type; ) post.push(popped); else if (11 === arr[i].type) { 36834 for (;4 !== (popped = stack.pop()).type; ) post.push(popped); 36835 stack.push(popped); 36836 } else { 36837 elem = arr[i], pre = elem.pre, ele = stack[stack.length - 1], prep = ele.pre; 36838 var flag = "Math.pow" == ele.value && "Math.pow" == elem.value; 36839 if (pre > prep) stack.push(elem); else { 36840 for (;prep >= pre && !flag || flag && pre < prep; ) popped = stack.pop(), ele = stack[stack.length - 1], 36841 post.push(popped), prep = ele.pre, flag = "Math.pow" == elem.value && "Math.pow" == ele.value; 36842 stack.push(elem); 36843 } 36844 } 36845 return new Mexp(post); 36846 }, module.exports = Mexp; 36847 }, function(module, exports, __webpack_require__) { 36848 function inc(arr, val) { 36849 for (var i = 0; i < arr.length; i++) arr[i] += val; 36850 return arr; 36851 } 36852 function match(str1, str2, i, x) { 36853 for (var f = 0; f < x; f++) if (str1[i + f] !== str2[f]) return !1; 36854 return !0; 36855 } 36856 var Mexp = __webpack_require__(777), token = [ "sin", "cos", "tan", "pi", "(", ")", "P", "C", "asin", "acos", "atan", "7", "8", "9", "int", "cosh", "acosh", "ln", "^", "root", "4", "5", "6", "/", "!", "tanh", "atanh", "Mod", "1", "2", "3", "*", "sinh", "asinh", "e", "log", "0", ".", "+", "-", ",", "Sigma", "n", "Pi", "pow" ], show = [ "sin", "cos", "tan", "π", "(", ")", "P", "C", "asin", "acos", "atan", "7", "8", "9", "Int", "cosh", "acosh", " ln", "^", "root", "4", "5", "6", "÷", "!", "tanh", "atanh", " Mod ", "1", "2", "3", "×", "sinh", "asinh", "e", " log", "0", ".", "+", "-", ",", "Σ", "n", "Π", "pow" ], eva = [ Mexp.math.sin, Mexp.math.cos, Mexp.math.tan, "PI", "(", ")", Mexp.math.P, Mexp.math.C, Mexp.math.asin, Mexp.math.acos, Mexp.math.atan, "7", "8", "9", Math.floor, Mexp.math.cosh, Mexp.math.acosh, Math.log, Math.pow, Math.sqrt, "4", "5", "6", Mexp.math.div, Mexp.math.fact, Mexp.math.tanh, Mexp.math.atanh, Mexp.math.mod, "1", "2", "3", Mexp.math.mul, Mexp.math.sinh, Mexp.math.asinh, "E", Mexp.math.log, "0", ".", Mexp.math.add, Mexp.math.sub, ",", Mexp.math.sigma, "n", Mexp.math.Pi, Math.pow ], preced = { 36857 0: 11, 36858 1: 0, 36859 2: 3, 36860 3: 0, 36861 4: 0, 36862 5: 0, 36863 6: 0, 36864 7: 11, 36865 8: 11, 36866 9: 1, 36867 10: 10, 36868 11: 0, 36869 12: 11, 36870 13: 0 36871 }, type = [ 0, 0, 0, 3, 4, 5, 10, 10, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 10, 0, 1, 1, 1, 2, 7, 0, 0, 2, 1, 1, 1, 2, 0, 0, 3, 0, 1, 6, 9, 9, 11, 12, 13, 12, 8 ], type0 = { 36872 0: !0, 36873 1: !0, 36874 3: !0, 36875 4: !0, 36876 6: !0, 36877 8: !0, 36878 9: !0, 36879 12: !0, 36880 13: !0 36881 }, type1 = { 36882 0: !0, 36883 1: !0, 36884 2: !0, 36885 3: !0, 36886 4: !0, 36887 5: !0, 36888 6: !0, 36889 7: !0, 36890 8: !0, 36891 9: !0, 36892 10: !0, 36893 11: !0, 36894 12: !0, 36895 13: !0 36896 }, type_1 = { 36897 0: !0, 36898 3: !0, 36899 4: !0, 36900 8: !0, 36901 12: !0, 36902 13: !0 36903 }, empty = {}, type_3 = { 36904 0: !0, 36905 1: !0, 36906 3: !0, 36907 4: !0, 36908 6: !0, 36909 8: !0, 36910 12: !0, 36911 13: !0 36912 }, type6 = { 36913 1: !0 36914 }, newAr = [ [], [ "1", "2", "3", "7", "8", "9", "4", "5", "6", "+", "-", "*", "/", "(", ")", "^", "!", "P", "C", "e", "0", ".", ",", "n" ], [ "pi", "ln", "Pi" ], [ "sin", "cos", "tan", "Del", "int", "Mod", "log", "pow" ], [ "asin", "acos", "atan", "cosh", "root", "tanh", "sinh" ], [ "acosh", "atanh", "asinh", "Sigma" ] ]; 36915 Mexp.addToken = function(tokens) { 36916 for (i = 0; i < tokens.length; i++) { 36917 x = tokens[i].token.length; 36918 var temp = -1; 36919 if (x < newAr.length) for (y = 0; y < newAr[x].length; y++) if (tokens[i].token === newAr[x][y]) { 36920 temp = token.indexOf(newAr[x][y]); 36921 break; 36922 } 36923 -1 === temp ? (token.push(tokens[i].token), type.push(tokens[i].type), newAr.length <= tokens[i].token.length && (newAr[tokens[i].token.length] = []), 36924 newAr[tokens[i].token.length].push(tokens[i].token), eva.push(tokens[i].value), 36925 show.push(tokens[i].show)) : (token[temp] = tokens[i].token, type[temp] = tokens[i].type, 36926 eva[temp] = tokens[i].value, show[temp] = tokens[i].show); 36927 } 36928 }, Mexp.lex = function(inp, tokens) { 36929 "use strict"; 36930 var key, i, x, y, str = [ { 36931 type: 4, 36932 value: "(", 36933 show: "(", 36934 pre: 0 36935 } ], ptc = [], inpStr = inp, pcounter = 0, allowed = type0, bracToClose = 0, asterick = empty, prevKey = ""; 36936 void 0 !== tokens && Mexp.addToken(tokens); 36937 var obj = {}; 36938 for (i = 0; i < inpStr.length; i++) if (" " != inpStr[i]) { 36939 key = ""; 36940 sec: for (x = inpStr.length - i > newAr.length - 2 ? newAr.length - 1 : inpStr.length - i; x > 0; x--) for (y = 0; y < newAr[x].length; y++) if (match(inpStr, newAr[x][y], i, x)) { 36941 key = newAr[x][y]; 36942 break sec; 36943 } 36944 if (i += key.length - 1, "" === key) throw new Mexp.exception("Can't understand after " + inpStr.slice(i)); 36945 var index = token.indexOf(key), cToken = key, cType = type[index], cEv = eva[index], cPre = preced[cType], cShow = show[index], pre = str[str.length - 1]; 36946 for (j = ptc.length; j--; ) if (0 === ptc[j] && -1 !== [ 0, 2, 3, 5, 9, 11, 12, 13 ].indexOf(cType)) { 36947 if (!0 !== allowed[cType]) throw new Mexp.exception(key + " is not allowed after " + prevKey); 36948 str.push({ 36949 value: ")", 36950 type: 5, 36951 pre: 0, 36952 show: ")" 36953 }), allowed = type1, asterick = type_3, inc(ptc, -1).pop(); 36954 } 36955 if (!0 !== allowed[cType]) throw new Mexp.exception(key + " is not allowed after " + prevKey); 36956 if (!0 === asterick[cType] && (cType = 2, cEv = Mexp.math.mul, cShow = "×", 36957 cPre = 3, i -= key.length), obj = { 36958 value: cEv, 36959 type: cType, 36960 pre: cPre, 36961 show: cShow 36962 }, 0 === cType) allowed = type0, asterick = empty, inc(ptc, 2).push(2), str.push(obj), 36963 str.push({ 36964 value: "(", 36965 type: 4, 36966 pre: 0, 36967 show: "(" 36968 }); else if (1 === cType) 1 === pre.type ? (pre.value += cEv, inc(ptc, 1)) : str.push(obj), 36969 allowed = type1, asterick = type_1; else if (2 === cType) allowed = type0, asterick = empty, 36970 inc(ptc, 2), str.push(obj); else if (3 === cType) str.push(obj), allowed = type1, 36971 asterick = type_3; else if (4 === cType) pcounter += ptc.length, ptc = [], bracToClose++, 36972 allowed = type0, asterick = empty, str.push(obj); else if (5 === cType) { 36973 if (!bracToClose) throw new Mexp.exception("Closing parenthesis are more than opening one, wait What!!!"); 36974 for (;pcounter--; ) str.push({ 36975 value: ")", 36976 type: 5, 36977 pre: 0, 36978 show: ")" 36979 }); 36980 pcounter = 0, bracToClose--, allowed = type1, asterick = type_3, str.push(obj); 36981 } else if (6 === cType) { 36982 if (pre.hasDec) throw new Mexp.exception("Two decimals are not allowed in one number"); 36983 1 !== pre.type && (pre = { 36984 value: 0, 36985 type: 1, 36986 pre: 0 36987 }, str.push(pre), inc(ptc, -1)), allowed = type6, inc(ptc, 1), asterick = empty, 36988 pre.value += cEv, pre.hasDec = !0; 36989 } else 7 === cType && (allowed = type1, asterick = type_3, inc(ptc, 1), str.push(obj)); 36990 8 === cType ? (allowed = type0, asterick = empty, inc(ptc, 4).push(4), str.push(obj), 36991 str.push({ 36992 value: "(", 36993 type: 4, 36994 pre: 0, 36995 show: "(" 36996 })) : 9 === cType ? (9 === pre.type ? pre.value === Mexp.math.add ? (pre.value = cEv, 36997 pre.show = cShow, inc(ptc, 1)) : pre.value === Mexp.math.sub && "-" === cShow && (pre.value = Mexp.math.add, 36998 pre.show = "+", inc(ptc, 1)) : 5 !== pre.type && 7 !== pre.type && 1 !== pre.type && 3 !== pre.type && 13 !== pre.type ? "-" === cToken && (allowed = type0, 36999 asterick = empty, inc(ptc, 2).push(2), str.push({ 37000 value: Mexp.math.changeSign, 37001 type: 0, 37002 pre: 21, 37003 show: "-" 37004 }), str.push({ 37005 value: "(", 37006 type: 4, 37007 pre: 0, 37008 show: "(" 37009 })) : (str.push(obj), inc(ptc, 2)), allowed = type0, asterick = empty) : 10 === cType ? (allowed = type0, 37010 asterick = empty, inc(ptc, 2), str.push(obj)) : 11 === cType ? (allowed = type0, 37011 asterick = empty, str.push(obj)) : 12 === cType ? (allowed = type0, asterick = empty, 37012 inc(ptc, 6).push(6), str.push(obj), str.push({ 37013 value: "(", 37014 type: 4, 37015 pre: 0 37016 })) : 13 === cType && (allowed = type1, asterick = type_3, str.push(obj)), inc(ptc, -1), 37017 prevKey = key; 37018 } 37019 for (var j = ptc.length; j--; ) 0 === ptc[j] && (str.push({ 37020 value: ")", 37021 show: ")", 37022 type: 5, 37023 pre: 3 37024 }), inc(ptc, -1).pop()); 37025 if (!0 !== allowed[5]) throw new Mexp.exception("complete the expression"); 37026 for (;bracToClose--; ) str.push({ 37027 value: ")", 37028 show: ")", 37029 type: 5, 37030 pre: 3 37031 }); 37032 return str.push({ 37033 type: 5, 37034 value: ")", 37035 show: ")", 37036 pre: 0 37037 }), new Mexp(str); 37038 }, module.exports = Mexp; 37039 }, function(module, exports) { 37040 var Mexp = function(parsed) { 37041 this.value = parsed; 37042 }; 37043 Mexp.math = { 37044 isDegree: !0, 37045 acos: function(x) { 37046 return Mexp.math.isDegree ? 180 / Math.PI * Math.acos(x) : Math.acos(x); 37047 }, 37048 add: function(a, b) { 37049 return a + b; 37050 }, 37051 asin: function(x) { 37052 return Mexp.math.isDegree ? 180 / Math.PI * Math.asin(x) : Math.asin(x); 37053 }, 37054 atan: function(x) { 37055 return Mexp.math.isDegree ? 180 / Math.PI * Math.atan(x) : Math.atan(x); 37056 }, 37057 acosh: function(x) { 37058 return Math.log(x + Math.sqrt(x * x - 1)); 37059 }, 37060 asinh: function(x) { 37061 return Math.log(x + Math.sqrt(x * x + 1)); 37062 }, 37063 atanh: function(x) { 37064 return Math.log((1 + x) / (1 - x)); 37065 }, 37066 C: function(n, r) { 37067 var pro = 1, other = n - r, choice = r; 37068 choice < other && (choice = other, other = r); 37069 for (var i = choice + 1; i <= n; i++) pro *= i; 37070 return pro / Mexp.math.fact(other); 37071 }, 37072 changeSign: function(x) { 37073 return -x; 37074 }, 37075 cos: function(x) { 37076 return Mexp.math.isDegree && (x = Mexp.math.toRadian(x)), Math.cos(x); 37077 }, 37078 cosh: function(x) { 37079 return (Math.pow(Math.E, x) + Math.pow(Math.E, -1 * x)) / 2; 37080 }, 37081 div: function(a, b) { 37082 return a / b; 37083 }, 37084 fact: function(n) { 37085 if (n % 1 != 0) return "NAN"; 37086 for (var pro = 1, i = 2; i <= n; i++) pro *= i; 37087 return pro; 37088 }, 37089 inverse: function(x) { 37090 return 1 / x; 37091 }, 37092 log: function(i) { 37093 return Math.log(i) / Math.log(10); 37094 }, 37095 mod: function(a, b) { 37096 return a % b; 37097 }, 37098 mul: function(a, b) { 37099 return a * b; 37100 }, 37101 P: function(n, r) { 37102 for (var pro = 1, i = Math.floor(n) - Math.floor(r) + 1; i <= Math.floor(n); i++) pro *= i; 37103 return pro; 37104 }, 37105 Pi: function(low, high, ex) { 37106 for (var pro = 1, i = low; i <= high; i++) pro *= Number(ex.postfixEval({ 37107 n: i 37108 })); 37109 return pro; 37110 }, 37111 pow10x: function(e) { 37112 for (var x = 1; e--; ) x *= 10; 37113 return x; 37114 }, 37115 sigma: function(low, high, ex) { 37116 for (var sum = 0, i = low; i <= high; i++) sum += Number(ex.postfixEval({ 37117 n: i 37118 })); 37119 return sum; 37120 }, 37121 sin: function(x) { 37122 return Mexp.math.isDegree && (x = Mexp.math.toRadian(x)), Math.sin(x); 37123 }, 37124 sinh: function(x) { 37125 return (Math.pow(Math.E, x) - Math.pow(Math.E, -1 * x)) / 2; 37126 }, 37127 sub: function(a, b) { 37128 return a - b; 37129 }, 37130 tan: function(x) { 37131 return Mexp.math.isDegree && (x = Mexp.math.toRadian(x)), Math.tan(x); 37132 }, 37133 tanh: function(x) { 37134 return Mexp.sinha(x) / Mexp.cosha(x); 37135 }, 37136 toRadian: function(x) { 37137 return x * Math.PI / 180; 37138 } 37139 }, Mexp.exception = function(message) { 37140 this.message = message; 37141 }, module.exports = Mexp; 37142 }, function(module, exports, __webpack_require__) { 37143 function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { 37144 var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other); 37145 objTag = objTag == argsTag ? objectTag : objTag, othTag = othTag == argsTag ? objectTag : othTag; 37146 var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag; 37147 if (isSameTag && isBuffer(object)) { 37148 if (!isBuffer(other)) return !1; 37149 objIsArr = !0, objIsObj = !1; 37150 } 37151 if (isSameTag && !objIsObj) return stack || (stack = new Stack()), objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack); 37152 if (!(bitmask & COMPARE_PARTIAL_FLAG)) { 37153 var objIsWrapped = objIsObj && hasOwnProperty.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__"); 37154 if (objIsWrapped || othIsWrapped) { 37155 var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other; 37156 return stack || (stack = new Stack()), equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); 37157 } 37158 } 37159 return !!isSameTag && (stack || (stack = new Stack()), equalObjects(object, other, bitmask, customizer, equalFunc, stack)); 37160 } 37161 var Stack = __webpack_require__(314), equalArrays = __webpack_require__(315), equalByTag = __webpack_require__(789), equalObjects = __webpack_require__(793), getTag = __webpack_require__(808), isArray = __webpack_require__(13), isBuffer = __webpack_require__(317), isTypedArray = __webpack_require__(318), COMPARE_PARTIAL_FLAG = 1, argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]", objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty; 37162 module.exports = baseIsEqualDeep; 37163 }, function(module, exports, __webpack_require__) { 37164 function stackClear() { 37165 this.__data__ = new ListCache(), this.size = 0; 37166 } 37167 var ListCache = __webpack_require__(116); 37168 module.exports = stackClear; 37169 }, function(module, exports) { 37170 function stackDelete(key) { 37171 var data = this.__data__, result = data.delete(key); 37172 return this.size = data.size, result; 37173 } 37174 module.exports = stackDelete; 37175 }, function(module, exports) { 37176 function stackGet(key) { 37177 return this.__data__.get(key); 37178 } 37179 module.exports = stackGet; 37180 }, function(module, exports) { 37181 function stackHas(key) { 37182 return this.__data__.has(key); 37183 } 37184 module.exports = stackHas; 37185 }, function(module, exports, __webpack_require__) { 37186 function stackSet(key, value) { 37187 var data = this.__data__; 37188 if (data instanceof ListCache) { 37189 var pairs = data.__data__; 37190 if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) return pairs.push([ key, value ]), 37191 this.size = ++data.size, this; 37192 data = this.__data__ = new MapCache(pairs); 37193 } 37194 return data.set(key, value), this.size = data.size, this; 37195 } 37196 var ListCache = __webpack_require__(116), Map = __webpack_require__(178), MapCache = __webpack_require__(176), LARGE_ARRAY_SIZE = 200; 37197 module.exports = stackSet; 37198 }, function(module, exports, __webpack_require__) { 37199 function SetCache(values) { 37200 var index = -1, length = null == values ? 0 : values.length; 37201 for (this.__data__ = new MapCache(); ++index < length; ) this.add(values[index]); 37202 } 37203 var MapCache = __webpack_require__(176), setCacheAdd = __webpack_require__(785), setCacheHas = __webpack_require__(786); 37204 SetCache.prototype.add = SetCache.prototype.push = setCacheAdd, SetCache.prototype.has = setCacheHas, 37205 module.exports = SetCache; 37206 }, function(module, exports) { 37207 function setCacheAdd(value) { 37208 return this.__data__.set(value, HASH_UNDEFINED), this; 37209 } 37210 var HASH_UNDEFINED = "__lodash_hash_undefined__"; 37211 module.exports = setCacheAdd; 37212 }, function(module, exports) { 37213 function setCacheHas(value) { 37214 return this.__data__.has(value); 37215 } 37216 module.exports = setCacheHas; 37217 }, function(module, exports) { 37218 function arraySome(array, predicate) { 37219 for (var index = -1, length = null == array ? 0 : array.length; ++index < length; ) if (predicate(array[index], index, array)) return !0; 37220 return !1; 37221 } 37222 module.exports = arraySome; 37223 }, function(module, exports) { 37224 function cacheHas(cache, key) { 37225 return cache.has(key); 37226 } 37227 module.exports = cacheHas; 37228 }, function(module, exports, __webpack_require__) { 37229 function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { 37230 switch (tag) { 37231 case dataViewTag: 37232 if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) return !1; 37233 object = object.buffer, other = other.buffer; 37234 37235 case arrayBufferTag: 37236 return !(object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))); 37237 37238 case boolTag: 37239 case dateTag: 37240 case numberTag: 37241 return eq(+object, +other); 37242 37243 case errorTag: 37244 return object.name == other.name && object.message == other.message; 37245 37246 case regexpTag: 37247 case stringTag: 37248 return object == other + ""; 37249 37250 case mapTag: 37251 var convert = mapToArray; 37252 37253 case setTag: 37254 var isPartial = bitmask & COMPARE_PARTIAL_FLAG; 37255 if (convert || (convert = setToArray), object.size != other.size && !isPartial) return !1; 37256 var stacked = stack.get(object); 37257 if (stacked) return stacked == other; 37258 bitmask |= COMPARE_UNORDERED_FLAG, stack.set(object, other); 37259 var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack); 37260 return stack.delete(object), result; 37261 37262 case symbolTag: 37263 if (symbolValueOf) return symbolValueOf.call(object) == symbolValueOf.call(other); 37264 } 37265 return !1; 37266 } 37267 var Symbol = __webpack_require__(83), Uint8Array = __webpack_require__(790), eq = __webpack_require__(177), equalArrays = __webpack_require__(315), mapToArray = __webpack_require__(791), setToArray = __webpack_require__(792), COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2, boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", mapTag = "[object Map]", numberTag = "[object Number]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", symbolProto = Symbol ? Symbol.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0; 37268 module.exports = equalByTag; 37269 }, function(module, exports, __webpack_require__) { 37270 var root = __webpack_require__(31), Uint8Array = root.Uint8Array; 37271 module.exports = Uint8Array; 37272 }, function(module, exports) { 37273 function mapToArray(map) { 37274 var index = -1, result = Array(map.size); 37275 return map.forEach(function(value, key) { 37276 result[++index] = [ key, value ]; 37277 }), result; 37278 } 37279 module.exports = mapToArray; 37280 }, function(module, exports) { 37281 function setToArray(set) { 37282 var index = -1, result = Array(set.size); 37283 return set.forEach(function(value) { 37284 result[++index] = value; 37285 }), result; 37286 } 37287 module.exports = setToArray; 37288 }, function(module, exports, __webpack_require__) { 37289 function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { 37290 var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = getAllKeys(object), objLength = objProps.length; 37291 if (objLength != getAllKeys(other).length && !isPartial) return !1; 37292 for (var index = objLength; index--; ) { 37293 var key = objProps[index]; 37294 if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) return !1; 37295 } 37296 var stacked = stack.get(object); 37297 if (stacked && stack.get(other)) return stacked == other; 37298 var result = !0; 37299 stack.set(object, other), stack.set(other, object); 37300 for (var skipCtor = isPartial; ++index < objLength; ) { 37301 key = objProps[index]; 37302 var objValue = object[key], othValue = other[key]; 37303 if (customizer) var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack); 37304 if (!(void 0 === compared ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) { 37305 result = !1; 37306 break; 37307 } 37308 skipCtor || (skipCtor = "constructor" == key); 37309 } 37310 if (result && !skipCtor) { 37311 var objCtor = object.constructor, othCtor = other.constructor; 37312 objCtor != othCtor && "constructor" in object && "constructor" in other && !("function" == typeof objCtor && objCtor instanceof objCtor && "function" == typeof othCtor && othCtor instanceof othCtor) && (result = !1); 37313 } 37314 return stack.delete(object), stack.delete(other), result; 37315 } 37316 var getAllKeys = __webpack_require__(794), COMPARE_PARTIAL_FLAG = 1, objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty; 37317 module.exports = equalObjects; 37318 }, function(module, exports, __webpack_require__) { 37319 function getAllKeys(object) { 37320 return baseGetAllKeys(object, keys, getSymbols); 37321 } 37322 var baseGetAllKeys = __webpack_require__(795), getSymbols = __webpack_require__(796), keys = __webpack_require__(200); 37323 module.exports = getAllKeys; 37324 }, function(module, exports, __webpack_require__) { 37325 function baseGetAllKeys(object, keysFunc, symbolsFunc) { 37326 var result = keysFunc(object); 37327 return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); 37328 } 37329 var arrayPush = __webpack_require__(316), isArray = __webpack_require__(13); 37330 module.exports = baseGetAllKeys; 37331 }, function(module, exports, __webpack_require__) { 37332 var arrayFilter = __webpack_require__(797), stubArray = __webpack_require__(798), objectProto = Object.prototype, propertyIsEnumerable = objectProto.propertyIsEnumerable, nativeGetSymbols = Object.getOwnPropertySymbols, getSymbols = nativeGetSymbols ? function(object) { 37333 return null == object ? [] : (object = Object(object), arrayFilter(nativeGetSymbols(object), function(symbol) { 37334 return propertyIsEnumerable.call(object, symbol); 37335 })); 37336 } : stubArray; 37337 module.exports = getSymbols; 37338 }, function(module, exports) { 37339 function arrayFilter(array, predicate) { 37340 for (var index = -1, length = null == array ? 0 : array.length, resIndex = 0, result = []; ++index < length; ) { 37341 var value = array[index]; 37342 predicate(value, index, array) && (result[resIndex++] = value); 37343 } 37344 return result; 37345 } 37346 module.exports = arrayFilter; 37347 }, function(module, exports) { 37348 function stubArray() { 37349 return []; 37350 } 37351 module.exports = stubArray; 37352 }, function(module, exports, __webpack_require__) { 37353 function arrayLikeKeys(value, inherited) { 37354 var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length; 37355 for (var key in value) !inherited && !hasOwnProperty.call(value, key) || skipIndexes && ("length" == key || isBuff && ("offset" == key || "parent" == key) || isType && ("buffer" == key || "byteLength" == key || "byteOffset" == key) || isIndex(key, length)) || result.push(key); 37356 return result; 37357 } 37358 var baseTimes = __webpack_require__(800), isArguments = __webpack_require__(201), isArray = __webpack_require__(13), isBuffer = __webpack_require__(317), isIndex = __webpack_require__(202), isTypedArray = __webpack_require__(318), objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty; 37359 module.exports = arrayLikeKeys; 37360 }, function(module, exports) { 37361 function baseTimes(n, iteratee) { 37362 for (var index = -1, result = Array(n); ++index < n; ) result[index] = iteratee(index); 37363 return result; 37364 } 37365 module.exports = baseTimes; 37366 }, function(module, exports, __webpack_require__) { 37367 function baseIsArguments(value) { 37368 return isObjectLike(value) && baseGetTag(value) == argsTag; 37369 } 37370 var baseGetTag = __webpack_require__(41), isObjectLike = __webpack_require__(42), argsTag = "[object Arguments]"; 37371 module.exports = baseIsArguments; 37372 }, function(module, exports) { 37373 function stubFalse() { 37374 return !1; 37375 } 37376 module.exports = stubFalse; 37377 }, function(module, exports, __webpack_require__) { 37378 function baseIsTypedArray(value) { 37379 return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; 37380 } 37381 var baseGetTag = __webpack_require__(41), isLength = __webpack_require__(203), isObjectLike = __webpack_require__(42), typedArrayTags = {}; 37382 typedArrayTags["[object Float32Array]"] = typedArrayTags["[object Float64Array]"] = typedArrayTags["[object Int8Array]"] = typedArrayTags["[object Int16Array]"] = typedArrayTags["[object Int32Array]"] = typedArrayTags["[object Uint8Array]"] = typedArrayTags["[object Uint8ClampedArray]"] = typedArrayTags["[object Uint16Array]"] = typedArrayTags["[object Uint32Array]"] = !0, 37383 typedArrayTags["[object Arguments]"] = typedArrayTags["[object Array]"] = typedArrayTags["[object ArrayBuffer]"] = typedArrayTags["[object Boolean]"] = typedArrayTags["[object DataView]"] = typedArrayTags["[object Date]"] = typedArrayTags["[object Error]"] = typedArrayTags["[object Function]"] = typedArrayTags["[object Map]"] = typedArrayTags["[object Number]"] = typedArrayTags["[object Object]"] = typedArrayTags["[object RegExp]"] = typedArrayTags["[object Set]"] = typedArrayTags["[object String]"] = typedArrayTags["[object WeakMap]"] = !1, 37384 module.exports = baseIsTypedArray; 37385 }, function(module, exports, __webpack_require__) { 37386 (function(module) { 37387 var freeGlobal = __webpack_require__(268), freeExports = "object" == typeof exports && exports && !exports.nodeType && exports, freeModule = freeExports && "object" == typeof module && module && !module.nodeType && module, moduleExports = freeModule && freeModule.exports === freeExports, freeProcess = moduleExports && freeGlobal.process, nodeUtil = function() { 37388 try { 37389 return freeProcess && freeProcess.binding && freeProcess.binding("util"); 37390 } catch (e) {} 37391 }(); 37392 module.exports = nodeUtil; 37393 }).call(exports, __webpack_require__(131)(module)); 37394 }, function(module, exports, __webpack_require__) { 37395 function baseKeys(object) { 37396 if (!isPrototype(object)) return nativeKeys(object); 37397 var result = []; 37398 for (var key in Object(object)) hasOwnProperty.call(object, key) && "constructor" != key && result.push(key); 37399 return result; 37400 } 37401 var isPrototype = __webpack_require__(806), nativeKeys = __webpack_require__(807), objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty; 37402 module.exports = baseKeys; 37403 }, function(module, exports) { 37404 function isPrototype(value) { 37405 var Ctor = value && value.constructor; 37406 return value === ("function" == typeof Ctor && Ctor.prototype || objectProto); 37407 } 37408 var objectProto = Object.prototype; 37409 module.exports = isPrototype; 37410 }, function(module, exports, __webpack_require__) { 37411 var overArg = __webpack_require__(320), nativeKeys = overArg(Object.keys, Object); 37412 module.exports = nativeKeys; 37413 }, function(module, exports, __webpack_require__) { 37414 var DataView = __webpack_require__(809), Map = __webpack_require__(178), Promise = __webpack_require__(810), Set = __webpack_require__(811), WeakMap = __webpack_require__(812), baseGetTag = __webpack_require__(41), toSource = __webpack_require__(271), dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap), getTag = baseGetTag; 37415 (DataView && "[object DataView]" != getTag(new DataView(new ArrayBuffer(1))) || Map && "[object Map]" != getTag(new Map()) || Promise && "[object Promise]" != getTag(Promise.resolve()) || Set && "[object Set]" != getTag(new Set()) || WeakMap && "[object WeakMap]" != getTag(new WeakMap())) && (getTag = function(value) { 37416 var result = baseGetTag(value), Ctor = "[object Object]" == result ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : ""; 37417 if (ctorString) switch (ctorString) { 37418 case dataViewCtorString: 37419 return "[object DataView]"; 37420 37421 case mapCtorString: 37422 return "[object Map]"; 37423 37424 case promiseCtorString: 37425 return "[object Promise]"; 37426 37427 case setCtorString: 37428 return "[object Set]"; 37429 37430 case weakMapCtorString: 37431 return "[object WeakMap]"; 37432 } 37433 return result; 37434 }), module.exports = getTag; 37435 }, function(module, exports, __webpack_require__) { 37436 var getNative = __webpack_require__(57), root = __webpack_require__(31), DataView = getNative(root, "DataView"); 37437 module.exports = DataView; 37438 }, function(module, exports, __webpack_require__) { 37439 var getNative = __webpack_require__(57), root = __webpack_require__(31), Promise = getNative(root, "Promise"); 37440 module.exports = Promise; 37441 }, function(module, exports, __webpack_require__) { 37442 var getNative = __webpack_require__(57), root = __webpack_require__(31), Set = getNative(root, "Set"); 37443 module.exports = Set; 37444 }, function(module, exports, __webpack_require__) { 37445 var getNative = __webpack_require__(57), root = __webpack_require__(31), WeakMap = getNative(root, "WeakMap"); 37446 module.exports = WeakMap; 37447 }, function(module, exports, __webpack_require__) { 37448 function isFlattenable(value) { 37449 return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]); 37450 } 37451 var Symbol = __webpack_require__(83), isArguments = __webpack_require__(201), isArray = __webpack_require__(13), spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : void 0; 37452 module.exports = isFlattenable; 37453 }, function(module, exports, __webpack_require__) { 37454 function baseOrderBy(collection, iteratees, orders) { 37455 var index = -1; 37456 iteratees = arrayMap(iteratees.length ? iteratees : [ identity ], baseUnary(baseIteratee)); 37457 var result = baseMap(collection, function(value, key, collection) { 37458 return { 37459 criteria: arrayMap(iteratees, function(iteratee) { 37460 return iteratee(value); 37461 }), 37462 index: ++index, 37463 value: value 37464 }; 37465 }); 37466 return baseSortBy(result, function(object, other) { 37467 return compareMultiple(object, other, orders); 37468 }); 37469 } 37470 var arrayMap = __webpack_require__(179), baseIteratee = __webpack_require__(89), baseMap = __webpack_require__(325), baseSortBy = __webpack_require__(830), baseUnary = __webpack_require__(319), compareMultiple = __webpack_require__(831), identity = __webpack_require__(68); 37471 module.exports = baseOrderBy; 37472 }, function(module, exports, __webpack_require__) { 37473 function baseMatches(source) { 37474 var matchData = getMatchData(source); 37475 return 1 == matchData.length && matchData[0][2] ? matchesStrictComparable(matchData[0][0], matchData[0][1]) : function(object) { 37476 return object === source || baseIsMatch(object, source, matchData); 37477 }; 37478 } 37479 var baseIsMatch = __webpack_require__(816), getMatchData = __webpack_require__(817), matchesStrictComparable = __webpack_require__(324); 37480 module.exports = baseMatches; 37481 }, function(module, exports, __webpack_require__) { 37482 function baseIsMatch(object, source, matchData, customizer) { 37483 var index = matchData.length, length = index, noCustomizer = !customizer; 37484 if (null == object) return !length; 37485 for (object = Object(object); index--; ) { 37486 var data = matchData[index]; 37487 if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) return !1; 37488 } 37489 for (;++index < length; ) { 37490 data = matchData[index]; 37491 var key = data[0], objValue = object[key], srcValue = data[1]; 37492 if (noCustomizer && data[2]) { 37493 if (void 0 === objValue && !(key in object)) return !1; 37494 } else { 37495 var stack = new Stack(); 37496 if (customizer) var result = customizer(objValue, srcValue, key, object, source, stack); 37497 if (!(void 0 === result ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) : result)) return !1; 37498 } 37499 } 37500 return !0; 37501 } 37502 var Stack = __webpack_require__(314), baseIsEqual = __webpack_require__(199), COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; 37503 module.exports = baseIsMatch; 37504 }, function(module, exports, __webpack_require__) { 37505 function getMatchData(object) { 37506 for (var result = keys(object), length = result.length; length--; ) { 37507 var key = result[length], value = object[key]; 37508 result[length] = [ key, value, isStrictComparable(value) ]; 37509 } 37510 return result; 37511 } 37512 var isStrictComparable = __webpack_require__(323), keys = __webpack_require__(200); 37513 module.exports = getMatchData; 37514 }, function(module, exports, __webpack_require__) { 37515 function baseMatchesProperty(path, srcValue) { 37516 return isKey(path) && isStrictComparable(srcValue) ? matchesStrictComparable(toKey(path), srcValue) : function(object) { 37517 var objValue = get(object, path); 37518 return void 0 === objValue && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG); 37519 }; 37520 } 37521 var baseIsEqual = __webpack_require__(199), get = __webpack_require__(174), hasIn = __webpack_require__(819), isKey = __webpack_require__(175), isStrictComparable = __webpack_require__(323), matchesStrictComparable = __webpack_require__(324), toKey = __webpack_require__(119), COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; 37522 module.exports = baseMatchesProperty; 37523 }, function(module, exports, __webpack_require__) { 37524 function hasIn(object, path) { 37525 return null != object && hasPath(object, path, baseHasIn); 37526 } 37527 var baseHasIn = __webpack_require__(820), hasPath = __webpack_require__(821); 37528 module.exports = hasIn; 37529 }, function(module, exports) { 37530 function baseHasIn(object, key) { 37531 return null != object && key in Object(object); 37532 } 37533 module.exports = baseHasIn; 37534 }, function(module, exports, __webpack_require__) { 37535 function hasPath(object, path, hasFunc) { 37536 path = castPath(path, object); 37537 for (var index = -1, length = path.length, result = !1; ++index < length; ) { 37538 var key = toKey(path[index]); 37539 if (!(result = null != object && hasFunc(object, key))) break; 37540 object = object[key]; 37541 } 37542 return result || ++index != length ? result : !!(length = null == object ? 0 : object.length) && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object)); 37543 } 37544 var castPath = __webpack_require__(270), isArguments = __webpack_require__(201), isArray = __webpack_require__(13), isIndex = __webpack_require__(202), isLength = __webpack_require__(203), toKey = __webpack_require__(119); 37545 module.exports = hasPath; 37546 }, function(module, exports, __webpack_require__) { 37547 function property(path) { 37548 return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path); 37549 } 37550 var baseProperty = __webpack_require__(823), basePropertyDeep = __webpack_require__(824), isKey = __webpack_require__(175), toKey = __webpack_require__(119); 37551 module.exports = property; 37552 }, function(module, exports) { 37553 function baseProperty(key) { 37554 return function(object) { 37555 return null == object ? void 0 : object[key]; 37556 }; 37557 } 37558 module.exports = baseProperty; 37559 }, function(module, exports, __webpack_require__) { 37560 function basePropertyDeep(path) { 37561 return function(object) { 37562 return baseGet(object, path); 37563 }; 37564 } 37565 var baseGet = __webpack_require__(269); 37566 module.exports = basePropertyDeep; 37567 }, function(module, exports, __webpack_require__) { 37568 var baseForOwn = __webpack_require__(826), createBaseEach = __webpack_require__(829), baseEach = createBaseEach(baseForOwn); 37569 module.exports = baseEach; 37570 }, function(module, exports, __webpack_require__) { 37571 function baseForOwn(object, iteratee) { 37572 return object && baseFor(object, iteratee, keys); 37573 } 37574 var baseFor = __webpack_require__(827), keys = __webpack_require__(200); 37575 module.exports = baseForOwn; 37576 }, function(module, exports, __webpack_require__) { 37577 var createBaseFor = __webpack_require__(828), baseFor = createBaseFor(); 37578 module.exports = baseFor; 37579 }, function(module, exports) { 37580 function createBaseFor(fromRight) { 37581 return function(object, iteratee, keysFunc) { 37582 for (var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length; length--; ) { 37583 var key = props[fromRight ? length : ++index]; 37584 if (!1 === iteratee(iterable[key], key, iterable)) break; 37585 } 37586 return object; 37587 }; 37588 } 37589 module.exports = createBaseFor; 37590 }, function(module, exports, __webpack_require__) { 37591 function createBaseEach(eachFunc, fromRight) { 37592 return function(collection, iteratee) { 37593 if (null == collection) return collection; 37594 if (!isArrayLike(collection)) return eachFunc(collection, iteratee); 37595 for (var length = collection.length, index = fromRight ? length : -1, iterable = Object(collection); (fromRight ? index-- : ++index < length) && !1 !== iteratee(iterable[index], index, iterable); ) ; 37596 return collection; 37597 }; 37598 } 37599 var isArrayLike = __webpack_require__(134); 37600 module.exports = createBaseEach; 37601 }, function(module, exports) { 37602 function baseSortBy(array, comparer) { 37603 var length = array.length; 37604 for (array.sort(comparer); length--; ) array[length] = array[length].value; 37605 return array; 37606 } 37607 module.exports = baseSortBy; 37608 }, function(module, exports, __webpack_require__) { 37609 function compareMultiple(object, other, orders) { 37610 for (var index = -1, objCriteria = object.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length; ++index < length; ) { 37611 var result = compareAscending(objCriteria[index], othCriteria[index]); 37612 if (result) { 37613 if (index >= ordersLength) return result; 37614 return result * ("desc" == orders[index] ? -1 : 1); 37615 } 37616 } 37617 return object.index - other.index; 37618 } 37619 var compareAscending = __webpack_require__(832); 37620 module.exports = compareMultiple; 37621 }, function(module, exports, __webpack_require__) { 37622 function compareAscending(value, other) { 37623 if (value !== other) { 37624 var valIsDefined = void 0 !== value, valIsNull = null === value, valIsReflexive = value === value, valIsSymbol = isSymbol(value), othIsDefined = void 0 !== other, othIsNull = null === other, othIsReflexive = other === other, othIsSymbol = isSymbol(other); 37625 if (!othIsNull && !othIsSymbol && !valIsSymbol && value > other || valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol || valIsNull && othIsDefined && othIsReflexive || !valIsDefined && othIsReflexive || !valIsReflexive) return 1; 37626 if (!valIsNull && !valIsSymbol && !othIsSymbol && value < other || othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol || othIsNull && valIsDefined && valIsReflexive || !othIsDefined && valIsReflexive || !othIsReflexive) return -1; 37627 } 37628 return 0; 37629 } 37630 var isSymbol = __webpack_require__(67); 37631 module.exports = compareAscending; 37632 }, function(module, exports, __webpack_require__) { 37633 function baseRest(func, start) { 37634 return setToString(overRest(func, start, identity), func + ""); 37635 } 37636 var identity = __webpack_require__(68), overRest = __webpack_require__(834), setToString = __webpack_require__(836); 37637 module.exports = baseRest; 37638 }, function(module, exports, __webpack_require__) { 37639 function overRest(func, start, transform) { 37640 return start = nativeMax(void 0 === start ? func.length - 1 : start, 0), function() { 37641 for (var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length); ++index < length; ) array[index] = args[start + index]; 37642 index = -1; 37643 for (var otherArgs = Array(start + 1); ++index < start; ) otherArgs[index] = args[index]; 37644 return otherArgs[start] = transform(array), apply(func, this, otherArgs); 37645 }; 37646 } 37647 var apply = __webpack_require__(835), nativeMax = Math.max; 37648 module.exports = overRest; 37649 }, function(module, exports) { 37650 function apply(func, thisArg, args) { 37651 switch (args.length) { 37652 case 0: 37653 return func.call(thisArg); 37654 37655 case 1: 37656 return func.call(thisArg, args[0]); 37657 37658 case 2: 37659 return func.call(thisArg, args[0], args[1]); 37660 37661 case 3: 37662 return func.call(thisArg, args[0], args[1], args[2]); 37663 } 37664 return func.apply(thisArg, args); 37665 } 37666 module.exports = apply; 37667 }, function(module, exports, __webpack_require__) { 37668 var baseSetToString = __webpack_require__(837), shortOut = __webpack_require__(840), setToString = shortOut(baseSetToString); 37669 module.exports = setToString; 37670 }, function(module, exports, __webpack_require__) { 37671 var constant = __webpack_require__(838), defineProperty = __webpack_require__(839), identity = __webpack_require__(68), baseSetToString = defineProperty ? function(func, string) { 37672 return defineProperty(func, "toString", { 37673 configurable: !0, 37674 enumerable: !1, 37675 value: constant(string), 37676 writable: !0 37677 }); 37678 } : identity; 37679 module.exports = baseSetToString; 37680 }, function(module, exports) { 37681 function constant(value) { 37682 return function() { 37683 return value; 37684 }; 37685 } 37686 module.exports = constant; 37687 }, function(module, exports, __webpack_require__) { 37688 var getNative = __webpack_require__(57), defineProperty = function() { 37689 try { 37690 var func = getNative(Object, "defineProperty"); 37691 return func({}, "", {}), func; 37692 } catch (e) {} 37693 }(); 37694 module.exports = defineProperty; 37695 }, function(module, exports) { 37696 function shortOut(func) { 37697 var count = 0, lastCalled = 0; 37698 return function() { 37699 var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled); 37700 if (lastCalled = stamp, remaining > 0) { 37701 if (++count >= HOT_COUNT) return arguments[0]; 37702 } else count = 0; 37703 return func.apply(void 0, arguments); 37704 }; 37705 } 37706 var HOT_COUNT = 800, HOT_SPAN = 16, nativeNow = Date.now; 37707 module.exports = shortOut; 37708 }, function(module, exports, __webpack_require__) { 37709 function max(array) { 37710 return array && array.length ? baseExtremum(array, identity, baseGt) : void 0; 37711 } 37712 var baseExtremum = __webpack_require__(135), baseGt = __webpack_require__(327), identity = __webpack_require__(68); 37713 module.exports = max; 37714 }, function(module, exports, __webpack_require__) { 37715 function flatMap(collection, iteratee) { 37716 return baseFlatten(map(collection, iteratee), 1); 37717 } 37718 var baseFlatten = __webpack_require__(322), map = __webpack_require__(843); 37719 module.exports = flatMap; 37720 }, function(module, exports, __webpack_require__) { 37721 function map(collection, iteratee) { 37722 return (isArray(collection) ? arrayMap : baseMap)(collection, baseIteratee(iteratee, 3)); 37723 } 37724 var arrayMap = __webpack_require__(179), baseIteratee = __webpack_require__(89), baseMap = __webpack_require__(325), isArray = __webpack_require__(13); 37725 module.exports = map; 37726 }, function(module, exports, __webpack_require__) { 37727 "use strict"; 37728 Object.defineProperty(exports, "__esModule", { 37729 value: !0 37730 }); 37731 var _getNiceTickValues = __webpack_require__(845); 37732 Object.defineProperty(exports, "getTickValues", { 37733 enumerable: !0, 37734 get: function() { 37735 return _getNiceTickValues.getTickValues; 37736 } 37737 }), Object.defineProperty(exports, "getNiceTickValues", { 37738 enumerable: !0, 37739 get: function() { 37740 return _getNiceTickValues.getNiceTickValues; 37741 } 37742 }), Object.defineProperty(exports, "getTickValuesFixedDomain", { 37743 enumerable: !0, 37744 get: function() { 37745 return _getNiceTickValues.getTickValuesFixedDomain; 37746 } 37747 }); 37748 }, function(module, exports, __webpack_require__) { 37749 "use strict"; 37750 function _toConsumableArray(arr) { 37751 if (Array.isArray(arr)) { 37752 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; 37753 return arr2; 37754 } 37755 return Array.from(arr); 37756 } 37757 function getValidInterval(_ref) { 37758 var _ref2 = _slicedToArray(_ref, 2), min = _ref2[0], max = _ref2[1], validMin = min, validMax = max; 37759 return min > max && (validMin = max, validMax = min), [ validMin, validMax ]; 37760 } 37761 function getFormatStep(roughStep, allowDecimals, correctionFactor) { 37762 if (roughStep <= 0) return 0; 37763 var digitCount = _arithmetic2.default.getDigitCount(roughStep), stepRatio = roughStep / Math.pow(10, digitCount), amendStepRatio = 1 !== digitCount ? _arithmetic2.default.multiply(Math.ceil(stepRatio / .05) + correctionFactor, .05) : _arithmetic2.default.multiply(Math.ceil(stepRatio / .1) + correctionFactor, .1), formatStep = _arithmetic2.default.multiply(amendStepRatio, Math.pow(10, digitCount)); 37764 return allowDecimals ? formatStep : Math.ceil(formatStep); 37765 } 37766 function getTickOfSingleValue(value, tickCount, allowDecimals) { 37767 var isFlt = _arithmetic2.default.isFloat(value), step = 1, middle = value; 37768 if (isFlt && allowDecimals) { 37769 var absVal = Math.abs(value); 37770 absVal < 1 ? (step = Math.pow(10, _arithmetic2.default.getDigitCount(value) - 1), 37771 middle = _arithmetic2.default.multiply(Math.floor(value / step), step)) : absVal > 1 && (middle = Math.floor(value)); 37772 } else 0 === value ? middle = Math.floor((tickCount - 1) / 2) : allowDecimals || (middle = Math.floor(value)); 37773 var middleIndex = Math.floor((tickCount - 1) / 2); 37774 return (0, _utils.compose)((0, _utils.map)(function(n) { 37775 return _arithmetic2.default.sum(middle, _arithmetic2.default.multiply(n - middleIndex, step)); 37776 }), _utils.range)(0, tickCount); 37777 } 37778 function calculateStep(min, max, tickCount, allowDecimals) { 37779 var correctionFactor = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : 0, step = getFormatStep((max - min) / (tickCount - 1), allowDecimals, correctionFactor), middle = void 0; 37780 min <= 0 && max >= 0 ? middle = 0 : (middle = _arithmetic2.default.divide(_arithmetic2.default.sum(min, max), 2), 37781 middle = _arithmetic2.default.minus(middle, _arithmetic2.default.modulo(middle, step)), 37782 middle = _arithmetic2.default.strip(middle, 16)); 37783 var belowCount = Math.ceil((middle - min) / step), upCount = Math.ceil((max - middle) / step), scaleCount = belowCount + upCount + 1; 37784 return scaleCount > tickCount ? calculateStep(min, max, tickCount, allowDecimals, correctionFactor + 1) : (scaleCount < tickCount && (upCount = max > 0 ? upCount + (tickCount - scaleCount) : upCount, 37785 belowCount = max > 0 ? belowCount : belowCount + (tickCount - scaleCount)), { 37786 step: step, 37787 tickMin: _arithmetic2.default.minus(middle, _arithmetic2.default.multiply(belowCount, step)), 37788 tickMax: _arithmetic2.default.sum(middle, _arithmetic2.default.multiply(upCount, step)) 37789 }); 37790 } 37791 function getNiceTickValuesFn(_ref3) { 37792 var _ref4 = _slicedToArray(_ref3, 2), min = _ref4[0], max = _ref4[1], tickCount = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 6, allowDecimals = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2], count = Math.max(tickCount, 2), _getValidInterval = getValidInterval([ min, max ]), _getValidInterval2 = _slicedToArray(_getValidInterval, 2), cormin = _getValidInterval2[0], cormax = _getValidInterval2[1]; 37793 if (cormin === cormax) return getTickOfSingleValue(cormin, tickCount, allowDecimals); 37794 var _calculateStep = calculateStep(cormin, cormax, count, allowDecimals), step = _calculateStep.step, tickMin = _calculateStep.tickMin, tickMax = _calculateStep.tickMax, values = _arithmetic2.default.rangeStep(tickMin, tickMax + .1 * step, step); 37795 return min > max ? (0, _utils.reverse)(values) : values; 37796 } 37797 function getTickValuesFn(_ref5) { 37798 var _ref6 = _slicedToArray(_ref5, 2), min = _ref6[0], max = _ref6[1], tickCount = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 6, allowDecimals = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2], count = Math.max(tickCount, 2), _getValidInterval3 = getValidInterval([ min, max ]), _getValidInterval4 = _slicedToArray(_getValidInterval3, 2), cormin = _getValidInterval4[0], cormax = _getValidInterval4[1]; 37799 if (cormin === cormax) return getTickOfSingleValue(cormin, tickCount, allowDecimals); 37800 var step = getFormatStep((cormax - cormin) / (count - 1), allowDecimals, 0), fn = (0, 37801 _utils.compose)((0, _utils.map)(function(n) { 37802 return cormin + n * step; 37803 }), _utils.range), values = fn(0, count).filter(function(entry) { 37804 return entry >= cormin && entry <= cormax; 37805 }); 37806 return min > max ? (0, _utils.reverse)(values) : values; 37807 } 37808 function getTickValuesFixedDomainFn(_ref7, tickCount) { 37809 var _ref8 = _slicedToArray(_ref7, 2), min = _ref8[0], max = _ref8[1], allowDecimals = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2], _getValidInterval5 = getValidInterval([ min, max ]), _getValidInterval6 = _slicedToArray(_getValidInterval5, 2), cormin = _getValidInterval6[0], cormax = _getValidInterval6[1]; 37810 if (cormin === cormax) return [ cormin ]; 37811 var count = Math.max(tickCount, 2), step = getFormatStep((cormax - cormin) / (count - 1), allowDecimals, 0), values = [].concat(_toConsumableArray(_arithmetic2.default.rangeStep(cormin, cormax - .99 * step, step)), [ cormax ]); 37812 return min > max ? (0, _utils.reverse)(values) : values; 37813 } 37814 Object.defineProperty(exports, "__esModule", { 37815 value: !0 37816 }), exports.getTickValuesFixedDomain = exports.getTickValues = exports.getNiceTickValues = void 0; 37817 var _slicedToArray = function() { 37818 function sliceIterator(arr, i) { 37819 var _arr = [], _n = !0, _d = !1, _e = void 0; 37820 try { 37821 for (var _s, _i = arr[Symbol.iterator](); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), 37822 !i || _arr.length !== i); _n = !0) ; 37823 } catch (err) { 37824 _d = !0, _e = err; 37825 } finally { 37826 try { 37827 !_n && _i.return && _i.return(); 37828 } finally { 37829 if (_d) throw _e; 37830 } 37831 } 37832 return _arr; 37833 } 37834 return function(arr, i) { 37835 if (Array.isArray(arr)) return arr; 37836 if (Symbol.iterator in Object(arr)) return sliceIterator(arr, i); 37837 throw new TypeError("Invalid attempt to destructure non-iterable instance"); 37838 }; 37839 }(), _utils = __webpack_require__(330), _arithmetic = __webpack_require__(846), _arithmetic2 = function(obj) { 37840 return obj && obj.__esModule ? obj : { 37841 default: obj 37842 }; 37843 }(_arithmetic); 37844 exports.getNiceTickValues = (0, _utils.memoize)(getNiceTickValuesFn), exports.getTickValues = (0, 37845 _utils.memoize)(getTickValuesFn), exports.getTickValuesFixedDomain = (0, _utils.memoize)(getTickValuesFixedDomainFn); 37846 }, function(module, exports, __webpack_require__) { 37847 "use strict"; 37848 function strip(num) { 37849 var precision = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 12; 37850 return +parseFloat(num.toPrecision(precision)); 37851 } 37852 function isFloat(num) { 37853 return /^([+-]?)\d*\.\d+$/.test(num); 37854 } 37855 function getDigitCount(value) { 37856 var abs = Math.abs(value); 37857 return 0 === value ? 1 : Math.floor(Math.log(abs) / Math.log(10)) + 1; 37858 } 37859 function getDecimalDigitCount(a) { 37860 var str = a ? "" + a : ""; 37861 if (str.indexOf("e") >= 0) return Math.abs(parseInt(str.slice(str.indexOf("e") + 1), 10)); 37862 var ary = str.split("."); 37863 return ary.length > 1 ? ary[1].length : 0; 37864 } 37865 function multiply(a, b) { 37866 var intA = parseInt(("" + a).replace(".", ""), 10), intB = parseInt(("" + b).replace(".", ""), 10), count = getDecimalDigitCount(a) + getDecimalDigitCount(b); 37867 return intA * intB / Math.pow(10, count); 37868 } 37869 function sum(a, b) { 37870 var count = Math.max(getDecimalDigitCount(a), getDecimalDigitCount(b)); 37871 return count = Math.pow(10, count), (multiply(a, count) + multiply(b, count)) / count; 37872 } 37873 function minus(a, b) { 37874 return sum(a, -b); 37875 } 37876 function divide(a, b) { 37877 var ca = getDecimalDigitCount(a), cb = getDecimalDigitCount(b); 37878 return parseInt(("" + a).replace(".", ""), 10) / parseInt(("" + b).replace(".", ""), 10) * Math.pow(10, cb - ca); 37879 } 37880 function modulo(a, b) { 37881 var mod = Math.abs(b); 37882 return b <= 0 ? a : minus(a, multiply(mod, Math.floor(a / mod))); 37883 } 37884 function rangeStep(start, end, step) { 37885 for (var num = start, result = []; num < end; ) result.push(num), num = sum(num, step); 37886 return result; 37887 } 37888 Object.defineProperty(exports, "__esModule", { 37889 value: !0 37890 }); 37891 var _utils = __webpack_require__(330), interpolateNumber = (0, _utils.curry)(function(a, b, t) { 37892 var newA = +a; 37893 return newA + t * (+b - newA); 37894 }), uninterpolateNumber = (0, _utils.curry)(function(a, b, x) { 37895 var diff = b - +a; 37896 return diff = diff || 1 / 0, (x - a) / diff; 37897 }), uninterpolateTruncation = (0, _utils.curry)(function(a, b, x) { 37898 var diff = b - +a; 37899 return diff = diff || 1 / 0, Math.max(0, Math.min(1, (x - a) / diff)); 37900 }); 37901 exports.default = { 37902 rangeStep: rangeStep, 37903 isFloat: isFloat, 37904 getDigitCount: getDigitCount, 37905 getDecimalDigitCount: getDecimalDigitCount, 37906 sum: sum, 37907 minus: minus, 37908 multiply: multiply, 37909 divide: divide, 37910 modulo: modulo, 37911 strip: strip, 37912 interpolateNumber: interpolateNumber, 37913 uninterpolateNumber: uninterpolateNumber, 37914 uninterpolateTruncation: uninterpolateTruncation 37915 }; 37916 }, function(module, __webpack_exports__, __webpack_require__) { 37917 "use strict"; 37918 function band() { 37919 function rescale() { 37920 var n = domain().length, reverse = range[1] < range[0], start = range[reverse - 0], stop = range[1 - reverse]; 37921 step = (stop - start) / Math.max(1, n - paddingInner + 2 * paddingOuter), round && (step = Math.floor(step)), 37922 start += (stop - start - step * (n - paddingInner)) * align, bandwidth = step * (1 - paddingInner), 37923 round && (start = Math.round(start), bandwidth = Math.round(bandwidth)); 37924 var values = Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__.e)(n).map(function(i) { 37925 return start + step * i; 37926 }); 37927 return ordinalRange(reverse ? values.reverse() : values); 37928 } 37929 var step, bandwidth, scale = Object(__WEBPACK_IMPORTED_MODULE_1__ordinal__.a)().unknown(void 0), domain = scale.domain, ordinalRange = scale.range, range = [ 0, 1 ], round = !1, paddingInner = 0, paddingOuter = 0, align = .5; 37930 return delete scale.unknown, scale.domain = function(_) { 37931 return arguments.length ? (domain(_), rescale()) : domain(); 37932 }, scale.range = function(_) { 37933 return arguments.length ? (range = [ +_[0], +_[1] ], rescale()) : range.slice(); 37934 }, scale.rangeRound = function(_) { 37935 return range = [ +_[0], +_[1] ], round = !0, rescale(); 37936 }, scale.bandwidth = function() { 37937 return bandwidth; 37938 }, scale.step = function() { 37939 return step; 37940 }, scale.round = function(_) { 37941 return arguments.length ? (round = !!_, rescale()) : round; 37942 }, scale.padding = function(_) { 37943 return arguments.length ? (paddingInner = paddingOuter = Math.max(0, Math.min(1, _)), 37944 rescale()) : paddingInner; 37945 }, scale.paddingInner = function(_) { 37946 return arguments.length ? (paddingInner = Math.max(0, Math.min(1, _)), rescale()) : paddingInner; 37947 }, scale.paddingOuter = function(_) { 37948 return arguments.length ? (paddingOuter = Math.max(0, Math.min(1, _)), rescale()) : paddingOuter; 37949 }, scale.align = function(_) { 37950 return arguments.length ? (align = Math.max(0, Math.min(1, _)), rescale()) : align; 37951 }, scale.copy = function() { 37952 return band().domain(domain()).range(range).round(round).paddingInner(paddingInner).paddingOuter(paddingOuter).align(align); 37953 }, rescale(); 37954 } 37955 function pointish(scale) { 37956 var copy = scale.copy; 37957 return scale.padding = scale.paddingOuter, delete scale.paddingInner, delete scale.paddingOuter, 37958 scale.copy = function() { 37959 return pointish(copy()); 37960 }, scale; 37961 } 37962 function point() { 37963 return pointish(band().paddingInner(1)); 37964 } 37965 __webpack_exports__.a = band, __webpack_exports__.b = point; 37966 var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(37), __WEBPACK_IMPORTED_MODULE_1__ordinal__ = __webpack_require__(344); 37967 }, function(module, __webpack_exports__, __webpack_require__) { 37968 "use strict"; 37969 __webpack_require__(334); 37970 }, function(module, __webpack_exports__, __webpack_require__) { 37971 "use strict"; 37972 }, function(module, __webpack_exports__, __webpack_require__) { 37973 "use strict"; 37974 __webpack_require__(338), __webpack_require__(332), __webpack_require__(851), __webpack_require__(337), 37975 __webpack_require__(852), __webpack_require__(339), __webpack_require__(340), __webpack_require__(341); 37976 }, function(module, __webpack_exports__, __webpack_require__) { 37977 "use strict"; 37978 __webpack_exports__.a = function(x) { 37979 return function() { 37980 return x; 37981 }; 37982 }; 37983 }, function(module, __webpack_exports__, __webpack_require__) { 37984 "use strict"; 37985 __webpack_exports__.a = function(x) { 37986 return x; 37987 }; 37988 }, function(module, __webpack_exports__, __webpack_require__) { 37989 "use strict"; 37990 __webpack_require__(338), __webpack_require__(69), __webpack_require__(90), __webpack_require__(204); 37991 }, function(module, __webpack_exports__, __webpack_require__) { 37992 "use strict"; 37993 __webpack_require__(335); 37994 }, function(module, __webpack_exports__, __webpack_require__) { 37995 "use strict"; 37996 }, function(module, __webpack_exports__, __webpack_require__) { 37997 "use strict"; 37998 __webpack_require__(90); 37999 }, function(module, __webpack_exports__, __webpack_require__) { 38000 "use strict"; 38001 __webpack_require__(69), __webpack_require__(90), __webpack_require__(204); 38002 }, function(module, __webpack_exports__, __webpack_require__) { 38003 "use strict"; 38004 }, function(module, __webpack_exports__, __webpack_require__) { 38005 "use strict"; 38006 }, function(module, __webpack_exports__, __webpack_require__) { 38007 "use strict"; 38008 __webpack_require__(69); 38009 }, function(module, __webpack_exports__, __webpack_require__) { 38010 "use strict"; 38011 }, function(module, __webpack_exports__, __webpack_require__) { 38012 "use strict"; 38013 }, function(module, __webpack_exports__, __webpack_require__) { 38014 "use strict"; 38015 __webpack_require__(343); 38016 }, function(module, __webpack_exports__, __webpack_require__) { 38017 "use strict"; 38018 var __WEBPACK_IMPORTED_MODULE_2__src_map__ = (__webpack_require__(865), __webpack_require__(866), 38019 __webpack_require__(205)); 38020 __webpack_require__.d(__webpack_exports__, "a", function() { 38021 return __WEBPACK_IMPORTED_MODULE_2__src_map__.a; 38022 }); 38023 __webpack_require__(867), __webpack_require__(868), __webpack_require__(869); 38024 }, function(module, __webpack_exports__, __webpack_require__) { 38025 "use strict"; 38026 __webpack_require__(205); 38027 }, function(module, __webpack_exports__, __webpack_require__) { 38028 "use strict"; 38029 function Set() {} 38030 function set(object, f) { 38031 var set = new Set(); 38032 if (object instanceof Set) object.each(function(value) { 38033 set.add(value); 38034 }); else if (object) { 38035 var i = -1, n = object.length; 38036 if (null == f) for (;++i < n; ) set.add(object[i]); else for (;++i < n; ) set.add(f(object[i], i, object)); 38037 } 38038 return set; 38039 } 38040 var __WEBPACK_IMPORTED_MODULE_0__map__ = __webpack_require__(205), proto = __WEBPACK_IMPORTED_MODULE_0__map__.a.prototype; 38041 Set.prototype = set.prototype = { 38042 constructor: Set, 38043 has: proto.has, 38044 add: function(value) { 38045 return value += "", this[__WEBPACK_IMPORTED_MODULE_0__map__.b + value] = value, 38046 this; 38047 }, 38048 remove: proto.remove, 38049 clear: proto.clear, 38050 values: proto.keys, 38051 size: proto.size, 38052 empty: proto.empty, 38053 each: proto.each 38054 }; 38055 }, function(module, __webpack_exports__, __webpack_require__) { 38056 "use strict"; 38057 }, function(module, __webpack_exports__, __webpack_require__) { 38058 "use strict"; 38059 }, function(module, __webpack_exports__, __webpack_require__) { 38060 "use strict"; 38061 }, function(module, __webpack_exports__, __webpack_require__) { 38062 "use strict"; 38063 function identity() { 38064 function scale(x) { 38065 return +x; 38066 } 38067 var domain = [ 0, 1 ]; 38068 return scale.invert = scale, scale.domain = scale.range = function(_) { 38069 return arguments.length ? (domain = __WEBPACK_IMPORTED_MODULE_0__array__.a.call(_, __WEBPACK_IMPORTED_MODULE_2__number__.a), 38070 scale) : domain.slice(); 38071 }, scale.copy = function() { 38072 return identity().domain(domain); 38073 }, Object(__WEBPACK_IMPORTED_MODULE_1__linear__.b)(scale); 38074 } 38075 __webpack_exports__.a = identity; 38076 var __WEBPACK_IMPORTED_MODULE_0__array__ = __webpack_require__(62), __WEBPACK_IMPORTED_MODULE_1__linear__ = __webpack_require__(91), __WEBPACK_IMPORTED_MODULE_2__number__ = __webpack_require__(353); 38077 }, function(module, __webpack_exports__, __webpack_require__) { 38078 "use strict"; 38079 function labConvert(o) { 38080 if (o instanceof Lab) return new Lab(o.l, o.a, o.b, o.opacity); 38081 if (o instanceof Hcl) { 38082 var h = o.h * __WEBPACK_IMPORTED_MODULE_2__math__.a; 38083 return new Lab(o.l, Math.cos(h) * o.c, Math.sin(h) * o.c, o.opacity); 38084 } 38085 o instanceof __WEBPACK_IMPORTED_MODULE_1__color__.b || (o = Object(__WEBPACK_IMPORTED_MODULE_1__color__.h)(o)); 38086 var b = rgb2xyz(o.r), a = rgb2xyz(o.g), l = rgb2xyz(o.b), x = xyz2lab((.4124564 * b + .3575761 * a + .1804375 * l) / Xn), y = xyz2lab((.2126729 * b + .7151522 * a + .072175 * l) / Yn); 38087 return new Lab(116 * y - 16, 500 * (x - y), 200 * (y - xyz2lab((.0193339 * b + .119192 * a + .9503041 * l) / Zn)), o.opacity); 38088 } 38089 function lab(l, a, b, opacity) { 38090 return 1 === arguments.length ? labConvert(l) : new Lab(l, a, b, null == opacity ? 1 : opacity); 38091 } 38092 function Lab(l, a, b, opacity) { 38093 this.l = +l, this.a = +a, this.b = +b, this.opacity = +opacity; 38094 } 38095 function xyz2lab(t) { 38096 return t > t3 ? Math.pow(t, 1 / 3) : t / t2 + t0; 38097 } 38098 function lab2xyz(t) { 38099 return t > t1 ? t * t * t : t2 * (t - t0); 38100 } 38101 function xyz2rgb(x) { 38102 return 255 * (x <= .0031308 ? 12.92 * x : 1.055 * Math.pow(x, 1 / 2.4) - .055); 38103 } 38104 function rgb2xyz(x) { 38105 return (x /= 255) <= .04045 ? x / 12.92 : Math.pow((x + .055) / 1.055, 2.4); 38106 } 38107 function hclConvert(o) { 38108 if (o instanceof Hcl) return new Hcl(o.h, o.c, o.l, o.opacity); 38109 o instanceof Lab || (o = labConvert(o)); 38110 var h = Math.atan2(o.b, o.a) * __WEBPACK_IMPORTED_MODULE_2__math__.b; 38111 return new Hcl(h < 0 ? h + 360 : h, Math.sqrt(o.a * o.a + o.b * o.b), o.l, o.opacity); 38112 } 38113 function hcl(h, c, l, opacity) { 38114 return 1 === arguments.length ? hclConvert(h) : new Hcl(h, c, l, null == opacity ? 1 : opacity); 38115 } 38116 function Hcl(h, c, l, opacity) { 38117 this.h = +h, this.c = +c, this.l = +l, this.opacity = +opacity; 38118 } 38119 __webpack_exports__.a = lab, __webpack_exports__.b = hcl; 38120 var __WEBPACK_IMPORTED_MODULE_0__define__ = __webpack_require__(208), __WEBPACK_IMPORTED_MODULE_1__color__ = __webpack_require__(207), __WEBPACK_IMPORTED_MODULE_2__math__ = __webpack_require__(345), Xn = .95047, Yn = 1, Zn = 1.08883, t0 = 4 / 29, t1 = 6 / 29, t2 = 3 * t1 * t1, t3 = t1 * t1 * t1; 38121 Object(__WEBPACK_IMPORTED_MODULE_0__define__.a)(Lab, lab, Object(__WEBPACK_IMPORTED_MODULE_0__define__.b)(__WEBPACK_IMPORTED_MODULE_1__color__.a, { 38122 brighter: function(k) { 38123 return new Lab(this.l + 18 * (null == k ? 1 : k), this.a, this.b, this.opacity); 38124 }, 38125 darker: function(k) { 38126 return new Lab(this.l - 18 * (null == k ? 1 : k), this.a, this.b, this.opacity); 38127 }, 38128 rgb: function() { 38129 var y = (this.l + 16) / 116, x = isNaN(this.a) ? y : y + this.a / 500, z = isNaN(this.b) ? y : y - this.b / 200; 38130 return y = Yn * lab2xyz(y), x = Xn * lab2xyz(x), z = Zn * lab2xyz(z), new __WEBPACK_IMPORTED_MODULE_1__color__.b(xyz2rgb(3.2404542 * x - 1.5371385 * y - .4985314 * z), xyz2rgb(-.969266 * x + 1.8760108 * y + .041556 * z), xyz2rgb(.0556434 * x - .2040259 * y + 1.0572252 * z), this.opacity); 38131 } 38132 })), Object(__WEBPACK_IMPORTED_MODULE_0__define__.a)(Hcl, hcl, Object(__WEBPACK_IMPORTED_MODULE_0__define__.b)(__WEBPACK_IMPORTED_MODULE_1__color__.a, { 38133 brighter: function(k) { 38134 return new Hcl(this.h, this.c, this.l + 18 * (null == k ? 1 : k), this.opacity); 38135 }, 38136 darker: function(k) { 38137 return new Hcl(this.h, this.c, this.l - 18 * (null == k ? 1 : k), this.opacity); 38138 }, 38139 rgb: function() { 38140 return labConvert(this).rgb(); 38141 } 38142 })); 38143 }, function(module, __webpack_exports__, __webpack_require__) { 38144 "use strict"; 38145 function cubehelixConvert(o) { 38146 if (o instanceof Cubehelix) return new Cubehelix(o.h, o.s, o.l, o.opacity); 38147 o instanceof __WEBPACK_IMPORTED_MODULE_1__color__.b || (o = Object(__WEBPACK_IMPORTED_MODULE_1__color__.h)(o)); 38148 var r = o.r / 255, g = o.g / 255, b = o.b / 255, l = (BC_DA * b + ED * r - EB * g) / (BC_DA + ED - EB), bl = b - l, k = (E * (g - l) - C * bl) / D, s = Math.sqrt(k * k + bl * bl) / (E * l * (1 - l)), h = s ? Math.atan2(k, bl) * __WEBPACK_IMPORTED_MODULE_2__math__.b - 120 : NaN; 38149 return new Cubehelix(h < 0 ? h + 360 : h, s, l, o.opacity); 38150 } 38151 function cubehelix(h, s, l, opacity) { 38152 return 1 === arguments.length ? cubehelixConvert(h) : new Cubehelix(h, s, l, null == opacity ? 1 : opacity); 38153 } 38154 function Cubehelix(h, s, l, opacity) { 38155 this.h = +h, this.s = +s, this.l = +l, this.opacity = +opacity; 38156 } 38157 __webpack_exports__.a = cubehelix; 38158 var __WEBPACK_IMPORTED_MODULE_0__define__ = __webpack_require__(208), __WEBPACK_IMPORTED_MODULE_1__color__ = __webpack_require__(207), __WEBPACK_IMPORTED_MODULE_2__math__ = __webpack_require__(345), A = -.14861, B = 1.78277, C = -.29227, D = -.90649, E = 1.97294, ED = E * D, EB = E * B, BC_DA = B * C - D * A; 38159 Object(__WEBPACK_IMPORTED_MODULE_0__define__.a)(Cubehelix, cubehelix, Object(__WEBPACK_IMPORTED_MODULE_0__define__.b)(__WEBPACK_IMPORTED_MODULE_1__color__.a, { 38160 brighter: function(k) { 38161 return k = null == k ? __WEBPACK_IMPORTED_MODULE_1__color__.c : Math.pow(__WEBPACK_IMPORTED_MODULE_1__color__.c, k), 38162 new Cubehelix(this.h, this.s, this.l * k, this.opacity); 38163 }, 38164 darker: function(k) { 38165 return k = null == k ? __WEBPACK_IMPORTED_MODULE_1__color__.d : Math.pow(__WEBPACK_IMPORTED_MODULE_1__color__.d, k), 38166 new Cubehelix(this.h, this.s, this.l * k, this.opacity); 38167 }, 38168 rgb: function() { 38169 var h = isNaN(this.h) ? 0 : (this.h + 120) * __WEBPACK_IMPORTED_MODULE_2__math__.a, l = +this.l, a = isNaN(this.s) ? 0 : this.s * l * (1 - l), cosh = Math.cos(h), sinh = Math.sin(h); 38170 return new __WEBPACK_IMPORTED_MODULE_1__color__.b(255 * (l + a * (A * cosh + B * sinh)), 255 * (l + a * (C * cosh + D * sinh)), 255 * (l + a * (E * cosh)), this.opacity); 38171 } 38172 })); 38173 }, function(module, __webpack_exports__, __webpack_require__) { 38174 "use strict"; 38175 __webpack_exports__.a = function(a, b) { 38176 return a = +a, b -= a, function(t) { 38177 return Math.round(a + b * t); 38178 }; 38179 }; 38180 }, function(module, __webpack_exports__, __webpack_require__) { 38181 "use strict"; 38182 function interpolateTransform(parse, pxComma, pxParen, degParen) { 38183 function pop(s) { 38184 return s.length ? s.pop() + " " : ""; 38185 } 38186 function translate(xa, ya, xb, yb, s, q) { 38187 if (xa !== xb || ya !== yb) { 38188 var i = s.push("translate(", null, pxComma, null, pxParen); 38189 q.push({ 38190 i: i - 4, 38191 x: Object(__WEBPACK_IMPORTED_MODULE_0__number__.a)(xa, xb) 38192 }, { 38193 i: i - 2, 38194 x: Object(__WEBPACK_IMPORTED_MODULE_0__number__.a)(ya, yb) 38195 }); 38196 } else (xb || yb) && s.push("translate(" + xb + pxComma + yb + pxParen); 38197 } 38198 function rotate(a, b, s, q) { 38199 a !== b ? (a - b > 180 ? b += 360 : b - a > 180 && (a += 360), q.push({ 38200 i: s.push(pop(s) + "rotate(", null, degParen) - 2, 38201 x: Object(__WEBPACK_IMPORTED_MODULE_0__number__.a)(a, b) 38202 })) : b && s.push(pop(s) + "rotate(" + b + degParen); 38203 } 38204 function skewX(a, b, s, q) { 38205 a !== b ? q.push({ 38206 i: s.push(pop(s) + "skewX(", null, degParen) - 2, 38207 x: Object(__WEBPACK_IMPORTED_MODULE_0__number__.a)(a, b) 38208 }) : b && s.push(pop(s) + "skewX(" + b + degParen); 38209 } 38210 function scale(xa, ya, xb, yb, s, q) { 38211 if (xa !== xb || ya !== yb) { 38212 var i = s.push(pop(s) + "scale(", null, ",", null, ")"); 38213 q.push({ 38214 i: i - 4, 38215 x: Object(__WEBPACK_IMPORTED_MODULE_0__number__.a)(xa, xb) 38216 }, { 38217 i: i - 2, 38218 x: Object(__WEBPACK_IMPORTED_MODULE_0__number__.a)(ya, yb) 38219 }); 38220 } else 1 === xb && 1 === yb || s.push(pop(s) + "scale(" + xb + "," + yb + ")"); 38221 } 38222 return function(a, b) { 38223 var s = [], q = []; 38224 return a = parse(a), b = parse(b), translate(a.translateX, a.translateY, b.translateX, b.translateY, s, q), 38225 rotate(a.rotate, b.rotate, s, q), skewX(a.skewX, b.skewX, s, q), scale(a.scaleX, a.scaleY, b.scaleX, b.scaleY, s, q), 38226 a = b = null, function(t) { 38227 for (var o, i = -1, n = q.length; ++i < n; ) s[(o = q[i]).i] = o.x(t); 38228 return s.join(""); 38229 }; 38230 }; 38231 } 38232 var __WEBPACK_IMPORTED_MODULE_0__number__ = __webpack_require__(136), __WEBPACK_IMPORTED_MODULE_1__parse__ = __webpack_require__(875); 38233 interpolateTransform(__WEBPACK_IMPORTED_MODULE_1__parse__.a, "px, ", "px)", "deg)"), 38234 interpolateTransform(__WEBPACK_IMPORTED_MODULE_1__parse__.b, ", ", ")", ")"); 38235 }, function(module, __webpack_exports__, __webpack_require__) { 38236 "use strict"; 38237 function parseCss(value) { 38238 return "none" === value ? __WEBPACK_IMPORTED_MODULE_0__decompose__.b : (cssNode || (cssNode = document.createElement("DIV"), 38239 cssRoot = document.documentElement, cssView = document.defaultView), cssNode.style.transform = value, 38240 value = cssView.getComputedStyle(cssRoot.appendChild(cssNode), null).getPropertyValue("transform"), 38241 cssRoot.removeChild(cssNode), value = value.slice(7, -1).split(","), Object(__WEBPACK_IMPORTED_MODULE_0__decompose__.a)(+value[0], +value[1], +value[2], +value[3], +value[4], +value[5])); 38242 } 38243 function parseSvg(value) { 38244 return null == value ? __WEBPACK_IMPORTED_MODULE_0__decompose__.b : (svgNode || (svgNode = document.createElementNS("http://www.w3.org/2000/svg“,”g”), 38245 svgNode.setAttribute("transform", value), (value = svgNode.transform.baseVal.consolidate()) ? (value = value.matrix, 38246 Object(__WEBPACK_IMPORTED_MODULE_0__decompose__.a)(value.a, value.b, value.c, value.d, value.e, value.f)) : __WEBPACK_IMPORTED_MODULE_0__decompose__.b); 38247 } 38248 __webpack_exports__.a = parseCss, __webpack_exports__.b = parseSvg; 38249 var cssNode, cssRoot, cssView, svgNode, __WEBPACK_IMPORTED_MODULE_0__decompose__ = __webpack_require__(876); 38250 }, function(module, __webpack_exports__, __webpack_require__) { 38251 "use strict"; 38252 __webpack_require__.d(__webpack_exports__, "b", function() { 38253 return identity; 38254 }); 38255 var degrees = 180 / Math.PI, identity = { 38256 translateX: 0, 38257 translateY: 0, 38258 rotate: 0, 38259 skewX: 0, 38260 scaleX: 1, 38261 scaleY: 1 38262 }; 38263 __webpack_exports__.a = function(a, b, c, d, e, f) { 38264 var scaleX, scaleY, skewX; 38265 return (scaleX = Math.sqrt(a * a + b * b)) && (a /= scaleX, b /= scaleX), (skewX = a * c + b * d) && (c -= a * skewX, 38266 d -= b * skewX), (scaleY = Math.sqrt(c * c + d * d)) && (c /= scaleY, d /= scaleY, 38267 skewX /= scaleY), a * d < b * c && (a = -a, b = -b, skewX = -skewX, scaleX = -scaleX), 38268 { 38269 translateX: e, 38270 translateY: f, 38271 rotate: Math.atan2(b, a) * degrees, 38272 skewX: Math.atan(skewX) * degrees, 38273 scaleX: scaleX, 38274 scaleY: scaleY 38275 }; 38276 }; 38277 }, function(module, __webpack_exports__, __webpack_require__) { 38278 "use strict"; 38279 Math.SQRT2; 38280 }, function(module, __webpack_exports__, __webpack_require__) { 38281 "use strict"; 38282 function hsl(hue) { 38283 return function(start, end) { 38284 var h = hue((start = Object(__WEBPACK_IMPORTED_MODULE_0_d3_color__.d)(start)).h, (end = Object(__WEBPACK_IMPORTED_MODULE_0_d3_color__.d)(end)).h), s = Object(__WEBPACK_IMPORTED_MODULE_1__color__.a)(start.s, end.s), l = Object(__WEBPACK_IMPORTED_MODULE_1__color__.a)(start.l, end.l), opacity = Object(__WEBPACK_IMPORTED_MODULE_1__color__.a)(start.opacity, end.opacity); 38285 return function(t) { 38286 return start.h = h(t), start.s = s(t), start.l = l(t), start.opacity = opacity(t), 38287 start + ""; 38288 }; 38289 }; 38290 } 38291 var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(46), __WEBPACK_IMPORTED_MODULE_1__color__ = __webpack_require__(93); 38292 hsl(__WEBPACK_IMPORTED_MODULE_1__color__.c), hsl(__WEBPACK_IMPORTED_MODULE_1__color__.a); 38293 }, function(module, __webpack_exports__, __webpack_require__) { 38294 "use strict"; 38295 __webpack_require__(46), __webpack_require__(93); 38296 }, function(module, __webpack_exports__, __webpack_require__) { 38297 "use strict"; 38298 function hcl(hue) { 38299 return function(start, end) { 38300 var h = hue((start = Object(__WEBPACK_IMPORTED_MODULE_0_d3_color__.c)(start)).h, (end = Object(__WEBPACK_IMPORTED_MODULE_0_d3_color__.c)(end)).h), c = Object(__WEBPACK_IMPORTED_MODULE_1__color__.a)(start.c, end.c), l = Object(__WEBPACK_IMPORTED_MODULE_1__color__.a)(start.l, end.l), opacity = Object(__WEBPACK_IMPORTED_MODULE_1__color__.a)(start.opacity, end.opacity); 38301 return function(t) { 38302 return start.h = h(t), start.c = c(t), start.l = l(t), start.opacity = opacity(t), 38303 start + ""; 38304 }; 38305 }; 38306 } 38307 var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(46), __WEBPACK_IMPORTED_MODULE_1__color__ = __webpack_require__(93); 38308 hcl(__WEBPACK_IMPORTED_MODULE_1__color__.c), hcl(__WEBPACK_IMPORTED_MODULE_1__color__.a); 38309 }, function(module, __webpack_exports__, __webpack_require__) { 38310 "use strict"; 38311 function cubehelix(hue) { 38312 return function cubehelixGamma(y) { 38313 function cubehelix(start, end) { 38314 var h = hue((start = Object(__WEBPACK_IMPORTED_MODULE_0_d3_color__.b)(start)).h, (end = Object(__WEBPACK_IMPORTED_MODULE_0_d3_color__.b)(end)).h), s = Object(__WEBPACK_IMPORTED_MODULE_1__color__.a)(start.s, end.s), l = Object(__WEBPACK_IMPORTED_MODULE_1__color__.a)(start.l, end.l), opacity = Object(__WEBPACK_IMPORTED_MODULE_1__color__.a)(start.opacity, end.opacity); 38315 return function(t) { 38316 return start.h = h(t), start.s = s(t), start.l = l(Math.pow(t, y)), start.opacity = opacity(t), 38317 start + ""; 38318 }; 38319 } 38320 return y = +y, cubehelix.gamma = cubehelixGamma, cubehelix; 38321 }(1); 38322 } 38323 __webpack_require__.d(__webpack_exports__, "a", function() { 38324 return cubehelixLong; 38325 }); 38326 var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(46), __WEBPACK_IMPORTED_MODULE_1__color__ = __webpack_require__(93), cubehelixLong = (cubehelix(__WEBPACK_IMPORTED_MODULE_1__color__.c), 38327 cubehelix(__WEBPACK_IMPORTED_MODULE_1__color__.a)); 38328 }, function(module, __webpack_exports__, __webpack_require__) { 38329 "use strict"; 38330 }, function(module, __webpack_exports__, __webpack_require__) { 38331 "use strict"; 38332 var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(37), __WEBPACK_IMPORTED_MODULE_1_d3_format__ = __webpack_require__(354); 38333 __webpack_exports__.a = function(domain, count, specifier) { 38334 var precision, start = domain[0], stop = domain[domain.length - 1], step = Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__.g)(start, stop, null == count ? 10 : count); 38335 switch (specifier = Object(__WEBPACK_IMPORTED_MODULE_1_d3_format__.c)(null == specifier ? ",f" : specifier), 38336 specifier.type) { 38337 case "s": 38338 var value = Math.max(Math.abs(start), Math.abs(stop)); 38339 return null != specifier.precision || isNaN(precision = Object(__WEBPACK_IMPORTED_MODULE_1_d3_format__.e)(step, value)) || (specifier.precision = precision), 38340 Object(__WEBPACK_IMPORTED_MODULE_1_d3_format__.b)(specifier, value); 38341 38342 case "": 38343 case "e": 38344 case "g": 38345 case "p": 38346 case "r": 38347 null != specifier.precision || isNaN(precision = Object(__WEBPACK_IMPORTED_MODULE_1_d3_format__.f)(step, Math.max(Math.abs(start), Math.abs(stop)))) || (specifier.precision = precision - ("e" === specifier.type)); 38348 break; 38349 38350 case "f": 38351 case "%": 38352 null != specifier.precision || isNaN(precision = Object(__WEBPACK_IMPORTED_MODULE_1_d3_format__.d)(step)) || (specifier.precision = precision - 2 * ("%" === specifier.type)); 38353 } 38354 return Object(__WEBPACK_IMPORTED_MODULE_1_d3_format__.a)(specifier); 38355 }; 38356 }, function(module, __webpack_exports__, __webpack_require__) { 38357 "use strict"; 38358 __webpack_require__.d(__webpack_exports__, "a", function() { 38359 return format; 38360 }), __webpack_require__.d(__webpack_exports__, "b", function() { 38361 return formatPrefix; 38362 }); 38363 var locale, format, formatPrefix, __WEBPACK_IMPORTED_MODULE_0__locale__ = __webpack_require__(355); 38364 !function(definition) { 38365 locale = Object(__WEBPACK_IMPORTED_MODULE_0__locale__.a)(definition), format = locale.format, 38366 formatPrefix = locale.formatPrefix; 38367 }({ 38368 decimal: ".", 38369 thousands: ",", 38370 grouping: [ 3 ], 38371 currency: [ "$", "" ] 38372 }); 38373 }, function(module, __webpack_exports__, __webpack_require__) { 38374 "use strict"; 38375 __webpack_exports__.a = function(grouping, thousands) { 38376 return function(value, width) { 38377 for (var i = value.length, t = [], j = 0, g = grouping[0], length = 0; i > 0 && g > 0 && (length + g + 1 > width && (g = Math.max(1, width - length)), 38378 t.push(value.substring(i -= g, i + g)), !((length += g + 1) > width)); ) g = grouping[j = (j + 1) % grouping.length]; 38379 return t.reverse().join(thousands); 38380 }; 38381 }; 38382 }, function(module, __webpack_exports__, __webpack_require__) { 38383 "use strict"; 38384 __webpack_exports__.a = function(numerals) { 38385 return function(value) { 38386 return value.replace(/[0-9]/g, function(i) { 38387 return numerals[+i]; 38388 }); 38389 }; 38390 }; 38391 }, function(module, __webpack_exports__, __webpack_require__) { 38392 "use strict"; 38393 __webpack_exports__.a = function(x, p) { 38394 x = x.toPrecision(p); 38395 out: for (var i1, n = x.length, i = 1, i0 = -1; i < n; ++i) switch (x[i]) { 38396 case ".": 38397 i0 = i1 = i; 38398 break; 38399 38400 case "0": 38401 0 === i0 && (i0 = i), i1 = i; 38402 break; 38403 38404 case "e": 38405 break out; 38406 38407 default: 38408 i0 > 0 && (i0 = 0); 38409 } 38410 return i0 > 0 ? x.slice(0, i0) + x.slice(i1 + 1) : x; 38411 }; 38412 }, function(module, __webpack_exports__, __webpack_require__) { 38413 "use strict"; 38414 var __WEBPACK_IMPORTED_MODULE_0__formatDecimal__ = __webpack_require__(211); 38415 __webpack_exports__.a = function(x, p) { 38416 var d = Object(__WEBPACK_IMPORTED_MODULE_0__formatDecimal__.a)(x, p); 38417 if (!d) return x + ""; 38418 var coefficient = d[0], exponent = d[1]; 38419 return exponent < 0 ? "0." + new Array(-exponent).join("0") + coefficient : coefficient.length > exponent + 1 ? coefficient.slice(0, exponent + 1) + "." + coefficient.slice(exponent + 1) : coefficient + new Array(exponent - coefficient.length + 2).join("0"); 38420 }; 38421 }, function(module, __webpack_exports__, __webpack_require__) { 38422 "use strict"; 38423 __webpack_exports__.a = function(x) { 38424 return x; 38425 }; 38426 }, function(module, __webpack_exports__, __webpack_require__) { 38427 "use strict"; 38428 var __WEBPACK_IMPORTED_MODULE_0__exponent__ = __webpack_require__(138); 38429 __webpack_exports__.a = function(step) { 38430 return Math.max(0, -Object(__WEBPACK_IMPORTED_MODULE_0__exponent__.a)(Math.abs(step))); 38431 }; 38432 }, function(module, __webpack_exports__, __webpack_require__) { 38433 "use strict"; 38434 var __WEBPACK_IMPORTED_MODULE_0__exponent__ = __webpack_require__(138); 38435 __webpack_exports__.a = function(step, value) { 38436 return Math.max(0, 3 * Math.max(-8, Math.min(8, Math.floor(Object(__WEBPACK_IMPORTED_MODULE_0__exponent__.a)(value) / 3))) - Object(__WEBPACK_IMPORTED_MODULE_0__exponent__.a)(Math.abs(step))); 38437 }; 38438 }, function(module, __webpack_exports__, __webpack_require__) { 38439 "use strict"; 38440 var __WEBPACK_IMPORTED_MODULE_0__exponent__ = __webpack_require__(138); 38441 __webpack_exports__.a = function(step, max) { 38442 return step = Math.abs(step), max = Math.abs(max) - step, Math.max(0, Object(__WEBPACK_IMPORTED_MODULE_0__exponent__.a)(max) - Object(__WEBPACK_IMPORTED_MODULE_0__exponent__.a)(step)) + 1; 38443 }; 38444 }, function(module, __webpack_exports__, __webpack_require__) { 38445 "use strict"; 38446 function deinterpolate(a, b) { 38447 return (b = Math.log(b / a)) ? function(x) { 38448 return Math.log(x / a) / b; 38449 } : Object(__WEBPACK_IMPORTED_MODULE_2__constant__.a)(b); 38450 } 38451 function reinterpolate(a, b) { 38452 return a < 0 ? function(t) { 38453 return -Math.pow(-b, t) * Math.pow(-a, 1 - t); 38454 } : function(t) { 38455 return Math.pow(b, t) * Math.pow(a, 1 - t); 38456 }; 38457 } 38458 function pow10(x) { 38459 return isFinite(x) ? +("1e" + x) : x < 0 ? 0 : x; 38460 } 38461 function powp(base) { 38462 return 10 === base ? pow10 : base === Math.E ? Math.exp : function(x) { 38463 return Math.pow(base, x); 38464 }; 38465 } 38466 function logp(base) { 38467 return base === Math.E ? Math.log : 10 === base && Math.log10 || 2 === base && Math.log2 || (base = Math.log(base), 38468 function(x) { 38469 return Math.log(x) / base; 38470 }); 38471 } 38472 function reflect(f) { 38473 return function(x) { 38474 return -f(-x); 38475 }; 38476 } 38477 function log() { 38478 function rescale() { 38479 return logs = logp(base), pows = powp(base), domain()[0] < 0 && (logs = reflect(logs), 38480 pows = reflect(pows)), scale; 38481 } 38482 var scale = Object(__WEBPACK_IMPORTED_MODULE_4__continuous__.b)(deinterpolate, reinterpolate).domain([ 1, 10 ]), domain = scale.domain, base = 10, logs = logp(10), pows = powp(10); 38483 return scale.base = function(_) { 38484 return arguments.length ? (base = +_, rescale()) : base; 38485 }, scale.domain = function(_) { 38486 return arguments.length ? (domain(_), rescale()) : domain(); 38487 }, scale.ticks = function(count) { 38488 var r, d = domain(), u = d[0], v = d[d.length - 1]; 38489 (r = v < u) && (i = u, u = v, v = i); 38490 var p, k, t, i = logs(u), j = logs(v), n = null == count ? 10 : +count, z = []; 38491 if (!(base % 1) && j - i < n) { 38492 if (i = Math.round(i) - 1, j = Math.round(j) + 1, u > 0) { 38493 for (;i < j; ++i) for (k = 1, p = pows(i); k < base; ++k) if (!((t = p * k) < u)) { 38494 if (t > v) break; 38495 z.push(t); 38496 } 38497 } else for (;i < j; ++i) for (k = base - 1, p = pows(i); k >= 1; --k) if (!((t = p * k) < u)) { 38498 if (t > v) break; 38499 z.push(t); 38500 } 38501 } else z = Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__.h)(i, j, Math.min(j - i, n)).map(pows); 38502 return r ? z.reverse() : z; 38503 }, scale.tickFormat = function(count, specifier) { 38504 if (null == specifier && (specifier = 10 === base ? ".0e" : ","), "function" != typeof specifier && (specifier = Object(__WEBPACK_IMPORTED_MODULE_1_d3_format__.a)(specifier)), 38505 count === 1 / 0) return specifier; 38506 null == count && (count = 10); 38507 var k = Math.max(1, base * count / scale.ticks().length); 38508 return function(d) { 38509 var i = d / pows(Math.round(logs(d))); 38510 return i * base < base - .5 && (i *= base), i <= k ? specifier(d) : ""; 38511 }; 38512 }, scale.nice = function() { 38513 return domain(Object(__WEBPACK_IMPORTED_MODULE_3__nice__.a)(domain(), { 38514 floor: function(x) { 38515 return pows(Math.floor(logs(x))); 38516 }, 38517 ceil: function(x) { 38518 return pows(Math.ceil(logs(x))); 38519 } 38520 })); 38521 }, scale.copy = function() { 38522 return Object(__WEBPACK_IMPORTED_MODULE_4__continuous__.a)(scale, log().base(base)); 38523 }, scale; 38524 } 38525 __webpack_exports__.a = log; 38526 var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(37), __WEBPACK_IMPORTED_MODULE_1_d3_format__ = __webpack_require__(354), __WEBPACK_IMPORTED_MODULE_2__constant__ = __webpack_require__(210), __WEBPACK_IMPORTED_MODULE_3__nice__ = __webpack_require__(359), __WEBPACK_IMPORTED_MODULE_4__continuous__ = __webpack_require__(137); 38527 }, function(module, __webpack_exports__, __webpack_require__) { 38528 "use strict"; 38529 function raise(x, exponent) { 38530 return x < 0 ? -Math.pow(-x, exponent) : Math.pow(x, exponent); 38531 } 38532 function pow() { 38533 function deinterpolate(a, b) { 38534 return (b = raise(b, exponent) - (a = raise(a, exponent))) ? function(x) { 38535 return (raise(x, exponent) - a) / b; 38536 } : Object(__WEBPACK_IMPORTED_MODULE_0__constant__.a)(b); 38537 } 38538 function reinterpolate(a, b) { 38539 return b = raise(b, exponent) - (a = raise(a, exponent)), function(t) { 38540 return raise(a + b * t, 1 / exponent); 38541 }; 38542 } 38543 var exponent = 1, scale = Object(__WEBPACK_IMPORTED_MODULE_2__continuous__.b)(deinterpolate, reinterpolate), domain = scale.domain; 38544 return scale.exponent = function(_) { 38545 return arguments.length ? (exponent = +_, domain(domain())) : exponent; 38546 }, scale.copy = function() { 38547 return Object(__WEBPACK_IMPORTED_MODULE_2__continuous__.a)(scale, pow().exponent(exponent)); 38548 }, Object(__WEBPACK_IMPORTED_MODULE_1__linear__.b)(scale); 38549 } 38550 function sqrt() { 38551 return pow().exponent(.5); 38552 } 38553 __webpack_exports__.a = pow, __webpack_exports__.b = sqrt; 38554 var __WEBPACK_IMPORTED_MODULE_0__constant__ = __webpack_require__(210), __WEBPACK_IMPORTED_MODULE_1__linear__ = __webpack_require__(91), __WEBPACK_IMPORTED_MODULE_2__continuous__ = __webpack_require__(137); 38555 }, function(module, __webpack_exports__, __webpack_require__) { 38556 "use strict"; 38557 function quantile() { 38558 function rescale() { 38559 var i = 0, n = Math.max(1, range.length); 38560 for (thresholds = new Array(n - 1); ++i < n; ) thresholds[i - 1] = Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__.d)(domain, i / n); 38561 return scale; 38562 } 38563 function scale(x) { 38564 if (!isNaN(x = +x)) return range[Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__.b)(thresholds, x)]; 38565 } 38566 var domain = [], range = [], thresholds = []; 38567 return scale.invertExtent = function(y) { 38568 var i = range.indexOf(y); 38569 return i < 0 ? [ NaN, NaN ] : [ i > 0 ? thresholds[i - 1] : domain[0], i < thresholds.length ? thresholds[i] : domain[domain.length - 1] ]; 38570 }, scale.domain = function(_) { 38571 if (!arguments.length) return domain.slice(); 38572 domain = []; 38573 for (var d, i = 0, n = _.length; i < n; ++i) null == (d = _[i]) || isNaN(d = +d) || domain.push(d); 38574 return domain.sort(__WEBPACK_IMPORTED_MODULE_0_d3_array__.a), rescale(); 38575 }, scale.range = function(_) { 38576 return arguments.length ? (range = __WEBPACK_IMPORTED_MODULE_1__array__.b.call(_), 38577 rescale()) : range.slice(); 38578 }, scale.quantiles = function() { 38579 return thresholds.slice(); 38580 }, scale.copy = function() { 38581 return quantile().domain(domain).range(range); 38582 }, scale; 38583 } 38584 __webpack_exports__.a = quantile; 38585 var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(37), __WEBPACK_IMPORTED_MODULE_1__array__ = __webpack_require__(62); 38586 }, function(module, __webpack_exports__, __webpack_require__) { 38587 "use strict"; 38588 function quantize() { 38589 function scale(x) { 38590 if (x <= x) return range[Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__.b)(domain, x, 0, n)]; 38591 } 38592 function rescale() { 38593 var i = -1; 38594 for (domain = new Array(n); ++i < n; ) domain[i] = ((i + 1) * x1 - (i - n) * x0) / (n + 1); 38595 return scale; 38596 } 38597 var x0 = 0, x1 = 1, n = 1, domain = [ .5 ], range = [ 0, 1 ]; 38598 return scale.domain = function(_) { 38599 return arguments.length ? (x0 = +_[0], x1 = +_[1], rescale()) : [ x0, x1 ]; 38600 }, scale.range = function(_) { 38601 return arguments.length ? (n = (range = __WEBPACK_IMPORTED_MODULE_1__array__.b.call(_)).length - 1, 38602 rescale()) : range.slice(); 38603 }, scale.invertExtent = function(y) { 38604 var i = range.indexOf(y); 38605 return i < 0 ? [ NaN, NaN ] : i < 1 ? [ x0, domain[0] ] : i >= n ? [ domain[n - 1], x1 ] : [ domain[i - 1], domain[i] ]; 38606 }, scale.copy = function() { 38607 return quantize().domain([ x0, x1 ]).range(range); 38608 }, Object(__WEBPACK_IMPORTED_MODULE_2__linear__.b)(scale); 38609 } 38610 __webpack_exports__.a = quantize; 38611 var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(37), __WEBPACK_IMPORTED_MODULE_1__array__ = __webpack_require__(62), __WEBPACK_IMPORTED_MODULE_2__linear__ = __webpack_require__(91); 38612 }, function(module, __webpack_exports__, __webpack_require__) { 38613 "use strict"; 38614 function threshold() { 38615 function scale(x) { 38616 if (x <= x) return range[Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__.b)(domain, x, 0, n)]; 38617 } 38618 var domain = [ .5 ], range = [ 0, 1 ], n = 1; 38619 return scale.domain = function(_) { 38620 return arguments.length ? (domain = __WEBPACK_IMPORTED_MODULE_1__array__.b.call(_), 38621 n = Math.min(domain.length, range.length - 1), scale) : domain.slice(); 38622 }, scale.range = function(_) { 38623 return arguments.length ? (range = __WEBPACK_IMPORTED_MODULE_1__array__.b.call(_), 38624 n = Math.min(domain.length, range.length - 1), scale) : range.slice(); 38625 }, scale.invertExtent = function(y) { 38626 var i = range.indexOf(y); 38627 return [ domain[i - 1], domain[i] ]; 38628 }, scale.copy = function() { 38629 return threshold().domain(domain).range(range); 38630 }, scale; 38631 } 38632 __webpack_exports__.a = threshold; 38633 var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(37), __WEBPACK_IMPORTED_MODULE_1__array__ = __webpack_require__(62); 38634 }, function(module, __webpack_exports__, __webpack_require__) { 38635 "use strict"; 38636 var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(18), millisecond = Object(__WEBPACK_IMPORTED_MODULE_0__interval__.a)(function() {}, function(date, step) { 38637 date.setTime(+date + step); 38638 }, function(start, end) { 38639 return end - start; 38640 }); 38641 millisecond.every = function(k) { 38642 return k = Math.floor(k), isFinite(k) && k > 0 ? k > 1 ? Object(__WEBPACK_IMPORTED_MODULE_0__interval__.a)(function(date) { 38643 date.setTime(Math.floor(date / k) * k); 38644 }, function(date, step) { 38645 date.setTime(+date + step * k); 38646 }, function(start, end) { 38647 return (end - start) / k; 38648 }) : millisecond : null; 38649 }, __webpack_exports__.a = millisecond; 38650 millisecond.range; 38651 }, function(module, __webpack_exports__, __webpack_require__) { 38652 "use strict"; 38653 var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(18), __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(38), second = Object(__WEBPACK_IMPORTED_MODULE_0__interval__.a)(function(date) { 38654 date.setTime(Math.floor(date / __WEBPACK_IMPORTED_MODULE_1__duration__.d) * __WEBPACK_IMPORTED_MODULE_1__duration__.d); 38655 }, function(date, step) { 38656 date.setTime(+date + step * __WEBPACK_IMPORTED_MODULE_1__duration__.d); 38657 }, function(start, end) { 38658 return (end - start) / __WEBPACK_IMPORTED_MODULE_1__duration__.d; 38659 }, function(date) { 38660 return date.getUTCSeconds(); 38661 }); 38662 __webpack_exports__.a = second; 38663 second.range; 38664 }, function(module, __webpack_exports__, __webpack_require__) { 38665 "use strict"; 38666 var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(18), __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(38), minute = Object(__WEBPACK_IMPORTED_MODULE_0__interval__.a)(function(date) { 38667 date.setTime(Math.floor(date / __WEBPACK_IMPORTED_MODULE_1__duration__.c) * __WEBPACK_IMPORTED_MODULE_1__duration__.c); 38668 }, function(date, step) { 38669 date.setTime(+date + step * __WEBPACK_IMPORTED_MODULE_1__duration__.c); 38670 }, function(start, end) { 38671 return (end - start) / __WEBPACK_IMPORTED_MODULE_1__duration__.c; 38672 }, function(date) { 38673 return date.getMinutes(); 38674 }); 38675 __webpack_exports__.a = minute; 38676 minute.range; 38677 }, function(module, __webpack_exports__, __webpack_require__) { 38678 "use strict"; 38679 var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(18), __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(38), hour = Object(__WEBPACK_IMPORTED_MODULE_0__interval__.a)(function(date) { 38680 var offset = date.getTimezoneOffset() * __WEBPACK_IMPORTED_MODULE_1__duration__.c % __WEBPACK_IMPORTED_MODULE_1__duration__.b; 38681 offset < 0 && (offset += __WEBPACK_IMPORTED_MODULE_1__duration__.b), date.setTime(Math.floor((+date - offset) / __WEBPACK_IMPORTED_MODULE_1__duration__.b) * __WEBPACK_IMPORTED_MODULE_1__duration__.b + offset); 38682 }, function(date, step) { 38683 date.setTime(+date + step * __WEBPACK_IMPORTED_MODULE_1__duration__.b); 38684 }, function(start, end) { 38685 return (end - start) / __WEBPACK_IMPORTED_MODULE_1__duration__.b; 38686 }, function(date) { 38687 return date.getHours(); 38688 }); 38689 __webpack_exports__.a = hour; 38690 hour.range; 38691 }, function(module, __webpack_exports__, __webpack_require__) { 38692 "use strict"; 38693 var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(18), __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(38), day = Object(__WEBPACK_IMPORTED_MODULE_0__interval__.a)(function(date) { 38694 date.setHours(0, 0, 0, 0); 38695 }, function(date, step) { 38696 date.setDate(date.getDate() + step); 38697 }, function(start, end) { 38698 return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * __WEBPACK_IMPORTED_MODULE_1__duration__.c) / __WEBPACK_IMPORTED_MODULE_1__duration__.a; 38699 }, function(date) { 38700 return date.getDate() - 1; 38701 }); 38702 __webpack_exports__.a = day; 38703 day.range; 38704 }, function(module, __webpack_exports__, __webpack_require__) { 38705 "use strict"; 38706 function weekday(i) { 38707 return Object(__WEBPACK_IMPORTED_MODULE_0__interval__.a)(function(date) { 38708 date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7), date.setHours(0, 0, 0, 0); 38709 }, function(date, step) { 38710 date.setDate(date.getDate() + 7 * step); 38711 }, function(start, end) { 38712 return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * __WEBPACK_IMPORTED_MODULE_1__duration__.c) / __WEBPACK_IMPORTED_MODULE_1__duration__.e; 38713 }); 38714 } 38715 __webpack_require__.d(__webpack_exports__, "b", function() { 38716 return sunday; 38717 }), __webpack_require__.d(__webpack_exports__, "a", function() { 38718 return monday; 38719 }), __webpack_require__.d(__webpack_exports__, "c", function() { 38720 return thursday; 38721 }); 38722 var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(18), __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(38), sunday = weekday(0), monday = weekday(1), tuesday = weekday(2), wednesday = weekday(3), thursday = weekday(4), friday = weekday(5), saturday = weekday(6); 38723 sunday.range, monday.range, tuesday.range, wednesday.range, thursday.range, friday.range, 38724 saturday.range; 38725 }, function(module, __webpack_exports__, __webpack_require__) { 38726 "use strict"; 38727 var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(18), month = Object(__WEBPACK_IMPORTED_MODULE_0__interval__.a)(function(date) { 38728 date.setDate(1), date.setHours(0, 0, 0, 0); 38729 }, function(date, step) { 38730 date.setMonth(date.getMonth() + step); 38731 }, function(start, end) { 38732 return end.getMonth() - start.getMonth() + 12 * (end.getFullYear() - start.getFullYear()); 38733 }, function(date) { 38734 return date.getMonth(); 38735 }); 38736 __webpack_exports__.a = month; 38737 month.range; 38738 }, function(module, __webpack_exports__, __webpack_require__) { 38739 "use strict"; 38740 var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(18), year = Object(__WEBPACK_IMPORTED_MODULE_0__interval__.a)(function(date) { 38741 date.setMonth(0, 1), date.setHours(0, 0, 0, 0); 38742 }, function(date, step) { 38743 date.setFullYear(date.getFullYear() + step); 38744 }, function(start, end) { 38745 return end.getFullYear() - start.getFullYear(); 38746 }, function(date) { 38747 return date.getFullYear(); 38748 }); 38749 year.every = function(k) { 38750 return isFinite(k = Math.floor(k)) && k > 0 ? Object(__WEBPACK_IMPORTED_MODULE_0__interval__.a)(function(date) { 38751 date.setFullYear(Math.floor(date.getFullYear() / k) * k), date.setMonth(0, 1), date.setHours(0, 0, 0, 0); 38752 }, function(date, step) { 38753 date.setFullYear(date.getFullYear() + step * k); 38754 }) : null; 38755 }, __webpack_exports__.a = year; 38756 year.range; 38757 }, function(module, __webpack_exports__, __webpack_require__) { 38758 "use strict"; 38759 var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(18), __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(38), utcMinute = Object(__WEBPACK_IMPORTED_MODULE_0__interval__.a)(function(date) { 38760 date.setUTCSeconds(0, 0); 38761 }, function(date, step) { 38762 date.setTime(+date + step * __WEBPACK_IMPORTED_MODULE_1__duration__.c); 38763 }, function(start, end) { 38764 return (end - start) / __WEBPACK_IMPORTED_MODULE_1__duration__.c; 38765 }, function(date) { 38766 return date.getUTCMinutes(); 38767 }); 38768 __webpack_exports__.a = utcMinute; 38769 utcMinute.range; 38770 }, function(module, __webpack_exports__, __webpack_require__) { 38771 "use strict"; 38772 var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(18), __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(38), utcHour = Object(__WEBPACK_IMPORTED_MODULE_0__interval__.a)(function(date) { 38773 date.setUTCMinutes(0, 0, 0); 38774 }, function(date, step) { 38775 date.setTime(+date + step * __WEBPACK_IMPORTED_MODULE_1__duration__.b); 38776 }, function(start, end) { 38777 return (end - start) / __WEBPACK_IMPORTED_MODULE_1__duration__.b; 38778 }, function(date) { 38779 return date.getUTCHours(); 38780 }); 38781 __webpack_exports__.a = utcHour; 38782 utcHour.range; 38783 }, function(module, __webpack_exports__, __webpack_require__) { 38784 "use strict"; 38785 var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(18), __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(38), utcDay = Object(__WEBPACK_IMPORTED_MODULE_0__interval__.a)(function(date) { 38786 date.setUTCHours(0, 0, 0, 0); 38787 }, function(date, step) { 38788 date.setUTCDate(date.getUTCDate() + step); 38789 }, function(start, end) { 38790 return (end - start) / __WEBPACK_IMPORTED_MODULE_1__duration__.a; 38791 }, function(date) { 38792 return date.getUTCDate() - 1; 38793 }); 38794 __webpack_exports__.a = utcDay; 38795 utcDay.range; 38796 }, function(module, __webpack_exports__, __webpack_require__) { 38797 "use strict"; 38798 function utcWeekday(i) { 38799 return Object(__WEBPACK_IMPORTED_MODULE_0__interval__.a)(function(date) { 38800 date.setUTCDate(date.getUTCDate() - (date.getUTCDay() + 7 - i) % 7), date.setUTCHours(0, 0, 0, 0); 38801 }, function(date, step) { 38802 date.setUTCDate(date.getUTCDate() + 7 * step); 38803 }, function(start, end) { 38804 return (end - start) / __WEBPACK_IMPORTED_MODULE_1__duration__.e; 38805 }); 38806 } 38807 __webpack_require__.d(__webpack_exports__, "b", function() { 38808 return utcSunday; 38809 }), __webpack_require__.d(__webpack_exports__, "a", function() { 38810 return utcMonday; 38811 }), __webpack_require__.d(__webpack_exports__, "c", function() { 38812 return utcThursday; 38813 }); 38814 var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(18), __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(38), utcSunday = utcWeekday(0), utcMonday = utcWeekday(1), utcTuesday = utcWeekday(2), utcWednesday = utcWeekday(3), utcThursday = utcWeekday(4), utcFriday = utcWeekday(5), utcSaturday = utcWeekday(6); 38815 utcSunday.range, utcMonday.range, utcTuesday.range, utcWednesday.range, utcThursday.range, 38816 utcFriday.range, utcSaturday.range; 38817 }, function(module, __webpack_exports__, __webpack_require__) { 38818 "use strict"; 38819 var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(18), utcMonth = Object(__WEBPACK_IMPORTED_MODULE_0__interval__.a)(function(date) { 38820 date.setUTCDate(1), date.setUTCHours(0, 0, 0, 0); 38821 }, function(date, step) { 38822 date.setUTCMonth(date.getUTCMonth() + step); 38823 }, function(start, end) { 38824 return end.getUTCMonth() - start.getUTCMonth() + 12 * (end.getUTCFullYear() - start.getUTCFullYear()); 38825 }, function(date) { 38826 return date.getUTCMonth(); 38827 }); 38828 __webpack_exports__.a = utcMonth; 38829 utcMonth.range; 38830 }, function(module, __webpack_exports__, __webpack_require__) { 38831 "use strict"; 38832 var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(18), utcYear = Object(__WEBPACK_IMPORTED_MODULE_0__interval__.a)(function(date) { 38833 date.setUTCMonth(0, 1), date.setUTCHours(0, 0, 0, 0); 38834 }, function(date, step) { 38835 date.setUTCFullYear(date.getUTCFullYear() + step); 38836 }, function(start, end) { 38837 return end.getUTCFullYear() - start.getUTCFullYear(); 38838 }, function(date) { 38839 return date.getUTCFullYear(); 38840 }); 38841 utcYear.every = function(k) { 38842 return isFinite(k = Math.floor(k)) && k > 0 ? Object(__WEBPACK_IMPORTED_MODULE_0__interval__.a)(function(date) { 38843 date.setUTCFullYear(Math.floor(date.getUTCFullYear() / k) * k), date.setUTCMonth(0, 1), 38844 date.setUTCHours(0, 0, 0, 0); 38845 }, function(date, step) { 38846 date.setUTCFullYear(date.getUTCFullYear() + step * k); 38847 }) : null; 38848 }, __webpack_exports__.a = utcYear; 38849 utcYear.range; 38850 }, function(module, __webpack_exports__, __webpack_require__) { 38851 "use strict"; 38852 function parseIsoNative(string) { 38853 var date = new Date(string); 38854 return isNaN(date) ? null : date; 38855 } 38856 var __WEBPACK_IMPORTED_MODULE_0__isoFormat__ = __webpack_require__(363), __WEBPACK_IMPORTED_MODULE_1__defaultLocale__ = __webpack_require__(213); 38857 +new Date("2000-01-01T00:00:00.000Z") || Object(__WEBPACK_IMPORTED_MODULE_1__defaultLocale__.c)(__WEBPACK_IMPORTED_MODULE_0__isoFormat__.a); 38858 }, function(module, __webpack_exports__, __webpack_require__) { 38859 "use strict"; 38860 var __WEBPACK_IMPORTED_MODULE_0__time__ = __webpack_require__(360), __WEBPACK_IMPORTED_MODULE_1_d3_time_format__ = __webpack_require__(361), __WEBPACK_IMPORTED_MODULE_2_d3_time__ = __webpack_require__(212); 38861 __webpack_exports__.a = function() { 38862 return Object(__WEBPACK_IMPORTED_MODULE_0__time__.a)(__WEBPACK_IMPORTED_MODULE_2_d3_time__.v, __WEBPACK_IMPORTED_MODULE_2_d3_time__.q, __WEBPACK_IMPORTED_MODULE_2_d3_time__.u, __WEBPACK_IMPORTED_MODULE_2_d3_time__.l, __WEBPACK_IMPORTED_MODULE_2_d3_time__.m, __WEBPACK_IMPORTED_MODULE_2_d3_time__.o, __WEBPACK_IMPORTED_MODULE_2_d3_time__.r, __WEBPACK_IMPORTED_MODULE_2_d3_time__.n, __WEBPACK_IMPORTED_MODULE_1_d3_time_format__.b).domain([ Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2) ]); 38863 }; 38864 }, function(module, __webpack_exports__, __webpack_require__) { 38865 "use strict"; 38866 var __WEBPACK_IMPORTED_MODULE_0__colors__ = __webpack_require__(94); 38867 __webpack_exports__.a = Object(__WEBPACK_IMPORTED_MODULE_0__colors__.a)("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"); 38868 }, function(module, __webpack_exports__, __webpack_require__) { 38869 "use strict"; 38870 var __WEBPACK_IMPORTED_MODULE_0__colors__ = __webpack_require__(94); 38871 __webpack_exports__.a = Object(__WEBPACK_IMPORTED_MODULE_0__colors__.a)("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"); 38872 }, function(module, __webpack_exports__, __webpack_require__) { 38873 "use strict"; 38874 var __WEBPACK_IMPORTED_MODULE_0__colors__ = __webpack_require__(94); 38875 __webpack_exports__.a = Object(__WEBPACK_IMPORTED_MODULE_0__colors__.a)("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"); 38876 }, function(module, __webpack_exports__, __webpack_require__) { 38877 "use strict"; 38878 var __WEBPACK_IMPORTED_MODULE_0__colors__ = __webpack_require__(94); 38879 __webpack_exports__.a = Object(__WEBPACK_IMPORTED_MODULE_0__colors__.a)("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"); 38880 }, function(module, __webpack_exports__, __webpack_require__) { 38881 "use strict"; 38882 var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(46), __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__ = __webpack_require__(92); 38883 __webpack_exports__.a = Object(__WEBPACK_IMPORTED_MODULE_1_d3_interpolate__.b)(Object(__WEBPACK_IMPORTED_MODULE_0_d3_color__.b)(300, .5, 0), Object(__WEBPACK_IMPORTED_MODULE_0_d3_color__.b)(-240, .5, 1)); 38884 }, function(module, __webpack_exports__, __webpack_require__) { 38885 "use strict"; 38886 __webpack_require__.d(__webpack_exports__, "c", function() { 38887 return warm; 38888 }), __webpack_require__.d(__webpack_exports__, "a", function() { 38889 return cool; 38890 }); 38891 var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(46), __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__ = __webpack_require__(92), warm = Object(__WEBPACK_IMPORTED_MODULE_1_d3_interpolate__.b)(Object(__WEBPACK_IMPORTED_MODULE_0_d3_color__.b)(-100, .75, .35), Object(__WEBPACK_IMPORTED_MODULE_0_d3_color__.b)(80, 1.5, .8)), cool = Object(__WEBPACK_IMPORTED_MODULE_1_d3_interpolate__.b)(Object(__WEBPACK_IMPORTED_MODULE_0_d3_color__.b)(260, .75, .35), Object(__WEBPACK_IMPORTED_MODULE_0_d3_color__.b)(80, 1.5, .8)), rainbow = Object(__WEBPACK_IMPORTED_MODULE_0_d3_color__.b)(); 38892 __webpack_exports__.b = function(t) { 38893 (t < 0 || t > 1) && (t -= Math.floor(t)); 38894 var ts = Math.abs(t - .5); 38895 return rainbow.h = 360 * t - 100, rainbow.s = 1.5 - 1.5 * ts, rainbow.l = .8 - .9 * ts, 38896 rainbow + ""; 38897 }; 38898 }, function(module, __webpack_exports__, __webpack_require__) { 38899 "use strict"; 38900 function ramp(range) { 38901 var n = range.length; 38902 return function(t) { 38903 return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))]; 38904 }; 38905 } 38906 __webpack_require__.d(__webpack_exports__, "c", function() { 38907 return magma; 38908 }), __webpack_require__.d(__webpack_exports__, "b", function() { 38909 return inferno; 38910 }), __webpack_require__.d(__webpack_exports__, "d", function() { 38911 return plasma; 38912 }); 38913 var __WEBPACK_IMPORTED_MODULE_0__colors__ = __webpack_require__(94); 38914 __webpack_exports__.a = ramp(Object(__WEBPACK_IMPORTED_MODULE_0__colors__.a)("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")); 38915 var magma = ramp(Object(__WEBPACK_IMPORTED_MODULE_0__colors__.a)("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")), inferno = ramp(Object(__WEBPACK_IMPORTED_MODULE_0__colors__.a)("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")), plasma = ramp(Object(__WEBPACK_IMPORTED_MODULE_0__colors__.a)("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")); 38916 }, function(module, __webpack_exports__, __webpack_require__) { 38917 "use strict"; 38918 function sequential(interpolator) { 38919 function scale(x) { 38920 var t = (x - x0) / (x1 - x0); 38921 return interpolator(clamp ? Math.max(0, Math.min(1, t)) : t); 38922 } 38923 var x0 = 0, x1 = 1, clamp = !1; 38924 return scale.domain = function(_) { 38925 return arguments.length ? (x0 = +_[0], x1 = +_[1], scale) : [ x0, x1 ]; 38926 }, scale.clamp = function(_) { 38927 return arguments.length ? (clamp = !!_, scale) : clamp; 38928 }, scale.interpolator = function(_) { 38929 return arguments.length ? (interpolator = _, scale) : interpolator; 38930 }, scale.copy = function() { 38931 return sequential(interpolator).domain([ x0, x1 ]).clamp(clamp); 38932 }, Object(__WEBPACK_IMPORTED_MODULE_0__linear__.b)(scale); 38933 } 38934 __webpack_exports__.a = sequential; 38935 var __WEBPACK_IMPORTED_MODULE_0__linear__ = __webpack_require__(91); 38936 }, function(module, exports) { 38937 function last(array) { 38938 var length = null == array ? 0 : array.length; 38939 return length ? array[length - 1] : void 0; 38940 } 38941 module.exports = last; 38942 }, function(module, __webpack_exports__, __webpack_require__) { 38943 "use strict"; 38944 function _classCallCheck(instance, Constructor) { 38945 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 38946 } 38947 function _possibleConstructorReturn(self, call) { 38948 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 38949 return !call || "object" != typeof call && "function" != typeof call ? self : call; 38950 } 38951 function _inherits(subClass, superClass) { 38952 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 38953 subClass.prototype = Object.create(superClass && superClass.prototype, { 38954 constructor: { 38955 value: subClass, 38956 enumerable: !1, 38957 writable: !0, 38958 configurable: !0 38959 } 38960 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 38961 } 38962 var _class, _class2, _temp, __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__), __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__), __WEBPACK_IMPORTED_MODULE_2__util_PureRender__ = __webpack_require__(5), __WEBPACK_IMPORTED_MODULE_3__util_PolarUtils__ = __webpack_require__(23), __WEBPACK_IMPORTED_MODULE_4__util_ReactUtils__ = __webpack_require__(4), _extends = Object.assign || function(target) { 38963 for (var i = 1; i < arguments.length; i++) { 38964 var source = arguments[i]; 38965 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 38966 } 38967 return target; 38968 }, _createClass = function() { 38969 function defineProperties(target, props) { 38970 for (var i = 0; i < props.length; i++) { 38971 var descriptor = props[i]; 38972 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 38973 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 38974 } 38975 } 38976 return function(Constructor, protoProps, staticProps) { 38977 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 38978 Constructor; 38979 }; 38980 }(), PolarGrid = Object(__WEBPACK_IMPORTED_MODULE_2__util_PureRender__.a)((_temp = _class2 = function(_Component) { 38981 function PolarGrid() { 38982 return _classCallCheck(this, PolarGrid), _possibleConstructorReturn(this, (PolarGrid.__proto__ || Object.getPrototypeOf(PolarGrid)).apply(this, arguments)); 38983 } 38984 return _inherits(PolarGrid, _Component), _createClass(PolarGrid, [ { 38985 key: "getPolygonPath", 38986 value: function(radius) { 38987 var _props = this.props, cx = _props.cx, cy = _props.cy, polarAngles = _props.polarAngles, path = ""; 38988 return polarAngles.forEach(function(angle, i) { 38989 var point = Object(__WEBPACK_IMPORTED_MODULE_3__util_PolarUtils__.e)(cx, cy, radius, angle); 38990 path += i ? "L " + point.x + "," + point.y : "M " + point.x + "," + point.y; 38991 }), path += "Z"; 38992 } 38993 }, { 38994 key: "renderPolarAngles", 38995 value: function() { 38996 var _props2 = this.props, cx = _props2.cx, cy = _props2.cy, innerRadius = _props2.innerRadius, outerRadius = _props2.outerRadius, polarAngles = _props2.polarAngles; 38997 if (!polarAngles || !polarAngles.length) return null; 38998 var props = _extends({ 38999 stroke: "#ccc" 39000 }, Object(__WEBPACK_IMPORTED_MODULE_4__util_ReactUtils__.k)(this.props)); 39001 return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("g", { 39002 className: "recharts-polar-grid-angle" 39003 }, polarAngles.map(function(entry, i) { 39004 var start = Object(__WEBPACK_IMPORTED_MODULE_3__util_PolarUtils__.e)(cx, cy, innerRadius, entry), end = Object(__WEBPACK_IMPORTED_MODULE_3__util_PolarUtils__.e)(cx, cy, outerRadius, entry); 39005 return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("line", _extends({}, props, { 39006 key: "line-" + i, 39007 x1: start.x, 39008 y1: start.y, 39009 x2: end.x, 39010 y2: end.y 39011 })); 39012 })); 39013 } 39014 }, { 39015 key: "renderConcentricCircle", 39016 value: function(radius, index, extraProps) { 39017 var _props3 = this.props, cx = _props3.cx, cy = _props3.cy, props = _extends({ 39018 stroke: "#ccc" 39019 }, Object(__WEBPACK_IMPORTED_MODULE_4__util_ReactUtils__.k)(this.props), { 39020 fill: "none" 39021 }, extraProps); 39022 return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("circle", _extends({}, props, { 39023 className: "recharts-polar-grid-concentric-circle", 39024 key: "circle-" + index, 39025 cx: cx, 39026 cy: cy, 39027 r: radius 39028 })); 39029 } 39030 }, { 39031 key: "renderConcentricPolygon", 39032 value: function(radius, index, extraProps) { 39033 var props = _extends({ 39034 stroke: "#ccc" 39035 }, Object(__WEBPACK_IMPORTED_MODULE_4__util_ReactUtils__.k)(this.props), { 39036 fill: "none" 39037 }, extraProps); 39038 return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("path", _extends({}, props, { 39039 className: "recharts-polar-grid-concentric-polygon", 39040 key: "path-" + index, 39041 d: this.getPolygonPath(radius) 39042 })); 39043 } 39044 }, { 39045 key: "renderConcentricPath", 39046 value: function() { 39047 var _this2 = this, _props4 = this.props, polarRadius = _props4.polarRadius, gridType = _props4.gridType; 39048 return polarRadius && polarRadius.length ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("g", { 39049 className: "recharts-polar-grid-concentric" 39050 }, polarRadius.map(function(entry, i) { 39051 return "circle" === gridType ? _this2.renderConcentricCircle(entry, i) : _this2.renderConcentricPolygon(entry, i); 39052 })) : null; 39053 } 39054 }, { 39055 key: "render", 39056 value: function() { 39057 return this.props.outerRadius <= 0 ? null : __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("g", { 39058 className: "recharts-polar-grid" 39059 }, this.renderPolarAngles(), this.renderConcentricPath()); 39060 } 39061 } ]), PolarGrid; 39062 }(__WEBPACK_IMPORTED_MODULE_0_react__.Component), _class2.displayName = "PolarGrid", 39063 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_4__util_ReactUtils__.c, { 39064 cx: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 39065 cy: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 39066 innerRadius: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 39067 outerRadius: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 39068 polarAngles: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number), 39069 polarRadius: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number), 39070 gridType: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf([ "polygon", "circle" ]) 39071 }), _class2.defaultProps = { 39072 cx: 0, 39073 cy: 0, 39074 innerRadius: 0, 39075 outerRadius: 0, 39076 gridType: "polygon" 39077 }, _class = _temp)) || _class; 39078 __webpack_exports__.a = PolarGrid; 39079 }, function(module, exports, __webpack_require__) { 39080 function minBy(array, iteratee) { 39081 return array && array.length ? baseExtremum(array, baseIteratee(iteratee, 2), baseLt) : void 0; 39082 } 39083 var baseExtremum = __webpack_require__(135), baseIteratee = __webpack_require__(89), baseLt = __webpack_require__(329); 39084 module.exports = minBy; 39085 }, function(module, exports, __webpack_require__) { 39086 function isPlainObject(value) { 39087 if (!isObjectLike(value) || baseGetTag(value) != objectTag) return !1; 39088 var proto = getPrototype(value); 39089 if (null === proto) return !0; 39090 var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor; 39091 return "function" == typeof Ctor && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString; 39092 } 39093 var baseGetTag = __webpack_require__(41), getPrototype = __webpack_require__(926), isObjectLike = __webpack_require__(42), objectTag = "[object Object]", funcProto = Function.prototype, objectProto = Object.prototype, funcToString = funcProto.toString, hasOwnProperty = objectProto.hasOwnProperty, objectCtorString = funcToString.call(Object); 39094 module.exports = isPlainObject; 39095 }, function(module, exports, __webpack_require__) { 39096 var overArg = __webpack_require__(320), getPrototype = overArg(Object.getPrototypeOf, Object); 39097 module.exports = getPrototype; 39098 }, function(module, exports, __webpack_require__) { 39099 function createRange(fromRight) { 39100 return function(start, end, step) { 39101 return step && "number" != typeof step && isIterateeCall(start, end, step) && (end = step = void 0), 39102 start = toFinite(start), void 0 === end ? (end = start, start = 0) : end = toFinite(end), 39103 step = void 0 === step ? start < end ? 1 : -1 : toFinite(step), baseRange(start, end, step, fromRight); 39104 }; 39105 } 39106 var baseRange = __webpack_require__(928), isIterateeCall = __webpack_require__(326), toFinite = __webpack_require__(929); 39107 module.exports = createRange; 39108 }, function(module, exports) { 39109 function baseRange(start, end, step, fromRight) { 39110 for (var index = -1, length = nativeMax(nativeCeil((end - start) / (step || 1)), 0), result = Array(length); length--; ) result[fromRight ? length : ++index] = start, 39111 start += step; 39112 return result; 39113 } 39114 var nativeCeil = Math.ceil, nativeMax = Math.max; 39115 module.exports = baseRange; 39116 }, function(module, exports, __webpack_require__) { 39117 function toFinite(value) { 39118 if (!value) return 0 === value ? value : 0; 39119 if ((value = toNumber(value)) === INFINITY || value === -INFINITY) { 39120 return (value < 0 ? -1 : 1) * MAX_INTEGER; 39121 } 39122 return value === value ? value : 0; 39123 } 39124 var toNumber = __webpack_require__(311), INFINITY = 1 / 0, MAX_INTEGER = 1.7976931348623157e308; 39125 module.exports = toFinite; 39126 }, function(module, __webpack_exports__, __webpack_require__) { 39127 "use strict"; 39128 function _defineProperty(obj, key, value) { 39129 return key in obj ? Object.defineProperty(obj, key, { 39130 value: value, 39131 enumerable: !0, 39132 configurable: !0, 39133 writable: !0 39134 }) : obj[key] = value, obj; 39135 } 39136 __webpack_require__.d(__webpack_exports__, "a", function() { 39137 return generatePrefixStyle; 39138 }); 39139 var _extends = Object.assign || function(target) { 39140 for (var i = 1; i < arguments.length; i++) { 39141 var source = arguments[i]; 39142 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 39143 } 39144 return target; 39145 }, PREFIX_LIST = [ "Webkit", "Moz", "O", "ms" ], generatePrefixStyle = function(name, value) { 39146 if (!name) return null; 39147 var camelName = name.replace(/(\w)/, function(v) { 39148 return v.toUpperCase(); 39149 }), result = PREFIX_LIST.reduce(function(res, entry) { 39150 return _extends({}, res, _defineProperty({}, entry + camelName, value)); 39151 }, {}); 39152 return result[name] = value, result; 39153 }; 39154 }, function(module, __webpack_exports__, __webpack_require__) { 39155 "use strict"; 39156 function _objectWithoutProperties(obj, keys) { 39157 var target = {}; 39158 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 39159 return target; 39160 } 39161 function _classCallCheck(instance, Constructor) { 39162 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 39163 } 39164 function _possibleConstructorReturn(self, call) { 39165 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 39166 return !call || "object" != typeof call && "function" != typeof call ? self : call; 39167 } 39168 function _inherits(subClass, superClass) { 39169 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 39170 subClass.prototype = Object.create(superClass && superClass.prototype, { 39171 constructor: { 39172 value: subClass, 39173 enumerable: !1, 39174 writable: !0, 39175 configurable: !0 39176 } 39177 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 39178 } 39179 var _class, _class2, _temp, __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction__ = __webpack_require__(8), __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isFunction__), __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__), __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__), __WEBPACK_IMPORTED_MODULE_3__util_PureRender__ = __webpack_require__(5), __WEBPACK_IMPORTED_MODULE_4__util_ReactUtils__ = __webpack_require__(4), __WEBPACK_IMPORTED_MODULE_5__util_DataUtils__ = __webpack_require__(9), _extends = Object.assign || function(target) { 39180 for (var i = 1; i < arguments.length; i++) { 39181 var source = arguments[i]; 39182 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 39183 } 39184 return target; 39185 }, _createClass = function() { 39186 function defineProperties(target, props) { 39187 for (var i = 0; i < props.length; i++) { 39188 var descriptor = props[i]; 39189 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 39190 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 39191 } 39192 } 39193 return function(Constructor, protoProps, staticProps) { 39194 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 39195 Constructor; 39196 }; 39197 }(), CartesianGrid = Object(__WEBPACK_IMPORTED_MODULE_3__util_PureRender__.a)((_temp = _class2 = function(_Component) { 39198 function CartesianGrid() { 39199 return _classCallCheck(this, CartesianGrid), _possibleConstructorReturn(this, (CartesianGrid.__proto__ || Object.getPrototypeOf(CartesianGrid)).apply(this, arguments)); 39200 } 39201 return _inherits(CartesianGrid, _Component), _createClass(CartesianGrid, [ { 39202 key: "renderLineItem", 39203 value: function(option, props) { 39204 var lineItem = void 0; 39205 if (__WEBPACK_IMPORTED_MODULE_1_react___default.a.isValidElement(option)) lineItem = __WEBPACK_IMPORTED_MODULE_1_react___default.a.cloneElement(option, props); else if (__WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default()(option)) lineItem = option(props); else { 39206 var x1 = props.x1, y1 = props.y1, x2 = props.x2, y2 = props.y2, key = props.key, others = _objectWithoutProperties(props, [ "x1", "y1", "x2", "y2", "key" ]); 39207 lineItem = __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("line", _extends({}, Object(__WEBPACK_IMPORTED_MODULE_4__util_ReactUtils__.k)(others), { 39208 x1: x1, 39209 y1: y1, 39210 x2: x2, 39211 y2: y2, 39212 fill: "none", 39213 key: key 39214 })); 39215 } 39216 return lineItem; 39217 } 39218 }, { 39219 key: "renderHorizontal", 39220 value: function(horizontalPoints) { 39221 var _this2 = this, _props = this.props, x = _props.x, width = _props.width, horizontal = _props.horizontal; 39222 if (!horizontalPoints || !horizontalPoints.length) return null; 39223 var items = horizontalPoints.map(function(entry, i) { 39224 var props = _extends({}, _this2.props, { 39225 x1: x, 39226 y1: entry, 39227 x2: x + width, 39228 y2: entry, 39229 key: "line-" + i, 39230 index: i 39231 }); 39232 return _this2.renderLineItem(horizontal, props); 39233 }); 39234 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("g", { 39235 className: "recharts-cartesian-grid-horizontal" 39236 }, items); 39237 } 39238 }, { 39239 key: "renderVertical", 39240 value: function(verticalPoints) { 39241 var _this3 = this, _props2 = this.props, y = _props2.y, height = _props2.height, vertical = _props2.vertical; 39242 if (!verticalPoints || !verticalPoints.length) return null; 39243 var items = verticalPoints.map(function(entry, i) { 39244 var props = _extends({}, _this3.props, { 39245 x1: entry, 39246 y1: y, 39247 x2: entry, 39248 y2: y + height, 39249 key: "line-" + i, 39250 index: i 39251 }); 39252 return _this3.renderLineItem(vertical, props); 39253 }); 39254 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("g", { 39255 className: "recharts-cartesian-grid-vertical" 39256 }, items); 39257 } 39258 }, { 39259 key: "renderVerticalStripes", 39260 value: function(verticalPoints) { 39261 var verticalFill = this.props.verticalFill; 39262 if (!verticalFill || !verticalFill.length) return null; 39263 var _props3 = this.props, fillOpacity = _props3.fillOpacity, x = _props3.x, y = _props3.y, width = _props3.width, height = _props3.height, verticalPointsUpdated = verticalPoints.slice().sort(function(a, b) { 39264 return a - b > 0; 39265 }); 39266 x !== verticalPointsUpdated[0] && verticalPointsUpdated.unshift(0); 39267 var items = verticalPointsUpdated.map(function(entry, i) { 39268 var lineWidth = verticalPointsUpdated[i + 1] ? verticalPointsUpdated[i + 1] - entry : x + width - entry; 39269 if (lineWidth <= 0) return null; 39270 var colorIndex = i % verticalFill.length; 39271 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("rect", { 39272 key: i, 39273 x: Math.round(entry + x - x), 39274 y: y, 39275 width: lineWidth, 39276 height: height, 39277 stroke: "none", 39278 fill: verticalFill[colorIndex], 39279 fillOpacity: fillOpacity, 39280 className: "recharts-cartesian-grid-bg" 39281 }); 39282 }); 39283 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("g", { 39284 className: "recharts-cartesian-gridstripes-vertical" 39285 }, items); 39286 } 39287 }, { 39288 key: "renderHorizontalStripes", 39289 value: function(horizontalPoints) { 39290 var horizontalFill = this.props.horizontalFill; 39291 if (!horizontalFill || !horizontalFill.length) return null; 39292 var _props4 = this.props, fillOpacity = _props4.fillOpacity, x = _props4.x, y = _props4.y, width = _props4.width, height = _props4.height, horizontalPointsUpdated = horizontalPoints.slice().sort(function(a, b) { 39293 return a - b > 0; 39294 }); 39295 y !== horizontalPointsUpdated[0] && horizontalPointsUpdated.unshift(0); 39296 var items = horizontalPointsUpdated.map(function(entry, i) { 39297 var lineHeight = horizontalPointsUpdated[i + 1] ? horizontalPointsUpdated[i + 1] - entry : y + height - entry; 39298 if (lineHeight <= 0) return null; 39299 var colorIndex = i % horizontalFill.length; 39300 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("rect", { 39301 key: i, 39302 y: Math.round(entry + y - y), 39303 x: x, 39304 height: lineHeight, 39305 width: width, 39306 stroke: "none", 39307 fill: horizontalFill[colorIndex], 39308 fillOpacity: fillOpacity, 39309 className: "recharts-cartesian-grid-bg" 39310 }); 39311 }); 39312 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("g", { 39313 className: "recharts-cartesian-gridstripes-horizontal" 39314 }, items); 39315 } 39316 }, { 39317 key: "renderBackground", 39318 value: function() { 39319 var fill = this.props.fill; 39320 if (!fill || "none" === fill) return null; 39321 var _props5 = this.props, fillOpacity = _props5.fillOpacity, x = _props5.x, y = _props5.y, width = _props5.width, height = _props5.height; 39322 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("rect", { 39323 x: x, 39324 y: y, 39325 width: width, 39326 height: height, 39327 stroke: "none", 39328 fill: fill, 39329 fillOpacity: fillOpacity, 39330 className: "recharts-cartesian-grid-bg" 39331 }); 39332 } 39333 }, { 39334 key: "render", 39335 value: function() { 39336 var _props6 = this.props, x = _props6.x, y = _props6.y, width = _props6.width, height = _props6.height, horizontal = _props6.horizontal, vertical = _props6.vertical, horizontalCoordinatesGenerator = _props6.horizontalCoordinatesGenerator, verticalCoordinatesGenerator = _props6.verticalCoordinatesGenerator, xAxis = _props6.xAxis, yAxis = _props6.yAxis, offset = _props6.offset, chartWidth = _props6.chartWidth, chartHeight = _props6.chartHeight; 39337 if (!Object(__WEBPACK_IMPORTED_MODULE_5__util_DataUtils__.h)(width) || width <= 0 || !Object(__WEBPACK_IMPORTED_MODULE_5__util_DataUtils__.h)(height) || height <= 0 || !Object(__WEBPACK_IMPORTED_MODULE_5__util_DataUtils__.h)(x) || x !== +x || !Object(__WEBPACK_IMPORTED_MODULE_5__util_DataUtils__.h)(y) || y !== +y) return null; 39338 var _props7 = this.props, horizontalPoints = _props7.horizontalPoints, verticalPoints = _props7.verticalPoints; 39339 return horizontalPoints && horizontalPoints.length || !__WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default()(horizontalCoordinatesGenerator) || (horizontalPoints = horizontalCoordinatesGenerator({ 39340 yAxis: yAxis, 39341 width: chartWidth, 39342 height: chartHeight, 39343 offset: offset 39344 })), verticalPoints && verticalPoints.length || !__WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default()(verticalCoordinatesGenerator) || (verticalPoints = verticalCoordinatesGenerator({ 39345 xAxis: xAxis, 39346 width: chartWidth, 39347 height: chartHeight, 39348 offset: offset 39349 })), __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("g", { 39350 className: "recharts-cartesian-grid" 39351 }, this.renderBackground(), horizontal && this.renderHorizontal(horizontalPoints), vertical && this.renderVertical(verticalPoints), horizontal && this.renderHorizontalStripes(horizontalPoints), vertical && this.renderVerticalStripes(verticalPoints)); 39352 } 39353 } ]), CartesianGrid; 39354 }(__WEBPACK_IMPORTED_MODULE_1_react__.Component), _class2.displayName = "CartesianGrid", 39355 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_4__util_ReactUtils__.c, { 39356 x: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 39357 y: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 39358 width: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 39359 height: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 39360 horizontal: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.element, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool ]), 39361 vertical: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.element, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool ]), 39362 horizontalPoints: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number), 39363 verticalPoints: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number), 39364 horizontalCoordinatesGenerator: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, 39365 verticalCoordinatesGenerator: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, 39366 xAxis: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object, 39367 yAxis: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object, 39368 offset: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object, 39369 chartWidth: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 39370 chartHeight: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 39371 verticalFill: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string), 39372 horizontalFill: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string) 39373 }), _class2.defaultProps = { 39374 horizontal: !0, 39375 vertical: !0, 39376 horizontalPoints: [], 39377 verticalPoints: [], 39378 stroke: "#ccc", 39379 fill: "none", 39380 verticalFill: [], 39381 horizontalFill: [] 39382 }, _class = _temp)) || _class; 39383 __webpack_exports__.a = CartesianGrid; 39384 }, function(module, __webpack_exports__, __webpack_require__) { 39385 "use strict"; 39386 var __WEBPACK_IMPORTED_MODULE_0__generateCategoricalChart__ = __webpack_require__(48), __WEBPACK_IMPORTED_MODULE_1__cartesian_Line__ = __webpack_require__(215), __WEBPACK_IMPORTED_MODULE_2__cartesian_XAxis__ = __webpack_require__(72), __WEBPACK_IMPORTED_MODULE_3__cartesian_YAxis__ = __webpack_require__(73), __WEBPACK_IMPORTED_MODULE_4__util_CartesianUtils__ = __webpack_require__(96); 39387 __webpack_exports__.a = Object(__WEBPACK_IMPORTED_MODULE_0__generateCategoricalChart__.a)({ 39388 chartName: "LineChart", 39389 GraphicalChild: __WEBPACK_IMPORTED_MODULE_1__cartesian_Line__.a, 39390 axisComponents: [ { 39391 axisType: "xAxis", 39392 AxisComp: __WEBPACK_IMPORTED_MODULE_2__cartesian_XAxis__.a 39393 }, { 39394 axisType: "yAxis", 39395 AxisComp: __WEBPACK_IMPORTED_MODULE_3__cartesian_YAxis__.a 39396 } ], 39397 formatAxisMap: __WEBPACK_IMPORTED_MODULE_4__util_CartesianUtils__.a 39398 }); 39399 }, function(module, exports, __webpack_require__) { 39400 function throttle(func, wait, options) { 39401 var leading = !0, trailing = !0; 39402 if ("function" != typeof func) throw new TypeError(FUNC_ERROR_TEXT); 39403 return isObject(options) && (leading = "leading" in options ? !!options.leading : leading, 39404 trailing = "trailing" in options ? !!options.trailing : trailing), debounce(func, wait, { 39405 leading: leading, 39406 maxWait: wait, 39407 trailing: trailing 39408 }); 39409 } 39410 var debounce = __webpack_require__(310), isObject = __webpack_require__(32), FUNC_ERROR_TEXT = "Expected a function"; 39411 module.exports = throttle; 39412 }, function(module, __webpack_exports__, __webpack_require__) { 39413 "use strict"; 39414 __webpack_require__.d(__webpack_exports__, "b", function() { 39415 return eventCenter; 39416 }), __webpack_require__.d(__webpack_exports__, "a", function() { 39417 return SYNC_EVENT; 39418 }); 39419 var __WEBPACK_IMPORTED_MODULE_0_events__ = __webpack_require__(935), __WEBPACK_IMPORTED_MODULE_0_events___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_events__), eventCenter = new __WEBPACK_IMPORTED_MODULE_0_events___default.a(); 39420 eventCenter.setMaxListeners && eventCenter.setMaxListeners(10); 39421 var SYNC_EVENT = "recharts.syncMouseEvents"; 39422 }, function(module, exports) { 39423 function EventEmitter() { 39424 this._events = this._events || {}, this._maxListeners = this._maxListeners || void 0; 39425 } 39426 function isFunction(arg) { 39427 return "function" == typeof arg; 39428 } 39429 function isNumber(arg) { 39430 return "number" == typeof arg; 39431 } 39432 function isObject(arg) { 39433 return "object" == typeof arg && null !== arg; 39434 } 39435 function isUndefined(arg) { 39436 return void 0 === arg; 39437 } 39438 module.exports = EventEmitter, EventEmitter.EventEmitter = EventEmitter, EventEmitter.prototype._events = void 0, 39439 EventEmitter.prototype._maxListeners = void 0, EventEmitter.defaultMaxListeners = 10, 39440 EventEmitter.prototype.setMaxListeners = function(n) { 39441 if (!isNumber(n) || n < 0 || isNaN(n)) throw TypeError("n must be a positive number"); 39442 return this._maxListeners = n, this; 39443 }, EventEmitter.prototype.emit = function(type) { 39444 var er, handler, len, args, i, listeners; 39445 if (this._events || (this._events = {}), "error" === type && (!this._events.error || isObject(this._events.error) && !this._events.error.length)) { 39446 if ((er = arguments[1]) instanceof Error) throw er; 39447 var err = new Error('Uncaught, unspecified "error" event. (' + er + ")"); 39448 throw err.context = er, err; 39449 } 39450 if (handler = this._events[type], isUndefined(handler)) return !1; 39451 if (isFunction(handler)) switch (arguments.length) { 39452 case 1: 39453 handler.call(this); 39454 break; 39455 39456 case 2: 39457 handler.call(this, arguments[1]); 39458 break; 39459 39460 case 3: 39461 handler.call(this, arguments[1], arguments[2]); 39462 break; 39463 39464 default: 39465 args = Array.prototype.slice.call(arguments, 1), handler.apply(this, args); 39466 } else if (isObject(handler)) for (args = Array.prototype.slice.call(arguments, 1), 39467 listeners = handler.slice(), len = listeners.length, i = 0; i < len; i++) listeners[i].apply(this, args); 39468 return !0; 39469 }, EventEmitter.prototype.addListener = function(type, listener) { 39470 var m; 39471 if (!isFunction(listener)) throw TypeError("listener must be a function"); 39472 return this._events || (this._events = {}), this._events.newListener && this.emit("newListener", type, isFunction(listener.listener) ? listener.listener : listener), 39473 this._events[type] ? isObject(this._events[type]) ? this._events[type].push(listener) : this._events[type] = [ this._events[type], listener ] : this._events[type] = listener, 39474 isObject(this._events[type]) && !this._events[type].warned && (m = isUndefined(this._maxListeners) ? EventEmitter.defaultMaxListeners : this._maxListeners) && m > 0 && this._events[type].length > m && (this._events[type].warned = !0, 39475 console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.", this._events[type].length), 39476 "function" == typeof console.trace && console.trace()), this; 39477 }, EventEmitter.prototype.on = EventEmitter.prototype.addListener, EventEmitter.prototype.once = function(type, listener) { 39478 function g() { 39479 this.removeListener(type, g), fired || (fired = !0, listener.apply(this, arguments)); 39480 } 39481 if (!isFunction(listener)) throw TypeError("listener must be a function"); 39482 var fired = !1; 39483 return g.listener = listener, this.on(type, g), this; 39484 }, EventEmitter.prototype.removeListener = function(type, listener) { 39485 var list, position, length, i; 39486 if (!isFunction(listener)) throw TypeError("listener must be a function"); 39487 if (!this._events || !this._events[type]) return this; 39488 if (list = this._events[type], length = list.length, position = -1, list === listener || isFunction(list.listener) && list.listener === listener) delete this._events[type], 39489 this._events.removeListener && this.emit("removeListener", type, listener); else if (isObject(list)) { 39490 for (i = length; i-- > 0; ) if (list[i] === listener || list[i].listener && list[i].listener === listener) { 39491 position = i; 39492 break; 39493 } 39494 if (position < 0) return this; 39495 1 === list.length ? (list.length = 0, delete this._events[type]) : list.splice(position, 1), 39496 this._events.removeListener && this.emit("removeListener", type, listener); 39497 } 39498 return this; 39499 }, EventEmitter.prototype.removeAllListeners = function(type) { 39500 var key, listeners; 39501 if (!this._events) return this; 39502 if (!this._events.removeListener) return 0 === arguments.length ? this._events = {} : this._events[type] && delete this._events[type], 39503 this; 39504 if (0 === arguments.length) { 39505 for (key in this._events) "removeListener" !== key && this.removeAllListeners(key); 39506 return this.removeAllListeners("removeListener"), this._events = {}, this; 39507 } 39508 if (listeners = this._events[type], isFunction(listeners)) this.removeListener(type, listeners); else if (listeners) for (;listeners.length; ) this.removeListener(type, listeners[listeners.length - 1]); 39509 return delete this._events[type], this; 39510 }, EventEmitter.prototype.listeners = function(type) { 39511 return this._events && this._events[type] ? isFunction(this._events[type]) ? [ this._events[type] ] : this._events[type].slice() : []; 39512 }, EventEmitter.prototype.listenerCount = function(type) { 39513 if (this._events) { 39514 var evlistener = this._events[type]; 39515 if (isFunction(evlistener)) return 1; 39516 if (evlistener) return evlistener.length; 39517 } 39518 return 0; 39519 }, EventEmitter.listenerCount = function(emitter, type) { 39520 return emitter.listenerCount(type); 39521 }; 39522 }, function(module, __webpack_exports__, __webpack_require__) { 39523 "use strict"; 39524 var __WEBPACK_IMPORTED_MODULE_0__generateCategoricalChart__ = __webpack_require__(48), __WEBPACK_IMPORTED_MODULE_1__cartesian_Bar__ = __webpack_require__(217), __WEBPACK_IMPORTED_MODULE_2__cartesian_XAxis__ = __webpack_require__(72), __WEBPACK_IMPORTED_MODULE_3__cartesian_YAxis__ = __webpack_require__(73), __WEBPACK_IMPORTED_MODULE_4__util_CartesianUtils__ = __webpack_require__(96); 39525 __webpack_exports__.a = Object(__WEBPACK_IMPORTED_MODULE_0__generateCategoricalChart__.a)({ 39526 chartName: "BarChart", 39527 GraphicalChild: __WEBPACK_IMPORTED_MODULE_1__cartesian_Bar__.a, 39528 axisComponents: [ { 39529 axisType: "xAxis", 39530 AxisComp: __WEBPACK_IMPORTED_MODULE_2__cartesian_XAxis__.a 39531 }, { 39532 axisType: "yAxis", 39533 AxisComp: __WEBPACK_IMPORTED_MODULE_3__cartesian_YAxis__.a 39534 } ], 39535 formatAxisMap: __WEBPACK_IMPORTED_MODULE_4__util_CartesianUtils__.a 39536 }); 39537 }, function(module, __webpack_exports__, __webpack_require__) { 39538 "use strict"; 39539 var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__), __WEBPACK_IMPORTED_MODULE_1__generateCategoricalChart__ = __webpack_require__(48), __WEBPACK_IMPORTED_MODULE_2__polar_PolarAngleAxis__ = __webpack_require__(141), __WEBPACK_IMPORTED_MODULE_3__polar_PolarRadiusAxis__ = __webpack_require__(140), __WEBPACK_IMPORTED_MODULE_4__util_PolarUtils__ = __webpack_require__(23), __WEBPACK_IMPORTED_MODULE_5__polar_Pie__ = __webpack_require__(369); 39540 __webpack_exports__.a = Object(__WEBPACK_IMPORTED_MODULE_1__generateCategoricalChart__.a)({ 39541 chartName: "PieChart", 39542 GraphicalChild: __WEBPACK_IMPORTED_MODULE_5__polar_Pie__.a, 39543 eventType: "item", 39544 legendContent: "children", 39545 axisComponents: [ { 39546 axisType: "angleAxis", 39547 AxisComp: __WEBPACK_IMPORTED_MODULE_2__polar_PolarAngleAxis__.a 39548 }, { 39549 axisType: "radiusAxis", 39550 AxisComp: __WEBPACK_IMPORTED_MODULE_3__polar_PolarRadiusAxis__.a 39551 } ], 39552 formatAxisMap: __WEBPACK_IMPORTED_MODULE_4__util_PolarUtils__.b, 39553 defaultProps: { 39554 layout: "centric", 39555 startAngle: 0, 39556 endAngle: 360, 39557 cx: "50%", 39558 cy: "50%", 39559 innerRadius: 0, 39560 outerRadius: "80%" 39561 }, 39562 propTypes: { 39563 layout: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOf([ "centric" ]), 39564 startAngle: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, 39565 endAngle: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, 39566 cx: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string ]), 39567 cy: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string ]), 39568 innerRadius: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string ]), 39569 outerRadius: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string ]) 39570 } 39571 }); 39572 }, function(module, __webpack_exports__, __webpack_require__) { 39573 "use strict"; 39574 function _objectWithoutProperties(obj, keys) { 39575 var target = {}; 39576 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 39577 return target; 39578 } 39579 function _classCallCheck(instance, Constructor) { 39580 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 39581 } 39582 function _possibleConstructorReturn(self, call) { 39583 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 39584 return !call || "object" != typeof call && "function" != typeof call ? self : call; 39585 } 39586 function _inherits(subClass, superClass) { 39587 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 39588 subClass.prototype = Object.create(superClass && superClass.prototype, { 39589 constructor: { 39590 value: subClass, 39591 enumerable: !1, 39592 writable: !0, 39593 configurable: !0 39594 } 39595 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 39596 } 39597 var _class, _class2, _temp2, __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction__ = __webpack_require__(8), __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isFunction__), __WEBPACK_IMPORTED_MODULE_1_lodash_isNaN__ = __webpack_require__(120), __WEBPACK_IMPORTED_MODULE_1_lodash_isNaN___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isNaN__), __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__), __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__), __WEBPACK_IMPORTED_MODULE_4_react_smooth__ = __webpack_require__(33), __WEBPACK_IMPORTED_MODULE_4_react_smooth___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react_smooth__), __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(3), __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__), __WEBPACK_IMPORTED_MODULE_6__container_Surface__ = __webpack_require__(82), __WEBPACK_IMPORTED_MODULE_7__container_Layer__ = __webpack_require__(14), __WEBPACK_IMPORTED_MODULE_8__shape_Rectangle__ = __webpack_require__(70), __WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__ = __webpack_require__(4), __WEBPACK_IMPORTED_MODULE_10__component_Tooltip__ = __webpack_require__(125), __WEBPACK_IMPORTED_MODULE_11__util_PureRender__ = __webpack_require__(5), __WEBPACK_IMPORTED_MODULE_12__util_ChartUtils__ = __webpack_require__(16), _createClass = function() { 39598 function defineProperties(target, props) { 39599 for (var i = 0; i < props.length; i++) { 39600 var descriptor = props[i]; 39601 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 39602 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 39603 } 39604 } 39605 return function(Constructor, protoProps, staticProps) { 39606 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 39607 Constructor; 39608 }; 39609 }(), _extends = Object.assign || function(target) { 39610 for (var i = 1; i < arguments.length; i++) { 39611 var source = arguments[i]; 39612 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 39613 } 39614 return target; 39615 }, computeNode = function computeNode(_ref) { 39616 var depth = _ref.depth, node = _ref.node, index = _ref.index, valueKey = _ref.valueKey, children = node.children, childDepth = depth + 1, computedChildren = children && children.length ? children.map(function(child, i) { 39617 return computeNode({ 39618 depth: childDepth, 39619 node: child, 39620 index: i, 39621 valueKey: valueKey 39622 }); 39623 }) : null, value = void 0; 39624 return value = children && children.length ? computedChildren.reduce(function(result, child) { 39625 return result + child.value; 39626 }, 0) : __WEBPACK_IMPORTED_MODULE_1_lodash_isNaN___default()(node[valueKey]) || node[valueKey] <= 0 ? 0 : node[valueKey], 39627 _extends({}, node, { 39628 children: computedChildren, 39629 value: value, 39630 depth: depth, 39631 index: index 39632 }); 39633 }, filterRect = function(node) { 39634 return { 39635 x: node.x, 39636 y: node.y, 39637 width: node.width, 39638 height: node.height 39639 }; 39640 }, getAreaOfChildren = function(children, areaValueRatio) { 39641 var ratio = areaValueRatio < 0 ? 0 : areaValueRatio; 39642 return children.map(function(child) { 39643 var area = child.value * ratio; 39644 return _extends({}, child, { 39645 area: __WEBPACK_IMPORTED_MODULE_1_lodash_isNaN___default()(area) || area <= 0 ? 0 : area 39646 }); 39647 }); 39648 }, getWorstScore = function(row, parentSize, aspectRatio) { 39649 var parentArea = parentSize * parentSize, rowArea = row.area * row.area, _row$reduce = row.reduce(function(result, child) { 39650 return { 39651 min: Math.min(result.min, child.area), 39652 max: Math.max(result.max, child.area) 39653 }; 39654 }, { 39655 min: 1 / 0, 39656 max: 0 39657 }), min = _row$reduce.min, max = _row$reduce.max; 39658 return rowArea ? Math.max(parentArea * max * aspectRatio / rowArea, rowArea / (parentArea * min * aspectRatio)) : 1 / 0; 39659 }, horizontalPosition = function(row, parentSize, parentRect, isFlush) { 39660 var rowHeight = parentSize ? Math.round(row.area / parentSize) : 0; 39661 (isFlush || rowHeight > parentRect.height) && (rowHeight = parentRect.height); 39662 for (var curX = parentRect.x, child = void 0, i = 0, len = row.length; i < len; i++) child = row[i], 39663 child.x = curX, child.y = parentRect.y, child.height = rowHeight, child.width = Math.min(rowHeight ? Math.round(child.area / rowHeight) : 0, parentRect.x + parentRect.width - curX), 39664 curX += child.width; 39665 return child.z = !0, child.width += parentRect.x + parentRect.width - curX, _extends({}, parentRect, { 39666 y: parentRect.y + rowHeight, 39667 height: parentRect.height - rowHeight 39668 }); 39669 }, verticalPosition = function(row, parentSize, parentRect, isFlush) { 39670 var rowWidth = parentSize ? Math.round(row.area / parentSize) : 0; 39671 (isFlush || rowWidth > parentRect.width) && (rowWidth = parentRect.width); 39672 for (var curY = parentRect.y, child = void 0, i = 0, len = row.length; i < len; i++) child = row[i], 39673 child.x = parentRect.x, child.y = curY, child.width = rowWidth, child.height = Math.min(rowWidth ? Math.round(child.area / rowWidth) : 0, parentRect.y + parentRect.height - curY), 39674 curY += child.height; 39675 return child.z = !1, child.height += parentRect.y + parentRect.height - curY, _extends({}, parentRect, { 39676 x: parentRect.x + rowWidth, 39677 width: parentRect.width - rowWidth 39678 }); 39679 }, position = function(row, parentSize, parentRect, isFlush) { 39680 return parentSize === parentRect.width ? horizontalPosition(row, parentSize, parentRect, isFlush) : verticalPosition(row, parentSize, parentRect, isFlush); 39681 }, squarify = function squarify(node, aspectRatio) { 39682 var children = node.children; 39683 if (children && children.length) { 39684 var rect = filterRect(node), row = [], best = 1 / 0, child = void 0, score = void 0, size = Math.min(rect.width, rect.height), scaleChildren = getAreaOfChildren(children, rect.width * rect.height / node.value), tempChildren = scaleChildren.slice(); 39685 for (row.area = 0; tempChildren.length > 0; ) row.push(child = tempChildren[0]), 39686 row.area += child.area, score = getWorstScore(row, size, aspectRatio), score <= best ? (tempChildren.shift(), 39687 best = score) : (row.area -= row.pop().area, rect = position(row, size, rect, !1), 39688 size = Math.min(rect.width, rect.height), row.length = row.area = 0, best = 1 / 0); 39689 return row.length && (rect = position(row, size, rect, !0), row.length = row.area = 0), 39690 _extends({}, node, { 39691 children: scaleChildren.map(function(c) { 39692 return squarify(c, aspectRatio); 39693 }) 39694 }); 39695 } 39696 return node; 39697 }, Treemap = Object(__WEBPACK_IMPORTED_MODULE_11__util_PureRender__.a)((_temp2 = _class2 = function(_Component) { 39698 function Treemap() { 39699 var _ref2, _temp, _this, _ret; 39700 _classCallCheck(this, Treemap); 39701 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 39702 return _temp = _this = _possibleConstructorReturn(this, (_ref2 = Treemap.__proto__ || Object.getPrototypeOf(Treemap)).call.apply(_ref2, [ this ].concat(args))), 39703 _this.state = _this.createDefaultState(), _ret = _temp, _possibleConstructorReturn(_this, _ret); 39704 } 39705 return _inherits(Treemap, _Component), _createClass(Treemap, [ { 39706 key: "componentWillReceiveProps", 39707 value: function(nextProps) { 39708 nextProps.data !== this.props.data && this.setState(this.createDefaultState()); 39709 } 39710 }, { 39711 key: "createDefaultState", 39712 value: function() { 39713 return { 39714 isTooltipActive: !1, 39715 activeNode: null 39716 }; 39717 } 39718 }, { 39719 key: "handleMouseEnter", 39720 value: function(node, e) { 39721 var _props = this.props, onMouseEnter = _props.onMouseEnter, children = _props.children; 39722 Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.i)(children, __WEBPACK_IMPORTED_MODULE_10__component_Tooltip__.a) ? this.setState({ 39723 isTooltipActive: !0, 39724 activeNode: node 39725 }, function() { 39726 onMouseEnter && onMouseEnter(node, e); 39727 }) : onMouseEnter && onMouseEnter(node, e); 39728 } 39729 }, { 39730 key: "handleMouseLeave", 39731 value: function(node, e) { 39732 var _props2 = this.props, onMouseLeave = _props2.onMouseLeave, children = _props2.children; 39733 Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.i)(children, __WEBPACK_IMPORTED_MODULE_10__component_Tooltip__.a) ? this.setState({ 39734 isTooltipActive: !1, 39735 activeNode: null 39736 }, function() { 39737 onMouseLeave && onMouseLeave(node, e); 39738 }) : onMouseLeave && onMouseLeave(node, e); 39739 } 39740 }, { 39741 key: "handleClick", 39742 value: function(node) { 39743 var onClick = this.props.onClick; 39744 onClick && onClick(node); 39745 } 39746 }, { 39747 key: "renderAnimatedItem", 39748 value: function(content, nodeProps, isLeaf) { 39749 var _this2 = this, _props3 = this.props, isAnimationActive = _props3.isAnimationActive, animationBegin = _props3.animationBegin, animationDuration = _props3.animationDuration, animationEasing = _props3.animationEasing, isUpdateAnimationActive = _props3.isUpdateAnimationActive, width = nodeProps.width, height = nodeProps.height, x = nodeProps.x, y = nodeProps.y, translateX = parseInt((2 * Math.random() - 1) * width, 10), event = {}; 39750 return isLeaf && (event = { 39751 onMouseEnter: this.handleMouseEnter.bind(this, nodeProps), 39752 onMouseLeave: this.handleMouseLeave.bind(this, nodeProps), 39753 onClick: this.handleClick.bind(this, nodeProps) 39754 }), __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4_react_smooth___default.a, { 39755 from: { 39756 x: x, 39757 y: y, 39758 width: width, 39759 height: height 39760 }, 39761 to: { 39762 x: x, 39763 y: y, 39764 width: width, 39765 height: height 39766 }, 39767 duration: animationDuration, 39768 easing: animationEasing, 39769 isActive: isUpdateAnimationActive 39770 }, function(_ref3) { 39771 var currX = _ref3.x, currY = _ref3.y, currWidth = _ref3.width, currHeight = _ref3.height; 39772 return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4_react_smooth___default.a, { 39773 from: "translate(" + translateX + "px, " + translateX + "px)", 39774 to: "translate(0, 0)", 39775 attributeName: "transform", 39776 begin: animationBegin, 39777 easing: animationEasing, 39778 isActive: isAnimationActive, 39779 duration: animationDuration 39780 }, __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__container_Layer__.a, event, _this2.renderContentItem(content, _extends({}, nodeProps, { 39781 isAnimationActive: isAnimationActive, 39782 isUpdateAnimationActive: !isUpdateAnimationActive, 39783 width: currWidth, 39784 height: currHeight, 39785 x: currX, 39786 y: currY 39787 })))); 39788 }); 39789 } 39790 }, { 39791 key: "renderContentItem", 39792 value: function(content, nodeProps) { 39793 return __WEBPACK_IMPORTED_MODULE_2_react___default.a.isValidElement(content) ? __WEBPACK_IMPORTED_MODULE_2_react___default.a.cloneElement(content, nodeProps) : __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default()(content) ? content(nodeProps) : __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__shape_Rectangle__.a, _extends({ 39794 fill: "#fff", 39795 stroke: "#000" 39796 }, nodeProps)); 39797 } 39798 }, { 39799 key: "renderNode", 39800 value: function(root, node, i) { 39801 var _this3 = this, content = this.props.content, nodeProps = _extends({}, Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.k)(this.props), node, { 39802 root: root 39803 }), isLeaf = !node.children || !node.children.length; 39804 return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__container_Layer__.a, { 39805 key: "recharts-treemap-node-" + i, 39806 className: "recharts-treemap-depth-" + node.depth 39807 }, this.renderAnimatedItem(content, nodeProps, isLeaf), node.children && node.children.length ? node.children.map(function(child, index) { 39808 return _this3.renderNode(node, child, index); 39809 }) : null); 39810 } 39811 }, { 39812 key: "renderAllNodes", 39813 value: function() { 39814 var _props4 = this.props, width = _props4.width, height = _props4.height, data = _props4.data, dataKey = _props4.dataKey, aspectRatio = _props4.aspectRatio, root = computeNode({ 39815 depth: 0, 39816 node: { 39817 children: data, 39818 x: 0, 39819 y: 0, 39820 width: width, 39821 height: height 39822 }, 39823 index: 0, 39824 valueKey: dataKey 39825 }), formatRoot = squarify(root, aspectRatio); 39826 return this.renderNode(formatRoot, formatRoot, 0); 39827 } 39828 }, { 39829 key: "renderTooltip", 39830 value: function() { 39831 var _props5 = this.props, children = _props5.children, nameKey = _props5.nameKey, tooltipItem = Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.i)(children, __WEBPACK_IMPORTED_MODULE_10__component_Tooltip__.a); 39832 if (!tooltipItem) return null; 39833 var _props6 = this.props, width = _props6.width, height = _props6.height, dataKey = _props6.dataKey, _state = this.state, isTooltipActive = _state.isTooltipActive, activeNode = _state.activeNode, viewBox = { 39834 x: 0, 39835 y: 0, 39836 width: width, 39837 height: height 39838 }, coordinate = activeNode ? { 39839 x: activeNode.x + activeNode.width / 2, 39840 y: activeNode.y + activeNode.height / 2 39841 } : null, payload = isTooltipActive && activeNode ? [ { 39842 payload: activeNode, 39843 name: Object(__WEBPACK_IMPORTED_MODULE_12__util_ChartUtils__.w)(activeNode, nameKey, ""), 39844 value: Object(__WEBPACK_IMPORTED_MODULE_12__util_ChartUtils__.w)(activeNode, dataKey) 39845 } ] : []; 39846 return __WEBPACK_IMPORTED_MODULE_2_react___default.a.cloneElement(tooltipItem, { 39847 viewBox: viewBox, 39848 active: isTooltipActive, 39849 coordinate: coordinate, 39850 label: "", 39851 payload: payload 39852 }); 39853 } 39854 }, { 39855 key: "render", 39856 value: function() { 39857 if (!Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.q)(this)) return null; 39858 var _props7 = this.props, width = _props7.width, height = _props7.height, className = _props7.className, style = _props7.style, children = _props7.children, others = _objectWithoutProperties(_props7, [ "width", "height", "className", "style", "children" ]), attrs = Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.k)(others); 39859 return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("div", { 39860 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()("recharts-wrapper", className), 39861 style: _extends({}, style, { 39862 position: "relative", 39863 cursor: "default", 39864 width: width, 39865 height: height 39866 }) 39867 }, __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__container_Surface__.a, _extends({}, attrs, { 39868 width: width, 39869 height: height 39870 }), this.renderAllNodes(), Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.g)(children)), this.renderTooltip()); 39871 } 39872 } ]), Treemap; 39873 }(__WEBPACK_IMPORTED_MODULE_2_react__.Component), _class2.displayName = "Treemap", 39874 _class2.propTypes = { 39875 width: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 39876 height: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 39877 data: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.array, 39878 style: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object, 39879 aspectRatio: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 39880 content: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.element, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func ]), 39881 fill: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string, 39882 stroke: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string, 39883 className: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string, 39884 nameKey: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func ]), 39885 dataKey: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func ]), 39886 children: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.node), __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.node ]), 39887 onMouseEnter: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, 39888 onMouseLeave: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, 39889 onClick: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, 39890 isAnimationActive: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool, 39891 isUpdateAnimationActive: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool, 39892 animationBegin: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 39893 animationDuration: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 39894 animationEasing: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf([ "ease", "ease-in", "ease-out", "ease-in-out", "linear" ]) 39895 }, _class2.defaultProps = { 39896 dataKey: "value", 39897 aspectRatio: .5 * (1 + Math.sqrt(5)), 39898 isAnimationActive: !Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.n)(), 39899 isUpdateAnimationActive: !Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.n)(), 39900 animationBegin: 0, 39901 animationDuration: 1500, 39902 animationEasing: "linear" 39903 }, _class = _temp2)) || _class; 39904 __webpack_exports__.a = Treemap; 39905 }, function(module, __webpack_exports__, __webpack_require__) { 39906 "use strict"; 39907 function _objectWithoutProperties(obj, keys) { 39908 var target = {}; 39909 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 39910 return target; 39911 } 39912 function _classCallCheck(instance, Constructor) { 39913 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 39914 } 39915 function _possibleConstructorReturn(self, call) { 39916 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 39917 return !call || "object" != typeof call && "function" != typeof call ? self : call; 39918 } 39919 function _inherits(subClass, superClass) { 39920 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 39921 subClass.prototype = Object.create(superClass && superClass.prototype, { 39922 constructor: { 39923 value: subClass, 39924 enumerable: !1, 39925 writable: !0, 39926 configurable: !0 39927 } 39928 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 39929 } 39930 var _class, _class2, _temp, __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction__ = __webpack_require__(8), __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isFunction__), __WEBPACK_IMPORTED_MODULE_1_lodash_sumBy__ = __webpack_require__(940), __WEBPACK_IMPORTED_MODULE_1_lodash_sumBy___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_sumBy__), __WEBPACK_IMPORTED_MODULE_2_lodash_min__ = __webpack_require__(328), __WEBPACK_IMPORTED_MODULE_2_lodash_min___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_lodash_min__), __WEBPACK_IMPORTED_MODULE_3_lodash_maxBy__ = __webpack_require__(368), __WEBPACK_IMPORTED_MODULE_3_lodash_maxBy___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_lodash_maxBy__), __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__), __WEBPACK_IMPORTED_MODULE_5_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_5_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_prop_types__), __WEBPACK_IMPORTED_MODULE_6_classnames__ = __webpack_require__(3), __WEBPACK_IMPORTED_MODULE_6_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_classnames__), __WEBPACK_IMPORTED_MODULE_7__container_Surface__ = __webpack_require__(82), __WEBPACK_IMPORTED_MODULE_8__container_Layer__ = __webpack_require__(14), __WEBPACK_IMPORTED_MODULE_9__component_Tooltip__ = __webpack_require__(125), __WEBPACK_IMPORTED_MODULE_10__shape_Rectangle__ = __webpack_require__(70), __WEBPACK_IMPORTED_MODULE_11__util_PureRender__ = __webpack_require__(5), __WEBPACK_IMPORTED_MODULE_12__util_ReactUtils__ = __webpack_require__(4), __WEBPACK_IMPORTED_MODULE_13__util_ChartUtils__ = __webpack_require__(16), _createClass = function() { 39931 function defineProperties(target, props) { 39932 for (var i = 0; i < props.length; i++) { 39933 var descriptor = props[i]; 39934 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 39935 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 39936 } 39937 } 39938 return function(Constructor, protoProps, staticProps) { 39939 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 39940 Constructor; 39941 }; 39942 }(), _extends = Object.assign || function(target) { 39943 for (var i = 1; i < arguments.length; i++) { 39944 var source = arguments[i]; 39945 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 39946 } 39947 return target; 39948 }, defaultCoordinateOfTooltip = { 39949 x: 0, 39950 y: 0 39951 }, interpolationGenerator = function(a, b) { 39952 var ka = +a, kb = b - ka; 39953 return function(t) { 39954 return ka + kb * t; 39955 }; 39956 }, centerY = function(node) { 39957 return node.y + node.dy / 2; 39958 }, getValue = function(entry) { 39959 return entry && entry.value || 0; 39960 }, getSumOfIds = function(links, ids) { 39961 return ids.reduce(function(result, id) { 39962 return result + getValue(links[id]); 39963 }, 0); 39964 }, getSumWithWeightedSource = function(tree, links, ids) { 39965 return ids.reduce(function(result, id) { 39966 var link = links[id], sourceNode = tree[link.source]; 39967 return result + centerY(sourceNode) * getValue(links[id]); 39968 }, 0); 39969 }, getSumWithWeightedTarget = function(tree, links, ids) { 39970 return ids.reduce(function(result, id) { 39971 var link = links[id], targetNode = tree[link.target]; 39972 return result + centerY(targetNode) * getValue(links[id]); 39973 }, 0); 39974 }, ascendingY = function(a, b) { 39975 return a.y - b.y; 39976 }, searchTargetsAndSources = function(links, id) { 39977 for (var sourceNodes = [], sourceLinks = [], targetNodes = [], targetLinks = [], i = 0, len = links.length; i < len; i++) { 39978 var link = links[i]; 39979 link.source === id && (targetNodes.push(link.target), targetLinks.push(i)), link.target === id && (sourceNodes.push(link.source), 39980 sourceLinks.push(i)); 39981 } 39982 return { 39983 sourceNodes: sourceNodes, 39984 sourceLinks: sourceLinks, 39985 targetLinks: targetLinks, 39986 targetNodes: targetNodes 39987 }; 39988 }, updateDepthOfTargets = function updateDepthOfTargets(tree, curNode) { 39989 for (var targetNodes = curNode.targetNodes, i = 0, len = targetNodes.length; i < len; i++) { 39990 var target = tree[targetNodes[i]]; 39991 target && (target.depth = Math.max(curNode.depth + 1, target.depth), updateDepthOfTargets(tree, target)); 39992 } 39993 }, getNodesTree = function(_ref, width, nodeWidth) { 39994 for (var nodes = _ref.nodes, links = _ref.links, tree = nodes.map(function(entry, index) { 39995 var result = searchTargetsAndSources(links, index); 39996 return _extends({}, entry, result, { 39997 value: Math.max(getSumOfIds(links, result.sourceLinks), getSumOfIds(links, result.targetLinks)), 39998 depth: 0 39999 }); 40000 }), i = 0, len = tree.length; i < len; i++) { 40001 var node = tree[i]; 40002 node.sourceNodes.length || updateDepthOfTargets(tree, node); 40003 } 40004 var maxDepth = __WEBPACK_IMPORTED_MODULE_3_lodash_maxBy___default()(tree, function(entry) { 40005 return entry.depth; 40006 }).depth; 40007 if (maxDepth >= 1) for (var childWidth = (width - nodeWidth) / maxDepth, _i = 0, _len = tree.length; _i < _len; _i++) { 40008 var _node = tree[_i]; 40009 _node.targetNodes.length || (_node.depth = maxDepth), _node.x = _node.depth * childWidth, 40010 _node.dx = nodeWidth; 40011 } 40012 return { 40013 tree: tree, 40014 maxDepth: maxDepth 40015 }; 40016 }, getDepthTree = function(tree) { 40017 for (var result = [], i = 0, len = tree.length; i < len; i++) { 40018 var node = tree[i]; 40019 result[node.depth] || (result[node.depth] = []), result[node.depth].push(node); 40020 } 40021 return result; 40022 }, updateYOfTree = function(depthTree, height, nodePadding, links) { 40023 for (var yRatio = __WEBPACK_IMPORTED_MODULE_2_lodash_min___default()(depthTree.map(function(nodes) { 40024 return (height - (nodes.length - 1) * nodePadding) / __WEBPACK_IMPORTED_MODULE_1_lodash_sumBy___default()(nodes, getValue); 40025 })), d = 0, maxDepth = depthTree.length; d < maxDepth; d++) for (var i = 0, len = depthTree[d].length; i < len; i++) { 40026 var node = depthTree[d][i]; 40027 node.y = i, node.dy = node.value * yRatio; 40028 } 40029 return links.map(function(link) { 40030 return _extends({}, link, { 40031 dy: getValue(link) * yRatio 40032 }); 40033 }); 40034 }, resolveCollisions = function(depthTree, height, nodePadding) { 40035 for (var i = 0, len = depthTree.length; i < len; i++) { 40036 var nodes = depthTree[i], n = nodes.length; 40037 nodes.sort(ascendingY); 40038 for (var y0 = 0, j = 0; j < n; j++) { 40039 var node = nodes[j], dy = y0 - node.y; 40040 dy > 0 && (node.y += dy), y0 = node.y + node.dy + nodePadding; 40041 } 40042 y0 = height + nodePadding; 40043 for (var _j = n - 1; _j >= 0; _j--) { 40044 var _node2 = nodes[_j], _dy = _node2.y + _node2.dy + nodePadding - y0; 40045 if (!(_dy > 0)) break; 40046 _node2.y -= _dy, y0 = _node2.y; 40047 } 40048 } 40049 }, relaxLeftToRight = function(tree, depthTree, links, alpha) { 40050 for (var i = 0, maxDepth = depthTree.length; i < maxDepth; i++) for (var nodes = depthTree[i], j = 0, len = nodes.length; j < len; j++) { 40051 var node = nodes[j]; 40052 if (node.sourceLinks.length) { 40053 var sourceSum = getSumOfIds(links, node.sourceLinks), weightedSum = getSumWithWeightedSource(tree, links, node.sourceLinks), y = weightedSum / sourceSum; 40054 node.y += (y - centerY(node)) * alpha; 40055 } 40056 } 40057 }, relaxRightToLeft = function(tree, depthTree, links, alpha) { 40058 for (var i = depthTree.length - 1; i >= 0; i--) for (var nodes = depthTree[i], j = 0, len = nodes.length; j < len; j++) { 40059 var node = nodes[j]; 40060 if (node.targetLinks.length) { 40061 var targetSum = getSumOfIds(links, node.targetLinks), weightedSum = getSumWithWeightedTarget(tree, links, node.targetLinks), y = weightedSum / targetSum; 40062 node.y += (y - centerY(node)) * alpha; 40063 } 40064 } 40065 }, updateYOfLinks = function(tree, links) { 40066 for (var i = 0, len = tree.length; i < len; i++) { 40067 var node = tree[i], sy = 0, ty = 0; 40068 node.targetLinks.sort(function(a, b) { 40069 return tree[links[a].target].y - tree[links[b].target].y; 40070 }), node.sourceLinks.sort(function(a, b) { 40071 return tree[links[a].source].y - tree[links[b].source].y; 40072 }); 40073 for (var j = 0, tLen = node.targetLinks.length; j < tLen; j++) { 40074 var link = links[node.targetLinks[j]]; 40075 link && (link.sy = sy, sy += link.dy); 40076 } 40077 for (var _j2 = 0, sLen = node.sourceLinks.length; _j2 < sLen; _j2++) { 40078 var _link = links[node.sourceLinks[_j2]]; 40079 _link && (_link.ty = ty, ty += _link.dy); 40080 } 40081 } 40082 }, computeData = function(_ref2) { 40083 var data = _ref2.data, width = _ref2.width, height = _ref2.height, iterations = _ref2.iterations, nodeWidth = _ref2.nodeWidth, nodePadding = _ref2.nodePadding, links = data.links, _getNodesTree = getNodesTree(data, width, nodeWidth), tree = _getNodesTree.tree, depthTree = getDepthTree(tree), newLinks = updateYOfTree(depthTree, height, nodePadding, links); 40084 resolveCollisions(depthTree, height, nodePadding); 40085 for (var alpha = 1, i = 1; i <= iterations; i++) relaxRightToLeft(tree, depthTree, newLinks, alpha *= .99), 40086 resolveCollisions(depthTree, height, nodePadding), relaxLeftToRight(tree, depthTree, newLinks, alpha), 40087 resolveCollisions(depthTree, height, nodePadding); 40088 return updateYOfLinks(tree, newLinks), { 40089 nodes: tree, 40090 links: newLinks 40091 }; 40092 }, getCoordinateOfTooltip = function(el, type) { 40093 return "node" === type ? { 40094 x: el.x + el.width / 2, 40095 y: el.y + el.height / 2 40096 } : { 40097 x: (el.sourceX + el.targetX) / 2, 40098 y: (el.sourceY + el.targetY) / 2 40099 }; 40100 }, getPayloadOfTooltip = function(el, type, nameKey) { 40101 var payload = el.payload; 40102 if ("node" === type) return [ { 40103 payload: el, 40104 name: Object(__WEBPACK_IMPORTED_MODULE_13__util_ChartUtils__.w)(payload, nameKey, ""), 40105 value: Object(__WEBPACK_IMPORTED_MODULE_13__util_ChartUtils__.w)(payload, "value") 40106 } ]; 40107 if (payload.source && payload.target) { 40108 return [ { 40109 payload: el, 40110 name: Object(__WEBPACK_IMPORTED_MODULE_13__util_ChartUtils__.w)(payload.source, nameKey, "") + " - " + Object(__WEBPACK_IMPORTED_MODULE_13__util_ChartUtils__.w)(payload.target, nameKey, ""), 40111 value: Object(__WEBPACK_IMPORTED_MODULE_13__util_ChartUtils__.w)(payload, "value") 40112 } ]; 40113 } 40114 return []; 40115 }, Sankey = Object(__WEBPACK_IMPORTED_MODULE_11__util_PureRender__.a)((_temp = _class2 = function(_Component) { 40116 function Sankey(props) { 40117 _classCallCheck(this, Sankey); 40118 var _this = _possibleConstructorReturn(this, (Sankey.__proto__ || Object.getPrototypeOf(Sankey)).call(this, props)); 40119 return _this.state = _this.createDefaultState(props), _this; 40120 } 40121 return _inherits(Sankey, _Component), _createClass(Sankey, [ { 40122 key: "componentWillReceiveProps", 40123 value: function(nextProps) { 40124 var _props = this.props, data = _props.data, width = _props.width, height = _props.height, margin = _props.margin, iterations = _props.iterations, nodeWidth = _props.nodeWidth, nodePadding = _props.nodePadding, nameKey = _props.nameKey; 40125 nextProps.data === data && nextProps.width === width && nextProps.height === height && Object(__WEBPACK_IMPORTED_MODULE_11__util_PureRender__.b)(nextProps.margin, margin) && nextProps.iterations === iterations && nextProps.nodeWidth === nodeWidth && nextProps.nodePadding === nodePadding && nextProps.nameKey === nameKey || this.setState(this.createDefaultState(nextProps)); 40126 } 40127 }, { 40128 key: "createDefaultState", 40129 value: function(props) { 40130 var data = props.data, width = props.width, height = props.height, margin = props.margin, iterations = props.iterations, nodeWidth = props.nodeWidth, nodePadding = props.nodePadding, contentWidth = width - (margin && margin.left || 0) - (margin && margin.right || 0), contentHeight = height - (margin && margin.top || 0) - (margin && margin.bottom || 0), _computeData = computeData({ 40131 data: data, 40132 width: contentWidth, 40133 height: contentHeight, 40134 iterations: iterations, 40135 nodeWidth: nodeWidth, 40136 nodePadding: nodePadding 40137 }), links = _computeData.links; 40138 return { 40139 activeElement: null, 40140 activeElementType: null, 40141 isTooltipActive: !1, 40142 nodes: _computeData.nodes, 40143 links: links 40144 }; 40145 } 40146 }, { 40147 key: "handleMouseEnter", 40148 value: function(el, type, e) { 40149 var _props2 = this.props, onMouseEnter = _props2.onMouseEnter, children = _props2.children; 40150 Object(__WEBPACK_IMPORTED_MODULE_12__util_ReactUtils__.i)(children, __WEBPACK_IMPORTED_MODULE_9__component_Tooltip__.a) ? this.setState({ 40151 activeElement: el, 40152 activeElementType: type, 40153 isTooltipActive: !0 40154 }, function() { 40155 onMouseEnter && onMouseEnter(el, type, e); 40156 }) : onMouseEnter && onMouseEnter(el, type, e); 40157 } 40158 }, { 40159 key: "handleMouseLeave", 40160 value: function(el, type, e) { 40161 var _props3 = this.props, onMouseLeave = _props3.onMouseLeave, children = _props3.children; 40162 Object(__WEBPACK_IMPORTED_MODULE_12__util_ReactUtils__.i)(children, __WEBPACK_IMPORTED_MODULE_9__component_Tooltip__.a) ? this.setState({ 40163 isTooltipActive: !1 40164 }, function() { 40165 onMouseLeave && onMouseLeave(el, type, e); 40166 }) : onMouseLeave && onMouseLeave(el, type, e); 40167 } 40168 }, { 40169 key: "renderLinkItem", 40170 value: function(option, props) { 40171 if (__WEBPACK_IMPORTED_MODULE_4_react___default.a.isValidElement(option)) return __WEBPACK_IMPORTED_MODULE_4_react___default.a.cloneElement(option, props); 40172 if (__WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default()(option)) return option(props); 40173 var sourceX = props.sourceX, sourceY = props.sourceY, sourceControlX = props.sourceControlX, targetX = props.targetX, targetY = props.targetY, targetControlX = props.targetControlX, linkWidth = props.linkWidth, others = _objectWithoutProperties(props, [ "sourceX", "sourceY", "sourceControlX", "targetX", "targetY", "targetControlX", "linkWidth" ]); 40174 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("path", _extends({ 40175 className: "recharts-sankey-link", 40176 d: "\n M" + sourceX + "," + sourceY + "\n C" + sourceControlX + "," + sourceY + " " + targetControlX + "," + targetY + " " + targetX + "," + targetY + "\n ", 40177 fill: "none", 40178 stroke: "#333", 40179 strokeWidth: linkWidth, 40180 strokeOpacity: "0.2" 40181 }, Object(__WEBPACK_IMPORTED_MODULE_12__util_ReactUtils__.k)(others))); 40182 } 40183 }, { 40184 key: "renderLinks", 40185 value: function(links, nodes) { 40186 var _this2 = this, _props4 = this.props, linkCurvature = _props4.linkCurvature, linkContent = _props4.link, margin = _props4.margin, top = margin.top || 0, left = margin.left || 0; 40187 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, { 40188 className: "recharts-sankey-links", 40189 key: "recharts-sankey-links" 40190 }, links.map(function(link, i) { 40191 var sourceRelativeY = link.sy, targetRelativeY = link.ty, linkWidth = link.dy, source = nodes[link.source], target = nodes[link.target], sourceX = source.x + source.dx + left, targetX = target.x + left, interpolationFunc = interpolationGenerator(sourceX, targetX), sourceControlX = interpolationFunc(linkCurvature), targetControlX = interpolationFunc(1 - linkCurvature), sourceY = source.y + sourceRelativeY + linkWidth / 2 + top, targetY = target.y + targetRelativeY + linkWidth / 2 + top, linkProps = _extends({ 40192 sourceX: sourceX, 40193 targetX: targetX, 40194 sourceY: sourceY, 40195 targetY: targetY, 40196 sourceControlX: sourceControlX, 40197 targetControlX: targetControlX, 40198 sourceRelativeY: sourceRelativeY, 40199 targetRelativeY: targetRelativeY, 40200 linkWidth: linkWidth, 40201 index: i, 40202 payload: _extends({}, link, { 40203 source: source, 40204 target: target 40205 }) 40206 }, Object(__WEBPACK_IMPORTED_MODULE_12__util_ReactUtils__.k)(linkContent)), events = { 40207 onMouseEnter: _this2.handleMouseEnter.bind(_this2, linkProps, "link"), 40208 onMouseLeave: _this2.handleMouseLeave.bind(_this2, linkProps, "link") 40209 }; 40210 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, _extends({ 40211 key: "link" + i 40212 }, events), _this2.renderLinkItem(linkContent, linkProps)); 40213 })); 40214 } 40215 }, { 40216 key: "renderNodeItem", 40217 value: function(option, props) { 40218 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.isValidElement(option) ? __WEBPACK_IMPORTED_MODULE_4_react___default.a.cloneElement(option, props) : __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default()(option) ? option(props) : __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10__shape_Rectangle__.a, _extends({ 40219 className: "recharts-sankey-node", 40220 fill: "#0088fe", 40221 fillOpacity: "0.8" 40222 }, props)); 40223 } 40224 }, { 40225 key: "renderNodes", 40226 value: function(nodes) { 40227 var _this3 = this, _props5 = this.props, nodeContent = _props5.node, margin = _props5.margin, top = margin.top || 0, left = margin.left || 0; 40228 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, { 40229 className: "recharts-sankey-nodes", 40230 key: "recharts-sankey-nodes" 40231 }, nodes.map(function(node, i) { 40232 var x = node.x, y = node.y, dx = node.dx, dy = node.dy, nodeProps = _extends({}, Object(__WEBPACK_IMPORTED_MODULE_12__util_ReactUtils__.k)(nodeContent), { 40233 x: x + left, 40234 y: y + top, 40235 width: dx, 40236 height: dy, 40237 index: i, 40238 payload: node 40239 }), events = { 40240 onMouseEnter: _this3.handleMouseEnter.bind(_this3, nodeProps, "node"), 40241 onMouseLeave: _this3.handleMouseLeave.bind(_this3, nodeProps, "node") 40242 }; 40243 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, _extends({ 40244 key: "node" + i 40245 }, events), _this3.renderNodeItem(nodeContent, nodeProps)); 40246 })); 40247 } 40248 }, { 40249 key: "renderTooltip", 40250 value: function() { 40251 var _props6 = this.props, children = _props6.children, width = _props6.width, height = _props6.height, nameKey = _props6.nameKey, tooltipItem = Object(__WEBPACK_IMPORTED_MODULE_12__util_ReactUtils__.i)(children, __WEBPACK_IMPORTED_MODULE_9__component_Tooltip__.a); 40252 if (!tooltipItem) return null; 40253 var _state = this.state, isTooltipActive = _state.isTooltipActive, activeElement = _state.activeElement, activeElementType = _state.activeElementType, viewBox = { 40254 x: 0, 40255 y: 0, 40256 width: width, 40257 height: height 40258 }, coordinate = activeElement ? getCoordinateOfTooltip(activeElement, activeElementType) : defaultCoordinateOfTooltip, payload = activeElement ? getPayloadOfTooltip(activeElement, activeElementType, nameKey) : []; 40259 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.cloneElement(tooltipItem, { 40260 viewBox: viewBox, 40261 active: isTooltipActive, 40262 coordinate: coordinate, 40263 label: "", 40264 payload: payload 40265 }); 40266 } 40267 }, { 40268 key: "render", 40269 value: function() { 40270 if (!Object(__WEBPACK_IMPORTED_MODULE_12__util_ReactUtils__.q)(this)) return null; 40271 var _props7 = this.props, width = _props7.width, height = _props7.height, className = _props7.className, style = _props7.style, children = _props7.children, others = _objectWithoutProperties(_props7, [ "width", "height", "className", "style", "children" ]), _state2 = this.state, links = _state2.links, nodes = _state2.nodes, attrs = Object(__WEBPACK_IMPORTED_MODULE_12__util_ReactUtils__.k)(others); 40272 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("div", { 40273 className: __WEBPACK_IMPORTED_MODULE_6_classnames___default()("recharts-wrapper", className), 40274 style: _extends({}, style, { 40275 position: "relative", 40276 cursor: "default", 40277 width: width, 40278 height: height 40279 }) 40280 }, __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__container_Surface__.a, _extends({}, attrs, { 40281 width: width, 40282 height: height 40283 }), Object(__WEBPACK_IMPORTED_MODULE_12__util_ReactUtils__.g)(children), this.renderLinks(links, nodes), this.renderNodes(nodes)), this.renderTooltip()); 40284 } 40285 } ]), Sankey; 40286 }(__WEBPACK_IMPORTED_MODULE_4_react__.Component), _class2.displayName = "Sankey", 40287 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_12__util_ReactUtils__.c, __WEBPACK_IMPORTED_MODULE_12__util_ReactUtils__.a, { 40288 nameKey: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func ]), 40289 dataKey: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func ]), 40290 width: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 40291 height: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 40292 data: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.shape({ 40293 nodes: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.array, 40294 links: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.shape({ 40295 target: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 40296 source: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 40297 value: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number 40298 })) 40299 }), 40300 nodePadding: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 40301 nodeWidth: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 40302 linkCurvature: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 40303 iterations: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 40304 node: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.element, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func ]), 40305 link: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.element, __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func ]), 40306 style: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object, 40307 className: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, 40308 children: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.node), __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.node ]), 40309 margin: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.shape({ 40310 top: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 40311 right: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 40312 bottom: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 40313 left: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number 40314 }) 40315 }), _class2.defaultProps = { 40316 nodePadding: 10, 40317 nodeWidth: 10, 40318 nameKey: "name", 40319 dataKey: "value", 40320 linkCurvature: .5, 40321 iterations: 32, 40322 margin: { 40323 top: 5, 40324 right: 5, 40325 bottom: 5, 40326 left: 5 40327 } 40328 }, _class = _temp)) || _class; 40329 __webpack_exports__.a = Sankey; 40330 }, function(module, exports, __webpack_require__) { 40331 function sumBy(array, iteratee) { 40332 return array && array.length ? baseSum(array, baseIteratee(iteratee, 2)) : 0; 40333 } 40334 var baseIteratee = __webpack_require__(89), baseSum = __webpack_require__(941); 40335 module.exports = sumBy; 40336 }, function(module, exports) { 40337 function baseSum(array, iteratee) { 40338 for (var result, index = -1, length = array.length; ++index < length; ) { 40339 var current = iteratee(array[index]); 40340 void 0 !== current && (result = void 0 === result ? current : result + current); 40341 } 40342 return result; 40343 } 40344 module.exports = baseSum; 40345 }, function(module, __webpack_exports__, __webpack_require__) { 40346 "use strict"; 40347 var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__), __WEBPACK_IMPORTED_MODULE_1__generateCategoricalChart__ = __webpack_require__(48), __WEBPACK_IMPORTED_MODULE_2__polar_Radar__ = __webpack_require__(370), __WEBPACK_IMPORTED_MODULE_3__polar_PolarAngleAxis__ = __webpack_require__(141), __WEBPACK_IMPORTED_MODULE_4__polar_PolarRadiusAxis__ = __webpack_require__(140), __WEBPACK_IMPORTED_MODULE_5__util_PolarUtils__ = __webpack_require__(23); 40348 __webpack_exports__.a = Object(__WEBPACK_IMPORTED_MODULE_1__generateCategoricalChart__.a)({ 40349 chartName: "RadarChart", 40350 GraphicalChild: __WEBPACK_IMPORTED_MODULE_2__polar_Radar__.a, 40351 axisComponents: [ { 40352 axisType: "angleAxis", 40353 AxisComp: __WEBPACK_IMPORTED_MODULE_3__polar_PolarAngleAxis__.a 40354 }, { 40355 axisType: "radiusAxis", 40356 AxisComp: __WEBPACK_IMPORTED_MODULE_4__polar_PolarRadiusAxis__.a 40357 } ], 40358 formatAxisMap: __WEBPACK_IMPORTED_MODULE_5__util_PolarUtils__.b, 40359 defaultProps: { 40360 layout: "centric", 40361 startAngle: 90, 40362 endAngle: -270, 40363 cx: "50%", 40364 cy: "50%", 40365 innerRadius: 0, 40366 outerRadius: "80%" 40367 }, 40368 propTypes: { 40369 layout: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOf([ "centric" ]), 40370 startAngle: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, 40371 endAngle: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, 40372 cx: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string ]), 40373 cy: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string ]), 40374 innerRadius: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string ]), 40375 outerRadius: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string ]) 40376 } 40377 }); 40378 }, function(module, __webpack_exports__, __webpack_require__) { 40379 "use strict"; 40380 var __WEBPACK_IMPORTED_MODULE_0__generateCategoricalChart__ = __webpack_require__(48), __WEBPACK_IMPORTED_MODULE_1__cartesian_Scatter__ = __webpack_require__(218), __WEBPACK_IMPORTED_MODULE_2__cartesian_XAxis__ = __webpack_require__(72), __WEBPACK_IMPORTED_MODULE_3__cartesian_YAxis__ = __webpack_require__(73), __WEBPACK_IMPORTED_MODULE_4__cartesian_ZAxis__ = __webpack_require__(142), __WEBPACK_IMPORTED_MODULE_5__util_CartesianUtils__ = __webpack_require__(96); 40381 __webpack_exports__.a = Object(__WEBPACK_IMPORTED_MODULE_0__generateCategoricalChart__.a)({ 40382 chartName: "ScatterChart", 40383 GraphicalChild: __WEBPACK_IMPORTED_MODULE_1__cartesian_Scatter__.a, 40384 eventType: "single", 40385 axisComponents: [ { 40386 axisType: "xAxis", 40387 AxisComp: __WEBPACK_IMPORTED_MODULE_2__cartesian_XAxis__.a 40388 }, { 40389 axisType: "yAxis", 40390 AxisComp: __WEBPACK_IMPORTED_MODULE_3__cartesian_YAxis__.a 40391 }, { 40392 axisType: "zAxis", 40393 AxisComp: __WEBPACK_IMPORTED_MODULE_4__cartesian_ZAxis__.a 40394 } ], 40395 formatAxisMap: __WEBPACK_IMPORTED_MODULE_5__util_CartesianUtils__.a 40396 }); 40397 }, function(module, __webpack_exports__, __webpack_require__) { 40398 "use strict"; 40399 var __WEBPACK_IMPORTED_MODULE_0__generateCategoricalChart__ = __webpack_require__(48), __WEBPACK_IMPORTED_MODULE_1__cartesian_Area__ = __webpack_require__(216), __WEBPACK_IMPORTED_MODULE_2__cartesian_XAxis__ = __webpack_require__(72), __WEBPACK_IMPORTED_MODULE_3__cartesian_YAxis__ = __webpack_require__(73), __WEBPACK_IMPORTED_MODULE_4__util_CartesianUtils__ = __webpack_require__(96); 40400 __webpack_exports__.a = Object(__WEBPACK_IMPORTED_MODULE_0__generateCategoricalChart__.a)({ 40401 chartName: "AreaChart", 40402 GraphicalChild: __WEBPACK_IMPORTED_MODULE_1__cartesian_Area__.a, 40403 axisComponents: [ { 40404 axisType: "xAxis", 40405 AxisComp: __WEBPACK_IMPORTED_MODULE_2__cartesian_XAxis__.a 40406 }, { 40407 axisType: "yAxis", 40408 AxisComp: __WEBPACK_IMPORTED_MODULE_3__cartesian_YAxis__.a 40409 } ], 40410 formatAxisMap: __WEBPACK_IMPORTED_MODULE_4__util_CartesianUtils__.a 40411 }); 40412 }, function(module, __webpack_exports__, __webpack_require__) { 40413 "use strict"; 40414 var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(1), __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__), __WEBPACK_IMPORTED_MODULE_1__generateCategoricalChart__ = __webpack_require__(48), __WEBPACK_IMPORTED_MODULE_2__polar_PolarAngleAxis__ = __webpack_require__(141), __WEBPACK_IMPORTED_MODULE_3__polar_PolarRadiusAxis__ = __webpack_require__(140), __WEBPACK_IMPORTED_MODULE_4__util_PolarUtils__ = __webpack_require__(23), __WEBPACK_IMPORTED_MODULE_5__polar_RadialBar__ = __webpack_require__(371); 40415 __webpack_exports__.a = Object(__WEBPACK_IMPORTED_MODULE_1__generateCategoricalChart__.a)({ 40416 chartName: "RadialBarChart", 40417 GraphicalChild: __WEBPACK_IMPORTED_MODULE_5__polar_RadialBar__.a, 40418 legendContent: "children", 40419 axisComponents: [ { 40420 axisType: "angleAxis", 40421 AxisComp: __WEBPACK_IMPORTED_MODULE_2__polar_PolarAngleAxis__.a 40422 }, { 40423 axisType: "radiusAxis", 40424 AxisComp: __WEBPACK_IMPORTED_MODULE_3__polar_PolarRadiusAxis__.a 40425 } ], 40426 formatAxisMap: __WEBPACK_IMPORTED_MODULE_4__util_PolarUtils__.b, 40427 defaultProps: { 40428 layout: "radial", 40429 startAngle: 0, 40430 endAngle: 360, 40431 cx: "50%", 40432 cy: "50%", 40433 innerRadius: 0, 40434 outerRadius: "80%" 40435 }, 40436 propTypes: { 40437 layout: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOf([ "radial" ]), 40438 startAngle: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, 40439 endAngle: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, 40440 cx: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string ]), 40441 cy: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string ]), 40442 innerRadius: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string ]), 40443 outerRadius: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string ]) 40444 } 40445 }); 40446 }, function(module, __webpack_exports__, __webpack_require__) { 40447 "use strict"; 40448 var __WEBPACK_IMPORTED_MODULE_0__generateCategoricalChart__ = __webpack_require__(48), __WEBPACK_IMPORTED_MODULE_1__cartesian_Area__ = __webpack_require__(216), __WEBPACK_IMPORTED_MODULE_2__cartesian_Bar__ = __webpack_require__(217), __WEBPACK_IMPORTED_MODULE_3__cartesian_Line__ = __webpack_require__(215), __WEBPACK_IMPORTED_MODULE_4__cartesian_Scatter__ = __webpack_require__(218), __WEBPACK_IMPORTED_MODULE_5__cartesian_XAxis__ = __webpack_require__(72), __WEBPACK_IMPORTED_MODULE_6__cartesian_YAxis__ = __webpack_require__(73), __WEBPACK_IMPORTED_MODULE_7__cartesian_ZAxis__ = __webpack_require__(142), __WEBPACK_IMPORTED_MODULE_8__util_CartesianUtils__ = __webpack_require__(96); 40449 __webpack_exports__.a = Object(__WEBPACK_IMPORTED_MODULE_0__generateCategoricalChart__.a)({ 40450 chartName: "ComposedChart", 40451 GraphicalChild: [ __WEBPACK_IMPORTED_MODULE_3__cartesian_Line__.a, __WEBPACK_IMPORTED_MODULE_1__cartesian_Area__.a, __WEBPACK_IMPORTED_MODULE_2__cartesian_Bar__.a, __WEBPACK_IMPORTED_MODULE_4__cartesian_Scatter__.a ], 40452 axisComponents: [ { 40453 axisType: "xAxis", 40454 AxisComp: __WEBPACK_IMPORTED_MODULE_5__cartesian_XAxis__.a 40455 }, { 40456 axisType: "yAxis", 40457 AxisComp: __WEBPACK_IMPORTED_MODULE_6__cartesian_YAxis__.a 40458 }, { 40459 axisType: "zAxis", 40460 AxisComp: __WEBPACK_IMPORTED_MODULE_7__cartesian_ZAxis__.a 40461 } ], 40462 formatAxisMap: __WEBPACK_IMPORTED_MODULE_8__util_CartesianUtils__.a 40463 }); 40464 }, function(module, exports, __webpack_require__) { 40465 "use strict"; 40466 function _interopRequireDefault(obj) { 40467 return obj && obj.__esModule ? obj : { 40468 default: obj 40469 }; 40470 } 40471 function _classCallCheck(instance, Constructor) { 40472 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 40473 } 40474 function _possibleConstructorReturn(self, call) { 40475 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 40476 return !call || "object" != typeof call && "function" != typeof call ? self : call; 40477 } 40478 function _inherits(subClass, superClass) { 40479 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 40480 subClass.prototype = Object.create(superClass && superClass.prototype, { 40481 constructor: { 40482 value: subClass, 40483 enumerable: !1, 40484 writable: !0, 40485 configurable: !0 40486 } 40487 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 40488 } 40489 Object.defineProperty(exports, "__esModule", { 40490 value: !0 40491 }); 40492 var _createClass = function() { 40493 function defineProperties(target, props) { 40494 for (var i = 0; i < props.length; i++) { 40495 var descriptor = props[i]; 40496 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 40497 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 40498 } 40499 } 40500 return function(Constructor, protoProps, staticProps) { 40501 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 40502 Constructor; 40503 }; 40504 }(), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _Grid = __webpack_require__(262), _Grid2 = _interopRequireDefault(_Grid), styles = { 40505 container: { 40506 flexWrap: "nowrap", 40507 height: "100%", 40508 maxWidth: "100%", 40509 margin: 0 40510 }, 40511 item: { 40512 flex: 1, 40513 padding: 0 40514 } 40515 }, ChartRow = function(_Component) { 40516 function ChartRow() { 40517 return _classCallCheck(this, ChartRow), _possibleConstructorReturn(this, (ChartRow.__proto__ || Object.getPrototypeOf(ChartRow)).apply(this, arguments)); 40518 } 40519 return _inherits(ChartRow, _Component), _createClass(ChartRow, [ { 40520 key: "render", 40521 value: function() { 40522 return _react2.default.createElement(_Grid2.default, { 40523 container: !0, 40524 direction: "row", 40525 style: styles.container, 40526 justify: "space-between" 40527 }, _react2.default.Children.map(this.props.children, function(child) { 40528 return _react2.default.createElement(_Grid2.default, { 40529 item: !0, 40530 xs: !0, 40531 style: styles.item 40532 }, child); 40533 })); 40534 } 40535 } ]), ChartRow; 40536 }(_react.Component); 40537 exports.default = ChartRow; 40538 }, function(module, exports, __webpack_require__) { 40539 "use strict"; 40540 function _interopRequireDefault(obj) { 40541 return obj && obj.__esModule ? obj : { 40542 default: obj 40543 }; 40544 } 40545 function _classCallCheck(instance, Constructor) { 40546 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 40547 } 40548 function _possibleConstructorReturn(self, call) { 40549 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 40550 return !call || "object" != typeof call && "function" != typeof call ? self : call; 40551 } 40552 function _inherits(subClass, superClass) { 40553 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 40554 subClass.prototype = Object.create(superClass && superClass.prototype, { 40555 constructor: { 40556 value: subClass, 40557 enumerable: !1, 40558 writable: !0, 40559 configurable: !0 40560 } 40561 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 40562 } 40563 Object.defineProperty(exports, "__esModule", { 40564 value: !0 40565 }), exports.bytePerSecPlotter = exports.bytePlotter = exports.percentPlotter = exports.multiplier = void 0; 40566 var _createClass = function() { 40567 function defineProperties(target, props) { 40568 for (var i = 0; i < props.length; i++) { 40569 var descriptor = props[i]; 40570 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 40571 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 40572 } 40573 } 40574 return function(Constructor, protoProps, staticProps) { 40575 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 40576 Constructor; 40577 }; 40578 }(), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _Typography = __webpack_require__(113), _Typography2 = _interopRequireDefault(_Typography), _common = __webpack_require__(81), multiplier = exports.multiplier = function() { 40579 var by = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 1; 40580 return function(x) { 40581 return x * by; 40582 }; 40583 }, unit = (exports.percentPlotter = function(text) { 40584 var mapper = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : multiplier(1); 40585 return function(payload) { 40586 var p = mapper(payload); 40587 return "number" != typeof p ? null : _react2.default.createElement(_Typography2.default, { 40588 type: "caption", 40589 color: "inherit" 40590 }, _react2.default.createElement("span", { 40591 style: _common.styles.light 40592 }, text), " ", p.toFixed(2), " %"); 40593 }; 40594 }, [ "", "Ki", "Mi", "Gi", "Ti", "Pi", "Ei", "Zi", "Yi" ]), simplifyBytes = function(x) { 40595 for (var i = 0; x > 1024 && i < 8; i++) x /= 1024; 40596 return x.toFixed(2).toString().concat(" ", unit[i], "B"); 40597 }, CustomTooltip = (exports.bytePlotter = function(text) { 40598 var mapper = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : multiplier(1); 40599 return function(payload) { 40600 var p = mapper(payload); 40601 return "number" != typeof p ? null : _react2.default.createElement(_Typography2.default, { 40602 type: "caption", 40603 color: "inherit" 40604 }, _react2.default.createElement("span", { 40605 style: _common.styles.light 40606 }, text), " ", simplifyBytes(p)); 40607 }; 40608 }, exports.bytePerSecPlotter = function(text) { 40609 var mapper = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : multiplier(1); 40610 return function(payload) { 40611 var p = mapper(payload); 40612 return "number" != typeof p ? null : _react2.default.createElement(_Typography2.default, { 40613 type: "caption", 40614 color: "inherit" 40615 }, _react2.default.createElement("span", { 40616 style: _common.styles.light 40617 }, text), " ", simplifyBytes(p), "/s"); 40618 }; 40619 }, function(_Component) { 40620 function CustomTooltip() { 40621 return _classCallCheck(this, CustomTooltip), _possibleConstructorReturn(this, (CustomTooltip.__proto__ || Object.getPrototypeOf(CustomTooltip)).apply(this, arguments)); 40622 } 40623 return _inherits(CustomTooltip, _Component), _createClass(CustomTooltip, [ { 40624 key: "render", 40625 value: function() { 40626 var _props = this.props, active = _props.active, payload = _props.payload, tooltip = _props.tooltip; 40627 return !active || "function" != typeof tooltip || !Array.isArray(payload) || payload.length < 1 ? null : tooltip(payload[0].value); 40628 } 40629 } ]), CustomTooltip; 40630 }(_react.Component)); 40631 exports.default = CustomTooltip; 40632 } ]);`))))))))))) 40633 40634 func bundleJsBytes() ([]byte, error) { 40635 return _bundleJs, nil 40636 } 40637 40638 func bundleJs() (*asset, error) { 40639 bytes, err := bundleJsBytes() 40640 if err != nil { 40641 return nil, err 40642 } 40643 40644 info := bindataFileInfo{name: "bundle.js", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} 40645 a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xef, 0x26, 0x2b, 0x98, 0x2d, 0xce, 0x9a, 0x8f, 0x9a, 0x5e, 0x37, 0x64, 0x5c, 0x70, 0xa2, 0xeb, 0x44, 0xb1, 0x6d, 0x8b, 0x8e, 0x95, 0x34, 0x14, 0x7a, 0x79, 0x4f, 0x8, 0xc3, 0xb3, 0x5, 0x3}} 40646 return a, nil 40647 } 40648 40649 //资产加载并返回给定名称的资产。 40650 //如果找不到资产或 40651 //无法加载。 40652 func Asset(name string) ([]byte, error) { 40653 canonicalName := strings.Replace(name, "\\", "/", -1) 40654 if f, ok := _bindata[canonicalName]; ok { 40655 a, err := f() 40656 if err != nil { 40657 return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err) 40658 } 40659 return a.bytes, nil 40660 } 40661 return nil, fmt.Errorf("Asset %s not found", name) 40662 } 40663 40664 //asset string以字符串的形式返回资产内容(而不是以[]字节的形式)。 40665 func AssetString(name string) (string, error) { 40666 data, err := Asset(name) 40667 return string(data), err 40668 } 40669 40670 //mustasset与asset类似,但在asset返回错误时会出现恐慌。 40671 //它简化了全局变量的安全初始化。 40672 func MustAsset(name string) []byte { 40673 a, err := Asset(name) 40674 if err != nil { 40675 panic("asset: Asset(" + name + "): " + err.Error()) 40676 } 40677 40678 return a 40679 } 40680 40681 //mustassetstring就像assetstring,但当asset返回 40682 //错误。它简化了全局变量的安全初始化。 40683 func MustAssetString(name string) string { 40684 return string(MustAsset(name)) 40685 } 40686 40687 //asset info加载并返回给定名称的资产信息。 40688 //如果找不到资产或 40689 //无法加载。 40690 func AssetInfo(name string) (os.FileInfo, error) { 40691 canonicalName := strings.Replace(name, "\\", "/", -1) 40692 if f, ok := _bindata[canonicalName]; ok { 40693 a, err := f() 40694 if err != nil { 40695 return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err) 40696 } 40697 return a.info, nil 40698 } 40699 return nil, fmt.Errorf("AssetInfo %s not found", name) 40700 } 40701 40702 //assetdigest返回具有给定名称的文件摘要。它返回一个 40703 //如果找不到资产或无法加载摘要,则出错。 40704 func AssetDigest(name string) ([sha256.Size]byte, error) { 40705 canonicalName := strings.Replace(name, "\\", "/", -1) 40706 if f, ok := _bindata[canonicalName]; ok { 40707 a, err := f() 40708 if err != nil { 40709 return [sha256.Size]byte{}, fmt.Errorf("AssetDigest %s can't read by error: %v", name, err) 40710 } 40711 return a.digest, nil 40712 } 40713 return [sha256.Size]byte{}, fmt.Errorf("AssetDigest %s not found", name) 40714 } 40715 40716 //Digests返回所有已知文件及其校验和的映射。 40717 func Digests() (map[string][sha256.Size]byte, error) { 40718 mp := make(map[string][sha256.Size]byte, len(_bindata)) 40719 for name := range _bindata { 40720 a, err := _bindata[name]() 40721 if err != nil { 40722 return nil, err 40723 } 40724 mp[name] = a.digest 40725 } 40726 return mp, nil 40727 } 40728 40729 //assetnames返回资产的名称。 40730 func AssetNames() []string { 40731 names := make([]string, 0, len(_bindata)) 40732 for name := range _bindata { 40733 names = append(names, name) 40734 } 40735 return names 40736 } 40737 40738 //_bindata是一个表,包含每个资产生成器,映射到其名称。 40739 var _bindata = map[string]func() (*asset, error){ 40740 "index.html": indexHtml, 40741 40742 "bundle.js": bundleJs, 40743 } 40744 40745 //assetdir返回某个 40746 //通过go bindata嵌入到文件中的目录。 40747 //例如,如果对数据/运行go bindata。数据包含 40748 //以下层次结构: 40749 //数据/ 40750 //英尺·txt 40751 //IMG/ 40752 //A.PNG 40753 //B.PNG 40754 //然后assetdir(“data”)将返回[]字符串“foo.txt”,“img”, 40755 //assetdir(“data/img”)将返回[]字符串“a.png”、“b.png”, 40756 //assetdir(“foo.txt”)和assetdir(“notexist”)将返回错误,以及 40757 //assetdir(“”)将返回[]字符串“data”。 40758 func AssetDir(name string) ([]string, error) { 40759 node := _bintree 40760 if len(name) != 0 { 40761 canonicalName := strings.Replace(name, "\\", "/", -1) 40762 pathList := strings.Split(canonicalName, "/") 40763 for _, p := range pathList { 40764 node = node.Children[p] 40765 if node == nil { 40766 return nil, fmt.Errorf("Asset %s not found", name) 40767 } 40768 } 40769 } 40770 if node.Func != nil { 40771 return nil, fmt.Errorf("Asset %s not found", name) 40772 } 40773 rv := make([]string, 0, len(node.Children)) 40774 for childName := range node.Children { 40775 rv = append(rv, childName) 40776 } 40777 return rv, nil 40778 } 40779 40780 type bintree struct { 40781 Func func() (*asset, error) 40782 Children map[string]*bintree 40783 } 40784 40785 var _bintree = &bintree{nil, map[string]*bintree{ 40786 "bundle.js": {bundleJs, map[string]*bintree{}}, 40787 "index.html": {indexHtml, map[string]*bintree{}}, 40788 }} 40789 40790 //restoreset恢复给定目录下的资产。 40791 func RestoreAsset(dir, name string) error { 40792 data, err := Asset(name) 40793 if err != nil { 40794 return err 40795 } 40796 info, err := AssetInfo(name) 40797 if err != nil { 40798 return err 40799 } 40800 err = os.MkdirAll(_filePath(dir, filepath.Dir(name)), os.FileMode(0755)) 40801 if err != nil { 40802 return err 40803 } 40804 err = ioutil.WriteFile(_filePath(dir, name), data, info.Mode()) 40805 if err != nil { 40806 return err 40807 } 40808 return os.Chtimes(_filePath(dir, name), info.ModTime(), info.ModTime()) 40809 } 40810 40811 //restoresets递归地还原给定目录下的资产。 40812 func RestoreAssets(dir, name string) error { 40813 children, err := AssetDir(name) 40814 //文件 40815 if err != nil { 40816 return RestoreAsset(dir, name) 40817 } 40818 //迪尔 40819 for _, child := range children { 40820 err = RestoreAssets(dir, filepath.Join(name, child)) 40821 if err != nil { 40822 return err 40823 } 40824 } 40825 return nil 40826 } 40827 40828 func _filePath(dir, name string) string { 40829 canonicalName := strings.Replace(name, "\\", "/", -1) 40830 return filepath.Join(append([]string{dir}, strings.Split(canonicalName, "/")...)...) 40831 } 40832