text: !function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="/static/",e(0)}([function(t,e,n){function r(t){var e=[t.dataset.dataset_code];return t.dataset.data.forEach(function(t){e.push(t[1])}),d=[["x"]],t.dataset.data.forEach(function(t){d[0].push(new Date(t[0]))}),d.push(e),d}function i(t,e){s.ajaxRequest("get",p+"/api/stock/"+t,e)}var o=n(102),a=n(148),s=(n(211),new(n(113))),u=n(112),c=n(206),l=n(117),p=window.location.origin,f=o.createClass({displayName:"Hello",socket:null,componentDidMount:function(){var t,e=this,n=this.socket=c.connect(p);this.setState({loading:!0}),n.on("add",function(n){e.setState({loading:!0}),i(n,function(i){i&&t.load({columns:r(i)});var o=e.state.codes;o.push(n),e.setState({codes:o,loading:!1})})}),n.on("remove",function(n){e.setState({loading:!0}),t.unload({ids:n});var r=e.state.codes,i=r.indexOf(n);r.splice(i,1),e.setState({codes:r,loading:!1})}),t=l.generate({padding:{top:30,bottom:10,left:70,right:40},data:{x:"x",columns:[]},axis:{x:{type:"timeseries",tick:{format:"%Y-%m-%d"}},y:{label:{text:"Value",position:"outer-middle"}}},grid:{x:{show:!0},y:{show:!0}}}),s.ajaxRequest("get",p+"/api/codes",function(n){var o=n.codes;0===o.length&&e.setState({codes:o,loading:!1});var a=0,s=[];o.forEach(function(n){i(n,function(n){n&&(s.push(r(n)),a++,a===o.length&&(s.forEach(function(e){t.load({columns:e})}),e.setState({codes:o,loading:!1})))})})})},getInitialState:function(){return{codes:[]}},add:function(t){if(t.preventDefault(),!this.state.loading&&this.refs.code.value){var e=this;this.setState({loading:!0}),s.ajaxRequest("post",p+"/api/codes/"+this.refs.code.value,function(t){t.error?e.setState({error:t.error,loading:!1}):(e.socket.emit("add",t.newCode),e.setState({error:""}),e.refs.code.value="")})}},remove:function(t){if(!this.state.loading){var e=this;this.setState({loading:!0}),s.ajaxRequest("delete",p+"/api/codes/"+t,function(t){t.error||e.socket.emit("remove",t.removed)})}},render:function(){var t=this.state.codes,e=this,n=t.map(function(t,n){return o.createElement("div",{className:"stocks",key:n,onClick:e.remove.bind(null,t)},t,o.createElement("span",{className:"close"},"x"))});return o.createElement("div",{className:"container"},o.createElement("h1",null,"Stocks"),o.createElement("div",null,o.createElement("div",{id:"chart"})),o.createElement("div",{className:"menu"},o.createElement("form",{onSubmit:this.add},o.createElement("input",{ref:"code",placeholder:"enter a stock code..."})),n,o.createElement("div",null,this.state.loading?"loading...":this.state.error)),o.createElement(u,null))}});a.render(o.createElement(f,null),document.getElementById("appView"))},function(t,e){function n(){c=!1,a.length?u=a.concat(u):l=-1,u.length&&r()}function r(){if(!c){var t=setTimeout(n);c=!0;for(var e=u.length;e;){for(a=u,u=[];++l<e;)a&&a[l].run();l=-1,e=u.length}a=null,c=!1,clearTimeout(t)}}function i(t,e){this.fun=t,this.array=e}function o(){}var a,s=t.exports={},u=[],c=!1,l=-1;s.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new i(t,e)),1!==u.length||c||setTimeout(r,0)},i.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=o,s.addListener=o,s.once=o,s.off=o,s.removeListener=o,s.removeAllListeners=o,s.emit=o,s.binding=function(t){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(t){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},function(t,e,n){(function(e){"use strict";function n(t,n,r,i,o,a,s,u){if("production"!==e.env.NODE_ENV&&void 0===n)throw new Error("invariant requires an error message argument");if(!t){var c;if(void 0===n)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,i,o,a,s,u],d=0;c=new Error(n.replace(/%s/g,function(){return l[d++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}t.exports=n}).call(e,n(1))},function(t,e){"use strict";function n(t,e){if(null==t)throw new TypeError("Object.assign target cannot be null or undefined");for(var n=Object(t),r=Object.prototype.hasOwnProperty,i=1;i<arguments.length;i++){var o=arguments[i];if(null!=o){var a=Object(o);for(var s in a)r.call(a,s)&&(n[s]=a[s])}}return n}t.exports=n},function(t,e,n){(function(e){"use strict";var r=n(10),i=r;"production"!==e.env.NODE_ENV&&(i=function(t,e){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;n>i;i++)r[i-2]=arguments[i];if(void 0===e)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==e.indexOf("Failed Composite propType: ")&&!t){var o=0,a="Warning: "+e.replace(/%s/g,function(){return r[o++]});"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}catch(s){}}}),t.exports=i}).call(e,n(1))},function(t,e){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};t.exports=r},function(t,e,n){(function(e){"use strict";function r(t,e){for(var n=Math.min(t.length,e.length),r=0;n>r;r++)if(t.charAt(r)!==e.charAt(r))return r;return t.length===e.length?-1:n}function i(t){return t?t.nodeType===q?t.documentElement:t.firstChild:null}function o(t){var e=i(t);return e&&tt.getID(e)}function a(t){var n=s(t);if(n)if(z.hasOwnProperty(n)){var r=z[n];r!==t&&(d(r,n)?"production"!==e.env.NODE_ENV?V(!1,"ReactMount: Two valid but unequal nodes with the same `%s`: %s",X,n):V(!1):void 0,z[n]=t)}else z[n]=t;return n}function s(t){return t&&t.getAttribute&&t.getAttribute(X)||""}function u(t,e){var n=s(t);n!==e&&delete z[n],t.setAttribute(X,e),z[e]=t}function c(t){return z.hasOwnProperty(t)&&d(z[t],t)||(z[t]=tt.findReactNodeByID(t)),z[t]}function l(t){var e=D.get(t)._rootNodeID;return C.isNullComponentID(e)?null:(z.hasOwnProperty(e)&&d(z[e],e)||(z[e]=tt.findReactNodeByID(e)),z[e])}function d(t,n){if(t){s(t)!==n?"production"!==e.env.NODE_ENV?V(!1,"ReactMount: Unexpected modification of `%s`",X):V(!1):void 0;var r=tt.findReactContainerForID(n);if(r&&L(r,t))return!0}return!1}function p(t){delete z[t]}function f(t){var e=z[t];return e&&d(e,t)?void(Z=e):!1}function h(t){Z=null,T.traverseAncestors(t,f);var e=Z;return Z=null,e}function g(t,n,r,i,o,a){if(w.useCreateElement&&(a=R({},a),r.nodeType===q?a[H]=r:a[H]=r.ownerDocument),"production"!==e.env.NODE_ENV){a===I&&(a={});var s=r.nodeName.toLowerCase();a[U.ancestorInfoContextKey]=U.updatedAncestorInfo(null,s,null)}var u=k.mountComponent(t,n,i,a);t._renderedComponent._topLevelWrapper=t,tt._mountImageIntoNode(u,r,o,i)}function v(t,e,n,r,i){var o=O.ReactReconcileTransaction.getPooled(r);o.perform(g,null,t,e,n,o,r,i),O.ReactReconcileTransaction.release(o)}function m(t,e){for(k.unmountComponent(t),e.nodeType===q&&(e=e.documentElement);e.lastChild;)e.removeChild(e.lastChild)}function y(t){var e=o(t);return e?e!==T.getReactRootIDFromNodeID(e):!1}function x(t){for(;t&&t.parentNode!==t;t=t.parentNode)if(1===t.nodeType){var e=s(t);if(e){var n,r=T.getReactRootIDFromNodeID(e),i=t;do if(n=s(i),i=i.parentNode,null==i)return null;while(n!==r);if(i===G[r])return t}}return null}var _=n(16),b=n(30),E=n(13),w=n(81),N=n(7),C=n(88),T=n(20),D=n(24),M=n(91),A=n(8),k=n(17),S=n(48),O=n(9),R=n(3),I=n(21),L=n(67),P=n(55),V=n(2),F=n(37),B=n(58),U=n(60),j=n(4),X=_.ID_ATTRIBUTE_NAME,z={},Y=1,q=9,W=11,H="__ReactMount_ownerDocument$"+Math.random().toString(36).slice(2),K={},G={};if("production"!==e.env.NODE_ENV)var J={};var $=[],Z=null,Q=function(){};Q.prototype.isReactComponent={},"production"!==e.env.NODE_ENV&&(Q.displayName="TopLevelWrapper"),Q.prototype.render=function(){return this.props};var tt={TopLevelWrapper:Q,_instancesByReactRootID:K,scrollMonitor:function(t,e){e()},_updateRootComponent:function(t,n,r,a){return tt.scrollMonitor(r,function(){S.enqueueElementInternal(t,n),a&&S.enqueueCallbackInternal(t,a)}),"production"!==e.env.NODE_ENV&&(J[o(r)]=i(r)),t},_registerComponent:function(t,n){!n||n.nodeType!==Y&&n.nodeType!==q&&n.nodeType!==W?"production"!==e.env.NODE_ENV?V(!1,"_registerComponent(...): Target container is not a DOM element."):V(!1):void 0,b.ensureScrollValueMonitoring();var r=tt.registerContainer(n);return K[r]=t,r},_renderNewRootComponent:function(t,n,r,o){"production"!==e.env.NODE_ENV?j(null==E.current,"_renderNewRootComponent(): Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate. Check the render method of %s.",E.current&&E.current.getName()||"ReactCompositeComponent"):void 0;var a=P(t,null),s=tt._registerComponent(a,n);return O.batchedUpdates(v,a,s,n,r,o),"production"!==e.env.NODE_ENV&&(J[s]=i(n)),a},renderSubtreeIntoContainer:function(t,n,r,i){return null==t||null==t._reactInternalInstance?"production"!==e.env.NODE_ENV?V(!1,"parentComponent must be a valid React Component"):V(!1):void 0,tt._renderSubtreeIntoContainer(t,n,r,i)},_renderSubtreeIntoContainer:function(t,n,r,a){N.isValidElement(n)?void 0:"production"!==e.env.NODE_ENV?V(!1,"ReactDOM.render(): Invalid component element.%s","string"==typeof n?" Instead of passing an element string, make sure to instantiate it by passing it to React.createElement.":"function"==typeof n?" Instead of passing a component class, make sure to instantiate it by passing it to React.createElement.":null!=n&&void 0!==n.props?" This may be caused by unintentionally loading two independent copies of React.":""):V(!1),"production"!==e.env.NODE_ENV?j(!r||!r.tagName||"BODY"!==r.tagName.toUpperCase(),"render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app."):void 0;var u=new N(Q,null,null,null,null,null,n),c=K[o(r)];if(c){var l=c._currentElement,d=l.props;if(B(d,n)){var p=c._renderedComponent.getPublicInstance(),f=a&&function(){a.call(p)};return tt._updateRootComponent(c,u,r,f),p}tt.unmountComponentAtNode(r)}var h=i(r),g=h&&!!s(h),v=y(r);if("production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?j(!v,"render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."):void 0,!g||h.nextSibling))for(var m=h;m;){if(s(m)){"production"!==e.env.NODE_ENV?j(!1,"render(): Target node has markup rendered by React, but there are unrelated nodes as well. This is most commonly caused by white-space inserted around server-rendered markup."):void 0;break}m=m.nextSibling}var x=g&&!c&&!v,_=tt._renderNewRootComponent(u,r,x,null!=t?t._reactInternalInstance._processChildContext(t._reactInternalInstance._context):I)._renderedComponent.getPublicInstance();return a&&a.call(_),_},render:function(t,e,n){return tt._renderSubtreeIntoContainer(null,t,e,n)},registerContainer:function(t){var e=o(t);return e&&(e=T.getReactRootIDFromNodeID(e)),e||(e=T.createReactRootID()),G[e]=t,e},unmountComponentAtNode:function(t){"production"!==e.env.NODE_ENV?j(null==E.current,"unmountComponentAtNode(): Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate. Check the render method of %s.",E.current&&E.current.getName()||"ReactCompositeComponent"):void 0,!t||t.nodeType!==Y&&t.nodeType!==q&&t.nodeType!==W?"production"!==e.env.NODE_ENV?V(!1,"unmountComponentAtNode(...): Target container is not a DOM element."):V(!1):void 0;var n=o(t),r=K[n];if(!r){var i=y(t),a=s(t),u=a&&a===T.getReactRootIDFromNodeID(a);return"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?j(!i,"unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",u?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component."):void 0),!1}return O.batchedUpdates(m,r,t),delete K[n],delete G[n],"production"!==e.env.NODE_ENV&&delete J[n],!0},findReactContainerForID:function(t){var n=T.getReactRootIDFromNodeID(t),r=G[n];if("production"!==e.env.NODE_ENV){var i=J[n];if(i&&i.parentNode!==r){"production"!==e.env.NODE_ENV?j(s(i)===n,"ReactMount: Root element ID differed from reactRootID."):void 0;var o=r.firstChild;o&&n===s(o)?J[n]=o:"production"!==e.env.NODE_ENV?j(!1,"ReactMount: Root element has been removed from its original container. New container: %s",i.parentNode):void 0}}return r},findReactNodeByID:function(t){var e=tt.findReactContainerForID(t);return tt.findComponentRoot(e,t)},getFirstReactDOM:function(t){return x(t)},findComponentRoot:function(t,n){var r=$,i=0,o=h(n)||t;for("production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?j(null!=o,"React can't find the root component node for data-reactid value `%s`. If you're seeing this message, it probably means that you've loaded two copies of React on the page. At this time, only a single copy of React can be loaded at a time.",n):void 0),r[0]=o.firstChild,r.length=1;i<r.length;){for(var a,s=r[i++];s;){var u=tt.getID(s);u?n===u?a=s:T.isAncestorIDOf(u,n)&&(r.length=i=0,r.push(s.firstChild)):r.push(s.firstChild),s=s.nextSibling}if(a)return r.length=0,a}r.length=0,"production"!==e.env.NODE_ENV?V(!1,"findComponentRoot(..., %s): Unable to find element. This probably means the DOM was unexpectedly mutated (e.g., by the browser), usually due to forgetting a <tbody> when using tables, nesting tags like <form>, <p>, or <a>, or using non-SVG elements in an <svg> parent. Try inspecting the child nodes of the element with React ID `%s`.",n,tt.getID(t)):V(!1)},_mountImageIntoNode:function(t,n,o,a){if(!n||n.nodeType!==Y&&n.nodeType!==q&&n.nodeType!==W?"production"!==e.env.NODE_ENV?V(!1,"mountComponentIntoNode(...): Target container is not valid."):V(!1):void 0,o){var s=i(n);if(M.canReuseMarkup(t,s))return;var u=s.getAttribute(M.CHECKSUM_ATTR_NAME);s.removeAttribute(M.CHECKSUM_ATTR_NAME);var c=s.outerHTML;s.setAttribute(M.CHECKSUM_ATTR_NAME,u);var l=t;if("production"!==e.env.NODE_ENV){var d;n.nodeType===Y?(d=document.createElement("div"),d.innerHTML=t,l=d.innerHTML):(d=document.createElement("iframe"),document.body.appendChild(d),d.contentDocument.write(t),l=d.contentDocument.documentElement.outerHTML,document.body.removeChild(d))}var p=r(l,c),f=" (client) "+l.substring(p-20,p+20)+"\n (server) "+c.substring(p-20,p+20);n.nodeType===q?"production"!==e.env.NODE_ENV?V(!1,"You're trying to render a component to the document using server rendering but the checksum was invalid. This usually means you rendered a different component type or props on the client from the one on the server, or your render() methods are impure. React cannot handle this case due to cross-browser quirks by rendering at the document root. You should look for environment dependent code in your components and ensure the props are the same client and server side:\n%s",f):V(!1):void 0,"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?j(!1,"React attempted to reuse markup in a container but the checksum was invalid. This generally means that you are using server rendering and the markup generated on the server was not what the client was expecting. React injected new markup to compensate which works but you have lost many of the benefits of server rendering. Instead, figure out why the markup being generated is different on the client or server:\n%s",f):void 0)}if(n.nodeType===q?"production"!==e.env.NODE_ENV?V(!1,"You're trying to render a component to the document but you didn't use server rendering. We can't do this without using server rendering due to cross-browser quirks. See ReactDOMServer.renderToString() for server rendering."):V(!1):void 0,a.useCreateElement){for(;n.lastChild;)n.removeChild(n.lastChild);n.appendChild(t)}else F(n,t)},ownerDocumentContextKey:H,getReactRootID:o,getID:a,setID:u,getNode:c,getNodeFromInstance:l,isValid:d,purgeID:p};A.measureMethods(tt,"ReactMount",{_renderNewRootComponent:"_renderNewRootComponent",_mountImageIntoNode:"_mountImageIntoNode"}),t.exports=tt}).call(e,n(1))},function(t,e,n){(function(e){"use strict";var r=n(13),i=n(3),o=n(35),a="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,s={key:!0,ref:!0,__self:!0,__source:!0},u=function(t,n,r,i,s,u,c){var l={$$typeof:a,type:t,key:n,ref:r,props:c,_owner:u};return"production"!==e.env.NODE_ENV&&(l._store={},o?(Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s})):(l._store.validated=!1,l._self=i,l._source=s),Object.freeze(l.props),Object.freeze(l)),l};u.createElement=function(t,e,n){var i,o={},a=null,c=null,l=null,d=null;if(null!=e){c=void 0===e.ref?null:e.ref,a=void 0===e.key?null:""+e.key,l=void 0===e.__self?null:e.__self,d=void 0===e.__source?null:e.__source;for(i in e)e.hasOwnProperty(i)&&!s.hasOwnProperty(i)&&(o[i]=e[i])}var p=arguments.length-2;if(1===p)o.children=n;else if(p>1){for(var f=Array(p),h=0;p>h;h++)f[h]=arguments[h+2];o.children=f}if(t&&t.defaultProps){var g=t.defaultProps;for(i in g)"undefined"==typeof o[i]&&(o[i]=g[i])}return u(t,a,c,l,d,r.current,o)},u.createFactory=function(t){var e=u.createElement.bind(null,t);return e.type=t,e},u.cloneAndReplaceKey=function(t,e){var n=u(t.type,e,t.ref,t._self,t._source,t._owner,t.props);return n},u.cloneAndReplaceProps=function(t,n){var r=u(t.type,t.key,t.ref,t._self,t._source,t._owner,n);return"production"!==e.env.NODE_ENV&&(r._store.validated=t._store.validated),r},u.cloneElement=function(t,e,n){var o,a=i({},t.props),c=t.key,l=t.ref,d=t._self,p=t._source,f=t._owner;if(null!=e){void 0!==e.ref&&(l=e.ref,f=r.current),void 0!==e.key&&(c=""+e.key);for(o in e)e.hasOwnProperty(o)&&!s.hasOwnProperty(o)&&(a[o]=e[o])}var h=arguments.length-2;if(1===h)a.children=n;else if(h>1){for(var g=Array(h),v=0;h>v;v++)g[v]=arguments[v+2];a.children=g}return u(t.type,c,l,d,p,f,a)},u.isValidElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===a},t.exports=u}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function n(t,e,n){return n}var r={enableMeasure:!1,storedMeasure:n,measureMethods:function(t,n,i){if("production"!==e.env.NODE_ENV)for(var o in i)i.hasOwnProperty(o)&&(t[o]=r.measure(n,i[o],t[o]))},measure:function(t,n,i){if("production"!==e.env.NODE_ENV){var o=null,a=function(){return r.enableMeasure?(o||(o=r.storedMeasure(t,n,i)),o.apply(this,arguments)):i.apply(this,arguments)};return a.displayName=t+"_"+n,a}return i},injection:{injectMeasure:function(t){r.storedMeasure=t}}};t.exports=r}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function r(){T.ReactReconcileTransaction&&_?void 0:"production"!==e.env.NODE_ENV?v(!1,"ReactUpdates: must inject a reconcile transaction class and batching strategy"):v(!1)}function i(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=l.getPooled(),this.reconcileTransaction=T.ReactReconcileTransaction.getPooled(!1)}function o(t,e,n,i,o,a){r(),_.batchedUpdates(t,e,n,i,o,a)}function a(t,e){return t._mountOrder-e._mountOrder}function s(t){var n=t.dirtyComponentsLength;n!==m.length?"production"!==e.env.NODE_ENV?v(!1,"Expected flush transaction's stored dirty-components length (%s) to match dirty-components array length (%s).",n,m.length):v(!1):void 0,m.sort(a);for(var r=0;n>r;r++){var i=m[r],o=i._pendingCallbacks;if(i._pendingCallbacks=null,f.performUpdateIfNecessary(i,t.reconcileTransaction),o)for(var s=0;s<o.length;s++)t.callbackQueue.enqueue(o[s],i.getPublicInstance())}}function u(t){return r(),_.isBatchingUpdates?void m.push(t):void _.batchedUpdates(u,t)}function c(t,n){_.isBatchingUpdates?void 0:"production"!==e.env.NODE_ENV?v(!1,"ReactUpdates.asap: Can't enqueue an asap callback in a context whereupdates are not being batched."):v(!1),y.enqueue(t,n),x=!0}var l=n(42),d=n(15),p=n(8),f=n(17),h=n(34),g=n(3),v=n(2),m=[],y=l.getPooled(),x=!1,_=null,b={initialize:function(){this.dirtyComponentsLength=m.length},close:function(){this.dirtyComponentsLength!==m.length?(m.splice(0,this.dirtyComponentsLength),N()):m.length=0}},E={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},w=[b,E];g(i.prototype,h.Mixin,{getTransactionWrappers:function(){return w},destructor:function(){this.dirtyComponentsLength=null,l.release(this.callbackQueue),this.callbackQueue=null,T.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(t,e,n){return h.Mixin.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,t,e,n)}}),d.addPoolingTo(i);var N=function(){for(;m.length||x;){if(m.length){var t=i.getPooled();t.perform(s,null,t),i.release(t)}if(x){x=!1;var e=y;y=l.getPooled(),e.notifyAll(),l.release(e)}}};N=p.measure("ReactUpdates","flushBatchedUpdates",N);var C={injectReconcileTransaction:function(t){t?void 0:"production"!==e.env.NODE_ENV?v(!1,"ReactUpdates: must provide a reconcile transaction class"):v(!1),T.ReactReconcileTransaction=t},injectBatchingStrategy:function(t){t?void 0:"production"!==e.env.NODE_ENV?v(!1,"ReactUpdates: must provide a batching strategy"):v(!1),"function"!=typeof t.batchedUpdates?"production"!==e.env.NODE_ENV?v(!1,"ReactUpdates: must provide a batchedUpdates() function"):v(!1):void 0,"boolean"!=typeof t.isBatchingUpdates?"production"!==e.env.NODE_ENV?v(!1,"ReactUpdates: must provide an isBatchingUpdates boolean attribute"):v(!1):void 0,_=t}},T={ReactReconcileTransaction:null,batchedUpdates:o,enqueueUpdate:u,flushBatchedUpdates:N,injection:C,asap:c};t.exports=T}).call(e,n(1))},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){function r(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function i(){var t=arguments,n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),!n)return t;var r="color: "+this.color;t=[t[0],r,"color: inherit"].concat(Array.prototype.slice.call(t,1));var i=0,o=0;return t[0].replace(/%[a-z%]/g,function(t){"%%"!==t&&(i++,"%c"===t&&(o=i))}),t.splice(o,0,r),t}function o(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(n){}}function s(){var t;try{t=e.storage.debug}catch(n){}return t}function u(){try{return window.localStorage}catch(t){}}e=t.exports=n(121),e.log=o,e.formatArgs=i,e.save=a,e.load=s,e.useColors=r,e.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:u(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(t){return JSON.stringify(t)},e.enable(s())},function(t,e,n){"use strict";var r=n(28),i=r({bubbled:null,captured:null}),o=r({topAbort:null,topBlur:null,topCanPlay:null,topCanPlayThrough:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topDurationChange:null,topEmptied:null,topEncrypted:null,topEnded:null,topError:null,topFocus:null,topInput:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topLoadedData:null,topLoadedMetadata:null,topLoadStart:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topPause:null,topPlay:null,topPlaying:null,topProgress:null,topRateChange:null,topReset:null,topScroll:null,topSeeked:null,topSeeking:null,topSelectionChange:null,topStalled:null,topSubmit:null,topSuspend:null,topTextInput:null,topTimeUpdate:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topVolumeChange:null,topWaiting:null,topWheel:null}),a={topLevelTypes:o,PropagationPhases:i};t.exports=a},function(t,e){"use strict";var n={current:null};t.exports=n},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){(function(e){"use strict";var r=n(2),i=function(t){var e=this;if(e.instancePool.length){var n=e.instancePool.pop();return e.call(n,t),n}return new e(t)},o=function(t,e){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,t,e),r}return new n(t,e)},a=function(t,e,n){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,t,e,n),i}return new r(t,e,n)},s=function(t,e,n,r){var i=this;if(i.instancePool.length){var o=i.instancePool.pop();return i.call(o,t,e,n,r),o}return new i(t,e,n,r)},u=function(t,e,n,r,i){var o=this;if(o.instancePool.length){var a=o.instancePool.pop();return o.call(a,t,e,n,r,i),a}return new o(t,e,n,r,i)},c=function(t){var n=this;t instanceof n?void 0:"production"!==e.env.NODE_ENV?r(!1,"Trying to release an instance into a pool of a different type."):r(!1),t.destructor(),n.instancePool.length<n.poolSize&&n.instancePool.push(t)},l=10,d=i,p=function(t,e){var n=t;return n.instancePool=[],n.getPooled=e||d,n.poolSize||(n.poolSize=l),n.release=c,n},f={addPoolingTo:p,oneArgumentPooler:i,twoArgumentPooler:o,threeArgumentPooler:a,fourArgumentPooler:s,fiveArgumentPooler:u};t.exports=f}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function r(t,e){return(t&e)===e}var i=n(2),o={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 n=o,a=t.Properties||{},u=t.DOMAttributeNamespaces||{},c=t.DOMAttributeNames||{},l=t.DOMPropertyNames||{},d=t.DOMMutationMethods||{};t.isCustomAttribute&&s._isCustomAttributeFunctions.push(t.isCustomAttribute);for(var p in a){s.properties.hasOwnProperty(p)?"production"!==e.env.NODE_ENV?i(!1,"injectDOMPropertyConfig(...): You're trying to inject DOM property '%s' which has already been injected. You may be accidentally injecting the same DOM property config twice, or you may be injecting two configs that have conflicting property names.",p):i(!1):void 0;var f=p.toLowerCase(),h=a[p],g={attributeName:f,attributeNamespace:null,propertyName:p,mutationMethod:null,mustUseAttribute:r(h,n.MUST_USE_ATTRIBUTE),mustUseProperty:r(h,n.MUST_USE_PROPERTY),hasSideEffects:r(h,n.HAS_SIDE_EFFECTS),hasBooleanValue:r(h,n.HAS_BOOLEAN_VALUE),hasNumericValue:r(h,n.HAS_NUMERIC_VALUE),hasPositiveNumericValue:r(h,n.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:r(h,n.HAS_OVERLOADED_BOOLEAN_VALUE)};if(g.mustUseAttribute&&g.mustUseProperty?"production"!==e.env.NODE_ENV?i(!1,"DOMProperty: Cannot require using both attribute and property: %s",p):i(!1):void 0,!g.mustUseProperty&&g.hasSideEffects?"production"!==e.env.NODE_ENV?i(!1,"DOMProperty: Properties that have side effects must use property: %s",p):i(!1):void 0,g.hasBooleanValue+g.hasNumericValue+g.hasOverloadedBooleanValue<=1?void 0:"production"!==e.env.NODE_ENV?i(!1,"DOMProperty: Value can be one of boolean, overloaded boolean, or numeric value, but not a combination: %s",p):i(!1),"production"!==e.env.NODE_ENV&&(s.getPossibleStandardName[f]=p),c.hasOwnProperty(p)){var v=c[p];g.attributeName=v,"production"!==e.env.NODE_ENV&&(s.getPossibleStandardName[v]=p)}u.hasOwnProperty(p)&&(g.attributeNamespace=u[p]),l.hasOwnProperty(p)&&(g.propertyName=l[p]),d.hasOwnProperty(p)&&(g.mutationMethod=d[p]),s.properties[p]=g}}},a={},s={ID_ATTRIBUTE_NAME:"data-reactid",properties:{},getPossibleStandardName:"production"!==e.env.NODE_ENV?{}:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(t){for(var e=0;e<s._isCustomAttributeFunctions.length;e++){var n=s._isCustomAttributeFunctions[e];if(n(t))return!0}return!1},getDefaultValueForProperty:function(t,e){var n,r=a[t];return r||(a[t]=r={}),e in r||(n=document.createElement(t),r[e]=n[e]),r[e]},injection:o};t.exports=s}).call(e,n(1))},function(t,e,n){"use strict";function r(){i.attachRefs(this,this._currentElement)}var i=n(181),o={mountComponent:function(t,e,n,i){var o=t.mountComponent(e,n,i);return t._currentElement&&null!=t._currentElement.ref&&n.getReactMountReady().enqueue(r,t),o},unmountComponent:function(t){i.detachRefs(t,t._currentElement),t.unmountComponent()},receiveComponent:function(t,e,n,o){var a=t._currentElement;if(e!==a||o!==t._context){var s=i.shouldUpdateRefs(a,e);s&&i.detachRefs(t,a),t.receiveComponent(e,n,o),s&&t._currentElement&&null!=t._currentElement.ref&&n.getReactMountReady().enqueue(r,t)}},performUpdateIfNecessary:function(t,e){t.performUpdateIfNecessary(e)}};t.exports=o},function(t,e,n){(function(e){"use strict";function r(t,e,n,r){this.dispatchConfig=t,this.dispatchMarker=e,this.nativeEvent=n;var i=this.constructor.Interface;for(var o in i)if(i.hasOwnProperty(o)){var s=i[o];s?this[o]=s(n):"target"===o?this.target=r:this[o]=n[o]}var u=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;u?this.isDefaultPrevented=a.thatReturnsTrue:this.isDefaultPrevented=a.thatReturnsFalse,this.isPropagationStopped=a.thatReturnsFalse}var i=n(15),o=n(3),a=n(10),s=n(4),u={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};o(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?s(t,"This synthetic event is reused for performance reasons. If you're seeing this, you're calling `preventDefault` on a released/nullified synthetic event. This is a no-op. See https://fb.me/react-event-pooling for more information."):void 0),t&&(t.preventDefault?t.preventDefault():t.returnValue=!1,this.isDefaultPrevented=a.thatReturnsTrue)},stopPropagation:function(){var t=this.nativeEvent;"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?s(t,"This synthetic event is reused for performance reasons. If you're seeing this, you're calling `stopPropagation` on a released/nullified synthetic event. This is a no-op. See https://fb.me/react-event-pooling for more information."):void 0),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);o(r,t.prototype),t.prototype=r,t.prototype.constructor=t,t.Interface=o({},n.Interface,e),t.augmentClass=n.augmentClass,i.addPoolingTo(t,i.fourArgumentPooler)},i.addPoolingTo(r,i.fourArgumentPooler),t.exports=r}).call(e,n(1))},function(t,e,n){
  (function(t){function r(t,n){var r="b"+e.packets[t.type]+t.data.data;return n(r)}function i(t,n,r){if(!n)return e.encodeBase64Packet(t,r);var i=t.data,o=new Uint8Array(i),a=new Uint8Array(1+i.byteLength);a[0]=m[t.type];for(var s=0;s<o.length;s++)a[s+1]=o[s];return r(a.buffer)}function o(t,n,r){if(!n)return e.encodeBase64Packet(t,r);var i=new FileReader;return i.onload=function(){t.data=i.result,e.encodePacket(t,n,!0,r)},i.readAsArrayBuffer(t.data)}function a(t,n,r){if(!n)return e.encodeBase64Packet(t,r);if(v)return o(t,n,r);var i=new Uint8Array(1);i[0]=m[t.type];var a=new _([i.buffer,t.data]);return r(a)}function s(t,e,n){for(var r=new Array(t.length),i=p(t.length,n),o=function(t,n,i){e(n,function(e,n){r[t]=n,i(e,r)})},a=0;a<t.length;a++)o(a,t[a],i)}var u=n(128),c=n(129),l=n(111),d=n(115),p=n(110),f=n(213),h=navigator.userAgent.match(/Android/i),g=/PhantomJS/i.test(navigator.userAgent),v=h||g;e.protocol=3;var m=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},y=u(m),x={type:"error",data:"parser error"},_=n(116);e.encodePacket=function(e,n,o,s){"function"==typeof n&&(s=n,n=!1),"function"==typeof o&&(s=o,o=null);var u=void 0===e.data?void 0:e.data.buffer||e.data;if(t.ArrayBuffer&&u instanceof ArrayBuffer)return i(e,n,s);if(_&&u instanceof t.Blob)return a(e,n,s);if(u&&u.base64)return r(e,s);var c=m[e.type];return void 0!==e.data&&(c+=o?f.encode(String(e.data)):String(e.data)),s(""+c)},e.encodeBase64Packet=function(n,r){var i="b"+e.packets[n.type];if(_&&n.data instanceof t.Blob){var o=new FileReader;return o.onload=function(){var t=o.result.split(",")[1];r(i+t)},o.readAsDataURL(n.data)}var a;try{a=String.fromCharCode.apply(null,new Uint8Array(n.data))}catch(s){for(var u=new Uint8Array(n.data),c=new Array(u.length),l=0;l<u.length;l++)c[l]=u[l];a=String.fromCharCode.apply(null,c)}return i+=t.btoa(a),r(i)},e.decodePacket=function(t,n,r){if("string"==typeof t||void 0===t){if("b"==t.charAt(0))return e.decodeBase64Packet(t.substr(1),n);if(r)try{t=f.decode(t)}catch(i){return x}var o=t.charAt(0);return Number(o)==o&&y[o]?t.length>1?{type:y[o],data:t.substring(1)}:{type:y[o]}:x}var a=new Uint8Array(t),o=a[0],s=l(t,1);return _&&"blob"===n&&(s=new _([s])),{type:y[o],data:s}},e.decodeBase64Packet=function(e,n){var r=y[e.charAt(0)];if(!t.ArrayBuffer)return{type:r,data:{base64:!0,data:e.substr(1)}};var i=d.decode(e.substr(1));return"blob"===n&&_&&(i=new _([i])),{type:r,data:i}},e.encodePayload=function(t,n,r){function i(t){return t.length+":"+t}function o(t,r){e.encodePacket(t,a?n:!1,!0,function(t){r(null,i(t))})}"function"==typeof n&&(r=n,n=null);var a=c(t);return n&&a?_&&!v?e.encodePayloadAsBlob(t,r):e.encodePayloadAsArrayBuffer(t,r):t.length?void s(t,o,function(t,e){return r(e.join(""))}):r("0:")},e.decodePayload=function(t,n,r){if("string"!=typeof t)return e.decodePayloadAsBinary(t,n,r);"function"==typeof n&&(r=n,n=null);var i;if(""==t)return r(x,0,1);for(var o,a,s="",u=0,c=t.length;c>u;u++){var l=t.charAt(u);if(":"!=l)s+=l;else{if(""==s||s!=(o=Number(s)))return r(x,0,1);if(a=t.substr(u+1,o),s!=a.length)return r(x,0,1);if(a.length){if(i=e.decodePacket(a,n,!0),x.type==i.type&&x.data==i.data)return r(x,0,1);var d=r(i,u+o,c);if(!1===d)return}u+=o,s=""}}return""!=s?r(x,0,1):void 0},e.encodePayloadAsArrayBuffer=function(t,n){function r(t,n){e.encodePacket(t,!0,!0,function(t){return n(null,t)})}return t.length?void s(t,r,function(t,e){var r=e.reduce(function(t,e){var n;return n="string"==typeof e?e.length:e.byteLength,t+n.toString().length+n+2},0),i=new Uint8Array(r),o=0;return e.forEach(function(t){var e="string"==typeof t,n=t;if(e){for(var r=new Uint8Array(t.length),a=0;a<t.length;a++)r[a]=t.charCodeAt(a);n=r.buffer}e?i[o++]=0:i[o++]=1;for(var s=n.byteLength.toString(),a=0;a<s.length;a++)i[o++]=parseInt(s[a]);i[o++]=255;for(var r=new Uint8Array(n),a=0;a<r.length;a++)i[o++]=r[a]}),n(i.buffer)}):n(new ArrayBuffer(0))},e.encodePayloadAsBlob=function(t,n){function r(t,n){e.encodePacket(t,!0,!0,function(t){var e=new Uint8Array(1);if(e[0]=1,"string"==typeof t){for(var r=new Uint8Array(t.length),i=0;i<t.length;i++)r[i]=t.charCodeAt(i);t=r.buffer,e[0]=0}for(var o=t instanceof ArrayBuffer?t.byteLength:t.size,a=o.toString(),s=new Uint8Array(a.length+1),i=0;i<a.length;i++)s[i]=parseInt(a[i]);if(s[a.length]=255,_){var u=new _([e.buffer,s.buffer,t]);n(null,u)}})}s(t,r,function(t,e){return n(new _(e))})},e.decodePayloadAsBinary=function(t,n,r){"function"==typeof n&&(r=n,n=null);for(var i=t,o=[],a=!1;i.byteLength>0;){for(var s=new Uint8Array(i),u=0===s[0],c="",d=1;255!=s[d];d++){if(c.length>310){a=!0;break}c+=s[d]}if(a)return r(x,0,1);i=l(i,2+c.length),c=parseInt(c);var p=l(i,0,c);if(u)try{p=String.fromCharCode.apply(null,new Uint8Array(p))}catch(f){var h=new Uint8Array(p);p="";for(var d=0;d<h.length;d++)p+=String.fromCharCode(h[d])}o.push(p),i=l(i,c)}var g=o.length;o.forEach(function(t,i){r(e.decodePacket(t,n,!0),i,g)})}}).call(e,function(){return this}())},function(t,e,n){(function(e){"use strict";function r(t){return f+t.toString(36)}function i(t,e){return t.charAt(e)===f||e===t.length}function o(t){return""===t||t.charAt(0)===f&&t.charAt(t.length-1)!==f}function a(t,e){return 0===e.indexOf(t)&&i(e,t.length)}function s(t){return t?t.substr(0,t.lastIndexOf(f)):""}function u(t,n){if(o(t)&&o(n)?void 0:"production"!==e.env.NODE_ENV?p(!1,"getNextDescendantID(%s, %s): Received an invalid React DOM ID.",t,n):p(!1),a(t,n)?void 0:"production"!==e.env.NODE_ENV?p(!1,"getNextDescendantID(...): React has made an invalid assumption about the DOM hierarchy. Expected `%s` to be an ancestor of `%s`.",t,n):p(!1),t===n)return t;var r,s=t.length+h;for(r=s;r<n.length&&!i(n,r);r++);return n.substr(0,r)}function c(t,n){var r=Math.min(t.length,n.length);if(0===r)return"";for(var a=0,s=0;r>=s;s++)if(i(t,s)&&i(n,s))a=s;else if(t.charAt(s)!==n.charAt(s))break;var u=t.substr(0,a);return o(u)?void 0:"production"!==e.env.NODE_ENV?p(!1,"getFirstCommonAncestorID(%s, %s): Expected a valid React DOM ID: %s",t,n,u):p(!1),u}function l(t,n,r,i,o,c){t=t||"",n=n||"",t===n?"production"!==e.env.NODE_ENV?p(!1,"traverseParentPath(...): Cannot traverse from and to the same ID, `%s`.",t):p(!1):void 0;var l=a(n,t);l||a(t,n)?void 0:"production"!==e.env.NODE_ENV?p(!1,"traverseParentPath(%s, %s, ...): Cannot traverse from two IDs that do not have a parent path.",t,n):p(!1);for(var d=0,f=l?s:u,h=t;;h=f(h,n)){var v;if(o&&h===t||c&&h===n||(v=r(h,l,i)),v===!1||h===n)break;d++<g?void 0:"production"!==e.env.NODE_ENV?p(!1,"traverseParentPath(%s, %s, ...): Detected an infinite loop while traversing the React DOM ID tree. This may be due to malformed IDs: %s",t,n,h):p(!1)}}var d=n(96),p=n(2),f=".",h=f.length,g=1e4,v={createReactRootID:function(){return r(d.createReactRootIndex())},createReactID:function(t,e){return t+e},getReactRootIDFromNodeID:function(t){if(t&&t.charAt(0)===f&&t.length>1){var e=t.indexOf(f,1);return e>-1?t.substr(0,e):t}return null},traverseEnterLeave:function(t,e,n,r,i){var o=c(t,e);o!==t&&l(t,o,n,r,!1,!0),o!==e&&l(o,e,n,i,!0,!1)},traverseTwoPhase:function(t,e,n){t&&(l("",t,e,n,!0,!1),l(t,"",e,n,!1,!0))},traverseTwoPhaseSkipTarget:function(t,e,n){t&&(l("",t,e,n,!0,!0),l(t,"",e,n,!0,!0))},traverseAncestors:function(t,e,n){l("",t,e,n,!0,!1)},getFirstCommonAncestorID:c,_getNextDescendantID:u,isAncestorIDOf:a,SEPARATOR:f};t.exports=v}).call(e,n(1))},function(t,e,n){(function(e){"use strict";var n={};"production"!==e.env.NODE_ENV&&Object.freeze(n),t.exports=n}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function r(){var t=v&&v.traverseTwoPhase&&v.traverseEnterLeave;"production"!==e.env.NODE_ENV?l(t,"InstanceHandle not injected before use!"):void 0}var i=n(76),o=n(157),a=n(89),s=n(98),u=n(99),c=n(2),l=n(4),d={},p=null,f=function(t,e){t&&(o.executeDispatchesInOrder(t,e),t.isPersistent()||t.constructor.release(t))},h=function(t){return f(t,!0)},g=function(t){return f(t,!1)},v=null,m={injection:{injectMount:o.injection.injectMount,injectInstanceHandle:function(t){v=t,"production"!==e.env.NODE_ENV&&r()},getInstanceHandle:function(){return"production"!==e.env.NODE_ENV&&r(),v},injectEventPluginOrder:i.injectEventPluginOrder,injectEventPluginsByName:i.injectEventPluginsByName},eventNameDispatchConfigs:i.eventNameDispatchConfigs,registrationNameModules:i.registrationNameModules,putListener:function(t,n,r){"function"!=typeof r?"production"!==e.env.NODE_ENV?c(!1,"Expected %s listener to be a function, instead got type %s",n,typeof r):c(!1):void 0;var o=d[n]||(d[n]={});o[t]=r;var a=i.registrationNameModules[n];a&&a.didPutListener&&a.didPutListener(t,n,r)},getListener:function(t,e){var n=d[e];return n&&n[t]},deleteListener:function(t,e){var n=i.registrationNameModules[e];n&&n.willDeleteListener&&n.willDeleteListener(t,e);var r=d[e];r&&delete r[t]},deleteAllListeners:function(t){for(var e in d)if(d[e][t]){var n=i.registrationNameModules[e];n&&n.willDeleteListener&&n.willDeleteListener(t,e),delete d[e][t]}},extractEvents:function(t,e,n,r,o){for(var a,u=i.plugins,c=0;c<u.length;c++){var l=u[c];if(l){var d=l.extractEvents(t,e,n,r,o);d&&(a=s(a,d))}}return a},enqueueEvents:function(t){t&&(p=s(p,t))},processEventQueue:function(t){var n=p;p=null,t?u(n,h):u(n,g),p?"production"!==e.env.NODE_ENV?c(!1,"processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented."):c(!1):void 0,a.rethrowCaughtError()},__purge:function(){d={}},__getListenerBank:function(){return d}};t.exports=m}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function r(t,e,n){var r=e.dispatchConfig.phasedRegistrationNames[n];return x(t,r)}function i(t,n,i){"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?g(t,"Dispatching id must not be null"):void 0);var o=n?y.bubbled:y.captured,a=r(t,i,o);a&&(i._dispatchListeners=v(i._dispatchListeners,a),i._dispatchIDs=v(i._dispatchIDs,t))}function o(t){t&&t.dispatchConfig.phasedRegistrationNames&&h.injection.getInstanceHandle().traverseTwoPhase(t.dispatchMarker,i,t)}function a(t){t&&t.dispatchConfig.phasedRegistrationNames&&h.injection.getInstanceHandle().traverseTwoPhaseSkipTarget(t.dispatchMarker,i,t)}function s(t,e,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,i=x(t,r);i&&(n._dispatchListeners=v(n._dispatchListeners,i),n._dispatchIDs=v(n._dispatchIDs,t))}}function u(t){t&&t.dispatchConfig.registrationName&&s(t.dispatchMarker,null,t)}function c(t){m(t,o)}function l(t){m(t,a)}function d(t,e,n,r){h.injection.getInstanceHandle().traverseEnterLeave(n,r,s,t,e)}function p(t){m(t,u)}var f=n(12),h=n(22),g=n(4),v=n(98),m=n(99),y=f.PropagationPhases,x=h.getListener,_={accumulateTwoPhaseDispatches:c,accumulateTwoPhaseDispatchesSkipTarget:l,accumulateDirectDispatches:p,accumulateEnterLeaveDispatches:d};t.exports=_}).call(e,n(1))},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";function r(t,e,n,r){i.call(this,t,e,n,r)}var i=n(18),o=n(53),a={view:function(t){if(t.view)return t.view;var e=o(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}};i.augmentClass(r,a),t.exports=r},function(t,e){function n(t){return t?r(t):void 0}function r(t){for(var e in n.prototype)t[e]=n.prototype[e];return t}t.exports=n,n.prototype.on=n.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks[t]=this._callbacks[t]||[]).push(e),this},n.prototype.once=function(t,e){function n(){r.off(t,n),e.apply(this,arguments)}var r=this;return this._callbacks=this._callbacks||{},n.fn=e,this.on(t,n),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks[t];if(!n)return this;if(1==arguments.length)return delete this._callbacks[t],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===e||r.fn===e){n.splice(i,1);break}return this},n.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks[t];if(n){n=n.slice(0);for(var r=0,i=n.length;i>r;++r)n[r].apply(this,e)}return this},n.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks[t]||[]},n.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t,e){t.exports=function(t,e){var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){(function(e){"use strict";var r=n(2),i=function(t){var n,i={};t instanceof Object&&!Array.isArray(t)?void 0:"production"!==e.env.NODE_ENV?r(!1,"keyMirror(...): Argument must be an object."):r(!1);for(n in t)t.hasOwnProperty(n)&&(i[n]=n);return i};t.exports=i}).call(e,n(1))},function(t,e){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},function(t,e,n){"use strict";function r(t){return Object.prototype.hasOwnProperty.call(t,v)||(t[v]=h++,p[t[v]]={}),p[t[v]]}var i=n(12),o=n(22),a=n(76),s=n(174),u=n(8),c=n(97),l=n(3),d=n(56),p={},f=!1,h=0,g={topAbort:"abort",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},v="_reactListenersID"+String(Math.random()).slice(2),m=l({},s,{ReactEventListener:null,injection:{injectReactEventListener:function(t){t.setHandleTopLevel(m.handleTopLevel),m.ReactEventListener=t}},setEnabled:function(t){m.ReactEventListener&&m.ReactEventListener.setEnabled(t)},isEnabled:function(){return!(!m.ReactEventListener||!m.ReactEventListener.isEnabled())},listenTo:function(t,e){for(var n=e,o=r(n),s=a.registrationNameDependencies[t],u=i.topLevelTypes,c=0;c<s.length;c++){var l=s[c];o.hasOwnProperty(l)&&o[l]||(l===u.topWheel?d("wheel")?m.ReactEventListener.trapBubbledEvent(u.topWheel,"wheel",n):d("mousewheel")?m.ReactEventListener.trapBubbledEvent(u.topWheel,"mousewheel",n):m.ReactEventListener.trapBubbledEvent(u.topWheel,"DOMMouseScroll",n):l===u.topScroll?d("scroll",!0)?m.ReactEventListener.trapCapturedEvent(u.topScroll,"scroll",n):m.ReactEventListener.trapBubbledEvent(u.topScroll,"scroll",m.ReactEventListener.WINDOW_HANDLE):l===u.topFocus||l===u.topBlur?(d("focus",!0)?(m.ReactEventListener.trapCapturedEvent(u.topFocus,"focus",n),m.ReactEventListener.trapCapturedEvent(u.topBlur,"blur",n)):d("focusin")&&(m.ReactEventListener.trapBubbledEvent(u.topFocus,"focusin",n),m.ReactEventListener.trapBubbledEvent(u.topBlur,"focusout",n)),o[u.topBlur]=!0,o[u.topFocus]=!0):g.hasOwnProperty(l)&&m.ReactEventListener.trapBubbledEvent(l,g[l],n),o[l]=!0)}},trapBubbledEvent:function(t,e,n){return m.ReactEventListener.trapBubbledEvent(t,e,n)},trapCapturedEvent:function(t,e,n){return m.ReactEventListener.trapCapturedEvent(t,e,n)},ensureScrollValueMonitoring:function(){if(!f){var t=c.refreshScrollValues;m.ReactEventListener.monitorScrollValue(t),f=!0}},eventNameDispatchConfigs:o.eventNameDispatchConfigs,registrationNameModules:o.registrationNameModules,putListener:o.putListener,getListener:o.getListener,deleteListener:o.deleteListener,deleteAllListeners:o.deleteAllListeners});u.measureMethods(m,"ReactBrowserEventEmitter",{putListener:"putListener",deleteListener:"deleteListener"}),t.exports=m},function(t,e,n){(function(e){"use strict";var n={};"production"!==e.env.NODE_ENV&&(n={prop:"prop",context:"context",childContext:"child context"}),t.exports=n}).call(e,n(1))},function(t,e,n){"use strict";var r=n(28),i=r({prop:null,context:null,childContext:null});t.exports=i},function(t,e,n){"use strict";function r(t,e,n,r){i.call(this,t,e,n,r)}var i=n(25),o=n(97),a=n(52),s={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+o.currentScrollLeft},pageY:function(t){return"pageY"in t?t.pageY:t.clientY+o.currentScrollTop}};i.augmentClass(r,s),t.exports=r},function(t,e,n){(function(e){"use strict";var r=n(2),i={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(t,n,i,o,a,s,u,c){this.isInTransaction()?"production"!==e.env.NODE_ENV?r(!1,"Transaction.perform(...): Cannot initialize a transaction when there is already an outstanding transaction."):r(!1):void 0;var l,d;try{this._isInTransaction=!0,l=!0,this.initializeAll(0),d=t.call(n,i,o,a,s,u,c),l=!1}finally{try{if(l)try{this.closeAll(0)}catch(p){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return d},initializeAll:function(t){for(var e=this.transactionWrappers,n=t;n<e.length;n++){var r=e[n];try{this.wrapperInitData[n]=o.OBSERVED_ERROR,this.wrapperInitData[n]=r.initialize?r.initialize.call(this):null}finally{if(this.wrapperInitData[n]===o.OBSERVED_ERROR)try{this.initializeAll(n+1)}catch(i){}}}},closeAll:function(t){this.isInTransaction()?void 0:"production"!==e.env.NODE_ENV?r(!1,"Transaction.closeAll(): Cannot close transaction when none are open."):r(!1);for(var n=this.transactionWrappers,i=t;i<n.length;i++){var a,s=n[i],u=this.wrapperInitData[i];try{a=!0,u!==o.OBSERVED_ERROR&&s.close&&s.close.call(this,u),a=!1}finally{if(a)try{this.closeAll(i+1)}catch(c){}}}this.wrapperInitData.length=0}},o={Mixin:i,OBSERVED_ERROR:{}};t.exports=o}).call(e,n(1))},function(t,e,n){(function(e){"use strict";var n=!1;if("production"!==e.env.NODE_ENV)try{Object.defineProperty({},"x",{get:function(){}}),n=!0}catch(r){}t.exports=n}).call(e,n(1))},function(t,e){"use strict";function n(t){return i[t]}function r(t){return(""+t).replace(o,n)}var i={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},o=/[&><"']/g;t.exports=r},function(t,e,n){"use strict";var r=n(5),i=/^[ \r\n\t\f]/,o=/<(!--|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 s=document.createElement("div");s.innerHTML=" ",""===s.innerHTML&&(a=function(t,e){if(t.parentNode&&t.parentNode.replaceChild(t,t),i.test(e)||"<"===e[0]&&o.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){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var n=this[e];n[2]?t.push("@media "+n[2]+"{"+n[1]+"}"):t.push(n[1])}return t.join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(t,e,n){function r(t){this.path=t.path,this.hostname=t.hostname,this.port=t.port,this.secure=t.secure,this.query=t.query,this.timestampParam=t.timestampParam,this.timestampRequests=t.timestampRequests,this.readyState="",this.agent=t.agent||!1,this.socket=t.socket,this.enablesXDR=t.enablesXDR,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.extraHeaders=t.extraHeaders}var i=n(19),o=n(26);t.exports=r,o(r.prototype),r.prototype.onError=function(t,e){var n=new Error(t);return n.type="TransportError",n.description=e,this.emit("error",n),this},r.prototype.open=function(){return("closed"==this.readyState||""==this.readyState)&&(this.readyState="opening",this.doOpen()),this},r.prototype.close=function(){return("opening"==this.readyState||"open"==this.readyState)&&(this.doClose(),this.onClose()),this},r.prototype.send=function(t){if("open"!=this.readyState)throw new Error("Transport not open");this.write(t)},r.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},r.prototype.onData=function(t){var e=i.decodePacket(t,this.socket.binaryType);this.onPacket(e)},r.prototype.onPacket=function(t){this.emit("packet",t)},r.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(t,e,n){var r=n(145);t.exports=function(t){var e=t.xdomain,n=t.xscheme,i=t.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!e||r))return new XMLHttpRequest}catch(o){}try{if("undefined"!=typeof XDomainRequest&&!n&&i)return new XDomainRequest}catch(o){}if(!e)try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(o){}}},function(t,e){e.encode=function(t){var e="";for(var n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e},e.decode=function(t){for(var e={},n=t.split("&"),r=0,i=n.length;i>r;r++){var o=n[r].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e}},function(t,e,n){(function(e){"use strict";function r(){this._callbacks=null,this._contexts=null}var i=n(15),o=n(3),a=n(2);o(r.prototype,{enqueue:function(t,e){this._callbacks=this._callbacks||[],this._contexts=this._contexts||[],this._callbacks.push(t),this._contexts.push(e)},notifyAll:function(){var t=this._callbacks,n=this._contexts;if(t){t.length!==n.length?"production"!==e.env.NODE_ENV?a(!1,"Mismatched list of contexts in callback queue"):a(!1):void 0,this._callbacks=null,this._contexts=null;for(var r=0;r<t.length;r++)t[r].call(n[r]);t.length=0,n.length=0}},reset:function(){this._callbacks=null,this._contexts=null},destructor:function(){this.reset()}}),i.addPoolingTo(r),t.exports=r}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function r(t){return d.hasOwnProperty(t)?!0:l.hasOwnProperty(t)?!1:c.test(t)?(d[t]=!0,!0):(l[t]=!0,"production"!==e.env.NODE_ENV?u(!1,"Invalid attribute name: `%s`",t):void 0,!1)}function i(t,e){return null==e||t.hasBooleanValue&&!e||t.hasNumericValue&&isNaN(e)||t.hasPositiveNumericValue&&1>e||t.hasOverloadedBooleanValue&&e===!1}var o=n(16),a=n(8),s=n(204),u=n(4),c=/^[a-zA-Z_][\w\.\-]*$/,l={},d={};if("production"!==e.env.NODE_ENV)var p={children:!0,dangerouslySetInnerHTML:!0,key:!0,ref:!0},f={},h=function(t){if(!(p.hasOwnProperty(t)&&p[t]||f.hasOwnProperty(t)&&f[t])){f[t]=!0;var n=t.toLowerCase(),r=o.isCustomAttribute(n)?n:o.getPossibleStandardName.hasOwnProperty(n)?o.getPossibleStandardName[n]:null;"production"!==e.env.NODE_ENV?u(null==r,"Unknown DOM property %s. Did you mean %s?",t,r):void 0}};var g={createMarkupForID:function(t){return o.ID_ATTRIBUTE_NAME+"="+s(t)},setAttributeForID:function(t,e){t.setAttribute(o.ID_ATTRIBUTE_NAME,e)},createMarkupForProperty:function(t,n){var r=o.properties.hasOwnProperty(t)?o.properties[t]:null;if(r){if(i(r,n))return"";var a=r.attributeName;return r.hasBooleanValue||r.hasOverloadedBooleanValue&&n===!0?a+'=""':a+"="+s(n)}return o.isCustomAttribute(t)?null==n?"":t+"="+s(n):("production"!==e.env.NODE_ENV&&h(t),null)},createMarkupForCustomAttribute:function(t,e){return r(t)&&null!=e?t+"="+s(e):""},setValueForProperty:function(t,n,r){var a=o.properties.hasOwnProperty(n)?o.properties[n]:null;if(a){var s=a.mutationMethod;if(s)s(t,r);else if(i(a,r))this.deleteValueForProperty(t,n);else if(a.mustUseAttribute){var u=a.attributeName,c=a.attributeNamespace;c?t.setAttributeNS(c,u,""+r):a.hasBooleanValue||a.hasOverloadedBooleanValue&&r===!0?t.setAttribute(u,""):t.setAttribute(u,""+r)}else{var l=a.propertyName;a.hasSideEffects&&""+t[l]==""+r||(t[l]=r)}}else o.isCustomAttribute(n)?g.setValueForAttribute(t,n,r):"production"!==e.env.NODE_ENV&&h(n)},setValueForAttribute:function(t,e,n){r(e)&&(null==n?t.removeAttribute(e):t.setAttribute(e,""+n))},deleteValueForProperty:function(t,n){var r=o.properties.hasOwnProperty(n)?o.properties[n]:null;if(r){var i=r.mutationMethod;if(i)i(t,void 0);else if(r.mustUseAttribute)t.removeAttribute(r.attributeName);else{var a=r.propertyName,s=o.getDefaultValueForProperty(t.nodeName,a);r.hasSideEffects&&""+t[a]===s||(t[a]=s)}}else o.isCustomAttribute(n)?t.removeAttribute(n):"production"!==e.env.NODE_ENV&&h(n)}};a.measureMethods(g,"DOMPropertyOperations",{setValueForProperty:"setValueForProperty",setValueForAttribute:"setValueForAttribute",deleteValueForProperty:"deleteValueForProperty"}),t.exports=g}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function r(t){null!=t.checkedLink&&null!=t.valueLink?"production"!==e.env.NODE_ENV?c(!1,"Cannot provide a checkedLink and a valueLink. If you want to use checkedLink, you probably don't want to use valueLink and vice versa."):c(!1):void 0}function i(t){r(t),null!=t.value||null!=t.onChange?"production"!==e.env.NODE_ENV?c(!1,"Cannot provide a valueLink and a value or onChange event. If you want to use value or onChange, you probably don't want to use valueLink."):c(!1):void 0}function o(t){r(t),null!=t.checked||null!=t.onChange?"production"!==e.env.NODE_ENV?c(!1,"Cannot provide a checkedLink and a checked property or onChange event. If you want to use checked or onChange, you probably don't want to use checkedLink"):c(!1):void 0}function a(t){if(t){var e=t.getName();if(e)return" Check the render method of `"+e+"`."}return""}var s=n(95),u=n(32),c=n(2),l=n(4),d={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},p={value:function(t,e,n){return!t[e]||d[t.type]||t.onChange||t.readOnly||t.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(t,e,n){return!t[e]||t.onChange||t.readOnly||t.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:s.func},f={},h={checkPropTypes:function(t,n,r){for(var i in p){if(p.hasOwnProperty(i))var o=p[i](n,i,t,u.prop);if(o instanceof Error&&!(o.message in f)){f[o.message]=!0;var s=a(r);"production"!==e.env.NODE_ENV?l(!1,"Failed form propType: %s%s",o.message,s):void 0}}},getValue:function(t){return t.valueLink?(i(t),t.valueLink.value):t.value},getChecked:function(t){return t.checkedLink?(o(t),t.checkedLink.value):t.checked},executeOnChange:function(t,e){return t.valueLink?(i(t),t.valueLink.requestChange(e.target.value)):t.checkedLink?(o(t),t.checkedLink.requestChange(e.target.checked)):t.onChange?t.onChange.call(void 0,e):void 0}};t.exports=h}).call(e,n(1))},function(t,e,n){"use strict";var r=n(47),i=n(6),o={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkupByID:r.dangerouslyReplaceNodeWithMarkupByID,unmountIDFromEnvironment:function(t){i.purgeID(t)}};t.exports=o},function(t,e,n){(function(e){"use strict";var r=n(2),i=!1,o={unmountIDFromEnvironment:null,replaceNodeWithMarkupByID:null,processChildrenUpdates:null,injection:{injectEnvironment:function(t){i?"production"!==e.env.NODE_ENV?r(!1,"ReactCompositeComponent: injectEnvironment() can only be called once."):r(!1):void 0,o.unmountIDFromEnvironment=t.unmountIDFromEnvironment,o.replaceNodeWithMarkupByID=t.replaceNodeWithMarkupByID,o.processChildrenUpdates=t.processChildrenUpdates,i=!0}}};t.exports=o}).call(e,n(1))},function(t,e,n){(function(e){"use strict";var r=n(75),i=n(43),o=n(6),a=n(8),s=n(2),u={dangerouslySetInnerHTML:"`dangerouslySetInnerHTML` must be set using `updateInnerHTMLByID()`.",style:"`style` must be set using `updateStylesByID()`."},c={updatePropertyByID:function(t,n,r){var a=o.getNode(t);u.hasOwnProperty(n)?"production"!==e.env.NODE_ENV?s(!1,"updatePropertyByID(...): %s",u[n]):s(!1):void 0,null!=r?i.setValueForProperty(a,n,r):i.deleteValueForProperty(a,n)},dangerouslyReplaceNodeWithMarkupByID:function(t,e){var n=o.getNode(t);r.dangerouslyReplaceNodeWithMarkup(n,e)},dangerouslyProcessChildrenUpdates:function(t,e){for(var n=0;n<t.length;n++)t[n].parentNode=o.getNode(t[n].parentID);r.processUpdates(t,e)}};a.measureMethods(c,"ReactDOMIDOperations",{dangerouslyReplaceNodeWithMarkupByID:"dangerouslyReplaceNodeWithMarkupByID",dangerouslyProcessChildrenUpdates:"dangerouslyProcessChildrenUpdates"}),t.exports=c}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function r(t){u.enqueueUpdate(t)}function i(t,n){var r=s.get(t);return r?("production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?d(null==o.current,"%s(...): Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state.",n):void 0),r):("production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?d(!n,"%s(...): Can only update a mounted or mounting component. This usually means you called %s() on an unmounted component. This is a no-op. Please check the code for the %s component.",n,n,t.constructor.displayName):void 0),null)}var o=n(13),a=n(7),s=n(24),u=n(9),c=n(3),l=n(2),d=n(4),p={isMounted:function(t){if("production"!==e.env.NODE_ENV){var n=o.current;null!==n&&("production"!==e.env.NODE_ENV?d(n._warnedAboutRefsInRender,"%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",n.getName()||"A component"):void 0,n._warnedAboutRefsInRender=!0)}var r=s.get(t);return r?!!r._renderedComponent:!1},enqueueCallback:function(t,n){"function"!=typeof n?"production"!==e.env.NODE_ENV?l(!1,"enqueueCallback(...): You called `setProps`, `replaceProps`, `setState`, `replaceState`, or `forceUpdate` with a callback that isn't callable."):l(!1):void 0;var o=i(t);return o?(o._pendingCallbacks?o._pendingCallbacks.push(n):o._pendingCallbacks=[n],void r(o)):null},enqueueCallbackInternal:function(t,n){"function"!=typeof n?"production"!==e.env.NODE_ENV?l(!1,"enqueueCallback(...): You called `setProps`, `replaceProps`, `setState`, `replaceState`, or `forceUpdate` with a callback that isn't callable."):l(!1):void 0,t._pendingCallbacks?t._pendingCallbacks.push(n):t._pendingCallbacks=[n],r(t)},enqueueForceUpdate:function(t){var e=i(t,"forceUpdate");e&&(e._pendingForceUpdate=!0,r(e))},enqueueReplaceState:function(t,e){var n=i(t,"replaceState");
  n&&(n._pendingStateQueue=[e],n._pendingReplaceState=!0,r(n))},enqueueSetState:function(t,e){var n=i(t,"setState");if(n){var o=n._pendingStateQueue||(n._pendingStateQueue=[]);o.push(e),r(n)}},enqueueSetProps:function(t,e){var n=i(t,"setProps");n&&p.enqueueSetPropsInternal(n,e)},enqueueSetPropsInternal:function(t,n){var i=t._topLevelWrapper;i?void 0:"production"!==e.env.NODE_ENV?l(!1,"setProps(...): You called `setProps` on a component with a parent. This is an anti-pattern since props will get reactively updated when rendered. Instead, change the owner's `render` method to pass the correct value as props to the component where it is created."):l(!1);var o=i._pendingElement||i._currentElement,s=o.props,u=c({},s.props,n);i._pendingElement=a.cloneAndReplaceProps(o,a.cloneAndReplaceProps(s,u)),r(i)},enqueueReplaceProps:function(t,e){var n=i(t,"replaceProps");n&&p.enqueueReplacePropsInternal(n,e)},enqueueReplacePropsInternal:function(t,n){var i=t._topLevelWrapper;i?void 0:"production"!==e.env.NODE_ENV?l(!1,"replaceProps(...): You called `replaceProps` on a component with a parent. This is an anti-pattern since props will get reactively updated when rendered. Instead, change the owner's `render` method to pass the correct value as props to the component where it is created."):l(!1);var o=i._pendingElement||i._currentElement,s=o.props;i._pendingElement=a.cloneAndReplaceProps(o,a.cloneAndReplaceProps(s,n)),r(i)},enqueueElementInternal:function(t,e){t._pendingElement=e,r(t)}};t.exports=p}).call(e,n(1))},function(t,e){"use strict";t.exports="0.14.7"},function(t,e,n){(function(e){"use strict";function r(t){if("production"!==e.env.NODE_ENV){var n=i.current;null!==n&&("production"!==e.env.NODE_ENV?u(n._warnedAboutRefsInRender,"%s is accessing getDOMNode or findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",n.getName()||"A component"):void 0,n._warnedAboutRefsInRender=!0)}return null==t?null:1===t.nodeType?t:o.has(t)?a.getNodeFromInstance(t):(null!=t.render&&"function"==typeof t.render?"production"!==e.env.NODE_ENV?s(!1,"findDOMNode was called on an unmounted component."):s(!1):void 0,void("production"!==e.env.NODE_ENV?s(!1,"Element appears to be neither ReactComponent nor DOMNode (keys: %s)",Object.keys(t)):s(!1)))}var i=n(13),o=n(24),a=n(6),s=n(2),u=n(4);t.exports=r}).call(e,n(1))},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){"use strict";function n(t){var e=this,n=e.nativeEvent;if(n.getModifierState)return n.getModifierState(t);var r=i[t];return r?!!n[r]:!1}function r(t){return n}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};t.exports=r},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&&(r&&t[r]||t[i]);return"function"==typeof e?e:void 0}var r="function"==typeof Symbol&&Symbol.iterator,i="@@iterator";t.exports=n},function(t,e,n){(function(e){"use strict";function r(t){if(t){var e=t.getName();if(e)return" Check the render method of `"+e+"`."}return""}function i(t){return"function"==typeof t&&"undefined"!=typeof t.prototype&&"function"==typeof t.prototype.mountComponent&&"function"==typeof t.prototype.receiveComponent}function o(t){var n;if(null===t||t===!1)n=new s(o);else if("object"==typeof t){var a=t;!a||"function"!=typeof a.type&&"string"!=typeof a.type?"production"!==e.env.NODE_ENV?l(!1,"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",null==a.type?a.type:typeof a.type,r(a._owner)):l(!1):void 0,n="string"==typeof a.type?u.createInternalComponent(a):i(a.type)?new a.type(a):new p}else"string"==typeof t||"number"==typeof t?n=u.createInstanceForText(t):"production"!==e.env.NODE_ENV?l(!1,"Encountered invalid React node of type %s",typeof t):l(!1);return"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?d("function"==typeof n.construct&&"function"==typeof n.mountComponent&&"function"==typeof n.receiveComponent&&"function"==typeof n.unmountComponent,"Only React Components can be mounted."):void 0),n.construct(t),n._mountIndex=0,n._mountImage=null,"production"!==e.env.NODE_ENV&&(n._isOwnerNecessary=!1,n._warnedAboutRefsInRender=!1),"production"!==e.env.NODE_ENV&&Object.preventExtensions&&Object.preventExtensions(n),n}var a=n(163),s=n(87),u=n(93),c=n(3),l=n(2),d=n(4),p=function(){};c(p.prototype,a.Mixin,{_instantiateReactComponent:o}),t.exports=o}).call(e,n(1))},function(t,e,n){"use strict";/**
  	 * Checks if an event is supported in the current execution environment.
  	 *
  	 * NOTE: This will not work correctly for non-generic events such as `change`,
  	 * `reset`, `load`, `error`, and `select`.
  	 *
  	 * Borrows from Modernizr.
  	 *
  	 * @param {string} eventNameSuffix Event name, e.g. "click".
  	 * @param {?boolean} capture Check if the capture phase is supported.
  	 * @return {boolean} True if the event is supported.
  	 * @internal
  	 * @license Modernizr 3.0.0pre (Custom Build) | MIT
  	 */
  function r(t,e){if(!o.canUseDOM||e&&!("addEventListener"in document))return!1;var n="on"+t,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&i&&"wheel"===t&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var i,o=n(5);o.canUseDOM&&(i=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),t.exports=r},function(t,e,n){"use strict";var r=n(5),i=n(36),o=n(37),a=function(t,e){t.textContent=e};r.canUseDOM&&("textContent"in document.documentElement||(a=function(t,e){o(t,i(e))})),t.exports=a},function(t,e){"use strict";function n(t,e){var n=null===t||t===!1,r=null===e||e===!1;if(n||r)return n===r;var i=typeof t,o=typeof e;return"string"===i||"number"===i?"string"===o||"number"===o:"object"===o&&t.type===e.type&&t.key===e.key}t.exports=n},function(t,e,n){(function(e){"use strict";function r(t){return m[t]}function i(t,e){return t&&null!=t.key?a(t.key):e.toString(36)}function o(t){return(""+t).replace(y,r)}function a(t){return"$"+o(t)}function s(t,n,r,o){var u=typeof t;if(("undefined"===u||"boolean"===u)&&(t=null),null===t||"string"===u||"number"===u||l.isValidElement(t))return r(o,t,""===n?g+i(t,0):n),1;var d,m,y=0,_=""===n?g:n+v;if(Array.isArray(t))for(var b=0;b<t.length;b++)d=t[b],m=_+i(d,b),y+=s(d,m,r,o);else{var E=p(t);if(E){var w,N=E.call(t);if(E!==t.entries)for(var C=0;!(w=N.next()).done;)d=w.value,m=_+i(d,C++),y+=s(d,m,r,o);else for("production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?h(x,"Using Maps as children is not yet fully supported. It is an experimental feature that might be removed. Convert it to a sequence / iterable of keyed ReactElements instead."):void 0,x=!0);!(w=N.next()).done;){var T=w.value;T&&(d=T[1],m=_+a(T[0])+v+i(d,0),y+=s(d,m,r,o))}}else if("object"===u){var D="";if("production"!==e.env.NODE_ENV&&(D=" If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons.",t._isReactElement&&(D=" It looks like you're using an element created by a different version of React. Make sure to use only one copy of React."),c.current)){var M=c.current.getName();M&&(D+=" Check the render method of `"+M+"`.")}var A=String(t);"production"!==e.env.NODE_ENV?f(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===A?"object with keys {"+Object.keys(t).join(", ")+"}":A,D):f(!1)}}return y}function u(t,e,n){return null==t?0:s(t,"",e,n)}var c=n(13),l=n(7),d=n(20),p=n(54),f=n(2),h=n(4),g=d.SEPARATOR,v=":",m={"=":"=0",".":"=1",":":"=2"},y=/[=.:]/g,x=!1;t.exports=u}).call(e,n(1))},function(t,e,n){(function(e){"use strict";var r=n(3),i=n(10),o=n(4),a=i;if("production"!==e.env.NODE_ENV){var s=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],u=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],c=u.concat(["button"]),l=["dd","dt","li","option","optgroup","p","rp","rt"],d={parentTag:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null},p=function(t,e,n){var i=r({},t||d),o={tag:e,instance:n};return-1!==u.indexOf(e)&&(i.aTagInScope=null,i.buttonTagInScope=null,i.nobrTagInScope=null),-1!==c.indexOf(e)&&(i.pTagInButtonScope=null),-1!==s.indexOf(e)&&"address"!==e&&"div"!==e&&"p"!==e&&(i.listItemTagAutoclosing=null,i.dlItemTagAutoclosing=null),i.parentTag=o,"form"===e&&(i.formTag=o),"a"===e&&(i.aTagInScope=o),"button"===e&&(i.buttonTagInScope=o),"nobr"===e&&(i.nobrTagInScope=o),"p"===e&&(i.pTagInButtonScope=o),"li"===e&&(i.listItemTagAutoclosing=o),("dd"===e||"dt"===e)&&(i.dlItemTagAutoclosing=o),i},f=function(t,e){switch(e){case"select":return"option"===t||"optgroup"===t||"#text"===t;case"optgroup":return"option"===t||"#text"===t;case"option":return"#text"===t;case"tr":return"th"===t||"td"===t||"style"===t||"script"===t||"template"===t;case"tbody":case"thead":case"tfoot":return"tr"===t||"style"===t||"script"===t||"template"===t;case"colgroup":return"col"===t||"template"===t;case"table":return"caption"===t||"colgroup"===t||"tbody"===t||"tfoot"===t||"thead"===t||"style"===t||"script"===t||"template"===t;case"head":return"base"===t||"basefont"===t||"bgsound"===t||"link"===t||"meta"===t||"title"===t||"noscript"===t||"noframes"===t||"style"===t||"script"===t||"template"===t;case"html":return"head"===t||"body"===t}switch(t){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return"h1"!==e&&"h2"!==e&&"h3"!==e&&"h4"!==e&&"h5"!==e&&"h6"!==e;case"rp":case"rt":return-1===l.indexOf(e);case"caption":case"col":case"colgroup":case"frame":case"head":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return null==e}return!0},h=function(t,e){switch(t){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return e.pTagInButtonScope;case"form":return e.formTag||e.pTagInButtonScope;case"li":return e.listItemTagAutoclosing;case"dd":case"dt":return e.dlItemTagAutoclosing;case"button":return e.buttonTagInScope;case"a":return e.aTagInScope;case"nobr":return e.nobrTagInScope}return null},g=function(t){if(!t)return[];var e=[];do e.push(t);while(t=t._currentElement._owner);return e.reverse(),e},v={};a=function(t,n,r){r=r||d;var i=r.parentTag,a=i&&i.tag,s=f(t,a)?null:i,u=s?null:h(t,r),c=s||u;if(c){var l,p=c.tag,m=c.instance,y=n&&n._currentElement._owner,x=m&&m._currentElement._owner,_=g(y),b=g(x),E=Math.min(_.length,b.length),w=-1;for(l=0;E>l&&_[l]===b[l];l++)w=l;var N="(unknown)",C=_.slice(w+1).map(function(t){return t.getName()||N}),T=b.slice(w+1).map(function(t){return t.getName()||N}),D=[].concat(-1!==w?_[w].getName()||N:[],T,p,u?["..."]:[],C,t).join(" > "),M=!!s+"|"+t+"|"+p+"|"+D;if(v[M])return;if(v[M]=!0,s){var A="";"table"===p&&"tr"===t&&(A+=" Add a <tbody> to your code to match the DOM tree generated by the browser."),"production"!==e.env.NODE_ENV?o(!1,"validateDOMNesting(...): <%s> cannot appear as a child of <%s>. See %s.%s",t,p,D,A):void 0}else"production"!==e.env.NODE_ENV?o(!1,"validateDOMNesting(...): <%s> cannot appear as a descendant of <%s>. See %s.",t,p,D):void 0}},a.ancestorInfoContextKey="__validateDOMNesting_ancestorInfo$"+Math.random().toString(36).slice(2),a.updatedAncestorInfo=p,a.isTagValidInContext=function(t,e){e=e||d;var n=e.parentTag,r=n&&n.tag;return f(t,r)&&!h(t,e)}}t.exports=a}).call(e,n(1))},function(t,e,n){function r(){}function i(t){var n="",r=!1;return n+=t.type,(e.BINARY_EVENT==t.type||e.BINARY_ACK==t.type)&&(n+=t.attachments,n+="-"),t.nsp&&"/"!=t.nsp&&(r=!0,n+=t.nsp),null!=t.id&&(r&&(n+=",",r=!1),n+=t.id),null!=t.data&&(r&&(n+=","),n+=d.stringify(t.data)),l("encoded %j as %s",t,n),n}function o(t,e){function n(t){var n=f.deconstructPacket(t),r=i(n.packet),o=n.buffers;o.unshift(r),e(o)}f.removeBlobs(t,n)}function a(){this.reconstructor=null}function s(t){var n={},r=0;if(n.type=Number(t.charAt(0)),null==e.types[n.type])return c();if(e.BINARY_EVENT==n.type||e.BINARY_ACK==n.type){for(var i="";"-"!=t.charAt(++r)&&(i+=t.charAt(r),r!=t.length););if(i!=Number(i)||"-"!=t.charAt(r))throw new Error("Illegal attachments");n.attachments=Number(i)}if("/"==t.charAt(r+1))for(n.nsp="";++r;){var o=t.charAt(r);if(","==o)break;if(n.nsp+=o,r==t.length)break}else n.nsp="/";var a=t.charAt(r+1);if(""!==a&&Number(a)==a){for(n.id="";++r;){var o=t.charAt(r);if(null==o||Number(o)!=o){--r;break}if(n.id+=t.charAt(r),r==t.length)break}n.id=Number(n.id)}if(t.charAt(++r))try{n.data=d.parse(t.substr(r))}catch(s){return c()}return l("decoded %s as %j",t,n),n}function u(t){this.reconPack=t,this.buffers=[]}function c(t){return{type:e.ERROR,data:"parser error"}}var l=n(11)("socket.io-parser"),d=n(209),p=(n(29),n(26)),f=n(208),h=n(107);e.protocol=4,e.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],e.CONNECT=0,e.DISCONNECT=1,e.EVENT=2,e.ACK=3,e.ERROR=4,e.BINARY_EVENT=5,e.BINARY_ACK=6,e.Encoder=r,e.Decoder=a,r.prototype.encode=function(t,n){if(l("encoding packet %j",t),e.BINARY_EVENT==t.type||e.BINARY_ACK==t.type)o(t,n);else{var r=i(t);n([r])}},p(a.prototype),a.prototype.add=function(t){var n;if("string"==typeof t)n=s(t),e.BINARY_EVENT==n.type||e.BINARY_ACK==n.type?(this.reconstructor=new u(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n);else{if(!h(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,this.emit("decoded",n))}},a.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},u.prototype.takeBinaryData=function(t){if(this.buffers.push(t),this.buffers.length==this.reconPack.attachments){var e=f.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null},u.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(t,e,n){var r,i;!function(){function o(t,e){return e>t?-1:t>e?1:t>=e?0:NaN}function a(t){return null===t?NaN:+t}function s(t){return!isNaN(t)}function u(t){return{left:function(e,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=e.length);i>r;){var o=r+i>>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=e.length);i>r;){var o=r+i>>>1;t(e[o],n)>0?i=o:r=o+1}return r}}}function c(t){return t.length}function l(t){for(var e=1;t*e%1;)e*=10;return e}function d(t,e){for(var n in e)Object.defineProperty(t.prototype,n,{value:e[n],enumerable:!1})}function p(){this._=Object.create(null)}function f(t){return(t+="")===Ea||t[0]===wa?wa+t:t}function h(t){return(t+="")[0]===wa?t.slice(1):t}function g(t){return f(t)in this._}function v(t){return(t=f(t))in this._&&delete this._[t]}function m(){var t=[];for(var e in this._)t.push(h(e));return t}function y(){var t=0;for(var e in this._)++t;return t}function x(){for(var t in this._)return!1;return!0}function _(){this._=Object.create(null)}function b(t,e,n){return function(){var r=n.apply(e,arguments);return r===e?t:r}}function E(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var n=0,r=Na.length;r>n;++n){var i=Na[n]+e;if(i in t)return i}}function w(){}function N(){}function C(t){function e(){for(var e,r=n,i=-1,o=r.length;++i<o;)(e=r[i].on)&&e.apply(this,arguments);return t}var n=[],r=new p;return e.on=function(e,i){var o,a=r.get(e);return arguments.length<2?a&&a.on:(a&&(a.on=null,n=n.slice(0,o=n.indexOf(a)).concat(n.slice(o+1)),r.remove(e)),i&&n.push(r.set(e,{on:i})),t)},e}function T(){sa.event.preventDefault()}function D(){for(var t,e=sa.event;t=e.sourceEvent;)e=t;return e}function M(t){for(var e=new N,n=0,r=arguments.length;++n<r;)e[arguments[n]]=C(e);return e.of=function(n,r){return function(i){try{var o=i.sourceEvent=sa.event;i.target=t,sa.event=i,e[i.type].apply(n,r)}finally{sa.event=o}}},e}function A(t){return Ta(t,Sa),t}function k(t){return"function"==typeof t?t:function(){return Da(t,this)}}function S(t){return"function"==typeof t?t:function(){return Ma(t,this)}}function O(t,e){function n(){this.removeAttribute(t)}function r(){this.removeAttributeNS(t.space,t.local)}function i(){this.setAttribute(t,e)}function o(){this.setAttributeNS(t.space,t.local,e)}function a(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}function s(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}return t=sa.ns.qualify(t),null==e?t.local?r:n:"function"==typeof e?t.local?s:a:t.local?o:i}function R(t){return t.trim().replace(/\s+/g," ")}function I(t){return new RegExp("(?:^|\\s+)"+sa.requote(t)+"(?:\\s+|$)","g")}function L(t){return(t+"").trim().split(/^|\s+/)}function P(t,e){function n(){for(var n=-1;++n<i;)t[n](this,e)}function r(){for(var n=-1,r=e.apply(this,arguments);++n<i;)t[n](this,r)}t=L(t).map(V);var i=t.length;return"function"==typeof e?r:n}function V(t){var e=I(t);return function(n,r){if(i=n.classList)return r?i.add(t):i.remove(t);var i=n.getAttribute("class")||"";r?(e.lastIndex=0,e.test(i)||n.setAttribute("class",R(i+" "+t))):n.setAttribute("class",R(i.replace(e," ")))}}function F(t,e,n){function r(){this.style.removeProperty(t)}function i(){this.style.setProperty(t,e,n)}function o(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}return null==e?r:"function"==typeof e?o:i}function B(t,e){function n(){delete this[t]}function r(){this[t]=e}function i(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}return null==e?n:"function"==typeof e?i:r}function U(t){return"function"==typeof t?t:(t=sa.ns.qualify(t)).local?function(){return this.ownerDocument.createElementNS(t.space,t.local)}:function(){return this.ownerDocument.createElementNS(this.namespaceURI,t)}}function j(){var t=this.parentNode;t&&t.removeChild(this)}function X(t){return{__data__:t}}function z(t){return function(){return ka(this,t)}}function Y(t){return arguments.length||(t=o),function(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}}function q(t,e){for(var n=0,r=t.length;r>n;n++)for(var i,o=t[n],a=0,s=o.length;s>a;a++)(i=o[a])&&e(i,a,n);return t}function W(t){return Ta(t,Ra),t}function H(t){var e,n;return function(r,i,o){var a,s=t[o].update,u=s.length;for(o!=n&&(n=o,e=0),i>=e&&(e=i+1);!(a=s[e])&&++e<u;);return a}}function K(t){var e=t.__transition__;e&&++e.active}function G(t,e,n){function r(){var e=this[a];e&&(this.removeEventListener(t,e,e.$),delete this[a])}function i(){var i=u(e,ca(arguments));r.call(this),this.addEventListener(t,this[a]=i,i.$=n),i._=e}function o(){var e,n=new RegExp("^__on([^.]+)"+sa.requote(t)+"$");for(var r in this)if(e=r.match(n)){var i=this[r];this.removeEventListener(e[1],i,i.$),delete this[r]}}var a="__on"+t,s=t.indexOf("."),u=J;s>0&&(t=t.slice(0,s));var c=La.get(t);return c&&(t=c,u=$),s?e?i:r:e?w:o}function J(t,e){return function(n){var r=sa.event;sa.event=n,e[0]=this.__data__;try{t.apply(this,e)}finally{sa.event=r}}}function $(t,e){var n=J(t,e);return function(t){var e=this,r=t.relatedTarget;r&&(r===e||8&r.compareDocumentPosition(e))||n.call(e,t)}}function Z(){var t=".dragsuppress-"+ ++Va,e="click"+t,n=sa.select(pa).on("touchmove"+t,T).on("dragstart"+t,T).on("selectstart"+t,T);if(Pa){var r=da.style,i=r[Pa];r[Pa]="none"}return function(o){if(n.on(t,null),Pa&&(r[Pa]=i),o){var a=function(){n.on(e,null)};n.on(e,function(){T(),a()},!0),setTimeout(a,0)}}}function Q(t,e){e.changedTouches&&(e=e.changedTouches[0]);var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();if(0>Fa&&(pa.scrollX||pa.scrollY)){n=sa.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var i=n[0][0].getScreenCTM();Fa=!(i.f||i.e),n.remove()}return Fa?(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 o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}function tt(){return sa.event.changedTouches[0].identifier}function et(){return sa.event.target}function nt(){return pa}function rt(t){return t>0?1:0>t?-1:0}function it(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}function ot(t){return t>1?0:-1>t?ja:Math.acos(t)}function at(t){return t>1?Ya:-1>t?-Ya:Math.asin(t)}function st(t){return((t=Math.exp(t))-1/t)/2}function ut(t){return((t=Math.exp(t))+1/t)/2}function ct(t){return((t=Math.exp(2*t))-1)/(t+1)}function lt(t){return(t=Math.sin(t/2))*t}function dt(){}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):Tt(""+t,Dt,pt):new pt(t,e,n)}function ft(t,e,n){function r(t){return t>360?t-=360:0>t&&(t+=360),60>t?o+(a-o)*t/60:180>t?a:240>t?o+(a-o)*(240-t)/60:o}function i(t){return Math.round(255*r(t))}var o,a;return t=isNaN(t)?0:(t%=360)<0?t+360:t,e=isNaN(e)?0:0>e?0:e>1?1:e,n=0>n?0:n>1?1:n,a=.5>=n?n*(1+e):n+e-n*e,o=2*n-a,new Et(i(t+120),i(t),i(t-120))}function ht(t,e,n){return this instanceof ht?(this.h=+t,this.c=+e,void(this.l=+n)):arguments.length<2?t instanceof ht?new ht(t.h,t.c,t.l):t instanceof vt?yt(t.l,t.a,t.b):yt((t=Mt((t=sa.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new ht(t,e,n)}function gt(t,e,n){return isNaN(t)&&(t=0),isNaN(e)&&(e=0),new vt(n,Math.cos(t*=qa)*e,Math.sin(t)*e)}function vt(t,e,n){return this instanceof vt?(this.l=+t,this.a=+e,void(this.b=+n)):arguments.length<2?t instanceof vt?new vt(t.l,t.a,t.b):t instanceof ht?gt(t.h,t.c,t.l):Mt((t=Et(t)).r,t.g,t.b):new vt(t,e,n)}function mt(t,e,n){var r=(t+16)/116,i=r+e/500,o=r-n/200;return i=xt(i)*ns,r=xt(r)*rs,o=xt(o)*is,new Et(bt(3.2404542*i-1.5371385*r-.4985314*o),bt(-.969266*i+1.8760108*r+.041556*o),bt(.0556434*i-.2040259*r+1.0572252*o))}function yt(t,e,n){return t>0?new ht(Math.atan2(n,e)*Wa,Math.sqrt(e*e+n*n),t):new ht(NaN,NaN,t)}function xt(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function _t(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function bt(t){return Math.round(255*(.00304>=t?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function Et(t,e,n){return this instanceof Et?(this.r=~~t,this.g=~~e,void(this.b=~~n)):arguments.length<2?t instanceof Et?new Et(t.r,t.g,t.b):Tt(""+t,Et,ft):new Et(t,e,n)}function wt(t){return new Et(t>>16,t>>8&255,255&t)}function Nt(t){return wt(t)+""}function Ct(t){return 16>t?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function Tt(t,e,n){var r,i,o,a=0,s=0,u=0;if(r=/([a-z]+)\((.*)\)/i.exec(t))switch(i=r[2].split(","),r[1]){case"hsl":return n(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return e(kt(i[0]),kt(i[1]),kt(i[2]))}return(o=ss.get(t))?e(o.r,o.g,o.b):(null==t||"#"!==t.charAt(0)||isNaN(o=parseInt(t.slice(1),16))||(4===t.length?(a=(3840&o)>>4,a=a>>4|a,s=240&o,s=s>>4|s,u=15&o,u=u<<4|u):7===t.length&&(a=(16711680&o)>>16,s=(65280&o)>>8,u=255&o)),e(a,s,u))}function Dt(t,e,n){var r,i,o=Math.min(t/=255,e/=255,n/=255),a=Math.max(t,e,n),s=a-o,u=(a+o)/2;return s?(i=.5>u?s/(a+o):s/(2-a-o),r=t==a?(e-n)/s+(n>e?6:0):e==a?(n-t)/s+2:(t-e)/s+4,r*=60):(r=NaN,i=u>0&&1>u?0:r),new pt(r,i,u)}function Mt(t,e,n){t=At(t),e=At(e),n=At(n);var r=_t((.4124564*t+.3575761*e+.1804375*n)/ns),i=_t((.2126729*t+.7151522*e+.072175*n)/rs),o=_t((.0193339*t+.119192*e+.9503041*n)/is);return vt(116*i-16,500*(r-i),200*(i-o))}function At(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function kt(t){var e=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*e):e}function St(t){return"function"==typeof t?t:function(){return t}}function Ot(t){return t}function Rt(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 i(){var t,e=u.status;if(!e&&Pt(u)||e>=200&&300>e||304===e){try{t=n.call(o,u)}catch(r){return void a.error.call(o,r)}a.load.call(o,t)}else a.error.call(o,u)}var o={},a=sa.dispatch("beforesend","progress","load","error"),s={},u=new XMLHttpRequest,c=null;return!pa.XDomainRequest||"withCredentials"in u||!/^(http(s)?:)?\/\//.test(t)||(u=new XDomainRequest),"onload"in u?u.onload=u.onerror=i:u.onreadystatechange=function(){u.readyState>3&&i()},u.onprogress=function(t){var e=sa.event;sa.event=t;try{a.progress.call(o,u)}finally{sa.event=e}},o.header=function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?s[t]:(null==e?delete s[t]:s[t]=e+"",o)},o.mimeType=function(t){return arguments.length?(e=null==t?null:t+"",o):e},o.responseType=function(t){return arguments.length?(c=t,o):c},o.response=function(t){return n=t,o},["get","post"].forEach(function(t){o[t]=function(){return o.send.apply(o,[t].concat(ca(arguments)))}}),o.send=function(n,r,i){if(2===arguments.length&&"function"==typeof r&&(i=r,r=null),u.open(n,t,!0),null==e||"accept"in s||(s.accept=e+",*/*"),u.setRequestHeader)for(var l in s)u.setRequestHeader(l,s[l]);return null!=e&&u.overrideMimeType&&u.overrideMimeType(e),null!=c&&(u.responseType=c),null!=i&&o.on("error",i).on("load",function(t){i(null,t)}),a.beforesend.call(o,u),u.send(null==r?null:r),o},o.abort=function(){return u.abort(),o},sa.rebind(o,a,"on"),null==r?o:o.get(Lt(r))}function Lt(t){return 1===t.length?function(e,n){t(null==e?n:null)}:t}function Pt(t){var e=t.responseType;return e&&"text"!==e?t.response:t.responseText}function Vt(){var t=Ft(),e=Bt()-t;e>24?(isFinite(e)&&(clearTimeout(ds),ds=setTimeout(Vt,e)),ls=0):(ls=1,fs(Vt))}function Ft(){var t=Date.now();for(ps=us;ps;)t>=ps.t&&(ps.f=ps.c(t-ps.t)),ps=ps.n;return t}function Bt(){for(var t,e=us,n=1/0;e;)e.f?e=t?t.n=e.n:us=e.n:(e.t<n&&(n=e.t),e=(t=e).n);return cs=t,n}function Ut(t,e){return e-(t?Math.ceil(Math.log(t)/Math.LN10):1)}function jt(t,e){var n=Math.pow(10,3*ba(8-e));return{scale:e>8?function(t){return t/n}:function(t){return t*n},symbol:t}}function Xt(t){var e=t.decimal,n=t.thousands,r=t.grouping,i=t.currency,o=r&&n?function(t,e){for(var i=t.length,o=[],a=0,s=r[0],u=0;i>0&&s>0&&(u+s+1>e&&(s=Math.max(1,e-u)),o.push(t.substring(i-=s,i+s)),!((u+=s+1)>e));)s=r[a=(a+1)%r.length];return o.reverse().join(n)}:Ot;return function(t){var n=gs.exec(t),r=n[1]||" ",a=n[2]||">",s=n[3]||"-",u=n[4]||"",c=n[5],l=+n[6],d=n[7],p=n[8],f=n[9],h=1,g="",v="",m=!1,y=!0;switch(p&&(p=+p.substring(1)),(c||"0"===r&&"="===a)&&(c=r="0",a="="),f){case"n":d=!0,f="g";break;case"%":h=100,v="%",f="f";break;case"p":h=100,v="%",f="r";break;case"b":case"o":case"x":case"X":"#"===u&&(g="0"+f.toLowerCase());case"c":y=!1;case"d":m=!0,p=0;break;case"s":h=-1,f="r"}"$"===u&&(g=i[0],v=i[1]),"r"!=f||p||(f="g"),null!=p&&("g"==f?p=Math.max(1,Math.min(21,p)):("e"==f||"f"==f)&&(p=Math.max(0,Math.min(20,p)))),f=vs.get(f)||zt;var x=c&&d;return function(t){var n=v;if(m&&t%1)return"";var i=0>t||0===t&&0>1/t?(t=-t,"-"):"-"===s?"":s;if(0>h){var u=sa.formatPrefix(t,p);t=u.scale(t),n=u.symbol+v}else t*=h;t=f(t,p);var _,b,E=t.lastIndexOf(".");if(0>E){var w=y?t.lastIndexOf("e"):-1;0>w?(_=t,b=""):(_=t.substring(0,w),b=t.substring(w))}else _=t.substring(0,E),b=e+t.substring(E+1);!c&&d&&(_=o(_,1/0));var N=g.length+_.length+b.length+(x?0:i.length),C=l>N?new Array(N=l-N+1).join(r):"";return x&&(_=o(C+_,C.length?l-b.length:1/0)),i+=g,t=_+b,("<"===a?i+t+C:">"===a?C+i+t:"^"===a?C.substring(0,N>>=1)+i+t+C.substring(N):i+(x?t:C+t))+n}}}function zt(t){return t+""}function Yt(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function qt(t,e,n){function r(e){var n=t(e),r=o(n,1);return r-e>e-n?n:r}function i(n){return e(n=t(new ys(n-1)),1),n}function o(t,n){return e(t=new ys(+t),n),t}function a(t,r,o){var a=i(t),s=[];if(o>1)for(;r>a;)n(a)%o||s.push(new Date(+a)),e(a,1);else for(;r>a;)s.push(new Date(+a)),e(a,1);return s}function s(t,e,n){try{ys=Yt;var r=new Yt;return r._=t,a(r,e,n)}finally{ys=Date}}t.floor=t,t.round=r,t.ceil=i,t.offset=o,t.range=a;var u=t.utc=Wt(t);return u.floor=u,u.round=Wt(r),u.ceil=Wt(i),u.offset=Wt(o),u.range=s,t}function Wt(t){return function(e,n){try{ys=Yt;var r=new Yt;return r._=e,t(r,n)._}finally{ys=Date}}}function Ht(t){function e(t){function e(e){for(var n,i,o,a=[],s=-1,u=0;++s<r;)37===t.charCodeAt(s)&&(a.push(t.slice(u,s)),null!=(i=_s[n=t.charAt(++s)])&&(n=t.charAt(++s)),(o=M[n])&&(n=o(e,null==i?"e"===n?" ":"0":i)),a.push(n),u=s+1);return a.push(t.slice(u,s)),a.join("")}var r=t.length;return e.parse=function(e){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},i=n(r,t,e,0);if(i!=e.length)return null;"p"in r&&(r.H=r.H%12+12*r.p);var o=null!=r.Z&&ys!==Yt,a=new(o?Yt:ys);return"j"in r?a.setFullYear(r.y,0,r.j):"w"in r&&("W"in r||"U"in r)?(a.setFullYear(r.y,0,1),a.setFullYear(r.y,0,"W"in r?(r.w+6)%7+7*r.W-(a.getDay()+5)%7:r.w+7*r.U-(a.getDay()+6)%7)):a.setFullYear(r.y,r.m,r.d),a.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),o?a._:a},e.toString=function(){return t},e}function n(t,e,n,r){for(var i,o,a,s=0,u=e.length,c=n.length;u>s;){if(r>=c)return-1;if(i=e.charCodeAt(s++),37===i){if(a=e.charAt(s++),o=A[a in _s?e.charAt(s++):a],!o||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function r(t,e,n){E.lastIndex=0;var r=E.exec(e.slice(n));return r?(t.w=w.get(r[0].toLowerCase()),n+r[0].length):-1}function i(t,e,n){_.lastIndex=0;var r=_.exec(e.slice(n));return r?(t.w=b.get(r[0].toLowerCase()),n+r[0].length):-1}function o(t,e,n){T.lastIndex=0;var r=T.exec(e.slice(n));return r?(t.m=D.get(r[0].toLowerCase()),n+r[0].length):-1}function a(t,e,n){N.lastIndex=0;var r=N.exec(e.slice(n));return r?(t.m=C.get(r[0].toLowerCase()),n+r[0].length):-1}function s(t,e,r){return n(t,M.c.toString(),e,r)}function u(t,e,r){return n(t,M.x.toString(),e,r)}function c(t,e,r){return n(t,M.X.toString(),e,r)}function l(t,e,n){var r=x.get(e.slice(n,n+=2).toLowerCase());return null==r?-1:(t.p=r,n)}var d=t.dateTime,p=t.date,f=t.time,h=t.periods,g=t.days,v=t.shortDays,m=t.months,y=t.shortMonths;e.utc=function(t){function n(t){try{ys=Yt;var e=new ys;return e._=t,r(e)}finally{ys=Date}}var r=e(t);return n.parse=function(t){try{ys=Yt;var e=r.parse(t);return e&&e._}finally{ys=Date}},n.toString=r.toString,n},e.multi=e.utc.multi=fe;var x=sa.map(),_=Gt(g),b=Jt(g),E=Gt(v),w=Jt(v),N=Gt(m),C=Jt(m),T=Gt(y),D=Jt(y);h.forEach(function(t,e){x.set(t.toLowerCase(),e)});var M={a:function(t){return v[t.getDay()]},A:function(t){return g[t.getDay()]},b:function(t){return y[t.getMonth()]},B:function(t){return m[t.getMonth()]},c:e(d),d:function(t,e){return Kt(t.getDate(),e,2)},e:function(t,e){return Kt(t.getDate(),e,2)},H:function(t,e){return Kt(t.getHours(),e,2)},I:function(t,e){return Kt(t.getHours()%12||12,e,2)},j:function(t,e){return Kt(1+ms.dayOfYear(t),e,3)},L:function(t,e){return Kt(t.getMilliseconds(),e,3)},m:function(t,e){return Kt(t.getMonth()+1,e,2)},M:function(t,e){return Kt(t.getMinutes(),e,2)},p:function(t){return h[+(t.getHours()>=12)]},S:function(t,e){return Kt(t.getSeconds(),e,2)},U:function(t,e){return Kt(ms.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return Kt(ms.mondayOfYear(t),e,2)},x:e(p),X:e(f),y:function(t,e){return Kt(t.getFullYear()%100,e,2)},Y:function(t,e){return Kt(t.getFullYear()%1e4,e,4)},Z:de,"%":function(){return"%"}},A={a:r,A:i,b:o,B:a,c:s,d:oe,e:oe,H:se,I:se,j:ae,L:le,m:ie,M:ue,p:l,S:ce,U:Zt,w:$t,W:Qt,x:u,X:c,y:ee,Y:te,Z:ne,"%":pe};return e}function Kt(t,e,n){var r=0>t?"-":"",i=(r?-t:t)+"",o=i.length;return r+(n>o?new Array(n-o+1).join(e)+i:i)}function Gt(t){return new RegExp("^(?:"+t.map(sa.requote).join("|")+")","i")}function Jt(t){for(var e=new p,n=-1,r=t.length;++n<r;)e.set(t[n].toLowerCase(),n);return e}function $t(t,e,n){bs.lastIndex=0;var r=bs.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Zt(t,e,n){bs.lastIndex=0;var r=bs.exec(e.slice(n));return r?(t.U=+r[0],n+r[0].length):-1}function Qt(t,e,n){bs.lastIndex=0;var r=bs.exec(e.slice(n));return r?(t.W=+r[0],n+r[0].length):-1}function te(t,e,n){bs.lastIndex=0;var r=bs.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function ee(t,e,n){bs.lastIndex=0;var r=bs.exec(e.slice(n,n+2));return r?(t.y=re(+r[0]),n+r[0].length):-1}function ne(t,e,n){return/^[+-]\d{4}$/.test(e=e.slice(n,n+5))?(t.Z=-e,n+5):-1}function re(t){return t+(t>68?1900:2e3)}function ie(t,e,n){bs.lastIndex=0;var r=bs.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function oe(t,e,n){bs.lastIndex=0;var r=bs.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function ae(t,e,n){bs.lastIndex=0;var r=bs.exec(e.slice(n,n+3));return r?(t.j=+r[0],n+r[0].length):-1}function se(t,e,n){bs.lastIndex=0;var r=bs.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function ue(t,e,n){bs.lastIndex=0;var r=bs.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function ce(t,e,n){bs.lastIndex=0;var r=bs.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function le(t,e,n){bs.lastIndex=0;var r=bs.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function de(t){var e=t.getTimezoneOffset(),n=e>0?"-":"+",r=ba(e)/60|0,i=ba(e)%60;return n+Kt(r,"0",2)+Kt(i,"0",2)}function pe(t,e,n){Es.lastIndex=0;var r=Es.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function fe(t){for(var e=t.length,n=-1;++n<e;)t[n][0]=this(t[n][0]);return function(e){for(var n=0,r=t[n];!r[1](e);)r=t[++n];return r[0](e)}}function he(){}function ge(t,e,n){var r=n.s=t+e,i=r-t,o=r-i;n.t=t-o+(e-i)}function ve(t,e){t&&Ts.hasOwnProperty(t.type)&&Ts[t.type](t,e)}function me(t,e,n){var r,i=-1,o=t.length-n;for(e.lineStart();++i<o;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function ye(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)me(t[n],e,1);e.polygonEnd()}function xe(){function t(t,e){t*=qa,e=e*qa/2+ja/4;var n=t-r,a=n>=0?1:-1,s=a*n,u=Math.cos(e),c=Math.sin(e),l=o*c,d=i*u+l*Math.cos(s),p=l*a*Math.sin(s);Ms.add(Math.atan2(p,d)),r=t,i=u,o=c}var e,n,r,i,o;As.point=function(a,s){As.point=t,r=(e=a)*qa,i=Math.cos(s=(n=s)*qa/2+ja/4),o=Math.sin(s)},As.lineEnd=function(){t(e,n)}}function _e(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 be(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Ee(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 we(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Ne(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function Ce(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 Te(t){return[Math.atan2(t[1],t[0]),at(t[2])]}function De(t,e){return ba(t[0]-e[0])<Ba&&ba(t[1]-e[1])<Ba}function Me(t,e){t*=qa;var n=Math.cos(e*=qa);Ae(n*Math.cos(t),n*Math.sin(t),Math.sin(e))}function Ae(t,e,n){++ks,Os+=(t-Os)/ks,Rs+=(e-Rs)/ks,Is+=(n-Is)/ks}function ke(){function t(t,i){t*=qa;var o=Math.cos(i*=qa),a=o*Math.cos(t),s=o*Math.sin(t),u=Math.sin(i),c=Math.atan2(Math.sqrt((c=n*u-r*s)*c+(c=r*a-e*u)*c+(c=e*s-n*a)*c),e*a+n*s+r*u);Ss+=c,Ls+=c*(e+(e=a)),Ps+=c*(n+(n=s)),Vs+=c*(r+(r=u)),Ae(e,n,r)}var e,n,r;js.point=function(i,o){i*=qa;var a=Math.cos(o*=qa);e=a*Math.cos(i),n=a*Math.sin(i),r=Math.sin(o),js.point=t,Ae(e,n,r)}}function Se(){js.point=Me}function Oe(){function t(t,e){t*=qa;var n=Math.cos(e*=qa),a=n*Math.cos(t),s=n*Math.sin(t),u=Math.sin(e),c=i*u-o*s,l=o*a-r*u,d=r*s-i*a,p=Math.sqrt(c*c+l*l+d*d),f=r*a+i*s+o*u,h=p&&-ot(f)/p,g=Math.atan2(p,f);Fs+=h*c,Bs+=h*l,Us+=h*d,Ss+=g,Ls+=g*(r+(r=a)),Ps+=g*(i+(i=s)),Vs+=g*(o+(o=u)),Ae(r,i,o)}var e,n,r,i,o;js.point=function(a,s){e=a,n=s,js.point=t,a*=qa;var u=Math.cos(s*=qa);r=u*Math.cos(a),i=u*Math.sin(a),o=Math.sin(s),Ae(r,i,o)},js.lineEnd=function(){t(e,n),js.lineEnd=Se,js.point=Me}}function Re(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return n=e.invert(n,r),n&&t.invert(n[0],n[1])}),n}function Ie(){return!0}function Le(t,e,n,r,i){var o=[],a=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n=t[0],r=t[e];if(De(n,r)){i.lineStart();for(var s=0;e>s;++s)i.point((n=t[s])[0],n[1]);return void i.lineEnd()}var u=new Ve(n,t,null,!0),c=new Ve(n,null,u,!1);u.o=c,o.push(u),a.push(c),u=new Ve(r,t,null,!1),c=new Ve(r,null,u,!0),u.o=c,o.push(u),a.push(c)}}),a.sort(e),Pe(o),Pe(a),o.length){for(var s=0,u=n,c=a.length;c>s;++s)a[s].e=u=!u;
  for(var l,d,p=o[0];;){for(var f=p,h=!0;f.v;)if((f=f.n)===p)return;l=f.z,i.lineStart();do{if(f.v=f.o.v=!0,f.e){if(h)for(var s=0,c=l.length;c>s;++s)i.point((d=l[s])[0],d[1]);else r(f.x,f.n.x,1,i);f=f.n}else{if(h){l=f.p.z;for(var s=l.length-1;s>=0;--s)i.point((d=l[s])[0],d[1])}else r(f.x,f.p.x,-1,i);f=f.p}f=f.o,l=f.z,h=!h}while(!f.v);i.lineEnd()}}}function Pe(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}function Ve(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function Fe(t,e,n,r){return function(i,o){function a(e,n){var r=i(e,n);t(e=r[0],n=r[1])&&o.point(e,n)}function s(t,e){var n=i(t,e);v.point(n[0],n[1])}function u(){y.point=s,v.lineStart()}function c(){y.point=a,v.lineEnd()}function l(t,e){g.push([t,e]);var n=i(t,e);_.point(n[0],n[1])}function d(){_.lineStart(),g=[]}function p(){l(g[0][0],g[0][1]),_.lineEnd();var t,e=_.clean(),n=x.buffer(),r=n.length;if(g.pop(),h.push(g),g=null,r)if(1&e){t=n[0];var i,r=t.length-1,a=-1;if(r>0){for(b||(o.polygonStart(),b=!0),o.lineStart();++a<r;)o.point((i=t[a])[0],i[1]);o.lineEnd()}}else r>1&&2&e&&n.push(n.pop().concat(n.shift())),f.push(n.filter(Be))}var f,h,g,v=e(o),m=i.invert(r[0],r[1]),y={point:a,lineStart:u,lineEnd:c,polygonStart:function(){y.point=l,y.lineStart=d,y.lineEnd=p,f=[],h=[]},polygonEnd:function(){y.point=a,y.lineStart=u,y.lineEnd=c,f=sa.merge(f);var t=qe(m,h);f.length?(b||(o.polygonStart(),b=!0),Le(f,je,t,n,o)):t&&(b||(o.polygonStart(),b=!0),o.lineStart(),n(null,null,1,o),o.lineEnd()),b&&(o.polygonEnd(),b=!1),f=h=null},sphere:function(){o.polygonStart(),o.lineStart(),n(null,null,1,o),o.lineEnd(),o.polygonEnd()}},x=Ue(),_=e(x),b=!1;return y}}function Be(t){return t.length>1}function Ue(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,n){t.push([e,n])},lineEnd:w,buffer:function(){var n=e;return e=[],t=null,n},rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))}}}function je(t,e){return((t=t.x)[0]<0?t[1]-Ya-Ba:Ya-t[1])-((e=e.x)[0]<0?e[1]-Ya-Ba:Ya-e[1])}function Xe(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,a){var s=o>0?ja:-ja,u=ba(o-n);ba(u-ja)<Ba?(t.point(n,r=(r+a)/2>0?Ya:-Ya),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),t.point(o,r),e=0):i!==s&&u>=ja&&(ba(n-i)<Ba&&(n-=i*Ba),ba(o-s)<Ba&&(o-=s*Ba),r=ze(n,r,o,a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),e=0),t.point(n=o,r=a),i=s},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}function ze(t,e,n,r){var i,o,a=Math.sin(t-n);return ba(a)>Ba?Math.atan((Math.sin(e)*(o=Math.cos(r))*Math.sin(n)-Math.sin(r)*(i=Math.cos(e))*Math.sin(t))/(i*o*a)):(e+r)/2}function Ye(t,e,n,r){var i;if(null==t)i=n*Ya,r.point(-ja,i),r.point(0,i),r.point(ja,i),r.point(ja,0),r.point(ja,-i),r.point(0,-i),r.point(-ja,-i),r.point(-ja,0),r.point(-ja,i);else if(ba(t[0]-e[0])>Ba){var o=t[0]<e[0]?ja:-ja;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(e[0],e[1])}function qe(t,e){var n=t[0],r=t[1],i=[Math.sin(n),-Math.cos(n),0],o=0,a=0;Ms.reset();for(var s=0,u=e.length;u>s;++s){var c=e[s],l=c.length;if(l)for(var d=c[0],p=d[0],f=d[1]/2+ja/4,h=Math.sin(f),g=Math.cos(f),v=1;;){v===l&&(v=0),t=c[v];var m=t[0],y=t[1]/2+ja/4,x=Math.sin(y),_=Math.cos(y),b=m-p,E=b>=0?1:-1,w=E*b,N=w>ja,C=h*x;if(Ms.add(Math.atan2(C*E*Math.sin(w),g*_+C*Math.cos(w))),o+=N?b+E*Xa:b,N^p>=n^m>=n){var T=Ee(_e(d),_e(t));Ce(T);var D=Ee(i,T);Ce(D);var M=(N^b>=0?-1:1)*at(D[2]);(r>M||r===M&&(T[0]||T[1]))&&(a+=N^b>=0?1:-1)}if(!v++)break;p=m,h=x,g=_,d=t}}return(-Ba>o||Ba>o&&0>Ms)^1&a}function We(t){function e(t,e){return Math.cos(t)*Math.cos(e)>o}function n(t){var n,o,u,c,l;return{lineStart:function(){c=u=!1,l=1},point:function(d,p){var f,h=[d,p],g=e(d,p),v=a?g?0:i(d,p):g?i(d+(0>d?ja:-ja),p):0;if(!n&&(c=u=g)&&t.lineStart(),g!==u&&(f=r(n,h),(De(n,f)||De(h,f))&&(h[0]+=Ba,h[1]+=Ba,g=e(h[0],h[1]))),g!==u)l=0,g?(t.lineStart(),f=r(h,n),t.point(f[0],f[1])):(f=r(n,h),t.point(f[0],f[1]),t.lineEnd()),n=f;else if(s&&n&&a^g){var m;v&o||!(m=r(h,n,!0))||(l=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])))}!g||n&&De(n,h)||t.point(h[0],h[1]),n=h,u=g,o=v},lineEnd:function(){u&&t.lineEnd(),n=null},clean:function(){return l|(c&&u)<<1}}}function r(t,e,n){var r=_e(t),i=_e(e),a=[1,0,0],s=Ee(r,i),u=be(s,s),c=s[0],l=u-c*c;if(!l)return!n&&t;var d=o*u/l,p=-o*c/l,f=Ee(a,s),h=Ne(a,d),g=Ne(s,p);we(h,g);var v=f,m=be(h,v),y=be(v,v),x=m*m-y*(be(h,h)-1);if(!(0>x)){var _=Math.sqrt(x),b=Ne(v,(-m-_)/y);if(we(b,h),b=Te(b),!n)return b;var E,w=t[0],N=e[0],C=t[1],T=e[1];w>N&&(E=w,w=N,N=E);var D=N-w,M=ba(D-ja)<Ba,A=M||Ba>D;if(!M&&C>T&&(E=C,C=T,T=E),A?M?C+T>0^b[1]<(ba(b[0]-w)<Ba?C:T):C<=b[1]&&b[1]<=T:D>ja^(w<=b[0]&&b[0]<=N)){var k=Ne(v,(-m+_)/y);return we(k,h),[b,Te(k)]}}}function i(e,n){var r=a?t:ja-t,i=0;return-r>e?i|=1:e>r&&(i|=2),-r>n?i|=4:n>r&&(i|=8),i}var o=Math.cos(t),a=o>0,s=ba(o)>Ba,u=_n(t,6*qa);return Fe(e,n,u,a?[0,-t]:[-ja,t-ja])}function He(t,e,n,r){return function(i){var o,a=i.a,s=i.b,u=a.x,c=a.y,l=s.x,d=s.y,p=0,f=1,h=l-u,g=d-c;if(o=t-u,h||!(o>0)){if(o/=h,0>h){if(p>o)return;f>o&&(f=o)}else if(h>0){if(o>f)return;o>p&&(p=o)}if(o=n-u,h||!(0>o)){if(o/=h,0>h){if(o>f)return;o>p&&(p=o)}else if(h>0){if(p>o)return;f>o&&(f=o)}if(o=e-c,g||!(o>0)){if(o/=g,0>g){if(p>o)return;f>o&&(f=o)}else if(g>0){if(o>f)return;o>p&&(p=o)}if(o=r-c,g||!(0>o)){if(o/=g,0>g){if(o>f)return;o>p&&(p=o)}else if(g>0){if(p>o)return;f>o&&(f=o)}return p>0&&(i.a={x:u+p*h,y:c+p*g}),1>f&&(i.b={x:u+f*h,y:c+f*g}),i}}}}}}function Ke(t,e,n,r){function i(r,i){return ba(r[0]-t)<Ba?i>0?0:3:ba(r[0]-n)<Ba?i>0?2:1:ba(r[1]-e)<Ba?i>0?1:0:i>0?3:2}function o(t,e){return a(t.x,e.x)}function a(t,e){var n=i(t,1),r=i(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(s){function u(t){for(var e=0,n=v.length,r=t[1],i=0;n>i;++i)for(var o,a=1,s=v[i],u=s.length,c=s[0];u>a;++a)o=s[a],c[1]<=r?o[1]>r&&it(c,o,t)>0&&++e:o[1]<=r&&it(c,o,t)<0&&--e,c=o;return 0!==e}function c(o,s,u,c){var l=0,d=0;if(null==o||(l=i(o,u))!==(d=i(s,u))||a(o,s)<0^u>0){do c.point(0===l||3===l?t:n,l>1?r:e);while((l=(l+u+4)%4)!==d)}else c.point(s[0],s[1])}function l(i,o){return i>=t&&n>=i&&o>=e&&r>=o}function d(t,e){l(t,e)&&s.point(t,e)}function p(){A.point=h,v&&v.push(m=[]),N=!0,w=!1,b=E=NaN}function f(){g&&(h(y,x),_&&w&&D.rejoin(),g.push(D.buffer())),A.point=d,w&&s.lineEnd()}function h(t,e){t=Math.max(-zs,Math.min(zs,t)),e=Math.max(-zs,Math.min(zs,e));var n=l(t,e);if(v&&m.push([t,e]),N)y=t,x=e,_=n,N=!1,n&&(s.lineStart(),s.point(t,e));else if(n&&w)s.point(t,e);else{var r={a:{x:b,y:E},b:{x:t,y:e}};M(r)?(w||(s.lineStart(),s.point(r.a.x,r.a.y)),s.point(r.b.x,r.b.y),n||s.lineEnd(),C=!1):n&&(s.lineStart(),s.point(t,e),C=!1)}b=t,E=e,w=n}var g,v,m,y,x,_,b,E,w,N,C,T=s,D=Ue(),M=He(t,e,n,r),A={point:d,lineStart:p,lineEnd:f,polygonStart:function(){s=D,g=[],v=[],C=!0},polygonEnd:function(){s=T,g=sa.merge(g);var e=u([t,r]),n=C&&e,i=g.length;(n||i)&&(s.polygonStart(),n&&(s.lineStart(),c(null,null,1,s),s.lineEnd()),i&&Le(g,o,e,c,s),s.polygonEnd()),g=v=m=null}};return A}}function Ge(t){var e=0,n=ja/3,r=pn(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*ja/180,n=t[1]*ja/180):[e/ja*180,n/ja*180]},i}function Je(t,e){function n(t,e){var n=Math.sqrt(o-2*i*Math.sin(e))/i;return[n*Math.sin(t*=i),a-n*Math.cos(t)]}var r=Math.sin(t),i=(r+Math.sin(e))/2,o=1+r*(2*i-r),a=Math.sqrt(o)/i;return n.invert=function(t,e){var n=a-e;return[Math.atan2(t,n)/i,at((o-(t*t+n*n)*i*i)/(2*i))]},n}function $e(){function t(t,e){qs+=i*t-r*e,r=t,i=e}var e,n,r,i;Js.point=function(o,a){Js.point=t,e=r=o,n=i=a},Js.lineEnd=function(){t(e,n)}}function Ze(t,e){Ws>t&&(Ws=t),t>Ks&&(Ks=t),Hs>e&&(Hs=e),e>Gs&&(Gs=e)}function Qe(){function t(t,e){a.push("M",t,",",e,o)}function e(t,e){a.push("M",t,",",e),s.point=n}function n(t,e){a.push("L",t,",",e)}function r(){s.point=t}function i(){a.push("Z")}var o=tn(4.5),a=[],s={point:t,lineStart:function(){s.point=e},lineEnd:r,polygonStart:function(){s.lineEnd=i},polygonEnd:function(){s.lineEnd=r,s.point=t},pointRadius:function(t){return o=tn(t),s},result:function(){if(a.length){var t=a.join("");return a=[],t}}};return s}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){Os+=t,Rs+=e,++Is}function nn(){function t(t,r){var i=t-e,o=r-n,a=Math.sqrt(i*i+o*o);Ls+=a*(e+t)/2,Ps+=a*(n+r)/2,Vs+=a,en(e=t,n=r)}var e,n;Zs.point=function(r,i){Zs.point=t,en(e=r,n=i)}}function rn(){Zs.point=en}function on(){function t(t,e){var n=t-r,o=e-i,a=Math.sqrt(n*n+o*o);Ls+=a*(r+t)/2,Ps+=a*(i+e)/2,Vs+=a,a=i*t-r*e,Fs+=a*(r+t),Bs+=a*(i+e),Us+=3*a,en(r=t,i=e)}var e,n,r,i;Zs.point=function(o,a){Zs.point=t,en(e=r=o,n=i=a)},Zs.lineEnd=function(){t(e,n)}}function an(t){function e(e,n){t.moveTo(e+a,n),t.arc(e,n,a,0,Xa)}function n(e,n){t.moveTo(e,n),s.point=r}function r(e,n){t.lineTo(e,n)}function i(){s.point=e}function o(){t.closePath()}var a=4.5,s={point:e,lineStart:function(){s.point=n},lineEnd:i,polygonStart:function(){s.lineEnd=o},polygonEnd:function(){s.lineEnd=i,s.point=e},pointRadius:function(t){return a=t,s},result:w};return s}function sn(t){function e(t){return(s?r:n)(t)}function n(e){return ln(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(){x=NaN,N.point=o,e.lineStart()}function o(n,r){var o=_e([n,r]),a=t(n,r);i(x,_,y,b,E,w,x=a[0],_=a[1],y=n,b=o[0],E=o[1],w=o[2],s,e),e.point(x,_)}function a(){N.point=n,e.lineEnd()}function u(){r(),N.point=c,N.lineEnd=l}function c(t,e){o(d=t,p=e),f=x,h=_,g=b,v=E,m=w,N.point=o}function l(){i(x,_,y,b,E,w,f,h,d,g,v,m,s,e),N.lineEnd=a,a()}var d,p,f,h,g,v,m,y,x,_,b,E,w,N={point:n,lineStart:r,lineEnd:a,polygonStart:function(){e.polygonStart(),N.lineStart=u},polygonEnd:function(){e.polygonEnd(),N.lineStart=r}};return N}function i(e,n,r,s,u,c,l,d,p,f,h,g,v,m){var y=l-e,x=d-n,_=y*y+x*x;if(_>4*o&&v--){var b=s+f,E=u+h,w=c+g,N=Math.sqrt(b*b+E*E+w*w),C=Math.asin(w/=N),T=ba(ba(w)-1)<Ba||ba(r-p)<Ba?(r+p)/2:Math.atan2(E,b),D=t(T,C),M=D[0],A=D[1],k=M-e,S=A-n,O=x*k-y*S;(O*O/_>o||ba((y*k+x*S)/_-.5)>.3||a>s*f+u*h+c*g)&&(i(e,n,r,s,u,c,M,A,T,b/=N,E/=N,w,v,m),m.point(M,A),i(M,A,T,b,E,w,l,d,p,f,h,g,v,m))}}var o=.5,a=Math.cos(30*qa),s=16;return e.precision=function(t){return arguments.length?(s=(o=t*t)>0&&16,e):Math.sqrt(o)},e}function un(t){var e=sn(function(e,n){return t([e*Wa,n*Wa])});return function(t){return fn(e(t))}}function cn(t){this.stream=t}function ln(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 dn(t){return pn(function(){return t})()}function pn(t){function e(t){return t=s(t[0]*qa,t[1]*qa),[t[0]*p+u,c-t[1]*p]}function n(t){return t=s.invert((t[0]-u)/p,(c-t[1])/p),t&&[t[0]*Wa,t[1]*Wa]}function r(){s=Re(a=vn(m,y,x),o);var t=o(g,v);return u=f-t[0]*p,c=h+t[1]*p,i()}function i(){return l&&(l.valid=!1,l=null),e}var o,a,s,u,c,l,d=sn(function(t,e){return t=o(t,e),[t[0]*p+u,c-t[1]*p]}),p=150,f=480,h=250,g=0,v=0,m=0,y=0,x=0,_=Xs,b=Ot,E=null,w=null;return e.stream=function(t){return l&&(l.valid=!1),l=fn(_(a,d(b(t)))),l.valid=!0,l},e.clipAngle=function(t){return arguments.length?(_=null==t?(E=t,Xs):We((E=+t)*qa),i()):E},e.clipExtent=function(t){return arguments.length?(w=t,b=t?Ke(t[0][0],t[0][1],t[1][0],t[1][1]):Ot,i()):w},e.scale=function(t){return arguments.length?(p=+t,r()):p},e.translate=function(t){return arguments.length?(f=+t[0],h=+t[1],r()):[f,h]},e.center=function(t){return arguments.length?(g=t[0]%360*qa,v=t[1]%360*qa,r()):[g*Wa,v*Wa]},e.rotate=function(t){return arguments.length?(m=t[0]%360*qa,y=t[1]%360*qa,x=t.length>2?t[2]%360*qa:0,r()):[m*Wa,y*Wa,x*Wa]},sa.rebind(e,d,"precision"),function(){return o=t.apply(this,arguments),e.invert=o.invert&&n,r()}}function fn(t){return ln(t,function(e,n){t.point(e*qa,n*qa)})}function hn(t,e){return[t,e]}function gn(t,e){return[t>ja?t-Xa:-ja>t?t+Xa:t,e]}function vn(t,e,n){return t?e||n?Re(yn(t),xn(e,n)):yn(t):e||n?xn(e,n):gn}function mn(t){return function(e,n){return e+=t,[e>ja?e-Xa:-ja>e?e+Xa:e,n]}}function yn(t){var e=mn(t);return e.invert=mn(-t),e}function xn(t,e){function n(t,e){var n=Math.cos(e),s=Math.cos(t)*n,u=Math.sin(t)*n,c=Math.sin(e),l=c*r+s*i;return[Math.atan2(u*o-l*a,s*r-c*i),at(l*o+u*a)]}var r=Math.cos(t),i=Math.sin(t),o=Math.cos(e),a=Math.sin(e);return n.invert=function(t,e){var n=Math.cos(e),s=Math.cos(t)*n,u=Math.sin(t)*n,c=Math.sin(e),l=c*o-u*a;return[Math.atan2(u*o+c*a,s*r+l*i),at(l*r-s*i)]},n}function _n(t,e){var n=Math.cos(t),r=Math.sin(t);return function(i,o,a,s){var u=a*e;null!=i?(i=bn(n,i),o=bn(n,o),(a>0?o>i:i>o)&&(i+=a*Xa)):(i=t+a*Xa,o=t-.5*u);for(var c,l=i;a>0?l>o:o>l;l-=u)s.point((c=Te([n,-r*Math.cos(l),-r*Math.sin(l)]))[0],c[1])}}function bn(t,e){var n=_e(e);n[0]-=t,Ce(n);var r=ot(-n[1]);return((-n[2]<0?-r:r)+2*Math.PI-Ba)%(2*Math.PI)}function En(t,e,n){var r=sa.range(t,e-Ba,n).concat(e);return function(t){return r.map(function(e){return[t,e]})}}function wn(t,e,n){var r=sa.range(t,e-Ba,n).concat(e);return function(t){return r.map(function(e){return[e,t]})}}function Nn(t){return t.source}function Cn(t){return t.target}function Tn(t,e,n,r){var i=Math.cos(e),o=Math.sin(e),a=Math.cos(r),s=Math.sin(r),u=i*Math.cos(t),c=i*Math.sin(t),l=a*Math.cos(n),d=a*Math.sin(n),p=2*Math.asin(Math.sqrt(lt(r-e)+i*a*lt(n-t))),f=1/Math.sin(p),h=p?function(t){var e=Math.sin(t*=p)*f,n=Math.sin(p-t)*f,r=n*u+e*l,i=n*c+e*d,a=n*o+e*s;return[Math.atan2(i,r)*Wa,Math.atan2(a,Math.sqrt(r*r+i*i))*Wa]}:function(){return[t*Wa,e*Wa]};return h.distance=p,h}function Dn(){function t(t,i){var o=Math.sin(i*=qa),a=Math.cos(i),s=ba((t*=qa)-e),u=Math.cos(s);Qs+=Math.atan2(Math.sqrt((s=a*Math.sin(s))*s+(s=r*o-n*a*u)*s),n*o+r*a*u),e=t,n=o,r=a}var e,n,r;tu.point=function(i,o){e=i*qa,n=Math.sin(o*=qa),r=Math.cos(o),tu.point=t},tu.lineEnd=function(){tu.point=tu.lineEnd=w}}function Mn(t,e){function n(e,n){var r=Math.cos(e),i=Math.cos(n),o=t(r*i);return[o*i*Math.sin(e),o*Math.sin(n)]}return n.invert=function(t,n){var r=Math.sqrt(t*t+n*n),i=e(r),o=Math.sin(i),a=Math.cos(i);return[Math.atan2(t*o,r*a),Math.asin(r&&n*o/r)]},n}function An(t,e){function n(t,e){a>0?-Ya+Ba>e&&(e=-Ya+Ba):e>Ya-Ba&&(e=Ya-Ba);var n=a/Math.pow(i(e),o);return[n*Math.sin(o*t),a-n*Math.cos(o*t)]}var r=Math.cos(t),i=function(t){return Math.tan(ja/4+t/2)},o=t===e?Math.sin(t):Math.log(r/Math.cos(e))/Math.log(i(e)/i(t)),a=r*Math.pow(i(t),o)/o;return o?(n.invert=function(t,e){var n=a-e,r=rt(o)*Math.sqrt(t*t+n*n);return[Math.atan2(t,n)/o,2*Math.atan(Math.pow(a/r,1/o))-Ya]},n):Sn}function kn(t,e){function n(t,e){var n=o-e;return[n*Math.sin(i*t),o-n*Math.cos(i*t)]}var r=Math.cos(t),i=t===e?Math.sin(t):(r-Math.cos(e))/(e-t),o=r/i+t;return ba(i)<Ba?hn:(n.invert=function(t,e){var n=o-e;return[Math.atan2(t,n)/i,o-rt(i)*Math.sqrt(t*t+n*n)]},n)}function Sn(t,e){return[t,Math.log(Math.tan(ja/4+e/2))]}function On(t){var e,n=dn(t),r=n.scale,i=n.translate,o=n.clipExtent;return n.scale=function(){var t=r.apply(n,arguments);return t===n?e?n.clipExtent(null):n:t},n.translate=function(){var t=i.apply(n,arguments);return t===n?e?n.clipExtent(null):n:t},n.clipExtent=function(t){var a=o.apply(n,arguments);if(a===n){if(e=null==t){var s=ja*r(),u=i();o([[u[0]-s,u[1]-s],[u[0]+s,u[1]+s]])}}else e&&(a=null);return a},n.clipExtent(null)}function Rn(t,e){return[Math.log(Math.tan(ja/4+e/2)),-t]}function In(t){return t[0]}function Ln(t){return t[1]}function Pn(t){for(var e=t.length,n=[0,1],r=2,i=2;e>i;i++){for(;r>1&&it(t[n[r-2]],t[n[r-1]],t[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function Vn(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 Bn(t,e,n,r){var i=t[0],o=n[0],a=e[0]-i,s=r[0]-o,u=t[1],c=n[1],l=e[1]-u,d=r[1]-c,p=(s*(u-c)-d*(i-o))/(d*a-s*l);return[i+p*a,u+p*l]}function Un(t){var e=t[0],n=t[t.length-1];return!(e[0]-n[0]||e[1]-n[1])}function jn(){ur(this),this.edge=this.site=this.circle=null}function Xn(t){var e=pu.pop()||new jn;return e.site=t,e}function zn(t){Qn(t),cu.remove(t),pu.push(t),ur(t)}function Yn(t){var e=t.circle,n=e.x,r=e.cy,i={x:n,y:r},o=t.P,a=t.N,s=[t];zn(t);for(var u=o;u.circle&&ba(n-u.circle.x)<Ba&&ba(r-u.circle.cy)<Ba;)o=u.P,s.unshift(u),zn(u),u=o;s.unshift(u),Qn(u);for(var c=a;c.circle&&ba(n-c.circle.x)<Ba&&ba(r-c.circle.cy)<Ba;)a=c.N,s.push(c),zn(c),c=a;s.push(c),Qn(c);var l,d=s.length;for(l=1;d>l;++l)c=s[l],u=s[l-1],or(c.edge,u.site,c.site,i);u=s[0],c=s[d-1],c.edge=rr(u.site,c.site,null,i),Zn(u),Zn(c)}function qn(t){for(var e,n,r,i,o=t.x,a=t.y,s=cu._;s;)if(r=Wn(s,a)-o,r>Ba)s=s.L;else{if(i=o-Hn(s,a),!(i>Ba)){r>-Ba?(e=s.P,n=s):i>-Ba?(e=s,n=s.N):e=n=s;break}if(!s.R){e=s;break}s=s.R}var u=Xn(t);if(cu.insert(e,u),e||n){if(e===n)return Qn(e),n=Xn(e.site),cu.insert(u,n),u.edge=n.edge=rr(e.site,u.site),Zn(e),void Zn(n);if(!n)return void(u.edge=rr(e.site,u.site));Qn(e),Qn(n);var c=e.site,l=c.x,d=c.y,p=t.x-l,f=t.y-d,h=n.site,g=h.x-l,v=h.y-d,m=2*(p*v-f*g),y=p*p+f*f,x=g*g+v*v,_={x:(v*y-f*x)/m+l,y:(p*x-g*y)/m+d};or(n.edge,c,h,_),u.edge=rr(c,t,null,_),n.edge=rr(t,h,null,_),Zn(e),Zn(n)}}function Wn(t,e){var n=t.site,r=n.x,i=n.y,o=i-e;if(!o)return r;var a=t.P;if(!a)return-(1/0);n=a.site;var s=n.x,u=n.y,c=u-e;if(!c)return s;var l=s-r,d=1/o-1/c,p=l/c;return d?(-p+Math.sqrt(p*p-2*d*(l*l/(-2*c)-u+c/2+i-o/2)))/d+r:(r+s)/2}function Hn(t,e){var n=t.N;if(n)return Wn(n,e);var r=t.site;return r.y===e?r.x:1/0}function Kn(t){this.site=t,this.edges=[]}function Gn(t){for(var e,n,r,i,o,a,s,u,c,l,d=t[0][0],p=t[1][0],f=t[0][1],h=t[1][1],g=uu,v=g.length;v--;)if(o=g[v],o&&o.prepare())for(s=o.edges,u=s.length,a=0;u>a;)l=s[a].end(),r=l.x,i=l.y,c=s[++a%u].start(),e=c.x,n=c.y,(ba(r-e)>Ba||ba(i-n)>Ba)&&(s.splice(a,0,new ar(ir(o.site,l,ba(r-d)<Ba&&h-i>Ba?{x:d,y:ba(e-d)<Ba?n:h}:ba(i-h)<Ba&&p-r>Ba?{x:ba(n-h)<Ba?e:p,y:h}:ba(r-p)<Ba&&i-f>Ba?{x:p,y:ba(e-p)<Ba?n:f}:ba(i-f)<Ba&&r-d>Ba?{x:ba(n-f)<Ba?e:d,y:f}:null),o.site,null)),++u)}function Jn(t,e){return e.angle-t.angle}function $n(){ur(this),this.x=this.y=this.arc=this.site=this.cy=null}function Zn(t){var e=t.P,n=t.N;if(e&&n){var r=e.site,i=t.site,o=n.site;if(r!==o){var a=i.x,s=i.y,u=r.x-a,c=r.y-s,l=o.x-a,d=o.y-s,p=2*(u*d-c*l);if(!(p>=-Ua)){var f=u*u+c*c,h=l*l+d*d,g=(d*f-c*h)/p,v=(u*h-l*f)/p,d=v+s,m=fu.pop()||new $n;m.arc=t,m.site=i,m.x=g+a,m.y=d+Math.sqrt(g*g+v*v),m.cy=d,t.circle=m;for(var y=null,x=du._;x;)if(m.y<x.y||m.y===x.y&&m.x<=x.x){if(!x.L){y=x.P;break}x=x.L}else{if(!x.R){y=x;break}x=x.R}du.insert(y,m),y||(lu=m)}}}}function Qn(t){var e=t.circle;e&&(e.P||(lu=e.N),du.remove(e),fu.push(e),ur(e),t.circle=null)}function tr(t){for(var e,n=su,r=He(t[0][0],t[0][1],t[1][0],t[1][1]),i=n.length;i--;)e=n[i],(!er(e,t)||!r(e)||ba(e.a.x-e.b.x)<Ba&&ba(e.a.y-e.b.y)<Ba)&&(e.a=e.b=null,n.splice(i,1))}function er(t,e){var n=t.b;if(n)return!0;var r,i,o=t.a,a=e[0][0],s=e[1][0],u=e[0][1],c=e[1][1],l=t.l,d=t.r,p=l.x,f=l.y,h=d.x,g=d.y,v=(p+h)/2,m=(f+g)/2;if(g===f){if(a>v||v>=s)return;if(p>h){if(o){if(o.y>=c)return}else o={x:v,y:u};n={x:v,y:c}}else{if(o){if(o.y<u)return}else o={x:v,y:c};n={x:v,y:u}}}else if(r=(p-h)/(g-f),i=m-r*v,-1>r||r>1)if(p>h){if(o){if(o.y>=c)return}else o={x:(u-i)/r,y:u};n={x:(c-i)/r,y:c}}else{if(o){if(o.y<u)return}else o={x:(c-i)/r,y:c};n={x:(u-i)/r,y:u}}else if(g>f){if(o){if(o.x>=s)return}else o={x:a,y:r*a+i};n={x:s,y:r*s+i}}else{if(o){if(o.x<a)return}else o={x:s,y:r*s+i};n={x:a,y:r*a+i}}return t.a=o,t.b=n,!0}function nr(t,e){this.l=t,this.r=e,this.a=this.b=null}function rr(t,e,n,r){var i=new nr(t,e);return su.push(i),n&&or(i,t,e,n),r&&or(i,e,t,r),uu[t.i].edges.push(new ar(i,t,e)),uu[e.i].edges.push(new ar(i,e,t)),i}function ir(t,e,n){var r=new nr(t,null);return r.a=e,r.b=n,su.push(r),r}function or(t,e,n,r){t.a||t.b?t.l===n?t.b=r:t.a=r:(t.a=r,t.l=e,t.r=n)}function ar(t,e,n){var r=t.a,i=t.b;this.edge=t,this.site=e,this.angle=n?Math.atan2(n.y-e.y,n.x-e.x):t.l===e?Math.atan2(i.x-r.x,r.y-i.y):Math.atan2(r.x-i.x,i.y-r.y)}function sr(){this._=null}function ur(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function cr(t,e){var n=e,r=e.R,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function lr(t,e){var n=e,r=e.L,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function dr(t){for(;t.L;)t=t.L;return t}function pr(t,e){var n,r,i,o=t.sort(fr).pop();for(su=[],uu=new Array(t.length),cu=new sr,du=new sr;;)if(i=lu,o&&(!i||o.y<i.y||o.y===i.y&&o.x<i.x))(o.x!==n||o.y!==r)&&(uu[o.i]=new Kn(o),qn(o),n=o.x,r=o.y),o=t.pop();else{if(!i)break;Yn(i.arc)}e&&(tr(e),Gn(e));var a={cells:uu,edges:su};return cu=du=su=uu=null,a}function fr(t,e){return e.y-t.y||e.x-t.x}function hr(t,e,n){return(t.x-n.x)*(e.y-t.y)-(t.x-e.x)*(n.y-t.y)}function gr(t){return t.x}function vr(t){return t.y}function mr(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function yr(t,e,n,r,i,o){if(!t(e,n,r,i,o)){var a=.5*(n+i),s=.5*(r+o),u=e.nodes;u[0]&&yr(t,u[0],n,r,a,s),u[1]&&yr(t,u[1],a,r,i,s),u[2]&&yr(t,u[2],n,s,a,o),u[3]&&yr(t,u[3],a,s,i,o)}}function xr(t,e,n,r,i,o,a){var s,u=1/0;return function c(t,l,d,p,f){if(!(l>o||d>a||r>p||i>f)){if(h=t.point){var h,g=e-h[0],v=n-h[1],m=g*g+v*v;if(u>m){var y=Math.sqrt(u=m);r=e-y,i=n-y,o=e+y,a=n+y,s=h}}for(var x=t.nodes,_=.5*(l+p),b=.5*(d+f),E=e>=_,w=n>=b,N=w<<1|E,C=N+4;C>N;++N)if(t=x[3&N])switch(3&N){case 0:c(t,l,d,_,b);break;case 1:c(t,_,d,p,b);break;case 2:c(t,l,b,_,f);break;case 3:c(t,_,b,p,f)}}}(t,r,i,o,a),s}function _r(t,e){t=sa.rgb(t),e=sa.rgb(e);var n=t.r,r=t.g,i=t.b,o=e.r-n,a=e.g-r,s=e.b-i;return function(t){return"#"+Ct(Math.round(n+o*t))+Ct(Math.round(r+a*t))+Ct(Math.round(i+s*t))}}function br(t,e){var n,r={},i={};for(n in t)n in e?r[n]=Nr(t[n],e[n]):i[n]=t[n];for(n in e)n in t||(i[n]=e[n]);return function(t){for(n in r)i[n]=r[n](t);return i}}function Er(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function wr(t,e){var n,r,i,o=gu.lastIndex=vu.lastIndex=0,a=-1,s=[],u=[];for(t+="",e+="";(n=gu.exec(t))&&(r=vu.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Er(n,r)})),o=vu.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?(e=u[0].x,function(t){return e(t)+""}):function(){return e}:(e=u.length,function(t){for(var n,r=0;e>r;++r)s[(n=u[r]).i]=n.x(t);return s.join("")})}function Nr(t,e){for(var n,r=sa.interpolators.length;--r>=0&&!(n=sa.interpolators[r](t,e)););return n}function Cr(t,e){var n,r=[],i=[],o=t.length,a=e.length,s=Math.min(t.length,e.length);for(n=0;s>n;++n)r.push(Nr(t[n],e[n]));for(;o>n;++n)i[n]=t[n];for(;a>n;++n)i[n]=e[n];return function(t){for(n=0;s>n;++n)i[n]=r[n](t);return i}}function Tr(t){return function(e){return 0>=e?0:e>=1?1:t(e)}}function Dr(t){return function(e){return 1-t(1-e)}}function Mr(t){return function(e){return.5*(.5>e?t(2*e):2-t(2-2*e))}}function Ar(t){return t*t}function kr(t){return t*t*t}function Sr(t){if(0>=t)return 0;if(t>=1)return 1;var e=t*t,n=e*t;return 4*(.5>t?n:3*(t-e)+n-.75)}function Or(t){return function(e){return Math.pow(e,t)}}function Rr(t){return 1-Math.cos(t*Ya)}function Ir(t){return Math.pow(2,10*(t-1))}function Lr(t){return 1-Math.sqrt(1-t*t)}function Pr(t,e){var n;return arguments.length<2&&(e=.45),arguments.length?n=e/Xa*Math.asin(1/t):(t=1,n=e/4),function(r){return 1+t*Math.pow(2,-10*r)*Math.sin((r-n)*Xa/e)}}function Vr(t){return t||(t=1.70158),function(e){return e*e*((t+1)*e-t)}}function Fr(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function Br(t,e){t=sa.hcl(t),e=sa.hcl(e);var n=t.h,r=t.c,i=t.l,o=e.h-n,a=e.c-r,s=e.l-i;return isNaN(a)&&(a=0,r=isNaN(r)?e.c:r),isNaN(o)?(o=0,n=isNaN(n)?e.h:n):o>180?o-=360:-180>o&&(o+=360),function(t){return gt(n+o*t,r+a*t,i+s*t)+""}}function Ur(t,e){t=sa.hsl(t),e=sa.hsl(e);var n=t.h,r=t.s,i=t.l,o=e.h-n,a=e.s-r,s=e.l-i;return isNaN(a)&&(a=0,r=isNaN(r)?e.s:r),isNaN(o)?(o=0,n=isNaN(n)?e.h:n):o>180?o-=360:-180>o&&(o+=360),function(t){return ft(n+o*t,r+a*t,i+s*t)+""}}function jr(t,e){t=sa.lab(t),e=sa.lab(e);var n=t.l,r=t.a,i=t.b,o=e.l-n,a=e.a-r,s=e.b-i;return function(t){return mt(n+o*t,r+a*t,i+s*t)+""}}function Xr(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=qr(e),i=Yr(e,n),o=qr(Wr(n,e,-i))||0;e[0]*n[1]<n[0]*e[1]&&(e[0]*=-1,e[1]*=-1,r*=-1,i*=-1),this.rotate=(r?Math.atan2(e[1],e[0]):Math.atan2(-n[0],n[1]))*Wa,this.translate=[t.e,t.f],this.scale=[r,o],this.skew=o?Math.atan2(i,o)*Wa:0}function Yr(t,e){return t[0]*e[0]+t[1]*e[1]}function qr(t){var e=Math.sqrt(Yr(t,t));return e&&(t[0]/=e,t[1]/=e),e}function Wr(t,e,n){return t[0]+=n*e[0],t[1]+=n*e[1],t}function Hr(t,e){var n,r=[],i=[],o=sa.transform(t),a=sa.transform(e),s=o.translate,u=a.translate,c=o.rotate,l=a.rotate,d=o.skew,p=a.skew,f=o.scale,h=a.scale;return s[0]!=u[0]||s[1]!=u[1]?(r.push("translate(",null,",",null,")"),i.push({i:1,x:Er(s[0],u[0])},{i:3,x:Er(s[1],u[1])})):u[0]||u[1]?r.push("translate("+u+")"):r.push(""),c!=l?(c-l>180?l+=360:l-c>180&&(c+=360),i.push({i:r.push(r.pop()+"rotate(",null,")")-2,x:Er(c,l)})):l&&r.push(r.pop()+"rotate("+l+")"),d!=p?i.push({i:r.push(r.pop()+"skewX(",null,")")-2,x:Er(d,p)}):p&&r.push(r.pop()+"skewX("+p+")"),f[0]!=h[0]||f[1]!=h[1]?(n=r.push(r.pop()+"scale(",null,",",null,")"),i.push({i:n-4,x:Er(f[0],h[0])},{i:n-2,x:Er(f[1],h[1])})):(1!=h[0]||1!=h[1])&&r.push(r.pop()+"scale("+h+")"),n=i.length,function(t){for(var e,o=-1;++o<n;)r[(e=i[o]).i]=e.x(t);return r.join("")}}function Kr(t,e){return e=(e-=t=+t)||1/e,function(n){return(n-t)/e}}function Gr(t,e){return e=(e-=t=+t)||1/e,function(n){return Math.max(0,Math.min(1,(n-t)/e))}}function Jr(t){for(var e=t.source,n=t.target,r=Zr(e,n),i=[e];e!==r;)e=e.parent,i.push(e);for(var o=i.length;n!==r;)i.splice(o,0,n),n=n.parent;return i}function $r(t){for(var e=[],n=t.parent;null!=n;)e.push(t),t=n,n=n.parent;return e.push(t),e}function Zr(t,e){if(t===e)return t;for(var n=$r(t),r=$r(e),i=n.pop(),o=r.pop(),a=null;i===o;)a=i,i=n.pop(),o=r.pop();return a}function Qr(t){t.fixed|=2}function ti(t){t.fixed&=-7}function ei(t){t.fixed|=4,t.px=t.x,t.py=t.y}function ni(t){t.fixed&=-5}function ri(t,e,n){var r=0,i=0;if(t.charge=0,!t.leaf)for(var o,a=t.nodes,s=a.length,u=-1;++u<s;)o=a[u],null!=o&&(ri(o,e,n),t.charge+=o.charge,r+=o.charge*o.cx,i+=o.charge*o.cy);if(t.point){t.leaf||(t.point.x+=Math.random()-.5,t.point.y+=Math.random()-.5);var c=e*n[t.point.index];t.charge+=t.pointCharge=c,r+=c*t.point.x,i+=c*t.point.y}t.cx=r/t.charge,t.cy=i/t.charge}function ii(t,e){return sa.rebind(t,e,"sort","children","value"),t.nodes=t,t.links=li,t}function oi(t,e){for(var n=[t];null!=(t=n.pop());)if(e(t),(i=t.children)&&(r=i.length))for(var r,i;--r>=0;)n.push(i[r])}function ai(t,e){for(var n=[t],r=[];null!=(t=n.pop());)if(r.push(t),(o=t.children)&&(i=o.length))for(var i,o,a=-1;++a<i;)n.push(o[a]);for(;null!=(t=r.pop());)e(t)}function si(t){return t.children}function ui(t){return t.value}function ci(t,e){return e.value-t.value}function li(t){return sa.merge(t.map(function(t){return(t.children||[]).map(function(e){return{source:t,target:e}})}))}function di(t){return t.x}function pi(t){return t.y}function fi(t,e,n){t.y0=e,t.y=n}function hi(t){return sa.range(t.length)}function gi(t){for(var e=-1,n=t[0].length,r=[];++e<n;)r[e]=0;return r}function vi(t){for(var e,n=1,r=0,i=t[0][1],o=t.length;o>n;++n)(e=t[n][1])>i&&(r=n,i=e);return r}function mi(t){return t.reduce(yi,0)}function yi(t,e){return t+e[1]}function xi(t,e){return _i(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function _i(t,e){for(var n=-1,r=+t[0],i=(t[1]-r)/e,o=[];++n<=e;)o[n]=i*n+r;return o}function bi(t){return[sa.min(t),sa.max(t)]}function Ei(t,e){return t.value-e.value}function wi(t,e){var n=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=n,n._pack_prev=e}function Ni(t,e){t._pack_next=e,e._pack_prev=t}function Ci(t,e){var n=e.x-t.x,r=e.y-t.y,i=t.r+e.r;return.999*i*i>n*n+r*r}function Ti(t){function e(t){l=Math.min(t.x-t.r,l),d=Math.max(t.x+t.r,d),p=Math.min(t.y-t.r,p),f=Math.max(t.y+t.r,f)}if((n=t.children)&&(c=n.length)){var n,r,i,o,a,s,u,c,l=1/0,d=-(1/0),p=1/0,f=-(1/0);if(n.forEach(Di),r=n[0],r.x=-r.r,r.y=0,e(r),c>1&&(i=n[1],i.x=i.r,i.y=0,e(i),c>2))for(o=n[2],ki(r,i,o),e(o),wi(r,o),r._pack_prev=o,wi(o,i),i=r._pack_next,a=3;c>a;a++){ki(r,i,o=n[a]);var h=0,g=1,v=1;for(s=i._pack_next;s!==i;s=s._pack_next,g++)if(Ci(s,o)){h=1;break}if(1==h)for(u=r._pack_prev;u!==s._pack_prev&&!Ci(u,o);u=u._pack_prev,v++);h?(v>g||g==v&&i.r<r.r?Ni(r,i=s):Ni(r=u,i),a--):(wi(r,o),i=o,e(o))}var m=(l+d)/2,y=(p+f)/2,x=0;for(a=0;c>a;a++)o=n[a],o.x-=m,o.y-=y,x=Math.max(x,o.r+Math.sqrt(o.x*o.x+o.y*o.y));t.r=x,n.forEach(Mi)}}function Di(t){t._pack_next=t._pack_prev=t}function Mi(t){delete t._pack_next,delete t._pack_prev}function Ai(t,e,n,r){var i=t.children;if(t.x=e+=r*t.x,t.y=n+=r*t.y,t.r*=r,i)for(var o=-1,a=i.length;++o<a;)Ai(i[o],e,n,r)}function ki(t,e,n){var r=t.r+n.r,i=e.x-t.x,o=e.y-t.y;if(r&&(i||o)){var a=e.r+n.r,s=i*i+o*o;a*=a,r*=r;var u=.5+(r-a)/(2*s),c=Math.sqrt(Math.max(0,2*a*(r+s)-(r-=s)*r-a*a))/(2*s);n.x=t.x+u*i+c*o,n.y=t.y+u*o-c*i}else n.x=t.x+r,n.y=t.y}function Si(t,e){return t.parent==e.parent?1:2}function Oi(t){var e=t.children;return e.length?e[0]:t.t}function Ri(t){var e,n=t.children;return(e=n.length)?n[e-1]:t.t}function Ii(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function Li(t){for(var e,n=0,r=0,i=t.children,o=i.length;--o>=0;)e=i[o],e.z+=n,e.m+=n,n+=e.s+(r+=e.c)}function Pi(t,e,n){return t.a.parent===e.parent?t.a:n}function Vi(t){return 1+sa.max(t,function(t){return t.y})}function Fi(t){return t.reduce(function(t,e){return t+e.x},0)/t.length}function Bi(t){var e=t.children;return e&&e.length?Bi(e[0]):t}function Ui(t){var e,n=t.children;return n&&(e=n.length)?Ui(n[e-1]):t}function ji(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function Xi(t,e){var n=t.x+e[3],r=t.y+e[0],i=t.dx-e[1]-e[3],o=t.dy-e[0]-e[2];return 0>i&&(n+=i/2,i=0),0>o&&(r+=o/2,o=0),{x:n,y:r,dx:i,dy:o}}function zi(t){var e=t[0],n=t[t.length-1];return n>e?[e,n]:[n,e]}function Yi(t){return t.rangeExtent?t.rangeExtent():zi(t.range())}function qi(t,e,n,r){var i=n(t[0],t[1]),o=r(e[0],e[1]);return function(t){return o(i(t))}}function Wi(t,e){var n,r=0,i=t.length-1,o=t[r],a=t[i];return o>a&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t}function Hi(t){return t?{floor:function(e){return Math.floor(e/t)*t},ceil:function(e){return Math.ceil(e/t)*t}}:Du}function Ki(t,e,n,r){var i=[],o=[],a=0,s=Math.min(t.length,e.length)-1;for(t[s]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<=s;)i.push(n(t[a-1],t[a])),o.push(r(e[a-1],e[a]));return function(e){var n=sa.bisect(t,e,1,s)-1;return o[n](i[n](e))}}function Gi(t,e,n,r){function i(){var i=Math.min(t.length,e.length)>2?Ki:qi,u=r?Gr:Kr;return a=i(t,e,u,n),s=i(e,t,u,Nr),o}function o(t){return a(t)}var a,s;return o.invert=function(t){return s(t)},o.domain=function(e){return arguments.length?(t=e.map(Number),i()):t},o.range=function(t){return arguments.length?(e=t,i()):e},o.rangeRound=function(t){return o.range(t).interpolate(Xr)},o.clamp=function(t){return arguments.length?(r=t,i()):r},o.interpolate=function(t){return arguments.length?(n=t,i()):n},o.ticks=function(e){return Qi(t,e)},o.tickFormat=function(e,n){return to(t,e,n)},o.nice=function(e){return $i(t,e),i()},o.copy=function(){return Gi(t,e,n,r)},i()}function Ji(t,e){return sa.rebind(t,e,"range","rangeRound","interpolate","clamp")}function $i(t,e){return Wi(t,Hi(Zi(t,e)[2]))}function Zi(t,e){null==e&&(e=10);var n=zi(t),r=n[1]-n[0],i=Math.pow(10,Math.floor(Math.log(r/e)/Math.LN10)),o=e/r*i;return.15>=o?i*=10:.35>=o?i*=5:.75>=o&&(i*=2),n[0]=Math.ceil(n[0]/i)*i,n[1]=Math.floor(n[1]/i)*i+.5*i,n[2]=i,n}function Qi(t,e){return sa.range.apply(sa,Zi(t,e))}function to(t,e,n){var r=Zi(t,e);if(n){var i=gs.exec(n);if(i.shift(),"s"===i[8]){var o=sa.formatPrefix(Math.max(ba(r[0]),ba(r[1])));return i[7]||(i[7]="."+eo(o.scale(r[2]))),i[8]="f",n=sa.format(i.join("")),function(t){return n(o.scale(t))+o.symbol}}
  i[7]||(i[7]="."+no(i[8],r)),n=i.join("")}else n=",."+eo(r[2])+"f";return sa.format(n)}function eo(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}function no(t,e){var n=eo(e[2]);return t in Mu?Math.abs(n-eo(Math.max(ba(e[0]),ba(e[1]))))+ +("e"!==t):n-2*("%"===t)}function ro(t,e,n,r){function i(t){return(n?Math.log(0>t?0:t):-Math.log(t>0?0:-t))/Math.log(e)}function o(t){return n?Math.pow(e,t):-Math.pow(e,-t)}function a(e){return t(i(e))}return a.invert=function(e){return o(t.invert(e))},a.domain=function(e){return arguments.length?(n=e[0]>=0,t.domain((r=e.map(Number)).map(i)),a):r},a.base=function(n){return arguments.length?(e=+n,t.domain(r.map(i)),a):e},a.nice=function(){var e=Wi(r.map(i),n?Math:ku);return t.domain(e),r=e.map(o),a},a.ticks=function(){var t=zi(r),a=[],s=t[0],u=t[1],c=Math.floor(i(s)),l=Math.ceil(i(u)),d=e%1?2:e;if(isFinite(l-c)){if(n){for(;l>c;c++)for(var p=1;d>p;p++)a.push(o(c)*p);a.push(o(c))}else for(a.push(o(c));c++<l;)for(var p=d-1;p>0;p--)a.push(o(c)*p);for(c=0;a[c]<s;c++);for(l=a.length;a[l-1]>u;l--);a=a.slice(c,l)}return a},a.tickFormat=function(t,e){if(!arguments.length)return Au;arguments.length<2?e=Au:"function"!=typeof e&&(e=sa.format(e));var r,s=Math.max(.1,t/a.ticks().length),u=n?(r=1e-12,Math.ceil):(r=-1e-12,Math.floor);return function(t){return t/o(u(i(t)+r))<=s?e(t):""}},a.copy=function(){return ro(t.copy(),e,n,r)},Ji(a,t)}function io(t,e,n){function r(e){return t(i(e))}var i=oo(e),o=oo(1/e);return r.invert=function(e){return o(t.invert(e))},r.domain=function(e){return arguments.length?(t.domain((n=e.map(Number)).map(i)),r):n},r.ticks=function(t){return Qi(n,t)},r.tickFormat=function(t,e){return to(n,t,e)},r.nice=function(t){return r.domain($i(n,t))},r.exponent=function(a){return arguments.length?(i=oo(e=a),o=oo(1/e),t.domain(n.map(i)),r):e},r.copy=function(){return io(t.copy(),e,n)},Ji(r,t)}function oo(t){return function(e){return 0>e?-Math.pow(-e,t):Math.pow(e,t)}}function ao(t,e){function n(n){return o[((i.get(n)||("range"===e.t?i.set(n,t.push(n)):NaN))-1)%o.length]}function r(e,n){return sa.range(t.length).map(function(t){return e+n*t})}var i,o,a;return n.domain=function(r){if(!arguments.length)return t;t=[],i=new p;for(var o,a=-1,s=r.length;++a<s;)i.has(o=r[a])||i.set(o,t.push(o));return n[e.t].apply(n,e.a)},n.range=function(t){return arguments.length?(o=t,a=0,e={t:"range",a:arguments},n):o},n.rangePoints=function(i,s){arguments.length<2&&(s=0);var u=i[0],c=i[1],l=t.length<2?(u=(u+c)/2,0):(c-u)/(t.length-1+s);return o=r(u+l*s/2,l),a=0,e={t:"rangePoints",a:arguments},n},n.rangeRoundPoints=function(i,s){arguments.length<2&&(s=0);var u=i[0],c=i[1],l=t.length<2?(u=c=Math.round((u+c)/2),0):(c-u)/(t.length-1+s)|0;return o=r(u+Math.round(l*s/2+(c-u-(t.length-1+s)*l)/2),l),a=0,e={t:"rangeRoundPoints",a:arguments},n},n.rangeBands=function(i,s,u){arguments.length<2&&(s=0),arguments.length<3&&(u=s);var c=i[1]<i[0],l=i[c-0],d=i[1-c],p=(d-l)/(t.length-s+2*u);return o=r(l+p*u,p),c&&o.reverse(),a=p*(1-s),e={t:"rangeBands",a:arguments},n},n.rangeRoundBands=function(i,s,u){arguments.length<2&&(s=0),arguments.length<3&&(u=s);var c=i[1]<i[0],l=i[c-0],d=i[1-c],p=Math.floor((d-l)/(t.length-s+2*u));return o=r(l+Math.round((d-l-(t.length-s)*p)/2),p),c&&o.reverse(),a=Math.round(p*(1-s)),e={t:"rangeRoundBands",a:arguments},n},n.rangeBand=function(){return a},n.rangeExtent=function(){return zi(e.a[0])},n.copy=function(){return ao(t,e)},n.domain(t)}function so(t,e){function n(){var n=0,o=e.length;for(i=[];++n<o;)i[n-1]=sa.quantile(t,n/o);return r}function r(t){return isNaN(t=+t)?void 0:e[sa.bisect(i,t)]}var i;return r.domain=function(e){return arguments.length?(t=e.map(a).filter(s).sort(o),n()):t},r.range=function(t){return arguments.length?(e=t,n()):e},r.quantiles=function(){return i},r.invertExtent=function(n){return n=e.indexOf(n),0>n?[NaN,NaN]:[n>0?i[n-1]:t[0],n<i.length?i[n]:t[t.length-1]]},r.copy=function(){return so(t,e)},n()}function uo(t,e,n){function r(e){return n[Math.max(0,Math.min(a,Math.floor(o*(e-t))))]}function i(){return o=n.length/(e-t),a=n.length-1,r}var o,a;return r.domain=function(n){return arguments.length?(t=+n[0],e=+n[n.length-1],i()):[t,e]},r.range=function(t){return arguments.length?(n=t,i()):n},r.invertExtent=function(e){return e=n.indexOf(e),e=0>e?NaN:e/o+t,[e,e+1/o]},r.copy=function(){return uo(t,e,n)},i()}function co(t,e){function n(n){return n>=n?e[sa.bisect(t,n)]:void 0}return n.domain=function(e){return arguments.length?(t=e,n):t},n.range=function(t){return arguments.length?(e=t,n):e},n.invertExtent=function(n){return n=e.indexOf(n),[t[n-1],t[n]]},n.copy=function(){return co(t,e)},n}function lo(t){function e(t){return+t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=n.map(e),e):t},e.ticks=function(e){return Qi(t,e)},e.tickFormat=function(e,n){return to(t,e,n)},e.copy=function(){return lo(t)},e}function po(){return 0}function fo(t){return t.innerRadius}function ho(t){return t.outerRadius}function go(t){return t.startAngle}function vo(t){return t.endAngle}function mo(t){return t&&t.padAngle}function yo(t,e,n,r){return(t-n)*e-(e-r)*t>0?0:1}function xo(t,e,n,r,i){var o=t[0]-e[0],a=t[1]-e[1],s=(i?r:-r)/Math.sqrt(o*o+a*a),u=s*a,c=-s*o,l=t[0]+u,d=t[1]+c,p=e[0]+u,f=e[1]+c,h=(l+p)/2,g=(d+f)/2,v=p-l,m=f-d,y=v*v+m*m,x=n-r,_=l*f-p*d,b=(0>m?-1:1)*Math.sqrt(x*x*y-_*_),E=(_*m-v*b)/y,w=(-_*v-m*b)/y,N=(_*m+v*b)/y,C=(-_*v+m*b)/y,T=E-h,D=w-g,M=N-h,A=C-g;return T*T+D*D>M*M+A*A&&(E=N,w=C),[[E-u,w-c],[E*n/x,w*n/x]]}function _o(t){function e(e){function a(){c.push("M",o(t(l),s))}for(var u,c=[],l=[],d=-1,p=e.length,f=St(n),h=St(r);++d<p;)i.call(this,u=e[d],d)?l.push([+f.call(this,u,d),+h.call(this,u,d)]):l.length&&(a(),l=[]);return l.length&&a(),c.length?c.join(""):null}var n=In,r=Ln,i=Ie,o=bo,a=o.key,s=.7;return e.x=function(t){return arguments.length?(n=t,e):n},e.y=function(t){return arguments.length?(r=t,e):r},e.defined=function(t){return arguments.length?(i=t,e):i},e.interpolate=function(t){return arguments.length?(a="function"==typeof t?o=t:(o=Pu.get(t)||bo).key,e):a},e.tension=function(t){return arguments.length?(s=t,e):s},e}function bo(t){return t.join("L")}function Eo(t){return bo(t)+"Z"}function wo(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e<n;)i.push("H",(r[0]+(r=t[e])[0])/2,"V",r[1]);return n>1&&i.push("H",r[0]),i.join("")}function No(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e<n;)i.push("V",(r=t[e])[1],"H",r[0]);return i.join("")}function Co(t){for(var e=0,n=t.length,r=t[0],i=[r[0],",",r[1]];++e<n;)i.push("H",(r=t[e])[0],"V",r[1]);return i.join("")}function To(t,e){return t.length<4?bo(t):t[1]+Ao(t.slice(1,-1),ko(t,e))}function Do(t,e){return t.length<3?bo(t):t[0]+Ao((t.push(t[0]),t),ko([t[t.length-2]].concat(t,[t[1]]),e))}function Mo(t,e){return t.length<3?bo(t):t[0]+Ao(t,ko(t,e))}function Ao(t,e){if(e.length<1||t.length!=e.length&&t.length!=e.length+2)return bo(t);var n=t.length!=e.length,r="",i=t[0],o=t[1],a=e[0],s=a,u=1;if(n&&(r+="Q"+(o[0]-2*a[0]/3)+","+(o[1]-2*a[1]/3)+","+o[0]+","+o[1],i=t[1],u=2),e.length>1){s=e[1],o=t[u],u++,r+="C"+(i[0]+a[0])+","+(i[1]+a[1])+","+(o[0]-s[0])+","+(o[1]-s[1])+","+o[0]+","+o[1];for(var c=2;c<e.length;c++,u++)o=t[u],s=e[c],r+="S"+(o[0]-s[0])+","+(o[1]-s[1])+","+o[0]+","+o[1]}if(n){var l=t[u];r+="Q"+(o[0]+2*s[0]/3)+","+(o[1]+2*s[1]/3)+","+l[0]+","+l[1]}return r}function ko(t,e){for(var n,r=[],i=(1-e)/2,o=t[0],a=t[1],s=1,u=t.length;++s<u;)n=o,o=a,a=t[s],r.push([i*(a[0]-n[0]),i*(a[1]-n[1])]);return r}function So(t){if(t.length<3)return bo(t);var e=1,n=t.length,r=t[0],i=r[0],o=r[1],a=[i,i,i,(r=t[1])[0]],s=[o,o,o,r[1]],u=[i,",",o,"L",Lo(Bu,a),",",Lo(Bu,s)];for(t.push(t[n-1]);++e<=n;)r=t[e],a.shift(),a.push(r[0]),s.shift(),s.push(r[1]),Po(u,a,s);return t.pop(),u.push("L",r),u.join("")}function Oo(t){if(t.length<4)return bo(t);for(var e,n=[],r=-1,i=t.length,o=[0],a=[0];++r<3;)e=t[r],o.push(e[0]),a.push(e[1]);for(n.push(Lo(Bu,o)+","+Lo(Bu,a)),--r;++r<i;)e=t[r],o.shift(),o.push(e[0]),a.shift(),a.push(e[1]),Po(n,o,a);return n.join("")}function Ro(t){for(var e,n,r=-1,i=t.length,o=i+4,a=[],s=[];++r<4;)n=t[r%i],a.push(n[0]),s.push(n[1]);for(e=[Lo(Bu,a),",",Lo(Bu,s)],--r;++r<o;)n=t[r%i],a.shift(),a.push(n[0]),s.shift(),s.push(n[1]),Po(e,a,s);return e.join("")}function Io(t,e){var n=t.length-1;if(n)for(var r,i,o=t[0][0],a=t[0][1],s=t[n][0]-o,u=t[n][1]-a,c=-1;++c<=n;)r=t[c],i=c/n,r[0]=e*r[0]+(1-e)*(o+i*s),r[1]=e*r[1]+(1-e)*(a+i*u);return So(t)}function Lo(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function Po(t,e,n){t.push("C",Lo(Vu,e),",",Lo(Vu,n),",",Lo(Fu,e),",",Lo(Fu,n),",",Lo(Bu,e),",",Lo(Bu,n))}function Vo(t,e){return(e[1]-t[1])/(e[0]-t[0])}function Fo(t){for(var e=0,n=t.length-1,r=[],i=t[0],o=t[1],a=r[0]=Vo(i,o);++e<n;)r[e]=(a+(a=Vo(i=o,o=t[e+1])))/2;return r[e]=a,r}function Bo(t){for(var e,n,r,i,o=[],a=Fo(t),s=-1,u=t.length-1;++s<u;)e=Vo(t[s],t[s+1]),ba(e)<Ba?a[s]=a[s+1]=0:(n=a[s]/e,r=a[s+1]/e,i=n*n+r*r,i>9&&(i=3*e/Math.sqrt(i),a[s]=i*n,a[s+1]=i*r));for(s=-1;++s<=u;)i=(t[Math.min(u,s+1)][0]-t[Math.max(0,s-1)][0])/(6*(1+a[s]*a[s])),o.push([i||0,a[s]*i||0]);return o}function Uo(t){return t.length<3?bo(t):t[0]+Ao(t,Bo(t))}function jo(t){for(var e,n,r,i=-1,o=t.length;++i<o;)e=t[i],n=e[0],r=e[1]-Ya,e[0]=n*Math.cos(r),e[1]=n*Math.sin(r);return t}function Xo(t){function e(e){function u(){g.push("M",s(t(m),d),l,c(t(v.reverse()),d),"Z")}for(var p,f,h,g=[],v=[],m=[],y=-1,x=e.length,_=St(n),b=St(i),E=n===r?function(){return f}:St(r),w=i===o?function(){return h}:St(o);++y<x;)a.call(this,p=e[y],y)?(v.push([f=+_.call(this,p,y),h=+b.call(this,p,y)]),m.push([+E.call(this,p,y),+w.call(this,p,y)])):v.length&&(u(),v=[],m=[]);return v.length&&u(),g.length?g.join(""):null}var n=In,r=In,i=0,o=Ln,a=Ie,s=bo,u=s.key,c=s,l="L",d=.7;return e.x=function(t){return arguments.length?(n=r=t,e):r},e.x0=function(t){return arguments.length?(n=t,e):n},e.x1=function(t){return arguments.length?(r=t,e):r},e.y=function(t){return arguments.length?(i=o=t,e):o},e.y0=function(t){return arguments.length?(i=t,e):i},e.y1=function(t){return arguments.length?(o=t,e):o},e.defined=function(t){return arguments.length?(a=t,e):a},e.interpolate=function(t){return arguments.length?(u="function"==typeof t?s=t:(s=Pu.get(t)||bo).key,c=s.reverse||s,l=s.closed?"M":"L",e):u},e.tension=function(t){return arguments.length?(d=t,e):d},e}function zo(t){return t.radius}function Yo(t){return[t.x,t.y]}function qo(t){return function(){var e=t.apply(this,arguments),n=e[0],r=e[1]-Ya;return[n*Math.cos(r),n*Math.sin(r)]}}function Wo(){return 64}function Ho(){return"circle"}function Ko(t){var e=Math.sqrt(t/ja);return"M0,"+e+"A"+e+","+e+" 0 1,1 0,"+-e+"A"+e+","+e+" 0 1,1 0,"+e+"Z"}function Go(t,e,n){return Ta(t,qu),t.namespace=e,t.id=n,t}function Jo(t,e,n,r){var i=t.id,o=t.namespace;return q(t,"function"==typeof n?function(t,a,s){t[o][i].tween.set(e,r(n.call(t,t.__data__,a,s)))}:(n=r(n),function(t){t[o][i].tween.set(e,n)}))}function $o(t){return null==t&&(t=""),function(){this.textContent=t}}function Zo(t){return null==t?"__transition__":"__transition_"+t+"__"}function Qo(t,e,n,r,i){var o=t[n]||(t[n]={active:0,count:0}),a=o[r];if(!a){var s=i.time;a=o[r]={tween:new p,time:s,delay:i.delay,duration:i.duration,ease:i.ease},i=null,++o.count,sa.timer(function(i){function u(n){return o.active>r?l(!1):(o.active=r,a.event&&a.event.start.call(t,f,e),a.tween.forEach(function(n,r){(r=r.call(t,f,e))&&v.push(r)}),p=a.ease,d=a.duration,void sa.timer(function(){return g.c=c(n||1)?Ie:c,1},0,s))}function c(e){if(o.active!==r)return l(!1);for(var n=e/d,i=p(n),a=v.length;a>0;)v[--a].call(t,i);return n>=1?l(!0):void 0}function l(i){return a.event&&a.event[i?"end":"interrupt"].call(t,f,e),--o.count?delete o[r]:delete t[n],1}var d,p,f=t.__data__,h=a.delay,g=ps,v=[];return g.t=h+s,i>=h?u(i-h):void(g.c=u)},0,s)}}function ta(t,e,n){t.attr("transform",function(t){var r=e(t);return"translate("+(isFinite(r)?r:n(t))+",0)"})}function ea(t,e,n){t.attr("transform",function(t){var r=e(t);return"translate(0,"+(isFinite(r)?r:n(t))+")"})}function na(t){return t.toISOString()}function ra(t,e,n){function r(e){return t(e)}function i(t,n){var r=t[1]-t[0],i=r/n,o=sa.bisect(tc,i);return o==tc.length?[e.year,Zi(t.map(function(t){return t/31536e6}),n)[2]]:o?e[i/tc[o-1]<tc[o]/i?o-1:o]:[rc,Zi(t,n)[2]]}return r.invert=function(e){return ia(t.invert(e))},r.domain=function(e){return arguments.length?(t.domain(e),r):t.domain().map(ia)},r.nice=function(t,e){function n(n){return!isNaN(n)&&!t.range(n,ia(+n+1),e).length}var o=r.domain(),a=zi(o),s=null==t?i(a,10):"number"==typeof t&&i(a,t);return s&&(t=s[0],e=s[1]),r.domain(Wi(o,e>1?{floor:function(e){for(;n(e=t.floor(e));)e=ia(e-1);return e},ceil:function(e){for(;n(e=t.ceil(e));)e=ia(+e+1);return e}}:t))},r.ticks=function(t,e){var n=zi(r.domain()),o=null==t?i(n,10):"number"==typeof t?i(n,t):!t.range&&[{range:t},e];return o&&(t=o[0],e=o[1]),t.range(n[0],ia(+n[1]+1),1>e?1:e)},r.tickFormat=function(){return n},r.copy=function(){return ra(t.copy(),e,n)},Ji(r,t)}function ia(t){return new Date(t)}function oa(t){return JSON.parse(t.responseText)}function aa(t){var e=la.createRange();return e.selectNode(la.body),e.createContextualFragment(t.responseText)}var sa={version:"3.5.0"};Date.now||(Date.now=function(){return+new Date});var ua=[].slice,ca=function(t){return ua.call(t)},la=document,da=la.documentElement,pa=window;try{ca(da.childNodes)[0].nodeType}catch(fa){ca=function(t){for(var e=t.length,n=new Array(e);e--;)n[e]=t[e];return n}}try{la.createElement("div").style.setProperty("opacity",0,"")}catch(ha){var ga=pa.Element.prototype,va=ga.setAttribute,ma=ga.setAttributeNS,ya=pa.CSSStyleDeclaration.prototype,xa=ya.setProperty;ga.setAttribute=function(t,e){va.call(this,t,e+"")},ga.setAttributeNS=function(t,e,n){ma.call(this,t,e,n+"")},ya.setProperty=function(t,e,n){xa.call(this,t,e+"",n)}}sa.ascending=o,sa.descending=function(t,e){return t>e?-1:e>t?1:e>=t?0:NaN},sa.min=function(t,e){var n,r,i=-1,o=t.length;if(1===arguments.length){for(;++i<o;)if(null!=(r=t[i])&&r>=r){n=r;break}for(;++i<o;)null!=(r=t[i])&&n>r&&(n=r)}else{for(;++i<o;)if(null!=(r=e.call(t,t[i],i))&&r>=r){n=r;break}for(;++i<o;)null!=(r=e.call(t,t[i],i))&&n>r&&(n=r)}return n},sa.max=function(t,e){var n,r,i=-1,o=t.length;if(1===arguments.length){for(;++i<o;)if(null!=(r=t[i])&&r>=r){n=r;break}for(;++i<o;)null!=(r=t[i])&&r>n&&(n=r)}else{for(;++i<o;)if(null!=(r=e.call(t,t[i],i))&&r>=r){n=r;break}for(;++i<o;)null!=(r=e.call(t,t[i],i))&&r>n&&(n=r)}return n},sa.extent=function(t,e){var n,r,i,o=-1,a=t.length;if(1===arguments.length){for(;++o<a;)if(null!=(r=t[o])&&r>=r){n=i=r;break}for(;++o<a;)null!=(r=t[o])&&(n>r&&(n=r),r>i&&(i=r))}else{for(;++o<a;)if(null!=(r=e.call(t,t[o],o))&&r>=r){n=i=r;break}for(;++o<a;)null!=(r=e.call(t,t[o],o))&&(n>r&&(n=r),r>i&&(i=r))}return[n,i]},sa.sum=function(t,e){var n,r=0,i=t.length,o=-1;if(1===arguments.length)for(;++o<i;)s(n=+t[o])&&(r+=n);else for(;++o<i;)s(n=+e.call(t,t[o],o))&&(r+=n);return r},sa.mean=function(t,e){var n,r=0,i=t.length,o=-1,u=i;if(1===arguments.length)for(;++o<i;)s(n=a(t[o]))?r+=n:--u;else for(;++o<i;)s(n=a(e.call(t,t[o],o)))?r+=n:--u;return u?r/u:void 0},sa.quantile=function(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i},sa.median=function(t,e){var n,r=[],i=t.length,u=-1;if(1===arguments.length)for(;++u<i;)s(n=a(t[u]))&&r.push(n);else for(;++u<i;)s(n=a(e.call(t,t[u],u)))&&r.push(n);return r.length?sa.quantile(r.sort(o),.5):void 0};var _a=u(o);sa.bisectLeft=_a.left,sa.bisect=sa.bisectRight=_a.right,sa.bisector=function(t){return u(1===t.length?function(e,n){return o(t(e),n)}:t)},sa.shuffle=function(t,e,n){(o=arguments.length)<3&&(n=t.length,2>o&&(e=0));for(var r,i,o=n-e;o;)i=Math.random()*o--|0,r=t[o+e],t[o+e]=t[i+e],t[i+e]=r;return t},sa.permute=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},sa.pairs=function(t){for(var e,n=0,r=t.length-1,i=t[0],o=new Array(0>r?0:r);r>n;)o[n]=[e=i,i=t[++n]];return o},sa.zip=function(){if(!(r=arguments.length))return[];for(var t=-1,e=sa.min(arguments,c),n=new Array(e);++t<e;)for(var r,i=-1,o=n[t]=new Array(r);++i<r;)o[i]=arguments[i][t];return n},sa.transpose=function(t){return sa.zip.apply(sa,t)},sa.keys=function(t){var e=[];for(var n in t)e.push(n);return e},sa.values=function(t){var e=[];for(var n in t)e.push(t[n]);return e},sa.entries=function(t){var e=[];for(var n in t)e.push({key:n,value:t[n]});return e},sa.merge=function(t){for(var e,n,r,i=t.length,o=-1,a=0;++o<i;)a+=t[o].length;for(n=new Array(a);--i>=0;)for(r=t[i],e=r.length;--e>=0;)n[--a]=r[e];return n};var ba=Math.abs;sa.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,i=[],o=l(ba(n)),a=-1;if(t*=o,e*=o,n*=o,0>n)for(;(r=t+n*++a)>e;)i.push(r/o);else for(;(r=t+n*++a)<e;)i.push(r/o);return i},sa.map=function(t,e){var n=new p;if(t instanceof p)t.forEach(function(t,e){n.set(t,e)});else if(Array.isArray(t)){var r,i=-1,o=t.length;if(1===arguments.length)for(;++i<o;)n.set(i,t[i]);else for(;++i<o;)n.set(e.call(t,r=t[i],i),r)}else for(var a in t)n.set(a,t[a]);return n};var Ea="__proto__",wa="\x00";d(p,{has:g,get:function(t){return this._[f(t)]},set:function(t,e){return this._[f(t)]=e},remove:v,keys:m,values:function(){var t=[];for(var e in this._)t.push(this._[e]);return t},entries:function(){var t=[];for(var e in this._)t.push({key:h(e),value:this._[e]});return t},size:y,empty:x,forEach:function(t){for(var e in this._)t.call(this,h(e),this._[e])}}),sa.nest=function(){function t(e,a,s){if(s>=o.length)return r?r.call(i,a):n?a.sort(n):a;for(var u,c,l,d,f=-1,h=a.length,g=o[s++],v=new p;++f<h;)(d=v.get(u=g(c=a[f])))?d.push(c):v.set(u,[c]);return e?(c=e(),l=function(n,r){c.set(n,t(e,r,s))}):(c={},l=function(n,r){c[n]=t(e,r,s)}),v.forEach(l),c}function e(t,n){if(n>=o.length)return t;var r=[],i=a[n++];return t.forEach(function(t,i){r.push({key:t,values:e(i,n)})}),i?r.sort(function(t,e){return i(t.key,e.key)}):r}var n,r,i={},o=[],a=[];return i.map=function(e,n){return t(n,e,0)},i.entries=function(n){return e(t(sa.map,n,0),0)},i.key=function(t){return o.push(t),i},i.sortKeys=function(t){return a[o.length-1]=t,i},i.sortValues=function(t){return n=t,i},i.rollup=function(t){return r=t,i},i},sa.set=function(t){var e=new _;if(t)for(var n=0,r=t.length;r>n;++n)e.add(t[n]);return e},d(_,{has:g,add:function(t){return this._[f(t+="")]=!0,t},remove:v,values:m,size:y,empty:x,forEach:function(t){for(var e in this._)t.call(this,h(e))}}),sa.behavior={},sa.rebind=function(t,e){for(var n,r=1,i=arguments.length;++r<i;)t[n=arguments[r]]=b(t,e,e[n]);return t};var Na=["webkit","ms","moz","Moz","o","O"];sa.dispatch=function(){for(var t=new N,e=-1,n=arguments.length;++e<n;)t[arguments[e]]=C(t);return t},N.prototype.on=function(t,e){var n=t.indexOf("."),r="";if(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}},sa.event=null,sa.requote=function(t){return t.replace(Ca,"\\$&")};var Ca=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Ta={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)t[n]=e[n]},Da=function(t,e){return e.querySelector(t)},Ma=function(t,e){return e.querySelectorAll(t)},Aa=da.matches||da[E(da,"matchesSelector")],ka=function(t,e){return Aa.call(t,e)};"function"==typeof Sizzle&&(Da=function(t,e){return Sizzle(t,e)[0]||null},Ma=Sizzle,ka=Sizzle.matchesSelector),sa.selection=function(){return Ia};var Sa=sa.selection.prototype=[];Sa.select=function(t){var e,n,r,i,o=[];t=k(t);for(var a=-1,s=this.length;++a<s;){o.push(e=[]),e.parentNode=(r=this[a]).parentNode;for(var u=-1,c=r.length;++u<c;)(i=r[u])?(e.push(n=t.call(i,i.__data__,u,a)),n&&"__data__"in i&&(n.__data__=i.__data__)):e.push(null)}return A(o)},Sa.selectAll=function(t){var e,n,r=[];t=S(t);for(var i=-1,o=this.length;++i<o;)for(var a=this[i],s=-1,u=a.length;++s<u;)(n=a[s])&&(r.push(e=ca(t.call(n,n.__data__,s,i))),e.parentNode=n);return A(r)};var Oa={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};sa.ns={prefix:Oa,qualify:function(t){var e=t.indexOf(":"),n=t;return e>=0&&(n=t.slice(0,e),t=t.slice(e+1)),Oa.hasOwnProperty(n)?{space:Oa[n],local:t}:t}},Sa.attr=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node();return t=sa.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))},Sa.classed=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node(),r=(t=L(t)).length,i=-1;if(e=n.classList){for(;++i<r;)if(!e.contains(t[i]))return!1}else for(e=n.getAttribute("class");++i<r;)if(!I(t[i]).test(e))return!1;return!0}for(e in t)this.each(P(e,t[e]));return this}return this.each(P(t,e))},Sa.style=function(t,e,n){var r=arguments.length;if(3>r){if("string"!=typeof t){2>r&&(e="");for(n in t)this.each(F(n,t[n],e));return this}if(2>r)return pa.getComputedStyle(this.node(),null).getPropertyValue(t);n=""}return this.each(F(t,e,n))},Sa.property=function(t,e){if(arguments.length<2){if("string"==typeof t)return this.node()[t];for(e in t)this.each(B(e,t[e]));return this}return this.each(B(t,e))},Sa.text=function(t){return arguments.length?this.each("function"==typeof t?function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}:null==t?function(){this.textContent=""}:function(){this.textContent=t}):this.node().textContent},Sa.html=function(t){return arguments.length?this.each("function"==typeof t?function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}:null==t?function(){this.innerHTML=""}:function(){this.innerHTML=t}):this.node().innerHTML},Sa.append=function(t){return t=U(t),this.select(function(){return this.appendChild(t.apply(this,arguments))})},Sa.insert=function(t,e){return t=U(t),e=k(e),this.select(function(){return this.insertBefore(t.apply(this,arguments),e.apply(this,arguments)||null)})},Sa.remove=function(){return this.each(j)},Sa.data=function(t,e){function n(t,n){var r,i,o,a=t.length,l=n.length,d=Math.min(a,l),f=new Array(l),h=new Array(l),g=new Array(a);if(e){var v,m=new p,y=new Array(a);for(r=-1;++r<a;)m.has(v=e.call(i=t[r],i.__data__,r))?g[r]=i:m.set(v,i),y[r]=v;for(r=-1;++r<l;)(i=m.get(v=e.call(n,o=n[r],r)))?i!==!0&&(f[r]=i,i.__data__=o):h[r]=X(o),m.set(v,!0);for(r=-1;++r<a;)m.get(y[r])!==!0&&(g[r]=t[r])}else{for(r=-1;++r<d;)i=t[r],o=n[r],i?(i.__data__=o,f[r]=i):h[r]=X(o);for(;l>r;++r)h[r]=X(n[r]);for(;a>r;++r)g[r]=t[r]}h.update=f,h.parentNode=f.parentNode=g.parentNode=t.parentNode,s.push(h),u.push(f),c.push(g)}var r,i,o=-1,a=this.length;if(!arguments.length){for(t=new Array(a=(r=this[0]).length);++o<a;)(i=r[o])&&(t[o]=i.__data__);return t}var s=W([]),u=A([]),c=A([]);if("function"==typeof t)for(;++o<a;)n(r=this[o],t.call(r,r.parentNode.__data__,o));else for(;++o<a;)n(r=this[o],t);return u.enter=function(){return s},u.exit=function(){return c},u},Sa.datum=function(t){return arguments.length?this.property("__data__",t):this.property("__data__")},Sa.filter=function(t){var e,n,r,i=[];"function"!=typeof t&&(t=z(t));for(var o=0,a=this.length;a>o;o++){i.push(e=[]),e.parentNode=(n=this[o]).parentNode;for(var s=0,u=n.length;u>s;s++)(r=n[s])&&t.call(r,r.__data__,s,o)&&e.push(r)}return A(i)},Sa.order=function(){for(var t=-1,e=this.length;++t<e;)for(var n,r=this[t],i=r.length-1,o=r[i];--i>=0;)(n=r[i])&&(o&&o!==n.nextSibling&&o.parentNode.insertBefore(n,o),o=n);return this},Sa.sort=function(t){t=Y.apply(this,arguments);for(var e=-1,n=this.length;++e<n;)this[e].sort(t);return this.order()},Sa.each=function(t){return q(this,function(e,n,r){t.call(e,e.__data__,n,r)})},Sa.call=function(t){var e=ca(arguments);return t.apply(e[0]=this,e),this},Sa.empty=function(){return!this.node()},Sa.node=function(){for(var t=0,e=this.length;e>t;t++)for(var n=this[t],r=0,i=n.length;i>r;r++){var o=n[r];if(o)return o}return null},Sa.size=function(){var t=0;return q(this,function(){++t}),t};var Ra=[];sa.selection.enter=W,sa.selection.enter.prototype=Ra,Ra.append=Sa.append,Ra.empty=Sa.empty,Ra.node=Sa.node,Ra.call=Sa.call,Ra.size=Sa.size,Ra.select=function(t){for(var e,n,r,i,o,a=[],s=-1,u=this.length;++s<u;){r=(i=this[s]).update,a.push(e=[]),e.parentNode=i.parentNode;for(var c=-1,l=i.length;++c<l;)(o=i[c])?(e.push(r[c]=n=t.call(i.parentNode,o.__data__,c,s)),n.__data__=o.__data__):e.push(null)}return A(a)},Ra.insert=function(t,e){return arguments.length<2&&(e=H(this)),Sa.insert.call(this,t,e)},Sa.transition=function(t){for(var e,n,r=ju||++Wu,i=Zo(t),o=[],a=Xu||{time:Date.now(),ease:Sr,delay:0,duration:250},s=-1,u=this.length;++s<u;){o.push(e=[]);for(var c=this[s],l=-1,d=c.length;++l<d;)(n=c[l])&&Qo(n,l,i,r,a),e.push(n)}return Go(o,i,r)},Sa.interrupt=function(t){var e=Zo(t);return this.each(function(){var t=this[e];t&&++t.active})},sa.select=function(t){var e=["string"==typeof t?Da(t,la):t];return e.parentNode=da,A([e])},sa.selectAll=function(t){var e=ca("string"==typeof t?Ma(t,la):t);return e.parentNode=da,A([e])};var Ia=sa.select(da);Sa.on=function(t,e,n){var r=arguments.length;if(3>r){if("string"!=typeof t){2>r&&(e=!1);for(n in t)this.each(G(n,t[n],e));return this}if(2>r)return(r=this.node()["__on"+t])&&r._;n=!1}return this.each(G(t,e,n))};var La=sa.map({mouseenter:"mouseover",mouseleave:"mouseout"});La.forEach(function(t){"on"+t in la&&La.remove(t)});var Pa="onselectstart"in la?null:E(da.style,"userSelect"),Va=0;sa.mouse=function(t){return Q(t,D())};var Fa=/WebKit/.test(pa.navigator.userAgent)?-1:0;sa.touch=function(t,e,n){if(arguments.length<3&&(n=e,e=D().changedTouches),e)for(var r,i=0,o=e.length;o>i;++i)if((r=e[i]).identifier===n)return Q(t,r)},sa.behavior.drag=function(){function t(){this.on("mousedown.drag",i).on("touchstart.drag",o)}function e(t,e,i,o,a){return function(){function s(){var t,n,r=e(p,g);r&&(t=r[0]-x[0],n=r[1]-x[1],h|=t|n,x=r,f({type:"drag",x:r[0]+c[0],y:r[1]+c[1],dx:t,dy:n}))}function u(){e(p,g)&&(m.on(o+v,null).on(a+v,null),y(h&&sa.event.target===d),f({type:"dragend"}))}var c,l=this,d=sa.event.target,p=l.parentNode,f=n.of(l,arguments),h=0,g=t(),v=".drag"+(null==g?"":"-"+g),m=sa.select(i()).on(o+v,s).on(a+v,u),y=Z(),x=e(p,g);r?(c=r.apply(l,arguments),c=[c.x-x[0],c.y-x[1]]):c=[0,0],f({type:"dragstart"})}}var n=M(t,"drag","dragstart","dragend"),r=null,i=e(w,sa.mouse,nt,"mousemove","mouseup"),o=e(tt,sa.touch,et,"touchmove","touchend");return t.origin=function(e){return arguments.length?(r=e,t):r},sa.rebind(t,n,"on")},sa.touches=function(t,e){return arguments.length<2&&(e=D().touches),e?ca(e).map(function(e){var n=Q(t,e);return n.identifier=e.identifier,n}):[]};var Ba=1e-6,Ua=Ba*Ba,ja=Math.PI,Xa=2*ja,za=Xa-Ba,Ya=ja/2,qa=ja/180,Wa=180/ja,Ha=Math.SQRT2,Ka=2,Ga=4;sa.interpolateZoom=function(t,e){function n(t){var e=t*y;if(m){var n=ut(g),a=o/(Ka*p)*(n*ct(Ha*e+g)-st(g));return[r+a*c,i+a*l,o*n/ut(Ha*e+g)]}return[r+t*c,i+t*l,o*Math.exp(Ha*e)]}var r=t[0],i=t[1],o=t[2],a=e[0],s=e[1],u=e[2],c=a-r,l=s-i,d=c*c+l*l,p=Math.sqrt(d),f=(u*u-o*o+Ga*d)/(2*o*Ka*p),h=(u*u-o*o-Ga*d)/(2*u*Ka*p),g=Math.log(Math.sqrt(f*f+1)-f),v=Math.log(Math.sqrt(h*h+1)-h),m=v-g,y=(m||Math.log(u/o))/Ha;return n.duration=1e3*y,n},sa.behavior.zoom=function(){function t(t){t.on(k,l).on(Za+".zoom",p).on("dblclick.zoom",f).on(R,d)}function e(t){return[(t[0]-w.x)/w.k,(t[1]-w.y)/w.k]}function n(t){return[t[0]*w.k+w.x,t[1]*w.k+w.y]}function r(t){w.k=Math.max(C[0],Math.min(C[1],t))}function i(t,e){e=n(e),w.x+=t[0]-e[0],w.y+=t[1]-e[1]}function o(e,n,o,a){e.__chart__={x:w.x,y:w.y,k:w.k},r(Math.pow(2,a)),i(g=n,o),e=sa.select(e),D>0&&(e=e.transition().duration(D)),e.call(t.event)}function a(){_&&_.domain(x.range().map(function(t){return(t-w.x)/w.k}).map(x.invert)),E&&E.domain(b.range().map(function(t){return(t-w.y)/w.k}).map(b.invert))}function s(t){A++||t({type:"zoomstart"})}function u(t){a(),t({type:"zoom",scale:w.k,translate:[w.x,w.y]})}function c(t){--A||t({type:"zoomend"}),g=null}function l(){function t(){l=1,i(sa.mouse(r),p),u(a)}function n(){d.on(S,null).on(O,null),f(l&&sa.event.target===o),c(a)}var r=this,o=sa.event.target,a=I.of(r,arguments),l=0,d=sa.select(pa).on(S,t).on(O,n),p=e(sa.mouse(r)),f=Z();K(r),s(a)}function d(){function t(){var t=sa.touches(h);return f=w.k,t.forEach(function(t){t.identifier in v&&(v[t.identifier]=e(t))}),t}function n(){var e=sa.event.target;sa.select(e).on(_,a).on(b,p),E.push(e);for(var n=sa.event.changedTouches,r=0,i=n.length;i>r;++r)v[n[r].identifier]=null;var s=t(),u=Date.now();if(1===s.length){if(500>u-y){var c=s[0];o(h,c,v[c.identifier],Math.floor(Math.log(w.k)/Math.LN2)+1),T()}y=u}else if(s.length>1){var c=s[0],l=s[1],d=c[0]-l[0],f=c[1]-l[1];m=d*d+f*f}}function a(){var t,e,n,o,a=sa.touches(h);K(h);for(var s=0,c=a.length;c>s;++s,o=null)if(n=a[s],o=v[n.identifier]){if(e)break;t=n,e=o}if(o){var l=(l=n[0]-t[0])*l+(l=n[1]-t[1])*l,d=m&&Math.sqrt(l/m);t=[(t[0]+n[0])/2,(t[1]+n[1])/2],e=[(e[0]+o[0])/2,(e[1]+o[1])/2],r(d*f)}y=null,i(t,e),u(g)}function p(){if(sa.event.touches.length){for(var e=sa.event.changedTouches,n=0,r=e.length;r>n;++n)delete v[e[n].identifier];for(var i in v)return void t()}sa.selectAll(E).on(x,null),N.on(k,l).on(R,d),C(),c(g)}var f,h=this,g=I.of(h,arguments),v={},m=0,x=".zoom-"+sa.event.changedTouches[0].identifier,_="touchmove"+x,b="touchend"+x,E=[],N=sa.select(h),C=Z();n(),s(g),N.on(k,null).on(R,n)}function p(){var t=I.of(this,arguments);m?clearTimeout(m):(h=e(g=v||sa.mouse(this)),K(this),s(t)),m=setTimeout(function(){m=null,c(t)},50),T(),r(Math.pow(2,.002*Ja())*w.k),i(g,h),u(t)}function f(){var t=sa.mouse(this),n=Math.log(w.k)/Math.LN2;o(this,t,e(t),sa.event.shiftKey?Math.ceil(n)-1:Math.floor(n)+1)}var h,g,v,m,y,x,_,b,E,w={x:0,y:0,k:1},N=[960,500],C=$a,D=250,A=0,k="mousedown.zoom",S="mousemove.zoom",O="mouseup.zoom",R="touchstart.zoom",I=M(t,"zoomstart","zoom","zoomend");return t.event=function(t){t.each(function(){var t=I.of(this,arguments),e=w;ju?sa.select(this).transition().each("start.zoom",function(){w=this.__chart__||{x:0,y:0,k:1},s(t)}).tween("zoom:zoom",function(){var n=N[0],r=N[1],i=g?g[0]:n/2,o=g?g[1]:r/2,a=sa.interpolateZoom([(i-w.x)/w.k,(o-w.y)/w.k,n/w.k],[(i-e.x)/e.k,(o-e.y)/e.k,n/e.k]);return function(e){var r=a(e),s=n/r[2];this.__chart__=w={x:i-r[0]*s,y:o-r[1]*s,k:s},u(t)}}).each("interrupt.zoom",function(){c(t)}).each("end.zoom",function(){c(t)}):(this.__chart__=w,s(t),u(t),c(t))})},t.translate=function(e){return arguments.length?(w={x:+e[0],y:+e[1],k:w.k},a(),t):[w.x,w.y]},t.scale=function(e){return arguments.length?(w={x:w.x,y:w.y,k:+e},a(),t):w.k},t.scaleExtent=function(e){return arguments.length?(C=null==e?$a:[+e[0],+e[1]],t):C},t.center=function(e){return arguments.length?(v=e&&[+e[0],+e[1]],t):v},t.size=function(e){return arguments.length?(N=e&&[+e[0],+e[1]],t):N},t.duration=function(e){return arguments.length?(D=+e,t):D},t.x=function(e){return arguments.length?(_=e,x=e.copy(),w={x:0,y:0,k:1},t):_},t.y=function(e){return arguments.length?(E=e,b=e.copy(),w={x:0,y:0,k:1},t):E},sa.rebind(t,I,"on")};var Ja,$a=[0,1/0],Za="onwheel"in la?(Ja=function(){return-sa.event.deltaY*(sa.event.deltaMode?120:1)},"wheel"):"onmousewheel"in la?(Ja=function(){return sa.event.wheelDelta},"mousewheel"):(Ja=function(){return-sa.event.detail},"MozMousePixelScroll");sa.color=dt,dt.prototype.toString=function(){return this.rgb()+""},sa.hsl=pt;var Qa=pt.prototype=new dt;Qa.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new pt(this.h,this.s,this.l/t)},Qa.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new pt(this.h,this.s,t*this.l)},Qa.rgb=function(){return ft(this.h,this.s,this.l)},sa.hcl=ht;var ts=ht.prototype=new dt;ts.brighter=function(t){return new ht(this.h,this.c,Math.min(100,this.l+es*(arguments.length?t:1)))},ts.darker=function(t){return new ht(this.h,this.c,Math.max(0,this.l-es*(arguments.length?t:1)))},ts.rgb=function(){return gt(this.h,this.c,this.l).rgb()},sa.lab=vt;var es=18,ns=.95047,rs=1,is=1.08883,os=vt.prototype=new dt;
  os.brighter=function(t){return new vt(Math.min(100,this.l+es*(arguments.length?t:1)),this.a,this.b)},os.darker=function(t){return new vt(Math.max(0,this.l-es*(arguments.length?t:1)),this.a,this.b)},os.rgb=function(){return mt(this.l,this.a,this.b)},sa.rgb=Et;var as=Et.prototype=new dt;as.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,n=this.g,r=this.b,i=30;return e||n||r?(e&&i>e&&(e=i),n&&i>n&&(n=i),r&&i>r&&(r=i),new Et(Math.min(255,e/t),Math.min(255,n/t),Math.min(255,r/t))):new Et(i,i,i)},as.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new Et(t*this.r,t*this.g,t*this.b)},as.hsl=function(){return Dt(this.r,this.g,this.b)},as.toString=function(){return"#"+Ct(this.r)+Ct(this.g)+Ct(this.b)};var ss=sa.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});ss.forEach(function(t,e){ss.set(t,wt(e))}),sa.functor=St,sa.xhr=Rt(Ot),sa.dsv=function(t,e){function n(t,n,o){arguments.length<3&&(o=n,n=null);var a=It(t,e,null==n?r:i(n),o);return a.row=function(t){return arguments.length?a.response(null==(n=t)?r:i(t)):n},a}function r(t){return n.parse(t.responseText)}function i(t){return function(e){return n.parse(e.responseText,t)}}function o(e){return e.map(a).join(t)}function a(t){return s.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}var s=new RegExp('["'+t+"\n]"),u=t.charCodeAt(0);return n.parse=function(t,e){var r;return n.parseRows(t,function(t,n){if(r)return r(t,n-1);var i=new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+"]"}).join(",")+"}");r=e?function(t,n){return e(i(t),n)}:i})},n.parseRows=function(t,e){function n(){if(l>=c)return a;if(i)return i=!1,o;var e=l;if(34===t.charCodeAt(e)){for(var n=e;n++<c;)if(34===t.charCodeAt(n)){if(34!==t.charCodeAt(n+1))break;++n}l=n+2;var r=t.charCodeAt(n+1);return 13===r?(i=!0,10===t.charCodeAt(n+2)&&++l):10===r&&(i=!0),t.slice(e+1,n).replace(/""/g,'"')}for(;c>l;){var r=t.charCodeAt(l++),s=1;if(10===r)i=!0;else if(13===r)i=!0,10===t.charCodeAt(l)&&(++l,++s);else if(r!==u)continue;return t.slice(e,l-s)}return t.slice(e)}for(var r,i,o={},a={},s=[],c=t.length,l=0,d=0;(r=n())!==a;){for(var p=[];r!==o&&r!==a;)p.push(r),r=n();e&&null==(p=e(p,d++))||s.push(p)}return s},n.format=function(e){if(Array.isArray(e[0]))return n.formatRows(e);var r=new _,i=[];return e.forEach(function(t){for(var e in t)r.has(e)||i.push(r.add(e))}),[i.map(a).join(t)].concat(e.map(function(e){return i.map(function(t){return a(e[t])}).join(t)})).join("\n")},n.formatRows=function(t){return t.map(o).join("\n")},n},sa.csv=sa.dsv(",","text/csv"),sa.tsv=sa.dsv("	","text/tab-separated-values");var us,cs,ls,ds,ps,fs=pa[E(pa,"requestAnimationFrame")]||function(t){setTimeout(t,17)};sa.timer=function(t,e,n){var r=arguments.length;2>r&&(e=0),3>r&&(n=Date.now());var i=n+e,o={c:t,t:i,f:!1,n:null};cs?cs.n=o:us=o,cs=o,ls||(ds=clearTimeout(ds),ls=1,fs(Vt))},sa.timer.flush=function(){Ft(),Bt()},sa.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)};var hs=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(jt);sa.formatPrefix=function(t,e){var n=0;return t&&(0>t&&(t*=-1),e&&(t=sa.round(t,Ut(t,e))),n=1+Math.floor(1e-12+Math.log(t)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),hs[8+n/3]};var gs=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,vs=sa.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=sa.round(t,Ut(t,e))).toFixed(Math.max(0,Math.min(20,Ut(t*(1+1e-15),e))))}}),ms=sa.time={},ys=Date;Yt.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(){xs.setUTCDate.apply(this._,arguments)},setDay:function(){xs.setUTCDay.apply(this._,arguments)},setFullYear:function(){xs.setUTCFullYear.apply(this._,arguments)},setHours:function(){xs.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){xs.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){xs.setUTCMinutes.apply(this._,arguments)},setMonth:function(){xs.setUTCMonth.apply(this._,arguments)},setSeconds:function(){xs.setUTCSeconds.apply(this._,arguments)},setTime:function(){xs.setTime.apply(this._,arguments)}};var xs=Date.prototype;ms.year=qt(function(t){return t=ms.day(t),t.setMonth(0,1),t},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t){return t.getFullYear()}),ms.years=ms.year.range,ms.years.utc=ms.year.utc.range,ms.day=qt(function(t){var e=new ys(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}),ms.days=ms.day.range,ms.days.utc=ms.day.utc.range,ms.dayOfYear=function(t){var e=ms.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=ms[t]=qt(function(t){return(t=ms.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=ms.year(t).getDay();return Math.floor((ms.dayOfYear(t)+(n+e)%7)/7)-(n!==e)});ms[t+"s"]=n.range,ms[t+"s"].utc=n.utc.range,ms[t+"OfYear"]=function(t){var n=ms.year(t).getDay();return Math.floor((ms.dayOfYear(t)+(n+e)%7)/7)}}),ms.week=ms.sunday,ms.weeks=ms.sunday.range,ms.weeks.utc=ms.sunday.utc.range,ms.weekOfYear=ms.sundayOfYear;var _s={"-":"",_:" ",0:"0"},bs=/^\s*\d+/,Es=/^%/;sa.locale=function(t){return{numberFormat:Xt(t),timeFormat:Ht(t)}};var ws=sa.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"]});sa.format=ws.numberFormat,sa.geo={},he.prototype={s:0,t:0,add:function(t){ge(t,this.t,Ns),ge(Ns.s,this.s,this),this.s?this.t+=Ns.t:this.s=Ns.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var Ns=new he;sa.geo.stream=function(t,e){t&&Cs.hasOwnProperty(t.type)?Cs[t.type](t,e):ve(t,e)};var Cs={Feature:function(t,e){ve(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)ve(n[r].geometry,e)}},Ts={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){me(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)me(n[r],e,0)},Polygon:function(t,e){ye(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)ye(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)ve(n[r],e)}};sa.geo.area=function(t){return Ds=0,sa.geo.stream(t,As),Ds};var Ds,Ms=new he,As={sphere:function(){Ds+=4*ja},point:w,lineStart:w,lineEnd:w,polygonStart:function(){Ms.reset(),As.lineStart=xe},polygonEnd:function(){var t=2*Ms;Ds+=0>t?4*ja+t:t,As.lineStart=As.lineEnd=As.point=w}};sa.geo.bounds=function(){function t(t,e){x.push(_=[l=t,p=t]),d>e&&(d=e),e>f&&(f=e)}function e(e,n){var r=_e([e*qa,n*qa]);if(m){var i=Ee(m,r),o=[i[1],-i[0],0],a=Ee(o,i);Ce(a),a=Te(a);var u=e-h,c=u>0?1:-1,g=a[0]*Wa*c,v=ba(u)>180;if(v^(g>c*h&&c*e>g)){var y=a[1]*Wa;y>f&&(f=y)}else if(g=(g+360)%360-180,v^(g>c*h&&c*e>g)){var y=-a[1]*Wa;d>y&&(d=y)}else d>n&&(d=n),n>f&&(f=n);v?h>e?s(l,e)>s(l,p)&&(p=e):s(e,p)>s(l,p)&&(l=e):p>=l?(l>e&&(l=e),e>p&&(p=e)):e>h?s(l,e)>s(l,p)&&(p=e):s(e,p)>s(l,p)&&(l=e)}else t(e,n);m=r,h=e}function n(){b.point=e}function r(){_[0]=l,_[1]=p,b.point=t,m=null}function i(t,n){if(m){var r=t-h;y+=ba(r)>180?r+(r>0?360:-360):r}else g=t,v=n;As.point(t,n),e(t,n)}function o(){As.lineStart()}function a(){i(g,v),As.lineEnd(),ba(y)>Ba&&(l=-(p=180)),_[0]=l,_[1]=p,m=null}function s(t,e){return(e-=t)<0?e+360:e}function u(t,e){return t[0]-e[0]}function c(t,e){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}var l,d,p,f,h,g,v,m,y,x,_,b={point:t,lineStart:n,lineEnd:r,polygonStart:function(){b.point=i,b.lineStart=o,b.lineEnd=a,y=0,As.polygonStart()},polygonEnd:function(){As.polygonEnd(),b.point=t,b.lineStart=n,b.lineEnd=r,0>Ms?(l=-(p=180),d=-(f=90)):y>Ba?f=90:-Ba>y&&(d=-90),_[0]=l,_[1]=p}};return function(t){f=p=-(l=d=1/0),x=[],sa.geo.stream(t,b);var e=x.length;if(e){x.sort(u);for(var n,r=1,i=x[0],o=[i];e>r;++r)n=x[r],c(n[0],i)||c(n[1],i)?(s(i[0],n[1])>s(i[0],i[1])&&(i[1]=n[1]),s(n[0],i[1])>s(i[0],i[1])&&(i[0]=n[0])):o.push(i=n);for(var a,n,h=-(1/0),e=o.length-1,r=0,i=o[e];e>=r;i=n,++r)n=o[r],(a=s(i[1],n[0]))>h&&(h=a,l=n[0],p=i[1])}return x=_=null,l===1/0||d===1/0?[[NaN,NaN],[NaN,NaN]]:[[l,d],[p,f]]}}(),sa.geo.centroid=function(t){ks=Ss=Os=Rs=Is=Ls=Ps=Vs=Fs=Bs=Us=0,sa.geo.stream(t,js);var e=Fs,n=Bs,r=Us,i=e*e+n*n+r*r;return Ua>i&&(e=Ls,n=Ps,r=Vs,Ba>Ss&&(e=Os,n=Rs,r=Is),i=e*e+n*n+r*r,Ua>i)?[NaN,NaN]:[Math.atan2(n,e)*Wa,at(r/Math.sqrt(i))*Wa]};var ks,Ss,Os,Rs,Is,Ls,Ps,Vs,Fs,Bs,Us,js={sphere:w,point:Me,lineStart:ke,lineEnd:Se,polygonStart:function(){js.lineStart=Oe},polygonEnd:function(){js.lineStart=ke}},Xs=Fe(Ie,Xe,Ye,[-ja,-ja/2]),zs=1e9;sa.geo.clipExtent=function(){var t,e,n,r,i,o,a={stream:function(t){return i&&(i.valid=!1),i=o(t),i.valid=!0,i},extent:function(s){return arguments.length?(o=Ke(t=+s[0][0],e=+s[0][1],n=+s[1][0],r=+s[1][1]),i&&(i.valid=!1,i=null),a):[[t,e],[n,r]]}};return a.extent([[0,0],[960,500]])},(sa.geo.conicEqualArea=function(){return Ge(Je)}).raw=Je,sa.geo.albers=function(){return sa.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},sa.geo.albersUsa=function(){function t(t){var o=t[0],a=t[1];return e=null,n(o,a),e||(r(o,a),e)||i(o,a),e}var e,n,r,i,o=sa.geo.albers(),a=sa.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=sa.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(t,n){e=[t,n]}};return t.invert=function(t){var e=o.scale(),n=o.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&.234>i&&r>=-.425&&-.214>r?a:i>=.166&&.234>i&&r>=-.214&&-.115>r?s:o).invert(t)},t.stream=function(t){var e=o.stream(t),n=a.stream(t),r=s.stream(t);return{point:function(t,i){e.point(t,i),n.point(t,i),r.point(t,i)},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?(o.precision(e),a.precision(e),s.precision(e),t):o.precision()},t.scale=function(e){return arguments.length?(o.scale(e),a.scale(.35*e),s.scale(e),t.translate(o.translate())):o.scale()},t.translate=function(e){if(!arguments.length)return o.translate();var c=o.scale(),l=+e[0],d=+e[1];return n=o.translate(e).clipExtent([[l-.455*c,d-.238*c],[l+.455*c,d+.238*c]]).stream(u).point,r=a.translate([l-.307*c,d+.201*c]).clipExtent([[l-.425*c+Ba,d+.12*c+Ba],[l-.214*c-Ba,d+.234*c-Ba]]).stream(u).point,i=s.translate([l-.205*c,d+.212*c]).clipExtent([[l-.214*c+Ba,d+.166*c+Ba],[l-.115*c-Ba,d+.234*c-Ba]]).stream(u).point,t},t.scale(1070)};var Ys,qs,Ws,Hs,Ks,Gs,Js={point:w,lineStart:w,lineEnd:w,polygonStart:function(){qs=0,Js.lineStart=$e},polygonEnd:function(){Js.lineStart=Js.lineEnd=Js.point=w,Ys+=ba(qs/2)}},$s={point:Ze,lineStart:w,lineEnd:w,polygonStart:w,polygonEnd:w},Zs={point:en,lineStart:nn,lineEnd:rn,polygonStart:function(){Zs.lineStart=on},polygonEnd:function(){Zs.point=en,Zs.lineStart=nn,Zs.lineEnd=rn}};sa.geo.path=function(){function t(t){return t&&("function"==typeof s&&o.pointRadius(+s.apply(this,arguments)),a&&a.valid||(a=i(o)),sa.geo.stream(t,a)),o.result()}function e(){return a=null,t}var n,r,i,o,a,s=4.5;return t.area=function(t){return Ys=0,sa.geo.stream(t,i(Js)),Ys},t.centroid=function(t){return Os=Rs=Is=Ls=Ps=Vs=Fs=Bs=Us=0,sa.geo.stream(t,i(Zs)),Us?[Fs/Us,Bs/Us]:Vs?[Ls/Vs,Ps/Vs]:Is?[Os/Is,Rs/Is]:[NaN,NaN]},t.bounds=function(t){return Ks=Gs=-(Ws=Hs=1/0),sa.geo.stream(t,i($s)),[[Ws,Hs],[Ks,Gs]]},t.projection=function(t){return arguments.length?(i=(n=t)?t.stream||un(t):Ot,e()):n},t.context=function(t){return arguments.length?(o=null==(r=t)?new Qe:new an(t),"function"!=typeof s&&o.pointRadius(s),e()):r},t.pointRadius=function(e){return arguments.length?(s="function"==typeof e?e:(o.pointRadius(+e),+e),t):s},t.projection(sa.geo.albersUsa()).context(null)},sa.geo.transform=function(t){return{stream:function(e){var n=new cn(e);for(var r in t)n[r]=t[r];return n}}},cn.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()}},sa.geo.projection=dn,sa.geo.projectionMutator=pn,(sa.geo.equirectangular=function(){return dn(hn)}).raw=hn.invert=hn,sa.geo.rotation=function(t){function e(e){return e=t(e[0]*qa,e[1]*qa),e[0]*=Wa,e[1]*=Wa,e}return t=vn(t[0]%360*qa,t[1]*qa,t.length>2?t[2]*qa:0),e.invert=function(e){return e=t.invert(e[0]*qa,e[1]*qa),e[0]*=Wa,e[1]*=Wa,e},e},gn.invert=hn,sa.geo.circle=function(){function t(){var t="function"==typeof r?r.apply(this,arguments):r,e=vn(-t[0]*qa,-t[1]*qa,0).invert,i=[];return n(null,null,1,{point:function(t,n){i.push(t=e(t,n)),t[0]*=Wa,t[1]*=Wa}}),{type:"Polygon",coordinates:[i]}}var e,n,r=[0,0],i=6;return t.origin=function(e){return arguments.length?(r=e,t):r},t.angle=function(r){return arguments.length?(n=_n((e=+r)*qa,i*qa),t):e},t.precision=function(r){return arguments.length?(n=_n(e*qa,(i=+r)*qa),t):i},t.angle(90)},sa.geo.distance=function(t,e){var n,r=(e[0]-t[0])*qa,i=t[1]*qa,o=e[1]*qa,a=Math.sin(r),s=Math.cos(r),u=Math.sin(i),c=Math.cos(i),l=Math.sin(o),d=Math.cos(o);return Math.atan2(Math.sqrt((n=d*a)*n+(n=c*l-u*d*s)*n),u*l+c*d*s)},sa.geo.graticule=function(){function t(){return{type:"MultiLineString",coordinates:e()}}function e(){return sa.range(Math.ceil(o/v)*v,i,v).map(p).concat(sa.range(Math.ceil(c/m)*m,u,m).map(f)).concat(sa.range(Math.ceil(r/h)*h,n,h).filter(function(t){return ba(t%v)>Ba}).map(l)).concat(sa.range(Math.ceil(s/g)*g,a,g).filter(function(t){return ba(t%m)>Ba}).map(d))}var n,r,i,o,a,s,u,c,l,d,p,f,h=10,g=h,v=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(o).concat(f(u).slice(1),p(i).reverse().slice(1),f(c).reverse().slice(1))]}},t.extent=function(e){return arguments.length?t.majorExtent(e).minorExtent(e):t.minorExtent()},t.majorExtent=function(e){return arguments.length?(o=+e[0][0],i=+e[1][0],c=+e[0][1],u=+e[1][1],o>i&&(e=o,o=i,i=e),c>u&&(e=c,c=u,u=e),t.precision(y)):[[o,c],[i,u]]},t.minorExtent=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],s=+e[0][1],a=+e[1][1],r>n&&(e=r,r=n,n=e),s>a&&(e=s,s=a,a=e),t.precision(y)):[[r,s],[n,a]]},t.step=function(e){return arguments.length?t.majorStep(e).minorStep(e):t.minorStep()},t.majorStep=function(e){return arguments.length?(v=+e[0],m=+e[1],t):[v,m]},t.minorStep=function(e){return arguments.length?(h=+e[0],g=+e[1],t):[h,g]},t.precision=function(e){return arguments.length?(y=+e,l=En(s,a,90),d=wn(r,n,y),p=En(c,u,90),f=wn(o,i,y),t):y},t.majorExtent([[-180,-90+Ba],[180,90-Ba]]).minorExtent([[-180,-80-Ba],[180,80+Ba]])},sa.geo.greatArc=function(){function t(){return{type:"LineString",coordinates:[e||r.apply(this,arguments),n||i.apply(this,arguments)]}}var e,n,r=Nn,i=Cn;return t.distance=function(){return sa.geo.distance(e||r.apply(this,arguments),n||i.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?(i=e,n="function"==typeof e?null:e,t):i},t.precision=function(){return arguments.length?t:0},t},sa.geo.interpolate=function(t,e){return Tn(t[0]*qa,t[1]*qa,e[0]*qa,e[1]*qa)},sa.geo.length=function(t){return Qs=0,sa.geo.stream(t,tu),Qs};var Qs,tu={sphere:w,point:w,lineStart:Dn,lineEnd:w,polygonStart:w,polygonEnd:w},eu=Mn(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(sa.geo.azimuthalEqualArea=function(){return dn(eu)}).raw=eu;var nu=Mn(function(t){var e=Math.acos(t);return e&&e/Math.sin(e)},Ot);(sa.geo.azimuthalEquidistant=function(){return dn(nu)}).raw=nu,(sa.geo.conicConformal=function(){return Ge(An)}).raw=An,(sa.geo.conicEquidistant=function(){return Ge(kn)}).raw=kn;var ru=Mn(function(t){return 1/t},Math.atan);(sa.geo.gnomonic=function(){return dn(ru)}).raw=ru,Sn.invert=function(t,e){return[t,2*Math.atan(Math.exp(e))-Ya]},(sa.geo.mercator=function(){return On(Sn)}).raw=Sn;var iu=Mn(function(){return 1},Math.asin);(sa.geo.orthographic=function(){return dn(iu)}).raw=iu;var ou=Mn(function(t){return 1/(1+t)},function(t){return 2*Math.atan(t)});(sa.geo.stereographic=function(){return dn(ou)}).raw=ou,Rn.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-Ya]},(sa.geo.transverseMercator=function(){var t=On(Rn),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=Rn,sa.geom={},sa.geom.hull=function(t){function e(t){if(t.length<3)return[];var e,i=St(n),o=St(r),a=t.length,s=[],u=[];for(e=0;a>e;e++)s.push([+i.call(this,t[e],e),+o.call(this,t[e],e),e]);for(s.sort(Vn),e=0;a>e;e++)u.push([s[e][0],-s[e][1]]);var c=Pn(s),l=Pn(u),d=l[0]===c[0],p=l[l.length-1]===c[c.length-1],f=[];for(e=c.length-1;e>=0;--e)f.push(t[s[c[e]][2]]);for(e=+d;e<l.length-p;++e)f.push(t[s[l[e]][2]]);return f}var n=In,r=Ln;return arguments.length?e(t):(e.x=function(t){return arguments.length?(n=t,e):n},e.y=function(t){return arguments.length?(r=t,e):r},e)},sa.geom.polygon=function(t){return Ta(t,au),t};var au=sa.geom.polygon.prototype=[];au.area=function(){for(var t,e=-1,n=this.length,r=this[n-1],i=0;++e<n;)t=r,r=this[e],i+=t[1]*r[0]-t[0]*r[1];return.5*i},au.centroid=function(t){var e,n,r=-1,i=this.length,o=0,a=0,s=this[i-1];for(arguments.length||(t=-1/(6*this.area()));++r<i;)e=s,s=this[r],n=e[0]*s[1]-s[0]*e[1],o+=(e[0]+s[0])*n,a+=(e[1]+s[1])*n;return[o*t,a*t]},au.clip=function(t){for(var e,n,r,i,o,a,s=Un(t),u=-1,c=this.length-Un(this),l=this[c-1];++u<c;){for(e=t.slice(),t.length=0,i=this[u],o=e[(r=e.length-s)-1],n=-1;++n<r;)a=e[n],Fn(a,l,i)?(Fn(o,l,i)||t.push(Bn(o,a,l,i)),t.push(a)):Fn(o,l,i)&&t.push(Bn(o,a,l,i)),o=a;s&&t.push(t[0]),l=i}return t};var su,uu,cu,lu,du,pu=[],fu=[];Kn.prototype.prepare=function(){for(var t,e=this.edges,n=e.length;n--;)t=e[n].edge,t.b&&t.a||e.splice(n,1);return e.sort(Jn),e.length},ar.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},sr.prototype={insert:function(t,e){var n,r,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=dr(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)r=n.U,n===r.L?(i=r.R,i&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(cr(this,n),t=n,n=t.U),n.C=!1,r.C=!0,lr(this,r))):(i=r.L,i&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(lr(this,n),t=n,n=t.U),n.C=!1,r.C=!0,cr(this,r))),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r,i=t.U,o=t.L,a=t.R;if(n=o?a?dr(a):o:a,i?i.L===t?i.L=n:i.R=n:this._=n,o&&a?(r=n.C,n.C=t.C,n.L=o,o.U=n,n!==a?(i=n.U,n.U=t.U,t=n.R,i.L=t,n.R=a,a.U=n):(n.U=i,i=n,t=n.R)):(r=t.C,t=n),t&&(t.U=i),!r){if(t&&t.C)return void(t.C=!1);do{if(t===this._)break;if(t===i.L){if(e=i.R,e.C&&(e.C=!1,i.C=!0,cr(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,lr(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,cr(this,i),t=this._;break}}else if(e=i.L,e.C&&(e.C=!1,i.C=!0,lr(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,cr(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,lr(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}},sa.geom.voronoi=function(t){function e(t){var e=new Array(t.length),r=s[0][0],i=s[0][1],o=s[1][0],a=s[1][1];return pr(n(t),s).cells.forEach(function(n,s){var u=n.edges,c=n.site,l=e[s]=u.length?u.map(function(t){var e=t.start();return[e.x,e.y]}):c.x>=r&&c.x<=o&&c.y>=i&&c.y<=a?[[r,a],[o,a],[o,i],[r,i]]:[];l.point=t[s]}),e}function n(t){return t.map(function(t,e){return{x:Math.round(o(t,e)/Ba)*Ba,y:Math.round(a(t,e)/Ba)*Ba,i:e}})}var r=In,i=Ln,o=r,a=i,s=hu;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 i,o,a=n.site,s=n.edges.sort(Jn),u=-1,c=s.length,l=s[c-1].edge,d=l.l===a?l.r:l.l;++u<c;)i=l,o=d,l=s[u].edge,d=l.l===a?l.r:l.l,r<o.i&&r<d.i&&hr(a,o,d)<0&&e.push([t[r],t[o.i],t[d.i]])}),e},e.x=function(t){return arguments.length?(o=St(r=t),e):r},e.y=function(t){return arguments.length?(a=St(i=t),e):i},e.clipExtent=function(t){return arguments.length?(s=null==t?hu:t,e):s===hu?null:s},e.size=function(t){return arguments.length?e.clipExtent(t&&[[0,0],t]):s===hu?null:s&&s[1]},e)};var hu=[[-1e6,-1e6],[1e6,1e6]];sa.geom.delaunay=function(t){return sa.geom.voronoi().triangles(t)},sa.geom.quadtree=function(t,e,n,r,i){function o(t){function o(t,e,n,r,i,o,a,s){if(!isNaN(n)&&!isNaN(r))if(t.leaf){var u=t.x,l=t.y;if(null!=u)if(ba(u-n)+ba(l-r)<.01)c(t,e,n,r,i,o,a,s);else{var d=t.point;t.x=t.y=t.point=null,c(t,d,u,l,i,o,a,s),c(t,e,n,r,i,o,a,s)}else t.x=n,t.y=r,t.point=e}else c(t,e,n,r,i,o,a,s)}function c(t,e,n,r,i,a,s,u){var c=.5*(i+s),l=.5*(a+u),d=n>=c,p=r>=l,f=p<<1|d;t.leaf=!1,t=t.nodes[f]||(t.nodes[f]=mr()),d?i=c:s=c,p?a=l:u=l,o(t,e,n,r,i,a,s,u)}var l,d,p,f,h,g,v,m,y,x=St(s),_=St(u);if(null!=e)g=e,v=n,m=r,y=i;else if(m=y=-(g=v=1/0),d=[],p=[],h=t.length,a)for(f=0;h>f;++f)l=t[f],l.x<g&&(g=l.x),l.y<v&&(v=l.y),l.x>m&&(m=l.x),l.y>y&&(y=l.y),d.push(l.x),p.push(l.y);else for(f=0;h>f;++f){var b=+x(l=t[f],f),E=+_(l,f);g>b&&(g=b),v>E&&(v=E),b>m&&(m=b),E>y&&(y=E),d.push(b),p.push(E)}var w=m-g,N=y-v;w>N?y=v+w:m=g+N;var C=mr();if(C.add=function(t){o(C,t,+x(t,++f),+_(t,f),g,v,m,y)},C.visit=function(t){yr(t,C,g,v,m,y)},C.find=function(t){return xr(C,t[0],t[1],g,v,m,y)},f=-1,null==e){for(;++f<h;)o(C,t[f],d[f],p[f],g,v,m,y);--f}else t.forEach(C.add);return d=p=t=l=null,C}var a,s=In,u=Ln;return(a=arguments.length)?(s=gr,u=vr,3===a&&(i=n,r=e,n=e=0),o(t)):(o.x=function(t){return arguments.length?(s=t,o):s},o.y=function(t){return arguments.length?(u=t,o):u},o.extent=function(t){return arguments.length?(null==t?e=n=r=i=null:(e=+t[0][0],n=+t[0][1],r=+t[1][0],i=+t[1][1]),o):null==e?null:[[e,n],[r,i]]},o.size=function(t){return arguments.length?(null==t?e=n=r=i=null:(e=n=0,r=+t[0],i=+t[1]),o):null==e?null:[r-e,i-n]},o)},sa.interpolateRgb=_r,sa.interpolateObject=br,sa.interpolateNumber=Er,sa.interpolateString=wr;var gu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vu=new RegExp(gu.source,"g");sa.interpolate=Nr,sa.interpolators=[function(t,e){var n=typeof e;return("string"===n?ss.has(e)||/^(#|rgb\(|hsl\()/.test(e)?_r:wr:e instanceof dt?_r:Array.isArray(e)?Cr:"object"===n&&isNaN(e)?br:Er)(t,e)}],sa.interpolateArray=Cr;var mu=function(){return Ot},yu=sa.map({linear:mu,poly:Or,quad:function(){return Ar},cubic:function(){return kr},sin:function(){return Rr},exp:function(){return Ir},circle:function(){return Lr},elastic:Pr,back:Vr,bounce:function(){return Fr}}),xu=sa.map({"in":Ot,out:Dr,"in-out":Mr,"out-in":function(t){return Mr(Dr(t))}});sa.ease=function(t){var e=t.indexOf("-"),n=e>=0?t.slice(0,e):t,r=e>=0?t.slice(e+1):"in";return n=yu.get(n)||mu,r=xu.get(r)||Ot,Tr(r(n.apply(null,ua.call(arguments,1))))},sa.interpolateHcl=Br,sa.interpolateHsl=Ur,sa.interpolateLab=jr,sa.interpolateRound=Xr,sa.transform=function(t){var e=la.createElementNS(sa.ns.prefix.svg,"g");return(sa.transform=function(t){if(null!=t){e.setAttribute("transform",t);var n=e.transform.baseVal.consolidate()}return new zr(n?n.matrix:_u)})(t)},zr.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var _u={a:1,b:0,c:0,d:1,e:0,f:0};sa.interpolateTransform=Hr,sa.layout={},sa.layout.bundle=function(){return function(t){for(var e=[],n=-1,r=t.length;++n<r;)e.push(Jr(t[n]));return e}},sa.layout.chord=function(){function t(){var t,c,d,p,f,h={},g=[],v=sa.range(o),m=[];for(n=[],r=[],t=0,p=-1;++p<o;){for(c=0,f=-1;++f<o;)c+=i[p][f];g.push(c),m.push(sa.range(o)),t+=c}for(a&&v.sort(function(t,e){return a(g[t],g[e])}),s&&m.forEach(function(t,e){t.sort(function(t,n){return s(i[e][t],i[e][n])})}),t=(Xa-l*o)/t,c=0,p=-1;++p<o;){for(d=c,f=-1;++f<o;){var y=v[p],x=m[y][f],_=i[y][x],b=c,E=c+=_*t;h[y+"-"+x]={index:y,subindex:x,startAngle:b,endAngle:E,value:_}}r[y]={index:y,startAngle:d,endAngle:c,value:(c-d)/t},c+=l}for(p=-1;++p<o;)for(f=p-1;++f<o;){var w=h[p+"-"+f],N=h[f+"-"+p];(w.value||N.value)&&n.push(w.value<N.value?{source:N,target:w}:{source:w,target:N})}u&&e()}function e(){n.sort(function(t,e){return u((t.source.value+t.target.value)/2,(e.source.value+e.target.value)/2)})}var n,r,i,o,a,s,u,c={},l=0;return c.matrix=function(t){return arguments.length?(o=(i=t)&&i.length,n=r=null,c):i},c.padding=function(t){return arguments.length?(l=t,n=r=null,c):l},c.sortGroups=function(t){return arguments.length?(a=t,n=r=null,c):a},c.sortSubgroups=function(t){return arguments.length?(s=t,n=null,c):s},c.sortChords=function(t){return arguments.length?(u=t,n&&e(),c):u},c.chords=function(){return n||t(),n},c.groups=function(){return r||t(),r},c},sa.layout.force=function(){function t(t){return function(e,n,r,i){if(e.point!==t){var o=e.cx-t.x,a=e.cy-t.y,s=i-n,u=o*o+a*a;if(u>s*s/v){if(h>u){var c=e.charge/u;t.px-=o*c,t.py-=a*c}return!0}if(e.point&&u&&h>u){var c=e.pointCharge/u;t.px-=o*c,t.py-=a*c}}return!e.charge}}function e(t){t.px=sa.event.x,t.py=sa.event.y,s.resume()}var n,r,i,o,a,s={},u=sa.dispatch("start","tick","end"),c=[1,1],l=.9,d=bu,p=Eu,f=-30,h=wu,g=.1,v=.64,m=[],y=[];return s.tick=function(){if((r*=.99)<.005)return u.end({type:"end",alpha:r=0}),!0;var e,n,s,d,p,h,v,x,_,b=m.length,E=y.length;for(n=0;E>n;++n)s=y[n],d=s.source,p=s.target,x=p.x-d.x,_=p.y-d.y,(h=x*x+_*_)&&(h=r*o[n]*((h=Math.sqrt(h))-i[n])/h,x*=h,_*=h,p.x-=x*(v=d.weight/(p.weight+d.weight)),p.y-=_*v,d.x+=x*(v=1-v),d.y+=_*v);if((v=r*g)&&(x=c[0]/2,_=c[1]/2,n=-1,v))for(;++n<b;)s=m[n],s.x+=(x-s.x)*v,s.y+=(_-s.y)*v;if(f)for(ri(e=sa.geom.quadtree(m),r,a),n=-1;++n<b;)(s=m[n]).fixed||e.visit(t(s));for(n=-1;++n<b;)s=m[n],s.fixed?(s.x=s.px,s.y=s.py):(s.x-=(s.px-(s.px=s.x))*l,s.y-=(s.py-(s.py=s.y))*l);u.tick({type:"tick",alpha:r})},s.nodes=function(t){return arguments.length?(m=t,s):m},s.links=function(t){return arguments.length?(y=t,s):y},s.size=function(t){return arguments.length?(c=t,s):c},s.linkDistance=function(t){return arguments.length?(d="function"==typeof t?t:+t,s):d},s.distance=s.linkDistance,s.linkStrength=function(t){return arguments.length?(p="function"==typeof t?t:+t,s):p},s.friction=function(t){return arguments.length?(l=+t,s):l},s.charge=function(t){return arguments.length?(f="function"==typeof t?t:+t,s):f},s.chargeDistance=function(t){return arguments.length?(h=t*t,s):Math.sqrt(h)},s.gravity=function(t){return arguments.length?(g=+t,s):g},s.theta=function(t){return arguments.length?(v=t*t,s):Math.sqrt(v)},s.alpha=function(t){return arguments.length?(t=+t,r?r=t>0?t:0:t>0&&(u.start({type:"start",alpha:r=t}),sa.timer(s.tick)),s):r},s.start=function(){function t(t,r){if(!n){for(n=new Array(u),s=0;u>s;++s)n[s]=[];for(s=0;c>s;++s){var i=y[s];n[i.source.index].push(i.target),n[i.target.index].push(i.source)}}for(var o,a=n[e],s=-1,c=a.length;++s<c;)if(!isNaN(o=a[s][t]))return o;return Math.random()*r}var e,n,r,u=m.length,l=y.length,h=c[0],g=c[1];for(e=0;u>e;++e)(r=m[e]).index=e,r.weight=0;for(e=0;l>e;++e)r=y[e],"number"==typeof r.source&&(r.source=m[r.source]),"number"==typeof r.target&&(r.target=m[r.target]),++r.source.weight,++r.target.weight;for(e=0;u>e;++e)r=m[e],isNaN(r.x)&&(r.x=t("x",h)),isNaN(r.y)&&(r.y=t("y",g)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(i=[],"function"==typeof d)for(e=0;l>e;++e)i[e]=+d.call(this,y[e],e);else for(e=0;l>e;++e)i[e]=d;if(o=[],"function"==typeof p)for(e=0;l>e;++e)o[e]=+p.call(this,y[e],e);else for(e=0;l>e;++e)o[e]=p;if(a=[],"function"==typeof f)for(e=0;u>e;++e)a[e]=+f.call(this,m[e],e);else for(e=0;u>e;++e)a[e]=f;
  return s.resume()},s.resume=function(){return s.alpha(.1)},s.stop=function(){return s.alpha(0)},s.drag=function(){return n||(n=sa.behavior.drag().origin(Ot).on("dragstart.force",Qr).on("drag.force",e).on("dragend.force",ti)),arguments.length?void this.on("mouseover.force",ei).on("mouseout.force",ni).call(n):n},sa.rebind(s,u,"on")};var bu=20,Eu=1,wu=1/0;sa.layout.hierarchy=function(){function t(i){var o,a=[i],s=[];for(i.depth=0;null!=(o=a.pop());)if(s.push(o),(c=n.call(t,o,o.depth))&&(u=c.length)){for(var u,c,l;--u>=0;)a.push(l=c[u]),l.parent=o,l.depth=o.depth+1;r&&(o.value=0),o.children=c}else r&&(o.value=+r.call(t,o,o.depth)||0),delete o.children;return ai(i,function(t){var n,i;e&&(n=t.children)&&n.sort(e),r&&(i=t.parent)&&(i.value+=t.value)}),s}var e=ci,n=si,r=ui;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&&(oi(e,function(t){t.children&&(t.value=0)}),ai(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},sa.layout.partition=function(){function t(e,n,r,i){var o=e.children;if(e.x=n,e.y=e.depth*i,e.dx=r,e.dy=i,o&&(a=o.length)){var a,s,u,c=-1;for(r=e.value?r/e.value:0;++c<a;)t(s=o[c],n,u=s.value*r,i),n+=u}}function e(t){var n=t.children,r=0;if(n&&(i=n.length))for(var i,o=-1;++o<i;)r=Math.max(r,e(n[o]));return 1+r}function n(n,o){var a=r.call(this,n,o);return t(a[0],0,i[0],i[1]/e(a[0])),a}var r=sa.layout.hierarchy(),i=[1,1];return n.size=function(t){return arguments.length?(i=t,n):i},ii(n,r)},sa.layout.pie=function(){function t(a){var s,u=a.length,c=a.map(function(n,r){return+e.call(t,n,r)}),l=+("function"==typeof r?r.apply(this,arguments):r),d=("function"==typeof i?i.apply(this,arguments):i)-l,p=Math.min(Math.abs(d)/u,+("function"==typeof o?o.apply(this,arguments):o)),f=p*(0>d?-1:1),h=(d-u*f)/sa.sum(c),g=sa.range(u),v=[];return null!=n&&g.sort(n===Nu?function(t,e){return c[e]-c[t]}:function(t,e){return n(a[t],a[e])}),g.forEach(function(t){v[t]={data:a[t],value:s=c[t],startAngle:l,endAngle:l+=s*h+f,padAngle:p}}),v}var e=Number,n=Nu,r=0,i=Xa,o=0;return t.value=function(n){return arguments.length?(e=n,t):e},t.sort=function(e){return arguments.length?(n=e,t):n},t.startAngle=function(e){return arguments.length?(r=e,t):r},t.endAngle=function(e){return arguments.length?(i=e,t):i},t.padAngle=function(e){return arguments.length?(o=e,t):o},t};var Nu={};sa.layout.stack=function(){function t(s,u){if(!(p=s.length))return s;var c=s.map(function(n,r){return e.call(t,n,r)}),l=c.map(function(e){return e.map(function(e,n){return[o.call(t,e,n),a.call(t,e,n)]})}),d=n.call(t,l,u);c=sa.permute(c,d),l=sa.permute(l,d);var p,f,h,g,v=r.call(t,l,u),m=c[0].length;for(h=0;m>h;++h)for(i.call(t,c[0][h],g=v[h],l[0][h][1]),f=1;p>f;++f)i.call(t,c[f][h],g+=l[f-1][h][1],l[f][h][1]);return s}var e=Ot,n=hi,r=gi,i=fi,o=di,a=pi;return t.values=function(n){return arguments.length?(e=n,t):e},t.order=function(e){return arguments.length?(n="function"==typeof e?e:Cu.get(e)||hi,t):n},t.offset=function(e){return arguments.length?(r="function"==typeof e?e:Tu.get(e)||gi,t):r},t.x=function(e){return arguments.length?(o=e,t):o},t.y=function(e){return arguments.length?(a=e,t):a},t.out=function(e){return arguments.length?(i=e,t):i},t};var Cu=sa.map({"inside-out":function(t){var e,n,r=t.length,i=t.map(vi),o=t.map(mi),a=sa.range(r).sort(function(t,e){return i[t]-i[e]}),s=0,u=0,c=[],l=[];for(e=0;r>e;++e)n=a[e],u>s?(s+=o[n],c.push(n)):(u+=o[n],l.push(n));return l.reverse().concat(c)},reverse:function(t){return sa.range(t.length).reverse()},"default":hi}),Tu=sa.map({silhouette:function(t){var e,n,r,i=t.length,o=t[0].length,a=[],s=0,u=[];for(n=0;o>n;++n){for(e=0,r=0;i>e;e++)r+=t[e][n][1];r>s&&(s=r),a.push(r)}for(n=0;o>n;++n)u[n]=(s-a[n])/2;return u},wiggle:function(t){var e,n,r,i,o,a,s,u,c,l=t.length,d=t[0],p=d.length,f=[];for(f[0]=u=c=0,n=1;p>n;++n){for(e=0,i=0;l>e;++e)i+=t[e][n][1];for(e=0,o=0,s=d[n][0]-d[n-1][0];l>e;++e){for(r=0,a=(t[e][n][1]-t[e][n-1][1])/(2*s);e>r;++r)a+=(t[r][n][1]-t[r][n-1][1])/s;o+=a*t[e][n][1]}f[n]=u-=i?o/i*s:0,c>u&&(c=u)}for(n=0;p>n;++n)f[n]-=c;return f},expand:function(t){var e,n,r,i=t.length,o=t[0].length,a=1/i,s=[];for(n=0;o>n;++n){for(e=0,r=0;i>e;e++)r+=t[e][n][1];if(r)for(e=0;i>e;e++)t[e][n][1]/=r;else for(e=0;i>e;e++)t[e][n][1]=a}for(n=0;o>n;++n)s[n]=0;return s},zero:gi});sa.layout.histogram=function(){function t(t,o){for(var a,s,u=[],c=t.map(n,this),l=r.call(this,c,o),d=i.call(this,l,c,o),o=-1,p=c.length,f=d.length-1,h=e?1:1/p;++o<f;)a=u[o]=[],a.dx=d[o+1]-(a.x=d[o]),a.y=0;if(f>0)for(o=-1;++o<p;)s=c[o],s>=l[0]&&s<=l[1]&&(a=u[sa.bisect(d,s,1,f)-1],a.y+=h,a.push(t[o]));return u}var e=!0,n=Number,r=bi,i=xi;return t.value=function(e){return arguments.length?(n=e,t):n},t.range=function(e){return arguments.length?(r=St(e),t):r},t.bins=function(e){return arguments.length?(i="number"==typeof e?function(t){return _i(t,e)}:St(e),t):i},t.frequency=function(n){return arguments.length?(e=!!n,t):e},t},sa.layout.pack=function(){function t(t,o){var a=n.call(this,t,o),s=a[0],u=i[0],c=i[1],l=null==e?Math.sqrt:"function"==typeof e?e:function(){return e};if(s.x=s.y=0,ai(s,function(t){t.r=+l(t.value)}),ai(s,Ti),r){var d=r*(e?1:Math.max(2*s.r/u,2*s.r/c))/2;ai(s,function(t){t.r+=d}),ai(s,Ti),ai(s,function(t){t.r-=d})}return Ai(s,u/2,c/2,e?1:1/Math.max(2*s.r/u,2*s.r/c)),a}var e,n=sa.layout.hierarchy().sort(Ei),r=0,i=[1,1];return t.size=function(e){return arguments.length?(i=e,t):i},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},ii(t,n)},sa.layout.tree=function(){function t(t,i){var l=a.call(this,t,i),d=l[0],p=e(d);if(ai(p,n),p.parent.m=-p.z,oi(p,r),c)oi(d,o);else{var f=d,h=d,g=d;oi(d,function(t){t.x<f.x&&(f=t),t.x>h.x&&(h=t),t.depth>g.depth&&(g=t)});var v=s(f,h)/2-f.x,m=u[0]/(h.x+s(h,f)/2+v),y=u[1]/(g.depth||1);oi(d,function(t){t.x=(t.x+v)*m,t.y=t.depth*y})}return l}function e(t){for(var e,n={A:null,children:[t]},r=[n];null!=(e=r.pop());)for(var i,o=e.children,a=0,s=o.length;s>a;++a)r.push((o[a]=i={_:o[a],parent:e,children:(i=o[a].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:a}).a=i);return n.children[0]}function n(t){var e=t.children,n=t.parent.children,r=t.i?n[t.i-1]:null;if(e.length){Li(t);var o=(e[0].z+e[e.length-1].z)/2;r?(t.z=r.z+s(t._,r._),t.m=t.z-o):t.z=o}else r&&(t.z=r.z+s(t._,r._));t.parent.A=i(t,r,t.parent.A||n[0])}function r(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function i(t,e,n){if(e){for(var r,i=t,o=t,a=e,u=i.parent.children[0],c=i.m,l=o.m,d=a.m,p=u.m;a=Ri(a),i=Oi(i),a&&i;)u=Oi(u),o=Ri(o),o.a=t,r=a.z+d-i.z-c+s(a._,i._),r>0&&(Ii(Pi(a,t,n),t,r),c+=r,l+=r),d+=a.m,c+=i.m,p+=u.m,l+=o.m;a&&!Ri(o)&&(o.t=a,o.m+=d-l),i&&!Oi(u)&&(u.t=i,u.m+=c-p,n=t)}return n}function o(t){t.x*=u[0],t.y=t.depth*u[1]}var a=sa.layout.hierarchy().sort(null).value(null),s=Si,u=[1,1],c=null;return t.separation=function(e){return arguments.length?(s=e,t):s},t.size=function(e){return arguments.length?(c=null==(u=e)?o:null,t):c?null:u},t.nodeSize=function(e){return arguments.length?(c=null==(u=e)?null:o,t):c?u:null},ii(t,a)},sa.layout.cluster=function(){function t(t,o){var a,s=e.call(this,t,o),u=s[0],c=0;ai(u,function(t){var e=t.children;e&&e.length?(t.x=Fi(e),t.y=Vi(e)):(t.x=a?c+=n(t,a):0,t.y=0,a=t)});var l=Bi(u),d=Ui(u),p=l.x-n(l,d)/2,f=d.x+n(d,l)/2;return ai(u,i?function(t){t.x=(t.x-u.x)*r[0],t.y=(u.y-t.y)*r[1]}:function(t){t.x=(t.x-p)/(f-p)*r[0],t.y=(1-(u.y?t.y/u.y:1))*r[1]}),s}var e=sa.layout.hierarchy().sort(null).value(null),n=Si,r=[1,1],i=!1;return t.separation=function(e){return arguments.length?(n=e,t):n},t.size=function(e){return arguments.length?(i=null==(r=e),t):i?null:r},t.nodeSize=function(e){return arguments.length?(i=null!=(r=e),t):i?r:null},ii(t,e)},sa.layout.treemap=function(){function t(t,e){for(var n,r,i=-1,o=t.length;++i<o;)r=(n=t[i]).value*(0>e?0:e),n.area=isNaN(r)||0>=r?0:r}function e(n){var o=n.children;if(o&&o.length){var a,s,u,c=d(n),l=[],p=o.slice(),h=1/0,g="slice"===f?c.dx:"dice"===f?c.dy:"slice-dice"===f?1&n.depth?c.dy:c.dx:Math.min(c.dx,c.dy);for(t(p,c.dx*c.dy/n.value),l.area=0;(u=p.length)>0;)l.push(a=p[u-1]),l.area+=a.area,"squarify"!==f||(s=r(l,g))<=h?(p.pop(),h=s):(l.area-=l.pop().area,i(l,g,c,!1),g=Math.min(c.dx,c.dy),l.length=l.area=0,h=1/0);l.length&&(i(l,g,c,!0),l.length=l.area=0),o.forEach(e)}}function n(e){var r=e.children;if(r&&r.length){var o,a=d(e),s=r.slice(),u=[];for(t(s,a.dx*a.dy/e.value),u.area=0;o=s.pop();)u.push(o),u.area+=o.area,null!=o.z&&(i(u,o.z?a.dx:a.dy,a,!s.length),u.length=u.area=0);r.forEach(n)}}function r(t,e){for(var n,r=t.area,i=0,o=1/0,a=-1,s=t.length;++a<s;)(n=t[a].area)&&(o>n&&(o=n),n>i&&(i=n));return r*=r,e*=e,r?Math.max(e*i*h/r,r/(e*o*h)):1/0}function i(t,e,n,r){var i,o=-1,a=t.length,s=n.x,c=n.y,l=e?u(t.area/e):0;if(e==n.dx){for((r||l>n.dy)&&(l=n.dy);++o<a;)i=t[o],i.x=s,i.y=c,i.dy=l,s+=i.dx=Math.min(n.x+n.dx-s,l?u(i.area/l):0);i.z=!0,i.dx+=n.x+n.dx-s,n.y+=l,n.dy-=l}else{for((r||l>n.dx)&&(l=n.dx);++o<a;)i=t[o],i.x=s,i.y=c,i.dx=l,c+=i.dy=Math.min(n.y+n.dy-c,l?u(i.area/l):0);i.z=!1,i.dy+=n.y+n.dy-c,n.x+=l,n.dx-=l}}function o(r){var i=a||s(r),o=i[0];return o.x=0,o.y=0,o.dx=c[0],o.dy=c[1],a&&s.revalue(o),t([o],o.dx*o.dy/o.value),(a?n:e)(o),p&&(a=i),i}var a,s=sa.layout.hierarchy(),u=Math.round,c=[1,1],l=null,d=ji,p=!1,f="squarify",h=.5*(1+Math.sqrt(5));return o.size=function(t){return arguments.length?(c=t,o):c},o.padding=function(t){function e(e){var n=t.call(o,e,e.depth);return null==n?ji(e):Xi(e,"number"==typeof n?[n,n,n,n]:n)}function n(e){return Xi(e,t)}if(!arguments.length)return l;var r;return d=null==(l=t)?ji:"function"==(r=typeof t)?e:"number"===r?(t=[t,t,t,t],n):n,o},o.round=function(t){return arguments.length?(u=t?Math.round:Number,o):u!=Number},o.sticky=function(t){return arguments.length?(p=t,a=null,o):p},o.ratio=function(t){return arguments.length?(h=t,o):h},o.mode=function(t){return arguments.length?(f=t+"",o):f},ii(o,s)},sa.random={normal:function(t,e){var n=arguments.length;return 2>n&&(e=1),1>n&&(t=0),function(){var n,r,i;do n=2*Math.random()-1,r=2*Math.random()-1,i=n*n+r*r;while(!i||i>1);return t+e*n*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var t=sa.random.normal.apply(sa,arguments);return function(){return Math.exp(t())}},bates:function(t){var e=sa.random.irwinHall(t);return function(){return e()/t}},irwinHall:function(t){return function(){for(var e=0,n=0;t>n;n++)e+=Math.random();return e}}},sa.scale={};var Du={floor:Ot,ceil:Ot};sa.scale.linear=function(){return Gi([0,1],[0,1],Nr,!1)};var Mu={s:1,g:1,p:1,r:1,e:1};sa.scale.log=function(){return ro(sa.scale.linear().domain([0,1]),10,!0,[1,10])};var Au=sa.format(".0e"),ku={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};sa.scale.pow=function(){return io(sa.scale.linear(),1,[0,1])},sa.scale.sqrt=function(){return sa.scale.pow().exponent(.5)},sa.scale.ordinal=function(){return ao([],{t:"range",a:[[]]})},sa.scale.category10=function(){return sa.scale.ordinal().range(Su)},sa.scale.category20=function(){return sa.scale.ordinal().range(Ou)},sa.scale.category20b=function(){return sa.scale.ordinal().range(Ru)},sa.scale.category20c=function(){return sa.scale.ordinal().range(Iu)};var Su=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Nt),Ou=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Nt),Ru=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Nt),Iu=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Nt);sa.scale.quantile=function(){return so([],[])},sa.scale.quantize=function(){return uo(0,1,[0,1])},sa.scale.threshold=function(){return co([.5],[0,1])},sa.scale.identity=function(){return lo([0,1])},sa.svg={},sa.svg.arc=function(){function t(){var t=Math.max(0,+n.apply(this,arguments)),c=Math.max(0,+r.apply(this,arguments)),l=a.apply(this,arguments)-Ya,d=s.apply(this,arguments)-Ya,p=Math.abs(d-l),f=l>d?0:1;if(t>c&&(h=c,c=t,t=h),p>=za)return e(c,f)+(t?e(t,1-f):"")+"Z";var h,g,v,m,y,x,_,b,E,w,N,C,T=0,D=0,M=[];if((m=(+u.apply(this,arguments)||0)/2)&&(v=o===Lu?Math.sqrt(t*t+c*c):+o.apply(this,arguments),f||(D*=-1),c&&(D=at(v/c*Math.sin(m))),t&&(T=at(v/t*Math.sin(m)))),c){y=c*Math.cos(l+D),x=c*Math.sin(l+D),_=c*Math.cos(d-D),b=c*Math.sin(d-D);var A=Math.abs(d-l-2*D)<=ja?0:1;if(D&&yo(y,x,_,b)===f^A){var k=(l+d)/2;y=c*Math.cos(k),x=c*Math.sin(k),_=b=null}}else y=x=0;if(t){E=t*Math.cos(d-T),w=t*Math.sin(d-T),N=t*Math.cos(l+T),C=t*Math.sin(l+T);var S=Math.abs(l-d+2*T)<=ja?0:1;if(T&&yo(E,w,N,C)===1-f^S){var O=(l+d)/2;E=t*Math.cos(O),w=t*Math.sin(O),N=C=null}}else E=w=0;if((h=Math.min(Math.abs(c-t)/2,+i.apply(this,arguments)))>.001){g=c>t^f?0:1;var R=null==N?[E,w]:null==_?[y,x]:Bn([y,x],[N,C],[_,b],[E,w]),I=y-R[0],L=x-R[1],P=_-R[0],V=b-R[1],F=1/Math.sin(Math.acos((I*P+L*V)/(Math.sqrt(I*I+L*L)*Math.sqrt(P*P+V*V)))/2),B=Math.sqrt(R[0]*R[0]+R[1]*R[1]);if(null!=_){var U=Math.min(h,(c-B)/(F+1)),j=xo(null==N?[E,w]:[N,C],[y,x],c,U,f),X=xo([_,b],[E,w],c,U,f);h===U?M.push("M",j[0],"A",U,",",U," 0 0,",g," ",j[1],"A",c,",",c," 0 ",1-f^yo(j[1][0],j[1][1],X[1][0],X[1][1]),",",f," ",X[1],"A",U,",",U," 0 0,",g," ",X[0]):M.push("M",j[0],"A",U,",",U," 0 1,",g," ",X[0])}else M.push("M",y,",",x);if(null!=N){var z=Math.min(h,(t-B)/(F-1)),Y=xo([y,x],[N,C],t,-z,f),q=xo([E,w],null==_?[y,x]:[_,b],t,-z,f);h===z?M.push("L",q[0],"A",z,",",z," 0 0,",g," ",q[1],"A",t,",",t," 0 ",f^yo(q[1][0],q[1][1],Y[1][0],Y[1][1]),",",1-f," ",Y[1],"A",z,",",z," 0 0,",g," ",Y[0]):M.push("L",q[0],"A",z,",",z," 0 0,",g," ",Y[0])}else M.push("L",E,",",w)}else M.push("M",y,",",x),null!=_&&M.push("A",c,",",c," 0 ",A,",",f," ",_,",",b),M.push("L",E,",",w),null!=N&&M.push("A",t,",",t," 0 ",S,",",1-f," ",N,",",C);return M.push("Z"),M.join("")}function e(t,e){return"M0,"+t+"A"+t+","+t+" 0 1,"+e+" 0,"+-t+"A"+t+","+t+" 0 1,"+e+" 0,"+t}var n=fo,r=ho,i=po,o=Lu,a=go,s=vo,u=mo;return t.innerRadius=function(e){return arguments.length?(n=St(e),t):n},t.outerRadius=function(e){return arguments.length?(r=St(e),t):r},t.cornerRadius=function(e){return arguments.length?(i=St(e),t):i},t.padRadius=function(e){return arguments.length?(o=e==Lu?Lu:St(e),t):o},t.startAngle=function(e){return arguments.length?(a=St(e),t):a},t.endAngle=function(e){return arguments.length?(s=St(e),t):s},t.padAngle=function(e){return arguments.length?(u=St(e),t):u},t.centroid=function(){var t=(+n.apply(this,arguments)+ +r.apply(this,arguments))/2,e=(+a.apply(this,arguments)+ +s.apply(this,arguments))/2-Ya;return[Math.cos(e)*t,Math.sin(e)*t]},t};var Lu="auto";sa.svg.line=function(){return _o(Ot)};var Pu=sa.map({linear:bo,"linear-closed":Eo,step:wo,"step-before":No,"step-after":Co,basis:So,"basis-open":Oo,"basis-closed":Ro,bundle:Io,cardinal:Mo,"cardinal-open":To,"cardinal-closed":Do,monotone:Uo});Pu.forEach(function(t,e){e.key=t,e.closed=/-closed$/.test(t)});var Vu=[0,2/3,1/3,0],Fu=[0,1/3,2/3,0],Bu=[0,1/6,2/3,1/6];sa.svg.line.radial=function(){var t=_o(jo);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},No.reverse=Co,Co.reverse=No,sa.svg.area=function(){return Xo(Ot)},sa.svg.area.radial=function(){var t=Xo(jo);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},sa.svg.chord=function(){function t(t,s){var u=e(this,o,t,s),c=e(this,a,t,s);return"M"+u.p0+r(u.r,u.p1,u.a1-u.a0)+(n(u,c)?i(u.r,u.p1,u.r,u.p0):i(u.r,u.p1,c.r,c.p0)+r(c.r,c.p1,c.a1-c.a0)+i(c.r,c.p1,u.r,u.p0))+"Z"}function e(t,e,n,r){var i=e.call(t,n,r),o=s.call(t,i,r),a=u.call(t,i,r)-Ya,l=c.call(t,i,r)-Ya;return{r:o,a0:a,a1:l,p0:[o*Math.cos(a),o*Math.sin(a)],p1:[o*Math.cos(l),o*Math.sin(l)]}}function n(t,e){return t.a0==e.a0&&t.a1==e.a1}function r(t,e,n){return"A"+t+","+t+" 0 "+ +(n>ja)+",1 "+e}function i(t,e,n,r){return"Q 0,0 "+r}var o=Nn,a=Cn,s=zo,u=go,c=vo;return t.radius=function(e){return arguments.length?(s=St(e),t):s},t.source=function(e){return arguments.length?(o=St(e),t):o},t.target=function(e){return arguments.length?(a=St(e),t):a},t.startAngle=function(e){return arguments.length?(u=St(e),t):u},t.endAngle=function(e){return arguments.length?(c=St(e),t):c},t},sa.svg.diagonal=function(){function t(t,i){var o=e.call(this,t,i),a=n.call(this,t,i),s=(o.y+a.y)/2,u=[o,{x:o.x,y:s},{x:a.x,y:s},a];return u=u.map(r),"M"+u[0]+"C"+u[1]+" "+u[2]+" "+u[3]}var e=Nn,n=Cn,r=Yo;return t.source=function(n){return arguments.length?(e=St(n),t):e},t.target=function(e){return arguments.length?(n=St(e),t):n},t.projection=function(e){return arguments.length?(r=e,t):r},t},sa.svg.diagonal.radial=function(){var t=sa.svg.diagonal(),e=Yo,n=t.projection;return t.projection=function(t){return arguments.length?n(qo(e=t)):e},t},sa.svg.symbol=function(){function t(t,r){return(Uu.get(e.call(this,t,r))||Ko)(n.call(this,t,r))}var e=Ho,n=Wo;return t.type=function(n){return arguments.length?(e=St(n),t):e},t.size=function(e){return arguments.length?(n=St(e),t):n},t};var Uu=sa.map({circle:Ko,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*Yu)),n=e*Yu;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/zu),n=e*zu/2;return"M0,"+n+"L"+e+","+-n+" "+-e+","+-n+"Z"},"triangle-up":function(t){var e=Math.sqrt(t/zu),n=e*zu/2;return"M0,"+-n+"L"+e+","+n+" "+-e+","+n+"Z"}});sa.svg.symbolTypes=Uu.keys();var ju,Xu,zu=Math.sqrt(3),Yu=Math.tan(30*qa),qu=[],Wu=0;qu.call=Sa.call,qu.empty=Sa.empty,qu.node=Sa.node,qu.size=Sa.size,sa.transition=function(t){return arguments.length?ju?t.transition():t:Ia.transition()},sa.transition.prototype=qu,qu.select=function(t){var e,n,r,i=this.id,o=this.namespace,a=[];t=k(t);for(var s=-1,u=this.length;++s<u;){a.push(e=[]);for(var c=this[s],l=-1,d=c.length;++l<d;)(r=c[l])&&(n=t.call(r,r.__data__,l,s))?("__data__"in r&&(n.__data__=r.__data__),Qo(n,l,o,i,r[o][i]),e.push(n)):e.push(null)}return Go(a,o,i)},qu.selectAll=function(t){var e,n,r,i,o,a=this.id,s=this.namespace,u=[];t=S(t);for(var c=-1,l=this.length;++c<l;)for(var d=this[c],p=-1,f=d.length;++p<f;)if(r=d[p]){o=r[s][a],n=t.call(r,r.__data__,p,c),u.push(e=[]);for(var h=-1,g=n.length;++h<g;)(i=n[h])&&Qo(i,h,s,a,o),e.push(i)}return Go(u,s,a)},qu.filter=function(t){var e,n,r,i=[];"function"!=typeof t&&(t=z(t));for(var o=0,a=this.length;a>o;o++){i.push(e=[]);for(var n=this[o],s=0,u=n.length;u>s;s++)(r=n[s])&&t.call(r,r.__data__,s,o)&&e.push(r)}return Go(i,this.namespace,this.id)},qu.tween=function(t,e){var n=this.id,r=this.namespace;return arguments.length<2?this.node()[r][n].tween.get(t):q(this,null==e?function(e){e[r][n].tween.remove(t)}:function(i){i[r][n].tween.set(t,e)})},qu.attr=function(t,e){function n(){this.removeAttribute(s)}function r(){this.removeAttributeNS(s.space,s.local)}function i(t){return null==t?n:(t+="",function(){var e,n=this.getAttribute(s);return n!==t&&(e=a(n,t),function(t){this.setAttribute(s,e(t))})})}function o(t){return null==t?r:(t+="",function(){var e,n=this.getAttributeNS(s.space,s.local);return n!==t&&(e=a(n,t),function(t){this.setAttributeNS(s.space,s.local,e(t))})})}if(arguments.length<2){for(e in t)this.attr(e,t[e]);return this}var a="transform"==t?Hr:Nr,s=sa.ns.qualify(t);return Jo(this,"attr."+t,e,s.local?o:i)},qu.attrTween=function(t,e){function n(t,n){var r=e.call(this,t,n,this.getAttribute(i));return r&&function(t){this.setAttribute(i,r(t))}}function r(t,n){var r=e.call(this,t,n,this.getAttributeNS(i.space,i.local));return r&&function(t){this.setAttributeNS(i.space,i.local,r(t))}}var i=sa.ns.qualify(t);return this.tween("attr."+t,i.local?r:n)},qu.style=function(t,e,n){function r(){this.style.removeProperty(t)}function i(e){return null==e?r:(e+="",function(){var r,i=pa.getComputedStyle(this,null).getPropertyValue(t);return i!==e&&(r=Nr(i,e),function(e){this.style.setProperty(t,r(e),n)})})}var o=arguments.length;if(3>o){if("string"!=typeof t){2>o&&(e="");for(n in t)this.style(n,t[n],e);return this}n=""}return Jo(this,"style."+t,e,i)},qu.styleTween=function(t,e,n){function r(r,i){var o=e.call(this,r,i,pa.getComputedStyle(this,null).getPropertyValue(t));return o&&function(e){this.style.setProperty(t,o(e),n)}}return arguments.length<3&&(n=""),this.tween("style."+t,r)},qu.text=function(t){return Jo(this,"text",t,$o)},qu.remove=function(){var t=this.namespace;return this.each("end.transition",function(){var e;this[t].count<2&&(e=this.parentNode)&&e.removeChild(this)})},qu.ease=function(t){var e=this.id,n=this.namespace;return arguments.length<1?this.node()[n][e].ease:("function"!=typeof t&&(t=sa.ease.apply(sa,arguments)),q(this,function(r){r[n][e].ease=t}))},qu.delay=function(t){var e=this.id,n=this.namespace;return arguments.length<1?this.node()[n][e].delay:q(this,"function"==typeof t?function(r,i,o){r[n][e].delay=+t.call(r,r.__data__,i,o)}:(t=+t,function(r){r[n][e].delay=t}))},qu.duration=function(t){var e=this.id,n=this.namespace;return arguments.length<1?this.node()[n][e].duration:q(this,"function"==typeof t?function(r,i,o){r[n][e].duration=Math.max(1,t.call(r,r.__data__,i,o))}:(t=Math.max(1,t),function(r){r[n][e].duration=t}))},qu.each=function(t,e){var n=this.id,r=this.namespace;if(arguments.length<2){var i=Xu,o=ju;ju=n,q(this,function(e,i,o){Xu=e[r][n],t.call(e,e.__data__,i,o)}),Xu=i,ju=o}else q(this,function(i){var o=i[r][n];(o.event||(o.event=sa.dispatch("start","end","interrupt"))).on(t,e)});return this},qu.transition=function(){for(var t,e,n,r,i=this.id,o=++Wu,a=this.namespace,s=[],u=0,c=this.length;c>u;u++){s.push(t=[]);for(var e=this[u],l=0,d=e.length;d>l;l++)(n=e[l])&&(r=n[a][i],Qo(n,l,a,o,{time:r.time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration})),t.push(n)}return Go(s,a,o)},sa.svg.axis=function(){function t(t){t.each(function(){var t,c=sa.select(this),l=this.__chart__||n,d=this.__chart__=n.copy(),p=null==u?d.ticks?d.ticks.apply(d,s):d.domain():u,f=null==e?d.tickFormat?d.tickFormat.apply(d,s):Ot:e,h=c.selectAll(".tick").data(p,d),g=h.enter().insert("g",".domain").attr("class","tick").style("opacity",Ba),v=sa.transition(h.exit()).style("opacity",Ba).remove(),m=sa.transition(h.order()).style("opacity",1),y=Math.max(i,0)+a,x=Yi(d),_=c.selectAll(".domain").data([0]),b=(_.enter().append("path").attr("class","domain"),sa.transition(_));g.append("line"),g.append("text");var E,w,N,C,T=g.select("line"),D=m.select("line"),M=h.select("text").text(f),A=g.select("text"),k=m.select("text"),S="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(t=ta,E="x",N="y",w="x2",C="y2",M.attr("dy",0>S?"0em":".71em").style("text-anchor","middle"),b.attr("d","M"+x[0]+","+S*o+"V0H"+x[1]+"V"+S*o)):(t=ea,E="y",N="x",w="y2",C="x2",M.attr("dy",".32em").style("text-anchor",0>S?"end":"start"),b.attr("d","M"+S*o+","+x[0]+"H0V"+x[1]+"H"+S*o)),T.attr(C,S*i),A.attr(N,S*y),D.attr(w,0).attr(C,S*i),k.attr(E,0).attr(N,S*y),d.rangeBand){var O=d,R=O.rangeBand()/2;l=d=function(t){return O(t)+R}}else l.rangeBand?l=d:v.call(t,d,l);g.call(t,l,d),m.call(t,d,d)})}var e,n=sa.scale.linear(),r=Hu,i=6,o=6,a=3,s=[10],u=null;return t.scale=function(e){return arguments.length?(n=e,t):n},t.orient=function(e){return arguments.length?(r=e in Ku?e+"":Hu,t):r},t.ticks=function(){return arguments.length?(s=arguments,t):s},t.tickValues=function(e){return arguments.length?(u=e,t):u},t.tickFormat=function(n){return arguments.length?(e=n,t):e},t.tickSize=function(e){var n=arguments.length;return n?(i=+e,o=+arguments[n-1],t):i},t.innerTickSize=function(e){return arguments.length?(i=+e,t):i},t.outerTickSize=function(e){return arguments.length?(o=+e,t):o},t.tickPadding=function(e){return arguments.length?(a=+e,t):a},t.tickSubdivide=function(){return arguments.length&&t},t};var Hu="bottom",Ku={top:1,right:1,bottom:1,left:1};sa.svg.brush=function(){function t(o){o.each(function(){var o=sa.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",i).on("touchstart.brush",i),a=o.selectAll(".background").data([0]);a.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),o.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var s=o.selectAll(".resize").data(h,Ot);s.exit().remove(),s.enter().append("g").attr("class",function(t){return"resize "+t}).style("cursor",function(t){return Gu[t]}).append("rect").attr("x",function(t){return/[ew]$/.test(t)?-3:null}).attr("y",function(t){return/^[ns]/.test(t)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),s.style("display",t.empty()?"none":null);var l,d=sa.transition(o),p=sa.transition(a);u&&(l=Yi(u),p.attr("x",l[0]).attr("width",l[1]-l[0]),n(d)),c&&(l=Yi(c),p.attr("y",l[0]).attr("height",l[1]-l[0]),r(d)),e(d)})}function e(t){t.selectAll(".resize").attr("transform",function(t){return"translate("+l[+/e$/.test(t)]+","+d[+/^s/.test(t)]+")"})}function n(t){t.select(".extent").attr("x",l[0]),t.selectAll(".extent,.n>rect,.s>rect").attr("width",l[1]-l[0])}function r(t){t.select(".extent").attr("y",d[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",d[1]-d[0])}function i(){function i(){32==sa.event.keyCode&&(M||(y=null,k[0]-=l[1],k[1]-=d[1],M=2),T())}function h(){32==sa.event.keyCode&&2==M&&(k[0]+=l[1],k[1]+=d[1],M=0,T())}function g(){var t=sa.mouse(_),i=!1;x&&(t[0]+=x[0],t[1]+=x[1]),M||(sa.event.altKey?(y||(y=[(l[0]+l[1])/2,(d[0]+d[1])/2]),k[0]=l[+(t[0]<y[0])],k[1]=d[+(t[1]<y[1])]):y=null),C&&v(t,u,0)&&(n(w),i=!0),D&&v(t,c,1)&&(r(w),i=!0),i&&(e(w),E({type:"brush",mode:M?"move":"resize"}))}function v(t,e,n){var r,i,s=Yi(e),u=s[0],c=s[1],h=k[n],g=n?d:l,v=g[1]-g[0];return M&&(u-=h,c-=v+h),r=(n?f:p)?Math.max(u,Math.min(c,t[n])):t[n],M?i=(r+=h)+v:(y&&(h=Math.max(u,Math.min(c,2*y[n]-r))),r>h?(i=r,r=h):i=h),g[0]!=r||g[1]!=i?(n?a=null:o=null,g[0]=r,g[1]=i,!0):void 0}function m(){g(),w.style("pointer-events","all").selectAll(".resize").style("display",t.empty()?"none":null),sa.select("body").style("cursor",null),S.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),A(),E({type:"brushend"})}var y,x,_=this,b=sa.select(sa.event.target),E=s.of(_,arguments),w=sa.select(_),N=b.datum(),C=!/^(n|s)$/.test(N)&&u,D=!/^(e|w)$/.test(N)&&c,M=b.classed("extent"),A=Z(),k=sa.mouse(_),S=sa.select(pa).on("keydown.brush",i).on("keyup.brush",h);if(sa.event.changedTouches?S.on("touchmove.brush",g).on("touchend.brush",m):S.on("mousemove.brush",g).on("mouseup.brush",m),w.interrupt().selectAll("*").interrupt(),M)k[0]=l[0]-k[0],k[1]=d[0]-k[1];else if(N){var O=+/w$/.test(N),R=+/^n/.test(N);x=[l[1-O]-k[0],d[1-R]-k[1]],k[0]=l[O],k[1]=d[R]}else sa.event.altKey&&(y=k.slice());w.style("pointer-events","none").selectAll(".resize").style("display",null),sa.select("body").style("cursor",b.style("cursor")),E({type:"brushstart"}),g()}var o,a,s=M(t,"brushstart","brush","brushend"),u=null,c=null,l=[0,0],d=[0,0],p=!0,f=!0,h=Ju[0];return t.event=function(t){t.each(function(){var t=s.of(this,arguments),e={x:l,y:d,i:o,j:a},n=this.__chart__||e;this.__chart__=e,ju?sa.select(this).transition().each("start.brush",function(){o=n.i,a=n.j,l=n.x,d=n.y,t({type:"brushstart"})}).tween("brush:brush",function(){var n=Cr(l,e.x),r=Cr(d,e.y);return o=a=null,function(i){l=e.x=n(i),d=e.y=r(i),t({type:"brush",mode:"resize"})}}).each("end.brush",function(){o=e.i,a=e.j,t({type:"brush",mode:"resize"}),t({type:"brushend"})}):(t({type:"brushstart"}),t({type:"brush",mode:"resize"}),t({type:"brushend"}))})},t.x=function(e){return arguments.length?(u=e,h=Ju[!u<<1|!c],t):u},t.y=function(e){return arguments.length?(c=e,h=Ju[!u<<1|!c],t):c},t.clamp=function(e){return arguments.length?(u&&c?(p=!!e[0],f=!!e[1]):u?p=!!e:c&&(f=!!e),t):u&&c?[p,f]:u?p:c?f:null},t.extent=function(e){var n,r,i,s,p;return arguments.length?(u&&(n=e[0],r=e[1],c&&(n=n[0],r=r[0]),o=[n,r],u.invert&&(n=u(n),r=u(r)),n>r&&(p=n,n=r,r=p),(n!=l[0]||r!=l[1])&&(l=[n,r])),c&&(i=e[0],s=e[1],u&&(i=i[1],s=s[1]),a=[i,s],c.invert&&(i=c(i),s=c(s)),i>s&&(p=i,i=s,s=p),(i!=d[0]||s!=d[1])&&(d=[i,s])),t):(u&&(o?(n=o[0],r=o[1]):(n=l[0],r=l[1],u.invert&&(n=u.invert(n),r=u.invert(r)),n>r&&(p=n,n=r,r=p))),c&&(a?(i=a[0],s=a[1]):(i=d[0],s=d[1],c.invert&&(i=c.invert(i),s=c.invert(s)),i>s&&(p=i,i=s,s=p))),u&&c?[[n,i],[r,s]]:u?[n,r]:c&&[i,s])},t.clear=function(){return t.empty()||(l=[0,0],d=[0,0],o=a=null),t},t.empty=function(){return!!u&&l[0]==l[1]||!!c&&d[0]==d[1]},sa.rebind(t,s,"on")};var Gu={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Ju=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],$u=ms.format=ws.timeFormat,Zu=$u.utc,Qu=Zu("%Y-%m-%dT%H:%M:%S.%LZ");$u.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?na:Qu,na.parse=function(t){var e=new Date(t);return isNaN(e)?null:e},na.toString=Qu.toString,ms.second=qt(function(t){return new ys(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(t.getTime()+1e3*Math.floor(e))},function(t){return t.getSeconds()}),ms.seconds=ms.second.range,ms.seconds.utc=ms.second.utc.range,ms.minute=qt(function(t){return new ys(6e4*Math.floor(t/6e4))},function(t,e){t.setTime(t.getTime()+6e4*Math.floor(e))},function(t){return t.getMinutes()}),ms.minutes=ms.minute.range,ms.minutes.utc=ms.minute.utc.range,ms.hour=qt(function(t){var e=t.getTimezoneOffset()/60;return new ys(36e5*(Math.floor(t/36e5-e)+e))},function(t,e){t.setTime(t.getTime()+36e5*Math.floor(e))},function(t){return t.getHours()}),ms.hours=ms.hour.range,ms.hours.utc=ms.hour.utc.range,ms.month=qt(function(t){return t=ms.day(t),t.setDate(1),t},function(t,e){t.setMonth(t.getMonth()+e)},function(t){return t.getMonth()}),ms.months=ms.month.range,ms.months.utc=ms.month.utc.range;var tc=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],ec=[[ms.second,1],[ms.second,5],[ms.second,15],[ms.second,30],[ms.minute,1],[ms.minute,5],[ms.minute,15],[ms.minute,30],[ms.hour,1],[ms.hour,3],[ms.hour,6],[ms.hour,12],[ms.day,1],[ms.day,2],[ms.week,1],[ms.month,1],[ms.month,3],[ms.year,1]],nc=$u.multi([[".%L",function(t){return t.getMilliseconds()}],[":%S",function(t){return t.getSeconds()}],["%I:%M",function(t){return t.getMinutes()}],["%I %p",function(t){return t.getHours()}],["%a %d",function(t){return t.getDay()&&1!=t.getDate()}],["%b %d",function(t){return 1!=t.getDate()}],["%B",function(t){return t.getMonth()}],["%Y",Ie]]),rc={range:function(t,e,n){return sa.range(Math.ceil(t/n)*n,+e,n).map(ia)},floor:Ot,ceil:Ot};ec.year=ms.year,ms.scale=function(){return ra(sa.scale.linear(),ec,nc)};var ic=ec.map(function(t){return[t[0].utc,t[1]]}),oc=Zu.multi([[".%L",function(t){return t.getUTCMilliseconds()}],[":%S",function(t){return t.getUTCSeconds()}],["%I:%M",function(t){return t.getUTCMinutes()}],["%I %p",function(t){return t.getUTCHours()}],["%a %d",function(t){return t.getUTCDay()&&1!=t.getUTCDate()}],["%b %d",function(t){return 1!=t.getUTCDate()}],["%B",function(t){return t.getUTCMonth()}],["%Y",Ie]]);ic.year=ms.year.utc,ms.scale.utc=function(){return ra(sa.scale.linear(),ic,oc)},sa.text=Rt(function(t){return t.responseText}),sa.json=function(t,e){return It(t,"application/json",oa,e)},sa.html=function(t,e){return It(t,"text/html",aa,e)},sa.xml=Rt(function(t){return t.responseXML}),r=sa,i="function"==typeof r?r.call(e,n,e,t):r,!(void 0!==i&&(t.exports=i)),this.d3=sa}();
  },function(t,e){var n=[].slice;t.exports=function(t,e){if("string"==typeof e&&(e=t[e]),"function"!=typeof e)throw new Error("bind() requires a function");var r=n.call(arguments,2);return function(){return e.apply(t,r.concat(n.call(arguments)))}}},function(t,e,n){(function(t){function r(e){var n,r=!1,s=!1,u=!1!==e.jsonp;if(t.location){var c="https:"==location.protocol,l=location.port;l||(l=c?443:80),r=e.hostname!=location.hostname||l!=e.port,s=e.secure!=c}if(e.xdomain=r,e.xscheme=s,n=new i(e),"open"in n&&!e.forceJSONP)return new o(e);if(!u)throw new Error("JSONP disabled");return new a(e)}var i=n(40),o=n(126),a=n(125),s=n(127);e.polling=r,e.websocket=s}).call(e,function(){return this}())},function(t,e,n){function r(t){var e=t&&t.forceBase64;(!l||e)&&(this.supportsBinary=!1),i.call(this,t)}var i=n(39),o=n(41),a=n(19),s=n(27),u=n(109),c=n(11)("engine.io-client:polling");t.exports=r;var l=function(){var t=n(40),e=new t({xdomain:!1});return null!=e.responseType}();s(r,i),r.prototype.name="polling",r.prototype.doOpen=function(){this.poll()},r.prototype.pause=function(t){function e(){c("paused"),n.readyState="paused",t()}var n=this;if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(c("we are currently polling - waiting to pause"),r++,this.once("pollComplete",function(){c("pre-pause polling complete"),--r||e()})),this.writable||(c("we are currently writing - waiting to pause"),r++,this.once("drain",function(){c("pre-pause writing complete"),--r||e()}))}else e()},r.prototype.poll=function(){c("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},r.prototype.onData=function(t){var e=this;c("polling got data %s",t);var n=function(t,n,r){return"opening"==e.readyState&&e.onOpen(),"close"==t.type?(e.onClose(),!1):void e.onPacket(t)};a.decodePayload(t,this.socket.binaryType,n),"closed"!=this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"==this.readyState?this.poll():c('ignoring poll - transport state "%s"',this.readyState))},r.prototype.doClose=function(){function t(){c("writing close packet"),e.write([{type:"close"}])}var e=this;"open"==this.readyState?(c("transport open - closing"),t()):(c("transport not open - deferring close"),this.once("open",t))},r.prototype.write=function(t){var e=this;this.writable=!1;var n=function(){e.writable=!0,e.emit("drain")},e=this;a.encodePayload(t,this.supportsBinary,function(t){e.doWrite(t,n)})},r.prototype.uri=function(){var t=this.query||{},e=this.secure?"https":"http",n="";!1!==this.timestampRequests&&(t[this.timestampParam]=u()),this.supportsBinary||t.sid||(t.b64=1),t=o.encode(t),this.port&&("https"==e&&443!=this.port||"http"==e&&80!=this.port)&&(n=":"+this.port),t.length&&(t="?"+t);var r=-1!==this.hostname.indexOf(":");return e+"://"+(r?"["+this.hostname+"]":this.hostname)+n+this.path+t}},function(t,e,n){(function(e){"use strict";var r=n(10),i={listen:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}}):t.attachEvent?(t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}):void 0},capture:function(t,n,i){return t.addEventListener?(t.addEventListener(n,i,!0),{remove:function(){t.removeEventListener(n,i,!0)}}):("production"!==e.env.NODE_ENV&&console.error("Attempted to listen to events during the capture phase on a browser that does not support the capture phase. Your application will not receive some events."),{remove:r})},registerDefault:function(){}};t.exports=i}).call(e,n(1))},function(t,e,n){"use strict";function r(t,e){var n=!0;t:for(;n;){var r=t,o=e;if(n=!1,r&&o){if(r===o)return!0;if(i(r))return!1;if(i(o)){t=r,e=o.parentNode,n=!0;continue t}return r.contains?r.contains(o):r.compareDocumentPosition?!!(16&r.compareDocumentPosition(o)):!1}return!1}}var i=n(138);t.exports=r},function(t,e){"use strict";function n(t){try{t.focus()}catch(e){}}t.exports=n},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){(function(e){"use strict";function r(t){return a?void 0:"production"!==e.env.NODE_ENV?o(!1,"Markup wrapping node not initialized"):o(!1),p.hasOwnProperty(t)||(t="*"),s.hasOwnProperty(t)||("*"===t?a.innerHTML="<link />":a.innerHTML="<"+t+"></"+t+">",s[t]=!a.firstChild),s[t]?p[t]:null}var i=n(5),o=n(2),a=i.canUseDOM?document.createElement("div"):null,s={},u=[1,'<select multiple="true">',"</select>"],c=[1,"<table>","</table>"],l=[3,"<table><tbody><tr>","</tr></tbody></table>"],d=[1,'<svg xmlns="http://www.w3.org/2000/svg">',"</svg>"],p={"*":[1,"?<div>","</div>"],area:[1,"<map>","</map>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],legend:[1,"<fieldset>","</fieldset>"],param:[1,"<object>","</object>"],tr:[2,"<table><tbody>","</tbody></table>"],optgroup:u,option:u,caption:c,colgroup:c,tbody:c,tfoot:c,thead:c,td:l,th:l},f=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];f.forEach(function(t){p[t]=d,s[t]=!0}),t.exports=r}).call(e,n(1))},function(t,e){"use strict";function n(t,e){if(t===e)return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(var o=r.bind(e),a=0;a<n.length;a++)if(!o(n[a])||t[n[a]]!==e[n[a]])return!1;return!0}var r=Object.prototype.hasOwnProperty;t.exports=n},function(t,e){var n=[].indexOf;t.exports=function(t,e){if(n)return t.indexOf(e);for(var r=0;r<t.length;++r)if(t[r]===e)return r;return-1}},function(t,e){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.exports=function(t){var e=t,i=t.indexOf("["),o=t.indexOf("]");-1!=i&&-1!=o&&(t=t.substring(0,i)+t.substring(i,o).replace(/:/g,";")+t.substring(o,t.length));for(var a=n.exec(t||""),s={},u=14;u--;)s[r[u]]=a[u]||"";return-1!=i&&-1!=o&&(s.source=e,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s}},function(t,e){"use strict";function n(t,e){return t+e.charAt(0).toUpperCase()+e.substring(1)}var r={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0},i=["Webkit","ms","Moz","O"];Object.keys(r).forEach(function(t){i.forEach(function(e){r[n(e,t)]=r[t]})});var o={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}},a={isUnitlessNumber:r,shorthandPropertyExpansions:o};t.exports=a},function(t,e,n){(function(e){"use strict";function r(t,e,n){var r=n>=t.childNodes.length?null:t.childNodes.item(n);t.insertBefore(e,r)}var i=n(154),o=n(92),a=n(8),s=n(37),u=n(57),c=n(2),l={dangerouslyReplaceNodeWithMarkup:i.dangerouslyReplaceNodeWithMarkup,updateTextContent:u,processUpdates:function(t,n){for(var a,l=null,d=null,p=0;p<t.length;p++)if(a=t[p],a.type===o.MOVE_EXISTING||a.type===o.REMOVE_NODE){var f=a.fromIndex,h=a.parentNode.childNodes[f],g=a.parentID;h?void 0:"production"!==e.env.NODE_ENV?c(!1,"processUpdates(): Unable to find child %s of element. This probably means the DOM was unexpectedly mutated (e.g., by the browser), usually due to forgetting a <tbody> when using tables, nesting tags like <form>, <p>, or <a>, or using non-SVG elements in an <svg> parent. Try inspecting the child nodes of the element with React ID `%s`.",f,g):c(!1),l=l||{},l[g]=l[g]||[],l[g][f]=h,d=d||[],d.push(h)}var v;if(v=n.length&&"string"==typeof n[0]?i.dangerouslyRenderMarkup(n):n,d)for(var m=0;m<d.length;m++)d[m].parentNode.removeChild(d[m]);for(var y=0;y<t.length;y++)switch(a=t[y],a.type){case o.INSERT_MARKUP:r(a.parentNode,v[a.markupIndex],a.toIndex);break;case o.MOVE_EXISTING:r(a.parentNode,l[a.parentID][a.fromIndex],a.toIndex);break;case o.SET_MARKUP:s(a.parentNode,a.content);break;case o.TEXT_CONTENT:u(a.parentNode,a.content);break;case o.REMOVE_NODE:}}};a.measureMethods(l,"DOMChildrenOperations",{updateTextContent:"updateTextContent"}),t.exports=l}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function r(){if(s)for(var t in u){var n=u[t],r=s.indexOf(t);if(r>-1?void 0:"production"!==e.env.NODE_ENV?a(!1,"EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.",t):a(!1),!c.plugins[r]){n.extractEvents?void 0:"production"!==e.env.NODE_ENV?a(!1,"EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.",t):a(!1),c.plugins[r]=n;var o=n.eventTypes;for(var l in o)i(o[l],n,l)?void 0:"production"!==e.env.NODE_ENV?a(!1,"EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.",l,t):a(!1)}}}function i(t,n,r){c.eventNameDispatchConfigs.hasOwnProperty(r)?"production"!==e.env.NODE_ENV?a(!1,"EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.",r):a(!1):void 0,c.eventNameDispatchConfigs[r]=t;var i=t.phasedRegistrationNames;if(i){for(var s in i)if(i.hasOwnProperty(s)){var u=i[s];o(u,n,r)}return!0}return t.registrationName?(o(t.registrationName,n,r),!0):!1}function o(t,n,r){c.registrationNameModules[t]?"production"!==e.env.NODE_ENV?a(!1,"EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.",t):a(!1):void 0,c.registrationNameModules[t]=n,c.registrationNameDependencies[t]=n.eventTypes[r].dependencies}var a=n(2),s=null,u={},c={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},injectEventPluginOrder:function(t){s?"production"!==e.env.NODE_ENV?a(!1,"EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React."):a(!1):void 0,s=Array.prototype.slice.call(t),r()},injectEventPluginsByName:function(t){var n=!1;for(var i in t)if(t.hasOwnProperty(i)){var o=t[i];u.hasOwnProperty(i)&&u[i]===o||(u[i]?"production"!==e.env.NODE_ENV?a(!1,"EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.",i):a(!1):void 0,u[i]=o,n=!0)}n&&r()},getPluginModuleForEvent:function(t){var e=t.dispatchConfig;if(e.registrationName)return c.registrationNameModules[e.registrationName]||null;for(var n in e.phasedRegistrationNames)if(e.phasedRegistrationNames.hasOwnProperty(n)){var r=c.registrationNameModules[e.phasedRegistrationNames[n]];if(r)return r}return null},_resetEventPlugins:function(){s=null;for(var t in u)u.hasOwnProperty(t)&&delete u[t];c.plugins.length=0;var e=c.eventNameDispatchConfigs;for(var n in e)e.hasOwnProperty(n)&&delete e[n];var r=c.registrationNameModules;for(var i in r)r.hasOwnProperty(i)&&delete r[i]}};t.exports=c}).call(e,n(1))},function(t,e,n){"use strict";function r(t){return(""+t).replace(_,"//")}function i(t,e){this.func=t,this.context=e,this.count=0}function o(t,e,n){var r=t.func,i=t.context;r.call(i,e,t.count++)}function a(t,e,n){if(null==t)return t;var r=i.getPooled(e,n);m(t,o,r),i.release(r)}function s(t,e,n,r){this.result=t,this.keyPrefix=e,this.func=n,this.context=r,this.count=0}function u(t,e,n){var i=t.result,o=t.keyPrefix,a=t.func,s=t.context,u=a.call(s,e,t.count++);Array.isArray(u)?c(u,i,n,v.thatReturnsArgument):null!=u&&(g.isValidElement(u)&&(u=g.cloneAndReplaceKey(u,o+(u!==e?r(u.key||"")+"/":"")+n)),i.push(u))}function c(t,e,n,i,o){var a="";null!=n&&(a=r(n)+"/");var c=s.getPooled(e,a,i,o);m(t,u,c),s.release(c)}function l(t,e,n){if(null==t)return t;var r=[];return c(t,r,null,e,n),r}function d(t,e,n){return null}function p(t,e){return m(t,d,null)}function f(t){var e=[];return c(t,e,null,v.thatReturnsArgument),e}var h=n(15),g=n(7),v=n(10),m=n(59),y=h.twoArgumentPooler,x=h.fourArgumentPooler,_=/\/(?!\/)/g;i.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},h.addPoolingTo(i,y),s.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},h.addPoolingTo(s,x);var b={forEach:a,map:l,mapIntoWithKeyPrefixInternal:c,count:p,toArray:f};t.exports=b},function(t,e,n){(function(e){"use strict";function r(){D||(D=!0,"production"!==e.env.NODE_ENV?w(!1,"setProps(...) and replaceProps(...) are deprecated. Instead, call render again at the top level."):void 0)}function i(t,n,r){for(var i in n)n.hasOwnProperty(i)&&("production"!==e.env.NODE_ENV?w("function"==typeof n[i],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",t.displayName||"ReactClass",v[r],i):void 0)}function o(t,n){var r=M.hasOwnProperty(n)?M[n]:null;k.hasOwnProperty(n)&&(r!==C.OVERRIDE_BASE?"production"!==e.env.NODE_ENV?_(!1,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",n):_(!1):void 0),t.hasOwnProperty(n)&&(r!==C.DEFINE_MANY&&r!==C.DEFINE_MANY_MERGED?"production"!==e.env.NODE_ENV?_(!1,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n):_(!1):void 0)}function a(t,n){if(n){"function"==typeof n?"production"!==e.env.NODE_ENV?_(!1,"ReactClass: You're attempting to use a component class as a mixin. Instead, just use a regular object."):_(!1):void 0,h.isValidElement(n)?"production"!==e.env.NODE_ENV?_(!1,"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object."):_(!1):void 0;var r=t.prototype;n.hasOwnProperty(N)&&A.mixins(t,n.mixins);for(var i in n)if(n.hasOwnProperty(i)&&i!==N){var a=n[i];if(o(r,i),A.hasOwnProperty(i))A[i](t,a);else{var s=M.hasOwnProperty(i),u=r.hasOwnProperty(i),d="function"==typeof a,p=d&&!s&&!u&&n.autobind!==!1;if(p)r.__reactAutoBindMap||(r.__reactAutoBindMap={}),r.__reactAutoBindMap[i]=a,r[i]=a;else if(u){var f=M[i];!s||f!==C.DEFINE_MANY_MERGED&&f!==C.DEFINE_MANY?"production"!==e.env.NODE_ENV?_(!1,"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",f,i):_(!1):void 0,f===C.DEFINE_MANY_MERGED?r[i]=c(r[i],a):f===C.DEFINE_MANY&&(r[i]=l(r[i],a))}else r[i]=a,"production"!==e.env.NODE_ENV&&"function"==typeof a&&n.displayName&&(r[i].displayName=n.displayName+"_"+i)}}}}function s(t,n){if(n)for(var r in n){var i=n[r];if(n.hasOwnProperty(r)){var o=r in A;o?"production"!==e.env.NODE_ENV?_(!1,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',r):_(!1):void 0;var a=r in t;a?"production"!==e.env.NODE_ENV?_(!1,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",r):_(!1):void 0,t[r]=i}}}function u(t,n){t&&n&&"object"==typeof t&&"object"==typeof n?void 0:"production"!==e.env.NODE_ENV?_(!1,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."):_(!1);for(var r in n)n.hasOwnProperty(r)&&(void 0!==t[r]?"production"!==e.env.NODE_ENV?_(!1,"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",r):_(!1):void 0,t[r]=n[r]);return t}function c(t,e){return function(){var n=t.apply(this,arguments),r=e.apply(this,arguments);if(null==n)return r;if(null==r)return n;var i={};return u(i,n),u(i,r),i}}function l(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function d(t,n){var r=n.bind(t);if("production"!==e.env.NODE_ENV){r.__reactBoundContext=t,r.__reactBoundMethod=n,r.__reactBoundArguments=null;var i=t.constructor.displayName,o=r.bind;r.bind=function(a){for(var s=arguments.length,u=Array(s>1?s-1:0),c=1;s>c;c++)u[c-1]=arguments[c];if(a!==t&&null!==a)"production"!==e.env.NODE_ENV?w(!1,"bind(): React component methods may only be bound to the component instance. See %s",i):void 0;else if(!u.length)return"production"!==e.env.NODE_ENV?w(!1,"bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call. See %s",i):void 0,r;var l=o.apply(r,arguments);return l.__reactBoundContext=t,l.__reactBoundMethod=n,l.__reactBoundArguments=u,l}}return r}function p(t){for(var e in t.__reactAutoBindMap)if(t.__reactAutoBindMap.hasOwnProperty(e)){var n=t.__reactAutoBindMap[e];t[e]=d(t,n)}}var f=n(79),h=n(7),g=n(32),v=n(31),m=n(94),y=n(3),x=n(21),_=n(2),b=n(28),E=n(14),w=n(4),N=E({mixins:null}),C=b({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),T=[],D=!1,M={mixins:C.DEFINE_MANY,statics:C.DEFINE_MANY,propTypes:C.DEFINE_MANY,contextTypes:C.DEFINE_MANY,childContextTypes:C.DEFINE_MANY,getDefaultProps:C.DEFINE_MANY_MERGED,getInitialState:C.DEFINE_MANY_MERGED,getChildContext:C.DEFINE_MANY_MERGED,render:C.DEFINE_ONCE,componentWillMount:C.DEFINE_MANY,componentDidMount:C.DEFINE_MANY,componentWillReceiveProps:C.DEFINE_MANY,shouldComponentUpdate:C.DEFINE_ONCE,componentWillUpdate:C.DEFINE_MANY,componentDidUpdate:C.DEFINE_MANY,componentWillUnmount:C.DEFINE_MANY,updateComponent:C.OVERRIDE_BASE},A={displayName:function(t,e){t.displayName=e},mixins:function(t,e){if(e)for(var n=0;n<e.length;n++)a(t,e[n])},childContextTypes:function(t,n){"production"!==e.env.NODE_ENV&&i(t,n,g.childContext),t.childContextTypes=y({},t.childContextTypes,n)},contextTypes:function(t,n){"production"!==e.env.NODE_ENV&&i(t,n,g.context),t.contextTypes=y({},t.contextTypes,n)},getDefaultProps:function(t,e){t.getDefaultProps?t.getDefaultProps=c(t.getDefaultProps,e):t.getDefaultProps=e},propTypes:function(t,n){"production"!==e.env.NODE_ENV&&i(t,n,g.prop),t.propTypes=y({},t.propTypes,n)},statics:function(t,e){s(t,e)},autobind:function(){}},k={replaceState:function(t,e){this.updater.enqueueReplaceState(this,t),e&&this.updater.enqueueCallback(this,e)},isMounted:function(){return this.updater.isMounted(this)},setProps:function(t,n){"production"!==e.env.NODE_ENV&&r(),this.updater.enqueueSetProps(this,t),n&&this.updater.enqueueCallback(this,n)},replaceProps:function(t,n){"production"!==e.env.NODE_ENV&&r(),this.updater.enqueueReplaceProps(this,t),n&&this.updater.enqueueCallback(this,n)}},S=function(){};y(S.prototype,f.prototype,k);var O={createClass:function(t){var n=function(t,r,i){"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?w(this instanceof n,"Something is calling a React component directly. Use a factory or JSX instead. See: https://fb.me/react-legacyfactory"):void 0),this.__reactAutoBindMap&&p(this),this.props=t,this.context=r,this.refs=x,this.updater=i||m,this.state=null;var o=this.getInitialState?this.getInitialState():null;"production"!==e.env.NODE_ENV&&"undefined"==typeof o&&this.getInitialState._isMockFunction&&(o=null),"object"!=typeof o||Array.isArray(o)?"production"!==e.env.NODE_ENV?_(!1,"%s.getInitialState(): must return an object or null",n.displayName||"ReactCompositeComponent"):_(!1):void 0,this.state=o};n.prototype=new S,n.prototype.constructor=n,T.forEach(a.bind(null,n)),a(n,t),n.getDefaultProps&&(n.defaultProps=n.getDefaultProps()),"production"!==e.env.NODE_ENV&&(n.getDefaultProps&&(n.getDefaultProps.isReactClassApproved={}),n.prototype.getInitialState&&(n.prototype.getInitialState.isReactClassApproved={})),n.prototype.render?void 0:"production"!==e.env.NODE_ENV?_(!1,"createClass(...): Class specification must implement a `render` method."):_(!1),"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?w(!n.prototype.componentShouldUpdate,"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",t.displayName||"A component"):void 0,"production"!==e.env.NODE_ENV?w(!n.prototype.componentWillRecieveProps,"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",t.displayName||"A component"):void 0);for(var r in M)n.prototype[r]||(n.prototype[r]=null);return n},injection:{injectMixin:function(t){T.push(t)}}};t.exports=O}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function r(t,e,n){this.props=t,this.context=e,this.refs=a,this.updater=n||i}var i=n(94),o=n(35),a=n(21),s=n(2),u=n(4);if(r.prototype.isReactComponent={},r.prototype.setState=function(t,n){"object"!=typeof t&&"function"!=typeof t&&null!=t?"production"!==e.env.NODE_ENV?s(!1,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."):s(!1):void 0,"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?u(null!=t,"setState(...): You passed an undefined or null state object; instead, use forceUpdate()."):void 0),this.updater.enqueueSetState(this,t),n&&this.updater.enqueueCallback(this,n)},r.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this),t&&this.updater.enqueueCallback(this,t)},"production"!==e.env.NODE_ENV){var c={getDOMNode:["getDOMNode","Use ReactDOM.findDOMNode(component) instead."],isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceProps:["replaceProps","Instead, call render again at the top level."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."],setProps:["setProps","Instead, call render again at the top level."]},l=function(t,n){o&&Object.defineProperty(r.prototype,t,{get:function(){"production"!==e.env.NODE_ENV?u(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",n[0],n[1]):void 0}})};for(var d in c)c.hasOwnProperty(d)&&l(d,c[d])}t.exports=r}).call(e,n(1))},function(t,e,n){(function(e){"use strict";var r=n(13),i=n(83),o=n(85),a=n(20),s=n(6),u=n(8),c=n(17),l=n(9),d=n(49),p=n(50),f=n(205),h=n(4);o.inject();var g=u.measure("React","render",s.render),v={findDOMNode:p,render:g,unmountComponentAtNode:s.unmountComponentAtNode,version:d,unstable_batchedUpdates:l.batchedUpdates,unstable_renderSubtreeIntoContainer:f};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({CurrentOwner:r,InstanceHandles:a,Mount:s,Reconciler:c,TextComponent:i}),"production"!==e.env.NODE_ENV){var m=n(5);if(m.canUseDOM&&window.top===window.self){"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&(navigator.userAgent.indexOf("Chrome")>-1&&-1===navigator.userAgent.indexOf("Edge")||navigator.userAgent.indexOf("Firefox")>-1)&&console.debug("Download the React DevTools for a better development experience: https://fb.me/react-devtools");var y=document.documentMode&&document.documentMode<8;"production"!==e.env.NODE_ENV?h(!y,'Internet Explorer is running in compatibility mode; please add the following tag to your HTML to prevent this from happening: <meta http-equiv="X-UA-Compatible" content="IE=edge" />'):void 0;for(var x=[Array.isArray,Array.prototype.every,Array.prototype.forEach,Array.prototype.indexOf,Array.prototype.map,Date.now,Function.prototype.bind,Object.keys,String.prototype.split,String.prototype.trim,Object.create,Object.freeze],_=0;_<x.length;_++)if(!x[_]){console.error("One or more ES5 shim/shams expected by React are not available: https://fb.me/react-warning-polyfills");break}}}t.exports=v}).call(e,n(1))},function(t,e){"use strict";var n={useCreateElement:!1};t.exports=n},function(t,e,n){(function(e){"use strict";function r(){if(this._rootNodeID&&this._wrapperState.pendingUpdate){this._wrapperState.pendingUpdate=!1;var t=this._currentElement.props,e=u.getValue(t);null!=e&&a(this,Boolean(t.multiple),e)}}function i(t){if(t){var e=t.getName();if(e)return" Check the render method of `"+e+"`."}return""}function o(t,n){var r=t._currentElement._owner;u.checkPropTypes("select",n,r);for(var o=0;o<h.length;o++){var a=h[o];null!=n[a]&&(n.multiple?"production"!==e.env.NODE_ENV?p(Array.isArray(n[a]),"The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",a,i(r)):void 0:"production"!==e.env.NODE_ENV?p(!Array.isArray(n[a]),"The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",a,i(r)):void 0)}}function a(t,e,n){var r,i,o=c.getNode(t._rootNodeID).options;if(e){for(r={},i=0;i<n.length;i++)r[""+n[i]]=!0;for(i=0;i<o.length;i++){var a=r.hasOwnProperty(o[i].value);o[i].selected!==a&&(o[i].selected=a)}}else{for(r=""+n,i=0;i<o.length;i++)if(o[i].value===r)return void(o[i].selected=!0);o.length&&(o[0].selected=!0)}}function s(t){var e=this._currentElement.props,n=u.executeOnChange(e,t);return this._wrapperState.pendingUpdate=!0,l.asap(r,this),n}var u=n(44),c=n(6),l=n(9),d=n(3),p=n(4),f="__ReactDOMSelect_value$"+Math.random().toString(36).slice(2),h=["value","defaultValue"],g={valueContextKey:f,getNativeProps:function(t,e,n){return d({},e,{onChange:t._wrapperState.onChange,value:void 0})},mountWrapper:function(t,n){"production"!==e.env.NODE_ENV&&o(t,n);var r=u.getValue(n);t._wrapperState={pendingUpdate:!1,initialValue:null!=r?r:n.defaultValue,onChange:s.bind(t),wasMultiple:Boolean(n.multiple)}},processChildContext:function(t,e,n){var r=d({},n);return r[f]=t._wrapperState.initialValue,r},postUpdateWrapper:function(t){var e=t._currentElement.props;t._wrapperState.initialValue=void 0;var n=t._wrapperState.wasMultiple;t._wrapperState.wasMultiple=Boolean(e.multiple);var r=u.getValue(e);null!=r?(t._wrapperState.pendingUpdate=!1,a(t,Boolean(e.multiple),r)):n!==Boolean(e.multiple)&&(null!=e.defaultValue?a(t,Boolean(e.multiple),e.defaultValue):a(t,Boolean(e.multiple),e.multiple?[]:""))}};t.exports=g}).call(e,n(1))},function(t,e,n){(function(e){"use strict";var r=n(75),i=n(43),o=n(45),a=n(6),s=n(3),u=n(36),c=n(57),l=n(60),d=function(t){};s(d.prototype,{construct:function(t){this._currentElement=t,this._stringText=""+t,this._rootNodeID=null,this._mountIndex=0},mountComponent:function(t,n,r){if("production"!==e.env.NODE_ENV&&r[l.ancestorInfoContextKey]&&l("span",null,r[l.ancestorInfoContextKey]),this._rootNodeID=t,n.useCreateElement){var o=r[a.ownerDocumentContextKey],s=o.createElement("span");return i.setAttributeForID(s,t),a.getID(s),c(s,this._stringText),s}var d=u(this._stringText);return n.renderToStaticMarkup?d:"<span "+i.createMarkupForID(t)+">"+d+"</span>"},receiveComponent:function(t,e){if(t!==this._currentElement){this._currentElement=t;var n=""+t;if(n!==this._stringText){this._stringText=n;var i=a.getNode(this._rootNodeID);r.updateTextContent(i,n)}}},unmountComponent:function(){o.unmountIDFromEnvironment(this._rootNodeID)}}),t.exports=d}).call(e,n(1))},function(t,e,n){"use strict";function r(){this.reinitializeTransaction()}var i=n(9),o=n(34),a=n(3),s=n(10),u={initialize:s,close:function(){p.isBatchingUpdates=!1}},c={initialize:s,close:i.flushBatchedUpdates.bind(i)},l=[c,u];a(r.prototype,o.Mixin,{getTransactionWrappers:function(){return l}});var d=new r,p={isBatchingUpdates:!1,batchedUpdates:function(t,e,n,r,i,o){var a=p.isBatchingUpdates;p.isBatchingUpdates=!0,a?t(e,n,r,i,o):d.perform(t,null,e,n,r,i,o)}};t.exports=p},function(t,e,n){(function(e){"use strict";function r(){if(!C&&(C=!0,m.EventEmitter.injectReactEventListener(v),m.EventPluginHub.injectEventPluginOrder(s),m.EventPluginHub.injectInstanceHandle(y),m.EventPluginHub.injectMount(x),m.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:w,EnterLeaveEventPlugin:u,ChangeEventPlugin:o,SelectEventPlugin:b,BeforeInputEventPlugin:i}),m.NativeComponent.injectGenericComponentClass(h),m.NativeComponent.injectTextComponentClass(g),m.Class.injectMixin(d),m.DOMProperty.injectDOMPropertyConfig(l),m.DOMProperty.injectDOMPropertyConfig(N),m.EmptyComponent.injectEmptyComponent("noscript"),m.Updates.injectReconcileTransaction(_),m.Updates.injectBatchingStrategy(f),m.RootIndex.injectCreateReactRootIndex(c.canUseDOM?a.createReactRootIndex:E.createReactRootIndex),m.Component.injectEnvironment(p),"production"!==e.env.NODE_ENV)){var t=c.canUseDOM&&window.location.href||"";if(/[?&]react_perf\b/.test(t)){var r=n(172);r.start()}}}var i=n(150),o=n(152),a=n(153),s=n(155),u=n(156),c=n(5),l=n(159),d=n(161),p=n(45),f=n(84),h=n(165),g=n(83),v=n(175),m=n(176),y=n(20),x=n(6),_=n(180),b=n(186),E=n(187),w=n(188),N=n(185),C=!1;t.exports={inject:r}}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function r(){if(p.current){var t=p.current.getName();if(t)return" Check the render method of `"+t+"`."}return""}function i(t,n){if(t._store&&!t._store.validated&&null==t.key){t._store.validated=!0;var r=o("uniqueKey",t,n);null!==r&&("production"!==e.env.NODE_ENV?v(!1,'Each child in an array or iterator should have a unique "key" prop.%s%s%s',r.parentOrOwner||"",r.childOwner||"",r.url||""):void 0)}}function o(t,e,n){var i=r();if(!i){var o="string"==typeof n?n:n.displayName||n.name;o&&(i=" Check the top-level render call using <"+o+">.")}var a=m[t]||(m[t]={});if(a[i])return null;a[i]=!0;var s={parentOrOwner:i,url:" See https://fb.me/react-warning-keys for more information.",childOwner:null};return e&&e._owner&&e._owner!==p.current&&(s.childOwner=" It was passed a child from "+e._owner.getName()+"."),s}function a(t,e){if("object"==typeof t)if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];c.isValidElement(r)&&i(r,e)}else if(c.isValidElement(t))t._store&&(t._store.validated=!0);else if(t){var o=h(t);if(o&&o!==t.entries)for(var a,s=o.call(t);!(a=s.next()).done;)c.isValidElement(a.value)&&i(a.value,e)}}function s(t,n,i,o){for(var a in n)if(n.hasOwnProperty(a)){var s;try{"function"!=typeof n[a]?"production"!==e.env.NODE_ENV?g(!1,"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",t||"React class",d[o],a):g(!1):void 0,s=n[a](i,a,t,o)}catch(u){s=u}if("production"!==e.env.NODE_ENV?v(!s||s instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",t||"React class",d[o],a,typeof s):void 0,s instanceof Error&&!(s.message in y)){y[s.message]=!0;var c=r();"production"!==e.env.NODE_ENV?v(!1,"Failed propType: %s%s",s.message,c):void 0}}}function u(t){var n=t.type;if("function"==typeof n){var r=n.displayName||n.name;n.propTypes&&s(r,n.propTypes,t.props,l.prop),"function"==typeof n.getDefaultProps&&("production"!==e.env.NODE_ENV?v(n.getDefaultProps.isReactClassApproved,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."):void 0)}}var c=n(7),l=n(32),d=n(31),p=n(13),f=n(35),h=n(54),g=n(2),v=n(4),m={},y={},x={createElement:function(t,n,i){var o="string"==typeof t||"function"==typeof t;"production"!==e.env.NODE_ENV?v(o,"React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass (for composite components).%s",r()):void 0;
  var s=c.createElement.apply(this,arguments);if(null==s)return s;if(o)for(var l=2;l<arguments.length;l++)a(arguments[l],t);return u(s),s},createFactory:function(t){var n=x.createElement.bind(null,t);return n.type=t,"production"!==e.env.NODE_ENV&&f&&Object.defineProperty(n,"type",{enumerable:!1,get:function(){return"production"!==e.env.NODE_ENV?v(!1,"Factory.type is deprecated. Access the class directly before passing it to createFactory."):void 0,Object.defineProperty(this,"type",{value:t}),t}}),n},cloneElement:function(t,e,n){for(var r=c.cloneElement.apply(this,arguments),i=2;i<arguments.length;i++)a(arguments[i],r.type);return u(r),r}};t.exports=x}).call(e,n(1))},function(t,e,n){"use strict";var r,i=n(7),o=n(88),a=n(17),s=n(3),u={injectEmptyComponent:function(t){r=i.createElement(t)}},c=function(t){this._currentElement=null,this._rootNodeID=null,this._renderedComponent=t(r)};s(c.prototype,{construct:function(t){},mountComponent:function(t,e,n){return o.registerNullComponentID(t),this._rootNodeID=t,a.mountComponent(this._renderedComponent,t,e,n)},receiveComponent:function(){},unmountComponent:function(t,e,n){a.unmountComponent(this._renderedComponent),o.deregisterNullComponentID(this._rootNodeID),this._rootNodeID=null,this._renderedComponent=null}}),c.injection=u,t.exports=c},function(t,e){"use strict";function n(t){return!!o[t]}function r(t){o[t]=!0}function i(t){delete o[t]}var o={},a={isNullComponentID:n,registerNullComponentID:r,deregisterNullComponentID:i};t.exports=a},function(t,e,n){(function(e){"use strict";function n(t,e,n,i){try{return e(n,i)}catch(o){return void(null===r&&(r=o))}}var r=null,i={invokeGuardedCallback:n,invokeGuardedCallbackWithCatch:n,rethrowCaughtError:function(){if(r){var t=r;throw r=null,t}}};if("production"!==e.env.NODE_ENV&&"undefined"!=typeof window&&"function"==typeof window.dispatchEvent&&"undefined"!=typeof document&&"function"==typeof document.createEvent){var o=document.createElement("react");i.invokeGuardedCallback=function(t,e,n,r){var i=e.bind(null,n,r),a="react-"+t;o.addEventListener(a,i,!1);var s=document.createEvent("Event");s.initEvent(a,!1,!1),o.dispatchEvent(s),o.removeEventListener(a,i,!1)}}t.exports=i}).call(e,n(1))},function(t,e,n){"use strict";function r(t){return o(document.documentElement,t)}var i=n(169),o=n(67),a=n(68),s=n(69),u={hasSelectionCapabilities:function(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&"text"===t.type||"textarea"===e||"true"===t.contentEditable)},getSelectionInformation:function(){var t=s();return{focusedElem:t,selectionRange:u.hasSelectionCapabilities(t)?u.getSelection(t):null}},restoreSelection:function(t){var e=s(),n=t.focusedElem,i=t.selectionRange;e!==n&&r(n)&&(u.hasSelectionCapabilities(n)&&u.setSelection(n,i),a(n))},getSelection:function(t){var e;if("selectionStart"in t)e={start:t.selectionStart,end:t.selectionEnd};else if(document.selection&&t.nodeName&&"input"===t.nodeName.toLowerCase()){var n=document.selection.createRange();n.parentElement()===t&&(e={start:-n.moveStart("character",-t.value.length),end:-n.moveEnd("character",-t.value.length)})}else e=i.getOffsets(t);return e||{start:0,end:0}},setSelection:function(t,e){var n=e.start,r=e.end;if("undefined"==typeof r&&(r=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(r,t.value.length);else if(document.selection&&t.nodeName&&"input"===t.nodeName.toLowerCase()){var o=t.createTextRange();o.collapse(!0),o.moveStart("character",n),o.moveEnd("character",r-n),o.select()}else i.setOffsets(t,e)}};t.exports=u},function(t,e,n){"use strict";var r=n(197),i=/\/?>/,o={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(t){var e=r(t);return t.replace(i," "+o.CHECKSUM_ATTR_NAME+'="'+e+'"$&')},canReuseMarkup:function(t,e){var n=e.getAttribute(o.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var i=r(t);return i===n}};t.exports=o},function(t,e,n){"use strict";var r=n(28),i=r({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,SET_MARKUP:null,TEXT_CONTENT:null});t.exports=i},function(t,e,n){(function(e){"use strict";function r(t){if("function"==typeof t.type)return t.type;var e=t.type,n=d[e];return null==n&&(d[e]=n=c(e)),n}function i(t){return l?void 0:"production"!==e.env.NODE_ENV?u(!1,"There is no registered component for the tag %s",t.type):u(!1),new l(t.type,t.props)}function o(t){return new p(t)}function a(t){return t instanceof p}var s=n(3),u=n(2),c=null,l=null,d={},p=null,f={injectGenericComponentClass:function(t){l=t},injectTextComponentClass:function(t){p=t},injectComponentClasses:function(t){s(d,t)}},h={getComponentClassForElement:r,createInternalComponent:i,createInstanceForText:o,isTextComponent:a,injection:f};t.exports=h}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function r(t,n){"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?i(!1,"%s(...): Can only update a mounted or mounting component. This usually means you called %s() on an unmounted component. This is a no-op. Please check the code for the %s component.",n,n,t.constructor&&t.constructor.displayName||""):void 0)}var i=n(4),o={isMounted:function(t){return!1},enqueueCallback:function(t,e){},enqueueForceUpdate:function(t){r(t,"forceUpdate")},enqueueReplaceState:function(t,e){r(t,"replaceState")},enqueueSetState:function(t,e){r(t,"setState")},enqueueSetProps:function(t,e){r(t,"setProps")},enqueueReplaceProps:function(t,e){r(t,"replaceProps")}};t.exports=o}).call(e,n(1))},function(t,e,n){"use strict";function r(t){function e(e,n,r,i,o,a){if(i=i||E,a=a||r,null==n[r]){var s=x[o];return e?new Error("Required "+s+" `"+a+"` was not specified in "+("`"+i+"`.")):null}return t(n,r,i,o,a)}var n=e.bind(null,!1);return n.isRequired=e.bind(null,!0),n}function i(t){function e(e,n,r,i,o){var a=e[n],s=g(a);if(s!==t){var u=x[i],c=v(a);return new Error("Invalid "+u+" `"+o+"` of type "+("`"+c+"` supplied to `"+r+"`, expected ")+("`"+t+"`."))}return null}return r(e)}function o(){return r(_.thatReturns(null))}function a(t){function e(e,n,r,i,o){var a=e[n];if(!Array.isArray(a)){var s=x[i],u=g(a);return new Error("Invalid "+s+" `"+o+"` of type "+("`"+u+"` supplied to `"+r+"`, expected an array."))}for(var c=0;c<a.length;c++){var l=t(a,c,r,i,o+"["+c+"]");if(l instanceof Error)return l}return null}return r(e)}function s(){function t(t,e,n,r,i){if(!y.isValidElement(t[e])){var o=x[r];return new Error("Invalid "+o+" `"+i+"` supplied to "+("`"+n+"`, expected a single ReactElement."))}return null}return r(t)}function u(t){function e(e,n,r,i,o){if(!(e[n]instanceof t)){var a=x[i],s=t.name||E,u=m(e[n]);return new Error("Invalid "+a+" `"+o+"` of type "+("`"+u+"` supplied to `"+r+"`, expected ")+("instance of `"+s+"`."))}return null}return r(e)}function c(t){function e(e,n,r,i,o){for(var a=e[n],s=0;s<t.length;s++)if(a===t[s])return null;var u=x[i],c=JSON.stringify(t);return new Error("Invalid "+u+" `"+o+"` of value `"+a+"` "+("supplied to `"+r+"`, expected one of "+c+"."))}return r(Array.isArray(t)?e:function(){return new Error("Invalid argument supplied to oneOf, expected an instance of array.")})}function l(t){function e(e,n,r,i,o){var a=e[n],s=g(a);if("object"!==s){var u=x[i];return new Error("Invalid "+u+" `"+o+"` of type "+("`"+s+"` supplied to `"+r+"`, expected an object."))}for(var c in a)if(a.hasOwnProperty(c)){var l=t(a,c,r,i,o+"."+c);if(l instanceof Error)return l}return null}return r(e)}function d(t){function e(e,n,r,i,o){for(var a=0;a<t.length;a++){var s=t[a];if(null==s(e,n,r,i,o))return null}var u=x[i];return new Error("Invalid "+u+" `"+o+"` supplied to "+("`"+r+"`."))}return r(Array.isArray(t)?e:function(){return new Error("Invalid argument supplied to oneOfType, expected an instance of array.")})}function p(){function t(t,e,n,r,i){if(!h(t[e])){var o=x[r];return new Error("Invalid "+o+" `"+i+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return null}return r(t)}function f(t){function e(e,n,r,i,o){var a=e[n],s=g(a);if("object"!==s){var u=x[i];return new Error("Invalid "+u+" `"+o+"` of type `"+s+"` "+("supplied to `"+r+"`, expected `object`."))}for(var c in t){var l=t[c];if(l){var d=l(a,c,r,i,o+"."+c);if(d)return d}}return null}return r(e)}function h(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(h);if(null===t||y.isValidElement(t))return!0;var e=b(t);if(!e)return!1;var n,r=e.call(t);if(e!==t.entries){for(;!(n=r.next()).done;)if(!h(n.value))return!1}else for(;!(n=r.next()).done;){var i=n.value;if(i&&!h(i[1]))return!1}return!0;default:return!1}}function g(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":e}function v(t){var e=g(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function m(t){return t.constructor&&t.constructor.name?t.constructor.name:"<<anonymous>>"}var y=n(7),x=n(31),_=n(10),b=n(54),E="<<anonymous>>",w={array:i("array"),bool:i("boolean"),func:i("function"),number:i("number"),object:i("object"),string:i("string"),any:o(),arrayOf:a,element:s(),instanceOf:u,node:p(),objectOf:l,oneOf:c,oneOfType:d,shape:f};t.exports=w},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={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(t){n.currentScrollLeft=t.x,n.currentScrollTop=t.y}};t.exports=n},function(t,e,n){(function(e){"use strict";function r(t,n){if(null==n?"production"!==e.env.NODE_ENV?i(!1,"accumulateInto(...): Accumulated items must not be null or undefined."):i(!1):void 0,null==t)return n;var r=Array.isArray(t),o=Array.isArray(n);return r&&o?(t.push.apply(t,n),t):r?(t.push(n),t):o?[t].concat(n):[t,n]}var i=n(2);t.exports=r}).call(e,n(1))},function(t,e){"use strict";var n=function(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)};t.exports=n},function(t,e,n){"use strict";function r(){return!o&&i.canUseDOM&&(o="textContent"in document.documentElement?"textContent":"innerText"),o}var i=n(5),o=null;t.exports=r},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,n){"use strict";t.exports=n(160)},function(t,e,n){function r(t,e){return this instanceof r?(t&&"object"==typeof t&&(e=t,t=void 0),e=e||{},e.path=e.path||"/socket.io",this.nsps={},this.subs=[],this.opts=e,this.reconnection(e.reconnection!==!1),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(e.randomizationFactor||.5),this.backoff=new p({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this.readyState="closed",this.uri=t,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[],this.encoder=new s.Encoder,this.decoder=new s.Decoder,this.autoConnect=e.autoConnect!==!1,void(this.autoConnect&&this.open())):new r(t,e)}var i=n(122),o=n(105),a=n(106),s=n(61),u=n(104),c=n(63),l=n(11)("socket.io-client:manager"),d=n(72),p=n(114),f=Object.prototype.hasOwnProperty;t.exports=r,r.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var t in this.nsps)f.call(this.nsps,t)&&this.nsps[t].emit.apply(this.nsps[t],arguments)},r.prototype.updateSocketIds=function(){for(var t in this.nsps)f.call(this.nsps,t)&&(this.nsps[t].id=this.engine.id)},a(r.prototype),r.prototype.reconnection=function(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection},r.prototype.reconnectionAttempts=function(t){return arguments.length?(this._reconnectionAttempts=t,this):this._reconnectionAttempts},r.prototype.reconnectionDelay=function(t){return arguments.length?(this._reconnectionDelay=t,this.backoff&&this.backoff.setMin(t),this):this._reconnectionDelay},r.prototype.randomizationFactor=function(t){return arguments.length?(this._randomizationFactor=t,this.backoff&&this.backoff.setJitter(t),this):this._randomizationFactor},r.prototype.reconnectionDelayMax=function(t){return arguments.length?(this._reconnectionDelayMax=t,this.backoff&&this.backoff.setMax(t),this):this._reconnectionDelayMax},r.prototype.timeout=function(t){return arguments.length?(this._timeout=t,this):this._timeout},r.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},r.prototype.open=r.prototype.connect=function(t){if(l("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;l("opening %s",this.uri),this.engine=i(this.uri,this.opts);var e=this.engine,n=this;this.readyState="opening",this.skipReconnect=!1;var r=u(e,"open",function(){n.onopen(),t&&t()}),o=u(e,"error",function(e){if(l("connect_error"),n.cleanup(),n.readyState="closed",n.emitAll("connect_error",e),t){var r=new Error("Connection error");r.data=e,t(r)}else n.maybeReconnectOnOpen()});if(!1!==this._timeout){var a=this._timeout;l("connect attempt will timeout after %d",a);var s=setTimeout(function(){l("connect attempt timed out after %d",a),r.destroy(),e.close(),e.emit("error","timeout"),n.emitAll("connect_timeout",a)},a);this.subs.push({destroy:function(){clearTimeout(s)}})}return this.subs.push(r),this.subs.push(o),this},r.prototype.onopen=function(){l("open"),this.cleanup(),this.readyState="open",this.emit("open");var t=this.engine;this.subs.push(u(t,"data",c(this,"ondata"))),this.subs.push(u(t,"ping",c(this,"onping"))),this.subs.push(u(t,"pong",c(this,"onpong"))),this.subs.push(u(t,"error",c(this,"onerror"))),this.subs.push(u(t,"close",c(this,"onclose"))),this.subs.push(u(this.decoder,"decoded",c(this,"ondecoded")))},r.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},r.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},r.prototype.ondata=function(t){this.decoder.add(t)},r.prototype.ondecoded=function(t){this.emit("packet",t)},r.prototype.onerror=function(t){l("error",t),this.emitAll("error",t)},r.prototype.socket=function(t){function e(){~d(r.connecting,n)||r.connecting.push(n)}var n=this.nsps[t];if(!n){n=new o(this,t),this.nsps[t]=n;var r=this;n.on("connecting",e),n.on("connect",function(){n.id=r.engine.id}),this.autoConnect&&e()}return n},r.prototype.destroy=function(t){var e=d(this.connecting,t);~e&&this.connecting.splice(e,1),this.connecting.length||this.close()},r.prototype.packet=function(t){l("writing packet %j",t);var e=this;e.encoding?e.packetBuffer.push(t):(e.encoding=!0,this.encoder.encode(t,function(n){for(var r=0;r<n.length;r++)e.engine.write(n[r],t.options);e.encoding=!1,e.processPacketQueue()}))},r.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}},r.prototype.cleanup=function(){l("cleanup");for(var t;t=this.subs.shift();)t.destroy();this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},r.prototype.close=r.prototype.disconnect=function(){l("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"==this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},r.prototype.onclose=function(t){l("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",t),this._reconnection&&!this.skipReconnect&&this.reconnect()},r.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var t=this;if(this.backoff.attempts>=this._reconnectionAttempts)l("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var e=this.backoff.duration();l("will wait %dms before reconnect attempt",e),this.reconnecting=!0;var n=setTimeout(function(){t.skipReconnect||(l("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),t.skipReconnect||t.open(function(e){e?(l("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",e.data)):(l("reconnect success"),t.onreconnect())}))},e);this.subs.push({destroy:function(){clearTimeout(n)}})}},r.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)}},function(t,e){function n(t,e,n){return t.on(e,n),{destroy:function(){t.removeListener(e,n)}}}t.exports=n},function(t,e,n){function r(t,e){this.io=t,this.nsp=e,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.io.autoConnect&&this.open()}var i=n(61),o=n(106),a=n(212),s=n(104),u=n(63),c=n(11)("socket.io-client:socket"),l=n(144);t.exports=e=r;var d={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},p=o.prototype.emit;o(r.prototype),r.prototype.subEvents=function(){if(!this.subs){var t=this.io;this.subs=[s(t,"open",u(this,"onopen")),s(t,"packet",u(this,"onpacket")),s(t,"close",u(this,"onclose"))]}},r.prototype.open=r.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.open(),"open"==this.io.readyState&&this.onopen(),this.emit("connecting"),this)},r.prototype.send=function(){var t=a(arguments);return t.unshift("message"),this.emit.apply(this,t),this},r.prototype.emit=function(t){if(d.hasOwnProperty(t))return p.apply(this,arguments),this;var e=a(arguments),n=i.EVENT;l(e)&&(n=i.BINARY_EVENT);var r={type:n,data:e};return r.options={},r.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof e[e.length-1]&&(c("emitting packet with ack id %d",this.ids),this.acks[this.ids]=e.pop(),r.id=this.ids++),this.connected?this.packet(r):this.sendBuffer.push(r),delete this.flags,this},r.prototype.packet=function(t){t.nsp=this.nsp,this.io.packet(t)},r.prototype.onopen=function(){c("transport is open - connecting"),"/"!=this.nsp&&this.packet({type:i.CONNECT})},r.prototype.onclose=function(t){c("close (%s)",t),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",t)},r.prototype.onpacket=function(t){if(t.nsp==this.nsp)switch(t.type){case i.CONNECT:this.onconnect();break;case i.EVENT:this.onevent(t);break;case i.BINARY_EVENT:this.onevent(t);break;case i.ACK:this.onack(t);break;case i.BINARY_ACK:this.onack(t);break;case i.DISCONNECT:this.ondisconnect();break;case i.ERROR:this.emit("error",t.data)}},r.prototype.onevent=function(t){var e=t.data||[];c("emitting event %j",e),null!=t.id&&(c("attaching ack callback to event"),e.push(this.ack(t.id))),this.connected?p.apply(this,e):this.receiveBuffer.push(e)},r.prototype.ack=function(t){var e=this,n=!1;return function(){if(!n){n=!0;var r=a(arguments);c("sending ack %j",r);var o=l(r)?i.BINARY_ACK:i.ACK;e.packet({type:o,id:t,data:r})}}},r.prototype.onack=function(t){var e=this.acks[t.id];"function"==typeof e?(c("calling ack %s with %j",t.id,t.data),e.apply(this,t.data),delete this.acks[t.id]):c("bad ack %s",t.id)},r.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},r.prototype.emitBuffered=function(){var t;for(t=0;t<this.receiveBuffer.length;t++)p.apply(this,this.receiveBuffer[t]);for(this.receiveBuffer=[],t=0;t<this.sendBuffer.length;t++)this.packet(this.sendBuffer[t]);this.sendBuffer=[]},r.prototype.ondisconnect=function(){c("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},r.prototype.destroy=function(){if(this.subs){for(var t=0;t<this.subs.length;t++)this.subs[t].destroy();this.subs=null}this.io.destroy(this)},r.prototype.close=r.prototype.disconnect=function(){return this.connected&&(c("performing disconnect (%s)",this.nsp),this.packet({type:i.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},r.prototype.compress=function(t){return this.flags=this.flags||{},this.flags.compress=t,this}},function(t,e){function n(t){return t?r(t):void 0}function r(t){for(var e in n.prototype)t[e]=n.prototype[e];return t}t.exports=n,n.prototype.on=n.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},n.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===e||r.fn===e){n.splice(i,1);break}return this},n.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks["$"+t];if(n){n=n.slice(0);for(var r=0,i=n.length;i>r;++r)n[r].apply(this,e)}return this},n.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},n.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t,e){(function(e){function n(t){return e.Buffer&&e.Buffer.isBuffer(t)||e.ArrayBuffer&&t instanceof ArrayBuffer}t.exports=n}).call(e,function(){return this}())},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e){"use strict";function n(t){var e="";do e=a[t%s]+e,t=Math.floor(t/s);while(t>0);return e}function r(t){var e=0;for(l=0;l<t.length;l++)e=e*s+u[t.charAt(l)];return e}function i(){var t=n(+new Date);return t!==o?(c=0,o=t):t+"."+n(c++)}for(var o,a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),s=64,u={},c=0,l=0;s>l;l++)u[a[l]]=l;i.encode=n,i.decode=r,t.exports=i},function(t,e){function n(t,e,n){function i(t,r){if(i.count<=0)throw new Error("after called too many times");--i.count,t?(o=!0,e(t),e=n):0!==i.count||o||e(null,r)}var o=!1;return n=n||r,i.count=t,0===t?e():i}function r(){}t.exports=n},function(t,e){t.exports=function(t,e,n){var r=t.byteLength;if(e=e||0,n=n||r,t.slice)return t.slice(e,n);if(0>e&&(e+=r),0>n&&(n+=r),n>r&&(n=r),e>=r||e>=n||0===r)return new ArrayBuffer(0);for(var i=new Uint8Array(t),o=new Uint8Array(n-e),a=e,s=0;n>a;a++,s++)o[s]=i[a];return o.buffer}},function(t,e,n){var r=n(102);t.exports=r.createClass({displayName:"exports",render:function(){return r.createElement("footer",null,r.createElement("div",{className:"container"},r.createElement("div",null,r.createElement("p",null,"by ",r.createElement("a",{href:"http://www.emant.altervista.org",target:"_blank"},"em-ant")," |",r.createElement("a",{href:"https://github.com/Em-Ant",target:"_blank"},"@github")," |",r.createElement("a",{href:"http://codepen.io/Em-Ant/",target:"_blank"},"@codepen")," |",r.createElement("a",{href:"http://www.freecodecamp.com/em-ant",target:"_blank"},"@freeCodeCamp")),r.createElement("p",null,"Powered by ",r.createElement("a",{className:"Quandl",href:"https://www.quandl.com/",target:"_blank"},"Quandl"),"."))))}})},function(t,e){"use strict";function n(){this.ready=function(t){return"function"==typeof t?"complete"===document.readyState?t():void document.addEventListener("DOMContentLoaded",t,!1):void 0},this.ajaxRequest=function(t,e,n,r,i){var o=new XMLHttpRequest;if(o.onreadystatechange=function(){4===o.readyState&&(200===o.status?n(JSON.parse(o.response)):r?r({err:o.statusText}):console.log(o.statusText))},"/"===e.slice(-1)&&(e=e.slice(0,e.length-1)),i){var a=[];for(var s in i)a.push(s+"="+encodeURIComponent(i[s])),a.push("&");switch(a.pop(),a=a.join(""),t.toLowerCase()){case"get":case"delete":e+="?"+a,o.open(t,e,!0),o.send();break;case"put":case"post":o.open(t,e,!0),o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o.send(a);break;default:return}}else o.open(t,e,!0),o.send()}}t.exports=n},function(t,e){function n(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}t.exports=n,n.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-n:t+n}return 0|Math.min(t,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(t){this.ms=t},n.prototype.setMax=function(t){this.max=t},n.prototype.setJitter=function(t){this.jitter=t}},function(t,e){!function(t){"use strict";e.encode=function(e){var n,r=new Uint8Array(e),i=r.length,o="";for(n=0;i>n;n+=3)o+=t[r[n]>>2],o+=t[(3&r[n])<<4|r[n+1]>>4],o+=t[(15&r[n+1])<<2|r[n+2]>>6],o+=t[63&r[n+2]];return i%3===2?o=o.substring(0,o.length-1)+"=":i%3===1&&(o=o.substring(0,o.length-2)+"=="),o},e.decode=function(e){var n,r,i,o,a,s=.75*e.length,u=e.length,c=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var l=new ArrayBuffer(s),d=new Uint8Array(l);for(n=0;u>n;n+=4)r=t.indexOf(e[n]),i=t.indexOf(e[n+1]),o=t.indexOf(e[n+2]),a=t.indexOf(e[n+3]),d[c++]=r<<2|i>>4,d[c++]=(15&i)<<4|o>>2,d[c++]=(3&o)<<6|63&a;return l}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},function(t,e){(function(e){function n(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.buffer instanceof ArrayBuffer){var r=n.buffer;if(n.byteLength!==r.byteLength){var i=new Uint8Array(n.byteLength);i.set(new Uint8Array(r,n.byteOffset,n.byteLength)),r=i.buffer}t[e]=r}}}function r(t,e){e=e||{};var r=new o;n(t);for(var i=0;i<t.length;i++)r.append(t[i]);return e.type?r.getBlob(e.type):r.getBlob()}function i(t,e){return n(t),new Blob(t,e||{})}var o=e.BlobBuilder||e.WebKitBlobBuilder||e.MSBlobBuilder||e.MozBlobBuilder,a=function(){try{var t=new Blob(["hi"]);return 2===t.size}catch(e){return!1}}(),s=a&&function(){try{var t=new Blob([new Uint8Array([1,2])]);return 2===t.size}catch(e){return!1}}(),u=o&&o.prototype.append&&o.prototype.getBlob;t.exports=function(){return a?s?e.Blob:i:u?r:void 0}()}).call(e,function(){return this}())},function(t,e,n){var r,i,o;!function(a){"use strict";function s(t){this.owner=t}function u(t,e){if(Object.create)e.prototype=Object.create(t.prototype);else{var n=function(){};n.prototype=t.prototype,e.prototype=new n}return e.prototype.constructor=e,e}function c(t){var e=this.internal=new l(this);e.loadConfig(t),e.init(),function n(t,e,r){Object.keys(t).forEach(function(i){e[i]=t[i].bind(r),Object.keys(t[i]).length>0&&n(t[i],e[i],r)})}(f,this,this)}function l(t){var e=this;e.d3=a.d3?a.d3:n(62),e.api=t,e.config=e.getDefaultConfig(),e.data={},e.cache={},e.axes={}}function d(t){s.call(this,t)}function p(t,e){function n(t,e){t.attr("transform",function(t){return"translate("+Math.ceil(e(t)+_)+", 0)"})}function r(t,e){t.attr("transform",function(t){return"translate(0,"+Math.ceil(e(t))+")"})}function i(t){var e=t[0],n=t[t.length-1];return n>e?[e,n]:[n,e]}function o(t){var e,n,r=[];if(t.ticks)return t.ticks.apply(t,f);for(n=t.domain(),e=Math.ceil(n[0]);e<n[1];e++)r.push(e);return r.length>0&&r[0]>0&&r.unshift(r[0]-(r[1]-r[0])),r}function a(){var t,n=g.copy();return e.isCategory&&(t=g.domain(),n.domain([t[0],t[1]-1])),n}function s(t){var e=p?p(t):t;return"undefined"!=typeof e?e:""}function u(t){if(S)return S;var e={h:11.5,w:5.5};return t.select("text").text(s).each(function(t){var n=this.getBoundingClientRect(),r=s(t),i=n.height,o=r?n.width/r.length:void 0;i&&o&&(e.h=i,e.w=o)}).text(""),S=e,e}function c(n){return e.withoutTransition?n:t.transition(n)}function l(p){p.each(function(){function p(t,n){function r(t,e){o=void 0;for(var s=1;s<e.length;s++)if(" "===e.charAt(s)&&(o=s),i=e.substr(0,s+1),a=W.w*i.length,a>n)return r(t.concat(e.substr(0,o?o:s)),e.slice(o?o+1:s));return t.concat(e)}var i,o,a,u=s(t),c=[];return"[object Array]"===Object.prototype.toString.call(u)?u:((!n||0>=n)&&(n=G?95:e.isCategory?Math.ceil(S(O[1])-S(O[0]))-12:110),r(c,u+""))}function f(t,e){var n=W.h;return 0===e&&(n="left"===v||"right"===v?-((H[t.index]-1)*(W.h/2)-3):".71em"),n}function b(t){var e=g(t)+(h?0:_);return V[0]<e&&e<V[1]?m:0}function E(t){return t?t>0?"start":"end":"middle"}function w(t){return t?"rotate("+t+")":""}function N(t){return t?8*Math.sin(Math.PI*(t/180)):0}function C(t){return t?11.5-2.5*(t/15)*(t>0?1:-1):K}var T,D,M,A=l.g=t.select(this),k=this.__chart__||g,S=this.__chart__=a(),O=x?x:o(S),R=A.selectAll(".tick").data(O,S),I=R.enter().insert("g",".domain").attr("class","tick").style("opacity",1e-6),L=R.exit().remove(),P=c(R).style("opacity",1),V=g.rangeExtent?g.rangeExtent():i(g.range()),F=A.selectAll(".domain").data([0]),B=(F.enter().append("path").attr("class","domain"),c(F));I.append("line"),I.append("text");var U=I.select("line"),j=P.select("line"),X=I.select("text"),z=P.select("text");e.isCategory?(_=Math.ceil((S(1)-S(0))/2),D=h?0:_,M=h?_:0):_=D=0;var Y,q,W=u(A.select(".tick")),H=[],K=Math.max(m,0)+y,G="left"===v||"right"===v;Y=R.select("text"),q=Y.selectAll("tspan").data(function(t,n){var r=e.tickMultiline?p(t,e.tickWidth):[].concat(s(t));return H[n]=r.length,r.map(function(t){return{index:n,splitted:t}})}),q.enter().append("tspan"),q.exit().remove(),q.text(function(t){return t.splitted});var J=e.tickTextRotate;switch(v){case"bottom":T=n,U.attr("y2",m),X.attr("y",K),j.attr("x1",D).attr("x2",D).attr("y2",b),z.attr("x",0).attr("y",C(J)).style("text-anchor",E(J)).attr("transform",w(J)),q.attr("x",0).attr("dy",f).attr("dx",N(J)),B.attr("d","M"+V[0]+","+d+"V0H"+V[1]+"V"+d);break;case"top":T=n,U.attr("y2",-m),X.attr("y",-K),j.attr("x2",0).attr("y2",-m),z.attr("x",0).attr("y",-K),Y.style("text-anchor","middle"),q.attr("x",0).attr("dy","0em"),B.attr("d","M"+V[0]+","+-d+"V0H"+V[1]+"V"+-d);break;case"left":T=r,U.attr("x2",-m),X.attr("x",-K),j.attr("x2",-m).attr("y1",M).attr("y2",M),z.attr("x",-K).attr("y",_),Y.style("text-anchor","end"),q.attr("x",-K).attr("dy",f),B.attr("d","M"+-d+","+V[0]+"H0V"+V[1]+"H"+-d);break;case"right":T=r,U.attr("x2",m),X.attr("x",K),j.attr("x2",m).attr("y2",0),z.attr("x",K).attr("y",0),Y.style("text-anchor","start"),q.attr("x",K).attr("dy",f),B.attr("d","M"+d+","+V[0]+"H0V"+V[1]+"H"+d)}if(S.rangeBand){var $=S,Z=$.rangeBand()/2;k=S=function(t){return $(t)+Z}}else k.rangeBand?k=S:L.call(T,S);I.call(T,k),P.call(T,S)})}var d,p,f,h,g=t.scale.linear(),v="bottom",m=6,y=3,x=null,_=0,b=!0;return e=e||{},d=e.withOuterTick?6:0,l.scale=function(t){return arguments.length?(g=t,l):g},l.orient=function(t){return arguments.length?(v=t in{top:1,right:1,bottom:1,left:1}?t+"":"bottom",l):v},l.tickFormat=function(t){return arguments.length?(p=t,l):p},l.tickCentered=function(t){return arguments.length?(h=t,l):h},l.tickOffset=function(){return _},l.tickInterval=function(){var t,n;return e.isCategory?t=2*_:(n=l.g.select("path.domain").node().getTotalLength()-2*d,t=n/l.g.selectAll("line").size()),t===1/0?0:t},l.ticks=function(){return arguments.length?(f=arguments,l):f},l.tickCulling=function(t){return arguments.length?(b=t,l):b},l.tickValues=function(t){if("function"==typeof t)x=function(){return t(g.domain())};else{if(!arguments.length)return x;x=t}return l},l}var f,h,g,v={version:"0.4.10"};v.generate=function(t){return new c(t)},v.chart={fn:c.prototype,internal:{fn:l.prototype,axis:{fn:d.prototype}}},f=v.chart.fn,h=v.chart.internal.fn,g=v.chart.internal.axis.fn,h.init=function(){var t=this,e=t.config;if(t.initParams(),e.data_url)t.convertUrlToData(e.data_url,e.data_mimeType,e.data_keys,t.initWithData);else if(e.data_json)t.initWithData(t.convertJsonToData(e.data_json,e.data_keys));else if(e.data_rows)t.initWithData(t.convertRowsToData(e.data_rows));else{if(!e.data_columns)throw Error("url or json or rows or columns is required.");t.initWithData(t.convertColumnsToData(e.data_columns))}},h.initParams=function(){
  var t=this,e=t.d3,n=t.config;t.clipId="c3-"+ +new Date+"-clip",t.clipIdForXAxis=t.clipId+"-xaxis",t.clipIdForYAxis=t.clipId+"-yaxis",t.clipIdForGrid=t.clipId+"-grid",t.clipIdForSubchart=t.clipId+"-subchart",t.clipPath=t.getClipPath(t.clipId),t.clipPathForXAxis=t.getClipPath(t.clipIdForXAxis),t.clipPathForYAxis=t.getClipPath(t.clipIdForYAxis),t.clipPathForGrid=t.getClipPath(t.clipIdForGrid),t.clipPathForSubchart=t.getClipPath(t.clipIdForSubchart),t.dragStart=null,t.dragging=!1,t.flowing=!1,t.cancelClick=!1,t.mouseover=!1,t.transiting=!1,t.color=t.generateColor(),t.levelColor=t.generateLevelColor(),t.dataTimeFormat=n.data_xLocaltime?e.time.format:e.time.format.utc,t.axisTimeFormat=n.axis_x_localtime?e.time.format:e.time.format.utc,t.defaultAxisTimeFormat=t.axisTimeFormat.multi([[".%L",function(t){return t.getMilliseconds()}],[":%S",function(t){return t.getSeconds()}],["%I:%M",function(t){return t.getMinutes()}],["%I %p",function(t){return t.getHours()}],["%-m/%-d",function(t){return t.getDay()&&1!==t.getDate()}],["%-m/%-d",function(t){return 1!==t.getDate()}],["%-m/%-d",function(t){return t.getMonth()}],["%Y/%-m/%-d",function(){return!0}]]),t.hiddenTargetIds=[],t.hiddenLegendIds=[],t.focusedTargetIds=[],t.defocusedTargetIds=[],t.xOrient=n.axis_rotated?"left":"bottom",t.yOrient=n.axis_rotated?n.axis_y_inner?"top":"bottom":n.axis_y_inner?"right":"left",t.y2Orient=n.axis_rotated?n.axis_y2_inner?"bottom":"top":n.axis_y2_inner?"left":"right",t.subXOrient=n.axis_rotated?"left":"bottom",t.isLegendRight="right"===n.legend_position,t.isLegendInset="inset"===n.legend_position,t.isLegendTop="top-left"===n.legend_inset_anchor||"top-right"===n.legend_inset_anchor,t.isLegendLeft="top-left"===n.legend_inset_anchor||"bottom-left"===n.legend_inset_anchor,t.legendStep=0,t.legendItemWidth=0,t.legendItemHeight=0,t.currentMaxTickWidths={x:0,y:0,y2:0},t.rotated_padding_left=30,t.rotated_padding_right=n.axis_rotated&&!n.axis_x_show?0:30,t.rotated_padding_top=5,t.withoutFadeIn={},t.intervalForObserveInserted=void 0,t.axes.subx=e.selectAll([])},h.initChartElements=function(){this.initBar&&this.initBar(),this.initLine&&this.initLine(),this.initArc&&this.initArc(),this.initGauge&&this.initGauge(),this.initText&&this.initText()},h.initWithData=function(t){var e,n,r=this,i=r.d3,o=r.config,s=!0;r.axis=new d(r),r.initPie&&r.initPie(),r.initBrush&&r.initBrush(),r.initZoom&&r.initZoom(),o.bindto?"function"==typeof o.bindto.node?r.selectChart=o.bindto:r.selectChart=i.select(o.bindto):r.selectChart=i.selectAll([]),r.selectChart.empty()&&(r.selectChart=i.select(document.createElement("div")).style("opacity",0),r.observeInserted(r.selectChart),s=!1),r.selectChart.html("").classed("c3",!0),r.data.xs={},r.data.targets=r.convertDataToTargets(t),o.data_filter&&(r.data.targets=r.data.targets.filter(o.data_filter)),o.data_hide&&r.addHiddenTargetIds(o.data_hide===!0?r.mapToIds(r.data.targets):o.data_hide),o.legend_hide&&r.addHiddenLegendIds(o.legend_hide===!0?r.mapToIds(r.data.targets):o.legend_hide),r.hasType("gauge")&&(o.legend_show=!1),r.updateSizes(),r.updateScales(),r.x.domain(i.extent(r.getXDomain(r.data.targets))),r.y.domain(r.getYDomain(r.data.targets,"y")),r.y2.domain(r.getYDomain(r.data.targets,"y2")),r.subX.domain(r.x.domain()),r.subY.domain(r.y.domain()),r.subY2.domain(r.y2.domain()),r.orgXDomain=r.x.domain(),r.brush&&r.brush.scale(r.subX),o.zoom_enabled&&r.zoom.scale(r.x),r.svg=r.selectChart.append("svg").style("overflow","hidden").on("mouseenter",function(){return o.onmouseover.call(r)}).on("mouseleave",function(){return o.onmouseout.call(r)}),e=r.svg.append("defs"),r.clipChart=r.appendClip(e,r.clipId),r.clipXAxis=r.appendClip(e,r.clipIdForXAxis),r.clipYAxis=r.appendClip(e,r.clipIdForYAxis),r.clipGrid=r.appendClip(e,r.clipIdForGrid),r.clipSubchart=r.appendClip(e,r.clipIdForSubchart),r.updateSvgSize(),n=r.main=r.svg.append("g").attr("transform",r.getTranslate("main")),r.initSubchart&&r.initSubchart(),r.initTooltip&&r.initTooltip(),r.initLegend&&r.initLegend(),n.append("text").attr("class",m.text+" "+m.empty).attr("text-anchor","middle").attr("dominant-baseline","middle"),r.initRegion(),r.initGrid(),n.append("g").attr("clip-path",r.clipPath).attr("class",m.chart),o.grid_lines_front&&r.initGridLines(),r.initEventRect(),r.initChartElements(),n.insert("rect",o.zoom_privileged?null:"g."+m.regions).attr("class",m.zoomRect).attr("width",r.width).attr("height",r.height).style("opacity",0).on("dblclick.zoom",null),o.axis_x_extent&&r.brush.extent(r.getDefaultExtent()),r.axis.init(),r.updateTargets(r.data.targets),s&&(r.updateDimension(),r.config.oninit.call(r),r.redraw({withTransition:!1,withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransitionForAxis:!1})),null==a.onresize&&(a.onresize=r.generateResize()),a.onresize.add&&(a.onresize.add(function(){o.onresize.call(r)}),a.onresize.add(function(){r.api.flush()}),a.onresize.add(function(){o.onresized.call(r)})),r.api.element=r.selectChart.node()},h.smoothLines=function(t,e){var n=this;"grid"===e&&t.each(function(){var t=n.d3.select(this),e=t.attr("x1"),r=t.attr("x2"),i=t.attr("y1"),o=t.attr("y2");t.attr({x1:Math.ceil(e),x2:Math.ceil(r),y1:Math.ceil(i),y2:Math.ceil(o)})})},h.updateSizes=function(){var t=this,e=t.config,n=t.legend?t.getLegendHeight():0,r=t.legend?t.getLegendWidth():0,i=t.isLegendRight||t.isLegendInset?0:n,o=t.hasArcType(),a=e.axis_rotated||o?0:t.getHorizontalAxisHeight("x"),s=e.subchart_show&&!o?e.subchart_size_height+a:0;t.currentWidth=t.getCurrentWidth(),t.currentHeight=t.getCurrentHeight(),t.margin=e.axis_rotated?{top:t.getHorizontalAxisHeight("y2")+t.getCurrentPaddingTop(),right:o?0:t.getCurrentPaddingRight(),bottom:t.getHorizontalAxisHeight("y")+i+t.getCurrentPaddingBottom(),left:s+(o?0:t.getCurrentPaddingLeft())}:{top:4+t.getCurrentPaddingTop(),right:o?0:t.getCurrentPaddingRight(),bottom:a+s+i+t.getCurrentPaddingBottom(),left:o?0:t.getCurrentPaddingLeft()},t.margin2=e.axis_rotated?{top:t.margin.top,right:NaN,bottom:20+i,left:t.rotated_padding_left}:{top:t.currentHeight-s-i,right:NaN,bottom:a+i,left:t.margin.left},t.margin3={top:0,right:NaN,bottom:0,left:0},t.updateSizeForLegend&&t.updateSizeForLegend(n,r),t.width=t.currentWidth-t.margin.left-t.margin.right,t.height=t.currentHeight-t.margin.top-t.margin.bottom,t.width<0&&(t.width=0),t.height<0&&(t.height=0),t.width2=e.axis_rotated?t.margin.left-t.rotated_padding_left-t.rotated_padding_right:t.width,t.height2=e.axis_rotated?t.height:t.currentHeight-t.margin2.top-t.margin2.bottom,t.width2<0&&(t.width2=0),t.height2<0&&(t.height2=0),t.arcWidth=t.width-(t.isLegendRight?r+10:0),t.arcHeight=t.height-(t.isLegendRight?0:10),t.hasType("gauge")&&(t.arcHeight+=t.height-t.getGaugeLabelHeight()),t.updateRadius&&t.updateRadius(),t.isLegendRight&&o&&(t.margin3.left=t.arcWidth/2+1.1*t.radiusExpanded)},h.updateTargets=function(t){var e=this;e.updateTargetsForText(t),e.updateTargetsForBar(t),e.updateTargetsForLine(t),e.hasArcType()&&e.updateTargetsForArc&&e.updateTargetsForArc(t),e.updateTargetsForSubchart&&e.updateTargetsForSubchart(t),e.showTargets()},h.showTargets=function(){var t=this;t.svg.selectAll("."+m.target).filter(function(e){return t.isTargetToShow(e.id)}).transition().duration(t.config.transition_duration).style("opacity",1)},h.redraw=function(t,e){var n,r,i,o,a,s,u,c,l,d,p,f,h,g,v,y,x,_,b,E,w,N,C,T,D,A,k,S,O,R=this,I=R.main,L=R.d3,P=R.config,V=R.getShapeIndices(R.isAreaType),F=R.getShapeIndices(R.isBarType),B=R.getShapeIndices(R.isLineType),U=R.hasArcType(),j=R.filterTargetsToShow(R.data.targets),X=R.xv.bind(R);if(t=t||{},n=M(t,"withY",!0),r=M(t,"withSubchart",!0),i=M(t,"withTransition",!0),s=M(t,"withTransform",!1),u=M(t,"withUpdateXDomain",!1),c=M(t,"withUpdateOrgXDomain",!1),l=M(t,"withTrimXDomain",!0),h=M(t,"withUpdateXAxis",u),d=M(t,"withLegend",!1),p=M(t,"withEventRect",!0),f=M(t,"withDimension",!0),o=M(t,"withTransitionForExit",i),a=M(t,"withTransitionForAxis",i),b=i?P.transition_duration:0,E=o?b:0,w=a?b:0,e=e||R.axis.generateTransitions(w),d&&P.legend_show?R.updateLegend(R.mapToIds(R.data.targets),t,e):f&&R.updateDimension(!0),R.isCategorized()&&0===j.length&&R.x.domain([0,R.axes.x.selectAll(".tick").size()]),j.length?(R.updateXDomain(j,u,c,l),P.axis_x_tick_values||(T=R.axis.updateXAxisTickValues(j))):(R.xAxis.tickValues([]),R.subXAxis.tickValues([])),P.zoom_rescale&&!t.flow&&(k=R.x.orgDomain()),R.y.domain(R.getYDomain(j,"y",k)),R.y2.domain(R.getYDomain(j,"y2",k)),!P.axis_y_tick_values&&P.axis_y_tick_count&&R.yAxis.tickValues(R.axis.generateTickValues(R.y.domain(),P.axis_y_tick_count)),!P.axis_y2_tick_values&&P.axis_y2_tick_count&&R.y2Axis.tickValues(R.axis.generateTickValues(R.y2.domain(),P.axis_y2_tick_count)),R.axis.redraw(e,U),R.axis.updateLabels(i),(u||h)&&j.length)if(P.axis_x_tick_culling&&T){for(D=1;D<T.length;D++)if(T.length/D<P.axis_x_tick_culling_max){A=D;break}R.svg.selectAll("."+m.axisX+" .tick text").each(function(t){var e=T.indexOf(t);e>=0&&L.select(this).style("display",e%A?"none":"block")})}else R.svg.selectAll("."+m.axisX+" .tick text").style("display","block");g=R.generateDrawArea?R.generateDrawArea(V,!1):void 0,v=R.generateDrawBar?R.generateDrawBar(F):void 0,y=R.generateDrawLine?R.generateDrawLine(B,!1):void 0,x=R.generateXYForText(V,F,B,!0),_=R.generateXYForText(V,F,B,!1),n&&(R.subY.domain(R.getYDomain(j,"y")),R.subY2.domain(R.getYDomain(j,"y2"))),R.tooltip.style("display","none"),R.updateXgridFocus(),I.select("text."+m.text+"."+m.empty).attr("x",R.width/2).attr("y",R.height/2).text(P.data_empty_label_text).transition().style("opacity",j.length?0:1),R.updateGrid(b),R.updateRegion(b),R.updateBar(E),R.updateLine(E),R.updateArea(E),R.updateCircle(),R.hasDataLabel()&&R.updateText(E),R.redrawArc&&R.redrawArc(b,E,s),R.redrawSubchart&&R.redrawSubchart(r,e,b,E,V,F,B),I.selectAll("."+m.selectedCircles).filter(R.isBarType.bind(R)).selectAll("circle").remove(),P.interaction_enabled&&!t.flow&&p&&(R.redrawEventRect(),R.updateZoom&&R.updateZoom()),R.updateCircleY(),S=(R.config.axis_rotated?R.circleY:R.circleX).bind(R),O=(R.config.axis_rotated?R.circleX:R.circleY).bind(R),t.flow&&(C=R.generateFlow({targets:j,flow:t.flow,duration:t.flow.duration,drawBar:v,drawLine:y,drawArea:g,cx:S,cy:O,xv:X,xForText:x,yForText:_})),(b||C)&&R.isTabVisible()?L.transition().duration(b).each(function(){var e=[];[R.redrawBar(v,!0),R.redrawLine(y,!0),R.redrawArea(g,!0),R.redrawCircle(S,O,!0),R.redrawText(x,_,t.flow,!0),R.redrawRegion(!0),R.redrawGrid(!0)].forEach(function(t){t.forEach(function(t){e.push(t)})}),N=R.generateWait(),e.forEach(function(t){N.add(t)})}).call(N,function(){C&&C(),P.onrendered&&P.onrendered.call(R)}):(R.redrawBar(v),R.redrawLine(y),R.redrawArea(g),R.redrawCircle(S,O),R.redrawText(x,_,t.flow),R.redrawRegion(),R.redrawGrid(),P.onrendered&&P.onrendered.call(R)),R.mapToIds(R.data.targets).forEach(function(t){R.withoutFadeIn[t]=!0})},h.updateAndRedraw=function(t){var e,n=this,r=n.config;t=t||{},t.withTransition=M(t,"withTransition",!0),t.withTransform=M(t,"withTransform",!1),t.withLegend=M(t,"withLegend",!1),t.withUpdateXDomain=!0,t.withUpdateOrgXDomain=!0,t.withTransitionForExit=!1,t.withTransitionForTransform=M(t,"withTransitionForTransform",t.withTransition),n.updateSizes(),t.withLegend&&r.legend_show||(e=n.axis.generateTransitions(t.withTransitionForAxis?r.transition_duration:0),n.updateScales(),n.updateSvgSize(),n.transformAll(t.withTransitionForTransform,e)),n.redraw(t,e)},h.redrawWithoutRescale=function(){this.redraw({withY:!1,withSubchart:!1,withEventRect:!1,withTransitionForAxis:!1})},h.isTimeSeries=function(){return"timeseries"===this.config.axis_x_type},h.isCategorized=function(){return this.config.axis_x_type.indexOf("categor")>=0},h.isCustomX=function(){var t=this,e=t.config;return!t.isTimeSeries()&&(e.data_x||D(e.data_xs))},h.isTimeSeriesY=function(){return"timeseries"===this.config.axis_y_type},h.getTranslate=function(t){var e,n,r=this,i=r.config;return"main"===t?(e=N(r.margin.left),n=N(r.margin.top)):"context"===t?(e=N(r.margin2.left),n=N(r.margin2.top)):"legend"===t?(e=r.margin3.left,n=r.margin3.top):"x"===t?(e=0,n=i.axis_rotated?0:r.height):"y"===t?(e=0,n=i.axis_rotated?r.height:0):"y2"===t?(e=i.axis_rotated?0:r.width,n=i.axis_rotated?1:0):"subx"===t?(e=0,n=i.axis_rotated?0:r.height2):"arc"===t&&(e=r.arcWidth/2,n=r.arcHeight/2),"translate("+e+","+n+")"},h.initialOpacity=function(t){return null!==t.value&&this.withoutFadeIn[t.id]?1:0},h.initialOpacityForCircle=function(t){return null!==t.value&&this.withoutFadeIn[t.id]?this.opacityForCircle(t):0},h.opacityForCircle=function(t){var e=this.config.point_show?1:0;return y(t.value)?this.isScatterType(t)?.5:e:0},h.opacityForText=function(){return this.hasDataLabel()?1:0},h.xx=function(t){return t?this.x(t.x):null},h.xv=function(t){var e=this,n=t.value;return e.isTimeSeries()?n=e.parseDate(t.value):e.isCategorized()&&"string"==typeof t.value&&(n=e.config.axis_x_categories.indexOf(t.value)),Math.ceil(e.x(n))},h.yv=function(t){var e=this,n=t.axis&&"y2"===t.axis?e.y2:e.y;return Math.ceil(n(t.value))},h.subxx=function(t){return t?this.subX(t.x):null},h.transformMain=function(t,e){var n,r,i,o=this;e&&e.axisX?n=e.axisX:(n=o.main.select("."+m.axisX),t&&(n=n.transition())),e&&e.axisY?r=e.axisY:(r=o.main.select("."+m.axisY),t&&(r=r.transition())),e&&e.axisY2?i=e.axisY2:(i=o.main.select("."+m.axisY2),t&&(i=i.transition())),(t?o.main.transition():o.main).attr("transform",o.getTranslate("main")),n.attr("transform",o.getTranslate("x")),r.attr("transform",o.getTranslate("y")),i.attr("transform",o.getTranslate("y2")),o.main.select("."+m.chartArcs).attr("transform",o.getTranslate("arc"))},h.transformAll=function(t,e){var n=this;n.transformMain(t,e),n.config.subchart_show&&n.transformContext(t,e),n.legend&&n.transformLegend(t)},h.updateSvgSize=function(){var t=this,e=t.svg.select(".c3-brush .background");t.svg.attr("width",t.currentWidth).attr("height",t.currentHeight),t.svg.selectAll(["#"+t.clipId,"#"+t.clipIdForGrid]).select("rect").attr("width",t.width).attr("height",t.height),t.svg.select("#"+t.clipIdForXAxis).select("rect").attr("x",t.getXAxisClipX.bind(t)).attr("y",t.getXAxisClipY.bind(t)).attr("width",t.getXAxisClipWidth.bind(t)).attr("height",t.getXAxisClipHeight.bind(t)),t.svg.select("#"+t.clipIdForYAxis).select("rect").attr("x",t.getYAxisClipX.bind(t)).attr("y",t.getYAxisClipY.bind(t)).attr("width",t.getYAxisClipWidth.bind(t)).attr("height",t.getYAxisClipHeight.bind(t)),t.svg.select("#"+t.clipIdForSubchart).select("rect").attr("width",t.width).attr("height",e.size()?e.attr("height"):0),t.svg.select("."+m.zoomRect).attr("width",t.width).attr("height",t.height),t.selectChart.style("max-height",t.currentHeight+"px")},h.updateDimension=function(t){var e=this;t||(e.config.axis_rotated?(e.axes.x.call(e.xAxis),e.axes.subx.call(e.subXAxis)):(e.axes.y.call(e.yAxis),e.axes.y2.call(e.y2Axis))),e.updateSizes(),e.updateScales(),e.updateSvgSize(),e.transformAll(!1)},h.observeInserted=function(t){var e,n=this;return"undefined"==typeof MutationObserver?void a.console.error("MutationObserver not defined."):(e=new MutationObserver(function(r){r.forEach(function(r){"childList"===r.type&&r.previousSibling&&(e.disconnect(),n.intervalForObserveInserted=a.setInterval(function(){t.node().parentNode&&(a.clearInterval(n.intervalForObserveInserted),n.updateDimension(),n.config.oninit.call(n),n.redraw({withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransition:!1,withTransitionForTransform:!1,withLegend:!0}),t.transition().style("opacity",1))},10))})}),void e.observe(t.node(),{attributes:!0,childList:!0,characterData:!0}))},h.generateResize=function(){function t(){e.forEach(function(t){t()})}var e=[];return t.add=function(t){e.push(t)},t},h.endall=function(t,e){var n=0;t.each(function(){++n}).each("end",function(){--n||e.apply(this,arguments)})},h.generateWait=function(){var t=[],e=function(e,n){var r=setInterval(function(){var e=0;t.forEach(function(t){if(t.empty())return void(e+=1);try{t.transition()}catch(n){e+=1}}),e===t.length&&(clearInterval(r),n&&n())},10)};return e.add=function(e){t.push(e)},e},h.parseDate=function(t){var e,n=this;return t instanceof Date?e=t:"string"==typeof t?e=n.dataTimeFormat(n.config.data_xFormat).parse(t):"number"!=typeof t&&isNaN(t)||(e=new Date(+t)),(!e||isNaN(+e))&&a.console.error("Failed to parse x '"+t+"' to Date object"),e},h.isTabVisible=function(){var t;return"undefined"!=typeof document.hidden?t="hidden":"undefined"!=typeof document.mozHidden?t="mozHidden":"undefined"!=typeof document.msHidden?t="msHidden":"undefined"!=typeof document.webkitHidden&&(t="webkitHidden"),document[t]?!1:!0},h.getDefaultConfig=function(){var t={bindto:"#chart",size_width:void 0,size_height:void 0,padding_left:void 0,padding_right:void 0,padding_top:void 0,padding_bottom:void 0,zoom_enabled:!1,zoom_extent:void 0,zoom_privileged:!1,zoom_rescale:!1,zoom_onzoom:function(){},zoom_onzoomstart:function(){},zoom_onzoomend:function(){},interaction_enabled:!0,onmouseover:function(){},onmouseout:function(){},onresize:function(){},onresized:function(){},oninit:function(){},onrendered:function(){},transition_duration:350,data_x:void 0,data_xs:{},data_xFormat:"%Y-%m-%d",data_xLocaltime:!0,data_xSort:!0,data_idConverter:function(t){return t},data_names:{},data_classes:{},data_groups:[],data_axes:{},data_type:void 0,data_types:{},data_labels:{},data_order:"desc",data_regions:{},data_color:void 0,data_colors:{},data_hide:!1,data_filter:void 0,data_selection_enabled:!1,data_selection_grouped:!1,data_selection_isselectable:function(){return!0},data_selection_multiple:!0,data_selection_draggable:!1,data_onclick:function(){},data_onmouseover:function(){},data_onmouseout:function(){},data_onselected:function(){},data_onunselected:function(){},data_url:void 0,data_json:void 0,data_rows:void 0,data_columns:void 0,data_mimeType:void 0,data_keys:void 0,data_empty_label_text:"",subchart_show:!1,subchart_size_height:60,subchart_onbrush:function(){},color_pattern:[],color_threshold:{},legend_show:!0,legend_hide:!1,legend_position:"bottom",legend_inset_anchor:"top-left",legend_inset_x:10,legend_inset_y:0,legend_inset_step:void 0,legend_item_onclick:void 0,legend_item_onmouseover:void 0,legend_item_onmouseout:void 0,legend_equally:!1,axis_rotated:!1,axis_x_show:!0,axis_x_type:"indexed",axis_x_localtime:!0,axis_x_categories:[],axis_x_tick_centered:!1,axis_x_tick_format:void 0,axis_x_tick_culling:{},axis_x_tick_culling_max:10,axis_x_tick_count:void 0,axis_x_tick_fit:!0,axis_x_tick_values:null,axis_x_tick_rotate:0,axis_x_tick_outer:!0,axis_x_tick_multiline:!0,axis_x_tick_width:null,axis_x_max:void 0,axis_x_min:void 0,axis_x_padding:{},axis_x_height:void 0,axis_x_extent:void 0,axis_x_label:{},axis_y_show:!0,axis_y_type:void 0,axis_y_max:void 0,axis_y_min:void 0,axis_y_inverted:!1,axis_y_center:void 0,axis_y_inner:void 0,axis_y_label:{},axis_y_tick_format:void 0,axis_y_tick_outer:!0,axis_y_tick_values:null,axis_y_tick_count:void 0,axis_y_tick_time_value:void 0,axis_y_tick_time_interval:void 0,axis_y_padding:{},axis_y_default:void 0,axis_y2_show:!1,axis_y2_max:void 0,axis_y2_min:void 0,axis_y2_inverted:!1,axis_y2_center:void 0,axis_y2_inner:void 0,axis_y2_label:{},axis_y2_tick_format:void 0,axis_y2_tick_outer:!0,axis_y2_tick_values:null,axis_y2_tick_count:void 0,axis_y2_padding:{},axis_y2_default:void 0,grid_x_show:!1,grid_x_type:"tick",grid_x_lines:[],grid_y_show:!1,grid_y_lines:[],grid_y_ticks:10,grid_focus_show:!0,grid_lines_front:!0,point_show:!0,point_r:2.5,point_focus_expand_enabled:!0,point_focus_expand_r:void 0,point_select_r:void 0,line_connectNull:!1,line_step_type:"step",bar_width:void 0,bar_width_ratio:.6,bar_width_max:void 0,bar_zerobased:!0,area_zerobased:!0,pie_label_show:!0,pie_label_format:void 0,pie_label_threshold:.05,pie_expand:!0,gauge_label_show:!0,gauge_label_format:void 0,gauge_expand:!0,gauge_min:0,gauge_max:100,gauge_units:void 0,gauge_width:void 0,donut_label_show:!0,donut_label_format:void 0,donut_label_threshold:.05,donut_width:void 0,donut_expand:!0,donut_title:"",regions:[],tooltip_show:!0,tooltip_grouped:!0,tooltip_format_title:void 0,tooltip_format_name:void 0,tooltip_format_value:void 0,tooltip_position:void 0,tooltip_contents:function(t,e,n,r){return this.getTooltipContent?this.getTooltipContent(t,e,n,r):""},tooltip_init_show:!1,tooltip_init_x:0,tooltip_init_position:{top:"0px",left:"50px"}};return Object.keys(this.additionalConfig).forEach(function(e){t[e]=this.additionalConfig[e]},this),t},h.additionalConfig={},h.loadConfig=function(t){function e(){var t=r.shift();return t&&n&&"object"==typeof n&&t in n?(n=n[t],e()):t?void 0:n}var n,r,i,o=this.config;Object.keys(o).forEach(function(a){n=t,r=a.split("_"),i=e(),E(i)&&(o[a]=i)})},h.getScale=function(t,e,n){return(n?this.d3.time.scale():this.d3.scale.linear()).range([t,e])},h.getX=function(t,e,n,r){var i,o=this,a=o.getScale(t,e,o.isTimeSeries()),s=n?a.domain(n):a;o.isCategorized()?(r=r||function(){return 0},a=function(t,e){var n=s(t)+r(t);return e?n:Math.ceil(n)}):a=function(t,e){var n=s(t);return e?n:Math.ceil(n)};for(i in s)a[i]=s[i];return a.orgDomain=function(){return s.domain()},o.isCategorized()&&(a.domain=function(t){return arguments.length?(s.domain(t),a):(t=this.orgDomain(),[t[0],t[1]+1])}),a},h.getY=function(t,e,n){var r=this.getScale(t,e,this.isTimeSeriesY());return n&&r.domain(n),r},h.getYScale=function(t){return"y2"===this.axis.getId(t)?this.y2:this.y},h.getSubYScale=function(t){return"y2"===this.axis.getId(t)?this.subY2:this.subY},h.updateScales=function(){var t=this,e=t.config,n=!t.x;t.xMin=e.axis_rotated?1:0,t.xMax=e.axis_rotated?t.height:t.width,t.yMin=e.axis_rotated?0:t.height,t.yMax=e.axis_rotated?t.width:1,t.subXMin=t.xMin,t.subXMax=t.xMax,t.subYMin=e.axis_rotated?0:t.height2,t.subYMax=e.axis_rotated?t.width2:1,t.x=t.getX(t.xMin,t.xMax,n?void 0:t.x.orgDomain(),function(){return t.xAxis.tickOffset()}),t.y=t.getY(t.yMin,t.yMax,n?e.axis_y_default:t.y.domain()),t.y2=t.getY(t.yMin,t.yMax,n?e.axis_y2_default:t.y2.domain()),t.subX=t.getX(t.xMin,t.xMax,t.orgXDomain,function(e){return e%1?0:t.subXAxis.tickOffset()}),t.subY=t.getY(t.subYMin,t.subYMax,n?e.axis_y_default:t.subY.domain()),t.subY2=t.getY(t.subYMin,t.subYMax,n?e.axis_y2_default:t.subY2.domain()),t.xAxisTickFormat=t.axis.getXAxisTickFormat(),t.xAxisTickValues=t.axis.getXAxisTickValues(),t.yAxisTickValues=t.axis.getYAxisTickValues(),t.y2AxisTickValues=t.axis.getY2AxisTickValues(),t.xAxis=t.axis.getXAxis(t.x,t.xOrient,t.xAxisTickFormat,t.xAxisTickValues,e.axis_x_tick_outer),t.subXAxis=t.axis.getXAxis(t.subX,t.subXOrient,t.xAxisTickFormat,t.xAxisTickValues,e.axis_x_tick_outer),t.yAxis=t.axis.getYAxis(t.y,t.yOrient,e.axis_y_tick_format,t.yAxisTickValues,e.axis_y_tick_outer),t.y2Axis=t.axis.getYAxis(t.y2,t.y2Orient,e.axis_y2_tick_format,t.y2AxisTickValues,e.axis_y2_tick_outer),n||(t.brush&&t.brush.scale(t.subX),e.zoom_enabled&&t.zoom.scale(t.x)),t.updateArc&&t.updateArc()},h.getYDomainMin=function(t){var e,n,r,i,o,a,s=this,u=s.config,c=s.mapToIds(t),l=s.getValuesAsIdKeyed(t);if(u.data_groups.length>0)for(a=s.hasNegativeValueInTargets(t),e=0;e<u.data_groups.length;e++)if(i=u.data_groups[e].filter(function(t){return c.indexOf(t)>=0}),0!==i.length)for(r=i[0],a&&l[r]&&l[r].forEach(function(t,e){l[r][e]=0>t?t:0}),n=1;n<i.length;n++)o=i[n],l[o]&&l[o].forEach(function(t,e){s.axis.getId(o)!==s.axis.getId(r)||!l[r]||a&&+t>0||(l[r][e]+=+t)});return s.d3.min(Object.keys(l).map(function(t){return s.d3.min(l[t])}))},h.getYDomainMax=function(t){var e,n,r,i,o,a,s=this,u=s.config,c=s.mapToIds(t),l=s.getValuesAsIdKeyed(t);if(u.data_groups.length>0)for(a=s.hasPositiveValueInTargets(t),e=0;e<u.data_groups.length;e++)if(i=u.data_groups[e].filter(function(t){return c.indexOf(t)>=0}),0!==i.length)for(r=i[0],a&&l[r]&&l[r].forEach(function(t,e){l[r][e]=t>0?t:0}),n=1;n<i.length;n++)o=i[n],l[o]&&l[o].forEach(function(t,e){s.axis.getId(o)!==s.axis.getId(r)||!l[r]||a&&0>+t||(l[r][e]+=+t)});return s.d3.max(Object.keys(l).map(function(t){return s.d3.max(l[t])}))},h.getYDomain=function(t,e,n){var r,i,o,a,s,u,c,l,d,p,f,h=this,g=h.config,v=t.filter(function(t){return h.axis.getId(t.id)===e}),m=n?h.filterByXDomain(v,n):v,x="y2"===e?g.axis_y2_min:g.axis_y_min,_="y2"===e?g.axis_y2_max:g.axis_y_max,b=h.getYDomainMin(m),E=h.getYDomainMax(m),w="y2"===e?g.axis_y2_center:g.axis_y_center,N=h.hasType("bar",m)&&g.bar_zerobased||h.hasType("area",m)&&g.area_zerobased,T="y2"===e?g.axis_y2_inverted:g.axis_y_inverted,M=h.hasDataLabel()&&g.axis_rotated,A=h.hasDataLabel()&&!g.axis_rotated;return b=y(x)?x:y(_)?_>b?b:_-10:b,E=y(_)?_:y(x)?E>x?E:x+10:E,0===m.length?"y2"===e?h.y2.domain():h.y.domain():(isNaN(b)&&(b=0),isNaN(E)&&(E=b),b===E&&(0>b?E=0:b=0),p=b>=0&&E>=0,f=0>=b&&0>=E,(y(x)&&p||y(_)&&f)&&(N=!1),N&&(p&&(b=0),f&&(E=0)),i=Math.abs(E-b),o=a=s=.1*i,"undefined"!=typeof w&&(u=Math.max(Math.abs(b),Math.abs(E)),E=w+u,b=w-u),M?(c=h.getDataLabelLength(b,E,"width"),l=C(h.y.range()),d=[c[0]/l,c[1]/l],a+=i*(d[1]/(1-d[0]-d[1])),s+=i*(d[0]/(1-d[0]-d[1]))):A&&(c=h.getDataLabelLength(b,E,"height"),a+=h.axis.convertPixelsToAxisPadding(c[1],i),s+=h.axis.convertPixelsToAxisPadding(c[0],i)),"y"===e&&D(g.axis_y_padding)&&(a=h.axis.getPadding(g.axis_y_padding,"top",a,i),s=h.axis.getPadding(g.axis_y_padding,"bottom",s,i)),"y2"===e&&D(g.axis_y2_padding)&&(a=h.axis.getPadding(g.axis_y2_padding,"top",a,i),s=h.axis.getPadding(g.axis_y2_padding,"bottom",s,i)),N&&(p&&(s=b),f&&(a=-E)),r=[b-s,E+a],T?r.reverse():r)},h.getXDomainMin=function(t){var e=this,n=e.config;return E(n.axis_x_min)?e.isTimeSeries()?this.parseDate(n.axis_x_min):n.axis_x_min:e.d3.min(t,function(t){return e.d3.min(t.values,function(t){return t.x})})},h.getXDomainMax=function(t){var e=this,n=e.config;return E(n.axis_x_max)?e.isTimeSeries()?this.parseDate(n.axis_x_max):n.axis_x_max:e.d3.max(t,function(t){return e.d3.max(t.values,function(t){return t.x})})},h.getXDomainPadding=function(t){var e,n,r,i,o=this,a=o.config,s=t[1]-t[0];return o.isCategorized()?n=0:o.hasType("bar")?(e=o.getMaxDataCount(),n=e>1?s/(e-1)/2:.5):n=.01*s,"object"==typeof a.axis_x_padding&&D(a.axis_x_padding)?(r=y(a.axis_x_padding.left)?a.axis_x_padding.left:n,i=y(a.axis_x_padding.right)?a.axis_x_padding.right:n):r=i="number"==typeof a.axis_x_padding?a.axis_x_padding:n,{left:r,right:i}},h.getXDomain=function(t){var e=this,n=[e.getXDomainMin(t),e.getXDomainMax(t)],r=n[0],i=n[1],o=e.getXDomainPadding(n),a=0,s=0;return r-i!==0||e.isCategorized()||(e.isTimeSeries()?(r=new Date(.5*r.getTime()),i=new Date(1.5*i.getTime())):(r=0===r?1:.5*r,i=0===i?-1:1.5*i)),(r||0===r)&&(a=e.isTimeSeries()?new Date(r.getTime()-o.left):r-o.left),(i||0===i)&&(s=e.isTimeSeries()?new Date(i.getTime()+o.right):i+o.right),[a,s]},h.updateXDomain=function(t,e,n,r,i){var o=this,a=o.config;return n&&(o.x.domain(i?i:o.d3.extent(o.getXDomain(t))),o.orgXDomain=o.x.domain(),a.zoom_enabled&&o.zoom.scale(o.x).updateScaleExtent(),o.subX.domain(o.x.domain()),o.brush&&o.brush.scale(o.subX)),e&&(o.x.domain(i?i:!o.brush||o.brush.empty()?o.orgXDomain:o.brush.extent()),a.zoom_enabled&&o.zoom.scale(o.x).updateScaleExtent()),r&&o.x.domain(o.trimXDomain(o.x.orgDomain())),o.x.domain()},h.trimXDomain=function(t){var e=this;return t[0]<=e.orgXDomain[0]&&(t[1]=+t[1]+(e.orgXDomain[0]-t[0]),t[0]=e.orgXDomain[0]),e.orgXDomain[1]<=t[1]&&(t[0]=+t[0]-(t[1]-e.orgXDomain[1]),t[1]=e.orgXDomain[1]),t},h.isX=function(t){var e=this,n=e.config;return n.data_x&&t===n.data_x||D(n.data_xs)&&A(n.data_xs,t)},h.isNotX=function(t){return!this.isX(t)},h.getXKey=function(t){var e=this,n=e.config;return n.data_x?n.data_x:D(n.data_xs)?n.data_xs[t]:null},h.getXValuesOfXKey=function(t,e){var n,r=this,i=e&&D(e)?r.mapToIds(e):[];return i.forEach(function(e){r.getXKey(e)===t&&(n=r.data.xs[e])}),n},h.getIndexByX=function(t){var e=this,n=e.filterByX(e.data.targets,t);return n.length?n[0].index:null},h.getXValue=function(t,e){var n=this;return t in n.data.xs&&n.data.xs[t]&&y(n.data.xs[t][e])?n.data.xs[t][e]:e},h.getOtherTargetXs=function(){var t=this,e=Object.keys(t.data.xs);return e.length?t.data.xs[e[0]]:null},h.getOtherTargetX=function(t){var e=this.getOtherTargetXs();return e&&t<e.length?e[t]:null},h.addXs=function(t){var e=this;Object.keys(t).forEach(function(n){e.config.data_xs[n]=t[n]})},h.hasMultipleX=function(t){return this.d3.set(Object.keys(t).map(function(e){return t[e]})).size()>1},h.isMultipleX=function(){return D(this.config.data_xs)||!this.config.data_xSort||this.hasType("scatter")},h.addName=function(t){var e,n=this;return t&&(e=n.config.data_names[t.id],t.name=e?e:t.id),t},h.getValueOnIndex=function(t,e){var n=t.filter(function(t){return t.index===e});return n.length?n[0]:null},h.updateTargetX=function(t,e){var n=this;t.forEach(function(t){t.values.forEach(function(r,i){r.x=n.generateTargetX(e[i],t.id,i)}),n.data.xs[t.id]=e})},h.updateTargetXs=function(t,e){var n=this;t.forEach(function(t){e[t.id]&&n.updateTargetX([t],e[t.id])})},h.generateTargetX=function(t,e,n){var r,i=this;return r=i.isTimeSeries()?t?i.parseDate(t):i.parseDate(i.getXValue(e,n)):i.isCustomX()&&!i.isCategorized()?y(t)?+t:i.getXValue(e,n):n},h.cloneTarget=function(t){return{id:t.id,id_org:t.id_org,values:t.values.map(function(t){return{x:t.x,value:t.value,id:t.id}})}},h.updateXs=function(){var t=this;t.data.targets.length&&(t.xs=[],t.data.targets[0].values.forEach(function(e){t.xs[e.index]=e.x}))},h.getPrevX=function(t){var e=this.xs[t-1];return"undefined"!=typeof e?e:null},h.getNextX=function(t){var e=this.xs[t+1];return"undefined"!=typeof e?e:null},h.getMaxDataCount=function(){var t=this;return t.d3.max(t.data.targets,function(t){return t.values.length})},h.getMaxDataCountTarget=function(t){var e,n=t.length,r=0;return n>1?t.forEach(function(t){t.values.length>r&&(e=t,r=t.values.length)}):e=n?t[0]:null,e},h.getEdgeX=function(t){var e=this;return t.length?[e.d3.min(t,function(t){return t.values[0].x}),e.d3.max(t,function(t){return t.values[t.values.length-1].x})]:[0,0]},h.mapToIds=function(t){return t.map(function(t){return t.id})},h.mapToTargetIds=function(t){var e=this;return t?_(t)?[t]:t:e.mapToIds(e.data.targets)},h.hasTarget=function(t,e){var n,r=this.mapToIds(t);for(n=0;n<r.length;n++)if(r[n]===e)return!0;return!1},h.isTargetToShow=function(t){return this.hiddenTargetIds.indexOf(t)<0},h.isLegendToShow=function(t){return this.hiddenLegendIds.indexOf(t)<0},h.filterTargetsToShow=function(t){var e=this;return t.filter(function(t){return e.isTargetToShow(t.id)})},h.mapTargetsToUniqueXs=function(t){var e=this,n=e.d3.set(e.d3.merge(t.map(function(t){return t.values.map(function(t){return+t.x})}))).values();return e.isTimeSeries()?n.map(function(t){return new Date(+t)}):n.map(function(t){return+t})},h.addHiddenTargetIds=function(t){this.hiddenTargetIds=this.hiddenTargetIds.concat(t)},h.removeHiddenTargetIds=function(t){this.hiddenTargetIds=this.hiddenTargetIds.filter(function(e){return t.indexOf(e)<0})},h.addHiddenLegendIds=function(t){this.hiddenLegendIds=this.hiddenLegendIds.concat(t)},h.removeHiddenLegendIds=function(t){this.hiddenLegendIds=this.hiddenLegendIds.filter(function(e){return t.indexOf(e)<0})},h.getValuesAsIdKeyed=function(t){var e={};return t.forEach(function(t){e[t.id]=[],t.values.forEach(function(n){e[t.id].push(n.value)})}),e},h.checkValueInTargets=function(t,e){var n,r,i,o=Object.keys(t);for(n=0;n<o.length;n++)for(i=t[o[n]].values,r=0;r<i.length;r++)if(e(i[r].value))return!0;return!1},h.hasNegativeValueInTargets=function(t){return this.checkValueInTargets(t,function(t){return 0>t})},h.hasPositiveValueInTargets=function(t){return this.checkValueInTargets(t,function(t){return t>0})},h.isOrderDesc=function(){var t=this.config;return"string"==typeof t.data_order&&"desc"===t.data_order.toLowerCase()},h.isOrderAsc=function(){var t=this.config;return"string"==typeof t.data_order&&"asc"===t.data_order.toLowerCase()},h.orderTargets=function(t){var e=this,n=e.config,r=e.isOrderAsc(),i=e.isOrderDesc();return r||i?t.sort(function(t,e){var n=function(t,e){return t+Math.abs(e.value)},i=t.values.reduce(n,0),o=e.values.reduce(n,0);return r?o-i:i-o}):x(n.data_order)&&t.sort(n.data_order),
  t},h.filterByX=function(t,e){return this.d3.merge(t.map(function(t){return t.values})).filter(function(t){return t.x-e===0})},h.filterRemoveNull=function(t){return t.filter(function(t){return y(t.value)})},h.filterByXDomain=function(t,e){return t.map(function(t){return{id:t.id,id_org:t.id_org,values:t.values.filter(function(t){return e[0]<=t.x&&t.x<=e[1]})}})},h.hasDataLabel=function(){var t=this.config;return"boolean"==typeof t.data_labels&&t.data_labels?!0:"object"==typeof t.data_labels&&D(t.data_labels)?!0:!1},h.getDataLabelLength=function(t,e,n){var r=this,i=[0,0],o=1.3;return r.selectChart.select("svg").selectAll(".dummy").data([t,e]).enter().append("text").text(function(t){return r.dataLabelFormat(t.id)(t)}).each(function(t,e){i[e]=this.getBoundingClientRect()[n]*o}).remove(),i},h.isNoneArc=function(t){return this.hasTarget(this.data.targets,t.id)},h.isArc=function(t){return"data"in t&&this.hasTarget(this.data.targets,t.data.id)},h.findSameXOfValues=function(t,e){var n,r=t[e].x,i=[];for(n=e-1;n>=0&&r===t[n].x;n--)i.push(t[n]);for(n=e;n<t.length&&r===t[n].x;n++)i.push(t[n]);return i},h.findClosestFromTargets=function(t,e){var n,r=this;return n=t.map(function(t){return r.findClosest(t.values,e)}),r.findClosest(n,e)},h.findClosest=function(t,e){var n,r=this,i=100;return t.filter(function(t){return t&&r.isBarType(t.id)}).forEach(function(t){var e=r.main.select("."+m.bars+r.getTargetSelectorSuffix(t.id)+" ."+m.bar+"-"+t.index).node();!n&&r.isWithinBar(e)&&(n=t)}),t.filter(function(t){return t&&!r.isBarType(t.id)}).forEach(function(t){var o=r.dist(t,e);i>o&&(i=o,n=t)}),n},h.dist=function(t,e){var n=this,r=n.config,i=r.axis_rotated?1:0,o=r.axis_rotated?0:1,a=n.circleY(t,t.index),s=n.x(t.x);return Math.pow(s-e[i],2)+Math.pow(a-e[o],2)},h.convertValuesToStep=function(t){var e,n=[].concat(t);if(!this.isCategorized())return t;for(e=t.length+1;e>0;e--)n[e]=n[e-1];return n[0]={x:n[0].x-1,value:n[0].value,id:n[0].id},n[t.length+1]={x:n[t.length].x+1,value:n[t.length].value,id:n[t.length].id},n},h.updateDataAttributes=function(t,e){var n=this,r=n.config,i=r["data_"+t];return"undefined"==typeof e?i:(Object.keys(e).forEach(function(t){i[t]=e[t]}),n.redraw({withLegend:!0}),i)},h.convertUrlToData=function(t,e,n,r){var i=this,o=e?e:"csv";i.d3.xhr(t,function(t,e){var a;if(!e)throw new Error(t.responseURL+" "+t.status+" ("+t.statusText+")");a="json"===o?i.convertJsonToData(JSON.parse(e.response),n):"tsv"===o?i.convertTsvToData(e.response):i.convertCsvToData(e.response),r.call(i,a)})},h.convertXsvToData=function(t,e){var n,r=e.parseRows(t);return 1===r.length?(n=[{}],r[0].forEach(function(t){n[0][t]=null})):n=e.parse(t),n},h.convertCsvToData=function(t){return this.convertXsvToData(t,this.d3.csv)},h.convertTsvToData=function(t){return this.convertXsvToData(t,this.d3.tsv)},h.convertJsonToData=function(t,e){var n,r,i=this,o=[];return e?(e.x?(n=e.value.concat(e.x),i.config.data_x=e.x):n=e.value,o.push(n),t.forEach(function(t){var e=[];n.forEach(function(n){var r=b(t[n])?null:t[n];e.push(r)}),o.push(e)}),r=i.convertRowsToData(o)):(Object.keys(t).forEach(function(e){o.push([e].concat(t[e]))}),r=i.convertColumnsToData(o)),r},h.convertRowsToData=function(t){var e,n,r=t[0],i={},o=[];for(e=1;e<t.length;e++){for(i={},n=0;n<t[e].length;n++){if(b(t[e][n]))throw new Error("Source data is missing a component at ("+e+","+n+")!");i[r[n]]=t[e][n]}o.push(i)}return o},h.convertColumnsToData=function(t){var e,n,r,i=[];for(e=0;e<t.length;e++)for(r=t[e][0],n=1;n<t[e].length;n++){if(b(i[n-1])&&(i[n-1]={}),b(t[e][n]))throw new Error("Source data is missing a component at ("+e+","+n+")!");i[n-1][r]=t[e][n]}return i},h.convertDataToTargets=function(t,e){var n,r=this,i=r.config,o=r.d3.keys(t[0]).filter(r.isNotX,r),a=r.d3.keys(t[0]).filter(r.isX,r);return o.forEach(function(n){var o=r.getXKey(n);r.isCustomX()||r.isTimeSeries()?a.indexOf(o)>=0?r.data.xs[n]=(e&&r.data.xs[n]?r.data.xs[n]:[]).concat(t.map(function(t){return t[o]}).filter(y).map(function(t,e){return r.generateTargetX(t,n,e)})):i.data_x?r.data.xs[n]=r.getOtherTargetXs():D(i.data_xs)&&(r.data.xs[n]=r.getXValuesOfXKey(o,r.data.targets)):r.data.xs[n]=t.map(function(t,e){return e})}),o.forEach(function(t){if(!r.data.xs[t])throw new Error('x is not defined for id = "'+t+'".')}),n=o.map(function(e,n){var o=i.data_idConverter(e);return{id:o,id_org:e,values:t.map(function(t,a){var s=r.getXKey(e),u=t[s],c=r.generateTargetX(u,e,a);return r.isCustomX()&&r.isCategorized()&&0===n&&u&&(0===a&&(i.axis_x_categories=[]),i.axis_x_categories.push(u)),(b(t[e])||r.data.xs[e].length<=a)&&(c=void 0),{x:c,value:null===t[e]||isNaN(t[e])?null:+t[e],id:o}}).filter(function(t){return E(t.x)})}}),n.forEach(function(t){var e;i.data_xSort&&(t.values=t.values.sort(function(t,e){var n=t.x||0===t.x?t.x:1/0,r=e.x||0===e.x?e.x:1/0;return n-r})),e=0,t.values.forEach(function(t){t.index=e++}),r.data.xs[t.id].sort(function(t,e){return t-e})}),i.data_type&&r.setTargetType(r.mapToIds(n).filter(function(t){return!(t in i.data_types)}),i.data_type),n.forEach(function(t){r.addCache(t.id_org,t)}),n},h.load=function(t,e){var n=this;t&&(e.filter&&(t=t.filter(e.filter)),(e.type||e.types)&&t.forEach(function(t){var r=e.types&&e.types[t.id]?e.types[t.id]:e.type;n.setTargetType(t.id,r)}),n.data.targets.forEach(function(e){for(var n=0;n<t.length;n++)if(e.id===t[n].id){e.values=t[n].values,t.splice(n,1);break}}),n.data.targets=n.data.targets.concat(t)),n.updateTargets(n.data.targets),n.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),e.done&&e.done()},h.loadFromArgs=function(t){var e=this;t.data?e.load(e.convertDataToTargets(t.data),t):t.url?e.convertUrlToData(t.url,t.mimeType,t.keys,function(n){e.load(e.convertDataToTargets(n),t)}):t.json?e.load(e.convertDataToTargets(e.convertJsonToData(t.json,t.keys)),t):t.rows?e.load(e.convertDataToTargets(e.convertRowsToData(t.rows)),t):t.columns?e.load(e.convertDataToTargets(e.convertColumnsToData(t.columns)),t):e.load(null,t)},h.unload=function(t,e){var n=this;return e||(e=function(){}),t=t.filter(function(t){return n.hasTarget(n.data.targets,t)}),t&&0!==t.length?(n.svg.selectAll(t.map(function(t){return n.selectorTarget(t)})).transition().style("opacity",0).remove().call(n.endall,e),void t.forEach(function(t){n.withoutFadeIn[t]=!1,n.legend&&n.legend.selectAll("."+m.legendItem+n.getTargetSelectorSuffix(t)).remove(),n.data.targets=n.data.targets.filter(function(e){return e.id!==t})})):void e()},h.categoryName=function(t){var e=this.config;return t<e.axis_x_categories.length?e.axis_x_categories[t]:t},h.initEventRect=function(){var t=this;t.main.select("."+m.chart).append("g").attr("class",m.eventRects).style("fill-opacity",0)},h.redrawEventRect=function(){var t,e,n=this,r=n.config,i=n.isMultipleX(),o=n.main.select("."+m.eventRects).style("cursor",r.zoom_enabled?r.axis_rotated?"ns-resize":"ew-resize":null).classed(m.eventRectsMultiple,i).classed(m.eventRectsSingle,!i);o.selectAll("."+m.eventRect).remove(),n.eventRect=o.selectAll("."+m.eventRect),i?(t=n.eventRect.data([0]),n.generateEventRectsForMultipleXs(t.enter()),n.updateEventRect(t)):(e=n.getMaxDataCountTarget(n.data.targets),o.datum(e?e.values:[]),n.eventRect=o.selectAll("."+m.eventRect),t=n.eventRect.data(function(t){return t}),n.generateEventRectsForSingleX(t.enter()),n.updateEventRect(t),t.exit().remove())},h.updateEventRect=function(t){var e,n,r,i,o,a,s=this,u=s.config;t=t||s.eventRect.data(function(t){return t}),s.isMultipleX()?(e=0,n=0,r=s.width,i=s.height):(!s.isCustomX()&&!s.isTimeSeries()||s.isCategorized()?(o=s.getEventRectWidth(),a=function(t){return s.x(t.x)-o/2}):(s.updateXs(),o=function(t){var e=s.getPrevX(t.index),n=s.getNextX(t.index);return null===e&&null===n?u.axis_rotated?s.height:s.width:(null===e&&(e=s.x.domain()[0]),null===n&&(n=s.x.domain()[1]),Math.max(0,(s.x(n)-s.x(e))/2))},a=function(t){var e=s.getPrevX(t.index),n=s.getNextX(t.index),r=s.data.xs[t.id][t.index];return null===e&&null===n?0:(null===e&&(e=s.x.domain()[0]),(s.x(r)+s.x(e))/2)}),e=u.axis_rotated?0:a,n=u.axis_rotated?a:0,r=u.axis_rotated?s.width:o,i=u.axis_rotated?o:s.height),t.attr("class",s.classEvent.bind(s)).attr("x",e).attr("y",n).attr("width",r).attr("height",i)},h.generateEventRectsForSingleX=function(t){var e=this,n=e.d3,r=e.config;t.append("rect").attr("class",e.classEvent.bind(e)).style("cursor",r.data_selection_enabled&&r.data_selection_grouped?"pointer":null).on("mouseover",function(t){var n=t.index;e.dragging||e.flowing||e.hasArcType()||(r.point_focus_expand_enabled&&e.expandCircles(n,null,!0),e.expandBars(n,null,!0),e.main.selectAll("."+m.shape+"-"+n).each(function(t){r.data_onmouseover.call(e.api,t)}))}).on("mouseout",function(t){var n=t.index;e.config&&(e.hasArcType()||(e.hideXGridFocus(),e.hideTooltip(),e.unexpandCircles(),e.unexpandBars(),e.main.selectAll("."+m.shape+"-"+n).each(function(t){r.data_onmouseout.call(e.api,t)})))}).on("mousemove",function(t){var i,o=t.index,a=e.svg.select("."+m.eventRect+"-"+o);e.dragging||e.flowing||e.hasArcType()||(e.isStepType(t)&&"step-after"===e.config.line_step_type&&n.mouse(this)[0]<e.x(e.getXValue(t.id,o))&&(o-=1),i=e.filterTargetsToShow(e.data.targets).map(function(t){return e.addName(e.getValueOnIndex(t.values,o))}),r.tooltip_grouped&&(e.showTooltip(i,this),e.showXGridFocus(i)),(!r.tooltip_grouped||r.data_selection_enabled&&!r.data_selection_grouped)&&e.main.selectAll("."+m.shape+"-"+o).each(function(){n.select(this).classed(m.EXPANDED,!0),r.data_selection_enabled&&a.style("cursor",r.data_selection_grouped?"pointer":null),r.tooltip_grouped||(e.hideXGridFocus(),e.hideTooltip(),r.data_selection_grouped||(e.unexpandCircles(o),e.unexpandBars(o)))}).filter(function(t){return e.isWithinShape(this,t)}).each(function(t){r.data_selection_enabled&&(r.data_selection_grouped||r.data_selection_isselectable(t))&&a.style("cursor","pointer"),r.tooltip_grouped||(e.showTooltip([t],this),e.showXGridFocus([t]),r.point_focus_expand_enabled&&e.expandCircles(o,t.id,!0),e.expandBars(o,t.id,!0))}))}).on("click",function(t){var i=t.index;if(!e.hasArcType()&&e.toggleShape){if(e.cancelClick)return void(e.cancelClick=!1);e.isStepType(t)&&"step-after"===r.line_step_type&&n.mouse(this)[0]<e.x(e.getXValue(t.id,i))&&(i-=1),e.main.selectAll("."+m.shape+"-"+i).each(function(t){(r.data_selection_grouped||e.isWithinShape(this,t))&&(e.toggleShape(this,t,i),e.config.data_onclick.call(e.api,t,this))})}}).call(r.data_selection_draggable&&e.drag?n.behavior.drag().origin(Object).on("drag",function(){e.drag(n.mouse(this))}).on("dragstart",function(){e.dragstart(n.mouse(this))}).on("dragend",function(){e.dragend()}):function(){})},h.generateEventRectsForMultipleXs=function(t){function e(){n.svg.select("."+m.eventRect).style("cursor",null),n.hideXGridFocus(),n.hideTooltip(),n.unexpandCircles(),n.unexpandBars()}var n=this,r=n.d3,i=n.config;t.append("rect").attr("x",0).attr("y",0).attr("width",n.width).attr("height",n.height).attr("class",m.eventRect).on("mouseout",function(){n.config&&(n.hasArcType()||e())}).on("mousemove",function(){var t,o,a,s,u=n.filterTargetsToShow(n.data.targets);if(!n.dragging&&!n.hasArcType(u)){if(t=r.mouse(this),o=n.findClosestFromTargets(u,t),!n.mouseover||o&&o.id===n.mouseover.id||(i.data_onmouseout.call(n.api,n.mouseover),n.mouseover=void 0),!o)return void e();a=n.isScatterType(o)||!i.tooltip_grouped?[o]:n.filterByX(u,o.x),s=a.map(function(t){return n.addName(t)}),n.showTooltip(s,this),i.point_focus_expand_enabled&&n.expandCircles(o.index,o.id,!0),n.expandBars(o.index,o.id,!0),n.showXGridFocus(s),(n.isBarType(o.id)||n.dist(o,t)<100)&&(n.svg.select("."+m.eventRect).style("cursor","pointer"),n.mouseover||(i.data_onmouseover.call(n.api,o),n.mouseover=o))}}).on("click",function(){var t,e,o=n.filterTargetsToShow(n.data.targets);n.hasArcType(o)||(t=r.mouse(this),e=n.findClosestFromTargets(o,t),e&&(n.isBarType(e.id)||n.dist(e,t)<100)&&n.main.selectAll("."+m.shapes+n.getTargetSelectorSuffix(e.id)).selectAll("."+m.shape+"-"+e.index).each(function(){(i.data_selection_grouped||n.isWithinShape(this,e))&&(n.toggleShape(this,e,e.index),n.config.data_onclick.call(n.api,e,this))}))}).call(i.data_selection_draggable&&n.drag?r.behavior.drag().origin(Object).on("drag",function(){n.drag(r.mouse(this))}).on("dragstart",function(){n.dragstart(r.mouse(this))}).on("dragend",function(){n.dragend()}):function(){})},h.dispatchEvent=function(t,e,n){var r=this,i="."+m.eventRect+(r.isMultipleX()?"":"-"+e),o=r.main.select(i).node(),s=o.getBoundingClientRect(),u=s.left+(n?n[0]:0),c=s.top+(n?n[1]:0),l=document.createEvent("MouseEvents");l.initMouseEvent(t,!0,!0,a,0,u,c,u,c,!1,!1,!1,!1,0,null),o.dispatchEvent(l)},h.getCurrentWidth=function(){var t=this,e=t.config;return e.size_width?e.size_width:t.getParentWidth()},h.getCurrentHeight=function(){var t=this,e=t.config,n=e.size_height?e.size_height:t.getParentHeight();return n>0?n:320/(t.hasType("gauge")?2:1)},h.getCurrentPaddingTop=function(){var t=this.config;return y(t.padding_top)?t.padding_top:0},h.getCurrentPaddingBottom=function(){var t=this.config;return y(t.padding_bottom)?t.padding_bottom:0},h.getCurrentPaddingLeft=function(t){var e=this,n=e.config;return y(n.padding_left)?n.padding_left:n.axis_rotated?n.axis_x_show?Math.max(w(e.getAxisWidthByAxisId("x",t)),40):1:!n.axis_y_show||n.axis_y_inner?e.axis.getYAxisLabelPosition().isOuter?30:1:w(e.getAxisWidthByAxisId("y",t))},h.getCurrentPaddingRight=function(){var t=this,e=t.config,n=10,r=t.isLegendRight?t.getLegendWidth()+20:0;return y(e.padding_right)?e.padding_right+1:e.axis_rotated?n+r:!e.axis_y2_show||e.axis_y2_inner?2+r+(t.axis.getY2AxisLabelPosition().isOuter?20:0):w(t.getAxisWidthByAxisId("y2"))+r},h.getParentRectValue=function(t){for(var e,n=this.selectChart.node();n&&"BODY"!==n.tagName;){try{e=n.getBoundingClientRect()[t]}catch(r){"width"===t&&(e=n.offsetWidth)}if(e)break;n=n.parentNode}return e},h.getParentWidth=function(){return this.getParentRectValue("width")},h.getParentHeight=function(){var t=this.selectChart.style("height");return t.indexOf("px")>0?+t.replace("px",""):0},h.getSvgLeft=function(t){var e=this,n=e.config,r=n.axis_rotated||!n.axis_rotated&&!n.axis_y_inner,i=n.axis_rotated?m.axisX:m.axisY,o=e.main.select("."+i).node(),a=o&&r?o.getBoundingClientRect():{right:0},s=e.selectChart.node().getBoundingClientRect(),u=e.hasArcType(),c=a.right-s.left-(u?0:e.getCurrentPaddingLeft(t));return c>0?c:0},h.getAxisWidthByAxisId=function(t,e){var n=this,r=n.axis.getLabelPositionById(t);return n.axis.getMaxTickWidth(t,e)+(r.isInner?20:40)},h.getHorizontalAxisHeight=function(t){var e=this,n=e.config,r=30;return"x"!==t||n.axis_x_show?"x"===t&&n.axis_x_height?n.axis_x_height:"y"!==t||n.axis_y_show?"y2"!==t||n.axis_y2_show?("x"===t&&!n.axis_rotated&&n.axis_x_tick_rotate&&(r=30+e.axis.getMaxTickWidth(t)*Math.cos(Math.PI*(90-n.axis_x_tick_rotate)/180)),r+(e.axis.getLabelPositionById(t).isInner?0:10)+("y2"===t?-10:0)):e.rotated_padding_top:!n.legend_show||e.isLegendRight||e.isLegendInset?1:10:8},h.getEventRectWidth=function(){return Math.max(0,this.xAxis.tickInterval())},h.getShapeIndices=function(t){var e,n,r=this,i=r.config,o={},a=0;return r.filterTargetsToShow(r.data.targets.filter(t,r)).forEach(function(t){for(e=0;e<i.data_groups.length;e++)if(!(i.data_groups[e].indexOf(t.id)<0))for(n=0;n<i.data_groups[e].length;n++)if(i.data_groups[e][n]in o){o[t.id]=o[i.data_groups[e][n]];break}b(o[t.id])&&(o[t.id]=a++)}),o.__max__=a-1,o},h.getShapeX=function(t,e,n,r){var i=this,o=r?i.subX:i.x;return function(r){var i=r.id in n?n[r.id]:0;return r.x||0===r.x?o(r.x)-t*(e/2-i):0}},h.getShapeY=function(t){var e=this;return function(n){var r=t?e.getSubYScale(n.id):e.getYScale(n.id);return r(n.value)}},h.getShapeOffset=function(t,e,n){var r=this,i=r.orderTargets(r.filterTargetsToShow(r.data.targets.filter(t,r))),o=i.map(function(t){return t.id});return function(t,a){var s=n?r.getSubYScale(t.id):r.getYScale(t.id),u=s(0),c=u;return i.forEach(function(n){var i=r.isStepType(t)?r.convertValuesToStep(n.values):n.values;n.id!==t.id&&e[n.id]===e[t.id]&&o.indexOf(n.id)<o.indexOf(t.id)&&i[a].value*t.value>=0&&(c+=s(i[a].value)-u)}),c}},h.isWithinShape=function(t,e){var n,r=this,i=r.d3.select(t);return r.isTargetToShow(e.id)?"circle"===t.nodeName?n=r.isStepType(e)?r.isWithinStep(t,r.getYScale(e.id)(e.value)):r.isWithinCircle(t,1.5*r.pointSelectR(e)):"path"===t.nodeName&&(n=i.classed(m.bar)?r.isWithinBar(t):!0):n=!1,n},h.getInterpolate=function(t){var e=this;return e.isSplineType(t)?"cardinal":e.isStepType(t)?e.config.line_step_type:"linear"},h.initLine=function(){var t=this;t.main.select("."+m.chart).append("g").attr("class",m.chartLines)},h.updateTargetsForLine=function(t){var e,n,r=this,i=r.config,o=r.classChartLine.bind(r),a=r.classLines.bind(r),s=r.classAreas.bind(r),u=r.classCircles.bind(r),c=r.classFocus.bind(r);e=r.main.select("."+m.chartLines).selectAll("."+m.chartLine).data(t).attr("class",function(t){return o(t)+c(t)}),n=e.enter().append("g").attr("class",o).style("opacity",0).style("pointer-events","none"),n.append("g").attr("class",a),n.append("g").attr("class",s),n.append("g").attr("class",function(t){return r.generateClass(m.selectedCircles,t.id)}),n.append("g").attr("class",u).style("cursor",function(t){return i.data_selection_isselectable(t)?"pointer":null}),t.forEach(function(t){r.main.selectAll("."+m.selectedCircles+r.getTargetSelectorSuffix(t.id)).selectAll("."+m.selectedCircle).each(function(e){e.value=t.values[e.index].value})})},h.updateLine=function(t){var e=this;e.mainLine=e.main.selectAll("."+m.lines).selectAll("."+m.line).data(e.lineData.bind(e)),e.mainLine.enter().append("path").attr("class",e.classLine.bind(e)).style("stroke",e.color),e.mainLine.style("opacity",e.initialOpacity.bind(e)).style("shape-rendering",function(t){return e.isStepType(t)?"crispEdges":""}).attr("transform",null),e.mainLine.exit().transition().duration(t).style("opacity",0).remove()},h.redrawLine=function(t,e){return[(e?this.mainLine.transition():this.mainLine).attr("d",t).style("stroke",this.color).style("opacity",1)]},h.generateDrawLine=function(t,e){var n=this,r=n.config,i=n.d3.svg.line(),o=n.generateGetLinePoints(t,e),a=e?n.getSubYScale:n.getYScale,s=function(t){return(e?n.subxx:n.xx).call(n,t)},u=function(t,e){return r.data_groups.length>0?o(t,e)[0][1]:a.call(n,t.id)(t.value)};return i=r.axis_rotated?i.x(u).y(s):i.x(s).y(u),r.line_connectNull||(i=i.defined(function(t){return null!=t.value})),function(t){var o,s=r.line_connectNull?n.filterRemoveNull(t.values):t.values,u=e?n.x:n.subX,c=a.call(n,t.id),l=0,d=0;return n.isLineType(t)?r.data_regions[t.id]?o=n.lineWithRegions(s,u,c,r.data_regions[t.id]):(n.isStepType(t)&&(s=n.convertValuesToStep(s)),o=i.interpolate(n.getInterpolate(t))(s)):(s[0]&&(l=u(s[0].x),d=c(s[0].value)),o=r.axis_rotated?"M "+d+" "+l:"M "+l+" "+d),o?o:"M 0 0"}},h.generateGetLinePoints=function(t,e){var n=this,r=n.config,i=t.__max__+1,o=n.getShapeX(0,i,t,!!e),a=n.getShapeY(!!e),s=n.getShapeOffset(n.isLineType,t,!!e),u=e?n.getSubYScale:n.getYScale;return function(t,e){var i=u.call(n,t.id)(0),c=s(t,e)||i,l=o(t),d=a(t);return r.axis_rotated&&(0<t.value&&i>d||t.value<0&&d>i)&&(d=i),[[l,d-(i-c)],[l,d-(i-c)],[l,d-(i-c)],[l,d-(i-c)]]}},h.lineWithRegions=function(t,e,n,r){function i(t,e){var n;for(n=0;n<e.length;n++)if(e[n].start<t&&t<=e[n].end)return!0;return!1}function o(t){return"M"+t[0][0]+" "+t[0][1]+" "+t[1][0]+" "+t[1][1]}var a,s,u,c,l,d,p,f,h,g,v,m,y=this,x=y.config,_=-1,w="M",N=y.isCategorized()?.5:0,C=[];if(E(r))for(a=0;a<r.length;a++)C[a]={},b(r[a].start)?C[a].start=t[0].x:C[a].start=y.isTimeSeries()?y.parseDate(r[a].start):r[a].start,b(r[a].end)?C[a].end=t[t.length-1].x:C[a].end=y.isTimeSeries()?y.parseDate(r[a].end):r[a].end;for(v=x.axis_rotated?function(t){return n(t.value)}:function(t){return e(t.x)},m=x.axis_rotated?function(t){return e(t.x)}:function(t){return n(t.value)},u=y.isTimeSeries()?function(t,r,i,a){var s,u=t.x.getTime(),c=r.x-t.x,d=new Date(u+c*i),p=new Date(u+c*(i+a));return s=x.axis_rotated?[[n(l(i)),e(d)],[n(l(i+a)),e(p)]]:[[e(d),n(l(i))],[e(p),n(l(i+a))]],o(s)}:function(t,r,i,a){var s;return s=x.axis_rotated?[[n(l(i),!0),e(c(i))],[n(l(i+a),!0),e(c(i+a))]]:[[e(c(i),!0),n(l(i))],[e(c(i+a),!0),n(l(i+a))]],o(s)},a=0;a<t.length;a++){if(b(C)||!i(t[a].x,C))w+=" "+v(t[a])+" "+m(t[a]);else for(c=y.getScale(t[a-1].x+N,t[a].x+N,y.isTimeSeries()),l=y.getScale(t[a-1].value,t[a].value),d=e(t[a].x)-e(t[a-1].x),p=n(t[a].value)-n(t[a-1].value),f=Math.sqrt(Math.pow(d,2)+Math.pow(p,2)),h=2/f,g=2*h,s=h;1>=s;s+=g)w+=u(t[a-1],t[a],s,h);_=t[a].x}return w},h.updateArea=function(t){var e=this,n=e.d3;e.mainArea=e.main.selectAll("."+m.areas).selectAll("."+m.area).data(e.lineData.bind(e)),e.mainArea.enter().append("path").attr("class",e.classArea.bind(e)).style("fill",e.color).style("opacity",function(){return e.orgAreaOpacity=+n.select(this).style("opacity"),0}),e.mainArea.style("opacity",e.orgAreaOpacity),e.mainArea.exit().transition().duration(t).style("opacity",0).remove()},h.redrawArea=function(t,e){return[(e?this.mainArea.transition():this.mainArea).attr("d",t).style("fill",this.color).style("opacity",this.orgAreaOpacity)]},h.generateDrawArea=function(t,e){var n=this,r=n.config,i=n.d3.svg.area(),o=n.generateGetAreaPoints(t,e),a=e?n.getSubYScale:n.getYScale,s=function(t){return(e?n.subxx:n.xx).call(n,t)},u=function(t,e){return r.data_groups.length>0?o(t,e)[0][1]:a.call(n,t.id)(n.getAreaBaseValue(t.id))},c=function(t,e){return r.data_groups.length>0?o(t,e)[1][1]:a.call(n,t.id)(t.value)};return i=r.axis_rotated?i.x0(u).x1(c).y(s):i.x(s).y0(u).y1(c),r.line_connectNull||(i=i.defined(function(t){return null!==t.value})),function(t){var e,o=r.line_connectNull?n.filterRemoveNull(t.values):t.values,a=0,s=0;return n.isAreaType(t)?(n.isStepType(t)&&(o=n.convertValuesToStep(o)),e=i.interpolate(n.getInterpolate(t))(o)):(o[0]&&(a=n.x(o[0].x),s=n.getYScale(t.id)(o[0].value)),e=r.axis_rotated?"M "+s+" "+a:"M "+a+" "+s),e?e:"M 0 0"}},h.getAreaBaseValue=function(){return 0},h.generateGetAreaPoints=function(t,e){var n=this,r=n.config,i=t.__max__+1,o=n.getShapeX(0,i,t,!!e),a=n.getShapeY(!!e),s=n.getShapeOffset(n.isAreaType,t,!!e),u=e?n.getSubYScale:n.getYScale;return function(t,e){var i=u.call(n,t.id)(0),c=s(t,e)||i,l=o(t),d=a(t);return r.axis_rotated&&(0<t.value&&i>d||t.value<0&&d>i)&&(d=i),[[l,c],[l,d-(i-c)],[l,d-(i-c)],[l,c]]}},h.updateCircle=function(){var t=this;t.mainCircle=t.main.selectAll("."+m.circles).selectAll("."+m.circle).data(t.lineOrScatterData.bind(t)),t.mainCircle.enter().append("circle").attr("class",t.classCircle.bind(t)).attr("r",t.pointR.bind(t)).style("fill",t.color),t.mainCircle.style("opacity",t.initialOpacityForCircle.bind(t)),t.mainCircle.exit().remove()},h.redrawCircle=function(t,e,n){var r=this.main.selectAll("."+m.selectedCircle);return[(n?this.mainCircle.transition():this.mainCircle).style("opacity",this.opacityForCircle.bind(this)).style("fill",this.color).attr("cx",t).attr("cy",e),(n?r.transition():r).attr("cx",t).attr("cy",e)]},h.circleX=function(t){return t.x||0===t.x?this.x(t.x):null},h.updateCircleY=function(){var t,e,n=this;n.config.data_groups.length>0?(t=n.getShapeIndices(n.isLineType),e=n.generateGetLinePoints(t),n.circleY=function(t,n){return e(t,n)[0][1]}):n.circleY=function(t){return n.getYScale(t.id)(t.value)}},h.getCircles=function(t,e){var n=this;return(e?n.main.selectAll("."+m.circles+n.getTargetSelectorSuffix(e)):n.main).selectAll("."+m.circle+(y(t)?"-"+t:""))},h.expandCircles=function(t,e,n){var r=this,i=r.pointExpandedR.bind(r);n&&r.unexpandCircles(),r.getCircles(t,e).classed(m.EXPANDED,!0).attr("r",i)},h.unexpandCircles=function(t){var e=this,n=e.pointR.bind(e);e.getCircles(t).filter(function(){return e.d3.select(this).classed(m.EXPANDED)}).classed(m.EXPANDED,!1).attr("r",n)},h.pointR=function(t){var e=this,n=e.config;return e.isStepType(t)?0:x(n.point_r)?n.point_r(t):n.point_r},h.pointExpandedR=function(t){var e=this,n=e.config;return n.point_focus_expand_enabled?n.point_focus_expand_r?n.point_focus_expand_r:1.75*e.pointR(t):e.pointR(t)},h.pointSelectR=function(t){var e=this,n=e.config;return n.point_select_r?n.point_select_r:4*e.pointR(t)},h.isWithinCircle=function(t,e){var n=this.d3,r=n.mouse(t),i=n.select(t),o=+i.attr("cx"),a=+i.attr("cy");return Math.sqrt(Math.pow(o-r[0],2)+Math.pow(a-r[1],2))<e},h.isWithinStep=function(t,e){return Math.abs(e-this.d3.mouse(t)[1])<30},h.initBar=function(){var t=this;t.main.select("."+m.chart).append("g").attr("class",m.chartBars)},h.updateTargetsForBar=function(t){var e,n,r=this,i=r.config,o=r.classChartBar.bind(r),a=r.classBars.bind(r),s=r.classFocus.bind(r);e=r.main.select("."+m.chartBars).selectAll("."+m.chartBar).data(t).attr("class",function(t){return o(t)+s(t)}),n=e.enter().append("g").attr("class",o).style("opacity",0).style("pointer-events","none"),n.append("g").attr("class",a).style("cursor",function(t){return i.data_selection_isselectable(t)?"pointer":null})},h.updateBar=function(t){var e=this,n=e.barData.bind(e),r=e.classBar.bind(e),i=e.initialOpacity.bind(e),o=function(t){return e.color(t.id)};e.mainBar=e.main.selectAll("."+m.bars).selectAll("."+m.bar).data(n),e.mainBar.enter().append("path").attr("class",r).style("stroke",o).style("fill",o),e.mainBar.style("opacity",i),e.mainBar.exit().transition().duration(t).style("opacity",0).remove()},h.redrawBar=function(t,e){return[(e?this.mainBar.transition():this.mainBar).attr("d",t).style("fill",this.color).style("opacity",1)]},h.getBarW=function(t,e){var n=this,r=n.config,i="number"==typeof r.bar_width?r.bar_width:e?t.tickInterval()*r.bar_width_ratio/e:0;return r.bar_width_max&&i>r.bar_width_max?r.bar_width_max:i},h.getBars=function(t,e){var n=this;return(e?n.main.selectAll("."+m.bars+n.getTargetSelectorSuffix(e)):n.main).selectAll("."+m.bar+(y(t)?"-"+t:""))},h.expandBars=function(t,e,n){var r=this;n&&r.unexpandBars(),r.getBars(t,e).classed(m.EXPANDED,!0)},h.unexpandBars=function(t){var e=this;e.getBars(t).classed(m.EXPANDED,!1)},h.generateDrawBar=function(t,e){var n=this,r=n.config,i=n.generateGetBarPoints(t,e);return function(t,e){var n=i(t,e),o=r.axis_rotated?1:0,a=r.axis_rotated?0:1,s="M "+n[0][o]+","+n[0][a]+" L"+n[1][o]+","+n[1][a]+" L"+n[2][o]+","+n[2][a]+" L"+n[3][o]+","+n[3][a]+" z";return s}},h.generateGetBarPoints=function(t,e){var n=this,r=e?n.subXAxis:n.xAxis,i=t.__max__+1,o=n.getBarW(r,i),a=n.getShapeX(o,i,t,!!e),s=n.getShapeY(!!e),u=n.getShapeOffset(n.isBarType,t,!!e),c=e?n.getSubYScale:n.getYScale;return function(t,e){var r=c.call(n,t.id)(0),i=u(t,e)||r,l=a(t),d=s(t);return n.config.axis_rotated&&(0<t.value&&r>d||t.value<0&&d>r)&&(d=r),[[l,i],[l,d-(r-i)],[l+o,d-(r-i)],[l+o,i]]}},h.isWithinBar=function(t){var e=this.d3.mouse(t),n=t.getBoundingClientRect(),r=t.pathSegList.getItem(0),i=t.pathSegList.getItem(1),o=Math.min(r.x,i.x),a=Math.min(r.y,i.y),s=n.width,u=n.height,c=2,l=o-c,d=o+s+c,p=a+u+c,f=a-c;return l<e[0]&&e[0]<d&&f<e[1]&&e[1]<p},h.initText=function(){var t=this;t.main.select("."+m.chart).append("g").attr("class",m.chartTexts),t.mainText=t.d3.selectAll([])},h.updateTargetsForText=function(t){var e,n,r=this,i=r.classChartText.bind(r),o=r.classTexts.bind(r),a=r.classFocus.bind(r);e=r.main.select("."+m.chartTexts).selectAll("."+m.chartText).data(t).attr("class",function(t){return i(t)+a(t)}),n=e.enter().append("g").attr("class",i).style("opacity",0).style("pointer-events","none"),n.append("g").attr("class",o)},h.updateText=function(t){var e=this,n=e.config,r=e.barOrLineData.bind(e),i=e.classText.bind(e);e.mainText=e.main.selectAll("."+m.texts).selectAll("."+m.text).data(r),e.mainText.enter().append("text").attr("class",i).attr("text-anchor",function(t){return n.axis_rotated?t.value<0?"end":"start":"middle"}).style("stroke","none").style("fill",function(t){return e.color(t)}).style("fill-opacity",0),e.mainText.text(function(t,n,r){return e.dataLabelFormat(t.id)(t.value,t.id,n,r)}),e.mainText.exit().transition().duration(t).style("fill-opacity",0).remove()},h.redrawText=function(t,e,n,r){return[(r?this.mainText.transition():this.mainText).attr("x",t).attr("y",e).style("fill",this.color).style("fill-opacity",n?0:this.opacityForText.bind(this))]},h.getTextRect=function(t,e){var n,r=this.d3.select("body").append("div").classed("c3",!0),i=r.append("svg").style("visibility","hidden").style("position","fixed").style("top",0).style("left",0);return i.selectAll(".dummy").data([t]).enter().append("text").classed(e?e:"",!0).text(t).each(function(){n=this.getBoundingClientRect()}),r.remove(),n},h.generateXYForText=function(t,e,n,r){var i=this,o=i.generateGetAreaPoints(t,!1),a=i.generateGetBarPoints(e,!1),s=i.generateGetLinePoints(n,!1),u=r?i.getXForText:i.getYForText;return function(t,e){var n=i.isAreaType(t)?o:i.isBarType(t)?a:s;return u.call(i,n(t,e),t,this)}},h.getXForText=function(t,e,n){var r,i,o=this,a=n.getBoundingClientRect();return o.config.axis_rotated?(i=o.isBarType(e)?4:6,r=t[2][1]+i*(e.value<0?-1:1)):r=o.hasType("bar")?(t[2][0]+t[0][0])/2:t[0][0],null===e.value&&(r>o.width?r=o.width-a.width:0>r&&(r=4)),r},h.getYForText=function(t,e,n){var r,i=this,o=n.getBoundingClientRect();return i.config.axis_rotated?r=(t[0][0]+t[2][0]+.6*o.height)/2:(r=t[2][1],e.value<0?(r+=o.height,i.isBarType(e)&&i.isSafari()?r-=3:!i.isBarType(e)&&i.isChrome()&&(r+=3)):r+=i.isBarType(e)?-3:-6),null!==e.value||i.config.axis_rotated||(r<o.height?r=o.height:r>this.height&&(r=this.height-4)),r},h.setTargetType=function(t,e){var n=this,r=n.config;n.mapToTargetIds(t).forEach(function(t){n.withoutFadeIn[t]=e===r.data_types[t],r.data_types[t]=e}),t||(r.data_type=e)},h.hasType=function(t,e){var n=this,r=n.config.data_types,i=!1;return e=e||n.data.targets,e&&e.length?e.forEach(function(e){var n=r[e.id];(n&&n.indexOf(t)>=0||!n&&"line"===t)&&(i=!0)}):Object.keys(r).length?Object.keys(r).forEach(function(e){r[e]===t&&(i=!0)}):i=n.config.data_type===t,i},h.hasArcType=function(t){return this.hasType("pie",t)||this.hasType("donut",t)||this.hasType("gauge",t)},h.isLineType=function(t){var e=this.config,n=_(t)?t:t.id;return!e.data_types[n]||["line","spline","area","area-spline","step","area-step"].indexOf(e.data_types[n])>=0},h.isStepType=function(t){var e=_(t)?t:t.id;return["step","area-step"].indexOf(this.config.data_types[e])>=0},h.isSplineType=function(t){var e=_(t)?t:t.id;return["spline","area-spline"].indexOf(this.config.data_types[e])>=0},h.isAreaType=function(t){var e=_(t)?t:t.id;return["area","area-spline","area-step"].indexOf(this.config.data_types[e])>=0},h.isBarType=function(t){var e=_(t)?t:t.id;return"bar"===this.config.data_types[e]},h.isScatterType=function(t){var e=_(t)?t:t.id;return"scatter"===this.config.data_types[e]},h.isPieType=function(t){var e=_(t)?t:t.id;return"pie"===this.config.data_types[e]},h.isGaugeType=function(t){var e=_(t)?t:t.id;return"gauge"===this.config.data_types[e]},h.isDonutType=function(t){var e=_(t)?t:t.id;return"donut"===this.config.data_types[e]},h.isArcType=function(t){return this.isPieType(t)||this.isDonutType(t)||this.isGaugeType(t)},h.lineData=function(t){return this.isLineType(t)?[t]:[]},h.arcData=function(t){return this.isArcType(t.data)?[t]:[]},h.barData=function(t){return this.isBarType(t)?t.values:[]},h.lineOrScatterData=function(t){return this.isLineType(t)||this.isScatterType(t)?t.values:[]},h.barOrLineData=function(t){return this.isBarType(t)||this.isLineType(t)?t.values:[]},h.initGrid=function(){var t=this,e=t.config,n=t.d3;t.grid=t.main.append("g").attr("clip-path",t.clipPathForGrid).attr("class",m.grid),e.grid_x_show&&t.grid.append("g").attr("class",m.xgrids),e.grid_y_show&&t.grid.append("g").attr("class",m.ygrids),e.grid_focus_show&&t.grid.append("g").attr("class",m.xgridFocus).append("line").attr("class",m.xgridFocus),t.xgrid=n.selectAll([]),e.grid_lines_front||t.initGridLines()},h.initGridLines=function(){var t=this,e=t.d3;t.gridLines=t.main.append("g").attr("clip-path",t.clipPathForGrid).attr("class",m.grid+" "+m.gridLines),t.gridLines.append("g").attr("class",m.xgridLines),t.gridLines.append("g").attr("class",m.ygridLines),t.xgridLines=e.selectAll([])},h.updateXGrid=function(t){
  var e=this,n=e.config,r=e.d3,i=e.generateGridData(n.grid_x_type,e.x),o=e.isCategorized()?e.xAxis.tickOffset():0;e.xgridAttr=n.axis_rotated?{x1:0,x2:e.width,y1:function(t){return e.x(t)-o},y2:function(t){return e.x(t)-o}}:{x1:function(t){return e.x(t)+o},x2:function(t){return e.x(t)+o},y1:0,y2:e.height},e.xgrid=e.main.select("."+m.xgrids).selectAll("."+m.xgrid).data(i),e.xgrid.enter().append("line").attr("class",m.xgrid),t||e.xgrid.attr(e.xgridAttr).style("opacity",function(){return+r.select(this).attr(n.axis_rotated?"y1":"x1")===(n.axis_rotated?e.height:0)?0:1}),e.xgrid.exit().remove()},h.updateYGrid=function(){var t=this,e=t.config,n=t.yAxis.tickValues()||t.y.ticks(e.grid_y_ticks);t.ygrid=t.main.select("."+m.ygrids).selectAll("."+m.ygrid).data(n),t.ygrid.enter().append("line").attr("class",m.ygrid),t.ygrid.attr("x1",e.axis_rotated?t.y:0).attr("x2",e.axis_rotated?t.y:t.width).attr("y1",e.axis_rotated?0:t.y).attr("y2",e.axis_rotated?t.height:t.y),t.ygrid.exit().remove(),t.smoothLines(t.ygrid,"grid")},h.gridTextAnchor=function(t){return t.position?t.position:"end"},h.gridTextDx=function(t){return"start"===t.position?4:"middle"===t.position?0:-4},h.xGridTextX=function(t){return"start"===t.position?-this.height:"middle"===t.position?-this.height/2:0},h.yGridTextX=function(t){return"start"===t.position?0:"middle"===t.position?this.width/2:this.width},h.updateGrid=function(t){var e,n,r,i=this,o=i.main,a=i.config;i.grid.style("visibility",i.hasArcType()?"hidden":"visible"),o.select("line."+m.xgridFocus).style("visibility","hidden"),a.grid_x_show&&i.updateXGrid(),i.xgridLines=o.select("."+m.xgridLines).selectAll("."+m.xgridLine).data(a.grid_x_lines),e=i.xgridLines.enter().append("g").attr("class",function(t){return m.xgridLine+(t["class"]?" "+t["class"]:"")}),e.append("line").style("opacity",0),e.append("text").attr("text-anchor",i.gridTextAnchor).attr("transform",a.axis_rotated?"":"rotate(-90)").attr("dx",i.gridTextDx).attr("dy",-5).style("opacity",0),i.xgridLines.exit().transition().duration(t).style("opacity",0).remove(),a.grid_y_show&&i.updateYGrid(),i.ygridLines=o.select("."+m.ygridLines).selectAll("."+m.ygridLine).data(a.grid_y_lines),n=i.ygridLines.enter().append("g").attr("class",function(t){return m.ygridLine+(t["class"]?" "+t["class"]:"")}),n.append("line").style("opacity",0),n.append("text").attr("text-anchor",i.gridTextAnchor).attr("transform",a.axis_rotated?"rotate(-90)":"").attr("dx",i.gridTextDx).attr("dy",-5).style("opacity",0),r=i.yv.bind(i),i.ygridLines.select("line").transition().duration(t).attr("x1",a.axis_rotated?r:0).attr("x2",a.axis_rotated?r:i.width).attr("y1",a.axis_rotated?0:r).attr("y2",a.axis_rotated?i.height:r).style("opacity",1),i.ygridLines.select("text").transition().duration(t).attr("x",a.axis_rotated?i.xGridTextX.bind(i):i.yGridTextX.bind(i)).attr("y",r).text(function(t){return t.text}).style("opacity",1),i.ygridLines.exit().transition().duration(t).style("opacity",0).remove()},h.redrawGrid=function(t){var e=this,n=e.config,r=e.xv.bind(e),i=e.xgridLines.select("line"),o=e.xgridLines.select("text");return[(t?i.transition():i).attr("x1",n.axis_rotated?0:r).attr("x2",n.axis_rotated?e.width:r).attr("y1",n.axis_rotated?r:0).attr("y2",n.axis_rotated?r:e.height).style("opacity",1),(t?o.transition():o).attr("x",n.axis_rotated?e.yGridTextX.bind(e):e.xGridTextX.bind(e)).attr("y",r).text(function(t){return t.text}).style("opacity",1)]},h.showXGridFocus=function(t){var e=this,n=e.config,r=t.filter(function(t){return t&&y(t.value)}),i=e.main.selectAll("line."+m.xgridFocus),o=e.xx.bind(e);n.tooltip_show&&(e.hasType("scatter")||e.hasArcType()||(i.style("visibility","visible").data([r[0]]).attr(n.axis_rotated?"y1":"x1",o).attr(n.axis_rotated?"y2":"x2",o),e.smoothLines(i,"grid")))},h.hideXGridFocus=function(){this.main.select("line."+m.xgridFocus).style("visibility","hidden")},h.updateXgridFocus=function(){var t=this,e=t.config;t.main.select("line."+m.xgridFocus).attr("x1",e.axis_rotated?0:-10).attr("x2",e.axis_rotated?t.width:-10).attr("y1",e.axis_rotated?-10:0).attr("y2",e.axis_rotated?-10:t.height)},h.generateGridData=function(t,e){var n,r,i,o,a=this,s=[],u=a.main.select("."+m.axisX).selectAll(".tick").size();if("year"===t)for(n=a.getXDomain(),r=n[0].getFullYear(),i=n[1].getFullYear(),o=r;i>=o;o++)s.push(new Date(o+"-01-01 00:00:00"));else s=e.ticks(10),s.length>u&&(s=s.filter(function(t){return(""+t).indexOf(".")<0}));return s},h.getGridFilterToRemove=function(t){return t?function(e){var n=!1;return[].concat(t).forEach(function(t){("value"in t&&e.value===t.value||"class"in t&&e["class"]===t["class"])&&(n=!0)}),n}:function(){return!0}},h.removeGridLines=function(t,e){var n=this,r=n.config,i=n.getGridFilterToRemove(t),o=function(t){return!i(t)},a=e?m.xgridLines:m.ygridLines,s=e?m.xgridLine:m.ygridLine;n.main.select("."+a).selectAll("."+s).filter(i).transition().duration(r.transition_duration).style("opacity",0).remove(),e?r.grid_x_lines=r.grid_x_lines.filter(o):r.grid_y_lines=r.grid_y_lines.filter(o)},h.initTooltip=function(){var t,e=this,n=e.config;if(e.tooltip=e.selectChart.style("position","relative").append("div").attr("class",m.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none"),n.tooltip_init_show){if(e.isTimeSeries()&&_(n.tooltip_init_x)){for(n.tooltip_init_x=e.parseDate(n.tooltip_init_x),t=0;t<e.data.targets[0].values.length&&e.data.targets[0].values[t].x-n.tooltip_init_x!==0;t++);n.tooltip_init_x=t}e.tooltip.html(n.tooltip_contents.call(e,e.data.targets.map(function(t){return e.addName(t.values[n.tooltip_init_x])}),e.axis.getXAxisTickFormat(),e.getYFormat(e.hasArcType()),e.color)),e.tooltip.style("top",n.tooltip_init_position.top).style("left",n.tooltip_init_position.left).style("display","block")}},h.getTooltipContent=function(t,e,n,r){var i,o,a,s,u,c,l=this,d=l.config,p=d.tooltip_format_title||e,f=d.tooltip_format_name||function(t){return t},h=d.tooltip_format_value||n;for(o=0;o<t.length;o++)t[o]&&(t[o].value||0===t[o].value)&&(i||(a=p?p(t[o].x):t[o].x,i="<table class='"+m.tooltip+"'>"+(a||0===a?"<tr><th colspan='2'>"+a+"</th></tr>":"")),s=h(t[o].value,t[o].ratio,t[o].id,t[o].index),void 0!==s&&(u=f(t[o].name,t[o].ratio,t[o].id,t[o].index),c=l.levelColor?l.levelColor(t[o].value):r(t[o].id),i+="<tr class='"+m.tooltipName+"-"+t[o].id+"'>",i+="<td class='name'><span style='background-color:"+c+"'></span>"+u+"</td>",i+="<td class='value'>"+s+"</td>",i+="</tr>"));return i+"</table>"},h.tooltipPosition=function(t,e,n,r){var i,o,a,s,u,c=this,l=c.config,d=c.d3,p=c.hasArcType(),f=d.mouse(r);return p?(o=(c.width-(c.isLegendRight?c.getLegendWidth():0))/2+f[0],s=c.height/2+f[1]+20):(i=c.getSvgLeft(!0),l.axis_rotated?(o=i+f[0]+100,a=o+e,u=c.currentWidth-c.getCurrentPaddingRight(),s=c.x(t[0].x)+20):(o=i+c.getCurrentPaddingLeft(!0)+c.x(t[0].x)+20,a=o+e,u=i+c.currentWidth-c.getCurrentPaddingRight(),s=f[1]+15),a>u&&(o-=a-u+20),s+n>c.currentHeight&&(s-=n+30)),0>s&&(s=0),{top:s,left:o}},h.showTooltip=function(t,e){var n,r,i,o=this,a=o.config,s=o.hasArcType(),u=t.filter(function(t){return t&&y(t.value)}),c=a.tooltip_position||h.tooltipPosition;0!==u.length&&a.tooltip_show&&(o.tooltip.html(a.tooltip_contents.call(o,t,o.axis.getXAxisTickFormat(),o.getYFormat(s),o.color)).style("display","block"),n=o.tooltip.property("offsetWidth"),r=o.tooltip.property("offsetHeight"),i=c.call(this,u,n,r,e),o.tooltip.style("top",i.top+"px").style("left",i.left+"px"))},h.hideTooltip=function(){this.tooltip.style("display","none")},h.initLegend=function(){var t=this;return t.legendItemTextBox={},t.legendHasRendered=!1,t.legend=t.svg.append("g").attr("transform",t.getTranslate("legend")),t.config.legend_show?void t.updateLegendWithDefaults():(t.legend.style("visibility","hidden"),void(t.hiddenLegendIds=t.mapToIds(t.data.targets)))},h.updateLegendWithDefaults=function(){var t=this;t.updateLegend(t.mapToIds(t.data.targets),{withTransform:!1,withTransitionForTransform:!1,withTransition:!1})},h.updateSizeForLegend=function(t,e){var n=this,r=n.config,i={top:n.isLegendTop?n.getCurrentPaddingTop()+r.legend_inset_y+5.5:n.currentHeight-t-n.getCurrentPaddingBottom()-r.legend_inset_y,left:n.isLegendLeft?n.getCurrentPaddingLeft()+r.legend_inset_x+.5:n.currentWidth-e-n.getCurrentPaddingRight()-r.legend_inset_x+.5};n.margin3={top:n.isLegendRight?0:n.isLegendInset?i.top:n.currentHeight-t,right:NaN,bottom:0,left:n.isLegendRight?n.currentWidth-e:n.isLegendInset?i.left:0}},h.transformLegend=function(t){var e=this;(t?e.legend.transition():e.legend).attr("transform",e.getTranslate("legend"))},h.updateLegendStep=function(t){this.legendStep=t},h.updateLegendItemWidth=function(t){this.legendItemWidth=t},h.updateLegendItemHeight=function(t){this.legendItemHeight=t},h.getLegendWidth=function(){var t=this;return t.config.legend_show?t.isLegendRight||t.isLegendInset?t.legendItemWidth*(t.legendStep+1):t.currentWidth:0},h.getLegendHeight=function(){var t=this,e=0;return t.config.legend_show&&(e=t.isLegendRight?t.currentHeight:Math.max(20,t.legendItemHeight)*(t.legendStep+1)),e},h.opacityForLegend=function(t){return t.classed(m.legendItemHidden)?null:1},h.opacityForUnfocusedLegend=function(t){return t.classed(m.legendItemHidden)?null:.3},h.toggleFocusLegend=function(t,e){var n=this;t=n.mapToTargetIds(t),n.legend.selectAll("."+m.legendItem).filter(function(e){return t.indexOf(e)>=0}).classed(m.legendItemFocused,e).transition().duration(100).style("opacity",function(){var t=e?n.opacityForLegend:n.opacityForUnfocusedLegend;return t.call(n,n.d3.select(this))})},h.revertLegend=function(){var t=this,e=t.d3;t.legend.selectAll("."+m.legendItem).classed(m.legendItemFocused,!1).transition().duration(100).style("opacity",function(){return t.opacityForLegend(e.select(this))})},h.showLegend=function(t){var e=this,n=e.config;n.legend_show||(n.legend_show=!0,e.legend.style("visibility","visible"),e.legendHasRendered||e.updateLegendWithDefaults()),e.removeHiddenLegendIds(t),e.legend.selectAll(e.selectorLegends(t)).style("visibility","visible").transition().style("opacity",function(){return e.opacityForLegend(e.d3.select(this))})},h.hideLegend=function(t){var e=this,n=e.config;n.legend_show&&T(t)&&(n.legend_show=!1,e.legend.style("visibility","hidden")),e.addHiddenLegendIds(t),e.legend.selectAll(e.selectorLegends(t)).style("opacity",0).style("visibility","hidden")},h.clearLegendItemTextBoxCache=function(){this.legendItemTextBox={}},h.updateLegend=function(t,e,n){function r(t,e){return x.legendItemTextBox[e]||(x.legendItemTextBox[e]=x.getTextRect(t.textContent,m.legendItem)),x.legendItemTextBox[e]}function i(e,n,i){function o(t,e){e||(a=(h-A-f)/2,T>a&&(a=(h-f)/2,A=0,L++)),I[t]=L,R[L]=x.isLegendInset?10:a,k[t]=A,A+=f}var a,s,u=0===i,c=i===t.length-1,l=r(e,n),d=l.width+D+(!c||x.isLegendRight||x.isLegendInset?w:0),p=l.height+b,f=x.isLegendRight||x.isLegendInset?p:d,h=x.isLegendRight||x.isLegendInset?x.getLegendHeight():x.getLegendWidth();return u&&(A=0,L=0,N=0,C=0),_.legend_show&&!x.isLegendToShow(n)?void(S[n]=O[n]=I[n]=k[n]=0):(S[n]=d,O[n]=p,(!N||d>=N)&&(N=d),(!C||p>=C)&&(C=p),s=x.isLegendRight||x.isLegendInset?C:N,void(_.legend_equally?(Object.keys(S).forEach(function(t){S[t]=N}),Object.keys(O).forEach(function(t){O[t]=C}),a=(h-s*t.length)/2,T>a?(A=0,L=0,t.forEach(function(t){o(t)})):o(n,!0)):o(n)))}var o,a,s,u,c,l,d,p,f,h,g,v,y,x=this,_=x.config,b=4,w=10,N=0,C=0,T=10,D=15,A=0,k={},S={},O={},R=[0],I={},L=0;e=e||{},p=M(e,"withTransition",!0),f=M(e,"withTransitionForTransform",!0),x.isLegendInset&&(L=_.legend_inset_step?_.legend_inset_step:t.length,x.updateLegendStep(L)),x.isLegendRight?(o=function(t){return N*I[t]},u=function(t){return R[I[t]]+k[t]}):x.isLegendInset?(o=function(t){return N*I[t]+10},u=function(t){return R[I[t]]+k[t]}):(o=function(t){return R[I[t]]+k[t]},u=function(t){return C*I[t]}),a=function(t,e){return o(t,e)+14},c=function(t,e){return u(t,e)+9},s=function(t,e){return o(t,e)},l=function(t,e){return u(t,e)-5},d=x.legend.selectAll("."+m.legendItem).data(t).enter().append("g").attr("class",function(t){return x.generateClass(m.legendItem,t)}).style("visibility",function(t){return x.isLegendToShow(t)?"visible":"hidden"}).style("cursor","pointer").on("click",function(t){_.legend_item_onclick?_.legend_item_onclick.call(x,t):x.d3.event.altKey?(x.api.hide(),x.api.show(t)):(x.api.toggle(t),x.isTargetToShow(t)?x.api.focus(t):x.api.revert())}).on("mouseover",function(t){x.d3.select(this).classed(m.legendItemFocused,!0),!x.transiting&&x.isTargetToShow(t)&&x.api.focus(t),_.legend_item_onmouseover&&_.legend_item_onmouseover.call(x,t)}).on("mouseout",function(t){x.d3.select(this).classed(m.legendItemFocused,!1),x.api.revert(),_.legend_item_onmouseout&&_.legend_item_onmouseout.call(x,t)}),d.append("text").text(function(t){return E(_.data_names[t])?_.data_names[t]:t}).each(function(t,e){i(this,t,e)}).style("pointer-events","none").attr("x",x.isLegendRight||x.isLegendInset?a:-200).attr("y",x.isLegendRight||x.isLegendInset?-200:c),d.append("rect").attr("class",m.legendItemEvent).style("fill-opacity",0).attr("x",x.isLegendRight||x.isLegendInset?s:-200).attr("y",x.isLegendRight||x.isLegendInset?-200:l),d.append("rect").attr("class",m.legendItemTile).style("pointer-events","none").style("fill",x.color).attr("x",x.isLegendRight||x.isLegendInset?a:-200).attr("y",x.isLegendRight||x.isLegendInset?-200:u).attr("width",10).attr("height",10),y=x.legend.select("."+m.legendBackground+" rect"),x.isLegendInset&&N>0&&0===y.size()&&(y=x.legend.insert("g","."+m.legendItem).attr("class",m.legendBackground).append("rect")),h=x.legend.selectAll("text").data(t).text(function(t){return E(_.data_names[t])?_.data_names[t]:t}).each(function(t,e){i(this,t,e)}),(p?h.transition():h).attr("x",a).attr("y",c),g=x.legend.selectAll("rect."+m.legendItemEvent).data(t),(p?g.transition():g).attr("width",function(t){return S[t]}).attr("height",function(t){return O[t]}).attr("x",s).attr("y",l),v=x.legend.selectAll("rect."+m.legendItemTile).data(t),(p?v.transition():v).style("fill",x.color).attr("x",o).attr("y",u),y&&(p?y.transition():y).attr("height",x.getLegendHeight()-12).attr("width",N*(L+1)+10),x.legend.selectAll("."+m.legendItem).classed(m.legendItemHidden,function(t){return!x.isTargetToShow(t)}),x.updateLegendItemWidth(N),x.updateLegendItemHeight(C),x.updateLegendStep(L),x.updateSizes(),x.updateScales(),x.updateSvgSize(),x.transformAll(f,n),x.legendHasRendered=!0},u(s,d),d.prototype.init=function(){var t=this.owner,e=t.config,n=t.main;t.axes.x=n.append("g").attr("class",m.axis+" "+m.axisX).attr("clip-path",t.clipPathForXAxis).attr("transform",t.getTranslate("x")).style("visibility",e.axis_x_show?"visible":"hidden"),t.axes.x.append("text").attr("class",m.axisXLabel).attr("transform",e.axis_rotated?"rotate(-90)":"").style("text-anchor",this.textAnchorForXAxisLabel.bind(this)),t.axes.y=n.append("g").attr("class",m.axis+" "+m.axisY).attr("clip-path",e.axis_y_inner?"":t.clipPathForYAxis).attr("transform",t.getTranslate("y")).style("visibility",e.axis_y_show?"visible":"hidden"),t.axes.y.append("text").attr("class",m.axisYLabel).attr("transform",e.axis_rotated?"":"rotate(-90)").style("text-anchor",this.textAnchorForYAxisLabel.bind(this)),t.axes.y2=n.append("g").attr("class",m.axis+" "+m.axisY2).attr("transform",t.getTranslate("y2")).style("visibility",e.axis_y2_show?"visible":"hidden"),t.axes.y2.append("text").attr("class",m.axisY2Label).attr("transform",e.axis_rotated?"":"rotate(-90)").style("text-anchor",this.textAnchorForY2AxisLabel.bind(this))},d.prototype.getXAxis=function(t,e,n,r,i,o,a){var s=this.owner,u=s.config,c={isCategory:s.isCategorized(),withOuterTick:i,tickMultiline:u.axis_x_tick_multiline,tickWidth:u.axis_x_tick_width,tickTextRotate:a?0:u.axis_x_tick_rotate,withoutTransition:o},l=p(s.d3,c).scale(t).orient(e);return s.isTimeSeries()&&r&&(r=r.map(function(t){return s.parseDate(t)})),l.tickFormat(n).tickValues(r),s.isCategorized()&&(l.tickCentered(u.axis_x_tick_centered),T(u.axis_x_tick_culling)&&(u.axis_x_tick_culling=!1)),l},d.prototype.updateXAxisTickValues=function(t,e){var n,r=this.owner,i=r.config;return(i.axis_x_tick_fit||i.axis_x_tick_count)&&(n=this.generateTickValues(r.mapTargetsToUniqueXs(t),i.axis_x_tick_count,r.isTimeSeries())),e?e.tickValues(n):(r.xAxis.tickValues(n),r.subXAxis.tickValues(n)),n},d.prototype.getYAxis=function(t,e,n,r,i,o){var a={withOuterTick:i,withoutTransition:o},s=this.owner,u=s.d3,c=s.config,l=p(u,a).scale(t).orient(e).tickFormat(n);return s.isTimeSeriesY()?l.ticks(u.time[c.axis_y_tick_time_value],c.axis_y_tick_time_interval):l.tickValues(r),l},d.prototype.getId=function(t){var e=this.owner.config;return t in e.data_axes?e.data_axes[t]:"y"},d.prototype.getXAxisTickFormat=function(){var t=this.owner,e=t.config,n=t.isTimeSeries()?t.defaultAxisTimeFormat:t.isCategorized()?t.categoryName:function(t){return 0>t?t.toFixed(0):t};return e.axis_x_tick_format&&(x(e.axis_x_tick_format)?n=e.axis_x_tick_format:t.isTimeSeries()&&(n=function(n){return n?t.axisTimeFormat(e.axis_x_tick_format)(n):""})),x(n)?function(e){return n.call(t,e)}:n},d.prototype.getTickValues=function(t,e){return t?t:e?e.tickValues():void 0},d.prototype.getXAxisTickValues=function(){return this.getTickValues(this.owner.config.axis_x_tick_values,this.owner.xAxis)},d.prototype.getYAxisTickValues=function(){return this.getTickValues(this.owner.config.axis_y_tick_values,this.owner.yAxis)},d.prototype.getY2AxisTickValues=function(){return this.getTickValues(this.owner.config.axis_y2_tick_values,this.owner.y2Axis)},d.prototype.getLabelOptionByAxisId=function(t){var e,n=this.owner,r=n.config;return"y"===t?e=r.axis_y_label:"y2"===t?e=r.axis_y2_label:"x"===t&&(e=r.axis_x_label),e},d.prototype.getLabelText=function(t){var e=this.getLabelOptionByAxisId(t);return _(e)?e:e?e.text:null},d.prototype.setLabelText=function(t,e){var n=this.owner,r=n.config,i=this.getLabelOptionByAxisId(t);_(i)?"y"===t?r.axis_y_label=e:"y2"===t?r.axis_y2_label=e:"x"===t&&(r.axis_x_label=e):i&&(i.text=e)},d.prototype.getLabelPosition=function(t,e){var n=this.getLabelOptionByAxisId(t),r=n&&"object"==typeof n&&n.position?n.position:e;return{isInner:r.indexOf("inner")>=0,isOuter:r.indexOf("outer")>=0,isLeft:r.indexOf("left")>=0,isCenter:r.indexOf("center")>=0,isRight:r.indexOf("right")>=0,isTop:r.indexOf("top")>=0,isMiddle:r.indexOf("middle")>=0,isBottom:r.indexOf("bottom")>=0}},d.prototype.getXAxisLabelPosition=function(){return this.getLabelPosition("x",this.owner.config.axis_rotated?"inner-top":"inner-right")},d.prototype.getYAxisLabelPosition=function(){return this.getLabelPosition("y",this.owner.config.axis_rotated?"inner-right":"inner-top")},d.prototype.getY2AxisLabelPosition=function(){return this.getLabelPosition("y2",this.owner.config.axis_rotated?"inner-right":"inner-top")},d.prototype.getLabelPositionById=function(t){return"y2"===t?this.getY2AxisLabelPosition():"y"===t?this.getYAxisLabelPosition():this.getXAxisLabelPosition()},d.prototype.textForXAxisLabel=function(){return this.getLabelText("x")},d.prototype.textForYAxisLabel=function(){return this.getLabelText("y")},d.prototype.textForY2AxisLabel=function(){return this.getLabelText("y2")},d.prototype.xForAxisLabel=function(t,e){var n=this.owner;return t?e.isLeft?0:e.isCenter?n.width/2:n.width:e.isBottom?-n.height:e.isMiddle?-n.height/2:0},d.prototype.dxForAxisLabel=function(t,e){return t?e.isLeft?"0.5em":e.isRight?"-0.5em":"0":e.isTop?"-0.5em":e.isBottom?"0.5em":"0"},d.prototype.textAnchorForAxisLabel=function(t,e){return t?e.isLeft?"start":e.isCenter?"middle":"end":e.isBottom?"start":e.isMiddle?"middle":"end"},d.prototype.xForXAxisLabel=function(){return this.xForAxisLabel(!this.owner.config.axis_rotated,this.getXAxisLabelPosition())},d.prototype.xForYAxisLabel=function(){return this.xForAxisLabel(this.owner.config.axis_rotated,this.getYAxisLabelPosition())},d.prototype.xForY2AxisLabel=function(){return this.xForAxisLabel(this.owner.config.axis_rotated,this.getY2AxisLabelPosition())},d.prototype.dxForXAxisLabel=function(){return this.dxForAxisLabel(!this.owner.config.axis_rotated,this.getXAxisLabelPosition())},d.prototype.dxForYAxisLabel=function(){return this.dxForAxisLabel(this.owner.config.axis_rotated,this.getYAxisLabelPosition())},d.prototype.dxForY2AxisLabel=function(){return this.dxForAxisLabel(this.owner.config.axis_rotated,this.getY2AxisLabelPosition())},d.prototype.dyForXAxisLabel=function(){var t=this.owner,e=t.config,n=this.getXAxisLabelPosition();return e.axis_rotated?n.isInner?"1.2em":-25-this.getMaxTickWidth("x"):n.isInner?"-0.5em":e.axis_x_height?e.axis_x_height-10:"3em"},d.prototype.dyForYAxisLabel=function(){var t=this.owner,e=this.getYAxisLabelPosition();return t.config.axis_rotated?e.isInner?"-0.5em":"3em":e.isInner?"1.2em":-10-(t.config.axis_y_inner?0:this.getMaxTickWidth("y")+10)},d.prototype.dyForY2AxisLabel=function(){var t=this.owner,e=this.getY2AxisLabelPosition();return t.config.axis_rotated?e.isInner?"1.2em":"-2.2em":e.isInner?"-0.5em":15+(t.config.axis_y2_inner?0:this.getMaxTickWidth("y2")+15)},d.prototype.textAnchorForXAxisLabel=function(){var t=this.owner;return this.textAnchorForAxisLabel(!t.config.axis_rotated,this.getXAxisLabelPosition())},d.prototype.textAnchorForYAxisLabel=function(){var t=this.owner;return this.textAnchorForAxisLabel(t.config.axis_rotated,this.getYAxisLabelPosition())},d.prototype.textAnchorForY2AxisLabel=function(){var t=this.owner;return this.textAnchorForAxisLabel(t.config.axis_rotated,this.getY2AxisLabelPosition())},d.prototype.getMaxTickWidth=function(t,e){var n,r,i,o,a,s=this.owner,u=s.config,c=0;return e&&s.currentMaxTickWidths[t]?s.currentMaxTickWidths[t]:(s.svg&&(n=s.filterTargetsToShow(s.data.targets),"y"===t?(r=s.y.copy().domain(s.getYDomain(n,"y")),i=this.getYAxis(r,s.yOrient,u.axis_y_tick_format,s.yAxisTickValues,!1,!0)):"y2"===t?(r=s.y2.copy().domain(s.getYDomain(n,"y2")),i=this.getYAxis(r,s.y2Orient,u.axis_y2_tick_format,s.y2AxisTickValues,!1,!0)):(r=s.x.copy().domain(s.getXDomain(n)),i=this.getXAxis(r,s.xOrient,s.xAxisTickFormat,s.xAxisTickValues,!1,!0,!0),this.updateXAxisTickValues(n,i)),o=s.d3.select("body").append("div").classed("c3",!0),a=o.append("svg").style("visibility","hidden").style("position","fixed").style("top",0).style("left",0),a.append("g").call(i).each(function(){s.d3.select(this).selectAll("text").each(function(){var t=this.getBoundingClientRect();c<t.width&&(c=t.width)}),o.remove()})),s.currentMaxTickWidths[t]=0>=c?s.currentMaxTickWidths[t]:c,s.currentMaxTickWidths[t])},d.prototype.updateLabels=function(t){var e=this.owner,n=e.main.select("."+m.axisX+" ."+m.axisXLabel),r=e.main.select("."+m.axisY+" ."+m.axisYLabel),i=e.main.select("."+m.axisY2+" ."+m.axisY2Label);(t?n.transition():n).attr("x",this.xForXAxisLabel.bind(this)).attr("dx",this.dxForXAxisLabel.bind(this)).attr("dy",this.dyForXAxisLabel.bind(this)).text(this.textForXAxisLabel.bind(this)),(t?r.transition():r).attr("x",this.xForYAxisLabel.bind(this)).attr("dx",this.dxForYAxisLabel.bind(this)).attr("dy",this.dyForYAxisLabel.bind(this)).text(this.textForYAxisLabel.bind(this)),(t?i.transition():i).attr("x",this.xForY2AxisLabel.bind(this)).attr("dx",this.dxForY2AxisLabel.bind(this)).attr("dy",this.dyForY2AxisLabel.bind(this)).text(this.textForY2AxisLabel.bind(this))},d.prototype.getPadding=function(t,e,n,r){return y(t[e])?"ratio"===t.unit?t[e]*r:this.convertPixelsToAxisPadding(t[e],r):n},d.prototype.convertPixelsToAxisPadding=function(t,e){var n=this.owner,r=n.config.axis_rotated?n.width:n.height;return e*(t/r)},d.prototype.generateTickValues=function(t,e,n){var r,i,o,a,s,u,c,l=t;if(e)if(r=x(e)?e():e,1===r)l=[t[0]];else if(2===r)l=[t[0],t[t.length-1]];else if(r>2){for(a=r-2,i=t[0],o=t[t.length-1],s=(o-i)/(a+1),l=[i],u=0;a>u;u++)c=+i+s*(u+1),l.push(n?new Date(c):c);l.push(o)}return n||(l=l.sort(function(t,e){return t-e})),l},d.prototype.generateTransitions=function(t){var e=this.owner,n=e.axes;return{axisX:t?n.x.transition().duration(t):n.x,axisY:t?n.y.transition().duration(t):n.y,axisY2:t?n.y2.transition().duration(t):n.y2,axisSubX:t?n.subx.transition().duration(t):n.subx}},d.prototype.redraw=function(t,e){var n=this.owner;n.axes.x.style("opacity",e?0:1),n.axes.y.style("opacity",e?0:1),n.axes.y2.style("opacity",e?0:1),n.axes.subx.style("opacity",e?0:1),t.axisX.call(n.xAxis),t.axisY.call(n.yAxis),t.axisY2.call(n.y2Axis),t.axisSubX.call(n.subXAxis)},h.getClipPath=function(t){var e=a.navigator.appVersion.toLowerCase().indexOf("msie 9.")>=0;return"url("+(e?"":document.URL.split("#")[0])+"#"+t+")"},h.appendClip=function(t,e){return t.append("clipPath").attr("id",e).append("rect")},h.getAxisClipX=function(t){var e=Math.max(30,this.margin.left);return t?-(1+e):-(e-1)},h.getAxisClipY=function(t){return t?-20:-this.margin.top},h.getXAxisClipX=function(){var t=this;return t.getAxisClipX(!t.config.axis_rotated)},h.getXAxisClipY=function(){var t=this;return t.getAxisClipY(!t.config.axis_rotated)},h.getYAxisClipX=function(){var t=this;return t.config.axis_y_inner?-1:t.getAxisClipX(t.config.axis_rotated)},h.getYAxisClipY=function(){var t=this;return t.getAxisClipY(t.config.axis_rotated)},h.getAxisClipWidth=function(t){var e=this,n=Math.max(30,e.margin.left),r=Math.max(30,e.margin.right);return t?e.width+2+n+r:e.margin.left+20},h.getAxisClipHeight=function(t){return(t?this.margin.bottom:this.margin.top+this.height)+20},h.getXAxisClipWidth=function(){var t=this;return t.getAxisClipWidth(!t.config.axis_rotated)},h.getXAxisClipHeight=function(){var t=this;return t.getAxisClipHeight(!t.config.axis_rotated)},h.getYAxisClipWidth=function(){var t=this;return t.getAxisClipWidth(t.config.axis_rotated)+(t.config.axis_y_inner?20:0)},h.getYAxisClipHeight=function(){var t=this;return t.getAxisClipHeight(t.config.axis_rotated)},h.initPie=function(){var t=this,e=t.d3,n=t.config;t.pie=e.layout.pie().value(function(t){return t.values.reduce(function(t,e){return t+e.value},0)}),n.data_order||t.pie.sort(null)},h.updateRadius=function(){var t=this,e=t.config,n=e.gauge_width||e.donut_width;t.radiusExpanded=Math.min(t.arcWidth,t.arcHeight)/2,t.radius=.95*t.radiusExpanded,t.innerRadiusRatio=n?(t.radius-n)/t.radius:.6,t.innerRadius=t.hasType("donut")||t.hasType("gauge")?t.radius*t.innerRadiusRatio:0},h.updateArc=function(){var t=this;t.svgArc=t.getSvgArc(),t.svgArcExpanded=t.getSvgArcExpanded(),t.svgArcExpandedSub=t.getSvgArcExpanded(.98)},h.updateAngle=function(t){var e,n,r=this,i=r.config,o=!1,a=0,s=i.gauge_min,u=i.gauge_max;return r.pie(r.filterTargetsToShow(r.data.targets)).forEach(function(e){o||e.data.id!==t.data.id||(o=!0,t=e,t.index=a),a++}),isNaN(t.startAngle)&&(t.startAngle=0),isNaN(t.endAngle)&&(t.endAngle=t.startAngle),r.isGaugeType(t.data)&&(e=Math.PI/(u-s),n=t.value<s?0:t.value<u?t.value-s:u-s,t.startAngle=-1*(Math.PI/2),t.endAngle=t.startAngle+e*n),o?t:null},h.getSvgArc=function(){var t=this,e=t.d3.svg.arc().outerRadius(t.radius).innerRadius(t.innerRadius),n=function(n,r){var i;return r?e(n):(i=t.updateAngle(n),i?e(i):"M 0 0")};return n.centroid=e.centroid,n},h.getSvgArcExpanded=function(t){var e=this,n=e.d3.svg.arc().outerRadius(e.radiusExpanded*(t?t:1)).innerRadius(e.innerRadius);return function(t){var r=e.updateAngle(t);return r?n(r):"M 0 0"}},h.getArc=function(t,e,n){return n||this.isArcType(t.data)?this.svgArc(t,e):"M 0 0"},h.transformForArcLabel=function(t){var e,n,r,i,o,a=this,s=a.updateAngle(t),u="";return s&&!a.hasType("gauge")&&(e=this.svgArc.centroid(s),n=isNaN(e[0])?0:e[0],r=isNaN(e[1])?0:e[1],i=Math.sqrt(n*n+r*r),o=a.radius&&i?(36/a.radius>.375?1.175-36/a.radius:.8)*a.radius/i:0,u="translate("+n*o+","+r*o+")"),u},h.getArcRatio=function(t){var e=this,n=e.hasType("gauge")?Math.PI:2*Math.PI;return t?(t.endAngle-t.startAngle)/n:null},h.convertToArcData=function(t){return this.addName({id:t.data.id,value:t.value,ratio:this.getArcRatio(t),index:t.index})},h.textForArcLabel=function(t){var e,n,r,i,o,a=this;return a.shouldShowArcLabel()?(e=a.updateAngle(t),n=e?e.value:null,r=a.getArcRatio(e),i=t.data.id,a.hasType("gauge")||a.meetsArcLabelThreshold(r)?(o=a.getArcLabelFormat(),o?o(n,r,i):a.defaultArcValueFormat(n,r)):""):""},h.expandArc=function(t){var e,n=this;return n.transiting?void(e=a.setInterval(function(){n.transiting||(a.clearInterval(e),n.legend.selectAll(".c3-legend-item-focused").size()>0&&n.expandArc(t))},10)):(t=n.mapToTargetIds(t),void n.svg.selectAll(n.selectorTargets(t,"."+m.chartArc)).each(function(t){n.shouldExpand(t.data.id)&&n.d3.select(this).selectAll("path").transition().duration(50).attr("d",n.svgArcExpanded).transition().duration(100).attr("d",n.svgArcExpandedSub).each(function(t){n.isDonutType(t.data)})}))},h.unexpandArc=function(t){var e=this;e.transiting||(t=e.mapToTargetIds(t),e.svg.selectAll(e.selectorTargets(t,"."+m.chartArc)).selectAll("path").transition().duration(50).attr("d",e.svgArc),e.svg.selectAll("."+m.arc).style("opacity",1))},h.shouldExpand=function(t){var e=this,n=e.config;return e.isDonutType(t)&&n.donut_expand||e.isGaugeType(t)&&n.gauge_expand||e.isPieType(t)&&n.pie_expand},h.shouldShowArcLabel=function(){var t=this,e=t.config,n=!0;return t.hasType("donut")?n=e.donut_label_show:t.hasType("pie")&&(n=e.pie_label_show),n},h.meetsArcLabelThreshold=function(t){var e=this,n=e.config,r=e.hasType("donut")?n.donut_label_threshold:n.pie_label_threshold;return t>=r},h.getArcLabelFormat=function(){var t=this,e=t.config,n=e.pie_label_format;return t.hasType("gauge")?n=e.gauge_label_format:t.hasType("donut")&&(n=e.donut_label_format),n},h.getArcTitle=function(){var t=this;return t.hasType("donut")?t.config.donut_title:""},h.updateTargetsForArc=function(t){var e,n,r=this,i=r.main,o=r.classChartArc.bind(r),a=r.classArcs.bind(r),s=r.classFocus.bind(r);e=i.select("."+m.chartArcs).selectAll("."+m.chartArc).data(r.pie(t)).attr("class",function(t){return o(t)+s(t.data)}),n=e.enter().append("g").attr("class",o),n.append("g").attr("class",a),n.append("text").attr("dy",r.hasType("gauge")?"-.1em":".35em").style("opacity",0).style("text-anchor","middle").style("pointer-events","none")},h.initArc=function(){var t=this;t.arcs=t.main.select("."+m.chart).append("g").attr("class",m.chartArcs).attr("transform",t.getTranslate("arc")),t.arcs.append("text").attr("class",m.chartArcsTitle).style("text-anchor","middle").text(t.getArcTitle())},h.redrawArc=function(t,e,n){var r,i=this,o=i.d3,a=i.config,s=i.main;r=s.selectAll("."+m.arcs).selectAll("."+m.arc).data(i.arcData.bind(i)),r.enter().append("path").attr("class",i.classArc.bind(i)).style("fill",function(t){return i.color(t.data)}).style("cursor",function(t){return a.interaction_enabled&&a.data_selection_isselectable(t)?"pointer":null}).style("opacity",0).each(function(t){i.isGaugeType(t.data)&&(t.startAngle=t.endAngle=-1*(Math.PI/2)),this._current=t}),r.attr("transform",function(t){return!i.isGaugeType(t.data)&&n?"scale(0)":""}).style("opacity",function(t){return t===this._current?0:1}).on("mouseover",a.interaction_enabled?function(t){var e,n;i.transiting||(e=i.updateAngle(t),n=i.convertToArcData(e),i.expandArc(e.data.id),i.api.focus(e.data.id),i.toggleFocusLegend(e.data.id,!0),i.config.data_onmouseover(n,this))}:null).on("mousemove",a.interaction_enabled?function(t){var e=i.updateAngle(t),n=i.convertToArcData(e),r=[n];i.showTooltip(r,this)}:null).on("mouseout",a.interaction_enabled?function(t){var e,n;i.transiting||(e=i.updateAngle(t),n=i.convertToArcData(e),i.unexpandArc(e.data.id),i.api.revert(),i.revertLegend(),i.hideTooltip(),i.config.data_onmouseout(n,this))}:null).on("click",a.interaction_enabled?function(t,e){var n=i.updateAngle(t),r=i.convertToArcData(n);i.toggleShape&&i.toggleShape(this,r,e),i.config.data_onclick.call(i.api,r,this)}:null).each(function(){i.transiting=!0}).transition().duration(t).attrTween("d",function(t){var e,n=i.updateAngle(t);return n?(isNaN(this._current.startAngle)&&(this._current.startAngle=0),isNaN(this._current.endAngle)&&(this._current.endAngle=this._current.startAngle),e=o.interpolate(this._current,n),this._current=e(0),function(n){var r=e(n);return r.data=t.data,i.getArc(r,!0)}):function(){return"M 0 0";
  }}).attr("transform",n?"scale(1)":"").style("fill",function(t){return i.levelColor?i.levelColor(t.data.values[0].value):i.color(t.data.id)}).style("opacity",1).call(i.endall,function(){i.transiting=!1}),r.exit().transition().duration(e).style("opacity",0).remove(),s.selectAll("."+m.chartArc).select("text").style("opacity",0).attr("class",function(t){return i.isGaugeType(t.data)?m.gaugeValue:""}).text(i.textForArcLabel.bind(i)).attr("transform",i.transformForArcLabel.bind(i)).style("font-size",function(t){return i.isGaugeType(t.data)?Math.round(i.radius/5)+"px":""}).transition().duration(t).style("opacity",function(t){return i.isTargetToShow(t.data.id)&&i.isArcType(t.data)?1:0}),s.select("."+m.chartArcsTitle).style("opacity",i.hasType("donut")||i.hasType("gauge")?1:0),i.hasType("gauge")&&(i.arcs.select("."+m.chartArcsBackground).attr("d",function(){var t={data:[{value:a.gauge_max}],startAngle:-1*(Math.PI/2),endAngle:Math.PI/2};return i.getArc(t,!0,!0)}),i.arcs.select("."+m.chartArcsGaugeUnit).attr("dy",".75em").text(a.gauge_label_show?a.gauge_units:""),i.arcs.select("."+m.chartArcsGaugeMin).attr("dx",-1*(i.innerRadius+(i.radius-i.innerRadius)/2)+"px").attr("dy","1.2em").text(a.gauge_label_show?a.gauge_min:""),i.arcs.select("."+m.chartArcsGaugeMax).attr("dx",i.innerRadius+(i.radius-i.innerRadius)/2+"px").attr("dy","1.2em").text(a.gauge_label_show?a.gauge_max:""))},h.initGauge=function(){var t=this.arcs;this.hasType("gauge")&&(t.append("path").attr("class",m.chartArcsBackground),t.append("text").attr("class",m.chartArcsGaugeUnit).style("text-anchor","middle").style("pointer-events","none"),t.append("text").attr("class",m.chartArcsGaugeMin).style("text-anchor","middle").style("pointer-events","none"),t.append("text").attr("class",m.chartArcsGaugeMax).style("text-anchor","middle").style("pointer-events","none"))},h.getGaugeLabelHeight=function(){return this.config.gauge_label_show?20:0},h.initRegion=function(){var t=this;t.region=t.main.append("g").attr("clip-path",t.clipPath).attr("class",m.regions)},h.updateRegion=function(t){var e=this,n=e.config;e.region.style("visibility",e.hasArcType()?"hidden":"visible"),e.mainRegion=e.main.select("."+m.regions).selectAll("."+m.region).data(n.regions),e.mainRegion.enter().append("g").attr("class",e.classRegion.bind(e)).append("rect").style("fill-opacity",0),e.mainRegion.exit().transition().duration(t).style("opacity",0).remove()},h.redrawRegion=function(t){var e=this,n=e.mainRegion.selectAll("rect"),r=e.regionX.bind(e),i=e.regionY.bind(e),o=e.regionWidth.bind(e),a=e.regionHeight.bind(e);return[(t?n.transition():n).attr("x",r).attr("y",i).attr("width",o).attr("height",a).style("fill-opacity",function(t){return y(t.opacity)?t.opacity:.1})]},h.regionX=function(t){var e,n=this,r=n.config,i="y"===t.axis?n.y:n.y2;return e="y"===t.axis||"y2"===t.axis?r.axis_rotated&&"start"in t?i(t.start):0:r.axis_rotated?0:"start"in t?n.x(n.isTimeSeries()?n.parseDate(t.start):t.start):0},h.regionY=function(t){var e,n=this,r=n.config,i="y"===t.axis?n.y:n.y2;return e="y"===t.axis||"y2"===t.axis?r.axis_rotated?0:"end"in t?i(t.end):0:r.axis_rotated&&"start"in t?n.x(n.isTimeSeries()?n.parseDate(t.start):t.start):0},h.regionWidth=function(t){var e,n=this,r=n.config,i=n.regionX(t),o="y"===t.axis?n.y:n.y2;return e="y"===t.axis||"y2"===t.axis?r.axis_rotated&&"end"in t?o(t.end):n.width:r.axis_rotated?n.width:"end"in t?n.x(n.isTimeSeries()?n.parseDate(t.end):t.end):n.width,i>e?0:e-i},h.regionHeight=function(t){var e,n=this,r=n.config,i=this.regionY(t),o="y"===t.axis?n.y:n.y2;return e="y"===t.axis||"y2"===t.axis?r.axis_rotated?n.height:"start"in t?o(t.start):n.height:r.axis_rotated&&"end"in t?n.x(n.isTimeSeries()?n.parseDate(t.end):t.end):n.height,i>e?0:e-i},h.isRegionOnX=function(t){return!t.axis||"x"===t.axis},h.drag=function(t){var e,n,r,i,o,a,s,u,c=this,l=c.config,d=c.main,p=c.d3;c.hasArcType()||l.data_selection_enabled&&(!l.zoom_enabled||c.zoom.altDomain)&&l.data_selection_multiple&&(e=c.dragStart[0],n=c.dragStart[1],r=t[0],i=t[1],o=Math.min(e,r),a=Math.max(e,r),s=l.data_selection_grouped?c.margin.top:Math.min(n,i),u=l.data_selection_grouped?c.height:Math.max(n,i),d.select("."+m.dragarea).attr("x",o).attr("y",s).attr("width",a-o).attr("height",u-s),d.selectAll("."+m.shapes).selectAll("."+m.shape).filter(function(t){return l.data_selection_isselectable(t)}).each(function(t,e){var n,r,i,l,d,f,h=p.select(this),g=h.classed(m.SELECTED),v=h.classed(m.INCLUDED),y=!1;if(h.classed(m.circle))n=1*h.attr("cx"),r=1*h.attr("cy"),d=c.togglePoint,y=n>o&&a>n&&r>s&&u>r;else{if(!h.classed(m.bar))return;f=k(this),n=f.x,r=f.y,i=f.width,l=f.height,d=c.togglePath,y=!(n>a||o>n+i||r>u||s>r+l)}y^v&&(h.classed(m.INCLUDED,!v),h.classed(m.SELECTED,!g),d.call(c,!g,h,t,e))}))},h.dragstart=function(t){var e=this,n=e.config;e.hasArcType()||n.data_selection_enabled&&(e.dragStart=t,e.main.select("."+m.chart).append("rect").attr("class",m.dragarea).style("opacity",.1),e.dragging=!0)},h.dragend=function(){var t=this,e=t.config;t.hasArcType()||e.data_selection_enabled&&(t.main.select("."+m.dragarea).transition().duration(100).style("opacity",0).remove(),t.main.selectAll("."+m.shape).classed(m.INCLUDED,!1),t.dragging=!1)},h.selectPoint=function(t,e,n){var r=this,i=r.config,o=(i.axis_rotated?r.circleY:r.circleX).bind(r),a=(i.axis_rotated?r.circleX:r.circleY).bind(r),s=r.pointSelectR.bind(r);i.data_onselected.call(r.api,e,t.node()),r.main.select("."+m.selectedCircles+r.getTargetSelectorSuffix(e.id)).selectAll("."+m.selectedCircle+"-"+n).data([e]).enter().append("circle").attr("class",function(){return r.generateClass(m.selectedCircle,n)}).attr("cx",o).attr("cy",a).attr("stroke",function(){return r.color(e)}).attr("r",function(t){return 1.4*r.pointSelectR(t)}).transition().duration(100).attr("r",s)},h.unselectPoint=function(t,e,n){var r=this;r.config.data_onunselected(e,t.node()),r.main.select("."+m.selectedCircles+r.getTargetSelectorSuffix(e.id)).selectAll("."+m.selectedCircle+"-"+n).transition().duration(100).attr("r",0).remove()},h.togglePoint=function(t,e,n,r){t?this.selectPoint(e,n,r):this.unselectPoint(e,n,r)},h.selectPath=function(t,e){var n=this;n.config.data_onselected.call(n,e,t.node()),t.transition().duration(100).style("fill",function(){return n.d3.rgb(n.color(e)).brighter(.75)})},h.unselectPath=function(t,e){var n=this;n.config.data_onunselected.call(n,e,t.node()),t.transition().duration(100).style("fill",function(){return n.color(e)})},h.togglePath=function(t,e,n,r){t?this.selectPath(e,n,r):this.unselectPath(e,n,r)},h.getToggle=function(t,e){var n,r=this;return"circle"===t.nodeName?n=r.isStepType(e)?function(){}:r.togglePoint:"path"===t.nodeName&&(n=r.togglePath),n},h.toggleShape=function(t,e,n){var r=this,i=r.d3,o=r.config,a=i.select(t),s=a.classed(m.SELECTED),u=r.getToggle(t,e).bind(r);o.data_selection_enabled&&o.data_selection_isselectable(e)&&(o.data_selection_multiple||r.main.selectAll("."+m.shapes+(o.data_selection_grouped?r.getTargetSelectorSuffix(e.id):"")).selectAll("."+m.shape).each(function(t,e){var n=i.select(this);n.classed(m.SELECTED)&&u(!1,n.classed(m.SELECTED,!1),t,e)}),a.classed(m.SELECTED,!s),u(!s,a,e,n))},h.initBrush=function(){var t=this,e=t.d3;t.brush=e.svg.brush().on("brush",function(){t.redrawForBrush()}),t.brush.update=function(){return t.context&&t.context.select("."+m.brush).call(this),this},t.brush.scale=function(e){return t.config.axis_rotated?this.y(e):this.x(e)}},h.initSubchart=function(){var t=this,e=t.config,n=t.context=t.svg.append("g").attr("transform",t.getTranslate("context"));n.style("visibility",e.subchart_show?"visible":"hidden"),n.append("g").attr("clip-path",t.clipPathForSubchart).attr("class",m.chart),n.select("."+m.chart).append("g").attr("class",m.chartBars),n.select("."+m.chart).append("g").attr("class",m.chartLines),n.append("g").attr("clip-path",t.clipPath).attr("class",m.brush).call(t.brush),t.axes.subx=n.append("g").attr("class",m.axisX).attr("transform",t.getTranslate("subx")).attr("clip-path",e.axis_rotated?"":t.clipPathForXAxis)},h.updateTargetsForSubchart=function(t){var e,n,r,i,o=this,a=o.context,s=o.config,u=o.classChartBar.bind(o),c=o.classBars.bind(o),l=o.classChartLine.bind(o),d=o.classLines.bind(o),p=o.classAreas.bind(o);s.subchart_show&&(i=a.select("."+m.chartBars).selectAll("."+m.chartBar).data(t).attr("class",u),r=i.enter().append("g").style("opacity",0).attr("class",u),r.append("g").attr("class",c),n=a.select("."+m.chartLines).selectAll("."+m.chartLine).data(t).attr("class",l),e=n.enter().append("g").style("opacity",0).attr("class",l),e.append("g").attr("class",d),e.append("g").attr("class",p),a.selectAll("."+m.brush+" rect").attr(s.axis_rotated?"width":"height",s.axis_rotated?o.width2:o.height2))},h.updateBarForSubchart=function(t){var e=this;e.contextBar=e.context.selectAll("."+m.bars).selectAll("."+m.bar).data(e.barData.bind(e)),e.contextBar.enter().append("path").attr("class",e.classBar.bind(e)).style("stroke","none").style("fill",e.color),e.contextBar.style("opacity",e.initialOpacity.bind(e)),e.contextBar.exit().transition().duration(t).style("opacity",0).remove()},h.redrawBarForSubchart=function(t,e,n){(e?this.contextBar.transition().duration(n):this.contextBar).attr("d",t).style("opacity",1)},h.updateLineForSubchart=function(t){var e=this;e.contextLine=e.context.selectAll("."+m.lines).selectAll("."+m.line).data(e.lineData.bind(e)),e.contextLine.enter().append("path").attr("class",e.classLine.bind(e)).style("stroke",e.color),e.contextLine.style("opacity",e.initialOpacity.bind(e)),e.contextLine.exit().transition().duration(t).style("opacity",0).remove()},h.redrawLineForSubchart=function(t,e,n){(e?this.contextLine.transition().duration(n):this.contextLine).attr("d",t).style("opacity",1)},h.updateAreaForSubchart=function(t){var e=this,n=e.d3;e.contextArea=e.context.selectAll("."+m.areas).selectAll("."+m.area).data(e.lineData.bind(e)),e.contextArea.enter().append("path").attr("class",e.classArea.bind(e)).style("fill",e.color).style("opacity",function(){return e.orgAreaOpacity=+n.select(this).style("opacity"),0}),e.contextArea.style("opacity",0),e.contextArea.exit().transition().duration(t).style("opacity",0).remove()},h.redrawAreaForSubchart=function(t,e,n){(e?this.contextArea.transition().duration(n):this.contextArea).attr("d",t).style("fill",this.color).style("opacity",this.orgAreaOpacity)},h.redrawSubchart=function(t,e,n,r,i,o,a){var s,u,c,l=this,d=l.d3,p=l.config;l.context.style("visibility",p.subchart_show?"visible":"hidden"),p.subchart_show&&(d.event&&"zoom"===d.event.type&&l.brush.extent(l.x.orgDomain()).update(),t&&(l.brush.empty()||l.brush.extent(l.x.orgDomain()).update(),s=l.generateDrawArea(i,!0),u=l.generateDrawBar(o,!0),c=l.generateDrawLine(a,!0),l.updateBarForSubchart(n),l.updateLineForSubchart(n),l.updateAreaForSubchart(n),l.redrawBarForSubchart(u,n,n),l.redrawLineForSubchart(c,n,n),l.redrawAreaForSubchart(s,n,n)))},h.redrawForBrush=function(){var t=this,e=t.x;t.redraw({withTransition:!1,withY:t.config.zoom_rescale,withSubchart:!1,withUpdateXDomain:!0,withDimension:!1}),t.config.subchart_onbrush.call(t.api,e.orgDomain())},h.transformContext=function(t,e){var n,r=this;e&&e.axisSubX?n=e.axisSubX:(n=r.context.select("."+m.axisX),t&&(n=n.transition())),r.context.attr("transform",r.getTranslate("context")),n.attr("transform",r.getTranslate("subx"))},h.getDefaultExtent=function(){var t=this,e=t.config,n=x(e.axis_x_extent)?e.axis_x_extent(t.getXDomain(t.data.targets)):e.axis_x_extent;return t.isTimeSeries()&&(n=[t.parseDate(n[0]),t.parseDate(n[1])]),n},h.initZoom=function(){var t,e=this,n=e.d3,r=e.config;e.zoom=n.behavior.zoom().on("zoomstart",function(){t=n.event.sourceEvent,e.zoom.altDomain=n.event.sourceEvent.altKey?e.x.orgDomain():null,r.zoom_onzoomstart.call(e.api,n.event.sourceEvent)}).on("zoom",function(){e.redrawForZoom.call(e)}).on("zoomend",function(){var i=n.event.sourceEvent;i&&t.clientX===i.clientX&&t.clientY===i.clientY||(e.redrawEventRect(),e.updateZoom(),r.zoom_onzoomend.call(e.api,e.x.orgDomain()))}),e.zoom.scale=function(t){return r.axis_rotated?this.y(t):this.x(t)},e.zoom.orgScaleExtent=function(){var t=r.zoom_extent?r.zoom_extent:[1,10];return[t[0],Math.max(e.getMaxDataCount()/t[1],t[1])]},e.zoom.updateScaleExtent=function(){var t=C(e.x.orgDomain())/C(e.orgXDomain),n=this.orgScaleExtent();return this.scaleExtent([n[0]*t,n[1]*t]),this}},h.updateZoom=function(){var t=this,e=t.config.zoom_enabled?t.zoom:function(){};t.main.select("."+m.zoomRect).call(e).on("dblclick.zoom",null),t.main.selectAll("."+m.eventRect).call(e).on("dblclick.zoom",null)},h.redrawForZoom=function(){var t=this,e=t.d3,n=t.config,r=t.zoom,i=t.x;if(n.zoom_enabled&&0!==t.filterTargetsToShow(t.data.targets).length){if("mousemove"===e.event.sourceEvent.type&&r.altDomain)return i.domain(r.altDomain),void r.scale(i).updateScaleExtent();t.isCategorized()&&i.orgDomain()[0]===t.orgXDomain[0]&&i.domain([t.orgXDomain[0]-1e-10,i.orgDomain()[1]]),t.redraw({withTransition:!1,withY:n.zoom_rescale,withSubchart:!1,withEventRect:!1,withDimension:!1}),"mousemove"===e.event.sourceEvent.type&&(t.cancelClick=!0),n.zoom_onzoom.call(t.api,i.orgDomain())}},h.generateColor=function(){var t=this,e=t.config,n=t.d3,r=e.data_colors,i=D(e.color_pattern)?e.color_pattern:n.scale.category10().range(),o=e.data_color,a=[];return function(t){var e,n=t.id||t.data&&t.data.id||t;return r[n]instanceof Function?e=r[n](t):r[n]?e=r[n]:(a.indexOf(n)<0&&a.push(n),e=i[a.indexOf(n)%i.length],r[n]=e),o instanceof Function?o(e,t):e}},h.generateLevelColor=function(){var t=this,e=t.config,n=e.color_pattern,r=e.color_threshold,i="value"===r.unit,o=r.values&&r.values.length?r.values:[],a=r.max||100;return D(e.color_threshold)?function(t){var e,r,s=n[n.length-1];for(e=0;e<o.length;e++)if(r=i?t:100*t/a,r<o[e]){s=n[e];break}return s}:null},h.getYFormat=function(t){var e=this,n=t&&!e.hasType("gauge")?e.defaultArcValueFormat:e.yFormat,r=t&&!e.hasType("gauge")?e.defaultArcValueFormat:e.y2Format;return function(t,i,o){var a="y2"===e.axis.getId(o)?r:n;return a.call(e,t,i)}},h.yFormat=function(t){var e=this,n=e.config,r=n.axis_y_tick_format?n.axis_y_tick_format:e.defaultValueFormat;return r(t)},h.y2Format=function(t){var e=this,n=e.config,r=n.axis_y2_tick_format?n.axis_y2_tick_format:e.defaultValueFormat;return r(t)},h.defaultValueFormat=function(t){return y(t)?+t:""},h.defaultArcValueFormat=function(t,e){return(100*e).toFixed(1)+"%"},h.dataLabelFormat=function(t){var e,n=this,r=n.config.data_labels,i=function(t){return y(t)?+t:""};return e="function"==typeof r.format?r.format:"object"==typeof r.format?r.format[t]?r.format[t]===!0?i:r.format[t]:function(){return""}:i},h.hasCaches=function(t){for(var e=0;e<t.length;e++)if(!(t[e]in this.cache))return!1;return!0},h.addCache=function(t,e){this.cache[t]=this.cloneTarget(e)},h.getCaches=function(t){var e,n=[];for(e=0;e<t.length;e++)t[e]in this.cache&&n.push(this.cloneTarget(this.cache[t[e]]));return n};var m=h.CLASS={target:"c3-target",chart:"c3-chart",chartLine:"c3-chart-line",chartLines:"c3-chart-lines",chartBar:"c3-chart-bar",chartBars:"c3-chart-bars",chartText:"c3-chart-text",chartTexts:"c3-chart-texts",chartArc:"c3-chart-arc",chartArcs:"c3-chart-arcs",chartArcsTitle:"c3-chart-arcs-title",chartArcsBackground:"c3-chart-arcs-background",chartArcsGaugeUnit:"c3-chart-arcs-gauge-unit",chartArcsGaugeMax:"c3-chart-arcs-gauge-max",chartArcsGaugeMin:"c3-chart-arcs-gauge-min",selectedCircle:"c3-selected-circle",selectedCircles:"c3-selected-circles",eventRect:"c3-event-rect",eventRects:"c3-event-rects",eventRectsSingle:"c3-event-rects-single",eventRectsMultiple:"c3-event-rects-multiple",zoomRect:"c3-zoom-rect",brush:"c3-brush",focused:"c3-focused",defocused:"c3-defocused",region:"c3-region",regions:"c3-regions",tooltipContainer:"c3-tooltip-container",tooltip:"c3-tooltip",tooltipName:"c3-tooltip-name",shape:"c3-shape",shapes:"c3-shapes",line:"c3-line",lines:"c3-lines",bar:"c3-bar",bars:"c3-bars",circle:"c3-circle",circles:"c3-circles",arc:"c3-arc",arcs:"c3-arcs",area:"c3-area",areas:"c3-areas",empty:"c3-empty",text:"c3-text",texts:"c3-texts",gaugeValue:"c3-gauge-value",grid:"c3-grid",gridLines:"c3-grid-lines",xgrid:"c3-xgrid",xgrids:"c3-xgrids",xgridLine:"c3-xgrid-line",xgridLines:"c3-xgrid-lines",xgridFocus:"c3-xgrid-focus",ygrid:"c3-ygrid",ygrids:"c3-ygrids",ygridLine:"c3-ygrid-line",ygridLines:"c3-ygrid-lines",axis:"c3-axis",axisX:"c3-axis-x",axisXLabel:"c3-axis-x-label",axisY:"c3-axis-y",axisYLabel:"c3-axis-y-label",axisY2:"c3-axis-y2",axisY2Label:"c3-axis-y2-label",legendBackground:"c3-legend-background",legendItem:"c3-legend-item",legendItemEvent:"c3-legend-item-event",legendItemTile:"c3-legend-item-tile",legendItemHidden:"c3-legend-item-hidden",legendItemFocused:"c3-legend-item-focused",dragarea:"c3-dragarea",EXPANDED:"_expanded_",SELECTED:"_selected_",INCLUDED:"_included_"};h.generateClass=function(t,e){return" "+t+" "+t+this.getTargetSelectorSuffix(e)},h.classText=function(t){return this.generateClass(m.text,t.index)},h.classTexts=function(t){return this.generateClass(m.texts,t.id)},h.classShape=function(t){return this.generateClass(m.shape,t.index)},h.classShapes=function(t){return this.generateClass(m.shapes,t.id)},h.classLine=function(t){return this.classShape(t)+this.generateClass(m.line,t.id)},h.classLines=function(t){return this.classShapes(t)+this.generateClass(m.lines,t.id)},h.classCircle=function(t){return this.classShape(t)+this.generateClass(m.circle,t.index)},h.classCircles=function(t){return this.classShapes(t)+this.generateClass(m.circles,t.id)},h.classBar=function(t){return this.classShape(t)+this.generateClass(m.bar,t.index)},h.classBars=function(t){return this.classShapes(t)+this.generateClass(m.bars,t.id)},h.classArc=function(t){return this.classShape(t.data)+this.generateClass(m.arc,t.data.id)},h.classArcs=function(t){return this.classShapes(t.data)+this.generateClass(m.arcs,t.data.id)},h.classArea=function(t){return this.classShape(t)+this.generateClass(m.area,t.id)},h.classAreas=function(t){return this.classShapes(t)+this.generateClass(m.areas,t.id)},h.classRegion=function(t,e){return this.generateClass(m.region,e)+" "+("class"in t?t["class"]:"")},h.classEvent=function(t){return this.generateClass(m.eventRect,t.index)},h.classTarget=function(t){var e=this,n=e.config.data_classes[t],r="";return n&&(r=" "+m.target+"-"+n),e.generateClass(m.target,t)+r},h.classFocus=function(t){return this.classFocused(t)+this.classDefocused(t)},h.classFocused=function(t){return" "+(this.focusedTargetIds.indexOf(t.id)>=0?m.focused:"")},h.classDefocused=function(t){return" "+(this.defocusedTargetIds.indexOf(t.id)>=0?m.defocused:"")},h.classChartText=function(t){return m.chartText+this.classTarget(t.id)},h.classChartLine=function(t){return m.chartLine+this.classTarget(t.id)},h.classChartBar=function(t){return m.chartBar+this.classTarget(t.id)},h.classChartArc=function(t){return m.chartArc+this.classTarget(t.data.id)},h.getTargetSelectorSuffix=function(t){return t||0===t?("-"+t).replace(/[\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\]/g,"-"):""},h.selectorTarget=function(t,e){return(e||"")+"."+m.target+this.getTargetSelectorSuffix(t)},h.selectorTargets=function(t,e){var n=this;return t=t||[],t.length?t.map(function(t){return n.selectorTarget(t,e)}):null},h.selectorLegend=function(t){return"."+m.legendItem+this.getTargetSelectorSuffix(t)},h.selectorLegends=function(t){var e=this;return t&&t.length?t.map(function(t){return e.selectorLegend(t)}):null};var y=h.isValue=function(t){return t||0===t},x=h.isFunction=function(t){return"function"==typeof t},_=h.isString=function(t){return"string"==typeof t},b=h.isUndefined=function(t){return"undefined"==typeof t},E=h.isDefined=function(t){return"undefined"!=typeof t},w=h.ceil10=function(t){return 10*Math.ceil(t/10)},N=h.asHalfPixel=function(t){return Math.ceil(t)+.5},C=h.diffDomain=function(t){return t[1]-t[0]},T=h.isEmpty=function(t){return!t||_(t)&&0===t.length||"object"==typeof t&&0===Object.keys(t).length},D=h.notEmpty=function(t){return Object.keys(t).length>0},M=h.getOption=function(t,e,n){return E(t[e])?t[e]:n},A=h.hasValue=function(t,e){var n=!1;return Object.keys(t).forEach(function(r){t[r]===e&&(n=!0)}),n},k=h.getPathBox=function(t){var e=t.getBoundingClientRect(),n=[t.pathSegList.getItem(0),t.pathSegList.getItem(1)],r=n[0].x,i=Math.min(n[0].y,n[1].y);return{x:r,y:i,width:e.width,height:e.height}};f.focus=function(t){var e,n=this.internal;t=n.mapToTargetIds(t),e=n.svg.selectAll(n.selectorTargets(t.filter(n.isTargetToShow,n))),this.revert(),this.defocus(),e.classed(m.focused,!0).classed(m.defocused,!1),n.hasArcType()&&n.expandArc(t),n.toggleFocusLegend(t,!0),n.focusedTargetIds=t,n.defocusedTargetIds=n.defocusedTargetIds.filter(function(e){return t.indexOf(e)<0})},f.defocus=function(t){var e,n=this.internal;t=n.mapToTargetIds(t),e=n.svg.selectAll(n.selectorTargets(t.filter(n.isTargetToShow,n))),e.classed(m.focused,!1).classed(m.defocused,!0),n.hasArcType()&&n.unexpandArc(t),n.toggleFocusLegend(t,!1),n.focusedTargetIds=n.focusedTargetIds.filter(function(e){return t.indexOf(e)<0}),n.defocusedTargetIds=t},f.revert=function(t){var e,n=this.internal;t=n.mapToTargetIds(t),e=n.svg.selectAll(n.selectorTargets(t)),e.classed(m.focused,!1).classed(m.defocused,!1),n.hasArcType()&&n.unexpandArc(t),n.config.legend_show&&(n.showLegend(t.filter(n.isLegendToShow.bind(n))),n.legend.selectAll(n.selectorLegends(t)).filter(function(){return n.d3.select(this).classed(m.legendItemFocused)}).classed(m.legendItemFocused,!1)),n.focusedTargetIds=[],n.defocusedTargetIds=[]},f.show=function(t,e){var n,r=this.internal;t=r.mapToTargetIds(t),e=e||{},r.removeHiddenTargetIds(t),n=r.svg.selectAll(r.selectorTargets(t)),n.transition().style("opacity",1,"important").call(r.endall,function(){n.style("opacity",null).style("opacity",1)}),e.withLegend&&r.showLegend(t),r.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0})},f.hide=function(t,e){var n,r=this.internal;t=r.mapToTargetIds(t),e=e||{},r.addHiddenTargetIds(t),n=r.svg.selectAll(r.selectorTargets(t)),n.transition().style("opacity",0,"important").call(r.endall,function(){n.style("opacity",null).style("opacity",0)}),e.withLegend&&r.hideLegend(t),r.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0})},f.toggle=function(t,e){var n=this,r=this.internal;r.mapToTargetIds(t).forEach(function(t){r.isTargetToShow(t)?n.hide(t,e):n.show(t,e)})},f.zoom=function(t){var e=this.internal;return t&&(e.isTimeSeries()&&(t=t.map(function(t){return e.parseDate(t)})),e.brush.extent(t),e.redraw({withUpdateXDomain:!0,withY:e.config.zoom_rescale}),e.config.zoom_onzoom.call(this,e.x.orgDomain())),e.brush.extent()},f.zoom.enable=function(t){var e=this.internal;e.config.zoom_enabled=t,e.updateAndRedraw()},f.unzoom=function(){var t=this.internal;t.brush.clear().update(),t.redraw({withUpdateXDomain:!0})},f.load=function(t){var e=this.internal,n=e.config;return t.xs&&e.addXs(t.xs),"classes"in t&&Object.keys(t.classes).forEach(function(e){n.data_classes[e]=t.classes[e]}),"categories"in t&&e.isCategorized()&&(n.axis_x_categories=t.categories),"axes"in t&&Object.keys(t.axes).forEach(function(e){n.data_axes[e]=t.axes[e]}),"colors"in t&&Object.keys(t.colors).forEach(function(e){n.data_colors[e]=t.colors[e]}),"cacheIds"in t&&e.hasCaches(t.cacheIds)?void e.load(e.getCaches(t.cacheIds),t.done):void("unload"in t?e.unload(e.mapToTargetIds("boolean"==typeof t.unload&&t.unload?null:t.unload),function(){e.loadFromArgs(t)}):e.loadFromArgs(t))},f.unload=function(t){var e=this.internal;t=t||{},t instanceof Array?t={ids:t}:"string"==typeof t&&(t={ids:[t]}),e.unload(e.mapToTargetIds(t.ids),function(){e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),t.done&&t.done()})},f.flow=function(t){var e,n,r,i,o,a,s,u,c=this.internal,l=[],d=c.getMaxDataCount(),p=0,f=0;if(t.json)n=c.convertJsonToData(t.json,t.keys);else if(t.rows)n=c.convertRowsToData(t.rows);else{if(!t.columns)return;n=c.convertColumnsToData(t.columns)}e=c.convertDataToTargets(n,!0),c.data.targets.forEach(function(t){var n,r,i=!1;for(n=0;n<e.length;n++)if(t.id===e[n].id){for(i=!0,t.values[t.values.length-1]&&(f=t.values[t.values.length-1].index+1),p=e[n].values.length,r=0;p>r;r++)e[n].values[r].index=f+r,c.isTimeSeries()||(e[n].values[r].x=f+r);t.values=t.values.concat(e[n].values),e.splice(n,1);break}i||l.push(t.id)}),c.data.targets.forEach(function(t){var e,n;for(e=0;e<l.length;e++)if(t.id===l[e])for(f=t.values[t.values.length-1].index+1,n=0;p>n;n++)t.values.push({id:t.id,index:f+n,x:c.isTimeSeries()?c.getOtherTargetX(f+n):f+n,value:null})}),c.data.targets.length&&e.forEach(function(t){var e,n=[];for(e=c.data.targets[0].values[0].index;f>e;e++)n.push({id:t.id,index:e,x:c.isTimeSeries()?c.getOtherTargetX(e):e,value:null});t.values.forEach(function(t){t.index+=f,c.isTimeSeries()||(t.x+=f)}),t.values=n.concat(t.values)}),c.data.targets=c.data.targets.concat(e),r=c.getMaxDataCount(),o=c.data.targets[0],a=o.values[0],E(t.to)?(p=0,u=c.isTimeSeries()?c.parseDate(t.to):t.to,o.values.forEach(function(t){t.x<u&&p++})):E(t.length)&&(p=t.length),d?1===d&&c.isTimeSeries()&&(s=(o.values[o.values.length-1].x-a.x)/2,i=[new Date(+a.x-s),new Date(+a.x+s)],c.updateXDomain(null,!0,!0,!1,i)):(s=c.isTimeSeries()?o.values.length>1?o.values[o.values.length-1].x-a.x:a.x-c.getXDomain(c.data.targets)[0]:1,i=[a.x-s,a.x],c.updateXDomain(null,!0,!0,!1,i)),c.updateTargets(c.data.targets),c.redraw({flow:{index:a.index,length:p,duration:y(t.duration)?t.duration:c.config.transition_duration,done:t.done,orgDataCount:d},withLegend:!0,withTransition:d>1,withTrimXDomain:!1,withUpdateXAxis:!0})},h.generateFlow=function(t){var e=this,n=e.config,r=e.d3;return function(){var i,o,a,s=t.targets,u=t.flow,c=t.drawBar,l=t.drawLine,d=t.drawArea,p=t.cx,f=t.cy,h=t.xv,g=t.xForText,v=t.yForText,y=t.duration,x=1,_=u.index,b=u.length,E=e.getValueOnIndex(e.data.targets[0].values,_),w=e.getValueOnIndex(e.data.targets[0].values,_+b),N=e.x.domain(),T=u.duration||y,D=u.done||function(){},M=e.generateWait(),A=e.xgrid||r.selectAll([]),k=e.xgridLines||r.selectAll([]),S=e.mainRegion||r.selectAll([]),O=e.mainText||r.selectAll([]),R=e.mainBar||r.selectAll([]),I=e.mainLine||r.selectAll([]),L=e.mainArea||r.selectAll([]),P=e.mainCircle||r.selectAll([]);e.flowing=!0,e.data.targets.forEach(function(t){t.values.splice(0,b)}),a=e.updateXDomain(s,!0,!0),e.updateXGrid&&e.updateXGrid(!0),u.orgDataCount?i=1===u.orgDataCount||E.x===w.x?e.x(N[0])-e.x(a[0]):e.isTimeSeries()?e.x(N[0])-e.x(a[0]):e.x(E.x)-e.x(w.x):1!==e.data.targets[0].values.length?i=e.x(N[0])-e.x(a[0]):e.isTimeSeries()?(E=e.getValueOnIndex(e.data.targets[0].values,0),w=e.getValueOnIndex(e.data.targets[0].values,e.data.targets[0].values.length-1),i=e.x(E.x)-e.x(w.x)):i=C(a)/2,x=C(N)/C(a),o="translate("+i+",0) scale("+x+",1)",e.hideXGridFocus(),e.hideTooltip(),r.transition().ease("linear").duration(T).each(function(){M.add(e.axes.x.transition().call(e.xAxis)),M.add(R.transition().attr("transform",o)),M.add(I.transition().attr("transform",o)),M.add(L.transition().attr("transform",o)),M.add(P.transition().attr("transform",o)),M.add(O.transition().attr("transform",o)),M.add(S.filter(e.isRegionOnX).transition().attr("transform",o)),M.add(A.transition().attr("transform",o)),M.add(k.transition().attr("transform",o))}).call(M,function(){var t,r=[],i=[],o=[];if(b){for(t=0;b>t;t++)r.push("."+m.shape+"-"+(_+t)),i.push("."+m.text+"-"+(_+t)),o.push("."+m.eventRect+"-"+(_+t));e.svg.selectAll("."+m.shapes).selectAll(r).remove(),e.svg.selectAll("."+m.texts).selectAll(i).remove(),e.svg.selectAll("."+m.eventRects).selectAll(o).remove(),e.svg.select("."+m.xgrid).remove()}A.attr("transform",null).attr(e.xgridAttr),k.attr("transform",null),k.select("line").attr("x1",n.axis_rotated?0:h).attr("x2",n.axis_rotated?e.width:h),k.select("text").attr("x",n.axis_rotated?e.width:0).attr("y",h),R.attr("transform",null).attr("d",c),I.attr("transform",null).attr("d",l),L.attr("transform",null).attr("d",d),P.attr("transform",null).attr("cx",p).attr("cy",f),O.attr("transform",null).attr("x",g).attr("y",v).style("fill-opacity",e.opacityForText.bind(e)),S.attr("transform",null),S.select("rect").filter(e.isRegionOnX).attr("x",e.regionX.bind(e)).attr("width",e.regionWidth.bind(e)),n.interaction_enabled&&e.redrawEventRect(),D(),e.flowing=!1})}},f.selected=function(t){var e=this.internal,n=e.d3;return n.merge(e.main.selectAll("."+m.shapes+e.getTargetSelectorSuffix(t)).selectAll("."+m.shape).filter(function(){return n.select(this).classed(m.SELECTED)}).map(function(t){return t.map(function(t){var e=t.__data__;return e.data?e.data:e})}))},f.select=function(t,e,n){var r=this.internal,i=r.d3,o=r.config;o.data_selection_enabled&&r.main.selectAll("."+m.shapes).selectAll("."+m.shape).each(function(a,s){var u=i.select(this),c=a.data?a.data.id:a.id,l=r.getToggle(this,a).bind(r),d=o.data_selection_grouped||!t||t.indexOf(c)>=0,p=!e||e.indexOf(s)>=0,f=u.classed(m.SELECTED);u.classed(m.line)||u.classed(m.area)||(d&&p?o.data_selection_isselectable(a)&&!f&&l(!0,u.classed(m.SELECTED,!0),a,s):E(n)&&n&&f&&l(!1,u.classed(m.SELECTED,!1),a,s))})},f.unselect=function(t,e){var n=this.internal,r=n.d3,i=n.config;i.data_selection_enabled&&n.main.selectAll("."+m.shapes).selectAll("."+m.shape).each(function(o,a){var s=r.select(this),u=o.data?o.data.id:o.id,c=n.getToggle(this,o).bind(n),l=i.data_selection_grouped||!t||t.indexOf(u)>=0,d=!e||e.indexOf(a)>=0,p=s.classed(m.SELECTED);s.classed(m.line)||s.classed(m.area)||l&&d&&i.data_selection_isselectable(o)&&p&&c(!1,s.classed(m.SELECTED,!1),o,a)})},f.transform=function(t,e){var n=this.internal,r=["pie","donut"].indexOf(t)>=0?{withTransform:!0}:null;n.transformTo(e,t,r)},h.transformTo=function(t,e,n){var r=this,i=!r.hasArcType(),o=n||{withTransitionForAxis:i};o.withTransitionForTransform=!1,r.transiting=!1,r.setTargetType(t,e),r.updateTargets(r.data.targets),r.updateAndRedraw(o)},f.groups=function(t){var e=this.internal,n=e.config;return b(t)?n.data_groups:(n.data_groups=t,e.redraw(),n.data_groups)},f.xgrids=function(t){var e=this.internal,n=e.config;return t?(n.grid_x_lines=t,e.redrawWithoutRescale(),n.grid_x_lines):n.grid_x_lines},f.xgrids.add=function(t){var e=this.internal;return this.xgrids(e.config.grid_x_lines.concat(t?t:[]))},f.xgrids.remove=function(t){var e=this.internal;e.removeGridLines(t,!0)},f.ygrids=function(t){var e=this.internal,n=e.config;return t?(n.grid_y_lines=t,e.redrawWithoutRescale(),n.grid_y_lines):n.grid_y_lines},f.ygrids.add=function(t){var e=this.internal;return this.ygrids(e.config.grid_y_lines.concat(t?t:[]))},f.ygrids.remove=function(t){var e=this.internal;e.removeGridLines(t,!1)},f.regions=function(t){var e=this.internal,n=e.config;return t?(n.regions=t,e.redrawWithoutRescale(),n.regions):n.regions},f.regions.add=function(t){var e=this.internal,n=e.config;return t?(n.regions=n.regions.concat(t),e.redrawWithoutRescale(),n.regions):n.regions},f.regions.remove=function(t){var e,n,r,i=this.internal,o=i.config;return t=t||{},e=i.getOption(t,"duration",o.transition_duration),n=i.getOption(t,"classes",[m.region]),r=i.main.select("."+m.regions).selectAll(n.map(function(t){return"."+t})),(e?r.transition().duration(e):r).style("opacity",0).remove(),o.regions=o.regions.filter(function(t){var e=!1;return t["class"]?(t["class"].split(" ").forEach(function(t){n.indexOf(t)>=0&&(e=!0)}),!e):!0}),o.regions},f.data=function(t){var e=this.internal.data.targets;return"undefined"==typeof t?e:e.filter(function(e){return[].concat(t).indexOf(e.id)>=0})},f.data.shown=function(t){return this.internal.filterTargetsToShow(this.data(t))},f.data.values=function(t){var e,n=null;return t&&(e=this.data(t),n=e[0]?e[0].values.map(function(t){return t.value}):null),n},f.data.names=function(t){return this.internal.clearLegendItemTextBoxCache(),this.internal.updateDataAttributes("names",t)},f.data.colors=function(t){return this.internal.updateDataAttributes("colors",t)},f.data.axes=function(t){return this.internal.updateDataAttributes("axes",t)},f.category=function(t,e){var n=this.internal,r=n.config;
  return arguments.length>1&&(r.axis_x_categories[t]=e,n.redraw()),r.axis_x_categories[t]},f.categories=function(t){var e=this.internal,n=e.config;return arguments.length?(n.axis_x_categories=t,e.redraw(),n.axis_x_categories):n.axis_x_categories},f.color=function(t){var e=this.internal;return e.color(t)},f.x=function(t){var e=this.internal;return arguments.length&&(e.updateTargetX(e.data.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),e.data.xs},f.xs=function(t){var e=this.internal;return arguments.length&&(e.updateTargetXs(e.data.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),e.data.xs},f.axis=function(){},f.axis.labels=function(t){var e=this.internal;arguments.length&&(Object.keys(t).forEach(function(n){e.axis.setLabelText(n,t[n])}),e.axis.updateLabels())},f.axis.max=function(t){var e=this.internal,n=e.config;return arguments.length?("object"==typeof t?(y(t.x)&&(n.axis_x_max=t.x),y(t.y)&&(n.axis_y_max=t.y),y(t.y2)&&(n.axis_y2_max=t.y2)):n.axis_y_max=n.axis_y2_max=t,void e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})):{x:n.axis_x_max,y:n.axis_y_max,y2:n.axis_y2_max}},f.axis.min=function(t){var e=this.internal,n=e.config;return arguments.length?("object"==typeof t?(y(t.x)&&(n.axis_x_min=t.x),y(t.y)&&(n.axis_y_min=t.y),y(t.y2)&&(n.axis_y2_min=t.y2)):n.axis_y_min=n.axis_y2_min=t,void e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})):{x:n.axis_x_min,y:n.axis_y_min,y2:n.axis_y2_min}},f.axis.range=function(t){return arguments.length?(E(t.max)&&this.axis.max(t.max),void(E(t.min)&&this.axis.min(t.min))):{max:this.axis.max(),min:this.axis.min()}},f.legend=function(){},f.legend.show=function(t){var e=this.internal;e.showLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})},f.legend.hide=function(t){var e=this.internal;e.hideLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})},f.resize=function(t){var e=this.internal,n=e.config;n.size_width=t?t.width:null,n.size_height=t?t.height:null,this.flush()},f.flush=function(){var t=this.internal;t.updateAndRedraw({withLegend:!0,withTransition:!1,withTransitionForTransform:!1})},f.destroy=function(){var t=this.internal;return a.clearInterval(t.intervalForObserveInserted),a.onresize=null,t.selectChart.classed("c3",!1).html(""),Object.keys(t).forEach(function(e){t[e]=null}),null},f.tooltip=function(){},f.tooltip.show=function(t){var e,n,r=this.internal;t.mouse&&(n=t.mouse),t.data?r.isMultipleX()?(n=[r.x(t.data.x),r.getYScale(t.data.id)(t.data.value)],e=null):e=y(t.data.index)?t.data.index:r.getIndexByX(t.data.x):"undefined"!=typeof t.x?e=r.getIndexByX(t.x):"undefined"!=typeof t.index&&(e=t.index),r.dispatchEvent("mouseover",e,n),r.dispatchEvent("mousemove",e,n)},f.tooltip.hide=function(){this.internal.dispatchEvent("mouseout",0)};var S;h.isSafari=function(){var t=a.navigator.userAgent;return t.indexOf("Safari")>=0&&t.indexOf("Chrome")<0},h.isChrome=function(){var t=a.navigator.userAgent;return t.indexOf("Chrome")>=0},Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),n=this,r=function(){},i=function(){return n.apply(this instanceof r?this:t,e.concat(Array.prototype.slice.call(arguments)))};return r.prototype=this.prototype,i.prototype=new r,i}),i=[n(62)],r=v,o="function"==typeof r?r.apply(e,i):r,!(void 0!==o&&(t.exports=o))}(window)},function(t,e,n){e=t.exports=n(38)(),e.push([t.id,".c3 svg{font:10px sans-serif}.c3 line,.c3 path{fill:none;stroke:#000}.c3 text{-webkit-user-select:none;-moz-user-select:none;user-select:none}.c3-bars path,.c3-event-rect,.c3-legend-item-tile,.c3-xgrid-focus,.c3-ygrid{shape-rendering:crispEdges}.c3-chart-arc path{stroke:#fff}.c3-chart-arc text{fill:#fff;font-size:13px}.c3-grid line{stroke:#aaa}.c3-grid text{fill:#aaa}.c3-xgrid,.c3-ygrid{stroke-dasharray:3 3}.c3-text.c3-empty{fill:gray;font-size:2em}.c3-line{stroke-width:1px}.c3-circle._expanded_{stroke-width:1px;stroke:#fff}.c3-selected-circle{fill:#fff;stroke-width:2px}.c3-bar{stroke-width:0}.c3-bar._expanded_{fill-opacity:.75}.c3-target.c3-focused{opacity:1}.c3-target.c3-focused path.c3-line,.c3-target.c3-focused path.c3-step{stroke-width:2px}.c3-target.c3-defocused{opacity:.3!important}.c3-region{fill:#4682b4;fill-opacity:.1}.c3-brush .extent{fill-opacity:.1}.c3-legend-item{font-size:12px}.c3-legend-item-hidden{opacity:.15}.c3-legend-background{opacity:.75;fill:#fff;stroke:#d3d3d3;stroke-width:1}.c3-tooltip-container{z-index:10}.c3-tooltip{border-collapse:collapse;border-spacing:0;background-color:#fff;empty-cells:show;box-shadow:7px 7px 12px -9px #777;opacity:.9}.c3-tooltip tr{border:1px solid #ccc}.c3-tooltip th{background-color:#aaa;font-size:14px;padding:2px 5px;text-align:left;color:#fff}.c3-tooltip td{font-size:13px;padding:3px 6px;background-color:#fff;border-left:1px dotted #999}.c3-tooltip td>span{display:inline-block;width:10px;height:10px;margin-right:6px}.c3-tooltip td.value{text-align:right}.c3-area{stroke-width:0;opacity:.2}.c3-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}.c3-chart-arcs .c3-chart-arcs-background{fill:#e0e0e0;stroke:none}.c3-chart-arcs .c3-chart-arcs-gauge-unit{fill:#000;font-size:16px}.c3-chart-arcs .c3-chart-arcs-gauge-max,.c3-chart-arcs .c3-chart-arcs-gauge-min{fill:#777}.c3-chart-arc .c3-gauge-value{fill:#000}",""])},function(t,e,n){e=t.exports=n(38)(),e.push([t.id,"a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}table{border-collapse:collapse;border-spacing:0}",""])},function(t,e,n){e=t.exports=n(38)(),e.i(n(119),""),e.i(n(118),""),e.push([t.id,"@import url(https://fonts.googleapis.com/css?family=Oxygen+Mono);",""]),e.push([t.id,"#chart{background-color:#f6f6f6}body{font-family:Oxygen Mono,sans-serif;color:#333;background-color:#bbb}.inline{display:inline-block;vertical-align:top}.container{max-width:1000px;width:100%;margin:auto}.container h1{text-align:center;font-size:1.3em;color:#333;padding:10px 0;margin:20px 0 10px}.container h1,.menu{background-color:#f6f6f6}.menu{margin-top:10px;text-align:left;padding:5px}.menu input{width:145px;height:25px;margin:10px 5px;padding:0 5px}.menu div{text-align:center;display:inline-block;width:160px;margin:5px;position:relative}.close{position:absolute;right:8px}.stocks{border:1px solid #333;padding:5px 0;width:95%;margin:5px auto;border-radius:3px;cursor:pointer;transition:all .2s}.stocks:hover{color:#d91e18;border-color:#d91e18}footer{padding-top:30px;color:#666;font-size:1em;text-align:center}footer p{margin:5px}footer a{color:#1f77b4;transition:all .2s;text-decoration:none}footer a:hover{color:#ff7f0e}",""])},function(t,e,n){function r(){return e.colors[l++%e.colors.length]}function i(t){function n(){}function i(){var t=i,n=+new Date,o=n-(c||n);t.diff=o,t.prev=c,t.curr=n,c=n,null==t.useColors&&(t.useColors=e.useColors()),null==t.color&&t.useColors&&(t.color=r());var a=Array.prototype.slice.call(arguments);a[0]=e.coerce(a[0]),"string"!=typeof a[0]&&(a=["%o"].concat(a));var s=0;a[0]=a[0].replace(/%([a-z%])/g,function(n,r){if("%%"===n)return n;s++;var i=e.formatters[r];if("function"==typeof i){var o=a[s];n=i.call(t,o),a.splice(s,1),s--}return n}),"function"==typeof e.formatArgs&&(a=e.formatArgs.apply(t,a));var u=i.log||e.log||console.log.bind(console);u.apply(t,a)}n.enabled=!1,i.enabled=!0;var o=e.enabled(t)?i:n;return o.namespace=t,o}function o(t){e.save(t);for(var n=(t||"").split(/[\s,]+/),r=n.length,i=0;r>i;i++)n[i]&&(t=n[i].replace(/\*/g,".*?"),"-"===t[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))}function a(){e.enable("")}function s(t){var n,r;for(n=0,r=e.skips.length;r>n;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;r>n;n++)if(e.names[n].test(t))return!0;return!1}function u(t){return t instanceof Error?t.stack||t.message:t}e=t.exports=i,e.coerce=u,e.disable=a,e.enable=o,e.enabled=s,e.humanize=n(146),e.names=[],e.skips=[],e.formatters={};var c,l=0},function(t,e,n){t.exports=n(123)},function(t,e,n){t.exports=n(124),t.exports.parser=n(19)},function(t,e,n){(function(e){function r(t,n){if(!(this instanceof r))return new r(t,n);n=n||{},t&&"object"==typeof t&&(n=t,t=null),t?(t=l(t),n.hostname=t.host,n.secure="https"==t.protocol||"wss"==t.protocol,n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=l(n.host).host),this.secure=null!=n.secure?n.secure:e.location&&"https:"==location.protocol,n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.agent=n.agent||!1,this.hostname=n.hostname||(e.location?location.hostname:"localhost"),this.port=n.port||(e.location&&location.port?location.port:this.secure?443:80),this.query=n.query||{},"string"==typeof this.query&&(this.query=p.decode(this.query)),this.upgrade=!1!==n.upgrade,this.path=(n.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!n.forceJSONP,this.jsonp=!1!==n.jsonp,this.forceBase64=!!n.forceBase64,this.enablesXDR=!!n.enablesXDR,this.timestampParam=n.timestampParam||"t",this.timestampRequests=n.timestampRequests,this.transports=n.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.policyPort=n.policyPort||843,this.rememberUpgrade=n.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=n.onlyBinaryUpgrades,this.perMessageDeflate=!1!==n.perMessageDeflate?n.perMessageDeflate||{}:!1,!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=n.pfx||null,this.key=n.key||null,this.passphrase=n.passphrase||null,this.cert=n.cert||null,this.ca=n.ca||null,this.ciphers=n.ciphers||null,this.rejectUnauthorized=void 0===n.rejectUnauthorized?null:n.rejectUnauthorized;var i="object"==typeof e&&e;i.global===i&&n.extraHeaders&&Object.keys(n.extraHeaders).length>0&&(this.extraHeaders=n.extraHeaders),this.open()}function i(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var o=n(64),a=n(26),s=n(11)("engine.io-client:socket"),u=n(72),c=n(19),l=n(73),d=n(147),p=n(41);t.exports=r,r.priorWebsocketSuccess=!1,a(r.prototype),r.protocol=c.protocol,r.Socket=r,r.Transport=n(39),r.transports=n(64),r.parser=n(19),r.prototype.createTransport=function(t){s('creating transport "%s"',t);var e=i(this.query);e.EIO=c.protocol,e.transport=t,this.id&&(e.sid=this.id);var n=new o[t]({agent:this.agent,hostname:this.hostname,port:this.port,secure:this.secure,path:this.path,query:e,forceJSONP:this.forceJSONP,jsonp:this.jsonp,forceBase64:this.forceBase64,enablesXDR:this.enablesXDR,timestampRequests:this.timestampRequests,timestampParam:this.timestampParam,policyPort:this.policyPort,socket:this,pfx:this.pfx,key:this.key,passphrase:this.passphrase,cert:this.cert,ca:this.ca,ciphers:this.ciphers,rejectUnauthorized:this.rejectUnauthorized,perMessageDeflate:this.perMessageDeflate,extraHeaders:this.extraHeaders});return n},r.prototype.open=function(){var t;if(this.rememberUpgrade&&r.priorWebsocketSuccess&&-1!=this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length){var e=this;return void setTimeout(function(){e.emit("error","No transports available")},0)}t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(n){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)},r.prototype.setTransport=function(t){s("setting transport %s",t.name);var e=this;this.transport&&(s("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",function(){e.onDrain()}).on("packet",function(t){e.onPacket(t)}).on("error",function(t){e.onError(t)}).on("close",function(){e.onClose("transport close")})},r.prototype.probe=function(t){function e(){if(p.onlyBinaryUpgrades){var e=!this.supportsBinary&&p.transport.supportsBinary;d=d||e}d||(s('probe transport "%s" opened',t),l.send([{type:"ping",data:"probe"}]),l.once("packet",function(e){if(!d)if("pong"==e.type&&"probe"==e.data){if(s('probe transport "%s" pong',t),p.upgrading=!0,p.emit("upgrading",l),!l)return;r.priorWebsocketSuccess="websocket"==l.name,s('pausing current transport "%s"',p.transport.name),p.transport.pause(function(){d||"closed"!=p.readyState&&(s("changing transport and sending upgrade packet"),c(),p.setTransport(l),l.send([{type:"upgrade"}]),p.emit("upgrade",l),l=null,p.upgrading=!1,p.flush())})}else{s('probe transport "%s" failed',t);var n=new Error("probe error");n.transport=l.name,p.emit("upgradeError",n)}}))}function n(){d||(d=!0,c(),l.close(),l=null)}function i(e){var r=new Error("probe error: "+e);r.transport=l.name,n(),s('probe transport "%s" failed because of error: %s',t,e),p.emit("upgradeError",r)}function o(){i("transport closed")}function a(){i("socket closed")}function u(t){l&&t.name!=l.name&&(s('"%s" works - aborting "%s"',t.name,l.name),n())}function c(){l.removeListener("open",e),l.removeListener("error",i),l.removeListener("close",o),p.removeListener("close",a),p.removeListener("upgrading",u)}s('probing transport "%s"',t);var l=this.createTransport(t,{probe:1}),d=!1,p=this;r.priorWebsocketSuccess=!1,l.once("open",e),l.once("error",i),l.once("close",o),this.once("close",a),this.once("upgrading",u),l.open()},r.prototype.onOpen=function(){if(s("socket open"),this.readyState="open",r.priorWebsocketSuccess="websocket"==this.transport.name,this.emit("open"),this.flush(),"open"==this.readyState&&this.upgrade&&this.transport.pause){s("starting upgrade probes");for(var t=0,e=this.upgrades.length;e>t;t++)this.probe(this.upgrades[t])}},r.prototype.onPacket=function(t){if("opening"==this.readyState||"open"==this.readyState)switch(s('socket receive: type "%s", data "%s"',t.type,t.data),this.emit("packet",t),this.emit("heartbeat"),t.type){case"open":this.onHandshake(d(t.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var e=new Error("server error");e.code=t.data,this.onError(e);break;case"message":this.emit("data",t.data),this.emit("message",t.data)}else s('packet received with socket readyState "%s"',this.readyState)},r.prototype.onHandshake=function(t){this.emit("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.onOpen(),"closed"!=this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},r.prototype.onHeartbeat=function(t){clearTimeout(this.pingTimeoutTimer);var e=this;e.pingTimeoutTimer=setTimeout(function(){"closed"!=e.readyState&&e.onClose("ping timeout")},t||e.pingInterval+e.pingTimeout)},r.prototype.setPing=function(){var t=this;clearTimeout(t.pingIntervalTimer),t.pingIntervalTimer=setTimeout(function(){s("writing ping packet - expecting pong within %sms",t.pingTimeout),t.ping(),t.onHeartbeat(t.pingTimeout)},t.pingInterval)},r.prototype.ping=function(){var t=this;this.sendPacket("ping",function(){t.emit("ping")})},r.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},r.prototype.flush=function(){"closed"!=this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(s("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},r.prototype.write=r.prototype.send=function(t,e,n){return this.sendPacket("message",t,e,n),this},r.prototype.sendPacket=function(t,e,n,r){if("function"==typeof e&&(r=e,e=void 0),"function"==typeof n&&(r=n,n=null),"closing"!=this.readyState&&"closed"!=this.readyState){n=n||{},n.compress=!1!==n.compress;var i={type:t,data:e,options:n};this.emit("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}},r.prototype.close=function(){function t(){r.onClose("forced close"),s("socket closing - telling transport to close"),r.transport.close()}function e(){r.removeListener("upgrade",e),r.removeListener("upgradeError",e),t()}function n(){r.once("upgrade",e),r.once("upgradeError",e)}if("opening"==this.readyState||"open"==this.readyState){this.readyState="closing";var r=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?n():t()}):this.upgrading?n():t()}return this},r.prototype.onError=function(t){s("socket error %j",t),r.priorWebsocketSuccess=!1,this.emit("error",t),this.onClose("transport error",t)},r.prototype.onClose=function(t,e){if("opening"==this.readyState||"open"==this.readyState||"closing"==this.readyState){s('socket close with reason: "%s"',t);var n=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",t,e),n.writeBuffer=[],n.prevBufferLen=0}},r.prototype.filterUpgrades=function(t){for(var e=[],n=0,r=t.length;r>n;n++)~u(this.transports,t[n])&&e.push(t[n]);return e}}).call(e,function(){return this}())},function(t,e,n){(function(e){function r(){}function i(t){o.call(this,t),this.query=this.query||{},s||(e.___eio||(e.___eio=[]),s=e.___eio),this.index=s.length;var n=this;s.push(function(t){n.onData(t)}),this.query.j=this.index,e.document&&e.addEventListener&&e.addEventListener("beforeunload",function(){n.script&&(n.script.onerror=r)},!1)}var o=n(65),a=n(27);t.exports=i;var s,u=/\n/g,c=/\\n/g;a(i,o),i.prototype.supportsBinary=!1,i.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),o.prototype.doClose.call(this)},i.prototype.doPoll=function(){var t=this,e=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),e.async=!0,e.src=this.uri(),e.onerror=function(e){t.onError("jsonp poll error",e)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(e,n):(document.head||document.body).appendChild(e),this.script=e;var r="undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent);r&&setTimeout(function(){var t=document.createElement("iframe");document.body.appendChild(t),document.body.removeChild(t)},100)},i.prototype.doWrite=function(t,e){function n(){r(),e()}function r(){if(i.iframe)try{i.form.removeChild(i.iframe)}catch(t){i.onError("jsonp polling iframe removal error",t)}try{var e='<iframe src="javascript:0" name="'+i.iframeId+'">';o=document.createElement(e)}catch(t){o=document.createElement("iframe"),o.name=i.iframeId,o.src="javascript:0"}o.id=i.iframeId,i.form.appendChild(o),i.iframe=o}var i=this;if(!this.form){var o,a=document.createElement("form"),s=document.createElement("textarea"),l=this.iframeId="eio_iframe_"+this.index;a.className="socketio",a.style.position="absolute",a.style.top="-1000px",a.style.left="-1000px",a.target=l,a.method="POST",a.setAttribute("accept-charset","utf-8"),s.name="d",a.appendChild(s),document.body.appendChild(a),this.form=a,this.area=s}this.form.action=this.uri(),r(),t=t.replace(c,"\\\n"),this.area.value=t.replace(u,"\\n");try{this.form.submit()}catch(d){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"==i.iframe.readyState&&n()}:this.iframe.onload=n}}).call(e,function(){return this}())},function(t,e,n){(function(e){function r(){}function i(t){if(u.call(this,t),e.location){var n="https:"==location.protocol,r=location.port;r||(r=n?443:80),this.xd=t.hostname!=e.location.hostname||r!=t.port,this.xs=t.secure!=n}else this.extraHeaders=t.extraHeaders}function o(t){this.method=t.method||"GET",this.uri=t.uri,this.xd=!!t.xd,this.xs=!!t.xs,this.async=!1!==t.async,this.data=void 0!=t.data?t.data:null,this.agent=t.agent,this.isBinary=t.isBinary,this.supportsBinary=t.supportsBinary,this.enablesXDR=t.enablesXDR,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.extraHeaders=t.extraHeaders,this.create()}function a(){for(var t in o.requests)o.requests.hasOwnProperty(t)&&o.requests[t].abort()}var s=n(40),u=n(65),c=n(26),l=n(27),d=n(11)("engine.io-client:polling-xhr");t.exports=i,t.exports.Request=o,l(i,u),i.prototype.supportsBinary=!0,i.prototype.request=function(t){return t=t||{},t.uri=this.uri(),t.xd=this.xd,t.xs=this.xs,t.agent=this.agent||!1,t.supportsBinary=this.supportsBinary,t.enablesXDR=this.enablesXDR,t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized,t.extraHeaders=this.extraHeaders,new o(t)},i.prototype.doWrite=function(t,e){var n="string"!=typeof t&&void 0!==t,r=this.request({method:"POST",data:t,isBinary:n}),i=this;r.on("success",e),r.on("error",function(t){i.onError("xhr post error",t)}),this.sendXhr=r},i.prototype.doPoll=function(){d("xhr poll");var t=this.request(),e=this;t.on("data",function(t){e.onData(t)}),t.on("error",function(t){e.onError("xhr poll error",t)}),this.pollXhr=t},c(o.prototype),o.prototype.create=function(){var t={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized;var n=this.xhr=new s(t),r=this;try{d("xhr open %s: %s",this.method,this.uri),n.open(this.method,this.uri,this.async);try{if(this.extraHeaders){n.setDisableHeaderCheck(!0);for(var i in this.extraHeaders)this.extraHeaders.hasOwnProperty(i)&&n.setRequestHeader(i,this.extraHeaders[i])}}catch(a){}if(this.supportsBinary&&(n.responseType="arraybuffer"),"POST"==this.method)try{this.isBinary?n.setRequestHeader("Content-type","application/octet-stream"):n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(a){}"withCredentials"in n&&(n.withCredentials=!0),this.hasXDR()?(n.onload=function(){r.onLoad()},n.onerror=function(){r.onError(n.responseText)}):n.onreadystatechange=function(){4==n.readyState&&(200==n.status||1223==n.status?r.onLoad():setTimeout(function(){r.onError(n.status)},0))},d("xhr data %s",this.data),n.send(this.data)}catch(a){return void setTimeout(function(){r.onError(a)},0)}e.document&&(this.index=o.requestsCount++,o.requests[this.index]=this)},o.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},o.prototype.onData=function(t){this.emit("data",t),this.onSuccess()},o.prototype.onError=function(t){this.emit("error",t),this.cleanup(!0)},o.prototype.cleanup=function(t){if("undefined"!=typeof this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=r:this.xhr.onreadystatechange=r,t)try{this.xhr.abort()}catch(n){}e.document&&delete o.requests[this.index],this.xhr=null}},o.prototype.onLoad=function(){var t;try{var e;try{e=this.xhr.getResponseHeader("Content-Type").split(";")[0]}catch(n){}if("application/octet-stream"===e)t=this.xhr.response;else if(this.supportsBinary)try{t=String.fromCharCode.apply(null,new Uint8Array(this.xhr.response))}catch(n){for(var r=new Uint8Array(this.xhr.response),i=[],o=0,a=r.length;a>o;o++)i.push(r[o]);t=String.fromCharCode.apply(null,i)}else t=this.xhr.responseText}catch(n){this.onError(n)}null!=t&&this.onData(t)},o.prototype.hasXDR=function(){return"undefined"!=typeof e.XDomainRequest&&!this.xs&&this.enablesXDR},o.prototype.abort=function(){this.cleanup()},e.document&&(o.requestsCount=0,o.requests={},e.attachEvent?e.attachEvent("onunload",a):e.addEventListener&&e.addEventListener("beforeunload",a,!1))}).call(e,function(){return this}())},function(t,e,n){(function(e){function r(t){var e=t&&t.forceBase64;e&&(this.supportsBinary=!1),this.perMessageDeflate=t.perMessageDeflate,i.call(this,t)}var i=n(39),o=n(19),a=n(41),s=n(27),u=n(109),c=n(11)("engine.io-client:websocket"),l=e.WebSocket||e.MozWebSocket,d=l;if(!d&&"undefined"==typeof window)try{d=n(215)}catch(p){}t.exports=r,s(r,i),r.prototype.name="websocket",r.prototype.supportsBinary=!0,r.prototype.doOpen=function(){if(this.check()){var t=this.uri(),e=void 0,n={agent:this.agent,perMessageDeflate:this.perMessageDeflate};n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(n.headers=this.extraHeaders),this.ws=l?new d(t):new d(t,e,n),void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="buffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},r.prototype.addEventListeners=function(){var t=this;this.ws.onopen=function(){t.onOpen()},this.ws.onclose=function(){t.onClose()},this.ws.onmessage=function(e){t.onData(e.data)},this.ws.onerror=function(e){t.onError("websocket error",e)}},"undefined"!=typeof navigator&&/iPad|iPhone|iPod/i.test(navigator.userAgent)&&(r.prototype.onData=function(t){var e=this;setTimeout(function(){i.prototype.onData.call(e,t)},0)}),r.prototype.write=function(t){function n(){r.emit("flush"),setTimeout(function(){r.writable=!0,r.emit("drain")},0)}var r=this;this.writable=!1;for(var i=t.length,a=0,s=i;s>a;a++)!function(t){o.encodePacket(t,r.supportsBinary,function(o){if(!l){var a={};if(t.options&&(a.compress=t.options.compress),r.perMessageDeflate){var s="string"==typeof o?e.Buffer.byteLength(o):o.length;s<r.perMessageDeflate.threshold&&(a.compress=!1)}}try{l?r.ws.send(o):r.ws.send(o,a)}catch(u){c("websocket closed before onclose event")}--i||n()})}(t[a])},r.prototype.onClose=function(){i.prototype.onClose.call(this)},r.prototype.doClose=function(){"undefined"!=typeof this.ws&&this.ws.close()},r.prototype.uri=function(){var t=this.query||{},e=this.secure?"wss":"ws",n="";this.port&&("wss"==e&&443!=this.port||"ws"==e&&80!=this.port)&&(n=":"+this.port),this.timestampRequests&&(t[this.timestampParam]=u()),this.supportsBinary||(t.b64=1),t=a.encode(t),t.length&&(t="?"+t);var r=-1!==this.hostname.indexOf(":");return e+"://"+(r?"["+this.hostname+"]":this.hostname)+n+this.path+t},r.prototype.check=function(){return!(!d||"__initialize"in d&&this.name===r.prototype.name)}}).call(e,function(){return this}())},function(t,e){t.exports=Object.keys||function(t){var e=[],n=Object.prototype.hasOwnProperty;for(var r in t)n.call(t,r)&&e.push(r);return e}},function(t,e,n){(function(e){function r(t){function n(t){if(!t)return!1;if(e.Buffer&&e.Buffer.isBuffer(t)||e.ArrayBuffer&&t instanceof ArrayBuffer||e.Blob&&t instanceof Blob||e.File&&t instanceof File)return!0;if(i(t)){for(var r=0;r<t.length;r++)if(n(t[r]))return!0}else if(t&&"object"==typeof t){t.toJSON&&(t=t.toJSON());for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&n(t[o]))return!0}return!1}return n(t)}var i=n(29);t.exports=r}).call(e,function(){return this}())},function(t,e){"use strict";function n(t){return t.replace(r,function(t,e){return e.toUpperCase()})}var r=/-(.)/g;t.exports=n},function(t,e,n){"use strict";function r(t){return i(t.replace(o,"ms-"))}var i=n(130),o=/^-ms-/;t.exports=r},function(t,e,n){"use strict";function r(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"length"in t&&!("setInterval"in t)&&"number"!=typeof t.nodeType&&(Array.isArray(t)||"callee"in t||"item"in t)}function i(t){return r(t)?Array.isArray(t)?t.slice():o(t):[t]}var o=n(143);t.exports=i},function(t,e,n){(function(e){"use strict";function r(t){var e=t.match(l);return e&&e[1].toLowerCase()}function i(t,n){var i=c;c?void 0:"production"!==e.env.NODE_ENV?u(!1,"createNodesFromMarkup dummy not initialized"):u(!1);var o=r(t),l=o&&s(o);if(l){i.innerHTML=l[1]+t+l[2];for(var d=l[0];d--;)i=i.lastChild}else i.innerHTML=t;var p=i.getElementsByTagName("script");p.length&&(n?void 0:"production"!==e.env.NODE_ENV?u(!1,"createNodesFromMarkup(...): Unexpected <script> element rendered."):u(!1),a(p).forEach(n));for(var f=a(i.childNodes);i.lastChild;)i.removeChild(i.lastChild);return f}var o=n(5),a=n(132),s=n(70),u=n(2),c=o.canUseDOM?document.createElement("div"):null,l=/^\s*<(\w+)/;t.exports=i}).call(e,n(1))},function(t,e){"use strict";function n(t){return t===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}}t.exports=n},function(t,e){"use strict";function n(t){return t.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;t.exports=n},function(t,e,n){"use strict";function r(t){return i(t).replace(o,"-ms-")}var i=n(135),o=/^ms-/;t.exports=r},function(t,e){"use strict";function n(t){return!(!t||!("function"==typeof Node?t instanceof Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}t.exports=n},function(t,e,n){"use strict";function r(t){return i(t)&&3==t.nodeType}var i=n(137);t.exports=r},function(t,e){"use strict";function n(t,e,n){if(!t)return null;var i={};for(var o in t)r.call(t,o)&&(i[o]=e.call(n,t[o],o,t));return i}var r=Object.prototype.hasOwnProperty;t.exports=n},function(t,e){"use strict";function n(t){var e={};return function(n){return e.hasOwnProperty(n)||(e[n]=t.call(this,n)),e[n]}}t.exports=n},function(t,e,n){"use strict";var r,i=n(5);i.canUseDOM&&(r=window.performance||window.msPerformance||window.webkitPerformance),t.exports=r||{}},function(t,e,n){"use strict";var r,i=n(141);r=i.now?function(){return i.now()}:function(){return Date.now()},t.exports=r},function(t,e,n){(function(e){"use strict";function r(t){var n=t.length;if(Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t?"production"!==e.env.NODE_ENV?i(!1,"toArray: Array-like object expected"):i(!1):void 0,"number"!=typeof n?"production"!==e.env.NODE_ENV?i(!1,"toArray: Object needs a length property"):i(!1):void 0,0===n||n-1 in t?void 0:"production"!==e.env.NODE_ENV?i(!1,"toArray: Object should have keys for indices"):i(!1),t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(r){}for(var o=Array(n),a=0;n>a;a++)o[a]=t[a];return o}var i=n(2);t.exports=r}).call(e,n(1))},function(t,e,n){(function(e){function r(t){function n(t){if(!t)return!1;if(e.Buffer&&e.Buffer.isBuffer&&e.Buffer.isBuffer(t)||e.ArrayBuffer&&t instanceof ArrayBuffer||e.Blob&&t instanceof Blob||e.File&&t instanceof File)return!0;if(i(t)){for(var r=0;r<t.length;r++)if(n(t[r]))return!0}else if(t&&"object"==typeof t){t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON());for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&n(t[o]))return!0}return!1}return n(t)}var i=n(29);t.exports=r}).call(e,function(){return this}())},function(t,e){try{t.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(n){t.exports=!1}},function(t,e){function n(t){if(t=""+t,!(t.length>1e4)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*l;case"days":case"day":case"d":return n*c;case"hours":case"hour":case"hrs":case"hr":case"h":return n*u;case"minutes":case"minute":case"mins":case"min":case"m":return n*s;case"seconds":case"second":case"secs":case"sec":case"s":return n*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;
  }}}}function r(t){return t>=c?Math.round(t/c)+"d":t>=u?Math.round(t/u)+"h":t>=s?Math.round(t/s)+"m":t>=a?Math.round(t/a)+"s":t+"ms"}function i(t){return o(t,c,"day")||o(t,u,"hour")||o(t,s,"minute")||o(t,a,"second")||t+" ms"}function o(t,e,n){return e>t?void 0:1.5*e>t?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}var a=1e3,s=60*a,u=60*s,c=24*u,l=365.25*c;t.exports=function(t,e){return e=e||{},"string"==typeof t?n(t):e["long"]?i(t):r(t)}},function(t,e){(function(e){var n=/^[\],:{}\s]*$/,r=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,i=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,o=/(?:^|:|,)(?:\s*\[)+/g,a=/^\s+/,s=/\s+$/;t.exports=function(t){return"string"==typeof t&&t?(t=t.replace(a,"").replace(s,""),e.JSON&&JSON.parse?JSON.parse(t):n.test(t.replace(r,"@").replace(i,"]").replace(o,""))?new Function("return "+t)():void 0):null}}).call(e,function(){return this}())},function(t,e,n){"use strict";t.exports=n(80)},function(t,e,n){"use strict";var r=n(6),i=n(50),o=n(68),a={componentDidMount:function(){this.props.autoFocus&&o(i(this))}},s={Mixin:a,focusDOMComponent:function(){o(r.getNode(this._rootNodeID))}};t.exports=s},function(t,e,n){"use strict";function r(){var t=window.opera;return"object"==typeof t&&"function"==typeof t.version&&parseInt(t.version(),10)<=12}function i(t){return(t.ctrlKey||t.altKey||t.metaKey)&&!(t.ctrlKey&&t.altKey)}function o(t){switch(t){case M.topCompositionStart:return A.compositionStart;case M.topCompositionEnd:return A.compositionEnd;case M.topCompositionUpdate:return A.compositionUpdate}}function a(t,e){return t===M.topKeyDown&&e.keyCode===b}function s(t,e){switch(t){case M.topKeyUp:return-1!==_.indexOf(e.keyCode);case M.topKeyDown:return e.keyCode!==b;case M.topKeyPress:case M.topMouseDown:case M.topBlur:return!0;default:return!1}}function u(t){var e=t.detail;return"object"==typeof e&&"data"in e?e.data:null}function c(t,e,n,r,i){var c,l;if(E?c=o(t):S?s(t,r)&&(c=A.compositionEnd):a(t,r)&&(c=A.compositionStart),!c)return null;C&&(S||c!==A.compositionStart?c===A.compositionEnd&&S&&(l=S.getData()):S=v.getPooled(e));var d=m.getPooled(c,n,r,i);if(l)d.data=l;else{var p=u(r);null!==p&&(d.data=p)}return h.accumulateTwoPhaseDispatches(d),d}function l(t,e){switch(t){case M.topCompositionEnd:return u(e);case M.topKeyPress:var n=e.which;return n!==T?null:(k=!0,D);case M.topTextInput:var r=e.data;return r===D&&k?null:r;default:return null}}function d(t,e){if(S){if(t===M.topCompositionEnd||s(t,e)){var n=S.getData();return v.release(S),S=null,n}return null}switch(t){case M.topPaste:return null;case M.topKeyPress:return e.which&&!i(e)?String.fromCharCode(e.which):null;case M.topCompositionEnd:return C?null:e.data;default:return null}}function p(t,e,n,r,i){var o;if(o=N?l(t,r):d(t,r),!o)return null;var a=y.getPooled(A.beforeInput,n,r,i);return a.data=o,h.accumulateTwoPhaseDispatches(a),a}var f=n(12),h=n(23),g=n(5),v=n(158),m=n(190),y=n(193),x=n(14),_=[9,13,27,32],b=229,E=g.canUseDOM&&"CompositionEvent"in window,w=null;g.canUseDOM&&"documentMode"in document&&(w=document.documentMode);var N=g.canUseDOM&&"TextEvent"in window&&!w&&!r(),C=g.canUseDOM&&(!E||w&&w>8&&11>=w),T=32,D=String.fromCharCode(T),M=f.topLevelTypes,A={beforeInput:{phasedRegistrationNames:{bubbled:x({onBeforeInput:null}),captured:x({onBeforeInputCapture:null})},dependencies:[M.topCompositionEnd,M.topKeyPress,M.topTextInput,M.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:x({onCompositionEnd:null}),captured:x({onCompositionEndCapture:null})},dependencies:[M.topBlur,M.topCompositionEnd,M.topKeyDown,M.topKeyPress,M.topKeyUp,M.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:x({onCompositionStart:null}),captured:x({onCompositionStartCapture:null})},dependencies:[M.topBlur,M.topCompositionStart,M.topKeyDown,M.topKeyPress,M.topKeyUp,M.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:x({onCompositionUpdate:null}),captured:x({onCompositionUpdateCapture:null})},dependencies:[M.topBlur,M.topCompositionUpdate,M.topKeyDown,M.topKeyPress,M.topKeyUp,M.topMouseDown]}},k=!1,S=null,O={eventTypes:A,extractEvents:function(t,e,n,r,i){return[c(t,e,n,r,i),p(t,e,n,r,i)]}};t.exports=O},function(t,e,n){(function(e){"use strict";var r=n(74),i=n(5),o=n(8),a=n(131),s=n(198),u=n(136),c=n(140),l=n(4),d=c(function(t){return u(t)}),p=!1,f="cssFloat";if(i.canUseDOM){var h=document.createElement("div").style;try{h.font=""}catch(g){p=!0}void 0===document.documentElement.style.cssFloat&&(f="styleFloat")}if("production"!==e.env.NODE_ENV)var v=/^(?:webkit|moz|o)[A-Z]/,m=/;\s*$/,y={},x={},_=function(t){y.hasOwnProperty(t)&&y[t]||(y[t]=!0,"production"!==e.env.NODE_ENV?l(!1,"Unsupported style property %s. Did you mean %s?",t,a(t)):void 0)},b=function(t){y.hasOwnProperty(t)&&y[t]||(y[t]=!0,"production"!==e.env.NODE_ENV?l(!1,"Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1)):void 0)},E=function(t,n){x.hasOwnProperty(n)&&x[n]||(x[n]=!0,"production"!==e.env.NODE_ENV?l(!1,'Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.',t,n.replace(m,"")):void 0)},w=function(t,e){t.indexOf("-")>-1?_(t):v.test(t)?b(t):m.test(e)&&E(t,e)};var N={createMarkupForStyles:function(t){var n="";for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];"production"!==e.env.NODE_ENV&&w(r,i),null!=i&&(n+=d(r)+":",n+=s(r,i)+";")}return n||null},setValueForStyles:function(t,n){var i=t.style;for(var o in n)if(n.hasOwnProperty(o)){"production"!==e.env.NODE_ENV&&w(o,n[o]);var a=s(o,n[o]);if("float"===o&&(o=f),a)i[o]=a;else{var u=p&&r.shorthandPropertyExpansions[o];if(u)for(var c in u)i[c]="";else i[o]=""}}}};o.measureMethods(N,"CSSPropertyOperations",{setValueForStyles:"setValueForStyles"}),t.exports=N}).call(e,n(1))},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 i(t){var e=w.getPooled(A.change,S,t,N(t));_.accumulateTwoPhaseDispatches(e),E.batchedUpdates(o,e)}function o(t){x.enqueueEvents(t),x.processEventQueue(!1)}function a(t,e){k=t,S=e,k.attachEvent("onchange",i)}function s(){k&&(k.detachEvent("onchange",i),k=null,S=null)}function u(t,e,n){return t===M.topChange?n:void 0}function c(t,e,n){t===M.topFocus?(s(),a(e,n)):t===M.topBlur&&s()}function l(t,e){k=t,S=e,O=t.value,R=Object.getOwnPropertyDescriptor(t.constructor.prototype,"value"),Object.defineProperty(k,"value",P),k.attachEvent("onpropertychange",p)}function d(){k&&(delete k.value,k.detachEvent("onpropertychange",p),k=null,S=null,O=null,R=null)}function p(t){if("value"===t.propertyName){var e=t.srcElement.value;e!==O&&(O=e,i(t))}}function f(t,e,n){return t===M.topInput?n:void 0}function h(t,e,n){t===M.topFocus?(d(),l(e,n)):t===M.topBlur&&d()}function g(t,e,n){return t!==M.topSelectionChange&&t!==M.topKeyUp&&t!==M.topKeyDown||!k||k.value===O?void 0:(O=k.value,S)}function v(t){return t.nodeName&&"input"===t.nodeName.toLowerCase()&&("checkbox"===t.type||"radio"===t.type)}function m(t,e,n){return t===M.topClick?n:void 0}var y=n(12),x=n(22),_=n(23),b=n(5),E=n(9),w=n(18),N=n(53),C=n(56),T=n(101),D=n(14),M=y.topLevelTypes,A={change:{phasedRegistrationNames:{bubbled:D({onChange:null}),captured:D({onChangeCapture:null})},dependencies:[M.topBlur,M.topChange,M.topClick,M.topFocus,M.topInput,M.topKeyDown,M.topKeyUp,M.topSelectionChange]}},k=null,S=null,O=null,R=null,I=!1;b.canUseDOM&&(I=C("change")&&(!("documentMode"in document)||document.documentMode>8));var L=!1;b.canUseDOM&&(L=C("input")&&(!("documentMode"in document)||document.documentMode>9));var P={get:function(){return R.get.call(this)},set:function(t){O=""+t,R.set.call(this,t)}},V={eventTypes:A,extractEvents:function(t,e,n,i,o){var a,s;if(r(e)?I?a=u:s=c:T(e)?L?a=f:(a=g,s=h):v(e)&&(a=m),a){var l=a(t,e,n);if(l){var d=w.getPooled(A.change,l,i,o);return d.type="change",_.accumulateTwoPhaseDispatches(d),d}}s&&s(t,e,n)}};t.exports=V},function(t,e){"use strict";var n=0,r={createReactRootIndex:function(){return n++}};t.exports=r},function(t,e,n){(function(e){"use strict";function r(t){return t.substring(1,t.indexOf(" "))}var i=n(5),o=n(133),a=n(10),s=n(70),u=n(2),c=/^(<[^ \/>]+)/,l="data-danger-index",d={dangerouslyRenderMarkup:function(t){i.canUseDOM?void 0:"production"!==e.env.NODE_ENV?u(!1,"dangerouslyRenderMarkup(...): Cannot render markup in a worker thread. Make sure `window` and `document` are available globally before requiring React when unit testing or use ReactDOMServer.renderToString for server rendering."):u(!1);for(var n,d={},p=0;p<t.length;p++)t[p]?void 0:"production"!==e.env.NODE_ENV?u(!1,"dangerouslyRenderMarkup(...): Missing markup."):u(!1),n=r(t[p]),n=s(n)?n:"*",d[n]=d[n]||[],d[n][p]=t[p];var f=[],h=0;for(n in d)if(d.hasOwnProperty(n)){var g,v=d[n];for(g in v)if(v.hasOwnProperty(g)){var m=v[g];v[g]=m.replace(c,"$1 "+l+'="'+g+'" ')}for(var y=o(v.join(""),a),x=0;x<y.length;++x){var _=y[x];_.hasAttribute&&_.hasAttribute(l)?(g=+_.getAttribute(l),_.removeAttribute(l),f.hasOwnProperty(g)?"production"!==e.env.NODE_ENV?u(!1,"Danger: Assigning to an already-occupied result index."):u(!1):void 0,f[g]=_,h+=1):"production"!==e.env.NODE_ENV&&console.error("Danger: Discarding unexpected node:",_)}}return h!==f.length?"production"!==e.env.NODE_ENV?u(!1,"Danger: Did not assign to every index of resultList."):u(!1):void 0,f.length!==t.length?"production"!==e.env.NODE_ENV?u(!1,"Danger: Expected markup to render %s nodes, but rendered %s.",t.length,f.length):u(!1):void 0,f},dangerouslyReplaceNodeWithMarkup:function(t,n){i.canUseDOM?void 0:"production"!==e.env.NODE_ENV?u(!1,"dangerouslyReplaceNodeWithMarkup(...): Cannot render markup in a worker thread. Make sure `window` and `document` are available globally before requiring React when unit testing or use ReactDOMServer.renderToString() for server rendering."):u(!1),n?void 0:"production"!==e.env.NODE_ENV?u(!1,"dangerouslyReplaceNodeWithMarkup(...): Missing markup."):u(!1),"html"===t.tagName.toLowerCase()?"production"!==e.env.NODE_ENV?u(!1,"dangerouslyReplaceNodeWithMarkup(...): Cannot replace markup of the <html> node. This is because browser quirks make this unreliable and/or slow. If you want to render to the root you must use server rendering. See ReactDOMServer.renderToString()."):u(!1):void 0;var r;r="string"==typeof n?o(n,a)[0]:n,t.parentNode.replaceChild(r,t)}};t.exports=d}).call(e,n(1))},function(t,e,n){"use strict";var r=n(14),i=[r({ResponderEventPlugin:null}),r({SimpleEventPlugin:null}),r({TapEventPlugin:null}),r({EnterLeaveEventPlugin:null}),r({ChangeEventPlugin:null}),r({SelectEventPlugin:null}),r({BeforeInputEventPlugin:null})];t.exports=i},function(t,e,n){"use strict";var r=n(12),i=n(23),o=n(33),a=n(6),s=n(14),u=r.topLevelTypes,c=a.getFirstReactDOM,l={mouseEnter:{registrationName:s({onMouseEnter:null}),dependencies:[u.topMouseOut,u.topMouseOver]},mouseLeave:{registrationName:s({onMouseLeave:null}),dependencies:[u.topMouseOut,u.topMouseOver]}},d=[null,null],p={eventTypes:l,extractEvents:function(t,e,n,r,s){if(t===u.topMouseOver&&(r.relatedTarget||r.fromElement))return null;if(t!==u.topMouseOut&&t!==u.topMouseOver)return null;var p;if(e.window===e)p=e;else{var f=e.ownerDocument;p=f?f.defaultView||f.parentWindow:window}var h,g,v="",m="";if(t===u.topMouseOut?(h=e,v=n,g=c(r.relatedTarget||r.toElement),g?m=a.getID(g):g=p,g=g||p):(h=p,g=e,m=n),h===g)return null;var y=o.getPooled(l.mouseLeave,v,r,s);y.type="mouseleave",y.target=h,y.relatedTarget=g;var x=o.getPooled(l.mouseEnter,m,r,s);return x.type="mouseenter",x.target=g,x.relatedTarget=h,i.accumulateEnterLeaveDispatches(y,x,v,m),d[0]=y,d[1]=x,d}};t.exports=p},function(t,e,n){(function(e){"use strict";function r(t){return t===y.topMouseUp||t===y.topTouchEnd||t===y.topTouchCancel}function i(t){return t===y.topMouseMove||t===y.topTouchMove}function o(t){return t===y.topMouseDown||t===y.topTouchStart}function a(t,e,n,r){var i=t.type||"unknown-event";t.currentTarget=m.Mount.getNode(r),e?h.invokeGuardedCallbackWithCatch(i,n,t,r):h.invokeGuardedCallback(i,n,t,r),t.currentTarget=null}function s(t,n){var r=t._dispatchListeners,i=t._dispatchIDs;if("production"!==e.env.NODE_ENV&&p(t),Array.isArray(r))for(var o=0;o<r.length&&!t.isPropagationStopped();o++)a(t,n,r[o],i[o]);else r&&a(t,n,r,i);t._dispatchListeners=null,t._dispatchIDs=null}function u(t){var n=t._dispatchListeners,r=t._dispatchIDs;if("production"!==e.env.NODE_ENV&&p(t),Array.isArray(n)){for(var i=0;i<n.length&&!t.isPropagationStopped();i++)if(n[i](t,r[i]))return r[i]}else if(n&&n(t,r))return r;return null}function c(t){var e=u(t);return t._dispatchIDs=null,t._dispatchListeners=null,e}function l(t){"production"!==e.env.NODE_ENV&&p(t);var n=t._dispatchListeners,r=t._dispatchIDs;Array.isArray(n)?"production"!==e.env.NODE_ENV?g(!1,"executeDirectDispatch(...): Invalid `event`."):g(!1):void 0;var i=n?n(t,r):null;return t._dispatchListeners=null,t._dispatchIDs=null,i}function d(t){return!!t._dispatchListeners}var p,f=n(12),h=n(89),g=n(2),v=n(4),m={Mount:null,injectMount:function(t){m.Mount=t,"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?v(t&&t.getNode&&t.getID,"EventPluginUtils.injection.injectMount(...): Injected Mount module is missing getNode or getID."):void 0)}},y=f.topLevelTypes;"production"!==e.env.NODE_ENV&&(p=function(t){var n=t._dispatchListeners,r=t._dispatchIDs,i=Array.isArray(n),o=Array.isArray(r),a=o?r.length:r?1:0,s=i?n.length:n?1:0;"production"!==e.env.NODE_ENV?v(o===i&&a===s,"EventPluginUtils: Invalid `event`."):void 0});var x={isEndish:r,isMoveish:i,isStartish:o,executeDirectDispatch:l,executeDispatchesInOrder:s,executeDispatchesInOrderStopAtTrue:c,hasDispatches:d,getNode:function(t){return m.Mount.getNode(t)},getID:function(t){return m.Mount.getID(t)},injection:m};t.exports=x}).call(e,n(1))},function(t,e,n){"use strict";function r(t){this._root=t,this._startText=this.getText(),this._fallbackText=null}var i=n(15),o=n(3),a=n(100);o(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,i=this.getText(),o=i.length;for(t=0;r>t&&n[t]===i[t];t++);var a=r-t;for(e=1;a>=e&&n[r-e]===i[o-e];e++);var s=e>1?1-e:void 0;return this._fallbackText=i.slice(t,s),this._fallbackText}}),i.addPoolingTo(r),t.exports=r},function(t,e,n){"use strict";var r,i=n(16),o=n(5),a=i.injection.MUST_USE_ATTRIBUTE,s=i.injection.MUST_USE_PROPERTY,u=i.injection.HAS_BOOLEAN_VALUE,c=i.injection.HAS_SIDE_EFFECTS,l=i.injection.HAS_NUMERIC_VALUE,d=i.injection.HAS_POSITIVE_NUMERIC_VALUE,p=i.injection.HAS_OVERLOADED_BOOLEAN_VALUE;if(o.canUseDOM){var f=document.implementation;r=f&&f.hasFeature&&f.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}var h={isCustomAttribute:RegExp.prototype.test.bind(/^(data|aria)-[a-z_][a-z\d_.\-]*$/),Properties:{accept:null,acceptCharset:null,accessKey:null,action:null,allowFullScreen:a|u,allowTransparency:a,alt:null,async:u,autoComplete:null,autoPlay:u,capture:a|u,cellPadding:null,cellSpacing:null,charSet:a,challenge:a,checked:s|u,classID:a,className:r?a:s,cols:a|d,colSpan:null,content:null,contentEditable:null,contextMenu:a,controls:s|u,coords:null,crossOrigin:null,data:null,dateTime:a,"default":u,defer:u,dir:null,disabled:a|u,download:p,draggable:null,encType:null,form:a,formAction:a,formEncType:a,formMethod:a,formNoValidate:u,formTarget:a,frameBorder:a,headers:null,height:a,hidden:a|u,high:null,href:null,hrefLang:null,htmlFor:null,httpEquiv:null,icon:null,id:s,inputMode:a,integrity:null,is:a,keyParams:a,keyType:a,kind:null,label:null,lang:null,list:a,loop:s|u,low:null,manifest:a,marginHeight:null,marginWidth:null,max:null,maxLength:a,media:a,mediaGroup:null,method:null,min:null,minLength:a,multiple:s|u,muted:s|u,name:null,nonce:a,noValidate:u,open:u,optimum:null,pattern:null,placeholder:null,poster:null,preload:null,radioGroup:null,readOnly:s|u,rel:null,required:u,reversed:u,role:a,rows:a|d,rowSpan:null,sandbox:null,scope:null,scoped:u,scrolling:null,seamless:a|u,selected:s|u,shape:null,size:a|d,sizes:a,span:d,spellCheck:null,src:null,srcDoc:s,srcLang:null,srcSet:a,start:l,step:null,style:null,summary:null,tabIndex:null,target:null,title:null,type:null,useMap:null,value:s|c,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|u,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=h},function(t,e,n){"use strict";var r=n(80),i=n(170),o=n(177),a=n(3),s=n(199),u={};a(u,o),a(u,{findDOMNode:s("findDOMNode","ReactDOM","react-dom",r,r.findDOMNode),render:s("render","ReactDOM","react-dom",r,r.render),unmountComponentAtNode:s("unmountComponentAtNode","ReactDOM","react-dom",r,r.unmountComponentAtNode),renderToString:s("renderToString","ReactDOMServer","react-dom/server",i,i.renderToString),renderToStaticMarkup:s("renderToStaticMarkup","ReactDOMServer","react-dom/server",i,i.renderToStaticMarkup)}),u.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=r,u.__SECRET_DOM_SERVER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=i,t.exports=u},function(t,e,n){(function(e){"use strict";var r=n(24),i=n(50),o=n(4),a="_getDOMNodeDidWarn",s={getDOMNode:function(){return"production"!==e.env.NODE_ENV?o(this.constructor[a],"%s.getDOMNode(...) is deprecated. Please use ReactDOM.findDOMNode(instance) instead.",r.get(this).getName()||this.tagName||"Unknown"):void 0,this.constructor[a]=!0,i(this)}};t.exports=s}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function r(t,n,r){var i=void 0===t[r];"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?u(i,"flattenChildren(...): Encountered two children with the same key, `%s`. Child keys must be unique; when two children share a key, only the first child will be used.",r):void 0),null!=n&&i&&(t[r]=o(n,null))}var i=n(17),o=n(55),a=n(58),s=n(59),u=n(4),c={instantiateChildren:function(t,e,n){if(null==t)return null;var i={};return s(t,r,i),i},updateChildren:function(t,e,n,r){if(!e&&!t)return null;var s;for(s in e)if(e.hasOwnProperty(s)){var u=t&&t[s],c=u&&u._currentElement,l=e[s];if(null!=u&&a(c,l))i.receiveComponent(u,l,n,r),e[s]=u;else{u&&i.unmountComponent(u,s);var d=o(l,null);e[s]=d}}for(s in t)!t.hasOwnProperty(s)||e&&e.hasOwnProperty(s)||i.unmountComponent(t[s]);return e},unmountChildren:function(t){for(var e in t)if(t.hasOwnProperty(e)){var n=t[e];i.unmountComponent(n)}}};t.exports=c}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function r(t){var e=t._currentElement._owner||null;if(e){var n=e.getName();if(n)return" Check the render method of `"+n+"`."}return""}function i(t){}var o=n(46),a=n(13),s=n(7),u=n(24),c=n(8),l=n(32),d=n(31),p=n(17),f=n(48),h=n(3),g=n(21),v=n(2),m=n(58),y=n(4);i.prototype.render=function(){var t=u.get(this)._currentElement.type;return t(this.props,this.context,this.updater)};var x=1,_={construct:function(t){this._currentElement=t,this._rootNodeID=null,this._instance=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null},mountComponent:function(t,n,r){this._context=r,this._mountOrder=x++,this._rootNodeID=t;var o,c,l=this._processProps(this._currentElement.props),d=this._processContext(r),h=this._currentElement.type,m="prototype"in h;if(m)if("production"!==e.env.NODE_ENV){a.current=this;try{o=new h(l,d,f)}finally{a.current=null}}else o=new h(l,d,f);(!m||null===o||o===!1||s.isValidElement(o))&&(c=o,o=new i(h)),"production"!==e.env.NODE_ENV&&(null==o.render?"production"!==e.env.NODE_ENV?y(!1,"%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`, returned null/false from a stateless component, or tried to render an element whose type is a function that isn't a React component.",h.displayName||h.name||"Component"):void 0:"production"!==e.env.NODE_ENV?y(h.prototype&&h.prototype.isReactComponent||!m||!(o instanceof h),"%s(...): React component classes must extend React.Component.",h.displayName||h.name||"Component"):void 0),o.props=l,o.context=d,o.refs=g,o.updater=f,this._instance=o,u.set(o,this),"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?y(!o.getInitialState||o.getInitialState.isReactClassApproved,"getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",this.getName()||"a component"):void 0,"production"!==e.env.NODE_ENV?y(!o.getDefaultProps||o.getDefaultProps.isReactClassApproved,"getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",this.getName()||"a component"):void 0,"production"!==e.env.NODE_ENV?y(!o.propTypes,"propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",this.getName()||"a component"):void 0,"production"!==e.env.NODE_ENV?y(!o.contextTypes,"contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",this.getName()||"a component"):void 0,"production"!==e.env.NODE_ENV?y("function"!=typeof o.componentShouldUpdate,"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",this.getName()||"A component"):void 0,"production"!==e.env.NODE_ENV?y("function"!=typeof o.componentDidUnmount,"%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",this.getName()||"A component"):void 0,"production"!==e.env.NODE_ENV?y("function"!=typeof o.componentWillRecieveProps,"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",this.getName()||"A component"):void 0);var _=o.state;void 0===_&&(o.state=_=null),"object"!=typeof _||Array.isArray(_)?"production"!==e.env.NODE_ENV?v(!1,"%s.state: must be set to an object or null",this.getName()||"ReactCompositeComponent"):v(!1):void 0,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,o.componentWillMount&&(o.componentWillMount(),this._pendingStateQueue&&(o.state=this._processPendingState(o.props,o.context))),void 0===c&&(c=this._renderValidatedComponent()),this._renderedComponent=this._instantiateReactComponent(c);var b=p.mountComponent(this._renderedComponent,t,n,this._processChildContext(r));return o.componentDidMount&&n.getReactMountReady().enqueue(o.componentDidMount,o),b},unmountComponent:function(){var t=this._instance;t.componentWillUnmount&&t.componentWillUnmount(),p.unmountComponent(this._renderedComponent),this._renderedComponent=null,this._instance=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=null,this._topLevelWrapper=null,u.remove(t)},_maskContext:function(t){var e=null,n=this._currentElement.type,r=n.contextTypes;if(!r)return g;e={};for(var i in r)e[i]=t[i];return e},_processContext:function(t){var n=this._maskContext(t);if("production"!==e.env.NODE_ENV){var r=this._currentElement.type;r.contextTypes&&this._checkPropTypes(r.contextTypes,n,l.context)}return n},_processChildContext:function(t){var n=this._currentElement.type,r=this._instance,i=r.getChildContext&&r.getChildContext();if(i){"object"!=typeof n.childContextTypes?"production"!==e.env.NODE_ENV?v(!1,"%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",this.getName()||"ReactCompositeComponent"):v(!1):void 0,"production"!==e.env.NODE_ENV&&this._checkPropTypes(n.childContextTypes,i,l.childContext);for(var o in i)o in n.childContextTypes?void 0:"production"!==e.env.NODE_ENV?v(!1,'%s.getChildContext(): key "%s" is not defined in childContextTypes.',this.getName()||"ReactCompositeComponent",o):v(!1);return h({},t,i)}return t},_processProps:function(t){if("production"!==e.env.NODE_ENV){var n=this._currentElement.type;n.propTypes&&this._checkPropTypes(n.propTypes,t,l.prop)}return t},_checkPropTypes:function(t,n,i){var o=this.getName();for(var a in t)if(t.hasOwnProperty(a)){var s;try{"function"!=typeof t[a]?"production"!==e.env.NODE_ENV?v(!1,"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",o||"React class",d[i],a):v(!1):void 0,s=t[a](n,a,o,i)}catch(u){s=u}if(s instanceof Error){var c=r(this);i===l.prop?"production"!==e.env.NODE_ENV?y(!1,"Failed Composite propType: %s%s",s.message,c):void 0:"production"!==e.env.NODE_ENV?y(!1,"Failed Context Types: %s%s",s.message,c):void 0}}},receiveComponent:function(t,e,n){var r=this._currentElement,i=this._context;this._pendingElement=null,this.updateComponent(e,r,t,i,n)},performUpdateIfNecessary:function(t){null!=this._pendingElement&&p.receiveComponent(this,this._pendingElement||this._currentElement,t,this._context),(null!==this._pendingStateQueue||this._pendingForceUpdate)&&this.updateComponent(t,this._currentElement,this._currentElement,this._context,this._context)},updateComponent:function(t,n,r,i,o){var a,s=this._instance,u=this._context===o?s.context:this._processContext(o);n===r?a=r.props:(a=this._processProps(r.props),s.componentWillReceiveProps&&s.componentWillReceiveProps(a,u));var c=this._processPendingState(a,u),l=this._pendingForceUpdate||!s.shouldComponentUpdate||s.shouldComponentUpdate(a,c,u);"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?y("undefined"!=typeof l,"%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",this.getName()||"ReactCompositeComponent"):void 0),l?(this._pendingForceUpdate=!1,this._performComponentUpdate(r,a,c,u,t,o)):(this._currentElement=r,this._context=o,s.props=a,s.state=c,s.context=u)},_processPendingState:function(t,e){var n=this._instance,r=this._pendingStateQueue,i=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!r)return n.state;if(i&&1===r.length)return r[0];for(var o=h({},i?r[0]:n.state),a=i?1:0;a<r.length;a++){var s=r[a];h(o,"function"==typeof s?s.call(n,o,t,e):s)}return o},_performComponentUpdate:function(t,e,n,r,i,o){var a,s,u,c=this._instance,l=Boolean(c.componentDidUpdate);l&&(a=c.props,s=c.state,u=c.context),c.componentWillUpdate&&c.componentWillUpdate(e,n,r),this._currentElement=t,this._context=o,c.props=e,c.state=n,c.context=r,this._updateRenderedComponent(i,o),l&&i.getReactMountReady().enqueue(c.componentDidUpdate.bind(c,a,s,u),c)},_updateRenderedComponent:function(t,e){var n=this._renderedComponent,r=n._currentElement,i=this._renderValidatedComponent();if(m(r,i))p.receiveComponent(n,i,t,this._processChildContext(e));else{var o=this._rootNodeID,a=n._rootNodeID;p.unmountComponent(n),this._renderedComponent=this._instantiateReactComponent(i);var s=p.mountComponent(this._renderedComponent,o,t,this._processChildContext(e));this._replaceNodeWithMarkupByID(a,s)}},_replaceNodeWithMarkupByID:function(t,e){o.replaceNodeWithMarkupByID(t,e)},_renderValidatedComponentWithoutOwnerOrContext:function(){var t=this._instance,n=t.render();return"production"!==e.env.NODE_ENV&&"undefined"==typeof n&&t.render._isMockFunction&&(n=null),n},_renderValidatedComponent:function(){var t;a.current=this;try{t=this._renderValidatedComponentWithoutOwnerOrContext()}finally{a.current=null}return null===t||t===!1||s.isValidElement(t)?void 0:"production"!==e.env.NODE_ENV?v(!1,"%s.render(): A valid ReactComponent must be returned. You may have returned undefined, an array or some other invalid object.",this.getName()||"ReactCompositeComponent"):v(!1),t},attachRef:function(t,n){var r=this.getPublicInstance();null==r?"production"!==e.env.NODE_ENV?v(!1,"Stateless function components cannot have refs."):v(!1):void 0;var i=n.getPublicInstance();if("production"!==e.env.NODE_ENV){var o=n&&n.getName?n.getName():"a component";"production"!==e.env.NODE_ENV?y(null!=i,'Stateless function components cannot be given refs (See ref "%s" in %s created by %s). Attempts to access this ref will fail.',t,o,this.getName()):void 0}var a=r.refs===g?r.refs={}:r.refs;a[t]=i},detachRef:function(t){var e=this.getPublicInstance().refs;delete e[t]},getName:function(){var t=this._currentElement.type,e=this._instance&&this._instance.constructor;return t.displayName||e&&e.displayName||t.name||e&&e.name||null},getPublicInstance:function(){var t=this._instance;return t instanceof i?null:t},_instantiateReactComponent:null};c.measureMethods(_,"ReactCompositeComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent",_renderValidatedComponent:"_renderValidatedComponent"});var b={Mixin:_};t.exports=b}).call(e,n(1))},function(t,e){"use strict";var n={onClick:!0,onDoubleClick:!0,onMouseDown:!0,onMouseMove:!0,onMouseUp:!0,onClickCapture:!0,onDoubleClickCapture:!0,onMouseDownCapture:!0,onMouseMoveCapture:!0,onMouseUpCapture:!0},r={getNativeProps:function(t,e,r){if(!e.disabled)return e;var i={};for(var o in e)e.hasOwnProperty(o)&&!n[o]&&(i[o]=e[o]);return i}};t.exports=r},function(t,e,n){(function(e){"use strict";function r(t){if(t){var e=t._currentElement._owner||null;if(e){var n=e.getName();if(n)return" This DOM node was rendered by `"+n+"`."}}return""}function i(){if("production"!==e.env.NODE_ENV){var t=this._reactInternalComponent;"production"!==e.env.NODE_ENV?K(!1,"ReactDOMComponent: Do not access .getDOMNode() of a DOM node; instead, use the node directly.%s",r(t)):void 0}return this}function o(){var t=this._reactInternalComponent;return"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?K(!1,"ReactDOMComponent: Do not access .isMounted() of a DOM node.%s",r(t)):void 0),!!t}function a(){if("production"!==e.env.NODE_ENV){var t=this._reactInternalComponent;"production"!==e.env.NODE_ENV?K(!1,"ReactDOMComponent: Do not access .setState(), .replaceState(), or .forceUpdate() of a DOM node. This is a no-op.%s",r(t)):void 0}}function s(t,n){var i=this._reactInternalComponent;"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?K(!1,"ReactDOMComponent: Do not access .setProps() of a DOM node. Instead, call ReactDOM.render again at the top level.%s",r(i)):void 0),i&&(V.enqueueSetPropsInternal(i,t),n&&V.enqueueCallbackInternal(i,n))}function u(t,n){var i=this._reactInternalComponent;"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?K(!1,"ReactDOMComponent: Do not access .replaceProps() of a DOM node. Instead, call ReactDOM.render again at the top level.%s",r(i)):void 0),i&&(V.enqueueReplacePropsInternal(i,t),n&&V.enqueueCallbackInternal(i,n))}function c(t){if("object"==typeof t){if(Array.isArray(t))return"["+t.map(c).join(", ")+"]";var e=[];for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=/^[a-z$_][\w$_]*$/i.test(n)?n:JSON.stringify(n);e.push(r+": "+c(t[n]))}return"{"+e.join(", ")+"}"}return"string"==typeof t?JSON.stringify(t):"function"==typeof t?"[function object]":String(t)}function l(t,n,r){if(null!=t&&null!=n&&!W(t,n)){var i,o=r._tag,a=r._currentElement._owner;a&&(i=a.getName());var s=i+"|"+o;rt.hasOwnProperty(s)||(rt[s]=!0,"production"!==e.env.NODE_ENV?K(!1,"`%s` was passed a style object that has previously been mutated. Mutating `style` is deprecated. Consider cloning it beforehand. Check the `render` %s. Previous style: %s. Mutated style: %s.",o,a?"of `"+i+"`":"using <"+o+">",c(t),c(n)):void 0);
  }}function d(t,n){n&&("production"!==e.env.NODE_ENV&&st[t._tag]&&("production"!==e.env.NODE_ENV?K(null==n.children&&null==n.dangerouslySetInnerHTML,"%s is a void element tag and must not have `children` or use `props.dangerouslySetInnerHTML`.%s",t._tag,t._currentElement._owner?" Check the render method of "+t._currentElement._owner.getName()+".":""):void 0),null!=n.dangerouslySetInnerHTML&&(null!=n.children?"production"!==e.env.NODE_ENV?j(!1,"Can only set one of `children` or `props.dangerouslySetInnerHTML`."):j(!1):void 0,"object"==typeof n.dangerouslySetInnerHTML&&et in n.dangerouslySetInnerHTML?void 0:"production"!==e.env.NODE_ENV?j(!1,"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information."):j(!1)),"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?K(null==n.innerHTML,"Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."):void 0,"production"!==e.env.NODE_ENV?K(!n.contentEditable||null==n.children,"A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."):void 0),null!=n.style&&"object"!=typeof n.style?"production"!==e.env.NODE_ENV?j(!1,"The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.%s",r(t)):j(!1):void 0)}function p(t,n,r,i){"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?K("onScroll"!==n||X("scroll",!0),"This browser doesn't support the `onScroll` event"):void 0);var o=I.findReactContainerForID(t);if(o){var a=o.nodeType===nt?o.ownerDocument:o;J(n,a)}i.getReactMountReady().enqueue(f,{id:t,registrationName:n,listener:r})}function f(){var t=this;D.putListener(t.id,t.registrationName,t.listener)}function h(){var t=this;t._rootNodeID?void 0:"production"!==e.env.NODE_ENV?j(!1,"Must be mounted to trap events"):j(!1);var n=I.getNode(t._rootNodeID);switch(n?void 0:"production"!==e.env.NODE_ENV?j(!1,"trapBubbledEvent(...): Requires node to be rendered."):j(!1),t._tag){case"iframe":t._wrapperState.listeners=[D.trapBubbledEvent(T.topLevelTypes.topLoad,"load",n)];break;case"video":case"audio":t._wrapperState.listeners=[];for(var r in it)it.hasOwnProperty(r)&&t._wrapperState.listeners.push(D.trapBubbledEvent(T.topLevelTypes[r],it[r],n));break;case"img":t._wrapperState.listeners=[D.trapBubbledEvent(T.topLevelTypes.topError,"error",n),D.trapBubbledEvent(T.topLevelTypes.topLoad,"load",n)];break;case"form":t._wrapperState.listeners=[D.trapBubbledEvent(T.topLevelTypes.topReset,"reset",n),D.trapBubbledEvent(T.topLevelTypes.topSubmit,"submit",n)]}}function g(){k.mountReadyWrapper(this)}function v(){O.postUpdateWrapper(this)}function m(t){lt.call(ct,t)||(ut.test(t)?void 0:"production"!==e.env.NODE_ENV?j(!1,"Invalid tag: %s",t):j(!1),ct[t]=!0)}function y(t,e){t=F({},t);var n=t[H.ancestorInfoContextKey];return t[H.ancestorInfoContextKey]=H.updatedAncestorInfo(n,e._tag,e),t}function x(t,e){return t.indexOf("-")>=0||null!=e.is}function _(t){m(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,"production"!==e.env.NODE_ENV&&(this._unprocessedContextDev=null,this._processedContextDev=null)}var b,E=n(149),w=n(151),N=n(16),C=n(43),T=n(12),D=n(30),M=n(45),A=n(164),k=n(167),S=n(168),O=n(82),R=n(171),I=n(6),L=n(178),P=n(8),V=n(48),F=n(3),B=n(35),U=n(36),j=n(2),X=n(56),z=n(14),Y=n(37),q=n(57),W=n(71),H=n(60),K=n(4),G=D.deleteListener,J=D.listenTo,$=D.registrationNameModules,Z={string:!0,number:!0},Q=z({children:null}),tt=z({style:null}),et=z({__html:null}),nt=1;"production"!==e.env.NODE_ENV&&(b={props:{enumerable:!1,get:function(){var t=this._reactInternalComponent;return"production"!==e.env.NODE_ENV?K(!1,"ReactDOMComponent: Do not access .props of a DOM node; instead, recreate the props as `render` did originally or read the DOM properties/attributes directly from this node (e.g., this.refs.box.className).%s",r(t)):void 0,t._currentElement.props}}});var rt={},it={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"},ot={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},at={listing:!0,pre:!0,textarea:!0},st=F({menuitem:!0},ot),ut=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ct={},lt={}.hasOwnProperty;_.displayName="ReactDOMComponent",_.Mixin={construct:function(t){this._currentElement=t},mountComponent:function(t,n,r){this._rootNodeID=t;var i=this._currentElement.props;switch(this._tag){case"iframe":case"img":case"form":case"video":case"audio":this._wrapperState={listeners:null},n.getReactMountReady().enqueue(h,this);break;case"button":i=A.getNativeProps(this,i,r);break;case"input":k.mountWrapper(this,i,r),i=k.getNativeProps(this,i,r);break;case"option":S.mountWrapper(this,i,r),i=S.getNativeProps(this,i,r);break;case"select":O.mountWrapper(this,i,r),i=O.getNativeProps(this,i,r),r=O.processChildContext(this,i,r);break;case"textarea":R.mountWrapper(this,i,r),i=R.getNativeProps(this,i,r)}d(this,i),"production"!==e.env.NODE_ENV&&r[H.ancestorInfoContextKey]&&H(this._tag,this,r[H.ancestorInfoContextKey]),"production"!==e.env.NODE_ENV&&(this._unprocessedContextDev=r,this._processedContextDev=y(r,this),r=this._processedContextDev);var o;if(n.useCreateElement){var a=r[I.ownerDocumentContextKey],s=a.createElement(this._currentElement.type);C.setAttributeForID(s,this._rootNodeID),I.getID(s),this._updateDOMProperties({},i,n,s),this._createInitialChildren(n,i,r,s),o=s}else{var u=this._createOpenTagMarkupAndPutListeners(n,i),c=this._createContentMarkup(n,i,r);o=!c&&ot[this._tag]?u+"/>":u+">"+c+"</"+this._currentElement.type+">"}switch(this._tag){case"input":n.getReactMountReady().enqueue(g,this);case"button":case"select":case"textarea":i.autoFocus&&n.getReactMountReady().enqueue(E.focusDOMComponent,this)}return o},_createOpenTagMarkupAndPutListeners:function(t,n){var r="<"+this._currentElement.type;for(var i in n)if(n.hasOwnProperty(i)){var o=n[i];if(null!=o)if($.hasOwnProperty(i))o&&p(this._rootNodeID,i,o,t);else{i===tt&&(o&&("production"!==e.env.NODE_ENV&&(this._previousStyle=o),o=this._previousStyleCopy=F({},n.style)),o=w.createMarkupForStyles(o));var a=null;null!=this._tag&&x(this._tag,n)?i!==Q&&(a=C.createMarkupForCustomAttribute(i,o)):a=C.createMarkupForProperty(i,o),a&&(r+=" "+a)}}if(t.renderToStaticMarkup)return r;var s=C.createMarkupForID(this._rootNodeID);return r+" "+s},_createContentMarkup:function(t,e,n){var r="",i=e.dangerouslySetInnerHTML;if(null!=i)null!=i.__html&&(r=i.__html);else{var o=Z[typeof e.children]?e.children:null,a=null!=o?null:e.children;if(null!=o)r=U(o);else if(null!=a){var s=this.mountChildren(a,t,n);r=s.join("")}}return at[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(t,e,n,r){var i=e.dangerouslySetInnerHTML;if(null!=i)null!=i.__html&&Y(r,i.__html);else{var o=Z[typeof e.children]?e.children:null,a=null!=o?null:e.children;if(null!=o)q(r,o);else if(null!=a)for(var s=this.mountChildren(a,t,n),u=0;u<s.length;u++)r.appendChild(s[u])}},receiveComponent:function(t,e,n){var r=this._currentElement;this._currentElement=t,this.updateComponent(e,r,t,n)},updateComponent:function(t,n,r,i){var o=n.props,a=this._currentElement.props;switch(this._tag){case"button":o=A.getNativeProps(this,o),a=A.getNativeProps(this,a);break;case"input":k.updateWrapper(this),o=k.getNativeProps(this,o),a=k.getNativeProps(this,a);break;case"option":o=S.getNativeProps(this,o),a=S.getNativeProps(this,a);break;case"select":o=O.getNativeProps(this,o),a=O.getNativeProps(this,a);break;case"textarea":R.updateWrapper(this),o=R.getNativeProps(this,o),a=R.getNativeProps(this,a)}"production"!==e.env.NODE_ENV&&(this._unprocessedContextDev!==i&&(this._unprocessedContextDev=i,this._processedContextDev=y(i,this)),i=this._processedContextDev),d(this,a),this._updateDOMProperties(o,a,t,null),this._updateDOMChildren(o,a,t,i),!B&&this._nodeWithLegacyProperties&&(this._nodeWithLegacyProperties.props=a),"select"===this._tag&&t.getReactMountReady().enqueue(v,this)},_updateDOMProperties:function(t,n,r,i){var o,a,s;for(o in t)if(!n.hasOwnProperty(o)&&t.hasOwnProperty(o))if(o===tt){var u=this._previousStyleCopy;for(a in u)u.hasOwnProperty(a)&&(s=s||{},s[a]="");this._previousStyleCopy=null}else $.hasOwnProperty(o)?t[o]&&G(this._rootNodeID,o):(N.properties[o]||N.isCustomAttribute(o))&&(i||(i=I.getNode(this._rootNodeID)),C.deleteValueForProperty(i,o));for(o in n){var c=n[o],d=o===tt?this._previousStyleCopy:t[o];if(n.hasOwnProperty(o)&&c!==d)if(o===tt)if(c?("production"!==e.env.NODE_ENV&&(l(this._previousStyleCopy,this._previousStyle,this),this._previousStyle=c),c=this._previousStyleCopy=F({},c)):this._previousStyleCopy=null,d){for(a in d)!d.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(s=s||{},s[a]="");for(a in c)c.hasOwnProperty(a)&&d[a]!==c[a]&&(s=s||{},s[a]=c[a])}else s=c;else $.hasOwnProperty(o)?c?p(this._rootNodeID,o,c,r):d&&G(this._rootNodeID,o):x(this._tag,n)?(i||(i=I.getNode(this._rootNodeID)),o===Q&&(c=null),C.setValueForAttribute(i,o,c)):(N.properties[o]||N.isCustomAttribute(o))&&(i||(i=I.getNode(this._rootNodeID)),null!=c?C.setValueForProperty(i,o,c):C.deleteValueForProperty(i,o))}s&&(i||(i=I.getNode(this._rootNodeID)),w.setValueForStyles(i,s))},_updateDOMChildren:function(t,e,n,r){var i=Z[typeof t.children]?t.children:null,o=Z[typeof e.children]?e.children:null,a=t.dangerouslySetInnerHTML&&t.dangerouslySetInnerHTML.__html,s=e.dangerouslySetInnerHTML&&e.dangerouslySetInnerHTML.__html,u=null!=i?null:t.children,c=null!=o?null:e.children,l=null!=i||null!=a,d=null!=o||null!=s;null!=u&&null==c?this.updateChildren(null,n,r):l&&!d&&this.updateTextContent(""),null!=o?i!==o&&this.updateTextContent(""+o):null!=s?a!==s&&this.updateMarkup(""+s):null!=c&&this.updateChildren(c,n,r)},unmountComponent:function(){switch(this._tag){case"iframe":case"img":case"form":case"video":case"audio":var t=this._wrapperState.listeners;if(t)for(var n=0;n<t.length;n++)t[n].remove();break;case"input":k.unmountWrapper(this);break;case"html":case"head":case"body":"production"!==e.env.NODE_ENV?j(!1,"<%s> tried to unmount. Because of cross-browser quirks it is impossible to unmount some top-level components (eg <html>, <head>, and <body>) reliably and efficiently. To fix this, have a single top-level component that never unmounts render these elements.",this._tag):j(!1)}if(this.unmountChildren(),D.deleteAllListeners(this._rootNodeID),M.unmountIDFromEnvironment(this._rootNodeID),this._rootNodeID=null,this._wrapperState=null,this._nodeWithLegacyProperties){var r=this._nodeWithLegacyProperties;r._reactInternalComponent=null,this._nodeWithLegacyProperties=null}},getPublicInstance:function(){if(!this._nodeWithLegacyProperties){var t=I.getNode(this._rootNodeID);t._reactInternalComponent=this,t.getDOMNode=i,t.isMounted=o,t.setState=a,t.replaceState=a,t.forceUpdate=a,t.setProps=s,t.replaceProps=u,"production"!==e.env.NODE_ENV&&B?Object.defineProperties(t,b):t.props=this._currentElement.props,this._nodeWithLegacyProperties=t}return this._nodeWithLegacyProperties}},P.measureMethods(_,"ReactDOMComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent"}),F(_.prototype,_.Mixin,L.Mixin),t.exports=_}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function r(t){return"production"!==e.env.NODE_ENV?o.createFactory(t):i.createFactory(t)}var i=n(7),o=n(86),a=n(139),s=a({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=s}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function r(){this._rootNodeID&&p.updateWrapper(this)}function i(t){var n=this._currentElement.props,i=a.executeOnChange(n,t);u.asap(r,this);var o=n.name;if("radio"===n.type&&null!=o){for(var c=s.getNode(this._rootNodeID),p=c;p.parentNode;)p=p.parentNode;for(var f=p.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),h=0;h<f.length;h++){var g=f[h];if(g!==c&&g.form===c.form){var v=s.getID(g);v?void 0:"production"!==e.env.NODE_ENV?l(!1,"ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported."):l(!1);var m=d[v];m?void 0:"production"!==e.env.NODE_ENV?l(!1,"ReactDOMInput: Unknown radio button ID %s.",v):l(!1),u.asap(r,m)}}}return i}var o=n(47),a=n(44),s=n(6),u=n(9),c=n(3),l=n(2),d={},p={getNativeProps:function(t,e,n){var r=a.getValue(e),i=a.getChecked(e),o=c({},e,{defaultChecked:void 0,defaultValue:void 0,value:null!=r?r:t._wrapperState.initialValue,checked:null!=i?i:t._wrapperState.initialChecked,onChange:t._wrapperState.onChange});return o},mountWrapper:function(t,n){"production"!==e.env.NODE_ENV&&a.checkPropTypes("input",n,t._currentElement._owner);var r=n.defaultValue;t._wrapperState={initialChecked:n.defaultChecked||!1,initialValue:null!=r?r:null,onChange:i.bind(t)}},mountReadyWrapper:function(t){d[t._rootNodeID]=t},unmountWrapper:function(t){delete d[t._rootNodeID]},updateWrapper:function(t){var e=t._currentElement.props,n=e.checked;null!=n&&o.updatePropertyByID(t._rootNodeID,"checked",n||!1);var r=a.getValue(e);null!=r&&o.updatePropertyByID(t._rootNodeID,"value",""+r)}};t.exports=p}).call(e,n(1))},function(t,e,n){(function(e){"use strict";var r=n(77),i=n(82),o=n(3),a=n(4),s=i.valueContextKey,u={mountWrapper:function(t,n,r){"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?a(null==n.selected,"Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."):void 0);var i=r[s],o=null;if(null!=i)if(o=!1,Array.isArray(i)){for(var u=0;u<i.length;u++)if(""+i[u]==""+n.value){o=!0;break}}else o=""+i==""+n.value;t._wrapperState={selected:o}},getNativeProps:function(t,n,i){var s=o({selected:void 0,children:void 0},n);null!=t._wrapperState.selected&&(s.selected=t._wrapperState.selected);var u="";return r.forEach(n.children,function(t){null!=t&&("string"==typeof t||"number"==typeof t?u+=t:"production"!==e.env.NODE_ENV?a(!1,"Only strings and numbers are supported as <option> children."):void 0)}),u&&(s.children=u),s}};t.exports=u}).call(e,n(1))},function(t,e,n){"use strict";function r(t,e,n,r){return t===n&&e===r}function i(t){var e=document.selection,n=e.createRange(),r=n.text.length,i=n.duplicate();i.moveToElementText(t),i.setEndPoint("EndToStart",n);var o=i.text.length,a=o+r;return{start:o,end:a}}function o(t){var e=window.getSelection&&window.getSelection();if(!e||0===e.rangeCount)return null;var n=e.anchorNode,i=e.anchorOffset,o=e.focusNode,a=e.focusOffset,s=e.getRangeAt(0);try{s.startContainer.nodeType,s.endContainer.nodeType}catch(u){return null}var c=r(e.anchorNode,e.anchorOffset,e.focusNode,e.focusOffset),l=c?0:s.toString().length,d=s.cloneRange();d.selectNodeContents(t),d.setEnd(s.startContainer,s.startOffset);var p=r(d.startContainer,d.startOffset,d.endContainer,d.endOffset),f=p?0:d.toString().length,h=f+l,g=document.createRange();g.setStart(n,i),g.setEnd(o,a);var v=g.collapsed;return{start:v?h:f,end:v?f:h}}function a(t,e){var n,r,i=document.selection.createRange().duplicate();"undefined"==typeof e.end?(n=e.start,r=n):e.start>e.end?(n=e.end,r=e.start):(n=e.start,r=e.end),i.moveToElementText(t),i.moveStart("character",n),i.setEndPoint("EndToStart",i),i.moveEnd("character",r-n),i.select()}function s(t,e){if(window.getSelection){var n=window.getSelection(),r=t[l()].length,i=Math.min(e.start,r),o="undefined"==typeof e.end?i:Math.min(e.end,r);if(!n.extend&&i>o){var a=o;o=i,i=a}var s=c(t,i),u=c(t,o);if(s&&u){var d=document.createRange();d.setStart(s.node,s.offset),n.removeAllRanges(),i>o?(n.addRange(d),n.extend(u.node,u.offset)):(d.setEnd(u.node,u.offset),n.addRange(d))}}}var u=n(5),c=n(202),l=n(100),d=u.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:d?i:o,setOffsets:d?a:s};t.exports=p},function(t,e,n){"use strict";var r=n(85),i=n(183),o=n(49);r.inject();var a={renderToString:i.renderToString,renderToStaticMarkup:i.renderToStaticMarkup,version:o};t.exports=a},function(t,e,n){(function(e){"use strict";function r(){this._rootNodeID&&d.updateWrapper(this)}function i(t){var e=this._currentElement.props,n=o.executeOnChange(e,t);return s.asap(r,this),n}var o=n(44),a=n(47),s=n(9),u=n(3),c=n(2),l=n(4),d={getNativeProps:function(t,n,r){null!=n.dangerouslySetInnerHTML?"production"!==e.env.NODE_ENV?c(!1,"`dangerouslySetInnerHTML` does not make sense on <textarea>."):c(!1):void 0;var i=u({},n,{defaultValue:void 0,value:void 0,children:t._wrapperState.initialValue,onChange:t._wrapperState.onChange});return i},mountWrapper:function(t,n){"production"!==e.env.NODE_ENV&&o.checkPropTypes("textarea",n,t._currentElement._owner);var r=n.defaultValue,a=n.children;null!=a&&("production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?l(!1,"Use the `defaultValue` or `value` props instead of setting children on <textarea>."):void 0),null!=r?"production"!==e.env.NODE_ENV?c(!1,"If you supply `defaultValue` on a <textarea>, do not pass children."):c(!1):void 0,Array.isArray(a)&&(a.length<=1?void 0:"production"!==e.env.NODE_ENV?c(!1,"<textarea> can only have at most one child."):c(!1),a=a[0]),r=""+a),null==r&&(r="");var s=o.getValue(n);t._wrapperState={initialValue:""+(null!=s?s:r),onChange:i.bind(t)}},updateWrapper:function(t){var e=t._currentElement.props,n=o.getValue(e);null!=n&&a.updatePropertyByID(t._rootNodeID,"value",""+n)}};t.exports=d}).call(e,n(1))},function(t,e,n){"use strict";function r(t){return Math.floor(100*t)/100}function i(t,e,n){t[e]=(t[e]||0)+n}var o=n(16),a=n(173),s=n(6),u=n(8),c=n(142),l={_allMeasurements:[],_mountStack:[0],_injected:!1,start:function(){l._injected||u.injection.injectMeasure(l.measure),l._allMeasurements.length=0,u.enableMeasure=!0},stop:function(){u.enableMeasure=!1},getLastMeasurements:function(){return l._allMeasurements},printExclusive:function(t){t=t||l._allMeasurements;var e=a.getExclusiveSummary(t);console.table(e.map(function(t){return{"Component class name":t.componentName,"Total inclusive time (ms)":r(t.inclusive),"Exclusive mount time (ms)":r(t.exclusive),"Exclusive render time (ms)":r(t.render),"Mount time per instance (ms)":r(t.exclusive/t.count),"Render time per instance (ms)":r(t.render/t.count),Instances:t.count}}))},printInclusive:function(t){t=t||l._allMeasurements;var e=a.getInclusiveSummary(t);console.table(e.map(function(t){return{"Owner > component":t.componentName,"Inclusive time (ms)":r(t.time),Instances:t.count}})),console.log("Total time:",a.getTotalTime(t).toFixed(2)+" ms")},getMeasurementsSummaryMap:function(t){var e=a.getInclusiveSummary(t,!0);return e.map(function(t){return{"Owner > component":t.componentName,"Wasted time (ms)":t.time,Instances:t.count}})},printWasted:function(t){t=t||l._allMeasurements,console.table(l.getMeasurementsSummaryMap(t)),console.log("Total time:",a.getTotalTime(t).toFixed(2)+" ms")},printDOM:function(t){t=t||l._allMeasurements;var e=a.getDOMSummary(t);console.table(e.map(function(t){var e={};return e[o.ID_ATTRIBUTE_NAME]=t.id,e.type=t.type,e.args=JSON.stringify(t.args),e})),console.log("Total time:",a.getTotalTime(t).toFixed(2)+" ms")},_recordWrite:function(t,e,n,r){var i=l._allMeasurements[l._allMeasurements.length-1].writes;i[t]=i[t]||[],i[t].push({type:e,time:n,args:r})},measure:function(t,e,n){return function(){for(var r=arguments.length,o=Array(r),a=0;r>a;a++)o[a]=arguments[a];var u,d,p;if("_renderNewRootComponent"===e||"flushBatchedUpdates"===e)return l._allMeasurements.push({exclusive:{},inclusive:{},render:{},counts:{},writes:{},displayNames:{},totalTime:0,created:{}}),p=c(),d=n.apply(this,o),l._allMeasurements[l._allMeasurements.length-1].totalTime=c()-p,d;if("_mountImageIntoNode"===e||"ReactBrowserEventEmitter"===t||"ReactDOMIDOperations"===t||"CSSPropertyOperations"===t||"DOMChildrenOperations"===t||"DOMPropertyOperations"===t){if(p=c(),d=n.apply(this,o),u=c()-p,"_mountImageIntoNode"===e){var f=s.getID(o[1]);l._recordWrite(f,e,u,o[0])}else if("dangerouslyProcessChildrenUpdates"===e)o[0].forEach(function(t){var e={};null!==t.fromIndex&&(e.fromIndex=t.fromIndex),null!==t.toIndex&&(e.toIndex=t.toIndex),null!==t.textContent&&(e.textContent=t.textContent),null!==t.markupIndex&&(e.markup=o[1][t.markupIndex]),l._recordWrite(t.parentID,t.type,u,e)});else{var h=o[0];"object"==typeof h&&(h=s.getID(o[0])),l._recordWrite(h,e,u,Array.prototype.slice.call(o,1))}return d}if("ReactCompositeComponent"!==t||"mountComponent"!==e&&"updateComponent"!==e&&"_renderValidatedComponent"!==e)return n.apply(this,o);if(this._currentElement.type===s.TopLevelWrapper)return n.apply(this,o);var g="mountComponent"===e?o[0]:this._rootNodeID,v="_renderValidatedComponent"===e,m="mountComponent"===e,y=l._mountStack,x=l._allMeasurements[l._allMeasurements.length-1];if(v?i(x.counts,g,1):m&&(x.created[g]=!0,y.push(0)),p=c(),d=n.apply(this,o),u=c()-p,v)i(x.render,g,u);else if(m){var _=y.pop();y[y.length-1]+=u,i(x.exclusive,g,u-_),i(x.inclusive,g,u)}else i(x.inclusive,g,u);return x.displayNames[g]={current:this.getName(),owner:this._currentElement._owner?this._currentElement._owner.getName():"<root>"},d}}};t.exports=l},function(t,e,n){"use strict";function r(t){for(var e=0,n=0;n<t.length;n++){var r=t[n];e+=r.totalTime}return e}function i(t){var e=[];return t.forEach(function(t){Object.keys(t.writes).forEach(function(n){t.writes[n].forEach(function(t){e.push({id:n,type:l[t.type]||t.type,args:t.args})})})}),e}function o(t){for(var e,n={},r=0;r<t.length;r++){var i=t[r],o=u({},i.exclusive,i.inclusive);for(var a in o)e=i.displayNames[a].current,n[e]=n[e]||{componentName:e,inclusive:0,exclusive:0,render:0,count:0},i.render[a]&&(n[e].render+=i.render[a]),i.exclusive[a]&&(n[e].exclusive+=i.exclusive[a]),i.inclusive[a]&&(n[e].inclusive+=i.inclusive[a]),i.counts[a]&&(n[e].count+=i.counts[a])}var s=[];for(e in n)n[e].exclusive>=c&&s.push(n[e]);return s.sort(function(t,e){return e.exclusive-t.exclusive}),s}function a(t,e){for(var n,r={},i=0;i<t.length;i++){var o,a=t[i],l=u({},a.exclusive,a.inclusive);e&&(o=s(a));for(var d in l)if(!e||o[d]){var p=a.displayNames[d];n=p.owner+" > "+p.current,r[n]=r[n]||{componentName:n,time:0,count:0},a.inclusive[d]&&(r[n].time+=a.inclusive[d]),a.counts[d]&&(r[n].count+=a.counts[d])}}var f=[];for(n in r)r[n].time>=c&&f.push(r[n]);return f.sort(function(t,e){return e.time-t.time}),f}function s(t){var e={},n=Object.keys(t.writes),r=u({},t.exclusive,t.inclusive);for(var i in r){for(var o=!1,a=0;a<n.length;a++)if(0===n[a].indexOf(i)){o=!0;break}t.created[i]&&(o=!0),!o&&t.counts[i]>0&&(e[i]=!0)}return e}var u=n(3),c=1.2,l={_mountImageIntoNode:"set innerHTML",INSERT_MARKUP:"set innerHTML",MOVE_EXISTING:"move",REMOVE_NODE:"remove",SET_MARKUP:"set innerHTML",TEXT_CONTENT:"set textContent",setValueForProperty:"update attribute",setValueForAttribute:"update attribute",deleteValueForProperty:"remove attribute",setValueForStyles:"update styles",replaceNodeWithMarkup:"replace",updateTextContent:"set textContent"},d={getExclusiveSummary:o,getInclusiveSummary:a,getDOMSummary:i,getTotalTime:r};t.exports=d},function(t,e,n){"use strict";function r(t){i.enqueueEvents(t),i.processEventQueue(!1)}var i=n(22),o={handleTopLevel:function(t,e,n,o,a){var s=i.extractEvents(t,e,n,o,a);r(s)}};t.exports=o},function(t,e,n){"use strict";function r(t){var e=p.getID(t),n=d.getReactRootIDFromNodeID(e),r=p.findReactContainerForID(n),i=p.getFirstReactDOM(r);return i}function i(t,e){this.topLevelType=t,this.nativeEvent=e,this.ancestors=[]}function o(t){a(t)}function a(t){for(var e=p.getFirstReactDOM(g(t.nativeEvent))||window,n=e;n;)t.ancestors.push(n),n=r(n);for(var i=0;i<t.ancestors.length;i++){e=t.ancestors[i];var o=p.getID(e)||"";m._handleTopLevel(t.topLevelType,e,o,t.nativeEvent,g(t.nativeEvent))}}function s(t){var e=v(window);t(e)}var u=n(66),c=n(5),l=n(15),d=n(20),p=n(6),f=n(9),h=n(3),g=n(53),v=n(134);h(i.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),l.addPoolingTo(i,l.twoArgumentPooler);var m={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:c.canUseDOM?window:null,setHandleTopLevel:function(t){m._handleTopLevel=t},setEnabled:function(t){m._enabled=!!t},isEnabled:function(){return m._enabled},trapBubbledEvent:function(t,e,n){var r=n;return r?u.listen(r,e,m.dispatchEvent.bind(null,t)):null},trapCapturedEvent:function(t,e,n){var r=n;return r?u.capture(r,e,m.dispatchEvent.bind(null,t)):null},monitorScrollValue:function(t){var e=s.bind(null,t);u.listen(window,"scroll",e)},dispatchEvent:function(t,e){if(m._enabled){var n=i.getPooled(t,e);try{f.batchedUpdates(o,n)}finally{i.release(n)}}}};t.exports=m},function(t,e,n){"use strict";var r=n(16),i=n(22),o=n(46),a=n(78),s=n(87),u=n(30),c=n(93),l=n(8),d=n(96),p=n(9),f={Component:o.injection,Class:a.injection,DOMProperty:r.injection,EmptyComponent:s.injection,EventPluginHub:i.injection,EventEmitter:u.injection,NativeComponent:c.injection,Perf:l.injection,RootIndex:d.injection,Updates:p.injection};t.exports=f},function(t,e,n){(function(e){"use strict";var r=n(77),i=n(79),o=n(78),a=n(166),s=n(7),u=n(86),c=n(95),l=n(49),d=n(3),p=n(203),f=s.createElement,h=s.createFactory,g=s.cloneElement;"production"!==e.env.NODE_ENV&&(f=u.createElement,h=u.createFactory,g=u.cloneElement);var v={Children:{map:r.map,forEach:r.forEach,count:r.count,toArray:r.toArray,only:p},Component:i,createElement:f,cloneElement:g,isValidElement:s.isValidElement,PropTypes:c,createClass:o.createClass,createFactory:h,createMixin:function(t){return t},DOM:a,version:l,__spread:d};t.exports=v}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function r(t,e,n){m.push({parentID:t,parentNode:null,type:d.INSERT_MARKUP,markupIndex:y.push(e)-1,content:null,fromIndex:null,toIndex:n})}function i(t,e,n){m.push({parentID:t,parentNode:null,type:d.MOVE_EXISTING,markupIndex:null,content:null,fromIndex:e,toIndex:n})}function o(t,e){m.push({parentID:t,parentNode:null,type:d.REMOVE_NODE,markupIndex:null,content:null,fromIndex:e,toIndex:null})}function a(t,e){m.push({parentID:t,parentNode:null,type:d.SET_MARKUP,markupIndex:null,content:e,fromIndex:null,toIndex:null})}function s(t,e){m.push({parentID:t,parentNode:null,type:d.TEXT_CONTENT,markupIndex:null,content:e,fromIndex:null,toIndex:null})}function u(){m.length&&(l.processChildrenUpdates(m,y),c())}function c(){m.length=0,y.length=0}var l=n(46),d=n(92),p=n(13),f=n(17),h=n(162),g=n(200),v=0,m=[],y=[],x={Mixin:{_reconcilerInstantiateChildren:function(t,n,r){if("production"!==e.env.NODE_ENV&&this._currentElement)try{return p.current=this._currentElement._owner,h.instantiateChildren(t,n,r)}finally{p.current=null}return h.instantiateChildren(t,n,r)},_reconcilerUpdateChildren:function(t,n,r,i){var o;if("production"!==e.env.NODE_ENV&&this._currentElement){try{p.current=this._currentElement._owner,o=g(n)}finally{p.current=null}return h.updateChildren(t,o,r,i)}return o=g(n),h.updateChildren(t,o,r,i)},mountChildren:function(t,e,n){var r=this._reconcilerInstantiateChildren(t,e,n);this._renderedChildren=r;var i=[],o=0;for(var a in r)if(r.hasOwnProperty(a)){var s=r[a],u=this._rootNodeID+a,c=f.mountComponent(s,u,e,n);s._mountIndex=o++,i.push(c)}return i},updateTextContent:function(t){v++;var e=!0;try{var n=this._renderedChildren;h.unmountChildren(n);for(var r in n)n.hasOwnProperty(r)&&this._unmountChild(n[r]);this.setTextContent(t),e=!1}finally{v--,v||(e?c():u())}},updateMarkup:function(t){v++;var e=!0;try{var n=this._renderedChildren;h.unmountChildren(n);for(var r in n)n.hasOwnProperty(r)&&this._unmountChildByName(n[r],r);this.setMarkup(t),e=!1}finally{v--,v||(e?c():u())}},updateChildren:function(t,e,n){v++;var r=!0;try{this._updateChildren(t,e,n),r=!1}finally{v--,v||(r?c():u())}},_updateChildren:function(t,e,n){var r=this._renderedChildren,i=this._reconcilerUpdateChildren(r,t,e,n);if(this._renderedChildren=i,i||r){var o,a=0,s=0;for(o in i)if(i.hasOwnProperty(o)){var u=r&&r[o],c=i[o];u===c?(this.moveChild(u,s,a),a=Math.max(u._mountIndex,a),u._mountIndex=s):(u&&(a=Math.max(u._mountIndex,a),this._unmountChild(u)),this._mountChildByNameAtIndex(c,o,s,e,n)),s++}for(o in r)!r.hasOwnProperty(o)||i&&i.hasOwnProperty(o)||this._unmountChild(r[o])}},unmountChildren:function(){var t=this._renderedChildren;h.unmountChildren(t),this._renderedChildren=null},moveChild:function(t,e,n){t._mountIndex<n&&i(this._rootNodeID,t._mountIndex,e)},createChild:function(t,e){r(this._rootNodeID,e,t._mountIndex)},removeChild:function(t){o(this._rootNodeID,t._mountIndex)},setTextContent:function(t){s(this._rootNodeID,t)},setMarkup:function(t){a(this._rootNodeID,t)},_mountChildByNameAtIndex:function(t,e,n,r,i){var o=this._rootNodeID+e,a=f.mountComponent(t,o,r,i);t._mountIndex=n,this.createChild(t,a)},_unmountChild:function(t){this.removeChild(t),t._mountIndex=null}}};t.exports=x}).call(e,n(1))},function(t,e,n){(function(e){"use strict";var r=n(2),i={isValidOwner:function(t){return!(!t||"function"!=typeof t.attachRef||"function"!=typeof t.detachRef)},addComponentAsRefTo:function(t,n,o){i.isValidOwner(o)?void 0:"production"!==e.env.NODE_ENV?r(!1,"addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner)."):r(!1),o.attachRef(n,t)},removeComponentAsRefFrom:function(t,n,o){i.isValidOwner(o)?void 0:"production"!==e.env.NODE_ENV?r(!1,"removeComponentAsRefFrom(...): Only a ReactOwner can have refs. You might be removing a ref to a component that was not created inside a component's `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner)."):r(!1),
  o.getPublicInstance().refs[n]===t.getPublicInstance()&&o.detachRef(n)}};t.exports=i}).call(e,n(1))},function(t,e,n){"use strict";function r(t){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=i.getPooled(null),this.useCreateElement=!t&&s.useCreateElement}var i=n(42),o=n(15),a=n(30),s=n(81),u=n(90),c=n(34),l=n(3),d={initialize:u.getSelectionInformation,close:u.restoreSelection},p={initialize:function(){var t=a.isEnabled();return a.setEnabled(!1),t},close:function(t){a.setEnabled(t)}},f={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},h=[d,p,f],g={getTransactionWrappers:function(){return h},getReactMountReady:function(){return this.reactMountReady},destructor:function(){i.release(this.reactMountReady),this.reactMountReady=null}};l(r.prototype,c.Mixin,g),o.addPoolingTo(r),t.exports=r},function(t,e,n){"use strict";function r(t,e,n){"function"==typeof t?t(e.getPublicInstance()):o.addComponentAsRefTo(e,t,n)}function i(t,e,n){"function"==typeof t?t(null):o.removeComponentAsRefFrom(e,t,n)}var o=n(179),a={};a.attachRefs=function(t,e){if(null!==e&&e!==!1){var n=e.ref;null!=n&&r(n,t,e._owner)}},a.shouldUpdateRefs=function(t,e){var n=null===t||t===!1,r=null===e||e===!1;return n||r||e._owner!==t._owner||e.ref!==t.ref},a.detachRefs=function(t,e){if(null!==e&&e!==!1){var n=e.ref;null!=n&&i(n,t,e._owner)}},t.exports=a},function(t,e){"use strict";var n={isBatchingUpdates:!1,batchedUpdates:function(t){}};t.exports=n},function(t,e,n){(function(e){"use strict";function r(t){a.isValidElement(t)?void 0:"production"!==e.env.NODE_ENV?h(!1,"renderToString(): You must pass a valid ReactElement."):h(!1);var n;try{d.injection.injectBatchingStrategy(c);var r=s.createReactRootID();return n=l.getPooled(!1),n.perform(function(){var e=f(t,null),i=e.mountComponent(r,n,p);return u.addChecksumToMarkup(i)},null)}finally{l.release(n),d.injection.injectBatchingStrategy(o)}}function i(t){a.isValidElement(t)?void 0:"production"!==e.env.NODE_ENV?h(!1,"renderToStaticMarkup(): You must pass a valid ReactElement."):h(!1);var n;try{d.injection.injectBatchingStrategy(c);var r=s.createReactRootID();return n=l.getPooled(!0),n.perform(function(){var e=f(t,null);return e.mountComponent(r,n,p)},null)}finally{l.release(n),d.injection.injectBatchingStrategy(o)}}var o=n(84),a=n(7),s=n(20),u=n(91),c=n(182),l=n(184),d=n(9),p=n(21),f=n(55),h=n(2);t.exports={renderToString:r,renderToStaticMarkup:i}}).call(e,n(1))},function(t,e,n){"use strict";function r(t){this.reinitializeTransaction(),this.renderToStaticMarkup=t,this.reactMountReady=o.getPooled(null),this.useCreateElement=!1}var i=n(15),o=n(42),a=n(34),s=n(3),u=n(10),c={initialize:function(){this.reactMountReady.reset()},close:u},l=[c],d={getTransactionWrappers:function(){return l},getReactMountReady:function(){return this.reactMountReady},destructor:function(){o.release(this.reactMountReady),this.reactMountReady=null}};s(r.prototype,a.Mixin,d),i.addPoolingTo(r),t.exports=r},function(t,e,n){"use strict";var r=n(16),i=r.injection.MUST_USE_ATTRIBUTE,o={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},a={Properties:{clipPath:i,cx:i,cy:i,d:i,dx:i,dy:i,fill:i,fillOpacity:i,fontFamily:i,fontSize:i,fx:i,fy:i,gradientTransform:i,gradientUnits:i,markerEnd:i,markerMid:i,markerStart:i,offset:i,opacity:i,patternContentUnits:i,patternUnits:i,points:i,preserveAspectRatio:i,r:i,rx:i,ry:i,spreadMethod:i,stopColor:i,stopOpacity:i,stroke:i,strokeDasharray:i,strokeLinecap:i,strokeOpacity:i,strokeWidth:i,textAnchor:i,transform:i,version:i,viewBox:i,x1:i,x2:i,x:i,xlinkActuate:i,xlinkArcrole:i,xlinkHref:i,xlinkRole:i,xlinkShow:i,xlinkTitle:i,xlinkType:i,xmlBase:i,xmlLang:i,xmlSpace:i,y1:i,y2:i,y:i},DOMAttributeNamespaces:{xlinkActuate:o.xlink,xlinkArcrole:o.xlink,xlinkHref:o.xlink,xlinkRole:o.xlink,xlinkShow:o.xlink,xlinkTitle:o.xlink,xlinkType:o.xlink,xmlBase:o.xml,xmlLang:o.xml,xmlSpace:o.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,n){"use strict";function r(t){if("selectionStart"in t&&u.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 i(t,e){if(_||null==m||m!==l())return null;var n=r(m);if(!x||!f(x,n)){x=n;var i=c.getPooled(v.select,y,t,e);return i.type="select",i.target=m,a.accumulateTwoPhaseDispatches(i),i}return null}var o=n(12),a=n(23),s=n(5),u=n(90),c=n(18),l=n(69),d=n(101),p=n(14),f=n(71),h=o.topLevelTypes,g=s.canUseDOM&&"documentMode"in document&&document.documentMode<=11,v={select:{phasedRegistrationNames:{bubbled:p({onSelect:null}),captured:p({onSelectCapture:null})},dependencies:[h.topBlur,h.topContextMenu,h.topFocus,h.topKeyDown,h.topMouseDown,h.topMouseUp,h.topSelectionChange]}},m=null,y=null,x=null,_=!1,b=!1,E=p({onSelect:null}),w={eventTypes:v,extractEvents:function(t,e,n,r,o){if(!b)return null;switch(t){case h.topFocus:(d(e)||"true"===e.contentEditable)&&(m=e,y=n,x=null);break;case h.topBlur:m=null,y=null,x=null;break;case h.topMouseDown:_=!0;break;case h.topContextMenu:case h.topMouseUp:return _=!1,i(r,o);case h.topSelectionChange:if(g)break;case h.topKeyDown:case h.topKeyUp:return i(r,o)}return null},didPutListener:function(t,e,n){e===E&&(b=!0)}};t.exports=w},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){(function(e){"use strict";var r=n(12),i=n(66),o=n(23),a=n(6),s=n(189),u=n(18),c=n(192),l=n(194),d=n(33),p=n(191),f=n(195),h=n(25),g=n(196),v=n(10),m=n(51),y=n(2),x=n(14),_=r.topLevelTypes,b={abort:{phasedRegistrationNames:{bubbled:x({onAbort:!0}),captured:x({onAbortCapture:!0})}},blur:{phasedRegistrationNames:{bubbled:x({onBlur:!0}),captured:x({onBlurCapture:!0})}},canPlay:{phasedRegistrationNames:{bubbled:x({onCanPlay:!0}),captured:x({onCanPlayCapture:!0})}},canPlayThrough:{phasedRegistrationNames:{bubbled:x({onCanPlayThrough:!0}),captured:x({onCanPlayThroughCapture:!0})}},click:{phasedRegistrationNames:{bubbled:x({onClick:!0}),captured:x({onClickCapture:!0})}},contextMenu:{phasedRegistrationNames:{bubbled:x({onContextMenu:!0}),captured:x({onContextMenuCapture:!0})}},copy:{phasedRegistrationNames:{bubbled:x({onCopy:!0}),captured:x({onCopyCapture:!0})}},cut:{phasedRegistrationNames:{bubbled:x({onCut:!0}),captured:x({onCutCapture:!0})}},doubleClick:{phasedRegistrationNames:{bubbled:x({onDoubleClick:!0}),captured:x({onDoubleClickCapture:!0})}},drag:{phasedRegistrationNames:{bubbled:x({onDrag:!0}),captured:x({onDragCapture:!0})}},dragEnd:{phasedRegistrationNames:{bubbled:x({onDragEnd:!0}),captured:x({onDragEndCapture:!0})}},dragEnter:{phasedRegistrationNames:{bubbled:x({onDragEnter:!0}),captured:x({onDragEnterCapture:!0})}},dragExit:{phasedRegistrationNames:{bubbled:x({onDragExit:!0}),captured:x({onDragExitCapture:!0})}},dragLeave:{phasedRegistrationNames:{bubbled:x({onDragLeave:!0}),captured:x({onDragLeaveCapture:!0})}},dragOver:{phasedRegistrationNames:{bubbled:x({onDragOver:!0}),captured:x({onDragOverCapture:!0})}},dragStart:{phasedRegistrationNames:{bubbled:x({onDragStart:!0}),captured:x({onDragStartCapture:!0})}},drop:{phasedRegistrationNames:{bubbled:x({onDrop:!0}),captured:x({onDropCapture:!0})}},durationChange:{phasedRegistrationNames:{bubbled:x({onDurationChange:!0}),captured:x({onDurationChangeCapture:!0})}},emptied:{phasedRegistrationNames:{bubbled:x({onEmptied:!0}),captured:x({onEmptiedCapture:!0})}},encrypted:{phasedRegistrationNames:{bubbled:x({onEncrypted:!0}),captured:x({onEncryptedCapture:!0})}},ended:{phasedRegistrationNames:{bubbled:x({onEnded:!0}),captured:x({onEndedCapture:!0})}},error:{phasedRegistrationNames:{bubbled:x({onError:!0}),captured:x({onErrorCapture:!0})}},focus:{phasedRegistrationNames:{bubbled:x({onFocus:!0}),captured:x({onFocusCapture:!0})}},input:{phasedRegistrationNames:{bubbled:x({onInput:!0}),captured:x({onInputCapture:!0})}},keyDown:{phasedRegistrationNames:{bubbled:x({onKeyDown:!0}),captured:x({onKeyDownCapture:!0})}},keyPress:{phasedRegistrationNames:{bubbled:x({onKeyPress:!0}),captured:x({onKeyPressCapture:!0})}},keyUp:{phasedRegistrationNames:{bubbled:x({onKeyUp:!0}),captured:x({onKeyUpCapture:!0})}},load:{phasedRegistrationNames:{bubbled:x({onLoad:!0}),captured:x({onLoadCapture:!0})}},loadedData:{phasedRegistrationNames:{bubbled:x({onLoadedData:!0}),captured:x({onLoadedDataCapture:!0})}},loadedMetadata:{phasedRegistrationNames:{bubbled:x({onLoadedMetadata:!0}),captured:x({onLoadedMetadataCapture:!0})}},loadStart:{phasedRegistrationNames:{bubbled:x({onLoadStart:!0}),captured:x({onLoadStartCapture:!0})}},mouseDown:{phasedRegistrationNames:{bubbled:x({onMouseDown:!0}),captured:x({onMouseDownCapture:!0})}},mouseMove:{phasedRegistrationNames:{bubbled:x({onMouseMove:!0}),captured:x({onMouseMoveCapture:!0})}},mouseOut:{phasedRegistrationNames:{bubbled:x({onMouseOut:!0}),captured:x({onMouseOutCapture:!0})}},mouseOver:{phasedRegistrationNames:{bubbled:x({onMouseOver:!0}),captured:x({onMouseOverCapture:!0})}},mouseUp:{phasedRegistrationNames:{bubbled:x({onMouseUp:!0}),captured:x({onMouseUpCapture:!0})}},paste:{phasedRegistrationNames:{bubbled:x({onPaste:!0}),captured:x({onPasteCapture:!0})}},pause:{phasedRegistrationNames:{bubbled:x({onPause:!0}),captured:x({onPauseCapture:!0})}},play:{phasedRegistrationNames:{bubbled:x({onPlay:!0}),captured:x({onPlayCapture:!0})}},playing:{phasedRegistrationNames:{bubbled:x({onPlaying:!0}),captured:x({onPlayingCapture:!0})}},progress:{phasedRegistrationNames:{bubbled:x({onProgress:!0}),captured:x({onProgressCapture:!0})}},rateChange:{phasedRegistrationNames:{bubbled:x({onRateChange:!0}),captured:x({onRateChangeCapture:!0})}},reset:{phasedRegistrationNames:{bubbled:x({onReset:!0}),captured:x({onResetCapture:!0})}},scroll:{phasedRegistrationNames:{bubbled:x({onScroll:!0}),captured:x({onScrollCapture:!0})}},seeked:{phasedRegistrationNames:{bubbled:x({onSeeked:!0}),captured:x({onSeekedCapture:!0})}},seeking:{phasedRegistrationNames:{bubbled:x({onSeeking:!0}),captured:x({onSeekingCapture:!0})}},stalled:{phasedRegistrationNames:{bubbled:x({onStalled:!0}),captured:x({onStalledCapture:!0})}},submit:{phasedRegistrationNames:{bubbled:x({onSubmit:!0}),captured:x({onSubmitCapture:!0})}},suspend:{phasedRegistrationNames:{bubbled:x({onSuspend:!0}),captured:x({onSuspendCapture:!0})}},timeUpdate:{phasedRegistrationNames:{bubbled:x({onTimeUpdate:!0}),captured:x({onTimeUpdateCapture:!0})}},touchCancel:{phasedRegistrationNames:{bubbled:x({onTouchCancel:!0}),captured:x({onTouchCancelCapture:!0})}},touchEnd:{phasedRegistrationNames:{bubbled:x({onTouchEnd:!0}),captured:x({onTouchEndCapture:!0})}},touchMove:{phasedRegistrationNames:{bubbled:x({onTouchMove:!0}),captured:x({onTouchMoveCapture:!0})}},touchStart:{phasedRegistrationNames:{bubbled:x({onTouchStart:!0}),captured:x({onTouchStartCapture:!0})}},volumeChange:{phasedRegistrationNames:{bubbled:x({onVolumeChange:!0}),captured:x({onVolumeChangeCapture:!0})}},waiting:{phasedRegistrationNames:{bubbled:x({onWaiting:!0}),captured:x({onWaitingCapture:!0})}},wheel:{phasedRegistrationNames:{bubbled:x({onWheel:!0}),captured:x({onWheelCapture:!0})}}},E={topAbort:b.abort,topBlur:b.blur,topCanPlay:b.canPlay,topCanPlayThrough:b.canPlayThrough,topClick:b.click,topContextMenu:b.contextMenu,topCopy:b.copy,topCut:b.cut,topDoubleClick:b.doubleClick,topDrag:b.drag,topDragEnd:b.dragEnd,topDragEnter:b.dragEnter,topDragExit:b.dragExit,topDragLeave:b.dragLeave,topDragOver:b.dragOver,topDragStart:b.dragStart,topDrop:b.drop,topDurationChange:b.durationChange,topEmptied:b.emptied,topEncrypted:b.encrypted,topEnded:b.ended,topError:b.error,topFocus:b.focus,topInput:b.input,topKeyDown:b.keyDown,topKeyPress:b.keyPress,topKeyUp:b.keyUp,topLoad:b.load,topLoadedData:b.loadedData,topLoadedMetadata:b.loadedMetadata,topLoadStart:b.loadStart,topMouseDown:b.mouseDown,topMouseMove:b.mouseMove,topMouseOut:b.mouseOut,topMouseOver:b.mouseOver,topMouseUp:b.mouseUp,topPaste:b.paste,topPause:b.pause,topPlay:b.play,topPlaying:b.playing,topProgress:b.progress,topRateChange:b.rateChange,topReset:b.reset,topScroll:b.scroll,topSeeked:b.seeked,topSeeking:b.seeking,topStalled:b.stalled,topSubmit:b.submit,topSuspend:b.suspend,topTimeUpdate:b.timeUpdate,topTouchCancel:b.touchCancel,topTouchEnd:b.touchEnd,topTouchMove:b.touchMove,topTouchStart:b.touchStart,topVolumeChange:b.volumeChange,topWaiting:b.waiting,topWheel:b.wheel};for(var w in E)E[w].dependencies=[w];var N=x({onClick:null}),C={},T={eventTypes:b,extractEvents:function(t,n,r,i,a){var v=E[t];if(!v)return null;var x;switch(t){case _.topAbort:case _.topCanPlay:case _.topCanPlayThrough:case _.topDurationChange:case _.topEmptied:case _.topEncrypted:case _.topEnded:case _.topError:case _.topInput:case _.topLoad:case _.topLoadedData:case _.topLoadedMetadata:case _.topLoadStart:case _.topPause:case _.topPlay:case _.topPlaying:case _.topProgress:case _.topRateChange:case _.topReset:case _.topSeeked:case _.topSeeking:case _.topStalled:case _.topSubmit:case _.topSuspend:case _.topTimeUpdate:case _.topVolumeChange:case _.topWaiting:x=u;break;case _.topKeyPress:if(0===m(i))return null;case _.topKeyDown:case _.topKeyUp:x=l;break;case _.topBlur:case _.topFocus:x=c;break;case _.topClick:if(2===i.button)return null;case _.topContextMenu:case _.topDoubleClick:case _.topMouseDown:case _.topMouseMove:case _.topMouseOut:case _.topMouseOver:case _.topMouseUp:x=d;break;case _.topDrag:case _.topDragEnd:case _.topDragEnter:case _.topDragExit:case _.topDragLeave:case _.topDragOver:case _.topDragStart:case _.topDrop:x=p;break;case _.topTouchCancel:case _.topTouchEnd:case _.topTouchMove:case _.topTouchStart:x=f;break;case _.topScroll:x=h;break;case _.topWheel:x=g;break;case _.topCopy:case _.topCut:case _.topPaste:x=s}x?void 0:"production"!==e.env.NODE_ENV?y(!1,"SimpleEventPlugin: Unhandled event type, `%s`.",t):y(!1);var b=x.getPooled(v,r,i,a);return o.accumulateTwoPhaseDispatches(b),b},didPutListener:function(t,e,n){if(e===N){var r=a.getNode(t);C[t]||(C[t]=i.listen(r,"click",v))}},willDeleteListener:function(t,e){e===N&&(C[t].remove(),delete C[t])}};t.exports=T}).call(e,n(1))},function(t,e,n){"use strict";function r(t,e,n,r){i.call(this,t,e,n,r)}var i=n(18),o={clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}};i.augmentClass(r,o),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){i.call(this,t,e,n,r)}var i=n(18),o={data:null};i.augmentClass(r,o),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){i.call(this,t,e,n,r)}var i=n(33),o={dataTransfer:null};i.augmentClass(r,o),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){i.call(this,t,e,n,r)}var i=n(25),o={relatedTarget:null};i.augmentClass(r,o),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){i.call(this,t,e,n,r)}var i=n(18),o={data:null};i.augmentClass(r,o),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){i.call(this,t,e,n,r)}var i=n(25),o=n(51),a=n(201),s=n(52),u={key:a,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:s,charCode:function(t){return"keypress"===t.type?o(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?o(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}};i.augmentClass(r,u),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){i.call(this,t,e,n,r)}var i=n(25),o=n(52),a={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:o};i.augmentClass(r,a),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){i.call(this,t,e,n,r)}var i=n(33),o={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};i.augmentClass(r,o),t.exports=r},function(t,e){"use strict";function n(t){for(var e=1,n=0,i=0,o=t.length,a=-4&o;a>i;){for(;i<Math.min(i+4096,a);i+=4)n+=(e+=t.charCodeAt(i))+(e+=t.charCodeAt(i+1))+(e+=t.charCodeAt(i+2))+(e+=t.charCodeAt(i+3));e%=r,n%=r}for(;o>i;i++)n+=e+=t.charCodeAt(i);return e%=r,n%=r,e|n<<16}var r=65521;t.exports=n},function(t,e,n){"use strict";function r(t,e){var n=null==e||"boolean"==typeof e||""===e;if(n)return"";var r=isNaN(e);return r||0===e||o.hasOwnProperty(t)&&o[t]?""+e:("string"==typeof e&&(e=e.trim()),e+"px")}var i=n(74),o=i.isUnitlessNumber;t.exports=r},function(t,e,n){(function(e){"use strict";function r(t,n,r,a,s){var u=!1;if("production"!==e.env.NODE_ENV){var c=function(){return"production"!==e.env.NODE_ENV?o(u,"React.%s is deprecated. Please use %s.%s from require('%s') instead.",t,n,t,r):void 0,u=!0,s.apply(a,arguments)};return i(c,s)}return s}var i=n(3),o=n(4);t.exports=r}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function r(t,n,r){var i=t,o=void 0===i[r];"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?a(o,"flattenChildren(...): Encountered two children with the same key, `%s`. Child keys must be unique; when two children share a key, only the first child will be used.",r):void 0),o&&null!=n&&(i[r]=n)}function i(t){if(null==t)return t;var e={};return o(t,r,e),e}var o=n(59),a=n(4);t.exports=i}).call(e,n(1))},function(t,e,n){"use strict";function r(t){if(t.key){var e=o[t.key]||t.key;if("Unidentified"!==e)return e}if("keypress"===t.type){var n=i(t);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===t.type||"keyup"===t.type?a[t.keyCode]||"Unidentified":""}var i=n(51),o={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){"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 i(t,e){for(var i=n(t),o=0,a=0;i;){if(3===i.nodeType){if(a=o+i.textContent.length,e>=o&&a>=e)return{node:i,offset:e-o};o=a}i=n(r(i))}}t.exports=i},function(t,e,n){(function(e){"use strict";function r(t){return i.isValidElement(t)?void 0:"production"!==e.env.NODE_ENV?o(!1,"onlyChild must be passed a children with exactly one child."):o(!1),t}var i=n(7),o=n(2);t.exports=r}).call(e,n(1))},function(t,e,n){"use strict";function r(t){return'"'+i(t)+'"'}var i=n(36);t.exports=r},function(t,e,n){"use strict";var r=n(6);t.exports=r.renderSubtreeIntoContainer},function(t,e,n){function r(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r=i(t),o=r.source,c=r.id,l=r.path,d=u[c]&&l in u[c].nsps,p=e.forceNew||e["force new connection"]||!1===e.multiplex||d;return p?(s("ignoring socket cache for %s",o),n=a(o,e)):(u[c]||(s("new io instance for %s",o),u[c]=a(o,e)),n=u[c]),n.socket(r.path)}var i=n(207),o=n(61),a=n(103),s=n(11)("socket.io-client");t.exports=e=r;var u=e.managers={};e.protocol=o.protocol,e.connect=r,e.Manager=n(103),e.Socket=n(105)},function(t,e,n){(function(e){function r(t,n){var r=t,n=n||e.location;null==t&&(t=n.protocol+"//"+n.host),"string"==typeof t&&("/"==t.charAt(0)&&(t="/"==t.charAt(1)?n.protocol+t:n.host+t),/^(https?|wss?):\/\//.test(t)||(o("protocol-less url %s",t),t="undefined"!=typeof n?n.protocol+"//"+t:"https://"+t),o("parse %s",t),r=i(t)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";var a=-1!==r.host.indexOf(":"),s=a?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+s+":"+r.port,r.href=r.protocol+"://"+s+(n&&n.port==r.port?"":":"+r.port),r}var i=n(73),o=n(11)("socket.io-client:url");t.exports=r}).call(e,function(){return this}())},function(t,e,n){(function(t){var r=n(29),i=n(107);e.deconstructPacket=function(t){function e(t){if(!t)return t;if(i(t)){var o={_placeholder:!0,num:n.length};return n.push(t),o}if(r(t)){for(var a=new Array(t.length),s=0;s<t.length;s++)a[s]=e(t[s]);return a}if("object"==typeof t&&!(t instanceof Date)){var a={};for(var u in t)a[u]=e(t[u]);return a}return t}var n=[],o=t.data,a=t;return a.data=e(o),a.attachments=n.length,{packet:a,buffers:n}},e.reconstructPacket=function(t,e){function n(t){if(t&&t._placeholder){var i=e[t.num];return i}if(r(t)){for(var o=0;o<t.length;o++)t[o]=n(t[o]);return t}if(t&&"object"==typeof t){for(var a in t)t[a]=n(t[a]);return t}return t}return t.data=n(t.data),t.attachments=void 0,t},e.removeBlobs=function(e,n){function o(e,u,c){if(!e)return e;if(t.Blob&&e instanceof Blob||t.File&&e instanceof File){a++;var l=new FileReader;l.onload=function(){c?c[u]=this.result:s=this.result,--a||n(s)},l.readAsArrayBuffer(e)}else if(r(e))for(var d=0;d<e.length;d++)o(e[d],d,e);else if(e&&"object"==typeof e&&!i(e))for(var p in e)o(e[p],p,e)}var a=0,s=e;o(s),a||n(s)}}).call(e,function(){return this}())},function(t,e,n){var r;(function(t,i){(function(){function o(t,e){function n(t){if(n[t]!==v)return n[t];var o;if("bug-string-char-index"==t)o="a"!="a"[0];else if("json"==t)o=n("json-stringify")&&n("json-parse");else{var a,s='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==t){var c=e.stringify,l="function"==typeof c&&x;if(l){(a=function(){return 1}).toJSON=a;try{l="0"===c(0)&&"0"===c(new r)&&'""'==c(new i)&&c(y)===v&&c(v)===v&&c()===v&&"1"===c(a)&&"[1]"==c([a])&&"[null]"==c([v])&&"null"==c(null)&&"[null,null,null]"==c([v,y,null])&&c({a:[a,!0,!1,null,"\x00\b\n\f\r	"]})==s&&"1"===c(null,a)&&"[\n 1,\n 2\n]"==c([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==c(new u(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==c(new u(864e13))&&'"-000001-01-01T00:00:00.000Z"'==c(new u(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==c(new u(-1))}catch(d){l=!1}}o=l}if("json-parse"==t){var p=e.parse;if("function"==typeof p)try{if(0===p("0")&&!p(!1)){a=p(s);var f=5==a.a.length&&1===a.a[0];if(f){try{f=!p('"	"')}catch(d){}if(f)try{f=1!==p("01")}catch(d){}if(f)try{f=1!==p("1.")}catch(d){}}}}catch(d){f=!1}o=f}}return n[t]=!!o}t||(t=c.Object()),e||(e=c.Object());var r=t.Number||c.Number,i=t.String||c.String,a=t.Object||c.Object,u=t.Date||c.Date,l=t.SyntaxError||c.SyntaxError,d=t.TypeError||c.TypeError,p=t.Math||c.Math,f=t.JSON||c.JSON;"object"==typeof f&&f&&(e.stringify=f.stringify,e.parse=f.parse);var h,g,v,m=a.prototype,y=m.toString,x=new u(-0xc782b5b800cec);try{x=-109252==x.getUTCFullYear()&&0===x.getUTCMonth()&&1===x.getUTCDate()&&10==x.getUTCHours()&&37==x.getUTCMinutes()&&6==x.getUTCSeconds()&&708==x.getUTCMilliseconds()}catch(_){}if(!n("json")){var b="[object Function]",E="[object Date]",w="[object Number]",N="[object String]",C="[object Array]",T="[object Boolean]",D=n("bug-string-char-index");if(!x)var M=p.floor,A=[0,31,59,90,120,151,181,212,243,273,304,334],k=function(t,e){return A[e]+365*(t-1970)+M((t-1969+(e=+(e>1)))/4)-M((t-1901+e)/100)+M((t-1601+e)/400)};if((h=m.hasOwnProperty)||(h=function(t){var e,n={};return(n.__proto__=null,n.__proto__={toString:1},n).toString!=y?h=function(t){var e=this.__proto__,n=t in(this.__proto__=null,this);return this.__proto__=e,n}:(e=n.constructor,h=function(t){var n=(this.constructor||e).prototype;return t in this&&!(t in n&&this[t]===n[t])}),n=null,h.call(this,t)}),g=function(t,e){var n,r,i,o=0;(n=function(){this.valueOf=0}).prototype.valueOf=0,r=new n;for(i in r)h.call(r,i)&&o++;return n=r=null,o?g=2==o?function(t,e){var n,r={},i=y.call(t)==b;for(n in t)i&&"prototype"==n||h.call(r,n)||!(r[n]=1)||!h.call(t,n)||e(n)}:function(t,e){var n,r,i=y.call(t)==b;for(n in t)i&&"prototype"==n||!h.call(t,n)||(r="constructor"===n)||e(n);(r||h.call(t,n="constructor"))&&e(n)}:(r=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],g=function(t,e){var n,i,o=y.call(t)==b,a=!o&&"function"!=typeof t.constructor&&s[typeof t.hasOwnProperty]&&t.hasOwnProperty||h;for(n in t)o&&"prototype"==n||!a.call(t,n)||e(n);for(i=r.length;n=r[--i];a.call(t,n)&&e(n));}),g(t,e)},!n("json-stringify")){var S={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},O="000000",R=function(t,e){return(O+(e||0)).slice(-t)},I="\\u00",L=function(t){for(var e='"',n=0,r=t.length,i=!D||r>10,o=i&&(D?t.split(""):t);r>n;n++){var a=t.charCodeAt(n);switch(a){case 8:case 9:case 10:case 12:case 13:case 34:case 92:e+=S[a];break;default:if(32>a){e+=I+R(2,a.toString(16));break}e+=i?o[n]:t.charAt(n)}}return e+'"'},P=function(t,e,n,r,i,o,a){var s,u,c,l,p,f,m,x,_,b,D,A,S,O,I,V;try{s=e[t]}catch(F){}if("object"==typeof s&&s)if(u=y.call(s),u!=E||h.call(s,"toJSON"))"function"==typeof s.toJSON&&(u!=w&&u!=N&&u!=C||h.call(s,"toJSON"))&&(s=s.toJSON(t));else if(s>-1/0&&1/0>s){if(k){for(p=M(s/864e5),c=M(p/365.2425)+1970-1;k(c+1,0)<=p;c++);for(l=M((p-k(c,0))/30.42);k(c,l+1)<=p;l++);p=1+p-k(c,l),f=(s%864e5+864e5)%864e5,m=M(f/36e5)%24,x=M(f/6e4)%60,_=M(f/1e3)%60,b=f%1e3}else c=s.getUTCFullYear(),l=s.getUTCMonth(),p=s.getUTCDate(),m=s.getUTCHours(),x=s.getUTCMinutes(),_=s.getUTCSeconds(),b=s.getUTCMilliseconds();s=(0>=c||c>=1e4?(0>c?"-":"+")+R(6,0>c?-c:c):R(4,c))+"-"+R(2,l+1)+"-"+R(2,p)+"T"+R(2,m)+":"+R(2,x)+":"+R(2,_)+"."+R(3,b)+"Z"}else s=null;if(n&&(s=n.call(e,t,s)),null===s)return"null";if(u=y.call(s),u==T)return""+s;if(u==w)return s>-1/0&&1/0>s?""+s:"null";if(u==N)return L(""+s);if("object"==typeof s){for(O=a.length;O--;)if(a[O]===s)throw d();if(a.push(s),D=[],I=o,o+=i,u==C){for(S=0,O=s.length;O>S;S++)A=P(S,s,n,r,i,o,a),D.push(A===v?"null":A);V=D.length?i?"[\n"+o+D.join(",\n"+o)+"\n"+I+"]":"["+D.join(",")+"]":"[]"}else g(r||s,function(t){var e=P(t,s,n,r,i,o,a);e!==v&&D.push(L(t)+":"+(i?" ":"")+e)}),V=D.length?i?"{\n"+o+D.join(",\n"+o)+"\n"+I+"}":"{"+D.join(",")+"}":"{}";return a.pop(),V}};e.stringify=function(t,e,n){var r,i,o,a;if(s[typeof e]&&e)if((a=y.call(e))==b)i=e;else if(a==C){o={};for(var u,c=0,l=e.length;l>c;u=e[c++],a=y.call(u),(a==N||a==w)&&(o[u]=1));}if(n)if((a=y.call(n))==w){if((n-=n%1)>0)for(r="",n>10&&(n=10);r.length<n;r+=" ");}else a==N&&(r=n.length<=10?n:n.slice(0,10));return P("",(u={},u[""]=t,u),i,o,r,"",[])}}if(!n("json-parse")){var V,F,B=i.fromCharCode,U={92:"\\",34:'"',47:"/",98:"\b",116:"	",110:"\n",102:"\f",114:"\r"},j=function(){throw V=F=null,l()},X=function(){for(var t,e,n,r,i,o=F,a=o.length;a>V;)switch(i=o.charCodeAt(V)){case 9:case 10:case 13:case 32:V++;break;case 123:case 125:case 91:case 93:case 58:case 44:return t=D?o.charAt(V):o[V],V++,t;case 34:for(t="@",V++;a>V;)if(i=o.charCodeAt(V),32>i)j();else if(92==i)switch(i=o.charCodeAt(++V)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:t+=U[i],V++;break;case 117:for(e=++V,n=V+4;n>V;V++)i=o.charCodeAt(V),i>=48&&57>=i||i>=97&&102>=i||i>=65&&70>=i||j();t+=B("0x"+o.slice(e,V));break;default:j()}else{if(34==i)break;for(i=o.charCodeAt(V),e=V;i>=32&&92!=i&&34!=i;)i=o.charCodeAt(++V);t+=o.slice(e,V)}if(34==o.charCodeAt(V))return V++,t;j();default:if(e=V,45==i&&(r=!0,i=o.charCodeAt(++V)),i>=48&&57>=i){for(48==i&&(i=o.charCodeAt(V+1),i>=48&&57>=i)&&j(),r=!1;a>V&&(i=o.charCodeAt(V),i>=48&&57>=i);V++);if(46==o.charCodeAt(V)){for(n=++V;a>n&&(i=o.charCodeAt(n),i>=48&&57>=i);n++);n==V&&j(),V=n}if(i=o.charCodeAt(V),101==i||69==i){for(i=o.charCodeAt(++V),(43==i||45==i)&&V++,n=V;a>n&&(i=o.charCodeAt(n),i>=48&&57>=i);n++);n==V&&j(),V=n}return+o.slice(e,V)}if(r&&j(),"true"==o.slice(V,V+4))return V+=4,!0;if("false"==o.slice(V,V+5))return V+=5,!1;if("null"==o.slice(V,V+4))return V+=4,null;j()}return"$"},z=function(t){var e,n;if("$"==t&&j(),"string"==typeof t){if("@"==(D?t.charAt(0):t[0]))return t.slice(1);if("["==t){for(e=[];t=X(),"]"!=t;n||(n=!0))n&&(","==t?(t=X(),"]"==t&&j()):j()),","==t&&j(),e.push(z(t));return e}if("{"==t){for(e={};t=X(),"}"!=t;n||(n=!0))n&&(","==t?(t=X(),"}"==t&&j()):j()),(","==t||"string"!=typeof t||"@"!=(D?t.charAt(0):t[0])||":"!=X())&&j(),e[t.slice(1)]=z(X());return e}j()}return t},Y=function(t,e,n){var r=q(t,e,n);r===v?delete t[e]:t[e]=r},q=function(t,e,n){var r,i=t[e];if("object"==typeof i&&i)if(y.call(i)==C)for(r=i.length;r--;)Y(i,r,n);else g(i,function(t){Y(i,t,n)});return n.call(t,e,i)};e.parse=function(t,e){var n,r;return V=0,F=""+t,n=z(X()),"$"!=X()&&j(),V=F=null,e&&y.call(e)==b?q((r={},r[""]=n,r),"",e):n}}}return e.runInContext=o,e}var a=n(214),s={"function":!0,object:!0},u=s[typeof e]&&e&&!e.nodeType&&e,c=s[typeof window]&&window||this,l=u&&s[typeof t]&&t&&!t.nodeType&&"object"==typeof i&&i;if(!l||l.global!==l&&l.window!==l&&l.self!==l||(c=l),u&&!a)o(c,u);else{var d=c.JSON,p=c.JSON3,f=!1,h=o(c,c.JSON3={noConflict:function(){return f||(f=!0,c.JSON=d,c.JSON3=p,d=p=null),h}});c.JSON={parse:h.parse,stringify:h.stringify}}a&&(r=function(){return h}.call(e,n,e,t),!(void 0!==r&&(t.exports=r)))}).call(this)}).call(e,n(108)(t),function(){return this}())},function(t,e,n){function r(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=f[r.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](r.parts[o]);for(;o<r.parts.length;o++)i.parts.push(c(r.parts[o],e))}else{for(var a=[],o=0;o<r.parts.length;o++)a.push(c(r.parts[o],e));f[r.id]={id:r.id,refs:1,parts:a}}}}function i(t){for(var e=[],n={},r=0;r<t.length;r++){var i=t[r],o=i[0],a=i[1],s=i[2],u=i[3],c={css:a,media:s,sourceMap:u};n[o]?n[o].parts.push(c):e.push(n[o]={id:o,parts:[c]})}return e}function o(t,e){var n=v(),r=x[x.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),x.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(e)}}function a(t){t.parentNode.removeChild(t);var e=x.indexOf(t);e>=0&&x.splice(e,1)}function s(t){var e=document.createElement("style");return e.type="text/css",o(t,e),e}function u(t){var e=document.createElement("link");return e.rel="stylesheet",o(t,e),e}function c(t,e){var n,r,i;if(e.singleton){var o=y++;n=m||(m=s(e)),r=l.bind(null,n,o,!1),i=l.bind(null,n,o,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=u(e),r=p.bind(null,n),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(e),r=d.bind(null,n),i=function(){a(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}function l(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=_(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function d(t,e){var n=e.css,r=e.media;e.sourceMap;
  if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function p(t,e){var n=e.css,r=(e.media,e.sourceMap);r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var i=new Blob([n],{type:"text/css"}),o=t.href;t.href=URL.createObjectURL(i),o&&URL.revokeObjectURL(o)}var f={},h=function(t){var e;return function(){return"undefined"==typeof e&&(e=t.apply(this,arguments)),e}},g=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),v=h(function(){return document.head||document.getElementsByTagName("head")[0]}),m=null,y=0,x=[];t.exports=function(t,e){e=e||{},"undefined"==typeof e.singleton&&(e.singleton=g()),"undefined"==typeof e.insertAt&&(e.insertAt="bottom");var n=i(t);return r(n,e),function(t){for(var o=[],a=0;a<n.length;a++){var s=n[a],u=f[s.id];u.refs--,o.push(u)}if(t){var c=i(t);r(c,e)}for(var a=0;a<o.length;a++){var u=o[a];if(0===u.refs){for(var l=0;l<u.parts.length;l++)u.parts[l]();delete f[u.id]}}}};var _=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e,n){var r=n(120);"string"==typeof r&&(r=[[t.id,r,""]]);n(210)(r,{});r.locals&&(t.exports=r.locals)},function(t,e){function n(t,e){var n=[];e=e||0;for(var r=e||0;r<t.length;r++)n[r-e]=t[r];return n}t.exports=n},function(t,e,n){var r;(function(t,i){!function(o){function a(t){for(var e,n,r=[],i=0,o=t.length;o>i;)e=t.charCodeAt(i++),e>=55296&&56319>=e&&o>i?(n=t.charCodeAt(i++),56320==(64512&n)?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--)):r.push(e);return r}function s(t){for(var e,n=t.length,r=-1,i="";++r<n;)e=t[r],e>65535&&(e-=65536,i+=_(e>>>10&1023|55296),e=56320|1023&e),i+=_(e);return i}function u(t){if(t>=55296&&57343>=t)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function c(t,e){return _(t>>e&63|128)}function l(t){if(0==(4294967168&t))return _(t);var e="";return 0==(4294965248&t)?e=_(t>>6&31|192):0==(4294901760&t)?(u(t),e=_(t>>12&15|224),e+=c(t,6)):0==(4292870144&t)&&(e=_(t>>18&7|240),e+=c(t,12),e+=c(t,6)),e+=_(63&t|128)}function d(t){for(var e,n=a(t),r=n.length,i=-1,o="";++i<r;)e=n[i],o+=l(e);return o}function p(){if(x>=y)throw Error("Invalid byte index");var t=255&m[x];if(x++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function f(){var t,e,n,r,i;if(x>y)throw Error("Invalid byte index");if(x==y)return!1;if(t=255&m[x],x++,0==(128&t))return t;if(192==(224&t)){var e=p();if(i=(31&t)<<6|e,i>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&t)){if(e=p(),n=p(),i=(15&t)<<12|e<<6|n,i>=2048)return u(i),i;throw Error("Invalid continuation byte")}if(240==(248&t)&&(e=p(),n=p(),r=p(),i=(15&t)<<18|e<<12|n<<6|r,i>=65536&&1114111>=i))return i;throw Error("Invalid UTF-8 detected")}function h(t){m=a(t),y=m.length,x=0;for(var e,n=[];(e=f())!==!1;)n.push(e);return s(n)}var g="object"==typeof e&&e,v=("object"==typeof t&&t&&t.exports==g&&t,"object"==typeof i&&i);(v.global===v||v.window===v)&&(o=v);var m,y,x,_=String.fromCharCode,b={version:"2.0.0",encode:d,decode:h};r=function(){return b}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}(this)}).call(e,n(108)(t),function(){return this}())},function(t,e){(function(e){t.exports=e}).call(e,{})},function(t,e){}]);
  //# sourceMappingURL=bundle.js.map