From 5aeb78cb4c4da78a6737fdc8cbabea4cdbd34b77 Mon Sep 17 00:00:00 2001 From: Josh Sutphin Date: Sat, 9 Jun 2018 19:45:40 -0600 Subject: [PATCH 1/2] Updated API call that was deprecated in Webpack 4 --- src/plugin/plugin.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/plugin/plugin.js b/src/plugin/plugin.js index 0aa1aa6..41aaf26 100644 --- a/src/plugin/plugin.js +++ b/src/plugin/plugin.js @@ -13,7 +13,7 @@ export default class VisualizerPlugin { } apply(compiler) { - compiler.plugin('emit', (compilation, callback) => { + compiler.hooks.emit.tap('webpack-visualizer', (compilation) => { let stats = compilation.getStats().toJson({chunkModules: true}); let stringifiedStats = JSON.stringify(stats); stringifiedStats = stringifiedStats.replace(/ Date: Sun, 10 Jun 2018 14:28:23 -0600 Subject: [PATCH 2/2] Don't gitingore lib; built latest lib --- .gitignore | 1 - lib/plugin.js | 72 +++++++++++++++++++ lib/pluginmain.js | 23 ++++++ lib/style.css | 178 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 273 insertions(+), 1 deletion(-) create mode 100644 lib/plugin.js create mode 100644 lib/pluginmain.js create mode 100644 lib/style.css diff --git a/.gitignore b/.gitignore index ca810e3..693b1a2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ dist-site -lib node_modules npm-debug.log diff --git a/lib/plugin.js b/lib/plugin.js new file mode 100644 index 0000000..1203d92 --- /dev/null +++ b/lib/plugin.js @@ -0,0 +1,72 @@ +/* eslint no-console:0 */ + +'use strict'; + +Object.defineProperty(exports, '__esModule', { + value: true +}); + +var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } + +var _path = require('path'); + +var _path2 = _interopRequireDefault(_path); + +var _fs = require('fs'); + +var _fs2 = _interopRequireDefault(_fs); + +var _mkdirp = require('mkdirp'); + +var _mkdirp2 = _interopRequireDefault(_mkdirp); + +var cssString = _fs2['default'].readFileSync(_path2['default'].join(__dirname, './style.css'), 'utf8'); +var jsString = _fs2['default'].readFileSync(_path2['default'].join(__dirname, './pluginmain.js'), 'utf8'); + +var VisualizerPlugin = (function () { + function VisualizerPlugin() { + var opts = arguments.length <= 0 || arguments[0] === undefined ? { filename: 'stats.html' } : arguments[0]; + + _classCallCheck(this, VisualizerPlugin); + + this.opts = opts; + } + + _createClass(VisualizerPlugin, [{ + key: 'apply', + value: function apply(compiler) { + var _this = this; + + compiler.hooks.emit.tap('webpack-visualizer', function (compilation) { + var stats = compilation.getStats().toJson({ chunkModules: true }); + var stringifiedStats = JSON.stringify(stats); + stringifiedStats = stringifiedStats.replace(/\n
\n \n \n '; + + var outputFile = _path2['default'].join(compilation.outputOptions.path, _this.opts.filename); + + (0, _mkdirp2['default'])(_path2['default'].dirname(outputFile), function (mkdirpErr) { + if (mkdirpErr) { + console.log('webpack-visualizer-plugin: error writing stats file'); + } + + _fs2['default'].writeFile(outputFile, html, function (err) { + if (err) { + console.log('webpack-visualizer-plugin: error writing stats file'); + } + }); + }); + }); + } + }]); + + return VisualizerPlugin; +})(); + +exports['default'] = VisualizerPlugin; +module.exports = exports['default']; diff --git a/lib/pluginmain.js b/lib/pluginmain.js new file mode 100644 index 0000000..53dbcbc --- /dev/null +++ b/lib/pluginmain.js @@ -0,0 +1,23 @@ +!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=n(1),i=r(o),a=n(153),u=r(a),l=n(154),s=r(l);u.default.render(i.default.createElement(s.default,{stats:window.stats}),document.getElementById("App"))},function(t,e,n){"use strict";t.exports=n(2)},function(t,e,n){"use strict";var r=n(3),o=n(143),i=n(147),a=n(38),u=n(152),l={};a(l,i),a(l,{findDOMNode:u("findDOMNode","ReactDOM","react-dom",r,r.findDOMNode),render:u("render","ReactDOM","react-dom",r,r.render),unmountComponentAtNode:u("unmountComponentAtNode","ReactDOM","react-dom",r,r.unmountComponentAtNode),renderToString:u("renderToString","ReactDOMServer","react-dom/server",o,o.renderToString),renderToStaticMarkup:u("renderToStaticMarkup","ReactDOMServer","react-dom/server",o,o.renderToStaticMarkup)}),l.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=r,l.__SECRET_DOM_SERVER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=o,t.exports=l},function(t,e,n){"use strict";var r=n(4),o=n(5),i=n(70),a=n(44),u=n(27),l=n(17),s=n(49),c=n(53),f=n(141),p=n(90),h=n(142);n(24);i.inject();var d=l.measure("React","render",u.render),v={findDOMNode:p,render:d,unmountComponentAtNode:u.unmountComponentAtNode,version:f,unstable_batchedUpdates:c.batchedUpdates,unstable_renderSubtreeIntoContainer:h};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({CurrentOwner:r,InstanceHandles:a,Mount:u,Reconciler:s,TextComponent:o});t.exports=v},function(t,e){"use strict";var n={current:null};t.exports=n},function(t,e,n){"use strict";var r=n(6),o=n(21),i=n(25),a=n(27),u=n(38),l=n(20),s=n(19),c=(n(69),function(t){});u(c.prototype,{construct:function(t){this._currentElement=t,this._stringText=""+t,this._rootNodeID=null,this._mountIndex=0},mountComponent:function(t,e,n){if(this._rootNodeID=t,e.useCreateElement){var r=n[a.ownerDocumentContextKey],i=r.createElement("span");return o.setAttributeForID(i,t),a.getID(i),s(i,this._stringText),i}var u=l(this._stringText);return e.renderToStaticMarkup?u:""+u+""},receiveComponent:function(t,e){if(t!==this._currentElement){this._currentElement=t;var n=""+t;if(n!==this._stringText){this._stringText=n;var o=a.getNode(this._rootNodeID);r.updateTextContent(o,n)}}},unmountComponent:function(){i.unmountIDFromEnvironment(this._rootNodeID)}}),t.exports=c},function(t,e,n){"use strict";function r(t,e,n){var r=n>=t.childNodes.length?null:t.childNodes.item(n);t.insertBefore(e,r)}var o=n(7),i=n(15),a=n(17),u=n(18),l=n(19),s=n(12),c={dangerouslyReplaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup,updateTextContent:l,processUpdates:function(t,e){for(var n,a=null,c=null,f=0;f]+)/,c="data-danger-index",f={dangerouslyRenderMarkup:function(t){o.canUseDOM?void 0:l(!1);for(var e,n={},f=0;f":a.innerHTML="<"+t+">",u[t]=!a.firstChild),u[t]?p[t]:null}var o=n(8),i=n(12),a=o.canUseDOM?document.createElement("div"):null,u={},l=[1,'"],s=[1,"","
"],c=[3,"","
"],f=[1,'',""],p={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:l,option:l,caption:s,colgroup:s,tbody:s,tfoot:s,thead:s,td:c,th:c},h=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];h.forEach(function(t){p[t]=f,u[t]=!0}),t.exports=r},function(t,e){"use strict";function n(t){return function(){return t}}function r(){}r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(t){return t},t.exports=r},function(t,e,n){"use strict";var r=n(16),o=r({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,SET_MARKUP:null,TEXT_CONTENT:null});t.exports=o},function(t,e,n){"use strict";var r=n(12),o=function(t){var e,n={};t instanceof Object&&!Array.isArray(t)?void 0:r(!1);for(e in t)t.hasOwnProperty(e)&&(n[e]=e);return n};t.exports=o},function(t,e,n){"use strict";function r(t,e,n){return n}var o={enableMeasure:!1,storedMeasure:r,measureMethods:function(t,e,n){},measure:function(t,e,n){return n},injection:{injectMeasure:function(t){o.storedMeasure=t}}};t.exports=o},function(t,e,n){"use strict";var r=n(8),o=/^[ \r\n\t\f]/,i=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,a=function(t,e){t.innerHTML=e};if("undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(a=function(t,e){MSApp.execUnsafeLocalFunction(function(){t.innerHTML=e})}),r.canUseDOM){var u=document.createElement("div");u.innerHTML=" ",""===u.innerHTML&&(a=function(t,e){if(t.parentNode&&t.parentNode.replaceChild(t,t),o.test(e)||"<"===e[0]&&i.test(e)){t.innerHTML=String.fromCharCode(65279)+e;var n=t.firstChild;1===n.data.length?t.removeChild(n):n.deleteData(0,1)}else t.innerHTML=e})}t.exports=a},function(t,e,n){"use strict";var r=n(8),o=n(20),i=n(18),a=function(t,e){t.textContent=e};r.canUseDOM&&("textContent"in document.documentElement||(a=function(t,e){i(t,o(e))})),t.exports=a},function(t,e){"use strict";function n(t){return o[t]}function r(t){return(""+t).replace(i,n)}var o={"&":"&",">":">","<":"<",'"':""","'":"'"},i=/[&><"']/g;t.exports=r},function(t,e,n){"use strict";function r(t){return!!c.hasOwnProperty(t)||!s.hasOwnProperty(t)&&(l.test(t)?(c[t]=!0,!0):(s[t]=!0,!1))}function o(t,e){return null==e||t.hasBooleanValue&&!e||t.hasNumericValue&&isNaN(e)||t.hasPositiveNumericValue&&e<1||t.hasOverloadedBooleanValue&&e===!1}var i=n(22),a=n(17),u=n(23),l=(n(24),/^[a-zA-Z_][\w\.\-]*$/),s={},c={},f={createMarkupForID:function(t){return i.ID_ATTRIBUTE_NAME+"="+u(t)},setAttributeForID:function(t,e){t.setAttribute(i.ID_ATTRIBUTE_NAME,e)},createMarkupForProperty:function(t,e){var n=i.properties.hasOwnProperty(t)?i.properties[t]:null;if(n){if(o(n,e))return"";var r=n.attributeName;return n.hasBooleanValue||n.hasOverloadedBooleanValue&&e===!0?r+'=""':r+"="+u(e)}return i.isCustomAttribute(t)?null==e?"":t+"="+u(e):null},createMarkupForCustomAttribute:function(t,e){return r(t)&&null!=e?t+"="+u(e):""},setValueForProperty:function(t,e,n){var r=i.properties.hasOwnProperty(e)?i.properties[e]:null;if(r){var a=r.mutationMethod;if(a)a(t,n);else if(o(r,n))this.deleteValueForProperty(t,e);else if(r.mustUseAttribute){var u=r.attributeName,l=r.attributeNamespace;l?t.setAttributeNS(l,u,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&n===!0?t.setAttribute(u,""):t.setAttribute(u,""+n)}else{var s=r.propertyName;r.hasSideEffects&&""+t[s]==""+n||(t[s]=n)}}else i.isCustomAttribute(e)&&f.setValueForAttribute(t,e,n)},setValueForAttribute:function(t,e,n){r(e)&&(null==n?t.removeAttribute(e):t.setAttribute(e,""+n))},deleteValueForProperty:function(t,e){var n=i.properties.hasOwnProperty(e)?i.properties[e]:null;if(n){var r=n.mutationMethod;if(r)r(t,void 0);else if(n.mustUseAttribute)t.removeAttribute(n.attributeName);else{var o=n.propertyName,a=i.getDefaultValueForProperty(t.nodeName,o);n.hasSideEffects&&""+t[o]===a||(t[o]=a)}}else i.isCustomAttribute(e)&&t.removeAttribute(e)}};a.measureMethods(f,"DOMPropertyOperations",{setValueForProperty:"setValueForProperty",setValueForAttribute:"setValueForAttribute",deleteValueForProperty:"deleteValueForProperty"}),t.exports=f},function(t,e,n){"use strict";function r(t,e){return(t&e)===e}var o=n(12),i={MUST_USE_ATTRIBUTE:1,MUST_USE_PROPERTY:2,HAS_SIDE_EFFECTS:4,HAS_BOOLEAN_VALUE:8,HAS_NUMERIC_VALUE:16,HAS_POSITIVE_NUMERIC_VALUE:48,HAS_OVERLOADED_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(t){var e=i,n=t.Properties||{},a=t.DOMAttributeNamespaces||{},l=t.DOMAttributeNames||{},s=t.DOMPropertyNames||{},c=t.DOMMutationMethods||{};t.isCustomAttribute&&u._isCustomAttributeFunctions.push(t.isCustomAttribute);for(var f in n){u.properties.hasOwnProperty(f)?o(!1):void 0;var p=f.toLowerCase(),h=n[f],d={attributeName:p,attributeNamespace:null,propertyName:f,mutationMethod:null,mustUseAttribute:r(h,e.MUST_USE_ATTRIBUTE),mustUseProperty:r(h,e.MUST_USE_PROPERTY),hasSideEffects:r(h,e.HAS_SIDE_EFFECTS),hasBooleanValue:r(h,e.HAS_BOOLEAN_VALUE),hasNumericValue:r(h,e.HAS_NUMERIC_VALUE),hasPositiveNumericValue:r(h,e.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:r(h,e.HAS_OVERLOADED_BOOLEAN_VALUE)};if(d.mustUseAttribute&&d.mustUseProperty?o(!1):void 0,!d.mustUseProperty&&d.hasSideEffects?o(!1):void 0,d.hasBooleanValue+d.hasNumericValue+d.hasOverloadedBooleanValue<=1?void 0:o(!1),l.hasOwnProperty(f)){var v=l[f];d.attributeName=v}a.hasOwnProperty(f)&&(d.attributeNamespace=a[f]),s.hasOwnProperty(f)&&(d.propertyName=s[f]),c.hasOwnProperty(f)&&(d.mutationMethod=c[f]),u.properties[f]=d}}},a={},u={ID_ATTRIBUTE_NAME:"data-reactid",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(t){for(var e=0;e-1?void 0:a(!1),!s.plugins[n]){e.extractEvents?void 0:a(!1),s.plugins[n]=e;var r=e.eventTypes;for(var i in r)o(r[i],e,i)?void 0:a(!1)}}}function o(t,e,n){s.eventNameDispatchConfigs.hasOwnProperty(n)?a(!1):void 0,s.eventNameDispatchConfigs[n]=t;var r=t.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var u=r[o];i(u,e,n)}return!0}return!!t.registrationName&&(i(t.registrationName,e,n),!0)}function i(t,e,n){s.registrationNameModules[t]?a(!1):void 0,s.registrationNameModules[t]=e,s.registrationNameDependencies[t]=e.eventTypes[n].dependencies}var a=n(12),u=null,l={},s={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},injectEventPluginOrder:function(t){u?a(!1):void 0,u=Array.prototype.slice.call(t),r()},injectEventPluginsByName:function(t){var e=!1;for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];l.hasOwnProperty(n)&&l[n]===o||(l[n]?a(!1):void 0,l[n]=o,e=!0)}e&&r()},getPluginModuleForEvent:function(t){var e=t.dispatchConfig;if(e.registrationName)return s.registrationNameModules[e.registrationName]||null;for(var n in e.phasedRegistrationNames)if(e.phasedRegistrationNames.hasOwnProperty(n)){var r=s.registrationNameModules[e.phasedRegistrationNames[n]];if(r)return r}return null},_resetEventPlugins:function(){u=null;for(var t in l)l.hasOwnProperty(t)&&delete l[t];s.plugins.length=0;var e=s.eventNameDispatchConfigs;for(var n in e)e.hasOwnProperty(n)&&delete e[n];var r=s.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};t.exports=s},function(t,e,n){"use strict";function r(t){return t===g.topMouseUp||t===g.topTouchEnd||t===g.topTouchCancel}function o(t){return t===g.topMouseMove||t===g.topTouchMove}function i(t){return t===g.topMouseDown||t===g.topTouchStart}function a(t,e,n,r){var o=t.type||"unknown-event";t.currentTarget=v.Mount.getNode(r),e?h.invokeGuardedCallbackWithCatch(o,n,t,r):h.invokeGuardedCallback(o,n,t,r),t.currentTarget=null}function u(t,e){var n=t._dispatchListeners,r=t._dispatchIDs;if(Array.isArray(n))for(var o=0;o1){for(var h=Array(p),d=0;d1){for(var v=Array(d),g=0;g1){var e=t.indexOf(h,1);return e>-1?t.substr(0,e):t}return null},traverseEnterLeave:function(t,e,n,r,o){var i=s(t,e);i!==t&&c(t,i,n,r,!1,!0),i!==e&&c(i,e,n,o,!0,!1)},traverseTwoPhase:function(t,e,n){t&&(c("",t,e,n,!0,!1),c(t,"",e,n,!1,!0))},traverseTwoPhaseSkipTarget:function(t,e,n){t&&(c("",t,e,n,!0,!0),c(t,"",e,n,!0,!0))},traverseAncestors:function(t,e,n){c("",t,e,n,!0,!1)},getFirstCommonAncestorID:s,_getNextDescendantID:l,isAncestorIDOf:a,SEPARATOR:h};t.exports=g},function(t,e){"use strict";var n={injectCreateReactRootIndex:function(t){r.createReactRootIndex=t}},r={createReactRootIndex:null,injection:n};t.exports=r},function(t,e){"use strict";var n={remove:function(t){t._reactInternalInstance=void 0},get:function(t){return t._reactInternalInstance},has:function(t){return void 0!==t._reactInternalInstance},set:function(t,e){t._reactInternalInstance=e}};t.exports=n},function(t,e,n){"use strict";var r=n(48),o=/\/?>/,i={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(t){var e=r(t);return t.replace(o," "+i.CHECKSUM_ATTR_NAME+'="'+e+'"$&')},canReuseMarkup:function(t,e){var n=e.getAttribute(i.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var o=r(t);return o===n}};t.exports=i},function(t,e){"use strict";function n(t){for(var e=1,n=0,o=0,i=t.length,a=i&-4;o8&&C<=11),N=32,S=String.fromCharCode(N),D=h.topLevelTypes,k={beforeInput:{phasedRegistrationNames:{bubbled:_({onBeforeInput:null}),captured:_({onBeforeInputCapture:null})},dependencies:[D.topCompositionEnd,D.topKeyPress,D.topTextInput,D.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:_({onCompositionEnd:null}),captured:_({onCompositionEndCapture:null})},dependencies:[D.topBlur,D.topCompositionEnd,D.topKeyDown,D.topKeyPress,D.topKeyUp,D.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:_({onCompositionStart:null}),captured:_({onCompositionStartCapture:null})},dependencies:[D.topBlur,D.topCompositionStart,D.topKeyDown,D.topKeyPress,D.topKeyUp,D.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:_({onCompositionUpdate:null}),captured:_({onCompositionUpdateCapture:null})},dependencies:[D.topBlur,D.topCompositionUpdate,D.topKeyDown,D.topKeyPress,D.topKeyUp,D.topMouseDown]}},P=!1,R=null,T={eventTypes:k,extractEvents:function(t,e,n,r,o){return[s(t,e,n,r,o),p(t,e,n,r,o)]}};t.exports=T},function(t,e,n){"use strict";function r(t,e,n){var r=e.dispatchConfig.phasedRegistrationNames[n];return y(t,r)}function o(t,e,n){var o=e?m.bubbled:m.captured,i=r(t,n,o);i&&(n._dispatchListeners=v(n._dispatchListeners,i),n._dispatchIDs=v(n._dispatchIDs,t))}function i(t){t&&t.dispatchConfig.phasedRegistrationNames&&d.injection.getInstanceHandle().traverseTwoPhase(t.dispatchMarker,o,t)}function a(t){t&&t.dispatchConfig.phasedRegistrationNames&&d.injection.getInstanceHandle().traverseTwoPhaseSkipTarget(t.dispatchMarker,o,t)}function u(t,e,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,o=y(t,r);o&&(n._dispatchListeners=v(n._dispatchListeners,o),n._dispatchIDs=v(n._dispatchIDs,t))}}function l(t){t&&t.dispatchConfig.registrationName&&u(t.dispatchMarker,null,t)}function s(t){g(t,i)}function c(t){g(t,a)}function f(t,e,n,r){d.injection.getInstanceHandle().traverseEnterLeave(n,r,u,t,e)}function p(t){g(t,l)}var h=n(29),d=n(30),v=(n(24),n(34)),g=n(35),m=h.PropagationPhases,y=d.getListener,_={accumulateTwoPhaseDispatches:s,accumulateTwoPhaseDispatchesSkipTarget:c,accumulateDirectDispatches:p,accumulateEnterLeaveDispatches:f};t.exports=_},function(t,e,n){"use strict";function r(t){this._root=t,this._startText=this.getText(),this._fallbackText=null}var o=n(55),i=n(38),a=n(74);i(r.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var t,e,n=this._startText,r=n.length,o=this.getText(),i=o.length;for(t=0;t1?1-e:void 0;return this._fallbackText=o.slice(t,u),this._fallbackText}}),o.addPoolingTo(r),t.exports=r},function(t,e,n){"use strict";function r(){return!i&&o.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var o=n(8),i=null;t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){o.call(this,t,e,n,r)}var o=n(76),i={data:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){this.dispatchConfig=t,this.dispatchMarker=e,this.nativeEvent=n;var o=this.constructor.Interface;for(var i in o)if(o.hasOwnProperty(i)){var u=o[i];u?this[i]=u(n):"target"===i?this.target=r:this[i]=n[i]}var l=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;l?this.isDefaultPrevented=a.thatReturnsTrue:this.isDefaultPrevented=a.thatReturnsFalse,this.isPropagationStopped=a.thatReturnsFalse}var o=n(55),i=n(38),a=n(14),u=(n(24),{type:null,target:null,currentTarget:a.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null});i(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():t.returnValue=!1,this.isDefaultPrevented=a.thatReturnsTrue)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,this.isPropagationStopped=a.thatReturnsTrue)},persist:function(){this.isPersistent=a.thatReturnsTrue},isPersistent:a.thatReturnsFalse,destructor:function(){var t=this.constructor.Interface;for(var e in t)this[e]=null;this.dispatchConfig=null,this.dispatchMarker=null,this.nativeEvent=null}}),r.Interface=u,r.augmentClass=function(t,e){var n=this,r=Object.create(n.prototype);i(r,t.prototype),t.prototype=r,t.prototype.constructor=t,t.Interface=i({},n.Interface,e),t.augmentClass=n.augmentClass,o.addPoolingTo(t,o.fourArgumentPooler)},o.addPoolingTo(r,o.fourArgumentPooler),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){o.call(this,t,e,n,r)}var o=n(76),i={data:null};o.augmentClass(r,i),t.exports=r},function(t,e){"use strict";var n=function(t){var e;for(e in t)if(t.hasOwnProperty(e))return e;return null};t.exports=n},function(t,e,n){"use strict";function r(t){var e=t.nodeName&&t.nodeName.toLowerCase();return"select"===e||"input"===e&&"file"===t.type}function o(t){var e=C.getPooled(k.change,R,t,E(t));b.accumulateTwoPhaseDispatches(e),M.batchedUpdates(i,e)}function i(t){_.enqueueEvents(t),_.processEventQueue(!1)}function a(t,e){P=t,R=e,P.attachEvent("onchange",o)}function u(){P&&(P.detachEvent("onchange",o),P=null,R=null)}function l(t,e,n){if(t===D.topChange)return n}function s(t,e,n){t===D.topFocus?(u(),a(e,n)):t===D.topBlur&&u()}function c(t,e){P=t,R=e,T=t.value,I=Object.getOwnPropertyDescriptor(t.constructor.prototype,"value"),Object.defineProperty(P,"value",L),P.attachEvent("onpropertychange",p)}function f(){P&&(delete P.value,P.detachEvent("onpropertychange",p),P=null,R=null,T=null,I=null)}function p(t){if("value"===t.propertyName){var e=t.srcElement.value;e!==T&&(T=e,o(t))}}function h(t,e,n){if(t===D.topInput)return n}function d(t,e,n){t===D.topFocus?(f(),c(e,n)):t===D.topBlur&&f()}function v(t,e,n){if((t===D.topSelectionChange||t===D.topKeyUp||t===D.topKeyDown)&&P&&P.value!==T)return T=P.value,R}function g(t){return t.nodeName&&"input"===t.nodeName.toLowerCase()&&("checkbox"===t.type||"radio"===t.type)}function m(t,e,n){if(t===D.topClick)return n}var y=n(29),_=n(30),b=n(72),x=n(8),M=n(53),C=n(76),E=n(80),w=n(39),N=n(81),S=n(78),D=y.topLevelTypes,k={ +change:{phasedRegistrationNames:{bubbled:S({onChange:null}),captured:S({onChangeCapture:null})},dependencies:[D.topBlur,D.topChange,D.topClick,D.topFocus,D.topInput,D.topKeyDown,D.topKeyUp,D.topSelectionChange]}},P=null,R=null,T=null,I=null,A=!1;x.canUseDOM&&(A=w("change")&&(!("documentMode"in document)||document.documentMode>8));var O=!1;x.canUseDOM&&(O=w("input")&&(!("documentMode"in document)||document.documentMode>9));var L={get:function(){return I.get.call(this)},set:function(t){T=""+t,I.set.call(this,t)}},U={eventTypes:k,extractEvents:function(t,e,n,o,i){var a,u;if(r(e)?A?a=l:u=s:N(e)?O?a=h:(a=v,u=d):g(e)&&(a=m),a){var c=a(t,e,n);if(c){var f=C.getPooled(k.change,c,o,i);return f.type="change",b.accumulateTwoPhaseDispatches(f),f}}u&&u(t,e,n)}};t.exports=U},function(t,e){"use strict";function n(t){var e=t.target||t.srcElement||window;return 3===e.nodeType?e.parentNode:e}t.exports=n},function(t,e){"use strict";function n(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&r[t.type]||"textarea"===e)}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};t.exports=n},function(t,e){"use strict";var n=0,r={createReactRootIndex:function(){return n++}};t.exports=r},function(t,e,n){"use strict";var r=n(78),o=[r({ResponderEventPlugin:null}),r({SimpleEventPlugin:null}),r({TapEventPlugin:null}),r({EnterLeaveEventPlugin:null}),r({ChangeEventPlugin:null}),r({SelectEventPlugin:null}),r({BeforeInputEventPlugin:null})];t.exports=o},function(t,e,n){"use strict";var r=n(29),o=n(72),i=n(85),a=n(27),u=n(78),l=r.topLevelTypes,s=a.getFirstReactDOM,c={mouseEnter:{registrationName:u({onMouseEnter:null}),dependencies:[l.topMouseOut,l.topMouseOver]},mouseLeave:{registrationName:u({onMouseLeave:null}),dependencies:[l.topMouseOut,l.topMouseOver]}},f=[null,null],p={eventTypes:c,extractEvents:function(t,e,n,r,u){if(t===l.topMouseOver&&(r.relatedTarget||r.fromElement))return null;if(t!==l.topMouseOut&&t!==l.topMouseOver)return null;var p;if(e.window===e)p=e;else{var h=e.ownerDocument;p=h?h.defaultView||h.parentWindow:window}var d,v,g="",m="";if(t===l.topMouseOut?(d=e,g=n,v=s(r.relatedTarget||r.toElement),v?m=a.getID(v):v=p,v=v||p):(d=p,v=e,m=n),d===v)return null;var y=i.getPooled(c.mouseLeave,g,r,u);y.type="mouseleave",y.target=d,y.relatedTarget=v;var _=i.getPooled(c.mouseEnter,m,r,u);return _.type="mouseenter",_.target=v,_.relatedTarget=d,o.accumulateEnterLeaveDispatches(y,_,g,m),f[0]=y,f[1]=_,f}};t.exports=p},function(t,e,n){"use strict";function r(t,e,n,r){o.call(this,t,e,n,r)}var o=n(86),i=n(37),a=n(87),u={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:a,button:function(t){var e=t.button;return"which"in t?e:2===e?2:4===e?1:0},buttons:null,relatedTarget:function(t){return t.relatedTarget||(t.fromElement===t.srcElement?t.toElement:t.fromElement)},pageX:function(t){return"pageX"in t?t.pageX:t.clientX+i.currentScrollLeft},pageY:function(t){return"pageY"in t?t.pageY:t.clientY+i.currentScrollTop}};o.augmentClass(r,u),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){o.call(this,t,e,n,r)}var o=n(76),i=n(80),a={view:function(t){if(t.view)return t.view;var e=i(t);if(null!=e&&e.window===e)return e;var n=e.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(t){return t.detail||0}};o.augmentClass(r,a),t.exports=r},function(t,e){"use strict";function n(t){var e=this,n=e.nativeEvent;if(n.getModifierState)return n.getModifierState(t);var r=o[t];return!!r&&!!n[r]}function r(t){return n}var o={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};t.exports=r},function(t,e,n){"use strict";var r,o=n(22),i=n(8),a=o.injection.MUST_USE_ATTRIBUTE,u=o.injection.MUST_USE_PROPERTY,l=o.injection.HAS_BOOLEAN_VALUE,s=o.injection.HAS_SIDE_EFFECTS,c=o.injection.HAS_NUMERIC_VALUE,f=o.injection.HAS_POSITIVE_NUMERIC_VALUE,p=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE;if(i.canUseDOM){var h=document.implementation;r=h&&h.hasFeature&&h.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}var d={isCustomAttribute:RegExp.prototype.test.bind(/^(data|aria)-[a-z_][a-z\d_.\-]*$/),Properties:{accept:null,acceptCharset:null,accessKey:null,action:null,allowFullScreen:a|l,allowTransparency:a,alt:null,async:l,autoComplete:null,autoPlay:l,capture:a|l,cellPadding:null,cellSpacing:null,charSet:a,challenge:a,checked:u|l,classID:a,className:r?a:u,cols:a|f,colSpan:null,content:null,contentEditable:null,contextMenu:a,controls:u|l,coords:null,crossOrigin:null,data:null,dateTime:a,default:l,defer:l,dir:null,disabled:a|l,download:p,draggable:null,encType:null,form:a,formAction:a,formEncType:a,formMethod:a,formNoValidate:l,formTarget:a,frameBorder:a,headers:null,height:a,hidden:a|l,high:null,href:null,hrefLang:null,htmlFor:null,httpEquiv:null,icon:null,id:u,inputMode:a,integrity:null,is:a,keyParams:a,keyType:a,kind:null,label:null,lang:null,list:a,loop:u|l,low:null,manifest:a,marginHeight:null,marginWidth:null,max:null,maxLength:a,media:a,mediaGroup:null,method:null,min:null,minLength:a,multiple:u|l,muted:u|l,name:null,nonce:a,noValidate:l,open:l,optimum:null,pattern:null,placeholder:null,poster:null,preload:null,radioGroup:null,readOnly:u|l,rel:null,required:l,reversed:l,role:a,rows:a|f,rowSpan:null,sandbox:null,scope:null,scoped:l,scrolling:null,seamless:a|l,selected:u|l,shape:null,size:a|f,sizes:a,span:f,spellCheck:null,src:null,srcDoc:u,srcLang:null,srcSet:a,start:c,step:null,style:null,summary:null,tabIndex:null,target:null,title:null,type:null,useMap:null,value:u|s,width:a,wmode:a,wrap:null,about:a,datatype:a,inlist:a,prefix:a,property:a,resource:a,typeof:a,vocab:a,autoCapitalize:a,autoCorrect:a,autoSave:null,color:null,itemProp:a,itemScope:a|l,itemType:a,itemID:a,itemRef:a,results:null,security:a,unselectable:a},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{autoComplete:"autocomplete",autoFocus:"autofocus",autoPlay:"autoplay",autoSave:"autosave",encType:"encoding",hrefLang:"hreflang",radioGroup:"radiogroup",spellCheck:"spellcheck",srcDoc:"srcdoc",srcSet:"srcset"}};t.exports=d},function(t,e,n){"use strict";var r=(n(46),n(90)),o=(n(24),"_getDOMNodeDidWarn"),i={getDOMNode:function(){return this.constructor[o]=!0,r(this)}};t.exports=i},function(t,e,n){"use strict";function r(t){return null==t?null:1===t.nodeType?t:o.has(t)?i.getNodeFromInstance(t):(null!=t.render&&"function"==typeof t.render?a(!1):void 0,void a(!1))}var o=(n(4),n(46)),i=n(27),a=n(12);n(24);t.exports=r},function(t,e,n){"use strict";function r(){this.reinitializeTransaction()}var o=n(53),i=n(56),a=n(38),u=n(14),l={initialize:u,close:function(){p.isBatchingUpdates=!1}},s={initialize:u,close:o.flushBatchedUpdates.bind(o)},c=[s,l];a(r.prototype,i.Mixin,{getTransactionWrappers:function(){return c}});var f=new r,p={isBatchingUpdates:!1,batchedUpdates:function(t,e,n,r,o,i){var a=p.isBatchingUpdates;p.isBatchingUpdates=!0,a?t(e,n,r,o,i):f.perform(t,null,e,n,r,o,i)}};t.exports=p},function(t,e,n){"use strict";function r(){return this}function o(){var t=this._reactInternalComponent;return!!t}function i(){}function a(t,e){var n=this._reactInternalComponent;n&&(T.enqueueSetPropsInternal(n,t),e&&T.enqueueCallbackInternal(n,e))}function u(t,e){var n=this._reactInternalComponent;n&&(T.enqueueReplacePropsInternal(n,t),e&&T.enqueueCallbackInternal(n,e))}function l(t,e){e&&(null!=e.dangerouslySetInnerHTML&&(null!=e.children?L(!1):void 0,"object"==typeof e.dangerouslySetInnerHTML&&K in e.dangerouslySetInnerHTML?void 0:L(!1)),null!=e.style&&"object"!=typeof e.style?L(!1):void 0)}function s(t,e,n,r){var o=k.findReactContainerForID(t);if(o){var i=o.nodeType===Y?o.ownerDocument:o;q(e,i)}r.getReactMountReady().enqueue(c,{id:t,registrationName:e,listener:n})}function c(){var t=this;M.putListener(t.id,t.registrationName,t.listener)}function f(){var t=this;t._rootNodeID?void 0:L(!1);var e=k.getNode(t._rootNodeID);switch(e?void 0:L(!1),t._tag){case"iframe":t._wrapperState.listeners=[M.trapBubbledEvent(x.topLevelTypes.topLoad,"load",e)];break;case"video":case"audio":t._wrapperState.listeners=[];for(var n in G)G.hasOwnProperty(n)&&t._wrapperState.listeners.push(M.trapBubbledEvent(x.topLevelTypes[n],G[n],e));break;case"img":t._wrapperState.listeners=[M.trapBubbledEvent(x.topLevelTypes.topError,"error",e),M.trapBubbledEvent(x.topLevelTypes.topLoad,"load",e)];break;case"form":t._wrapperState.listeners=[M.trapBubbledEvent(x.topLevelTypes.topReset,"reset",e),M.trapBubbledEvent(x.topLevelTypes.topSubmit,"submit",e)]}}function p(){w.mountReadyWrapper(this)}function h(){S.postUpdateWrapper(this)}function d(t){J.call(Q,t)||($.test(t)?void 0:L(!1),Q[t]=!0)}function v(t,e){return t.indexOf("-")>=0||null!=e.is}function g(t){d(t),this._tag=t.toLowerCase(),this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._rootNodeID=null,this._wrapperState=null,this._topLevelWrapper=null,this._nodeWithLegacyProperties=null}var m=n(93),y=n(95),_=n(22),b=n(21),x=n(29),M=n(28),C=n(25),E=n(103),w=n(104),N=n(108),S=n(111),D=n(112),k=n(27),P=n(113),R=n(17),T=n(52),I=n(38),A=n(42),O=n(20),L=n(12),U=(n(39),n(78)),F=n(18),j=n(19),B=(n(116),n(69),n(24),M.deleteListener),q=M.listenTo,V=M.registrationNameModules,z={string:!0,number:!0},W=U({children:null}),H=U({style:null}),K=U({__html:null}),Y=1,G={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},X={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Z={listing:!0,pre:!0,textarea:!0},$=(I({menuitem:!0},X),/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/),Q={},J={}.hasOwnProperty;g.displayName="ReactDOMComponent",g.Mixin={construct:function(t){this._currentElement=t},mountComponent:function(t,e,n){this._rootNodeID=t;var r=this._currentElement.props;switch(this._tag){case"iframe":case"img":case"form":case"video":case"audio":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(f,this);break;case"button":r=E.getNativeProps(this,r,n);break;case"input":w.mountWrapper(this,r,n),r=w.getNativeProps(this,r,n);break;case"option":N.mountWrapper(this,r,n),r=N.getNativeProps(this,r,n);break;case"select":S.mountWrapper(this,r,n),r=S.getNativeProps(this,r,n),n=S.processChildContext(this,r,n);break;case"textarea":D.mountWrapper(this,r,n),r=D.getNativeProps(this,r,n)}l(this,r);var o;if(e.useCreateElement){var i=n[k.ownerDocumentContextKey],a=i.createElement(this._currentElement.type);b.setAttributeForID(a,this._rootNodeID),k.getID(a),this._updateDOMProperties({},r,e,a),this._createInitialChildren(e,r,n,a),o=a}else{var u=this._createOpenTagMarkupAndPutListeners(e,r),s=this._createContentMarkup(e,r,n);o=!s&&X[this._tag]?u+"/>":u+">"+s+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(p,this);case"button":case"select":case"textarea":r.autoFocus&&e.getReactMountReady().enqueue(m.focusDOMComponent,this)}return o},_createOpenTagMarkupAndPutListeners:function(t,e){var n="<"+this._currentElement.type;for(var r in e)if(e.hasOwnProperty(r)){var o=e[r];if(null!=o)if(V.hasOwnProperty(r))o&&s(this._rootNodeID,r,o,t);else{r===H&&(o&&(o=this._previousStyleCopy=I({},e.style)),o=y.createMarkupForStyles(o));var i=null;null!=this._tag&&v(this._tag,e)?r!==W&&(i=b.createMarkupForCustomAttribute(r,o)):i=b.createMarkupForProperty(r,o),i&&(n+=" "+i)}}if(t.renderToStaticMarkup)return n;var a=b.createMarkupForID(this._rootNodeID);return n+" "+a},_createContentMarkup:function(t,e,n){var r="",o=e.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&(r=o.__html);else{var i=z[typeof e.children]?e.children:null,a=null!=i?null:e.children;if(null!=i)r=O(i);else if(null!=a){var u=this.mountChildren(a,t,n);r=u.join("")}}return Z[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(t,e,n,r){var o=e.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&F(r,o.__html);else{var i=z[typeof e.children]?e.children:null,a=null!=i?null:e.children;if(null!=i)j(r,i);else if(null!=a)for(var u=this.mountChildren(a,t,n),l=0;l>"}var y=n(41),_=n(65),b=n(14),x=n(107),M="<>",C={array:o("array"),bool:o("boolean"),func:o("function"),number:o("number"),object:o("object"),string:o("string"),any:i(),arrayOf:a,element:u(),instanceOf:l,node:p(),objectOf:c,oneOf:s,oneOfType:f,shape:h};t.exports=C},function(t,e){"use strict";function n(t){var e=t&&(r&&t[r]||t[o]);if("function"==typeof e)return e}var r="function"==typeof Symbol&&Symbol.iterator,o="@@iterator";t.exports=n},function(t,e,n){"use strict";var r=n(109),o=n(111),i=n(38),a=(n(24),o.valueContextKey),u={mountWrapper:function(t,e,n){var r=n[a],o=null;if(null!=r)if(o=!1,Array.isArray(r)){for(var i=0;ie.end?(n=e.end,r=e.start):(n=e.start,r=e.end),o.moveToElementText(t),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function u(t,e){if(window.getSelection){var n=window.getSelection(),r=t[c()].length,o=Math.min(e.start,r),i="undefined"==typeof e.end?o:Math.min(e.end,r);if(!n.extend&&o>i){var a=i;i=o,o=a}var u=s(t,o),l=s(t,i);if(u&&l){var f=document.createRange();f.setStart(u.node,u.offset),n.removeAllRanges(),o>i?(n.addRange(f),n.extend(l.node,l.offset)):(f.setEnd(l.node,l.offset),n.addRange(f))}}}var l=n(8),s=n(127),c=n(74),f=l.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:f?o:i,setOffsets:f?a:u};t.exports=p},function(t,e){"use strict";function n(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function r(t){for(;t;){if(t.nextSibling)return t.nextSibling;t=t.parentNode}}function o(t,e){for(var o=n(t),i=0,a=0;o;){if(3===o.nodeType){if(a=i+o.textContent.length,i<=e&&a>=e)return{node:o,offset:e-i};i=a}o=n(r(o))}}t.exports=o},function(t,e){"use strict";function n(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(t){return document.body}}t.exports=n},function(t,e,n){"use strict";function r(t){if("selectionStart"in t&&l.hasSelectionCapabilities(t))return{start:t.selectionStart,end:t.selectionEnd};if(window.getSelection){var e=window.getSelection();return{anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function o(t,e){if(b||null==m||m!==c())return null;var n=r(m);if(!_||!h(_,n)){_=n;var o=s.getPooled(g.select,y,t,e);return o.type="select",o.target=m,a.accumulateTwoPhaseDispatches(o),o}return null}var i=n(29),a=n(72),u=n(8),l=n(125),s=n(76),c=n(128),f=n(81),p=n(78),h=n(116),d=i.topLevelTypes,v=u.canUseDOM&&"documentMode"in document&&document.documentMode<=11,g={select:{phasedRegistrationNames:{bubbled:p({onSelect:null}),captured:p({onSelectCapture:null})},dependencies:[d.topBlur,d.topContextMenu,d.topFocus,d.topKeyDown,d.topMouseDown,d.topMouseUp,d.topSelectionChange]}},m=null,y=null,_=null,b=!1,x=!1,M=p({onSelect:null}),C={eventTypes:g,extractEvents:function(t,e,n,r,i){if(!x)return null;switch(t){case d.topFocus:(f(e)||"true"===e.contentEditable)&&(m=e,y=n,_=null);break;case d.topBlur:m=null,y=null,_=null;break;case d.topMouseDown:b=!0;break;case d.topContextMenu:case d.topMouseUp:return b=!1,o(r,i);case d.topSelectionChange:if(v)break;case d.topKeyDown:case d.topKeyUp:return o(r,i)}return null},didPutListener:function(t,e,n){e===M&&(x=!0)}};t.exports=C},function(t,e){"use strict";var n=Math.pow(2,53),r={createReactRootIndex:function(){return Math.ceil(Math.random()*n)}};t.exports=r},function(t,e,n){"use strict";var r=n(29),o=n(118),i=n(72),a=n(27),u=n(132),l=n(76),s=n(133),c=n(134),f=n(85),p=n(137),h=n(138),d=n(86),v=n(139),g=n(14),m=n(135),y=n(12),_=n(78),b=r.topLevelTypes,x={abort:{phasedRegistrationNames:{bubbled:_({onAbort:!0}),captured:_({onAbortCapture:!0})}},blur:{phasedRegistrationNames:{bubbled:_({onBlur:!0}),captured:_({onBlurCapture:!0})}},canPlay:{phasedRegistrationNames:{bubbled:_({onCanPlay:!0}),captured:_({onCanPlayCapture:!0})}},canPlayThrough:{phasedRegistrationNames:{bubbled:_({onCanPlayThrough:!0}),captured:_({onCanPlayThroughCapture:!0})}},click:{phasedRegistrationNames:{bubbled:_({onClick:!0}),captured:_({onClickCapture:!0})}},contextMenu:{phasedRegistrationNames:{bubbled:_({onContextMenu:!0}),captured:_({onContextMenuCapture:!0})}},copy:{phasedRegistrationNames:{bubbled:_({onCopy:!0}),captured:_({onCopyCapture:!0})}},cut:{phasedRegistrationNames:{bubbled:_({onCut:!0}),captured:_({onCutCapture:!0})}},doubleClick:{phasedRegistrationNames:{bubbled:_({onDoubleClick:!0}),captured:_({onDoubleClickCapture:!0})}},drag:{phasedRegistrationNames:{bubbled:_({onDrag:!0}),captured:_({onDragCapture:!0})}},dragEnd:{phasedRegistrationNames:{bubbled:_({onDragEnd:!0}),captured:_({onDragEndCapture:!0})}},dragEnter:{phasedRegistrationNames:{bubbled:_({onDragEnter:!0}),captured:_({onDragEnterCapture:!0})}},dragExit:{phasedRegistrationNames:{bubbled:_({onDragExit:!0}),captured:_({onDragExitCapture:!0})}},dragLeave:{phasedRegistrationNames:{bubbled:_({onDragLeave:!0}),captured:_({onDragLeaveCapture:!0})}},dragOver:{phasedRegistrationNames:{bubbled:_({onDragOver:!0}),captured:_({onDragOverCapture:!0})}},dragStart:{phasedRegistrationNames:{bubbled:_({onDragStart:!0}),captured:_({onDragStartCapture:!0})}},drop:{phasedRegistrationNames:{bubbled:_({onDrop:!0}),captured:_({onDropCapture:!0})}},durationChange:{phasedRegistrationNames:{bubbled:_({onDurationChange:!0}),captured:_({onDurationChangeCapture:!0})}},emptied:{phasedRegistrationNames:{bubbled:_({onEmptied:!0}),captured:_({onEmptiedCapture:!0})}},encrypted:{phasedRegistrationNames:{bubbled:_({onEncrypted:!0}),captured:_({onEncryptedCapture:!0})}},ended:{phasedRegistrationNames:{bubbled:_({onEnded:!0}),captured:_({onEndedCapture:!0})}},error:{phasedRegistrationNames:{bubbled:_({onError:!0}),captured:_({onErrorCapture:!0})}},focus:{phasedRegistrationNames:{bubbled:_({onFocus:!0}),captured:_({onFocusCapture:!0})}},input:{phasedRegistrationNames:{bubbled:_({onInput:!0}),captured:_({onInputCapture:!0})}},keyDown:{phasedRegistrationNames:{bubbled:_({onKeyDown:!0}),captured:_({onKeyDownCapture:!0})}},keyPress:{phasedRegistrationNames:{bubbled:_({onKeyPress:!0}),captured:_({onKeyPressCapture:!0})}},keyUp:{phasedRegistrationNames:{bubbled:_({onKeyUp:!0}),captured:_({onKeyUpCapture:!0})}},load:{phasedRegistrationNames:{bubbled:_({onLoad:!0}),captured:_({onLoadCapture:!0})}},loadedData:{phasedRegistrationNames:{bubbled:_({onLoadedData:!0}),captured:_({onLoadedDataCapture:!0})}},loadedMetadata:{phasedRegistrationNames:{bubbled:_({onLoadedMetadata:!0}),captured:_({onLoadedMetadataCapture:!0})}},loadStart:{phasedRegistrationNames:{bubbled:_({onLoadStart:!0}),captured:_({onLoadStartCapture:!0})}},mouseDown:{phasedRegistrationNames:{bubbled:_({onMouseDown:!0}),captured:_({onMouseDownCapture:!0})}},mouseMove:{phasedRegistrationNames:{bubbled:_({onMouseMove:!0}),captured:_({onMouseMoveCapture:!0})}},mouseOut:{phasedRegistrationNames:{bubbled:_({onMouseOut:!0}),captured:_({onMouseOutCapture:!0})}},mouseOver:{phasedRegistrationNames:{bubbled:_({onMouseOver:!0}),captured:_({onMouseOverCapture:!0})}},mouseUp:{phasedRegistrationNames:{bubbled:_({onMouseUp:!0}),captured:_({onMouseUpCapture:!0})}},paste:{phasedRegistrationNames:{bubbled:_({onPaste:!0}),captured:_({onPasteCapture:!0})}},pause:{phasedRegistrationNames:{bubbled:_({onPause:!0}),captured:_({onPauseCapture:!0})}},play:{phasedRegistrationNames:{bubbled:_({onPlay:!0}),captured:_({onPlayCapture:!0})}},playing:{phasedRegistrationNames:{bubbled:_({onPlaying:!0}),captured:_({onPlayingCapture:!0})}},progress:{phasedRegistrationNames:{bubbled:_({onProgress:!0}),captured:_({onProgressCapture:!0})}},rateChange:{phasedRegistrationNames:{bubbled:_({onRateChange:!0}),captured:_({onRateChangeCapture:!0})}},reset:{phasedRegistrationNames:{bubbled:_({onReset:!0}),captured:_({onResetCapture:!0})}},scroll:{phasedRegistrationNames:{bubbled:_({onScroll:!0}),captured:_({onScrollCapture:!0})}},seeked:{phasedRegistrationNames:{bubbled:_({onSeeked:!0}),captured:_({onSeekedCapture:!0})}},seeking:{phasedRegistrationNames:{bubbled:_({onSeeking:!0}),captured:_({onSeekingCapture:!0})}},stalled:{phasedRegistrationNames:{bubbled:_({onStalled:!0}),captured:_({onStalledCapture:!0})}},submit:{phasedRegistrationNames:{bubbled:_({onSubmit:!0}),captured:_({onSubmitCapture:!0})}},suspend:{phasedRegistrationNames:{bubbled:_({onSuspend:!0}),captured:_({onSuspendCapture:!0})}},timeUpdate:{phasedRegistrationNames:{bubbled:_({onTimeUpdate:!0}),captured:_({onTimeUpdateCapture:!0})}},touchCancel:{phasedRegistrationNames:{bubbled:_({onTouchCancel:!0}),captured:_({onTouchCancelCapture:!0})}},touchEnd:{phasedRegistrationNames:{bubbled:_({onTouchEnd:!0}),captured:_({onTouchEndCapture:!0})}},touchMove:{phasedRegistrationNames:{bubbled:_({onTouchMove:!0}),captured:_({onTouchMoveCapture:!0})}},touchStart:{phasedRegistrationNames:{bubbled:_({onTouchStart:!0}),captured:_({onTouchStartCapture:!0})}},volumeChange:{phasedRegistrationNames:{bubbled:_({onVolumeChange:!0}),captured:_({onVolumeChangeCapture:!0})}},waiting:{phasedRegistrationNames:{bubbled:_({onWaiting:!0}),captured:_({onWaitingCapture:!0})}},wheel:{phasedRegistrationNames:{bubbled:_({onWheel:!0}),captured:_({onWheelCapture:!0})}}},M={topAbort:x.abort,topBlur:x.blur,topCanPlay:x.canPlay,topCanPlayThrough:x.canPlayThrough,topClick:x.click,topContextMenu:x.contextMenu,topCopy:x.copy,topCut:x.cut,topDoubleClick:x.doubleClick,topDrag:x.drag,topDragEnd:x.dragEnd,topDragEnter:x.dragEnter,topDragExit:x.dragExit,topDragLeave:x.dragLeave,topDragOver:x.dragOver,topDragStart:x.dragStart,topDrop:x.drop,topDurationChange:x.durationChange,topEmptied:x.emptied,topEncrypted:x.encrypted,topEnded:x.ended,topError:x.error,topFocus:x.focus,topInput:x.input,topKeyDown:x.keyDown,topKeyPress:x.keyPress,topKeyUp:x.keyUp,topLoad:x.load,topLoadedData:x.loadedData,topLoadedMetadata:x.loadedMetadata,topLoadStart:x.loadStart,topMouseDown:x.mouseDown,topMouseMove:x.mouseMove,topMouseOut:x.mouseOut,topMouseOver:x.mouseOver,topMouseUp:x.mouseUp,topPaste:x.paste,topPause:x.pause,topPlay:x.play,topPlaying:x.playing,topProgress:x.progress,topRateChange:x.rateChange,topReset:x.reset,topScroll:x.scroll,topSeeked:x.seeked,topSeeking:x.seeking,topStalled:x.stalled,topSubmit:x.submit,topSuspend:x.suspend,topTimeUpdate:x.timeUpdate,topTouchCancel:x.touchCancel,topTouchEnd:x.touchEnd,topTouchMove:x.touchMove,topTouchStart:x.touchStart,topVolumeChange:x.volumeChange,topWaiting:x.waiting,topWheel:x.wheel};for(var C in M)M[C].dependencies=[C];var E=_({onClick:null}),w={},N={eventTypes:x,extractEvents:function(t,e,n,r,o){var a=M[t];if(!a)return null;var g;switch(t){case b.topAbort:case b.topCanPlay:case b.topCanPlayThrough:case b.topDurationChange:case b.topEmptied:case b.topEncrypted:case b.topEnded:case b.topError:case b.topInput:case b.topLoad:case b.topLoadedData:case b.topLoadedMetadata:case b.topLoadStart:case b.topPause:case b.topPlay:case b.topPlaying:case b.topProgress:case b.topRateChange:case b.topReset:case b.topSeeked:case b.topSeeking:case b.topStalled:case b.topSubmit:case b.topSuspend:case b.topTimeUpdate:case b.topVolumeChange:case b.topWaiting:g=l;break;case b.topKeyPress:if(0===m(r))return null;case b.topKeyDown:case b.topKeyUp:g=c;break;case b.topBlur:case b.topFocus:g=s;break;case b.topClick:if(2===r.button)return null;case b.topContextMenu:case b.topDoubleClick:case b.topMouseDown:case b.topMouseMove:case b.topMouseOut:case b.topMouseOver:case b.topMouseUp:g=f;break;case b.topDrag:case b.topDragEnd:case b.topDragEnter:case b.topDragExit:case b.topDragLeave:case b.topDragOver:case b.topDragStart:case b.topDrop:g=p;break;case b.topTouchCancel:case b.topTouchEnd:case b.topTouchMove:case b.topTouchStart:g=h;break;case b.topScroll:g=d;break;case b.topWheel:g=v;break;case b.topCopy:case b.topCut:case b.topPaste:g=u}g?void 0:y(!1);var _=g.getPooled(a,n,r,o);return i.accumulateTwoPhaseDispatches(_),_},didPutListener:function(t,e,n){if(e===E){var r=a.getNode(t);w[t]||(w[t]=o.listen(r,"click",g))}},willDeleteListener:function(t,e){e===E&&(w[t].remove(),delete w[t])}};t.exports=N},function(t,e,n){"use strict";function r(t,e,n,r){o.call(this,t,e,n,r)}var o=n(76),i={clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){o.call(this,t,e,n,r)}var o=n(86),i={relatedTarget:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){o.call(this,t,e,n,r)}var o=n(86),i=n(135),a=n(136),u=n(87),l={key:a,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:u,charCode:function(t){return"keypress"===t.type?i(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?i(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}};o.augmentClass(r,l),t.exports=r},function(t,e){"use strict";function n(t){var e,n=t.keyCode;return"charCode"in t?(e=t.charCode,0===e&&13===n&&(e=13)):e=n,e>=32||13===e?e:0}t.exports=n},function(t,e,n){"use strict";function r(t){if(t.key){var e=i[t.key]||t.key;if("Unidentified"!==e)return e}if("keypress"===t.type){var n=o(t);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===t.type||"keyup"===t.type?a[t.keyCode]||"Unidentified":""}var o=n(135),i={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){o.call(this,t,e,n,r)}var o=n(85),i={dataTransfer:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){o.call(this,t,e,n,r)}var o=n(86),i=n(87),a={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:i};o.augmentClass(r,a),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){o.call(this,t,e,n,r)}var o=n(85),i={deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";var r=n(22),o=r.injection.MUST_USE_ATTRIBUTE,i={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},a={Properties:{clipPath:o,cx:o,cy:o,d:o,dx:o,dy:o,fill:o,fillOpacity:o,fontFamily:o,fontSize:o,fx:o,fy:o,gradientTransform:o,gradientUnits:o,markerEnd:o,markerMid:o,markerStart:o,offset:o,opacity:o,patternContentUnits:o,patternUnits:o,points:o,preserveAspectRatio:o,r:o,rx:o,ry:o,spreadMethod:o,stopColor:o,stopOpacity:o,stroke:o,strokeDasharray:o,strokeLinecap:o,strokeOpacity:o,strokeWidth:o,textAnchor:o,transform:o,version:o,viewBox:o,x1:o,x2:o,x:o,xlinkActuate:o,xlinkArcrole:o,xlinkHref:o,xlinkRole:o,xlinkShow:o,xlinkTitle:o,xlinkType:o,xmlBase:o,xmlLang:o,xmlSpace:o,y1:o,y2:o,y:o},DOMAttributeNamespaces:{xlinkActuate:i.xlink,xlinkArcrole:i.xlink,xlinkHref:i.xlink,xlinkRole:i.xlink,xlinkShow:i.xlink,xlinkTitle:i.xlink,xlinkType:i.xlink,xmlBase:i.xml,xmlLang:i.xml,xmlSpace:i.xml},DOMAttributeNames:{clipPath:"clip-path",fillOpacity:"fill-opacity",fontFamily:"font-family",fontSize:"font-size",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",patternContentUnits:"patternContentUnits",patternUnits:"patternUnits",preserveAspectRatio:"preserveAspectRatio",spreadMethod:"spreadMethod",stopColor:"stop-color",stopOpacity:"stop-opacity",strokeDasharray:"stroke-dasharray",strokeLinecap:"stroke-linecap",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",viewBox:"viewBox",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlLang:"xml:lang",xmlSpace:"xml:space"}};t.exports=a},function(t,e){"use strict";t.exports="0.14.9"},function(t,e,n){"use strict";var r=n(27);t.exports=r.renderSubtreeIntoContainer},function(t,e,n){"use strict";var r=n(70),o=n(144),i=n(141);r.inject();var a={renderToString:o.renderToString,renderToStaticMarkup:o.renderToStaticMarkup,version:i};t.exports=a},function(t,e,n){"use strict";function r(t){a.isValidElement(t)?void 0:d(!1);var e;try{f.injection.injectBatchingStrategy(s);var n=u.createReactRootID();return e=c.getPooled(!1),e.perform(function(){var r=h(t,null),o=r.mountComponent(n,e,p);return l.addChecksumToMarkup(o)},null)}finally{c.release(e),f.injection.injectBatchingStrategy(i)}}function o(t){a.isValidElement(t)?void 0:d(!1);var e;try{f.injection.injectBatchingStrategy(s);var n=u.createReactRootID();return e=c.getPooled(!0),e.perform(function(){var r=h(t,null);return r.mountComponent(n,e,p)},null)}finally{c.release(e),f.injection.injectBatchingStrategy(i)}}var i=n(91),a=n(41),u=n(44),l=n(47),s=n(145),c=n(146),f=n(53),p=n(57),h=n(61),d=n(12);t.exports={renderToString:r,renderToStaticMarkup:o}},function(t,e){"use strict";var n={isBatchingUpdates:!1,batchedUpdates:function(t){}};t.exports=n},function(t,e,n){"use strict";function r(t){this.reinitializeTransaction(),this.renderToStaticMarkup=t,this.reactMountReady=i.getPooled(null),this.useCreateElement=!1}var o=n(55),i=n(54),a=n(56),u=n(38),l=n(14),s={initialize:function(){this.reactMountReady.reset()},close:l},c=[s],f={getTransactionWrappers:function(){return c},getReactMountReady:function(){return this.reactMountReady},destructor:function(){i.release(this.reactMountReady),this.reactMountReady=null}};u(r.prototype,a.Mixin,f),o.addPoolingTo(r),t.exports=r},function(t,e,n){"use strict";var r=n(109),o=n(122),i=n(121),a=n(148),u=n(41),l=(n(149),n(106)),s=n(141),c=n(38),f=n(151),p=u.createElement,h=u.createFactory,d=u.cloneElement,v={ +Children:{map:r.map,forEach:r.forEach,count:r.count,toArray:r.toArray,only:f},Component:o,createElement:p,cloneElement:d,isValidElement:u.isValidElement,PropTypes:l,createClass:i.createClass,createFactory:h,createMixin:function(t){return t},DOM:a,version:s,__spread:c};t.exports=v},function(t,e,n){"use strict";function r(t){return o.createFactory(t)}var o=n(41),i=(n(149),n(150)),a=i({a:"a",abbr:"abbr",address:"address",area:"area",article:"article",aside:"aside",audio:"audio",b:"b",base:"base",bdi:"bdi",bdo:"bdo",big:"big",blockquote:"blockquote",body:"body",br:"br",button:"button",canvas:"canvas",caption:"caption",cite:"cite",code:"code",col:"col",colgroup:"colgroup",data:"data",datalist:"datalist",dd:"dd",del:"del",details:"details",dfn:"dfn",dialog:"dialog",div:"div",dl:"dl",dt:"dt",em:"em",embed:"embed",fieldset:"fieldset",figcaption:"figcaption",figure:"figure",footer:"footer",form:"form",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",head:"head",header:"header",hgroup:"hgroup",hr:"hr",html:"html",i:"i",iframe:"iframe",img:"img",input:"input",ins:"ins",kbd:"kbd",keygen:"keygen",label:"label",legend:"legend",li:"li",link:"link",main:"main",map:"map",mark:"mark",menu:"menu",menuitem:"menuitem",meta:"meta",meter:"meter",nav:"nav",noscript:"noscript",object:"object",ol:"ol",optgroup:"optgroup",option:"option",output:"output",p:"p",param:"param",picture:"picture",pre:"pre",progress:"progress",q:"q",rp:"rp",rt:"rt",ruby:"ruby",s:"s",samp:"samp",script:"script",section:"section",select:"select",small:"small",source:"source",span:"span",strong:"strong",style:"style",sub:"sub",summary:"summary",sup:"sup",table:"table",tbody:"tbody",td:"td",textarea:"textarea",tfoot:"tfoot",th:"th",thead:"thead",time:"time",title:"title",tr:"tr",track:"track",u:"u",ul:"ul",var:"var",video:"video",wbr:"wbr",circle:"circle",clipPath:"clipPath",defs:"defs",ellipse:"ellipse",g:"g",image:"image",line:"line",linearGradient:"linearGradient",mask:"mask",path:"path",pattern:"pattern",polygon:"polygon",polyline:"polyline",radialGradient:"radialGradient",rect:"rect",stop:"stop",svg:"svg",text:"text",tspan:"tspan"},r);t.exports=a},function(t,e,n){"use strict";function r(){if(f.current){var t=f.current.getName();if(t)return" Check the render method of `"+t+"`."}return""}function o(t,e){if(t._store&&!t._store.validated&&null==t.key){t._store.validated=!0;i("uniqueKey",t,e)}}function i(t,e,n){var o=r();if(!o){var i="string"==typeof n?n:n.displayName||n.name;i&&(o=" Check the top-level render call using <"+i+">.")}var a=d[t]||(d[t]={});if(a[o])return null;a[o]=!0;var u={parentOrOwner:o,url:" See https://fb.me/react-warning-keys for more information.",childOwner:null};return e&&e._owner&&e._owner!==f.current&&(u.childOwner=" It was passed a child from "+e._owner.getName()+"."),u}function a(t,e){if("object"==typeof t)if(Array.isArray(t))for(var n=0;n1&&(t=i.default.createElement("div",null,i.default.createElement("select",{onChange:this.onAssetChange,value:this.state.selectedAssetIndex},i.default.createElement("option",{value:0},"All Chunks"),this.state.assets.map(function(t,e){return i.default.createElement("option",{key:e,value:e+1},t.name)})))),i.default.createElement("div",null,i.default.createElement("h1",null,"Webpack Visualizer"),t,i.default.createElement(u.default,{chartData:this.state.chartData,bundleDetails:e}),this.state.error&&i.default.createElement("div",{className:"errorMessage"},this.state.error),i.default.createElement(s.default,null))}}),t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n9&&(t+=" chart--large"),this.props.bundleDetails&&0!==Object.keys(this.props.bundleDetails).length?s.default.createElement("div",{className:t},s.default.createElement(h.default,{bundleDetails:this.props.bundleDetails,details:this.state.hoverDetails,topMargin:0}),s.default.createElement(f.default,{data:this.props.chartData,onHover:this.onChartHover,onUnhover:this.onChartUnhover,onRender:this.onChartRender}),s.default.createElement(v.default,{nodes:this.state.breadcrumbNodes})):null}}]),e}(s.default.Component);e.default=g,g.propTypes={breadcrumbNodes:l.PropTypes.array,bundleDetails:l.PropTypes.object,chartData:l.PropTypes.object},t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),i=r(o),a=n(157),u=r(a);e.default=i.default.createClass({displayName:"chart",propTypes:{data:o.PropTypes.object,onHover:o.PropTypes.func,onRender:o.PropTypes.func,onUnhover:o.PropTypes.func},componentDidMount:function(){this.props.data&&this.createChart(this.props.data)},componentDidUpdate:function(t){this.props.data&&this.props.data!==t.data&&this.createChart(this.props.data)},createChart:function(t){var e=(0,u.default)({svgElement:this.refs.svg,root:t,onHover:this.props.onHover,onUnhover:this.props.onUnhover});this.props.onRender&&this.props.onRender(e)},render:function(){return this.props.data?i.default.createElement("svg",{ref:"svg"}):null}}),t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){var e=t.svgElement,n=t.root,r=t.onHover,o=t.onUnhover,u=n.maxDepth>9?950:750,f=Math.min(u,u)/2,v=l.default.layout.partition().size([2*Math.PI,f*f]).value(function(t){return t.size}),g=l.default.svg.arc().startAngle(function(t){return t.x}).endAngle(function(t){return t.x+t.dx}).innerRadius(function(t){return Math.sqrt(t.y)}).outerRadius(function(t){return Math.sqrt(t.y+t.dy)});h&&(e.innerHTML="");var m=v.nodes(n).filter(function(t){return t.dx>.005});(0,c.markDuplicates)(m),h=l.default.select(e).attr("width",u).attr("height",u).append("svg:g").attr("id","svgWrapper").attr("transform","translate("+u/2+", "+u/2+")"),p=h.data([n]).selectAll("path").data(m).enter().append("svg:path").attr("display",function(t){return t.depth?null:"none"}).attr("d",g).attr("fill-rule","evenodd").style("stroke",function(t){return t.duplicate?"#000":""}).style("fill",function(t){return(0,s.getColor)(t)}).style("opacity",1).on("mouseover",function(t){i(t,r)}),d=p.node().__data__.value;var y=h[0][0],_=e.parentNode,b=y.getBoundingClientRect().height,x=y.getBoundingClientRect().top+window.scrollY-(l.default.select(_)[0][0].getBoundingClientRect().top+window.scrollY);return l.default.select(e).attr("height",b),h.attr("transform","translate("+u/2+", "+(u/2-x)+")"),l.default.select(_.querySelector(".details")).style("margin-top",-x+"px"),l.default.select(y).on("mouseleave",function(t){a(t,o)}),{removedTopPadding:x,vis:h}}function i(t,e){var n=(0,c.getAllChildren)(t),r=(0,c.getAncestors)(t);p.style({opacity:f,"stroke-width":f}),p.filter(function(t){return n.indexOf(t)>=0}).style({"stroke-width":2,opacity:1});var o=(100*t.value/d).toFixed(1),i=o+"%";o<.1&&(i="< 0.1%"),e({ancestorArray:r,name:t.name,size:t.value,percentage:i})}function a(t,e){p.style({opacity:1,"stroke-width":1}),e()}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var u=n(158),l=r(u),s=n(159),c=n(160),f=.5,p=void 0,h=void 0,d=void 0;t.exports=e.default},function(t,e,n){var r,o;!function(){function i(t){return t&&(t.ownerDocument||t.document||t).documentElement}function a(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}function u(t,e){return te?1:t>=e?0:NaN}function l(t){return null===t?NaN:+t}function s(t){return!isNaN(t)}function c(t){return{left:function(e,n,r,o){for(arguments.length<3&&(r=0),arguments.length<4&&(o=e.length);r>>1;t(e[i],n)<0?r=i+1:o=i}return r},right:function(e,n,r,o){for(arguments.length<3&&(r=0),arguments.length<4&&(o=e.length);r>>1;t(e[i],n)>0?o=i:r=i+1}return r}}}function f(t){return t.length}function p(t){for(var e=1;t*e%1;)e*=10;return e}function h(t,e){for(var n in e)Object.defineProperty(t.prototype,n,{value:e[n],enumerable:!1})}function d(){this._=Object.create(null)}function v(t){return(t+="")===Ea||t[0]===wa?wa+t:t}function g(t){return(t+="")[0]===wa?t.slice(1):t}function m(t){return v(t)in this._}function y(t){return(t=v(t))in this._&&delete this._[t]}function _(){var t=[];for(var e in this._)t.push(g(e));return t}function b(){var t=0;for(var e in this._)++t;return t}function x(){for(var t in this._)return!1;return!0}function M(){this._=Object.create(null)}function C(t){return t}function E(t,e,n){return function(){var r=n.apply(e,arguments);return r===e?t:r}}function w(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var n=0,r=Na.length;n=e&&(e=o+1);!(a=u[e])&&++e0&&(t=t.slice(0,u));var s=La.get(t);return s&&(t=s,l=J),u?e?o:r:e?N:i}function Q(t,e){return function(n){var r=ha.event;ha.event=n,e[0]=this.__data__;try{t.apply(this,e)}finally{ha.event=r}}}function J(t,e){var n=Q(t,e);return function(t){var e=this,r=t.relatedTarget;r&&(r===e||8&r.compareDocumentPosition(e))||n.call(e,t)}}function tt(t){var e=".dragsuppress-"+ ++Fa,n="click"+e,r=ha.select(a(t)).on("touchmove"+e,k).on("dragstart"+e,k).on("selectstart"+e,k);if(null==Ua&&(Ua=!("onselectstart"in t)&&w(t.style,"userSelect")),Ua){var o=i(t).style,u=o[Ua];o[Ua]="none"}return function(t){if(r.on(e,null),Ua&&(o[Ua]=u),t){var i=function(){r.on(n,null)};r.on(n,function(){k(),i()},!0),setTimeout(i,0)}}}function et(t,e){e.changedTouches&&(e=e.changedTouches[0]);var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();if(ja<0){var o=a(t);if(o.scrollX||o.scrollY){n=ha.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var i=n[0][0].getScreenCTM();ja=!(i.f||i.e),n.remove()}}return ja?(r.x=e.pageX,r.y=e.pageY):(r.x=e.clientX,r.y=e.clientY),r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var u=t.getBoundingClientRect();return[e.clientX-u.left-t.clientLeft,e.clientY-u.top-t.clientTop]}function nt(){return ha.event.changedTouches[0].identifier}function rt(t){return t>0?1:t<0?-1:0}function ot(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}function it(t){return t>1?0:t<-1?Va:Math.acos(t)}function at(t){return t>1?Ha:t<-1?-Ha:Math.asin(t)}function ut(t){return((t=Math.exp(t))-1/t)/2}function lt(t){return((t=Math.exp(t))+1/t)/2}function st(t){return((t=Math.exp(2*t))-1)/(t+1)}function ct(t){return(t=Math.sin(t/2))*t}function ft(){}function pt(t,e,n){return this instanceof pt?(this.h=+t,this.s=+e,void(this.l=+n)):arguments.length<2?t instanceof pt?new pt(t.h,t.s,t.l):Nt(""+t,St,pt):new pt(t,e,n)}function ht(t,e,n){function r(t){return t>360?t-=360:t<0&&(t+=360),t<60?i+(a-i)*t/60:t<180?a:t<240?i+(a-i)*(240-t)/60:i}function o(t){return Math.round(255*r(t))}var i,a;return t=isNaN(t)?0:(t%=360)<0?t+360:t,e=isNaN(e)?0:e<0?0:e>1?1:e,n=n<0?0:n>1?1:n,a=n<=.5?n*(1+e):n+e-n*e,i=2*n-a,new Mt(o(t+120),o(t),o(t-120))}function dt(t,e,n){return this instanceof dt?(this.h=+t,this.c=+e,void(this.l=+n)):arguments.length<2?t instanceof dt?new dt(t.h,t.c,t.l):t instanceof gt?yt(t.l,t.a,t.b):yt((t=Dt((t=ha.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new dt(t,e,n)}function vt(t,e,n){return isNaN(t)&&(t=0),isNaN(e)&&(e=0),new gt(n,Math.cos(t*=Ka)*e,Math.sin(t)*e)}function gt(t,e,n){return this instanceof gt?(this.l=+t,this.a=+e,void(this.b=+n)):arguments.length<2?t instanceof gt?new gt(t.l,t.a,t.b):t instanceof dt?vt(t.h,t.c,t.l):Dt((t=Mt(t)).r,t.g,t.b):new gt(t,e,n)}function mt(t,e,n){var r=(t+16)/116,o=r+e/500,i=r-n/200;return o=_t(o)*ru,r=_t(r)*ou,i=_t(i)*iu,new Mt(xt(3.2404542*o-1.5371385*r-.4985314*i),xt(-.969266*o+1.8760108*r+.041556*i),xt(.0556434*o-.2040259*r+1.0572252*i))}function yt(t,e,n){return t>0?new dt(Math.atan2(n,e)*Ya,Math.sqrt(e*e+n*n),t):new dt(NaN,NaN,t)}function _t(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function bt(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function xt(t){return Math.round(255*(t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function Mt(t,e,n){return this instanceof Mt?(this.r=~~t,this.g=~~e,void(this.b=~~n)):arguments.length<2?t instanceof Mt?new Mt(t.r,t.g,t.b):Nt(""+t,Mt,ht):new Mt(t,e,n)}function Ct(t){return new Mt(t>>16,t>>8&255,255&t)}function Et(t){return Ct(t)+""}function wt(t){return t<16?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function Nt(t,e,n){var r,o,i,a=0,u=0,l=0;if(r=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(o=r[2].split(","),r[1]){case"hsl":return n(parseFloat(o[0]),parseFloat(o[1])/100,parseFloat(o[2])/100);case"rgb":return e(Pt(o[0]),Pt(o[1]),Pt(o[2]))}return(i=lu.get(t))?e(i.r,i.g,i.b):(null==t||"#"!==t.charAt(0)||isNaN(i=parseInt(t.slice(1),16))||(4===t.length?(a=(3840&i)>>4,a|=a>>4,u=240&i,u|=u>>4,l=15&i,l|=l<<4):7===t.length&&(a=(16711680&i)>>16,u=(65280&i)>>8,l=255&i)),e(a,u,l))}function St(t,e,n){var r,o,i=Math.min(t/=255,e/=255,n/=255),a=Math.max(t,e,n),u=a-i,l=(a+i)/2;return u?(o=l<.5?u/(a+i):u/(2-a-i),r=t==a?(e-n)/u+(e0&&l<1?0:r),new pt(r,o,l)}function Dt(t,e,n){t=kt(t),e=kt(e),n=kt(n);var r=bt((.4124564*t+.3575761*e+.1804375*n)/ru),o=bt((.2126729*t+.7151522*e+.072175*n)/ou),i=bt((.0193339*t+.119192*e+.9503041*n)/iu);return gt(116*o-16,500*(r-o),200*(o-i))}function kt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Pt(t){var e=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*e):e}function Rt(t){return"function"==typeof t?t:function(){return t}}function Tt(t){return function(e,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=null),It(e,n,t,r)}}function It(t,e,n,r){function o(){var t,e=l.status;if(!e&&Ot(l)||e>=200&&e<300||304===e){try{t=n.call(i,l)}catch(t){return void a.error.call(i,t)}a.load.call(i,t)}else a.error.call(i,l)}var i={},a=ha.dispatch("beforesend","progress","load","error"),u={},l=new XMLHttpRequest,s=null;return!this.XDomainRequest||"withCredentials"in l||!/^(http(s)?:)?\/\//.test(t)||(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=o:l.onreadystatechange=function(){l.readyState>3&&o()},l.onprogress=function(t){var e=ha.event;ha.event=t;try{a.progress.call(i,l)}finally{ha.event=e}},i.header=function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?u[t]:(null==e?delete u[t]:u[t]=e+"",i)},i.mimeType=function(t){return arguments.length?(e=null==t?null:t+"",i):e},i.responseType=function(t){return arguments.length?(s=t,i):s},i.response=function(t){return n=t,i},["get","post"].forEach(function(t){i[t]=function(){return i.send.apply(i,[t].concat(va(arguments)))}}),i.send=function(n,r,o){if(2===arguments.length&&"function"==typeof r&&(o=r,r=null),l.open(n,t,!0),null==e||"accept"in u||(u.accept=e+",*/*"),l.setRequestHeader)for(var c in u)l.setRequestHeader(c,u[c]);return null!=e&&l.overrideMimeType&&l.overrideMimeType(e),null!=s&&(l.responseType=s),null!=o&&i.on("error",o).on("load",function(t){o(null,t)}),a.beforesend.call(i,l),l.send(null==r?null:r),i},i.abort=function(){return l.abort(),i},ha.rebind(i,a,"on"),null==r?i:i.get(At(r))}function At(t){return 1===t.length?function(e,n){t(null==e?n:null)}:t}function Ot(t){var e=t.responseType;return e&&"text"!==e?t.response:t.responseText}function Lt(t,e,n){var r=arguments.length;r<2&&(e=0),r<3&&(n=Date.now());var o=n+e,i={c:t,t:o,n:null};return cu?cu.n=i:su=i,cu=i,fu||(pu=clearTimeout(pu),fu=1,hu(Ut)),i}function Ut(){var t=Ft(),e=jt()-t;e>24?(isFinite(e)&&(clearTimeout(pu),pu=setTimeout(Ut,e)),fu=0):(fu=1,hu(Ut))}function Ft(){for(var t=Date.now(),e=su;e;)t>=e.t&&e.c(t-e.t)&&(e.c=null),e=e.n;return t}function jt(){for(var t,e=su,n=1/0;e;)e.c?(e.t8?function(t){return t/n}:function(t){return t*n},symbol:t}}function Vt(t){var e=t.decimal,n=t.thousands,r=t.grouping,o=t.currency,i=r&&n?function(t,e){for(var o=t.length,i=[],a=0,u=r[0],l=0;o>0&&u>0&&(l+u+1>e&&(u=Math.max(1,e-l)),i.push(t.substring(o-=u,o+u)),!((l+=u+1)>e));)u=r[a=(a+1)%r.length];return i.reverse().join(n)}:C;return function(t){var n=vu.exec(t),r=n[1]||" ",a=n[2]||">",u=n[3]||"-",l=n[4]||"",s=n[5],c=+n[6],f=n[7],p=n[8],h=n[9],d=1,v="",g="",m=!1,y=!0;switch(p&&(p=+p.substring(1)),(s||"0"===r&&"="===a)&&(s=r="0",a="="),h){case"n":f=!0,h="g";break;case"%":d=100,g="%",h="f";break;case"p":d=100,g="%",h="r";break;case"b":case"o":case"x":case"X":"#"===l&&(v="0"+h.toLowerCase());case"c":y=!1;case"d":m=!0,p=0;break;case"s":d=-1,h="r"}"$"===l&&(v=o[0],g=o[1]),"r"!=h||p||(h="g"),null!=p&&("g"==h?p=Math.max(1,Math.min(21,p)):"e"!=h&&"f"!=h||(p=Math.max(0,Math.min(20,p)))),h=gu.get(h)||zt;var _=s&&f;return function(t){var n=g;if(m&&t%1)return"";var o=t<0||0===t&&1/t<0?(t=-t,"-"):"-"===u?"":u;if(d<0){var l=ha.formatPrefix(t,p);t=l.scale(t),n=l.symbol+g}else t*=d;t=h(t,p);var b,x,M=t.lastIndexOf(".");if(M<0){var C=y?t.lastIndexOf("e"):-1;C<0?(b=t,x=""):(b=t.substring(0,C),x=t.substring(C))}else b=t.substring(0,M),x=e+t.substring(M+1);!s&&f&&(b=i(b,1/0));var E=v.length+b.length+x.length+(_?0:o.length),w=E"===a?w+o+t:"^"===a?w.substring(0,E>>=1)+o+t+w.substring(E):o+(_?t:w+t))+n}}}function zt(t){return t+""}function Wt(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Ht(t,e,n){function r(e){var n=t(e),r=i(n,1);return e-n1)for(;a=s)return-1;if(o=e.charCodeAt(u++),37===o){if(a=e.charAt(u++),i=k[a in bu?e.charAt(u++):a],!i||(r=i(t,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}function r(t,e,n){M.lastIndex=0;var r=M.exec(e.slice(n));return r?(t.w=C.get(r[0].toLowerCase()),n+r[0].length):-1}function o(t,e,n){b.lastIndex=0;var r=b.exec(e.slice(n));return r?(t.w=x.get(r[0].toLowerCase()),n+r[0].length):-1}function i(t,e,n){N.lastIndex=0;var r=N.exec(e.slice(n));return r?(t.m=S.get(r[0].toLowerCase()),n+r[0].length):-1}function a(t,e,n){E.lastIndex=0;var r=E.exec(e.slice(n));return r?(t.m=w.get(r[0].toLowerCase()),n+r[0].length):-1}function u(t,e,r){return n(t,D.c.toString(),e,r)}function l(t,e,r){return n(t,D.x.toString(),e,r)}function s(t,e,r){return n(t,D.X.toString(),e,r)}function c(t,e,n){var r=_.get(e.slice(n,n+=2).toLowerCase());return null==r?-1:(t.p=r,n)}var f=t.dateTime,p=t.date,h=t.time,d=t.periods,v=t.days,g=t.shortDays,m=t.months,y=t.shortMonths;e.utc=function(t){function n(t){try{yu=Wt;var e=new yu;return e._=t,r(e)}finally{yu=Date}}var r=e(t);return n.parse=function(t){try{yu=Wt;var e=r.parse(t);return e&&e._}finally{yu=Date}},n.toString=r.toString,n},e.multi=e.utc.multi=he;var _=ha.map(),b=Xt(v),x=Zt(v),M=Xt(g),C=Zt(g),E=Xt(m),w=Zt(m),N=Xt(y),S=Zt(y);d.forEach(function(t,e){_.set(t.toLowerCase(),e)});var D={a:function(t){return g[t.getDay()]},A:function(t){return v[t.getDay()]},b:function(t){return y[t.getMonth()]},B:function(t){return m[t.getMonth()]},c:e(f),d:function(t,e){return Gt(t.getDate(),e,2)},e:function(t,e){return Gt(t.getDate(),e,2)},H:function(t,e){return Gt(t.getHours(),e,2)},I:function(t,e){return Gt(t.getHours()%12||12,e,2)},j:function(t,e){return Gt(1+mu.dayOfYear(t),e,3)},L:function(t,e){return Gt(t.getMilliseconds(),e,3)},m:function(t,e){return Gt(t.getMonth()+1,e,2)},M:function(t,e){return Gt(t.getMinutes(),e,2)},p:function(t){return d[+(t.getHours()>=12)]},S:function(t,e){return Gt(t.getSeconds(),e,2)},U:function(t,e){return Gt(mu.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return Gt(mu.mondayOfYear(t),e,2)},x:e(p),X:e(h),y:function(t,e){return Gt(t.getFullYear()%100,e,2)},Y:function(t,e){return Gt(t.getFullYear()%1e4,e,4)},Z:fe,"%":function(){return"%"}},k={a:r,A:o,b:i,B:a,c:u,d:ie,e:ie,H:ue,I:ue,j:ae,L:ce,m:oe,M:le,p:c,S:se,U:Qt,w:$t,W:Jt,x:l,X:s,y:ee,Y:te,Z:ne,"%":pe};return e}function Gt(t,e,n){var r=t<0?"-":"",o=(r?-t:t)+"",i=o.length;return r+(i68?1900:2e3)}function oe(t,e,n){xu.lastIndex=0;var r=xu.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ie(t,e,n){xu.lastIndex=0;var r=xu.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function ae(t,e,n){xu.lastIndex=0;var r=xu.exec(e.slice(n,n+3));return r?(t.j=+r[0],n+r[0].length):-1}function ue(t,e,n){xu.lastIndex=0;var r=xu.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function le(t,e,n){xu.lastIndex=0;var r=xu.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function se(t,e,n){xu.lastIndex=0;var r=xu.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function ce(t,e,n){xu.lastIndex=0;var r=xu.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function fe(t){var e=t.getTimezoneOffset(),n=e>0?"-":"+",r=Ca(e)/60|0,o=Ca(e)%60;return n+Gt(r,"0",2)+Gt(o,"0",2)}function pe(t,e,n){Mu.lastIndex=0;var r=Mu.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function he(t){for(var e=t.length,n=-1;++n=0?1:-1,u=a*n,l=Math.cos(e),s=Math.sin(e),c=i*s,f=o*l+c*Math.cos(u),p=c*a*Math.sin(u);Du.add(Math.atan2(p,f)),r=t,o=l,i=s}var e,n,r,o,i;ku.point=function(a,u){ku.point=t,r=(e=a)*Ka,o=Math.cos(u=(n=u)*Ka/2+Va/4),i=Math.sin(u)},ku.lineEnd=function(){t(e,n)}}function be(t){var e=t[0],n=t[1],r=Math.cos(n);return[r*Math.cos(e),r*Math.sin(e),Math.sin(n)]}function xe(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Me(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]; +}function Ce(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Ee(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function we(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function Ne(t){return[Math.atan2(t[1],t[0]),at(t[2])]}function Se(t,e){return Ca(t[0]-e[0])=0;--u)o.point((f=c[u])[0],f[1])}else r(h.x,h.p.x,-1,o);h=h.p}h=h.o,c=h.z,d=!d}while(!h.v);o.lineEnd()}}}function Le(t){if(e=t.length){for(var e,n,r=0,o=t[0];++r0){for(x||(i.polygonStart(),x=!0),i.lineStart();++a1&&2&e&&n.push(n.pop().concat(n.shift())),h.push(n.filter(je))}var h,d,v,g=e(i),m=o.invert(r[0],r[1]),y={point:a,lineStart:l,lineEnd:s,polygonStart:function(){y.point=c,y.lineStart=f,y.lineEnd=p,h=[],d=[]},polygonEnd:function(){y.point=a,y.lineStart=l,y.lineEnd=s,h=ha.merge(h);var t=He(m,d);h.length?(x||(i.polygonStart(),x=!0),Oe(h,qe,t,n,i)):t&&(x||(i.polygonStart(),x=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),x&&(i.polygonEnd(),x=!1),h=d=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}},_=Be(),b=e(_),x=!1;return y}}function je(t){return t.length>1}function Be(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,n){t.push([e,n])},lineEnd:N,buffer:function(){var n=e;return e=[],t=null,n},rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))}}}function qe(t,e){return((t=t.x)[0]<0?t[1]-Ha-Ba:Ha-t[1])-((e=e.x)[0]<0?e[1]-Ha-Ba:Ha-e[1])}function Ve(t){var e,n=NaN,r=NaN,o=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(i,a){var u=i>0?Va:-Va,l=Ca(i-n);Ca(l-Va)0?Ha:-Ha),t.point(o,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(i,r),e=0):o!==u&&l>=Va&&(Ca(n-o)Ba?Math.atan((Math.sin(e)*(i=Math.cos(r))*Math.sin(n)-Math.sin(r)*(o=Math.cos(e))*Math.sin(t))/(o*i*a)):(e+r)/2}function We(t,e,n,r){var o;if(null==t)o=n*Ha,r.point(-Va,o),r.point(0,o),r.point(Va,o),r.point(Va,0),r.point(Va,-o),r.point(0,-o),r.point(-Va,-o),r.point(-Va,0),r.point(-Va,o);else if(Ca(t[0]-e[0])>Ba){var i=t[0]=0?1:-1,C=M*x,E=C>Va,w=d*_;if(Du.add(Math.atan2(w*M*Math.sin(C),v*b+w*Math.cos(C))),i+=E?x+M*za:x,E^p>=n^m>=n){var N=Me(be(f),be(t));we(N);var S=Me(o,N);we(S);var D=(E^x>=0?-1:1)*at(S[2]);(r>D||r===D&&(N[0]||N[1]))&&(a+=E^x>=0?1:-1)}if(!g++)break;p=m,d=_,v=b,f=t}}return(i<-Ba||ii}function n(t){var n,i,l,s,c;return{lineStart:function(){s=l=!1,c=1},point:function(f,p){var h,d=[f,p],v=e(f,p),g=a?v?0:o(f,p):v?o(f+(f<0?Va:-Va),p):0;if(!n&&(s=l=v)&&t.lineStart(),v!==l&&(h=r(n,d),(Se(n,h)||Se(d,h))&&(d[0]+=Ba,d[1]+=Ba,v=e(d[0],d[1]))),v!==l)c=0,v?(t.lineStart(),h=r(d,n),t.point(h[0],h[1])):(h=r(n,d),t.point(h[0],h[1]),t.lineEnd()),n=h;else if(u&&n&&a^v){var m;g&i||!(m=r(d,n,!0))||(c=0,a?(t.lineStart(),t.point(m[0][0],m[0][1]),t.point(m[1][0],m[1][1]),t.lineEnd()):(t.point(m[1][0],m[1][1]),t.lineEnd(),t.lineStart(),t.point(m[0][0],m[0][1])))}!v||n&&Se(n,d)||t.point(d[0],d[1]),n=d,l=v,i=g},lineEnd:function(){l&&t.lineEnd(),n=null},clean:function(){return c|(s&&l)<<1}}}function r(t,e,n){var r=be(t),o=be(e),a=[1,0,0],u=Me(r,o),l=xe(u,u),s=u[0],c=l-s*s;if(!c)return!n&&t;var f=i*l/c,p=-i*s/c,h=Me(a,u),d=Ee(a,f),v=Ee(u,p);Ce(d,v);var g=h,m=xe(d,g),y=xe(g,g),_=m*m-y*(xe(d,d)-1);if(!(_<0)){var b=Math.sqrt(_),x=Ee(g,(-m-b)/y);if(Ce(x,d),x=Ne(x),!n)return x;var M,C=t[0],E=e[0],w=t[1],N=e[1];E0^x[1]<(Ca(x[0]-C)Va^(C<=x[0]&&x[0]<=E)){var P=Ee(g,(-m+b)/y);return Ce(P,d),[x,Ne(P)]}}}function o(e,n){var r=a?t:Va-t,o=0;return e<-r?o|=1:e>r&&(o|=2),n<-r?o|=4:n>r&&(o|=8),o}var i=Math.cos(t),a=i>0,u=Ca(i)>Ba,l=bn(t,6*Ka);return Fe(e,n,l,a?[0,-t]:[-Va,t-Va])}function Ye(t,e,n,r){return function(o){var i,a=o.a,u=o.b,l=a.x,s=a.y,c=u.x,f=u.y,p=0,h=1,d=c-l,v=f-s;if(i=t-l,d||!(i>0)){if(i/=d,d<0){if(i0){if(i>h)return;i>p&&(p=i)}if(i=n-l,d||!(i<0)){if(i/=d,d<0){if(i>h)return;i>p&&(p=i)}else if(d>0){if(i0)){if(i/=v,v<0){if(i0){if(i>h)return;i>p&&(p=i)}if(i=r-s,v||!(i<0)){if(i/=v,v<0){if(i>h)return;i>p&&(p=i)}else if(v>0){if(i0&&(o.a={x:l+p*d,y:s+p*v}),h<1&&(o.b={x:l+h*d,y:s+h*v}),o}}}}}}function Ge(t,e,n,r){function o(r,o){return Ca(r[0]-t)0?0:3:Ca(r[0]-n)0?2:1:Ca(r[1]-e)0?1:0:o>0?3:2}function i(t,e){return a(t.x,e.x)}function a(t,e){var n=o(t,1),r=o(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(u){function l(t){for(var e=0,n=g.length,r=t[1],o=0;or&&ot(s,i,t)>0&&++e:i[1]<=r&&ot(s,i,t)<0&&--e,s=i;return 0!==e}function s(i,u,l,s){var c=0,f=0;if(null==i||(c=o(i,l))!==(f=o(u,l))||a(i,u)<0^l>0){do s.point(0===c||3===c?t:n,c>1?r:e);while((c=(c+l+4)%4)!==f)}else s.point(u[0],u[1])}function c(o,i){return t<=o&&o<=n&&e<=i&&i<=r}function f(t,e){c(t,e)&&u.point(t,e)}function p(){k.point=d,g&&g.push(m=[]),E=!0,C=!1,x=M=NaN}function h(){v&&(d(y,_),b&&C&&S.rejoin(),v.push(S.buffer())),k.point=f,C&&u.lineEnd()}function d(t,e){t=Math.max(-zu,Math.min(zu,t)),e=Math.max(-zu,Math.min(zu,e));var n=c(t,e);if(g&&m.push([t,e]),E)y=t,_=e,b=n,E=!1,n&&(u.lineStart(),u.point(t,e));else if(n&&C)u.point(t,e);else{var r={a:{x:x,y:M},b:{x:t,y:e}};D(r)?(C||(u.lineStart(),u.point(r.a.x,r.a.y)),u.point(r.b.x,r.b.y),n||u.lineEnd(),w=!1):n&&(u.lineStart(),u.point(t,e),w=!1)}x=t,M=e,C=n}var v,g,m,y,_,b,x,M,C,E,w,N=u,S=Be(),D=Ye(t,e,n,r),k={point:f,lineStart:p,lineEnd:h,polygonStart:function(){u=S,v=[],g=[],w=!0},polygonEnd:function(){u=N,v=ha.merge(v);var e=l([t,r]),n=w&&e,o=v.length;(n||o)&&(u.polygonStart(),n&&(u.lineStart(),s(null,null,1,u),u.lineEnd()),o&&Oe(v,i,e,s,u),u.polygonEnd()),v=g=m=null}};return k}}function Xe(t){var e=0,n=Va/3,r=pn(t),o=r(e,n);return o.parallels=function(t){return arguments.length?r(e=t[0]*Va/180,n=t[1]*Va/180):[e/Va*180,n/Va*180]},o}function Ze(t,e){function n(t,e){var n=Math.sqrt(i-2*o*Math.sin(e))/o;return[n*Math.sin(t*=o),a-n*Math.cos(t)]}var r=Math.sin(t),o=(r+Math.sin(e))/2,i=1+r*(2*o-r),a=Math.sqrt(i)/o;return n.invert=function(t,e){var n=a-e;return[Math.atan2(t,n)/o,at((i-(t*t+n*n)*o*o)/(2*o))]},n}function $e(){function t(t,e){Hu+=o*t-r*e,r=t,o=e}var e,n,r,o;Zu.point=function(i,a){Zu.point=t,e=r=i,n=o=a},Zu.lineEnd=function(){t(e,n)}}function Qe(t,e){tGu&&(Gu=t),eXu&&(Xu=e)}function Je(){function t(t,e){a.push("M",t,",",e,i)}function e(t,e){a.push("M",t,",",e),u.point=n}function n(t,e){a.push("L",t,",",e)}function r(){u.point=t}function o(){a.push("Z")}var i=tn(4.5),a=[],u={point:t,lineStart:function(){u.point=e},lineEnd:r,polygonStart:function(){u.lineEnd=o},polygonEnd:function(){u.lineEnd=r,u.point=t},pointRadius:function(t){return i=tn(t),u},result:function(){if(a.length){var t=a.join("");return a=[],t}}};return u}function tn(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function en(t,e){Tu+=t,Iu+=e,++Au}function nn(){function t(t,r){var o=t-e,i=r-n,a=Math.sqrt(o*o+i*i);Ou+=a*(e+t)/2,Lu+=a*(n+r)/2,Uu+=a,en(e=t,n=r)}var e,n;Qu.point=function(r,o){Qu.point=t,en(e=r,n=o)}}function rn(){Qu.point=en}function on(){function t(t,e){var n=t-r,i=e-o,a=Math.sqrt(n*n+i*i);Ou+=a*(r+t)/2,Lu+=a*(o+e)/2,Uu+=a,a=o*t-r*e,Fu+=a*(r+t),ju+=a*(o+e),Bu+=3*a,en(r=t,o=e)}var e,n,r,o;Qu.point=function(i,a){Qu.point=t,en(e=r=i,n=o=a)},Qu.lineEnd=function(){t(e,n)}}function an(t){function e(e,n){t.moveTo(e+a,n),t.arc(e,n,a,0,za)}function n(e,n){t.moveTo(e,n),u.point=r}function r(e,n){t.lineTo(e,n)}function o(){u.point=e}function i(){t.closePath()}var a=4.5,u={point:e,lineStart:function(){u.point=n},lineEnd:o,polygonStart:function(){u.lineEnd=i},polygonEnd:function(){u.lineEnd=o,u.point=e},pointRadius:function(t){return a=t,u},result:N};return u}function un(t){function e(t){return(u?r:n)(t)}function n(e){return cn(e,function(n,r){n=t(n,r),e.point(n[0],n[1])})}function r(e){function n(n,r){n=t(n,r),e.point(n[0],n[1])}function r(){_=NaN,E.point=i,e.lineStart()}function i(n,r){var i=be([n,r]),a=t(n,r);o(_,b,y,x,M,C,_=a[0],b=a[1],y=n,x=i[0],M=i[1],C=i[2],u,e),e.point(_,b)}function a(){E.point=n,e.lineEnd()}function l(){r(),E.point=s,E.lineEnd=c}function s(t,e){i(f=t,p=e),h=_,d=b,v=x,g=M,m=C,E.point=i}function c(){o(_,b,y,x,M,C,h,d,f,v,g,m,u,e),E.lineEnd=a,a()}var f,p,h,d,v,g,m,y,_,b,x,M,C,E={point:n,lineStart:r,lineEnd:a,polygonStart:function(){e.polygonStart(),E.lineStart=l},polygonEnd:function(){e.polygonEnd(),E.lineStart=r}};return E}function o(e,n,r,u,l,s,c,f,p,h,d,v,g,m){var y=c-e,_=f-n,b=y*y+_*_;if(b>4*i&&g--){var x=u+h,M=l+d,C=s+v,E=Math.sqrt(x*x+M*M+C*C),w=Math.asin(C/=E),N=Ca(Ca(C)-1)i||Ca((y*P+_*R)/b-.5)>.3||u*h+l*d+s*v0&&16,e):Math.sqrt(i)},e}function ln(t){var e=un(function(e,n){return t([e*Ya,n*Ya])});return function(t){return hn(e(t))}}function sn(t){this.stream=t}function cn(t,e){return{point:e,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function fn(t){return pn(function(){return t})()}function pn(t){function e(t){return t=u(t[0]*Ka,t[1]*Ka),[t[0]*p+l,s-t[1]*p]}function n(t){return t=u.invert((t[0]-l)/p,(s-t[1])/p),t&&[t[0]*Ya,t[1]*Ya]}function r(){u=Ie(a=gn(m,y,_),i);var t=i(v,g);return l=h-t[0]*p,s=d+t[1]*p,o()}function o(){return c&&(c.valid=!1,c=null),e}var i,a,u,l,s,c,f=un(function(t,e){return t=i(t,e),[t[0]*p+l,s-t[1]*p]}),p=150,h=480,d=250,v=0,g=0,m=0,y=0,_=0,b=Vu,x=C,M=null,E=null;return e.stream=function(t){return c&&(c.valid=!1),c=hn(b(a,f(x(t)))),c.valid=!0,c},e.clipAngle=function(t){return arguments.length?(b=null==t?(M=t,Vu):Ke((M=+t)*Ka),o()):M},e.clipExtent=function(t){return arguments.length?(E=t,x=t?Ge(t[0][0],t[0][1],t[1][0],t[1][1]):C,o()):E},e.scale=function(t){return arguments.length?(p=+t,r()):p},e.translate=function(t){return arguments.length?(h=+t[0],d=+t[1],r()):[h,d]},e.center=function(t){return arguments.length?(v=t[0]%360*Ka,g=t[1]%360*Ka,r()):[v*Ya,g*Ya]},e.rotate=function(t){return arguments.length?(m=t[0]%360*Ka,y=t[1]%360*Ka,_=t.length>2?t[2]%360*Ka:0,r()):[m*Ya,y*Ya,_*Ya]},ha.rebind(e,f,"precision"),function(){return i=t.apply(this,arguments),e.invert=i.invert&&n,r()}}function hn(t){return cn(t,function(e,n){t.point(e*Ka,n*Ka)})}function dn(t,e){return[t,e]}function vn(t,e){return[t>Va?t-za:t<-Va?t+za:t,e]}function gn(t,e,n){return t?e||n?Ie(yn(t),_n(e,n)):yn(t):e||n?_n(e,n):vn}function mn(t){return function(e,n){return e+=t,[e>Va?e-za:e<-Va?e+za:e,n]}}function yn(t){var e=mn(t);return e.invert=mn(-t),e}function _n(t,e){function n(t,e){var n=Math.cos(e),u=Math.cos(t)*n,l=Math.sin(t)*n,s=Math.sin(e),c=s*r+u*o;return[Math.atan2(l*i-c*a,u*r-s*o),at(c*i+l*a)]}var r=Math.cos(t),o=Math.sin(t),i=Math.cos(e),a=Math.sin(e);return n.invert=function(t,e){var n=Math.cos(e),u=Math.cos(t)*n,l=Math.sin(t)*n,s=Math.sin(e),c=s*i-l*a;return[Math.atan2(l*i+s*a,u*r+c*o),at(c*r-u*o)]},n}function bn(t,e){var n=Math.cos(t),r=Math.sin(t);return function(o,i,a,u){var l=a*e;null!=o?(o=xn(n,o),i=xn(n,i),(a>0?oi)&&(o+=a*za)):(o=t+a*za,i=t-.5*l);for(var s,c=o;a>0?c>i:c0?e<-Ha+Ba&&(e=-Ha+Ba):e>Ha-Ba&&(e=Ha-Ba);var n=a/Math.pow(o(e),i);return[n*Math.sin(i*t),a-n*Math.cos(i*t)]}var r=Math.cos(t),o=function(t){return Math.tan(Va/4+t/2)},i=t===e?Math.sin(t):Math.log(r/Math.cos(e))/Math.log(o(e)/o(t)),a=r*Math.pow(o(t),i)/i;return i?(n.invert=function(t,e){var n=a-e,r=rt(i)*Math.sqrt(t*t+n*n);return[Math.atan2(t,n)/i,2*Math.atan(Math.pow(a/r,1/i))-Ha]},n):Rn}function Pn(t,e){function n(t,e){var n=i-e;return[n*Math.sin(o*t),i-n*Math.cos(o*t)]}var r=Math.cos(t),o=t===e?Math.sin(t):(r-Math.cos(e))/(e-t),i=r/o+t;return Ca(o)1&&ot(t[n[r-2]],t[n[r-1]],t[o])<=0;)--r;n[r++]=o}return n.slice(0,r)}function Un(t,e){return t[0]-e[0]||t[1]-e[1]}function Fn(t,e,n){return(n[0]-e[0])*(t[1]-e[1])<(n[1]-e[1])*(t[0]-e[0])}function jn(t,e,n,r){var o=t[0],i=n[0],a=e[0]-o,u=r[0]-i,l=t[1],s=n[1],c=e[1]-l,f=r[1]-s,p=(u*(l-s)-f*(o-i))/(f*a-u*c);return[o+p*a,l+p*c]}function Bn(t){var e=t[0],n=t[t.length-1];return!(e[0]-n[0]||e[1]-n[1])}function qn(){lr(this),this.edge=this.site=this.circle=null}function Vn(t){var e=pl.pop()||new qn;return e.site=t,e}function zn(t){Jn(t),sl.remove(t),pl.push(t),lr(t)}function Wn(t){var e=t.circle,n=e.x,r=e.cy,o={x:n,y:r},i=t.P,a=t.N,u=[t];zn(t);for(var l=i;l.circle&&Ca(n-l.circle.x)Ba)u=u.L;else{if(o=i-Yn(u,a),!(o>Ba)){r>-Ba?(e=u.P,n=u):o>-Ba?(e=u,n=u.N):e=n=u;break}if(!u.R){e=u;break}u=u.R}var l=Vn(t);if(sl.insert(e,l),e||n){if(e===n)return Jn(e),n=Vn(e.site),sl.insert(l,n),l.edge=n.edge=rr(e.site,l.site),Qn(e),void Qn(n);if(!n)return void(l.edge=rr(e.site,l.site));Jn(e),Jn(n);var s=e.site,c=s.x,f=s.y,p=t.x-c,h=t.y-f,d=n.site,v=d.x-c,g=d.y-f,m=2*(p*g-h*v),y=p*p+h*h,_=v*v+g*g,b={x:(g*y-h*_)/m+c,y:(p*_-v*y)/m+f};ir(n.edge,s,d,b),l.edge=rr(s,t,null,b),n.edge=rr(t,d,null,b),Qn(e),Qn(n)}}function Kn(t,e){var n=t.site,r=n.x,o=n.y,i=o-e;if(!i)return r;var a=t.P;if(!a)return-(1/0);n=a.site;var u=n.x,l=n.y,s=l-e;if(!s)return u;var c=u-r,f=1/i-1/s,p=c/s;return f?(-p+Math.sqrt(p*p-2*f*(c*c/(-2*s)-l+s/2+o-i/2)))/f+r:(r+u)/2}function Yn(t,e){var n=t.N;if(n)return Kn(n,e);var r=t.site;return r.y===e?r.x:1/0}function Gn(t){this.site=t,this.edges=[]}function Xn(t){for(var e,n,r,o,i,a,u,l,s,c,f=t[0][0],p=t[1][0],h=t[0][1],d=t[1][1],v=ll,g=v.length;g--;)if(i=v[g],i&&i.prepare())for(u=i.edges,l=u.length,a=0;aBa||Ca(o-n)>Ba)&&(u.splice(a,0,new ar(or(i.site,c,Ca(r-f)Ba?{x:f,y:Ca(e-f)Ba?{x:Ca(n-d)Ba?{x:p,y:Ca(e-p)Ba?{x:Ca(n-h)=-qa)){var h=l*l+s*s,d=c*c+f*f,v=(f*h-s*d)/p,g=(l*d-c*h)/p,f=g+u,m=hl.pop()||new $n;m.arc=t,m.site=o,m.x=v+a,m.y=f+Math.sqrt(v*v+g*g),m.cy=f,t.circle=m;for(var y=null,_=fl._;_;)if(m.y<_.y||m.y===_.y&&m.x<=_.x){if(!_.L){y=_.P;break}_=_.L}else{if(!_.R){y=_;break}_=_.R}fl.insert(y,m),y||(cl=m)}}}}function Jn(t){var e=t.circle;e&&(e.P||(cl=e.N),fl.remove(e),hl.push(e),lr(e),t.circle=null)}function tr(t){for(var e,n=ul,r=Ye(t[0][0],t[0][1],t[1][0],t[1][1]),o=n.length;o--;)e=n[o],(!er(e,t)||!r(e)||Ca(e.a.x-e.b.x)=u)return;if(p>d){if(i){if(i.y>=s)return}else i={x:g,y:l};n={x:g,y:s}}else{if(i){if(i.y1)if(p>d){if(i){if(i.y>=s)return}else i={x:(l-o)/r,y:l};n={x:(s-o)/r,y:s}}else{if(i){if(i.y=u)return}else i={x:a,y:r*a+o};n={x:u,y:r*u+o}}else{if(i){if(i.xi||f>a||p=b,C=n>=x,E=C<<1|M,w=E+4;Ei&&(o=e.slice(i,o),u[a]?u[a]+=o:u[++a]=o),(n=n[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,l.push({i:a,x:Mr(n,r)})),i=gl.lastIndex;return i=0&&!(n=ha.interpolators[r](t,e)););return n}function wr(t,e){var n,r=[],o=[],i=t.length,a=e.length,u=Math.min(t.length,e.length);for(n=0;n=1?1:t(e)}}function Sr(t){return function(e){return 1-t(1-e)}}function Dr(t){return function(e){return.5*(e<.5?t(2*e):2-t(2-2*e))}}function kr(t){return t*t}function Pr(t){return t*t*t}function Rr(t){if(t<=0)return 0;if(t>=1)return 1;var e=t*t,n=e*t;return 4*(t<.5?n:3*(t-e)+n-.75)}function Tr(t){return function(e){return Math.pow(e,t)}}function Ir(t){return 1-Math.cos(t*Ha)}function Ar(t){return Math.pow(2,10*(t-1))}function Or(t){return 1-Math.sqrt(1-t*t)}function Lr(t,e){var n;return arguments.length<2&&(e=.45),arguments.length?n=e/za*Math.asin(1/t):(t=1,n=e/4),function(r){return 1+t*Math.pow(2,-10*r)*Math.sin((r-n)*za/e)}}function Ur(t){return t||(t=1.70158),function(e){return e*e*((t+1)*e-t)}}function Fr(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function jr(t,e){t=ha.hcl(t),e=ha.hcl(e);var n=t.h,r=t.c,o=t.l,i=e.h-n,a=e.c-r,u=e.l-o;return isNaN(a)&&(a=0,r=isNaN(r)?e.c:r),isNaN(i)?(i=0,n=isNaN(n)?e.h:n):i>180?i-=360:i<-180&&(i+=360),function(t){return vt(n+i*t,r+a*t,o+u*t)+""}}function Br(t,e){t=ha.hsl(t),e=ha.hsl(e);var n=t.h,r=t.s,o=t.l,i=e.h-n,a=e.s-r,u=e.l-o;return isNaN(a)&&(a=0,r=isNaN(r)?e.s:r),isNaN(i)?(i=0,n=isNaN(n)?e.h:n):i>180?i-=360:i<-180&&(i+=360),function(t){return ht(n+i*t,r+a*t,o+u*t)+""}}function qr(t,e){t=ha.lab(t),e=ha.lab(e);var n=t.l,r=t.a,o=t.b,i=e.l-n,a=e.a-r,u=e.b-o;return function(t){return mt(n+i*t,r+a*t,o+u*t)+""}}function Vr(t,e){return e-=t,function(n){return Math.round(t+e*n)}}function zr(t){var e=[t.a,t.b],n=[t.c,t.d],r=Hr(e),o=Wr(e,n),i=Hr(Kr(n,e,-o))||0;e[0]*n[1]180?e+=360:e-t>180&&(t+=360),r.push({i:n.push(Yr(n)+"rotate(",null,")")-2,x:Mr(t,e)})):e&&n.push(Yr(n)+"rotate("+e+")")}function Zr(t,e,n,r){t!==e?r.push({i:n.push(Yr(n)+"skewX(",null,")")-2,x:Mr(t,e)}):e&&n.push(Yr(n)+"skewX("+e+")")}function $r(t,e,n,r){if(t[0]!==e[0]||t[1]!==e[1]){var o=n.push(Yr(n)+"scale(",null,",",null,")");r.push({i:o-4,x:Mr(t[0],e[0])},{i:o-2,x:Mr(t[1],e[1])})}else 1===e[0]&&1===e[1]||n.push(Yr(n)+"scale("+e+")")}function Qr(t,e){var n=[],r=[];return t=ha.transform(t),e=ha.transform(e),Gr(t.translate,e.translate,n,r),Xr(t.rotate,e.rotate,n,r),Zr(t.skew,e.skew,n,r),$r(t.scale,e.scale,n,r),t=e=null,function(t){for(var e,o=-1,i=r.length;++o=0;)n.push(o[r])}function fo(t,e){for(var n=[t],r=[];null!=(t=n.pop());)if(r.push(t),(i=t.children)&&(o=i.length))for(var o,i,a=-1;++ao&&(r=n,o=e);return r}function Co(t){return t.reduce(Eo,0)}function Eo(t,e){return t+e[1]}function wo(t,e){return No(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function No(t,e){for(var n=-1,r=+t[0],o=(t[1]-r)/e,i=[];++n<=e;)i[n]=o*n+r;return i}function So(t){return[ha.min(t),ha.max(t)]}function Do(t,e){return t.value-e.value}function ko(t,e){var n=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=n,n._pack_prev=e}function Po(t,e){t._pack_next=e,e._pack_prev=t}function Ro(t,e){var n=e.x-t.x,r=e.y-t.y,o=t.r+e.r;return.999*o*o>n*n+r*r}function To(t){function e(t){c=Math.min(t.x-t.r,c),f=Math.max(t.x+t.r,f),p=Math.min(t.y-t.r,p),h=Math.max(t.y+t.r,h)}if((n=t.children)&&(s=n.length)){var n,r,o,i,a,u,l,s,c=1/0,f=-(1/0),p=1/0,h=-(1/0);if(n.forEach(Io),r=n[0],r.x=-r.r,r.y=0,e(r),s>1&&(o=n[1],o.x=o.r,o.y=0,e(o),s>2))for(i=n[2],Lo(r,o,i),e(i),ko(r,i),r._pack_prev=i,ko(i,o),o=r._pack_next,a=3;a=0;)e=o[i],e.z+=n,e.m+=n,n+=e.s+(r+=e.c)}function Vo(t,e,n){return t.a.parent===e.parent?t.a:n}function zo(t){return 1+ha.max(t,function(t){return t.y})}function Wo(t){return t.reduce(function(t,e){return t+e.x},0)/t.length}function Ho(t){var e=t.children;return e&&e.length?Ho(e[0]):t}function Ko(t){var e,n=t.children;return n&&(e=n.length)?Ko(n[e-1]):t}function Yo(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function Go(t,e){var n=t.x+e[3],r=t.y+e[0],o=t.dx-e[1]-e[3],i=t.dy-e[0]-e[2]; +return o<0&&(n+=o/2,o=0),i<0&&(r+=i/2,i=0),{x:n,y:r,dx:o,dy:i}}function Xo(t){var e=t[0],n=t[t.length-1];return e2?ti:$o,l=r?to:Jr;return a=o(t,e,l,n),u=o(e,t,l,Er),i}function i(t){return a(t)}var a,u;return i.invert=function(t){return u(t)},i.domain=function(e){return arguments.length?(t=e.map(Number),o()):t},i.range=function(t){return arguments.length?(e=t,o()):e},i.rangeRound=function(t){return i.range(t).interpolate(Vr)},i.clamp=function(t){return arguments.length?(r=t,o()):r},i.interpolate=function(t){return arguments.length?(n=t,o()):n},i.ticks=function(e){return ii(t,e)},i.tickFormat=function(e,n){return ai(t,e,n)},i.nice=function(e){return ri(t,e),o()},i.copy=function(){return ei(t,e,n,r)},o()}function ni(t,e){return ha.rebind(t,e,"range","rangeRound","interpolate","clamp")}function ri(t,e){return Qo(t,Jo(oi(t,e)[2])),Qo(t,Jo(oi(t,e)[2])),t}function oi(t,e){null==e&&(e=10);var n=Xo(t),r=n[1]-n[0],o=Math.pow(10,Math.floor(Math.log(r/e)/Math.LN10)),i=e/r*o;return i<=.15?o*=10:i<=.35?o*=5:i<=.75&&(o*=2),n[0]=Math.ceil(n[0]/o)*o,n[1]=Math.floor(n[1]/o)*o+.5*o,n[2]=o,n}function ii(t,e){return ha.range.apply(ha,oi(t,e))}function ai(t,e,n){var r=oi(t,e);if(n){var o=vu.exec(n);if(o.shift(),"s"===o[8]){var i=ha.formatPrefix(Math.max(Ca(r[0]),Ca(r[1])));return o[7]||(o[7]="."+ui(i.scale(r[2]))),o[8]="f",n=ha.format(o.join("")),function(t){return n(i.scale(t))+i.symbol}}o[7]||(o[7]="."+li(o[8],r)),n=o.join("")}else n=",."+ui(r[2])+"f";return ha.format(n)}function ui(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}function li(t,e){var n=ui(e[2]);return t in Dl?Math.abs(n-ui(Math.max(Ca(e[0]),Ca(e[1]))))+ +("e"!==t):n-2*("%"===t)}function si(t,e,n,r){function o(t){return(n?Math.log(t<0?0:t):-Math.log(t>0?0:-t))/Math.log(e)}function i(t){return n?Math.pow(e,t):-Math.pow(e,-t)}function a(e){return t(o(e))}return a.invert=function(e){return i(t.invert(e))},a.domain=function(e){return arguments.length?(n=e[0]>=0,t.domain((r=e.map(Number)).map(o)),a):r},a.base=function(n){return arguments.length?(e=+n,t.domain(r.map(o)),a):e},a.nice=function(){var e=Qo(r.map(o),n?Math:Pl);return t.domain(e),r=e.map(i),a},a.ticks=function(){var t=Xo(r),a=[],u=t[0],l=t[1],s=Math.floor(o(u)),c=Math.ceil(o(l)),f=e%1?2:e;if(isFinite(c-s)){if(n){for(;s0;p--)a.push(i(s)*p);for(s=0;a[s]l;c--);a=a.slice(s,c)}return a},a.tickFormat=function(t,n){if(!arguments.length)return kl;arguments.length<2?n=kl:"function"!=typeof n&&(n=ha.format(n));var r=Math.max(1,e*t/a.ticks().length);return function(t){var a=t/i(Math.round(o(t)));return a*e0?o[n-1]:t[0],n0?0:1}function Ei(t,e,n,r,o){var i=t[0]-e[0],a=t[1]-e[1],u=(o?r:-r)/Math.sqrt(i*i+a*a),l=u*a,s=-u*i,c=t[0]+l,f=t[1]+s,p=e[0]+l,h=e[1]+s,d=(c+p)/2,v=(f+h)/2,g=p-c,m=h-f,y=g*g+m*m,_=n-r,b=c*h-p*f,x=(m<0?-1:1)*Math.sqrt(Math.max(0,_*_*y-b*b)),M=(b*m-g*x)/y,C=(-b*g-m*x)/y,E=(b*m+g*x)/y,w=(-b*g+m*x)/y,N=M-d,S=C-v,D=E-d,k=w-v;return N*N+S*S>D*D+k*k&&(M=E,C=w),[[M-l,C-s],[M*n/_,C*n/_]]}function wi(t){function e(e){function a(){s.push("M",i(t(c),u))}for(var l,s=[],c=[],f=-1,p=e.length,h=Rt(n),d=Rt(r);++f1?t.join("L"):t+"Z"}function Si(t){return t.join("L")+"Z"}function Di(t){for(var e=0,n=t.length,r=t[0],o=[r[0],",",r[1]];++e1&&o.push("H",r[0]),o.join("")}function ki(t){for(var e=0,n=t.length,r=t[0],o=[r[0],",",r[1]];++e1){u=e[1],i=t[l],l++,r+="C"+(o[0]+a[0])+","+(o[1]+a[1])+","+(i[0]-u[0])+","+(i[1]-u[1])+","+i[0]+","+i[1];for(var s=2;s9&&(o=3*e/Math.sqrt(o),a[u]=o*n,a[u+1]=o*r));for(u=-1;++u<=l;)o=(t[Math.min(l,u+1)][0]-t[Math.max(0,u-1)][0])/(6*(1+a[u]*a[u])),i.push([o||0,a[u]*o||0]);return i}function Hi(t){return t.length<3?Ni(t):t[0]+Ai(t,Wi(t))}function Ki(t){for(var e,n,r,o=-1,i=t.length;++o0;)p[--u].call(t,a);if(i>=1)return v.event&&v.event.end.call(t,t.__data__,e),--h.count?delete h[r]:delete t[n],1}var l,s,c,f,p,h=t[n]||(t[n]={active:0,count:0}),v=h[r];v||(l=o.time,s=Lt(i,0,l),v=h[r]={tween:new d,time:l,timer:s,delay:o.delay,duration:o.duration,ease:o.ease,index:e},o=null,++h.count)}function aa(t,e,n){t.attr("transform",function(t){var r=e(t);return"translate("+(isFinite(r)?r:n(t))+",0)"})}function ua(t,e,n){t.attr("transform",function(t){var r=e(t);return"translate(0,"+(isFinite(r)?r:n(t))+")"})}function la(t){return t.toISOString()}function sa(t,e,n){function r(e){return t(e)}function o(t,n){var r=t[1]-t[0],o=r/n,i=ha.bisect(es,o);return i==es.length?[e.year,oi(t.map(function(t){return t/31536e6}),n)[2]]:i?e[o/es[i-1]1?{floor:function(e){for(;n(e=t.floor(e));)e=ca(e-1);return e},ceil:function(e){for(;n(e=t.ceil(e));)e=ca(+e+1);return e}}:t))},r.ticks=function(t,e){var n=Xo(r.domain()),i=null==t?o(n,10):"number"==typeof t?o(n,t):!t.range&&[{range:t},e];return i&&(t=i[0],e=i[1]),t.range(n[0],ca(+n[1]+1),e<1?1:e)},r.tickFormat=function(){return n},r.copy=function(){return sa(t.copy(),e,n)},ni(r,t)}function ca(t){return new Date(t)}function fa(t){return JSON.parse(t.responseText)}function pa(t){var e=ga.createRange();return e.selectNode(ga.body),e.createContextualFragment(t.responseText)}var ha={version:"3.5.17"},da=[].slice,va=function(t){return da.call(t)},ga=this.document;if(ga)try{va(ga.documentElement.childNodes)[0].nodeType}catch(t){va=function(t){for(var e=t.length,n=new Array(e);e--;)n[e]=t[e];return n}}if(Date.now||(Date.now=function(){return+new Date}),ga)try{ga.createElement("DIV").style.setProperty("opacity",0,"")}catch(t){var ma=this.Element.prototype,ya=ma.setAttribute,_a=ma.setAttributeNS,ba=this.CSSStyleDeclaration.prototype,xa=ba.setProperty;ma.setAttribute=function(t,e){ya.call(this,t,e+"")},ma.setAttributeNS=function(t,e,n){_a.call(this,t,e,n+"")},ba.setProperty=function(t,e,n){xa.call(this,t,e+"",n)}}ha.ascending=u,ha.descending=function(t,e){return et?1:e>=t?0:NaN},ha.min=function(t,e){var n,r,o=-1,i=t.length;if(1===arguments.length){for(;++o=r){n=r;break}for(;++or&&(n=r)}else{for(;++o=r){n=r;break}for(;++or&&(n=r)}return n},ha.max=function(t,e){var n,r,o=-1,i=t.length;if(1===arguments.length){for(;++o=r){n=r;break}for(;++on&&(n=r)}else{for(;++o=r){n=r;break}for(;++on&&(n=r)}return n},ha.extent=function(t,e){var n,r,o,i=-1,a=t.length;if(1===arguments.length){for(;++i=r){n=o=r;break}for(;++ir&&(n=r),o=r){n=o=r;break}for(;++ir&&(n=r),o1)return a/(c-1)},ha.deviation=function(){var t=ha.variance.apply(this,arguments);return t?Math.sqrt(t):t};var Ma=c(u);ha.bisectLeft=Ma.left,ha.bisect=ha.bisectRight=Ma.right,ha.bisector=function(t){return c(1===t.length?function(e,n){return u(t(e),n)}:t)},ha.shuffle=function(t,e,n){(i=arguments.length)<3&&(n=t.length,i<2&&(e=0));for(var r,o,i=n-e;i;)o=Math.random()*i--|0,r=t[i+e],t[i+e]=t[o+e],t[o+e]=r;return t},ha.permute=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},ha.pairs=function(t){for(var e,n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n=0;)for(r=t[o],e=r.length;--e>=0;)n[--a]=r[e];return n};var Ca=Math.abs;ha.range=function(t,e,n){if(arguments.length<3&&(n=1,arguments.length<2&&(e=t,t=0)),(e-t)/n===1/0)throw new Error("infinite range");var r,o=[],i=p(Ca(n)),a=-1;if(t*=i,e*=i,n*=i,n<0)for(;(r=t+n*++a)>e;)o.push(r/i);else for(;(r=t+n*++a)=i.length)return r?r.call(o,a):n?a.sort(n):a;for(var l,s,c,f,p=-1,h=a.length,v=i[u++],g=new d;++p=i.length)return t;var r=[],o=a[n++];return t.forEach(function(t,o){r.push({key:t,values:e(o,n)})}),o?r.sort(function(t,e){return o(t.key,e.key)}):r}var n,r,o={},i=[],a=[];return o.map=function(e,n){return t(n,e,0)},o.entries=function(n){return e(t(ha.map,n,0),0)},o.key=function(t){return i.push(t),o},o.sortKeys=function(t){return a[i.length-1]=t,o},o.sortValues=function(t){return n=t,o},o.rollup=function(t){return r=t,o},o},ha.set=function(t){var e=new M;if(t)for(var n=0,r=t.length;n=0&&(r=t.slice(n+1),t=t.slice(0,n)),t)return arguments.length<2?this[t].on(r):this[t].on(r,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&&this[t].on(r,null);return this}},ha.event=null,ha.requote=function(t){return t.replace(Sa,"\\$&")};var Sa=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Da={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)t[n]=e[n]},ka=function(t,e){return e.querySelector(t)},Pa=function(t,e){return e.querySelectorAll(t)},Ra=function(t,e){var n=t.matches||t[w(t,"matchesSelector")];return(Ra=function(t,e){return n.call(t,e)})(t,e)};"function"==typeof Sizzle&&(ka=function(t,e){return Sizzle(t,e)[0]||null},Pa=Sizzle,Ra=Sizzle.matchesSelector),ha.selection=function(){return ha.select(ga.documentElement)};var Ta=ha.selection.prototype=[];Ta.select=function(t){var e,n,r,o,i=[];t=I(t);for(var a=-1,u=this.length;++a=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Aa.hasOwnProperty(n)?{space:Aa[n],local:t}:t}},Ta.attr=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node();return t=ha.ns.qualify(t),t.local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}for(e in t)this.each(O(e,t[e]));return this}return this.each(O(t,e))},Ta.classed=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node(),r=(t=F(t)).length,o=-1;if(e=n.classList){for(;++o=0;)(n=r[o])&&(i&&i!==n.nextSibling&&i.parentNode.insertBefore(n,i),i=n);return this},Ta.sort=function(t){t=Y.apply(this,arguments);for(var e=-1,n=this.length;++e0&&(e=e.transition().duration(S)),e.call(t.event)}function u(){x&&x.domain(b.range().map(function(t){return(t-E.x)/E.k}).map(b.invert)),C&&C.domain(M.range().map(function(t){return(t-E.y)/E.k}).map(M.invert))}function l(t){D++||t({type:"zoomstart"})}function s(t){u(),t({type:"zoom",scale:E.k,translate:[E.x,E.y]})}function c(t){--D||(t({type:"zoomend"}),g=null)}function f(){function t(){u=1,o(ha.mouse(r),p),s(i)}function n(){f.on(T,null).on(I,null),h(u),c(i)}var r=this,i=O.of(r,arguments),u=0,f=ha.select(a(r)).on(T,t).on(I,n),p=e(ha.mouse(r)),h=tt(r);Hl.call(r),l(i)}function p(){function t(){var t=ha.touches(d);return h=E.k,t.forEach(function(t){t.identifier in g&&(g[t.identifier]=e(t))}),t}function n(){var e=ha.event.target;ha.select(e).on(b,a).on(x,u),M.push(e);for(var n=ha.event.changedTouches,r=0,o=n.length;r1){var c=l[0],f=l[1],p=c[0]-f[0],h=c[1]-f[1];m=p*p+h*h}}function a(){var t,e,n,i,a=ha.touches(d);Hl.call(d);for(var u=0,l=a.length;u=s)return a;if(o)return o=!1,i;var e=c;if(34===t.charCodeAt(e)){for(var n=e;n++=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,gu=ha.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(t,e){return(t=ha.round(t,Bt(t,e))).toFixed(Math.max(0,Math.min(20,Bt(t*(1+1e-15),e))))}}),mu=ha.time={},yu=Date;Wt.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){_u.setUTCDate.apply(this._,arguments)},setDay:function(){_u.setUTCDay.apply(this._,arguments)},setFullYear:function(){_u.setUTCFullYear.apply(this._,arguments)},setHours:function(){_u.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){_u.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){_u.setUTCMinutes.apply(this._,arguments)},setMonth:function(){_u.setUTCMonth.apply(this._,arguments)},setSeconds:function(){_u.setUTCSeconds.apply(this._,arguments)},setTime:function(){_u.setTime.apply(this._,arguments)}};var _u=Date.prototype;mu.year=Ht(function(t){return t=mu.day(t),t.setMonth(0,1),t},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t){return t.getFullYear()}),mu.years=mu.year.range,mu.years.utc=mu.year.utc.range,mu.day=Ht(function(t){var e=new yu(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e},function(t,e){t.setDate(t.getDate()+e)},function(t){return t.getDate()-1}),mu.days=mu.day.range,mu.days.utc=mu.day.utc.range,mu.dayOfYear=function(t){var e=mu.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(t,e){e=7-e;var n=mu[t]=Ht(function(t){return(t=mu.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t},function(t,e){t.setDate(t.getDate()+7*Math.floor(e))},function(t){var n=mu.year(t).getDay();return Math.floor((mu.dayOfYear(t)+(n+e)%7)/7)-(n!==e)});mu[t+"s"]=n.range,mu[t+"s"].utc=n.utc.range,mu[t+"OfYear"]=function(t){var n=mu.year(t).getDay();return Math.floor((mu.dayOfYear(t)+(n+e)%7)/7)}}),mu.week=mu.sunday,mu.weeks=mu.sunday.range,mu.weeks.utc=mu.sunday.utc.range,mu.weekOfYear=mu.sundayOfYear;var bu={"-":"",_:" ",0:"0"},xu=/^\s*\d+/,Mu=/^%/;ha.locale=function(t){return{numberFormat:Vt(t),timeFormat:Yt(t)}};var Cu=ha.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});ha.format=Cu.numberFormat,ha.geo={},de.prototype={s:0,t:0,add:function(t){ve(t,this.t,Eu),ve(Eu.s,this.s,this),this.s?this.t+=Eu.t:this.s=Eu.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var Eu=new de;ha.geo.stream=function(t,e){t&&wu.hasOwnProperty(t.type)?wu[t.type](t,e):ge(t,e)};var wu={Feature:function(t,e){ge(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,o=n.length;++rh&&(h=e)}function e(e,n){var r=be([e*Ka,n*Ka]);if(m){var o=Me(m,r),i=[o[1],-o[0],0],a=Me(i,o);we(a),a=Ne(a);var l=e-d,s=l>0?1:-1,v=a[0]*Ya*s,g=Ca(l)>180;if(g^(s*dh&&(h=y)}else if(v=(v+360)%360-180,g^(s*dh&&(h=n);g?eu(c,p)&&(p=e):u(e,p)>u(c,p)&&(c=e):p>=c?(ep&&(p=e)):e>d?u(c,e)>u(c,p)&&(p=e):u(e,p)>u(c,p)&&(c=e)}else t(e,n);m=r,d=e}function n(){x.point=e}function r(){b[0]=c,b[1]=p,x.point=t,m=null}function o(t,n){if(m){var r=t-d;y+=Ca(r)>180?r+(r>0?360:-360):r}else v=t,g=n;ku.point(t,n),e(t,n)}function i(){ku.lineStart()}function a(){o(v,g),ku.lineEnd(),Ca(y)>Ba&&(c=-(p=180)),b[0]=c,b[1]=p,m=null}function u(t,e){return(e-=t)<0?e+360:e}function l(t,e){return t[0]-e[0]}function s(t,e){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:tBa?h=90:y<-Ba&&(f=-90),b[0]=c,b[1]=p}};return function(t){h=p=-(c=f=1/0),_=[],ha.geo.stream(t,x);var e=_.length;if(e){_.sort(l);for(var n,r=1,o=_[0],i=[o];ru(o[0],o[1])&&(o[1]=n[1]),u(n[0],o[1])>u(o[0],o[1])&&(o[0]=n[0])):i.push(o=n);for(var a,n,d=-(1/0),e=i.length-1,r=0,o=i[e];r<=e;o=n,++r)n=i[r],(a=u(o[1],n[0]))>d&&(d=a,c=n[0],p=o[1])}return _=b=null,c===1/0||f===1/0?[[NaN,NaN],[NaN,NaN]]:[[c,f],[p,h]]}}(),ha.geo.centroid=function(t){Pu=Ru=Tu=Iu=Au=Ou=Lu=Uu=Fu=ju=Bu=0,ha.geo.stream(t,qu);var e=Fu,n=ju,r=Bu,o=e*e+n*n+r*r;return o=.12&&o<.234&&r>=-.425&&r<-.214?a:o>=.166&&o<.234&&r>=-.214&&r<-.115?u:i).invert(t)},t.stream=function(t){var e=i.stream(t),n=a.stream(t),r=u.stream(t);return{point:function(t,o){e.point(t,o),n.point(t,o),r.point(t,o)},sphere:function(){e.sphere(),n.sphere(),r.sphere()},lineStart:function(){e.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){e.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){e.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){e.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},t.precision=function(e){return arguments.length?(i.precision(e),a.precision(e),u.precision(e),t):i.precision()},t.scale=function(e){return arguments.length?(i.scale(e),a.scale(.35*e),u.scale(e),t.translate(i.translate())):i.scale()},t.translate=function(e){if(!arguments.length)return i.translate();var s=i.scale(),c=+e[0],f=+e[1];return n=i.translate(e).clipExtent([[c-.455*s,f-.238*s],[c+.455*s,f+.238*s]]).stream(l).point,r=a.translate([c-.307*s,f+.201*s]).clipExtent([[c-.425*s+Ba,f+.12*s+Ba],[c-.214*s-Ba,f+.234*s-Ba]]).stream(l).point,o=u.translate([c-.205*s,f+.212*s]).clipExtent([[c-.214*s+Ba,f+.166*s+Ba],[c-.115*s-Ba,f+.234*s-Ba]]).stream(l).point,t},t.scale(1070)};var Wu,Hu,Ku,Yu,Gu,Xu,Zu={point:N,lineStart:N,lineEnd:N,polygonStart:function(){Hu=0,Zu.lineStart=$e},polygonEnd:function(){Zu.lineStart=Zu.lineEnd=Zu.point=N,Wu+=Ca(Hu/2)}},$u={point:Qe,lineStart:N,lineEnd:N,polygonStart:N,polygonEnd:N},Qu={point:en,lineStart:nn,lineEnd:rn,polygonStart:function(){Qu.lineStart=on},polygonEnd:function(){Qu.point=en,Qu.lineStart=nn,Qu.lineEnd=rn}};ha.geo.path=function(){function t(t){return t&&("function"==typeof u&&i.pointRadius(+u.apply(this,arguments)),a&&a.valid||(a=o(i)),ha.geo.stream(t,a)),i.result()}function e(){return a=null,t}var n,r,o,i,a,u=4.5;return t.area=function(t){return Wu=0,ha.geo.stream(t,o(Zu)),Wu},t.centroid=function(t){return Tu=Iu=Au=Ou=Lu=Uu=Fu=ju=Bu=0,ha.geo.stream(t,o(Qu)),Bu?[Fu/Bu,ju/Bu]:Uu?[Ou/Uu,Lu/Uu]:Au?[Tu/Au,Iu/Au]:[NaN,NaN]},t.bounds=function(t){return Gu=Xu=-(Ku=Yu=1/0),ha.geo.stream(t,o($u)),[[Ku,Yu],[Gu,Xu]]},t.projection=function(t){return arguments.length?(o=(n=t)?t.stream||ln(t):C,e()):n},t.context=function(t){return arguments.length?(i=null==(r=t)?new Je:new an(t),"function"!=typeof u&&i.pointRadius(u),e()):r},t.pointRadius=function(e){return arguments.length?(u="function"==typeof e?e:(i.pointRadius(+e),+e),t):u},t.projection(ha.geo.albersUsa()).context(null)},ha.geo.transform=function(t){return{stream:function(e){var n=new sn(e);for(var r in t)n[r]=t[r];return n}}},sn.prototype={point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},ha.geo.projection=fn,ha.geo.projectionMutator=pn,(ha.geo.equirectangular=function(){return fn(dn)}).raw=dn.invert=dn,ha.geo.rotation=function(t){function e(e){return e=t(e[0]*Ka,e[1]*Ka),e[0]*=Ya,e[1]*=Ya,e}return t=gn(t[0]%360*Ka,t[1]*Ka,t.length>2?t[2]*Ka:0),e.invert=function(e){return e=t.invert(e[0]*Ka,e[1]*Ka),e[0]*=Ya,e[1]*=Ya,e},e},vn.invert=dn,ha.geo.circle=function(){function t(){var t="function"==typeof r?r.apply(this,arguments):r,e=gn(-t[0]*Ka,-t[1]*Ka,0).invert,o=[];return n(null,null,1,{point:function(t,n){o.push(t=e(t,n)),t[0]*=Ya,t[1]*=Ya}}),{type:"Polygon",coordinates:[o]}}var e,n,r=[0,0],o=6;return t.origin=function(e){return arguments.length?(r=e,t):r},t.angle=function(r){return arguments.length?(n=bn((e=+r)*Ka,o*Ka),t):e},t.precision=function(r){return arguments.length?(n=bn(e*Ka,(o=+r)*Ka),t):o},t.angle(90)},ha.geo.distance=function(t,e){var n,r=(e[0]-t[0])*Ka,o=t[1]*Ka,i=e[1]*Ka,a=Math.sin(r),u=Math.cos(r),l=Math.sin(o),s=Math.cos(o),c=Math.sin(i),f=Math.cos(i);return Math.atan2(Math.sqrt((n=f*a)*n+(n=s*c-l*f*u)*n),l*c+s*f*u)},ha.geo.graticule=function(){function t(){return{type:"MultiLineString",coordinates:e()}}function e(){return ha.range(Math.ceil(i/g)*g,o,g).map(p).concat(ha.range(Math.ceil(s/m)*m,l,m).map(h)).concat(ha.range(Math.ceil(r/d)*d,n,d).filter(function(t){return Ca(t%g)>Ba}).map(c)).concat(ha.range(Math.ceil(u/v)*v,a,v).filter(function(t){return Ca(t%m)>Ba}).map(f))}var n,r,o,i,a,u,l,s,c,f,p,h,d=10,v=d,g=90,m=360,y=2.5;return t.lines=function(){return e().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[p(i).concat(h(l).slice(1),p(o).reverse().slice(1),h(s).reverse().slice(1))]}},t.extent=function(e){return arguments.length?t.majorExtent(e).minorExtent(e):t.minorExtent()},t.majorExtent=function(e){return arguments.length?(i=+e[0][0],o=+e[1][0],s=+e[0][1],l=+e[1][1],i>o&&(e=i,i=o,o=e),s>l&&(e=s,s=l,l=e),t.precision(y)):[[i,s],[o,l]]},t.minorExtent=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],u=+e[0][1],a=+e[1][1],r>n&&(e=r,r=n,n=e),u>a&&(e=u,u=a,a=e),t.precision(y)):[[r,u],[n,a]]},t.step=function(e){return arguments.length?t.majorStep(e).minorStep(e):t.minorStep()},t.majorStep=function(e){return arguments.length?(g=+e[0],m=+e[1],t):[g,m]},t.minorStep=function(e){return arguments.length?(d=+e[0],v=+e[1],t):[d,v]},t.precision=function(e){return arguments.length?(y=+e,c=Mn(u,a,90),f=Cn(r,n,y),p=Mn(s,l,90),h=Cn(i,o,y),t):y},t.majorExtent([[-180,-90+Ba],[180,90-Ba]]).minorExtent([[-180,-80-Ba],[180,80+Ba]])},ha.geo.greatArc=function(){function t(){return{type:"LineString",coordinates:[e||r.apply(this,arguments),n||o.apply(this,arguments)]}}var e,n,r=En,o=wn;return t.distance=function(){return ha.geo.distance(e||r.apply(this,arguments),n||o.apply(this,arguments))},t.source=function(n){return arguments.length?(r=n,e="function"==typeof n?null:n,t):r},t.target=function(e){return arguments.length?(o=e,n="function"==typeof e?null:e,t):o},t.precision=function(){return arguments.length?t:0},t},ha.geo.interpolate=function(t,e){return Nn(t[0]*Ka,t[1]*Ka,e[0]*Ka,e[1]*Ka)},ha.geo.length=function(t){return Ju=0,ha.geo.stream(t,tl),Ju};var Ju,tl={sphere:N,point:N,lineStart:Sn,lineEnd:N,polygonStart:N,polygonEnd:N},el=Dn(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(ha.geo.azimuthalEqualArea=function(){return fn(el)}).raw=el;var nl=Dn(function(t){var e=Math.acos(t);return e&&e/Math.sin(e)},C);(ha.geo.azimuthalEquidistant=function(){return fn(nl)}).raw=nl,(ha.geo.conicConformal=function(){return Xe(kn)}).raw=kn,(ha.geo.conicEquidistant=function(){return Xe(Pn)}).raw=Pn;var rl=Dn(function(t){return 1/t},Math.atan);(ha.geo.gnomonic=function(){return fn(rl)}).raw=rl,Rn.invert=function(t,e){return[t,2*Math.atan(Math.exp(e))-Ha]},(ha.geo.mercator=function(){return Tn(Rn)}).raw=Rn;var ol=Dn(function(){return 1},Math.asin);(ha.geo.orthographic=function(){return fn(ol)}).raw=ol;var il=Dn(function(t){return 1/(1+t)},function(t){return 2*Math.atan(t)});(ha.geo.stereographic=function(){return fn(il)}).raw=il,In.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-Ha]},(ha.geo.transverseMercator=function(){var t=Tn(In),e=t.center,n=t.rotate;return t.center=function(t){return t?e([-t[1],t[0]]):(t=e(),[t[1],-t[0]])},t.rotate=function(t){return t?n([t[0],t[1],t.length>2?t[2]+90:90]):(t=n(),[t[0],t[1],t[2]-90])},n([0,0,90])}).raw=In,ha.geom={},ha.geom.hull=function(t){function e(t){if(t.length<3)return[];var e,o=Rt(n),i=Rt(r),a=t.length,u=[],l=[];for(e=0;e=0;--e)h.push(t[u[s[e]][2]]);for(e=+f;e=r&&s.x<=i&&s.y>=o&&s.y<=a?[[r,a],[i,a],[i,o],[r,o]]:[];c.point=t[u]}),e}function n(t){return t.map(function(t,e){return{x:Math.round(i(t,e)/Ba)*Ba,y:Math.round(a(t,e)/Ba)*Ba,i:e}})}var r=An,o=On,i=r,a=o,u=dl;return t?e(t):(e.links=function(t){return pr(n(t)).edges.filter(function(t){return t.l&&t.r}).map(function(e){return{source:t[e.l.i],target:t[e.r.i]}})},e.triangles=function(t){var e=[];return pr(n(t)).cells.forEach(function(n,r){for(var o,i,a=n.site,u=n.edges.sort(Zn),l=-1,s=u.length,c=u[s-1].edge,f=c.l===a?c.r:c.l;++l=s,p=r>=c,h=p<<1|f;t.leaf=!1,t=t.nodes[h]||(t.nodes[h]=mr()),f?o=s:u=s,p?a=c:l=c,i(t,e,n,r,o,a,u,l)}var c,f,p,h,d,v,g,m,y,_=Rt(u),b=Rt(l);if(null!=e)v=e,g=n,m=r,y=o;else if(m=y=-(v=g=1/0),f=[],p=[],d=t.length,a)for(h=0;hm&&(m=c.x),c.y>y&&(y=c.y),f.push(c.x),p.push(c.y);else for(h=0;hm&&(m=x),M>y&&(y=M),f.push(x),p.push(M)}var C=m-v,E=y-g;C>E?y=g+C:m=v+E;var w=mr();if(w.add=function(t){i(w,t,+_(t,++h),+b(t,h),v,g,m,y)},w.visit=function(t){yr(t,w,v,g,m,y)},w.find=function(t){return _r(w,t[0],t[1],v,g,m,y)},h=-1,null==e){for(;++h=0?t.slice(0,e):t,r=e>=0?t.slice(e+1):"in";return n=yl.get(n)||ml,r=_l.get(r)||C,Nr(r(n.apply(null,da.call(arguments,1))))},ha.interpolateHcl=jr,ha.interpolateHsl=Br,ha.interpolateLab=qr,ha.interpolateRound=Vr,ha.transform=function(t){var e=ga.createElementNS(ha.ns.prefix.svg,"g");return(ha.transform=function(t){if(null!=t){e.setAttribute("transform",t);var n=e.transform.baseVal.consolidate()}return new zr(n?n.matrix:bl)})(t)},zr.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var bl={a:1,b:0,c:0,d:1,e:0,f:0};ha.interpolateTransform=Qr,ha.layout={},ha.layout.bundle=function(){return function(t){for(var e=[],n=-1,r=t.length;++n0?o=t:(n.c=null,n.t=NaN,n=null,s.end({type:"end",alpha:o=0})):t>0&&(s.start({type:"start",alpha:o=t}),n=Lt(l.tick)),l):o},l.start=function(){function t(t,r){if(!n){for(n=new Array(o),l=0;l=0;)a.push(c=s[l]),c.parent=i,c.depth=i.depth+1;r&&(i.value=0),i.children=s}else r&&(i.value=+r.call(t,i,i.depth)||0),delete i.children;return fo(o,function(t){var n,o;e&&(n=t.children)&&n.sort(e),r&&(o=t.parent)&&(o.value+=t.value)}),u}var e=vo,n=po,r=ho;return t.sort=function(n){return arguments.length?(e=n,t):e},t.children=function(e){return arguments.length?(n=e,t):n},t.value=function(e){return arguments.length?(r=e,t):r},t.revalue=function(e){return r&&(co(e,function(t){t.children&&(t.value=0)}),fo(e,function(e){var n;e.children||(e.value=+r.call(t,e,e.depth)||0),(n=e.parent)&&(n.value+=e.value)})),e},t},ha.layout.partition=function(){function t(e,n,r,o){var i=e.children;if(e.x=n,e.y=e.depth*o,e.dx=r,e.dy=o,i&&(a=i.length)){var a,u,l,s=-1;for(r=e.value?r/e.value:0;++su&&(u=r),a.push(r)}for(n=0;n0)for(i=-1;++i=c[0]&&u<=c[1]&&(a=l[ha.bisect(f,u,1,h)-1],a.y+=d,a.push(t[i]));return l}var e=!0,n=Number,r=So,o=wo;return t.value=function(e){return arguments.length?(n=e,t):n},t.range=function(e){return arguments.length?(r=Rt(e),t):r},t.bins=function(e){return arguments.length?(o="number"==typeof e?function(t){return No(t,e)}:Rt(e),t):o},t.frequency=function(n){return arguments.length?(e=!!n,t):e},t},ha.layout.pack=function(){function t(t,i){var a=n.call(this,t,i),u=a[0],l=o[0],s=o[1],c=null==e?Math.sqrt:"function"==typeof e?e:function(){return e};if(u.x=u.y=0,fo(u,function(t){t.r=+c(t.value)}),fo(u,To),r){var f=r*(e?1:Math.max(2*u.r/l,2*u.r/s))/2;fo(u,function(t){t.r+=f}),fo(u,To),fo(u,function(t){t.r-=f})}return Oo(u,l/2,s/2,e?1:1/Math.max(2*u.r/l,2*u.r/s)),a}var e,n=ha.layout.hierarchy().sort(Do),r=0,o=[1,1];return t.size=function(e){return arguments.length?(o=e,t):o},t.radius=function(n){return arguments.length?(e=null==n||"function"==typeof n?n:+n,t):e},t.padding=function(e){return arguments.length?(r=+e,t):r},so(t,n)},ha.layout.tree=function(){function t(t,o){var c=a.call(this,t,o),f=c[0],p=e(f);if(fo(p,n),p.parent.m=-p.z,co(p,r),s)co(f,i);else{var h=f,d=f,v=f;co(f,function(t){t.xd.x&&(d=t),t.depth>v.depth&&(v=t)});var g=u(h,d)/2-h.x,m=l[0]/(d.x+u(d,h)/2+g),y=l[1]/(v.depth||1);co(f,function(t){t.x=(t.x+g)*m,t.y=t.depth*y})}return c}function e(t){for(var e,n={A:null,children:[t]},r=[n];null!=(e=r.pop());)for(var o,i=e.children,a=0,u=i.length;a0&&(Bo(Vo(a,t,n),t,r),s+=r,c+=r),f+=a.m,s+=o.m,p+=l.m,c+=i.m;a&&!jo(i)&&(i.t=a,i.m+=f-c),o&&!Fo(l)&&(l.t=o,l.m+=s-p,n=t)}return n}function i(t){t.x*=l[0],t.y=t.depth*l[1]}var a=ha.layout.hierarchy().sort(null).value(null),u=Uo,l=[1,1],s=null;return t.separation=function(e){return arguments.length?(u=e,t):u},t.size=function(e){return arguments.length?(s=null==(l=e)?i:null,t):s?null:l},t.nodeSize=function(e){return arguments.length?(s=null==(l=e)?null:i,t):s?l:null},so(t,a)},ha.layout.cluster=function(){function t(t,i){var a,u=e.call(this,t,i),l=u[0],s=0;fo(l,function(t){var e=t.children;e&&e.length?(t.x=Wo(e),t.y=zo(e)):(t.x=a?s+=n(t,a):0,t.y=0,a=t)});var c=Ho(l),f=Ko(l),p=c.x-n(c,f)/2,h=f.x+n(f,c)/2;return fo(l,o?function(t){t.x=(t.x-l.x)*r[0],t.y=(l.y-t.y)*r[1]}:function(t){t.x=(t.x-p)/(h-p)*r[0],t.y=(1-(l.y?t.y/l.y:1))*r[1]}),u}var e=ha.layout.hierarchy().sort(null).value(null),n=Uo,r=[1,1],o=!1;return t.separation=function(e){return arguments.length?(n=e,t):n},t.size=function(e){return arguments.length?(o=null==(r=e),t):o?null:r},t.nodeSize=function(e){return arguments.length?(o=null!=(r=e),t):o?r:null},so(t,e)},ha.layout.treemap=function(){function t(t,e){for(var n,r,o=-1,i=t.length;++o0;)c.push(a=p[l-1]),c.area+=a.area,"squarify"!==h||(u=r(c,v))<=d?(p.pop(),d=u):(c.area-=c.pop().area,o(c,v,s,!1),v=Math.min(s.dx,s.dy),c.length=c.area=0,d=1/0);c.length&&(o(c,v,s,!0),c.length=c.area=0),i.forEach(e)}}function n(e){var r=e.children;if(r&&r.length){var i,a=f(e),u=r.slice(),l=[];for(t(u,a.dx*a.dy/e.value),l.area=0;i=u.pop();)l.push(i),l.area+=i.area,null!=i.z&&(o(l,i.z?a.dx:a.dy,a,!u.length),l.length=l.area=0);r.forEach(n)}}function r(t,e){for(var n,r=t.area,o=0,i=1/0,a=-1,u=t.length;++ao&&(o=n));return r*=r,e*=e,r?Math.max(e*o*d/r,r/(e*i*d)):1/0}function o(t,e,n,r){var o,i=-1,a=t.length,u=n.x,s=n.y,c=e?l(t.area/e):0;if(e==n.dx){for((r||c>n.dy)&&(c=n.dy);++in.dx)&&(c=n.dx);++i1);return t+e*n*Math.sqrt(-2*Math.log(o)/o)}},logNormal:function(){var t=ha.random.normal.apply(ha,arguments);return function(){return Math.exp(t())}},bates:function(t){var e=ha.random.irwinHall(t);return function(){return e()/t}},irwinHall:function(t){return function(){for(var e=0,n=0;nf?0:1;if(s=Wa)return e(s,h)+(t?e(t,1-h):"")+"Z";var d,v,g,m,y,_,b,x,M,C,E,w,N=0,S=0,D=[];if((m=(+l.apply(this,arguments)||0)/2)&&(g=i===Ol?Math.sqrt(t*t+s*s):+i.apply(this,arguments),h||(S*=-1),s&&(S=at(g/s*Math.sin(m))),t&&(N=at(g/t*Math.sin(m)))),s){y=s*Math.cos(c+S),_=s*Math.sin(c+S),b=s*Math.cos(f-S),x=s*Math.sin(f-S);var k=Math.abs(f-c-2*S)<=Va?0:1;if(S&&Ci(y,_,b,x)===h^k){var P=(c+f)/2;y=s*Math.cos(P),_=s*Math.sin(P),b=x=null}}else y=_=0;if(t){M=t*Math.cos(f-N),C=t*Math.sin(f-N),E=t*Math.cos(c+N),w=t*Math.sin(c+N);var R=Math.abs(c-f+2*N)<=Va?0:1;if(N&&Ci(M,C,E,w)===1-h^R){var T=(c+f)/2;M=t*Math.cos(T),C=t*Math.sin(T),E=w=null}}else M=C=0;if(p>Ba&&(d=Math.min(Math.abs(s-t)/2,+o.apply(this,arguments)))>.001){v=tVa)+",1 "+e}function o(t,e,n,r){return"Q 0,0 "+r}var i=En,a=wn,u=Gi,l=bi,s=xi;return t.radius=function(e){return arguments.length?(u=Rt(e),t):u},t.source=function(e){return arguments.length?(i=Rt(e),t):i},t.target=function(e){return arguments.length?(a=Rt(e),t):a},t.startAngle=function(e){return arguments.length?(l=Rt(e),t):l},t.endAngle=function(e){return arguments.length?(s=Rt(e),t):s},t},ha.svg.diagonal=function(){function t(t,o){var i=e.call(this,t,o),a=n.call(this,t,o),u=(i.y+a.y)/2,l=[i,{x:i.x,y:u},{x:a.x,y:u},a];return l=l.map(r),"M"+l[0]+"C"+l[1]+" "+l[2]+" "+l[3]}var e=En,n=wn,r=Xi;return t.source=function(n){return arguments.length?(e=Rt(n),t):e},t.target=function(e){return arguments.length?(n=Rt(e),t):n},t.projection=function(e){return arguments.length?(r=e,t):r},t},ha.svg.diagonal.radial=function(){var t=ha.svg.diagonal(),e=Xi,n=t.projection;return t.projection=function(t){return arguments.length?n(Zi(e=t)):e},t},ha.svg.symbol=function(){function t(t,r){return(Bl.get(e.call(this,t,r))||Ji)(n.call(this,t,r))}var e=Qi,n=$i;return t.type=function(n){return arguments.length?(e=Rt(n),t):e},t.size=function(e){return arguments.length?(n=Rt(e),t):n},t};var Bl=ha.map({circle:Ji,cross:function(t){var e=Math.sqrt(t/5)/2;return"M"+-3*e+","+-e+"H"+-e+"V"+-3*e+"H"+e+"V"+-e+"H"+3*e+"V"+e+"H"+e+"V"+3*e+"H"+-e+"V"+e+"H"+-3*e+"Z"},diamond:function(t){var e=Math.sqrt(t/(2*Vl)),n=e*Vl;return"M0,"+-e+"L"+n+",0 0,"+e+" "+-n+",0Z"},square:function(t){var e=Math.sqrt(t)/2;return"M"+-e+","+-e+"L"+e+","+-e+" "+e+","+e+" "+-e+","+e+"Z"},"triangle-down":function(t){var e=Math.sqrt(t/ql),n=e*ql/2;return"M0,"+n+"L"+e+","+-n+" "+-e+","+-n+"Z"},"triangle-up":function(t){var e=Math.sqrt(t/ql),n=e*ql/2;return"M0,"+-n+"L"+e+","+n+" "+-e+","+n+"Z"}});ha.svg.symbolTypes=Bl.keys();var ql=Math.sqrt(3),Vl=Math.tan(30*Ka);Ta.transition=function(t){for(var e,n,r=zl||++Yl,o=oa(t),i=[],a=Wl||{time:Date.now(),ease:Rr,delay:0,duration:250},u=-1,l=this.length;++urect,.s>rect").attr("width",f[1]-f[0])}function r(t){t.select(".extent").attr("y",p[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",p[1]-p[0])}function o(){function o(){32==ha.event.keyCode&&(D||(_=null,R[0]-=f[1],R[1]-=p[1],D=2),k())}function v(){32==ha.event.keyCode&&2==D&&(R[0]+=f[1],R[1]+=p[1],D=0,k())}function g(){var t=ha.mouse(x),o=!1;b&&(t[0]+=b[0],t[1]+=b[1]),D||(ha.event.altKey?(_||(_=[(f[0]+f[1])/2,(p[0]+p[1])/2]),R[0]=f[+(t[0]<_[0])],R[1]=p[+(t[1]<_[1])]):_=null),N&&m(t,s,0)&&(n(E),o=!0),S&&m(t,c,1)&&(r(E),o=!0),o&&(e(E),C({type:"brush",mode:D?"move":"resize"}))}function m(t,e,n){var r,o,a=Zo(e),l=a[0],s=a[1],c=R[n],v=n?p:f,g=v[1]-v[0];if(D&&(l-=c,s-=g+c),r=(n?d:h)?Math.max(l,Math.min(s,t[n])):t[n],D?o=(r+=c)+g:(_&&(c=Math.max(l,Math.min(s,2*_[n]-r))),c=r.value?o=r:(o=n,t<.92*n.value&&0===e&&(e=1)),(t/o.value).toFixed(e)+o.label}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n,t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),i=r(o),a=function(t){return i.default.createElement("div",{className:"breadcrumbs"},t.nodes.map(function(t,e){var n=" > ";return 0===e&&(n=""),n+t.name}))};a.propTypes={nodes:o.PropTypes.array},e.default=a,t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),i=r(o);e.default=function(t){return i.default.createElement("footer",null,t.children,i.default.createElement("h2",null,"Disclaimer"),i.default.createElement("p",null,'Due to limitations in Webpack\'s stats, the "actual" (minified) numbers reported here are approximate, but they should be pretty close.'),i.default.createElement("h2",null,"Contribute!"),i.default.createElement("p",null,"Check it out on ",i.default.createElement("a",{href:"https://github.com/chrisbateman/webpack-visualizer"},"GitHub"),", and please ",i.default.createElement("a",{href:"https://github.com/chrisbateman/webpack-visualizer/issues"},"report issues or request features"),"!"),i.default.createElement("h2",null,"Acknowledgements"),i.default.createElement("p",null,i.default.createElement("a",{href:"https://github.com/hughsk/disc"},"Disc")," for Browserify did this first. Thanks also to ",i.default.createElement("a",{href:"https://gist.github.com/kerryrodden/7090426"},"this example")," from the D3 gallery for demonstating how to create sunburst charts."),i.default.createElement("h2",null,"Comments, questions"),i.default.createElement("p",null,"Let me know! ",i.default.createElement("a",{href:"https://twitter.com/batemanchris/"},"@batemanchris")))},t.exports=e.default},function(t,e){"use strict";function n(t){var e=1,n={children:[],name:"root"};return t.forEach(function(t){var o=t.identifier.indexOf("extract-text-webpack-plugin")!==-1,i=t.issuer&&t.issuer.indexOf("extract-text-webpack-plugin")!==-1;if(!o&&!i&&null!==t.index){var a={id:t.id,fullName:t.name,size:t.size,reasons:t.reasons},u=a.fullName.split("/").length-1;u>e&&(e=u);var l=a.fullName,s=a.fullName.slice(0,2);"./"===s&&(l=l.slice(2)),r(a,l,n)}}),n.maxDepth=e,n}function r(t,e,n){var i=e.indexOf("/");if(i!==-1){var a=e.slice(0,i);"~"===a&&(a="node_modules");var u=o(n.children,a);u||(u={name:a,children:[]},n.children.push(u)),r(t,e.slice(i+1),u)}else t.name=e,n.children.push(t)}function o(t,e){for(var n=0;n