github.com/yinchengtsinghua/golang-Eos-dpos-Ethereum@v0.0.0-20190121132951-92cc4225ed8e/dashboard/assets.go (about) 1 2 //此源码被清华学神尹成大魔王专业翻译分析并修改 3 //尹成QQ77025077 4 //尹成微信18510341407 5 //尹成所在QQ群721929980 6 //尹成邮箱 yinc13@mails.tsinghua.edu.cn 7 //尹成毕业于清华大学,微软区块链领域全球最有价值专家 8 //https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 9 //由go bindata生成的代码。不要编辑。 10 //资料来源: 11 //资产/index.html 12 //资产/捆绑.js 13 14 package dashboard 15 16 import ( 17 "crypto/sha256" 18 "fmt" 19 "io/ioutil" 20 "os" 21 "path/filepath" 22 "strings" 23 "time" 24 ) 25 26 type asset struct { 27 bytes []byte 28 info os.FileInfo 29 digest [sha256.Size]byte 30 } 31 32 type bindataFileInfo struct { 33 name string 34 size int64 35 mode os.FileMode 36 modTime time.Time 37 } 38 39 func (fi bindataFileInfo) Name() string { 40 return fi.name 41 } 42 func (fi bindataFileInfo) Size() int64 { 43 return fi.size 44 } 45 func (fi bindataFileInfo) Mode() os.FileMode { 46 return fi.mode 47 } 48 func (fi bindataFileInfo) ModTime() time.Time { 49 return fi.modTime 50 } 51 func (fi bindataFileInfo) IsDir() bool { 52 return false 53 } 54 func (fi bindataFileInfo) Sys() interface{} { 55 return nil 56 } 57 58 //诺林特:拼错 59 var _indexHtml = []byte(`<!DOCTYPE html> 60 <html lang="en" style="height: 100%"> 61 <head> 62 <meta charset="UTF-8"> 63 <meta http-equiv="X-UA-Compatible" content="IE=edge"> 64 <meta name="viewport" content="width=device-width, initial-scale=1"> 65 66 <title>Go Ethereum Dashboard</title> 67 <link rel="shortcut icon" type="image/ico" href="https://Org/Favigim.ICO//> 68 <style> 69 ::-webkit-scrollbar { 70 width: 16px; 71 } 72 ::-webkit-scrollbar-thumb { 73 background: #212121; 74 } 75 ::-webkit-scrollbar-corner { 76 background: transparent; 77 } 78 </style> 79 </head> 80 <body style="height: 100%; margin: 0"> 81 <div id="dashboard" style="height: 100%"></div> 82 <script src="bundle.js"></script> 83 </body> 84 </html> 85 `) 86 87 func indexHtmlBytes() ([]byte, error) { 88 return _indexHtml, nil 89 } 90 91 func indexHtml() (*asset, error) { 92 bytes, err := indexHtmlBytes() 93 if err != nil { 94 return nil, err 95 } 96 97 info := bindataFileInfo{name: "index.html", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} 98 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}} 99 return a, nil 100 } 101 102 //诺林特:拼错 103 var _bundleJs = []byte((((((((((`!function(modules) { 104 function __webpack_require__(moduleId) { 105 if (installedModules[moduleId]) return installedModules[moduleId].exports; 106 var module = installedModules[moduleId] = { 107 i: moduleId, 108 l: !1, 109 exports: {} 110 }; 111 return modules[moduleId].call(module.exports, module, module.exports, __webpack_require__), 112 module.l = !0, module.exports; 113 } 114 var installedModules = {}; 115 __webpack_require__.m = modules, __webpack_require__.c = installedModules, __webpack_require__.d = function(exports, name, getter) { 116 __webpack_require__.o(exports, name) || Object.defineProperty(exports, name, { 117 configurable: !1, 118 enumerable: !0, 119 get: getter 120 }); 121 }, __webpack_require__.n = function(module) { 122 var getter = module && module.__esModule ? function() { 123 return module.default; 124 } : function() { 125 return module; 126 }; 127 return __webpack_require__.d(getter, "a", getter), getter; 128 }, __webpack_require__.o = function(object, property) { 129 return Object.prototype.hasOwnProperty.call(object, property); 130 }, __webpack_require__.p = "", __webpack_require__(__webpack_require__.s = 375); 131 }([ function(module, exports, __webpack_require__) { 132 "use strict"; 133 (function(process) { 134 "production" === process.env.NODE_ENV ? module.exports = __webpack_require__(376) : module.exports = __webpack_require__(377); 135 }).call(exports, __webpack_require__(2)); 136 }, function(module, exports, __webpack_require__) { 137 (function(process) { 138 if ("production" !== process.env.NODE_ENV) { 139 var REACT_ELEMENT_TYPE = "function" == typeof Symbol && Symbol.for && Symbol.for("react.element") || 60103, isValidElement = function(object) { 140 return "object" == typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE; 141 }; 142 module.exports = __webpack_require__(418)(isValidElement, !0); 143 } else module.exports = __webpack_require__(419)(); 144 }).call(exports, __webpack_require__(2)); 145 }, function(module, exports) { 146 function defaultSetTimout() { 147 throw new Error("setTimeout has not been defined"); 148 } 149 function defaultClearTimeout() { 150 throw new Error("clearTimeout has not been defined"); 151 } 152 function runTimeout(fun) { 153 if (cachedSetTimeout === setTimeout) return setTimeout(fun, 0); 154 if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) return cachedSetTimeout = setTimeout, 155 setTimeout(fun, 0); 156 try { 157 return cachedSetTimeout(fun, 0); 158 } catch (e) { 159 try { 160 return cachedSetTimeout.call(null, fun, 0); 161 } catch (e) { 162 return cachedSetTimeout.call(this, fun, 0); 163 } 164 } 165 } 166 function runClearTimeout(marker) { 167 if (cachedClearTimeout === clearTimeout) return clearTimeout(marker); 168 if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) return cachedClearTimeout = clearTimeout, 169 clearTimeout(marker); 170 try { 171 return cachedClearTimeout(marker); 172 } catch (e) { 173 try { 174 return cachedClearTimeout.call(null, marker); 175 } catch (e) { 176 return cachedClearTimeout.call(this, marker); 177 } 178 } 179 } 180 function cleanUpNextTick() { 181 draining && currentQueue && (draining = !1, currentQueue.length ? queue = currentQueue.concat(queue) : queueIndex = -1, 182 queue.length && drainQueue()); 183 } 184 function drainQueue() { 185 if (!draining) { 186 var timeout = runTimeout(cleanUpNextTick); 187 draining = !0; 188 for (var len = queue.length; len; ) { 189 for (currentQueue = queue, queue = []; ++queueIndex < len; ) currentQueue && currentQueue[queueIndex].run(); 190 queueIndex = -1, len = queue.length; 191 } 192 currentQueue = null, draining = !1, runClearTimeout(timeout); 193 } 194 } 195 function Item(fun, array) { 196 this.fun = fun, this.array = array; 197 } 198 function noop() {} 199 var cachedSetTimeout, cachedClearTimeout, process = module.exports = {}; 200 !function() { 201 try { 202 cachedSetTimeout = "function" == typeof setTimeout ? setTimeout : defaultSetTimout; 203 } catch (e) { 204 cachedSetTimeout = defaultSetTimout; 205 } 206 try { 207 cachedClearTimeout = "function" == typeof clearTimeout ? clearTimeout : defaultClearTimeout; 208 } catch (e) { 209 cachedClearTimeout = defaultClearTimeout; 210 } 211 }(); 212 var currentQueue, queue = [], draining = !1, queueIndex = -1; 213 process.nextTick = function(fun) { 214 var args = new Array(arguments.length - 1); 215 if (arguments.length > 1) for (var i = 1; i < arguments.length; i++) args[i - 1] = arguments[i]; 216 queue.push(new Item(fun, args)), 1 !== queue.length || draining || runTimeout(drainQueue); 217 }, Item.prototype.run = function() { 218 this.fun.apply(null, this.array); 219 }, process.title = "browser", process.browser = !0, process.env = {}, process.argv = [], 220 process.version = "", process.versions = {}, process.on = noop, process.addListener = noop, 221 process.once = noop, process.off = noop, process.removeListener = noop, process.removeAllListeners = noop, 222 process.emit = noop, process.prependListener = noop, process.prependOnceListener = noop, 223 process.listeners = function(name) { 224 return []; 225 }, process.binding = function(name) { 226 throw new Error("process.binding is not supported"); 227 }, process.cwd = function() { 228 return "/"; 229 }, process.chdir = function(dir) { 230 throw new Error("process.chdir is not supported"); 231 }, process.umask = function() { 232 return 0; 233 }; 234 }, function(module, exports, __webpack_require__) { 235 var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; 236 !function() { 237 "use strict"; 238 function classNames() { 239 for (var classes = [], i = 0; i < arguments.length; i++) { 240 var arg = arguments[i]; 241 if (arg) { 242 var argType = typeof arg; 243 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); 244 } 245 } 246 return classes.join(" "); 247 } 248 var hasOwn = {}.hasOwnProperty; 249 void 0 !== module && module.exports ? module.exports = classNames : (__WEBPACK_AMD_DEFINE_ARRAY__ = [], 250 void 0 !== (__WEBPACK_AMD_DEFINE_RESULT__ = function() { 251 return classNames; 252 }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); 253 }(); 254 }, function(module, __webpack_exports__, __webpack_require__) { 255 "use strict"; 256 function _toConsumableArray(arr) { 257 if (Array.isArray(arr)) { 258 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; 259 return arr2; 260 } 261 return Array.from(arr); 262 } 263 function _objectWithoutProperties(obj, keys) { 264 var target = {}; 265 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 266 return target; 267 } 268 __webpack_require__.d(__webpack_exports__, "c", function() { 269 return PRESENTATION_ATTRIBUTES; 270 }), __webpack_require__.d(__webpack_exports__, "a", function() { 271 return EVENT_ATTRIBUTES; 272 }), __webpack_require__.d(__webpack_exports__, "d", function() { 273 return SCALE_TYPES; 274 }), __webpack_require__.d(__webpack_exports__, "b", function() { 275 return LEGEND_TYPES; 276 }), __webpack_require__.d(__webpack_exports__, "j", function() { 277 return getDisplayName; 278 }), __webpack_require__.d(__webpack_exports__, "h", function() { 279 return findAllByType; 280 }), __webpack_require__.d(__webpack_exports__, "i", function() { 281 return findChildByType; 282 }), __webpack_require__.d(__webpack_exports__, "k", function() { 283 return getPresentationAttributes; 284 }), __webpack_require__.d(__webpack_exports__, "e", function() { 285 return filterEventAttributes; 286 }), __webpack_require__.d(__webpack_exports__, "f", function() { 287 return filterEventsOfChild; 288 }), __webpack_require__.d(__webpack_exports__, "q", function() { 289 return validateWidthHeight; 290 }), __webpack_require__.d(__webpack_exports__, "n", function() { 291 return isSsr; 292 }), __webpack_require__.d(__webpack_exports__, "g", function() { 293 return filterSvgElements; 294 }), __webpack_require__.d(__webpack_exports__, "m", function() { 295 return isChildrenEqual; 296 }), __webpack_require__.d(__webpack_exports__, "p", function() { 297 return renderByOrder; 298 }), __webpack_require__.d(__webpack_exports__, "l", function() { 299 return getReactEventByType; 300 }), __webpack_require__.d(__webpack_exports__, "o", function() { 301 return parseChildIndex; 302 }); 303 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 = { 304 alignmentBaseline: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 305 angle: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 306 baselineShift: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 307 clip: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 308 clipPath: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 309 clipRule: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 310 color: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 311 colorInterpolation: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 312 colorInterpolationFilters: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 313 colorProfile: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 314 colorRendering: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 315 cursor: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 316 direction: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "ltr", "rtl", "inherit" ]), 317 display: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 318 dominantBaseline: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 319 enableBackground: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 320 fill: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 321 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 ]), 322 fillRule: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "nonzero", "evenodd", "inherit" ]), 323 filter: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 324 floodColor: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 325 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 ]), 326 font: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 327 fontFamily: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 328 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 ]), 329 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 ]), 330 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" ]), 331 fontStyle: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "normal", "italic", "oblique", "inherit" ]), 332 fontVariant: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "normal", "small-caps", "inherit" ]), 333 fontWeight: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "normal", "bold", "bolder", "lighter", 100, 200, 300, 400, 500, 600, 700, 800, 900, "inherit" ]), 334 glyphOrientationHorizontal: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 335 glyphOrientationVertical: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 336 imageRendering: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "auto", "optimizeSpeed", "optimizeQuality", "inherit" ]), 337 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 ]), 338 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 ]), 339 lightingColor: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 340 markerEnd: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 341 markerMid: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 342 markerStart: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 343 mask: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 344 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 ]), 345 overflow: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "visible", "hidden", "scroll", "auto", "inherit" ]), 346 pointerEvents: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "visiblePainted", "visibleFill", "visibleStroke", "visible", "painted", "fill", "stroke", "all", "none", "inherit" ]), 347 shapeRendering: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "auto", "optimizeSpeed", "crispEdges", "geometricPrecision", "inherit" ]), 348 stopColor: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 349 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 ]), 350 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 ]), 351 strokeDasharray: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 352 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 ]), 353 strokeLinecap: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "butt", "round", "square", "inherit" ]), 354 strokeLinejoin: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "miter", "round", "bevel", "inherit" ]), 355 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 ]), 356 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 ]), 357 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 ]), 358 textAnchor: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "start", "middle", "end", "inherit" ]), 359 textDecoration: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "none", "underline", "overline", "line-through", "blink", "inherit" ]), 360 textRendering: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "auto", "optimizeSpeed", "optimizeLegibility", "geometricPrecision", "inherit" ]), 361 unicodeBidi: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "normal", "embed", "bidi-override", "inherit" ]), 362 visibility: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "visible", "hidden", "collapse", "inherit" ]), 363 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 ]), 364 writingMode: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "lr-tb", "rl-tb", "tb-rl", "lr", "rl", "tb", "inherit" ]), 365 transform: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 366 style: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object, 367 width: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 368 height: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 369 dx: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 370 dy: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 371 x: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 372 y: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 373 r: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 374 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 ]) 375 }, EVENT_ATTRIBUTES = { 376 onClick: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 377 onMouseDown: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 378 onMouseUp: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 379 onMouseOver: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 380 onMouseMove: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 381 onMouseOut: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 382 onMouseEnter: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 383 onMouseLeave: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 384 onTouchEnd: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 385 onTouchMove: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 386 onTouchStart: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 387 onTouchCancel: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func 388 }, REACT_BROWSER_EVENT_MAP = { 389 click: "onClick", 390 mousedown: "onMouseDown", 391 mouseup: "onMouseUp", 392 mouseover: "onMouseOver", 393 mousemove: "onMouseMove", 394 mouseout: "onMouseOut", 395 mouseenter: "onMouseEnter", 396 mouseleave: "onMouseLeave", 397 touchcancel: "onTouchCancel", 398 touchend: "onTouchEnd", 399 touchmove: "onTouchMove", 400 touchstart: "onTouchStart" 401 }, 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) { 402 return Comp ? "string" == typeof Comp ? Comp : Comp.displayName || Comp.name || "Component" : ""; 403 }, findAllByType = function(children, type) { 404 var result = [], types = []; 405 return types = __WEBPACK_IMPORTED_MODULE_4_lodash_isArray___default()(type) ? type.map(function(t) { 406 return getDisplayName(t); 407 }) : [ getDisplayName(type) ], __WEBPACK_IMPORTED_MODULE_5_react___default.a.Children.forEach(children, function(child) { 408 var childType = child && child.type && (child.type.displayName || child.type.name); 409 -1 !== types.indexOf(childType) && result.push(child); 410 }), result; 411 }, findChildByType = function(children, type) { 412 var result = findAllByType(children, type); 413 return result && result[0]; 414 }, getPresentationAttributes = function(el) { 415 if (!el || __WEBPACK_IMPORTED_MODULE_3_lodash_isFunction___default()(el)) return null; 416 var props = __WEBPACK_IMPORTED_MODULE_5_react___default.a.isValidElement(el) ? el.props : el; 417 if (!__WEBPACK_IMPORTED_MODULE_2_lodash_isObject___default()(props)) return null; 418 var out = null; 419 for (var i in props) ({}).hasOwnProperty.call(props, i) && PRESENTATION_ATTRIBUTES[i] && (out || (out = {}), 420 out[i] = props[i]); 421 return out; 422 }, getEventHandlerOfElement = function(originalHandler, props) { 423 return function(e) { 424 return originalHandler(props, e), null; 425 }; 426 }, filterEventAttributes = function(el, newHandler) { 427 var wrapCallback = arguments.length > 2 && void 0 !== arguments[2] && arguments[2]; 428 if (!el || __WEBPACK_IMPORTED_MODULE_3_lodash_isFunction___default()(el)) return null; 429 var props = __WEBPACK_IMPORTED_MODULE_5_react___default.a.isValidElement(el) ? el.props : el; 430 if (!__WEBPACK_IMPORTED_MODULE_2_lodash_isObject___default()(props)) return null; 431 var out = null; 432 for (var i in props) ({}).hasOwnProperty.call(props, i) && EVENT_ATTRIBUTES[i] && (out || (out = {}), 433 out[i] = newHandler || (wrapCallback ? getEventHandlerOfElement(props[i], props) : props[i])); 434 return out; 435 }, getEventHandlerOfChild = function(originalHandler, data, index) { 436 return function(e) { 437 return originalHandler(data, index, e), null; 438 }; 439 }, filterEventsOfChild = function(props, data, index) { 440 if (!__WEBPACK_IMPORTED_MODULE_2_lodash_isObject___default()(props)) return null; 441 var out = null; 442 for (var i in props) ({}).hasOwnProperty.call(props, i) && EVENT_ATTRIBUTES[i] && __WEBPACK_IMPORTED_MODULE_3_lodash_isFunction___default()(props[i]) && (out || (out = {}), 443 out[i] = getEventHandlerOfChild(props[i], data, index)); 444 return out; 445 }, validateWidthHeight = function(el) { 446 if (!el || !el.props) return !1; 447 var _el$props = el.props, width = _el$props.width, height = _el$props.height; 448 return !(!Object(__WEBPACK_IMPORTED_MODULE_7__DataUtils__.h)(width) || width <= 0 || !Object(__WEBPACK_IMPORTED_MODULE_7__DataUtils__.h)(height) || height <= 0); 449 }, isSsr = function() { 450 return !("undefined" != typeof window && window.document && window.document.createElement && window.setTimeout); 451 }, 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) { 452 return child && child.type && __WEBPACK_IMPORTED_MODULE_1_lodash_isString___default()(child.type) && SVG_TAGS.indexOf(child.type) >= 0; 453 }, filterSvgElements = function(children) { 454 var svgElements = []; 455 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.Children.forEach(children, function(entry) { 456 entry && entry.type && __WEBPACK_IMPORTED_MODULE_1_lodash_isString___default()(entry.type) && SVG_TAGS.indexOf(entry.type) >= 0 && svgElements.push(entry); 457 }), svgElements; 458 }, isSingleChildEqual = function(nextChild, prevChild) { 459 if (__WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default()(nextChild) && __WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default()(prevChild)) return !0; 460 if (!__WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default()(nextChild) && !__WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default()(prevChild)) { 461 var _ref = nextChild.props || {}, nextChildren = _ref.children, nextProps = _objectWithoutProperties(_ref, [ "children" ]), _ref2 = prevChild.props || {}, prevChildren = _ref2.children, prevProps = _objectWithoutProperties(_ref2, [ "children" ]); 462 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); 463 } 464 return !1; 465 }, isChildrenEqual = function isChildrenEqual(nextChildren, prevChildren) { 466 if (nextChildren === prevChildren) return !0; 467 if (__WEBPACK_IMPORTED_MODULE_5_react__.Children.count(nextChildren) !== __WEBPACK_IMPORTED_MODULE_5_react__.Children.count(prevChildren)) return !1; 468 var count = __WEBPACK_IMPORTED_MODULE_5_react__.Children.count(nextChildren); 469 if (0 === count) return !0; 470 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); 471 for (var i = 0; i < count; i++) { 472 var nextChild = nextChildren[i], prevChild = prevChildren[i]; 473 if (__WEBPACK_IMPORTED_MODULE_4_lodash_isArray___default()(nextChild) || __WEBPACK_IMPORTED_MODULE_4_lodash_isArray___default()(prevChild)) { 474 if (!isChildrenEqual(nextChild, prevChild)) return !1; 475 } else if (!isSingleChildEqual(nextChild, prevChild)) return !1; 476 } 477 return !0; 478 }, renderByOrder = function(children, renderMap) { 479 var elements = [], record = {}; 480 return __WEBPACK_IMPORTED_MODULE_5_react__.Children.forEach(children, function(child, index) { 481 if (child && isSvgElement(child)) elements.push(child); else if (child && renderMap[getDisplayName(child.type)]) { 482 var displayName = getDisplayName(child.type), _renderMap$displayNam = renderMap[displayName], handler = _renderMap$displayNam.handler, once = _renderMap$displayNam.once; 483 if (once && !record[displayName] || !once) { 484 var results = handler(child, displayName, index); 485 __WEBPACK_IMPORTED_MODULE_4_lodash_isArray___default()(results) ? elements = [ elements ].concat(_toConsumableArray(results)) : elements.push(results), 486 record[displayName] = !0; 487 } 488 } 489 }), elements; 490 }, getReactEventByType = function(e) { 491 var type = e && e.type; 492 return type && REACT_BROWSER_EVENT_MAP[type] ? REACT_BROWSER_EVENT_MAP[type] : null; 493 }, parseChildIndex = function(child, children) { 494 var result = -1; 495 return __WEBPACK_IMPORTED_MODULE_5_react__.Children.forEach(children, function(entry, index) { 496 entry === child && (result = index); 497 }), result; 498 }; 499 }, function(module, __webpack_exports__, __webpack_require__) { 500 "use strict"; 501 function shallowEqual(a, b) { 502 for (var key in a) if ({}.hasOwnProperty.call(a, key) && (!{}.hasOwnProperty.call(b, key) || a[key] !== b[key])) return !1; 503 for (var _key in b) if ({}.hasOwnProperty.call(b, _key) && !{}.hasOwnProperty.call(a, _key)) return !1; 504 return !0; 505 } 506 function shouldComponentUpdate(props, state) { 507 return !shallowEqual(props, this.props) || !shallowEqual(state, this.state); 508 } 509 function pureRenderDecorator(component) { 510 component.prototype.shouldComponentUpdate = shouldComponentUpdate; 511 } 512 __webpack_exports__.b = shallowEqual, __webpack_exports__.a = pureRenderDecorator; 513 }, function(module, exports, __webpack_require__) { 514 "use strict"; 515 exports.__esModule = !0; 516 var _assign = __webpack_require__(222), _assign2 = function(obj) { 517 return obj && obj.__esModule ? obj : { 518 default: obj 519 }; 520 }(_assign); 521 exports.default = _assign2.default || function(target) { 522 for (var i = 1; i < arguments.length; i++) { 523 var source = arguments[i]; 524 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 525 } 526 return target; 527 }; 528 }, function(module, exports, __webpack_require__) { 529 "use strict"; 530 exports.__esModule = !0, exports.default = function(obj, keys) { 531 var target = {}; 532 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 533 return target; 534 }; 535 }, function(module, exports, __webpack_require__) { 536 function isFunction(value) { 537 if (!isObject(value)) return !1; 538 var tag = baseGetTag(value); 539 return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; 540 } 541 var baseGetTag = __webpack_require__(41), isObject = __webpack_require__(32), asyncTag = "[object AsyncFunction]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]"; 542 module.exports = isFunction; 543 }, function(module, __webpack_exports__, __webpack_require__) { 544 "use strict"; 545 __webpack_require__.d(__webpack_exports__, "j", function() { 546 return mathSign; 547 }), __webpack_require__.d(__webpack_exports__, "i", function() { 548 return isPercent; 549 }), __webpack_require__.d(__webpack_exports__, "h", function() { 550 return isNumber; 551 }), __webpack_require__.d(__webpack_exports__, "g", function() { 552 return isNumOrStr; 553 }), __webpack_require__.d(__webpack_exports__, "k", function() { 554 return uniqueId; 555 }), __webpack_require__.d(__webpack_exports__, "d", function() { 556 return getPercentValue; 557 }), __webpack_require__.d(__webpack_exports__, "b", function() { 558 return getAnyElementOfObject; 559 }), __webpack_require__.d(__webpack_exports__, "e", function() { 560 return hasDuplicate; 561 }), __webpack_require__.d(__webpack_exports__, "f", function() { 562 return interpolateNumber; 563 }), __webpack_require__.d(__webpack_exports__, "a", function() { 564 return findEntryInArray; 565 }), __webpack_require__.d(__webpack_exports__, "c", function() { 566 return getLinearRegression; 567 }); 568 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) { 569 return 0 === value ? 0 : value > 0 ? 1 : -1; 570 }, isPercent = function(value) { 571 return __WEBPACK_IMPORTED_MODULE_4_lodash_isString___default()(value) && value.indexOf("%") === value.length - 1; 572 }, isNumber = function(value) { 573 return __WEBPACK_IMPORTED_MODULE_3_lodash_isNumber___default()(value) && !__WEBPACK_IMPORTED_MODULE_2_lodash_isNaN___default()(value); 574 }, isNumOrStr = function(value) { 575 return isNumber(value) || __WEBPACK_IMPORTED_MODULE_4_lodash_isString___default()(value); 576 }, idCounter = 0, uniqueId = function(prefix) { 577 var id = ++idCounter; 578 return "" + (prefix || "") + id; 579 }, getPercentValue = function(percent, totalValue) { 580 var defaultValue = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 0, validate = arguments.length > 3 && void 0 !== arguments[3] && arguments[3]; 581 if (!isNumber(percent) && !__WEBPACK_IMPORTED_MODULE_4_lodash_isString___default()(percent)) return defaultValue; 582 var value = void 0; 583 if (isPercent(percent)) { 584 var index = percent.indexOf("%"); 585 value = totalValue * parseFloat(percent.slice(0, index)) / 100; 586 } else value = +percent; 587 return __WEBPACK_IMPORTED_MODULE_2_lodash_isNaN___default()(value) && (value = defaultValue), 588 validate && value > totalValue && (value = totalValue), value; 589 }, getAnyElementOfObject = function(obj) { 590 if (!obj) return null; 591 var keys = Object.keys(obj); 592 return keys && keys.length ? obj[keys[0]] : null; 593 }, hasDuplicate = function(ary) { 594 if (!__WEBPACK_IMPORTED_MODULE_1_lodash_isArray___default()(ary)) return !1; 595 for (var len = ary.length, cache = {}, i = 0; i < len; i++) { 596 if (cache[ary[i]]) return !0; 597 cache[ary[i]] = !0; 598 } 599 return !1; 600 }, interpolateNumber = function(numberA, numberB) { 601 return isNumber(numberA) && isNumber(numberB) ? function(t) { 602 return numberA + t * (numberB - numberA); 603 } : function() { 604 return numberB; 605 }; 606 }, findEntryInArray = function(ary, specifiedKey, specifiedValue) { 607 return ary && ary.length ? ary.find(function(entry) { 608 return entry && __WEBPACK_IMPORTED_MODULE_0_lodash_get___default()(entry, specifiedKey) === specifiedValue; 609 }) : null; 610 }, getLinearRegression = function(data) { 611 if (!data || !data.length) return null; 612 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, 613 ysum += data[i].cy, xysum += data[i].cx * data[i].cy, xxsum += data[i].cx * data[i].cx, 614 xmin = Math.min(xmin, data[i].cx), xmax = Math.max(xmax, data[i].cx); 615 var a = len * xxsum != xsum * xsum ? (len * xysum - xsum * ysum) / (len * xxsum - xsum * xsum) : 0; 616 return { 617 xmin: xmin, 618 xmax: xmax, 619 a: a, 620 b: (ysum - a * xsum) / len 621 }; 622 }; 623 }, function(module, exports, __webpack_require__) { 624 "use strict"; 625 (function(process) { 626 function _interopRequireDefault(obj) { 627 return obj && obj.__esModule ? obj : { 628 default: obj 629 }; 630 } 631 function getDefaultTheme() { 632 return defaultTheme || (defaultTheme = (0, _createMuiTheme2.default)()); 633 } 634 Object.defineProperty(exports, "__esModule", { 635 value: !0 636 }), exports.sheetsManager = void 0; 637 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) { 638 if (obj && obj.__esModule) return obj; 639 var newObj = {}; 640 if (null != obj) for (var key in obj) Object.prototype.hasOwnProperty.call(obj, key) && (newObj[key] = obj[key]); 641 return newObj.default = obj, newObj; 642 }(_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, 643 _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) { 644 var options = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; 645 return function(Component) { 646 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, 647 _objectWithoutProperties3.default)(options, [ "withTheme", "flip", "name" ]), stylesCreator = (0, 648 _getStylesCreator2.default)(stylesOrCreator), listenToTheme = stylesCreator.themingEnabled || withTheme || "string" == typeof name; 649 indexCounter += 1, stylesCreator.options.index = indexCounter, "production" !== process.env.NODE_ENV && (0, 650 _warning2.default)(indexCounter < 0, [ "Material-UI: you might have a memory leak.", "The indexCounter is not supposed to grow that much." ].join(" ")); 651 var WithStyles = function(_React$Component) { 652 function WithStyles(props, context) { 653 (0, _classCallCheck3.default)(this, WithStyles); 654 var _this = (0, _possibleConstructorReturn3.default)(this, (WithStyles.__proto__ || (0, 655 _getPrototypeOf2.default)(WithStyles)).call(this, props, context)); 656 _this.state = {}, _this.disableStylesGeneration = !1, _this.jss = null, _this.sheetOptions = null, 657 _this.sheetsManager = sheetsManager, _this.stylesCreatorSaved = null, _this.theme = null, 658 _this.unsubscribeId = null, _this.jss = _this.context[ns.jss] || jss; 659 var muiThemeProviderOptions = _this.context.muiThemeProviderOptions; 660 return muiThemeProviderOptions && (muiThemeProviderOptions.sheetsManager && (_this.sheetsManager = muiThemeProviderOptions.sheetsManager), 661 _this.disableStylesGeneration = muiThemeProviderOptions.disableStylesGeneration), 662 _this.stylesCreatorSaved = stylesCreator, _this.sheetOptions = (0, _extends3.default)({ 663 generateClassName: generateClassName 664 }, _this.context[ns.sheetOptions]), _this.theme = listenToTheme ? _themeListener2.default.initial(context) || getDefaultTheme() : noopTheme, 665 _this; 666 } 667 return (0, _inherits3.default)(WithStyles, _React$Component), (0, _createClass3.default)(WithStyles, [ { 668 key: "componentWillMount", 669 value: function() { 670 this.attach(this.theme); 671 } 672 }, { 673 key: "componentDidMount", 674 value: function() { 675 var _this2 = this; 676 listenToTheme && (this.unsubscribeId = _themeListener2.default.subscribe(this.context, function(theme) { 677 var oldTheme = _this2.theme; 678 _this2.theme = theme, _this2.attach(_this2.theme), _this2.setState({}, function() { 679 _this2.detach(oldTheme); 680 }); 681 })); 682 } 683 }, { 684 key: "componentWillReceiveProps", 685 value: function() { 686 this.stylesCreatorSaved !== stylesCreator && "production" !== process.env.NODE_ENV && (this.detach(this.theme), 687 this.stylesCreatorSaved = stylesCreator, this.attach(this.theme)); 688 } 689 }, { 690 key: "componentWillUnmount", 691 value: function() { 692 this.detach(this.theme), null !== this.unsubscribeId && _themeListener2.default.unsubscribe(this.context, this.unsubscribeId); 693 } 694 }, { 695 key: "attach", 696 value: function(theme) { 697 if (!this.disableStylesGeneration) { 698 var stylesCreatorSaved = this.stylesCreatorSaved, sheetManager = this.sheetsManager.get(stylesCreatorSaved); 699 sheetManager || (sheetManager = new _map2.default(), this.sheetsManager.set(stylesCreatorSaved, sheetManager)); 700 var sheetManagerTheme = sheetManager.get(theme); 701 if (sheetManagerTheme || (sheetManagerTheme = { 702 refs: 0, 703 sheet: null 704 }, sheetManager.set(theme, sheetManagerTheme)), 0 === sheetManagerTheme.refs) { 705 var styles = stylesCreatorSaved.create(theme, name), meta = name; 706 "production" === process.env.NODE_ENV || meta || (meta = (0, _getDisplayName2.default)(Component)); 707 var sheet = this.jss.createStyleSheet(styles, (0, _extends3.default)({ 708 meta: meta, 709 classNamePrefix: meta, 710 flip: "boolean" == typeof flip ? flip : "rtl" === theme.direction, 711 link: !1 712 }, this.sheetOptions, stylesCreatorSaved.options, { 713 name: name 714 }, styleSheetOptions)); 715 sheetManagerTheme.sheet = sheet, sheet.attach(); 716 var sheetsRegistry = this.context[ns.sheetsRegistry]; 717 sheetsRegistry && sheetsRegistry.add(sheet); 718 } 719 sheetManagerTheme.refs += 1; 720 } 721 } 722 }, { 723 key: "detach", 724 value: function(theme) { 725 if (!this.disableStylesGeneration) { 726 var stylesCreatorSaved = this.stylesCreatorSaved, sheetManager = this.sheetsManager.get(stylesCreatorSaved), sheetManagerTheme = sheetManager.get(theme); 727 if (sheetManagerTheme.refs -= 1, 0 === sheetManagerTheme.refs) { 728 sheetManager.delete(theme), this.jss.removeStyleSheet(sheetManagerTheme.sheet); 729 var sheetsRegistry = this.context[ns.sheetsRegistry]; 730 sheetsRegistry && sheetsRegistry.remove(sheetManagerTheme.sheet); 731 } 732 } 733 } 734 }, { 735 key: "render", 736 value: function() { 737 var _this3 = this, _props = this.props, classesProp = _props.classes, innerRef = _props.innerRef, other = (0, 738 _objectWithoutProperties3.default)(_props, [ "classes", "innerRef" ]), classes = void 0, renderedClasses = {}; 739 if (!this.disableStylesGeneration) { 740 var sheetManager = this.sheetsManager.get(this.stylesCreatorSaved), sheetsManagerTheme = sheetManager.get(this.theme); 741 renderedClasses = sheetsManagerTheme.sheet.classes; 742 } 743 classes = classesProp ? (0, _extends3.default)({}, renderedClasses, (0, _keys2.default)(classesProp).reduce(function(accumulator, key) { 744 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, 745 _getDisplayName2.default)(Component) + ".", "You can only override one of the following: " + (0, 746 _keys2.default)(renderedClasses).join(",") ].join("\n")), "production" !== process.env.NODE_ENV && (0, 747 _warning2.default)(!classesProp[key] || "string" == typeof classesProp[key], [ "Material-UI: the key ` + "`"))) + ((`" + key + "` + ("`" + ` provided to the classes property is not valid for " + (0, 748 _getDisplayName2.default)(Component) + ".", "You need to provide a non empty string instead of: " + classesProp[key] + "." ].join("\n")), 749 classesProp[key] && (accumulator[key] = renderedClasses[key] + " " + classesProp[key]), 750 accumulator; 751 }, {})) : renderedClasses; 752 var more = {}; 753 return withTheme && (more.theme = this.theme), _react2.default.createElement(Component, (0, 754 _extends3.default)({ 755 classes: classes 756 }, more, other, { 757 ref: innerRef 758 })); 759 } 760 } ]), WithStyles; 761 }(_react2.default.Component); 762 return WithStyles.propTypes = "production" !== process.env.NODE_ENV ? { 763 classes: _propTypes2.default.object, 764 innerRef: _propTypes2.default.func 765 } : {}, WithStyles.contextTypes = (0, _extends3.default)({ 766 muiThemeProviderOptions: _propTypes2.default.object 767 }, _contextTypes2.default, listenToTheme ? _themeListener2.default.contextTypes : {}), 768 "production" !== process.env.NODE_ENV && (WithStyles.displayName = (0, _wrapDisplayName2.default)(Component, "WithStyles")), 769 (0, _hoistNonReactStatics2.default)(WithStyles, Component), "production" !== process.env.NODE_ENV && (WithStyles.Naked = Component, 770 WithStyles.options = options), WithStyles; 771 }; 772 }; 773 exports.default = withStyles; 774 }).call(exports, __webpack_require__(2)); 775 }, function(module, exports, __webpack_require__) { 776 "use strict"; 777 (function(process) { 778 var warning = function() {}; 779 "production" !== process.env.NODE_ENV && (warning = function(condition, format, args) { 780 var len = arguments.length; 781 args = new Array(len > 2 ? len - 2 : 0); 782 for (var key = 2; key < len; key++) args[key - 2] = arguments[key]; 783 if (void 0 === format) throw new Error("`)) + ("`" + (`warning(condition, format, ...args)` + "`")))) + (((` requires a warning message argument"); 784 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); 785 if (!condition) { 786 var argIndex = 0, message = "Warning: " + format.replace(/%s/g, function() { 787 return args[argIndex++]; 788 }); 789 "undefined" != typeof console && console.error(message); 790 try { 791 throw new Error(message); 792 } catch (x) {} 793 } 794 }), module.exports = warning; 795 }).call(exports, __webpack_require__(2)); 796 }, function(module, exports, __webpack_require__) { 797 "use strict"; 798 exports.__esModule = !0; 799 var _defineProperty = __webpack_require__(154), _defineProperty2 = function(obj) { 800 return obj && obj.__esModule ? obj : { 801 default: obj 802 }; 803 }(_defineProperty); 804 exports.default = function(obj, key, value) { 805 return key in obj ? (0, _defineProperty2.default)(obj, key, { 806 value: value, 807 enumerable: !0, 808 configurable: !0, 809 writable: !0 810 }) : obj[key] = value, obj; 811 }; 812 }, function(module, exports) { 813 var isArray = Array.isArray; 814 module.exports = isArray; 815 }, function(module, __webpack_exports__, __webpack_require__) { 816 "use strict"; 817 function _objectWithoutProperties(obj, keys) { 818 var target = {}; 819 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 820 return target; 821 } 822 function Layer(props) { 823 var children = props.children, className = props.className, others = _objectWithoutProperties(props, [ "children", "className" ]), layerClass = __WEBPACK_IMPORTED_MODULE_2_classnames___default()("recharts-layer", className); 824 return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("g", _extends({ 825 className: layerClass 826 }, others), children); 827 } 828 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) { 829 for (var i = 1; i < arguments.length; i++) { 830 var source = arguments[i]; 831 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 832 } 833 return target; 834 }, propTypes = { 835 className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, 836 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 ]) 837 }; 838 Layer.propTypes = propTypes, __webpack_exports__.a = Layer; 839 }, function(module, exports, __webpack_require__) { 840 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) { 841 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 = {}); 842 IS_GLOBAL && (source = name); 843 for (key in source) own = !IS_FORCED && target && void 0 !== target[key], out = (own ? target : source)[key], 844 exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && "function" == typeof out ? ctx(Function.call, out) : out, 845 target && redefine(target, key, out, type & $export.U), exports[key] != out && hide(exports, key, exp), 846 IS_PROTO && expProto[key] != out && (expProto[key] = out); 847 }; 848 global.core = core, $export.F = 1, $export.G = 2, $export.S = 4, $export.P = 8, 849 $export.B = 16, $export.W = 32, $export.U = 64, $export.R = 128, module.exports = $export; 850 }, function(module, __webpack_exports__, __webpack_require__) { 851 "use strict"; 852 function _defineProperty(obj, key, value) { 853 return key in obj ? Object.defineProperty(obj, key, { 854 value: value, 855 enumerable: !0, 856 configurable: !0, 857 writable: !0 858 }) : obj[key] = value, obj; 859 } 860 function _toConsumableArray(arr) { 861 if (Array.isArray(arr)) { 862 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; 863 return arr2; 864 } 865 return Array.from(arr); 866 } 867 __webpack_require__.d(__webpack_exports__, "w", function() { 868 return getValueByDataKey; 869 }), __webpack_require__.d(__webpack_exports__, "n", function() { 870 return getDomainOfDataByKey; 871 }), __webpack_require__.d(__webpack_exports__, "b", function() { 872 return calculateActiveTickIndex; 873 }), __webpack_require__.d(__webpack_exports__, "r", function() { 874 return getMainColorOfGraphicItem; 875 }), __webpack_require__.d(__webpack_exports__, "q", function() { 876 return getLegendProps; 877 }), __webpack_require__.d(__webpack_exports__, "i", function() { 878 return getBarSizeList; 879 }), __webpack_require__.d(__webpack_exports__, "h", function() { 880 return getBarPosition; 881 }), __webpack_require__.d(__webpack_exports__, "a", function() { 882 return appendOffsetOfLegend; 883 }), __webpack_require__.d(__webpack_exports__, "z", function() { 884 return parseErrorBarsOfAxis; 885 }), __webpack_require__.d(__webpack_exports__, "o", function() { 886 return getDomainOfItemsWithSameAxis; 887 }), __webpack_require__.d(__webpack_exports__, "x", function() { 888 return isCategorialAxis; 889 }), __webpack_require__.d(__webpack_exports__, "m", function() { 890 return getCoordinatesOfGrid; 891 }), __webpack_require__.d(__webpack_exports__, "u", function() { 892 return getTicksOfAxis; 893 }), __webpack_require__.d(__webpack_exports__, "d", function() { 894 return combineEventHandlers; 895 }), __webpack_require__.d(__webpack_exports__, "A", function() { 896 return parseScale; 897 }), __webpack_require__.d(__webpack_exports__, "c", function() { 898 return checkDomainOfScale; 899 }), __webpack_require__.d(__webpack_exports__, "f", function() { 900 return findPositionOfBar; 901 }), __webpack_require__.d(__webpack_exports__, "C", function() { 902 return truncateByDomain; 903 }), __webpack_require__.d(__webpack_exports__, "s", function() { 904 return getStackGroupsByAxisId; 905 }), __webpack_require__.d(__webpack_exports__, "v", function() { 906 return getTicksOfScale; 907 }), __webpack_require__.d(__webpack_exports__, "l", function() { 908 return getCateCoordinateOfLine; 909 }), __webpack_require__.d(__webpack_exports__, "k", function() { 910 return getCateCoordinateOfBar; 911 }), __webpack_require__.d(__webpack_exports__, "j", function() { 912 return getBaseValueOfBar; 913 }), __webpack_require__.d(__webpack_exports__, "e", function() { 914 return detectReferenceElementsDomain; 915 }), __webpack_require__.d(__webpack_exports__, "t", function() { 916 return getStackedDataOfItem; 917 }), __webpack_require__.d(__webpack_exports__, "p", function() { 918 return getDomainOfStackGroups; 919 }), __webpack_require__.d(__webpack_exports__, "B", function() { 920 return parseSpecifiedDomain; 921 }), __webpack_require__.d(__webpack_exports__, "D", function() { 922 return validateCoordinateInRange; 923 }), __webpack_require__.d(__webpack_exports__, "g", function() { 924 return getBandSizeOfAxis; 925 }), __webpack_require__.d(__webpack_exports__, "y", function() { 926 return parseDomainOfCategoryAxis; 927 }); 928 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__), 929 __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) { 930 for (var i = 1; i < arguments.length; i++) { 931 var source = arguments[i]; 932 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 933 } 934 return target; 935 }, getValueByDataKey = function(obj, dataKey, defaultValue) { 936 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; 937 }, getDomainOfDataByKey = function(data, key, type, filterNil) { 938 var flattenData = __WEBPACK_IMPORTED_MODULE_7_lodash_flatMap___default()(data, function(entry) { 939 return getValueByDataKey(entry, key); 940 }); 941 if ("number" === type) { 942 var domain = flattenData.filter(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.h); 943 return [ Math.min.apply(null, domain), Math.max.apply(null, domain) ]; 944 } 945 return (filterNil ? flattenData.filter(function(entry) { 946 return !__WEBPACK_IMPORTED_MODULE_10_lodash_isNil___default()(entry); 947 }) : flattenData).map(function(entry) { 948 return Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.g)(entry) ? entry : ""; 949 }); 950 }, calculateActiveTickIndex = function(coordinate, ticks, unsortedTicks, axis) { 951 var index = -1, len = ticks.length; 952 if (len > 1) { 953 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++) { 954 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; 955 if (Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.j)(cur - before) !== Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.j)(after - cur)) { 956 var diffInterval = []; 957 if (Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.j)(after - cur) === Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.j)(range[1] - range[0])) { 958 sameDirectionCoord = after; 959 var curInRange = cur + range[1] - range[0]; 960 diffInterval[0] = Math.min(curInRange, (curInRange + before) / 2), diffInterval[1] = Math.max(curInRange, (curInRange + before) / 2); 961 } else { 962 sameDirectionCoord = before; 963 var afterInRange = after + range[1] - range[0]; 964 diffInterval[0] = Math.min(cur, (afterInRange + cur) / 2), diffInterval[1] = Math.max(cur, (afterInRange + cur) / 2); 965 } 966 var sameInterval = [ Math.min(cur, (sameDirectionCoord + cur) / 2), Math.max(cur, (sameDirectionCoord + cur) / 2) ]; 967 if (coordinate > sameInterval[0] && coordinate <= sameInterval[1] || coordinate >= diffInterval[0] && coordinate <= diffInterval[1]) { 968 index = unsortedTicks[i].index; 969 break; 970 } 971 } else { 972 var min = Math.min(before, after), max = Math.max(before, after); 973 if (coordinate > (min + cur) / 2 && coordinate <= (max + cur) / 2) { 974 index = unsortedTicks[i].index; 975 break; 976 } 977 } 978 } 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) { 979 index = ticks[_i].index; 980 break; 981 } 982 } else index = 0; 983 return index; 984 }, getMainColorOfGraphicItem = function(item) { 985 var displayName = item.type.displayName, result = void 0; 986 switch (displayName) { 987 case "Line": 988 case "Area": 989 case "Radar": 990 result = item.props.stroke; 991 break; 992 993 default: 994 result = item.props.fill; 995 } 996 return result; 997 }, getLegendProps = function(_ref) { 998 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); 999 if (!legendItem) return null; 1000 var legendData = void 0; 1001 return legendData = legendItem.props && legendItem.props.payload ? legendItem.props && legendItem.props.payload : "children" === legendContent ? (formatedGraphicalItems || []).reduce(function(result, _ref2) { 1002 var item = _ref2.item, props = _ref2.props, data = props.sectors || props.data || []; 1003 return result.concat(data.map(function(entry) { 1004 return { 1005 type: legendItem.props.iconType || item.props.legendType, 1006 value: entry.name, 1007 color: entry.fill, 1008 payload: entry 1009 }; 1010 })); 1011 }, []) : (formatedGraphicalItems || []).map(function(_ref3) { 1012 var item = _ref3.item, _item$props = item.props, dataKey = _item$props.dataKey, name = _item$props.name, legendType = _item$props.legendType; 1013 return { 1014 inactive: _item$props.hide, 1015 dataKey: dataKey, 1016 type: legendItem.props.iconType || legendType || "square", 1017 color: getMainColorOfGraphicItem(item), 1018 value: name || dataKey, 1019 payload: item.props 1020 }; 1021 }), _extends({}, legendItem.props, __WEBPACK_IMPORTED_MODULE_19__component_Legend__.a.getWithHeight(legendItem, legendWidth), { 1022 payload: legendData, 1023 item: legendItem 1024 }); 1025 }, getBarSizeList = function(_ref4) { 1026 var globalSize = _ref4.barSize, _ref4$stackGroups = _ref4.stackGroups, stackGroups = void 0 === _ref4$stackGroups ? {} : _ref4$stackGroups; 1027 if (!stackGroups) return {}; 1028 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++) { 1029 var _sgs$stackIds$j = sgs[stackIds[j]], items = _sgs$stackIds$j.items, cateAxisId = _sgs$stackIds$j.cateAxisId, barItems = items.filter(function(item) { 1030 return Object(__WEBPACK_IMPORTED_MODULE_20__ReactUtils__.j)(item.type).indexOf("Bar") >= 0; 1031 }); 1032 if (barItems && barItems.length) { 1033 var selfSize = barItems[0].props.barSize, cateId = barItems[0].props[cateAxisId]; 1034 result[cateId] || (result[cateId] = []), result[cateId].push({ 1035 item: barItems[0], 1036 stackList: barItems.slice(1), 1037 barSize: __WEBPACK_IMPORTED_MODULE_10_lodash_isNil___default()(selfSize) ? globalSize : selfSize 1038 }); 1039 } 1040 } 1041 return result; 1042 }, getBarPosition = function(_ref5) { 1043 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; 1044 if (len < 1) return null; 1045 var realBarGap = Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.d)(barGap, bandSize, 0, !0), result = void 0; 1046 if (sizeList[0].barSize === +sizeList[0].barSize) { 1047 var useFull = !1, fullBarSize = bandSize / len, sum = sizeList.reduce(function(res, entry) { 1048 return res + entry.barSize || 0; 1049 }, 0); 1050 sum += (len - 1) * realBarGap, sum >= bandSize && (sum -= (len - 1) * realBarGap, 1051 realBarGap = 0), sum >= bandSize && fullBarSize > 0 && (useFull = !0, fullBarSize *= .9, 1052 sum = len * fullBarSize); 1053 var offset = (bandSize - sum) / 2 >> 0, prev = { 1054 offset: offset - realBarGap, 1055 size: 0 1056 }; 1057 result = sizeList.reduce(function(res, entry) { 1058 var newRes = [].concat(_toConsumableArray(res), [ { 1059 item: entry.item, 1060 position: { 1061 offset: prev.offset + prev.size + realBarGap, 1062 size: useFull ? fullBarSize : entry.barSize 1063 } 1064 } ]); 1065 return prev = newRes[newRes.length - 1].position, entry.stackList && entry.stackList.length && entry.stackList.forEach(function(item) { 1066 newRes.push({ 1067 item: item, 1068 position: prev 1069 }); 1070 }), newRes; 1071 }, []); 1072 } else { 1073 var _offset = Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.d)(barCategoryGap, bandSize, 0, !0); 1074 bandSize - 2 * _offset - (len - 1) * realBarGap <= 0 && (realBarGap = 0); 1075 var originalSize = (bandSize - 2 * _offset - (len - 1) * realBarGap) / len; 1076 originalSize > 1 && (originalSize >>= 0); 1077 var size = maxBarSize === +maxBarSize ? Math.min(originalSize, maxBarSize) : originalSize; 1078 result = sizeList.reduce(function(res, entry, i) { 1079 var newRes = [].concat(_toConsumableArray(res), [ { 1080 item: entry.item, 1081 position: { 1082 offset: _offset + (originalSize + realBarGap) * i + (originalSize - size) / 2, 1083 size: size 1084 } 1085 } ]); 1086 return entry.stackList && entry.stackList.length && entry.stackList.forEach(function(item) { 1087 newRes.push({ 1088 item: item, 1089 position: newRes[newRes.length - 1].position 1090 }); 1091 }), newRes; 1092 }, []); 1093 } 1094 return result; 1095 }, appendOffsetOfLegend = function(offset, items, props, legendBox) { 1096 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({ 1097 children: children, 1098 items: items, 1099 legendWidth: legendWidth, 1100 legendHeight: legendHeight 1101 }), newOffset = offset; 1102 if (legendProps) { 1103 var box = legendBox || {}, align = legendProps.align, verticalAlign = legendProps.verticalAlign, layout = legendProps.layout; 1104 ("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)))), 1105 ("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)))); 1106 } 1107 return newOffset; 1108 }, getDomainOfErrorBars = function(data, item, dataKey, axisType) { 1109 var children = item.props.children, errorBars = Object(__WEBPACK_IMPORTED_MODULE_20__ReactUtils__.h)(children, __WEBPACK_IMPORTED_MODULE_18__cartesian_ErrorBar__.a).filter(function(errorBarChild) { 1110 var direction = errorBarChild.props.direction; 1111 return !(!__WEBPACK_IMPORTED_MODULE_10_lodash_isNil___default()(direction) && !__WEBPACK_IMPORTED_MODULE_10_lodash_isNil___default()(axisType)) || axisType.indexOf(direction) >= 0; 1112 }); 1113 if (errorBars && errorBars.length) { 1114 var keys = errorBars.map(function(errorBarChild) { 1115 return errorBarChild.props.dataKey; 1116 }); 1117 return data.reduce(function(result, entry) { 1118 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) { 1119 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); 1120 return [ Math.min(lowerValue, prevErrorArr[0]), Math.max(upperValue, prevErrorArr[1]) ]; 1121 }, [ 1 / 0, -1 / 0 ]); 1122 return [ Math.min(errorDomain[0], result[0]), Math.max(errorDomain[1], result[1]) ]; 1123 }, [ 1 / 0, -1 / 0 ]); 1124 } 1125 return null; 1126 }, parseErrorBarsOfAxis = function(data, items, dataKey, axisType) { 1127 var domains = items.map(function(item) { 1128 return getDomainOfErrorBars(data, item, dataKey, axisType); 1129 }).filter(function(entry) { 1130 return !__WEBPACK_IMPORTED_MODULE_10_lodash_isNil___default()(entry); 1131 }); 1132 return domains && domains.length ? domains.reduce(function(result, entry) { 1133 return [ Math.min(result[0], entry[0]), Math.max(result[1], entry[1]) ]; 1134 }, [ 1 / 0, -1 / 0 ]) : null; 1135 }, getDomainOfItemsWithSameAxis = function(data, items, type, filterNil) { 1136 var domains = items.map(function(item) { 1137 var dataKey = item.props.dataKey; 1138 return "number" === type && dataKey ? getDomainOfErrorBars(data, item, dataKey) || getDomainOfDataByKey(data, dataKey, type, filterNil) : getDomainOfDataByKey(data, dataKey, type, filterNil); 1139 }); 1140 if ("number" === type) return domains.reduce(function(result, entry) { 1141 return [ Math.min(result[0], entry[0]), Math.max(result[1], entry[1]) ]; 1142 }, [ 1 / 0, -1 / 0 ]); 1143 var tag = {}; 1144 return domains.reduce(function(result, entry) { 1145 for (var i = 0, len = entry.length; i < len; i++) tag[entry[i]] || (tag[entry[i]] = !0, 1146 result.push(entry[i])); 1147 return result; 1148 }, []); 1149 }, isCategorialAxis = function(layout, axisType) { 1150 return "horizontal" === layout && "xAxis" === axisType || "vertical" === layout && "yAxis" === axisType || "centric" === layout && "angleAxis" === axisType || "radial" === layout && "radiusAxis" === axisType; 1151 }, getCoordinatesOfGrid = function(ticks, min, max) { 1152 var hasMin = void 0, hasMax = void 0, values = ticks.map(function(entry) { 1153 return entry.coordinate === min && (hasMin = !0), entry.coordinate === max && (hasMax = !0), 1154 entry.coordinate; 1155 }); 1156 return hasMin || values.push(min), hasMax || values.push(max), values; 1157 }, getTicksOfAxis = function(axis, isGrid, isAll) { 1158 if (!axis) return null; 1159 var scale = axis.scale, duplicateDomain = axis.duplicateDomain, type = axis.type, range = axis.range, offset = (isGrid || isAll) && "category" === type && scale.bandwidth ? scale.bandwidth() / 2 : 0; 1160 return offset = "angleAxis" === axis.axisType ? 2 * Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.j)(range[0] - range[1]) * offset : offset, 1161 isGrid && (axis.ticks || axis.niceTicks) ? (axis.ticks || axis.niceTicks).map(function(entry) { 1162 var scaleContent = duplicateDomain ? duplicateDomain.indexOf(entry) : entry; 1163 return { 1164 coordinate: scale(scaleContent) + offset, 1165 value: entry, 1166 offset: offset 1167 }; 1168 }) : axis.isCategorial && axis.categoricalDomain ? axis.categoricalDomain.map(function(entry, index) { 1169 return { 1170 coordinate: scale(entry), 1171 value: entry, 1172 index: index, 1173 offset: offset 1174 }; 1175 }) : scale.ticks && !isAll ? scale.ticks(axis.tickCount).map(function(entry) { 1176 return { 1177 coordinate: scale(entry) + offset, 1178 value: entry, 1179 offset: offset 1180 }; 1181 }) : scale.domain().map(function(entry, index) { 1182 return { 1183 coordinate: scale(entry) + offset, 1184 value: duplicateDomain ? duplicateDomain[entry] : entry, 1185 index: index, 1186 offset: offset 1187 }; 1188 }); 1189 }, combineEventHandlers = function(defaultHandler, parentHandler, childHandler) { 1190 var customizedHandler = void 0; 1191 return __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(childHandler) ? customizedHandler = childHandler : __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(parentHandler) && (customizedHandler = parentHandler), 1192 __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(defaultHandler) || customizedHandler ? function(arg1, arg2, arg3, arg4) { 1193 __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(defaultHandler) && defaultHandler(arg1, arg2, arg3, arg4), 1194 __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(customizedHandler) && customizedHandler(arg1, arg2, arg3, arg4); 1195 } : null; 1196 }, parseScale = function(axis, chartType) { 1197 var scale = axis.scale, type = axis.type, layout = axis.layout, axisType = axis.axisType; 1198 if ("auto" === scale) return "radial" === layout && "radiusAxis" === axisType ? { 1199 scale: __WEBPACK_IMPORTED_MODULE_12_d3_scale__.scaleBand(), 1200 realScaleType: "band" 1201 } : "radial" === layout && "angleAxis" === axisType ? { 1202 scale: __WEBPACK_IMPORTED_MODULE_12_d3_scale__.scaleLinear(), 1203 realScaleType: "linear" 1204 } : "category" === type && chartType && (chartType.indexOf("LineChart") >= 0 || chartType.indexOf("AreaChart") >= 0) ? { 1205 scale: __WEBPACK_IMPORTED_MODULE_12_d3_scale__.scalePoint(), 1206 realScaleType: "point" 1207 } : "category" === type ? { 1208 scale: __WEBPACK_IMPORTED_MODULE_12_d3_scale__.scaleBand(), 1209 realScaleType: "band" 1210 } : { 1211 scale: __WEBPACK_IMPORTED_MODULE_12_d3_scale__.scaleLinear(), 1212 realScaleType: "linear" 1213 }; 1214 if (__WEBPACK_IMPORTED_MODULE_3_lodash_isString___default()(scale)) { 1215 var name = "scale" + scale.slice(0, 1).toUpperCase() + scale.slice(1); 1216 return { 1217 scale: (__WEBPACK_IMPORTED_MODULE_12_d3_scale__[name] || __WEBPACK_IMPORTED_MODULE_12_d3_scale__.scalePoint)(), 1218 realScaleType: __WEBPACK_IMPORTED_MODULE_12_d3_scale__[name] ? name : "point" 1219 }; 1220 } 1221 return __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(scale) ? { 1222 scale: scale 1223 } : { 1224 scale: __WEBPACK_IMPORTED_MODULE_12_d3_scale__.scalePoint(), 1225 realScaleType: "point" 1226 }; 1227 }, checkDomainOfScale = function(scale) { 1228 var domain = scale.domain(); 1229 if (domain && !(domain.length <= 2)) { 1230 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]); 1231 (first < min || first > max || last < min || last > max) && scale.domain([ domain[0], domain[len - 1] ]); 1232 } 1233 }, findPositionOfBar = function(barPosition, child) { 1234 if (!barPosition) return null; 1235 for (var i = 0, len = barPosition.length; i < len; i++) if (barPosition[i].item === child) return barPosition[i].position; 1236 return null; 1237 }, truncateByDomain = function(value, domain) { 1238 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; 1239 var min = Math.min(domain[0], domain[1]), max = Math.max(domain[0], domain[1]), result = [ value[0], value[1] ]; 1240 return (!Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.h)(value[0]) || value[0] < min) && (result[0] = min), 1241 (!Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.h)(value[1]) || value[1] > max) && (result[1] = max), 1242 result[0] > max && (result[0] = max), result[1] < min && (result[1] = min), result; 1243 }, offsetSign = function(series) { 1244 var n = series.length; 1245 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) { 1246 var value = __WEBPACK_IMPORTED_MODULE_2_lodash_isNaN___default()(series[i][j][1]) ? series[i][j][0] : series[i][j][1]; 1247 value >= 0 ? (series[i][j][0] = positive, series[i][j][1] = positive + value, positive = series[i][j][1]) : (series[i][j][0] = negative, 1248 series[i][j][1] = negative + value, negative = series[i][j][1]); 1249 } 1250 }, STACK_OFFSET_MAP = { 1251 sign: offsetSign, 1252 expand: __WEBPACK_IMPORTED_MODULE_13_d3_shape__.o, 1253 none: __WEBPACK_IMPORTED_MODULE_13_d3_shape__.p, 1254 silhouette: __WEBPACK_IMPORTED_MODULE_13_d3_shape__.q, 1255 wiggle: __WEBPACK_IMPORTED_MODULE_13_d3_shape__.r 1256 }, getStackedData = function(data, stackItems, offsetType) { 1257 var dataKeys = stackItems.map(function(item) { 1258 return item.props.dataKey; 1259 }); 1260 return Object(__WEBPACK_IMPORTED_MODULE_13_d3_shape__.n)().keys(dataKeys).value(function(d, key) { 1261 return +getValueByDataKey(d, key, 0); 1262 }).order(__WEBPACK_IMPORTED_MODULE_13_d3_shape__.s).offset(STACK_OFFSET_MAP[offsetType])(data); 1263 }, getStackGroupsByAxisId = function(data, _items, numericAxisId, cateAxisId, offsetType, reverseStackOrder) { 1264 if (!data) return null; 1265 var items = reverseStackOrder ? _items.reverse() : _items, stackGroups = items.reduce(function(result, item) { 1266 var _item$props2 = item.props, stackId = _item$props2.stackId; 1267 if (_item$props2.hide) return result; 1268 var axisId = item.props[numericAxisId], parentGroup = result[axisId] || { 1269 hasStack: !1, 1270 stackGroups: {} 1271 }; 1272 if (Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.g)(stackId)) { 1273 var childGroup = parentGroup.stackGroups[stackId] || { 1274 numericAxisId: numericAxisId, 1275 cateAxisId: cateAxisId, 1276 items: [] 1277 }; 1278 childGroup.items.push(item), parentGroup.hasStack = !0, parentGroup.stackGroups[stackId] = childGroup; 1279 } else parentGroup.stackGroups[Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.k)("_stackId_")] = { 1280 numericAxisId: numericAxisId, 1281 cateAxisId: cateAxisId, 1282 items: [ item ] 1283 }; 1284 return _extends({}, result, _defineProperty({}, axisId, parentGroup)); 1285 }, {}); 1286 return Object.keys(stackGroups).reduce(function(result, axisId) { 1287 var group = stackGroups[axisId]; 1288 return group.hasStack && (group.stackGroups = Object.keys(group.stackGroups).reduce(function(res, stackId) { 1289 var g = group.stackGroups[stackId]; 1290 return _extends({}, res, _defineProperty({}, stackId, { 1291 numericAxisId: numericAxisId, 1292 cateAxisId: cateAxisId, 1293 items: g.items, 1294 stackedData: getStackedData(data, g.items, offsetType) 1295 })); 1296 }, {})), _extends({}, result, _defineProperty({}, axisId, group)); 1297 }, {}); 1298 }, calculateDomainOfTicks = function(ticks, type) { 1299 return "number" === type ? [ Math.min.apply(null, ticks), Math.max.apply(null, ticks) ] : ticks; 1300 }, getTicksOfScale = function(scale, opts) { 1301 var realScaleType = opts.realScaleType, type = opts.type, tickCount = opts.tickCount, originalDomain = opts.originalDomain, allowDecimals = opts.allowDecimals, scaleType = realScaleType || opts.scale; 1302 if ("auto" !== scaleType && "linear" !== scaleType) return null; 1303 if (tickCount && "number" === type && originalDomain && ("auto" === originalDomain[0] || "auto" === originalDomain[1])) { 1304 var domain = scale.domain(), tickValues = Object(__WEBPACK_IMPORTED_MODULE_11_recharts_scale__.getNiceTickValues)(domain, tickCount, allowDecimals); 1305 return scale.domain(calculateDomainOfTicks(tickValues, type)), { 1306 niceTicks: tickValues 1307 }; 1308 } 1309 if (tickCount && "number" === type) { 1310 var _domain = scale.domain(); 1311 return { 1312 niceTicks: Object(__WEBPACK_IMPORTED_MODULE_11_recharts_scale__.getTickValuesFixedDomain)(_domain, tickCount, allowDecimals) 1313 }; 1314 } 1315 return null; 1316 }, getCateCoordinateOfLine = function(_ref6) { 1317 var axis = _ref6.axis, ticks = _ref6.ticks, bandSize = _ref6.bandSize, entry = _ref6.entry, index = _ref6.index; 1318 if ("category" === axis.type) { 1319 if (!axis.allowDuplicatedCategory && axis.dataKey && !__WEBPACK_IMPORTED_MODULE_10_lodash_isNil___default()(entry[axis.dataKey])) { 1320 var matchedTick = Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.a)(ticks, "value", entry[axis.dataKey]); 1321 if (matchedTick) return matchedTick.coordinate + bandSize / 2; 1322 } 1323 return ticks[index] ? ticks[index].coordinate + bandSize / 2 : null; 1324 } 1325 var value = getValueByDataKey(entry, axis.dataKey); 1326 return __WEBPACK_IMPORTED_MODULE_10_lodash_isNil___default()(value) ? null : axis.scale(value); 1327 }, getCateCoordinateOfBar = function(_ref7) { 1328 var axis = _ref7.axis, ticks = _ref7.ticks, offset = _ref7.offset, bandSize = _ref7.bandSize, entry = _ref7.entry, index = _ref7.index; 1329 if ("category" === axis.type) return ticks[index] ? ticks[index].coordinate + offset : null; 1330 var value = getValueByDataKey(entry, axis.dataKey, axis.domain[index]); 1331 return __WEBPACK_IMPORTED_MODULE_10_lodash_isNil___default()(value) ? null : axis.scale(value) - bandSize / 2 + offset; 1332 }, getBaseValueOfBar = function(_ref8) { 1333 var numericAxis = _ref8.numericAxis, domain = numericAxis.scale.domain(); 1334 if ("number" === numericAxis.type) { 1335 var min = Math.min(domain[0], domain[1]), max = Math.max(domain[0], domain[1]); 1336 return min <= 0 && max >= 0 ? 0 : max < 0 ? max : min; 1337 } 1338 return domain[0]; 1339 }, detectReferenceElementsDomain = function(children, domain, axisId, axisType, specifiedTicks) { 1340 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; 1341 if (elements.length && (finalDomain = elements.reduce(function(result, el) { 1342 if (el.props[idKey] === axisId && el.props.alwaysShow && Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.h)(el.props[valueKey])) { 1343 var value = el.props[valueKey]; 1344 return [ Math.min(result[0], value), Math.max(result[1], value) ]; 1345 } 1346 return result; 1347 }, finalDomain)), areas.length) { 1348 var key1 = valueKey + "1", key2 = valueKey + "2"; 1349 finalDomain = areas.reduce(function(result, el) { 1350 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])) { 1351 var value1 = el.props[key1], value2 = el.props[key2]; 1352 return [ Math.min(result[0], value1, value2), Math.max(result[1], value1, value2) ]; 1353 } 1354 return result; 1355 }, finalDomain); 1356 } 1357 return specifiedTicks && specifiedTicks.length && (finalDomain = specifiedTicks.reduce(function(result, tick) { 1358 return Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.h)(tick) ? [ Math.min(result[0], tick), Math.max(result[1], tick) ] : result; 1359 }, finalDomain)), finalDomain; 1360 }, getStackedDataOfItem = function(item, stackGroups) { 1361 var stackId = item.props.stackId; 1362 if (Object(__WEBPACK_IMPORTED_MODULE_14__DataUtils__.g)(stackId)) { 1363 var group = stackGroups[stackId]; 1364 if (group && group.items.length) { 1365 for (var itemIndex = -1, i = 0, len = group.items.length; i < len; i++) if (group.items[i] === item) { 1366 itemIndex = i; 1367 break; 1368 } 1369 return itemIndex >= 0 ? group.stackedData[itemIndex] : null; 1370 } 1371 } 1372 return null; 1373 }, getDomainOfSingle = function(data) { 1374 return data.reduce(function(result, entry) { 1375 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)) ]; 1376 }, [ 1 / 0, -1 / 0 ]); 1377 }, getDomainOfStackGroups = function(stackGroups, startIndex, endIndex) { 1378 return Object.keys(stackGroups).reduce(function(result, stackId) { 1379 var group = stackGroups[stackId], stackedData = group.stackedData, domain = stackedData.reduce(function(res, entry) { 1380 var s = getDomainOfSingle(entry.slice(startIndex, endIndex + 1)); 1381 return [ Math.min(res[0], s[0]), Math.max(res[1], s[1]) ]; 1382 }, [ 1 / 0, -1 / 0 ]); 1383 return [ Math.min(domain[0], result[0]), Math.max(domain[1], result[1]) ]; 1384 }, [ 1 / 0, -1 / 0 ]).map(function(result) { 1385 return result === 1 / 0 || result === -1 / 0 ? 0 : result; 1386 }); 1387 }, 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) { 1388 if (!__WEBPACK_IMPORTED_MODULE_6_lodash_isArray___default()(specifiedDomain)) return dataDomain; 1389 var domain = []; 1390 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])) { 1391 var value = +MIN_VALUE_REG.exec(specifiedDomain[0])[1]; 1392 domain[0] = dataDomain[0] - value; 1393 } else __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(specifiedDomain[0]) ? domain[0] = specifiedDomain[0](dataDomain[0]) : domain[0] = dataDomain[0]; 1394 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])) { 1395 var _value = +MAX_VALUE_REG.exec(specifiedDomain[1])[1]; 1396 domain[1] = dataDomain[1] + _value; 1397 } else __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(specifiedDomain[1]) ? domain[1] = specifiedDomain[1](dataDomain[1]) : domain[1] = dataDomain[1]; 1398 return domain; 1399 }, validateCoordinateInRange = function(coordinate, scale) { 1400 if (!scale) return !1; 1401 var range = scale.range(), first = range[0], last = range[range.length - 1]; 1402 return first <= last ? coordinate >= first && coordinate <= last : coordinate >= last && coordinate <= first; 1403 }, getBandSizeOfAxis = function(axis, ticks) { 1404 if (axis && axis.scale && axis.scale.bandwidth) return axis.scale.bandwidth(); 1405 if (axis && ticks && ticks.length >= 2) { 1406 for (var orderedTicks = __WEBPACK_IMPORTED_MODULE_1_lodash_sortBy___default()(ticks, function(o) { 1407 return o.coordinate; 1408 }), bandSize = 1 / 0, i = 1, len = orderedTicks.length; i < len; i++) { 1409 var cur = orderedTicks[i], prev = orderedTicks[i - 1]; 1410 bandSize = Math.min((cur.coordinate || 0) - (prev.coordinate || 0), bandSize); 1411 } 1412 return bandSize === 1 / 0 ? 0 : bandSize; 1413 } 1414 return 0; 1415 }, parseDomainOfCategoryAxis = function(specifiedDomain, calculatedDomain, axisChild) { 1416 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; 1417 }; 1418 }, function(module, exports) { 1419 var core = module.exports = { 1420 version: "2.5.7" 1421 }; 1422 "number" == typeof __e && (__e = core); 1423 }, function(module, __webpack_exports__, __webpack_require__) { 1424 "use strict"; 1425 function newInterval(floori, offseti, count, field) { 1426 function interval(date) { 1427 return floori(date = new Date(+date)), date; 1428 } 1429 return interval.floor = interval, interval.ceil = function(date) { 1430 return floori(date = new Date(date - 1)), offseti(date, 1), floori(date), date; 1431 }, interval.round = function(date) { 1432 var d0 = interval(date), d1 = interval.ceil(date); 1433 return date - d0 < d1 - date ? d0 : d1; 1434 }, interval.offset = function(date, step) { 1435 return offseti(date = new Date(+date), null == step ? 1 : Math.floor(step)), date; 1436 }, interval.range = function(start, stop, step) { 1437 var previous, range = []; 1438 if (start = interval.ceil(start), step = null == step ? 1 : Math.floor(step), !(start < stop && step > 0)) return range; 1439 do { 1440 range.push(previous = new Date(+start)), offseti(start, step), floori(start); 1441 } while (previous < start && start < stop); 1442 return range; 1443 }, interval.filter = function(test) { 1444 return newInterval(function(date) { 1445 if (date >= date) for (;floori(date), !test(date); ) date.setTime(date - 1); 1446 }, function(date, step) { 1447 if (date >= date) if (step < 0) for (;++step <= 0; ) for (;offseti(date, -1), !test(date); ) ; else for (;--step >= 0; ) for (;offseti(date, 1), 1448 !test(date); ) ; 1449 }); 1450 }, count && (interval.count = function(start, end) { 1451 return t0.setTime(+start), t1.setTime(+end), floori(t0), floori(t1), Math.floor(count(t0, t1)); 1452 }, interval.every = function(step) { 1453 return step = Math.floor(step), isFinite(step) && step > 0 ? step > 1 ? interval.filter(field ? function(d) { 1454 return field(d) % step == 0; 1455 } : function(d) { 1456 return interval.count(0, d) % step == 0; 1457 }) : interval : null; 1458 }), interval; 1459 } 1460 __webpack_exports__.a = newInterval; 1461 var t0 = new Date(), t1 = new Date(); 1462 }, function(module, exports, __webpack_require__) { 1463 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) { 1464 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; 1465 IS_GLOBAL && (source = name); 1466 for (key in source) (own = !IS_FORCED && target && void 0 !== target[key]) && has(exports, key) || (out = own ? target[key] : source[key], 1467 exports[key] = IS_GLOBAL && "function" != typeof target[key] ? source[key] : IS_BIND && own ? ctx(out, global) : IS_WRAP && target[key] == out ? function(C) { 1468 var F = function(a, b, c) { 1469 if (this instanceof C) { 1470 switch (arguments.length) { 1471 case 0: 1472 return new C(); 1473 1474 case 1: 1475 return new C(a); 1476 1477 case 2: 1478 return new C(a, b); 1479 } 1480 return new C(a, b, c); 1481 } 1482 return C.apply(this, arguments); 1483 }; 1484 return F.prototype = C.prototype, F; 1485 }(out) : IS_PROTO && "function" == typeof out ? ctx(Function.call, out) : out, IS_PROTO && ((exports.virtual || (exports.virtual = {}))[key] = out, 1486 type & $export.R && expProto && !expProto[key] && hide(expProto, key, out))); 1487 }; 1488 $export.F = 1, $export.G = 2, $export.S = 4, $export.P = 8, $export.B = 16, $export.W = 32, 1489 $export.U = 64, $export.R = 128, module.exports = $export; 1490 }, function(module, exports) { 1491 function isNil(value) { 1492 return null == value; 1493 } 1494 module.exports = isNil; 1495 }, function(module, exports, __webpack_require__) { 1496 var store = __webpack_require__(151)("wks"), uid = __webpack_require__(103), Symbol = __webpack_require__(24).Symbol, USE_SYMBOL = "function" == typeof Symbol; 1497 (module.exports = function(name) { 1498 return store[name] || (store[name] = USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)("Symbol." + name)); 1499 }).store = store; 1500 }, function(module, exports, __webpack_require__) { 1501 var anObject = __webpack_require__(52), IE8_DOM_DEFINE = __webpack_require__(224), toPrimitive = __webpack_require__(145), dP = Object.defineProperty; 1502 exports.f = __webpack_require__(25) ? Object.defineProperty : function(O, P, Attributes) { 1503 if (anObject(O), P = toPrimitive(P, !0), anObject(Attributes), IE8_DOM_DEFINE) try { 1504 return dP(O, P, Attributes); 1505 } catch (e) {} 1506 if ("get" in Attributes || "set" in Attributes) throw TypeError("Accessors not supported!"); 1507 return "value" in Attributes && (O[P] = Attributes.value), O; 1508 }; 1509 }, function(module, __webpack_exports__, __webpack_require__) { 1510 "use strict"; 1511 function _defineProperty(obj, key, value) { 1512 return key in obj ? Object.defineProperty(obj, key, { 1513 value: value, 1514 enumerable: !0, 1515 configurable: !0, 1516 writable: !0 1517 }) : obj[key] = value, obj; 1518 } 1519 __webpack_require__.d(__webpack_exports__, "a", function() { 1520 return RADIAN; 1521 }), __webpack_require__.d(__webpack_exports__, "e", function() { 1522 return polarToCartesian; 1523 }), __webpack_require__.d(__webpack_exports__, "c", function() { 1524 return getMaxRadius; 1525 }), __webpack_require__.d(__webpack_exports__, "b", function() { 1526 return formatAxisMap; 1527 }), __webpack_require__.d(__webpack_exports__, "d", function() { 1528 return inRangeOfSector; 1529 }); 1530 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) { 1531 for (var i = 1; i < arguments.length; i++) { 1532 var source = arguments[i]; 1533 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 1534 } 1535 return target; 1536 }, RADIAN = Math.PI / 180, radianToDegree = function(angleInRadian) { 1537 return 180 * angleInRadian / Math.PI; 1538 }, polarToCartesian = function(cx, cy, radius, angle) { 1539 return { 1540 x: cx + Math.cos(-RADIAN * angle) * radius, 1541 y: cy + Math.sin(-RADIAN * angle) * radius 1542 }; 1543 }, getMaxRadius = function(width, height) { 1544 var offset = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : { 1545 top: 0, 1546 right: 0, 1547 bottom: 0, 1548 left: 0 1549 }; 1550 return Math.min(Math.abs(width - (offset.left || 0) - (offset.right || 0)), Math.abs(height - (offset.top || 0) - (offset.bottom || 0))) / 2; 1551 }, formatAxisMap = function(props, axisMap, offset, axisType, chartName) { 1552 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); 1553 return Object.keys(axisMap).reduce(function(result, id) { 1554 var axis = axisMap[id], domain = axis.domain, reversed = axis.reversed, range = void 0; 1555 __WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default()(axis.range) ? ("angleAxis" === axisType ? range = [ startAngle, endAngle ] : "radiusAxis" === axisType && (range = [ innerRadius, outerRadius ]), 1556 reversed && (range = [ range[1], range[0] ])) : (range = axis.range, startAngle = range[0], 1557 endAngle = range[1]); 1558 var _parseScale = Object(__WEBPACK_IMPORTED_MODULE_2__ChartUtils__.A)(axis, chartName), realScaleType = _parseScale.realScaleType, scale = _parseScale.scale; 1559 scale.domain(domain).range(range), Object(__WEBPACK_IMPORTED_MODULE_2__ChartUtils__.c)(scale); 1560 var ticks = Object(__WEBPACK_IMPORTED_MODULE_2__ChartUtils__.v)(scale, _extends({}, axis, { 1561 realScaleType: realScaleType 1562 })), finalAxis = _extends({}, axis, ticks, { 1563 range: range, 1564 radius: outerRadius, 1565 realScaleType: realScaleType, 1566 scale: scale, 1567 cx: cx, 1568 cy: cy, 1569 innerRadius: innerRadius, 1570 outerRadius: outerRadius, 1571 startAngle: startAngle, 1572 endAngle: endAngle 1573 }); 1574 return _extends({}, result, _defineProperty({}, id, finalAxis)); 1575 }, {}); 1576 }, distanceBetweenPoints = function(point, anotherPoint) { 1577 var x1 = point.x, y1 = point.y, x2 = anotherPoint.x, y2 = anotherPoint.y; 1578 return Math.sqrt(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2)); 1579 }, getAngleOfPoint = function(_ref, _ref2) { 1580 var x = _ref.x, y = _ref.y, cx = _ref2.cx, cy = _ref2.cy, radius = distanceBetweenPoints({ 1581 x: x, 1582 y: y 1583 }, { 1584 x: cx, 1585 y: cy 1586 }); 1587 if (radius <= 0) return { 1588 radius: radius 1589 }; 1590 var cos = (x - cx) / radius, angleInRadian = Math.acos(cos); 1591 return y > cy && (angleInRadian = 2 * Math.PI - angleInRadian), { 1592 radius: radius, 1593 angle: radianToDegree(angleInRadian), 1594 angleInRadian: angleInRadian 1595 }; 1596 }, formatAngleOfSector = function(_ref3) { 1597 var startAngle = _ref3.startAngle, endAngle = _ref3.endAngle, startCnt = Math.floor(startAngle / 360), endCnt = Math.floor(endAngle / 360), min = Math.min(startCnt, endCnt); 1598 return { 1599 startAngle: startAngle - 360 * min, 1600 endAngle: endAngle - 360 * min 1601 }; 1602 }, reverseFormatAngleOfSetor = function(angle, _ref4) { 1603 var startAngle = _ref4.startAngle, endAngle = _ref4.endAngle, startCnt = Math.floor(startAngle / 360), endCnt = Math.floor(endAngle / 360); 1604 return angle + 360 * Math.min(startCnt, endCnt); 1605 }, inRangeOfSector = function(_ref5, sector) { 1606 var x = _ref5.x, y = _ref5.y, _getAngleOfPoint = getAngleOfPoint({ 1607 x: x, 1608 y: y 1609 }, sector), radius = _getAngleOfPoint.radius, angle = _getAngleOfPoint.angle, innerRadius = sector.innerRadius, outerRadius = sector.outerRadius; 1610 if (radius < innerRadius || radius > outerRadius) return !1; 1611 if (0 === radius) return !0; 1612 var _formatAngleOfSector = formatAngleOfSector(sector), startAngle = _formatAngleOfSector.startAngle, endAngle = _formatAngleOfSector.endAngle, formatAngle = angle, inRange = void 0; 1613 if (startAngle <= endAngle) { 1614 for (;formatAngle > endAngle; ) formatAngle -= 360; 1615 for (;formatAngle < startAngle; ) formatAngle += 360; 1616 inRange = formatAngle >= startAngle && formatAngle <= endAngle; 1617 } else { 1618 for (;formatAngle > startAngle; ) formatAngle -= 360; 1619 for (;formatAngle < endAngle; ) formatAngle += 360; 1620 inRange = formatAngle >= endAngle && formatAngle <= startAngle; 1621 } 1622 return inRange ? _extends({}, sector, { 1623 radius: radius, 1624 angle: reverseFormatAngleOfSetor(formatAngle, sector) 1625 }) : null; 1626 }; 1627 }, function(module, exports) { 1628 var global = module.exports = "undefined" != typeof window && window.Math == Math ? window : "undefined" != typeof self && self.Math == Math ? self : Function("return this")(); 1629 "number" == typeof __g && (__g = global); 1630 }, function(module, exports, __webpack_require__) { 1631 module.exports = !__webpack_require__(53)(function() { 1632 return 7 != Object.defineProperty({}, "a", { 1633 get: function() { 1634 return 7; 1635 } 1636 }).a; 1637 }); 1638 }, function(module, exports, __webpack_require__) { 1639 module.exports = { 1640 default: __webpack_require__(394), 1641 __esModule: !0 1642 }; 1643 }, function(module, exports, __webpack_require__) { 1644 "use strict"; 1645 exports.__esModule = !0, exports.default = function(instance, Constructor) { 1646 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 1647 }; 1648 }, function(module, exports, __webpack_require__) { 1649 "use strict"; 1650 exports.__esModule = !0; 1651 var _defineProperty = __webpack_require__(154), _defineProperty2 = function(obj) { 1652 return obj && obj.__esModule ? obj : { 1653 default: obj 1654 }; 1655 }(_defineProperty); 1656 exports.default = function() { 1657 function defineProperties(target, props) { 1658 for (var i = 0; i < props.length; i++) { 1659 var descriptor = props[i]; 1660 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 1661 "value" in descriptor && (descriptor.writable = !0), (0, _defineProperty2.default)(target, descriptor.key, descriptor); 1662 } 1663 } 1664 return function(Constructor, protoProps, staticProps) { 1665 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 1666 Constructor; 1667 }; 1668 }(); 1669 }, function(module, exports, __webpack_require__) { 1670 "use strict"; 1671 exports.__esModule = !0; 1672 var _typeof2 = __webpack_require__(105), _typeof3 = function(obj) { 1673 return obj && obj.__esModule ? obj : { 1674 default: obj 1675 }; 1676 }(_typeof2); 1677 exports.default = function(self, call) { 1678 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 1679 return !call || "object" !== (void 0 === call ? "undefined" : (0, _typeof3.default)(call)) && "function" != typeof call ? self : call; 1680 }; 1681 }, function(module, exports, __webpack_require__) { 1682 "use strict"; 1683 function _interopRequireDefault(obj) { 1684 return obj && obj.__esModule ? obj : { 1685 default: obj 1686 }; 1687 } 1688 exports.__esModule = !0; 1689 var _setPrototypeOf = __webpack_require__(411), _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf), _create = __webpack_require__(415), _create2 = _interopRequireDefault(_create), _typeof2 = __webpack_require__(105), _typeof3 = _interopRequireDefault(_typeof2); 1690 exports.default = function(subClass, superClass) { 1691 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + (void 0 === superClass ? "undefined" : (0, 1692 _typeof3.default)(superClass))); 1693 subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, { 1694 constructor: { 1695 value: subClass, 1696 enumerable: !1, 1697 writable: !0, 1698 configurable: !0 1699 } 1700 }), superClass && (_setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass); 1701 }; 1702 }, function(module, exports, __webpack_require__) { 1703 var freeGlobal = __webpack_require__(268), freeSelf = "object" == typeof self && self && self.Object === Object && self, root = freeGlobal || freeSelf || Function("return this")(); 1704 module.exports = root; 1705 }, function(module, exports) { 1706 function isObject(value) { 1707 var type = typeof value; 1708 return null != value && ("object" == type || "function" == type); 1709 } 1710 module.exports = isObject; 1711 }, function(module, exports, __webpack_require__) { 1712 "use strict"; 1713 function _interopRequireDefault(obj) { 1714 return obj && obj.__esModule ? obj : { 1715 default: obj 1716 }; 1717 } 1718 Object.defineProperty(exports, "__esModule", { 1719 value: !0 1720 }), exports.translateStyle = exports.AnimateGroup = exports.configBezier = exports.configSpring = void 0; 1721 var _Animate = __webpack_require__(287), _Animate2 = _interopRequireDefault(_Animate), _easing = __webpack_require__(305), _util = __webpack_require__(132), _AnimateGroup = __webpack_require__(762), _AnimateGroup2 = _interopRequireDefault(_AnimateGroup); 1722 exports.configSpring = _easing.configSpring, exports.configBezier = _easing.configBezier, 1723 exports.AnimateGroup = _AnimateGroup2.default, exports.translateStyle = _util.translateStyle, 1724 exports.default = _Animate2.default; 1725 }, function(module, exports) { 1726 var isArray = Array.isArray; 1727 module.exports = isArray; 1728 }, function(module, exports) { 1729 module.exports = function(it) { 1730 return "object" == typeof it ? null !== it : "function" == typeof it; 1731 }; 1732 }, function(module, exports, __webpack_require__) { 1733 var freeGlobal = __webpack_require__(292), freeSelf = "object" == typeof self && self && self.Object === Object && self, root = freeGlobal || freeSelf || Function("return this")(); 1734 module.exports = root; 1735 }, function(module, __webpack_exports__, __webpack_require__) { 1736 "use strict"; 1737 var __WEBPACK_IMPORTED_MODULE_0__src_bisect__ = __webpack_require__(332); 1738 __webpack_require__.d(__webpack_exports__, "b", function() { 1739 return __WEBPACK_IMPORTED_MODULE_0__src_bisect__.a; 1740 }); 1741 var __WEBPACK_IMPORTED_MODULE_1__src_ascending__ = __webpack_require__(69); 1742 __webpack_require__.d(__webpack_exports__, "a", function() { 1743 return __WEBPACK_IMPORTED_MODULE_1__src_ascending__.a; 1744 }); 1745 var __WEBPACK_IMPORTED_MODULE_2__src_bisector__ = __webpack_require__(333); 1746 __webpack_require__.d(__webpack_exports__, "c", function() { 1747 return __WEBPACK_IMPORTED_MODULE_2__src_bisector__.a; 1748 }); 1749 var __WEBPACK_IMPORTED_MODULE_18__src_quantile__ = (__webpack_require__(848), __webpack_require__(849), 1750 __webpack_require__(335), __webpack_require__(337), __webpack_require__(850), __webpack_require__(853), 1751 __webpack_require__(854), __webpack_require__(341), __webpack_require__(855), __webpack_require__(856), 1752 __webpack_require__(857), __webpack_require__(858), __webpack_require__(342), __webpack_require__(334), 1753 __webpack_require__(859), __webpack_require__(204)); 1754 __webpack_require__.d(__webpack_exports__, "d", function() { 1755 return __WEBPACK_IMPORTED_MODULE_18__src_quantile__.a; 1756 }); 1757 var __WEBPACK_IMPORTED_MODULE_19__src_range__ = __webpack_require__(339); 1758 __webpack_require__.d(__webpack_exports__, "e", function() { 1759 return __WEBPACK_IMPORTED_MODULE_19__src_range__.a; 1760 }); 1761 var __WEBPACK_IMPORTED_MODULE_23__src_ticks__ = (__webpack_require__(860), __webpack_require__(861), 1762 __webpack_require__(862), __webpack_require__(340)); 1763 __webpack_require__.d(__webpack_exports__, "h", function() { 1764 return __WEBPACK_IMPORTED_MODULE_23__src_ticks__.a; 1765 }), __webpack_require__.d(__webpack_exports__, "f", function() { 1766 return __WEBPACK_IMPORTED_MODULE_23__src_ticks__.b; 1767 }), __webpack_require__.d(__webpack_exports__, "g", function() { 1768 return __WEBPACK_IMPORTED_MODULE_23__src_ticks__.c; 1769 }); 1770 __webpack_require__(343), __webpack_require__(336), __webpack_require__(863); 1771 }, function(module, __webpack_exports__, __webpack_require__) { 1772 "use strict"; 1773 __webpack_require__.d(__webpack_exports__, "d", function() { 1774 return durationSecond; 1775 }), __webpack_require__.d(__webpack_exports__, "c", function() { 1776 return durationMinute; 1777 }), __webpack_require__.d(__webpack_exports__, "b", function() { 1778 return durationHour; 1779 }), __webpack_require__.d(__webpack_exports__, "a", function() { 1780 return durationDay; 1781 }), __webpack_require__.d(__webpack_exports__, "e", function() { 1782 return durationWeek; 1783 }); 1784 var durationSecond = 1e3, durationMinute = 6e4, durationHour = 36e5, durationDay = 864e5, durationWeek = 6048e5; 1785 }, function(module, exports, __webpack_require__) { 1786 var dP = __webpack_require__(22), createDesc = __webpack_require__(75); 1787 module.exports = __webpack_require__(25) ? function(object, key, value) { 1788 return dP.f(object, key, createDesc(1, value)); 1789 } : function(object, key, value) { 1790 return object[key] = value, object; 1791 }; 1792 }, function(module, exports) { 1793 var g; 1794 g = function() { 1795 return this; 1796 }(); 1797 try { 1798 g = g || Function("return this")() || (0, eval)("this"); 1799 } catch (e) { 1800 "object" == typeof window && (g = window); 1801 } 1802 module.exports = g; 1803 }, function(module, exports, __webpack_require__) { 1804 function baseGetTag(value) { 1805 return null == value ? void 0 === value ? undefinedTag : nullTag : symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value); 1806 } 1807 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; 1808 module.exports = baseGetTag; 1809 }, function(module, exports) { 1810 function isObjectLike(value) { 1811 return null != value && "object" == typeof value; 1812 } 1813 module.exports = isObjectLike; 1814 }, function(module, exports) { 1815 function isObjectLike(value) { 1816 return null != value && "object" == typeof value; 1817 } 1818 module.exports = isObjectLike; 1819 }, function(module, __webpack_exports__, __webpack_require__) { 1820 "use strict"; 1821 function _toConsumableArray(arr) { 1822 if (Array.isArray(arr)) { 1823 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; 1824 return arr2; 1825 } 1826 return Array.from(arr); 1827 } 1828 function Label(props) { 1829 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; 1830 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; 1831 if (Object(__WEBPACK_IMPORTED_MODULE_3_react__.isValidElement)(content)) return Object(__WEBPACK_IMPORTED_MODULE_3_react__.cloneElement)(content, props); 1832 var label = void 0; 1833 if (__WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(content)) { 1834 if (label = content(props), Object(__WEBPACK_IMPORTED_MODULE_3_react__.isValidElement)(label)) return label; 1835 } else label = getLabel(props); 1836 var isPolarLabel = isPolar(viewBox), attrs = Object(__WEBPACK_IMPORTED_MODULE_7__util_ReactUtils__.k)(props); 1837 if (isPolarLabel && ("insideStart" === position || "insideEnd" === position || "end" === position)) return renderRadialLabel(props, label, attrs); 1838 var positionAttrs = isPolarLabel ? getAttrsOfPolarLabel(props) : getAttrsOfCartesianLabel(props); 1839 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__Text__.a, _extends({ 1840 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()("recharts-label", className) 1841 }, attrs, positionAttrs), label); 1842 } 1843 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) { 1844 for (var i = 1; i < arguments.length; i++) { 1845 var source = arguments[i]; 1846 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 1847 } 1848 return target; 1849 }, cartesianViewBoxShape = __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.shape({ 1850 x: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 1851 y: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 1852 width: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 1853 height: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number 1854 }), polarViewBoxShape = __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.shape({ 1855 cx: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 1856 cy: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 1857 innerRadius: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 1858 outerRadius: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 1859 startAngle: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 1860 endAngle: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number 1861 }), propTypes = { 1862 viewBox: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([ cartesianViewBoxShape, polarViewBoxShape ]), 1863 formatter: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func, 1864 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 ]), 1865 offset: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 1866 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" ]), 1867 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 ]), 1868 className: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, 1869 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 ]) 1870 }, defaultProps = { 1871 offset: 5 1872 }, getLabel = function(props) { 1873 var value = props.value, formatter = props.formatter, label = __WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default()(props.children) ? value : props.children; 1874 return __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(formatter) ? formatter(label) : label; 1875 }, getDeltaAngle = function(startAngle, endAngle) { 1876 return Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.j)(endAngle - startAngle) * Math.min(Math.abs(endAngle - startAngle), 360); 1877 }, renderRadialLabel = function(labelProps, label, attrs) { 1878 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; 1879 "insideStart" === position ? (labelAngle = startAngle + sign * offset, direction = clockWise) : "insideEnd" === position ? (labelAngle = endAngle - sign * offset, 1880 direction = !clockWise) : "end" === position && (labelAngle = endAngle + sign * offset, 1881 direction = clockWise), direction = deltaAngle <= 0 ? direction : !direction; 1882 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; 1883 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement("text", _extends({}, attrs, { 1884 dominantBaseline: "central", 1885 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()("recharts-radial-bar-label", className) 1886 }), __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement("defs", null, __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement("path", { 1887 id: id, 1888 d: path 1889 })), __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement("textPath", { 1890 xlinkHref: "#" + id 1891 }, label)); 1892 }, getAttrsOfPolarLabel = function(props) { 1893 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; 1894 if ("outside" === position) { 1895 var _polarToCartesian = Object(__WEBPACK_IMPORTED_MODULE_9__util_PolarUtils__.e)(cx, cy, outerRadius + offset, midAngle), _x = _polarToCartesian.x; 1896 return { 1897 x: _x, 1898 y: _polarToCartesian.y, 1899 textAnchor: _x >= cx ? "start" : "end", 1900 verticalAnchor: "middle" 1901 }; 1902 } 1903 if ("center" === position) return { 1904 x: cx, 1905 y: cy, 1906 textAnchor: "middle", 1907 verticalAnchor: "middle" 1908 }; 1909 var r = (innerRadius + outerRadius) / 2, _polarToCartesian2 = Object(__WEBPACK_IMPORTED_MODULE_9__util_PolarUtils__.e)(cx, cy, r, midAngle); 1910 return { 1911 x: _polarToCartesian2.x, 1912 y: _polarToCartesian2.y, 1913 textAnchor: "middle", 1914 verticalAnchor: "middle" 1915 }; 1916 }, getAttrsOfCartesianLabel = function(props) { 1917 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; 1918 return "top" === position ? { 1919 x: x + width / 2, 1920 y: y - sign * offset, 1921 textAnchor: "middle", 1922 verticalAnchor: "end" 1923 } : "bottom" === position ? { 1924 x: x + width / 2, 1925 y: y + height + sign * offset, 1926 textAnchor: "middle", 1927 verticalAnchor: "start" 1928 } : "left" === position ? { 1929 x: x - offset, 1930 y: y + height / 2, 1931 textAnchor: "end", 1932 verticalAnchor: "middle" 1933 } : "right" === position ? { 1934 x: x + width + offset, 1935 y: y + height / 2, 1936 textAnchor: "start", 1937 verticalAnchor: "middle" 1938 } : "insideLeft" === position ? { 1939 x: x + offset, 1940 y: y + height / 2, 1941 textAnchor: "start", 1942 verticalAnchor: "middle" 1943 } : "insideRight" === position ? { 1944 x: x + width - offset, 1945 y: y + height / 2, 1946 textAnchor: "end", 1947 verticalAnchor: "middle" 1948 } : "insideTop" === position ? { 1949 x: x + width / 2, 1950 y: y + sign * offset, 1951 textAnchor: "middle", 1952 verticalAnchor: "start" 1953 } : "insideBottom" === position ? { 1954 x: x + width / 2, 1955 y: y + height - sign * offset, 1956 textAnchor: "middle", 1957 verticalAnchor: "end" 1958 } : "insideTopLeft" === position ? { 1959 x: x + offset, 1960 y: y + sign * offset, 1961 textAnchor: "start", 1962 verticalAnchor: "start" 1963 } : "insideTopRight" === position ? { 1964 x: x + width - offset, 1965 y: y + sign * offset, 1966 textAnchor: "end", 1967 verticalAnchor: "start" 1968 } : "insideBottomLeft" === position ? { 1969 x: x + offset, 1970 y: y + height - sign * offset, 1971 textAnchor: "start", 1972 verticalAnchor: "end" 1973 } : "insideBottomRight" === position ? { 1974 x: x + width - offset, 1975 y: y + height - sign * offset, 1976 textAnchor: "end", 1977 verticalAnchor: "end" 1978 } : __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)) ? { 1979 x: x + Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.d)(position.x, width), 1980 y: y + Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.d)(position.y, height), 1981 textAnchor: "end", 1982 verticalAnchor: "end" 1983 } : { 1984 x: x + width / 2, 1985 y: y + height / 2, 1986 textAnchor: "middle", 1987 verticalAnchor: "middle" 1988 }; 1989 }, isPolar = function(viewBox) { 1990 return Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.h)(viewBox.cx); 1991 }; 1992 Label.displayName = "Label", Label.defaultProps = defaultProps, Label.propTypes = propTypes; 1993 var parseViewBox = function(props) { 1994 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; 1995 if (Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.h)(width) && Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.h)(height)) { 1996 if (Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.h)(x) && Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.h)(y)) return { 1997 x: x, 1998 y: y, 1999 width: width, 2000 height: height 2001 }; 2002 if (Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.h)(top) && Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.h)(left)) return { 2003 x: top, 2004 y: left, 2005 width: width, 2006 height: height 2007 }; 2008 } 2009 return Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.h)(x) && Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.h)(y) ? { 2010 x: x, 2011 y: y, 2012 width: 0, 2013 height: 0 2014 } : Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.h)(cx) && Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.h)(cy) ? { 2015 cx: cx, 2016 cy: cy, 2017 startAngle: startAngle || angle || 0, 2018 endAngle: endAngle || angle || 0, 2019 innerRadius: innerRadius || 0, 2020 outerRadius: outerRadius || radius || r || 0, 2021 clockWise: clockWise 2022 } : props.viewBox ? props.viewBox : {}; 2023 }, parseLabel = function(label, viewBox) { 2024 return label ? !0 === label ? __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(Label, { 2025 key: "label-implicit", 2026 viewBox: viewBox 2027 }) : Object(__WEBPACK_IMPORTED_MODULE_8__util_DataUtils__.g)(label) ? __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(Label, { 2028 key: "label-implicit", 2029 viewBox: viewBox, 2030 value: label 2031 }) : 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, { 2032 key: "label-implicit", 2033 content: label, 2034 viewBox: viewBox 2035 }) : __WEBPACK_IMPORTED_MODULE_0_lodash_isObject___default()(label) ? __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(Label, _extends({ 2036 viewBox: viewBox 2037 }, label, { 2038 key: "label-implicit" 2039 })) : null : null; 2040 }, renderCallByParent = function(parentProps, viewBox) { 2041 var ckeckPropsLabel = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2]; 2042 if (!parentProps || !parentProps.children && ckeckPropsLabel && !parentProps.label) return null; 2043 var children = parentProps.children, parentViewBox = parseViewBox(parentProps), explicitChilren = Object(__WEBPACK_IMPORTED_MODULE_7__util_ReactUtils__.h)(children, Label).map(function(child, index) { 2044 return Object(__WEBPACK_IMPORTED_MODULE_3_react__.cloneElement)(child, { 2045 viewBox: viewBox || parentViewBox, 2046 key: "label-" + index 2047 }); 2048 }); 2049 return ckeckPropsLabel ? [ parseLabel(parentProps.label, viewBox || parentViewBox) ].concat(_toConsumableArray(explicitChilren)) : explicitChilren; 2050 }; 2051 Label.parseViewBox = parseViewBox, Label.renderCallByParent = renderCallByParent, 2052 __webpack_exports__.a = Label; 2053 }, function(module, exports, __webpack_require__) { 2054 function isEqual(value, other) { 2055 return baseIsEqual(value, other); 2056 } 2057 var baseIsEqual = __webpack_require__(199); 2058 module.exports = isEqual; 2059 }, function(module, __webpack_exports__, __webpack_require__) { 2060 "use strict"; 2061 var __WEBPACK_IMPORTED_MODULE_0__src_color__ = __webpack_require__(207); 2062 __webpack_require__.d(__webpack_exports__, "a", function() { 2063 return __WEBPACK_IMPORTED_MODULE_0__src_color__.e; 2064 }), __webpack_require__.d(__webpack_exports__, "f", function() { 2065 return __WEBPACK_IMPORTED_MODULE_0__src_color__.g; 2066 }), __webpack_require__.d(__webpack_exports__, "d", function() { 2067 return __WEBPACK_IMPORTED_MODULE_0__src_color__.f; 2068 }); 2069 var __WEBPACK_IMPORTED_MODULE_1__src_lab__ = __webpack_require__(871); 2070 __webpack_require__.d(__webpack_exports__, "e", function() { 2071 return __WEBPACK_IMPORTED_MODULE_1__src_lab__.a; 2072 }), __webpack_require__.d(__webpack_exports__, "c", function() { 2073 return __WEBPACK_IMPORTED_MODULE_1__src_lab__.b; 2074 }); 2075 var __WEBPACK_IMPORTED_MODULE_2__src_cubehelix__ = __webpack_require__(872); 2076 __webpack_require__.d(__webpack_exports__, "b", function() { 2077 return __WEBPACK_IMPORTED_MODULE_2__src_cubehelix__.a; 2078 }); 2079 }, function(module, __webpack_exports__, __webpack_require__) { 2080 "use strict"; 2081 function _toConsumableArray(arr) { 2082 if (Array.isArray(arr)) { 2083 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; 2084 return arr2; 2085 } 2086 return Array.from(arr); 2087 } 2088 function _objectWithoutProperties(obj, keys) { 2089 var target = {}; 2090 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 2091 return target; 2092 } 2093 function LabelList(props) { 2094 var data = props.data, valueAccessor = props.valueAccessor, dataKey = props.dataKey, clockWise = props.clockWise, id = props.id, others = _objectWithoutProperties(props, [ "data", "valueAccessor", "dataKey", "clockWise", "id" ]); 2095 return data && data.length ? __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, { 2096 className: "recharts-label-list" 2097 }, data.map(function(entry, index) { 2098 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) ? {} : { 2099 id: id + "-" + index 2100 }; 2101 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, { 2102 index: index, 2103 value: value, 2104 viewBox: __WEBPACK_IMPORTED_MODULE_7__Label__.a.parseViewBox(__WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default()(clockWise) ? entry : _extends({}, entry, { 2105 clockWise: clockWise 2106 })), 2107 key: "label-" + index 2108 })); 2109 })) : null; 2110 } 2111 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) { 2112 for (var i = 1; i < arguments.length; i++) { 2113 var source = arguments[i]; 2114 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 2115 } 2116 return target; 2117 }, propTypes = { 2118 id: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 2119 data: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object), 2120 valueAccessor: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 2121 clockWise: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, 2122 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 ]) 2123 }, defaultProps = { 2124 valueAccessor: function(entry) { 2125 return __WEBPACK_IMPORTED_MODULE_4_lodash_isArray___default()(entry.value) ? __WEBPACK_IMPORTED_MODULE_3_lodash_last___default()(entry.value) : entry.value; 2126 } 2127 }; 2128 LabelList.propTypes = propTypes, LabelList.displayName = "LabelList"; 2129 var parseLabelList = function(label, data) { 2130 return label ? !0 === label ? __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(LabelList, { 2131 key: "labelList-implicit", 2132 data: data 2133 }) : __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, { 2134 key: "labelList-implicit", 2135 data: data, 2136 content: label 2137 }) : __WEBPACK_IMPORTED_MODULE_0_lodash_isObject___default()(label) ? __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(LabelList, _extends({ 2138 data: data 2139 }, label, { 2140 key: "labelList-implicit" 2141 })) : null : null; 2142 }, renderCallByParent = function(parentProps, data) { 2143 var ckeckPropsLabel = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2]; 2144 if (!parentProps || !parentProps.children && ckeckPropsLabel && !parentProps.label) return null; 2145 var children = parentProps.children, explicitChilren = Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.h)(children, LabelList).map(function(child, index) { 2146 return Object(__WEBPACK_IMPORTED_MODULE_5_react__.cloneElement)(child, { 2147 data: data, 2148 key: "labelList-" + index 2149 }); 2150 }); 2151 return ckeckPropsLabel ? [ parseLabelList(parentProps.label, data) ].concat(_toConsumableArray(explicitChilren)) : explicitChilren; 2152 }; 2153 LabelList.renderCallByParent = renderCallByParent, LabelList.defaultProps = defaultProps, 2154 __webpack_exports__.a = LabelList; 2155 }, function(module, __webpack_exports__, __webpack_require__) { 2156 "use strict"; 2157 function _objectWithoutProperties(obj, keys) { 2158 var target = {}; 2159 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 2160 return target; 2161 } 2162 function _defineProperty(obj, key, value) { 2163 return key in obj ? Object.defineProperty(obj, key, { 2164 value: value, 2165 enumerable: !0, 2166 configurable: !0, 2167 writable: !0 2168 }) : obj[key] = value, obj; 2169 } 2170 function _toConsumableArray(arr) { 2171 if (Array.isArray(arr)) { 2172 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; 2173 return arr2; 2174 } 2175 return Array.from(arr); 2176 } 2177 function _classCallCheck(instance, Constructor) { 2178 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 2179 } 2180 function _possibleConstructorReturn(self, call) { 2181 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 2182 return !call || "object" != typeof call && "function" != typeof call ? self : call; 2183 } 2184 function _inherits(subClass, superClass) { 2185 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 2186 subClass.prototype = Object.create(superClass && superClass.prototype, { 2187 constructor: { 2188 value: subClass, 2189 enumerable: !1, 2190 writable: !0, 2191 configurable: !0 2192 } 2193 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 2194 } 2195 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) { 2196 for (var i = 1; i < arguments.length; i++) { 2197 var source = arguments[i]; 2198 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 2199 } 2200 return target; 2201 }, _createClass = function() { 2202 function defineProperties(target, props) { 2203 for (var i = 0; i < props.length; i++) { 2204 var descriptor = props[i]; 2205 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 2206 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 2207 } 2208 } 2209 return function(Constructor, protoProps, staticProps) { 2210 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 2211 Constructor; 2212 }; 2213 }(), ORIENT_MAP = { 2214 xAxis: [ "bottom", "top" ], 2215 yAxis: [ "left", "right" ] 2216 }, originCoordinate = { 2217 x: 0, 2218 y: 0 2219 }, generateCategoricalChart = function(_ref) { 2220 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; 2221 return _temp = _class = function(_Component) { 2222 function CategoricalChartWrapper(props) { 2223 _classCallCheck(this, CategoricalChartWrapper); 2224 var _this = _possibleConstructorReturn(this, (CategoricalChartWrapper.__proto__ || Object.getPrototypeOf(CategoricalChartWrapper)).call(this, props)); 2225 _initialiseProps.call(_this); 2226 var defaultState = _this.constructor.createDefaultState(props); 2227 return _this.state = _extends({}, defaultState, { 2228 updateId: 0 2229 }, _this.updateStateOfAxisMapsOffsetAndStackGroups(_extends({ 2230 props: props 2231 }, defaultState, { 2232 updateId: 0 2233 }))), _this.uniqueChartId = __WEBPACK_IMPORTED_MODULE_4_lodash_isNil___default()(props.id) ? Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.k)("recharts") : props.id, 2234 props.throttleDelay && (_this.triggeredAfterMouseMove = __WEBPACK_IMPORTED_MODULE_3_lodash_throttle___default()(_this.triggeredAfterMouseMove, props.throttleDelay)), 2235 _this; 2236 } 2237 return _inherits(CategoricalChartWrapper, _Component), _createClass(CategoricalChartWrapper, [ { 2238 key: "componentDidMount", 2239 value: function() { 2240 __WEBPACK_IMPORTED_MODULE_4_lodash_isNil___default()(this.props.syncId) || this.addListener(); 2241 } 2242 }, { 2243 key: "componentWillReceiveProps", 2244 value: function(nextProps) { 2245 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; 2246 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)) { 2247 if (!Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.m)(nextProps.children, children)) { 2248 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), { 2249 dataEndIndex: dataEndIndex, 2250 dataStartIndex: dataStartIndex 2251 }); 2252 this.setState(_extends({}, _defaultState, { 2253 updateId: newUpdateId 2254 }, this.updateStateOfAxisMapsOffsetAndStackGroups(_extends({ 2255 props: nextProps 2256 }, _defaultState, { 2257 updateId: newUpdateId 2258 })))); 2259 } 2260 } else { 2261 var defaultState = this.constructor.createDefaultState(nextProps); 2262 this.setState(_extends({}, defaultState, { 2263 updateId: updateId + 1 2264 }, this.updateStateOfAxisMapsOffsetAndStackGroups(_extends({ 2265 props: nextProps 2266 }, defaultState, { 2267 updateId: updateId + 1 2268 })))); 2269 } 2270 __WEBPACK_IMPORTED_MODULE_4_lodash_isNil___default()(this.props.syncId) && !__WEBPACK_IMPORTED_MODULE_4_lodash_isNil___default()(nextProps.syncId) && this.addListener(), 2271 !__WEBPACK_IMPORTED_MODULE_4_lodash_isNil___default()(this.props.syncId) && __WEBPACK_IMPORTED_MODULE_4_lodash_isNil___default()(nextProps.syncId) && this.removeListener(); 2272 } 2273 }, { 2274 key: "componentWillUnmount", 2275 value: function() { 2276 __WEBPACK_IMPORTED_MODULE_4_lodash_isNil___default()(this.props.syncId) || this.removeListener(), 2277 "function" == typeof this.triggeredAfterMouseMove.cancel && this.triggeredAfterMouseMove.cancel(); 2278 } 2279 }, { 2280 key: "getAxisMap", 2281 value: function(props, _ref2) { 2282 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 = {}; 2283 return axes && axes.length ? axisMap = this.getAxisMapByAxes(props, { 2284 axes: axes, 2285 graphicalItems: graphicalItems, 2286 axisType: axisType, 2287 axisIdKey: axisIdKey, 2288 stackGroups: stackGroups, 2289 dataStartIndex: dataStartIndex, 2290 dataEndIndex: dataEndIndex 2291 }) : graphicalItems && graphicalItems.length && (axisMap = this.getAxisMapByItems(props, { 2292 Axis: AxisComp, 2293 graphicalItems: graphicalItems, 2294 axisType: axisType, 2295 axisIdKey: axisIdKey, 2296 stackGroups: stackGroups, 2297 dataStartIndex: dataStartIndex, 2298 dataEndIndex: dataEndIndex 2299 })), axisMap; 2300 } 2301 }, { 2302 key: "getAxisMapByAxes", 2303 value: function(props, _ref3) { 2304 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); 2305 return axes.reduce(function(result, child) { 2306 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, { 2307 graphicalItems: graphicalItems.filter(function(item) { 2308 return item.props[axisIdKey] === axisId; 2309 }), 2310 dataStartIndex: dataStartIndex, 2311 dataEndIndex: dataEndIndex 2312 }), len = displayedData.length; 2313 if (!result[axisId]) { 2314 var domain = void 0, duplicateDomain = void 0, categoricalDomain = void 0; 2315 if (dataKey) { 2316 if (domain = Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.n)(displayedData, dataKey, type), 2317 "category" === type && isCategorial) { 2318 var duplicate = Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.e)(domain); 2319 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) { 2320 return finalDomain.indexOf(entry) >= 0 ? finalDomain : [].concat(_toConsumableArray(finalDomain), [ entry ]); 2321 }, [])); 2322 } else if ("category" === type) domain = allowDuplicatedCategory ? domain.filter(function(entry) { 2323 return "" !== entry && !__WEBPACK_IMPORTED_MODULE_4_lodash_isNil___default()(entry); 2324 }) : Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.y)(child.props.domain, domain, child).reduce(function(finalDomain, entry) { 2325 return finalDomain.indexOf(entry) >= 0 || "" === entry || __WEBPACK_IMPORTED_MODULE_4_lodash_isNil___default()(entry) ? finalDomain : [].concat(_toConsumableArray(finalDomain), [ entry ]); 2326 }, []); else if ("number" === type) { 2327 var errorBarsDomain = Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.z)(displayedData, graphicalItems.filter(function(item) { 2328 return item.props[axisIdKey] === axisId && !item.props.hide; 2329 }), dataKey, axisType); 2330 errorBarsDomain && (domain = errorBarsDomain); 2331 } 2332 !isCategorial || "number" !== type && "auto" === scale || (categoricalDomain = Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.n)(displayedData, dataKey, "category")); 2333 } 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) { 2334 return item.props[axisIdKey] === axisId && !item.props.hide; 2335 }), type, !0); 2336 return "number" === type && (domain = Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.e)(children, domain, axisId, axisType, ticks), 2337 child.props.domain && (domain = Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.B)(child.props.domain, domain, allowDataOverflow))), 2338 _extends({}, result, _defineProperty({}, axisId, _extends({}, child.props, { 2339 axisType: axisType, 2340 domain: domain, 2341 categoricalDomain: categoricalDomain, 2342 duplicateDomain: duplicateDomain, 2343 originalDomain: child.props.domain, 2344 isCategorial: isCategorial, 2345 layout: layout 2346 }))); 2347 } 2348 return result; 2349 }, {}); 2350 } 2351 }, { 2352 key: "getAxisMapByItems", 2353 value: function(props, _ref4) { 2354 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, { 2355 graphicalItems: graphicalItems, 2356 dataStartIndex: dataStartIndex, 2357 dataEndIndex: dataEndIndex 2358 }), len = displayedData.length, isCategorial = Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.x)(layout, axisType), index = -1; 2359 return graphicalItems.reduce(function(result, child) { 2360 var axisId = child.props[axisIdKey]; 2361 if (!result[axisId]) { 2362 index++; 2363 var domain = void 0; 2364 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), 2365 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) { 2366 return item.props[axisIdKey] === axisId && !item.props.hide; 2367 }), "number"), Axis.defaultProps.allowDataOverflow), domain = Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.e)(children, domain, axisId, axisType)), 2368 _extends({}, result, _defineProperty({}, axisId, _extends({ 2369 axisType: axisType 2370 }, Axis.defaultProps, { 2371 hide: !0, 2372 orientation: ORIENT_MAP[axisType] && ORIENT_MAP[axisType][index % 2], 2373 domain: domain, 2374 originalDomain: Axis.defaultProps.domain, 2375 isCategorial: isCategorial, 2376 layout: layout 2377 }))); 2378 } 2379 return result; 2380 }, {}); 2381 } 2382 }, { 2383 key: "getActiveCoordinate", 2384 value: function(tooltipTicks, activeIndex, rangeObj) { 2385 var layout = this.props.layout, entry = tooltipTicks.find(function(tick) { 2386 return tick && tick.index === activeIndex; 2387 }); 2388 if (entry) { 2389 if ("horizontal" === layout) return { 2390 x: entry.coordinate, 2391 y: rangeObj.y 2392 }; 2393 if ("vertical" === layout) return { 2394 x: rangeObj.x, 2395 y: entry.coordinate 2396 }; 2397 if ("centric" === layout) { 2398 var _angle = entry.coordinate, _radius = rangeObj.radius; 2399 return _extends({}, rangeObj, Object(__WEBPACK_IMPORTED_MODULE_23__util_PolarUtils__.e)(rangeObj.cx, rangeObj.cy, _radius, _angle), { 2400 angle: _angle, 2401 radius: _radius 2402 }); 2403 } 2404 var radius = entry.coordinate, angle = rangeObj.angle; 2405 return _extends({}, rangeObj, Object(__WEBPACK_IMPORTED_MODULE_23__util_PolarUtils__.e)(rangeObj.cx, rangeObj.cy, radius, angle), { 2406 angle: angle, 2407 radius: radius 2408 }); 2409 } 2410 return originCoordinate; 2411 } 2412 }, { 2413 key: "getMouseInfo", 2414 value: function(event) { 2415 if (!this.container) return null; 2416 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); 2417 if (!rangeObj) return null; 2418 var _state2 = this.state, xAxisMap = _state2.xAxisMap, yAxisMap = _state2.yAxisMap; 2419 if ("axis" !== eventType && xAxisMap && yAxisMap) { 2420 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; 2421 return _extends({}, e, { 2422 xValue: xValue, 2423 yValue: yValue 2424 }); 2425 } 2426 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); 2427 if (activeIndex >= 0 && tooltipTicks) { 2428 var activeLabel = tooltipTicks[activeIndex] && tooltipTicks[activeIndex].value, activePayload = this.getTooltipContent(activeIndex, activeLabel), activeCoordinate = this.getActiveCoordinate(ticks, activeIndex, rangeObj); 2429 return _extends({}, e, { 2430 activeTooltipIndex: activeIndex, 2431 activeLabel: activeLabel, 2432 activePayload: activePayload, 2433 activeCoordinate: activeCoordinate 2434 }); 2435 } 2436 return null; 2437 } 2438 }, { 2439 key: "getTooltipContent", 2440 value: function(activeIndex, activeLabel) { 2441 var _state4 = this.state, graphicalItems = _state4.graphicalItems, tooltipAxis = _state4.tooltipAxis, displayedData = this.constructor.getDisplayedData(this.props, this.state); 2442 return activeIndex < 0 || !graphicalItems || !graphicalItems.length || activeIndex >= displayedData.length ? null : graphicalItems.reduce(function(result, child) { 2443 if (child.props.hide) return result; 2444 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; 2445 return payload = tooltipAxis.dataKey && !tooltipAxis.allowDuplicatedCategory ? Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.a)(data || displayedData, tooltipAxis.dataKey, activeLabel) : displayedData[activeIndex], 2446 payload ? [].concat(_toConsumableArray(result), [ _extends({}, Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.k)(child), { 2447 dataKey: dataKey, 2448 unit: unit, 2449 formatter: formatter, 2450 name: name || dataKey, 2451 color: Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.r)(child), 2452 value: Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.w)(payload, dataKey), 2453 payload: payload 2454 }) ]) : result; 2455 }, []); 2456 } 2457 }, { 2458 key: "getFormatItems", 2459 value: function(props, currentState) { 2460 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)({ 2461 barSize: barSize, 2462 stackGroups: stackGroups 2463 }), formatedItems = []; 2464 return graphicalItems.forEach(function(item, index) { 2465 var displayedData = _this3.constructor.getDisplayedData(props, { 2466 dataStartIndex: dataStartIndex, 2467 dataEndIndex: dataEndIndex 2468 }, 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) { 2469 var _extends4, axisMap = currentState[entry.axisType + "Map"], id = item.props[entry.axisType + "Id"], axis = axisMap && axisMap[id]; 2470 return _extends({}, result, (_extends4 = {}, _defineProperty(_extends4, entry.axisType, axis), 2471 _defineProperty(_extends4, entry.axisType + "Ticks", Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.u)(axis)), 2472 _extends4)); 2473 }, {}), 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)({ 2474 barGap: barGap, 2475 barCategoryGap: barCategoryGap, 2476 bandSize: bandSize, 2477 sizeList: sizeList[cateAxisId], 2478 maxBarSize: maxBarSize 2479 }), componsedFn = item && item.type && item.type.getComposedData; 2480 if (componsedFn) { 2481 var _extends5; 2482 formatedItems.push({ 2483 props: _extends({}, componsedFn(_extends({}, axisObj, { 2484 displayedData: displayedData, 2485 props: props, 2486 dataKey: dataKey, 2487 item: item, 2488 bandSize: bandSize, 2489 barPosition: barPosition, 2490 offset: offset, 2491 stackedData: stackedData, 2492 layout: layout, 2493 dataStartIndex: dataStartIndex, 2494 dataEndIndex: dataEndIndex, 2495 onItemMouseLeave: Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.d)(_this3.handleItemMouseLeave, null, item.props.onMouseLeave), 2496 onItemMouseEnter: Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.d)(_this3.handleItemMouseEnter, null, item.props.onMouseEnter) 2497 })), (_extends5 = { 2498 key: item.key || "item-" + index 2499 }, _defineProperty(_extends5, numericAxisName, axisObj[numericAxisName]), _defineProperty(_extends5, cateAxisName, axisObj[cateAxisName]), 2500 _defineProperty(_extends5, "animationId", updateId), _extends5)), 2501 childIndex: Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.o)(item, props.children), 2502 item: item 2503 }); 2504 } 2505 }), formatedItems; 2506 } 2507 }, { 2508 key: "getCursorRectangle", 2509 value: function() { 2510 var layout = this.props.layout, _state5 = this.state, activeCoordinate = _state5.activeCoordinate, offset = _state5.offset, tooltipAxisBandSize = _state5.tooltipAxisBandSize, halfSize = tooltipAxisBandSize / 2; 2511 return { 2512 stroke: "none", 2513 fill: "#ccc", 2514 x: "horizontal" === layout ? activeCoordinate.x - halfSize : offset.left + .5, 2515 y: "horizontal" === layout ? offset.top + .5 : activeCoordinate.y - halfSize, 2516 width: "horizontal" === layout ? tooltipAxisBandSize : offset.width - 1, 2517 height: "horizontal" === layout ? offset.height - 1 : tooltipAxisBandSize 2518 }; 2519 } 2520 }, { 2521 key: "getCursorPoints", 2522 value: function() { 2523 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; 2524 if ("horizontal" === layout) x1 = activeCoordinate.x, x2 = x1, y1 = offset.top, 2525 y2 = offset.top + offset.height; else if ("vertical" === layout) y1 = activeCoordinate.y, 2526 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)) { 2527 if ("centric" !== layout) { 2528 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); 2529 return { 2530 points: [ startPoint, endPoint ], 2531 cx: _cx, 2532 cy: _cy, 2533 radius: radius, 2534 startAngle: startAngle, 2535 endAngle: endAngle 2536 }; 2537 } 2538 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); 2539 x1 = innerPoint.x, y1 = innerPoint.y, x2 = outerPoint.x, y2 = outerPoint.y; 2540 } 2541 return [ { 2542 x: x1, 2543 y: y1 2544 }, { 2545 x: x2, 2546 y: y2 2547 } ]; 2548 } 2549 }, { 2550 key: "getAxisNameByLayout", 2551 value: function(layout) { 2552 return "horizontal" === layout ? { 2553 numericAxisName: "yAxis", 2554 cateAxisName: "xAxis" 2555 } : "vertical" === layout ? { 2556 numericAxisName: "xAxis", 2557 cateAxisName: "yAxis" 2558 } : "centric" === layout ? { 2559 numericAxisName: "radiusAxis", 2560 cateAxisName: "angleAxis" 2561 } : { 2562 numericAxisName: "angleAxis", 2563 cateAxisName: "radiusAxis" 2564 }; 2565 } 2566 }, { 2567 key: "calculateTooltipPos", 2568 value: function(rangeObj) { 2569 var layout = this.props.layout; 2570 return "horizontal" === layout ? rangeObj.x : "vertical" === layout ? rangeObj.y : "centric" === layout ? rangeObj.angle : rangeObj.radius; 2571 } 2572 }, { 2573 key: "inRange", 2574 value: function(x, y) { 2575 var layout = this.props.layout; 2576 if ("horizontal" === layout || "vertical" === layout) { 2577 var offset = this.state.offset; 2578 return x >= offset.left && x <= offset.left + offset.width && y >= offset.top && y <= offset.top + offset.height ? { 2579 x: x, 2580 y: y 2581 } : null; 2582 } 2583 var _state7 = this.state, angleAxisMap = _state7.angleAxisMap, radiusAxisMap = _state7.radiusAxisMap; 2584 if (angleAxisMap && radiusAxisMap) { 2585 var angleAxis = Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.b)(angleAxisMap); 2586 return Object(__WEBPACK_IMPORTED_MODULE_23__util_PolarUtils__.d)({ 2587 x: x, 2588 y: y 2589 }, angleAxis); 2590 } 2591 return null; 2592 } 2593 }, { 2594 key: "parseEventsOfWrapper", 2595 value: function() { 2596 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 ? { 2597 onMouseEnter: this.handleMouseEnter, 2598 onMouseMove: this.handleMouseMove, 2599 onMouseLeave: this.handleMouseLeave, 2600 onTouchMove: this.handleTouchMove 2601 } : {}, outerEvents = Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.e)(this.props, this.handleOuterEvent); 2602 return _extends({}, outerEvents, tooltipEvents); 2603 } 2604 }, { 2605 key: "updateStateOfAxisMapsOffsetAndStackGroups", 2606 value: function(_ref5) { 2607 var _this4 = this, props = _ref5.props, dataStartIndex = _ref5.dataStartIndex, dataEndIndex = _ref5.dataEndIndex, updateId = _ref5.updateId; 2608 if (!Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.q)({ 2609 props: props 2610 })) return null; 2611 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) { 2612 var name = entry.axisType + "Map"; 2613 return _extends({}, result, _defineProperty({}, name, _this4.getAxisMap(props, _extends({}, entry, { 2614 graphicalItems: graphicalItems, 2615 stackGroups: entry.axisType === numericAxisName && stackGroups, 2616 dataStartIndex: dataStartIndex, 2617 dataEndIndex: dataEndIndex 2618 })))); 2619 }, {}), offset = this.calculateOffset(_extends({}, axisObj, { 2620 props: props, 2621 graphicalItems: graphicalItems 2622 })); 2623 Object.keys(axisObj).forEach(function(key) { 2624 axisObj[key] = formatAxisMap(props, axisObj[key], offset, key.replace("Map", ""), chartName); 2625 }); 2626 var cateAxisMap = axisObj[cateAxisName + "Map"], ticksObj = this.tooltipTicksGenerator(cateAxisMap), formatedGraphicalItems = this.getFormatItems(props, _extends({}, axisObj, { 2627 dataStartIndex: dataStartIndex, 2628 dataEndIndex: dataEndIndex, 2629 updateId: updateId, 2630 graphicalItems: graphicalItems, 2631 stackGroups: stackGroups, 2632 offset: offset 2633 })); 2634 return _extends({ 2635 formatedGraphicalItems: formatedGraphicalItems, 2636 graphicalItems: graphicalItems, 2637 offset: offset, 2638 stackGroups: stackGroups 2639 }, ticksObj, axisObj); 2640 } 2641 }, { 2642 key: "addListener", 2643 value: function() { 2644 __WEBPACK_IMPORTED_MODULE_25__util_Events__.b.on(__WEBPACK_IMPORTED_MODULE_25__util_Events__.a, this.handleReceiveSyncEvent), 2645 __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); 2646 } 2647 }, { 2648 key: "removeListener", 2649 value: function() { 2650 __WEBPACK_IMPORTED_MODULE_25__util_Events__.b.removeListener(__WEBPACK_IMPORTED_MODULE_25__util_Events__.a, this.handleReceiveSyncEvent), 2651 __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); 2652 } 2653 }, { 2654 key: "calculateOffset", 2655 value: function(_ref6) { 2656 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) { 2657 var entry = yAxisMap[id], orientation = entry.orientation; 2658 return entry.mirror || entry.hide ? result : _extends({}, result, _defineProperty({}, orientation, result[orientation] + entry.width)); 2659 }, { 2660 left: margin.left || 0, 2661 right: margin.right || 0 2662 }), offsetV = Object.keys(xAxisMap).reduce(function(result, id) { 2663 var entry = xAxisMap[id], orientation = entry.orientation; 2664 return entry.mirror || entry.hide ? result : _extends({}, result, _defineProperty({}, orientation, result[orientation] + entry.height)); 2665 }, { 2666 top: margin.top || 0, 2667 bottom: margin.bottom || 0 2668 }), offset = _extends({}, offsetV, offsetH), brushBottom = offset.bottom; 2669 if (brushItem && (offset.bottom += brushItem.props.height || __WEBPACK_IMPORTED_MODULE_19__cartesian_Brush__.a.defaultProps.height), 2670 legendItem && this.legendInstance) { 2671 var legendBox = this.legendInstance.getBBox(); 2672 offset = Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.a)(offset, graphicalItems, props, legendBox); 2673 } 2674 return _extends({ 2675 brushBottom: brushBottom 2676 }, offset, { 2677 width: width - offset.left - offset.right, 2678 height: height - offset.top - offset.bottom 2679 }); 2680 } 2681 }, { 2682 key: "triggerSyncEvent", 2683 value: function(data) { 2684 var syncId = this.props.syncId; 2685 __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); 2686 } 2687 }, { 2688 key: "filterFormatItem", 2689 value: function(item, displayName, childIndex) { 2690 for (var formatedGraphicalItems = this.state.formatedGraphicalItems, i = 0, len = formatedGraphicalItems.length; i < len; i++) { 2691 var entry = formatedGraphicalItems[i]; 2692 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; 2693 } 2694 return null; 2695 } 2696 }, { 2697 key: "renderAxis", 2698 value: function(axisOptions, element, displayName, index) { 2699 var _props2 = this.props, width = _props2.width, height = _props2.height; 2700 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_18__cartesian_CartesianAxis__.a, _extends({}, axisOptions, { 2701 className: "recharts-" + axisOptions.axisType + " " + axisOptions.axisType, 2702 key: element.key || displayName + "-" + index, 2703 viewBox: { 2704 x: 0, 2705 y: 0, 2706 width: width, 2707 height: height 2708 }, 2709 ticksGenerator: this.axesTicksGenerator 2710 })); 2711 } 2712 }, { 2713 key: "renderLegend", 2714 value: function() { 2715 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)({ 2716 children: children, 2717 formatedGraphicalItems: formatedGraphicalItems, 2718 legendWidth: legendWidth, 2719 legendHeight: legendHeight, 2720 legendContent: legendContent 2721 }); 2722 if (!props) return null; 2723 var item = props.item, otherProps = _objectWithoutProperties(props, [ "item" ]); 2724 return Object(__WEBPACK_IMPORTED_MODULE_5_react__.cloneElement)(item, _extends({}, otherProps, { 2725 chartWidth: width, 2726 chartHeight: height, 2727 margin: margin, 2728 ref: function(legend) { 2729 _this5.legendInstance = legend; 2730 }, 2731 onBBoxUpdate: this.handleLegendBBoxUpdate 2732 })); 2733 } 2734 }, { 2735 key: "renderTooltip", 2736 value: function() { 2737 var children = this.props.children, tooltipItem = Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.i)(children, __WEBPACK_IMPORTED_MODULE_10__component_Tooltip__.a); 2738 if (!tooltipItem) return null; 2739 var _state8 = this.state, isTooltipActive = _state8.isTooltipActive, activeCoordinate = _state8.activeCoordinate, activePayload = _state8.activePayload, activeLabel = _state8.activeLabel, offset = _state8.offset; 2740 return Object(__WEBPACK_IMPORTED_MODULE_5_react__.cloneElement)(tooltipItem, { 2741 viewBox: _extends({}, offset, { 2742 x: offset.left, 2743 y: offset.top 2744 }), 2745 active: isTooltipActive, 2746 label: activeLabel, 2747 payload: isTooltipActive ? activePayload : [], 2748 coordinate: activeCoordinate 2749 }); 2750 } 2751 }, { 2752 key: "renderActiveDot", 2753 value: function(option, props) { 2754 var dot = void 0; 2755 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), 2756 __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__container_Layer__.a, { 2757 className: "recharts-active-dot", 2758 key: props.key 2759 }, dot); 2760 } 2761 }, { 2762 key: "renderActivePoints", 2763 value: function(_ref7) { 2764 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({ 2765 index: childIndex, 2766 dataKey: dataKey, 2767 cx: activePoint.x, 2768 cy: activePoint.y, 2769 r: 4, 2770 fill: Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.r)(item.item), 2771 strokeWidth: 2, 2772 stroke: "#fff", 2773 payload: activePoint.payload, 2774 value: activePoint.value, 2775 key: key + "-activePoint-" + childIndex 2776 }, Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.k)(activeDot), Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.e)(activeDot)); 2777 return result.push(this.renderActiveDot(activeDot, dotProps, childIndex)), basePoint ? result.push(this.renderActiveDot(activeDot, _extends({}, dotProps, { 2778 cx: basePoint.x, 2779 cy: basePoint.y, 2780 key: key + "-basePoint-" + childIndex 2781 }), childIndex)) : isRange && result.push(null), result; 2782 } 2783 }, { 2784 key: "render", 2785 value: function() { 2786 var _this6 = this; 2787 if (!Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.q)(this)) return null; 2788 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 = { 2789 CartesianGrid: { 2790 handler: this.renderGrid, 2791 once: !0 2792 }, 2793 ReferenceArea: { 2794 handler: this.renderReferenceElement 2795 }, 2796 ReferenceLine: { 2797 handler: this.renderReferenceElement 2798 }, 2799 ReferenceDot: { 2800 handler: this.renderReferenceElement 2801 }, 2802 XAxis: { 2803 handler: this.renderXAxis 2804 }, 2805 YAxis: { 2806 handler: this.renderYAxis 2807 }, 2808 Brush: { 2809 handler: this.renderBrush, 2810 once: !0 2811 }, 2812 Bar: { 2813 handler: this.renderGraphicChild 2814 }, 2815 Line: { 2816 handler: this.renderGraphicChild 2817 }, 2818 Area: { 2819 handler: this.renderGraphicChild 2820 }, 2821 Radar: { 2822 handler: this.renderGraphicChild 2823 }, 2824 RadialBar: { 2825 handler: this.renderGraphicChild 2826 }, 2827 Scatter: { 2828 handler: this.renderGraphicChild 2829 }, 2830 Pie: { 2831 handler: this.renderGraphicChild 2832 }, 2833 Tooltip: { 2834 handler: this.renderCursor, 2835 once: !0 2836 }, 2837 PolarGrid: { 2838 handler: this.renderPolarGrid, 2839 once: !0 2840 }, 2841 PolarAngleAxis: { 2842 handler: this.renderPolarAxis 2843 }, 2844 PolarRadiusAxis: { 2845 handler: this.renderPolarAxis 2846 } 2847 }; 2848 if (compact) return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Surface__.a, _extends({}, attrs, { 2849 width: width, 2850 height: height 2851 }), Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.p)(children, map)); 2852 var events = this.parseEventsOfWrapper(); 2853 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement("div", _extends({ 2854 className: __WEBPACK_IMPORTED_MODULE_7_classnames___default()("recharts-wrapper", className), 2855 style: _extends({}, style, { 2856 position: "relative", 2857 cursor: "default", 2858 width: width, 2859 height: height 2860 }) 2861 }, events, { 2862 ref: function(node) { 2863 _this6.container = node; 2864 } 2865 }), __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Surface__.a, _extends({}, attrs, { 2866 width: width, 2867 height: height 2868 }), Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.p)(children, map)), this.renderLegend(), this.renderTooltip()); 2869 } 2870 } ]), CategoricalChartWrapper; 2871 }(__WEBPACK_IMPORTED_MODULE_5_react__.Component), _class.displayName = chartName, 2872 _class.propTypes = _extends({ 2873 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 ]), 2874 compact: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, 2875 width: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 2876 height: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 2877 data: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object), 2878 layout: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "horizontal", "vertical" ]), 2879 stackOffset: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "sign", "expand", "none", "wiggle", "silhouette" ]), 2880 throttleDelay: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 2881 margin: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.shape({ 2882 top: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 2883 right: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 2884 bottom: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 2885 left: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number 2886 }), 2887 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 ]), 2888 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 ]), 2889 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 ]), 2890 maxBarSize: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 2891 style: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object, 2892 className: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 2893 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 ]), 2894 onClick: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 2895 onMouseLeave: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 2896 onMouseEnter: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 2897 onMouseMove: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 2898 onMouseDown: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 2899 onMouseUp: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 2900 reverseStackOrder: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, 2901 id: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string 2902 }, propTypes), _class.defaultProps = _extends({ 2903 layout: "horizontal", 2904 stackOffset: "none", 2905 barCategoryGap: "10%", 2906 barGap: 4, 2907 margin: { 2908 top: 5, 2909 right: 5, 2910 bottom: 5, 2911 left: 5 2912 }, 2913 reverseStackOrder: !1 2914 }, defaultProps), _class.createDefaultState = function(props) { 2915 var children = props.children, brushItem = Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.i)(children, __WEBPACK_IMPORTED_MODULE_19__cartesian_Brush__.a); 2916 return { 2917 chartX: 0, 2918 chartY: 0, 2919 dataStartIndex: brushItem && brushItem.props && brushItem.props.startIndex || 0, 2920 dataEndIndex: brushItem && brushItem.props && brushItem.props.endIndex || props.data && props.data.length - 1 || 0, 2921 activeTooltipIndex: -1, 2922 isTooltipActive: !1 2923 }; 2924 }, _class.hasBar = function(graphicalItems) { 2925 return !(!graphicalItems || !graphicalItems.length) && graphicalItems.some(function(item) { 2926 var name = Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.j)(item && item.type); 2927 return name && name.indexOf("Bar") >= 0; 2928 }); 2929 }, _class.getDisplayedData = function(props, _ref8, item) { 2930 var graphicalItems = _ref8.graphicalItems, dataStartIndex = _ref8.dataStartIndex, dataEndIndex = _ref8.dataEndIndex, itemsData = (graphicalItems || []).reduce(function(result, child) { 2931 var itemData = child.props.data; 2932 return itemData && itemData.length ? [].concat(_toConsumableArray(result), _toConsumableArray(itemData)) : result; 2933 }, []); 2934 if (itemsData && itemsData.length > 0) return itemsData; 2935 if (item && item.props && item.props.data && item.props.data.length > 0) return item.props.data; 2936 var data = props.data; 2937 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) : []; 2938 }, _initialiseProps = function() { 2939 var _this7 = this; 2940 this.handleLegendBBoxUpdate = function(box) { 2941 if (box && _this7.legendInstance) { 2942 var _state9 = _this7.state, dataStartIndex = _state9.dataStartIndex, dataEndIndex = _state9.dataEndIndex, updateId = _state9.updateId; 2943 _this7.setState(_this7.updateStateOfAxisMapsOffsetAndStackGroups({ 2944 props: _this7.props, 2945 dataStartIndex: dataStartIndex, 2946 dataEndIndex: dataEndIndex, 2947 updateId: updateId 2948 })); 2949 } 2950 }, this.handleReceiveSyncEvent = function(cId, chartId, data) { 2951 var _props5 = _this7.props, syncId = _props5.syncId, layout = _props5.layout, updateId = _this7.state.updateId; 2952 if (syncId === cId && chartId !== _this7.uniqueChartId) { 2953 var dataStartIndex = data.dataStartIndex, dataEndIndex = data.dataEndIndex; 2954 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 { 2955 var chartX = data.chartX, chartY = data.chartY, activeTooltipIndex = data.activeTooltipIndex, _state10 = _this7.state, offset = _state10.offset, tooltipTicks = _state10.tooltipTicks; 2956 if (!offset) return; 2957 var viewBox = _extends({}, offset, { 2958 x: offset.left, 2959 y: offset.top 2960 }), 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] ? { 2961 x: "horizontal" === layout ? tooltipTicks[activeTooltipIndex].coordinate : validateChartX, 2962 y: "horizontal" === layout ? validateChartY : tooltipTicks[activeTooltipIndex].coordinate 2963 } : originCoordinate; 2964 _this7.setState(_extends({}, data, { 2965 activeLabel: activeLabel, 2966 activeCoordinate: activeCoordinate, 2967 activePayload: activePayload 2968 })); 2969 } else _this7.setState(_extends({ 2970 dataStartIndex: dataStartIndex, 2971 dataEndIndex: dataEndIndex 2972 }, _this7.updateStateOfAxisMapsOffsetAndStackGroups({ 2973 props: _this7.props, 2974 dataStartIndex: dataStartIndex, 2975 dataEndIndex: dataEndIndex, 2976 updateId: updateId 2977 }))); 2978 } 2979 }, this.handleBrushChange = function(_ref9) { 2980 var startIndex = _ref9.startIndex, endIndex = _ref9.endIndex; 2981 if (startIndex !== _this7.state.dataStartIndex || endIndex !== _this7.state.dataEndIndex) { 2982 var updateId = _this7.state.updateId; 2983 _this7.setState(function() { 2984 return _extends({ 2985 dataStartIndex: startIndex, 2986 dataEndIndex: endIndex 2987 }, _this7.updateStateOfAxisMapsOffsetAndStackGroups({ 2988 props: _this7.props, 2989 dataStartIndex: startIndex, 2990 dataEndIndex: endIndex, 2991 updateId: updateId 2992 })); 2993 }), _this7.triggerSyncEvent({ 2994 dataStartIndex: startIndex, 2995 dataEndIndex: endIndex 2996 }); 2997 } 2998 }, this.handleMouseEnter = function(e) { 2999 var onMouseEnter = _this7.props.onMouseEnter, mouse = _this7.getMouseInfo(e); 3000 if (mouse) { 3001 var nextState = _extends({}, mouse, { 3002 isTooltipActive: !0 3003 }); 3004 _this7.setState(nextState), _this7.triggerSyncEvent(nextState), __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(onMouseEnter) && onMouseEnter(nextState, e); 3005 } 3006 }, this.triggeredAfterMouseMove = function(e) { 3007 var onMouseMove = _this7.props.onMouseMove, mouse = _this7.getMouseInfo(e), nextState = mouse ? _extends({}, mouse, { 3008 isTooltipActive: !0 3009 }) : { 3010 isTooltipActive: !1 3011 }; 3012 _this7.setState(nextState), _this7.triggerSyncEvent(nextState), __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(onMouseMove) && onMouseMove(nextState, e); 3013 }, this.handleItemMouseEnter = function(el) { 3014 _this7.setState(function() { 3015 return { 3016 isTooltipActive: !0, 3017 activeItem: el, 3018 activePayload: el.tooltipPayload, 3019 activeCoordinate: el.tooltipPosition || { 3020 x: el.cx, 3021 y: el.cy 3022 } 3023 }; 3024 }); 3025 }, this.handleItemMouseLeave = function() { 3026 _this7.setState(function() { 3027 return { 3028 isTooltipActive: !1 3029 }; 3030 }); 3031 }, this.handleMouseMove = function(e) { 3032 e && __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(e.persist) && e.persist(), 3033 _this7.triggeredAfterMouseMove(e); 3034 }, this.handleMouseLeave = function(e) { 3035 var onMouseLeave = _this7.props.onMouseLeave, nextState = { 3036 isTooltipActive: !1 3037 }; 3038 _this7.setState(nextState), _this7.triggerSyncEvent(nextState), __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(onMouseLeave) && onMouseLeave(nextState, e); 3039 }, this.handleOuterEvent = function(e) { 3040 var eventName = Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.l)(e); 3041 if (eventName && __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(_this7.props[eventName])) { 3042 var mouse = _this7.getMouseInfo(e); 3043 (0, _this7.props[eventName])(mouse, e); 3044 } 3045 }, this.handleClick = function(e) { 3046 var onClick = _this7.props.onClick; 3047 if (__WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(onClick)) { 3048 onClick(_this7.getMouseInfo(e), e); 3049 } 3050 }, this.handleMouseDown = function(e) { 3051 var onMouseDown = _this7.props.onMouseDown; 3052 if (__WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(onMouseDown)) { 3053 onMouseDown(_this7.getMouseInfo(e), e); 3054 } 3055 }, this.handleMouseUp = function(e) { 3056 var onMouseUp = _this7.props.onMouseUp; 3057 if (__WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(onMouseUp)) { 3058 onMouseUp(_this7.getMouseInfo(e), e); 3059 } 3060 }, this.handleTouchMove = function(e) { 3061 null != e.changedTouches && e.changedTouches.length > 0 && _this7.handleMouseMove(e.changedTouches[0]); 3062 }, this.verticalCoordinatesGenerator = function(_ref10) { 3063 var xAxis = _ref10.xAxis, width = _ref10.width, height = _ref10.height, offset = _ref10.offset; 3064 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, { 3065 ticks: Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.u)(xAxis, !0), 3066 viewBox: { 3067 x: 0, 3068 y: 0, 3069 width: width, 3070 height: height 3071 } 3072 })), offset.left, offset.left + offset.width); 3073 }, this.horizontalCoordinatesGenerator = function(_ref11) { 3074 var yAxis = _ref11.yAxis, width = _ref11.width, height = _ref11.height, offset = _ref11.offset; 3075 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, { 3076 ticks: Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.u)(yAxis, !0), 3077 viewBox: { 3078 x: 0, 3079 y: 0, 3080 width: width, 3081 height: height 3082 } 3083 })), offset.top, offset.top + offset.height); 3084 }, this.axesTicksGenerator = function(axis) { 3085 return Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.u)(axis, !0); 3086 }, this.tooltipTicksGenerator = function(axisMap) { 3087 var axis = Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.b)(axisMap), tooltipTicks = Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.u)(axis, !1, !0); 3088 return { 3089 tooltipTicks: tooltipTicks, 3090 orderedTooltipTicks: __WEBPACK_IMPORTED_MODULE_0_lodash_sortBy___default()(tooltipTicks, function(o) { 3091 return o.coordinate; 3092 }), 3093 tooltipAxis: axis, 3094 tooltipAxisBandSize: Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.g)(axis) 3095 }; 3096 }, this.renderCursor = function(element) { 3097 var _state11 = _this7.state, isTooltipActive = _state11.isTooltipActive, activeCoordinate = _state11.activeCoordinate, activePayload = _state11.activePayload, offset = _state11.offset; 3098 if (!(element && element.props.cursor && isTooltipActive && activeCoordinate)) return null; 3099 var layout = _this7.props.layout, restProps = void 0, cursorComp = __WEBPACK_IMPORTED_MODULE_12__shape_Curve__.a; 3100 if ("ScatterChart" === chartName) restProps = activeCoordinate, cursorComp = __WEBPACK_IMPORTED_MODULE_13__shape_Cross__.a; else if ("BarChart" === chartName) restProps = _this7.getCursorRectangle(), 3101 cursorComp = __WEBPACK_IMPORTED_MODULE_16__shape_Rectangle__.a; else if ("radial" === layout) { 3102 var _getCursorPoints = _this7.getCursorPoints(), cx = _getCursorPoints.cx, cy = _getCursorPoints.cy, radius = _getCursorPoints.radius, startAngle = _getCursorPoints.startAngle, endAngle = _getCursorPoints.endAngle; 3103 restProps = { 3104 cx: cx, 3105 cy: cy, 3106 startAngle: startAngle, 3107 endAngle: endAngle, 3108 innerRadius: radius, 3109 outerRadius: radius 3110 }, cursorComp = __WEBPACK_IMPORTED_MODULE_14__shape_Sector__.a; 3111 } else restProps = { 3112 points: _this7.getCursorPoints() 3113 }, cursorComp = __WEBPACK_IMPORTED_MODULE_12__shape_Curve__.a; 3114 var key = element.key || "_recharts-cursor", cursorProps = _extends({ 3115 stroke: "#ccc" 3116 }, offset, restProps, Object(__WEBPACK_IMPORTED_MODULE_17__util_ReactUtils__.k)(element.props.cursor), { 3117 payload: activePayload, 3118 key: key, 3119 className: "recharts-tooltip-cursor" 3120 }); 3121 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); 3122 }, this.renderPolarAxis = function(element, displayName, index) { 3123 var axisType = element.type.axisType, axisMap = _this7.state[axisType + "Map"], axisOption = axisMap[element.props[axisType + "Id"]]; 3124 return Object(__WEBPACK_IMPORTED_MODULE_5_react__.cloneElement)(element, _extends({}, axisOption, { 3125 className: axisType, 3126 key: element.key || displayName + "-" + index, 3127 ticks: Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.u)(axisOption, !0) 3128 })); 3129 }, this.renderXAxis = function(element, displayName, index) { 3130 var xAxisMap = _this7.state.xAxisMap, axisObj = xAxisMap[element.props.xAxisId]; 3131 return _this7.renderAxis(axisObj, element, displayName, index); 3132 }, this.renderYAxis = function(element, displayName, index) { 3133 var yAxisMap = _this7.state.yAxisMap, axisObj = yAxisMap[element.props.yAxisId]; 3134 return _this7.renderAxis(axisObj, element, displayName, index); 3135 }, this.renderGrid = function(element) { 3136 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 || {}; 3137 return Object(__WEBPACK_IMPORTED_MODULE_5_react__.cloneElement)(element, { 3138 key: element.key || "grid", 3139 x: Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.h)(props.x) ? props.x : offset.left, 3140 y: Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.h)(props.y) ? props.y : offset.top, 3141 width: Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.h)(props.width) ? props.width : offset.width, 3142 height: Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.h)(props.height) ? props.height : offset.height, 3143 xAxis: xAxis, 3144 yAxis: yAxis, 3145 offset: offset, 3146 chartWidth: width, 3147 chartHeight: height, 3148 verticalCoordinatesGenerator: _this7.verticalCoordinatesGenerator, 3149 horizontalCoordinatesGenerator: _this7.horizontalCoordinatesGenerator 3150 }); 3151 }, this.renderPolarGrid = function(element) { 3152 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; 3153 return Object(__WEBPACK_IMPORTED_MODULE_5_react__.cloneElement)(element, { 3154 polarAngles: Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.u)(angleAxis, !0).map(function(entry) { 3155 return entry.coordinate; 3156 }), 3157 polarRadius: Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.u)(radiusAxis, !0).map(function(entry) { 3158 return entry.coordinate; 3159 }), 3160 cx: cx, 3161 cy: cy, 3162 innerRadius: innerRadius, 3163 outerRadius: outerRadius, 3164 key: element.key || "polar-grid" 3165 }); 3166 }, this.renderBrush = function(element) { 3167 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; 3168 return Object(__WEBPACK_IMPORTED_MODULE_5_react__.cloneElement)(element, { 3169 key: element.key || "_recharts-brush", 3170 onChange: Object(__WEBPACK_IMPORTED_MODULE_22__util_ChartUtils__.d)(_this7.handleBrushChange, null, element.props.onChange), 3171 data: data, 3172 x: Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.h)(element.props.x) ? element.props.x : offset.left, 3173 y: Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.h)(element.props.y) ? element.props.y : offset.top + offset.height + offset.brushBottom - (margin.bottom || 0), 3174 width: Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.h)(element.props.width) ? element.props.width : offset.width, 3175 startIndex: dataStartIndex, 3176 endIndex: dataEndIndex, 3177 updateId: "brush-" + updateId 3178 }); 3179 }, this.renderReferenceElement = function(element, displayName, index) { 3180 if (!element) return null; 3181 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; 3182 return Object(__WEBPACK_IMPORTED_MODULE_5_react__.cloneElement)(element, { 3183 key: element.key || displayName + "-" + index, 3184 xAxis: xAxisMap[xAxisId], 3185 yAxis: yAxisMap[yAxisId], 3186 viewBox: { 3187 x: offset.left, 3188 y: offset.top, 3189 width: offset.width, 3190 height: offset.height 3191 } 3192 }); 3193 }, this.renderGraphicChild = function(element, displayName, index) { 3194 var item = _this7.filterFormatItem(element, displayName, index); 3195 if (!item) return null; 3196 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; 3197 if (!_item$item$props2.hide && isTooltipActive && tooltipItem && activeDot && activeTooltipIndex >= 0) { 3198 var activePoint = void 0, basePoint = void 0; 3199 if (tooltipAxis.dataKey && !tooltipAxis.allowDuplicatedCategory ? (activePoint = Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.a)(points, "payload." + tooltipAxis.dataKey, activeLabel), 3200 basePoint = isRange && baseLine && Object(__WEBPACK_IMPORTED_MODULE_21__util_DataUtils__.a)(baseLine, "payload." + tooltipAxis.dataKey, activeLabel)) : (activePoint = points[activeTooltipIndex], 3201 basePoint = isRange && baseLine && baseLine[activeTooltipIndex]), !__WEBPACK_IMPORTED_MODULE_4_lodash_isNil___default()(activePoint)) return [ graphicalItem ].concat(_toConsumableArray(_this7.renderActivePoints({ 3202 item: item, 3203 activePoint: activePoint, 3204 basePoint: basePoint, 3205 childIndex: activeTooltipIndex, 3206 isRange: isRange 3207 }))); 3208 } 3209 return isRange ? [ graphicalItem, null, null ] : [ graphicalItem, null ]; 3210 }; 3211 }, _temp; 3212 }; 3213 __webpack_exports__.a = generateCategoricalChart; 3214 }, function(module, exports, __webpack_require__) { 3215 "use strict"; 3216 (function(process) { 3217 function invariant(condition, format, a, b, c, d, e, f) { 3218 if (validateFormat(format), !condition) { 3219 var error; 3220 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 { 3221 var args = [ a, b, c, d, e, f ], argIndex = 0; 3222 error = new Error(format.replace(/%s/g, function() { 3223 return args[argIndex++]; 3224 })), error.name = "Invariant Violation"; 3225 } 3226 throw error.framesToPop = 1, error; 3227 } 3228 } 3229 var validateFormat = function(format) {}; 3230 "production" !== process.env.NODE_ENV && (validateFormat = function(format) { 3231 if (void 0 === format) throw new Error("invariant requires an error message argument"); 3232 }), module.exports = invariant; 3233 }).call(exports, __webpack_require__(2)); 3234 }, function(module, exports, __webpack_require__) { 3235 "use strict"; 3236 function makeEmptyFunction(arg) { 3237 return function() { 3238 return arg; 3239 }; 3240 } 3241 var emptyFunction = function() {}; 3242 emptyFunction.thatReturns = makeEmptyFunction, emptyFunction.thatReturnsFalse = makeEmptyFunction(!1), 3243 emptyFunction.thatReturnsTrue = makeEmptyFunction(!0), emptyFunction.thatReturnsNull = makeEmptyFunction(null), 3244 emptyFunction.thatReturnsThis = function() { 3245 return this; 3246 }, emptyFunction.thatReturnsArgument = function(arg) { 3247 return arg; 3248 }, module.exports = emptyFunction; 3249 }, function(module, exports, __webpack_require__) { 3250 var aFunction = __webpack_require__(223); 3251 module.exports = function(fn, that, length) { 3252 if (aFunction(fn), void 0 === that) return fn; 3253 switch (length) { 3254 case 1: 3255 return function(a) { 3256 return fn.call(that, a); 3257 }; 3258 3259 case 2: 3260 return function(a, b) { 3261 return fn.call(that, a, b); 3262 }; 3263 3264 case 3: 3265 return function(a, b, c) { 3266 return fn.call(that, a, b, c); 3267 }; 3268 } 3269 return function() { 3270 return fn.apply(that, arguments); 3271 }; 3272 }; 3273 }, function(module, exports, __webpack_require__) { 3274 var isObject = __webpack_require__(35); 3275 module.exports = function(it) { 3276 if (!isObject(it)) throw TypeError(it + " is not an object!"); 3277 return it; 3278 }; 3279 }, function(module, exports) { 3280 module.exports = function(exec) { 3281 try { 3282 return !!exec(); 3283 } catch (e) { 3284 return !0; 3285 } 3286 }; 3287 }, function(module, exports) { 3288 var hasOwnProperty = {}.hasOwnProperty; 3289 module.exports = function(it, key) { 3290 return hasOwnProperty.call(it, key); 3291 }; 3292 }, function(module, exports, __webpack_require__) { 3293 module.exports = { 3294 default: __webpack_require__(421), 3295 __esModule: !0 3296 }; 3297 }, function(module, exports, __webpack_require__) { 3298 "use strict"; 3299 (function(process) { 3300 function _interopRequireDefault(obj) { 3301 return obj && obj.__esModule ? obj : { 3302 default: obj 3303 }; 3304 } 3305 function capitalize(string) { 3306 if ("production" !== process.env.NODE_ENV && "string" != typeof string) throw new Error("Material-UI: capitalize(string) expects a string argument."); 3307 return string.charAt(0).toUpperCase() + string.slice(1); 3308 } 3309 function contains(obj, pred) { 3310 return (0, _keys2.default)(pred).every(function(key) { 3311 return obj.hasOwnProperty(key) && obj[key] === pred[key]; 3312 }); 3313 } 3314 function findIndex(arr, pred) { 3315 for (var predType = void 0 === pred ? "undefined" : (0, _typeof3.default)(pred), i = 0; i < arr.length; i += 1) { 3316 if ("function" === predType && !0 == !!pred(arr[i], i, arr)) return i; 3317 if ("object" === predType && contains(arr[i], pred)) return i; 3318 if (-1 !== [ "string", "number", "boolean" ].indexOf(predType)) return arr.indexOf(pred); 3319 } 3320 return -1; 3321 } 3322 function find(arr, pred) { 3323 var index = findIndex(arr, pred); 3324 return index > -1 ? arr[index] : void 0; 3325 } 3326 function createChainedFunction() { 3327 for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) funcs[_key] = arguments[_key]; 3328 return funcs.filter(function(func) { 3329 return null != func; 3330 }).reduce(function(acc, func) { 3331 return "production" !== process.env.NODE_ENV && (0, _warning2.default)("function" == typeof func, "Material-UI: invalid Argument Type, must only provide functions, undefined, or null."), 3332 function() { 3333 for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) args[_key2] = arguments[_key2]; 3334 acc.apply(this, args), func.apply(this, args); 3335 }; 3336 }, function() {}); 3337 } 3338 Object.defineProperty(exports, "__esModule", { 3339 value: !0 3340 }); 3341 var _typeof2 = __webpack_require__(105), _typeof3 = _interopRequireDefault(_typeof2), _keys = __webpack_require__(55), _keys2 = _interopRequireDefault(_keys); 3342 exports.capitalize = capitalize, exports.contains = contains, exports.findIndex = findIndex, 3343 exports.find = find, exports.createChainedFunction = createChainedFunction; 3344 var _warning = __webpack_require__(11), _warning2 = _interopRequireDefault(_warning); 3345 }).call(exports, __webpack_require__(2)); 3346 }, function(module, exports, __webpack_require__) { 3347 function getNative(object, key) { 3348 var value = getValue(object, key); 3349 return baseIsNative(value) ? value : void 0; 3350 } 3351 var baseIsNative = __webpack_require__(611), getValue = __webpack_require__(614); 3352 module.exports = getNative; 3353 }, function(module, __webpack_exports__, __webpack_require__) { 3354 "use strict"; 3355 __webpack_exports__.a = function(x) { 3356 return function() { 3357 return x; 3358 }; 3359 }; 3360 }, function(module, exports, __webpack_require__) { 3361 function getNative(object, key) { 3362 var value = getValue(object, key); 3363 return baseIsNative(value) ? value : void 0; 3364 } 3365 var baseIsNative = __webpack_require__(668), getValue = __webpack_require__(673); 3366 module.exports = getNative; 3367 }, function(module, exports, __webpack_require__) { 3368 function baseGetTag(value) { 3369 return null == value ? void 0 === value ? undefinedTag : nullTag : symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value); 3370 } 3371 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; 3372 module.exports = baseGetTag; 3373 }, function(module, __webpack_exports__, __webpack_require__) { 3374 "use strict"; 3375 function _objectWithoutProperties(obj, keys) { 3376 var target = {}; 3377 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 3378 return target; 3379 } 3380 function _classCallCheck(instance, Constructor) { 3381 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 3382 } 3383 function _possibleConstructorReturn(self, call) { 3384 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 3385 return !call || "object" != typeof call && "function" != typeof call ? self : call; 3386 } 3387 function _inherits(subClass, superClass) { 3388 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 3389 subClass.prototype = Object.create(superClass && superClass.prototype, { 3390 constructor: { 3391 value: subClass, 3392 enumerable: !1, 3393 writable: !0, 3394 configurable: !0 3395 } 3396 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 3397 } 3398 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) { 3399 for (var i = 1; i < arguments.length; i++) { 3400 var source = arguments[i]; 3401 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 3402 } 3403 return target; 3404 }, _createClass = function() { 3405 function defineProperties(target, props) { 3406 for (var i = 0; i < props.length; i++) { 3407 var descriptor = props[i]; 3408 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 3409 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 3410 } 3411 } 3412 return function(Constructor, protoProps, staticProps) { 3413 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 3414 Constructor; 3415 }; 3416 }(), BREAKING_SPACES = /[ \f\n\r\t\v\u2028\u2029]+/, calculateWordWidths = function(props) { 3417 try { 3418 return { 3419 wordsWithComputedWidth: (__WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default()(props.children) ? [] : props.children.toString().split(BREAKING_SPACES)).map(function(word) { 3420 return { 3421 word: word, 3422 width: Object(__WEBPACK_IMPORTED_MODULE_7__util_DOMUtils__.c)(word, props.style).width 3423 }; 3424 }), 3425 spaceWidth: Object(__WEBPACK_IMPORTED_MODULE_7__util_DOMUtils__.c)(" ", props.style).width 3426 }; 3427 } catch (e) { 3428 return null; 3429 } 3430 }, Text = (_temp2 = _class = function(_Component) { 3431 function Text() { 3432 var _ref, _temp, _this, _ret; 3433 _classCallCheck(this, Text); 3434 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 3435 return _temp = _this = _possibleConstructorReturn(this, (_ref = Text.__proto__ || Object.getPrototypeOf(Text)).call.apply(_ref, [ this ].concat(args))), 3436 _this.state = { 3437 wordsByLines: [] 3438 }, _ret = _temp, _possibleConstructorReturn(_this, _ret); 3439 } 3440 return _inherits(Text, _Component), _createClass(Text, [ { 3441 key: "componentWillMount", 3442 value: function() { 3443 this.updateWordsByLines(this.props, !0); 3444 } 3445 }, { 3446 key: "componentWillReceiveProps", 3447 value: function(nextProps) { 3448 var needCalculate = this.props.children !== nextProps.children || this.props.style !== nextProps.style; 3449 this.updateWordsByLines(nextProps, needCalculate); 3450 } 3451 }, { 3452 key: "updateWordsByLines", 3453 value: function(props, needCalculate) { 3454 if (!props.width && !props.scaleToFit || Object(__WEBPACK_IMPORTED_MODULE_6__util_ReactUtils__.n)()) this.updateWordsWithoutCalculate(props); else { 3455 if (needCalculate) { 3456 var wordWidths = calculateWordWidths(props); 3457 if (!wordWidths) return void this.updateWordsWithoutCalculate(props); 3458 var wordsWithComputedWidth = wordWidths.wordsWithComputedWidth, spaceWidth = wordWidths.spaceWidth; 3459 this.wordsWithComputedWidth = wordsWithComputedWidth, this.spaceWidth = spaceWidth; 3460 } 3461 var wordsByLines = this.calculateWordsByLines(this.wordsWithComputedWidth, this.spaceWidth, props.width); 3462 this.setState({ 3463 wordsByLines: wordsByLines 3464 }); 3465 } 3466 } 3467 }, { 3468 key: "updateWordsWithoutCalculate", 3469 value: function(props) { 3470 var words = __WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default()(props.children) ? [] : props.children.toString().split(BREAKING_SPACES); 3471 this.setState({ 3472 wordsByLines: [ { 3473 words: words 3474 } ] 3475 }); 3476 } 3477 }, { 3478 key: "calculateWordsByLines", 3479 value: function(wordsWithComputedWidth, spaceWidth, lineWidth) { 3480 var scaleToFit = this.props.scaleToFit; 3481 return wordsWithComputedWidth.reduce(function(result, _ref2) { 3482 var word = _ref2.word, width = _ref2.width, currentLine = result[result.length - 1]; 3483 if (currentLine && (null == lineWidth || scaleToFit || currentLine.width + width + spaceWidth < lineWidth)) currentLine.words.push(word), 3484 currentLine.width += width + spaceWidth; else { 3485 var newLine = { 3486 words: [ word ], 3487 width: width 3488 }; 3489 result.push(newLine); 3490 } 3491 return result; 3492 }, []); 3493 } 3494 }, { 3495 key: "render", 3496 value: function() { 3497 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; 3498 if (!Object(__WEBPACK_IMPORTED_MODULE_5__util_DataUtils__.g)(textProps.x) || !Object(__WEBPACK_IMPORTED_MODULE_5__util_DataUtils__.g)(textProps.y)) return null; 3499 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; 3500 switch (verticalAnchor) { 3501 case "start": 3502 startDy = __WEBPACK_IMPORTED_MODULE_3_reduce_css_calc___default()("calc(" + capHeight + ")"); 3503 break; 3504 3505 case "middle": 3506 startDy = __WEBPACK_IMPORTED_MODULE_3_reduce_css_calc___default()("calc(" + (wordsByLines.length - 1) / 2 + " * -" + lineHeight + " + (" + capHeight + " / 2))"); 3507 break; 3508 3509 default: 3510 startDy = __WEBPACK_IMPORTED_MODULE_3_reduce_css_calc___default()("calc(" + (wordsByLines.length - 1) + " * -" + lineHeight + ")"); 3511 } 3512 var transforms = []; 3513 if (scaleToFit) { 3514 var lineWidth = wordsByLines[0].width; 3515 transforms.push("scale(" + this.props.width / lineWidth + ")"); 3516 } 3517 return angle && transforms.push("rotate(" + angle + ", " + x + ", " + y + ")"), 3518 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), { 3519 x: x, 3520 y: y, 3521 className: __WEBPACK_IMPORTED_MODULE_4_classnames___default()("recharts-text", className), 3522 textAnchor: textAnchor 3523 }), wordsByLines.map(function(line, index) { 3524 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("tspan", { 3525 x: x, 3526 dy: 0 === index ? startDy : lineHeight, 3527 key: index 3528 }, line.words.join(" ")); 3529 })); 3530 } 3531 } ]), Text; 3532 }(__WEBPACK_IMPORTED_MODULE_1_react__.Component), _class.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_6__util_ReactUtils__.c, { 3533 scaleToFit: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, 3534 angle: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 3535 textAnchor: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOf([ "start", "middle", "end", "inherit" ]), 3536 verticalAnchor: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOf([ "start", "middle", "end" ]), 3537 style: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object 3538 }), _class.defaultProps = { 3539 x: 0, 3540 y: 0, 3541 lineHeight: "1em", 3542 capHeight: "0.71em", 3543 scaleToFit: !1, 3544 textAnchor: "start", 3545 verticalAnchor: "end" 3546 }, _temp2); 3547 __webpack_exports__.a = Text; 3548 }, function(module, __webpack_exports__, __webpack_require__) { 3549 "use strict"; 3550 __webpack_require__.d(__webpack_exports__, "a", function() { 3551 return map; 3552 }), __webpack_require__.d(__webpack_exports__, "b", function() { 3553 return slice; 3554 }); 3555 var array = Array.prototype, map = array.map, slice = array.slice; 3556 }, function(module, __webpack_exports__, __webpack_require__) { 3557 "use strict"; 3558 function _classCallCheck(instance, Constructor) { 3559 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 3560 } 3561 function _possibleConstructorReturn(self, call) { 3562 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 3563 return !call || "object" != typeof call && "function" != typeof call ? self : call; 3564 } 3565 function _inherits(subClass, superClass) { 3566 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 3567 subClass.prototype = Object.create(superClass && superClass.prototype, { 3568 constructor: { 3569 value: subClass, 3570 enumerable: !1, 3571 writable: !0, 3572 configurable: !0 3573 } 3574 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 3575 } 3576 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) { 3577 for (var i = 1; i < arguments.length; i++) { 3578 var source = arguments[i]; 3579 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 3580 } 3581 return target; 3582 }, _createClass = function() { 3583 function defineProperties(target, props) { 3584 for (var i = 0; i < props.length; i++) { 3585 var descriptor = props[i]; 3586 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 3587 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 3588 } 3589 } 3590 return function(Constructor, protoProps, staticProps) { 3591 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 3592 Constructor; 3593 }; 3594 }(), Dot = Object(__WEBPACK_IMPORTED_MODULE_3__util_PureRender__.a)((_temp = _class2 = function(_Component) { 3595 function Dot() { 3596 return _classCallCheck(this, Dot), _possibleConstructorReturn(this, (Dot.__proto__ || Object.getPrototypeOf(Dot)).apply(this, arguments)); 3597 } 3598 return _inherits(Dot, _Component), _createClass(Dot, [ { 3599 key: "render", 3600 value: function() { 3601 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); 3602 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), { 3603 className: layerClass, 3604 cx: cx, 3605 cy: cy, 3606 r: r 3607 })) : null; 3608 } 3609 } ]), Dot; 3610 }(__WEBPACK_IMPORTED_MODULE_0_react__.Component), _class2.displayName = "Dot", _class2.propTypes = { 3611 className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, 3612 cx: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 3613 cy: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 3614 r: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number 3615 }, _class = _temp)) || _class; 3616 __webpack_exports__.a = Dot; 3617 }, function(module, exports, __webpack_require__) { 3618 var IObject = __webpack_require__(146), defined = __webpack_require__(148); 3619 module.exports = function(it) { 3620 return IObject(defined(it)); 3621 }; 3622 }, function(module, exports, __webpack_require__) { 3623 var defined = __webpack_require__(148); 3624 module.exports = function(it) { 3625 return Object(defined(it)); 3626 }; 3627 }, function(module, exports, __webpack_require__) { 3628 "use strict"; 3629 function _interopRequireDefault(obj) { 3630 return obj && obj.__esModule ? obj : { 3631 default: obj 3632 }; 3633 } 3634 function _classCallCheck(instance, Constructor) { 3635 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 3636 } 3637 Object.defineProperty(exports, "__esModule", { 3638 value: !0 3639 }); 3640 var _extends = Object.assign || function(target) { 3641 for (var i = 1; i < arguments.length; i++) { 3642 var source = arguments[i]; 3643 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 3644 } 3645 return target; 3646 }, _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj) { 3647 return typeof obj; 3648 } : function(obj) { 3649 return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 3650 }, _createClass = function() { 3651 function defineProperties(target, props) { 3652 for (var i = 0; i < props.length; i++) { 3653 var descriptor = props[i]; 3654 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 3655 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 3656 } 3657 } 3658 return function(Constructor, protoProps, staticProps) { 3659 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 3660 Constructor; 3661 }; 3662 }(), _warning = __webpack_require__(11), _warning2 = _interopRequireDefault(_warning), _toCss = __webpack_require__(163), _toCss2 = _interopRequireDefault(_toCss), _toCssValue = __webpack_require__(110), _toCssValue2 = _interopRequireDefault(_toCssValue), StyleRule = function() { 3663 function StyleRule(key, style, options) { 3664 _classCallCheck(this, StyleRule), this.type = "style", this.isProcessed = !1; 3665 var sheet = options.sheet, Renderer = options.Renderer, selector = options.selector; 3666 this.key = key, this.options = options, this.style = style, selector && (this.selectorText = selector), 3667 this.renderer = sheet ? sheet.renderer : new Renderer(); 3668 } 3669 return _createClass(StyleRule, [ { 3670 key: "prop", 3671 value: function(name, value) { 3672 if (void 0 === value) return this.style[name]; 3673 if (this.style[name] === value) return this; 3674 value = this.options.jss.plugins.onChangeValue(value, name, this); 3675 var isEmpty = null == value || !1 === value, isDefined = name in this.style; 3676 if (isEmpty && !isDefined) return this; 3677 var remove = isEmpty && isDefined; 3678 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), 3679 this; 3680 var sheet = this.options.sheet; 3681 return sheet && sheet.attached && (0, _warning2.default)(!1, 'Rule is not linked. Missing sheet option "link: true".'), 3682 this; 3683 } 3684 }, { 3685 key: "applyTo", 3686 value: function(renderable) { 3687 var json = this.toJSON(); 3688 for (var prop in json) this.renderer.setProperty(renderable, prop, json[prop]); 3689 return this; 3690 } 3691 }, { 3692 key: "toJSON", 3693 value: function() { 3694 var json = {}; 3695 for (var prop in this.style) { 3696 var value = this.style[prop]; 3697 "object" !== (void 0 === value ? "undefined" : _typeof(value)) ? json[prop] = value : Array.isArray(value) && (json[prop] = (0, 3698 _toCssValue2.default)(value)); 3699 } 3700 return json; 3701 } 3702 }, { 3703 key: "toString", 3704 value: function(options) { 3705 var sheet = this.options.sheet, link = !!sheet && sheet.options.link, opts = link ? _extends({}, options, { 3706 allowEmpty: !0 3707 }) : options; 3708 return (0, _toCss2.default)(this.selector, this.style, opts); 3709 } 3710 }, { 3711 key: "selector", 3712 set: function(selector) { 3713 if (selector !== this.selectorText && (this.selectorText = selector, this.renderable)) { 3714 if (!this.renderer.setSelector(this.renderable, selector) && this.renderable) { 3715 var renderable = this.renderer.replaceRule(this.renderable, this); 3716 renderable && (this.renderable = renderable); 3717 } 3718 } 3719 }, 3720 get: function() { 3721 return this.selectorText; 3722 } 3723 } ]), StyleRule; 3724 }(); 3725 exports.default = StyleRule; 3726 }, function(module, exports, __webpack_require__) { 3727 function isSymbol(value) { 3728 return "symbol" == typeof value || isObjectLike(value) && baseGetTag(value) == symbolTag; 3729 } 3730 var baseGetTag = __webpack_require__(41), isObjectLike = __webpack_require__(42), symbolTag = "[object Symbol]"; 3731 module.exports = isSymbol; 3732 }, function(module, exports) { 3733 function identity(value) { 3734 return value; 3735 } 3736 module.exports = identity; 3737 }, function(module, __webpack_exports__, __webpack_require__) { 3738 "use strict"; 3739 __webpack_exports__.a = function(a, b) { 3740 return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN; 3741 }; 3742 }, function(module, __webpack_exports__, __webpack_require__) { 3743 "use strict"; 3744 function _classCallCheck(instance, Constructor) { 3745 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 3746 } 3747 function _possibleConstructorReturn(self, call) { 3748 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 3749 return !call || "object" != typeof call && "function" != typeof call ? self : call; 3750 } 3751 function _inherits(subClass, superClass) { 3752 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 3753 subClass.prototype = Object.create(superClass && superClass.prototype, { 3754 constructor: { 3755 value: subClass, 3756 enumerable: !1, 3757 writable: !0, 3758 configurable: !0 3759 } 3760 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 3761 } 3762 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) { 3763 for (var i = 1; i < arguments.length; i++) { 3764 var source = arguments[i]; 3765 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 3766 } 3767 return target; 3768 }, _createClass = function() { 3769 function defineProperties(target, props) { 3770 for (var i = 0; i < props.length; i++) { 3771 var descriptor = props[i]; 3772 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 3773 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 3774 } 3775 } 3776 return function(Constructor, protoProps, staticProps) { 3777 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 3778 Constructor; 3779 }; 3780 }(), getRectangePath = function(x, y, width, height, radius) { 3781 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; 3782 if (maxRadius > 0 && radius instanceof Array) { 3783 for (var newRadius = [], i = 0; i < 4; i++) newRadius[i] = radius[i] > maxRadius ? maxRadius : radius[i]; 3784 path = "M" + x + "," + (y + sign * newRadius[0]), newRadius[0] > 0 && (path += "A " + newRadius[0] + "," + newRadius[0] + ",0,0," + clockWise + "," + (x + newRadius[0]) + "," + y), 3785 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])), 3786 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)), 3787 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])), 3788 path += "Z"; 3789 } else if (maxRadius > 0 && radius === +radius && radius > 0) { 3790 var _newRadius = Math.min(maxRadius, radius); 3791 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"; 3792 } else path = "M " + x + "," + y + " h " + width + " v " + height + " h " + -width + " Z"; 3793 return path; 3794 }, Rectangle = Object(__WEBPACK_IMPORTED_MODULE_4__util_PureRender__.a)((_temp2 = _class2 = function(_Component) { 3795 function Rectangle() { 3796 var _ref, _temp, _this, _ret; 3797 _classCallCheck(this, Rectangle); 3798 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 3799 return _temp = _this = _possibleConstructorReturn(this, (_ref = Rectangle.__proto__ || Object.getPrototypeOf(Rectangle)).call.apply(_ref, [ this ].concat(args))), 3800 _this.state = { 3801 totalLength: -1 3802 }, _ret = _temp, _possibleConstructorReturn(_this, _ret); 3803 } 3804 return _inherits(Rectangle, _Component), _createClass(Rectangle, [ { 3805 key: "componentDidMount", 3806 value: function() { 3807 if (this.node && this.node.getTotalLength) try { 3808 var totalLength = this.node.getTotalLength(); 3809 totalLength && this.setState({ 3810 totalLength: totalLength 3811 }); 3812 } catch (err) {} 3813 } 3814 }, { 3815 key: "render", 3816 value: function() { 3817 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; 3818 if (x !== +x || y !== +y || width !== +width || height !== +height || 0 === width || 0 === height) return null; 3819 var layerClass = __WEBPACK_IMPORTED_MODULE_2_classnames___default()("recharts-rectangle", className); 3820 return isUpdateAnimationActive ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_react_smooth___default.a, { 3821 canBegin: totalLength > 0, 3822 from: { 3823 width: width, 3824 height: height, 3825 x: x, 3826 y: y 3827 }, 3828 to: { 3829 width: width, 3830 height: height, 3831 x: x, 3832 y: y 3833 }, 3834 duration: animationDuration, 3835 animationEasing: animationEasing, 3836 isActive: isUpdateAnimationActive 3837 }, function(_ref2) { 3838 var currWidth = _ref2.width, currHeight = _ref2.height, currX = _ref2.x, currY = _ref2.y; 3839 return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_react_smooth___default.a, { 3840 canBegin: totalLength > 0, 3841 from: "0px " + (-1 === totalLength ? 1 : totalLength) + "px", 3842 to: totalLength + "px 0px", 3843 attributeName: "strokeDasharray", 3844 begin: animationBegin, 3845 duration: animationDuration, 3846 isActive: isAnimationActive, 3847 easing: animationEasing 3848 }, __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), { 3849 className: layerClass, 3850 d: getRectangePath(currX, currY, currWidth, currHeight, radius), 3851 ref: function(node) { 3852 _this2.node = node; 3853 } 3854 }))); 3855 }) : __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), { 3856 className: layerClass, 3857 d: getRectangePath(x, y, width, height, radius) 3858 })); 3859 } 3860 } ]), Rectangle; 3861 }(__WEBPACK_IMPORTED_MODULE_0_react__.Component), _class2.displayName = "Rectangle", 3862 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__.c, __WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__.a, { 3863 className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, 3864 x: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 3865 y: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 3866 width: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 3867 height: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 3868 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 ]), 3869 isAnimationActive: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, 3870 isUpdateAnimationActive: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, 3871 animationBegin: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 3872 animationDuration: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 3873 animationEasing: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf([ "ease", "ease-in", "ease-out", "ease-in-out", "linear" ]) 3874 }), _class2.defaultProps = { 3875 x: 0, 3876 y: 0, 3877 width: 0, 3878 height: 0, 3879 radius: 0, 3880 isAnimationActive: !1, 3881 isUpdateAnimationActive: !1, 3882 animationBegin: 0, 3883 animationDuration: 1500, 3884 animationEasing: "ease" 3885 }, _class = _temp2)) || _class; 3886 __webpack_exports__.a = Rectangle; 3887 }, function(module, __webpack_exports__, __webpack_require__) { 3888 "use strict"; 3889 function _classCallCheck(instance, Constructor) { 3890 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 3891 } 3892 function _possibleConstructorReturn(self, call) { 3893 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 3894 return !call || "object" != typeof call && "function" != typeof call ? self : call; 3895 } 3896 function _inherits(subClass, superClass) { 3897 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 3898 subClass.prototype = Object.create(superClass && superClass.prototype, { 3899 constructor: { 3900 value: subClass, 3901 enumerable: !1, 3902 writable: !0, 3903 configurable: !0 3904 } 3905 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 3906 } 3907 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) { 3908 for (var i = 1; i < arguments.length; i++) { 3909 var source = arguments[i]; 3910 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 3911 } 3912 return target; 3913 }, _createClass = function() { 3914 function defineProperties(target, props) { 3915 for (var i = 0; i < props.length; i++) { 3916 var descriptor = props[i]; 3917 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 3918 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 3919 } 3920 } 3921 return function(Constructor, protoProps, staticProps) { 3922 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 3923 Constructor; 3924 }; 3925 }(), CURVE_FACTORIES = { 3926 curveBasisClosed: __WEBPACK_IMPORTED_MODULE_4_d3_shape__.c, 3927 curveBasisOpen: __WEBPACK_IMPORTED_MODULE_4_d3_shape__.d, 3928 curveBasis: __WEBPACK_IMPORTED_MODULE_4_d3_shape__.b, 3929 curveLinearClosed: __WEBPACK_IMPORTED_MODULE_4_d3_shape__.f, 3930 curveLinear: __WEBPACK_IMPORTED_MODULE_4_d3_shape__.e, 3931 curveMonotoneX: __WEBPACK_IMPORTED_MODULE_4_d3_shape__.g, 3932 curveMonotoneY: __WEBPACK_IMPORTED_MODULE_4_d3_shape__.h, 3933 curveNatural: __WEBPACK_IMPORTED_MODULE_4_d3_shape__.i, 3934 curveStep: __WEBPACK_IMPORTED_MODULE_4_d3_shape__.j, 3935 curveStepAfter: __WEBPACK_IMPORTED_MODULE_4_d3_shape__.k, 3936 curveStepBefore: __WEBPACK_IMPORTED_MODULE_4_d3_shape__.l 3937 }, defined = function(p) { 3938 return p.x === +p.x && p.y === +p.y; 3939 }, getX = function(p) { 3940 return p.x; 3941 }, getY = function(p) { 3942 return p.y; 3943 }, getCurveFactory = function(type, layout) { 3944 if (__WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(type)) return type; 3945 var name = "curve" + type.slice(0, 1).toUpperCase() + type.slice(1); 3946 return "curveMonotone" === name && layout ? CURVE_FACTORIES[name + ("vertical" === layout ? "Y" : "X")] : CURVE_FACTORIES[name] || __WEBPACK_IMPORTED_MODULE_4_d3_shape__.e; 3947 }, Curve = Object(__WEBPACK_IMPORTED_MODULE_6__util_PureRender__.a)((_temp = _class2 = function(_Component) { 3948 function Curve() { 3949 return _classCallCheck(this, Curve), _possibleConstructorReturn(this, (Curve.__proto__ || Object.getPrototypeOf(Curve)).apply(this, arguments)); 3950 } 3951 return _inherits(Curve, _Component), _createClass(Curve, [ { 3952 key: "getPath", 3953 value: function() { 3954 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) { 3955 return defined(entry); 3956 }) : points, lineFunction = void 0; 3957 if (__WEBPACK_IMPORTED_MODULE_0_lodash_isArray___default()(baseLine)) { 3958 var areaPoints = formatPoints.map(function(entry, index) { 3959 return _extends({}, entry, { 3960 base: baseLine[index] 3961 }); 3962 }); 3963 return lineFunction = "vertical" === layout ? Object(__WEBPACK_IMPORTED_MODULE_4_d3_shape__.a)().y(getY).x1(getX).x0(function(d) { 3964 return d.base.x; 3965 }) : Object(__WEBPACK_IMPORTED_MODULE_4_d3_shape__.a)().x(getX).y1(getY).y0(function(d) { 3966 return d.base.y; 3967 }), lineFunction.defined(defined).curve(curveFactory), lineFunction(areaPoints); 3968 } 3969 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), 3970 lineFunction.defined(defined).curve(curveFactory), lineFunction(formatPoints); 3971 } 3972 }, { 3973 key: "render", 3974 value: function() { 3975 var _props2 = this.props, className = _props2.className, points = _props2.points, path = _props2.path, pathRef = _props2.pathRef; 3976 if (!(points && points.length || path)) return null; 3977 var realPath = points && points.length ? this.getPath() : path; 3978 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), { 3979 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()("recharts-curve", className), 3980 d: realPath, 3981 ref: pathRef 3982 })); 3983 } 3984 } ]), Curve; 3985 }(__WEBPACK_IMPORTED_MODULE_2_react__.Component), _class2.displayName = "Curve", 3986 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_7__util_ReactUtils__.c, { 3987 className: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string, 3988 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 ]), 3989 layout: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf([ "horizontal", "vertical" ]), 3990 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 ]), 3991 points: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object), 3992 connectNulls: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool, 3993 path: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string, 3994 pathRef: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func 3995 }), _class2.defaultProps = { 3996 type: "linear", 3997 points: [], 3998 connectNulls: !1 3999 }, _class = _temp)) || _class; 4000 __webpack_exports__.a = Curve; 4001 }, function(module, __webpack_exports__, __webpack_require__) { 4002 "use strict"; 4003 function _classCallCheck(instance, Constructor) { 4004 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 4005 } 4006 function _possibleConstructorReturn(self, call) { 4007 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 4008 return !call || "object" != typeof call && "function" != typeof call ? self : call; 4009 } 4010 function _inherits(subClass, superClass) { 4011 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 4012 subClass.prototype = Object.create(superClass && superClass.prototype, { 4013 constructor: { 4014 value: subClass, 4015 enumerable: !1, 4016 writable: !0, 4017 configurable: !0 4018 } 4019 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 4020 } 4021 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__), 4022 __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() { 4023 function defineProperties(target, props) { 4024 for (var i = 0; i < props.length; i++) { 4025 var descriptor = props[i]; 4026 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 4027 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 4028 } 4029 } 4030 return function(Constructor, protoProps, staticProps) { 4031 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 4032 Constructor; 4033 }; 4034 }(), XAxis = Object(__WEBPACK_IMPORTED_MODULE_2__util_PureRender__.a)((_temp = _class2 = function(_Component) { 4035 function XAxis() { 4036 return _classCallCheck(this, XAxis), _possibleConstructorReturn(this, (XAxis.__proto__ || Object.getPrototypeOf(XAxis)).apply(this, arguments)); 4037 } 4038 return _inherits(XAxis, _Component), _createClass(XAxis, [ { 4039 key: "render", 4040 value: function() { 4041 return null; 4042 } 4043 } ]), XAxis; 4044 }(__WEBPACK_IMPORTED_MODULE_0_react__.Component), _class2.displayName = "XAxis", 4045 _class2.propTypes = { 4046 allowDecimals: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, 4047 allowDuplicatedCategory: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, 4048 hide: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, 4049 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 ]), 4050 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 ]), 4051 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 ]), 4052 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" ]) ])), 4053 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 ]), 4054 width: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4055 height: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4056 mirror: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, 4057 orientation: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf([ "top", "bottom" ]), 4058 type: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf([ "number", "category" ]), 4059 ticks: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.array, 4060 tickCount: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4061 tickFormatter: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, 4062 padding: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape({ 4063 left: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4064 right: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number 4065 }), 4066 allowDataOverflow: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, 4067 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 ]), 4068 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 ]), 4069 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 ]), 4070 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 ]), 4071 minTickGap: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4072 tickSize: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4073 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" ]) ]), 4074 reversed: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool 4075 }, _class2.defaultProps = { 4076 allowDecimals: !0, 4077 hide: !1, 4078 orientation: "bottom", 4079 width: 0, 4080 height: 30, 4081 mirror: !1, 4082 xAxisId: 0, 4083 tickCount: 5, 4084 type: "category", 4085 domain: [ 0, "auto" ], 4086 padding: { 4087 left: 0, 4088 right: 0 4089 }, 4090 allowDataOverflow: !1, 4091 scale: "auto", 4092 reversed: !1, 4093 allowDuplicatedCategory: !0 4094 }, _class = _temp)) || _class; 4095 __webpack_exports__.a = XAxis; 4096 }, function(module, __webpack_exports__, __webpack_require__) { 4097 "use strict"; 4098 function _classCallCheck(instance, Constructor) { 4099 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 4100 } 4101 function _possibleConstructorReturn(self, call) { 4102 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 4103 return !call || "object" != typeof call && "function" != typeof call ? self : call; 4104 } 4105 function _inherits(subClass, superClass) { 4106 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 4107 subClass.prototype = Object.create(superClass && superClass.prototype, { 4108 constructor: { 4109 value: subClass, 4110 enumerable: !1, 4111 writable: !0, 4112 configurable: !0 4113 } 4114 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 4115 } 4116 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__), 4117 __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() { 4118 function defineProperties(target, props) { 4119 for (var i = 0; i < props.length; i++) { 4120 var descriptor = props[i]; 4121 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 4122 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 4123 } 4124 } 4125 return function(Constructor, protoProps, staticProps) { 4126 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 4127 Constructor; 4128 }; 4129 }(), YAxis = Object(__WEBPACK_IMPORTED_MODULE_2__util_PureRender__.a)((_temp = _class2 = function(_Component) { 4130 function YAxis() { 4131 return _classCallCheck(this, YAxis), _possibleConstructorReturn(this, (YAxis.__proto__ || Object.getPrototypeOf(YAxis)).apply(this, arguments)); 4132 } 4133 return _inherits(YAxis, _Component), _createClass(YAxis, [ { 4134 key: "render", 4135 value: function() { 4136 return null; 4137 } 4138 } ]), YAxis; 4139 }(__WEBPACK_IMPORTED_MODULE_0_react__.Component), _class2.displayName = "YAxis", 4140 _class2.propTypes = { 4141 allowDecimals: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, 4142 allowDuplicatedCategory: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, 4143 hide: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, 4144 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 ]), 4145 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 ]), 4146 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 ]), 4147 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" ]) ])), 4148 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 ]), 4149 ticks: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.array, 4150 tickCount: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4151 tickFormatter: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, 4152 width: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4153 height: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4154 mirror: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, 4155 orientation: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf([ "left", "right" ]), 4156 type: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf([ "number", "category" ]), 4157 padding: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape({ 4158 top: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4159 bottom: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number 4160 }), 4161 allowDataOverflow: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool, 4162 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 ]), 4163 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 ]), 4164 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 ]), 4165 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 ]), 4166 minTickGap: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4167 tickSize: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4168 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" ]) ]), 4169 reversed: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool 4170 }, _class2.defaultProps = { 4171 allowDuplicatedCategory: !0, 4172 allowDecimals: !0, 4173 hide: !1, 4174 orientation: "left", 4175 width: 60, 4176 height: 0, 4177 mirror: !1, 4178 yAxisId: 0, 4179 tickCount: 5, 4180 type: "number", 4181 domain: [ 0, "auto" ], 4182 padding: { 4183 top: 0, 4184 bottom: 0 4185 }, 4186 allowDataOverflow: !1, 4187 scale: "auto", 4188 reversed: !1 4189 }, _class = _temp)) || _class; 4190 __webpack_exports__.a = YAxis; 4191 }, function(module, exports, __webpack_require__) { 4192 "use strict"; 4193 function toObject(val) { 4194 if (null === val || void 0 === val) throw new TypeError("Object.assign cannot be called with null or undefined"); 4195 return Object(val); 4196 } 4197 var getOwnPropertySymbols = Object.getOwnPropertySymbols, hasOwnProperty = Object.prototype.hasOwnProperty, propIsEnumerable = Object.prototype.propertyIsEnumerable; 4198 module.exports = function() { 4199 try { 4200 if (!Object.assign) return !1; 4201 var test1 = new String("abc"); 4202 if (test1[5] = "de", "5" === Object.getOwnPropertyNames(test1)[0]) return !1; 4203 for (var test2 = {}, i = 0; i < 10; i++) test2["_" + String.fromCharCode(i)] = i; 4204 if ("0123456789" !== Object.getOwnPropertyNames(test2).map(function(n) { 4205 return test2[n]; 4206 }).join("")) return !1; 4207 var test3 = {}; 4208 return "abcdefghijklmnopqrst".split("").forEach(function(letter) { 4209 test3[letter] = letter; 4210 }), "abcdefghijklmnopqrst" === Object.keys(Object.assign({}, test3)).join(""); 4211 } catch (err) { 4212 return !1; 4213 } 4214 }() ? Object.assign : function(target, source) { 4215 for (var from, symbols, to = toObject(target), s = 1; s < arguments.length; s++) { 4216 from = Object(arguments[s]); 4217 for (var key in from) hasOwnProperty.call(from, key) && (to[key] = from[key]); 4218 if (getOwnPropertySymbols) { 4219 symbols = getOwnPropertySymbols(from); 4220 for (var i = 0; i < symbols.length; i++) propIsEnumerable.call(from, symbols[i]) && (to[symbols[i]] = from[symbols[i]]); 4221 } 4222 } 4223 return to; 4224 }; 4225 }, function(module, exports) { 4226 module.exports = function(bitmap, value) { 4227 return { 4228 enumerable: !(1 & bitmap), 4229 configurable: !(2 & bitmap), 4230 writable: !(4 & bitmap), 4231 value: value 4232 }; 4233 }; 4234 }, function(module, exports, __webpack_require__) { 4235 var $keys = __webpack_require__(226), enumBugKeys = __webpack_require__(152); 4236 module.exports = Object.keys || function(O) { 4237 return $keys(O, enumBugKeys); 4238 }; 4239 }, function(module, exports) { 4240 module.exports = {}; 4241 }, function(module, exports, __webpack_require__) { 4242 "use strict"; 4243 function _interopRequireDefault(obj) { 4244 return obj && obj.__esModule ? obj : { 4245 default: obj 4246 }; 4247 } 4248 function createBreakpoints(breakpoints) { 4249 function up(key) { 4250 return "@media (min-width:" + ("number" == typeof values[key] ? values[key] : key) + unit + ")"; 4251 } 4252 function down(key) { 4253 var endIndex = keys.indexOf(key) + 1, upperbound = values[keys[endIndex]]; 4254 return endIndex === keys.length ? up("xs") : "@media (max-width:" + (("number" == typeof upperbound && endIndex > 0 ? upperbound : key) - step / 100) + unit + ")"; 4255 } 4256 function between(start, end) { 4257 var endIndex = keys.indexOf(end) + 1; 4258 return endIndex === keys.length ? up(start) : "@media (min-width:" + values[start] + unit + ") and (max-width:" + (values[keys[endIndex]] - step / 100) + unit + ")"; 4259 } 4260 function only(key) { 4261 return between(key, key); 4262 } 4263 function width(key) { 4264 return values[key]; 4265 } 4266 var _breakpoints$values = breakpoints.values, values = void 0 === _breakpoints$values ? { 4267 xs: 0, 4268 sm: 600, 4269 md: 960, 4270 lg: 1280, 4271 xl: 1920 4272 } : _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, 4273 _objectWithoutProperties3.default)(breakpoints, [ "values", "unit", "step" ]); 4274 return (0, _extends3.default)({ 4275 keys: keys, 4276 values: values, 4277 up: up, 4278 down: down, 4279 between: between, 4280 only: only, 4281 width: width 4282 }, other); 4283 } 4284 Object.defineProperty(exports, "__esModule", { 4285 value: !0 4286 }), exports.keys = void 0; 4287 var _extends2 = __webpack_require__(6), _extends3 = _interopRequireDefault(_extends2), _objectWithoutProperties2 = __webpack_require__(7), _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); 4288 exports.default = createBreakpoints; 4289 var keys = exports.keys = [ "xs", "sm", "md", "lg", "xl" ]; 4290 }, function(module, exports, __webpack_require__) { 4291 "use strict"; 4292 exports.__esModule = !0; 4293 var _getDisplayName = __webpack_require__(244), _getDisplayName2 = function(obj) { 4294 return obj && obj.__esModule ? obj : { 4295 default: obj 4296 }; 4297 }(_getDisplayName), wrapDisplayName = function(BaseComponent, hocName) { 4298 return hocName + "(" + (0, _getDisplayName2.default)(BaseComponent) + ")"; 4299 }; 4300 exports.default = wrapDisplayName; 4301 }, function(module, exports, __webpack_require__) { 4302 "use strict"; 4303 function _interopRequireDefault(obj) { 4304 return obj && obj.__esModule ? obj : { 4305 default: obj 4306 }; 4307 } 4308 function _classCallCheck(instance, Constructor) { 4309 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 4310 } 4311 Object.defineProperty(exports, "__esModule", { 4312 value: !0 4313 }); 4314 var _extends = Object.assign || function(target) { 4315 for (var i = 1; i < arguments.length; i++) { 4316 var source = arguments[i]; 4317 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 4318 } 4319 return target; 4320 }, _createClass = function() { 4321 function defineProperties(target, props) { 4322 for (var i = 0; i < props.length; i++) { 4323 var descriptor = props[i]; 4324 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 4325 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 4326 } 4327 } 4328 return function(Constructor, protoProps, staticProps) { 4329 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 4330 Constructor; 4331 }; 4332 }(), _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() { 4333 function RuleList(options) { 4334 _classCallCheck(this, RuleList), this.map = {}, this.raw = {}, this.index = [], 4335 this.options = options, this.classes = options.classes; 4336 } 4337 return _createClass(RuleList, [ { 4338 key: "add", 4339 value: function(name, decl, options) { 4340 var _options = this.options, parent = _options.parent, sheet = _options.sheet, jss = _options.jss, Renderer = _options.Renderer, generateClassName = _options.generateClassName; 4341 options = _extends({ 4342 classes: this.classes, 4343 parent: parent, 4344 sheet: sheet, 4345 jss: jss, 4346 Renderer: Renderer, 4347 generateClassName: generateClassName 4348 }, options), !options.selector && this.classes[name] && (options.selector = "." + (0, 4349 _escape2.default)(this.classes[name])), this.raw[name] = decl; 4350 var rule = (0, _createRule2.default)(name, decl, options), className = void 0; 4351 !options.selector && rule instanceof _StyleRule2.default && (className = generateClassName(rule, sheet), 4352 rule.selector = "." + (0, _escape2.default)(className)), this.register(rule, className); 4353 var index = void 0 === options.index ? this.index.length : options.index; 4354 return this.index.splice(index, 0, rule), rule; 4355 } 4356 }, { 4357 key: "get", 4358 value: function(name) { 4359 return this.map[name]; 4360 } 4361 }, { 4362 key: "remove", 4363 value: function(rule) { 4364 this.unregister(rule), this.index.splice(this.indexOf(rule), 1); 4365 } 4366 }, { 4367 key: "indexOf", 4368 value: function(rule) { 4369 return this.index.indexOf(rule); 4370 } 4371 }, { 4372 key: "process", 4373 value: function() { 4374 var plugins = this.options.jss.plugins; 4375 this.index.slice(0).forEach(plugins.onProcessRule, plugins); 4376 } 4377 }, { 4378 key: "register", 4379 value: function(rule, className) { 4380 this.map[rule.key] = rule, rule instanceof _StyleRule2.default && (this.map[rule.selector] = rule, 4381 className && (this.classes[rule.key] = className)); 4382 } 4383 }, { 4384 key: "unregister", 4385 value: function(rule) { 4386 delete this.map[rule.key], rule instanceof _StyleRule2.default && (delete this.map[rule.selector], 4387 delete this.classes[rule.key]); 4388 } 4389 }, { 4390 key: "update", 4391 value: function(name, data) { 4392 var _options2 = this.options, plugins = _options2.jss.plugins, sheet = _options2.sheet; 4393 if ("string" == typeof name) return void plugins.onUpdate(data, this.get(name), sheet); 4394 for (var index = 0; index < this.index.length; index++) plugins.onUpdate(name, this.index[index], sheet); 4395 } 4396 }, { 4397 key: "link", 4398 value: function(cssRules) { 4399 for (var map = this.options.sheet.renderer.getUnescapedKeysMap(this.index), i = 0; i < cssRules.length; i++) { 4400 var cssRule = cssRules[i], _key = this.options.sheet.renderer.getKey(cssRule); 4401 map[_key] && (_key = map[_key]); 4402 var rule = this.map[_key]; 4403 rule && (0, _linkRule2.default)(rule, cssRule); 4404 } 4405 } 4406 }, { 4407 key: "toString", 4408 value: function(options) { 4409 for (var str = "", sheet = this.options.sheet, link = !!sheet && sheet.options.link, index = 0; index < this.index.length; index++) { 4410 var rule = this.index[index], css = rule.toString(options); 4411 (css || link) && (str && (str += "\n"), str += css); 4412 } 4413 return str; 4414 } 4415 } ]), RuleList; 4416 }(); 4417 exports.default = RuleList; 4418 }, function(module, exports, __webpack_require__) { 4419 "use strict"; 4420 Object.defineProperty(exports, "__esModule", { 4421 value: !0 4422 }); 4423 var _extends = Object.assign || function(target) { 4424 for (var i = 1; i < arguments.length; i++) { 4425 var source = arguments[i]; 4426 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 4427 } 4428 return target; 4429 }, menuSkeletons = [ { 4430 id: "home", 4431 menu: { 4432 title: "Home", 4433 icon: "home" 4434 } 4435 }, { 4436 id: "chain", 4437 menu: { 4438 title: "Chain", 4439 icon: "link" 4440 } 4441 }, { 4442 id: "txpool", 4443 menu: { 4444 title: "TxPool", 4445 icon: "credit-card" 4446 } 4447 }, { 4448 id: "network", 4449 menu: { 4450 title: "Network", 4451 icon: "globe" 4452 } 4453 }, { 4454 id: "system", 4455 menu: { 4456 title: "System", 4457 icon: "tachometer" 4458 } 4459 }, { 4460 id: "logs", 4461 menu: { 4462 title: "Logs", 4463 icon: "list" 4464 } 4465 } ]; 4466 exports.MENU = new Map(menuSkeletons.map(function(_ref) { 4467 var id = _ref.id, menu = _ref.menu; 4468 return [ id, _extends({ 4469 id: id 4470 }, menu) ]; 4471 })), exports.DURATION = 200, exports.styles = { 4472 light: { 4473 color: "rgba(255, 255, 255, 0.54)" 4474 } 4475 }; 4476 }, function(module, __webpack_exports__, __webpack_require__) { 4477 "use strict"; 4478 function _objectWithoutProperties(obj, keys) { 4479 var target = {}; 4480 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 4481 return target; 4482 } 4483 function Surface(props) { 4484 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 || { 4485 width: width, 4486 height: height, 4487 x: 0, 4488 y: 0 4489 }, layerClass = __WEBPACK_IMPORTED_MODULE_2_classnames___default()("recharts-surface", className), attrs = Object(__WEBPACK_IMPORTED_MODULE_3__util_ReactUtils__.k)(others); 4490 return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("svg", _extends({}, attrs, { 4491 className: layerClass, 4492 width: width, 4493 height: height, 4494 style: style, 4495 viewBox: svgView.x + " " + svgView.y + " " + svgView.width + " " + svgView.height, 4496 version: "1.1" 4497 }), children); 4498 } 4499 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) { 4500 for (var i = 1; i < arguments.length; i++) { 4501 var source = arguments[i]; 4502 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 4503 } 4504 return target; 4505 }, propTypes = { 4506 width: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number.isRequired, 4507 height: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number.isRequired, 4508 viewBox: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape({ 4509 x: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4510 y: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4511 width: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4512 height: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number 4513 }), 4514 className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, 4515 style: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object, 4516 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 ]) 4517 }; 4518 Surface.propTypes = propTypes, __webpack_exports__.a = Surface; 4519 }, function(module, exports, __webpack_require__) { 4520 var root = __webpack_require__(31), Symbol = root.Symbol; 4521 module.exports = Symbol; 4522 }, function(module, __webpack_exports__, __webpack_require__) { 4523 "use strict"; 4524 var __WEBPACK_IMPORTED_MODULE_0__src_path__ = __webpack_require__(633); 4525 __webpack_require__.d(__webpack_exports__, "a", function() { 4526 return __WEBPACK_IMPORTED_MODULE_0__src_path__.a; 4527 }); 4528 }, function(module, __webpack_exports__, __webpack_require__) { 4529 "use strict"; 4530 function acos(x) { 4531 return x > 1 ? 0 : x < -1 ? pi : Math.acos(x); 4532 } 4533 function asin(x) { 4534 return x >= 1 ? halfPi : x <= -1 ? -halfPi : Math.asin(x); 4535 } 4536 __webpack_require__.d(__webpack_exports__, "a", function() { 4537 return abs; 4538 }), __webpack_require__.d(__webpack_exports__, "d", function() { 4539 return atan2; 4540 }), __webpack_require__.d(__webpack_exports__, "e", function() { 4541 return cos; 4542 }), __webpack_require__.d(__webpack_exports__, "h", function() { 4543 return max; 4544 }), __webpack_require__.d(__webpack_exports__, "i", function() { 4545 return min; 4546 }), __webpack_require__.d(__webpack_exports__, "k", function() { 4547 return sin; 4548 }), __webpack_require__.d(__webpack_exports__, "l", function() { 4549 return sqrt; 4550 }), __webpack_require__.d(__webpack_exports__, "f", function() { 4551 return epsilon; 4552 }), __webpack_require__.d(__webpack_exports__, "j", function() { 4553 return pi; 4554 }), __webpack_require__.d(__webpack_exports__, "g", function() { 4555 return halfPi; 4556 }), __webpack_require__.d(__webpack_exports__, "m", function() { 4557 return tau; 4558 }), __webpack_exports__.b = acos, __webpack_exports__.c = asin; 4559 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; 4560 }, function(module, __webpack_exports__, __webpack_require__) { 4561 "use strict"; 4562 __webpack_exports__.a = function(series, order) { 4563 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, 4564 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]; 4565 }; 4566 }, function(module, __webpack_exports__, __webpack_require__) { 4567 "use strict"; 4568 __webpack_exports__.a = function(series) { 4569 for (var n = series.length, o = new Array(n); --n >= 0; ) o[n] = n; 4570 return o; 4571 }; 4572 }, function(module, __webpack_exports__, __webpack_require__) { 4573 "use strict"; 4574 function Cell() { 4575 return null; 4576 } 4577 var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0), __WEBPACK_IMPORTED_MODULE_1__util_ReactUtils__ = (__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__), 4578 __webpack_require__(4)), _extends = Object.assign || function(target) { 4579 for (var i = 1; i < arguments.length; i++) { 4580 var source = arguments[i]; 4581 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 4582 } 4583 return target; 4584 }; 4585 Cell.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_1__util_ReactUtils__.c), 4586 Cell.displayName = "Cell", __webpack_exports__.a = Cell; 4587 }, function(module, exports, __webpack_require__) { 4588 function baseIteratee(value) { 4589 return "function" == typeof value ? value : null == value ? identity : "object" == typeof value ? isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value) : property(value); 4590 } 4591 var baseMatches = __webpack_require__(815), baseMatchesProperty = __webpack_require__(818), identity = __webpack_require__(68), isArray = __webpack_require__(13), property = __webpack_require__(822); 4592 module.exports = baseIteratee; 4593 }, function(module, __webpack_exports__, __webpack_require__) { 4594 "use strict"; 4595 __webpack_exports__.a = function(x) { 4596 return null === x ? NaN : +x; 4597 }; 4598 }, function(module, __webpack_exports__, __webpack_require__) { 4599 "use strict"; 4600 function linearish(scale) { 4601 var domain = scale.domain; 4602 return scale.ticks = function(count) { 4603 var d = domain(); 4604 return Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__.h)(d[0], d[d.length - 1], null == count ? 10 : count); 4605 }, scale.tickFormat = function(count, specifier) { 4606 return Object(__WEBPACK_IMPORTED_MODULE_3__tickFormat__.a)(domain(), count, specifier); 4607 }, scale.nice = function(count) { 4608 null == count && (count = 10); 4609 var step, d = domain(), i0 = 0, i1 = d.length - 1, start = d[i0], stop = d[i1]; 4610 return stop < start && (step = start, start = stop, stop = step, step = i0, i0 = i1, 4611 i1 = step), step = Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__.f)(start, stop, count), 4612 step > 0 ? (start = Math.floor(start / step) * step, stop = Math.ceil(stop / step) * step, 4613 step = Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__.f)(start, stop, count)) : step < 0 && (start = Math.ceil(start * step) / step, 4614 stop = Math.floor(stop * step) / step, step = Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__.f)(start, stop, count)), 4615 step > 0 ? (d[i0] = Math.floor(start / step) * step, d[i1] = Math.ceil(stop / step) * step, 4616 domain(d)) : step < 0 && (d[i0] = Math.ceil(start * step) / step, d[i1] = Math.floor(stop * step) / step, 4617 domain(d)), scale; 4618 }, scale; 4619 } 4620 function linear() { 4621 var scale = Object(__WEBPACK_IMPORTED_MODULE_2__continuous__.b)(__WEBPACK_IMPORTED_MODULE_2__continuous__.c, __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__.c); 4622 return scale.copy = function() { 4623 return Object(__WEBPACK_IMPORTED_MODULE_2__continuous__.a)(scale, linear()); 4624 }, linearish(scale); 4625 } 4626 __webpack_exports__.b = linearish, __webpack_exports__.a = linear; 4627 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); 4628 }, function(module, __webpack_exports__, __webpack_require__) { 4629 "use strict"; 4630 var __WEBPACK_IMPORTED_MODULE_0__src_value__ = __webpack_require__(206); 4631 __webpack_require__.d(__webpack_exports__, "a", function() { 4632 return __WEBPACK_IMPORTED_MODULE_0__src_value__.a; 4633 }); 4634 var __WEBPACK_IMPORTED_MODULE_5__src_number__ = (__webpack_require__(349), __webpack_require__(209), 4635 __webpack_require__(347), __webpack_require__(350), __webpack_require__(136)); 4636 __webpack_require__.d(__webpack_exports__, "c", function() { 4637 return __WEBPACK_IMPORTED_MODULE_5__src_number__.a; 4638 }); 4639 var __WEBPACK_IMPORTED_MODULE_7__src_round__ = (__webpack_require__(351), __webpack_require__(873)); 4640 __webpack_require__.d(__webpack_exports__, "d", function() { 4641 return __WEBPACK_IMPORTED_MODULE_7__src_round__.a; 4642 }); 4643 var __WEBPACK_IMPORTED_MODULE_15__src_cubehelix__ = (__webpack_require__(352), __webpack_require__(874), 4644 __webpack_require__(877), __webpack_require__(346), __webpack_require__(878), __webpack_require__(879), 4645 __webpack_require__(880), __webpack_require__(881)); 4646 __webpack_require__.d(__webpack_exports__, "b", function() { 4647 return __WEBPACK_IMPORTED_MODULE_15__src_cubehelix__.a; 4648 }); 4649 __webpack_require__(882); 4650 }, function(module, __webpack_exports__, __webpack_require__) { 4651 "use strict"; 4652 function linear(a, d) { 4653 return function(t) { 4654 return a + t * d; 4655 }; 4656 } 4657 function exponential(a, b, y) { 4658 return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function(t) { 4659 return Math.pow(a + t * b, y); 4660 }; 4661 } 4662 function hue(a, b) { 4663 var d = b - a; 4664 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); 4665 } 4666 function gamma(y) { 4667 return 1 == (y = +y) ? nogamma : function(a, b) { 4668 return b - a ? exponential(a, b, y) : Object(__WEBPACK_IMPORTED_MODULE_0__constant__.a)(isNaN(a) ? b : a); 4669 }; 4670 } 4671 function nogamma(a, b) { 4672 var d = b - a; 4673 return d ? linear(a, d) : Object(__WEBPACK_IMPORTED_MODULE_0__constant__.a)(isNaN(a) ? b : a); 4674 } 4675 __webpack_exports__.c = hue, __webpack_exports__.b = gamma, __webpack_exports__.a = nogamma; 4676 var __WEBPACK_IMPORTED_MODULE_0__constant__ = __webpack_require__(348); 4677 }, function(module, __webpack_exports__, __webpack_require__) { 4678 "use strict"; 4679 __webpack_exports__.a = function(s) { 4680 return s.match(/.{6}/g).map(function(x) { 4681 return "#" + x; 4682 }); 4683 }; 4684 }, function(module, __webpack_exports__, __webpack_require__) { 4685 "use strict"; 4686 function _objectWithoutProperties(obj, keys) { 4687 var target = {}; 4688 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 4689 return target; 4690 } 4691 function _classCallCheck(instance, Constructor) { 4692 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 4693 } 4694 function _possibleConstructorReturn(self, call) { 4695 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 4696 return !call || "object" != typeof call && "function" != typeof call ? self : call; 4697 } 4698 function _inherits(subClass, superClass) { 4699 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 4700 subClass.prototype = Object.create(superClass && superClass.prototype, { 4701 constructor: { 4702 value: subClass, 4703 enumerable: !1, 4704 writable: !0, 4705 configurable: !0 4706 } 4707 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 4708 } 4709 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) { 4710 for (var i = 1; i < arguments.length; i++) { 4711 var source = arguments[i]; 4712 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 4713 } 4714 return target; 4715 }, _createClass = function() { 4716 function defineProperties(target, props) { 4717 for (var i = 0; i < props.length; i++) { 4718 var descriptor = props[i]; 4719 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 4720 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 4721 } 4722 } 4723 return function(Constructor, protoProps, staticProps) { 4724 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 4725 Constructor; 4726 }; 4727 }(), ErrorBar = (_temp = _class = function(_Component) { 4728 function ErrorBar() { 4729 return _classCallCheck(this, ErrorBar), _possibleConstructorReturn(this, (ErrorBar.__proto__ || Object.getPrototypeOf(ErrorBar)).apply(this, arguments)); 4730 } 4731 return _inherits(ErrorBar, _Component), _createClass(ErrorBar, [ { 4732 key: "renderErrorBars", 4733 value: function() { 4734 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); 4735 return data.map(function(entry, i) { 4736 var _dataPointFormatter = dataPointFormatter(entry, dataKey), x = _dataPointFormatter.x, y = _dataPointFormatter.y, value = _dataPointFormatter.value, errorVal = _dataPointFormatter.errorVal; 4737 if (!errorVal) return null; 4738 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; 4739 return Array.isArray(errorVal) ? (lowBound = errorVal[0], highBound = errorVal[1]) : (lowBound = errorVal, 4740 highBound = errorVal), "vertical" === layout ? (scale = xAxis.scale, xMid = value, 4741 yMid = y + offset, xMin = scale(xMid - lowBound), yMin = yMid + width, xMax = scale(xMid + highBound), 4742 yMax = yMid - width, coordsTop = { 4743 x1: xMax, 4744 y1: yMin, 4745 x2: xMax, 4746 y2: yMax 4747 }, coordsMid = { 4748 x1: xMin, 4749 y1: yMid, 4750 x2: xMax, 4751 y2: yMid 4752 }, coordsBot = { 4753 x1: xMin, 4754 y1: yMin, 4755 x2: xMin, 4756 y2: yMax 4757 }) : "horizontal" === layout && (scale = yAxis.scale, xMid = x + offset, yMid = value, 4758 xMin = xMid - width, xMax = xMid + width, yMin = scale(yMid - lowBound), yMax = scale(yMid + highBound), 4759 coordsTop = { 4760 x1: xMin, 4761 y1: yMax, 4762 x2: xMax, 4763 y2: yMax 4764 }, coordsMid = { 4765 x1: xMid, 4766 y1: yMin, 4767 x2: xMid, 4768 y2: yMax 4769 }, coordsBot = { 4770 x1: xMin, 4771 y1: yMin, 4772 x2: xMax, 4773 y2: yMin 4774 }), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__container_Layer__.a, _extends({ 4775 className: "recharts-errorBar", 4776 key: i 4777 }, 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)); 4778 }); 4779 } 4780 }, { 4781 key: "render", 4782 value: function() { 4783 return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__container_Layer__.a, { 4784 className: "recharts-errorBars" 4785 }, this.renderErrorBars()); 4786 } 4787 } ]), ErrorBar; 4788 }(__WEBPACK_IMPORTED_MODULE_0_react__.Component), _class.propTypes = { 4789 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, 4790 data: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.array, 4791 xAxis: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object, 4792 yAxis: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object, 4793 layout: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, 4794 dataPointFormatter: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, 4795 stroke: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, 4796 strokeWidth: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4797 width: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 4798 offset: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number 4799 }, _class.defaultProps = { 4800 stroke: "black", 4801 strokeWidth: 1.5, 4802 width: 5, 4803 offset: 0, 4804 layout: "horizontal" 4805 }, _temp); 4806 __webpack_exports__.a = ErrorBar; 4807 }, function(module, __webpack_exports__, __webpack_require__) { 4808 "use strict"; 4809 function _defineProperty(obj, key, value) { 4810 return key in obj ? Object.defineProperty(obj, key, { 4811 value: value, 4812 enumerable: !0, 4813 configurable: !0, 4814 writable: !0 4815 }) : obj[key] = value, obj; 4816 } 4817 __webpack_require__.d(__webpack_exports__, "a", function() { 4818 return formatAxisMap; 4819 }); 4820 var __WEBPACK_IMPORTED_MODULE_0__ChartUtils__ = __webpack_require__(16), _extends = Object.assign || function(target) { 4821 for (var i = 1; i < arguments.length; i++) { 4822 var source = arguments[i]; 4823 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 4824 } 4825 return target; 4826 }, formatAxisMap = function(props, axisMap, offset, axisType, chartName) { 4827 var width = props.width, height = props.height, layout = props.layout, ids = Object.keys(axisMap), steps = { 4828 left: offset.left, 4829 leftMirror: offset.left, 4830 right: width - offset.right, 4831 rightMirror: width - offset.right, 4832 top: offset.top, 4833 topMirror: offset.top, 4834 bottom: height - offset.bottom, 4835 bottomMirror: height - offset.bottom 4836 }; 4837 return ids.reduce(function(result, id) { 4838 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; 4839 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, 4840 reversed && (range = [ range[1], range[0] ]); 4841 var _parseScale = Object(__WEBPACK_IMPORTED_MODULE_0__ChartUtils__.A)(axis, chartName), scale = _parseScale.scale, realScaleType = _parseScale.realScaleType; 4842 scale.domain(domain).range(range), Object(__WEBPACK_IMPORTED_MODULE_0__ChartUtils__.c)(scale); 4843 var ticks = Object(__WEBPACK_IMPORTED_MODULE_0__ChartUtils__.v)(scale, _extends({}, axis, { 4844 realScaleType: realScaleType 4845 })); 4846 "xAxis" === axisType ? (needSpace = "top" === orientation && !mirror || "bottom" === orientation && mirror, 4847 x = offset.left, y = steps[offsetKey] - needSpace * axis.height) : "yAxis" === axisType && (needSpace = "left" === orientation && !mirror || "right" === orientation && mirror, 4848 x = steps[offsetKey] - needSpace * axis.width, y = offset.top); 4849 var finalAxis = _extends({}, axis, ticks, { 4850 realScaleType: realScaleType, 4851 x: x, 4852 y: y, 4853 scale: scale, 4854 width: "xAxis" === axisType ? offset.width : axis.width, 4855 height: "yAxis" === axisType ? offset.height : axis.height 4856 }); 4857 return finalAxis.bandSize = Object(__WEBPACK_IMPORTED_MODULE_0__ChartUtils__.g)(finalAxis, ticks), 4858 axis.hide || "xAxis" !== axisType ? axis.hide || (steps[offsetKey] += (needSpace ? -1 : 1) * finalAxis.width) : steps[offsetKey] += (needSpace ? -1 : 1) * finalAxis.height, 4859 _extends({}, result, _defineProperty({}, id, finalAxis)); 4860 }, {}); 4861 }; 4862 }, function(module, exports, __webpack_require__) { 4863 "use strict"; 4864 (function(process) { 4865 var emptyObject = {}; 4866 "production" !== process.env.NODE_ENV && Object.freeze(emptyObject), module.exports = emptyObject; 4867 }).call(exports, __webpack_require__(2)); 4868 }, function(module, exports, __webpack_require__) { 4869 "use strict"; 4870 (function(process) { 4871 var emptyFunction = __webpack_require__(50), warning = emptyFunction; 4872 if ("production" !== process.env.NODE_ENV) { 4873 var printWarning = function(format) { 4874 for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) args[_key - 1] = arguments[_key]; 4875 var argIndex = 0, message = "Warning: " + format.replace(/%s/g, function() { 4876 return args[argIndex++]; 4877 }); 4878 "undefined" != typeof console && console.error(message); 4879 try { 4880 throw new Error(message); 4881 } catch (x) {} 4882 }; 4883 warning = function(condition, format) { 4884 if (void 0 === format) throw new Error("` + ("`" + `warning(condition, format, ...args)`)) + ("`" + (` requires a warning message argument"); 4885 if (0 !== format.indexOf("Failed Composite propType: ") && !condition) { 4886 for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) args[_key2 - 2] = arguments[_key2]; 4887 printWarning.apply(void 0, [ format ].concat(args)); 4888 } 4889 }; 4890 } 4891 module.exports = warning; 4892 }).call(exports, __webpack_require__(2)); 4893 }, function(module, exports, __webpack_require__) { 4894 "use strict"; 4895 (function(process) { 4896 function checkDCE() { 4897 if ("undefined" != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE) { 4898 if ("production" !== process.env.NODE_ENV) throw new Error("^_^"); 4899 try { 4900 __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE); 4901 } catch (err) { 4902 console.error(err); 4903 } 4904 } 4905 } 4906 "production" === process.env.NODE_ENV ? (checkDCE(), module.exports = __webpack_require__(378)) : module.exports = __webpack_require__(381); 4907 }).call(exports, __webpack_require__(2)); 4908 }, function(module, exports, __webpack_require__) { 4909 "use strict"; 4910 function is(x, y) { 4911 return x === y ? 0 !== x || 0 !== y || 1 / x == 1 / y : x !== x && y !== y; 4912 } 4913 function shallowEqual(objA, objB) { 4914 if (is(objA, objB)) return !0; 4915 if ("object" != typeof objA || null === objA || "object" != typeof objB || null === objB) return !1; 4916 var keysA = Object.keys(objA), keysB = Object.keys(objB); 4917 if (keysA.length !== keysB.length) return !1; 4918 for (var i = 0; i < keysA.length; i++) if (!hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) return !1; 4919 return !0; 4920 } 4921 var hasOwnProperty = Object.prototype.hasOwnProperty; 4922 module.exports = shallowEqual; 4923 }, function(module, exports, __webpack_require__) { 4924 var toInteger = __webpack_require__(149), min = Math.min; 4925 module.exports = function(it) { 4926 return it > 0 ? min(toInteger(it), 9007199254740991) : 0; 4927 }; 4928 }, function(module, exports) { 4929 module.exports = !0; 4930 }, function(module, exports) { 4931 var id = 0, px = Math.random(); 4932 module.exports = function(key) { 4933 return "Symbol(".concat(void 0 === key ? "" : key, ")_", (++id + px).toString(36)); 4934 }; 4935 }, function(module, exports) { 4936 exports.f = {}.propertyIsEnumerable; 4937 }, function(module, exports, __webpack_require__) { 4938 "use strict"; 4939 function _interopRequireDefault(obj) { 4940 return obj && obj.__esModule ? obj : { 4941 default: obj 4942 }; 4943 } 4944 exports.__esModule = !0; 4945 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) { 4946 return typeof obj; 4947 } : function(obj) { 4948 return obj && "function" == typeof _symbol2.default && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; 4949 }; 4950 exports.default = "function" == typeof _symbol2.default && "symbol" === _typeof(_iterator2.default) ? function(obj) { 4951 return void 0 === obj ? "undefined" : _typeof(obj); 4952 } : function(obj) { 4953 return obj && "function" == typeof _symbol2.default && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : void 0 === obj ? "undefined" : _typeof(obj); 4954 }; 4955 }, function(module, exports, __webpack_require__) { 4956 var anObject = __webpack_require__(52), dPs = __webpack_require__(400), enumBugKeys = __webpack_require__(152), IE_PROTO = __webpack_require__(150)("IE_PROTO"), Empty = function() {}, createDict = function() { 4957 var iframeDocument, iframe = __webpack_require__(225)("iframe"), i = enumBugKeys.length; 4958 for (iframe.style.display = "none", __webpack_require__(401).appendChild(iframe), 4959 iframe.src = "javascript:", iframeDocument = iframe.contentWindow.document, iframeDocument.open(), 4960 iframeDocument.write("<script>document.F=Object<\/script>"), iframeDocument.close(), 4961 createDict = iframeDocument.F; i--; ) delete createDict.prototype[enumBugKeys[i]]; 4962 return createDict(); 4963 }; 4964 module.exports = Object.create || function(O, Properties) { 4965 var result; 4966 return null !== O ? (Empty.prototype = anObject(O), result = new Empty(), Empty.prototype = null, 4967 result[IE_PROTO] = O) : result = createDict(), void 0 === Properties ? result : dPs(result, Properties); 4968 }; 4969 }, function(module, exports, __webpack_require__) { 4970 var def = __webpack_require__(22).f, has = __webpack_require__(54), TAG = __webpack_require__(21)("toStringTag"); 4971 module.exports = function(it, tag, stat) { 4972 it && !has(it = stat ? it : it.prototype, TAG) && def(it, TAG, { 4973 configurable: !0, 4974 value: tag 4975 }); 4976 }; 4977 }, function(module, __webpack_exports__, __webpack_require__) { 4978 "use strict"; 4979 function isNonNullObject(value) { 4980 return !!value && "object" == typeof value; 4981 } 4982 function isSpecial(value) { 4983 var stringValue = Object.prototype.toString.call(value); 4984 return "[object RegExp]" === stringValue || "[object Date]" === stringValue || isReactElement(value); 4985 } 4986 function isReactElement(value) { 4987 return value.$$typeof === REACT_ELEMENT_TYPE; 4988 } 4989 function emptyTarget(val) { 4990 return Array.isArray(val) ? [] : {}; 4991 } 4992 function cloneUnlessOtherwiseSpecified(value, optionsArgument) { 4993 return optionsArgument && !1 === optionsArgument.clone || !isMergeableObject(value) ? value : deepmerge(emptyTarget(value), value, optionsArgument); 4994 } 4995 function defaultArrayMerge(target, source, optionsArgument) { 4996 return target.concat(source).map(function(element) { 4997 return cloneUnlessOtherwiseSpecified(element, optionsArgument); 4998 }); 4999 } 5000 function mergeObject(target, source, optionsArgument) { 5001 var destination = {}; 5002 return isMergeableObject(target) && Object.keys(target).forEach(function(key) { 5003 destination[key] = cloneUnlessOtherwiseSpecified(target[key], optionsArgument); 5004 }), Object.keys(source).forEach(function(key) { 5005 isMergeableObject(source[key]) && target[key] ? destination[key] = deepmerge(target[key], source[key], optionsArgument) : destination[key] = cloneUnlessOtherwiseSpecified(source[key], optionsArgument); 5006 }), destination; 5007 } 5008 function deepmerge(target, source, optionsArgument) { 5009 var sourceIsArray = Array.isArray(source), targetIsArray = Array.isArray(target), options = optionsArgument || { 5010 arrayMerge: defaultArrayMerge 5011 }; 5012 if (sourceIsArray === targetIsArray) return sourceIsArray ? (options.arrayMerge || defaultArrayMerge)(target, source, optionsArgument) : mergeObject(target, source, optionsArgument); 5013 return cloneUnlessOtherwiseSpecified(source, optionsArgument); 5014 } 5015 Object.defineProperty(__webpack_exports__, "__esModule", { 5016 value: !0 5017 }); 5018 var isMergeableObject = function(value) { 5019 return isNonNullObject(value) && !isSpecial(value); 5020 }, canUseSymbol = "function" == typeof Symbol && Symbol.for, REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for("react.element") : 60103; 5021 deepmerge.all = function(array, optionsArgument) { 5022 if (!Array.isArray(array)) throw new Error("first argument should be an array"); 5023 return array.reduce(function(prev, next) { 5024 return deepmerge(prev, next, optionsArgument); 5025 }, {}); 5026 }; 5027 var deepmerge_1 = deepmerge; 5028 __webpack_exports__.default = deepmerge_1; 5029 }, function(module, exports, __webpack_require__) { 5030 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) { 5031 var length, step, iterator, result, iterFn = ITERATOR ? function() { 5032 return iterable; 5033 } : getIterFn(iterable), f = ctx(fn, that, entries ? 2 : 1), index = 0; 5034 if ("function" != typeof iterFn) throw TypeError(iterable + " is not iterable!"); 5035 if (isArrayIter(iterFn)) { 5036 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; 5037 } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done; ) if ((result = call(iterator, f, step.value, entries)) === BREAK || result === RETURN) return result; 5038 }; 5039 exports.BREAK = BREAK, exports.RETURN = RETURN; 5040 }, function(module, exports, __webpack_require__) { 5041 "use strict"; 5042 function toCssValue(value) { 5043 var ignoreImportant = arguments.length > 1 && void 0 !== arguments[1] && arguments[1]; 5044 if (!Array.isArray(value)) return value; 5045 var cssValue = ""; 5046 if (Array.isArray(value[0])) for (var i = 0; i < value.length && "!important" !== value[i]; i++) cssValue && (cssValue += ", "), 5047 cssValue += join(value[i], " "); else cssValue = join(value, ", "); 5048 return ignoreImportant || "!important" !== value[value.length - 1] || (cssValue += " !important"), 5049 cssValue; 5050 } 5051 Object.defineProperty(exports, "__esModule", { 5052 value: !0 5053 }), exports.default = toCssValue; 5054 var join = function(value, by) { 5055 for (var result = "", i = 0; i < value.length && "!important" !== value[i]; i++) result && (result += by), 5056 result += value[i]; 5057 return result; 5058 }; 5059 }, function(module, exports, __webpack_require__) { 5060 "use strict"; 5061 function _interopRequireDefault(obj) { 5062 return obj && obj.__esModule ? obj : { 5063 default: obj 5064 }; 5065 } 5066 function createRule() { 5067 var name = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "unnamed", decl = arguments[1], options = arguments[2], jss = options.jss, declCopy = (0, 5068 _cloneStyle2.default)(decl), rule = jss.plugins.onCreateRule(name, declCopy, options); 5069 return rule || ("@" === name[0] && (0, _warning2.default)(!1, "[JSS] Unknown at-rule %s", name), 5070 new _StyleRule2.default(name, declCopy, options)); 5071 } 5072 Object.defineProperty(exports, "__esModule", { 5073 value: !0 5074 }), exports.default = createRule; 5075 var _warning = __webpack_require__(11), _warning2 = _interopRequireDefault(_warning), _StyleRule = __webpack_require__(66), _StyleRule2 = _interopRequireDefault(_StyleRule), _cloneStyle = __webpack_require__(463), _cloneStyle2 = _interopRequireDefault(_cloneStyle); 5076 }, function(module, __webpack_exports__, __webpack_require__) { 5077 "use strict"; 5078 Object.defineProperty(__webpack_exports__, "__esModule", { 5079 value: !0 5080 }), __webpack_require__.d(__webpack_exports__, "isBrowser", function() { 5081 return isBrowser; 5082 }); 5083 var _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj) { 5084 return typeof obj; 5085 } : function(obj) { 5086 return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 5087 }, isBrowser = "object" === ("undefined" == typeof window ? "undefined" : _typeof(window)) && "object" === ("undefined" == typeof document ? "undefined" : _typeof(document)) && 9 === document.nodeType; 5088 __webpack_exports__.default = isBrowser; 5089 }, function(module, exports, __webpack_require__) { 5090 "use strict"; 5091 function _interopRequireDefault(obj) { 5092 return obj && obj.__esModule ? obj : { 5093 default: obj 5094 }; 5095 } 5096 Object.defineProperty(exports, "__esModule", { 5097 value: !0 5098 }); 5099 var _Typography = __webpack_require__(528); 5100 Object.defineProperty(exports, "default", { 5101 enumerable: !0, 5102 get: function() { 5103 return _interopRequireDefault(_Typography).default; 5104 } 5105 }); 5106 }, function(module, exports) { 5107 module.exports = function(exec) { 5108 try { 5109 return !!exec(); 5110 } catch (e) { 5111 return !0; 5112 } 5113 }; 5114 }, function(module, exports, __webpack_require__) { 5115 var getNative = __webpack_require__(57), nativeCreate = getNative(Object, "create"); 5116 module.exports = nativeCreate; 5117 }, function(module, exports, __webpack_require__) { 5118 function ListCache(entries) { 5119 var index = -1, length = null == entries ? 0 : entries.length; 5120 for (this.clear(); ++index < length; ) { 5121 var entry = entries[index]; 5122 this.set(entry[0], entry[1]); 5123 } 5124 } 5125 var listCacheClear = __webpack_require__(619), listCacheDelete = __webpack_require__(620), listCacheGet = __webpack_require__(621), listCacheHas = __webpack_require__(622), listCacheSet = __webpack_require__(623); 5126 ListCache.prototype.clear = listCacheClear, ListCache.prototype.delete = listCacheDelete, 5127 ListCache.prototype.get = listCacheGet, ListCache.prototype.has = listCacheHas, 5128 ListCache.prototype.set = listCacheSet, module.exports = ListCache; 5129 }, function(module, exports, __webpack_require__) { 5130 function assocIndexOf(array, key) { 5131 for (var length = array.length; length--; ) if (eq(array[length][0], key)) return length; 5132 return -1; 5133 } 5134 var eq = __webpack_require__(177); 5135 module.exports = assocIndexOf; 5136 }, function(module, exports, __webpack_require__) { 5137 function getMapData(map, key) { 5138 var data = map.__data__; 5139 return isKeyable(key) ? data["string" == typeof key ? "string" : "hash"] : data.map; 5140 } 5141 var isKeyable = __webpack_require__(625); 5142 module.exports = getMapData; 5143 }, function(module, exports, __webpack_require__) { 5144 function toKey(value) { 5145 if ("string" == typeof value || isSymbol(value)) return value; 5146 var result = value + ""; 5147 return "0" == result && 1 / value == -INFINITY ? "-0" : result; 5148 } 5149 var isSymbol = __webpack_require__(67), INFINITY = 1 / 0; 5150 module.exports = toKey; 5151 }, function(module, exports, __webpack_require__) { 5152 function isNaN(value) { 5153 return isNumber(value) && value != +value; 5154 } 5155 var isNumber = __webpack_require__(272); 5156 module.exports = isNaN; 5157 }, function(module, __webpack_exports__, __webpack_require__) { 5158 "use strict"; 5159 function Linear(context) { 5160 this._context = context; 5161 } 5162 Linear.prototype = { 5163 areaStart: function() { 5164 this._line = 0; 5165 }, 5166 areaEnd: function() { 5167 this._line = NaN; 5168 }, 5169 lineStart: function() { 5170 this._point = 0; 5171 }, 5172 lineEnd: function() { 5173 (this._line || 0 !== this._line && 1 === this._point) && this._context.closePath(), 5174 this._line = 1 - this._line; 5175 }, 5176 point: function(x, y) { 5177 switch (x = +x, y = +y, this._point) { 5178 case 0: 5179 this._point = 1, this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); 5180 break; 5181 5182 case 1: 5183 this._point = 2; 5184 5185 default: 5186 this._context.lineTo(x, y); 5187 } 5188 } 5189 }, __webpack_exports__.a = function(context) { 5190 return new Linear(context); 5191 }; 5192 }, function(module, __webpack_exports__, __webpack_require__) { 5193 "use strict"; 5194 __webpack_exports__.a = function() {}; 5195 }, function(module, __webpack_exports__, __webpack_require__) { 5196 "use strict"; 5197 function point(that, x, y) { 5198 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); 5199 } 5200 function Basis(context) { 5201 this._context = context; 5202 } 5203 __webpack_exports__.c = point, __webpack_exports__.a = Basis, Basis.prototype = { 5204 areaStart: function() { 5205 this._line = 0; 5206 }, 5207 areaEnd: function() { 5208 this._line = NaN; 5209 }, 5210 lineStart: function() { 5211 this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0; 5212 }, 5213 lineEnd: function() { 5214 switch (this._point) { 5215 case 3: 5216 point(this, this._x1, this._y1); 5217 5218 case 2: 5219 this._context.lineTo(this._x1, this._y1); 5220 } 5221 (this._line || 0 !== this._line && 1 === this._point) && this._context.closePath(), 5222 this._line = 1 - this._line; 5223 }, 5224 point: function(x, y) { 5225 switch (x = +x, y = +y, this._point) { 5226 case 0: 5227 this._point = 1, this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); 5228 break; 5229 5230 case 1: 5231 this._point = 2; 5232 break; 5233 5234 case 2: 5235 this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6); 5236 5237 default: 5238 point(this, x, y); 5239 } 5240 this._x0 = this._x1, this._x1 = x, this._y0 = this._y1, this._y1 = y; 5241 } 5242 }, __webpack_exports__.b = function(context) { 5243 return new Basis(context); 5244 }; 5245 }, function(module, __webpack_exports__, __webpack_require__) { 5246 "use strict"; 5247 function point(that, x, y) { 5248 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); 5249 } 5250 function Cardinal(context, tension) { 5251 this._context = context, this._k = (1 - tension) / 6; 5252 } 5253 __webpack_exports__.b = point, __webpack_exports__.a = Cardinal, Cardinal.prototype = { 5254 areaStart: function() { 5255 this._line = 0; 5256 }, 5257 areaEnd: function() { 5258 this._line = NaN; 5259 }, 5260 lineStart: function() { 5261 this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0; 5262 }, 5263 lineEnd: function() { 5264 switch (this._point) { 5265 case 2: 5266 this._context.lineTo(this._x2, this._y2); 5267 break; 5268 5269 case 3: 5270 point(this, this._x1, this._y1); 5271 } 5272 (this._line || 0 !== this._line && 1 === this._point) && this._context.closePath(), 5273 this._line = 1 - this._line; 5274 }, 5275 point: function(x, y) { 5276 switch (x = +x, y = +y, this._point) { 5277 case 0: 5278 this._point = 1, this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); 5279 break; 5280 5281 case 1: 5282 this._point = 2, this._x1 = x, this._y1 = y; 5283 break; 5284 5285 case 2: 5286 this._point = 3; 5287 5288 default: 5289 point(this, x, y); 5290 } 5291 this._x0 = this._x1, this._x1 = this._x2, this._x2 = x, this._y0 = this._y1, this._y1 = this._y2, 5292 this._y2 = y; 5293 } 5294 }; 5295 !function custom(tension) { 5296 function cardinal(context) { 5297 return new Cardinal(context, tension); 5298 } 5299 return cardinal.tension = function(tension) { 5300 return custom(+tension); 5301 }, cardinal; 5302 }(0); 5303 }, function(module, __webpack_exports__, __webpack_require__) { 5304 "use strict"; 5305 function _classCallCheck(instance, Constructor) { 5306 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 5307 } 5308 function _possibleConstructorReturn(self, call) { 5309 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 5310 return !call || "object" != typeof call && "function" != typeof call ? self : call; 5311 } 5312 function _inherits(subClass, superClass) { 5313 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 5314 subClass.prototype = Object.create(superClass && superClass.prototype, { 5315 constructor: { 5316 value: subClass, 5317 enumerable: !1, 5318 writable: !0, 5319 configurable: !0 5320 } 5321 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 5322 } 5323 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__), 5324 __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) { 5325 for (var i = 1; i < arguments.length; i++) { 5326 var source = arguments[i]; 5327 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 5328 } 5329 return target; 5330 }, _createClass = function() { 5331 function defineProperties(target, props) { 5332 for (var i = 0; i < props.length; i++) { 5333 var descriptor = props[i]; 5334 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 5335 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 5336 } 5337 } 5338 return function(Constructor, protoProps, staticProps) { 5339 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 5340 Constructor; 5341 }; 5342 }(), propTypes = { 5343 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 ]), 5344 viewBox: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.shape({ 5345 x: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 5346 y: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 5347 width: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 5348 height: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number 5349 }), 5350 active: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool, 5351 separator: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string, 5352 formatter: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, 5353 offset: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 5354 itemStyle: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object, 5355 labelStyle: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object, 5356 wrapperStyle: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object, 5357 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 ]), 5358 coordinate: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.shape({ 5359 x: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 5360 y: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number 5361 }), 5362 position: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.shape({ 5363 x: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 5364 y: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number 5365 }), 5366 label: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.any, 5367 payload: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.shape({ 5368 name: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.any, 5369 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 ]), 5370 unit: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.any 5371 })), 5372 isAnimationActive: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool, 5373 animationDuration: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 5374 animationEasing: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf([ "ease", "ease-in", "ease-out", "ease-in-out", "linear" ]), 5375 itemSorter: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, 5376 filterNull: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool, 5377 useTranslate3d: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool 5378 }, defaultProps = { 5379 active: !1, 5380 offset: 10, 5381 viewBox: { 5382 x1: 0, 5383 x2: 0, 5384 y1: 0, 5385 y2: 0 5386 }, 5387 coordinate: { 5388 x: 0, 5389 y: 0 5390 }, 5391 cursorStyle: {}, 5392 separator: " : ", 5393 wrapperStyle: {}, 5394 itemStyle: {}, 5395 labelStyle: {}, 5396 cursor: !0, 5397 isAnimationActive: !Object(__WEBPACK_IMPORTED_MODULE_6__util_ReactUtils__.n)(), 5398 animationEasing: "ease", 5399 animationDuration: 400, 5400 itemSorter: function() { 5401 return -1; 5402 }, 5403 filterNull: !0, 5404 useTranslate3d: !1 5405 }, renderContent = function(content, props) { 5406 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); 5407 }, Tooltip = Object(__WEBPACK_IMPORTED_MODULE_8__util_PureRender__.a)((_temp2 = _class2 = function(_Component) { 5408 function Tooltip() { 5409 var _ref, _temp, _this, _ret; 5410 _classCallCheck(this, Tooltip); 5411 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 5412 return _temp = _this = _possibleConstructorReturn(this, (_ref = Tooltip.__proto__ || Object.getPrototypeOf(Tooltip)).call.apply(_ref, [ this ].concat(args))), 5413 _this.state = { 5414 boxWidth: -1, 5415 boxHeight: -1 5416 }, _ret = _temp, _possibleConstructorReturn(_this, _ret); 5417 } 5418 return _inherits(Tooltip, _Component), _createClass(Tooltip, [ { 5419 key: "componentDidMount", 5420 value: function() { 5421 this.updateBBox(); 5422 } 5423 }, { 5424 key: "componentDidUpdate", 5425 value: function() { 5426 this.updateBBox(); 5427 } 5428 }, { 5429 key: "updateBBox", 5430 value: function() { 5431 var _state = this.state, boxWidth = _state.boxWidth, boxHeight = _state.boxHeight; 5432 if (this.wrapperNode && this.wrapperNode.getBoundingClientRect) { 5433 var box = this.wrapperNode.getBoundingClientRect(); 5434 (Math.abs(box.width - boxWidth) > 1 || Math.abs(box.height - boxHeight) > 1) && this.setState({ 5435 boxWidth: box.width, 5436 boxHeight: box.height 5437 }); 5438 } else -1 === boxWidth && -1 === boxHeight || this.setState({ 5439 boxWidth: -1, 5440 boxHeight: -1 5441 }); 5442 } 5443 }, { 5444 key: "render", 5445 value: function() { 5446 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) { 5447 return !__WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default()(entry.value); 5448 }) : 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({ 5449 pointerEvents: "none", 5450 visibility: active && hasPayload ? "visible" : "hidden", 5451 position: "absolute", 5452 top: 0 5453 }, wrapperStyle), translateX = void 0, translateY = void 0; 5454 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, 5455 translateY = position.y; else { 5456 var _state2 = this.state, boxWidth = _state2.boxWidth, boxHeight = _state2.boxHeight; 5457 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), 5458 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"; 5459 } 5460 return outerStyle = _extends({}, outerStyle, Object(__WEBPACK_IMPORTED_MODULE_4_react_smooth__.translateStyle)({ 5461 transform: this.props.useTranslate3d ? "translate3d(" + translateX + "px, " + translateY + "px, 0)" : "translate(" + translateX + "px, " + translateY + "px)" 5462 })), isAnimationActive && active && (outerStyle = _extends({}, outerStyle, Object(__WEBPACK_IMPORTED_MODULE_4_react_smooth__.translateStyle)({ 5463 transition: "transform " + animationDuration + "ms " + animationEasing 5464 }))), __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("div", { 5465 className: "recharts-tooltip-wrapper", 5466 style: outerStyle, 5467 ref: function(node) { 5468 _this2.wrapperNode = node; 5469 } 5470 }, renderContent(content, _extends({}, this.props, { 5471 payload: finalPayload 5472 }))); 5473 } 5474 } ]), Tooltip; 5475 }(__WEBPACK_IMPORTED_MODULE_2_react__.Component), _class2.displayName = "Tooltip", 5476 _class2.propTypes = propTypes, _class2.defaultProps = defaultProps, _class = _temp2)) || _class; 5477 __webpack_exports__.a = Tooltip; 5478 }, function(module, exports, __webpack_require__) { 5479 function ListCache(entries) { 5480 var index = -1, length = null == entries ? 0 : entries.length; 5481 for (this.clear(); ++index < length; ) { 5482 var entry = entries[index]; 5483 this.set(entry[0], entry[1]); 5484 } 5485 } 5486 var listCacheClear = __webpack_require__(658), listCacheDelete = __webpack_require__(659), listCacheGet = __webpack_require__(660), listCacheHas = __webpack_require__(661), listCacheSet = __webpack_require__(662); 5487 ListCache.prototype.clear = listCacheClear, ListCache.prototype.delete = listCacheDelete, 5488 ListCache.prototype.get = listCacheGet, ListCache.prototype.has = listCacheHas, 5489 ListCache.prototype.set = listCacheSet, module.exports = ListCache; 5490 }, function(module, exports, __webpack_require__) { 5491 function assocIndexOf(array, key) { 5492 for (var length = array.length; length--; ) if (eq(array[length][0], key)) return length; 5493 return -1; 5494 } 5495 var eq = __webpack_require__(290); 5496 module.exports = assocIndexOf; 5497 }, function(module, exports, __webpack_require__) { 5498 var root = __webpack_require__(36), Symbol = root.Symbol; 5499 module.exports = Symbol; 5500 }, function(module, exports, __webpack_require__) { 5501 var getNative = __webpack_require__(59), nativeCreate = getNative(Object, "create"); 5502 module.exports = nativeCreate; 5503 }, function(module, exports, __webpack_require__) { 5504 function getMapData(map, key) { 5505 var data = map.__data__; 5506 return isKeyable(key) ? data["string" == typeof key ? "string" : "hash"] : data.map; 5507 } 5508 var isKeyable = __webpack_require__(682); 5509 module.exports = getMapData; 5510 }, function(module, exports) { 5511 module.exports = function(module) { 5512 return module.webpackPolyfill || (module.deprecate = function() {}, module.paths = [], 5513 module.children || (module.children = []), Object.defineProperty(module, "loaded", { 5514 enumerable: !0, 5515 get: function() { 5516 return module.l; 5517 } 5518 }), Object.defineProperty(module, "id", { 5519 enumerable: !0, 5520 get: function() { 5521 return module.i; 5522 } 5523 }), module.webpackPolyfill = 1), module; 5524 }; 5525 }, function(module, exports, __webpack_require__) { 5526 "use strict"; 5527 (function(process) { 5528 function _defineProperty(obj, key, value) { 5529 return key in obj ? Object.defineProperty(obj, key, { 5530 value: value, 5531 enumerable: !0, 5532 configurable: !0, 5533 writable: !0 5534 }) : obj[key] = value, obj; 5535 } 5536 Object.defineProperty(exports, "__esModule", { 5537 value: !0 5538 }), 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; 5539 var _intersection2 = __webpack_require__(719), _intersection3 = function(obj) { 5540 return obj && obj.__esModule ? obj : { 5541 default: obj 5542 }; 5543 }(_intersection2), _extends = Object.assign || function(target) { 5544 for (var i = 1; i < arguments.length; i++) { 5545 var source = arguments[i]; 5546 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 5547 } 5548 return target; 5549 }, 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) { 5550 return (0, _intersection3.default)(Object.keys(preObj), Object.keys(nextObj)); 5551 }, exports.identity = function(param) { 5552 return param; 5553 }), getDashCase = exports.getDashCase = function(name) { 5554 return name.replace(/([A-Z])/g, function(v) { 5555 return "-" + v.toLowerCase(); 5556 }); 5557 }, generatePrefixStyle = exports.generatePrefixStyle = function(name, value) { 5558 if (-1 === IN_COMPATIBLE_PROPERTY.indexOf(name)) return _defineProperty({}, name, value); 5559 var isTransition = "transition" === name, camelName = name.replace(/(\w)/, function(v) { 5560 return v.toUpperCase(); 5561 }), styleVal = value; 5562 return PREFIX_LIST.reduce(function(result, property, i) { 5563 return isTransition && (styleVal = value.replace(/(transform|transform-origin)/gim, IN_LINE_PREFIX_LIST[i] + "$1")), 5564 _extends({}, result, _defineProperty({}, property + camelName, styleVal)); 5565 }, {}); 5566 }, log = exports.log = function() { 5567 var _console; 5568 (_console = console).log.apply(_console, arguments); 5569 }, isDev = (exports.debug = function(name) { 5570 return function(item) { 5571 return log(name, item), item; 5572 }; 5573 }, exports.debugf = function(tag, f) { 5574 return function() { 5575 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 5576 var res = f.apply(void 0, args), name = tag || f.name || "anonymous function", argNames = "(" + args.map(JSON.stringify).join(", ") + ")"; 5577 return log(name + ": " + argNames + " => " + JSON.stringify(res)), res; 5578 }; 5579 }, exports.mapObject = function(fn, obj) { 5580 return Object.keys(obj).reduce(function(res, key) { 5581 return _extends({}, res, _defineProperty({}, key, fn(key, obj[key]))); 5582 }, {}); 5583 }, exports.translateStyle = function(style) { 5584 return Object.keys(style).reduce(function(res, key) { 5585 return _extends({}, res, generatePrefixStyle(key, res[key])); 5586 }, style); 5587 }, exports.compose = function() { 5588 for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) args[_key2] = arguments[_key2]; 5589 if (!args.length) return identity; 5590 var fns = args.reverse(), firstFn = fns[0], tailsFn = fns.slice(1); 5591 return function() { 5592 return tailsFn.reduce(function(res, fn) { 5593 return fn(res); 5594 }, firstFn.apply(void 0, arguments)); 5595 }; 5596 }, exports.getTransitionVal = function(props, duration, easing) { 5597 return props.map(function(prop) { 5598 return getDashCase(prop) + " " + duration + "ms " + easing; 5599 }).join(","); 5600 }, "production" !== process.env.NODE_ENV); 5601 exports.warn = function(condition, format, a, b, c, d, e, f) { 5602 if (isDev && "undefined" != typeof console && console.warn && (void 0 === format && console.warn("LogUtils requires an error message argument"), 5603 !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 { 5604 var args = [ a, b, c, d, e, f ], argIndex = 0; 5605 console.warn(format.replace(/%s/g, function() { 5606 return args[argIndex++]; 5607 })); 5608 } 5609 }; 5610 }).call(exports, __webpack_require__(2)); 5611 }, function(module, exports, __webpack_require__) { 5612 function toKey(value) { 5613 if ("string" == typeof value || isSymbol(value)) return value; 5614 var result = value + ""; 5615 return "0" == result && 1 / value == -INFINITY ? "-0" : result; 5616 } 5617 var isSymbol = __webpack_require__(197), INFINITY = 1 / 0; 5618 module.exports = toKey; 5619 }, function(module, exports, __webpack_require__) { 5620 function isArrayLike(value) { 5621 return null != value && isLength(value.length) && !isFunction(value); 5622 } 5623 var isFunction = __webpack_require__(8), isLength = __webpack_require__(203); 5624 module.exports = isArrayLike; 5625 }, function(module, exports, __webpack_require__) { 5626 function baseExtremum(array, iteratee, comparator) { 5627 for (var index = -1, length = array.length; ++index < length; ) { 5628 var value = array[index], current = iteratee(value); 5629 if (null != current && (void 0 === computed ? current === current && !isSymbol(current) : comparator(current, computed))) var computed = current, result = value; 5630 } 5631 return result; 5632 } 5633 var isSymbol = __webpack_require__(67); 5634 module.exports = baseExtremum; 5635 }, function(module, __webpack_exports__, __webpack_require__) { 5636 "use strict"; 5637 __webpack_exports__.a = function(a, b) { 5638 return a = +a, b -= a, function(t) { 5639 return a + b * t; 5640 }; 5641 }; 5642 }, function(module, __webpack_exports__, __webpack_require__) { 5643 "use strict"; 5644 function deinterpolateLinear(a, b) { 5645 return (b -= a = +a) ? function(x) { 5646 return (x - a) / b; 5647 } : Object(__WEBPACK_IMPORTED_MODULE_3__constant__.a)(b); 5648 } 5649 function deinterpolateClamp(deinterpolate) { 5650 return function(a, b) { 5651 var d = deinterpolate(a = +a, b = +b); 5652 return function(x) { 5653 return x <= a ? 0 : x >= b ? 1 : d(x); 5654 }; 5655 }; 5656 } 5657 function reinterpolateClamp(reinterpolate) { 5658 return function(a, b) { 5659 var r = reinterpolate(a = +a, b = +b); 5660 return function(t) { 5661 return t <= 0 ? a : t >= 1 ? b : r(t); 5662 }; 5663 }; 5664 } 5665 function bimap(domain, range, deinterpolate, reinterpolate) { 5666 var d0 = domain[0], d1 = domain[1], r0 = range[0], r1 = range[1]; 5667 return d1 < d0 ? (d0 = deinterpolate(d1, d0), r0 = reinterpolate(r1, r0)) : (d0 = deinterpolate(d0, d1), 5668 r0 = reinterpolate(r0, r1)), function(x) { 5669 return r0(d0(x)); 5670 }; 5671 } 5672 function polymap(domain, range, deinterpolate, reinterpolate) { 5673 var j = Math.min(domain.length, range.length) - 1, d = new Array(j), r = new Array(j), i = -1; 5674 for (domain[j] < domain[0] && (domain = domain.slice().reverse(), range = range.slice().reverse()); ++i < j; ) d[i] = deinterpolate(domain[i], domain[i + 1]), 5675 r[i] = reinterpolate(range[i], range[i + 1]); 5676 return function(x) { 5677 var i = Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__.b)(domain, x, 1, j) - 1; 5678 return r[i](d[i](x)); 5679 }; 5680 } 5681 function copy(source, target) { 5682 return target.domain(source.domain()).range(source.range()).interpolate(source.interpolate()).clamp(source.clamp()); 5683 } 5684 function continuous(deinterpolate, reinterpolate) { 5685 function rescale() { 5686 return piecewise = Math.min(domain.length, range.length) > 2 ? polymap : bimap, 5687 output = input = null, scale; 5688 } 5689 function scale(x) { 5690 return (output || (output = piecewise(domain, range, clamp ? deinterpolateClamp(deinterpolate) : deinterpolate, interpolate)))(+x); 5691 } 5692 var piecewise, output, input, domain = unit, range = unit, interpolate = __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__.a, clamp = !1; 5693 return scale.invert = function(y) { 5694 return (input || (input = piecewise(range, domain, deinterpolateLinear, clamp ? reinterpolateClamp(reinterpolate) : reinterpolate)))(+y); 5695 }, scale.domain = function(_) { 5696 return arguments.length ? (domain = __WEBPACK_IMPORTED_MODULE_2__array__.a.call(_, __WEBPACK_IMPORTED_MODULE_4__number__.a), 5697 rescale()) : domain.slice(); 5698 }, scale.range = function(_) { 5699 return arguments.length ? (range = __WEBPACK_IMPORTED_MODULE_2__array__.b.call(_), 5700 rescale()) : range.slice(); 5701 }, scale.rangeRound = function(_) { 5702 return range = __WEBPACK_IMPORTED_MODULE_2__array__.b.call(_), interpolate = __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__.d, 5703 rescale(); 5704 }, scale.clamp = function(_) { 5705 return arguments.length ? (clamp = !!_, rescale()) : clamp; 5706 }, scale.interpolate = function(_) { 5707 return arguments.length ? (interpolate = _, rescale()) : interpolate; 5708 }, rescale(); 5709 } 5710 __webpack_exports__.c = deinterpolateLinear, __webpack_exports__.a = copy, __webpack_exports__.b = continuous; 5711 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 ]; 5712 }, function(module, __webpack_exports__, __webpack_require__) { 5713 "use strict"; 5714 var __WEBPACK_IMPORTED_MODULE_0__formatDecimal__ = __webpack_require__(211); 5715 __webpack_exports__.a = function(x) { 5716 return x = Object(__WEBPACK_IMPORTED_MODULE_0__formatDecimal__.a)(Math.abs(x)), 5717 x ? x[1] : NaN; 5718 }; 5719 }, function(module, __webpack_exports__, __webpack_require__) { 5720 "use strict"; 5721 function _classCallCheck(instance, Constructor) { 5722 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 5723 } 5724 function _possibleConstructorReturn(self, call) { 5725 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 5726 return !call || "object" != typeof call && "function" != typeof call ? self : call; 5727 } 5728 function _inherits(subClass, superClass) { 5729 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 5730 subClass.prototype = Object.create(superClass && superClass.prototype, { 5731 constructor: { 5732 value: subClass, 5733 enumerable: !1, 5734 writable: !0, 5735 configurable: !0 5736 } 5737 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 5738 } 5739 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) { 5740 for (var i = 1; i < arguments.length; i++) { 5741 var source = arguments[i]; 5742 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 5743 } 5744 return target; 5745 }, _createClass = function() { 5746 function defineProperties(target, props) { 5747 for (var i = 0; i < props.length; i++) { 5748 var descriptor = props[i]; 5749 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 5750 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 5751 } 5752 } 5753 return function(Constructor, protoProps, staticProps) { 5754 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 5755 Constructor; 5756 }; 5757 }(), getDeltaAngle = function(startAngle, endAngle) { 5758 return Object(__WEBPACK_IMPORTED_MODULE_6__util_DataUtils__.j)(endAngle - startAngle) * Math.min(Math.abs(endAngle - startAngle), 359.999); 5759 }, getTangentCircle = function(_ref) { 5760 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; 5761 return { 5762 center: Object(__WEBPACK_IMPORTED_MODULE_5__util_PolarUtils__.e)(cx, cy, centerRadius, centerAngle), 5763 circleTangency: Object(__WEBPACK_IMPORTED_MODULE_5__util_PolarUtils__.e)(cx, cy, radius, centerAngle), 5764 lineTangency: Object(__WEBPACK_IMPORTED_MODULE_5__util_PolarUtils__.e)(cx, cy, centerRadius * Math.cos(theta * __WEBPACK_IMPORTED_MODULE_5__util_PolarUtils__.a), angle), 5765 theta: theta 5766 }; 5767 }, getSectorPath = function(_ref2) { 5768 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 "; 5769 if (innerRadius > 0) { 5770 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); 5771 path += "L " + innerEndPoint.x + "," + innerEndPoint.y + "\n A " + innerRadius + "," + innerRadius + ",0,\n " + +(Math.abs(angle) > 180) + "," + +(startAngle <= tempEndAngle) + ",\n " + innerStartPoint.x + "," + innerStartPoint.y + " Z"; 5772 } else path += "L " + cx + "," + cy + " Z"; 5773 return path; 5774 }, getSectorWithCorner = function(_ref3) { 5775 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({ 5776 cx: cx, 5777 cy: cy, 5778 radius: outerRadius, 5779 angle: startAngle, 5780 sign: sign, 5781 cornerRadius: cornerRadius 5782 }), soct = _getTangentCircle.circleTangency, solt = _getTangentCircle.lineTangency, sot = _getTangentCircle.theta, _getTangentCircle2 = getTangentCircle({ 5783 cx: cx, 5784 cy: cy, 5785 radius: outerRadius, 5786 angle: endAngle, 5787 sign: -sign, 5788 cornerRadius: cornerRadius 5789 }), eoct = _getTangentCircle2.circleTangency, eolt = _getTangentCircle2.lineTangency, eot = _getTangentCircle2.theta, outerArcAngle = Math.abs(startAngle - endAngle) - sot - eot; 5790 if (outerArcAngle < 0) return getSectorPath({ 5791 cx: cx, 5792 cy: cy, 5793 innerRadius: innerRadius, 5794 outerRadius: outerRadius, 5795 startAngle: startAngle, 5796 endAngle: endAngle 5797 }); 5798 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 "; 5799 if (innerRadius > 0) { 5800 var _getTangentCircle3 = getTangentCircle({ 5801 cx: cx, 5802 cy: cy, 5803 radius: innerRadius, 5804 angle: startAngle, 5805 sign: sign, 5806 isExternal: !0, 5807 cornerRadius: cornerRadius 5808 }), sict = _getTangentCircle3.circleTangency, silt = _getTangentCircle3.lineTangency, sit = _getTangentCircle3.theta, _getTangentCircle4 = getTangentCircle({ 5809 cx: cx, 5810 cy: cy, 5811 radius: innerRadius, 5812 angle: endAngle, 5813 sign: -sign, 5814 isExternal: !0, 5815 cornerRadius: cornerRadius 5816 }), eict = _getTangentCircle4.circleTangency, eilt = _getTangentCircle4.lineTangency, eit = _getTangentCircle4.theta, innerArcAngle = Math.abs(startAngle - endAngle) - sit - eit; 5817 if (innerArcAngle < 0) return path + "L" + cx + "," + cy + "Z"; 5818 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"; 5819 } else path += "L" + cx + "," + cy + "Z"; 5820 return path; 5821 }, Sector = Object(__WEBPACK_IMPORTED_MODULE_3__util_PureRender__.a)((_temp = _class2 = function(_Component) { 5822 function Sector() { 5823 return _classCallCheck(this, Sector), _possibleConstructorReturn(this, (Sector.__proto__ || Object.getPrototypeOf(Sector)).apply(this, arguments)); 5824 } 5825 return _inherits(Sector, _Component), _createClass(Sector, [ { 5826 key: "render", 5827 value: function() { 5828 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; 5829 if (outerRadius < innerRadius || startAngle === endAngle) return null; 5830 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; 5831 return path = cr > 0 && Math.abs(startAngle - endAngle) < 360 ? getSectorWithCorner({ 5832 cx: cx, 5833 cy: cy, 5834 innerRadius: innerRadius, 5835 outerRadius: outerRadius, 5836 cornerRadius: Math.min(cr, deltaRadius / 2), 5837 startAngle: startAngle, 5838 endAngle: endAngle 5839 }) : getSectorPath({ 5840 cx: cx, 5841 cy: cy, 5842 innerRadius: innerRadius, 5843 outerRadius: outerRadius, 5844 startAngle: startAngle, 5845 endAngle: endAngle 5846 }), __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), { 5847 className: layerClass, 5848 d: path 5849 })); 5850 } 5851 } ]), Sector; 5852 }(__WEBPACK_IMPORTED_MODULE_0_react__.Component), _class2.displayName = "Sector", 5853 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_4__util_ReactUtils__.c, { 5854 className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, 5855 cx: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 5856 cy: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 5857 innerRadius: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 5858 outerRadius: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 5859 startAngle: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 5860 endAngle: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 5861 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 ]) 5862 }), _class2.defaultProps = { 5863 cx: 0, 5864 cy: 0, 5865 innerRadius: 0, 5866 outerRadius: 0, 5867 startAngle: 0, 5868 endAngle: 0, 5869 cornerRadius: 0 5870 }, _class = _temp)) || _class; 5871 __webpack_exports__.a = Sector; 5872 }, function(module, __webpack_exports__, __webpack_require__) { 5873 "use strict"; 5874 function _objectWithoutProperties(obj, keys) { 5875 var target = {}; 5876 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 5877 return target; 5878 } 5879 function _classCallCheck(instance, Constructor) { 5880 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 5881 } 5882 function _possibleConstructorReturn(self, call) { 5883 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 5884 return !call || "object" != typeof call && "function" != typeof call ? self : call; 5885 } 5886 function _inherits(subClass, superClass) { 5887 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 5888 subClass.prototype = Object.create(superClass && superClass.prototype, { 5889 constructor: { 5890 value: subClass, 5891 enumerable: !1, 5892 writable: !0, 5893 configurable: !0 5894 } 5895 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 5896 } 5897 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) { 5898 for (var i = 1; i < arguments.length; i++) { 5899 var source = arguments[i]; 5900 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 5901 } 5902 return target; 5903 }, _createClass = function() { 5904 function defineProperties(target, props) { 5905 for (var i = 0; i < props.length; i++) { 5906 var descriptor = props[i]; 5907 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 5908 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 5909 } 5910 } 5911 return function(Constructor, protoProps, staticProps) { 5912 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 5913 Constructor; 5914 }; 5915 }(), PolarRadiusAxis = Object(__WEBPACK_IMPORTED_MODULE_5__util_PureRender__.a)((_temp = _class2 = function(_Component) { 5916 function PolarRadiusAxis() { 5917 return _classCallCheck(this, PolarRadiusAxis), _possibleConstructorReturn(this, (PolarRadiusAxis.__proto__ || Object.getPrototypeOf(PolarRadiusAxis)).apply(this, arguments)); 5918 } 5919 return _inherits(PolarRadiusAxis, _Component), _createClass(PolarRadiusAxis, [ { 5920 key: "getTickValueCoord", 5921 value: function(_ref) { 5922 var coordinate = _ref.coordinate, _props = this.props, angle = _props.angle, cx = _props.cx, cy = _props.cy; 5923 return Object(__WEBPACK_IMPORTED_MODULE_10__util_PolarUtils__.e)(cx, cy, coordinate, angle); 5924 } 5925 }, { 5926 key: "getTickTextAnchor", 5927 value: function() { 5928 var orientation = this.props.orientation, textAnchor = void 0; 5929 switch (orientation) { 5930 case "left": 5931 textAnchor = "end"; 5932 break; 5933 5934 case "right": 5935 textAnchor = "start"; 5936 break; 5937 5938 default: 5939 textAnchor = "middle"; 5940 } 5941 return textAnchor; 5942 } 5943 }, { 5944 key: "getViewBox", 5945 value: function() { 5946 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) { 5947 return entry.coordinate || 0; 5948 }); 5949 return { 5950 cx: cx, 5951 cy: cy, 5952 startAngle: angle, 5953 endAngle: angle, 5954 innerRadius: __WEBPACK_IMPORTED_MODULE_1_lodash_minBy___default()(ticks, function(entry) { 5955 return entry.coordinate || 0; 5956 }).coordinate || 0, 5957 outerRadius: maxRadiusTick.coordinate || 0 5958 }; 5959 } 5960 }, { 5961 key: "renderAxisLine", 5962 value: function() { 5963 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) { 5964 return [ Math.min(result[0], entry.coordinate), Math.max(result[1], entry.coordinate) ]; 5965 }, [ 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), { 5966 fill: "none" 5967 }, Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.k)(axisLine), { 5968 x1: point0.x, 5969 y1: point0.y, 5970 x2: point1.x, 5971 y2: point1.y 5972 }); 5973 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement("line", _extends({ 5974 className: "recharts-polar-radius-axis-line" 5975 }, props)); 5976 } 5977 }, { 5978 key: "renderTickItem", 5979 value: function(option, props, value) { 5980 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, { 5981 className: "recharts-polar-radius-axis-tick-value" 5982 }), value); 5983 } 5984 }, { 5985 key: "renderTicks", 5986 value: function() { 5987 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) { 5988 var coord = _this2.getTickValueCoord(entry), tickProps = _extends({ 5989 textAnchor: textAnchor, 5990 transform: "rotate(" + (90 - angle) + ", " + coord.x + ", " + coord.y + ")" 5991 }, axisProps, { 5992 stroke: "none", 5993 fill: stroke 5994 }, customTickProps, { 5995 index: i 5996 }, coord, { 5997 payload: entry 5998 }); 5999 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, _extends({ 6000 className: "recharts-polar-radius-axis-tick", 6001 key: "tick-" + i 6002 }, Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.f)(_this2.props, entry, i)), _this2.renderTickItem(tick, tickProps, tickFormatter ? tickFormatter(entry.value) : entry.value)); 6003 }); 6004 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, { 6005 className: "recharts-polar-radius-axis-ticks" 6006 }, items); 6007 } 6008 }, { 6009 key: "render", 6010 value: function() { 6011 var _props5 = this.props, ticks = _props5.ticks, axisLine = _props5.axisLine, tick = _props5.tick; 6012 return ticks && ticks.length ? __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, { 6013 className: "recharts-polar-radius-axis" 6014 }, axisLine && this.renderAxisLine(), tick && this.renderTicks(), __WEBPACK_IMPORTED_MODULE_7__component_Label__.a.renderCallByParent(this.props, this.getViewBox())) : null; 6015 } 6016 } ]), PolarRadiusAxis; 6017 }(__WEBPACK_IMPORTED_MODULE_3_react__.Component), _class2.displayName = "PolarRadiusAxis", 6018 _class2.axisType = "radiusAxis", _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.c, __WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.a, { 6019 type: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf([ "number", "category" ]), 6020 cx: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 6021 cy: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 6022 hide: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool, 6023 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 ]), 6024 angle: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 6025 tickCount: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 6026 ticks: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.shape({ 6027 value: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.any, 6028 coordinate: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number 6029 })), 6030 orientation: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf([ "left", "right", "middle" ]), 6031 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 ]), 6032 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 ]), 6033 stroke: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, 6034 tickFormatter: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func, 6035 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" ]) ])), 6036 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 ]), 6037 allowDataOverflow: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool, 6038 allowDuplicatedCategory: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool 6039 }), _class2.defaultProps = { 6040 type: "number", 6041 radiusAxisId: 0, 6042 cx: 0, 6043 cy: 0, 6044 angle: 0, 6045 orientation: "right", 6046 stroke: "#ccc", 6047 axisLine: !0, 6048 tick: !0, 6049 tickCount: 5, 6050 domain: [ 0, "auto" ], 6051 allowDataOverflow: !1, 6052 scale: "auto", 6053 allowDuplicatedCategory: !0 6054 }, _class = _temp)) || _class; 6055 __webpack_exports__.a = PolarRadiusAxis; 6056 }, function(module, __webpack_exports__, __webpack_require__) { 6057 "use strict"; 6058 function _classCallCheck(instance, Constructor) { 6059 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 6060 } 6061 function _possibleConstructorReturn(self, call) { 6062 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 6063 return !call || "object" != typeof call && "function" != typeof call ? self : call; 6064 } 6065 function _inherits(subClass, superClass) { 6066 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 6067 subClass.prototype = Object.create(superClass && superClass.prototype, { 6068 constructor: { 6069 value: subClass, 6070 enumerable: !1, 6071 writable: !0, 6072 configurable: !0 6073 } 6074 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 6075 } 6076 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) { 6077 for (var i = 1; i < arguments.length; i++) { 6078 var source = arguments[i]; 6079 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 6080 } 6081 return target; 6082 }, _createClass = function() { 6083 function defineProperties(target, props) { 6084 for (var i = 0; i < props.length; i++) { 6085 var descriptor = props[i]; 6086 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 6087 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 6088 } 6089 } 6090 return function(Constructor, protoProps, staticProps) { 6091 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 6092 Constructor; 6093 }; 6094 }(), RADIAN = Math.PI / 180, PolarAngleAxis = Object(__WEBPACK_IMPORTED_MODULE_3__util_PureRender__.a)((_temp = _class2 = function(_Component) { 6095 function PolarAngleAxis() { 6096 return _classCallCheck(this, PolarAngleAxis), _possibleConstructorReturn(this, (PolarAngleAxis.__proto__ || Object.getPrototypeOf(PolarAngleAxis)).apply(this, arguments)); 6097 } 6098 return _inherits(PolarAngleAxis, _Component), _createClass(PolarAngleAxis, [ { 6099 key: "getTickLineCoord", 6100 value: function(data) { 6101 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); 6102 return { 6103 x1: p1.x, 6104 y1: p1.y, 6105 x2: p2.x, 6106 y2: p2.y 6107 }; 6108 } 6109 }, { 6110 key: "getTickTextAnchor", 6111 value: function(data) { 6112 var orientation = this.props.orientation, cos = Math.cos(-data.coordinate * RADIAN); 6113 return cos > 1e-5 ? "outer" === orientation ? "start" : "end" : cos < -1e-5 ? "outer" === orientation ? "end" : "start" : "middle"; 6114 } 6115 }, { 6116 key: "renderAxisLine", 6117 value: function() { 6118 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), { 6119 fill: "none" 6120 }, Object(__WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__.k)(axisLine)); 6121 if ("circle" === axisLineType) return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__shape_Dot__.a, _extends({ 6122 className: "recharts-polar-angle-axis-line" 6123 }, props, { 6124 cx: cx, 6125 cy: cy, 6126 r: radius 6127 })); 6128 var ticks = this.props.ticks, points = ticks.map(function(entry) { 6129 return Object(__WEBPACK_IMPORTED_MODULE_9__util_PolarUtils__.e)(cx, cy, radius, entry.coordinate); 6130 }); 6131 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__shape_Polygon__.a, _extends({ 6132 className: "recharts-polar-angle-axis-line" 6133 }, props, { 6134 points: points 6135 })); 6136 } 6137 }, { 6138 key: "renderTickItem", 6139 value: function(option, props, value) { 6140 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, { 6141 className: "recharts-polar-angle-axis-tick-value" 6142 }), value); 6143 } 6144 }, { 6145 key: "renderTicks", 6146 value: function() { 6147 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, { 6148 fill: "none" 6149 }, Object(__WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__.k)(tickLine)), items = ticks.map(function(entry, i) { 6150 var lineCoord = _this2.getTickLineCoord(entry), textAnchor = _this2.getTickTextAnchor(entry), tickProps = _extends({ 6151 textAnchor: textAnchor 6152 }, axisProps, { 6153 stroke: "none", 6154 fill: stroke 6155 }, customTickProps, { 6156 index: i, 6157 payload: entry, 6158 x: lineCoord.x2, 6159 y: lineCoord.y2 6160 }); 6161 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__container_Layer__.a, _extends({ 6162 className: "recharts-polar-angle-axis-tick", 6163 key: "tick-" + i 6164 }, Object(__WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__.f)(_this2.props, entry, i)), tickLine && __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("line", _extends({ 6165 className: "recharts-polar-angle-axis-tick-line" 6166 }, tickLineProps, lineCoord)), tick && _this2.renderTickItem(tick, tickProps, tickFormatter ? tickFormatter(entry.value) : entry.value)); 6167 }); 6168 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__container_Layer__.a, { 6169 className: "recharts-polar-angle-axis-ticks" 6170 }, items); 6171 } 6172 }, { 6173 key: "render", 6174 value: function() { 6175 var _props4 = this.props, ticks = _props4.ticks, radius = _props4.radius, axisLine = _props4.axisLine; 6176 return radius <= 0 || !ticks || !ticks.length ? null : __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__container_Layer__.a, { 6177 className: "recharts-polar-angle-axis" 6178 }, axisLine && this.renderAxisLine(), this.renderTicks()); 6179 } 6180 } ]), PolarAngleAxis; 6181 }(__WEBPACK_IMPORTED_MODULE_1_react__.Component), _class2.displayName = "PolarAngleAxis", 6182 _class2.axisType = "angleAxis", _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__.c, __WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__.a, { 6183 type: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOf([ "number", "category" ]), 6184 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 ]), 6185 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 ]), 6186 cx: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 6187 cy: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 6188 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 ]), 6189 hide: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, 6190 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 ]), 6191 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 ]), 6192 axisLineType: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOf([ "polygon", "circle" ]), 6193 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 ]), 6194 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 ]), 6195 ticks: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.shape({ 6196 value: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.any, 6197 coordinate: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number 6198 })), 6199 stroke: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, 6200 orientation: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOf([ "inner", "outer" ]), 6201 tickFormatter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, 6202 allowDuplicatedCategory: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool 6203 }), _class2.defaultProps = { 6204 type: "category", 6205 angleAxisId: 0, 6206 scale: "auto", 6207 cx: 0, 6208 cy: 0, 6209 domain: [ 0, "auto" ], 6210 orientation: "outer", 6211 axisLine: !0, 6212 tickLine: !0, 6213 tick: !0, 6214 hide: !1, 6215 allowDuplicatedCategory: !0 6216 }, _class = _temp)) || _class; 6217 __webpack_exports__.a = PolarAngleAxis; 6218 }, function(module, __webpack_exports__, __webpack_require__) { 6219 "use strict"; 6220 function _classCallCheck(instance, Constructor) { 6221 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 6222 } 6223 function _possibleConstructorReturn(self, call) { 6224 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 6225 return !call || "object" != typeof call && "function" != typeof call ? self : call; 6226 } 6227 function _inherits(subClass, superClass) { 6228 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 6229 subClass.prototype = Object.create(superClass && superClass.prototype, { 6230 constructor: { 6231 value: subClass, 6232 enumerable: !1, 6233 writable: !0, 6234 configurable: !0 6235 } 6236 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 6237 } 6238 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__), 6239 __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() { 6240 function defineProperties(target, props) { 6241 for (var i = 0; i < props.length; i++) { 6242 var descriptor = props[i]; 6243 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 6244 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 6245 } 6246 } 6247 return function(Constructor, protoProps, staticProps) { 6248 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 6249 Constructor; 6250 }; 6251 }(), ZAxis = Object(__WEBPACK_IMPORTED_MODULE_2__util_PureRender__.a)((_temp = _class2 = function(_Component) { 6252 function ZAxis() { 6253 return _classCallCheck(this, ZAxis), _possibleConstructorReturn(this, (ZAxis.__proto__ || Object.getPrototypeOf(ZAxis)).apply(this, arguments)); 6254 } 6255 return _inherits(ZAxis, _Component), _createClass(ZAxis, [ { 6256 key: "render", 6257 value: function() { 6258 return null; 6259 } 6260 } ]), ZAxis; 6261 }(__WEBPACK_IMPORTED_MODULE_0_react__.Component), _class2.displayName = "ZAxis", 6262 _class2.propTypes = { 6263 type: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf([ "number", "category" ]), 6264 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 ]), 6265 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 ]), 6266 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 ]), 6267 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 ]), 6268 range: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number), 6269 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 ]) 6270 }, _class2.defaultProps = { 6271 zAxisId: 0, 6272 range: [ 64, 64 ], 6273 scale: "auto", 6274 type: "number" 6275 }, _class = _temp)) || _class; 6276 __webpack_exports__.a = ZAxis; 6277 }, function(module, exports, __webpack_require__) { 6278 "use strict"; 6279 (function(process) { 6280 function checkPropTypes(typeSpecs, values, location, componentName, getStack) { 6281 if ("production" !== process.env.NODE_ENV) for (var typeSpecName in typeSpecs) if (typeSpecs.hasOwnProperty(typeSpecName)) { 6282 var error; 6283 try { 6284 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]), 6285 error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); 6286 } catch (ex) { 6287 error = ex; 6288 } 6289 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), 6290 error instanceof Error && !(error.message in loggedTypeFailures)) { 6291 loggedTypeFailures[error.message] = !0; 6292 var stack = getStack ? getStack() : ""; 6293 warning(!1, "Failed %s type: %s%s", location, error.message, null != stack ? stack : ""); 6294 } 6295 } 6296 } 6297 if ("production" !== process.env.NODE_ENV) var invariant = __webpack_require__(49), warning = __webpack_require__(98), ReactPropTypesSecret = __webpack_require__(144), loggedTypeFailures = {}; 6298 module.exports = checkPropTypes; 6299 }).call(exports, __webpack_require__(2)); 6300 }, function(module, exports, __webpack_require__) { 6301 "use strict"; 6302 module.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; 6303 }, function(module, exports, __webpack_require__) { 6304 var isObject = __webpack_require__(35); 6305 module.exports = function(it, S) { 6306 if (!isObject(it)) return it; 6307 var fn, val; 6308 if (S && "function" == typeof (fn = it.toString) && !isObject(val = fn.call(it))) return val; 6309 if ("function" == typeof (fn = it.valueOf) && !isObject(val = fn.call(it))) return val; 6310 if (!S && "function" == typeof (fn = it.toString) && !isObject(val = fn.call(it))) return val; 6311 throw TypeError("Can't convert object to primitive value"); 6312 }; 6313 }, function(module, exports, __webpack_require__) { 6314 var cof = __webpack_require__(147); 6315 module.exports = Object("z").propertyIsEnumerable(0) ? Object : function(it) { 6316 return "String" == cof(it) ? it.split("") : Object(it); 6317 }; 6318 }, function(module, exports) { 6319 var toString = {}.toString; 6320 module.exports = function(it) { 6321 return toString.call(it).slice(8, -1); 6322 }; 6323 }, function(module, exports) { 6324 module.exports = function(it) { 6325 if (void 0 == it) throw TypeError("Can't call method on " + it); 6326 return it; 6327 }; 6328 }, function(module, exports) { 6329 var ceil = Math.ceil, floor = Math.floor; 6330 module.exports = function(it) { 6331 return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); 6332 }; 6333 }, function(module, exports, __webpack_require__) { 6334 var shared = __webpack_require__(151)("keys"), uid = __webpack_require__(103); 6335 module.exports = function(key) { 6336 return shared[key] || (shared[key] = uid(key)); 6337 }; 6338 }, function(module, exports, __webpack_require__) { 6339 var core = __webpack_require__(17), global = __webpack_require__(24), store = global["__core-js_shared__"] || (global["__core-js_shared__"] = {}); 6340 (module.exports = function(key, value) { 6341 return store[key] || (store[key] = void 0 !== value ? value : {}); 6342 })("versions", []).push({ 6343 version: core.version, 6344 mode: __webpack_require__(102) ? "pure" : "global", 6345 copyright: "© 2018 Denis Pushkarev (zloirock.ru)" 6346 }); 6347 }, function(module, exports) { 6348 module.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","); 6349 }, function(module, exports) { 6350 exports.f = Object.getOwnPropertySymbols; 6351 }, function(module, exports, __webpack_require__) { 6352 module.exports = { 6353 default: __webpack_require__(392), 6354 __esModule: !0 6355 }; 6356 }, function(module, exports, __webpack_require__) { 6357 "use strict"; 6358 var $at = __webpack_require__(398)(!0); 6359 __webpack_require__(156)(String, "String", function(iterated) { 6360 this._t = String(iterated), this._i = 0; 6361 }, function() { 6362 var point, O = this._t, index = this._i; 6363 return index >= O.length ? { 6364 value: void 0, 6365 done: !0 6366 } : (point = $at(O, index), this._i += point.length, { 6367 value: point, 6368 done: !1 6369 }); 6370 }); 6371 }, function(module, exports, __webpack_require__) { 6372 "use strict"; 6373 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() { 6374 return this; 6375 }; 6376 module.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { 6377 $iterCreate(Constructor, NAME, next); 6378 var methods, key, IteratorPrototype, getMethod = function(kind) { 6379 if (!BUGGY && kind in proto) return proto[kind]; 6380 switch (kind) { 6381 case "keys": 6382 case "values": 6383 return function() { 6384 return new Constructor(this, kind); 6385 }; 6386 } 6387 return function() { 6388 return new Constructor(this, kind); 6389 }; 6390 }, 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; 6391 if ($anyNative && (IteratorPrototype = getPrototypeOf($anyNative.call(new Base()))) !== Object.prototype && IteratorPrototype.next && (setToStringTag(IteratorPrototype, TAG, !0), 6392 LIBRARY || "function" == typeof IteratorPrototype[ITERATOR] || hide(IteratorPrototype, ITERATOR, returnThis)), 6393 DEF_VALUES && $native && "values" !== $native.name && (VALUES_BUG = !0, $default = function() { 6394 return $native.call(this); 6395 }), LIBRARY && !FORCED || !BUGGY && !VALUES_BUG && proto[ITERATOR] || hide(proto, ITERATOR, $default), 6396 Iterators[NAME] = $default, Iterators[TAG] = returnThis, DEFAULT) if (methods = { 6397 values: DEF_VALUES ? $default : getMethod("values"), 6398 keys: IS_SET ? $default : getMethod("keys"), 6399 entries: $entries 6400 }, FORCED) for (key in methods) key in proto || redefine(proto, key, methods[key]); else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); 6401 return methods; 6402 }; 6403 }, function(module, exports, __webpack_require__) { 6404 exports.f = __webpack_require__(21); 6405 }, function(module, exports, __webpack_require__) { 6406 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() { 6407 return !0; 6408 }, FREEZE = !__webpack_require__(53)(function() { 6409 return isExtensible(Object.preventExtensions({})); 6410 }), setMeta = function(it) { 6411 setDesc(it, META, { 6412 value: { 6413 i: "O" + ++id, 6414 w: {} 6415 } 6416 }); 6417 }, fastKey = function(it, create) { 6418 if (!isObject(it)) return "symbol" == typeof it ? it : ("string" == typeof it ? "S" : "P") + it; 6419 if (!has(it, META)) { 6420 if (!isExtensible(it)) return "F"; 6421 if (!create) return "E"; 6422 setMeta(it); 6423 } 6424 return it[META].i; 6425 }, getWeak = function(it, create) { 6426 if (!has(it, META)) { 6427 if (!isExtensible(it)) return !0; 6428 if (!create) return !1; 6429 setMeta(it); 6430 } 6431 return it[META].w; 6432 }, onFreeze = function(it) { 6433 return FREEZE && meta.NEED && isExtensible(it) && !has(it, META) && setMeta(it), 6434 it; 6435 }, meta = module.exports = { 6436 KEY: META, 6437 NEED: !1, 6438 fastKey: fastKey, 6439 getWeak: getWeak, 6440 onFreeze: onFreeze 6441 }; 6442 }, function(module, exports, __webpack_require__) { 6443 var global = __webpack_require__(24), core = __webpack_require__(17), LIBRARY = __webpack_require__(102), wksExt = __webpack_require__(157), defineProperty = __webpack_require__(22).f; 6444 module.exports = function(name) { 6445 var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); 6446 "_" == name.charAt(0) || name in $Symbol || defineProperty($Symbol, name, { 6447 value: wksExt.f(name) 6448 }); 6449 }; 6450 }, function(module, exports, __webpack_require__) { 6451 "use strict"; 6452 function _interopRequireDefault(obj) { 6453 return obj && obj.__esModule ? obj : { 6454 default: obj 6455 }; 6456 } 6457 Object.defineProperty(exports, "__esModule", { 6458 value: !0 6459 }), exports.CHANNEL = void 0; 6460 var _defineProperty2 = __webpack_require__(12), _defineProperty3 = _interopRequireDefault(_defineProperty2), _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), CHANNEL = exports.CHANNEL = "__THEMING__", themeListener = { 6461 contextTypes: (0, _defineProperty3.default)({}, CHANNEL, _propTypes2.default.object), 6462 initial: function(context) { 6463 return context[CHANNEL] ? context[CHANNEL].getState() : null; 6464 }, 6465 subscribe: function(context, cb) { 6466 return context[CHANNEL] ? context[CHANNEL].subscribe(cb) : null; 6467 }, 6468 unsubscribe: function(context, subscriptionId) { 6469 context[CHANNEL] && context[CHANNEL].unsubscribe(subscriptionId); 6470 } 6471 }; 6472 exports.default = themeListener; 6473 }, function(module, exports, __webpack_require__) { 6474 "use strict"; 6475 (function(process) { 6476 function _interopRequireDefault(obj) { 6477 return obj && obj.__esModule ? obj : { 6478 default: obj 6479 }; 6480 } 6481 function createMuiTheme() { 6482 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, 6483 _objectWithoutProperties3.default)(options, [ "palette", "breakpoints", "mixins", "typography", "shadows" ]), palette = (0, 6484 _createPalette2.default)(paletteInput), breakpoints = (0, _createBreakpoints2.default)(breakpointsInput), muiTheme = (0, 6485 _extends3.default)({ 6486 direction: "ltr", 6487 palette: palette, 6488 typography: (0, _createTypography2.default)(palette, typographyInput), 6489 mixins: (0, _createMixins2.default)(breakpoints, _spacing2.default, mixinsInput), 6490 breakpoints: breakpoints, 6491 shadows: shadowsInput || _shadows2.default 6492 }, (0, _deepmerge2.default)({ 6493 transitions: _transitions2.default, 6494 spacing: _spacing2.default, 6495 zIndex: _zIndex2.default 6496 }, other)); 6497 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."), 6498 muiTheme; 6499 } 6500 Object.defineProperty(exports, "__esModule", { 6501 value: !0 6502 }); 6503 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); 6504 exports.default = createMuiTheme; 6505 }).call(exports, __webpack_require__(2)); 6506 }, function(module, exports, __webpack_require__) { 6507 !function(global, factory) { 6508 module.exports = factory(); 6509 }(0, function() { 6510 "use strict"; 6511 var REACT_STATICS = { 6512 childContextTypes: !0, 6513 contextTypes: !0, 6514 defaultProps: !0, 6515 displayName: !0, 6516 getDefaultProps: !0, 6517 getDerivedStateFromProps: !0, 6518 mixins: !0, 6519 propTypes: !0, 6520 type: !0 6521 }, KNOWN_STATICS = { 6522 name: !0, 6523 length: !0, 6524 prototype: !0, 6525 caller: !0, 6526 callee: !0, 6527 arguments: !0, 6528 arity: !0 6529 }, defineProperty = Object.defineProperty, getOwnPropertyNames = Object.getOwnPropertyNames, getOwnPropertySymbols = Object.getOwnPropertySymbols, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, getPrototypeOf = Object.getPrototypeOf, objectPrototype = getPrototypeOf && getPrototypeOf(Object); 6530 return function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) { 6531 if ("string" != typeof sourceComponent) { 6532 if (objectPrototype) { 6533 var inheritedComponent = getPrototypeOf(sourceComponent); 6534 inheritedComponent && inheritedComponent !== objectPrototype && hoistNonReactStatics(targetComponent, inheritedComponent, blacklist); 6535 } 6536 var keys = getOwnPropertyNames(sourceComponent); 6537 getOwnPropertySymbols && (keys = keys.concat(getOwnPropertySymbols(sourceComponent))); 6538 for (var i = 0; i < keys.length; ++i) { 6539 var key = keys[i]; 6540 if (!(REACT_STATICS[key] || KNOWN_STATICS[key] || blacklist && blacklist[key])) { 6541 var descriptor = getOwnPropertyDescriptor(sourceComponent, key); 6542 try { 6543 defineProperty(targetComponent, key, descriptor); 6544 } catch (e) {} 6545 } 6546 } 6547 return targetComponent; 6548 } 6549 return targetComponent; 6550 }; 6551 }); 6552 }, function(module, exports, __webpack_require__) { 6553 "use strict"; 6554 function indentStr(str, indent) { 6555 for (var result = "", index = 0; index < indent; index++) result += " "; 6556 return result + str; 6557 } 6558 function toCss(selector, style) { 6559 var options = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, result = ""; 6560 if (!style) return result; 6561 var _options$indent = options.indent, indent = void 0 === _options$indent ? 0 : _options$indent, fallbacks = style.fallbacks; 6562 if (indent++, fallbacks) if (Array.isArray(fallbacks)) for (var index = 0; index < fallbacks.length; index++) { 6563 var fallback = fallbacks[index]; 6564 for (var prop in fallback) { 6565 var value = fallback[prop]; 6566 null != value && (result += "\n" + indentStr(prop + ": " + (0, _toCssValue2.default)(value) + ";", indent)); 6567 } 6568 } else for (var _prop in fallbacks) { 6569 var _value = fallbacks[_prop]; 6570 null != _value && (result += "\n" + indentStr(_prop + ": " + (0, _toCssValue2.default)(_value) + ";", indent)); 6571 } 6572 for (var _prop2 in style) { 6573 var _value2 = style[_prop2]; 6574 null != _value2 && "fallbacks" !== _prop2 && (result += "\n" + indentStr(_prop2 + ": " + (0, 6575 _toCssValue2.default)(_value2) + ";", indent)); 6576 } 6577 return result || options.allowEmpty ? (indent--, result = indentStr(selector + " {" + result + "\n", indent) + indentStr("}", indent)) : result; 6578 } 6579 Object.defineProperty(exports, "__esModule", { 6580 value: !0 6581 }), exports.default = toCss; 6582 var _toCssValue = __webpack_require__(110), _toCssValue2 = function(obj) { 6583 return obj && obj.__esModule ? obj : { 6584 default: obj 6585 }; 6586 }(_toCssValue); 6587 }, function(module, exports, __webpack_require__) { 6588 "use strict"; 6589 Object.defineProperty(exports, "__esModule", { 6590 value: !0 6591 }); 6592 var _SheetsRegistry = __webpack_require__(247), _SheetsRegistry2 = function(obj) { 6593 return obj && obj.__esModule ? obj : { 6594 default: obj 6595 }; 6596 }(_SheetsRegistry); 6597 exports.default = new _SheetsRegistry2.default(); 6598 }, function(module, exports, __webpack_require__) { 6599 "use strict"; 6600 Object.defineProperty(exports, "__esModule", { 6601 value: !0 6602 }); 6603 var _isInBrowser = __webpack_require__(112), _isInBrowser2 = function(obj) { 6604 return obj && obj.__esModule ? obj : { 6605 default: obj 6606 }; 6607 }(_isInBrowser), js = "", css = ""; 6608 if (_isInBrowser2.default) { 6609 var jsCssMap = { 6610 Moz: "-moz-", 6611 ms: "-ms-", 6612 O: "-o-", 6613 Webkit: "-webkit-" 6614 }, style = document.createElement("p").style; 6615 for (var key in jsCssMap) if (key + "Transform" in style) { 6616 js = key, css = jsCssMap[key]; 6617 break; 6618 } 6619 } 6620 exports.default = { 6621 js: js, 6622 css: css 6623 }; 6624 }, function(module, exports, __webpack_require__) { 6625 "use strict"; 6626 (function(process) { 6627 function _interopRequireDefault(obj) { 6628 return obj && obj.__esModule ? obj : { 6629 default: obj 6630 }; 6631 } 6632 function _objectWithoutProperties(obj, keys) { 6633 var target = {}; 6634 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 6635 return target; 6636 } 6637 function _classCallCheck(instance, Constructor) { 6638 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 6639 } 6640 function _possibleConstructorReturn(self, call) { 6641 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 6642 return !call || "object" != typeof call && "function" != typeof call ? self : call; 6643 } 6644 function _inherits(subClass, superClass) { 6645 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 6646 subClass.prototype = Object.create(superClass && superClass.prototype, { 6647 constructor: { 6648 value: subClass, 6649 enumerable: !1, 6650 writable: !0, 6651 configurable: !0 6652 } 6653 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 6654 } 6655 function noop() {} 6656 exports.__esModule = !0, exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = void 0; 6657 var _propTypes = __webpack_require__(1), PropTypes = function(obj) { 6658 if (obj && obj.__esModule) return obj; 6659 var newObj = {}; 6660 if (null != obj) for (var key in obj) Object.prototype.hasOwnProperty.call(obj, key) && (newObj[key] = obj[key]); 6661 return newObj.default = obj, newObj; 6662 }(_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) { 6663 function Transition(props, context) { 6664 _classCallCheck(this, Transition); 6665 var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)), parentGroup = context.transitionGroup, appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear, initialStatus = void 0; 6666 return _this.nextStatus = null, props.in ? appear ? (initialStatus = EXITED, _this.nextStatus = ENTERING) : initialStatus = ENTERED : initialStatus = props.unmountOnExit || props.mountOnEnter ? UNMOUNTED : EXITED, 6667 _this.state = { 6668 status: initialStatus 6669 }, _this.nextCallback = null, _this; 6670 } 6671 return _inherits(Transition, _React$Component), Transition.prototype.getChildContext = function() { 6672 return { 6673 transitionGroup: null 6674 }; 6675 }, Transition.prototype.componentDidMount = function() { 6676 this.updateStatus(!0); 6677 }, Transition.prototype.componentWillReceiveProps = function(nextProps) { 6678 var _ref = this.pendingState || this.state, status = _ref.status; 6679 nextProps.in ? (status === UNMOUNTED && this.setState({ 6680 status: EXITED 6681 }), status !== ENTERING && status !== ENTERED && (this.nextStatus = ENTERING)) : status !== ENTERING && status !== ENTERED || (this.nextStatus = EXITING); 6682 }, Transition.prototype.componentDidUpdate = function() { 6683 this.updateStatus(); 6684 }, Transition.prototype.componentWillUnmount = function() { 6685 this.cancelNextCallback(); 6686 }, Transition.prototype.getTimeouts = function() { 6687 var timeout = this.props.timeout, exit = void 0, enter = void 0, appear = void 0; 6688 return exit = enter = appear = timeout, null != timeout && "number" != typeof timeout && (exit = timeout.exit, 6689 enter = timeout.enter, appear = timeout.appear), { 6690 exit: exit, 6691 enter: enter, 6692 appear: appear 6693 }; 6694 }, Transition.prototype.updateStatus = function() { 6695 var mounting = arguments.length > 0 && void 0 !== arguments[0] && arguments[0], nextStatus = this.nextStatus; 6696 if (null !== nextStatus) { 6697 this.nextStatus = null, this.cancelNextCallback(); 6698 var node = _reactDom2.default.findDOMNode(this); 6699 nextStatus === ENTERING ? this.performEnter(node, mounting) : this.performExit(node); 6700 } else this.props.unmountOnExit && this.state.status === EXITED && this.setState({ 6701 status: UNMOUNTED 6702 }); 6703 }, Transition.prototype.performEnter = function(node, mounting) { 6704 var _this2 = this, enter = this.props.enter, appearing = this.context.transitionGroup ? this.context.transitionGroup.isMounting : mounting, timeouts = this.getTimeouts(); 6705 if (!mounting && !enter) return void this.safeSetState({ 6706 status: ENTERED 6707 }, function() { 6708 _this2.props.onEntered(node); 6709 }); 6710 this.props.onEnter(node, appearing), this.safeSetState({ 6711 status: ENTERING 6712 }, function() { 6713 _this2.props.onEntering(node, appearing), _this2.onTransitionEnd(node, timeouts.enter, function() { 6714 _this2.safeSetState({ 6715 status: ENTERED 6716 }, function() { 6717 _this2.props.onEntered(node, appearing); 6718 }); 6719 }); 6720 }); 6721 }, Transition.prototype.performExit = function(node) { 6722 var _this3 = this, exit = this.props.exit, timeouts = this.getTimeouts(); 6723 if (!exit) return void this.safeSetState({ 6724 status: EXITED 6725 }, function() { 6726 _this3.props.onExited(node); 6727 }); 6728 this.props.onExit(node), this.safeSetState({ 6729 status: EXITING 6730 }, function() { 6731 _this3.props.onExiting(node), _this3.onTransitionEnd(node, timeouts.exit, function() { 6732 _this3.safeSetState({ 6733 status: EXITED 6734 }, function() { 6735 _this3.props.onExited(node); 6736 }); 6737 }); 6738 }); 6739 }, Transition.prototype.cancelNextCallback = function() { 6740 null !== this.nextCallback && (this.nextCallback.cancel(), this.nextCallback = null); 6741 }, Transition.prototype.safeSetState = function(nextState, callback) { 6742 var _this4 = this; 6743 this.pendingState = nextState, callback = this.setNextCallback(callback), this.setState(nextState, function() { 6744 _this4.pendingState = null, callback(); 6745 }); 6746 }, Transition.prototype.setNextCallback = function(callback) { 6747 var _this5 = this, active = !0; 6748 return this.nextCallback = function(event) { 6749 active && (active = !1, _this5.nextCallback = null, callback(event)); 6750 }, this.nextCallback.cancel = function() { 6751 active = !1; 6752 }, this.nextCallback; 6753 }, Transition.prototype.onTransitionEnd = function(node, timeout, handler) { 6754 this.setNextCallback(handler), node ? (this.props.addEndListener && this.props.addEndListener(node, this.nextCallback), 6755 null != timeout && setTimeout(this.nextCallback, timeout)) : setTimeout(this.nextCallback, 0); 6756 }, Transition.prototype.render = function() { 6757 var status = this.state.status; 6758 if (status === UNMOUNTED) return null; 6759 var _props = this.props, children = _props.children, childProps = _objectWithoutProperties(_props, [ "children" ]); 6760 if (delete childProps.in, delete childProps.mountOnEnter, delete childProps.unmountOnExit, 6761 delete childProps.appear, delete childProps.enter, delete childProps.exit, delete childProps.timeout, 6762 delete childProps.addEndListener, delete childProps.onEnter, delete childProps.onEntering, 6763 delete childProps.onEntered, delete childProps.onExit, delete childProps.onExiting, 6764 delete childProps.onExited, "function" == typeof children) return children(status, childProps); 6765 var child = _react2.default.Children.only(children); 6766 return _react2.default.cloneElement(child, childProps); 6767 }, Transition; 6768 }(_react2.default.Component); 6769 Transition.contextTypes = { 6770 transitionGroup: PropTypes.object 6771 }, Transition.childContextTypes = { 6772 transitionGroup: function() {} 6773 }, Transition.propTypes = "production" !== process.env.NODE_ENV ? { 6774 children: PropTypes.oneOfType([ PropTypes.func.isRequired, PropTypes.element.isRequired ]).isRequired, 6775 in: PropTypes.bool, 6776 mountOnEnter: PropTypes.bool, 6777 unmountOnExit: PropTypes.bool, 6778 appear: PropTypes.bool, 6779 enter: PropTypes.bool, 6780 exit: PropTypes.bool, 6781 timeout: function(props) { 6782 for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) args[_key - 1] = arguments[_key]; 6783 var pt = _PropTypes.timeoutsShape; 6784 return props.addEndListener || (pt = pt.isRequired), pt.apply(void 0, [ props ].concat(args)); 6785 }, 6786 addEndListener: PropTypes.func, 6787 onEnter: PropTypes.func, 6788 onEntering: PropTypes.func, 6789 onEntered: PropTypes.func, 6790 onExit: PropTypes.func, 6791 onExiting: PropTypes.func, 6792 onExited: PropTypes.func 6793 } : {}, Transition.defaultProps = { 6794 in: !1, 6795 mountOnEnter: !1, 6796 unmountOnExit: !1, 6797 appear: !1, 6798 enter: !0, 6799 exit: !0, 6800 onEnter: noop, 6801 onEntering: noop, 6802 onEntered: noop, 6803 onExit: noop, 6804 onExiting: noop, 6805 onExited: noop 6806 }, Transition.UNMOUNTED = 0, Transition.EXITED = 1, Transition.ENTERING = 2, Transition.ENTERED = 3, 6807 Transition.EXITING = 4, exports.default = Transition; 6808 }).call(exports, __webpack_require__(2)); 6809 }, function(module, exports) { 6810 var global = module.exports = "undefined" != typeof window && window.Math == Math ? window : "undefined" != typeof self && self.Math == Math ? self : Function("return this")(); 6811 "number" == typeof __g && (__g = global); 6812 }, function(module, exports) { 6813 var core = module.exports = { 6814 version: "2.5.1" 6815 }; 6816 "number" == typeof __e && (__e = core); 6817 }, function(module, exports) { 6818 module.exports = function(it) { 6819 return "object" == typeof it ? null !== it : "function" == typeof it; 6820 }; 6821 }, function(module, exports, __webpack_require__) { 6822 module.exports = !__webpack_require__(114)(function() { 6823 return 7 != Object.defineProperty({}, "a", { 6824 get: function() { 6825 return 7; 6826 } 6827 }).a; 6828 }); 6829 }, function(module, exports) { 6830 module.exports = Math.sign || function(x) { 6831 return 0 == (x = +x) || x != x ? x : x < 0 ? -1 : 1; 6832 }; 6833 }, function(module, exports) { 6834 var $expm1 = Math.expm1; 6835 module.exports = !$expm1 || $expm1(10) > 22025.465794806718 || $expm1(10) < 22025.465794806718 || -2e-17 != $expm1(-2e-17) ? function(x) { 6836 return 0 == (x = +x) ? x : x > -1e-6 && x < 1e-6 ? x + x * x / 2 : Math.exp(x) - 1; 6837 } : $expm1; 6838 }, function(module, exports, __webpack_require__) { 6839 function isString(value) { 6840 return "string" == typeof value || !isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag; 6841 } 6842 var baseGetTag = __webpack_require__(41), isArray = __webpack_require__(13), isObjectLike = __webpack_require__(42), stringTag = "[object String]"; 6843 module.exports = isString; 6844 }, function(module, exports, __webpack_require__) { 6845 function get(object, path, defaultValue) { 6846 var result = null == object ? void 0 : baseGet(object, path); 6847 return void 0 === result ? defaultValue : result; 6848 } 6849 var baseGet = __webpack_require__(269); 6850 module.exports = get; 6851 }, function(module, exports, __webpack_require__) { 6852 function isKey(value, object) { 6853 if (isArray(value)) return !1; 6854 var type = typeof value; 6855 return !("number" != type && "symbol" != type && "boolean" != type && null != value && !isSymbol(value)) || (reIsPlainProp.test(value) || !reIsDeepProp.test(value) || null != object && value in Object(object)); 6856 } 6857 var isArray = __webpack_require__(13), isSymbol = __webpack_require__(67), reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/; 6858 module.exports = isKey; 6859 }, function(module, exports, __webpack_require__) { 6860 function MapCache(entries) { 6861 var index = -1, length = null == entries ? 0 : entries.length; 6862 for (this.clear(); ++index < length; ) { 6863 var entry = entries[index]; 6864 this.set(entry[0], entry[1]); 6865 } 6866 } 6867 var mapCacheClear = __webpack_require__(608), mapCacheDelete = __webpack_require__(624), mapCacheGet = __webpack_require__(626), mapCacheHas = __webpack_require__(627), mapCacheSet = __webpack_require__(628); 6868 MapCache.prototype.clear = mapCacheClear, MapCache.prototype.delete = mapCacheDelete, 6869 MapCache.prototype.get = mapCacheGet, MapCache.prototype.has = mapCacheHas, MapCache.prototype.set = mapCacheSet, 6870 module.exports = MapCache; 6871 }, function(module, exports) { 6872 function eq(value, other) { 6873 return value === other || value !== value && other !== other; 6874 } 6875 module.exports = eq; 6876 }, function(module, exports, __webpack_require__) { 6877 var getNative = __webpack_require__(57), root = __webpack_require__(31), Map = getNative(root, "Map"); 6878 module.exports = Map; 6879 }, function(module, exports) { 6880 function arrayMap(array, iteratee) { 6881 for (var index = -1, length = null == array ? 0 : array.length, result = Array(length); ++index < length; ) result[index] = iteratee(array[index], index, array); 6882 return result; 6883 } 6884 module.exports = arrayMap; 6885 }, function(module, __webpack_exports__, __webpack_require__) { 6886 "use strict"; 6887 function _classCallCheck(instance, Constructor) { 6888 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 6889 } 6890 function _possibleConstructorReturn(self, call) { 6891 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 6892 return !call || "object" != typeof call && "function" != typeof call ? self : call; 6893 } 6894 function _inherits(subClass, superClass) { 6895 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 6896 subClass.prototype = Object.create(superClass && superClass.prototype, { 6897 constructor: { 6898 value: subClass, 6899 enumerable: !1, 6900 writable: !0, 6901 configurable: !0 6902 } 6903 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 6904 } 6905 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) { 6906 for (var i = 1; i < arguments.length; i++) { 6907 var source = arguments[i]; 6908 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 6909 } 6910 return target; 6911 }, _createClass = function() { 6912 function defineProperties(target, props) { 6913 for (var i = 0; i < props.length; i++) { 6914 var descriptor = props[i]; 6915 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 6916 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 6917 } 6918 } 6919 return function(Constructor, protoProps, staticProps) { 6920 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 6921 Constructor; 6922 }; 6923 }(), renderContent = function(content, props) { 6924 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); 6925 }, ICON_TYPES = __WEBPACK_IMPORTED_MODULE_6__util_ReactUtils__.b.filter(function(type) { 6926 return "none" !== type; 6927 }), Legend = Object(__WEBPACK_IMPORTED_MODULE_3__util_PureRender__.a)((_temp2 = _class2 = function(_Component) { 6928 function Legend() { 6929 var _ref, _temp, _this, _ret; 6930 _classCallCheck(this, Legend); 6931 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 6932 return _temp = _this = _possibleConstructorReturn(this, (_ref = Legend.__proto__ || Object.getPrototypeOf(Legend)).call.apply(_ref, [ this ].concat(args))), 6933 _this.state = { 6934 boxWidth: -1, 6935 boxHeight: -1 6936 }, _ret = _temp, _possibleConstructorReturn(_this, _ret); 6937 } 6938 return _inherits(Legend, _Component), _createClass(Legend, [ { 6939 key: "componentDidMount", 6940 value: function() { 6941 this.updateBBox(); 6942 } 6943 }, { 6944 key: "componentDidUpdate", 6945 value: function() { 6946 this.updateBBox(); 6947 } 6948 }, { 6949 key: "getBBox", 6950 value: function() { 6951 var _state = this.state, boxWidth = _state.boxWidth, boxHeight = _state.boxHeight; 6952 return boxWidth >= 0 && boxHeight >= 0 ? { 6953 width: boxWidth, 6954 height: boxHeight 6955 } : null; 6956 } 6957 }, { 6958 key: "getDefaultPosition", 6959 value: function(style) { 6960 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; 6961 if (!style || (void 0 === style.left || null === style.left) && (void 0 === style.right || null === style.right)) if ("center" === align && "vertical" === layout) { 6962 var box = this.getBBox() || { 6963 width: 0 6964 }; 6965 hPos = { 6966 left: ((chartWidth || 0) - box.width) / 2 6967 }; 6968 } else hPos = "right" === align ? { 6969 right: margin && margin.right || 0 6970 } : { 6971 left: margin && margin.left || 0 6972 }; 6973 if (!style || (void 0 === style.top || null === style.top) && (void 0 === style.bottom || null === style.bottom)) if ("middle" === verticalAlign) { 6974 var _box = this.getBBox() || { 6975 height: 0 6976 }; 6977 vPos = { 6978 top: ((chartHeight || 0) - _box.height) / 2 6979 }; 6980 } else vPos = "bottom" === verticalAlign ? { 6981 bottom: margin && margin.bottom || 0 6982 } : { 6983 top: margin && margin.top || 0 6984 }; 6985 return _extends({}, hPos, vPos); 6986 } 6987 }, { 6988 key: "updateBBox", 6989 value: function() { 6990 var _state2 = this.state, boxWidth = _state2.boxWidth, boxHeight = _state2.boxHeight, onBBoxUpdate = this.props.onBBoxUpdate; 6991 if (this.wrapperNode && this.wrapperNode.getBoundingClientRect) { 6992 var box = this.wrapperNode.getBoundingClientRect(); 6993 (Math.abs(box.width - boxWidth) > 1 || Math.abs(box.height - boxHeight) > 1) && this.setState({ 6994 boxWidth: box.width, 6995 boxHeight: box.height 6996 }, function() { 6997 onBBoxUpdate && onBBoxUpdate(box); 6998 }); 6999 } else -1 === boxWidth && -1 === boxHeight || this.setState({ 7000 boxWidth: -1, 7001 boxHeight: -1 7002 }, function() { 7003 onBBoxUpdate && onBBoxUpdate(null); 7004 }); 7005 } 7006 }, { 7007 key: "render", 7008 value: function() { 7009 var _this2 = this, _props2 = this.props, content = _props2.content, width = _props2.width, height = _props2.height, wrapperStyle = _props2.wrapperStyle, outerStyle = _extends({ 7010 position: "absolute", 7011 width: width || "auto", 7012 height: height || "auto" 7013 }, this.getDefaultPosition(wrapperStyle), wrapperStyle); 7014 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("div", { 7015 className: "recharts-legend-wrapper", 7016 style: outerStyle, 7017 ref: function(node) { 7018 _this2.wrapperNode = node; 7019 } 7020 }, renderContent(content, this.props)); 7021 } 7022 } ], [ { 7023 key: "getWithHeight", 7024 value: function(item, chartWidth) { 7025 var layout = item.props.layout; 7026 return "vertical" === layout && Object(__WEBPACK_IMPORTED_MODULE_5__util_DataUtils__.h)(item.props.height) ? { 7027 height: item.props.height 7028 } : "horizontal" === layout ? { 7029 width: item.props.width || chartWidth 7030 } : null; 7031 } 7032 } ]), Legend; 7033 }(__WEBPACK_IMPORTED_MODULE_1_react__.Component), _class2.displayName = "Legend", 7034 _class2.propTypes = { 7035 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 ]), 7036 wrapperStyle: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object, 7037 chartWidth: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 7038 chartHeight: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 7039 width: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 7040 height: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 7041 iconSize: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 7042 iconType: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOf(ICON_TYPES), 7043 layout: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOf([ "horizontal", "vertical" ]), 7044 align: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOf([ "center", "left", "right" ]), 7045 verticalAlign: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOf([ "top", "bottom", "middle" ]), 7046 margin: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.shape({ 7047 top: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 7048 left: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 7049 bottom: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 7050 right: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number 7051 }), 7052 payload: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.shape({ 7053 value: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.any, 7054 id: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.any, 7055 type: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOf(__WEBPACK_IMPORTED_MODULE_6__util_ReactUtils__.b) 7056 })), 7057 formatter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, 7058 onMouseEnter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, 7059 onMouseLeave: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, 7060 onClick: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, 7061 onBBoxUpdate: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func 7062 }, _class2.defaultProps = { 7063 iconSize: 14, 7064 layout: "horizontal", 7065 align: "center", 7066 verticalAlign: "bottom" 7067 }, _class = _temp2)) || _class; 7068 __webpack_exports__.a = Legend; 7069 }, function(module, __webpack_exports__, __webpack_require__) { 7070 "use strict"; 7071 function _classCallCheck(instance, Constructor) { 7072 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 7073 } 7074 function _possibleConstructorReturn(self, call) { 7075 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 7076 return !call || "object" != typeof call && "function" != typeof call ? self : call; 7077 } 7078 function _inherits(subClass, superClass) { 7079 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 7080 subClass.prototype = Object.create(superClass && superClass.prototype, { 7081 constructor: { 7082 value: subClass, 7083 enumerable: !1, 7084 writable: !0, 7085 configurable: !0 7086 } 7087 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 7088 } 7089 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) { 7090 for (var i = 1; i < arguments.length; i++) { 7091 var source = arguments[i]; 7092 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 7093 } 7094 return target; 7095 }, _createClass = function() { 7096 function defineProperties(target, props) { 7097 for (var i = 0; i < props.length; i++) { 7098 var descriptor = props[i]; 7099 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 7100 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 7101 } 7102 } 7103 return function(Constructor, protoProps, staticProps) { 7104 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 7105 Constructor; 7106 }; 7107 }(), SYMBOL_FACTORIES = { 7108 symbolCircle: __WEBPACK_IMPORTED_MODULE_2_d3_shape__.u, 7109 symbolCross: __WEBPACK_IMPORTED_MODULE_2_d3_shape__.v, 7110 symbolDiamond: __WEBPACK_IMPORTED_MODULE_2_d3_shape__.w, 7111 symbolSquare: __WEBPACK_IMPORTED_MODULE_2_d3_shape__.x, 7112 symbolStar: __WEBPACK_IMPORTED_MODULE_2_d3_shape__.y, 7113 symbolTriangle: __WEBPACK_IMPORTED_MODULE_2_d3_shape__.z, 7114 symbolWye: __WEBPACK_IMPORTED_MODULE_2_d3_shape__.A 7115 }, RADIAN = Math.PI / 180, getSymbolFactory = function(type) { 7116 var name = "symbol" + type.slice(0, 1).toUpperCase() + type.slice(1); 7117 return SYMBOL_FACTORIES[name] || __WEBPACK_IMPORTED_MODULE_2_d3_shape__.u; 7118 }, calculateAreaSize = function(size, sizeType, type) { 7119 if ("area" === sizeType) return size; 7120 switch (type) { 7121 case "cross": 7122 return 5 * size * size / 9; 7123 7124 case "diamond": 7125 return .5 * size * size / Math.sqrt(3); 7126 7127 case "square": 7128 return size * size; 7129 7130 case "star": 7131 var angle = 18 * RADIAN; 7132 return 1.25 * size * size * (Math.tan(angle) - Math.tan(2 * angle) * Math.pow(Math.tan(angle), 2)); 7133 7134 case "triangle": 7135 return Math.sqrt(3) * size * size / 4; 7136 7137 case "wye": 7138 return (21 - 10 * Math.sqrt(3)) * size * size / 8; 7139 7140 default: 7141 return Math.PI * size * size / 4; 7142 } 7143 }, Symbols = Object(__WEBPACK_IMPORTED_MODULE_4__util_PureRender__.a)((_temp = _class2 = function(_Component) { 7144 function Symbols() { 7145 return _classCallCheck(this, Symbols), _possibleConstructorReturn(this, (Symbols.__proto__ || Object.getPrototypeOf(Symbols)).apply(this, arguments)); 7146 } 7147 return _inherits(Symbols, _Component), _createClass(Symbols, [ { 7148 key: "getPath", 7149 value: function() { 7150 var _props = this.props, size = _props.size, sizeType = _props.sizeType, type = _props.type, symbolFactory = getSymbolFactory(type); 7151 return Object(__WEBPACK_IMPORTED_MODULE_2_d3_shape__.t)().type(symbolFactory).size(calculateAreaSize(size, sizeType, type))(); 7152 } 7153 }, { 7154 key: "render", 7155 value: function() { 7156 var _props2 = this.props, className = _props2.className, cx = _props2.cx, cy = _props2.cy, size = _props2.size; 7157 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), { 7158 className: __WEBPACK_IMPORTED_MODULE_3_classnames___default()("recharts-symbols", className), 7159 transform: "translate(" + cx + ", " + cy + ")", 7160 d: this.getPath() 7161 })) : null; 7162 } 7163 } ]), Symbols; 7164 }(__WEBPACK_IMPORTED_MODULE_0_react__.Component), _class2.displayName = "Symbols", 7165 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__.c, { 7166 className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, 7167 type: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf([ "circle", "cross", "diamond", "square", "star", "triangle", "wye" ]), 7168 cx: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 7169 cy: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 7170 size: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 7171 sizeType: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf([ "area", "diameter" ]) 7172 }), _class2.defaultProps = { 7173 type: "circle", 7174 size: 64, 7175 sizeType: "area" 7176 }, _class = _temp)) || _class; 7177 __webpack_exports__.a = Symbols; 7178 }, function(module, __webpack_exports__, __webpack_require__) { 7179 "use strict"; 7180 var __WEBPACK_IMPORTED_MODULE_1__src_area__ = (__webpack_require__(632), __webpack_require__(273)); 7181 __webpack_require__.d(__webpack_exports__, "a", function() { 7182 return __WEBPACK_IMPORTED_MODULE_1__src_area__.a; 7183 }); 7184 var __WEBPACK_IMPORTED_MODULE_2__src_line__ = __webpack_require__(183); 7185 __webpack_require__.d(__webpack_exports__, "m", function() { 7186 return __WEBPACK_IMPORTED_MODULE_2__src_line__.a; 7187 }); 7188 var __WEBPACK_IMPORTED_MODULE_8__src_symbol__ = (__webpack_require__(634), __webpack_require__(637), 7189 __webpack_require__(275), __webpack_require__(276), __webpack_require__(638), __webpack_require__(639)); 7190 __webpack_require__.d(__webpack_exports__, "t", function() { 7191 return __WEBPACK_IMPORTED_MODULE_8__src_symbol__.a; 7192 }); 7193 var __WEBPACK_IMPORTED_MODULE_9__src_symbol_circle__ = __webpack_require__(278); 7194 __webpack_require__.d(__webpack_exports__, "u", function() { 7195 return __WEBPACK_IMPORTED_MODULE_9__src_symbol_circle__.a; 7196 }); 7197 var __WEBPACK_IMPORTED_MODULE_10__src_symbol_cross__ = __webpack_require__(279); 7198 __webpack_require__.d(__webpack_exports__, "v", function() { 7199 return __WEBPACK_IMPORTED_MODULE_10__src_symbol_cross__.a; 7200 }); 7201 var __WEBPACK_IMPORTED_MODULE_11__src_symbol_diamond__ = __webpack_require__(280); 7202 __webpack_require__.d(__webpack_exports__, "w", function() { 7203 return __WEBPACK_IMPORTED_MODULE_11__src_symbol_diamond__.a; 7204 }); 7205 var __WEBPACK_IMPORTED_MODULE_12__src_symbol_square__ = __webpack_require__(282); 7206 __webpack_require__.d(__webpack_exports__, "x", function() { 7207 return __WEBPACK_IMPORTED_MODULE_12__src_symbol_square__.a; 7208 }); 7209 var __WEBPACK_IMPORTED_MODULE_13__src_symbol_star__ = __webpack_require__(281); 7210 __webpack_require__.d(__webpack_exports__, "y", function() { 7211 return __WEBPACK_IMPORTED_MODULE_13__src_symbol_star__.a; 7212 }); 7213 var __WEBPACK_IMPORTED_MODULE_14__src_symbol_triangle__ = __webpack_require__(283); 7214 __webpack_require__.d(__webpack_exports__, "z", function() { 7215 return __WEBPACK_IMPORTED_MODULE_14__src_symbol_triangle__.a; 7216 }); 7217 var __WEBPACK_IMPORTED_MODULE_15__src_symbol_wye__ = __webpack_require__(284); 7218 __webpack_require__.d(__webpack_exports__, "A", function() { 7219 return __WEBPACK_IMPORTED_MODULE_15__src_symbol_wye__.a; 7220 }); 7221 var __WEBPACK_IMPORTED_MODULE_16__src_curve_basisClosed__ = __webpack_require__(640); 7222 __webpack_require__.d(__webpack_exports__, "c", function() { 7223 return __WEBPACK_IMPORTED_MODULE_16__src_curve_basisClosed__.a; 7224 }); 7225 var __WEBPACK_IMPORTED_MODULE_17__src_curve_basisOpen__ = __webpack_require__(641); 7226 __webpack_require__.d(__webpack_exports__, "d", function() { 7227 return __WEBPACK_IMPORTED_MODULE_17__src_curve_basisOpen__.a; 7228 }); 7229 var __WEBPACK_IMPORTED_MODULE_18__src_curve_basis__ = __webpack_require__(123); 7230 __webpack_require__.d(__webpack_exports__, "b", function() { 7231 return __WEBPACK_IMPORTED_MODULE_18__src_curve_basis__.b; 7232 }); 7233 var __WEBPACK_IMPORTED_MODULE_26__src_curve_linearClosed__ = (__webpack_require__(642), 7234 __webpack_require__(285), __webpack_require__(286), __webpack_require__(124), __webpack_require__(643), 7235 __webpack_require__(644), __webpack_require__(185), __webpack_require__(645)); 7236 __webpack_require__.d(__webpack_exports__, "f", function() { 7237 return __WEBPACK_IMPORTED_MODULE_26__src_curve_linearClosed__.a; 7238 }); 7239 var __WEBPACK_IMPORTED_MODULE_27__src_curve_linear__ = __webpack_require__(121); 7240 __webpack_require__.d(__webpack_exports__, "e", function() { 7241 return __WEBPACK_IMPORTED_MODULE_27__src_curve_linear__.a; 7242 }); 7243 var __WEBPACK_IMPORTED_MODULE_28__src_curve_monotone__ = __webpack_require__(646); 7244 __webpack_require__.d(__webpack_exports__, "g", function() { 7245 return __WEBPACK_IMPORTED_MODULE_28__src_curve_monotone__.a; 7246 }), __webpack_require__.d(__webpack_exports__, "h", function() { 7247 return __WEBPACK_IMPORTED_MODULE_28__src_curve_monotone__.b; 7248 }); 7249 var __WEBPACK_IMPORTED_MODULE_29__src_curve_natural__ = __webpack_require__(647); 7250 __webpack_require__.d(__webpack_exports__, "i", function() { 7251 return __WEBPACK_IMPORTED_MODULE_29__src_curve_natural__.a; 7252 }); 7253 var __WEBPACK_IMPORTED_MODULE_30__src_curve_step__ = __webpack_require__(648); 7254 __webpack_require__.d(__webpack_exports__, "j", function() { 7255 return __WEBPACK_IMPORTED_MODULE_30__src_curve_step__.a; 7256 }), __webpack_require__.d(__webpack_exports__, "k", function() { 7257 return __WEBPACK_IMPORTED_MODULE_30__src_curve_step__.b; 7258 }), __webpack_require__.d(__webpack_exports__, "l", function() { 7259 return __WEBPACK_IMPORTED_MODULE_30__src_curve_step__.c; 7260 }); 7261 var __WEBPACK_IMPORTED_MODULE_31__src_stack__ = __webpack_require__(649); 7262 __webpack_require__.d(__webpack_exports__, "n", function() { 7263 return __WEBPACK_IMPORTED_MODULE_31__src_stack__.a; 7264 }); 7265 var __WEBPACK_IMPORTED_MODULE_32__src_offset_expand__ = __webpack_require__(650); 7266 __webpack_require__.d(__webpack_exports__, "o", function() { 7267 return __WEBPACK_IMPORTED_MODULE_32__src_offset_expand__.a; 7268 }); 7269 var __WEBPACK_IMPORTED_MODULE_34__src_offset_none__ = (__webpack_require__(651), 7270 __webpack_require__(86)); 7271 __webpack_require__.d(__webpack_exports__, "p", function() { 7272 return __WEBPACK_IMPORTED_MODULE_34__src_offset_none__.a; 7273 }); 7274 var __WEBPACK_IMPORTED_MODULE_35__src_offset_silhouette__ = __webpack_require__(652); 7275 __webpack_require__.d(__webpack_exports__, "q", function() { 7276 return __WEBPACK_IMPORTED_MODULE_35__src_offset_silhouette__.a; 7277 }); 7278 var __WEBPACK_IMPORTED_MODULE_36__src_offset_wiggle__ = __webpack_require__(653); 7279 __webpack_require__.d(__webpack_exports__, "r", function() { 7280 return __WEBPACK_IMPORTED_MODULE_36__src_offset_wiggle__.a; 7281 }); 7282 var __WEBPACK_IMPORTED_MODULE_40__src_order_none__ = (__webpack_require__(186), 7283 __webpack_require__(654), __webpack_require__(655), __webpack_require__(87)); 7284 __webpack_require__.d(__webpack_exports__, "s", function() { 7285 return __WEBPACK_IMPORTED_MODULE_40__src_order_none__.a; 7286 }); 7287 __webpack_require__(656); 7288 }, function(module, __webpack_exports__, __webpack_require__) { 7289 "use strict"; 7290 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); 7291 __webpack_exports__.a = function() { 7292 function line(data) { 7293 var i, d, buffer, n = data.length, defined0 = !1; 7294 for (null == context && (output = curve(buffer = Object(__WEBPACK_IMPORTED_MODULE_0_d3_path__.a)())), 7295 i = 0; i <= n; ++i) !(i < n && defined(d = data[i], i, data)) === defined0 && ((defined0 = !defined0) ? output.lineStart() : output.lineEnd()), 7296 defined0 && output.point(+x(d, i, data), +y(d, i, data)); 7297 if (buffer) return output = null, buffer + "" || null; 7298 } 7299 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; 7300 return line.x = function(_) { 7301 return arguments.length ? (x = "function" == typeof _ ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__.a)(+_), 7302 line) : x; 7303 }, line.y = function(_) { 7304 return arguments.length ? (y = "function" == typeof _ ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__.a)(+_), 7305 line) : y; 7306 }, line.defined = function(_) { 7307 return arguments.length ? (defined = "function" == typeof _ ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__.a)(!!_), 7308 line) : defined; 7309 }, line.curve = function(_) { 7310 return arguments.length ? (curve = _, null != context && (output = curve(context)), 7311 line) : curve; 7312 }, line.context = function(_) { 7313 return arguments.length ? (null == _ ? context = output = null : output = curve(context = _), 7314 line) : context; 7315 }, line; 7316 }; 7317 }, function(module, __webpack_exports__, __webpack_require__) { 7318 "use strict"; 7319 function x(p) { 7320 return p[0]; 7321 } 7322 function y(p) { 7323 return p[1]; 7324 } 7325 __webpack_exports__.a = x, __webpack_exports__.b = y; 7326 }, function(module, __webpack_exports__, __webpack_require__) { 7327 "use strict"; 7328 function point(that, x, y) { 7329 var x1 = that._x1, y1 = that._y1, x2 = that._x2, y2 = that._y2; 7330 if (that._l01_a > __WEBPACK_IMPORTED_MODULE_0__math__.f) { 7331 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); 7332 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; 7333 } 7334 if (that._l23_a > __WEBPACK_IMPORTED_MODULE_0__math__.f) { 7335 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); 7336 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; 7337 } 7338 that._context.bezierCurveTo(x1, y1, x2, y2, that._x2, that._y2); 7339 } 7340 function CatmullRom(context, alpha) { 7341 this._context = context, this._alpha = alpha; 7342 } 7343 __webpack_exports__.a = point; 7344 var __WEBPACK_IMPORTED_MODULE_0__math__ = __webpack_require__(85), __WEBPACK_IMPORTED_MODULE_1__cardinal__ = __webpack_require__(124); 7345 CatmullRom.prototype = { 7346 areaStart: function() { 7347 this._line = 0; 7348 }, 7349 areaEnd: function() { 7350 this._line = NaN; 7351 }, 7352 lineStart: function() { 7353 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; 7354 }, 7355 lineEnd: function() { 7356 switch (this._point) { 7357 case 2: 7358 this._context.lineTo(this._x2, this._y2); 7359 break; 7360 7361 case 3: 7362 this.point(this._x2, this._y2); 7363 } 7364 (this._line || 0 !== this._line && 1 === this._point) && this._context.closePath(), 7365 this._line = 1 - this._line; 7366 }, 7367 point: function(x, y) { 7368 if (x = +x, y = +y, this._point) { 7369 var x23 = this._x2 - x, y23 = this._y2 - y; 7370 this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha)); 7371 } 7372 switch (this._point) { 7373 case 0: 7374 this._point = 1, this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); 7375 break; 7376 7377 case 1: 7378 this._point = 2; 7379 break; 7380 7381 case 2: 7382 this._point = 3; 7383 7384 default: 7385 point(this, x, y); 7386 } 7387 this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, 7388 this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = x, 7389 this._y0 = this._y1, this._y1 = this._y2, this._y2 = y; 7390 } 7391 }; 7392 !function custom(alpha) { 7393 function catmullRom(context) { 7394 return alpha ? new CatmullRom(context, alpha) : new __WEBPACK_IMPORTED_MODULE_1__cardinal__.a(context, 0); 7395 } 7396 return catmullRom.alpha = function(alpha) { 7397 return custom(+alpha); 7398 }, catmullRom; 7399 }(.5); 7400 }, function(module, __webpack_exports__, __webpack_require__) { 7401 "use strict"; 7402 function sum(series) { 7403 for (var v, s = 0, i = -1, n = series.length; ++i < n; ) (v = +series[i][1]) && (s += v); 7404 return s; 7405 } 7406 __webpack_exports__.b = sum; 7407 var __WEBPACK_IMPORTED_MODULE_0__none__ = __webpack_require__(87); 7408 __webpack_exports__.a = function(series) { 7409 var sums = series.map(sum); 7410 return Object(__WEBPACK_IMPORTED_MODULE_0__none__.a)(series).sort(function(a, b) { 7411 return sums[a] - sums[b]; 7412 }); 7413 }; 7414 }, function(module, exports, __webpack_require__) { 7415 function baseIsEqual(value, other, bitmask, customizer, stack) { 7416 return value === other || (null == value || null == other || !isObjectLike(value) && !isObjectLike(other) ? value !== value && other !== other : baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack)); 7417 } 7418 var baseIsEqualDeep = __webpack_require__(657), isObjectLike = __webpack_require__(43); 7419 module.exports = baseIsEqual; 7420 }, function(module, exports, __webpack_require__) { 7421 var getNative = __webpack_require__(59), root = __webpack_require__(36), Map = getNative(root, "Map"); 7422 module.exports = Map; 7423 }, function(module, exports) { 7424 function isObject(value) { 7425 var type = typeof value; 7426 return null != value && ("object" == type || "function" == type); 7427 } 7428 module.exports = isObject; 7429 }, function(module, exports, __webpack_require__) { 7430 function MapCache(entries) { 7431 var index = -1, length = null == entries ? 0 : entries.length; 7432 for (this.clear(); ++index < length; ) { 7433 var entry = entries[index]; 7434 this.set(entry[0], entry[1]); 7435 } 7436 } 7437 var mapCacheClear = __webpack_require__(674), mapCacheDelete = __webpack_require__(681), mapCacheGet = __webpack_require__(683), mapCacheHas = __webpack_require__(684), mapCacheSet = __webpack_require__(685); 7438 MapCache.prototype.clear = mapCacheClear, MapCache.prototype.delete = mapCacheDelete, 7439 MapCache.prototype.get = mapCacheGet, MapCache.prototype.has = mapCacheHas, MapCache.prototype.set = mapCacheSet, 7440 module.exports = MapCache; 7441 }, function(module, exports, __webpack_require__) { 7442 function keys(object) { 7443 return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); 7444 } 7445 var arrayLikeKeys = __webpack_require__(699), baseKeys = __webpack_require__(705), isArrayLike = __webpack_require__(193); 7446 module.exports = keys; 7447 }, function(module, exports) { 7448 function isLength(value) { 7449 return "number" == typeof value && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; 7450 } 7451 var MAX_SAFE_INTEGER = 9007199254740991; 7452 module.exports = isLength; 7453 }, function(module, exports, __webpack_require__) { 7454 function isArrayLike(value) { 7455 return null != value && isLength(value.length) && !isFunction(value); 7456 } 7457 var isFunction = __webpack_require__(291), isLength = __webpack_require__(192); 7458 module.exports = isArrayLike; 7459 }, function(module, exports) { 7460 function arrayMap(array, iteratee) { 7461 for (var index = -1, length = null == array ? 0 : array.length, result = Array(length); ++index < length; ) result[index] = iteratee(array[index], index, array); 7462 return result; 7463 } 7464 module.exports = arrayMap; 7465 }, function(module, exports) { 7466 function identity(value) { 7467 return value; 7468 } 7469 module.exports = identity; 7470 }, function(module, exports, __webpack_require__) { 7471 function isKey(value, object) { 7472 if (isArray(value)) return !1; 7473 var type = typeof value; 7474 return !("number" != type && "symbol" != type && "boolean" != type && null != value && !isSymbol(value)) || (reIsPlainProp.test(value) || !reIsDeepProp.test(value) || null != object && value in Object(object)); 7475 } 7476 var isArray = __webpack_require__(34), isSymbol = __webpack_require__(197), reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/; 7477 module.exports = isKey; 7478 }, function(module, exports, __webpack_require__) { 7479 function isSymbol(value) { 7480 return "symbol" == typeof value || isObjectLike(value) && baseGetTag(value) == symbolTag; 7481 } 7482 var baseGetTag = __webpack_require__(60), isObjectLike = __webpack_require__(43), symbolTag = "[object Symbol]"; 7483 module.exports = isSymbol; 7484 }, function(module, __webpack_exports__, __webpack_require__) { 7485 "use strict"; 7486 function _toConsumableArray(arr) { 7487 if (Array.isArray(arr)) { 7488 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; 7489 return arr2; 7490 } 7491 return Array.from(arr); 7492 } 7493 function autoCompleteStyle(name, value) { 7494 return STYLE_LIST.indexOf(name) >= 0 && value === +value ? value + "px" : value; 7495 } 7496 function camelToMiddleLine(text) { 7497 return text.split("").reduce(function(result, entry) { 7498 return entry === entry.toUpperCase() ? [].concat(_toConsumableArray(result), [ "-", entry.toLowerCase() ]) : [].concat(_toConsumableArray(result), [ entry ]); 7499 }, []).join(""); 7500 } 7501 __webpack_require__.d(__webpack_exports__, "c", function() { 7502 return getStringSize; 7503 }), __webpack_require__.d(__webpack_exports__, "b", function() { 7504 return getOffset; 7505 }), __webpack_require__.d(__webpack_exports__, "a", function() { 7506 return calculateChartCoordinate; 7507 }); 7508 var __WEBPACK_IMPORTED_MODULE_0__ReactUtils__ = __webpack_require__(4), _extends = Object.assign || function(target) { 7509 for (var i = 1; i < arguments.length; i++) { 7510 var source = arguments[i]; 7511 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 7512 } 7513 return target; 7514 }, stringCache = { 7515 widthCache: {}, 7516 cacheCount: 0 7517 }, SPAN_STYLE = { 7518 position: "absolute", 7519 top: "-20000px", 7520 left: 0, 7521 padding: 0, 7522 margin: 0, 7523 border: "none", 7524 whiteSpace: "pre" 7525 }, 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) { 7526 return Object.keys(style).reduce(function(result, s) { 7527 return "" + result + camelToMiddleLine(s) + ":" + autoCompleteStyle(s, style[s]) + ";"; 7528 }, ""); 7529 }, getStringSize = function(text) { 7530 var style = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; 7531 if (void 0 === text || null === text || Object(__WEBPACK_IMPORTED_MODULE_0__ReactUtils__.n)()) return { 7532 width: 0, 7533 height: 0 7534 }; 7535 var str = "" + text, styleString = getStyleString(style), cacheKey = str + "-" + styleString; 7536 if (stringCache.widthCache[cacheKey]) return stringCache.widthCache[cacheKey]; 7537 try { 7538 var measurementSpan = document.getElementById("recharts_measurement_span"); 7539 measurementSpan || (measurementSpan = document.createElement("span"), measurementSpan.setAttribute("id", "recharts_measurement_span"), 7540 document.body.appendChild(measurementSpan)); 7541 var measurementSpanStyle = _extends({}, SPAN_STYLE, style); 7542 Object.keys(measurementSpanStyle).map(function(styleKey) { 7543 return measurementSpan.style[styleKey] = measurementSpanStyle[styleKey], styleKey; 7544 }), measurementSpan.textContent = str; 7545 var rect = measurementSpan.getBoundingClientRect(), result = { 7546 width: rect.width, 7547 height: rect.height 7548 }; 7549 return stringCache.widthCache[cacheKey] = result, ++stringCache.cacheCount > 2e3 && (stringCache.cacheCount = 0, 7550 stringCache.widthCache = {}), result; 7551 } catch (e) { 7552 return { 7553 width: 0, 7554 height: 0 7555 }; 7556 } 7557 }, getOffset = function(el) { 7558 var html = el.ownerDocument.documentElement, box = { 7559 top: 0, 7560 left: 0 7561 }; 7562 return void 0 !== el.getBoundingClientRect && (box = el.getBoundingClientRect()), 7563 { 7564 top: box.top + window.pageYOffset - html.clientTop, 7565 left: box.left + window.pageXOffset - html.clientLeft 7566 }; 7567 }, calculateChartCoordinate = function(event, offset) { 7568 return { 7569 chartX: Math.round(event.pageX - offset.left), 7570 chartY: Math.round(event.pageY - offset.top) 7571 }; 7572 }; 7573 }, function(module, exports, __webpack_require__) { 7574 function baseIsEqual(value, other, bitmask, customizer, stack) { 7575 return value === other || (null == value || null == other || !isObjectLike(value) && !isObjectLike(other) ? value !== value && other !== other : baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack)); 7576 } 7577 var baseIsEqualDeep = __webpack_require__(778), isObjectLike = __webpack_require__(42); 7578 module.exports = baseIsEqual; 7579 }, function(module, exports, __webpack_require__) { 7580 function keys(object) { 7581 return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); 7582 } 7583 var arrayLikeKeys = __webpack_require__(799), baseKeys = __webpack_require__(805), isArrayLike = __webpack_require__(134); 7584 module.exports = keys; 7585 }, function(module, exports, __webpack_require__) { 7586 var baseIsArguments = __webpack_require__(801), isObjectLike = __webpack_require__(42), objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty, propertyIsEnumerable = objectProto.propertyIsEnumerable, isArguments = baseIsArguments(function() { 7587 return arguments; 7588 }()) ? baseIsArguments : function(value) { 7589 return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee"); 7590 }; 7591 module.exports = isArguments; 7592 }, function(module, exports) { 7593 function isIndex(value, length) { 7594 var type = typeof value; 7595 return !!(length = null == length ? MAX_SAFE_INTEGER : length) && ("number" == type || "symbol" != type && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length; 7596 } 7597 var MAX_SAFE_INTEGER = 9007199254740991, reIsUint = /^(?:0|[1-9]\d*)$/; 7598 module.exports = isIndex; 7599 }, function(module, exports) { 7600 function isLength(value) { 7601 return "number" == typeof value && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; 7602 } 7603 var MAX_SAFE_INTEGER = 9007199254740991; 7604 module.exports = isLength; 7605 }, function(module, __webpack_exports__, __webpack_require__) { 7606 "use strict"; 7607 var __WEBPACK_IMPORTED_MODULE_0__number__ = __webpack_require__(90); 7608 __webpack_exports__.a = function(values, p, valueof) { 7609 if (null == valueof && (valueof = __WEBPACK_IMPORTED_MODULE_0__number__.a), n = values.length) { 7610 if ((p = +p) <= 0 || n < 2) return +valueof(values[0], 0, values); 7611 if (p >= 1) return +valueof(values[n - 1], n - 1, values); 7612 var n, i = (n - 1) * p, i0 = Math.floor(i), value0 = +valueof(values[i0], i0, values); 7613 return value0 + (+valueof(values[i0 + 1], i0 + 1, values) - value0) * (i - i0); 7614 } 7615 }; 7616 }, function(module, __webpack_exports__, __webpack_require__) { 7617 "use strict"; 7618 function Map() {} 7619 function map(object, f) { 7620 var map = new Map(); 7621 if (object instanceof Map) object.each(function(value, key) { 7622 map.set(key, value); 7623 }); else if (Array.isArray(object)) { 7624 var o, i = -1, n = object.length; 7625 if (null == f) for (;++i < n; ) map.set(i, object[i]); else for (;++i < n; ) map.set(f(o = object[i], i, object), o); 7626 } else if (object) for (var key in object) map.set(key, object[key]); 7627 return map; 7628 } 7629 __webpack_require__.d(__webpack_exports__, "b", function() { 7630 return prefix; 7631 }); 7632 var prefix = "$"; 7633 Map.prototype = map.prototype = { 7634 constructor: Map, 7635 has: function(key) { 7636 return prefix + key in this; 7637 }, 7638 get: function(key) { 7639 return this[prefix + key]; 7640 }, 7641 set: function(key, value) { 7642 return this[prefix + key] = value, this; 7643 }, 7644 remove: function(key) { 7645 var property = prefix + key; 7646 return property in this && delete this[property]; 7647 }, 7648 clear: function() { 7649 for (var property in this) property[0] === prefix && delete this[property]; 7650 }, 7651 keys: function() { 7652 var keys = []; 7653 for (var property in this) property[0] === prefix && keys.push(property.slice(1)); 7654 return keys; 7655 }, 7656 values: function() { 7657 var values = []; 7658 for (var property in this) property[0] === prefix && values.push(this[property]); 7659 return values; 7660 }, 7661 entries: function() { 7662 var entries = []; 7663 for (var property in this) property[0] === prefix && entries.push({ 7664 key: property.slice(1), 7665 value: this[property] 7666 }); 7667 return entries; 7668 }, 7669 size: function() { 7670 var size = 0; 7671 for (var property in this) property[0] === prefix && ++size; 7672 return size; 7673 }, 7674 empty: function() { 7675 for (var property in this) if (property[0] === prefix) return !1; 7676 return !0; 7677 }, 7678 each: function(f) { 7679 for (var property in this) property[0] === prefix && f(this[property], property.slice(1), this); 7680 } 7681 }, __webpack_exports__.a = map; 7682 }, function(module, __webpack_exports__, __webpack_require__) { 7683 "use strict"; 7684 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); 7685 __webpack_exports__.a = function(a, b) { 7686 var c, t = typeof b; 7687 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, 7688 __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); 7689 }; 7690 }, function(module, __webpack_exports__, __webpack_require__) { 7691 "use strict"; 7692 function Color() {} 7693 function color(format) { 7694 var m; 7695 return format = (format + "").trim().toLowerCase(), (m = reHex3.exec(format)) ? (m = parseInt(m[1], 16), 7696 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; 7697 } 7698 function rgbn(n) { 7699 return new Rgb(n >> 16 & 255, n >> 8 & 255, 255 & n, 1); 7700 } 7701 function rgba(r, g, b, a) { 7702 return a <= 0 && (r = g = b = NaN), new Rgb(r, g, b, a); 7703 } 7704 function rgbConvert(o) { 7705 return o instanceof Color || (o = color(o)), o ? (o = o.rgb(), new Rgb(o.r, o.g, o.b, o.opacity)) : new Rgb(); 7706 } 7707 function rgb(r, g, b, opacity) { 7708 return 1 === arguments.length ? rgbConvert(r) : new Rgb(r, g, b, null == opacity ? 1 : opacity); 7709 } 7710 function Rgb(r, g, b, opacity) { 7711 this.r = +r, this.g = +g, this.b = +b, this.opacity = +opacity; 7712 } 7713 function hsla(h, s, l, a) { 7714 return a <= 0 ? h = s = l = NaN : l <= 0 || l >= 1 ? h = s = NaN : s <= 0 && (h = NaN), 7715 new Hsl(h, s, l, a); 7716 } 7717 function hslConvert(o) { 7718 if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity); 7719 if (o instanceof Color || (o = color(o)), !o) return new Hsl(); 7720 if (o instanceof Hsl) return o; 7721 o = o.rgb(); 7722 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; 7723 return s ? (h = r === max ? (g - b) / s + 6 * (g < b) : g === max ? (b - r) / s + 2 : (r - g) / s + 4, 7724 s /= l < .5 ? max + min : 2 - max - min, h *= 60) : s = l > 0 && l < 1 ? 0 : h, 7725 new Hsl(h, s, l, o.opacity); 7726 } 7727 function hsl(h, s, l, opacity) { 7728 return 1 === arguments.length ? hslConvert(h) : new Hsl(h, s, l, null == opacity ? 1 : opacity); 7729 } 7730 function Hsl(h, s, l, opacity) { 7731 this.h = +h, this.s = +s, this.l = +l, this.opacity = +opacity; 7732 } 7733 function hsl2rgb(h, m1, m2) { 7734 return 255 * (h < 60 ? m1 + (m2 - m1) * h / 60 : h < 180 ? m2 : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 : m1); 7735 } 7736 __webpack_exports__.a = Color, __webpack_require__.d(__webpack_exports__, "d", function() { 7737 return darker; 7738 }), __webpack_require__.d(__webpack_exports__, "c", function() { 7739 return brighter; 7740 }), __webpack_exports__.e = color, __webpack_exports__.h = rgbConvert, __webpack_exports__.g = rgb, 7741 __webpack_exports__.b = Rgb, __webpack_exports__.f = hsl; 7742 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 = { 7743 aliceblue: 15792383, 7744 antiquewhite: 16444375, 7745 aqua: 65535, 7746 aquamarine: 8388564, 7747 azure: 15794175, 7748 beige: 16119260, 7749 bisque: 16770244, 7750 black: 0, 7751 blanchedalmond: 16772045, 7752 blue: 255, 7753 blueviolet: 9055202, 7754 brown: 10824234, 7755 burlywood: 14596231, 7756 cadetblue: 6266528, 7757 chartreuse: 8388352, 7758 chocolate: 13789470, 7759 coral: 16744272, 7760 cornflowerblue: 6591981, 7761 cornsilk: 16775388, 7762 crimson: 14423100, 7763 cyan: 65535, 7764 darkblue: 139, 7765 darkcyan: 35723, 7766 darkgoldenrod: 12092939, 7767 darkgray: 11119017, 7768 darkgreen: 25600, 7769 darkgrey: 11119017, 7770 darkkhaki: 12433259, 7771 darkmagenta: 9109643, 7772 darkolivegreen: 5597999, 7773 darkorange: 16747520, 7774 darkorchid: 10040012, 7775 darkred: 9109504, 7776 darksalmon: 15308410, 7777 darkseagreen: 9419919, 7778 darkslateblue: 4734347, 7779 darkslategray: 3100495, 7780 darkslategrey: 3100495, 7781 darkturquoise: 52945, 7782 darkviolet: 9699539, 7783 deeppink: 16716947, 7784 deepskyblue: 49151, 7785 dimgray: 6908265, 7786 dimgrey: 6908265, 7787 dodgerblue: 2003199, 7788 firebrick: 11674146, 7789 floralwhite: 16775920, 7790 forestgreen: 2263842, 7791 fuchsia: 16711935, 7792 gainsboro: 14474460, 7793 ghostwhite: 16316671, 7794 gold: 16766720, 7795 goldenrod: 14329120, 7796 gray: 8421504, 7797 green: 32768, 7798 greenyellow: 11403055, 7799 grey: 8421504, 7800 honeydew: 15794160, 7801 hotpink: 16738740, 7802 indianred: 13458524, 7803 indigo: 4915330, 7804 ivory: 16777200, 7805 khaki: 15787660, 7806 lavender: 15132410, 7807 lavenderblush: 16773365, 7808 lawngreen: 8190976, 7809 lemonchiffon: 16775885, 7810 lightblue: 11393254, 7811 lightcoral: 15761536, 7812 lightcyan: 14745599, 7813 lightgoldenrodyellow: 16448210, 7814 lightgray: 13882323, 7815 lightgreen: 9498256, 7816 lightgrey: 13882323, 7817 lightpink: 16758465, 7818 lightsalmon: 16752762, 7819 lightseagreen: 2142890, 7820 lightskyblue: 8900346, 7821 lightslategray: 7833753, 7822 lightslategrey: 7833753, 7823 lightsteelblue: 11584734, 7824 lightyellow: 16777184, 7825 lime: 65280, 7826 limegreen: 3329330, 7827 linen: 16445670, 7828 magenta: 16711935, 7829 maroon: 8388608, 7830 mediumaquamarine: 6737322, 7831 mediumblue: 205, 7832 mediumorchid: 12211667, 7833 mediumpurple: 9662683, 7834 mediumseagreen: 3978097, 7835 mediumslateblue: 8087790, 7836 mediumspringgreen: 64154, 7837 mediumturquoise: 4772300, 7838 mediumvioletred: 13047173, 7839 midnightblue: 1644912, 7840 mintcream: 16121850, 7841 mistyrose: 16770273, 7842 moccasin: 16770229, 7843 navajowhite: 16768685, 7844 navy: 128, 7845 oldlace: 16643558, 7846 olive: 8421376, 7847 olivedrab: 7048739, 7848 orange: 16753920, 7849 orangered: 16729344, 7850 orchid: 14315734, 7851 palegoldenrod: 15657130, 7852 palegreen: 10025880, 7853 paleturquoise: 11529966, 7854 palevioletred: 14381203, 7855 papayawhip: 16773077, 7856 peachpuff: 16767673, 7857 peru: 13468991, 7858 pink: 16761035, 7859 plum: 14524637, 7860 powderblue: 11591910, 7861 purple: 8388736, 7862 rebeccapurple: 6697881, 7863 red: 16711680, 7864 rosybrown: 12357519, 7865 royalblue: 4286945, 7866 saddlebrown: 9127187, 7867 salmon: 16416882, 7868 sandybrown: 16032864, 7869 seagreen: 3050327, 7870 seashell: 16774638, 7871 sienna: 10506797, 7872 silver: 12632256, 7873 skyblue: 8900331, 7874 slateblue: 6970061, 7875 slategray: 7372944, 7876 slategrey: 7372944, 7877 snow: 16775930, 7878 springgreen: 65407, 7879 steelblue: 4620980, 7880 tan: 13808780, 7881 teal: 32896, 7882 thistle: 14204888, 7883 tomato: 16737095, 7884 turquoise: 4251856, 7885 violet: 15631086, 7886 wheat: 16113331, 7887 white: 16777215, 7888 whitesmoke: 16119285, 7889 yellow: 16776960, 7890 yellowgreen: 10145074 7891 }; 7892 Object(__WEBPACK_IMPORTED_MODULE_0__define__.a)(Color, color, { 7893 displayable: function() { 7894 return this.rgb().displayable(); 7895 }, 7896 toString: function() { 7897 return this.rgb() + ""; 7898 } 7899 }), Object(__WEBPACK_IMPORTED_MODULE_0__define__.a)(Rgb, rgb, Object(__WEBPACK_IMPORTED_MODULE_0__define__.b)(Color, { 7900 brighter: function(k) { 7901 return k = null == k ? brighter : Math.pow(brighter, k), new Rgb(this.r * k, this.g * k, this.b * k, this.opacity); 7902 }, 7903 darker: function(k) { 7904 return k = null == k ? darker : Math.pow(darker, k), new Rgb(this.r * k, this.g * k, this.b * k, this.opacity); 7905 }, 7906 rgb: function() { 7907 return this; 7908 }, 7909 displayable: function() { 7910 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; 7911 }, 7912 toString: function() { 7913 var a = this.opacity; 7914 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 + ")"); 7915 } 7916 })), Object(__WEBPACK_IMPORTED_MODULE_0__define__.a)(Hsl, hsl, Object(__WEBPACK_IMPORTED_MODULE_0__define__.b)(Color, { 7917 brighter: function(k) { 7918 return k = null == k ? brighter : Math.pow(brighter, k), new Hsl(this.h, this.s, this.l * k, this.opacity); 7919 }, 7920 darker: function(k) { 7921 return k = null == k ? darker : Math.pow(darker, k), new Hsl(this.h, this.s, this.l * k, this.opacity); 7922 }, 7923 rgb: function() { 7924 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; 7925 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); 7926 }, 7927 displayable: function() { 7928 return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1; 7929 } 7930 })); 7931 }, function(module, __webpack_exports__, __webpack_require__) { 7932 "use strict"; 7933 function extend(parent, definition) { 7934 var prototype = Object.create(parent.prototype); 7935 for (var key in definition) prototype[key] = definition[key]; 7936 return prototype; 7937 } 7938 __webpack_exports__.b = extend, __webpack_exports__.a = function(constructor, factory, prototype) { 7939 constructor.prototype = factory.prototype = prototype, prototype.constructor = constructor; 7940 }; 7941 }, function(module, __webpack_exports__, __webpack_require__) { 7942 "use strict"; 7943 function basis(t1, v0, v1, v2, v3) { 7944 var t2 = t1 * t1, t3 = t2 * t1; 7945 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; 7946 } 7947 __webpack_exports__.a = basis, __webpack_exports__.b = function(values) { 7948 var n = values.length - 1; 7949 return function(t) { 7950 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; 7951 return basis((t - i / n) * n, v0, v1, v2, v3); 7952 }; 7953 }; 7954 }, function(module, __webpack_exports__, __webpack_require__) { 7955 "use strict"; 7956 __webpack_exports__.a = function(x) { 7957 return function() { 7958 return x; 7959 }; 7960 }; 7961 }, function(module, __webpack_exports__, __webpack_require__) { 7962 "use strict"; 7963 __webpack_exports__.a = function(x, p) { 7964 if ((i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf("e")) < 0) return null; 7965 var i, coefficient = x.slice(0, i); 7966 return [ coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient, +x.slice(i + 1) ]; 7967 }; 7968 }, function(module, __webpack_exports__, __webpack_require__) { 7969 "use strict"; 7970 var __WEBPACK_IMPORTED_MODULE_1__src_millisecond__ = (__webpack_require__(18), __webpack_require__(898)); 7971 __webpack_require__.d(__webpack_exports__, "c", function() { 7972 return __WEBPACK_IMPORTED_MODULE_1__src_millisecond__.a; 7973 }), __webpack_require__.d(__webpack_exports__, "n", function() { 7974 return __WEBPACK_IMPORTED_MODULE_1__src_millisecond__.a; 7975 }); 7976 var __WEBPACK_IMPORTED_MODULE_2__src_second__ = __webpack_require__(899); 7977 __webpack_require__.d(__webpack_exports__, "g", function() { 7978 return __WEBPACK_IMPORTED_MODULE_2__src_second__.a; 7979 }), __webpack_require__.d(__webpack_exports__, "r", function() { 7980 return __WEBPACK_IMPORTED_MODULE_2__src_second__.a; 7981 }); 7982 var __WEBPACK_IMPORTED_MODULE_3__src_minute__ = __webpack_require__(900); 7983 __webpack_require__.d(__webpack_exports__, "d", function() { 7984 return __WEBPACK_IMPORTED_MODULE_3__src_minute__.a; 7985 }); 7986 var __WEBPACK_IMPORTED_MODULE_4__src_hour__ = __webpack_require__(901); 7987 __webpack_require__.d(__webpack_exports__, "b", function() { 7988 return __WEBPACK_IMPORTED_MODULE_4__src_hour__.a; 7989 }); 7990 var __WEBPACK_IMPORTED_MODULE_5__src_day__ = __webpack_require__(902); 7991 __webpack_require__.d(__webpack_exports__, "a", function() { 7992 return __WEBPACK_IMPORTED_MODULE_5__src_day__.a; 7993 }); 7994 var __WEBPACK_IMPORTED_MODULE_6__src_week__ = __webpack_require__(903); 7995 __webpack_require__.d(__webpack_exports__, "j", function() { 7996 return __WEBPACK_IMPORTED_MODULE_6__src_week__.b; 7997 }), __webpack_require__.d(__webpack_exports__, "h", function() { 7998 return __WEBPACK_IMPORTED_MODULE_6__src_week__.b; 7999 }), __webpack_require__.d(__webpack_exports__, "e", function() { 8000 return __WEBPACK_IMPORTED_MODULE_6__src_week__.a; 8001 }), __webpack_require__.d(__webpack_exports__, "i", function() { 8002 return __WEBPACK_IMPORTED_MODULE_6__src_week__.c; 8003 }); 8004 var __WEBPACK_IMPORTED_MODULE_7__src_month__ = __webpack_require__(904); 8005 __webpack_require__.d(__webpack_exports__, "f", function() { 8006 return __WEBPACK_IMPORTED_MODULE_7__src_month__.a; 8007 }); 8008 var __WEBPACK_IMPORTED_MODULE_8__src_year__ = __webpack_require__(905); 8009 __webpack_require__.d(__webpack_exports__, "k", function() { 8010 return __WEBPACK_IMPORTED_MODULE_8__src_year__.a; 8011 }); 8012 var __WEBPACK_IMPORTED_MODULE_9__src_utcMinute__ = __webpack_require__(906); 8013 __webpack_require__.d(__webpack_exports__, "o", function() { 8014 return __WEBPACK_IMPORTED_MODULE_9__src_utcMinute__.a; 8015 }); 8016 var __WEBPACK_IMPORTED_MODULE_10__src_utcHour__ = __webpack_require__(907); 8017 __webpack_require__.d(__webpack_exports__, "m", function() { 8018 return __WEBPACK_IMPORTED_MODULE_10__src_utcHour__.a; 8019 }); 8020 var __WEBPACK_IMPORTED_MODULE_11__src_utcDay__ = __webpack_require__(908); 8021 __webpack_require__.d(__webpack_exports__, "l", function() { 8022 return __WEBPACK_IMPORTED_MODULE_11__src_utcDay__.a; 8023 }); 8024 var __WEBPACK_IMPORTED_MODULE_12__src_utcWeek__ = __webpack_require__(909); 8025 __webpack_require__.d(__webpack_exports__, "u", function() { 8026 return __WEBPACK_IMPORTED_MODULE_12__src_utcWeek__.b; 8027 }), __webpack_require__.d(__webpack_exports__, "s", function() { 8028 return __WEBPACK_IMPORTED_MODULE_12__src_utcWeek__.b; 8029 }), __webpack_require__.d(__webpack_exports__, "p", function() { 8030 return __WEBPACK_IMPORTED_MODULE_12__src_utcWeek__.a; 8031 }), __webpack_require__.d(__webpack_exports__, "t", function() { 8032 return __WEBPACK_IMPORTED_MODULE_12__src_utcWeek__.c; 8033 }); 8034 var __WEBPACK_IMPORTED_MODULE_13__src_utcMonth__ = __webpack_require__(910); 8035 __webpack_require__.d(__webpack_exports__, "q", function() { 8036 return __WEBPACK_IMPORTED_MODULE_13__src_utcMonth__.a; 8037 }); 8038 var __WEBPACK_IMPORTED_MODULE_14__src_utcYear__ = __webpack_require__(911); 8039 __webpack_require__.d(__webpack_exports__, "v", function() { 8040 return __WEBPACK_IMPORTED_MODULE_14__src_utcYear__.a; 8041 }); 8042 }, function(module, __webpack_exports__, __webpack_require__) { 8043 "use strict"; 8044 __webpack_require__.d(__webpack_exports__, "a", function() { 8045 return timeFormat; 8046 }), __webpack_require__.d(__webpack_exports__, "b", function() { 8047 return utcFormat; 8048 }), __webpack_require__.d(__webpack_exports__, "c", function() { 8049 return utcParse; 8050 }); 8051 var locale, timeFormat, timeParse, utcFormat, utcParse, __WEBPACK_IMPORTED_MODULE_0__locale__ = __webpack_require__(362); 8052 !function(definition) { 8053 locale = Object(__WEBPACK_IMPORTED_MODULE_0__locale__.a)(definition), timeFormat = locale.format, 8054 timeParse = locale.parse, utcFormat = locale.utcFormat, utcParse = locale.utcParse; 8055 }({ 8056 dateTime: "%x, %X", 8057 date: "%-m/%-d/%Y", 8058 time: "%-I:%M:%S %p", 8059 periods: [ "AM", "PM" ], 8060 days: [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ], 8061 shortDays: [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ], 8062 months: [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ], 8063 shortMonths: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ] 8064 }); 8065 }, function(module, __webpack_exports__, __webpack_require__) { 8066 "use strict"; 8067 function _classCallCheck(instance, Constructor) { 8068 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 8069 } 8070 function _possibleConstructorReturn(self, call) { 8071 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 8072 return !call || "object" != typeof call && "function" != typeof call ? self : call; 8073 } 8074 function _inherits(subClass, superClass) { 8075 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 8076 subClass.prototype = Object.create(superClass && superClass.prototype, { 8077 constructor: { 8078 value: subClass, 8079 enumerable: !1, 8080 writable: !0, 8081 configurable: !0 8082 } 8083 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 8084 } 8085 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) { 8086 for (var i = 1; i < arguments.length; i++) { 8087 var source = arguments[i]; 8088 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 8089 } 8090 return target; 8091 }, _createClass = function() { 8092 function defineProperties(target, props) { 8093 for (var i = 0; i < props.length; i++) { 8094 var descriptor = props[i]; 8095 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 8096 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 8097 } 8098 } 8099 return function(Constructor, protoProps, staticProps) { 8100 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 8101 Constructor; 8102 }; 8103 }(), getPolygonPoints = function(points) { 8104 return points.reduce(function(result, entry) { 8105 return entry.x === +entry.x && entry.y === +entry.y && result.push([ entry.x, entry.y ]), 8106 result; 8107 }, []).join(" "); 8108 }, Polygon = Object(__WEBPACK_IMPORTED_MODULE_3__util_PureRender__.a)((_temp = _class2 = function(_Component) { 8109 function Polygon() { 8110 return _classCallCheck(this, Polygon), _possibleConstructorReturn(this, (Polygon.__proto__ || Object.getPrototypeOf(Polygon)).apply(this, arguments)); 8111 } 8112 return _inherits(Polygon, _Component), _createClass(Polygon, [ { 8113 key: "render", 8114 value: function() { 8115 var _props = this.props, points = _props.points, className = _props.className; 8116 if (!points || !points.length) return null; 8117 var layerClass = __WEBPACK_IMPORTED_MODULE_2_classnames___default()("recharts-polygon", className); 8118 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), { 8119 className: layerClass, 8120 points: getPolygonPoints(points) 8121 })); 8122 } 8123 } ]), Polygon; 8124 }(__WEBPACK_IMPORTED_MODULE_0_react__.Component), _class2.displayName = "Polygon", 8125 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_4__util_ReactUtils__.c, { 8126 className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, 8127 points: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape({ 8128 x: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 8129 y: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number 8130 })) 8131 }), _class = _temp)) || _class; 8132 __webpack_exports__.a = Polygon; 8133 }, function(module, __webpack_exports__, __webpack_require__) { 8134 "use strict"; 8135 function _objectWithoutProperties(obj, keys) { 8136 var target = {}; 8137 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 8138 return target; 8139 } 8140 function _toConsumableArray(arr) { 8141 if (Array.isArray(arr)) { 8142 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; 8143 return arr2; 8144 } 8145 return Array.from(arr); 8146 } 8147 function _classCallCheck(instance, Constructor) { 8148 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 8149 } 8150 function _possibleConstructorReturn(self, call) { 8151 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 8152 return !call || "object" != typeof call && "function" != typeof call ? self : call; 8153 } 8154 function _inherits(subClass, superClass) { 8155 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 8156 subClass.prototype = Object.create(superClass && superClass.prototype, { 8157 constructor: { 8158 value: subClass, 8159 enumerable: !1, 8160 writable: !0, 8161 configurable: !0 8162 } 8163 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 8164 } 8165 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) { 8166 for (var i = 1; i < arguments.length; i++) { 8167 var source = arguments[i]; 8168 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 8169 } 8170 return target; 8171 }, _createClass = function() { 8172 function defineProperties(target, props) { 8173 for (var i = 0; i < props.length; i++) { 8174 var descriptor = props[i]; 8175 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 8176 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 8177 } 8178 } 8179 return function(Constructor, protoProps, staticProps) { 8180 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 8181 Constructor; 8182 }; 8183 }(), Line = Object(__WEBPACK_IMPORTED_MODULE_7__util_PureRender__.a)((_temp2 = _class2 = function(_Component) { 8184 function Line() { 8185 var _ref, _temp, _this, _ret; 8186 _classCallCheck(this, Line); 8187 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 8188 return _temp = _this = _possibleConstructorReturn(this, (_ref = Line.__proto__ || Object.getPrototypeOf(Line)).call.apply(_ref, [ this ].concat(args))), 8189 _this.state = { 8190 isAnimationFinished: !0, 8191 totalLength: 0 8192 }, _this.id = Object(__WEBPACK_IMPORTED_MODULE_13__util_DataUtils__.k)("recharts-line-"), 8193 _this.cachePrevData = function(points) { 8194 _this.setState({ 8195 prevPoints: points 8196 }); 8197 }, _this.pathRef = function(node) { 8198 _this.mainCurve = node; 8199 }, _this.handleAnimationEnd = function() { 8200 _this.setState({ 8201 isAnimationFinished: !0 8202 }), _this.props.onAnimationEnd(); 8203 }, _this.handleAnimationStart = function() { 8204 _this.setState({ 8205 isAnimationFinished: !1 8206 }), _this.props.onAnimationStart(); 8207 }, _ret = _temp, _possibleConstructorReturn(_this, _ret); 8208 } 8209 return _inherits(Line, _Component), _createClass(Line, [ { 8210 key: "componentDidMount", 8211 value: function() { 8212 if (this.props.isAnimationActive) { 8213 var totalLength = this.getTotalLength(); 8214 this.setState({ 8215 totalLength: totalLength 8216 }); 8217 } 8218 } 8219 }, { 8220 key: "componentWillReceiveProps", 8221 value: function(nextProps) { 8222 var _props = this.props, animationId = _props.animationId, points = _props.points; 8223 nextProps.animationId !== animationId && this.cachePrevData(points); 8224 } 8225 }, { 8226 key: "getTotalLength", 8227 value: function() { 8228 var curveDom = this.mainCurve; 8229 try { 8230 return curveDom && curveDom.getTotalLength && curveDom.getTotalLength() || 0; 8231 } catch (err) { 8232 return 0; 8233 } 8234 } 8235 }, { 8236 key: "getStrokeDasharray", 8237 value: function(length, totalLength, lines) { 8238 for (var lineLength = lines.reduce(function(pre, next) { 8239 return pre + next; 8240 }), count = parseInt(length / lineLength, 10), remainLength = length % lineLength, restLength = totalLength - length, remainLines = [], i = 0, sum = 0; ;sum += lines[i], 8241 ++i) if (sum + lines[i] > remainLength) { 8242 remainLines = [].concat(_toConsumableArray(lines.slice(0, i)), [ remainLength - sum ]); 8243 break; 8244 } 8245 var emptyLines = remainLines.length % 2 == 0 ? [ 0, restLength ] : [ restLength ]; 8246 return [].concat(_toConsumableArray(this.repeat(lines, count)), _toConsumableArray(remainLines), emptyLines).map(function(line) { 8247 return line + "px"; 8248 }).join(", "); 8249 } 8250 }, { 8251 key: "repeat", 8252 value: function(lines, count) { 8253 for (var linesUnit = lines.length % 2 != 0 ? [].concat(_toConsumableArray(lines), [ 0 ]) : lines, result = [], i = 0; i < count; ++i) result = [].concat(_toConsumableArray(result), _toConsumableArray(linesUnit)); 8254 return result; 8255 } 8256 }, { 8257 key: "renderErrorBar", 8258 value: function() { 8259 function dataPointFormatter(dataPoint, dataKey) { 8260 return { 8261 x: dataPoint.x, 8262 y: dataPoint.y, 8263 value: dataPoint.value, 8264 errorVal: Object(__WEBPACK_IMPORTED_MODULE_15__util_ChartUtils__.w)(dataPoint.payload, dataKey) 8265 }; 8266 } 8267 if (this.props.isAnimationActive && !this.state.isAnimationFinished) return null; 8268 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); 8269 return errorBarItems ? errorBarItems.map(function(item, i) { 8270 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.cloneElement(item, { 8271 key: i, 8272 data: points, 8273 xAxis: xAxis, 8274 yAxis: yAxis, 8275 layout: layout, 8276 dataPointFormatter: dataPointFormatter 8277 }); 8278 }) : null; 8279 } 8280 }, { 8281 key: "renderDotItem", 8282 value: function(option, props) { 8283 var dotItem = void 0; 8284 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 { 8285 var className = __WEBPACK_IMPORTED_MODULE_6_classnames___default()("recharts-line-dot", option ? option.className : ""); 8286 dotItem = __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__shape_Dot__.a, _extends({}, props, { 8287 className: className 8288 })); 8289 } 8290 return dotItem; 8291 } 8292 }, { 8293 key: "renderDots", 8294 value: function() { 8295 var _this2 = this; 8296 if (this.props.isAnimationActive && !this.state.isAnimationFinished) return null; 8297 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) { 8298 var dotProps = _extends({ 8299 key: "dot-" + i, 8300 r: 3 8301 }, lineProps, customDotProps, dotEvents, { 8302 value: entry.value, 8303 dataKey: dataKey, 8304 cx: entry.x, 8305 cy: entry.y, 8306 index: i, 8307 payload: entry.payload 8308 }); 8309 return _this2.renderDotItem(dot, dotProps); 8310 }); 8311 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10__container_Layer__.a, { 8312 className: "recharts-line-dots", 8313 key: "dots" 8314 }, dots); 8315 } 8316 }, { 8317 key: "renderCurveStatically", 8318 value: function(points, needClip, props) { 8319 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), { 8320 fill: "none", 8321 className: "recharts-line-curve", 8322 clipPath: needClip ? "url(#clipPath-" + clipPathId + ")" : null, 8323 points: points 8324 }, props, { 8325 type: type, 8326 layout: layout, 8327 connectNulls: connectNulls 8328 }); 8329 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__shape_Curve__.a, _extends({}, curveProps, { 8330 pathRef: this.pathRef 8331 })); 8332 } 8333 }, { 8334 key: "renderCurveWithAnimation", 8335 value: function(needClip) { 8336 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" ]), 8337 this.state), prevPoints = _state.prevPoints, totalLength = _state.totalLength; 8338 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5_react_smooth___default.a, { 8339 begin: animationBegin, 8340 duration: animationDuration, 8341 isActive: isAnimationActive, 8342 easing: animationEasing, 8343 from: { 8344 t: 0 8345 }, 8346 to: { 8347 t: 1 8348 }, 8349 key: "line-" + animationId, 8350 onAnimationEnd: this.handleAnimationEnd, 8351 onAnimationStart: this.handleAnimationStart 8352 }, function(_ref2) { 8353 var t = _ref2.t; 8354 if (prevPoints) { 8355 var stepData = points.map(function(entry, index) { 8356 if (prevPoints[index]) { 8357 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); 8358 return _extends({}, entry, { 8359 x: _interpolatorX(t), 8360 y: _interpolatorY(t) 8361 }); 8362 } 8363 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); 8364 return _extends({}, entry, { 8365 x: interpolatorX(t), 8366 y: interpolatorY(t) 8367 }); 8368 }); 8369 return _this3.renderCurveStatically(stepData, needClip); 8370 } 8371 var interpolator = Object(__WEBPACK_IMPORTED_MODULE_13__util_DataUtils__.f)(0, totalLength), curLength = interpolator(t), currentStrokeDasharray = void 0; 8372 if (strokeDasharray) { 8373 var lines = strokeDasharray.split(/[,\s]+/gim).map(function(num) { 8374 return parseFloat(num); 8375 }); 8376 currentStrokeDasharray = _this3.getStrokeDasharray(curLength, totalLength, lines); 8377 } else currentStrokeDasharray = curLength + "px " + (totalLength - curLength) + "px"; 8378 return _this3.renderCurveStatically(points, needClip, { 8379 strokeDasharray: currentStrokeDasharray 8380 }); 8381 }); 8382 } 8383 }, { 8384 key: "renderCurve", 8385 value: function(needClip) { 8386 var _props6 = this.props, points = _props6.points, isAnimationActive = _props6.isAnimationActive, _state2 = this.state, prevPoints = _state2.prevPoints, totalLength = _state2.totalLength; 8387 return isAnimationActive && points && points.length && (!prevPoints && totalLength > 0 || !__WEBPACK_IMPORTED_MODULE_0_lodash_isEqual___default()(prevPoints, points)) ? this.renderCurveWithAnimation(needClip) : this.renderCurveStatically(points, needClip); 8388 } 8389 }, { 8390 key: "render", 8391 value: function() { 8392 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; 8393 if (hide || !points || !points.length) return null; 8394 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; 8395 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10__container_Layer__.a, { 8396 className: layerClass 8397 }, needClip ? __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement("defs", null, __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement("clipPath", { 8398 id: "clipPath-" + clipPathId 8399 }, __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement("rect", { 8400 x: left, 8401 y: top, 8402 width: width, 8403 height: height 8404 }))) : null, !hasSinglePoint && this.renderCurve(needClip), this.renderErrorBar(), (hasSinglePoint || dot) && this.renderDots(), (!isAnimationActive || isAnimationFinished) && __WEBPACK_IMPORTED_MODULE_11__component_LabelList__.a.renderCallByParent(this.props, points)); 8405 } 8406 } ]), Line; 8407 }(__WEBPACK_IMPORTED_MODULE_3_react__.Component), _class2.displayName = "Line", 8408 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_14__util_ReactUtils__.c, __WEBPACK_IMPORTED_MODULE_14__util_ReactUtils__.a, { 8409 className: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, 8410 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 ]), 8411 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 ]), 8412 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 ]), 8413 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 ]), 8414 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 ]), 8415 yAxis: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object, 8416 xAxis: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object, 8417 legendType: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf(__WEBPACK_IMPORTED_MODULE_14__util_ReactUtils__.b), 8418 layout: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf([ "horizontal", "vertical" ]), 8419 connectNulls: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool, 8420 hide: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool, 8421 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 ]), 8422 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 ]), 8423 top: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 8424 left: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 8425 width: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 8426 height: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 8427 points: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.shape({ 8428 x: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 8429 y: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 8430 value: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.value 8431 })), 8432 onAnimationStart: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func, 8433 onAnimationEnd: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func, 8434 isAnimationActive: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool, 8435 animationBegin: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 8436 animationDuration: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 8437 animationEasing: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf([ "ease", "ease-in", "ease-out", "ease-in-out", "linear" ]), 8438 animationId: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 8439 id: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string 8440 }), _class2.defaultProps = { 8441 xAxisId: 0, 8442 yAxisId: 0, 8443 connectNulls: !1, 8444 activeDot: !0, 8445 dot: !0, 8446 legendType: "line", 8447 stroke: "#3182bd", 8448 strokeWidth: 1, 8449 fill: "#fff", 8450 points: [], 8451 isAnimationActive: !Object(__WEBPACK_IMPORTED_MODULE_14__util_ReactUtils__.n)(), 8452 animationBegin: 0, 8453 animationDuration: 1500, 8454 animationEasing: "ease", 8455 hide: !1, 8456 onAnimationStart: function() {}, 8457 onAnimationEnd: function() {} 8458 }, _class2.getComposedData = function(_ref3) { 8459 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) { 8460 var value = Object(__WEBPACK_IMPORTED_MODULE_15__util_ChartUtils__.w)(entry, dataKey); 8461 return "horizontal" === layout ? { 8462 x: Object(__WEBPACK_IMPORTED_MODULE_15__util_ChartUtils__.l)({ 8463 axis: xAxis, 8464 ticks: xAxisTicks, 8465 bandSize: bandSize, 8466 entry: entry, 8467 index: index 8468 }), 8469 y: __WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default()(value) ? null : yAxis.scale(value), 8470 value: value, 8471 payload: entry 8472 } : { 8473 x: __WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default()(value) ? null : xAxis.scale(value), 8474 y: Object(__WEBPACK_IMPORTED_MODULE_15__util_ChartUtils__.l)({ 8475 axis: yAxis, 8476 ticks: yAxisTicks, 8477 bandSize: bandSize, 8478 entry: entry, 8479 index: index 8480 }), 8481 value: value, 8482 payload: entry 8483 }; 8484 }); 8485 return _extends({ 8486 points: points, 8487 layout: layout 8488 }, offset); 8489 }, _class = _temp2)) || _class; 8490 __webpack_exports__.a = Line; 8491 }, function(module, __webpack_exports__, __webpack_require__) { 8492 "use strict"; 8493 function _classCallCheck(instance, Constructor) { 8494 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 8495 } 8496 function _possibleConstructorReturn(self, call) { 8497 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 8498 return !call || "object" != typeof call && "function" != typeof call ? self : call; 8499 } 8500 function _inherits(subClass, superClass) { 8501 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 8502 subClass.prototype = Object.create(superClass && superClass.prototype, { 8503 constructor: { 8504 value: subClass, 8505 enumerable: !1, 8506 writable: !0, 8507 configurable: !0 8508 } 8509 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 8510 } 8511 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) { 8512 for (var i = 1; i < arguments.length; i++) { 8513 var source = arguments[i]; 8514 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 8515 } 8516 return target; 8517 }, _createClass = function() { 8518 function defineProperties(target, props) { 8519 for (var i = 0; i < props.length; i++) { 8520 var descriptor = props[i]; 8521 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 8522 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 8523 } 8524 } 8525 return function(Constructor, protoProps, staticProps) { 8526 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 8527 Constructor; 8528 }; 8529 }(), Area = Object(__WEBPACK_IMPORTED_MODULE_13__util_PureRender__.a)((_temp2 = _class2 = function(_Component) { 8530 function Area() { 8531 var _ref, _temp, _this, _ret; 8532 _classCallCheck(this, Area); 8533 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 8534 return _temp = _this = _possibleConstructorReturn(this, (_ref = Area.__proto__ || Object.getPrototypeOf(Area)).call.apply(_ref, [ this ].concat(args))), 8535 _this.state = { 8536 isAnimationFinished: !0 8537 }, _this.id = Object(__WEBPACK_IMPORTED_MODULE_15__util_DataUtils__.k)("recharts-area-"), 8538 _this.cachePrevData = function(points, baseLine) { 8539 _this.setState({ 8540 prevPoints: points, 8541 prevBaseLine: baseLine 8542 }); 8543 }, _this.handleAnimationEnd = function() { 8544 var onAnimationEnd = _this.props.onAnimationEnd; 8545 _this.setState({ 8546 isAnimationFinished: !0 8547 }), __WEBPACK_IMPORTED_MODULE_2_lodash_isFunction___default()(onAnimationEnd) && onAnimationEnd(); 8548 }, _this.handleAnimationStart = function() { 8549 var onAnimationStart = _this.props.onAnimationStart; 8550 _this.setState({ 8551 isAnimationFinished: !1 8552 }), __WEBPACK_IMPORTED_MODULE_2_lodash_isFunction___default()(onAnimationStart) && onAnimationStart(); 8553 }, _ret = _temp, _possibleConstructorReturn(_this, _ret); 8554 } 8555 return _inherits(Area, _Component), _createClass(Area, [ { 8556 key: "componentWillReceiveProps", 8557 value: function(nextProps) { 8558 var _props = this.props, animationId = _props.animationId, points = _props.points, baseLine = _props.baseLine; 8559 nextProps.animationId !== animationId && this.cachePrevData(points, baseLine); 8560 } 8561 }, { 8562 key: "renderDots", 8563 value: function() { 8564 var _this2 = this; 8565 if (this.props.isAnimationActive && !this.state.isAnimationFinished) return null; 8566 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) { 8567 var dotProps = _extends({ 8568 key: "dot-" + i, 8569 r: 3 8570 }, areaProps, customDotProps, dotEvents, { 8571 dataKey: dataKey, 8572 cx: entry.x, 8573 cy: entry.y, 8574 index: i, 8575 value: entry.value, 8576 payload: entry.payload 8577 }); 8578 return _this2.constructor.renderDotItem(dot, dotProps); 8579 }); 8580 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11__container_Layer__.a, { 8581 className: "recharts-area-dots" 8582 }, dots); 8583 } 8584 }, { 8585 key: "renderHorizontalRect", 8586 value: function(alpha) { 8587 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) { 8588 return entry.y || 0; 8589 })); 8590 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) { 8591 return entry.y || 0; 8592 })), maxY)), Object(__WEBPACK_IMPORTED_MODULE_15__util_DataUtils__.h)(maxY) ? __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement("rect", { 8593 x: startX < endX ? startX : startX - width, 8594 y: 0, 8595 width: width, 8596 height: maxY + (strokeWidth || 1) 8597 }) : null; 8598 } 8599 }, { 8600 key: "renderVerticalRect", 8601 value: function(alpha) { 8602 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) { 8603 return entry.x || 0; 8604 })); 8605 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) { 8606 return entry.x || 0; 8607 })), maxX)), Object(__WEBPACK_IMPORTED_MODULE_15__util_DataUtils__.h)(maxX) ? __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement("rect", { 8608 x: 0, 8609 y: startY < endY ? startY : startY - height, 8610 width: maxX + (strokeWidth || 1), 8611 height: height 8612 }) : null; 8613 } 8614 }, { 8615 key: "renderClipRect", 8616 value: function(alpha) { 8617 return "vertical" === this.props.layout ? this.renderVerticalRect(alpha) : this.renderHorizontalRect(alpha); 8618 } 8619 }, { 8620 key: "renderAreaStatically", 8621 value: function(points, baseLine, needClip) { 8622 var _props5 = this.props, layout = _props5.layout, type = _props5.type, stroke = _props5.stroke, connectNulls = _props5.connectNulls, isRange = _props5.isRange; 8623 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11__container_Layer__.a, { 8624 clipPath: needClip ? "url(#clipPath-" + this.id + ")" : null 8625 }, __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__shape_Curve__.a, _extends({}, this.props, { 8626 points: points, 8627 baseLine: baseLine, 8628 stroke: "none", 8629 className: "recharts-area-area" 8630 })), "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), { 8631 className: "recharts-area-curve", 8632 layout: layout, 8633 type: type, 8634 connectNulls: connectNulls, 8635 fill: "none", 8636 points: points 8637 })), "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), { 8638 className: "recharts-area-curve", 8639 layout: layout, 8640 type: type, 8641 connectNulls: connectNulls, 8642 fill: "none", 8643 points: baseLine 8644 }))); 8645 } 8646 }, { 8647 key: "renderAreaWithAnimation", 8648 value: function(needClip) { 8649 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; 8650 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8_react_smooth___default.a, { 8651 begin: animationBegin, 8652 duration: animationDuration, 8653 isActive: isAnimationActive, 8654 easing: animationEasing, 8655 from: { 8656 t: 0 8657 }, 8658 to: { 8659 t: 1 8660 }, 8661 key: "area-" + animationId, 8662 onAnimationEnd: this.handleAnimationEnd, 8663 onAnimationStart: this.handleAnimationStart 8664 }, function(_ref2) { 8665 var t = _ref2.t; 8666 if (prevPoints) { 8667 var stepPoints = points.map(function(entry, index) { 8668 if (prevPoints[index]) { 8669 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); 8670 return _extends({}, entry, { 8671 x: interpolatorX(t), 8672 y: interpolatorY(t) 8673 }); 8674 } 8675 return entry; 8676 }), stepBaseLine = void 0; 8677 if (Object(__WEBPACK_IMPORTED_MODULE_15__util_DataUtils__.h)(baseLine)) { 8678 stepBaseLine = Object(__WEBPACK_IMPORTED_MODULE_15__util_DataUtils__.f)(prevBaseLine, baseLine)(t); 8679 } else if (__WEBPACK_IMPORTED_MODULE_3_lodash_isNil___default()(baseLine) || __WEBPACK_IMPORTED_MODULE_1_lodash_isNaN___default()(baseLine)) { 8680 var _interpolator = Object(__WEBPACK_IMPORTED_MODULE_15__util_DataUtils__.f)(prevBaseLine, 0); 8681 stepBaseLine = _interpolator(t); 8682 } else stepBaseLine = baseLine.map(function(entry, index) { 8683 if (prevBaseLine[index]) { 8684 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); 8685 return _extends({}, entry, { 8686 x: interpolatorX(t), 8687 y: interpolatorY(t) 8688 }); 8689 } 8690 return entry; 8691 }); 8692 return _this3.renderAreaStatically(stepPoints, stepBaseLine, needClip); 8693 } 8694 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", { 8695 id: "animationClipPath-" + clipPathId 8696 }, _this3.renderClipRect(t))), __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11__container_Layer__.a, { 8697 clipPath: "url(#animationClipPath-" + clipPathId + ")" 8698 }, _this3.renderAreaStatically(points, baseLine, needClip))); 8699 }); 8700 } 8701 }, { 8702 key: "renderArea", 8703 value: function(needClip) { 8704 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; 8705 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); 8706 } 8707 }, { 8708 key: "render", 8709 value: function() { 8710 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; 8711 if (hide || !points || !points.length) return null; 8712 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; 8713 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_11__container_Layer__.a, { 8714 className: layerClass 8715 }, needClip ? __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement("defs", null, __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement("clipPath", { 8716 id: "clipPath-" + clipPathId 8717 }, __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement("rect", { 8718 x: left, 8719 y: top, 8720 width: width, 8721 height: height 8722 }))) : null, hasSinglePoint ? null : this.renderArea(needClip), (dot || hasSinglePoint) && this.renderDots(), (!isAnimationActive || isAnimationFinished) && __WEBPACK_IMPORTED_MODULE_12__component_LabelList__.a.renderCallByParent(this.props, points)); 8723 } 8724 } ]), Area; 8725 }(__WEBPACK_IMPORTED_MODULE_5_react__.Component), _class2.displayName = "Area", 8726 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_14__util_ReactUtils__.c, __WEBPACK_IMPORTED_MODULE_14__util_ReactUtils__.a, { 8727 className: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string, 8728 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, 8729 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 ]), 8730 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 ]), 8731 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 ]), 8732 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 ]), 8733 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 ]), 8734 yAxis: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object, 8735 xAxis: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object, 8736 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 ]), 8737 legendType: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf(__WEBPACK_IMPORTED_MODULE_14__util_ReactUtils__.b), 8738 connectNulls: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, 8739 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 ]), 8740 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 ]), 8741 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 ]), 8742 hide: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, 8743 layout: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "horizontal", "vertical" ]), 8744 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 ]), 8745 isRange: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, 8746 points: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.shape({ 8747 x: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 8748 y: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 8749 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 ]) 8750 })), 8751 onAnimationStart: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 8752 onAnimationEnd: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func, 8753 animationId: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 8754 isAnimationActive: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool, 8755 animationBegin: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 8756 animationDuration: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, 8757 animationEasing: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOf([ "ease", "ease-in", "ease-out", "ease-in-out", "linear" ]), 8758 id: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string 8759 }), _class2.defaultProps = { 8760 stroke: "#3182bd", 8761 fill: "#3182bd", 8762 fillOpacity: .6, 8763 xAxisId: 0, 8764 yAxisId: 0, 8765 legendType: "line", 8766 connectNulls: !1, 8767 points: [], 8768 dot: !1, 8769 activeDot: !0, 8770 hide: !1, 8771 isAnimationActive: !Object(__WEBPACK_IMPORTED_MODULE_14__util_ReactUtils__.n)(), 8772 animationBegin: 0, 8773 animationDuration: 1500, 8774 animationEasing: "ease" 8775 }, _class2.getBaseValue = function(props, xAxis, yAxis) { 8776 var layout = props.layout, baseValue = props.baseValue; 8777 if (Object(__WEBPACK_IMPORTED_MODULE_15__util_DataUtils__.h)(baseValue)) return baseValue; 8778 var numericAxis = "horizontal" === layout ? yAxis : xAxis, domain = numericAxis.scale.domain(); 8779 if ("number" === numericAxis.type) { 8780 var max = Math.max(domain[0], domain[1]), min = Math.min(domain[0], domain[1]); 8781 return "dataMin" === baseValue ? min : "dataMax" === baseValue ? max : max < 0 ? max : Math.max(Math.min(domain[0], domain[1]), 0); 8782 } 8783 return "dataMin" === baseValue ? domain[0] : "dataMax" === baseValue ? domain[1] : domain[0]; 8784 }, _class2.getComposedData = function(_ref3) { 8785 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) { 8786 var value = void 0; 8787 return hasStack ? value = stackedData[dataStartIndex + index] : (value = Object(__WEBPACK_IMPORTED_MODULE_16__util_ChartUtils__.w)(entry, dataKey), 8788 __WEBPACK_IMPORTED_MODULE_4_lodash_isArray___default()(value) ? isRange = !0 : value = [ baseValue, value ]), 8789 "horizontal" === layout ? { 8790 x: Object(__WEBPACK_IMPORTED_MODULE_16__util_ChartUtils__.l)({ 8791 axis: xAxis, 8792 ticks: xAxisTicks, 8793 bandSize: bandSize, 8794 entry: entry, 8795 index: index 8796 }), 8797 y: __WEBPACK_IMPORTED_MODULE_3_lodash_isNil___default()(value[1]) ? null : yAxis.scale(value[1]), 8798 value: value, 8799 payload: entry 8800 } : { 8801 x: __WEBPACK_IMPORTED_MODULE_3_lodash_isNil___default()(value[1]) ? null : xAxis.scale(value[1]), 8802 y: Object(__WEBPACK_IMPORTED_MODULE_16__util_ChartUtils__.l)({ 8803 axis: yAxis, 8804 ticks: yAxisTicks, 8805 bandSize: bandSize, 8806 entry: entry, 8807 index: index 8808 }), 8809 value: value, 8810 payload: entry 8811 }; 8812 }), baseLine = void 0; 8813 return baseLine = hasStack || isRange ? points.map(function(entry) { 8814 return { 8815 x: "horizontal" === layout ? entry.x : xAxis.scale(entry && entry.value[0]), 8816 y: "horizontal" === layout ? yAxis.scale(entry && entry.value[0]) : entry.y 8817 }; 8818 }) : "horizontal" === layout ? yAxis.scale(baseValue) : xAxis.scale(baseValue), 8819 _extends({ 8820 points: points, 8821 baseLine: baseLine, 8822 layout: layout, 8823 isRange: isRange 8824 }, offset); 8825 }, _class2.renderDotItem = function(option, props) { 8826 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, { 8827 className: "recharts-area-dot" 8828 })); 8829 }, _class = _temp2)) || _class; 8830 __webpack_exports__.a = Area; 8831 }, function(module, __webpack_exports__, __webpack_require__) { 8832 "use strict"; 8833 function _objectWithoutProperties(obj, keys) { 8834 var target = {}; 8835 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 8836 return target; 8837 } 8838 function _classCallCheck(instance, Constructor) { 8839 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 8840 } 8841 function _possibleConstructorReturn(self, call) { 8842 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 8843 return !call || "object" != typeof call && "function" != typeof call ? self : call; 8844 } 8845 function _inherits(subClass, superClass) { 8846 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 8847 subClass.prototype = Object.create(superClass && superClass.prototype, { 8848 constructor: { 8849 value: subClass, 8850 enumerable: !1, 8851 writable: !0, 8852 configurable: !0 8853 } 8854 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 8855 } 8856 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) { 8857 for (var i = 1; i < arguments.length; i++) { 8858 var source = arguments[i]; 8859 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 8860 } 8861 return target; 8862 }, _createClass = function() { 8863 function defineProperties(target, props) { 8864 for (var i = 0; i < props.length; i++) { 8865 var descriptor = props[i]; 8866 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 8867 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 8868 } 8869 } 8870 return function(Constructor, protoProps, staticProps) { 8871 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 8872 Constructor; 8873 }; 8874 }(), Bar = Object(__WEBPACK_IMPORTED_MODULE_13__util_PureRender__.a)((_temp2 = _class2 = function(_Component) { 8875 function Bar() { 8876 var _ref, _temp, _this, _ret; 8877 _classCallCheck(this, Bar); 8878 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 8879 return _temp = _this = _possibleConstructorReturn(this, (_ref = Bar.__proto__ || Object.getPrototypeOf(Bar)).call.apply(_ref, [ this ].concat(args))), 8880 _this.state = { 8881 isAnimationFinished: !1 8882 }, _this.id = Object(__WEBPACK_IMPORTED_MODULE_14__util_DataUtils__.k)("recharts-bar-"), 8883 _this.cachePrevData = function(data) { 8884 _this.setState({ 8885 prevData: data 8886 }); 8887 }, _this.handleAnimationEnd = function() { 8888 _this.setState({ 8889 isAnimationFinished: !0 8890 }), _this.props.onAnimationEnd(); 8891 }, _this.handleAnimationStart = function() { 8892 _this.setState({ 8893 isAnimationFinished: !1 8894 }), _this.props.onAnimationStart(); 8895 }, _ret = _temp, _possibleConstructorReturn(_this, _ret); 8896 } 8897 return _inherits(Bar, _Component), _createClass(Bar, [ { 8898 key: "componentWillReceiveProps", 8899 value: function(nextProps) { 8900 var _props = this.props, animationId = _props.animationId, data = _props.data; 8901 nextProps.animationId !== animationId && this.cachePrevData(data); 8902 } 8903 }, { 8904 key: "renderRectangle", 8905 value: function(option, props) { 8906 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); 8907 } 8908 }, { 8909 key: "renderRectanglesStatically", 8910 value: function(data) { 8911 var _this2 = this, shape = this.props.shape, baseProps = Object(__WEBPACK_IMPORTED_MODULE_15__util_ReactUtils__.k)(this.props); 8912 return data && data.map(function(entry, i) { 8913 var props = _extends({}, baseProps, entry, { 8914 index: i 8915 }); 8916 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__container_Layer__.a, _extends({ 8917 className: "recharts-bar-rectangle" 8918 }, Object(__WEBPACK_IMPORTED_MODULE_15__util_ReactUtils__.f)(_this2.props, entry, i), { 8919 key: "rectangle-" + i 8920 }), _this2.renderRectangle(shape, props)); 8921 }); 8922 } 8923 }, { 8924 key: "renderRectanglesWithAnimation", 8925 value: function() { 8926 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, 8927 this.state.prevData); 8928 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_react_smooth___default.a, { 8929 begin: animationBegin, 8930 duration: animationDuration, 8931 isActive: isAnimationActive, 8932 easing: animationEasing, 8933 from: { 8934 t: 0 8935 }, 8936 to: { 8937 t: 1 8938 }, 8939 key: "bar-" + animationId, 8940 onAnimationEnd: this.handleAnimationEnd, 8941 onAnimationStart: this.handleAnimationStart 8942 }, function(_ref2) { 8943 var t = _ref2.t, stepData = data.map(function(entry, index) { 8944 var prev = prevData && prevData[index]; 8945 if (prev) { 8946 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); 8947 return _extends({}, entry, { 8948 x: interpolatorX(t), 8949 y: interpolatorY(t), 8950 width: interpolatorWidth(t), 8951 height: interpolatorHeight(t) 8952 }); 8953 } 8954 if ("horizontal" === layout) { 8955 var _interpolatorHeight = Object(__WEBPACK_IMPORTED_MODULE_14__util_DataUtils__.f)(0, entry.height), h = _interpolatorHeight(t); 8956 return _extends({}, entry, { 8957 y: entry.y + entry.height - h, 8958 height: h 8959 }); 8960 } 8961 var interpolator = Object(__WEBPACK_IMPORTED_MODULE_14__util_DataUtils__.f)(0, entry.width), w = interpolator(t); 8962 return _extends({}, entry, { 8963 width: w 8964 }); 8965 }); 8966 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__container_Layer__.a, null, _this3.renderRectanglesStatically(stepData)); 8967 }); 8968 } 8969 }, { 8970 key: "renderRectangles", 8971 value: function() { 8972 var _props3 = this.props, data = _props3.data, isAnimationActive = _props3.isAnimationActive, prevData = this.state.prevData; 8973 return !(isAnimationActive && data && data.length) || prevData && __WEBPACK_IMPORTED_MODULE_1_lodash_isEqual___default()(prevData, data) ? this.renderRectanglesStatically(data) : this.renderRectanglesWithAnimation(); 8974 } 8975 }, { 8976 key: "renderBackground", 8977 value: function(sectors) { 8978 var _this4 = this, data = this.props.data, backgroundProps = Object(__WEBPACK_IMPORTED_MODULE_15__util_ReactUtils__.k)(this.props.background); 8979 return data.map(function(entry, i) { 8980 var background = (entry.value, entry.background), rest = _objectWithoutProperties(entry, [ "value", "background" ]); 8981 if (!background) return null; 8982 var props = _extends({}, rest, { 8983 fill: "#eee" 8984 }, background, backgroundProps, Object(__WEBPACK_IMPORTED_MODULE_15__util_ReactUtils__.f)(_this4.props, entry, i), { 8985 index: i, 8986 key: "background-bar-" + i, 8987 className: "recharts-bar-background-rectangle" 8988 }); 8989 return _this4.renderRectangle(background, props); 8990 }); 8991 } 8992 }, { 8993 key: "renderErrorBar", 8994 value: function() { 8995 function dataPointFormatter(dataPoint, dataKey) { 8996 return { 8997 x: dataPoint.x, 8998 y: dataPoint.y, 8999 value: dataPoint.value, 9000 errorVal: Object(__WEBPACK_IMPORTED_MODULE_16__util_ChartUtils__.w)(dataPoint, dataKey) 9001 }; 9002 } 9003 if (this.props.isAnimationActive && !this.state.isAnimationFinished) return null; 9004 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); 9005 if (!errorBarItems) return null; 9006 var offset = "vertical" === layout ? data[0].height / 2 : data[0].width / 2; 9007 return errorBarItems.map(function(item, i) { 9008 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.cloneElement(item, { 9009 key: i, 9010 data: data, 9011 xAxis: xAxis, 9012 yAxis: yAxis, 9013 layout: layout, 9014 offset: offset, 9015 dataPointFormatter: dataPointFormatter 9016 }); 9017 }); 9018 } 9019 }, { 9020 key: "render", 9021 value: function() { 9022 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; 9023 if (hide || !data || !data.length) return null; 9024 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; 9025 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__container_Layer__.a, { 9026 className: layerClass 9027 }, needClip ? __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("defs", null, __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("clipPath", { 9028 id: "clipPath-" + clipPathId 9029 }, __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("rect", { 9030 x: left, 9031 y: top, 9032 width: width, 9033 height: height 9034 }))) : null, __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__container_Layer__.a, { 9035 className: "recharts-bar-rectangles", 9036 clipPath: needClip ? "url(#clipPath-" + clipPathId + ")" : null 9037 }, background ? this.renderBackground() : null, this.renderRectangles()), this.renderErrorBar(), (!isAnimationActive || isAnimationFinished) && __WEBPACK_IMPORTED_MODULE_12__component_LabelList__.a.renderCallByParent(this.props, data)); 9038 } 9039 } ]), Bar; 9040 }(__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, { 9041 className: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, 9042 layout: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOf([ "vertical", "horizontal" ]), 9043 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 ]), 9044 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 ]), 9045 yAxis: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object, 9046 xAxis: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object, 9047 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 ]), 9048 barSize: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 9049 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 ]), 9050 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 ]), 9051 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, 9052 legendType: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOf(__WEBPACK_IMPORTED_MODULE_15__util_ReactUtils__.b), 9053 minPointSize: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 9054 maxBarSize: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 9055 hide: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool, 9056 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 ]), 9057 data: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.shape({ 9058 x: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 9059 y: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 9060 width: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 9061 height: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 9062 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 ]), 9063 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 ]) 9064 })), 9065 onAnimationStart: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func, 9066 onAnimationEnd: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func, 9067 animationId: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 9068 isAnimationActive: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool, 9069 animationBegin: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 9070 animationDuration: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 9071 animationEasing: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOf([ "ease", "ease-in", "ease-out", "ease-in-out", "linear" ]), 9072 id: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string 9073 }), _class2.defaultProps = { 9074 xAxisId: 0, 9075 yAxisId: 0, 9076 legendType: "rect", 9077 minPointSize: 0, 9078 hide: !1, 9079 data: [], 9080 layout: "vertical", 9081 isAnimationActive: !Object(__WEBPACK_IMPORTED_MODULE_15__util_ReactUtils__.n)(), 9082 animationBegin: 0, 9083 animationDuration: 400, 9084 animationEasing: "ease", 9085 onAnimationStart: function() {}, 9086 onAnimationEnd: function() {} 9087 }, _class2.getComposedData = function(_ref3) { 9088 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); 9089 if (!pos) return []; 9090 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)({ 9091 props: props, 9092 numericAxis: numericAxis 9093 }), cells = Object(__WEBPACK_IMPORTED_MODULE_15__util_ReactUtils__.h)(children, __WEBPACK_IMPORTED_MODULE_11__component_Cell__.a), rects = displayedData.map(function(entry, index) { 9094 var value = void 0, x = void 0, y = void 0, width = void 0, height = void 0, background = void 0; 9095 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), 9096 __WEBPACK_IMPORTED_MODULE_3_lodash_isArray___default()(value) || (value = [ baseValue, value ])), 9097 "horizontal" === layout) { 9098 if (x = Object(__WEBPACK_IMPORTED_MODULE_16__util_ChartUtils__.k)({ 9099 axis: xAxis, 9100 ticks: xAxisTicks, 9101 bandSize: bandSize, 9102 offset: pos.offset, 9103 entry: entry, 9104 index: index 9105 }), y = yAxis.scale(value[1]), width = pos.size, height = yAxis.scale(value[0]) - yAxis.scale(value[1]), 9106 background = { 9107 x: x, 9108 y: yAxis.y, 9109 width: width, 9110 height: yAxis.height 9111 }, Math.abs(minPointSize) > 0 && Math.abs(height) < Math.abs(minPointSize)) { 9112 var delta = Object(__WEBPACK_IMPORTED_MODULE_14__util_DataUtils__.j)(height || minPointSize) * (Math.abs(minPointSize) - Math.abs(height)); 9113 y -= delta, height += delta; 9114 } 9115 } else if (x = xAxis.scale(value[0]), y = Object(__WEBPACK_IMPORTED_MODULE_16__util_ChartUtils__.k)({ 9116 axis: yAxis, 9117 ticks: yAxisTicks, 9118 bandSize: bandSize, 9119 offset: pos.offset, 9120 entry: entry, 9121 index: index 9122 }), width = xAxis.scale(value[1]) - xAxis.scale(value[0]), height = pos.size, background = { 9123 x: xAxis.x, 9124 y: y, 9125 width: xAxis.width, 9126 height: height 9127 }, Math.abs(minPointSize) > 0 && Math.abs(width) < Math.abs(minPointSize)) { 9128 var _delta = Object(__WEBPACK_IMPORTED_MODULE_14__util_DataUtils__.j)(width || minPointSize) * (Math.abs(minPointSize) - Math.abs(width)); 9129 width += _delta; 9130 } 9131 return _extends({}, entry, { 9132 x: x, 9133 y: y, 9134 width: width, 9135 height: height, 9136 value: stackedData ? value : value[1], 9137 payload: entry, 9138 background: background 9139 }, cells && cells[index] && cells[index].props); 9140 }); 9141 return _extends({ 9142 data: rects, 9143 layout: layout 9144 }, offset); 9145 }, _class = _temp2)) || _class; 9146 __webpack_exports__.a = Bar; 9147 }, function(module, __webpack_exports__, __webpack_require__) { 9148 "use strict"; 9149 function _classCallCheck(instance, Constructor) { 9150 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 9151 } 9152 function _possibleConstructorReturn(self, call) { 9153 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 9154 return !call || "object" != typeof call && "function" != typeof call ? self : call; 9155 } 9156 function _inherits(subClass, superClass) { 9157 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 9158 subClass.prototype = Object.create(superClass && superClass.prototype, { 9159 constructor: { 9160 value: subClass, 9161 enumerable: !1, 9162 writable: !0, 9163 configurable: !0 9164 } 9165 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 9166 } 9167 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) { 9168 for (var i = 1; i < arguments.length; i++) { 9169 var source = arguments[i]; 9170 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 9171 } 9172 return target; 9173 }, _createClass = function() { 9174 function defineProperties(target, props) { 9175 for (var i = 0; i < props.length; i++) { 9176 var descriptor = props[i]; 9177 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 9178 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 9179 } 9180 } 9181 return function(Constructor, protoProps, staticProps) { 9182 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 9183 Constructor; 9184 }; 9185 }(), Scatter = Object(__WEBPACK_IMPORTED_MODULE_7__util_PureRender__.a)((_temp2 = _class2 = function(_Component) { 9186 function Scatter() { 9187 var _ref, _temp, _this, _ret; 9188 _classCallCheck(this, Scatter); 9189 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 9190 return _temp = _this = _possibleConstructorReturn(this, (_ref = Scatter.__proto__ || Object.getPrototypeOf(Scatter)).call.apply(_ref, [ this ].concat(args))), 9191 _this.state = { 9192 isAnimationFinished: !1 9193 }, _this.cachePrevPoints = function(points) { 9194 _this.setState({ 9195 prevPoints: points 9196 }); 9197 }, _this.handleAnimationEnd = function() { 9198 _this.setState({ 9199 isAnimationFinished: !0 9200 }); 9201 }, _this.handleAnimationStart = function() { 9202 _this.setState({ 9203 isAnimationFinished: !1 9204 }); 9205 }, _this.id = Object(__WEBPACK_IMPORTED_MODULE_16__util_DataUtils__.k)("recharts-scatter-"), 9206 _ret = _temp, _possibleConstructorReturn(_this, _ret); 9207 } 9208 return _inherits(Scatter, _Component), _createClass(Scatter, [ { 9209 key: "componentWillReceiveProps", 9210 value: function(nextProps) { 9211 var _props = this.props, animationId = _props.animationId, points = _props.points; 9212 nextProps.animationId !== animationId && this.cachePrevPoints(points); 9213 } 9214 }, { 9215 key: "renderSymbolItem", 9216 value: function(option, props) { 9217 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, { 9218 type: option 9219 })); 9220 } 9221 }, { 9222 key: "renderSymbolsStatically", 9223 value: function(points) { 9224 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); 9225 return points.map(function(entry, i) { 9226 var props = _extends({ 9227 key: "symbol-" + i 9228 }, baseProps, entry); 9229 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, _extends({ 9230 className: "recharts-scatter-symbol" 9231 }, Object(__WEBPACK_IMPORTED_MODULE_10__util_ReactUtils__.f)(_this2.props, entry, i), { 9232 key: "symbol-" + i 9233 }), _this2.renderSymbolItem(activeIndex === i ? activeShape : shape, props)); 9234 }); 9235 } 9236 }, { 9237 key: "renderSymbolsWithAnimation", 9238 value: function() { 9239 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; 9240 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5_react_smooth___default.a, { 9241 begin: animationBegin, 9242 duration: animationDuration, 9243 isActive: isAnimationActive, 9244 easing: animationEasing, 9245 from: { 9246 t: 0 9247 }, 9248 to: { 9249 t: 1 9250 }, 9251 key: "pie-" + animationId, 9252 onAnimationEnd: this.handleAnimationEnd, 9253 onAnimationStart: this.handleAnimationStart 9254 }, function(_ref2) { 9255 var t = _ref2.t, stepData = points.map(function(entry, index) { 9256 var prev = prevPoints && prevPoints[index]; 9257 if (prev) { 9258 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); 9259 return _extends({}, entry, { 9260 cx: interpolatorCx(t), 9261 cy: interpolatorCy(t), 9262 size: interpolatorSize(t) 9263 }); 9264 } 9265 var interpolator = Object(__WEBPACK_IMPORTED_MODULE_16__util_DataUtils__.f)(0, entry.size); 9266 return _extends({}, entry, { 9267 size: interpolator(t) 9268 }); 9269 }); 9270 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, null, _this3.renderSymbolsStatically(stepData)); 9271 }); 9272 } 9273 }, { 9274 key: "renderSymbols", 9275 value: function() { 9276 var _props4 = this.props, points = _props4.points, isAnimationActive = _props4.isAnimationActive, prevPoints = this.state.prevPoints; 9277 return !(isAnimationActive && points && points.length) || prevPoints && __WEBPACK_IMPORTED_MODULE_0_lodash_isEqual___default()(prevPoints, points) ? this.renderSymbolsStatically(points) : this.renderSymbolsWithAnimation(); 9278 } 9279 }, { 9280 key: "renderErrorBar", 9281 value: function() { 9282 function dataPointFormatterY(dataPoint, dataKey) { 9283 return { 9284 x: dataPoint.cx, 9285 y: dataPoint.cy, 9286 value: dataPoint.y, 9287 errorVal: Object(__WEBPACK_IMPORTED_MODULE_17__util_ChartUtils__.w)(dataPoint, dataKey) 9288 }; 9289 } 9290 function dataPointFormatterX(dataPoint, dataKey) { 9291 return { 9292 x: dataPoint.cx, 9293 y: dataPoint.cy, 9294 value: dataPoint.x, 9295 errorVal: Object(__WEBPACK_IMPORTED_MODULE_17__util_ChartUtils__.w)(dataPoint, dataKey) 9296 }; 9297 } 9298 if (this.props.isAnimationActive && !this.state.isAnimationFinished) return null; 9299 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); 9300 return errorBarItems ? errorBarItems.map(function(item, i) { 9301 var direction = item.props.direction; 9302 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.cloneElement(item, { 9303 key: i, 9304 data: points, 9305 xAxis: xAxis, 9306 yAxis: yAxis, 9307 layout: "x" === direction ? "vertical" : "horizontal", 9308 dataPointFormatter: "x" === direction ? dataPointFormatterX : dataPointFormatterY 9309 }); 9310 }) : null; 9311 } 9312 }, { 9313 key: "renderLine", 9314 value: function() { 9315 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; 9316 if ("joint" === lineType) linePoints = points.map(function(entry) { 9317 return { 9318 x: entry.cx, 9319 y: entry.cy 9320 }; 9321 }); else if ("fitting" === lineType) { 9322 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) { 9323 return a * x + b; 9324 }; 9325 linePoints = [ { 9326 x: xmin, 9327 y: linearExp(xmin) 9328 }, { 9329 x: xmax, 9330 y: linearExp(xmax) 9331 } ]; 9332 } 9333 var lineProps = _extends({}, scatterProps, { 9334 fill: "none", 9335 stroke: scatterProps && scatterProps.fill 9336 }, customLineProps, { 9337 points: linePoints 9338 }); 9339 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, { 9340 type: lineJointType 9341 })), __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, { 9342 className: "recharts-scatter-line", 9343 key: "recharts-scatter-line" 9344 }, lineItem); 9345 } 9346 }, { 9347 key: "render", 9348 value: function() { 9349 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; 9350 if (hide || !points || !points.length) return null; 9351 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; 9352 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, { 9353 className: layerClass, 9354 clipPath: needClip ? "url(#clipPath-" + clipPathId + ")" : null 9355 }, needClip ? __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement("defs", null, __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement("clipPath", { 9356 id: "clipPath-" + clipPathId 9357 }, __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement("rect", { 9358 x: left, 9359 y: top, 9360 width: width, 9361 height: height 9362 }))) : null, line && this.renderLine(), this.renderErrorBar(), __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, { 9363 key: "recharts-scatter-symbols" 9364 }, this.renderSymbols()), (!isAnimationActive || isAnimationFinished) && __WEBPACK_IMPORTED_MODULE_9__component_LabelList__.a.renderCallByParent(this.props, points)); 9365 } 9366 } ]), Scatter; 9367 }(__WEBPACK_IMPORTED_MODULE_3_react__.Component), _class2.displayName = "Scatter", 9368 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_10__util_ReactUtils__.a, __WEBPACK_IMPORTED_MODULE_10__util_ReactUtils__.c, { 9369 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 ]), 9370 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 ]), 9371 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 ]), 9372 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 ]), 9373 lineType: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf([ "fitting", "joint" ]), 9374 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 ]), 9375 legendType: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf(__WEBPACK_IMPORTED_MODULE_10__util_ReactUtils__.b), 9376 className: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, 9377 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 ]), 9378 activeIndex: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 9379 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 ]), 9380 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 ]), 9381 points: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.shape({ 9382 cx: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 9383 cy: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 9384 size: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 9385 node: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.shape({ 9386 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 ]), 9387 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 ]), 9388 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 ]) 9389 }), 9390 payload: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.any 9391 })), 9392 hide: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool, 9393 isAnimationActive: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool, 9394 animationId: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 9395 animationBegin: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 9396 animationDuration: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 9397 animationEasing: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf([ "ease", "ease-in", "ease-out", "ease-in-out", "linear" ]) 9398 }), _class2.defaultProps = { 9399 xAxisId: 0, 9400 yAxisId: 0, 9401 zAxisId: 0, 9402 legendType: "circle", 9403 lineType: "joint", 9404 lineJointType: "linear", 9405 data: [], 9406 shape: "circle", 9407 hide: !1, 9408 isAnimationActive: !Object(__WEBPACK_IMPORTED_MODULE_10__util_ReactUtils__.n)(), 9409 animationBegin: 0, 9410 animationDuration: 400, 9411 animationEasing: "linear" 9412 }, _class2.getComposedData = function(_ref3) { 9413 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) { 9414 var x = entry[xAxisDataKey], y = entry[yAxisDataKey], z = !__WEBPACK_IMPORTED_MODULE_2_lodash_isNil___default()(zAxisDataKey) && entry[zAxisDataKey] || "-", tooltipPayload = [ { 9415 name: xAxis.name || xAxis.dataKey, 9416 unit: xAxis.unit || "", 9417 value: x, 9418 payload: entry 9419 }, { 9420 name: yAxis.name || yAxis.dataKey, 9421 unit: yAxis.unit || "", 9422 value: y, 9423 payload: entry 9424 } ]; 9425 "-" !== z && tooltipPayload.push({ 9426 name: zAxis.name || zAxis.dataKey, 9427 unit: zAxis.unit || "", 9428 value: z, 9429 payload: entry 9430 }); 9431 var cx = Object(__WEBPACK_IMPORTED_MODULE_17__util_ChartUtils__.l)({ 9432 axis: xAxis, 9433 ticks: xAxisTicks, 9434 bandSize: xBandSize, 9435 entry: entry, 9436 index: index 9437 }), cy = Object(__WEBPACK_IMPORTED_MODULE_17__util_ChartUtils__.l)({ 9438 axis: yAxis, 9439 ticks: xAxisTicks, 9440 bandSize: yBandSize, 9441 entry: entry, 9442 index: index 9443 }), size = "-" !== z ? zAxis.scale(z) : defaultZ, radius = Math.sqrt(Math.max(size, 0) / Math.PI); 9444 return _extends({}, entry, { 9445 cx: cx, 9446 cy: cy, 9447 x: cx - radius, 9448 y: cy - radius, 9449 xAxis: xAxis, 9450 yAxis: yAxis, 9451 zAxis: zAxis, 9452 width: 2 * radius, 9453 height: 2 * radius, 9454 size: size, 9455 node: { 9456 x: x, 9457 y: y, 9458 z: z 9459 }, 9460 tooltipPayload: tooltipPayload, 9461 tooltipPosition: { 9462 x: cx, 9463 y: cy 9464 }, 9465 payload: entry 9466 }, cells && cells[index] && cells[index].props); 9467 }); 9468 return _extends({ 9469 onMouseLeave: onItemMouseLeave, 9470 onMouseEnter: onItemMouseEnter, 9471 points: points 9472 }, offset); 9473 }, _class = _temp2)) || _class; 9474 __webpack_exports__.a = Scatter; 9475 }, function(module, exports, __webpack_require__) { 9476 "use strict"; 9477 var canUseDOM = !("undefined" == typeof window || !window.document || !window.document.createElement), ExecutionEnvironment = { 9478 canUseDOM: canUseDOM, 9479 canUseWorkers: "undefined" != typeof Worker, 9480 canUseEventListeners: canUseDOM && !(!window.addEventListener && !window.attachEvent), 9481 canUseViewport: canUseDOM && !!window.screen, 9482 isInWorker: !canUseDOM 9483 }; 9484 module.exports = ExecutionEnvironment; 9485 }, function(module, exports, __webpack_require__) { 9486 "use strict"; 9487 function getActiveElement(doc) { 9488 if (void 0 === (doc = doc || ("undefined" != typeof document ? document : void 0))) return null; 9489 try { 9490 return doc.activeElement || doc.body; 9491 } catch (e) { 9492 return doc.body; 9493 } 9494 } 9495 module.exports = getActiveElement; 9496 }, function(module, exports, __webpack_require__) { 9497 "use strict"; 9498 function containsNode(outerNode, innerNode) { 9499 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)))); 9500 } 9501 var isTextNode = __webpack_require__(379); 9502 module.exports = containsNode; 9503 }, function(module, exports, __webpack_require__) { 9504 module.exports = { 9505 default: __webpack_require__(387), 9506 __esModule: !0 9507 }; 9508 }, function(module, exports) { 9509 module.exports = function(it) { 9510 if ("function" != typeof it) throw TypeError(it + " is not a function!"); 9511 return it; 9512 }; 9513 }, function(module, exports, __webpack_require__) { 9514 module.exports = !__webpack_require__(25) && !__webpack_require__(53)(function() { 9515 return 7 != Object.defineProperty(__webpack_require__(225)("div"), "a", { 9516 get: function() { 9517 return 7; 9518 } 9519 }).a; 9520 }); 9521 }, function(module, exports, __webpack_require__) { 9522 var isObject = __webpack_require__(35), document = __webpack_require__(24).document, is = isObject(document) && isObject(document.createElement); 9523 module.exports = function(it) { 9524 return is ? document.createElement(it) : {}; 9525 }; 9526 }, function(module, exports, __webpack_require__) { 9527 var has = __webpack_require__(54), toIObject = __webpack_require__(64), arrayIndexOf = __webpack_require__(390)(!1), IE_PROTO = __webpack_require__(150)("IE_PROTO"); 9528 module.exports = function(object, names) { 9529 var key, O = toIObject(object), i = 0, result = []; 9530 for (key in O) key != IE_PROTO && has(O, key) && result.push(key); 9531 for (;names.length > i; ) has(O, key = names[i++]) && (~arrayIndexOf(result, key) || result.push(key)); 9532 return result; 9533 }; 9534 }, function(module, exports, __webpack_require__) { 9535 var has = __webpack_require__(54), toObject = __webpack_require__(65), IE_PROTO = __webpack_require__(150)("IE_PROTO"), ObjectProto = Object.prototype; 9536 module.exports = Object.getPrototypeOf || function(O) { 9537 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; 9538 }; 9539 }, function(module, exports, __webpack_require__) { 9540 var $export = __webpack_require__(19), core = __webpack_require__(17), fails = __webpack_require__(53); 9541 module.exports = function(KEY, exec) { 9542 var fn = (core.Object || {})[KEY] || Object[KEY], exp = {}; 9543 exp[KEY] = exec(fn), $export($export.S + $export.F * fails(function() { 9544 fn(1); 9545 }), "Object", exp); 9546 }; 9547 }, function(module, exports, __webpack_require__) { 9548 module.exports = __webpack_require__(39); 9549 }, function(module, exports, __webpack_require__) { 9550 __webpack_require__(402); 9551 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++) { 9552 var NAME = DOMIterables[i], Collection = global[NAME], proto = Collection && Collection.prototype; 9553 proto && !proto[TO_STRING_TAG] && hide(proto, TO_STRING_TAG, NAME), Iterators[NAME] = Iterators.Array; 9554 } 9555 }, function(module, exports) { 9556 module.exports = function(done, value) { 9557 return { 9558 value: value, 9559 done: !!done 9560 }; 9561 }; 9562 }, function(module, exports, __webpack_require__) { 9563 var cof = __webpack_require__(147); 9564 module.exports = Array.isArray || function(arg) { 9565 return "Array" == cof(arg); 9566 }; 9567 }, function(module, exports, __webpack_require__) { 9568 var $keys = __webpack_require__(226), hiddenKeys = __webpack_require__(152).concat("length", "prototype"); 9569 exports.f = Object.getOwnPropertyNames || function(O) { 9570 return $keys(O, hiddenKeys); 9571 }; 9572 }, function(module, exports, __webpack_require__) { 9573 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; 9574 exports.f = __webpack_require__(25) ? gOPD : function(O, P) { 9575 if (O = toIObject(O), P = toPrimitive(P, !0), IE8_DOM_DEFINE) try { 9576 return gOPD(O, P); 9577 } catch (e) {} 9578 if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); 9579 }; 9580 }, function(module, exports) {}, function(module, exports, __webpack_require__) { 9581 "use strict"; 9582 function _interopRequireDefault(obj) { 9583 return obj && obj.__esModule ? obj : { 9584 default: obj 9585 }; 9586 } 9587 function exactProp(propTypes, componentNameInError) { 9588 return (0, _extends4.default)({}, propTypes, (0, _defineProperty3.default)({}, specialProperty, function(props) { 9589 var unknownProps = (0, _keys2.default)(props).filter(function(prop) { 9590 return !propTypes.hasOwnProperty(prop); 9591 }); 9592 return unknownProps.length > 0 ? new TypeError(componentNameInError + ": unknown props found: " + unknownProps.join(", ") + ". Please remove the unknown properties.") : null; 9593 })); 9594 } 9595 Object.defineProperty(exports, "__esModule", { 9596 value: !0 9597 }), exports.specialProperty = void 0; 9598 var _defineProperty2 = __webpack_require__(12), _defineProperty3 = _interopRequireDefault(_defineProperty2), _keys = __webpack_require__(55), _keys2 = _interopRequireDefault(_keys), _extends3 = __webpack_require__(6), _extends4 = _interopRequireDefault(_extends3); 9599 exports.default = exactProp; 9600 var specialProperty = exports.specialProperty = "exact-prop: "; 9601 }, function(module, exports, __webpack_require__) { 9602 var hide = __webpack_require__(39); 9603 module.exports = function(target, src, safe) { 9604 for (var key in src) safe && target[key] ? target[key] = src[key] : hide(target, key, src[key]); 9605 return target; 9606 }; 9607 }, function(module, exports) { 9608 module.exports = function(it, Constructor, name, forbiddenField) { 9609 if (!(it instanceof Constructor) || void 0 !== forbiddenField && forbiddenField in it) throw TypeError(name + ": incorrect invocation!"); 9610 return it; 9611 }; 9612 }, function(module, exports, __webpack_require__) { 9613 var anObject = __webpack_require__(52); 9614 module.exports = function(iterator, fn, value, entries) { 9615 try { 9616 return entries ? fn(anObject(value)[0], value[1]) : fn(value); 9617 } catch (e) { 9618 var ret = iterator.return; 9619 throw void 0 !== ret && anObject(ret.call(iterator)), e; 9620 } 9621 }; 9622 }, function(module, exports, __webpack_require__) { 9623 var Iterators = __webpack_require__(77), ITERATOR = __webpack_require__(21)("iterator"), ArrayProto = Array.prototype; 9624 module.exports = function(it) { 9625 return void 0 !== it && (Iterators.Array === it || ArrayProto[ITERATOR] === it); 9626 }; 9627 }, function(module, exports, __webpack_require__) { 9628 var classof = __webpack_require__(242), ITERATOR = __webpack_require__(21)("iterator"), Iterators = __webpack_require__(77); 9629 module.exports = __webpack_require__(17).getIteratorMethod = function(it) { 9630 if (void 0 != it) return it[ITERATOR] || it["@@iterator"] || Iterators[classof(it)]; 9631 }; 9632 }, function(module, exports, __webpack_require__) { 9633 var cof = __webpack_require__(147), TAG = __webpack_require__(21)("toStringTag"), ARG = "Arguments" == cof(function() { 9634 return arguments; 9635 }()), tryGet = function(it, key) { 9636 try { 9637 return it[key]; 9638 } catch (e) {} 9639 }; 9640 module.exports = function(it) { 9641 var O, T, B; 9642 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; 9643 }; 9644 }, function(module, exports, __webpack_require__) { 9645 var isObject = __webpack_require__(35); 9646 module.exports = function(it, TYPE) { 9647 if (!isObject(it) || it._t !== TYPE) throw TypeError("Incompatible receiver, " + TYPE + " required!"); 9648 return it; 9649 }; 9650 }, function(module, exports, __webpack_require__) { 9651 "use strict"; 9652 exports.__esModule = !0; 9653 var getDisplayName = function(Component) { 9654 if ("string" == typeof Component) return Component; 9655 if (Component) return Component.displayName || Component.name || "Component"; 9656 }; 9657 exports.default = getDisplayName; 9658 }, function(module, exports, __webpack_require__) { 9659 "use strict"; 9660 Object.defineProperty(exports, "__esModule", { 9661 value: !0 9662 }); 9663 exports.jss = "64a55d578f856d258dc345b094a2a2b3", exports.sheetsRegistry = "d4bd0baacbc52bbd48bbb9eb24344ecd", 9664 exports.managers = "b768b78919504fba9de2c03545c5cd3a", exports.sheetOptions = "6fc570d6bd61383819d0f9e7407c452d"; 9665 }, function(module, exports, __webpack_require__) { 9666 "use strict"; 9667 function _interopRequireDefault(obj) { 9668 return obj && obj.__esModule ? obj : { 9669 default: obj 9670 }; 9671 } 9672 Object.defineProperty(exports, "__esModule", { 9673 value: !0 9674 }), exports.create = exports.createGenerateClassName = exports.sheets = exports.RuleList = exports.SheetsManager = exports.SheetsRegistry = exports.toCssValue = exports.getDynamicStyles = void 0; 9675 var _getDynamicStyles = __webpack_require__(461); 9676 Object.defineProperty(exports, "getDynamicStyles", { 9677 enumerable: !0, 9678 get: function() { 9679 return _interopRequireDefault(_getDynamicStyles).default; 9680 } 9681 }); 9682 var _toCssValue = __webpack_require__(110); 9683 Object.defineProperty(exports, "toCssValue", { 9684 enumerable: !0, 9685 get: function() { 9686 return _interopRequireDefault(_toCssValue).default; 9687 } 9688 }); 9689 var _SheetsRegistry = __webpack_require__(247); 9690 Object.defineProperty(exports, "SheetsRegistry", { 9691 enumerable: !0, 9692 get: function() { 9693 return _interopRequireDefault(_SheetsRegistry).default; 9694 } 9695 }); 9696 var _SheetsManager = __webpack_require__(462); 9697 Object.defineProperty(exports, "SheetsManager", { 9698 enumerable: !0, 9699 get: function() { 9700 return _interopRequireDefault(_SheetsManager).default; 9701 } 9702 }); 9703 var _RuleList = __webpack_require__(80); 9704 Object.defineProperty(exports, "RuleList", { 9705 enumerable: !0, 9706 get: function() { 9707 return _interopRequireDefault(_RuleList).default; 9708 } 9709 }); 9710 var _sheets = __webpack_require__(164); 9711 Object.defineProperty(exports, "sheets", { 9712 enumerable: !0, 9713 get: function() { 9714 return _interopRequireDefault(_sheets).default; 9715 } 9716 }); 9717 var _createGenerateClassName = __webpack_require__(250); 9718 Object.defineProperty(exports, "createGenerateClassName", { 9719 enumerable: !0, 9720 get: function() { 9721 return _interopRequireDefault(_createGenerateClassName).default; 9722 } 9723 }); 9724 var _Jss = __webpack_require__(469), _Jss2 = _interopRequireDefault(_Jss), create = exports.create = function(options) { 9725 return new _Jss2.default(options); 9726 }; 9727 exports.default = create(); 9728 }, function(module, exports, __webpack_require__) { 9729 "use strict"; 9730 function _classCallCheck(instance, Constructor) { 9731 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 9732 } 9733 Object.defineProperty(exports, "__esModule", { 9734 value: !0 9735 }); 9736 var _createClass = function() { 9737 function defineProperties(target, props) { 9738 for (var i = 0; i < props.length; i++) { 9739 var descriptor = props[i]; 9740 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 9741 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 9742 } 9743 } 9744 return function(Constructor, protoProps, staticProps) { 9745 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 9746 Constructor; 9747 }; 9748 }(), SheetsRegistry = function() { 9749 function SheetsRegistry() { 9750 _classCallCheck(this, SheetsRegistry), this.registry = []; 9751 } 9752 return _createClass(SheetsRegistry, [ { 9753 key: "add", 9754 value: function(sheet) { 9755 var registry = this.registry, index = sheet.options.index; 9756 if (-1 === registry.indexOf(sheet)) { 9757 if (0 === registry.length || index >= this.index) return void registry.push(sheet); 9758 for (var i = 0; i < registry.length; i++) if (registry[i].options.index > index) return void registry.splice(i, 0, sheet); 9759 } 9760 } 9761 }, { 9762 key: "reset", 9763 value: function() { 9764 this.registry = []; 9765 } 9766 }, { 9767 key: "remove", 9768 value: function(sheet) { 9769 var index = this.registry.indexOf(sheet); 9770 this.registry.splice(index, 1); 9771 } 9772 }, { 9773 key: "toString", 9774 value: function(options) { 9775 return this.registry.filter(function(sheet) { 9776 return sheet.attached; 9777 }).map(function(sheet) { 9778 return sheet.toString(options); 9779 }).join("\n"); 9780 } 9781 }, { 9782 key: "index", 9783 get: function() { 9784 return 0 === this.registry.length ? 0 : this.registry[this.registry.length - 1].options.index; 9785 } 9786 } ]), SheetsRegistry; 9787 }(); 9788 exports.default = SheetsRegistry; 9789 }, function(module, exports, __webpack_require__) { 9790 "use strict"; 9791 Object.defineProperty(exports, "__esModule", { 9792 value: !0 9793 }); 9794 var _symbolObservable = __webpack_require__(464), _symbolObservable2 = function(obj) { 9795 return obj && obj.__esModule ? obj : { 9796 default: obj 9797 }; 9798 }(_symbolObservable); 9799 exports.default = function(value) { 9800 return value && value[_symbolObservable2.default] && value === value[_symbolObservable2.default](); 9801 }; 9802 }, function(module, exports, __webpack_require__) { 9803 "use strict"; 9804 function linkRule(rule, cssRule) { 9805 rule.renderable = cssRule, rule.rules && cssRule.cssRules && rule.rules.link(cssRule.cssRules); 9806 } 9807 Object.defineProperty(exports, "__esModule", { 9808 value: !0 9809 }), exports.default = linkRule; 9810 }, function(module, exports, __webpack_require__) { 9811 "use strict"; 9812 (function(process) { 9813 function _interopRequireDefault(obj) { 9814 return obj && obj.__esModule ? obj : { 9815 default: obj 9816 }; 9817 } 9818 Object.defineProperty(exports, "__esModule", { 9819 value: !0 9820 }); 9821 var _warning = __webpack_require__(11), _warning2 = _interopRequireDefault(_warning), _StyleSheet = __webpack_require__(251), _moduleId = (_interopRequireDefault(_StyleSheet), 9822 __webpack_require__(468)), _moduleId2 = _interopRequireDefault(_moduleId), env = process.env.NODE_ENV; 9823 exports.default = function() { 9824 var ruleCounter = 0, defaultPrefix = "production" === env ? "c" : ""; 9825 return function(rule, sheet) { 9826 (ruleCounter += 1) > 1e10 && (0, _warning2.default)(!1, "[JSS] You might have a memory leak. Rule counter is at %s.", ruleCounter); 9827 var prefix = defaultPrefix, jssId = ""; 9828 return sheet && (prefix = sheet.options.classNamePrefix || defaultPrefix, null != sheet.options.jss.id && (jssId += sheet.options.jss.id)), 9829 "production" === env ? "" + prefix + _moduleId2.default + jssId + ruleCounter : prefix + rule.key + "-" + _moduleId2.default + (jssId && "-" + jssId) + "-" + ruleCounter; 9830 }; 9831 }; 9832 }).call(exports, __webpack_require__(2)); 9833 }, function(module, exports, __webpack_require__) { 9834 "use strict"; 9835 function _interopRequireDefault(obj) { 9836 return obj && obj.__esModule ? obj : { 9837 default: obj 9838 }; 9839 } 9840 function _classCallCheck(instance, Constructor) { 9841 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 9842 } 9843 Object.defineProperty(exports, "__esModule", { 9844 value: !0 9845 }); 9846 var _extends = Object.assign || function(target) { 9847 for (var i = 1; i < arguments.length; i++) { 9848 var source = arguments[i]; 9849 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 9850 } 9851 return target; 9852 }, _createClass = function() { 9853 function defineProperties(target, props) { 9854 for (var i = 0; i < props.length; i++) { 9855 var descriptor = props[i]; 9856 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 9857 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 9858 } 9859 } 9860 return function(Constructor, protoProps, staticProps) { 9861 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 9862 Constructor; 9863 }; 9864 }(), _linkRule = __webpack_require__(249), _linkRule2 = _interopRequireDefault(_linkRule), _RuleList = __webpack_require__(80), _RuleList2 = _interopRequireDefault(_RuleList), StyleSheet = function() { 9865 function StyleSheet(styles, options) { 9866 _classCallCheck(this, StyleSheet), this.attached = !1, this.deployed = !1, this.linked = !1, 9867 this.classes = {}, this.options = _extends({}, options, { 9868 sheet: this, 9869 parent: this, 9870 classes: this.classes 9871 }), this.renderer = new options.Renderer(this), this.rules = new _RuleList2.default(this.options); 9872 for (var name in styles) this.rules.add(name, styles[name]); 9873 this.rules.process(); 9874 } 9875 return _createClass(StyleSheet, [ { 9876 key: "attach", 9877 value: function() { 9878 return this.attached ? this : (this.deployed || this.deploy(), this.renderer.attach(), 9879 !this.linked && this.options.link && this.link(), this.attached = !0, this); 9880 } 9881 }, { 9882 key: "detach", 9883 value: function() { 9884 return this.attached ? (this.renderer.detach(), this.attached = !1, this) : this; 9885 } 9886 }, { 9887 key: "addRule", 9888 value: function(name, decl, options) { 9889 var queue = this.queue; 9890 this.attached && !queue && (this.queue = []); 9891 var rule = this.rules.add(name, decl, options); 9892 return this.options.jss.plugins.onProcessRule(rule), this.attached ? this.deployed ? (queue ? queue.push(rule) : (this.insertRule(rule), 9893 this.queue && (this.queue.forEach(this.insertRule, this), this.queue = void 0)), 9894 rule) : rule : (this.deployed = !1, rule); 9895 } 9896 }, { 9897 key: "insertRule", 9898 value: function(rule) { 9899 var renderable = this.renderer.insertRule(rule); 9900 renderable && this.options.link && (0, _linkRule2.default)(rule, renderable); 9901 } 9902 }, { 9903 key: "addRules", 9904 value: function(styles, options) { 9905 var added = []; 9906 for (var name in styles) added.push(this.addRule(name, styles[name], options)); 9907 return added; 9908 } 9909 }, { 9910 key: "getRule", 9911 value: function(name) { 9912 return this.rules.get(name); 9913 } 9914 }, { 9915 key: "deleteRule", 9916 value: function(name) { 9917 var rule = this.rules.get(name); 9918 return !!rule && (this.rules.remove(rule), !this.attached || !rule.renderable || this.renderer.deleteRule(rule.renderable)); 9919 } 9920 }, { 9921 key: "indexOf", 9922 value: function(rule) { 9923 return this.rules.indexOf(rule); 9924 } 9925 }, { 9926 key: "deploy", 9927 value: function() { 9928 return this.renderer.deploy(), this.deployed = !0, this; 9929 } 9930 }, { 9931 key: "link", 9932 value: function() { 9933 var cssRules = this.renderer.getRules(); 9934 return cssRules && this.rules.link(cssRules), this.linked = !0, this; 9935 } 9936 }, { 9937 key: "update", 9938 value: function(name, data) { 9939 return this.rules.update(name, data), this; 9940 } 9941 }, { 9942 key: "toString", 9943 value: function(options) { 9944 return this.rules.toString(options); 9945 } 9946 } ]), StyleSheet; 9947 }(); 9948 exports.default = StyleSheet; 9949 }, function(module, exports, __webpack_require__) { 9950 "use strict"; 9951 function _interopRequireDefault(obj) { 9952 return obj && obj.__esModule ? obj : { 9953 default: obj 9954 }; 9955 } 9956 Object.defineProperty(exports, "__esModule", { 9957 value: !0 9958 }); 9959 var _ButtonBase = __webpack_require__(505); 9960 Object.defineProperty(exports, "default", { 9961 enumerable: !0, 9962 get: function() { 9963 return _interopRequireDefault(_ButtonBase).default; 9964 } 9965 }); 9966 }, function(module, exports) { 9967 exports = module.exports = function(searchInput) { 9968 if (searchInput && "object" == typeof searchInput) { 9969 var hasKeyCode = searchInput.which || searchInput.keyCode || searchInput.charCode; 9970 hasKeyCode && (searchInput = hasKeyCode); 9971 } 9972 if ("number" == typeof searchInput) return names[searchInput]; 9973 var search = String(searchInput), foundNamedKey = codes[search.toLowerCase()]; 9974 if (foundNamedKey) return foundNamedKey; 9975 var foundNamedKey = aliases[search.toLowerCase()]; 9976 return foundNamedKey || (1 === search.length ? search.charCodeAt(0) : void 0); 9977 }; 9978 var codes = exports.code = exports.codes = { 9979 backspace: 8, 9980 tab: 9, 9981 enter: 13, 9982 shift: 16, 9983 ctrl: 17, 9984 alt: 18, 9985 "pause/break": 19, 9986 "caps lock": 20, 9987 esc: 27, 9988 space: 32, 9989 "page up": 33, 9990 "page down": 34, 9991 end: 35, 9992 home: 36, 9993 left: 37, 9994 up: 38, 9995 right: 39, 9996 down: 40, 9997 insert: 45, 9998 delete: 46, 9999 command: 91, 10000 "left command": 91, 10001 "right command": 93, 10002 "numpad *": 106, 10003 "numpad +": 107, 10004 "numpad -": 109, 10005 "numpad .": 110, 10006 "numpad /": 111, 10007 "num lock": 144, 10008 "scroll lock": 145, 10009 "my computer": 182, 10010 "my calculator": 183, 10011 ";": 186, 10012 "=": 187, 10013 ",": 188, 10014 "-": 189, 10015 ".": 190, 10016 "/": 191, 10017 "` + "`"))) + ((`": 192, 10018 "[": 219, 10019 "\\": 220, 10020 "]": 221, 10021 "'": 222 10022 }, aliases = exports.aliases = { 10023 windows: 91, 10024 "⇧": 16, 10025 "⌥": 18, 10026 "⌃": 17, 10027 "⌘": 91, 10028 ctl: 17, 10029 control: 17, 10030 option: 18, 10031 pause: 19, 10032 break: 19, 10033 caps: 20, 10034 return: 13, 10035 escape: 27, 10036 spc: 32, 10037 pgup: 33, 10038 pgdn: 34, 10039 ins: 45, 10040 del: 46, 10041 cmd: 91 10042 }; 10043 for (i = 97; i < 123; i++) codes[String.fromCharCode(i)] = i - 32; 10044 for (var i = 48; i < 58; i++) codes[i - 48] = i; 10045 for (i = 1; i < 13; i++) codes["f" + i] = i + 111; 10046 for (i = 0; i < 10; i++) codes["numpad " + i] = i + 96; 10047 var names = exports.names = exports.title = {}; 10048 for (i in codes) names[codes[i]] = i; 10049 for (var alias in aliases) codes[alias] = aliases[alias]; 10050 }, function(module, exports, __webpack_require__) { 10051 "use strict"; 10052 function ownerDocument(node) { 10053 return node && node.ownerDocument || document; 10054 } 10055 Object.defineProperty(exports, "__esModule", { 10056 value: !0 10057 }), exports.default = ownerDocument, module.exports = exports.default; 10058 }, function(module, exports, __webpack_require__) { 10059 "use strict"; 10060 (function(process) { 10061 function _interopRequireDefault(obj) { 10062 return obj && obj.__esModule ? obj : { 10063 default: obj 10064 }; 10065 } 10066 function _objectWithoutProperties(obj, keys) { 10067 var target = {}; 10068 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 10069 return target; 10070 } 10071 function _classCallCheck(instance, Constructor) { 10072 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 10073 } 10074 function _possibleConstructorReturn(self, call) { 10075 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 10076 return !call || "object" != typeof call && "function" != typeof call ? self : call; 10077 } 10078 function _inherits(subClass, superClass) { 10079 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 10080 subClass.prototype = Object.create(superClass && superClass.prototype, { 10081 constructor: { 10082 value: subClass, 10083 enumerable: !1, 10084 writable: !0, 10085 configurable: !0 10086 } 10087 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 10088 } 10089 exports.__esModule = !0; 10090 var _extends = Object.assign || function(target) { 10091 for (var i = 1; i < arguments.length; i++) { 10092 var source = arguments[i]; 10093 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 10094 } 10095 return target; 10096 }, _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _ChildMapping = __webpack_require__(517), values = Object.values || function(obj) { 10097 return Object.keys(obj).map(function(k) { 10098 return obj[k]; 10099 }); 10100 }, propTypes = { 10101 component: _propTypes2.default.any, 10102 children: _propTypes2.default.node, 10103 appear: _propTypes2.default.bool, 10104 enter: _propTypes2.default.bool, 10105 exit: _propTypes2.default.bool, 10106 childFactory: _propTypes2.default.func 10107 }, defaultProps = { 10108 component: "div", 10109 childFactory: function(child) { 10110 return child; 10111 } 10112 }, TransitionGroup = function(_React$Component) { 10113 function TransitionGroup(props, context) { 10114 _classCallCheck(this, TransitionGroup); 10115 var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context)); 10116 return _this.handleExited = function(key, node, originalHandler) { 10117 var currentChildMapping = (0, _ChildMapping.getChildMapping)(_this.props.children); 10118 key in currentChildMapping || (originalHandler && originalHandler(node), _this.setState(function(state) { 10119 var children = _extends({}, state.children); 10120 return delete children[key], { 10121 children: children 10122 }; 10123 })); 10124 }, _this.state = { 10125 children: (0, _ChildMapping.getChildMapping)(props.children, function(child) { 10126 var onExited = function(node) { 10127 _this.handleExited(child.key, node, child.props.onExited); 10128 }; 10129 return (0, _react.cloneElement)(child, { 10130 onExited: onExited, 10131 in: !0, 10132 appear: _this.getProp(child, "appear"), 10133 enter: _this.getProp(child, "enter"), 10134 exit: _this.getProp(child, "exit") 10135 }); 10136 }) 10137 }, _this; 10138 } 10139 return _inherits(TransitionGroup, _React$Component), TransitionGroup.prototype.getChildContext = function() { 10140 return { 10141 transitionGroup: { 10142 isMounting: !this.appeared 10143 } 10144 }; 10145 }, TransitionGroup.prototype.getProp = function(child, prop) { 10146 var props = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : this.props; 10147 return null != props[prop] ? props[prop] : child.props[prop]; 10148 }, TransitionGroup.prototype.componentDidMount = function() { 10149 this.appeared = !0; 10150 }, TransitionGroup.prototype.componentWillReceiveProps = function(nextProps) { 10151 var _this2 = this, prevChildMapping = this.state.children, nextChildMapping = (0, 10152 _ChildMapping.getChildMapping)(nextProps.children), children = (0, _ChildMapping.mergeChildMappings)(prevChildMapping, nextChildMapping); 10153 Object.keys(children).forEach(function(key) { 10154 var child = children[key]; 10155 if ((0, _react.isValidElement)(child)) { 10156 var onExited = function(node) { 10157 _this2.handleExited(child.key, node, child.props.onExited); 10158 }, hasPrev = key in prevChildMapping, hasNext = key in nextChildMapping, prevChild = prevChildMapping[key], isLeaving = (0, 10159 _react.isValidElement)(prevChild) && !prevChild.props.in; 10160 !hasNext || hasPrev && !isLeaving ? hasNext || !hasPrev || isLeaving ? hasNext && hasPrev && (0, 10161 _react.isValidElement)(prevChild) && (children[key] = (0, _react.cloneElement)(child, { 10162 onExited: onExited, 10163 in: prevChild.props.in, 10164 exit: _this2.getProp(child, "exit", nextProps), 10165 enter: _this2.getProp(child, "enter", nextProps) 10166 })) : children[key] = (0, _react.cloneElement)(child, { 10167 in: !1 10168 }) : children[key] = (0, _react.cloneElement)(child, { 10169 onExited: onExited, 10170 in: !0, 10171 exit: _this2.getProp(child, "exit", nextProps), 10172 enter: _this2.getProp(child, "enter", nextProps) 10173 }); 10174 } 10175 }), this.setState({ 10176 children: children 10177 }); 10178 }, TransitionGroup.prototype.render = function() { 10179 var _props = this.props, Component = _props.component, childFactory = _props.childFactory, props = _objectWithoutProperties(_props, [ "component", "childFactory" ]), children = this.state.children; 10180 return delete props.appear, delete props.enter, delete props.exit, _react2.default.createElement(Component, props, values(children).map(childFactory)); 10181 }, TransitionGroup; 10182 }(_react2.default.Component); 10183 TransitionGroup.childContextTypes = { 10184 transitionGroup: _propTypes2.default.object.isRequired 10185 }, TransitionGroup.propTypes = "production" !== process.env.NODE_ENV ? propTypes : {}, 10186 TransitionGroup.defaultProps = defaultProps, exports.default = TransitionGroup, 10187 module.exports = exports.default; 10188 }).call(exports, __webpack_require__(2)); 10189 }, function(module, exports, __webpack_require__) { 10190 "use strict"; 10191 function _interopRequireDefault(obj) { 10192 return obj && obj.__esModule ? obj : { 10193 default: obj 10194 }; 10195 } 10196 function cloneChildrenWithClassName(children, className) { 10197 return _react2.default.Children.map(children, function(child) { 10198 return _react2.default.isValidElement(child) && _react2.default.cloneElement(child, { 10199 className: (0, _classnames2.default)(child.props.className, className) 10200 }); 10201 }); 10202 } 10203 function isMuiElement(element, muiNames) { 10204 return _react2.default.isValidElement(element) && -1 !== muiNames.indexOf(element.type.muiName); 10205 } 10206 function isMuiComponent(element, muiNames) { 10207 return -1 !== muiNames.indexOf(element.muiName); 10208 } 10209 Object.defineProperty(exports, "__esModule", { 10210 value: !0 10211 }), exports.cloneChildrenWithClassName = cloneChildrenWithClassName, exports.isMuiElement = isMuiElement, 10212 exports.isMuiComponent = isMuiComponent; 10213 var _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _classnames = __webpack_require__(3), _classnames2 = _interopRequireDefault(_classnames); 10214 }, function(module, exports, __webpack_require__) { 10215 "use strict"; 10216 function _interopRequireDefault(obj) { 10217 return obj && obj.__esModule ? obj : { 10218 default: obj 10219 }; 10220 } 10221 Object.defineProperty(exports, "__esModule", { 10222 value: !0 10223 }); 10224 var _SvgIcon = __webpack_require__(521); 10225 Object.defineProperty(exports, "default", { 10226 enumerable: !0, 10227 get: function() { 10228 return _interopRequireDefault(_SvgIcon).default; 10229 } 10230 }); 10231 }, function(module, exports, __webpack_require__) { 10232 "use strict"; 10233 function _interopRequireDefault(obj) { 10234 return obj && obj.__esModule ? obj : { 10235 default: obj 10236 }; 10237 } 10238 Object.defineProperty(exports, "__esModule", { 10239 value: !0 10240 }); 10241 var _Icon = __webpack_require__(522); 10242 Object.defineProperty(exports, "default", { 10243 enumerable: !0, 10244 get: function() { 10245 return _interopRequireDefault(_Icon).default; 10246 } 10247 }); 10248 }, function(module, exports, __webpack_require__) { 10249 "use strict"; 10250 exports.__esModule = !0; 10251 var _setStatic = __webpack_require__(526), _setStatic2 = function(obj) { 10252 return obj && obj.__esModule ? obj : { 10253 default: obj 10254 }; 10255 }(_setStatic), setDisplayName = function(displayName) { 10256 return (0, _setStatic2.default)("displayName", displayName); 10257 }; 10258 exports.default = setDisplayName; 10259 }, function(module, exports, __webpack_require__) { 10260 "use strict"; 10261 function _interopRequireDefault(obj) { 10262 return obj && obj.__esModule ? obj : { 10263 default: obj 10264 }; 10265 } 10266 Object.defineProperty(exports, "__esModule", { 10267 value: !0 10268 }); 10269 var _List = __webpack_require__(531); 10270 Object.defineProperty(exports, "default", { 10271 enumerable: !0, 10272 get: function() { 10273 return _interopRequireDefault(_List).default; 10274 } 10275 }); 10276 var _ListItem = __webpack_require__(532); 10277 Object.defineProperty(exports, "ListItem", { 10278 enumerable: !0, 10279 get: function() { 10280 return _interopRequireDefault(_ListItem).default; 10281 } 10282 }); 10283 var _ListItemAvatar = __webpack_require__(533); 10284 Object.defineProperty(exports, "ListItemAvatar", { 10285 enumerable: !0, 10286 get: function() { 10287 return _interopRequireDefault(_ListItemAvatar).default; 10288 } 10289 }); 10290 var _ListItemText = __webpack_require__(534); 10291 Object.defineProperty(exports, "ListItemText", { 10292 enumerable: !0, 10293 get: function() { 10294 return _interopRequireDefault(_ListItemText).default; 10295 } 10296 }); 10297 var _ListItemIcon = __webpack_require__(535); 10298 Object.defineProperty(exports, "ListItemIcon", { 10299 enumerable: !0, 10300 get: function() { 10301 return _interopRequireDefault(_ListItemIcon).default; 10302 } 10303 }); 10304 var _ListItemSecondaryAction = __webpack_require__(536); 10305 Object.defineProperty(exports, "ListItemSecondaryAction", { 10306 enumerable: !0, 10307 get: function() { 10308 return _interopRequireDefault(_ListItemSecondaryAction).default; 10309 } 10310 }); 10311 var _ListSubheader = __webpack_require__(537); 10312 Object.defineProperty(exports, "ListSubheader", { 10313 enumerable: !0, 10314 get: function() { 10315 return _interopRequireDefault(_ListSubheader).default; 10316 } 10317 }); 10318 }, function(module, exports, __webpack_require__) { 10319 "use strict"; 10320 function _interopRequireDefault(obj) { 10321 return obj && obj.__esModule ? obj : { 10322 default: obj 10323 }; 10324 } 10325 function _classCallCheck(instance, Constructor) { 10326 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 10327 } 10328 function _possibleConstructorReturn(self, call) { 10329 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 10330 return !call || "object" != typeof call && "function" != typeof call ? self : call; 10331 } 10332 function _inherits(subClass, superClass) { 10333 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 10334 subClass.prototype = Object.create(superClass && superClass.prototype, { 10335 constructor: { 10336 value: subClass, 10337 enumerable: !1, 10338 writable: !0, 10339 configurable: !0 10340 } 10341 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 10342 } 10343 function _toConsumableArray(arr) { 10344 if (Array.isArray(arr)) { 10345 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; 10346 return arr2; 10347 } 10348 return Array.from(arr); 10349 } 10350 Object.defineProperty(exports, "__esModule", { 10351 value: !0 10352 }), exports.inserter = void 0; 10353 var _createClass = function() { 10354 function defineProperties(target, props) { 10355 for (var i = 0; i < props.length; i++) { 10356 var descriptor = props[i]; 10357 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 10358 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 10359 } 10360 } 10361 return function(Constructor, protoProps, staticProps) { 10362 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 10363 Constructor; 10364 }; 10365 }(), _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) { 10366 var content = ""; 10367 return records.forEach(function(record) { 10368 var t = record.t, ctx = record.ctx, lvl = record.lvl, msg = record.msg, color = "#ce3c23"; 10369 switch (lvl) { 10370 case "trace": 10371 case "trce": 10372 lvl = "TRACE", color = "#3465a4"; 10373 break; 10374 10375 case "debug": 10376 case "dbug": 10377 lvl = "DEBUG", color = "#3d989b"; 10378 break; 10379 10380 case "info": 10381 lvl = "INFO ", color = "#4c8f0f"; 10382 break; 10383 10384 case "warn": 10385 lvl = "WARN ", color = "#b79a22"; 10386 break; 10387 10388 case "error": 10389 case "eror": 10390 lvl = "ERROR", color = "#754b70"; 10391 break; 10392 10393 case "crit": 10394 lvl = "CRIT ", color = "#ce3c23"; 10395 break; 10396 10397 default: 10398 lvl = ""; 10399 } 10400 var time = new Date(t); 10401 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 />'); 10402 ctx.length > 0 && (msg += " ".repeat(Math.max(40 - msg.length, 0))); 10403 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); 10404 content += '<span style="color:' + color + '">' + lvl + "</span>[" + month + "-" + date + "|" + hours + ":" + minutes + ":" + seconds + "] " + msg; 10405 for (var i = 0; i < ctx.length; i += 2) { 10406 var key = (0, _escapeHtml2.default)(ctx[i]), val = (0, _escapeHtml2.default)(ctx[i + 1]), padding = fieldPadding.get(key); 10407 ("number" != typeof padding || padding < val.length) && (padding = val.length, fieldPadding.set(key, padding)); 10408 var p = ""; 10409 i < ctx.length - 2 && (p = " ".repeat(padding - val.length)), content += ' <span style="color:' + color + '">' + key + "</span>=" + val + p; 10410 } 10411 content += "<br />"; 10412 }), content; 10413 }, ADDED = 1, REMOVED = -1, styles = (exports.inserter = function(limit) { 10414 return function(update, prev) { 10415 if (prev.topChanged = 0, prev.bottomChanged = 0, !Array.isArray(update.chunk) || update.chunk.length < 1) return prev; 10416 Array.isArray(prev.chunks) || (prev.chunks = []); 10417 var content = createChunk(update.chunk); 10418 if (!update.source) return prev.endBottom ? prev.chunks.length < 1 ? [ { 10419 content: content, 10420 name: "00000000000000.log" 10421 } ] : (prev.chunks[prev.chunks.length - 1].content += content, prev.bottomChanged = ADDED, 10422 prev) : prev; 10423 var chunk = { 10424 content: content, 10425 name: update.source.name 10426 }; 10427 return prev.chunks.length > 0 && update.source.name < prev.chunks[0].name ? (update.source.last && (prev.endTop = !0), 10428 prev.chunks.length >= limit && (prev.endBottom = !1, prev.chunks.splice(limit - 1, prev.chunks.length - limit + 1), 10429 prev.bottomChanged = REMOVED), prev.chunks = [ chunk ].concat(_toConsumableArray(prev.chunks)), 10430 prev.topChanged = ADDED, prev) : (update.source.last && (prev.endBottom = !0), prev.chunks.length >= limit && (prev.endTop = !1, 10431 prev.chunks.splice(0, prev.chunks.length - limit + 1), prev.topChanged = REMOVED), 10432 prev.chunks = [].concat(_toConsumableArray(prev.chunks), [ chunk ]), prev.bottomChanged = ADDED, 10433 prev); 10434 }; 10435 }, { 10436 logListItem: { 10437 padding: 0, 10438 lineHeight: 1.231 10439 }, 10440 logChunk: { 10441 color: "white", 10442 fontFamily: "monospace", 10443 whiteSpace: "nowrap", 10444 width: 0 10445 }, 10446 waitMsg: { 10447 textAlign: "center", 10448 color: "white", 10449 fontFamily: "monospace" 10450 } 10451 }), Logs = function(_Component) { 10452 function Logs(props) { 10453 _classCallCheck(this, Logs); 10454 var _this = _possibleConstructorReturn(this, (Logs.__proto__ || Object.getPrototypeOf(Logs)).call(this, props)); 10455 return _this.onScroll = function() { 10456 if (_this.state.requestAllowed && void 0 !== _this.content) { 10457 var logs = _this.props.content.logs; 10458 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)); 10459 } 10460 }, _this.sendRequest = function(name, past) { 10461 _this.setState({ 10462 requestAllowed: !1 10463 }), _this.props.send(JSON.stringify({ 10464 Logs: { 10465 Name: name, 10466 Past: past 10467 } 10468 })); 10469 }, _this.atTop = function() { 10470 return _this.props.container.scrollTop <= _this.props.container.scrollHeight * requestBand; 10471 }, _this.atBottom = function() { 10472 var container = _this.props.container; 10473 return container.scrollHeight - container.scrollTop <= container.clientHeight + container.scrollHeight * requestBand; 10474 }, _this.beforeUpdate = function() { 10475 var firstHeight = 0, chunkList = _this.content.children[1]; 10476 return chunkList && chunkList.children[0] && (firstHeight = chunkList.children[0].clientHeight), 10477 { 10478 scrollTop: _this.props.container.scrollTop, 10479 firstHeight: firstHeight 10480 }; 10481 }, _this.didUpdate = function(prevProps, prevState, snapshot) { 10482 if (void 0 !== _this.props.shouldUpdate.logs && void 0 !== _this.content && null !== snapshot) { 10483 var logs = _this.props.content.logs, container = _this.props.container; 10484 if (!(void 0 === container || logs.chunks.length < 1)) { 10485 if (_this.content.clientHeight < container.clientHeight) return void (logs.endTop || _this.sendRequest(logs.chunks[0].name, !0)); 10486 var scrollTop = snapshot.scrollTop; 10487 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)), 10488 container.scrollTop = scrollTop, _this.setState({ 10489 requestAllowed: !0 10490 }); 10491 } 10492 } 10493 }, _this.content = _react2.default.createRef(), _this.state = { 10494 requestAllowed: !0 10495 }, _this; 10496 } 10497 return _inherits(Logs, _Component), _createClass(Logs, [ { 10498 key: "componentDidMount", 10499 value: function() { 10500 var container = this.props.container; 10501 if (void 0 !== container) { 10502 container.scrollTop = container.scrollHeight - container.clientHeight; 10503 var logs = this.props.content.logs; 10504 void 0 === this.content || logs.chunks.length < 1 || this.content.clientHeight < container.clientHeight && !logs.endTop && this.sendRequest(logs.chunks[0].name, !0); 10505 } 10506 } 10507 }, { 10508 key: "render", 10509 value: function() { 10510 var _this2 = this; 10511 return _react2.default.createElement("div", { 10512 ref: function(_ref) { 10513 _this2.content = _ref; 10514 } 10515 }, _react2.default.createElement("div", { 10516 style: styles.waitMsg 10517 }, 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) { 10518 return _react2.default.createElement(_List.ListItem, { 10519 style: styles.logListItem, 10520 key: index 10521 }, _react2.default.createElement("div", { 10522 style: styles.logChunk, 10523 dangerouslySetInnerHTML: { 10524 __html: c.content 10525 } 10526 })); 10527 })), this.props.content.logs.endBottom || _react2.default.createElement("div", { 10528 style: styles.waitMsg 10529 }, "Waiting for server...")); 10530 } 10531 } ]), Logs; 10532 }(_react.Component); 10533 exports.default = Logs; 10534 }, function(module, exports, __webpack_require__) { 10535 "use strict"; 10536 function _interopRequireDefault(obj) { 10537 return obj && obj.__esModule ? obj : { 10538 default: obj 10539 }; 10540 } 10541 Object.defineProperty(exports, "__esModule", { 10542 value: !0 10543 }); 10544 var _Grid = __webpack_require__(552); 10545 Object.defineProperty(exports, "default", { 10546 enumerable: !0, 10547 get: function() { 10548 return _interopRequireDefault(_Grid).default; 10549 } 10550 }); 10551 }, function(module, exports) { 10552 function isObject(value) { 10553 var type = typeof value; 10554 return null != value && ("object" == type || "function" == type); 10555 } 10556 module.exports = isObject; 10557 }, function(module, exports, __webpack_require__) { 10558 var freeGlobal = __webpack_require__(562), freeSelf = "object" == typeof self && self && self.Object === Object && self, root = freeGlobal || freeSelf || Function("return this")(); 10559 module.exports = root; 10560 }, function(module, exports, __webpack_require__) { 10561 var root = __webpack_require__(264), Symbol = root.Symbol; 10562 module.exports = Symbol; 10563 }, function(module, exports, __webpack_require__) { 10564 var dP = __webpack_require__(575), createDesc = __webpack_require__(580); 10565 module.exports = __webpack_require__(170) ? function(object, key, value) { 10566 return dP.f(object, key, createDesc(1, value)); 10567 } : function(object, key, value) { 10568 return object[key] = value, object; 10569 }; 10570 }, function(module, exports) { 10571 module.exports = Math.log1p || function(x) { 10572 return (x = +x) > -1e-8 && x < 1e-8 ? x - x * x / 2 : Math.log(1 + x); 10573 }; 10574 }, function(module, exports, __webpack_require__) { 10575 (function(global) { 10576 var freeGlobal = "object" == typeof global && global && global.Object === Object && global; 10577 module.exports = freeGlobal; 10578 }).call(exports, __webpack_require__(40)); 10579 }, function(module, exports, __webpack_require__) { 10580 function baseGet(object, path) { 10581 path = castPath(path, object); 10582 for (var index = 0, length = path.length; null != object && index < length; ) object = object[toKey(path[index++])]; 10583 return index && index == length ? object : void 0; 10584 } 10585 var castPath = __webpack_require__(270), toKey = __webpack_require__(119); 10586 module.exports = baseGet; 10587 }, function(module, exports, __webpack_require__) { 10588 function castPath(value, object) { 10589 return isArray(value) ? value : isKey(value, object) ? [ value ] : stringToPath(toString(value)); 10590 } 10591 var isArray = __webpack_require__(13), isKey = __webpack_require__(175), stringToPath = __webpack_require__(605), toString = __webpack_require__(629); 10592 module.exports = castPath; 10593 }, function(module, exports) { 10594 function toSource(func) { 10595 if (null != func) { 10596 try { 10597 return funcToString.call(func); 10598 } catch (e) {} 10599 try { 10600 return func + ""; 10601 } catch (e) {} 10602 } 10603 return ""; 10604 } 10605 var funcProto = Function.prototype, funcToString = funcProto.toString; 10606 module.exports = toSource; 10607 }, function(module, exports, __webpack_require__) { 10608 function isNumber(value) { 10609 return "number" == typeof value || isObjectLike(value) && baseGetTag(value) == numberTag; 10610 } 10611 var baseGetTag = __webpack_require__(41), isObjectLike = __webpack_require__(42), numberTag = "[object Number]"; 10612 module.exports = isNumber; 10613 }, function(module, __webpack_exports__, __webpack_require__) { 10614 "use strict"; 10615 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); 10616 __webpack_exports__.a = function() { 10617 function area(data) { 10618 var i, j, k, d, buffer, n = data.length, defined0 = !1, x0z = new Array(n), y0z = new Array(n); 10619 for (null == context && (output = curve(buffer = Object(__WEBPACK_IMPORTED_MODULE_0_d3_path__.a)())), 10620 i = 0; i <= n; ++i) { 10621 if (!(i < n && defined(d = data[i], i, data)) === defined0) if (defined0 = !defined0) j = i, 10622 output.areaStart(), output.lineStart(); else { 10623 for (output.lineEnd(), output.lineStart(), k = i - 1; k >= j; --k) output.point(x0z[k], y0z[k]); 10624 output.lineEnd(), output.areaEnd(); 10625 } 10626 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])); 10627 } 10628 if (buffer) return output = null, buffer + "" || null; 10629 } 10630 function arealine() { 10631 return Object(__WEBPACK_IMPORTED_MODULE_3__line__.a)().defined(defined).curve(curve).context(context); 10632 } 10633 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; 10634 return area.x = function(_) { 10635 return arguments.length ? (x0 = "function" == typeof _ ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__.a)(+_), 10636 x1 = null, area) : x0; 10637 }, area.x0 = function(_) { 10638 return arguments.length ? (x0 = "function" == typeof _ ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__.a)(+_), 10639 area) : x0; 10640 }, area.x1 = function(_) { 10641 return arguments.length ? (x1 = null == _ ? null : "function" == typeof _ ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__.a)(+_), 10642 area) : x1; 10643 }, area.y = function(_) { 10644 return arguments.length ? (y0 = "function" == typeof _ ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__.a)(+_), 10645 y1 = null, area) : y0; 10646 }, area.y0 = function(_) { 10647 return arguments.length ? (y0 = "function" == typeof _ ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__.a)(+_), 10648 area) : y0; 10649 }, area.y1 = function(_) { 10650 return arguments.length ? (y1 = null == _ ? null : "function" == typeof _ ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__.a)(+_), 10651 area) : y1; 10652 }, area.lineX0 = area.lineY0 = function() { 10653 return arealine().x(x0).y(y0); 10654 }, area.lineY1 = function() { 10655 return arealine().x(x0).y(y1); 10656 }, area.lineX1 = function() { 10657 return arealine().x(x1).y(y0); 10658 }, area.defined = function(_) { 10659 return arguments.length ? (defined = "function" == typeof _ ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__.a)(!!_), 10660 area) : defined; 10661 }, area.curve = function(_) { 10662 return arguments.length ? (curve = _, null != context && (output = curve(context)), 10663 area) : curve; 10664 }, area.context = function(_) { 10665 return arguments.length ? (null == _ ? context = output = null : output = curve(context = _), 10666 area) : context; 10667 }, area; 10668 }; 10669 }, function(module, __webpack_exports__, __webpack_require__) { 10670 "use strict"; 10671 function Radial(curve) { 10672 this._curve = curve; 10673 } 10674 function curveRadial(curve) { 10675 function radial(context) { 10676 return new Radial(curve(context)); 10677 } 10678 return radial._curve = curve, radial; 10679 } 10680 __webpack_require__.d(__webpack_exports__, "a", function() { 10681 return curveRadialLinear; 10682 }), __webpack_exports__.b = curveRadial; 10683 var __WEBPACK_IMPORTED_MODULE_0__linear__ = __webpack_require__(121), curveRadialLinear = curveRadial(__WEBPACK_IMPORTED_MODULE_0__linear__.a); 10684 Radial.prototype = { 10685 areaStart: function() { 10686 this._curve.areaStart(); 10687 }, 10688 areaEnd: function() { 10689 this._curve.areaEnd(); 10690 }, 10691 lineStart: function() { 10692 this._curve.lineStart(); 10693 }, 10694 lineEnd: function() { 10695 this._curve.lineEnd(); 10696 }, 10697 point: function(a, r) { 10698 this._curve.point(r * Math.sin(a), r * -Math.cos(a)); 10699 } 10700 }; 10701 }, function(module, __webpack_exports__, __webpack_require__) { 10702 "use strict"; 10703 function lineRadial(l) { 10704 var c = l.curve; 10705 return l.angle = l.x, delete l.x, l.radius = l.y, delete l.y, l.curve = function(_) { 10706 return arguments.length ? c(Object(__WEBPACK_IMPORTED_MODULE_0__curve_radial__.b)(_)) : c()._curve; 10707 }, l; 10708 } 10709 __webpack_exports__.a = lineRadial; 10710 var __WEBPACK_IMPORTED_MODULE_0__curve_radial__ = __webpack_require__(274); 10711 __webpack_require__(183); 10712 }, function(module, __webpack_exports__, __webpack_require__) { 10713 "use strict"; 10714 __webpack_exports__.a = function(x, y) { 10715 return [ (y = +y) * Math.cos(x -= Math.PI / 2), y * Math.sin(x) ]; 10716 }; 10717 }, function(module, __webpack_exports__, __webpack_require__) { 10718 "use strict"; 10719 __webpack_require__.d(__webpack_exports__, "a", function() { 10720 return slice; 10721 }); 10722 var slice = Array.prototype.slice; 10723 }, function(module, __webpack_exports__, __webpack_require__) { 10724 "use strict"; 10725 var __WEBPACK_IMPORTED_MODULE_0__math__ = __webpack_require__(85); 10726 __webpack_exports__.a = { 10727 draw: function(context, size) { 10728 var r = Math.sqrt(size / __WEBPACK_IMPORTED_MODULE_0__math__.j); 10729 context.moveTo(r, 0), context.arc(0, 0, r, 0, __WEBPACK_IMPORTED_MODULE_0__math__.m); 10730 } 10731 }; 10732 }, function(module, __webpack_exports__, __webpack_require__) { 10733 "use strict"; 10734 __webpack_exports__.a = { 10735 draw: function(context, size) { 10736 var r = Math.sqrt(size / 5) / 2; 10737 context.moveTo(-3 * r, -r), context.lineTo(-r, -r), context.lineTo(-r, -3 * r), 10738 context.lineTo(r, -3 * r), context.lineTo(r, -r), context.lineTo(3 * r, -r), context.lineTo(3 * r, r), 10739 context.lineTo(r, r), context.lineTo(r, 3 * r), context.lineTo(-r, 3 * r), context.lineTo(-r, r), 10740 context.lineTo(-3 * r, r), context.closePath(); 10741 } 10742 }; 10743 }, function(module, __webpack_exports__, __webpack_require__) { 10744 "use strict"; 10745 var tan30 = Math.sqrt(1 / 3), tan30_2 = 2 * tan30; 10746 __webpack_exports__.a = { 10747 draw: function(context, size) { 10748 var y = Math.sqrt(size / tan30_2), x = y * tan30; 10749 context.moveTo(0, -y), context.lineTo(x, 0), context.lineTo(0, y), context.lineTo(-x, 0), 10750 context.closePath(); 10751 } 10752 }; 10753 }, function(module, __webpack_exports__, __webpack_require__) { 10754 "use strict"; 10755 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; 10756 __webpack_exports__.a = { 10757 draw: function(context, size) { 10758 var r = Math.sqrt(.8908130915292852 * size), x = kx * r, y = ky * r; 10759 context.moveTo(0, -r), context.lineTo(x, y); 10760 for (var i = 1; i < 5; ++i) { 10761 var a = __WEBPACK_IMPORTED_MODULE_0__math__.m * i / 5, c = Math.cos(a), s = Math.sin(a); 10762 context.lineTo(s * r, -c * r), context.lineTo(c * x - s * y, s * x + c * y); 10763 } 10764 context.closePath(); 10765 } 10766 }; 10767 }, function(module, __webpack_exports__, __webpack_require__) { 10768 "use strict"; 10769 __webpack_exports__.a = { 10770 draw: function(context, size) { 10771 var w = Math.sqrt(size), x = -w / 2; 10772 context.rect(x, x, w, w); 10773 } 10774 }; 10775 }, function(module, __webpack_exports__, __webpack_require__) { 10776 "use strict"; 10777 var sqrt3 = Math.sqrt(3); 10778 __webpack_exports__.a = { 10779 draw: function(context, size) { 10780 var y = -Math.sqrt(size / (3 * sqrt3)); 10781 context.moveTo(0, 2 * y), context.lineTo(-sqrt3 * y, -y), context.lineTo(sqrt3 * y, -y), 10782 context.closePath(); 10783 } 10784 }; 10785 }, function(module, __webpack_exports__, __webpack_require__) { 10786 "use strict"; 10787 var c = -.5, s = Math.sqrt(3) / 2, k = 1 / Math.sqrt(12), a = 3 * (k / 2 + 1); 10788 __webpack_exports__.a = { 10789 draw: function(context, size) { 10790 var r = Math.sqrt(size / a), x0 = r / 2, y0 = r * k, x1 = x0, y1 = r * k + r, x2 = -x1, y2 = y1; 10791 context.moveTo(x0, y0), context.lineTo(x1, y1), context.lineTo(x2, y2), context.lineTo(c * x0 - s * y0, s * x0 + c * y0), 10792 context.lineTo(c * x1 - s * y1, s * x1 + c * y1), context.lineTo(c * x2 - s * y2, s * x2 + c * y2), 10793 context.lineTo(c * x0 + s * y0, c * y0 - s * x0), context.lineTo(c * x1 + s * y1, c * y1 - s * x1), 10794 context.lineTo(c * x2 + s * y2, c * y2 - s * x2), context.closePath(); 10795 } 10796 }; 10797 }, function(module, __webpack_exports__, __webpack_require__) { 10798 "use strict"; 10799 function CardinalClosed(context, tension) { 10800 this._context = context, this._k = (1 - tension) / 6; 10801 } 10802 __webpack_exports__.a = CardinalClosed; 10803 var __WEBPACK_IMPORTED_MODULE_0__noop__ = __webpack_require__(122), __WEBPACK_IMPORTED_MODULE_1__cardinal__ = __webpack_require__(124); 10804 CardinalClosed.prototype = { 10805 areaStart: __WEBPACK_IMPORTED_MODULE_0__noop__.a, 10806 areaEnd: __WEBPACK_IMPORTED_MODULE_0__noop__.a, 10807 lineStart: function() { 10808 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, 10809 this._point = 0; 10810 }, 10811 lineEnd: function() { 10812 switch (this._point) { 10813 case 1: 10814 this._context.moveTo(this._x3, this._y3), this._context.closePath(); 10815 break; 10816 10817 case 2: 10818 this._context.lineTo(this._x3, this._y3), this._context.closePath(); 10819 break; 10820 10821 case 3: 10822 this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5); 10823 } 10824 }, 10825 point: function(x, y) { 10826 switch (x = +x, y = +y, this._point) { 10827 case 0: 10828 this._point = 1, this._x3 = x, this._y3 = y; 10829 break; 10830 10831 case 1: 10832 this._point = 2, this._context.moveTo(this._x4 = x, this._y4 = y); 10833 break; 10834 10835 case 2: 10836 this._point = 3, this._x5 = x, this._y5 = y; 10837 break; 10838 10839 default: 10840 Object(__WEBPACK_IMPORTED_MODULE_1__cardinal__.b)(this, x, y); 10841 } 10842 this._x0 = this._x1, this._x1 = this._x2, this._x2 = x, this._y0 = this._y1, this._y1 = this._y2, 10843 this._y2 = y; 10844 } 10845 }; 10846 !function custom(tension) { 10847 function cardinal(context) { 10848 return new CardinalClosed(context, tension); 10849 } 10850 return cardinal.tension = function(tension) { 10851 return custom(+tension); 10852 }, cardinal; 10853 }(0); 10854 }, function(module, __webpack_exports__, __webpack_require__) { 10855 "use strict"; 10856 function CardinalOpen(context, tension) { 10857 this._context = context, this._k = (1 - tension) / 6; 10858 } 10859 __webpack_exports__.a = CardinalOpen; 10860 var __WEBPACK_IMPORTED_MODULE_0__cardinal__ = __webpack_require__(124); 10861 CardinalOpen.prototype = { 10862 areaStart: function() { 10863 this._line = 0; 10864 }, 10865 areaEnd: function() { 10866 this._line = NaN; 10867 }, 10868 lineStart: function() { 10869 this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0; 10870 }, 10871 lineEnd: function() { 10872 (this._line || 0 !== this._line && 3 === this._point) && this._context.closePath(), 10873 this._line = 1 - this._line; 10874 }, 10875 point: function(x, y) { 10876 switch (x = +x, y = +y, this._point) { 10877 case 0: 10878 this._point = 1; 10879 break; 10880 10881 case 1: 10882 this._point = 2; 10883 break; 10884 10885 case 2: 10886 this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); 10887 break; 10888 10889 case 3: 10890 this._point = 4; 10891 10892 default: 10893 Object(__WEBPACK_IMPORTED_MODULE_0__cardinal__.b)(this, x, y); 10894 } 10895 this._x0 = this._x1, this._x1 = this._x2, this._x2 = x, this._y0 = this._y1, this._y1 = this._y2, 10896 this._y2 = y; 10897 } 10898 }; 10899 !function custom(tension) { 10900 function cardinal(context) { 10901 return new CardinalOpen(context, tension); 10902 } 10903 return cardinal.tension = function(tension) { 10904 return custom(+tension); 10905 }, cardinal; 10906 }(0); 10907 }, function(module, exports, __webpack_require__) { 10908 "use strict"; 10909 function _interopRequireDefault(obj) { 10910 return obj && obj.__esModule ? obj : { 10911 default: obj 10912 }; 10913 } 10914 function _objectWithoutProperties(obj, keys) { 10915 var target = {}; 10916 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 10917 return target; 10918 } 10919 function _toConsumableArray(arr) { 10920 if (Array.isArray(arr)) { 10921 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; 10922 return arr2; 10923 } 10924 return Array.from(arr); 10925 } 10926 function _defineProperty(obj, key, value) { 10927 return key in obj ? Object.defineProperty(obj, key, { 10928 value: value, 10929 enumerable: !0, 10930 configurable: !0, 10931 writable: !0 10932 }) : obj[key] = value, obj; 10933 } 10934 function _classCallCheck(instance, Constructor) { 10935 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 10936 } 10937 function _possibleConstructorReturn(self, call) { 10938 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 10939 return !call || "object" != typeof call && "function" != typeof call ? self : call; 10940 } 10941 function _inherits(subClass, superClass) { 10942 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 10943 subClass.prototype = Object.create(superClass && superClass.prototype, { 10944 constructor: { 10945 value: subClass, 10946 enumerable: !1, 10947 writable: !0, 10948 configurable: !0 10949 } 10950 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 10951 } 10952 Object.defineProperty(exports, "__esModule", { 10953 value: !0 10954 }); 10955 var _class, _class2, _temp, _isEqual2 = __webpack_require__(288), _isEqual3 = _interopRequireDefault(_isEqual2), _extends = Object.assign || function(target) { 10956 for (var i = 1; i < arguments.length; i++) { 10957 var source = arguments[i]; 10958 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 10959 } 10960 return target; 10961 }, _createClass = function() { 10962 function defineProperties(target, props) { 10963 for (var i = 0; i < props.length; i++) { 10964 var descriptor = props[i]; 10965 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 10966 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 10967 } 10968 } 10969 return function(Constructor, protoProps, staticProps) { 10970 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 10971 Constructor; 10972 }; 10973 }(), _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, 10974 _PureRender2.default)((_temp = _class2 = function(_Component) { 10975 function Animate(props, context) { 10976 _classCallCheck(this, Animate); 10977 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; 10978 if (_this.handleStyleChange = _this.handleStyleChange.bind(_this), _this.changeStyle = _this.changeStyle.bind(_this), 10979 !isActive) return _this.state = { 10980 style: {} 10981 }, "function" == typeof children && (_this.state = { 10982 style: to 10983 }), _possibleConstructorReturn(_this); 10984 if (steps && steps.length) _this.state = { 10985 style: steps[0].style 10986 }; else if (from) { 10987 if ("function" == typeof children) return _this.state = { 10988 style: from 10989 }, _possibleConstructorReturn(_this); 10990 _this.state = { 10991 style: attributeName ? _defineProperty({}, attributeName, from) : from 10992 }; 10993 } else _this.state = { 10994 style: {} 10995 }; 10996 return _this; 10997 } 10998 return _inherits(Animate, _Component), _createClass(Animate, [ { 10999 key: "componentDidMount", 11000 value: function() { 11001 var _props = this.props, isActive = _props.isActive, canBegin = _props.canBegin; 11002 this.mounted = !0, isActive && canBegin && this.runAnimation(this.props); 11003 } 11004 }, { 11005 key: "componentWillReceiveProps", 11006 value: function(nextProps) { 11007 var isActive = nextProps.isActive, canBegin = nextProps.canBegin, attributeName = nextProps.attributeName, shouldReAnimate = nextProps.shouldReAnimate; 11008 if (canBegin) { 11009 if (!isActive) return void this.setState({ 11010 style: attributeName ? _defineProperty({}, attributeName, nextProps.to) : nextProps.to 11011 }); 11012 if (!((0, _isEqual3.default)(this.props.to, nextProps.to) && this.props.canBegin && this.props.isActive)) { 11013 var isTriggered = !this.props.canBegin || !this.props.isActive; 11014 this.manager && this.manager.stop(), this.stopJSAnimation && this.stopJSAnimation(); 11015 var from = isTriggered || shouldReAnimate ? nextProps.from : this.props.to; 11016 this.setState({ 11017 style: attributeName ? _defineProperty({}, attributeName, from) : from 11018 }), this.runAnimation(_extends({}, nextProps, { 11019 from: from, 11020 begin: 0 11021 })); 11022 } 11023 } 11024 } 11025 }, { 11026 key: "componentWillUnmount", 11027 value: function() { 11028 this.mounted = !1, this.unSubscribe && this.unSubscribe(), this.manager && (this.manager.stop(), 11029 this.manager = null), this.stopJSAnimation && this.stopJSAnimation(); 11030 } 11031 }, { 11032 key: "runJSAnimation", 11033 value: function(props) { 11034 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, 11035 _configUpdate2.default)(from, to, (0, _easing.configEasing)(easing), duration, this.changeStyle), finalStartAnimation = function() { 11036 _this2.stopJSAnimation = startAnimation(); 11037 }; 11038 this.manager.start([ onAnimationStart, begin, finalStartAnimation, duration, onAnimationEnd ]); 11039 } 11040 }, { 11041 key: "runStepAnimation", 11042 value: function(props) { 11043 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) { 11044 if (0 === index) return sequence; 11045 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); 11046 if ("function" == typeof easing || "spring" === easing) return [].concat(_toConsumableArray(sequence), [ _this3.runJSAnimation.bind(_this3, { 11047 from: preItem.style, 11048 to: style, 11049 duration: duration, 11050 easing: easing 11051 }), duration ]); 11052 var transition = (0, _util.getTransitionVal)(properties, duration, easing), newStyle = _extends({}, preItem.style, style, { 11053 transition: transition 11054 }); 11055 return [].concat(_toConsumableArray(sequence), [ newStyle, duration, onAnimationEnd ]).filter(_util.identity); 11056 }; 11057 return this.manager.start([ onAnimationStart ].concat(_toConsumableArray(steps.reduce(addStyle, [ initialStyle, Math.max(initialTime, begin) ])), [ props.onAnimationEnd ])); 11058 } 11059 }, { 11060 key: "runAnimation", 11061 value: function(props) { 11062 this.manager || (this.manager = (0, _AnimateManager2.default)()); 11063 var begin = props.begin, duration = props.duration, attributeName = props.attributeName, propsTo = (props.from, 11064 props.to), easing = props.easing, onAnimationStart = props.onAnimationStart, onAnimationEnd = props.onAnimationEnd, steps = props.steps, children = props.children, manager = this.manager; 11065 if (this.unSubscribe = manager.subscribe(this.handleStyleChange), "function" == typeof easing || "function" == typeof children || "spring" === easing) return void this.runJSAnimation(props); 11066 if (steps.length > 1) return void this.runStepAnimation(props); 11067 var to = attributeName ? _defineProperty({}, attributeName, propsTo) : propsTo, transition = (0, 11068 _util.getTransitionVal)(Object.keys(to), duration, easing); 11069 manager.start([ onAnimationStart, begin, _extends({}, to, { 11070 transition: transition 11071 }), duration, onAnimationEnd ]); 11072 } 11073 }, { 11074 key: "handleStyleChange", 11075 value: function(style) { 11076 this.changeStyle(style); 11077 } 11078 }, { 11079 key: "changeStyle", 11080 value: function(style) { 11081 this.mounted && this.setState({ 11082 style: style 11083 }); 11084 } 11085 }, { 11086 key: "render", 11087 value: function() { 11088 var _props2 = this.props, children = _props2.children, isActive = (_props2.begin, 11089 _props2.duration, _props2.attributeName, _props2.easing, _props2.isActive), others = (_props2.steps, 11090 _props2.from, _props2.to, _props2.canBegin, _props2.onAnimationEnd, _props2.shouldReAnimate, 11091 _props2.onAnimationReStart, _objectWithoutProperties(_props2, [ "children", "begin", "duration", "attributeName", "easing", "isActive", "steps", "from", "to", "canBegin", "onAnimationEnd", "shouldReAnimate", "onAnimationReStart" ])), count = _react.Children.count(children), stateStyle = (0, 11092 _util.translateStyle)(this.state.style); 11093 if ("function" == typeof children) return children(stateStyle); 11094 if (!isActive || 0 === count) return children; 11095 var cloneContainer = function(container) { 11096 var _container$props = container.props, _container$props$styl = _container$props.style, style = void 0 === _container$props$styl ? {} : _container$props$styl, className = _container$props.className; 11097 return (0, _react.cloneElement)(container, _extends({}, others, { 11098 style: _extends({}, style, stateStyle), 11099 className: className 11100 })); 11101 }; 11102 if (1 === count) { 11103 _react.Children.only(children); 11104 return cloneContainer(_react.Children.only(children)); 11105 } 11106 return _react2.default.createElement("div", null, _react.Children.map(children, function(child) { 11107 return cloneContainer(child); 11108 })); 11109 } 11110 } ]), Animate; 11111 }(_react.Component), _class2.displayName = "Animate", _class2.propTypes = { 11112 from: _propTypes2.default.oneOfType([ _propTypes2.default.object, _propTypes2.default.string ]), 11113 to: _propTypes2.default.oneOfType([ _propTypes2.default.object, _propTypes2.default.string ]), 11114 attributeName: _propTypes2.default.string, 11115 duration: _propTypes2.default.number, 11116 begin: _propTypes2.default.number, 11117 easing: _propTypes2.default.oneOfType([ _propTypes2.default.string, _propTypes2.default.func ]), 11118 steps: _propTypes2.default.arrayOf(_propTypes2.default.shape({ 11119 duration: _propTypes2.default.number.isRequired, 11120 style: _propTypes2.default.object.isRequired, 11121 easing: _propTypes2.default.oneOfType([ _propTypes2.default.oneOf([ "ease", "ease-in", "ease-out", "ease-in-out", "linear" ]), _propTypes2.default.func ]), 11122 properties: _propTypes2.default.arrayOf("string"), 11123 onAnimationEnd: _propTypes2.default.func 11124 })), 11125 children: _propTypes2.default.oneOfType([ _propTypes2.default.node, _propTypes2.default.func ]), 11126 isActive: _propTypes2.default.bool, 11127 canBegin: _propTypes2.default.bool, 11128 onAnimationEnd: _propTypes2.default.func, 11129 shouldReAnimate: _propTypes2.default.bool, 11130 onAnimationStart: _propTypes2.default.func, 11131 onAnimationReStart: _propTypes2.default.func 11132 }, _class2.defaultProps = { 11133 begin: 0, 11134 duration: 1e3, 11135 from: "", 11136 to: "", 11137 attributeName: "", 11138 easing: "ease", 11139 isActive: !0, 11140 canBegin: !0, 11141 steps: [], 11142 onAnimationEnd: function() {}, 11143 onAnimationStart: function() {} 11144 }, _class = _temp)) || _class; 11145 exports.default = Animate; 11146 }, function(module, exports, __webpack_require__) { 11147 function isEqual(value, other) { 11148 return baseIsEqual(value, other); 11149 } 11150 var baseIsEqual = __webpack_require__(187); 11151 module.exports = isEqual; 11152 }, function(module, exports, __webpack_require__) { 11153 function Stack(entries) { 11154 var data = this.__data__ = new ListCache(entries); 11155 this.size = data.size; 11156 } 11157 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); 11158 Stack.prototype.clear = stackClear, Stack.prototype.delete = stackDelete, Stack.prototype.get = stackGet, 11159 Stack.prototype.has = stackHas, Stack.prototype.set = stackSet, module.exports = Stack; 11160 }, function(module, exports) { 11161 function eq(value, other) { 11162 return value === other || value !== value && other !== other; 11163 } 11164 module.exports = eq; 11165 }, function(module, exports, __webpack_require__) { 11166 function isFunction(value) { 11167 if (!isObject(value)) return !1; 11168 var tag = baseGetTag(value); 11169 return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; 11170 } 11171 var baseGetTag = __webpack_require__(60), isObject = __webpack_require__(189), asyncTag = "[object AsyncFunction]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]"; 11172 module.exports = isFunction; 11173 }, function(module, exports, __webpack_require__) { 11174 (function(global) { 11175 var freeGlobal = "object" == typeof global && global && global.Object === Object && global; 11176 module.exports = freeGlobal; 11177 }).call(exports, __webpack_require__(40)); 11178 }, function(module, exports) { 11179 function toSource(func) { 11180 if (null != func) { 11181 try { 11182 return funcToString.call(func); 11183 } catch (e) {} 11184 try { 11185 return func + ""; 11186 } catch (e) {} 11187 } 11188 return ""; 11189 } 11190 var funcProto = Function.prototype, funcToString = funcProto.toString; 11191 module.exports = toSource; 11192 }, function(module, exports, __webpack_require__) { 11193 function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { 11194 var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length; 11195 if (arrLength != othLength && !(isPartial && othLength > arrLength)) return !1; 11196 var stacked = stack.get(array); 11197 if (stacked && stack.get(other)) return stacked == other; 11198 var index = -1, result = !0, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : void 0; 11199 for (stack.set(array, other), stack.set(other, array); ++index < arrLength; ) { 11200 var arrValue = array[index], othValue = other[index]; 11201 if (customizer) var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack); 11202 if (void 0 !== compared) { 11203 if (compared) continue; 11204 result = !1; 11205 break; 11206 } 11207 if (seen) { 11208 if (!arraySome(other, function(othValue, othIndex) { 11209 if (!cacheHas(seen, othIndex) && (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) return seen.push(othIndex); 11210 })) { 11211 result = !1; 11212 break; 11213 } 11214 } else if (arrValue !== othValue && !equalFunc(arrValue, othValue, bitmask, customizer, stack)) { 11215 result = !1; 11216 break; 11217 } 11218 } 11219 return stack.delete(array), stack.delete(other), result; 11220 } 11221 var SetCache = __webpack_require__(295), arraySome = __webpack_require__(688), cacheHas = __webpack_require__(296), COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; 11222 module.exports = equalArrays; 11223 }, function(module, exports, __webpack_require__) { 11224 function SetCache(values) { 11225 var index = -1, length = null == values ? 0 : values.length; 11226 for (this.__data__ = new MapCache(); ++index < length; ) this.add(values[index]); 11227 } 11228 var MapCache = __webpack_require__(190), setCacheAdd = __webpack_require__(686), setCacheHas = __webpack_require__(687); 11229 SetCache.prototype.add = SetCache.prototype.push = setCacheAdd, SetCache.prototype.has = setCacheHas, 11230 module.exports = SetCache; 11231 }, function(module, exports) { 11232 function cacheHas(cache, key) { 11233 return cache.has(key); 11234 } 11235 module.exports = cacheHas; 11236 }, function(module, exports) { 11237 function arrayFilter(array, predicate) { 11238 for (var index = -1, length = null == array ? 0 : array.length, resIndex = 0, result = []; ++index < length; ) { 11239 var value = array[index]; 11240 predicate(value, index, array) && (result[resIndex++] = value); 11241 } 11242 return result; 11243 } 11244 module.exports = arrayFilter; 11245 }, function(module, exports, __webpack_require__) { 11246 var baseIsArguments = __webpack_require__(701), isObjectLike = __webpack_require__(43), objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty, propertyIsEnumerable = objectProto.propertyIsEnumerable, isArguments = baseIsArguments(function() { 11247 return arguments; 11248 }()) ? baseIsArguments : function(value) { 11249 return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee"); 11250 }; 11251 module.exports = isArguments; 11252 }, function(module, exports, __webpack_require__) { 11253 (function(module) { 11254 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; 11255 module.exports = isBuffer; 11256 }).call(exports, __webpack_require__(131)(module)); 11257 }, function(module, exports) { 11258 function isIndex(value, length) { 11259 var type = typeof value; 11260 return !!(length = null == length ? MAX_SAFE_INTEGER : length) && ("number" == type || "symbol" != type && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length; 11261 } 11262 var MAX_SAFE_INTEGER = 9007199254740991, reIsUint = /^(?:0|[1-9]\d*)$/; 11263 module.exports = isIndex; 11264 }, function(module, exports, __webpack_require__) { 11265 var baseIsTypedArray = __webpack_require__(703), baseUnary = __webpack_require__(302), nodeUtil = __webpack_require__(704), nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray, isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; 11266 module.exports = isTypedArray; 11267 }, function(module, exports) { 11268 function baseUnary(func) { 11269 return function(value) { 11270 return func(value); 11271 }; 11272 } 11273 module.exports = baseUnary; 11274 }, function(module, exports) { 11275 function overArg(func, transform) { 11276 return function(arg) { 11277 return func(transform(arg)); 11278 }; 11279 } 11280 module.exports = overArg; 11281 }, function(module, exports, __webpack_require__) { 11282 (function(global) { 11283 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], 11284 caf = root[vendors[i] + "Cancel" + suffix] || root[vendors[i] + "CancelRequest" + suffix]; 11285 if (!raf || !caf) { 11286 var last = 0, id = 0, queue = []; 11287 raf = function(callback) { 11288 if (0 === queue.length) { 11289 var _now = now(), next = Math.max(0, 1e3 / 60 - (_now - last)); 11290 last = next + _now, setTimeout(function() { 11291 var cp = queue.slice(0); 11292 queue.length = 0; 11293 for (var i = 0; i < cp.length; i++) if (!cp[i].cancelled) try { 11294 cp[i].callback(last); 11295 } catch (e) { 11296 setTimeout(function() { 11297 throw e; 11298 }, 0); 11299 } 11300 }, Math.round(next)); 11301 } 11302 return queue.push({ 11303 handle: ++id, 11304 callback: callback, 11305 cancelled: !1 11306 }), id; 11307 }, caf = function(handle) { 11308 for (var i = 0; i < queue.length; i++) queue[i].handle === handle && (queue[i].cancelled = !0); 11309 }; 11310 } 11311 module.exports = function(fn) { 11312 return raf.call(root, fn); 11313 }, module.exports.cancel = function() { 11314 caf.apply(root, arguments); 11315 }, module.exports.polyfill = function(object) { 11316 object || (object = root), object.requestAnimationFrame = raf, object.cancelAnimationFrame = caf; 11317 }; 11318 }).call(exports, __webpack_require__(40)); 11319 }, function(module, exports, __webpack_require__) { 11320 "use strict"; 11321 function _toConsumableArray(arr) { 11322 if (Array.isArray(arr)) { 11323 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; 11324 return arr2; 11325 } 11326 return Array.from(arr); 11327 } 11328 Object.defineProperty(exports, "__esModule", { 11329 value: !0 11330 }), exports.configEasing = exports.configSpring = exports.configBezier = void 0; 11331 var _util = __webpack_require__(132), cubicBezierFactor = function(c1, c2) { 11332 return [ 0, 3 * c1, 3 * c2 - 6 * c1, 3 * c1 - 3 * c2 + 1 ]; 11333 }, multyTime = function(params, t) { 11334 return params.map(function(param, i) { 11335 return param * Math.pow(t, i); 11336 }).reduce(function(pre, curr) { 11337 return pre + curr; 11338 }); 11339 }, cubicBezier = function(c1, c2) { 11340 return function(t) { 11341 var params = cubicBezierFactor(c1, c2); 11342 return multyTime(params, t); 11343 }; 11344 }, derivativeCubicBezier = function(c1, c2) { 11345 return function(t) { 11346 var params = cubicBezierFactor(c1, c2), newParams = [].concat(_toConsumableArray(params.map(function(param, i) { 11347 return param * i; 11348 }).slice(1)), [ 0 ]); 11349 return multyTime(newParams, t); 11350 }; 11351 }, configBezier = exports.configBezier = function() { 11352 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 11353 var x1 = args[0], y1 = args[1], x2 = args[2], y2 = args[3]; 11354 if (1 === args.length) switch (args[0]) { 11355 case "linear": 11356 x1 = 0, y1 = 0, x2 = 1, y2 = 1; 11357 break; 11358 11359 case "ease": 11360 x1 = .25, y1 = .1, x2 = .25, y2 = 1; 11361 break; 11362 11363 case "ease-in": 11364 x1 = .42, y1 = 0, x2 = 1, y2 = 1; 11365 break; 11366 11367 case "ease-out": 11368 x1 = .42, y1 = 0, x2 = .58, y2 = 1; 11369 break; 11370 11371 case "ease-in-out": 11372 x1 = 0, y1 = 0, x2 = .58, y2 = 1; 11373 break; 11374 11375 default: 11376 (0, _util.warn)(!1, "[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out', instead received %s", args); 11377 } 11378 (0, _util.warn)([ x1, x2, y1, y2 ].every(function(num) { 11379 return "number" == typeof num && num >= 0 && num <= 1; 11380 }), "[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s", args); 11381 var curveX = cubicBezier(x1, x2), curveY = cubicBezier(y1, y2), derCurveX = derivativeCubicBezier(x1, x2), rangeValue = function(value) { 11382 return value > 1 ? 1 : value < 0 ? 0 : value; 11383 }, bezier = function(_t) { 11384 for (var t = _t > 1 ? 1 : _t, x = t, i = 0; i < 8; ++i) { 11385 var evalT = curveX(x) - t, derVal = derCurveX(x); 11386 if (Math.abs(evalT - t) < 1e-4 || derVal < 1e-4) return curveY(x); 11387 x = rangeValue(x - evalT / derVal); 11388 } 11389 return curveY(x); 11390 }; 11391 return bezier.isStepper = !1, bezier; 11392 }, configSpring = exports.configSpring = function() { 11393 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) { 11394 var FSpring = -(currX - destX) * stiff, FDamping = currV * damping, newV = currV + (FSpring - FDamping) * dt / 1e3, newX = currV * dt / 1e3 + currX; 11395 return Math.abs(newX - destX) < 1e-4 && Math.abs(newV) < 1e-4 ? [ destX, 0 ] : [ newX, newV ]; 11396 }; 11397 return stepper.isStepper = !0, stepper.dt = dt, stepper; 11398 }; 11399 exports.configEasing = function() { 11400 for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) args[_key2] = arguments[_key2]; 11401 var easing = args[0]; 11402 if ("string" == typeof easing) switch (easing) { 11403 case "ease": 11404 case "ease-in-out": 11405 case "ease-out": 11406 case "ease-in": 11407 case "linear": 11408 return configBezier(easing); 11409 11410 case "spring": 11411 return configSpring(); 11412 11413 default: 11414 (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); 11415 } 11416 return "function" == typeof easing ? easing : ((0, _util.warn)(!1, "[configEasing]: first argument type should be function or string, instead received %s", args), 11417 null); 11418 }; 11419 }, function(module, exports, __webpack_require__) { 11420 function isStrictComparable(value) { 11421 return value === value && !isObject(value); 11422 } 11423 var isObject = __webpack_require__(189); 11424 module.exports = isStrictComparable; 11425 }, function(module, exports) { 11426 function matchesStrictComparable(key, srcValue) { 11427 return function(object) { 11428 return null != object && (object[key] === srcValue && (void 0 !== srcValue || key in Object(object))); 11429 }; 11430 } 11431 module.exports = matchesStrictComparable; 11432 }, function(module, exports, __webpack_require__) { 11433 function baseGet(object, path) { 11434 path = castPath(path, object); 11435 for (var index = 0, length = path.length; null != object && index < length; ) object = object[toKey(path[index++])]; 11436 return index && index == length ? object : void 0; 11437 } 11438 var castPath = __webpack_require__(309), toKey = __webpack_require__(133); 11439 module.exports = baseGet; 11440 }, function(module, exports, __webpack_require__) { 11441 function castPath(value, object) { 11442 return isArray(value) ? value : isKey(value, object) ? [ value ] : stringToPath(toString(value)); 11443 } 11444 var isArray = __webpack_require__(34), isKey = __webpack_require__(196), stringToPath = __webpack_require__(751), toString = __webpack_require__(754); 11445 module.exports = castPath; 11446 }, function(module, exports, __webpack_require__) { 11447 function debounce(func, wait, options) { 11448 function invokeFunc(time) { 11449 var args = lastArgs, thisArg = lastThis; 11450 return lastArgs = lastThis = void 0, lastInvokeTime = time, result = func.apply(thisArg, args); 11451 } 11452 function leadingEdge(time) { 11453 return lastInvokeTime = time, timerId = setTimeout(timerExpired, wait), leading ? invokeFunc(time) : result; 11454 } 11455 function remainingWait(time) { 11456 var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall; 11457 return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting; 11458 } 11459 function shouldInvoke(time) { 11460 var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime; 11461 return void 0 === lastCallTime || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait; 11462 } 11463 function timerExpired() { 11464 var time = now(); 11465 if (shouldInvoke(time)) return trailingEdge(time); 11466 timerId = setTimeout(timerExpired, remainingWait(time)); 11467 } 11468 function trailingEdge(time) { 11469 return timerId = void 0, trailing && lastArgs ? invokeFunc(time) : (lastArgs = lastThis = void 0, 11470 result); 11471 } 11472 function cancel() { 11473 void 0 !== timerId && clearTimeout(timerId), lastInvokeTime = 0, lastArgs = lastCallTime = lastThis = timerId = void 0; 11474 } 11475 function flush() { 11476 return void 0 === timerId ? result : trailingEdge(now()); 11477 } 11478 function debounced() { 11479 var time = now(), isInvoking = shouldInvoke(time); 11480 if (lastArgs = arguments, lastThis = this, lastCallTime = time, isInvoking) { 11481 if (void 0 === timerId) return leadingEdge(lastCallTime); 11482 if (maxing) return timerId = setTimeout(timerExpired, wait), invokeFunc(lastCallTime); 11483 } 11484 return void 0 === timerId && (timerId = setTimeout(timerExpired, wait)), result; 11485 } 11486 var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = !1, maxing = !1, trailing = !0; 11487 if ("function" != typeof func) throw new TypeError(FUNC_ERROR_TEXT); 11488 return wait = toNumber(wait) || 0, isObject(options) && (leading = !!options.leading, 11489 maxing = "maxWait" in options, maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait, 11490 trailing = "trailing" in options ? !!options.trailing : trailing), debounced.cancel = cancel, 11491 debounced.flush = flush, debounced; 11492 } 11493 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; 11494 module.exports = debounce; 11495 }, function(module, exports, __webpack_require__) { 11496 function toNumber(value) { 11497 if ("number" == typeof value) return value; 11498 if (isSymbol(value)) return NAN; 11499 if (isObject(value)) { 11500 var other = "function" == typeof value.valueOf ? value.valueOf() : value; 11501 value = isObject(other) ? other + "" : other; 11502 } 11503 if ("string" != typeof value) return 0 === value ? value : +value; 11504 value = value.replace(reTrim, ""); 11505 var isBinary = reIsBinary.test(value); 11506 return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value; 11507 } 11508 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; 11509 module.exports = toNumber; 11510 }, function(module, __webpack_exports__, __webpack_require__) { 11511 "use strict"; 11512 (function(process) { 11513 __webpack_require__.d(__webpack_exports__, "a", function() { 11514 return warn; 11515 }); 11516 var isDev = "production" !== process.env.NODE_ENV, warn = function(condition, format, a, b, c, d, e, f) { 11517 if (isDev && "undefined" != typeof console && console.warn && (void 0 === format && console.warn("LogUtils requires an error message argument"), 11518 !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 { 11519 var args = [ a, b, c, d, e, f ], argIndex = 0; 11520 console.warn(format.replace(/%s/g, function() { 11521 return args[argIndex++]; 11522 })); 11523 } 11524 }; 11525 }).call(__webpack_exports__, __webpack_require__(2)); 11526 }, function(module, exports) { 11527 function balanced(a, b, str) { 11528 a instanceof RegExp && (a = maybeMatch(a, str)), b instanceof RegExp && (b = maybeMatch(b, str)); 11529 var r = range(a, b, str); 11530 return r && { 11531 start: r[0], 11532 end: r[1], 11533 pre: str.slice(0, r[0]), 11534 body: str.slice(r[0] + a.length, r[1]), 11535 post: str.slice(r[1] + b.length) 11536 }; 11537 } 11538 function maybeMatch(reg, str) { 11539 var m = str.match(reg); 11540 return m ? m[0] : null; 11541 } 11542 function range(a, b, str) { 11543 var begs, beg, left, right, result, ai = str.indexOf(a), bi = str.indexOf(b, ai + 1), i = ai; 11544 if (ai >= 0 && bi > 0) { 11545 for (begs = [], left = str.length; i >= 0 && !result; ) i == ai ? (begs.push(i), 11546 ai = str.indexOf(a, i + 1)) : 1 == begs.length ? result = [ begs.pop(), bi ] : (beg = begs.pop(), 11547 beg < left && (left = beg, right = bi), bi = str.indexOf(b, i + 1)), i = ai < bi && ai >= 0 ? ai : bi; 11548 begs.length && (result = [ left, right ]); 11549 } 11550 return result; 11551 } 11552 module.exports = balanced, balanced.range = range; 11553 }, function(module, exports, __webpack_require__) { 11554 function Stack(entries) { 11555 var data = this.__data__ = new ListCache(entries); 11556 this.size = data.size; 11557 } 11558 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); 11559 Stack.prototype.clear = stackClear, Stack.prototype.delete = stackDelete, Stack.prototype.get = stackGet, 11560 Stack.prototype.has = stackHas, Stack.prototype.set = stackSet, module.exports = Stack; 11561 }, function(module, exports, __webpack_require__) { 11562 function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { 11563 var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length; 11564 if (arrLength != othLength && !(isPartial && othLength > arrLength)) return !1; 11565 var stacked = stack.get(array); 11566 if (stacked && stack.get(other)) return stacked == other; 11567 var index = -1, result = !0, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : void 0; 11568 for (stack.set(array, other), stack.set(other, array); ++index < arrLength; ) { 11569 var arrValue = array[index], othValue = other[index]; 11570 if (customizer) var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack); 11571 if (void 0 !== compared) { 11572 if (compared) continue; 11573 result = !1; 11574 break; 11575 } 11576 if (seen) { 11577 if (!arraySome(other, function(othValue, othIndex) { 11578 if (!cacheHas(seen, othIndex) && (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) return seen.push(othIndex); 11579 })) { 11580 result = !1; 11581 break; 11582 } 11583 } else if (arrValue !== othValue && !equalFunc(arrValue, othValue, bitmask, customizer, stack)) { 11584 result = !1; 11585 break; 11586 } 11587 } 11588 return stack.delete(array), stack.delete(other), result; 11589 } 11590 var SetCache = __webpack_require__(784), arraySome = __webpack_require__(787), cacheHas = __webpack_require__(788), COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; 11591 module.exports = equalArrays; 11592 }, function(module, exports) { 11593 function arrayPush(array, values) { 11594 for (var index = -1, length = values.length, offset = array.length; ++index < length; ) array[offset + index] = values[index]; 11595 return array; 11596 } 11597 module.exports = arrayPush; 11598 }, function(module, exports, __webpack_require__) { 11599 (function(module) { 11600 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; 11601 module.exports = isBuffer; 11602 }).call(exports, __webpack_require__(131)(module)); 11603 }, function(module, exports, __webpack_require__) { 11604 var baseIsTypedArray = __webpack_require__(803), baseUnary = __webpack_require__(319), nodeUtil = __webpack_require__(804), nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray, isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; 11605 module.exports = isTypedArray; 11606 }, function(module, exports) { 11607 function baseUnary(func) { 11608 return function(value) { 11609 return func(value); 11610 }; 11611 } 11612 module.exports = baseUnary; 11613 }, function(module, exports) { 11614 function overArg(func, transform) { 11615 return function(arg) { 11616 return func(transform(arg)); 11617 }; 11618 } 11619 module.exports = overArg; 11620 }, function(module, exports, __webpack_require__) { 11621 var baseFlatten = __webpack_require__(322), baseOrderBy = __webpack_require__(814), baseRest = __webpack_require__(833), isIterateeCall = __webpack_require__(326), sortBy = baseRest(function(collection, iteratees) { 11622 if (null == collection) return []; 11623 var length = iteratees.length; 11624 return length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1]) ? iteratees = [] : length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2]) && (iteratees = [ iteratees[0] ]), 11625 baseOrderBy(collection, baseFlatten(iteratees, 1), []); 11626 }); 11627 module.exports = sortBy; 11628 }, function(module, exports, __webpack_require__) { 11629 function baseFlatten(array, depth, predicate, isStrict, result) { 11630 var index = -1, length = array.length; 11631 for (predicate || (predicate = isFlattenable), result || (result = []); ++index < length; ) { 11632 var value = array[index]; 11633 depth > 0 && predicate(value) ? depth > 1 ? baseFlatten(value, depth - 1, predicate, isStrict, result) : arrayPush(result, value) : isStrict || (result[result.length] = value); 11634 } 11635 return result; 11636 } 11637 var arrayPush = __webpack_require__(316), isFlattenable = __webpack_require__(813); 11638 module.exports = baseFlatten; 11639 }, function(module, exports, __webpack_require__) { 11640 function isStrictComparable(value) { 11641 return value === value && !isObject(value); 11642 } 11643 var isObject = __webpack_require__(32); 11644 module.exports = isStrictComparable; 11645 }, function(module, exports) { 11646 function matchesStrictComparable(key, srcValue) { 11647 return function(object) { 11648 return null != object && (object[key] === srcValue && (void 0 !== srcValue || key in Object(object))); 11649 }; 11650 } 11651 module.exports = matchesStrictComparable; 11652 }, function(module, exports, __webpack_require__) { 11653 function baseMap(collection, iteratee) { 11654 var index = -1, result = isArrayLike(collection) ? Array(collection.length) : []; 11655 return baseEach(collection, function(value, key, collection) { 11656 result[++index] = iteratee(value, key, collection); 11657 }), result; 11658 } 11659 var baseEach = __webpack_require__(825), isArrayLike = __webpack_require__(134); 11660 module.exports = baseMap; 11661 }, function(module, exports, __webpack_require__) { 11662 function isIterateeCall(value, index, object) { 11663 if (!isObject(object)) return !1; 11664 var type = typeof index; 11665 return !!("number" == type ? isArrayLike(object) && isIndex(index, object.length) : "string" == type && index in object) && eq(object[index], value); 11666 } 11667 var eq = __webpack_require__(177), isArrayLike = __webpack_require__(134), isIndex = __webpack_require__(202), isObject = __webpack_require__(32); 11668 module.exports = isIterateeCall; 11669 }, function(module, exports) { 11670 function baseGt(value, other) { 11671 return value > other; 11672 } 11673 module.exports = baseGt; 11674 }, function(module, exports, __webpack_require__) { 11675 function min(array) { 11676 return array && array.length ? baseExtremum(array, identity, baseLt) : void 0; 11677 } 11678 var baseExtremum = __webpack_require__(135), baseLt = __webpack_require__(329), identity = __webpack_require__(68); 11679 module.exports = min; 11680 }, function(module, exports) { 11681 function baseLt(value, other) { 11682 return value < other; 11683 } 11684 module.exports = baseLt; 11685 }, function(module, exports, __webpack_require__) { 11686 "use strict"; 11687 function _toConsumableArray(arr) { 11688 if (Array.isArray(arr)) { 11689 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; 11690 return arr2; 11691 } 11692 return Array.from(arr); 11693 } 11694 Object.defineProperty(exports, "__esModule", { 11695 value: !0 11696 }); 11697 var identity = function(i) { 11698 return i; 11699 }, PLACE_HOLDER = exports.PLACE_HOLDER = { 11700 "@@functional/placeholder": !0 11701 }, isPlaceHolder = function(val) { 11702 return val === PLACE_HOLDER; 11703 }, curry0 = function(fn) { 11704 return function _curried() { 11705 return 0 === arguments.length || 1 === arguments.length && isPlaceHolder(arguments.length <= 0 ? void 0 : arguments[0]) ? _curried : fn.apply(void 0, arguments); 11706 }; 11707 }, curryN = function curryN(n, fn) { 11708 return 1 === n ? fn : curry0(function() { 11709 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 11710 var argsLength = args.filter(function(arg) { 11711 return arg !== PLACE_HOLDER; 11712 }).length; 11713 return argsLength >= n ? fn.apply(void 0, args) : curryN(n - argsLength, curry0(function() { 11714 for (var _len2 = arguments.length, restArgs = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) restArgs[_key2] = arguments[_key2]; 11715 var newArgs = args.map(function(arg) { 11716 return isPlaceHolder(arg) ? restArgs.shift() : arg; 11717 }); 11718 return fn.apply(void 0, _toConsumableArray(newArgs).concat(restArgs)); 11719 })); 11720 }); 11721 }, curry = exports.curry = function(fn) { 11722 return curryN(fn.length, fn); 11723 }; 11724 exports.range = function(begin, end) { 11725 for (var arr = [], i = begin; i < end; ++i) arr[i - begin] = i; 11726 return arr; 11727 }, exports.map = curry(function(fn, arr) { 11728 return Array.isArray(arr) ? arr.map(fn) : Object.keys(arr).map(function(key) { 11729 return arr[key]; 11730 }).map(fn); 11731 }), exports.compose = function() { 11732 for (var _len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) args[_key3] = arguments[_key3]; 11733 if (!args.length) return identity; 11734 var fns = args.reverse(), firstFn = fns[0], tailsFn = fns.slice(1); 11735 return function() { 11736 return tailsFn.reduce(function(res, fn) { 11737 return fn(res); 11738 }, firstFn.apply(void 0, arguments)); 11739 }; 11740 }, exports.reverse = function(arr) { 11741 return Array.isArray(arr) ? arr.reverse() : arr.split("").reverse.join(""); 11742 }, exports.memoize = function(fn) { 11743 var lastArgs = null, lastResult = null; 11744 return function() { 11745 for (var _len4 = arguments.length, args = Array(_len4), _key4 = 0; _key4 < _len4; _key4++) args[_key4] = arguments[_key4]; 11746 return lastArgs && args.every(function(val, i) { 11747 return val === lastArgs[i]; 11748 }) ? lastResult : (lastArgs = args, lastResult = fn.apply(void 0, args)); 11749 }; 11750 }; 11751 }, function(module, __webpack_exports__, __webpack_require__) { 11752 "use strict"; 11753 Object.defineProperty(__webpack_exports__, "__esModule", { 11754 value: !0 11755 }); 11756 var __WEBPACK_IMPORTED_MODULE_0__src_band__ = __webpack_require__(847); 11757 __webpack_require__.d(__webpack_exports__, "scaleBand", function() { 11758 return __WEBPACK_IMPORTED_MODULE_0__src_band__.a; 11759 }), __webpack_require__.d(__webpack_exports__, "scalePoint", function() { 11760 return __WEBPACK_IMPORTED_MODULE_0__src_band__.b; 11761 }); 11762 var __WEBPACK_IMPORTED_MODULE_1__src_identity__ = __webpack_require__(870); 11763 __webpack_require__.d(__webpack_exports__, "scaleIdentity", function() { 11764 return __WEBPACK_IMPORTED_MODULE_1__src_identity__.a; 11765 }); 11766 var __WEBPACK_IMPORTED_MODULE_2__src_linear__ = __webpack_require__(91); 11767 __webpack_require__.d(__webpack_exports__, "scaleLinear", function() { 11768 return __WEBPACK_IMPORTED_MODULE_2__src_linear__.a; 11769 }); 11770 var __WEBPACK_IMPORTED_MODULE_3__src_log__ = __webpack_require__(893); 11771 __webpack_require__.d(__webpack_exports__, "scaleLog", function() { 11772 return __WEBPACK_IMPORTED_MODULE_3__src_log__.a; 11773 }); 11774 var __WEBPACK_IMPORTED_MODULE_4__src_ordinal__ = __webpack_require__(344); 11775 __webpack_require__.d(__webpack_exports__, "scaleOrdinal", function() { 11776 return __WEBPACK_IMPORTED_MODULE_4__src_ordinal__.a; 11777 }), __webpack_require__.d(__webpack_exports__, "scaleImplicit", function() { 11778 return __WEBPACK_IMPORTED_MODULE_4__src_ordinal__.b; 11779 }); 11780 var __WEBPACK_IMPORTED_MODULE_5__src_pow__ = __webpack_require__(894); 11781 __webpack_require__.d(__webpack_exports__, "scalePow", function() { 11782 return __WEBPACK_IMPORTED_MODULE_5__src_pow__.a; 11783 }), __webpack_require__.d(__webpack_exports__, "scaleSqrt", function() { 11784 return __WEBPACK_IMPORTED_MODULE_5__src_pow__.b; 11785 }); 11786 var __WEBPACK_IMPORTED_MODULE_6__src_quantile__ = __webpack_require__(895); 11787 __webpack_require__.d(__webpack_exports__, "scaleQuantile", function() { 11788 return __WEBPACK_IMPORTED_MODULE_6__src_quantile__.a; 11789 }); 11790 var __WEBPACK_IMPORTED_MODULE_7__src_quantize__ = __webpack_require__(896); 11791 __webpack_require__.d(__webpack_exports__, "scaleQuantize", function() { 11792 return __WEBPACK_IMPORTED_MODULE_7__src_quantize__.a; 11793 }); 11794 var __WEBPACK_IMPORTED_MODULE_8__src_threshold__ = __webpack_require__(897); 11795 __webpack_require__.d(__webpack_exports__, "scaleThreshold", function() { 11796 return __WEBPACK_IMPORTED_MODULE_8__src_threshold__.a; 11797 }); 11798 var __WEBPACK_IMPORTED_MODULE_9__src_time__ = __webpack_require__(360); 11799 __webpack_require__.d(__webpack_exports__, "scaleTime", function() { 11800 return __WEBPACK_IMPORTED_MODULE_9__src_time__.b; 11801 }); 11802 var __WEBPACK_IMPORTED_MODULE_10__src_utcTime__ = __webpack_require__(913); 11803 __webpack_require__.d(__webpack_exports__, "scaleUtc", function() { 11804 return __WEBPACK_IMPORTED_MODULE_10__src_utcTime__.a; 11805 }); 11806 var __WEBPACK_IMPORTED_MODULE_11__src_category10__ = __webpack_require__(914); 11807 __webpack_require__.d(__webpack_exports__, "schemeCategory10", function() { 11808 return __WEBPACK_IMPORTED_MODULE_11__src_category10__.a; 11809 }); 11810 var __WEBPACK_IMPORTED_MODULE_12__src_category20b__ = __webpack_require__(915); 11811 __webpack_require__.d(__webpack_exports__, "schemeCategory20b", function() { 11812 return __WEBPACK_IMPORTED_MODULE_12__src_category20b__.a; 11813 }); 11814 var __WEBPACK_IMPORTED_MODULE_13__src_category20c__ = __webpack_require__(916); 11815 __webpack_require__.d(__webpack_exports__, "schemeCategory20c", function() { 11816 return __WEBPACK_IMPORTED_MODULE_13__src_category20c__.a; 11817 }); 11818 var __WEBPACK_IMPORTED_MODULE_14__src_category20__ = __webpack_require__(917); 11819 __webpack_require__.d(__webpack_exports__, "schemeCategory20", function() { 11820 return __WEBPACK_IMPORTED_MODULE_14__src_category20__.a; 11821 }); 11822 var __WEBPACK_IMPORTED_MODULE_15__src_cubehelix__ = __webpack_require__(918); 11823 __webpack_require__.d(__webpack_exports__, "interpolateCubehelixDefault", function() { 11824 return __WEBPACK_IMPORTED_MODULE_15__src_cubehelix__.a; 11825 }); 11826 var __WEBPACK_IMPORTED_MODULE_16__src_rainbow__ = __webpack_require__(919); 11827 __webpack_require__.d(__webpack_exports__, "interpolateRainbow", function() { 11828 return __WEBPACK_IMPORTED_MODULE_16__src_rainbow__.b; 11829 }), __webpack_require__.d(__webpack_exports__, "interpolateWarm", function() { 11830 return __WEBPACK_IMPORTED_MODULE_16__src_rainbow__.c; 11831 }), __webpack_require__.d(__webpack_exports__, "interpolateCool", function() { 11832 return __WEBPACK_IMPORTED_MODULE_16__src_rainbow__.a; 11833 }); 11834 var __WEBPACK_IMPORTED_MODULE_17__src_viridis__ = __webpack_require__(920); 11835 __webpack_require__.d(__webpack_exports__, "interpolateViridis", function() { 11836 return __WEBPACK_IMPORTED_MODULE_17__src_viridis__.a; 11837 }), __webpack_require__.d(__webpack_exports__, "interpolateMagma", function() { 11838 return __WEBPACK_IMPORTED_MODULE_17__src_viridis__.c; 11839 }), __webpack_require__.d(__webpack_exports__, "interpolateInferno", function() { 11840 return __WEBPACK_IMPORTED_MODULE_17__src_viridis__.b; 11841 }), __webpack_require__.d(__webpack_exports__, "interpolatePlasma", function() { 11842 return __WEBPACK_IMPORTED_MODULE_17__src_viridis__.d; 11843 }); 11844 var __WEBPACK_IMPORTED_MODULE_18__src_sequential__ = __webpack_require__(921); 11845 __webpack_require__.d(__webpack_exports__, "scaleSequential", function() { 11846 return __WEBPACK_IMPORTED_MODULE_18__src_sequential__.a; 11847 }); 11848 }, function(module, __webpack_exports__, __webpack_require__) { 11849 "use strict"; 11850 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; 11851 ascendingBisect.left; 11852 __webpack_exports__.a = bisectRight; 11853 }, function(module, __webpack_exports__, __webpack_require__) { 11854 "use strict"; 11855 function ascendingComparator(f) { 11856 return function(d, x) { 11857 return Object(__WEBPACK_IMPORTED_MODULE_0__ascending__.a)(f(d), x); 11858 }; 11859 } 11860 var __WEBPACK_IMPORTED_MODULE_0__ascending__ = __webpack_require__(69); 11861 __webpack_exports__.a = function(compare) { 11862 return 1 === compare.length && (compare = ascendingComparator(compare)), { 11863 left: function(a, x, lo, hi) { 11864 for (null == lo && (lo = 0), null == hi && (hi = a.length); lo < hi; ) { 11865 var mid = lo + hi >>> 1; 11866 compare(a[mid], x) < 0 ? lo = mid + 1 : hi = mid; 11867 } 11868 return lo; 11869 }, 11870 right: function(a, x, lo, hi) { 11871 for (null == lo && (lo = 0), null == hi && (hi = a.length); lo < hi; ) { 11872 var mid = lo + hi >>> 1; 11873 compare(a[mid], x) > 0 ? hi = mid : lo = mid + 1; 11874 } 11875 return lo; 11876 } 11877 }; 11878 }; 11879 }, function(module, __webpack_exports__, __webpack_require__) { 11880 "use strict"; 11881 function pair(a, b) { 11882 return [ a, b ]; 11883 } 11884 __webpack_exports__.a = pair; 11885 }, function(module, __webpack_exports__, __webpack_require__) { 11886 "use strict"; 11887 var __WEBPACK_IMPORTED_MODULE_0__variance__ = __webpack_require__(336); 11888 __webpack_exports__.a = function(array, f) { 11889 var v = Object(__WEBPACK_IMPORTED_MODULE_0__variance__.a)(array, f); 11890 return v ? Math.sqrt(v) : v; 11891 }; 11892 }, function(module, __webpack_exports__, __webpack_require__) { 11893 "use strict"; 11894 var __WEBPACK_IMPORTED_MODULE_0__number__ = __webpack_require__(90); 11895 __webpack_exports__.a = function(values, valueof) { 11896 var value, delta, n = values.length, m = 0, i = -1, mean = 0, sum = 0; 11897 if (null == valueof) for (;++i < n; ) isNaN(value = Object(__WEBPACK_IMPORTED_MODULE_0__number__.a)(values[i])) || (delta = value - mean, 11898 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, 11899 mean += delta / ++m, sum += delta * (value - mean)); 11900 if (m > 1) return sum / (m - 1); 11901 }; 11902 }, function(module, __webpack_exports__, __webpack_require__) { 11903 "use strict"; 11904 __webpack_exports__.a = function(values, valueof) { 11905 var value, min, max, n = values.length, i = -1; 11906 if (null == valueof) { 11907 for (;++i < n; ) if (null != (value = values[i]) && value >= value) for (min = max = value; ++i < n; ) null != (value = values[i]) && (min > value && (min = value), 11908 max < value && (max = value)); 11909 } 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), 11910 max < value && (max = value)); 11911 return [ min, max ]; 11912 }; 11913 }, function(module, __webpack_exports__, __webpack_require__) { 11914 "use strict"; 11915 __webpack_require__.d(__webpack_exports__, "b", function() { 11916 return slice; 11917 }), __webpack_require__.d(__webpack_exports__, "a", function() { 11918 return map; 11919 }); 11920 var array = Array.prototype, slice = array.slice, map = array.map; 11921 }, function(module, __webpack_exports__, __webpack_require__) { 11922 "use strict"; 11923 __webpack_exports__.a = function(start, stop, step) { 11924 start = +start, stop = +stop, step = (n = arguments.length) < 2 ? (stop = start, 11925 start = 0, 1) : n < 3 ? 1 : +step; 11926 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; 11927 return range; 11928 }; 11929 }, function(module, __webpack_exports__, __webpack_require__) { 11930 "use strict"; 11931 function tickIncrement(start, stop, count) { 11932 var step = (stop - start) / Math.max(0, count), power = Math.floor(Math.log(step) / Math.LN10), error = step / Math.pow(10, power); 11933 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); 11934 } 11935 function tickStep(start, stop, count) { 11936 var step0 = Math.abs(stop - start) / Math.max(0, count), step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)), error = step0 / step1; 11937 return error >= e10 ? step1 *= 10 : error >= e5 ? step1 *= 5 : error >= e2 && (step1 *= 2), 11938 stop < start ? -step1 : step1; 11939 } 11940 __webpack_exports__.b = tickIncrement, __webpack_exports__.c = tickStep; 11941 var e10 = Math.sqrt(50), e5 = Math.sqrt(10), e2 = Math.sqrt(2); 11942 __webpack_exports__.a = function(start, stop, count) { 11943 var reverse, n, ticks, step, i = -1; 11944 if (stop = +stop, start = +start, count = +count, start === stop && count > 0) return [ start ]; 11945 if ((reverse = stop < start) && (n = start, start = stop, stop = n), 0 === (step = tickIncrement(start, stop, count)) || !isFinite(step)) return []; 11946 if (step > 0) for (start = Math.ceil(start / step), stop = Math.floor(stop / step), 11947 ticks = new Array(n = Math.ceil(stop - start + 1)); ++i < n; ) ticks[i] = (start + i) * step; else for (start = Math.floor(start * step), 11948 stop = Math.ceil(stop * step), ticks = new Array(n = Math.ceil(start - stop + 1)); ++i < n; ) ticks[i] = (start - i) / step; 11949 return reverse && ticks.reverse(), ticks; 11950 }; 11951 }, function(module, __webpack_exports__, __webpack_require__) { 11952 "use strict"; 11953 __webpack_exports__.a = function(values) { 11954 return Math.ceil(Math.log(values.length) / Math.LN2) + 1; 11955 }; 11956 }, function(module, __webpack_exports__, __webpack_require__) { 11957 "use strict"; 11958 __webpack_exports__.a = function(values, valueof) { 11959 var value, min, n = values.length, i = -1; 11960 if (null == valueof) { 11961 for (;++i < n; ) if (null != (value = values[i]) && value >= value) for (min = value; ++i < n; ) null != (value = values[i]) && min > value && (min = value); 11962 } 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); 11963 return min; 11964 }; 11965 }, function(module, __webpack_exports__, __webpack_require__) { 11966 "use strict"; 11967 function length(d) { 11968 return d.length; 11969 } 11970 var __WEBPACK_IMPORTED_MODULE_0__min__ = __webpack_require__(342); 11971 __webpack_exports__.a = function(matrix) { 11972 if (!(n = matrix.length)) return []; 11973 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]; 11974 return transpose; 11975 }; 11976 }, function(module, __webpack_exports__, __webpack_require__) { 11977 "use strict"; 11978 function ordinal(range) { 11979 function scale(d) { 11980 var key = d + "", i = index.get(key); 11981 if (!i) { 11982 if (unknown !== implicit) return unknown; 11983 index.set(key, i = domain.push(d)); 11984 } 11985 return range[(i - 1) % range.length]; 11986 } 11987 var index = Object(__WEBPACK_IMPORTED_MODULE_0_d3_collection__.a)(), domain = [], unknown = implicit; 11988 return range = null == range ? [] : __WEBPACK_IMPORTED_MODULE_1__array__.b.call(range), 11989 scale.domain = function(_) { 11990 if (!arguments.length) return domain.slice(); 11991 domain = [], index = Object(__WEBPACK_IMPORTED_MODULE_0_d3_collection__.a)(); 11992 for (var d, key, i = -1, n = _.length; ++i < n; ) index.has(key = (d = _[i]) + "") || index.set(key, domain.push(d)); 11993 return scale; 11994 }, scale.range = function(_) { 11995 return arguments.length ? (range = __WEBPACK_IMPORTED_MODULE_1__array__.b.call(_), 11996 scale) : range.slice(); 11997 }, scale.unknown = function(_) { 11998 return arguments.length ? (unknown = _, scale) : unknown; 11999 }, scale.copy = function() { 12000 return ordinal().domain(domain).range(range).unknown(unknown); 12001 }, scale; 12002 } 12003 __webpack_require__.d(__webpack_exports__, "b", function() { 12004 return implicit; 12005 }), __webpack_exports__.a = ordinal; 12006 var __WEBPACK_IMPORTED_MODULE_0_d3_collection__ = __webpack_require__(864), __WEBPACK_IMPORTED_MODULE_1__array__ = __webpack_require__(62), implicit = { 12007 name: "implicit" 12008 }; 12009 }, function(module, __webpack_exports__, __webpack_require__) { 12010 "use strict"; 12011 __webpack_require__.d(__webpack_exports__, "a", function() { 12012 return deg2rad; 12013 }), __webpack_require__.d(__webpack_exports__, "b", function() { 12014 return rad2deg; 12015 }); 12016 var deg2rad = Math.PI / 180, rad2deg = 180 / Math.PI; 12017 }, function(module, __webpack_exports__, __webpack_require__) { 12018 "use strict"; 12019 function rgbSpline(spline) { 12020 return function(colors) { 12021 var i, color, n = colors.length, r = new Array(n), g = new Array(n), b = new Array(n); 12022 for (i = 0; i < n; ++i) color = Object(__WEBPACK_IMPORTED_MODULE_0_d3_color__.f)(colors[i]), 12023 r[i] = color.r || 0, g[i] = color.g || 0, b[i] = color.b || 0; 12024 return r = spline(r), g = spline(g), b = spline(b), color.opacity = 1, function(t) { 12025 return color.r = r(t), color.g = g(t), color.b = b(t), color + ""; 12026 }; 12027 }; 12028 } 12029 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); 12030 __webpack_exports__.a = function rgbGamma(y) { 12031 function rgb(start, end) { 12032 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); 12033 return function(t) { 12034 return start.r = r(t), start.g = g(t), start.b = b(t), start.opacity = opacity(t), 12035 start + ""; 12036 }; 12037 } 12038 var color = Object(__WEBPACK_IMPORTED_MODULE_3__color__.b)(y); 12039 return rgb.gamma = rgbGamma, rgb; 12040 }(1); 12041 rgbSpline(__WEBPACK_IMPORTED_MODULE_1__basis__.b), rgbSpline(__WEBPACK_IMPORTED_MODULE_2__basisClosed__.a); 12042 }, function(module, __webpack_exports__, __webpack_require__) { 12043 "use strict"; 12044 var __WEBPACK_IMPORTED_MODULE_0__basis__ = __webpack_require__(209); 12045 __webpack_exports__.a = function(values) { 12046 var n = values.length; 12047 return function(t) { 12048 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]; 12049 return Object(__WEBPACK_IMPORTED_MODULE_0__basis__.a)((t - i / n) * n, v0, v1, v2, v3); 12050 }; 12051 }; 12052 }, function(module, __webpack_exports__, __webpack_require__) { 12053 "use strict"; 12054 __webpack_exports__.a = function(x) { 12055 return function() { 12056 return x; 12057 }; 12058 }; 12059 }, function(module, __webpack_exports__, __webpack_require__) { 12060 "use strict"; 12061 var __WEBPACK_IMPORTED_MODULE_0__value__ = __webpack_require__(206); 12062 __webpack_exports__.a = function(a, b) { 12063 var i, nb = b ? b.length : 0, na = a ? Math.min(nb, a.length) : 0, x = new Array(na), c = new Array(nb); 12064 for (i = 0; i < na; ++i) x[i] = Object(__WEBPACK_IMPORTED_MODULE_0__value__.a)(a[i], b[i]); 12065 for (;i < nb; ++i) c[i] = b[i]; 12066 return function(t) { 12067 for (i = 0; i < na; ++i) c[i] = x[i](t); 12068 return c; 12069 }; 12070 }; 12071 }, function(module, __webpack_exports__, __webpack_require__) { 12072 "use strict"; 12073 __webpack_exports__.a = function(a, b) { 12074 var d = new Date(); 12075 return a = +a, b -= a, function(t) { 12076 return d.setTime(a + b * t), d; 12077 }; 12078 }; 12079 }, function(module, __webpack_exports__, __webpack_require__) { 12080 "use strict"; 12081 var __WEBPACK_IMPORTED_MODULE_0__value__ = __webpack_require__(206); 12082 __webpack_exports__.a = function(a, b) { 12083 var k, i = {}, c = {}; 12084 null !== a && "object" == typeof a || (a = {}), null !== b && "object" == typeof b || (b = {}); 12085 for (k in b) k in a ? i[k] = Object(__WEBPACK_IMPORTED_MODULE_0__value__.a)(a[k], b[k]) : c[k] = b[k]; 12086 return function(t) { 12087 for (k in i) c[k] = i[k](t); 12088 return c; 12089 }; 12090 }; 12091 }, function(module, __webpack_exports__, __webpack_require__) { 12092 "use strict"; 12093 function zero(b) { 12094 return function() { 12095 return b; 12096 }; 12097 } 12098 function one(b) { 12099 return function(t) { 12100 return b(t) + ""; 12101 }; 12102 } 12103 var __WEBPACK_IMPORTED_MODULE_0__number__ = __webpack_require__(136), reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, reB = new RegExp(reA.source, "g"); 12104 __webpack_exports__.a = function(a, b) { 12105 var am, bm, bs, bi = reA.lastIndex = reB.lastIndex = 0, i = -1, s = [], q = []; 12106 for (a += "", b += ""; (am = reA.exec(a)) && (bm = reB.exec(b)); ) (bs = bm.index) > bi && (bs = b.slice(bi, bs), 12107 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, 12108 q.push({ 12109 i: i, 12110 x: Object(__WEBPACK_IMPORTED_MODULE_0__number__.a)(am, bm) 12111 })), bi = reB.lastIndex; 12112 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, 12113 function(t) { 12114 for (var o, i = 0; i < b; ++i) s[(o = q[i]).i] = o.x(t); 12115 return s.join(""); 12116 }); 12117 }; 12118 }, function(module, __webpack_exports__, __webpack_require__) { 12119 "use strict"; 12120 __webpack_exports__.a = function(x) { 12121 return +x; 12122 }; 12123 }, function(module, __webpack_exports__, __webpack_require__) { 12124 "use strict"; 12125 var __WEBPACK_IMPORTED_MODULE_0__src_defaultLocale__ = __webpack_require__(884); 12126 __webpack_require__.d(__webpack_exports__, "a", function() { 12127 return __WEBPACK_IMPORTED_MODULE_0__src_defaultLocale__.a; 12128 }), __webpack_require__.d(__webpack_exports__, "b", function() { 12129 return __WEBPACK_IMPORTED_MODULE_0__src_defaultLocale__.b; 12130 }); 12131 var __WEBPACK_IMPORTED_MODULE_2__src_formatSpecifier__ = (__webpack_require__(355), 12132 __webpack_require__(356)); 12133 __webpack_require__.d(__webpack_exports__, "c", function() { 12134 return __WEBPACK_IMPORTED_MODULE_2__src_formatSpecifier__.a; 12135 }); 12136 var __WEBPACK_IMPORTED_MODULE_3__src_precisionFixed__ = __webpack_require__(890); 12137 __webpack_require__.d(__webpack_exports__, "d", function() { 12138 return __WEBPACK_IMPORTED_MODULE_3__src_precisionFixed__.a; 12139 }); 12140 var __WEBPACK_IMPORTED_MODULE_4__src_precisionPrefix__ = __webpack_require__(891); 12141 __webpack_require__.d(__webpack_exports__, "e", function() { 12142 return __WEBPACK_IMPORTED_MODULE_4__src_precisionPrefix__.a; 12143 }); 12144 var __WEBPACK_IMPORTED_MODULE_5__src_precisionRound__ = __webpack_require__(892); 12145 __webpack_require__.d(__webpack_exports__, "f", function() { 12146 return __WEBPACK_IMPORTED_MODULE_5__src_precisionRound__.a; 12147 }); 12148 }, function(module, __webpack_exports__, __webpack_require__) { 12149 "use strict"; 12150 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" ]; 12151 __webpack_exports__.a = function(locale) { 12152 function newFormat(specifier) { 12153 function format(value) { 12154 var i, n, c, valuePrefix = prefix, valueSuffix = suffix; 12155 if ("c" === type) valueSuffix = formatType(value) + valueSuffix, value = ""; else { 12156 value = +value; 12157 var valueNegative = value < 0; 12158 if (value = formatType(Math.abs(value), precision), valueNegative && 0 == +value && (valueNegative = !1), 12159 valuePrefix = (valueNegative ? "(" === sign ? sign : "-" : "-" === sign || "(" === sign ? "" : sign) + valuePrefix, 12160 valueSuffix = ("s" === type ? prefixes[8 + __WEBPACK_IMPORTED_MODULE_5__formatPrefixAuto__.b / 3] : "") + valueSuffix + (valueNegative && "(" === sign ? ")" : ""), 12161 maybeSuffix) for (i = -1, n = value.length; ++i < n; ) if (48 > (c = value.charCodeAt(i)) || c > 57) { 12162 valueSuffix = (46 === c ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix, 12163 value = value.slice(0, i); 12164 break; 12165 } 12166 } 12167 comma && !zero && (value = group(value, 1 / 0)); 12168 var length = valuePrefix.length + value.length + valueSuffix.length, padding = length < width ? new Array(width - length + 1).join(fill) : ""; 12169 switch (comma && zero && (value = group(padding + value, padding.length ? width - valueSuffix.length : 1 / 0), 12170 padding = ""), align) { 12171 case "<": 12172 value = valuePrefix + value + valueSuffix + padding; 12173 break; 12174 12175 case "=": 12176 value = valuePrefix + padding + value + valueSuffix; 12177 break; 12178 12179 case "^": 12180 value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length); 12181 break; 12182 12183 default: 12184 value = padding + valuePrefix + value + valueSuffix; 12185 } 12186 return numerals(value); 12187 } 12188 specifier = Object(__WEBPACK_IMPORTED_MODULE_3__formatSpecifier__.a)(specifier); 12189 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); 12190 return precision = null == precision ? type ? 6 : 12 : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision)) : Math.max(0, Math.min(20, precision)), 12191 format.toString = function() { 12192 return specifier + ""; 12193 }, format; 12194 } 12195 function formatPrefix(specifier, value) { 12196 var f = newFormat((specifier = Object(__WEBPACK_IMPORTED_MODULE_3__formatSpecifier__.a)(specifier), 12197 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]; 12198 return function(value) { 12199 return f(k * value) + prefix; 12200 }; 12201 } 12202 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 || "%"; 12203 return { 12204 format: newFormat, 12205 formatPrefix: formatPrefix 12206 }; 12207 }; 12208 }, function(module, __webpack_exports__, __webpack_require__) { 12209 "use strict"; 12210 function formatSpecifier(specifier) { 12211 return new FormatSpecifier(specifier); 12212 } 12213 function FormatSpecifier(specifier) { 12214 if (!(match = re.exec(specifier))) throw new Error("invalid format: " + specifier); 12215 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] || ""; 12216 "n" === type ? (comma = !0, type = "g") : __WEBPACK_IMPORTED_MODULE_0__formatTypes__.a[type] || (type = ""), 12217 (zero || "0" === fill && "=" === align) && (zero = !0, fill = "0", align = "="), 12218 this.fill = fill, this.align = align, this.sign = sign, this.symbol = symbol, this.zero = zero, 12219 this.width = width, this.comma = comma, this.precision = precision, this.type = type; 12220 } 12221 __webpack_exports__.a = formatSpecifier; 12222 var __WEBPACK_IMPORTED_MODULE_0__formatTypes__ = __webpack_require__(357), re = /^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i; 12223 formatSpecifier.prototype = FormatSpecifier.prototype, FormatSpecifier.prototype.toString = function() { 12224 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; 12225 }; 12226 }, function(module, __webpack_exports__, __webpack_require__) { 12227 "use strict"; 12228 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); 12229 __webpack_exports__.a = { 12230 "": __WEBPACK_IMPORTED_MODULE_0__formatDefault__.a, 12231 "%": function(x, p) { 12232 return (100 * x).toFixed(p); 12233 }, 12234 b: function(x) { 12235 return Math.round(x).toString(2); 12236 }, 12237 c: function(x) { 12238 return x + ""; 12239 }, 12240 d: function(x) { 12241 return Math.round(x).toString(10); 12242 }, 12243 e: function(x, p) { 12244 return x.toExponential(p); 12245 }, 12246 f: function(x, p) { 12247 return x.toFixed(p); 12248 }, 12249 g: function(x, p) { 12250 return x.toPrecision(p); 12251 }, 12252 o: function(x) { 12253 return Math.round(x).toString(8); 12254 }, 12255 p: function(x, p) { 12256 return Object(__WEBPACK_IMPORTED_MODULE_2__formatRounded__.a)(100 * x, p); 12257 }, 12258 r: __WEBPACK_IMPORTED_MODULE_2__formatRounded__.a, 12259 s: __WEBPACK_IMPORTED_MODULE_1__formatPrefixAuto__.a, 12260 X: function(x) { 12261 return Math.round(x).toString(16).toUpperCase(); 12262 }, 12263 x: function(x) { 12264 return Math.round(x).toString(16); 12265 } 12266 }; 12267 }, function(module, __webpack_exports__, __webpack_require__) { 12268 "use strict"; 12269 __webpack_require__.d(__webpack_exports__, "b", function() { 12270 return prefixExponent; 12271 }); 12272 var prefixExponent, __WEBPACK_IMPORTED_MODULE_0__formatDecimal__ = __webpack_require__(211); 12273 __webpack_exports__.a = function(x, p) { 12274 var d = Object(__WEBPACK_IMPORTED_MODULE_0__formatDecimal__.a)(x, p); 12275 if (!d) return x + ""; 12276 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; 12277 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]; 12278 }; 12279 }, function(module, __webpack_exports__, __webpack_require__) { 12280 "use strict"; 12281 __webpack_exports__.a = function(domain, interval) { 12282 domain = domain.slice(); 12283 var t, i0 = 0, i1 = domain.length - 1, x0 = domain[i0], x1 = domain[i1]; 12284 return x1 < x0 && (t = i0, i0 = i1, i1 = t, t = x0, x0 = x1, x1 = t), domain[i0] = interval.floor(x0), 12285 domain[i1] = interval.ceil(x1), domain; 12286 }; 12287 }, function(module, __webpack_exports__, __webpack_require__) { 12288 "use strict"; 12289 function date(t) { 12290 return new Date(t); 12291 } 12292 function number(t) { 12293 return t instanceof Date ? +t : +new Date(+t); 12294 } 12295 function calendar(year, month, week, day, hour, minute, second, millisecond, format) { 12296 function tickFormat(date) { 12297 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); 12298 } 12299 function tickInterval(interval, start, stop, step) { 12300 if (null == interval && (interval = 10), "number" == typeof interval) { 12301 var target = Math.abs(stop - start) / interval, i = Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__.c)(function(i) { 12302 return i[2]; 12303 }).right(tickIntervals, target); 12304 i === tickIntervals.length ? (step = Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__.g)(start / durationYear, stop / durationYear, interval), 12305 interval = year) : i ? (i = tickIntervals[target / tickIntervals[i - 1][2] < tickIntervals[i][2] / target ? i - 1 : i], 12306 step = i[1], interval = i[0]) : (step = Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__.g)(start, stop, interval), 12307 interval = millisecond); 12308 } 12309 return null == step ? interval : interval.every(step); 12310 } 12311 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 ] ]; 12312 return scale.invert = function(y) { 12313 return new Date(invert(y)); 12314 }, scale.domain = function(_) { 12315 return arguments.length ? domain(__WEBPACK_IMPORTED_MODULE_4__array__.a.call(_, number)) : domain().map(date); 12316 }, scale.ticks = function(interval, step) { 12317 var t, d = domain(), t0 = d[0], t1 = d[d.length - 1], r = t1 < t0; 12318 return r && (t = t0, t0 = t1, t1 = t), t = tickInterval(interval, t0, t1, step), 12319 t = t ? t.range(t0, t1 + 1) : [], r ? t.reverse() : t; 12320 }, scale.tickFormat = function(count, specifier) { 12321 return null == specifier ? tickFormat : format(specifier); 12322 }, scale.nice = function(interval, step) { 12323 var d = domain(); 12324 return (interval = tickInterval(interval, d[0], d[d.length - 1], step)) ? domain(Object(__WEBPACK_IMPORTED_MODULE_6__nice__.a)(d, interval)) : scale; 12325 }, scale.copy = function() { 12326 return Object(__WEBPACK_IMPORTED_MODULE_5__continuous__.a)(scale, calendar(year, month, week, day, hour, minute, second, millisecond, format)); 12327 }, scale; 12328 } 12329 __webpack_exports__.a = calendar; 12330 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; 12331 __webpack_exports__.b = function() { 12332 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) ]); 12333 }; 12334 }, function(module, __webpack_exports__, __webpack_require__) { 12335 "use strict"; 12336 var __WEBPACK_IMPORTED_MODULE_0__src_defaultLocale__ = __webpack_require__(213); 12337 __webpack_require__.d(__webpack_exports__, "a", function() { 12338 return __WEBPACK_IMPORTED_MODULE_0__src_defaultLocale__.a; 12339 }), __webpack_require__.d(__webpack_exports__, "b", function() { 12340 return __WEBPACK_IMPORTED_MODULE_0__src_defaultLocale__.b; 12341 }); 12342 __webpack_require__(362), __webpack_require__(363), __webpack_require__(912); 12343 }, function(module, __webpack_exports__, __webpack_require__) { 12344 "use strict"; 12345 function localDate(d) { 12346 if (0 <= d.y && d.y < 100) { 12347 var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L); 12348 return date.setFullYear(d.y), date; 12349 } 12350 return new Date(d.y, d.m, d.d, d.H, d.M, d.S, d.L); 12351 } 12352 function utcDate(d) { 12353 if (0 <= d.y && d.y < 100) { 12354 var date = new Date(Date.UTC(-1, d.m, d.d, d.H, d.M, d.S, d.L)); 12355 return date.setUTCFullYear(d.y), date; 12356 } 12357 return new Date(Date.UTC(d.y, d.m, d.d, d.H, d.M, d.S, d.L)); 12358 } 12359 function newYear(y) { 12360 return { 12361 y: y, 12362 m: 0, 12363 d: 1, 12364 H: 0, 12365 M: 0, 12366 S: 0, 12367 L: 0 12368 }; 12369 } 12370 function formatLocale(locale) { 12371 function newFormat(specifier, formats) { 12372 return function(date) { 12373 var c, pad, format, string = [], i = -1, j = 0, n = specifier.length; 12374 for (date instanceof Date || (date = new Date(+date)); ++i < n; ) 37 === specifier.charCodeAt(i) && (string.push(specifier.slice(j, i)), 12375 null != (pad = pads[c = specifier.charAt(++i)]) ? c = specifier.charAt(++i) : pad = "e" === c ? " " : "0", 12376 (format = formats[c]) && (c = format(date, pad)), string.push(c), j = i + 1); 12377 return string.push(specifier.slice(j, i)), string.join(""); 12378 }; 12379 } 12380 function newParse(specifier, newDate) { 12381 return function(string) { 12382 var week, day, d = newYear(1900), i = parseSpecifier(d, specifier, string += "", 0); 12383 if (i != string.length) return null; 12384 if ("Q" in d) return new Date(d.Q); 12385 if ("p" in d && (d.H = d.H % 12 + 12 * d.p), "V" in d) { 12386 if (d.V < 1 || d.V > 53) return null; 12387 "w" in d || (d.w = 1), "Z" in d ? (week = utcDate(newYear(d.y)), day = week.getUTCDay(), 12388 week = day > 4 || 0 === day ? __WEBPACK_IMPORTED_MODULE_0_d3_time__.p.ceil(week) : Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__.p)(week), 12389 week = __WEBPACK_IMPORTED_MODULE_0_d3_time__.l.offset(week, 7 * (d.V - 1)), d.y = week.getUTCFullYear(), 12390 d.m = week.getUTCMonth(), d.d = week.getUTCDate() + (d.w + 6) % 7) : (week = newDate(newYear(d.y)), 12391 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), 12392 week = __WEBPACK_IMPORTED_MODULE_0_d3_time__.a.offset(week, 7 * (d.V - 1)), d.y = week.getFullYear(), 12393 d.m = week.getMonth(), d.d = week.getDate() + (d.w + 6) % 7); 12394 } else ("W" in d || "U" in d) && ("w" in d || (d.w = "u" in d ? d.u % 7 : "W" in d ? 1 : 0), 12395 day = "Z" in d ? utcDate(newYear(d.y)).getUTCDay() : newDate(newYear(d.y)).getDay(), 12396 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); 12397 return "Z" in d ? (d.H += d.Z / 100 | 0, d.M += d.Z % 100, utcDate(d)) : newDate(d); 12398 }; 12399 } 12400 function parseSpecifier(d, specifier, string, j) { 12401 for (var c, parse, i = 0, n = specifier.length, m = string.length; i < n; ) { 12402 if (j >= m) return -1; 12403 if (37 === (c = specifier.charCodeAt(i++))) { 12404 if (c = specifier.charAt(i++), !(parse = parses[c in pads ? specifier.charAt(i++) : c]) || (j = parse(d, string, j)) < 0) return -1; 12405 } else if (c != string.charCodeAt(j++)) return -1; 12406 } 12407 return j; 12408 } 12409 function parsePeriod(d, string, i) { 12410 var n = periodRe.exec(string.slice(i)); 12411 return n ? (d.p = periodLookup[n[0].toLowerCase()], i + n[0].length) : -1; 12412 } 12413 function parseShortWeekday(d, string, i) { 12414 var n = shortWeekdayRe.exec(string.slice(i)); 12415 return n ? (d.w = shortWeekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1; 12416 } 12417 function parseWeekday(d, string, i) { 12418 var n = weekdayRe.exec(string.slice(i)); 12419 return n ? (d.w = weekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1; 12420 } 12421 function parseShortMonth(d, string, i) { 12422 var n = shortMonthRe.exec(string.slice(i)); 12423 return n ? (d.m = shortMonthLookup[n[0].toLowerCase()], i + n[0].length) : -1; 12424 } 12425 function parseMonth(d, string, i) { 12426 var n = monthRe.exec(string.slice(i)); 12427 return n ? (d.m = monthLookup[n[0].toLowerCase()], i + n[0].length) : -1; 12428 } 12429 function parseLocaleDateTime(d, string, i) { 12430 return parseSpecifier(d, locale_dateTime, string, i); 12431 } 12432 function parseLocaleDate(d, string, i) { 12433 return parseSpecifier(d, locale_date, string, i); 12434 } 12435 function parseLocaleTime(d, string, i) { 12436 return parseSpecifier(d, locale_time, string, i); 12437 } 12438 function formatShortWeekday(d) { 12439 return locale_shortWeekdays[d.getDay()]; 12440 } 12441 function formatWeekday(d) { 12442 return locale_weekdays[d.getDay()]; 12443 } 12444 function formatShortMonth(d) { 12445 return locale_shortMonths[d.getMonth()]; 12446 } 12447 function formatMonth(d) { 12448 return locale_months[d.getMonth()]; 12449 } 12450 function formatPeriod(d) { 12451 return locale_periods[+(d.getHours() >= 12)]; 12452 } 12453 function formatUTCShortWeekday(d) { 12454 return locale_shortWeekdays[d.getUTCDay()]; 12455 } 12456 function formatUTCWeekday(d) { 12457 return locale_weekdays[d.getUTCDay()]; 12458 } 12459 function formatUTCShortMonth(d) { 12460 return locale_shortMonths[d.getUTCMonth()]; 12461 } 12462 function formatUTCMonth(d) { 12463 return locale_months[d.getUTCMonth()]; 12464 } 12465 function formatUTCPeriod(d) { 12466 return locale_periods[+(d.getUTCHours() >= 12)]; 12467 } 12468 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 = { 12469 a: formatShortWeekday, 12470 A: formatWeekday, 12471 b: formatShortMonth, 12472 B: formatMonth, 12473 c: null, 12474 d: formatDayOfMonth, 12475 e: formatDayOfMonth, 12476 f: formatMicroseconds, 12477 H: formatHour24, 12478 I: formatHour12, 12479 j: formatDayOfYear, 12480 L: formatMilliseconds, 12481 m: formatMonthNumber, 12482 M: formatMinutes, 12483 p: formatPeriod, 12484 Q: formatUnixTimestamp, 12485 s: formatUnixTimestampSeconds, 12486 S: formatSeconds, 12487 u: formatWeekdayNumberMonday, 12488 U: formatWeekNumberSunday, 12489 V: formatWeekNumberISO, 12490 w: formatWeekdayNumberSunday, 12491 W: formatWeekNumberMonday, 12492 x: null, 12493 X: null, 12494 y: formatYear, 12495 Y: formatFullYear, 12496 Z: formatZone, 12497 "%": formatLiteralPercent 12498 }, utcFormats = { 12499 a: formatUTCShortWeekday, 12500 A: formatUTCWeekday, 12501 b: formatUTCShortMonth, 12502 B: formatUTCMonth, 12503 c: null, 12504 d: formatUTCDayOfMonth, 12505 e: formatUTCDayOfMonth, 12506 f: formatUTCMicroseconds, 12507 H: formatUTCHour24, 12508 I: formatUTCHour12, 12509 j: formatUTCDayOfYear, 12510 L: formatUTCMilliseconds, 12511 m: formatUTCMonthNumber, 12512 M: formatUTCMinutes, 12513 p: formatUTCPeriod, 12514 Q: formatUnixTimestamp, 12515 s: formatUnixTimestampSeconds, 12516 S: formatUTCSeconds, 12517 u: formatUTCWeekdayNumberMonday, 12518 U: formatUTCWeekNumberSunday, 12519 V: formatUTCWeekNumberISO, 12520 w: formatUTCWeekdayNumberSunday, 12521 W: formatUTCWeekNumberMonday, 12522 x: null, 12523 X: null, 12524 y: formatUTCYear, 12525 Y: formatUTCFullYear, 12526 Z: formatUTCZone, 12527 "%": formatLiteralPercent 12528 }, parses = { 12529 a: parseShortWeekday, 12530 A: parseWeekday, 12531 b: parseShortMonth, 12532 B: parseMonth, 12533 c: parseLocaleDateTime, 12534 d: parseDayOfMonth, 12535 e: parseDayOfMonth, 12536 f: parseMicroseconds, 12537 H: parseHour24, 12538 I: parseHour24, 12539 j: parseDayOfYear, 12540 L: parseMilliseconds, 12541 m: parseMonthNumber, 12542 M: parseMinutes, 12543 p: parsePeriod, 12544 Q: parseUnixTimestamp, 12545 s: parseUnixTimestampSeconds, 12546 S: parseSeconds, 12547 u: parseWeekdayNumberMonday, 12548 U: parseWeekNumberSunday, 12549 V: parseWeekNumberISO, 12550 w: parseWeekdayNumberSunday, 12551 W: parseWeekNumberMonday, 12552 x: parseLocaleDate, 12553 X: parseLocaleTime, 12554 y: parseYear, 12555 Y: parseFullYear, 12556 Z: parseZone, 12557 "%": parseLiteralPercent 12558 }; 12559 return formats.x = newFormat(locale_date, formats), formats.X = newFormat(locale_time, formats), 12560 formats.c = newFormat(locale_dateTime, formats), utcFormats.x = newFormat(locale_date, utcFormats), 12561 utcFormats.X = newFormat(locale_time, utcFormats), utcFormats.c = newFormat(locale_dateTime, utcFormats), 12562 { 12563 format: function(specifier) { 12564 var f = newFormat(specifier += "", formats); 12565 return f.toString = function() { 12566 return specifier; 12567 }, f; 12568 }, 12569 parse: function(specifier) { 12570 var p = newParse(specifier += "", localDate); 12571 return p.toString = function() { 12572 return specifier; 12573 }, p; 12574 }, 12575 utcFormat: function(specifier) { 12576 var f = newFormat(specifier += "", utcFormats); 12577 return f.toString = function() { 12578 return specifier; 12579 }, f; 12580 }, 12581 utcParse: function(specifier) { 12582 var p = newParse(specifier, utcDate); 12583 return p.toString = function() { 12584 return specifier; 12585 }, p; 12586 } 12587 }; 12588 } 12589 function pad(value, fill, width) { 12590 var sign = value < 0 ? "-" : "", string = (sign ? -value : value) + "", length = string.length; 12591 return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string); 12592 } 12593 function requote(s) { 12594 return s.replace(requoteRe, "\\$&"); 12595 } 12596 function formatRe(names) { 12597 return new RegExp("^(?:" + names.map(requote).join("|") + ")", "i"); 12598 } 12599 function formatLookup(names) { 12600 for (var map = {}, i = -1, n = names.length; ++i < n; ) map[names[i].toLowerCase()] = i; 12601 return map; 12602 } 12603 function parseWeekdayNumberSunday(d, string, i) { 12604 var n = numberRe.exec(string.slice(i, i + 1)); 12605 return n ? (d.w = +n[0], i + n[0].length) : -1; 12606 } 12607 function parseWeekdayNumberMonday(d, string, i) { 12608 var n = numberRe.exec(string.slice(i, i + 1)); 12609 return n ? (d.u = +n[0], i + n[0].length) : -1; 12610 } 12611 function parseWeekNumberSunday(d, string, i) { 12612 var n = numberRe.exec(string.slice(i, i + 2)); 12613 return n ? (d.U = +n[0], i + n[0].length) : -1; 12614 } 12615 function parseWeekNumberISO(d, string, i) { 12616 var n = numberRe.exec(string.slice(i, i + 2)); 12617 return n ? (d.V = +n[0], i + n[0].length) : -1; 12618 } 12619 function parseWeekNumberMonday(d, string, i) { 12620 var n = numberRe.exec(string.slice(i, i + 2)); 12621 return n ? (d.W = +n[0], i + n[0].length) : -1; 12622 } 12623 function parseFullYear(d, string, i) { 12624 var n = numberRe.exec(string.slice(i, i + 4)); 12625 return n ? (d.y = +n[0], i + n[0].length) : -1; 12626 } 12627 function parseYear(d, string, i) { 12628 var n = numberRe.exec(string.slice(i, i + 2)); 12629 return n ? (d.y = +n[0] + (+n[0] > 68 ? 1900 : 2e3), i + n[0].length) : -1; 12630 } 12631 function parseZone(d, string, i) { 12632 var n = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(string.slice(i, i + 6)); 12633 return n ? (d.Z = n[1] ? 0 : -(n[2] + (n[3] || "00")), i + n[0].length) : -1; 12634 } 12635 function parseMonthNumber(d, string, i) { 12636 var n = numberRe.exec(string.slice(i, i + 2)); 12637 return n ? (d.m = n[0] - 1, i + n[0].length) : -1; 12638 } 12639 function parseDayOfMonth(d, string, i) { 12640 var n = numberRe.exec(string.slice(i, i + 2)); 12641 return n ? (d.d = +n[0], i + n[0].length) : -1; 12642 } 12643 function parseDayOfYear(d, string, i) { 12644 var n = numberRe.exec(string.slice(i, i + 3)); 12645 return n ? (d.m = 0, d.d = +n[0], i + n[0].length) : -1; 12646 } 12647 function parseHour24(d, string, i) { 12648 var n = numberRe.exec(string.slice(i, i + 2)); 12649 return n ? (d.H = +n[0], i + n[0].length) : -1; 12650 } 12651 function parseMinutes(d, string, i) { 12652 var n = numberRe.exec(string.slice(i, i + 2)); 12653 return n ? (d.M = +n[0], i + n[0].length) : -1; 12654 } 12655 function parseSeconds(d, string, i) { 12656 var n = numberRe.exec(string.slice(i, i + 2)); 12657 return n ? (d.S = +n[0], i + n[0].length) : -1; 12658 } 12659 function parseMilliseconds(d, string, i) { 12660 var n = numberRe.exec(string.slice(i, i + 3)); 12661 return n ? (d.L = +n[0], i + n[0].length) : -1; 12662 } 12663 function parseMicroseconds(d, string, i) { 12664 var n = numberRe.exec(string.slice(i, i + 6)); 12665 return n ? (d.L = Math.floor(n[0] / 1e3), i + n[0].length) : -1; 12666 } 12667 function parseLiteralPercent(d, string, i) { 12668 var n = percentRe.exec(string.slice(i, i + 1)); 12669 return n ? i + n[0].length : -1; 12670 } 12671 function parseUnixTimestamp(d, string, i) { 12672 var n = numberRe.exec(string.slice(i)); 12673 return n ? (d.Q = +n[0], i + n[0].length) : -1; 12674 } 12675 function parseUnixTimestampSeconds(d, string, i) { 12676 var n = numberRe.exec(string.slice(i)); 12677 return n ? (d.Q = 1e3 * +n[0], i + n[0].length) : -1; 12678 } 12679 function formatDayOfMonth(d, p) { 12680 return pad(d.getDate(), p, 2); 12681 } 12682 function formatHour24(d, p) { 12683 return pad(d.getHours(), p, 2); 12684 } 12685 function formatHour12(d, p) { 12686 return pad(d.getHours() % 12 || 12, p, 2); 12687 } 12688 function formatDayOfYear(d, p) { 12689 return pad(1 + __WEBPACK_IMPORTED_MODULE_0_d3_time__.a.count(Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__.k)(d), d), p, 3); 12690 } 12691 function formatMilliseconds(d, p) { 12692 return pad(d.getMilliseconds(), p, 3); 12693 } 12694 function formatMicroseconds(d, p) { 12695 return formatMilliseconds(d, p) + "000"; 12696 } 12697 function formatMonthNumber(d, p) { 12698 return pad(d.getMonth() + 1, p, 2); 12699 } 12700 function formatMinutes(d, p) { 12701 return pad(d.getMinutes(), p, 2); 12702 } 12703 function formatSeconds(d, p) { 12704 return pad(d.getSeconds(), p, 2); 12705 } 12706 function formatWeekdayNumberMonday(d) { 12707 var day = d.getDay(); 12708 return 0 === day ? 7 : day; 12709 } 12710 function formatWeekNumberSunday(d, p) { 12711 return pad(__WEBPACK_IMPORTED_MODULE_0_d3_time__.h.count(Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__.k)(d), d), p, 2); 12712 } 12713 function formatWeekNumberISO(d, p) { 12714 var day = d.getDay(); 12715 return d = day >= 4 || 0 === day ? Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__.i)(d) : __WEBPACK_IMPORTED_MODULE_0_d3_time__.i.ceil(d), 12716 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); 12717 } 12718 function formatWeekdayNumberSunday(d) { 12719 return d.getDay(); 12720 } 12721 function formatWeekNumberMonday(d, p) { 12722 return pad(__WEBPACK_IMPORTED_MODULE_0_d3_time__.e.count(Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__.k)(d), d), p, 2); 12723 } 12724 function formatYear(d, p) { 12725 return pad(d.getFullYear() % 100, p, 2); 12726 } 12727 function formatFullYear(d, p) { 12728 return pad(d.getFullYear() % 1e4, p, 4); 12729 } 12730 function formatZone(d) { 12731 var z = d.getTimezoneOffset(); 12732 return (z > 0 ? "-" : (z *= -1, "+")) + pad(z / 60 | 0, "0", 2) + pad(z % 60, "0", 2); 12733 } 12734 function formatUTCDayOfMonth(d, p) { 12735 return pad(d.getUTCDate(), p, 2); 12736 } 12737 function formatUTCHour24(d, p) { 12738 return pad(d.getUTCHours(), p, 2); 12739 } 12740 function formatUTCHour12(d, p) { 12741 return pad(d.getUTCHours() % 12 || 12, p, 2); 12742 } 12743 function formatUTCDayOfYear(d, p) { 12744 return pad(1 + __WEBPACK_IMPORTED_MODULE_0_d3_time__.l.count(Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__.v)(d), d), p, 3); 12745 } 12746 function formatUTCMilliseconds(d, p) { 12747 return pad(d.getUTCMilliseconds(), p, 3); 12748 } 12749 function formatUTCMicroseconds(d, p) { 12750 return formatUTCMilliseconds(d, p) + "000"; 12751 } 12752 function formatUTCMonthNumber(d, p) { 12753 return pad(d.getUTCMonth() + 1, p, 2); 12754 } 12755 function formatUTCMinutes(d, p) { 12756 return pad(d.getUTCMinutes(), p, 2); 12757 } 12758 function formatUTCSeconds(d, p) { 12759 return pad(d.getUTCSeconds(), p, 2); 12760 } 12761 function formatUTCWeekdayNumberMonday(d) { 12762 var dow = d.getUTCDay(); 12763 return 0 === dow ? 7 : dow; 12764 } 12765 function formatUTCWeekNumberSunday(d, p) { 12766 return pad(__WEBPACK_IMPORTED_MODULE_0_d3_time__.s.count(Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__.v)(d), d), p, 2); 12767 } 12768 function formatUTCWeekNumberISO(d, p) { 12769 var day = d.getUTCDay(); 12770 return d = day >= 4 || 0 === day ? Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__.t)(d) : __WEBPACK_IMPORTED_MODULE_0_d3_time__.t.ceil(d), 12771 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); 12772 } 12773 function formatUTCWeekdayNumberSunday(d) { 12774 return d.getUTCDay(); 12775 } 12776 function formatUTCWeekNumberMonday(d, p) { 12777 return pad(__WEBPACK_IMPORTED_MODULE_0_d3_time__.p.count(Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__.v)(d), d), p, 2); 12778 } 12779 function formatUTCYear(d, p) { 12780 return pad(d.getUTCFullYear() % 100, p, 2); 12781 } 12782 function formatUTCFullYear(d, p) { 12783 return pad(d.getUTCFullYear() % 1e4, p, 4); 12784 } 12785 function formatUTCZone() { 12786 return "+0000"; 12787 } 12788 function formatLiteralPercent() { 12789 return "%"; 12790 } 12791 function formatUnixTimestamp(d) { 12792 return +d; 12793 } 12794 function formatUnixTimestampSeconds(d) { 12795 return Math.floor(+d / 1e3); 12796 } 12797 __webpack_exports__.a = formatLocale; 12798 var __WEBPACK_IMPORTED_MODULE_0_d3_time__ = __webpack_require__(212), pads = { 12799 "-": "", 12800 _: " ", 12801 "0": "0" 12802 }, numberRe = /^\s*\d+/, percentRe = /^%/, requoteRe = /[\\^$*+?|[\]().{}]/g; 12803 }, function(module, __webpack_exports__, __webpack_require__) { 12804 "use strict"; 12805 function formatIsoNative(date) { 12806 return date.toISOString(); 12807 } 12808 __webpack_require__.d(__webpack_exports__, "a", function() { 12809 return isoSpecifier; 12810 }); 12811 var __WEBPACK_IMPORTED_MODULE_0__defaultLocale__ = __webpack_require__(213), isoSpecifier = "%Y-%m-%dT%H:%M:%S.%LZ"; 12812 Date.prototype.toISOString || Object(__WEBPACK_IMPORTED_MODULE_0__defaultLocale__.b)(isoSpecifier); 12813 }, function(module, __webpack_exports__, __webpack_require__) { 12814 "use strict"; 12815 function _classCallCheck(instance, Constructor) { 12816 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 12817 } 12818 function _possibleConstructorReturn(self, call) { 12819 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 12820 return !call || "object" != typeof call && "function" != typeof call ? self : call; 12821 } 12822 function _inherits(subClass, superClass) { 12823 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 12824 subClass.prototype = Object.create(superClass && superClass.prototype, { 12825 constructor: { 12826 value: subClass, 12827 enumerable: !1, 12828 writable: !0, 12829 configurable: !0 12830 } 12831 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 12832 } 12833 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) { 12834 for (var i = 1; i < arguments.length; i++) { 12835 var source = arguments[i]; 12836 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 12837 } 12838 return target; 12839 }, _createClass = function() { 12840 function defineProperties(target, props) { 12841 for (var i = 0; i < props.length; i++) { 12842 var descriptor = props[i]; 12843 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 12844 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 12845 } 12846 } 12847 return function(Constructor, protoProps, staticProps) { 12848 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 12849 Constructor; 12850 }; 12851 }(), ReferenceDot = Object(__WEBPACK_IMPORTED_MODULE_4__util_PureRender__.a)((_temp = _class2 = function(_Component) { 12852 function ReferenceDot() { 12853 return _classCallCheck(this, ReferenceDot), _possibleConstructorReturn(this, (ReferenceDot.__proto__ || Object.getPrototypeOf(ReferenceDot)).apply(this, arguments)); 12854 } 12855 return _inherits(ReferenceDot, _Component), _createClass(ReferenceDot, [ { 12856 key: "getCoordinate", 12857 value: function() { 12858 var _props = this.props, x = _props.x, y = _props.y, xAxis = _props.xAxis, yAxis = _props.yAxis, xScale = xAxis.scale, yScale = yAxis.scale, result = { 12859 cx: xScale(x) + (xScale.bandwidth ? xScale.bandwidth() / 2 : 0), 12860 cy: yScale(y) + (yScale.bandwidth ? yScale.bandwidth() / 2 : 0) 12861 }; 12862 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; 12863 } 12864 }, { 12865 key: "renderDot", 12866 value: function(option, props) { 12867 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, { 12868 cx: props.cx, 12869 cy: props.cy, 12870 className: "recharts-reference-dot-dot" 12871 })); 12872 } 12873 }, { 12874 key: "render", 12875 value: function() { 12876 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); 12877 if (!isX || !isY) return null; 12878 var coordinate = this.getCoordinate(); 12879 if (!coordinate) return null; 12880 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); 12881 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__container_Layer__.a, { 12882 className: __WEBPACK_IMPORTED_MODULE_3_classnames___default()("recharts-reference-dot", className) 12883 }, this.renderDot(shape, dotProps), __WEBPACK_IMPORTED_MODULE_8__component_Label__.a.renderCallByParent(this.props, { 12884 x: coordinate.cx - r, 12885 y: coordinate.cy - r, 12886 width: 2 * r, 12887 height: 2 * r 12888 })); 12889 } 12890 } ]), ReferenceDot; 12891 }(__WEBPACK_IMPORTED_MODULE_1_react__.Component), _class2.displayName = "ReferenceDot", 12892 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_7__util_ReactUtils__.c, __WEBPACK_IMPORTED_MODULE_7__util_ReactUtils__.a, { 12893 r: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 12894 xAxis: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.shape({ 12895 scale: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func 12896 }), 12897 yAxis: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.shape({ 12898 scale: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func 12899 }), 12900 isFront: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, 12901 alwaysShow: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, 12902 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 ]), 12903 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 ]), 12904 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 ]), 12905 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 ]), 12906 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 ]), 12907 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 ]) 12908 }), _class2.defaultProps = { 12909 isFront: !1, 12910 alwaysShow: !1, 12911 xAxisId: 0, 12912 yAxisId: 0, 12913 r: 10, 12914 fill: "#fff", 12915 stroke: "#ccc", 12916 fillOpacity: 1, 12917 strokeWidth: 1 12918 }, _class = _temp)) || _class; 12919 __webpack_exports__.a = ReferenceDot; 12920 }, function(module, __webpack_exports__, __webpack_require__) { 12921 "use strict"; 12922 function _classCallCheck(instance, Constructor) { 12923 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 12924 } 12925 function _possibleConstructorReturn(self, call) { 12926 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 12927 return !call || "object" != typeof call && "function" != typeof call ? self : call; 12928 } 12929 function _inherits(subClass, superClass) { 12930 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 12931 subClass.prototype = Object.create(superClass && superClass.prototype, { 12932 constructor: { 12933 value: subClass, 12934 enumerable: !1, 12935 writable: !0, 12936 configurable: !0 12937 } 12938 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 12939 } 12940 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() { 12941 function sliceIterator(arr, i) { 12942 var _arr = [], _n = !0, _d = !1, _e = void 0; 12943 try { 12944 for (var _s, _i = arr[Symbol.iterator](); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), 12945 !i || _arr.length !== i); _n = !0) ; 12946 } catch (err) { 12947 _d = !0, _e = err; 12948 } finally { 12949 try { 12950 !_n && _i.return && _i.return(); 12951 } finally { 12952 if (_d) throw _e; 12953 } 12954 } 12955 return _arr; 12956 } 12957 return function(arr, i) { 12958 if (Array.isArray(arr)) return arr; 12959 if (Symbol.iterator in Object(arr)) return sliceIterator(arr, i); 12960 throw new TypeError("Invalid attempt to destructure non-iterable instance"); 12961 }; 12962 }(), _createClass = function() { 12963 function defineProperties(target, props) { 12964 for (var i = 0; i < props.length; i++) { 12965 var descriptor = props[i]; 12966 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 12967 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 12968 } 12969 } 12970 return function(Constructor, protoProps, staticProps) { 12971 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 12972 Constructor; 12973 }; 12974 }(), _extends = Object.assign || function(target) { 12975 for (var i = 1; i < arguments.length; i++) { 12976 var source = arguments[i]; 12977 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 12978 } 12979 return target; 12980 }, renderLine = function(option, props) { 12981 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, { 12982 className: "recharts-reference-line-line" 12983 })); 12984 }, ReferenceLine = Object(__WEBPACK_IMPORTED_MODULE_4__util_PureRender__.a)((_temp = _class2 = function(_Component) { 12985 function ReferenceLine() { 12986 return _classCallCheck(this, ReferenceLine), _possibleConstructorReturn(this, (ReferenceLine.__proto__ || Object.getPrototypeOf(ReferenceLine)).apply(this, arguments)); 12987 } 12988 return _inherits(ReferenceLine, _Component), _createClass(ReferenceLine, [ { 12989 key: "getEndPoints", 12990 value: function(isX, isY) { 12991 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; 12992 if (isY) { 12993 var value = this.props.y, scale = yAxis.scale, offset = scale.bandwidth ? scale.bandwidth() / 2 : 0, coord = scale(value) + offset; 12994 if (Object(__WEBPACK_IMPORTED_MODULE_9__util_ChartUtils__.D)(coord, scale)) return "left" === yAxis.orientation ? [ { 12995 x: x, 12996 y: coord 12997 }, { 12998 x: x + width, 12999 y: coord 13000 } ] : [ { 13001 x: x + width, 13002 y: coord 13003 }, { 13004 x: x, 13005 y: coord 13006 } ]; 13007 } else if (isX) { 13008 var _value = this.props.x, _scale = xAxis.scale, _offset = _scale.bandwidth ? _scale.bandwidth() / 2 : 0, _coord = _scale(_value) + _offset; 13009 if (Object(__WEBPACK_IMPORTED_MODULE_9__util_ChartUtils__.D)(_coord, _scale)) return "top" === xAxis.orientation ? [ { 13010 x: _coord, 13011 y: y 13012 }, { 13013 x: _coord, 13014 y: y + height 13015 } ] : [ { 13016 x: _coord, 13017 y: y + height 13018 }, { 13019 x: _coord, 13020 y: y 13021 } ]; 13022 } 13023 return null; 13024 } 13025 }, { 13026 key: "render", 13027 value: function() { 13028 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); 13029 if (!isX && !isY) return null; 13030 var endPoints = this.getEndPoints(isX, isY); 13031 if (!endPoints) return null; 13032 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), { 13033 x1: start.x, 13034 y1: start.y, 13035 x2: end.x, 13036 y2: end.y 13037 }); 13038 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__container_Layer__.a, { 13039 className: __WEBPACK_IMPORTED_MODULE_3_classnames___default()("recharts-reference-line", className) 13040 }, renderLine(shape, props), __WEBPACK_IMPORTED_MODULE_7__component_Label__.a.renderCallByParent(this.props, { 13041 x: Math.min(props.x1, props.x2), 13042 y: Math.min(props.y1, props.y2), 13043 width: Math.abs(props.x2 - props.x1), 13044 height: Math.abs(props.y2 - props.y1) 13045 })); 13046 } 13047 } ]), ReferenceLine; 13048 }(__WEBPACK_IMPORTED_MODULE_1_react__.Component), _class2.displayName = "ReferenceLine", 13049 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_6__util_ReactUtils__.c, { 13050 viewBox: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.shape({ 13051 x: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 13052 y: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 13053 width: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 13054 height: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number 13055 }), 13056 xAxis: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object, 13057 yAxis: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object, 13058 isFront: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, 13059 alwaysShow: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, 13060 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 ]), 13061 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 ]), 13062 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 ]), 13063 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 ]), 13064 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 ]), 13065 shape: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func 13066 }), _class2.defaultProps = { 13067 isFront: !1, 13068 alwaysShow: !1, 13069 xAxisId: 0, 13070 yAxisId: 0, 13071 fill: "none", 13072 stroke: "#ccc", 13073 fillOpacity: 1, 13074 strokeWidth: 1 13075 }, _class = _temp)) || _class; 13076 __webpack_exports__.a = ReferenceLine; 13077 }, function(module, __webpack_exports__, __webpack_require__) { 13078 "use strict"; 13079 function _classCallCheck(instance, Constructor) { 13080 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 13081 } 13082 function _possibleConstructorReturn(self, call) { 13083 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 13084 return !call || "object" != typeof call && "function" != typeof call ? self : call; 13085 } 13086 function _inherits(subClass, superClass) { 13087 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 13088 subClass.prototype = Object.create(superClass && superClass.prototype, { 13089 constructor: { 13090 value: subClass, 13091 enumerable: !1, 13092 writable: !0, 13093 configurable: !0 13094 } 13095 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 13096 } 13097 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) { 13098 for (var i = 1; i < arguments.length; i++) { 13099 var source = arguments[i]; 13100 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 13101 } 13102 return target; 13103 }, _createClass = function() { 13104 function defineProperties(target, props) { 13105 for (var i = 0; i < props.length; i++) { 13106 var descriptor = props[i]; 13107 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 13108 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 13109 } 13110 } 13111 return function(Constructor, protoProps, staticProps) { 13112 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 13113 Constructor; 13114 }; 13115 }(), ReferenceArea = Object(__WEBPACK_IMPORTED_MODULE_4__util_PureRender__.a)((_temp = _class2 = function(_Component) { 13116 function ReferenceArea() { 13117 return _classCallCheck(this, ReferenceArea), _possibleConstructorReturn(this, (ReferenceArea.__proto__ || Object.getPrototypeOf(ReferenceArea)).apply(this, arguments)); 13118 } 13119 return _inherits(ReferenceArea, _Component), _createClass(ReferenceArea, [ { 13120 key: "getRect", 13121 value: function(hasX1, hasX2, hasY1, hasY2) { 13122 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; 13123 return x1 = hasX1 ? xScale(xValue1) + xOffset : xRange[0], x2 = hasX2 ? xScale(xValue2) + xOffset : xRange[1], 13124 y1 = hasY1 ? yScale(yValue1) + yOffset : yRange[0], y2 = hasY2 ? yScale(yValue2) + yOffset : yRange[1], 13125 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) ? { 13126 x: Math.min(x1, x2), 13127 y: Math.min(y1, y2), 13128 width: Math.abs(x2 - x1), 13129 height: Math.abs(y2 - y1) 13130 } : null; 13131 } 13132 }, { 13133 key: "renderRect", 13134 value: function(option, props) { 13135 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, { 13136 className: "recharts-reference-area-rect" 13137 })); 13138 } 13139 }, { 13140 key: "render", 13141 value: function() { 13142 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); 13143 if (!(hasX1 || hasX2 || hasY1 || hasY2)) return null; 13144 var rect = this.getRect(hasX1, hasX2, hasY1, hasY2); 13145 if (!rect) return null; 13146 var shape = this.props.shape; 13147 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__container_Layer__.a, { 13148 className: __WEBPACK_IMPORTED_MODULE_3_classnames___default()("recharts-reference-area", className) 13149 }, this.renderRect(shape, _extends({}, this.props, rect)), __WEBPACK_IMPORTED_MODULE_6__component_Label__.a.renderCallByParent(this.props, rect)); 13150 } 13151 } ]), ReferenceArea; 13152 }(__WEBPACK_IMPORTED_MODULE_1_react__.Component), _class2.displayName = "ReferenceArea", 13153 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_7__util_ReactUtils__.c, { 13154 viewBox: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.shape({ 13155 x: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 13156 y: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 13157 width: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 13158 height: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number 13159 }), 13160 xAxis: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object, 13161 yAxis: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object, 13162 isFront: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, 13163 alwaysShow: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, 13164 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 ]), 13165 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 ]), 13166 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 ]), 13167 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 ]), 13168 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 ]), 13169 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 ]), 13170 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 ]), 13171 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 ]) 13172 }), _class2.defaultProps = { 13173 isFront: !1, 13174 alwaysShow: !1, 13175 xAxisId: 0, 13176 yAxisId: 0, 13177 r: 10, 13178 fill: "#ccc", 13179 fillOpacity: .5, 13180 stroke: "none", 13181 strokeWidth: 1 13182 }, _class = _temp)) || _class; 13183 __webpack_exports__.a = ReferenceArea; 13184 }, function(module, __webpack_exports__, __webpack_require__) { 13185 "use strict"; 13186 function _classCallCheck(instance, Constructor) { 13187 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 13188 } 13189 function _possibleConstructorReturn(self, call) { 13190 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 13191 return !call || "object" != typeof call && "function" != typeof call ? self : call; 13192 } 13193 function _inherits(subClass, superClass) { 13194 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 13195 subClass.prototype = Object.create(superClass && superClass.prototype, { 13196 constructor: { 13197 value: subClass, 13198 enumerable: !1, 13199 writable: !0, 13200 configurable: !0 13201 } 13202 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 13203 } 13204 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) { 13205 for (var i = 1; i < arguments.length; i++) { 13206 var source = arguments[i]; 13207 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 13208 } 13209 return target; 13210 }, _createClass = function() { 13211 function defineProperties(target, props) { 13212 for (var i = 0; i < props.length; i++) { 13213 var descriptor = props[i]; 13214 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 13215 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 13216 } 13217 } 13218 return function(Constructor, protoProps, staticProps) { 13219 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 13220 Constructor; 13221 }; 13222 }(), Cross = Object(__WEBPACK_IMPORTED_MODULE_3__util_PureRender__.a)((_temp = _class2 = function(_Component) { 13223 function Cross() { 13224 return _classCallCheck(this, Cross), _possibleConstructorReturn(this, (Cross.__proto__ || Object.getPrototypeOf(Cross)).apply(this, arguments)); 13225 } 13226 return _inherits(Cross, _Component), _createClass(Cross, [ { 13227 key: "getPath", 13228 value: function(x, y, width, height, top, left) { 13229 return "M" + x + "," + top + "v" + height + "M" + left + "," + y + "h" + width; 13230 } 13231 }, { 13232 key: "render", 13233 value: function() { 13234 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; 13235 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), { 13236 className: __WEBPACK_IMPORTED_MODULE_2_classnames___default()("recharts-cross", className), 13237 d: this.getPath(x, y, width, height, top, left) 13238 })) : null; 13239 } 13240 } ]), Cross; 13241 }(__WEBPACK_IMPORTED_MODULE_0_react__.Component), _class2.displayName = "Cross", 13242 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_5__util_ReactUtils__.c, { 13243 x: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 13244 y: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 13245 width: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 13246 height: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 13247 top: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 13248 left: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 13249 className: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string 13250 }), _class2.defaultProps = { 13251 x: 0, 13252 y: 0, 13253 top: 0, 13254 left: 0, 13255 width: 0, 13256 height: 0 13257 }, _class = _temp)) || _class; 13258 __webpack_exports__.a = Cross; 13259 }, function(module, exports, __webpack_require__) { 13260 function maxBy(array, iteratee) { 13261 return array && array.length ? baseExtremum(array, baseIteratee(iteratee, 2), baseGt) : void 0; 13262 } 13263 var baseExtremum = __webpack_require__(135), baseGt = __webpack_require__(327), baseIteratee = __webpack_require__(89); 13264 module.exports = maxBy; 13265 }, function(module, __webpack_exports__, __webpack_require__) { 13266 "use strict"; 13267 function _classCallCheck(instance, Constructor) { 13268 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 13269 } 13270 function _possibleConstructorReturn(self, call) { 13271 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 13272 return !call || "object" != typeof call && "function" != typeof call ? self : call; 13273 } 13274 function _inherits(subClass, superClass) { 13275 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 13276 subClass.prototype = Object.create(superClass && superClass.prototype, { 13277 constructor: { 13278 value: subClass, 13279 enumerable: !1, 13280 writable: !0, 13281 configurable: !0 13282 } 13283 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 13284 } 13285 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) { 13286 for (var i = 1; i < arguments.length; i++) { 13287 var source = arguments[i]; 13288 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 13289 } 13290 return target; 13291 }, _createClass = function() { 13292 function defineProperties(target, props) { 13293 for (var i = 0; i < props.length; i++) { 13294 var descriptor = props[i]; 13295 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 13296 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 13297 } 13298 } 13299 return function(Constructor, protoProps, staticProps) { 13300 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 13301 Constructor; 13302 }; 13303 }(), Pie = Object(__WEBPACK_IMPORTED_MODULE_8__util_PureRender__.a)((_temp2 = _class2 = function(_Component) { 13304 function Pie() { 13305 var _ref, _temp, _this, _ret; 13306 _classCallCheck(this, Pie); 13307 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 13308 return _temp = _this = _possibleConstructorReturn(this, (_ref = Pie.__proto__ || Object.getPrototypeOf(Pie)).call.apply(_ref, [ this ].concat(args))), 13309 _this.state = { 13310 isAnimationFinished: !1, 13311 isAnimationStarted: !1 13312 }, _this.id = Object(__WEBPACK_IMPORTED_MODULE_18__util_DataUtils__.k)("recharts-pie-"), 13313 _this.cachePrevData = function(sectors) { 13314 _this.setState({ 13315 prevSectors: sectors 13316 }); 13317 }, _this.handleAnimationEnd = function() { 13318 _this.setState({ 13319 isAnimationFinished: !0 13320 }); 13321 }, _this.handleAnimationStart = function() { 13322 _this.setState({ 13323 isAnimationStarted: !0 13324 }); 13325 }, _ret = _temp, _possibleConstructorReturn(_this, _ret); 13326 } 13327 return _inherits(Pie, _Component), _createClass(Pie, [ { 13328 key: "componentWillReceiveProps", 13329 value: function(nextProps) { 13330 var _props = this.props, animationId = _props.animationId, sectors = _props.sectors; 13331 nextProps.isAnimationActive !== this.props.isAnimationActive ? this.cachePrevData([]) : nextProps.animationId !== animationId && this.cachePrevData(sectors); 13332 } 13333 }, { 13334 key: "getTextAnchor", 13335 value: function(x, cx) { 13336 return x > cx ? "start" : x < cx ? "end" : "middle"; 13337 } 13338 }, { 13339 key: "isActiveIndex", 13340 value: function(i) { 13341 var activeIndex = this.props.activeIndex; 13342 return Array.isArray(activeIndex) ? -1 !== activeIndex.indexOf(i) : i === activeIndex; 13343 } 13344 }, { 13345 key: "renderLabelLineItem", 13346 value: function(option, props) { 13347 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, { 13348 type: "linear", 13349 className: "recharts-pie-label-line" 13350 })); 13351 } 13352 }, { 13353 key: "renderLabelItem", 13354 value: function(option, props, value) { 13355 if (__WEBPACK_IMPORTED_MODULE_4_react___default.a.isValidElement(option)) return __WEBPACK_IMPORTED_MODULE_4_react___default.a.cloneElement(option, props); 13356 var label = value; 13357 return __WEBPACK_IMPORTED_MODULE_2_lodash_isFunction___default()(option) && (label = option(props), 13358 __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, { 13359 alignmentBaseline: "middle", 13360 className: "recharts-pie-label-text" 13361 }), label); 13362 } 13363 }, { 13364 key: "renderLabels", 13365 value: function(sectors) { 13366 var _this2 = this; 13367 if (this.props.isAnimationActive && !this.state.isAnimationFinished) return null; 13368 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) { 13369 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, { 13370 stroke: "none" 13371 }, customLabelProps, { 13372 index: i, 13373 textAnchor: _this2.getTextAnchor(endPoint.x, entry.cx) 13374 }, endPoint), lineProps = _extends({}, pieProps, entry, { 13375 fill: "none", 13376 stroke: entry.fill 13377 }, customLabelLineProps, { 13378 index: i, 13379 points: [ Object(__WEBPACK_IMPORTED_MODULE_17__util_PolarUtils__.e)(entry.cx, entry.cy, entry.outerRadius, midAngle), endPoint ] 13380 }), realDataKey = dataKey; 13381 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), 13382 __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__container_Layer__.a, { 13383 key: "label-" + i 13384 }, labelLine && _this2.renderLabelLineItem(labelLine, lineProps), _this2.renderLabelItem(label, labelProps, Object(__WEBPACK_IMPORTED_MODULE_19__util_ChartUtils__.w)(entry, realDataKey))); 13385 }); 13386 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__container_Layer__.a, { 13387 className: "recharts-pie-labels" 13388 }, labels); 13389 } 13390 }, { 13391 key: "renderSectorItem", 13392 value: function(option, props) { 13393 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); 13394 } 13395 }, { 13396 key: "renderSectorsStatically", 13397 value: function(sectors) { 13398 var _this3 = this, activeShape = this.props.activeShape; 13399 return sectors.map(function(entry, i) { 13400 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__container_Layer__.a, _extends({ 13401 className: "recharts-pie-sector" 13402 }, Object(__WEBPACK_IMPORTED_MODULE_16__util_ReactUtils__.f)(_this3.props, entry, i), { 13403 key: "sector-" + i 13404 }), _this3.renderSectorItem(_this3.isActiveIndex(i) ? activeShape : null, entry)); 13405 }); 13406 } 13407 }, { 13408 key: "renderSectorsWithAnimation", 13409 value: function() { 13410 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; 13411 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6_react_smooth___default.a, { 13412 begin: animationBegin, 13413 duration: animationDuration, 13414 isActive: isAnimationActive, 13415 easing: animationEasing, 13416 from: { 13417 t: 0 13418 }, 13419 to: { 13420 t: 1 13421 }, 13422 key: "pie-" + animationId, 13423 onAnimationEnd: this.handleAnimationEnd 13424 }, function(_ref2) { 13425 var t = _ref2.t, stepData = [], first = sectors && sectors[0], curAngle = first.startAngle; 13426 return sectors.forEach(function(entry, index) { 13427 var prev = prevSectors && prevSectors[index], paddingAngle = index > 0 ? entry.paddingAngle : 0; 13428 if (prev) { 13429 var angleIp = Object(__WEBPACK_IMPORTED_MODULE_18__util_DataUtils__.f)(prev.endAngle - prev.startAngle, entry.endAngle - entry.startAngle), latest = _extends({}, entry, { 13430 startAngle: curAngle + paddingAngle, 13431 endAngle: curAngle + angleIp(t) + paddingAngle 13432 }); 13433 stepData.push(latest), curAngle = latest.endAngle; 13434 } else { 13435 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, { 13436 startAngle: curAngle + paddingAngle, 13437 endAngle: curAngle + deltaAngle + paddingAngle 13438 }); 13439 stepData.push(_latest), curAngle = _latest.endAngle; 13440 } 13441 }), __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__container_Layer__.a, null, _this4.renderSectorsStatically(stepData)); 13442 }); 13443 } 13444 }, { 13445 key: "renderSectors", 13446 value: function() { 13447 var _props4 = this.props, sectors = _props4.sectors, isAnimationActive = _props4.isAnimationActive, prevSectors = this.state.prevSectors; 13448 return !(isAnimationActive && sectors && sectors.length) || prevSectors && __WEBPACK_IMPORTED_MODULE_0_lodash_isEqual___default()(prevSectors, sectors) ? this.renderSectorsStatically(sectors) : this.renderSectorsWithAnimation(); 13449 } 13450 }, { 13451 key: "render", 13452 value: function() { 13453 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; 13454 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; 13455 var isAnimationFinished = this.state.isAnimationFinished, layerClass = __WEBPACK_IMPORTED_MODULE_7_classnames___default()("recharts-pie", className); 13456 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__container_Layer__.a, { 13457 className: layerClass 13458 }, __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("g", { 13459 clipPath: "url(#" + (__WEBPACK_IMPORTED_MODULE_3_lodash_isNil___default()(id) ? this.id : id) + ")" 13460 }, 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)); 13461 } 13462 } ]), Pie; 13463 }(__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, { 13464 className: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, 13465 animationId: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 13466 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 ]), 13467 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 ]), 13468 startAngle: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 13469 endAngle: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 13470 paddingAngle: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 13471 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 ]), 13472 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 ]), 13473 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 ]), 13474 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, 13475 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 ]), 13476 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 ]), 13477 data: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object), 13478 minAngle: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 13479 legendType: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOf(__WEBPACK_IMPORTED_MODULE_16__util_ReactUtils__.b), 13480 maxRadius: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 13481 sectors: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object), 13482 hide: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool, 13483 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 ]), 13484 label: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType([ __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.shape({ 13485 offsetRadius: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number 13486 }), __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 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 ]), 13488 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) ]), 13489 isAnimationActive: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool, 13490 animationBegin: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 13491 animationDuration: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 13492 animationEasing: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOf([ "ease", "ease-in", "ease-out", "ease-in-out", "spring", "linear" ]), 13493 id: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string 13494 }), _class2.defaultProps = { 13495 stroke: "#fff", 13496 fill: "#808080", 13497 legendType: "rect", 13498 cx: "50%", 13499 cy: "50%", 13500 startAngle: 0, 13501 endAngle: 360, 13502 innerRadius: 0, 13503 outerRadius: "80%", 13504 paddingAngle: 0, 13505 labelLine: !0, 13506 hide: !1, 13507 minAngle: 0, 13508 isAnimationActive: !Object(__WEBPACK_IMPORTED_MODULE_16__util_ReactUtils__.n)(), 13509 animationBegin: 400, 13510 animationDuration: 1500, 13511 animationEasing: "ease", 13512 nameKey: "name" 13513 }, _class2.parseDeltaAngle = function(_ref3) { 13514 var startAngle = _ref3.startAngle, endAngle = _ref3.endAngle; 13515 return Object(__WEBPACK_IMPORTED_MODULE_18__util_DataUtils__.j)(endAngle - startAngle) * Math.min(Math.abs(endAngle - startAngle), 360); 13516 }, _class2.getRealPieData = function(item) { 13517 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); 13518 return data && data.length ? data.map(function(entry, index) { 13519 return _extends({ 13520 payload: entry 13521 }, presentationProps, entry, cells && cells[index] && cells[index].props); 13522 }) : cells && cells.length ? cells.map(function(cell) { 13523 return _extends({}, presentationProps, cell.props); 13524 }) : []; 13525 }, _class2.parseCoordinateOfPie = function(item, offset) { 13526 var top = offset.top, left = offset.left, width = offset.width, height = offset.height, maxPieRadius = Object(__WEBPACK_IMPORTED_MODULE_17__util_PolarUtils__.c)(width, height); 13527 return { 13528 cx: left + Object(__WEBPACK_IMPORTED_MODULE_18__util_DataUtils__.d)(item.props.cx, width, width / 2), 13529 cy: top + Object(__WEBPACK_IMPORTED_MODULE_18__util_DataUtils__.d)(item.props.cy, height, height / 2), 13530 innerRadius: Object(__WEBPACK_IMPORTED_MODULE_18__util_DataUtils__.d)(item.props.innerRadius, maxPieRadius, 0), 13531 outerRadius: Object(__WEBPACK_IMPORTED_MODULE_18__util_DataUtils__.d)(item.props.outerRadius, maxPieRadius, .8 * maxPieRadius), 13532 maxRadius: item.props.maxRadius || Math.sqrt(width * width + height * height) / 2 13533 }; 13534 }, _class2.getComposedData = function(_ref4) { 13535 var item = _ref4.item, offset = _ref4.offset, onItemMouseLeave = _ref4.onItemMouseLeave, onItemMouseEnter = _ref4.onItemMouseEnter, pieData = Pie.getRealPieData(item); 13536 if (!pieData || !pieData.length) return []; 13537 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({ 13538 startAngle: startAngle, 13539 endAngle: endAngle 13540 }), absDeltaAngle = Math.abs(deltaAngle), totalPadingAngle = (absDeltaAngle >= 360 ? len : len - 1) * paddingAngle, realTotalAngle = absDeltaAngle - len * minAngle - totalPadingAngle, realDataKey = dataKey; 13541 __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'), 13542 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'), 13543 realDataKey = valueKey); 13544 var sum = pieData.reduce(function(result, entry) { 13545 var val = Object(__WEBPACK_IMPORTED_MODULE_19__util_ChartUtils__.w)(entry, realDataKey, 0); 13546 return result + (Object(__WEBPACK_IMPORTED_MODULE_18__util_DataUtils__.h)(val) ? val : 0); 13547 }, 0), sectors = void 0; 13548 if (sum > 0) { 13549 var prev = void 0; 13550 sectors = pieData.map(function(entry, i) { 13551 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; 13552 tempStartAngle = i ? prev.endAngle + Object(__WEBPACK_IMPORTED_MODULE_18__util_DataUtils__.j)(deltaAngle) * paddingAngle : startAngle; 13553 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 = [ { 13554 name: name, 13555 value: val, 13556 payload: entry 13557 } ], tooltipPosition = Object(__WEBPACK_IMPORTED_MODULE_17__util_PolarUtils__.e)(coordinate.cx, coordinate.cy, middleRadius, midAngle); 13558 return prev = _extends({ 13559 percent: percent, 13560 cornerRadius: cornerRadius, 13561 name: name, 13562 tooltipPayload: tooltipPayload, 13563 midAngle: midAngle, 13564 middleRadius: middleRadius, 13565 tooltipPosition: tooltipPosition 13566 }, entry, coordinate, { 13567 value: Object(__WEBPACK_IMPORTED_MODULE_19__util_ChartUtils__.w)(entry, realDataKey), 13568 startAngle: tempStartAngle, 13569 endAngle: tempEndAngle, 13570 payload: entry, 13571 paddingAngle: Object(__WEBPACK_IMPORTED_MODULE_18__util_DataUtils__.j)(deltaAngle) * paddingAngle 13572 }); 13573 }); 13574 } 13575 return _extends({}, coordinate, { 13576 sectors: sectors, 13577 data: pieData, 13578 onMouseLeave: onItemMouseLeave, 13579 onMouseEnter: onItemMouseEnter 13580 }); 13581 }, _class = _temp2)) || _class; 13582 __webpack_exports__.a = Pie; 13583 }, function(module, __webpack_exports__, __webpack_require__) { 13584 "use strict"; 13585 function _classCallCheck(instance, Constructor) { 13586 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 13587 } 13588 function _possibleConstructorReturn(self, call) { 13589 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 13590 return !call || "object" != typeof call && "function" != typeof call ? self : call; 13591 } 13592 function _inherits(subClass, superClass) { 13593 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 13594 subClass.prototype = Object.create(superClass && superClass.prototype, { 13595 constructor: { 13596 value: subClass, 13597 enumerable: !1, 13598 writable: !0, 13599 configurable: !0 13600 } 13601 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 13602 } 13603 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) { 13604 for (var i = 1; i < arguments.length; i++) { 13605 var source = arguments[i]; 13606 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 13607 } 13608 return target; 13609 }, _createClass = function() { 13610 function defineProperties(target, props) { 13611 for (var i = 0; i < props.length; i++) { 13612 var descriptor = props[i]; 13613 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 13614 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 13615 } 13616 } 13617 return function(Constructor, protoProps, staticProps) { 13618 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 13619 Constructor; 13620 }; 13621 }(), Radar = Object(__WEBPACK_IMPORTED_MODULE_7__util_PureRender__.a)((_temp2 = _class2 = function(_Component) { 13622 function Radar() { 13623 var _ref, _temp, _this, _ret; 13624 _classCallCheck(this, Radar); 13625 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 13626 return _temp = _this = _possibleConstructorReturn(this, (_ref = Radar.__proto__ || Object.getPrototypeOf(Radar)).call.apply(_ref, [ this ].concat(args))), 13627 _this.state = { 13628 isAnimationFinished: !1 13629 }, _this.cachePrevData = function(points) { 13630 _this.setState({ 13631 prevPoints: points 13632 }); 13633 }, _this.handleAnimationEnd = function() { 13634 _this.setState({ 13635 isAnimationFinished: !0 13636 }); 13637 }, _this.handleAnimationStart = function() { 13638 _this.setState({ 13639 isAnimationFinished: !1 13640 }); 13641 }, _this.handleMouseEnter = function(e) { 13642 var onMouseEnter = _this.props.onMouseEnter; 13643 onMouseEnter && onMouseEnter(_this.props, e); 13644 }, _this.handleMouseLeave = function(e) { 13645 var onMouseLeave = _this.props.onMouseLeave; 13646 onMouseLeave && onMouseLeave(_this.props, e); 13647 }, _ret = _temp, _possibleConstructorReturn(_this, _ret); 13648 } 13649 return _inherits(Radar, _Component), _createClass(Radar, [ { 13650 key: "componentWillReceiveProps", 13651 value: function(nextProps) { 13652 var _props = this.props, animationId = _props.animationId, points = _props.points; 13653 nextProps.animationId !== animationId && this.cachePrevData(points); 13654 } 13655 }, { 13656 key: "renderDotItem", 13657 value: function(option, props) { 13658 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, { 13659 className: "recharts-radar-dot" 13660 })); 13661 } 13662 }, { 13663 key: "renderDots", 13664 value: function(points) { 13665 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) { 13666 var dotProps = _extends({ 13667 key: "dot-" + i, 13668 r: 3 13669 }, baseProps, customDotProps, { 13670 dataKey: dataKey, 13671 cx: entry.x, 13672 cy: entry.y, 13673 index: i, 13674 playload: entry 13675 }); 13676 return _this2.renderDotItem(dot, dotProps); 13677 }); 13678 return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_13__container_Layer__.a, { 13679 className: "recharts-radar-dots" 13680 }, dots); 13681 } 13682 }, { 13683 key: "renderPolygonStatically", 13684 value: function(points) { 13685 var _props3 = this.props, shape = _props3.shape, dot = _props3.dot, radar = void 0; 13686 return radar = __WEBPACK_IMPORTED_MODULE_2_react___default.a.isValidElement(shape) ? __WEBPACK_IMPORTED_MODULE_2_react___default.a.cloneElement(shape, _extends({}, this.props, { 13687 points: points 13688 })) : __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(shape) ? shape(_extends({}, this.props, { 13689 points: points 13690 })) : __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), { 13691 onMouseEnter: this.handleMouseEnter, 13692 onMouseLeave: this.handleMouseLeave 13693 }, Object(__WEBPACK_IMPORTED_MODULE_8__util_ReactUtils__.k)(this.props), { 13694 points: points 13695 })), __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_13__container_Layer__.a, { 13696 className: "recharts-radar-polygon" 13697 }, radar, dot ? this.renderDots(points) : null); 13698 } 13699 }, { 13700 key: "renderPolygonWithAnimation", 13701 value: function() { 13702 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; 13703 return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4_react_smooth___default.a, { 13704 begin: animationBegin, 13705 duration: animationDuration, 13706 isActive: isAnimationActive, 13707 easing: animationEasing, 13708 from: { 13709 t: 0 13710 }, 13711 to: { 13712 t: 1 13713 }, 13714 key: "radar-" + animationId, 13715 onAnimationEnd: this.handleAnimationEnd, 13716 onAnimationStart: this.handleAnimationStart 13717 }, function(_ref2) { 13718 var t = _ref2.t, stepData = points.map(function(entry, index) { 13719 var prev = prevPoints && prevPoints[index]; 13720 if (prev) { 13721 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); 13722 return _extends({}, entry, { 13723 x: _interpolatorX(t), 13724 y: _interpolatorY(t) 13725 }); 13726 } 13727 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); 13728 return _extends({}, entry, { 13729 x: interpolatorX(t), 13730 y: interpolatorY(t) 13731 }); 13732 }); 13733 return _this3.renderPolygonStatically(stepData); 13734 }); 13735 } 13736 }, { 13737 key: "renderPolygon", 13738 value: function() { 13739 var _props5 = this.props, points = _props5.points, isAnimationActive = _props5.isAnimationActive, prevPoints = this.state.prevPoints; 13740 return !(isAnimationActive && points && points.length) || prevPoints && __WEBPACK_IMPORTED_MODULE_0_lodash_isEqual___default()(prevPoints, points) ? this.renderPolygonStatically(points) : this.renderPolygonWithAnimation(); 13741 } 13742 }, { 13743 key: "render", 13744 value: function() { 13745 var _props6 = this.props, hide = _props6.hide, className = _props6.className, points = _props6.points, isAnimationActive = _props6.isAnimationActive; 13746 if (hide || !points || !points.length) return null; 13747 var isAnimationFinished = this.state.isAnimationFinished, layerClass = __WEBPACK_IMPORTED_MODULE_5_classnames___default()("recharts-radar", className); 13748 return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_13__container_Layer__.a, { 13749 className: layerClass 13750 }, this.renderPolygon(), (!isAnimationActive || isAnimationFinished) && __WEBPACK_IMPORTED_MODULE_14__component_LabelList__.a.renderCallByParent(this.props, points)); 13751 } 13752 } ]), Radar; 13753 }(__WEBPACK_IMPORTED_MODULE_2_react__.Component), _class2.displayName = "Radar", 13754 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_8__util_ReactUtils__.c, { 13755 className: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string, 13756 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, 13757 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 ]), 13758 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 ]), 13759 points: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.shape({ 13760 x: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 13761 y: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 13762 cx: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 13763 cy: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 13764 angle: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 13765 radius: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 13766 value: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 13767 payload: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object 13768 })), 13769 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 ]), 13770 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 ]), 13771 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 ]), 13772 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 ]), 13773 legendType: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf(__WEBPACK_IMPORTED_MODULE_8__util_ReactUtils__.b), 13774 hide: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool, 13775 onMouseEnter: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, 13776 onMouseLeave: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, 13777 onClick: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, 13778 isAnimationActive: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool, 13779 animationId: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 13780 animationBegin: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 13781 animationDuration: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 13782 animationEasing: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf([ "ease", "ease-in", "ease-out", "ease-in-out", "linear" ]) 13783 }), _class2.defaultProps = { 13784 angleAxisId: 0, 13785 radiusAxisId: 0, 13786 hide: !1, 13787 activeDot: !0, 13788 dot: !1, 13789 legendType: "rect", 13790 isAnimationActive: !Object(__WEBPACK_IMPORTED_MODULE_8__util_ReactUtils__.n)(), 13791 animationBegin: 0, 13792 animationDuration: 1500, 13793 animationEasing: "ease" 13794 }, _class2.getComposedData = function(_ref3) { 13795 var radiusAxis = _ref3.radiusAxis, angleAxis = _ref3.angleAxis, displayedData = _ref3.displayedData, dataKey = _ref3.dataKey, bandSize = _ref3.bandSize, cx = angleAxis.cx, cy = angleAxis.cy; 13796 return { 13797 points: displayedData.map(function(entry, i) { 13798 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); 13799 return _extends({}, Object(__WEBPACK_IMPORTED_MODULE_9__util_PolarUtils__.e)(cx, cy, radius, angle), { 13800 name: name, 13801 value: value, 13802 cx: cx, 13803 cy: cy, 13804 radius: radius, 13805 angle: angle, 13806 payload: entry 13807 }); 13808 }) 13809 }; 13810 }, _class = _temp2)) || _class; 13811 __webpack_exports__.a = Radar; 13812 }, function(module, __webpack_exports__, __webpack_require__) { 13813 "use strict"; 13814 function _objectWithoutProperties(obj, keys) { 13815 var target = {}; 13816 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 13817 return target; 13818 } 13819 function _classCallCheck(instance, Constructor) { 13820 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 13821 } 13822 function _possibleConstructorReturn(self, call) { 13823 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 13824 return !call || "object" != typeof call && "function" != typeof call ? self : call; 13825 } 13826 function _inherits(subClass, superClass) { 13827 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 13828 subClass.prototype = Object.create(superClass && superClass.prototype, { 13829 constructor: { 13830 value: subClass, 13831 enumerable: !1, 13832 writable: !0, 13833 configurable: !0 13834 } 13835 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 13836 } 13837 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) { 13838 for (var i = 1; i < arguments.length; i++) { 13839 var source = arguments[i]; 13840 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 13841 } 13842 return target; 13843 }, _createClass = function() { 13844 function defineProperties(target, props) { 13845 for (var i = 0; i < props.length; i++) { 13846 var descriptor = props[i]; 13847 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 13848 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 13849 } 13850 } 13851 return function(Constructor, protoProps, staticProps) { 13852 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 13853 Constructor; 13854 }; 13855 }(), RadialBar = Object(__WEBPACK_IMPORTED_MODULE_10__util_PureRender__.a)((_temp2 = _class2 = function(_Component) { 13856 function RadialBar() { 13857 var _ref, _temp, _this, _ret; 13858 _classCallCheck(this, RadialBar); 13859 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 13860 return _temp = _this = _possibleConstructorReturn(this, (_ref = RadialBar.__proto__ || Object.getPrototypeOf(RadialBar)).call.apply(_ref, [ this ].concat(args))), 13861 _this.state = { 13862 isAnimationFinished: !1 13863 }, _this.cachePrevData = function(data) { 13864 _this.setState({ 13865 prevData: data 13866 }); 13867 }, _this.handleAnimationEnd = function() { 13868 _this.setState({ 13869 isAnimationFinished: !0 13870 }); 13871 }, _this.handleAnimationStart = function() { 13872 _this.setState({ 13873 isAnimationFinished: !1 13874 }); 13875 }, _ret = _temp, _possibleConstructorReturn(_this, _ret); 13876 } 13877 return _inherits(RadialBar, _Component), _createClass(RadialBar, [ { 13878 key: "componentWillReceiveProps", 13879 value: function(nextProps) { 13880 var _props = this.props, animationId = _props.animationId, data = _props.data; 13881 nextProps.animationId !== animationId && this.cachePrevData(data); 13882 } 13883 }, { 13884 key: "getDeltaAngle", 13885 value: function() { 13886 var _props2 = this.props, startAngle = _props2.startAngle, endAngle = _props2.endAngle; 13887 return Object(__WEBPACK_IMPORTED_MODULE_13__util_DataUtils__.j)(endAngle - startAngle) * Math.min(Math.abs(endAngle - startAngle), 360); 13888 } 13889 }, { 13890 key: "renderSectorShape", 13891 value: function(shape, props) { 13892 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); 13893 } 13894 }, { 13895 key: "renderSectorsStatically", 13896 value: function(sectors) { 13897 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); 13898 return sectors.map(function(entry, i) { 13899 var props = _extends({}, baseProps, { 13900 cornerRadius: cornerRadius 13901 }, entry, Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.f)(_this2.props, entry, i), { 13902 key: "sector-" + i, 13903 className: "recharts-radial-bar-sector" 13904 }); 13905 return _this2.renderSectorShape(i === activeIndex ? activeShape : shape, props); 13906 }); 13907 } 13908 }, { 13909 key: "renderSectorsWithAnimation", 13910 value: function() { 13911 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; 13912 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6_react_smooth___default.a, { 13913 begin: animationBegin, 13914 duration: animationDuration, 13915 isActive: isAnimationActive, 13916 easing: animationEasing, 13917 from: { 13918 t: 0 13919 }, 13920 to: { 13921 t: 1 13922 }, 13923 key: "radialBar-" + animationId, 13924 onAnimationStart: this.handleAnimationStart, 13925 onAnimationEnd: this.handleAnimationEnd 13926 }, function(_ref2) { 13927 var t = _ref2.t, stepData = data.map(function(entry, index) { 13928 var prev = prevData && prevData[index]; 13929 if (prev) { 13930 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); 13931 return _extends({}, entry, { 13932 startAngle: interpolatorStartAngle(t), 13933 endAngle: interpolatorEndAngle(t) 13934 }); 13935 } 13936 var endAngle = entry.endAngle, startAngle = entry.startAngle, interpolator = Object(__WEBPACK_IMPORTED_MODULE_13__util_DataUtils__.f)(startAngle, endAngle); 13937 return _extends({}, entry, { 13938 endAngle: interpolator(t) 13939 }); 13940 }); 13941 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, null, _this3.renderSectorsStatically(stepData)); 13942 }); 13943 } 13944 }, { 13945 key: "renderSectors", 13946 value: function() { 13947 var _props5 = this.props, data = _props5.data, isAnimationActive = _props5.isAnimationActive, prevData = this.state.prevData; 13948 return !(isAnimationActive && data && data.length) || prevData && __WEBPACK_IMPORTED_MODULE_0_lodash_isEqual___default()(prevData, data) ? this.renderSectorsStatically(data) : this.renderSectorsWithAnimation(); 13949 } 13950 }, { 13951 key: "renderBackground", 13952 value: function(sectors) { 13953 var _this4 = this, cornerRadius = this.props.cornerRadius, backgroundProps = Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.k)(this.props.background); 13954 return sectors.map(function(entry, i) { 13955 var background = (entry.value, entry.background), rest = _objectWithoutProperties(entry, [ "value", "background" ]); 13956 if (!background) return null; 13957 var props = _extends({ 13958 cornerRadius: cornerRadius 13959 }, rest, { 13960 fill: "#eee" 13961 }, background, backgroundProps, Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.f)(_this4.props, entry, i), { 13962 index: i, 13963 key: "sector-" + i, 13964 className: "recharts-radial-bar-background-sector" 13965 }); 13966 return _this4.renderSectorShape(background, props); 13967 }); 13968 } 13969 }, { 13970 key: "render", 13971 value: function() { 13972 var _props6 = this.props, hide = _props6.hide, data = _props6.data, className = _props6.className, background = _props6.background, isAnimationActive = _props6.isAnimationActive; 13973 if (hide || !data || !data.length) return null; 13974 var isAnimationFinished = this.state.isAnimationFinished, layerClass = __WEBPACK_IMPORTED_MODULE_5_classnames___default()("recharts-area", className); 13975 return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, { 13976 className: layerClass 13977 }, background && __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, { 13978 className: "recharts-radial-bar-background" 13979 }, this.renderBackground(data)), __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, { 13980 className: "recharts-radial-bar-sectors" 13981 }, this.renderSectors(data)), (!isAnimationActive || isAnimationFinished) && __WEBPACK_IMPORTED_MODULE_11__component_LabelList__.a.renderCallByParent(_extends({}, this.props, { 13982 clockWise: this.getDeltaAngle() < 0 13983 }), data)); 13984 } 13985 } ]), RadialBar; 13986 }(__WEBPACK_IMPORTED_MODULE_3_react__.Component), _class2.displayName = "RadialBar", 13987 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.c, { 13988 className: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, 13989 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 ]), 13990 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 ]), 13991 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 ]), 13992 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 ]), 13993 activeIndex: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 13994 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, 13995 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 ]), 13996 minPointSize: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 13997 maxBarSize: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 13998 data: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.shape({ 13999 cx: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 14000 cy: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 14001 innerRadius: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 14002 outerRadius: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 14003 value: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.value 14004 })), 14005 legendType: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.b), 14006 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 ]), 14007 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 ]), 14008 hide: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool, 14009 onMouseEnter: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func, 14010 onMouseLeave: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func, 14011 onClick: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func, 14012 isAnimationActive: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool, 14013 animationBegin: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 14014 animationDuration: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, 14015 animationEasing: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf([ "ease", "ease-in", "ease-out", "ease-in-out", "linear", "spring" ]) 14016 }), _class2.defaultProps = { 14017 angleAxisId: 0, 14018 radiusAxisId: 0, 14019 minPointSize: 0, 14020 hide: !1, 14021 legendType: "rect", 14022 data: [], 14023 isAnimationActive: !Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.n)(), 14024 animationBegin: 0, 14025 animationDuration: 1500, 14026 animationEasing: "ease" 14027 }, _class2.getComposedData = function(_ref3) { 14028 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); 14029 if (!pos) return []; 14030 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)({ 14031 props: props, 14032 numericAxis: numericAxis 14033 }), cells = Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.h)(children, __WEBPACK_IMPORTED_MODULE_12__component_Cell__.a); 14034 return { 14035 data: displayedData.map(function(entry, index) { 14036 var value = void 0, innerRadius = void 0, outerRadius = void 0, startAngle = void 0, endAngle = void 0, backgroundSector = void 0; 14037 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), 14038 __WEBPACK_IMPORTED_MODULE_2_lodash_isArray___default()(value) || (value = [ baseValue, value ])), 14039 "radial" === layout) { 14040 innerRadius = Object(__WEBPACK_IMPORTED_MODULE_14__util_ChartUtils__.k)({ 14041 axis: radiusAxis, 14042 ticks: radiusAxisTicks, 14043 bandSize: bandSize, 14044 offset: pos.offset, 14045 entry: entry, 14046 index: index 14047 }), endAngle = angleAxis.scale(value[1]), startAngle = angleAxis.scale(value[0]), 14048 outerRadius = innerRadius + pos.size; 14049 var deltaAngle = endAngle - startAngle; 14050 if (Math.abs(minPointSize) > 0 && Math.abs(deltaAngle) < Math.abs(minPointSize)) { 14051 endAngle += Object(__WEBPACK_IMPORTED_MODULE_13__util_DataUtils__.j)(deltaAngle || minPointSize) * (Math.abs(minPointSize) - Math.abs(deltaAngle)); 14052 } 14053 backgroundSector = { 14054 background: { 14055 cx: cx, 14056 cy: cy, 14057 innerRadius: innerRadius, 14058 outerRadius: outerRadius, 14059 startAngle: props.startAngle, 14060 endAngle: props.endAngle 14061 } 14062 }; 14063 } else { 14064 innerRadius = radiusAxis.scale(value[0]), outerRadius = radiusAxis.scale(value[1]), 14065 startAngle = Object(__WEBPACK_IMPORTED_MODULE_14__util_ChartUtils__.k)({ 14066 axis: angleAxis, 14067 ticks: angleAxisTicks, 14068 bandSize: bandSize, 14069 offset: pos.offset, 14070 entry: entry, 14071 index: index 14072 }), endAngle = startAngle + pos.size; 14073 var deltaRadius = outerRadius - innerRadius; 14074 if (Math.abs(minPointSize) > 0 && Math.abs(deltaRadius) < Math.abs(minPointSize)) { 14075 outerRadius += Object(__WEBPACK_IMPORTED_MODULE_13__util_DataUtils__.j)(deltaRadius || minPointSize) * (Math.abs(minPointSize) - Math.abs(deltaRadius)); 14076 } 14077 } 14078 return _extends({}, entry, backgroundSector, { 14079 payload: entry, 14080 value: stackedData ? value : value[1], 14081 cx: cx, 14082 cy: cy, 14083 innerRadius: innerRadius, 14084 outerRadius: outerRadius, 14085 startAngle: startAngle, 14086 endAngle: endAngle 14087 }, cells && cells[index] && cells[index].props); 14088 }), 14089 layout: layout 14090 }; 14091 }, _class = _temp2)) || _class; 14092 __webpack_exports__.a = RadialBar; 14093 }, function(module, __webpack_exports__, __webpack_require__) { 14094 "use strict"; 14095 function _defineProperty(obj, key, value) { 14096 return key in obj ? Object.defineProperty(obj, key, { 14097 value: value, 14098 enumerable: !0, 14099 configurable: !0, 14100 writable: !0 14101 }) : obj[key] = value, obj; 14102 } 14103 function _classCallCheck(instance, Constructor) { 14104 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 14105 } 14106 function _possibleConstructorReturn(self, call) { 14107 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 14108 return !call || "object" != typeof call && "function" != typeof call ? self : call; 14109 } 14110 function _inherits(subClass, superClass) { 14111 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 14112 subClass.prototype = Object.create(superClass && superClass.prototype, { 14113 constructor: { 14114 value: subClass, 14115 enumerable: !1, 14116 writable: !0, 14117 configurable: !0 14118 } 14119 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 14120 } 14121 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) { 14122 for (var i = 1; i < arguments.length; i++) { 14123 var source = arguments[i]; 14124 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 14125 } 14126 return target; 14127 }, _createClass = function() { 14128 function defineProperties(target, props) { 14129 for (var i = 0; i < props.length; i++) { 14130 var descriptor = props[i]; 14131 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 14132 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 14133 } 14134 } 14135 return function(Constructor, protoProps, staticProps) { 14136 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 14137 Constructor; 14138 }; 14139 }(), Brush = Object(__WEBPACK_IMPORTED_MODULE_7__util_PureRender__.a)((_temp = _class2 = function(_Component) { 14140 function Brush(props) { 14141 _classCallCheck(this, Brush); 14142 var _this = _possibleConstructorReturn(this, (Brush.__proto__ || Object.getPrototypeOf(Brush)).call(this, props)); 14143 return _this.handleDrag = function(e) { 14144 _this.leaveTimer && (clearTimeout(_this.leaveTimer), _this.leaveTimer = null), _this.state.isTravellerMoving ? _this.handleTravellerMove(e) : _this.state.isSlideMoving && _this.handleSlideDrag(e); 14145 }, _this.handleTouchMove = function(e) { 14146 null != e.changedTouches && e.changedTouches.length > 0 && _this.handleDrag(e.changedTouches[0]); 14147 }, _this.handleDragEnd = function() { 14148 _this.setState({ 14149 isTravellerMoving: !1, 14150 isSlideMoving: !1 14151 }); 14152 }, _this.handleLeaveWrapper = function() { 14153 (_this.state.isTravellerMoving || _this.state.isSlideMoving) && (_this.leaveTimer = setTimeout(_this.handleDragEnd, 1e3)); 14154 }, _this.handleEnterSlideOrTraveller = function() { 14155 _this.setState({ 14156 isTextActive: !0 14157 }); 14158 }, _this.handleLeaveSlideOrTraveller = function() { 14159 _this.setState({ 14160 isTextActive: !1 14161 }); 14162 }, _this.handleSlideDragStart = function(e) { 14163 var event = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : e; 14164 _this.setState({ 14165 isTravellerMoving: !1, 14166 isSlideMoving: !0, 14167 slideMoveStartX: event.pageX 14168 }); 14169 }, _this.travellerDragStartHandlers = { 14170 startX: _this.handleTravellerDragStart.bind(_this, "startX"), 14171 endX: _this.handleTravellerDragStart.bind(_this, "endX") 14172 }, _this.state = props.data && props.data.length ? _this.updateScale(props) : {}, 14173 _this; 14174 } 14175 return _inherits(Brush, _Component), _createClass(Brush, [ { 14176 key: "componentWillReceiveProps", 14177 value: function(nextProps) { 14178 var _this2 = this, _props = this.props, data = _props.data, width = _props.width, x = _props.x, travellerWidth = _props.travellerWidth, updateId = _props.updateId; 14179 (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 ]), 14180 this.scaleValues = this.scale.domain().map(function(entry) { 14181 return _this2.scale(entry); 14182 }), this.setState({ 14183 startX: this.scale(nextProps.startIndex), 14184 endX: this.scale(nextProps.endIndex) 14185 })); 14186 } 14187 }, { 14188 key: "componentWillUnmount", 14189 value: function() { 14190 this.scale = null, this.scaleValues = null, this.leaveTimer && (clearTimeout(this.leaveTimer), 14191 this.leaveTimer = null); 14192 } 14193 }, { 14194 key: "getIndexInRange", 14195 value: function(range, x) { 14196 for (var len = range.length, start = 0, end = len - 1; end - start > 1; ) { 14197 var middle = Math.floor((start + end) / 2); 14198 range[middle] > x ? end = middle : start = middle; 14199 } 14200 return x >= range[end] ? end : start; 14201 } 14202 }, { 14203 key: "getIndex", 14204 value: function(_ref) { 14205 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); 14206 return { 14207 startIndex: minIndex - minIndex % gap, 14208 endIndex: maxIndex === lastIndex ? lastIndex : maxIndex - maxIndex % gap 14209 }; 14210 } 14211 }, { 14212 key: "getTextOfTick", 14213 value: function(index) { 14214 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); 14215 return __WEBPACK_IMPORTED_MODULE_1_lodash_isFunction___default()(tickFormatter) ? tickFormatter(text) : text; 14216 } 14217 }, { 14218 key: "handleSlideDrag", 14219 value: function(e) { 14220 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; 14221 delta > 0 ? delta = Math.min(delta, x + width - travellerWidth - endX, x + width - travellerWidth - startX) : delta < 0 && (delta = Math.max(delta, x - startX, x - endX)); 14222 var newIndex = this.getIndex({ 14223 startX: startX + delta, 14224 endX: endX + delta 14225 }); 14226 newIndex.startIndex === startIndex && newIndex.endIndex === endIndex || !onChange || onChange(newIndex), 14227 this.setState({ 14228 startX: startX + delta, 14229 endX: endX + delta, 14230 slideMoveStartX: e.pageX 14231 }); 14232 } 14233 }, { 14234 key: "handleTravellerDragStart", 14235 value: function(id, e) { 14236 var event = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : e; 14237 this.setState({ 14238 isSlideMoving: !1, 14239 isTravellerMoving: !0, 14240 movingTravellerId: id, 14241 brushMoveStartX: event.pageX 14242 }); 14243 } 14244 }, { 14245 key: "handleTravellerMove", 14246 value: function(e) { 14247 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 = { 14248 startX: this.state.startX, 14249 endX: this.state.endX 14250 }, delta = e.pageX - brushMoveStartX; 14251 delta > 0 ? delta = Math.min(delta, x + width - travellerWidth - prevValue) : delta < 0 && (delta = Math.max(delta, x - prevValue)), 14252 params[movingTravellerId] = prevValue + delta; 14253 var newIndex = this.getIndex(params), startIndex = newIndex.startIndex, endIndex = newIndex.endIndex, isFullGap = function() { 14254 var lastIndex = data.length - 1; 14255 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; 14256 }; 14257 this.setState((_setState = {}, _defineProperty(_setState, movingTravellerId, prevValue + delta), 14258 _defineProperty(_setState, "brushMoveStartX", e.pageX), _setState), function() { 14259 onChange && isFullGap() && onChange(newIndex); 14260 }); 14261 } 14262 }, { 14263 key: "updateScale", 14264 value: function(props) { 14265 var _this3 = this, data = props.data, startIndex = props.startIndex, endIndex = props.endIndex, x = props.x, width = props.width, travellerWidth = props.travellerWidth, len = data.length; 14266 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 ]), 14267 this.scaleValues = this.scale.domain().map(function(entry) { 14268 return _this3.scale(entry); 14269 }), { 14270 isTextActive: !1, 14271 isSlideMoving: !1, 14272 isTravellerMoving: !1, 14273 startX: this.scale(startIndex), 14274 endX: this.scale(endIndex) 14275 }; 14276 } 14277 }, { 14278 key: "renderBackground", 14279 value: function() { 14280 var _props6 = this.props, x = _props6.x, y = _props6.y, width = _props6.width, height = _props6.height, fill = _props6.fill, stroke = _props6.stroke; 14281 return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("rect", { 14282 stroke: stroke, 14283 fill: fill, 14284 x: x, 14285 y: y, 14286 width: width, 14287 height: height 14288 }); 14289 } 14290 }, { 14291 key: "renderPanorama", 14292 value: function() { 14293 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); 14294 return chartElement ? __WEBPACK_IMPORTED_MODULE_2_react___default.a.cloneElement(chartElement, { 14295 x: x, 14296 y: y, 14297 width: width, 14298 height: height, 14299 margin: padding, 14300 compact: !0, 14301 data: data 14302 }) : null; 14303 } 14304 }, { 14305 key: "renderTraveller", 14306 value: function(travellerX, id) { 14307 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); 14308 return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, { 14309 className: "recharts-brush-traveller", 14310 onMouseEnter: this.handleEnterSlideOrTraveller, 14311 onMouseLeave: this.handleLeaveSlideOrTraveller, 14312 onMouseDown: this.travellerDragStartHandlers[id], 14313 onTouchStart: this.travellerDragStartHandlers[id], 14314 style: { 14315 cursor: "col-resize" 14316 } 14317 }, __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("rect", { 14318 x: x, 14319 y: y, 14320 width: travellerWidth, 14321 height: height, 14322 fill: stroke, 14323 stroke: "none" 14324 }), __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("line", { 14325 x1: x + 1, 14326 y1: lineY, 14327 x2: x + travellerWidth - 1, 14328 y2: lineY, 14329 fill: "none", 14330 stroke: "#fff" 14331 }), __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("line", { 14332 x1: x + 1, 14333 y1: lineY + 2, 14334 x2: x + travellerWidth - 1, 14335 y2: lineY + 2, 14336 fill: "none", 14337 stroke: "#fff" 14338 })); 14339 } 14340 }, { 14341 key: "renderSlide", 14342 value: function(startX, endX) { 14343 var _props9 = this.props, y = _props9.y, height = _props9.height, stroke = _props9.stroke; 14344 return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("rect", { 14345 className: "recharts-brush-slide", 14346 onMouseEnter: this.handleEnterSlideOrTraveller, 14347 onMouseLeave: this.handleLeaveSlideOrTraveller, 14348 onMouseDown: this.handleSlideDragStart, 14349 onTouchStart: this.handleSlideDragStart, 14350 style: { 14351 cursor: "move" 14352 }, 14353 stroke: "none", 14354 fill: stroke, 14355 fillOpacity: .2, 14356 x: Math.min(startX, endX), 14357 y: y, 14358 width: Math.abs(endX - startX), 14359 height: height 14360 }); 14361 } 14362 }, { 14363 key: "renderText", 14364 value: function() { 14365 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 = { 14366 pointerEvents: "none", 14367 fill: stroke 14368 }; 14369 return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, { 14370 className: "recharts-brush-texts" 14371 }, __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__component_Text__.a, _extends({ 14372 textAnchor: "end", 14373 verticalAnchor: "middle", 14374 x: Math.min(startX, endX) - 5, 14375 y: y + height / 2 14376 }, attrs), this.getTextOfTick(startIndex)), __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__component_Text__.a, _extends({ 14377 textAnchor: "start", 14378 verticalAnchor: "middle", 14379 x: Math.max(startX, endX) + travellerWidth + 5, 14380 y: y + height / 2 14381 }, attrs), this.getTextOfTick(endIndex))); 14382 } 14383 }, { 14384 key: "render", 14385 value: function() { 14386 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; 14387 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; 14388 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"); 14389 return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, { 14390 className: layerClass, 14391 onMouseMove: this.handleDrag, 14392 onMouseLeave: this.handleLeaveWrapper, 14393 onMouseUp: this.handleDragEnd, 14394 onTouchEnd: this.handleDragEnd, 14395 onTouchMove: this.handleTouchMove, 14396 style: style 14397 }, this.renderBackground(), isPanoramic && this.renderPanorama(), this.renderSlide(startX, endX), this.renderTraveller(startX, "startX"), this.renderTraveller(endX, "endX"), (isTextActive || isSlideMoving || isTravellerMoving) && this.renderText()); 14398 } 14399 } ]), Brush; 14400 }(__WEBPACK_IMPORTED_MODULE_2_react__.Component), _class2.displayName = "Brush", 14401 _class2.propTypes = { 14402 className: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string, 14403 fill: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string, 14404 stroke: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string, 14405 x: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 14406 y: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 14407 width: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 14408 height: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number.isRequired, 14409 travellerWidth: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 14410 gap: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 14411 padding: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.shape({ 14412 top: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 14413 right: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 14414 bottom: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 14415 left: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number 14416 }), 14417 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 ]), 14418 data: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.array, 14419 startIndex: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 14420 endIndex: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 14421 tickFormatter: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, 14422 children: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.node, 14423 onChange: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, 14424 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 ]) 14425 }, _class2.defaultProps = { 14426 height: 40, 14427 travellerWidth: 5, 14428 gap: 1, 14429 fill: "#fff", 14430 stroke: "#666", 14431 padding: { 14432 top: 1, 14433 right: 1, 14434 bottom: 1, 14435 left: 1 14436 } 14437 }, _class = _temp)) || _class; 14438 __webpack_exports__.a = Brush; 14439 }, function(module, exports, __webpack_require__) { 14440 var createRange = __webpack_require__(927), range = createRange(); 14441 module.exports = range; 14442 }, function(module, __webpack_exports__, __webpack_require__) { 14443 "use strict"; 14444 function _objectWithoutProperties(obj, keys) { 14445 var target = {}; 14446 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 14447 return target; 14448 } 14449 function _classCallCheck(instance, Constructor) { 14450 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 14451 } 14452 function _possibleConstructorReturn(self, call) { 14453 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 14454 return !call || "object" != typeof call && "function" != typeof call ? self : call; 14455 } 14456 function _inherits(subClass, superClass) { 14457 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 14458 subClass.prototype = Object.create(superClass && superClass.prototype, { 14459 constructor: { 14460 value: subClass, 14461 enumerable: !1, 14462 writable: !0, 14463 configurable: !0 14464 } 14465 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 14466 } 14467 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) { 14468 for (var i = 1; i < arguments.length; i++) { 14469 var source = arguments[i]; 14470 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 14471 } 14472 return target; 14473 }, _createClass = function() { 14474 function defineProperties(target, props) { 14475 for (var i = 0; i < props.length; i++) { 14476 var descriptor = props[i]; 14477 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 14478 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 14479 } 14480 } 14481 return function(Constructor, protoProps, staticProps) { 14482 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 14483 Constructor; 14484 }; 14485 }(), CartesianAxis = (_temp = _class = function(_Component) { 14486 function CartesianAxis() { 14487 return _classCallCheck(this, CartesianAxis), _possibleConstructorReturn(this, (CartesianAxis.__proto__ || Object.getPrototypeOf(CartesianAxis)).apply(this, arguments)); 14488 } 14489 return _inherits(CartesianAxis, _Component), _createClass(CartesianAxis, [ { 14490 key: "shouldComponentUpdate", 14491 value: function(_ref, state) { 14492 var viewBox = _ref.viewBox, restProps = _objectWithoutProperties(_ref, [ "viewBox" ]), _props = this.props, viewBoxOld = _props.viewBox, restPropsOld = _objectWithoutProperties(_props, [ "viewBox" ]); 14493 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); 14494 } 14495 }, { 14496 key: "getTickLineCoord", 14497 value: function(data) { 14498 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; 14499 switch (orientation) { 14500 case "top": 14501 x1 = x2 = data.coordinate, y2 = y + !mirror * height, y1 = y2 - sign * finalTickSize, 14502 ty = y1 - sign * tickMargin, tx = tickCoord; 14503 break; 14504 14505 case "left": 14506 y1 = y2 = data.coordinate, x2 = x + !mirror * width, x1 = x2 - sign * finalTickSize, 14507 tx = x1 - sign * tickMargin, ty = tickCoord; 14508 break; 14509 14510 case "right": 14511 y1 = y2 = data.coordinate, x2 = x + mirror * width, x1 = x2 + sign * finalTickSize, 14512 tx = x1 + sign * tickMargin, ty = tickCoord; 14513 break; 14514 14515 default: 14516 x1 = x2 = data.coordinate, y2 = y + mirror * height, y1 = y2 + sign * finalTickSize, 14517 ty = y1 + sign * tickMargin, tx = tickCoord; 14518 } 14519 return { 14520 line: { 14521 x1: x1, 14522 y1: y1, 14523 x2: x2, 14524 y2: y2 14525 }, 14526 tick: { 14527 x: tx, 14528 y: ty 14529 } 14530 }; 14531 } 14532 }, { 14533 key: "getTickTextAnchor", 14534 value: function() { 14535 var _props3 = this.props, orientation = _props3.orientation, mirror = _props3.mirror, textAnchor = void 0; 14536 switch (orientation) { 14537 case "left": 14538 textAnchor = mirror ? "start" : "end"; 14539 break; 14540 14541 case "right": 14542 textAnchor = mirror ? "end" : "start"; 14543 break; 14544 14545 default: 14546 textAnchor = "middle"; 14547 } 14548 return textAnchor; 14549 } 14550 }, { 14551 key: "getTickVerticalAnchor", 14552 value: function() { 14553 var _props4 = this.props, orientation = _props4.orientation, mirror = _props4.mirror, verticalAnchor = "end"; 14554 switch (orientation) { 14555 case "left": 14556 case "right": 14557 verticalAnchor = "middle"; 14558 break; 14559 14560 case "top": 14561 verticalAnchor = mirror ? "start" : "end"; 14562 break; 14563 14564 default: 14565 verticalAnchor = mirror ? "end" : "start"; 14566 } 14567 return verticalAnchor; 14568 } 14569 }, { 14570 key: "renderAxisLine", 14571 value: function() { 14572 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), { 14573 fill: "none" 14574 }, Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.k)(axisLine)); 14575 if ("top" === orientation || "bottom" === orientation) { 14576 var needHeight = "top" === orientation && !mirror || "bottom" === orientation && mirror; 14577 props = _extends({}, props, { 14578 x1: x, 14579 y1: y + needHeight * height, 14580 x2: x + width, 14581 y2: y + needHeight * height 14582 }); 14583 } else { 14584 var needWidth = "left" === orientation && !mirror || "right" === orientation && mirror; 14585 props = _extends({}, props, { 14586 x1: x + needWidth * width, 14587 y1: y, 14588 x2: x + needWidth * width, 14589 y2: y + height 14590 }); 14591 } 14592 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("line", _extends({ 14593 className: "recharts-cartesian-axis-line" 14594 }, props)); 14595 } 14596 }, { 14597 key: "renderTickItem", 14598 value: function(option, props, value) { 14599 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, { 14600 className: "recharts-cartesian-axis-tick-value" 14601 }), value); 14602 } 14603 }, { 14604 key: "renderTicks", 14605 value: function(ticks) { 14606 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, { 14607 ticks: ticks 14608 })), 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, { 14609 fill: "none" 14610 }, Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.k)(tickLine)), items = finalTicks.map(function(entry, i) { 14611 var _getTickLineCoord = _this2.getTickLineCoord(entry), lineCoord = _getTickLineCoord.line, tickCoord = _getTickLineCoord.tick, tickProps = _extends({ 14612 textAnchor: textAnchor, 14613 verticalAnchor: verticalAnchor 14614 }, axisProps, { 14615 stroke: "none", 14616 fill: stroke 14617 }, customTickProps, tickCoord, { 14618 index: i, 14619 payload: entry, 14620 visibleTicksCount: finalTicks.length 14621 }); 14622 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__container_Layer__.a, _extends({ 14623 className: "recharts-cartesian-axis-tick", 14624 key: "tick-" + i 14625 }, Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.f)(_this2.props, entry, i)), tickLine && __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("line", _extends({ 14626 className: "recharts-cartesian-axis-tick-line" 14627 }, tickLineProps, lineCoord)), tick && _this2.renderTickItem(tick, tickProps, "" + (__WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default()(tickFormatter) ? tickFormatter(entry.value) : entry.value) + (unit || ""))); 14628 }); 14629 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("g", { 14630 className: "recharts-cartesian-axis-ticks" 14631 }, items); 14632 } 14633 }, { 14634 key: "render", 14635 value: function() { 14636 var _props7 = this.props, axisLine = _props7.axisLine, width = _props7.width, height = _props7.height, ticksGenerator = _props7.ticksGenerator, className = _props7.className; 14637 if (_props7.hide) return null; 14638 var _props8 = this.props, ticks = _props8.ticks, noTicksProps = _objectWithoutProperties(_props8, [ "ticks" ]), finalTicks = ticks; 14639 return __WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default()(ticksGenerator) && (finalTicks = ticksGenerator(ticks && ticks.length > 0 ? this.props : noTicksProps)), 14640 width <= 0 || height <= 0 || !finalTicks || !finalTicks.length ? null : __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__container_Layer__.a, { 14641 className: __WEBPACK_IMPORTED_MODULE_3_classnames___default()("recharts-cartesian-axis", className) 14642 }, axisLine && this.renderAxisLine(), this.renderTicks(finalTicks), __WEBPACK_IMPORTED_MODULE_8__component_Label__.a.renderCallByParent(this.props)); 14643 } 14644 } ], [ { 14645 key: "getTicks", 14646 value: function(props) { 14647 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; 14648 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({ 14649 ticks: ticks, 14650 tickFormatter: tickFormatter, 14651 viewBox: viewBox, 14652 orientation: orientation, 14653 minTickGap: minTickGap, 14654 unit: unit 14655 }, !0) : "preserveStart" === interval ? CartesianAxis.getTicksStart({ 14656 ticks: ticks, 14657 tickFormatter: tickFormatter, 14658 viewBox: viewBox, 14659 orientation: orientation, 14660 minTickGap: minTickGap, 14661 unit: unit 14662 }) : CartesianAxis.getTicksEnd({ 14663 ticks: ticks, 14664 tickFormatter: tickFormatter, 14665 viewBox: viewBox, 14666 orientation: orientation, 14667 minTickGap: minTickGap, 14668 unit: unit 14669 }) : []; 14670 } 14671 }, { 14672 key: "getNumberIntervalTicks", 14673 value: function(ticks, interval) { 14674 return ticks.filter(function(entry, i) { 14675 return i % (interval + 1) == 0; 14676 }); 14677 } 14678 }, { 14679 key: "getTicksStart", 14680 value: function(_ref2, preserveEnd) { 14681 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; 14682 if (1 === sign ? (start = "width" === sizeKey ? x : y, end = "width" === sizeKey ? x + width : y + height) : (start = "width" === sizeKey ? x + width : y + height, 14683 end = "width" === sizeKey ? x : y), preserveEnd) { 14684 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); 14685 result[len - 1] = tail = _extends({}, tail, { 14686 tickCoord: tailGap > 0 ? tail.coordinate - tailGap * sign : tail.coordinate 14687 }); 14688 sign * (tail.tickCoord - sign * tailSize / 2 - start) >= 0 && sign * (tail.tickCoord + sign * tailSize / 2 - end) <= 0 && (end = tail.tickCoord - sign * (tailSize / 2 + minTickGap), 14689 result[len - 1] = _extends({}, tail, { 14690 isShow: !0 14691 })); 14692 } 14693 for (var count = preserveEnd ? len - 1 : len, i = 0; i < count; i++) { 14694 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; 14695 if (0 === i) { 14696 var gap = sign * (entry.coordinate - sign * size / 2 - start); 14697 result[i] = entry = _extends({}, entry, { 14698 tickCoord: gap < 0 ? entry.coordinate - gap * sign : entry.coordinate 14699 }); 14700 } else result[i] = entry = _extends({}, entry, { 14701 tickCoord: entry.coordinate 14702 }); 14703 sign * (entry.tickCoord - sign * size / 2 - start) >= 0 && sign * (entry.tickCoord + sign * size / 2 - end) <= 0 && (start = entry.tickCoord + sign * (size / 2 + minTickGap), 14704 result[i] = _extends({}, entry, { 14705 isShow: !0 14706 })); 14707 } 14708 return result.filter(function(entry) { 14709 return entry.isShow; 14710 }); 14711 } 14712 }, { 14713 key: "getTicksEnd", 14714 value: function(_ref3) { 14715 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; 14716 1 === sign ? (start = "width" === sizeKey ? x : y, end = "width" === sizeKey ? x + width : y + height) : (start = "width" === sizeKey ? x + width : y + height, 14717 end = "width" === sizeKey ? x : y); 14718 for (var i = len - 1; i >= 0; i--) { 14719 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; 14720 if (i === len - 1) { 14721 var gap = sign * (entry.coordinate + sign * size / 2 - end); 14722 result[i] = entry = _extends({}, entry, { 14723 tickCoord: gap > 0 ? entry.coordinate - gap * sign : entry.coordinate 14724 }); 14725 } else result[i] = entry = _extends({}, entry, { 14726 tickCoord: entry.coordinate 14727 }); 14728 sign * (entry.tickCoord - sign * size / 2 - start) >= 0 && sign * (entry.tickCoord + sign * size / 2 - end) <= 0 && (end = entry.tickCoord - sign * (size / 2 + minTickGap), 14729 result[i] = _extends({}, entry, { 14730 isShow: !0 14731 })); 14732 } 14733 return result.filter(function(entry) { 14734 return entry.isShow; 14735 }); 14736 } 14737 } ]), CartesianAxis; 14738 }(__WEBPACK_IMPORTED_MODULE_1_react__.Component), _class.displayName = "CartesianAxis", 14739 _class.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.c, __WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.a, { 14740 className: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, 14741 x: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 14742 y: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 14743 width: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 14744 height: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 14745 orientation: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOf([ "top", "bottom", "left", "right" ]), 14746 viewBox: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.shape({ 14747 x: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 14748 y: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 14749 width: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 14750 height: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number 14751 }), 14752 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 ]), 14753 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 ]), 14754 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 ]), 14755 mirror: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, 14756 tickMargin: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number.isRequired, 14757 minTickGap: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 14758 ticks: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.array, 14759 tickSize: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 14760 stroke: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, 14761 tickFormatter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, 14762 ticksGenerator: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, 14763 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" ]) ]) 14764 }), _class.defaultProps = { 14765 x: 0, 14766 y: 0, 14767 width: 0, 14768 height: 0, 14769 viewBox: { 14770 x: 0, 14771 y: 0, 14772 width: 0, 14773 height: 0 14774 }, 14775 orientation: "bottom", 14776 ticks: [], 14777 stroke: "#666", 14778 tickLine: !0, 14779 axisLine: !0, 14780 tick: !0, 14781 mirror: !1, 14782 minTickGap: 5, 14783 tickSize: 6, 14784 tickMargin: 2, 14785 interval: "preserveEnd" 14786 }, _temp); 14787 __webpack_exports__.a = CartesianAxis; 14788 }, function(module, exports, __webpack_require__) { 14789 "use strict"; 14790 function _interopRequireDefault(obj) { 14791 return obj && obj.__esModule ? obj : { 14792 default: obj 14793 }; 14794 } 14795 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, 14796 _createMuiTheme2.default)({ 14797 palette: { 14798 type: "dark" 14799 } 14800 }), dashboard = document.getElementById("dashboard"); 14801 dashboard && (0, _reactDom.render)(_react2.default.createElement(_MuiThemeProvider2.default, { 14802 theme: theme 14803 }, _react2.default.createElement(_Dashboard2.default, null)), dashboard); 14804 }, function(module, exports, __webpack_require__) { 14805 "use strict"; 14806 function D(a) { 14807 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]); 14808 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); 14809 } 14810 function F(a, b, e) { 14811 this.props = a, this.context = b, this.refs = p, this.updater = e || E; 14812 } 14813 function G() {} 14814 function H(a, b, e) { 14815 this.props = a, this.context = b, this.refs = p, this.updater = e || E; 14816 } 14817 function M(a, b, e) { 14818 var c = void 0, d = {}, g = null, h = null; 14819 if (null != b) for (c in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (g = "" + b.key), 14820 b) K.call(b, c) && !L.hasOwnProperty(c) && (d[c] = b[c]); 14821 var f = arguments.length - 2; 14822 if (1 === f) d.children = e; else if (1 < f) { 14823 for (var l = Array(f), m = 0; m < f; m++) l[m] = arguments[m + 2]; 14824 d.children = l; 14825 } 14826 if (a && a.defaultProps) for (c in f = a.defaultProps) void 0 === d[c] && (d[c] = f[c]); 14827 return { 14828 $$typeof: t, 14829 type: a, 14830 key: g, 14831 ref: h, 14832 props: d, 14833 _owner: J.current 14834 }; 14835 } 14836 function N(a) { 14837 return "object" == typeof a && null !== a && a.$$typeof === t; 14838 } 14839 function escape(a) { 14840 var b = { 14841 "=": "=0", 14842 ":": "=2" 14843 }; 14844 return "$" + ("" + a).replace(/[=:]/g, function(a) { 14845 return b[a]; 14846 }); 14847 } 14848 function Q(a, b, e, c) { 14849 if (P.length) { 14850 var d = P.pop(); 14851 return d.result = a, d.keyPrefix = b, d.func = e, d.context = c, d.count = 0, d; 14852 } 14853 return { 14854 result: a, 14855 keyPrefix: b, 14856 func: e, 14857 context: c, 14858 count: 0 14859 }; 14860 } 14861 function R(a) { 14862 a.result = null, a.keyPrefix = null, a.func = null, a.context = null, a.count = 0, 14863 10 > P.length && P.push(a); 14864 } 14865 function S(a, b, e, c) { 14866 var d = typeof a; 14867 "undefined" !== d && "boolean" !== d || (a = null); 14868 var g = !1; 14869 if (null === a) g = !0; else switch (d) { 14870 case "string": 14871 case "number": 14872 g = !0; 14873 break; 14874 14875 case "object": 14876 switch (a.$$typeof) { 14877 case t: 14878 case u: 14879 g = !0; 14880 } 14881 } 14882 if (g) return e(c, a, "" === b ? "." + T(a, 0) : b), 1; 14883 if (g = 0, b = "" === b ? "." : b + ":", Array.isArray(a)) for (var h = 0; h < a.length; h++) { 14884 d = a[h]; 14885 var f = b + T(d, h); 14886 g += S(d, f, e, c); 14887 } else if (null === a || void 0 === a ? f = null : (f = C && a[C] || a["@@iterator"], 14888 f = "function" == typeof f ? f : null), "function" == typeof f) for (a = f.call(a), 14889 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, 14890 D("31", "[object Object]" === e ? "object with keys {" + Object.keys(a).join(", ") + "}" : e, "")); 14891 return g; 14892 } 14893 function T(a, b) { 14894 return "object" == typeof a && null !== a && null != a.key ? escape(a.key) : b.toString(36); 14895 } 14896 function U(a, b) { 14897 a.func.call(a.context, b, a.count++); 14898 } 14899 function V(a, b, e) { 14900 var c = a.result, d = a.keyPrefix; 14901 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, 14902 a = { 14903 $$typeof: t, 14904 type: a.type, 14905 key: b, 14906 ref: a.ref, 14907 props: a.props, 14908 _owner: a._owner 14909 }), c.push(a)); 14910 } 14911 function W(a, b, e, c, d) { 14912 var g = ""; 14913 null != e && (g = ("" + e).replace(O, "$&/") + "/"), b = Q(b, g, c, d), null == a || S(a, "", V, b), 14914 R(b); 14915 } 14916 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; 14917 r && Symbol.for("react.timeout"); 14918 var C = "function" == typeof Symbol && Symbol.iterator, E = { 14919 isMounted: function() { 14920 return !1; 14921 }, 14922 enqueueForceUpdate: function() {}, 14923 enqueueReplaceState: function() {}, 14924 enqueueSetState: function() {} 14925 }; 14926 F.prototype.isReactComponent = {}, F.prototype.setState = function(a, b) { 14927 "object" != typeof a && "function" != typeof a && null != a && D("85"), this.updater.enqueueSetState(this, a, b, "setState"); 14928 }, F.prototype.forceUpdate = function(a) { 14929 this.updater.enqueueForceUpdate(this, a, "forceUpdate"); 14930 }, G.prototype = F.prototype; 14931 var I = H.prototype = new G(); 14932 I.constructor = H, k(I, F.prototype), I.isPureReactComponent = !0; 14933 var J = { 14934 current: null 14935 }, K = Object.prototype.hasOwnProperty, L = { 14936 key: !0, 14937 ref: !0, 14938 __self: !0, 14939 __source: !0 14940 }, O = /\/+/g, P = [], X = { 14941 Children: { 14942 map: function(a, b, e) { 14943 if (null == a) return a; 14944 var c = []; 14945 return W(a, c, null, b, e), c; 14946 }, 14947 forEach: function(a, b, e) { 14948 if (null == a) return a; 14949 b = Q(null, null, b, e), null == a || S(a, "", U, b), R(b); 14950 }, 14951 count: function(a) { 14952 return null == a ? 0 : S(a, "", q.thatReturnsNull, null); 14953 }, 14954 toArray: function(a) { 14955 var b = []; 14956 return W(a, b, null, q.thatReturnsArgument), b; 14957 }, 14958 only: function(a) { 14959 return N(a) || D("143"), a; 14960 } 14961 }, 14962 createRef: function() { 14963 return { 14964 current: null 14965 }; 14966 }, 14967 Component: F, 14968 PureComponent: H, 14969 createContext: function(a, b) { 14970 return void 0 === b && (b = null), a = { 14971 $$typeof: z, 14972 _calculateChangedBits: b, 14973 _defaultValue: a, 14974 _currentValue: a, 14975 _currentValue2: a, 14976 _changedBits: 0, 14977 _changedBits2: 0, 14978 Provider: null, 14979 Consumer: null 14980 }, a.Provider = { 14981 $$typeof: y, 14982 _context: a 14983 }, a.Consumer = a; 14984 }, 14985 forwardRef: function(a) { 14986 return { 14987 $$typeof: B, 14988 render: a 14989 }; 14990 }, 14991 Fragment: v, 14992 StrictMode: w, 14993 unstable_AsyncMode: A, 14994 unstable_Profiler: x, 14995 createElement: M, 14996 cloneElement: function(a, b, e) { 14997 (null === a || void 0 === a) && D("267", a); 14998 var c = void 0, d = k({}, a.props), g = a.key, h = a.ref, f = a._owner; 14999 if (null != b) { 15000 void 0 !== b.ref && (h = b.ref, f = J.current), void 0 !== b.key && (g = "" + b.key); 15001 var l = void 0; 15002 a.type && a.type.defaultProps && (l = a.type.defaultProps); 15003 for (c in b) K.call(b, c) && !L.hasOwnProperty(c) && (d[c] = void 0 === b[c] && void 0 !== l ? l[c] : b[c]); 15004 } 15005 if (1 === (c = arguments.length - 2)) d.children = e; else if (1 < c) { 15006 l = Array(c); 15007 for (var m = 0; m < c; m++) l[m] = arguments[m + 2]; 15008 d.children = l; 15009 } 15010 return { 15011 $$typeof: t, 15012 type: a.type, 15013 key: g, 15014 ref: h, 15015 props: d, 15016 _owner: f 15017 }; 15018 }, 15019 createFactory: function(a) { 15020 var b = M.bind(null, a); 15021 return b.type = a, b; 15022 }, 15023 isValidElement: N, 15024 version: "16.4.0", 15025 __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { 15026 ReactCurrentOwner: J, 15027 assign: k 15028 } 15029 }, Y = { 15030 default: X 15031 }, Z = Y && X || Y; 15032 module.exports = Z.default ? Z.default : Z; 15033 }, function(module, exports, __webpack_require__) { 15034 "use strict"; 15035 (function(process) { 15036 "production" !== process.env.NODE_ENV && function() { 15037 function getIteratorFn(maybeIterable) { 15038 if (null === maybeIterable || void 0 === maybeIterable) return null; 15039 var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; 15040 return "function" == typeof maybeIterator ? maybeIterator : null; 15041 } 15042 function warnNoop(publicInstance, callerName) { 15043 var _constructor = publicInstance.constructor, componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass", warningKey = componentName + "." + callerName; 15044 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), 15045 didWarnStateUpdateForUnmountedComponent[warningKey] = !0); 15046 } 15047 function Component(props, context, updater) { 15048 this.props = props, this.context = context, this.refs = emptyObject, this.updater = updater || ReactNoopUpdateQueue; 15049 } 15050 function ComponentDummy() {} 15051 function PureComponent(props, context, updater) { 15052 this.props = props, this.context = context, this.refs = emptyObject, this.updater = updater || ReactNoopUpdateQueue; 15053 } 15054 function createRef() { 15055 var refObject = { 15056 current: null 15057 }; 15058 return Object.seal(refObject), refObject; 15059 } 15060 function hasValidRef(config) { 15061 if (hasOwnProperty.call(config, "ref")) { 15062 var getter = Object.getOwnPropertyDescriptor(config, "ref").get; 15063 if (getter && getter.isReactWarning) return !1; 15064 } 15065 return void 0 !== config.ref; 15066 } 15067 function hasValidKey(config) { 15068 if (hasOwnProperty.call(config, "key")) { 15069 var getter = Object.getOwnPropertyDescriptor(config, "key").get; 15070 if (getter && getter.isReactWarning) return !1; 15071 } 15072 return void 0 !== config.key; 15073 } 15074 function defineKeyPropWarningGetter(props, displayName) { 15075 var warnAboutAccessingKey = function() { 15076 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)); 15077 }; 15078 warnAboutAccessingKey.isReactWarning = !0, Object.defineProperty(props, "key", { 15079 get: warnAboutAccessingKey, 15080 configurable: !0 15081 }); 15082 } 15083 function defineRefPropWarningGetter(props, displayName) { 15084 var warnAboutAccessingRef = function() { 15085 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)); 15086 }; 15087 warnAboutAccessingRef.isReactWarning = !0, Object.defineProperty(props, "ref", { 15088 get: warnAboutAccessingRef, 15089 configurable: !0 15090 }); 15091 } 15092 function createElement(type, config, children) { 15093 var propName = void 0, props = {}, key = null, ref = null, self = null, source = null; 15094 if (null != config) { 15095 hasValidRef(config) && (ref = config.ref), hasValidKey(config) && (key = "" + config.key), 15096 self = void 0 === config.__self ? null : config.__self, source = void 0 === config.__source ? null : config.__source; 15097 for (propName in config) hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName) && (props[propName] = config[propName]); 15098 } 15099 var childrenLength = arguments.length - 2; 15100 if (1 === childrenLength) props.children = children; else if (childrenLength > 1) { 15101 for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++) childArray[i] = arguments[i + 2]; 15102 Object.freeze && Object.freeze(childArray), props.children = childArray; 15103 } 15104 if (type && type.defaultProps) { 15105 var defaultProps = type.defaultProps; 15106 for (propName in defaultProps) void 0 === props[propName] && (props[propName] = defaultProps[propName]); 15107 } 15108 if ((key || ref) && (void 0 === props.$$typeof || props.$$typeof !== REACT_ELEMENT_TYPE)) { 15109 var displayName = "function" == typeof type ? type.displayName || type.name || "Unknown" : type; 15110 key && defineKeyPropWarningGetter(props, displayName), ref && defineRefPropWarningGetter(props, displayName); 15111 } 15112 return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props); 15113 } 15114 function cloneAndReplaceKey(oldElement, newKey) { 15115 return ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props); 15116 } 15117 function cloneElement(element, config, children) { 15118 (null === element || void 0 === element) && invariant(!1, "React.cloneElement(...): The argument must be a React element, but you passed %s.", element); 15119 var propName = void 0, props = _assign({}, element.props), key = element.key, ref = element.ref, self = element._self, source = element._source, owner = element._owner; 15120 if (null != config) { 15121 hasValidRef(config) && (ref = config.ref, owner = ReactCurrentOwner.current), hasValidKey(config) && (key = "" + config.key); 15122 var defaultProps = void 0; 15123 element.type && element.type.defaultProps && (defaultProps = element.type.defaultProps); 15124 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]); 15125 } 15126 var childrenLength = arguments.length - 2; 15127 if (1 === childrenLength) props.children = children; else if (childrenLength > 1) { 15128 for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++) childArray[i] = arguments[i + 2]; 15129 props.children = childArray; 15130 } 15131 return ReactElement(element.type, key, ref, self, source, owner, props); 15132 } 15133 function isValidElement(object) { 15134 return "object" == typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE; 15135 } 15136 function escape(key) { 15137 var escaperLookup = { 15138 "=": "=0", 15139 ":": "=2" 15140 }; 15141 return "$" + ("" + key).replace(/[=:]/g, function(match) { 15142 return escaperLookup[match]; 15143 }); 15144 } 15145 function escapeUserProvidedKey(text) { 15146 return ("" + text).replace(userProvidedKeyEscapeRegex, "$&/"); 15147 } 15148 function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) { 15149 if (traverseContextPool.length) { 15150 var traverseContext = traverseContextPool.pop(); 15151 return traverseContext.result = mapResult, traverseContext.keyPrefix = keyPrefix, 15152 traverseContext.func = mapFunction, traverseContext.context = mapContext, traverseContext.count = 0, 15153 traverseContext; 15154 } 15155 return { 15156 result: mapResult, 15157 keyPrefix: keyPrefix, 15158 func: mapFunction, 15159 context: mapContext, 15160 count: 0 15161 }; 15162 } 15163 function releaseTraverseContext(traverseContext) { 15164 traverseContext.result = null, traverseContext.keyPrefix = null, traverseContext.func = null, 15165 traverseContext.context = null, traverseContext.count = 0, traverseContextPool.length < POOL_SIZE && traverseContextPool.push(traverseContext); 15166 } 15167 function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) { 15168 var type = typeof children; 15169 "undefined" !== type && "boolean" !== type || (children = null); 15170 var invokeCallback = !1; 15171 if (null === children) invokeCallback = !0; else switch (type) { 15172 case "string": 15173 case "number": 15174 invokeCallback = !0; 15175 break; 15176 15177 case "object": 15178 switch (children.$$typeof) { 15179 case REACT_ELEMENT_TYPE: 15180 case REACT_PORTAL_TYPE: 15181 invokeCallback = !0; 15182 } 15183 } 15184 if (invokeCallback) return callback(traverseContext, children, "" === nameSoFar ? SEPARATOR + getComponentKey(children, 0) : nameSoFar), 15185 1; 15186 var child = void 0, nextName = void 0, subtreeCount = 0, nextNamePrefix = "" === nameSoFar ? SEPARATOR : nameSoFar + SUBSEPARATOR; 15187 if (Array.isArray(children)) for (var i = 0; i < children.length; i++) child = children[i], 15188 nextName = nextNamePrefix + getComponentKey(child, i), subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); else { 15189 var iteratorFn = getIteratorFn(children); 15190 if ("function" == typeof iteratorFn) { 15191 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()), 15192 didWarnAboutMaps = !0); 15193 for (var iterator = iteratorFn.call(children), step = void 0, ii = 0; !(step = iterator.next()).done; ) child = step.value, 15194 nextName = nextNamePrefix + getComponentKey(child, ii++), subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext); 15195 } else if ("object" === type) { 15196 var addendum = ""; 15197 addendum = " If you meant to render a collection of children, use an array instead." + ReactDebugCurrentFrame.getStackAddendum(); 15198 var childrenString = "" + children; 15199 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); 15200 } 15201 } 15202 return subtreeCount; 15203 } 15204 function traverseAllChildren(children, callback, traverseContext) { 15205 return null == children ? 0 : traverseAllChildrenImpl(children, "", callback, traverseContext); 15206 } 15207 function getComponentKey(component, index) { 15208 return "object" == typeof component && null !== component && null != component.key ? escape(component.key) : index.toString(36); 15209 } 15210 function forEachSingleChild(bookKeeping, child, name) { 15211 var func = bookKeeping.func, context = bookKeeping.context; 15212 func.call(context, child, bookKeeping.count++); 15213 } 15214 function forEachChildren(children, forEachFunc, forEachContext) { 15215 if (null == children) return children; 15216 var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext); 15217 traverseAllChildren(children, forEachSingleChild, traverseContext), releaseTraverseContext(traverseContext); 15218 } 15219 function mapSingleChildIntoContext(bookKeeping, child, childKey) { 15220 var result = bookKeeping.result, keyPrefix = bookKeeping.keyPrefix, func = bookKeeping.func, context = bookKeeping.context, mappedChild = func.call(context, child, bookKeeping.count++); 15221 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)), 15222 result.push(mappedChild)); 15223 } 15224 function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) { 15225 var escapedPrefix = ""; 15226 null != prefix && (escapedPrefix = escapeUserProvidedKey(prefix) + "/"); 15227 var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context); 15228 traverseAllChildren(children, mapSingleChildIntoContext, traverseContext), releaseTraverseContext(traverseContext); 15229 } 15230 function mapChildren(children, func, context) { 15231 if (null == children) return children; 15232 var result = []; 15233 return mapIntoWithKeyPrefixInternal(children, result, null, func, context), result; 15234 } 15235 function countChildren(children) { 15236 return traverseAllChildren(children, emptyFunction.thatReturnsNull, null); 15237 } 15238 function toArray(children) { 15239 var result = []; 15240 return mapIntoWithKeyPrefixInternal(children, result, null, emptyFunction.thatReturnsArgument), 15241 result; 15242 } 15243 function onlyChild(children) { 15244 return isValidElement(children) || invariant(!1, "React.Children.only expected to receive a single React element child."), 15245 children; 15246 } 15247 function createContext(defaultValue, calculateChangedBits) { 15248 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); 15249 var context = { 15250 $$typeof: REACT_CONTEXT_TYPE, 15251 _calculateChangedBits: calculateChangedBits, 15252 _defaultValue: defaultValue, 15253 _currentValue: defaultValue, 15254 _currentValue2: defaultValue, 15255 _changedBits: 0, 15256 _changedBits2: 0, 15257 Provider: null, 15258 Consumer: null 15259 }; 15260 return context.Provider = { 15261 $$typeof: REACT_PROVIDER_TYPE, 15262 _context: context 15263 }, context.Consumer = context, context._currentRenderer = null, context._currentRenderer2 = null, 15264 context; 15265 } 15266 function forwardRef(render) { 15267 return "function" != typeof render && warning(!1, "forwardRef requires a render function but was given %s.", null === render ? "null" : typeof render), 15268 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?"), 15269 { 15270 $$typeof: REACT_FORWARD_REF_TYPE, 15271 render: render 15272 }; 15273 } 15274 function isValidElementType(type) { 15275 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); 15276 } 15277 function getComponentName(fiber) { 15278 var type = fiber.type; 15279 if ("function" == typeof type) return type.displayName || type.name; 15280 if ("string" == typeof type) return type; 15281 switch (type) { 15282 case REACT_ASYNC_MODE_TYPE: 15283 return "AsyncMode"; 15284 15285 case REACT_CONTEXT_TYPE: 15286 return "Context.Consumer"; 15287 15288 case REACT_FRAGMENT_TYPE: 15289 return "ReactFragment"; 15290 15291 case REACT_PORTAL_TYPE: 15292 return "ReactPortal"; 15293 15294 case REACT_PROFILER_TYPE: 15295 return "Profiler(" + fiber.pendingProps.id + ")"; 15296 15297 case REACT_PROVIDER_TYPE: 15298 return "Context.Provider"; 15299 15300 case REACT_STRICT_MODE_TYPE: 15301 return "StrictMode"; 15302 15303 case REACT_TIMEOUT_TYPE: 15304 return "Timeout"; 15305 } 15306 if ("object" == typeof type && null !== type) switch (type.$$typeof) { 15307 case REACT_FORWARD_REF_TYPE: 15308 var functionName = type.render.displayName || type.render.name || ""; 15309 return "" !== functionName ? "ForwardRef(" + functionName + ")" : "ForwardRef"; 15310 } 15311 return null; 15312 } 15313 function getDeclarationErrorAddendum() { 15314 if (ReactCurrentOwner.current) { 15315 var name = getComponentName(ReactCurrentOwner.current); 15316 if (name) return "\n\nCheck the render method of ` + ("`" + `" + name + "`)) + ("`" + (`."; 15317 } 15318 return ""; 15319 } 15320 function getSourceInfoErrorAddendum(elementProps) { 15321 if (null !== elementProps && void 0 !== elementProps && void 0 !== elementProps.__source) { 15322 var source = elementProps.__source; 15323 return "\n\nCheck your code at " + source.fileName.replace(/^.*[\\\/]/, "") + ":" + source.lineNumber + "."; 15324 } 15325 return ""; 15326 } 15327 function getCurrentComponentErrorInfo(parentType) { 15328 var info = getDeclarationErrorAddendum(); 15329 if (!info) { 15330 var parentName = "string" == typeof parentType ? parentType : parentType.displayName || parentType.name; 15331 parentName && (info = "\n\nCheck the top-level render call using <" + parentName + ">."); 15332 } 15333 return info; 15334 } 15335 function validateExplicitKey(element, parentType) { 15336 if (element._store && !element._store.validated && null == element.key) { 15337 element._store.validated = !0; 15338 var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType); 15339 if (!ownerHasKeyUseWarning[currentComponentErrorInfo]) { 15340 ownerHasKeyUseWarning[currentComponentErrorInfo] = !0; 15341 var childOwner = ""; 15342 element && element._owner && element._owner !== ReactCurrentOwner.current && (childOwner = " It was passed a child from " + getComponentName(element._owner) + "."), 15343 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()), 15344 currentlyValidatingElement = null; 15345 } 15346 } 15347 } 15348 function validateChildKeys(node, parentType) { 15349 if ("object" == typeof node) if (Array.isArray(node)) for (var i = 0; i < node.length; i++) { 15350 var child = node[i]; 15351 isValidElement(child) && validateExplicitKey(child, parentType); 15352 } else if (isValidElement(node)) node._store && (node._store.validated = !0); else if (node) { 15353 var iteratorFn = getIteratorFn(node); 15354 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); 15355 } 15356 } 15357 function validatePropTypes(element) { 15358 var componentClass = element.type; 15359 if ("function" == typeof componentClass) { 15360 var name = componentClass.displayName || componentClass.name, propTypes = componentClass.propTypes; 15361 propTypes ? (currentlyValidatingElement = element, checkPropTypes(propTypes, element.props, "prop", name, getStackAddendum), 15362 currentlyValidatingElement = null) : void 0 === componentClass.PropTypes || propTypesMisspellWarningShown || (propTypesMisspellWarningShown = !0, 15363 warning(!1, "Component %s declared ` + "`"))))) + ((((`PropTypes` + ("`" + ` instead of `)) + ("`" + (`propTypes` + "`"))) + ((`. Did you misspell the property assignment?", name || "Unknown")), 15364 "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.")); 15365 } 15366 } 15367 function validateFragmentProps(fragment) { 15368 currentlyValidatingElement = fragment; 15369 for (var keys = Object.keys(fragment.props), i = 0; i < keys.length; i++) { 15370 var key = keys[i]; 15371 if ("children" !== key && "key" !== key) { 15372 warning(!1, "Invalid prop ` + "`")))) + (((`%s` + ("`" + ` supplied to `)) + ("`" + (`React.Fragment` + "`"))) + ((`. React.Fragment can only have ` + ("`" + `key`)) + ("`" + (` and ` + "`"))))))) + ((((((`children` + ("`" + ` props.%s", key, getStackAddendum()); 15373 break; 15374 } 15375 } 15376 null !== fragment.ref && warning(!1, "Invalid attribute `)) + ("`" + (`ref` + "`"))) + ((` supplied to ` + ("`" + `React.Fragment`)) + ("`" + (`.%s", getStackAddendum()), 15377 currentlyValidatingElement = null; 15378 } 15379 function createElementWithValidation(type, props, children) { 15380 var validType = isValidElementType(type); 15381 if (!validType) { 15382 var info = ""; 15383 (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."); 15384 var sourceInfo = getSourceInfoErrorAddendum(props); 15385 info += sourceInfo || getDeclarationErrorAddendum(), info += getStackAddendum() || ""; 15386 var typeString = void 0; 15387 typeString = null === type ? "null" : Array.isArray(type) ? "array" : typeof type, 15388 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); 15389 } 15390 var element = createElement.apply(this, arguments); 15391 if (null == element) return element; 15392 if (validType) for (var i = 2; i < arguments.length; i++) validateChildKeys(arguments[i], type); 15393 return type === REACT_FRAGMENT_TYPE ? validateFragmentProps(element) : validatePropTypes(element), 15394 element; 15395 } 15396 function createFactoryWithValidation(type) { 15397 var validatedFactory = createElementWithValidation.bind(null, type); 15398 return validatedFactory.type = type, Object.defineProperty(validatedFactory, "type", { 15399 enumerable: !1, 15400 get: function() { 15401 return lowPriorityWarning$1(!1, "Factory.type is deprecated. Access the class directly before passing it to createFactory."), 15402 Object.defineProperty(this, "type", { 15403 value: type 15404 }), type; 15405 } 15406 }), validatedFactory; 15407 } 15408 function cloneElementWithValidation(element, props, children) { 15409 for (var newElement = cloneElement.apply(this, arguments), i = 2; i < arguments.length; i++) validateChildKeys(arguments[i], newElement.type); 15410 return validatePropTypes(newElement), newElement; 15411 } 15412 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) { 15413 for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) args[_key - 1] = arguments[_key]; 15414 var argIndex = 0, message = "Warning: " + format.replace(/%s/g, function() { 15415 return args[argIndex++]; 15416 }); 15417 "undefined" != typeof console && console.warn(message); 15418 try { 15419 throw new Error(message); 15420 } catch (x) {} 15421 }; 15422 lowPriorityWarning = function(condition, format) { 15423 if (void 0 === format) throw new Error("` + "`")))) + (((`warning(condition, format, ...args)` + ("`" + ` requires a warning message argument"); 15424 if (!condition) { 15425 for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) args[_key2 - 2] = arguments[_key2]; 15426 printWarning.apply(void 0, [ format ].concat(args)); 15427 } 15428 }; 15429 var lowPriorityWarning$1 = lowPriorityWarning, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = { 15430 isMounted: function(publicInstance) { 15431 return !1; 15432 }, 15433 enqueueForceUpdate: function(publicInstance, callback, callerName) { 15434 warnNoop(publicInstance, "forceUpdate"); 15435 }, 15436 enqueueReplaceState: function(publicInstance, completeState, callback, callerName) { 15437 warnNoop(publicInstance, "replaceState"); 15438 }, 15439 enqueueSetState: function(publicInstance, partialState, callback, callerName) { 15440 warnNoop(publicInstance, "setState"); 15441 } 15442 }; 15443 Component.prototype.isReactComponent = {}, Component.prototype.setState = function(partialState, callback) { 15444 "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."), 15445 this.updater.enqueueSetState(this, partialState, callback, "setState"); 15446 }, Component.prototype.forceUpdate = function(callback) { 15447 this.updater.enqueueForceUpdate(this, callback, "forceUpdate"); 15448 }; 15449 var deprecatedAPIs = { 15450 isMounted: [ "isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks." ], 15451 replaceState: [ "replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)。“] 15452 }; 15453 for (var fnName in deprecatedAPIs) deprecatedAPIs.hasOwnProperty(fnName) && function(methodName, info) { 15454 Object.defineProperty(Component.prototype, methodName, { 15455 get: function() { 15456 lowPriorityWarning$1(!1, "%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]); 15457 } 15458 }); 15459 }(fnName, deprecatedAPIs[fnName]); 15460 ComponentDummy.prototype = Component.prototype; 15461 var pureComponentPrototype = PureComponent.prototype = new ComponentDummy(); 15462 pureComponentPrototype.constructor = PureComponent, _assign(pureComponentPrototype, Component.prototype), 15463 pureComponentPrototype.isPureReactComponent = !0; 15464 var ReactCurrentOwner = { 15465 current: null 15466 }, hasOwnProperty = Object.prototype.hasOwnProperty, RESERVED_PROPS = { 15467 key: !0, 15468 ref: !0, 15469 __self: !0, 15470 __source: !0 15471 }, specialPropKeyWarningShown = void 0, specialPropRefWarningShown = void 0, ReactElement = function(type, key, ref, self, source, owner, props) { 15472 var element = { 15473 $$typeof: REACT_ELEMENT_TYPE, 15474 type: type, 15475 key: key, 15476 ref: ref, 15477 props: props, 15478 _owner: owner 15479 }; 15480 return element._store = {}, Object.defineProperty(element._store, "validated", { 15481 configurable: !1, 15482 enumerable: !1, 15483 writable: !0, 15484 value: !1 15485 }), Object.defineProperty(element, "_self", { 15486 configurable: !1, 15487 enumerable: !1, 15488 writable: !1, 15489 value: self 15490 }), Object.defineProperty(element, "_source", { 15491 configurable: !1, 15492 enumerable: !1, 15493 writable: !1, 15494 value: source 15495 }), Object.freeze && (Object.freeze(element.props), Object.freeze(element)), element; 15496 }, ReactDebugCurrentFrame = {}; 15497 ReactDebugCurrentFrame.getCurrentStack = null, ReactDebugCurrentFrame.getStackAddendum = function() { 15498 var impl = ReactDebugCurrentFrame.getCurrentStack; 15499 return impl ? impl() : null; 15500 }; 15501 var SEPARATOR = ".", SUBSEPARATOR = ":", didWarnAboutMaps = !1, userProvidedKeyEscapeRegex = /\/+/g, POOL_SIZE = 10, traverseContextPool = [], describeComponentFrame = function(name, source, ownerName) { 15502 return "\n in " + (name || "Unknown") + (source ? " (at " + source.fileName.replace(/^.*[\\\/]/, "") + ":" + source.lineNumber + ")" : ownerName ? " (created by " + ownerName + ")" : ""); 15503 }, currentlyValidatingElement = void 0, propTypesMisspellWarningShown = void 0, getDisplayName = function() {}, getStackAddendum = function() {}; 15504 currentlyValidatingElement = null, propTypesMisspellWarningShown = !1, getDisplayName = function(element) { 15505 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"; 15506 }, getStackAddendum = function() { 15507 var stack = ""; 15508 if (currentlyValidatingElement) { 15509 var name = getDisplayName(currentlyValidatingElement), owner = currentlyValidatingElement._owner; 15510 stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner)); 15511 } 15512 return stack += ReactDebugCurrentFrame.getStackAddendum() || ""; 15513 }; 15514 var ownerHasKeyUseWarning = {}, React = { 15515 Children: { 15516 map: mapChildren, 15517 forEach: forEachChildren, 15518 count: countChildren, 15519 toArray: toArray, 15520 only: onlyChild 15521 }, 15522 createRef: createRef, 15523 Component: Component, 15524 PureComponent: PureComponent, 15525 createContext: createContext, 15526 forwardRef: forwardRef, 15527 Fragment: REACT_FRAGMENT_TYPE, 15528 StrictMode: REACT_STRICT_MODE_TYPE, 15529 unstable_AsyncMode: REACT_ASYNC_MODE_TYPE, 15530 unstable_Profiler: REACT_PROFILER_TYPE, 15531 createElement: createElementWithValidation, 15532 cloneElement: cloneElementWithValidation, 15533 createFactory: createFactoryWithValidation, 15534 isValidElement: isValidElement, 15535 version: "16.4.0", 15536 __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { 15537 ReactCurrentOwner: ReactCurrentOwner, 15538 assign: _assign 15539 } 15540 }; 15541 _assign(React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, { 15542 ReactDebugCurrentFrame: ReactDebugCurrentFrame, 15543 ReactComponentTreeHook: {} 15544 }); 15545 var React$2 = Object.freeze({ 15546 default: React 15547 }), React$3 = React$2 && React || React$2, react = React$3.default ? React$3.default : React$3; 15548 module.exports = react; 15549 }(); 15550 }).call(exports, __webpack_require__(2)); 15551 }, function(module, exports, __webpack_require__) { 15552 "use strict"; 15553 function A(a) { 15554 for (var b = arguments.length - 1, c = "https://reactjs.org/docs/error-decoder.html?不变量=“+a,d=0;d<b;d++)c+=“&args[]=”+编码成分(参数[d+1]); 15555 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); 15556 } 15557 function ia(a, b, c, d, e, f, g, h, k) { 15558 this._hasCaughtError = !1, this._caughtError = null; 15559 var n = Array.prototype.slice.call(arguments, 3); 15560 try { 15561 b.apply(c, n); 15562 } catch (r) { 15563 this._caughtError = r, this._hasCaughtError = !0; 15564 } 15565 } 15566 function ka() { 15567 if (B._hasRethrowError) { 15568 var a = B._rethrowError; 15569 throw B._rethrowError = null, B._hasRethrowError = !1, a; 15570 } 15571 } 15572 function na() { 15573 if (la) for (var a in ma) { 15574 var b = ma[a], c = la.indexOf(a); 15575 if (-1 < c || A("96", a), !oa[c]) { 15576 b.extractEvents || A("97", a), oa[c] = b, c = b.eventTypes; 15577 for (var d in c) { 15578 var e = void 0, f = c[d], g = b, h = d; 15579 pa.hasOwnProperty(h) && A("99", h), pa[h] = f; 15580 var k = f.phasedRegistrationNames; 15581 if (k) { 15582 for (e in k) k.hasOwnProperty(e) && qa(k[e], g, h); 15583 e = !0; 15584 } else f.registrationName ? (qa(f.registrationName, g, h), e = !0) : e = !1; 15585 e || A("98", d, a); 15586 } 15587 } 15588 } 15589 } 15590 function qa(a, b, c) { 15591 ra[a] && A("100", a), ra[a] = b, sa[a] = b.eventTypes[c].dependencies; 15592 } 15593 function ta(a) { 15594 la && A("101"), la = Array.prototype.slice.call(a), na(); 15595 } 15596 function ua(a) { 15597 var c, b = !1; 15598 for (c in a) if (a.hasOwnProperty(c)) { 15599 var d = a[c]; 15600 ma.hasOwnProperty(c) && ma[c] === d || (ma[c] && A("102", c), ma[c] = d, b = !0); 15601 } 15602 b && na(); 15603 } 15604 function za(a, b, c, d) { 15605 b = a.type || "unknown-event", a.currentTarget = ya(d), B.invokeGuardedCallbackAndCatchFirstError(b, c, void 0, a), 15606 a.currentTarget = null; 15607 } 15608 function Aa(a, b) { 15609 return null == b && A("30"), null == a ? b : Array.isArray(a) ? Array.isArray(b) ? (a.push.apply(a, b), 15610 a) : (a.push(b), a) : Array.isArray(b) ? [ a ].concat(b) : [ a, b ]; 15611 } 15612 function Ba(a, b, c) { 15613 Array.isArray(a) ? a.forEach(b, c) : a && b.call(c, a); 15614 } 15615 function Da(a, b) { 15616 if (a) { 15617 var c = a._dispatchListeners, d = a._dispatchInstances; 15618 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); 15619 a._dispatchListeners = null, a._dispatchInstances = null, a.isPersistent() || a.constructor.release(a); 15620 } 15621 } 15622 function Ea(a) { 15623 return Da(a, !0); 15624 } 15625 function Fa(a) { 15626 return Da(a, !1); 15627 } 15628 function Ha(a, b) { 15629 var c = a.stateNode; 15630 if (!c) return null; 15631 var d = wa(c); 15632 if (!d) return null; 15633 c = d[b]; 15634 a: switch (b) { 15635 case "onClick": 15636 case "onClickCapture": 15637 case "onDoubleClick": 15638 case "onDoubleClickCapture": 15639 case "onMouseDown": 15640 case "onMouseDownCapture": 15641 case "onMouseMove": 15642 case "onMouseMoveCapture": 15643 case "onMouseUp": 15644 case "onMouseUpCapture": 15645 (d = !d.disabled) || (a = a.type, d = !("button" === a || "input" === a || "select" === a || "textarea" === a)), 15646 a = !d; 15647 break a; 15648 15649 default: 15650 a = !1; 15651 } 15652 return a ? null : (c && "function" != typeof c && A("231", b, typeof c), c); 15653 } 15654 function Ia(a, b) { 15655 null !== a && (Ca = Aa(Ca, a)), a = Ca, Ca = null, a && (b ? Ba(a, Ea) : Ba(a, Fa), 15656 Ca && A("95"), B.rethrowCaughtError()); 15657 } 15658 function Ja(a, b, c, d) { 15659 for (var e = null, f = 0; f < oa.length; f++) { 15660 var g = oa[f]; 15661 g && (g = g.extractEvents(a, b, c, d)) && (e = Aa(e, g)); 15662 } 15663 Ia(e, !1); 15664 } 15665 function Na(a) { 15666 if (a[C]) return a[C]; 15667 for (;!a[C]; ) { 15668 if (!a.parentNode) return null; 15669 a = a.parentNode; 15670 } 15671 return a = a[C], 5 === a.tag || 6 === a.tag ? a : null; 15672 } 15673 function Oa(a) { 15674 if (5 === a.tag || 6 === a.tag) return a.stateNode; 15675 A("33"); 15676 } 15677 function Pa(a) { 15678 return a[Ma] || null; 15679 } 15680 function F(a) { 15681 do { 15682 a = a.return; 15683 } while (a && 5 !== a.tag); 15684 return a || null; 15685 } 15686 function Ra(a, b, c) { 15687 for (var d = []; a; ) d.push(a), a = F(a); 15688 for (a = d.length; 0 < a--; ) b(d[a], "captured", c); 15689 for (a = 0; a < d.length; a++) b(d[a], "bubbled", c); 15690 } 15691 function Sa(a, b, c) { 15692 (b = Ha(a, c.dispatchConfig.phasedRegistrationNames[b])) && (c._dispatchListeners = Aa(c._dispatchListeners, b), 15693 c._dispatchInstances = Aa(c._dispatchInstances, a)); 15694 } 15695 function Ta(a) { 15696 a && a.dispatchConfig.phasedRegistrationNames && Ra(a._targetInst, Sa, a); 15697 } 15698 function Ua(a) { 15699 if (a && a.dispatchConfig.phasedRegistrationNames) { 15700 var b = a._targetInst; 15701 b = b ? F(b) : null, Ra(b, Sa, a); 15702 } 15703 } 15704 function Va(a, b, c) { 15705 a && c && c.dispatchConfig.registrationName && (b = Ha(a, c.dispatchConfig.registrationName)) && (c._dispatchListeners = Aa(c._dispatchListeners, b), 15706 c._dispatchInstances = Aa(c._dispatchInstances, a)); 15707 } 15708 function Xa(a) { 15709 a && a.dispatchConfig.registrationName && Va(a._targetInst, null, a); 15710 } 15711 function Ya(a) { 15712 Ba(a, Ta); 15713 } 15714 function Za(a, b, c, d) { 15715 if (c && d) a: { 15716 for (var e = c, f = d, g = 0, h = e; h; h = F(h)) g++; 15717 h = 0; 15718 for (var k = f; k; k = F(k)) h++; 15719 for (;0 < g - h; ) e = F(e), g--; 15720 for (;0 < h - g; ) f = F(f), h--; 15721 for (;g--; ) { 15722 if (e === f || e === f.alternate) break a; 15723 e = F(e), f = F(f); 15724 } 15725 e = null; 15726 } else e = null; 15727 for (f = e, e = []; c && c !== f && (null === (g = c.alternate) || g !== f); ) e.push(c), 15728 c = F(c); 15729 for (c = []; d && d !== f && (null === (g = d.alternate) || g !== f); ) c.push(d), 15730 d = F(d); 15731 for (d = 0; d < e.length; d++) Va(e[d], "bubbled", a); 15732 for (a = c.length; 0 < a--; ) Va(c[a], "captured", b); 15733 } 15734 function ab(a, b) { 15735 var c = {}; 15736 return c[a.toLowerCase()] = b.toLowerCase(), c["Webkit" + a] = "webkit" + b, c["Moz" + a] = "moz" + b, 15737 c["ms" + a] = "MS" + b, c["O" + a] = "o" + b.toLowerCase(), c; 15738 } 15739 function eb(a) { 15740 if (cb[a]) return cb[a]; 15741 if (!bb[a]) return a; 15742 var c, b = bb[a]; 15743 for (c in b) if (b.hasOwnProperty(c) && c in db) return cb[a] = b[c]; 15744 return a; 15745 } 15746 function lb() { 15747 return !kb && m.canUseDOM && (kb = "textContent" in document.documentElement ? "textContent" : "innerText"), 15748 kb; 15749 } 15750 function mb() { 15751 if (G._fallbackText) return G._fallbackText; 15752 var a, d, b = G._startText, c = b.length, e = nb(), f = e.length; 15753 for (a = 0; a < c && b[a] === e[a]; a++) ; 15754 var g = c - a; 15755 for (d = 1; d <= g && b[c - d] === e[f - d]; d++) ; 15756 return G._fallbackText = e.slice(a, 1 < d ? 1 - d : void 0), G._fallbackText; 15757 } 15758 function nb() { 15759 return "value" in G._root ? G._root.value : G._root[lb()]; 15760 } 15761 function H(a, b, c, d) { 15762 this.dispatchConfig = a, this._targetInst = b, this.nativeEvent = c, a = this.constructor.Interface; 15763 for (var e in a) a.hasOwnProperty(e) && ((b = a[e]) ? this[e] = b(c) : "target" === e ? this.target = d : this[e] = c[e]); 15764 return this.isDefaultPrevented = (null != c.defaultPrevented ? c.defaultPrevented : !1 === c.returnValue) ? v.thatReturnsTrue : v.thatReturnsFalse, 15765 this.isPropagationStopped = v.thatReturnsFalse, this; 15766 } 15767 function rb(a, b, c, d) { 15768 if (this.eventPool.length) { 15769 var e = this.eventPool.pop(); 15770 return this.call(e, a, b, c, d), e; 15771 } 15772 return new this(a, b, c, d); 15773 } 15774 function sb(a) { 15775 a instanceof this || A("223"), a.destructor(), 10 > this.eventPool.length && this.eventPool.push(a); 15776 } 15777 function qb(a) { 15778 a.eventPool = [], a.getPooled = rb, a.release = sb; 15779 } 15780 function Db(a, b) { 15781 switch (a) { 15782 case "keyup": 15783 return -1 !== vb.indexOf(b.keyCode); 15784 15785 case "keydown": 15786 return 229 !== b.keyCode; 15787 15788 case "keypress": 15789 case "mousedown": 15790 case "blur": 15791 return !0; 15792 15793 default: 15794 return !1; 15795 } 15796 } 15797 function Eb(a) { 15798 return a = a.detail, "object" == typeof a && "data" in a ? a.data : null; 15799 } 15800 function Gb(a, b) { 15801 switch (a) { 15802 case "compositionend": 15803 return Eb(b); 15804 15805 case "keypress": 15806 return 32 !== b.which ? null : (Cb = !0, Ab); 15807 15808 case "textInput": 15809 return a = b.data, a === Ab && Cb ? null : a; 15810 15811 default: 15812 return null; 15813 } 15814 } 15815 function Hb(a, b) { 15816 if (Fb) return "compositionend" === a || !wb && Db(a, b) ? (a = mb(), G._root = null, 15817 G._startText = null, G._fallbackText = null, Fb = !1, a) : null; 15818 switch (a) { 15819 case "paste": 15820 return null; 15821 15822 case "keypress": 15823 if (!(b.ctrlKey || b.altKey || b.metaKey) || b.ctrlKey && b.altKey) { 15824 if (b.char && 1 < b.char.length) return b.char; 15825 if (b.which) return String.fromCharCode(b.which); 15826 } 15827 return null; 15828 15829 case "compositionend": 15830 return zb ? null : b.data; 15831 15832 default: 15833 return null; 15834 } 15835 } 15836 function Nb(a) { 15837 if (a = xa(a)) { 15838 Jb && "function" == typeof Jb.restoreControlledState || A("194"); 15839 var b = wa(a.stateNode); 15840 Jb.restoreControlledState(a.stateNode, a.type, b); 15841 } 15842 } 15843 function Ob(a) { 15844 Lb ? Mb ? Mb.push(a) : Mb = [ a ] : Lb = a; 15845 } 15846 function Pb() { 15847 return null !== Lb || null !== Mb; 15848 } 15849 function Qb() { 15850 if (Lb) { 15851 var a = Lb, b = Mb; 15852 if (Mb = Lb = null, Nb(a), b) for (a = 0; a < b.length; a++) Nb(b[a]); 15853 } 15854 } 15855 function Sb(a, b) { 15856 return a(b); 15857 } 15858 function Tb(a, b, c) { 15859 return a(b, c); 15860 } 15861 function Ub() {} 15862 function Wb(a, b) { 15863 if (Vb) return a(b); 15864 Vb = !0; 15865 try { 15866 return Sb(a, b); 15867 } finally { 15868 Vb = !1, Pb() && (Ub(), Qb()); 15869 } 15870 } 15871 function Yb(a) { 15872 var b = a && a.nodeName && a.nodeName.toLowerCase(); 15873 return "input" === b ? !!Xb[a.type] : "textarea" === b; 15874 } 15875 function Zb(a) { 15876 return a = a.target || window, a.correspondingUseElement && (a = a.correspondingUseElement), 15877 3 === a.nodeType ? a.parentNode : a; 15878 } 15879 function $b(a, b) { 15880 return !(!m.canUseDOM || b && !("addEventListener" in document)) && (a = "on" + a, 15881 b = a in document, b || (b = document.createElement("div"), b.setAttribute(a, "return;"), 15882 b = "function" == typeof b[a]), b); 15883 } 15884 function ac(a) { 15885 var b = a.type; 15886 return (a = a.nodeName) && "input" === a.toLowerCase() && ("checkbox" === b || "radio" === b); 15887 } 15888 function bc(a) { 15889 var b = ac(a) ? "checked" : "value", c = Object.getOwnPropertyDescriptor(a.constructor.prototype, b), d = "" + a[b]; 15890 if (!a.hasOwnProperty(b) && void 0 !== c && "function" == typeof c.get && "function" == typeof c.set) { 15891 var e = c.get, f = c.set; 15892 return Object.defineProperty(a, b, { 15893 configurable: !0, 15894 get: function() { 15895 return e.call(this); 15896 }, 15897 set: function(a) { 15898 d = "" + a, f.call(this, a); 15899 } 15900 }), Object.defineProperty(a, b, { 15901 enumerable: c.enumerable 15902 }), { 15903 getValue: function() { 15904 return d; 15905 }, 15906 setValue: function(a) { 15907 d = "" + a; 15908 }, 15909 stopTracking: function() { 15910 a._valueTracker = null, delete a[b]; 15911 } 15912 }; 15913 } 15914 } 15915 function cc(a) { 15916 a._valueTracker || (a._valueTracker = bc(a)); 15917 } 15918 function dc(a) { 15919 if (!a) return !1; 15920 var b = a._valueTracker; 15921 if (!b) return !0; 15922 var c = b.getValue(), d = ""; 15923 return a && (d = ac(a) ? a.checked ? "true" : "false" : a.value), (a = d) !== c && (b.setValue(a), 15924 !0); 15925 } 15926 function sc(a) { 15927 return null === a || void 0 === a ? null : (a = rc && a[rc] || a["@@iterator"], 15928 "function" == typeof a ? a : null); 15929 } 15930 function tc(a) { 15931 var b = a.type; 15932 if ("function" == typeof b) return b.displayName || b.name; 15933 if ("string" == typeof b) return b; 15934 switch (b) { 15935 case oc: 15936 return "AsyncMode"; 15937 15938 case nc: 15939 return "Context.Consumer"; 15940 15941 case hc: 15942 return "ReactFragment"; 15943 15944 case gc: 15945 return "ReactPortal"; 15946 15947 case jc: 15948 return "Profiler(" + a.pendingProps.id + ")"; 15949 15950 case mc: 15951 return "Context.Provider"; 15952 15953 case ic: 15954 return "StrictMode"; 15955 15956 case qc: 15957 return "Timeout"; 15958 } 15959 if ("object" == typeof b && null !== b) switch (b.$$typeof) { 15960 case pc: 15961 return a = b.render.displayName || b.render.name || "", "" !== a ? "ForwardRef(" + a + ")" : "ForwardRef"; 15962 } 15963 return null; 15964 } 15965 function vc(a) { 15966 var b = ""; 15967 do { 15968 a: switch (a.tag) { 15969 case 0: 15970 case 1: 15971 case 2: 15972 case 5: 15973 var c = a._debugOwner, d = a._debugSource, e = tc(a), f = null; 15974 c && (f = tc(c)), c = d, e = "\n in " + (e || "Unknown") + (c ? " (at " + c.fileName.replace(/^.*[\\\/]/, "") + ":" + c.lineNumber + ")" : f ? " (created by " + f + ")" : ""); 15975 break a; 15976 15977 default: 15978 e = ""; 15979 } 15980 b += e, a = a.return; 15981 } while (a); 15982 return b; 15983 } 15984 function zc(a) { 15985 return !!yc.hasOwnProperty(a) || !xc.hasOwnProperty(a) && (wc.test(a) ? yc[a] = !0 : (xc[a] = !0, 15986 !1)); 15987 } 15988 function Ac(a, b, c, d) { 15989 if (null !== c && 0 === c.type) return !1; 15990 switch (typeof b) { 15991 case "function": 15992 case "symbol": 15993 return !0; 15994 15995 case "boolean": 15996 return !d && (null !== c ? !c.acceptsBooleans : "data-" !== (a = a.toLowerCase().slice(0, 5)) && "aria-" !== a); 15997 15998 default: 15999 return !1; 16000 } 16001 } 16002 function Bc(a, b, c, d) { 16003 if (null === b || void 0 === b || Ac(a, b, c, d)) return !0; 16004 if (d) return !1; 16005 if (null !== c) switch (c.type) { 16006 case 3: 16007 return !b; 16008 16009 case 4: 16010 return !1 === b; 16011 16012 case 5: 16013 return isNaN(b); 16014 16015 case 6: 16016 return isNaN(b) || 1 > b; 16017 } 16018 return !1; 16019 } 16020 function J(a, b, c, d, e) { 16021 this.acceptsBooleans = 2 === b || 3 === b || 4 === b, this.attributeName = d, this.attributeNamespace = e, 16022 this.mustUseProperty = c, this.propertyName = a, this.type = b; 16023 } 16024 function Dc(a) { 16025 return a[1].toUpperCase(); 16026 } 16027 function Ec(a, b, c, d) { 16028 var e = K.hasOwnProperty(b) ? K[b] : null; 16029 (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), 16030 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, 16031 d = e.attributeNamespace, null === c ? a.removeAttribute(b) : (e = e.type, c = 3 === e || 4 === e && !0 === c ? "" : "" + c, 16032 d ? a.setAttributeNS(d, b, c) : a.setAttribute(b, c)))); 16033 } 16034 function Fc(a, b) { 16035 var c = b.checked; 16036 return p({}, b, { 16037 defaultChecked: void 0, 16038 defaultValue: void 0, 16039 value: void 0, 16040 checked: null != c ? c : a._wrapperState.initialChecked 16041 }); 16042 } 16043 function Gc(a, b) { 16044 var c = null == b.defaultValue ? "" : b.defaultValue, d = null != b.checked ? b.checked : b.defaultChecked; 16045 c = Hc(null != b.value ? b.value : c), a._wrapperState = { 16046 initialChecked: d, 16047 initialValue: c, 16048 controlled: "checkbox" === b.type || "radio" === b.type ? null != b.checked : null != b.value 16049 }; 16050 } 16051 function Ic(a, b) { 16052 null != (b = b.checked) && Ec(a, "checked", b, !1); 16053 } 16054 function Jc(a, b) { 16055 Ic(a, b); 16056 var c = Hc(b.value); 16057 null != c && ("number" === b.type ? (0 === c && "" === a.value || a.value != c) && (a.value = "" + c) : a.value !== "" + c && (a.value = "" + c)), 16058 b.hasOwnProperty("value") ? Kc(a, b.type, c) : b.hasOwnProperty("defaultValue") && Kc(a, b.type, Hc(b.defaultValue)), 16059 null == b.checked && null != b.defaultChecked && (a.defaultChecked = !!b.defaultChecked); 16060 } 16061 function Lc(a, b) { 16062 (b.hasOwnProperty("value") || b.hasOwnProperty("defaultValue")) && ("" === a.value && (a.value = "" + a._wrapperState.initialValue), 16063 a.defaultValue = "" + a._wrapperState.initialValue), b = a.name, "" !== b && (a.name = ""), 16064 a.defaultChecked = !a.defaultChecked, a.defaultChecked = !a.defaultChecked, "" !== b && (a.name = b); 16065 } 16066 function Kc(a, b, c) { 16067 "number" === b && a.ownerDocument.activeElement === a || (null == c ? a.defaultValue = "" + a._wrapperState.initialValue : a.defaultValue !== "" + c && (a.defaultValue = "" + c)); 16068 } 16069 function Hc(a) { 16070 switch (typeof a) { 16071 case "boolean": 16072 case "number": 16073 case "object": 16074 case "string": 16075 case "undefined": 16076 return a; 16077 16078 default: 16079 return ""; 16080 } 16081 } 16082 function Nc(a, b, c) { 16083 return a = H.getPooled(Mc.change, a, b, c), a.type = "change", Ob(c), Ya(a), a; 16084 } 16085 function Qc(a) { 16086 Ia(a, !1); 16087 } 16088 function Rc(a) { 16089 if (dc(Oa(a))) return a; 16090 } 16091 function Sc(a, b) { 16092 if ("change" === a) return b; 16093 } 16094 function Uc() { 16095 Oc && (Oc.detachEvent("onpropertychange", Vc), Pc = Oc = null); 16096 } 16097 function Vc(a) { 16098 "value" === a.propertyName && Rc(Pc) && (a = Nc(Pc, a, Zb(a)), Wb(Qc, a)); 16099 } 16100 function Wc(a, b, c) { 16101 "focus" === a ? (Uc(), Oc = b, Pc = c, Oc.attachEvent("onpropertychange", Vc)) : "blur" === a && Uc(); 16102 } 16103 function Xc(a) { 16104 if ("selectionchange" === a || "keyup" === a || "keydown" === a) return Rc(Pc); 16105 } 16106 function Yc(a, b) { 16107 if ("click" === a) return Rc(b); 16108 } 16109 function Zc(a, b) { 16110 if ("input" === a || "change" === a) return Rc(b); 16111 } 16112 function cd(a) { 16113 var b = this.nativeEvent; 16114 return b.getModifierState ? b.getModifierState(a) : !!(a = bd[a]) && !!b[a]; 16115 } 16116 function dd() { 16117 return cd; 16118 } 16119 function id(a) { 16120 var b = a; 16121 if (a.alternate) for (;b.return; ) b = b.return; else { 16122 if (0 != (2 & b.effectTag)) return 1; 16123 for (;b.return; ) if (b = b.return, 0 != (2 & b.effectTag)) return 1; 16124 } 16125 return 3 === b.tag ? 2 : 3; 16126 } 16127 function jd(a) { 16128 2 !== id(a) && A("188"); 16129 } 16130 function kd(a) { 16131 var b = a.alternate; 16132 if (!b) return b = id(a), 3 === b && A("188"), 1 === b ? null : a; 16133 for (var c = a, d = b; ;) { 16134 var e = c.return, f = e ? e.alternate : null; 16135 if (!e || !f) break; 16136 if (e.child === f.child) { 16137 for (var g = e.child; g; ) { 16138 if (g === c) return jd(e), a; 16139 if (g === d) return jd(e), b; 16140 g = g.sibling; 16141 } 16142 A("188"); 16143 } 16144 if (c.return !== d.return) c = e, d = f; else { 16145 g = !1; 16146 for (var h = e.child; h; ) { 16147 if (h === c) { 16148 g = !0, c = e, d = f; 16149 break; 16150 } 16151 if (h === d) { 16152 g = !0, d = e, c = f; 16153 break; 16154 } 16155 h = h.sibling; 16156 } 16157 if (!g) { 16158 for (h = f.child; h; ) { 16159 if (h === c) { 16160 g = !0, c = f, d = e; 16161 break; 16162 } 16163 if (h === d) { 16164 g = !0, d = f, c = e; 16165 break; 16166 } 16167 h = h.sibling; 16168 } 16169 g || A("189"); 16170 } 16171 } 16172 c.alternate !== d && A("190"); 16173 } 16174 return 3 !== c.tag && A("188"), c.stateNode.current === c ? a : b; 16175 } 16176 function ld(a) { 16177 if (!(a = kd(a))) return null; 16178 for (var b = a; ;) { 16179 if (5 === b.tag || 6 === b.tag) return b; 16180 if (b.child) b.child.return = b, b = b.child; else { 16181 if (b === a) break; 16182 for (;!b.sibling; ) { 16183 if (!b.return || b.return === a) return null; 16184 b = b.return; 16185 } 16186 b.sibling.return = b.return, b = b.sibling; 16187 } 16188 } 16189 return null; 16190 } 16191 function md(a) { 16192 if (!(a = kd(a))) return null; 16193 for (var b = a; ;) { 16194 if (5 === b.tag || 6 === b.tag) return b; 16195 if (b.child && 4 !== b.tag) b.child.return = b, b = b.child; else { 16196 if (b === a) break; 16197 for (;!b.sibling; ) { 16198 if (!b.return || b.return === a) return null; 16199 b = b.return; 16200 } 16201 b.sibling.return = b.return, b = b.sibling; 16202 } 16203 } 16204 return null; 16205 } 16206 function qd(a) { 16207 var b = a.keyCode; 16208 return "charCode" in a ? 0 === (a = a.charCode) && 13 === b && (a = 13) : a = b, 16209 10 === a && (a = 13), 32 <= a || 13 === a ? a : 0; 16210 } 16211 function Bd(a, b) { 16212 var c = a[0]; 16213 a = a[1]; 16214 var d = "on" + (a[0].toUpperCase() + a.slice(1)); 16215 b = { 16216 phasedRegistrationNames: { 16217 bubbled: d, 16218 captured: d + "Capture" 16219 }, 16220 dependencies: [ c ], 16221 isInteractive: b 16222 }, zd[a] = b, Ad[c] = b; 16223 } 16224 function Fd(a) { 16225 var b = a.targetInst; 16226 do { 16227 if (!b) { 16228 a.ancestors.push(b); 16229 break; 16230 } 16231 var c; 16232 for (c = b; c.return; ) c = c.return; 16233 if (!(c = 3 !== c.tag ? null : c.stateNode.containerInfo)) break; 16234 a.ancestors.push(b), b = Na(c); 16235 } while (b); 16236 for (c = 0; c < a.ancestors.length; c++) b = a.ancestors[c], Ja(a.topLevelType, b, a.nativeEvent, Zb(a.nativeEvent)); 16237 } 16238 function Id(a) { 16239 Gd = !!a; 16240 } 16241 function L(a, b) { 16242 if (!b) return null; 16243 var c = (Dd(a) ? Jd : Kd).bind(null, a); 16244 b.addEventListener(a, c, !1); 16245 } 16246 function Ld(a, b) { 16247 if (!b) return null; 16248 var c = (Dd(a) ? Jd : Kd).bind(null, a); 16249 b.addEventListener(a, c, !0); 16250 } 16251 function Jd(a, b) { 16252 Tb(Kd, a, b); 16253 } 16254 function Kd(a, b) { 16255 if (Gd) { 16256 var c = Zb(b); 16257 if (c = Na(c), null === c || "number" != typeof c.tag || 2 === id(c) || (c = null), 16258 Ed.length) { 16259 var d = Ed.pop(); 16260 d.topLevelType = a, d.nativeEvent = b, d.targetInst = c, a = d; 16261 } else a = { 16262 topLevelType: a, 16263 nativeEvent: b, 16264 targetInst: c, 16265 ancestors: [] 16266 }; 16267 try { 16268 Wb(Fd, a); 16269 } finally { 16270 a.topLevelType = null, a.nativeEvent = null, a.targetInst = null, a.ancestors.length = 0, 16271 10 > Ed.length && Ed.push(a); 16272 } 16273 } 16274 } 16275 function Qd(a) { 16276 return Object.prototype.hasOwnProperty.call(a, Pd) || (a[Pd] = Od++, Nd[a[Pd]] = {}), 16277 Nd[a[Pd]]; 16278 } 16279 function Rd(a) { 16280 for (;a && a.firstChild; ) a = a.firstChild; 16281 return a; 16282 } 16283 function Sd(a, b) { 16284 var c = Rd(a); 16285 a = 0; 16286 for (var d; c; ) { 16287 if (3 === c.nodeType) { 16288 if (d = a + c.textContent.length, a <= b && d >= b) return { 16289 node: c, 16290 offset: b - a 16291 }; 16292 a = d; 16293 } 16294 a: { 16295 for (;c; ) { 16296 if (c.nextSibling) { 16297 c = c.nextSibling; 16298 break a; 16299 } 16300 c = c.parentNode; 16301 } 16302 c = void 0; 16303 } 16304 c = Rd(c); 16305 } 16306 } 16307 function Td(a) { 16308 var b = a && a.nodeName && a.nodeName.toLowerCase(); 16309 return b && ("input" === b && "text" === a.type || "textarea" === b || "true" === a.contentEditable); 16310 } 16311 function $d(a, b) { 16312 if (Zd || null == Wd || Wd !== da()) return null; 16313 var c = Wd; 16314 return "selectionStart" in c && Td(c) ? c = { 16315 start: c.selectionStart, 16316 end: c.selectionEnd 16317 } : window.getSelection ? (c = window.getSelection(), c = { 16318 anchorNode: c.anchorNode, 16319 anchorOffset: c.anchorOffset, 16320 focusNode: c.focusNode, 16321 focusOffset: c.focusOffset 16322 }) : c = void 0, Yd && ea(Yd, c) ? null : (Yd = c, a = H.getPooled(Vd.select, Xd, a, b), 16323 a.type = "select", a.target = Wd, Ya(a), a); 16324 } 16325 function te(a) { 16326 var b = ""; 16327 return ca.Children.forEach(a, function(a) { 16328 null == a || "string" != typeof a && "number" != typeof a || (b += a); 16329 }), b; 16330 } 16331 function ue(a, b) { 16332 return a = p({ 16333 children: void 0 16334 }, b), (b = te(b.children)) && (a.children = b), a; 16335 } 16336 function ve(a, b, c, d) { 16337 if (a = a.options, b) { 16338 b = {}; 16339 for (var e = 0; e < c.length; e++) b["$" + c[e]] = !0; 16340 for (c = 0; c < a.length; c++) e = b.hasOwnProperty("$" + a[c].value), a[c].selected !== e && (a[c].selected = e), 16341 e && d && (a[c].defaultSelected = !0); 16342 } else { 16343 for (c = "" + c, b = null, e = 0; e < a.length; e++) { 16344 if (a[e].value === c) return a[e].selected = !0, void (d && (a[e].defaultSelected = !0)); 16345 null !== b || a[e].disabled || (b = a[e]); 16346 } 16347 null !== b && (b.selected = !0); 16348 } 16349 } 16350 function we(a, b) { 16351 var c = b.value; 16352 a._wrapperState = { 16353 initialValue: null != c ? c : b.defaultValue, 16354 wasMultiple: !!b.multiple 16355 }; 16356 } 16357 function xe(a, b) { 16358 return null != b.dangerouslySetInnerHTML && A("91"), p({}, b, { 16359 value: void 0, 16360 defaultValue: void 0, 16361 children: "" + a._wrapperState.initialValue 16362 }); 16363 } 16364 function ye(a, b) { 16365 var c = b.value; 16366 null == c && (c = b.defaultValue, b = b.children, null != b && (null != c && A("92"), 16367 Array.isArray(b) && (1 >= b.length || A("93"), b = b[0]), c = "" + b), null == c && (c = "")), 16368 a._wrapperState = { 16369 initialValue: "" + c 16370 }; 16371 } 16372 function ze(a, b) { 16373 var c = b.value; 16374 null != c && (c = "" + c, c !== a.value && (a.value = c), null == b.defaultValue && (a.defaultValue = c)), 16375 null != b.defaultValue && (a.defaultValue = b.defaultValue); 16376 } 16377 function Ae(a) { 16378 var b = a.textContent; 16379 b === a._wrapperState.initialValue && (a.value = b); 16380 } 16381 function Ce(a) { 16382 switch (a) { 16383 case "svg": 16384 return "http://www. W3.org/2000/SVG; 16385 16386 case "math": 16387 return "http://www.w3.org/1998/math/mathml; 16388 16389 default: 16390 return "http://www.w3.org/1999/xhtml; 16391 } 16392 } 16393 function De(a, b) { 16394 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; 16395 } 16396 function Ge(a, b) { 16397 if (b) { 16398 var c = a.firstChild; 16399 if (c && c === a.lastChild && 3 === c.nodeType) return void (c.nodeValue = b); 16400 } 16401 a.textContent = b; 16402 } 16403 function Je(a, b) { 16404 a = a.style; 16405 for (var c in b) if (b.hasOwnProperty(c)) { 16406 var d = 0 === c.indexOf("--"), e = c, f = b[c]; 16407 e = null == f || "boolean" == typeof f || "" === f ? "" : d || "number" != typeof f || 0 === f || He.hasOwnProperty(e) && He[e] ? ("" + f).trim() : f + "px", 16408 "float" === c && (c = "cssFloat"), d ? a.setProperty(c, e) : a[c] = e; 16409 } 16410 } 16411 function Le(a, b, c) { 16412 b && (Ke[a] && (null != b.children || null != b.dangerouslySetInnerHTML) && A("137", a, c()), 16413 null != b.dangerouslySetInnerHTML && (null != b.children && A("60"), "object" == typeof b.dangerouslySetInnerHTML && "__html" in b.dangerouslySetInnerHTML || A("61")), 16414 null != b.style && "object" != typeof b.style && A("62", c())); 16415 } 16416 function Me(a, b) { 16417 if (-1 === a.indexOf("-")) return "string" == typeof b.is; 16418 switch (a) { 16419 case "annotation-xml": 16420 case "color-profile": 16421 case "font-face": 16422 case "font-face-src": 16423 case "font-face-uri": 16424 case "font-face-format": 16425 case "font-face-name": 16426 case "missing-glyph": 16427 return !1; 16428 16429 default: 16430 return !0; 16431 } 16432 } 16433 function Oe(a, b) { 16434 a = 9 === a.nodeType || 11 === a.nodeType ? a : a.ownerDocument; 16435 var c = Qd(a); 16436 b = sa[b]; 16437 for (var d = 0; d < b.length; d++) { 16438 var e = b[d]; 16439 if (!c.hasOwnProperty(e) || !c[e]) { 16440 switch (e) { 16441 case "scroll": 16442 Ld("scroll", a); 16443 break; 16444 16445 case "focus": 16446 case "blur": 16447 Ld("focus", a), Ld("blur", a), c.blur = !0, c.focus = !0; 16448 break; 16449 16450 case "cancel": 16451 case "close": 16452 $b(e, !0) && Ld(e, a); 16453 break; 16454 16455 case "invalid": 16456 case "submit": 16457 case "reset": 16458 break; 16459 16460 default: 16461 -1 === jb.indexOf(e) && L(e, a); 16462 } 16463 c[e] = !0; 16464 } 16465 } 16466 } 16467 function Pe(a, b, c, d) { 16468 return c = 9 === c.nodeType ? c : c.ownerDocument, d === Be.html && (d = Ce(a)), 16469 d === Be.html ? "script" === a ? (a = c.createElement("div"), a.innerHTML = "<script><\/script>", 16470 a = a.removeChild(a.firstChild)) : a = "string" == typeof b.is ? c.createElement(a, { 16471 is: b.is 16472 }) : c.createElement(a) : a = c.createElementNS(d, a), a; 16473 } 16474 function Qe(a, b) { 16475 return (9 === b.nodeType ? b : b.ownerDocument).createTextNode(a); 16476 } 16477 function Re(a, b, c, d) { 16478 var e = Me(b, c); 16479 switch (b) { 16480 case "iframe": 16481 case "object": 16482 L("load", a); 16483 var f = c; 16484 break; 16485 16486 case "video": 16487 case "audio": 16488 for (f = 0; f < jb.length; f++) L(jb[f], a); 16489 f = c; 16490 break; 16491 16492 case "source": 16493 L("error", a), f = c; 16494 break; 16495 16496 case "img": 16497 case "image": 16498 case "link": 16499 L("error", a), L("load", a), f = c; 16500 break; 16501 16502 case "form": 16503 L("reset", a), L("submit", a), f = c; 16504 break; 16505 16506 case "details": 16507 L("toggle", a), f = c; 16508 break; 16509 16510 case "input": 16511 Gc(a, c), f = Fc(a, c), L("invalid", a), Oe(d, "onChange"); 16512 break; 16513 16514 case "option": 16515 f = ue(a, c); 16516 break; 16517 16518 case "select": 16519 we(a, c), f = p({}, c, { 16520 value: void 0 16521 }), L("invalid", a), Oe(d, "onChange"); 16522 break; 16523 16524 case "textarea": 16525 ye(a, c), f = xe(a, c), L("invalid", a), Oe(d, "onChange"); 16526 break; 16527 16528 default: 16529 f = c; 16530 } 16531 Le(b, f, Ne); 16532 var h, g = f; 16533 for (h in g) if (g.hasOwnProperty(h)) { 16534 var k = g[h]; 16535 "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)); 16536 } 16537 switch (b) { 16538 case "input": 16539 cc(a), Lc(a, c); 16540 break; 16541 16542 case "textarea": 16543 cc(a), Ae(a, c); 16544 break; 16545 16546 case "option": 16547 null != c.value && a.setAttribute("value", c.value); 16548 break; 16549 16550 case "select": 16551 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); 16552 break; 16553 16554 default: 16555 "function" == typeof f.onClick && (a.onclick = v); 16556 } 16557 } 16558 function Se(a, b, c, d, e) { 16559 var f = null; 16560 switch (b) { 16561 case "input": 16562 c = Fc(a, c), d = Fc(a, d), f = []; 16563 break; 16564 16565 case "option": 16566 c = ue(a, c), d = ue(a, d), f = []; 16567 break; 16568 16569 case "select": 16570 c = p({}, c, { 16571 value: void 0 16572 }), d = p({}, d, { 16573 value: void 0 16574 }), f = []; 16575 break; 16576 16577 case "textarea": 16578 c = xe(a, c), d = xe(a, d), f = []; 16579 break; 16580 16581 default: 16582 "function" != typeof c.onClick && "function" == typeof d.onClick && (a.onclick = v); 16583 } 16584 Le(b, d, Ne), b = a = void 0; 16585 var g = null; 16586 for (a in c) if (!d.hasOwnProperty(a) && c.hasOwnProperty(a) && null != c[a]) if ("style" === a) { 16587 var h = c[a]; 16588 for (b in h) h.hasOwnProperty(b) && (g || (g = {}), g[b] = ""); 16589 } else "dangerouslySetInnerHTML" !== a && "children" !== a && "suppressContentEditableWarning" !== a && "suppressHydrationWarning" !== a && "autoFocus" !== a && (ra.hasOwnProperty(a) ? f || (f = []) : (f = f || []).push(a, null)); 16590 for (a in d) { 16591 var k = d[a]; 16592 if (h = null != c ? c[a] : void 0, d.hasOwnProperty(a) && k !== h && (null != k || null != h)) if ("style" === a) if (h) { 16593 for (b in h) !h.hasOwnProperty(b) || k && k.hasOwnProperty(b) || (g || (g = {}), 16594 g[b] = ""); 16595 for (b in k) k.hasOwnProperty(b) && h[b] !== k[b] && (g || (g = {}), g[b] = k[b]); 16596 } else g || (f || (f = []), f.push(a, g)), g = k; else "dangerouslySetInnerHTML" === a ? (k = k ? k.__html : void 0, 16597 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), 16598 f || h === k || (f = [])) : (f = f || []).push(a, k)); 16599 } 16600 return g && (f = f || []).push("style", g), f; 16601 } 16602 function Te(a, b, c, d, e) { 16603 "input" === c && "radio" === e.type && null != e.name && Ic(a, e), Me(c, d), d = Me(c, e); 16604 for (var f = 0; f < b.length; f += 2) { 16605 var g = b[f], h = b[f + 1]; 16606 "style" === g ? Je(a, h, Ne) : "dangerouslySetInnerHTML" === g ? Fe(a, h) : "children" === g ? Ge(a, h) : Ec(a, g, h, d); 16607 } 16608 switch (c) { 16609 case "input": 16610 Jc(a, e); 16611 break; 16612 16613 case "textarea": 16614 ze(a, e); 16615 break; 16616 16617 case "select": 16618 a._wrapperState.initialValue = void 0, b = a._wrapperState.wasMultiple, a._wrapperState.wasMultiple = !!e.multiple, 16619 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)); 16620 } 16621 } 16622 function Ue(a, b, c, d, e) { 16623 switch (b) { 16624 case "iframe": 16625 case "object": 16626 L("load", a); 16627 break; 16628 16629 case "video": 16630 case "audio": 16631 for (d = 0; d < jb.length; d++) L(jb[d], a); 16632 break; 16633 16634 case "source": 16635 L("error", a); 16636 break; 16637 16638 case "img": 16639 case "image": 16640 case "link": 16641 L("error", a), L("load", a); 16642 break; 16643 16644 case "form": 16645 L("reset", a), L("submit", a); 16646 break; 16647 16648 case "details": 16649 L("toggle", a); 16650 break; 16651 16652 case "input": 16653 Gc(a, c), L("invalid", a), Oe(e, "onChange"); 16654 break; 16655 16656 case "select": 16657 we(a, c), L("invalid", a), Oe(e, "onChange"); 16658 break; 16659 16660 case "textarea": 16661 ye(a, c), L("invalid", a), Oe(e, "onChange"); 16662 } 16663 Le(b, c, Ne), d = null; 16664 for (var f in c) if (c.hasOwnProperty(f)) { 16665 var g = c[f]; 16666 "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); 16667 } 16668 switch (b) { 16669 case "input": 16670 cc(a), Lc(a, c); 16671 break; 16672 16673 case "textarea": 16674 cc(a), Ae(a, c); 16675 break; 16676 16677 case "select": 16678 case "option": 16679 break; 16680 16681 default: 16682 "function" == typeof c.onClick && (a.onclick = v); 16683 } 16684 return d; 16685 } 16686 function Ve(a, b) { 16687 return a.nodeValue !== b; 16688 } 16689 function Ze(a, b) { 16690 switch (a) { 16691 case "button": 16692 case "input": 16693 case "select": 16694 case "textarea": 16695 return !!b.autoFocus; 16696 } 16697 return !1; 16698 } 16699 function $e(a, b) { 16700 return "textarea" === a || "string" == typeof b.children || "number" == typeof b.children || "object" == typeof b.dangerouslySetInnerHTML && null !== b.dangerouslySetInnerHTML && "string" == typeof b.dangerouslySetInnerHTML.__html; 16701 } 16702 function df(a) { 16703 for (a = a.nextSibling; a && 1 !== a.nodeType && 3 !== a.nodeType; ) a = a.nextSibling; 16704 return a; 16705 } 16706 function ef(a) { 16707 for (a = a.firstChild; a && 1 !== a.nodeType && 3 !== a.nodeType; ) a = a.nextSibling; 16708 return a; 16709 } 16710 function hf(a) { 16711 return { 16712 current: a 16713 }; 16714 } 16715 function M(a) { 16716 0 > gf || (a.current = ff[gf], ff[gf] = null, gf--); 16717 } 16718 function N(a, b) { 16719 gf++, ff[gf] = a.current, a.current = b; 16720 } 16721 function lf(a) { 16722 return mf(a) ? kf : jf.current; 16723 } 16724 function nf(a, b) { 16725 var c = a.type.contextTypes; 16726 if (!c) return ha; 16727 var d = a.stateNode; 16728 if (d && d.__reactInternalMemoizedUnmaskedChildContext === b) return d.__reactInternalMemoizedMaskedChildContext; 16729 var f, e = {}; 16730 for (f in c) e[f] = b[f]; 16731 return d && (a = a.stateNode, a.__reactInternalMemoizedUnmaskedChildContext = b, 16732 a.__reactInternalMemoizedMaskedChildContext = e), e; 16733 } 16734 function mf(a) { 16735 return 2 === a.tag && null != a.type.childContextTypes; 16736 } 16737 function of(a) { 16738 mf(a) && (M(O, a), M(jf, a)); 16739 } 16740 function pf(a) { 16741 M(O, a), M(jf, a); 16742 } 16743 function qf(a, b, c) { 16744 jf.current !== ha && A("168"), N(jf, b, a), N(O, c, a); 16745 } 16746 function rf(a, b) { 16747 var c = a.stateNode, d = a.type.childContextTypes; 16748 if ("function" != typeof c.getChildContext) return b; 16749 c = c.getChildContext(); 16750 for (var e in c) e in d || A("108", tc(a) || "Unknown", e); 16751 return p({}, b, c); 16752 } 16753 function sf(a) { 16754 if (!mf(a)) return !1; 16755 var b = a.stateNode; 16756 return b = b && b.__reactInternalMemoizedMergedChildContext || ha, kf = jf.current, 16757 N(jf, b, a), N(O, O.current, a), !0; 16758 } 16759 function tf(a, b) { 16760 var c = a.stateNode; 16761 if (c || A("169"), b) { 16762 var d = rf(a, kf); 16763 c.__reactInternalMemoizedMergedChildContext = d, M(O, a), M(jf, a), N(jf, d, a); 16764 } else M(O, a); 16765 N(O, b, a); 16766 } 16767 function uf(a, b, c, d) { 16768 this.tag = a, this.key = c, this.sibling = this.child = this.return = this.stateNode = this.type = null, 16769 this.index = 0, this.ref = null, this.pendingProps = b, this.memoizedState = this.updateQueue = this.memoizedProps = null, 16770 this.mode = d, this.effectTag = 0, this.lastEffect = this.firstEffect = this.nextEffect = null, 16771 this.expirationTime = 0, this.alternate = null; 16772 } 16773 function vf(a, b, c) { 16774 var d = a.alternate; 16775 return null === d ? (d = new uf(a.tag, b, a.key, a.mode), d.type = a.type, d.stateNode = a.stateNode, 16776 d.alternate = a, a.alternate = d) : (d.pendingProps = b, d.effectTag = 0, d.nextEffect = null, 16777 d.firstEffect = null, d.lastEffect = null), d.expirationTime = c, d.child = a.child, 16778 d.memoizedProps = a.memoizedProps, d.memoizedState = a.memoizedState, d.updateQueue = a.updateQueue, 16779 d.sibling = a.sibling, d.index = a.index, d.ref = a.ref, d; 16780 } 16781 function wf(a, b, c) { 16782 var d = a.type, e = a.key; 16783 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) { 16784 case hc: 16785 return xf(a.children, b, c, e); 16786 16787 case oc: 16788 f = 11, b |= 3; 16789 break; 16790 16791 case ic: 16792 f = 11, b |= 2; 16793 break; 16794 16795 case jc: 16796 return d = new uf(15, a, e, 4 | b), d.type = jc, d.expirationTime = c, d; 16797 16798 case qc: 16799 f = 16, b |= 2; 16800 break; 16801 16802 default: 16803 a: { 16804 switch ("object" == typeof d && null !== d ? d.$$typeof : null) { 16805 case mc: 16806 f = 13; 16807 break a; 16808 16809 case nc: 16810 f = 12; 16811 break a; 16812 16813 case pc: 16814 f = 14; 16815 break a; 16816 16817 default: 16818 A("130", null == d ? d : typeof d, ""); 16819 } 16820 f = void 0; 16821 } 16822 } 16823 return b = new uf(f, a, e, b), b.type = d, b.expirationTime = c, b; 16824 } 16825 function xf(a, b, c, d) { 16826 return a = new uf(10, a, d, b), a.expirationTime = c, a; 16827 } 16828 function yf(a, b, c) { 16829 return a = new uf(6, a, null, b), a.expirationTime = c, a; 16830 } 16831 function zf(a, b, c) { 16832 return b = new uf(4, null !== a.children ? a.children : [], a.key, b), b.expirationTime = c, 16833 b.stateNode = { 16834 containerInfo: a.containerInfo, 16835 pendingChildren: null, 16836 implementation: a.implementation 16837 }, b; 16838 } 16839 function Af(a, b, c) { 16840 return b = new uf(3, null, null, b ? 3 : 0), a = { 16841 current: b, 16842 containerInfo: a, 16843 pendingChildren: null, 16844 earliestPendingTime: 0, 16845 latestPendingTime: 0, 16846 earliestSuspendedTime: 0, 16847 latestSuspendedTime: 0, 16848 latestPingedTime: 0, 16849 pendingCommitExpirationTime: 0, 16850 finishedWork: null, 16851 context: null, 16852 pendingContext: null, 16853 hydrate: c, 16854 remainingExpirationTime: 0, 16855 firstBatch: null, 16856 nextScheduledRoot: null 16857 }, b.stateNode = a; 16858 } 16859 function Df(a) { 16860 return function(b) { 16861 try { 16862 return a(b); 16863 } catch (c) {} 16864 }; 16865 } 16866 function Ef(a) { 16867 if ("undefined" == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; 16868 var b = __REACT_DEVTOOLS_GLOBAL_HOOK__; 16869 if (b.isDisabled || !b.supportsFiber) return !0; 16870 try { 16871 var c = b.inject(a); 16872 Bf = Df(function(a) { 16873 return b.onCommitFiberRoot(c, a); 16874 }), Cf = Df(function(a) { 16875 return b.onCommitFiberUnmount(c, a); 16876 }); 16877 } catch (d) {} 16878 return !0; 16879 } 16880 function Ff(a) { 16881 "function" == typeof Bf && Bf(a); 16882 } 16883 function Gf(a) { 16884 "function" == typeof Cf && Cf(a); 16885 } 16886 function If(a) { 16887 return { 16888 expirationTime: 0, 16889 baseState: a, 16890 firstUpdate: null, 16891 lastUpdate: null, 16892 firstCapturedUpdate: null, 16893 lastCapturedUpdate: null, 16894 firstEffect: null, 16895 lastEffect: null, 16896 firstCapturedEffect: null, 16897 lastCapturedEffect: null 16898 }; 16899 } 16900 function Jf(a) { 16901 return { 16902 expirationTime: a.expirationTime, 16903 baseState: a.baseState, 16904 firstUpdate: a.firstUpdate, 16905 lastUpdate: a.lastUpdate, 16906 firstCapturedUpdate: null, 16907 lastCapturedUpdate: null, 16908 firstEffect: null, 16909 lastEffect: null, 16910 firstCapturedEffect: null, 16911 lastCapturedEffect: null 16912 }; 16913 } 16914 function Kf(a) { 16915 return { 16916 expirationTime: a, 16917 tag: 0, 16918 payload: null, 16919 callback: null, 16920 next: null, 16921 nextEffect: null 16922 }; 16923 } 16924 function Lf(a, b, c) { 16925 null === a.lastUpdate ? a.firstUpdate = a.lastUpdate = b : (a.lastUpdate.next = b, 16926 a.lastUpdate = b), (0 === a.expirationTime || a.expirationTime > c) && (a.expirationTime = c); 16927 } 16928 function Mf(a, b, c) { 16929 var d = a.alternate; 16930 if (null === d) { 16931 var e = a.updateQueue, f = null; 16932 null === e && (e = a.updateQueue = If(a.memoizedState)); 16933 } else e = a.updateQueue, f = d.updateQueue, null === e ? null === f ? (e = a.updateQueue = If(a.memoizedState), 16934 f = d.updateQueue = If(d.memoizedState)) : e = a.updateQueue = Jf(f) : null === f && (f = d.updateQueue = Jf(e)); 16935 null === f || e === f ? Lf(e, b, c) : null === e.lastUpdate || null === f.lastUpdate ? (Lf(e, b, c), 16936 Lf(f, b, c)) : (Lf(e, b, c), f.lastUpdate = b); 16937 } 16938 function Nf(a, b, c) { 16939 var d = a.updateQueue; 16940 d = null === d ? a.updateQueue = If(a.memoizedState) : Of(a, d), null === d.lastCapturedUpdate ? d.firstCapturedUpdate = d.lastCapturedUpdate = b : (d.lastCapturedUpdate.next = b, 16941 d.lastCapturedUpdate = b), (0 === d.expirationTime || d.expirationTime > c) && (d.expirationTime = c); 16942 } 16943 function Of(a, b) { 16944 var c = a.alternate; 16945 return null !== c && b === c.updateQueue && (b = a.updateQueue = Jf(b)), b; 16946 } 16947 function Pf(a, b, c, d, e, f) { 16948 switch (c.tag) { 16949 case 1: 16950 return a = c.payload, "function" == typeof a ? a.call(f, d, e) : a; 16951 16952 case 3: 16953 a.effectTag = -1025 & a.effectTag | 64; 16954 16955 case 0: 16956 if (a = c.payload, null === (e = "function" == typeof a ? a.call(f, d, e) : a) || void 0 === e) break; 16957 return p({}, d, e); 16958 16959 case 2: 16960 Hf = !0; 16961 } 16962 return d; 16963 } 16964 function Qf(a, b, c, d, e) { 16965 if (Hf = !1, !(0 === b.expirationTime || b.expirationTime > e)) { 16966 b = Of(a, b); 16967 for (var f = b.baseState, g = null, h = 0, k = b.firstUpdate, n = f; null !== k; ) { 16968 var r = k.expirationTime; 16969 r > e ? (null === g && (g = k, f = n), (0 === h || h > r) && (h = r)) : (n = Pf(a, b, k, n, c, d), 16970 null !== k.callback && (a.effectTag |= 32, k.nextEffect = null, null === b.lastEffect ? b.firstEffect = b.lastEffect = k : (b.lastEffect.nextEffect = k, 16971 b.lastEffect = k))), k = k.next; 16972 } 16973 for (r = null, k = b.firstCapturedUpdate; null !== k; ) { 16974 var w = k.expirationTime; 16975 w > e ? (null === r && (r = k, null === g && (f = n)), (0 === h || h > w) && (h = w)) : (n = Pf(a, b, k, n, c, d), 16976 null !== k.callback && (a.effectTag |= 32, k.nextEffect = null, null === b.lastCapturedEffect ? b.firstCapturedEffect = b.lastCapturedEffect = k : (b.lastCapturedEffect.nextEffect = k, 16977 b.lastCapturedEffect = k))), k = k.next; 16978 } 16979 null === g && (b.lastUpdate = null), null === r ? b.lastCapturedUpdate = null : a.effectTag |= 32, 16980 null === g && null === r && (f = n), b.baseState = f, b.firstUpdate = g, b.firstCapturedUpdate = r, 16981 b.expirationTime = h, a.memoizedState = n; 16982 } 16983 } 16984 function Rf(a, b) { 16985 "function" != typeof a && A("191", a), a.call(b); 16986 } 16987 function Sf(a, b, c) { 16988 for (null !== b.firstCapturedUpdate && (null !== b.lastUpdate && (b.lastUpdate.next = b.firstCapturedUpdate, 16989 b.lastUpdate = b.lastCapturedUpdate), b.firstCapturedUpdate = b.lastCapturedUpdate = null), 16990 a = b.firstEffect, b.firstEffect = b.lastEffect = null; null !== a; ) { 16991 var d = a.callback; 16992 null !== d && (a.callback = null, Rf(d, c)), a = a.nextEffect; 16993 } 16994 for (a = b.firstCapturedEffect, b.firstCapturedEffect = b.lastCapturedEffect = null; null !== a; ) b = a.callback, 16995 null !== b && (a.callback = null, Rf(b, c)), a = a.nextEffect; 16996 } 16997 function Tf(a, b) { 16998 return { 16999 value: a, 17000 source: b, 17001 stack: vc(b) 17002 }; 17003 } 17004 function Xf(a) { 17005 var b = a.type._context; 17006 N(Wf, b._changedBits, a), N(Vf, b._currentValue, a), N(Uf, a, a), b._currentValue = a.pendingProps.value, 17007 b._changedBits = a.stateNode; 17008 } 17009 function Yf(a) { 17010 var b = Wf.current, c = Vf.current; 17011 M(Uf, a), M(Vf, a), M(Wf, a), a = a.type._context, a._currentValue = c, a._changedBits = b; 17012 } 17013 function cg(a) { 17014 return a === Zf && A("174"), a; 17015 } 17016 function dg(a, b) { 17017 N(bg, b, a), N(ag, a, a), N($f, Zf, a); 17018 var c = b.nodeType; 17019 switch (c) { 17020 case 9: 17021 case 11: 17022 b = (b = b.documentElement) ? b.namespaceURI : De(null, ""); 17023 break; 17024 17025 default: 17026 c = 8 === c ? b.parentNode : b, b = c.namespaceURI || null, c = c.tagName, b = De(b, c); 17027 } 17028 M($f, a), N($f, b, a); 17029 } 17030 function eg(a) { 17031 M($f, a), M(ag, a), M(bg, a); 17032 } 17033 function fg(a) { 17034 ag.current === a && (M($f, a), M(ag, a)); 17035 } 17036 function hg(a, b, c) { 17037 var d = a.memoizedState; 17038 b = b(c, d), d = null === b || void 0 === b ? d : p({}, d, b), a.memoizedState = d, 17039 null !== (a = a.updateQueue) && 0 === a.expirationTime && (a.baseState = d); 17040 } 17041 function mg(a, b, c, d, e, f) { 17042 var g = a.stateNode; 17043 return a = a.type, "function" == typeof g.shouldComponentUpdate ? g.shouldComponentUpdate(c, e, f) : !a.prototype || !a.prototype.isPureReactComponent || (!ea(b, c) || !ea(d, e)); 17044 } 17045 function ng(a, b, c, d) { 17046 a = b.state, "function" == typeof b.componentWillReceiveProps && b.componentWillReceiveProps(c, d), 17047 "function" == typeof b.UNSAFE_componentWillReceiveProps && b.UNSAFE_componentWillReceiveProps(c, d), 17048 b.state !== a && lg.enqueueReplaceState(b, b.state, null); 17049 } 17050 function og(a, b) { 17051 var c = a.type, d = a.stateNode, e = a.pendingProps, f = lf(a); 17052 d.props = e, d.state = a.memoizedState, d.refs = ha, d.context = nf(a, f), f = a.updateQueue, 17053 null !== f && (Qf(a, f, e, d, b), d.state = a.memoizedState), f = a.type.getDerivedStateFromProps, 17054 "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, 17055 "function" == typeof d.componentWillMount && d.componentWillMount(), "function" == typeof d.UNSAFE_componentWillMount && d.UNSAFE_componentWillMount(), 17056 c !== d.state && lg.enqueueReplaceState(d, d.state, null), null !== (f = a.updateQueue) && (Qf(a, f, e, d, b), 17057 d.state = a.memoizedState)), "function" == typeof d.componentDidMount && (a.effectTag |= 4); 17058 } 17059 function qg(a, b, c) { 17060 if (null !== (a = c.ref) && "function" != typeof a && "object" != typeof a) { 17061 if (c._owner) { 17062 c = c._owner; 17063 var d = void 0; 17064 c && (2 !== c.tag && A("110"), d = c.stateNode), d || A("147", a); 17065 var e = "" + a; 17066 return null !== b && null !== b.ref && "function" == typeof b.ref && b.ref._stringRef === e ? b.ref : (b = function(a) { 17067 var b = d.refs === ha ? d.refs = {} : d.refs; 17068 null === a ? delete b[e] : b[e] = a; 17069 }, b._stringRef = e, b); 17070 } 17071 "string" != typeof a && A("148"), c._owner || A("254", a); 17072 } 17073 return a; 17074 } 17075 function rg(a, b) { 17076 "textarea" !== a.type && A("31", "[object Object]" === Object.prototype.toString.call(b) ? "object with keys {" + Object.keys(b).join(", ") + "}" : b, ""); 17077 } 17078 function sg(a) { 17079 function b(b, c) { 17080 if (a) { 17081 var d = b.lastEffect; 17082 null !== d ? (d.nextEffect = c, b.lastEffect = c) : b.firstEffect = b.lastEffect = c, 17083 c.nextEffect = null, c.effectTag = 8; 17084 } 17085 } 17086 function c(c, d) { 17087 if (!a) return null; 17088 for (;null !== d; ) b(c, d), d = d.sibling; 17089 return null; 17090 } 17091 function d(a, b) { 17092 for (a = new Map(); null !== b; ) null !== b.key ? a.set(b.key, b) : a.set(b.index, b), 17093 b = b.sibling; 17094 return a; 17095 } 17096 function e(a, b, c) { 17097 return a = vf(a, b, c), a.index = 0, a.sibling = null, a; 17098 } 17099 function f(b, c, d) { 17100 return b.index = d, a ? null !== (d = b.alternate) ? (d = d.index, d < c ? (b.effectTag = 2, 17101 c) : d) : (b.effectTag = 2, c) : c; 17102 } 17103 function g(b) { 17104 return a && null === b.alternate && (b.effectTag = 2), b; 17105 } 17106 function h(a, b, c, d) { 17107 return null === b || 6 !== b.tag ? (b = yf(c, a.mode, d), b.return = a, b) : (b = e(b, c, d), 17108 b.return = a, b); 17109 } 17110 function k(a, b, c, d) { 17111 return null !== b && b.type === c.type ? (d = e(b, c.props, d), d.ref = qg(a, b, c), 17112 d.return = a, d) : (d = wf(c, a.mode, d), d.ref = qg(a, b, c), d.return = a, d); 17113 } 17114 function n(a, b, c, d) { 17115 return null === b || 4 !== b.tag || b.stateNode.containerInfo !== c.containerInfo || b.stateNode.implementation !== c.implementation ? (b = zf(c, a.mode, d), 17116 b.return = a, b) : (b = e(b, c.children || [], d), b.return = a, b); 17117 } 17118 function r(a, b, c, d, f) { 17119 return null === b || 10 !== b.tag ? (b = xf(c, a.mode, d, f), b.return = a, b) : (b = e(b, c, d), 17120 b.return = a, b); 17121 } 17122 function w(a, b, c) { 17123 if ("string" == typeof b || "number" == typeof b) return b = yf("" + b, a.mode, c), 17124 b.return = a, b; 17125 if ("object" == typeof b && null !== b) { 17126 switch (b.$$typeof) { 17127 case fc: 17128 return c = wf(b, a.mode, c), c.ref = qg(a, null, b), c.return = a, c; 17129 17130 case gc: 17131 return b = zf(b, a.mode, c), b.return = a, b; 17132 } 17133 if (pg(b) || sc(b)) return b = xf(b, a.mode, c, null), b.return = a, b; 17134 rg(a, b); 17135 } 17136 return null; 17137 } 17138 function P(a, b, c, d) { 17139 var e = null !== b ? b.key : null; 17140 if ("string" == typeof c || "number" == typeof c) return null !== e ? null : h(a, b, "" + c, d); 17141 if ("object" == typeof c && null !== c) { 17142 switch (c.$$typeof) { 17143 case fc: 17144 return c.key === e ? c.type === hc ? r(a, b, c.props.children, d, e) : k(a, b, c, d) : null; 17145 17146 case gc: 17147 return c.key === e ? n(a, b, c, d) : null; 17148 } 17149 if (pg(c) || sc(c)) return null !== e ? null : r(a, b, c, d, null); 17150 rg(a, c); 17151 } 17152 return null; 17153 } 17154 function kc(a, b, c, d, e) { 17155 if ("string" == typeof d || "number" == typeof d) return a = a.get(c) || null, h(b, a, "" + d, e); 17156 if ("object" == typeof d && null !== d) { 17157 switch (d.$$typeof) { 17158 case fc: 17159 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); 17160 17161 case gc: 17162 return a = a.get(null === d.key ? c : d.key) || null, n(b, a, d, e); 17163 } 17164 if (pg(d) || sc(d)) return a = a.get(c) || null, r(b, a, d, e, null); 17165 rg(b, d); 17166 } 17167 return null; 17168 } 17169 function Hd(e, g, h, k) { 17170 for (var u = null, x = null, t = g, q = g = 0, n = null; null !== t && q < h.length; q++) { 17171 t.index > q ? (n = t, t = null) : n = t.sibling; 17172 var l = P(e, t, h[q], k); 17173 if (null === l) { 17174 null === t && (t = n); 17175 break; 17176 } 17177 a && t && null === l.alternate && b(e, t), g = f(l, g, q), null === x ? u = l : x.sibling = l, 17178 x = l, t = n; 17179 } 17180 if (q === h.length) return c(e, t), u; 17181 if (null === t) { 17182 for (;q < h.length; q++) (t = w(e, h[q], k)) && (g = f(t, g, q), null === x ? u = t : x.sibling = t, 17183 x = t); 17184 return u; 17185 } 17186 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), 17187 g = f(n, g, q), null === x ? u = n : x.sibling = n, x = n); 17188 return a && t.forEach(function(a) { 17189 return b(e, a); 17190 }), u; 17191 } 17192 function E(e, g, h, k) { 17193 var t = sc(h); 17194 "function" != typeof t && A("150"), null == (h = t.call(h)) && A("151"); 17195 for (var u = t = null, n = g, x = g = 0, y = null, l = h.next(); null !== n && !l.done; x++, 17196 l = h.next()) { 17197 n.index > x ? (y = n, n = null) : y = n.sibling; 17198 var r = P(e, n, l.value, k); 17199 if (null === r) { 17200 n || (n = y); 17201 break; 17202 } 17203 a && n && null === r.alternate && b(e, n), g = f(r, g, x), null === u ? t = r : u.sibling = r, 17204 u = r, n = y; 17205 } 17206 if (l.done) return c(e, n), t; 17207 if (null === n) { 17208 for (;!l.done; x++, l = h.next()) null !== (l = w(e, l.value, k)) && (g = f(l, g, x), 17209 null === u ? t = l : u.sibling = l, u = l); 17210 return t; 17211 } 17212 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), 17213 g = f(l, g, x), null === u ? t = l : u.sibling = l, u = l); 17214 return a && n.forEach(function(a) { 17215 return b(e, a); 17216 }), t; 17217 } 17218 return function(a, d, f, h) { 17219 "object" == typeof f && null !== f && f.type === hc && null === f.key && (f = f.props.children); 17220 var k = "object" == typeof f && null !== f; 17221 if (k) switch (f.$$typeof) { 17222 case fc: 17223 a: { 17224 var n = f.key; 17225 for (k = d; null !== k; ) { 17226 if (k.key === n) { 17227 if (10 === k.tag ? f.type === hc : k.type === f.type) { 17228 c(a, k.sibling), d = e(k, f.type === hc ? f.props.children : f.props, h), d.ref = qg(a, k, f), 17229 d.return = a, a = d; 17230 break a; 17231 } 17232 c(a, k); 17233 break; 17234 } 17235 b(a, k), k = k.sibling; 17236 } 17237 f.type === hc ? (d = xf(f.props.children, a.mode, h, f.key), d.return = a, a = d) : (h = wf(f, a.mode, h), 17238 h.ref = qg(a, d, f), h.return = a, a = h); 17239 } 17240 return g(a); 17241 17242 case gc: 17243 a: { 17244 for (k = f.key; null !== d; ) { 17245 if (d.key === k) { 17246 if (4 === d.tag && d.stateNode.containerInfo === f.containerInfo && d.stateNode.implementation === f.implementation) { 17247 c(a, d.sibling), d = e(d, f.children || [], h), d.return = a, a = d; 17248 break a; 17249 } 17250 c(a, d); 17251 break; 17252 } 17253 b(a, d), d = d.sibling; 17254 } 17255 d = zf(f, a.mode, h), d.return = a, a = d; 17256 } 17257 return g(a); 17258 } 17259 if ("string" == typeof f || "number" == typeof f) return f = "" + f, null !== d && 6 === d.tag ? (c(a, d.sibling), 17260 d = e(d, f, h), d.return = a, a = d) : (c(a, d), d = yf(f, a.mode, h), d.return = a, 17261 a = d), g(a); 17262 if (pg(f)) return Hd(a, d, f, h); 17263 if (sc(f)) return E(a, d, f, h); 17264 if (k && rg(a, f), void 0 === f) switch (a.tag) { 17265 case 2: 17266 case 1: 17267 h = a.type, A("152", h.displayName || h.name || "Component"); 17268 } 17269 return c(a, d); 17270 }; 17271 } 17272 function yg(a, b) { 17273 var c = new uf(5, null, null, 0); 17274 c.type = "DELETED", c.stateNode = b, c.return = a, c.effectTag = 8, null !== a.lastEffect ? (a.lastEffect.nextEffect = c, 17275 a.lastEffect = c) : a.firstEffect = a.lastEffect = c; 17276 } 17277 function zg(a, b) { 17278 switch (a.tag) { 17279 case 5: 17280 var c = a.type; 17281 return null !== (b = 1 !== b.nodeType || c.toLowerCase() !== b.nodeName.toLowerCase() ? null : b) && (a.stateNode = b, 17282 !0); 17283 17284 case 6: 17285 return null !== (b = "" === a.pendingProps || 3 !== b.nodeType ? null : b) && (a.stateNode = b, 17286 !0); 17287 17288 default: 17289 return !1; 17290 } 17291 } 17292 function Ag(a) { 17293 if (xg) { 17294 var b = wg; 17295 if (b) { 17296 var c = b; 17297 if (!zg(a, b)) { 17298 if (!(b = df(c)) || !zg(a, b)) return a.effectTag |= 2, xg = !1, void (vg = a); 17299 yg(vg, c); 17300 } 17301 vg = a, wg = ef(b); 17302 } else a.effectTag |= 2, xg = !1, vg = a; 17303 } 17304 } 17305 function Bg(a) { 17306 for (a = a.return; null !== a && 5 !== a.tag && 3 !== a.tag; ) a = a.return; 17307 vg = a; 17308 } 17309 function Cg(a) { 17310 if (a !== vg) return !1; 17311 if (!xg) return Bg(a), xg = !0, !1; 17312 var b = a.type; 17313 if (5 !== a.tag || "head" !== b && "body" !== b && !$e(b, a.memoizedProps)) for (b = wg; b; ) yg(a, b), 17314 b = df(b); 17315 return Bg(a), wg = vg ? df(a.stateNode) : null, !0; 17316 } 17317 function Dg() { 17318 wg = vg = null, xg = !1; 17319 } 17320 function Q(a, b, c) { 17321 Eg(a, b, c, b.expirationTime); 17322 } 17323 function Eg(a, b, c, d) { 17324 b.child = null === a ? ug(b, null, c, d) : tg(b, a.child, c, d); 17325 } 17326 function Fg(a, b) { 17327 var c = b.ref; 17328 (null === a && null !== c || null !== a && a.ref !== c) && (b.effectTag |= 128); 17329 } 17330 function Gg(a, b, c, d, e) { 17331 Fg(a, b); 17332 var f = 0 != (64 & b.effectTag); 17333 if (!c && !f) return d && tf(b, !1), R(a, b); 17334 c = b.stateNode, ec.current = b; 17335 var g = f ? null : c.render(); 17336 return b.effectTag |= 1, f && (Eg(a, b, null, e), b.child = null), Eg(a, b, g, e), 17337 b.memoizedState = c.state, b.memoizedProps = c.props, d && tf(b, !0), b.child; 17338 } 17339 function Hg(a) { 17340 var b = a.stateNode; 17341 b.pendingContext ? qf(a, b.pendingContext, b.pendingContext !== b.context) : b.context && qf(a, b.context, !1), 17342 dg(a, b.containerInfo); 17343 } 17344 function Ig(a, b, c, d) { 17345 var e = a.child; 17346 for (null !== e && (e.return = a); null !== e; ) { 17347 switch (e.tag) { 17348 case 12: 17349 var f = 0 | e.stateNode; 17350 if (e.type === b && 0 != (f & c)) { 17351 for (f = e; null !== f; ) { 17352 var g = f.alternate; 17353 if (0 === f.expirationTime || f.expirationTime > d) f.expirationTime = d, null !== g && (0 === g.expirationTime || g.expirationTime > d) && (g.expirationTime = d); else { 17354 if (null === g || !(0 === g.expirationTime || g.expirationTime > d)) break; 17355 g.expirationTime = d; 17356 } 17357 f = f.return; 17358 } 17359 f = null; 17360 } else f = e.child; 17361 break; 17362 17363 case 13: 17364 f = e.type === a.type ? null : e.child; 17365 break; 17366 17367 default: 17368 f = e.child; 17369 } 17370 if (null !== f) f.return = e; else for (f = e; null !== f; ) { 17371 if (f === a) { 17372 f = null; 17373 break; 17374 } 17375 if (null !== (e = f.sibling)) { 17376 e.return = f.return, f = e; 17377 break; 17378 } 17379 f = f.return; 17380 } 17381 e = f; 17382 } 17383 } 17384 function Jg(a, b, c) { 17385 var d = b.type._context, e = b.pendingProps, f = b.memoizedProps, g = !0; 17386 if (O.current) g = !1; else if (f === e) return b.stateNode = 0, Xf(b), R(a, b); 17387 var h = e.value; 17388 if (b.memoizedProps = e, null === f) h = 1073741823; else if (f.value === e.value) { 17389 if (f.children === e.children && g) return b.stateNode = 0, Xf(b), R(a, b); 17390 h = 0; 17391 } else { 17392 var k = f.value; 17393 if (k === h && (0 !== k || 1 / k == 1 / h) || k !== k && h !== h) { 17394 if (f.children === e.children && g) return b.stateNode = 0, Xf(b), R(a, b); 17395 h = 0; 17396 } else if (h = "function" == typeof d._calculateChangedBits ? d._calculateChangedBits(k, h) : 1073741823, 17397 0 === (h |= 0)) { 17398 if (f.children === e.children && g) return b.stateNode = 0, Xf(b), R(a, b); 17399 } else Ig(b, d, h, c); 17400 } 17401 return b.stateNode = h, Xf(b), Q(a, b, e.children), b.child; 17402 } 17403 function R(a, b) { 17404 if (null !== a && b.child !== a.child && A("153"), null !== b.child) { 17405 a = b.child; 17406 var c = vf(a, a.pendingProps, a.expirationTime); 17407 for (b.child = c, c.return = b; null !== a.sibling; ) a = a.sibling, c = c.sibling = vf(a, a.pendingProps, a.expirationTime), 17408 c.return = b; 17409 c.sibling = null; 17410 } 17411 return b.child; 17412 } 17413 function Kg(a, b, c) { 17414 if (0 === b.expirationTime || b.expirationTime > c) { 17415 switch (b.tag) { 17416 case 3: 17417 Hg(b); 17418 break; 17419 17420 case 2: 17421 sf(b); 17422 break; 17423 17424 case 4: 17425 dg(b, b.stateNode.containerInfo); 17426 break; 17427 17428 case 13: 17429 Xf(b); 17430 } 17431 return null; 17432 } 17433 switch (b.tag) { 17434 case 0: 17435 null !== a && A("155"); 17436 var d = b.type, e = b.pendingProps, f = lf(b); 17437 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, 17438 b.tag = 2, b.memoizedState = null !== d.state && void 0 !== d.state ? d.state : null, 17439 f = f.getDerivedStateFromProps, "function" == typeof f && hg(b, f, e), e = sf(b), 17440 d.updater = lg, b.stateNode = d, d._reactInternalFiber = b, og(b, c), a = Gg(a, b, !0, e, c)) : (b.tag = 1, 17441 Q(a, b, d), b.memoizedProps = e, a = b.child), a; 17442 17443 case 1: 17444 return e = b.type, c = b.pendingProps, O.current || b.memoizedProps !== c ? (d = lf(b), 17445 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), 17446 a; 17447 17448 case 2: 17449 if (e = sf(b), null === a) if (null === b.stateNode) { 17450 var g = b.pendingProps, h = b.type; 17451 d = lf(b); 17452 var k = 2 === b.tag && null != b.type.contextTypes; 17453 f = k ? nf(b, d) : ha, g = new h(g, f), b.memoizedState = null !== g.state && void 0 !== g.state ? g.state : null, 17454 g.updater = lg, b.stateNode = g, g._reactInternalFiber = b, k && (k = b.stateNode, 17455 k.__reactInternalMemoizedUnmaskedChildContext = d, k.__reactInternalMemoizedMaskedChildContext = f), 17456 og(b, c), d = !0; 17457 } else { 17458 h = b.type, d = b.stateNode, k = b.memoizedProps, f = b.pendingProps, d.props = k; 17459 var n = d.context; 17460 g = lf(b), g = nf(b, g); 17461 var r = h.getDerivedStateFromProps; 17462 (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), 17463 Hf = !1; 17464 var w = b.memoizedState; 17465 n = d.state = w; 17466 var P = b.updateQueue; 17467 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), 17468 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(), 17469 "function" == typeof d.UNSAFE_componentWillMount && d.UNSAFE_componentWillMount()), 17470 "function" == typeof d.componentDidMount && (b.effectTag |= 4)) : ("function" == typeof d.componentDidMount && (b.effectTag |= 4), 17471 b.memoizedProps = f, b.memoizedState = n), d.props = f, d.state = n, d.context = g, 17472 d = k) : ("function" == typeof d.componentDidMount && (b.effectTag |= 4), d = !1); 17473 } else h = b.type, d = b.stateNode, f = b.memoizedProps, k = b.pendingProps, d.props = f, 17474 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), 17475 Hf = !1, n = b.memoizedState, w = d.state = n, P = b.updateQueue, null !== P && (Qf(b, P, k, d, c), 17476 w = b.memoizedState), f !== k || n !== w || O.current || Hf ? ("function" == typeof r && (hg(b, r, k), 17477 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), 17478 "function" == typeof d.UNSAFE_componentWillUpdate && d.UNSAFE_componentWillUpdate(k, w, g)), 17479 "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), 17480 "function" != typeof d.getSnapshotBeforeUpdate || f === a.memoizedProps && n === a.memoizedState || (b.effectTag |= 256), 17481 b.memoizedProps = k, b.memoizedState = w), d.props = k, d.state = w, d.context = g, 17482 d = r) : ("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 d = !1); 17485 return Gg(a, b, d, e, c); 17486 17487 case 3: 17488 return Hg(b), e = b.updateQueue, null !== e ? (d = b.memoizedState, d = null !== d ? d.element : null, 17489 Qf(b, e, b.pendingProps, null, c), (e = b.memoizedState.element) === d ? (Dg(), 17490 a = R(a, b)) : (d = b.stateNode, (d = (null === a || null === a.child) && d.hydrate) && (wg = ef(b.stateNode.containerInfo), 17491 vg = b, d = xg = !0), d ? (b.effectTag |= 2, b.child = ug(b, null, e, c)) : (Dg(), 17492 Q(a, b, e)), a = b.child)) : (Dg(), a = R(a, b)), a; 17493 17494 case 5: 17495 return cg(bg.current), e = cg($f.current), d = De(e, b.type), e !== d && (N(ag, b, b), 17496 N($f, d, b)), null === a && Ag(b), e = b.type, k = b.memoizedProps, d = b.pendingProps, 17497 f = null !== a ? a.memoizedProps : null, O.current || k !== d || ((k = 1 & b.mode && !!d.hidden) && (b.expirationTime = 1073741823), 17498 k && 1073741823 === c) ? (k = d.children, $e(e, d) ? k = null : f && $e(e, f) && (b.effectTag |= 16), 17499 Fg(a, b), 1073741823 !== c && 1 & b.mode && d.hidden ? (b.expirationTime = 1073741823, 17500 b.memoizedProps = d, a = null) : (Q(a, b, k), b.memoizedProps = d, a = b.child)) : a = R(a, b), 17501 a; 17502 17503 case 6: 17504 return null === a && Ag(b), b.memoizedProps = b.pendingProps, null; 17505 17506 case 16: 17507 return null; 17508 17509 case 4: 17510 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), 17511 b.memoizedProps = e, a = b.child) : a = R(a, b), a; 17512 17513 case 14: 17514 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), 17515 Q(a, b, e), b.memoizedProps = c, a = b.child) : a = R(a, b), a; 17516 17517 case 10: 17518 return c = b.pendingProps, O.current || b.memoizedProps !== c ? (Q(a, b, c), b.memoizedProps = c, 17519 a = b.child) : a = R(a, b), a; 17520 17521 case 11: 17522 return c = b.pendingProps.children, O.current || null !== c && b.memoizedProps !== c ? (Q(a, b, c), 17523 b.memoizedProps = c, a = b.child) : a = R(a, b), a; 17524 17525 case 15: 17526 return c = b.pendingProps, b.memoizedProps === c ? a = R(a, b) : (Q(a, b, c.children), 17527 b.memoizedProps = c, a = b.child), a; 17528 17529 case 13: 17530 return Jg(a, b, c); 17531 17532 case 12: 17533 a: if (d = b.type, f = b.pendingProps, k = b.memoizedProps, e = d._currentValue, 17534 g = d._changedBits, O.current || 0 !== g || k !== f) { 17535 if (b.memoizedProps = f, h = f.unstable_observedBits, void 0 !== h && null !== h || (h = 1073741823), 17536 b.stateNode = h, 0 != (g & h)) Ig(b, d, g, c); else if (k === f) { 17537 a = R(a, b); 17538 break a; 17539 } 17540 c = f.children, c = c(e), b.effectTag |= 1, Q(a, b, c), a = b.child; 17541 } else a = R(a, b); 17542 return a; 17543 17544 default: 17545 A("156"); 17546 } 17547 } 17548 function Lg(a) { 17549 a.effectTag |= 4; 17550 } 17551 function Sg(a, b) { 17552 var c = b.pendingProps; 17553 switch (b.tag) { 17554 case 1: 17555 return null; 17556 17557 case 2: 17558 return of(b), null; 17559 17560 case 3: 17561 eg(b), pf(b); 17562 var d = b.stateNode; 17563 return d.pendingContext && (d.context = d.pendingContext, d.pendingContext = null), 17564 null !== a && null !== a.child || (Cg(b), b.effectTag &= -3), Pg(b), null; 17565 17566 case 5: 17567 fg(b), d = cg(bg.current); 17568 var e = b.type; 17569 if (null !== a && null != b.stateNode) { 17570 var f = a.memoizedProps, g = b.stateNode, h = cg($f.current); 17571 g = Se(g, e, f, c, d), Qg(a, b, g, e, f, c, d, h), a.ref !== b.ref && (b.effectTag |= 128); 17572 } else { 17573 if (!c) return null === b.stateNode && A("166"), null; 17574 if (a = cg($f.current), Cg(b)) c = b.stateNode, e = b.type, f = b.memoizedProps, 17575 c[C] = b, c[Ma] = f, d = Ue(c, e, f, a, d), b.updateQueue = d, null !== d && Lg(b); else { 17576 a = Pe(e, c, d, a), a[C] = b, a[Ma] = c; 17577 a: for (f = b.child; null !== f; ) { 17578 if (5 === f.tag || 6 === f.tag) a.appendChild(f.stateNode); else if (4 !== f.tag && null !== f.child) { 17579 f.child.return = f, f = f.child; 17580 continue; 17581 } 17582 if (f === b) break; 17583 for (;null === f.sibling; ) { 17584 if (null === f.return || f.return === b) break a; 17585 f = f.return; 17586 } 17587 f.sibling.return = f.return, f = f.sibling; 17588 } 17589 Re(a, e, c, d), Ze(e, c) && Lg(b), b.stateNode = a; 17590 } 17591 null !== b.ref && (b.effectTag |= 128); 17592 } 17593 return null; 17594 17595 case 6: 17596 if (a && null != b.stateNode) Rg(a, b, a.memoizedProps, c); else { 17597 if ("string" != typeof c) return null === b.stateNode && A("166"), null; 17598 d = cg(bg.current), cg($f.current), Cg(b) ? (d = b.stateNode, c = b.memoizedProps, 17599 d[C] = b, Ve(d, c) && Lg(b)) : (d = Qe(c, d), d[C] = b, b.stateNode = d); 17600 } 17601 return null; 17602 17603 case 14: 17604 case 16: 17605 case 10: 17606 case 11: 17607 case 15: 17608 return null; 17609 17610 case 4: 17611 return eg(b), Pg(b), null; 17612 17613 case 13: 17614 return Yf(b), null; 17615 17616 case 12: 17617 return null; 17618 17619 case 0: 17620 A("167"); 17621 17622 default: 17623 A("156"); 17624 } 17625 } 17626 function Tg(a, b) { 17627 var c = b.source; 17628 null === b.stack && null !== c && vc(c), null !== c && tc(c), b = b.value, null !== a && 2 === a.tag && tc(a); 17629 try { 17630 b && b.suppressReactErrorLogging || console.error(b); 17631 } catch (d) { 17632 d && d.suppressReactErrorLogging || console.error(d); 17633 } 17634 } 17635 function Ug(a) { 17636 var b = a.ref; 17637 if (null !== b) if ("function" == typeof b) try { 17638 b(null); 17639 } catch (c) { 17640 Vg(a, c); 17641 } else b.current = null; 17642 } 17643 function Wg(a) { 17644 switch ("function" == typeof Gf && Gf(a), a.tag) { 17645 case 2: 17646 Ug(a); 17647 var b = a.stateNode; 17648 if ("function" == typeof b.componentWillUnmount) try { 17649 b.props = a.memoizedProps, b.state = a.memoizedState, b.componentWillUnmount(); 17650 } catch (c) { 17651 Vg(a, c); 17652 } 17653 break; 17654 17655 case 5: 17656 Ug(a); 17657 break; 17658 17659 case 4: 17660 Xg(a); 17661 } 17662 } 17663 function Yg(a) { 17664 return 5 === a.tag || 3 === a.tag || 4 === a.tag; 17665 } 17666 function Zg(a) { 17667 a: { 17668 for (var b = a.return; null !== b; ) { 17669 if (Yg(b)) { 17670 var c = b; 17671 break a; 17672 } 17673 b = b.return; 17674 } 17675 A("160"), c = void 0; 17676 } 17677 var d = b = void 0; 17678 switch (c.tag) { 17679 case 5: 17680 b = c.stateNode, d = !1; 17681 break; 17682 17683 case 3: 17684 case 4: 17685 b = c.stateNode.containerInfo, d = !0; 17686 break; 17687 17688 default: 17689 A("161"); 17690 } 17691 16 & c.effectTag && (Ge(b, ""), c.effectTag &= -17); 17692 a: b: for (c = a; ;) { 17693 for (;null === c.sibling; ) { 17694 if (null === c.return || Yg(c.return)) { 17695 c = null; 17696 break a; 17697 } 17698 c = c.return; 17699 } 17700 for (c.sibling.return = c.return, c = c.sibling; 5 !== c.tag && 6 !== c.tag; ) { 17701 if (2 & c.effectTag) continue b; 17702 if (null === c.child || 4 === c.tag) continue b; 17703 c.child.return = c, c = c.child; 17704 } 17705 if (!(2 & c.effectTag)) { 17706 c = c.stateNode; 17707 break a; 17708 } 17709 } 17710 for (var e = a; ;) { 17711 if (5 === e.tag || 6 === e.tag) if (c) if (d) { 17712 var f = b, g = e.stateNode, h = c; 17713 8 === f.nodeType ? f.parentNode.insertBefore(g, h) : f.insertBefore(g, h); 17714 } 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) { 17715 e.child.return = e, e = e.child; 17716 continue; 17717 } 17718 if (e === a) break; 17719 for (;null === e.sibling; ) { 17720 if (null === e.return || e.return === a) return; 17721 e = e.return; 17722 } 17723 e.sibling.return = e.return, e = e.sibling; 17724 } 17725 } 17726 function Xg(a) { 17727 for (var b = a, c = !1, d = void 0, e = void 0; ;) { 17728 if (!c) { 17729 c = b.return; 17730 a: for (;;) { 17731 switch (null === c && A("160"), c.tag) { 17732 case 5: 17733 d = c.stateNode, e = !1; 17734 break a; 17735 17736 case 3: 17737 case 4: 17738 d = c.stateNode.containerInfo, e = !0; 17739 break a; 17740 } 17741 c = c.return; 17742 } 17743 c = !0; 17744 } 17745 if (5 === b.tag || 6 === b.tag) { 17746 a: for (var f = b, g = f; ;) if (Wg(g), null !== g.child && 4 !== g.tag) g.child.return = g, 17747 g = g.child; else { 17748 if (g === f) break; 17749 for (;null === g.sibling; ) { 17750 if (null === g.return || g.return === f) break a; 17751 g = g.return; 17752 } 17753 g.sibling.return = g.return, g = g.sibling; 17754 } 17755 e ? (f = d, g = b.stateNode, 8 === f.nodeType ? f.parentNode.removeChild(g) : f.removeChild(g)) : d.removeChild(b.stateNode); 17756 } else if (4 === b.tag ? d = b.stateNode.containerInfo : Wg(b), null !== b.child) { 17757 b.child.return = b, b = b.child; 17758 continue; 17759 } 17760 if (b === a) break; 17761 for (;null === b.sibling; ) { 17762 if (null === b.return || b.return === a) return; 17763 b = b.return, 4 === b.tag && (c = !1); 17764 } 17765 b.sibling.return = b.return, b = b.sibling; 17766 } 17767 } 17768 function $g(a, b) { 17769 switch (b.tag) { 17770 case 2: 17771 break; 17772 17773 case 5: 17774 var c = b.stateNode; 17775 if (null != c) { 17776 var d = b.memoizedProps; 17777 a = null !== a ? a.memoizedProps : d; 17778 var e = b.type, f = b.updateQueue; 17779 b.updateQueue = null, null !== f && (c[Ma] = d, Te(c, f, e, a, d)); 17780 } 17781 break; 17782 17783 case 6: 17784 null === b.stateNode && A("162"), b.stateNode.nodeValue = b.memoizedProps; 17785 break; 17786 17787 case 3: 17788 case 15: 17789 case 16: 17790 break; 17791 17792 default: 17793 A("163"); 17794 } 17795 } 17796 function ah(a, b, c) { 17797 c = Kf(c), c.tag = 3, c.payload = { 17798 element: null 17799 }; 17800 var d = b.value; 17801 return c.callback = function() { 17802 bh(d), Tg(a, b); 17803 }, c; 17804 } 17805 function ch(a, b, c) { 17806 c = Kf(c), c.tag = 3; 17807 var d = a.stateNode; 17808 return null !== d && "function" == typeof d.componentDidCatch && (c.callback = function() { 17809 null === dh ? dh = new Set([ this ]) : dh.add(this); 17810 var c = b.value, d = b.stack; 17811 Tg(a, b), this.componentDidCatch(c, { 17812 componentStack: null !== d ? d : "" 17813 }); 17814 }), c; 17815 } 17816 function eh(a, b, c, d, e, f) { 17817 c.effectTag |= 512, c.firstEffect = c.lastEffect = null, d = Tf(d, c), a = b; 17818 do { 17819 switch (a.tag) { 17820 case 3: 17821 return a.effectTag |= 1024, d = ah(a, d, f), void Nf(a, d, f); 17822 17823 case 2: 17824 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, 17825 d = ch(a, b, f), void Nf(a, d, f); 17826 } 17827 a = a.return; 17828 } while (null !== a); 17829 } 17830 function fh(a) { 17831 switch (a.tag) { 17832 case 2: 17833 of(a); 17834 var b = a.effectTag; 17835 return 1024 & b ? (a.effectTag = -1025 & b | 64, a) : null; 17836 17837 case 3: 17838 return eg(a), pf(a), b = a.effectTag, 1024 & b ? (a.effectTag = -1025 & b | 64, 17839 a) : null; 17840 17841 case 5: 17842 return fg(a), null; 17843 17844 case 16: 17845 return b = a.effectTag, 1024 & b ? (a.effectTag = -1025 & b | 64, a) : null; 17846 17847 case 4: 17848 return eg(a), null; 17849 17850 case 13: 17851 return Yf(a), null; 17852 17853 default: 17854 return null; 17855 } 17856 } 17857 function rh() { 17858 if (null !== S) for (var a = S.return; null !== a; ) { 17859 var b = a; 17860 switch (b.tag) { 17861 case 2: 17862 of(b); 17863 break; 17864 17865 case 3: 17866 eg(b), pf(b); 17867 break; 17868 17869 case 5: 17870 fg(b); 17871 break; 17872 17873 case 4: 17874 eg(b); 17875 break; 17876 17877 case 13: 17878 Yf(b); 17879 } 17880 a = a.return; 17881 } 17882 mh = null, T = 0, nh = -1, oh = !1, S = null, qh = !1; 17883 } 17884 function sh(a) { 17885 for (;;) { 17886 var b = a.alternate, c = a.return, d = a.sibling; 17887 if (0 == (512 & a.effectTag)) { 17888 b = Sg(b, a, T); 17889 var e = a; 17890 if (1073741823 === T || 1073741823 !== e.expirationTime) { 17891 var f = 0; 17892 switch (e.tag) { 17893 case 3: 17894 case 2: 17895 var g = e.updateQueue; 17896 null !== g && (f = g.expirationTime); 17897 } 17898 for (g = e.child; null !== g; ) 0 !== g.expirationTime && (0 === f || f > g.expirationTime) && (f = g.expirationTime), 17899 g = g.sibling; 17900 e.expirationTime = f; 17901 } 17902 if (null !== b) return b; 17903 if (null !== c && 0 == (512 & c.effectTag) && (null === c.firstEffect && (c.firstEffect = a.firstEffect), 17904 null !== a.lastEffect && (null !== c.lastEffect && (c.lastEffect.nextEffect = a.firstEffect), 17905 c.lastEffect = a.lastEffect), 1 < a.effectTag && (null !== c.lastEffect ? c.lastEffect.nextEffect = a : c.firstEffect = a, 17906 c.lastEffect = a)), null !== d) return d; 17907 if (null === c) { 17908 qh = !0; 17909 break; 17910 } 17911 a = c; 17912 } else { 17913 if (null !== (a = fh(a, oh, T))) return a.effectTag &= 511, a; 17914 if (null !== c && (c.firstEffect = c.lastEffect = null, c.effectTag |= 512), null !== d) return d; 17915 if (null === c) break; 17916 a = c; 17917 } 17918 } 17919 return null; 17920 } 17921 function th(a) { 17922 var b = Kg(a.alternate, a, T); 17923 return null === b && (b = sh(a)), ec.current = null, b; 17924 } 17925 function uh(a, b, c) { 17926 lh && A("243"), lh = !0, b === T && a === mh && null !== S || (rh(), mh = a, T = b, 17927 nh = -1, S = vf(mh.current, null, T), a.pendingCommitExpirationTime = 0); 17928 var d = !1; 17929 for (oh = !c || T <= hh; ;) { 17930 try { 17931 if (c) for (;null !== S && !vh(); ) S = th(S); else for (;null !== S; ) S = th(S); 17932 } catch (f) { 17933 if (null === S) d = !0, bh(f); else { 17934 null === S && A("271"), c = S; 17935 var e = c.return; 17936 if (null === e) { 17937 d = !0, bh(f); 17938 break; 17939 } 17940 eh(a, e, c, f, oh, T, ih), S = sh(c); 17941 } 17942 } 17943 break; 17944 } 17945 if (lh = !1, d) return null; 17946 if (null === S) { 17947 if (qh) return a.pendingCommitExpirationTime = b, a.current.alternate; 17948 oh && A("262"), 0 <= nh && setTimeout(function() { 17949 var b = a.current.expirationTime; 17950 0 !== b && (0 === a.remainingExpirationTime || a.remainingExpirationTime < b) && wh(a, b); 17951 }, nh), xh(a.current.expirationTime); 17952 } 17953 return null; 17954 } 17955 function Vg(a, b) { 17956 var c; 17957 a: { 17958 for (lh && !ph && A("263"), c = a.return; null !== c; ) { 17959 switch (c.tag) { 17960 case 2: 17961 var d = c.stateNode; 17962 if ("function" == typeof c.type.getDerivedStateFromCatch || "function" == typeof d.componentDidCatch && (null === dh || !dh.has(d))) { 17963 a = Tf(b, a), a = ch(c, a, 1), Mf(c, a, 1), kg(c, 1), c = void 0; 17964 break a; 17965 } 17966 break; 17967 17968 case 3: 17969 a = Tf(b, a), a = ah(c, a, 1), Mf(c, a, 1), kg(c, 1), c = void 0; 17970 break a; 17971 } 17972 c = c.return; 17973 } 17974 3 === a.tag && (c = Tf(b, a), c = ah(a, c, 1), Mf(a, c, 1), kg(a, 1)), c = void 0; 17975 } 17976 return c; 17977 } 17978 function yh() { 17979 var a = 2 + 25 * (1 + ((ig() - 2 + 500) / 25 | 0)); 17980 return a <= jh && (a = jh + 1), jh = a; 17981 } 17982 function jg(a, b) { 17983 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, 17984 zh && (0 === Ah || a > Ah) && (Ah = a), a; 17985 } 17986 function kg(a, b) { 17987 for (;null !== a; ) { 17988 if ((0 === a.expirationTime || a.expirationTime > b) && (a.expirationTime = b), 17989 null !== a.alternate && (0 === a.alternate.expirationTime || a.alternate.expirationTime > b) && (a.alternate.expirationTime = b), 17990 null === a.return) { 17991 if (3 !== a.tag) break; 17992 var c = a.stateNode; 17993 !lh && 0 !== T && b < T && rh(); 17994 var d = c.current.expirationTime; 17995 lh && !ph && mh === c || wh(c, d), Bh > Ch && A("185"); 17996 } 17997 a = a.return; 17998 } 17999 } 18000 function ig() { 18001 return ih = af() - gh, hh = 2 + (ih / 10 | 0); 18002 } 18003 function Dh(a) { 18004 var b = kh; 18005 kh = 2 + 25 * (1 + ((ig() - 2 + 500) / 25 | 0)); 18006 try { 18007 return a(); 18008 } finally { 18009 kh = b; 18010 } 18011 } 18012 function Eh(a, b, c, d, e) { 18013 var f = kh; 18014 kh = 1; 18015 try { 18016 return a(b, c, d, e); 18017 } finally { 18018 kh = f; 18019 } 18020 } 18021 function Ph(a) { 18022 if (0 !== Gh) { 18023 if (a > Gh) return; 18024 cf(Hh); 18025 } 18026 var b = af() - gh; 18027 Gh = a, Hh = bf(Qh, { 18028 timeout: 10 * (a - 2) - b 18029 }); 18030 } 18031 function wh(a, b) { 18032 if (null === a.nextScheduledRoot) a.remainingExpirationTime = b, null === V ? (Fh = V = a, 18033 a.nextScheduledRoot = a) : (V = V.nextScheduledRoot = a, V.nextScheduledRoot = Fh); else { 18034 var c = a.remainingExpirationTime; 18035 (0 === c || b < c) && (a.remainingExpirationTime = b); 18036 } 18037 W || (Z ? Mh && (X = a, Y = 1, Rh(a, 1, !1)) : 1 === b ? Sh() : Ph(b)); 18038 } 18039 function Th() { 18040 var a = 0, b = null; 18041 if (null !== V) for (var c = V, d = Fh; null !== d; ) { 18042 var e = d.remainingExpirationTime; 18043 if (0 === e) { 18044 if ((null === c || null === V) && A("244"), d === d.nextScheduledRoot) { 18045 Fh = V = d.nextScheduledRoot = null; 18046 break; 18047 } 18048 if (d === Fh) Fh = e = d.nextScheduledRoot, V.nextScheduledRoot = e, d.nextScheduledRoot = null; else { 18049 if (d === V) { 18050 V = c, V.nextScheduledRoot = Fh, d.nextScheduledRoot = null; 18051 break; 18052 } 18053 c.nextScheduledRoot = d.nextScheduledRoot, d.nextScheduledRoot = null; 18054 } 18055 d = c.nextScheduledRoot; 18056 } else { 18057 if ((0 === a || e < a) && (a = e, b = d), d === V) break; 18058 c = d, d = d.nextScheduledRoot; 18059 } 18060 } 18061 c = X, null !== c && c === b && 1 === a ? Bh++ : Bh = 0, X = b, Y = a; 18062 } 18063 function Qh(a) { 18064 Uh(0, !0, a); 18065 } 18066 function Sh() { 18067 Uh(1, !1, null); 18068 } 18069 function Uh(a, b, c) { 18070 if (Lh = c, Th(), b) for (;null !== X && 0 !== Y && (0 === a || a >= Y) && (!Ih || ig() >= Y); ) ig(), 18071 Rh(X, Y, !Ih), Th(); else for (;null !== X && 0 !== Y && (0 === a || a >= Y); ) Rh(X, Y, !1), 18072 Th(); 18073 null !== Lh && (Gh = 0, Hh = -1), 0 !== Y && Ph(Y), Lh = null, Ih = !1, Vh(); 18074 } 18075 function Wh(a, b) { 18076 W && A("253"), X = a, Y = b, Rh(a, b, !1), Sh(), Vh(); 18077 } 18078 function Vh() { 18079 if (Bh = 0, null !== Nh) { 18080 var a = Nh; 18081 Nh = null; 18082 for (var b = 0; b < a.length; b++) { 18083 var c = a[b]; 18084 try { 18085 c._onComplete(); 18086 } catch (d) { 18087 Jh || (Jh = !0, Kh = d); 18088 } 18089 } 18090 } 18091 if (Jh) throw a = Kh, Kh = null, Jh = !1, a; 18092 } 18093 function Rh(a, b, c) { 18094 W && A("245"), W = !0, c ? (c = a.finishedWork, null !== c ? Xh(a, c, b) : (a.finishedWork = null, 18095 null !== (c = uh(a, b, !0)) && (vh() ? a.finishedWork = c : Xh(a, c, b)))) : (c = a.finishedWork, 18096 null !== c ? Xh(a, c, b) : (a.finishedWork = null, null !== (c = uh(a, b, !1)) && Xh(a, c, b))), 18097 W = !1; 18098 } 18099 function Xh(a, b, c) { 18100 var d = a.firstBatch; 18101 if (null !== d && d._expirationTime <= c && (null === Nh ? Nh = [ d ] : Nh.push(d), 18102 d._defer)) return a.finishedWork = b, void (a.remainingExpirationTime = 0); 18103 if (a.finishedWork = null, ph = lh = !0, c = b.stateNode, c.current === b && A("177"), 18104 d = c.pendingCommitExpirationTime, 0 === d && A("261"), c.pendingCommitExpirationTime = 0, 18105 ig(), ec.current = null, 1 < b.effectTag) if (null !== b.lastEffect) { 18106 b.lastEffect.nextEffect = b; 18107 var e = b.firstEffect; 18108 } else e = b; else e = b.firstEffect; 18109 Xe = Gd; 18110 var f = da(); 18111 if (Td(f)) { 18112 if ("selectionStart" in f) var g = { 18113 start: f.selectionStart, 18114 end: f.selectionEnd 18115 }; else a: { 18116 var h = window.getSelection && window.getSelection(); 18117 if (h && 0 !== h.rangeCount) { 18118 g = h.anchorNode; 18119 var k = h.anchorOffset, n = h.focusNode; 18120 h = h.focusOffset; 18121 try { 18122 g.nodeType, n.nodeType; 18123 } catch (Wa) { 18124 g = null; 18125 break a; 18126 } 18127 var r = 0, w = -1, P = -1, kc = 0, Hd = 0, E = f, t = null; 18128 b: for (;;) { 18129 for (var x; E !== g || 0 !== k && 3 !== E.nodeType || (w = r + k), E !== n || 0 !== h && 3 !== E.nodeType || (P = r + h), 18130 3 === E.nodeType && (r += E.nodeValue.length), null !== (x = E.firstChild); ) t = E, 18131 E = x; 18132 for (;;) { 18133 if (E === f) break b; 18134 if (t === g && ++kc === k && (w = r), t === n && ++Hd === h && (P = r), null !== (x = E.nextSibling)) break; 18135 E = t, t = E.parentNode; 18136 } 18137 E = x; 18138 } 18139 g = -1 === w || -1 === P ? null : { 18140 start: w, 18141 end: P 18142 }; 18143 } else g = null; 18144 } 18145 g = g || { 18146 start: 0, 18147 end: 0 18148 }; 18149 } else g = null; 18150 for (Ye = { 18151 focusedElem: f, 18152 selectionRange: g 18153 }, Id(!1), U = e; null !== U; ) { 18154 f = !1, g = void 0; 18155 try { 18156 for (;null !== U; ) { 18157 if (256 & U.effectTag) { 18158 var u = U.alternate; 18159 switch (k = U, k.tag) { 18160 case 2: 18161 if (256 & k.effectTag && null !== u) { 18162 var y = u.memoizedProps, D = u.memoizedState, ja = k.stateNode; 18163 ja.props = k.memoizedProps, ja.state = k.memoizedState; 18164 var hi = ja.getSnapshotBeforeUpdate(y, D); 18165 ja.__reactInternalSnapshotBeforeUpdate = hi; 18166 } 18167 break; 18168 18169 case 3: 18170 case 5: 18171 case 6: 18172 case 4: 18173 break; 18174 18175 default: 18176 A("163"); 18177 } 18178 } 18179 U = U.nextEffect; 18180 } 18181 } catch (Wa) { 18182 f = !0, g = Wa; 18183 } 18184 f && (null === U && A("178"), Vg(U, g), null !== U && (U = U.nextEffect)); 18185 } 18186 for (U = e; null !== U; ) { 18187 u = !1, y = void 0; 18188 try { 18189 for (;null !== U; ) { 18190 var q = U.effectTag; 18191 if (16 & q && Ge(U.stateNode, ""), 128 & q) { 18192 var z = U.alternate; 18193 if (null !== z) { 18194 var l = z.ref; 18195 null !== l && ("function" == typeof l ? l(null) : l.current = null); 18196 } 18197 } 18198 switch (14 & q) { 18199 case 2: 18200 Zg(U), U.effectTag &= -3; 18201 break; 18202 18203 case 6: 18204 Zg(U), U.effectTag &= -3, $g(U.alternate, U); 18205 break; 18206 18207 case 4: 18208 $g(U.alternate, U); 18209 break; 18210 18211 case 8: 18212 D = U, Xg(D), D.return = null, D.child = null, D.alternate && (D.alternate.child = null, 18213 D.alternate.return = null); 18214 } 18215 U = U.nextEffect; 18216 } 18217 } catch (Wa) { 18218 u = !0, y = Wa; 18219 } 18220 u && (null === U && A("178"), Vg(U, y), null !== U && (U = U.nextEffect)); 18221 } 18222 if (l = Ye, z = da(), q = l.focusedElem, u = l.selectionRange, z !== q && fa(document.documentElement, q)) { 18223 Td(q) && (z = u.start, l = u.end, void 0 === l && (l = z), "selectionStart" in q ? (q.selectionStart = z, 18224 q.selectionEnd = Math.min(l, q.value.length)) : window.getSelection && (z = window.getSelection(), 18225 y = q[lb()].length, l = Math.min(u.start, y), u = void 0 === u.end ? l : Math.min(u.end, y), 18226 !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(), 18227 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), 18228 z.addRange(ja))))), z = []; 18229 for (l = q; l = l.parentNode; ) 1 === l.nodeType && z.push({ 18230 element: l, 18231 left: l.scrollLeft, 18232 top: l.scrollTop 18233 }); 18234 for (q.focus(), q = 0; q < z.length; q++) l = z[q], l.element.scrollLeft = l.left, 18235 l.element.scrollTop = l.top; 18236 } 18237 for (Ye = null, Id(Xe), Xe = null, c.current = b, U = e; null !== U; ) { 18238 e = !1, q = void 0; 18239 try { 18240 for (z = d; null !== U; ) { 18241 var gg = U.effectTag; 18242 if (36 & gg) { 18243 var lc = U.alternate; 18244 switch (l = U, u = z, l.tag) { 18245 case 2: 18246 var ba = l.stateNode; 18247 if (4 & l.effectTag) if (null === lc) ba.props = l.memoizedProps, ba.state = l.memoizedState, 18248 ba.componentDidMount(); else { 18249 var ri = lc.memoizedProps, si = lc.memoizedState; 18250 ba.props = l.memoizedProps, ba.state = l.memoizedState, ba.componentDidUpdate(ri, si, ba.__reactInternalSnapshotBeforeUpdate); 18251 } 18252 var Mg = l.updateQueue; 18253 null !== Mg && (ba.props = l.memoizedProps, ba.state = l.memoizedState, Sf(l, Mg, ba, u)); 18254 break; 18255 18256 case 3: 18257 var Ng = l.updateQueue; 18258 if (null !== Ng) { 18259 if (y = null, null !== l.child) switch (l.child.tag) { 18260 case 5: 18261 y = l.child.stateNode; 18262 break; 18263 18264 case 2: 18265 y = l.child.stateNode; 18266 } 18267 Sf(l, Ng, y, u); 18268 } 18269 break; 18270 18271 case 5: 18272 var ti = l.stateNode; 18273 null === lc && 4 & l.effectTag && Ze(l.type, l.memoizedProps) && ti.focus(); 18274 break; 18275 18276 case 6: 18277 case 4: 18278 case 15: 18279 case 16: 18280 break; 18281 18282 default: 18283 A("163"); 18284 } 18285 } 18286 if (128 & gg) { 18287 l = void 0; 18288 var uc = U.ref; 18289 if (null !== uc) { 18290 var Og = U.stateNode; 18291 switch (U.tag) { 18292 case 5: 18293 l = Og; 18294 break; 18295 18296 default: 18297 l = Og; 18298 } 18299 "function" == typeof uc ? uc(l) : uc.current = l; 18300 } 18301 } 18302 var ui = U.nextEffect; 18303 U.nextEffect = null, U = ui; 18304 } 18305 } catch (Wa) { 18306 e = !0, q = Wa; 18307 } 18308 e && (null === U && A("178"), Vg(U, q), null !== U && (U = U.nextEffect)); 18309 } 18310 lh = ph = !1, "function" == typeof Ff && Ff(b.stateNode), b = c.current.expirationTime, 18311 0 === b && (dh = null), a.remainingExpirationTime = b; 18312 } 18313 function vh() { 18314 return !(null === Lh || Lh.timeRemaining() > Oh) && (Ih = !0); 18315 } 18316 function bh(a) { 18317 null === X && A("246"), X.remainingExpirationTime = 0, Jh || (Jh = !0, Kh = a); 18318 } 18319 function xh(a) { 18320 null === X && A("246"), X.remainingExpirationTime = a; 18321 } 18322 function Yh(a, b) { 18323 var c = Z; 18324 Z = !0; 18325 try { 18326 return a(b); 18327 } finally { 18328 (Z = c) || W || Sh(); 18329 } 18330 } 18331 function Zh(a, b) { 18332 if (Z && !Mh) { 18333 Mh = !0; 18334 try { 18335 return a(b); 18336 } finally { 18337 Mh = !1; 18338 } 18339 } 18340 return a(b); 18341 } 18342 function $h(a, b) { 18343 W && A("187"); 18344 var c = Z; 18345 Z = !0; 18346 try { 18347 return Eh(a, b); 18348 } finally { 18349 Z = c, Sh(); 18350 } 18351 } 18352 function ai(a) { 18353 var b = Z; 18354 Z = !0; 18355 try { 18356 Eh(a); 18357 } finally { 18358 (Z = b) || W || Uh(1, !1, null); 18359 } 18360 } 18361 function bi(a, b, c, d, e) { 18362 var f = b.current; 18363 if (c) { 18364 c = c._reactInternalFiber; 18365 var g; 18366 b: { 18367 for (2 === id(c) && 2 === c.tag || A("170"), g = c; 3 !== g.tag; ) { 18368 if (mf(g)) { 18369 g = g.stateNode.__reactInternalMemoizedMergedChildContext; 18370 break b; 18371 } 18372 (g = g.return) || A("171"); 18373 } 18374 g = g.stateNode.context; 18375 } 18376 c = mf(c) ? rf(c, g) : g; 18377 } else c = ha; 18378 return null === b.context ? b.context = c : b.pendingContext = c, b = e, e = Kf(d), 18379 e.payload = { 18380 element: a 18381 }, b = void 0 === b ? null : b, null !== b && (e.callback = b), Mf(f, e, d), kg(f, d), 18382 d; 18383 } 18384 function ci(a) { 18385 var b = a._reactInternalFiber; 18386 return void 0 === b && ("function" == typeof a.render ? A("188") : A("268", Object.keys(a))), 18387 a = ld(b), null === a ? null : a.stateNode; 18388 } 18389 function di(a, b, c, d) { 18390 var e = b.current; 18391 return e = jg(ig(), e), bi(a, b, c, e, d); 18392 } 18393 function ei(a) { 18394 if (a = a.current, !a.child) return null; 18395 switch (a.child.tag) { 18396 case 5: 18397 default: 18398 return a.child.stateNode; 18399 } 18400 } 18401 function fi(a) { 18402 var b = a.findFiberByHostInstance; 18403 return Ef(p({}, a, { 18404 findHostInstanceByFiber: function(a) { 18405 return a = ld(a), null === a ? null : a.stateNode; 18406 }, 18407 findFiberByHostInstance: function(a) { 18408 return b ? b(a) : null; 18409 } 18410 })); 18411 } 18412 function ii(a, b, c) { 18413 var d = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null; 18414 return { 18415 $$typeof: gc, 18416 key: null == d ? null : "" + d, 18417 children: a, 18418 containerInfo: b, 18419 implementation: c 18420 }; 18421 } 18422 function ji(a) { 18423 this._expirationTime = yh(), this._root = a, this._callbacks = this._next = null, 18424 this._hasChildren = this._didComplete = !1, this._children = null, this._defer = !0; 18425 } 18426 function ki() { 18427 this._callbacks = null, this._didCommit = !1, this._onCommit = this._onCommit.bind(this); 18428 } 18429 function li(a, b, c) { 18430 this._internalRoot = Af(a, b, c); 18431 } 18432 function mi(a) { 18433 return !(!a || 1 !== a.nodeType && 9 !== a.nodeType && 11 !== a.nodeType && (8 !== a.nodeType || " react-mount-point-unstable " !== a.nodeValue)); 18434 } 18435 function ni(a, b) { 18436 if (b || (b = a ? 9 === a.nodeType ? a.documentElement : a.firstChild : null, b = !(!b || 1 !== b.nodeType || !b.hasAttribute("data-reactroot"))), 18437 !b) for (var c; c = a.lastChild; ) a.removeChild(c); 18438 return new li(a, !1, b); 18439 } 18440 function oi(a, b, c, d, e) { 18441 mi(c) || A("200"); 18442 var f = c._reactRootContainer; 18443 if (f) { 18444 if ("function" == typeof e) { 18445 var g = e; 18446 e = function() { 18447 var a = ei(f._internalRoot); 18448 g.call(a); 18449 }; 18450 } 18451 null != a ? f.legacy_renderSubtreeIntoContainer(a, b, e) : f.render(b, e); 18452 } else { 18453 if (f = c._reactRootContainer = ni(c, d), "function" == typeof e) { 18454 var h = e; 18455 e = function() { 18456 var a = ei(f._internalRoot); 18457 h.call(a); 18458 }; 18459 } 18460 Zh(function() { 18461 null != a ? f.legacy_renderSubtreeIntoContainer(a, b, e) : f.render(b, e); 18462 }); 18463 } 18464 return ei(f._internalRoot); 18465 } 18466 function pi(a, b) { 18467 var c = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null; 18468 return mi(b) || A("200"), ii(a, b, null, c); 18469 } 18470 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); 18471 ca || A("227"); 18472 var B = { 18473 _caughtError: null, 18474 _hasCaughtError: !1, 18475 _rethrowError: null, 18476 _hasRethrowError: !1, 18477 invokeGuardedCallback: function(a, b, c, d, e, f, g, h, k) { 18478 ia.apply(B, arguments); 18479 }, 18480 invokeGuardedCallbackAndCatchFirstError: function(a, b, c, d, e, f, g, h, k) { 18481 if (B.invokeGuardedCallback.apply(this, arguments), B.hasCaughtError()) { 18482 var n = B.clearCaughtError(); 18483 B._hasRethrowError || (B._hasRethrowError = !0, B._rethrowError = n); 18484 } 18485 }, 18486 rethrowCaughtError: function() { 18487 return ka.apply(B, arguments); 18488 }, 18489 hasCaughtError: function() { 18490 return B._hasCaughtError; 18491 }, 18492 clearCaughtError: function() { 18493 if (B._hasCaughtError) { 18494 var a = B._caughtError; 18495 return B._caughtError = null, B._hasCaughtError = !1, a; 18496 } 18497 A("198"); 18498 } 18499 }, la = null, ma = {}, oa = [], pa = {}, ra = {}, sa = {}, va = { 18500 plugins: oa, 18501 eventNameDispatchConfigs: pa, 18502 registrationNameModules: ra, 18503 registrationNameDependencies: sa, 18504 possibleRegistrationNames: null, 18505 injectEventPluginOrder: ta, 18506 injectEventPluginsByName: ua 18507 }, wa = null, xa = null, ya = null, Ca = null, Ga = { 18508 injectEventPluginOrder: ta, 18509 injectEventPluginsByName: ua 18510 }, Ka = { 18511 injection: Ga, 18512 getListener: Ha, 18513 runEventsInBatch: Ia, 18514 runExtractedEventsInBatch: Ja 18515 }, La = Math.random().toString(36).slice(2), C = "__reactInternalInstance$" + La, Ma = "__reactEventHandlers$" + La, Qa = { 18516 precacheFiberNode: function(a, b) { 18517 b[C] = a; 18518 }, 18519 getClosestInstanceFromNode: Na, 18520 getInstanceFromNode: function(a) { 18521 return a = a[C], !a || 5 !== a.tag && 6 !== a.tag ? null : a; 18522 }, 18523 getNodeFromInstance: Oa, 18524 getFiberCurrentPropsFromNode: Pa, 18525 updateFiberProps: function(a, b) { 18526 a[Ma] = b; 18527 } 18528 }, $a = { 18529 accumulateTwoPhaseDispatches: Ya, 18530 accumulateTwoPhaseDispatchesSkipTarget: function(a) { 18531 Ba(a, Ua); 18532 }, 18533 accumulateEnterLeaveDispatches: Za, 18534 accumulateDirectDispatches: function(a) { 18535 Ba(a, Xa); 18536 } 18537 }, bb = { 18538 animationend: ab("Animation", "AnimationEnd"), 18539 animationiteration: ab("Animation", "AnimationIteration"), 18540 animationstart: ab("Animation", "AnimationStart"), 18541 transitionend: ab("Transition", "TransitionEnd") 18542 }, cb = {}, db = {}; 18543 m.canUseDOM && (db = document.createElement("div").style, "AnimationEvent" in window || (delete bb.animationend.animation, 18544 delete bb.animationiteration.animation, delete bb.animationstart.animation), "TransitionEvent" in window || delete bb.transitionend.transition); 18545 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 = { 18546 _root: null, 18547 _startText: null, 18548 _fallbackText: null 18549 }, ob = "dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "), pb = { 18550 type: null, 18551 target: null, 18552 currentTarget: v.thatReturnsNull, 18553 eventPhase: null, 18554 bubbles: null, 18555 cancelable: null, 18556 timeStamp: function(a) { 18557 return a.timeStamp || Date.now(); 18558 }, 18559 defaultPrevented: null, 18560 isTrusted: null 18561 }; 18562 p(H.prototype, { 18563 preventDefault: function() { 18564 this.defaultPrevented = !0; 18565 var a = this.nativeEvent; 18566 a && (a.preventDefault ? a.preventDefault() : "unknown" != typeof a.returnValue && (a.returnValue = !1), 18567 this.isDefaultPrevented = v.thatReturnsTrue); 18568 }, 18569 stopPropagation: function() { 18570 var a = this.nativeEvent; 18571 a && (a.stopPropagation ? a.stopPropagation() : "unknown" != typeof a.cancelBubble && (a.cancelBubble = !0), 18572 this.isPropagationStopped = v.thatReturnsTrue); 18573 }, 18574 persist: function() { 18575 this.isPersistent = v.thatReturnsTrue; 18576 }, 18577 isPersistent: v.thatReturnsFalse, 18578 destructor: function() { 18579 var b, a = this.constructor.Interface; 18580 for (b in a) this[b] = null; 18581 for (a = 0; a < ob.length; a++) this[ob[a]] = null; 18582 } 18583 }), H.Interface = pb, H.extend = function(a) { 18584 function b() {} 18585 function c() { 18586 return d.apply(this, arguments); 18587 } 18588 var d = this; 18589 b.prototype = d.prototype; 18590 var e = new b(); 18591 return p(e, c.prototype), c.prototype = e, c.prototype.constructor = c, c.Interface = p({}, d.Interface, a), 18592 c.extend = d.extend, qb(c), c; 18593 }, qb(H); 18594 var tb = H.extend({ 18595 data: null 18596 }), ub = H.extend({ 18597 data: null 18598 }), vb = [ 9, 13, 27, 32 ], wb = m.canUseDOM && "CompositionEvent" in window, xb = null; 18599 m.canUseDOM && "documentMode" in document && (xb = document.documentMode); 18600 var yb = m.canUseDOM && "TextEvent" in window && !xb, zb = m.canUseDOM && (!wb || xb && 8 < xb && 11 >= xb), Ab = String.fromCharCode(32), Bb = { 18601 beforeInput: { 18602 phasedRegistrationNames: { 18603 bubbled: "onBeforeInput", 18604 captured: "onBeforeInputCapture" 18605 }, 18606 dependencies: [ "compositionend", "keypress", "textInput", "paste" ] 18607 }, 18608 compositionEnd: { 18609 phasedRegistrationNames: { 18610 bubbled: "onCompositionEnd", 18611 captured: "onCompositionEndCapture" 18612 }, 18613 dependencies: "blur compositionend keydown keypress keyup mousedown".split(" ") 18614 }, 18615 compositionStart: { 18616 phasedRegistrationNames: { 18617 bubbled: "onCompositionStart", 18618 captured: "onCompositionStartCapture" 18619 }, 18620 dependencies: "blur compositionstart keydown keypress keyup mousedown".split(" ") 18621 }, 18622 compositionUpdate: { 18623 phasedRegistrationNames: { 18624 bubbled: "onCompositionUpdate", 18625 captured: "onCompositionUpdateCapture" 18626 }, 18627 dependencies: "blur compositionupdate keydown keypress keyup mousedown".split(" ") 18628 } 18629 }, Cb = !1, Fb = !1, Ib = { 18630 eventTypes: Bb, 18631 extractEvents: function(a, b, c, d) { 18632 var e = void 0, f = void 0; 18633 if (wb) b: { 18634 switch (a) { 18635 case "compositionstart": 18636 e = Bb.compositionStart; 18637 break b; 18638 18639 case "compositionend": 18640 e = Bb.compositionEnd; 18641 break b; 18642 18643 case "compositionupdate": 18644 e = Bb.compositionUpdate; 18645 break b; 18646 } 18647 e = void 0; 18648 } else Fb ? Db(a, c) && (e = Bb.compositionEnd) : "keydown" === a && 229 === c.keyCode && (e = Bb.compositionStart); 18649 return e ? (zb && (Fb || e !== Bb.compositionStart ? e === Bb.compositionEnd && Fb && (f = mb()) : (G._root = d, 18650 G._startText = nb(), Fb = !0)), e = tb.getPooled(e, b, c, d), f ? e.data = f : null !== (f = Eb(c)) && (e.data = f), 18651 Ya(e), f = e) : f = null, (a = yb ? Gb(a, c) : Hb(a, c)) ? (b = ub.getPooled(Bb.beforeInput, b, c, d), 18652 b.data = a, Ya(b)) : b = null, null === f ? b : null === b ? f : [ f, b ]; 18653 } 18654 }, Jb = null, Kb = { 18655 injectFiberControlledHostComponent: function(a) { 18656 Jb = a; 18657 } 18658 }, Lb = null, Mb = null, Rb = { 18659 injection: Kb, 18660 enqueueStateRestore: Ob, 18661 needsStateRestore: Pb, 18662 restoreStateIfNeeded: Qb 18663 }, Vb = !1, Xb = { 18664 color: !0, 18665 date: !0, 18666 datetime: !0, 18667 "datetime-local": !0, 18668 email: !0, 18669 month: !0, 18670 number: !0, 18671 password: !0, 18672 range: !0, 18673 search: !0, 18674 tel: !0, 18675 text: !0, 18676 time: !0, 18677 url: !0, 18678 week: !0 18679 }, 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 = {}; 18680 "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a) { 18681 K[a] = new J(a, 0, !1, a, null); 18682 }), [ [ "acceptCharset", "accept-charset" ], [ "className", "class" ], [ "htmlFor", "for" ], [ "httpEquiv", "http-equiv" ] ].forEach(function(a) { 18683 var b = a[0]; 18684 K[b] = new J(b, 1, !1, a[1], null); 18685 }), [ "contentEditable", "draggable", "spellCheck", "value" ].forEach(function(a) { 18686 K[a] = new J(a, 2, !1, a.toLowerCase(), null); 18687 }), [ "autoReverse", "externalResourcesRequired", "preserveAlpha" ].forEach(function(a) { 18688 K[a] = new J(a, 2, !1, a, null); 18689 }), "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) { 18690 K[a] = new J(a, 3, !1, a.toLowerCase(), null); 18691 }), [ "checked", "multiple", "muted", "selected" ].forEach(function(a) { 18692 K[a] = new J(a, 3, !0, a.toLowerCase(), null); 18693 }), [ "capture", "download" ].forEach(function(a) { 18694 K[a] = new J(a, 4, !1, a.toLowerCase(), null); 18695 }), [ "cols", "rows", "size", "span" ].forEach(function(a) { 18696 K[a] = new J(a, 6, !1, a.toLowerCase(), null); 18697 }), [ "rowSpan", "start" ].forEach(function(a) { 18698 K[a] = new J(a, 5, !1, a.toLowerCase(), null); 18699 }); 18700 var Cc = /[\-:]([a-z])/g; 18701 "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) { 18702 var b = a.replace(Cc, Dc); 18703 K[b] = new J(b, 1, !1, a, null); 18704 }), "xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a) { 18705 var b = a.replace(Cc, Dc); 18706 K[b] = new J(b, 1, !1, a, "http://www.w3.org/1999/xlink);; 18707 }), [ "xml:base", "xml:lang", "xml:space" ].forEach(function(a) { 18708 var b = a.replace(Cc, Dc); 18709 K[b] = new J(b, 1, !1, a, "http://www.w3.org/xml/1998/namespace”); 18710 }), K.tabIndex = new J("tabIndex", 1, !1, "tabindex", null); 18711 var Mc = { 18712 change: { 18713 phasedRegistrationNames: { 18714 bubbled: "onChange", 18715 captured: "onChangeCapture" 18716 }, 18717 dependencies: "blur change click focus input keydown keyup selectionchange".split(" ") 18718 } 18719 }, Oc = null, Pc = null, Tc = !1; 18720 m.canUseDOM && (Tc = $b("input") && (!document.documentMode || 9 < document.documentMode)); 18721 var $c = { 18722 eventTypes: Mc, 18723 _isInputEventSupported: Tc, 18724 extractEvents: function(a, b, c, d) { 18725 var e = b ? Oa(b) : window, f = void 0, g = void 0, h = e.nodeName && e.nodeName.toLowerCase(); 18726 if ("select" === h || "input" === h && "file" === e.type ? f = Sc : Yb(e) ? Tc ? f = Zc : (f = Xc, 18727 g = Wc) : (h = e.nodeName) && "input" === h.toLowerCase() && ("checkbox" === e.type || "radio" === e.type) && (f = Yc), 18728 f && (f = f(a, b))) return Nc(f, c, d); 18729 g && g(a, e, b), "blur" === a && null != b && (a = b._wrapperState || e._wrapperState) && a.controlled && "number" === e.type && Kc(e, "number", e.value); 18730 } 18731 }, ad = H.extend({ 18732 view: null, 18733 detail: null 18734 }), bd = { 18735 Alt: "altKey", 18736 Control: "ctrlKey", 18737 Meta: "metaKey", 18738 Shift: "shiftKey" 18739 }, ed = ad.extend({ 18740 screenX: null, 18741 screenY: null, 18742 clientX: null, 18743 clientY: null, 18744 pageX: null, 18745 pageY: null, 18746 ctrlKey: null, 18747 shiftKey: null, 18748 altKey: null, 18749 metaKey: null, 18750 getModifierState: dd, 18751 button: null, 18752 buttons: null, 18753 relatedTarget: function(a) { 18754 return a.relatedTarget || (a.fromElement === a.srcElement ? a.toElement : a.fromElement); 18755 } 18756 }), fd = ed.extend({ 18757 pointerId: null, 18758 width: null, 18759 height: null, 18760 pressure: null, 18761 tiltX: null, 18762 tiltY: null, 18763 pointerType: null, 18764 isPrimary: null 18765 }), gd = { 18766 mouseEnter: { 18767 registrationName: "onMouseEnter", 18768 dependencies: [ "mouseout", "mouseover" ] 18769 }, 18770 mouseLeave: { 18771 registrationName: "onMouseLeave", 18772 dependencies: [ "mouseout", "mouseover" ] 18773 }, 18774 pointerEnter: { 18775 registrationName: "onPointerEnter", 18776 dependencies: [ "pointerout", "pointerover" ] 18777 }, 18778 pointerLeave: { 18779 registrationName: "onPointerLeave", 18780 dependencies: [ "pointerout", "pointerover" ] 18781 } 18782 }, hd = { 18783 eventTypes: gd, 18784 extractEvents: function(a, b, c, d) { 18785 var e = "mouseover" === a || "pointerover" === a, f = "mouseout" === a || "pointerout" === a; 18786 if (e && (c.relatedTarget || c.fromElement) || !f && !e) return null; 18787 if (e = d.window === d ? d : (e = d.ownerDocument) ? e.defaultView || e.parentWindow : window, 18788 f ? (f = b, b = (b = c.relatedTarget || c.toElement) ? Na(b) : null) : f = null, 18789 f === b) return null; 18790 var g = void 0, h = void 0, k = void 0, n = void 0; 18791 return "mouseout" === a || "mouseover" === a ? (g = ed, h = gd.mouseLeave, k = gd.mouseEnter, 18792 n = "mouse") : "pointerout" !== a && "pointerover" !== a || (g = fd, h = gd.pointerLeave, 18793 k = gd.pointerEnter, n = "pointer"), a = null == f ? e : Oa(f), e = null == b ? e : Oa(b), 18794 h = g.getPooled(h, f, c, d), h.type = n + "leave", h.target = a, h.relatedTarget = e, 18795 c = g.getPooled(k, b, c, d), c.type = n + "enter", c.target = e, c.relatedTarget = a, 18796 Za(h, c, f, b), [ h, c ]; 18797 } 18798 }, nd = H.extend({ 18799 animationName: null, 18800 elapsedTime: null, 18801 pseudoElement: null 18802 }), od = H.extend({ 18803 clipboardData: function(a) { 18804 return "clipboardData" in a ? a.clipboardData : window.clipboardData; 18805 } 18806 }), pd = ad.extend({ 18807 relatedTarget: null 18808 }), rd = { 18809 Esc: "Escape", 18810 Spacebar: " ", 18811 Left: "ArrowLeft", 18812 Up: "ArrowUp", 18813 Right: "ArrowRight", 18814 Down: "ArrowDown", 18815 Del: "Delete", 18816 Win: "OS", 18817 Menu: "ContextMenu", 18818 Apps: "ContextMenu", 18819 Scroll: "ScrollLock", 18820 MozPrintableKey: "Unidentified" 18821 }, sd = { 18822 8: "Backspace", 18823 9: "Tab", 18824 12: "Clear", 18825 13: "Enter", 18826 16: "Shift", 18827 17: "Control", 18828 18: "Alt", 18829 19: "Pause", 18830 20: "CapsLock", 18831 27: "Escape", 18832 32: " ", 18833 33: "PageUp", 18834 34: "PageDown", 18835 35: "End", 18836 36: "Home", 18837 37: "ArrowLeft", 18838 38: "ArrowUp", 18839 39: "ArrowRight", 18840 40: "ArrowDown", 18841 45: "Insert", 18842 46: "Delete", 18843 112: "F1", 18844 113: "F2", 18845 114: "F3", 18846 115: "F4", 18847 116: "F5", 18848 117: "F6", 18849 118: "F7", 18850 119: "F8", 18851 120: "F9", 18852 121: "F10", 18853 122: "F11", 18854 123: "F12", 18855 144: "NumLock", 18856 145: "ScrollLock", 18857 224: "Meta" 18858 }, td = ad.extend({ 18859 key: function(a) { 18860 if (a.key) { 18861 var b = rd[a.key] || a.key; 18862 if ("Unidentified" !== b) return b; 18863 } 18864 return "keypress" === a.type ? (a = qd(a), 13 === a ? "Enter" : String.fromCharCode(a)) : "keydown" === a.type || "keyup" === a.type ? sd[a.keyCode] || "Unidentified" : ""; 18865 }, 18866 location: null, 18867 ctrlKey: null, 18868 shiftKey: null, 18869 altKey: null, 18870 metaKey: null, 18871 repeat: null, 18872 locale: null, 18873 getModifierState: dd, 18874 charCode: function(a) { 18875 return "keypress" === a.type ? qd(a) : 0; 18876 }, 18877 keyCode: function(a) { 18878 return "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0; 18879 }, 18880 which: function(a) { 18881 return "keypress" === a.type ? qd(a) : "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0; 18882 } 18883 }), ud = ed.extend({ 18884 dataTransfer: null 18885 }), vd = ad.extend({ 18886 touches: null, 18887 targetTouches: null, 18888 changedTouches: null, 18889 altKey: null, 18890 metaKey: null, 18891 ctrlKey: null, 18892 shiftKey: null, 18893 getModifierState: dd 18894 }), wd = H.extend({ 18895 propertyName: null, 18896 elapsedTime: null, 18897 pseudoElement: null 18898 }), xd = ed.extend({ 18899 deltaX: function(a) { 18900 return "deltaX" in a ? a.deltaX : "wheelDeltaX" in a ? -a.wheelDeltaX : 0; 18901 }, 18902 deltaY: function(a) { 18903 return "deltaY" in a ? a.deltaY : "wheelDeltaY" in a ? -a.wheelDeltaY : "wheelDelta" in a ? -a.wheelDelta : 0; 18904 }, 18905 deltaZ: null, 18906 deltaMode: null 18907 }), 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 = {}; 18908 [ [ "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) { 18909 Bd(a, !0); 18910 }), yd.forEach(function(a) { 18911 Bd(a, !1); 18912 }); 18913 var Cd = { 18914 eventTypes: zd, 18915 isInteractiveTopLevelEventType: function(a) { 18916 return void 0 !== (a = Ad[a]) && !0 === a.isInteractive; 18917 }, 18918 extractEvents: function(a, b, c, d) { 18919 var e = Ad[a]; 18920 if (!e) return null; 18921 switch (a) { 18922 case "keypress": 18923 if (0 === qd(c)) return null; 18924 18925 case "keydown": 18926 case "keyup": 18927 a = td; 18928 break; 18929 18930 case "blur": 18931 case "focus": 18932 a = pd; 18933 break; 18934 18935 case "click": 18936 if (2 === c.button) return null; 18937 18938 case "dblclick": 18939 case "mousedown": 18940 case "mousemove": 18941 case "mouseup": 18942 case "mouseout": 18943 case "mouseover": 18944 case "contextmenu": 18945 a = ed; 18946 break; 18947 18948 case "drag": 18949 case "dragend": 18950 case "dragenter": 18951 case "dragexit": 18952 case "dragleave": 18953 case "dragover": 18954 case "dragstart": 18955 case "drop": 18956 a = ud; 18957 break; 18958 18959 case "touchcancel": 18960 case "touchend": 18961 case "touchmove": 18962 case "touchstart": 18963 a = vd; 18964 break; 18965 18966 case fb: 18967 case gb: 18968 case hb: 18969 a = nd; 18970 break; 18971 18972 case ib: 18973 a = wd; 18974 break; 18975 18976 case "scroll": 18977 a = ad; 18978 break; 18979 18980 case "wheel": 18981 a = xd; 18982 break; 18983 18984 case "copy": 18985 case "cut": 18986 case "paste": 18987 a = od; 18988 break; 18989 18990 case "gotpointercapture": 18991 case "lostpointercapture": 18992 case "pointercancel": 18993 case "pointerdown": 18994 case "pointermove": 18995 case "pointerout": 18996 case "pointerover": 18997 case "pointerup": 18998 a = fd; 18999 break; 19000 19001 default: 19002 a = H; 19003 } 19004 return b = a.getPooled(e, b, c, d), Ya(b), b; 19005 } 19006 }, Dd = Cd.isInteractiveTopLevelEventType, Ed = [], Gd = !0, Md = { 19007 get _enabled() { 19008 return Gd; 19009 }, 19010 setEnabled: Id, 19011 isEnabled: function() { 19012 return Gd; 19013 }, 19014 trapBubbledEvent: L, 19015 trapCapturedEvent: Ld, 19016 dispatchEvent: Kd 19017 }, Nd = {}, Od = 0, Pd = "_reactListenersID" + ("" + Math.random()).slice(2), Ud = m.canUseDOM && "documentMode" in document && 11 >= document.documentMode, Vd = { 19018 select: { 19019 phasedRegistrationNames: { 19020 bubbled: "onSelect", 19021 captured: "onSelectCapture" 19022 }, 19023 dependencies: "blur contextmenu focus keydown keyup mousedown mouseup selectionchange".split(" ") 19024 } 19025 }, Wd = null, Xd = null, Yd = null, Zd = !1, ae = { 19026 eventTypes: Vd, 19027 extractEvents: function(a, b, c, d) { 19028 var f, e = d.window === d ? d.document : 9 === d.nodeType ? d : d.ownerDocument; 19029 if (!(f = !e)) { 19030 a: { 19031 e = Qd(e), f = sa.onSelect; 19032 for (var g = 0; g < f.length; g++) { 19033 var h = f[g]; 19034 if (!e.hasOwnProperty(h) || !e[h]) { 19035 e = !1; 19036 break a; 19037 } 19038 } 19039 e = !0; 19040 } 19041 f = !e; 19042 } 19043 if (f) return null; 19044 switch (e = b ? Oa(b) : window, a) { 19045 case "focus": 19046 (Yb(e) || "true" === e.contentEditable) && (Wd = e, Xd = b, Yd = null); 19047 break; 19048 19049 case "blur": 19050 Yd = Xd = Wd = null; 19051 break; 19052 19053 case "mousedown": 19054 Zd = !0; 19055 break; 19056 19057 case "contextmenu": 19058 case "mouseup": 19059 return Zd = !1, $d(c, d); 19060 19061 case "selectionchange": 19062 if (Ud) break; 19063 19064 case "keydown": 19065 case "keyup": 19066 return $d(c, d); 19067 } 19068 return null; 19069 } 19070 }; 19071 Ga.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")), 19072 wa = Qa.getFiberCurrentPropsFromNode, xa = Qa.getInstanceFromNode, ya = Qa.getNodeFromInstance, 19073 Ga.injectEventPluginsByName({ 19074 SimpleEventPlugin: Cd, 19075 EnterLeaveEventPlugin: hd, 19076 ChangeEventPlugin: $c, 19077 SelectEventPlugin: ae, 19078 BeforeInputEventPlugin: Ib 19079 }); 19080 var be = void 0; 19081 be = "object" == typeof performance && "function" == typeof performance.now ? function() { 19082 return performance.now(); 19083 } : function() { 19084 return Date.now(); 19085 }; 19086 var ce = void 0, de = void 0; 19087 if (m.canUseDOM) { 19088 var ee = [], fe = 0, ge = {}, he = -1, ie = !1, je = !1, ke = 0, le = 33, me = 33, ne = { 19089 didTimeout: !1, 19090 timeRemaining: function() { 19091 var a = ke - be(); 19092 return 0 < a ? a : 0; 19093 } 19094 }, oe = function(a, b) { 19095 if (ge[b]) try { 19096 a(ne); 19097 } finally { 19098 delete ge[b]; 19099 } 19100 }, pe = "__reactIdleCallback$" + Math.random().toString(36).slice(2); 19101 window.addEventListener("message", function(a) { 19102 if (a.source === window && a.data === pe && (ie = !1, 0 !== ee.length)) { 19103 if (0 !== ee.length && (a = be(), !(-1 === he || he > a))) { 19104 he = -1, ne.didTimeout = !0; 19105 for (var b = 0, c = ee.length; b < c; b++) { 19106 var d = ee[b], e = d.timeoutTime; 19107 -1 !== e && e <= a ? oe(d.scheduledCallback, d.callbackId) : -1 !== e && (-1 === he || e < he) && (he = e); 19108 } 19109 } 19110 for (a = be(); 0 < ke - a && 0 < ee.length; ) a = ee.shift(), ne.didTimeout = !1, 19111 oe(a.scheduledCallback, a.callbackId), a = be(); 19112 0 < ee.length && !je && (je = !0, requestAnimationFrame(qe)); 19113 } 19114 }, !1); 19115 var qe = function(a) { 19116 je = !1; 19117 var b = a - ke + me; 19118 b < me && le < me ? (8 > b && (b = 8), me = b < le ? le : b) : le = b, ke = a + me, 19119 ie || (ie = !0, window.postMessage(pe, "*")); 19120 }; 19121 ce = function(a, b) { 19122 var c = -1; 19123 return null != b && "number" == typeof b.timeout && (c = be() + b.timeout), (-1 === he || -1 !== c && c < he) && (he = c), 19124 fe++, b = fe, ee.push({ 19125 scheduledCallback: a, 19126 callbackId: b, 19127 timeoutTime: c 19128 }), ge[b] = !0, je || (je = !0, requestAnimationFrame(qe)), b; 19129 }, de = function(a) { 19130 delete ge[a]; 19131 }; 19132 } else { 19133 var re = 0, se = {}; 19134 ce = function(a) { 19135 var b = re++, c = setTimeout(function() { 19136 a({ 19137 timeRemaining: function() { 19138 return 1 / 0; 19139 }, 19140 didTimeout: !1 19141 }); 19142 }); 19143 return se[b] = c, b; 19144 }, de = function(a) { 19145 var b = se[a]; 19146 delete se[a], clearTimeout(b); 19147 }; 19148 } 19149 var Be = { 19150 html: "http://www.w3.org/1999/xhtml“, 19151 mathml: "http://www.w3.org/1998/math/mathml“, 19152 svg: "http://www.w3.org/2000/svg“ 19153 }, Ee = void 0, Fe = function(a) { 19154 return "undefined" != typeof MSApp && MSApp.execUnsafeLocalFunction ? function(b, c, d, e) { 19155 MSApp.execUnsafeLocalFunction(function() { 19156 return a(b, c); 19157 }); 19158 } : a; 19159 }(function(a, b) { 19160 if (a.namespaceURI !== Be.svg || "innerHTML" in a) a.innerHTML = b; else { 19161 for (Ee = Ee || document.createElement("div"), Ee.innerHTML = "<svg>" + b + "</svg>", 19162 b = Ee.firstChild; a.firstChild; ) a.removeChild(a.firstChild); 19163 for (;b.firstChild; ) a.appendChild(b.firstChild); 19164 } 19165 }), He = { 19166 animationIterationCount: !0, 19167 borderImageOutset: !0, 19168 borderImageSlice: !0, 19169 borderImageWidth: !0, 19170 boxFlex: !0, 19171 boxFlexGroup: !0, 19172 boxOrdinalGroup: !0, 19173 columnCount: !0, 19174 columns: !0, 19175 flex: !0, 19176 flexGrow: !0, 19177 flexPositive: !0, 19178 flexShrink: !0, 19179 flexNegative: !0, 19180 flexOrder: !0, 19181 gridRow: !0, 19182 gridRowEnd: !0, 19183 gridRowSpan: !0, 19184 gridRowStart: !0, 19185 gridColumn: !0, 19186 gridColumnEnd: !0, 19187 gridColumnSpan: !0, 19188 gridColumnStart: !0, 19189 fontWeight: !0, 19190 lineClamp: !0, 19191 lineHeight: !0, 19192 opacity: !0, 19193 order: !0, 19194 orphans: !0, 19195 tabSize: !0, 19196 widows: !0, 19197 zIndex: !0, 19198 zoom: !0, 19199 fillOpacity: !0, 19200 floodOpacity: !0, 19201 stopOpacity: !0, 19202 strokeDasharray: !0, 19203 strokeDashoffset: !0, 19204 strokeMiterlimit: !0, 19205 strokeOpacity: !0, 19206 strokeWidth: !0 19207 }, Ie = [ "Webkit", "ms", "Moz", "O" ]; 19208 Object.keys(He).forEach(function(a) { 19209 Ie.forEach(function(b) { 19210 b = b + a.charAt(0).toUpperCase() + a.substring(1), He[b] = He[a]; 19211 }); 19212 }); 19213 var Ke = p({ 19214 menuitem: !0 19215 }, { 19216 area: !0, 19217 base: !0, 19218 br: !0, 19219 col: !0, 19220 embed: !0, 19221 hr: !0, 19222 img: !0, 19223 input: !0, 19224 keygen: !0, 19225 link: !0, 19226 meta: !0, 19227 param: !0, 19228 source: !0, 19229 track: !0, 19230 wbr: !0 19231 }), Ne = v.thatReturns(""), We = { 19232 createElement: Pe, 19233 createTextNode: Qe, 19234 setInitialProperties: Re, 19235 diffProperties: Se, 19236 updateProperties: Te, 19237 diffHydratedProperties: Ue, 19238 diffHydratedText: Ve, 19239 warnForUnmatchedText: function() {}, 19240 warnForDeletedHydratableElement: function() {}, 19241 warnForDeletedHydratableText: function() {}, 19242 warnForInsertedHydratedElement: function() {}, 19243 warnForInsertedHydratedText: function() {}, 19244 restoreControlledState: function(a, b, c) { 19245 switch (b) { 19246 case "input": 19247 if (Jc(a, c), b = c.name, "radio" === c.type && null != b) { 19248 for (c = a; c.parentNode; ) c = c.parentNode; 19249 for (c = c.querySelectorAll("input[name=" + JSON.stringify("" + b) + '][type="radio"]'), 19250 b = 0; b < c.length; b++) { 19251 var d = c[b]; 19252 if (d !== a && d.form === a.form) { 19253 var e = Pa(d); 19254 e || A("90"), dc(d), Jc(d, e); 19255 } 19256 } 19257 } 19258 break; 19259 19260 case "textarea": 19261 ze(a, c); 19262 break; 19263 19264 case "select": 19265 null != (b = c.value) && ve(a, !!c.multiple, b, !1); 19266 } 19267 } 19268 }, Xe = null, Ye = null, af = be, bf = ce, cf = de; 19269 new Set(); 19270 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 = { 19271 isMounted: function(a) { 19272 return !!(a = a._reactInternalFiber) && 2 === id(a); 19273 }, 19274 enqueueSetState: function(a, b, c) { 19275 a = a._reactInternalFiber; 19276 var d = ig(); 19277 d = jg(d, a); 19278 var e = Kf(d); 19279 e.payload = b, void 0 !== c && null !== c && (e.callback = c), Mf(a, e, d), kg(a, d); 19280 }, 19281 enqueueReplaceState: function(a, b, c) { 19282 a = a._reactInternalFiber; 19283 var d = ig(); 19284 d = jg(d, a); 19285 var e = Kf(d); 19286 e.tag = 1, e.payload = b, void 0 !== c && null !== c && (e.callback = c), Mf(a, e, d), 19287 kg(a, d); 19288 }, 19289 enqueueForceUpdate: function(a, b) { 19290 a = a._reactInternalFiber; 19291 var c = ig(); 19292 c = jg(c, a); 19293 var d = Kf(c); 19294 d.tag = 2, void 0 !== b && null !== b && (d.callback = b), Mf(a, d, c), kg(a, c); 19295 } 19296 }, pg = Array.isArray, tg = sg(!0), ug = sg(!1), vg = null, wg = null, xg = !1, Pg = void 0, Qg = void 0, Rg = void 0; 19297 Pg = function() {}, Qg = function(a, b, c) { 19298 (b.updateQueue = c) && Lg(b); 19299 }, Rg = function(a, b, c, d) { 19300 c !== d && Lg(b); 19301 }; 19302 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 = { 19303 updateContainerAtExpirationTime: bi, 19304 createContainer: function(a, b, c) { 19305 return Af(a, b, c); 19306 }, 19307 updateContainer: di, 19308 flushRoot: Wh, 19309 requestWork: wh, 19310 computeUniqueAsyncExpiration: yh, 19311 batchedUpdates: Yh, 19312 unbatchedUpdates: Zh, 19313 deferredUpdates: Dh, 19314 syncUpdates: Eh, 19315 interactiveUpdates: function(a, b, c) { 19316 if (zh) return a(b, c); 19317 Z || W || 0 === Ah || (Uh(Ah, !1, null), Ah = 0); 19318 var d = zh, e = Z; 19319 Z = zh = !0; 19320 try { 19321 return a(b, c); 19322 } finally { 19323 zh = d, (Z = e) || W || Sh(); 19324 } 19325 }, 19326 flushInteractiveUpdates: function() { 19327 W || 0 === Ah || (Uh(Ah, !1, null), Ah = 0); 19328 }, 19329 flushControlled: ai, 19330 flushSync: $h, 19331 getPublicRootInstance: ei, 19332 findHostInstance: ci, 19333 findHostInstanceWithNoPortals: function(a) { 19334 return a = md(a), null === a ? null : a.stateNode; 19335 }, 19336 injectIntoDevTools: fi 19337 }; 19338 Kb.injectFiberControlledHostComponent(We), ji.prototype.render = function(a) { 19339 this._defer || A("250"), this._hasChildren = !0, this._children = a; 19340 var b = this._root._internalRoot, c = this._expirationTime, d = new ki(); 19341 return bi(a, b, null, c, d._onCommit), d; 19342 }, ji.prototype.then = function(a) { 19343 if (this._didComplete) a(); else { 19344 var b = this._callbacks; 19345 null === b && (b = this._callbacks = []), b.push(a); 19346 } 19347 }, ji.prototype.commit = function() { 19348 var a = this._root._internalRoot, b = a.firstBatch; 19349 if (this._defer && null !== b || A("251"), this._hasChildren) { 19350 var c = this._expirationTime; 19351 if (b !== this) { 19352 this._hasChildren && (c = this._expirationTime = b._expirationTime, this.render(this._children)); 19353 for (var d = null, e = b; e !== this; ) d = e, e = e._next; 19354 null === d && A("251"), d._next = e._next, this._next = b, a.firstBatch = this; 19355 } 19356 this._defer = !1, Wh(a, c), b = this._next, this._next = null, b = a.firstBatch = b, 19357 null !== b && b._hasChildren && b.render(b._children); 19358 } else this._next = null, this._defer = !1; 19359 }, ji.prototype._onComplete = function() { 19360 if (!this._didComplete) { 19361 this._didComplete = !0; 19362 var a = this._callbacks; 19363 if (null !== a) for (var b = 0; b < a.length; b++) (0, a[b])(); 19364 } 19365 }, ki.prototype.then = function(a) { 19366 if (this._didCommit) a(); else { 19367 var b = this._callbacks; 19368 null === b && (b = this._callbacks = []), b.push(a); 19369 } 19370 }, ki.prototype._onCommit = function() { 19371 if (!this._didCommit) { 19372 this._didCommit = !0; 19373 var a = this._callbacks; 19374 if (null !== a) for (var b = 0; b < a.length; b++) { 19375 var c = a[b]; 19376 "function" != typeof c && A("191", c), c(); 19377 } 19378 } 19379 }, li.prototype.render = function(a, b) { 19380 var c = this._internalRoot, d = new ki(); 19381 return b = void 0 === b ? null : b, null !== b && d.then(b), di(a, c, null, d._onCommit), 19382 d; 19383 }, li.prototype.unmount = function(a) { 19384 var b = this._internalRoot, c = new ki(); 19385 return a = void 0 === a ? null : a, null !== a && c.then(a), di(null, b, null, c._onCommit), 19386 c; 19387 }, li.prototype.legacy_renderSubtreeIntoContainer = function(a, b, c) { 19388 var d = this._internalRoot, e = new ki(); 19389 return c = void 0 === c ? null : c, null !== c && e.then(c), di(b, d, a, e._onCommit), 19390 e; 19391 }, li.prototype.createBatch = function() { 19392 var a = new ji(this), b = a._expirationTime, c = this._internalRoot, d = c.firstBatch; 19393 if (null === d) c.firstBatch = a, a._next = null; else { 19394 for (c = null; null !== d && d._expirationTime <= b; ) c = d, d = d._next; 19395 a._next = d, null !== c && (c._next = a); 19396 } 19397 return a; 19398 }, Sb = gi.batchedUpdates, Tb = gi.interactiveUpdates, Ub = gi.flushInteractiveUpdates; 19399 var qi = { 19400 createPortal: pi, 19401 findDOMNode: function(a) { 19402 return null == a ? null : 1 === a.nodeType ? a : ci(a); 19403 }, 19404 hydrate: function(a, b, c) { 19405 return oi(null, a, b, !0, c); 19406 }, 19407 render: function(a, b, c) { 19408 return oi(null, a, b, !1, c); 19409 }, 19410 unstable_renderSubtreeIntoContainer: function(a, b, c, d) { 19411 return (null == a || void 0 === a._reactInternalFiber) && A("38"), oi(a, b, c, !1, d); 19412 }, 19413 unmountComponentAtNode: function(a) { 19414 return mi(a) || A("40"), !!a._reactRootContainer && (Zh(function() { 19415 oi(null, null, a, !1, function() { 19416 a._reactRootContainer = null; 19417 }); 19418 }), !0); 19419 }, 19420 unstable_createPortal: function() { 19421 return pi.apply(void 0, arguments); 19422 }, 19423 unstable_batchedUpdates: Yh, 19424 unstable_deferredUpdates: Dh, 19425 flushSync: $h, 19426 unstable_flushControlled: ai, 19427 __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { 19428 EventPluginHub: Ka, 19429 EventPluginRegistry: va, 19430 EventPropagators: $a, 19431 ReactControlledComponent: Rb, 19432 ReactDOMComponentTree: Qa, 19433 ReactDOMEventListener: Md 19434 }, 19435 unstable_createRoot: function(a, b) { 19436 return new li(a, !0, null != b && !0 === b.hydrate); 19437 } 19438 }; 19439 fi({ 19440 findFiberByHostInstance: Na, 19441 bundleType: 0, 19442 version: "16.4.0", 19443 rendererPackageName: "react-dom" 19444 }); 19445 var vi = { 19446 default: qi 19447 }, wi = vi && qi || vi; 19448 module.exports = wi.default ? wi.default : wi; 19449 }, function(module, exports, __webpack_require__) { 19450 "use strict"; 19451 function isTextNode(object) { 19452 return isNode(object) && 3 == object.nodeType; 19453 } 19454 var isNode = __webpack_require__(380); 19455 module.exports = isTextNode; 19456 }, function(module, exports, __webpack_require__) { 19457 "use strict"; 19458 function isNode(object) { 19459 var doc = object ? object.ownerDocument || object : document, defaultView = doc.defaultView || window; 19460 return !(!object || !("function" == typeof defaultView.Node ? object instanceof defaultView.Node : "object" == typeof object && "number" == typeof object.nodeType && "string" == typeof object.nodeName)); 19461 } 19462 module.exports = isNode; 19463 }, function(module, exports, __webpack_require__) { 19464 "use strict"; 19465 (function(process) { 19466 "production" !== process.env.NODE_ENV && function() { 19467 function recomputePluginOrdering() { 19468 if (eventPluginOrder) for (var pluginName in namesToPlugins) { 19469 var pluginModule = namesToPlugins[pluginName], pluginIndex = eventPluginOrder.indexOf(pluginName); 19470 if (pluginIndex > -1 || invariant(!1, "EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `)) + ("`" + (`%s` + "`"))) + ((`.", pluginName), 19471 !plugins[pluginIndex]) { 19472 pluginModule.extractEvents || invariant(!1, "EventPluginRegistry: Event plugins must implement an ` + ("`" + `extractEvents`)) + ("`" + (` method, but ` + "`"))))) + ((((`%s` + ("`" + ` does not.", pluginName), 19473 plugins[pluginIndex] = pluginModule; 19474 var publishedEvents = pluginModule.eventTypes; 19475 for (var eventName in publishedEvents) publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName) || invariant(!1, "EventPluginRegistry: Failed to publish event `)) + ("`" + (`%s` + "`"))) + ((` for plugin ` + ("`" + `%s`)) + ("`" + (`.", eventName, pluginName); 19476 } 19477 } 19478 } 19479 function publishEventForPlugin(dispatchConfig, pluginModule, eventName) { 19480 eventNameDispatchConfigs.hasOwnProperty(eventName) && invariant(!1, "EventPluginHub: More than one plugin attempted to publish the same event name, ` + "`")))) + (((`%s` + ("`" + `.", eventName), 19481 eventNameDispatchConfigs[eventName] = dispatchConfig; 19482 var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; 19483 if (phasedRegistrationNames) { 19484 for (var phaseName in phasedRegistrationNames) if (phasedRegistrationNames.hasOwnProperty(phaseName)) { 19485 var phasedRegistrationName = phasedRegistrationNames[phaseName]; 19486 publishRegistrationName(phasedRegistrationName, pluginModule, eventName); 19487 } 19488 return !0; 19489 } 19490 return !!dispatchConfig.registrationName && (publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName), 19491 !0); 19492 } 19493 function publishRegistrationName(registrationName, pluginModule, eventName) { 19494 registrationNameModules[registrationName] && invariant(!1, "EventPluginHub: More than one plugin attempted to publish the same registration name, `)) + ("`" + (`%s` + "`"))) + ((`.", registrationName), 19495 registrationNameModules[registrationName] = pluginModule, registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies; 19496 var lowerCasedName = registrationName.toLowerCase(); 19497 possibleRegistrationNames[lowerCasedName] = registrationName, "onDoubleClick" === registrationName && (possibleRegistrationNames.ondblclick = registrationName); 19498 } 19499 function injectEventPluginOrder(injectedEventPluginOrder) { 19500 eventPluginOrder && invariant(!1, "EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React."), 19501 eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder), recomputePluginOrdering(); 19502 } 19503 function injectEventPluginsByName(injectedNamesToPlugins) { 19504 var isOrderingDirty = !1; 19505 for (var pluginName in injectedNamesToPlugins) if (injectedNamesToPlugins.hasOwnProperty(pluginName)) { 19506 var pluginModule = injectedNamesToPlugins[pluginName]; 19507 namesToPlugins.hasOwnProperty(pluginName) && namesToPlugins[pluginName] === pluginModule || (namesToPlugins[pluginName] && invariant(!1, "EventPluginRegistry: Cannot inject two different event plugins using the same name, ` + ("`" + `%s`)) + ("`" + (`.", pluginName), 19508 namesToPlugins[pluginName] = pluginModule, isOrderingDirty = !0); 19509 } 19510 isOrderingDirty && recomputePluginOrdering(); 19511 } 19512 function executeDispatch(event, simulated, listener, inst) { 19513 var type = event.type || "unknown-event"; 19514 event.currentTarget = getNodeFromInstance(inst), ReactErrorUtils.invokeGuardedCallbackAndCatchFirstError(type, listener, void 0, event), 19515 event.currentTarget = null; 19516 } 19517 function executeDispatchesInOrder(event, simulated) { 19518 var dispatchListeners = event._dispatchListeners, dispatchInstances = event._dispatchInstances; 19519 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); 19520 event._dispatchListeners = null, event._dispatchInstances = null; 19521 } 19522 function accumulateInto(current, next) { 19523 return null == next && invariant(!1, "accumulateInto(...): Accumulated items must not be null or undefined."), 19524 null == current ? next : Array.isArray(current) ? Array.isArray(next) ? (current.push.apply(current, next), 19525 current) : (current.push(next), current) : Array.isArray(next) ? [ current ].concat(next) : [ current, next ]; 19526 } 19527 function forEachAccumulated(arr, cb, scope) { 19528 Array.isArray(arr) ? arr.forEach(cb, scope) : arr && cb.call(scope, arr); 19529 } 19530 function isInteractive(tag) { 19531 return "button" === tag || "input" === tag || "select" === tag || "textarea" === tag; 19532 } 19533 function shouldPreventMouseEvent(name, type, props) { 19534 switch (name) { 19535 case "onClick": 19536 case "onClickCapture": 19537 case "onDoubleClick": 19538 case "onDoubleClickCapture": 19539 case "onMouseDown": 19540 case "onMouseDownCapture": 19541 case "onMouseMove": 19542 case "onMouseMoveCapture": 19543 case "onMouseUp": 19544 case "onMouseUpCapture": 19545 return !(!props.disabled || !isInteractive(type)); 19546 19547 default: 19548 return !1; 19549 } 19550 } 19551 function getListener(inst, registrationName) { 19552 var listener = void 0, stateNode = inst.stateNode; 19553 if (!stateNode) return null; 19554 var props = getFiberCurrentPropsFromNode(stateNode); 19555 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), 19556 listener)) : null; 19557 } 19558 function extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) { 19559 for (var events = null, i = 0; i < plugins.length; i++) { 19560 var possiblePlugin = plugins[i]; 19561 if (possiblePlugin) { 19562 var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget); 19563 extractedEvents && (events = accumulateInto(events, extractedEvents)); 19564 } 19565 } 19566 return events; 19567 } 19568 function runEventsInBatch(events, simulated) { 19569 null !== events && (eventQueue = accumulateInto(eventQueue, events)); 19570 var processingEventQueue = eventQueue; 19571 eventQueue = null, processingEventQueue && (simulated ? forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseSimulated) : forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel), 19572 eventQueue && invariant(!1, "processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented."), 19573 ReactErrorUtils.rethrowCaughtError()); 19574 } 19575 function runExtractedEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget) { 19576 runEventsInBatch(extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget), !1); 19577 } 19578 function precacheFiberNode(hostInst, node) { 19579 node[internalInstanceKey] = hostInst; 19580 } 19581 function getClosestInstanceFromNode(node) { 19582 if (node[internalInstanceKey]) return node[internalInstanceKey]; 19583 for (;!node[internalInstanceKey]; ) { 19584 if (!node.parentNode) return null; 19585 node = node.parentNode; 19586 } 19587 var inst = node[internalInstanceKey]; 19588 return inst.tag === HostComponent || inst.tag === HostText ? inst : null; 19589 } 19590 function getInstanceFromNode$1(node) { 19591 var inst = node[internalInstanceKey]; 19592 return inst && (inst.tag === HostComponent || inst.tag === HostText) ? inst : null; 19593 } 19594 function getNodeFromInstance$1(inst) { 19595 if (inst.tag === HostComponent || inst.tag === HostText) return inst.stateNode; 19596 invariant(!1, "getNodeFromInstance: Invalid argument."); 19597 } 19598 function getFiberCurrentPropsFromNode$1(node) { 19599 return node[internalEventHandlersKey] || null; 19600 } 19601 function updateFiberProps(node, props) { 19602 node[internalEventHandlersKey] = props; 19603 } 19604 function getParent(inst) { 19605 do { 19606 inst = inst.return; 19607 } while (inst && inst.tag !== HostComponent); 19608 return inst || null; 19609 } 19610 function getLowestCommonAncestor(instA, instB) { 19611 for (var depthA = 0, tempA = instA; tempA; tempA = getParent(tempA)) depthA++; 19612 for (var depthB = 0, tempB = instB; tempB; tempB = getParent(tempB)) depthB++; 19613 for (;depthA - depthB > 0; ) instA = getParent(instA), depthA--; 19614 for (;depthB - depthA > 0; ) instB = getParent(instB), depthB--; 19615 for (var depth = depthA; depth--; ) { 19616 if (instA === instB || instA === instB.alternate) return instA; 19617 instA = getParent(instA), instB = getParent(instB); 19618 } 19619 return null; 19620 } 19621 function getParentInstance(inst) { 19622 return getParent(inst); 19623 } 19624 function traverseTwoPhase(inst, fn, arg) { 19625 for (var path = []; inst; ) path.push(inst), inst = getParent(inst); 19626 var i = void 0; 19627 for (i = path.length; i-- > 0; ) fn(path[i], "captured", arg); 19628 for (i = 0; i < path.length; i++) fn(path[i], "bubbled", arg); 19629 } 19630 function traverseEnterLeave(from, to, fn, argFrom, argTo) { 19631 for (var common = from && to ? getLowestCommonAncestor(from, to) : null, pathFrom = []; ;) { 19632 if (!from) break; 19633 if (from === common) break; 19634 var alternate = from.alternate; 19635 if (null !== alternate && alternate === common) break; 19636 pathFrom.push(from), from = getParent(from); 19637 } 19638 for (var pathTo = []; ;) { 19639 if (!to) break; 19640 if (to === common) break; 19641 var _alternate = to.alternate; 19642 if (null !== _alternate && _alternate === common) break; 19643 pathTo.push(to), to = getParent(to); 19644 } 19645 for (var i = 0; i < pathFrom.length; i++) fn(pathFrom[i], "bubbled", argFrom); 19646 for (var _i = pathTo.length; _i-- > 0; ) fn(pathTo[_i], "captured", argTo); 19647 } 19648 function listenerAtPhase(inst, event, propagationPhase) { 19649 return getListener(inst, event.dispatchConfig.phasedRegistrationNames[propagationPhase]); 19650 } 19651 function accumulateDirectionalDispatches(inst, phase, event) { 19652 inst || warning(!1, "Dispatching inst must not be null"); 19653 var listener = listenerAtPhase(inst, event, phase); 19654 listener && (event._dispatchListeners = accumulateInto(event._dispatchListeners, listener), 19655 event._dispatchInstances = accumulateInto(event._dispatchInstances, inst)); 19656 } 19657 function accumulateTwoPhaseDispatchesSingle(event) { 19658 event && event.dispatchConfig.phasedRegistrationNames && traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event); 19659 } 19660 function accumulateTwoPhaseDispatchesSingleSkipTarget(event) { 19661 if (event && event.dispatchConfig.phasedRegistrationNames) { 19662 var targetInst = event._targetInst; 19663 traverseTwoPhase(targetInst ? getParentInstance(targetInst) : null, accumulateDirectionalDispatches, event); 19664 } 19665 } 19666 function accumulateDispatches(inst, ignoredDirection, event) { 19667 if (inst && event && event.dispatchConfig.registrationName) { 19668 var registrationName = event.dispatchConfig.registrationName, listener = getListener(inst, registrationName); 19669 listener && (event._dispatchListeners = accumulateInto(event._dispatchListeners, listener), 19670 event._dispatchInstances = accumulateInto(event._dispatchInstances, inst)); 19671 } 19672 } 19673 function accumulateDirectDispatchesSingle(event) { 19674 event && event.dispatchConfig.registrationName && accumulateDispatches(event._targetInst, null, event); 19675 } 19676 function accumulateTwoPhaseDispatches(events) { 19677 forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle); 19678 } 19679 function accumulateTwoPhaseDispatchesSkipTarget(events) { 19680 forEachAccumulated(events, accumulateTwoPhaseDispatchesSingleSkipTarget); 19681 } 19682 function accumulateEnterLeaveDispatches(leave, enter, from, to) { 19683 traverseEnterLeave(from, to, accumulateDispatches, leave, enter); 19684 } 19685 function accumulateDirectDispatches(events) { 19686 forEachAccumulated(events, accumulateDirectDispatchesSingle); 19687 } 19688 function unsafeCastStringToDOMTopLevelType(topLevelType) { 19689 return topLevelType; 19690 } 19691 function unsafeCastDOMTopLevelTypeToString(topLevelType) { 19692 return topLevelType; 19693 } 19694 function makePrefixMap(styleProp, eventName) { 19695 var prefixes = {}; 19696 return prefixes[styleProp.toLowerCase()] = eventName.toLowerCase(), prefixes["Webkit" + styleProp] = "webkit" + eventName, 19697 prefixes["Moz" + styleProp] = "moz" + eventName, prefixes["ms" + styleProp] = "MS" + eventName, 19698 prefixes["O" + styleProp] = "o" + eventName.toLowerCase(), prefixes; 19699 } 19700 function getVendorPrefixedEventName(eventName) { 19701 if (prefixedEventNames[eventName]) return prefixedEventNames[eventName]; 19702 if (!vendorPrefixes[eventName]) return eventName; 19703 var prefixMap = vendorPrefixes[eventName]; 19704 for (var styleProp in prefixMap) if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) return prefixedEventNames[eventName] = prefixMap[styleProp]; 19705 return eventName; 19706 } 19707 function getRawEventName(topLevelType) { 19708 return unsafeCastDOMTopLevelTypeToString(topLevelType); 19709 } 19710 function getTextContentAccessor() { 19711 return !contentKey && ExecutionEnvironment.canUseDOM && (contentKey = "textContent" in document.documentElement ? "textContent" : "innerText"), 19712 contentKey; 19713 } 19714 function initialize(nativeEventTarget) { 19715 return compositionState._root = nativeEventTarget, compositionState._startText = getText(), 19716 !0; 19717 } 19718 function reset() { 19719 compositionState._root = null, compositionState._startText = null, compositionState._fallbackText = null; 19720 } 19721 function getData() { 19722 if (compositionState._fallbackText) return compositionState._fallbackText; 19723 var start = void 0, startValue = compositionState._startText, startLength = startValue.length, end = void 0, endValue = getText(), endLength = endValue.length; 19724 for (start = 0; start < startLength && startValue[start] === endValue[start]; start++) ; 19725 var minEnd = startLength - start; 19726 for (end = 1; end <= minEnd && startValue[startLength - end] === endValue[endLength - end]; end++) ; 19727 var sliceTail = end > 1 ? 1 - end : void 0; 19728 return compositionState._fallbackText = endValue.slice(start, sliceTail), compositionState._fallbackText; 19729 } 19730 function getText() { 19731 return "value" in compositionState._root ? compositionState._root.value : compositionState._root[getTextContentAccessor()]; 19732 } 19733 function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) { 19734 delete this.nativeEvent, delete this.preventDefault, delete this.stopPropagation, 19735 this.dispatchConfig = dispatchConfig, this._targetInst = targetInst, this.nativeEvent = nativeEvent; 19736 var Interface = this.constructor.Interface; 19737 for (var propName in Interface) if (Interface.hasOwnProperty(propName)) { 19738 delete this[propName]; 19739 var normalize = Interface[propName]; 19740 normalize ? this[propName] = normalize(nativeEvent) : "target" === propName ? this.target = nativeEventTarget : this[propName] = nativeEvent[propName]; 19741 } 19742 var defaultPrevented = null != nativeEvent.defaultPrevented ? nativeEvent.defaultPrevented : !1 === nativeEvent.returnValue; 19743 return this.isDefaultPrevented = defaultPrevented ? emptyFunction.thatReturnsTrue : emptyFunction.thatReturnsFalse, 19744 this.isPropagationStopped = emptyFunction.thatReturnsFalse, this; 19745 } 19746 function getPooledWarningPropertyDefinition(propName, getVal) { 19747 function set(val) { 19748 return warn(isFunction ? "setting the method" : "setting the property", "This is effectively a no-op"), 19749 val; 19750 } 19751 function get() { 19752 return warn(isFunction ? "accessing the method" : "accessing the property", isFunction ? "This is a no-op function" : "This is set to null"), 19753 getVal; 19754 } 19755 function warn(action, result) { 19756 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); 19757 } 19758 var isFunction = "function" == typeof getVal; 19759 return { 19760 configurable: !0, 19761 set: set, 19762 get: get 19763 }; 19764 } 19765 function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) { 19766 var EventConstructor = this; 19767 if (EventConstructor.eventPool.length) { 19768 var instance = EventConstructor.eventPool.pop(); 19769 return EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst), 19770 instance; 19771 } 19772 return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst); 19773 } 19774 function releasePooledEvent(event) { 19775 var EventConstructor = this; 19776 event instanceof EventConstructor || invariant(!1, "Trying to release an event instance into a pool of a different type."), 19777 event.destructor(), EventConstructor.eventPool.length < EVENT_POOL_SIZE && EventConstructor.eventPool.push(event); 19778 } 19779 function addEventPoolingTo(EventConstructor) { 19780 EventConstructor.eventPool = [], EventConstructor.getPooled = getPooledEvent, EventConstructor.release = releasePooledEvent; 19781 } 19782 function isKeypressCommand(nativeEvent) { 19783 return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) && !(nativeEvent.ctrlKey && nativeEvent.altKey); 19784 } 19785 function getCompositionEventType(topLevelType) { 19786 switch (topLevelType) { 19787 case TOP_COMPOSITION_START: 19788 return eventTypes.compositionStart; 19789 19790 case TOP_COMPOSITION_END: 19791 return eventTypes.compositionEnd; 19792 19793 case TOP_COMPOSITION_UPDATE: 19794 return eventTypes.compositionUpdate; 19795 } 19796 } 19797 function isFallbackCompositionStart(topLevelType, nativeEvent) { 19798 return topLevelType === TOP_KEY_DOWN && nativeEvent.keyCode === START_KEYCODE; 19799 } 19800 function isFallbackCompositionEnd(topLevelType, nativeEvent) { 19801 switch (topLevelType) { 19802 case TOP_KEY_UP: 19803 return -1 !== END_KEYCODES.indexOf(nativeEvent.keyCode); 19804 19805 case TOP_KEY_DOWN: 19806 return nativeEvent.keyCode !== START_KEYCODE; 19807 19808 case TOP_KEY_PRESS: 19809 case TOP_MOUSE_DOWN: 19810 case TOP_BLUR: 19811 return !0; 19812 19813 default: 19814 return !1; 19815 } 19816 } 19817 function getDataFromCustomEvent(nativeEvent) { 19818 var detail = nativeEvent.detail; 19819 return "object" == typeof detail && "data" in detail ? detail.data : null; 19820 } 19821 function extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) { 19822 var eventType = void 0, fallbackData = void 0; 19823 if (canUseCompositionEvent ? eventType = getCompositionEventType(topLevelType) : isComposing ? isFallbackCompositionEnd(topLevelType, nativeEvent) && (eventType = eventTypes.compositionEnd) : isFallbackCompositionStart(topLevelType, nativeEvent) && (eventType = eventTypes.compositionStart), 19824 !eventType) return null; 19825 useFallbackCompositionData && (isComposing || eventType !== eventTypes.compositionStart ? eventType === eventTypes.compositionEnd && isComposing && (fallbackData = getData()) : isComposing = initialize(nativeEventTarget)); 19826 var event = SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget); 19827 if (fallbackData) event.data = fallbackData; else { 19828 var customData = getDataFromCustomEvent(nativeEvent); 19829 null !== customData && (event.data = customData); 19830 } 19831 return accumulateTwoPhaseDispatches(event), event; 19832 } 19833 function getNativeBeforeInputChars(topLevelType, nativeEvent) { 19834 switch (topLevelType) { 19835 case TOP_COMPOSITION_END: 19836 return getDataFromCustomEvent(nativeEvent); 19837 19838 case TOP_KEY_PRESS: 19839 return nativeEvent.which !== SPACEBAR_CODE ? null : (hasSpaceKeypress = !0, SPACEBAR_CHAR); 19840 19841 case TOP_TEXT_INPUT: 19842 var chars = nativeEvent.data; 19843 return chars === SPACEBAR_CHAR && hasSpaceKeypress ? null : chars; 19844 19845 default: 19846 return null; 19847 } 19848 } 19849 function getFallbackBeforeInputChars(topLevelType, nativeEvent) { 19850 if (isComposing) { 19851 if (topLevelType === TOP_COMPOSITION_END || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) { 19852 var chars = getData(); 19853 return reset(), isComposing = !1, chars; 19854 } 19855 return null; 19856 } 19857 switch (topLevelType) { 19858 case TOP_PASTE: 19859 return null; 19860 19861 case TOP_KEY_PRESS: 19862 if (!isKeypressCommand(nativeEvent)) { 19863 if (nativeEvent.char && nativeEvent.char.length > 1) return nativeEvent.char; 19864 if (nativeEvent.which) return String.fromCharCode(nativeEvent.which); 19865 } 19866 return null; 19867 19868 case TOP_COMPOSITION_END: 19869 return useFallbackCompositionData ? null : nativeEvent.data; 19870 19871 default: 19872 return null; 19873 } 19874 } 19875 function extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) { 19876 var chars = void 0; 19877 if (!(chars = canUseTextInputEvent ? getNativeBeforeInputChars(topLevelType, nativeEvent) : getFallbackBeforeInputChars(topLevelType, nativeEvent))) return null; 19878 var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget); 19879 return event.data = chars, accumulateTwoPhaseDispatches(event), event; 19880 } 19881 function restoreStateOfTarget(target) { 19882 var internalInstance = getInstanceFromNode(target); 19883 if (internalInstance) { 19884 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."); 19885 var props = getFiberCurrentPropsFromNode(internalInstance.stateNode); 19886 fiberHostComponent.restoreControlledState(internalInstance.stateNode, internalInstance.type, props); 19887 } 19888 } 19889 function enqueueStateRestore(target) { 19890 restoreTarget ? restoreQueue ? restoreQueue.push(target) : restoreQueue = [ target ] : restoreTarget = target; 19891 } 19892 function needsStateRestore() { 19893 return null !== restoreTarget || null !== restoreQueue; 19894 } 19895 function restoreStateIfNeeded() { 19896 if (restoreTarget) { 19897 var target = restoreTarget, queuedTargets = restoreQueue; 19898 if (restoreTarget = null, restoreQueue = null, restoreStateOfTarget(target), queuedTargets) for (var i = 0; i < queuedTargets.length; i++) restoreStateOfTarget(queuedTargets[i]); 19899 } 19900 } 19901 function batchedUpdates(fn, bookkeeping) { 19902 if (isBatching) return fn(bookkeeping); 19903 isBatching = !0; 19904 try { 19905 return _batchedUpdates(fn, bookkeeping); 19906 } finally { 19907 isBatching = !1; 19908 needsStateRestore() && (_flushInteractiveUpdates(), restoreStateIfNeeded()); 19909 } 19910 } 19911 function interactiveUpdates(fn, a, b) { 19912 return _interactiveUpdates(fn, a, b); 19913 } 19914 function isTextInputElement(elem) { 19915 var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); 19916 return "input" === nodeName ? !!supportedInputTypes[elem.type] : "textarea" === nodeName; 19917 } 19918 function getEventTarget(nativeEvent) { 19919 var target = nativeEvent.target || window; 19920 return target.correspondingUseElement && (target = target.correspondingUseElement), 19921 target.nodeType === TEXT_NODE ? target.parentNode : target; 19922 } 19923 function isEventSupported(eventNameSuffix, capture) { 19924 if (!ExecutionEnvironment.canUseDOM || capture && !("addEventListener" in document)) return !1; 19925 var eventName = "on" + eventNameSuffix, isSupported = eventName in document; 19926 if (!isSupported) { 19927 var element = document.createElement("div"); 19928 element.setAttribute(eventName, "return;"), isSupported = "function" == typeof element[eventName]; 19929 } 19930 return isSupported; 19931 } 19932 function isCheckable(elem) { 19933 var type = elem.type, nodeName = elem.nodeName; 19934 return nodeName && "input" === nodeName.toLowerCase() && ("checkbox" === type || "radio" === type); 19935 } 19936 function getTracker(node) { 19937 return node._valueTracker; 19938 } 19939 function detachTracker(node) { 19940 node._valueTracker = null; 19941 } 19942 function getValueFromNode(node) { 19943 var value = ""; 19944 return node ? value = isCheckable(node) ? node.checked ? "true" : "false" : node.value : value; 19945 } 19946 function trackValueOnNode(node) { 19947 var valueField = isCheckable(node) ? "checked" : "value", descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField), currentValue = "" + node[valueField]; 19948 if (!node.hasOwnProperty(valueField) && void 0 !== descriptor && "function" == typeof descriptor.get && "function" == typeof descriptor.set) { 19949 var get = descriptor.get, set = descriptor.set; 19950 Object.defineProperty(node, valueField, { 19951 configurable: !0, 19952 get: function() { 19953 return get.call(this); 19954 }, 19955 set: function(value) { 19956 currentValue = "" + value, set.call(this, value); 19957 } 19958 }), Object.defineProperty(node, valueField, { 19959 enumerable: descriptor.enumerable 19960 }); 19961 return { 19962 getValue: function() { 19963 return currentValue; 19964 }, 19965 setValue: function(value) { 19966 currentValue = "" + value; 19967 }, 19968 stopTracking: function() { 19969 detachTracker(node), delete node[valueField]; 19970 } 19971 }; 19972 } 19973 } 19974 function track(node) { 19975 getTracker(node) || (node._valueTracker = trackValueOnNode(node)); 19976 } 19977 function updateValueIfChanged(node) { 19978 if (!node) return !1; 19979 var tracker = getTracker(node); 19980 if (!tracker) return !0; 19981 var lastValue = tracker.getValue(), nextValue = getValueFromNode(node); 19982 return nextValue !== lastValue && (tracker.setValue(nextValue), !0); 19983 } 19984 function getIteratorFn(maybeIterable) { 19985 if (null === maybeIterable || void 0 === maybeIterable) return null; 19986 var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; 19987 return "function" == typeof maybeIterator ? maybeIterator : null; 19988 } 19989 function getComponentName(fiber) { 19990 var type = fiber.type; 19991 if ("function" == typeof type) return type.displayName || type.name; 19992 if ("string" == typeof type) return type; 19993 switch (type) { 19994 case REACT_ASYNC_MODE_TYPE: 19995 return "AsyncMode"; 19996 19997 case REACT_CONTEXT_TYPE: 19998 return "Context.Consumer"; 19999 20000 case REACT_FRAGMENT_TYPE: 20001 return "ReactFragment"; 20002 20003 case REACT_PORTAL_TYPE: 20004 return "ReactPortal"; 20005 20006 case REACT_PROFILER_TYPE: 20007 return "Profiler(" + fiber.pendingProps.id + ")"; 20008 20009 case REACT_PROVIDER_TYPE: 20010 return "Context.Provider"; 20011 20012 case REACT_STRICT_MODE_TYPE: 20013 return "StrictMode"; 20014 20015 case REACT_TIMEOUT_TYPE: 20016 return "Timeout"; 20017 } 20018 if ("object" == typeof type && null !== type) switch (type.$$typeof) { 20019 case REACT_FORWARD_REF_TYPE: 20020 var functionName = type.render.displayName || type.render.name || ""; 20021 return "" !== functionName ? "ForwardRef(" + functionName + ")" : "ForwardRef"; 20022 } 20023 return null; 20024 } 20025 function describeFiber(fiber) { 20026 switch (fiber.tag) { 20027 case IndeterminateComponent: 20028 case FunctionalComponent: 20029 case ClassComponent: 20030 case HostComponent: 20031 var owner = fiber._debugOwner, source = fiber._debugSource, name = getComponentName(fiber), ownerName = null; 20032 return owner && (ownerName = getComponentName(owner)), describeComponentFrame(name, source, ownerName); 20033 20034 default: 20035 return ""; 20036 } 20037 } 20038 function getStackAddendumByWorkInProgressFiber(workInProgress) { 20039 var info = "", node = workInProgress; 20040 do { 20041 info += describeFiber(node), node = node.return; 20042 } while (node); 20043 return info; 20044 } 20045 function getCurrentFiberOwnerName$1() { 20046 var fiber = ReactDebugCurrentFiber.current; 20047 if (null === fiber) return null; 20048 var owner = fiber._debugOwner; 20049 return null !== owner && void 0 !== owner ? getComponentName(owner) : null; 20050 } 20051 function getCurrentFiberStackAddendum$1() { 20052 var fiber = ReactDebugCurrentFiber.current; 20053 return null === fiber ? null : getStackAddendumByWorkInProgressFiber(fiber); 20054 } 20055 function resetCurrentFiber() { 20056 ReactDebugCurrentFrame.getCurrentStack = null, ReactDebugCurrentFiber.current = null, 20057 ReactDebugCurrentFiber.phase = null; 20058 } 20059 function setCurrentFiber(fiber) { 20060 ReactDebugCurrentFrame.getCurrentStack = getCurrentFiberStackAddendum$1, ReactDebugCurrentFiber.current = fiber, 20061 ReactDebugCurrentFiber.phase = null; 20062 } 20063 function setCurrentPhase(phase) { 20064 ReactDebugCurrentFiber.phase = phase; 20065 } 20066 function isAttributeNameSafe(attributeName) { 20067 return !!validatedAttributeNameCache.hasOwnProperty(attributeName) || !illegalAttributeNameCache.hasOwnProperty(attributeName) && (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName) ? (validatedAttributeNameCache[attributeName] = !0, 20068 !0) : (illegalAttributeNameCache[attributeName] = !0, warning(!1, "Invalid attribute name: ` + "`")))) + (((`%s` + ("`" + `", attributeName), 20069 !1)); 20070 } 20071 function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) { 20072 return null !== propertyInfo ? propertyInfo.type === RESERVED : !isCustomComponentTag && (name.length > 2 && ("o" === name[0] || "O" === name[0]) && ("n" === name[1] || "N" === name[1])); 20073 } 20074 function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) { 20075 if (null !== propertyInfo && propertyInfo.type === RESERVED) return !1; 20076 switch (typeof value) { 20077 case "function": 20078 case "symbol": 20079 return !0; 20080 20081 case "boolean": 20082 if (isCustomComponentTag) return !1; 20083 if (null !== propertyInfo) return !propertyInfo.acceptsBooleans; 20084 var prefix = name.toLowerCase().slice(0, 5); 20085 return "data-" !== prefix && "aria-" !== prefix; 20086 20087 default: 20088 return !1; 20089 } 20090 } 20091 function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) { 20092 if (null === value || void 0 === value) return !0; 20093 if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) return !0; 20094 if (isCustomComponentTag) return !1; 20095 if (null !== propertyInfo) switch (propertyInfo.type) { 20096 case BOOLEAN: 20097 return !value; 20098 20099 case OVERLOADED_BOOLEAN: 20100 return !1 === value; 20101 20102 case NUMERIC: 20103 return isNaN(value); 20104 20105 case POSITIVE_NUMERIC: 20106 return isNaN(value) || value < 1; 20107 } 20108 return !1; 20109 } 20110 function getPropertyInfo(name) { 20111 return properties.hasOwnProperty(name) ? properties[name] : null; 20112 } 20113 function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace) { 20114 this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN, 20115 this.attributeName = attributeName, this.attributeNamespace = attributeNamespace, 20116 this.mustUseProperty = mustUseProperty, this.propertyName = name, this.type = type; 20117 } 20118 function getValueForProperty(node, name, expected, propertyInfo) { 20119 if (propertyInfo.mustUseProperty) { 20120 return node[propertyInfo.propertyName]; 20121 } 20122 var attributeName = propertyInfo.attributeName, stringValue = null; 20123 if (propertyInfo.type === OVERLOADED_BOOLEAN) { 20124 if (node.hasAttribute(attributeName)) { 20125 var value = node.getAttribute(attributeName); 20126 return "" === value || (shouldRemoveAttribute(name, expected, propertyInfo, !1) ? value : value === "" + expected ? expected : value); 20127 } 20128 } else if (node.hasAttribute(attributeName)) { 20129 if (shouldRemoveAttribute(name, expected, propertyInfo, !1)) return node.getAttribute(attributeName); 20130 if (propertyInfo.type === BOOLEAN) return expected; 20131 stringValue = node.getAttribute(attributeName); 20132 } 20133 return shouldRemoveAttribute(name, expected, propertyInfo, !1) ? null === stringValue ? expected : stringValue : stringValue === "" + expected ? expected : stringValue; 20134 } 20135 function getValueForAttribute(node, name, expected) { 20136 if (isAttributeNameSafe(name)) { 20137 if (!node.hasAttribute(name)) return void 0 === expected ? void 0 : null; 20138 var value = node.getAttribute(name); 20139 return value === "" + expected ? expected : value; 20140 } 20141 } 20142 function setValueForProperty(node, name, value, isCustomComponentTag) { 20143 var propertyInfo = getPropertyInfo(name); 20144 if (!shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) && (value = null), 20145 isCustomComponentTag || null === propertyInfo) { 20146 if (isAttributeNameSafe(name)) { 20147 var _attributeName = name; 20148 null === value ? node.removeAttribute(_attributeName) : node.setAttribute(_attributeName, "" + value); 20149 } 20150 } else { 20151 var mustUseProperty = propertyInfo.mustUseProperty; 20152 if (mustUseProperty) { 20153 var propertyName = propertyInfo.propertyName; 20154 if (null === value) { 20155 var type = propertyInfo.type; 20156 node[propertyName] = type !== BOOLEAN && ""; 20157 } else node[propertyName] = value; 20158 } else { 20159 var attributeName = propertyInfo.attributeName, attributeNamespace = propertyInfo.attributeNamespace; 20160 if (null === value) node.removeAttribute(attributeName); else { 20161 var _type = propertyInfo.type, attributeValue = void 0; 20162 attributeValue = _type === BOOLEAN || _type === OVERLOADED_BOOLEAN && !0 === value ? "" : "" + value, 20163 attributeNamespace ? node.setAttributeNS(attributeNamespace, attributeName, attributeValue) : node.setAttribute(attributeName, attributeValue); 20164 } 20165 } 20166 } 20167 } 20168 function isControlled(props) { 20169 return "checkbox" === props.type || "radio" === props.type ? null != props.checked : null != props.value; 20170 } 20171 function getHostProps(element, props) { 20172 var node = element, checked = props.checked; 20173 return _assign({}, props, { 20174 defaultChecked: void 0, 20175 defaultValue: void 0, 20176 value: void 0, 20177 checked: null != checked ? checked : node._wrapperState.initialChecked 20178 }); 20179 } 20180 function initWrapperState(element, props) { 20181 ReactControlledValuePropTypes.checkPropTypes("input", props, getCurrentFiberStackAddendum), 20182 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), 20183 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), 20184 didWarnValueDefaultValue = !0); 20185 var node = element, defaultValue = null == props.defaultValue ? "" : props.defaultValue; 20186 node._wrapperState = { 20187 initialChecked: null != props.checked ? props.checked : props.defaultChecked, 20188 initialValue: getSafeValue(null != props.value ? props.value : defaultValue), 20189 controlled: isControlled(props) 20190 }; 20191 } 20192 function updateChecked(element, props) { 20193 var node = element, checked = props.checked; 20194 null != checked && setValueForProperty(node, "checked", checked, !1); 20195 } 20196 function updateWrapper(element, props) { 20197 var node = element, _controlled = isControlled(props); 20198 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()), 20199 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()), 20200 didWarnControlledToUncontrolled = !0), updateChecked(element, props); 20201 var value = getSafeValue(props.value); 20202 null != value && ("number" === props.type ? (0 === value && "" === node.value || node.value != value) && (node.value = "" + value) : node.value !== "" + value && (node.value = "" + value)), 20203 props.hasOwnProperty("value") ? setDefaultValue(node, props.type, value) : props.hasOwnProperty("defaultValue") && setDefaultValue(node, props.type, getSafeValue(props.defaultValue)), 20204 null == props.checked && null != props.defaultChecked && (node.defaultChecked = !!props.defaultChecked); 20205 } 20206 function postMountWrapper(element, props) { 20207 var node = element; 20208 (props.hasOwnProperty("value") || props.hasOwnProperty("defaultValue")) && ("" === node.value && (node.value = "" + node._wrapperState.initialValue), 20209 node.defaultValue = "" + node._wrapperState.initialValue); 20210 var name = node.name; 20211 "" !== name && (node.name = ""), node.defaultChecked = !node.defaultChecked, node.defaultChecked = !node.defaultChecked, 20212 "" !== name && (node.name = name); 20213 } 20214 function restoreControlledState(element, props) { 20215 var node = element; 20216 updateWrapper(node, props), updateNamedCousins(node, props); 20217 } 20218 function updateNamedCousins(rootNode, props) { 20219 var name = props.name; 20220 if ("radio" === props.type && null != name) { 20221 for (var queryRoot = rootNode; queryRoot.parentNode; ) queryRoot = queryRoot.parentNode; 20222 for (var group = queryRoot.querySelectorAll("input[name=" + JSON.stringify("" + name) + '][type="radio"]'), i = 0; i < group.length; i++) { 20223 var otherNode = group[i]; 20224 if (otherNode !== rootNode && otherNode.form === rootNode.form) { 20225 var otherProps = getFiberCurrentPropsFromNode$1(otherNode); 20226 otherProps || invariant(!1, "ReactDOMInput: Mixing React and non-React radio inputs with the same `)) + ("`" + (`name` + "`"))) + ((` is not supported."), 20227 updateValueIfChanged(otherNode), updateWrapper(otherNode, otherProps); 20228 } 20229 } 20230 } 20231 } 20232 function setDefaultValue(node, type, value) { 20233 "number" === type && node.ownerDocument.activeElement === node || (null == value ? node.defaultValue = "" + node._wrapperState.initialValue : node.defaultValue !== "" + value && (node.defaultValue = "" + value)); 20234 } 20235 function getSafeValue(value) { 20236 switch (typeof value) { 20237 case "boolean": 20238 case "number": 20239 case "object": 20240 case "string": 20241 case "undefined": 20242 return value; 20243 20244 default: 20245 return ""; 20246 } 20247 } 20248 function createAndAccumulateChangeEvent(inst, nativeEvent, target) { 20249 var event = SyntheticEvent$1.getPooled(eventTypes$1.change, inst, nativeEvent, target); 20250 return event.type = "change", enqueueStateRestore(target), accumulateTwoPhaseDispatches(event), 20251 event; 20252 } 20253 function shouldUseChangeEvent(elem) { 20254 var nodeName = elem.nodeName && elem.nodeName.toLowerCase(); 20255 return "select" === nodeName || "input" === nodeName && "file" === elem.type; 20256 } 20257 function manualDispatchChangeEvent(nativeEvent) { 20258 batchedUpdates(runEventInBatch, createAndAccumulateChangeEvent(activeElementInst, nativeEvent, getEventTarget(nativeEvent))); 20259 } 20260 function runEventInBatch(event) { 20261 runEventsInBatch(event, !1); 20262 } 20263 function getInstIfValueChanged(targetInst) { 20264 if (updateValueIfChanged(getNodeFromInstance$1(targetInst))) return targetInst; 20265 } 20266 function getTargetInstForChangeEvent(topLevelType, targetInst) { 20267 if (topLevelType === TOP_CHANGE) return targetInst; 20268 } 20269 function startWatchingForValueChange(target, targetInst) { 20270 activeElement = target, activeElementInst = targetInst, activeElement.attachEvent("onpropertychange", handlePropertyChange); 20271 } 20272 function stopWatchingForValueChange() { 20273 activeElement && (activeElement.detachEvent("onpropertychange", handlePropertyChange), 20274 activeElement = null, activeElementInst = null); 20275 } 20276 function handlePropertyChange(nativeEvent) { 20277 "value" === nativeEvent.propertyName && getInstIfValueChanged(activeElementInst) && manualDispatchChangeEvent(nativeEvent); 20278 } 20279 function handleEventsForInputEventPolyfill(topLevelType, target, targetInst) { 20280 topLevelType === TOP_FOCUS ? (stopWatchingForValueChange(), startWatchingForValueChange(target, targetInst)) : topLevelType === TOP_BLUR && stopWatchingForValueChange(); 20281 } 20282 function getTargetInstForInputEventPolyfill(topLevelType, targetInst) { 20283 if (topLevelType === TOP_SELECTION_CHANGE || topLevelType === TOP_KEY_UP || topLevelType === TOP_KEY_DOWN) return getInstIfValueChanged(activeElementInst); 20284 } 20285 function shouldUseClickEvent(elem) { 20286 var nodeName = elem.nodeName; 20287 return nodeName && "input" === nodeName.toLowerCase() && ("checkbox" === elem.type || "radio" === elem.type); 20288 } 20289 function getTargetInstForClickEvent(topLevelType, targetInst) { 20290 if (topLevelType === TOP_CLICK) return getInstIfValueChanged(targetInst); 20291 } 20292 function getTargetInstForInputOrChangeEvent(topLevelType, targetInst) { 20293 if (topLevelType === TOP_INPUT || topLevelType === TOP_CHANGE) return getInstIfValueChanged(targetInst); 20294 } 20295 function handleControlledInputBlur(inst, node) { 20296 if (null != inst) { 20297 var state = inst._wrapperState || node._wrapperState; 20298 state && state.controlled && "number" === node.type && setDefaultValue(node, "number", node.value); 20299 } 20300 } 20301 function modifierStateGetter(keyArg) { 20302 var syntheticEvent = this, nativeEvent = syntheticEvent.nativeEvent; 20303 if (nativeEvent.getModifierState) return nativeEvent.getModifierState(keyArg); 20304 var keyProp = modifierKeyToProp[keyArg]; 20305 return !!keyProp && !!nativeEvent[keyProp]; 20306 } 20307 function getEventModifierState(nativeEvent) { 20308 return modifierStateGetter; 20309 } 20310 function get(key) { 20311 return key._reactInternalFiber; 20312 } 20313 function has(key) { 20314 return void 0 !== key._reactInternalFiber; 20315 } 20316 function set(key, value) { 20317 key._reactInternalFiber = value; 20318 } 20319 function isFiberMountedImpl(fiber) { 20320 var node = fiber; 20321 if (fiber.alternate) for (;node.return; ) node = node.return; else { 20322 if ((node.effectTag & Placement) !== NoEffect) return MOUNTING; 20323 for (;node.return; ) if (node = node.return, (node.effectTag & Placement) !== NoEffect) return MOUNTING; 20324 } 20325 return node.tag === HostRoot ? MOUNTED : UNMOUNTED; 20326 } 20327 function isFiberMounted(fiber) { 20328 return isFiberMountedImpl(fiber) === MOUNTED; 20329 } 20330 function isMounted(component) { 20331 var owner = ReactCurrentOwner.current; 20332 if (null !== owner && owner.tag === ClassComponent) { 20333 var ownerFiber = owner, instance = ownerFiber.stateNode; 20334 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"), 20335 instance._warnedAboutRefsInRender = !0; 20336 } 20337 var fiber = get(component); 20338 return !!fiber && isFiberMountedImpl(fiber) === MOUNTED; 20339 } 20340 function assertIsMounted(fiber) { 20341 isFiberMountedImpl(fiber) !== MOUNTED && invariant(!1, "Unable to find node on an unmounted component."); 20342 } 20343 function findCurrentFiberUsingSlowPath(fiber) { 20344 var alternate = fiber.alternate; 20345 if (!alternate) { 20346 var state = isFiberMountedImpl(fiber); 20347 return state === UNMOUNTED && invariant(!1, "Unable to find node on an unmounted component."), 20348 state === MOUNTING ? null : fiber; 20349 } 20350 for (var a = fiber, b = alternate; ;) { 20351 var parentA = a.return, parentB = parentA ? parentA.alternate : null; 20352 if (!parentA || !parentB) break; 20353 if (parentA.child === parentB.child) { 20354 for (var child = parentA.child; child; ) { 20355 if (child === a) return assertIsMounted(parentA), fiber; 20356 if (child === b) return assertIsMounted(parentA), alternate; 20357 child = child.sibling; 20358 } 20359 invariant(!1, "Unable to find node on an unmounted component."); 20360 } 20361 if (a.return !== b.return) a = parentA, b = parentB; else { 20362 for (var didFindChild = !1, _child = parentA.child; _child; ) { 20363 if (_child === a) { 20364 didFindChild = !0, a = parentA, b = parentB; 20365 break; 20366 } 20367 if (_child === b) { 20368 didFindChild = !0, b = parentA, a = parentB; 20369 break; 20370 } 20371 _child = _child.sibling; 20372 } 20373 if (!didFindChild) { 20374 for (_child = parentB.child; _child; ) { 20375 if (_child === a) { 20376 didFindChild = !0, a = parentB, b = parentA; 20377 break; 20378 } 20379 if (_child === b) { 20380 didFindChild = !0, b = parentB, a = parentA; 20381 break; 20382 } 20383 _child = _child.sibling; 20384 } 20385 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."); 20386 } 20387 } 20388 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."); 20389 } 20390 return a.tag !== HostRoot && invariant(!1, "Unable to find node on an unmounted component."), 20391 a.stateNode.current === a ? fiber : alternate; 20392 } 20393 function findCurrentHostFiber(parent) { 20394 var currentParent = findCurrentFiberUsingSlowPath(parent); 20395 if (!currentParent) return null; 20396 for (var node = currentParent; ;) { 20397 if (node.tag === HostComponent || node.tag === HostText) return node; 20398 if (node.child) node.child.return = node, node = node.child; else { 20399 if (node === currentParent) return null; 20400 for (;!node.sibling; ) { 20401 if (!node.return || node.return === currentParent) return null; 20402 node = node.return; 20403 } 20404 node.sibling.return = node.return, node = node.sibling; 20405 } 20406 } 20407 return null; 20408 } 20409 function findCurrentHostFiberWithNoPortals(parent) { 20410 var currentParent = findCurrentFiberUsingSlowPath(parent); 20411 if (!currentParent) return null; 20412 for (var node = currentParent; ;) { 20413 if (node.tag === HostComponent || node.tag === HostText) return node; 20414 if (node.child && node.tag !== HostPortal) node.child.return = node, node = node.child; else { 20415 if (node === currentParent) return null; 20416 for (;!node.sibling; ) { 20417 if (!node.return || node.return === currentParent) return null; 20418 node = node.return; 20419 } 20420 node.sibling.return = node.return, node = node.sibling; 20421 } 20422 } 20423 return null; 20424 } 20425 function addEventBubbleListener(element, eventType, listener) { 20426 element.addEventListener(eventType, listener, !1); 20427 } 20428 function addEventCaptureListener(element, eventType, listener) { 20429 element.addEventListener(eventType, listener, !0); 20430 } 20431 function getEventCharCode(nativeEvent) { 20432 var charCode = void 0, keyCode = nativeEvent.keyCode; 20433 return "charCode" in nativeEvent ? 0 === (charCode = nativeEvent.charCode) && 13 === keyCode && (charCode = 13) : charCode = keyCode, 20434 10 === charCode && (charCode = 13), charCode >= 32 || 13 === charCode ? charCode : 0; 20435 } 20436 function getEventKey(nativeEvent) { 20437 if (nativeEvent.key) { 20438 var key = normalizeKey[nativeEvent.key] || nativeEvent.key; 20439 if ("Unidentified" !== key) return key; 20440 } 20441 if ("keypress" === nativeEvent.type) { 20442 var charCode = getEventCharCode(nativeEvent); 20443 return 13 === charCode ? "Enter" : String.fromCharCode(charCode); 20444 } 20445 return "keydown" === nativeEvent.type || "keyup" === nativeEvent.type ? translateToKey[nativeEvent.keyCode] || "Unidentified" : ""; 20446 } 20447 function addEventTypeNameToConfig(_ref, isInteractive) { 20448 var topEvent = _ref[0], event = _ref[1], capitalizedEvent = event[0].toUpperCase() + event.slice(1), onEvent = "on" + capitalizedEvent, type = { 20449 phasedRegistrationNames: { 20450 bubbled: onEvent, 20451 captured: onEvent + "Capture" 20452 }, 20453 dependencies: [ topEvent ], 20454 isInteractive: isInteractive 20455 }; 20456 eventTypes$4[event] = type, topLevelEventsToDispatchConfig[topEvent] = type; 20457 } 20458 function findRootContainerNode(inst) { 20459 for (;inst.return; ) inst = inst.return; 20460 return inst.tag !== HostRoot ? null : inst.stateNode.containerInfo; 20461 } 20462 function getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst) { 20463 if (callbackBookkeepingPool.length) { 20464 var instance = callbackBookkeepingPool.pop(); 20465 return instance.topLevelType = topLevelType, instance.nativeEvent = nativeEvent, 20466 instance.targetInst = targetInst, instance; 20467 } 20468 return { 20469 topLevelType: topLevelType, 20470 nativeEvent: nativeEvent, 20471 targetInst: targetInst, 20472 ancestors: [] 20473 }; 20474 } 20475 function releaseTopLevelCallbackBookKeeping(instance) { 20476 instance.topLevelType = null, instance.nativeEvent = null, instance.targetInst = null, 20477 instance.ancestors.length = 0, callbackBookkeepingPool.length < CALLBACK_BOOKKEEPING_POOL_SIZE && callbackBookkeepingPool.push(instance); 20478 } 20479 function handleTopLevel(bookKeeping) { 20480 var targetInst = bookKeeping.targetInst, ancestor = targetInst; 20481 do { 20482 if (!ancestor) { 20483 bookKeeping.ancestors.push(ancestor); 20484 break; 20485 } 20486 var root = findRootContainerNode(ancestor); 20487 if (!root) break; 20488 bookKeeping.ancestors.push(ancestor), ancestor = getClosestInstanceFromNode(root); 20489 } while (ancestor); 20490 for (var i = 0; i < bookKeeping.ancestors.length; i++) targetInst = bookKeeping.ancestors[i], 20491 runExtractedEventsInBatch(bookKeeping.topLevelType, targetInst, bookKeeping.nativeEvent, getEventTarget(bookKeeping.nativeEvent)); 20492 } 20493 function setEnabled(enabled) { 20494 _enabled = !!enabled; 20495 } 20496 function isEnabled() { 20497 return _enabled; 20498 } 20499 function trapBubbledEvent(topLevelType, element) { 20500 if (!element) return null; 20501 var dispatch = isInteractiveTopLevelEventType(topLevelType) ? dispatchInteractiveEvent : dispatchEvent; 20502 addEventBubbleListener(element, getRawEventName(topLevelType), dispatch.bind(null, topLevelType)); 20503 } 20504 function trapCapturedEvent(topLevelType, element) { 20505 if (!element) return null; 20506 var dispatch = isInteractiveTopLevelEventType(topLevelType) ? dispatchInteractiveEvent : dispatchEvent; 20507 addEventCaptureListener(element, getRawEventName(topLevelType), dispatch.bind(null, topLevelType)); 20508 } 20509 function dispatchInteractiveEvent(topLevelType, nativeEvent) { 20510 interactiveUpdates(dispatchEvent, topLevelType, nativeEvent); 20511 } 20512 function dispatchEvent(topLevelType, nativeEvent) { 20513 if (_enabled) { 20514 var nativeEventTarget = getEventTarget(nativeEvent), targetInst = getClosestInstanceFromNode(nativeEventTarget); 20515 null === targetInst || "number" != typeof targetInst.tag || isFiberMounted(targetInst) || (targetInst = null); 20516 var bookKeeping = getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst); 20517 try { 20518 batchedUpdates(handleTopLevel, bookKeeping); 20519 } finally { 20520 releaseTopLevelCallbackBookKeeping(bookKeeping); 20521 } 20522 } 20523 } 20524 function getListeningForDocument(mountAt) { 20525 return Object.prototype.hasOwnProperty.call(mountAt, topListenersIDKey) || (mountAt[topListenersIDKey] = reactTopListenersCounter++, 20526 alreadyListeningTo[mountAt[topListenersIDKey]] = {}), alreadyListeningTo[mountAt[topListenersIDKey]]; 20527 } 20528 function listenTo(registrationName, mountAt) { 20529 for (var isListening = getListeningForDocument(mountAt), dependencies = registrationNameDependencies[registrationName], i = 0; i < dependencies.length; i++) { 20530 var dependency = dependencies[i]; 20531 if (!isListening.hasOwnProperty(dependency) || !isListening[dependency]) { 20532 switch (dependency) { 20533 case TOP_SCROLL: 20534 trapCapturedEvent(TOP_SCROLL, mountAt); 20535 break; 20536 20537 case TOP_FOCUS: 20538 case TOP_BLUR: 20539 trapCapturedEvent(TOP_FOCUS, mountAt), trapCapturedEvent(TOP_BLUR, mountAt), isListening[TOP_BLUR] = !0, 20540 isListening[TOP_FOCUS] = !0; 20541 break; 20542 20543 case TOP_CANCEL: 20544 case TOP_CLOSE: 20545 isEventSupported(getRawEventName(dependency), !0) && trapCapturedEvent(dependency, mountAt); 20546 break; 20547 20548 case TOP_INVALID: 20549 case TOP_SUBMIT: 20550 case TOP_RESET: 20551 break; 20552 20553 default: 20554 -1 !== mediaEventTypes.indexOf(dependency) || trapBubbledEvent(dependency, mountAt); 20555 } 20556 isListening[dependency] = !0; 20557 } 20558 } 20559 } 20560 function isListeningToAllDependencies(registrationName, mountAt) { 20561 for (var isListening = getListeningForDocument(mountAt), dependencies = registrationNameDependencies[registrationName], i = 0; i < dependencies.length; i++) { 20562 var dependency = dependencies[i]; 20563 if (!isListening.hasOwnProperty(dependency) || !isListening[dependency]) return !1; 20564 } 20565 return !0; 20566 } 20567 function getLeafNode(node) { 20568 for (;node && node.firstChild; ) node = node.firstChild; 20569 return node; 20570 } 20571 function getSiblingNode(node) { 20572 for (;node; ) { 20573 if (node.nextSibling) return node.nextSibling; 20574 node = node.parentNode; 20575 } 20576 } 20577 function getNodeForCharacterOffset(root, offset) { 20578 for (var node = getLeafNode(root), nodeStart = 0, nodeEnd = 0; node; ) { 20579 if (node.nodeType === TEXT_NODE) { 20580 if (nodeEnd = nodeStart + node.textContent.length, nodeStart <= offset && nodeEnd >= offset) return { 20581 node: node, 20582 offset: offset - nodeStart 20583 }; 20584 nodeStart = nodeEnd; 20585 } 20586 node = getLeafNode(getSiblingNode(node)); 20587 } 20588 } 20589 function getOffsets(outerNode) { 20590 var selection = window.getSelection && window.getSelection(); 20591 if (!selection || 0 === selection.rangeCount) return null; 20592 var anchorNode = selection.anchorNode, anchorOffset = selection.anchorOffset, focusNode = selection.focusNode, focusOffset = selection.focusOffset; 20593 try { 20594 anchorNode.nodeType, focusNode.nodeType; 20595 } catch (e) { 20596 return null; 20597 } 20598 return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset); 20599 } 20600 function getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset) { 20601 var length = 0, start = -1, end = -1, indexWithinAnchor = 0, indexWithinFocus = 0, node = outerNode, parentNode = null; 20602 outer: for (;;) { 20603 for (var next = null; ;) { 20604 if (node !== anchorNode || 0 !== anchorOffset && node.nodeType !== TEXT_NODE || (start = length + anchorOffset), 20605 node !== focusNode || 0 !== focusOffset && node.nodeType !== TEXT_NODE || (end = length + focusOffset), 20606 node.nodeType === TEXT_NODE && (length += node.nodeValue.length), null === (next = node.firstChild)) break; 20607 parentNode = node, node = next; 20608 } 20609 for (;;) { 20610 if (node === outerNode) break outer; 20611 if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset && (start = length), 20612 parentNode === focusNode && ++indexWithinFocus === focusOffset && (end = length), 20613 null !== (next = node.nextSibling)) break; 20614 node = parentNode, parentNode = node.parentNode; 20615 } 20616 node = next; 20617 } 20618 return -1 === start || -1 === end ? null : { 20619 start: start, 20620 end: end 20621 }; 20622 } 20623 function setOffsets(node, offsets) { 20624 if (window.getSelection) { 20625 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); 20626 if (!selection.extend && start > end) { 20627 var temp = end; 20628 end = start, start = temp; 20629 } 20630 var startMarker = getNodeForCharacterOffset(node, start), endMarker = getNodeForCharacterOffset(node, end); 20631 if (startMarker && endMarker) { 20632 if (1 === selection.rangeCount && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) return; 20633 var range = document.createRange(); 20634 range.setStart(startMarker.node, startMarker.offset), selection.removeAllRanges(), 20635 start > end ? (selection.addRange(range), selection.extend(endMarker.node, endMarker.offset)) : (range.setEnd(endMarker.node, endMarker.offset), 20636 selection.addRange(range)); 20637 } 20638 } 20639 } 20640 function isInDocument(node) { 20641 return containsNode(document.documentElement, node); 20642 } 20643 function hasSelectionCapabilities(elem) { 20644 var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); 20645 return nodeName && ("input" === nodeName && "text" === elem.type || "textarea" === nodeName || "true" === elem.contentEditable); 20646 } 20647 function getSelectionInformation() { 20648 var focusedElem = getActiveElement(); 20649 return { 20650 focusedElem: focusedElem, 20651 selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection$1(focusedElem) : null 20652 }; 20653 } 20654 function restoreSelection(priorSelectionInformation) { 20655 var curFocusedElem = getActiveElement(), priorFocusedElem = priorSelectionInformation.focusedElem, priorSelectionRange = priorSelectionInformation.selectionRange; 20656 if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) { 20657 hasSelectionCapabilities(priorFocusedElem) && setSelection(priorFocusedElem, priorSelectionRange); 20658 for (var ancestors = [], ancestor = priorFocusedElem; ancestor = ancestor.parentNode; ) ancestor.nodeType === ELEMENT_NODE && ancestors.push({ 20659 element: ancestor, 20660 left: ancestor.scrollLeft, 20661 top: ancestor.scrollTop 20662 }); 20663 priorFocusedElem.focus(); 20664 for (var i = 0; i < ancestors.length; i++) { 20665 var info = ancestors[i]; 20666 info.element.scrollLeft = info.left, info.element.scrollTop = info.top; 20667 } 20668 } 20669 } 20670 function getSelection$1(input) { 20671 return ("selectionStart" in input ? { 20672 start: input.selectionStart, 20673 end: input.selectionEnd 20674 } : getOffsets(input)) || { 20675 start: 0, 20676 end: 0 20677 }; 20678 } 20679 function setSelection(input, offsets) { 20680 var start = offsets.start, end = offsets.end; 20681 void 0 === end && (end = start), "selectionStart" in input ? (input.selectionStart = start, 20682 input.selectionEnd = Math.min(end, input.value.length)) : setOffsets(input, offsets); 20683 } 20684 function getSelection(node) { 20685 if ("selectionStart" in node && hasSelectionCapabilities(node)) return { 20686 start: node.selectionStart, 20687 end: node.selectionEnd 20688 }; 20689 if (window.getSelection) { 20690 var selection = window.getSelection(); 20691 return { 20692 anchorNode: selection.anchorNode, 20693 anchorOffset: selection.anchorOffset, 20694 focusNode: selection.focusNode, 20695 focusOffset: selection.focusOffset 20696 }; 20697 } 20698 } 20699 function constructSelectEvent(nativeEvent, nativeEventTarget) { 20700 if (mouseDown || null == activeElement$1 || activeElement$1 !== getActiveElement()) return null; 20701 var currentSelection = getSelection(activeElement$1); 20702 if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) { 20703 lastSelection = currentSelection; 20704 var syntheticEvent = SyntheticEvent$1.getPooled(eventTypes$3.select, activeElementInst$1, nativeEvent, nativeEventTarget); 20705 return syntheticEvent.type = "select", syntheticEvent.target = activeElement$1, 20706 accumulateTwoPhaseDispatches(syntheticEvent), syntheticEvent; 20707 } 20708 return null; 20709 } 20710 function flattenChildren(children) { 20711 var content = ""; 20712 return React.Children.forEach(children, function(child) { 20713 null != child && ("string" != typeof child && "number" != typeof child || (content += child)); 20714 }), content; 20715 } 20716 function validateProps(element, props) { 20717 null == props.selected || didWarnSelectedSetOnOption || (warning(!1, "Use the ` + ("`" + `defaultValue`)) + ("`" + (` or ` + "`"))))) + ((((`value` + ("`" + ` props on <select> instead of setting `)) + ("`" + (`selected` + "`"))) + ((` on <option>."), 20718 didWarnSelectedSetOnOption = !0); 20719 } 20720 function postMountWrapper$1(element, props) { 20721 null != props.value && element.setAttribute("value", props.value); 20722 } 20723 function getHostProps$1(element, props) { 20724 var hostProps = _assign({ 20725 children: void 0 20726 }, props), content = flattenChildren(props.children); 20727 return content && (hostProps.children = content), hostProps; 20728 } 20729 function getDeclarationErrorAddendum() { 20730 var ownerName = getCurrentFiberOwnerName$3(); 20731 return ownerName ? "\n\nCheck the render method of ` + ("`" + `" + ownerName + "`)) + ("`" + (`." : ""; 20732 } 20733 function checkSelectPropTypes(props) { 20734 ReactControlledValuePropTypes.checkPropTypes("select", props, getCurrentFiberStackAddendum$3); 20735 for (var i = 0; i < valuePropNames.length; i++) { 20736 var propName = valuePropNames[i]; 20737 if (null != props[propName]) { 20738 var isArray = Array.isArray(props[propName]); 20739 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()); 20740 } 20741 } 20742 } 20743 function updateOptions(node, multiple, propValue, setDefaultSelected) { 20744 var options = node.options; 20745 if (multiple) { 20746 for (var selectedValues = propValue, selectedValue = {}, i = 0; i < selectedValues.length; i++) selectedValue["$" + selectedValues[i]] = !0; 20747 for (var _i = 0; _i < options.length; _i++) { 20748 var selected = selectedValue.hasOwnProperty("$" + options[_i].value); 20749 options[_i].selected !== selected && (options[_i].selected = selected), selected && setDefaultSelected && (options[_i].defaultSelected = !0); 20750 } 20751 } else { 20752 for (var _selectedValue = "" + propValue, defaultSelected = null, _i2 = 0; _i2 < options.length; _i2++) { 20753 if (options[_i2].value === _selectedValue) return options[_i2].selected = !0, void (setDefaultSelected && (options[_i2].defaultSelected = !0)); 20754 null !== defaultSelected || options[_i2].disabled || (defaultSelected = options[_i2]); 20755 } 20756 null !== defaultSelected && (defaultSelected.selected = !0); 20757 } 20758 } 20759 function getHostProps$2(element, props) { 20760 return _assign({}, props, { 20761 value: void 0 20762 }); 20763 } 20764 function initWrapperState$1(element, props) { 20765 var node = element; 20766 checkSelectPropTypes(props); 20767 var value = props.value; 20768 node._wrapperState = { 20769 initialValue: null != value ? value : props.defaultValue, 20770 wasMultiple: !!props.multiple 20771 }, 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/反应控制组件”), 20772 didWarnValueDefaultValue$1 = !0); 20773 } 20774 function postMountWrapper$2(element, props) { 20775 var node = element; 20776 node.multiple = !!props.multiple; 20777 var value = props.value; 20778 null != value ? updateOptions(node, !!props.multiple, value, !1) : null != props.defaultValue && updateOptions(node, !!props.multiple, props.defaultValue, !0); 20779 } 20780 function postUpdateWrapper(element, props) { 20781 var node = element; 20782 node._wrapperState.initialValue = void 0; 20783 var wasMultiple = node._wrapperState.wasMultiple; 20784 node._wrapperState.wasMultiple = !!props.multiple; 20785 var value = props.value; 20786 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)); 20787 } 20788 function restoreControlledState$2(element, props) { 20789 var node = element, value = props.value; 20790 null != value && updateOptions(node, !!props.multiple, value, !1); 20791 } 20792 function getHostProps$3(element, props) { 20793 var node = element; 20794 return null != props.dangerouslySetInnerHTML && invariant(!1, "` + "`")) + (`dangerouslySetInnerHTML` + ("`" + ` does not make sense on <textarea>."), 20795 _assign({}, props, { 20796 value: void 0, 20797 defaultValue: void 0, 20798 children: "" + node._wrapperState.initialValue 20799 }); 20800 } 20801 function initWrapperState$2(element, props) { 20802 var node = element; 20803 ReactControlledValuePropTypes.checkPropTypes("textarea", props, getCurrentFiberStackAddendum$4), 20804 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/反应控制组件”), 20805 didWarnValDefaultVal = !0); 20806 var initialValue = props.value; 20807 if (null == initialValue) { 20808 var defaultValue = props.defaultValue, children = props.children; 20809 null != children && (warning(!1, "Use the `))) + (("`" + (`defaultValue` + "`")) + (` or ` + ("`" + `value`)))) + ((("`" + (` props instead of setting children on <textarea>."), 20810 null != defaultValue && invariant(!1, "If you supply ` + "`")) + (`defaultValue` + ("`" + ` on a <textarea>, do not pass children."), 20811 Array.isArray(children) && (children.length <= 1 || invariant(!1, "<textarea> can only have at most one child."), 20812 children = children[0]), defaultValue = "" + children), null == defaultValue && (defaultValue = ""), 20813 initialValue = defaultValue; 20814 } 20815 node._wrapperState = { 20816 initialValue: "" + initialValue 20817 }; 20818 } 20819 function updateWrapper$1(element, props) { 20820 var node = element, value = props.value; 20821 if (null != value) { 20822 var newValue = "" + value; 20823 newValue !== node.value && (node.value = newValue), null == props.defaultValue && (node.defaultValue = newValue); 20824 } 20825 null != props.defaultValue && (node.defaultValue = props.defaultValue); 20826 } 20827 function postMountWrapper$3(element, props) { 20828 var node = element, textContent = node.textContent; 20829 textContent === node._wrapperState.initialValue && (node.value = textContent); 20830 } 20831 function restoreControlledState$3(element, props) { 20832 updateWrapper$1(element, props); 20833 } 20834 function getIntrinsicNamespace(type) { 20835 switch (type) { 20836 case "svg": 20837 return SVG_NAMESPACE; 20838 20839 case "math": 20840 return MATH_NAMESPACE; 20841 20842 default: 20843 return HTML_NAMESPACE$1; 20844 } 20845 } 20846 function getChildNamespace(parentNamespace, type) { 20847 return null == parentNamespace || parentNamespace === HTML_NAMESPACE$1 ? getIntrinsicNamespace(type) : parentNamespace === SVG_NAMESPACE && "foreignObject" === type ? HTML_NAMESPACE$1 : parentNamespace; 20848 } 20849 function prefixKey(prefix, key) { 20850 return prefix + key.charAt(0).toUpperCase() + key.substring(1); 20851 } 20852 function dangerousStyleValue(name, value, isCustomProperty) { 20853 return null == value || "boolean" == typeof value || "" === value ? "" : isCustomProperty || "number" != typeof value || 0 === value || isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name] ? ("" + value).trim() : value + "px"; 20854 } 20855 function createDangerousStringForStyles(styles) { 20856 var serialized = "", delimiter = ""; 20857 for (var styleName in styles) if (styles.hasOwnProperty(styleName)) { 20858 var styleValue = styles[styleName]; 20859 if (null != styleValue) { 20860 var isCustomProperty = 0 === styleName.indexOf("--"); 20861 serialized += delimiter + hyphenateStyleName(styleName) + ":", serialized += dangerousStyleValue(styleName, styleValue, isCustomProperty), 20862 delimiter = ";"; 20863 } 20864 } 20865 return serialized || null; 20866 } 20867 function setValueForStyles(node, styles, getStack) { 20868 var style = node.style; 20869 for (var styleName in styles) if (styles.hasOwnProperty(styleName)) { 20870 var isCustomProperty = 0 === styleName.indexOf("--"); 20871 isCustomProperty || warnValidStyle$1(styleName, styles[styleName], getStack); 20872 var styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty); 20873 "float" === styleName && (styleName = "cssFloat"), isCustomProperty ? style.setProperty(styleName, styleValue) : style[styleName] = styleValue; 20874 } 20875 } 20876 function assertValidProps(tag, props, getStack) { 20877 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()), 20878 null != props.dangerouslySetInnerHTML && (null != props.children && invariant(!1, "Can only set one of ` + "`")) + (`children` + ("`" + ` or `))) + (("`" + (`props.dangerouslySetInnerHTML` + "`")) + (`."), 20879 "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了解更多信息。“), 20880 !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()), 20881 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())); 20882 } 20883 function isCustomComponent(tagName, props) { 20884 if (-1 === tagName.indexOf("-")) return "string" == typeof props.is; 20885 switch (tagName) { 20886 case "annotation-xml": 20887 case "color-profile": 20888 case "font-face": 20889 case "font-face-src": 20890 case "font-face-uri": 20891 case "font-face-format": 20892 case "font-face-name": 20893 case "missing-glyph": 20894 return !1; 20895 20896 default: 20897 return !0; 20898 } 20899 } 20900 function getStackAddendum() { 20901 var stack = ReactDebugCurrentFrame.getStackAddendum(); 20902 return null != stack ? stack : ""; 20903 } 20904 function validateProperty(tagName, name) { 20905 if (hasOwnProperty.call(warnedProperties, name) && warnedProperties[name]) return !0; 20906 if (rARIACamel.test(name)) { 20907 var ariaName = "aria-" + name.slice(4).toLowerCase(), correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null; 20908 if (null == correctName) return warning(!1, "Invalid ARIA attribute `))) + (("`" + (`%s` + "`")) + (`. ARIA attributes follow the pattern aria-* and must be lowercase.%s", name, getStackAddendum()), 20909 warnedProperties[name] = !0, !0; 20910 if (name !== correctName) return warning(!1, "Invalid ARIA attribute ` + ("`" + `%s`)))) + ((("`" + (`. Did you mean ` + "`")) + (`%s` + ("`" + `?%s", name, correctName, getStackAddendum()), 20911 warnedProperties[name] = !0, !0; 20912 } 20913 if (rARIA.test(name)) { 20914 var lowerCasedName = name.toLowerCase(), standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null; 20915 if (null == standardName) return warnedProperties[name] = !0, !1; 20916 if (name !== standardName) return warning(!1, "Unknown ARIA attribute `))) + (("`" + (`%s` + "`")) + (`. Did you mean ` + ("`" + `%s`))))) + (((("`" + (`?%s", name, standardName, getStackAddendum()), 20917 warnedProperties[name] = !0, !0; 20918 } 20919 return !0; 20920 } 20921 function warnInvalidARIAProps(type, props) { 20922 var invalidProps = []; 20923 for (var key in props) { 20924 validateProperty(type, key) || invalidProps.push(key); 20925 } 20926 var unknownPropString = invalidProps.map(function(prop) { 20927 return "` + "`")) + (`" + prop + "` + ("`" + `"; 20928 }).join(", "); 20929 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()); 20930 } 20931 function validateProperties(type, props) { 20932 isCustomComponent(type, props) || warnInvalidARIAProps(type, props); 20933 } 20934 function getStackAddendum$1() { 20935 var stack = ReactDebugCurrentFrame.getStackAddendum(); 20936 return null != stack ? stack : ""; 20937 } 20938 function validateProperties$1(type, props) { 20939 "input" !== type && "textarea" !== type && "select" !== type || null == props || null !== props.value || didWarnValueNull || (didWarnValueNull = !0, 20940 "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())); 20941 } 20942 function getStackAddendum$2() { 20943 var stack = ReactDebugCurrentFrame.getStackAddendum(); 20944 return null != stack ? stack : ""; 20945 } 20946 function validateProperties$2(type, props, canUseEventSystem) { 20947 isCustomComponent(type, props) || warnUnknownProperties(type, props, canUseEventSystem); 20948 } 20949 function ensureListeningTo(rootContainerElement, registrationName) { 20950 listenTo(registrationName, rootContainerElement.nodeType === DOCUMENT_NODE || rootContainerElement.nodeType === DOCUMENT_FRAGMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument); 20951 } 20952 function getOwnerDocumentFromRootContainer(rootContainerElement) { 20953 return rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument; 20954 } 20955 function trapClickOnNonInteractiveElement(node) { 20956 node.onclick = emptyFunction; 20957 } 20958 function setInitialDOMProperties(tag, domElement, rootContainerElement, nextProps, isCustomComponentTag) { 20959 for (var propKey in nextProps) if (nextProps.hasOwnProperty(propKey)) { 20960 var nextProp = nextProps[propKey]; 20961 if (propKey === STYLE) nextProp && Object.freeze(nextProp), setValueForStyles(domElement, nextProp, getStack); else if (propKey === DANGEROUSLY_SET_INNER_HTML) { 20962 var nextHtml = nextProp ? nextProp[HTML] : void 0; 20963 null != nextHtml && setInnerHTML(domElement, nextHtml); 20964 } else if (propKey === CHILDREN) if ("string" == typeof nextProp) { 20965 var canSetTextContent = "textarea" !== tag || "" !== nextProp; 20966 canSetTextContent && setTextContent(domElement, nextProp); 20967 } 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), 20968 ensureListeningTo(rootContainerElement, propKey)) : null != nextProp && setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag)); 20969 } 20970 } 20971 function updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) { 20972 for (var i = 0; i < updatePayload.length; i += 2) { 20973 var propKey = updatePayload[i], propValue = updatePayload[i + 1]; 20974 propKey === STYLE ? setValueForStyles(domElement, propValue, getStack) : propKey === DANGEROUSLY_SET_INNER_HTML ? setInnerHTML(domElement, propValue) : propKey === CHILDREN ? setTextContent(domElement, propValue) : setValueForProperty(domElement, propKey, propValue, isCustomComponentTag); 20975 } 20976 } 20977 function createElement$1(type, props, rootContainerElement, parentNamespace) { 20978 var isCustomComponentTag = void 0, ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement), domElement = void 0, namespaceURI = parentNamespace; 20979 if (namespaceURI === HTML_NAMESPACE && (namespaceURI = getIntrinsicNamespace(type)), 20980 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), 20981 "script" === type) { 20982 var div = ownerDocument.createElement("div"); 20983 div.innerHTML = "<script><\/script>"; 20984 var firstChild = div.firstChild; 20985 domElement = div.removeChild(firstChild); 20986 } else domElement = "string" == typeof props.is ? ownerDocument.createElement(type, { 20987 is: props.is 20988 }) : ownerDocument.createElement(type); else domElement = ownerDocument.createElementNS(namespaceURI, type); 20989 return namespaceURI === HTML_NAMESPACE && (isCustomComponentTag || "[object HTMLUnknownElement]" !== Object.prototype.toString.call(domElement) || Object.prototype.hasOwnProperty.call(warnedUnknownTags, type) || (warnedUnknownTags[type] = !0, 20990 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))), 20991 domElement; 20992 } 20993 function createTextNode$1(text, rootContainerElement) { 20994 return getOwnerDocumentFromRootContainer(rootContainerElement).createTextNode(text); 20995 } 20996 function setInitialProperties$1(domElement, tag, rawProps, rootContainerElement) { 20997 var isCustomComponentTag = isCustomComponent(tag, rawProps); 20998 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"), 20999 didWarnShadyDOM = !0); 21000 var props = void 0; 21001 switch (tag) { 21002 case "iframe": 21003 case "object": 21004 trapBubbledEvent(TOP_LOAD, domElement), props = rawProps; 21005 break; 21006 21007 case "video": 21008 case "audio": 21009 for (var i = 0; i < mediaEventTypes.length; i++) trapBubbledEvent(mediaEventTypes[i], domElement); 21010 props = rawProps; 21011 break; 21012 21013 case "source": 21014 trapBubbledEvent(TOP_ERROR, domElement), props = rawProps; 21015 break; 21016 21017 case "img": 21018 case "image": 21019 case "link": 21020 trapBubbledEvent(TOP_ERROR, domElement), trapBubbledEvent(TOP_LOAD, domElement), 21021 props = rawProps; 21022 break; 21023 21024 case "form": 21025 trapBubbledEvent(TOP_RESET, domElement), trapBubbledEvent(TOP_SUBMIT, domElement), 21026 props = rawProps; 21027 break; 21028 21029 case "details": 21030 trapBubbledEvent(TOP_TOGGLE, domElement), props = rawProps; 21031 break; 21032 21033 case "input": 21034 initWrapperState(domElement, rawProps), props = getHostProps(domElement, rawProps), 21035 trapBubbledEvent(TOP_INVALID, domElement), ensureListeningTo(rootContainerElement, "onChange"); 21036 break; 21037 21038 case "option": 21039 validateProps(domElement, rawProps), props = getHostProps$1(domElement, rawProps); 21040 break; 21041 21042 case "select": 21043 initWrapperState$1(domElement, rawProps), props = getHostProps$2(domElement, rawProps), 21044 trapBubbledEvent(TOP_INVALID, domElement), ensureListeningTo(rootContainerElement, "onChange"); 21045 break; 21046 21047 case "textarea": 21048 initWrapperState$2(domElement, rawProps), props = getHostProps$3(domElement, rawProps), 21049 trapBubbledEvent(TOP_INVALID, domElement), ensureListeningTo(rootContainerElement, "onChange"); 21050 break; 21051 21052 default: 21053 props = rawProps; 21054 } 21055 switch (assertValidProps(tag, props, getStack), setInitialDOMProperties(tag, domElement, rootContainerElement, props, isCustomComponentTag), 21056 tag) { 21057 case "input": 21058 track(domElement), postMountWrapper(domElement, rawProps); 21059 break; 21060 21061 case "textarea": 21062 track(domElement), postMountWrapper$3(domElement, rawProps); 21063 break; 21064 21065 case "option": 21066 postMountWrapper$1(domElement, rawProps); 21067 break; 21068 21069 case "select": 21070 postMountWrapper$2(domElement, rawProps); 21071 break; 21072 21073 default: 21074 "function" == typeof props.onClick && trapClickOnNonInteractiveElement(domElement); 21075 } 21076 } 21077 function diffProperties$1(domElement, tag, lastRawProps, nextRawProps, rootContainerElement) { 21078 validatePropertiesInDevelopment(tag, nextRawProps); 21079 var updatePayload = null, lastProps = void 0, nextProps = void 0; 21080 switch (tag) { 21081 case "input": 21082 lastProps = getHostProps(domElement, lastRawProps), nextProps = getHostProps(domElement, nextRawProps), 21083 updatePayload = []; 21084 break; 21085 21086 case "option": 21087 lastProps = getHostProps$1(domElement, lastRawProps), nextProps = getHostProps$1(domElement, nextRawProps), 21088 updatePayload = []; 21089 break; 21090 21091 case "select": 21092 lastProps = getHostProps$2(domElement, lastRawProps), nextProps = getHostProps$2(domElement, nextRawProps), 21093 updatePayload = []; 21094 break; 21095 21096 case "textarea": 21097 lastProps = getHostProps$3(domElement, lastRawProps), nextProps = getHostProps$3(domElement, nextRawProps), 21098 updatePayload = []; 21099 break; 21100 21101 default: 21102 lastProps = lastRawProps, nextProps = nextRawProps, "function" != typeof lastProps.onClick && "function" == typeof nextProps.onClick && trapClickOnNonInteractiveElement(domElement); 21103 } 21104 assertValidProps(tag, nextProps, getStack); 21105 var propKey = void 0, styleName = void 0, styleUpdates = null; 21106 for (propKey in lastProps) if (!nextProps.hasOwnProperty(propKey) && lastProps.hasOwnProperty(propKey) && null != lastProps[propKey]) if (propKey === STYLE) { 21107 var lastStyle = lastProps[propKey]; 21108 for (styleName in lastStyle) lastStyle.hasOwnProperty(styleName) && (styleUpdates || (styleUpdates = {}), 21109 styleUpdates[styleName] = ""); 21110 } 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)); 21111 for (propKey in nextProps) { 21112 var nextProp = nextProps[propKey], lastProp = null != lastProps ? lastProps[propKey] : void 0; 21113 if (nextProps.hasOwnProperty(propKey) && nextProp !== lastProp && (null != nextProp || null != lastProp)) if (propKey === STYLE) if (nextProp && Object.freeze(nextProp), 21114 lastProp) { 21115 for (styleName in lastProp) !lastProp.hasOwnProperty(styleName) || nextProp && nextProp.hasOwnProperty(styleName) || (styleUpdates || (styleUpdates = {}), 21116 styleUpdates[styleName] = ""); 21117 for (styleName in nextProp) nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName] && (styleUpdates || (styleUpdates = {}), 21118 styleUpdates[styleName] = nextProp[styleName]); 21119 } else styleUpdates || (updatePayload || (updatePayload = []), updatePayload.push(propKey, styleUpdates)), 21120 styleUpdates = nextProp; else if (propKey === DANGEROUSLY_SET_INNER_HTML) { 21121 var nextHtml = nextProp ? nextProp[HTML] : void 0, lastHtml = lastProp ? lastProp[HTML] : void 0; 21122 null != nextHtml && lastHtml !== nextHtml && (updatePayload = updatePayload || []).push(propKey, "" + nextHtml); 21123 } 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), 21124 ensureListeningTo(rootContainerElement, propKey)), updatePayload || lastProp === nextProp || (updatePayload = [])) : (updatePayload = updatePayload || []).push(propKey, nextProp)); 21125 } 21126 return styleUpdates && (updatePayload = updatePayload || []).push(STYLE, styleUpdates), 21127 updatePayload; 21128 } 21129 function updateProperties$1(domElement, updatePayload, tag, lastRawProps, nextRawProps) { 21130 switch ("input" === tag && "radio" === nextRawProps.type && null != nextRawProps.name && updateChecked(domElement, nextRawProps), 21131 updateDOMProperties(domElement, updatePayload, isCustomComponent(tag, lastRawProps), isCustomComponent(tag, nextRawProps)), 21132 tag) { 21133 case "input": 21134 updateWrapper(domElement, nextRawProps); 21135 break; 21136 21137 case "textarea": 21138 updateWrapper$1(domElement, nextRawProps); 21139 break; 21140 21141 case "select": 21142 postUpdateWrapper(domElement, nextRawProps); 21143 } 21144 } 21145 function getPossibleStandardName(propName) { 21146 var lowerCasedName = propName.toLowerCase(); 21147 return possibleStandardNames.hasOwnProperty(lowerCasedName) ? possibleStandardNames[lowerCasedName] || null : null; 21148 } 21149 function diffHydratedProperties$1(domElement, tag, rawProps, parentNamespace, rootContainerElement) { 21150 var isCustomComponentTag = void 0, extraAttributeNames = void 0; 21151 switch (suppressHydrationWarning = !0 === rawProps[SUPPRESS_HYDRATION_WARNING$1], 21152 isCustomComponentTag = isCustomComponent(tag, rawProps), validatePropertiesInDevelopment(tag, rawProps), 21153 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"), 21154 didWarnShadyDOM = !0), tag) { 21155 case "iframe": 21156 case "object": 21157 trapBubbledEvent(TOP_LOAD, domElement); 21158 break; 21159 21160 case "video": 21161 case "audio": 21162 for (var i = 0; i < mediaEventTypes.length; i++) trapBubbledEvent(mediaEventTypes[i], domElement); 21163 break; 21164 21165 case "source": 21166 trapBubbledEvent(TOP_ERROR, domElement); 21167 break; 21168 21169 case "img": 21170 case "image": 21171 case "link": 21172 trapBubbledEvent(TOP_ERROR, domElement), trapBubbledEvent(TOP_LOAD, domElement); 21173 break; 21174 21175 case "form": 21176 trapBubbledEvent(TOP_RESET, domElement), trapBubbledEvent(TOP_SUBMIT, domElement); 21177 break; 21178 21179 case "details": 21180 trapBubbledEvent(TOP_TOGGLE, domElement); 21181 break; 21182 21183 case "input": 21184 initWrapperState(domElement, rawProps), trapBubbledEvent(TOP_INVALID, domElement), 21185 ensureListeningTo(rootContainerElement, "onChange"); 21186 break; 21187 21188 case "option": 21189 validateProps(domElement, rawProps); 21190 break; 21191 21192 case "select": 21193 initWrapperState$1(domElement, rawProps), trapBubbledEvent(TOP_INVALID, domElement), 21194 ensureListeningTo(rootContainerElement, "onChange"); 21195 break; 21196 21197 case "textarea": 21198 initWrapperState$2(domElement, rawProps), trapBubbledEvent(TOP_INVALID, domElement), 21199 ensureListeningTo(rootContainerElement, "onChange"); 21200 } 21201 assertValidProps(tag, rawProps, getStack), extraAttributeNames = new Set(); 21202 for (var attributes = domElement.attributes, _i = 0; _i < attributes.length; _i++) { 21203 switch (attributes[_i].name.toLowerCase()) { 21204 case "data-reactroot": 21205 case "value": 21206 case "checked": 21207 case "selected": 21208 break; 21209 21210 default: 21211 extraAttributeNames.add(attributes[_i].name); 21212 } 21213 } 21214 var updatePayload = null; 21215 for (var propKey in rawProps) if (rawProps.hasOwnProperty(propKey)) { 21216 var nextProp = rawProps[propKey]; 21217 if (propKey === CHILDREN) "string" == typeof nextProp ? domElement.textContent !== nextProp && (suppressHydrationWarning || warnForTextDifference(domElement.textContent, nextProp), 21218 updatePayload = [ CHILDREN, nextProp ]) : "number" == typeof nextProp && domElement.textContent !== "" + nextProp && (suppressHydrationWarning || warnForTextDifference(domElement.textContent, nextProp), 21219 updatePayload = [ CHILDREN, "" + nextProp ]); else if (registrationNameModules.hasOwnProperty(propKey)) null != nextProp && ("function" != typeof nextProp && warnForInvalidEventListener(propKey, nextProp), 21220 ensureListeningTo(rootContainerElement, propKey)); else if ("boolean" == typeof isCustomComponentTag) { 21221 var serverValue = void 0, propertyInfo = getPropertyInfo(propKey); 21222 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) { 21223 var rawHtml = nextProp ? nextProp[HTML] || "" : "", serverHTML = domElement.innerHTML, expectedHTML = normalizeHTML(domElement, rawHtml); 21224 expectedHTML !== serverHTML && warnForPropDifference(propKey, serverHTML, expectedHTML); 21225 } else if (propKey === STYLE) { 21226 extraAttributeNames.delete(propKey); 21227 var expectedStyle = createDangerousStringForStyles(nextProp); 21228 serverValue = domElement.getAttribute("style"), expectedStyle !== serverValue && warnForPropDifference(propKey, serverValue, expectedStyle); 21229 } else if (isCustomComponentTag) extraAttributeNames.delete(propKey.toLowerCase()), 21230 serverValue = getValueForAttribute(domElement, propKey, nextProp), nextProp !== serverValue && warnForPropDifference(propKey, serverValue, nextProp); else if (!shouldIgnoreAttribute(propKey, propertyInfo, isCustomComponentTag) && !shouldRemoveAttribute(propKey, nextProp, propertyInfo, isCustomComponentTag)) { 21231 var isMismatchDueToBadCasing = !1; 21232 if (null !== propertyInfo) extraAttributeNames.delete(propertyInfo.attributeName), 21233 serverValue = getValueForProperty(domElement, propKey, nextProp, propertyInfo); else { 21234 var ownNamespace = parentNamespace; 21235 if (ownNamespace === HTML_NAMESPACE && (ownNamespace = getIntrinsicNamespace(tag)), 21236 ownNamespace === HTML_NAMESPACE) extraAttributeNames.delete(propKey.toLowerCase()); else { 21237 var standardName = getPossibleStandardName(propKey); 21238 null !== standardName && standardName !== propKey && (isMismatchDueToBadCasing = !0, 21239 extraAttributeNames.delete(standardName)), extraAttributeNames.delete(propKey); 21240 } 21241 serverValue = getValueForAttribute(domElement, propKey, nextProp); 21242 } 21243 nextProp === serverValue || isMismatchDueToBadCasing || warnForPropDifference(propKey, serverValue, nextProp); 21244 } 21245 } 21246 } 21247 switch (extraAttributeNames.size > 0 && !suppressHydrationWarning && warnForExtraAttributes(extraAttributeNames), 21248 tag) { 21249 case "input": 21250 track(domElement), postMountWrapper(domElement, rawProps); 21251 break; 21252 21253 case "textarea": 21254 track(domElement), postMountWrapper$3(domElement, rawProps); 21255 break; 21256 21257 case "select": 21258 case "option": 21259 break; 21260 21261 default: 21262 "function" == typeof rawProps.onClick && trapClickOnNonInteractiveElement(domElement); 21263 } 21264 return updatePayload; 21265 } 21266 function diffHydratedText$1(textNode, text) { 21267 return textNode.nodeValue !== text; 21268 } 21269 function warnForUnmatchedText$1(textNode, text) { 21270 warnForTextDifference(textNode.nodeValue, text); 21271 } 21272 function warnForDeletedHydratableElement$1(parentNode, child) { 21273 didWarnInvalidHydration || (didWarnInvalidHydration = !0, warning(!1, "Did not expect server HTML to contain a <%s> in <%s>.", child.nodeName.toLowerCase(), parentNode.nodeName.toLowerCase())); 21274 } 21275 function warnForDeletedHydratableText$1(parentNode, child) { 21276 didWarnInvalidHydration || (didWarnInvalidHydration = !0, warning(!1, 'Did not expect server HTML to contain the text node "%s" in <%s>.', child.nodeValue, parentNode.nodeName.toLowerCase())); 21277 } 21278 function warnForInsertedHydratedElement$1(parentNode, tag, props) { 21279 didWarnInvalidHydration || (didWarnInvalidHydration = !0, warning(!1, "Expected server HTML to contain a matching <%s> in <%s>.", tag, parentNode.nodeName.toLowerCase())); 21280 } 21281 function warnForInsertedHydratedText$1(parentNode, text) { 21282 "" !== text && (didWarnInvalidHydration || (didWarnInvalidHydration = !0, warning(!1, 'Expected server HTML to contain a matching text node for "%s" in <%s>.', text, parentNode.nodeName.toLowerCase()))); 21283 } 21284 function restoreControlledState$1(domElement, tag, props) { 21285 switch (tag) { 21286 case "input": 21287 return void restoreControlledState(domElement, props); 21288 21289 case "textarea": 21290 return void restoreControlledState$3(domElement, props); 21291 21292 case "select": 21293 return void restoreControlledState$2(domElement, props); 21294 } 21295 } 21296 function shim() { 21297 invariant(!1, "The current renderer does not support persistence. This error is likely caused by a bug in React. Please file an issue."); 21298 } 21299 function shouldAutoFocusHostComponent(type, props) { 21300 switch (type) { 21301 case "button": 21302 case "input": 21303 case "select": 21304 case "textarea": 21305 return !!props.autoFocus; 21306 } 21307 return !1; 21308 } 21309 function getRootHostContext(rootContainerInstance) { 21310 var type = void 0, namespace = void 0, nodeType = rootContainerInstance.nodeType; 21311 switch (nodeType) { 21312 case DOCUMENT_NODE: 21313 case DOCUMENT_FRAGMENT_NODE: 21314 type = nodeType === DOCUMENT_NODE ? "#document" : "#fragment"; 21315 var root = rootContainerInstance.documentElement; 21316 namespace = root ? root.namespaceURI : getChildNamespace(null, ""); 21317 break; 21318 21319 default: 21320 var container = nodeType === COMMENT_NODE ? rootContainerInstance.parentNode : rootContainerInstance, ownNamespace = container.namespaceURI || null; 21321 type = container.tagName, namespace = getChildNamespace(ownNamespace, type); 21322 } 21323 var validatedTag = type.toLowerCase(); 21324 return { 21325 namespace: namespace, 21326 ancestorInfo: updatedAncestorInfo(null, validatedTag, null) 21327 }; 21328 } 21329 function getChildHostContext(parentHostContext, type, rootContainerInstance) { 21330 var parentHostContextDev = parentHostContext; 21331 return { 21332 namespace: getChildNamespace(parentHostContextDev.namespace, type), 21333 ancestorInfo: updatedAncestorInfo(parentHostContextDev.ancestorInfo, type, null) 21334 }; 21335 } 21336 function getPublicInstance(instance) { 21337 return instance; 21338 } 21339 function prepareForCommit(containerInfo) { 21340 eventsEnabled = isEnabled(), selectionInformation = getSelectionInformation(), setEnabled(!1); 21341 } 21342 function resetAfterCommit(containerInfo) { 21343 restoreSelection(selectionInformation), selectionInformation = null, setEnabled(eventsEnabled), 21344 eventsEnabled = null; 21345 } 21346 function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) { 21347 var parentNamespace = void 0, hostContextDev = hostContext; 21348 if (validateDOMNesting$1(type, null, hostContextDev.ancestorInfo), "string" == typeof props.children || "number" == typeof props.children) { 21349 var string = "" + props.children, ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type, null); 21350 validateDOMNesting$1(null, string, ownAncestorInfo); 21351 } 21352 parentNamespace = hostContextDev.namespace; 21353 var domElement = createElement(type, props, rootContainerInstance, parentNamespace); 21354 return precacheFiberNode$1(internalInstanceHandle, domElement), updateFiberProps$1(domElement, props), 21355 domElement; 21356 } 21357 function appendInitialChild(parentInstance, child) { 21358 parentInstance.appendChild(child); 21359 } 21360 function finalizeInitialChildren(domElement, type, props, rootContainerInstance, hostContext) { 21361 return setInitialProperties(domElement, type, props, rootContainerInstance), shouldAutoFocusHostComponent(type, props); 21362 } 21363 function prepareUpdate(domElement, type, oldProps, newProps, rootContainerInstance, hostContext) { 21364 var hostContextDev = hostContext; 21365 if (typeof newProps.children != typeof oldProps.children && ("string" == typeof newProps.children || "number" == typeof newProps.children)) { 21366 var string = "" + newProps.children, ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type, null); 21367 validateDOMNesting$1(null, string, ownAncestorInfo); 21368 } 21369 return diffProperties(domElement, type, oldProps, newProps, rootContainerInstance); 21370 } 21371 function shouldSetTextContent(type, props) { 21372 return "textarea" === type || "string" == typeof props.children || "number" == typeof props.children || "object" == typeof props.dangerouslySetInnerHTML && null !== props.dangerouslySetInnerHTML && "string" == typeof props.dangerouslySetInnerHTML.__html; 21373 } 21374 function shouldDeprioritizeSubtree(type, props) { 21375 return !!props.hidden; 21376 } 21377 function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) { 21378 validateDOMNesting$1(null, text, hostContext.ancestorInfo); 21379 var textNode = createTextNode(text, rootContainerInstance); 21380 return precacheFiberNode$1(internalInstanceHandle, textNode), textNode; 21381 } 21382 function commitMount(domElement, type, newProps, internalInstanceHandle) { 21383 shouldAutoFocusHostComponent(type, newProps) && domElement.focus(); 21384 } 21385 function commitUpdate(domElement, updatePayload, type, oldProps, newProps, internalInstanceHandle) { 21386 updateFiberProps$1(domElement, newProps), updateProperties(domElement, updatePayload, type, oldProps, newProps); 21387 } 21388 function resetTextContent(domElement) { 21389 setTextContent(domElement, ""); 21390 } 21391 function commitTextUpdate(textInstance, oldText, newText) { 21392 textInstance.nodeValue = newText; 21393 } 21394 function appendChild(parentInstance, child) { 21395 parentInstance.appendChild(child); 21396 } 21397 function appendChildToContainer(container, child) { 21398 container.nodeType === COMMENT_NODE ? container.parentNode.insertBefore(child, container) : container.appendChild(child); 21399 } 21400 function insertBefore(parentInstance, child, beforeChild) { 21401 parentInstance.insertBefore(child, beforeChild); 21402 } 21403 function insertInContainerBefore(container, child, beforeChild) { 21404 container.nodeType === COMMENT_NODE ? container.parentNode.insertBefore(child, beforeChild) : container.insertBefore(child, beforeChild); 21405 } 21406 function removeChild(parentInstance, child) { 21407 parentInstance.removeChild(child); 21408 } 21409 function removeChildFromContainer(container, child) { 21410 container.nodeType === COMMENT_NODE ? container.parentNode.removeChild(child) : container.removeChild(child); 21411 } 21412 function canHydrateInstance(instance, type, props) { 21413 return instance.nodeType !== ELEMENT_NODE || type.toLowerCase() !== instance.nodeName.toLowerCase() ? null : instance; 21414 } 21415 function canHydrateTextInstance(instance, text) { 21416 return "" === text || instance.nodeType !== TEXT_NODE ? null : instance; 21417 } 21418 function getNextHydratableSibling(instance) { 21419 for (var node = instance.nextSibling; node && node.nodeType !== ELEMENT_NODE && node.nodeType !== TEXT_NODE; ) node = node.nextSibling; 21420 return node; 21421 } 21422 function getFirstHydratableChild(parentInstance) { 21423 for (var next = parentInstance.firstChild; next && next.nodeType !== ELEMENT_NODE && next.nodeType !== TEXT_NODE; ) next = next.nextSibling; 21424 return next; 21425 } 21426 function hydrateInstance(instance, type, props, rootContainerInstance, hostContext, internalInstanceHandle) { 21427 precacheFiberNode$1(internalInstanceHandle, instance), updateFiberProps$1(instance, props); 21428 var parentNamespace = void 0; 21429 return parentNamespace = hostContext.namespace, diffHydratedProperties(instance, type, props, parentNamespace, rootContainerInstance); 21430 } 21431 function hydrateTextInstance(textInstance, text, internalInstanceHandle) { 21432 return precacheFiberNode$1(internalInstanceHandle, textInstance), diffHydratedText(textInstance, text); 21433 } 21434 function didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, text) { 21435 warnForUnmatchedText(textInstance, text); 21436 } 21437 function didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, text) { 21438 !0 !== parentProps[SUPPRESS_HYDRATION_WARNING] && warnForUnmatchedText(textInstance, text); 21439 } 21440 function didNotHydrateContainerInstance(parentContainer, instance) { 21441 1 === instance.nodeType ? warnForDeletedHydratableElement(parentContainer, instance) : warnForDeletedHydratableText(parentContainer, instance); 21442 } 21443 function didNotHydrateInstance(parentType, parentProps, parentInstance, instance) { 21444 !0 !== parentProps[SUPPRESS_HYDRATION_WARNING] && (1 === instance.nodeType ? warnForDeletedHydratableElement(parentInstance, instance) : warnForDeletedHydratableText(parentInstance, instance)); 21445 } 21446 function didNotFindHydratableContainerInstance(parentContainer, type, props) { 21447 warnForInsertedHydratedElement(parentContainer, type, props); 21448 } 21449 function didNotFindHydratableContainerTextInstance(parentContainer, text) { 21450 warnForInsertedHydratedText(parentContainer, text); 21451 } 21452 function didNotFindHydratableInstance(parentType, parentProps, parentInstance, type, props) { 21453 !0 !== parentProps[SUPPRESS_HYDRATION_WARNING] && warnForInsertedHydratedElement(parentInstance, type, props); 21454 } 21455 function didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, text) { 21456 !0 !== parentProps[SUPPRESS_HYDRATION_WARNING] && warnForInsertedHydratedText(parentInstance, text); 21457 } 21458 function recordEffect() { 21459 enableUserTimingAPI && effectCountInCurrentCommit++; 21460 } 21461 function recordScheduleUpdate() { 21462 enableUserTimingAPI && (isCommitting && (hasScheduledUpdateInCurrentCommit = !0), 21463 null !== currentPhase && "componentWillMount" !== currentPhase && "componentWillReceiveProps" !== currentPhase && (hasScheduledUpdateInCurrentPhase = !0)); 21464 } 21465 function startRequestCallbackTimer() { 21466 enableUserTimingAPI && supportsUserTiming && !isWaitingForCallback && (isWaitingForCallback = !0, 21467 beginMark("(Waiting for async callback...)")); 21468 } 21469 function stopRequestCallbackTimer(didExpire, expirationTime) { 21470 if (enableUserTimingAPI && supportsUserTiming) { 21471 isWaitingForCallback = !1; 21472 endMark("(Waiting for async callback... will force flush in " + expirationTime + " ms)", "(Waiting for async callback...)", didExpire ? "React was blocked by main thread" : null); 21473 } 21474 } 21475 function startWorkTimer(fiber) { 21476 if (enableUserTimingAPI) { 21477 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) return; 21478 if (currentFiber = fiber, !beginFiberMark(fiber, null)) return; 21479 fiber._debugIsCurrentlyTiming = !0; 21480 } 21481 } 21482 function cancelWorkTimer(fiber) { 21483 if (enableUserTimingAPI) { 21484 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) return; 21485 fiber._debugIsCurrentlyTiming = !1, clearFiberMark(fiber, null); 21486 } 21487 } 21488 function stopWorkTimer(fiber) { 21489 if (enableUserTimingAPI) { 21490 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) return; 21491 if (currentFiber = fiber.return, !fiber._debugIsCurrentlyTiming) return; 21492 fiber._debugIsCurrentlyTiming = !1, endFiberMark(fiber, null, null); 21493 } 21494 } 21495 function stopFailedWorkTimer(fiber) { 21496 if (enableUserTimingAPI) { 21497 if (!supportsUserTiming || shouldIgnoreFiber(fiber)) return; 21498 if (currentFiber = fiber.return, !fiber._debugIsCurrentlyTiming) return; 21499 fiber._debugIsCurrentlyTiming = !1; 21500 endFiberMark(fiber, null, "An error was thrown inside this error boundary"); 21501 } 21502 } 21503 function startPhaseTimer(fiber, phase) { 21504 if (enableUserTimingAPI) { 21505 if (!supportsUserTiming) return; 21506 if (clearPendingPhaseMeasurement(), !beginFiberMark(fiber, phase)) return; 21507 currentPhaseFiber = fiber, currentPhase = phase; 21508 } 21509 } 21510 function stopPhaseTimer() { 21511 if (enableUserTimingAPI) { 21512 if (!supportsUserTiming) return; 21513 if (null !== currentPhase && null !== currentPhaseFiber) { 21514 endFiberMark(currentPhaseFiber, currentPhase, hasScheduledUpdateInCurrentPhase ? "Scheduled a cascading update" : null); 21515 } 21516 currentPhase = null, currentPhaseFiber = null; 21517 } 21518 } 21519 function startWorkLoopTimer(nextUnitOfWork) { 21520 if (enableUserTimingAPI) { 21521 if (currentFiber = nextUnitOfWork, !supportsUserTiming) return; 21522 commitCountInCurrentWorkLoop = 0, beginMark("(React Tree Reconciliation)"), resumeTimers(); 21523 } 21524 } 21525 function stopWorkLoopTimer(interruptedBy, didCompleteRoot) { 21526 if (enableUserTimingAPI) { 21527 if (!supportsUserTiming) return; 21528 var warning$$1 = null; 21529 if (null !== interruptedBy) if (interruptedBy.tag === HostRoot) warning$$1 = "A top-level update interrupted the previous render"; else { 21530 var componentName = getComponentName(interruptedBy) || "Unknown"; 21531 warning$$1 = "An update to " + componentName + " interrupted the previous render"; 21532 } else commitCountInCurrentWorkLoop > 1 && (warning$$1 = "There were cascading updates"); 21533 commitCountInCurrentWorkLoop = 0; 21534 var label = didCompleteRoot ? "(React Tree Reconciliation: Completed Root)" : "(React Tree Reconciliation: Yielded)"; 21535 pauseTimers(), endMark(label, "(React Tree Reconciliation)", warning$$1); 21536 } 21537 } 21538 function startCommitTimer() { 21539 if (enableUserTimingAPI) { 21540 if (!supportsUserTiming) return; 21541 isCommitting = !0, hasScheduledUpdateInCurrentCommit = !1, labelsInCurrentCommit.clear(), 21542 beginMark("(Committing Changes)"); 21543 } 21544 } 21545 function stopCommitTimer() { 21546 if (enableUserTimingAPI) { 21547 if (!supportsUserTiming) return; 21548 var warning$$1 = null; 21549 hasScheduledUpdateInCurrentCommit ? warning$$1 = "Lifecycle hook scheduled a cascading update" : commitCountInCurrentWorkLoop > 0 && (warning$$1 = "Caused by a cascading update in earlier commit"), 21550 hasScheduledUpdateInCurrentCommit = !1, commitCountInCurrentWorkLoop++, isCommitting = !1, 21551 labelsInCurrentCommit.clear(), endMark("(Committing Changes)", "(Committing Changes)", warning$$1); 21552 } 21553 } 21554 function startCommitSnapshotEffectsTimer() { 21555 if (enableUserTimingAPI) { 21556 if (!supportsUserTiming) return; 21557 effectCountInCurrentCommit = 0, beginMark("(Committing Snapshot Effects)"); 21558 } 21559 } 21560 function stopCommitSnapshotEffectsTimer() { 21561 if (enableUserTimingAPI) { 21562 if (!supportsUserTiming) return; 21563 var count = effectCountInCurrentCommit; 21564 effectCountInCurrentCommit = 0, endMark("(Committing Snapshot Effects: " + count + " Total)", "(Committing Snapshot Effects)", null); 21565 } 21566 } 21567 function startCommitHostEffectsTimer() { 21568 if (enableUserTimingAPI) { 21569 if (!supportsUserTiming) return; 21570 effectCountInCurrentCommit = 0, beginMark("(Committing Host Effects)"); 21571 } 21572 } 21573 function stopCommitHostEffectsTimer() { 21574 if (enableUserTimingAPI) { 21575 if (!supportsUserTiming) return; 21576 var count = effectCountInCurrentCommit; 21577 effectCountInCurrentCommit = 0, endMark("(Committing Host Effects: " + count + " Total)", "(Committing Host Effects)", null); 21578 } 21579 } 21580 function startCommitLifeCyclesTimer() { 21581 if (enableUserTimingAPI) { 21582 if (!supportsUserTiming) return; 21583 effectCountInCurrentCommit = 0, beginMark("(Calling Lifecycle Methods)"); 21584 } 21585 } 21586 function stopCommitLifeCyclesTimer() { 21587 if (enableUserTimingAPI) { 21588 if (!supportsUserTiming) return; 21589 var count = effectCountInCurrentCommit; 21590 effectCountInCurrentCommit = 0, endMark("(Calling Lifecycle Methods: " + count + " Total)", "(Calling Lifecycle Methods)", null); 21591 } 21592 } 21593 function createCursor(defaultValue) { 21594 return { 21595 current: defaultValue 21596 }; 21597 } 21598 function pop(cursor, fiber) { 21599 if (index < 0) return void warning(!1, "Unexpected pop."); 21600 fiber !== fiberStack[index] && warning(!1, "Unexpected Fiber popped."), cursor.current = valueStack[index], 21601 valueStack[index] = null, fiberStack[index] = null, index--; 21602 } 21603 function push(cursor, value, fiber) { 21604 index++, valueStack[index] = cursor.current, fiberStack[index] = fiber, cursor.current = value; 21605 } 21606 function checkThatStackIsEmpty() { 21607 -1 !== index && warning(!1, "Expected an empty stack. Something was not reset properly."); 21608 } 21609 function resetStackAfterFatalErrorInDev() { 21610 index = -1, valueStack.length = 0, fiberStack.length = 0; 21611 } 21612 function getUnmaskedContext(workInProgress) { 21613 return isContextProvider(workInProgress) ? previousContext : contextStackCursor.current; 21614 } 21615 function cacheContext(workInProgress, unmaskedContext, maskedContext) { 21616 var instance = workInProgress.stateNode; 21617 instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext, instance.__reactInternalMemoizedMaskedChildContext = maskedContext; 21618 } 21619 function getMaskedContext(workInProgress, unmaskedContext) { 21620 var type = workInProgress.type, contextTypes = type.contextTypes; 21621 if (!contextTypes) return emptyObject; 21622 var instance = workInProgress.stateNode; 21623 if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) return instance.__reactInternalMemoizedMaskedChildContext; 21624 var context = {}; 21625 for (var key in contextTypes) context[key] = unmaskedContext[key]; 21626 var name = getComponentName(workInProgress) || "Unknown"; 21627 return checkPropTypes(contextTypes, context, "context", name, ReactDebugCurrentFiber.getCurrentFiberStackAddendum), 21628 instance && cacheContext(workInProgress, unmaskedContext, context), context; 21629 } 21630 function hasContextChanged() { 21631 return didPerformWorkStackCursor.current; 21632 } 21633 function isContextConsumer(fiber) { 21634 return fiber.tag === ClassComponent && null != fiber.type.contextTypes; 21635 } 21636 function isContextProvider(fiber) { 21637 return fiber.tag === ClassComponent && null != fiber.type.childContextTypes; 21638 } 21639 function popContextProvider(fiber) { 21640 isContextProvider(fiber) && (pop(didPerformWorkStackCursor, fiber), pop(contextStackCursor, fiber)); 21641 } 21642 function popTopLevelContextObject(fiber) { 21643 pop(didPerformWorkStackCursor, fiber), pop(contextStackCursor, fiber); 21644 } 21645 function pushTopLevelContextObject(fiber, context, didChange) { 21646 contextStackCursor.current !== emptyObject && invariant(!1, "Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue."), 21647 push(contextStackCursor, context, fiber), push(didPerformWorkStackCursor, didChange, fiber); 21648 } 21649 function processChildContext(fiber, parentContext) { 21650 var instance = fiber.stateNode, childContextTypes = fiber.type.childContextTypes; 21651 if ("function" != typeof instance.getChildContext) { 21652 var componentName = getComponentName(fiber) || "Unknown"; 21653 return warnedAboutMissingGetChildContext[componentName] || (warnedAboutMissingGetChildContext[componentName] = !0, 21654 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)), 21655 parentContext; 21656 } 21657 var childContext = void 0; 21658 ReactDebugCurrentFiber.setCurrentPhase("getChildContext"), startPhaseTimer(fiber, "getChildContext"), 21659 childContext = instance.getChildContext(), stopPhaseTimer(), ReactDebugCurrentFiber.setCurrentPhase(null); 21660 for (var contextKey in childContext) contextKey in childContextTypes || invariant(!1, '%s.getChildContext(): key "%s" is not defined in childContextTypes.', getComponentName(fiber) || "Unknown", contextKey); 21661 var name = getComponentName(fiber) || "Unknown"; 21662 return checkPropTypes(childContextTypes, childContext, "child context", name, ReactDebugCurrentFiber.getCurrentFiberStackAddendum), 21663 _assign({}, parentContext, childContext); 21664 } 21665 function pushContextProvider(workInProgress) { 21666 if (!isContextProvider(workInProgress)) return !1; 21667 var instance = workInProgress.stateNode, memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyObject; 21668 return previousContext = contextStackCursor.current, push(contextStackCursor, memoizedMergedChildContext, workInProgress), 21669 push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress), 21670 !0; 21671 } 21672 function invalidateContextProvider(workInProgress, didChange) { 21673 var instance = workInProgress.stateNode; 21674 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."), 21675 didChange) { 21676 var mergedContext = processChildContext(workInProgress, previousContext); 21677 instance.__reactInternalMemoizedMergedChildContext = mergedContext, pop(didPerformWorkStackCursor, workInProgress), 21678 pop(contextStackCursor, workInProgress), push(contextStackCursor, mergedContext, workInProgress), 21679 push(didPerformWorkStackCursor, didChange, workInProgress); 21680 } else pop(didPerformWorkStackCursor, workInProgress), push(didPerformWorkStackCursor, didChange, workInProgress); 21681 } 21682 function findCurrentUnmaskedContext(fiber) { 21683 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."); 21684 for (var node = fiber; node.tag !== HostRoot; ) { 21685 if (isContextProvider(node)) return node.stateNode.__reactInternalMemoizedMergedChildContext; 21686 var parent = node.return; 21687 parent || invariant(!1, "Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue."), 21688 node = parent; 21689 } 21690 return node.stateNode.context; 21691 } 21692 function msToExpirationTime(ms) { 21693 return (ms / UNIT_SIZE | 0) + MAGIC_NUMBER_OFFSET; 21694 } 21695 function expirationTimeToMs(expirationTime) { 21696 return (expirationTime - MAGIC_NUMBER_OFFSET) * UNIT_SIZE; 21697 } 21698 function ceiling(num, precision) { 21699 return (1 + (num / precision | 0)) * precision; 21700 } 21701 function computeExpirationBucket(currentTime, expirationInMs, bucketSizeMs) { 21702 return MAGIC_NUMBER_OFFSET + ceiling(currentTime - MAGIC_NUMBER_OFFSET + expirationInMs / UNIT_SIZE, bucketSizeMs / UNIT_SIZE); 21703 } 21704 function FiberNode(tag, pendingProps, key, mode) { 21705 this.tag = tag, this.key = key, this.type = null, this.stateNode = null, this.return = null, 21706 this.child = null, this.sibling = null, this.index = 0, this.ref = null, this.pendingProps = pendingProps, 21707 this.memoizedProps = null, this.updateQueue = null, this.memoizedState = null, this.mode = mode, 21708 this.effectTag = NoEffect, this.nextEffect = null, this.firstEffect = null, this.lastEffect = null, 21709 this.expirationTime = NoWork, this.alternate = null, enableProfilerTimer && (this.selfBaseTime = 0, 21710 this.treeBaseTime = 0), this._debugID = debugCounter++, this._debugSource = null, 21711 this._debugOwner = null, this._debugIsCurrentlyTiming = !1, hasBadMapPolyfill || "function" != typeof Object.preventExtensions || Object.preventExtensions(this); 21712 } 21713 function shouldConstruct(Component) { 21714 return !(!Component.prototype || !Component.prototype.isReactComponent); 21715 } 21716 function createWorkInProgress(current, pendingProps, expirationTime) { 21717 var workInProgress = current.alternate; 21718 return null === workInProgress ? (workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode), 21719 workInProgress.type = current.type, workInProgress.stateNode = current.stateNode, 21720 workInProgress._debugID = current._debugID, workInProgress._debugSource = current._debugSource, 21721 workInProgress._debugOwner = current._debugOwner, workInProgress.alternate = current, 21722 current.alternate = workInProgress) : (workInProgress.pendingProps = pendingProps, 21723 workInProgress.effectTag = NoEffect, workInProgress.nextEffect = null, workInProgress.firstEffect = null, 21724 workInProgress.lastEffect = null), workInProgress.expirationTime = expirationTime, 21725 workInProgress.child = current.child, workInProgress.memoizedProps = current.memoizedProps, 21726 workInProgress.memoizedState = current.memoizedState, workInProgress.updateQueue = current.updateQueue, 21727 workInProgress.sibling = current.sibling, workInProgress.index = current.index, 21728 workInProgress.ref = current.ref, enableProfilerTimer && (workInProgress.selfBaseTime = current.selfBaseTime, 21729 workInProgress.treeBaseTime = current.treeBaseTime), workInProgress; 21730 } 21731 function createHostRootFiber(isAsync) { 21732 return createFiber(HostRoot, null, null, isAsync ? AsyncMode | StrictMode : NoContext); 21733 } 21734 function createFiberFromElement(element, mode, expirationTime) { 21735 var owner = null; 21736 owner = element._owner; 21737 var fiber = void 0, type = element.type, key = element.key, pendingProps = element.props, fiberTag = void 0; 21738 if ("function" == typeof type) fiberTag = shouldConstruct(type) ? ClassComponent : IndeterminateComponent; else if ("string" == typeof type) fiberTag = HostComponent; else switch (type) { 21739 case REACT_FRAGMENT_TYPE: 21740 return createFiberFromFragment(pendingProps.children, mode, expirationTime, key); 21741 21742 case REACT_ASYNC_MODE_TYPE: 21743 fiberTag = Mode, mode |= AsyncMode | StrictMode; 21744 break; 21745 21746 case REACT_STRICT_MODE_TYPE: 21747 fiberTag = Mode, mode |= StrictMode; 21748 break; 21749 21750 case REACT_PROFILER_TYPE: 21751 return createFiberFromProfiler(pendingProps, mode, expirationTime, key); 21752 21753 case REACT_TIMEOUT_TYPE: 21754 fiberTag = TimeoutComponent, mode |= StrictMode; 21755 break; 21756 21757 default: 21758 fiberTag = getFiberTagFromObjectType(type, owner); 21759 } 21760 return fiber = createFiber(fiberTag, pendingProps, key, mode), fiber.type = type, 21761 fiber.expirationTime = expirationTime, fiber._debugSource = element._source, fiber._debugOwner = element._owner, 21762 fiber; 21763 } 21764 function getFiberTagFromObjectType(type, owner) { 21765 switch ("object" == typeof type && null !== type ? type.$$typeof : null) { 21766 case REACT_PROVIDER_TYPE: 21767 return ContextProvider; 21768 21769 case REACT_CONTEXT_TYPE: 21770 return ContextConsumer; 21771 21772 case REACT_FORWARD_REF_TYPE: 21773 return ForwardRef; 21774 21775 default: 21776 var info = ""; 21777 (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."); 21778 var ownerName = owner ? getComponentName(owner) : null; 21779 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); 21780 } 21781 } 21782 function createFiberFromFragment(elements, mode, expirationTime, key) { 21783 var fiber = createFiber(Fragment, elements, key, mode); 21784 return fiber.expirationTime = expirationTime, fiber; 21785 } 21786 function createFiberFromProfiler(pendingProps, mode, expirationTime, key) { 21787 "string" == typeof pendingProps.id && "function" == typeof pendingProps.onRender || invariant(!1, 'Profiler must specify an "id" string and "onRender" function as props'); 21788 var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode); 21789 return fiber.type = REACT_PROFILER_TYPE, fiber.expirationTime = expirationTime, 21790 enableProfilerTimer && (fiber.stateNode = { 21791 elapsedPauseTimeAtStart: 0, 21792 duration: 0, 21793 startTime: 0 21794 }), fiber; 21795 } 21796 function createFiberFromText(content, mode, expirationTime) { 21797 var fiber = createFiber(HostText, content, null, mode); 21798 return fiber.expirationTime = expirationTime, fiber; 21799 } 21800 function createFiberFromHostInstanceForDeletion() { 21801 var fiber = createFiber(HostComponent, null, null, NoContext); 21802 return fiber.type = "DELETED", fiber; 21803 } 21804 function createFiberFromPortal(portal, mode, expirationTime) { 21805 var pendingProps = null !== portal.children ? portal.children : [], fiber = createFiber(HostPortal, pendingProps, portal.key, mode); 21806 return fiber.expirationTime = expirationTime, fiber.stateNode = { 21807 containerInfo: portal.containerInfo, 21808 pendingChildren: null, 21809 implementation: portal.implementation 21810 }, fiber; 21811 } 21812 function assignFiberPropertiesInDEV(target, source) { 21813 return null === target && (target = createFiber(IndeterminateComponent, null, null, NoContext)), 21814 target.tag = source.tag, target.key = source.key, target.type = source.type, target.stateNode = source.stateNode, 21815 target.return = source.return, target.child = source.child, target.sibling = source.sibling, 21816 target.index = source.index, target.ref = source.ref, target.pendingProps = source.pendingProps, 21817 target.memoizedProps = source.memoizedProps, target.updateQueue = source.updateQueue, 21818 target.memoizedState = source.memoizedState, target.mode = source.mode, target.effectTag = source.effectTag, 21819 target.nextEffect = source.nextEffect, target.firstEffect = source.firstEffect, 21820 target.lastEffect = source.lastEffect, target.expirationTime = source.expirationTime, 21821 target.alternate = source.alternate, enableProfilerTimer && (target.selfBaseTime = source.selfBaseTime, 21822 target.treeBaseTime = source.treeBaseTime), target._debugID = source._debugID, target._debugSource = source._debugSource, 21823 target._debugOwner = source._debugOwner, target._debugIsCurrentlyTiming = source._debugIsCurrentlyTiming, 21824 target; 21825 } 21826 function createFiberRoot(containerInfo, isAsync, hydrate) { 21827 var uninitializedFiber = createHostRootFiber(isAsync), root = { 21828 current: uninitializedFiber, 21829 containerInfo: containerInfo, 21830 pendingChildren: null, 21831 earliestPendingTime: NoWork, 21832 latestPendingTime: NoWork, 21833 earliestSuspendedTime: NoWork, 21834 latestSuspendedTime: NoWork, 21835 latestPingedTime: NoWork, 21836 pendingCommitExpirationTime: NoWork, 21837 finishedWork: null, 21838 context: null, 21839 pendingContext: null, 21840 hydrate: hydrate, 21841 remainingExpirationTime: NoWork, 21842 firstBatch: null, 21843 nextScheduledRoot: null 21844 }; 21845 return uninitializedFiber.stateNode = root, root; 21846 } 21847 function catchErrors(fn) { 21848 return function(arg) { 21849 try { 21850 return fn(arg); 21851 } catch (err) { 21852 hasLoggedError || (hasLoggedError = !0, warning(!1, "React DevTools encountered an error: %s", err)); 21853 } 21854 }; 21855 } 21856 function injectInternals(internals) { 21857 if ("undefined" == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; 21858 var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; 21859 if (hook.isDisabled) return !0; 21860 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”), 21861 !0; 21862 try { 21863 var rendererID = hook.inject(internals); 21864 onCommitFiberRoot = catchErrors(function(root) { 21865 return hook.onCommitFiberRoot(rendererID, root); 21866 }), onCommitFiberUnmount = catchErrors(function(fiber) { 21867 return hook.onCommitFiberUnmount(rendererID, fiber); 21868 }); 21869 } catch (err) { 21870 warning(!1, "React DevTools encountered an error: %s.", err); 21871 } 21872 return !0; 21873 } 21874 function onCommitRoot(root) { 21875 "function" == typeof onCommitFiberRoot && onCommitFiberRoot(root); 21876 } 21877 function onCommitUnmount(fiber) { 21878 "function" == typeof onCommitFiberUnmount && onCommitFiberUnmount(fiber); 21879 } 21880 function markPendingPriorityLevel(root, expirationTime) { 21881 if (enableSuspense) { 21882 var earliestPendingTime = root.earliestPendingTime; 21883 if (earliestPendingTime === NoWork) root.earliestPendingTime = root.latestPendingTime = expirationTime; else if (earliestPendingTime > expirationTime) root.earliestPendingTime = expirationTime; else { 21884 var latestPendingTime = root.latestPendingTime; 21885 latestPendingTime < expirationTime && (root.latestPendingTime = expirationTime); 21886 } 21887 } 21888 } 21889 function markCommittedPriorityLevels(root, currentTime, earliestRemainingTime) { 21890 if (enableSuspense) { 21891 if (earliestRemainingTime === NoWork) return root.earliestPendingTime = NoWork, 21892 root.latestPendingTime = NoWork, root.earliestSuspendedTime = NoWork, root.latestSuspendedTime = NoWork, 21893 void (root.latestPingedTime = NoWork); 21894 var latestPendingTime = root.latestPendingTime; 21895 if (latestPendingTime !== NoWork) if (latestPendingTime < earliestRemainingTime) root.earliestPendingTime = root.latestPendingTime = NoWork; else { 21896 var earliestPendingTime = root.earliestPendingTime; 21897 earliestPendingTime < earliestRemainingTime && (root.earliestPendingTime = root.latestPendingTime); 21898 } 21899 var earliestSuspendedTime = root.earliestSuspendedTime; 21900 if (earliestSuspendedTime === NoWork) return void markPendingPriorityLevel(root, earliestRemainingTime); 21901 if (earliestRemainingTime > root.latestSuspendedTime) return root.earliestSuspendedTime = NoWork, 21902 root.latestSuspendedTime = NoWork, root.latestPingedTime = NoWork, void markPendingPriorityLevel(root, earliestRemainingTime); 21903 if (earliestRemainingTime < earliestSuspendedTime) return void markPendingPriorityLevel(root, earliestRemainingTime); 21904 } 21905 } 21906 function markSuspendedPriorityLevel(root, suspendedTime) { 21907 if (enableSuspense) { 21908 var earliestPendingTime = root.earliestPendingTime, latestPendingTime = root.latestPendingTime; 21909 earliestPendingTime === suspendedTime ? root.earliestPendingTime = latestPendingTime === suspendedTime ? root.latestPendingTime = NoWork : latestPendingTime : latestPendingTime === suspendedTime && (root.latestPendingTime = earliestPendingTime); 21910 var latestSuspendedTime = root.latestSuspendedTime; 21911 latestSuspendedTime === suspendedTime && (root.latestPingedTime = NoWork); 21912 var earliestSuspendedTime = root.earliestSuspendedTime; 21913 earliestSuspendedTime === NoWork ? root.earliestSuspendedTime = root.latestSuspendedTime = suspendedTime : earliestSuspendedTime > suspendedTime ? root.earliestSuspendedTime = suspendedTime : latestSuspendedTime < suspendedTime && (root.latestSuspendedTime = suspendedTime); 21914 } 21915 } 21916 function markPingedPriorityLevel(root, pingedTime) { 21917 if (enableSuspense) { 21918 var latestSuspendedTime = root.latestSuspendedTime; 21919 if (latestSuspendedTime !== NoWork && latestSuspendedTime <= pingedTime) { 21920 var latestPingedTime = root.latestPingedTime; 21921 (latestPingedTime === NoWork || latestPingedTime < pingedTime) && (root.latestPingedTime = pingedTime); 21922 } 21923 } 21924 } 21925 function findNextPendingPriorityLevel(root) { 21926 if (enableSuspense) { 21927 var earliestSuspendedTime = root.earliestSuspendedTime, earliestPendingTime = root.earliestPendingTime; 21928 return earliestSuspendedTime === NoWork ? earliestPendingTime : earliestPendingTime !== NoWork ? earliestPendingTime : root.latestPingedTime; 21929 } 21930 return root.current.expirationTime; 21931 } 21932 function createUpdateQueue(baseState) { 21933 return { 21934 expirationTime: NoWork, 21935 baseState: baseState, 21936 firstUpdate: null, 21937 lastUpdate: null, 21938 firstCapturedUpdate: null, 21939 lastCapturedUpdate: null, 21940 firstEffect: null, 21941 lastEffect: null, 21942 firstCapturedEffect: null, 21943 lastCapturedEffect: null 21944 }; 21945 } 21946 function cloneUpdateQueue(currentQueue) { 21947 return { 21948 expirationTime: currentQueue.expirationTime, 21949 baseState: currentQueue.baseState, 21950 firstUpdate: currentQueue.firstUpdate, 21951 lastUpdate: currentQueue.lastUpdate, 21952 firstCapturedUpdate: null, 21953 lastCapturedUpdate: null, 21954 firstEffect: null, 21955 lastEffect: null, 21956 firstCapturedEffect: null, 21957 lastCapturedEffect: null 21958 }; 21959 } 21960 function createUpdate(expirationTime) { 21961 return { 21962 expirationTime: expirationTime, 21963 tag: UpdateState, 21964 payload: null, 21965 callback: null, 21966 next: null, 21967 nextEffect: null 21968 }; 21969 } 21970 function appendUpdateToQueue(queue, update, expirationTime) { 21971 null === queue.lastUpdate ? queue.firstUpdate = queue.lastUpdate = update : (queue.lastUpdate.next = update, 21972 queue.lastUpdate = update), (queue.expirationTime === NoWork || queue.expirationTime > expirationTime) && (queue.expirationTime = expirationTime); 21973 } 21974 function enqueueUpdate(fiber, update, expirationTime) { 21975 var alternate = fiber.alternate, queue1 = void 0, queue2 = void 0; 21976 null === alternate ? (queue1 = fiber.updateQueue, queue2 = null, null === queue1 && (queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState))) : (queue1 = fiber.updateQueue, 21977 queue2 = alternate.updateQueue, null === queue1 ? null === queue2 ? (queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState), 21978 queue2 = alternate.updateQueue = createUpdateQueue(alternate.memoizedState)) : queue1 = fiber.updateQueue = cloneUpdateQueue(queue2) : null === queue2 && (queue2 = alternate.updateQueue = cloneUpdateQueue(queue1))), 21979 null === queue2 || queue1 === queue2 ? appendUpdateToQueue(queue1, update, expirationTime) : null === queue1.lastUpdate || null === queue2.lastUpdate ? (appendUpdateToQueue(queue1, update, expirationTime), 21980 appendUpdateToQueue(queue2, update, expirationTime)) : (appendUpdateToQueue(queue1, update, expirationTime), 21981 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."), 21982 didWarnUpdateInsideUpdate = !0); 21983 } 21984 function enqueueCapturedUpdate(workInProgress, update, renderExpirationTime) { 21985 var workInProgressQueue = workInProgress.updateQueue; 21986 workInProgressQueue = null === workInProgressQueue ? workInProgress.updateQueue = createUpdateQueue(workInProgress.memoizedState) : ensureWorkInProgressQueueIsAClone(workInProgress, workInProgressQueue), 21987 null === workInProgressQueue.lastCapturedUpdate ? workInProgressQueue.firstCapturedUpdate = workInProgressQueue.lastCapturedUpdate = update : (workInProgressQueue.lastCapturedUpdate.next = update, 21988 workInProgressQueue.lastCapturedUpdate = update), (workInProgressQueue.expirationTime === NoWork || workInProgressQueue.expirationTime > renderExpirationTime) && (workInProgressQueue.expirationTime = renderExpirationTime); 21989 } 21990 function ensureWorkInProgressQueueIsAClone(workInProgress, queue) { 21991 var current = workInProgress.alternate; 21992 return null !== current && queue === current.updateQueue && (queue = workInProgress.updateQueue = cloneUpdateQueue(queue)), 21993 queue; 21994 } 21995 function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) { 21996 switch (update.tag) { 21997 case ReplaceState: 21998 var _payload = update.payload; 21999 return "function" == typeof _payload ? ((debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) && _payload.call(instance, prevState, nextProps), 22000 _payload.call(instance, prevState, nextProps)) : _payload; 22001 22002 case CaptureUpdate: 22003 workInProgress.effectTag = workInProgress.effectTag & ~ShouldCapture | DidCapture; 22004 22005 case UpdateState: 22006 var _payload2 = update.payload, partialState = void 0; 22007 return "function" == typeof _payload2 ? ((debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) && _payload2.call(instance, prevState, nextProps), 22008 partialState = _payload2.call(instance, prevState, nextProps)) : partialState = _payload2, 22009 null === partialState || void 0 === partialState ? prevState : _assign({}, prevState, partialState); 22010 22011 case ForceUpdate: 22012 return hasForceUpdate = !0, prevState; 22013 } 22014 return prevState; 22015 } 22016 function processUpdateQueue(workInProgress, queue, props, instance, renderExpirationTime) { 22017 if (hasForceUpdate = !1, !(queue.expirationTime === NoWork || queue.expirationTime > renderExpirationTime)) { 22018 queue = ensureWorkInProgressQueueIsAClone(workInProgress, queue), currentlyProcessingQueue = queue; 22019 for (var newBaseState = queue.baseState, newFirstUpdate = null, newExpirationTime = NoWork, update = queue.firstUpdate, resultState = newBaseState; null !== update; ) { 22020 var updateExpirationTime = update.expirationTime; 22021 if (updateExpirationTime > renderExpirationTime) null === newFirstUpdate && (newFirstUpdate = update, 22022 newBaseState = resultState), (newExpirationTime === NoWork || newExpirationTime > updateExpirationTime) && (newExpirationTime = updateExpirationTime); else { 22023 resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance); 22024 null !== update.callback && (workInProgress.effectTag |= Callback, update.nextEffect = null, 22025 null === queue.lastEffect ? queue.firstEffect = queue.lastEffect = update : (queue.lastEffect.nextEffect = update, 22026 queue.lastEffect = update)); 22027 } 22028 update = update.next; 22029 } 22030 var newFirstCapturedUpdate = null; 22031 for (update = queue.firstCapturedUpdate; null !== update; ) { 22032 var _updateExpirationTime = update.expirationTime; 22033 if (_updateExpirationTime > renderExpirationTime) null === newFirstCapturedUpdate && (newFirstCapturedUpdate = update, 22034 null === newFirstUpdate && (newBaseState = resultState)), (newExpirationTime === NoWork || newExpirationTime > _updateExpirationTime) && (newExpirationTime = _updateExpirationTime); else { 22035 resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance); 22036 null !== update.callback && (workInProgress.effectTag |= Callback, update.nextEffect = null, 22037 null === queue.lastCapturedEffect ? queue.firstCapturedEffect = queue.lastCapturedEffect = update : (queue.lastCapturedEffect.nextEffect = update, 22038 queue.lastCapturedEffect = update)); 22039 } 22040 update = update.next; 22041 } 22042 null === newFirstUpdate && (queue.lastUpdate = null), null === newFirstCapturedUpdate ? queue.lastCapturedUpdate = null : workInProgress.effectTag |= Callback, 22043 null === newFirstUpdate && null === newFirstCapturedUpdate && (newBaseState = resultState), 22044 queue.baseState = newBaseState, queue.firstUpdate = newFirstUpdate, queue.firstCapturedUpdate = newFirstCapturedUpdate, 22045 queue.expirationTime = newExpirationTime, workInProgress.memoizedState = resultState, 22046 currentlyProcessingQueue = null; 22047 } 22048 } 22049 function callCallback(callback, context) { 22050 "function" != typeof callback && invariant(!1, "Invalid argument passed as callback. Expected a function. Instead received: %s", callback), 22051 callback.call(context); 22052 } 22053 function resetHasForceUpdateBeforeProcessing() { 22054 hasForceUpdate = !1; 22055 } 22056 function checkHasForceUpdateAfterProcessing() { 22057 return hasForceUpdate; 22058 } 22059 function commitUpdateQueue(finishedWork, finishedQueue, instance, renderExpirationTime) { 22060 null !== finishedQueue.firstCapturedUpdate && (null !== finishedQueue.lastUpdate && (finishedQueue.lastUpdate.next = finishedQueue.firstCapturedUpdate, 22061 finishedQueue.lastUpdate = finishedQueue.lastCapturedUpdate), finishedQueue.firstCapturedUpdate = finishedQueue.lastCapturedUpdate = null); 22062 var effect = finishedQueue.firstEffect; 22063 for (finishedQueue.firstEffect = finishedQueue.lastEffect = null; null !== effect; ) { 22064 var _callback3 = effect.callback; 22065 null !== _callback3 && (effect.callback = null, callCallback(_callback3, instance)), 22066 effect = effect.nextEffect; 22067 } 22068 for (effect = finishedQueue.firstCapturedEffect, finishedQueue.firstCapturedEffect = finishedQueue.lastCapturedEffect = null; null !== effect; ) { 22069 var _callback4 = effect.callback; 22070 null !== _callback4 && (effect.callback = null, callCallback(_callback4, instance)), 22071 effect = effect.nextEffect; 22072 } 22073 } 22074 function createCapturedValue(value, source) { 22075 return { 22076 value: value, 22077 source: source, 22078 stack: getStackAddendumByWorkInProgressFiber(source) 22079 }; 22080 } 22081 function pushProvider(providerFiber) { 22082 var context = providerFiber.type._context; 22083 isPrimaryRenderer ? (push(changedBitsCursor, context._changedBits, providerFiber), 22084 push(valueCursor, context._currentValue, providerFiber), push(providerCursor, providerFiber, providerFiber), 22085 context._currentValue = providerFiber.pendingProps.value, context._changedBits = providerFiber.stateNode, 22086 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."), 22087 context._currentRenderer = rendererSigil) : (push(changedBitsCursor, context._changedBits2, providerFiber), 22088 push(valueCursor, context._currentValue2, providerFiber), push(providerCursor, providerFiber, providerFiber), 22089 context._currentValue2 = providerFiber.pendingProps.value, context._changedBits2 = providerFiber.stateNode, 22090 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."), 22091 context._currentRenderer2 = rendererSigil); 22092 } 22093 function popProvider(providerFiber) { 22094 var changedBits = changedBitsCursor.current, currentValue = valueCursor.current; 22095 pop(providerCursor, providerFiber), pop(valueCursor, providerFiber), pop(changedBitsCursor, providerFiber); 22096 var context = providerFiber.type._context; 22097 isPrimaryRenderer ? (context._currentValue = currentValue, context._changedBits = changedBits) : (context._currentValue2 = currentValue, 22098 context._changedBits2 = changedBits); 22099 } 22100 function getContextCurrentValue(context) { 22101 return isPrimaryRenderer ? context._currentValue : context._currentValue2; 22102 } 22103 function getContextChangedBits(context) { 22104 return isPrimaryRenderer ? context._changedBits : context._changedBits2; 22105 } 22106 function requiredContext(c) { 22107 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."), 22108 c; 22109 } 22110 function getRootHostContainer() { 22111 return requiredContext(rootInstanceStackCursor.current); 22112 } 22113 function pushHostContainer(fiber, nextRootInstance) { 22114 push(rootInstanceStackCursor, nextRootInstance, fiber), push(contextFiberStackCursor, fiber, fiber), 22115 push(contextStackCursor$1, NO_CONTEXT, fiber); 22116 var nextRootContext = getRootHostContext(nextRootInstance); 22117 pop(contextStackCursor$1, fiber), push(contextStackCursor$1, nextRootContext, fiber); 22118 } 22119 function popHostContainer(fiber) { 22120 pop(contextStackCursor$1, fiber), pop(contextFiberStackCursor, fiber), pop(rootInstanceStackCursor, fiber); 22121 } 22122 function getHostContext() { 22123 return requiredContext(contextStackCursor$1.current); 22124 } 22125 function pushHostContext(fiber) { 22126 var rootInstance = requiredContext(rootInstanceStackCursor.current), context = requiredContext(contextStackCursor$1.current), nextContext = getChildHostContext(context, fiber.type, rootInstance); 22127 context !== nextContext && (push(contextFiberStackCursor, fiber, fiber), push(contextStackCursor$1, nextContext, fiber)); 22128 } 22129 function popHostContext(fiber) { 22130 contextFiberStackCursor.current === fiber && (pop(contextStackCursor$1, fiber), 22131 pop(contextFiberStackCursor, fiber)); 22132 } 22133 function getCommitTime() { 22134 return commitTime; 22135 } 22136 function recordCommitTime() { 22137 enableProfilerTimer && (commitTime = now()); 22138 } 22139 function checkActualRenderTimeStackEmpty() { 22140 enableProfilerTimer && 0 !== fiberStack$1.length && warning(!1, "Expected an empty stack. Something was not reset properly."); 22141 } 22142 function markActualRenderTimeStarted(fiber) { 22143 if (enableProfilerTimer) { 22144 fiberStack$1.push(fiber); 22145 var stateNode = fiber.stateNode; 22146 stateNode.elapsedPauseTimeAtStart = totalElapsedPauseTime, stateNode.startTime = now(); 22147 } 22148 } 22149 function pauseActualRenderTimerIfRunning() { 22150 enableProfilerTimer && 0 === timerPausedAt && (timerPausedAt = now()); 22151 } 22152 function recordElapsedActualRenderTime(fiber) { 22153 if (enableProfilerTimer) { 22154 fiber !== fiberStack$1.pop() && warning(!1, "Unexpected Fiber popped."); 22155 var stateNode = fiber.stateNode; 22156 stateNode.duration += now() - (totalElapsedPauseTime - stateNode.elapsedPauseTimeAtStart) - stateNode.startTime; 22157 } 22158 } 22159 function resetActualRenderTimer() { 22160 enableProfilerTimer && (totalElapsedPauseTime = 0); 22161 } 22162 function resumeActualRenderTimerIfPaused() { 22163 enableProfilerTimer && timerPausedAt > 0 && (totalElapsedPauseTime += now() - timerPausedAt, 22164 timerPausedAt = 0); 22165 } 22166 function recordElapsedBaseRenderTimeIfRunning(fiber) { 22167 enableProfilerTimer && -1 !== baseStartTime && (fiber.selfBaseTime = now() - baseStartTime); 22168 } 22169 function startBaseRenderTimer() { 22170 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."), 22171 baseStartTime = now()); 22172 } 22173 function stopBaseRenderTimerIfRunning() { 22174 enableProfilerTimer && (baseStartTime = -1); 22175 } 22176 function applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, nextProps) { 22177 var prevState = workInProgress.memoizedState; 22178 (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) && getDerivedStateFromProps(nextProps, prevState); 22179 var partialState = getDerivedStateFromProps(nextProps, prevState); 22180 warnOnUndefinedDerivedState(workInProgress, partialState); 22181 var memoizedState = null === partialState || void 0 === partialState ? prevState : _assign({}, prevState, partialState); 22182 workInProgress.memoizedState = memoizedState; 22183 var updateQueue = workInProgress.updateQueue; 22184 null !== updateQueue && updateQueue.expirationTime === NoWork && (updateQueue.baseState = memoizedState); 22185 } 22186 function checkShouldComponentUpdate(workInProgress, oldProps, newProps, oldState, newState, newContext) { 22187 var instance = workInProgress.stateNode, ctor = workInProgress.type; 22188 if ("function" == typeof instance.shouldComponentUpdate) { 22189 startPhaseTimer(workInProgress, "shouldComponentUpdate"); 22190 var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, newContext); 22191 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"), 22192 shouldUpdate; 22193 } 22194 return !ctor.prototype || !ctor.prototype.isPureReactComponent || (!shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState)); 22195 } 22196 function checkClassInstance(workInProgress) { 22197 var instance = workInProgress.stateNode, type = workInProgress.type, name = getComponentName(workInProgress) || "Component"; 22198 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)), 22199 !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), 22200 !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), 22201 !instance.propTypes || warning(!1, "propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.", name), 22202 !instance.contextTypes || warning(!1, "contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.", name), 22203 "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), 22204 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"), 22205 "function" != typeof instance.componentDidUnmount || warning(!1, "%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?", name), 22206 "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), 22207 "function" != typeof instance.componentWillRecieveProps || warning(!1, "%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?", name), 22208 "function" != typeof instance.UNSAFE_componentWillRecieveProps || warning(!1, "%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?", name); 22209 var hasMutatedProps = instance.props !== workInProgress.pendingProps; 22210 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), 22211 !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), 22212 "function" != typeof instance.getSnapshotBeforeUpdate || "function" == typeof instance.componentDidUpdate || didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(type) || (didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(type), 22213 warning(!1, "%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.", getComponentName(workInProgress))), 22214 "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), 22215 "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), 22216 "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); 22217 var _state = instance.state; 22218 _state && ("object" != typeof _state || isArray(_state)) && warning(!1, "%s.state: must be set to an object or null", name), 22219 "function" == typeof instance.getChildContext && "object" != typeof type.childContextTypes && warning(!1, "%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().", name); 22220 } 22221 function adoptClassInstance(workInProgress, instance) { 22222 instance.updater = classComponentUpdater, workInProgress.stateNode = instance, set(instance, workInProgress), 22223 instance._reactInternalInstance = fakeInternalInstance; 22224 } 22225 function constructClassInstance(workInProgress, props, renderExpirationTime) { 22226 var ctor = workInProgress.type, unmaskedContext = getUnmaskedContext(workInProgress), needsContext = isContextConsumer(workInProgress), context = needsContext ? getMaskedContext(workInProgress, unmaskedContext) : emptyObject; 22227 (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) && new ctor(props, context); 22228 var instance = new ctor(props, context), state = workInProgress.memoizedState = null !== instance.state && void 0 !== instance.state ? instance.state : null; 22229 if (adoptClassInstance(workInProgress, instance), "function" == typeof ctor.getDerivedStateFromProps && null === state) { 22230 var componentName = getComponentName(workInProgress) || "Component"; 22231 didWarnAboutUninitializedState.has(componentName) || (didWarnAboutUninitializedState.add(componentName), 22232 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")); 22233 } 22234 if ("function" == typeof ctor.getDerivedStateFromProps || "function" == typeof instance.getSnapshotBeforeUpdate) { 22235 var foundWillMountName = null, foundWillReceivePropsName = null, foundWillUpdateName = null; 22236 if ("function" == typeof instance.componentWillMount && !0 !== instance.componentWillMount.__suppressDeprecationWarning ? foundWillMountName = "componentWillMount" : "function" == typeof instance.UNSAFE_componentWillMount && (foundWillMountName = "UNSAFE_componentWillMount"), 22237 "function" == typeof instance.componentWillReceiveProps && !0 !== instance.componentWillReceiveProps.__suppressDeprecationWarning ? foundWillReceivePropsName = "componentWillReceiveProps" : "function" == typeof instance.UNSAFE_componentWillReceiveProps && (foundWillReceivePropsName = "UNSAFE_componentWillReceiveProps"), 22238 "function" == typeof instance.componentWillUpdate && !0 !== instance.componentWillUpdate.__suppressDeprecationWarning ? foundWillUpdateName = "componentWillUpdate" : "function" == typeof instance.UNSAFE_componentWillUpdate && (foundWillUpdateName = "UNSAFE_componentWillUpdate"), 22239 null !== foundWillMountName || null !== foundWillReceivePropsName || null !== foundWillUpdateName) { 22240 var _componentName = getComponentName(workInProgress) || "Component", newApiName = "function" == typeof ctor.getDerivedStateFromProps ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()"; 22241 didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName) || (didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName), 22242 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:”“); 22243 } 22244 } 22245 return needsContext && cacheContext(workInProgress, unmaskedContext, context), instance; 22246 } 22247 function callComponentWillMount(workInProgress, instance) { 22248 startPhaseTimer(workInProgress, "componentWillMount"); 22249 var oldState = instance.state; 22250 "function" == typeof instance.componentWillMount && instance.componentWillMount(), 22251 "function" == typeof instance.UNSAFE_componentWillMount && instance.UNSAFE_componentWillMount(), 22252 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"), 22253 classComponentUpdater.enqueueReplaceState(instance, instance.state, null)); 22254 } 22255 function callComponentWillReceiveProps(workInProgress, instance, newProps, newContext) { 22256 var oldState = instance.state; 22257 if (startPhaseTimer(workInProgress, "componentWillReceiveProps"), "function" == typeof instance.componentWillReceiveProps && instance.componentWillReceiveProps(newProps, newContext), 22258 "function" == typeof instance.UNSAFE_componentWillReceiveProps && instance.UNSAFE_componentWillReceiveProps(newProps, newContext), 22259 stopPhaseTimer(), instance.state !== oldState) { 22260 var componentName = getComponentName(workInProgress) || "Component"; 22261 didWarnAboutStateAssignmentForComponent.has(componentName) || (didWarnAboutStateAssignmentForComponent.add(componentName), 22262 warning(!1, "%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", componentName)), 22263 classComponentUpdater.enqueueReplaceState(instance, instance.state, null); 22264 } 22265 } 22266 function mountClassInstance(workInProgress, renderExpirationTime) { 22267 var ctor = workInProgress.type; 22268 checkClassInstance(workInProgress); 22269 var instance = workInProgress.stateNode, props = workInProgress.pendingProps, unmaskedContext = getUnmaskedContext(workInProgress); 22270 instance.props = props, instance.state = workInProgress.memoizedState, instance.refs = emptyObject, 22271 instance.context = getMaskedContext(workInProgress, unmaskedContext), workInProgress.mode & StrictMode && (ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance), 22272 ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance)), warnAboutDeprecatedLifecycles && ReactStrictModeWarnings.recordDeprecationWarnings(workInProgress, instance); 22273 var updateQueue = workInProgress.updateQueue; 22274 null !== updateQueue && (processUpdateQueue(workInProgress, updateQueue, props, instance, renderExpirationTime), 22275 instance.state = workInProgress.memoizedState); 22276 var getDerivedStateFromProps = workInProgress.type.getDerivedStateFromProps; 22277 "function" == typeof getDerivedStateFromProps && (applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, props), 22278 instance.state = workInProgress.memoizedState), "function" == typeof ctor.getDerivedStateFromProps || "function" == typeof instance.getSnapshotBeforeUpdate || "function" != typeof instance.UNSAFE_componentWillMount && "function" != typeof instance.componentWillMount || (callComponentWillMount(workInProgress, instance), 22279 null !== (updateQueue = workInProgress.updateQueue) && (processUpdateQueue(workInProgress, updateQueue, props, instance, renderExpirationTime), 22280 instance.state = workInProgress.memoizedState)), "function" == typeof instance.componentDidMount && (workInProgress.effectTag |= Update); 22281 } 22282 function resumeMountClassInstance(workInProgress, renderExpirationTime) { 22283 var ctor = workInProgress.type, instance = workInProgress.stateNode, oldProps = workInProgress.memoizedProps, newProps = workInProgress.pendingProps; 22284 instance.props = oldProps; 22285 var oldContext = instance.context, newUnmaskedContext = getUnmaskedContext(workInProgress), newContext = getMaskedContext(workInProgress, newUnmaskedContext), getDerivedStateFromProps = ctor.getDerivedStateFromProps, hasNewLifecycles = "function" == typeof getDerivedStateFromProps || "function" == typeof instance.getSnapshotBeforeUpdate; 22286 hasNewLifecycles || "function" != typeof instance.UNSAFE_componentWillReceiveProps && "function" != typeof instance.componentWillReceiveProps || oldProps === newProps && oldContext === newContext || callComponentWillReceiveProps(workInProgress, instance, newProps, newContext), 22287 resetHasForceUpdateBeforeProcessing(); 22288 var oldState = workInProgress.memoizedState, newState = instance.state = oldState, updateQueue = workInProgress.updateQueue; 22289 if (null !== updateQueue && (processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime), 22290 newState = workInProgress.memoizedState), oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) return "function" == typeof instance.componentDidMount && (workInProgress.effectTag |= Update), 22291 !1; 22292 "function" == typeof getDerivedStateFromProps && (applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, newProps), 22293 newState = workInProgress.memoizedState); 22294 var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, oldProps, newProps, oldState, newState, newContext); 22295 return shouldUpdate ? (hasNewLifecycles || "function" != typeof instance.UNSAFE_componentWillMount && "function" != typeof instance.componentWillMount || (startPhaseTimer(workInProgress, "componentWillMount"), 22296 "function" == typeof instance.componentWillMount && instance.componentWillMount(), 22297 "function" == typeof instance.UNSAFE_componentWillMount && instance.UNSAFE_componentWillMount(), 22298 stopPhaseTimer()), "function" == typeof instance.componentDidMount && (workInProgress.effectTag |= Update)) : ("function" == typeof instance.componentDidMount && (workInProgress.effectTag |= Update), 22299 workInProgress.memoizedProps = newProps, workInProgress.memoizedState = newState), 22300 instance.props = newProps, instance.state = newState, instance.context = newContext, 22301 shouldUpdate; 22302 } 22303 function updateClassInstance(current, workInProgress, renderExpirationTime) { 22304 var ctor = workInProgress.type, instance = workInProgress.stateNode, oldProps = workInProgress.memoizedProps, newProps = workInProgress.pendingProps; 22305 instance.props = oldProps; 22306 var oldContext = instance.context, newUnmaskedContext = getUnmaskedContext(workInProgress), newContext = getMaskedContext(workInProgress, newUnmaskedContext), getDerivedStateFromProps = ctor.getDerivedStateFromProps, hasNewLifecycles = "function" == typeof getDerivedStateFromProps || "function" == typeof instance.getSnapshotBeforeUpdate; 22307 hasNewLifecycles || "function" != typeof instance.UNSAFE_componentWillReceiveProps && "function" != typeof instance.componentWillReceiveProps || oldProps === newProps && oldContext === newContext || callComponentWillReceiveProps(workInProgress, instance, newProps, newContext), 22308 resetHasForceUpdateBeforeProcessing(); 22309 var oldState = workInProgress.memoizedState, newState = instance.state = oldState, updateQueue = workInProgress.updateQueue; 22310 if (null !== updateQueue && (processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime), 22311 newState = workInProgress.memoizedState), oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) return "function" == typeof instance.componentDidUpdate && (oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.effectTag |= Update)), 22312 "function" == typeof instance.getSnapshotBeforeUpdate && (oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.effectTag |= Snapshot)), 22313 !1; 22314 "function" == typeof getDerivedStateFromProps && (fireGetDerivedStateFromPropsOnStateUpdates || oldProps !== newProps) && (applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, newProps), 22315 newState = workInProgress.memoizedState); 22316 var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, oldProps, newProps, oldState, newState, newContext); 22317 return shouldUpdate ? (hasNewLifecycles || "function" != typeof instance.UNSAFE_componentWillUpdate && "function" != typeof instance.componentWillUpdate || (startPhaseTimer(workInProgress, "componentWillUpdate"), 22318 "function" == typeof instance.componentWillUpdate && instance.componentWillUpdate(newProps, newState, newContext), 22319 "function" == typeof instance.UNSAFE_componentWillUpdate && instance.UNSAFE_componentWillUpdate(newProps, newState, newContext), 22320 stopPhaseTimer()), "function" == typeof instance.componentDidUpdate && (workInProgress.effectTag |= Update), 22321 "function" == typeof instance.getSnapshotBeforeUpdate && (workInProgress.effectTag |= Snapshot)) : ("function" == typeof instance.componentDidUpdate && (oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.effectTag |= Update)), 22322 "function" == typeof instance.getSnapshotBeforeUpdate && (oldProps === current.memoizedProps && oldState === current.memoizedState || (workInProgress.effectTag |= Snapshot)), 22323 workInProgress.memoizedProps = newProps, workInProgress.memoizedState = newState), 22324 instance.props = newProps, instance.state = newState, instance.context = newContext, 22325 shouldUpdate; 22326 } 22327 function coerceRef(returnFiber, current, element) { 22328 var mixedRef = element.ref; 22329 if (null !== mixedRef && "function" != typeof mixedRef && "object" != typeof mixedRef) { 22330 if (returnFiber.mode & StrictMode) { 22331 var componentName = getComponentName(returnFiber) || "Component"; 22332 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(返回光纤)), 22333 didWarnAboutStringRefInStrictMode[componentName] = !0); 22334 } 22335 if (element._owner) { 22336 var owner = element._owner, inst = void 0; 22337 if (owner) { 22338 var ownerFiber = owner; 22339 ownerFiber.tag !== ClassComponent && invariant(!1, "Stateless function components cannot have refs."), 22340 inst = ownerFiber.stateNode; 22341 } 22342 inst || invariant(!1, "Missing owner for string ref %s. This error is likely caused by a bug in React. Please file an issue.", mixedRef); 22343 var stringRef = "" + mixedRef; 22344 if (null !== current && null !== current.ref && "function" == typeof current.ref && current.ref._stringRef === stringRef) return current.ref; 22345 var ref = function(value) { 22346 var refs = inst.refs === emptyObject ? inst.refs = {} : inst.refs; 22347 null === value ? delete refs[stringRef] : refs[stringRef] = value; 22348 }; 22349 return ref._stringRef = stringRef, ref; 22350 } 22351 "string" != typeof mixedRef && invariant(!1, "Expected ref to be a function or a string."), 22352 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); 22353 } 22354 return mixedRef; 22355 } 22356 function throwOnInvalidObjectType(returnFiber, newChild) { 22357 if ("textarea" !== returnFiber.type) { 22358 var addendum = ""; 22359 addendum = " If you meant to render a collection of children, use an array instead." + (getCurrentFiberStackAddendum$7() || ""), 22360 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); 22361 } 22362 } 22363 function warnOnFunctionType() { 22364 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() || ""); 22365 ownerHasFunctionTypeWarning[currentComponentErrorInfo] || (ownerHasFunctionTypeWarning[currentComponentErrorInfo] = !0, 22366 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() || "")); 22367 } 22368 function ChildReconciler(shouldTrackSideEffects) { 22369 function deleteChild(returnFiber, childToDelete) { 22370 if (shouldTrackSideEffects) { 22371 var last = returnFiber.lastEffect; 22372 null !== last ? (last.nextEffect = childToDelete, returnFiber.lastEffect = childToDelete) : returnFiber.firstEffect = returnFiber.lastEffect = childToDelete, 22373 childToDelete.nextEffect = null, childToDelete.effectTag = Deletion; 22374 } 22375 } 22376 function deleteRemainingChildren(returnFiber, currentFirstChild) { 22377 if (!shouldTrackSideEffects) return null; 22378 for (var childToDelete = currentFirstChild; null !== childToDelete; ) deleteChild(returnFiber, childToDelete), 22379 childToDelete = childToDelete.sibling; 22380 return null; 22381 } 22382 function mapRemainingChildren(returnFiber, currentFirstChild) { 22383 for (var existingChildren = new Map(), existingChild = currentFirstChild; null !== existingChild; ) null !== existingChild.key ? existingChildren.set(existingChild.key, existingChild) : existingChildren.set(existingChild.index, existingChild), 22384 existingChild = existingChild.sibling; 22385 return existingChildren; 22386 } 22387 function useFiber(fiber, pendingProps, expirationTime) { 22388 var clone = createWorkInProgress(fiber, pendingProps, expirationTime); 22389 return clone.index = 0, clone.sibling = null, clone; 22390 } 22391 function placeChild(newFiber, lastPlacedIndex, newIndex) { 22392 if (newFiber.index = newIndex, !shouldTrackSideEffects) return lastPlacedIndex; 22393 var current = newFiber.alternate; 22394 if (null !== current) { 22395 var oldIndex = current.index; 22396 return oldIndex < lastPlacedIndex ? (newFiber.effectTag = Placement, lastPlacedIndex) : oldIndex; 22397 } 22398 return newFiber.effectTag = Placement, lastPlacedIndex; 22399 } 22400 function placeSingleChild(newFiber) { 22401 return shouldTrackSideEffects && null === newFiber.alternate && (newFiber.effectTag = Placement), 22402 newFiber; 22403 } 22404 function updateTextNode(returnFiber, current, textContent, expirationTime) { 22405 if (null === current || current.tag !== HostText) { 22406 var created = createFiberFromText(textContent, returnFiber.mode, expirationTime); 22407 return created.return = returnFiber, created; 22408 } 22409 var existing = useFiber(current, textContent, expirationTime); 22410 return existing.return = returnFiber, existing; 22411 } 22412 function updateElement(returnFiber, current, element, expirationTime) { 22413 if (null !== current && current.type === element.type) { 22414 var existing = useFiber(current, element.props, expirationTime); 22415 return existing.ref = coerceRef(returnFiber, current, element), existing.return = returnFiber, 22416 existing._debugSource = element._source, existing._debugOwner = element._owner, 22417 existing; 22418 } 22419 var created = createFiberFromElement(element, returnFiber.mode, expirationTime); 22420 return created.ref = coerceRef(returnFiber, current, element), created.return = returnFiber, 22421 created; 22422 } 22423 function updatePortal(returnFiber, current, portal, expirationTime) { 22424 if (null === current || current.tag !== HostPortal || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) { 22425 var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime); 22426 return created.return = returnFiber, created; 22427 } 22428 var existing = useFiber(current, portal.children || [], expirationTime); 22429 return existing.return = returnFiber, existing; 22430 } 22431 function updateFragment(returnFiber, current, fragment, expirationTime, key) { 22432 if (null === current || current.tag !== Fragment) { 22433 var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key); 22434 return created.return = returnFiber, created; 22435 } 22436 var existing = useFiber(current, fragment, expirationTime); 22437 return existing.return = returnFiber, existing; 22438 } 22439 function createChild(returnFiber, newChild, expirationTime) { 22440 if ("string" == typeof newChild || "number" == typeof newChild) { 22441 var created = createFiberFromText("" + newChild, returnFiber.mode, expirationTime); 22442 return created.return = returnFiber, created; 22443 } 22444 if ("object" == typeof newChild && null !== newChild) { 22445 switch (newChild.$$typeof) { 22446 case REACT_ELEMENT_TYPE: 22447 var _created = createFiberFromElement(newChild, returnFiber.mode, expirationTime); 22448 return _created.ref = coerceRef(returnFiber, null, newChild), _created.return = returnFiber, 22449 _created; 22450 22451 case REACT_PORTAL_TYPE: 22452 var _created2 = createFiberFromPortal(newChild, returnFiber.mode, expirationTime); 22453 return _created2.return = returnFiber, _created2; 22454 } 22455 if (isArray$1(newChild) || getIteratorFn(newChild)) { 22456 var _created3 = createFiberFromFragment(newChild, returnFiber.mode, expirationTime, null); 22457 return _created3.return = returnFiber, _created3; 22458 } 22459 throwOnInvalidObjectType(returnFiber, newChild); 22460 } 22461 return "function" == typeof newChild && warnOnFunctionType(), null; 22462 } 22463 function updateSlot(returnFiber, oldFiber, newChild, expirationTime) { 22464 var key = null !== oldFiber ? oldFiber.key : null; 22465 if ("string" == typeof newChild || "number" == typeof newChild) return null !== key ? null : updateTextNode(returnFiber, oldFiber, "" + newChild, expirationTime); 22466 if ("object" == typeof newChild && null !== newChild) { 22467 switch (newChild.$$typeof) { 22468 case REACT_ELEMENT_TYPE: 22469 return newChild.key === key ? newChild.type === REACT_FRAGMENT_TYPE ? updateFragment(returnFiber, oldFiber, newChild.props.children, expirationTime, key) : updateElement(returnFiber, oldFiber, newChild, expirationTime) : null; 22470 22471 case REACT_PORTAL_TYPE: 22472 return newChild.key === key ? updatePortal(returnFiber, oldFiber, newChild, expirationTime) : null; 22473 } 22474 if (isArray$1(newChild) || getIteratorFn(newChild)) return null !== key ? null : updateFragment(returnFiber, oldFiber, newChild, expirationTime, null); 22475 throwOnInvalidObjectType(returnFiber, newChild); 22476 } 22477 return "function" == typeof newChild && warnOnFunctionType(), null; 22478 } 22479 function updateFromMap(existingChildren, returnFiber, newIdx, newChild, expirationTime) { 22480 if ("string" == typeof newChild || "number" == typeof newChild) { 22481 return updateTextNode(returnFiber, existingChildren.get(newIdx) || null, "" + newChild, expirationTime); 22482 } 22483 if ("object" == typeof newChild && null !== newChild) { 22484 switch (newChild.$$typeof) { 22485 case REACT_ELEMENT_TYPE: 22486 var _matchedFiber = existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null; 22487 return newChild.type === REACT_FRAGMENT_TYPE ? updateFragment(returnFiber, _matchedFiber, newChild.props.children, expirationTime, newChild.key) : updateElement(returnFiber, _matchedFiber, newChild, expirationTime); 22488 22489 case REACT_PORTAL_TYPE: 22490 return updatePortal(returnFiber, existingChildren.get(null === newChild.key ? newIdx : newChild.key) || null, newChild, expirationTime); 22491 } 22492 if (isArray$1(newChild) || getIteratorFn(newChild)) { 22493 return updateFragment(returnFiber, existingChildren.get(newIdx) || null, newChild, expirationTime, null); 22494 } 22495 throwOnInvalidObjectType(returnFiber, newChild); 22496 } 22497 return "function" == typeof newChild && warnOnFunctionType(), null; 22498 } 22499 function warnOnInvalidKey(child, knownKeys) { 22500 if ("object" != typeof child || null === child) return knownKeys; 22501 switch (child.$$typeof) { 22502 case REACT_ELEMENT_TYPE: 22503 case REACT_PORTAL_TYPE: 22504 warnForMissingKey(child); 22505 var key = child.key; 22506 if ("string" != typeof key) break; 22507 if (null === knownKeys) { 22508 knownKeys = new Set(), knownKeys.add(key); 22509 break; 22510 } 22511 if (!knownKeys.has(key)) { 22512 knownKeys.add(key); 22513 break; 22514 } 22515 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()); 22516 } 22517 return knownKeys; 22518 } 22519 function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, expirationTime) { 22520 for (var knownKeys = null, i = 0; i < newChildren.length; i++) { 22521 knownKeys = warnOnInvalidKey(newChildren[i], knownKeys); 22522 } 22523 for (var resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, lastPlacedIndex = 0, newIdx = 0, nextOldFiber = null; null !== oldFiber && newIdx < newChildren.length; newIdx++) { 22524 oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; 22525 var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], expirationTime); 22526 if (null === newFiber) { 22527 null === oldFiber && (oldFiber = nextOldFiber); 22528 break; 22529 } 22530 shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber), 22531 lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx), null === previousNewFiber ? resultingFirstChild = newFiber : previousNewFiber.sibling = newFiber, 22532 previousNewFiber = newFiber, oldFiber = nextOldFiber; 22533 } 22534 if (newIdx === newChildren.length) return deleteRemainingChildren(returnFiber, oldFiber), 22535 resultingFirstChild; 22536 if (null === oldFiber) { 22537 for (;newIdx < newChildren.length; newIdx++) { 22538 var _newFiber = createChild(returnFiber, newChildren[newIdx], expirationTime); 22539 _newFiber && (lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx), 22540 null === previousNewFiber ? resultingFirstChild = _newFiber : previousNewFiber.sibling = _newFiber, 22541 previousNewFiber = _newFiber); 22542 } 22543 return resultingFirstChild; 22544 } 22545 for (var existingChildren = mapRemainingChildren(returnFiber, oldFiber); newIdx < newChildren.length; newIdx++) { 22546 var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], expirationTime); 22547 _newFiber2 && (shouldTrackSideEffects && null !== _newFiber2.alternate && existingChildren.delete(null === _newFiber2.key ? newIdx : _newFiber2.key), 22548 lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx), null === previousNewFiber ? resultingFirstChild = _newFiber2 : previousNewFiber.sibling = _newFiber2, 22549 previousNewFiber = _newFiber2); 22550 } 22551 return shouldTrackSideEffects && existingChildren.forEach(function(child) { 22552 return deleteChild(returnFiber, child); 22553 }), resultingFirstChild; 22554 } 22555 function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, expirationTime) { 22556 var iteratorFn = getIteratorFn(newChildrenIterable); 22557 "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."), 22558 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()), 22559 didWarnAboutMaps = !0); 22560 var _newChildren = iteratorFn.call(newChildrenIterable); 22561 if (_newChildren) for (var knownKeys = null, _step = _newChildren.next(); !_step.done; _step = _newChildren.next()) { 22562 var child = _step.value; 22563 knownKeys = warnOnInvalidKey(child, knownKeys); 22564 } 22565 var newChildren = iteratorFn.call(newChildrenIterable); 22566 null == newChildren && invariant(!1, "An iterable object provided no iterator."); 22567 for (var resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, lastPlacedIndex = 0, newIdx = 0, nextOldFiber = null, step = newChildren.next(); null !== oldFiber && !step.done; newIdx++, 22568 step = newChildren.next()) { 22569 oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling; 22570 var newFiber = updateSlot(returnFiber, oldFiber, step.value, expirationTime); 22571 if (null === newFiber) { 22572 oldFiber || (oldFiber = nextOldFiber); 22573 break; 22574 } 22575 shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber), 22576 lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx), null === previousNewFiber ? resultingFirstChild = newFiber : previousNewFiber.sibling = newFiber, 22577 previousNewFiber = newFiber, oldFiber = nextOldFiber; 22578 } 22579 if (step.done) return deleteRemainingChildren(returnFiber, oldFiber), resultingFirstChild; 22580 if (null === oldFiber) { 22581 for (;!step.done; newIdx++, step = newChildren.next()) { 22582 var _newFiber3 = createChild(returnFiber, step.value, expirationTime); 22583 null !== _newFiber3 && (lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx), 22584 null === previousNewFiber ? resultingFirstChild = _newFiber3 : previousNewFiber.sibling = _newFiber3, 22585 previousNewFiber = _newFiber3); 22586 } 22587 return resultingFirstChild; 22588 } 22589 for (var existingChildren = mapRemainingChildren(returnFiber, oldFiber); !step.done; newIdx++, 22590 step = newChildren.next()) { 22591 var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, expirationTime); 22592 null !== _newFiber4 && (shouldTrackSideEffects && null !== _newFiber4.alternate && existingChildren.delete(null === _newFiber4.key ? newIdx : _newFiber4.key), 22593 lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx), null === previousNewFiber ? resultingFirstChild = _newFiber4 : previousNewFiber.sibling = _newFiber4, 22594 previousNewFiber = _newFiber4); 22595 } 22596 return shouldTrackSideEffects && existingChildren.forEach(function(child) { 22597 return deleteChild(returnFiber, child); 22598 }), resultingFirstChild; 22599 } 22600 function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, expirationTime) { 22601 if (null !== currentFirstChild && currentFirstChild.tag === HostText) { 22602 deleteRemainingChildren(returnFiber, currentFirstChild.sibling); 22603 var existing = useFiber(currentFirstChild, textContent, expirationTime); 22604 return existing.return = returnFiber, existing; 22605 } 22606 deleteRemainingChildren(returnFiber, currentFirstChild); 22607 var created = createFiberFromText(textContent, returnFiber.mode, expirationTime); 22608 return created.return = returnFiber, created; 22609 } 22610 function reconcileSingleElement(returnFiber, currentFirstChild, element, expirationTime) { 22611 for (var key = element.key, child = currentFirstChild; null !== child; ) { 22612 if (child.key === key) { 22613 if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : child.type === element.type) { 22614 deleteRemainingChildren(returnFiber, child.sibling); 22615 var existing = useFiber(child, element.type === REACT_FRAGMENT_TYPE ? element.props.children : element.props, expirationTime); 22616 return existing.ref = coerceRef(returnFiber, child, element), existing.return = returnFiber, 22617 existing._debugSource = element._source, existing._debugOwner = element._owner, 22618 existing; 22619 } 22620 deleteRemainingChildren(returnFiber, child); 22621 break; 22622 } 22623 deleteChild(returnFiber, child), child = child.sibling; 22624 } 22625 if (element.type === REACT_FRAGMENT_TYPE) { 22626 var created = createFiberFromFragment(element.props.children, returnFiber.mode, expirationTime, element.key); 22627 return created.return = returnFiber, created; 22628 } 22629 var _created4 = createFiberFromElement(element, returnFiber.mode, expirationTime); 22630 return _created4.ref = coerceRef(returnFiber, currentFirstChild, element), _created4.return = returnFiber, 22631 _created4; 22632 } 22633 function reconcileSinglePortal(returnFiber, currentFirstChild, portal, expirationTime) { 22634 for (var key = portal.key, child = currentFirstChild; null !== child; ) { 22635 if (child.key === key) { 22636 if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) { 22637 deleteRemainingChildren(returnFiber, child.sibling); 22638 var existing = useFiber(child, portal.children || [], expirationTime); 22639 return existing.return = returnFiber, existing; 22640 } 22641 deleteRemainingChildren(returnFiber, child); 22642 break; 22643 } 22644 deleteChild(returnFiber, child), child = child.sibling; 22645 } 22646 var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime); 22647 return created.return = returnFiber, created; 22648 } 22649 function reconcileChildFibers(returnFiber, currentFirstChild, newChild, expirationTime) { 22650 "object" == typeof newChild && null !== newChild && newChild.type === REACT_FRAGMENT_TYPE && null === newChild.key && (newChild = newChild.props.children); 22651 var isObject = "object" == typeof newChild && null !== newChild; 22652 if (isObject) switch (newChild.$$typeof) { 22653 case REACT_ELEMENT_TYPE: 22654 return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, expirationTime)); 22655 22656 case REACT_PORTAL_TYPE: 22657 return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, expirationTime)); 22658 } 22659 if ("string" == typeof newChild || "number" == typeof newChild) return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, "" + newChild, expirationTime)); 22660 if (isArray$1(newChild)) return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, expirationTime); 22661 if (getIteratorFn(newChild)) return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, expirationTime); 22662 if (isObject && throwOnInvalidObjectType(returnFiber, newChild), "function" == typeof newChild && warnOnFunctionType(), 22663 void 0 === newChild) switch (returnFiber.tag) { 22664 case ClassComponent: 22665 if (returnFiber.stateNode.render._isMockFunction) break; 22666 22667 case FunctionalComponent: 22668 var Component = returnFiber.type; 22669 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"); 22670 } 22671 return deleteRemainingChildren(returnFiber, currentFirstChild); 22672 } 22673 return reconcileChildFibers; 22674 } 22675 function cloneChildFibers(current, workInProgress) { 22676 if (null !== current && workInProgress.child !== current.child && invariant(!1, "Resuming work not yet implemented."), 22677 null !== workInProgress.child) { 22678 var currentChild = workInProgress.child, newChild = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime); 22679 for (workInProgress.child = newChild, newChild.return = workInProgress; null !== currentChild.sibling; ) currentChild = currentChild.sibling, 22680 newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime), 22681 newChild.return = workInProgress; 22682 newChild.sibling = null; 22683 } 22684 } 22685 function enterHydrationState(fiber) { 22686 if (!supportsHydration) return !1; 22687 var parentInstance = fiber.stateNode.containerInfo; 22688 return nextHydratableInstance = getFirstHydratableChild(parentInstance), hydrationParentFiber = fiber, 22689 isHydrating = !0, !0; 22690 } 22691 function deleteHydratableInstance(returnFiber, instance) { 22692 switch (returnFiber.tag) { 22693 case HostRoot: 22694 didNotHydrateContainerInstance(returnFiber.stateNode.containerInfo, instance); 22695 break; 22696 22697 case HostComponent: 22698 didNotHydrateInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, instance); 22699 } 22700 var childToDelete = createFiberFromHostInstanceForDeletion(); 22701 childToDelete.stateNode = instance, childToDelete.return = returnFiber, childToDelete.effectTag = Deletion, 22702 null !== returnFiber.lastEffect ? (returnFiber.lastEffect.nextEffect = childToDelete, 22703 returnFiber.lastEffect = childToDelete) : returnFiber.firstEffect = returnFiber.lastEffect = childToDelete; 22704 } 22705 function insertNonHydratedInstance(returnFiber, fiber) { 22706 switch (fiber.effectTag |= Placement, returnFiber.tag) { 22707 case HostRoot: 22708 var parentContainer = returnFiber.stateNode.containerInfo; 22709 switch (fiber.tag) { 22710 case HostComponent: 22711 didNotFindHydratableContainerInstance(parentContainer, fiber.type, fiber.pendingProps); 22712 break; 22713 22714 case HostText: 22715 didNotFindHydratableContainerTextInstance(parentContainer, fiber.pendingProps); 22716 } 22717 break; 22718 22719 case HostComponent: 22720 var parentType = returnFiber.type, parentProps = returnFiber.memoizedProps, parentInstance = returnFiber.stateNode; 22721 switch (fiber.tag) { 22722 case HostComponent: 22723 didNotFindHydratableInstance(parentType, parentProps, parentInstance, fiber.type, fiber.pendingProps); 22724 break; 22725 22726 case HostText: 22727 didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, fiber.pendingProps); 22728 } 22729 break; 22730 22731 default: 22732 return; 22733 } 22734 } 22735 function tryHydrate(fiber, nextInstance) { 22736 switch (fiber.tag) { 22737 case HostComponent: 22738 var type = fiber.type, props = fiber.pendingProps, instance = canHydrateInstance(nextInstance, type, props); 22739 return null !== instance && (fiber.stateNode = instance, !0); 22740 22741 case HostText: 22742 var text = fiber.pendingProps, textInstance = canHydrateTextInstance(nextInstance, text); 22743 return null !== textInstance && (fiber.stateNode = textInstance, !0); 22744 22745 default: 22746 return !1; 22747 } 22748 } 22749 function tryToClaimNextHydratableInstance(fiber) { 22750 if (isHydrating) { 22751 var nextInstance = nextHydratableInstance; 22752 if (!nextInstance) return insertNonHydratedInstance(hydrationParentFiber, fiber), 22753 isHydrating = !1, void (hydrationParentFiber = fiber); 22754 var firstAttemptedInstance = nextInstance; 22755 if (!tryHydrate(fiber, nextInstance)) { 22756 if (!(nextInstance = getNextHydratableSibling(firstAttemptedInstance)) || !tryHydrate(fiber, nextInstance)) return insertNonHydratedInstance(hydrationParentFiber, fiber), 22757 isHydrating = !1, void (hydrationParentFiber = fiber); 22758 deleteHydratableInstance(hydrationParentFiber, firstAttemptedInstance); 22759 } 22760 hydrationParentFiber = fiber, nextHydratableInstance = getFirstHydratableChild(nextInstance); 22761 } 22762 } 22763 function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) { 22764 supportsHydration || invariant(!1, "Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue."); 22765 var instance = fiber.stateNode, updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber); 22766 return fiber.updateQueue = updatePayload, null !== updatePayload; 22767 } 22768 function prepareToHydrateHostTextInstance(fiber) { 22769 supportsHydration || invariant(!1, "Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue."); 22770 var textInstance = fiber.stateNode, textContent = fiber.memoizedProps, shouldUpdate = hydrateTextInstance(textInstance, textContent, fiber); 22771 if (shouldUpdate) { 22772 var returnFiber = hydrationParentFiber; 22773 if (null !== returnFiber) switch (returnFiber.tag) { 22774 case HostRoot: 22775 didNotMatchHydratedContainerTextInstance(returnFiber.stateNode.containerInfo, textInstance, textContent); 22776 break; 22777 22778 case HostComponent: 22779 didNotMatchHydratedTextInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, textInstance, textContent); 22780 } 22781 } 22782 return shouldUpdate; 22783 } 22784 function popToNextHostParent(fiber) { 22785 for (var parent = fiber.return; null !== parent && parent.tag !== HostComponent && parent.tag !== HostRoot; ) parent = parent.return; 22786 hydrationParentFiber = parent; 22787 } 22788 function popHydrationState(fiber) { 22789 if (!supportsHydration) return !1; 22790 if (fiber !== hydrationParentFiber) return !1; 22791 if (!isHydrating) return popToNextHostParent(fiber), isHydrating = !0, !1; 22792 var type = fiber.type; 22793 if (fiber.tag !== HostComponent || "head" !== type && "body" !== type && !shouldSetTextContent(type, fiber.memoizedProps)) for (var nextInstance = nextHydratableInstance; nextInstance; ) deleteHydratableInstance(fiber, nextInstance), 22794 nextInstance = getNextHydratableSibling(nextInstance); 22795 return popToNextHostParent(fiber), nextHydratableInstance = hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null, 22796 !0; 22797 } 22798 function resetHydrationState() { 22799 supportsHydration && (hydrationParentFiber = null, nextHydratableInstance = null, 22800 isHydrating = !1); 22801 } 22802 function reconcileChildren(current, workInProgress, nextChildren) { 22803 reconcileChildrenAtExpirationTime(current, workInProgress, nextChildren, workInProgress.expirationTime); 22804 } 22805 function reconcileChildrenAtExpirationTime(current, workInProgress, nextChildren, renderExpirationTime) { 22806 workInProgress.child = null === current ? mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime) : reconcileChildFibers(workInProgress, current.child, nextChildren, renderExpirationTime); 22807 } 22808 function updateForwardRef(current, workInProgress) { 22809 var render = workInProgress.type.render, nextProps = workInProgress.pendingProps, ref = workInProgress.ref; 22810 if (hasContextChanged()) ; else if (workInProgress.memoizedProps === nextProps) { 22811 var currentRef = null !== current ? current.ref : null; 22812 if (ref === currentRef) return bailoutOnAlreadyFinishedWork(current, workInProgress); 22813 } 22814 var nextChildren = void 0; 22815 return ReactCurrentOwner.current = workInProgress, ReactDebugCurrentFiber.setCurrentPhase("render"), 22816 nextChildren = render(nextProps, ref), ReactDebugCurrentFiber.setCurrentPhase(null), 22817 reconcileChildren(current, workInProgress, nextChildren), memoizeProps(workInProgress, nextProps), 22818 workInProgress.child; 22819 } 22820 function updateFragment(current, workInProgress) { 22821 var nextChildren = workInProgress.pendingProps; 22822 if (hasContextChanged()) ; else if (workInProgress.memoizedProps === nextChildren) return bailoutOnAlreadyFinishedWork(current, workInProgress); 22823 return reconcileChildren(current, workInProgress, nextChildren), memoizeProps(workInProgress, nextChildren), 22824 workInProgress.child; 22825 } 22826 function updateMode(current, workInProgress) { 22827 var nextChildren = workInProgress.pendingProps.children; 22828 if (hasContextChanged()) ; else if (null === nextChildren || workInProgress.memoizedProps === nextChildren) return bailoutOnAlreadyFinishedWork(current, workInProgress); 22829 return reconcileChildren(current, workInProgress, nextChildren), memoizeProps(workInProgress, nextChildren), 22830 workInProgress.child; 22831 } 22832 function updateProfiler(current, workInProgress) { 22833 var nextProps = workInProgress.pendingProps; 22834 return enableProfilerTimer && (markActualRenderTimeStarted(workInProgress), workInProgress.effectTag |= Update), 22835 workInProgress.memoizedProps === nextProps ? bailoutOnAlreadyFinishedWork(current, workInProgress) : (reconcileChildren(current, workInProgress, nextProps.children), 22836 memoizeProps(workInProgress, nextProps), workInProgress.child); 22837 } 22838 function markRef(current, workInProgress) { 22839 var ref = workInProgress.ref; 22840 (null === current && null !== ref || null !== current && current.ref !== ref) && (workInProgress.effectTag |= Ref); 22841 } 22842 function updateFunctionalComponent(current, workInProgress) { 22843 var fn = workInProgress.type, nextProps = workInProgress.pendingProps; 22844 if (hasContextChanged()) ; else if (workInProgress.memoizedProps === nextProps) return bailoutOnAlreadyFinishedWork(current, workInProgress); 22845 var unmaskedContext = getUnmaskedContext(workInProgress), context = getMaskedContext(workInProgress, unmaskedContext), nextChildren = void 0; 22846 return ReactCurrentOwner.current = workInProgress, ReactDebugCurrentFiber.setCurrentPhase("render"), 22847 nextChildren = fn(nextProps, context), ReactDebugCurrentFiber.setCurrentPhase(null), 22848 workInProgress.effectTag |= PerformedWork, reconcileChildren(current, workInProgress, nextChildren), 22849 memoizeProps(workInProgress, nextProps), workInProgress.child; 22850 } 22851 function updateClassComponent(current, workInProgress, renderExpirationTime) { 22852 var hasContext = pushContextProvider(workInProgress), shouldUpdate = void 0; 22853 return null === current ? null === workInProgress.stateNode ? (constructClassInstance(workInProgress, workInProgress.pendingProps, renderExpirationTime), 22854 mountClassInstance(workInProgress, renderExpirationTime), shouldUpdate = !0) : shouldUpdate = resumeMountClassInstance(workInProgress, renderExpirationTime) : shouldUpdate = updateClassInstance(current, workInProgress, renderExpirationTime), 22855 finishClassComponent(current, workInProgress, shouldUpdate, hasContext, renderExpirationTime); 22856 } 22857 function finishClassComponent(current, workInProgress, shouldUpdate, hasContext, renderExpirationTime) { 22858 markRef(current, workInProgress); 22859 var didCaptureError = (workInProgress.effectTag & DidCapture) !== NoEffect; 22860 if (!shouldUpdate && !didCaptureError) return hasContext && invalidateContextProvider(workInProgress, !1), 22861 bailoutOnAlreadyFinishedWork(current, workInProgress); 22862 var ctor = workInProgress.type, instance = workInProgress.stateNode; 22863 ReactCurrentOwner.current = workInProgress; 22864 var nextChildren = void 0; 22865 return !didCaptureError || enableGetDerivedStateFromCatch && "function" == typeof ctor.getDerivedStateFromCatch ? (ReactDebugCurrentFiber.setCurrentPhase("render"), 22866 nextChildren = instance.render(), (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) && instance.render(), 22867 ReactDebugCurrentFiber.setCurrentPhase(null)) : (nextChildren = null, enableProfilerTimer && stopBaseRenderTimerIfRunning()), 22868 workInProgress.effectTag |= PerformedWork, didCaptureError && (reconcileChildrenAtExpirationTime(current, workInProgress, null, renderExpirationTime), 22869 workInProgress.child = null), reconcileChildrenAtExpirationTime(current, workInProgress, nextChildren, renderExpirationTime), 22870 memoizeState(workInProgress, instance.state), memoizeProps(workInProgress, instance.props), 22871 hasContext && invalidateContextProvider(workInProgress, !0), workInProgress.child; 22872 } 22873 function pushHostRootContext(workInProgress) { 22874 var root = workInProgress.stateNode; 22875 root.pendingContext ? pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context) : root.context && pushTopLevelContextObject(workInProgress, root.context, !1), 22876 pushHostContainer(workInProgress, root.containerInfo); 22877 } 22878 function updateHostRoot(current, workInProgress, renderExpirationTime) { 22879 pushHostRootContext(workInProgress); 22880 var updateQueue = workInProgress.updateQueue; 22881 if (null !== updateQueue) { 22882 var nextProps = workInProgress.pendingProps, prevState = workInProgress.memoizedState, prevChildren = null !== prevState ? prevState.element : null; 22883 processUpdateQueue(workInProgress, updateQueue, nextProps, null, renderExpirationTime); 22884 var nextState = workInProgress.memoizedState, nextChildren = nextState.element; 22885 if (nextChildren === prevChildren) return resetHydrationState(), bailoutOnAlreadyFinishedWork(current, workInProgress); 22886 var root = workInProgress.stateNode; 22887 return (null === current || null === current.child) && root.hydrate && enterHydrationState(workInProgress) ? (workInProgress.effectTag |= Placement, 22888 workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime)) : (resetHydrationState(), 22889 reconcileChildren(current, workInProgress, nextChildren)), workInProgress.child; 22890 } 22891 return resetHydrationState(), bailoutOnAlreadyFinishedWork(current, workInProgress); 22892 } 22893 function updateHostComponent(current, workInProgress, renderExpirationTime) { 22894 pushHostContext(workInProgress), null === current && tryToClaimNextHydratableInstance(workInProgress); 22895 var type = workInProgress.type, memoizedProps = workInProgress.memoizedProps, nextProps = workInProgress.pendingProps, prevProps = null !== current ? current.memoizedProps : null; 22896 if (hasContextChanged()) ; else if (memoizedProps === nextProps) { 22897 var isHidden = workInProgress.mode & AsyncMode && shouldDeprioritizeSubtree(type, nextProps); 22898 if (isHidden && (workInProgress.expirationTime = Never), !isHidden || renderExpirationTime !== Never) return bailoutOnAlreadyFinishedWork(current, workInProgress); 22899 } 22900 var nextChildren = nextProps.children; 22901 return shouldSetTextContent(type, nextProps) ? nextChildren = null : prevProps && shouldSetTextContent(type, prevProps) && (workInProgress.effectTag |= ContentReset), 22902 markRef(current, workInProgress), renderExpirationTime !== Never && workInProgress.mode & AsyncMode && shouldDeprioritizeSubtree(type, nextProps) ? (workInProgress.expirationTime = Never, 22903 workInProgress.memoizedProps = nextProps, null) : (reconcileChildren(current, workInProgress, nextChildren), 22904 memoizeProps(workInProgress, nextProps), workInProgress.child); 22905 } 22906 function updateHostText(current, workInProgress) { 22907 return null === current && tryToClaimNextHydratableInstance(workInProgress), memoizeProps(workInProgress, workInProgress.pendingProps), 22908 null; 22909 } 22910 function mountIndeterminateComponent(current, workInProgress, renderExpirationTime) { 22911 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."); 22912 var fn = workInProgress.type, props = workInProgress.pendingProps, unmaskedContext = getUnmaskedContext(workInProgress), context = getMaskedContext(workInProgress, unmaskedContext), value = void 0; 22913 if (fn.prototype && "function" == typeof fn.prototype.render) { 22914 var componentName = getComponentName(workInProgress) || "Unknown"; 22915 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), 22916 didWarnAboutBadClass[componentName] = !0); 22917 } 22918 if (workInProgress.mode & StrictMode && ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null), 22919 ReactCurrentOwner.current = workInProgress, value = fn(props, context), workInProgress.effectTag |= PerformedWork, 22920 "object" == typeof value && null !== value && "function" == typeof value.render && void 0 === value.$$typeof) { 22921 var Component = workInProgress.type; 22922 workInProgress.tag = ClassComponent, workInProgress.memoizedState = null !== value.state && void 0 !== value.state ? value.state : null; 22923 var getDerivedStateFromProps = Component.getDerivedStateFromProps; 22924 "function" == typeof getDerivedStateFromProps && applyDerivedStateFromProps(workInProgress, getDerivedStateFromProps, props); 22925 var hasContext = pushContextProvider(workInProgress); 22926 return adoptClassInstance(workInProgress, value), mountClassInstance(workInProgress, renderExpirationTime), 22927 finishClassComponent(current, workInProgress, !0, hasContext, renderExpirationTime); 22928 } 22929 workInProgress.tag = FunctionalComponent; 22930 var _Component = workInProgress.type; 22931 if (_Component && _Component.childContextTypes && warning(!1, "%s(...): childContextTypes cannot be defined on a functional component.", _Component.displayName || _Component.name || "Component"), 22932 null !== workInProgress.ref) { 22933 var info = "", ownerName = ReactDebugCurrentFiber.getCurrentFiberOwnerName(); 22934 ownerName && (info += "\n\nCheck the render method of ` + ("`" + `" + ownerName + "`)) + ("`" + (`."); 22935 var warningKey = ownerName || workInProgress._debugID || "", debugSource = workInProgress._debugSource; 22936 debugSource && (warningKey = debugSource.fileName + ":" + debugSource.lineNumber), 22937 didWarnAboutStatelessRefs[warningKey] || (didWarnAboutStatelessRefs[warningKey] = !0, 22938 warning(!1, "Stateless function components cannot be given refs. Attempts to access this ref will fail.%s%s", info, ReactDebugCurrentFiber.getCurrentFiberStackAddendum())); 22939 } 22940 if ("function" == typeof fn.getDerivedStateFromProps) { 22941 var _componentName = getComponentName(workInProgress) || "Unknown"; 22942 didWarnAboutGetDerivedStateOnFunctionalComponent[_componentName] || (warning(!1, "%s: Stateless functional components do not support getDerivedStateFromProps.", _componentName), 22943 didWarnAboutGetDerivedStateOnFunctionalComponent[_componentName] = !0); 22944 } 22945 return reconcileChildren(current, workInProgress, value), memoizeProps(workInProgress, props), 22946 workInProgress.child; 22947 } 22948 function updateTimeoutComponent(current, workInProgress, renderExpirationTime) { 22949 if (enableSuspense) { 22950 var nextProps = workInProgress.pendingProps, prevProps = workInProgress.memoizedProps, prevDidTimeout = workInProgress.memoizedState, alreadyCaptured = (workInProgress.effectTag & DidCapture) === NoEffect, nextDidTimeout = !alreadyCaptured; 22951 if (hasContextChanged()) ; else if (nextProps === prevProps && nextDidTimeout === prevDidTimeout) return bailoutOnAlreadyFinishedWork(current, workInProgress); 22952 var render = nextProps.children, nextChildren = render(nextDidTimeout); 22953 return workInProgress.memoizedProps = nextProps, workInProgress.memoizedState = nextDidTimeout, 22954 reconcileChildren(current, workInProgress, nextChildren), workInProgress.child; 22955 } 22956 return null; 22957 } 22958 function updatePortalComponent(current, workInProgress, renderExpirationTime) { 22959 pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); 22960 var nextChildren = workInProgress.pendingProps; 22961 if (hasContextChanged()) ; else if (workInProgress.memoizedProps === nextChildren) return bailoutOnAlreadyFinishedWork(current, workInProgress); 22962 return null === current ? (workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime), 22963 memoizeProps(workInProgress, nextChildren)) : (reconcileChildren(current, workInProgress, nextChildren), 22964 memoizeProps(workInProgress, nextChildren)), workInProgress.child; 22965 } 22966 function propagateContextChange(workInProgress, context, changedBits, renderExpirationTime) { 22967 var fiber = workInProgress.child; 22968 for (null !== fiber && (fiber.return = workInProgress); null !== fiber; ) { 22969 var nextFiber = void 0; 22970 switch (fiber.tag) { 22971 case ContextConsumer: 22972 var observedBits = 0 | fiber.stateNode; 22973 if (fiber.type === context && 0 != (observedBits & changedBits)) { 22974 for (var node = fiber; null !== node; ) { 22975 var alternate = node.alternate; 22976 if (node.expirationTime === NoWork || node.expirationTime > renderExpirationTime) node.expirationTime = renderExpirationTime, 22977 null !== alternate && (alternate.expirationTime === NoWork || alternate.expirationTime > renderExpirationTime) && (alternate.expirationTime = renderExpirationTime); else { 22978 if (null === alternate || !(alternate.expirationTime === NoWork || alternate.expirationTime > renderExpirationTime)) break; 22979 alternate.expirationTime = renderExpirationTime; 22980 } 22981 node = node.return; 22982 } 22983 nextFiber = null; 22984 } else nextFiber = fiber.child; 22985 break; 22986 22987 case ContextProvider: 22988 nextFiber = fiber.type === workInProgress.type ? null : fiber.child; 22989 break; 22990 22991 default: 22992 nextFiber = fiber.child; 22993 } 22994 if (null !== nextFiber) nextFiber.return = fiber; else for (nextFiber = fiber; null !== nextFiber; ) { 22995 if (nextFiber === workInProgress) { 22996 nextFiber = null; 22997 break; 22998 } 22999 var sibling = nextFiber.sibling; 23000 if (null !== sibling) { 23001 sibling.return = nextFiber.return, nextFiber = sibling; 23002 break; 23003 } 23004 nextFiber = nextFiber.return; 23005 } 23006 fiber = nextFiber; 23007 } 23008 } 23009 function updateContextProvider(current, workInProgress, renderExpirationTime) { 23010 var providerType = workInProgress.type, context = providerType._context, newProps = workInProgress.pendingProps, oldProps = workInProgress.memoizedProps, canBailOnProps = !0; 23011 if (hasContextChanged()) canBailOnProps = !1; else if (oldProps === newProps) return workInProgress.stateNode = 0, 23012 pushProvider(workInProgress), bailoutOnAlreadyFinishedWork(current, workInProgress); 23013 var newValue = newProps.value; 23014 workInProgress.memoizedProps = newProps; 23015 var providerPropTypes = workInProgress.type.propTypes; 23016 providerPropTypes && checkPropTypes(providerPropTypes, newProps, "prop", "Context.Provider", getCurrentFiberStackAddendum$6); 23017 var changedBits = void 0; 23018 if (null === oldProps) changedBits = MAX_SIGNED_31_BIT_INT; else if (oldProps.value === newProps.value) { 23019 if (oldProps.children === newProps.children && canBailOnProps) return workInProgress.stateNode = 0, 23020 pushProvider(workInProgress), bailoutOnAlreadyFinishedWork(current, workInProgress); 23021 changedBits = 0; 23022 } else { 23023 var oldValue = oldProps.value; 23024 if (oldValue === newValue && (0 !== oldValue || 1 / oldValue == 1 / newValue) || oldValue !== oldValue && newValue !== newValue) { 23025 if (oldProps.children === newProps.children && canBailOnProps) return workInProgress.stateNode = 0, 23026 pushProvider(workInProgress), bailoutOnAlreadyFinishedWork(current, workInProgress); 23027 changedBits = 0; 23028 } else if (changedBits = "function" == typeof context._calculateChangedBits ? context._calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT, 23029 (changedBits & MAX_SIGNED_31_BIT_INT) !== changedBits && warning(!1, "calculateChangedBits: Expected the return value to be a 31-bit integer. Instead received: %s", changedBits), 23030 0 === (changedBits |= 0)) { 23031 if (oldProps.children === newProps.children && canBailOnProps) return workInProgress.stateNode = 0, 23032 pushProvider(workInProgress), bailoutOnAlreadyFinishedWork(current, workInProgress); 23033 } else propagateContextChange(workInProgress, context, changedBits, renderExpirationTime); 23034 } 23035 return workInProgress.stateNode = changedBits, pushProvider(workInProgress), reconcileChildren(current, workInProgress, newProps.children), 23036 workInProgress.child; 23037 } 23038 function updateContextConsumer(current, workInProgress, renderExpirationTime) { 23039 var context = workInProgress.type, newProps = workInProgress.pendingProps, oldProps = workInProgress.memoizedProps, newValue = getContextCurrentValue(context), changedBits = getContextChangedBits(context); 23040 if (hasContextChanged()) ; else if (0 === changedBits && oldProps === newProps) return bailoutOnAlreadyFinishedWork(current, workInProgress); 23041 workInProgress.memoizedProps = newProps; 23042 var observedBits = newProps.unstable_observedBits; 23043 if (void 0 !== observedBits && null !== observedBits || (observedBits = MAX_SIGNED_31_BIT_INT), 23044 workInProgress.stateNode = observedBits, 0 != (changedBits & observedBits)) propagateContextChange(workInProgress, context, changedBits, renderExpirationTime); else if (oldProps === newProps) return bailoutOnAlreadyFinishedWork(current, workInProgress); 23045 var render = newProps.children; 23046 "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."); 23047 var newChildren = void 0; 23048 return ReactCurrentOwner.current = workInProgress, ReactDebugCurrentFiber.setCurrentPhase("render"), 23049 newChildren = render(newValue), ReactDebugCurrentFiber.setCurrentPhase(null), workInProgress.effectTag |= PerformedWork, 23050 reconcileChildren(current, workInProgress, newChildren), workInProgress.child; 23051 } 23052 function bailoutOnAlreadyFinishedWork(current, workInProgress) { 23053 return cancelWorkTimer(workInProgress), enableProfilerTimer && stopBaseRenderTimerIfRunning(), 23054 cloneChildFibers(current, workInProgress), workInProgress.child; 23055 } 23056 function bailoutOnLowPriority(current, workInProgress) { 23057 switch (cancelWorkTimer(workInProgress), enableProfilerTimer && stopBaseRenderTimerIfRunning(), 23058 workInProgress.tag) { 23059 case HostRoot: 23060 pushHostRootContext(workInProgress); 23061 break; 23062 23063 case ClassComponent: 23064 pushContextProvider(workInProgress); 23065 break; 23066 23067 case HostPortal: 23068 pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo); 23069 break; 23070 23071 case ContextProvider: 23072 pushProvider(workInProgress); 23073 break; 23074 23075 case Profiler: 23076 enableProfilerTimer && markActualRenderTimeStarted(workInProgress); 23077 } 23078 return null; 23079 } 23080 function memoizeProps(workInProgress, nextProps) { 23081 workInProgress.memoizedProps = nextProps; 23082 } 23083 function memoizeState(workInProgress, nextState) { 23084 workInProgress.memoizedState = nextState; 23085 } 23086 function beginWork(current, workInProgress, renderExpirationTime) { 23087 if (workInProgress.expirationTime === NoWork || workInProgress.expirationTime > renderExpirationTime) return bailoutOnLowPriority(current, workInProgress); 23088 switch (workInProgress.tag) { 23089 case IndeterminateComponent: 23090 return mountIndeterminateComponent(current, workInProgress, renderExpirationTime); 23091 23092 case FunctionalComponent: 23093 return updateFunctionalComponent(current, workInProgress); 23094 23095 case ClassComponent: 23096 return updateClassComponent(current, workInProgress, renderExpirationTime); 23097 23098 case HostRoot: 23099 return updateHostRoot(current, workInProgress, renderExpirationTime); 23100 23101 case HostComponent: 23102 return updateHostComponent(current, workInProgress, renderExpirationTime); 23103 23104 case HostText: 23105 return updateHostText(current, workInProgress); 23106 23107 case TimeoutComponent: 23108 return updateTimeoutComponent(current, workInProgress, renderExpirationTime); 23109 23110 case HostPortal: 23111 return updatePortalComponent(current, workInProgress, renderExpirationTime); 23112 23113 case ForwardRef: 23114 return updateForwardRef(current, workInProgress); 23115 23116 case Fragment: 23117 return updateFragment(current, workInProgress); 23118 23119 case Mode: 23120 return updateMode(current, workInProgress); 23121 23122 case Profiler: 23123 return updateProfiler(current, workInProgress); 23124 23125 case ContextProvider: 23126 return updateContextProvider(current, workInProgress, renderExpirationTime); 23127 23128 case ContextConsumer: 23129 return updateContextConsumer(current, workInProgress, renderExpirationTime); 23130 23131 default: 23132 invariant(!1, "Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue."); 23133 } 23134 } 23135 function markUpdate(workInProgress) { 23136 workInProgress.effectTag |= Update; 23137 } 23138 function markRef$1(workInProgress) { 23139 workInProgress.effectTag |= Ref; 23140 } 23141 function appendAllChildren(parent, workInProgress) { 23142 for (var node = workInProgress.child; null !== node; ) { 23143 if (node.tag === HostComponent || node.tag === HostText) appendInitialChild(parent, node.stateNode); else if (node.tag === HostPortal) ; else if (null !== node.child) { 23144 node.child.return = node, node = node.child; 23145 continue; 23146 } 23147 if (node === workInProgress) return; 23148 for (;null === node.sibling; ) { 23149 if (null === node.return || node.return === workInProgress) return; 23150 node = node.return; 23151 } 23152 node.sibling.return = node.return, node = node.sibling; 23153 } 23154 } 23155 function completeWork(current, workInProgress, renderExpirationTime) { 23156 var newProps = workInProgress.pendingProps; 23157 switch (workInProgress.tag) { 23158 case FunctionalComponent: 23159 return null; 23160 23161 case ClassComponent: 23162 return popContextProvider(workInProgress), null; 23163 23164 case HostRoot: 23165 popHostContainer(workInProgress), popTopLevelContextObject(workInProgress); 23166 var fiberRoot = workInProgress.stateNode; 23167 return fiberRoot.pendingContext && (fiberRoot.context = fiberRoot.pendingContext, 23168 fiberRoot.pendingContext = null), null !== current && null !== current.child || (popHydrationState(workInProgress), 23169 workInProgress.effectTag &= ~Placement), updateHostContainer(workInProgress), null; 23170 23171 case HostComponent: 23172 popHostContext(workInProgress); 23173 var rootContainerInstance = getRootHostContainer(), type = workInProgress.type; 23174 if (null !== current && null != workInProgress.stateNode) { 23175 var oldProps = current.memoizedProps, instance = workInProgress.stateNode, currentHostContext = getHostContext(), updatePayload = prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext); 23176 updateHostComponent$1(current, workInProgress, updatePayload, type, oldProps, newProps, rootContainerInstance, currentHostContext), 23177 current.ref !== workInProgress.ref && markRef$1(workInProgress); 23178 } else { 23179 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."), 23180 null; 23181 var _currentHostContext = getHostContext(); 23182 if (popHydrationState(workInProgress)) prepareToHydrateHostInstance(workInProgress, rootContainerInstance, _currentHostContext) && markUpdate(workInProgress); else { 23183 var _instance = createInstance(type, newProps, rootContainerInstance, _currentHostContext, workInProgress); 23184 appendAllChildren(_instance, workInProgress), finalizeInitialChildren(_instance, type, newProps, rootContainerInstance, _currentHostContext) && markUpdate(workInProgress), 23185 workInProgress.stateNode = _instance; 23186 } 23187 null !== workInProgress.ref && markRef$1(workInProgress); 23188 } 23189 return null; 23190 23191 case HostText: 23192 var newText = newProps; 23193 if (current && null != workInProgress.stateNode) { 23194 var oldText = current.memoizedProps; 23195 updateHostText$1(current, workInProgress, oldText, newText); 23196 } else { 23197 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."), 23198 null; 23199 var _rootContainerInstance = getRootHostContainer(), _currentHostContext2 = getHostContext(); 23200 popHydrationState(workInProgress) ? prepareToHydrateHostTextInstance(workInProgress) && markUpdate(workInProgress) : workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext2, workInProgress); 23201 } 23202 return null; 23203 23204 case ForwardRef: 23205 case TimeoutComponent: 23206 case Fragment: 23207 case Mode: 23208 return null; 23209 23210 case Profiler: 23211 return enableProfilerTimer && recordElapsedActualRenderTime(workInProgress), null; 23212 23213 case HostPortal: 23214 return popHostContainer(workInProgress), updateHostContainer(workInProgress), null; 23215 23216 case ContextProvider: 23217 return popProvider(workInProgress), null; 23218 23219 case ContextConsumer: 23220 return null; 23221 23222 case IndeterminateComponent: 23223 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."); 23224 23225 default: 23226 invariant(!1, "Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue."); 23227 } 23228 } 23229 function showErrorDialog(capturedError) { 23230 return !0; 23231 } 23232 function logCapturedError(capturedError) { 23233 if (!1 !== showErrorDialog(capturedError)) { 23234 var error = capturedError.error; 23235 if (!error || !error.suppressReactErrorLogging) { 23236 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; 23237 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了解更多关于错误边界的信息。”; 23238 var combinedMessage = "" + componentNameMessage + componentStack + "\n\n" + errorBoundaryMessage; 23239 console.error(combinedMessage); 23240 } 23241 } 23242 } 23243 function logError(boundary, errorInfo) { 23244 var source = errorInfo.source, stack = errorInfo.stack; 23245 null === stack && null !== source && (stack = getStackAddendumByWorkInProgressFiber(source)); 23246 var capturedError = { 23247 componentName: null !== source ? getComponentName(source) : null, 23248 componentStack: null !== stack ? stack : "", 23249 error: errorInfo.value, 23250 errorBoundary: null, 23251 errorBoundaryName: null, 23252 errorBoundaryFound: !1, 23253 willRetry: !1 23254 }; 23255 null !== boundary && boundary.tag === ClassComponent && (capturedError.errorBoundary = boundary.stateNode, 23256 capturedError.errorBoundaryName = getComponentName(boundary), capturedError.errorBoundaryFound = !0, 23257 capturedError.willRetry = !0); 23258 try { 23259 logCapturedError(capturedError); 23260 } catch (e) { 23261 var suppressLogging = e && e.suppressReactErrorLogging; 23262 suppressLogging || console.error(e); 23263 } 23264 } 23265 function safelyCallComponentWillUnmount(current, instance) { 23266 if (invokeGuardedCallback$3(null, callComponentWillUnmountWithTimer, null, current, instance), 23267 hasCaughtError$1()) { 23268 captureCommitPhaseError(current, clearCaughtError$1()); 23269 } 23270 } 23271 function safelyDetachRef(current) { 23272 var ref = current.ref; 23273 if (null !== ref) if ("function" == typeof ref) { 23274 if (invokeGuardedCallback$3(null, ref, null, null), hasCaughtError$1()) { 23275 var refError = clearCaughtError$1(); 23276 captureCommitPhaseError(current, refError); 23277 } 23278 } else ref.current = null; 23279 } 23280 function commitBeforeMutationLifeCycles(current, finishedWork) { 23281 switch (finishedWork.tag) { 23282 case ClassComponent: 23283 if (finishedWork.effectTag & Snapshot && null !== current) { 23284 var prevProps = current.memoizedProps, prevState = current.memoizedState; 23285 startPhaseTimer(finishedWork, "getSnapshotBeforeUpdate"); 23286 var instance = finishedWork.stateNode; 23287 instance.props = finishedWork.memoizedProps, instance.state = finishedWork.memoizedState; 23288 var snapshot = instance.getSnapshotBeforeUpdate(prevProps, prevState), didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate; 23289 void 0 !== snapshot || didWarnSet.has(finishedWork.type) || (didWarnSet.add(finishedWork.type), 23290 warning(!1, "%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.", getComponentName(finishedWork))), 23291 instance.__reactInternalSnapshotBeforeUpdate = snapshot, stopPhaseTimer(); 23292 } 23293 return; 23294 23295 case HostRoot: 23296 case HostComponent: 23297 case HostText: 23298 case HostPortal: 23299 return; 23300 23301 default: 23302 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."); 23303 } 23304 } 23305 function commitLifeCycles(finishedRoot, current, finishedWork, currentTime, committedExpirationTime) { 23306 switch (finishedWork.tag) { 23307 case ClassComponent: 23308 var instance = finishedWork.stateNode; 23309 if (finishedWork.effectTag & Update) if (null === current) startPhaseTimer(finishedWork, "componentDidMount"), 23310 instance.props = finishedWork.memoizedProps, instance.state = finishedWork.memoizedState, 23311 instance.componentDidMount(), stopPhaseTimer(); else { 23312 var prevProps = current.memoizedProps, prevState = current.memoizedState; 23313 startPhaseTimer(finishedWork, "componentDidUpdate"), instance.props = finishedWork.memoizedProps, 23314 instance.state = finishedWork.memoizedState, instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate), 23315 stopPhaseTimer(); 23316 } 23317 var updateQueue = finishedWork.updateQueue; 23318 return void (null !== updateQueue && (instance.props = finishedWork.memoizedProps, 23319 instance.state = finishedWork.memoizedState, commitUpdateQueue(finishedWork, updateQueue, instance, committedExpirationTime))); 23320 23321 case HostRoot: 23322 var _updateQueue = finishedWork.updateQueue; 23323 if (null !== _updateQueue) { 23324 var _instance = null; 23325 if (null !== finishedWork.child) switch (finishedWork.child.tag) { 23326 case HostComponent: 23327 _instance = getPublicInstance(finishedWork.child.stateNode); 23328 break; 23329 23330 case ClassComponent: 23331 _instance = finishedWork.child.stateNode; 23332 } 23333 commitUpdateQueue(finishedWork, _updateQueue, _instance, committedExpirationTime); 23334 } 23335 return; 23336 23337 case HostComponent: 23338 var _instance2 = finishedWork.stateNode; 23339 if (null === current && finishedWork.effectTag & Update) { 23340 commitMount(_instance2, finishedWork.type, finishedWork.memoizedProps, finishedWork); 23341 } 23342 return; 23343 23344 case HostText: 23345 case HostPortal: 23346 case Profiler: 23347 case TimeoutComponent: 23348 return; 23349 23350 default: 23351 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."); 23352 } 23353 } 23354 function commitAttachRef(finishedWork) { 23355 var ref = finishedWork.ref; 23356 if (null !== ref) { 23357 var instance = finishedWork.stateNode, instanceToUse = void 0; 23358 switch (finishedWork.tag) { 23359 case HostComponent: 23360 instanceToUse = getPublicInstance(instance); 23361 break; 23362 23363 default: 23364 instanceToUse = instance; 23365 } 23366 "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)), 23367 ref.current = instanceToUse); 23368 } 23369 } 23370 function commitDetachRef(current) { 23371 var currentRef = current.ref; 23372 null !== currentRef && ("function" == typeof currentRef ? currentRef(null) : currentRef.current = null); 23373 } 23374 function commitUnmount(current) { 23375 switch ("function" == typeof onCommitUnmount && onCommitUnmount(current), current.tag) { 23376 case ClassComponent: 23377 safelyDetachRef(current); 23378 var instance = current.stateNode; 23379 return void ("function" == typeof instance.componentWillUnmount && safelyCallComponentWillUnmount(current, instance)); 23380 23381 case HostComponent: 23382 return void safelyDetachRef(current); 23383 23384 case HostPortal: 23385 return void (supportsMutation ? unmountHostComponents(current) : supportsPersistence && emptyPortalContainer(current)); 23386 } 23387 } 23388 function commitNestedUnmounts(root) { 23389 for (var node = root; ;) if (commitUnmount(node), null === node.child || supportsMutation && node.tag === HostPortal) { 23390 if (node === root) return; 23391 for (;null === node.sibling; ) { 23392 if (null === node.return || node.return === root) return; 23393 node = node.return; 23394 } 23395 node.sibling.return = node.return, node = node.sibling; 23396 } else node.child.return = node, node = node.child; 23397 } 23398 function detachFiber(current) { 23399 current.return = null, current.child = null, current.alternate && (current.alternate.child = null, 23400 current.alternate.return = null); 23401 } 23402 function emptyPortalContainer(current) { 23403 if (supportsPersistence) { 23404 var portal = current.stateNode, containerInfo = portal.containerInfo, emptyChildSet = createContainerChildSet(containerInfo); 23405 replaceContainerChildren(containerInfo, emptyChildSet); 23406 } 23407 } 23408 function commitContainer(finishedWork) { 23409 if (supportsPersistence) switch (finishedWork.tag) { 23410 case ClassComponent: 23411 case HostComponent: 23412 case HostText: 23413 return; 23414 23415 case HostRoot: 23416 case HostPortal: 23417 var portalOrRoot = finishedWork.stateNode, containerInfo = portalOrRoot.containerInfo, _pendingChildren = portalOrRoot.pendingChildren; 23418 return void replaceContainerChildren(containerInfo, _pendingChildren); 23419 23420 default: 23421 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."); 23422 } 23423 } 23424 function getHostParentFiber(fiber) { 23425 for (var parent = fiber.return; null !== parent; ) { 23426 if (isHostParent(parent)) return parent; 23427 parent = parent.return; 23428 } 23429 invariant(!1, "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."); 23430 } 23431 function isHostParent(fiber) { 23432 return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal; 23433 } 23434 function getHostSibling(fiber) { 23435 var node = fiber; 23436 siblings: for (;;) { 23437 for (;null === node.sibling; ) { 23438 if (null === node.return || isHostParent(node.return)) return null; 23439 node = node.return; 23440 } 23441 for (node.sibling.return = node.return, node = node.sibling; node.tag !== HostComponent && node.tag !== HostText; ) { 23442 if (node.effectTag & Placement) continue siblings; 23443 if (null === node.child || node.tag === HostPortal) continue siblings; 23444 node.child.return = node, node = node.child; 23445 } 23446 if (!(node.effectTag & Placement)) return node.stateNode; 23447 } 23448 } 23449 function commitPlacement(finishedWork) { 23450 if (supportsMutation) { 23451 var parentFiber = getHostParentFiber(finishedWork), parent = void 0, isContainer = void 0; 23452 switch (parentFiber.tag) { 23453 case HostComponent: 23454 parent = parentFiber.stateNode, isContainer = !1; 23455 break; 23456 23457 case HostRoot: 23458 case HostPortal: 23459 parent = parentFiber.stateNode.containerInfo, isContainer = !0; 23460 break; 23461 23462 default: 23463 invariant(!1, "Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue."); 23464 } 23465 parentFiber.effectTag & ContentReset && (resetTextContent(parent), parentFiber.effectTag &= ~ContentReset); 23466 for (var before = getHostSibling(finishedWork), node = finishedWork; ;) { 23467 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) { 23468 node.child.return = node, node = node.child; 23469 continue; 23470 } 23471 if (node === finishedWork) return; 23472 for (;null === node.sibling; ) { 23473 if (null === node.return || node.return === finishedWork) return; 23474 node = node.return; 23475 } 23476 node.sibling.return = node.return, node = node.sibling; 23477 } 23478 } 23479 } 23480 function unmountHostComponents(current) { 23481 for (var node = current, currentParentIsValid = !1, currentParent = void 0, currentParentIsContainer = void 0; ;) { 23482 if (!currentParentIsValid) { 23483 var parent = node.return; 23484 findParent: for (;;) { 23485 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."), 23486 parent.tag) { 23487 case HostComponent: 23488 currentParent = parent.stateNode, currentParentIsContainer = !1; 23489 break findParent; 23490 23491 case HostRoot: 23492 case HostPortal: 23493 currentParent = parent.stateNode.containerInfo, currentParentIsContainer = !0; 23494 break findParent; 23495 } 23496 parent = parent.return; 23497 } 23498 currentParentIsValid = !0; 23499 } 23500 if (node.tag === HostComponent || node.tag === HostText) commitNestedUnmounts(node), 23501 currentParentIsContainer ? removeChildFromContainer(currentParent, node.stateNode) : removeChild(currentParent, node.stateNode); else if (node.tag === HostPortal) { 23502 if (currentParent = node.stateNode.containerInfo, null !== node.child) { 23503 node.child.return = node, node = node.child; 23504 continue; 23505 } 23506 } else if (commitUnmount(node), null !== node.child) { 23507 node.child.return = node, node = node.child; 23508 continue; 23509 } 23510 if (node === current) return; 23511 for (;null === node.sibling; ) { 23512 if (null === node.return || node.return === current) return; 23513 node = node.return, node.tag === HostPortal && (currentParentIsValid = !1); 23514 } 23515 node.sibling.return = node.return, node = node.sibling; 23516 } 23517 } 23518 function commitDeletion(current) { 23519 supportsMutation ? unmountHostComponents(current) : commitNestedUnmounts(current), 23520 detachFiber(current); 23521 } 23522 function commitWork(current, finishedWork) { 23523 if (!supportsMutation) return void commitContainer(finishedWork); 23524 switch (finishedWork.tag) { 23525 case ClassComponent: 23526 return; 23527 23528 case HostComponent: 23529 var instance = finishedWork.stateNode; 23530 if (null != instance) { 23531 var newProps = finishedWork.memoizedProps, oldProps = null !== current ? current.memoizedProps : newProps, type = finishedWork.type, updatePayload = finishedWork.updateQueue; 23532 finishedWork.updateQueue = null, null !== updatePayload && commitUpdate(instance, updatePayload, type, oldProps, newProps, finishedWork); 23533 } 23534 return; 23535 23536 case HostText: 23537 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."); 23538 var textInstance = finishedWork.stateNode, newText = finishedWork.memoizedProps; 23539 return void commitTextUpdate(textInstance, null !== current ? current.memoizedProps : newText, newText); 23540 23541 case HostRoot: 23542 return; 23543 23544 case Profiler: 23545 if (enableProfilerTimer) { 23546 (0, finishedWork.memoizedProps.onRender)(finishedWork.memoizedProps.id, null === current ? "mount" : "update", finishedWork.stateNode.duration, finishedWork.treeBaseTime, finishedWork.stateNode.startTime, getCommitTime()), 23547 finishedWork.stateNode.duration = 0; 23548 } 23549 return; 23550 23551 case TimeoutComponent: 23552 return; 23553 23554 default: 23555 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."); 23556 } 23557 } 23558 function commitResetTextContent(current) { 23559 supportsMutation && resetTextContent(current.stateNode); 23560 } 23561 function createRootErrorUpdate(fiber, errorInfo, expirationTime) { 23562 var update = createUpdate(expirationTime); 23563 update.tag = CaptureUpdate, update.payload = { 23564 element: null 23565 }; 23566 var error = errorInfo.value; 23567 return update.callback = function() { 23568 onUncaughtError(error), logError(fiber, errorInfo); 23569 }, update; 23570 } 23571 function createClassErrorUpdate(fiber, errorInfo, expirationTime) { 23572 var update = createUpdate(expirationTime); 23573 update.tag = CaptureUpdate; 23574 var getDerivedStateFromCatch = fiber.type.getDerivedStateFromCatch; 23575 if (enableGetDerivedStateFromCatch && "function" == typeof getDerivedStateFromCatch) { 23576 var error = errorInfo.value; 23577 update.payload = function() { 23578 return getDerivedStateFromCatch(error); 23579 }; 23580 } 23581 var inst = fiber.stateNode; 23582 return null !== inst && "function" == typeof inst.componentDidCatch && (update.callback = function() { 23583 enableGetDerivedStateFromCatch && "function" === getDerivedStateFromCatch || markLegacyErrorBoundaryAsFailed(this); 23584 var error = errorInfo.value, stack = errorInfo.stack; 23585 logError(fiber, errorInfo), this.componentDidCatch(error, { 23586 componentStack: null !== stack ? stack : "" 23587 }); 23588 }), update; 23589 } 23590 function schedulePing(finishedWork) { 23591 var currentTime = recalculateCurrentTime(), expirationTime = computeExpirationForFiber(currentTime, finishedWork); 23592 enqueueUpdate(finishedWork, createUpdate(expirationTime), expirationTime), scheduleWork$1(finishedWork, expirationTime); 23593 } 23594 function throwException(root, returnFiber, sourceFiber, value, renderIsExpired, renderExpirationTime, currentTimeMs) { 23595 if (sourceFiber.effectTag |= Incomplete, sourceFiber.firstEffect = sourceFiber.lastEffect = null, 23596 enableSuspense && null !== value && "object" == typeof value && "function" == typeof value.then) { 23597 var thenable = value, expirationTimeMs = expirationTimeToMs(renderExpirationTime), startTimeMs = expirationTimeMs - 5e3, elapsedMs = currentTimeMs - startTimeMs; 23598 elapsedMs < 0 && (elapsedMs = 0); 23599 var remainingTimeMs = expirationTimeMs - currentTimeMs, _workInProgress = returnFiber, earliestTimeoutMs = -1; 23600 searchForEarliestTimeout: do { 23601 if (_workInProgress.tag === TimeoutComponent) { 23602 var current = _workInProgress.alternate; 23603 if (null !== current && !0 === current.memoizedState) { 23604 earliestTimeoutMs = 0; 23605 break searchForEarliestTimeout; 23606 } 23607 var timeoutPropMs = _workInProgress.pendingProps.ms; 23608 if ("number" == typeof timeoutPropMs) { 23609 if (timeoutPropMs <= 0) { 23610 earliestTimeoutMs = 0; 23611 break searchForEarliestTimeout; 23612 } 23613 (-1 === earliestTimeoutMs || timeoutPropMs < earliestTimeoutMs) && (earliestTimeoutMs = timeoutPropMs); 23614 } else -1 === earliestTimeoutMs && (earliestTimeoutMs = remainingTimeMs); 23615 } 23616 _workInProgress = _workInProgress.return; 23617 } while (null !== _workInProgress); 23618 var msUntilTimeout = earliestTimeoutMs - elapsedMs; 23619 if (renderExpirationTime === Never || msUntilTimeout > 0) { 23620 suspendRoot(root, thenable, msUntilTimeout, renderExpirationTime); 23621 var onResolveOrReject = function() { 23622 retrySuspendedRoot(root, renderExpirationTime); 23623 }; 23624 return void thenable.then(onResolveOrReject, onResolveOrReject); 23625 } 23626 _workInProgress = returnFiber; 23627 do { 23628 switch (_workInProgress.tag) { 23629 case HostRoot: 23630 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."; 23631 value = new Error(message); 23632 break; 23633 23634 case TimeoutComponent: 23635 if ((_workInProgress.effectTag & DidCapture) === NoEffect) { 23636 _workInProgress.effectTag |= ShouldCapture; 23637 var _onResolveOrReject = schedulePing.bind(null, _workInProgress); 23638 return void thenable.then(_onResolveOrReject, _onResolveOrReject); 23639 } 23640 } 23641 _workInProgress = _workInProgress.return; 23642 } while (null !== _workInProgress); 23643 } 23644 value = createCapturedValue(value, sourceFiber); 23645 var workInProgress = returnFiber; 23646 do { 23647 switch (workInProgress.tag) { 23648 case HostRoot: 23649 var _errorInfo = value; 23650 workInProgress.effectTag |= ShouldCapture; 23651 return void enqueueCapturedUpdate(workInProgress, createRootErrorUpdate(workInProgress, _errorInfo, renderExpirationTime), renderExpirationTime); 23652 23653 case ClassComponent: 23654 var errorInfo = value, ctor = workInProgress.type, instance = workInProgress.stateNode; 23655 if ((workInProgress.effectTag & DidCapture) === NoEffect && ("function" == typeof ctor.getDerivedStateFromCatch && enableGetDerivedStateFromCatch || null !== instance && "function" == typeof instance.componentDidCatch && !isAlreadyFailedLegacyErrorBoundary(instance))) { 23656 workInProgress.effectTag |= ShouldCapture; 23657 return void enqueueCapturedUpdate(workInProgress, createClassErrorUpdate(workInProgress, errorInfo, renderExpirationTime), renderExpirationTime); 23658 } 23659 } 23660 workInProgress = workInProgress.return; 23661 } while (null !== workInProgress); 23662 } 23663 function unwindWork(workInProgress, renderIsExpired, renderExpirationTime) { 23664 switch (workInProgress.tag) { 23665 case ClassComponent: 23666 popContextProvider(workInProgress); 23667 var effectTag = workInProgress.effectTag; 23668 return effectTag & ShouldCapture ? (workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture, 23669 workInProgress) : null; 23670 23671 case HostRoot: 23672 popHostContainer(workInProgress), popTopLevelContextObject(workInProgress); 23673 var _effectTag = workInProgress.effectTag; 23674 return _effectTag & ShouldCapture ? (workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture, 23675 workInProgress) : null; 23676 23677 case HostComponent: 23678 return popHostContext(workInProgress), null; 23679 23680 case TimeoutComponent: 23681 var _effectTag2 = workInProgress.effectTag; 23682 return _effectTag2 & ShouldCapture ? (workInProgress.effectTag = _effectTag2 & ~ShouldCapture | DidCapture, 23683 workInProgress) : null; 23684 23685 case HostPortal: 23686 return popHostContainer(workInProgress), null; 23687 23688 case ContextProvider: 23689 return popProvider(workInProgress), null; 23690 23691 default: 23692 return null; 23693 } 23694 } 23695 function unwindInterruptedWork(interruptedWork) { 23696 switch (interruptedWork.tag) { 23697 case ClassComponent: 23698 popContextProvider(interruptedWork); 23699 break; 23700 23701 case HostRoot: 23702 popHostContainer(interruptedWork), popTopLevelContextObject(interruptedWork); 23703 break; 23704 23705 case HostComponent: 23706 popHostContext(interruptedWork); 23707 break; 23708 23709 case HostPortal: 23710 popHostContainer(interruptedWork); 23711 break; 23712 23713 case ContextProvider: 23714 popProvider(interruptedWork); 23715 break; 23716 23717 case Profiler: 23718 enableProfilerTimer && (resumeActualRenderTimerIfPaused(), recordElapsedActualRenderTime(interruptedWork)); 23719 } 23720 } 23721 function resetStack() { 23722 if (null !== nextUnitOfWork) for (var interruptedWork = nextUnitOfWork.return; null !== interruptedWork; ) unwindInterruptedWork(interruptedWork), 23723 interruptedWork = interruptedWork.return; 23724 ReactStrictModeWarnings.discardPendingWarnings(), checkThatStackIsEmpty(), nextRoot = null, 23725 nextRenderExpirationTime = NoWork, nextLatestTimeoutMs = -1, nextRenderIsExpired = !1, 23726 nextUnitOfWork = null, isRootReadyForCommit = !1; 23727 } 23728 function commitAllHostEffects() { 23729 for (;null !== nextEffect; ) { 23730 ReactDebugCurrentFiber.setCurrentFiber(nextEffect), recordEffect(); 23731 var effectTag = nextEffect.effectTag; 23732 if (effectTag & ContentReset && commitResetTextContent(nextEffect), effectTag & Ref) { 23733 var current = nextEffect.alternate; 23734 null !== current && commitDetachRef(current); 23735 } 23736 switch (effectTag & (Placement | Update | Deletion)) { 23737 case Placement: 23738 commitPlacement(nextEffect), nextEffect.effectTag &= ~Placement; 23739 break; 23740 23741 case PlacementAndUpdate: 23742 commitPlacement(nextEffect), nextEffect.effectTag &= ~Placement; 23743 commitWork(nextEffect.alternate, nextEffect); 23744 break; 23745 23746 case Update: 23747 commitWork(nextEffect.alternate, nextEffect); 23748 break; 23749 23750 case Deletion: 23751 commitDeletion(nextEffect); 23752 } 23753 nextEffect = nextEffect.nextEffect; 23754 } 23755 ReactDebugCurrentFiber.resetCurrentFiber(); 23756 } 23757 function commitBeforeMutationLifecycles() { 23758 for (;null !== nextEffect; ) { 23759 if (nextEffect.effectTag & Snapshot) { 23760 recordEffect(); 23761 commitBeforeMutationLifeCycles(nextEffect.alternate, nextEffect); 23762 } 23763 nextEffect = nextEffect.nextEffect; 23764 } 23765 } 23766 function commitAllLifeCycles(finishedRoot, currentTime, committedExpirationTime) { 23767 for (ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings(), warnAboutDeprecatedLifecycles && ReactStrictModeWarnings.flushPendingDeprecationWarnings(), 23768 warnAboutLegacyContextAPI && ReactStrictModeWarnings.flushLegacyContextWarning(); null !== nextEffect; ) { 23769 var effectTag = nextEffect.effectTag; 23770 if (effectTag & (Update | Callback)) { 23771 recordEffect(); 23772 commitLifeCycles(finishedRoot, nextEffect.alternate, nextEffect, currentTime, committedExpirationTime); 23773 } 23774 effectTag & Ref && (recordEffect(), commitAttachRef(nextEffect)); 23775 var next = nextEffect.nextEffect; 23776 nextEffect.nextEffect = null, nextEffect = next; 23777 } 23778 } 23779 function isAlreadyFailedLegacyErrorBoundary(instance) { 23780 return null !== legacyErrorBoundariesThatAlreadyFailed && legacyErrorBoundariesThatAlreadyFailed.has(instance); 23781 } 23782 function markLegacyErrorBoundaryAsFailed(instance) { 23783 null === legacyErrorBoundariesThatAlreadyFailed ? legacyErrorBoundariesThatAlreadyFailed = new Set([ instance ]) : legacyErrorBoundariesThatAlreadyFailed.add(instance); 23784 } 23785 function commitRoot(finishedWork) { 23786 isWorking = !0, isCommitting$1 = !0, startCommitTimer(); 23787 var root = finishedWork.stateNode; 23788 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."); 23789 var committedExpirationTime = root.pendingCommitExpirationTime; 23790 committedExpirationTime === NoWork && invariant(!1, "Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."), 23791 root.pendingCommitExpirationTime = NoWork; 23792 var currentTime = recalculateCurrentTime(); 23793 ReactCurrentOwner.current = null; 23794 var firstEffect = void 0; 23795 for (finishedWork.effectTag > PerformedWork ? null !== finishedWork.lastEffect ? (finishedWork.lastEffect.nextEffect = finishedWork, 23796 firstEffect = finishedWork.firstEffect) : firstEffect = finishedWork : firstEffect = finishedWork.firstEffect, 23797 prepareForCommit(root.containerInfo), nextEffect = firstEffect, startCommitSnapshotEffectsTimer(); null !== nextEffect; ) { 23798 var didError = !1, error = void 0; 23799 invokeGuardedCallback$2(null, commitBeforeMutationLifecycles, null), hasCaughtError() && (didError = !0, 23800 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."), 23801 captureCommitPhaseError(nextEffect, error), null !== nextEffect && (nextEffect = nextEffect.nextEffect)); 23802 } 23803 for (stopCommitSnapshotEffectsTimer(), enableProfilerTimer && recordCommitTime(), 23804 nextEffect = firstEffect, startCommitHostEffectsTimer(); null !== nextEffect; ) { 23805 var _didError = !1, _error = void 0; 23806 invokeGuardedCallback$2(null, commitAllHostEffects, null), hasCaughtError() && (_didError = !0, 23807 _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."), 23808 captureCommitPhaseError(nextEffect, _error), null !== nextEffect && (nextEffect = nextEffect.nextEffect)); 23809 } 23810 for (stopCommitHostEffectsTimer(), resetAfterCommit(root.containerInfo), root.current = finishedWork, 23811 nextEffect = firstEffect, startCommitLifeCyclesTimer(); null !== nextEffect; ) { 23812 var _didError2 = !1, _error2 = void 0; 23813 invokeGuardedCallback$2(null, commitAllLifeCycles, null, root, currentTime, committedExpirationTime), 23814 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."), 23815 captureCommitPhaseError(nextEffect, _error2), null !== nextEffect && (nextEffect = nextEffect.nextEffect)); 23816 } 23817 enableProfilerTimer && (checkActualRenderTimeStackEmpty(), resetActualRenderTimer()), 23818 isCommitting$1 = !1, isWorking = !1, stopCommitLifeCyclesTimer(), stopCommitTimer(), 23819 "function" == typeof onCommitRoot && onCommitRoot(finishedWork.stateNode), ReactFiberInstrumentation_1.debugTool && ReactFiberInstrumentation_1.debugTool.onCommitWork(finishedWork), 23820 markCommittedPriorityLevels(root, currentTime, root.current.expirationTime); 23821 var remainingTime = findNextPendingPriorityLevel(root); 23822 return remainingTime === NoWork && (legacyErrorBoundariesThatAlreadyFailed = null), 23823 remainingTime; 23824 } 23825 function resetExpirationTime(workInProgress, renderTime) { 23826 if (renderTime === Never || workInProgress.expirationTime !== Never) { 23827 var newExpirationTime = NoWork; 23828 switch (workInProgress.tag) { 23829 case HostRoot: 23830 case ClassComponent: 23831 var updateQueue = workInProgress.updateQueue; 23832 null !== updateQueue && (newExpirationTime = updateQueue.expirationTime); 23833 } 23834 if (enableProfilerTimer && workInProgress.mode & ProfileMode) { 23835 for (var treeBaseTime = workInProgress.selfBaseTime, child = workInProgress.child; null !== child; ) treeBaseTime += child.treeBaseTime, 23836 child.expirationTime !== NoWork && (newExpirationTime === NoWork || newExpirationTime > child.expirationTime) && (newExpirationTime = child.expirationTime), 23837 child = child.sibling; 23838 workInProgress.treeBaseTime = treeBaseTime; 23839 } else for (var _child = workInProgress.child; null !== _child; ) _child.expirationTime !== NoWork && (newExpirationTime === NoWork || newExpirationTime > _child.expirationTime) && (newExpirationTime = _child.expirationTime), 23840 _child = _child.sibling; 23841 workInProgress.expirationTime = newExpirationTime; 23842 } 23843 } 23844 function completeUnitOfWork(workInProgress) { 23845 for (;;) { 23846 var current = workInProgress.alternate; 23847 ReactDebugCurrentFiber.setCurrentFiber(workInProgress); 23848 var returnFiber = workInProgress.return, siblingFiber = workInProgress.sibling; 23849 if ((workInProgress.effectTag & Incomplete) === NoEffect) { 23850 var next = completeWork(current, workInProgress, nextRenderExpirationTime); 23851 if (stopWorkTimer(workInProgress), resetExpirationTime(workInProgress, nextRenderExpirationTime), 23852 ReactDebugCurrentFiber.resetCurrentFiber(), null !== next) return stopWorkTimer(workInProgress), 23853 ReactFiberInstrumentation_1.debugTool && ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress), 23854 next; 23855 if (null !== returnFiber && (returnFiber.effectTag & Incomplete) === NoEffect) { 23856 null === returnFiber.firstEffect && (returnFiber.firstEffect = workInProgress.firstEffect), 23857 null !== workInProgress.lastEffect && (null !== returnFiber.lastEffect && (returnFiber.lastEffect.nextEffect = workInProgress.firstEffect), 23858 returnFiber.lastEffect = workInProgress.lastEffect); 23859 workInProgress.effectTag > PerformedWork && (null !== returnFiber.lastEffect ? returnFiber.lastEffect.nextEffect = workInProgress : returnFiber.firstEffect = workInProgress, 23860 returnFiber.lastEffect = workInProgress); 23861 } 23862 if (ReactFiberInstrumentation_1.debugTool && ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress), 23863 null !== siblingFiber) return siblingFiber; 23864 if (null !== returnFiber) { 23865 workInProgress = returnFiber; 23866 continue; 23867 } 23868 return isRootReadyForCommit = !0, null; 23869 } 23870 var _next = unwindWork(workInProgress, nextRenderIsExpired, nextRenderExpirationTime); 23871 if (workInProgress.effectTag & DidCapture ? stopFailedWorkTimer(workInProgress) : stopWorkTimer(workInProgress), 23872 ReactDebugCurrentFiber.resetCurrentFiber(), null !== _next) return stopWorkTimer(workInProgress), 23873 ReactFiberInstrumentation_1.debugTool && ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress), 23874 _next.effectTag &= HostEffectMask, _next; 23875 if (null !== returnFiber && (returnFiber.firstEffect = returnFiber.lastEffect = null, 23876 returnFiber.effectTag |= Incomplete), ReactFiberInstrumentation_1.debugTool && ReactFiberInstrumentation_1.debugTool.onCompleteWork(workInProgress), 23877 null !== siblingFiber) return siblingFiber; 23878 if (null === returnFiber) return null; 23879 workInProgress = returnFiber; 23880 } 23881 return null; 23882 } 23883 function performUnitOfWork(workInProgress) { 23884 var current = workInProgress.alternate; 23885 startWorkTimer(workInProgress), ReactDebugCurrentFiber.setCurrentFiber(workInProgress), 23886 replayFailedUnitOfWorkWithInvokeGuardedCallback && (stashedWorkInProgressProperties = assignFiberPropertiesInDEV(stashedWorkInProgressProperties, workInProgress)); 23887 var next = void 0; 23888 return enableProfilerTimer ? (workInProgress.mode & ProfileMode && startBaseRenderTimer(), 23889 next = beginWork(current, workInProgress, nextRenderExpirationTime), workInProgress.mode & ProfileMode && (recordElapsedBaseRenderTimeIfRunning(workInProgress), 23890 stopBaseRenderTimerIfRunning())) : next = beginWork(current, workInProgress, nextRenderExpirationTime), 23891 ReactDebugCurrentFiber.resetCurrentFiber(), isReplayingFailedUnitOfWork && rethrowOriginalError(), 23892 ReactFiberInstrumentation_1.debugTool && ReactFiberInstrumentation_1.debugTool.onBeginWork(workInProgress), 23893 null === next && (next = completeUnitOfWork(workInProgress)), ReactCurrentOwner.current = null, 23894 next; 23895 } 23896 function workLoop(isAsync) { 23897 if (isAsync) { 23898 for (;null !== nextUnitOfWork && !shouldYield(); ) nextUnitOfWork = performUnitOfWork(nextUnitOfWork); 23899 enableProfilerTimer && pauseActualRenderTimerIfRunning(); 23900 } else for (;null !== nextUnitOfWork; ) nextUnitOfWork = performUnitOfWork(nextUnitOfWork); 23901 } 23902 function renderRoot(root, expirationTime, isAsync) { 23903 isWorking && invariant(!1, "renderRoot was called recursively. This error is likely caused by a bug in React. Please file an issue."), 23904 isWorking = !0, expirationTime === nextRenderExpirationTime && root === nextRoot && null !== nextUnitOfWork || (resetStack(), 23905 nextRoot = root, nextRenderExpirationTime = expirationTime, nextLatestTimeoutMs = -1, 23906 nextUnitOfWork = createWorkInProgress(nextRoot.current, null, nextRenderExpirationTime), 23907 root.pendingCommitExpirationTime = NoWork); 23908 var didFatal = !1; 23909 for (nextRenderIsExpired = !isAsync || nextRenderExpirationTime <= mostRecentCurrentTime, 23910 startWorkLoopTimer(nextUnitOfWork); ;) { 23911 try { 23912 workLoop(isAsync); 23913 } catch (thrownValue) { 23914 if (enableProfilerTimer && stopBaseRenderTimerIfRunning(), null === nextUnitOfWork) didFatal = !0, 23915 onUncaughtError(thrownValue); else { 23916 resetCurrentlyProcessingQueue(); 23917 var failedUnitOfWork = nextUnitOfWork; 23918 replayFailedUnitOfWorkWithInvokeGuardedCallback && replayUnitOfWork(failedUnitOfWork, thrownValue, isAsync), 23919 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."); 23920 var sourceFiber = nextUnitOfWork, returnFiber = sourceFiber.return; 23921 if (null === returnFiber) { 23922 didFatal = !0, onUncaughtError(thrownValue); 23923 break; 23924 } 23925 throwException(root, returnFiber, sourceFiber, thrownValue, nextRenderIsExpired, nextRenderExpirationTime, mostRecentCurrentTimeMs), 23926 nextUnitOfWork = completeUnitOfWork(sourceFiber); 23927 } 23928 } 23929 break; 23930 } 23931 var didCompleteRoot = !1; 23932 if (isWorking = !1, didFatal) return stopWorkLoopTimer(interruptedBy, didCompleteRoot), 23933 interruptedBy = null, resetStackAfterFatalErrorInDev(), null; 23934 if (null === nextUnitOfWork) { 23935 if (isRootReadyForCommit) { 23936 didCompleteRoot = !0, stopWorkLoopTimer(interruptedBy, didCompleteRoot), interruptedBy = null, 23937 root.pendingCommitExpirationTime = expirationTime; 23938 return root.current.alternate; 23939 } 23940 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."), 23941 markSuspendedPriorityLevel(root, expirationTime), nextLatestTimeoutMs >= 0 && setTimeout(function() { 23942 retrySuspendedRoot(root, expirationTime); 23943 }, nextLatestTimeoutMs); 23944 return onBlock(findNextPendingPriorityLevel(root)), null; 23945 } 23946 return stopWorkLoopTimer(interruptedBy, didCompleteRoot), interruptedBy = null, 23947 null; 23948 } 23949 function dispatch(sourceFiber, value, expirationTime) { 23950 isWorking && !isCommitting$1 && invariant(!1, "dispatch: Cannot dispatch during the render phase."); 23951 for (var fiber = sourceFiber.return; null !== fiber; ) { 23952 switch (fiber.tag) { 23953 case ClassComponent: 23954 var ctor = fiber.type, instance = fiber.stateNode; 23955 if ("function" == typeof ctor.getDerivedStateFromCatch || "function" == typeof instance.componentDidCatch && !isAlreadyFailedLegacyErrorBoundary(instance)) { 23956 return enqueueUpdate(fiber, createClassErrorUpdate(fiber, createCapturedValue(value, sourceFiber), expirationTime), expirationTime), 23957 void scheduleWork$1(fiber, expirationTime); 23958 } 23959 break; 23960 23961 case HostRoot: 23962 return enqueueUpdate(fiber, createRootErrorUpdate(fiber, createCapturedValue(value, sourceFiber), expirationTime), expirationTime), 23963 void scheduleWork$1(fiber, expirationTime); 23964 } 23965 fiber = fiber.return; 23966 } 23967 if (sourceFiber.tag === HostRoot) { 23968 var rootFiber = sourceFiber; 23969 enqueueUpdate(rootFiber, createRootErrorUpdate(rootFiber, createCapturedValue(value, rootFiber), expirationTime), expirationTime), 23970 scheduleWork$1(rootFiber, expirationTime); 23971 } 23972 } 23973 function captureCommitPhaseError(fiber, error) { 23974 return dispatch(fiber, error, Sync); 23975 } 23976 function computeAsyncExpiration(currentTime) { 23977 return computeExpirationBucket(currentTime, 5e3, 250); 23978 } 23979 function computeInteractiveExpiration(currentTime) { 23980 var expirationMs = void 0; 23981 expirationMs = 500; 23982 return computeExpirationBucket(currentTime, expirationMs, 100); 23983 } 23984 function computeUniqueAsyncExpiration() { 23985 var currentTime = recalculateCurrentTime(), result = computeAsyncExpiration(currentTime); 23986 return result <= lastUniqueAsyncExpiration && (result = lastUniqueAsyncExpiration + 1), 23987 lastUniqueAsyncExpiration = result; 23988 } 23989 function computeExpirationForFiber(currentTime, fiber) { 23990 var expirationTime = void 0; 23991 return expirationTime = expirationContext !== NoWork ? expirationContext : isWorking ? isCommitting$1 ? Sync : nextRenderExpirationTime : fiber.mode & AsyncMode ? isBatchingInteractiveUpdates ? computeInteractiveExpiration(currentTime) : computeAsyncExpiration(currentTime) : Sync, 23992 isBatchingInteractiveUpdates && (lowestPendingInteractiveExpirationTime === NoWork || expirationTime > lowestPendingInteractiveExpirationTime) && (lowestPendingInteractiveExpirationTime = expirationTime), 23993 expirationTime; 23994 } 23995 function suspendRoot(root, thenable, timeoutMs, suspendedTime) { 23996 timeoutMs >= 0 && nextLatestTimeoutMs < timeoutMs && (nextLatestTimeoutMs = timeoutMs); 23997 } 23998 function retrySuspendedRoot(root, suspendedTime) { 23999 markPingedPriorityLevel(root, suspendedTime); 24000 var retryTime = findNextPendingPriorityLevel(root); 24001 retryTime !== NoWork && requestRetry(root, retryTime); 24002 } 24003 function scheduleWork$1(fiber, expirationTime) { 24004 if (recordScheduleUpdate(), fiber.tag === ClassComponent) { 24005 var instance = fiber.stateNode; 24006 warnAboutInvalidUpdates(instance); 24007 } 24008 for (var node = fiber; null !== node; ) { 24009 if ((node.expirationTime === NoWork || node.expirationTime > expirationTime) && (node.expirationTime = expirationTime), 24010 null !== node.alternate && (node.alternate.expirationTime === NoWork || node.alternate.expirationTime > expirationTime) && (node.alternate.expirationTime = expirationTime), 24011 null === node.return) { 24012 if (node.tag !== HostRoot) return void (fiber.tag === ClassComponent && warnAboutUpdateOnUnmounted(fiber)); 24013 var root = node.stateNode; 24014 !isWorking && nextRenderExpirationTime !== NoWork && expirationTime < nextRenderExpirationTime && (interruptedBy = fiber, 24015 resetStack()), markPendingPriorityLevel(root, expirationTime); 24016 var nextExpirationTimeToWorkOn = findNextPendingPriorityLevel(root); 24017 isWorking && !isCommitting$1 && nextRoot === root || requestWork(root, nextExpirationTimeToWorkOn), 24018 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."); 24019 } 24020 node = node.return; 24021 } 24022 } 24023 function recalculateCurrentTime() { 24024 return mostRecentCurrentTimeMs = now() - originalStartTimeMs, mostRecentCurrentTime = msToExpirationTime(mostRecentCurrentTimeMs); 24025 } 24026 function deferredUpdates(fn) { 24027 var previousExpirationContext = expirationContext, currentTime = recalculateCurrentTime(); 24028 expirationContext = computeAsyncExpiration(currentTime); 24029 try { 24030 return fn(); 24031 } finally { 24032 expirationContext = previousExpirationContext; 24033 } 24034 } 24035 function syncUpdates(fn, a, b, c, d) { 24036 var previousExpirationContext = expirationContext; 24037 expirationContext = Sync; 24038 try { 24039 return fn(a, b, c, d); 24040 } finally { 24041 expirationContext = previousExpirationContext; 24042 } 24043 } 24044 function scheduleCallbackWithExpiration(expirationTime) { 24045 if (callbackExpirationTime !== NoWork) { 24046 if (expirationTime > callbackExpirationTime) return; 24047 cancelDeferredCallback(callbackID); 24048 } else startRequestCallbackTimer(); 24049 var currentMs = now() - originalStartTimeMs, expirationMs = expirationTimeToMs(expirationTime), timeout = expirationMs - currentMs; 24050 callbackExpirationTime = expirationTime, callbackID = scheduleDeferredCallback(performAsyncWork, { 24051 timeout: timeout 24052 }); 24053 } 24054 function requestRetry(root, expirationTime) { 24055 (root.remainingExpirationTime === NoWork || root.remainingExpirationTime < expirationTime) && requestWork(root, expirationTime); 24056 } 24057 function requestWork(root, expirationTime) { 24058 if (addRootToSchedule(root, expirationTime), !isRendering) return isBatchingUpdates ? void (isUnbatchingUpdates && (nextFlushedRoot = root, 24059 nextFlushedExpirationTime = Sync, performWorkOnRoot(root, Sync, !1))) : void (expirationTime === Sync ? performSyncWork() : scheduleCallbackWithExpiration(expirationTime)); 24060 } 24061 function addRootToSchedule(root, expirationTime) { 24062 if (null === root.nextScheduledRoot) root.remainingExpirationTime = expirationTime, 24063 null === lastScheduledRoot ? (firstScheduledRoot = lastScheduledRoot = root, root.nextScheduledRoot = root) : (lastScheduledRoot.nextScheduledRoot = root, 24064 lastScheduledRoot = root, lastScheduledRoot.nextScheduledRoot = firstScheduledRoot); else { 24065 var remainingExpirationTime = root.remainingExpirationTime; 24066 (remainingExpirationTime === NoWork || expirationTime < remainingExpirationTime) && (root.remainingExpirationTime = expirationTime); 24067 } 24068 } 24069 function findHighestPriorityRoot() { 24070 var highestPriorityWork = NoWork, highestPriorityRoot = null; 24071 if (null !== lastScheduledRoot) for (var previousScheduledRoot = lastScheduledRoot, root = firstScheduledRoot; null !== root; ) { 24072 var remainingExpirationTime = root.remainingExpirationTime; 24073 if (remainingExpirationTime === NoWork) { 24074 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."), 24075 root === root.nextScheduledRoot) { 24076 root.nextScheduledRoot = null, firstScheduledRoot = lastScheduledRoot = null; 24077 break; 24078 } 24079 if (root === firstScheduledRoot) { 24080 var next = root.nextScheduledRoot; 24081 firstScheduledRoot = next, lastScheduledRoot.nextScheduledRoot = next, root.nextScheduledRoot = null; 24082 } else { 24083 if (root === lastScheduledRoot) { 24084 lastScheduledRoot = previousScheduledRoot, lastScheduledRoot.nextScheduledRoot = firstScheduledRoot, 24085 root.nextScheduledRoot = null; 24086 break; 24087 } 24088 previousScheduledRoot.nextScheduledRoot = root.nextScheduledRoot, root.nextScheduledRoot = null; 24089 } 24090 root = previousScheduledRoot.nextScheduledRoot; 24091 } else { 24092 if ((highestPriorityWork === NoWork || remainingExpirationTime < highestPriorityWork) && (highestPriorityWork = remainingExpirationTime, 24093 highestPriorityRoot = root), root === lastScheduledRoot) break; 24094 previousScheduledRoot = root, root = root.nextScheduledRoot; 24095 } 24096 } 24097 var previousFlushedRoot = nextFlushedRoot; 24098 null !== previousFlushedRoot && previousFlushedRoot === highestPriorityRoot && highestPriorityWork === Sync ? nestedUpdateCount++ : nestedUpdateCount = 0, 24099 nextFlushedRoot = highestPriorityRoot, nextFlushedExpirationTime = highestPriorityWork; 24100 } 24101 function performAsyncWork(dl) { 24102 performWork(NoWork, !0, dl); 24103 } 24104 function performSyncWork() { 24105 performWork(Sync, !1, null); 24106 } 24107 function performWork(minExpirationTime, isAsync, dl) { 24108 if (deadline = dl, findHighestPriorityRoot(), enableProfilerTimer && resumeActualRenderTimerIfPaused(), 24109 enableUserTimingAPI && null !== deadline) { 24110 stopRequestCallbackTimer(nextFlushedExpirationTime < recalculateCurrentTime(), expirationTimeToMs(nextFlushedExpirationTime)); 24111 } 24112 if (isAsync) for (;null !== nextFlushedRoot && nextFlushedExpirationTime !== NoWork && (minExpirationTime === NoWork || minExpirationTime >= nextFlushedExpirationTime) && (!deadlineDidExpire || recalculateCurrentTime() >= nextFlushedExpirationTime); ) recalculateCurrentTime(), 24113 performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, !deadlineDidExpire), 24114 findHighestPriorityRoot(); else for (;null !== nextFlushedRoot && nextFlushedExpirationTime !== NoWork && (minExpirationTime === NoWork || minExpirationTime >= nextFlushedExpirationTime); ) performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, !1), 24115 findHighestPriorityRoot(); 24116 null !== deadline && (callbackExpirationTime = NoWork, callbackID = -1), nextFlushedExpirationTime !== NoWork && scheduleCallbackWithExpiration(nextFlushedExpirationTime), 24117 deadline = null, deadlineDidExpire = !1, finishRendering(); 24118 } 24119 function flushRoot(root, expirationTime) { 24120 isRendering && invariant(!1, "work.commit(): Cannot commit while already rendering. This likely means you attempted to commit from inside a lifecycle method."), 24121 nextFlushedRoot = root, nextFlushedExpirationTime = expirationTime, performWorkOnRoot(root, expirationTime, !1), 24122 performSyncWork(), finishRendering(); 24123 } 24124 function finishRendering() { 24125 if (nestedUpdateCount = 0, null !== completedBatches) { 24126 var batches = completedBatches; 24127 completedBatches = null; 24128 for (var i = 0; i < batches.length; i++) { 24129 var batch = batches[i]; 24130 try { 24131 batch._onComplete(); 24132 } catch (error) { 24133 hasUnhandledError || (hasUnhandledError = !0, unhandledError = error); 24134 } 24135 } 24136 } 24137 if (hasUnhandledError) { 24138 var error = unhandledError; 24139 throw unhandledError = null, hasUnhandledError = !1, error; 24140 } 24141 } 24142 function performWorkOnRoot(root, expirationTime, isAsync) { 24143 if (isRendering && invariant(!1, "performWorkOnRoot was called recursively. This error is likely caused by a bug in React. Please file an issue."), 24144 isRendering = !0, isAsync) { 24145 var _finishedWork = root.finishedWork; 24146 null !== _finishedWork ? completeRoot(root, _finishedWork, expirationTime) : (root.finishedWork = null, 24147 null !== (_finishedWork = renderRoot(root, expirationTime, !0)) && (shouldYield() ? (root.finishedWork = _finishedWork, 24148 enableProfilerTimer && pauseActualRenderTimerIfRunning()) : completeRoot(root, _finishedWork, expirationTime))); 24149 } else { 24150 var finishedWork = root.finishedWork; 24151 null !== finishedWork ? completeRoot(root, finishedWork, expirationTime) : (root.finishedWork = null, 24152 null !== (finishedWork = renderRoot(root, expirationTime, !1)) && completeRoot(root, finishedWork, expirationTime)); 24153 } 24154 isRendering = !1; 24155 } 24156 function completeRoot(root, finishedWork, expirationTime) { 24157 var firstBatch = root.firstBatch; 24158 if (null !== firstBatch && firstBatch._expirationTime <= expirationTime && (null === completedBatches ? completedBatches = [ firstBatch ] : completedBatches.push(firstBatch), 24159 firstBatch._defer)) return root.finishedWork = finishedWork, void (root.remainingExpirationTime = NoWork); 24160 root.finishedWork = null, root.remainingExpirationTime = commitRoot(finishedWork); 24161 } 24162 function shouldYield() { 24163 return null !== deadline && (!(deadline.timeRemaining() > timeHeuristicForUnitOfWork) && (deadlineDidExpire = !0, 24164 !0)); 24165 } 24166 function onUncaughtError(error) { 24167 null === nextFlushedRoot && invariant(!1, "Should be working on a root. This error is likely caused by a bug in React. Please file an issue."), 24168 nextFlushedRoot.remainingExpirationTime = NoWork, hasUnhandledError || (hasUnhandledError = !0, 24169 unhandledError = error); 24170 } 24171 function onBlock(remainingExpirationTime) { 24172 null === nextFlushedRoot && invariant(!1, "Should be working on a root. This error is likely caused by a bug in React. Please file an issue."), 24173 nextFlushedRoot.remainingExpirationTime = remainingExpirationTime; 24174 } 24175 function batchedUpdates$1(fn, a) { 24176 var previousIsBatchingUpdates = isBatchingUpdates; 24177 isBatchingUpdates = !0; 24178 try { 24179 return fn(a); 24180 } finally { 24181 isBatchingUpdates = previousIsBatchingUpdates, isBatchingUpdates || isRendering || performSyncWork(); 24182 } 24183 } 24184 function unbatchedUpdates(fn, a) { 24185 if (isBatchingUpdates && !isUnbatchingUpdates) { 24186 isUnbatchingUpdates = !0; 24187 try { 24188 return fn(a); 24189 } finally { 24190 isUnbatchingUpdates = !1; 24191 } 24192 } 24193 return fn(a); 24194 } 24195 function flushSync(fn, a) { 24196 isRendering && invariant(!1, "flushSync was called from inside a lifecycle method. It cannot be called when React is already rendering."); 24197 var previousIsBatchingUpdates = isBatchingUpdates; 24198 isBatchingUpdates = !0; 24199 try { 24200 return syncUpdates(fn, a); 24201 } finally { 24202 isBatchingUpdates = previousIsBatchingUpdates, performSyncWork(); 24203 } 24204 } 24205 function interactiveUpdates$1(fn, a, b) { 24206 if (isBatchingInteractiveUpdates) return fn(a, b); 24207 isBatchingUpdates || isRendering || lowestPendingInteractiveExpirationTime === NoWork || (performWork(lowestPendingInteractiveExpirationTime, !1, null), 24208 lowestPendingInteractiveExpirationTime = NoWork); 24209 var previousIsBatchingInteractiveUpdates = isBatchingInteractiveUpdates, previousIsBatchingUpdates = isBatchingUpdates; 24210 isBatchingInteractiveUpdates = !0, isBatchingUpdates = !0; 24211 try { 24212 return fn(a, b); 24213 } finally { 24214 isBatchingInteractiveUpdates = previousIsBatchingInteractiveUpdates, isBatchingUpdates = previousIsBatchingUpdates, 24215 isBatchingUpdates || isRendering || performSyncWork(); 24216 } 24217 } 24218 function flushInteractiveUpdates$1() { 24219 isRendering || lowestPendingInteractiveExpirationTime === NoWork || (performWork(lowestPendingInteractiveExpirationTime, !1, null), 24220 lowestPendingInteractiveExpirationTime = NoWork); 24221 } 24222 function flushControlled(fn) { 24223 var previousIsBatchingUpdates = isBatchingUpdates; 24224 isBatchingUpdates = !0; 24225 try { 24226 syncUpdates(fn); 24227 } finally { 24228 isBatchingUpdates = previousIsBatchingUpdates, isBatchingUpdates || isRendering || performWork(Sync, !1, null); 24229 } 24230 } 24231 function getContextForSubtree(parentComponent) { 24232 if (!parentComponent) return emptyObject; 24233 var fiber = get(parentComponent), parentContext = findCurrentUnmaskedContext(fiber); 24234 return isContextProvider(fiber) ? processChildContext(fiber, parentContext) : parentContext; 24235 } 24236 function scheduleRootUpdate(current, element, expirationTime, callback) { 24237 "render" !== ReactDebugCurrentFiber.phase || null === ReactDebugCurrentFiber.current || didWarnAboutNestedUpdates || (didWarnAboutNestedUpdates = !0, 24238 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")); 24239 var update = createUpdate(expirationTime); 24240 return update.payload = { 24241 element: element 24242 }, 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), 24243 update.callback = callback), enqueueUpdate(current, update, expirationTime), scheduleWork$1(current, expirationTime), 24244 expirationTime; 24245 } 24246 function updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, callback) { 24247 var current = container.current; 24248 ReactFiberInstrumentation_1.debugTool && (null === current.alternate ? ReactFiberInstrumentation_1.debugTool.onMountContainer(container) : null === element ? ReactFiberInstrumentation_1.debugTool.onUnmountContainer(container) : ReactFiberInstrumentation_1.debugTool.onUpdateContainer(container)); 24249 var context = getContextForSubtree(parentComponent); 24250 return null === container.context ? container.context = context : container.pendingContext = context, 24251 scheduleRootUpdate(current, element, expirationTime, callback); 24252 } 24253 function findHostInstance(component) { 24254 var fiber = get(component); 24255 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))); 24256 var hostFiber = findCurrentHostFiber(fiber); 24257 return null === hostFiber ? null : hostFiber.stateNode; 24258 } 24259 function createContainer(containerInfo, isAsync, hydrate) { 24260 return createFiberRoot(containerInfo, isAsync, hydrate); 24261 } 24262 function updateContainer(element, container, parentComponent, callback) { 24263 var current = container.current; 24264 return updateContainerAtExpirationTime(element, container, parentComponent, computeExpirationForFiber(recalculateCurrentTime(), current), callback); 24265 } 24266 function getPublicRootInstance(container) { 24267 var containerFiber = container.current; 24268 if (!containerFiber.child) return null; 24269 switch (containerFiber.child.tag) { 24270 case HostComponent: 24271 return getPublicInstance(containerFiber.child.stateNode); 24272 24273 default: 24274 return containerFiber.child.stateNode; 24275 } 24276 } 24277 function findHostInstanceWithNoPortals(fiber) { 24278 var hostFiber = findCurrentHostFiberWithNoPortals(fiber); 24279 return null === hostFiber ? null : hostFiber.stateNode; 24280 } 24281 function injectIntoDevTools(devToolsConfig) { 24282 var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance; 24283 return injectInternals(_assign({}, devToolsConfig, { 24284 findHostInstanceByFiber: function(fiber) { 24285 var hostFiber = findCurrentHostFiber(fiber); 24286 return null === hostFiber ? null : hostFiber.stateNode; 24287 }, 24288 findFiberByHostInstance: function(instance) { 24289 return findFiberByHostInstance ? findFiberByHostInstance(instance) : null; 24290 } 24291 })); 24292 } 24293 function createPortal$1(children, containerInfo, implementation) { 24294 var key = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : null; 24295 return { 24296 $$typeof: REACT_PORTAL_TYPE, 24297 key: null == key ? null : "" + key, 24298 children: children, 24299 containerInfo: containerInfo, 24300 implementation: implementation 24301 }; 24302 } 24303 function ReactBatch(root) { 24304 var expirationTime = computeUniqueAsyncExpiration(); 24305 this._expirationTime = expirationTime, this._root = root, this._next = null, this._callbacks = null, 24306 this._didComplete = !1, this._hasChildren = !1, this._children = null, this._defer = !0; 24307 } 24308 function ReactWork() { 24309 this._callbacks = null, this._didCommit = !1, this._onCommit = this._onCommit.bind(this); 24310 } 24311 function ReactRoot(container, isAsync, hydrate) { 24312 var root = createContainer(container, isAsync, hydrate); 24313 this._internalRoot = root; 24314 } 24315 function isValidContainer(node) { 24316 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)); 24317 } 24318 function getReactRootElementInContainer(container) { 24319 return container ? container.nodeType === DOCUMENT_NODE ? container.documentElement : container.firstChild : null; 24320 } 24321 function shouldHydrateDueToLegacyHeuristic(container) { 24322 var rootElement = getReactRootElementInContainer(container); 24323 return !(!rootElement || rootElement.nodeType !== ELEMENT_NODE || !rootElement.hasAttribute(ROOT_ATTRIBUTE_NAME)); 24324 } 24325 function legacyCreateRootFromDOMContainer(container, forceHydrate) { 24326 var shouldHydrate = forceHydrate || shouldHydrateDueToLegacyHeuristic(container); 24327 if (!shouldHydrate) for (var warned = !1, rootSibling = void 0; rootSibling = container.lastChild; ) !warned && rootSibling.nodeType === ELEMENT_NODE && rootSibling.hasAttribute(ROOT_ATTRIBUTE_NAME) && (warned = !0, 24328 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.")), 24329 container.removeChild(rootSibling); 24330 !shouldHydrate || forceHydrate || warnedAboutHydrateAPI || (warnedAboutHydrateAPI = !0, 24331 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.")); 24332 return new ReactRoot(container, !1, shouldHydrate); 24333 } 24334 function legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback) { 24335 isValidContainer(container) || invariant(!1, "Target container is not a DOM element."), 24336 topLevelUpdateWarnings(container); 24337 var root = container._reactRootContainer; 24338 if (root) { 24339 if ("function" == typeof callback) { 24340 var _originalCallback = callback; 24341 callback = function() { 24342 var instance = getPublicRootInstance(root._internalRoot); 24343 _originalCallback.call(instance); 24344 }; 24345 } 24346 null != parentComponent ? root.legacy_renderSubtreeIntoContainer(parentComponent, children, callback) : root.render(children, callback); 24347 } else { 24348 if (root = container._reactRootContainer = legacyCreateRootFromDOMContainer(container, forceHydrate), 24349 "function" == typeof callback) { 24350 var originalCallback = callback; 24351 callback = function() { 24352 var instance = getPublicRootInstance(root._internalRoot); 24353 originalCallback.call(instance); 24354 }; 24355 } 24356 unbatchedUpdates(function() { 24357 null != parentComponent ? root.legacy_renderSubtreeIntoContainer(parentComponent, children, callback) : root.render(children, callback); 24358 }); 24359 } 24360 return getPublicRootInstance(root._internalRoot); 24361 } 24362 function createPortal(children, container) { 24363 var key = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : null; 24364 return isValidContainer(container) || invariant(!1, "Target container is not a DOM element."), 24365 createPortal$1(children, container, null, key); 24366 } 24367 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); 24368 React || invariant(!1, "ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM."); 24369 var invokeGuardedCallback = function(name, func, context, a, b, c, d, e, f) { 24370 this._hasCaughtError = !1, this._caughtError = null; 24371 var funcArgs = Array.prototype.slice.call(arguments, 3); 24372 try { 24373 func.apply(context, funcArgs); 24374 } catch (error) { 24375 this._caughtError = error, this._hasCaughtError = !0; 24376 } 24377 }; 24378 if ("undefined" != typeof window && "function" == typeof window.dispatchEvent && "undefined" != typeof document && "function" == typeof document.createEvent) { 24379 var fakeNode = document.createElement("react"); 24380 invokeGuardedCallback = function(name, func, context, a, b, c, d, e, f) { 24381 function callCallback() { 24382 fakeNode.removeEventListener(evtType, callCallback, !1), func.apply(context, funcArgs), 24383 didError = !1; 24384 } 24385 function onError(event) { 24386 error = event.error, didSetError = !0, null === error && 0 === event.colno && 0 === event.lineno && (isCrossOriginError = !0); 24387 } 24388 "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."); 24389 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"); 24390 window.addEventListener("error", onError), fakeNode.addEventListener(evtType, callCallback, !1), 24391 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 for more information.")) : error = new Error("An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the \"Pause on exceptions\" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. 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."), 24392 this._hasCaughtError = !0, this._caughtError = error) : (this._hasCaughtError = !1, 24393 this._caughtError = null), window.removeEventListener("error", onError); 24394 }; 24395 } 24396 var invokeGuardedCallback$1 = invokeGuardedCallback, ReactErrorUtils = { 24397 _caughtError: null, 24398 _hasCaughtError: !1, 24399 _rethrowError: null, 24400 _hasRethrowError: !1, 24401 invokeGuardedCallback: function(name, func, context, a, b, c, d, e, f) { 24402 invokeGuardedCallback$1.apply(ReactErrorUtils, arguments); 24403 }, 24404 invokeGuardedCallbackAndCatchFirstError: function(name, func, context, a, b, c, d, e, f) { 24405 if (ReactErrorUtils.invokeGuardedCallback.apply(this, arguments), ReactErrorUtils.hasCaughtError()) { 24406 var error = ReactErrorUtils.clearCaughtError(); 24407 ReactErrorUtils._hasRethrowError || (ReactErrorUtils._hasRethrowError = !0, ReactErrorUtils._rethrowError = error); 24408 } 24409 }, 24410 rethrowCaughtError: function() { 24411 return rethrowCaughtError.apply(ReactErrorUtils, arguments); 24412 }, 24413 hasCaughtError: function() { 24414 return ReactErrorUtils._hasCaughtError; 24415 }, 24416 clearCaughtError: function() { 24417 if (ReactErrorUtils._hasCaughtError) { 24418 var error = ReactErrorUtils._caughtError; 24419 return ReactErrorUtils._caughtError = null, ReactErrorUtils._hasCaughtError = !1, 24420 error; 24421 } 24422 invariant(!1, "clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue."); 24423 } 24424 }, rethrowCaughtError = function() { 24425 if (ReactErrorUtils._hasRethrowError) { 24426 var error = ReactErrorUtils._rethrowError; 24427 throw ReactErrorUtils._rethrowError = null, ReactErrorUtils._hasRethrowError = !1, 24428 error; 24429 } 24430 }, eventPluginOrder = null, namesToPlugins = {}, plugins = [], eventNameDispatchConfigs = {}, registrationNameModules = {}, registrationNameDependencies = {}, possibleRegistrationNames = {}, EventPluginRegistry = Object.freeze({ 24431 plugins: plugins, 24432 eventNameDispatchConfigs: eventNameDispatchConfigs, 24433 registrationNameModules: registrationNameModules, 24434 registrationNameDependencies: registrationNameDependencies, 24435 possibleRegistrationNames: possibleRegistrationNames, 24436 injectEventPluginOrder: injectEventPluginOrder, 24437 injectEventPluginsByName: injectEventPluginsByName 24438 }), getFiberCurrentPropsFromNode = null, getInstanceFromNode = null, getNodeFromInstance = null, injection$1 = { 24439 injectComponentTree: function(Injected) { 24440 getFiberCurrentPropsFromNode = Injected.getFiberCurrentPropsFromNode, getInstanceFromNode = Injected.getInstanceFromNode, 24441 (getNodeFromInstance = Injected.getNodeFromInstance) && getInstanceFromNode || warning(!1, "EventPluginUtils.injection.injectComponentTree(...): Injected module is missing getNodeFromInstance or getInstanceFromNode."); 24442 } 24443 }, validateEventDispatches = void 0; 24444 validateEventDispatches = function(event) { 24445 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; 24446 (instancesIsArr !== listenersIsArr || instancesLen !== listenersLen) && warning(!1, "EventPluginUtils: Invalid ` + "`"))) + ((`event` + ("`" + `."); 24447 }; 24448 var eventQueue = null, executeDispatchesAndRelease = function(event, simulated) { 24449 event && (executeDispatchesInOrder(event, simulated), event.isPersistent() || event.constructor.release(event)); 24450 }, executeDispatchesAndReleaseSimulated = function(e) { 24451 return executeDispatchesAndRelease(e, !0); 24452 }, executeDispatchesAndReleaseTopLevel = function(e) { 24453 return executeDispatchesAndRelease(e, !1); 24454 }, injection = { 24455 injectEventPluginOrder: injectEventPluginOrder, 24456 injectEventPluginsByName: injectEventPluginsByName 24457 }, EventPluginHub = Object.freeze({ 24458 injection: injection, 24459 getListener: getListener, 24460 runEventsInBatch: runEventsInBatch, 24461 runExtractedEventsInBatch: runExtractedEventsInBatch 24462 }), 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({ 24463 precacheFiberNode: precacheFiberNode, 24464 getClosestInstanceFromNode: getClosestInstanceFromNode, 24465 getInstanceFromNode: getInstanceFromNode$1, 24466 getNodeFromInstance: getNodeFromInstance$1, 24467 getFiberCurrentPropsFromNode: getFiberCurrentPropsFromNode$1, 24468 updateFiberProps: updateFiberProps 24469 }), EventPropagators = Object.freeze({ 24470 accumulateTwoPhaseDispatches: accumulateTwoPhaseDispatches, 24471 accumulateTwoPhaseDispatchesSkipTarget: accumulateTwoPhaseDispatchesSkipTarget, 24472 accumulateEnterLeaveDispatches: accumulateEnterLeaveDispatches, 24473 accumulateDirectDispatches: accumulateDirectDispatches 24474 }), vendorPrefixes = { 24475 animationend: makePrefixMap("Animation", "AnimationEnd"), 24476 animationiteration: makePrefixMap("Animation", "AnimationIteration"), 24477 animationstart: makePrefixMap("Animation", "AnimationStart"), 24478 transitionend: makePrefixMap("Transition", "TransitionEnd") 24479 }, prefixedEventNames = {}, style = {}; 24480 ExecutionEnvironment.canUseDOM && (style = document.createElement("div").style, 24481 "AnimationEvent" in window || (delete vendorPrefixes.animationend.animation, delete vendorPrefixes.animationiteration.animation, 24482 delete vendorPrefixes.animationstart.animation), "TransitionEvent" in window || delete vendorPrefixes.transitionend.transition); 24483 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 = { 24484 _root: null, 24485 _startText: null, 24486 _fallbackText: null 24487 }, didWarnForAddedNewProperty = !1, EVENT_POOL_SIZE = 10, shouldBeReleasedProperties = [ "dispatchConfig", "_targetInst", "nativeEvent", "isDefaultPrevented", "isPropagationStopped", "_dispatchListeners", "_dispatchInstances" ], EventInterface = { 24488 type: null, 24489 target: null, 24490 currentTarget: emptyFunction.thatReturnsNull, 24491 eventPhase: null, 24492 bubbles: null, 24493 cancelable: null, 24494 timeStamp: function(event) { 24495 return event.timeStamp || Date.now(); 24496 }, 24497 defaultPrevented: null, 24498 isTrusted: null 24499 }; 24500 _assign(SyntheticEvent.prototype, { 24501 preventDefault: function() { 24502 this.defaultPrevented = !0; 24503 var event = this.nativeEvent; 24504 event && (event.preventDefault ? event.preventDefault() : "unknown" != typeof event.returnValue && (event.returnValue = !1), 24505 this.isDefaultPrevented = emptyFunction.thatReturnsTrue); 24506 }, 24507 stopPropagation: function() { 24508 var event = this.nativeEvent; 24509 event && (event.stopPropagation ? event.stopPropagation() : "unknown" != typeof event.cancelBubble && (event.cancelBubble = !0), 24510 this.isPropagationStopped = emptyFunction.thatReturnsTrue); 24511 }, 24512 persist: function() { 24513 this.isPersistent = emptyFunction.thatReturnsTrue; 24514 }, 24515 isPersistent: emptyFunction.thatReturnsFalse, 24516 destructor: function() { 24517 var Interface = this.constructor.Interface; 24518 for (var propName in Interface) Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName])); 24519 for (var i = 0; i < shouldBeReleasedProperties.length; i++) this[shouldBeReleasedProperties[i]] = null; 24520 Object.defineProperty(this, "nativeEvent", getPooledWarningPropertyDefinition("nativeEvent", null)), 24521 Object.defineProperty(this, "preventDefault", getPooledWarningPropertyDefinition("preventDefault", emptyFunction)), 24522 Object.defineProperty(this, "stopPropagation", getPooledWarningPropertyDefinition("stopPropagation", emptyFunction)); 24523 } 24524 }), SyntheticEvent.Interface = EventInterface, SyntheticEvent.extend = function(Interface) { 24525 function Class() { 24526 return Super.apply(this, arguments); 24527 } 24528 var Super = this, E = function() {}; 24529 E.prototype = Super.prototype; 24530 var prototype = new E(); 24531 return _assign(prototype, Class.prototype), Class.prototype = prototype, Class.prototype.constructor = Class, 24532 Class.Interface = _assign({}, Super.Interface, Interface), Class.extend = Super.extend, 24533 addEventPoolingTo(Class), Class; 24534 }, "function" == typeof Proxy && !Object.isSealed(new Proxy({}, {})) && (SyntheticEvent = new Proxy(SyntheticEvent, { 24535 construct: function(target, args) { 24536 return this.apply(target, Object.create(target.prototype), args); 24537 }, 24538 apply: function(constructor, that, args) { 24539 return new Proxy(constructor.apply(that, args), { 24540 set: function(target, prop, value) { 24541 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了解更多信息。“), 24542 didWarnForAddedNewProperty = !0), target[prop] = value, !0; 24543 } 24544 }); 24545 } 24546 })), addEventPoolingTo(SyntheticEvent); 24547 var SyntheticEvent$1 = SyntheticEvent, SyntheticCompositionEvent = SyntheticEvent$1.extend({ 24548 data: null 24549 }), SyntheticInputEvent = SyntheticEvent$1.extend({ 24550 data: null 24551 }), END_KEYCODES = [ 9, 13, 27, 32 ], START_KEYCODE = 229, canUseCompositionEvent = ExecutionEnvironment.canUseDOM && "CompositionEvent" in window, documentMode = null; 24552 ExecutionEnvironment.canUseDOM && "documentMode" in document && (documentMode = document.documentMode); 24553 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 = { 24554 beforeInput: { 24555 phasedRegistrationNames: { 24556 bubbled: "onBeforeInput", 24557 captured: "onBeforeInputCapture" 24558 }, 24559 dependencies: [ TOP_COMPOSITION_END, TOP_KEY_PRESS, TOP_TEXT_INPUT, TOP_PASTE ] 24560 }, 24561 compositionEnd: { 24562 phasedRegistrationNames: { 24563 bubbled: "onCompositionEnd", 24564 captured: "onCompositionEndCapture" 24565 }, 24566 dependencies: [ TOP_BLUR, TOP_COMPOSITION_END, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN ] 24567 }, 24568 compositionStart: { 24569 phasedRegistrationNames: { 24570 bubbled: "onCompositionStart", 24571 captured: "onCompositionStartCapture" 24572 }, 24573 dependencies: [ TOP_BLUR, TOP_COMPOSITION_START, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN ] 24574 }, 24575 compositionUpdate: { 24576 phasedRegistrationNames: { 24577 bubbled: "onCompositionUpdate", 24578 captured: "onCompositionUpdateCapture" 24579 }, 24580 dependencies: [ TOP_BLUR, TOP_COMPOSITION_UPDATE, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN ] 24581 } 24582 }, hasSpaceKeypress = !1, isComposing = !1, BeforeInputEventPlugin = { 24583 eventTypes: eventTypes, 24584 extractEvents: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) { 24585 var composition = extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget), beforeInput = extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget); 24586 return null === composition ? beforeInput : null === beforeInput ? composition : [ composition, beforeInput ]; 24587 } 24588 }, fiberHostComponent = null, ReactControlledComponentInjection = { 24589 injectFiberControlledHostComponent: function(hostComponentImpl) { 24590 fiberHostComponent = hostComponentImpl; 24591 } 24592 }, restoreTarget = null, restoreQueue = null, injection$2 = ReactControlledComponentInjection, ReactControlledComponent = Object.freeze({ 24593 injection: injection$2, 24594 enqueueStateRestore: enqueueStateRestore, 24595 needsStateRestore: needsStateRestore, 24596 restoreStateIfNeeded: restoreStateIfNeeded 24597 }), _batchedUpdates = function(fn, bookkeeping) { 24598 return fn(bookkeeping); 24599 }, _interactiveUpdates = function(fn, a, b) { 24600 return fn(a, b); 24601 }, _flushInteractiveUpdates = function() {}, isBatching = !1, injection$3 = { 24602 injectRenderer: function(renderer) { 24603 _batchedUpdates = renderer.batchedUpdates, _interactiveUpdates = renderer.interactiveUpdates, 24604 _flushInteractiveUpdates = renderer.flushInteractiveUpdates; 24605 } 24606 }, supportedInputTypes = { 24607 color: !0, 24608 date: !0, 24609 datetime: !0, 24610 "datetime-local": !0, 24611 email: !0, 24612 month: !0, 24613 number: !0, 24614 password: !0, 24615 range: !0, 24616 search: !0, 24617 tel: !0, 24618 text: !0, 24619 time: !0, 24620 url: !0, 24621 week: !0 24622 }, 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) { 24623 return "\n in " + (name || "Unknown") + (source ? " (at " + source.fileName.replace(/^.*[\\\/]/, "") + ":" + source.lineNumber + ")" : ownerName ? " (created by " + ownerName + ")" : ""); 24624 }, 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 = { 24625 current: null, 24626 phase: null, 24627 resetCurrentFiber: resetCurrentFiber, 24628 setCurrentFiber: setCurrentFiber, 24629 setCurrentPhase: setCurrentPhase, 24630 getCurrentFiberOwnerName: getCurrentFiberOwnerName$1, 24631 getCurrentFiberStackAddendum: getCurrentFiberStackAddendum$1 24632 }, 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 = {}; 24633 [ "children", "dangerouslySetInnerHTML", "defaultValue", "defaultChecked", "innerHTML", "suppressContentEditableWarning", "suppressHydrationWarning", "style" ].forEach(function(name) { 24634 properties[name] = new PropertyInfoRecord(name, RESERVED, !1, name, null); 24635 }), [ [ "acceptCharset", "accept-charset" ], [ "className", "class" ], [ "htmlFor", "for" ], [ "httpEquiv", "http-equiv" ] ].forEach(function(_ref) { 24636 var name = _ref[0], attributeName = _ref[1]; 24637 properties[name] = new PropertyInfoRecord(name, 1, !1, attributeName, null); 24638 }), [ "contentEditable", "draggable", "spellCheck", "value" ].forEach(function(name) { 24639 properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, !1, name.toLowerCase(), null); 24640 }), [ "autoReverse", "externalResourcesRequired", "preserveAlpha" ].forEach(function(name) { 24641 properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, !1, name, null); 24642 }), [ "allowFullScreen", "async", "autoFocus", "autoPlay", "controls", "default", "defer", "disabled", "formNoValidate", "hidden", "loop", "noModule", "noValidate", "open", "playsInline", "readOnly", "required", "reversed", "scoped", "seamless", "itemScope" ].forEach(function(name) { 24643 properties[name] = new PropertyInfoRecord(name, BOOLEAN, !1, name.toLowerCase(), null); 24644 }), [ "checked", "multiple", "muted", "selected" ].forEach(function(name) { 24645 properties[name] = new PropertyInfoRecord(name, BOOLEAN, !0, name.toLowerCase(), null); 24646 }), [ "capture", "download" ].forEach(function(name) { 24647 properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, !1, name.toLowerCase(), null); 24648 }), [ "cols", "rows", "size", "span" ].forEach(function(name) { 24649 properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, !1, name.toLowerCase(), null); 24650 }), [ "rowSpan", "start" ].forEach(function(name) { 24651 properties[name] = new PropertyInfoRecord(name, NUMERIC, !1, name.toLowerCase(), null); 24652 }); 24653 var CAMELIZE = /[\-\:]([a-z])/g, capitalize = function(token) { 24654 return token[1].toUpperCase(); 24655 }; 24656 [ "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) { 24657 var name = attributeName.replace(CAMELIZE, capitalize); 24658 properties[name] = new PropertyInfoRecord(name, 1, !1, attributeName, null); 24659 }), [ "xlink:actuate", "xlink:arcrole", "xlink:href", "xlink:role", "xlink:show", "xlink:title", "xlink:type" ].forEach(function(attributeName) { 24660 var name = attributeName.replace(CAMELIZE, capitalize); 24661 properties[name] = new PropertyInfoRecord(name, 1, !1, attributeName, "http://www.w3.org/1999/xlink);; 24662 }), [ "xml:base", "xml:lang", "xml:space" ].forEach(function(attributeName) { 24663 var name = attributeName.replace(CAMELIZE, capitalize); 24664 properties[name] = new PropertyInfoRecord(name, 1, !1, attributeName, "http://www.w3.org/xml/1998/namespace”); 24665 }), properties.tabIndex = new PropertyInfoRecord("tabIndex", 1, !1, "tabindex", null); 24666 var ReactControlledValuePropTypes = { 24667 checkPropTypes: null 24668 }, hasReadOnlyValue = { 24669 button: !0, 24670 checkbox: !0, 24671 image: !0, 24672 hidden: !0, 24673 radio: !0, 24674 reset: !0, 24675 submit: !0 24676 }, propTypes = { 24677 value: function(props, propName, componentName) { 24678 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`)) + ("`" + (`."); 24679 }, 24680 checked: function(props, propName, componentName) { 24681 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`) + ("`" + `."); 24682 } 24683 }; 24684 ReactControlledValuePropTypes.checkPropTypes = function(tagName, props, getStack) { 24685 checkPropTypes(propTypes, props, "prop", tagName, getStack); 24686 }; 24687 var getCurrentFiberOwnerName = ReactDebugCurrentFiber.getCurrentFiberOwnerName, getCurrentFiberStackAddendum = ReactDebugCurrentFiber.getCurrentFiberStackAddendum, didWarnValueDefaultValue = !1, didWarnCheckedDefaultChecked = !1, didWarnControlledToUncontrolled = !1, didWarnUncontrolledToControlled = !1, eventTypes$1 = { 24688 change: { 24689 phasedRegistrationNames: { 24690 bubbled: "onChange", 24691 captured: "onChangeCapture" 24692 }, 24693 dependencies: [ TOP_BLUR, TOP_CHANGE, TOP_CLICK, TOP_FOCUS, TOP_INPUT, TOP_KEY_DOWN, TOP_KEY_UP, TOP_SELECTION_CHANGE ] 24694 } 24695 }, activeElement = null, activeElementInst = null, isInputEventSupported = !1; 24696 ExecutionEnvironment.canUseDOM && (isInputEventSupported = isEventSupported("input") && (!document.documentMode || document.documentMode > 9)); 24697 var ChangeEventPlugin = { 24698 eventTypes: eventTypes$1, 24699 _isInputEventSupported: isInputEventSupported, 24700 extractEvents: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) { 24701 var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window, getTargetInstFunc = void 0, handleEventFunc = void 0; 24702 if (shouldUseChangeEvent(targetNode) ? getTargetInstFunc = getTargetInstForChangeEvent : isTextInputElement(targetNode) ? isInputEventSupported ? getTargetInstFunc = getTargetInstForInputOrChangeEvent : (getTargetInstFunc = getTargetInstForInputEventPolyfill, 24703 handleEventFunc = handleEventsForInputEventPolyfill) : shouldUseClickEvent(targetNode) && (getTargetInstFunc = getTargetInstForClickEvent), 24704 getTargetInstFunc) { 24705 var inst = getTargetInstFunc(topLevelType, targetInst); 24706 if (inst) { 24707 return createAndAccumulateChangeEvent(inst, nativeEvent, nativeEventTarget); 24708 } 24709 } 24710 handleEventFunc && handleEventFunc(topLevelType, targetNode, targetInst), topLevelType === TOP_BLUR && handleControlledInputBlur(targetInst, targetNode); 24711 } 24712 }, DOMEventPluginOrder = [ "ResponderEventPlugin", "SimpleEventPlugin", "TapEventPlugin", "EnterLeaveEventPlugin", "ChangeEventPlugin", "SelectEventPlugin", "BeforeInputEventPlugin" ], SyntheticUIEvent = SyntheticEvent$1.extend({ 24713 view: null, 24714 detail: null 24715 }), modifierKeyToProp = { 24716 Alt: "altKey", 24717 Control: "ctrlKey", 24718 Meta: "metaKey", 24719 Shift: "shiftKey" 24720 }, SyntheticMouseEvent = SyntheticUIEvent.extend({ 24721 screenX: null, 24722 screenY: null, 24723 clientX: null, 24724 clientY: null, 24725 pageX: null, 24726 pageY: null, 24727 ctrlKey: null, 24728 shiftKey: null, 24729 altKey: null, 24730 metaKey: null, 24731 getModifierState: getEventModifierState, 24732 button: null, 24733 buttons: null, 24734 relatedTarget: function(event) { 24735 return event.relatedTarget || (event.fromElement === event.srcElement ? event.toElement : event.fromElement); 24736 } 24737 }), SyntheticPointerEvent = SyntheticMouseEvent.extend({ 24738 pointerId: null, 24739 width: null, 24740 height: null, 24741 pressure: null, 24742 tiltX: null, 24743 tiltY: null, 24744 pointerType: null, 24745 isPrimary: null 24746 }), eventTypes$2 = { 24747 mouseEnter: { 24748 registrationName: "onMouseEnter", 24749 dependencies: [ TOP_MOUSE_OUT, TOP_MOUSE_OVER ] 24750 }, 24751 mouseLeave: { 24752 registrationName: "onMouseLeave", 24753 dependencies: [ TOP_MOUSE_OUT, TOP_MOUSE_OVER ] 24754 }, 24755 pointerEnter: { 24756 registrationName: "onPointerEnter", 24757 dependencies: [ TOP_POINTER_OUT, TOP_POINTER_OVER ] 24758 }, 24759 pointerLeave: { 24760 registrationName: "onPointerLeave", 24761 dependencies: [ TOP_POINTER_OUT, TOP_POINTER_OVER ] 24762 } 24763 }, EnterLeaveEventPlugin = { 24764 eventTypes: eventTypes$2, 24765 extractEvents: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) { 24766 var isOverEvent = topLevelType === TOP_MOUSE_OVER || topLevelType === TOP_POINTER_OVER, isOutEvent = topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_POINTER_OUT; 24767 if (isOverEvent && (nativeEvent.relatedTarget || nativeEvent.fromElement)) return null; 24768 if (!isOutEvent && !isOverEvent) return null; 24769 var win = void 0; 24770 if (nativeEventTarget.window === nativeEventTarget) win = nativeEventTarget; else { 24771 var doc = nativeEventTarget.ownerDocument; 24772 win = doc ? doc.defaultView || doc.parentWindow : window; 24773 } 24774 var from = void 0, to = void 0; 24775 if (isOutEvent) { 24776 from = targetInst; 24777 var related = nativeEvent.relatedTarget || nativeEvent.toElement; 24778 to = related ? getClosestInstanceFromNode(related) : null; 24779 } else from = null, to = targetInst; 24780 if (from === to) return null; 24781 var eventInterface = void 0, leaveEventType = void 0, enterEventType = void 0, eventTypePrefix = void 0; 24782 topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_MOUSE_OVER ? (eventInterface = SyntheticMouseEvent, 24783 leaveEventType = eventTypes$2.mouseLeave, enterEventType = eventTypes$2.mouseEnter, 24784 eventTypePrefix = "mouse") : topLevelType !== TOP_POINTER_OUT && topLevelType !== TOP_POINTER_OVER || (eventInterface = SyntheticPointerEvent, 24785 leaveEventType = eventTypes$2.pointerLeave, enterEventType = eventTypes$2.pointerEnter, 24786 eventTypePrefix = "pointer"); 24787 var fromNode = null == from ? win : getNodeFromInstance$1(from), toNode = null == to ? win : getNodeFromInstance$1(to), leave = eventInterface.getPooled(leaveEventType, from, nativeEvent, nativeEventTarget); 24788 leave.type = eventTypePrefix + "leave", leave.target = fromNode, leave.relatedTarget = toNode; 24789 var enter = eventInterface.getPooled(enterEventType, to, nativeEvent, nativeEventTarget); 24790 return enter.type = eventTypePrefix + "enter", enter.target = toNode, enter.relatedTarget = fromNode, 24791 accumulateEnterLeaveDispatches(leave, enter, from, to), [ leave, enter ]; 24792 } 24793 }, 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({ 24794 animationName: null, 24795 elapsedTime: null, 24796 pseudoElement: null 24797 }), SyntheticClipboardEvent = SyntheticEvent$1.extend({ 24798 clipboardData: function(event) { 24799 return "clipboardData" in event ? event.clipboardData : window.clipboardData; 24800 } 24801 }), SyntheticFocusEvent = SyntheticUIEvent.extend({ 24802 relatedTarget: null 24803 }), normalizeKey = { 24804 Esc: "Escape", 24805 Spacebar: " ", 24806 Left: "ArrowLeft", 24807 Up: "ArrowUp", 24808 Right: "ArrowRight", 24809 Down: "ArrowDown", 24810 Del: "Delete", 24811 Win: "OS", 24812 Menu: "ContextMenu", 24813 Apps: "ContextMenu", 24814 Scroll: "ScrollLock", 24815 MozPrintableKey: "Unidentified" 24816 }, translateToKey = { 24817 "8": "Backspace", 24818 "9": "Tab", 24819 "12": "Clear", 24820 "13": "Enter", 24821 "16": "Shift", 24822 "17": "Control", 24823 "18": "Alt", 24824 "19": "Pause", 24825 "20": "CapsLock", 24826 "27": "Escape", 24827 "32": " ", 24828 "33": "PageUp", 24829 "34": "PageDown", 24830 "35": "End", 24831 "36": "Home", 24832 "37": "ArrowLeft", 24833 "38": "ArrowUp", 24834 "39": "ArrowRight", 24835 "40": "ArrowDown", 24836 "45": "Insert", 24837 "46": "Delete", 24838 "112": "F1", 24839 "113": "F2", 24840 "114": "F3", 24841 "115": "F4", 24842 "116": "F5", 24843 "117": "F6", 24844 "118": "F7", 24845 "119": "F8", 24846 "120": "F9", 24847 "121": "F10", 24848 "122": "F11", 24849 "123": "F12", 24850 "144": "NumLock", 24851 "145": "ScrollLock", 24852 "224": "Meta" 24853 }, SyntheticKeyboardEvent = SyntheticUIEvent.extend({ 24854 key: getEventKey, 24855 location: null, 24856 ctrlKey: null, 24857 shiftKey: null, 24858 altKey: null, 24859 metaKey: null, 24860 repeat: null, 24861 locale: null, 24862 getModifierState: getEventModifierState, 24863 charCode: function(event) { 24864 return "keypress" === event.type ? getEventCharCode(event) : 0; 24865 }, 24866 keyCode: function(event) { 24867 return "keydown" === event.type || "keyup" === event.type ? event.keyCode : 0; 24868 }, 24869 which: function(event) { 24870 return "keypress" === event.type ? getEventCharCode(event) : "keydown" === event.type || "keyup" === event.type ? event.keyCode : 0; 24871 } 24872 }), SyntheticDragEvent = SyntheticMouseEvent.extend({ 24873 dataTransfer: null 24874 }), SyntheticTouchEvent = SyntheticUIEvent.extend({ 24875 touches: null, 24876 targetTouches: null, 24877 changedTouches: null, 24878 altKey: null, 24879 metaKey: null, 24880 ctrlKey: null, 24881 shiftKey: null, 24882 getModifierState: getEventModifierState 24883 }), SyntheticTransitionEvent = SyntheticEvent$1.extend({ 24884 propertyName: null, 24885 elapsedTime: null, 24886 pseudoElement: null 24887 }), SyntheticWheelEvent = SyntheticMouseEvent.extend({ 24888 deltaX: function(event) { 24889 return "deltaX" in event ? event.deltaX : "wheelDeltaX" in event ? -event.wheelDeltaX : 0; 24890 }, 24891 deltaY: function(event) { 24892 return "deltaY" in event ? event.deltaY : "wheelDeltaY" in event ? -event.wheelDeltaY : "wheelDelta" in event ? -event.wheelDelta : 0; 24893 }, 24894 deltaZ: null, 24895 deltaMode: null 24896 }), 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 = {}; 24897 interactiveEventTypeNames.forEach(function(eventTuple) { 24898 addEventTypeNameToConfig(eventTuple, !0); 24899 }), nonInteractiveEventTypeNames.forEach(function(eventTuple) { 24900 addEventTypeNameToConfig(eventTuple, !1); 24901 }); 24902 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 = { 24903 eventTypes: eventTypes$4, 24904 isInteractiveTopLevelEventType: function(topLevelType) { 24905 var config = topLevelEventsToDispatchConfig[topLevelType]; 24906 return void 0 !== config && !0 === config.isInteractive; 24907 }, 24908 extractEvents: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) { 24909 var dispatchConfig = topLevelEventsToDispatchConfig[topLevelType]; 24910 if (!dispatchConfig) return null; 24911 var EventConstructor = void 0; 24912 switch (topLevelType) { 24913 case TOP_KEY_PRESS: 24914 if (0 === getEventCharCode(nativeEvent)) return null; 24915 24916 case TOP_KEY_DOWN: 24917 case TOP_KEY_UP: 24918 EventConstructor = SyntheticKeyboardEvent; 24919 break; 24920 24921 case TOP_BLUR: 24922 case TOP_FOCUS: 24923 EventConstructor = SyntheticFocusEvent; 24924 break; 24925 24926 case TOP_CLICK: 24927 if (2 === nativeEvent.button) return null; 24928 24929 case TOP_DOUBLE_CLICK: 24930 case TOP_MOUSE_DOWN: 24931 case TOP_MOUSE_MOVE: 24932 case TOP_MOUSE_UP: 24933 case TOP_MOUSE_OUT: 24934 case TOP_MOUSE_OVER: 24935 case TOP_CONTEXT_MENU: 24936 EventConstructor = SyntheticMouseEvent; 24937 break; 24938 24939 case TOP_DRAG: 24940 case TOP_DRAG_END: 24941 case TOP_DRAG_ENTER: 24942 case TOP_DRAG_EXIT: 24943 case TOP_DRAG_LEAVE: 24944 case TOP_DRAG_OVER: 24945 case TOP_DRAG_START: 24946 case TOP_DROP: 24947 EventConstructor = SyntheticDragEvent; 24948 break; 24949 24950 case TOP_TOUCH_CANCEL: 24951 case TOP_TOUCH_END: 24952 case TOP_TOUCH_MOVE: 24953 case TOP_TOUCH_START: 24954 EventConstructor = SyntheticTouchEvent; 24955 break; 24956 24957 case TOP_ANIMATION_END: 24958 case TOP_ANIMATION_ITERATION: 24959 case TOP_ANIMATION_START: 24960 EventConstructor = SyntheticAnimationEvent; 24961 break; 24962 24963 case TOP_TRANSITION_END: 24964 EventConstructor = SyntheticTransitionEvent; 24965 break; 24966 24967 case TOP_SCROLL: 24968 EventConstructor = SyntheticUIEvent; 24969 break; 24970 24971 case TOP_WHEEL: 24972 EventConstructor = SyntheticWheelEvent; 24973 break; 24974 24975 case TOP_COPY: 24976 case TOP_CUT: 24977 case TOP_PASTE: 24978 EventConstructor = SyntheticClipboardEvent; 24979 break; 24980 24981 case TOP_GOT_POINTER_CAPTURE: 24982 case TOP_LOST_POINTER_CAPTURE: 24983 case TOP_POINTER_CANCEL: 24984 case TOP_POINTER_DOWN: 24985 case TOP_POINTER_MOVE: 24986 case TOP_POINTER_OUT: 24987 case TOP_POINTER_OVER: 24988 case TOP_POINTER_UP: 24989 EventConstructor = SyntheticPointerEvent; 24990 break; 24991 24992 default: 24993 -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), 24994 EventConstructor = SyntheticEvent$1; 24995 } 24996 var event = EventConstructor.getPooled(dispatchConfig, targetInst, nativeEvent, nativeEventTarget); 24997 return accumulateTwoPhaseDispatches(event), event; 24998 } 24999 }, isInteractiveTopLevelEventType = SimpleEventPlugin.isInteractiveTopLevelEventType, CALLBACK_BOOKKEEPING_POOL_SIZE = 10, callbackBookkeepingPool = [], _enabled = !0, ReactDOMEventListener = Object.freeze({ 25000 get _enabled() { 25001 return _enabled; 25002 }, 25003 setEnabled: setEnabled, 25004 isEnabled: isEnabled, 25005 trapBubbledEvent: trapBubbledEvent, 25006 trapCapturedEvent: trapCapturedEvent, 25007 dispatchEvent: dispatchEvent 25008 }), alreadyListeningTo = {}, reactTopListenersCounter = 0, topListenersIDKey = "_reactListenersID" + ("" + Math.random()).slice(2), skipSelectionChangeEvent = ExecutionEnvironment.canUseDOM && "documentMode" in document && document.documentMode <= 11, eventTypes$3 = { 25009 select: { 25010 phasedRegistrationNames: { 25011 bubbled: "onSelect", 25012 captured: "onSelectCapture" 25013 }, 25014 dependencies: [ TOP_BLUR, TOP_CONTEXT_MENU, TOP_FOCUS, TOP_KEY_DOWN, TOP_KEY_UP, TOP_MOUSE_DOWN, TOP_MOUSE_UP, TOP_SELECTION_CHANGE ] 25015 } 25016 }, activeElement$1 = null, activeElementInst$1 = null, lastSelection = null, mouseDown = !1, SelectEventPlugin = { 25017 eventTypes: eventTypes$3, 25018 extractEvents: function(topLevelType, targetInst, nativeEvent, nativeEventTarget) { 25019 var doc = nativeEventTarget.window === nativeEventTarget ? nativeEventTarget.document : nativeEventTarget.nodeType === DOCUMENT_NODE ? nativeEventTarget : nativeEventTarget.ownerDocument; 25020 if (!doc || !isListeningToAllDependencies("onSelect", doc)) return null; 25021 var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window; 25022 switch (topLevelType) { 25023 case TOP_FOCUS: 25024 (isTextInputElement(targetNode) || "true" === targetNode.contentEditable) && (activeElement$1 = targetNode, 25025 activeElementInst$1 = targetInst, lastSelection = null); 25026 break; 25027 25028 case TOP_BLUR: 25029 activeElement$1 = null, activeElementInst$1 = null, lastSelection = null; 25030 break; 25031 25032 case TOP_MOUSE_DOWN: 25033 mouseDown = !0; 25034 break; 25035 25036 case TOP_CONTEXT_MENU: 25037 case TOP_MOUSE_UP: 25038 return mouseDown = !1, constructSelectEvent(nativeEvent, nativeEventTarget); 25039 25040 case TOP_SELECTION_CHANGE: 25041 if (skipSelectionChangeEvent) break; 25042 25043 case TOP_KEY_DOWN: 25044 case TOP_KEY_UP: 25045 return constructSelectEvent(nativeEvent, nativeEventTarget); 25046 } 25047 return null; 25048 } 25049 }; 25050 injection.injectEventPluginOrder(DOMEventPluginOrder), injection$1.injectComponentTree(ReactDOMComponentTree), 25051 injection.injectEventPluginsByName({ 25052 SimpleEventPlugin: SimpleEventPlugin, 25053 EnterLeaveEventPlugin: EnterLeaveEventPlugin, 25054 ChangeEventPlugin: ChangeEventPlugin, 25055 SelectEventPlugin: SelectEventPlugin, 25056 BeforeInputEventPlugin: BeforeInputEventPlugin 25057 }), 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);; 25058 var hasNativePerformanceNow = "object" == typeof performance && "function" == typeof performance.now, now$1 = void 0; 25059 now$1 = hasNativePerformanceNow ? function() { 25060 return performance.now(); 25061 } : function() { 25062 return Date.now(); 25063 }; 25064 var scheduleWork = void 0, cancelScheduledWork = void 0; 25065 if (ExecutionEnvironment.canUseDOM) { 25066 var pendingCallbacks = [], _callbackIdCounter = 0, getCallbackId = function() { 25067 return ++_callbackIdCounter; 25068 }, registeredCallbackIds = {}, nextSoonestTimeoutTime = -1, isIdleScheduled = !1, isAnimationFrameScheduled = !1, frameDeadline = 0, previousFrameTime = 33, activeFrameTime = 33, frameDeadlineObject = { 25069 didTimeout: !1, 25070 timeRemaining: function() { 25071 var remaining = frameDeadline - now$1(); 25072 return remaining > 0 ? remaining : 0; 25073 } 25074 }, safelyCallScheduledCallback = function(callback, callbackId) { 25075 if (registeredCallbackIds[callbackId]) try { 25076 callback(frameDeadlineObject); 25077 } finally { 25078 delete registeredCallbackIds[callbackId]; 25079 } 25080 }, callTimedOutCallbacks = function() { 25081 if (0 !== pendingCallbacks.length) { 25082 var currentTime = now$1(); 25083 if (!(-1 === nextSoonestTimeoutTime || nextSoonestTimeoutTime > currentTime)) { 25084 nextSoonestTimeoutTime = -1, frameDeadlineObject.didTimeout = !0; 25085 for (var i = 0, len = pendingCallbacks.length; i < len; i++) { 25086 var currentCallbackConfig = pendingCallbacks[i], _timeoutTime = currentCallbackConfig.timeoutTime; 25087 if (-1 !== _timeoutTime && _timeoutTime <= currentTime) { 25088 var _callback = currentCallbackConfig.scheduledCallback; 25089 safelyCallScheduledCallback(_callback, currentCallbackConfig.callbackId); 25090 } else -1 !== _timeoutTime && (-1 === nextSoonestTimeoutTime || _timeoutTime < nextSoonestTimeoutTime) && (nextSoonestTimeoutTime = _timeoutTime); 25091 } 25092 } 25093 } 25094 }, messageKey = "__reactIdleCallback$" + Math.random().toString(36).slice(2), idleTick = function(event) { 25095 if (event.source === window && event.data === messageKey && (isIdleScheduled = !1, 25096 0 !== pendingCallbacks.length)) { 25097 callTimedOutCallbacks(); 25098 for (var currentTime = now$1(); frameDeadline - currentTime > 0 && pendingCallbacks.length > 0; ) { 25099 var latestCallbackConfig = pendingCallbacks.shift(); 25100 frameDeadlineObject.didTimeout = !1; 25101 var latestCallback = latestCallbackConfig.scheduledCallback, newCallbackId = latestCallbackConfig.callbackId; 25102 safelyCallScheduledCallback(latestCallback, newCallbackId), currentTime = now$1(); 25103 } 25104 pendingCallbacks.length > 0 && (isAnimationFrameScheduled || (isAnimationFrameScheduled = !0, 25105 requestAnimationFrame(animationTick))); 25106 } 25107 }; 25108 window.addEventListener("message", idleTick, !1); 25109 var animationTick = function(rafTime) { 25110 isAnimationFrameScheduled = !1; 25111 var nextFrameTime = rafTime - frameDeadline + activeFrameTime; 25112 nextFrameTime < activeFrameTime && previousFrameTime < activeFrameTime ? (nextFrameTime < 8 && (nextFrameTime = 8), 25113 activeFrameTime = nextFrameTime < previousFrameTime ? previousFrameTime : nextFrameTime) : previousFrameTime = nextFrameTime, 25114 frameDeadline = rafTime + activeFrameTime, isIdleScheduled || (isIdleScheduled = !0, 25115 window.postMessage(messageKey, "*")); 25116 }; 25117 scheduleWork = function(callback, options) { 25118 var timeoutTime = -1; 25119 null != options && "number" == typeof options.timeout && (timeoutTime = now$1() + options.timeout), 25120 (-1 === nextSoonestTimeoutTime || -1 !== timeoutTime && timeoutTime < nextSoonestTimeoutTime) && (nextSoonestTimeoutTime = timeoutTime); 25121 var newCallbackId = getCallbackId(), scheduledCallbackConfig = { 25122 scheduledCallback: callback, 25123 callbackId: newCallbackId, 25124 timeoutTime: timeoutTime 25125 }; 25126 return pendingCallbacks.push(scheduledCallbackConfig), registeredCallbackIds[newCallbackId] = !0, 25127 isAnimationFrameScheduled || (isAnimationFrameScheduled = !0, requestAnimationFrame(animationTick)), 25128 newCallbackId; 25129 }, cancelScheduledWork = function(callbackId) { 25130 delete registeredCallbackIds[callbackId]; 25131 }; 25132 } else { 25133 var callbackIdCounter = 0, timeoutIds = {}; 25134 scheduleWork = function(callback, options) { 25135 var callbackId = callbackIdCounter++, timeoutId = setTimeout(function() { 25136 callback({ 25137 timeRemaining: function() { 25138 return 1 / 0; 25139 }, 25140 didTimeout: !1 25141 }); 25142 }); 25143 return timeoutIds[callbackId] = timeoutId, callbackId; 25144 }, cancelScheduledWork = function(callbackId) { 25145 var timeoutId = timeoutIds[callbackId]; 25146 delete timeoutIds[callbackId], clearTimeout(timeoutId); 25147 }; 25148 } 25149 var didWarnSelectedSetOnOption = !1, getCurrentFiberOwnerName$3 = ReactDebugCurrentFiber.getCurrentFiberOwnerName, getCurrentFiberStackAddendum$3 = ReactDebugCurrentFiber.getCurrentFiberStackAddendum, didWarnValueDefaultValue$1 = void 0; 25150 didWarnValueDefaultValue$1 = !1; 25151 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= 25152 html: HTML_NAMESPACE$1, 25153 mathml: MATH_NAMESPACE, 25154 svg: SVG_NAMESPACE 25155 }, reusableSVGContainer = void 0, setInnerHTML = function(func) { 25156 return "undefined" != typeof MSApp && MSApp.execUnsafeLocalFunction ? function(arg0, arg1, arg2, arg3) { 25157 MSApp.execUnsafeLocalFunction(function() { 25158 return func(arg0, arg1, arg2, arg3); 25159 }); 25160 } : func; 25161 }(function(node, html) { 25162 if (node.namespaceURI !== Namespaces.svg || "innerHTML" in node) node.innerHTML = html; else { 25163 reusableSVGContainer = reusableSVGContainer || document.createElement("div"), reusableSVGContainer.innerHTML = "<svg>" + html + "</svg>"; 25164 for (var svgNode = reusableSVGContainer.firstChild; node.firstChild; ) node.removeChild(node.firstChild); 25165 for (;svgNode.firstChild; ) node.appendChild(svgNode.firstChild); 25166 } 25167 }), setTextContent = function(node, text) { 25168 if (text) { 25169 var firstChild = node.firstChild; 25170 if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE) return void (firstChild.nodeValue = text); 25171 } 25172 node.textContent = text; 25173 }, isUnitlessNumber = { 25174 animationIterationCount: !0, 25175 borderImageOutset: !0, 25176 borderImageSlice: !0, 25177 borderImageWidth: !0, 25178 boxFlex: !0, 25179 boxFlexGroup: !0, 25180 boxOrdinalGroup: !0, 25181 columnCount: !0, 25182 columns: !0, 25183 flex: !0, 25184 flexGrow: !0, 25185 flexPositive: !0, 25186 flexShrink: !0, 25187 flexNegative: !0, 25188 flexOrder: !0, 25189 gridRow: !0, 25190 gridRowEnd: !0, 25191 gridRowSpan: !0, 25192 gridRowStart: !0, 25193 gridColumn: !0, 25194 gridColumnEnd: !0, 25195 gridColumnSpan: !0, 25196 gridColumnStart: !0, 25197 fontWeight: !0, 25198 lineClamp: !0, 25199 lineHeight: !0, 25200 opacity: !0, 25201 order: !0, 25202 orphans: !0, 25203 tabSize: !0, 25204 widows: !0, 25205 zIndex: !0, 25206 zoom: !0, 25207 fillOpacity: !0, 25208 floodOpacity: !0, 25209 stopOpacity: !0, 25210 strokeDasharray: !0, 25211 strokeDashoffset: !0, 25212 strokeMiterlimit: !0, 25213 strokeOpacity: !0, 25214 strokeWidth: !0 25215 }, prefixes = [ "Webkit", "ms", "Moz", "O" ]; 25216 Object.keys(isUnitlessNumber).forEach(function(prop) { 25217 prefixes.forEach(function(prefix) { 25218 isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop]; 25219 }); 25220 }); 25221 var warnValidStyle = emptyFunction, badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/, badStyleValueWithSemicolonPattern = /;\s*$/, warnedStyleNames = {}, warnedStyleValues = {}, warnedForNaNValue = !1, warnedForInfinityValue = !1, warnHyphenatedStyleName = function(name, getStack) { 25222 warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name] || (warnedStyleNames[name] = !0, 25223 warning(!1, "Unsupported style property %s. Did you mean %s?%s", name, camelizeStyleName(name), getStack())); 25224 }, warnBadVendoredStyleName = function(name, getStack) { 25225 warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name] || (warnedStyleNames[name] = !0, 25226 warning(!1, "Unsupported vendor-prefixed style property %s. Did you mean %s?%s", name, name.charAt(0).toUpperCase() + name.slice(1), getStack())); 25227 }, warnStyleValueWithSemicolon = function(name, value, getStack) { 25228 warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value] || (warnedStyleValues[value] = !0, 25229 warning(!1, 'Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.%s', name, value.replace(badStyleValueWithSemicolonPattern, ""), getStack())); 25230 }, warnStyleValueIsNaN = function(name, value, getStack) { 25231 warnedForNaNValue || (warnedForNaNValue = !0, warning(!1, "` + ("`" + `NaN`))) + (("`" + (` is an invalid value for the ` + "`")) + (`%s` + ("`" + ` css style property.%s", name, getStack())); 25232 }, warnStyleValueIsInfinity = function(name, value, getStack) { 25233 warnedForInfinityValue || (warnedForInfinityValue = !0, warning(!1, "`)))) + ((("`" + (`Infinity` + "`")) + (` is an invalid value for the ` + ("`" + `%s`))) + (("`" + (` css style property.%s", name, getStack())); 25234 }; 25235 warnValidStyle = function(name, value, getStack) { 25236 name.indexOf("-") > -1 ? warnHyphenatedStyleName(name, getStack) : badVendoredStyleNamePattern.test(name) ? warnBadVendoredStyleName(name, getStack) : badStyleValueWithSemicolonPattern.test(value) && warnStyleValueWithSemicolon(name, value, getStack), 25237 "number" == typeof value && (isNaN(value) ? warnStyleValueIsNaN(name, 0, getStack) : isFinite(value) || warnStyleValueIsInfinity(name, 0, getStack)); 25238 }; 25239 var warnValidStyle$1 = warnValidStyle, omittedCloseTags = { 25240 area: !0, 25241 base: !0, 25242 br: !0, 25243 col: !0, 25244 embed: !0, 25245 hr: !0, 25246 img: !0, 25247 input: !0, 25248 keygen: !0, 25249 link: !0, 25250 meta: !0, 25251 param: !0, 25252 source: !0, 25253 track: !0, 25254 wbr: !0 25255 }, voidElementTags = _assign({ 25256 menuitem: !0 25257 }, omittedCloseTags), HTML$1 = "__html", possibleStandardNames = { 25258 accept: "accept", 25259 acceptcharset: "acceptCharset", 25260 "accept-charset": "acceptCharset", 25261 accesskey: "accessKey", 25262 action: "action", 25263 allowfullscreen: "allowFullScreen", 25264 alt: "alt", 25265 as: "as", 25266 async: "async", 25267 autocapitalize: "autoCapitalize", 25268 autocomplete: "autoComplete", 25269 autocorrect: "autoCorrect", 25270 autofocus: "autoFocus", 25271 autoplay: "autoPlay", 25272 autosave: "autoSave", 25273 capture: "capture", 25274 cellpadding: "cellPadding", 25275 cellspacing: "cellSpacing", 25276 challenge: "challenge", 25277 charset: "charSet", 25278 checked: "checked", 25279 children: "children", 25280 cite: "cite", 25281 class: "className", 25282 classid: "classID", 25283 classname: "className", 25284 cols: "cols", 25285 colspan: "colSpan", 25286 content: "content", 25287 contenteditable: "contentEditable", 25288 contextmenu: "contextMenu", 25289 controls: "controls", 25290 controlslist: "controlsList", 25291 coords: "coords", 25292 crossorigin: "crossOrigin", 25293 dangerouslysetinnerhtml: "dangerouslySetInnerHTML", 25294 data: "data", 25295 datetime: "dateTime", 25296 default: "default", 25297 defaultchecked: "defaultChecked", 25298 defaultvalue: "defaultValue", 25299 defer: "defer", 25300 dir: "dir", 25301 disabled: "disabled", 25302 download: "download", 25303 draggable: "draggable", 25304 enctype: "encType", 25305 for: "htmlFor", 25306 form: "form", 25307 formmethod: "formMethod", 25308 formaction: "formAction", 25309 formenctype: "formEncType", 25310 formnovalidate: "formNoValidate", 25311 formtarget: "formTarget", 25312 frameborder: "frameBorder", 25313 headers: "headers", 25314 height: "height", 25315 hidden: "hidden", 25316 high: "high", 25317 href: "href", 25318 hreflang: "hrefLang", 25319 htmlfor: "htmlFor", 25320 httpequiv: "httpEquiv", 25321 "http-equiv": "httpEquiv", 25322 icon: "icon", 25323 id: "id", 25324 innerhtml: "innerHTML", 25325 inputmode: "inputMode", 25326 integrity: "integrity", 25327 is: "is", 25328 itemid: "itemID", 25329 itemprop: "itemProp", 25330 itemref: "itemRef", 25331 itemscope: "itemScope", 25332 itemtype: "itemType", 25333 keyparams: "keyParams", 25334 keytype: "keyType", 25335 kind: "kind", 25336 label: "label", 25337 lang: "lang", 25338 list: "list", 25339 loop: "loop", 25340 low: "low", 25341 manifest: "manifest", 25342 marginwidth: "marginWidth", 25343 marginheight: "marginHeight", 25344 max: "max", 25345 maxlength: "maxLength", 25346 media: "media", 25347 mediagroup: "mediaGroup", 25348 method: "method", 25349 min: "min", 25350 minlength: "minLength", 25351 multiple: "multiple", 25352 muted: "muted", 25353 name: "name", 25354 nomodule: "noModule", 25355 nonce: "nonce", 25356 novalidate: "noValidate", 25357 open: "open", 25358 optimum: "optimum", 25359 pattern: "pattern", 25360 placeholder: "placeholder", 25361 playsinline: "playsInline", 25362 poster: "poster", 25363 preload: "preload", 25364 profile: "profile", 25365 radiogroup: "radioGroup", 25366 readonly: "readOnly", 25367 referrerpolicy: "referrerPolicy", 25368 rel: "rel", 25369 required: "required", 25370 reversed: "reversed", 25371 role: "role", 25372 rows: "rows", 25373 rowspan: "rowSpan", 25374 sandbox: "sandbox", 25375 scope: "scope", 25376 scoped: "scoped", 25377 scrolling: "scrolling", 25378 seamless: "seamless", 25379 selected: "selected", 25380 shape: "shape", 25381 size: "size", 25382 sizes: "sizes", 25383 span: "span", 25384 spellcheck: "spellCheck", 25385 src: "src", 25386 srcdoc: "srcDoc", 25387 srclang: "srcLang", 25388 srcset: "srcSet", 25389 start: "start", 25390 step: "step", 25391 style: "style", 25392 summary: "summary", 25393 tabindex: "tabIndex", 25394 target: "target", 25395 title: "title", 25396 type: "type", 25397 usemap: "useMap", 25398 value: "value", 25399 width: "width", 25400 wmode: "wmode", 25401 wrap: "wrap", 25402 about: "about", 25403 accentheight: "accentHeight", 25404 "accent-height": "accentHeight", 25405 accumulate: "accumulate", 25406 additive: "additive", 25407 alignmentbaseline: "alignmentBaseline", 25408 "alignment-baseline": "alignmentBaseline", 25409 allowreorder: "allowReorder", 25410 alphabetic: "alphabetic", 25411 amplitude: "amplitude", 25412 arabicform: "arabicForm", 25413 "arabic-form": "arabicForm", 25414 ascent: "ascent", 25415 attributename: "attributeName", 25416 attributetype: "attributeType", 25417 autoreverse: "autoReverse", 25418 azimuth: "azimuth", 25419 basefrequency: "baseFrequency", 25420 baselineshift: "baselineShift", 25421 "baseline-shift": "baselineShift", 25422 baseprofile: "baseProfile", 25423 bbox: "bbox", 25424 begin: "begin", 25425 bias: "bias", 25426 by: "by", 25427 calcmode: "calcMode", 25428 capheight: "capHeight", 25429 "cap-height": "capHeight", 25430 clip: "clip", 25431 clippath: "clipPath", 25432 "clip-path": "clipPath", 25433 clippathunits: "clipPathUnits", 25434 cliprule: "clipRule", 25435 "clip-rule": "clipRule", 25436 color: "color", 25437 colorinterpolation: "colorInterpolation", 25438 "color-interpolation": "colorInterpolation", 25439 colorinterpolationfilters: "colorInterpolationFilters", 25440 "color-interpolation-filters": "colorInterpolationFilters", 25441 colorprofile: "colorProfile", 25442 "color-profile": "colorProfile", 25443 colorrendering: "colorRendering", 25444 "color-rendering": "colorRendering", 25445 contentscripttype: "contentScriptType", 25446 contentstyletype: "contentStyleType", 25447 cursor: "cursor", 25448 cx: "cx", 25449 cy: "cy", 25450 d: "d", 25451 datatype: "datatype", 25452 decelerate: "decelerate", 25453 descent: "descent", 25454 diffuseconstant: "diffuseConstant", 25455 direction: "direction", 25456 display: "display", 25457 divisor: "divisor", 25458 dominantbaseline: "dominantBaseline", 25459 "dominant-baseline": "dominantBaseline", 25460 dur: "dur", 25461 dx: "dx", 25462 dy: "dy", 25463 edgemode: "edgeMode", 25464 elevation: "elevation", 25465 enablebackground: "enableBackground", 25466 "enable-background": "enableBackground", 25467 end: "end", 25468 exponent: "exponent", 25469 externalresourcesrequired: "externalResourcesRequired", 25470 fill: "fill", 25471 fillopacity: "fillOpacity", 25472 "fill-opacity": "fillOpacity", 25473 fillrule: "fillRule", 25474 "fill-rule": "fillRule", 25475 filter: "filter", 25476 filterres: "filterRes", 25477 filterunits: "filterUnits", 25478 floodopacity: "floodOpacity", 25479 "flood-opacity": "floodOpacity", 25480 floodcolor: "floodColor", 25481 "flood-color": "floodColor", 25482 focusable: "focusable", 25483 fontfamily: "fontFamily", 25484 "font-family": "fontFamily", 25485 fontsize: "fontSize", 25486 "font-size": "fontSize", 25487 fontsizeadjust: "fontSizeAdjust", 25488 "font-size-adjust": "fontSizeAdjust", 25489 fontstretch: "fontStretch", 25490 "font-stretch": "fontStretch", 25491 fontstyle: "fontStyle", 25492 "font-style": "fontStyle", 25493 fontvariant: "fontVariant", 25494 "font-variant": "fontVariant", 25495 fontweight: "fontWeight", 25496 "font-weight": "fontWeight", 25497 format: "format", 25498 from: "from", 25499 fx: "fx", 25500 fy: "fy", 25501 g1: "g1", 25502 g2: "g2", 25503 glyphname: "glyphName", 25504 "glyph-name": "glyphName", 25505 glyphorientationhorizontal: "glyphOrientationHorizontal", 25506 "glyph-orientation-horizontal": "glyphOrientationHorizontal", 25507 glyphorientationvertical: "glyphOrientationVertical", 25508 "glyph-orientation-vertical": "glyphOrientationVertical", 25509 glyphref: "glyphRef", 25510 gradienttransform: "gradientTransform", 25511 gradientunits: "gradientUnits", 25512 hanging: "hanging", 25513 horizadvx: "horizAdvX", 25514 "horiz-adv-x": "horizAdvX", 25515 horizoriginx: "horizOriginX", 25516 "horiz-origin-x": "horizOriginX", 25517 ideographic: "ideographic", 25518 imagerendering: "imageRendering", 25519 "image-rendering": "imageRendering", 25520 in2: "in2", 25521 in: "in", 25522 inlist: "inlist", 25523 intercept: "intercept", 25524 k1: "k1", 25525 k2: "k2", 25526 k3: "k3", 25527 k4: "k4", 25528 k: "k", 25529 kernelmatrix: "kernelMatrix", 25530 kernelunitlength: "kernelUnitLength", 25531 kerning: "kerning", 25532 keypoints: "keyPoints", 25533 keysplines: "keySplines", 25534 keytimes: "keyTimes", 25535 lengthadjust: "lengthAdjust", 25536 letterspacing: "letterSpacing", 25537 "letter-spacing": "letterSpacing", 25538 lightingcolor: "lightingColor", 25539 "lighting-color": "lightingColor", 25540 limitingconeangle: "limitingConeAngle", 25541 local: "local", 25542 markerend: "markerEnd", 25543 "marker-end": "markerEnd", 25544 markerheight: "markerHeight", 25545 markermid: "markerMid", 25546 "marker-mid": "markerMid", 25547 markerstart: "markerStart", 25548 "marker-start": "markerStart", 25549 markerunits: "markerUnits", 25550 markerwidth: "markerWidth", 25551 mask: "mask", 25552 maskcontentunits: "maskContentUnits", 25553 maskunits: "maskUnits", 25554 mathematical: "mathematical", 25555 mode: "mode", 25556 numoctaves: "numOctaves", 25557 offset: "offset", 25558 opacity: "opacity", 25559 operator: "operator", 25560 order: "order", 25561 orient: "orient", 25562 orientation: "orientation", 25563 origin: "origin", 25564 overflow: "overflow", 25565 overlineposition: "overlinePosition", 25566 "overline-position": "overlinePosition", 25567 overlinethickness: "overlineThickness", 25568 "overline-thickness": "overlineThickness", 25569 paintorder: "paintOrder", 25570 "paint-order": "paintOrder", 25571 panose1: "panose1", 25572 "panose-1": "panose1", 25573 pathlength: "pathLength", 25574 patterncontentunits: "patternContentUnits", 25575 patterntransform: "patternTransform", 25576 patternunits: "patternUnits", 25577 pointerevents: "pointerEvents", 25578 "pointer-events": "pointerEvents", 25579 points: "points", 25580 pointsatx: "pointsAtX", 25581 pointsaty: "pointsAtY", 25582 pointsatz: "pointsAtZ", 25583 prefix: "prefix", 25584 preservealpha: "preserveAlpha", 25585 preserveaspectratio: "preserveAspectRatio", 25586 primitiveunits: "primitiveUnits", 25587 property: "property", 25588 r: "r", 25589 radius: "radius", 25590 refx: "refX", 25591 refy: "refY", 25592 renderingintent: "renderingIntent", 25593 "rendering-intent": "renderingIntent", 25594 repeatcount: "repeatCount", 25595 repeatdur: "repeatDur", 25596 requiredextensions: "requiredExtensions", 25597 requiredfeatures: "requiredFeatures", 25598 resource: "resource", 25599 restart: "restart", 25600 result: "result", 25601 results: "results", 25602 rotate: "rotate", 25603 rx: "rx", 25604 ry: "ry", 25605 scale: "scale", 25606 security: "security", 25607 seed: "seed", 25608 shaperendering: "shapeRendering", 25609 "shape-rendering": "shapeRendering", 25610 slope: "slope", 25611 spacing: "spacing", 25612 specularconstant: "specularConstant", 25613 specularexponent: "specularExponent", 25614 speed: "speed", 25615 spreadmethod: "spreadMethod", 25616 startoffset: "startOffset", 25617 stddeviation: "stdDeviation", 25618 stemh: "stemh", 25619 stemv: "stemv", 25620 stitchtiles: "stitchTiles", 25621 stopcolor: "stopColor", 25622 "stop-color": "stopColor", 25623 stopopacity: "stopOpacity", 25624 "stop-opacity": "stopOpacity", 25625 strikethroughposition: "strikethroughPosition", 25626 "strikethrough-position": "strikethroughPosition", 25627 strikethroughthickness: "strikethroughThickness", 25628 "strikethrough-thickness": "strikethroughThickness", 25629 string: "string", 25630 stroke: "stroke", 25631 strokedasharray: "strokeDasharray", 25632 "stroke-dasharray": "strokeDasharray", 25633 strokedashoffset: "strokeDashoffset", 25634 "stroke-dashoffset": "strokeDashoffset", 25635 strokelinecap: "strokeLinecap", 25636 "stroke-linecap": "strokeLinecap", 25637 strokelinejoin: "strokeLinejoin", 25638 "stroke-linejoin": "strokeLinejoin", 25639 strokemiterlimit: "strokeMiterlimit", 25640 "stroke-miterlimit": "strokeMiterlimit", 25641 strokewidth: "strokeWidth", 25642 "stroke-width": "strokeWidth", 25643 strokeopacity: "strokeOpacity", 25644 "stroke-opacity": "strokeOpacity", 25645 suppresscontenteditablewarning: "suppressContentEditableWarning", 25646 suppresshydrationwarning: "suppressHydrationWarning", 25647 surfacescale: "surfaceScale", 25648 systemlanguage: "systemLanguage", 25649 tablevalues: "tableValues", 25650 targetx: "targetX", 25651 targety: "targetY", 25652 textanchor: "textAnchor", 25653 "text-anchor": "textAnchor", 25654 textdecoration: "textDecoration", 25655 "text-decoration": "textDecoration", 25656 textlength: "textLength", 25657 textrendering: "textRendering", 25658 "text-rendering": "textRendering", 25659 to: "to", 25660 transform: "transform", 25661 typeof: "typeof", 25662 u1: "u1", 25663 u2: "u2", 25664 underlineposition: "underlinePosition", 25665 "underline-position": "underlinePosition", 25666 underlinethickness: "underlineThickness", 25667 "underline-thickness": "underlineThickness", 25668 unicode: "unicode", 25669 unicodebidi: "unicodeBidi", 25670 "unicode-bidi": "unicodeBidi", 25671 unicoderange: "unicodeRange", 25672 "unicode-range": "unicodeRange", 25673 unitsperem: "unitsPerEm", 25674 "units-per-em": "unitsPerEm", 25675 unselectable: "unselectable", 25676 valphabetic: "vAlphabetic", 25677 "v-alphabetic": "vAlphabetic", 25678 values: "values", 25679 vectoreffect: "vectorEffect", 25680 "vector-effect": "vectorEffect", 25681 version: "version", 25682 vertadvy: "vertAdvY", 25683 "vert-adv-y": "vertAdvY", 25684 vertoriginx: "vertOriginX", 25685 "vert-origin-x": "vertOriginX", 25686 vertoriginy: "vertOriginY", 25687 "vert-origin-y": "vertOriginY", 25688 vhanging: "vHanging", 25689 "v-hanging": "vHanging", 25690 videographic: "vIdeographic", 25691 "v-ideographic": "vIdeographic", 25692 viewbox: "viewBox", 25693 viewtarget: "viewTarget", 25694 visibility: "visibility", 25695 vmathematical: "vMathematical", 25696 "v-mathematical": "vMathematical", 25697 vocab: "vocab", 25698 widths: "widths", 25699 wordspacing: "wordSpacing", 25700 "word-spacing": "wordSpacing", 25701 writingmode: "writingMode", 25702 "writing-mode": "writingMode", 25703 x1: "x1", 25704 x2: "x2", 25705 x: "x", 25706 xchannelselector: "xChannelSelector", 25707 xheight: "xHeight", 25708 "x-height": "xHeight", 25709 xlinkactuate: "xlinkActuate", 25710 "xlink:actuate": "xlinkActuate", 25711 xlinkarcrole: "xlinkArcrole", 25712 "xlink:arcrole": "xlinkArcrole", 25713 xlinkhref: "xlinkHref", 25714 "xlink:href": "xlinkHref", 25715 xlinkrole: "xlinkRole", 25716 "xlink:role": "xlinkRole", 25717 xlinkshow: "xlinkShow", 25718 "xlink:show": "xlinkShow", 25719 xlinktitle: "xlinkTitle", 25720 "xlink:title": "xlinkTitle", 25721 xlinktype: "xlinkType", 25722 "xlink:type": "xlinkType", 25723 xmlbase: "xmlBase", 25724 "xml:base": "xmlBase", 25725 xmllang: "xmlLang", 25726 "xml:lang": "xmlLang", 25727 xmlns: "xmlns", 25728 "xml:space": "xmlSpace", 25729 xmlnsxlink: "xmlnsXlink", 25730 "xmlns:xlink": "xmlnsXlink", 25731 xmlspace: "xmlSpace", 25732 y1: "y1", 25733 y2: "y2", 25734 y: "y", 25735 ychannelselector: "yChannelSelector", 25736 z: "z", 25737 zoomandpan: "zoomAndPan" 25738 }, ariaProperties = { 25739 "aria-current": 0, 25740 "aria-details": 0, 25741 "aria-disabled": 0, 25742 "aria-hidden": 0, 25743 "aria-invalid": 0, 25744 "aria-keyshortcuts": 0, 25745 "aria-label": 0, 25746 "aria-roledescription": 0, 25747 "aria-autocomplete": 0, 25748 "aria-checked": 0, 25749 "aria-expanded": 0, 25750 "aria-haspopup": 0, 25751 "aria-level": 0, 25752 "aria-modal": 0, 25753 "aria-multiline": 0, 25754 "aria-multiselectable": 0, 25755 "aria-orientation": 0, 25756 "aria-placeholder": 0, 25757 "aria-pressed": 0, 25758 "aria-readonly": 0, 25759 "aria-required": 0, 25760 "aria-selected": 0, 25761 "aria-sort": 0, 25762 "aria-valuemax": 0, 25763 "aria-valuemin": 0, 25764 "aria-valuenow": 0, 25765 "aria-valuetext": 0, 25766 "aria-atomic": 0, 25767 "aria-busy": 0, 25768 "aria-live": 0, 25769 "aria-relevant": 0, 25770 "aria-dropeffect": 0, 25771 "aria-grabbed": 0, 25772 "aria-activedescendant": 0, 25773 "aria-colcount": 0, 25774 "aria-colindex": 0, 25775 "aria-colspan": 0, 25776 "aria-controls": 0, 25777 "aria-describedby": 0, 25778 "aria-errormessage": 0, 25779 "aria-flowto": 0, 25780 "aria-labelledby": 0, 25781 "aria-owns": 0, 25782 "aria-posinset": 0, 25783 "aria-rowcount": 0, 25784 "aria-rowindex": 0, 25785 "aria-rowspan": 0, 25786 "aria-setsize": 0 25787 }, 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 + "]*$"); 25788 validateProperty$1 = function(tagName, name, value, canUseEventSystem) { 25789 if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) return !0; 25790 var lowerCasedName = name.toLowerCase(); 25791 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."), 25792 warnedProperties$1[name] = !0, !0; 25793 if (canUseEventSystem) { 25794 if (registrationNameModules.hasOwnProperty(name)) return !0; 25795 var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null; 25796 if (null != registrationName) return warning(!1, "Invalid event handler property ` + "`")) + (`%s` + ("`" + `. Did you mean `))))) + (((("`" + (`%s` + "`")) + (`?%s", name, registrationName, getStackAddendum$2()), 25797 warnedProperties$1[name] = !0, !0; 25798 if (EVENT_NAME_REGEX.test(name)) return warning(!1, "Unknown event handler property ` + ("`" + `%s`))) + (("`" + (`. It will be ignored.%s", name, getStackAddendum$2()), 25799 warnedProperties$1[name] = !0, !0; 25800 } 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()), 25801 warnedProperties$1[name] = !0, !0; 25802 if (rARIA$1.test(name) || rARIACamel$1.test(name)) return !0; 25803 if ("innerhtml" === lowerCasedName) return warning(!1, "Directly setting property ` + ("`" + `innerHTML`))) + (("`" + (` is not permitted. For more information, lookup documentation on ` + "`")) + (`dangerouslySetInnerHTML` + ("`" + `."), 25804 warnedProperties$1[name] = !0, !0; 25805 if ("aria" === lowerCasedName) return warning(!1, "The `)))))) + ((((("`" + (`aria` + "`")) + (` attribute is reserved for future use in React. Pass individual ` + ("`" + `aria-`))) + (("`" + (` attributes instead."), 25806 warnedProperties$1[name] = !0, !0; 25807 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()), 25808 warnedProperties$1[name] = !0, !0; 25809 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()), 25810 warnedProperties$1[name] = !0, !0; 25811 var propertyInfo = getPropertyInfo(name), isReserved = null !== propertyInfo && propertyInfo.type === RESERVED; 25812 if (possibleStandardNames.hasOwnProperty(lowerCasedName)) { 25813 var standardName = possibleStandardNames[lowerCasedName]; 25814 if (standardName !== name) return warning(!1, "Invalid DOM property ` + "`")) + (`%s` + ("`" + `. Did you mean `))))) + (((("`" + (`%s` + "`")) + (`?%s", name, standardName, getStackAddendum$2()), 25815 warnedProperties$1[name] = !0, !0; 25816 } 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()), 25817 warnedProperties$1[name] = !0, !0; 25818 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()), 25819 warnedProperties$1[name] = !0, !0) : !!isReserved || (!shouldRemoveAttributeWithWarning(name, value, propertyInfo, !1) || (warnedProperties$1[name] = !0, 25820 !1)); 25821 }; 25822 var warnUnknownProperties = function(type, props, canUseEventSystem) { 25823 var unknownProps = []; 25824 for (var key in props) { 25825 validateProperty$1(type, key, props[key], canUseEventSystem) || unknownProps.push(key); 25826 } 25827 var unknownPropString = unknownProps.map(function(prop) { 25828 return "`)) + ("`" + (`" + prop + "` + "`"))) + ((`"; 25829 }).join(", "); 25830 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()); 25831 }, 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; 25832 getStack = getCurrentFiberStackAddendum$2, warnedUnknownTags = { 25833 time: !0, 25834 dialog: !0 25835 }, validatePropertiesInDevelopment = function(type, props) { 25836 validateProperties(type, props), validateProperties$1(type, props), validateProperties$2(type, props, !0); 25837 }; 25838 var NORMALIZE_NEWLINES_REGEX = /\r\n?/g, NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g; 25839 normalizeMarkupForTextOrAttribute = function(markup) { 25840 return ("string" == typeof markup ? markup : "" + markup).replace(NORMALIZE_NEWLINES_REGEX, "\n").replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, ""); 25841 }, warnForTextDifference = function(serverText, clientText) { 25842 if (!didWarnInvalidHydration) { 25843 var normalizedClientText = normalizeMarkupForTextOrAttribute(clientText), normalizedServerText = normalizeMarkupForTextOrAttribute(serverText); 25844 normalizedServerText !== normalizedClientText && (didWarnInvalidHydration = !0, 25845 warning(!1, 'Text content did not match. Server: "%s" Client: "%s"', normalizedServerText, normalizedClientText)); 25846 } 25847 }, warnForPropDifference = function(propName, serverValue, clientValue) { 25848 if (!didWarnInvalidHydration) { 25849 var normalizedClientValue = normalizeMarkupForTextOrAttribute(clientValue), normalizedServerValue = normalizeMarkupForTextOrAttribute(serverValue); 25850 normalizedServerValue !== normalizedClientValue && (didWarnInvalidHydration = !0, 25851 warning(!1, "Prop ` + ("`" + `%s`)) + ("`" + (` did not match. Server: %s Client: %s", propName, JSON.stringify(normalizedServerValue), JSON.stringify(normalizedClientValue))); 25852 } 25853 }, warnForExtraAttributes = function(attributeNames) { 25854 if (!didWarnInvalidHydration) { 25855 didWarnInvalidHydration = !0; 25856 var names = []; 25857 attributeNames.forEach(function(name) { 25858 names.push(name); 25859 }), warning(!1, "Extra attributes from the server: %s", names); 25860 } 25861 }, warnForInvalidEventListener = function(registrationName, listener) { 25862 !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()); 25863 }, normalizeHTML = function(parent, html) { 25864 var testElement = parent.namespaceURI === HTML_NAMESPACE ? parent.ownerDocument.createElement(parent.tagName) : parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName); 25865 return testElement.innerHTML = html, testElement.innerHTML; 25866 }; 25867 var ReactDOMFiberComponent = Object.freeze({ 25868 createElement: createElement$1, 25869 createTextNode: createTextNode$1, 25870 setInitialProperties: setInitialProperties$1, 25871 diffProperties: diffProperties$1, 25872 updateProperties: updateProperties$1, 25873 diffHydratedProperties: diffHydratedProperties$1, 25874 diffHydratedText: diffHydratedText$1, 25875 warnForUnmatchedText: warnForUnmatchedText$1, 25876 warnForDeletedHydratableElement: warnForDeletedHydratableElement$1, 25877 warnForDeletedHydratableText: warnForDeletedHydratableText$1, 25878 warnForInsertedHydratedElement: warnForInsertedHydratedElement$1, 25879 warnForInsertedHydratedText: warnForInsertedHydratedText$1, 25880 restoreControlledState: restoreControlledState$1 25881 }), 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 = { 25882 current: null, 25883 formTag: null, 25884 aTagInScope: null, 25885 buttonTagInScope: null, 25886 nobrTagInScope: null, 25887 pTagInButtonScope: null, 25888 listItemTagAutoclosing: null, 25889 dlItemTagAutoclosing: null 25890 }, updatedAncestorInfo$1 = function(oldInfo, tag, instance) { 25891 var ancestorInfo = _assign({}, oldInfo || emptyAncestorInfo), info = { 25892 tag: tag, 25893 instance: instance 25894 }; 25895 return -1 !== inScopeTags.indexOf(tag) && (ancestorInfo.aTagInScope = null, ancestorInfo.buttonTagInScope = null, 25896 ancestorInfo.nobrTagInScope = null), -1 !== buttonScopeTags.indexOf(tag) && (ancestorInfo.pTagInButtonScope = null), 25897 -1 !== specialTags.indexOf(tag) && "address" !== tag && "div" !== tag && "p" !== tag && (ancestorInfo.listItemTagAutoclosing = null, 25898 ancestorInfo.dlItemTagAutoclosing = null), ancestorInfo.current = info, "form" === tag && (ancestorInfo.formTag = info), 25899 "a" === tag && (ancestorInfo.aTagInScope = info), "button" === tag && (ancestorInfo.buttonTagInScope = info), 25900 "nobr" === tag && (ancestorInfo.nobrTagInScope = info), "p" === tag && (ancestorInfo.pTagInButtonScope = info), 25901 "li" === tag && (ancestorInfo.listItemTagAutoclosing = info), "dd" !== tag && "dt" !== tag || (ancestorInfo.dlItemTagAutoclosing = info), 25902 ancestorInfo; 25903 }, isTagValidWithParent = function(tag, parentTag) { 25904 switch (parentTag) { 25905 case "select": 25906 return "option" === tag || "optgroup" === tag || "#text" === tag; 25907 25908 case "optgroup": 25909 return "option" === tag || "#text" === tag; 25910 25911 case "option": 25912 return "#text" === tag; 25913 25914 case "tr": 25915 return "th" === tag || "td" === tag || "style" === tag || "script" === tag || "template" === tag; 25916 25917 case "tbody": 25918 case "thead": 25919 case "tfoot": 25920 return "tr" === tag || "style" === tag || "script" === tag || "template" === tag; 25921 25922 case "colgroup": 25923 return "col" === tag || "template" === tag; 25924 25925 case "table": 25926 return "caption" === tag || "colgroup" === tag || "tbody" === tag || "tfoot" === tag || "thead" === tag || "style" === tag || "script" === tag || "template" === tag; 25927 25928 case "head": 25929 return "base" === tag || "basefont" === tag || "bgsound" === tag || "link" === tag || "meta" === tag || "title" === tag || "noscript" === tag || "noframes" === tag || "style" === tag || "script" === tag || "template" === tag; 25930 25931 case "html": 25932 return "head" === tag || "body" === tag; 25933 25934 case "#document": 25935 return "html" === tag; 25936 } 25937 switch (tag) { 25938 case "h1": 25939 case "h2": 25940 case "h3": 25941 case "h4": 25942 case "h5": 25943 case "h6": 25944 return "h1" !== parentTag && "h2" !== parentTag && "h3" !== parentTag && "h4" !== parentTag && "h5" !== parentTag && "h6" !== parentTag; 25945 25946 case "rp": 25947 case "rt": 25948 return -1 === impliedEndTags.indexOf(parentTag); 25949 25950 case "body": 25951 case "caption": 25952 case "col": 25953 case "colgroup": 25954 case "frame": 25955 case "head": 25956 case "html": 25957 case "tbody": 25958 case "td": 25959 case "tfoot": 25960 case "th": 25961 case "thead": 25962 case "tr": 25963 return null == parentTag; 25964 } 25965 return !0; 25966 }, findInvalidAncestorForTag = function(tag, ancestorInfo) { 25967 switch (tag) { 25968 case "address": 25969 case "article": 25970 case "aside": 25971 case "blockquote": 25972 case "center": 25973 case "details": 25974 case "dialog": 25975 case "dir": 25976 case "div": 25977 case "dl": 25978 case "fieldset": 25979 case "figcaption": 25980 case "figure": 25981 case "footer": 25982 case "header": 25983 case "hgroup": 25984 case "main": 25985 case "menu": 25986 case "nav": 25987 case "ol": 25988 case "p": 25989 case "section": 25990 case "summary": 25991 case "ul": 25992 case "pre": 25993 case "listing": 25994 case "table": 25995 case "hr": 25996 case "xmp": 25997 case "h1": 25998 case "h2": 25999 case "h3": 26000 case "h4": 26001 case "h5": 26002 case "h6": 26003 return ancestorInfo.pTagInButtonScope; 26004 26005 case "form": 26006 return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope; 26007 26008 case "li": 26009 return ancestorInfo.listItemTagAutoclosing; 26010 26011 case "dd": 26012 case "dt": 26013 return ancestorInfo.dlItemTagAutoclosing; 26014 26015 case "button": 26016 return ancestorInfo.buttonTagInScope; 26017 26018 case "a": 26019 return ancestorInfo.aTagInScope; 26020 26021 case "nobr": 26022 return ancestorInfo.nobrTagInScope; 26023 } 26024 return null; 26025 }, didWarn = {}; 26026 validateDOMNesting = function(childTag, childText, ancestorInfo) { 26027 ancestorInfo = ancestorInfo || emptyAncestorInfo; 26028 var parentInfo = ancestorInfo.current, parentTag = parentInfo && parentInfo.tag; 26029 null != childText && (null != childTag && warning(!1, "validateDOMNesting: when childText is passed, childTag should be null"), 26030 childTag = "#text"); 26031 var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo, invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo), invalidParentOrAncestor = invalidParent || invalidAncestor; 26032 if (invalidParentOrAncestor) { 26033 var ancestorTag = invalidParentOrAncestor.tag, addendum = getCurrentFiberStackAddendum$5(), warnKey = !!invalidParent + "|" + childTag + "|" + ancestorTag + "|" + addendum; 26034 if (!didWarn[warnKey]) { 26035 didWarn[warnKey] = !0; 26036 var tagDisplayName = childTag, whitespaceInfo = ""; 26037 if ("#text" === childTag ? /\S/.test(childText) ? tagDisplayName = "Text nodes" : (tagDisplayName = "Whitespace text nodes", 26038 whitespaceInfo = " Make sure you don't have any extra whitespace between tags on each line of your source code.") : tagDisplayName = "<" + childTag + ">", 26039 invalidParent) { 26040 var info = ""; 26041 "table" === ancestorTag && "tr" === childTag && (info += " Add a <tbody> to your code to match the DOM tree generated by the browser."), 26042 warning(!1, "validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s%s", tagDisplayName, ancestorTag, whitespaceInfo, info, addendum); 26043 } else warning(!1, "validateDOMNesting(...): %s cannot appear as a descendant of <%s>.%s", tagDisplayName, ancestorTag, addendum); 26044 } 26045 } 26046 }, validateDOMNesting.updatedAncestorInfo = updatedAncestorInfo$1; 26047 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; 26048 SUPPRESS_HYDRATION_WARNING = "suppressHydrationWarning"; 26049 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) { 26050 return "⚛ " + markName; 26051 }, formatLabel = function(label, warning$$1) { 26052 return (warning$$1 ? "⛔ " : "⚛ ") + label + (warning$$1 ? " Warning: " + warning$$1 : ""); 26053 }, beginMark = function(markName) { 26054 performance.mark(formatMarkName(markName)); 26055 }, clearMark = function(markName) { 26056 performance.clearMarks(formatMarkName(markName)); 26057 }, endMark = function(label, markName, warning$$1) { 26058 var formattedMarkName = formatMarkName(markName), formattedLabel = formatLabel(label, warning$$1); 26059 try { 26060 performance.measure(formattedLabel, formattedMarkName); 26061 } catch (err) {} 26062 performance.clearMarks(formattedMarkName), performance.clearMeasures(formattedLabel); 26063 }, getFiberMarkName = function(label, debugID) { 26064 return label + " (#" + debugID + ")"; 26065 }, getFiberLabel = function(componentName, isMounted, phase) { 26066 return null === phase ? componentName + " [" + (isMounted ? "update" : "mount") + "]" : componentName + "." + phase; 26067 }, beginFiberMark = function(fiber, phase) { 26068 var componentName = getComponentName(fiber) || "Unknown", debugID = fiber._debugID, isMounted = null !== fiber.alternate, label = getFiberLabel(componentName, isMounted, phase); 26069 if (isCommitting && labelsInCurrentCommit.has(label)) return !1; 26070 labelsInCurrentCommit.add(label); 26071 var markName = getFiberMarkName(label, debugID); 26072 return beginMark(markName), !0; 26073 }, clearFiberMark = function(fiber, phase) { 26074 var componentName = getComponentName(fiber) || "Unknown", debugID = fiber._debugID, isMounted = null !== fiber.alternate, label = getFiberLabel(componentName, isMounted, phase), markName = getFiberMarkName(label, debugID); 26075 clearMark(markName); 26076 }, endFiberMark = function(fiber, phase, warning$$1) { 26077 var componentName = getComponentName(fiber) || "Unknown", debugID = fiber._debugID, isMounted = null !== fiber.alternate, label = getFiberLabel(componentName, isMounted, phase), markName = getFiberMarkName(label, debugID); 26078 endMark(label, markName, warning$$1); 26079 }, shouldIgnoreFiber = function(fiber) { 26080 switch (fiber.tag) { 26081 case HostRoot: 26082 case HostComponent: 26083 case HostText: 26084 case HostPortal: 26085 case Fragment: 26086 case ContextProvider: 26087 case ContextConsumer: 26088 case Mode: 26089 return !0; 26090 26091 default: 26092 return !1; 26093 } 26094 }, clearPendingPhaseMeasurement = function() { 26095 null !== currentPhase && null !== currentPhaseFiber && clearFiberMark(currentPhaseFiber, currentPhase), 26096 currentPhaseFiber = null, currentPhase = null, hasScheduledUpdateInCurrentPhase = !1; 26097 }, pauseTimers = function() { 26098 for (var fiber = currentFiber; fiber; ) fiber._debugIsCurrentlyTiming && endFiberMark(fiber, null, null), 26099 fiber = fiber.return; 26100 }, resumeTimersRecursively = function(fiber) { 26101 null !== fiber.return && resumeTimersRecursively(fiber.return), fiber._debugIsCurrentlyTiming && beginFiberMark(fiber, null); 26102 }, resumeTimers = function() { 26103 null !== currentFiber && resumeTimersRecursively(currentFiber); 26104 }, valueStack = [], fiberStack = void 0; 26105 fiberStack = []; 26106 var index = -1, warnedAboutMissingGetChildContext = void 0; 26107 warnedAboutMissingGetChildContext = {}; 26108 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; 26109 hasBadMapPolyfill = !1; 26110 try { 26111 var nonExtensibleObject = Object.preventExtensions({}), testMap = new Map([ [ nonExtensibleObject, null ] ]), testSet = new Set([ nonExtensibleObject ]); 26112 testMap.set(0, 0), testSet.add(0); 26113 } catch (e) { 26114 hasBadMapPolyfill = !0; 26115 } 26116 var debugCounter = void 0; 26117 debugCounter = 1; 26118 var createFiber = function(tag, pendingProps, key, mode) { 26119 return new FiberNode(tag, pendingProps, key, mode); 26120 }, onCommitFiberRoot = null, onCommitFiberUnmount = null, hasLoggedError = !1, lowPriorityWarning = function() {}, printWarning = function(format) { 26121 for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) args[_key - 1] = arguments[_key]; 26122 var argIndex = 0, message = "Warning: " + format.replace(/%s/g, function() { 26123 return args[argIndex++]; 26124 }); 26125 "undefined" != typeof console && console.warn(message); 26126 try { 26127 throw new Error(message); 26128 } catch (x) {} 26129 }; 26130 lowPriorityWarning = function(condition, format) { 26131 if (void 0 === format) throw new Error("`)) + ("`" + (`warning(condition, format, ...args)` + "`"))) + ((` requires a warning message argument"); 26132 if (!condition) { 26133 for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) args[_key2 - 2] = arguments[_key2]; 26134 printWarning.apply(void 0, [ format ].concat(args)); 26135 } 26136 }; 26137 var lowPriorityWarning$1 = lowPriorityWarning, ReactStrictModeWarnings = { 26138 discardPendingWarnings: function() {}, 26139 flushPendingDeprecationWarnings: function() {}, 26140 flushPendingUnsafeLifecycleWarnings: function() {}, 26141 recordDeprecationWarnings: function(fiber, instance) {}, 26142 recordUnsafeLifecycleWarnings: function(fiber, instance) {}, 26143 recordLegacyContextWarning: function(fiber, instance) {}, 26144 flushLegacyContextWarning: function() {} 26145 }, LIFECYCLE_SUGGESTIONS = { 26146 UNSAFE_componentWillMount: "componentDidMount", 26147 UNSAFE_componentWillReceiveProps: "static getDerivedStateFromProps", 26148 UNSAFE_componentWillUpdate: "componentDidUpdate" 26149 }, pendingComponentWillMountWarnings = [], pendingComponentWillReceivePropsWarnings = [], pendingComponentWillUpdateWarnings = [], pendingUnsafeLifecycleWarnings = new Map(), pendingLegacyContextWarning = new Map(), didWarnAboutDeprecatedLifecycles = new Set(), didWarnAboutUnsafeLifecycles = new Set(), didWarnAboutLegacyContext = new Set(), setToSortedString = function(set) { 26150 var array = []; 26151 return set.forEach(function(value) { 26152 array.push(value); 26153 }), array.sort().join(", "); 26154 }; 26155 ReactStrictModeWarnings.discardPendingWarnings = function() { 26156 pendingComponentWillMountWarnings = [], pendingComponentWillReceivePropsWarnings = [], 26157 pendingComponentWillUpdateWarnings = [], pendingUnsafeLifecycleWarnings = new Map(), 26158 pendingLegacyContextWarning = new Map(); 26159 }, ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function() { 26160 pendingUnsafeLifecycleWarnings.forEach(function(lifecycleWarningsMap, strictRoot) { 26161 var lifecyclesWarningMesages = []; 26162 if (Object.keys(lifecycleWarningsMap).forEach(function(lifecycle) { 26163 var lifecycleWarnings = lifecycleWarningsMap[lifecycle]; 26164 if (lifecycleWarnings.length > 0) { 26165 var componentNames = new Set(); 26166 lifecycleWarnings.forEach(function(fiber) { 26167 componentNames.add(getComponentName(fiber) || "Component"), didWarnAboutUnsafeLifecycles.add(fiber.type); 26168 }); 26169 var formatted = lifecycle.replace("UNSAFE_", ""), suggestion = LIFECYCLE_SUGGESTIONS[lifecycle], sortedComponentNames = setToSortedString(componentNames); 26170 lifecyclesWarningMesages.push(formatted + ": Please update the following components to use " + suggestion + " instead: " + sortedComponentNames); 26171 } 26172 }), lifecyclesWarningMesages.length > 0) { 26173 var strictRootComponentStack = getStackAddendumByWorkInProgressFiber(strictRoot); 26174 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)); 26175 } 26176 }), pendingUnsafeLifecycleWarnings = new Map(); 26177 }; 26178 var findStrictRoot = function(fiber) { 26179 for (var maybeStrictRoot = null, node = fiber; null !== node; ) node.mode & StrictMode && (maybeStrictRoot = node), 26180 node = node.return; 26181 return maybeStrictRoot; 26182 }; 26183 ReactStrictModeWarnings.flushPendingDeprecationWarnings = function() { 26184 if (pendingComponentWillMountWarnings.length > 0) { 26185 var uniqueNames = new Set(); 26186 pendingComponentWillMountWarnings.forEach(function(fiber) { 26187 uniqueNames.add(getComponentName(fiber) || "Component"), didWarnAboutDeprecatedLifecycles.add(fiber.type); 26188 }); 26189 var sortedNames = setToSortedString(uniqueNames); 26190 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”), 26191 pendingComponentWillMountWarnings = []; 26192 } 26193 if (pendingComponentWillReceivePropsWarnings.length > 0) { 26194 var _uniqueNames = new Set(); 26195 pendingComponentWillReceivePropsWarnings.forEach(function(fiber) { 26196 _uniqueNames.add(getComponentName(fiber) || "Component"), didWarnAboutDeprecatedLifecycles.add(fiber.type); 26197 }); 26198 var _sortedNames = setToSortedString(_uniqueNames); 26199 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异步组件生命周期挂钩,“排序名称”, 26200 pendingComponentWillReceivePropsWarnings = []; 26201 } 26202 if (pendingComponentWillUpdateWarnings.length > 0) { 26203 var _uniqueNames2 = new Set(); 26204 pendingComponentWillUpdateWarnings.forEach(function(fiber) { 26205 _uniqueNames2.add(getComponentName(fiber) || "Component"), didWarnAboutDeprecatedLifecycles.add(fiber.type); 26206 }); 26207 var _sortedNames2 = setToSortedString(_uniqueNames2); 26208 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”, 26209 pendingComponentWillUpdateWarnings = []; 26210 } 26211 }, ReactStrictModeWarnings.recordDeprecationWarnings = function(fiber, instance) { 26212 didWarnAboutDeprecatedLifecycles.has(fiber.type) || ("function" == typeof instance.componentWillMount && !0 !== instance.componentWillMount.__suppressDeprecationWarning && pendingComponentWillMountWarnings.push(fiber), 26213 "function" == typeof instance.componentWillReceiveProps && !0 !== instance.componentWillReceiveProps.__suppressDeprecationWarning && pendingComponentWillReceivePropsWarnings.push(fiber), 26214 "function" == typeof instance.componentWillUpdate && !0 !== instance.componentWillUpdate.__suppressDeprecationWarning && pendingComponentWillUpdateWarnings.push(fiber)); 26215 }, ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function(fiber, instance) { 26216 var strictRoot = findStrictRoot(fiber); 26217 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."); 26218 if (!didWarnAboutUnsafeLifecycles.has(fiber.type)) { 26219 var warningsForRoot = void 0; 26220 pendingUnsafeLifecycleWarnings.has(strictRoot) ? warningsForRoot = pendingUnsafeLifecycleWarnings.get(strictRoot) : (warningsForRoot = { 26221 UNSAFE_componentWillMount: [], 26222 UNSAFE_componentWillReceiveProps: [], 26223 UNSAFE_componentWillUpdate: [] 26224 }, pendingUnsafeLifecycleWarnings.set(strictRoot, warningsForRoot)); 26225 var unsafeLifecycles = []; 26226 ("function" == typeof instance.componentWillMount && !0 !== instance.componentWillMount.__suppressDeprecationWarning || "function" == typeof instance.UNSAFE_componentWillMount) && unsafeLifecycles.push("UNSAFE_componentWillMount"), 26227 ("function" == typeof instance.componentWillReceiveProps && !0 !== instance.componentWillReceiveProps.__suppressDeprecationWarning || "function" == typeof instance.UNSAFE_componentWillReceiveProps) && unsafeLifecycles.push("UNSAFE_componentWillReceiveProps"), 26228 ("function" == typeof instance.componentWillUpdate && !0 !== instance.componentWillUpdate.__suppressDeprecationWarning || "function" == typeof instance.UNSAFE_componentWillUpdate) && unsafeLifecycles.push("UNSAFE_componentWillUpdate"), 26229 unsafeLifecycles.length > 0 && unsafeLifecycles.forEach(function(lifecycle) { 26230 warningsForRoot[lifecycle].push(fiber); 26231 }); 26232 } 26233 }, ReactStrictModeWarnings.recordLegacyContextWarning = function(fiber, instance) { 26234 var strictRoot = findStrictRoot(fiber); 26235 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."); 26236 if (!didWarnAboutLegacyContext.has(fiber.type)) { 26237 var warningsForRoot = pendingLegacyContextWarning.get(strictRoot); 26238 (null != fiber.type.contextTypes || null != fiber.type.childContextTypes || null !== instance && "function" == typeof instance.getChildContext) && (void 0 === warningsForRoot && (warningsForRoot = [], 26239 pendingLegacyContextWarning.set(strictRoot, warningsForRoot)), warningsForRoot.push(fiber)); 26240 } 26241 }, ReactStrictModeWarnings.flushLegacyContextWarning = function() { 26242 pendingLegacyContextWarning.forEach(function(fiberArray, strictRoot) { 26243 var uniqueNames = new Set(); 26244 fiberArray.forEach(function(fiber) { 26245 uniqueNames.add(getComponentName(fiber) || "Component"), didWarnAboutLegacyContext.add(fiber.type); 26246 }); 26247 var sortedNames = setToSortedString(uniqueNames), strictRootComponentStack = getStackAddendumByWorkInProgressFiber(strictRoot); 26248 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); 26249 }); 26250 }; 26251 var ReactFiberInstrumentation = { 26252 debugTool: null 26253 }, ReactFiberInstrumentation_1 = ReactFiberInstrumentation, UpdateState = 0, ReplaceState = 1, ForceUpdate = 2, CaptureUpdate = 3, hasForceUpdate = !1, didWarnUpdateInsideUpdate = void 0, currentlyProcessingQueue = void 0, resetCurrentlyProcessingQueue = void 0; 26254 didWarnUpdateInsideUpdate = !1, currentlyProcessingQueue = null, resetCurrentlyProcessingQueue = function() { 26255 currentlyProcessingQueue = null; 26256 }; 26257 var providerCursor = createCursor(null), valueCursor = createCursor(null), changedBitsCursor = createCursor(0), rendererSigil = void 0; 26258 rendererSigil = {}; 26259 var NO_CONTEXT = {}, contextStackCursor$1 = createCursor(NO_CONTEXT), contextFiberStackCursor = createCursor(NO_CONTEXT), rootInstanceStackCursor = createCursor(NO_CONTEXT), commitTime = 0, fiberStack$1 = void 0; 26260 fiberStack$1 = []; 26261 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; 26262 didWarnAboutStateAssignmentForComponent = new Set(), didWarnAboutUninitializedState = new Set(), 26263 didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set(), didWarnAboutLegacyLifecyclesAndDerivedState = new Set(), 26264 didWarnAboutUndefinedDerivedState = new Set(); 26265 var didWarnOnInvalidCallback = new Set(); 26266 warnOnInvalidCallback$1 = function(callback, callerName) { 26267 if (null !== callback && "function" != typeof callback) { 26268 var key = callerName + "_" + callback; 26269 didWarnOnInvalidCallback.has(key) || (didWarnOnInvalidCallback.add(key), warning(!1, "%s(...): Expected the last optional ` + ("`" + `callback`)) + ("`" + (` argument to be a function. Instead received: %s.", callerName, callback)); 26270 } 26271 }, warnOnUndefinedDerivedState = function(workInProgress, partialState) { 26272 if (void 0 === partialState) { 26273 var componentName = getComponentName(workInProgress) || "Component"; 26274 didWarnAboutUndefinedDerivedState.has(componentName) || (didWarnAboutUndefinedDerivedState.add(componentName), 26275 warning(!1, "%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.", componentName)); 26276 } 26277 }, Object.defineProperty(fakeInternalInstance, "_processChildContext", { 26278 enumerable: !1, 26279 value: function() { 26280 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)."); 26281 } 26282 }), Object.freeze(fakeInternalInstance); 26283 var classComponentUpdater = { 26284 isMounted: isMounted, 26285 enqueueSetState: function(inst, payload, callback) { 26286 var fiber = get(inst), currentTime = recalculateCurrentTime(), expirationTime = computeExpirationForFiber(currentTime, fiber), update = createUpdate(expirationTime); 26287 update.payload = payload, void 0 !== callback && null !== callback && (warnOnInvalidCallback$1(callback, "setState"), 26288 update.callback = callback), enqueueUpdate(fiber, update, expirationTime), scheduleWork$1(fiber, expirationTime); 26289 }, 26290 enqueueReplaceState: function(inst, payload, callback) { 26291 var fiber = get(inst), currentTime = recalculateCurrentTime(), expirationTime = computeExpirationForFiber(currentTime, fiber), update = createUpdate(expirationTime); 26292 update.tag = ReplaceState, update.payload = payload, void 0 !== callback && null !== callback && (warnOnInvalidCallback$1(callback, "replaceState"), 26293 update.callback = callback), enqueueUpdate(fiber, update, expirationTime), scheduleWork$1(fiber, expirationTime); 26294 }, 26295 enqueueForceUpdate: function(inst, callback) { 26296 var fiber = get(inst), currentTime = recalculateCurrentTime(), expirationTime = computeExpirationForFiber(currentTime, fiber), update = createUpdate(expirationTime); 26297 update.tag = ForceUpdate, void 0 !== callback && null !== callback && (warnOnInvalidCallback$1(callback, "forceUpdate"), 26298 update.callback = callback), enqueueUpdate(fiber, update, expirationTime), scheduleWork$1(fiber, expirationTime); 26299 } 26300 }, getCurrentFiberStackAddendum$7 = ReactDebugCurrentFiber.getCurrentFiberStackAddendum, didWarnAboutMaps = void 0, didWarnAboutStringRefInStrictMode = void 0, ownerHasKeyUseWarning = void 0, ownerHasFunctionTypeWarning = void 0, warnForMissingKey = function(child) {}; 26301 didWarnAboutMaps = !1, didWarnAboutStringRefInStrictMode = {}, ownerHasKeyUseWarning = {}, 26302 ownerHasFunctionTypeWarning = {}, warnForMissingKey = function(child) { 26303 if (null !== child && "object" == typeof child && child._store && !child._store.validated && null == child.key) { 26304 "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."), 26305 child._store.validated = !0; 26306 var currentComponentErrorInfo = 'Each child in an array or iterator should have a unique "key" prop. See https://fb.me/react-warning-keys了解更多信息。'+(getcurrentfiberstackEngagement$7()“”); 26307 ownerHasKeyUseWarning[currentComponentErrorInfo] || (ownerHasKeyUseWarning[currentComponentErrorInfo] = !0, 26308 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()); 26309 } 26310 }; 26311 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; 26312 didWarnAboutBadClass = {}, didWarnAboutGetDerivedStateOnFunctionalComponent = {}, 26313 didWarnAboutStatelessRefs = {}; 26314 var updateHostContainer = void 0, updateHostComponent$1 = void 0, updateHostText$1 = void 0; 26315 if (supportsMutation) updateHostContainer = function(workInProgress) {}, updateHostComponent$1 = function(current, workInProgress, updatePayload, type, oldProps, newProps, rootContainerInstance, currentHostContext) { 26316 workInProgress.updateQueue = updatePayload, updatePayload && markUpdate(workInProgress); 26317 }, updateHostText$1 = function(current, workInProgress, oldText, newText) { 26318 oldText !== newText && markUpdate(workInProgress); 26319 }; else if (supportsPersistence) { 26320 var appendAllChildrenToContainer = function(containerChildSet, workInProgress) { 26321 for (var node = workInProgress.child; null !== node; ) { 26322 if (node.tag === HostComponent || node.tag === HostText) appendChildToContainerChildSet(containerChildSet, node.stateNode); else if (node.tag === HostPortal) ; else if (null !== node.child) { 26323 node.child.return = node, node = node.child; 26324 continue; 26325 } 26326 if (node === workInProgress) return; 26327 for (;null === node.sibling; ) { 26328 if (null === node.return || node.return === workInProgress) return; 26329 node = node.return; 26330 } 26331 node.sibling.return = node.return, node = node.sibling; 26332 } 26333 }; 26334 updateHostContainer = function(workInProgress) { 26335 var portalOrRoot = workInProgress.stateNode; 26336 if (null === workInProgress.firstEffect) ; else { 26337 var container = portalOrRoot.containerInfo, newChildSet = createContainerChildSet(container); 26338 appendAllChildrenToContainer(newChildSet, workInProgress), portalOrRoot.pendingChildren = newChildSet, 26339 markUpdate(workInProgress), finalizeContainerChildren(container, newChildSet); 26340 } 26341 }, updateHostComponent$1 = function(current, workInProgress, updatePayload, type, oldProps, newProps, rootContainerInstance, currentHostContext) { 26342 var childrenUnchanged = null === workInProgress.firstEffect, currentInstance = current.stateNode; 26343 if (childrenUnchanged && null === updatePayload) workInProgress.stateNode = currentInstance; else { 26344 var recyclableInstance = workInProgress.stateNode, newInstance = cloneInstance(currentInstance, updatePayload, type, oldProps, newProps, workInProgress, childrenUnchanged, recyclableInstance); 26345 finalizeInitialChildren(newInstance, type, newProps, rootContainerInstance, currentHostContext) && markUpdate(workInProgress), 26346 workInProgress.stateNode = newInstance, childrenUnchanged ? markUpdate(workInProgress) : appendAllChildren(newInstance, workInProgress); 26347 } 26348 }, updateHostText$1 = function(current, workInProgress, oldText, newText) { 26349 if (oldText !== newText) { 26350 var rootContainerInstance = getRootHostContainer(), currentHostContext = getHostContext(); 26351 workInProgress.stateNode = createTextInstance(newText, rootContainerInstance, currentHostContext, workInProgress), 26352 markUpdate(workInProgress); 26353 } 26354 }; 26355 } else updateHostContainer = function(workInProgress) {}, updateHostComponent$1 = function(current, workInProgress, updatePayload, type, oldProps, newProps, rootContainerInstance, currentHostContext) {}, 26356 updateHostText$1 = function(current, workInProgress, oldText, newText) {}; 26357 var invokeGuardedCallback$3 = ReactErrorUtils.invokeGuardedCallback, hasCaughtError$1 = ReactErrorUtils.hasCaughtError, clearCaughtError$1 = ReactErrorUtils.clearCaughtError, didWarnAboutUndefinedSnapshotBeforeUpdate = null; 26358 didWarnAboutUndefinedSnapshotBeforeUpdate = new Set(); 26359 var callComponentWillUnmountWithTimer = function(current, instance) { 26360 startPhaseTimer(current, "componentWillUnmount"), instance.props = current.memoizedProps, 26361 instance.state = current.memoizedState, instance.componentWillUnmount(), stopPhaseTimer(); 26362 }, invokeGuardedCallback$2 = ReactErrorUtils.invokeGuardedCallback, hasCaughtError = ReactErrorUtils.hasCaughtError, clearCaughtError = ReactErrorUtils.clearCaughtError, didWarnAboutStateTransition = void 0, didWarnSetStateChildContext = void 0, warnAboutUpdateOnUnmounted = void 0, warnAboutInvalidUpdates = void 0; 26363 didWarnAboutStateTransition = !1, didWarnSetStateChildContext = !1; 26364 var didWarnStateUpdateForUnmountedComponent = {}; 26365 warnAboutUpdateOnUnmounted = function(fiber) { 26366 var componentName = getComponentName(fiber) || "ReactClass"; 26367 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)), 26368 didWarnStateUpdateForUnmountedComponent[componentName] = !0); 26369 }, warnAboutInvalidUpdates = function(instance) { 26370 switch (ReactDebugCurrentFiber.phase) { 26371 case "getChildContext": 26372 if (didWarnSetStateChildContext) return; 26373 warning(!1, "setState(...): Cannot call setState() inside getChildContext()"), didWarnSetStateChildContext = !0; 26374 break; 26375 26376 case "render": 26377 if (didWarnAboutStateTransition) return; 26378 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` + "`"))) + ((`."), 26379 didWarnAboutStateTransition = !0; 26380 } 26381 }; 26382 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; 26383 replayFailedUnitOfWorkWithInvokeGuardedCallback && (stashedWorkInProgressProperties = null, 26384 isReplayingFailedUnitOfWork = !1, originalReplayError = null, replayUnitOfWork = function(failedUnitOfWork, thrownValue, isAsync) { 26385 if (null === thrownValue || "object" != typeof thrownValue || "function" != typeof thrownValue.then) { 26386 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."); 26387 switch (assignFiberPropertiesInDEV(failedUnitOfWork, stashedWorkInProgressProperties), 26388 failedUnitOfWork.tag) { 26389 case HostRoot: 26390 popHostContainer(failedUnitOfWork), popTopLevelContextObject(failedUnitOfWork); 26391 break; 26392 26393 case HostComponent: 26394 popHostContext(failedUnitOfWork); 26395 break; 26396 26397 case ClassComponent: 26398 popContextProvider(failedUnitOfWork); 26399 break; 26400 26401 case HostPortal: 26402 popHostContainer(failedUnitOfWork); 26403 break; 26404 26405 case ContextProvider: 26406 popProvider(failedUnitOfWork); 26407 } 26408 isReplayingFailedUnitOfWork = !0, originalReplayError = thrownValue, invokeGuardedCallback$2(null, workLoop, null, isAsync), 26409 isReplayingFailedUnitOfWork = !1, originalReplayError = null, hasCaughtError() ? (clearCaughtError(), 26410 enableProfilerTimer && stopBaseRenderTimerIfRunning()) : nextUnitOfWork = failedUnitOfWork; 26411 } 26412 }, rethrowOriginalError = function() { 26413 throw originalReplayError; 26414 }); 26415 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; 26416 didWarnAboutNestedUpdates = !1; 26417 var DOMRenderer = Object.freeze({ 26418 updateContainerAtExpirationTime: updateContainerAtExpirationTime, 26419 createContainer: createContainer, 26420 updateContainer: updateContainer, 26421 flushRoot: flushRoot, 26422 requestWork: requestWork, 26423 computeUniqueAsyncExpiration: computeUniqueAsyncExpiration, 26424 batchedUpdates: batchedUpdates$1, 26425 unbatchedUpdates: unbatchedUpdates, 26426 deferredUpdates: deferredUpdates, 26427 syncUpdates: syncUpdates, 26428 interactiveUpdates: interactiveUpdates$1, 26429 flushInteractiveUpdates: flushInteractiveUpdates$1, 26430 flushControlled: flushControlled, 26431 flushSync: flushSync, 26432 getPublicRootInstance: getPublicRootInstance, 26433 findHostInstance: findHostInstance, 26434 findHostInstanceWithNoPortals: findHostInstanceWithNoPortals, 26435 injectIntoDevTools: injectIntoDevTools 26436 }), topLevelUpdateWarnings = void 0, warnOnInvalidCallback = void 0, didWarnAboutUnstableCreatePortal = !1; 26437 "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”), 26438 topLevelUpdateWarnings = function(container) { 26439 if (container._reactRootContainer && container.nodeType !== COMMENT_NODE) { 26440 var hostInstance = findHostInstanceWithNoPortals(container._reactRootContainer._internalRoot.current); 26441 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."); 26442 } 26443 var isRootRenderedBySomeReact = !!container._reactRootContainer, rootEl = getReactRootElementInContainer(container); 26444 !(!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."), 26445 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."); 26446 }, warnOnInvalidCallback = function(callback, callerName) { 26447 null !== callback && "function" != typeof callback && warning(!1, "%s(...): Expected the last optional ` + ("`" + `callback`)) + ("`" + (` argument to be a function. Instead received: %s.", callerName, callback); 26448 }, injection$2.injectFiberControlledHostComponent(ReactDOMFiberComponent), ReactBatch.prototype.render = function(children) { 26449 this._defer || invariant(!1, "batch.render: Cannot render a batch that already committed."), 26450 this._hasChildren = !0, this._children = children; 26451 var internalRoot = this._root._internalRoot, expirationTime = this._expirationTime, work = new ReactWork(); 26452 return updateContainerAtExpirationTime(children, internalRoot, null, expirationTime, work._onCommit), 26453 work; 26454 }, ReactBatch.prototype.then = function(onComplete) { 26455 if (this._didComplete) return void onComplete(); 26456 var callbacks = this._callbacks; 26457 null === callbacks && (callbacks = this._callbacks = []), callbacks.push(onComplete); 26458 }, ReactBatch.prototype.commit = function() { 26459 var internalRoot = this._root._internalRoot, firstBatch = internalRoot.firstBatch; 26460 if (this._defer && null !== firstBatch || invariant(!1, "batch.commit: Cannot commit a batch multiple times."), 26461 !this._hasChildren) return this._next = null, void (this._defer = !1); 26462 var expirationTime = this._expirationTime; 26463 if (firstBatch !== this) { 26464 this._hasChildren && (expirationTime = this._expirationTime = firstBatch._expirationTime, 26465 this.render(this._children)); 26466 for (var previous = null, batch = firstBatch; batch !== this; ) previous = batch, 26467 batch = batch._next; 26468 null === previous && invariant(!1, "batch.commit: Cannot commit a batch multiple times."), 26469 previous._next = batch._next, this._next = firstBatch, firstBatch = internalRoot.firstBatch = this; 26470 } 26471 this._defer = !1, flushRoot(internalRoot, expirationTime); 26472 var next = this._next; 26473 this._next = null, null !== (firstBatch = internalRoot.firstBatch = next) && firstBatch._hasChildren && firstBatch.render(firstBatch._children); 26474 }, ReactBatch.prototype._onComplete = function() { 26475 if (!this._didComplete) { 26476 this._didComplete = !0; 26477 var callbacks = this._callbacks; 26478 if (null !== callbacks) for (var i = 0; i < callbacks.length; i++) { 26479 var _callback = callbacks[i]; 26480 _callback(); 26481 } 26482 } 26483 }, ReactWork.prototype.then = function(onCommit) { 26484 if (this._didCommit) return void onCommit(); 26485 var callbacks = this._callbacks; 26486 null === callbacks && (callbacks = this._callbacks = []), callbacks.push(onCommit); 26487 }, ReactWork.prototype._onCommit = function() { 26488 if (!this._didCommit) { 26489 this._didCommit = !0; 26490 var callbacks = this._callbacks; 26491 if (null !== callbacks) for (var i = 0; i < callbacks.length; i++) { 26492 var _callback2 = callbacks[i]; 26493 "function" != typeof _callback2 && invariant(!1, "Invalid argument passed as callback. Expected a function. Instead received: %s", _callback2), 26494 _callback2(); 26495 } 26496 } 26497 }, ReactRoot.prototype.render = function(children, callback) { 26498 var root = this._internalRoot, work = new ReactWork(); 26499 return callback = void 0 === callback ? null : callback, warnOnInvalidCallback(callback, "render"), 26500 null !== callback && work.then(callback), updateContainer(children, root, null, work._onCommit), 26501 work; 26502 }, ReactRoot.prototype.unmount = function(callback) { 26503 var root = this._internalRoot, work = new ReactWork(); 26504 return callback = void 0 === callback ? null : callback, warnOnInvalidCallback(callback, "render"), 26505 null !== callback && work.then(callback), updateContainer(null, root, null, work._onCommit), 26506 work; 26507 }, ReactRoot.prototype.legacy_renderSubtreeIntoContainer = function(parentComponent, children, callback) { 26508 var root = this._internalRoot, work = new ReactWork(); 26509 return callback = void 0 === callback ? null : callback, warnOnInvalidCallback(callback, "render"), 26510 null !== callback && work.then(callback), updateContainer(children, root, parentComponent, work._onCommit), 26511 work; 26512 }, ReactRoot.prototype.createBatch = function() { 26513 var batch = new ReactBatch(this), expirationTime = batch._expirationTime, internalRoot = this._internalRoot, firstBatch = internalRoot.firstBatch; 26514 if (null === firstBatch) internalRoot.firstBatch = batch, batch._next = null; else { 26515 for (var insertAfter = null, insertBefore = firstBatch; null !== insertBefore && insertBefore._expirationTime <= expirationTime; ) insertAfter = insertBefore, 26516 insertBefore = insertBefore._next; 26517 batch._next = insertBefore, null !== insertAfter && (insertAfter._next = batch); 26518 } 26519 return batch; 26520 }, injection$3.injectRenderer(DOMRenderer); 26521 var warnedAboutHydrateAPI = !1, ReactDOM = { 26522 createPortal: createPortal, 26523 findDOMNode: function(componentOrElement) { 26524 var owner = ReactCurrentOwner.current; 26525 if (null !== owner && null !== owner.stateNode) { 26526 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"), 26527 owner.stateNode._warnedAboutRefsInRender = !0; 26528 } 26529 return null == componentOrElement ? null : componentOrElement.nodeType === ELEMENT_NODE ? componentOrElement : findHostInstance(componentOrElement); 26530 }, 26531 hydrate: function(element, container, callback) { 26532 return legacyRenderSubtreeIntoContainer(null, element, container, !0, callback); 26533 }, 26534 render: function(element, container, callback) { 26535 return legacyRenderSubtreeIntoContainer(null, element, container, !1, callback); 26536 }, 26537 unstable_renderSubtreeIntoContainer: function(parentComponent, element, containerNode, callback) { 26538 return null != parentComponent && has(parentComponent) || invariant(!1, "parentComponent must be a valid React Component"), 26539 legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, !1, callback); 26540 }, 26541 unmountComponentAtNode: function(container) { 26542 if (isValidContainer(container) || invariant(!1, "unmountComponentAtNode(...): Target container is not a DOM element."), 26543 container._reactRootContainer) { 26544 var rootEl = getReactRootElementInContainer(container); 26545 return rootEl && !getInstanceFromNode$1(rootEl) && warning(!1, "unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React."), 26546 unbatchedUpdates(function() { 26547 legacyRenderSubtreeIntoContainer(null, null, container, !1, function() { 26548 container._reactRootContainer = null; 26549 }); 26550 }), !0; 26551 } 26552 var _rootEl = getReactRootElementInContainer(container), hasNonRootReactChild = !(!_rootEl || !getInstanceFromNode$1(_rootEl)), isContainerReactRoot = 1 === container.nodeType && isValidContainer(container.parentNode) && !!container.parentNode._reactRootContainer; 26553 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."), 26554 !1; 26555 }, 26556 unstable_createPortal: function() { 26557 return didWarnAboutUnstableCreatePortal || (didWarnAboutUnstableCreatePortal = !0, 26558 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.')), 26559 createPortal.apply(void 0, arguments); 26560 }, 26561 unstable_batchedUpdates: batchedUpdates$1, 26562 unstable_deferredUpdates: deferredUpdates, 26563 flushSync: flushSync, 26564 unstable_flushControlled: flushControlled, 26565 __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { 26566 EventPluginHub: EventPluginHub, 26567 EventPluginRegistry: EventPluginRegistry, 26568 EventPropagators: EventPropagators, 26569 ReactControlledComponent: ReactControlledComponent, 26570 ReactDOMComponentTree: ReactDOMComponentTree, 26571 ReactDOMEventListener: ReactDOMEventListener 26572 } 26573 }; 26574 if (ReactDOM.unstable_createRoot = function(container, options) { 26575 return new ReactRoot(container, !0, null != options && !0 === options.hydrate); 26576 }, !injectIntoDevTools({ 26577 findFiberByHostInstance: getClosestInstanceFromNode, 26578 bundleType: 1, 26579 version: "16.4.0", 26580 rendererPackageName: "react-dom" 26581 }) && ExecutionEnvironment.canUseDOM && window.top === window.self && (navigator.userAgent.indexOf("Chrome") > -1 && -1 === navigator.userAgent.indexOf("Edge") || navigator.userAgent.indexOf("Firefox") > -1)) { 26582 var protocol = window.location.protocol; 26583 /^(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”); 26584 } 26585 var ReactDOM$2 = Object.freeze({ 26586 default: ReactDOM 26587 }), ReactDOM$3 = ReactDOM$2 && ReactDOM || ReactDOM$2, reactDom = ReactDOM$3.default ? ReactDOM$3.default : ReactDOM$3; 26588 module.exports = reactDom; 26589 }(); 26590 }).call(exports, __webpack_require__(2)); 26591 }, function(module, exports, __webpack_require__) { 26592 "use strict"; 26593 function hyphenateStyleName(string) { 26594 return hyphenate(string).replace(msPattern, "-ms-"); 26595 } 26596 var hyphenate = __webpack_require__(383), msPattern = /^ms-/; 26597 module.exports = hyphenateStyleName; 26598 }, function(module, exports, __webpack_require__) { 26599 "use strict"; 26600 function hyphenate(string) { 26601 return string.replace(_uppercasePattern, "-$1").toLowerCase(); 26602 } 26603 var _uppercasePattern = /([A-Z])/g; 26604 module.exports = hyphenate; 26605 }, function(module, exports, __webpack_require__) { 26606 "use strict"; 26607 function camelizeStyleName(string) { 26608 return camelize(string.replace(msPattern, "ms-")); 26609 } 26610 var camelize = __webpack_require__(385), msPattern = /^-ms-/; 26611 module.exports = camelizeStyleName; 26612 }, function(module, exports, __webpack_require__) { 26613 "use strict"; 26614 function camelize(string) { 26615 return string.replace(_hyphenPattern, function(_, character) { 26616 return character.toUpperCase(); 26617 }); 26618 } 26619 var _hyphenPattern = /-(.)/g; 26620 module.exports = camelize; 26621 }, function(module, exports, __webpack_require__) { 26622 "use strict"; 26623 (function(process) { 26624 function _interopRequireDefault(obj) { 26625 return obj && obj.__esModule ? obj : { 26626 default: obj 26627 }; 26628 } 26629 Object.defineProperty(exports, "__esModule", { 26630 value: !0 26631 }); 26632 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) { 26633 function MuiThemeProvider(props, context) { 26634 (0, _classCallCheck3.default)(this, MuiThemeProvider); 26635 var _this = (0, _possibleConstructorReturn3.default)(this, (MuiThemeProvider.__proto__ || (0, 26636 _getPrototypeOf2.default)(MuiThemeProvider)).call(this, props, context)); 26637 return _this.broadcast = (0, _brcast2.default)(), _this.unsubscribeId = null, _this.outerTheme = null, 26638 _this.outerTheme = _themeListener2.default.initial(context), _this.broadcast.setState(_this.mergeOuterLocalTheme(_this.props.theme)), 26639 _this; 26640 } 26641 return (0, _inherits3.default)(MuiThemeProvider, _React$Component), (0, _createClass3.default)(MuiThemeProvider, [ { 26642 key: "getChildContext", 26643 value: function() { 26644 var _ref, _props = this.props, sheetsManager = _props.sheetsManager, disableStylesGeneration = _props.disableStylesGeneration, muiThemeProviderOptions = this.context.muiThemeProviderOptions || {}; 26645 return void 0 !== sheetsManager && (muiThemeProviderOptions.sheetsManager = sheetsManager), 26646 void 0 !== disableStylesGeneration && (muiThemeProviderOptions.disableStylesGeneration = disableStylesGeneration), 26647 _ref = {}, (0, _defineProperty3.default)(_ref, _themeListener.CHANNEL, this.broadcast), 26648 (0, _defineProperty3.default)(_ref, "muiThemeProviderOptions", muiThemeProviderOptions), 26649 _ref; 26650 } 26651 }, { 26652 key: "componentDidMount", 26653 value: function() { 26654 var _this2 = this; 26655 this.unsubscribeId = _themeListener2.default.subscribe(this.context, function(outerTheme) { 26656 _this2.outerTheme = outerTheme, _this2.broadcast.setState(_this2.mergeOuterLocalTheme(_this2.props.theme)); 26657 }); 26658 } 26659 }, { 26660 key: "componentWillReceiveProps", 26661 value: function(nextProps) { 26662 this.props.theme !== nextProps.theme && this.broadcast.setState(this.mergeOuterLocalTheme(nextProps.theme)); 26663 } 26664 }, { 26665 key: "componentWillUnmount", 26666 value: function() { 26667 null !== this.unsubscribeId && _themeListener2.default.unsubscribe(this.context, this.unsubscribeId); 26668 } 26669 }, { 26670 key: "mergeOuterLocalTheme", 26671 value: function(localTheme) { 26672 return "function" == typeof localTheme ? ("production" !== process.env.NODE_ENV && (0, 26673 _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")), 26674 localTheme(this.outerTheme)) : this.outerTheme ? (0, _extends3.default)({}, this.outerTheme, localTheme) : localTheme; 26675 } 26676 }, { 26677 key: "render", 26678 value: function() { 26679 return this.props.children; 26680 } 26681 } ]), MuiThemeProvider; 26682 }(_react2.default.Component); 26683 MuiThemeProvider.propTypes = "production" !== process.env.NODE_ENV ? { 26684 children: _propTypes2.default.node.isRequired, 26685 disableStylesGeneration: _propTypes2.default.bool, 26686 sheetsManager: _propTypes2.default.object, 26687 theme: _propTypes2.default.oneOfType([ _propTypes2.default.object, _propTypes2.default.func ]).isRequired 26688 } : {}, MuiThemeProvider.propTypes = "production" !== process.env.NODE_ENV ? (0, 26689 _exactProp2.default)(MuiThemeProvider.propTypes, "MuiThemeProvider") : {}, MuiThemeProvider.childContextTypes = (0, 26690 _extends3.default)({}, _themeListener2.default.contextTypes, { 26691 muiThemeProviderOptions: _propTypes2.default.object 26692 }), MuiThemeProvider.contextTypes = (0, _extends3.default)({}, _themeListener2.default.contextTypes, { 26693 muiThemeProviderOptions: _propTypes2.default.object 26694 }), exports.default = MuiThemeProvider; 26695 }).call(exports, __webpack_require__(2)); 26696 }, function(module, exports, __webpack_require__) { 26697 __webpack_require__(388), module.exports = __webpack_require__(17).Object.assign; 26698 }, function(module, exports, __webpack_require__) { 26699 var $export = __webpack_require__(19); 26700 $export($export.S + $export.F, "Object", { 26701 assign: __webpack_require__(389) 26702 }); 26703 }, function(module, exports, __webpack_require__) { 26704 "use strict"; 26705 var getKeys = __webpack_require__(76), gOPS = __webpack_require__(153), pIE = __webpack_require__(104), toObject = __webpack_require__(65), IObject = __webpack_require__(146), $assign = Object.assign; 26706 module.exports = !$assign || __webpack_require__(53)(function() { 26707 var A = {}, B = {}, S = Symbol(), K = "abcdefghijklmnopqrst"; 26708 return A[S] = 7, K.split("").forEach(function(k) { 26709 B[k] = k; 26710 }), 7 != $assign({}, A)[S] || Object.keys($assign({}, B)).join("") != K; 26711 }) ? function(target, source) { 26712 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]); 26713 return T; 26714 } : $assign; 26715 }, function(module, exports, __webpack_require__) { 26716 var toIObject = __webpack_require__(64), toLength = __webpack_require__(101), toAbsoluteIndex = __webpack_require__(391); 26717 module.exports = function(IS_INCLUDES) { 26718 return function($this, el, fromIndex) { 26719 var value, O = toIObject($this), length = toLength(O.length), index = toAbsoluteIndex(fromIndex, length); 26720 if (IS_INCLUDES && el != el) { 26721 for (;length > index; ) if ((value = O[index++]) != value) return !0; 26722 } else for (;length > index; index++) if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; 26723 return !IS_INCLUDES && -1; 26724 }; 26725 }; 26726 }, function(module, exports, __webpack_require__) { 26727 var toInteger = __webpack_require__(149), max = Math.max, min = Math.min; 26728 module.exports = function(index, length) { 26729 return index = toInteger(index), index < 0 ? max(index + length, 0) : min(index, length); 26730 }; 26731 }, function(module, exports, __webpack_require__) { 26732 __webpack_require__(393); 26733 var $Object = __webpack_require__(17).Object; 26734 module.exports = function(it, key, desc) { 26735 return $Object.defineProperty(it, key, desc); 26736 }; 26737 }, function(module, exports, __webpack_require__) { 26738 var $export = __webpack_require__(19); 26739 $export($export.S + $export.F * !__webpack_require__(25), "Object", { 26740 defineProperty: __webpack_require__(22).f 26741 }); 26742 }, function(module, exports, __webpack_require__) { 26743 __webpack_require__(395), module.exports = __webpack_require__(17).Object.getPrototypeOf; 26744 }, function(module, exports, __webpack_require__) { 26745 var toObject = __webpack_require__(65), $getPrototypeOf = __webpack_require__(227); 26746 __webpack_require__(228)("getPrototypeOf", function() { 26747 return function(it) { 26748 return $getPrototypeOf(toObject(it)); 26749 }; 26750 }); 26751 }, function(module, exports, __webpack_require__) { 26752 module.exports = { 26753 default: __webpack_require__(397), 26754 __esModule: !0 26755 }; 26756 }, function(module, exports, __webpack_require__) { 26757 __webpack_require__(155), __webpack_require__(230), module.exports = __webpack_require__(157).f("iterator"); 26758 }, function(module, exports, __webpack_require__) { 26759 var toInteger = __webpack_require__(149), defined = __webpack_require__(148); 26760 module.exports = function(TO_STRING) { 26761 return function(that, pos) { 26762 var a, b, s = String(defined(that)), i = toInteger(pos), l = s.length; 26763 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); 26764 }; 26765 }; 26766 }, function(module, exports, __webpack_require__) { 26767 "use strict"; 26768 var create = __webpack_require__(106), descriptor = __webpack_require__(75), setToStringTag = __webpack_require__(107), IteratorPrototype = {}; 26769 __webpack_require__(39)(IteratorPrototype, __webpack_require__(21)("iterator"), function() { 26770 return this; 26771 }), module.exports = function(Constructor, NAME, next) { 26772 Constructor.prototype = create(IteratorPrototype, { 26773 next: descriptor(1, next) 26774 }), setToStringTag(Constructor, NAME + " Iterator"); 26775 }; 26776 }, function(module, exports, __webpack_require__) { 26777 var dP = __webpack_require__(22), anObject = __webpack_require__(52), getKeys = __webpack_require__(76); 26778 module.exports = __webpack_require__(25) ? Object.defineProperties : function(O, Properties) { 26779 anObject(O); 26780 for (var P, keys = getKeys(Properties), length = keys.length, i = 0; length > i; ) dP.f(O, P = keys[i++], Properties[P]); 26781 return O; 26782 }; 26783 }, function(module, exports, __webpack_require__) { 26784 var document = __webpack_require__(24).document; 26785 module.exports = document && document.documentElement; 26786 }, function(module, exports, __webpack_require__) { 26787 "use strict"; 26788 var addToUnscopables = __webpack_require__(403), step = __webpack_require__(231), Iterators = __webpack_require__(77), toIObject = __webpack_require__(64); 26789 module.exports = __webpack_require__(156)(Array, "Array", function(iterated, kind) { 26790 this._t = toIObject(iterated), this._i = 0, this._k = kind; 26791 }, function() { 26792 var O = this._t, kind = this._k, index = this._i++; 26793 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] ]); 26794 }, "values"), Iterators.Arguments = Iterators.Array, addToUnscopables("keys"), addToUnscopables("values"), 26795 addToUnscopables("entries"); 26796 }, function(module, exports) { 26797 module.exports = function() {}; 26798 }, function(module, exports, __webpack_require__) { 26799 module.exports = { 26800 default: __webpack_require__(405), 26801 __esModule: !0 26802 }; 26803 }, function(module, exports, __webpack_require__) { 26804 __webpack_require__(406), __webpack_require__(235), __webpack_require__(409), __webpack_require__(410), 26805 module.exports = __webpack_require__(17).Symbol; 26806 }, function(module, exports, __webpack_require__) { 26807 "use strict"; 26808 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() { 26809 return 7 != _create(dP({}, "a", { 26810 get: function() { 26811 return dP(this, "a", { 26812 value: 7 26813 }).a; 26814 } 26815 })).a; 26816 }) ? function(it, key, D) { 26817 var protoDesc = gOPD(ObjectProto, key); 26818 protoDesc && delete ObjectProto[key], dP(it, key, D), protoDesc && it !== ObjectProto && dP(ObjectProto, key, protoDesc); 26819 } : dP, wrap = function(tag) { 26820 var sym = AllSymbols[tag] = _create($Symbol.prototype); 26821 return sym._k = tag, sym; 26822 }, isSymbol = USE_NATIVE && "symbol" == typeof $Symbol.iterator ? function(it) { 26823 return "symbol" == typeof it; 26824 } : function(it) { 26825 return it instanceof $Symbol; 26826 }, $defineProperty = function(it, key, D) { 26827 return it === ObjectProto && $defineProperty(OPSymbols, key, D), anObject(it), key = toPrimitive(key, !0), 26828 anObject(D), has(AllSymbols, key) ? (D.enumerable ? (has(it, HIDDEN) && it[HIDDEN][key] && (it[HIDDEN][key] = !1), 26829 D = _create(D, { 26830 enumerable: createDesc(0, !1) 26831 })) : (has(it, HIDDEN) || dP(it, HIDDEN, createDesc(1, {})), it[HIDDEN][key] = !0), 26832 setSymbolDesc(it, key, D)) : dP(it, key, D); 26833 }, $defineProperties = function(it, P) { 26834 anObject(it); 26835 for (var key, keys = enumKeys(P = toIObject(P)), i = 0, l = keys.length; l > i; ) $defineProperty(it, key = keys[i++], P[key]); 26836 return it; 26837 }, $create = function(it, P) { 26838 return void 0 === P ? _create(it) : $defineProperties(_create(it), P); 26839 }, $propertyIsEnumerable = function(key) { 26840 var E = isEnum.call(this, key = toPrimitive(key, !0)); 26841 return !(this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) && (!(E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key]) || E); 26842 }, $getOwnPropertyDescriptor = function(it, key) { 26843 if (it = toIObject(it), key = toPrimitive(key, !0), it !== ObjectProto || !has(AllSymbols, key) || has(OPSymbols, key)) { 26844 var D = gOPD(it, key); 26845 return !D || !has(AllSymbols, key) || has(it, HIDDEN) && it[HIDDEN][key] || (D.enumerable = !0), 26846 D; 26847 } 26848 }, $getOwnPropertyNames = function(it) { 26849 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); 26850 return result; 26851 }, $getOwnPropertySymbols = function(it) { 26852 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]); 26853 return result; 26854 }; 26855 USE_NATIVE || ($Symbol = function() { 26856 if (this instanceof $Symbol) throw TypeError("Symbol is not a constructor!"); 26857 var tag = uid(arguments.length > 0 ? arguments[0] : void 0), $set = function(value) { 26858 this === ObjectProto && $set.call(OPSymbols, value), has(this, HIDDEN) && has(this[HIDDEN], tag) && (this[HIDDEN][tag] = !1), 26859 setSymbolDesc(this, tag, createDesc(1, value)); 26860 }; 26861 return DESCRIPTORS && setter && setSymbolDesc(ObjectProto, tag, { 26862 configurable: !0, 26863 set: $set 26864 }), wrap(tag); 26865 }, redefine($Symbol.prototype, "toString", function() { 26866 return this._k; 26867 }), $GOPD.f = $getOwnPropertyDescriptor, $DP.f = $defineProperty, __webpack_require__(233).f = gOPNExt.f = $getOwnPropertyNames, 26868 __webpack_require__(104).f = $propertyIsEnumerable, __webpack_require__(153).f = $getOwnPropertySymbols, 26869 DESCRIPTORS && !__webpack_require__(102) && redefine(ObjectProto, "propertyIsEnumerable", $propertyIsEnumerable, !0), 26870 wksExt.f = function(name) { 26871 return wrap(wks(name)); 26872 }), $export($export.G + $export.W + $export.F * !USE_NATIVE, { 26873 Symbol: $Symbol 26874 }); 26875 for (var es6Symbols = "hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","), j = 0; es6Symbols.length > j; ) wks(es6Symbols[j++]); 26876 for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k; ) wksDefine(wellKnownSymbols[k++]); 26877 $export($export.S + $export.F * !USE_NATIVE, "Symbol", { 26878 for: function(key) { 26879 return has(SymbolRegistry, key += "") ? SymbolRegistry[key] : SymbolRegistry[key] = $Symbol(key); 26880 }, 26881 keyFor: function(sym) { 26882 if (!isSymbol(sym)) throw TypeError(sym + " is not a symbol!"); 26883 for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key; 26884 }, 26885 useSetter: function() { 26886 setter = !0; 26887 }, 26888 useSimple: function() { 26889 setter = !1; 26890 } 26891 }), $export($export.S + $export.F * !USE_NATIVE, "Object", { 26892 create: $create, 26893 defineProperty: $defineProperty, 26894 defineProperties: $defineProperties, 26895 getOwnPropertyDescriptor: $getOwnPropertyDescriptor, 26896 getOwnPropertyNames: $getOwnPropertyNames, 26897 getOwnPropertySymbols: $getOwnPropertySymbols 26898 }), $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function() { 26899 var S = $Symbol(); 26900 return "[null]" != _stringify([ S ]) || "{}" != _stringify({ 26901 a: S 26902 }) || "{}" != _stringify(Object(S)); 26903 })), "JSON", { 26904 stringify: function(it) { 26905 for (var replacer, $replacer, args = [ it ], i = 1; arguments.length > i; ) args.push(arguments[i++]); 26906 if ($replacer = replacer = args[1], (isObject(replacer) || void 0 !== it) && !isSymbol(it)) return isArray(replacer) || (replacer = function(key, value) { 26907 if ("function" == typeof $replacer && (value = $replacer.call(this, key, value)), 26908 !isSymbol(value)) return value; 26909 }), args[1] = replacer, _stringify.apply($JSON, args); 26910 } 26911 }), $Symbol.prototype[TO_PRIMITIVE] || __webpack_require__(39)($Symbol.prototype, TO_PRIMITIVE, $Symbol.prototype.valueOf), 26912 setToStringTag($Symbol, "Symbol"), setToStringTag(Math, "Math", !0), setToStringTag(global.JSON, "JSON", !0); 26913 }, function(module, exports, __webpack_require__) { 26914 var getKeys = __webpack_require__(76), gOPS = __webpack_require__(153), pIE = __webpack_require__(104); 26915 module.exports = function(it) { 26916 var result = getKeys(it), getSymbols = gOPS.f; 26917 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); 26918 return result; 26919 }; 26920 }, function(module, exports, __webpack_require__) { 26921 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) { 26922 try { 26923 return gOPN(it); 26924 } catch (e) { 26925 return windowNames.slice(); 26926 } 26927 }; 26928 module.exports.f = function(it) { 26929 return windowNames && "[object Window]" == toString.call(it) ? getWindowNames(it) : gOPN(toIObject(it)); 26930 }; 26931 }, function(module, exports, __webpack_require__) { 26932 __webpack_require__(159)("asyncIterator"); 26933 }, function(module, exports, __webpack_require__) { 26934 __webpack_require__(159)("observable"); 26935 }, function(module, exports, __webpack_require__) { 26936 module.exports = { 26937 default: __webpack_require__(412), 26938 __esModule: !0 26939 }; 26940 }, function(module, exports, __webpack_require__) { 26941 __webpack_require__(413), module.exports = __webpack_require__(17).Object.setPrototypeOf; 26942 }, function(module, exports, __webpack_require__) { 26943 var $export = __webpack_require__(19); 26944 $export($export.S, "Object", { 26945 setPrototypeOf: __webpack_require__(414).set 26946 }); 26947 }, function(module, exports, __webpack_require__) { 26948 var isObject = __webpack_require__(35), anObject = __webpack_require__(52), check = function(O, proto) { 26949 if (anObject(O), !isObject(proto) && null !== proto) throw TypeError(proto + ": can't set as prototype!"); 26950 }; 26951 module.exports = { 26952 set: Object.setPrototypeOf || ("__proto__" in {} ? function(test, buggy, set) { 26953 try { 26954 set = __webpack_require__(51)(Function.call, __webpack_require__(234).f(Object.prototype, "__proto__").set, 2), 26955 set(test, []), buggy = !(test instanceof Array); 26956 } catch (e) { 26957 buggy = !0; 26958 } 26959 return function(O, proto) { 26960 return check(O, proto), buggy ? O.__proto__ = proto : set(O, proto), O; 26961 }; 26962 }({}, !1) : void 0), 26963 check: check 26964 }; 26965 }, function(module, exports, __webpack_require__) { 26966 module.exports = { 26967 default: __webpack_require__(416), 26968 __esModule: !0 26969 }; 26970 }, function(module, exports, __webpack_require__) { 26971 __webpack_require__(417); 26972 var $Object = __webpack_require__(17).Object; 26973 module.exports = function(P, D) { 26974 return $Object.create(P, D); 26975 }; 26976 }, function(module, exports, __webpack_require__) { 26977 var $export = __webpack_require__(19); 26978 $export($export.S, "Object", { 26979 create: __webpack_require__(106) 26980 }); 26981 }, function(module, exports, __webpack_require__) { 26982 "use strict"; 26983 (function(process) { 26984 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); 26985 module.exports = function(isValidElement, throwOnDirectAccess) { 26986 function getIteratorFn(maybeIterable) { 26987 var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); 26988 if ("function" == typeof iteratorFn) return iteratorFn; 26989 } 26990 function is(x, y) { 26991 return x === y ? 0 !== x || 1 / x == 1 / y : x !== x && y !== y; 26992 } 26993 function PropTypeError(message) { 26994 this.message = message, this.stack = ""; 26995 } 26996 function createChainableTypeChecker(validate) { 26997 function checkType(isRequired, props, propName, componentName, location, propFullName, secret) { 26998 if (componentName = componentName || ANONYMOUS, propFullName = propFullName || propName, 26999 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&“未定义”!=控制台类型) 27000 var cacheKey = componentName + ":" + propName; 27001 !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), 27002 manualPropTypeCallCache[cacheKey] = !0, manualPropTypeWarningCount++); 27003 } 27004 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); 27005 } 27006 if ("production" !== process.env.NODE_ENV) var manualPropTypeCallCache = {}, manualPropTypeWarningCount = 0; 27007 var chainedCheckType = checkType.bind(null, !1); 27008 return chainedCheckType.isRequired = checkType.bind(null, !0), chainedCheckType; 27009 } 27010 function createPrimitiveTypeChecker(expectedType) { 27011 function validate(props, propName, componentName, location, propFullName, secret) { 27012 var propValue = props[propName]; 27013 if (getPropType(propValue) !== expectedType) return new PropTypeError("Invalid " + location + " ` + ("`" + `" + propFullName + "`)) + (("`" + ` of type `) + ("`" + `" + getPreciseType(propValue) + "`)))))))) + ((((((("`" + (` supplied to ` + "`")) + (`" + componentName + "` + ("`" + `, expected `))) + (("`" + (`" + expectedType + "` + "`")) + (`."); 27014 return null; 27015 } 27016 return createChainableTypeChecker(validate); 27017 } 27018 function createArrayOfTypeChecker(typeChecker) { 27019 function validate(props, propName, componentName, location, propFullName) { 27020 if ("function" != typeof typeChecker) return new PropTypeError("Property ` + ("`" + `" + propFullName + "`)))) + ((("`" + (` of component ` + "`")) + (`" + componentName + "` + ("`" + ` has invalid PropType notation inside arrayOf."); 27021 var propValue = props[propName]; 27022 if (!Array.isArray(propValue)) { 27023 return new PropTypeError("Invalid " + location + " `))) + (("`" + (`" + propFullName + "` + "`")) + (` of type ` + ("`" + `" + getPropType(propValue) + "`))))) + (((("`" + (` supplied to ` + "`")) + (`" + componentName + "` + ("`" + `, expected an array."); 27024 } 27025 for (var i = 0; i < propValue.length; i++) { 27026 var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret); 27027 if (error instanceof Error) return error; 27028 } 27029 return null; 27030 } 27031 return createChainableTypeChecker(validate); 27032 } 27033 function createInstanceTypeChecker(expectedClass) { 27034 function validate(props, propName, componentName, location, propFullName) { 27035 if (!(props[propName] instanceof expectedClass)) { 27036 var expectedClassName = expectedClass.name || ANONYMOUS; 27037 return new PropTypeError("Invalid " + location + " `))) + (("`" + (`" + propFullName + "` + "`")) + (` of type ` + ("`" + `" + getClassName(props[propName]) + "`)))) + ((("`" + (` supplied to ` + "`")) + (`" + componentName + "` + ("`" + `, expected instance of `))) + (("`" + (`" + expectedClassName + "` + "`")) + (`."); 27038 } 27039 return null; 27040 } 27041 return createChainableTypeChecker(validate); 27042 } 27043 function createEnumTypeChecker(expectedValues) { 27044 function validate(props, propName, componentName, location, propFullName) { 27045 for (var propValue = props[propName], i = 0; i < expectedValues.length; i++) if (is(propValue, expectedValues[i])) return null; 27046 return new PropTypeError("Invalid " + location + " ` + ("`" + `" + propFullName + "`)))))) + ((((("`" + (` of value ` + "`")) + (`" + propValue + "` + ("`" + ` supplied to `))) + (("`" + (`" + componentName + "` + "`")) + (`, expected one of " + JSON.stringify(expectedValues) + "."); 27047 } 27048 return Array.isArray(expectedValues) ? createChainableTypeChecker(validate) : ("production" !== process.env.NODE_ENV && warning(!1, "Invalid argument supplied to oneOf, expected an instance of array."), 27049 emptyFunction.thatReturnsNull); 27050 } 27051 function createObjectOfTypeChecker(typeChecker) { 27052 function validate(props, propName, componentName, location, propFullName) { 27053 if ("function" != typeof typeChecker) return new PropTypeError("Property ` + ("`" + `" + propFullName + "`)))) + ((("`" + (` of component ` + "`")) + (`" + componentName + "` + ("`" + ` has invalid PropType notation inside objectOf."); 27054 var propValue = props[propName], propType = getPropType(propValue); 27055 if ("object" !== propType) return new PropTypeError("Invalid " + location + " `))) + (("`" + (`" + propFullName + "` + "`")) + (` of type ` + ("`" + `" + propType + "`))))) + (((("`" + (` supplied to ` + "`")) + (`" + componentName + "` + ("`" + `, expected an object."); 27056 for (var key in propValue) if (propValue.hasOwnProperty(key)) { 27057 var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret); 27058 if (error instanceof Error) return error; 27059 } 27060 return null; 27061 } 27062 return createChainableTypeChecker(validate); 27063 } 27064 function createUnionTypeChecker(arrayOfTypeCheckers) { 27065 function validate(props, propName, componentName, location, propFullName) { 27066 for (var i = 0; i < arrayOfTypeCheckers.length; i++) { 27067 if (null == (0, arrayOfTypeCheckers[i])(props, propName, componentName, location, propFullName, ReactPropTypesSecret)) return null; 27068 } 27069 return new PropTypeError("Invalid " + location + " `))) + (("`" + (`" + propFullName + "` + "`")) + (` supplied to ` + ("`" + `" + componentName + "`)))) + ((("`" + (`."); 27070 } 27071 if (!Array.isArray(arrayOfTypeCheckers)) return "production" !== process.env.NODE_ENV && warning(!1, "Invalid argument supplied to oneOfType, expected an instance of array."), 27072 emptyFunction.thatReturnsNull; 27073 for (var i = 0; i < arrayOfTypeCheckers.length; i++) { 27074 var checker = arrayOfTypeCheckers[i]; 27075 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), 27076 emptyFunction.thatReturnsNull; 27077 } 27078 return createChainableTypeChecker(validate); 27079 } 27080 function createShapeTypeChecker(shapeTypes) { 27081 function validate(props, propName, componentName, location, propFullName) { 27082 var propValue = props[propName], propType = getPropType(propValue); 27083 if ("object" !== propType) return new PropTypeError("Invalid " + location + " ` + "`")) + (`" + propFullName + "` + ("`" + ` of type `))) + (("`" + (`" + propType + "` + "`")) + ((` supplied to ` + "`") + (`" + componentName + "` + "`"))))))) + ((((((`, expected ` + ("`" + `object`)) + ("`" + (`."); 27084 for (var key in shapeTypes) { 27085 var checker = shapeTypes[key]; 27086 if (checker) { 27087 var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret); 27088 if (error) return error; 27089 } 27090 } 27091 return null; 27092 } 27093 return createChainableTypeChecker(validate); 27094 } 27095 function createStrictShapeTypeChecker(shapeTypes) { 27096 function validate(props, propName, componentName, location, propFullName) { 27097 var propValue = props[propName], propType = getPropType(propValue); 27098 if ("object" !== propType) return new PropTypeError("Invalid " + location + " ` + "`"))) + ((`" + propFullName + "` + ("`" + ` of type `)) + ("`" + (`" + propType + "` + "`")))) + (((` supplied to ` + ("`" + `" + componentName + "`)) + ("`" + (`, expected ` + "`"))) + ((`object` + ("`" + `."); 27099 var allKeys = assign({}, props[propName], shapeTypes); 27100 for (var key in allKeys) { 27101 var checker = shapeTypes[key]; 27102 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, " ")); 27103 var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret); 27104 if (error) return error; 27105 } 27106 return null; 27107 } 27108 return createChainableTypeChecker(validate); 27109 } 27110 function isNode(propValue) { 27111 switch (typeof propValue) { 27112 case "number": 27113 case "string": 27114 case "undefined": 27115 return !0; 27116 27117 case "boolean": 27118 return !propValue; 27119 27120 case "object": 27121 if (Array.isArray(propValue)) return propValue.every(isNode); 27122 if (null === propValue || isValidElement(propValue)) return !0; 27123 var iteratorFn = getIteratorFn(propValue); 27124 if (!iteratorFn) return !1; 27125 var step, iterator = iteratorFn.call(propValue); 27126 if (iteratorFn !== propValue.entries) { 27127 for (;!(step = iterator.next()).done; ) if (!isNode(step.value)) return !1; 27128 } else for (;!(step = iterator.next()).done; ) { 27129 var entry = step.value; 27130 if (entry && !isNode(entry[1])) return !1; 27131 } 27132 return !0; 27133 27134 default: 27135 return !1; 27136 } 27137 } 27138 function isSymbol(propType, propValue) { 27139 return "symbol" === propType || ("Symbol" === propValue["@@toStringTag"] || "function" == typeof Symbol && propValue instanceof Symbol); 27140 } 27141 function getPropType(propValue) { 27142 var propType = typeof propValue; 27143 return Array.isArray(propValue) ? "array" : propValue instanceof RegExp ? "object" : isSymbol(propType, propValue) ? "symbol" : propType; 27144 } 27145 function getPreciseType(propValue) { 27146 if (void 0 === propValue || null === propValue) return "" + propValue; 27147 var propType = getPropType(propValue); 27148 if ("object" === propType) { 27149 if (propValue instanceof Date) return "date"; 27150 if (propValue instanceof RegExp) return "regexp"; 27151 } 27152 return propType; 27153 } 27154 function getPostfixForTypeWarning(value) { 27155 var type = getPreciseType(value); 27156 switch (type) { 27157 case "array": 27158 case "object": 27159 return "an " + type; 27160 27161 case "boolean": 27162 case "date": 27163 case "regexp": 27164 return "a " + type; 27165 27166 default: 27167 return type; 27168 } 27169 } 27170 function getClassName(propValue) { 27171 return propValue.constructor && propValue.constructor.name ? propValue.constructor.name : ANONYMOUS; 27172 } 27173 var ITERATOR_SYMBOL = "function" == typeof Symbol && Symbol.iterator, FAUX_ITERATOR_SYMBOL = "@@iterator", ANONYMOUS = "<<anonymous>>", ReactPropTypes = { 27174 array: createPrimitiveTypeChecker("array"), 27175 bool: createPrimitiveTypeChecker("boolean"), 27176 func: createPrimitiveTypeChecker("function"), 27177 number: createPrimitiveTypeChecker("number"), 27178 object: createPrimitiveTypeChecker("object"), 27179 string: createPrimitiveTypeChecker("string"), 27180 symbol: createPrimitiveTypeChecker("symbol"), 27181 any: function() { 27182 return createChainableTypeChecker(emptyFunction.thatReturnsNull); 27183 }(), 27184 arrayOf: createArrayOfTypeChecker, 27185 element: function() { 27186 function validate(props, propName, componentName, location, propFullName) { 27187 var propValue = props[propName]; 27188 if (!isValidElement(propValue)) { 27189 return new PropTypeError("Invalid " + location + " `)) + ("`" + (`" + propFullName + "` + "`")))) + (((` of type ` + ("`" + `" + getPropType(propValue) + "`)) + ("`" + (` supplied to ` + "`"))) + ((`" + componentName + "` + ("`" + `, expected a single ReactElement."); 27190 } 27191 return null; 27192 } 27193 return createChainableTypeChecker(validate); 27194 }(), 27195 instanceOf: createInstanceTypeChecker, 27196 node: function() { 27197 function validate(props, propName, componentName, location, propFullName) { 27198 return isNode(props[propName]) ? null : new PropTypeError("Invalid " + location + " `)) + ("`" + (`" + propFullName + "` + "`")))))) + (((((` supplied to ` + ("`" + `" + componentName + "`)) + ("`" + (`, expected a ReactNode."); 27199 } 27200 return createChainableTypeChecker(validate); 27201 }(), 27202 objectOf: createObjectOfTypeChecker, 27203 oneOf: createEnumTypeChecker, 27204 oneOfType: createUnionTypeChecker, 27205 shape: createShapeTypeChecker, 27206 exact: createStrictShapeTypeChecker 27207 }; 27208 return PropTypeError.prototype = Error.prototype, ReactPropTypes.checkPropTypes = checkPropTypes, 27209 ReactPropTypes.PropTypes = ReactPropTypes, ReactPropTypes; 27210 }; 27211 }).call(exports, __webpack_require__(2)); 27212 }, function(module, exports, __webpack_require__) { 27213 "use strict"; 27214 var emptyFunction = __webpack_require__(50), invariant = __webpack_require__(49), ReactPropTypesSecret = __webpack_require__(144); 27215 module.exports = function() { 27216 function shim(props, propName, componentName, location, propFullName, secret) { 27217 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/使用检查道具类型); 27218 } 27219 function getShim() { 27220 return shim; 27221 } 27222 shim.isRequired = shim; 27223 var ReactPropTypes = { 27224 array: shim, 27225 bool: shim, 27226 func: shim, 27227 number: shim, 27228 object: shim, 27229 string: shim, 27230 symbol: shim, 27231 any: shim, 27232 arrayOf: getShim, 27233 element: shim, 27234 instanceOf: getShim, 27235 node: shim, 27236 objectOf: getShim, 27237 oneOf: getShim, 27238 oneOfType: getShim, 27239 shape: getShim, 27240 exact: getShim 27241 }; 27242 return ReactPropTypes.checkPropTypes = emptyFunction, ReactPropTypes.PropTypes = ReactPropTypes, 27243 ReactPropTypes; 27244 }; 27245 }, function(module, __webpack_exports__, __webpack_require__) { 27246 "use strict"; 27247 function createBroadcast(initialState) { 27248 function getState() { 27249 return _state; 27250 } 27251 function setState(state) { 27252 _state = state; 27253 for (var keys = Object.keys(listeners), i = 0, len = keys.length; i < len; i++) listeners[keys[i]] && listeners[keys[i]](state); 27254 } 27255 function subscribe(listener) { 27256 if ("function" != typeof listener) throw new Error("listener must be a function."); 27257 var currentId = id; 27258 return listeners[currentId] = listener, id += 1, currentId; 27259 } 27260 function unsubscribe(id) { 27261 listeners[id] = void 0; 27262 } 27263 var listeners = {}, id = 1, _state = initialState; 27264 return { 27265 getState: getState, 27266 setState: setState, 27267 subscribe: subscribe, 27268 unsubscribe: unsubscribe 27269 }; 27270 } 27271 Object.defineProperty(__webpack_exports__, "__esModule", { 27272 value: !0 27273 }), __webpack_exports__.default = createBroadcast; 27274 }, function(module, exports, __webpack_require__) { 27275 __webpack_require__(422), module.exports = __webpack_require__(17).Object.keys; 27276 }, function(module, exports, __webpack_require__) { 27277 var toObject = __webpack_require__(65), $keys = __webpack_require__(76); 27278 __webpack_require__(228)("keys", function() { 27279 return function(it) { 27280 return $keys(toObject(it)); 27281 }; 27282 }); 27283 }, function(module, exports, __webpack_require__) { 27284 "use strict"; 27285 function _interopRequireDefault(obj) { 27286 return obj && obj.__esModule ? obj : { 27287 default: obj 27288 }; 27289 } 27290 function round(value) { 27291 return Math.round(1e5 * value) / 1e5; 27292 } 27293 function createTypography(palette, typography) { 27294 function pxToRem(value) { 27295 return value / htmlFontSize + "rem"; 27296 } 27297 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, 27298 _objectWithoutProperties3.default)(_ref, [ "fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "htmlFontSize" ]); 27299 return (0, _deepmerge2.default)({ 27300 pxToRem: pxToRem, 27301 round: round, 27302 fontFamily: fontFamily, 27303 fontSize: fontSize, 27304 fontWeightLight: fontWeightLight, 27305 fontWeightRegular: fontWeightRegular, 27306 fontWeightMedium: fontWeightMedium, 27307 display4: { 27308 fontSize: pxToRem(112), 27309 fontWeight: fontWeightLight, 27310 fontFamily: fontFamily, 27311 letterSpacing: "-.04em", 27312 lineHeight: round(128 / 112) + "em", 27313 marginLeft: "-.06em", 27314 color: palette.text.secondary 27315 }, 27316 display3: { 27317 fontSize: pxToRem(56), 27318 fontWeight: fontWeightRegular, 27319 fontFamily: fontFamily, 27320 letterSpacing: "-.02em", 27321 lineHeight: round(73 / 56) + "em", 27322 marginLeft: "-.04em", 27323 color: palette.text.secondary 27324 }, 27325 display2: { 27326 fontSize: pxToRem(45), 27327 fontWeight: fontWeightRegular, 27328 fontFamily: fontFamily, 27329 lineHeight: round(48 / 45) + "em", 27330 marginLeft: "-.04em", 27331 color: palette.text.secondary 27332 }, 27333 display1: { 27334 fontSize: pxToRem(34), 27335 fontWeight: fontWeightRegular, 27336 fontFamily: fontFamily, 27337 lineHeight: round(41 / 34) + "em", 27338 marginLeft: "-.04em", 27339 color: palette.text.secondary 27340 }, 27341 headline: { 27342 fontSize: pxToRem(24), 27343 fontWeight: fontWeightRegular, 27344 fontFamily: fontFamily, 27345 lineHeight: round(32.5 / 24) + "em", 27346 color: palette.text.primary 27347 }, 27348 title: { 27349 fontSize: pxToRem(21), 27350 fontWeight: fontWeightMedium, 27351 fontFamily: fontFamily, 27352 lineHeight: round(24.5 / 21) + "em", 27353 color: palette.text.primary 27354 }, 27355 subheading: { 27356 fontSize: pxToRem(16), 27357 fontWeight: fontWeightRegular, 27358 fontFamily: fontFamily, 27359 lineHeight: round(1.5) + "em", 27360 color: palette.text.primary 27361 }, 27362 body2: { 27363 fontSize: pxToRem(14), 27364 fontWeight: fontWeightMedium, 27365 fontFamily: fontFamily, 27366 lineHeight: round(24 / 14) + "em", 27367 color: palette.text.primary 27368 }, 27369 body1: { 27370 fontSize: pxToRem(14), 27371 fontWeight: fontWeightRegular, 27372 fontFamily: fontFamily, 27373 lineHeight: round(20.5 / 14) + "em", 27374 color: palette.text.primary 27375 }, 27376 caption: { 27377 fontSize: pxToRem(12), 27378 fontWeight: fontWeightRegular, 27379 fontFamily: fontFamily, 27380 lineHeight: round(1.375) + "em", 27381 color: palette.text.secondary 27382 }, 27383 button: { 27384 fontSize: pxToRem(fontSize), 27385 textTransform: "uppercase", 27386 fontWeight: fontWeightMedium, 27387 fontFamily: fontFamily 27388 } 27389 }, other, { 27390 clone: !1 27391 }); 27392 } 27393 Object.defineProperty(exports, "__esModule", { 27394 value: !0 27395 }); 27396 var _objectWithoutProperties2 = __webpack_require__(7), _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); 27397 exports.default = createTypography; 27398 var _deepmerge = __webpack_require__(108), _deepmerge2 = _interopRequireDefault(_deepmerge); 27399 }, function(module, exports, __webpack_require__) { 27400 "use strict"; 27401 (function(process) { 27402 function _interopRequireDefault(obj) { 27403 return obj && obj.__esModule ? obj : { 27404 default: obj 27405 }; 27406 } 27407 function addLightOrDark(intent, direction, shade, tonalOffset) { 27408 intent[direction] || (intent.hasOwnProperty(shade) ? intent[direction] = intent[shade] : "light" === direction ? intent.light = (0, 27409 _colorManipulator.lighten)(intent.main, tonalOffset) : "dark" === direction && (intent.dark = (0, 27410 _colorManipulator.darken)(intent.main, 1.5 * tonalOffset))); 27411 } 27412 function createPalette(palette) { 27413 function getContrastText(background) { 27414 var contrastText = (0, _colorManipulator.getContrastRatio)(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary; 27415 if ("production" !== process.env.NODE_ENV) { 27416 var contrast = (0, _colorManipulator.getContrastRatio)(background, contrastText); 27417 "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”)); 27418 } 27419 return contrastText; 27420 } 27421 function augmentColor(color, mainShade, lightShade, darkShade) { 27422 !color.main && color[mainShade] && (color.main = color[mainShade]), addLightOrDark(color, "light", lightShade, tonalOffset), 27423 addLightOrDark(color, "dark", darkShade, tonalOffset), color.contrastText || (color.contrastText = getContrastText(color.main)); 27424 } 27425 var _palette$primary = palette.primary, primary = void 0 === _palette$primary ? { 27426 light: _indigo2.default[300], 27427 main: _indigo2.default[500], 27428 dark: _indigo2.default[700] 27429 } : _palette$primary, _palette$secondary = palette.secondary, secondary = void 0 === _palette$secondary ? { 27430 light: _pink2.default.A200, 27431 main: _pink2.default.A400, 27432 dark: _pink2.default.A700 27433 } : _palette$secondary, _palette$error = palette.error, error = void 0 === _palette$error ? { 27434 light: _red2.default[300], 27435 main: _red2.default[500], 27436 dark: _red2.default[700] 27437 } : _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, 27438 _objectWithoutProperties3.default)(palette, [ "primary", "secondary", "error", "type", "contrastThreshold", "tonalOffset" ]); 27439 augmentColor(primary, 500, 300, 700), augmentColor(secondary, "A400", "A200", "A700"), 27440 augmentColor(error, 500, 300, 700); 27441 var types = { 27442 dark: dark, 27443 light: light 27444 }; 27445 return "production" !== process.env.NODE_ENV && (0, _warning2.default)(types[type], "Material-UI: the palette type `)) + ("`" + (`" + type + "` + "`")))) + (((` is not supported."), 27446 (0, _deepmerge2.default)((0, _extends3.default)({ 27447 common: _common2.default, 27448 type: type, 27449 primary: primary, 27450 secondary: secondary, 27451 error: error, 27452 grey: _grey2.default, 27453 contrastThreshold: contrastThreshold, 27454 getContrastText: getContrastText, 27455 tonalOffset: tonalOffset 27456 }, types[type]), other, { 27457 clone: !1 27458 }); 27459 } 27460 Object.defineProperty(exports, "__esModule", { 27461 value: !0 27462 }), exports.dark = exports.light = void 0; 27463 var _extends2 = __webpack_require__(6), _extends3 = _interopRequireDefault(_extends2), _objectWithoutProperties2 = __webpack_require__(7), _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); 27464 exports.default = createPalette; 27465 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 = { 27466 text: { 27467 primary: "rgba(0, 0, 0, 0.87)", 27468 secondary: "rgba(0, 0, 0, 0.54)", 27469 disabled: "rgba(0, 0, 0, 0.38)", 27470 hint: "rgba(0, 0, 0, 0.38)" 27471 }, 27472 divider: "rgba(0, 0, 0, 0.12)", 27473 background: { 27474 paper: _common2.default.white, 27475 default: _grey2.default[50] 27476 }, 27477 action: { 27478 active: "rgba(0, 0, 0, 0.54)", 27479 hover: "rgba(0, 0, 0, 0.08)", 27480 selected: "rgba(0, 0, 0, 0.14)", 27481 disabled: "rgba(0, 0, 0, 0.26)", 27482 disabledBackground: "rgba(0, 0, 0, 0.12)" 27483 } 27484 }, dark = exports.dark = { 27485 text: { 27486 primary: _common2.default.white, 27487 secondary: "rgba(255, 255, 255, 0.7)", 27488 disabled: "rgba(255, 255, 255, 0.5)", 27489 hint: "rgba(255, 255, 255, 0.5)", 27490 icon: "rgba(255, 255, 255, 0.5)" 27491 }, 27492 divider: "rgba(255, 255, 255, 0.12)", 27493 background: { 27494 paper: _grey2.default[800], 27495 default: "#303030" 27496 }, 27497 action: { 27498 active: _common2.default.white, 27499 hover: "rgba(255, 255, 255, 0.1)", 27500 selected: "rgba(255, 255, 255, 0.2)", 27501 disabled: "rgba(255, 255, 255, 0.3)", 27502 disabledBackground: "rgba(255, 255, 255, 0.12)" 27503 } 27504 }; 27505 }).call(exports, __webpack_require__(2)); 27506 }, function(module, exports, __webpack_require__) { 27507 "use strict"; 27508 Object.defineProperty(exports, "__esModule", { 27509 value: !0 27510 }); 27511 var indigo = { 27512 50: "#e8eaf6", 27513 100: "#c5cae9", 27514 200: "#9fa8da", 27515 300: "#7986cb", 27516 400: "#5c6bc0", 27517 500: "#3f51b5", 27518 600: "#3949ab", 27519 700: "#303f9f", 27520 800: "#283593", 27521 900: "#1a237e", 27522 A100: "#8c9eff", 27523 A200: "#536dfe", 27524 A400: "#3d5afe", 27525 A700: "#304ffe" 27526 }; 27527 exports.default = indigo; 27528 }, function(module, exports, __webpack_require__) { 27529 "use strict"; 27530 Object.defineProperty(exports, "__esModule", { 27531 value: !0 27532 }); 27533 var pink = { 27534 50: "#fce4ec", 27535 100: "#f8bbd0", 27536 200: "#f48fb1", 27537 300: "#f06292", 27538 400: "#ec407a", 27539 500: "#e91e63", 27540 600: "#d81b60", 27541 700: "#c2185b", 27542 800: "#ad1457", 27543 900: "#880e4f", 27544 A100: "#ff80ab", 27545 A200: "#ff4081", 27546 A400: "#f50057", 27547 A700: "#c51162" 27548 }; 27549 exports.default = pink; 27550 }, function(module, exports, __webpack_require__) { 27551 "use strict"; 27552 Object.defineProperty(exports, "__esModule", { 27553 value: !0 27554 }); 27555 var grey = { 27556 50: "#fafafa", 27557 100: "#f5f5f5", 27558 200: "#eeeeee", 27559 300: "#e0e0e0", 27560 400: "#bdbdbd", 27561 500: "#9e9e9e", 27562 600: "#757575", 27563 700: "#616161", 27564 800: "#424242", 27565 900: "#212121", 27566 A100: "#d5d5d5", 27567 A200: "#aaaaaa", 27568 A400: "#303030", 27569 A700: "#616161" 27570 }; 27571 exports.default = grey; 27572 }, function(module, exports, __webpack_require__) { 27573 "use strict"; 27574 Object.defineProperty(exports, "__esModule", { 27575 value: !0 27576 }); 27577 var red = { 27578 50: "#ffebee", 27579 100: "#ffcdd2", 27580 200: "#ef9a9a", 27581 300: "#e57373", 27582 400: "#ef5350", 27583 500: "#f44336", 27584 600: "#e53935", 27585 700: "#d32f2f", 27586 800: "#c62828", 27587 900: "#b71c1c", 27588 A100: "#ff8a80", 27589 A200: "#ff5252", 27590 A400: "#ff1744", 27591 A700: "#d50000" 27592 }; 27593 exports.default = red; 27594 }, function(module, exports, __webpack_require__) { 27595 "use strict"; 27596 Object.defineProperty(exports, "__esModule", { 27597 value: !0 27598 }); 27599 var common = { 27600 black: "#000", 27601 white: "#fff" 27602 }; 27603 exports.default = common; 27604 }, function(module, exports, __webpack_require__) { 27605 "use strict"; 27606 (function(process) { 27607 function clamp(value) { 27608 var min = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0, max = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 1; 27609 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 + "]."), 27610 value < min ? min : value > max ? max : value; 27611 } 27612 function convertHexToRGB(color) { 27613 color = color.substr(1); 27614 var re = new RegExp(".{1," + color.length / 3 + "}", "g"), colors = color.match(re); 27615 return colors && 1 === colors[0].length && (colors = colors.map(function(n) { 27616 return n + n; 27617 })), colors ? "rgb(" + colors.map(function(n) { 27618 return parseInt(n, 16); 27619 }).join(", ") + ")" : ""; 27620 } 27621 function decomposeColor(color) { 27622 if ("#" === color.charAt(0)) return decomposeColor(convertHexToRGB(color)); 27623 var marker = color.indexOf("("), type = color.substring(0, marker), values = color.substring(marker + 1, color.length - 1).split(","); 27624 return values = values.map(function(value) { 27625 return parseFloat(value); 27626 }), { 27627 type: type, 27628 values: values 27629 }; 27630 } 27631 function recomposeColor(color) { 27632 var type = color.type, values = color.values; 27633 return type.indexOf("rgb") > -1 && (values = values.map(function(n, i) { 27634 return i < 3 ? parseInt(n, 10) : n; 27635 })), type.indexOf("hsl") > -1 && (values[1] = values[1] + "%", values[2] = values[2] + "%"), 27636 color.type + "(" + values.join(", ") + ")"; 27637 } 27638 function getContrastRatio(foreground, background) { 27639 var lumA = getLuminance(foreground), lumB = getLuminance(background); 27640 return (Math.max(lumA, lumB) + .05) / (Math.min(lumA, lumB) + .05); 27641 } 27642 function getLuminance(color) { 27643 var decomposedColor = decomposeColor(color); 27644 if (decomposedColor.type.indexOf("rgb") > -1) { 27645 var rgb = decomposedColor.values.map(function(val) { 27646 return val /= 255, val <= .03928 ? val / 12.92 : Math.pow((val + .055) / 1.055, 2.4); 27647 }); 27648 return Number((.2126 * rgb[0] + .7152 * rgb[1] + .0722 * rgb[2]).toFixed(3)); 27649 } 27650 if (decomposedColor.type.indexOf("hsl") > -1) return decomposedColor.values[2] / 100; 27651 throw new Error("Material-UI: unsupported ` + ("`" + `" + color + "`)) + ("`" + (` color."); 27652 } 27653 function emphasize(color) { 27654 var coefficient = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : .15; 27655 return getLuminance(color) > .5 ? darken(color, coefficient) : lighten(color, coefficient); 27656 } 27657 function fade(color, value) { 27658 return "production" !== process.env.NODE_ENV && (0, _warning2.default)(color, "Material-UI: missing color argument in fade(" + color + ", " + value + ")."), 27659 color ? (color = decomposeColor(color), value = clamp(value), "rgb" !== color.type && "hsl" !== color.type || (color.type += "a"), 27660 color.values[3] = value, recomposeColor(color)) : color; 27661 } 27662 function darken(color, coefficient) { 27663 if ("production" !== process.env.NODE_ENV && (0, _warning2.default)(color, "Material-UI: missing color argument in darken(" + color + ", " + coefficient + ")."), 27664 !color) return color; 27665 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; 27666 return recomposeColor(color); 27667 } 27668 function lighten(color, coefficient) { 27669 if ("production" !== process.env.NODE_ENV && (0, _warning2.default)(color, "Material-UI: missing color argument in lighten(" + color + ", " + coefficient + ")."), 27670 !color) return color; 27671 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; 27672 return recomposeColor(color); 27673 } 27674 Object.defineProperty(exports, "__esModule", { 27675 value: !0 27676 }), exports.convertHexToRGB = convertHexToRGB, exports.decomposeColor = decomposeColor, 27677 exports.recomposeColor = recomposeColor, exports.getContrastRatio = getContrastRatio, 27678 exports.getLuminance = getLuminance, exports.emphasize = emphasize, exports.fade = fade, 27679 exports.darken = darken, exports.lighten = lighten; 27680 var _warning = __webpack_require__(11), _warning2 = function(obj) { 27681 return obj && obj.__esModule ? obj : { 27682 default: obj 27683 }; 27684 }(_warning); 27685 }).call(exports, __webpack_require__(2)); 27686 }, function(module, exports, __webpack_require__) { 27687 "use strict"; 27688 function _interopRequireDefault(obj) { 27689 return obj && obj.__esModule ? obj : { 27690 default: obj 27691 }; 27692 } 27693 function createMixins(breakpoints, spacing, mixins) { 27694 var _toolbar; 27695 return (0, _extends4.default)({ 27696 gutters: function(styles) { 27697 return (0, _extends4.default)({ 27698 paddingLeft: 2 * spacing.unit, 27699 paddingRight: 2 * spacing.unit 27700 }, styles, (0, _defineProperty3.default)({}, breakpoints.up("sm"), (0, _extends4.default)({ 27701 paddingLeft: 3 * spacing.unit, 27702 paddingRight: 3 * spacing.unit 27703 }, styles[breakpoints.up("sm")]))); 27704 }, 27705 toolbar: (_toolbar = { 27706 minHeight: 56 27707 }, (0, _defineProperty3.default)(_toolbar, breakpoints.up("xs") + " and (orientation: landscape)", { 27708 minHeight: 48 27709 }), (0, _defineProperty3.default)(_toolbar, breakpoints.up("sm"), { 27710 minHeight: 64 27711 }), _toolbar) 27712 }, mixins); 27713 } 27714 Object.defineProperty(exports, "__esModule", { 27715 value: !0 27716 }); 27717 var _defineProperty2 = __webpack_require__(12), _defineProperty3 = _interopRequireDefault(_defineProperty2), _extends3 = __webpack_require__(6), _extends4 = _interopRequireDefault(_extends3); 27718 exports.default = createMixins; 27719 }, function(module, exports, __webpack_require__) { 27720 "use strict"; 27721 function createShadow() { 27722 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(","); 27723 } 27724 Object.defineProperty(exports, "__esModule", { 27725 value: !0 27726 }); 27727 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) ]; 27728 exports.default = shadows; 27729 }, function(module, exports, __webpack_require__) { 27730 "use strict"; 27731 (function(process) { 27732 function _interopRequireDefault(obj) { 27733 return obj && obj.__esModule ? obj : { 27734 default: obj 27735 }; 27736 } 27737 Object.defineProperty(exports, "__esModule", { 27738 value: !0 27739 }), exports.isNumber = exports.isString = exports.formatMs = exports.duration = exports.easing = void 0; 27740 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 = { 27741 easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)", 27742 easeOut: "cubic-bezier(0.0, 0, 0.2, 1)", 27743 easeIn: "cubic-bezier(0.4, 0, 1, 1)", 27744 sharp: "cubic-bezier(0.4, 0, 0.6, 1)" 27745 }, duration = exports.duration = { 27746 shortest: 150, 27747 shorter: 200, 27748 short: 250, 27749 standard: 300, 27750 complex: 375, 27751 enteringScreen: 225, 27752 leavingScreen: 195 27753 }, formatMs = exports.formatMs = function(milliseconds) { 27754 return Math.round(milliseconds) + "ms"; 27755 }, isString = exports.isString = function(value) { 27756 return "string" == typeof value; 27757 }, isNumber = exports.isNumber = function(value) { 27758 return !(0, _isNan2.default)(parseFloat(value)); 27759 }; 27760 exports.default = { 27761 easing: easing, 27762 duration: duration, 27763 create: function() { 27764 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, 27765 _objectWithoutProperties3.default)(options, [ "duration", "easing", "delay" ]); 27766 return "production" !== process.env.NODE_ENV && (0, _warning2.default)(isString(props) || Array.isArray(props), 'Material-UI: argument "props" must be a string or Array.'), 27767 "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 + "."), 27768 "production" !== process.env.NODE_ENV && (0, _warning2.default)(isString(easingOption), 'Material-UI: argument "easing" must be a string.'), 27769 "production" !== process.env.NODE_ENV && (0, _warning2.default)(isNumber(delay) || isString(delay), 'Material-UI: argument "delay" must be a number or a string.'), 27770 "production" !== process.env.NODE_ENV && (0, _warning2.default)(0 === (0, _keys2.default)(other).length, "Material-UI: unrecognized argument(s) [" + (0, 27771 _keys2.default)(other).join(",") + "]"), (Array.isArray(props) ? props : [ props ]).map(function(animatedProp) { 27772 return animatedProp + " " + ("string" == typeof durationOption ? durationOption : formatMs(durationOption)) + " " + easingOption + " " + ("string" == typeof delay ? delay : formatMs(delay)); 27773 }).join(","); 27774 }, 27775 getAutoHeightDuration: function(height) { 27776 if (!height) return 0; 27777 var constant = height / 36; 27778 return Math.round(10 * (4 + 15 * Math.pow(constant, .25) + constant / 5)); 27779 } 27780 }; 27781 }).call(exports, __webpack_require__(2)); 27782 }, function(module, exports, __webpack_require__) { 27783 module.exports = { 27784 default: __webpack_require__(435), 27785 __esModule: !0 27786 }; 27787 }, function(module, exports, __webpack_require__) { 27788 __webpack_require__(436), module.exports = __webpack_require__(17).Number.isNaN; 27789 }, function(module, exports, __webpack_require__) { 27790 var $export = __webpack_require__(19); 27791 $export($export.S, "Number", { 27792 isNaN: function(number) { 27793 return number != number; 27794 } 27795 }); 27796 }, function(module, exports, __webpack_require__) { 27797 "use strict"; 27798 Object.defineProperty(exports, "__esModule", { 27799 value: !0 27800 }); 27801 var zIndex = { 27802 mobileStepper: 1e3, 27803 appBar: 1100, 27804 drawer: 1200, 27805 modal: 1300, 27806 snackbar: 1400, 27807 tooltip: 1500 27808 }; 27809 exports.default = zIndex; 27810 }, function(module, exports, __webpack_require__) { 27811 "use strict"; 27812 Object.defineProperty(exports, "__esModule", { 27813 value: !0 27814 }), exports.default = { 27815 unit: 8 27816 }; 27817 }, function(module, exports, __webpack_require__) { 27818 "use strict"; 27819 function _interopRequireDefault(obj) { 27820 return obj && obj.__esModule ? obj : { 27821 default: obj 27822 }; 27823 } 27824 function _classCallCheck(instance, Constructor) { 27825 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 27826 } 27827 function _possibleConstructorReturn(self, call) { 27828 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 27829 return !call || "object" != typeof call && "function" != typeof call ? self : call; 27830 } 27831 function _inherits(subClass, superClass) { 27832 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 27833 subClass.prototype = Object.create(superClass && superClass.prototype, { 27834 constructor: { 27835 value: subClass, 27836 enumerable: !1, 27837 writable: !0, 27838 configurable: !0 27839 } 27840 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 27841 } 27842 function _toConsumableArray(arr) { 27843 if (Array.isArray(arr)) { 27844 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; 27845 return arr2; 27846 } 27847 return Array.from(arr); 27848 } 27849 Object.defineProperty(exports, "__esModule", { 27850 value: !0 27851 }); 27852 var _createClass = function() { 27853 function defineProperties(target, props) { 27854 for (var i = 0; i < props.length; i++) { 27855 var descriptor = props[i]; 27856 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 27857 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 27858 } 27859 } 27860 return function(Constructor, protoProps, staticProps) { 27861 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 27862 Constructor; 27863 }; 27864 }(), _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) { 27865 if (void 0 === update) return prev; 27866 if ("function" == typeof updater) return updater(update, prev); 27867 var updated = {}; 27868 return Object.keys(prev).forEach(function(key) { 27869 updated[key] = deepUpdate(updater[key], update[key], prev[key]); 27870 }), updated; 27871 }, shouldUpdate = function shouldUpdate(updater, msg) { 27872 var su = {}; 27873 return Object.keys(msg).forEach(function(key) { 27874 su[key] = "function" == typeof updater[key] || shouldUpdate(updater[key], msg[key]); 27875 }), su; 27876 }, replacer = function(update) { 27877 return update; 27878 }, appender = function(limit) { 27879 var mapper = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : replacer; 27880 return function(update, prev) { 27881 return [].concat(_toConsumableArray(prev), _toConsumableArray(update.map(function(sample) { 27882 return mapper(sample); 27883 }))).slice(-limit); 27884 }; 27885 }, defaultContent = function() { 27886 return { 27887 general: { 27888 version: null, 27889 commit: null 27890 }, 27891 home: {}, 27892 chain: {}, 27893 txpool: {}, 27894 network: {}, 27895 system: { 27896 activeMemory: [], 27897 virtualMemory: [], 27898 networkIngress: [], 27899 networkEgress: [], 27900 processCPU: [], 27901 systemCPU: [], 27902 diskRead: [], 27903 diskWrite: [] 27904 }, 27905 logs: { 27906 chunks: [], 27907 endTop: !1, 27908 endBottom: !0, 27909 topChanged: 0, 27910 bottomChanged: 0 27911 } 27912 }; 27913 }, updaters = { 27914 general: { 27915 version: replacer, 27916 commit: replacer 27917 }, 27918 home: null, 27919 chain: null, 27920 txpool: null, 27921 network: null, 27922 system: { 27923 activeMemory: appender(200), 27924 virtualMemory: appender(200), 27925 networkIngress: appender(200), 27926 networkEgress: appender(200), 27927 processCPU: appender(200), 27928 systemCPU: appender(200), 27929 diskRead: appender(200), 27930 diskWrite: appender(200) 27931 }, 27932 logs: (0, _Logs.inserter)(5) 27933 }, styles = { 27934 dashboard: { 27935 display: "flex", 27936 flexFlow: "column", 27937 width: "100%", 27938 height: "100%", 27939 zIndex: 1, 27940 overflow: "hidden" 27941 } 27942 }, themeStyles = function(theme) { 27943 return { 27944 dashboard: { 27945 background: theme.palette.background.default 27946 } 27947 }; 27948 }, Dashboard = function(_Component) { 27949 function Dashboard(props) { 27950 _classCallCheck(this, Dashboard); 27951 var _this = _possibleConstructorReturn(this, (Dashboard.__proto__ || Object.getPrototypeOf(Dashboard)).call(this, props)); 27952 return _this.reconnect = function() { 27953 var server = new WebSocket(("https:" === window.location.protocol ? "wss://“:”ws:/“)+window.location.host+“/api”); 27954 server.onopen = function() { 27955 _this.setState({ 27956 content: defaultContent(), 27957 shouldUpdate: {}, 27958 server: server 27959 }); 27960 }, server.onmessage = function(event) { 27961 var msg = JSON.parse(event.data); 27962 if (!msg) return void console.error("Incoming message is " + msg); 27963 _this.update(msg); 27964 }, server.onclose = function() { 27965 _this.setState({ 27966 server: null 27967 }), setTimeout(_this.reconnect, 3e3); 27968 }; 27969 }, _this.send = function(msg) { 27970 null != _this.state.server && _this.state.server.send(msg); 27971 }, _this.update = function(msg) { 27972 _this.setState(function(prevState) { 27973 return { 27974 content: deepUpdate(updaters, msg, prevState.content), 27975 shouldUpdate: shouldUpdate(updaters, msg) 27976 }; 27977 }); 27978 }, _this.changeContent = function(newActive) { 27979 _this.setState(function(prevState) { 27980 return prevState.active !== newActive ? { 27981 active: newActive 27982 } : {}; 27983 }); 27984 }, _this.switchSideBar = function() { 27985 _this.setState(function(prevState) { 27986 return { 27987 sideBar: !prevState.sideBar 27988 }; 27989 }); 27990 }, _this.state = { 27991 active: _common.MENU.get("home").id, 27992 sideBar: !0, 27993 content: defaultContent(), 27994 shouldUpdate: {}, 27995 server: null 27996 }, _this; 27997 } 27998 return _inherits(Dashboard, _Component), _createClass(Dashboard, [ { 27999 key: "componentDidMount", 28000 value: function() { 28001 this.reconnect(); 28002 } 28003 }, { 28004 key: "render", 28005 value: function() { 28006 return _react2.default.createElement("div", { 28007 className: this.props.classes.dashboard, 28008 style: styles.dashboard 28009 }, _react2.default.createElement(_Header2.default, { 28010 switchSideBar: this.switchSideBar 28011 }), _react2.default.createElement(_Body2.default, { 28012 opened: this.state.sideBar, 28013 changeContent: this.changeContent, 28014 active: this.state.active, 28015 content: this.state.content, 28016 shouldUpdate: this.state.shouldUpdate, 28017 send: this.send 28018 })); 28019 } 28020 } ]), Dashboard; 28021 }(_react.Component); 28022 exports.default = (0, _withStyles2.default)(themeStyles)(Dashboard); 28023 }, function(module, exports, __webpack_require__) { 28024 module.exports = { 28025 default: __webpack_require__(441), 28026 __esModule: !0 28027 }; 28028 }, function(module, exports, __webpack_require__) { 28029 __webpack_require__(235), __webpack_require__(155), __webpack_require__(230), __webpack_require__(442), 28030 __webpack_require__(449), __webpack_require__(452), __webpack_require__(454), module.exports = __webpack_require__(17).Map; 28031 }, function(module, exports, __webpack_require__) { 28032 "use strict"; 28033 var strong = __webpack_require__(443), validate = __webpack_require__(243); 28034 module.exports = __webpack_require__(445)("Map", function(get) { 28035 return function() { 28036 return get(this, arguments.length > 0 ? arguments[0] : void 0); 28037 }; 28038 }, { 28039 get: function(key) { 28040 var entry = strong.getEntry(validate(this, "Map"), key); 28041 return entry && entry.v; 28042 }, 28043 set: function(key, value) { 28044 return strong.def(validate(this, "Map"), 0 === key ? 0 : key, value); 28045 } 28046 }, strong, !0); 28047 }, function(module, exports, __webpack_require__) { 28048 "use strict"; 28049 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) { 28050 var entry, index = fastKey(key); 28051 if ("F" !== index) return that._i[index]; 28052 for (entry = that._f; entry; entry = entry.n) if (entry.k == key) return entry; 28053 }; 28054 module.exports = { 28055 getConstructor: function(wrapper, NAME, IS_MAP, ADDER) { 28056 var C = wrapper(function(that, iterable) { 28057 anInstance(that, C, NAME, "_i"), that._t = NAME, that._i = create(null), that._f = void 0, 28058 that._l = void 0, that[SIZE] = 0, void 0 != iterable && forOf(iterable, IS_MAP, that[ADDER], that); 28059 }); 28060 return redefineAll(C.prototype, { 28061 clear: function() { 28062 for (var that = validate(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) entry.r = !0, 28063 entry.p && (entry.p = entry.p.n = void 0), delete data[entry.i]; 28064 that._f = that._l = void 0, that[SIZE] = 0; 28065 }, 28066 delete: function(key) { 28067 var that = validate(this, NAME), entry = getEntry(that, key); 28068 if (entry) { 28069 var next = entry.n, prev = entry.p; 28070 delete that._i[entry.i], entry.r = !0, prev && (prev.n = next), next && (next.p = prev), 28071 that._f == entry && (that._f = next), that._l == entry && (that._l = prev), that[SIZE]--; 28072 } 28073 return !!entry; 28074 }, 28075 forEach: function(callbackfn) { 28076 validate(this, NAME); 28077 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; 28078 }, 28079 has: function(key) { 28080 return !!getEntry(validate(this, NAME), key); 28081 } 28082 }), DESCRIPTORS && dP(C.prototype, "size", { 28083 get: function() { 28084 return validate(this, NAME)[SIZE]; 28085 } 28086 }), C; 28087 }, 28088 def: function(that, key, value) { 28089 var prev, index, entry = getEntry(that, key); 28090 return entry ? entry.v = value : (that._l = entry = { 28091 i: index = fastKey(key, !0), 28092 k: key, 28093 v: value, 28094 p: prev = that._l, 28095 n: void 0, 28096 r: !1 28097 }, that._f || (that._f = entry), prev && (prev.n = entry), that[SIZE]++, "F" !== index && (that._i[index] = entry)), 28098 that; 28099 }, 28100 getEntry: getEntry, 28101 setStrong: function(C, NAME, IS_MAP) { 28102 $iterDefine(C, NAME, function(iterated, kind) { 28103 this._t = validate(iterated, NAME), this._k = kind, this._l = void 0; 28104 }, function() { 28105 for (var that = this, kind = that._k, entry = that._l; entry && entry.r; ) entry = entry.p; 28106 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, 28107 step(1)); 28108 }, IS_MAP ? "entries" : "values", !IS_MAP, !0), setSpecies(NAME); 28109 } 28110 }; 28111 }, function(module, exports, __webpack_require__) { 28112 "use strict"; 28113 var global = __webpack_require__(24), core = __webpack_require__(17), dP = __webpack_require__(22), DESCRIPTORS = __webpack_require__(25), SPECIES = __webpack_require__(21)("species"); 28114 module.exports = function(KEY) { 28115 var C = "function" == typeof core[KEY] ? core[KEY] : global[KEY]; 28116 DESCRIPTORS && C && !C[SPECIES] && dP.f(C, SPECIES, { 28117 configurable: !0, 28118 get: function() { 28119 return this; 28120 } 28121 }); 28122 }; 28123 }, function(module, exports, __webpack_require__) { 28124 "use strict"; 28125 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); 28126 module.exports = function(NAME, wrapper, methods, common, IS_MAP, IS_WEAK) { 28127 var Base = global[NAME], C = Base, ADDER = IS_MAP ? "set" : "add", proto = C && C.prototype, O = {}; 28128 return DESCRIPTORS && "function" == typeof C && (IS_WEAK || proto.forEach && !fails(function() { 28129 new C().entries().next(); 28130 })) ? (C = wrapper(function(target, iterable) { 28131 anInstance(target, C, NAME, "_c"), target._c = new Base(), void 0 != iterable && forOf(iterable, IS_MAP, target[ADDER], target); 28132 }), each("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","), function(KEY) { 28133 var IS_ADDER = "add" == KEY || "set" == KEY; 28134 KEY in proto && (!IS_WEAK || "clear" != KEY) && hide(C.prototype, KEY, function(a, b) { 28135 if (anInstance(this, C, KEY), !IS_ADDER && IS_WEAK && !isObject(a)) return "get" == KEY && void 0; 28136 var result = this._c[KEY](0 === a ? 0 : a, b); 28137 return IS_ADDER ? this : result; 28138 }); 28139 }), IS_WEAK || dP(C.prototype, "size", { 28140 get: function() { 28141 return this._c.size; 28142 } 28143 })) : (C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER), redefineAll(C.prototype, methods), 28144 meta.NEED = !0), setToStringTag(C, NAME), O[NAME] = C, $export($export.G + $export.W + $export.F, O), 28145 IS_WEAK || common.setStrong(C, NAME, IS_MAP), C; 28146 }; 28147 }, function(module, exports, __webpack_require__) { 28148 var ctx = __webpack_require__(51), IObject = __webpack_require__(146), toObject = __webpack_require__(65), toLength = __webpack_require__(101), asc = __webpack_require__(447); 28149 module.exports = function(TYPE, $create) { 28150 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; 28151 return function($this, callbackfn, that) { 28152 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], 28153 res = f(val, index, O), TYPE)) if (IS_MAP) result[index] = res; else if (res) switch (TYPE) { 28154 case 3: 28155 return !0; 28156 28157 case 5: 28158 return val; 28159 28160 case 6: 28161 return index; 28162 28163 case 2: 28164 result.push(val); 28165 } else if (IS_EVERY) return !1; 28166 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result; 28167 }; 28168 }; 28169 }, function(module, exports, __webpack_require__) { 28170 var speciesConstructor = __webpack_require__(448); 28171 module.exports = function(original, length) { 28172 return new (speciesConstructor(original))(length); 28173 }; 28174 }, function(module, exports, __webpack_require__) { 28175 var isObject = __webpack_require__(35), isArray = __webpack_require__(232), SPECIES = __webpack_require__(21)("species"); 28176 module.exports = function(original) { 28177 var C; 28178 return isArray(original) && (C = original.constructor, "function" != typeof C || C !== Array && !isArray(C.prototype) || (C = void 0), 28179 isObject(C) && null === (C = C[SPECIES]) && (C = void 0)), void 0 === C ? Array : C; 28180 }; 28181 }, function(module, exports, __webpack_require__) { 28182 var $export = __webpack_require__(19); 28183 $export($export.P + $export.R, "Map", { 28184 toJSON: __webpack_require__(450)("Map") 28185 }); 28186 }, function(module, exports, __webpack_require__) { 28187 var classof = __webpack_require__(242), from = __webpack_require__(451); 28188 module.exports = function(NAME) { 28189 return function() { 28190 if (classof(this) != NAME) throw TypeError(NAME + "#toJSON isn't generic"); 28191 return from(this); 28192 }; 28193 }; 28194 }, function(module, exports, __webpack_require__) { 28195 var forOf = __webpack_require__(109); 28196 module.exports = function(iter, ITERATOR) { 28197 var result = []; 28198 return forOf(iter, !1, result.push, result, ITERATOR), result; 28199 }; 28200 }, function(module, exports, __webpack_require__) { 28201 __webpack_require__(453)("Map"); 28202 }, function(module, exports, __webpack_require__) { 28203 "use strict"; 28204 var $export = __webpack_require__(19); 28205 module.exports = function(COLLECTION) { 28206 $export($export.S, COLLECTION, { 28207 of: function() { 28208 for (var length = arguments.length, A = new Array(length); length--; ) A[length] = arguments[length]; 28209 return new this(A); 28210 } 28211 }); 28212 }; 28213 }, function(module, exports, __webpack_require__) { 28214 __webpack_require__(455)("Map"); 28215 }, function(module, exports, __webpack_require__) { 28216 "use strict"; 28217 var $export = __webpack_require__(19), aFunction = __webpack_require__(223), ctx = __webpack_require__(51), forOf = __webpack_require__(109); 28218 module.exports = function(COLLECTION) { 28219 $export($export.S, COLLECTION, { 28220 from: function(source) { 28221 var mapping, A, n, cb, mapFn = arguments[1]; 28222 return aFunction(this), mapping = void 0 !== mapFn, mapping && aFunction(mapFn), 28223 void 0 == source ? new this() : (A = [], mapping ? (n = 0, cb = ctx(mapFn, arguments[2], 2), 28224 forOf(source, !1, function(nextItem) { 28225 A.push(cb(nextItem, n++)); 28226 })) : forOf(source, !1, A.push, A), new this(A)); 28227 } 28228 }); 28229 }; 28230 }, function(module, exports, __webpack_require__) { 28231 module.exports = { 28232 default: __webpack_require__(457), 28233 __esModule: !0 28234 }; 28235 }, function(module, exports, __webpack_require__) { 28236 __webpack_require__(458), module.exports = -9007199254740991; 28237 }, function(module, exports, __webpack_require__) { 28238 var $export = __webpack_require__(19); 28239 $export($export.S, "Number", { 28240 MIN_SAFE_INTEGER: -9007199254740991 28241 }); 28242 }, function(module, exports, __webpack_require__) { 28243 "use strict"; 28244 function _defineProperty(obj, key, value) { 28245 return key in obj ? Object.defineProperty(obj, key, { 28246 value: value, 28247 enumerable: !0, 28248 configurable: !0, 28249 writable: !0 28250 }) : obj[key] = value, obj; 28251 } 28252 Object.defineProperty(exports, "__esModule", { 28253 value: !0 28254 }); 28255 var _ns$jss$ns$sheetOptio, _propTypes = __webpack_require__(1), _ns = __webpack_require__(245), ns = function(obj) { 28256 if (obj && obj.__esModule) return obj; 28257 var newObj = {}; 28258 if (null != obj) for (var key in obj) Object.prototype.hasOwnProperty.call(obj, key) && (newObj[key] = obj[key]); 28259 return newObj.default = obj, newObj; 28260 }(_ns), _propTypes2 = __webpack_require__(460), _propTypes3 = function(obj) { 28261 return obj && obj.__esModule ? obj : { 28262 default: obj 28263 }; 28264 }(_propTypes2); 28265 exports.default = (_ns$jss$ns$sheetOptio = {}, _defineProperty(_ns$jss$ns$sheetOptio, ns.jss, _propTypes3.default.jss), 28266 _defineProperty(_ns$jss$ns$sheetOptio, ns.sheetOptions, _propTypes.object), _defineProperty(_ns$jss$ns$sheetOptio, ns.sheetsRegistry, _propTypes3.default.registry), 28267 _defineProperty(_ns$jss$ns$sheetOptio, ns.managers, _propTypes.object), _ns$jss$ns$sheetOptio); 28268 }, function(module, exports, __webpack_require__) { 28269 "use strict"; 28270 Object.defineProperty(exports, "__esModule", { 28271 value: !0 28272 }); 28273 var _propTypes = __webpack_require__(1); 28274 exports.default = { 28275 jss: (0, _propTypes.shape)({ 28276 options: (0, _propTypes.shape)({ 28277 createGenerateClassName: _propTypes.func.isRequired 28278 }).isRequired, 28279 createStyleSheet: _propTypes.func.isRequired, 28280 removeStyleSheet: _propTypes.func.isRequired 28281 }), 28282 registry: (0, _propTypes.shape)({ 28283 add: _propTypes.func.isRequired, 28284 toString: _propTypes.func.isRequired 28285 }) 28286 }; 28287 }, function(module, exports, __webpack_require__) { 28288 "use strict"; 28289 Object.defineProperty(exports, "__esModule", { 28290 value: !0 28291 }); 28292 var _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj) { 28293 return typeof obj; 28294 } : function(obj) { 28295 return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 28296 }; 28297 exports.default = function(styles) { 28298 function extract(styles) { 28299 var to = null; 28300 for (var key in styles) { 28301 var value = styles[key], type = void 0 === value ? "undefined" : _typeof(value); 28302 if ("function" === type) to || (to = {}), to[key] = value; else if ("object" === type && null !== value && !Array.isArray(value)) { 28303 var extracted = extract(value); 28304 extracted && (to || (to = {}), to[key] = extracted); 28305 } 28306 } 28307 return to; 28308 } 28309 return extract(styles); 28310 }; 28311 }, function(module, exports, __webpack_require__) { 28312 "use strict"; 28313 function _classCallCheck(instance, Constructor) { 28314 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 28315 } 28316 Object.defineProperty(exports, "__esModule", { 28317 value: !0 28318 }); 28319 var _createClass = function() { 28320 function defineProperties(target, props) { 28321 for (var i = 0; i < props.length; i++) { 28322 var descriptor = props[i]; 28323 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 28324 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 28325 } 28326 } 28327 return function(Constructor, protoProps, staticProps) { 28328 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 28329 Constructor; 28330 }; 28331 }(), _warning = __webpack_require__(11), _warning2 = function(obj) { 28332 return obj && obj.__esModule ? obj : { 28333 default: obj 28334 }; 28335 }(_warning), SheetsManager = function() { 28336 function SheetsManager() { 28337 _classCallCheck(this, SheetsManager), this.sheets = [], this.refs = [], this.keys = []; 28338 } 28339 return _createClass(SheetsManager, [ { 28340 key: "get", 28341 value: function(key) { 28342 var index = this.keys.indexOf(key); 28343 return this.sheets[index]; 28344 } 28345 }, { 28346 key: "add", 28347 value: function(key, sheet) { 28348 var sheets = this.sheets, refs = this.refs, keys = this.keys, index = sheets.indexOf(sheet); 28349 return -1 !== index ? index : (sheets.push(sheet), refs.push(0), keys.push(key), 28350 sheets.length - 1); 28351 } 28352 }, { 28353 key: "manage", 28354 value: function(key) { 28355 var index = this.keys.indexOf(key), sheet = this.sheets[index]; 28356 return 0 === this.refs[index] && sheet.attach(), this.refs[index]++, this.keys[index] || this.keys.splice(index, 0, key), 28357 sheet; 28358 } 28359 }, { 28360 key: "unmanage", 28361 value: function(key) { 28362 var index = this.keys.indexOf(key); 28363 if (-1 === index) return void (0, _warning2.default)(!1, "SheetsManager: can't find sheet to unmanage"); 28364 this.refs[index] > 0 && 0 === --this.refs[index] && this.sheets[index].detach(); 28365 } 28366 }, { 28367 key: "size", 28368 get: function() { 28369 return this.keys.length; 28370 } 28371 } ]), SheetsManager; 28372 }(); 28373 exports.default = SheetsManager; 28374 }, function(module, exports, __webpack_require__) { 28375 "use strict"; 28376 function cloneStyle(style) { 28377 if (null == style) return style; 28378 var typeOfStyle = void 0 === style ? "undefined" : _typeof(style); 28379 if ("string" === typeOfStyle || "number" === typeOfStyle || "function" === typeOfStyle) return style; 28380 if (isArray(style)) return style.map(cloneStyle); 28381 if ((0, _isObservable2.default)(style)) return style; 28382 var newStyle = {}; 28383 for (var name in style) { 28384 var value = style[name]; 28385 "object" !== (void 0 === value ? "undefined" : _typeof(value)) ? newStyle[name] = value : newStyle[name] = cloneStyle(value); 28386 } 28387 return newStyle; 28388 } 28389 Object.defineProperty(exports, "__esModule", { 28390 value: !0 28391 }); 28392 var _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj) { 28393 return typeof obj; 28394 } : function(obj) { 28395 return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 28396 }; 28397 exports.default = cloneStyle; 28398 var _isObservable = __webpack_require__(248), _isObservable2 = function(obj) { 28399 return obj && obj.__esModule ? obj : { 28400 default: obj 28401 }; 28402 }(_isObservable), isArray = Array.isArray; 28403 }, function(module, __webpack_exports__, __webpack_require__) { 28404 "use strict"; 28405 Object.defineProperty(__webpack_exports__, "__esModule", { 28406 value: !0 28407 }), function(global, module) { 28408 var root, __WEBPACK_IMPORTED_MODULE_0__ponyfill_js__ = __webpack_require__(466); 28409 root = "undefined" != typeof self ? self : "undefined" != typeof window ? window : void 0 !== global ? global : module; 28410 var result = Object(__WEBPACK_IMPORTED_MODULE_0__ponyfill_js__.a)(root); 28411 __webpack_exports__.default = result; 28412 }.call(__webpack_exports__, __webpack_require__(40), __webpack_require__(465)(module)); 28413 }, function(module, exports) { 28414 module.exports = function(originalModule) { 28415 if (!originalModule.webpackPolyfill) { 28416 var module = Object.create(originalModule); 28417 module.children || (module.children = []), Object.defineProperty(module, "loaded", { 28418 enumerable: !0, 28419 get: function() { 28420 return module.l; 28421 } 28422 }), Object.defineProperty(module, "id", { 28423 enumerable: !0, 28424 get: function() { 28425 return module.i; 28426 } 28427 }), Object.defineProperty(module, "exports", { 28428 enumerable: !0 28429 }), module.webpackPolyfill = 1; 28430 } 28431 return module; 28432 }; 28433 }, function(module, __webpack_exports__, __webpack_require__) { 28434 "use strict"; 28435 function symbolObservablePonyfill(root) { 28436 var result, Symbol = root.Symbol; 28437 return "function" == typeof Symbol ? Symbol.observable ? result = Symbol.observable : (result = Symbol("observable"), 28438 Symbol.observable = result) : result = "@@observable", result; 28439 } 28440 __webpack_exports__.a = symbolObservablePonyfill; 28441 }, function(module, exports, __webpack_require__) { 28442 "use strict"; 28443 (function(global, process) { 28444 Object.defineProperty(exports, "__esModule", { 28445 value: !0 28446 }); 28447 var CSS = global.CSS, env = process.env.NODE_ENV, escapeRegex = /([[\].#*$><+~=|^:(),"'` + "`"))) + ((`])/g; 28448 exports.default = function(str) { 28449 return "production" === env ? str : CSS && CSS.escape ? CSS.escape(str) : str.replace(escapeRegex, "\\$1"); 28450 }; 28451 }).call(exports, __webpack_require__(40), __webpack_require__(2)); 28452 }, function(module, exports, __webpack_require__) { 28453 "use strict"; 28454 (function(global) { 28455 Object.defineProperty(exports, "__esModule", { 28456 value: !0 28457 }); 28458 var ns = "2f1acc6c3a606b082e5eef5e54414ffb"; 28459 null == global[ns] && (global[ns] = 0), exports.default = global[ns]++; 28460 }).call(exports, __webpack_require__(40)); 28461 }, function(module, exports, __webpack_require__) { 28462 "use strict"; 28463 function _interopRequireDefault(obj) { 28464 return obj && obj.__esModule ? obj : { 28465 default: obj 28466 }; 28467 } 28468 function _classCallCheck(instance, Constructor) { 28469 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 28470 } 28471 Object.defineProperty(exports, "__esModule", { 28472 value: !0 28473 }); 28474 var _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj) { 28475 return typeof obj; 28476 } : function(obj) { 28477 return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 28478 }, _extends = Object.assign || function(target) { 28479 for (var i = 1; i < arguments.length; i++) { 28480 var source = arguments[i]; 28481 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 28482 } 28483 return target; 28484 }, _createClass = function() { 28485 function defineProperties(target, props) { 28486 for (var i = 0; i < props.length; i++) { 28487 var descriptor = props[i]; 28488 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 28489 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 28490 } 28491 } 28492 return function(Constructor, protoProps, staticProps) { 28493 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 28494 Constructor; 28495 }; 28496 }(), _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() { 28497 function Jss(options) { 28498 _classCallCheck(this, Jss), this.id = instanceCounter++, this.version = "9.8.0", 28499 this.plugins = new _PluginsRegistry2.default(), this.options = { 28500 createGenerateClassName: _createGenerateClassName2.default, 28501 Renderer: _isInBrowser2.default ? _DomRenderer2.default : _VirtualRenderer2.default, 28502 plugins: [] 28503 }, this.generateClassName = (0, _createGenerateClassName2.default)(), this.use.apply(this, defaultPlugins), 28504 this.setup(options); 28505 } 28506 return _createClass(Jss, [ { 28507 key: "setup", 28508 value: function() { 28509 var options = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; 28510 return options.createGenerateClassName && (this.options.createGenerateClassName = options.createGenerateClassName, 28511 this.generateClassName = options.createGenerateClassName()), null != options.insertionPoint && (this.options.insertionPoint = options.insertionPoint), 28512 (options.virtual || options.Renderer) && (this.options.Renderer = options.Renderer || (options.virtual ? _VirtualRenderer2.default : _DomRenderer2.default)), 28513 options.plugins && this.use.apply(this, options.plugins), this; 28514 } 28515 }, { 28516 key: "createStyleSheet", 28517 value: function(styles) { 28518 var options = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, index = options.index; 28519 "number" != typeof index && (index = 0 === _sheets2.default.index ? 0 : _sheets2.default.index + 1); 28520 var sheet = new _StyleSheet2.default(styles, _extends({}, options, { 28521 jss: this, 28522 generateClassName: options.generateClassName || this.generateClassName, 28523 insertionPoint: this.options.insertionPoint, 28524 Renderer: this.options.Renderer, 28525 index: index 28526 })); 28527 return this.plugins.onProcessSheet(sheet), sheet; 28528 } 28529 }, { 28530 key: "removeStyleSheet", 28531 value: function(sheet) { 28532 return sheet.detach(), _sheets2.default.remove(sheet), this; 28533 } 28534 }, { 28535 key: "createRule", 28536 value: function(name) { 28537 var style = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, options = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}; 28538 "object" === (void 0 === name ? "undefined" : _typeof(name)) && (options = style, 28539 style = name, name = void 0); 28540 var ruleOptions = options; 28541 ruleOptions.jss = this, ruleOptions.Renderer = this.options.Renderer, ruleOptions.generateClassName || (ruleOptions.generateClassName = this.generateClassName), 28542 ruleOptions.classes || (ruleOptions.classes = {}); 28543 var rule = (0, _createRule3.default)(name, style, ruleOptions); 28544 return !ruleOptions.selector && rule instanceof _StyleRule2.default && (rule.selector = "." + ruleOptions.generateClassName(rule)), 28545 this.plugins.onProcessRule(rule), rule; 28546 } 28547 }, { 28548 key: "use", 28549 value: function() { 28550 for (var _this = this, _len = arguments.length, plugins = Array(_len), _key = 0; _key < _len; _key++) plugins[_key] = arguments[_key]; 28551 return plugins.forEach(function(plugin) { 28552 -1 === _this.options.plugins.indexOf(plugin) && (_this.options.plugins.push(plugin), 28553 _this.plugins.use(plugin)); 28554 }), this; 28555 } 28556 } ]), Jss; 28557 }(); 28558 exports.default = Jss; 28559 }, function(module, exports, __webpack_require__) { 28560 "use strict"; 28561 function _classCallCheck(instance, Constructor) { 28562 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 28563 } 28564 Object.defineProperty(exports, "__esModule", { 28565 value: !0 28566 }); 28567 var _createClass = function() { 28568 function defineProperties(target, props) { 28569 for (var i = 0; i < props.length; i++) { 28570 var descriptor = props[i]; 28571 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 28572 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 28573 } 28574 } 28575 return function(Constructor, protoProps, staticProps) { 28576 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 28577 Constructor; 28578 }; 28579 }(), _warning = __webpack_require__(11), _warning2 = function(obj) { 28580 return obj && obj.__esModule ? obj : { 28581 default: obj 28582 }; 28583 }(_warning), PluginsRegistry = function() { 28584 function PluginsRegistry() { 28585 _classCallCheck(this, PluginsRegistry), this.hooks = { 28586 onCreateRule: [], 28587 onProcessRule: [], 28588 onProcessStyle: [], 28589 onProcessSheet: [], 28590 onChangeValue: [], 28591 onUpdate: [] 28592 }; 28593 } 28594 return _createClass(PluginsRegistry, [ { 28595 key: "onCreateRule", 28596 value: function(name, decl, options) { 28597 for (var i = 0; i < this.hooks.onCreateRule.length; i++) { 28598 var rule = this.hooks.onCreateRule[i](name, decl, options); 28599 if (rule) return rule; 28600 } 28601 return null; 28602 } 28603 }, { 28604 key: "onProcessRule", 28605 value: function(rule) { 28606 if (!rule.isProcessed) { 28607 for (var sheet = rule.options.sheet, i = 0; i < this.hooks.onProcessRule.length; i++) this.hooks.onProcessRule[i](rule, sheet); 28608 rule.style && this.onProcessStyle(rule.style, rule, sheet), rule.isProcessed = !0; 28609 } 28610 } 28611 }, { 28612 key: "onProcessStyle", 28613 value: function(style, rule, sheet) { 28614 for (var nextStyle = style, i = 0; i < this.hooks.onProcessStyle.length; i++) nextStyle = this.hooks.onProcessStyle[i](nextStyle, rule, sheet), 28615 rule.style = nextStyle; 28616 } 28617 }, { 28618 key: "onProcessSheet", 28619 value: function(sheet) { 28620 for (var i = 0; i < this.hooks.onProcessSheet.length; i++) this.hooks.onProcessSheet[i](sheet); 28621 } 28622 }, { 28623 key: "onUpdate", 28624 value: function(data, rule, sheet) { 28625 for (var i = 0; i < this.hooks.onUpdate.length; i++) this.hooks.onUpdate[i](data, rule, sheet); 28626 } 28627 }, { 28628 key: "onChangeValue", 28629 value: function(value, prop, rule) { 28630 for (var processedValue = value, i = 0; i < this.hooks.onChangeValue.length; i++) processedValue = this.hooks.onChangeValue[i](processedValue, prop, rule); 28631 return processedValue; 28632 } 28633 }, { 28634 key: "use", 28635 value: function(plugin) { 28636 for (var name in plugin) this.hooks[name] ? this.hooks[name].push(plugin[name]) : (0, 28637 _warning2.default)(!1, '[JSS] Unknown hook "%s".', name); 28638 } 28639 } ]), PluginsRegistry; 28640 }(); 28641 exports.default = PluginsRegistry; 28642 }, function(module, exports, __webpack_require__) { 28643 "use strict"; 28644 function _interopRequireDefault(obj) { 28645 return obj && obj.__esModule ? obj : { 28646 default: obj 28647 }; 28648 } 28649 Object.defineProperty(exports, "__esModule", { 28650 value: !0 28651 }); 28652 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 = { 28653 "@charset": _SimpleRule2.default, 28654 "@import": _SimpleRule2.default, 28655 "@namespace": _SimpleRule2.default, 28656 "@keyframes": _KeyframesRule2.default, 28657 "@media": _ConditionalRule2.default, 28658 "@supports": _ConditionalRule2.default, 28659 "@font-face": _FontFaceRule2.default, 28660 "@viewport": _ViewportRule2.default, 28661 "@-ms-viewport": _ViewportRule2.default 28662 }; 28663 exports.default = Object.keys(classes).map(function(key) { 28664 var re = new RegExp("^" + key); 28665 return { 28666 onCreateRule: function(name, decl, options) { 28667 return re.test(name) ? new classes[key](name, decl, options) : null; 28668 } 28669 }; 28670 }); 28671 }, function(module, exports, __webpack_require__) { 28672 "use strict"; 28673 function _classCallCheck(instance, Constructor) { 28674 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 28675 } 28676 Object.defineProperty(exports, "__esModule", { 28677 value: !0 28678 }); 28679 var _createClass = function() { 28680 function defineProperties(target, props) { 28681 for (var i = 0; i < props.length; i++) { 28682 var descriptor = props[i]; 28683 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 28684 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 28685 } 28686 } 28687 return function(Constructor, protoProps, staticProps) { 28688 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 28689 Constructor; 28690 }; 28691 }(), SimpleRule = function() { 28692 function SimpleRule(key, value, options) { 28693 _classCallCheck(this, SimpleRule), this.type = "simple", this.isProcessed = !1, 28694 this.key = key, this.value = value, this.options = options; 28695 } 28696 return _createClass(SimpleRule, [ { 28697 key: "toString", 28698 value: function(options) { 28699 if (Array.isArray(this.value)) { 28700 for (var str = "", index = 0; index < this.value.length; index++) str += this.key + " " + this.value[index] + ";", 28701 this.value[index + 1] && (str += "\n"); 28702 return str; 28703 } 28704 return this.key + " " + this.value + ";"; 28705 } 28706 } ]), SimpleRule; 28707 }(); 28708 exports.default = SimpleRule; 28709 }, function(module, exports, __webpack_require__) { 28710 "use strict"; 28711 function _classCallCheck(instance, Constructor) { 28712 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 28713 } 28714 Object.defineProperty(exports, "__esModule", { 28715 value: !0 28716 }); 28717 var _extends = Object.assign || function(target) { 28718 for (var i = 1; i < arguments.length; i++) { 28719 var source = arguments[i]; 28720 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 28721 } 28722 return target; 28723 }, _createClass = function() { 28724 function defineProperties(target, props) { 28725 for (var i = 0; i < props.length; i++) { 28726 var descriptor = props[i]; 28727 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 28728 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 28729 } 28730 } 28731 return function(Constructor, protoProps, staticProps) { 28732 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 28733 Constructor; 28734 }; 28735 }(), _RuleList = __webpack_require__(80), _RuleList2 = function(obj) { 28736 return obj && obj.__esModule ? obj : { 28737 default: obj 28738 }; 28739 }(_RuleList), KeyframesRule = function() { 28740 function KeyframesRule(key, frames, options) { 28741 _classCallCheck(this, KeyframesRule), this.type = "keyframes", this.isProcessed = !1, 28742 this.key = key, this.options = options, this.rules = new _RuleList2.default(_extends({}, options, { 28743 parent: this 28744 })); 28745 for (var name in frames) this.rules.add(name, frames[name], _extends({}, this.options, { 28746 parent: this, 28747 selector: name 28748 })); 28749 this.rules.process(); 28750 } 28751 return _createClass(KeyframesRule, [ { 28752 key: "toString", 28753 value: function() { 28754 var options = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : { 28755 indent: 1 28756 }, inner = this.rules.toString(options); 28757 return inner && (inner += "\n"), this.key + " {\n" + inner + "}"; 28758 } 28759 } ]), KeyframesRule; 28760 }(); 28761 exports.default = KeyframesRule; 28762 }, function(module, exports, __webpack_require__) { 28763 "use strict"; 28764 function _classCallCheck(instance, Constructor) { 28765 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 28766 } 28767 Object.defineProperty(exports, "__esModule", { 28768 value: !0 28769 }); 28770 var _extends = Object.assign || function(target) { 28771 for (var i = 1; i < arguments.length; i++) { 28772 var source = arguments[i]; 28773 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 28774 } 28775 return target; 28776 }, _createClass = function() { 28777 function defineProperties(target, props) { 28778 for (var i = 0; i < props.length; i++) { 28779 var descriptor = props[i]; 28780 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 28781 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 28782 } 28783 } 28784 return function(Constructor, protoProps, staticProps) { 28785 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 28786 Constructor; 28787 }; 28788 }(), _RuleList = __webpack_require__(80), _RuleList2 = function(obj) { 28789 return obj && obj.__esModule ? obj : { 28790 default: obj 28791 }; 28792 }(_RuleList), ConditionalRule = function() { 28793 function ConditionalRule(key, styles, options) { 28794 _classCallCheck(this, ConditionalRule), this.type = "conditional", this.isProcessed = !1, 28795 this.key = key, this.options = options, this.rules = new _RuleList2.default(_extends({}, options, { 28796 parent: this 28797 })); 28798 for (var name in styles) this.rules.add(name, styles[name]); 28799 this.rules.process(); 28800 } 28801 return _createClass(ConditionalRule, [ { 28802 key: "getRule", 28803 value: function(name) { 28804 return this.rules.get(name); 28805 } 28806 }, { 28807 key: "indexOf", 28808 value: function(rule) { 28809 return this.rules.indexOf(rule); 28810 } 28811 }, { 28812 key: "addRule", 28813 value: function(name, style, options) { 28814 var rule = this.rules.add(name, style, options); 28815 return this.options.jss.plugins.onProcessRule(rule), rule; 28816 } 28817 }, { 28818 key: "toString", 28819 value: function() { 28820 var options = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : { 28821 indent: 1 28822 }, inner = this.rules.toString(options); 28823 return inner ? this.key + " {\n" + inner + "\n}" : ""; 28824 } 28825 } ]), ConditionalRule; 28826 }(); 28827 exports.default = ConditionalRule; 28828 }, function(module, exports, __webpack_require__) { 28829 "use strict"; 28830 function _classCallCheck(instance, Constructor) { 28831 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 28832 } 28833 Object.defineProperty(exports, "__esModule", { 28834 value: !0 28835 }); 28836 var _createClass = function() { 28837 function defineProperties(target, props) { 28838 for (var i = 0; i < props.length; i++) { 28839 var descriptor = props[i]; 28840 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 28841 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 28842 } 28843 } 28844 return function(Constructor, protoProps, staticProps) { 28845 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 28846 Constructor; 28847 }; 28848 }(), _toCss = __webpack_require__(163), _toCss2 = function(obj) { 28849 return obj && obj.__esModule ? obj : { 28850 default: obj 28851 }; 28852 }(_toCss), FontFaceRule = function() { 28853 function FontFaceRule(key, style, options) { 28854 _classCallCheck(this, FontFaceRule), this.type = "font-face", this.isProcessed = !1, 28855 this.key = key, this.style = style, this.options = options; 28856 } 28857 return _createClass(FontFaceRule, [ { 28858 key: "toString", 28859 value: function(options) { 28860 if (Array.isArray(this.style)) { 28861 for (var str = "", index = 0; index < this.style.length; index++) str += (0, _toCss2.default)(this.key, this.style[index]), 28862 this.style[index + 1] && (str += "\n"); 28863 return str; 28864 } 28865 return (0, _toCss2.default)(this.key, this.style, options); 28866 } 28867 } ]), FontFaceRule; 28868 }(); 28869 exports.default = FontFaceRule; 28870 }, function(module, exports, __webpack_require__) { 28871 "use strict"; 28872 function _classCallCheck(instance, Constructor) { 28873 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 28874 } 28875 Object.defineProperty(exports, "__esModule", { 28876 value: !0 28877 }); 28878 var _createClass = function() { 28879 function defineProperties(target, props) { 28880 for (var i = 0; i < props.length; i++) { 28881 var descriptor = props[i]; 28882 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 28883 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 28884 } 28885 } 28886 return function(Constructor, protoProps, staticProps) { 28887 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 28888 Constructor; 28889 }; 28890 }(), _toCss = __webpack_require__(163), _toCss2 = function(obj) { 28891 return obj && obj.__esModule ? obj : { 28892 default: obj 28893 }; 28894 }(_toCss), ViewportRule = function() { 28895 function ViewportRule(key, style, options) { 28896 _classCallCheck(this, ViewportRule), this.type = "viewport", this.isProcessed = !1, 28897 this.key = key, this.style = style, this.options = options; 28898 } 28899 return _createClass(ViewportRule, [ { 28900 key: "toString", 28901 value: function(options) { 28902 return (0, _toCss2.default)(this.key, this.style, options); 28903 } 28904 } ]), ViewportRule; 28905 }(); 28906 exports.default = ViewportRule; 28907 }, function(module, exports, __webpack_require__) { 28908 "use strict"; 28909 function _interopRequireDefault(obj) { 28910 return obj && obj.__esModule ? obj : { 28911 default: obj 28912 }; 28913 } 28914 Object.defineProperty(exports, "__esModule", { 28915 value: !0 28916 }); 28917 var _StyleRule = __webpack_require__(66), _StyleRule2 = _interopRequireDefault(_StyleRule), _createRule = __webpack_require__(111), _createRule2 = _interopRequireDefault(_createRule), _isObservable = __webpack_require__(248), _isObservable2 = _interopRequireDefault(_isObservable); 28918 exports.default = { 28919 onCreateRule: function(name, decl, options) { 28920 if (!(0, _isObservable2.default)(decl)) return null; 28921 var style$ = decl, rule = (0, _createRule2.default)(name, {}, options); 28922 return style$.subscribe(function(style) { 28923 for (var prop in style) rule.prop(prop, style[prop]); 28924 }), rule; 28925 }, 28926 onProcessRule: function(rule) { 28927 if (rule instanceof _StyleRule2.default) { 28928 var styleRule = rule, style = styleRule.style; 28929 for (var prop in style) { 28930 (function(prop) { 28931 var value = style[prop]; 28932 if (!(0, _isObservable2.default)(value)) return "continue"; 28933 delete style[prop], value.subscribe({ 28934 next: function(nextValue) { 28935 styleRule.prop(prop, nextValue); 28936 } 28937 }); 28938 })(prop); 28939 } 28940 } 28941 } 28942 }; 28943 }, function(module, exports, __webpack_require__) { 28944 "use strict"; 28945 function _interopRequireDefault(obj) { 28946 return obj && obj.__esModule ? obj : { 28947 default: obj 28948 }; 28949 } 28950 Object.defineProperty(exports, "__esModule", { 28951 value: !0 28952 }); 28953 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; 28954 exports.default = { 28955 onCreateRule: function(name, decl, options) { 28956 if ("function" != typeof decl) return null; 28957 var rule = (0, _createRule2.default)(name, {}, options); 28958 return rule[fnStyleNs] = decl, rule; 28959 }, 28960 onProcessStyle: function(style, rule) { 28961 var fn = {}; 28962 for (var prop in style) { 28963 var value = style[prop]; 28964 "function" == typeof value && (delete style[prop], fn[prop] = value); 28965 } 28966 return rule = rule, rule[fnValuesNs] = fn, style; 28967 }, 28968 onUpdate: function(data, rule) { 28969 if (rule.rules instanceof _RuleList2.default) return void rule.rules.update(data); 28970 if (rule instanceof _StyleRule2.default) { 28971 if (rule = rule, rule[fnValuesNs]) for (var prop in rule[fnValuesNs]) rule.prop(prop, rule[fnValuesNs][prop](data)); 28972 rule = rule; 28973 var fnStyle = rule[fnStyleNs]; 28974 if (fnStyle) { 28975 var style = fnStyle(data); 28976 for (var _prop in style) rule.prop(_prop, style[_prop]); 28977 } 28978 } 28979 } 28980 }; 28981 }, function(module, exports, __webpack_require__) { 28982 "use strict"; 28983 function _interopRequireDefault(obj) { 28984 return obj && obj.__esModule ? obj : { 28985 default: obj 28986 }; 28987 } 28988 function _classCallCheck(instance, Constructor) { 28989 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 28990 } 28991 function getPropertyValue(cssRule, prop) { 28992 try { 28993 return cssRule.style.getPropertyValue(prop); 28994 } catch (err) { 28995 return ""; 28996 } 28997 } 28998 function setProperty(cssRule, prop, value) { 28999 try { 29000 var cssValue = value; 29001 if (Array.isArray(value) && (cssValue = (0, _toCssValue2.default)(value, !0), "!important" === value[value.length - 1])) return cssRule.style.setProperty(prop, cssValue, "important"), 29002 !0; 29003 cssRule.style.setProperty(prop, cssValue); 29004 } catch (err) { 29005 return !1; 29006 } 29007 return !0; 29008 } 29009 function removeProperty(cssRule, prop) { 29010 try { 29011 cssRule.style.removeProperty(prop); 29012 } catch (err) { 29013 (0, _warning2.default)(!1, '[JSS] DOMException "%s" was thrown. Tried to remove property "%s".', err.message, prop); 29014 } 29015 } 29016 function setSelector(cssRule, selectorText) { 29017 return cssRule.selectorText = selectorText, cssRule.selectorText === selectorText; 29018 } 29019 function findHigherSheet(registry, options) { 29020 for (var i = 0; i < registry.length; i++) { 29021 var sheet = registry[i]; 29022 if (sheet.attached && sheet.options.index > options.index && sheet.options.insertionPoint === options.insertionPoint) return sheet; 29023 } 29024 return null; 29025 } 29026 function findHighestSheet(registry, options) { 29027 for (var i = registry.length - 1; i >= 0; i--) { 29028 var sheet = registry[i]; 29029 if (sheet.attached && sheet.options.insertionPoint === options.insertionPoint) return sheet; 29030 } 29031 return null; 29032 } 29033 function findCommentNode(text) { 29034 for (var head = getHead(), i = 0; i < head.childNodes.length; i++) { 29035 var node = head.childNodes[i]; 29036 if (8 === node.nodeType && node.nodeValue.trim() === text) return node; 29037 } 29038 return null; 29039 } 29040 function findPrevNode(options) { 29041 var registry = _sheets2.default.registry; 29042 if (registry.length > 0) { 29043 var sheet = findHigherSheet(registry, options); 29044 if (sheet) return sheet.renderer.element; 29045 if (sheet = findHighestSheet(registry, options)) return sheet.renderer.element.nextElementSibling; 29046 } 29047 var insertionPoint = options.insertionPoint; 29048 if (insertionPoint && "string" == typeof insertionPoint) { 29049 var comment = findCommentNode(insertionPoint); 29050 if (comment) return comment.nextSibling; 29051 (0, _warning2.default)("jss" === insertionPoint, '[JSS] Insertion point "%s" not found.', insertionPoint); 29052 } 29053 return null; 29054 } 29055 function insertStyle(style, options) { 29056 var insertionPoint = options.insertionPoint, prevNode = findPrevNode(options); 29057 if (prevNode) { 29058 var parentNode = prevNode.parentNode; 29059 return void (parentNode && parentNode.insertBefore(style, prevNode)); 29060 } 29061 if (insertionPoint && "number" == typeof insertionPoint.nodeType) { 29062 var insertionPointElement = insertionPoint, _parentNode = insertionPointElement.parentNode; 29063 return void (_parentNode ? _parentNode.insertBefore(style, insertionPointElement.nextSibling) : (0, 29064 _warning2.default)(!1, "[JSS] Insertion point is not in the DOM.")); 29065 } 29066 getHead().insertBefore(style, prevNode); 29067 } 29068 Object.defineProperty(exports, "__esModule", { 29069 value: !0 29070 }); 29071 var _createClass = function() { 29072 function defineProperties(target, props) { 29073 for (var i = 0; i < props.length; i++) { 29074 var descriptor = props[i]; 29075 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 29076 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 29077 } 29078 } 29079 return function(Constructor, protoProps, staticProps) { 29080 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 29081 Constructor; 29082 }; 29083 }(), _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) { 29084 var value = void 0; 29085 return function() { 29086 return value || (value = fn()), value; 29087 }; 29088 }, CSSRuleTypes = { 29089 STYLE_RULE: 1, 29090 KEYFRAMES_RULE: 7 29091 }, getKey = function() { 29092 var extractKey = function(cssText) { 29093 var from = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0; 29094 return cssText.substr(from, cssText.indexOf("{") - 1); 29095 }; 29096 return function(cssRule) { 29097 if (cssRule.type === CSSRuleTypes.STYLE_RULE) return cssRule.selectorText; 29098 if (cssRule.type === CSSRuleTypes.KEYFRAMES_RULE) { 29099 var name = cssRule.name; 29100 if (name) return "@keyframes " + name; 29101 var cssText = cssRule.cssText; 29102 return "@" + extractKey(cssText, cssText.indexOf("keyframes")); 29103 } 29104 return extractKey(cssRule.cssText); 29105 }; 29106 }(), getHead = memoize(function() { 29107 return document.head || document.getElementsByTagName("head")[0]; 29108 }), getUnescapedKeysMap = function() { 29109 var style = void 0, isAttached = !1; 29110 return function(rules) { 29111 var map = {}; 29112 style || (style = document.createElement("style")); 29113 for (var i = 0; i < rules.length; i++) { 29114 var rule = rules[i]; 29115 if (rule instanceof _StyleRule2.default) { 29116 var selector = rule.selector; 29117 if (selector && -1 !== selector.indexOf("\\")) { 29118 isAttached || (getHead().appendChild(style), isAttached = !0), style.textContent = selector + " {}"; 29119 var _style = style, sheet = _style.sheet; 29120 if (sheet) { 29121 var cssRules = sheet.cssRules; 29122 cssRules && (map[cssRules[0].selectorText] = rule.key); 29123 } 29124 } 29125 } 29126 } 29127 return isAttached && (getHead().removeChild(style), isAttached = !1), map; 29128 }; 29129 }(), getNonce = memoize(function() { 29130 var node = document.querySelector('meta[property="csp-nonce"]'); 29131 return node ? node.getAttribute("content") : null; 29132 }), DomRenderer = function() { 29133 function DomRenderer(sheet) { 29134 _classCallCheck(this, DomRenderer), this.getPropertyValue = getPropertyValue, this.setProperty = setProperty, 29135 this.removeProperty = removeProperty, this.setSelector = setSelector, this.getKey = getKey, 29136 this.getUnescapedKeysMap = getUnescapedKeysMap, this.hasInsertedRules = !1, sheet && _sheets2.default.add(sheet), 29137 this.sheet = sheet; 29138 var _ref = this.sheet ? this.sheet.options : {}, media = _ref.media, meta = _ref.meta, element = _ref.element; 29139 this.element = element || document.createElement("style"), this.element.type = "text/css", 29140 this.element.setAttribute("data-jss", ""), media && this.element.setAttribute("media", media), 29141 meta && this.element.setAttribute("data-meta", meta); 29142 var nonce = getNonce(); 29143 nonce && this.element.setAttribute("nonce", nonce); 29144 } 29145 return _createClass(DomRenderer, [ { 29146 key: "attach", 29147 value: function() { 29148 !this.element.parentNode && this.sheet && (this.hasInsertedRules && (this.deploy(), 29149 this.hasInsertedRules = !1), insertStyle(this.element, this.sheet.options)); 29150 } 29151 }, { 29152 key: "detach", 29153 value: function() { 29154 this.element.parentNode.removeChild(this.element); 29155 } 29156 }, { 29157 key: "deploy", 29158 value: function() { 29159 this.sheet && (this.element.textContent = "\n" + this.sheet.toString() + "\n"); 29160 } 29161 }, { 29162 key: "insertRule", 29163 value: function(rule, index) { 29164 var sheet = this.element.sheet, cssRules = sheet.cssRules, str = rule.toString(); 29165 if (index || (index = cssRules.length), !str) return !1; 29166 try { 29167 sheet.insertRule(str, index); 29168 } catch (err) { 29169 return (0, _warning2.default)(!1, "[JSS] Can not insert an unsupported rule \n\r%s", rule), 29170 !1; 29171 } 29172 return this.hasInsertedRules = !0, cssRules[index]; 29173 } 29174 }, { 29175 key: "deleteRule", 29176 value: function(cssRule) { 29177 var sheet = this.element.sheet, index = this.indexOf(cssRule); 29178 return -1 !== index && (sheet.deleteRule(index), !0); 29179 } 29180 }, { 29181 key: "indexOf", 29182 value: function(cssRule) { 29183 for (var cssRules = this.element.sheet.cssRules, _index = 0; _index < cssRules.length; _index++) if (cssRule === cssRules[_index]) return _index; 29184 return -1; 29185 } 29186 }, { 29187 key: "replaceRule", 29188 value: function(cssRule, rule) { 29189 var index = this.indexOf(cssRule), newCssRule = this.insertRule(rule, index); 29190 return this.element.sheet.deleteRule(index), newCssRule; 29191 } 29192 }, { 29193 key: "getRules", 29194 value: function() { 29195 return this.element.sheet.cssRules; 29196 } 29197 } ]), DomRenderer; 29198 }(); 29199 exports.default = DomRenderer; 29200 }, function(module, exports, __webpack_require__) { 29201 "use strict"; 29202 function _classCallCheck(instance, Constructor) { 29203 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 29204 } 29205 Object.defineProperty(exports, "__esModule", { 29206 value: !0 29207 }); 29208 var _createClass = function() { 29209 function defineProperties(target, props) { 29210 for (var i = 0; i < props.length; i++) { 29211 var descriptor = props[i]; 29212 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 29213 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 29214 } 29215 } 29216 return function(Constructor, protoProps, staticProps) { 29217 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 29218 Constructor; 29219 }; 29220 }(), VirtualRenderer = function() { 29221 function VirtualRenderer() { 29222 _classCallCheck(this, VirtualRenderer); 29223 } 29224 return _createClass(VirtualRenderer, [ { 29225 key: "setProperty", 29226 value: function() { 29227 return !0; 29228 } 29229 }, { 29230 key: "getPropertyValue", 29231 value: function() { 29232 return ""; 29233 } 29234 }, { 29235 key: "removeProperty", 29236 value: function() {} 29237 }, { 29238 key: "setSelector", 29239 value: function() { 29240 return !0; 29241 } 29242 }, { 29243 key: "getKey", 29244 value: function() { 29245 return ""; 29246 } 29247 }, { 29248 key: "attach", 29249 value: function() {} 29250 }, { 29251 key: "detach", 29252 value: function() {} 29253 }, { 29254 key: "deploy", 29255 value: function() {} 29256 }, { 29257 key: "insertRule", 29258 value: function() { 29259 return !1; 29260 } 29261 }, { 29262 key: "deleteRule", 29263 value: function() { 29264 return !0; 29265 } 29266 }, { 29267 key: "replaceRule", 29268 value: function() { 29269 return !1; 29270 } 29271 }, { 29272 key: "getRules", 29273 value: function() {} 29274 }, { 29275 key: "indexOf", 29276 value: function() { 29277 return -1; 29278 } 29279 } ]), VirtualRenderer; 29280 }(); 29281 exports.default = VirtualRenderer; 29282 }, function(module, exports, __webpack_require__) { 29283 "use strict"; 29284 function _interopRequireDefault(obj) { 29285 return obj && obj.__esModule ? obj : { 29286 default: obj 29287 }; 29288 } 29289 function jssPreset() { 29290 return { 29291 plugins: [ (0, _jssGlobal2.default)(), (0, _jssNested2.default)(), (0, _jssCamelCase2.default)(), (0, 29292 _jssDefaultUnit2.default)(), (0, _jssVendorPrefixer2.default)(), (0, _jssPropsSort2.default)() ] 29293 }; 29294 } 29295 Object.defineProperty(exports, "__esModule", { 29296 value: !0 29297 }); 29298 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); 29299 exports.default = jssPreset; 29300 }, function(module, exports, __webpack_require__) { 29301 "use strict"; 29302 function _classCallCheck(instance, Constructor) { 29303 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 29304 } 29305 function addScope(selector, scope) { 29306 for (var parts = selector.split(separatorRegExp), scoped = "", i = 0; i < parts.length; i++) scoped += scope + " " + parts[i].trim(), 29307 parts[i + 1] && (scoped += ", "); 29308 return scoped; 29309 } 29310 function handleNestedGlobalContainerRule(rule) { 29311 var options = rule.options, style = rule.style, rules = style[propKey]; 29312 if (rules) { 29313 for (var name in rules) options.sheet.addRule(name, rules[name], _extends({}, options, { 29314 selector: addScope(name, rule.selector) 29315 })); 29316 delete style[propKey]; 29317 } 29318 } 29319 function handlePrefixedGlobalRule(rule) { 29320 var options = rule.options, style = rule.style; 29321 for (var prop in style) if (prop.substr(0, propKey.length) === propKey) { 29322 var selector = addScope(prop.substr(propKey.length), rule.selector); 29323 options.sheet.addRule(selector, style[prop], _extends({}, options, { 29324 selector: selector 29325 })), delete style[prop]; 29326 } 29327 } 29328 function jssGlobal() { 29329 function onCreateRule(name, styles, options) { 29330 if (name === propKey) return new GlobalContainerRule(name, styles, options); 29331 if ("@" === name[0] && name.substr(0, prefixKey.length) === prefixKey) return new GlobalPrefixedRule(name, styles, options); 29332 var parent = options.parent; 29333 return parent && ("global" !== parent.type && "global" !== parent.options.parent.type || (options.global = !0)), 29334 options.global && (options.selector = name), null; 29335 } 29336 function onProcessRule(rule) { 29337 "style" === rule.type && (handleNestedGlobalContainerRule(rule), handlePrefixedGlobalRule(rule)); 29338 } 29339 return { 29340 onCreateRule: onCreateRule, 29341 onProcessRule: onProcessRule 29342 }; 29343 } 29344 Object.defineProperty(exports, "__esModule", { 29345 value: !0 29346 }); 29347 var _extends = Object.assign || function(target) { 29348 for (var i = 1; i < arguments.length; i++) { 29349 var source = arguments[i]; 29350 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 29351 } 29352 return target; 29353 }, _createClass = function() { 29354 function defineProperties(target, props) { 29355 for (var i = 0; i < props.length; i++) { 29356 var descriptor = props[i]; 29357 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 29358 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 29359 } 29360 } 29361 return function(Constructor, protoProps, staticProps) { 29362 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 29363 Constructor; 29364 }; 29365 }(); 29366 exports.default = jssGlobal; 29367 var _jss = __webpack_require__(246), propKey = "@global", prefixKey = "@global ", GlobalContainerRule = function() { 29368 function GlobalContainerRule(key, styles, options) { 29369 _classCallCheck(this, GlobalContainerRule), this.type = "global", this.key = key, 29370 this.options = options, this.rules = new _jss.RuleList(_extends({}, options, { 29371 parent: this 29372 })); 29373 for (var selector in styles) this.rules.add(selector, styles[selector], { 29374 selector: selector 29375 }); 29376 this.rules.process(); 29377 } 29378 return _createClass(GlobalContainerRule, [ { 29379 key: "getRule", 29380 value: function(name) { 29381 return this.rules.get(name); 29382 } 29383 }, { 29384 key: "addRule", 29385 value: function(name, style, options) { 29386 var rule = this.rules.add(name, style, options); 29387 return this.options.jss.plugins.onProcessRule(rule), rule; 29388 } 29389 }, { 29390 key: "indexOf", 29391 value: function(rule) { 29392 return this.rules.indexOf(rule); 29393 } 29394 }, { 29395 key: "toString", 29396 value: function() { 29397 return this.rules.toString(); 29398 } 29399 } ]), GlobalContainerRule; 29400 }(), GlobalPrefixedRule = function() { 29401 function GlobalPrefixedRule(name, style, options) { 29402 _classCallCheck(this, GlobalPrefixedRule), this.name = name, this.options = options; 29403 var selector = name.substr(prefixKey.length); 29404 this.rule = options.jss.createRule(selector, style, _extends({}, options, { 29405 parent: this, 29406 selector: selector 29407 })); 29408 } 29409 return _createClass(GlobalPrefixedRule, [ { 29410 key: "toString", 29411 value: function(options) { 29412 return this.rule.toString(options); 29413 } 29414 } ]), GlobalPrefixedRule; 29415 }(), separatorRegExp = /\s*,\s*/g; 29416 }, function(module, exports, __webpack_require__) { 29417 "use strict"; 29418 function jssNested() { 29419 function getReplaceRef(container) { 29420 return function(match, key) { 29421 var rule = container.getRule(key); 29422 return rule ? rule.selector : ((0, _warning2.default)(!1, "[JSS] Could not find the referenced rule %s in %s.", key, container.options.meta || container), 29423 key); 29424 }; 29425 } 29426 function replaceParentRefs(nestedProp, parentProp) { 29427 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++) { 29428 var nested = nestedSelectors[j]; 29429 result && (result += ", "), result += hasAnd(nested) ? nested.replace(parentRegExp, parent) : parent + " " + nested; 29430 } 29431 return result; 29432 } 29433 function getOptions(rule, container, options) { 29434 if (options) return _extends({}, options, { 29435 index: options.index + 1 29436 }); 29437 var nestingLevel = rule.options.nestingLevel; 29438 return nestingLevel = void 0 === nestingLevel ? 1 : nestingLevel + 1, _extends({}, rule.options, { 29439 nestingLevel: nestingLevel, 29440 index: container.indexOf(rule) + 1 29441 }); 29442 } 29443 function onProcessStyle(style, rule) { 29444 if ("style" !== rule.type) return style; 29445 var container = rule.options.parent, options = void 0, replaceRef = void 0; 29446 for (var prop in style) { 29447 var isNested = hasAnd(prop), isNestedConditional = "@" === prop[0]; 29448 if (isNested || isNestedConditional) { 29449 if (options = getOptions(rule, container, options), isNested) { 29450 var selector = replaceParentRefs(prop, rule.selector); 29451 replaceRef || (replaceRef = getReplaceRef(container)), selector = selector.replace(refRegExp, replaceRef), 29452 container.addRule(selector, style[prop], _extends({}, options, { 29453 selector: selector 29454 })); 29455 } else isNestedConditional && container.addRule(prop, null, options).addRule(rule.key, style[prop], { 29456 selector: rule.selector 29457 }); 29458 delete style[prop]; 29459 } 29460 } 29461 return style; 29462 } 29463 var hasAnd = function(str) { 29464 return -1 !== str.indexOf("&"); 29465 }; 29466 return { 29467 onProcessStyle: onProcessStyle 29468 }; 29469 } 29470 Object.defineProperty(exports, "__esModule", { 29471 value: !0 29472 }); 29473 var _extends = Object.assign || function(target) { 29474 for (var i = 1; i < arguments.length; i++) { 29475 var source = arguments[i]; 29476 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 29477 } 29478 return target; 29479 }; 29480 exports.default = jssNested; 29481 var _warning = __webpack_require__(11), _warning2 = function(obj) { 29482 return obj && obj.__esModule ? obj : { 29483 default: obj 29484 }; 29485 }(_warning), separatorRegExp = /\s*,\s*/g, parentRegExp = /&/g, refRegExp = /\$([\w-]+)/g; 29486 }, function(module, exports, __webpack_require__) { 29487 "use strict"; 29488 function convertCase(style) { 29489 var converted = {}; 29490 for (var prop in style) converted[(0, _hyphenateStyleName2.default)(prop)] = style[prop]; 29491 return style.fallbacks && (Array.isArray(style.fallbacks) ? converted.fallbacks = style.fallbacks.map(convertCase) : converted.fallbacks = convertCase(style.fallbacks)), 29492 converted; 29493 } 29494 function camelCase() { 29495 function onProcessStyle(style) { 29496 if (Array.isArray(style)) { 29497 for (var index = 0; index < style.length; index++) style[index] = convertCase(style[index]); 29498 return style; 29499 } 29500 return convertCase(style); 29501 } 29502 function onChangeValue(value, prop, rule) { 29503 var hyphenatedProp = (0, _hyphenateStyleName2.default)(prop); 29504 return prop === hyphenatedProp ? value : (rule.prop(hyphenatedProp, value), null); 29505 } 29506 return { 29507 onProcessStyle: onProcessStyle, 29508 onChangeValue: onChangeValue 29509 }; 29510 } 29511 Object.defineProperty(exports, "__esModule", { 29512 value: !0 29513 }), exports.default = camelCase; 29514 var _hyphenateStyleName = __webpack_require__(485), _hyphenateStyleName2 = function(obj) { 29515 return obj && obj.__esModule ? obj : { 29516 default: obj 29517 }; 29518 }(_hyphenateStyleName); 29519 }, function(module, exports, __webpack_require__) { 29520 "use strict"; 29521 function hyphenateStyleName(string) { 29522 return string in cache ? cache[string] : cache[string] = string.replace(uppercasePattern, "-$&").toLowerCase().replace(msPattern, "-ms-"); 29523 } 29524 var uppercasePattern = /[A-Z]/g, msPattern = /^ms-/, cache = {}; 29525 module.exports = hyphenateStyleName; 29526 }, function(module, exports, __webpack_require__) { 29527 "use strict"; 29528 function addCamelCasedVersion(obj) { 29529 var regExp = /(-[a-z])/g, replace = function(str) { 29530 return str[1].toUpperCase(); 29531 }, newObj = {}; 29532 for (var key in obj) newObj[key] = obj[key], newObj[key.replace(regExp, replace)] = obj[key]; 29533 return newObj; 29534 } 29535 function iterate(prop, value, options) { 29536 if (!value) return value; 29537 var convertedValue = value, type = void 0 === value ? "undefined" : _typeof(value); 29538 switch ("object" === type && Array.isArray(value) && (type = "array"), type) { 29539 case "object": 29540 if ("fallbacks" === prop) { 29541 for (var innerProp in value) value[innerProp] = iterate(innerProp, value[innerProp], options); 29542 break; 29543 } 29544 for (var _innerProp in value) value[_innerProp] = iterate(prop + "-" + _innerProp, value[_innerProp], options); 29545 break; 29546 29547 case "array": 29548 for (var i = 0; i < value.length; i++) value[i] = iterate(prop, value[i], options); 29549 break; 29550 29551 case "number": 29552 0 !== value && (convertedValue = value + (options[prop] || units[prop] || "")); 29553 } 29554 return convertedValue; 29555 } 29556 function defaultUnit() { 29557 function onProcessStyle(style, rule) { 29558 if ("style" !== rule.type) return style; 29559 for (var prop in style) style[prop] = iterate(prop, style[prop], camelCasedOptions); 29560 return style; 29561 } 29562 function onChangeValue(value, prop) { 29563 return iterate(prop, value, camelCasedOptions); 29564 } 29565 var options = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, camelCasedOptions = addCamelCasedVersion(options); 29566 return { 29567 onProcessStyle: onProcessStyle, 29568 onChangeValue: onChangeValue 29569 }; 29570 } 29571 Object.defineProperty(exports, "__esModule", { 29572 value: !0 29573 }); 29574 var _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj) { 29575 return typeof obj; 29576 } : function(obj) { 29577 return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 29578 }; 29579 exports.default = defaultUnit; 29580 var _defaultUnits = __webpack_require__(487), _defaultUnits2 = function(obj) { 29581 return obj && obj.__esModule ? obj : { 29582 default: obj 29583 }; 29584 }(_defaultUnits), units = addCamelCasedVersion(_defaultUnits2.default); 29585 }, function(module, exports, __webpack_require__) { 29586 "use strict"; 29587 Object.defineProperty(exports, "__esModule", { 29588 value: !0 29589 }), exports.default = { 29590 "animation-delay": "ms", 29591 "animation-duration": "ms", 29592 "background-position": "px", 29593 "background-position-x": "px", 29594 "background-position-y": "px", 29595 "background-size": "px", 29596 border: "px", 29597 "border-bottom": "px", 29598 "border-bottom-left-radius": "px", 29599 "border-bottom-right-radius": "px", 29600 "border-bottom-width": "px", 29601 "border-left": "px", 29602 "border-left-width": "px", 29603 "border-radius": "px", 29604 "border-right": "px", 29605 "border-right-width": "px", 29606 "border-spacing": "px", 29607 "border-top": "px", 29608 "border-top-left-radius": "px", 29609 "border-top-right-radius": "px", 29610 "border-top-width": "px", 29611 "border-width": "px", 29612 "border-after-width": "px", 29613 "border-before-width": "px", 29614 "border-end-width": "px", 29615 "border-horizontal-spacing": "px", 29616 "border-start-width": "px", 29617 "border-vertical-spacing": "px", 29618 bottom: "px", 29619 "box-shadow": "px", 29620 "column-gap": "px", 29621 "column-rule": "px", 29622 "column-rule-width": "px", 29623 "column-width": "px", 29624 "flex-basis": "px", 29625 "font-size": "px", 29626 "font-size-delta": "px", 29627 height: "px", 29628 left: "px", 29629 "letter-spacing": "px", 29630 "logical-height": "px", 29631 "logical-width": "px", 29632 margin: "px", 29633 "margin-after": "px", 29634 "margin-before": "px", 29635 "margin-bottom": "px", 29636 "margin-left": "px", 29637 "margin-right": "px", 29638 "margin-top": "px", 29639 "max-height": "px", 29640 "max-width": "px", 29641 "margin-end": "px", 29642 "margin-start": "px", 29643 "mask-position-x": "px", 29644 "mask-position-y": "px", 29645 "mask-size": "px", 29646 "max-logical-height": "px", 29647 "max-logical-width": "px", 29648 "min-height": "px", 29649 "min-width": "px", 29650 "min-logical-height": "px", 29651 "min-logical-width": "px", 29652 motion: "px", 29653 "motion-offset": "px", 29654 outline: "px", 29655 "outline-offset": "px", 29656 "outline-width": "px", 29657 padding: "px", 29658 "padding-bottom": "px", 29659 "padding-left": "px", 29660 "padding-right": "px", 29661 "padding-top": "px", 29662 "padding-after": "px", 29663 "padding-before": "px", 29664 "padding-end": "px", 29665 "padding-start": "px", 29666 "perspective-origin-x": "%", 29667 "perspective-origin-y": "%", 29668 perspective: "px", 29669 right: "px", 29670 "shape-margin": "px", 29671 size: "px", 29672 "text-indent": "px", 29673 "text-stroke": "px", 29674 "text-stroke-width": "px", 29675 top: "px", 29676 "transform-origin": "%", 29677 "transform-origin-x": "%", 29678 "transform-origin-y": "%", 29679 "transform-origin-z": "%", 29680 "transition-delay": "ms", 29681 "transition-duration": "ms", 29682 "vertical-align": "px", 29683 width: "px", 29684 "word-spacing": "px", 29685 "box-shadow-x": "px", 29686 "box-shadow-y": "px", 29687 "box-shadow-blur": "px", 29688 "box-shadow-spread": "px", 29689 "font-line-height": "px", 29690 "text-shadow-x": "px", 29691 "text-shadow-y": "px", 29692 "text-shadow-blur": "px" 29693 }; 29694 }, function(module, exports, __webpack_require__) { 29695 "use strict"; 29696 function jssVendorPrefixer() { 29697 function onProcessRule(rule) { 29698 "keyframes" === rule.type && (rule.key = "@" + vendor.prefix.css + rule.key.substr(1)); 29699 } 29700 function onProcessStyle(style, rule) { 29701 if ("style" !== rule.type) return style; 29702 for (var prop in style) { 29703 var value = style[prop], changeProp = !1, supportedProp = vendor.supportedProperty(prop); 29704 supportedProp && supportedProp !== prop && (changeProp = !0); 29705 var changeValue = !1, supportedValue = vendor.supportedValue(supportedProp, value); 29706 supportedValue && supportedValue !== value && (changeValue = !0), (changeProp || changeValue) && (changeProp && delete style[prop], 29707 style[supportedProp || prop] = supportedValue || value); 29708 } 29709 return style; 29710 } 29711 function onChangeValue(value, prop) { 29712 return vendor.supportedValue(prop, value); 29713 } 29714 return { 29715 onProcessRule: onProcessRule, 29716 onProcessStyle: onProcessStyle, 29717 onChangeValue: onChangeValue 29718 }; 29719 } 29720 Object.defineProperty(exports, "__esModule", { 29721 value: !0 29722 }), exports.default = jssVendorPrefixer; 29723 var _cssVendor = __webpack_require__(489), vendor = function(obj) { 29724 if (obj && obj.__esModule) return obj; 29725 var newObj = {}; 29726 if (null != obj) for (var key in obj) Object.prototype.hasOwnProperty.call(obj, key) && (newObj[key] = obj[key]); 29727 return newObj.default = obj, newObj; 29728 }(_cssVendor); 29729 }, function(module, exports, __webpack_require__) { 29730 "use strict"; 29731 function _interopRequireDefault(obj) { 29732 return obj && obj.__esModule ? obj : { 29733 default: obj 29734 }; 29735 } 29736 Object.defineProperty(exports, "__esModule", { 29737 value: !0 29738 }), exports.supportedValue = exports.supportedProperty = exports.prefix = void 0; 29739 var _prefix = __webpack_require__(165), _prefix2 = _interopRequireDefault(_prefix), _supportedProperty = __webpack_require__(490), _supportedProperty2 = _interopRequireDefault(_supportedProperty), _supportedValue = __webpack_require__(492), _supportedValue2 = _interopRequireDefault(_supportedValue); 29740 exports.default = { 29741 prefix: _prefix2.default, 29742 supportedProperty: _supportedProperty2.default, 29743 supportedValue: _supportedValue2.default 29744 }, exports.prefix = _prefix2.default, exports.supportedProperty = _supportedProperty2.default, 29745 exports.supportedValue = _supportedValue2.default; 29746 }, function(module, exports, __webpack_require__) { 29747 "use strict"; 29748 function _interopRequireDefault(obj) { 29749 return obj && obj.__esModule ? obj : { 29750 default: obj 29751 }; 29752 } 29753 function supportedProperty(prop) { 29754 return el ? null != cache[prop] ? cache[prop] : ((0, _camelize2.default)(prop) in el.style ? cache[prop] = prop : _prefix2.default.js + (0, 29755 _camelize2.default)("-" + prop) in el.style ? cache[prop] = _prefix2.default.css + prop : cache[prop] = !1, 29756 cache[prop]) : prop; 29757 } 29758 Object.defineProperty(exports, "__esModule", { 29759 value: !0 29760 }), exports.default = supportedProperty; 29761 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 = {}; 29762 if (_isInBrowser2.default) { 29763 el = document.createElement("p"); 29764 var computed = window.getComputedStyle(document.documentElement, ""); 29765 for (var key in computed) isNaN(key) || (cache[computed[key]] = computed[key]); 29766 } 29767 }, function(module, exports, __webpack_require__) { 29768 "use strict"; 29769 function camelize(str) { 29770 return str.replace(regExp, toUpper); 29771 } 29772 function toUpper(match, c) { 29773 return c ? c.toUpperCase() : ""; 29774 } 29775 Object.defineProperty(exports, "__esModule", { 29776 value: !0 29777 }), exports.default = camelize; 29778 var regExp = /[-\s]+(.)?/g; 29779 }, function(module, exports, __webpack_require__) { 29780 "use strict"; 29781 function _interopRequireDefault(obj) { 29782 return obj && obj.__esModule ? obj : { 29783 default: obj 29784 }; 29785 } 29786 function supportedValue(property, value) { 29787 if (!el) return value; 29788 if ("string" != typeof value || !isNaN(parseInt(value, 10))) return value; 29789 var cacheKey = property + value; 29790 if (null != cache[cacheKey]) return cache[cacheKey]; 29791 try { 29792 el.style[property] = value; 29793 } catch (err) { 29794 return cache[cacheKey] = !1, !1; 29795 } 29796 return "" !== el.style[property] ? cache[cacheKey] = value : (value = _prefix2.default.css + value, 29797 "-ms-flex" === value && (value = "-ms-flexbox"), el.style[property] = value, "" !== el.style[property] && (cache[cacheKey] = value)), 29798 cache[cacheKey] || (cache[cacheKey] = !1), el.style[property] = "", cache[cacheKey]; 29799 } 29800 Object.defineProperty(exports, "__esModule", { 29801 value: !0 29802 }), exports.default = supportedValue; 29803 var _isInBrowser = __webpack_require__(112), _isInBrowser2 = _interopRequireDefault(_isInBrowser), _prefix = __webpack_require__(165), _prefix2 = _interopRequireDefault(_prefix), cache = {}, el = void 0; 29804 _isInBrowser2.default && (el = document.createElement("p")); 29805 }, function(module, exports, __webpack_require__) { 29806 "use strict"; 29807 function jssPropsSort() { 29808 function sort(prop0, prop1) { 29809 return prop0.length - prop1.length; 29810 } 29811 function onProcessStyle(style, rule) { 29812 if ("style" !== rule.type) return style; 29813 var newStyle = {}, props = Object.keys(style).sort(sort); 29814 for (var prop in props) newStyle[props[prop]] = style[props[prop]]; 29815 return newStyle; 29816 } 29817 return { 29818 onProcessStyle: onProcessStyle 29819 }; 29820 } 29821 Object.defineProperty(exports, "__esModule", { 29822 value: !0 29823 }), exports.default = jssPropsSort; 29824 }, function(module, exports, __webpack_require__) { 29825 "use strict"; 29826 (function(process) { 29827 function createGenerateClassName() { 29828 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; 29829 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")), 29830 function(rule, styleSheet) { 29831 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("")), 29832 dangerouslyUseGlobalCSS) { 29833 if (styleSheet && styleSheet.options.classNamePrefix) { 29834 var prefix = styleSheet.options.classNamePrefix; 29835 if (prefix = prefix.replace(escapeRegex, "-"), prefix.match(/^Mui/)) return prefix + "-" + rule.key; 29836 if ("production" !== process.env.NODE_ENV) return prefix + "-" + rule.key + "-" + ruleCounter; 29837 } 29838 return "production" === process.env.NODE_ENV ? "" + productionPrefix + ruleCounter : rule.key + "-" + ruleCounter; 29839 } 29840 if ("production" === process.env.NODE_ENV) return "" + productionPrefix + ruleCounter; 29841 if (styleSheet && styleSheet.options.classNamePrefix) { 29842 var _prefix = styleSheet.options.classNamePrefix; 29843 return (_prefix = _prefix.replace(escapeRegex, "-")) + "-" + rule.key + "-" + ruleCounter; 29844 } 29845 return rule.key + "-" + ruleCounter; 29846 }; 29847 } 29848 Object.defineProperty(exports, "__esModule", { 29849 value: !0 29850 }), exports.default = createGenerateClassName; 29851 var _warning = __webpack_require__(11), _warning2 = function(obj) { 29852 return obj && obj.__esModule ? obj : { 29853 default: obj 29854 }; 29855 }(_warning), generatorCounter = 0; 29856 }).call(exports, __webpack_require__(2)); 29857 }, function(module, exports, __webpack_require__) { 29858 "use strict"; 29859 (function(process) { 29860 function _interopRequireDefault(obj) { 29861 return obj && obj.__esModule ? obj : { 29862 default: obj 29863 }; 29864 } 29865 function getStylesCreator(stylesOrCreator) { 29866 function create(theme, name) { 29867 var styles = themingEnabled ? stylesOrCreator(theme) : stylesOrCreator; 29868 if (!theme.overrides || !name || !theme.overrides[name]) return styles; 29869 var overrides = theme.overrides[name], stylesWithOverrides = (0, _extends3.default)({}, styles); 29870 return (0, _keys2.default)(overrides).forEach(function(key) { 29871 "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")), 29872 stylesWithOverrides[key] = (0, _deepmerge2.default)(stylesWithOverrides[key], overrides[key]); 29873 }), stylesWithOverrides; 29874 } 29875 var themingEnabled = "function" == typeof stylesOrCreator; 29876 return { 29877 create: create, 29878 options: {}, 29879 themingEnabled: themingEnabled 29880 }; 29881 } 29882 Object.defineProperty(exports, "__esModule", { 29883 value: !0 29884 }); 29885 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); 29886 exports.default = getStylesCreator; 29887 }).call(exports, __webpack_require__(2)); 29888 }, function(module, exports, __webpack_require__) { 29889 "use strict"; 29890 function _interopRequireDefault(obj) { 29891 return obj && obj.__esModule ? obj : { 29892 default: obj 29893 }; 29894 } 29895 function _classCallCheck(instance, Constructor) { 29896 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 29897 } 29898 function _possibleConstructorReturn(self, call) { 29899 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 29900 return !call || "object" != typeof call && "function" != typeof call ? self : call; 29901 } 29902 function _inherits(subClass, superClass) { 29903 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 29904 subClass.prototype = Object.create(superClass && superClass.prototype, { 29905 constructor: { 29906 value: subClass, 29907 enumerable: !1, 29908 writable: !0, 29909 configurable: !0 29910 } 29911 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 29912 } 29913 Object.defineProperty(exports, "__esModule", { 29914 value: !0 29915 }); 29916 var _createClass = function() { 29917 function defineProperties(target, props) { 29918 for (var i = 0; i < props.length; i++) { 29919 var descriptor = props[i]; 29920 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 29921 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 29922 } 29923 } 29924 return function(Constructor, protoProps, staticProps) { 29925 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 29926 Constructor; 29927 }; 29928 }(), _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 = { 29929 header: { 29930 height: "8%" 29931 }, 29932 toolbar: { 29933 height: "100%" 29934 } 29935 }, themeStyles = function(theme) { 29936 return { 29937 header: { 29938 backgroundColor: theme.palette.grey[900], 29939 color: theme.palette.getContrastText(theme.palette.grey[900]), 29940 zIndex: theme.zIndex.appBar 29941 }, 29942 toolbar: { 29943 paddingLeft: theme.spacing.unit, 29944 paddingRight: theme.spacing.unit 29945 }, 29946 title: { 29947 paddingLeft: theme.spacing.unit, 29948 fontSize: 3 * theme.spacing.unit 29949 } 29950 }; 29951 }, Header = function(_Component) { 29952 function Header() { 29953 return _classCallCheck(this, Header), _possibleConstructorReturn(this, (Header.__proto__ || Object.getPrototypeOf(Header)).apply(this, arguments)); 29954 } 29955 return _inherits(Header, _Component), _createClass(Header, [ { 29956 key: "render", 29957 value: function() { 29958 var classes = this.props.classes; 29959 return _react2.default.createElement(_AppBar2.default, { 29960 position: "static", 29961 className: classes.header, 29962 style: styles.header 29963 }, _react2.default.createElement(_Toolbar2.default, { 29964 className: classes.toolbar, 29965 style: styles.toolbar 29966 }, _react2.default.createElement(_IconButton2.default, { 29967 onClick: this.props.switchSideBar 29968 }, _react2.default.createElement(_Icon2.default, null, _react2.default.createElement(_Menu2.default, null))), _react2.default.createElement(_Typography2.default, { 29969 type: "title", 29970 color: "inherit", 29971 noWrap: !0, 29972 className: classes.title 29973 }, "Go Ethereum Dashboard"))); 29974 } 29975 } ]), Header; 29976 }(_react.Component); 29977 exports.default = (0, _withStyles2.default)(themeStyles)(Header); 29978 }, function(module, exports, __webpack_require__) { 29979 "use strict"; 29980 function _interopRequireDefault(obj) { 29981 return obj && obj.__esModule ? obj : { 29982 default: obj 29983 }; 29984 } 29985 Object.defineProperty(exports, "__esModule", { 29986 value: !0 29987 }); 29988 var _AppBar = __webpack_require__(498); 29989 Object.defineProperty(exports, "default", { 29990 enumerable: !0, 29991 get: function() { 29992 return _interopRequireDefault(_AppBar).default; 29993 } 29994 }); 29995 }, function(module, exports, __webpack_require__) { 29996 "use strict"; 29997 (function(process) { 29998 function _interopRequireDefault(obj) { 29999 return obj && obj.__esModule ? obj : { 30000 default: obj 30001 }; 30002 } 30003 function AppBar(props) { 30004 var _classNames, children = props.children, classes = props.classes, classNameProp = props.className, color = props.color, position = props.position, other = (0, 30005 _objectWithoutProperties3.default)(props, [ "children", "classes", "className", "color", "position" ]), className = (0, 30006 _classnames2.default)(classes.root, classes["position" + (0, _helpers.capitalize)(position)], (_classNames = {}, 30007 (0, _defineProperty3.default)(_classNames, classes["color" + (0, _helpers.capitalize)(color)], "inherit" !== color), 30008 (0, _defineProperty3.default)(_classNames, "mui-fixed", "fixed" === position), _classNames), classNameProp); 30009 return _react2.default.createElement(_Paper2.default, (0, _extends3.default)({ 30010 square: !0, 30011 component: "header", 30012 elevation: 4, 30013 className: className 30014 }, other), children); 30015 } 30016 Object.defineProperty(exports, "__esModule", { 30017 value: !0 30018 }), exports.styles = void 0; 30019 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) { 30020 var backgroundColorDefault = "light" === theme.palette.type ? theme.palette.grey[100] : theme.palette.grey[900]; 30021 return { 30022 root: { 30023 display: "flex", 30024 flexDirection: "column", 30025 width: "100%", 30026 boxSizing: "border-box", 30027 zIndex: theme.zIndex.appBar, 30028 flexShrink: 0 30029 }, 30030 positionFixed: { 30031 position: "fixed", 30032 top: 0, 30033 left: "auto", 30034 right: 0 30035 }, 30036 positionAbsolute: { 30037 position: "absolute", 30038 top: 0, 30039 left: "auto", 30040 right: 0 30041 }, 30042 positionSticky: { 30043 position: "sticky", 30044 top: 0, 30045 left: "auto", 30046 right: 0 30047 }, 30048 positionStatic: { 30049 position: "static" 30050 }, 30051 colorDefault: { 30052 backgroundColor: backgroundColorDefault, 30053 color: theme.palette.getContrastText(backgroundColorDefault) 30054 }, 30055 colorPrimary: { 30056 backgroundColor: theme.palette.primary.main, 30057 color: theme.palette.primary.contrastText 30058 }, 30059 colorSecondary: { 30060 backgroundColor: theme.palette.secondary.main, 30061 color: theme.palette.secondary.contrastText 30062 } 30063 }; 30064 }; 30065 AppBar.propTypes = "production" !== process.env.NODE_ENV ? { 30066 children: _propTypes2.default.node.isRequired, 30067 classes: _propTypes2.default.object.isRequired, 30068 className: _propTypes2.default.string, 30069 color: _propTypes2.default.oneOf([ "inherit", "primary", "secondary", "default" ]), 30070 position: _propTypes2.default.oneOf([ "fixed", "absolute", "sticky", "static" ]) 30071 } : {}, AppBar.defaultProps = { 30072 color: "primary", 30073 position: "fixed" 30074 }, exports.default = (0, _withStyles2.default)(styles, { 30075 name: "MuiAppBar" 30076 })(AppBar); 30077 }).call(exports, __webpack_require__(2)); 30078 }, function(module, exports, __webpack_require__) { 30079 "use strict"; 30080 function _interopRequireDefault(obj) { 30081 return obj && obj.__esModule ? obj : { 30082 default: obj 30083 }; 30084 } 30085 Object.defineProperty(exports, "__esModule", { 30086 value: !0 30087 }); 30088 var _Paper = __webpack_require__(500); 30089 Object.defineProperty(exports, "default", { 30090 enumerable: !0, 30091 get: function() { 30092 return _interopRequireDefault(_Paper).default; 30093 } 30094 }); 30095 }, function(module, exports, __webpack_require__) { 30096 "use strict"; 30097 (function(process) { 30098 function _interopRequireDefault(obj) { 30099 return obj && obj.__esModule ? obj : { 30100 default: obj 30101 }; 30102 } 30103 function Paper(props) { 30104 var classes = props.classes, classNameProp = props.className, Component = props.component, square = props.square, elevation = props.elevation, other = (0, 30105 _objectWithoutProperties3.default)(props, [ "classes", "className", "component", "square", "elevation" ]); 30106 "production" !== process.env.NODE_ENV && (0, _warning2.default)(elevation >= 0 && elevation < 25, "Material-UI: this elevation ` + "`"))) + ((`" + elevation + "` + ("`" + ` is not implemented."); 30107 var className = (0, _classnames2.default)(classes.root, classes["shadow" + elevation], (0, 30108 _defineProperty3.default)({}, classes.rounded, !square), classNameProp); 30109 return _react2.default.createElement(Component, (0, _extends3.default)({ 30110 className: className 30111 }, other)); 30112 } 30113 Object.defineProperty(exports, "__esModule", { 30114 value: !0 30115 }), exports.styles = void 0; 30116 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) { 30117 var shadows = {}; 30118 return theme.shadows.forEach(function(shadow, index) { 30119 shadows["shadow" + index] = { 30120 boxShadow: shadow 30121 }; 30122 }), (0, _extends3.default)({ 30123 root: { 30124 backgroundColor: theme.palette.background.paper 30125 }, 30126 rounded: { 30127 borderRadius: 2 30128 } 30129 }, shadows); 30130 }; 30131 Paper.propTypes = "production" !== process.env.NODE_ENV ? { 30132 children: _propTypes2.default.node, 30133 classes: _propTypes2.default.object.isRequired, 30134 className: _propTypes2.default.string, 30135 component: _propTypes2.default.oneOfType([ _propTypes2.default.string, _propTypes2.default.func ]), 30136 elevation: _propTypes2.default.number, 30137 square: _propTypes2.default.bool 30138 } : {}, Paper.defaultProps = { 30139 component: "div", 30140 elevation: 2, 30141 square: !1 30142 }, exports.default = (0, _withStyles2.default)(styles, { 30143 name: "MuiPaper" 30144 })(Paper); 30145 }).call(exports, __webpack_require__(2)); 30146 }, function(module, exports, __webpack_require__) { 30147 "use strict"; 30148 function _interopRequireDefault(obj) { 30149 return obj && obj.__esModule ? obj : { 30150 default: obj 30151 }; 30152 } 30153 Object.defineProperty(exports, "__esModule", { 30154 value: !0 30155 }); 30156 var _Toolbar = __webpack_require__(502); 30157 Object.defineProperty(exports, "default", { 30158 enumerable: !0, 30159 get: function() { 30160 return _interopRequireDefault(_Toolbar).default; 30161 } 30162 }); 30163 }, function(module, exports, __webpack_require__) { 30164 "use strict"; 30165 (function(process) { 30166 function _interopRequireDefault(obj) { 30167 return obj && obj.__esModule ? obj : { 30168 default: obj 30169 }; 30170 } 30171 function Toolbar(props) { 30172 var children = props.children, classes = props.classes, classNameProp = props.className, disableGutters = props.disableGutters, other = (0, 30173 _objectWithoutProperties3.default)(props, [ "children", "classes", "className", "disableGutters" ]), className = (0, 30174 _classnames2.default)(classes.root, (0, _defineProperty3.default)({}, classes.gutters, !disableGutters), classNameProp); 30175 return _react2.default.createElement("div", (0, _extends3.default)({ 30176 className: className 30177 }, other), children); 30178 } 30179 Object.defineProperty(exports, "__esModule", { 30180 value: !0 30181 }), exports.styles = void 0; 30182 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) { 30183 return { 30184 root: (0, _extends3.default)({ 30185 position: "relative", 30186 display: "flex", 30187 alignItems: "center" 30188 }, theme.mixins.toolbar), 30189 gutters: theme.mixins.gutters({}) 30190 }; 30191 }; 30192 Toolbar.propTypes = "production" !== process.env.NODE_ENV ? { 30193 children: _propTypes2.default.node, 30194 classes: _propTypes2.default.object.isRequired, 30195 className: _propTypes2.default.string, 30196 disableGutters: _propTypes2.default.bool 30197 } : {}, Toolbar.defaultProps = { 30198 disableGutters: !1 30199 }, exports.default = (0, _withStyles2.default)(styles, { 30200 name: "MuiToolbar" 30201 })(Toolbar); 30202 }).call(exports, __webpack_require__(2)); 30203 }, function(module, exports, __webpack_require__) { 30204 "use strict"; 30205 function _interopRequireDefault(obj) { 30206 return obj && obj.__esModule ? obj : { 30207 default: obj 30208 }; 30209 } 30210 Object.defineProperty(exports, "__esModule", { 30211 value: !0 30212 }); 30213 var _IconButton = __webpack_require__(504); 30214 Object.defineProperty(exports, "default", { 30215 enumerable: !0, 30216 get: function() { 30217 return _interopRequireDefault(_IconButton).default; 30218 } 30219 }); 30220 }, function(module, exports, __webpack_require__) { 30221 "use strict"; 30222 (function(process) { 30223 function _interopRequireDefault(obj) { 30224 return obj && obj.__esModule ? obj : { 30225 default: obj 30226 }; 30227 } 30228 function IconButton(props) { 30229 var _classNames, children = props.children, classes = props.classes, className = props.className, color = props.color, disabled = props.disabled, other = (0, 30230 _objectWithoutProperties3.default)(props, [ "children", "classes", "className", "color", "disabled" ]); 30231 return _react2.default.createElement(_ButtonBase2.default, (0, _extends3.default)({ 30232 className: (0, _classnames2.default)(classes.root, (_classNames = {}, (0, _defineProperty3.default)(_classNames, classes["color" + (0, 30233 _helpers.capitalize)(color)], "default" !== color), (0, _defineProperty3.default)(_classNames, classes.disabled, disabled), 30234 _classNames), className), 30235 centerRipple: !0, 30236 focusRipple: !0, 30237 disabled: disabled 30238 }, other), _react2.default.createElement("span", { 30239 className: classes.label 30240 }, _react2.default.Children.map(children, function(child) { 30241 return (0, _reactHelpers.isMuiElement)(child, [ "Icon", "SvgIcon" ]) ? _react2.default.cloneElement(child, { 30242 fontSize: !0 30243 }) : child; 30244 }))); 30245 } 30246 Object.defineProperty(exports, "__esModule", { 30247 value: !0 30248 }), exports.styles = void 0; 30249 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); 30250 __webpack_require__(257); 30251 var styles = exports.styles = function(theme) { 30252 return { 30253 root: { 30254 textAlign: "center", 30255 flex: "0 0 auto", 30256 fontSize: theme.typography.pxToRem(24), 30257 width: 6 * theme.spacing.unit, 30258 height: 6 * theme.spacing.unit, 30259 padding: 0, 30260 borderRadius: "50%", 30261 color: theme.palette.action.active, 30262 transition: theme.transitions.create("background-color", { 30263 duration: theme.transitions.duration.shortest 30264 }) 30265 }, 30266 colorInherit: { 30267 color: "inherit" 30268 }, 30269 colorPrimary: { 30270 color: theme.palette.primary.main 30271 }, 30272 colorSecondary: { 30273 color: theme.palette.secondary.main 30274 }, 30275 disabled: { 30276 color: theme.palette.action.disabled 30277 }, 30278 label: { 30279 width: "100%", 30280 display: "flex", 30281 alignItems: "inherit", 30282 justifyContent: "inherit" 30283 } 30284 }; 30285 }; 30286 IconButton.propTypes = "production" !== process.env.NODE_ENV ? { 30287 children: _propTypes2.default.node, 30288 classes: _propTypes2.default.object.isRequired, 30289 className: _propTypes2.default.string, 30290 color: _propTypes2.default.oneOf([ "default", "inherit", "primary", "secondary" ]), 30291 disabled: _propTypes2.default.bool, 30292 disableRipple: _propTypes2.default.bool 30293 } : {}, IconButton.defaultProps = { 30294 color: "default", 30295 disabled: !1, 30296 disableRipple: !1 30297 }, exports.default = (0, _withStyles2.default)(styles, { 30298 name: "MuiIconButton" 30299 })(IconButton); 30300 }).call(exports, __webpack_require__(2)); 30301 }, function(module, exports, __webpack_require__) { 30302 "use strict"; 30303 (function(process) { 30304 function _interopRequireDefault(obj) { 30305 return obj && obj.__esModule ? obj : { 30306 default: obj 30307 }; 30308 } 30309 Object.defineProperty(exports, "__esModule", { 30310 value: !0 30311 }), exports.styles = void 0; 30312 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 = { 30313 root: { 30314 display: "inline-flex", 30315 alignItems: "center", 30316 justifyContent: "center", 30317 position: "relative", 30318 WebkitTapHighlightColor: "transparent", 30319 backgroundColor: "transparent", 30320 outline: "none", 30321 border: 0, 30322 margin: 0, 30323 borderRadius: 0, 30324 padding: 0, 30325 cursor: "pointer", 30326 userSelect: "none", 30327 verticalAlign: "middle", 30328 "-moz-appearance": "none", 30329 "-webkit-appearance": "none", 30330 textDecoration: "none", 30331 color: "inherit", 30332 "&::-moz-focus-inner": { 30333 borderStyle: "none" 30334 } 30335 }, 30336 disabled: { 30337 pointerEvents: "none", 30338 cursor: "default" 30339 } 30340 }, ButtonBase = function(_React$Component) { 30341 function ButtonBase() { 30342 var _ref, _temp, _this, _ret; 30343 (0, _classCallCheck3.default)(this, ButtonBase); 30344 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 30345 return _temp = _this = (0, _possibleConstructorReturn3.default)(this, (_ref = ButtonBase.__proto__ || (0, 30346 _getPrototypeOf2.default)(ButtonBase)).call.apply(_ref, [ this ].concat(args))), 30347 _this.state = { 30348 keyboardFocused: !1 30349 }, _this.onKeyboardFocusHandler = function(event) { 30350 _this.keyDown = !1, _this.setState({ 30351 keyboardFocused: !0 30352 }), _this.props.onKeyboardFocus && _this.props.onKeyboardFocus(event); 30353 }, _this.onRippleRef = function(node) { 30354 _this.ripple = node; 30355 }, _this.ripple = null, _this.keyDown = !1, _this.button = null, _this.keyboardFocusTimeout = null, 30356 _this.keyboardFocusCheckTime = 50, _this.keyboardFocusMaxCheckTimes = 5, _this.handleKeyDown = function(event) { 30357 var _this$props = _this.props, component = _this$props.component, focusRipple = _this$props.focusRipple, onKeyDown = _this$props.onKeyDown, onClick = _this$props.onClick, key = (0, 30358 _keycode2.default)(event); 30359 focusRipple && !_this.keyDown && _this.state.keyboardFocused && _this.ripple && "space" === key && (_this.keyDown = !0, 30360 event.persist(), _this.ripple.stop(event, function() { 30361 _this.ripple.start(event); 30362 })), onKeyDown && onKeyDown(event), event.target !== event.currentTarget || !component || "button" === component || "space" !== key && "enter" !== key || (event.preventDefault(), 30363 onClick && onClick(event)); 30364 }, _this.handleKeyUp = function(event) { 30365 _this.props.focusRipple && "space" === (0, _keycode2.default)(event) && _this.ripple && _this.state.keyboardFocused && (_this.keyDown = !1, 30366 event.persist(), _this.ripple.stop(event, function() { 30367 return _this.ripple.pulsate(event); 30368 })), _this.props.onKeyUp && _this.props.onKeyUp(event); 30369 }, _this.handleMouseDown = (0, _createRippleHandler2.default)(_this, "MouseDown", "start", function() { 30370 clearTimeout(_this.keyboardFocusTimeout), (0, _keyboardFocus.focusKeyPressed)(!1), 30371 _this.state.keyboardFocused && _this.setState({ 30372 keyboardFocused: !1 30373 }); 30374 }), _this.handleMouseUp = (0, _createRippleHandler2.default)(_this, "MouseUp", "stop"), 30375 _this.handleMouseLeave = (0, _createRippleHandler2.default)(_this, "MouseLeave", "stop", function(event) { 30376 _this.state.keyboardFocused && event.preventDefault(); 30377 }), _this.handleTouchStart = (0, _createRippleHandler2.default)(_this, "TouchStart", "start"), 30378 _this.handleTouchEnd = (0, _createRippleHandler2.default)(_this, "TouchEnd", "stop"), 30379 _this.handleTouchMove = (0, _createRippleHandler2.default)(_this, "TouchEnd", "stop"), 30380 _this.handleBlur = (0, _createRippleHandler2.default)(_this, "Blur", "stop", function() { 30381 clearTimeout(_this.keyboardFocusTimeout), (0, _keyboardFocus.focusKeyPressed)(!1), 30382 _this.setState({ 30383 keyboardFocused: !1 30384 }); 30385 }), _this.handleFocus = function(event) { 30386 _this.props.disabled || (_this.button || (_this.button = event.currentTarget), event.persist(), 30387 (0, _keyboardFocus.detectKeyboardFocus)(_this, _this.button, function() { 30388 _this.onKeyboardFocusHandler(event); 30389 }), _this.props.onFocus && _this.props.onFocus(event)); 30390 }, _ret = _temp, (0, _possibleConstructorReturn3.default)(_this, _ret); 30391 } 30392 return (0, _inherits3.default)(ButtonBase, _React$Component), (0, _createClass3.default)(ButtonBase, [ { 30393 key: "componentDidMount", 30394 value: function() { 30395 this.button = (0, _reactDom.findDOMNode)(this), (0, _keyboardFocus.listenForFocusKeys)((0, 30396 _ownerWindow2.default)(this.button)); 30397 } 30398 }, { 30399 key: "componentWillReceiveProps", 30400 value: function(nextProps) { 30401 !this.props.disabled && nextProps.disabled && this.state.keyboardFocused && this.setState({ 30402 keyboardFocused: !1 30403 }); 30404 } 30405 }, { 30406 key: "componentWillUpdate", 30407 value: function(nextProps, nextState) { 30408 this.props.focusRipple && nextState.keyboardFocused && !this.state.keyboardFocused && !this.props.disableRipple && this.ripple.pulsate(); 30409 } 30410 }, { 30411 key: "componentWillUnmount", 30412 value: function() { 30413 this.button = null, clearTimeout(this.keyboardFocusTimeout); 30414 } 30415 }, { 30416 key: "render", 30417 value: function() { 30418 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, 30419 _props.keyboardFocusedClassName), tabIndex = (_props.onBlur, _props.onFocus, _props.onKeyboardFocus, 30420 _props.onKeyDown, _props.onKeyUp, _props.onMouseDown, _props.onMouseLeave, _props.onMouseUp, 30421 _props.onTouchEnd, _props.onTouchMove, _props.onTouchStart, _props.tabIndex), type = _props.type, other = (0, 30422 _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, 30423 _classnames2.default)(classes.root, (_classNames = {}, (0, _defineProperty3.default)(_classNames, classes.disabled, disabled), 30424 (0, _defineProperty3.default)(_classNames, keyboardFocusedClassName || "", this.state.keyboardFocused), 30425 _classNames), classNameProp), buttonProps = {}, ComponentProp = component; 30426 return ComponentProp || (ComponentProp = other.href ? "a" : "button"), "button" === ComponentProp ? (buttonProps.type = type || "button", 30427 buttonProps.disabled = disabled) : buttonProps.role = "button", _react2.default.createElement(ComponentProp, (0, 30428 _extends3.default)({ 30429 onBlur: this.handleBlur, 30430 onFocus: this.handleFocus, 30431 onKeyDown: this.handleKeyDown, 30432 onKeyUp: this.handleKeyUp, 30433 onMouseDown: this.handleMouseDown, 30434 onMouseLeave: this.handleMouseLeave, 30435 onMouseUp: this.handleMouseUp, 30436 onTouchEnd: this.handleTouchEnd, 30437 onTouchMove: this.handleTouchMove, 30438 onTouchStart: this.handleTouchStart, 30439 tabIndex: disabled ? "-1" : tabIndex, 30440 className: className, 30441 ref: buttonRef 30442 }, buttonProps, other), children, disableRipple || disabled ? null : _react2.default.createElement(_TouchRipple2.default, { 30443 innerRef: this.onRippleRef, 30444 center: centerRipple 30445 })); 30446 } 30447 } ]), ButtonBase; 30448 }(_react2.default.Component); 30449 ButtonBase.propTypes = "production" !== process.env.NODE_ENV ? { 30450 buttonRef: _propTypes2.default.func, 30451 centerRipple: _propTypes2.default.bool, 30452 children: _propTypes2.default.node, 30453 classes: _propTypes2.default.object.isRequired, 30454 className: _propTypes2.default.string, 30455 component: _propTypes2.default.oneOfType([ _propTypes2.default.string, _propTypes2.default.func ]), 30456 disabled: _propTypes2.default.bool, 30457 disableRipple: _propTypes2.default.bool, 30458 focusRipple: _propTypes2.default.bool, 30459 keyboardFocusedClassName: _propTypes2.default.string, 30460 onBlur: _propTypes2.default.func, 30461 onClick: _propTypes2.default.func, 30462 onFocus: _propTypes2.default.func, 30463 onKeyboardFocus: _propTypes2.default.func, 30464 onKeyDown: _propTypes2.default.func, 30465 onKeyUp: _propTypes2.default.func, 30466 onMouseDown: _propTypes2.default.func, 30467 onMouseLeave: _propTypes2.default.func, 30468 onMouseUp: _propTypes2.default.func, 30469 onTouchEnd: _propTypes2.default.func, 30470 onTouchMove: _propTypes2.default.func, 30471 onTouchStart: _propTypes2.default.func, 30472 role: _propTypes2.default.string, 30473 tabIndex: _propTypes2.default.oneOfType([ _propTypes2.default.number, _propTypes2.default.string ]), 30474 type: _propTypes2.default.string 30475 } : {}, ButtonBase.defaultProps = { 30476 centerRipple: !1, 30477 disableRipple: !1, 30478 focusRipple: !1, 30479 tabIndex: "0", 30480 type: "button" 30481 }, exports.default = (0, _withStyles2.default)(styles, { 30482 name: "MuiButtonBase" 30483 })(ButtonBase); 30484 }).call(exports, __webpack_require__(2)); 30485 }, function(module, exports, __webpack_require__) { 30486 "use strict"; 30487 function ownerWindow(node) { 30488 var doc = (0, _ownerDocument2.default)(node); 30489 return doc && doc.defaultView || doc.parentWindow; 30490 } 30491 Object.defineProperty(exports, "__esModule", { 30492 value: !0 30493 }), exports.default = ownerWindow; 30494 var _ownerDocument = __webpack_require__(254), _ownerDocument2 = function(obj) { 30495 return obj && obj.__esModule ? obj : { 30496 default: obj 30497 }; 30498 }(_ownerDocument); 30499 module.exports = exports.default; 30500 }, function(module, exports, __webpack_require__) { 30501 "use strict"; 30502 (function(process) { 30503 function _interopRequireDefault(obj) { 30504 return obj && obj.__esModule ? obj : { 30505 default: obj 30506 }; 30507 } 30508 function focusKeyPressed(pressed) { 30509 return void 0 !== pressed && (internal.focusKeyPressed = Boolean(pressed)), internal.focusKeyPressed; 30510 } 30511 function detectKeyboardFocus(instance, element, callback) { 30512 var attempt = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : 1; 30513 "production" !== process.env.NODE_ENV && (0, _warning2.default)(instance.keyboardFocusCheckTime, "Material-UI: missing instance.keyboardFocusCheckTime"), 30514 "production" !== process.env.NODE_ENV && (0, _warning2.default)(instance.keyboardFocusMaxCheckTimes, "Material-UI: missing instance.keyboardFocusMaxCheckTimes"), 30515 instance.keyboardFocusTimeout = setTimeout(function() { 30516 var doc = (0, _ownerDocument2.default)(element); 30517 focusKeyPressed() && (doc.activeElement === element || (0, _contains2.default)(element, doc.activeElement)) ? callback() : attempt < instance.keyboardFocusMaxCheckTimes && detectKeyboardFocus(instance, element, callback, attempt + 1); 30518 }, instance.keyboardFocusCheckTime); 30519 } 30520 function isFocusKey(event) { 30521 return -1 !== FOCUS_KEYS.indexOf((0, _keycode2.default)(event)); 30522 } 30523 function listenForFocusKeys(win) { 30524 win.addEventListener("keyup", handleKeyUpEvent); 30525 } 30526 Object.defineProperty(exports, "__esModule", { 30527 value: !0 30528 }), exports.focusKeyPressed = focusKeyPressed, exports.detectKeyboardFocus = detectKeyboardFocus, 30529 exports.listenForFocusKeys = listenForFocusKeys; 30530 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 = { 30531 focusKeyPressed: !1 30532 }, FOCUS_KEYS = [ "tab", "enter", "space", "esc", "up", "down", "left", "right" ], handleKeyUpEvent = function(event) { 30533 isFocusKey(event) && (internal.focusKeyPressed = !0); 30534 }; 30535 }).call(exports, __webpack_require__(2)); 30536 }, function(module, exports, __webpack_require__) { 30537 "use strict"; 30538 function fallback(context, node) { 30539 if (node) do { 30540 if (node === context) return !0; 30541 } while (node = node.parentNode); 30542 return !1; 30543 } 30544 Object.defineProperty(exports, "__esModule", { 30545 value: !0 30546 }); 30547 var _inDOM = __webpack_require__(509), _inDOM2 = function(obj) { 30548 return obj && obj.__esModule ? obj : { 30549 default: obj 30550 }; 30551 }(_inDOM); 30552 exports.default = function() { 30553 return _inDOM2.default ? function(context, node) { 30554 return context.contains ? context.contains(node) : context.compareDocumentPosition ? context === node || !!(16 & context.compareDocumentPosition(node)) : fallback(context, node); 30555 } : fallback; 30556 }(), module.exports = exports.default; 30557 }, function(module, exports, __webpack_require__) { 30558 "use strict"; 30559 Object.defineProperty(exports, "__esModule", { 30560 value: !0 30561 }), exports.default = !("undefined" == typeof window || !window.document || !window.document.createElement), 30562 module.exports = exports.default; 30563 }, function(module, exports, __webpack_require__) { 30564 "use strict"; 30565 (function(process) { 30566 function _interopRequireDefault(obj) { 30567 return obj && obj.__esModule ? obj : { 30568 default: obj 30569 }; 30570 } 30571 Object.defineProperty(exports, "__esModule", { 30572 value: !0 30573 }), exports.styles = exports.DELAY_RIPPLE = void 0; 30574 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) { 30575 return { 30576 root: { 30577 display: "block", 30578 position: "absolute", 30579 overflow: "hidden", 30580 borderRadius: "inherit", 30581 width: "100%", 30582 height: "100%", 30583 left: 0, 30584 top: 0, 30585 pointerEvents: "none", 30586 zIndex: 0 30587 }, 30588 wrapper: { 30589 opacity: 1 30590 }, 30591 wrapperLeaving: { 30592 opacity: 0, 30593 animation: "mui-ripple-exit " + DURATION + "ms " + theme.transitions.easing.easeInOut 30594 }, 30595 wrapperPulsating: { 30596 position: "absolute", 30597 left: 0, 30598 top: 0, 30599 display: "block", 30600 width: "100%", 30601 height: "100%", 30602 animation: "mui-ripple-pulsate 2500ms " + theme.transitions.easing.easeInOut + " 200ms infinite" 30603 }, 30604 "@keyframes mui-ripple-enter": { 30605 "0%": { 30606 transform: "scale(0)" 30607 }, 30608 "100%": { 30609 transform: "scale(1)" 30610 } 30611 }, 30612 "@keyframes mui-ripple-exit": { 30613 "0%": { 30614 opacity: 1 30615 }, 30616 "100%": { 30617 opacity: 0 30618 } 30619 }, 30620 "@keyframes mui-ripple-pulsate": { 30621 "0%": { 30622 transform: "scale(1)" 30623 }, 30624 "50%": { 30625 transform: "scale(0.92)" 30626 }, 30627 "100%": { 30628 transform: "scale(1)" 30629 } 30630 }, 30631 ripple: { 30632 width: 50, 30633 height: 50, 30634 left: 0, 30635 top: 0, 30636 opacity: 0, 30637 position: "absolute", 30638 borderRadius: "50%", 30639 background: "currentColor" 30640 }, 30641 rippleVisible: { 30642 opacity: .3, 30643 transform: "scale(1)", 30644 animation: "mui-ripple-enter " + DURATION + "ms " + theme.transitions.easing.easeInOut 30645 }, 30646 rippleFast: { 30647 animationDuration: "200ms" 30648 } 30649 }; 30650 }, TouchRipple = function(_React$Component) { 30651 function TouchRipple() { 30652 var _ref, _temp, _this, _ret; 30653 (0, _classCallCheck3.default)(this, TouchRipple); 30654 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 30655 return _temp = _this = (0, _possibleConstructorReturn3.default)(this, (_ref = TouchRipple.__proto__ || (0, 30656 _getPrototypeOf2.default)(TouchRipple)).call.apply(_ref, [ this ].concat(args))), 30657 _this.state = { 30658 nextKey: 0, 30659 ripples: [] 30660 }, _this.ignoringMouseDown = !1, _this.startTimer = null, _this.startTimerCommit = null, 30661 _this.pulsate = function() { 30662 _this.start({}, { 30663 pulsate: !0 30664 }); 30665 }, _this.start = function() { 30666 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; 30667 if ("mousedown" === event.type && _this.ignoringMouseDown) return void (_this.ignoringMouseDown = !1); 30668 "touchstart" === event.type && (_this.ignoringMouseDown = !0); 30669 var element = fakeElement ? null : _reactDom2.default.findDOMNode(_this), rect = element ? element.getBoundingClientRect() : { 30670 width: 0, 30671 height: 0, 30672 left: 0, 30673 top: 0 30674 }, rippleX = void 0, rippleY = void 0, rippleSize = void 0; 30675 if (center || 0 === event.clientX && 0 === event.clientY || !event.clientX && !event.touches) rippleX = Math.round(rect.width / 2), 30676 rippleY = Math.round(rect.height / 2); else { 30677 var clientX = event.clientX ? event.clientX : event.touches[0].clientX, clientY = event.clientY ? event.clientY : event.touches[0].clientY; 30678 rippleX = Math.round(clientX - rect.left), rippleY = Math.round(clientY - rect.top); 30679 } 30680 if (center) (rippleSize = Math.sqrt((2 * Math.pow(rect.width, 2) + Math.pow(rect.height, 2)) / 3)) % 2 == 0 && (rippleSize += 1); else { 30681 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; 30682 rippleSize = Math.sqrt(Math.pow(sizeX, 2) + Math.pow(sizeY, 2)); 30683 } 30684 event.touches ? (_this.startTimerCommit = function() { 30685 _this.startCommit({ 30686 pulsate: pulsate, 30687 rippleX: rippleX, 30688 rippleY: rippleY, 30689 rippleSize: rippleSize, 30690 cb: cb 30691 }); 30692 }, _this.startTimer = setTimeout(function() { 30693 _this.startTimerCommit(), _this.startTimerCommit = null; 30694 }, DELAY_RIPPLE)) : _this.startCommit({ 30695 pulsate: pulsate, 30696 rippleX: rippleX, 30697 rippleY: rippleY, 30698 rippleSize: rippleSize, 30699 cb: cb 30700 }); 30701 }, _this.startCommit = function(params) { 30702 var pulsate = params.pulsate, rippleX = params.rippleX, rippleY = params.rippleY, rippleSize = params.rippleSize, cb = params.cb, ripples = _this.state.ripples; 30703 ripples = [].concat((0, _toConsumableArray3.default)(ripples), [ _react2.default.createElement(_Ripple2.default, { 30704 key: _this.state.nextKey, 30705 classes: _this.props.classes, 30706 timeout: { 30707 exit: DURATION, 30708 enter: DURATION 30709 }, 30710 pulsate: pulsate, 30711 rippleX: rippleX, 30712 rippleY: rippleY, 30713 rippleSize: rippleSize 30714 }) ]), _this.setState({ 30715 nextKey: _this.state.nextKey + 1, 30716 ripples: ripples 30717 }, cb); 30718 }, _this.stop = function(event, cb) { 30719 clearTimeout(_this.startTimer); 30720 var ripples = _this.state.ripples; 30721 if ("touchend" === event.type && _this.startTimerCommit) return event.persist(), 30722 _this.startTimerCommit(), _this.startTimerCommit = null, void (_this.startTimer = setTimeout(function() { 30723 _this.stop(event, cb); 30724 }, 0)); 30725 _this.startTimerCommit = null, ripples && ripples.length && _this.setState({ 30726 ripples: ripples.slice(1) 30727 }, cb); 30728 }, _ret = _temp, (0, _possibleConstructorReturn3.default)(_this, _ret); 30729 } 30730 return (0, _inherits3.default)(TouchRipple, _React$Component), (0, _createClass3.default)(TouchRipple, [ { 30731 key: "componentWillUnmount", 30732 value: function() { 30733 clearTimeout(this.startTimer); 30734 } 30735 }, { 30736 key: "render", 30737 value: function() { 30738 var _props = this.props, classes = (_props.center, _props.classes), className = _props.className, other = (0, 30739 _objectWithoutProperties3.default)(_props, [ "center", "classes", "className" ]); 30740 return _react2.default.createElement(_TransitionGroup2.default, (0, _extends3.default)({ 30741 component: "span", 30742 enter: !0, 30743 exit: !0, 30744 className: (0, _classnames2.default)(classes.root, className) 30745 }, other), this.state.ripples); 30746 } 30747 } ]), TouchRipple; 30748 }(_react2.default.Component); 30749 TouchRipple.propTypes = "production" !== process.env.NODE_ENV ? { 30750 center: _propTypes2.default.bool, 30751 classes: _propTypes2.default.object.isRequired, 30752 className: _propTypes2.default.string 30753 } : {}, TouchRipple.defaultProps = { 30754 center: !1 30755 }, exports.default = (0, _withStyles2.default)(styles, { 30756 flip: !1, 30757 name: "MuiTouchRipple" 30758 })(TouchRipple); 30759 }).call(exports, __webpack_require__(2)); 30760 }, function(module, exports, __webpack_require__) { 30761 "use strict"; 30762 exports.__esModule = !0; 30763 var _from = __webpack_require__(512), _from2 = function(obj) { 30764 return obj && obj.__esModule ? obj : { 30765 default: obj 30766 }; 30767 }(_from); 30768 exports.default = function(arr) { 30769 if (Array.isArray(arr)) { 30770 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; 30771 return arr2; 30772 } 30773 return (0, _from2.default)(arr); 30774 }; 30775 }, function(module, exports, __webpack_require__) { 30776 module.exports = { 30777 default: __webpack_require__(513), 30778 __esModule: !0 30779 }; 30780 }, function(module, exports, __webpack_require__) { 30781 __webpack_require__(155), __webpack_require__(514), module.exports = __webpack_require__(17).Array.from; 30782 }, function(module, exports, __webpack_require__) { 30783 "use strict"; 30784 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); 30785 $export($export.S + $export.F * !__webpack_require__(516)(function(iter) { 30786 Array.from(iter); 30787 }), "Array", { 30788 from: function(arrayLike) { 30789 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); 30790 if (mapping && (mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : void 0, 2)), void 0 == iterFn || C == Array && isArrayIter(iterFn)) for (length = toLength(O.length), 30791 result = new C(length); length > index; index++) createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]); else for (iterator = iterFn.call(O), 30792 result = new C(); !(step = iterator.next()).done; index++) createProperty(result, index, mapping ? call(iterator, mapfn, [ step.value, index ], !0) : step.value); 30793 return result.length = index, result; 30794 } 30795 }); 30796 }, function(module, exports, __webpack_require__) { 30797 "use strict"; 30798 var $defineProperty = __webpack_require__(22), createDesc = __webpack_require__(75); 30799 module.exports = function(object, index, value) { 30800 index in object ? $defineProperty.f(object, index, createDesc(0, value)) : object[index] = value; 30801 }; 30802 }, function(module, exports, __webpack_require__) { 30803 var ITERATOR = __webpack_require__(21)("iterator"), SAFE_CLOSING = !1; 30804 try { 30805 var riter = [ 7 ][ITERATOR](); 30806 riter.return = function() { 30807 SAFE_CLOSING = !0; 30808 }, Array.from(riter, function() { 30809 throw 2; 30810 }); 30811 } catch (e) {} 30812 module.exports = function(exec, skipClosing) { 30813 if (!skipClosing && !SAFE_CLOSING) return !1; 30814 var safe = !1; 30815 try { 30816 var arr = [ 7 ], iter = arr[ITERATOR](); 30817 iter.next = function() { 30818 return { 30819 done: safe = !0 30820 }; 30821 }, arr[ITERATOR] = function() { 30822 return iter; 30823 }, exec(arr); 30824 } catch (e) {} 30825 return safe; 30826 }; 30827 }, function(module, exports, __webpack_require__) { 30828 "use strict"; 30829 function getChildMapping(children, mapFn) { 30830 var mapper = function(child) { 30831 return mapFn && (0, _react.isValidElement)(child) ? mapFn(child) : child; 30832 }, result = Object.create(null); 30833 return children && _react.Children.map(children, function(c) { 30834 return c; 30835 }).forEach(function(child) { 30836 result[child.key] = mapper(child); 30837 }), result; 30838 } 30839 function mergeChildMappings(prev, next) { 30840 function getValueForKey(key) { 30841 return key in next ? next[key] : prev[key]; 30842 } 30843 prev = prev || {}, next = next || {}; 30844 var nextKeysPending = Object.create(null), pendingKeys = []; 30845 for (var prevKey in prev) prevKey in next ? pendingKeys.length && (nextKeysPending[prevKey] = pendingKeys, 30846 pendingKeys = []) : pendingKeys.push(prevKey); 30847 var i = void 0, childMapping = {}; 30848 for (var nextKey in next) { 30849 if (nextKeysPending[nextKey]) for (i = 0; i < nextKeysPending[nextKey].length; i++) { 30850 var pendingNextKey = nextKeysPending[nextKey][i]; 30851 childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey); 30852 } 30853 childMapping[nextKey] = getValueForKey(nextKey); 30854 } 30855 for (i = 0; i < pendingKeys.length; i++) childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]); 30856 return childMapping; 30857 } 30858 exports.__esModule = !0, exports.getChildMapping = getChildMapping, exports.mergeChildMappings = mergeChildMappings; 30859 var _react = __webpack_require__(0); 30860 }, function(module, exports, __webpack_require__) { 30861 "use strict"; 30862 (function(process) { 30863 function _interopRequireDefault(obj) { 30864 return obj && obj.__esModule ? obj : { 30865 default: obj 30866 }; 30867 } 30868 Object.defineProperty(exports, "__esModule", { 30869 value: !0 30870 }); 30871 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) { 30872 function Ripple() { 30873 var _ref, _temp, _this, _ret; 30874 (0, _classCallCheck3.default)(this, Ripple); 30875 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 30876 return _temp = _this = (0, _possibleConstructorReturn3.default)(this, (_ref = Ripple.__proto__ || (0, 30877 _getPrototypeOf2.default)(Ripple)).call.apply(_ref, [ this ].concat(args))), _this.state = { 30878 rippleVisible: !1, 30879 rippleLeaving: !1 30880 }, _this.handleEnter = function() { 30881 _this.setState({ 30882 rippleVisible: !0 30883 }); 30884 }, _this.handleExit = function() { 30885 _this.setState({ 30886 rippleLeaving: !0 30887 }); 30888 }, _ret = _temp, (0, _possibleConstructorReturn3.default)(_this, _ret); 30889 } 30890 return (0, _inherits3.default)(Ripple, _React$Component), (0, _createClass3.default)(Ripple, [ { 30891 key: "render", 30892 value: function() { 30893 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, 30894 _objectWithoutProperties3.default)(_props, [ "classes", "className", "pulsate", "rippleX", "rippleY", "rippleSize" ]), _state = this.state, rippleVisible = _state.rippleVisible, rippleLeaving = _state.rippleLeaving, className = (0, 30895 _classnames2.default)(classes.wrapper, (_classNames = {}, (0, _defineProperty3.default)(_classNames, classes.wrapperLeaving, rippleLeaving), 30896 (0, _defineProperty3.default)(_classNames, classes.wrapperPulsating, pulsate), _classNames), classNameProp), rippleClassName = (0, 30897 _classnames2.default)(classes.ripple, (_classNames2 = {}, (0, _defineProperty3.default)(_classNames2, classes.rippleVisible, rippleVisible), 30898 (0, _defineProperty3.default)(_classNames2, classes.rippleFast, pulsate), _classNames2)), rippleStyles = { 30899 width: rippleSize, 30900 height: rippleSize, 30901 top: -rippleSize / 2 + rippleY, 30902 left: -rippleSize / 2 + rippleX 30903 }; 30904 return _react2.default.createElement(_Transition2.default, (0, _extends3.default)({ 30905 onEnter: this.handleEnter, 30906 onExit: this.handleExit 30907 }, other), _react2.default.createElement("span", { 30908 className: className 30909 }, _react2.default.createElement("span", { 30910 className: rippleClassName, 30911 style: rippleStyles 30912 }))); 30913 } 30914 } ]), Ripple; 30915 }(_react2.default.Component); 30916 Ripple.propTypes = "production" !== process.env.NODE_ENV ? { 30917 classes: _propTypes2.default.object.isRequired, 30918 className: _propTypes2.default.string, 30919 pulsate: _propTypes2.default.bool, 30920 rippleSize: _propTypes2.default.number, 30921 rippleX: _propTypes2.default.number, 30922 rippleY: _propTypes2.default.number 30923 } : {}, Ripple.defaultProps = { 30924 pulsate: !1 30925 }, exports.default = Ripple; 30926 }).call(exports, __webpack_require__(2)); 30927 }, function(module, exports, __webpack_require__) { 30928 "use strict"; 30929 function transitionTimeout(transitionType) { 30930 var timeoutPropName = "transition" + transitionType + "Timeout", enabledPropName = "transition" + transitionType; 30931 return function(props) { 30932 if (props[enabledPropName]) { 30933 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了解更多信息。“); 30934 if ("number" != typeof props[timeoutPropName]) return new Error(timeoutPropName + " must be a number (in milliseconds)"); 30935 } 30936 return null; 30937 }; 30938 } 30939 exports.__esModule = !0, exports.classNamesShape = exports.timeoutsShape = void 0, 30940 exports.transitionTimeout = transitionTimeout; 30941 var _propTypes = __webpack_require__(1), _propTypes2 = function(obj) { 30942 return obj && obj.__esModule ? obj : { 30943 default: obj 30944 }; 30945 }(_propTypes); 30946 exports.timeoutsShape = _propTypes2.default.oneOfType([ _propTypes2.default.number, _propTypes2.default.shape({ 30947 enter: _propTypes2.default.number, 30948 exit: _propTypes2.default.number 30949 }).isRequired ]), exports.classNamesShape = _propTypes2.default.oneOfType([ _propTypes2.default.string, _propTypes2.default.shape({ 30950 enter: _propTypes2.default.string, 30951 exit: _propTypes2.default.string, 30952 active: _propTypes2.default.string 30953 }), _propTypes2.default.shape({ 30954 enter: _propTypes2.default.string, 30955 enterActive: _propTypes2.default.string, 30956 exit: _propTypes2.default.string, 30957 exitActive: _propTypes2.default.string 30958 }) ]); 30959 }, function(module, exports, __webpack_require__) { 30960 "use strict"; 30961 function createRippleHandler(instance, eventName, action, cb) { 30962 return function(event) { 30963 return cb && cb.call(instance, event), !event.defaultPrevented && (instance.ripple && instance.ripple[action](event), 30964 instance.props && "function" == typeof instance.props["on" + eventName] && instance.props["on" + eventName](event), 30965 !0); 30966 }; 30967 } 30968 Object.defineProperty(exports, "__esModule", { 30969 value: !0 30970 }), exports.default = createRippleHandler; 30971 }, function(module, exports, __webpack_require__) { 30972 "use strict"; 30973 (function(process) { 30974 function _interopRequireDefault(obj) { 30975 return obj && obj.__esModule ? obj : { 30976 default: obj 30977 }; 30978 } 30979 function SvgIcon(props) { 30980 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, 30981 _objectWithoutProperties3.default)(props, [ "children", "classes", "className", "color", "fontSize", "nativeColor", "titleAccess", "viewBox" ]), className = (0, 30982 _classnames2.default)(classes.root, (_classNames = {}, (0, _defineProperty3.default)(_classNames, classes["color" + (0, 30983 _helpers.capitalize)(color)], "inherit" !== color), (0, _defineProperty3.default)(_classNames, classes.fontSize, fontSize), 30984 _classNames), classNameProp); 30985 return _react2.default.createElement("svg", (0, _extends3.default)({ 30986 className: className, 30987 focusable: "false", 30988 viewBox: viewBox, 30989 color: nativeColor, 30990 "aria-hidden": titleAccess ? "false" : "true" 30991 }, other), titleAccess ? _react2.default.createElement("title", null, titleAccess) : null, children); 30992 } 30993 Object.defineProperty(exports, "__esModule", { 30994 value: !0 30995 }), exports.styles = void 0; 30996 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) { 30997 return { 30998 root: { 30999 display: "inline-block", 31000 fill: "currentColor", 31001 height: 24, 31002 width: 24, 31003 userSelect: "none", 31004 flexShrink: 0, 31005 transition: theme.transitions.create("fill", { 31006 duration: theme.transitions.duration.shorter 31007 }) 31008 }, 31009 colorPrimary: { 31010 color: theme.palette.primary.main 31011 }, 31012 colorSecondary: { 31013 color: theme.palette.secondary.main 31014 }, 31015 colorAction: { 31016 color: theme.palette.action.active 31017 }, 31018 colorDisabled: { 31019 color: theme.palette.action.disabled 31020 }, 31021 colorError: { 31022 color: theme.palette.error.main 31023 }, 31024 fontSize: { 31025 width: "1em", 31026 height: "1em" 31027 } 31028 }; 31029 }; 31030 SvgIcon.propTypes = "production" !== process.env.NODE_ENV ? { 31031 children: _propTypes2.default.node.isRequired, 31032 classes: _propTypes2.default.object.isRequired, 31033 className: _propTypes2.default.string, 31034 color: _propTypes2.default.oneOf([ "action", "disabled", "error", "inherit", "primary", "secondary" ]), 31035 fontSize: _propTypes2.default.bool, 31036 nativeColor: _propTypes2.default.string, 31037 titleAccess: _propTypes2.default.string, 31038 viewBox: _propTypes2.default.string 31039 } : {}, SvgIcon.defaultProps = { 31040 color: "inherit", 31041 fontSize: !1, 31042 viewBox: "0 0 24 24" 31043 }, SvgIcon.muiName = "SvgIcon", exports.default = (0, _withStyles2.default)(styles, { 31044 name: "MuiSvgIcon" 31045 })(SvgIcon); 31046 }).call(exports, __webpack_require__(2)); 31047 }, function(module, exports, __webpack_require__) { 31048 "use strict"; 31049 (function(process) { 31050 function _interopRequireDefault(obj) { 31051 return obj && obj.__esModule ? obj : { 31052 default: obj 31053 }; 31054 } 31055 function Icon(props) { 31056 var _classNames, children = props.children, classes = props.classes, classNameProp = props.className, color = props.color, fontSize = props.fontSize, other = (0, 31057 _objectWithoutProperties3.default)(props, [ "children", "classes", "className", "color", "fontSize" ]), className = (0, 31058 _classnames2.default)("material-icons", classes.root, (_classNames = {}, (0, _defineProperty3.default)(_classNames, classes["color" + (0, 31059 _helpers.capitalize)(color)], "inherit" !== color), (0, _defineProperty3.default)(_classNames, classes.fontSize, fontSize), 31060 _classNames), classNameProp); 31061 return _react2.default.createElement("span", (0, _extends3.default)({ 31062 className: className, 31063 "aria-hidden": "true" 31064 }, other), children); 31065 } 31066 Object.defineProperty(exports, "__esModule", { 31067 value: !0 31068 }), exports.styles = void 0; 31069 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) { 31070 return { 31071 root: { 31072 userSelect: "none" 31073 }, 31074 colorPrimary: { 31075 color: theme.palette.primary.main 31076 }, 31077 colorSecondary: { 31078 color: theme.palette.secondary.main 31079 }, 31080 colorAction: { 31081 color: theme.palette.action.active 31082 }, 31083 colorDisabled: { 31084 color: theme.palette.action.disabled 31085 }, 31086 colorError: { 31087 color: theme.palette.error.main 31088 }, 31089 fontSize: { 31090 width: "1em", 31091 height: "1em" 31092 } 31093 }; 31094 }; 31095 Icon.propTypes = "production" !== process.env.NODE_ENV ? { 31096 children: _propTypes2.default.node, 31097 classes: _propTypes2.default.object.isRequired, 31098 className: _propTypes2.default.string, 31099 color: _propTypes2.default.oneOf([ "inherit", "secondary", "action", "disabled", "error", "primary" ]), 31100 fontSize: _propTypes2.default.bool 31101 } : {}, Icon.defaultProps = { 31102 color: "inherit", 31103 fontSize: !1 31104 }, Icon.muiName = "Icon", exports.default = (0, _withStyles2.default)(styles, { 31105 name: "MuiIcon" 31106 })(Icon); 31107 }).call(exports, __webpack_require__(2)); 31108 }, function(module, exports, __webpack_require__) { 31109 "use strict"; 31110 (function(global) { 31111 function _interopRequireDefault(obj) { 31112 return obj && obj.__esModule ? obj : { 31113 default: obj 31114 }; 31115 } 31116 Object.defineProperty(exports, "__esModule", { 31117 value: !0 31118 }); 31119 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", { 31120 d: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" 31121 }), Menu = function(props) { 31122 return _react2.default.createElement(SvgIconCustom, props, _ref); 31123 }; 31124 Menu = (0, _pure2.default)(Menu), Menu.muiName = "SvgIcon", exports.default = Menu; 31125 }).call(exports, __webpack_require__(40)); 31126 }, function(module, exports, __webpack_require__) { 31127 "use strict"; 31128 (function(process) { 31129 function _interopRequireDefault(obj) { 31130 return obj && obj.__esModule ? obj : { 31131 default: obj 31132 }; 31133 } 31134 exports.__esModule = !0; 31135 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) { 31136 var hoc = (0, _shouldUpdate2.default)(function(props, nextProps) { 31137 return !(0, _shallowEqual2.default)(props, nextProps); 31138 }); 31139 return "production" !== process.env.NODE_ENV ? (0, _setDisplayName2.default)((0, 31140 _wrapDisplayName2.default)(BaseComponent, "pure"))(hoc(BaseComponent)) : hoc(BaseComponent); 31141 }; 31142 exports.default = pure; 31143 }).call(exports, __webpack_require__(2)); 31144 }, function(module, exports, __webpack_require__) { 31145 "use strict"; 31146 (function(process) { 31147 function _interopRequireDefault(obj) { 31148 return obj && obj.__esModule ? obj : { 31149 default: obj 31150 }; 31151 } 31152 function _classCallCheck(instance, Constructor) { 31153 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 31154 } 31155 function _possibleConstructorReturn(self, call) { 31156 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 31157 return !call || "object" != typeof call && "function" != typeof call ? self : call; 31158 } 31159 function _inherits(subClass, superClass) { 31160 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 31161 subClass.prototype = Object.create(superClass && superClass.prototype, { 31162 constructor: { 31163 value: subClass, 31164 enumerable: !1, 31165 writable: !0, 31166 configurable: !0 31167 } 31168 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 31169 } 31170 exports.__esModule = !0; 31171 var _react = __webpack_require__(0), _setDisplayName = __webpack_require__(259), _setDisplayName2 = _interopRequireDefault(_setDisplayName), _wrapDisplayName = __webpack_require__(79), _wrapDisplayName2 = _interopRequireDefault(_wrapDisplayName), shouldUpdate = function(test) { 31172 return function(BaseComponent) { 31173 var factory = (0, _react.createFactory)(BaseComponent), ShouldUpdate = function(_Component) { 31174 function ShouldUpdate() { 31175 return _classCallCheck(this, ShouldUpdate), _possibleConstructorReturn(this, _Component.apply(this, arguments)); 31176 } 31177 return _inherits(ShouldUpdate, _Component), ShouldUpdate.prototype.shouldComponentUpdate = function(nextProps) { 31178 return test(this.props, nextProps); 31179 }, ShouldUpdate.prototype.render = function() { 31180 return factory(this.props); 31181 }, ShouldUpdate; 31182 }(_react.Component); 31183 return "production" !== process.env.NODE_ENV ? (0, _setDisplayName2.default)((0, 31184 _wrapDisplayName2.default)(BaseComponent, "shouldUpdate"))(ShouldUpdate) : ShouldUpdate; 31185 }; 31186 }; 31187 exports.default = shouldUpdate; 31188 }).call(exports, __webpack_require__(2)); 31189 }, function(module, exports, __webpack_require__) { 31190 "use strict"; 31191 exports.__esModule = !0; 31192 var setStatic = function(key, value) { 31193 return function(BaseComponent) { 31194 return BaseComponent[key] = value, BaseComponent; 31195 }; 31196 }; 31197 exports.default = setStatic; 31198 }, function(module, exports, __webpack_require__) { 31199 "use strict"; 31200 exports.__esModule = !0; 31201 var _shallowEqual = __webpack_require__(100), _shallowEqual2 = function(obj) { 31202 return obj && obj.__esModule ? obj : { 31203 default: obj 31204 }; 31205 }(_shallowEqual); 31206 exports.default = _shallowEqual2.default; 31207 }, function(module, exports, __webpack_require__) { 31208 "use strict"; 31209 (function(process) { 31210 function _interopRequireDefault(obj) { 31211 return obj && obj.__esModule ? obj : { 31212 default: obj 31213 }; 31214 } 31215 function Typography(props) { 31216 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, 31217 _objectWithoutProperties3.default)(props, [ "align", "classes", "className", "component", "color", "gutterBottom", "headlineMapping", "noWrap", "paragraph", "variant" ]), className = (0, 31218 _classnames2.default)(classes.root, classes[variant], (_classNames = {}, (0, _defineProperty3.default)(_classNames, classes["color" + (0, 31219 _helpers.capitalize)(color)], "default" !== color), (0, _defineProperty3.default)(_classNames, classes.noWrap, noWrap), 31220 (0, _defineProperty3.default)(_classNames, classes.gutterBottom, gutterBottom), 31221 (0, _defineProperty3.default)(_classNames, classes.paragraph, paragraph), (0, _defineProperty3.default)(_classNames, classes["align" + (0, 31222 _helpers.capitalize)(align)], "inherit" !== align), _classNames), classNameProp), Component = componentProp || (paragraph ? "p" : headlineMapping[variant]) || "span"; 31223 return _react2.default.createElement(Component, (0, _extends3.default)({ 31224 className: className 31225 }, other)); 31226 } 31227 Object.defineProperty(exports, "__esModule", { 31228 value: !0 31229 }), exports.styles = void 0; 31230 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) { 31231 return { 31232 root: { 31233 display: "block", 31234 margin: 0 31235 }, 31236 display4: theme.typography.display4, 31237 display3: theme.typography.display3, 31238 display2: theme.typography.display2, 31239 display1: theme.typography.display1, 31240 headline: theme.typography.headline, 31241 title: theme.typography.title, 31242 subheading: theme.typography.subheading, 31243 body2: theme.typography.body2, 31244 body1: theme.typography.body1, 31245 caption: theme.typography.caption, 31246 button: theme.typography.button, 31247 alignLeft: { 31248 textAlign: "left" 31249 }, 31250 alignCenter: { 31251 textAlign: "center" 31252 }, 31253 alignRight: { 31254 textAlign: "right" 31255 }, 31256 alignJustify: { 31257 textAlign: "justify" 31258 }, 31259 noWrap: { 31260 overflow: "hidden", 31261 textOverflow: "ellipsis", 31262 whiteSpace: "nowrap" 31263 }, 31264 gutterBottom: { 31265 marginBottom: "0.35em" 31266 }, 31267 paragraph: { 31268 marginBottom: 2 * theme.spacing.unit 31269 }, 31270 colorInherit: { 31271 color: "inherit" 31272 }, 31273 colorPrimary: { 31274 color: theme.palette.primary.main 31275 }, 31276 colorSecondary: { 31277 color: theme.palette.secondary.main 31278 }, 31279 colorTextSecondary: { 31280 color: theme.palette.text.secondary 31281 }, 31282 colorError: { 31283 color: theme.palette.error.main 31284 } 31285 }; 31286 }; 31287 Typography.propTypes = "production" !== process.env.NODE_ENV ? { 31288 align: _propTypes2.default.oneOf([ "inherit", "left", "center", "right", "justify" ]), 31289 children: _propTypes2.default.node, 31290 classes: _propTypes2.default.object.isRequired, 31291 className: _propTypes2.default.string, 31292 color: _propTypes2.default.oneOf([ "inherit", "primary", "textSecondary", "secondary", "error", "default" ]), 31293 component: _propTypes2.default.oneOfType([ _propTypes2.default.string, _propTypes2.default.func ]), 31294 gutterBottom: _propTypes2.default.bool, 31295 headlineMapping: _propTypes2.default.object, 31296 noWrap: _propTypes2.default.bool, 31297 paragraph: _propTypes2.default.bool, 31298 variant: _propTypes2.default.oneOf([ "display4", "display3", "display2", "display1", "headline", "title", "subheading", "body2", "body1", "caption", "button" ]) 31299 } : {}, Typography.defaultProps = { 31300 align: "inherit", 31301 color: "default", 31302 gutterBottom: !1, 31303 headlineMapping: { 31304 display4: "h1", 31305 display3: "h1", 31306 display2: "h1", 31307 display1: "h1", 31308 headline: "h1", 31309 title: "h2", 31310 subheading: "h3", 31311 body2: "aside", 31312 body1: "p" 31313 }, 31314 noWrap: !1, 31315 paragraph: !1, 31316 variant: "body1" 31317 }, exports.default = (0, _withStyles2.default)(styles, { 31318 name: "MuiTypography" 31319 })(Typography); 31320 }).call(exports, __webpack_require__(2)); 31321 }, function(module, exports, __webpack_require__) { 31322 "use strict"; 31323 function _interopRequireDefault(obj) { 31324 return obj && obj.__esModule ? obj : { 31325 default: obj 31326 }; 31327 } 31328 function _classCallCheck(instance, Constructor) { 31329 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 31330 } 31331 function _possibleConstructorReturn(self, call) { 31332 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 31333 return !call || "object" != typeof call && "function" != typeof call ? self : call; 31334 } 31335 function _inherits(subClass, superClass) { 31336 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 31337 subClass.prototype = Object.create(superClass && superClass.prototype, { 31338 constructor: { 31339 value: subClass, 31340 enumerable: !1, 31341 writable: !0, 31342 configurable: !0 31343 } 31344 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 31345 } 31346 Object.defineProperty(exports, "__esModule", { 31347 value: !0 31348 }); 31349 var _createClass = function() { 31350 function defineProperties(target, props) { 31351 for (var i = 0; i < props.length; i++) { 31352 var descriptor = props[i]; 31353 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 31354 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 31355 } 31356 } 31357 return function(Constructor, protoProps, staticProps) { 31358 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 31359 Constructor; 31360 }; 31361 }(), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _SideBar = __webpack_require__(530), _SideBar2 = _interopRequireDefault(_SideBar), _Main = __webpack_require__(549), _Main2 = _interopRequireDefault(_Main), styles = { 31362 body: { 31363 display: "flex", 31364 width: "100%", 31365 height: "92%" 31366 } 31367 }, Body = function(_Component) { 31368 function Body() { 31369 return _classCallCheck(this, Body), _possibleConstructorReturn(this, (Body.__proto__ || Object.getPrototypeOf(Body)).apply(this, arguments)); 31370 } 31371 return _inherits(Body, _Component), _createClass(Body, [ { 31372 key: "render", 31373 value: function() { 31374 return _react2.default.createElement("div", { 31375 style: styles.body 31376 }, _react2.default.createElement(_SideBar2.default, { 31377 opened: this.props.opened, 31378 changeContent: this.props.changeContent 31379 }), _react2.default.createElement(_Main2.default, { 31380 active: this.props.active, 31381 content: this.props.content, 31382 shouldUpdate: this.props.shouldUpdate, 31383 send: this.props.send 31384 })); 31385 } 31386 } ]), Body; 31387 }(_react.Component); 31388 exports.default = Body; 31389 }, function(module, exports, __webpack_require__) { 31390 "use strict"; 31391 function _interopRequireDefault(obj) { 31392 return obj && obj.__esModule ? obj : { 31393 default: obj 31394 }; 31395 } 31396 function _classCallCheck(instance, Constructor) { 31397 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 31398 } 31399 function _possibleConstructorReturn(self, call) { 31400 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 31401 return !call || "object" != typeof call && "function" != typeof call ? self : call; 31402 } 31403 function _inherits(subClass, superClass) { 31404 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 31405 subClass.prototype = Object.create(superClass && superClass.prototype, { 31406 constructor: { 31407 value: subClass, 31408 enumerable: !1, 31409 writable: !0, 31410 configurable: !0 31411 } 31412 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 31413 } 31414 Object.defineProperty(exports, "__esModule", { 31415 value: !0 31416 }); 31417 var _extends = Object.assign || function(target) { 31418 for (var i = 1; i < arguments.length; i++) { 31419 var source = arguments[i]; 31420 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 31421 } 31422 return target; 31423 }, _createClass = function() { 31424 function defineProperties(target, props) { 31425 for (var i = 0; i < props.length; i++) { 31426 var descriptor = props[i]; 31427 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 31428 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 31429 } 31430 } 31431 return function(Constructor, protoProps, staticProps) { 31432 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 31433 Constructor; 31434 }; 31435 }(), _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 = { 31436 menu: { 31437 default: { 31438 transition: "margin-left " + _common.DURATION + "ms" 31439 }, 31440 transition: { 31441 entered: { 31442 marginLeft: -200 31443 } 31444 } 31445 } 31446 }, themeStyles = function(theme) { 31447 return { 31448 list: { 31449 background: theme.palette.grey[900] 31450 }, 31451 listItem: { 31452 minWidth: 7 * theme.spacing.unit 31453 }, 31454 icon: { 31455 fontSize: 3 * theme.spacing.unit 31456 } 31457 }; 31458 }, SideBar = function(_Component) { 31459 function SideBar() { 31460 var _ref, _temp, _this, _ret; 31461 _classCallCheck(this, SideBar); 31462 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 31463 return _temp = _this = _possibleConstructorReturn(this, (_ref = SideBar.__proto__ || Object.getPrototypeOf(SideBar)).call.apply(_ref, [ this ].concat(args))), 31464 _this.clickOn = function(menu) { 31465 return function(event) { 31466 event.preventDefault(), _this.props.changeContent(menu); 31467 }; 31468 }, _this.menuItems = function(transitionState) { 31469 var classes = _this.props.classes, children = []; 31470 return _common.MENU.forEach(function(menu) { 31471 children.push(_react2.default.createElement(_List.ListItem, { 31472 button: !0, 31473 key: menu.id, 31474 onClick: _this.clickOn(menu.id), 31475 className: classes.listItem 31476 }, _react2.default.createElement(_List.ListItemIcon, null, _react2.default.createElement(_Icon2.default, { 31477 className: classes.icon 31478 }, _react2.default.createElement(_reactFa.Icon, { 31479 name: menu.icon 31480 }))), _react2.default.createElement(_List.ListItemText, { 31481 primary: menu.title, 31482 style: _extends({}, styles.menu.default, styles.menu.transition[transitionState], { 31483 padding: 0 31484 }) 31485 }))); 31486 }), children; 31487 }, _this.menu = function(transitionState) { 31488 return _react2.default.createElement("div", { 31489 className: _this.props.classes.list 31490 }, _react2.default.createElement(_List2.default, null, _this.menuItems(transitionState))); 31491 }, _ret = _temp, _possibleConstructorReturn(_this, _ret); 31492 } 31493 return _inherits(SideBar, _Component), _createClass(SideBar, [ { 31494 key: "shouldComponentUpdate", 31495 value: function(nextProps) { 31496 return nextProps.opened !== this.props.opened; 31497 } 31498 }, { 31499 key: "render", 31500 value: function() { 31501 return _react2.default.createElement(_Transition2.default, { 31502 mountOnEnter: !0, 31503 in: this.props.opened, 31504 timeout: { 31505 enter: _common.DURATION 31506 } 31507 }, this.menu); 31508 } 31509 } ]), SideBar; 31510 }(_react.Component); 31511 exports.default = (0, _withStyles2.default)(themeStyles)(SideBar); 31512 }, function(module, exports, __webpack_require__) { 31513 "use strict"; 31514 (function(process) { 31515 function _interopRequireDefault(obj) { 31516 return obj && obj.__esModule ? obj : { 31517 default: obj 31518 }; 31519 } 31520 Object.defineProperty(exports, "__esModule", { 31521 value: !0 31522 }), exports.styles = void 0; 31523 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) { 31524 return { 31525 root: { 31526 listStyle: "none", 31527 margin: 0, 31528 padding: 0, 31529 position: "relative" 31530 }, 31531 padding: { 31532 paddingTop: theme.spacing.unit, 31533 paddingBottom: theme.spacing.unit 31534 }, 31535 dense: { 31536 paddingTop: theme.spacing.unit / 2, 31537 paddingBottom: theme.spacing.unit / 2 31538 }, 31539 subheader: { 31540 paddingTop: 0 31541 } 31542 }; 31543 }, List = function(_React$Component) { 31544 function List() { 31545 return (0, _classCallCheck3.default)(this, List), (0, _possibleConstructorReturn3.default)(this, (List.__proto__ || (0, 31546 _getPrototypeOf2.default)(List)).apply(this, arguments)); 31547 } 31548 return (0, _inherits3.default)(List, _React$Component), (0, _createClass3.default)(List, [ { 31549 key: "getChildContext", 31550 value: function() { 31551 return { 31552 dense: this.props.dense 31553 }; 31554 } 31555 }, { 31556 key: "render", 31557 value: function() { 31558 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, 31559 _objectWithoutProperties3.default)(_props, [ "children", "classes", "className", "component", "dense", "disablePadding", "subheader" ]), className = (0, 31560 _classnames2.default)(classes.root, (_classNames = {}, (0, _defineProperty3.default)(_classNames, classes.dense, dense && !disablePadding), 31561 (0, _defineProperty3.default)(_classNames, classes.padding, !disablePadding), (0, 31562 _defineProperty3.default)(_classNames, classes.subheader, subheader), _classNames), classNameProp); 31563 return _react2.default.createElement(Component, (0, _extends3.default)({ 31564 className: className 31565 }, other), subheader, children); 31566 } 31567 } ]), List; 31568 }(_react2.default.Component); 31569 List.propTypes = "production" !== process.env.NODE_ENV ? { 31570 children: _propTypes2.default.node, 31571 classes: _propTypes2.default.object.isRequired, 31572 className: _propTypes2.default.string, 31573 component: _propTypes2.default.oneOfType([ _propTypes2.default.string, _propTypes2.default.func ]), 31574 dense: _propTypes2.default.bool, 31575 disablePadding: _propTypes2.default.bool, 31576 subheader: _propTypes2.default.node 31577 } : {}, List.defaultProps = { 31578 component: "ul", 31579 dense: !1, 31580 disablePadding: !1 31581 }, List.childContextTypes = { 31582 dense: _propTypes2.default.bool 31583 }, exports.default = (0, _withStyles2.default)(styles, { 31584 name: "MuiList" 31585 })(List); 31586 }).call(exports, __webpack_require__(2)); 31587 }, function(module, exports, __webpack_require__) { 31588 "use strict"; 31589 (function(process) { 31590 function _interopRequireDefault(obj) { 31591 return obj && obj.__esModule ? obj : { 31592 default: obj 31593 }; 31594 } 31595 Object.defineProperty(exports, "__esModule", { 31596 value: !0 31597 }), exports.styles = void 0; 31598 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) { 31599 return { 31600 root: { 31601 display: "flex", 31602 justifyContent: "flex-start", 31603 alignItems: "center", 31604 position: "relative", 31605 textDecoration: "none", 31606 width: "100%", 31607 boxSizing: "border-box", 31608 textAlign: "left" 31609 }, 31610 container: { 31611 position: "relative" 31612 }, 31613 keyboardFocused: { 31614 backgroundColor: theme.palette.action.hover 31615 }, 31616 default: { 31617 paddingTop: 12, 31618 paddingBottom: 12 31619 }, 31620 dense: { 31621 paddingTop: theme.spacing.unit, 31622 paddingBottom: theme.spacing.unit 31623 }, 31624 disabled: { 31625 opacity: .5 31626 }, 31627 divider: { 31628 borderBottom: "1px solid " + theme.palette.divider, 31629 backgroundClip: "padding-box" 31630 }, 31631 gutters: { 31632 paddingLeft: 2 * theme.spacing.unit, 31633 paddingRight: 2 * theme.spacing.unit 31634 }, 31635 button: { 31636 transition: theme.transitions.create("background-color", { 31637 duration: theme.transitions.duration.shortest 31638 }), 31639 "&:hover": { 31640 textDecoration: "none", 31641 backgroundColor: theme.palette.action.hover, 31642 "@media (hover: none)": { 31643 backgroundColor: "transparent" 31644 } 31645 } 31646 }, 31647 secondaryAction: { 31648 paddingRight: 4 * theme.spacing.unit 31649 } 31650 }; 31651 }, ListItem = function(_React$Component) { 31652 function ListItem() { 31653 return (0, _classCallCheck3.default)(this, ListItem), (0, _possibleConstructorReturn3.default)(this, (ListItem.__proto__ || (0, 31654 _getPrototypeOf2.default)(ListItem)).apply(this, arguments)); 31655 } 31656 return (0, _inherits3.default)(ListItem, _React$Component), (0, _createClass3.default)(ListItem, [ { 31657 key: "getChildContext", 31658 value: function() { 31659 return { 31660 dense: this.props.dense || this.context.dense || !1 31661 }; 31662 } 31663 }, { 31664 key: "render", 31665 value: function() { 31666 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, 31667 _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) { 31668 return (0, _reactHelpers.isMuiElement)(value, [ "ListItemAvatar" ]); 31669 }), hasSecondaryAction = children.length && (0, _reactHelpers.isMuiElement)(children[children.length - 1], [ "ListItemSecondaryAction" ]), className = (0, 31670 _classnames2.default)(classes.root, isDense || hasAvatar ? classes.dense : classes.default, (_classNames = {}, 31671 (0, _defineProperty3.default)(_classNames, classes.gutters, !disableGutters), (0, 31672 _defineProperty3.default)(_classNames, classes.divider, divider), (0, _defineProperty3.default)(_classNames, classes.disabled, disabled), 31673 (0, _defineProperty3.default)(_classNames, classes.button, button), (0, _defineProperty3.default)(_classNames, classes.secondaryAction, hasSecondaryAction), 31674 _classNames), classNameProp), componentProps = (0, _extends3.default)({ 31675 className: className, 31676 disabled: disabled 31677 }, other), Component = componentProp || "li"; 31678 return button && (componentProps.component = componentProp || "div", componentProps.keyboardFocusedClassName = classes.keyboardFocused, 31679 Component = _ButtonBase2.default), hasSecondaryAction ? (Component = Component === _ButtonBase2.default || componentProp ? Component : "div", 31680 _react2.default.createElement(ContainerComponent, (0, _extends3.default)({ 31681 className: classes.container 31682 }, ContainerProps), _react2.default.createElement(Component, componentProps, children), children.pop())) : _react2.default.createElement(Component, componentProps, children); 31683 } 31684 } ]), ListItem; 31685 }(_react2.default.Component); 31686 ListItem.propTypes = "production" !== process.env.NODE_ENV ? { 31687 button: _propTypes2.default.bool, 31688 children: _propTypes2.default.node, 31689 classes: _propTypes2.default.object.isRequired, 31690 className: _propTypes2.default.string, 31691 component: _propTypes2.default.oneOfType([ _propTypes2.default.string, _propTypes2.default.func ]), 31692 ContainerComponent: _propTypes2.default.oneOfType([ _propTypes2.default.string, _propTypes2.default.func ]), 31693 ContainerProps: _propTypes2.default.object, 31694 dense: _propTypes2.default.bool, 31695 disabled: _propTypes2.default.bool, 31696 disableGutters: _propTypes2.default.bool, 31697 divider: _propTypes2.default.bool 31698 } : {}, ListItem.defaultProps = { 31699 button: !1, 31700 ContainerComponent: "li", 31701 dense: !1, 31702 disabled: !1, 31703 disableGutters: !1, 31704 divider: !1 31705 }, ListItem.contextTypes = { 31706 dense: _propTypes2.default.bool 31707 }, ListItem.childContextTypes = { 31708 dense: _propTypes2.default.bool 31709 }, exports.default = (0, _withStyles2.default)(styles, { 31710 name: "MuiListItem" 31711 })(ListItem); 31712 }).call(exports, __webpack_require__(2)); 31713 }, function(module, exports, __webpack_require__) { 31714 "use strict"; 31715 (function(process) { 31716 function _interopRequireDefault(obj) { 31717 return obj && obj.__esModule ? obj : { 31718 default: obj 31719 }; 31720 } 31721 function ListItemAvatar(props, context) { 31722 var children = props.children, classes = props.classes, classNameProp = props.className, other = (0, 31723 _objectWithoutProperties3.default)(props, [ "children", "classes", "className" ]); 31724 return void 0 === context.dense ? ("production" !== process.env.NODE_ENV && (0, 31725 _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."), 31726 props.children) : _react2.default.cloneElement(children, (0, _extends3.default)({ 31727 className: (0, _classnames2.default)((0, _defineProperty3.default)({}, classes.root, context.dense), classNameProp, children.props.className), 31728 childrenClassName: (0, _classnames2.default)((0, _defineProperty3.default)({}, classes.icon, context.dense), children.props.childrenClassName) 31729 }, other)); 31730 } 31731 Object.defineProperty(exports, "__esModule", { 31732 value: !0 31733 }), exports.styles = void 0; 31734 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) { 31735 return { 31736 root: { 31737 width: 36, 31738 height: 36, 31739 fontSize: theme.typography.pxToRem(18), 31740 marginRight: 4 31741 }, 31742 icon: { 31743 width: 20, 31744 height: 20, 31745 fontSize: theme.typography.pxToRem(20) 31746 } 31747 }; 31748 }; 31749 ListItemAvatar.propTypes = "production" !== process.env.NODE_ENV ? { 31750 children: _propTypes2.default.element.isRequired, 31751 classes: _propTypes2.default.object.isRequired, 31752 className: _propTypes2.default.string 31753 } : {}, ListItemAvatar.contextTypes = { 31754 dense: _propTypes2.default.bool 31755 }, ListItemAvatar.muiName = "ListItemAvatar", exports.default = (0, _withStyles2.default)(styles, { 31756 name: "MuiListItemAvatar" 31757 })(ListItemAvatar); 31758 }).call(exports, __webpack_require__(2)); 31759 }, function(module, exports, __webpack_require__) { 31760 "use strict"; 31761 (function(process) { 31762 function _interopRequireDefault(obj) { 31763 return obj && obj.__esModule ? obj : { 31764 default: obj 31765 }; 31766 } 31767 function ListItemText(props, context) { 31768 var _classNames, classes = props.classes, classNameProp = props.className, disableTypography = props.disableTypography, inset = props.inset, primary = props.primary, secondary = props.secondary, other = (0, 31769 _objectWithoutProperties3.default)(props, [ "classes", "className", "disableTypography", "inset", "primary", "secondary" ]), dense = context.dense, className = (0, 31770 _classnames2.default)(classes.root, (_classNames = {}, (0, _defineProperty3.default)(_classNames, classes.dense, dense), 31771 (0, _defineProperty3.default)(_classNames, classes.inset, inset), _classNames), classNameProp); 31772 return _react2.default.createElement("div", (0, _extends3.default)({ 31773 className: className 31774 }, other), primary && (disableTypography ? primary : _react2.default.createElement(_Typography2.default, { 31775 variant: "subheading", 31776 className: (0, _classnames2.default)(classes.primary, (0, _defineProperty3.default)({}, classes.textDense, dense)) 31777 }, primary)), secondary && (disableTypography ? secondary : _react2.default.createElement(_Typography2.default, { 31778 variant: "body1", 31779 className: (0, _classnames2.default)(classes.secondary, (0, _defineProperty3.default)({}, classes.textDense, dense)), 31780 color: "textSecondary" 31781 }, secondary))); 31782 } 31783 Object.defineProperty(exports, "__esModule", { 31784 value: !0 31785 }), exports.styles = void 0; 31786 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) { 31787 return { 31788 root: { 31789 flex: "1 1 auto", 31790 minWidth: 0, 31791 padding: "0 16px", 31792 "&:first-child": { 31793 paddingLeft: 0 31794 } 31795 }, 31796 inset: { 31797 "&:first-child": { 31798 paddingLeft: 7 * theme.spacing.unit 31799 } 31800 }, 31801 dense: { 31802 fontSize: theme.typography.pxToRem(13) 31803 }, 31804 primary: { 31805 "&$textDense": { 31806 fontSize: "inherit" 31807 } 31808 }, 31809 secondary: { 31810 "&$textDense": { 31811 fontSize: "inherit" 31812 } 31813 }, 31814 textDense: {} 31815 }; 31816 }; 31817 ListItemText.propTypes = "production" !== process.env.NODE_ENV ? { 31818 classes: _propTypes2.default.object.isRequired, 31819 className: _propTypes2.default.string, 31820 disableTypography: _propTypes2.default.bool, 31821 inset: _propTypes2.default.bool, 31822 primary: _propTypes2.default.node, 31823 secondary: _propTypes2.default.node 31824 } : {}, ListItemText.defaultProps = { 31825 disableTypography: !1, 31826 inset: !1, 31827 primary: !1, 31828 secondary: !1 31829 }, ListItemText.contextTypes = { 31830 dense: _propTypes2.default.bool 31831 }, exports.default = (0, _withStyles2.default)(styles, { 31832 name: "MuiListItemText" 31833 })(ListItemText); 31834 }).call(exports, __webpack_require__(2)); 31835 }, function(module, exports, __webpack_require__) { 31836 "use strict"; 31837 (function(process) { 31838 function _interopRequireDefault(obj) { 31839 return obj && obj.__esModule ? obj : { 31840 default: obj 31841 }; 31842 } 31843 function ListItemIcon(props) { 31844 var children = props.children, classes = props.classes, classNameProp = props.className, other = (0, 31845 _objectWithoutProperties3.default)(props, [ "children", "classes", "className" ]); 31846 return _react2.default.cloneElement(children, (0, _extends3.default)({ 31847 className: (0, _classnames2.default)(classes.root, classNameProp, children.props.className) 31848 }, other)); 31849 } 31850 Object.defineProperty(exports, "__esModule", { 31851 value: !0 31852 }), exports.styles = void 0; 31853 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) { 31854 return { 31855 root: { 31856 height: 24, 31857 marginRight: 2 * theme.spacing.unit, 31858 width: 24, 31859 color: theme.palette.action.active, 31860 flexShrink: 0 31861 } 31862 }; 31863 }; 31864 ListItemIcon.propTypes = "production" !== process.env.NODE_ENV ? { 31865 children: _propTypes2.default.element.isRequired, 31866 classes: _propTypes2.default.object.isRequired, 31867 className: _propTypes2.default.string 31868 } : {}, exports.default = (0, _withStyles2.default)(styles, { 31869 name: "MuiListItemIcon" 31870 })(ListItemIcon); 31871 }).call(exports, __webpack_require__(2)); 31872 }, function(module, exports, __webpack_require__) { 31873 "use strict"; 31874 (function(process) { 31875 function _interopRequireDefault(obj) { 31876 return obj && obj.__esModule ? obj : { 31877 default: obj 31878 }; 31879 } 31880 function ListItemSecondaryAction(props) { 31881 var children = props.children, classes = props.classes, className = props.className, other = (0, 31882 _objectWithoutProperties3.default)(props, [ "children", "classes", "className" ]); 31883 return _react2.default.createElement("div", (0, _extends3.default)({ 31884 className: (0, _classnames2.default)(classes.root, className) 31885 }, other), children); 31886 } 31887 Object.defineProperty(exports, "__esModule", { 31888 value: !0 31889 }), exports.styles = void 0; 31890 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) { 31891 return { 31892 root: { 31893 position: "absolute", 31894 right: 4, 31895 top: "50%", 31896 marginTop: 3 * -theme.spacing.unit 31897 } 31898 }; 31899 }; 31900 ListItemSecondaryAction.propTypes = "production" !== process.env.NODE_ENV ? { 31901 children: _propTypes2.default.node, 31902 classes: _propTypes2.default.object.isRequired, 31903 className: _propTypes2.default.string 31904 } : {}, ListItemSecondaryAction.muiName = "ListItemSecondaryAction", exports.default = (0, 31905 _withStyles2.default)(styles, { 31906 name: "MuiListItemSecondaryAction" 31907 })(ListItemSecondaryAction); 31908 }).call(exports, __webpack_require__(2)); 31909 }, function(module, exports, __webpack_require__) { 31910 "use strict"; 31911 (function(process) { 31912 function _interopRequireDefault(obj) { 31913 return obj && obj.__esModule ? obj : { 31914 default: obj 31915 }; 31916 } 31917 function ListSubheader(props) { 31918 var _classNames, classes = props.classes, classNameProp = props.className, color = props.color, Component = props.component, disableSticky = props.disableSticky, inset = props.inset, other = (0, 31919 _objectWithoutProperties3.default)(props, [ "classes", "className", "color", "component", "disableSticky", "inset" ]), className = (0, 31920 _classnames2.default)(classes.root, (_classNames = {}, (0, _defineProperty3.default)(_classNames, classes["color" + (0, 31921 _helpers.capitalize)(color)], "default" !== color), (0, _defineProperty3.default)(_classNames, classes.inset, inset), 31922 (0, _defineProperty3.default)(_classNames, classes.sticky, !disableSticky), _classNames), classNameProp); 31923 return _react2.default.createElement(Component, (0, _extends3.default)({ 31924 className: className 31925 }, other)); 31926 } 31927 Object.defineProperty(exports, "__esModule", { 31928 value: !0 31929 }), exports.styles = void 0; 31930 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) { 31931 return { 31932 root: { 31933 boxSizing: "border-box", 31934 lineHeight: "48px", 31935 listStyle: "none", 31936 paddingLeft: 2 * theme.spacing.unit, 31937 paddingRight: 2 * theme.spacing.unit, 31938 color: theme.palette.text.secondary, 31939 fontFamily: theme.typography.fontFamily, 31940 fontWeight: theme.typography.fontWeightMedium, 31941 fontSize: theme.typography.pxToRem(theme.typography.fontSize) 31942 }, 31943 colorPrimary: { 31944 color: theme.palette.primary.main 31945 }, 31946 colorInherit: { 31947 color: "inherit" 31948 }, 31949 inset: { 31950 paddingLeft: 9 * theme.spacing.unit 31951 }, 31952 sticky: { 31953 position: "sticky", 31954 top: 0, 31955 zIndex: 1, 31956 backgroundColor: "inherit" 31957 } 31958 }; 31959 }; 31960 ListSubheader.propTypes = "production" !== process.env.NODE_ENV ? { 31961 children: _propTypes2.default.node, 31962 classes: _propTypes2.default.object.isRequired, 31963 className: _propTypes2.default.string, 31964 color: _propTypes2.default.oneOf([ "default", "primary", "inherit" ]), 31965 component: _propTypes2.default.oneOfType([ _propTypes2.default.string, _propTypes2.default.func ]), 31966 disableSticky: _propTypes2.default.bool, 31967 inset: _propTypes2.default.bool 31968 } : {}, ListSubheader.defaultProps = { 31969 color: "default", 31970 component: "li", 31971 disableSticky: !1, 31972 inset: !1 31973 }, ListSubheader.muiName = "ListSubheader", exports.default = (0, _withStyles2.default)(styles, { 31974 name: "MuiListSubheader" 31975 })(ListSubheader); 31976 }).call(exports, __webpack_require__(2)); 31977 }, function(module, exports, __webpack_require__) { 31978 "use strict"; 31979 function _interopRequireDefault(obj) { 31980 return obj && obj.__esModule ? obj : { 31981 default: obj 31982 }; 31983 } 31984 Object.defineProperty(exports, "__esModule", { 31985 value: !0 31986 }), exports.IconStack = exports.Icon = exports.default = void 0, __webpack_require__(539); 31987 var _Icon = __webpack_require__(547), _Icon2 = _interopRequireDefault(_Icon), _IconStack = __webpack_require__(548), _IconStack2 = _interopRequireDefault(_IconStack); 31988 exports.default = _Icon2.default, exports.Icon = _Icon2.default, exports.IconStack = _IconStack2.default; 31989 }, function(module, exports, __webpack_require__) { 31990 var content = __webpack_require__(540); 31991 "string" == typeof content && (content = [ [ module.i, content, "" ] ]); 31992 var options = { 31993 hmr: !0 31994 }; 31995 options.transform = void 0; 31996 __webpack_require__(545)(content, options); 31997 content.locals && (module.exports = content.locals); 31998 }, function(module, exports, __webpack_require__) { 31999 var escape = __webpack_require__(541); 32000 /* 32001 ,功能(模块,导出) 32002 module.exports=函数(url) 32003 返回“string”!= URL类型?url:(/^['“].*['”]$/.test(url)&&(url=url.slice(1,-1)), 32004 /[“'()\t\n]/.test(url)?'“”+url.replace(/“/g,”\\”)。replace(/\n/g,”\\n”)+“':url); 32005 }; 32006 ,功能(模块,导出) 32007 函数csswithmappingtostring(item,usesourcemap) 32008 var content=item[1]“”,cssmapping=item[3]; 32009 如果(!)cssmapping)返回内容; 32010 if(usesourcemap&“function”==btoa类型) 32011 var sourcemapping=tocomment(cssmapping); 32012 返回[content].concat(cssmapping.sources.map(函数(源) 32013 返回“/*sourceURL=”+cssmapping.sourceRoot+source+“*/"; 32014 32015 })).concat([ sourceMapping ]).join("\n"); 32016 } 32017 return [ content ].join("\n"); 32018 } 32019 function toComment(sourceMap) { 32020 /*urn“/*sourcemappingurl=data:application/json;charset=utf-8;base64,”+btoa(unescape(encodeuricomponent(json.stringify(sourcemap)))+“*/”; 32021 } 32022 module.exports=函数(useSourceMap) 32023 var列表=[]; 32024 return list.toString=function() 32025 返回此.map(函数(项) 32026 var content=csswithmappingtostring(item,usesourcemap); 32027 返回项目[ 2 ]?@媒体+项目[2 ] +“{+ +内容+ }”:内容; 32028 }连接(“”); 32029 ,list.i=功能(模块,媒体查询) 32030 “string”==typeof modules&&(modules=[[null,modules,“”]); 32031 对于(var alreadyimportedmodules=,i=0;i<this.length;i++) 32032 var id=这个[i][0]; 32033 “number”==typeof id&&(alreadyImportedModules[id]=!0); 32034 } 32035 对于(i=0;i<modules.length;i++) 32036 var项=模块[i]; 32037 "number" == typeof item[0] && alreadyImportedModules[item[0]] || (mediaQuery && !项目〔2〕?item[2] = mediaQuery : mediaQuery && (item[2] = "(" + item[2] + ") and (" + mediaQuery + ")"), 32038 list.push(item)); 32039 } 32040 },列表; 32041 }; 32042 ,功能(模块,导出) 32043 32044 ,功能(模块,导出) 32045 32046 ,功能(模块,导出,uu webpack_u require_uuuuu) 32047 函数addStylesToDom(样式,选项) 32048 对于(var i=0;i<styles.length;i++) 32049 var item=styles[i],domstyle=stylesindom[item.id]; 32050 如果(DOMSTORE){ 32051 domstyle.refs++; 32052 对于(var j=0;j<domstyle.parts.length;j++)domstyle.parts[j](item.parts[j]); 32053 对于(;j<item.parts.length;j++)domstyle.parts.push(addstyle(item.parts[j],options)); 32054 }否则{ 32055 for (var parts = [], j = 0; j < item.parts.length; j++) parts.push(addStyle(item.parts[j], options)); 32056 stylesindom[item.id]= 32057 身份证: 32058 参考文献1 32059 零件:零件 32060 }; 32061 } 32062 } 32063 } 32064 函数ListToStyles(列表,选项) 32065 对于(var styles=[],newstyles=,i=0;i<list.length;i++) 32066 var item=list[i],id=options.base?item[0]+options.base:item[0],css=item[1],media=item[2],sourcemap=item[3],part= 32067 CSS,CSS, 32068 媒体:媒体, 32069 源映射:源映射 32070 }; 32071 新闻风格?newStyles[id].parts.push(part):styles.push(newStyles[id]= 32072 身份证: 32073 零件:[零件] 32074 (}); 32075 } 32076 回归风格; 32077 } 32078 函数插入样式元素(选项,样式) 32079 var target=getelement(options.insertinto); 32080 如果(!)target)引发新错误(“找不到样式目标”。这可能意味着“insertinto”参数的值无效。“); 32081 var lastStyleElementInsertedAttop=StylesInsertedAttop[StylesInsertedAttop.Length-1]; 32082 if(“top”==options.insertat)lastStyleElementInsertedAttop?上一个StyleElementInsertedAttop.NextSibling?Target.InsertBefore(Style,LastStyleElementInsertedAttop.NextSibling):Target.AppendChild(Style):Target.InsertBefore(Style,Target.FirstChild), 32083 stylesInsertedatop.push(style);else if(“bottom”==options.insertat)target.AppendChild(style);else 32084 如果(“对象”)!=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”); 32085 var nextsiling=getelement(options.insertinto+“”+options.insertat.before); 32086 target.insertbefore(样式,NextSibling); 32087 } 32088 } 32089 功能移除(样式) 32090 if(null==Style.ParentNode)返回!1; 32091 style.parentnode.removechild(样式); 32092 var idx=stylesInsertedatop.indexof(样式); 32093 idx>=0&&stylesInsertedatop.splice(idx,1); 32094 } 32095 函数createStyleElement(选项) 32096 var style = document.createElement("style"); 32097 return options.attrs.type=“text/css”,addattrs(style,options.attrs),insertStyleElement(options,style), 32098 风格; 32099 } 32100 函数createLinkElement(选项) 32101 var link=document.createElement(“link”); 32102 返回options.attrs.type=“text/css”,options.attrs.rel=“stylesheet”,addattrs(link,options.attrs), 32103 insertStyleElement(选项,链接),链接; 32104 } 32105 函数addattrs(el,attrs) 32106 对象.keys(attrs).foreach(函数(key) 32107 el.setattribute(键,attrs[键]); 32108 (}); 32109 } 32110 函数addStyle(obj,选项) 32111 var样式,更新,删除,结果; 32112 if(options.transform和obj.css) 32113 如果(!)(result=options.transform(obj.css)))返回函数() 32114 obj.css=结果; 32115 } 32116 如果(options.singleton) 32117 var styleindex=singletoncounter++; 32118 style=singleton(singleton=createStyleElement(options)),update=applyTosingletOntag.bind(空,样式,样式索引,!1) 32119 remove=applyToSingletOnTag.bind(空,样式,样式索引,!0); 32120 } .Obj.SoReMaP& &“函数”=类型URL &“函数”=Type Or.CurATeObjutTurl &“函数”=Type of url。ReVoKeObjuturl & &“函数”=类型Bulb & &“函数”=Type BtoA。(样式= CealeleLink元素(选项)) 32121 update=updateLink.bind(空,样式,选项),remove=function() 32122 removestyleElement(style),style.href&&url.revokeObjectURL(style.href); 32123 ):(style=createStyleElement(选项),update=applytotag.bind(空,样式), 32124 remove=function() 32125 重塑(风格); 32126 (}); 32127 返回更新(obj),函数(newobj) 32128 如果(NeWOBJ){ 32129 如果(NeWObj.CSS= = Obj.CSS& NeObj.Mult==Obj.Multudio&NeObj.SoReCAMAP==Obj.SoReCAMAP)返回; 32130 更新(obj=newobj); 32131 else remove(); 32132 }; 32133 } 32134 函数applyToSingletOnTag(样式、索引、删除、obj) 32135 var css=删除?“对象:CSS; 32136 if(style.stylesheet)style.stylesheet.csstext=replaceText(index,css);else 32137 var cssnode=document.createdextnode(css),childnodes=style.childnodes; 32138 childnodes[index]&&style.removechild(childnodes[index]),childnodes.length?style.insertbefore(cssnode,childnodes[索引]):style.appendchild(cssnode); 32139 } 32140 } 32141 函数applytotag(style,obj) 32142 var css=obj.css,media=obj.media; 32143 if(media&&style.setattribute(“media”,media),style.stylesheet)style.stylesheet.csstext=css;else 32144 对于(;style.firstchild;)style.removechild(style.firstchild); 32145 style.appendChild(document.createTextNode(css)); 32146 } 32147 } 32148 函数updateLink(link,options,obj) 32149 var css=obj.css,sourcemap=obj.sourcemap,autofixurls=void 0==options.converttoabsoluteurls&&sourcemap; 32150 (options.converttoabsoluteurls autofixurls)&&(css=fixurls(css)),sourcemap&&(css+=“\n/*sourcemappingurl=data:application/json;base64,”+btoa(unescape(encodeuricomponent(json.stringify(sourcemap)))+“*/"); 32151 32152 var blob = new Blob([ css ], { 32153 type: "text/css" 32154 }), oldSrc = link.href; 32155 link.href = URL.createObjectURL(blob), oldSrc && URL.revokeObjectURL(oldSrc); 32156 } 32157 var stylesInDom = {}, isOldIE = function(fn) { 32158 var memo; 32159 return function() { 32160 return void 0 === memo && (memo = fn.apply(this, arguments)), memo; 32161 }; 32162 }(function() { 32163 return window && document && document.all && !window.atob; 32164 }), getElement = function(fn) { 32165 var memo = {}; 32166 return function(selector) { 32167 if (void 0 === memo[selector]) { 32168 var styleTarget = fn.call(this, selector); 32169 if (styleTarget instanceof window.HTMLIFrameElement) try { 32170 styleTarget = styleTarget.contentDocument.head; 32171 } catch (e) { 32172 styleTarget = null; 32173 } 32174 memo[selector] = styleTarget; 32175 } 32176 return memo[selector]; 32177 }; 32178 }(function(target) { 32179 return document.querySelector(target); 32180 }), singleton = null, singletonCounter = 0, stylesInsertedAtTop = [], fixUrls = __webpack_require__(546); 32181 module.exports = function(list, options) { 32182 if ("undefined" != typeof DEBUG && DEBUG && "object" != typeof document) throw new Error("The style-loader cannot be used in a non-browser environment"); 32183 options = options || {}, options.attrs = "object" == typeof options.attrs ? options.attrs : {}, 32184 options.singleton || "boolean" == typeof options.singleton || (options.singleton = isOldIE()), 32185 options.insertInto || (options.insertInto = "head"), options.insertAt || (options.insertAt = "bottom"); 32186 var styles = listToStyles(list, options); 32187 return addStylesToDom(styles, options), function(newList) { 32188 for (var mayRemove = [], i = 0; i < styles.length; i++) { 32189 var item = styles[i], domStyle = stylesInDom[item.id]; 32190 domStyle.refs--, mayRemove.push(domStyle); 32191 } 32192 if (newList) { 32193 addStylesToDom(listToStyles(newList, options), options); 32194 } 32195 for (var i = 0; i < mayRemove.length; i++) { 32196 var domStyle = mayRemove[i]; 32197 if (0 === domStyle.refs) { 32198 for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j](); 32199 delete stylesInDom[domStyle.id]; 32200 } 32201 } 32202 }; 32203 }; 32204 var replaceText = function() { 32205 var textStore = []; 32206 return function(index, replacement) { 32207 return textStore[index] = replacement, textStore.filter(Boolean).join("\n"); 32208 }; 32209 }(); 32210 }, function(module, exports) { 32211 module.exports = function(css) { 32212 var location = "undefined" != typeof window && window.location; 32213 if (!location) throw new Error("fixUrls requires window.location"); 32214 if (!css || "string" != typeof css) return css; 32215 var baseUrl = location.protocol + "//“+location.host,currentdir=baseurl+location.pathname.replace(/\/[^\/]*$/,”/“); 32216 return css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(fullMatch, origUrl) { 32217 var unquotedOrigUrl = origUrl.trim().replace(/^"(.*)"$/, function(o, $1) { 32218 return $1; 32219 }).replace(/^'(.*)'$/, function(o, $1) { 32220 return $1; 32221 }); 32222 if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(unquotedOrigUrl)) return fullMatch; 32223 var newUrl; 32224 return newUrl = 0 === unquotedOrigUrl.indexOf("//“”?unquotedorigurl:0==unquotedorigurl.indexof(“/”)?baseurl+unquotedorigurl:currentdir+unquotedorigurl.replace(/^\.\/,“”), 32225 "url(" + JSON.stringify(newUrl) + ")"; 32226 }); 32227 }; 32228 }, function(module, exports, __webpack_require__) { 32229 "use strict"; 32230 function _objectWithoutProperties(obj, keys) { 32231 var target = {}; 32232 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 32233 return target; 32234 } 32235 function _classCallCheck(instance, Constructor) { 32236 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 32237 } 32238 function _possibleConstructorReturn(self, call) { 32239 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 32240 return !call || "object" != typeof call && "function" != typeof call ? self : call; 32241 } 32242 function _inherits(subClass, superClass) { 32243 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 32244 subClass.prototype = Object.create(superClass && superClass.prototype, { 32245 constructor: { 32246 value: subClass, 32247 enumerable: !1, 32248 writable: !0, 32249 configurable: !0 32250 } 32251 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 32252 } 32253 Object.defineProperty(exports, "__esModule", { 32254 value: !0 32255 }); 32256 var _extends = Object.assign || function(target) { 32257 for (var i = 1; i < arguments.length; i++) { 32258 var source = arguments[i]; 32259 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 32260 } 32261 return target; 32262 }, _createClass = function() { 32263 function defineProperties(target, props) { 32264 for (var i = 0; i < props.length; i++) { 32265 var descriptor = props[i]; 32266 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 32267 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 32268 } 32269 } 32270 return function(Constructor, protoProps, staticProps) { 32271 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 32272 Constructor; 32273 }; 32274 }(), _react = __webpack_require__(0), React = function(obj) { 32275 if (obj && obj.__esModule) return obj; 32276 var newObj = {}; 32277 if (null != obj) for (var key in obj) Object.prototype.hasOwnProperty.call(obj, key) && (newObj[key] = obj[key]); 32278 return newObj.default = obj, newObj; 32279 }(_react), _propTypes = __webpack_require__(1), _propTypes2 = function(obj) { 32280 return obj && obj.__esModule ? obj : { 32281 default: obj 32282 }; 32283 }(_propTypes), Icon = function(_React$Component) { 32284 function Icon() { 32285 return _classCallCheck(this, Icon), _possibleConstructorReturn(this, (Icon.__proto__ || Object.getPrototypeOf(Icon)).apply(this, arguments)); 32286 } 32287 return _inherits(Icon, _React$Component), _createClass(Icon, [ { 32288 key: "render", 32289 value: function() { 32290 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; 32291 return size && (classNames = classNames + " fa-" + size), rotate && (classNames = classNames + " fa-rotate-" + rotate), 32292 flip && (classNames = classNames + " fa-flip-" + flip), fixedWidth && (classNames += " fa-fw"), 32293 spin && (classNames += " fa-spin"), pulse && (classNames += " fa-pulse"), stack && (classNames = classNames + " fa-stack-" + stack), 32294 inverse && (classNames += " fa-inverse"), className && (classNames = classNames + " " + className), 32295 React.createElement(Component, _extends({}, props, { 32296 className: classNames 32297 })); 32298 } 32299 } ]), Icon; 32300 }(React.Component); 32301 Icon.propTypes = { 32302 name: _propTypes2.default.string.isRequired, 32303 className: _propTypes2.default.string, 32304 size: _propTypes2.default.oneOf([ "lg", "2x", "3x", "4x", "5x" ]), 32305 rotate: _propTypes2.default.oneOf([ "45", "90", "135", "180", "225", "270", "315" ]), 32306 flip: _propTypes2.default.oneOf([ "horizontal", "vertical" ]), 32307 fixedWidth: _propTypes2.default.bool, 32308 spin: _propTypes2.default.bool, 32309 pulse: _propTypes2.default.bool, 32310 stack: _propTypes2.default.oneOf([ "1x", "2x" ]), 32311 inverse: _propTypes2.default.bool, 32312 Component: _propTypes2.default.oneOfType([ _propTypes2.default.string, _propTypes2.default.func ]) 32313 }, Icon.defaultProps = { 32314 Component: "span" 32315 }, exports.default = Icon; 32316 }, function(module, exports, __webpack_require__) { 32317 "use strict"; 32318 function _objectWithoutProperties(obj, keys) { 32319 var target = {}; 32320 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 32321 return target; 32322 } 32323 function _classCallCheck(instance, Constructor) { 32324 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 32325 } 32326 function _possibleConstructorReturn(self, call) { 32327 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 32328 return !call || "object" != typeof call && "function" != typeof call ? self : call; 32329 } 32330 function _inherits(subClass, superClass) { 32331 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 32332 subClass.prototype = Object.create(superClass && superClass.prototype, { 32333 constructor: { 32334 value: subClass, 32335 enumerable: !1, 32336 writable: !0, 32337 configurable: !0 32338 } 32339 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 32340 } 32341 Object.defineProperty(exports, "__esModule", { 32342 value: !0 32343 }); 32344 var _extends = Object.assign || function(target) { 32345 for (var i = 1; i < arguments.length; i++) { 32346 var source = arguments[i]; 32347 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 32348 } 32349 return target; 32350 }, _createClass = function() { 32351 function defineProperties(target, props) { 32352 for (var i = 0; i < props.length; i++) { 32353 var descriptor = props[i]; 32354 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 32355 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 32356 } 32357 } 32358 return function(Constructor, protoProps, staticProps) { 32359 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 32360 Constructor; 32361 }; 32362 }(), _react = __webpack_require__(0), React = function(obj) { 32363 if (obj && obj.__esModule) return obj; 32364 var newObj = {}; 32365 if (null != obj) for (var key in obj) Object.prototype.hasOwnProperty.call(obj, key) && (newObj[key] = obj[key]); 32366 return newObj.default = obj, newObj; 32367 }(_react), _propTypes = __webpack_require__(1), _propTypes2 = function(obj) { 32368 return obj && obj.__esModule ? obj : { 32369 default: obj 32370 }; 32371 }(_propTypes), IconStack = function(_React$Component) { 32372 function IconStack() { 32373 return _classCallCheck(this, IconStack), _possibleConstructorReturn(this, (IconStack.__proto__ || Object.getPrototypeOf(IconStack)).apply(this, arguments)); 32374 } 32375 return _inherits(IconStack, _React$Component), _createClass(IconStack, [ { 32376 key: "render", 32377 value: function() { 32378 var _props = this.props, className = _props.className, size = _props.size, children = _props.children, props = _objectWithoutProperties(_props, [ "className", "size", "children" ]), classNames = [ "fa-stack" ]; 32379 size && classNames.push("fa-" + size), className && classNames.push(className); 32380 var iconStackClassName = classNames.join(" "); 32381 return React.createElement("span", _extends({}, props, { 32382 className: iconStackClassName 32383 }), children); 32384 } 32385 } ]), IconStack; 32386 }(React.Component); 32387 IconStack.propTypes = { 32388 className: _propTypes2.default.string, 32389 size: _propTypes2.default.oneOf([ "lg", "2x", "3x", "4x", "5x" ]), 32390 children: _propTypes2.default.node.isRequired 32391 }, exports.default = IconStack; 32392 }, function(module, exports, __webpack_require__) { 32393 "use strict"; 32394 function _interopRequireDefault(obj) { 32395 return obj && obj.__esModule ? obj : { 32396 default: obj 32397 }; 32398 } 32399 function _classCallCheck(instance, Constructor) { 32400 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 32401 } 32402 function _possibleConstructorReturn(self, call) { 32403 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 32404 return !call || "object" != typeof call && "function" != typeof call ? self : call; 32405 } 32406 function _inherits(subClass, superClass) { 32407 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 32408 subClass.prototype = Object.create(superClass && superClass.prototype, { 32409 constructor: { 32410 value: subClass, 32411 enumerable: !1, 32412 writable: !0, 32413 configurable: !0 32414 } 32415 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 32416 } 32417 Object.defineProperty(exports, "__esModule", { 32418 value: !0 32419 }); 32420 var _createClass = function() { 32421 function defineProperties(target, props) { 32422 for (var i = 0; i < props.length; i++) { 32423 var descriptor = props[i]; 32424 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 32425 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 32426 } 32427 } 32428 return function(Constructor, protoProps, staticProps) { 32429 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 32430 Constructor; 32431 }; 32432 }(), _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 = { 32433 wrapper: { 32434 display: "flex", 32435 flexDirection: "column", 32436 width: "100%" 32437 }, 32438 content: { 32439 flex: 1, 32440 overflow: "auto" 32441 } 32442 }, themeStyles = function(theme) { 32443 return { 32444 content: { 32445 backgroundColor: theme.palette.background.default, 32446 padding: 3 * theme.spacing.unit 32447 } 32448 }; 32449 }, Main = function(_Component) { 32450 function Main(props) { 32451 _classCallCheck(this, Main); 32452 var _this = _possibleConstructorReturn(this, (Main.__proto__ || Object.getPrototypeOf(Main)).call(this, props)); 32453 return _this.onScroll = function() { 32454 _this.content && "function" == typeof _this.content.onScroll && _this.content.onScroll(); 32455 }, _this.container = _react2.default.createRef(), _this.content = _react2.default.createRef(), 32456 _this; 32457 } 32458 return _inherits(Main, _Component), _createClass(Main, [ { 32459 key: "getSnapshotBeforeUpdate", 32460 value: function() { 32461 return this.content && "function" == typeof this.content.beforeUpdate ? this.content.beforeUpdate() : null; 32462 } 32463 }, { 32464 key: "componentDidUpdate", 32465 value: function(prevProps, prevState, snapshot) { 32466 this.content && "function" == typeof this.content.didUpdate && this.content.didUpdate(prevProps, prevState, snapshot); 32467 } 32468 }, { 32469 key: "render", 32470 value: function() { 32471 var _this2 = this, _props = this.props, classes = _props.classes, active = _props.active, content = _props.content, shouldUpdate = _props.shouldUpdate, children = null; 32472 switch (active) { 32473 case _common.MENU.get("home").id: 32474 case _common.MENU.get("chain").id: 32475 case _common.MENU.get("txpool").id: 32476 case _common.MENU.get("network").id: 32477 case _common.MENU.get("system").id: 32478 children = _react2.default.createElement("div", null, "Work in progress."); 32479 break; 32480 32481 case _common.MENU.get("logs").id: 32482 children = _react2.default.createElement(_Logs2.default, { 32483 ref: function(_ref) { 32484 _this2.content = _ref; 32485 }, 32486 container: this.container, 32487 send: this.props.send, 32488 content: this.props.content, 32489 shouldUpdate: shouldUpdate 32490 }); 32491 } 32492 return _react2.default.createElement("div", { 32493 style: styles.wrapper 32494 }, _react2.default.createElement("div", { 32495 className: classes.content, 32496 style: styles.content, 32497 ref: function(_ref2) { 32498 _this2.container = _ref2; 32499 }, 32500 onScroll: this.onScroll 32501 }, children), _react2.default.createElement(_Footer2.default, { 32502 general: content.general, 32503 system: content.system, 32504 shouldUpdate: shouldUpdate 32505 })); 32506 } 32507 } ]), Main; 32508 }(_react.Component); 32509 exports.default = (0, _withStyles2.default)(themeStyles)(Main); 32510 }, function(module, exports, __webpack_require__) { 32511 "use strict"; 32512 function escapeHtml(string) { 32513 var str = "" + string, match = matchHtmlRegExp.exec(str); 32514 if (!match) return str; 32515 var escape, html = "", index = 0, lastIndex = 0; 32516 for (index = match.index; index < str.length; index++) { 32517 switch (str.charCodeAt(index)) { 32518 case 34: 32519 escape = """; 32520 break; 32521 32522 case 38: 32523 escape = "&"; 32524 break; 32525 32526 case 39: 32527 escape = "'"; 32528 break; 32529 32530 case 60: 32531 escape = "<"; 32532 break; 32533 32534 case 62: 32535 escape = ">"; 32536 break; 32537 32538 default: 32539 continue; 32540 } 32541 lastIndex !== index && (html += str.substring(lastIndex, index)), lastIndex = index + 1, 32542 html += escape; 32543 } 32544 return lastIndex !== index ? html + str.substring(lastIndex, index) : html; 32545 } 32546 var matchHtmlRegExp = /["'&<>]/; 32547 module.exports = escapeHtml; 32548 }, function(module, exports, __webpack_require__) { 32549 "use strict"; 32550 function _interopRequireDefault(obj) { 32551 return obj && obj.__esModule ? obj : { 32552 default: obj 32553 }; 32554 } 32555 function _defineProperty(obj, key, value) { 32556 return key in obj ? Object.defineProperty(obj, key, { 32557 value: value, 32558 enumerable: !0, 32559 configurable: !0, 32560 writable: !0 32561 }) : obj[key] = value, obj; 32562 } 32563 function _classCallCheck(instance, Constructor) { 32564 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 32565 } 32566 function _possibleConstructorReturn(self, call) { 32567 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 32568 return !call || "object" != typeof call && "function" != typeof call ? self : call; 32569 } 32570 function _inherits(subClass, superClass) { 32571 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 32572 subClass.prototype = Object.create(superClass && superClass.prototype, { 32573 constructor: { 32574 value: subClass, 32575 enumerable: !1, 32576 writable: !0, 32577 configurable: !0 32578 } 32579 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 32580 } 32581 Object.defineProperty(exports, "__esModule", { 32582 value: !0 32583 }); 32584 var _extends = Object.assign || function(target) { 32585 for (var i = 1; i < arguments.length; i++) { 32586 var source = arguments[i]; 32587 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 32588 } 32589 return target; 32590 }, _createClass = function() { 32591 function defineProperties(target, props) { 32592 for (var i = 0; i < props.length; i++) { 32593 var descriptor = props[i]; 32594 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 32595 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 32596 } 32597 } 32598 return function(Constructor, protoProps, staticProps) { 32599 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 32600 Constructor; 32601 }; 32602 }(), _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 = { 32603 footer: { 32604 maxWidth: "100%", 32605 flexWrap: "nowrap", 32606 margin: 0 32607 }, 32608 chartRowWrapper: { 32609 height: "100%", 32610 padding: 0 32611 }, 32612 doubleChartWrapper: { 32613 height: "100%", 32614 width: "99%" 32615 } 32616 }, themeStyles = function(theme) { 32617 return { 32618 footer: { 32619 backgroundColor: theme.palette.grey[900], 32620 color: theme.palette.getContrastText(theme.palette.grey[900]), 32621 zIndex: theme.zIndex.appBar, 32622 height: 10 * theme.spacing.unit 32623 } 32624 }; 32625 }, Footer = function(_Component) { 32626 function Footer() { 32627 var _ref, _temp, _this, _ret; 32628 _classCallCheck(this, Footer); 32629 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 32630 return _temp = _this = _possibleConstructorReturn(this, (_ref = Footer.__proto__ || Object.getPrototypeOf(Footer)).call.apply(_ref, [ this ].concat(args))), 32631 _this.halfHeightChart = function(chartProps, tooltip, areaProps) { 32632 return _react2.default.createElement(_recharts.ResponsiveContainer, { 32633 width: "100%", 32634 height: "50%" 32635 }, _react2.default.createElement(_recharts.AreaChart, chartProps, !tooltip || _react2.default.createElement(_recharts.Tooltip, { 32636 cursor: !1, 32637 content: _react2.default.createElement(_CustomTooltip2.default, { 32638 tooltip: tooltip 32639 }) 32640 }), _react2.default.createElement(_recharts.Area, _extends({ 32641 isAnimationActive: !1, 32642 type: "monotone" 32643 }, areaProps)))); 32644 }, _this.doubleChart = function(syncId, chartKey, topChart, bottomChart) { 32645 if (!Array.isArray(topChart.data) || !Array.isArray(bottomChart.data)) return null; 32646 var topDefault = topChart.default || 0, bottomDefault = bottomChart.default || 0, topKey = "" + chartKey + TOP, bottomKey = "" + chartKey + BOTTOM; 32647 return _react2.default.createElement("div", { 32648 style: styles.doubleChartWrapper 32649 }, _this.halfHeightChart({ 32650 syncId: syncId, 32651 data: topChart.data.map(function(_ref2) { 32652 var value = _ref2.value; 32653 return _defineProperty({}, topKey, value || topDefault); 32654 }), 32655 margin: { 32656 top: 5, 32657 right: 5, 32658 bottom: 0, 32659 left: 5 32660 } 32661 }, topChart.tooltip, { 32662 dataKey: topKey, 32663 stroke: "#8884d8", 32664 fill: "#8884d8" 32665 }), _this.halfHeightChart({ 32666 syncId: syncId, 32667 data: bottomChart.data.map(function(_ref4) { 32668 var value = _ref4.value; 32669 return _defineProperty({}, bottomKey, -value || -bottomDefault); 32670 }), 32671 margin: { 32672 top: 0, 32673 right: 5, 32674 bottom: 5, 32675 left: 5 32676 } 32677 }, bottomChart.tooltip, { 32678 dataKey: bottomKey, 32679 stroke: "#82ca9d", 32680 fill: "#82ca9d" 32681 })); 32682 }, _ret = _temp, _possibleConstructorReturn(_this, _ret); 32683 } 32684 return _inherits(Footer, _Component), _createClass(Footer, [ { 32685 key: "shouldComponentUpdate", 32686 value: function(nextProps) { 32687 return void 0 !== nextProps.shouldUpdate.general || void 0 !== nextProps.shouldUpdate.system; 32688 } 32689 }, { 32690 key: "render", 32691 value: function() { 32692 var _props = this.props, general = _props.general, system = _props.system; 32693 return _react2.default.createElement(_Grid2.default, { 32694 container: !0, 32695 className: this.props.classes.footer, 32696 direction: "row", 32697 alignItems: "center", 32698 style: styles.footer 32699 }, _react2.default.createElement(_Grid2.default, { 32700 item: !0, 32701 xs: !0, 32702 style: styles.chartRowWrapper 32703 }, _react2.default.createElement(_ChartRow2.default, null, this.doubleChart("footerSyncId", "cpu", { 32704 data: system.processCPU, 32705 tooltip: (0, _CustomTooltip.percentPlotter)("Process load") 32706 }, { 32707 data: system.systemCPU, 32708 tooltip: (0, _CustomTooltip.percentPlotter)("System load", (0, _CustomTooltip.multiplier)(-1)) 32709 }), this.doubleChart("footerSyncId", "memory", { 32710 data: system.activeMemory, 32711 tooltip: (0, _CustomTooltip.bytePlotter)("Active memory") 32712 }, { 32713 data: system.virtualMemory, 32714 tooltip: (0, _CustomTooltip.bytePlotter)("Virtual memory", (0, _CustomTooltip.multiplier)(-1)) 32715 }), this.doubleChart("footerSyncId", "disk", { 32716 data: system.diskRead, 32717 tooltip: (0, _CustomTooltip.bytePerSecPlotter)("Disk read") 32718 }, { 32719 data: system.diskWrite, 32720 tooltip: (0, _CustomTooltip.bytePerSecPlotter)("Disk write", (0, _CustomTooltip.multiplier)(-1)) 32721 }), this.doubleChart("footerSyncId", "traffic", { 32722 data: system.networkIngress, 32723 tooltip: (0, _CustomTooltip.bytePerSecPlotter)("Download") 32724 }, { 32725 data: system.networkEgress, 32726 tooltip: (0, _CustomTooltip.bytePerSecPlotter)("Upload", (0, _CustomTooltip.multiplier)(-1)) 32727 }))), _react2.default.createElement(_Grid2.default, { 32728 item: !0 32729 }, _react2.default.createElement(_Typography2.default, { 32730 type: "caption", 32731 color: "inherit" 32732 }, _react2.default.createElement("span", { 32733 style: _common.styles.light 32734 }, "Geth"), " ", general.version), general.commit && _react2.default.createElement(_Typography2.default, { 32735 type: "caption", 32736 color: "inherit" 32737 }, _react2.default.createElement("span", { 32738 style: _common.styles.light 32739 }, "Commit "), _react2.default.createElement("a", { 32740 href: "https://github.com/ethereum/go-ethereum/commit/“+常规.commit, 32741 target: "_blank", 32742 style: { 32743 color: "inherit", 32744 textDecoration: "none" 32745 } 32746 }, general.commit.substring(0, 8))))); 32747 } 32748 } ]), Footer; 32749 }(_react.Component); 32750 exports.default = (0, _withStyles2.default)(themeStyles)(Footer); 32751 }, function(module, exports, __webpack_require__) { 32752 "use strict"; 32753 (function(process) { 32754 function _interopRequireDefault(obj) { 32755 return obj && obj.__esModule ? obj : { 32756 default: obj 32757 }; 32758 } 32759 function generateGrid(globalStyles, theme, breakpoint) { 32760 var styles = (0, _defineProperty3.default)({}, "grid-" + breakpoint, { 32761 flexBasis: 0, 32762 flexGrow: 1, 32763 maxWidth: "100%" 32764 }); 32765 GRID_SIZES.forEach(function(size) { 32766 if ("boolean" != typeof size) { 32767 var width = Math.round(size / 12 * 1e7) / 1e5 + "%"; 32768 styles["grid-" + breakpoint + "-" + size] = { 32769 flexBasis: width, 32770 maxWidth: width 32771 }; 32772 } 32773 }), "xs" === breakpoint ? (0, _extends3.default)(globalStyles, styles) : globalStyles[theme.breakpoints.up(breakpoint)] = styles; 32774 } 32775 function generateGutter(theme, breakpoint) { 32776 var styles = {}; 32777 return GUTTERS.forEach(function(spacing, index) { 32778 0 !== index && (styles["spacing-" + breakpoint + "-" + spacing] = { 32779 margin: -spacing / 2, 32780 width: "calc(100% + " + spacing + "px)", 32781 "& > $typeItem": { 32782 padding: spacing / 2 32783 } 32784 }); 32785 }), styles; 32786 } 32787 function Grid(props) { 32788 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, 32789 _objectWithoutProperties3.default)(props, [ "alignContent", "alignItems", "classes", "className", "component", "container", "direction", "hidden", "item", "justify", "lg", "md", "zeroMinWidth", "sm", "spacing", "wrap", "xl", "xs" ]), className = (0, 32790 _classnames2.default)((_classNames = {}, (0, _defineProperty3.default)(_classNames, classes.typeContainer, container), 32791 (0, _defineProperty3.default)(_classNames, classes.typeItem, item), (0, _defineProperty3.default)(_classNames, classes.zeroMinWidth, zeroMinWidth), 32792 (0, _defineProperty3.default)(_classNames, classes["spacing-xs-" + String(spacing)], container && 0 !== spacing), 32793 (0, _defineProperty3.default)(_classNames, classes["direction-xs-" + String(direction)], direction !== Grid.defaultProps.direction), 32794 (0, _defineProperty3.default)(_classNames, classes["wrap-xs-" + String(wrap)], wrap !== Grid.defaultProps.wrap), 32795 (0, _defineProperty3.default)(_classNames, classes["align-items-xs-" + String(alignItems)], alignItems !== Grid.defaultProps.alignItems), 32796 (0, _defineProperty3.default)(_classNames, classes["align-content-xs-" + String(alignContent)], alignContent !== Grid.defaultProps.alignContent), 32797 (0, _defineProperty3.default)(_classNames, classes["justify-xs-" + String(justify)], justify !== Grid.defaultProps.justify), 32798 (0, _defineProperty3.default)(_classNames, classes["grid-xs"], !0 === xs), (0, _defineProperty3.default)(_classNames, classes["grid-xs-" + String(xs)], xs && !0 !== xs), 32799 (0, _defineProperty3.default)(_classNames, classes["grid-sm"], !0 === sm), (0, _defineProperty3.default)(_classNames, classes["grid-sm-" + String(sm)], sm && !0 !== sm), 32800 (0, _defineProperty3.default)(_classNames, classes["grid-md"], !0 === md), (0, _defineProperty3.default)(_classNames, classes["grid-md-" + String(md)], md && !0 !== md), 32801 (0, _defineProperty3.default)(_classNames, classes["grid-lg"], !0 === lg), (0, _defineProperty3.default)(_classNames, classes["grid-lg-" + String(lg)], lg && !0 !== lg), 32802 (0, _defineProperty3.default)(_classNames, classes["grid-xl"], !0 === xl), (0, _defineProperty3.default)(_classNames, classes["grid-xl-" + String(xl)], xl && !0 !== xl), 32803 _classNames), classNameProp), gridProps = (0, _extends3.default)({ 32804 className: className 32805 }, other); 32806 return hidden ? _react2.default.createElement(_Hidden2.default, hidden, _react2.default.createElement(Component, gridProps)) : _react2.default.createElement(Component, gridProps); 32807 } 32808 Object.defineProperty(exports, "__esModule", { 32809 value: !0 32810 }), exports.styles = void 0; 32811 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) { 32812 return (0, _extends3.default)({ 32813 typeContainer: { 32814 boxSizing: "border-box", 32815 display: "flex", 32816 flexWrap: "wrap", 32817 width: "100%" 32818 }, 32819 typeItem: { 32820 boxSizing: "border-box", 32821 flex: "0 0 auto", 32822 margin: "0" 32823 }, 32824 zeroMinWidth: { 32825 minWidth: 0 32826 }, 32827 "direction-xs-column": { 32828 flexDirection: "column" 32829 }, 32830 "direction-xs-column-reverse": { 32831 flexDirection: "column-reverse" 32832 }, 32833 "direction-xs-row-reverse": { 32834 flexDirection: "row-reverse" 32835 }, 32836 "wrap-xs-nowrap": { 32837 flexWrap: "nowrap" 32838 }, 32839 "wrap-xs-wrap-reverse": { 32840 flexWrap: "wrap-reverse" 32841 }, 32842 "align-items-xs-center": { 32843 alignItems: "center" 32844 }, 32845 "align-items-xs-flex-start": { 32846 alignItems: "flex-start" 32847 }, 32848 "align-items-xs-flex-end": { 32849 alignItems: "flex-end" 32850 }, 32851 "align-items-xs-baseline": { 32852 alignItems: "baseline" 32853 }, 32854 "align-content-xs-center": { 32855 alignContent: "center" 32856 }, 32857 "align-content-xs-flex-start": { 32858 alignContent: "flex-start" 32859 }, 32860 "align-content-xs-flex-end": { 32861 alignContent: "flex-end" 32862 }, 32863 "align-content-xs-space-between": { 32864 alignContent: "space-between" 32865 }, 32866 "align-content-xs-space-around": { 32867 alignContent: "space-around" 32868 }, 32869 "justify-xs-center": { 32870 justifyContent: "center" 32871 }, 32872 "justify-xs-flex-end": { 32873 justifyContent: "flex-end" 32874 }, 32875 "justify-xs-space-between": { 32876 justifyContent: "space-between" 32877 }, 32878 "justify-xs-space-around": { 32879 justifyContent: "space-around" 32880 } 32881 }, generateGutter(theme, "xs"), _createBreakpoints.keys.reduce(function(accumulator, key) { 32882 return generateGrid(accumulator, theme, key), accumulator; 32883 }, {})); 32884 }; 32885 Grid.propTypes = "production" !== process.env.NODE_ENV ? { 32886 alignContent: _propTypes2.default.oneOf([ "stretch", "center", "flex-start", "flex-end", "space-between", "space-around" ]), 32887 alignItems: _propTypes2.default.oneOf([ "flex-start", "center", "flex-end", "stretch", "baseline" ]), 32888 children: _propTypes2.default.node, 32889 classes: _propTypes2.default.object.isRequired, 32890 className: _propTypes2.default.string, 32891 component: _propTypes2.default.oneOfType([ _propTypes2.default.string, _propTypes2.default.func ]), 32892 container: _propTypes2.default.bool, 32893 direction: _propTypes2.default.oneOf([ "row", "row-reverse", "column", "column-reverse" ]), 32894 hidden: _propTypes2.default.object, 32895 item: _propTypes2.default.bool, 32896 justify: _propTypes2.default.oneOf([ "flex-start", "center", "flex-end", "space-between", "space-around" ]), 32897 lg: _propTypes2.default.oneOf([ !0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ]), 32898 md: _propTypes2.default.oneOf([ !0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ]), 32899 sm: _propTypes2.default.oneOf([ !0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ]), 32900 spacing: _propTypes2.default.oneOf(GUTTERS), 32901 wrap: _propTypes2.default.oneOf([ "nowrap", "wrap", "wrap-reverse" ]), 32902 xl: _propTypes2.default.oneOf([ !0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ]), 32903 xs: _propTypes2.default.oneOf([ !0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ]), 32904 zeroMinWidth: _propTypes2.default.bool 32905 } : {}, Grid.defaultProps = { 32906 alignContent: "stretch", 32907 alignItems: "stretch", 32908 component: "div", 32909 container: !1, 32910 direction: "row", 32911 item: !1, 32912 justify: "flex-start", 32913 zeroMinWidth: !1, 32914 spacing: 16, 32915 wrap: "wrap" 32916 }; 32917 var GridWrapper = Grid; 32918 if ("production" !== process.env.NODE_ENV) { 32919 GridWrapper = function(props) { 32920 return _react2.default.createElement(Grid, props); 32921 }; 32922 var requireProp = (0, _requirePropFactory2.default)("Grid"); 32923 GridWrapper.propTypes = { 32924 alignContent: requireProp("container"), 32925 alignItems: requireProp("container"), 32926 direction: requireProp("container"), 32927 justify: requireProp("container"), 32928 lg: requireProp("item"), 32929 md: requireProp("item"), 32930 sm: requireProp("item"), 32931 spacing: requireProp("container"), 32932 wrap: requireProp("container"), 32933 xs: requireProp("item"), 32934 zeroMinWidth: requireProp("zeroMinWidth") 32935 }; 32936 } 32937 exports.default = (0, _withStyles2.default)(styles, { 32938 name: "MuiGrid" 32939 })(GridWrapper); 32940 }).call(exports, __webpack_require__(2)); 32941 }, function(module, exports, __webpack_require__) { 32942 "use strict"; 32943 Object.defineProperty(exports, "__esModule", { 32944 value: !0 32945 }); 32946 var requirePropFactory = function(componentNameInError) { 32947 return function(requiredProp) { 32948 return function(props, propName, componentName, location, propFullName) { 32949 var propFullNameSafe = propFullName || propName; 32950 return void 0 === props[propName] || props[requiredProp] ? null : new Error("The property `)) + ("`" + (`" + propFullNameSafe + "` + "`")))) + (((` of ` + ("`" + `" + componentNameInError + "`)) + ("`" + (` must be used on ` + "`"))) + ((`" + requiredProp + "` + ("`" + `."); 32951 }; 32952 }; 32953 }; 32954 exports.default = requirePropFactory; 32955 }, function(module, exports, __webpack_require__) { 32956 "use strict"; 32957 function _interopRequireDefault(obj) { 32958 return obj && obj.__esModule ? obj : { 32959 default: obj 32960 }; 32961 } 32962 Object.defineProperty(exports, "__esModule", { 32963 value: !0 32964 }); 32965 var _Hidden = __webpack_require__(555); 32966 Object.defineProperty(exports, "default", { 32967 enumerable: !0, 32968 get: function() { 32969 return _interopRequireDefault(_Hidden).default; 32970 } 32971 }); 32972 }, function(module, exports, __webpack_require__) { 32973 "use strict"; 32974 (function(process) { 32975 function _interopRequireDefault(obj) { 32976 return obj && obj.__esModule ? obj : { 32977 default: obj 32978 }; 32979 } 32980 function Hidden(props) { 32981 var implementation = props.implementation, other = (0, _objectWithoutProperties3.default)(props, [ "implementation" ]); 32982 return "js" === implementation ? _react2.default.createElement(_HiddenJs2.default, other) : _react2.default.createElement(_HiddenCss2.default, other); 32983 } 32984 Object.defineProperty(exports, "__esModule", { 32985 value: !0 32986 }); 32987 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); 32988 Hidden.propTypes = "production" !== process.env.NODE_ENV ? { 32989 children: _propTypes2.default.node, 32990 className: _propTypes2.default.string, 32991 implementation: _propTypes2.default.oneOf([ "js", "css" ]), 32992 initialWidth: _propTypes2.default.oneOf([ "xs", "sm", "md", "lg", "xl" ]), 32993 lgDown: _propTypes2.default.bool, 32994 lgUp: _propTypes2.default.bool, 32995 mdDown: _propTypes2.default.bool, 32996 mdUp: _propTypes2.default.bool, 32997 only: _propTypes2.default.oneOfType([ _propTypes2.default.oneOf([ "xs", "sm", "md", "lg", "xl" ]), _propTypes2.default.arrayOf(_propTypes2.default.oneOf([ "xs", "sm", "md", "lg", "xl" ])) ]), 32998 smDown: _propTypes2.default.bool, 32999 smUp: _propTypes2.default.bool, 33000 xlDown: _propTypes2.default.bool, 33001 xlUp: _propTypes2.default.bool, 33002 xsDown: _propTypes2.default.bool, 33003 xsUp: _propTypes2.default.bool 33004 } : {}, Hidden.defaultProps = { 33005 implementation: "js", 33006 lgDown: !1, 33007 lgUp: !1, 33008 mdDown: !1, 33009 mdUp: !1, 33010 smDown: !1, 33011 smUp: !1, 33012 xlDown: !1, 33013 xlUp: !1, 33014 xsDown: !1, 33015 xsUp: !1 33016 }, exports.default = Hidden; 33017 }).call(exports, __webpack_require__(2)); 33018 }, function(module, exports, __webpack_require__) { 33019 "use strict"; 33020 function _interopRequireDefault(obj) { 33021 return obj && obj.__esModule ? obj : { 33022 default: obj 33023 }; 33024 } 33025 function HiddenJs(props) { 33026 var children = props.children, only = props.only, width = props.width, visible = !0; 33027 if (only) if (Array.isArray(only)) for (var i = 0; i < only.length; i += 1) { 33028 var breakpoint = only[i]; 33029 if (width === breakpoint) { 33030 visible = !1; 33031 break; 33032 } 33033 } else only && width === only && (visible = !1); 33034 if (visible) for (var _i = 0; _i < _createBreakpoints.keys.length; _i += 1) { 33035 var _breakpoint = _createBreakpoints.keys[_i], breakpointUp = props[_breakpoint + "Up"], breakpointDown = props[_breakpoint + "Down"]; 33036 if (breakpointUp && (0, _withWidth.isWidthUp)(_breakpoint, width) || breakpointDown && (0, 33037 _withWidth.isWidthDown)(_breakpoint, width)) { 33038 visible = !1; 33039 break; 33040 } 33041 } 33042 return visible ? children : null; 33043 } 33044 Object.defineProperty(exports, "__esModule", { 33045 value: !0 33046 }); 33047 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); 33048 HiddenJs.propTypes = { 33049 children: _propTypes2.default.node, 33050 className: _propTypes2.default.string, 33051 implementation: _propTypes2.default.oneOf([ "js", "css" ]), 33052 initialWidth: _propTypes2.default.oneOf([ "xs", "sm", "md", "lg", "xl" ]), 33053 lgDown: _propTypes2.default.bool, 33054 lgUp: _propTypes2.default.bool, 33055 mdDown: _propTypes2.default.bool, 33056 mdUp: _propTypes2.default.bool, 33057 only: _propTypes2.default.oneOfType([ _propTypes2.default.oneOf([ "xs", "sm", "md", "lg", "xl" ]), _propTypes2.default.arrayOf(_propTypes2.default.oneOf([ "xs", "sm", "md", "lg", "xl" ])) ]), 33058 smDown: _propTypes2.default.bool, 33059 smUp: _propTypes2.default.bool, 33060 width: _propTypes2.default.string.isRequired, 33061 xlDown: _propTypes2.default.bool, 33062 xlUp: _propTypes2.default.bool, 33063 xsDown: _propTypes2.default.bool, 33064 xsUp: _propTypes2.default.bool 33065 }, HiddenJs.propTypes = (0, _exactProp2.default)(HiddenJs.propTypes, "HiddenJs"), 33066 exports.default = (0, _withWidth2.default)()(HiddenJs); 33067 }, function(module, exports, __webpack_require__) { 33068 "use strict"; 33069 (function(process) { 33070 function _interopRequireDefault(obj) { 33071 return obj && obj.__esModule ? obj : { 33072 default: obj 33073 }; 33074 } 33075 Object.defineProperty(exports, "__esModule", { 33076 value: !0 33077 }), exports.isWidthDown = exports.isWidthUp = void 0; 33078 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) { 33079 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); 33080 }, exports.isWidthDown = function(breakpoint, width) { 33081 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); 33082 }, function() { 33083 var options = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; 33084 return function(Component) { 33085 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) { 33086 function WithWidth() { 33087 var _ref, _temp, _this, _ret; 33088 (0, _classCallCheck3.default)(this, WithWidth); 33089 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 33090 return _temp = _this = (0, _possibleConstructorReturn3.default)(this, (_ref = WithWidth.__proto__ || (0, 33091 _getPrototypeOf2.default)(WithWidth)).call.apply(_ref, [ this ].concat(args))), 33092 _this.state = { 33093 width: void 0 33094 }, _this.handleResize = (0, _debounce2.default)(function() { 33095 _this.updateWidth(window.innerWidth); 33096 }, resizeInterval), _ret = _temp, (0, _possibleConstructorReturn3.default)(_this, _ret); 33097 } 33098 return (0, _inherits3.default)(WithWidth, _React$Component), (0, _createClass3.default)(WithWidth, [ { 33099 key: "componentDidMount", 33100 value: function() { 33101 this.updateWidth(window.innerWidth); 33102 } 33103 }, { 33104 key: "componentWillUnmount", 33105 value: function() { 33106 this.handleResize.cancel(); 33107 } 33108 }, { 33109 key: "updateWidth", 33110 value: function(innerWidth) { 33111 for (var breakpoints = this.props.theme.breakpoints, width = null, index = 1; null === width && index < _createBreakpoints.keys.length; ) { 33112 var currentWidth = _createBreakpoints.keys[index]; 33113 if (innerWidth < breakpoints.values[currentWidth]) { 33114 width = _createBreakpoints.keys[index - 1]; 33115 break; 33116 } 33117 index += 1; 33118 } 33119 (width = width || "xl") !== this.state.width && this.setState({ 33120 width: width 33121 }); 33122 } 33123 }, { 33124 key: "render", 33125 value: function() { 33126 var _props = this.props, initialWidth = _props.initialWidth, theme = _props.theme, width = _props.width, other = (0, 33127 _objectWithoutProperties3.default)(_props, [ "initialWidth", "theme", "width" ]), props = (0, 33128 _extends3.default)({ 33129 width: width || this.state.width || initialWidth 33130 }, other), more = {}; 33131 return withThemeOption && (more.theme = theme), void 0 === props.width ? null : _react2.default.createElement(_reactEventListener2.default, { 33132 target: "window", 33133 onResize: this.handleResize 33134 }, _react2.default.createElement(Component, (0, _extends3.default)({}, more, props))); 33135 } 33136 } ]), WithWidth; 33137 }(_react2.default.Component); 33138 return WithWidth.propTypes = "production" !== process.env.NODE_ENV ? { 33139 initialWidth: _propTypes2.default.oneOf([ "xs", "sm", "md", "lg", "xl" ]), 33140 theme: _propTypes2.default.object.isRequired, 33141 width: _propTypes2.default.oneOf([ "xs", "sm", "md", "lg", "xl" ]) 33142 } : {}, "production" !== process.env.NODE_ENV && (WithWidth.displayName = (0, _wrapDisplayName2.default)(Component, "WithWidth")), 33143 (0, _hoistNonReactStatics2.default)(WithWidth, Component), (0, _withTheme2.default)()(WithWidth); 33144 }; 33145 }); 33146 exports.default = withWidth; 33147 }).call(exports, __webpack_require__(2)); 33148 }, function(module, exports, __webpack_require__) { 33149 "use strict"; 33150 (function(process) { 33151 function _interopRequireDefault(obj) { 33152 return obj && obj.__esModule ? obj : { 33153 default: obj 33154 }; 33155 } 33156 function mergeDefaultEventOptions(options) { 33157 return (0, _assign2.default)({}, defaultEventOptions, options); 33158 } 33159 function getEventListenerArgs(eventName, callback, options) { 33160 var args = [ eventName, callback ]; 33161 return args.push(_supports.passiveOption ? options : options.capture), args; 33162 } 33163 function on(target, eventName, callback, options) { 33164 target.addEventListener.apply(target, getEventListenerArgs(eventName, callback, options)); 33165 } 33166 function off(target, eventName, callback, options) { 33167 target.removeEventListener.apply(target, getEventListenerArgs(eventName, callback, options)); 33168 } 33169 function forEachListener(props, iteratee) { 33170 var eventProps = (props.children, props.target, (0, _objectWithoutProperties3.default)(props, [ "children", "target" ])); 33171 (0, _keys2.default)(eventProps).forEach(function(name) { 33172 if ("on" === name.substring(0, 2)) { 33173 var prop = eventProps[name], type = void 0 === prop ? "undefined" : (0, _typeof3.default)(prop), isObject = "object" === type, isFunction = "function" === type; 33174 if (isObject || isFunction) { 33175 var capture = "capture" === name.substr(-7).toLowerCase(), eventName = name.substring(2).toLowerCase(); 33176 eventName = capture ? eventName.substring(0, eventName.length - 7) : eventName, 33177 isObject ? iteratee(eventName, prop.handler, prop.options) : iteratee(eventName, prop, mergeDefaultEventOptions({ 33178 capture: capture 33179 })); 33180 } 33181 } 33182 }); 33183 } 33184 function withOptions(handler, options) { 33185 return "production" !== process.env.NODE_ENV && (0, _warning2.default)(options, "react-event-listener: should be specified options in withOptions."), 33186 { 33187 handler: handler, 33188 options: mergeDefaultEventOptions(options) 33189 }; 33190 } 33191 Object.defineProperty(exports, "__esModule", { 33192 value: !0 33193 }); 33194 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); 33195 exports.withOptions = withOptions; 33196 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 = { 33197 capture: !1, 33198 passive: !1 33199 }, EventListener = function(_React$Component) { 33200 function EventListener() { 33201 return (0, _classCallCheck3.default)(this, EventListener), (0, _possibleConstructorReturn3.default)(this, (EventListener.__proto__ || (0, 33202 _getPrototypeOf2.default)(EventListener)).apply(this, arguments)); 33203 } 33204 return (0, _inherits3.default)(EventListener, _React$Component), (0, _createClass3.default)(EventListener, [ { 33205 key: "componentDidMount", 33206 value: function() { 33207 this.addListeners(); 33208 } 33209 }, { 33210 key: "shouldComponentUpdate", 33211 value: function(nextProps) { 33212 return !(0, _shallowEqual2.default)(this.props, nextProps); 33213 } 33214 }, { 33215 key: "componentWillUpdate", 33216 value: function() { 33217 this.removeListeners(); 33218 } 33219 }, { 33220 key: "componentDidUpdate", 33221 value: function() { 33222 this.addListeners(); 33223 } 33224 }, { 33225 key: "componentWillUnmount", 33226 value: function() { 33227 this.removeListeners(); 33228 } 33229 }, { 33230 key: "addListeners", 33231 value: function() { 33232 this.applyListeners(on); 33233 } 33234 }, { 33235 key: "removeListeners", 33236 value: function() { 33237 this.applyListeners(off); 33238 } 33239 }, { 33240 key: "applyListeners", 33241 value: function(onOrOff) { 33242 var target = this.props.target; 33243 if (target) { 33244 var element = target; 33245 "string" == typeof target && (element = window[target]), forEachListener(this.props, onOrOff.bind(null, element)); 33246 } 33247 } 33248 }, { 33249 key: "render", 33250 value: function() { 33251 return this.props.children || null; 33252 } 33253 } ]), EventListener; 33254 }(_react2.default.Component); 33255 EventListener.propTypes = "production" !== process.env.NODE_ENV ? { 33256 children: _propTypes2.default.node, 33257 target: _propTypes2.default.oneOfType([ _propTypes2.default.object, _propTypes2.default.string ]).isRequired 33258 } : {}, exports.default = EventListener; 33259 }).call(exports, __webpack_require__(2)); 33260 }, function(module, exports, __webpack_require__) { 33261 "use strict"; 33262 function defineProperty(object, property, attr) { 33263 return (0, _defineProperty2.default)(object, property, attr); 33264 } 33265 Object.defineProperty(exports, "__esModule", { 33266 value: !0 33267 }), exports.passiveOption = void 0; 33268 var _defineProperty = __webpack_require__(154), _defineProperty2 = function(obj) { 33269 return obj && obj.__esModule ? obj : { 33270 default: obj 33271 }; 33272 }(_defineProperty); 33273 exports.passiveOption = function() { 33274 var cache = null; 33275 return function() { 33276 if (null !== cache) return cache; 33277 var supportsPassiveOption = !1; 33278 try { 33279 window.addEventListener("test", null, defineProperty({}, "passive", { 33280 get: function() { 33281 supportsPassiveOption = !0; 33282 } 33283 })); 33284 } catch (err) {} 33285 return cache = supportsPassiveOption, supportsPassiveOption; 33286 }(); 33287 }(); 33288 exports.default = {}; 33289 }, function(module, exports, __webpack_require__) { 33290 function debounce(func, wait, options) { 33291 function invokeFunc(time) { 33292 var args = lastArgs, thisArg = lastThis; 33293 return lastArgs = lastThis = void 0, lastInvokeTime = time, result = func.apply(thisArg, args); 33294 } 33295 function leadingEdge(time) { 33296 return lastInvokeTime = time, timerId = setTimeout(timerExpired, wait), leading ? invokeFunc(time) : result; 33297 } 33298 function remainingWait(time) { 33299 var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall; 33300 return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting; 33301 } 33302 function shouldInvoke(time) { 33303 var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime; 33304 return void 0 === lastCallTime || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait; 33305 } 33306 function timerExpired() { 33307 var time = now(); 33308 if (shouldInvoke(time)) return trailingEdge(time); 33309 timerId = setTimeout(timerExpired, remainingWait(time)); 33310 } 33311 function trailingEdge(time) { 33312 return timerId = void 0, trailing && lastArgs ? invokeFunc(time) : (lastArgs = lastThis = void 0, 33313 result); 33314 } 33315 function cancel() { 33316 void 0 !== timerId && clearTimeout(timerId), lastInvokeTime = 0, lastArgs = lastCallTime = lastThis = timerId = void 0; 33317 } 33318 function flush() { 33319 return void 0 === timerId ? result : trailingEdge(now()); 33320 } 33321 function debounced() { 33322 var time = now(), isInvoking = shouldInvoke(time); 33323 if (lastArgs = arguments, lastThis = this, lastCallTime = time, isInvoking) { 33324 if (void 0 === timerId) return leadingEdge(lastCallTime); 33325 if (maxing) return timerId = setTimeout(timerExpired, wait), invokeFunc(lastCallTime); 33326 } 33327 return void 0 === timerId && (timerId = setTimeout(timerExpired, wait)), result; 33328 } 33329 var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = !1, maxing = !1, trailing = !0; 33330 if ("function" != typeof func) throw new TypeError(FUNC_ERROR_TEXT); 33331 return wait = toNumber(wait) || 0, isObject(options) && (leading = !!options.leading, 33332 maxing = "maxWait" in options, maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait, 33333 trailing = "trailing" in options ? !!options.trailing : trailing), debounced.cancel = cancel, 33334 debounced.flush = flush, debounced; 33335 } 33336 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; 33337 module.exports = debounce; 33338 }, function(module, exports, __webpack_require__) { 33339 var root = __webpack_require__(264), now = function() { 33340 return root.Date.now(); 33341 }; 33342 module.exports = now; 33343 }, function(module, exports, __webpack_require__) { 33344 (function(global) { 33345 var freeGlobal = "object" == typeof global && global && global.Object === Object && global; 33346 module.exports = freeGlobal; 33347 }).call(exports, __webpack_require__(40)); 33348 }, function(module, exports, __webpack_require__) { 33349 function toNumber(value) { 33350 if ("number" == typeof value) return value; 33351 if (isSymbol(value)) return NAN; 33352 if (isObject(value)) { 33353 var other = "function" == typeof value.valueOf ? value.valueOf() : value; 33354 value = isObject(other) ? other + "" : other; 33355 } 33356 if ("string" != typeof value) return 0 === value ? value : +value; 33357 value = value.replace(reTrim, ""); 33358 var isBinary = reIsBinary.test(value); 33359 return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value; 33360 } 33361 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; 33362 module.exports = toNumber; 33363 }, function(module, exports, __webpack_require__) { 33364 function isSymbol(value) { 33365 return "symbol" == typeof value || isObjectLike(value) && baseGetTag(value) == symbolTag; 33366 } 33367 var baseGetTag = __webpack_require__(565), isObjectLike = __webpack_require__(568), symbolTag = "[object Symbol]"; 33368 module.exports = isSymbol; 33369 }, function(module, exports, __webpack_require__) { 33370 function baseGetTag(value) { 33371 return null == value ? void 0 === value ? undefinedTag : nullTag : symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value); 33372 } 33373 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; 33374 module.exports = baseGetTag; 33375 }, function(module, exports, __webpack_require__) { 33376 function getRawTag(value) { 33377 var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag]; 33378 try { 33379 value[symToStringTag] = void 0; 33380 var unmasked = !0; 33381 } catch (e) {} 33382 var result = nativeObjectToString.call(value); 33383 return unmasked && (isOwn ? value[symToStringTag] = tag : delete value[symToStringTag]), 33384 result; 33385 } 33386 var Symbol = __webpack_require__(265), objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty, nativeObjectToString = objectProto.toString, symToStringTag = Symbol ? Symbol.toStringTag : void 0; 33387 module.exports = getRawTag; 33388 }, function(module, exports) { 33389 function objectToString(value) { 33390 return nativeObjectToString.call(value); 33391 } 33392 var objectProto = Object.prototype, nativeObjectToString = objectProto.toString; 33393 module.exports = objectToString; 33394 }, function(module, exports) { 33395 function isObjectLike(value) { 33396 return null != value && "object" == typeof value; 33397 } 33398 module.exports = isObjectLike; 33399 }, function(module, exports, __webpack_require__) { 33400 "use strict"; 33401 (function(process) { 33402 function _interopRequireDefault(obj) { 33403 return obj && obj.__esModule ? obj : { 33404 default: obj 33405 }; 33406 } 33407 function getDefaultTheme() { 33408 return defaultTheme || (defaultTheme = (0, _createMuiTheme2.default)()); 33409 } 33410 Object.defineProperty(exports, "__esModule", { 33411 value: !0 33412 }); 33413 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() { 33414 return function(Component) { 33415 var WithTheme = function(_React$Component) { 33416 function WithTheme(props, context) { 33417 (0, _classCallCheck3.default)(this, WithTheme); 33418 var _this = (0, _possibleConstructorReturn3.default)(this, (WithTheme.__proto__ || (0, 33419 _getPrototypeOf2.default)(WithTheme)).call(this, props, context)); 33420 return _this.state = {}, _this.unsubscribeId = null, _this.state = { 33421 theme: _themeListener2.default.initial(context) || getDefaultTheme() 33422 }, _this; 33423 } 33424 return (0, _inherits3.default)(WithTheme, _React$Component), (0, _createClass3.default)(WithTheme, [ { 33425 key: "componentDidMount", 33426 value: function() { 33427 var _this2 = this; 33428 this.unsubscribeId = _themeListener2.default.subscribe(this.context, function(theme) { 33429 _this2.setState({ 33430 theme: theme 33431 }); 33432 }); 33433 } 33434 }, { 33435 key: "componentWillUnmount", 33436 value: function() { 33437 null !== this.unsubscribeId && _themeListener2.default.unsubscribe(this.context, this.unsubscribeId); 33438 } 33439 }, { 33440 key: "render", 33441 value: function() { 33442 return _react2.default.createElement(Component, (0, _extends3.default)({ 33443 theme: this.state.theme 33444 }, this.props)); 33445 } 33446 } ]), WithTheme; 33447 }(_react2.default.Component); 33448 return WithTheme.contextTypes = _themeListener2.default.contextTypes, "production" !== process.env.NODE_ENV && (WithTheme.displayName = (0, 33449 _wrapDisplayName2.default)(Component, "WithTheme")), (0, _hoistNonReactStatics2.default)(WithTheme, Component), 33450 "production" !== process.env.NODE_ENV && (WithTheme.Naked = Component), WithTheme; 33451 }; 33452 }; 33453 exports.default = withTheme; 33454 }).call(exports, __webpack_require__(2)); 33455 }, function(module, exports, __webpack_require__) { 33456 "use strict"; 33457 (function(process) { 33458 function _interopRequireDefault(obj) { 33459 return obj && obj.__esModule ? obj : { 33460 default: obj 33461 }; 33462 } 33463 function HiddenCss(props) { 33464 var children = props.children, classes = props.classes, className = props.className, only = (props.lgDown, 33465 props.lgUp, props.mdDown, props.mdUp, props.only), other = (props.smDown, props.smUp, 33466 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" ])); 33467 "production" !== process.env.NODE_ENV && (0, _warning2.default)(0 === (0, _keys2.default)(other).length || 1 === (0, 33468 _keys2.default)(other).length && other.hasOwnProperty("ref"), "Material-UI: unsupported properties received " + (0, 33469 _keys2.default)(other).join(", ") + " by `)) + (("`" + `<Hidden />`) + ("`" + `."); 33470 var classNames = []; 33471 className && classNames.push(className); 33472 for (var i = 0; i < _createBreakpoints.keys.length; i += 1) { 33473 var breakpoint = _createBreakpoints.keys[i], breakpointUp = props[breakpoint + "Up"], breakpointDown = props[breakpoint + "Down"]; 33474 breakpointUp && classNames.push(classes[breakpoint + "Up"]), breakpointDown && classNames.push(classes[breakpoint + "Down"]); 33475 } 33476 if (only) { 33477 (Array.isArray(only) ? only : [ only ]).forEach(function(breakpoint) { 33478 classNames.push(classes["only" + (0, _helpers.capitalize)(breakpoint)]); 33479 }); 33480 } 33481 return _react2.default.createElement("div", { 33482 className: classNames.join(" ") 33483 }, children); 33484 } 33485 Object.defineProperty(exports, "__esModule", { 33486 value: !0 33487 }); 33488 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) { 33489 var hidden = { 33490 display: "none" 33491 }; 33492 return _createBreakpoints.keys.reduce(function(acc, key) { 33493 return acc["only" + (0, _helpers.capitalize)(key)] = (0, _defineProperty3.default)({}, theme.breakpoints.only(key), hidden), 33494 acc[key + "Up"] = (0, _defineProperty3.default)({}, theme.breakpoints.up(key), hidden), 33495 acc[key + "Down"] = (0, _defineProperty3.default)({}, theme.breakpoints.down(key), hidden), 33496 acc; 33497 }, {}); 33498 }; 33499 HiddenCss.propTypes = "production" !== process.env.NODE_ENV ? { 33500 children: _propTypes2.default.node, 33501 classes: _propTypes2.default.object.isRequired, 33502 className: _propTypes2.default.string, 33503 implementation: _propTypes2.default.oneOf([ "js", "css" ]), 33504 lgDown: _propTypes2.default.bool, 33505 lgUp: _propTypes2.default.bool, 33506 mdDown: _propTypes2.default.bool, 33507 mdUp: _propTypes2.default.bool, 33508 only: _propTypes2.default.oneOfType([ _propTypes2.default.oneOf([ "xs", "sm", "md", "lg", "xl" ]), _propTypes2.default.arrayOf(_propTypes2.default.oneOf([ "xs", "sm", "md", "lg", "xl" ])) ]), 33509 smDown: _propTypes2.default.bool, 33510 smUp: _propTypes2.default.bool, 33511 xlDown: _propTypes2.default.bool, 33512 xlUp: _propTypes2.default.bool, 33513 xsDown: _propTypes2.default.bool, 33514 xsUp: _propTypes2.default.bool 33515 } : {}, exports.default = (0, _withStyles2.default)(styles, { 33516 name: "MuiHiddenCss" 33517 })(HiddenCss); 33518 }).call(exports, __webpack_require__(2)); 33519 }, function(module, __webpack_exports__, __webpack_require__) { 33520 "use strict"; 33521 Object.defineProperty(__webpack_exports__, "__esModule", { 33522 value: !0 33523 }); 33524 var __WEBPACK_IMPORTED_MODULE_1__container_Surface__ = (__webpack_require__(572), 33525 __webpack_require__(82)); 33526 __webpack_require__.d(__webpack_exports__, "Surface", function() { 33527 return __WEBPACK_IMPORTED_MODULE_1__container_Surface__.a; 33528 }); 33529 var __WEBPACK_IMPORTED_MODULE_2__container_Layer__ = __webpack_require__(14); 33530 __webpack_require__.d(__webpack_exports__, "Layer", function() { 33531 return __WEBPACK_IMPORTED_MODULE_2__container_Layer__.a; 33532 }); 33533 var __WEBPACK_IMPORTED_MODULE_3__component_Legend__ = __webpack_require__(180); 33534 __webpack_require__.d(__webpack_exports__, "Legend", function() { 33535 return __WEBPACK_IMPORTED_MODULE_3__component_Legend__.a; 33536 }); 33537 var __WEBPACK_IMPORTED_MODULE_4__component_Tooltip__ = __webpack_require__(125); 33538 __webpack_require__.d(__webpack_exports__, "Tooltip", function() { 33539 return __WEBPACK_IMPORTED_MODULE_4__component_Tooltip__.a; 33540 }); 33541 var __WEBPACK_IMPORTED_MODULE_5__component_ResponsiveContainer__ = __webpack_require__(766); 33542 __webpack_require__.d(__webpack_exports__, "ResponsiveContainer", function() { 33543 return __WEBPACK_IMPORTED_MODULE_5__component_ResponsiveContainer__.a; 33544 }); 33545 var __WEBPACK_IMPORTED_MODULE_6__component_Cell__ = __webpack_require__(88); 33546 __webpack_require__.d(__webpack_exports__, "Cell", function() { 33547 return __WEBPACK_IMPORTED_MODULE_6__component_Cell__.a; 33548 }); 33549 var __WEBPACK_IMPORTED_MODULE_7__component_Text__ = __webpack_require__(61); 33550 __webpack_require__.d(__webpack_exports__, "Text", function() { 33551 return __WEBPACK_IMPORTED_MODULE_7__component_Text__.a; 33552 }); 33553 var __WEBPACK_IMPORTED_MODULE_8__component_Label__ = __webpack_require__(44); 33554 __webpack_require__.d(__webpack_exports__, "Label", function() { 33555 return __WEBPACK_IMPORTED_MODULE_8__component_Label__.a; 33556 }); 33557 var __WEBPACK_IMPORTED_MODULE_9__component_LabelList__ = __webpack_require__(47); 33558 __webpack_require__.d(__webpack_exports__, "LabelList", function() { 33559 return __WEBPACK_IMPORTED_MODULE_9__component_LabelList__.a; 33560 }); 33561 var __WEBPACK_IMPORTED_MODULE_10__shape_Sector__ = __webpack_require__(139); 33562 __webpack_require__.d(__webpack_exports__, "Sector", function() { 33563 return __WEBPACK_IMPORTED_MODULE_10__shape_Sector__.a; 33564 }); 33565 var __WEBPACK_IMPORTED_MODULE_11__shape_Curve__ = __webpack_require__(71); 33566 __webpack_require__.d(__webpack_exports__, "Curve", function() { 33567 return __WEBPACK_IMPORTED_MODULE_11__shape_Curve__.a; 33568 }); 33569 var __WEBPACK_IMPORTED_MODULE_12__shape_Rectangle__ = __webpack_require__(70); 33570 __webpack_require__.d(__webpack_exports__, "Rectangle", function() { 33571 return __WEBPACK_IMPORTED_MODULE_12__shape_Rectangle__.a; 33572 }); 33573 var __WEBPACK_IMPORTED_MODULE_13__shape_Polygon__ = __webpack_require__(214); 33574 __webpack_require__.d(__webpack_exports__, "Polygon", function() { 33575 return __WEBPACK_IMPORTED_MODULE_13__shape_Polygon__.a; 33576 }); 33577 var __WEBPACK_IMPORTED_MODULE_14__shape_Dot__ = __webpack_require__(63); 33578 __webpack_require__.d(__webpack_exports__, "Dot", function() { 33579 return __WEBPACK_IMPORTED_MODULE_14__shape_Dot__.a; 33580 }); 33581 var __WEBPACK_IMPORTED_MODULE_15__shape_Cross__ = __webpack_require__(367); 33582 __webpack_require__.d(__webpack_exports__, "Cross", function() { 33583 return __WEBPACK_IMPORTED_MODULE_15__shape_Cross__.a; 33584 }); 33585 var __WEBPACK_IMPORTED_MODULE_16__shape_Symbols__ = __webpack_require__(181); 33586 __webpack_require__.d(__webpack_exports__, "Symbols", function() { 33587 return __WEBPACK_IMPORTED_MODULE_16__shape_Symbols__.a; 33588 }); 33589 var __WEBPACK_IMPORTED_MODULE_17__polar_PolarGrid__ = __webpack_require__(923); 33590 __webpack_require__.d(__webpack_exports__, "PolarGrid", function() { 33591 return __WEBPACK_IMPORTED_MODULE_17__polar_PolarGrid__.a; 33592 }); 33593 var __WEBPACK_IMPORTED_MODULE_18__polar_PolarRadiusAxis__ = __webpack_require__(140); 33594 __webpack_require__.d(__webpack_exports__, "PolarRadiusAxis", function() { 33595 return __WEBPACK_IMPORTED_MODULE_18__polar_PolarRadiusAxis__.a; 33596 }); 33597 var __WEBPACK_IMPORTED_MODULE_19__polar_PolarAngleAxis__ = __webpack_require__(141); 33598 __webpack_require__.d(__webpack_exports__, "PolarAngleAxis", function() { 33599 return __WEBPACK_IMPORTED_MODULE_19__polar_PolarAngleAxis__.a; 33600 }); 33601 var __WEBPACK_IMPORTED_MODULE_20__polar_Pie__ = __webpack_require__(369); 33602 __webpack_require__.d(__webpack_exports__, "Pie", function() { 33603 return __WEBPACK_IMPORTED_MODULE_20__polar_Pie__.a; 33604 }); 33605 var __WEBPACK_IMPORTED_MODULE_21__polar_Radar__ = __webpack_require__(370); 33606 __webpack_require__.d(__webpack_exports__, "Radar", function() { 33607 return __WEBPACK_IMPORTED_MODULE_21__polar_Radar__.a; 33608 }); 33609 var __WEBPACK_IMPORTED_MODULE_22__polar_RadialBar__ = __webpack_require__(371); 33610 __webpack_require__.d(__webpack_exports__, "RadialBar", function() { 33611 return __WEBPACK_IMPORTED_MODULE_22__polar_RadialBar__.a; 33612 }); 33613 var __WEBPACK_IMPORTED_MODULE_23__cartesian_Brush__ = __webpack_require__(372); 33614 __webpack_require__.d(__webpack_exports__, "Brush", function() { 33615 return __WEBPACK_IMPORTED_MODULE_23__cartesian_Brush__.a; 33616 }); 33617 var __WEBPACK_IMPORTED_MODULE_24__cartesian_ReferenceLine__ = __webpack_require__(365); 33618 __webpack_require__.d(__webpack_exports__, "ReferenceLine", function() { 33619 return __WEBPACK_IMPORTED_MODULE_24__cartesian_ReferenceLine__.a; 33620 }); 33621 var __WEBPACK_IMPORTED_MODULE_25__cartesian_ReferenceDot__ = __webpack_require__(364); 33622 __webpack_require__.d(__webpack_exports__, "ReferenceDot", function() { 33623 return __WEBPACK_IMPORTED_MODULE_25__cartesian_ReferenceDot__.a; 33624 }); 33625 var __WEBPACK_IMPORTED_MODULE_26__cartesian_ReferenceArea__ = __webpack_require__(366); 33626 __webpack_require__.d(__webpack_exports__, "ReferenceArea", function() { 33627 return __WEBPACK_IMPORTED_MODULE_26__cartesian_ReferenceArea__.a; 33628 }); 33629 var __WEBPACK_IMPORTED_MODULE_27__cartesian_CartesianAxis__ = __webpack_require__(374); 33630 __webpack_require__.d(__webpack_exports__, "CartesianAxis", function() { 33631 return __WEBPACK_IMPORTED_MODULE_27__cartesian_CartesianAxis__.a; 33632 }); 33633 var __WEBPACK_IMPORTED_MODULE_28__cartesian_CartesianGrid__ = __webpack_require__(931); 33634 __webpack_require__.d(__webpack_exports__, "CartesianGrid", function() { 33635 return __WEBPACK_IMPORTED_MODULE_28__cartesian_CartesianGrid__.a; 33636 }); 33637 var __WEBPACK_IMPORTED_MODULE_29__cartesian_Line__ = __webpack_require__(215); 33638 __webpack_require__.d(__webpack_exports__, "Line", function() { 33639 return __WEBPACK_IMPORTED_MODULE_29__cartesian_Line__.a; 33640 }); 33641 var __WEBPACK_IMPORTED_MODULE_30__cartesian_Area__ = __webpack_require__(216); 33642 __webpack_require__.d(__webpack_exports__, "Area", function() { 33643 return __WEBPACK_IMPORTED_MODULE_30__cartesian_Area__.a; 33644 }); 33645 var __WEBPACK_IMPORTED_MODULE_31__cartesian_Bar__ = __webpack_require__(217); 33646 __webpack_require__.d(__webpack_exports__, "Bar", function() { 33647 return __WEBPACK_IMPORTED_MODULE_31__cartesian_Bar__.a; 33648 }); 33649 var __WEBPACK_IMPORTED_MODULE_32__cartesian_Scatter__ = __webpack_require__(218); 33650 __webpack_require__.d(__webpack_exports__, "Scatter", function() { 33651 return __WEBPACK_IMPORTED_MODULE_32__cartesian_Scatter__.a; 33652 }); 33653 var __WEBPACK_IMPORTED_MODULE_33__cartesian_XAxis__ = __webpack_require__(72); 33654 __webpack_require__.d(__webpack_exports__, "XAxis", function() { 33655 return __WEBPACK_IMPORTED_MODULE_33__cartesian_XAxis__.a; 33656 }); 33657 var __WEBPACK_IMPORTED_MODULE_34__cartesian_YAxis__ = __webpack_require__(73); 33658 __webpack_require__.d(__webpack_exports__, "YAxis", function() { 33659 return __WEBPACK_IMPORTED_MODULE_34__cartesian_YAxis__.a; 33660 }); 33661 var __WEBPACK_IMPORTED_MODULE_35__cartesian_ZAxis__ = __webpack_require__(142); 33662 __webpack_require__.d(__webpack_exports__, "ZAxis", function() { 33663 return __WEBPACK_IMPORTED_MODULE_35__cartesian_ZAxis__.a; 33664 }); 33665 var __WEBPACK_IMPORTED_MODULE_36__cartesian_ErrorBar__ = __webpack_require__(95); 33666 __webpack_require__.d(__webpack_exports__, "ErrorBar", function() { 33667 return __WEBPACK_IMPORTED_MODULE_36__cartesian_ErrorBar__.a; 33668 }); 33669 var __WEBPACK_IMPORTED_MODULE_37__chart_LineChart__ = __webpack_require__(932); 33670 __webpack_require__.d(__webpack_exports__, "LineChart", function() { 33671 return __WEBPACK_IMPORTED_MODULE_37__chart_LineChart__.a; 33672 }); 33673 var __WEBPACK_IMPORTED_MODULE_38__chart_BarChart__ = __webpack_require__(936); 33674 __webpack_require__.d(__webpack_exports__, "BarChart", function() { 33675 return __WEBPACK_IMPORTED_MODULE_38__chart_BarChart__.a; 33676 }); 33677 var __WEBPACK_IMPORTED_MODULE_39__chart_PieChart__ = __webpack_require__(937); 33678 __webpack_require__.d(__webpack_exports__, "PieChart", function() { 33679 return __WEBPACK_IMPORTED_MODULE_39__chart_PieChart__.a; 33680 }); 33681 var __WEBPACK_IMPORTED_MODULE_40__chart_Treemap__ = __webpack_require__(938); 33682 __webpack_require__.d(__webpack_exports__, "Treemap", function() { 33683 return __WEBPACK_IMPORTED_MODULE_40__chart_Treemap__.a; 33684 }); 33685 var __WEBPACK_IMPORTED_MODULE_41__chart_Sankey__ = __webpack_require__(939); 33686 __webpack_require__.d(__webpack_exports__, "Sankey", function() { 33687 return __WEBPACK_IMPORTED_MODULE_41__chart_Sankey__.a; 33688 }); 33689 var __WEBPACK_IMPORTED_MODULE_42__chart_RadarChart__ = __webpack_require__(942); 33690 __webpack_require__.d(__webpack_exports__, "RadarChart", function() { 33691 return __WEBPACK_IMPORTED_MODULE_42__chart_RadarChart__.a; 33692 }); 33693 var __WEBPACK_IMPORTED_MODULE_43__chart_ScatterChart__ = __webpack_require__(943); 33694 __webpack_require__.d(__webpack_exports__, "ScatterChart", function() { 33695 return __WEBPACK_IMPORTED_MODULE_43__chart_ScatterChart__.a; 33696 }); 33697 var __WEBPACK_IMPORTED_MODULE_44__chart_AreaChart__ = __webpack_require__(944); 33698 __webpack_require__.d(__webpack_exports__, "AreaChart", function() { 33699 return __WEBPACK_IMPORTED_MODULE_44__chart_AreaChart__.a; 33700 }); 33701 var __WEBPACK_IMPORTED_MODULE_45__chart_RadialBarChart__ = __webpack_require__(945); 33702 __webpack_require__.d(__webpack_exports__, "RadialBarChart", function() { 33703 return __WEBPACK_IMPORTED_MODULE_45__chart_RadialBarChart__.a; 33704 }); 33705 var __WEBPACK_IMPORTED_MODULE_46__chart_ComposedChart__ = __webpack_require__(946); 33706 __webpack_require__.d(__webpack_exports__, "ComposedChart", function() { 33707 return __WEBPACK_IMPORTED_MODULE_46__chart_ComposedChart__.a; 33708 }); 33709 }, function(module, __webpack_exports__, __webpack_require__) { 33710 "use strict"; 33711 var __WEBPACK_IMPORTED_MODULE_0_core_js_es6_math__ = __webpack_require__(573), testObject = (__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_core_js_es6_math__), 33712 {}); 33713 if (!Object.setPrototypeOf && !testObject.__proto__) { 33714 var nativeGetPrototypeOf = Object.getPrototypeOf; 33715 Object.getPrototypeOf = function(object) { 33716 return object.__proto__ ? object.__proto__ : nativeGetPrototypeOf.call(Object, object); 33717 }; 33718 } 33719 }, function(module, exports, __webpack_require__) { 33720 __webpack_require__(574), __webpack_require__(586), __webpack_require__(587), __webpack_require__(588), 33721 __webpack_require__(589), __webpack_require__(590), __webpack_require__(591), __webpack_require__(592), 33722 __webpack_require__(594), __webpack_require__(595), __webpack_require__(596), __webpack_require__(597), 33723 __webpack_require__(598), __webpack_require__(599), __webpack_require__(600), __webpack_require__(601), 33724 __webpack_require__(602), module.exports = __webpack_require__(168).Math; 33725 }, function(module, exports, __webpack_require__) { 33726 var $export = __webpack_require__(15), log1p = __webpack_require__(267), sqrt = Math.sqrt, $acosh = Math.acosh; 33727 $export($export.S + $export.F * !($acosh && 710 == Math.floor($acosh(Number.MAX_VALUE)) && $acosh(1 / 0) == 1 / 0), "Math", { 33728 acosh: function(x) { 33729 return (x = +x) < 1 ? NaN : x > 94906265.62425156 ? Math.log(x) + Math.LN2 : log1p(x - 1 + sqrt(x - 1) * sqrt(x + 1)); 33730 } 33731 }); 33732 }, function(module, exports, __webpack_require__) { 33733 var anObject = __webpack_require__(576), IE8_DOM_DEFINE = __webpack_require__(577), toPrimitive = __webpack_require__(579), dP = Object.defineProperty; 33734 exports.f = __webpack_require__(170) ? Object.defineProperty : function(O, P, Attributes) { 33735 if (anObject(O), P = toPrimitive(P, !0), anObject(Attributes), IE8_DOM_DEFINE) try { 33736 return dP(O, P, Attributes); 33737 } catch (e) {} 33738 if ("get" in Attributes || "set" in Attributes) throw TypeError("Accessors not supported!"); 33739 return "value" in Attributes && (O[P] = Attributes.value), O; 33740 }; 33741 }, function(module, exports, __webpack_require__) { 33742 var isObject = __webpack_require__(169); 33743 module.exports = function(it) { 33744 if (!isObject(it)) throw TypeError(it + " is not an object!"); 33745 return it; 33746 }; 33747 }, function(module, exports, __webpack_require__) { 33748 module.exports = !__webpack_require__(170) && !__webpack_require__(114)(function() { 33749 return 7 != Object.defineProperty(__webpack_require__(578)("div"), "a", { 33750 get: function() { 33751 return 7; 33752 } 33753 }).a; 33754 }); 33755 }, function(module, exports, __webpack_require__) { 33756 var isObject = __webpack_require__(169), document = __webpack_require__(167).document, is = isObject(document) && isObject(document.createElement); 33757 module.exports = function(it) { 33758 return is ? document.createElement(it) : {}; 33759 }; 33760 }, function(module, exports, __webpack_require__) { 33761 var isObject = __webpack_require__(169); 33762 module.exports = function(it, S) { 33763 if (!isObject(it)) return it; 33764 var fn, val; 33765 if (S && "function" == typeof (fn = it.toString) && !isObject(val = fn.call(it))) return val; 33766 if ("function" == typeof (fn = it.valueOf) && !isObject(val = fn.call(it))) return val; 33767 if (!S && "function" == typeof (fn = it.toString) && !isObject(val = fn.call(it))) return val; 33768 throw TypeError("Can't convert object to primitive value"); 33769 }; 33770 }, function(module, exports) { 33771 module.exports = function(bitmap, value) { 33772 return { 33773 enumerable: !(1 & bitmap), 33774 configurable: !(2 & bitmap), 33775 writable: !(4 & bitmap), 33776 value: value 33777 }; 33778 }; 33779 }, function(module, exports, __webpack_require__) { 33780 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"); 33781 __webpack_require__(168).inspectSource = function(it) { 33782 return $toString.call(it); 33783 }, (module.exports = function(O, key, val, safe) { 33784 var isFunction = "function" == typeof val; 33785 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)))), 33786 O === global ? O[key] = val : safe ? O[key] ? O[key] = val : hide(O, key, val) : (delete O[key], 33787 hide(O, key, val))); 33788 })(Function.prototype, "toString", function() { 33789 return "function" == typeof this && this[SRC] || $toString.call(this); 33790 }); 33791 }, function(module, exports) { 33792 var hasOwnProperty = {}.hasOwnProperty; 33793 module.exports = function(it, key) { 33794 return hasOwnProperty.call(it, key); 33795 }; 33796 }, function(module, exports) { 33797 var id = 0, px = Math.random(); 33798 module.exports = function(key) { 33799 return "Symbol(".concat(void 0 === key ? "" : key, ")_", (++id + px).toString(36)); 33800 }; 33801 }, function(module, exports, __webpack_require__) { 33802 var aFunction = __webpack_require__(585); 33803 module.exports = function(fn, that, length) { 33804 if (aFunction(fn), void 0 === that) return fn; 33805 switch (length) { 33806 case 1: 33807 return function(a) { 33808 return fn.call(that, a); 33809 }; 33810 33811 case 2: 33812 return function(a, b) { 33813 return fn.call(that, a, b); 33814 }; 33815 33816 case 3: 33817 return function(a, b, c) { 33818 return fn.call(that, a, b, c); 33819 }; 33820 } 33821 return function() { 33822 return fn.apply(that, arguments); 33823 }; 33824 }; 33825 }, function(module, exports) { 33826 module.exports = function(it) { 33827 if ("function" != typeof it) throw TypeError(it + " is not a function!"); 33828 return it; 33829 }; 33830 }, function(module, exports, __webpack_require__) { 33831 function asinh(x) { 33832 return isFinite(x = +x) && 0 != x ? x < 0 ? -asinh(-x) : Math.log(x + Math.sqrt(x * x + 1)) : x; 33833 } 33834 var $export = __webpack_require__(15), $asinh = Math.asinh; 33835 $export($export.S + $export.F * !($asinh && 1 / $asinh(0) > 0), "Math", { 33836 asinh: asinh 33837 }); 33838 }, function(module, exports, __webpack_require__) { 33839 var $export = __webpack_require__(15), $atanh = Math.atanh; 33840 $export($export.S + $export.F * !($atanh && 1 / $atanh(-0) < 0), "Math", { 33841 atanh: function(x) { 33842 return 0 == (x = +x) ? x : Math.log((1 + x) / (1 - x)) / 2; 33843 } 33844 }); 33845 }, function(module, exports, __webpack_require__) { 33846 var $export = __webpack_require__(15), sign = __webpack_require__(171); 33847 $export($export.S, "Math", { 33848 cbrt: function(x) { 33849 return sign(x = +x) * Math.pow(Math.abs(x), 1 / 3); 33850 } 33851 }); 33852 }, function(module, exports, __webpack_require__) { 33853 var $export = __webpack_require__(15); 33854 $export($export.S, "Math", { 33855 clz32: function(x) { 33856 return (x >>>= 0) ? 31 - Math.floor(Math.log(x + .5) * Math.LOG2E) : 32; 33857 } 33858 }); 33859 }, function(module, exports, __webpack_require__) { 33860 var $export = __webpack_require__(15), exp = Math.exp; 33861 $export($export.S, "Math", { 33862 cosh: function(x) { 33863 return (exp(x = +x) + exp(-x)) / 2; 33864 } 33865 }); 33866 }, function(module, exports, __webpack_require__) { 33867 var $export = __webpack_require__(15), $expm1 = __webpack_require__(172); 33868 $export($export.S + $export.F * ($expm1 != Math.expm1), "Math", { 33869 expm1: $expm1 33870 }); 33871 }, function(module, exports, __webpack_require__) { 33872 var $export = __webpack_require__(15); 33873 $export($export.S, "Math", { 33874 fround: __webpack_require__(593) 33875 }); 33876 }, function(module, exports, __webpack_require__) { 33877 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) { 33878 return n + 1 / EPSILON - 1 / EPSILON; 33879 }; 33880 module.exports = Math.fround || function(x) { 33881 var a, result, $abs = Math.abs(x), $sign = sign(x); 33882 return $abs < MIN32 ? $sign * roundTiesToEven($abs / MIN32 / EPSILON32) * MIN32 * EPSILON32 : (a = (1 + EPSILON32 / EPSILON) * $abs, 33883 result = a - (a - $abs), result > MAX32 || result != result ? $sign * (1 / 0) : $sign * result); 33884 }; 33885 }, function(module, exports, __webpack_require__) { 33886 var $export = __webpack_require__(15), abs = Math.abs; 33887 $export($export.S, "Math", { 33888 hypot: function(value1, value2) { 33889 for (var arg, div, sum = 0, i = 0, aLen = arguments.length, larg = 0; i < aLen; ) arg = abs(arguments[i++]), 33890 larg < arg ? (div = larg / arg, sum = sum * div * div + 1, larg = arg) : arg > 0 ? (div = arg / larg, 33891 sum += div * div) : sum += arg; 33892 return larg === 1 / 0 ? 1 / 0 : larg * Math.sqrt(sum); 33893 } 33894 }); 33895 }, function(module, exports, __webpack_require__) { 33896 var $export = __webpack_require__(15), $imul = Math.imul; 33897 $export($export.S + $export.F * __webpack_require__(114)(function() { 33898 return -5 != $imul(4294967295, 5) || 2 != $imul.length; 33899 }), "Math", { 33900 imul: function(x, y) { 33901 var xn = +x, yn = +y, xl = 65535 & xn, yl = 65535 & yn; 33902 return 0 | xl * yl + ((65535 & xn >>> 16) * yl + xl * (65535 & yn >>> 16) << 16 >>> 0); 33903 } 33904 }); 33905 }, function(module, exports, __webpack_require__) { 33906 var $export = __webpack_require__(15); 33907 $export($export.S, "Math", { 33908 log10: function(x) { 33909 return Math.log(x) * Math.LOG10E; 33910 } 33911 }); 33912 }, function(module, exports, __webpack_require__) { 33913 var $export = __webpack_require__(15); 33914 $export($export.S, "Math", { 33915 log1p: __webpack_require__(267) 33916 }); 33917 }, function(module, exports, __webpack_require__) { 33918 var $export = __webpack_require__(15); 33919 $export($export.S, "Math", { 33920 log2: function(x) { 33921 return Math.log(x) / Math.LN2; 33922 } 33923 }); 33924 }, function(module, exports, __webpack_require__) { 33925 var $export = __webpack_require__(15); 33926 $export($export.S, "Math", { 33927 sign: __webpack_require__(171) 33928 }); 33929 }, function(module, exports, __webpack_require__) { 33930 var $export = __webpack_require__(15), expm1 = __webpack_require__(172), exp = Math.exp; 33931 $export($export.S + $export.F * __webpack_require__(114)(function() { 33932 return -2e-17 != !Math.sinh(-2e-17); 33933 }), "Math", { 33934 sinh: function(x) { 33935 return Math.abs(x = +x) < 1 ? (expm1(x) - expm1(-x)) / 2 : (exp(x - 1) - exp(-x - 1)) * (Math.E / 2); 33936 } 33937 }); 33938 }, function(module, exports, __webpack_require__) { 33939 var $export = __webpack_require__(15), expm1 = __webpack_require__(172), exp = Math.exp; 33940 $export($export.S, "Math", { 33941 tanh: function(x) { 33942 var a = expm1(x = +x), b = expm1(-x); 33943 return a == 1 / 0 ? 1 : b == 1 / 0 ? -1 : (a - b) / (exp(x) + exp(-x)); 33944 } 33945 }); 33946 }, function(module, exports, __webpack_require__) { 33947 var $export = __webpack_require__(15); 33948 $export($export.S, "Math", { 33949 trunc: function(it) { 33950 return (it > 0 ? Math.floor : Math.ceil)(it); 33951 } 33952 }); 33953 }, function(module, exports, __webpack_require__) { 33954 function getRawTag(value) { 33955 var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag]; 33956 try { 33957 value[symToStringTag] = void 0; 33958 var unmasked = !0; 33959 } catch (e) {} 33960 var result = nativeObjectToString.call(value); 33961 return unmasked && (isOwn ? value[symToStringTag] = tag : delete value[symToStringTag]), 33962 result; 33963 } 33964 var Symbol = __webpack_require__(83), objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty, nativeObjectToString = objectProto.toString, symToStringTag = Symbol ? Symbol.toStringTag : void 0; 33965 module.exports = getRawTag; 33966 }, function(module, exports) { 33967 function objectToString(value) { 33968 return nativeObjectToString.call(value); 33969 } 33970 var objectProto = Object.prototype, nativeObjectToString = objectProto.toString; 33971 module.exports = objectToString; 33972 }, function(module, exports, __webpack_require__) { 33973 var memoizeCapped = __webpack_require__(606), rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, reEscapeChar = /\\(\\)?/g, stringToPath = memoizeCapped(function(string) { 33974 var result = []; 33975 return 46 === string.charCodeAt(0) && result.push(""), string.replace(rePropName, function(match, number, quote, subString) { 33976 result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match); 33977 }), result; 33978 }); 33979 module.exports = stringToPath; 33980 }, function(module, exports, __webpack_require__) { 33981 function memoizeCapped(func) { 33982 var result = memoize(func, function(key) { 33983 return cache.size === MAX_MEMOIZE_SIZE && cache.clear(), key; 33984 }), cache = result.cache; 33985 return result; 33986 } 33987 var memoize = __webpack_require__(607), MAX_MEMOIZE_SIZE = 500; 33988 module.exports = memoizeCapped; 33989 }, function(module, exports, __webpack_require__) { 33990 function memoize(func, resolver) { 33991 if ("function" != typeof func || null != resolver && "function" != typeof resolver) throw new TypeError(FUNC_ERROR_TEXT); 33992 var memoized = function() { 33993 var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache; 33994 if (cache.has(key)) return cache.get(key); 33995 var result = func.apply(this, args); 33996 return memoized.cache = cache.set(key, result) || cache, result; 33997 }; 33998 return memoized.cache = new (memoize.Cache || MapCache)(), memoized; 33999 } 34000 var MapCache = __webpack_require__(176), FUNC_ERROR_TEXT = "Expected a function"; 34001 memoize.Cache = MapCache, module.exports = memoize; 34002 }, function(module, exports, __webpack_require__) { 34003 function mapCacheClear() { 34004 this.size = 0, this.__data__ = { 34005 hash: new Hash(), 34006 map: new (Map || ListCache)(), 34007 string: new Hash() 34008 }; 34009 } 34010 var Hash = __webpack_require__(609), ListCache = __webpack_require__(116), Map = __webpack_require__(178); 34011 module.exports = mapCacheClear; 34012 }, function(module, exports, __webpack_require__) { 34013 function Hash(entries) { 34014 var index = -1, length = null == entries ? 0 : entries.length; 34015 for (this.clear(); ++index < length; ) { 34016 var entry = entries[index]; 34017 this.set(entry[0], entry[1]); 34018 } 34019 } 34020 var hashClear = __webpack_require__(610), hashDelete = __webpack_require__(615), hashGet = __webpack_require__(616), hashHas = __webpack_require__(617), hashSet = __webpack_require__(618); 34021 Hash.prototype.clear = hashClear, Hash.prototype.delete = hashDelete, Hash.prototype.get = hashGet, 34022 Hash.prototype.has = hashHas, Hash.prototype.set = hashSet, module.exports = Hash; 34023 }, function(module, exports, __webpack_require__) { 34024 function hashClear() { 34025 this.__data__ = nativeCreate ? nativeCreate(null) : {}, this.size = 0; 34026 } 34027 var nativeCreate = __webpack_require__(115); 34028 module.exports = hashClear; 34029 }, function(module, exports, __webpack_require__) { 34030 function baseIsNative(value) { 34031 return !(!isObject(value) || isMasked(value)) && (isFunction(value) ? reIsNative : reIsHostCtor).test(toSource(value)); 34032 } 34033 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.*?") + "$"); 34034 module.exports = baseIsNative; 34035 }, function(module, exports, __webpack_require__) { 34036 function isMasked(func) { 34037 return !!maskSrcKey && maskSrcKey in func; 34038 } 34039 var coreJsData = __webpack_require__(613), maskSrcKey = function() { 34040 var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ""); 34041 return uid ? "Symbol(src)_1." + uid : ""; 34042 }(); 34043 module.exports = isMasked; 34044 }, function(module, exports, __webpack_require__) { 34045 var root = __webpack_require__(31), coreJsData = root["__core-js_shared__"]; 34046 module.exports = coreJsData; 34047 }, function(module, exports) { 34048 function getValue(object, key) { 34049 return null == object ? void 0 : object[key]; 34050 } 34051 module.exports = getValue; 34052 }, function(module, exports) { 34053 function hashDelete(key) { 34054 var result = this.has(key) && delete this.__data__[key]; 34055 return this.size -= result ? 1 : 0, result; 34056 } 34057 module.exports = hashDelete; 34058 }, function(module, exports, __webpack_require__) { 34059 function hashGet(key) { 34060 var data = this.__data__; 34061 if (nativeCreate) { 34062 var result = data[key]; 34063 return result === HASH_UNDEFINED ? void 0 : result; 34064 } 34065 return hasOwnProperty.call(data, key) ? data[key] : void 0; 34066 } 34067 var nativeCreate = __webpack_require__(115), HASH_UNDEFINED = "__lodash_hash_undefined__", objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty; 34068 module.exports = hashGet; 34069 }, function(module, exports, __webpack_require__) { 34070 function hashHas(key) { 34071 var data = this.__data__; 34072 return nativeCreate ? void 0 !== data[key] : hasOwnProperty.call(data, key); 34073 } 34074 var nativeCreate = __webpack_require__(115), objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty; 34075 module.exports = hashHas; 34076 }, function(module, exports, __webpack_require__) { 34077 function hashSet(key, value) { 34078 var data = this.__data__; 34079 return this.size += this.has(key) ? 0 : 1, data[key] = nativeCreate && void 0 === value ? HASH_UNDEFINED : value, 34080 this; 34081 } 34082 var nativeCreate = __webpack_require__(115), HASH_UNDEFINED = "__lodash_hash_undefined__"; 34083 module.exports = hashSet; 34084 }, function(module, exports) { 34085 function listCacheClear() { 34086 this.__data__ = [], this.size = 0; 34087 } 34088 module.exports = listCacheClear; 34089 }, function(module, exports, __webpack_require__) { 34090 function listCacheDelete(key) { 34091 var data = this.__data__, index = assocIndexOf(data, key); 34092 return !(index < 0) && (index == data.length - 1 ? data.pop() : splice.call(data, index, 1), 34093 --this.size, !0); 34094 } 34095 var assocIndexOf = __webpack_require__(117), arrayProto = Array.prototype, splice = arrayProto.splice; 34096 module.exports = listCacheDelete; 34097 }, function(module, exports, __webpack_require__) { 34098 function listCacheGet(key) { 34099 var data = this.__data__, index = assocIndexOf(data, key); 34100 return index < 0 ? void 0 : data[index][1]; 34101 } 34102 var assocIndexOf = __webpack_require__(117); 34103 module.exports = listCacheGet; 34104 }, function(module, exports, __webpack_require__) { 34105 function listCacheHas(key) { 34106 return assocIndexOf(this.__data__, key) > -1; 34107 } 34108 var assocIndexOf = __webpack_require__(117); 34109 module.exports = listCacheHas; 34110 }, function(module, exports, __webpack_require__) { 34111 function listCacheSet(key, value) { 34112 var data = this.__data__, index = assocIndexOf(data, key); 34113 return index < 0 ? (++this.size, data.push([ key, value ])) : data[index][1] = value, 34114 this; 34115 } 34116 var assocIndexOf = __webpack_require__(117); 34117 module.exports = listCacheSet; 34118 }, function(module, exports, __webpack_require__) { 34119 function mapCacheDelete(key) { 34120 var result = getMapData(this, key).delete(key); 34121 return this.size -= result ? 1 : 0, result; 34122 } 34123 var getMapData = __webpack_require__(118); 34124 module.exports = mapCacheDelete; 34125 }, function(module, exports) { 34126 function isKeyable(value) { 34127 var type = typeof value; 34128 return "string" == type || "number" == type || "symbol" == type || "boolean" == type ? "__proto__" !== value : null === value; 34129 } 34130 module.exports = isKeyable; 34131 }, function(module, exports, __webpack_require__) { 34132 function mapCacheGet(key) { 34133 return getMapData(this, key).get(key); 34134 } 34135 var getMapData = __webpack_require__(118); 34136 module.exports = mapCacheGet; 34137 }, function(module, exports, __webpack_require__) { 34138 function mapCacheHas(key) { 34139 return getMapData(this, key).has(key); 34140 } 34141 var getMapData = __webpack_require__(118); 34142 module.exports = mapCacheHas; 34143 }, function(module, exports, __webpack_require__) { 34144 function mapCacheSet(key, value) { 34145 var data = getMapData(this, key), size = data.size; 34146 return data.set(key, value), this.size += data.size == size ? 0 : 1, this; 34147 } 34148 var getMapData = __webpack_require__(118); 34149 module.exports = mapCacheSet; 34150 }, function(module, exports, __webpack_require__) { 34151 function toString(value) { 34152 return null == value ? "" : baseToString(value); 34153 } 34154 var baseToString = __webpack_require__(630); 34155 module.exports = toString; 34156 }, function(module, exports, __webpack_require__) { 34157 function baseToString(value) { 34158 if ("string" == typeof value) return value; 34159 if (isArray(value)) return arrayMap(value, baseToString) + ""; 34160 if (isSymbol(value)) return symbolToString ? symbolToString.call(value) : ""; 34161 var result = value + ""; 34162 return "0" == result && 1 / value == -INFINITY ? "-0" : result; 34163 } 34164 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; 34165 module.exports = baseToString; 34166 }, function(module, __webpack_exports__, __webpack_require__) { 34167 "use strict"; 34168 function _defineProperty(obj, key, value) { 34169 return key in obj ? Object.defineProperty(obj, key, { 34170 value: value, 34171 enumerable: !0, 34172 configurable: !0, 34173 writable: !0 34174 }) : obj[key] = value, obj; 34175 } 34176 function _classCallCheck(instance, Constructor) { 34177 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 34178 } 34179 function _possibleConstructorReturn(self, call) { 34180 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 34181 return !call || "object" != typeof call && "function" != typeof call ? self : call; 34182 } 34183 function _inherits(subClass, superClass) { 34184 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 34185 subClass.prototype = Object.create(superClass && superClass.prototype, { 34186 constructor: { 34187 value: subClass, 34188 enumerable: !1, 34189 writable: !0, 34190 configurable: !0 34191 } 34192 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 34193 } 34194 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) { 34195 for (var i = 1; i < arguments.length; i++) { 34196 var source = arguments[i]; 34197 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 34198 } 34199 return target; 34200 }, _createClass = function() { 34201 function defineProperties(target, props) { 34202 for (var i = 0; i < props.length; i++) { 34203 var descriptor = props[i]; 34204 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 34205 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 34206 } 34207 } 34208 return function(Constructor, protoProps, staticProps) { 34209 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 34210 Constructor; 34211 }; 34212 }(), ICON_TYPES = __WEBPACK_IMPORTED_MODULE_6__util_ReactUtils__.b.filter(function(type) { 34213 return "none" !== type; 34214 }), DefaultLegendContent = Object(__WEBPACK_IMPORTED_MODULE_3__util_PureRender__.a)((_temp = _class2 = function(_Component) { 34215 function DefaultLegendContent() { 34216 return _classCallCheck(this, DefaultLegendContent), _possibleConstructorReturn(this, (DefaultLegendContent.__proto__ || Object.getPrototypeOf(DefaultLegendContent)).apply(this, arguments)); 34217 } 34218 return _inherits(DefaultLegendContent, _Component), _createClass(DefaultLegendContent, [ { 34219 key: "renderIcon", 34220 value: function(data) { 34221 var inactiveColor = this.props.inactiveColor, color = data.inactive ? inactiveColor : data.color; 34222 return "plainline" === data.type ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("line", { 34223 strokeWidth: 4, 34224 fill: "none", 34225 stroke: color, 34226 strokeDasharray: data.payload.strokeDasharray, 34227 x1: 0, 34228 y1: 16, 34229 x2: 32, 34230 y2: 16, 34231 className: "recharts-legend-icon" 34232 }) : "line" === data.type ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("path", { 34233 strokeWidth: 4, 34234 fill: "none", 34235 stroke: color, 34236 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", 34237 className: "recharts-legend-icon" 34238 }) : "rect" === data.type ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("path", { 34239 stroke: "none", 34240 fill: color, 34241 d: "M0,4h32v24h-32z", 34242 className: "recharts-legend-icon" 34243 }) : __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__shape_Symbols__.a, { 34244 fill: color, 34245 cx: 16, 34246 cy: 16, 34247 size: 32, 34248 sizeType: "diameter", 34249 type: data.type 34250 }); 34251 } 34252 }, { 34253 key: "renderItems", 34254 value: function() { 34255 var _this2 = this, _props = this.props, payload = _props.payload, iconSize = _props.iconSize, layout = _props.layout, formatter = _props.formatter, viewBox = { 34256 x: 0, 34257 y: 0, 34258 width: 32, 34259 height: 32 34260 }, itemStyle = { 34261 display: "horizontal" === layout ? "inline-block" : "block", 34262 marginRight: 10 34263 }, svgStyle = { 34264 display: "inline-block", 34265 verticalAlign: "middle", 34266 marginRight: 4 34267 }; 34268 return payload.map(function(entry, i) { 34269 var _classNames, finalFormatter = entry.formatter || formatter, className = __WEBPACK_IMPORTED_MODULE_2_classnames___default()((_classNames = { 34270 "recharts-legend-item": !0 34271 }, _defineProperty(_classNames, "legend-item-" + i, !0), _defineProperty(_classNames, "inactive", entry.inactive), 34272 _classNames)); 34273 return "none" === entry.type ? null : __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("li", _extends({ 34274 className: className, 34275 style: itemStyle, 34276 key: "legend-item-" + i 34277 }, 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, { 34278 width: iconSize, 34279 height: iconSize, 34280 viewBox: viewBox, 34281 style: svgStyle 34282 }, _this2.renderIcon(entry)), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("span", { 34283 className: "recharts-legend-item-text" 34284 }, finalFormatter ? finalFormatter(entry.value, entry, i) : entry.value)); 34285 }); 34286 } 34287 }, { 34288 key: "render", 34289 value: function() { 34290 var _props2 = this.props, payload = _props2.payload, layout = _props2.layout, align = _props2.align; 34291 if (!payload || !payload.length) return null; 34292 var finalStyle = { 34293 padding: 0, 34294 margin: 0, 34295 textAlign: "horizontal" === layout ? align : "left" 34296 }; 34297 return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("ul", { 34298 className: "recharts-default-legend", 34299 style: finalStyle 34300 }, this.renderItems()); 34301 } 34302 } ]), DefaultLegendContent; 34303 }(__WEBPACK_IMPORTED_MODULE_0_react__.Component), _class2.displayName = "Legend", 34304 _class2.propTypes = { 34305 content: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.element, 34306 iconSize: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 34307 iconType: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf(ICON_TYPES), 34308 layout: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf([ "horizontal", "vertical" ]), 34309 align: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf([ "center", "left", "right" ]), 34310 verticalAlign: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf([ "top", "bottom", "middle" ]), 34311 payload: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape({ 34312 value: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.any, 34313 id: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.any, 34314 type: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf(__WEBPACK_IMPORTED_MODULE_6__util_ReactUtils__.b) 34315 })), 34316 inactiveColor: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, 34317 formatter: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, 34318 onMouseEnter: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, 34319 onMouseLeave: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func, 34320 onClick: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func 34321 }, _class2.defaultProps = { 34322 iconSize: 14, 34323 layout: "horizontal", 34324 align: "center", 34325 verticalAlign: "middle", 34326 inactiveColor: "#ccc" 34327 }, _class = _temp)) || _class; 34328 __webpack_exports__.a = DefaultLegendContent; 34329 }, function(module, __webpack_exports__, __webpack_require__) { 34330 "use strict"; 34331 __webpack_require__(84), __webpack_require__(58), __webpack_require__(85); 34332 }, function(module, __webpack_exports__, __webpack_require__) { 34333 "use strict"; 34334 function Path() { 34335 this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = ""; 34336 } 34337 function path() { 34338 return new Path(); 34339 } 34340 var pi = Math.PI, tau = 2 * pi, tauEpsilon = tau - 1e-6; 34341 Path.prototype = path.prototype = { 34342 constructor: Path, 34343 moveTo: function(x, y) { 34344 this._ += "M" + (this._x0 = this._x1 = +x) + "," + (this._y0 = this._y1 = +y); 34345 }, 34346 closePath: function() { 34347 null !== this._x1 && (this._x1 = this._x0, this._y1 = this._y0, this._ += "Z"); 34348 }, 34349 lineTo: function(x, y) { 34350 this._ += "L" + (this._x1 = +x) + "," + (this._y1 = +y); 34351 }, 34352 quadraticCurveTo: function(x1, y1, x, y) { 34353 this._ += "Q" + +x1 + "," + +y1 + "," + (this._x1 = +x) + "," + (this._y1 = +y); 34354 }, 34355 bezierCurveTo: function(x1, y1, x2, y2, x, y) { 34356 this._ += "C" + +x1 + "," + +y1 + "," + +x2 + "," + +y2 + "," + (this._x1 = +x) + "," + (this._y1 = +y); 34357 }, 34358 arcTo: function(x1, y1, x2, y2, r) { 34359 x1 = +x1, y1 = +y1, x2 = +x2, y2 = +y2, r = +r; 34360 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; 34361 if (r < 0) throw new Error("negative radius: " + r); 34362 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) { 34363 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; 34364 Math.abs(t01 - 1) > 1e-6 && (this._ += "L" + (x1 + t01 * x01) + "," + (y1 + t01 * y01)), 34365 this._ += "A" + r + "," + r + ",0,0," + +(y01 * x20 > x01 * y20) + "," + (this._x1 = x1 + t21 * x21) + "," + (this._y1 = y1 + t21 * y21); 34366 } else this._ += "L" + (this._x1 = x1) + "," + (this._y1 = y1); else ; 34367 }, 34368 arc: function(x, y, r, a0, a1, ccw) { 34369 x = +x, y = +y, r = +r; 34370 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; 34371 if (r < 0) throw new Error("negative radius: " + r); 34372 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), 34373 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)))); 34374 }, 34375 rect: function(x, y, w, h) { 34376 this._ += "M" + (this._x0 = this._x1 = +x) + "," + (this._y0 = this._y1 = +y) + "h" + +w + "v" + +h + "h" + -w + "Z"; 34377 }, 34378 toString: function() { 34379 return this._; 34380 } 34381 }, __webpack_exports__.a = path; 34382 }, function(module, __webpack_exports__, __webpack_require__) { 34383 "use strict"; 34384 __webpack_require__(58), __webpack_require__(635), __webpack_require__(636), __webpack_require__(85); 34385 }, function(module, __webpack_exports__, __webpack_require__) { 34386 "use strict"; 34387 __webpack_exports__.a = function(a, b) { 34388 return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN; 34389 }; 34390 }, function(module, __webpack_exports__, __webpack_require__) { 34391 "use strict"; 34392 __webpack_exports__.a = function(d) { 34393 return d; 34394 }; 34395 }, function(module, __webpack_exports__, __webpack_require__) { 34396 "use strict"; 34397 __webpack_require__(274), __webpack_require__(273), __webpack_require__(275); 34398 }, function(module, __webpack_exports__, __webpack_require__) { 34399 "use strict"; 34400 __webpack_require__(84), __webpack_require__(277), __webpack_require__(58), __webpack_require__(184), 34401 __webpack_require__(276); 34402 }, function(module, __webpack_exports__, __webpack_require__) { 34403 "use strict"; 34404 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); 34405 __WEBPACK_IMPORTED_MODULE_1__symbol_circle__.a, __WEBPACK_IMPORTED_MODULE_2__symbol_cross__.a, 34406 __WEBPACK_IMPORTED_MODULE_3__symbol_diamond__.a, __WEBPACK_IMPORTED_MODULE_5__symbol_square__.a, 34407 __WEBPACK_IMPORTED_MODULE_4__symbol_star__.a, __WEBPACK_IMPORTED_MODULE_6__symbol_triangle__.a, 34408 __WEBPACK_IMPORTED_MODULE_7__symbol_wye__.a; 34409 __webpack_exports__.a = function() { 34410 function symbol() { 34411 var buffer; 34412 if (context || (context = buffer = Object(__WEBPACK_IMPORTED_MODULE_0_d3_path__.a)()), 34413 type.apply(this, arguments).draw(context, +size.apply(this, arguments)), buffer) return context = null, 34414 buffer + "" || null; 34415 } 34416 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; 34417 return symbol.type = function(_) { 34418 return arguments.length ? (type = "function" == typeof _ ? _ : Object(__WEBPACK_IMPORTED_MODULE_8__constant__.a)(_), 34419 symbol) : type; 34420 }, symbol.size = function(_) { 34421 return arguments.length ? (size = "function" == typeof _ ? _ : Object(__WEBPACK_IMPORTED_MODULE_8__constant__.a)(+_), 34422 symbol) : size; 34423 }, symbol.context = function(_) { 34424 return arguments.length ? (context = null == _ ? null : _, symbol) : context; 34425 }, symbol; 34426 }; 34427 }, function(module, __webpack_exports__, __webpack_require__) { 34428 "use strict"; 34429 function BasisClosed(context) { 34430 this._context = context; 34431 } 34432 var __WEBPACK_IMPORTED_MODULE_0__noop__ = __webpack_require__(122), __WEBPACK_IMPORTED_MODULE_1__basis__ = __webpack_require__(123); 34433 BasisClosed.prototype = { 34434 areaStart: __WEBPACK_IMPORTED_MODULE_0__noop__.a, 34435 areaEnd: __WEBPACK_IMPORTED_MODULE_0__noop__.a, 34436 lineStart: function() { 34437 this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, 34438 this._point = 0; 34439 }, 34440 lineEnd: function() { 34441 switch (this._point) { 34442 case 1: 34443 this._context.moveTo(this._x2, this._y2), this._context.closePath(); 34444 break; 34445 34446 case 2: 34447 this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3), 34448 this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3), 34449 this._context.closePath(); 34450 break; 34451 34452 case 3: 34453 this.point(this._x2, this._y2), this.point(this._x3, this._y3), this.point(this._x4, this._y4); 34454 } 34455 }, 34456 point: function(x, y) { 34457 switch (x = +x, y = +y, this._point) { 34458 case 0: 34459 this._point = 1, this._x2 = x, this._y2 = y; 34460 break; 34461 34462 case 1: 34463 this._point = 2, this._x3 = x, this._y3 = y; 34464 break; 34465 34466 case 2: 34467 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); 34468 break; 34469 34470 default: 34471 Object(__WEBPACK_IMPORTED_MODULE_1__basis__.c)(this, x, y); 34472 } 34473 this._x0 = this._x1, this._x1 = x, this._y0 = this._y1, this._y1 = y; 34474 } 34475 }, __webpack_exports__.a = function(context) { 34476 return new BasisClosed(context); 34477 }; 34478 }, function(module, __webpack_exports__, __webpack_require__) { 34479 "use strict"; 34480 function BasisOpen(context) { 34481 this._context = context; 34482 } 34483 var __WEBPACK_IMPORTED_MODULE_0__basis__ = __webpack_require__(123); 34484 BasisOpen.prototype = { 34485 areaStart: function() { 34486 this._line = 0; 34487 }, 34488 areaEnd: function() { 34489 this._line = NaN; 34490 }, 34491 lineStart: function() { 34492 this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0; 34493 }, 34494 lineEnd: function() { 34495 (this._line || 0 !== this._line && 3 === this._point) && this._context.closePath(), 34496 this._line = 1 - this._line; 34497 }, 34498 point: function(x, y) { 34499 switch (x = +x, y = +y, this._point) { 34500 case 0: 34501 this._point = 1; 34502 break; 34503 34504 case 1: 34505 this._point = 2; 34506 break; 34507 34508 case 2: 34509 this._point = 3; 34510 var x0 = (this._x0 + 4 * this._x1 + x) / 6, y0 = (this._y0 + 4 * this._y1 + y) / 6; 34511 this._line ? this._context.lineTo(x0, y0) : this._context.moveTo(x0, y0); 34512 break; 34513 34514 case 3: 34515 this._point = 4; 34516 34517 default: 34518 Object(__WEBPACK_IMPORTED_MODULE_0__basis__.c)(this, x, y); 34519 } 34520 this._x0 = this._x1, this._x1 = x, this._y0 = this._y1, this._y1 = y; 34521 } 34522 }, __webpack_exports__.a = function(context) { 34523 return new BasisOpen(context); 34524 }; 34525 }, function(module, __webpack_exports__, __webpack_require__) { 34526 "use strict"; 34527 function Bundle(context, beta) { 34528 this._basis = new __WEBPACK_IMPORTED_MODULE_0__basis__.a(context), this._beta = beta; 34529 } 34530 var __WEBPACK_IMPORTED_MODULE_0__basis__ = __webpack_require__(123); 34531 Bundle.prototype = { 34532 lineStart: function() { 34533 this._x = [], this._y = [], this._basis.lineStart(); 34534 }, 34535 lineEnd: function() { 34536 var x = this._x, y = this._y, j = x.length - 1; 34537 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, 34538 this._basis.point(this._beta * x[i] + (1 - this._beta) * (x0 + t * dx), this._beta * y[i] + (1 - this._beta) * (y0 + t * dy)); 34539 this._x = this._y = null, this._basis.lineEnd(); 34540 }, 34541 point: function(x, y) { 34542 this._x.push(+x), this._y.push(+y); 34543 } 34544 }; 34545 !function custom(beta) { 34546 function bundle(context) { 34547 return 1 === beta ? new __WEBPACK_IMPORTED_MODULE_0__basis__.a(context) : new Bundle(context, beta); 34548 } 34549 return bundle.beta = function(beta) { 34550 return custom(+beta); 34551 }, bundle; 34552 }(.85); 34553 }, function(module, __webpack_exports__, __webpack_require__) { 34554 "use strict"; 34555 function CatmullRomClosed(context, alpha) { 34556 this._context = context, this._alpha = alpha; 34557 } 34558 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); 34559 CatmullRomClosed.prototype = { 34560 areaStart: __WEBPACK_IMPORTED_MODULE_1__noop__.a, 34561 areaEnd: __WEBPACK_IMPORTED_MODULE_1__noop__.a, 34562 lineStart: function() { 34563 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, 34564 this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0; 34565 }, 34566 lineEnd: function() { 34567 switch (this._point) { 34568 case 1: 34569 this._context.moveTo(this._x3, this._y3), this._context.closePath(); 34570 break; 34571 34572 case 2: 34573 this._context.lineTo(this._x3, this._y3), this._context.closePath(); 34574 break; 34575 34576 case 3: 34577 this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5); 34578 } 34579 }, 34580 point: function(x, y) { 34581 if (x = +x, y = +y, this._point) { 34582 var x23 = this._x2 - x, y23 = this._y2 - y; 34583 this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha)); 34584 } 34585 switch (this._point) { 34586 case 0: 34587 this._point = 1, this._x3 = x, this._y3 = y; 34588 break; 34589 34590 case 1: 34591 this._point = 2, this._context.moveTo(this._x4 = x, this._y4 = y); 34592 break; 34593 34594 case 2: 34595 this._point = 3, this._x5 = x, this._y5 = y; 34596 break; 34597 34598 default: 34599 Object(__WEBPACK_IMPORTED_MODULE_2__catmullRom__.a)(this, x, y); 34600 } 34601 this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, 34602 this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = x, 34603 this._y0 = this._y1, this._y1 = this._y2, this._y2 = y; 34604 } 34605 }; 34606 !function custom(alpha) { 34607 function catmullRom(context) { 34608 return alpha ? new CatmullRomClosed(context, alpha) : new __WEBPACK_IMPORTED_MODULE_0__cardinalClosed__.a(context, 0); 34609 } 34610 return catmullRom.alpha = function(alpha) { 34611 return custom(+alpha); 34612 }, catmullRom; 34613 }(.5); 34614 }, function(module, __webpack_exports__, __webpack_require__) { 34615 "use strict"; 34616 function CatmullRomOpen(context, alpha) { 34617 this._context = context, this._alpha = alpha; 34618 } 34619 var __WEBPACK_IMPORTED_MODULE_0__cardinalOpen__ = __webpack_require__(286), __WEBPACK_IMPORTED_MODULE_1__catmullRom__ = __webpack_require__(185); 34620 CatmullRomOpen.prototype = { 34621 areaStart: function() { 34622 this._line = 0; 34623 }, 34624 areaEnd: function() { 34625 this._line = NaN; 34626 }, 34627 lineStart: function() { 34628 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; 34629 }, 34630 lineEnd: function() { 34631 (this._line || 0 !== this._line && 3 === this._point) && this._context.closePath(), 34632 this._line = 1 - this._line; 34633 }, 34634 point: function(x, y) { 34635 if (x = +x, y = +y, this._point) { 34636 var x23 = this._x2 - x, y23 = this._y2 - y; 34637 this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha)); 34638 } 34639 switch (this._point) { 34640 case 0: 34641 this._point = 1; 34642 break; 34643 34644 case 1: 34645 this._point = 2; 34646 break; 34647 34648 case 2: 34649 this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); 34650 break; 34651 34652 case 3: 34653 this._point = 4; 34654 34655 default: 34656 Object(__WEBPACK_IMPORTED_MODULE_1__catmullRom__.a)(this, x, y); 34657 } 34658 this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, 34659 this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = x, 34660 this._y0 = this._y1, this._y1 = this._y2, this._y2 = y; 34661 } 34662 }; 34663 !function custom(alpha) { 34664 function catmullRom(context) { 34665 return alpha ? new CatmullRomOpen(context, alpha) : new __WEBPACK_IMPORTED_MODULE_0__cardinalOpen__.a(context, 0); 34666 } 34667 return catmullRom.alpha = function(alpha) { 34668 return custom(+alpha); 34669 }, catmullRom; 34670 }(.5); 34671 }, function(module, __webpack_exports__, __webpack_require__) { 34672 "use strict"; 34673 function LinearClosed(context) { 34674 this._context = context; 34675 } 34676 var __WEBPACK_IMPORTED_MODULE_0__noop__ = __webpack_require__(122); 34677 LinearClosed.prototype = { 34678 areaStart: __WEBPACK_IMPORTED_MODULE_0__noop__.a, 34679 areaEnd: __WEBPACK_IMPORTED_MODULE_0__noop__.a, 34680 lineStart: function() { 34681 this._point = 0; 34682 }, 34683 lineEnd: function() { 34684 this._point && this._context.closePath(); 34685 }, 34686 point: function(x, y) { 34687 x = +x, y = +y, this._point ? this._context.lineTo(x, y) : (this._point = 1, this._context.moveTo(x, y)); 34688 } 34689 }, __webpack_exports__.a = function(context) { 34690 return new LinearClosed(context); 34691 }; 34692 }, function(module, __webpack_exports__, __webpack_require__) { 34693 "use strict"; 34694 function sign(x) { 34695 return x < 0 ? -1 : 1; 34696 } 34697 function slope3(that, x2, y2) { 34698 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); 34699 return (sign(s0) + sign(s1)) * Math.min(Math.abs(s0), Math.abs(s1), .5 * Math.abs(p)) || 0; 34700 } 34701 function slope2(that, t) { 34702 var h = that._x1 - that._x0; 34703 return h ? (3 * (that._y1 - that._y0) / h - t) / 2 : t; 34704 } 34705 function point(that, t0, t1) { 34706 var x0 = that._x0, y0 = that._y0, x1 = that._x1, y1 = that._y1, dx = (x1 - x0) / 3; 34707 that._context.bezierCurveTo(x0 + dx, y0 + dx * t0, x1 - dx, y1 - dx * t1, x1, y1); 34708 } 34709 function MonotoneX(context) { 34710 this._context = context; 34711 } 34712 function MonotoneY(context) { 34713 this._context = new ReflectContext(context); 34714 } 34715 function ReflectContext(context) { 34716 this._context = context; 34717 } 34718 function monotoneX(context) { 34719 return new MonotoneX(context); 34720 } 34721 function monotoneY(context) { 34722 return new MonotoneY(context); 34723 } 34724 __webpack_exports__.a = monotoneX, __webpack_exports__.b = monotoneY, MonotoneX.prototype = { 34725 areaStart: function() { 34726 this._line = 0; 34727 }, 34728 areaEnd: function() { 34729 this._line = NaN; 34730 }, 34731 lineStart: function() { 34732 this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN, this._point = 0; 34733 }, 34734 lineEnd: function() { 34735 switch (this._point) { 34736 case 2: 34737 this._context.lineTo(this._x1, this._y1); 34738 break; 34739 34740 case 3: 34741 point(this, this._t0, slope2(this, this._t0)); 34742 } 34743 (this._line || 0 !== this._line && 1 === this._point) && this._context.closePath(), 34744 this._line = 1 - this._line; 34745 }, 34746 point: function(x, y) { 34747 var t1 = NaN; 34748 if (x = +x, y = +y, x !== this._x1 || y !== this._y1) { 34749 switch (this._point) { 34750 case 0: 34751 this._point = 1, this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); 34752 break; 34753 34754 case 1: 34755 this._point = 2; 34756 break; 34757 34758 case 2: 34759 this._point = 3, point(this, slope2(this, t1 = slope3(this, x, y)), t1); 34760 break; 34761 34762 default: 34763 point(this, this._t0, t1 = slope3(this, x, y)); 34764 } 34765 this._x0 = this._x1, this._x1 = x, this._y0 = this._y1, this._y1 = y, this._t0 = t1; 34766 } 34767 } 34768 }, (MonotoneY.prototype = Object.create(MonotoneX.prototype)).point = function(x, y) { 34769 MonotoneX.prototype.point.call(this, y, x); 34770 }, ReflectContext.prototype = { 34771 moveTo: function(x, y) { 34772 this._context.moveTo(y, x); 34773 }, 34774 closePath: function() { 34775 this._context.closePath(); 34776 }, 34777 lineTo: function(x, y) { 34778 this._context.lineTo(y, x); 34779 }, 34780 bezierCurveTo: function(x1, y1, x2, y2, x, y) { 34781 this._context.bezierCurveTo(y1, x1, y2, x2, y, x); 34782 } 34783 }; 34784 }, function(module, __webpack_exports__, __webpack_require__) { 34785 "use strict"; 34786 function Natural(context) { 34787 this._context = context; 34788 } 34789 function controlPoints(x) { 34790 var i, m, n = x.length - 1, a = new Array(n), b = new Array(n), r = new Array(n); 34791 for (a[0] = 0, b[0] = 2, r[0] = x[0] + 2 * x[1], i = 1; i < n - 1; ++i) a[i] = 1, 34792 b[i] = 4, r[i] = 4 * x[i] + 2 * x[i + 1]; 34793 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], 34794 b[i] -= m, r[i] -= m * r[i - 1]; 34795 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]; 34796 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]; 34797 return [ a, b ]; 34798 } 34799 Natural.prototype = { 34800 areaStart: function() { 34801 this._line = 0; 34802 }, 34803 areaEnd: function() { 34804 this._line = NaN; 34805 }, 34806 lineStart: function() { 34807 this._x = [], this._y = []; 34808 }, 34809 lineEnd: function() { 34810 var x = this._x, y = this._y, n = x.length; 34811 if (n) if (this._line ? this._context.lineTo(x[0], y[0]) : this._context.moveTo(x[0], y[0]), 34812 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, 34813 ++i1) this._context.bezierCurveTo(px[0][i0], py[0][i0], px[1][i0], py[1][i0], x[i1], y[i1]); 34814 (this._line || 0 !== this._line && 1 === n) && this._context.closePath(), this._line = 1 - this._line, 34815 this._x = this._y = null; 34816 }, 34817 point: function(x, y) { 34818 this._x.push(+x), this._y.push(+y); 34819 } 34820 }, __webpack_exports__.a = function(context) { 34821 return new Natural(context); 34822 }; 34823 }, function(module, __webpack_exports__, __webpack_require__) { 34824 "use strict"; 34825 function Step(context, t) { 34826 this._context = context, this._t = t; 34827 } 34828 function stepBefore(context) { 34829 return new Step(context, 0); 34830 } 34831 function stepAfter(context) { 34832 return new Step(context, 1); 34833 } 34834 __webpack_exports__.c = stepBefore, __webpack_exports__.b = stepAfter, Step.prototype = { 34835 areaStart: function() { 34836 this._line = 0; 34837 }, 34838 areaEnd: function() { 34839 this._line = NaN; 34840 }, 34841 lineStart: function() { 34842 this._x = this._y = NaN, this._point = 0; 34843 }, 34844 lineEnd: function() { 34845 0 < this._t && this._t < 1 && 2 === this._point && this._context.lineTo(this._x, this._y), 34846 (this._line || 0 !== this._line && 1 === this._point) && this._context.closePath(), 34847 this._line >= 0 && (this._t = 1 - this._t, this._line = 1 - this._line); 34848 }, 34849 point: function(x, y) { 34850 switch (x = +x, y = +y, this._point) { 34851 case 0: 34852 this._point = 1, this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); 34853 break; 34854 34855 case 1: 34856 this._point = 2; 34857 34858 default: 34859 if (this._t <= 0) this._context.lineTo(this._x, y), this._context.lineTo(x, y); else { 34860 var x1 = this._x * (1 - this._t) + x * this._t; 34861 this._context.lineTo(x1, this._y), this._context.lineTo(x1, y); 34862 } 34863 } 34864 this._x = x, this._y = y; 34865 } 34866 }, __webpack_exports__.a = function(context) { 34867 return new Step(context, .5); 34868 }; 34869 }, function(module, __webpack_exports__, __webpack_require__) { 34870 "use strict"; 34871 function stackValue(d, key) { 34872 return d[key]; 34873 } 34874 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); 34875 __webpack_exports__.a = function() { 34876 function stack(data) { 34877 var i, oz, kz = keys.apply(this, arguments), m = data.length, n = kz.length, sz = new Array(n); 34878 for (i = 0; i < n; ++i) { 34879 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) ], 34880 sij.data = data[j]; 34881 si.key = ki; 34882 } 34883 for (i = 0, oz = order(sz); i < n; ++i) sz[oz[i]].index = i; 34884 return offset(sz, oz), sz; 34885 } 34886 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; 34887 return stack.keys = function(_) { 34888 return arguments.length ? (keys = "function" == typeof _ ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__.a)(__WEBPACK_IMPORTED_MODULE_0__array__.a.call(_)), 34889 stack) : keys; 34890 }, stack.value = function(_) { 34891 return arguments.length ? (value = "function" == typeof _ ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__.a)(+_), 34892 stack) : value; 34893 }, stack.order = function(_) { 34894 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(_)), 34895 stack) : order; 34896 }, stack.offset = function(_) { 34897 return arguments.length ? (offset = null == _ ? __WEBPACK_IMPORTED_MODULE_2__offset_none__.a : _, 34898 stack) : offset; 34899 }, stack; 34900 }; 34901 }, function(module, __webpack_exports__, __webpack_require__) { 34902 "use strict"; 34903 var __WEBPACK_IMPORTED_MODULE_0__none__ = __webpack_require__(86); 34904 __webpack_exports__.a = function(series, order) { 34905 if ((n = series.length) > 0) { 34906 for (var i, n, y, j = 0, m = series[0].length; j < m; ++j) { 34907 for (y = i = 0; i < n; ++i) y += series[i][j][1] || 0; 34908 if (y) for (i = 0; i < n; ++i) series[i][j][1] /= y; 34909 } 34910 Object(__WEBPACK_IMPORTED_MODULE_0__none__.a)(series, order); 34911 } 34912 }; 34913 }, function(module, __webpack_exports__, __webpack_require__) { 34914 "use strict"; 34915 }, function(module, __webpack_exports__, __webpack_require__) { 34916 "use strict"; 34917 var __WEBPACK_IMPORTED_MODULE_0__none__ = __webpack_require__(86); 34918 __webpack_exports__.a = function(series, order) { 34919 if ((n = series.length) > 0) { 34920 for (var n, j = 0, s0 = series[order[0]], m = s0.length; j < m; ++j) { 34921 for (var i = 0, y = 0; i < n; ++i) y += series[i][j][1] || 0; 34922 s0[j][1] += s0[j][0] = -y / 2; 34923 } 34924 Object(__WEBPACK_IMPORTED_MODULE_0__none__.a)(series, order); 34925 } 34926 }; 34927 }, function(module, __webpack_exports__, __webpack_require__) { 34928 "use strict"; 34929 var __WEBPACK_IMPORTED_MODULE_0__none__ = __webpack_require__(86); 34930 __webpack_exports__.a = function(series, order) { 34931 if ((n = series.length) > 0 && (m = (s0 = series[order[0]]).length) > 0) { 34932 for (var s0, m, n, y = 0, j = 1; j < m; ++j) { 34933 for (var i = 0, s1 = 0, s2 = 0; i < n; ++i) { 34934 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) { 34935 var sk = series[order[k]]; 34936 s3 += (sk[j][1] || 0) - (sk[j - 1][1] || 0); 34937 } 34938 s1 += sij0, s2 += s3 * sij0; 34939 } 34940 s0[j - 1][1] += s0[j - 1][0] = y, s1 && (y -= s2 / s1); 34941 } 34942 s0[j - 1][1] += s0[j - 1][0] = y, Object(__WEBPACK_IMPORTED_MODULE_0__none__.a)(series, order); 34943 } 34944 }; 34945 }, function(module, __webpack_exports__, __webpack_require__) { 34946 "use strict"; 34947 __webpack_require__(186); 34948 }, function(module, __webpack_exports__, __webpack_require__) { 34949 "use strict"; 34950 __webpack_require__(87), __webpack_require__(186); 34951 }, function(module, __webpack_exports__, __webpack_require__) { 34952 "use strict"; 34953 __webpack_require__(87); 34954 }, function(module, exports, __webpack_require__) { 34955 function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { 34956 var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other); 34957 objTag = objTag == argsTag ? objectTag : objTag, othTag = othTag == argsTag ? objectTag : othTag; 34958 var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag; 34959 if (isSameTag && isBuffer(object)) { 34960 if (!isBuffer(other)) return !1; 34961 objIsArr = !0, objIsObj = !1; 34962 } 34963 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); 34964 if (!(bitmask & COMPARE_PARTIAL_FLAG)) { 34965 var objIsWrapped = objIsObj && hasOwnProperty.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__"); 34966 if (objIsWrapped || othIsWrapped) { 34967 var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other; 34968 return stack || (stack = new Stack()), equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); 34969 } 34970 } 34971 return !!isSameTag && (stack || (stack = new Stack()), equalObjects(object, other, bitmask, customizer, equalFunc, stack)); 34972 } 34973 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; 34974 module.exports = baseIsEqualDeep; 34975 }, function(module, exports) { 34976 function listCacheClear() { 34977 this.__data__ = [], this.size = 0; 34978 } 34979 module.exports = listCacheClear; 34980 }, function(module, exports, __webpack_require__) { 34981 function listCacheDelete(key) { 34982 var data = this.__data__, index = assocIndexOf(data, key); 34983 return !(index < 0) && (index == data.length - 1 ? data.pop() : splice.call(data, index, 1), 34984 --this.size, !0); 34985 } 34986 var assocIndexOf = __webpack_require__(127), arrayProto = Array.prototype, splice = arrayProto.splice; 34987 module.exports = listCacheDelete; 34988 }, function(module, exports, __webpack_require__) { 34989 function listCacheGet(key) { 34990 var data = this.__data__, index = assocIndexOf(data, key); 34991 return index < 0 ? void 0 : data[index][1]; 34992 } 34993 var assocIndexOf = __webpack_require__(127); 34994 module.exports = listCacheGet; 34995 }, function(module, exports, __webpack_require__) { 34996 function listCacheHas(key) { 34997 return assocIndexOf(this.__data__, key) > -1; 34998 } 34999 var assocIndexOf = __webpack_require__(127); 35000 module.exports = listCacheHas; 35001 }, function(module, exports, __webpack_require__) { 35002 function listCacheSet(key, value) { 35003 var data = this.__data__, index = assocIndexOf(data, key); 35004 return index < 0 ? (++this.size, data.push([ key, value ])) : data[index][1] = value, 35005 this; 35006 } 35007 var assocIndexOf = __webpack_require__(127); 35008 module.exports = listCacheSet; 35009 }, function(module, exports, __webpack_require__) { 35010 function stackClear() { 35011 this.__data__ = new ListCache(), this.size = 0; 35012 } 35013 var ListCache = __webpack_require__(126); 35014 module.exports = stackClear; 35015 }, function(module, exports) { 35016 function stackDelete(key) { 35017 var data = this.__data__, result = data.delete(key); 35018 return this.size = data.size, result; 35019 } 35020 module.exports = stackDelete; 35021 }, function(module, exports) { 35022 function stackGet(key) { 35023 return this.__data__.get(key); 35024 } 35025 module.exports = stackGet; 35026 }, function(module, exports) { 35027 function stackHas(key) { 35028 return this.__data__.has(key); 35029 } 35030 module.exports = stackHas; 35031 }, function(module, exports, __webpack_require__) { 35032 function stackSet(key, value) { 35033 var data = this.__data__; 35034 if (data instanceof ListCache) { 35035 var pairs = data.__data__; 35036 if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) return pairs.push([ key, value ]), 35037 this.size = ++data.size, this; 35038 data = this.__data__ = new MapCache(pairs); 35039 } 35040 return data.set(key, value), this.size = data.size, this; 35041 } 35042 var ListCache = __webpack_require__(126), Map = __webpack_require__(188), MapCache = __webpack_require__(190), LARGE_ARRAY_SIZE = 200; 35043 module.exports = stackSet; 35044 }, function(module, exports, __webpack_require__) { 35045 function baseIsNative(value) { 35046 return !(!isObject(value) || isMasked(value)) && (isFunction(value) ? reIsNative : reIsHostCtor).test(toSource(value)); 35047 } 35048 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.*?") + "$"); 35049 module.exports = baseIsNative; 35050 }, function(module, exports, __webpack_require__) { 35051 function getRawTag(value) { 35052 var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag]; 35053 try { 35054 value[symToStringTag] = void 0; 35055 var unmasked = !0; 35056 } catch (e) {} 35057 var result = nativeObjectToString.call(value); 35058 return unmasked && (isOwn ? value[symToStringTag] = tag : delete value[symToStringTag]), 35059 result; 35060 } 35061 var Symbol = __webpack_require__(128), objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty, nativeObjectToString = objectProto.toString, symToStringTag = Symbol ? Symbol.toStringTag : void 0; 35062 module.exports = getRawTag; 35063 }, function(module, exports) { 35064 function objectToString(value) { 35065 return nativeObjectToString.call(value); 35066 } 35067 var objectProto = Object.prototype, nativeObjectToString = objectProto.toString; 35068 module.exports = objectToString; 35069 }, function(module, exports, __webpack_require__) { 35070 function isMasked(func) { 35071 return !!maskSrcKey && maskSrcKey in func; 35072 } 35073 var coreJsData = __webpack_require__(672), maskSrcKey = function() { 35074 var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ""); 35075 return uid ? "Symbol(src)_1." + uid : ""; 35076 }(); 35077 module.exports = isMasked; 35078 }, function(module, exports, __webpack_require__) { 35079 var root = __webpack_require__(36), coreJsData = root["__core-js_shared__"]; 35080 module.exports = coreJsData; 35081 }, function(module, exports) { 35082 function getValue(object, key) { 35083 return null == object ? void 0 : object[key]; 35084 } 35085 module.exports = getValue; 35086 }, function(module, exports, __webpack_require__) { 35087 function mapCacheClear() { 35088 this.size = 0, this.__data__ = { 35089 hash: new Hash(), 35090 map: new (Map || ListCache)(), 35091 string: new Hash() 35092 }; 35093 } 35094 var Hash = __webpack_require__(675), ListCache = __webpack_require__(126), Map = __webpack_require__(188); 35095 module.exports = mapCacheClear; 35096 }, function(module, exports, __webpack_require__) { 35097 function Hash(entries) { 35098 var index = -1, length = null == entries ? 0 : entries.length; 35099 for (this.clear(); ++index < length; ) { 35100 var entry = entries[index]; 35101 this.set(entry[0], entry[1]); 35102 } 35103 } 35104 var hashClear = __webpack_require__(676), hashDelete = __webpack_require__(677), hashGet = __webpack_require__(678), hashHas = __webpack_require__(679), hashSet = __webpack_require__(680); 35105 Hash.prototype.clear = hashClear, Hash.prototype.delete = hashDelete, Hash.prototype.get = hashGet, 35106 Hash.prototype.has = hashHas, Hash.prototype.set = hashSet, module.exports = Hash; 35107 }, function(module, exports, __webpack_require__) { 35108 function hashClear() { 35109 this.__data__ = nativeCreate ? nativeCreate(null) : {}, this.size = 0; 35110 } 35111 var nativeCreate = __webpack_require__(129); 35112 module.exports = hashClear; 35113 }, function(module, exports) { 35114 function hashDelete(key) { 35115 var result = this.has(key) && delete this.__data__[key]; 35116 return this.size -= result ? 1 : 0, result; 35117 } 35118 module.exports = hashDelete; 35119 }, function(module, exports, __webpack_require__) { 35120 function hashGet(key) { 35121 var data = this.__data__; 35122 if (nativeCreate) { 35123 var result = data[key]; 35124 return result === HASH_UNDEFINED ? void 0 : result; 35125 } 35126 return hasOwnProperty.call(data, key) ? data[key] : void 0; 35127 } 35128 var nativeCreate = __webpack_require__(129), HASH_UNDEFINED = "__lodash_hash_undefined__", objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty; 35129 module.exports = hashGet; 35130 }, function(module, exports, __webpack_require__) { 35131 function hashHas(key) { 35132 var data = this.__data__; 35133 return nativeCreate ? void 0 !== data[key] : hasOwnProperty.call(data, key); 35134 } 35135 var nativeCreate = __webpack_require__(129), objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty; 35136 module.exports = hashHas; 35137 }, function(module, exports, __webpack_require__) { 35138 function hashSet(key, value) { 35139 var data = this.__data__; 35140 return this.size += this.has(key) ? 0 : 1, data[key] = nativeCreate && void 0 === value ? HASH_UNDEFINED : value, 35141 this; 35142 } 35143 var nativeCreate = __webpack_require__(129), HASH_UNDEFINED = "__lodash_hash_undefined__"; 35144 module.exports = hashSet; 35145 }, function(module, exports, __webpack_require__) { 35146 function mapCacheDelete(key) { 35147 var result = getMapData(this, key).delete(key); 35148 return this.size -= result ? 1 : 0, result; 35149 } 35150 var getMapData = __webpack_require__(130); 35151 module.exports = mapCacheDelete; 35152 }, function(module, exports) { 35153 function isKeyable(value) { 35154 var type = typeof value; 35155 return "string" == type || "number" == type || "symbol" == type || "boolean" == type ? "__proto__" !== value : null === value; 35156 } 35157 module.exports = isKeyable; 35158 }, function(module, exports, __webpack_require__) { 35159 function mapCacheGet(key) { 35160 return getMapData(this, key).get(key); 35161 } 35162 var getMapData = __webpack_require__(130); 35163 module.exports = mapCacheGet; 35164 }, function(module, exports, __webpack_require__) { 35165 function mapCacheHas(key) { 35166 return getMapData(this, key).has(key); 35167 } 35168 var getMapData = __webpack_require__(130); 35169 module.exports = mapCacheHas; 35170 }, function(module, exports, __webpack_require__) { 35171 function mapCacheSet(key, value) { 35172 var data = getMapData(this, key), size = data.size; 35173 return data.set(key, value), this.size += data.size == size ? 0 : 1, this; 35174 } 35175 var getMapData = __webpack_require__(130); 35176 module.exports = mapCacheSet; 35177 }, function(module, exports) { 35178 function setCacheAdd(value) { 35179 return this.__data__.set(value, HASH_UNDEFINED), this; 35180 } 35181 var HASH_UNDEFINED = "__lodash_hash_undefined__"; 35182 module.exports = setCacheAdd; 35183 }, function(module, exports) { 35184 function setCacheHas(value) { 35185 return this.__data__.has(value); 35186 } 35187 module.exports = setCacheHas; 35188 }, function(module, exports) { 35189 function arraySome(array, predicate) { 35190 for (var index = -1, length = null == array ? 0 : array.length; ++index < length; ) if (predicate(array[index], index, array)) return !0; 35191 return !1; 35192 } 35193 module.exports = arraySome; 35194 }, function(module, exports, __webpack_require__) { 35195 function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { 35196 switch (tag) { 35197 case dataViewTag: 35198 if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) return !1; 35199 object = object.buffer, other = other.buffer; 35200 35201 case arrayBufferTag: 35202 return !(object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))); 35203 35204 case boolTag: 35205 case dateTag: 35206 case numberTag: 35207 return eq(+object, +other); 35208 35209 case errorTag: 35210 return object.name == other.name && object.message == other.message; 35211 35212 case regexpTag: 35213 case stringTag: 35214 return object == other + ""; 35215 35216 case mapTag: 35217 var convert = mapToArray; 35218 35219 case setTag: 35220 var isPartial = bitmask & COMPARE_PARTIAL_FLAG; 35221 if (convert || (convert = setToArray), object.size != other.size && !isPartial) return !1; 35222 var stacked = stack.get(object); 35223 if (stacked) return stacked == other; 35224 bitmask |= COMPARE_UNORDERED_FLAG, stack.set(object, other); 35225 var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack); 35226 return stack.delete(object), result; 35227 35228 case symbolTag: 35229 if (symbolValueOf) return symbolValueOf.call(object) == symbolValueOf.call(other); 35230 } 35231 return !1; 35232 } 35233 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; 35234 module.exports = equalByTag; 35235 }, function(module, exports, __webpack_require__) { 35236 var root = __webpack_require__(36), Uint8Array = root.Uint8Array; 35237 module.exports = Uint8Array; 35238 }, function(module, exports) { 35239 function mapToArray(map) { 35240 var index = -1, result = Array(map.size); 35241 return map.forEach(function(value, key) { 35242 result[++index] = [ key, value ]; 35243 }), result; 35244 } 35245 module.exports = mapToArray; 35246 }, function(module, exports) { 35247 function setToArray(set) { 35248 var index = -1, result = Array(set.size); 35249 return set.forEach(function(value) { 35250 result[++index] = value; 35251 }), result; 35252 } 35253 module.exports = setToArray; 35254 }, function(module, exports, __webpack_require__) { 35255 function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { 35256 var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = getAllKeys(object), objLength = objProps.length; 35257 if (objLength != getAllKeys(other).length && !isPartial) return !1; 35258 for (var index = objLength; index--; ) { 35259 var key = objProps[index]; 35260 if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) return !1; 35261 } 35262 var stacked = stack.get(object); 35263 if (stacked && stack.get(other)) return stacked == other; 35264 var result = !0; 35265 stack.set(object, other), stack.set(other, object); 35266 for (var skipCtor = isPartial; ++index < objLength; ) { 35267 key = objProps[index]; 35268 var objValue = object[key], othValue = other[key]; 35269 if (customizer) var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack); 35270 if (!(void 0 === compared ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) { 35271 result = !1; 35272 break; 35273 } 35274 skipCtor || (skipCtor = "constructor" == key); 35275 } 35276 if (result && !skipCtor) { 35277 var objCtor = object.constructor, othCtor = other.constructor; 35278 objCtor != othCtor && "constructor" in object && "constructor" in other && !("function" == typeof objCtor && objCtor instanceof objCtor && "function" == typeof othCtor && othCtor instanceof othCtor) && (result = !1); 35279 } 35280 return stack.delete(object), stack.delete(other), result; 35281 } 35282 var getAllKeys = __webpack_require__(694), COMPARE_PARTIAL_FLAG = 1, objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty; 35283 module.exports = equalObjects; 35284 }, function(module, exports, __webpack_require__) { 35285 function getAllKeys(object) { 35286 return baseGetAllKeys(object, keys, getSymbols); 35287 } 35288 var baseGetAllKeys = __webpack_require__(695), getSymbols = __webpack_require__(697), keys = __webpack_require__(191); 35289 module.exports = getAllKeys; 35290 }, function(module, exports, __webpack_require__) { 35291 function baseGetAllKeys(object, keysFunc, symbolsFunc) { 35292 var result = keysFunc(object); 35293 return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); 35294 } 35295 var arrayPush = __webpack_require__(696), isArray = __webpack_require__(34); 35296 module.exports = baseGetAllKeys; 35297 }, function(module, exports) { 35298 function arrayPush(array, values) { 35299 for (var index = -1, length = values.length, offset = array.length; ++index < length; ) array[offset + index] = values[index]; 35300 return array; 35301 } 35302 module.exports = arrayPush; 35303 }, function(module, exports, __webpack_require__) { 35304 var arrayFilter = __webpack_require__(297), stubArray = __webpack_require__(698), objectProto = Object.prototype, propertyIsEnumerable = objectProto.propertyIsEnumerable, nativeGetSymbols = Object.getOwnPropertySymbols, getSymbols = nativeGetSymbols ? function(object) { 35305 return null == object ? [] : (object = Object(object), arrayFilter(nativeGetSymbols(object), function(symbol) { 35306 return propertyIsEnumerable.call(object, symbol); 35307 })); 35308 } : stubArray; 35309 module.exports = getSymbols; 35310 }, function(module, exports) { 35311 function stubArray() { 35312 return []; 35313 } 35314 module.exports = stubArray; 35315 }, function(module, exports, __webpack_require__) { 35316 function arrayLikeKeys(value, inherited) { 35317 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; 35318 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); 35319 return result; 35320 } 35321 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; 35322 module.exports = arrayLikeKeys; 35323 }, function(module, exports) { 35324 function baseTimes(n, iteratee) { 35325 for (var index = -1, result = Array(n); ++index < n; ) result[index] = iteratee(index); 35326 return result; 35327 } 35328 module.exports = baseTimes; 35329 }, function(module, exports, __webpack_require__) { 35330 function baseIsArguments(value) { 35331 return isObjectLike(value) && baseGetTag(value) == argsTag; 35332 } 35333 var baseGetTag = __webpack_require__(60), isObjectLike = __webpack_require__(43), argsTag = "[object Arguments]"; 35334 module.exports = baseIsArguments; 35335 }, function(module, exports) { 35336 function stubFalse() { 35337 return !1; 35338 } 35339 module.exports = stubFalse; 35340 }, function(module, exports, __webpack_require__) { 35341 function baseIsTypedArray(value) { 35342 return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; 35343 } 35344 var baseGetTag = __webpack_require__(60), isLength = __webpack_require__(192), isObjectLike = __webpack_require__(43), typedArrayTags = {}; 35345 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, 35346 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, 35347 module.exports = baseIsTypedArray; 35348 }, function(module, exports, __webpack_require__) { 35349 (function(module) { 35350 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() { 35351 try { 35352 return freeProcess && freeProcess.binding && freeProcess.binding("util"); 35353 } catch (e) {} 35354 }(); 35355 module.exports = nodeUtil; 35356 }).call(exports, __webpack_require__(131)(module)); 35357 }, function(module, exports, __webpack_require__) { 35358 function baseKeys(object) { 35359 if (!isPrototype(object)) return nativeKeys(object); 35360 var result = []; 35361 for (var key in Object(object)) hasOwnProperty.call(object, key) && "constructor" != key && result.push(key); 35362 return result; 35363 } 35364 var isPrototype = __webpack_require__(706), nativeKeys = __webpack_require__(707), objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty; 35365 module.exports = baseKeys; 35366 }, function(module, exports) { 35367 function isPrototype(value) { 35368 var Ctor = value && value.constructor; 35369 return value === ("function" == typeof Ctor && Ctor.prototype || objectProto); 35370 } 35371 var objectProto = Object.prototype; 35372 module.exports = isPrototype; 35373 }, function(module, exports, __webpack_require__) { 35374 var overArg = __webpack_require__(303), nativeKeys = overArg(Object.keys, Object); 35375 module.exports = nativeKeys; 35376 }, function(module, exports, __webpack_require__) { 35377 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; 35378 (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) { 35379 var result = baseGetTag(value), Ctor = "[object Object]" == result ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : ""; 35380 if (ctorString) switch (ctorString) { 35381 case dataViewCtorString: 35382 return "[object DataView]"; 35383 35384 case mapCtorString: 35385 return "[object Map]"; 35386 35387 case promiseCtorString: 35388 return "[object Promise]"; 35389 35390 case setCtorString: 35391 return "[object Set]"; 35392 35393 case weakMapCtorString: 35394 return "[object WeakMap]"; 35395 } 35396 return result; 35397 }), module.exports = getTag; 35398 }, function(module, exports, __webpack_require__) { 35399 var getNative = __webpack_require__(59), root = __webpack_require__(36), DataView = getNative(root, "DataView"); 35400 module.exports = DataView; 35401 }, function(module, exports, __webpack_require__) { 35402 var getNative = __webpack_require__(59), root = __webpack_require__(36), Promise = getNative(root, "Promise"); 35403 module.exports = Promise; 35404 }, function(module, exports, __webpack_require__) { 35405 var getNative = __webpack_require__(59), root = __webpack_require__(36), Set = getNative(root, "Set"); 35406 module.exports = Set; 35407 }, function(module, exports, __webpack_require__) { 35408 var getNative = __webpack_require__(59), root = __webpack_require__(36), WeakMap = getNative(root, "WeakMap"); 35409 module.exports = WeakMap; 35410 }, function(module, exports, __webpack_require__) { 35411 "use strict"; 35412 function _toArray(arr) { 35413 return Array.isArray(arr) ? arr : Array.from(arr); 35414 } 35415 function createAnimateManager() { 35416 var currStyle = {}, handleChange = function() { 35417 return null; 35418 }, shouldStop = !1, setStyle = function setStyle(_style) { 35419 if (!shouldStop) { 35420 if (Array.isArray(_style)) { 35421 if (!_style.length) return; 35422 var styles = _style, _styles = _toArray(styles), curr = _styles[0], restStyles = _styles.slice(1); 35423 return "number" == typeof curr ? void (0, _setRafTimeout2.default)(setStyle.bind(null, restStyles), curr) : (setStyle(curr), 35424 void (0, _setRafTimeout2.default)(setStyle.bind(null, restStyles))); 35425 } 35426 "object" === (void 0 === _style ? "undefined" : _typeof(_style)) && (currStyle = _style, 35427 handleChange(currStyle)), "function" == typeof _style && _style(); 35428 } 35429 }; 35430 return { 35431 stop: function() { 35432 shouldStop = !0; 35433 }, 35434 start: function(style) { 35435 shouldStop = !1, setStyle(style); 35436 }, 35437 subscribe: function(_handleChange) { 35438 return handleChange = _handleChange, function() { 35439 handleChange = function() { 35440 return null; 35441 }; 35442 }; 35443 } 35444 }; 35445 } 35446 Object.defineProperty(exports, "__esModule", { 35447 value: !0 35448 }); 35449 var _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj) { 35450 return typeof obj; 35451 } : function(obj) { 35452 return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 35453 }; 35454 exports.default = createAnimateManager; 35455 var _setRafTimeout = __webpack_require__(714), _setRafTimeout2 = function(obj) { 35456 return obj && obj.__esModule ? obj : { 35457 default: obj 35458 }; 35459 }(_setRafTimeout); 35460 }, function(module, exports, __webpack_require__) { 35461 "use strict"; 35462 function setRafTimeout(callback) { 35463 var timeout = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0, currTime = -1, shouldUpdate = function shouldUpdate(now) { 35464 currTime < 0 && (currTime = now), now - currTime > timeout ? (callback(now), currTime = -1) : (0, 35465 _raf2.default)(shouldUpdate); 35466 }; 35467 (0, _raf2.default)(shouldUpdate); 35468 } 35469 Object.defineProperty(exports, "__esModule", { 35470 value: !0 35471 }), exports.default = setRafTimeout; 35472 var _raf = __webpack_require__(304), _raf2 = function(obj) { 35473 return obj && obj.__esModule ? obj : { 35474 default: obj 35475 }; 35476 }(_raf); 35477 }, function(module, exports, __webpack_require__) { 35478 (function(process) { 35479 (function() { 35480 var getNanoSeconds, hrtime, loadTime, moduleLoadTime, nodeLoadTime, upTime; 35481 "undefined" != typeof performance && null !== performance && performance.now ? module.exports = function() { 35482 return performance.now(); 35483 } : void 0 !== process && null !== process && process.hrtime ? (module.exports = function() { 35484 return (getNanoSeconds() - nodeLoadTime) / 1e6; 35485 }, hrtime = process.hrtime, getNanoSeconds = function() { 35486 var hr; 35487 return hr = hrtime(), 1e9 * hr[0] + hr[1]; 35488 }, moduleLoadTime = getNanoSeconds(), upTime = 1e9 * process.uptime(), nodeLoadTime = moduleLoadTime - upTime) : Date.now ? (module.exports = function() { 35489 return Date.now() - loadTime; 35490 }, loadTime = Date.now()) : (module.exports = function() { 35491 return new Date().getTime() - loadTime; 35492 }, loadTime = new Date().getTime()); 35493 }).call(this); 35494 }).call(exports, __webpack_require__(2)); 35495 }, function(module, exports, __webpack_require__) { 35496 "use strict"; 35497 function _interopRequireDefault(obj) { 35498 return obj && obj.__esModule ? obj : { 35499 default: obj 35500 }; 35501 } 35502 function shallowEqual(objA, objB) { 35503 if (objA === objB) return !0; 35504 if ("object" !== (void 0 === objA ? "undefined" : _typeof(objA)) || null === objA || "object" !== (void 0 === objB ? "undefined" : _typeof(objB)) || null === objB) return !1; 35505 var keysA = Object.keys(objA), keysB = Object.keys(objB); 35506 if (keysA.length !== keysB.length) return !1; 35507 for (var bHasOwnProperty = hasOwnProperty.bind(objB), i = 0; i < keysA.length; i++) { 35508 var keyA = keysA[i]; 35509 if (objA[keyA] !== objB[keyA]) if ((0, _isArray3.default)(objA[keyA])) { 35510 if (!(0, _isArray3.default)(objB[keyA]) || objA[keyA].length !== objB[keyA].length) return !1; 35511 if (!(0, _isEqual3.default)(objA[keyA], objB[keyA])) return !1; 35512 } else if ((0, _isPlainObject3.default)(objA[keyA])) { 35513 if (!(0, _isPlainObject3.default)(objB[keyA]) || !(0, _isEqual3.default)(objA[keyA], objB[keyA])) return !1; 35514 } else if (!bHasOwnProperty(keysA[i]) || objA[keysA[i]] !== objB[keysA[i]]) return !1; 35515 } 35516 return !0; 35517 } 35518 function shallowCompare(instance, nextProps, nextState) { 35519 return !shallowEqual(instance.props, nextProps) || !shallowEqual(instance.state, nextState); 35520 } 35521 function shouldComponentUpdate(nextProps, nextState) { 35522 return shallowCompare(this, nextProps, nextState); 35523 } 35524 function pureRenderDecorator(component) { 35525 component.prototype.shouldComponentUpdate = shouldComponentUpdate; 35526 } 35527 Object.defineProperty(exports, "__esModule", { 35528 value: !0 35529 }), exports.shallowEqual = void 0; 35530 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) { 35531 return typeof obj; 35532 } : function(obj) { 35533 return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 35534 }; 35535 exports.shallowEqual = shallowEqual, exports.default = pureRenderDecorator; 35536 }, function(module, exports, __webpack_require__) { 35537 function isPlainObject(value) { 35538 if (!isObjectLike(value) || baseGetTag(value) != objectTag) return !1; 35539 var proto = getPrototype(value); 35540 if (null === proto) return !0; 35541 var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor; 35542 return "function" == typeof Ctor && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString; 35543 } 35544 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); 35545 module.exports = isPlainObject; 35546 }, function(module, exports, __webpack_require__) { 35547 var overArg = __webpack_require__(303), getPrototype = overArg(Object.getPrototypeOf, Object); 35548 module.exports = getPrototype; 35549 }, function(module, exports, __webpack_require__) { 35550 var arrayMap = __webpack_require__(194), baseIntersection = __webpack_require__(720), baseRest = __webpack_require__(727), castArrayLikeObject = __webpack_require__(735), intersection = baseRest(function(arrays) { 35551 var mapped = arrayMap(arrays, castArrayLikeObject); 35552 return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped) : []; 35553 }); 35554 module.exports = intersection; 35555 }, function(module, exports, __webpack_require__) { 35556 function baseIntersection(arrays, iteratee, comparator) { 35557 for (var includes = comparator ? arrayIncludesWith : arrayIncludes, length = arrays[0].length, othLength = arrays.length, othIndex = othLength, caches = Array(othLength), maxLength = 1 / 0, result = []; othIndex--; ) { 35558 var array = arrays[othIndex]; 35559 othIndex && iteratee && (array = arrayMap(array, baseUnary(iteratee))), maxLength = nativeMin(array.length, maxLength), 35560 caches[othIndex] = !comparator && (iteratee || length >= 120 && array.length >= 120) ? new SetCache(othIndex && array) : void 0; 35561 } 35562 array = arrays[0]; 35563 var index = -1, seen = caches[0]; 35564 outer: for (;++index < length && result.length < maxLength; ) { 35565 var value = array[index], computed = iteratee ? iteratee(value) : value; 35566 if (value = comparator || 0 !== value ? value : 0, !(seen ? cacheHas(seen, computed) : includes(result, computed, comparator))) { 35567 for (othIndex = othLength; --othIndex; ) { 35568 var cache = caches[othIndex]; 35569 if (!(cache ? cacheHas(cache, computed) : includes(arrays[othIndex], computed, comparator))) continue outer; 35570 } 35571 seen && seen.push(computed), result.push(value); 35572 } 35573 } 35574 return result; 35575 } 35576 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; 35577 module.exports = baseIntersection; 35578 }, function(module, exports, __webpack_require__) { 35579 function arrayIncludes(array, value) { 35580 return !!(null == array ? 0 : array.length) && baseIndexOf(array, value, 0) > -1; 35581 } 35582 var baseIndexOf = __webpack_require__(722); 35583 module.exports = arrayIncludes; 35584 }, function(module, exports, __webpack_require__) { 35585 function baseIndexOf(array, value, fromIndex) { 35586 return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex); 35587 } 35588 var baseFindIndex = __webpack_require__(723), baseIsNaN = __webpack_require__(724), strictIndexOf = __webpack_require__(725); 35589 module.exports = baseIndexOf; 35590 }, function(module, exports) { 35591 function baseFindIndex(array, predicate, fromIndex, fromRight) { 35592 for (var length = array.length, index = fromIndex + (fromRight ? 1 : -1); fromRight ? index-- : ++index < length; ) if (predicate(array[index], index, array)) return index; 35593 return -1; 35594 } 35595 module.exports = baseFindIndex; 35596 }, function(module, exports) { 35597 function baseIsNaN(value) { 35598 return value !== value; 35599 } 35600 module.exports = baseIsNaN; 35601 }, function(module, exports) { 35602 function strictIndexOf(array, value, fromIndex) { 35603 for (var index = fromIndex - 1, length = array.length; ++index < length; ) if (array[index] === value) return index; 35604 return -1; 35605 } 35606 module.exports = strictIndexOf; 35607 }, function(module, exports) { 35608 function arrayIncludesWith(array, value, comparator) { 35609 for (var index = -1, length = null == array ? 0 : array.length; ++index < length; ) if (comparator(value, array[index])) return !0; 35610 return !1; 35611 } 35612 module.exports = arrayIncludesWith; 35613 }, function(module, exports, __webpack_require__) { 35614 function baseRest(func, start) { 35615 return setToString(overRest(func, start, identity), func + ""); 35616 } 35617 var identity = __webpack_require__(195), overRest = __webpack_require__(728), setToString = __webpack_require__(730); 35618 module.exports = baseRest; 35619 }, function(module, exports, __webpack_require__) { 35620 function overRest(func, start, transform) { 35621 return start = nativeMax(void 0 === start ? func.length - 1 : start, 0), function() { 35622 for (var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length); ++index < length; ) array[index] = args[start + index]; 35623 index = -1; 35624 for (var otherArgs = Array(start + 1); ++index < start; ) otherArgs[index] = args[index]; 35625 return otherArgs[start] = transform(array), apply(func, this, otherArgs); 35626 }; 35627 } 35628 var apply = __webpack_require__(729), nativeMax = Math.max; 35629 module.exports = overRest; 35630 }, function(module, exports) { 35631 function apply(func, thisArg, args) { 35632 switch (args.length) { 35633 case 0: 35634 return func.call(thisArg); 35635 35636 case 1: 35637 return func.call(thisArg, args[0]); 35638 35639 case 2: 35640 return func.call(thisArg, args[0], args[1]); 35641 35642 case 3: 35643 return func.call(thisArg, args[0], args[1], args[2]); 35644 } 35645 return func.apply(thisArg, args); 35646 } 35647 module.exports = apply; 35648 }, function(module, exports, __webpack_require__) { 35649 var baseSetToString = __webpack_require__(731), shortOut = __webpack_require__(734), setToString = shortOut(baseSetToString); 35650 module.exports = setToString; 35651 }, function(module, exports, __webpack_require__) { 35652 var constant = __webpack_require__(732), defineProperty = __webpack_require__(733), identity = __webpack_require__(195), baseSetToString = defineProperty ? function(func, string) { 35653 return defineProperty(func, "toString", { 35654 configurable: !0, 35655 enumerable: !1, 35656 value: constant(string), 35657 writable: !0 35658 }); 35659 } : identity; 35660 module.exports = baseSetToString; 35661 }, function(module, exports) { 35662 function constant(value) { 35663 return function() { 35664 return value; 35665 }; 35666 } 35667 module.exports = constant; 35668 }, function(module, exports, __webpack_require__) { 35669 var getNative = __webpack_require__(59), defineProperty = function() { 35670 try { 35671 var func = getNative(Object, "defineProperty"); 35672 return func({}, "", {}), func; 35673 } catch (e) {} 35674 }(); 35675 module.exports = defineProperty; 35676 }, function(module, exports) { 35677 function shortOut(func) { 35678 var count = 0, lastCalled = 0; 35679 return function() { 35680 var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled); 35681 if (lastCalled = stamp, remaining > 0) { 35682 if (++count >= HOT_COUNT) return arguments[0]; 35683 } else count = 0; 35684 return func.apply(void 0, arguments); 35685 }; 35686 } 35687 var HOT_COUNT = 800, HOT_SPAN = 16, nativeNow = Date.now; 35688 module.exports = shortOut; 35689 }, function(module, exports, __webpack_require__) { 35690 function castArrayLikeObject(value) { 35691 return isArrayLikeObject(value) ? value : []; 35692 } 35693 var isArrayLikeObject = __webpack_require__(736); 35694 module.exports = castArrayLikeObject; 35695 }, function(module, exports, __webpack_require__) { 35696 function isArrayLikeObject(value) { 35697 return isObjectLike(value) && isArrayLike(value); 35698 } 35699 var isArrayLike = __webpack_require__(193), isObjectLike = __webpack_require__(43); 35700 module.exports = isArrayLikeObject; 35701 }, function(module, exports, __webpack_require__) { 35702 "use strict"; 35703 function _interopRequireDefault(obj) { 35704 return obj && obj.__esModule ? obj : { 35705 default: obj 35706 }; 35707 } 35708 function _toConsumableArray(arr) { 35709 if (Array.isArray(arr)) { 35710 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; 35711 return arr2; 35712 } 35713 return Array.from(arr); 35714 } 35715 function _defineProperty(obj, key, value) { 35716 return key in obj ? Object.defineProperty(obj, key, { 35717 value: value, 35718 enumerable: !0, 35719 configurable: !0, 35720 writable: !0 35721 }) : obj[key] = value, obj; 35722 } 35723 Object.defineProperty(exports, "__esModule", { 35724 value: !0 35725 }); 35726 var _filter2 = __webpack_require__(738), _filter3 = _interopRequireDefault(_filter2), _extends = Object.assign || function(target) { 35727 for (var i = 1; i < arguments.length; i++) { 35728 var source = arguments[i]; 35729 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 35730 } 35731 return target; 35732 }, _slicedToArray = function() { 35733 function sliceIterator(arr, i) { 35734 var _arr = [], _n = !0, _d = !1, _e = void 0; 35735 try { 35736 for (var _s, _i = arr[Symbol.iterator](); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), 35737 !i || _arr.length !== i); _n = !0) ; 35738 } catch (err) { 35739 _d = !0, _e = err; 35740 } finally { 35741 try { 35742 !_n && _i.return && _i.return(); 35743 } finally { 35744 if (_d) throw _e; 35745 } 35746 } 35747 return _arr; 35748 } 35749 return function(arr, i) { 35750 if (Array.isArray(arr)) return arr; 35751 if (Symbol.iterator in Object(arr)) return sliceIterator(arr, i); 35752 throw new TypeError("Invalid attempt to destructure non-iterable instance"); 35753 }; 35754 }(), _raf = __webpack_require__(304), _raf2 = _interopRequireDefault(_raf), _util = __webpack_require__(132), alpha = function(begin, end, k) { 35755 return begin + (end - begin) * k; 35756 }, needContinue = function(_ref) { 35757 return _ref.from !== _ref.to; 35758 }, calStepperVals = function calStepperVals(easing, preVals, steps) { 35759 var nextStepVals = (0, _util.mapObject)(function(key, val) { 35760 if (needContinue(val)) { 35761 var _easing = easing(val.from, val.to, val.velocity), _easing2 = _slicedToArray(_easing, 2), newX = _easing2[0], newV = _easing2[1]; 35762 return _extends({}, val, { 35763 from: newX, 35764 velocity: newV 35765 }); 35766 } 35767 return val; 35768 }, preVals); 35769 return steps < 1 ? (0, _util.mapObject)(function(key, val) { 35770 return needContinue(val) ? _extends({}, val, { 35771 velocity: alpha(val.velocity, nextStepVals[key].velocity, steps), 35772 from: alpha(val.from, nextStepVals[key].from, steps) 35773 }) : val; 35774 }, preVals) : calStepperVals(easing, nextStepVals, steps - 1); 35775 }; 35776 exports.default = function(from, to, easing, duration, render) { 35777 var interKeys = (0, _util.getIntersectionKeys)(from, to), timingStyle = interKeys.reduce(function(res, key) { 35778 return _extends({}, res, _defineProperty({}, key, [ from[key], to[key] ])); 35779 }, {}), stepperStyle = interKeys.reduce(function(res, key) { 35780 return _extends({}, res, _defineProperty({}, key, { 35781 from: from[key], 35782 velocity: 0, 35783 to: to[key] 35784 })); 35785 }, {}), cafId = -1, preTime = void 0, beginTime = void 0, update = function() { 35786 return null; 35787 }, getCurrStyle = function() { 35788 return (0, _util.mapObject)(function(key, val) { 35789 return val.from; 35790 }, stepperStyle); 35791 }, shouldStopAnimation = function() { 35792 return !(0, _filter3.default)(stepperStyle, needContinue).length; 35793 }, stepperUpdate = function(now) { 35794 preTime || (preTime = now); 35795 var deltaTime = now - preTime, steps = deltaTime / easing.dt; 35796 stepperStyle = calStepperVals(easing, stepperStyle, steps), render(_extends({}, from, to, getCurrStyle())), 35797 preTime = now, shouldStopAnimation() || (cafId = (0, _raf2.default)(update)); 35798 }, timingUpdate = function(now) { 35799 beginTime || (beginTime = now); 35800 var t = (now - beginTime) / duration, currStyle = (0, _util.mapObject)(function(key, val) { 35801 return alpha.apply(void 0, _toConsumableArray(val).concat([ easing(t) ])); 35802 }, timingStyle); 35803 if (render(_extends({}, from, to, currStyle)), t < 1) cafId = (0, _raf2.default)(update); else { 35804 var finalStyle = (0, _util.mapObject)(function(key, val) { 35805 return alpha.apply(void 0, _toConsumableArray(val).concat([ easing(1) ])); 35806 }, timingStyle); 35807 render(_extends({}, from, to, finalStyle)); 35808 } 35809 }; 35810 return update = easing.isStepper ? stepperUpdate : timingUpdate, function() { 35811 return (0, _raf2.default)(update), function() { 35812 (0, _raf.cancel)(cafId); 35813 }; 35814 }; 35815 }; 35816 }, function(module, exports, __webpack_require__) { 35817 function filter(collection, predicate) { 35818 return (isArray(collection) ? arrayFilter : baseFilter)(collection, baseIteratee(predicate, 3)); 35819 } 35820 var arrayFilter = __webpack_require__(297), baseFilter = __webpack_require__(739), baseIteratee = __webpack_require__(745), isArray = __webpack_require__(34); 35821 module.exports = filter; 35822 }, function(module, exports, __webpack_require__) { 35823 function baseFilter(collection, predicate) { 35824 var result = []; 35825 return baseEach(collection, function(value, index, collection) { 35826 predicate(value, index, collection) && result.push(value); 35827 }), result; 35828 } 35829 var baseEach = __webpack_require__(740); 35830 module.exports = baseFilter; 35831 }, function(module, exports, __webpack_require__) { 35832 var baseForOwn = __webpack_require__(741), createBaseEach = __webpack_require__(744), baseEach = createBaseEach(baseForOwn); 35833 module.exports = baseEach; 35834 }, function(module, exports, __webpack_require__) { 35835 function baseForOwn(object, iteratee) { 35836 return object && baseFor(object, iteratee, keys); 35837 } 35838 var baseFor = __webpack_require__(742), keys = __webpack_require__(191); 35839 module.exports = baseForOwn; 35840 }, function(module, exports, __webpack_require__) { 35841 var createBaseFor = __webpack_require__(743), baseFor = createBaseFor(); 35842 module.exports = baseFor; 35843 }, function(module, exports) { 35844 function createBaseFor(fromRight) { 35845 return function(object, iteratee, keysFunc) { 35846 for (var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length; length--; ) { 35847 var key = props[fromRight ? length : ++index]; 35848 if (!1 === iteratee(iterable[key], key, iterable)) break; 35849 } 35850 return object; 35851 }; 35852 } 35853 module.exports = createBaseFor; 35854 }, function(module, exports, __webpack_require__) { 35855 function createBaseEach(eachFunc, fromRight) { 35856 return function(collection, iteratee) { 35857 if (null == collection) return collection; 35858 if (!isArrayLike(collection)) return eachFunc(collection, iteratee); 35859 for (var length = collection.length, index = fromRight ? length : -1, iterable = Object(collection); (fromRight ? index-- : ++index < length) && !1 !== iteratee(iterable[index], index, iterable); ) ; 35860 return collection; 35861 }; 35862 } 35863 var isArrayLike = __webpack_require__(193); 35864 module.exports = createBaseEach; 35865 }, function(module, exports, __webpack_require__) { 35866 function baseIteratee(value) { 35867 return "function" == typeof value ? value : null == value ? identity : "object" == typeof value ? isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value) : property(value); 35868 } 35869 var baseMatches = __webpack_require__(746), baseMatchesProperty = __webpack_require__(749), identity = __webpack_require__(195), isArray = __webpack_require__(34), property = __webpack_require__(759); 35870 module.exports = baseIteratee; 35871 }, function(module, exports, __webpack_require__) { 35872 function baseMatches(source) { 35873 var matchData = getMatchData(source); 35874 return 1 == matchData.length && matchData[0][2] ? matchesStrictComparable(matchData[0][0], matchData[0][1]) : function(object) { 35875 return object === source || baseIsMatch(object, source, matchData); 35876 }; 35877 } 35878 var baseIsMatch = __webpack_require__(747), getMatchData = __webpack_require__(748), matchesStrictComparable = __webpack_require__(307); 35879 module.exports = baseMatches; 35880 }, function(module, exports, __webpack_require__) { 35881 function baseIsMatch(object, source, matchData, customizer) { 35882 var index = matchData.length, length = index, noCustomizer = !customizer; 35883 if (null == object) return !length; 35884 for (object = Object(object); index--; ) { 35885 var data = matchData[index]; 35886 if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) return !1; 35887 } 35888 for (;++index < length; ) { 35889 data = matchData[index]; 35890 var key = data[0], objValue = object[key], srcValue = data[1]; 35891 if (noCustomizer && data[2]) { 35892 if (void 0 === objValue && !(key in object)) return !1; 35893 } else { 35894 var stack = new Stack(); 35895 if (customizer) var result = customizer(objValue, srcValue, key, object, source, stack); 35896 if (!(void 0 === result ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) : result)) return !1; 35897 } 35898 } 35899 return !0; 35900 } 35901 var Stack = __webpack_require__(289), baseIsEqual = __webpack_require__(187), COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; 35902 module.exports = baseIsMatch; 35903 }, function(module, exports, __webpack_require__) { 35904 function getMatchData(object) { 35905 for (var result = keys(object), length = result.length; length--; ) { 35906 var key = result[length], value = object[key]; 35907 result[length] = [ key, value, isStrictComparable(value) ]; 35908 } 35909 return result; 35910 } 35911 var isStrictComparable = __webpack_require__(306), keys = __webpack_require__(191); 35912 module.exports = getMatchData; 35913 }, function(module, exports, __webpack_require__) { 35914 function baseMatchesProperty(path, srcValue) { 35915 return isKey(path) && isStrictComparable(srcValue) ? matchesStrictComparable(toKey(path), srcValue) : function(object) { 35916 var objValue = get(object, path); 35917 return void 0 === objValue && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG); 35918 }; 35919 } 35920 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; 35921 module.exports = baseMatchesProperty; 35922 }, function(module, exports, __webpack_require__) { 35923 function get(object, path, defaultValue) { 35924 var result = null == object ? void 0 : baseGet(object, path); 35925 return void 0 === result ? defaultValue : result; 35926 } 35927 var baseGet = __webpack_require__(308); 35928 module.exports = get; 35929 }, function(module, exports, __webpack_require__) { 35930 var memoizeCapped = __webpack_require__(752), rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, reEscapeChar = /\\(\\)?/g, stringToPath = memoizeCapped(function(string) { 35931 var result = []; 35932 return 46 === string.charCodeAt(0) && result.push(""), string.replace(rePropName, function(match, number, quote, subString) { 35933 result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match); 35934 }), result; 35935 }); 35936 module.exports = stringToPath; 35937 }, function(module, exports, __webpack_require__) { 35938 function memoizeCapped(func) { 35939 var result = memoize(func, function(key) { 35940 return cache.size === MAX_MEMOIZE_SIZE && cache.clear(), key; 35941 }), cache = result.cache; 35942 return result; 35943 } 35944 var memoize = __webpack_require__(753), MAX_MEMOIZE_SIZE = 500; 35945 module.exports = memoizeCapped; 35946 }, function(module, exports, __webpack_require__) { 35947 function memoize(func, resolver) { 35948 if ("function" != typeof func || null != resolver && "function" != typeof resolver) throw new TypeError(FUNC_ERROR_TEXT); 35949 var memoized = function() { 35950 var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache; 35951 if (cache.has(key)) return cache.get(key); 35952 var result = func.apply(this, args); 35953 return memoized.cache = cache.set(key, result) || cache, result; 35954 }; 35955 return memoized.cache = new (memoize.Cache || MapCache)(), memoized; 35956 } 35957 var MapCache = __webpack_require__(190), FUNC_ERROR_TEXT = "Expected a function"; 35958 memoize.Cache = MapCache, module.exports = memoize; 35959 }, function(module, exports, __webpack_require__) { 35960 function toString(value) { 35961 return null == value ? "" : baseToString(value); 35962 } 35963 var baseToString = __webpack_require__(755); 35964 module.exports = toString; 35965 }, function(module, exports, __webpack_require__) { 35966 function baseToString(value) { 35967 if ("string" == typeof value) return value; 35968 if (isArray(value)) return arrayMap(value, baseToString) + ""; 35969 if (isSymbol(value)) return symbolToString ? symbolToString.call(value) : ""; 35970 var result = value + ""; 35971 return "0" == result && 1 / value == -INFINITY ? "-0" : result; 35972 } 35973 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; 35974 module.exports = baseToString; 35975 }, function(module, exports, __webpack_require__) { 35976 function hasIn(object, path) { 35977 return null != object && hasPath(object, path, baseHasIn); 35978 } 35979 var baseHasIn = __webpack_require__(757), hasPath = __webpack_require__(758); 35980 module.exports = hasIn; 35981 }, function(module, exports) { 35982 function baseHasIn(object, key) { 35983 return null != object && key in Object(object); 35984 } 35985 module.exports = baseHasIn; 35986 }, function(module, exports, __webpack_require__) { 35987 function hasPath(object, path, hasFunc) { 35988 path = castPath(path, object); 35989 for (var index = -1, length = path.length, result = !1; ++index < length; ) { 35990 var key = toKey(path[index]); 35991 if (!(result = null != object && hasFunc(object, key))) break; 35992 object = object[key]; 35993 } 35994 return result || ++index != length ? result : !!(length = null == object ? 0 : object.length) && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object)); 35995 } 35996 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); 35997 module.exports = hasPath; 35998 }, function(module, exports, __webpack_require__) { 35999 function property(path) { 36000 return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path); 36001 } 36002 var baseProperty = __webpack_require__(760), basePropertyDeep = __webpack_require__(761), isKey = __webpack_require__(196), toKey = __webpack_require__(133); 36003 module.exports = property; 36004 }, function(module, exports) { 36005 function baseProperty(key) { 36006 return function(object) { 36007 return null == object ? void 0 : object[key]; 36008 }; 36009 } 36010 module.exports = baseProperty; 36011 }, function(module, exports, __webpack_require__) { 36012 function basePropertyDeep(path) { 36013 return function(object) { 36014 return baseGet(object, path); 36015 }; 36016 } 36017 var baseGet = __webpack_require__(308); 36018 module.exports = basePropertyDeep; 36019 }, function(module, exports, __webpack_require__) { 36020 "use strict"; 36021 function _interopRequireDefault(obj) { 36022 return obj && obj.__esModule ? obj : { 36023 default: obj 36024 }; 36025 } 36026 function _classCallCheck(instance, Constructor) { 36027 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 36028 } 36029 function _possibleConstructorReturn(self, call) { 36030 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 36031 return !call || "object" != typeof call && "function" != typeof call ? self : call; 36032 } 36033 function _inherits(subClass, superClass) { 36034 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 36035 subClass.prototype = Object.create(superClass && superClass.prototype, { 36036 constructor: { 36037 value: subClass, 36038 enumerable: !1, 36039 writable: !0, 36040 configurable: !0 36041 } 36042 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 36043 } 36044 Object.defineProperty(exports, "__esModule", { 36045 value: !0 36046 }); 36047 var _class, _temp, _createClass = function() { 36048 function defineProperties(target, props) { 36049 for (var i = 0; i < props.length; i++) { 36050 var descriptor = props[i]; 36051 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 36052 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 36053 } 36054 } 36055 return function(Constructor, protoProps, staticProps) { 36056 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 36057 Constructor; 36058 }; 36059 }(), _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) { 36060 function AnimateGroup() { 36061 return _classCallCheck(this, AnimateGroup), _possibleConstructorReturn(this, (AnimateGroup.__proto__ || Object.getPrototypeOf(AnimateGroup)).apply(this, arguments)); 36062 } 36063 return _inherits(AnimateGroup, _Component), _createClass(AnimateGroup, [ { 36064 key: "render", 36065 value: function() { 36066 var _props = this.props, component = _props.component, children = _props.children, appear = _props.appear, enter = _props.enter, leave = _props.leave; 36067 return _react2.default.createElement(_TransitionGroup2.default, { 36068 component: component 36069 }, _react.Children.map(children, function(child, index) { 36070 return _react2.default.createElement(_AnimateGroupChild2.default, { 36071 appearOptions: appear, 36072 enterOptions: enter, 36073 leaveOptions: leave, 36074 key: "child-" + index 36075 }, child); 36076 })); 36077 } 36078 } ]), AnimateGroup; 36079 }(_react.Component), _class.propTypes = { 36080 appear: _propTypes2.default.object, 36081 enter: _propTypes2.default.object, 36082 leave: _propTypes2.default.object, 36083 children: _propTypes2.default.oneOfType([ _propTypes2.default.array, _propTypes2.default.element ]), 36084 component: _propTypes2.default.any 36085 }, _class.defaultProps = { 36086 component: "span" 36087 }, _temp); 36088 exports.default = AnimateGroup; 36089 }, function(module, exports, __webpack_require__) { 36090 "use strict"; 36091 function _interopRequireDefault(obj) { 36092 return obj && obj.__esModule ? obj : { 36093 default: obj 36094 }; 36095 } 36096 function _objectWithoutProperties(obj, keys) { 36097 var target = {}; 36098 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 36099 return target; 36100 } 36101 function _classCallCheck(instance, Constructor) { 36102 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 36103 } 36104 function _possibleConstructorReturn(self, call) { 36105 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 36106 return !call || "object" != typeof call && "function" != typeof call ? self : call; 36107 } 36108 function _inherits(subClass, superClass) { 36109 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 36110 subClass.prototype = Object.create(superClass && superClass.prototype, { 36111 constructor: { 36112 value: subClass, 36113 enumerable: !1, 36114 writable: !0, 36115 configurable: !0 36116 } 36117 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 36118 } 36119 Object.defineProperty(exports, "__esModule", { 36120 value: !0 36121 }); 36122 var _class, _temp2, _isNumber2 = __webpack_require__(764), _isNumber3 = _interopRequireDefault(_isNumber2), _extends = Object.assign || function(target) { 36123 for (var i = 1; i < arguments.length; i++) { 36124 var source = arguments[i]; 36125 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 36126 } 36127 return target; 36128 }, _createClass = function() { 36129 function defineProperties(target, props) { 36130 for (var i = 0; i < props.length; i++) { 36131 var descriptor = props[i]; 36132 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 36133 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 36134 } 36135 } 36136 return function(Constructor, protoProps, staticProps) { 36137 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 36138 Constructor; 36139 }; 36140 }(), _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() { 36141 var options = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, steps = options.steps, duration = options.duration; 36142 return steps && steps.length ? steps.reduce(function(result, entry) { 36143 return result + ((0, _isNumber3.default)(entry.duration) && entry.duration > 0 ? entry.duration : 0); 36144 }, 0) : (0, _isNumber3.default)(duration) ? duration : 0; 36145 }, AnimateGroupChild = (_temp2 = _class = function(_Component) { 36146 function AnimateGroupChild() { 36147 var _ref, _temp, _this, _ret; 36148 _classCallCheck(this, AnimateGroupChild); 36149 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 36150 return _temp = _this = _possibleConstructorReturn(this, (_ref = AnimateGroupChild.__proto__ || Object.getPrototypeOf(AnimateGroupChild)).call.apply(_ref, [ this ].concat(args))), 36151 _this.state = { 36152 isActive: !1 36153 }, _this.handleEnter = function(node, isAppearing) { 36154 var _this$props = _this.props, appearOptions = _this$props.appearOptions, enterOptions = _this$props.enterOptions; 36155 _this.handleStyleActive(isAppearing ? appearOptions : enterOptions); 36156 }, _this.handleExit = function() { 36157 _this.handleStyleActive(_this.props.leaveOptions); 36158 }, _ret = _temp, _possibleConstructorReturn(_this, _ret); 36159 } 36160 return _inherits(AnimateGroupChild, _Component), _createClass(AnimateGroupChild, [ { 36161 key: "handleStyleActive", 36162 value: function(style) { 36163 if (style) { 36164 var onAnimationEnd = style.onAnimationEnd ? function() { 36165 style.onAnimationEnd(); 36166 } : null; 36167 this.setState(_extends({}, style, { 36168 onAnimationEnd: onAnimationEnd, 36169 isActive: !0 36170 })); 36171 } 36172 } 36173 }, { 36174 key: "parseTimeout", 36175 value: function() { 36176 var _props = this.props, appearOptions = _props.appearOptions, enterOptions = _props.enterOptions, leaveOptions = _props.leaveOptions; 36177 return parseDurationOfSingleTransition(appearOptions) + parseDurationOfSingleTransition(enterOptions) + parseDurationOfSingleTransition(leaveOptions); 36178 } 36179 }, { 36180 key: "render", 36181 value: function() { 36182 var _this2 = this, _props2 = this.props, children = _props2.children, props = (_props2.appearOptions, 36183 _props2.enterOptions, _props2.leaveOptions, _objectWithoutProperties(_props2, [ "children", "appearOptions", "enterOptions", "leaveOptions" ])); 36184 return _react2.default.createElement(_Transition2.default, _extends({}, props, { 36185 onEnter: this.handleEnter, 36186 onExit: this.handleExit, 36187 timeout: this.parseTimeout() 36188 }), function(transitionState) { 36189 return _react2.default.createElement(_Animate2.default, _this2.state, _react.Children.only(children)); 36190 }); 36191 } 36192 } ]), AnimateGroupChild; 36193 }(_react.Component), _class.propTypes = { 36194 appearOptions: _propTypes2.default.object, 36195 enterOptions: _propTypes2.default.object, 36196 leaveOptions: _propTypes2.default.object, 36197 children: _propTypes2.default.element 36198 }, _temp2); 36199 exports.default = AnimateGroupChild; 36200 }, function(module, exports, __webpack_require__) { 36201 function isNumber(value) { 36202 return "number" == typeof value || isObjectLike(value) && baseGetTag(value) == numberTag; 36203 } 36204 var baseGetTag = __webpack_require__(60), isObjectLike = __webpack_require__(43), numberTag = "[object Number]"; 36205 module.exports = isNumber; 36206 }, function(module, __webpack_exports__, __webpack_require__) { 36207 "use strict"; 36208 function _classCallCheck(instance, Constructor) { 36209 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 36210 } 36211 function _possibleConstructorReturn(self, call) { 36212 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 36213 return !call || "object" != typeof call && "function" != typeof call ? self : call; 36214 } 36215 function _inherits(subClass, superClass) { 36216 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 36217 subClass.prototype = Object.create(superClass && superClass.prototype, { 36218 constructor: { 36219 value: subClass, 36220 enumerable: !1, 36221 writable: !0, 36222 configurable: !0 36223 } 36224 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 36225 } 36226 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) { 36227 for (var i = 1; i < arguments.length; i++) { 36228 var source = arguments[i]; 36229 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 36230 } 36231 return target; 36232 }, _createClass = function() { 36233 function defineProperties(target, props) { 36234 for (var i = 0; i < props.length; i++) { 36235 var descriptor = props[i]; 36236 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 36237 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 36238 } 36239 } 36240 return function(Constructor, protoProps, staticProps) { 36241 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 36242 Constructor; 36243 }; 36244 }(), defaultFormatter = function(value) { 36245 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; 36246 }, DefaultTooltipContent = Object(__WEBPACK_IMPORTED_MODULE_3__util_PureRender__.a)((_temp = _class2 = function(_Component) { 36247 function DefaultTooltipContent() { 36248 return _classCallCheck(this, DefaultTooltipContent), _possibleConstructorReturn(this, (DefaultTooltipContent.__proto__ || Object.getPrototypeOf(DefaultTooltipContent)).apply(this, arguments)); 36249 } 36250 return _inherits(DefaultTooltipContent, _Component), _createClass(DefaultTooltipContent, [ { 36251 key: "renderContent", 36252 value: function() { 36253 var _props = this.props, payload = _props.payload, separator = _props.separator, formatter = _props.formatter, itemStyle = _props.itemStyle, itemSorter = _props.itemSorter; 36254 if (payload && payload.length) { 36255 var listStyle = { 36256 padding: 0, 36257 margin: 0 36258 }, items = payload.sort(itemSorter).map(function(entry, i) { 36259 var finalItemStyle = _extends({ 36260 display: "block", 36261 paddingTop: 4, 36262 paddingBottom: 4, 36263 color: entry.color || "#000" 36264 }, itemStyle), hasName = Object(__WEBPACK_IMPORTED_MODULE_4__util_DataUtils__.g)(entry.name), finalFormatter = entry.formatter || formatter || defaultFormatter; 36265 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("li", { 36266 className: "recharts-tooltip-item", 36267 key: "tooltip-item-" + i, 36268 style: finalItemStyle 36269 }, hasName ? __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("span", { 36270 className: "recharts-tooltip-item-name" 36271 }, entry.name) : null, hasName ? __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("span", { 36272 className: "recharts-tooltip-item-separator" 36273 }, separator) : null, __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("span", { 36274 className: "recharts-tooltip-item-value" 36275 }, finalFormatter ? finalFormatter(entry.value, entry.name, entry, i) : entry.value), __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("span", { 36276 className: "recharts-tooltip-item-unit" 36277 }, entry.unit || "")); 36278 }); 36279 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("ul", { 36280 className: "recharts-tooltip-item-list", 36281 style: listStyle 36282 }, items); 36283 } 36284 return null; 36285 } 36286 }, { 36287 key: "render", 36288 value: function() { 36289 var _props2 = this.props, labelStyle = _props2.labelStyle, label = _props2.label, labelFormatter = _props2.labelFormatter, wrapperStyle = _props2.wrapperStyle, finalStyle = _extends({ 36290 margin: 0, 36291 padding: 10, 36292 backgroundColor: "#fff", 36293 border: "1px solid #ccc", 36294 whiteSpace: "nowrap" 36295 }, wrapperStyle), finalLabelStyle = _extends({ 36296 margin: 0 36297 }, labelStyle), hasLabel = Object(__WEBPACK_IMPORTED_MODULE_4__util_DataUtils__.g)(label), finalLabel = hasLabel ? label : ""; 36298 return hasLabel && labelFormatter && (finalLabel = labelFormatter(label)), __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("div", { 36299 className: "recharts-default-tooltip", 36300 style: finalStyle 36301 }, __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("p", { 36302 className: "recharts-tooltip-label", 36303 style: finalLabelStyle 36304 }, finalLabel), this.renderContent()); 36305 } 36306 } ]), DefaultTooltipContent; 36307 }(__WEBPACK_IMPORTED_MODULE_1_react__.Component), _class2.displayName = "DefaultTooltipContent", 36308 _class2.propTypes = { 36309 separator: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, 36310 formatter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, 36311 wrapperStyle: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object, 36312 itemStyle: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object, 36313 labelStyle: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object, 36314 labelFormatter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, 36315 label: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.any, 36316 payload: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.shape({ 36317 name: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.any, 36318 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 ]), 36319 unit: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.any 36320 })), 36321 itemSorter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func 36322 }, _class2.defaultProps = { 36323 separator: " : ", 36324 itemStyle: {}, 36325 labelStyle: {} 36326 }, _class = _temp)) || _class; 36327 __webpack_exports__.a = DefaultTooltipContent; 36328 }, function(module, __webpack_exports__, __webpack_require__) { 36329 "use strict"; 36330 function _classCallCheck(instance, Constructor) { 36331 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 36332 } 36333 function _possibleConstructorReturn(self, call) { 36334 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 36335 return !call || "object" != typeof call && "function" != typeof call ? self : call; 36336 } 36337 function _inherits(subClass, superClass) { 36338 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 36339 subClass.prototype = Object.create(superClass && superClass.prototype, { 36340 constructor: { 36341 value: subClass, 36342 enumerable: !1, 36343 writable: !0, 36344 configurable: !0 36345 } 36346 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 36347 } 36348 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() { 36349 function defineProperties(target, props) { 36350 for (var i = 0; i < props.length; i++) { 36351 var descriptor = props[i]; 36352 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 36353 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 36354 } 36355 } 36356 return function(Constructor, protoProps, staticProps) { 36357 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 36358 Constructor; 36359 }; 36360 }(), ResponsiveContainer = (_temp = _class = function(_Component) { 36361 function ResponsiveContainer(props) { 36362 _classCallCheck(this, ResponsiveContainer); 36363 var _this = _possibleConstructorReturn(this, (ResponsiveContainer.__proto__ || Object.getPrototypeOf(ResponsiveContainer)).call(this, props)); 36364 return _this.updateDimensionsImmediate = function() { 36365 if (_this.mounted) { 36366 var newSize = _this.getContainerSize(); 36367 if (newSize) { 36368 var _this$state = _this.state, oldWidth = _this$state.containerWidth, oldHeight = _this$state.containerHeight, containerWidth = newSize.containerWidth, containerHeight = newSize.containerHeight; 36369 containerWidth === oldWidth && containerHeight === oldHeight || _this.setState({ 36370 containerWidth: containerWidth, 36371 containerHeight: containerHeight 36372 }); 36373 } 36374 } 36375 }, _this.state = { 36376 containerWidth: -1, 36377 containerHeight: -1 36378 }, _this.handleResize = props.debounce > 0 ? __WEBPACK_IMPORTED_MODULE_0_lodash_debounce___default()(_this.updateDimensionsImmediate, props.debounce) : _this.updateDimensionsImmediate, 36379 _this; 36380 } 36381 return _inherits(ResponsiveContainer, _Component), _createClass(ResponsiveContainer, [ { 36382 key: "componentDidMount", 36383 value: function() { 36384 this.mounted = !0; 36385 var size = this.getContainerSize(); 36386 size && this.setState(size); 36387 } 36388 }, { 36389 key: "componentWillUnmount", 36390 value: function() { 36391 this.mounted = !1; 36392 } 36393 }, { 36394 key: "getContainerSize", 36395 value: function() { 36396 return this.container ? { 36397 containerWidth: this.container.clientWidth, 36398 containerHeight: this.container.clientHeight 36399 } : null; 36400 } 36401 }, { 36402 key: "renderChart", 36403 value: function() { 36404 var _state = this.state, containerWidth = _state.containerWidth, containerHeight = _state.containerHeight; 36405 if (containerWidth < 0 || containerHeight < 0) return null; 36406 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; 36407 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), 36408 Object(__WEBPACK_IMPORTED_MODULE_6__util_LogUtils__.a)(!aspect || aspect > 0, "The aspect(%s) must be greater than zero.", aspect); 36409 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; 36410 return aspect && aspect > 0 && (calculatedHeight = calculatedWidth / aspect, maxHeight && calculatedHeight > maxHeight && (calculatedHeight = maxHeight)), 36411 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), 36412 __WEBPACK_IMPORTED_MODULE_1_react___default.a.cloneElement(children, { 36413 width: calculatedWidth, 36414 height: calculatedHeight 36415 }); 36416 } 36417 }, { 36418 key: "render", 36419 value: function() { 36420 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 = { 36421 width: width, 36422 height: height, 36423 minWidth: minWidth, 36424 minHeight: minHeight, 36425 maxHeight: maxHeight 36426 }; 36427 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("div", { 36428 id: id, 36429 className: __WEBPACK_IMPORTED_MODULE_3_classnames___default()("recharts-responsive-container", className), 36430 style: style, 36431 ref: function(node) { 36432 _this2.container = node; 36433 } 36434 }, this.renderChart(), __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4_react_resize_detector___default.a, { 36435 handleWidth: !0, 36436 handleHeight: !0, 36437 onResize: this.handleResize 36438 })); 36439 } 36440 } ]), ResponsiveContainer; 36441 }(__WEBPACK_IMPORTED_MODULE_1_react__.Component), _class.displayName = "ResponsiveContainer", 36442 _class.propTypes = { 36443 aspect: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 36444 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 ]), 36445 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 ]), 36446 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 ]), 36447 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 ]), 36448 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 ]), 36449 children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node.isRequired, 36450 debounce: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 36451 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 ]), 36452 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 ]) 36453 }, _class.defaultProps = { 36454 width: "100%", 36455 height: "100%", 36456 debounce: 0 36457 }, _temp); 36458 __webpack_exports__.a = ResponsiveContainer; 36459 }, function(module, exports, __webpack_require__) { 36460 var root = __webpack_require__(31), now = function() { 36461 return root.Date.now(); 36462 }; 36463 module.exports = now; 36464 }, function(module, exports, __webpack_require__) { 36465 "use strict"; 36466 Object.defineProperty(exports, "__esModule", { 36467 value: !0 36468 }); 36469 var _ResizeDetector = __webpack_require__(769), _ResizeDetector2 = function(obj) { 36470 return obj && obj.__esModule ? obj : { 36471 default: obj 36472 }; 36473 }(_ResizeDetector); 36474 exports.default = _ResizeDetector2.default; 36475 }, function(module, exports, __webpack_require__) { 36476 "use strict"; 36477 function _interopRequireDefault(obj) { 36478 return obj && obj.__esModule ? obj : { 36479 default: obj 36480 }; 36481 } 36482 function _classCallCheck(instance, Constructor) { 36483 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 36484 } 36485 function _possibleConstructorReturn(self, call) { 36486 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 36487 return !call || "object" != typeof call && "function" != typeof call ? self : call; 36488 } 36489 function _inherits(subClass, superClass) { 36490 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 36491 subClass.prototype = Object.create(superClass && superClass.prototype, { 36492 constructor: { 36493 value: subClass, 36494 enumerable: !1, 36495 writable: !0, 36496 configurable: !0 36497 } 36498 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 36499 } 36500 Object.defineProperty(exports, "__esModule", { 36501 value: !0 36502 }); 36503 var _extends = Object.assign || function(target) { 36504 for (var i = 1; i < arguments.length; i++) { 36505 var source = arguments[i]; 36506 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 36507 } 36508 return target; 36509 }, _slicedToArray = function() { 36510 function sliceIterator(arr, i) { 36511 var _arr = [], _n = !0, _d = !1, _e = void 0; 36512 try { 36513 for (var _s, _i = arr[Symbol.iterator](); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), 36514 !i || _arr.length !== i); _n = !0) ; 36515 } catch (err) { 36516 _d = !0, _e = err; 36517 } finally { 36518 try { 36519 !_n && _i.return && _i.return(); 36520 } finally { 36521 if (_d) throw _e; 36522 } 36523 } 36524 return _arr; 36525 } 36526 return function(arr, i) { 36527 if (Array.isArray(arr)) return arr; 36528 if (Symbol.iterator in Object(arr)) return sliceIterator(arr, i); 36529 throw new TypeError("Invalid attempt to destructure non-iterable instance"); 36530 }; 36531 }(), _createClass = function() { 36532 function defineProperties(target, props) { 36533 for (var i = 0; i < props.length; i++) { 36534 var descriptor = props[i]; 36535 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 36536 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 36537 } 36538 } 36539 return function(Constructor, protoProps, staticProps) { 36540 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 36541 Constructor; 36542 }; 36543 }(), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _propTypes = __webpack_require__(1), _propTypes2 = _interopRequireDefault(_propTypes), _resizeDetectorStyles = __webpack_require__(770), ResizeDetector = function(_Component) { 36544 function ResizeDetector() { 36545 _classCallCheck(this, ResizeDetector); 36546 var _this = _possibleConstructorReturn(this, (ResizeDetector.__proto__ || Object.getPrototypeOf(ResizeDetector)).call(this)); 36547 return _this.state = { 36548 expandChildHeight: 0, 36549 expandChildWidth: 0, 36550 expandScrollLeft: 0, 36551 expandScrollTop: 0, 36552 shrinkScrollTop: 0, 36553 shrinkScrollLeft: 0, 36554 lastWidth: 0, 36555 lastHeight: 0 36556 }, _this.reset = _this.reset.bind(_this), _this.handleScroll = _this.handleScroll.bind(_this), 36557 _this; 36558 } 36559 return _inherits(ResizeDetector, _Component), _createClass(ResizeDetector, [ { 36560 key: "componentWillMount", 36561 value: function() { 36562 this.forceUpdate(); 36563 } 36564 }, { 36565 key: "componentDidMount", 36566 value: function() { 36567 var _containerSize = this.containerSize(), _containerSize2 = _slicedToArray(_containerSize, 2), width = _containerSize2[0], height = _containerSize2[1]; 36568 this.reset(width, height), this.props.onResize(width, height); 36569 } 36570 }, { 36571 key: "shouldComponentUpdate", 36572 value: function(nextProps, nextState) { 36573 return this.props !== nextProps || this.state !== nextState; 36574 } 36575 }, { 36576 key: "componentDidUpdate", 36577 value: function() { 36578 this.expand.scrollLeft = this.expand.scrollWidth, this.expand.scrollTop = this.expand.scrollHeight, 36579 this.shrink.scrollLeft = this.shrink.scrollWidth, this.shrink.scrollTop = this.shrink.scrollHeight; 36580 } 36581 }, { 36582 key: "containerSize", 36583 value: function() { 36584 return [ this.props.handleWidth && this.container.parentElement.offsetWidth, this.props.handleHeight && this.container.parentElement.offsetHeight ]; 36585 } 36586 }, { 36587 key: "reset", 36588 value: function(containerWidth, containerHeight) { 36589 if ("undefined" != typeof window) { 36590 var parent = this.container.parentElement, position = "static"; 36591 parent.currentStyle ? position = parent.currentStyle.position : window.getComputedStyle && (position = window.getComputedStyle(parent).position), 36592 "static" === position && (parent.style.position = "relative"), this.setState({ 36593 expandChildHeight: this.expand.offsetHeight + 10, 36594 expandChildWidth: this.expand.offsetWidth + 10, 36595 lastWidth: containerWidth, 36596 lastHeight: containerHeight 36597 }); 36598 } 36599 } 36600 }, { 36601 key: "handleScroll", 36602 value: function(e) { 36603 if ("undefined" != typeof window) { 36604 e.preventDefault(), e.stopPropagation(); 36605 var state = this.state, _containerSize3 = this.containerSize(), _containerSize4 = _slicedToArray(_containerSize3, 2), width = _containerSize4[0], height = _containerSize4[1]; 36606 width === state.lastWidth && height === state.lastHeight || this.props.onResize(width, height), 36607 this.reset(width, height); 36608 } 36609 } 36610 }, { 36611 key: "render", 36612 value: function() { 36613 var _this2 = this, state = this.state, expandStyle = _extends({}, _resizeDetectorStyles.expandChildStyle, { 36614 width: state.expandChildWidth, 36615 height: state.expandChildHeight 36616 }); 36617 return _react2.default.createElement("div", { 36618 style: _resizeDetectorStyles.parentStyle, 36619 ref: function(e) { 36620 _this2.container = e; 36621 } 36622 }, _react2.default.createElement("div", { 36623 style: _resizeDetectorStyles.parentStyle, 36624 onScroll: this.handleScroll, 36625 ref: function(e) { 36626 _this2.expand = e; 36627 } 36628 }, _react2.default.createElement("div", { 36629 style: expandStyle 36630 })), _react2.default.createElement("div", { 36631 style: _resizeDetectorStyles.parentStyle, 36632 onScroll: this.handleScroll, 36633 ref: function(e) { 36634 _this2.shrink = e; 36635 } 36636 }, _react2.default.createElement("div", { 36637 style: _resizeDetectorStyles.shrinkChildStyle 36638 }))); 36639 } 36640 } ]), ResizeDetector; 36641 }(_react.Component); 36642 exports.default = ResizeDetector, ResizeDetector.propTypes = { 36643 handleWidth: _propTypes2.default.bool, 36644 handleHeight: _propTypes2.default.bool, 36645 onResize: _propTypes2.default.func 36646 }, ResizeDetector.defaultProps = { 36647 handleWidth: !1, 36648 handleHeight: !1, 36649 onResize: function(e) { 36650 return e; 36651 } 36652 }; 36653 }, function(module, exports, __webpack_require__) { 36654 "use strict"; 36655 Object.defineProperty(exports, "__esModule", { 36656 value: !0 36657 }); 36658 exports.parentStyle = { 36659 position: "absolute", 36660 left: 0, 36661 top: 0, 36662 right: 0, 36663 bottom: 0, 36664 overflow: "hidden", 36665 zIndex: -1, 36666 visibility: "hidden" 36667 }, exports.shrinkChildStyle = { 36668 position: "absolute", 36669 left: 0, 36670 top: 0, 36671 width: "200%", 36672 height: "200%" 36673 }, exports.expandChildStyle = { 36674 position: "absolute", 36675 left: 0, 36676 top: 0, 36677 width: "100%", 36678 height: "100%" 36679 }; 36680 }, function(module, exports, __webpack_require__) { 36681 function reduceCSSCalc(value, decimalPrecision) { 36682 function evaluateExpression(expression, functionIdentifier, call) { 36683 if (stack++ > MAX_STACK) throw stack = 0, new Error("Call stack overflow for " + call); 36684 if ("" === expression) throw new Error(functionIdentifier + "(): '" + call + "' must contain a non-whitespace string"); 36685 expression = evaluateNestedExpression(expression, call); 36686 var units = getUnitsInExpression(expression); 36687 if (units.length > 1 || expression.indexOf("var(") > -1) return functionIdentifier + "(" + expression + ")"; 36688 var unit = units[0] || ""; 36689 "%" === unit && (expression = expression.replace(/\b[0-9\.]+%/g, function(percent) { 36690 return .01 * parseFloat(percent.slice(0, -1)); 36691 })); 36692 var result, toEvaluate = expression.replace(new RegExp(unit, "gi"), ""); 36693 try { 36694 result = mexp.eval(toEvaluate); 36695 } catch (e) { 36696 return functionIdentifier + "(" + expression + ")"; 36697 } 36698 return "%" === unit && (result *= 100), (functionIdentifier.length || "%" === unit) && (result = Math.round(result * decimalPrecision) / decimalPrecision), 36699 result += unit; 36700 } 36701 function evaluateNestedExpression(expression, call) { 36702 expression = expression.replace(/((?:\-[a-z]+\-)?calc)/g, ""); 36703 for (var matches, evaluatedPart = "", nonEvaluatedPart = expression; matches = NESTED_CALC_RE.exec(nonEvaluatedPart); ) { 36704 matches[0].index > 0 && (evaluatedPart += nonEvaluatedPart.substring(0, matches[0].index)); 36705 var balancedExpr = balanced("(", ")", nonEvaluatedPart.substring([ 0 ].index)); 36706 if ("" === balancedExpr.body) throw new Error("'" + expression + "' must contain a non-whitespace string"); 36707 var evaluated = evaluateExpression(balancedExpr.body, "", call); 36708 evaluatedPart += balancedExpr.pre + evaluated, nonEvaluatedPart = balancedExpr.post; 36709 } 36710 return evaluatedPart + nonEvaluatedPart; 36711 } 36712 return stack = 0, decimalPrecision = Math.pow(10, void 0 === decimalPrecision ? 5 : decimalPrecision), 36713 value = value.replace(/\n+/g, " "), reduceFunctionCall(value, /((?:\-[a-z]+\-)?calc)\(/, evaluateExpression); 36714 } 36715 function getUnitsInExpression(expression) { 36716 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]), 36717 uniqueLowerCaseUnits.push(matches[1].toLowerCase())), matches = unitRegEx.exec(expression)); 36718 return uniqueUnits; 36719 } 36720 var stack, balanced = __webpack_require__(313), reduceFunctionCall = __webpack_require__(772), mexp = __webpack_require__(773), MAX_STACK = 100, NESTED_CALC_RE = /(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g; 36721 module.exports = reduceCSSCalc; 36722 }, function(module, exports, __webpack_require__) { 36723 function reduceFunctionCall(string, functionRE, callback) { 36724 var call = string; 36725 return getFunctionCalls(string, functionRE).reduce(function(string, obj) { 36726 return string.replace(obj.functionIdentifier + "(" + obj.matches.body + ")", evalFunctionCall(obj.matches.body, obj.functionIdentifier, callback, call, functionRE)); 36727 }, string); 36728 } 36729 function getFunctionCalls(call, functionRE) { 36730 var expressions = [], fnRE = "string" == typeof functionRE ? new RegExp("\\b(" + functionRE + ")\\(") : functionRE; 36731 do { 36732 var searchMatch = fnRE.exec(call); 36733 if (!searchMatch) return expressions; 36734 if (void 0 === searchMatch[1]) throw new Error("Missing the first couple of parenthesis to get the function identifier in " + functionRE); 36735 var fn = searchMatch[1], startIndex = searchMatch.index, matches = balanced("(", ")", call.substring(startIndex)); 36736 if (!matches || matches.start !== searchMatch[0].length - 1) throw new SyntaxError(fn + "(): missing closing ')' in the value '" + call + "'"); 36737 expressions.push({ 36738 matches: matches, 36739 functionIdentifier: fn 36740 }), call = matches.post; 36741 } while (fnRE.test(call)); 36742 return expressions; 36743 } 36744 function evalFunctionCall(string, functionIdentifier, callback, call, functionRE) { 36745 return callback(reduceFunctionCall(string, functionRE, callback), functionIdentifier, call); 36746 } 36747 var balanced = __webpack_require__(313); 36748 module.exports = reduceFunctionCall; 36749 }, function(module, exports, __webpack_require__) { 36750 var Mexp = __webpack_require__(774); 36751 Mexp.prototype.formulaEval = function() { 36752 "use strict"; 36753 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({ 36754 value: 3 === arr[i].type ? arr[i].show : arr[i].value, 36755 type: 1 36756 }) : 13 === arr[i].type ? disp.push({ 36757 value: arr[i].show, 36758 type: 1 36759 }) : 0 === arr[i].type ? disp[disp.length - 1] = { 36760 value: arr[i].show + ("-" != arr[i].show ? "(" : "") + disp[disp.length - 1].value + ("-" != arr[i].show ? ")" : ""), 36761 type: 0 36762 } : 7 === arr[i].type ? disp[disp.length - 1] = { 36763 value: (1 != disp[disp.length - 1].type ? "(" : "") + disp[disp.length - 1].value + (1 != disp[disp.length - 1].type ? ")" : "") + arr[i].show, 36764 type: 7 36765 } : 10 === arr[i].type ? (pop1 = disp.pop(), pop2 = disp.pop(), "P" === arr[i].show || "C" === arr[i].show ? disp.push({ 36766 value: "<sup>" + pop2.value + "</sup>" + arr[i].show + "<sub>" + pop1.value + "</sub>", 36767 type: 10 36768 }) : disp.push({ 36769 value: (1 != pop2.type ? "(" : "") + pop2.value + (1 != pop2.type ? ")" : "") + "<sup>" + pop1.value + "</sup>", 36770 type: 1 36771 })) : 2 === arr[i].type || 9 === arr[i].type ? (pop1 = disp.pop(), pop2 = disp.pop(), 36772 disp.push({ 36773 value: (1 != pop2.type ? "(" : "") + pop2.value + (1 != pop2.type ? ")" : "") + arr[i].show + (1 != pop1.type ? "(" : "") + pop1.value + (1 != pop1.type ? ")" : ""), 36774 type: arr[i].type 36775 })) : 12 === arr[i].type && (pop1 = disp.pop(), pop2 = disp.pop(), pop3 = disp.pop(), 36776 disp.push({ 36777 value: arr[i].show + "(" + pop3.value + "," + pop2.value + "," + pop1.value + ")", 36778 type: 12 36779 })); 36780 return disp[0].value; 36781 }, module.exports = Mexp; 36782 }, function(module, exports, __webpack_require__) { 36783 var Mexp = __webpack_require__(775); 36784 Mexp.prototype.postfixEval = function(UserDefined) { 36785 "use strict"; 36786 UserDefined = UserDefined || {}, UserDefined.PI = Math.PI, UserDefined.E = Math.E; 36787 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({ 36788 value: arr[i].value, 36789 type: 1 36790 }) : 3 === arr[i].type ? stack.push({ 36791 value: UserDefined[arr[i].value], 36792 type: 1 36793 }) : 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(), 36794 pop2 = stack.pop(), stack.push({ 36795 type: 1, 36796 value: arr[i].value(pop2.value, pop1.value) 36797 })) : 10 === arr[i].type ? (pop1 = stack.pop(), pop2 = stack.pop(), void 0 === pop2.type ? (pop2.value = pop2.concat(pop1), 36798 pop2.value.push(arr[i]), stack.push(pop2)) : void 0 === pop1.type ? (pop1.unshift(pop2), 36799 pop1.push(arr[i]), stack.push(pop1)) : stack.push({ 36800 type: 1, 36801 value: arr[i].value(pop2.value, pop1.value) 36802 })) : 2 === arr[i].type || 9 === arr[i].type ? (pop1 = stack.pop(), pop2 = stack.pop(), 36803 void 0 === pop2.type ? (console.log(pop2), pop2 = pop2.concat(pop1), pop2.push(arr[i]), 36804 stack.push(pop2)) : void 0 === pop1.type ? (pop1.unshift(pop2), pop1.push(arr[i]), 36805 stack.push(pop1)) : stack.push({ 36806 type: 1, 36807 value: arr[i].value(pop2.value, pop1.value) 36808 })) : 12 === arr[i].type ? (pop1 = stack.pop(), void 0 !== pop1.type && (pop1 = [ pop1 ]), 36809 pop2 = stack.pop(), pop3 = stack.pop(), stack.push({ 36810 type: 1, 36811 value: arr[i].value(pop3.value, pop2.value, new Mexp(pop1)) 36812 })) : 13 === arr[i].type && (bool ? stack.push({ 36813 value: UserDefined[arr[i].value], 36814 type: 3 36815 }) : stack.push([ arr[i] ])); 36816 if (stack.length > 1) throw new Mexp.exception("Uncaught Syntax error"); 36817 return stack[0].value > 1e15 ? "Infinity" : parseFloat(stack[0].value.toFixed(15)); 36818 }, Mexp.eval = function(str, tokens, obj) { 36819 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); 36820 }, module.exports = Mexp; 36821 }, function(module, exports, __webpack_require__) { 36822 var Mexp = __webpack_require__(776); 36823 Mexp.prototype.toPostfix = function() { 36824 "use strict"; 36825 for (var elem, popped, prep, pre, ele, post = [], stack = [ { 36826 value: "(", 36827 type: 4, 36828 pre: 0 36829 } ], 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)), 36830 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) { 36831 for (;4 !== (popped = stack.pop()).type; ) post.push(popped); 36832 stack.push(popped); 36833 } else { 36834 elem = arr[i], pre = elem.pre, ele = stack[stack.length - 1], prep = ele.pre; 36835 var flag = "Math.pow" == ele.value && "Math.pow" == elem.value; 36836 if (pre > prep) stack.push(elem); else { 36837 for (;prep >= pre && !flag || flag && pre < prep; ) popped = stack.pop(), ele = stack[stack.length - 1], 36838 post.push(popped), prep = ele.pre, flag = "Math.pow" == elem.value && "Math.pow" == ele.value; 36839 stack.push(elem); 36840 } 36841 } 36842 return new Mexp(post); 36843 }, module.exports = Mexp; 36844 }, function(module, exports, __webpack_require__) { 36845 function inc(arr, val) { 36846 for (var i = 0; i < arr.length; i++) arr[i] += val; 36847 return arr; 36848 } 36849 function match(str1, str2, i, x) { 36850 for (var f = 0; f < x; f++) if (str1[i + f] !== str2[f]) return !1; 36851 return !0; 36852 } 36853 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 = { 36854 0: 11, 36855 1: 0, 36856 2: 3, 36857 3: 0, 36858 4: 0, 36859 5: 0, 36860 6: 0, 36861 7: 11, 36862 8: 11, 36863 9: 1, 36864 10: 10, 36865 11: 0, 36866 12: 11, 36867 13: 0 36868 }, 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 = { 36869 0: !0, 36870 1: !0, 36871 3: !0, 36872 4: !0, 36873 6: !0, 36874 8: !0, 36875 9: !0, 36876 12: !0, 36877 13: !0 36878 }, type1 = { 36879 0: !0, 36880 1: !0, 36881 2: !0, 36882 3: !0, 36883 4: !0, 36884 5: !0, 36885 6: !0, 36886 7: !0, 36887 8: !0, 36888 9: !0, 36889 10: !0, 36890 11: !0, 36891 12: !0, 36892 13: !0 36893 }, type_1 = { 36894 0: !0, 36895 3: !0, 36896 4: !0, 36897 8: !0, 36898 12: !0, 36899 13: !0 36900 }, empty = {}, type_3 = { 36901 0: !0, 36902 1: !0, 36903 3: !0, 36904 4: !0, 36905 6: !0, 36906 8: !0, 36907 12: !0, 36908 13: !0 36909 }, type6 = { 36910 1: !0 36911 }, 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" ] ]; 36912 Mexp.addToken = function(tokens) { 36913 for (i = 0; i < tokens.length; i++) { 36914 x = tokens[i].token.length; 36915 var temp = -1; 36916 if (x < newAr.length) for (y = 0; y < newAr[x].length; y++) if (tokens[i].token === newAr[x][y]) { 36917 temp = token.indexOf(newAr[x][y]); 36918 break; 36919 } 36920 -1 === temp ? (token.push(tokens[i].token), type.push(tokens[i].type), newAr.length <= tokens[i].token.length && (newAr[tokens[i].token.length] = []), 36921 newAr[tokens[i].token.length].push(tokens[i].token), eva.push(tokens[i].value), 36922 show.push(tokens[i].show)) : (token[temp] = tokens[i].token, type[temp] = tokens[i].type, 36923 eva[temp] = tokens[i].value, show[temp] = tokens[i].show); 36924 } 36925 }, Mexp.lex = function(inp, tokens) { 36926 "use strict"; 36927 var key, i, x, y, str = [ { 36928 type: 4, 36929 value: "(", 36930 show: "(", 36931 pre: 0 36932 } ], ptc = [], inpStr = inp, pcounter = 0, allowed = type0, bracToClose = 0, asterick = empty, prevKey = ""; 36933 void 0 !== tokens && Mexp.addToken(tokens); 36934 var obj = {}; 36935 for (i = 0; i < inpStr.length; i++) if (" " != inpStr[i]) { 36936 key = ""; 36937 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)) { 36938 key = newAr[x][y]; 36939 break sec; 36940 } 36941 if (i += key.length - 1, "" === key) throw new Mexp.exception("Can't understand after " + inpStr.slice(i)); 36942 var index = token.indexOf(key), cToken = key, cType = type[index], cEv = eva[index], cPre = preced[cType], cShow = show[index], pre = str[str.length - 1]; 36943 for (j = ptc.length; j--; ) if (0 === ptc[j] && -1 !== [ 0, 2, 3, 5, 9, 11, 12, 13 ].indexOf(cType)) { 36944 if (!0 !== allowed[cType]) throw new Mexp.exception(key + " is not allowed after " + prevKey); 36945 str.push({ 36946 value: ")", 36947 type: 5, 36948 pre: 0, 36949 show: ")" 36950 }), allowed = type1, asterick = type_3, inc(ptc, -1).pop(); 36951 } 36952 if (!0 !== allowed[cType]) throw new Mexp.exception(key + " is not allowed after " + prevKey); 36953 if (!0 === asterick[cType] && (cType = 2, cEv = Mexp.math.mul, cShow = "×", 36954 cPre = 3, i -= key.length), obj = { 36955 value: cEv, 36956 type: cType, 36957 pre: cPre, 36958 show: cShow 36959 }, 0 === cType) allowed = type0, asterick = empty, inc(ptc, 2).push(2), str.push(obj), 36960 str.push({ 36961 value: "(", 36962 type: 4, 36963 pre: 0, 36964 show: "(" 36965 }); else if (1 === cType) 1 === pre.type ? (pre.value += cEv, inc(ptc, 1)) : str.push(obj), 36966 allowed = type1, asterick = type_1; else if (2 === cType) allowed = type0, asterick = empty, 36967 inc(ptc, 2), str.push(obj); else if (3 === cType) str.push(obj), allowed = type1, 36968 asterick = type_3; else if (4 === cType) pcounter += ptc.length, ptc = [], bracToClose++, 36969 allowed = type0, asterick = empty, str.push(obj); else if (5 === cType) { 36970 if (!bracToClose) throw new Mexp.exception("Closing parenthesis are more than opening one, wait What!!!"); 36971 for (;pcounter--; ) str.push({ 36972 value: ")", 36973 type: 5, 36974 pre: 0, 36975 show: ")" 36976 }); 36977 pcounter = 0, bracToClose--, allowed = type1, asterick = type_3, str.push(obj); 36978 } else if (6 === cType) { 36979 if (pre.hasDec) throw new Mexp.exception("Two decimals are not allowed in one number"); 36980 1 !== pre.type && (pre = { 36981 value: 0, 36982 type: 1, 36983 pre: 0 36984 }, str.push(pre), inc(ptc, -1)), allowed = type6, inc(ptc, 1), asterick = empty, 36985 pre.value += cEv, pre.hasDec = !0; 36986 } else 7 === cType && (allowed = type1, asterick = type_3, inc(ptc, 1), str.push(obj)); 36987 8 === cType ? (allowed = type0, asterick = empty, inc(ptc, 4).push(4), str.push(obj), 36988 str.push({ 36989 value: "(", 36990 type: 4, 36991 pre: 0, 36992 show: "(" 36993 })) : 9 === cType ? (9 === pre.type ? pre.value === Mexp.math.add ? (pre.value = cEv, 36994 pre.show = cShow, inc(ptc, 1)) : pre.value === Mexp.math.sub && "-" === cShow && (pre.value = Mexp.math.add, 36995 pre.show = "+", inc(ptc, 1)) : 5 !== pre.type && 7 !== pre.type && 1 !== pre.type && 3 !== pre.type && 13 !== pre.type ? "-" === cToken && (allowed = type0, 36996 asterick = empty, inc(ptc, 2).push(2), str.push({ 36997 value: Mexp.math.changeSign, 36998 type: 0, 36999 pre: 21, 37000 show: "-" 37001 }), str.push({ 37002 value: "(", 37003 type: 4, 37004 pre: 0, 37005 show: "(" 37006 })) : (str.push(obj), inc(ptc, 2)), allowed = type0, asterick = empty) : 10 === cType ? (allowed = type0, 37007 asterick = empty, inc(ptc, 2), str.push(obj)) : 11 === cType ? (allowed = type0, 37008 asterick = empty, str.push(obj)) : 12 === cType ? (allowed = type0, asterick = empty, 37009 inc(ptc, 6).push(6), str.push(obj), str.push({ 37010 value: "(", 37011 type: 4, 37012 pre: 0 37013 })) : 13 === cType && (allowed = type1, asterick = type_3, str.push(obj)), inc(ptc, -1), 37014 prevKey = key; 37015 } 37016 for (var j = ptc.length; j--; ) 0 === ptc[j] && (str.push({ 37017 value: ")", 37018 show: ")", 37019 type: 5, 37020 pre: 3 37021 }), inc(ptc, -1).pop()); 37022 if (!0 !== allowed[5]) throw new Mexp.exception("complete the expression"); 37023 for (;bracToClose--; ) str.push({ 37024 value: ")", 37025 show: ")", 37026 type: 5, 37027 pre: 3 37028 }); 37029 return str.push({ 37030 type: 5, 37031 value: ")", 37032 show: ")", 37033 pre: 0 37034 }), new Mexp(str); 37035 }, module.exports = Mexp; 37036 }, function(module, exports) { 37037 var Mexp = function(parsed) { 37038 this.value = parsed; 37039 }; 37040 Mexp.math = { 37041 isDegree: !0, 37042 acos: function(x) { 37043 return Mexp.math.isDegree ? 180 / Math.PI * Math.acos(x) : Math.acos(x); 37044 }, 37045 add: function(a, b) { 37046 return a + b; 37047 }, 37048 asin: function(x) { 37049 return Mexp.math.isDegree ? 180 / Math.PI * Math.asin(x) : Math.asin(x); 37050 }, 37051 atan: function(x) { 37052 return Mexp.math.isDegree ? 180 / Math.PI * Math.atan(x) : Math.atan(x); 37053 }, 37054 acosh: function(x) { 37055 return Math.log(x + Math.sqrt(x * x - 1)); 37056 }, 37057 asinh: function(x) { 37058 return Math.log(x + Math.sqrt(x * x + 1)); 37059 }, 37060 atanh: function(x) { 37061 return Math.log((1 + x) / (1 - x)); 37062 }, 37063 C: function(n, r) { 37064 var pro = 1, other = n - r, choice = r; 37065 choice < other && (choice = other, other = r); 37066 for (var i = choice + 1; i <= n; i++) pro *= i; 37067 return pro / Mexp.math.fact(other); 37068 }, 37069 changeSign: function(x) { 37070 return -x; 37071 }, 37072 cos: function(x) { 37073 return Mexp.math.isDegree && (x = Mexp.math.toRadian(x)), Math.cos(x); 37074 }, 37075 cosh: function(x) { 37076 return (Math.pow(Math.E, x) + Math.pow(Math.E, -1 * x)) / 2; 37077 }, 37078 div: function(a, b) { 37079 return a / b; 37080 }, 37081 fact: function(n) { 37082 if (n % 1 != 0) return "NAN"; 37083 for (var pro = 1, i = 2; i <= n; i++) pro *= i; 37084 return pro; 37085 }, 37086 inverse: function(x) { 37087 return 1 / x; 37088 }, 37089 log: function(i) { 37090 return Math.log(i) / Math.log(10); 37091 }, 37092 mod: function(a, b) { 37093 return a % b; 37094 }, 37095 mul: function(a, b) { 37096 return a * b; 37097 }, 37098 P: function(n, r) { 37099 for (var pro = 1, i = Math.floor(n) - Math.floor(r) + 1; i <= Math.floor(n); i++) pro *= i; 37100 return pro; 37101 }, 37102 Pi: function(low, high, ex) { 37103 for (var pro = 1, i = low; i <= high; i++) pro *= Number(ex.postfixEval({ 37104 n: i 37105 })); 37106 return pro; 37107 }, 37108 pow10x: function(e) { 37109 for (var x = 1; e--; ) x *= 10; 37110 return x; 37111 }, 37112 sigma: function(low, high, ex) { 37113 for (var sum = 0, i = low; i <= high; i++) sum += Number(ex.postfixEval({ 37114 n: i 37115 })); 37116 return sum; 37117 }, 37118 sin: function(x) { 37119 return Mexp.math.isDegree && (x = Mexp.math.toRadian(x)), Math.sin(x); 37120 }, 37121 sinh: function(x) { 37122 return (Math.pow(Math.E, x) - Math.pow(Math.E, -1 * x)) / 2; 37123 }, 37124 sub: function(a, b) { 37125 return a - b; 37126 }, 37127 tan: function(x) { 37128 return Mexp.math.isDegree && (x = Mexp.math.toRadian(x)), Math.tan(x); 37129 }, 37130 tanh: function(x) { 37131 return Mexp.sinha(x) / Mexp.cosha(x); 37132 }, 37133 toRadian: function(x) { 37134 return x * Math.PI / 180; 37135 } 37136 }, Mexp.exception = function(message) { 37137 this.message = message; 37138 }, module.exports = Mexp; 37139 }, function(module, exports, __webpack_require__) { 37140 function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { 37141 var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other); 37142 objTag = objTag == argsTag ? objectTag : objTag, othTag = othTag == argsTag ? objectTag : othTag; 37143 var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag; 37144 if (isSameTag && isBuffer(object)) { 37145 if (!isBuffer(other)) return !1; 37146 objIsArr = !0, objIsObj = !1; 37147 } 37148 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); 37149 if (!(bitmask & COMPARE_PARTIAL_FLAG)) { 37150 var objIsWrapped = objIsObj && hasOwnProperty.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__"); 37151 if (objIsWrapped || othIsWrapped) { 37152 var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other; 37153 return stack || (stack = new Stack()), equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); 37154 } 37155 } 37156 return !!isSameTag && (stack || (stack = new Stack()), equalObjects(object, other, bitmask, customizer, equalFunc, stack)); 37157 } 37158 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; 37159 module.exports = baseIsEqualDeep; 37160 }, function(module, exports, __webpack_require__) { 37161 function stackClear() { 37162 this.__data__ = new ListCache(), this.size = 0; 37163 } 37164 var ListCache = __webpack_require__(116); 37165 module.exports = stackClear; 37166 }, function(module, exports) { 37167 function stackDelete(key) { 37168 var data = this.__data__, result = data.delete(key); 37169 return this.size = data.size, result; 37170 } 37171 module.exports = stackDelete; 37172 }, function(module, exports) { 37173 function stackGet(key) { 37174 return this.__data__.get(key); 37175 } 37176 module.exports = stackGet; 37177 }, function(module, exports) { 37178 function stackHas(key) { 37179 return this.__data__.has(key); 37180 } 37181 module.exports = stackHas; 37182 }, function(module, exports, __webpack_require__) { 37183 function stackSet(key, value) { 37184 var data = this.__data__; 37185 if (data instanceof ListCache) { 37186 var pairs = data.__data__; 37187 if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) return pairs.push([ key, value ]), 37188 this.size = ++data.size, this; 37189 data = this.__data__ = new MapCache(pairs); 37190 } 37191 return data.set(key, value), this.size = data.size, this; 37192 } 37193 var ListCache = __webpack_require__(116), Map = __webpack_require__(178), MapCache = __webpack_require__(176), LARGE_ARRAY_SIZE = 200; 37194 module.exports = stackSet; 37195 }, function(module, exports, __webpack_require__) { 37196 function SetCache(values) { 37197 var index = -1, length = null == values ? 0 : values.length; 37198 for (this.__data__ = new MapCache(); ++index < length; ) this.add(values[index]); 37199 } 37200 var MapCache = __webpack_require__(176), setCacheAdd = __webpack_require__(785), setCacheHas = __webpack_require__(786); 37201 SetCache.prototype.add = SetCache.prototype.push = setCacheAdd, SetCache.prototype.has = setCacheHas, 37202 module.exports = SetCache; 37203 }, function(module, exports) { 37204 function setCacheAdd(value) { 37205 return this.__data__.set(value, HASH_UNDEFINED), this; 37206 } 37207 var HASH_UNDEFINED = "__lodash_hash_undefined__"; 37208 module.exports = setCacheAdd; 37209 }, function(module, exports) { 37210 function setCacheHas(value) { 37211 return this.__data__.has(value); 37212 } 37213 module.exports = setCacheHas; 37214 }, function(module, exports) { 37215 function arraySome(array, predicate) { 37216 for (var index = -1, length = null == array ? 0 : array.length; ++index < length; ) if (predicate(array[index], index, array)) return !0; 37217 return !1; 37218 } 37219 module.exports = arraySome; 37220 }, function(module, exports) { 37221 function cacheHas(cache, key) { 37222 return cache.has(key); 37223 } 37224 module.exports = cacheHas; 37225 }, function(module, exports, __webpack_require__) { 37226 function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { 37227 switch (tag) { 37228 case dataViewTag: 37229 if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) return !1; 37230 object = object.buffer, other = other.buffer; 37231 37232 case arrayBufferTag: 37233 return !(object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))); 37234 37235 case boolTag: 37236 case dateTag: 37237 case numberTag: 37238 return eq(+object, +other); 37239 37240 case errorTag: 37241 return object.name == other.name && object.message == other.message; 37242 37243 case regexpTag: 37244 case stringTag: 37245 return object == other + ""; 37246 37247 case mapTag: 37248 var convert = mapToArray; 37249 37250 case setTag: 37251 var isPartial = bitmask & COMPARE_PARTIAL_FLAG; 37252 if (convert || (convert = setToArray), object.size != other.size && !isPartial) return !1; 37253 var stacked = stack.get(object); 37254 if (stacked) return stacked == other; 37255 bitmask |= COMPARE_UNORDERED_FLAG, stack.set(object, other); 37256 var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack); 37257 return stack.delete(object), result; 37258 37259 case symbolTag: 37260 if (symbolValueOf) return symbolValueOf.call(object) == symbolValueOf.call(other); 37261 } 37262 return !1; 37263 } 37264 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; 37265 module.exports = equalByTag; 37266 }, function(module, exports, __webpack_require__) { 37267 var root = __webpack_require__(31), Uint8Array = root.Uint8Array; 37268 module.exports = Uint8Array; 37269 }, function(module, exports) { 37270 function mapToArray(map) { 37271 var index = -1, result = Array(map.size); 37272 return map.forEach(function(value, key) { 37273 result[++index] = [ key, value ]; 37274 }), result; 37275 } 37276 module.exports = mapToArray; 37277 }, function(module, exports) { 37278 function setToArray(set) { 37279 var index = -1, result = Array(set.size); 37280 return set.forEach(function(value) { 37281 result[++index] = value; 37282 }), result; 37283 } 37284 module.exports = setToArray; 37285 }, function(module, exports, __webpack_require__) { 37286 function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { 37287 var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = getAllKeys(object), objLength = objProps.length; 37288 if (objLength != getAllKeys(other).length && !isPartial) return !1; 37289 for (var index = objLength; index--; ) { 37290 var key = objProps[index]; 37291 if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) return !1; 37292 } 37293 var stacked = stack.get(object); 37294 if (stacked && stack.get(other)) return stacked == other; 37295 var result = !0; 37296 stack.set(object, other), stack.set(other, object); 37297 for (var skipCtor = isPartial; ++index < objLength; ) { 37298 key = objProps[index]; 37299 var objValue = object[key], othValue = other[key]; 37300 if (customizer) var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack); 37301 if (!(void 0 === compared ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) { 37302 result = !1; 37303 break; 37304 } 37305 skipCtor || (skipCtor = "constructor" == key); 37306 } 37307 if (result && !skipCtor) { 37308 var objCtor = object.constructor, othCtor = other.constructor; 37309 objCtor != othCtor && "constructor" in object && "constructor" in other && !("function" == typeof objCtor && objCtor instanceof objCtor && "function" == typeof othCtor && othCtor instanceof othCtor) && (result = !1); 37310 } 37311 return stack.delete(object), stack.delete(other), result; 37312 } 37313 var getAllKeys = __webpack_require__(794), COMPARE_PARTIAL_FLAG = 1, objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty; 37314 module.exports = equalObjects; 37315 }, function(module, exports, __webpack_require__) { 37316 function getAllKeys(object) { 37317 return baseGetAllKeys(object, keys, getSymbols); 37318 } 37319 var baseGetAllKeys = __webpack_require__(795), getSymbols = __webpack_require__(796), keys = __webpack_require__(200); 37320 module.exports = getAllKeys; 37321 }, function(module, exports, __webpack_require__) { 37322 function baseGetAllKeys(object, keysFunc, symbolsFunc) { 37323 var result = keysFunc(object); 37324 return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); 37325 } 37326 var arrayPush = __webpack_require__(316), isArray = __webpack_require__(13); 37327 module.exports = baseGetAllKeys; 37328 }, function(module, exports, __webpack_require__) { 37329 var arrayFilter = __webpack_require__(797), stubArray = __webpack_require__(798), objectProto = Object.prototype, propertyIsEnumerable = objectProto.propertyIsEnumerable, nativeGetSymbols = Object.getOwnPropertySymbols, getSymbols = nativeGetSymbols ? function(object) { 37330 return null == object ? [] : (object = Object(object), arrayFilter(nativeGetSymbols(object), function(symbol) { 37331 return propertyIsEnumerable.call(object, symbol); 37332 })); 37333 } : stubArray; 37334 module.exports = getSymbols; 37335 }, function(module, exports) { 37336 function arrayFilter(array, predicate) { 37337 for (var index = -1, length = null == array ? 0 : array.length, resIndex = 0, result = []; ++index < length; ) { 37338 var value = array[index]; 37339 predicate(value, index, array) && (result[resIndex++] = value); 37340 } 37341 return result; 37342 } 37343 module.exports = arrayFilter; 37344 }, function(module, exports) { 37345 function stubArray() { 37346 return []; 37347 } 37348 module.exports = stubArray; 37349 }, function(module, exports, __webpack_require__) { 37350 function arrayLikeKeys(value, inherited) { 37351 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; 37352 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); 37353 return result; 37354 } 37355 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; 37356 module.exports = arrayLikeKeys; 37357 }, function(module, exports) { 37358 function baseTimes(n, iteratee) { 37359 for (var index = -1, result = Array(n); ++index < n; ) result[index] = iteratee(index); 37360 return result; 37361 } 37362 module.exports = baseTimes; 37363 }, function(module, exports, __webpack_require__) { 37364 function baseIsArguments(value) { 37365 return isObjectLike(value) && baseGetTag(value) == argsTag; 37366 } 37367 var baseGetTag = __webpack_require__(41), isObjectLike = __webpack_require__(42), argsTag = "[object Arguments]"; 37368 module.exports = baseIsArguments; 37369 }, function(module, exports) { 37370 function stubFalse() { 37371 return !1; 37372 } 37373 module.exports = stubFalse; 37374 }, function(module, exports, __webpack_require__) { 37375 function baseIsTypedArray(value) { 37376 return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; 37377 } 37378 var baseGetTag = __webpack_require__(41), isLength = __webpack_require__(203), isObjectLike = __webpack_require__(42), typedArrayTags = {}; 37379 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, 37380 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, 37381 module.exports = baseIsTypedArray; 37382 }, function(module, exports, __webpack_require__) { 37383 (function(module) { 37384 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() { 37385 try { 37386 return freeProcess && freeProcess.binding && freeProcess.binding("util"); 37387 } catch (e) {} 37388 }(); 37389 module.exports = nodeUtil; 37390 }).call(exports, __webpack_require__(131)(module)); 37391 }, function(module, exports, __webpack_require__) { 37392 function baseKeys(object) { 37393 if (!isPrototype(object)) return nativeKeys(object); 37394 var result = []; 37395 for (var key in Object(object)) hasOwnProperty.call(object, key) && "constructor" != key && result.push(key); 37396 return result; 37397 } 37398 var isPrototype = __webpack_require__(806), nativeKeys = __webpack_require__(807), objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty; 37399 module.exports = baseKeys; 37400 }, function(module, exports) { 37401 function isPrototype(value) { 37402 var Ctor = value && value.constructor; 37403 return value === ("function" == typeof Ctor && Ctor.prototype || objectProto); 37404 } 37405 var objectProto = Object.prototype; 37406 module.exports = isPrototype; 37407 }, function(module, exports, __webpack_require__) { 37408 var overArg = __webpack_require__(320), nativeKeys = overArg(Object.keys, Object); 37409 module.exports = nativeKeys; 37410 }, function(module, exports, __webpack_require__) { 37411 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; 37412 (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) { 37413 var result = baseGetTag(value), Ctor = "[object Object]" == result ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : ""; 37414 if (ctorString) switch (ctorString) { 37415 case dataViewCtorString: 37416 return "[object DataView]"; 37417 37418 case mapCtorString: 37419 return "[object Map]"; 37420 37421 case promiseCtorString: 37422 return "[object Promise]"; 37423 37424 case setCtorString: 37425 return "[object Set]"; 37426 37427 case weakMapCtorString: 37428 return "[object WeakMap]"; 37429 } 37430 return result; 37431 }), module.exports = getTag; 37432 }, function(module, exports, __webpack_require__) { 37433 var getNative = __webpack_require__(57), root = __webpack_require__(31), DataView = getNative(root, "DataView"); 37434 module.exports = DataView; 37435 }, function(module, exports, __webpack_require__) { 37436 var getNative = __webpack_require__(57), root = __webpack_require__(31), Promise = getNative(root, "Promise"); 37437 module.exports = Promise; 37438 }, function(module, exports, __webpack_require__) { 37439 var getNative = __webpack_require__(57), root = __webpack_require__(31), Set = getNative(root, "Set"); 37440 module.exports = Set; 37441 }, function(module, exports, __webpack_require__) { 37442 var getNative = __webpack_require__(57), root = __webpack_require__(31), WeakMap = getNative(root, "WeakMap"); 37443 module.exports = WeakMap; 37444 }, function(module, exports, __webpack_require__) { 37445 function isFlattenable(value) { 37446 return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]); 37447 } 37448 var Symbol = __webpack_require__(83), isArguments = __webpack_require__(201), isArray = __webpack_require__(13), spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : void 0; 37449 module.exports = isFlattenable; 37450 }, function(module, exports, __webpack_require__) { 37451 function baseOrderBy(collection, iteratees, orders) { 37452 var index = -1; 37453 iteratees = arrayMap(iteratees.length ? iteratees : [ identity ], baseUnary(baseIteratee)); 37454 var result = baseMap(collection, function(value, key, collection) { 37455 return { 37456 criteria: arrayMap(iteratees, function(iteratee) { 37457 return iteratee(value); 37458 }), 37459 index: ++index, 37460 value: value 37461 }; 37462 }); 37463 return baseSortBy(result, function(object, other) { 37464 return compareMultiple(object, other, orders); 37465 }); 37466 } 37467 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); 37468 module.exports = baseOrderBy; 37469 }, function(module, exports, __webpack_require__) { 37470 function baseMatches(source) { 37471 var matchData = getMatchData(source); 37472 return 1 == matchData.length && matchData[0][2] ? matchesStrictComparable(matchData[0][0], matchData[0][1]) : function(object) { 37473 return object === source || baseIsMatch(object, source, matchData); 37474 }; 37475 } 37476 var baseIsMatch = __webpack_require__(816), getMatchData = __webpack_require__(817), matchesStrictComparable = __webpack_require__(324); 37477 module.exports = baseMatches; 37478 }, function(module, exports, __webpack_require__) { 37479 function baseIsMatch(object, source, matchData, customizer) { 37480 var index = matchData.length, length = index, noCustomizer = !customizer; 37481 if (null == object) return !length; 37482 for (object = Object(object); index--; ) { 37483 var data = matchData[index]; 37484 if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) return !1; 37485 } 37486 for (;++index < length; ) { 37487 data = matchData[index]; 37488 var key = data[0], objValue = object[key], srcValue = data[1]; 37489 if (noCustomizer && data[2]) { 37490 if (void 0 === objValue && !(key in object)) return !1; 37491 } else { 37492 var stack = new Stack(); 37493 if (customizer) var result = customizer(objValue, srcValue, key, object, source, stack); 37494 if (!(void 0 === result ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) : result)) return !1; 37495 } 37496 } 37497 return !0; 37498 } 37499 var Stack = __webpack_require__(314), baseIsEqual = __webpack_require__(199), COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; 37500 module.exports = baseIsMatch; 37501 }, function(module, exports, __webpack_require__) { 37502 function getMatchData(object) { 37503 for (var result = keys(object), length = result.length; length--; ) { 37504 var key = result[length], value = object[key]; 37505 result[length] = [ key, value, isStrictComparable(value) ]; 37506 } 37507 return result; 37508 } 37509 var isStrictComparable = __webpack_require__(323), keys = __webpack_require__(200); 37510 module.exports = getMatchData; 37511 }, function(module, exports, __webpack_require__) { 37512 function baseMatchesProperty(path, srcValue) { 37513 return isKey(path) && isStrictComparable(srcValue) ? matchesStrictComparable(toKey(path), srcValue) : function(object) { 37514 var objValue = get(object, path); 37515 return void 0 === objValue && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG); 37516 }; 37517 } 37518 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; 37519 module.exports = baseMatchesProperty; 37520 }, function(module, exports, __webpack_require__) { 37521 function hasIn(object, path) { 37522 return null != object && hasPath(object, path, baseHasIn); 37523 } 37524 var baseHasIn = __webpack_require__(820), hasPath = __webpack_require__(821); 37525 module.exports = hasIn; 37526 }, function(module, exports) { 37527 function baseHasIn(object, key) { 37528 return null != object && key in Object(object); 37529 } 37530 module.exports = baseHasIn; 37531 }, function(module, exports, __webpack_require__) { 37532 function hasPath(object, path, hasFunc) { 37533 path = castPath(path, object); 37534 for (var index = -1, length = path.length, result = !1; ++index < length; ) { 37535 var key = toKey(path[index]); 37536 if (!(result = null != object && hasFunc(object, key))) break; 37537 object = object[key]; 37538 } 37539 return result || ++index != length ? result : !!(length = null == object ? 0 : object.length) && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object)); 37540 } 37541 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); 37542 module.exports = hasPath; 37543 }, function(module, exports, __webpack_require__) { 37544 function property(path) { 37545 return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path); 37546 } 37547 var baseProperty = __webpack_require__(823), basePropertyDeep = __webpack_require__(824), isKey = __webpack_require__(175), toKey = __webpack_require__(119); 37548 module.exports = property; 37549 }, function(module, exports) { 37550 function baseProperty(key) { 37551 return function(object) { 37552 return null == object ? void 0 : object[key]; 37553 }; 37554 } 37555 module.exports = baseProperty; 37556 }, function(module, exports, __webpack_require__) { 37557 function basePropertyDeep(path) { 37558 return function(object) { 37559 return baseGet(object, path); 37560 }; 37561 } 37562 var baseGet = __webpack_require__(269); 37563 module.exports = basePropertyDeep; 37564 }, function(module, exports, __webpack_require__) { 37565 var baseForOwn = __webpack_require__(826), createBaseEach = __webpack_require__(829), baseEach = createBaseEach(baseForOwn); 37566 module.exports = baseEach; 37567 }, function(module, exports, __webpack_require__) { 37568 function baseForOwn(object, iteratee) { 37569 return object && baseFor(object, iteratee, keys); 37570 } 37571 var baseFor = __webpack_require__(827), keys = __webpack_require__(200); 37572 module.exports = baseForOwn; 37573 }, function(module, exports, __webpack_require__) { 37574 var createBaseFor = __webpack_require__(828), baseFor = createBaseFor(); 37575 module.exports = baseFor; 37576 }, function(module, exports) { 37577 function createBaseFor(fromRight) { 37578 return function(object, iteratee, keysFunc) { 37579 for (var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length; length--; ) { 37580 var key = props[fromRight ? length : ++index]; 37581 if (!1 === iteratee(iterable[key], key, iterable)) break; 37582 } 37583 return object; 37584 }; 37585 } 37586 module.exports = createBaseFor; 37587 }, function(module, exports, __webpack_require__) { 37588 function createBaseEach(eachFunc, fromRight) { 37589 return function(collection, iteratee) { 37590 if (null == collection) return collection; 37591 if (!isArrayLike(collection)) return eachFunc(collection, iteratee); 37592 for (var length = collection.length, index = fromRight ? length : -1, iterable = Object(collection); (fromRight ? index-- : ++index < length) && !1 !== iteratee(iterable[index], index, iterable); ) ; 37593 return collection; 37594 }; 37595 } 37596 var isArrayLike = __webpack_require__(134); 37597 module.exports = createBaseEach; 37598 }, function(module, exports) { 37599 function baseSortBy(array, comparer) { 37600 var length = array.length; 37601 for (array.sort(comparer); length--; ) array[length] = array[length].value; 37602 return array; 37603 } 37604 module.exports = baseSortBy; 37605 }, function(module, exports, __webpack_require__) { 37606 function compareMultiple(object, other, orders) { 37607 for (var index = -1, objCriteria = object.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length; ++index < length; ) { 37608 var result = compareAscending(objCriteria[index], othCriteria[index]); 37609 if (result) { 37610 if (index >= ordersLength) return result; 37611 return result * ("desc" == orders[index] ? -1 : 1); 37612 } 37613 } 37614 return object.index - other.index; 37615 } 37616 var compareAscending = __webpack_require__(832); 37617 module.exports = compareMultiple; 37618 }, function(module, exports, __webpack_require__) { 37619 function compareAscending(value, other) { 37620 if (value !== other) { 37621 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); 37622 if (!othIsNull && !othIsSymbol && !valIsSymbol && value > other || valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol || valIsNull && othIsDefined && othIsReflexive || !valIsDefined && othIsReflexive || !valIsReflexive) return 1; 37623 if (!valIsNull && !valIsSymbol && !othIsSymbol && value < other || othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol || othIsNull && valIsDefined && valIsReflexive || !othIsDefined && valIsReflexive || !othIsReflexive) return -1; 37624 } 37625 return 0; 37626 } 37627 var isSymbol = __webpack_require__(67); 37628 module.exports = compareAscending; 37629 }, function(module, exports, __webpack_require__) { 37630 function baseRest(func, start) { 37631 return setToString(overRest(func, start, identity), func + ""); 37632 } 37633 var identity = __webpack_require__(68), overRest = __webpack_require__(834), setToString = __webpack_require__(836); 37634 module.exports = baseRest; 37635 }, function(module, exports, __webpack_require__) { 37636 function overRest(func, start, transform) { 37637 return start = nativeMax(void 0 === start ? func.length - 1 : start, 0), function() { 37638 for (var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length); ++index < length; ) array[index] = args[start + index]; 37639 index = -1; 37640 for (var otherArgs = Array(start + 1); ++index < start; ) otherArgs[index] = args[index]; 37641 return otherArgs[start] = transform(array), apply(func, this, otherArgs); 37642 }; 37643 } 37644 var apply = __webpack_require__(835), nativeMax = Math.max; 37645 module.exports = overRest; 37646 }, function(module, exports) { 37647 function apply(func, thisArg, args) { 37648 switch (args.length) { 37649 case 0: 37650 return func.call(thisArg); 37651 37652 case 1: 37653 return func.call(thisArg, args[0]); 37654 37655 case 2: 37656 return func.call(thisArg, args[0], args[1]); 37657 37658 case 3: 37659 return func.call(thisArg, args[0], args[1], args[2]); 37660 } 37661 return func.apply(thisArg, args); 37662 } 37663 module.exports = apply; 37664 }, function(module, exports, __webpack_require__) { 37665 var baseSetToString = __webpack_require__(837), shortOut = __webpack_require__(840), setToString = shortOut(baseSetToString); 37666 module.exports = setToString; 37667 }, function(module, exports, __webpack_require__) { 37668 var constant = __webpack_require__(838), defineProperty = __webpack_require__(839), identity = __webpack_require__(68), baseSetToString = defineProperty ? function(func, string) { 37669 return defineProperty(func, "toString", { 37670 configurable: !0, 37671 enumerable: !1, 37672 value: constant(string), 37673 writable: !0 37674 }); 37675 } : identity; 37676 module.exports = baseSetToString; 37677 }, function(module, exports) { 37678 function constant(value) { 37679 return function() { 37680 return value; 37681 }; 37682 } 37683 module.exports = constant; 37684 }, function(module, exports, __webpack_require__) { 37685 var getNative = __webpack_require__(57), defineProperty = function() { 37686 try { 37687 var func = getNative(Object, "defineProperty"); 37688 return func({}, "", {}), func; 37689 } catch (e) {} 37690 }(); 37691 module.exports = defineProperty; 37692 }, function(module, exports) { 37693 function shortOut(func) { 37694 var count = 0, lastCalled = 0; 37695 return function() { 37696 var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled); 37697 if (lastCalled = stamp, remaining > 0) { 37698 if (++count >= HOT_COUNT) return arguments[0]; 37699 } else count = 0; 37700 return func.apply(void 0, arguments); 37701 }; 37702 } 37703 var HOT_COUNT = 800, HOT_SPAN = 16, nativeNow = Date.now; 37704 module.exports = shortOut; 37705 }, function(module, exports, __webpack_require__) { 37706 function max(array) { 37707 return array && array.length ? baseExtremum(array, identity, baseGt) : void 0; 37708 } 37709 var baseExtremum = __webpack_require__(135), baseGt = __webpack_require__(327), identity = __webpack_require__(68); 37710 module.exports = max; 37711 }, function(module, exports, __webpack_require__) { 37712 function flatMap(collection, iteratee) { 37713 return baseFlatten(map(collection, iteratee), 1); 37714 } 37715 var baseFlatten = __webpack_require__(322), map = __webpack_require__(843); 37716 module.exports = flatMap; 37717 }, function(module, exports, __webpack_require__) { 37718 function map(collection, iteratee) { 37719 return (isArray(collection) ? arrayMap : baseMap)(collection, baseIteratee(iteratee, 3)); 37720 } 37721 var arrayMap = __webpack_require__(179), baseIteratee = __webpack_require__(89), baseMap = __webpack_require__(325), isArray = __webpack_require__(13); 37722 module.exports = map; 37723 }, function(module, exports, __webpack_require__) { 37724 "use strict"; 37725 Object.defineProperty(exports, "__esModule", { 37726 value: !0 37727 }); 37728 var _getNiceTickValues = __webpack_require__(845); 37729 Object.defineProperty(exports, "getTickValues", { 37730 enumerable: !0, 37731 get: function() { 37732 return _getNiceTickValues.getTickValues; 37733 } 37734 }), Object.defineProperty(exports, "getNiceTickValues", { 37735 enumerable: !0, 37736 get: function() { 37737 return _getNiceTickValues.getNiceTickValues; 37738 } 37739 }), Object.defineProperty(exports, "getTickValuesFixedDomain", { 37740 enumerable: !0, 37741 get: function() { 37742 return _getNiceTickValues.getTickValuesFixedDomain; 37743 } 37744 }); 37745 }, function(module, exports, __webpack_require__) { 37746 "use strict"; 37747 function _toConsumableArray(arr) { 37748 if (Array.isArray(arr)) { 37749 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; 37750 return arr2; 37751 } 37752 return Array.from(arr); 37753 } 37754 function getValidInterval(_ref) { 37755 var _ref2 = _slicedToArray(_ref, 2), min = _ref2[0], max = _ref2[1], validMin = min, validMax = max; 37756 return min > max && (validMin = max, validMax = min), [ validMin, validMax ]; 37757 } 37758 function getFormatStep(roughStep, allowDecimals, correctionFactor) { 37759 if (roughStep <= 0) return 0; 37760 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)); 37761 return allowDecimals ? formatStep : Math.ceil(formatStep); 37762 } 37763 function getTickOfSingleValue(value, tickCount, allowDecimals) { 37764 var isFlt = _arithmetic2.default.isFloat(value), step = 1, middle = value; 37765 if (isFlt && allowDecimals) { 37766 var absVal = Math.abs(value); 37767 absVal < 1 ? (step = Math.pow(10, _arithmetic2.default.getDigitCount(value) - 1), 37768 middle = _arithmetic2.default.multiply(Math.floor(value / step), step)) : absVal > 1 && (middle = Math.floor(value)); 37769 } else 0 === value ? middle = Math.floor((tickCount - 1) / 2) : allowDecimals || (middle = Math.floor(value)); 37770 var middleIndex = Math.floor((tickCount - 1) / 2); 37771 return (0, _utils.compose)((0, _utils.map)(function(n) { 37772 return _arithmetic2.default.sum(middle, _arithmetic2.default.multiply(n - middleIndex, step)); 37773 }), _utils.range)(0, tickCount); 37774 } 37775 function calculateStep(min, max, tickCount, allowDecimals) { 37776 var correctionFactor = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : 0, step = getFormatStep((max - min) / (tickCount - 1), allowDecimals, correctionFactor), middle = void 0; 37777 min <= 0 && max >= 0 ? middle = 0 : (middle = _arithmetic2.default.divide(_arithmetic2.default.sum(min, max), 2), 37778 middle = _arithmetic2.default.minus(middle, _arithmetic2.default.modulo(middle, step)), 37779 middle = _arithmetic2.default.strip(middle, 16)); 37780 var belowCount = Math.ceil((middle - min) / step), upCount = Math.ceil((max - middle) / step), scaleCount = belowCount + upCount + 1; 37781 return scaleCount > tickCount ? calculateStep(min, max, tickCount, allowDecimals, correctionFactor + 1) : (scaleCount < tickCount && (upCount = max > 0 ? upCount + (tickCount - scaleCount) : upCount, 37782 belowCount = max > 0 ? belowCount : belowCount + (tickCount - scaleCount)), { 37783 step: step, 37784 tickMin: _arithmetic2.default.minus(middle, _arithmetic2.default.multiply(belowCount, step)), 37785 tickMax: _arithmetic2.default.sum(middle, _arithmetic2.default.multiply(upCount, step)) 37786 }); 37787 } 37788 function getNiceTickValuesFn(_ref3) { 37789 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]; 37790 if (cormin === cormax) return getTickOfSingleValue(cormin, tickCount, allowDecimals); 37791 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); 37792 return min > max ? (0, _utils.reverse)(values) : values; 37793 } 37794 function getTickValuesFn(_ref5) { 37795 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]; 37796 if (cormin === cormax) return getTickOfSingleValue(cormin, tickCount, allowDecimals); 37797 var step = getFormatStep((cormax - cormin) / (count - 1), allowDecimals, 0), fn = (0, 37798 _utils.compose)((0, _utils.map)(function(n) { 37799 return cormin + n * step; 37800 }), _utils.range), values = fn(0, count).filter(function(entry) { 37801 return entry >= cormin && entry <= cormax; 37802 }); 37803 return min > max ? (0, _utils.reverse)(values) : values; 37804 } 37805 function getTickValuesFixedDomainFn(_ref7, tickCount) { 37806 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]; 37807 if (cormin === cormax) return [ cormin ]; 37808 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 ]); 37809 return min > max ? (0, _utils.reverse)(values) : values; 37810 } 37811 Object.defineProperty(exports, "__esModule", { 37812 value: !0 37813 }), exports.getTickValuesFixedDomain = exports.getTickValues = exports.getNiceTickValues = void 0; 37814 var _slicedToArray = function() { 37815 function sliceIterator(arr, i) { 37816 var _arr = [], _n = !0, _d = !1, _e = void 0; 37817 try { 37818 for (var _s, _i = arr[Symbol.iterator](); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), 37819 !i || _arr.length !== i); _n = !0) ; 37820 } catch (err) { 37821 _d = !0, _e = err; 37822 } finally { 37823 try { 37824 !_n && _i.return && _i.return(); 37825 } finally { 37826 if (_d) throw _e; 37827 } 37828 } 37829 return _arr; 37830 } 37831 return function(arr, i) { 37832 if (Array.isArray(arr)) return arr; 37833 if (Symbol.iterator in Object(arr)) return sliceIterator(arr, i); 37834 throw new TypeError("Invalid attempt to destructure non-iterable instance"); 37835 }; 37836 }(), _utils = __webpack_require__(330), _arithmetic = __webpack_require__(846), _arithmetic2 = function(obj) { 37837 return obj && obj.__esModule ? obj : { 37838 default: obj 37839 }; 37840 }(_arithmetic); 37841 exports.getNiceTickValues = (0, _utils.memoize)(getNiceTickValuesFn), exports.getTickValues = (0, 37842 _utils.memoize)(getTickValuesFn), exports.getTickValuesFixedDomain = (0, _utils.memoize)(getTickValuesFixedDomainFn); 37843 }, function(module, exports, __webpack_require__) { 37844 "use strict"; 37845 function strip(num) { 37846 var precision = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 12; 37847 return +parseFloat(num.toPrecision(precision)); 37848 } 37849 function isFloat(num) { 37850 return /^([+-]?)\d*\.\d+$/.test(num); 37851 } 37852 function getDigitCount(value) { 37853 var abs = Math.abs(value); 37854 return 0 === value ? 1 : Math.floor(Math.log(abs) / Math.log(10)) + 1; 37855 } 37856 function getDecimalDigitCount(a) { 37857 var str = a ? "" + a : ""; 37858 if (str.indexOf("e") >= 0) return Math.abs(parseInt(str.slice(str.indexOf("e") + 1), 10)); 37859 var ary = str.split("."); 37860 return ary.length > 1 ? ary[1].length : 0; 37861 } 37862 function multiply(a, b) { 37863 var intA = parseInt(("" + a).replace(".", ""), 10), intB = parseInt(("" + b).replace(".", ""), 10), count = getDecimalDigitCount(a) + getDecimalDigitCount(b); 37864 return intA * intB / Math.pow(10, count); 37865 } 37866 function sum(a, b) { 37867 var count = Math.max(getDecimalDigitCount(a), getDecimalDigitCount(b)); 37868 return count = Math.pow(10, count), (multiply(a, count) + multiply(b, count)) / count; 37869 } 37870 function minus(a, b) { 37871 return sum(a, -b); 37872 } 37873 function divide(a, b) { 37874 var ca = getDecimalDigitCount(a), cb = getDecimalDigitCount(b); 37875 return parseInt(("" + a).replace(".", ""), 10) / parseInt(("" + b).replace(".", ""), 10) * Math.pow(10, cb - ca); 37876 } 37877 function modulo(a, b) { 37878 var mod = Math.abs(b); 37879 return b <= 0 ? a : minus(a, multiply(mod, Math.floor(a / mod))); 37880 } 37881 function rangeStep(start, end, step) { 37882 for (var num = start, result = []; num < end; ) result.push(num), num = sum(num, step); 37883 return result; 37884 } 37885 Object.defineProperty(exports, "__esModule", { 37886 value: !0 37887 }); 37888 var _utils = __webpack_require__(330), interpolateNumber = (0, _utils.curry)(function(a, b, t) { 37889 var newA = +a; 37890 return newA + t * (+b - newA); 37891 }), uninterpolateNumber = (0, _utils.curry)(function(a, b, x) { 37892 var diff = b - +a; 37893 return diff = diff || 1 / 0, (x - a) / diff; 37894 }), uninterpolateTruncation = (0, _utils.curry)(function(a, b, x) { 37895 var diff = b - +a; 37896 return diff = diff || 1 / 0, Math.max(0, Math.min(1, (x - a) / diff)); 37897 }); 37898 exports.default = { 37899 rangeStep: rangeStep, 37900 isFloat: isFloat, 37901 getDigitCount: getDigitCount, 37902 getDecimalDigitCount: getDecimalDigitCount, 37903 sum: sum, 37904 minus: minus, 37905 multiply: multiply, 37906 divide: divide, 37907 modulo: modulo, 37908 strip: strip, 37909 interpolateNumber: interpolateNumber, 37910 uninterpolateNumber: uninterpolateNumber, 37911 uninterpolateTruncation: uninterpolateTruncation 37912 }; 37913 }, function(module, __webpack_exports__, __webpack_require__) { 37914 "use strict"; 37915 function band() { 37916 function rescale() { 37917 var n = domain().length, reverse = range[1] < range[0], start = range[reverse - 0], stop = range[1 - reverse]; 37918 step = (stop - start) / Math.max(1, n - paddingInner + 2 * paddingOuter), round && (step = Math.floor(step)), 37919 start += (stop - start - step * (n - paddingInner)) * align, bandwidth = step * (1 - paddingInner), 37920 round && (start = Math.round(start), bandwidth = Math.round(bandwidth)); 37921 var values = Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__.e)(n).map(function(i) { 37922 return start + step * i; 37923 }); 37924 return ordinalRange(reverse ? values.reverse() : values); 37925 } 37926 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; 37927 return delete scale.unknown, scale.domain = function(_) { 37928 return arguments.length ? (domain(_), rescale()) : domain(); 37929 }, scale.range = function(_) { 37930 return arguments.length ? (range = [ +_[0], +_[1] ], rescale()) : range.slice(); 37931 }, scale.rangeRound = function(_) { 37932 return range = [ +_[0], +_[1] ], round = !0, rescale(); 37933 }, scale.bandwidth = function() { 37934 return bandwidth; 37935 }, scale.step = function() { 37936 return step; 37937 }, scale.round = function(_) { 37938 return arguments.length ? (round = !!_, rescale()) : round; 37939 }, scale.padding = function(_) { 37940 return arguments.length ? (paddingInner = paddingOuter = Math.max(0, Math.min(1, _)), 37941 rescale()) : paddingInner; 37942 }, scale.paddingInner = function(_) { 37943 return arguments.length ? (paddingInner = Math.max(0, Math.min(1, _)), rescale()) : paddingInner; 37944 }, scale.paddingOuter = function(_) { 37945 return arguments.length ? (paddingOuter = Math.max(0, Math.min(1, _)), rescale()) : paddingOuter; 37946 }, scale.align = function(_) { 37947 return arguments.length ? (align = Math.max(0, Math.min(1, _)), rescale()) : align; 37948 }, scale.copy = function() { 37949 return band().domain(domain()).range(range).round(round).paddingInner(paddingInner).paddingOuter(paddingOuter).align(align); 37950 }, rescale(); 37951 } 37952 function pointish(scale) { 37953 var copy = scale.copy; 37954 return scale.padding = scale.paddingOuter, delete scale.paddingInner, delete scale.paddingOuter, 37955 scale.copy = function() { 37956 return pointish(copy()); 37957 }, scale; 37958 } 37959 function point() { 37960 return pointish(band().paddingInner(1)); 37961 } 37962 __webpack_exports__.a = band, __webpack_exports__.b = point; 37963 var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(37), __WEBPACK_IMPORTED_MODULE_1__ordinal__ = __webpack_require__(344); 37964 }, function(module, __webpack_exports__, __webpack_require__) { 37965 "use strict"; 37966 __webpack_require__(334); 37967 }, function(module, __webpack_exports__, __webpack_require__) { 37968 "use strict"; 37969 }, function(module, __webpack_exports__, __webpack_require__) { 37970 "use strict"; 37971 __webpack_require__(338), __webpack_require__(332), __webpack_require__(851), __webpack_require__(337), 37972 __webpack_require__(852), __webpack_require__(339), __webpack_require__(340), __webpack_require__(341); 37973 }, function(module, __webpack_exports__, __webpack_require__) { 37974 "use strict"; 37975 __webpack_exports__.a = function(x) { 37976 return function() { 37977 return x; 37978 }; 37979 }; 37980 }, function(module, __webpack_exports__, __webpack_require__) { 37981 "use strict"; 37982 __webpack_exports__.a = function(x) { 37983 return x; 37984 }; 37985 }, function(module, __webpack_exports__, __webpack_require__) { 37986 "use strict"; 37987 __webpack_require__(338), __webpack_require__(69), __webpack_require__(90), __webpack_require__(204); 37988 }, function(module, __webpack_exports__, __webpack_require__) { 37989 "use strict"; 37990 __webpack_require__(335); 37991 }, function(module, __webpack_exports__, __webpack_require__) { 37992 "use strict"; 37993 }, function(module, __webpack_exports__, __webpack_require__) { 37994 "use strict"; 37995 __webpack_require__(90); 37996 }, function(module, __webpack_exports__, __webpack_require__) { 37997 "use strict"; 37998 __webpack_require__(69), __webpack_require__(90), __webpack_require__(204); 37999 }, function(module, __webpack_exports__, __webpack_require__) { 38000 "use strict"; 38001 }, function(module, __webpack_exports__, __webpack_require__) { 38002 "use strict"; 38003 }, function(module, __webpack_exports__, __webpack_require__) { 38004 "use strict"; 38005 __webpack_require__(69); 38006 }, function(module, __webpack_exports__, __webpack_require__) { 38007 "use strict"; 38008 }, function(module, __webpack_exports__, __webpack_require__) { 38009 "use strict"; 38010 }, function(module, __webpack_exports__, __webpack_require__) { 38011 "use strict"; 38012 __webpack_require__(343); 38013 }, function(module, __webpack_exports__, __webpack_require__) { 38014 "use strict"; 38015 var __WEBPACK_IMPORTED_MODULE_2__src_map__ = (__webpack_require__(865), __webpack_require__(866), 38016 __webpack_require__(205)); 38017 __webpack_require__.d(__webpack_exports__, "a", function() { 38018 return __WEBPACK_IMPORTED_MODULE_2__src_map__.a; 38019 }); 38020 __webpack_require__(867), __webpack_require__(868), __webpack_require__(869); 38021 }, function(module, __webpack_exports__, __webpack_require__) { 38022 "use strict"; 38023 __webpack_require__(205); 38024 }, function(module, __webpack_exports__, __webpack_require__) { 38025 "use strict"; 38026 function Set() {} 38027 function set(object, f) { 38028 var set = new Set(); 38029 if (object instanceof Set) object.each(function(value) { 38030 set.add(value); 38031 }); else if (object) { 38032 var i = -1, n = object.length; 38033 if (null == f) for (;++i < n; ) set.add(object[i]); else for (;++i < n; ) set.add(f(object[i], i, object)); 38034 } 38035 return set; 38036 } 38037 var __WEBPACK_IMPORTED_MODULE_0__map__ = __webpack_require__(205), proto = __WEBPACK_IMPORTED_MODULE_0__map__.a.prototype; 38038 Set.prototype = set.prototype = { 38039 constructor: Set, 38040 has: proto.has, 38041 add: function(value) { 38042 return value += "", this[__WEBPACK_IMPORTED_MODULE_0__map__.b + value] = value, 38043 this; 38044 }, 38045 remove: proto.remove, 38046 clear: proto.clear, 38047 values: proto.keys, 38048 size: proto.size, 38049 empty: proto.empty, 38050 each: proto.each 38051 }; 38052 }, function(module, __webpack_exports__, __webpack_require__) { 38053 "use strict"; 38054 }, function(module, __webpack_exports__, __webpack_require__) { 38055 "use strict"; 38056 }, function(module, __webpack_exports__, __webpack_require__) { 38057 "use strict"; 38058 }, function(module, __webpack_exports__, __webpack_require__) { 38059 "use strict"; 38060 function identity() { 38061 function scale(x) { 38062 return +x; 38063 } 38064 var domain = [ 0, 1 ]; 38065 return scale.invert = scale, scale.domain = scale.range = function(_) { 38066 return arguments.length ? (domain = __WEBPACK_IMPORTED_MODULE_0__array__.a.call(_, __WEBPACK_IMPORTED_MODULE_2__number__.a), 38067 scale) : domain.slice(); 38068 }, scale.copy = function() { 38069 return identity().domain(domain); 38070 }, Object(__WEBPACK_IMPORTED_MODULE_1__linear__.b)(scale); 38071 } 38072 __webpack_exports__.a = identity; 38073 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); 38074 }, function(module, __webpack_exports__, __webpack_require__) { 38075 "use strict"; 38076 function labConvert(o) { 38077 if (o instanceof Lab) return new Lab(o.l, o.a, o.b, o.opacity); 38078 if (o instanceof Hcl) { 38079 var h = o.h * __WEBPACK_IMPORTED_MODULE_2__math__.a; 38080 return new Lab(o.l, Math.cos(h) * o.c, Math.sin(h) * o.c, o.opacity); 38081 } 38082 o instanceof __WEBPACK_IMPORTED_MODULE_1__color__.b || (o = Object(__WEBPACK_IMPORTED_MODULE_1__color__.h)(o)); 38083 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); 38084 return new Lab(116 * y - 16, 500 * (x - y), 200 * (y - xyz2lab((.0193339 * b + .119192 * a + .9503041 * l) / Zn)), o.opacity); 38085 } 38086 function lab(l, a, b, opacity) { 38087 return 1 === arguments.length ? labConvert(l) : new Lab(l, a, b, null == opacity ? 1 : opacity); 38088 } 38089 function Lab(l, a, b, opacity) { 38090 this.l = +l, this.a = +a, this.b = +b, this.opacity = +opacity; 38091 } 38092 function xyz2lab(t) { 38093 return t > t3 ? Math.pow(t, 1 / 3) : t / t2 + t0; 38094 } 38095 function lab2xyz(t) { 38096 return t > t1 ? t * t * t : t2 * (t - t0); 38097 } 38098 function xyz2rgb(x) { 38099 return 255 * (x <= .0031308 ? 12.92 * x : 1.055 * Math.pow(x, 1 / 2.4) - .055); 38100 } 38101 function rgb2xyz(x) { 38102 return (x /= 255) <= .04045 ? x / 12.92 : Math.pow((x + .055) / 1.055, 2.4); 38103 } 38104 function hclConvert(o) { 38105 if (o instanceof Hcl) return new Hcl(o.h, o.c, o.l, o.opacity); 38106 o instanceof Lab || (o = labConvert(o)); 38107 var h = Math.atan2(o.b, o.a) * __WEBPACK_IMPORTED_MODULE_2__math__.b; 38108 return new Hcl(h < 0 ? h + 360 : h, Math.sqrt(o.a * o.a + o.b * o.b), o.l, o.opacity); 38109 } 38110 function hcl(h, c, l, opacity) { 38111 return 1 === arguments.length ? hclConvert(h) : new Hcl(h, c, l, null == opacity ? 1 : opacity); 38112 } 38113 function Hcl(h, c, l, opacity) { 38114 this.h = +h, this.c = +c, this.l = +l, this.opacity = +opacity; 38115 } 38116 __webpack_exports__.a = lab, __webpack_exports__.b = hcl; 38117 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; 38118 Object(__WEBPACK_IMPORTED_MODULE_0__define__.a)(Lab, lab, Object(__WEBPACK_IMPORTED_MODULE_0__define__.b)(__WEBPACK_IMPORTED_MODULE_1__color__.a, { 38119 brighter: function(k) { 38120 return new Lab(this.l + 18 * (null == k ? 1 : k), this.a, this.b, this.opacity); 38121 }, 38122 darker: function(k) { 38123 return new Lab(this.l - 18 * (null == k ? 1 : k), this.a, this.b, this.opacity); 38124 }, 38125 rgb: function() { 38126 var y = (this.l + 16) / 116, x = isNaN(this.a) ? y : y + this.a / 500, z = isNaN(this.b) ? y : y - this.b / 200; 38127 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); 38128 } 38129 })), Object(__WEBPACK_IMPORTED_MODULE_0__define__.a)(Hcl, hcl, Object(__WEBPACK_IMPORTED_MODULE_0__define__.b)(__WEBPACK_IMPORTED_MODULE_1__color__.a, { 38130 brighter: function(k) { 38131 return new Hcl(this.h, this.c, this.l + 18 * (null == k ? 1 : k), this.opacity); 38132 }, 38133 darker: function(k) { 38134 return new Hcl(this.h, this.c, this.l - 18 * (null == k ? 1 : k), this.opacity); 38135 }, 38136 rgb: function() { 38137 return labConvert(this).rgb(); 38138 } 38139 })); 38140 }, function(module, __webpack_exports__, __webpack_require__) { 38141 "use strict"; 38142 function cubehelixConvert(o) { 38143 if (o instanceof Cubehelix) return new Cubehelix(o.h, o.s, o.l, o.opacity); 38144 o instanceof __WEBPACK_IMPORTED_MODULE_1__color__.b || (o = Object(__WEBPACK_IMPORTED_MODULE_1__color__.h)(o)); 38145 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; 38146 return new Cubehelix(h < 0 ? h + 360 : h, s, l, o.opacity); 38147 } 38148 function cubehelix(h, s, l, opacity) { 38149 return 1 === arguments.length ? cubehelixConvert(h) : new Cubehelix(h, s, l, null == opacity ? 1 : opacity); 38150 } 38151 function Cubehelix(h, s, l, opacity) { 38152 this.h = +h, this.s = +s, this.l = +l, this.opacity = +opacity; 38153 } 38154 __webpack_exports__.a = cubehelix; 38155 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; 38156 Object(__WEBPACK_IMPORTED_MODULE_0__define__.a)(Cubehelix, cubehelix, Object(__WEBPACK_IMPORTED_MODULE_0__define__.b)(__WEBPACK_IMPORTED_MODULE_1__color__.a, { 38157 brighter: function(k) { 38158 return k = null == k ? __WEBPACK_IMPORTED_MODULE_1__color__.c : Math.pow(__WEBPACK_IMPORTED_MODULE_1__color__.c, k), 38159 new Cubehelix(this.h, this.s, this.l * k, this.opacity); 38160 }, 38161 darker: function(k) { 38162 return k = null == k ? __WEBPACK_IMPORTED_MODULE_1__color__.d : Math.pow(__WEBPACK_IMPORTED_MODULE_1__color__.d, k), 38163 new Cubehelix(this.h, this.s, this.l * k, this.opacity); 38164 }, 38165 rgb: function() { 38166 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); 38167 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); 38168 } 38169 })); 38170 }, function(module, __webpack_exports__, __webpack_require__) { 38171 "use strict"; 38172 __webpack_exports__.a = function(a, b) { 38173 return a = +a, b -= a, function(t) { 38174 return Math.round(a + b * t); 38175 }; 38176 }; 38177 }, function(module, __webpack_exports__, __webpack_require__) { 38178 "use strict"; 38179 function interpolateTransform(parse, pxComma, pxParen, degParen) { 38180 function pop(s) { 38181 return s.length ? s.pop() + " " : ""; 38182 } 38183 function translate(xa, ya, xb, yb, s, q) { 38184 if (xa !== xb || ya !== yb) { 38185 var i = s.push("translate(", null, pxComma, null, pxParen); 38186 q.push({ 38187 i: i - 4, 38188 x: Object(__WEBPACK_IMPORTED_MODULE_0__number__.a)(xa, xb) 38189 }, { 38190 i: i - 2, 38191 x: Object(__WEBPACK_IMPORTED_MODULE_0__number__.a)(ya, yb) 38192 }); 38193 } else (xb || yb) && s.push("translate(" + xb + pxComma + yb + pxParen); 38194 } 38195 function rotate(a, b, s, q) { 38196 a !== b ? (a - b > 180 ? b += 360 : b - a > 180 && (a += 360), q.push({ 38197 i: s.push(pop(s) + "rotate(", null, degParen) - 2, 38198 x: Object(__WEBPACK_IMPORTED_MODULE_0__number__.a)(a, b) 38199 })) : b && s.push(pop(s) + "rotate(" + b + degParen); 38200 } 38201 function skewX(a, b, s, q) { 38202 a !== b ? q.push({ 38203 i: s.push(pop(s) + "skewX(", null, degParen) - 2, 38204 x: Object(__WEBPACK_IMPORTED_MODULE_0__number__.a)(a, b) 38205 }) : b && s.push(pop(s) + "skewX(" + b + degParen); 38206 } 38207 function scale(xa, ya, xb, yb, s, q) { 38208 if (xa !== xb || ya !== yb) { 38209 var i = s.push(pop(s) + "scale(", null, ",", null, ")"); 38210 q.push({ 38211 i: i - 4, 38212 x: Object(__WEBPACK_IMPORTED_MODULE_0__number__.a)(xa, xb) 38213 }, { 38214 i: i - 2, 38215 x: Object(__WEBPACK_IMPORTED_MODULE_0__number__.a)(ya, yb) 38216 }); 38217 } else 1 === xb && 1 === yb || s.push(pop(s) + "scale(" + xb + "," + yb + ")"); 38218 } 38219 return function(a, b) { 38220 var s = [], q = []; 38221 return a = parse(a), b = parse(b), translate(a.translateX, a.translateY, b.translateX, b.translateY, s, q), 38222 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), 38223 a = b = null, function(t) { 38224 for (var o, i = -1, n = q.length; ++i < n; ) s[(o = q[i]).i] = o.x(t); 38225 return s.join(""); 38226 }; 38227 }; 38228 } 38229 var __WEBPACK_IMPORTED_MODULE_0__number__ = __webpack_require__(136), __WEBPACK_IMPORTED_MODULE_1__parse__ = __webpack_require__(875); 38230 interpolateTransform(__WEBPACK_IMPORTED_MODULE_1__parse__.a, "px, ", "px)", "deg)"), 38231 interpolateTransform(__WEBPACK_IMPORTED_MODULE_1__parse__.b, ", ", ")", ")"); 38232 }, function(module, __webpack_exports__, __webpack_require__) { 38233 "use strict"; 38234 function parseCss(value) { 38235 return "none" === value ? __WEBPACK_IMPORTED_MODULE_0__decompose__.b : (cssNode || (cssNode = document.createElement("DIV"), 38236 cssRoot = document.documentElement, cssView = document.defaultView), cssNode.style.transform = value, 38237 value = cssView.getComputedStyle(cssRoot.appendChild(cssNode), null).getPropertyValue("transform"), 38238 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])); 38239 } 38240 function parseSvg(value) { 38241 return null == value ? __WEBPACK_IMPORTED_MODULE_0__decompose__.b : (svgNode || (svgNode = document.createElementNS("http://www.w3.org/2000/svg“,”g”), 38242 svgNode.setAttribute("transform", value), (value = svgNode.transform.baseVal.consolidate()) ? (value = value.matrix, 38243 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); 38244 } 38245 __webpack_exports__.a = parseCss, __webpack_exports__.b = parseSvg; 38246 var cssNode, cssRoot, cssView, svgNode, __WEBPACK_IMPORTED_MODULE_0__decompose__ = __webpack_require__(876); 38247 }, function(module, __webpack_exports__, __webpack_require__) { 38248 "use strict"; 38249 __webpack_require__.d(__webpack_exports__, "b", function() { 38250 return identity; 38251 }); 38252 var degrees = 180 / Math.PI, identity = { 38253 translateX: 0, 38254 translateY: 0, 38255 rotate: 0, 38256 skewX: 0, 38257 scaleX: 1, 38258 scaleY: 1 38259 }; 38260 __webpack_exports__.a = function(a, b, c, d, e, f) { 38261 var scaleX, scaleY, skewX; 38262 return (scaleX = Math.sqrt(a * a + b * b)) && (a /= scaleX, b /= scaleX), (skewX = a * c + b * d) && (c -= a * skewX, 38263 d -= b * skewX), (scaleY = Math.sqrt(c * c + d * d)) && (c /= scaleY, d /= scaleY, 38264 skewX /= scaleY), a * d < b * c && (a = -a, b = -b, skewX = -skewX, scaleX = -scaleX), 38265 { 38266 translateX: e, 38267 translateY: f, 38268 rotate: Math.atan2(b, a) * degrees, 38269 skewX: Math.atan(skewX) * degrees, 38270 scaleX: scaleX, 38271 scaleY: scaleY 38272 }; 38273 }; 38274 }, function(module, __webpack_exports__, __webpack_require__) { 38275 "use strict"; 38276 Math.SQRT2; 38277 }, function(module, __webpack_exports__, __webpack_require__) { 38278 "use strict"; 38279 function hsl(hue) { 38280 return function(start, end) { 38281 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); 38282 return function(t) { 38283 return start.h = h(t), start.s = s(t), start.l = l(t), start.opacity = opacity(t), 38284 start + ""; 38285 }; 38286 }; 38287 } 38288 var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(46), __WEBPACK_IMPORTED_MODULE_1__color__ = __webpack_require__(93); 38289 hsl(__WEBPACK_IMPORTED_MODULE_1__color__.c), hsl(__WEBPACK_IMPORTED_MODULE_1__color__.a); 38290 }, function(module, __webpack_exports__, __webpack_require__) { 38291 "use strict"; 38292 __webpack_require__(46), __webpack_require__(93); 38293 }, function(module, __webpack_exports__, __webpack_require__) { 38294 "use strict"; 38295 function hcl(hue) { 38296 return function(start, end) { 38297 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); 38298 return function(t) { 38299 return start.h = h(t), start.c = c(t), start.l = l(t), start.opacity = opacity(t), 38300 start + ""; 38301 }; 38302 }; 38303 } 38304 var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(46), __WEBPACK_IMPORTED_MODULE_1__color__ = __webpack_require__(93); 38305 hcl(__WEBPACK_IMPORTED_MODULE_1__color__.c), hcl(__WEBPACK_IMPORTED_MODULE_1__color__.a); 38306 }, function(module, __webpack_exports__, __webpack_require__) { 38307 "use strict"; 38308 function cubehelix(hue) { 38309 return function cubehelixGamma(y) { 38310 function cubehelix(start, end) { 38311 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); 38312 return function(t) { 38313 return start.h = h(t), start.s = s(t), start.l = l(Math.pow(t, y)), start.opacity = opacity(t), 38314 start + ""; 38315 }; 38316 } 38317 return y = +y, cubehelix.gamma = cubehelixGamma, cubehelix; 38318 }(1); 38319 } 38320 __webpack_require__.d(__webpack_exports__, "a", function() { 38321 return cubehelixLong; 38322 }); 38323 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), 38324 cubehelix(__WEBPACK_IMPORTED_MODULE_1__color__.a)); 38325 }, function(module, __webpack_exports__, __webpack_require__) { 38326 "use strict"; 38327 }, function(module, __webpack_exports__, __webpack_require__) { 38328 "use strict"; 38329 var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(37), __WEBPACK_IMPORTED_MODULE_1_d3_format__ = __webpack_require__(354); 38330 __webpack_exports__.a = function(domain, count, specifier) { 38331 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); 38332 switch (specifier = Object(__WEBPACK_IMPORTED_MODULE_1_d3_format__.c)(null == specifier ? ",f" : specifier), 38333 specifier.type) { 38334 case "s": 38335 var value = Math.max(Math.abs(start), Math.abs(stop)); 38336 return null != specifier.precision || isNaN(precision = Object(__WEBPACK_IMPORTED_MODULE_1_d3_format__.e)(step, value)) || (specifier.precision = precision), 38337 Object(__WEBPACK_IMPORTED_MODULE_1_d3_format__.b)(specifier, value); 38338 38339 case "": 38340 case "e": 38341 case "g": 38342 case "p": 38343 case "r": 38344 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)); 38345 break; 38346 38347 case "f": 38348 case "%": 38349 null != specifier.precision || isNaN(precision = Object(__WEBPACK_IMPORTED_MODULE_1_d3_format__.d)(step)) || (specifier.precision = precision - 2 * ("%" === specifier.type)); 38350 } 38351 return Object(__WEBPACK_IMPORTED_MODULE_1_d3_format__.a)(specifier); 38352 }; 38353 }, function(module, __webpack_exports__, __webpack_require__) { 38354 "use strict"; 38355 __webpack_require__.d(__webpack_exports__, "a", function() { 38356 return format; 38357 }), __webpack_require__.d(__webpack_exports__, "b", function() { 38358 return formatPrefix; 38359 }); 38360 var locale, format, formatPrefix, __WEBPACK_IMPORTED_MODULE_0__locale__ = __webpack_require__(355); 38361 !function(definition) { 38362 locale = Object(__WEBPACK_IMPORTED_MODULE_0__locale__.a)(definition), format = locale.format, 38363 formatPrefix = locale.formatPrefix; 38364 }({ 38365 decimal: ".", 38366 thousands: ",", 38367 grouping: [ 3 ], 38368 currency: [ "$", "" ] 38369 }); 38370 }, function(module, __webpack_exports__, __webpack_require__) { 38371 "use strict"; 38372 __webpack_exports__.a = function(grouping, thousands) { 38373 return function(value, width) { 38374 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)), 38375 t.push(value.substring(i -= g, i + g)), !((length += g + 1) > width)); ) g = grouping[j = (j + 1) % grouping.length]; 38376 return t.reverse().join(thousands); 38377 }; 38378 }; 38379 }, function(module, __webpack_exports__, __webpack_require__) { 38380 "use strict"; 38381 __webpack_exports__.a = function(numerals) { 38382 return function(value) { 38383 return value.replace(/[0-9]/g, function(i) { 38384 return numerals[+i]; 38385 }); 38386 }; 38387 }; 38388 }, function(module, __webpack_exports__, __webpack_require__) { 38389 "use strict"; 38390 __webpack_exports__.a = function(x, p) { 38391 x = x.toPrecision(p); 38392 out: for (var i1, n = x.length, i = 1, i0 = -1; i < n; ++i) switch (x[i]) { 38393 case ".": 38394 i0 = i1 = i; 38395 break; 38396 38397 case "0": 38398 0 === i0 && (i0 = i), i1 = i; 38399 break; 38400 38401 case "e": 38402 break out; 38403 38404 default: 38405 i0 > 0 && (i0 = 0); 38406 } 38407 return i0 > 0 ? x.slice(0, i0) + x.slice(i1 + 1) : x; 38408 }; 38409 }, function(module, __webpack_exports__, __webpack_require__) { 38410 "use strict"; 38411 var __WEBPACK_IMPORTED_MODULE_0__formatDecimal__ = __webpack_require__(211); 38412 __webpack_exports__.a = function(x, p) { 38413 var d = Object(__WEBPACK_IMPORTED_MODULE_0__formatDecimal__.a)(x, p); 38414 if (!d) return x + ""; 38415 var coefficient = d[0], exponent = d[1]; 38416 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"); 38417 }; 38418 }, function(module, __webpack_exports__, __webpack_require__) { 38419 "use strict"; 38420 __webpack_exports__.a = function(x) { 38421 return x; 38422 }; 38423 }, function(module, __webpack_exports__, __webpack_require__) { 38424 "use strict"; 38425 var __WEBPACK_IMPORTED_MODULE_0__exponent__ = __webpack_require__(138); 38426 __webpack_exports__.a = function(step) { 38427 return Math.max(0, -Object(__WEBPACK_IMPORTED_MODULE_0__exponent__.a)(Math.abs(step))); 38428 }; 38429 }, function(module, __webpack_exports__, __webpack_require__) { 38430 "use strict"; 38431 var __WEBPACK_IMPORTED_MODULE_0__exponent__ = __webpack_require__(138); 38432 __webpack_exports__.a = function(step, value) { 38433 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))); 38434 }; 38435 }, function(module, __webpack_exports__, __webpack_require__) { 38436 "use strict"; 38437 var __WEBPACK_IMPORTED_MODULE_0__exponent__ = __webpack_require__(138); 38438 __webpack_exports__.a = function(step, max) { 38439 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; 38440 }; 38441 }, function(module, __webpack_exports__, __webpack_require__) { 38442 "use strict"; 38443 function deinterpolate(a, b) { 38444 return (b = Math.log(b / a)) ? function(x) { 38445 return Math.log(x / a) / b; 38446 } : Object(__WEBPACK_IMPORTED_MODULE_2__constant__.a)(b); 38447 } 38448 function reinterpolate(a, b) { 38449 return a < 0 ? function(t) { 38450 return -Math.pow(-b, t) * Math.pow(-a, 1 - t); 38451 } : function(t) { 38452 return Math.pow(b, t) * Math.pow(a, 1 - t); 38453 }; 38454 } 38455 function pow10(x) { 38456 return isFinite(x) ? +("1e" + x) : x < 0 ? 0 : x; 38457 } 38458 function powp(base) { 38459 return 10 === base ? pow10 : base === Math.E ? Math.exp : function(x) { 38460 return Math.pow(base, x); 38461 }; 38462 } 38463 function logp(base) { 38464 return base === Math.E ? Math.log : 10 === base && Math.log10 || 2 === base && Math.log2 || (base = Math.log(base), 38465 function(x) { 38466 return Math.log(x) / base; 38467 }); 38468 } 38469 function reflect(f) { 38470 return function(x) { 38471 return -f(-x); 38472 }; 38473 } 38474 function log() { 38475 function rescale() { 38476 return logs = logp(base), pows = powp(base), domain()[0] < 0 && (logs = reflect(logs), 38477 pows = reflect(pows)), scale; 38478 } 38479 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); 38480 return scale.base = function(_) { 38481 return arguments.length ? (base = +_, rescale()) : base; 38482 }, scale.domain = function(_) { 38483 return arguments.length ? (domain(_), rescale()) : domain(); 38484 }, scale.ticks = function(count) { 38485 var r, d = domain(), u = d[0], v = d[d.length - 1]; 38486 (r = v < u) && (i = u, u = v, v = i); 38487 var p, k, t, i = logs(u), j = logs(v), n = null == count ? 10 : +count, z = []; 38488 if (!(base % 1) && j - i < n) { 38489 if (i = Math.round(i) - 1, j = Math.round(j) + 1, u > 0) { 38490 for (;i < j; ++i) for (k = 1, p = pows(i); k < base; ++k) if (!((t = p * k) < u)) { 38491 if (t > v) break; 38492 z.push(t); 38493 } 38494 } else for (;i < j; ++i) for (k = base - 1, p = pows(i); k >= 1; --k) if (!((t = p * k) < u)) { 38495 if (t > v) break; 38496 z.push(t); 38497 } 38498 } else z = Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__.h)(i, j, Math.min(j - i, n)).map(pows); 38499 return r ? z.reverse() : z; 38500 }, scale.tickFormat = function(count, specifier) { 38501 if (null == specifier && (specifier = 10 === base ? ".0e" : ","), "function" != typeof specifier && (specifier = Object(__WEBPACK_IMPORTED_MODULE_1_d3_format__.a)(specifier)), 38502 count === 1 / 0) return specifier; 38503 null == count && (count = 10); 38504 var k = Math.max(1, base * count / scale.ticks().length); 38505 return function(d) { 38506 var i = d / pows(Math.round(logs(d))); 38507 return i * base < base - .5 && (i *= base), i <= k ? specifier(d) : ""; 38508 }; 38509 }, scale.nice = function() { 38510 return domain(Object(__WEBPACK_IMPORTED_MODULE_3__nice__.a)(domain(), { 38511 floor: function(x) { 38512 return pows(Math.floor(logs(x))); 38513 }, 38514 ceil: function(x) { 38515 return pows(Math.ceil(logs(x))); 38516 } 38517 })); 38518 }, scale.copy = function() { 38519 return Object(__WEBPACK_IMPORTED_MODULE_4__continuous__.a)(scale, log().base(base)); 38520 }, scale; 38521 } 38522 __webpack_exports__.a = log; 38523 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); 38524 }, function(module, __webpack_exports__, __webpack_require__) { 38525 "use strict"; 38526 function raise(x, exponent) { 38527 return x < 0 ? -Math.pow(-x, exponent) : Math.pow(x, exponent); 38528 } 38529 function pow() { 38530 function deinterpolate(a, b) { 38531 return (b = raise(b, exponent) - (a = raise(a, exponent))) ? function(x) { 38532 return (raise(x, exponent) - a) / b; 38533 } : Object(__WEBPACK_IMPORTED_MODULE_0__constant__.a)(b); 38534 } 38535 function reinterpolate(a, b) { 38536 return b = raise(b, exponent) - (a = raise(a, exponent)), function(t) { 38537 return raise(a + b * t, 1 / exponent); 38538 }; 38539 } 38540 var exponent = 1, scale = Object(__WEBPACK_IMPORTED_MODULE_2__continuous__.b)(deinterpolate, reinterpolate), domain = scale.domain; 38541 return scale.exponent = function(_) { 38542 return arguments.length ? (exponent = +_, domain(domain())) : exponent; 38543 }, scale.copy = function() { 38544 return Object(__WEBPACK_IMPORTED_MODULE_2__continuous__.a)(scale, pow().exponent(exponent)); 38545 }, Object(__WEBPACK_IMPORTED_MODULE_1__linear__.b)(scale); 38546 } 38547 function sqrt() { 38548 return pow().exponent(.5); 38549 } 38550 __webpack_exports__.a = pow, __webpack_exports__.b = sqrt; 38551 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); 38552 }, function(module, __webpack_exports__, __webpack_require__) { 38553 "use strict"; 38554 function quantile() { 38555 function rescale() { 38556 var i = 0, n = Math.max(1, range.length); 38557 for (thresholds = new Array(n - 1); ++i < n; ) thresholds[i - 1] = Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__.d)(domain, i / n); 38558 return scale; 38559 } 38560 function scale(x) { 38561 if (!isNaN(x = +x)) return range[Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__.b)(thresholds, x)]; 38562 } 38563 var domain = [], range = [], thresholds = []; 38564 return scale.invertExtent = function(y) { 38565 var i = range.indexOf(y); 38566 return i < 0 ? [ NaN, NaN ] : [ i > 0 ? thresholds[i - 1] : domain[0], i < thresholds.length ? thresholds[i] : domain[domain.length - 1] ]; 38567 }, scale.domain = function(_) { 38568 if (!arguments.length) return domain.slice(); 38569 domain = []; 38570 for (var d, i = 0, n = _.length; i < n; ++i) null == (d = _[i]) || isNaN(d = +d) || domain.push(d); 38571 return domain.sort(__WEBPACK_IMPORTED_MODULE_0_d3_array__.a), rescale(); 38572 }, scale.range = function(_) { 38573 return arguments.length ? (range = __WEBPACK_IMPORTED_MODULE_1__array__.b.call(_), 38574 rescale()) : range.slice(); 38575 }, scale.quantiles = function() { 38576 return thresholds.slice(); 38577 }, scale.copy = function() { 38578 return quantile().domain(domain).range(range); 38579 }, scale; 38580 } 38581 __webpack_exports__.a = quantile; 38582 var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(37), __WEBPACK_IMPORTED_MODULE_1__array__ = __webpack_require__(62); 38583 }, function(module, __webpack_exports__, __webpack_require__) { 38584 "use strict"; 38585 function quantize() { 38586 function scale(x) { 38587 if (x <= x) return range[Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__.b)(domain, x, 0, n)]; 38588 } 38589 function rescale() { 38590 var i = -1; 38591 for (domain = new Array(n); ++i < n; ) domain[i] = ((i + 1) * x1 - (i - n) * x0) / (n + 1); 38592 return scale; 38593 } 38594 var x0 = 0, x1 = 1, n = 1, domain = [ .5 ], range = [ 0, 1 ]; 38595 return scale.domain = function(_) { 38596 return arguments.length ? (x0 = +_[0], x1 = +_[1], rescale()) : [ x0, x1 ]; 38597 }, scale.range = function(_) { 38598 return arguments.length ? (n = (range = __WEBPACK_IMPORTED_MODULE_1__array__.b.call(_)).length - 1, 38599 rescale()) : range.slice(); 38600 }, scale.invertExtent = function(y) { 38601 var i = range.indexOf(y); 38602 return i < 0 ? [ NaN, NaN ] : i < 1 ? [ x0, domain[0] ] : i >= n ? [ domain[n - 1], x1 ] : [ domain[i - 1], domain[i] ]; 38603 }, scale.copy = function() { 38604 return quantize().domain([ x0, x1 ]).range(range); 38605 }, Object(__WEBPACK_IMPORTED_MODULE_2__linear__.b)(scale); 38606 } 38607 __webpack_exports__.a = quantize; 38608 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); 38609 }, function(module, __webpack_exports__, __webpack_require__) { 38610 "use strict"; 38611 function threshold() { 38612 function scale(x) { 38613 if (x <= x) return range[Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__.b)(domain, x, 0, n)]; 38614 } 38615 var domain = [ .5 ], range = [ 0, 1 ], n = 1; 38616 return scale.domain = function(_) { 38617 return arguments.length ? (domain = __WEBPACK_IMPORTED_MODULE_1__array__.b.call(_), 38618 n = Math.min(domain.length, range.length - 1), scale) : domain.slice(); 38619 }, scale.range = function(_) { 38620 return arguments.length ? (range = __WEBPACK_IMPORTED_MODULE_1__array__.b.call(_), 38621 n = Math.min(domain.length, range.length - 1), scale) : range.slice(); 38622 }, scale.invertExtent = function(y) { 38623 var i = range.indexOf(y); 38624 return [ domain[i - 1], domain[i] ]; 38625 }, scale.copy = function() { 38626 return threshold().domain(domain).range(range); 38627 }, scale; 38628 } 38629 __webpack_exports__.a = threshold; 38630 var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(37), __WEBPACK_IMPORTED_MODULE_1__array__ = __webpack_require__(62); 38631 }, function(module, __webpack_exports__, __webpack_require__) { 38632 "use strict"; 38633 var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(18), millisecond = Object(__WEBPACK_IMPORTED_MODULE_0__interval__.a)(function() {}, function(date, step) { 38634 date.setTime(+date + step); 38635 }, function(start, end) { 38636 return end - start; 38637 }); 38638 millisecond.every = function(k) { 38639 return k = Math.floor(k), isFinite(k) && k > 0 ? k > 1 ? Object(__WEBPACK_IMPORTED_MODULE_0__interval__.a)(function(date) { 38640 date.setTime(Math.floor(date / k) * k); 38641 }, function(date, step) { 38642 date.setTime(+date + step * k); 38643 }, function(start, end) { 38644 return (end - start) / k; 38645 }) : millisecond : null; 38646 }, __webpack_exports__.a = millisecond; 38647 millisecond.range; 38648 }, function(module, __webpack_exports__, __webpack_require__) { 38649 "use strict"; 38650 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) { 38651 date.setTime(Math.floor(date / __WEBPACK_IMPORTED_MODULE_1__duration__.d) * __WEBPACK_IMPORTED_MODULE_1__duration__.d); 38652 }, function(date, step) { 38653 date.setTime(+date + step * __WEBPACK_IMPORTED_MODULE_1__duration__.d); 38654 }, function(start, end) { 38655 return (end - start) / __WEBPACK_IMPORTED_MODULE_1__duration__.d; 38656 }, function(date) { 38657 return date.getUTCSeconds(); 38658 }); 38659 __webpack_exports__.a = second; 38660 second.range; 38661 }, function(module, __webpack_exports__, __webpack_require__) { 38662 "use strict"; 38663 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) { 38664 date.setTime(Math.floor(date / __WEBPACK_IMPORTED_MODULE_1__duration__.c) * __WEBPACK_IMPORTED_MODULE_1__duration__.c); 38665 }, function(date, step) { 38666 date.setTime(+date + step * __WEBPACK_IMPORTED_MODULE_1__duration__.c); 38667 }, function(start, end) { 38668 return (end - start) / __WEBPACK_IMPORTED_MODULE_1__duration__.c; 38669 }, function(date) { 38670 return date.getMinutes(); 38671 }); 38672 __webpack_exports__.a = minute; 38673 minute.range; 38674 }, function(module, __webpack_exports__, __webpack_require__) { 38675 "use strict"; 38676 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) { 38677 var offset = date.getTimezoneOffset() * __WEBPACK_IMPORTED_MODULE_1__duration__.c % __WEBPACK_IMPORTED_MODULE_1__duration__.b; 38678 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); 38679 }, function(date, step) { 38680 date.setTime(+date + step * __WEBPACK_IMPORTED_MODULE_1__duration__.b); 38681 }, function(start, end) { 38682 return (end - start) / __WEBPACK_IMPORTED_MODULE_1__duration__.b; 38683 }, function(date) { 38684 return date.getHours(); 38685 }); 38686 __webpack_exports__.a = hour; 38687 hour.range; 38688 }, function(module, __webpack_exports__, __webpack_require__) { 38689 "use strict"; 38690 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) { 38691 date.setHours(0, 0, 0, 0); 38692 }, function(date, step) { 38693 date.setDate(date.getDate() + step); 38694 }, function(start, end) { 38695 return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * __WEBPACK_IMPORTED_MODULE_1__duration__.c) / __WEBPACK_IMPORTED_MODULE_1__duration__.a; 38696 }, function(date) { 38697 return date.getDate() - 1; 38698 }); 38699 __webpack_exports__.a = day; 38700 day.range; 38701 }, function(module, __webpack_exports__, __webpack_require__) { 38702 "use strict"; 38703 function weekday(i) { 38704 return Object(__WEBPACK_IMPORTED_MODULE_0__interval__.a)(function(date) { 38705 date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7), date.setHours(0, 0, 0, 0); 38706 }, function(date, step) { 38707 date.setDate(date.getDate() + 7 * step); 38708 }, function(start, end) { 38709 return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * __WEBPACK_IMPORTED_MODULE_1__duration__.c) / __WEBPACK_IMPORTED_MODULE_1__duration__.e; 38710 }); 38711 } 38712 __webpack_require__.d(__webpack_exports__, "b", function() { 38713 return sunday; 38714 }), __webpack_require__.d(__webpack_exports__, "a", function() { 38715 return monday; 38716 }), __webpack_require__.d(__webpack_exports__, "c", function() { 38717 return thursday; 38718 }); 38719 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); 38720 sunday.range, monday.range, tuesday.range, wednesday.range, thursday.range, friday.range, 38721 saturday.range; 38722 }, function(module, __webpack_exports__, __webpack_require__) { 38723 "use strict"; 38724 var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(18), month = Object(__WEBPACK_IMPORTED_MODULE_0__interval__.a)(function(date) { 38725 date.setDate(1), date.setHours(0, 0, 0, 0); 38726 }, function(date, step) { 38727 date.setMonth(date.getMonth() + step); 38728 }, function(start, end) { 38729 return end.getMonth() - start.getMonth() + 12 * (end.getFullYear() - start.getFullYear()); 38730 }, function(date) { 38731 return date.getMonth(); 38732 }); 38733 __webpack_exports__.a = month; 38734 month.range; 38735 }, function(module, __webpack_exports__, __webpack_require__) { 38736 "use strict"; 38737 var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(18), year = Object(__WEBPACK_IMPORTED_MODULE_0__interval__.a)(function(date) { 38738 date.setMonth(0, 1), date.setHours(0, 0, 0, 0); 38739 }, function(date, step) { 38740 date.setFullYear(date.getFullYear() + step); 38741 }, function(start, end) { 38742 return end.getFullYear() - start.getFullYear(); 38743 }, function(date) { 38744 return date.getFullYear(); 38745 }); 38746 year.every = function(k) { 38747 return isFinite(k = Math.floor(k)) && k > 0 ? Object(__WEBPACK_IMPORTED_MODULE_0__interval__.a)(function(date) { 38748 date.setFullYear(Math.floor(date.getFullYear() / k) * k), date.setMonth(0, 1), date.setHours(0, 0, 0, 0); 38749 }, function(date, step) { 38750 date.setFullYear(date.getFullYear() + step * k); 38751 }) : null; 38752 }, __webpack_exports__.a = year; 38753 year.range; 38754 }, function(module, __webpack_exports__, __webpack_require__) { 38755 "use strict"; 38756 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) { 38757 date.setUTCSeconds(0, 0); 38758 }, function(date, step) { 38759 date.setTime(+date + step * __WEBPACK_IMPORTED_MODULE_1__duration__.c); 38760 }, function(start, end) { 38761 return (end - start) / __WEBPACK_IMPORTED_MODULE_1__duration__.c; 38762 }, function(date) { 38763 return date.getUTCMinutes(); 38764 }); 38765 __webpack_exports__.a = utcMinute; 38766 utcMinute.range; 38767 }, function(module, __webpack_exports__, __webpack_require__) { 38768 "use strict"; 38769 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) { 38770 date.setUTCMinutes(0, 0, 0); 38771 }, function(date, step) { 38772 date.setTime(+date + step * __WEBPACK_IMPORTED_MODULE_1__duration__.b); 38773 }, function(start, end) { 38774 return (end - start) / __WEBPACK_IMPORTED_MODULE_1__duration__.b; 38775 }, function(date) { 38776 return date.getUTCHours(); 38777 }); 38778 __webpack_exports__.a = utcHour; 38779 utcHour.range; 38780 }, function(module, __webpack_exports__, __webpack_require__) { 38781 "use strict"; 38782 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) { 38783 date.setUTCHours(0, 0, 0, 0); 38784 }, function(date, step) { 38785 date.setUTCDate(date.getUTCDate() + step); 38786 }, function(start, end) { 38787 return (end - start) / __WEBPACK_IMPORTED_MODULE_1__duration__.a; 38788 }, function(date) { 38789 return date.getUTCDate() - 1; 38790 }); 38791 __webpack_exports__.a = utcDay; 38792 utcDay.range; 38793 }, function(module, __webpack_exports__, __webpack_require__) { 38794 "use strict"; 38795 function utcWeekday(i) { 38796 return Object(__WEBPACK_IMPORTED_MODULE_0__interval__.a)(function(date) { 38797 date.setUTCDate(date.getUTCDate() - (date.getUTCDay() + 7 - i) % 7), date.setUTCHours(0, 0, 0, 0); 38798 }, function(date, step) { 38799 date.setUTCDate(date.getUTCDate() + 7 * step); 38800 }, function(start, end) { 38801 return (end - start) / __WEBPACK_IMPORTED_MODULE_1__duration__.e; 38802 }); 38803 } 38804 __webpack_require__.d(__webpack_exports__, "b", function() { 38805 return utcSunday; 38806 }), __webpack_require__.d(__webpack_exports__, "a", function() { 38807 return utcMonday; 38808 }), __webpack_require__.d(__webpack_exports__, "c", function() { 38809 return utcThursday; 38810 }); 38811 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); 38812 utcSunday.range, utcMonday.range, utcTuesday.range, utcWednesday.range, utcThursday.range, 38813 utcFriday.range, utcSaturday.range; 38814 }, function(module, __webpack_exports__, __webpack_require__) { 38815 "use strict"; 38816 var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(18), utcMonth = Object(__WEBPACK_IMPORTED_MODULE_0__interval__.a)(function(date) { 38817 date.setUTCDate(1), date.setUTCHours(0, 0, 0, 0); 38818 }, function(date, step) { 38819 date.setUTCMonth(date.getUTCMonth() + step); 38820 }, function(start, end) { 38821 return end.getUTCMonth() - start.getUTCMonth() + 12 * (end.getUTCFullYear() - start.getUTCFullYear()); 38822 }, function(date) { 38823 return date.getUTCMonth(); 38824 }); 38825 __webpack_exports__.a = utcMonth; 38826 utcMonth.range; 38827 }, function(module, __webpack_exports__, __webpack_require__) { 38828 "use strict"; 38829 var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(18), utcYear = Object(__WEBPACK_IMPORTED_MODULE_0__interval__.a)(function(date) { 38830 date.setUTCMonth(0, 1), date.setUTCHours(0, 0, 0, 0); 38831 }, function(date, step) { 38832 date.setUTCFullYear(date.getUTCFullYear() + step); 38833 }, function(start, end) { 38834 return end.getUTCFullYear() - start.getUTCFullYear(); 38835 }, function(date) { 38836 return date.getUTCFullYear(); 38837 }); 38838 utcYear.every = function(k) { 38839 return isFinite(k = Math.floor(k)) && k > 0 ? Object(__WEBPACK_IMPORTED_MODULE_0__interval__.a)(function(date) { 38840 date.setUTCFullYear(Math.floor(date.getUTCFullYear() / k) * k), date.setUTCMonth(0, 1), 38841 date.setUTCHours(0, 0, 0, 0); 38842 }, function(date, step) { 38843 date.setUTCFullYear(date.getUTCFullYear() + step * k); 38844 }) : null; 38845 }, __webpack_exports__.a = utcYear; 38846 utcYear.range; 38847 }, function(module, __webpack_exports__, __webpack_require__) { 38848 "use strict"; 38849 function parseIsoNative(string) { 38850 var date = new Date(string); 38851 return isNaN(date) ? null : date; 38852 } 38853 var __WEBPACK_IMPORTED_MODULE_0__isoFormat__ = __webpack_require__(363), __WEBPACK_IMPORTED_MODULE_1__defaultLocale__ = __webpack_require__(213); 38854 +new Date("2000-01-01T00:00:00.000Z") || Object(__WEBPACK_IMPORTED_MODULE_1__defaultLocale__.c)(__WEBPACK_IMPORTED_MODULE_0__isoFormat__.a); 38855 }, function(module, __webpack_exports__, __webpack_require__) { 38856 "use strict"; 38857 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); 38858 __webpack_exports__.a = function() { 38859 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) ]); 38860 }; 38861 }, function(module, __webpack_exports__, __webpack_require__) { 38862 "use strict"; 38863 var __WEBPACK_IMPORTED_MODULE_0__colors__ = __webpack_require__(94); 38864 __webpack_exports__.a = Object(__WEBPACK_IMPORTED_MODULE_0__colors__.a)("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"); 38865 }, function(module, __webpack_exports__, __webpack_require__) { 38866 "use strict"; 38867 var __WEBPACK_IMPORTED_MODULE_0__colors__ = __webpack_require__(94); 38868 __webpack_exports__.a = Object(__WEBPACK_IMPORTED_MODULE_0__colors__.a)("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"); 38869 }, function(module, __webpack_exports__, __webpack_require__) { 38870 "use strict"; 38871 var __WEBPACK_IMPORTED_MODULE_0__colors__ = __webpack_require__(94); 38872 __webpack_exports__.a = Object(__WEBPACK_IMPORTED_MODULE_0__colors__.a)("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"); 38873 }, function(module, __webpack_exports__, __webpack_require__) { 38874 "use strict"; 38875 var __WEBPACK_IMPORTED_MODULE_0__colors__ = __webpack_require__(94); 38876 __webpack_exports__.a = Object(__WEBPACK_IMPORTED_MODULE_0__colors__.a)("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"); 38877 }, function(module, __webpack_exports__, __webpack_require__) { 38878 "use strict"; 38879 var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(46), __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__ = __webpack_require__(92); 38880 __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)); 38881 }, function(module, __webpack_exports__, __webpack_require__) { 38882 "use strict"; 38883 __webpack_require__.d(__webpack_exports__, "c", function() { 38884 return warm; 38885 }), __webpack_require__.d(__webpack_exports__, "a", function() { 38886 return cool; 38887 }); 38888 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)(); 38889 __webpack_exports__.b = function(t) { 38890 (t < 0 || t > 1) && (t -= Math.floor(t)); 38891 var ts = Math.abs(t - .5); 38892 return rainbow.h = 360 * t - 100, rainbow.s = 1.5 - 1.5 * ts, rainbow.l = .8 - .9 * ts, 38893 rainbow + ""; 38894 }; 38895 }, function(module, __webpack_exports__, __webpack_require__) { 38896 "use strict"; 38897 function ramp(range) { 38898 var n = range.length; 38899 return function(t) { 38900 return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))]; 38901 }; 38902 } 38903 __webpack_require__.d(__webpack_exports__, "c", function() { 38904 return magma; 38905 }), __webpack_require__.d(__webpack_exports__, "b", function() { 38906 return inferno; 38907 }), __webpack_require__.d(__webpack_exports__, "d", function() { 38908 return plasma; 38909 }); 38910 var __WEBPACK_IMPORTED_MODULE_0__colors__ = __webpack_require__(94); 38911 __webpack_exports__.a = ramp(Object(__WEBPACK_IMPORTED_MODULE_0__colors__.a)("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")); 38912 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")); 38913 }, function(module, __webpack_exports__, __webpack_require__) { 38914 "use strict"; 38915 function sequential(interpolator) { 38916 function scale(x) { 38917 var t = (x - x0) / (x1 - x0); 38918 return interpolator(clamp ? Math.max(0, Math.min(1, t)) : t); 38919 } 38920 var x0 = 0, x1 = 1, clamp = !1; 38921 return scale.domain = function(_) { 38922 return arguments.length ? (x0 = +_[0], x1 = +_[1], scale) : [ x0, x1 ]; 38923 }, scale.clamp = function(_) { 38924 return arguments.length ? (clamp = !!_, scale) : clamp; 38925 }, scale.interpolator = function(_) { 38926 return arguments.length ? (interpolator = _, scale) : interpolator; 38927 }, scale.copy = function() { 38928 return sequential(interpolator).domain([ x0, x1 ]).clamp(clamp); 38929 }, Object(__WEBPACK_IMPORTED_MODULE_0__linear__.b)(scale); 38930 } 38931 __webpack_exports__.a = sequential; 38932 var __WEBPACK_IMPORTED_MODULE_0__linear__ = __webpack_require__(91); 38933 }, function(module, exports) { 38934 function last(array) { 38935 var length = null == array ? 0 : array.length; 38936 return length ? array[length - 1] : void 0; 38937 } 38938 module.exports = last; 38939 }, function(module, __webpack_exports__, __webpack_require__) { 38940 "use strict"; 38941 function _classCallCheck(instance, Constructor) { 38942 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 38943 } 38944 function _possibleConstructorReturn(self, call) { 38945 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 38946 return !call || "object" != typeof call && "function" != typeof call ? self : call; 38947 } 38948 function _inherits(subClass, superClass) { 38949 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 38950 subClass.prototype = Object.create(superClass && superClass.prototype, { 38951 constructor: { 38952 value: subClass, 38953 enumerable: !1, 38954 writable: !0, 38955 configurable: !0 38956 } 38957 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 38958 } 38959 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) { 38960 for (var i = 1; i < arguments.length; i++) { 38961 var source = arguments[i]; 38962 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 38963 } 38964 return target; 38965 }, _createClass = function() { 38966 function defineProperties(target, props) { 38967 for (var i = 0; i < props.length; i++) { 38968 var descriptor = props[i]; 38969 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 38970 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 38971 } 38972 } 38973 return function(Constructor, protoProps, staticProps) { 38974 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 38975 Constructor; 38976 }; 38977 }(), PolarGrid = Object(__WEBPACK_IMPORTED_MODULE_2__util_PureRender__.a)((_temp = _class2 = function(_Component) { 38978 function PolarGrid() { 38979 return _classCallCheck(this, PolarGrid), _possibleConstructorReturn(this, (PolarGrid.__proto__ || Object.getPrototypeOf(PolarGrid)).apply(this, arguments)); 38980 } 38981 return _inherits(PolarGrid, _Component), _createClass(PolarGrid, [ { 38982 key: "getPolygonPath", 38983 value: function(radius) { 38984 var _props = this.props, cx = _props.cx, cy = _props.cy, polarAngles = _props.polarAngles, path = ""; 38985 return polarAngles.forEach(function(angle, i) { 38986 var point = Object(__WEBPACK_IMPORTED_MODULE_3__util_PolarUtils__.e)(cx, cy, radius, angle); 38987 path += i ? "L " + point.x + "," + point.y : "M " + point.x + "," + point.y; 38988 }), path += "Z"; 38989 } 38990 }, { 38991 key: "renderPolarAngles", 38992 value: function() { 38993 var _props2 = this.props, cx = _props2.cx, cy = _props2.cy, innerRadius = _props2.innerRadius, outerRadius = _props2.outerRadius, polarAngles = _props2.polarAngles; 38994 if (!polarAngles || !polarAngles.length) return null; 38995 var props = _extends({ 38996 stroke: "#ccc" 38997 }, Object(__WEBPACK_IMPORTED_MODULE_4__util_ReactUtils__.k)(this.props)); 38998 return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("g", { 38999 className: "recharts-polar-grid-angle" 39000 }, polarAngles.map(function(entry, i) { 39001 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); 39002 return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("line", _extends({}, props, { 39003 key: "line-" + i, 39004 x1: start.x, 39005 y1: start.y, 39006 x2: end.x, 39007 y2: end.y 39008 })); 39009 })); 39010 } 39011 }, { 39012 key: "renderConcentricCircle", 39013 value: function(radius, index, extraProps) { 39014 var _props3 = this.props, cx = _props3.cx, cy = _props3.cy, props = _extends({ 39015 stroke: "#ccc" 39016 }, Object(__WEBPACK_IMPORTED_MODULE_4__util_ReactUtils__.k)(this.props), { 39017 fill: "none" 39018 }, extraProps); 39019 return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("circle", _extends({}, props, { 39020 className: "recharts-polar-grid-concentric-circle", 39021 key: "circle-" + index, 39022 cx: cx, 39023 cy: cy, 39024 r: radius 39025 })); 39026 } 39027 }, { 39028 key: "renderConcentricPolygon", 39029 value: function(radius, index, extraProps) { 39030 var props = _extends({ 39031 stroke: "#ccc" 39032 }, Object(__WEBPACK_IMPORTED_MODULE_4__util_ReactUtils__.k)(this.props), { 39033 fill: "none" 39034 }, extraProps); 39035 return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("path", _extends({}, props, { 39036 className: "recharts-polar-grid-concentric-polygon", 39037 key: "path-" + index, 39038 d: this.getPolygonPath(radius) 39039 })); 39040 } 39041 }, { 39042 key: "renderConcentricPath", 39043 value: function() { 39044 var _this2 = this, _props4 = this.props, polarRadius = _props4.polarRadius, gridType = _props4.gridType; 39045 return polarRadius && polarRadius.length ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("g", { 39046 className: "recharts-polar-grid-concentric" 39047 }, polarRadius.map(function(entry, i) { 39048 return "circle" === gridType ? _this2.renderConcentricCircle(entry, i) : _this2.renderConcentricPolygon(entry, i); 39049 })) : null; 39050 } 39051 }, { 39052 key: "render", 39053 value: function() { 39054 return this.props.outerRadius <= 0 ? null : __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("g", { 39055 className: "recharts-polar-grid" 39056 }, this.renderPolarAngles(), this.renderConcentricPath()); 39057 } 39058 } ]), PolarGrid; 39059 }(__WEBPACK_IMPORTED_MODULE_0_react__.Component), _class2.displayName = "PolarGrid", 39060 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_4__util_ReactUtils__.c, { 39061 cx: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 39062 cy: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 39063 innerRadius: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 39064 outerRadius: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number, 39065 polarAngles: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number), 39066 polarRadius: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.number), 39067 gridType: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf([ "polygon", "circle" ]) 39068 }), _class2.defaultProps = { 39069 cx: 0, 39070 cy: 0, 39071 innerRadius: 0, 39072 outerRadius: 0, 39073 gridType: "polygon" 39074 }, _class = _temp)) || _class; 39075 __webpack_exports__.a = PolarGrid; 39076 }, function(module, exports, __webpack_require__) { 39077 function minBy(array, iteratee) { 39078 return array && array.length ? baseExtremum(array, baseIteratee(iteratee, 2), baseLt) : void 0; 39079 } 39080 var baseExtremum = __webpack_require__(135), baseIteratee = __webpack_require__(89), baseLt = __webpack_require__(329); 39081 module.exports = minBy; 39082 }, function(module, exports, __webpack_require__) { 39083 function isPlainObject(value) { 39084 if (!isObjectLike(value) || baseGetTag(value) != objectTag) return !1; 39085 var proto = getPrototype(value); 39086 if (null === proto) return !0; 39087 var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor; 39088 return "function" == typeof Ctor && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString; 39089 } 39090 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); 39091 module.exports = isPlainObject; 39092 }, function(module, exports, __webpack_require__) { 39093 var overArg = __webpack_require__(320), getPrototype = overArg(Object.getPrototypeOf, Object); 39094 module.exports = getPrototype; 39095 }, function(module, exports, __webpack_require__) { 39096 function createRange(fromRight) { 39097 return function(start, end, step) { 39098 return step && "number" != typeof step && isIterateeCall(start, end, step) && (end = step = void 0), 39099 start = toFinite(start), void 0 === end ? (end = start, start = 0) : end = toFinite(end), 39100 step = void 0 === step ? start < end ? 1 : -1 : toFinite(step), baseRange(start, end, step, fromRight); 39101 }; 39102 } 39103 var baseRange = __webpack_require__(928), isIterateeCall = __webpack_require__(326), toFinite = __webpack_require__(929); 39104 module.exports = createRange; 39105 }, function(module, exports) { 39106 function baseRange(start, end, step, fromRight) { 39107 for (var index = -1, length = nativeMax(nativeCeil((end - start) / (step || 1)), 0), result = Array(length); length--; ) result[fromRight ? length : ++index] = start, 39108 start += step; 39109 return result; 39110 } 39111 var nativeCeil = Math.ceil, nativeMax = Math.max; 39112 module.exports = baseRange; 39113 }, function(module, exports, __webpack_require__) { 39114 function toFinite(value) { 39115 if (!value) return 0 === value ? value : 0; 39116 if ((value = toNumber(value)) === INFINITY || value === -INFINITY) { 39117 return (value < 0 ? -1 : 1) * MAX_INTEGER; 39118 } 39119 return value === value ? value : 0; 39120 } 39121 var toNumber = __webpack_require__(311), INFINITY = 1 / 0, MAX_INTEGER = 1.7976931348623157e308; 39122 module.exports = toFinite; 39123 }, function(module, __webpack_exports__, __webpack_require__) { 39124 "use strict"; 39125 function _defineProperty(obj, key, value) { 39126 return key in obj ? Object.defineProperty(obj, key, { 39127 value: value, 39128 enumerable: !0, 39129 configurable: !0, 39130 writable: !0 39131 }) : obj[key] = value, obj; 39132 } 39133 __webpack_require__.d(__webpack_exports__, "a", function() { 39134 return generatePrefixStyle; 39135 }); 39136 var _extends = Object.assign || function(target) { 39137 for (var i = 1; i < arguments.length; i++) { 39138 var source = arguments[i]; 39139 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 39140 } 39141 return target; 39142 }, PREFIX_LIST = [ "Webkit", "Moz", "O", "ms" ], generatePrefixStyle = function(name, value) { 39143 if (!name) return null; 39144 var camelName = name.replace(/(\w)/, function(v) { 39145 return v.toUpperCase(); 39146 }), result = PREFIX_LIST.reduce(function(res, entry) { 39147 return _extends({}, res, _defineProperty({}, entry + camelName, value)); 39148 }, {}); 39149 return result[name] = value, result; 39150 }; 39151 }, function(module, __webpack_exports__, __webpack_require__) { 39152 "use strict"; 39153 function _objectWithoutProperties(obj, keys) { 39154 var target = {}; 39155 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 39156 return target; 39157 } 39158 function _classCallCheck(instance, Constructor) { 39159 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 39160 } 39161 function _possibleConstructorReturn(self, call) { 39162 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 39163 return !call || "object" != typeof call && "function" != typeof call ? self : call; 39164 } 39165 function _inherits(subClass, superClass) { 39166 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 39167 subClass.prototype = Object.create(superClass && superClass.prototype, { 39168 constructor: { 39169 value: subClass, 39170 enumerable: !1, 39171 writable: !0, 39172 configurable: !0 39173 } 39174 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 39175 } 39176 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) { 39177 for (var i = 1; i < arguments.length; i++) { 39178 var source = arguments[i]; 39179 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 39180 } 39181 return target; 39182 }, _createClass = function() { 39183 function defineProperties(target, props) { 39184 for (var i = 0; i < props.length; i++) { 39185 var descriptor = props[i]; 39186 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 39187 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 39188 } 39189 } 39190 return function(Constructor, protoProps, staticProps) { 39191 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 39192 Constructor; 39193 }; 39194 }(), CartesianGrid = Object(__WEBPACK_IMPORTED_MODULE_3__util_PureRender__.a)((_temp = _class2 = function(_Component) { 39195 function CartesianGrid() { 39196 return _classCallCheck(this, CartesianGrid), _possibleConstructorReturn(this, (CartesianGrid.__proto__ || Object.getPrototypeOf(CartesianGrid)).apply(this, arguments)); 39197 } 39198 return _inherits(CartesianGrid, _Component), _createClass(CartesianGrid, [ { 39199 key: "renderLineItem", 39200 value: function(option, props) { 39201 var lineItem = void 0; 39202 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 { 39203 var x1 = props.x1, y1 = props.y1, x2 = props.x2, y2 = props.y2, key = props.key, others = _objectWithoutProperties(props, [ "x1", "y1", "x2", "y2", "key" ]); 39204 lineItem = __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("line", _extends({}, Object(__WEBPACK_IMPORTED_MODULE_4__util_ReactUtils__.k)(others), { 39205 x1: x1, 39206 y1: y1, 39207 x2: x2, 39208 y2: y2, 39209 fill: "none", 39210 key: key 39211 })); 39212 } 39213 return lineItem; 39214 } 39215 }, { 39216 key: "renderHorizontal", 39217 value: function(horizontalPoints) { 39218 var _this2 = this, _props = this.props, x = _props.x, width = _props.width, horizontal = _props.horizontal; 39219 if (!horizontalPoints || !horizontalPoints.length) return null; 39220 var items = horizontalPoints.map(function(entry, i) { 39221 var props = _extends({}, _this2.props, { 39222 x1: x, 39223 y1: entry, 39224 x2: x + width, 39225 y2: entry, 39226 key: "line-" + i, 39227 index: i 39228 }); 39229 return _this2.renderLineItem(horizontal, props); 39230 }); 39231 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("g", { 39232 className: "recharts-cartesian-grid-horizontal" 39233 }, items); 39234 } 39235 }, { 39236 key: "renderVertical", 39237 value: function(verticalPoints) { 39238 var _this3 = this, _props2 = this.props, y = _props2.y, height = _props2.height, vertical = _props2.vertical; 39239 if (!verticalPoints || !verticalPoints.length) return null; 39240 var items = verticalPoints.map(function(entry, i) { 39241 var props = _extends({}, _this3.props, { 39242 x1: entry, 39243 y1: y, 39244 x2: entry, 39245 y2: y + height, 39246 key: "line-" + i, 39247 index: i 39248 }); 39249 return _this3.renderLineItem(vertical, props); 39250 }); 39251 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("g", { 39252 className: "recharts-cartesian-grid-vertical" 39253 }, items); 39254 } 39255 }, { 39256 key: "renderVerticalStripes", 39257 value: function(verticalPoints) { 39258 var verticalFill = this.props.verticalFill; 39259 if (!verticalFill || !verticalFill.length) return null; 39260 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) { 39261 return a - b > 0; 39262 }); 39263 x !== verticalPointsUpdated[0] && verticalPointsUpdated.unshift(0); 39264 var items = verticalPointsUpdated.map(function(entry, i) { 39265 var lineWidth = verticalPointsUpdated[i + 1] ? verticalPointsUpdated[i + 1] - entry : x + width - entry; 39266 if (lineWidth <= 0) return null; 39267 var colorIndex = i % verticalFill.length; 39268 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("rect", { 39269 key: i, 39270 x: Math.round(entry + x - x), 39271 y: y, 39272 width: lineWidth, 39273 height: height, 39274 stroke: "none", 39275 fill: verticalFill[colorIndex], 39276 fillOpacity: fillOpacity, 39277 className: "recharts-cartesian-grid-bg" 39278 }); 39279 }); 39280 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("g", { 39281 className: "recharts-cartesian-gridstripes-vertical" 39282 }, items); 39283 } 39284 }, { 39285 key: "renderHorizontalStripes", 39286 value: function(horizontalPoints) { 39287 var horizontalFill = this.props.horizontalFill; 39288 if (!horizontalFill || !horizontalFill.length) return null; 39289 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) { 39290 return a - b > 0; 39291 }); 39292 y !== horizontalPointsUpdated[0] && horizontalPointsUpdated.unshift(0); 39293 var items = horizontalPointsUpdated.map(function(entry, i) { 39294 var lineHeight = horizontalPointsUpdated[i + 1] ? horizontalPointsUpdated[i + 1] - entry : y + height - entry; 39295 if (lineHeight <= 0) return null; 39296 var colorIndex = i % horizontalFill.length; 39297 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("rect", { 39298 key: i, 39299 y: Math.round(entry + y - y), 39300 x: x, 39301 height: lineHeight, 39302 width: width, 39303 stroke: "none", 39304 fill: horizontalFill[colorIndex], 39305 fillOpacity: fillOpacity, 39306 className: "recharts-cartesian-grid-bg" 39307 }); 39308 }); 39309 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("g", { 39310 className: "recharts-cartesian-gridstripes-horizontal" 39311 }, items); 39312 } 39313 }, { 39314 key: "renderBackground", 39315 value: function() { 39316 var fill = this.props.fill; 39317 if (!fill || "none" === fill) return null; 39318 var _props5 = this.props, fillOpacity = _props5.fillOpacity, x = _props5.x, y = _props5.y, width = _props5.width, height = _props5.height; 39319 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("rect", { 39320 x: x, 39321 y: y, 39322 width: width, 39323 height: height, 39324 stroke: "none", 39325 fill: fill, 39326 fillOpacity: fillOpacity, 39327 className: "recharts-cartesian-grid-bg" 39328 }); 39329 } 39330 }, { 39331 key: "render", 39332 value: function() { 39333 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; 39334 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; 39335 var _props7 = this.props, horizontalPoints = _props7.horizontalPoints, verticalPoints = _props7.verticalPoints; 39336 return horizontalPoints && horizontalPoints.length || !__WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default()(horizontalCoordinatesGenerator) || (horizontalPoints = horizontalCoordinatesGenerator({ 39337 yAxis: yAxis, 39338 width: chartWidth, 39339 height: chartHeight, 39340 offset: offset 39341 })), verticalPoints && verticalPoints.length || !__WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default()(verticalCoordinatesGenerator) || (verticalPoints = verticalCoordinatesGenerator({ 39342 xAxis: xAxis, 39343 width: chartWidth, 39344 height: chartHeight, 39345 offset: offset 39346 })), __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement("g", { 39347 className: "recharts-cartesian-grid" 39348 }, this.renderBackground(), horizontal && this.renderHorizontal(horizontalPoints), vertical && this.renderVertical(verticalPoints), horizontal && this.renderHorizontalStripes(horizontalPoints), vertical && this.renderVerticalStripes(verticalPoints)); 39349 } 39350 } ]), CartesianGrid; 39351 }(__WEBPACK_IMPORTED_MODULE_1_react__.Component), _class2.displayName = "CartesianGrid", 39352 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_4__util_ReactUtils__.c, { 39353 x: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 39354 y: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 39355 width: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 39356 height: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 39357 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 ]), 39358 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 ]), 39359 horizontalPoints: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number), 39360 verticalPoints: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number), 39361 horizontalCoordinatesGenerator: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, 39362 verticalCoordinatesGenerator: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, 39363 xAxis: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object, 39364 yAxis: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object, 39365 offset: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object, 39366 chartWidth: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 39367 chartHeight: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, 39368 verticalFill: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string), 39369 horizontalFill: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string) 39370 }), _class2.defaultProps = { 39371 horizontal: !0, 39372 vertical: !0, 39373 horizontalPoints: [], 39374 verticalPoints: [], 39375 stroke: "#ccc", 39376 fill: "none", 39377 verticalFill: [], 39378 horizontalFill: [] 39379 }, _class = _temp)) || _class; 39380 __webpack_exports__.a = CartesianGrid; 39381 }, function(module, __webpack_exports__, __webpack_require__) { 39382 "use strict"; 39383 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); 39384 __webpack_exports__.a = Object(__WEBPACK_IMPORTED_MODULE_0__generateCategoricalChart__.a)({ 39385 chartName: "LineChart", 39386 GraphicalChild: __WEBPACK_IMPORTED_MODULE_1__cartesian_Line__.a, 39387 axisComponents: [ { 39388 axisType: "xAxis", 39389 AxisComp: __WEBPACK_IMPORTED_MODULE_2__cartesian_XAxis__.a 39390 }, { 39391 axisType: "yAxis", 39392 AxisComp: __WEBPACK_IMPORTED_MODULE_3__cartesian_YAxis__.a 39393 } ], 39394 formatAxisMap: __WEBPACK_IMPORTED_MODULE_4__util_CartesianUtils__.a 39395 }); 39396 }, function(module, exports, __webpack_require__) { 39397 function throttle(func, wait, options) { 39398 var leading = !0, trailing = !0; 39399 if ("function" != typeof func) throw new TypeError(FUNC_ERROR_TEXT); 39400 return isObject(options) && (leading = "leading" in options ? !!options.leading : leading, 39401 trailing = "trailing" in options ? !!options.trailing : trailing), debounce(func, wait, { 39402 leading: leading, 39403 maxWait: wait, 39404 trailing: trailing 39405 }); 39406 } 39407 var debounce = __webpack_require__(310), isObject = __webpack_require__(32), FUNC_ERROR_TEXT = "Expected a function"; 39408 module.exports = throttle; 39409 }, function(module, __webpack_exports__, __webpack_require__) { 39410 "use strict"; 39411 __webpack_require__.d(__webpack_exports__, "b", function() { 39412 return eventCenter; 39413 }), __webpack_require__.d(__webpack_exports__, "a", function() { 39414 return SYNC_EVENT; 39415 }); 39416 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(); 39417 eventCenter.setMaxListeners && eventCenter.setMaxListeners(10); 39418 var SYNC_EVENT = "recharts.syncMouseEvents"; 39419 }, function(module, exports) { 39420 function EventEmitter() { 39421 this._events = this._events || {}, this._maxListeners = this._maxListeners || void 0; 39422 } 39423 function isFunction(arg) { 39424 return "function" == typeof arg; 39425 } 39426 function isNumber(arg) { 39427 return "number" == typeof arg; 39428 } 39429 function isObject(arg) { 39430 return "object" == typeof arg && null !== arg; 39431 } 39432 function isUndefined(arg) { 39433 return void 0 === arg; 39434 } 39435 module.exports = EventEmitter, EventEmitter.EventEmitter = EventEmitter, EventEmitter.prototype._events = void 0, 39436 EventEmitter.prototype._maxListeners = void 0, EventEmitter.defaultMaxListeners = 10, 39437 EventEmitter.prototype.setMaxListeners = function(n) { 39438 if (!isNumber(n) || n < 0 || isNaN(n)) throw TypeError("n must be a positive number"); 39439 return this._maxListeners = n, this; 39440 }, EventEmitter.prototype.emit = function(type) { 39441 var er, handler, len, args, i, listeners; 39442 if (this._events || (this._events = {}), "error" === type && (!this._events.error || isObject(this._events.error) && !this._events.error.length)) { 39443 if ((er = arguments[1]) instanceof Error) throw er; 39444 var err = new Error('Uncaught, unspecified "error" event. (' + er + ")"); 39445 throw err.context = er, err; 39446 } 39447 if (handler = this._events[type], isUndefined(handler)) return !1; 39448 if (isFunction(handler)) switch (arguments.length) { 39449 case 1: 39450 handler.call(this); 39451 break; 39452 39453 case 2: 39454 handler.call(this, arguments[1]); 39455 break; 39456 39457 case 3: 39458 handler.call(this, arguments[1], arguments[2]); 39459 break; 39460 39461 default: 39462 args = Array.prototype.slice.call(arguments, 1), handler.apply(this, args); 39463 } else if (isObject(handler)) for (args = Array.prototype.slice.call(arguments, 1), 39464 listeners = handler.slice(), len = listeners.length, i = 0; i < len; i++) listeners[i].apply(this, args); 39465 return !0; 39466 }, EventEmitter.prototype.addListener = function(type, listener) { 39467 var m; 39468 if (!isFunction(listener)) throw TypeError("listener must be a function"); 39469 return this._events || (this._events = {}), this._events.newListener && this.emit("newListener", type, isFunction(listener.listener) ? listener.listener : listener), 39470 this._events[type] ? isObject(this._events[type]) ? this._events[type].push(listener) : this._events[type] = [ this._events[type], listener ] : this._events[type] = listener, 39471 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, 39472 console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.", this._events[type].length), 39473 "function" == typeof console.trace && console.trace()), this; 39474 }, EventEmitter.prototype.on = EventEmitter.prototype.addListener, EventEmitter.prototype.once = function(type, listener) { 39475 function g() { 39476 this.removeListener(type, g), fired || (fired = !0, listener.apply(this, arguments)); 39477 } 39478 if (!isFunction(listener)) throw TypeError("listener must be a function"); 39479 var fired = !1; 39480 return g.listener = listener, this.on(type, g), this; 39481 }, EventEmitter.prototype.removeListener = function(type, listener) { 39482 var list, position, length, i; 39483 if (!isFunction(listener)) throw TypeError("listener must be a function"); 39484 if (!this._events || !this._events[type]) return this; 39485 if (list = this._events[type], length = list.length, position = -1, list === listener || isFunction(list.listener) && list.listener === listener) delete this._events[type], 39486 this._events.removeListener && this.emit("removeListener", type, listener); else if (isObject(list)) { 39487 for (i = length; i-- > 0; ) if (list[i] === listener || list[i].listener && list[i].listener === listener) { 39488 position = i; 39489 break; 39490 } 39491 if (position < 0) return this; 39492 1 === list.length ? (list.length = 0, delete this._events[type]) : list.splice(position, 1), 39493 this._events.removeListener && this.emit("removeListener", type, listener); 39494 } 39495 return this; 39496 }, EventEmitter.prototype.removeAllListeners = function(type) { 39497 var key, listeners; 39498 if (!this._events) return this; 39499 if (!this._events.removeListener) return 0 === arguments.length ? this._events = {} : this._events[type] && delete this._events[type], 39500 this; 39501 if (0 === arguments.length) { 39502 for (key in this._events) "removeListener" !== key && this.removeAllListeners(key); 39503 return this.removeAllListeners("removeListener"), this._events = {}, this; 39504 } 39505 if (listeners = this._events[type], isFunction(listeners)) this.removeListener(type, listeners); else if (listeners) for (;listeners.length; ) this.removeListener(type, listeners[listeners.length - 1]); 39506 return delete this._events[type], this; 39507 }, EventEmitter.prototype.listeners = function(type) { 39508 return this._events && this._events[type] ? isFunction(this._events[type]) ? [ this._events[type] ] : this._events[type].slice() : []; 39509 }, EventEmitter.prototype.listenerCount = function(type) { 39510 if (this._events) { 39511 var evlistener = this._events[type]; 39512 if (isFunction(evlistener)) return 1; 39513 if (evlistener) return evlistener.length; 39514 } 39515 return 0; 39516 }, EventEmitter.listenerCount = function(emitter, type) { 39517 return emitter.listenerCount(type); 39518 }; 39519 }, function(module, __webpack_exports__, __webpack_require__) { 39520 "use strict"; 39521 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); 39522 __webpack_exports__.a = Object(__WEBPACK_IMPORTED_MODULE_0__generateCategoricalChart__.a)({ 39523 chartName: "BarChart", 39524 GraphicalChild: __WEBPACK_IMPORTED_MODULE_1__cartesian_Bar__.a, 39525 axisComponents: [ { 39526 axisType: "xAxis", 39527 AxisComp: __WEBPACK_IMPORTED_MODULE_2__cartesian_XAxis__.a 39528 }, { 39529 axisType: "yAxis", 39530 AxisComp: __WEBPACK_IMPORTED_MODULE_3__cartesian_YAxis__.a 39531 } ], 39532 formatAxisMap: __WEBPACK_IMPORTED_MODULE_4__util_CartesianUtils__.a 39533 }); 39534 }, function(module, __webpack_exports__, __webpack_require__) { 39535 "use strict"; 39536 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); 39537 __webpack_exports__.a = Object(__WEBPACK_IMPORTED_MODULE_1__generateCategoricalChart__.a)({ 39538 chartName: "PieChart", 39539 GraphicalChild: __WEBPACK_IMPORTED_MODULE_5__polar_Pie__.a, 39540 eventType: "item", 39541 legendContent: "children", 39542 axisComponents: [ { 39543 axisType: "angleAxis", 39544 AxisComp: __WEBPACK_IMPORTED_MODULE_2__polar_PolarAngleAxis__.a 39545 }, { 39546 axisType: "radiusAxis", 39547 AxisComp: __WEBPACK_IMPORTED_MODULE_3__polar_PolarRadiusAxis__.a 39548 } ], 39549 formatAxisMap: __WEBPACK_IMPORTED_MODULE_4__util_PolarUtils__.b, 39550 defaultProps: { 39551 layout: "centric", 39552 startAngle: 0, 39553 endAngle: 360, 39554 cx: "50%", 39555 cy: "50%", 39556 innerRadius: 0, 39557 outerRadius: "80%" 39558 }, 39559 propTypes: { 39560 layout: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOf([ "centric" ]), 39561 startAngle: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, 39562 endAngle: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, 39563 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 ]), 39564 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 ]), 39565 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 ]), 39566 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 ]) 39567 } 39568 }); 39569 }, function(module, __webpack_exports__, __webpack_require__) { 39570 "use strict"; 39571 function _objectWithoutProperties(obj, keys) { 39572 var target = {}; 39573 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 39574 return target; 39575 } 39576 function _classCallCheck(instance, Constructor) { 39577 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 39578 } 39579 function _possibleConstructorReturn(self, call) { 39580 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 39581 return !call || "object" != typeof call && "function" != typeof call ? self : call; 39582 } 39583 function _inherits(subClass, superClass) { 39584 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 39585 subClass.prototype = Object.create(superClass && superClass.prototype, { 39586 constructor: { 39587 value: subClass, 39588 enumerable: !1, 39589 writable: !0, 39590 configurable: !0 39591 } 39592 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 39593 } 39594 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() { 39595 function defineProperties(target, props) { 39596 for (var i = 0; i < props.length; i++) { 39597 var descriptor = props[i]; 39598 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 39599 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 39600 } 39601 } 39602 return function(Constructor, protoProps, staticProps) { 39603 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 39604 Constructor; 39605 }; 39606 }(), _extends = Object.assign || function(target) { 39607 for (var i = 1; i < arguments.length; i++) { 39608 var source = arguments[i]; 39609 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 39610 } 39611 return target; 39612 }, computeNode = function computeNode(_ref) { 39613 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) { 39614 return computeNode({ 39615 depth: childDepth, 39616 node: child, 39617 index: i, 39618 valueKey: valueKey 39619 }); 39620 }) : null, value = void 0; 39621 return value = children && children.length ? computedChildren.reduce(function(result, child) { 39622 return result + child.value; 39623 }, 0) : __WEBPACK_IMPORTED_MODULE_1_lodash_isNaN___default()(node[valueKey]) || node[valueKey] <= 0 ? 0 : node[valueKey], 39624 _extends({}, node, { 39625 children: computedChildren, 39626 value: value, 39627 depth: depth, 39628 index: index 39629 }); 39630 }, filterRect = function(node) { 39631 return { 39632 x: node.x, 39633 y: node.y, 39634 width: node.width, 39635 height: node.height 39636 }; 39637 }, getAreaOfChildren = function(children, areaValueRatio) { 39638 var ratio = areaValueRatio < 0 ? 0 : areaValueRatio; 39639 return children.map(function(child) { 39640 var area = child.value * ratio; 39641 return _extends({}, child, { 39642 area: __WEBPACK_IMPORTED_MODULE_1_lodash_isNaN___default()(area) || area <= 0 ? 0 : area 39643 }); 39644 }); 39645 }, getWorstScore = function(row, parentSize, aspectRatio) { 39646 var parentArea = parentSize * parentSize, rowArea = row.area * row.area, _row$reduce = row.reduce(function(result, child) { 39647 return { 39648 min: Math.min(result.min, child.area), 39649 max: Math.max(result.max, child.area) 39650 }; 39651 }, { 39652 min: 1 / 0, 39653 max: 0 39654 }), min = _row$reduce.min, max = _row$reduce.max; 39655 return rowArea ? Math.max(parentArea * max * aspectRatio / rowArea, rowArea / (parentArea * min * aspectRatio)) : 1 / 0; 39656 }, horizontalPosition = function(row, parentSize, parentRect, isFlush) { 39657 var rowHeight = parentSize ? Math.round(row.area / parentSize) : 0; 39658 (isFlush || rowHeight > parentRect.height) && (rowHeight = parentRect.height); 39659 for (var curX = parentRect.x, child = void 0, i = 0, len = row.length; i < len; i++) child = row[i], 39660 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), 39661 curX += child.width; 39662 return child.z = !0, child.width += parentRect.x + parentRect.width - curX, _extends({}, parentRect, { 39663 y: parentRect.y + rowHeight, 39664 height: parentRect.height - rowHeight 39665 }); 39666 }, verticalPosition = function(row, parentSize, parentRect, isFlush) { 39667 var rowWidth = parentSize ? Math.round(row.area / parentSize) : 0; 39668 (isFlush || rowWidth > parentRect.width) && (rowWidth = parentRect.width); 39669 for (var curY = parentRect.y, child = void 0, i = 0, len = row.length; i < len; i++) child = row[i], 39670 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), 39671 curY += child.height; 39672 return child.z = !1, child.height += parentRect.y + parentRect.height - curY, _extends({}, parentRect, { 39673 x: parentRect.x + rowWidth, 39674 width: parentRect.width - rowWidth 39675 }); 39676 }, position = function(row, parentSize, parentRect, isFlush) { 39677 return parentSize === parentRect.width ? horizontalPosition(row, parentSize, parentRect, isFlush) : verticalPosition(row, parentSize, parentRect, isFlush); 39678 }, squarify = function squarify(node, aspectRatio) { 39679 var children = node.children; 39680 if (children && children.length) { 39681 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(); 39682 for (row.area = 0; tempChildren.length > 0; ) row.push(child = tempChildren[0]), 39683 row.area += child.area, score = getWorstScore(row, size, aspectRatio), score <= best ? (tempChildren.shift(), 39684 best = score) : (row.area -= row.pop().area, rect = position(row, size, rect, !1), 39685 size = Math.min(rect.width, rect.height), row.length = row.area = 0, best = 1 / 0); 39686 return row.length && (rect = position(row, size, rect, !0), row.length = row.area = 0), 39687 _extends({}, node, { 39688 children: scaleChildren.map(function(c) { 39689 return squarify(c, aspectRatio); 39690 }) 39691 }); 39692 } 39693 return node; 39694 }, Treemap = Object(__WEBPACK_IMPORTED_MODULE_11__util_PureRender__.a)((_temp2 = _class2 = function(_Component) { 39695 function Treemap() { 39696 var _ref2, _temp, _this, _ret; 39697 _classCallCheck(this, Treemap); 39698 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; 39699 return _temp = _this = _possibleConstructorReturn(this, (_ref2 = Treemap.__proto__ || Object.getPrototypeOf(Treemap)).call.apply(_ref2, [ this ].concat(args))), 39700 _this.state = _this.createDefaultState(), _ret = _temp, _possibleConstructorReturn(_this, _ret); 39701 } 39702 return _inherits(Treemap, _Component), _createClass(Treemap, [ { 39703 key: "componentWillReceiveProps", 39704 value: function(nextProps) { 39705 nextProps.data !== this.props.data && this.setState(this.createDefaultState()); 39706 } 39707 }, { 39708 key: "createDefaultState", 39709 value: function() { 39710 return { 39711 isTooltipActive: !1, 39712 activeNode: null 39713 }; 39714 } 39715 }, { 39716 key: "handleMouseEnter", 39717 value: function(node, e) { 39718 var _props = this.props, onMouseEnter = _props.onMouseEnter, children = _props.children; 39719 Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.i)(children, __WEBPACK_IMPORTED_MODULE_10__component_Tooltip__.a) ? this.setState({ 39720 isTooltipActive: !0, 39721 activeNode: node 39722 }, function() { 39723 onMouseEnter && onMouseEnter(node, e); 39724 }) : onMouseEnter && onMouseEnter(node, e); 39725 } 39726 }, { 39727 key: "handleMouseLeave", 39728 value: function(node, e) { 39729 var _props2 = this.props, onMouseLeave = _props2.onMouseLeave, children = _props2.children; 39730 Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.i)(children, __WEBPACK_IMPORTED_MODULE_10__component_Tooltip__.a) ? this.setState({ 39731 isTooltipActive: !1, 39732 activeNode: null 39733 }, function() { 39734 onMouseLeave && onMouseLeave(node, e); 39735 }) : onMouseLeave && onMouseLeave(node, e); 39736 } 39737 }, { 39738 key: "handleClick", 39739 value: function(node) { 39740 var onClick = this.props.onClick; 39741 onClick && onClick(node); 39742 } 39743 }, { 39744 key: "renderAnimatedItem", 39745 value: function(content, nodeProps, isLeaf) { 39746 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 = {}; 39747 return isLeaf && (event = { 39748 onMouseEnter: this.handleMouseEnter.bind(this, nodeProps), 39749 onMouseLeave: this.handleMouseLeave.bind(this, nodeProps), 39750 onClick: this.handleClick.bind(this, nodeProps) 39751 }), __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4_react_smooth___default.a, { 39752 from: { 39753 x: x, 39754 y: y, 39755 width: width, 39756 height: height 39757 }, 39758 to: { 39759 x: x, 39760 y: y, 39761 width: width, 39762 height: height 39763 }, 39764 duration: animationDuration, 39765 easing: animationEasing, 39766 isActive: isUpdateAnimationActive 39767 }, function(_ref3) { 39768 var currX = _ref3.x, currY = _ref3.y, currWidth = _ref3.width, currHeight = _ref3.height; 39769 return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4_react_smooth___default.a, { 39770 from: "translate(" + translateX + "px, " + translateX + "px)", 39771 to: "translate(0, 0)", 39772 attributeName: "transform", 39773 begin: animationBegin, 39774 easing: animationEasing, 39775 isActive: isAnimationActive, 39776 duration: animationDuration 39777 }, __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__container_Layer__.a, event, _this2.renderContentItem(content, _extends({}, nodeProps, { 39778 isAnimationActive: isAnimationActive, 39779 isUpdateAnimationActive: !isUpdateAnimationActive, 39780 width: currWidth, 39781 height: currHeight, 39782 x: currX, 39783 y: currY 39784 })))); 39785 }); 39786 } 39787 }, { 39788 key: "renderContentItem", 39789 value: function(content, nodeProps) { 39790 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({ 39791 fill: "#fff", 39792 stroke: "#000" 39793 }, nodeProps)); 39794 } 39795 }, { 39796 key: "renderNode", 39797 value: function(root, node, i) { 39798 var _this3 = this, content = this.props.content, nodeProps = _extends({}, Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.k)(this.props), node, { 39799 root: root 39800 }), isLeaf = !node.children || !node.children.length; 39801 return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__container_Layer__.a, { 39802 key: "recharts-treemap-node-" + i, 39803 className: "recharts-treemap-depth-" + node.depth 39804 }, this.renderAnimatedItem(content, nodeProps, isLeaf), node.children && node.children.length ? node.children.map(function(child, index) { 39805 return _this3.renderNode(node, child, index); 39806 }) : null); 39807 } 39808 }, { 39809 key: "renderAllNodes", 39810 value: function() { 39811 var _props4 = this.props, width = _props4.width, height = _props4.height, data = _props4.data, dataKey = _props4.dataKey, aspectRatio = _props4.aspectRatio, root = computeNode({ 39812 depth: 0, 39813 node: { 39814 children: data, 39815 x: 0, 39816 y: 0, 39817 width: width, 39818 height: height 39819 }, 39820 index: 0, 39821 valueKey: dataKey 39822 }), formatRoot = squarify(root, aspectRatio); 39823 return this.renderNode(formatRoot, formatRoot, 0); 39824 } 39825 }, { 39826 key: "renderTooltip", 39827 value: function() { 39828 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); 39829 if (!tooltipItem) return null; 39830 var _props6 = this.props, width = _props6.width, height = _props6.height, dataKey = _props6.dataKey, _state = this.state, isTooltipActive = _state.isTooltipActive, activeNode = _state.activeNode, viewBox = { 39831 x: 0, 39832 y: 0, 39833 width: width, 39834 height: height 39835 }, coordinate = activeNode ? { 39836 x: activeNode.x + activeNode.width / 2, 39837 y: activeNode.y + activeNode.height / 2 39838 } : null, payload = isTooltipActive && activeNode ? [ { 39839 payload: activeNode, 39840 name: Object(__WEBPACK_IMPORTED_MODULE_12__util_ChartUtils__.w)(activeNode, nameKey, ""), 39841 value: Object(__WEBPACK_IMPORTED_MODULE_12__util_ChartUtils__.w)(activeNode, dataKey) 39842 } ] : []; 39843 return __WEBPACK_IMPORTED_MODULE_2_react___default.a.cloneElement(tooltipItem, { 39844 viewBox: viewBox, 39845 active: isTooltipActive, 39846 coordinate: coordinate, 39847 label: "", 39848 payload: payload 39849 }); 39850 } 39851 }, { 39852 key: "render", 39853 value: function() { 39854 if (!Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.q)(this)) return null; 39855 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); 39856 return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("div", { 39857 className: __WEBPACK_IMPORTED_MODULE_5_classnames___default()("recharts-wrapper", className), 39858 style: _extends({}, style, { 39859 position: "relative", 39860 cursor: "default", 39861 width: width, 39862 height: height 39863 }) 39864 }, __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__container_Surface__.a, _extends({}, attrs, { 39865 width: width, 39866 height: height 39867 }), this.renderAllNodes(), Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.g)(children)), this.renderTooltip()); 39868 } 39869 } ]), Treemap; 39870 }(__WEBPACK_IMPORTED_MODULE_2_react__.Component), _class2.displayName = "Treemap", 39871 _class2.propTypes = { 39872 width: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 39873 height: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 39874 data: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.array, 39875 style: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object, 39876 aspectRatio: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 39877 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 ]), 39878 fill: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string, 39879 stroke: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string, 39880 className: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string, 39881 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 ]), 39882 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 ]), 39883 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 ]), 39884 onMouseEnter: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, 39885 onMouseLeave: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, 39886 onClick: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, 39887 isAnimationActive: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool, 39888 isUpdateAnimationActive: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool, 39889 animationBegin: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 39890 animationDuration: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, 39891 animationEasing: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf([ "ease", "ease-in", "ease-out", "ease-in-out", "linear" ]) 39892 }, _class2.defaultProps = { 39893 dataKey: "value", 39894 aspectRatio: .5 * (1 + Math.sqrt(5)), 39895 isAnimationActive: !Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.n)(), 39896 isUpdateAnimationActive: !Object(__WEBPACK_IMPORTED_MODULE_9__util_ReactUtils__.n)(), 39897 animationBegin: 0, 39898 animationDuration: 1500, 39899 animationEasing: "linear" 39900 }, _class = _temp2)) || _class; 39901 __webpack_exports__.a = Treemap; 39902 }, function(module, __webpack_exports__, __webpack_require__) { 39903 "use strict"; 39904 function _objectWithoutProperties(obj, keys) { 39905 var target = {}; 39906 for (var i in obj) keys.indexOf(i) >= 0 || Object.prototype.hasOwnProperty.call(obj, i) && (target[i] = obj[i]); 39907 return target; 39908 } 39909 function _classCallCheck(instance, Constructor) { 39910 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 39911 } 39912 function _possibleConstructorReturn(self, call) { 39913 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 39914 return !call || "object" != typeof call && "function" != typeof call ? self : call; 39915 } 39916 function _inherits(subClass, superClass) { 39917 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 39918 subClass.prototype = Object.create(superClass && superClass.prototype, { 39919 constructor: { 39920 value: subClass, 39921 enumerable: !1, 39922 writable: !0, 39923 configurable: !0 39924 } 39925 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 39926 } 39927 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() { 39928 function defineProperties(target, props) { 39929 for (var i = 0; i < props.length; i++) { 39930 var descriptor = props[i]; 39931 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 39932 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 39933 } 39934 } 39935 return function(Constructor, protoProps, staticProps) { 39936 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 39937 Constructor; 39938 }; 39939 }(), _extends = Object.assign || function(target) { 39940 for (var i = 1; i < arguments.length; i++) { 39941 var source = arguments[i]; 39942 for (var key in source) Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 39943 } 39944 return target; 39945 }, defaultCoordinateOfTooltip = { 39946 x: 0, 39947 y: 0 39948 }, interpolationGenerator = function(a, b) { 39949 var ka = +a, kb = b - ka; 39950 return function(t) { 39951 return ka + kb * t; 39952 }; 39953 }, centerY = function(node) { 39954 return node.y + node.dy / 2; 39955 }, getValue = function(entry) { 39956 return entry && entry.value || 0; 39957 }, getSumOfIds = function(links, ids) { 39958 return ids.reduce(function(result, id) { 39959 return result + getValue(links[id]); 39960 }, 0); 39961 }, getSumWithWeightedSource = function(tree, links, ids) { 39962 return ids.reduce(function(result, id) { 39963 var link = links[id], sourceNode = tree[link.source]; 39964 return result + centerY(sourceNode) * getValue(links[id]); 39965 }, 0); 39966 }, getSumWithWeightedTarget = function(tree, links, ids) { 39967 return ids.reduce(function(result, id) { 39968 var link = links[id], targetNode = tree[link.target]; 39969 return result + centerY(targetNode) * getValue(links[id]); 39970 }, 0); 39971 }, ascendingY = function(a, b) { 39972 return a.y - b.y; 39973 }, searchTargetsAndSources = function(links, id) { 39974 for (var sourceNodes = [], sourceLinks = [], targetNodes = [], targetLinks = [], i = 0, len = links.length; i < len; i++) { 39975 var link = links[i]; 39976 link.source === id && (targetNodes.push(link.target), targetLinks.push(i)), link.target === id && (sourceNodes.push(link.source), 39977 sourceLinks.push(i)); 39978 } 39979 return { 39980 sourceNodes: sourceNodes, 39981 sourceLinks: sourceLinks, 39982 targetLinks: targetLinks, 39983 targetNodes: targetNodes 39984 }; 39985 }, updateDepthOfTargets = function updateDepthOfTargets(tree, curNode) { 39986 for (var targetNodes = curNode.targetNodes, i = 0, len = targetNodes.length; i < len; i++) { 39987 var target = tree[targetNodes[i]]; 39988 target && (target.depth = Math.max(curNode.depth + 1, target.depth), updateDepthOfTargets(tree, target)); 39989 } 39990 }, getNodesTree = function(_ref, width, nodeWidth) { 39991 for (var nodes = _ref.nodes, links = _ref.links, tree = nodes.map(function(entry, index) { 39992 var result = searchTargetsAndSources(links, index); 39993 return _extends({}, entry, result, { 39994 value: Math.max(getSumOfIds(links, result.sourceLinks), getSumOfIds(links, result.targetLinks)), 39995 depth: 0 39996 }); 39997 }), i = 0, len = tree.length; i < len; i++) { 39998 var node = tree[i]; 39999 node.sourceNodes.length || updateDepthOfTargets(tree, node); 40000 } 40001 var maxDepth = __WEBPACK_IMPORTED_MODULE_3_lodash_maxBy___default()(tree, function(entry) { 40002 return entry.depth; 40003 }).depth; 40004 if (maxDepth >= 1) for (var childWidth = (width - nodeWidth) / maxDepth, _i = 0, _len = tree.length; _i < _len; _i++) { 40005 var _node = tree[_i]; 40006 _node.targetNodes.length || (_node.depth = maxDepth), _node.x = _node.depth * childWidth, 40007 _node.dx = nodeWidth; 40008 } 40009 return { 40010 tree: tree, 40011 maxDepth: maxDepth 40012 }; 40013 }, getDepthTree = function(tree) { 40014 for (var result = [], i = 0, len = tree.length; i < len; i++) { 40015 var node = tree[i]; 40016 result[node.depth] || (result[node.depth] = []), result[node.depth].push(node); 40017 } 40018 return result; 40019 }, updateYOfTree = function(depthTree, height, nodePadding, links) { 40020 for (var yRatio = __WEBPACK_IMPORTED_MODULE_2_lodash_min___default()(depthTree.map(function(nodes) { 40021 return (height - (nodes.length - 1) * nodePadding) / __WEBPACK_IMPORTED_MODULE_1_lodash_sumBy___default()(nodes, getValue); 40022 })), d = 0, maxDepth = depthTree.length; d < maxDepth; d++) for (var i = 0, len = depthTree[d].length; i < len; i++) { 40023 var node = depthTree[d][i]; 40024 node.y = i, node.dy = node.value * yRatio; 40025 } 40026 return links.map(function(link) { 40027 return _extends({}, link, { 40028 dy: getValue(link) * yRatio 40029 }); 40030 }); 40031 }, resolveCollisions = function(depthTree, height, nodePadding) { 40032 for (var i = 0, len = depthTree.length; i < len; i++) { 40033 var nodes = depthTree[i], n = nodes.length; 40034 nodes.sort(ascendingY); 40035 for (var y0 = 0, j = 0; j < n; j++) { 40036 var node = nodes[j], dy = y0 - node.y; 40037 dy > 0 && (node.y += dy), y0 = node.y + node.dy + nodePadding; 40038 } 40039 y0 = height + nodePadding; 40040 for (var _j = n - 1; _j >= 0; _j--) { 40041 var _node2 = nodes[_j], _dy = _node2.y + _node2.dy + nodePadding - y0; 40042 if (!(_dy > 0)) break; 40043 _node2.y -= _dy, y0 = _node2.y; 40044 } 40045 } 40046 }, relaxLeftToRight = function(tree, depthTree, links, alpha) { 40047 for (var i = 0, maxDepth = depthTree.length; i < maxDepth; i++) for (var nodes = depthTree[i], j = 0, len = nodes.length; j < len; j++) { 40048 var node = nodes[j]; 40049 if (node.sourceLinks.length) { 40050 var sourceSum = getSumOfIds(links, node.sourceLinks), weightedSum = getSumWithWeightedSource(tree, links, node.sourceLinks), y = weightedSum / sourceSum; 40051 node.y += (y - centerY(node)) * alpha; 40052 } 40053 } 40054 }, relaxRightToLeft = function(tree, depthTree, links, alpha) { 40055 for (var i = depthTree.length - 1; i >= 0; i--) for (var nodes = depthTree[i], j = 0, len = nodes.length; j < len; j++) { 40056 var node = nodes[j]; 40057 if (node.targetLinks.length) { 40058 var targetSum = getSumOfIds(links, node.targetLinks), weightedSum = getSumWithWeightedTarget(tree, links, node.targetLinks), y = weightedSum / targetSum; 40059 node.y += (y - centerY(node)) * alpha; 40060 } 40061 } 40062 }, updateYOfLinks = function(tree, links) { 40063 for (var i = 0, len = tree.length; i < len; i++) { 40064 var node = tree[i], sy = 0, ty = 0; 40065 node.targetLinks.sort(function(a, b) { 40066 return tree[links[a].target].y - tree[links[b].target].y; 40067 }), node.sourceLinks.sort(function(a, b) { 40068 return tree[links[a].source].y - tree[links[b].source].y; 40069 }); 40070 for (var j = 0, tLen = node.targetLinks.length; j < tLen; j++) { 40071 var link = links[node.targetLinks[j]]; 40072 link && (link.sy = sy, sy += link.dy); 40073 } 40074 for (var _j2 = 0, sLen = node.sourceLinks.length; _j2 < sLen; _j2++) { 40075 var _link = links[node.sourceLinks[_j2]]; 40076 _link && (_link.ty = ty, ty += _link.dy); 40077 } 40078 } 40079 }, computeData = function(_ref2) { 40080 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); 40081 resolveCollisions(depthTree, height, nodePadding); 40082 for (var alpha = 1, i = 1; i <= iterations; i++) relaxRightToLeft(tree, depthTree, newLinks, alpha *= .99), 40083 resolveCollisions(depthTree, height, nodePadding), relaxLeftToRight(tree, depthTree, newLinks, alpha), 40084 resolveCollisions(depthTree, height, nodePadding); 40085 return updateYOfLinks(tree, newLinks), { 40086 nodes: tree, 40087 links: newLinks 40088 }; 40089 }, getCoordinateOfTooltip = function(el, type) { 40090 return "node" === type ? { 40091 x: el.x + el.width / 2, 40092 y: el.y + el.height / 2 40093 } : { 40094 x: (el.sourceX + el.targetX) / 2, 40095 y: (el.sourceY + el.targetY) / 2 40096 }; 40097 }, getPayloadOfTooltip = function(el, type, nameKey) { 40098 var payload = el.payload; 40099 if ("node" === type) return [ { 40100 payload: el, 40101 name: Object(__WEBPACK_IMPORTED_MODULE_13__util_ChartUtils__.w)(payload, nameKey, ""), 40102 value: Object(__WEBPACK_IMPORTED_MODULE_13__util_ChartUtils__.w)(payload, "value") 40103 } ]; 40104 if (payload.source && payload.target) { 40105 return [ { 40106 payload: el, 40107 name: Object(__WEBPACK_IMPORTED_MODULE_13__util_ChartUtils__.w)(payload.source, nameKey, "") + " - " + Object(__WEBPACK_IMPORTED_MODULE_13__util_ChartUtils__.w)(payload.target, nameKey, ""), 40108 value: Object(__WEBPACK_IMPORTED_MODULE_13__util_ChartUtils__.w)(payload, "value") 40109 } ]; 40110 } 40111 return []; 40112 }, Sankey = Object(__WEBPACK_IMPORTED_MODULE_11__util_PureRender__.a)((_temp = _class2 = function(_Component) { 40113 function Sankey(props) { 40114 _classCallCheck(this, Sankey); 40115 var _this = _possibleConstructorReturn(this, (Sankey.__proto__ || Object.getPrototypeOf(Sankey)).call(this, props)); 40116 return _this.state = _this.createDefaultState(props), _this; 40117 } 40118 return _inherits(Sankey, _Component), _createClass(Sankey, [ { 40119 key: "componentWillReceiveProps", 40120 value: function(nextProps) { 40121 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; 40122 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)); 40123 } 40124 }, { 40125 key: "createDefaultState", 40126 value: function(props) { 40127 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({ 40128 data: data, 40129 width: contentWidth, 40130 height: contentHeight, 40131 iterations: iterations, 40132 nodeWidth: nodeWidth, 40133 nodePadding: nodePadding 40134 }), links = _computeData.links; 40135 return { 40136 activeElement: null, 40137 activeElementType: null, 40138 isTooltipActive: !1, 40139 nodes: _computeData.nodes, 40140 links: links 40141 }; 40142 } 40143 }, { 40144 key: "handleMouseEnter", 40145 value: function(el, type, e) { 40146 var _props2 = this.props, onMouseEnter = _props2.onMouseEnter, children = _props2.children; 40147 Object(__WEBPACK_IMPORTED_MODULE_12__util_ReactUtils__.i)(children, __WEBPACK_IMPORTED_MODULE_9__component_Tooltip__.a) ? this.setState({ 40148 activeElement: el, 40149 activeElementType: type, 40150 isTooltipActive: !0 40151 }, function() { 40152 onMouseEnter && onMouseEnter(el, type, e); 40153 }) : onMouseEnter && onMouseEnter(el, type, e); 40154 } 40155 }, { 40156 key: "handleMouseLeave", 40157 value: function(el, type, e) { 40158 var _props3 = this.props, onMouseLeave = _props3.onMouseLeave, children = _props3.children; 40159 Object(__WEBPACK_IMPORTED_MODULE_12__util_ReactUtils__.i)(children, __WEBPACK_IMPORTED_MODULE_9__component_Tooltip__.a) ? this.setState({ 40160 isTooltipActive: !1 40161 }, function() { 40162 onMouseLeave && onMouseLeave(el, type, e); 40163 }) : onMouseLeave && onMouseLeave(el, type, e); 40164 } 40165 }, { 40166 key: "renderLinkItem", 40167 value: function(option, props) { 40168 if (__WEBPACK_IMPORTED_MODULE_4_react___default.a.isValidElement(option)) return __WEBPACK_IMPORTED_MODULE_4_react___default.a.cloneElement(option, props); 40169 if (__WEBPACK_IMPORTED_MODULE_0_lodash_isFunction___default()(option)) return option(props); 40170 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" ]); 40171 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("path", _extends({ 40172 className: "recharts-sankey-link", 40173 d: "\n M" + sourceX + "," + sourceY + "\n C" + sourceControlX + "," + sourceY + " " + targetControlX + "," + targetY + " " + targetX + "," + targetY + "\n ", 40174 fill: "none", 40175 stroke: "#333", 40176 strokeWidth: linkWidth, 40177 strokeOpacity: "0.2" 40178 }, Object(__WEBPACK_IMPORTED_MODULE_12__util_ReactUtils__.k)(others))); 40179 } 40180 }, { 40181 key: "renderLinks", 40182 value: function(links, nodes) { 40183 var _this2 = this, _props4 = this.props, linkCurvature = _props4.linkCurvature, linkContent = _props4.link, margin = _props4.margin, top = margin.top || 0, left = margin.left || 0; 40184 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, { 40185 className: "recharts-sankey-links", 40186 key: "recharts-sankey-links" 40187 }, links.map(function(link, i) { 40188 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({ 40189 sourceX: sourceX, 40190 targetX: targetX, 40191 sourceY: sourceY, 40192 targetY: targetY, 40193 sourceControlX: sourceControlX, 40194 targetControlX: targetControlX, 40195 sourceRelativeY: sourceRelativeY, 40196 targetRelativeY: targetRelativeY, 40197 linkWidth: linkWidth, 40198 index: i, 40199 payload: _extends({}, link, { 40200 source: source, 40201 target: target 40202 }) 40203 }, Object(__WEBPACK_IMPORTED_MODULE_12__util_ReactUtils__.k)(linkContent)), events = { 40204 onMouseEnter: _this2.handleMouseEnter.bind(_this2, linkProps, "link"), 40205 onMouseLeave: _this2.handleMouseLeave.bind(_this2, linkProps, "link") 40206 }; 40207 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, _extends({ 40208 key: "link" + i 40209 }, events), _this2.renderLinkItem(linkContent, linkProps)); 40210 })); 40211 } 40212 }, { 40213 key: "renderNodeItem", 40214 value: function(option, props) { 40215 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({ 40216 className: "recharts-sankey-node", 40217 fill: "#0088fe", 40218 fillOpacity: "0.8" 40219 }, props)); 40220 } 40221 }, { 40222 key: "renderNodes", 40223 value: function(nodes) { 40224 var _this3 = this, _props5 = this.props, nodeContent = _props5.node, margin = _props5.margin, top = margin.top || 0, left = margin.left || 0; 40225 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, { 40226 className: "recharts-sankey-nodes", 40227 key: "recharts-sankey-nodes" 40228 }, nodes.map(function(node, i) { 40229 var x = node.x, y = node.y, dx = node.dx, dy = node.dy, nodeProps = _extends({}, Object(__WEBPACK_IMPORTED_MODULE_12__util_ReactUtils__.k)(nodeContent), { 40230 x: x + left, 40231 y: y + top, 40232 width: dx, 40233 height: dy, 40234 index: i, 40235 payload: node 40236 }), events = { 40237 onMouseEnter: _this3.handleMouseEnter.bind(_this3, nodeProps, "node"), 40238 onMouseLeave: _this3.handleMouseLeave.bind(_this3, nodeProps, "node") 40239 }; 40240 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8__container_Layer__.a, _extends({ 40241 key: "node" + i 40242 }, events), _this3.renderNodeItem(nodeContent, nodeProps)); 40243 })); 40244 } 40245 }, { 40246 key: "renderTooltip", 40247 value: function() { 40248 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); 40249 if (!tooltipItem) return null; 40250 var _state = this.state, isTooltipActive = _state.isTooltipActive, activeElement = _state.activeElement, activeElementType = _state.activeElementType, viewBox = { 40251 x: 0, 40252 y: 0, 40253 width: width, 40254 height: height 40255 }, coordinate = activeElement ? getCoordinateOfTooltip(activeElement, activeElementType) : defaultCoordinateOfTooltip, payload = activeElement ? getPayloadOfTooltip(activeElement, activeElementType, nameKey) : []; 40256 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.cloneElement(tooltipItem, { 40257 viewBox: viewBox, 40258 active: isTooltipActive, 40259 coordinate: coordinate, 40260 label: "", 40261 payload: payload 40262 }); 40263 } 40264 }, { 40265 key: "render", 40266 value: function() { 40267 if (!Object(__WEBPACK_IMPORTED_MODULE_12__util_ReactUtils__.q)(this)) return null; 40268 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); 40269 return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("div", { 40270 className: __WEBPACK_IMPORTED_MODULE_6_classnames___default()("recharts-wrapper", className), 40271 style: _extends({}, style, { 40272 position: "relative", 40273 cursor: "default", 40274 width: width, 40275 height: height 40276 }) 40277 }, __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__container_Surface__.a, _extends({}, attrs, { 40278 width: width, 40279 height: height 40280 }), Object(__WEBPACK_IMPORTED_MODULE_12__util_ReactUtils__.g)(children), this.renderLinks(links, nodes), this.renderNodes(nodes)), this.renderTooltip()); 40281 } 40282 } ]), Sankey; 40283 }(__WEBPACK_IMPORTED_MODULE_4_react__.Component), _class2.displayName = "Sankey", 40284 _class2.propTypes = _extends({}, __WEBPACK_IMPORTED_MODULE_12__util_ReactUtils__.c, __WEBPACK_IMPORTED_MODULE_12__util_ReactUtils__.a, { 40285 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 ]), 40286 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 ]), 40287 width: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 40288 height: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 40289 data: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.shape({ 40290 nodes: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.array, 40291 links: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.shape({ 40292 target: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 40293 source: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 40294 value: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number 40295 })) 40296 }), 40297 nodePadding: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 40298 nodeWidth: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 40299 linkCurvature: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 40300 iterations: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 40301 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 ]), 40302 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 ]), 40303 style: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object, 40304 className: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, 40305 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 ]), 40306 margin: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.shape({ 40307 top: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 40308 right: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 40309 bottom: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, 40310 left: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number 40311 }) 40312 }), _class2.defaultProps = { 40313 nodePadding: 10, 40314 nodeWidth: 10, 40315 nameKey: "name", 40316 dataKey: "value", 40317 linkCurvature: .5, 40318 iterations: 32, 40319 margin: { 40320 top: 5, 40321 right: 5, 40322 bottom: 5, 40323 left: 5 40324 } 40325 }, _class = _temp)) || _class; 40326 __webpack_exports__.a = Sankey; 40327 }, function(module, exports, __webpack_require__) { 40328 function sumBy(array, iteratee) { 40329 return array && array.length ? baseSum(array, baseIteratee(iteratee, 2)) : 0; 40330 } 40331 var baseIteratee = __webpack_require__(89), baseSum = __webpack_require__(941); 40332 module.exports = sumBy; 40333 }, function(module, exports) { 40334 function baseSum(array, iteratee) { 40335 for (var result, index = -1, length = array.length; ++index < length; ) { 40336 var current = iteratee(array[index]); 40337 void 0 !== current && (result = void 0 === result ? current : result + current); 40338 } 40339 return result; 40340 } 40341 module.exports = baseSum; 40342 }, function(module, __webpack_exports__, __webpack_require__) { 40343 "use strict"; 40344 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); 40345 __webpack_exports__.a = Object(__WEBPACK_IMPORTED_MODULE_1__generateCategoricalChart__.a)({ 40346 chartName: "RadarChart", 40347 GraphicalChild: __WEBPACK_IMPORTED_MODULE_2__polar_Radar__.a, 40348 axisComponents: [ { 40349 axisType: "angleAxis", 40350 AxisComp: __WEBPACK_IMPORTED_MODULE_3__polar_PolarAngleAxis__.a 40351 }, { 40352 axisType: "radiusAxis", 40353 AxisComp: __WEBPACK_IMPORTED_MODULE_4__polar_PolarRadiusAxis__.a 40354 } ], 40355 formatAxisMap: __WEBPACK_IMPORTED_MODULE_5__util_PolarUtils__.b, 40356 defaultProps: { 40357 layout: "centric", 40358 startAngle: 90, 40359 endAngle: -270, 40360 cx: "50%", 40361 cy: "50%", 40362 innerRadius: 0, 40363 outerRadius: "80%" 40364 }, 40365 propTypes: { 40366 layout: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOf([ "centric" ]), 40367 startAngle: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, 40368 endAngle: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, 40369 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 ]), 40370 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 ]), 40371 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 ]), 40372 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 ]) 40373 } 40374 }); 40375 }, function(module, __webpack_exports__, __webpack_require__) { 40376 "use strict"; 40377 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); 40378 __webpack_exports__.a = Object(__WEBPACK_IMPORTED_MODULE_0__generateCategoricalChart__.a)({ 40379 chartName: "ScatterChart", 40380 GraphicalChild: __WEBPACK_IMPORTED_MODULE_1__cartesian_Scatter__.a, 40381 eventType: "single", 40382 axisComponents: [ { 40383 axisType: "xAxis", 40384 AxisComp: __WEBPACK_IMPORTED_MODULE_2__cartesian_XAxis__.a 40385 }, { 40386 axisType: "yAxis", 40387 AxisComp: __WEBPACK_IMPORTED_MODULE_3__cartesian_YAxis__.a 40388 }, { 40389 axisType: "zAxis", 40390 AxisComp: __WEBPACK_IMPORTED_MODULE_4__cartesian_ZAxis__.a 40391 } ], 40392 formatAxisMap: __WEBPACK_IMPORTED_MODULE_5__util_CartesianUtils__.a 40393 }); 40394 }, function(module, __webpack_exports__, __webpack_require__) { 40395 "use strict"; 40396 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); 40397 __webpack_exports__.a = Object(__WEBPACK_IMPORTED_MODULE_0__generateCategoricalChart__.a)({ 40398 chartName: "AreaChart", 40399 GraphicalChild: __WEBPACK_IMPORTED_MODULE_1__cartesian_Area__.a, 40400 axisComponents: [ { 40401 axisType: "xAxis", 40402 AxisComp: __WEBPACK_IMPORTED_MODULE_2__cartesian_XAxis__.a 40403 }, { 40404 axisType: "yAxis", 40405 AxisComp: __WEBPACK_IMPORTED_MODULE_3__cartesian_YAxis__.a 40406 } ], 40407 formatAxisMap: __WEBPACK_IMPORTED_MODULE_4__util_CartesianUtils__.a 40408 }); 40409 }, function(module, __webpack_exports__, __webpack_require__) { 40410 "use strict"; 40411 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); 40412 __webpack_exports__.a = Object(__WEBPACK_IMPORTED_MODULE_1__generateCategoricalChart__.a)({ 40413 chartName: "RadialBarChart", 40414 GraphicalChild: __WEBPACK_IMPORTED_MODULE_5__polar_RadialBar__.a, 40415 legendContent: "children", 40416 axisComponents: [ { 40417 axisType: "angleAxis", 40418 AxisComp: __WEBPACK_IMPORTED_MODULE_2__polar_PolarAngleAxis__.a 40419 }, { 40420 axisType: "radiusAxis", 40421 AxisComp: __WEBPACK_IMPORTED_MODULE_3__polar_PolarRadiusAxis__.a 40422 } ], 40423 formatAxisMap: __WEBPACK_IMPORTED_MODULE_4__util_PolarUtils__.b, 40424 defaultProps: { 40425 layout: "radial", 40426 startAngle: 0, 40427 endAngle: 360, 40428 cx: "50%", 40429 cy: "50%", 40430 innerRadius: 0, 40431 outerRadius: "80%" 40432 }, 40433 propTypes: { 40434 layout: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOf([ "radial" ]), 40435 startAngle: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, 40436 endAngle: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, 40437 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 ]), 40438 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 ]), 40439 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 ]), 40440 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 ]) 40441 } 40442 }); 40443 }, function(module, __webpack_exports__, __webpack_require__) { 40444 "use strict"; 40445 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); 40446 __webpack_exports__.a = Object(__WEBPACK_IMPORTED_MODULE_0__generateCategoricalChart__.a)({ 40447 chartName: "ComposedChart", 40448 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 ], 40449 axisComponents: [ { 40450 axisType: "xAxis", 40451 AxisComp: __WEBPACK_IMPORTED_MODULE_5__cartesian_XAxis__.a 40452 }, { 40453 axisType: "yAxis", 40454 AxisComp: __WEBPACK_IMPORTED_MODULE_6__cartesian_YAxis__.a 40455 }, { 40456 axisType: "zAxis", 40457 AxisComp: __WEBPACK_IMPORTED_MODULE_7__cartesian_ZAxis__.a 40458 } ], 40459 formatAxisMap: __WEBPACK_IMPORTED_MODULE_8__util_CartesianUtils__.a 40460 }); 40461 }, function(module, exports, __webpack_require__) { 40462 "use strict"; 40463 function _interopRequireDefault(obj) { 40464 return obj && obj.__esModule ? obj : { 40465 default: obj 40466 }; 40467 } 40468 function _classCallCheck(instance, Constructor) { 40469 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 40470 } 40471 function _possibleConstructorReturn(self, call) { 40472 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 40473 return !call || "object" != typeof call && "function" != typeof call ? self : call; 40474 } 40475 function _inherits(subClass, superClass) { 40476 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 40477 subClass.prototype = Object.create(superClass && superClass.prototype, { 40478 constructor: { 40479 value: subClass, 40480 enumerable: !1, 40481 writable: !0, 40482 configurable: !0 40483 } 40484 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 40485 } 40486 Object.defineProperty(exports, "__esModule", { 40487 value: !0 40488 }); 40489 var _createClass = function() { 40490 function defineProperties(target, props) { 40491 for (var i = 0; i < props.length; i++) { 40492 var descriptor = props[i]; 40493 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 40494 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 40495 } 40496 } 40497 return function(Constructor, protoProps, staticProps) { 40498 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 40499 Constructor; 40500 }; 40501 }(), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _Grid = __webpack_require__(262), _Grid2 = _interopRequireDefault(_Grid), styles = { 40502 container: { 40503 flexWrap: "nowrap", 40504 height: "100%", 40505 maxWidth: "100%", 40506 margin: 0 40507 }, 40508 item: { 40509 flex: 1, 40510 padding: 0 40511 } 40512 }, ChartRow = function(_Component) { 40513 function ChartRow() { 40514 return _classCallCheck(this, ChartRow), _possibleConstructorReturn(this, (ChartRow.__proto__ || Object.getPrototypeOf(ChartRow)).apply(this, arguments)); 40515 } 40516 return _inherits(ChartRow, _Component), _createClass(ChartRow, [ { 40517 key: "render", 40518 value: function() { 40519 return _react2.default.createElement(_Grid2.default, { 40520 container: !0, 40521 direction: "row", 40522 style: styles.container, 40523 justify: "space-between" 40524 }, _react2.default.Children.map(this.props.children, function(child) { 40525 return _react2.default.createElement(_Grid2.default, { 40526 item: !0, 40527 xs: !0, 40528 style: styles.item 40529 }, child); 40530 })); 40531 } 40532 } ]), ChartRow; 40533 }(_react.Component); 40534 exports.default = ChartRow; 40535 }, function(module, exports, __webpack_require__) { 40536 "use strict"; 40537 function _interopRequireDefault(obj) { 40538 return obj && obj.__esModule ? obj : { 40539 default: obj 40540 }; 40541 } 40542 function _classCallCheck(instance, Constructor) { 40543 if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function"); 40544 } 40545 function _possibleConstructorReturn(self, call) { 40546 if (!self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 40547 return !call || "object" != typeof call && "function" != typeof call ? self : call; 40548 } 40549 function _inherits(subClass, superClass) { 40550 if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); 40551 subClass.prototype = Object.create(superClass && superClass.prototype, { 40552 constructor: { 40553 value: subClass, 40554 enumerable: !1, 40555 writable: !0, 40556 configurable: !0 40557 } 40558 }), superClass && (Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass); 40559 } 40560 Object.defineProperty(exports, "__esModule", { 40561 value: !0 40562 }), exports.bytePerSecPlotter = exports.bytePlotter = exports.percentPlotter = exports.multiplier = void 0; 40563 var _createClass = function() { 40564 function defineProperties(target, props) { 40565 for (var i = 0; i < props.length; i++) { 40566 var descriptor = props[i]; 40567 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, 40568 "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 40569 } 40570 } 40571 return function(Constructor, protoProps, staticProps) { 40572 return protoProps && defineProperties(Constructor.prototype, protoProps), staticProps && defineProperties(Constructor, staticProps), 40573 Constructor; 40574 }; 40575 }(), _react = __webpack_require__(0), _react2 = _interopRequireDefault(_react), _Typography = __webpack_require__(113), _Typography2 = _interopRequireDefault(_Typography), _common = __webpack_require__(81), multiplier = exports.multiplier = function() { 40576 var by = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 1; 40577 return function(x) { 40578 return x * by; 40579 }; 40580 }, unit = (exports.percentPlotter = function(text) { 40581 var mapper = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : multiplier(1); 40582 return function(payload) { 40583 var p = mapper(payload); 40584 return "number" != typeof p ? null : _react2.default.createElement(_Typography2.default, { 40585 type: "caption", 40586 color: "inherit" 40587 }, _react2.default.createElement("span", { 40588 style: _common.styles.light 40589 }, text), " ", p.toFixed(2), " %"); 40590 }; 40591 }, [ "", "Ki", "Mi", "Gi", "Ti", "Pi", "Ei", "Zi", "Yi" ]), simplifyBytes = function(x) { 40592 for (var i = 0; x > 1024 && i < 8; i++) x /= 1024; 40593 return x.toFixed(2).toString().concat(" ", unit[i], "B"); 40594 }, CustomTooltip = (exports.bytePlotter = function(text) { 40595 var mapper = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : multiplier(1); 40596 return function(payload) { 40597 var p = mapper(payload); 40598 return "number" != typeof p ? null : _react2.default.createElement(_Typography2.default, { 40599 type: "caption", 40600 color: "inherit" 40601 }, _react2.default.createElement("span", { 40602 style: _common.styles.light 40603 }, text), " ", simplifyBytes(p)); 40604 }; 40605 }, exports.bytePerSecPlotter = function(text) { 40606 var mapper = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : multiplier(1); 40607 return function(payload) { 40608 var p = mapper(payload); 40609 return "number" != typeof p ? null : _react2.default.createElement(_Typography2.default, { 40610 type: "caption", 40611 color: "inherit" 40612 }, _react2.default.createElement("span", { 40613 style: _common.styles.light 40614 }, text), " ", simplifyBytes(p), "/s"); 40615 }; 40616 }, function(_Component) { 40617 function CustomTooltip() { 40618 return _classCallCheck(this, CustomTooltip), _possibleConstructorReturn(this, (CustomTooltip.__proto__ || Object.getPrototypeOf(CustomTooltip)).apply(this, arguments)); 40619 } 40620 return _inherits(CustomTooltip, _Component), _createClass(CustomTooltip, [ { 40621 key: "render", 40622 value: function() { 40623 var _props = this.props, active = _props.active, payload = _props.payload, tooltip = _props.tooltip; 40624 return !active || "function" != typeof tooltip || !Array.isArray(payload) || payload.length < 1 ? null : tooltip(payload[0].value); 40625 } 40626 } ]), CustomTooltip; 40627 }(_react.Component)); 40628 exports.default = CustomTooltip; 40629 } ]);`))))))))))) 40630 40631 func bundleJsBytes() ([]byte, error) { 40632 return _bundleJs, nil 40633 } 40634 40635 func bundleJs() (*asset, error) { 40636 bytes, err := bundleJsBytes() 40637 if err != nil { 40638 return nil, err 40639 } 40640 40641 info := bindataFileInfo{name: "bundle.js", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} 40642 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}} 40643 return a, nil 40644 } 40645 40646 //资产加载并返回给定名称的资产。 40647 //如果找不到资产或 40648 //无法加载。 40649 func Asset(name string) ([]byte, error) { 40650 canonicalName := strings.Replace(name, "\\", "/", -1) 40651 if f, ok := _bindata[canonicalName]; ok { 40652 a, err := f() 40653 if err != nil { 40654 return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err) 40655 } 40656 return a.bytes, nil 40657 } 40658 return nil, fmt.Errorf("Asset %s not found", name) 40659 } 40660 40661 //asset string以字符串的形式返回资产内容(而不是以[]字节的形式)。 40662 func AssetString(name string) (string, error) { 40663 data, err := Asset(name) 40664 return string(data), err 40665 } 40666 40667 //mustasset与asset类似,但在asset返回错误时会出现恐慌。 40668 //它简化了全局变量的安全初始化。 40669 func MustAsset(name string) []byte { 40670 a, err := Asset(name) 40671 if err != nil { 40672 panic("asset: Asset(" + name + "): " + err.Error()) 40673 } 40674 40675 return a 40676 } 40677 40678 //mustassetstring就像assetstring,但当asset返回 40679 //错误。它简化了全局变量的安全初始化。 40680 func MustAssetString(name string) string { 40681 return string(MustAsset(name)) 40682 } 40683 40684 //asset info加载并返回给定名称的资产信息。 40685 //如果找不到资产或 40686 //无法加载。 40687 func AssetInfo(name string) (os.FileInfo, error) { 40688 canonicalName := strings.Replace(name, "\\", "/", -1) 40689 if f, ok := _bindata[canonicalName]; ok { 40690 a, err := f() 40691 if err != nil { 40692 return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err) 40693 } 40694 return a.info, nil 40695 } 40696 return nil, fmt.Errorf("AssetInfo %s not found", name) 40697 } 40698 40699 //assetdigest返回具有给定名称的文件摘要。它返回一个 40700 //如果找不到资产或无法加载摘要,则出错。 40701 func AssetDigest(name string) ([sha256.Size]byte, error) { 40702 canonicalName := strings.Replace(name, "\\", "/", -1) 40703 if f, ok := _bindata[canonicalName]; ok { 40704 a, err := f() 40705 if err != nil { 40706 return [sha256.Size]byte{}, fmt.Errorf("AssetDigest %s can't read by error: %v", name, err) 40707 } 40708 return a.digest, nil 40709 } 40710 return [sha256.Size]byte{}, fmt.Errorf("AssetDigest %s not found", name) 40711 } 40712 40713 //Digests返回所有已知文件及其校验和的映射。 40714 func Digests() (map[string][sha256.Size]byte, error) { 40715 mp := make(map[string][sha256.Size]byte, len(_bindata)) 40716 for name := range _bindata { 40717 a, err := _bindata[name]() 40718 if err != nil { 40719 return nil, err 40720 } 40721 mp[name] = a.digest 40722 } 40723 return mp, nil 40724 } 40725 40726 //assetnames返回资产的名称。 40727 func AssetNames() []string { 40728 names := make([]string, 0, len(_bindata)) 40729 for name := range _bindata { 40730 names = append(names, name) 40731 } 40732 return names 40733 } 40734 40735 //_bindata是一个表,包含每个资产生成器,映射到其名称。 40736 var _bindata = map[string]func() (*asset, error){ 40737 "index.html": indexHtml, 40738 40739 "bundle.js": bundleJs, 40740 } 40741 40742 //assetdir返回某个 40743 //通过go bindata嵌入到文件中的目录。 40744 //例如,如果对数据/运行go bindata。数据包含 40745 //以下层次结构: 40746 //数据/ 40747 //英尺·txt 40748 //IMG/ 40749 //A.PNG 40750 //B.PNG 40751 //然后assetdir(“data”)将返回[]字符串“foo.txt”,“img”, 40752 //assetdir(“data/img”)将返回[]字符串“a.png”、“b.png”, 40753 //assetdir(“foo.txt”)和assetdir(“notexist”)将返回错误,以及 40754 //assetdir(“”)将返回[]字符串“data”。 40755 func AssetDir(name string) ([]string, error) { 40756 node := _bintree 40757 if len(name) != 0 { 40758 canonicalName := strings.Replace(name, "\\", "/", -1) 40759 pathList := strings.Split(canonicalName, "/") 40760 for _, p := range pathList { 40761 node = node.Children[p] 40762 if node == nil { 40763 return nil, fmt.Errorf("Asset %s not found", name) 40764 } 40765 } 40766 } 40767 if node.Func != nil { 40768 return nil, fmt.Errorf("Asset %s not found", name) 40769 } 40770 rv := make([]string, 0, len(node.Children)) 40771 for childName := range node.Children { 40772 rv = append(rv, childName) 40773 } 40774 return rv, nil 40775 } 40776 40777 type bintree struct { 40778 Func func() (*asset, error) 40779 Children map[string]*bintree 40780 } 40781 40782 var _bintree = &bintree{nil, map[string]*bintree{ 40783 "bundle.js": {bundleJs, map[string]*bintree{}}, 40784 "index.html": {indexHtml, map[string]*bintree{}}, 40785 }} 40786 40787 //restoreset恢复给定目录下的资产。 40788 func RestoreAsset(dir, name string) error { 40789 data, err := Asset(name) 40790 if err != nil { 40791 return err 40792 } 40793 info, err := AssetInfo(name) 40794 if err != nil { 40795 return err 40796 } 40797 err = os.MkdirAll(_filePath(dir, filepath.Dir(name)), os.FileMode(0755)) 40798 if err != nil { 40799 return err 40800 } 40801 err = ioutil.WriteFile(_filePath(dir, name), data, info.Mode()) 40802 if err != nil { 40803 return err 40804 } 40805 return os.Chtimes(_filePath(dir, name), info.ModTime(), info.ModTime()) 40806 } 40807 40808 //restoresets递归地还原给定目录下的资产。 40809 func RestoreAssets(dir, name string) error { 40810 children, err := AssetDir(name) 40811 //文件 40812 if err != nil { 40813 return RestoreAsset(dir, name) 40814 } 40815 //迪尔 40816 for _, child := range children { 40817 err = RestoreAssets(dir, filepath.Join(name, child)) 40818 if err != nil { 40819 return err 40820 } 40821 } 40822 return nil 40823 } 40824 40825 func _filePath(dir, name string) string { 40826 canonicalName := strings.Replace(name, "\\", "/", -1) 40827 return filepath.Join(append([]string{dir}, strings.Split(canonicalName, "/")...)...) 40828 }