diff --git a/README.md b/README.md index c96c1726e..e195d2915 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -# react-d3-graph · [![Build Status](https://travis-ci.org/danielcaldas/react-d3-graph.svg?branch=master)](https://travis-ci.org/danielcaldas/react-d3-graph) [![npm version](https://img.shields.io/badge/npm-v1.0.0-blue.svg)](https://www.npmjs.com/package/react-d3-graph) [![npm stats](https://img.shields.io/badge/downloads-2k-brightgreen.svg)](https://npm-stat.com/charts.html?package=react-d3-graph&from=2017-04-25&to=2018-02-11) [![probot enabled](https://img.shields.io/badge/probot:stale-enabled-yellow.svg)](https://probot.github.io/) [![trello](https://img.shields.io/badge/trello-board-blue.svg)](https://trello.com/b/KrnmFXha/react-d3-graph) -:book: [1.0.0](https://danielcaldas.github.io/react-d3-graph/docs/index.html) | [0.4.0](https://danielcaldas.github.io/react-d3-graph/docs/0.4.0.html) | [0.3.0](https://danielcaldas.github.io/react-d3-graph/docs/0.3.0.html) +# react-d3-graph · [![Build Status](https://travis-ci.org/danielcaldas/react-d3-graph.svg?branch=master)](https://travis-ci.org/danielcaldas/react-d3-graph) [![npm version](https://img.shields.io/badge/npm-v1.0.1-blue.svg)](https://www.npmjs.com/package/react-d3-graph) [![npm stats](https://img.shields.io/badge/downloads-2k-brightgreen.svg)](https://npm-stat.com/charts.html?package=react-d3-graph&from=2017-04-25&to=2018-02-11) [![probot enabled](https://img.shields.io/badge/probot:stale-enabled-yellow.svg)](https://probot.github.io/) [![trello](https://img.shields.io/badge/trello-board-blue.svg)](https://trello.com/b/KrnmFXha/react-d3-graph) +:book: [1.0.1](https://danielcaldas.github.io/react-d3-graph/docs/index.html) | [1.0.0](https://danielcaldas.github.io/react-d3-graph/docs/1.0.0.html) | [0.4.0](https://danielcaldas.github.io/react-d3-graph/docs/0.4.0.html) | [0.3.0](https://danielcaldas.github.io/react-d3-graph/docs/0.3.0.html) ### *Interactive and configurable graphs with react and d3 effortlessly* diff --git a/RELEASE_PROCESS.md b/RELEASE_PROCESS.md index 5be2fde97..6f06adb6b 100644 --- a/RELEASE_PROCESS.md +++ b/RELEASE_PROCESS.md @@ -3,15 +3,20 @@ This is not yet a full automated process, so here are a few steps to get the thing properly released on github and publish under npm registry. +### Setup (serve a local version to run tests against it) +1. npm run dist:sandbox +2. npm run start +### Release steps 1. npm run dist 2. npm run docs:lint (fix if errors) 3. Update versioning in package.json 4. npm run docs 5. Small tweaks on documentation page (quicklinks) 6. Replace current files in docs for the generated ones in gen-docs -7. git commit -m "Release x.x.x" -8. Create release x.x.x in github -9. git pull (origin master) -10. Generate CHANGELOG.md (github_changelog_generator -u GITHUB_USERNAME) -11. git commit -m "Update CHANGELOG" -12. npm publish +7. Update README links to documentation +8. git commit -m "Release x.x.x" +9. Create release x.x.x in github +10. git pull (origin master) +11. Generate CHANGELOG.md (github_changelog_generator -u GITHUB_USERNAME) +12. git commit -m "Update CHANGELOG" +13. npm publish diff --git a/docs/0.3.0.html b/docs/0.3.0.html index 5e86452a9..4d0eff957 100644 --- a/docs/0.3.0.html +++ b/docs/0.3.0.html @@ -21,7 +21,8 @@
1.0.0
1.0.1
(boolean
+ automaticRearrangeAfterDropNode (boolean
= false
)
🚅🚅🚅 when true performing a node drag and drop should automatically
rearrange all nodes positions based on new position of dragged node (note:
@@ -494,7 +495,7 @@ Graph global configurations
- height (number
+ height (number
= 400
)
the height of the (svg) area where the graph will be rendered.
@@ -504,7 +505,7 @@ Graph global configurations
- nodeHighlightBehavior (boolean
+ nodeHighlightBehavior (boolean
= false
)
🚅🚅🚅 when user mouse hovers a node that node and adjacent common
connections will be highlighted (depending on the
@@ -519,7 +520,7 @@ Graph global configurations
- linkHighlightBehavior (boolean
+ linkHighlightBehavior (boolean
= false
)
🚅🚅🚅 when the user mouse hovers some link that link and the correspondent nodes will be highlighted, this is a similar behavior
to
@@ -538,7 +539,7 @@ Graph global configurations
- highlightDegree (number
+ highlightDegree (number
= 1
)
Possible values: 0, 1 or 2
. This value represents the range of the
@@ -558,7 +559,7 @@ Graph global configurations
- highlightOpacity (number
+ highlightOpacity (number
= 1
)
this value is used to highlight nodes in the network. The lower
the value the more the less highlighted nodes will be visible (related to
@@ -571,7 +572,7 @@ Graph global configurations
- maxZoom (number
+ maxZoom (number
= 8
)
max zoom that can be performed against the graph.
@@ -581,7 +582,7 @@ Graph global configurations
- minZoom (number
+ minZoom (number
= 0.1
)
min zoom that can be performed against the graph.
@@ -591,7 +592,7 @@ Graph global configurations
- panAndZoom (boolean
+ panAndZoom (boolean
= false
)
🚅🚅🚅 pan and zoom effect when performing zoom in the graph,
a similar functionality may be consulted
@@ -604,7 +605,7 @@ Graph global configurations
- staticGraph (boolean
+ staticGraph (boolean
= false
)
when setting this value to true the graph will be completely static, thus
all forces and drag events upon nodes will produce not effect. Note that, if this value is true the nodes will be
@@ -619,7 +620,7 @@ Graph global configurations
- width (number
+ width (number
= 800
)
the width of the (svg) area where the graph will be rendered.
@@ -631,7 +632,7 @@ Graph global configurations
- node (Object)
+ node (Object)
node object is explained in next section. ⬇️
Node level configurations
@@ -651,7 +652,7 @@ Node level configurations
- node.color string
+ node.color string
(default '#d3d3d3'
)
@@ -666,7 +667,7 @@ Node level configurations
- node.fontSize number
+ node.fontSize number
(default 10
)
@@ -677,7 +678,7 @@ Node level configurations
- node.fontWeight string
+ node.fontWeight string
(default 'normal'
)
@@ -688,7 +689,7 @@ Node level configurations
- node.labelProperty string
+ node.labelProperty string
(default 'id'
)
@@ -701,7 +702,7 @@ Node level configurations
- node.mouseCursor string
+ node.mouseCursor string
(default 'pointer'
)
@@ -712,7 +713,7 @@ Node level configurations
- node.opacity number
+ node.opacity number
(default 1
)
@@ -721,7 +722,7 @@ Node level configurations
- node.renderLabel boolean
+ node.renderLabel boolean
(default true
)
@@ -731,7 +732,7 @@ Node level configurations
- node.size number
+ node.size number
(default 200
)
@@ -740,7 +741,7 @@ Node level configurations
- node.strokeColor string
+ node.strokeColor string
(default 'none'
)
@@ -749,7 +750,7 @@ Node level configurations
- node.strokeWidth number
+ node.strokeWidth number
(default 1.5
)
@@ -758,7 +759,7 @@ Node level configurations
- node.symbolType string
+ node.symbolType string
(default 'circle'
)
@@ -784,7 +785,7 @@ Node level configurations
- node.highlightColor string
+ node.highlightColor string
(default 'SAME'
)
@@ -794,7 +795,7 @@ Node level configurations
- node.highlightFontSize number
+ node.highlightFontSize number
(default 8
)
@@ -803,7 +804,7 @@ Node level configurations
- node.highlightFontWeight string
+ node.highlightFontWeight string
(default 'normal'
)
@@ -812,7 +813,7 @@ Node level configurations
- node.highlightStrokeColor string
+ node.highlightStrokeColor string
(default 'SAME'
)
@@ -821,7 +822,7 @@ Node level configurations
- node.highlightStrokeWidth number
+ node.highlightStrokeWidth number
(default 1.5
)
@@ -838,7 +839,7 @@ Node level configurations
- link (Object)
+ link (Object)
link object is explained in the next section. ⬇️
Link level configurations
@@ -858,7 +859,7 @@ Link level configurations
- link.color string
+ link.color string
(default '#d3d3d3'
)
@@ -867,7 +868,7 @@ Link level configurations
- link.opacity number
+ link.opacity number
(default 1
)
@@ -876,7 +877,7 @@ Link level configurations
- link.semanticStrokeWidth boolean
+ link.semanticStrokeWidth boolean
(default false
)
@@ -890,7 +891,7 @@ Link level configurations
- link.strokeWidth number
+ link.strokeWidth number
(default 1.5
)
@@ -901,7 +902,7 @@ Link level configurations
- link.highlightColor string
+ link.highlightColor string
(default '#d3d3d3'
)
@@ -959,18 +960,18 @@ Link level configurations
-
- Node/helper
+
+ Graph/helper
- Some methods that help no the process of rendering a node.
+ Offers a series of methods that isolate logic of Graph component and also from Graph rendering methods.
- Node/helper
+ Graph/helper
@@ -995,11 +996,11 @@
Static Members
-
+
@@ -1007,12 +1008,14 @@
-
Converts a string that specifies a symbol into a concrete instance
-of d3 symbol.
-https://github.com/d3/d3-shape/blob/master/README.md#symbol
-
+
-
+ Node
+
+
+ Type:
+ Object
+
@@ -1024,33 +1027,42 @@
- Parameters
-
+
+
+ Properties
+
-
- typeName (string)
- the string that specifies the symbol type (should be one of
-node.symbolType
-).
+ id (string)
+ : the id of the node.
-
-
-
+
+ color (string?)
+ : color of the node (optional).
-
+
+
+
+
+ size (string?)
+ : size of the node (optional).
-
-
- Returns
- Object
:
- concrete instance of d3 symbol (defaults to circle).
+
+
+
+
+ symbolType (string?)
+ : symbol type of the node (optional).
+
+
-
+
+
+
@@ -1067,11 +1079,11 @@
-
+
@@ -1079,10 +1091,14 @@
-
Build a d3 svg symbol based on passed symbol and symbol type.
-
+
-
+ Link
+
+
+ Type:
+ Object
+
@@ -1094,29 +1110,22 @@
- Parameters
-
+
+
+ Properties
+
-
-
- symbolTypeDesc (string
- = 'circle'
)
- the string containing the type of symbol that we want to build
-(should be one of
-node.symbolType
-).
+ target (string)
+ : the node id of the target in the link.
-
@@ -1126,16 +1135,6 @@
-
- Returns
- Object
:
- concrete instance of d3 symbol.
-
-
-
-
-
-
@@ -1149,46 +1148,26 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ ▸
+ _createForceSimulation(width, height)
+
+
+
+
-
-
-
- Graph
-
-
-
-
-
- Graph component is the main component for react-d3-graph components, its interface allows its user
-to build the graph once the user provides the data, configuration (optional) and callback interactions (also optional).
-The code for the live example
-can be consulted here
+ Create d3 forceSimulation to be applied on the graph.
+d3-force#forceSimulation
+d3-force#simulation_force
+Wtf is a force? here
- new Graph(props: any)
-
+
-
- Extends
-
- React.Component
-
-
@@ -1204,8 +1183,18 @@
+
+
+
+
+
+ height (number)
+ the height of the container area of the graph.
+
@@ -1216,91 +1205,34 @@
+
+ Returns
+ Object
:
+ returns the simulation instance to be consumed.
+
+
- Example
-
-
- import { Graph } from 'react-d3-graph';
-
-// graph payload (with minimalist structure)
-const data = {
- nodes: [
- {id: 'Harry'},
- {id: 'Sally'},
- {id: 'Alice'}
- ],
- links: [
- {source: 'Harry', target: 'Sally'},
- {source: 'Harry', target: 'Alice'},
- ]
-};
-
-// the graph configuration, you only need to pass down properties
-// that you want to override, otherwise default ones will be used
-const myConfig = {
- nodeHighlightBehavior: true,
- node: {
- color: 'lightgreen',
- size: 120,
- highlightStrokeColor: 'blue'
- },
- link: {
- highlightColor: 'lightblue'
- }
-};
-
-// graph event callbacks
-const onClickNode = function(nodeId) {
- window.alert('Clicked node ${nodeId}');
-};
-
-const onMouseOverNode = function(nodeId) {
- window.alert(`Mouse over node ${nodeId}`);
-};
-
-const onMouseOutNode = function(nodeId) {
- window.alert(`Mouse out node ${nodeId}`);
-};
-
-const onClickLink = function(source, target) {
- window.alert(`Clicked link between ${source} and ${target}`);
-};
-
-const onMouseOverLink = function(source, target) {
- window.alert(`Mouse over in link between ${source} and ${target}`);
-};
-const onMouseOutLink = function(source, target) {
- window.alert(`Mouse out link between ${source} and ${target}`);
-};
+
-<Graph
- id='graph-id' // id is mandatory, if no id is defined rd3g will throw an error
- data={data}
- config={myConfig}
- onClickNode={onClickNode}
- onClickLink={onClickLink}
- onMouseOverNode={onMouseOverNode}
- onMouseOutNode={onMouseOutNode}
- onMouseOverLink={onMouseOverLink}
- onMouseOutLink={onMouseOutLink}/>
-
- Instance Members
-
+
+
+
+
-
+
@@ -1308,10 +1240,10 @@
-
Sets d3 tick function and configures other d3 stuff such as forces and drag events.
+ Get the correct node opacity in order to properly make decisions based on context such as currently highlighted node.
- _graphForcesConfig()
+ _getNodeOpacity(node: Object, highlightedNode: string, highlightedLink: Object, config: Object): number
@@ -1323,12 +1255,67 @@
+ Parameters
+
+
+
+
+ node (Object)
+ the node object for whom we will generate properties.
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns
+ number
:
+ the opacity value for the given node.
+
+
+
+
+
+
@@ -1342,11 +1329,11 @@
-
+
@@ -1354,10 +1341,12 @@
-
Handles d3 drag 'end' event.
+ Receives a matrix of the graph with the links source and target as concrete node instances and it transforms it
+in a lightweight matrix containing only links with source and target being strings representative of some node id
+and the respective link value (if non existent will default to 1).
- _onDragEnd
+
@@ -1369,9 +1358,32 @@
+ Parameters
+
+
+
+
+
+ Returns
+ Object<string, Object>
:
+ an object containing a matrix of connections of the graph, for each nodeId,
+there is an object that maps adjacent nodes ids (string) and their values (number).
+
+
@@ -1388,11 +1400,11 @@
-
+
@@ -1400,10 +1412,12 @@
-
Handles d3 'drag' event.
+ Method that initialize graph nodes provided by rd3g consumer and adds additional default mandatory properties
+that are optional for the user. Also it generates an index mapping, this maps nodes ids the their index in the array
+of nodes. This is needed because d3 callbacks such as node click and link click return the index of the node.
- _onDragMove
+
@@ -1420,28 +1434,8 @@
- ev (Object)
- if not undefined it will contain event data.
-
-
-
-
-
-
-
- index (number)
- index of the node that is being dragged.
-
-
-
-
-
-
-
- nodeList (Array<Object>)
- array of d3 nodes. This list of nodes is provided by d3, each
-node contains all information that was previously fed by rd3g.
-
+ graphNodes (Array<Node>)
+ the array of nodes provided by the rd3g consumer.
@@ -1453,6 +1447,15 @@
+
+ Returns
+ Object<string, Object>
:
+ returns the nodes ready to be used within rd3g with additional properties such as x, y
+and highlighted values.
+
+
+
+
@@ -1468,11 +1471,11 @@
-
+
@@ -1480,10 +1483,11 @@
-
Handles d3 drag 'start' event.
+ Some integrity validations on links and nodes structure. If some validation fails the function will
+throw an error.
- _onDragStart
+
@@ -1495,12 +1499,46 @@
+ Parameters
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns
+ undefined
:
+
+
+
+ Throws
+
+
+ - any: can throw the following error msg:
+INSUFFICIENT_DATA - msg if no nodes are provided
+INVALID_LINKS - if links point to nonexistent nodes
+
+
+
+
@@ -1514,11 +1552,11 @@
-
+
▸
- _setNodeHighlightedValue
+ buildLinkProps(source, target, nodes, links, config, linkCallbacks, highlightedNode, highlightedLink, transform)
@@ -1526,10 +1564,10 @@
-
Sets nodes and links highlighted value.
+ Build some Link properties based on given parameters.
- _setNodeHighlightedValue
+ buildLinkProps(source: string, target: string, nodes: Object<string, Object>, links: Object<string, Object>, config: Object, linkCallbacks: Array<Function>, highlightedNode: string, highlightedLink: Object, transform: number): Object
@@ -1546,8 +1584,8 @@
- id (string)
- the id of the node to highlight.
+ source (string)
+ the id of the source node (from).
@@ -1555,9 +1593,83 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
▸
- _tick
+ buildNodeProps(node, config, nodeCallbacks, highlightedNode, highlightedLink, transform)
@@ -1596,11 +1716,10 @@
-
The tick function simply calls React set state in order to update component and render nodes
-along time as d3 calculates new node positioning.
+ Build some Node properties based on given parameters.
- _tick
+ buildNodeProps(node: Object, config: Object, nodeCallbacks: Array<Function>, highlightedNode: string, highlightedLink: Object, transform: number): Object
@@ -1612,14 +1731,90 @@
+ Parameters
+
+
+
+
+ node (Object)
+ the node object for whom we will generate properties.
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ transform (number)
+ value that indicates the amount of zoom transformation.
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns
+ Object
:
+ returns object that contain Link props ready to be feeded to the Link component.
+
+
+
+
+
+
+
+
@@ -1631,11 +1826,11 @@
-
+
@@ -1643,11 +1838,10 @@
-
Configures zoom upon graph with default or user provided values.
-https://github.com/d3/d3-zoom#zoom
+ Encapsulates common procedures to initialize graph.
- _zoomConfig
+
@@ -1659,9 +1853,83 @@
+ Parameters
+
+
+
+
+ props (Object)
+ Graph component props, object that holds data, id and config.
+
+
+
+
+
+
+
+
+
+
+ Name
+ Description
+
+
+
+
+
+ props.data Object
+
+ Data object holds links (array of
+Link
+) and nodes (array of
+Node
+).
+
+
+
+
+ props.id string
+
+ the graph id.
+
+
+
+
+ props.config Object
+
+ same as
+config in buildGraph
+.
+
+
+
+
+
+
+
+
+
+
+ state (Object)
+ Graph component current state (same format as returned object on this function).
+
+
+
+
+
+
+
+
+
+
+ Returns
+ Object
:
+ a fully (re)initialized graph state object.
+
+
@@ -1678,11 +1946,11 @@
-
+
▸
- _zoomed
+ _buildNodeLinks(nodeId, nodes, links, config, linkCallbacks, highlightedNode, highlightedLink, transform)
@@ -1690,10 +1958,10 @@
-
Handler for 'zoom' event within zoom config.
+ Build Link components for a given node.
- _zoomed
+ _buildNodeLinks(nodeId: string, nodes: Object<string, Object>, links: Object<string, Object>, config: Object, linkCallbacks: Array<Function>, highlightedNode: string, highlightedLink: Object, transform: number): Array<Object>
@@ -1705,14 +1973,103 @@
+ Parameters
+
+
+
+
+ nodeId (string)
+ the id of the node to whom Link components will be generated.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ transform (number)
+ value that indicates the amount of zoom transformation.
+
+
+
+
+
+
+
Returns
- Object
:
- returns the transformed elements within the svg graph area.
+ Array<Object>
:
+ returns the generated array of Link components.
@@ -1732,11 +2089,11 @@
-
+
▸
- onMouseOverNode
+ buildGraph(nodes, nodeCallbacks, links, linkCallbacks, config, highlightedNode, highlightedLink, transform)
@@ -1744,10 +2101,11 @@
-
Handles mouse over node event.
+ Method that actually is exported an consumed by Graph component in order to build all Nodes and Link
+components.
- onMouseOverNode
+ buildGraph(nodes: Object<string, Object>, nodeCallbacks: Array<Function>, links: Object<string, Object>, linkCallbacks: Array<Function>, config: Object, highlightedNode: string, highlightedLink: Object, transform: number): Object
@@ -1764,8 +2122,125 @@
+
+
+
+
+
+
+
+
+
+
+ links (Object<string, Object>)
+ an object containing a matrix of connections of the graph, for each nodeId,
+there is an Object that maps adjacent nodes ids (string) and their values (number).
+ // links example
+ {
+ "Androsynth": {
+ "Chenjesu": 1,
+ "Ilwrath": 1,
+ "Mycon": 1,
+ "Spathi": 1,
+ "Umgah": 1,
+ "VUX": 1,
+ "Guardian": 1
+ },
+ "Chenjesu": {
+ "Androsynth": 1,
+ "Mycon": 1,
+ "Spathi": 1,
+ "Umgah": 1,
+ "VUX": 1,
+ "Broodhmome": 1
+ },
+ ...
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ highlightedNode (string)
+ this value contains a string that represents the some currently highlighted node.
+
+
+
+
+
+
+
+ highlightedLink (Object)
+ this object contains a source and target property for a link that is highlighted at some point in time.
+
+
+
+
+
+
+
+
+
+
+ Name
+ Description
+
+
+
+
+
+ highlightedLink.source string
+
+ id of source node for highlighted link.
+
+
+
+
+ highlightedLink.target string
+
+ id of target node for highlighted link.
+
+
+
+
+
+
+
+
+
+
+ transform (number)
+ value that indicates the amount of zoom transformation.
@@ -1777,6 +2252,17 @@
+
+ Returns
+ Object
:
+ returns an object containing the generated nodes and links that form the graph. The result is
+returned in a way that can be consumed by es6
+destructuring assignment
+.
+
+
+
+
@@ -1792,48 +2278,43 @@
-
-
-
- ▸
- onMouseOutNode
-
-
-
-
+
- Handles mouse out node event.
+
+
+
+
+
+
+
+
- onMouseOutNode
+
+
+
+ Node/helper
+
+
+
+
+ Some methods that help no the process of rendering a node.
+
+
+ Node/helper
+
-
- Parameters
-
-
-
-
- id (string)
- id of the node that participates in the event.
-
-
-
-
-
-
-
-
@@ -1847,16 +2328,14 @@
-
-
-
-
+ Static Members
+
-
+
@@ -1864,10 +2343,12 @@
-
Handles mouse over link event.
+ Converts a string that specifies a symbol into a concrete instance
+of d3 symbol.
+https://github.com/d3/d3-shape/blob/master/README.md#symbol
- onMouseOverLink
+
@@ -1884,17 +2365,10 @@
- source (string)
- id of the source node that participates in the event.
-
-
-
-
-
-
-
- target (string)
- id of the target node that participates in the event.
+ typeName (string)
+ the string that specifies the symbol type (should be one of
+node.symbolType
+).
@@ -1906,6 +2380,14 @@
+
+ Returns
+ Object
:
+ concrete instance of d3 symbol (defaults to circle).
+
+
+
+
@@ -1921,11 +2403,11 @@
-
+
@@ -1933,10 +2415,10 @@
-
Handles mouse out link event.
+ Build a d3 svg symbol based on passed symbol and symbol type.
- onMouseOutLink
+
@@ -1953,8 +2435,9 @@
- source (string)
- id of the source node that participates in the event.
+ size (number
+ = 80
)
+ the size of the symbol.
@@ -1962,8 +2445,12 @@
- target (string)
- id of the target node that participates in the event.
+ symbolTypeDesc (string
+ = 'circle'
)
+ the string containing the type of symbol that we want to build
+(should be one of
+node.symbolType
+).
@@ -1975,6 +2462,14 @@
+
+ Returns
+ Object
:
+ concrete instance of d3 symbol.
+
+
+
+
@@ -1990,25 +2485,47 @@
-
-
-
- ▸
- pauseSimulation
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Graph
+
+
+
+
+
- Calls d3 simulation.stop().
-https://github.com/d3/d3-force#simulation_stop
+ Graph component is the main component for react-d3-graph components, its interface allows its user
+to build the graph once the user provides the data, configuration (optional) and callback interactions (also optional).
+The code for the live example
+can be consulted here
- pauseSimulation
+ new Graph(props: any)
+
+ Extends
+
+ React.Component
+
+
+
@@ -2018,7 +2535,18 @@
-
+ Parameters
+
+
+
+
+ props (any)
+
+
+
+
+
+
@@ -2028,20 +2556,87 @@
+ Example
+
+
+ import { Graph } from 'react-d3-graph';
+
+// graph payload (with minimalist structure)
+const data = {
+ nodes: [
+ {id: 'Harry'},
+ {id: 'Sally'},
+ {id: 'Alice'}
+ ],
+ links: [
+ {source: 'Harry', target: 'Sally'},
+ {source: 'Harry', target: 'Alice'},
+ ]
+};
+
+// the graph configuration, you only need to pass down properties
+// that you want to override, otherwise default ones will be used
+const myConfig = {
+ nodeHighlightBehavior: true,
+ node: {
+ color: 'lightgreen',
+ size: 120,
+ highlightStrokeColor: 'blue'
+ },
+ link: {
+ highlightColor: 'lightblue'
+ }
+};
+
+// graph event callbacks
+const onClickNode = function(nodeId) {
+ window.alert('Clicked node ${nodeId}');
+};
+const onMouseOverNode = function(nodeId) {
+ window.alert(`Mouse over node ${nodeId}`);
+};
+
+const onMouseOutNode = function(nodeId) {
+ window.alert(`Mouse out node ${nodeId}`);
+};
+
+const onClickLink = function(source, target) {
+ window.alert(`Clicked link between ${source} and ${target}`);
+};
+
+const onMouseOverLink = function(source, target) {
+ window.alert(`Mouse over in link between ${source} and ${target}`);
+};
+
+const onMouseOutLink = function(source, target) {
+ window.alert(`Mouse out link between ${source} and ${target}`);
+};
+
+<Graph
+ id='graph-id' // id is mandatory, if no id is defined rd3g will throw an error
+ data={data}
+ config={myConfig}
+ onClickNode={onClickNode}
+ onClickLink={onClickLink}
+ onMouseOverNode={onMouseOverNode}
+ onMouseOutNode={onMouseOutNode}
+ onMouseOverLink={onMouseOverLink}
+ onMouseOutLink={onMouseOutLink}/>
+
-
-
-
-
+ Instance Members
+
+
+
@@ -2049,12 +2644,10 @@
-
This method resets all nodes fixed positions by deleting the properties fx (fixed x)
-and fy (fixed y). Following this, a simulation is triggered in order to force nodes to go back
-to their original positions (or at least new positions according to the d3 force parameters).
+ Sets d3 tick function and configures other d3 stuff such as forces and drag events.
- resetNodesPositions
+ _graphForcesConfig(): undefined
@@ -2070,6 +2663,14 @@
+
+ Returns
+ undefined
:
+
+
+
+
+
@@ -2085,11 +2686,11 @@
-
+
@@ -2097,76 +2698,32 @@
-
Calls d3 simulation.restart().
-https://github.com/d3/d3-force#simulation_restart
-
-
- restartSimulation
-
-
+ Handles d3 drag 'end' event.
-
-
-
-
-
-
+ _onDragEnd
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ Returns
+ undefined
:
-
-
-
-
-
-
- Graph/helper
-
-
+
-
-
-
- Offers a series of methods that isolate logic of Graph component.
-
-
- Graph/helper
-
-
-
-
-
-
-
-
@@ -2178,16 +2735,16 @@
+
+
+
- Static Members
-
-
-
+
@@ -2195,14 +2752,11 @@
-
+
Handles d3 'drag' event.
+more about d3 drag
- Node
-
-
- Type:
- Object
-
+
+ _onDragMove
@@ -2214,15 +2768,34 @@
+ Parameters
+
+
+
-
+
@@ -2257,14 +2840,10 @@
-
+
Handles d3 drag 'start' event.
- Link
-
-
- Type:
- Object
-
+
+ _onDragStart
@@ -2278,26 +2857,15 @@
- Properties
-
-
-
- source (string)
- : the node id of the source in the link.
-
-
-
-
-
- target (string)
- : the node id of the target in the link.
-
-
-
-
+
+ Returns
+ undefined
:
+
+
+
@@ -2314,11 +2882,11 @@
-
+
▸
- _buildLinkProps(source, target, nodes, links, config, linkCallbacks, highlightedNode, highlightedLink, transform)
+ _setNodeHighlightedValue
@@ -2326,10 +2894,10 @@
-
Build some Link properties based on given parameters.
+ Sets nodes and links highlighted value.
- _buildLinkProps(source: string, target: string, nodes: Object<string, Object>, links: Object<string, Object>, config: Object, linkCallbacks: Array<Function>, highlightedNode: string, highlightedLink: Object, transform: number): Object
+ _setNodeHighlightedValue
@@ -2346,83 +2914,8 @@
- source (string)
- the id of the source node (from).
-
-
-
-
-
-
-
- target (string)
- the id of the target node (to).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- highlightedLink (Object)
- same as
-highlightedLink in buildGraph
-.
+ id (string)
+ the id of the node to highlight.
@@ -2430,8 +2923,9 @@
- transform (number)
- value that indicates the amount of zoom transformation.
+ value (boolean
+ = false
)
+ the highlight value to be set (true or false).
@@ -2445,8 +2939,8 @@
Returns
- Object
:
- returns an object that aggregates all props for creating respective Link component instance.
+ undefined
:
+
@@ -2466,11 +2960,11 @@
-
+
▸
- _buildNodeLinks(nodeId, nodes, links, config, linkCallbacks, highlightedNode, highlightedLink, transform)
+ _tick
@@ -2478,10 +2972,11 @@
-
Build Link components for a given node.
+ The tick function simply calls React set state in order to update component and render nodes
+along time as d3 calculates new node positioning.
- _buildNodeLinks(nodeId: string, nodes: Object<string, Object>, links: Object<string, Object>, config: Object, linkCallbacks: Array<Function>, highlightedNode: string, highlightedLink: Object, transform: number): Array<Object>
+ _tick
@@ -2498,83 +2993,8 @@
- nodeId (string)
- the id of the node to whom Link components will be generated.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
▸
- _buildNodeProps(node, config, nodeCallbacks, highlightedNode, highlightedLink, transform)
+ _zoomConfig
@@ -2621,10 +3041,11 @@
-
Build some Node properties based on given parameters.
+ Configures zoom upon graph with default or user provided values.
+https://github.com/d3/d3-zoom#zoom
- _buildNodeProps(node: Object, config: Object, nodeCallbacks: Array<Function>, highlightedNode: string, highlightedLink: Object, transform: number): Object
+ _zoomConfig
@@ -2636,72 +3057,59 @@
- Parameters
-
-
-
-
- node (Object)
- the node object for whom we will generate properties.
-
-
-
-
-
-
-
-
-
-
-
- nodeCallbacks (Array<Function>)
- same as
-nodeCallbacks in buildGraph
-.
+
+
+ Returns
+ undefined
:
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ▸
+ _zoomed
-
-
-
- transform (number)
- value that indicates the amount of zoom transformation.
+
+
+
+
+
+
+ Handler for 'zoom' event within zoom config.
+
+
+ _zoomed
+
+
+
+
+
+
+
+
+
-
-
-
-
-
@@ -2709,8 +3117,8 @@
Returns
- Object
:
- returns object that contain Link props ready to be feeded to the Link component.
+ Object
:
+ returns the transformed elements within the svg graph area.
@@ -2730,11 +3138,11 @@
-
+
@@ -2742,10 +3150,10 @@
-
Get the correct node opacity in order to properly make decisions based on context such as currently highlighted node.
+ Handles mouse over node event.
- _getNodeOpacity(node: Object, highlightedNode: string, highlightedLink: Object, config: Object): number
+ onMouseOverNode
@@ -2762,41 +3170,8 @@
- node (Object)
- the node object for whom we will generate properties.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- config (Object)
- same as
-config in buildGraph
-.
+ id (string)
+ id of the node that participates in the event.
@@ -2810,8 +3185,8 @@
Returns
- number
:
- the opacity value for the given node.
+ undefined
:
+
@@ -2831,11 +3206,11 @@
-
+
@@ -2843,12 +3218,10 @@
-
Receives a matrix of the graph with the links source and target as concrete node instances and it transforms it
-in a lightweight matrix containing only links with source and target being strings representative of some node id
-and the respective link value (if non existent will default to 1).
+ Handles mouse out node event.
-
+ onMouseOutNode
@@ -2865,9 +3238,8 @@
- graphLinks (Array<Object>)
- an array of all graph links but all the links contain the source and target nodes
-objects.
+ id (string)
+ id of the node that participates in the event.
@@ -2881,9 +3253,8 @@
Returns
- Object<string, Object>
:
- an object containing a matrix of connections of the graph, for each nodeId,
-there is an object that maps adjacent nodes ids (string) and their values (number).
+ undefined
:
+
@@ -2903,11 +3274,11 @@
-
+
@@ -2915,12 +3286,10 @@
-
Method that initialize graph nodes provided by rd3g consumer and adds additional default mandatory properties
-that are optional for the user. Also it generates an index mapping, this maps nodes ids the their index in the array
-of nodes. This is needed because d3 callbacks such as node click and link click return the index of the node.
+ Handles mouse over link event.
-
+ onMouseOverLink
@@ -2937,8 +3306,17 @@
+
+
+
+
-
+
@@ -2986,11 +3363,10 @@
-
Some integrity validations on links and nodes structure. If some validation fails the function will
-throw an error.
+ Handles mouse out link event.
- _validateGraphData(data: Object)
+ onMouseOutLink
@@ -3007,10 +3383,17 @@
- data (Object)
- Same as
-data in initializeGraphState
-.
+ source (string)
+ id of the source node that participates in the event.
+
+
+
+
+
+
+
+ target (string)
+ id of the target node that participates in the event.
@@ -3022,17 +3405,15 @@
+
+ Returns
+ undefined
:
+
-
- Throws
-
-
- - any: can throw the following error msg:
-INSUFFICIENT_DATA - msg if no nodes are provided
-INVALID_LINKS - if links point to nonexistent nodes
-
-
+
+
+
@@ -3047,11 +3428,11 @@
-
+
▸
- buildGraph(nodes, nodeCallbacks, links, linkCallbacks, config, highlightedNode, highlightedLink, transform)
+ pauseSimulation
@@ -3059,11 +3440,11 @@
-
Method that actually is exported an consumed by Graph component in order to build all Nodes and Link
-components.
+ Calls d3 simulation.stop().
+https://github.com/d3/d3-force#simulation_stop
- buildGraph(nodes: Object<string, Object>, nodeCallbacks: Array<Function>, links: Object<string, Object>, linkCallbacks: Array<Function>, config: Object, highlightedNode: string, highlightedLink: Object, transform: number): Object
+ pauseSimulation
@@ -3075,148 +3456,14 @@
- Parameters
-
-
-
-
-
-
-
-
-
-
-
- links (Object<string, Object>)
- an object containing a matrix of connections of the graph, for each nodeId,
-there is an Object that maps adjacent nodes ids (string) and their values (number).
- // links example
- {
- "Androsynth": {
- "Chenjesu": 1,
- "Ilwrath": 1,
- "Mycon": 1,
- "Spathi": 1,
- "Umgah": 1,
- "VUX": 1,
- "Guardian": 1
- },
- "Chenjesu": {
- "Androsynth": 1,
- "Mycon": 1,
- "Spathi": 1,
- "Umgah": 1,
- "VUX": 1,
- "Broodhmome": 1
- },
- ...
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- highlightedNode (string)
- this value contains a string that represents the some currently highlighted node.
-
-
-
-
-
-
-
- highlightedLink (Object)
- this object contains a source and target property for a link that is highlighted at some point in time.
-
-
-
-
-
-
-
-
-
-
- Name
- Description
-
-
-
-
-
- highlightedLink.source string
-
- id of source node for highlighted link.
-
-
-
-
- highlightedLink.target string
-
- id of target node for highlighted link.
-
-
-
-
-
-
-
-
-
-
- transform (number)
- value that indicates the amount of zoom transformation.
-
-
-
-
-
-
-
Returns
- Object
:
- returns an object containing the generated nodes and links that form the graph. The result is
-returned in a way that can be consumed by es6
-destructuring assignment
-.
+ undefined
:
+
@@ -3236,11 +3483,11 @@
-
+
@@ -3248,13 +3495,12 @@
-
Create d3 forceSimulation to be applied on the graph.
-d3-force#forceSimulation
-d3-force#simulation_force
-Wtf is a force? here
+ This method resets all nodes fixed positions by deleting the properties fx (fixed x)
+and fy (fixed y). Following this, a simulation is triggered in order to force nodes to go back
+to their original positions (or at least new positions according to the d3 force parameters).
-
+ resetNodesPositions
@@ -3266,37 +3512,14 @@
- Parameters
-
-
-
-
- width (number)
- the width of the container area of the graph.
-
-
-
-
-
-
-
- height (number)
- the height of the container area of the graph.
-
-
-
-
-
-
-
Returns
- Object
:
- returns the simulation instance to be consumed.
+ undefined
:
+
@@ -3316,11 +3539,11 @@
-
+
@@ -3328,10 +3551,11 @@
-
Encapsulates common procedures to initialize graph.
+ Calls d3 simulation.restart().
+https://github.com/d3/d3-force#simulation_restart
-
+ restartSimulation
@@ -3343,80 +3567,14 @@
- Parameters
-
-
-
-
- props (Object)
- Graph component props, object that holds data, id and config.
-
-
-
-
-
-
-
-
-
-
- Name
- Description
-
-
-
-
-
- props.data Object
-
- Data object holds links (array of
-Link
-) and nodes (array of
-Node
-).
-
-
-
-
- props.id string
-
- the graph id.
-
-
-
-
- props.config Object
-
- same as
-config in buildGraph
-.
-
-
-
-
-
-
-
-
-
-
- state (Object)
- Graph component current state (same format as returned object on this function).
-
-
-
-
-
-
-
Returns
- Object
:
- a fully (re)initialized graph state object.
+ undefined
:
+
@@ -3438,6 +3596,51 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Graph/renderer
+
+
+
+
+
+
+ Offers a series of methods that isolate render logic for Graph component.
+
+
+ Graph/renderer
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -3565,6 +3768,14 @@
+
+ Returns
+ undefined
:
+
+
+
+
+
@@ -3611,6 +3822,14 @@
+
+ Returns
+ undefined
:
+
+
+
+
+
@@ -3657,6 +3876,14 @@
+
+ Returns
+ undefined
:
+
+
+
+
+
@@ -3794,6 +4021,14 @@
+
+ Returns
+ undefined
:
+
+
+
+
+
@@ -3840,6 +4075,14 @@
+
+ Returns
+ undefined
:
+
+
+
+
+
@@ -3886,6 +4129,14 @@
+
+ Returns
+ undefined
:
+
+
+
+
+
@@ -3968,7 +4219,7 @@
Checks whether a certain object property is from object type and is a non empty object.
-
+
@@ -3985,7 +4236,7 @@
@@ -3994,7 +4245,7 @@
@@ -4009,7 +4260,7 @@
Returns
- boolean
:
+ boolean
:
returns true if o
[
k
@@ -4049,7 +4300,7 @@
Generic deep comparison between javascript simple or complex objects.
-
+
@@ -4066,7 +4317,7 @@
@@ -4075,7 +4326,7 @@
@@ -4084,7 +4335,7 @@
- _depth (number
+ _depth (number
= 0
)
this parameter serves only for internal usage.
@@ -4100,7 +4351,7 @@
Returns
- boolean
:
+ boolean
:
returns true if o1 and o2 have exactly the same content, or are exactly the same object reference.
@@ -4137,7 +4388,7 @@
NOTE: If the passed parameter is not an object the method return false.
-
+
@@ -4154,7 +4405,7 @@
@@ -4169,7 +4420,7 @@
Returns
- boolean
:
+ boolean
:
true if the given object is n ft and object and is empty.
@@ -4206,7 +4457,7 @@
if o2 doesn't posses some o1 property the fallback will be the o1 property.
-
+
@@ -4223,7 +4474,7 @@
- o1 (Object
+ o1 (Object
= {}
)
object.
@@ -4233,7 +4484,7 @@
- o2 (Object
+ o2 (Object
= {}
)
object that will override o1 properties.
@@ -4259,7 +4510,7 @@
Returns
- Object
:
+ Object
:
object that is the result of merging o1 and o2, being o2 properties priority overriding
existent o1 properties.
@@ -4296,7 +4547,7 @@
Helper function for customized error logging.
-
+
@@ -4313,7 +4564,7 @@
- component (string)
+ component (string)
the name of the component where the error is to be thrown.
@@ -4322,7 +4573,7 @@
@@ -4337,7 +4588,7 @@
Returns
- Error
:
+ Error
:
the thrown error.
@@ -4365,6 +4616,85 @@
+
+
+
+
+
+
+
+
+
+
+
+ pick
+
+
+
+
+
+
+ Create new object from the inputted one only with the props passed
+in the props list.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters
+
+
+
+
+ o (Object)
+ the object to pick props from.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns
+ Object
:
+ the object resultant from the picking operation.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/package.json b/package.json
index 89ab55cae..b26cbc909 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "react-d3-graph",
- "version": "1.0.0",
+ "version": "1.0.1",
"description": "React component to build interactive and configurable graphs with d3 effortlessly",
"author": "Daniel Caldas",
"license": "MIT",
diff --git a/sandbox/rd3g.sandbox.bundle.js b/sandbox/rd3g.sandbox.bundle.js
index 8f8147f1f..0c996b461 100644
--- a/sandbox/rd3g.sandbox.bundle.js
+++ b/sandbox/rd3g.sandbox.bundle.js
@@ -1,9 +1,9 @@
-!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=191)}([function(t,e,n){"use strict";t.exports=n(24)},function(t,e,n){t.exports=n(285)()},function(t,e,n){"use strict";function r(t,e,n,r,i,a,u,s){if(o(e),!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,a,u,s],f=0;c=new Error(e.replace(/%s/g,function(){return l[f++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var o=function(t){};t.exports=r},function(t,e,n){"use strict";var r=n(11),o=r;t.exports=o},function(t,e,n){"use strict";function r(t){for(var e=arguments.length-1,n="Minified React error #"+t+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+t,r=0;r=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function a(){return{fields:n(316).default,widgets:n(324).default,definitions:{},formContext:{}}}function u(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.type;if("function"==typeof e)return function(t){return t.MergedWidget||function(){var e=t.defaultProps&&t.defaultProps.options||{};t.MergedWidget=function(n){var r=n.options,o=void 0===r?{}:r,a=i(n,["options"]);return U.default.createElement(t,D({options:D({},e,o)},a))}}(),t.MergedWidget}(e);if("string"!=typeof e)throw new Error("Unsupported widget definition: "+(void 0===e?"undefined":I(e)));if(n.hasOwnProperty(e)){return u(t,n[e],n)}if(!F.hasOwnProperty(r))throw new Error('No widget for type "'+r+'"');if(F[r].hasOwnProperty(e)){return u(t,n[F[r][e]],n)}throw new Error('No widget "'+e+'" for type "'+r+'"')}function s(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e;if(f(r)&&f(t.default))r=h(r,t.default);else if("default"in t)r=t.default;else{if("$ref"in t){var o=O(t.$ref,n);return s(o,r,n)}_(t)&&(r=t.items.map(function(t){return s(t,void 0,n)}))}switch(void 0===r&&(r=t.default),t.type){case"object":return Object.keys(t.properties||{}).reduce(function(e,o){return e[o]=s(t.properties[o],(r||{})[o],n),e},{});case"array":if(t.minItems){if(g(t,n))return[];var i=r?r.length:0;if(t.minItems>i){var a=r||[],u=new Array(t.minItems-i).fill(s(t.items,t.items.defaults,n));return a.concat(u)}}}return r}function c(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!f(t))throw new Error("Invalid schema: "+t);var r=E(t,n),o=s(r,t.default,n);return void 0===e?o:f(e)?h(o,e):e||o}function l(t){return Object.keys(t).filter(function(t){return 0===t.indexOf("ui:")}).reduce(function(e,n){var r=t[n];return"ui:widget"===n&&f(r)?(console.warn("Setting options via ui:widget object is deprecated, use ui:options instead"),D({},e,r.options||{},{widget:r.component})):"ui:options"===n&&f(r)?D({},e,r):D({},e,o({},n.substring(3),r))},{})}function f(t){return"object"===(void 0===t?"undefined":I(t))&&null!==t&&!Array.isArray(t)}function h(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Object.assign({},t);return Object.keys(e).reduce(function(r,o){var i=t[o],a=e[o];return t.hasOwnProperty(o)&&f(a)?r[o]=h(i,a,n):n&&Array.isArray(i)&&Array.isArray(a)?r[o]=i.concat(a):r[o]=a,r},r)}function p(t){if(""!==t){if(/\.$/.test(t))return t;if(/\.0$/.test(t))return t;var e=Number(t),n="number"==typeof e&&!Number.isNaN(e);return/\.\d*0$/.test(t)?t:n?e:t}}function d(t,e){if(!Array.isArray(e))return t;var n=function(t){return t.reduce(function(t,e){return t[e]=!0,t},{})},o=function(t){return t.length>1?"properties '"+t.join("', '")+"'":"property '"+t[0]+"'"},i=n(t),a=n(e),u=e.filter(function(t){return"*"!==t&&!i[t]});if(u.length)throw new Error("uiSchema order list contains extraneous "+o(u));var s=t.filter(function(t){return!a[t]}),c=e.indexOf("*");if(-1===c){if(s.length)throw new Error("uiSchema order list does not contain "+o(s));return e}if(c!==e.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");var l=[].concat(r(e));return l.splice.apply(l,[c,1].concat(r(s))),l}function m(t){return Array.isArray(t.enum)&&1===t.enum.length||t.hasOwnProperty("const")}function v(t){if(Array.isArray(t.enum)&&1===t.enum.length)return t.enum[0];if(t.hasOwnProperty("const"))return t.const;throw new Error("schema cannot be inferred as a constant")}function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=E(t,e),r=n.oneOf||n.anyOf;return!!Array.isArray(n.enum)||!!Array.isArray(r)&&r.every(function(t){return m(t)})}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!(!t.uniqueItems||!t.items)&&y(t.items,e)}function b(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("files"===e["ui:widget"])return!0;if(t.items){var r=E(t.items,n);return"string"===r.type&&"data-url"===r.format}return!1}function _(t){return Array.isArray(t.items)&&t.items.length>0&&t.items.every(function(t){return f(t)})}function w(t){return!0===t.additionalItems&&console.warn("additionalItems=true is currently not supported"),f(t.additionalItems)}function x(t){return t.enum?t.enum.map(function(e,n){return{label:t.enumNames&&t.enumNames[n]||String(e),value:e}}):(t.oneOf||t.anyOf).map(function(t,e){var n=v(t);return{label:t.title||String(n),value:n}})}function O(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=/^#\/definitions\/(.*)$/.exec(t);if(n&&n[1]){var r=n[1].split("/"),o=e,i=!0,a=!1,u=void 0;try{for(var s,c=r[Symbol.iterator]();!(i=(s=c.next()).done);i=!0){var l=s.value;if(l=l.replace(/~1/g,"/").replace(/~0/g,"~"),!o.hasOwnProperty(l))throw new Error("Could not find a definition for "+t+".");o=o[l]}}catch(t){a=!0,u=t}finally{try{!i&&c.return&&c.return()}finally{if(a)throw u}}return o}throw new Error("Could not find a definition for "+t+".")}function E(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t.hasOwnProperty("$ref"))return t;var n=O(t.$ref,e),r=(t.$ref,i(t,["$ref"]));return D({},n,r)}function C(t){return"[object Arguments]"===Object.prototype.toString.call(t)}function S(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(t===e)return!0;if("function"==typeof t||"function"==typeof e)return!0;if("object"!==(void 0===t?"undefined":I(t))||"object"!==(void 0===e?"undefined":I(e)))return!1;if(null===t||null===e)return!1;if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(t instanceof RegExp&&e instanceof RegExp)return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(C(t)||C(e)){if(!C(t)||!C(e))return!1;var o=Array.prototype.slice;return S(o.call(t),o.call(e),n,r)}if(t.constructor!==e.constructor)return!1;var i=Object.keys(t),a=Object.keys(e);if(0===i.length&&0===a.length)return!0;if(i.length!==a.length)return!1;for(var u=n.length;u--;)if(n[u]===t)return r[u]===e;n.push(t),r.push(e),i.sort(),a.sort();for(var s=i.length-1;s>=0;s--)if(i[s]!==a[s])return!1;for(var c=void 0,l=i.length-1;l>=0;l--)if(c=i[l],!S(t[c],e[c],n,r))return!1;return n.pop(),r.pop(),!0}function k(t,e,n){var r=t.props,o=t.state;return!S(r,e)||!S(o,n)}function j(t,e,n){var r={$id:e||"root"};if("$ref"in t){return j(E(t,n),e,n)}if("items"in t&&!t.items.$ref)return j(t.items,e,n);if("object"!==t.type)return r;for(var o in t.properties||{}){var i=t.properties[o],a=r.$id+"_"+o;r[o]=j(i,a,n)}return r}function P(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t)return{year:-1,month:-1,day:-1,hour:e?-1:0,minute:e?-1:0,second:e?-1:0};var n=new Date(t);if(Number.isNaN(n.getTime()))throw new Error("Unable to parse date "+t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:e?n.getUTCHours():0,minute:e?n.getUTCMinutes():0,second:e?n.getUTCSeconds():0}}function M(t){var e=t.year,n=t.month,r=t.day,o=t.hour,i=void 0===o?0:o,a=t.minute,u=void 0===a?0:a,s=t.second,c=void 0===s?0:s,l=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],f=Date.UTC(e,n-1,r,i,u,c),h=new Date(f).toJSON();return l?h:h.slice(0,10)}function T(t,e){for(var n=String(t);n.lengthf)throw new Error("too late");return n}function o(t,e){var n=t.__transition;if(!n||!(n=n[e])||n.state>p)throw new Error("too late");return n}function i(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("too late");return n}function a(t,e,n){function r(t){n.state=h,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)}function o(r){var l,f,v,g;if(n.state!==h)return a();for(l in c)if(g=c[l],g.name===n.name){if(g.state===d)return Object(s.b)(o);g.state===m?(g.state=y,g.timer.stop(),g.on.call("interrupt",t,t.__data__,g.index,g.group),delete c[l]):+l=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t){var e=t.value,n=t.readonly,r=t.disabled,i=t.autofocus,u=t.onBlur,c=t.onFocus,l=t.options,f=(t.schema,t.formContext,t.registry,o(t,["value","readonly","disabled","autofocus","onBlur","onFocus","options","schema","formContext","registry"]));f.type=l.inputType||f.type||"text";var h=function(e){var n=e.target.value;return t.onChange(""===n?l.emptyValue:n)};return s.default.createElement("input",a({className:"form-control",readOnly:n,disabled:r,autoFocus:i,value:null==e?"":e},f,{onChange:h,onBlur:u&&function(t){return u(f.id,t.target.value)},onFocus:c&&function(t){return c(f.id,t.target.value)}}))}Object.defineProperty(e,"__esModule",{value:!0});var a=Object.assign||function(t){for(var e=1;e1){for(var d=Array(p),m=0;m1){for(var y=Array(v),g=0;g180||n<-180?n-360*Math.round(n/360):n):Object(s.a)(isNaN(t)?e:t)}function a(t){return 1==(t=+t)?u:function(e,n){return n-e?o(e,n,t):Object(s.a)(isNaN(e)?n:e)}}function u(t,e){var n=e-t;return n?r(t,n):Object(s.a)(isNaN(t)?e:t)}e.c=i,e.b=a,e.a=u;var s=n(163)},function(t,e,n){"use strict";var r=n(477);n.d(e,"a",function(){return r.a})},function(t,e,n){"use strict";function r(t){return t>1?0:t<-1?p:Math.acos(t)}function o(t){return t>=1?d:t<=-1?-d:Math.asin(t)}n.d(e,"a",function(){return i}),n.d(e,"d",function(){return a}),n.d(e,"e",function(){return u}),n.d(e,"h",function(){return s}),n.d(e,"i",function(){return c}),n.d(e,"k",function(){return l}),n.d(e,"l",function(){return f}),n.d(e,"f",function(){return h}),n.d(e,"j",function(){return p}),n.d(e,"g",function(){return d}),n.d(e,"m",function(){return m}),e.b=r,e.c=o;var i=Math.abs,a=Math.atan2,u=Math.cos,s=Math.max,c=Math.min,l=Math.sin,f=Math.sqrt,h=1e-12,p=Math.PI,d=p/2,m=2*p},function(t,e,n){"use strict";e.a=function(t,e){if((o=t.length)>1)for(var n,r,o,i=1,a=t[e[0]],u=a.length;i=0;)n[e]=e;return n}},function(t,e,n){"use strict";var r={};t.exports=r},function(t,e,n){"use strict";var r=n(4),o=(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,e,n,o,i,a,u,s){this.isInTransaction()&&r("27");var c,l;try{this._isInTransaction=!0,c=!0,this.initializeAll(0),l=t.call(e,n,o,i,a,u,s),c=!1}finally{try{if(c)try{this.closeAll(0)}catch(t){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return l},initializeAll:function(t){for(var e=this.transactionWrappers,n=t;n ]/,s=n(67),c=s(function(t,e){if(t.namespaceURI!==i.svg||"innerHTML"in t)t.innerHTML=e;else{r=r||document.createElement("div"),r.innerHTML="";for(var n=r.firstChild;n.firstChild;)t.appendChild(n.firstChild)}});if(o.canUseDOM){var l=document.createElement("div");l.innerHTML=" ",""===l.innerHTML&&(c=function(t,e){if(t.parentNode&&t.parentNode.replaceChild(t,t),a.test(e)||"<"===e[0]&&u.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}),l=null}t.exports=c},function(t,e,n){"use strict";function r(t){var e=""+t,n=i.exec(e);if(!n)return e;var r,o="",a=0,u=0;for(a=n.index;a]/;t.exports=o},function(t,e,n){"use strict";function r(t){return Object.prototype.hasOwnProperty.call(t,m)||(t[m]=p++,f[t[m]]={}),f[t[m]]}var o,i=n(5),a=n(59),u=n(236),s=n(121),c=n(237),l=n(63),f={},h=!1,p=0,d={topAbort:"abort",topAnimationEnd:c("animationend")||"animationend",topAnimationIteration:c("animationiteration")||"animationiteration",topAnimationStart:c("animationstart")||"animationstart",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",topTransitionEnd:c("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=i({},u,{ReactEventListener:null,injection:{injectReactEventListener:function(t){t.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=t}},setEnabled:function(t){v.ReactEventListener&&v.ReactEventListener.setEnabled(t)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(t,e){for(var n=e,o=r(n),i=a.registrationNameDependencies[t],u=0;u-1||a("96",t),!c.plugins[n]){e.extractEvents||a("97",t),c.plugins[n]=e;var r=e.eventTypes;for(var i in r)o(r[i],e,i)||a("98",i,t)}}}function o(t,e,n){c.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),c.eventNameDispatchConfigs[n]=t;var r=t.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var u=r[o];i(u,e,n)}return!0}return!!t.registrationName&&(i(t.registrationName,e,n),!0)}function i(t,e,n){c.registrationNameModules[t]&&a("100",t),c.registrationNameModules[t]=e,c.registrationNameDependencies[t]=e.eventTypes[n].dependencies}var a=n(4),u=(n(2),null),s={},c={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(t){u&&a("101"),u=Array.prototype.slice.call(t),r()},injectEventPluginsByName:function(t){var e=!1;for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];s.hasOwnProperty(n)&&s[n]===o||(s[n]&&a("102",n),s[n]=o,e=!0)}e&&r()},getPluginModuleForEvent:function(t){var e=t.dispatchConfig;if(e.registrationName)return c.registrationNameModules[e.registrationName]||null;if(void 0!==e.phasedRegistrationNames){var n=e.phasedRegistrationNames;for(var r in n)if(n.hasOwnProperty(r)){var o=c.registrationNameModules[n[r]];if(o)return o}}return null},_resetEventPlugins:function(){u=null;for(var t in s)s.hasOwnProperty(t)&&delete s[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 o in r)r.hasOwnProperty(o)&&delete r[o]}};t.exports=c},function(t,e,n){"use strict";function r(t){return"topMouseUp"===t||"topTouchEnd"===t||"topTouchCancel"===t}function o(t){return"topMouseMove"===t||"topTouchMove"===t}function i(t){return"topMouseDown"===t||"topTouchStart"===t}function a(t,e,n,r){var o=t.type||"unknown-event";t.currentTarget=y.getNodeFromInstance(r),e?m.invokeGuardedCallbackWithCatch(o,n,t):m.invokeGuardedCallback(o,n,t),t.currentTarget=null}function u(t,e){var n=t._dispatchListeners,r=t._dispatchInstances;if(Array.isArray(n))for(var o=0;o=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function a(){return{fields:n(423).default,widgets:n(431).default,definitions:{},formContext:{}}}function u(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.type;if("function"==typeof e)return function(t){return t.MergedWidget||function(){var e=t.defaultProps&&t.defaultProps.options||{};t.MergedWidget=function(n){var r=n.options,o=void 0===r?{}:r,a=i(n,["options"]);return U.default.createElement(t,D({options:D({},e,o)},a))}}(),t.MergedWidget}(e);if("string"!=typeof e)throw new Error("Unsupported widget definition: "+(void 0===e?"undefined":I(e)));if(n.hasOwnProperty(e)){return u(t,n[e],n)}if(!F.hasOwnProperty(r))throw new Error('No widget for type "'+r+'"');if(F[r].hasOwnProperty(e)){return u(t,n[F[r][e]],n)}throw new Error('No widget "'+e+'" for type "'+r+'"')}function s(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e;if(f(r)&&f(t.default))r=d(r,t.default);else if("default"in t)r=t.default;else{if("$ref"in t){var o=E(t.$ref,n);return s(o,r,n)}_(t)&&(r=t.items.map(function(t){return s(t,void 0,n)}))}switch(void 0===r&&(r=t.default),t.type){case"object":return Object.keys(t.properties||{}).reduce(function(e,o){return e[o]=s(t.properties[o],(r||{})[o],n),e},{});case"array":if(t.minItems){if(g(t,n))return[];var i=r?r.length:0;if(t.minItems>i){var a=r||[],u=new Array(t.minItems-i).fill(s(t.items,t.items.defaults,n));return a.concat(u)}}}return r}function c(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!f(t))throw new Error("Invalid schema: "+t);var r=O(t,n),o=s(r,t.default,n);return void 0===e?o:f(e)?d(o,e):e||o}function l(t){return Object.keys(t).filter(function(t){return 0===t.indexOf("ui:")}).reduce(function(e,n){var r=t[n];return"ui:widget"===n&&f(r)?(console.warn("Setting options via ui:widget object is deprecated, use ui:options instead"),D({},e,r.options||{},{widget:r.component})):"ui:options"===n&&f(r)?D({},e,r):D({},e,o({},n.substring(3),r))},{})}function f(t){return"object"===(void 0===t?"undefined":I(t))&&null!==t&&!Array.isArray(t)}function d(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Object.assign({},t);return Object.keys(e).reduce(function(r,o){var i=t[o],a=e[o];return t.hasOwnProperty(o)&&f(a)?r[o]=d(i,a,n):n&&Array.isArray(i)&&Array.isArray(a)?r[o]=i.concat(a):r[o]=a,r},r)}function p(t){if(""!==t){if(/\.$/.test(t))return t;if(/\.0$/.test(t))return t;var e=Number(t),n="number"==typeof e&&!Number.isNaN(e);return/\.\d*0$/.test(t)?t:n?e:t}}function h(t,e){if(!Array.isArray(e))return t;var n=function(t){return t.reduce(function(t,e){return t[e]=!0,t},{})},o=function(t){return t.length>1?"properties '"+t.join("', '")+"'":"property '"+t[0]+"'"},i=n(t),a=n(e),u=e.filter(function(t){return"*"!==t&&!i[t]});if(u.length)throw new Error("uiSchema order list contains extraneous "+o(u));var s=t.filter(function(t){return!a[t]}),c=e.indexOf("*");if(-1===c){if(s.length)throw new Error("uiSchema order list does not contain "+o(s));return e}if(c!==e.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");var l=[].concat(r(e));return l.splice.apply(l,[c,1].concat(r(s))),l}function m(t){return Array.isArray(t.enum)&&1===t.enum.length||t.hasOwnProperty("const")}function v(t){if(Array.isArray(t.enum)&&1===t.enum.length)return t.enum[0];if(t.hasOwnProperty("const"))return t.const;throw new Error("schema cannot be inferred as a constant")}function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=O(t,e),r=n.oneOf||n.anyOf;return!!Array.isArray(n.enum)||!!Array.isArray(r)&&r.every(function(t){return m(t)})}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!(!t.uniqueItems||!t.items)&&y(t.items,e)}function b(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("files"===e["ui:widget"])return!0;if(t.items){var r=O(t.items,n);return"string"===r.type&&"data-url"===r.format}return!1}function _(t){return Array.isArray(t.items)&&t.items.length>0&&t.items.every(function(t){return f(t)})}function x(t){return!0===t.additionalItems&&console.warn("additionalItems=true is currently not supported"),f(t.additionalItems)}function w(t){return t.enum?t.enum.map(function(e,n){return{label:t.enumNames&&t.enumNames[n]||String(e),value:e}}):(t.oneOf||t.anyOf).map(function(t,e){var n=v(t);return{label:t.title||String(n),value:n}})}function E(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=/^#\/definitions\/(.*)$/.exec(t);if(n&&n[1]){var r=n[1].split("/"),o=e,i=!0,a=!1,u=void 0;try{for(var s,c=r[Symbol.iterator]();!(i=(s=c.next()).done);i=!0){var l=s.value;if(l=l.replace(/~1/g,"/").replace(/~0/g,"~"),!o.hasOwnProperty(l))throw new Error("Could not find a definition for "+t+".");o=o[l]}}catch(t){a=!0,u=t}finally{try{!i&&c.return&&c.return()}finally{if(a)throw u}}return o}throw new Error("Could not find a definition for "+t+".")}function O(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t.hasOwnProperty("$ref"))return t;var n=E(t.$ref,e),r=(t.$ref,i(t,["$ref"]));return D({},n,r)}function C(t){return"[object Arguments]"===Object.prototype.toString.call(t)}function k(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(t===e)return!0;if("function"==typeof t||"function"==typeof e)return!0;if("object"!==(void 0===t?"undefined":I(t))||"object"!==(void 0===e?"undefined":I(e)))return!1;if(null===t||null===e)return!1;if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(t instanceof RegExp&&e instanceof RegExp)return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(C(t)||C(e)){if(!C(t)||!C(e))return!1;var o=Array.prototype.slice;return k(o.call(t),o.call(e),n,r)}if(t.constructor!==e.constructor)return!1;var i=Object.keys(t),a=Object.keys(e);if(0===i.length&&0===a.length)return!0;if(i.length!==a.length)return!1;for(var u=n.length;u--;)if(n[u]===t)return r[u]===e;n.push(t),r.push(e),i.sort(),a.sort();for(var s=i.length-1;s>=0;s--)if(i[s]!==a[s])return!1;for(var c=void 0,l=i.length-1;l>=0;l--)if(c=i[l],!k(t[c],e[c],n,r))return!1;return n.pop(),r.pop(),!0}function S(t,e,n){var r=t.props,o=t.state;return!k(r,e)||!k(o,n)}function j(t,e,n){var r={$id:e||"root"};if("$ref"in t){return j(O(t,n),e,n)}if("items"in t&&!t.items.$ref)return j(t.items,e,n);if("object"!==t.type)return r;for(var o in t.properties||{}){var i=t.properties[o],a=r.$id+"_"+o;r[o]=j(i,a,n)}return r}function P(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t)return{year:-1,month:-1,day:-1,hour:e?-1:0,minute:e?-1:0,second:e?-1:0};var n=new Date(t);if(Number.isNaN(n.getTime()))throw new Error("Unable to parse date "+t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:e?n.getUTCHours():0,minute:e?n.getUTCMinutes():0,second:e?n.getUTCSeconds():0}}function M(t){var e=t.year,n=t.month,r=t.day,o=t.hour,i=void 0===o?0:o,a=t.minute,u=void 0===a?0:a,s=t.second,c=void 0===s?0:s,l=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],f=Date.UTC(e,n-1,r,i,u,c),d=new Date(f).toJSON();return l?d:d.slice(0,10)}function A(t,e){for(var n=String(t);n.lengthf)throw new Error("too late");return n}function o(t,e){var n=t.__transition;if(!n||!(n=n[e])||n.state>p)throw new Error("too late");return n}function i(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("too late");return n}function a(t,e,n){function r(t){n.state=d,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)}function o(r){var l,f,v,g;if(n.state!==d)return a();for(l in c)if(g=c[l],g.name===n.name){if(g.state===h)return Object(s.b)(o);g.state===m?(g.state=y,g.timer.stop(),g.on.call("interrupt",t,t.__data__,g.index,g.group),delete c[l]):+l=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t){var e=t.value,n=t.readonly,r=t.disabled,i=t.autofocus,u=t.onBlur,c=t.onFocus,l=t.options,f=(t.schema,t.formContext,t.registry,o(t,["value","readonly","disabled","autofocus","onBlur","onFocus","options","schema","formContext","registry"]));f.type=l.inputType||f.type||"text";var d=function(e){var n=e.target.value;return t.onChange(""===n?l.emptyValue:n)};return s.default.createElement("input",a({className:"form-control",readOnly:n,disabled:r,autoFocus:i,value:null==e?"":e},f,{onChange:d,onBlur:u&&function(t){return u(f.id,t.target.value)},onFocus:c&&function(t){return c(f.id,t.target.value)}}))}Object.defineProperty(e,"__esModule",{value:!0});var a=Object.assign||function(t){for(var e=1;e1){for(var h=Array(p),m=0;m1){for(var y=Array(v),g=0;g180||n<-180?n-360*Math.round(n/360):n):Object(s.a)(isNaN(t)?e:t)}function a(t){return 1==(t=+t)?u:function(e,n){return n-e?o(e,n,t):Object(s.a)(isNaN(e)?n:e)}}function u(t,e){var n=e-t;return n?r(t,n):Object(s.a)(isNaN(t)?e:t)}e.c=i,e.b=a,e.a=u;var s=n(232)},function(t,e,n){"use strict";var r=n(583);n.d(e,"a",function(){return r.a})},function(t,e,n){"use strict";function r(t){return t>1?0:t<-1?p:Math.acos(t)}function o(t){return t>=1?h:t<=-1?-h:Math.asin(t)}n.d(e,"a",function(){return i}),n.d(e,"d",function(){return a}),n.d(e,"e",function(){return u}),n.d(e,"h",function(){return s}),n.d(e,"i",function(){return c}),n.d(e,"k",function(){return l}),n.d(e,"l",function(){return f}),n.d(e,"f",function(){return d}),n.d(e,"j",function(){return p}),n.d(e,"g",function(){return h}),n.d(e,"m",function(){return m}),e.b=r,e.c=o;var i=Math.abs,a=Math.atan2,u=Math.cos,s=Math.max,c=Math.min,l=Math.sin,f=Math.sqrt,d=1e-12,p=Math.PI,h=p/2,m=2*p},function(t,e,n){"use strict";e.a=function(t,e){if((o=t.length)>1)for(var n,r,o,i=1,a=t[e[0]],u=a.length;i=0;)n[e]=e;return n}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports={}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){function r(t){return null==t?void 0===t?s:u:c&&c in Object(t)?i(t):a(t)}var o=n(168),i=n(659),a=n(660),u="[object Null]",s="[object Undefined]",c=o?o.toStringTag:void 0;t.exports=r},function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){"use strict";var r={};t.exports=r},function(t,e,n){"use strict";var r=n(4),o=(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,e,n,o,i,a,u,s){this.isInTransaction()&&r("27");var c,l;try{this._isInTransaction=!0,c=!0,this.initializeAll(0),l=t.call(e,n,o,i,a,u,s),c=!1}finally{try{if(c)try{this.closeAll(0)}catch(t){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return l},initializeAll:function(t){for(var e=this.transactionWrappers,n=t;n ]/,s=n(108),c=s(function(t,e){if(t.namespaceURI!==i.svg||"innerHTML"in t)t.innerHTML=e;else{r=r||document.createElement("div"),r.innerHTML="";for(var n=r.firstChild;n.firstChild;)t.appendChild(n.firstChild)}});if(o.canUseDOM){var l=document.createElement("div");l.innerHTML=" ",""===l.innerHTML&&(c=function(t,e){if(t.parentNode&&t.parentNode.replaceChild(t,t),a.test(e)||"<"===e[0]&&u.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}),l=null}t.exports=c},function(t,e,n){"use strict";function r(t){var e=""+t,n=i.exec(e);if(!n)return e;var r,o="",a=0,u=0;for(a=n.index;a]/;t.exports=o},function(t,e,n){"use strict";function r(t){return Object.prototype.hasOwnProperty.call(t,m)||(t[m]=p++,f[t[m]]={}),f[t[m]]}var o,i=n(5),a=n(100),u=n(343),s=n(190),c=n(344),l=n(104),f={},d=!1,p=0,h={topAbort:"abort",topAnimationEnd:c("animationend")||"animationend",topAnimationIteration:c("animationiteration")||"animationiteration",topAnimationStart:c("animationstart")||"animationstart",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",topTransitionEnd:c("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=i({},u,{ReactEventListener:null,injection:{injectReactEventListener:function(t){t.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=t}},setEnabled:function(t){v.ReactEventListener&&v.ReactEventListener.setEnabled(t)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(t,e){for(var n=e,o=r(n),i=a.registrationNameDependencies[t],u=0;u-1||a("96",t),!c.plugins[n]){e.extractEvents||a("97",t),c.plugins[n]=e;var r=e.eventTypes;for(var i in r)o(r[i],e,i)||a("98",i,t)}}}function o(t,e,n){c.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),c.eventNameDispatchConfigs[n]=t;var r=t.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var u=r[o];i(u,e,n)}return!0}return!!t.registrationName&&(i(t.registrationName,e,n),!0)}function i(t,e,n){c.registrationNameModules[t]&&a("100",t),c.registrationNameModules[t]=e,c.registrationNameDependencies[t]=e.eventTypes[n].dependencies}var a=n(4),u=(n(2),null),s={},c={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(t){u&&a("101"),u=Array.prototype.slice.call(t),r()},injectEventPluginsByName:function(t){var e=!1;for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];s.hasOwnProperty(n)&&s[n]===o||(s[n]&&a("102",n),s[n]=o,e=!0)}e&&r()},getPluginModuleForEvent:function(t){var e=t.dispatchConfig;if(e.registrationName)return c.registrationNameModules[e.registrationName]||null;if(void 0!==e.phasedRegistrationNames){var n=e.phasedRegistrationNames;for(var r in n)if(n.hasOwnProperty(r)){var o=c.registrationNameModules[n[r]];if(o)return o}}return null},_resetEventPlugins:function(){u=null;for(var t in s)s.hasOwnProperty(t)&&delete s[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 o in r)r.hasOwnProperty(o)&&delete r[o]}};t.exports=c},function(t,e,n){"use strict";function r(t){return"topMouseUp"===t||"topTouchEnd"===t||"topTouchCancel"===t}function o(t){return"topMouseMove"===t||"topTouchMove"===t}function i(t){return"topMouseDown"===t||"topTouchStart"===t}function a(t,e,n,r){var o=t.type||"unknown-event";t.currentTarget=y.getNodeFromInstance(r),e?m.invokeGuardedCallbackWithCatch(o,n,t):m.invokeGuardedCallback(o,n,t),t.currentTarget=null}function u(t,e){var n=t._dispatchListeners,r=t._dispatchInstances;if(Array.isArray(n))for(var o=0;o1)for(var n=1;n0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}function i(t,e){var n=u.get(t);if(!n){return null}return n}var a=n(4),u=(n(17),n(33)),s=(n(12),n(16)),c=(n(2),n(3),{isMounted:function(t){var e=u.get(t);return!!e&&!!e._renderedComponent},enqueueCallback:function(t,e,n){c.validateCallback(e,n);var o=i(t);if(!o)return null;o._pendingCallbacks?o._pendingCallbacks.push(e):o._pendingCallbacks=[e],r(o)},enqueueCallbackInternal:function(t,e){t._pendingCallbacks?t._pendingCallbacks.push(e):t._pendingCallbacks=[e],r(t)},enqueueForceUpdate:function(t){var e=i(t,"forceUpdate");e&&(e._pendingForceUpdate=!0,r(e))},enqueueReplaceState:function(t,e,n){var o=i(t,"replaceState");o&&(o._pendingStateQueue=[e],o._pendingReplaceState=!0,void 0!==n&&null!==n&&(c.validateCallback(n,"replaceState"),o._pendingCallbacks?o._pendingCallbacks.push(n):o._pendingCallbacks=[n]),r(o))},enqueueSetState:function(t,e){var n=i(t,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(e),r(n)}},enqueueElementInternal:function(t,e,n){t._pendingElement=e,t._context=n,r(t)},validateCallback:function(t,e){t&&"function"!=typeof t&&a("122",e,o(t))}});t.exports=c},function(t,e,n){"use strict";var r=(n(5),n(11)),o=(n(3),r);t.exports=o},function(t,e,n){"use strict";function r(t){var e,n=t.keyCode;return"charCode"in t?0===(e=t.charCode)&&13===n&&(e=13):e=n,e>=32||13===e?e:0}t.exports=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.locationsAreEqual=e.createLocation=void 0;var o=Object.assign||function(t){for(var e=1;e may have only one child element"),this.unlisten=r.listen(function(){t.setState({match:t.computeMatch(r.location.pathname)})})},e.prototype.componentWillReceiveProps=function(t){u()(this.props.history===t.history,"You cannot change ")},e.prototype.componentWillUnmount=function(){this.unlisten()},e.prototype.render=function(){var t=this.props.children;return t?f.a.Children.only(t):null},e}(f.a.Component);m.propTypes={history:p.a.object.isRequired,children:p.a.node},m.contextTypes={router:p.a.object},m.childContextTypes={router:p.a.object.isRequired},e.a=m},function(t,e,n){"use strict";var r=n(293),o=n.n(r),i={},a=0,u=function(t,e){var n=""+e.end+e.strict+e.sensitive,r=i[n]||(i[n]={});if(r[t])return r[t];var u=[],s=o()(t,u,e),c={re:s,keys:u};return a<1e4&&(r[t]=c,a++),c},s=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof e&&(e={path:e});var n=e,r=n.path,o=void 0===r?"/":r,i=n.exact,a=void 0!==i&&i,s=n.strict,c=void 0!==s&&s,l=n.sensitive,f=void 0!==l&&l,h=u(o,{end:a,strict:c,sensitive:f}),p=h.re,d=h.keys,m=p.exec(t);if(!m)return null;var v=m[0],y=m.slice(1),g=t===v;return a&&!g?null:{path:o,url:"/"===o&&""===v?"/":v,isExact:g,params:d.reduce(function(t,e,n){return t[e.name]=y[n],t},{})}};e.a=s},function(t,e,n){"use strict";var r=n(7),o=n.n(r),i=function(){var t=null,e=function(e){return o()(null==t,"A history supports only one prompt at a time"),t=e,function(){t===e&&(t=null)}},n=function(e,n,r,i){if(null!=t){var a="function"==typeof t?t(e,n):t;"string"==typeof a?"function"==typeof r?r(a,i):(o()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),i(!0)):i(!1!==a)}else i(!0)},r=[];return{setPrompt:e,confirmTransitionTo:n,appendListener:function(t){var e=!0,n=function(){e&&t.apply(void 0,arguments)};return r.push(n),function(){e=!1,r=r.filter(function(t){return t!==n})}},notifyListeners:function(){for(var t=arguments.length,e=Array(t),n=0;n=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),r.a.hasOwnProperty(e)?{space:r.a[e],local:t}:t}},function(t,e,n){"use strict";n.d(e,"b",function(){return r});var r="http://www.w3.org/1999/xhtml";e.a={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},function(t,e,n){"use strict";var r=n(89);e.a=function(){for(var t,e=r.c;t=e.sourceEvent;)e=t;return e}},function(t,e,n){"use strict";function r(t,e,n){return t=o(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function o(t,e,n){return function(r){var o=l;l=r;try{t.call(this,this.__data__,e,n)}finally{l=o}}}function i(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}function a(t){return function(){var e=this.__on;if(e){for(var n,r=0,o=-1,i=e.length;r=0&&e._call.call(null,t),e=e._next;--d}function s(){b=(g=w.now())+_,d=m=0;try{u()}finally{d=0,l(),b=0}}function c(){var t=w.now(),e=t-g;e>y&&(_-=e,g=t)}function l(){for(var t,e,n=h,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:h=e);p=t,f(r)}function f(t){if(!d){m&&(m=clearTimeout(m));t-b>24?(t<1/0&&(m=setTimeout(s,t-w.now()-_)),v&&(v=clearInterval(v))):(v||(g=w.now(),v=setInterval(c,y)),d=1,x(s))}}e.b=r,e.a=i,e.c=a;var h,p,d=0,m=0,v=0,y=1e3,g=0,b=0,_=0,w="object"==typeof performance&&performance.now?performance:Date,x="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};i.prototype=a.prototype={constructor:i,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?r():+n)+(null==e?0:+e),this._next||p===this||(p?p._next=this:h=this,p=this),this._call=t,this._time=n,f()},stop:function(){this._call&&(this._call=null,this._time=1/0,f())}}},function(t,e,n){"use strict";var r=n(22),o=n(161),i=n(164),a=n(165),u=n(53),s=n(166),c=n(167),l=n(163);e.a=function(t,e){var n,f=typeof e;return null==e||"boolean"===f?Object(l.a)(e):("number"===f?u.a:"string"===f?(n=Object(r.a)(e))?(e=n,o.a):c.a:e instanceof r.a?o.a:e instanceof Date?a.a:Array.isArray(e)?i.a:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?s.a:u.a)(t,e)}},function(t,e,n){"use strict";function r(){}function o(t){var e;return t=(t+"").trim().toLowerCase(),(e=w.exec(t))?(e=parseInt(e[1],16),new c(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1)):(e=x.exec(t))?i(parseInt(e[1],16)):(e=O.exec(t))?new c(e[1],e[2],e[3],1):(e=E.exec(t))?new c(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=C.exec(t))?a(e[1],e[2],e[3],e[4]):(e=S.exec(t))?a(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=k.exec(t))?l(e[1],e[2]/100,e[3]/100,1):(e=j.exec(t))?l(e[1],e[2]/100,e[3]/100,e[4]):P.hasOwnProperty(t)?i(P[t]):"transparent"===t?new c(NaN,NaN,NaN,0):null}function i(t){return new c(t>>16&255,t>>8&255,255&t,1)}function a(t,e,n,r){return r<=0&&(t=e=n=NaN),new c(t,e,n,r)}function u(t){return t instanceof r||(t=o(t)),t?(t=t.rgb(),new c(t.r,t.g,t.b,t.opacity)):new c}function s(t,e,n,r){return 1===arguments.length?u(t):new c(t,e,n,null==r?1:r)}function c(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function l(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new p(t,e,n,r)}function f(t){if(t instanceof p)return new p(t.h,t.s,t.l,t.opacity);if(t instanceof r||(t=o(t)),!t)return new p;if(t instanceof p)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,a=Math.min(e,n,i),u=Math.max(e,n,i),s=NaN,c=u-a,l=(u+a)/2;return c?(s=e===u?(n-i)/c+6*(n0&&l<1?0:s,new p(s,c,l,t.opacity)}function h(t,e,n,r){return 1===arguments.length?f(t):new p(t,e,n,null==r?1:r)}function p(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function d(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}e.a=r,n.d(e,"d",function(){return v}),n.d(e,"c",function(){return y}),e.e=o,e.h=u,e.g=s,e.b=c,e.f=h;var m=n(100),v=.7,y=1/v,g="\\s*([+-]?\\d+)\\s*",b="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",_="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",w=/^#([0-9a-f]{3})$/,x=/^#([0-9a-f]{6})$/,O=new RegExp("^rgb\\("+[g,g,g]+"\\)$"),E=new RegExp("^rgb\\("+[_,_,_]+"\\)$"),C=new RegExp("^rgba\\("+[g,g,g,b]+"\\)$"),S=new RegExp("^rgba\\("+[_,_,_,b]+"\\)$"),k=new RegExp("^hsl\\("+[b,_,_]+"\\)$"),j=new RegExp("^hsla\\("+[b,_,_,b]+"\\)$"),P={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,rebeccapurple:6697881,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};Object(m.a)(r,o,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Object(m.a)(c,s,Object(m.b)(r,{brighter:function(t){return t=null==t?y:Math.pow(y,t),new c(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?v:Math.pow(v,t),new c(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),Object(m.a)(p,h,Object(m.b)(r,{brighter:function(t){return t=null==t?y:Math.pow(y,t),new p(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?v:Math.pow(v,t),new p(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,o=2*n-r;return new c(d(t>=240?t-240:t+120,o,r),d(t,o,r),d(t<120?t+240:t-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}))},function(t,e,n){"use strict";function r(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}e.b=r,e.a=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t}},function(t,e,n){"use strict";function r(t,e,n,r,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*n+(1+3*t+3*i-3*a)*r+a*o)/6}e.a=r,e.b=function(t){var e=t.length-1;return function(n){var o=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[o],a=t[o+1],u=o>0?t[o-1]:2*i-a,s=oi.f){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,o=(o*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>i.f){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/f,u=(u*l+t._y1*t._l23_2a-n*t._l12_2a)/f}t._context.bezierCurveTo(r,o,a,u,t._x2,t._y2)}function o(t,e){this._context=t,this._alpha=e}e.b=r;var i=n(40),a=n(58);o.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,o=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:r(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},e.a=function t(e){function n(t){return e?new o(t,e):new a.a(t,0)}return n.alpha=function(e){return t(+e)},n}(.5)},function(t,e,n){"use strict";function r(t){for(var e,n=0,r=-1,o=t.length;++r2&&void 0!==arguments[2]?arguments[2]:0,a=[];if(0===n&&t===e)return!0;if(i(t)&&!i(e)||!i(t)&&i(e))return!1;var u=!0,s=!1,l=void 0;try{for(var f,h=Object.keys(t)[Symbol.iterator]();!(u=(f=h.next()).done);u=!0){var p=f.value;if(r(t,p)&&r(e,p)&&n0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r={};if(0===Object.keys(t||{}).length)return e&&!i(e)?e:{};var o=!0,u=!1,l=void 0;try{for(var f,h=Object.keys(t)[Symbol.iterator]();!(o=(f=h.next()).done);o=!0){var p=f.value;!!(e[p]&&"object"===s(e[p])&&"object"===s(t[p])&&n .":"function"==typeof e?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=e&&void 0!==e.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,u=v.createElement(U,{child:e});if(t){var s=x.get(t);a=s._processChildContext(s._context)}else a=k;var l=h(n);if(l){var f=l._currentElement,d=f.props.child;if(M(d,e)){var m=l._renderedComponent.getPublicInstance(),y=r&&function(){r.call(m)};return F._updateRootComponent(l,u,a,n,y),m}F.unmountComponentAtNode(n)}var g=o(n),b=g&&!!i(g),_=c(n),w=b&&!l&&!_,O=F._renderNewRootComponent(u,n,w,a)._renderedComponent.getPublicInstance();return r&&r.call(O),O},render:function(t,e,n){return F._renderSubtreeIntoContainer(null,t,e,n)},unmountComponentAtNode:function(t){l(t)||p("40");var e=h(t);if(!e){c(t),1===t.nodeType&&t.hasAttribute(A);return!1}return delete D[e._instance.rootID],S.batchedUpdates(s,e,t,!1),!0},_mountImageIntoNode:function(t,e,n,i,a){if(l(e)||p("41"),i){var u=o(e);if(O.canReuseMarkup(t,u))return void g.precacheNode(n,u);var s=u.getAttribute(O.CHECKSUM_ATTR_NAME);u.removeAttribute(O.CHECKSUM_ATTR_NAME);var c=u.outerHTML;u.setAttribute(O.CHECKSUM_ATTR_NAME,s);var f=t,h=r(f,c),m=" (client) "+f.substring(h-20,h+20)+"\n (server) "+c.substring(h-20,h+20);e.nodeType===R&&p("42",m)}if(e.nodeType===R&&p("43"),a.useCreateElement){for(;e.lastChild;)e.removeChild(e.lastChild);d.insertTreeBefore(e,t,null)}else P(e,t),g.precacheNode(n,e.firstChild)}};t.exports=F},function(t,e,n){"use strict";function r(t){for(var e;(e=t._renderedNodeType)===o.COMPOSITE;)t=t._renderedComponent;return e===o.HOST?t._renderedComponent:e===o.EMPTY?null:void 0}var o=n(128);t.exports=r},function(t,e,n){"use strict";function r(t){return"/"===t.charAt(0)}function o(t,e){for(var n=e,r=n+1,o=t.length;r1&&void 0!==arguments[1]?arguments[1]:"",n=t&&t.split("/")||[],i=e&&e.split("/")||[],a=t&&r(t),u=e&&r(e),s=a||u;if(t&&r(t)?i=n:n.length&&(i.pop(),i=i.concat(n)),!i.length)return"/";var c=void 0;if(i.length){var l=i[i.length-1];c="."===l||".."===l||""===l}else c=!1;for(var f=0,h=i.length;h>=0;h--){var p=i[h];"."===p?o(i,h):".."===p?(o(i,h),f++):f&&(o(i,h),f--)}if(!s)for(;f--;f)i.unshift("..");!s||""===i[0]||i[0]&&r(i[0])||i.unshift("");var d=i.join("/");return c&&"/"!==d.substr(-1)&&(d+="/"),d}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i},function(t,e,n){"use strict";function r(t,e){if(t===e)return!0;if(null==t||null==e)return!1;if(Array.isArray(t))return Array.isArray(e)&&t.length===e.length&&t.every(function(t,n){return r(t,e[n])});var n=void 0===t?"undefined":o(t);if(n!==(void 0===e?"undefined":o(e)))return!1;if("object"===n){var i=t.valueOf(),a=e.valueOf();if(i!==t||a!==e)return r(i,a);var u=Object.keys(t),s=Object.keys(e);return u.length===s.length&&u.every(function(n){return r(t[n],e[n])})}return!1}Object.defineProperty(e,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default=r},function(t,e,n){"use strict";e.__esModule=!0;e.canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement),e.addEventListener=function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},e.removeEventListener=function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},e.getConfirmation=function(t,e){return e(window.confirm(t))},e.supportsHistory=function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},e.supportsPopStateOnHashChange=function(){return-1===window.navigator.userAgent.indexOf("Trident")},e.supportsGoWithoutReloadUsingHash=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},e.isExtraneousPopstateEvent=function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")}},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=n(0),s=n.n(u),c=n(1),l=n.n(c),f=n(13),h=n.n(f),p=Object.assign||function(t){for(var e=1;e outside a ");var i=this.context.router.history.createHref("string"==typeof e?{pathname:e}:e);return s.a.createElement("a",p({},o,{onClick:this.handleClick,href:i,ref:n}))},e}(s.a.Component);m.propTypes={onClick:l.a.func,target:l.a.string,replace:l.a.bool,to:l.a.oneOfType([l.a.string,l.a.object]).isRequired,innerRef:l.a.oneOfType([l.a.string,l.a.func])},m.defaultProps={replace:!1},m.contextTypes={router:l.a.shape({history:l.a.shape({push:l.a.func.isRequired,replace:l.a.func.isRequired,createHref:l.a.func.isRequired}).isRequired}).isRequired},e.a=m},function(t,e,n){"use strict";var r=n(143);e.a=r.a},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(7),u=n.n(a),s=n(13),c=n.n(s),l=n(0),f=n.n(l),h=n(1),p=n.n(h),d=n(81),m=Object.assign||function(t){for(var e=1;e or withRouter() outside a ");var s=e.route,l=(r||s.location).pathname;return o?Object(d.a)(l,{path:o,strict:i,exact:a,sensitive:u}):s.match},e.prototype.componentWillMount=function(){u()(!(this.props.component&&this.props.render),"You should not use and in the same route; will be ignored"),u()(!(this.props.component&&this.props.children&&!v(this.props.children)),"You should not use and in the same route; will be ignored"),u()(!(this.props.render&&this.props.children&&!v(this.props.children)),"You should not use and in the same route; will be ignored")},e.prototype.componentWillReceiveProps=function(t,e){u()(!(t.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),u()(!(!t.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(t,e.router)})},e.prototype.render=function(){var t=this.state.match,e=this.props,n=e.children,r=e.component,o=e.render,i=this.context.router,a=i.history,u=i.route,s=i.staticContext,c=this.props.location||u.location,l={match:t,location:c,history:a,staticContext:s};return r?t?f.a.createElement(r,l):null:o?t?o(l):null:n?"function"==typeof n?n(l):v(n)?null:f.a.Children.only(n):null},e}(f.a.Component);y.propTypes={computedMatch:p.a.object,path:p.a.string,exact:p.a.bool,strict:p.a.bool,sensitive:p.a.bool,component:p.a.func,render:p.a.func,children:p.a.oneOfType([p.a.func,p.a.node]),location:p.a.object},y.contextTypes={router:p.a.shape({history:p.a.object.isRequired,route:p.a.object.isRequired,staticContext:p.a.object})},y.childContextTypes={router:p.a.object.isRequired},e.a=y},function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return o}),n.d(e,"e",function(){return i}),n.d(e,"c",function(){return a}),n.d(e,"g",function(){return u}),n.d(e,"h",function(){return s}),n.d(e,"f",function(){return c}),n.d(e,"d",function(){return l});var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o=function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},i=function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},a=function(t,e){return e(window.confirm(t))},u=function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},s=function(){return-1===window.navigator.userAgent.indexOf("Trident")},c=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},l=function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")}},function(t,e,n){(function(t,e){!function(t,n){"use strict";function r(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n",'"',"`"," ","\r","\n","\t"],d=["{","}","|","\\","^","`"].concat(p),m=["'"].concat(d),v=["%","/","?",";","#"].concat(m),y=["/","?","#"],g=/^[+a-z0-9A-Z_-]{0,63}$/,b=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},x={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},O=n(350);r.prototype.parse=function(t,e,n){if(!c.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var r=t.indexOf("?"),o=-1!==r&&r127?R+="x":R+=N[I];if(!R.match(g)){var L=T.slice(0,S),U=T.slice(S+1),F=N.match(b);F&&(L.push(F[1]),U.unshift(F[2])),U.length&&(u="/"+U.join(".")+u),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),M||(this.hostname=s.toASCII(this.hostname));var q=this.port?":"+this.port:"",W=this.hostname||"";this.host=W+q,this.href+=this.host,M&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==u[0]&&(u="/"+u))}if(!_[d])for(var S=0,A=m.length;S0)&&n.host.split("@");C&&(n.auth=C.shift(),n.host=n.hostname=C.shift())}return n.search=t.search,n.query=t.query,c.isNull(n.pathname)&&c.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!O.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var S=O.slice(-1)[0],k=(n.host||t.host||O.length>1)&&("."===S||".."===S)||""===S,j=0,P=O.length;P>=0;P--)S=O[P],"."===S?O.splice(P,1):".."===S?(O.splice(P,1),j++):j&&(O.splice(P,1),j--);if(!b&&!_)for(;j--;j)O.unshift("..");!b||""===O[0]||O[0]&&"/"===O[0].charAt(0)||O.unshift(""),k&&"/"!==O.join("/").substr(-1)&&O.push("");var M=""===O[0]||O[0]&&"/"===O[0].charAt(0);if(E){n.hostname=n.host=M?"":O.length?O.shift():"";var C=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");C&&(n.auth=C.shift(),n.host=n.hostname=C.shift())}return b=b||n.host&&O.length,b&&!M&&O.unshift(""),O.length?n.pathname=O.join("/"):(n.pathname=null,n.path=null),c.isNull(n.pathname)&&c.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},r.prototype.parseHost=function(){var t=this.host,e=f.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(361);n.d(e,"drag",function(){return r.a});var o=n(154);n.d(e,"dragDisable",function(){return o.a}),n.d(e,"dragEnable",function(){return o.b})},function(t,e,n){"use strict";var r=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var o=document.documentElement;if(!o.matches){var i=o.webkitMatchesSelector||o.msMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector;r=function(t){return function(){return i.call(this,t)}}}}e.a=r},function(t,e,n){"use strict";function r(){return[]}e.a=function(t){return null==t?r:function(){return this.querySelectorAll(t)}}},function(t,e,n){"use strict";function r(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}e.a=r;var o=n(152),i=n(14);e.b=function(){return new i.a(this._enter||this._groups.map(o.a),this._parents)},r.prototype={constructor:r,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}}},function(t,e,n){"use strict";e.a=function(t){return new Array(t.length)}},function(t,e,n){"use strict";function r(t){return function(){this.style.removeProperty(t)}}function o(t,e,n){return function(){this.style.setProperty(t,e,n)}}function i(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function a(t,e){return t.style.getPropertyValue(e)||Object(u.a)(t).getComputedStyle(t,null).getPropertyValue(e)}e.b=a;var u=n(92);e.a=function(t,e,n){return arguments.length>1?this.each((null==e?r:"function"==typeof e?i:o)(t,e,null==n?"":n)):a(this.node(),t)}},function(t,e,n){"use strict";function r(t,e){var n=t.document.documentElement,r=Object(o.select)(t).on("dragstart.drag",null);e&&(r.on("click.drag",i.a,!0),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}e.b=r;var o=n(8),i=n(155);e.a=function(t){var e=t.document.documentElement,n=Object(o.select)(t).on("dragstart.drag",i.a,!0);"onselectstart"in e?n.on("selectstart.drag",i.a,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}},function(t,e,n){"use strict";function r(){o.event.stopImmediatePropagation()}e.b=r;var o=n(8);e.a=function(){o.event.preventDefault(),o.event.stopImmediatePropagation()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(398);n.d(e,"forceCenter",function(){return r.a});var o=n(399);n.d(e,"forceCollide",function(){return o.a});var i=n(413);n.d(e,"forceLink",function(){return i.a});var a=n(419);n.d(e,"forceManyBody",function(){return a.a});var u=n(159);n.d(e,"forceSimulation",function(){return u.a});var s=n(422);n.d(e,"forceX",function(){return s.a});var c=n(423);n.d(e,"forceY",function(){return c.a})},function(t,e,n){"use strict";var r=n(400);n.d(e,"a",function(){return r.a})},function(t,e,n){"use strict";var r=(n(414),n(415),n(95));n.d(e,"a",function(){return r.a});n(416),n(417),n(418)},function(t,e,n){"use strict";function r(t){return t.x}function o(t){return t.y}e.b=r,e.c=o;var i=n(51),a=n(158),u=n(96),s=Math.PI*(3-Math.sqrt(5));e.a=function(t){function e(){n(),y.call("tick",c),l1?(null==e?m.remove(t):m.set(t,o(e)),c):m.get(t)},find:function(e,n,r){var o,i,a,u,s,c=0,l=t.length;for(null==r?r=1/0:r*=r,c=0;c1?(y.on(t,e),c):y.on(t)}}}},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return o});var r=Math.PI/180,o=180/Math.PI},function(t,e,n){"use strict";function r(t){return function(e){var n,r,i=e.length,a=new Array(i),u=new Array(i),s=new Array(i);for(n=0;nl&&(c=e.slice(l,c),h[f]?h[f]+=c:h[++f]=c),(n=n[0])===(s=s[0])?h[f]?h[f]+=s:h[++f]=s:(h[++f]=null,p.push({i:f,x:Object(i.a)(n,s)})),l=u.lastIndex;return lr.d&&n.state=o;--i)d.point(y[i],g[i]);d.lineEnd(),d.areaEnd()}v&&(y[e]=+n(a,e,t),g[e]=+c(a,e,t),d.point(s?+s(a,e,t):y[e],l?+l(a,e,t):g[e]))}if(u)return d=null,u+""||null}function e(){return Object(a.a)().defined(f).curve(p).context(h)}var n=u.a,s=null,c=Object(o.a)(0),l=u.b,f=Object(o.a)(!0),h=null,p=i.a,d=null;return t.x=function(e){return arguments.length?(n="function"==typeof e?e:Object(o.a)(+e),s=null,t):n},t.x0=function(e){return arguments.length?(n="function"==typeof e?e:Object(o.a)(+e),t):n},t.x1=function(e){return arguments.length?(s=null==e?null:"function"==typeof e?e:Object(o.a)(+e),t):s},t.y=function(e){return arguments.length?(c="function"==typeof e?e:Object(o.a)(+e),l=null,t):c},t.y0=function(e){return arguments.length?(c="function"==typeof e?e:Object(o.a)(+e),t):c},t.y1=function(e){return arguments.length?(l=null==e?null:"function"==typeof e?e:Object(o.a)(+e),t):l},t.lineX0=t.lineY0=function(){return e().x(n).y(c)},t.lineY1=function(){return e().x(n).y(l)},t.lineX1=function(){return e().x(s).y(c)},t.defined=function(e){return arguments.length?(f="function"==typeof e?e:Object(o.a)(!!e),t):f},t.curve=function(e){return arguments.length?(p=e,null!=h&&(d=p(h)),t):p},t.context=function(e){return arguments.length?(null==e?h=d=null:d=p(h=e),t):h},t}},function(t,e,n){"use strict";function r(t){this._curve=t}function o(t){function e(e){return new r(t(e))}return e._curve=t,e}n.d(e,"a",function(){return a}),e.b=o;var i=n(55),a=o(i.a);r.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}}},function(t,e,n){"use strict";function r(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(Object(o.b)(t)):e()._curve},t}e.b=r;var o=n(178),i=n(102);e.a=function(){return r(Object(i.a)().curve(o.a))}},function(t,e,n){"use strict";e.a=function(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=Array.prototype.slice},function(t,e,n){"use strict";var r=n(40);e.a={draw:function(t,e){var n=Math.sqrt(e/r.j);t.moveTo(n,0),t.arc(0,0,n,0,r.m)}}},function(t,e,n){"use strict";e.a={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}}},function(t,e,n){"use strict";var r=Math.sqrt(1/3),o=2*r;e.a={draw:function(t,e){var n=Math.sqrt(e/o),i=n*r;t.moveTo(0,-n),t.lineTo(i,0),t.lineTo(0,n),t.lineTo(-i,0),t.closePath()}}},function(t,e,n){"use strict";var r=n(40),o=Math.sin(r.j/10)/Math.sin(7*r.j/10),i=Math.sin(r.m/10)*o,a=-Math.cos(r.m/10)*o;e.a={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),o=i*n,u=a*n;t.moveTo(0,-n),t.lineTo(o,u);for(var s=1;s<5;++s){var c=r.m*s/5,l=Math.cos(c),f=Math.sin(c);t.lineTo(f*n,-l*n),t.lineTo(l*o-f*u,f*o+l*u)}t.closePath()}}},function(t,e,n){"use strict";e.a={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}}},function(t,e,n){"use strict";var r=Math.sqrt(3);e.a={draw:function(t,e){var n=-Math.sqrt(e/(3*r));t.moveTo(0,2*n),t.lineTo(-r*n,-n),t.lineTo(r*n,-n),t.closePath()}}},function(t,e,n){"use strict";var r=-.5,o=Math.sqrt(3)/2,i=1/Math.sqrt(12),a=3*(i/2+1);e.a={draw:function(t,e){var n=Math.sqrt(e/a),u=n/2,s=n*i,c=u,l=n*i+n,f=-c,h=l;t.moveTo(u,s),t.lineTo(c,l),t.lineTo(f,h),t.lineTo(r*u-o*s,o*u+r*s),t.lineTo(r*c-o*l,o*c+r*l),t.lineTo(r*f-o*h,o*f+r*h),t.lineTo(r*u+o*s,r*s-o*u),t.lineTo(r*c+o*l,r*l-o*c),t.lineTo(r*f+o*h,r*h-o*f),t.closePath()}}},function(t,e,n){"use strict";function r(t,e){this._context=t,this._k=(1-e)/6}e.a=r;var o=n(56),i=n(58);r.prototype={areaStart:o.a,areaEnd:o.a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Object(i.c)(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},e.b=function t(e){function n(t){return new r(t,e)}return n.tension=function(e){return t(+e)},n}(0)},function(t,e,n){"use strict";function r(t,e){this._context=t,this._k=(1-e)/6}e.a=r;var o=n(58);r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Object(o.c)(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},e.b=function t(e){function n(t){return new r(t,e)}return n.tension=function(e){return t(+e)},n}(0)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=n(0),i=r(o),a=n(206),u=r(a),s=n(283),c=n(311),l=r(c),f=document.getElementById("app");u.default.render(i.default.createElement(s.BrowserRouter,null,i.default.createElement("div",null,i.default.createElement(s.Route,{path:"/",component:l.default}))),f)},function(t,e,n){"use strict";var r=function(){};t.exports=r},function(t,e,n){"use strict";function r(t){return(""+t).replace(_,"$&/")}function o(t,e){this.func=t,this.context=e,this.count=0}function i(t,e,n){var r=t.func,o=t.context;r.call(o,e,t.count++)}function a(t,e,n){if(null==t)return t;var r=o.getPooled(e,n);y(t,i,r),o.release(r)}function u(t,e,n,r){this.result=t,this.keyPrefix=e,this.func=n,this.context=r,this.count=0}function s(t,e,n){var o=t.result,i=t.keyPrefix,a=t.func,u=t.context,s=a.call(u,e,t.count++);Array.isArray(s)?c(s,o,n,v.thatReturnsArgument):null!=s&&(m.isValidElement(s)&&(s=m.cloneAndReplaceKey(s,i+(!s.key||e&&e.key===s.key?"":r(s.key)+"/")+n)),o.push(s))}function c(t,e,n,o,i){var a="";null!=n&&(a=r(n)+"/");var c=u.getPooled(e,a,o,i);y(t,s,c),u.release(c)}function l(t,e,n){if(null==t)return t;var r=[];return c(t,r,null,e,n),r}function f(t,e,n){return null}function h(t,e){return y(t,f,null)}function p(t){var e=[];return c(t,e,null,v.thatReturnsArgument),e}var d=n(194),m=n(25),v=n(11),y=n(195),g=d.twoArgumentPooler,b=d.fourArgumentPooler,_=/\/+/g;o.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},d.addPoolingTo(o,g),u.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d.addPoolingTo(u,b);var w={forEach:a,map:l,mapIntoWithKeyPrefixInternal:c,count:h,toArray:p};t.exports=w},function(t,e,n){"use strict";var r=n(29),o=(n(2),function(t){var e=this;if(e.instancePool.length){var n=e.instancePool.pop();return e.call(n,t),n}return new e(t)}),i=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 o=r.instancePool.pop();return r.call(o,t,e,n),o}return new r(t,e,n)},u=function(t,e,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,t,e,n,r),i}return new o(t,e,n,r)},s=function(t){var e=this;t instanceof e||r("25"),t.destructor(),e.instancePool.length>",P={array:h("array"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:function(){return f(r.thatReturnsNull)}(),arrayOf:p,element:function(){function e(e,n,r,o,i){var a=e[n];if(!t(a)){return new l("Invalid "+o+" `"+i+"` of type `"+x(a)+"` supplied to `"+r+"`, expected a single ReactElement.")}return null}return f(e)}(),instanceOf:d,node:function(){function t(t,e,n,r,o){return _(t[e])?null:new l("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}return f(t)}(),objectOf:v,oneOf:m,oneOfType:y,shape:g,exact:b};return l.prototype=Error.prototype,P.checkPropTypes=s,P.PropTypes=P,P}},function(t,e,n){"use strict";function r(t,e,n,r,o){}t.exports=r},function(t,e,n){"use strict";t.exports="15.6.1"},function(t,e,n){"use strict";var r=n(107),o=r.Component,i=n(25),a=i.isValidElement,u=n(108),s=n(204);t.exports=s(o,a,u)},function(t,e,n){"use strict";function r(t){return t}function o(t,e,n){function o(t,e){var n=g.hasOwnProperty(e)?g[e]:null;x.hasOwnProperty(e)&&u("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",e),t&&u("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",e)}function c(t,n){if(n){u("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),u(!e(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=t.prototype,i=r.__reactAutoBindPairs;n.hasOwnProperty(s)&&b.mixins(t,n.mixins);for(var a in n)if(n.hasOwnProperty(a)&&a!==s){var c=n[a],l=r.hasOwnProperty(a);if(o(l,a),b.hasOwnProperty(a))b[a](t,c);else{var f=g.hasOwnProperty(a),d="function"==typeof c,m=d&&!f&&!l&&!1!==n.autobind;if(m)i.push(a,c),r[a]=c;else if(l){var v=g[a];u(f&&("DEFINE_MANY_MERGED"===v||"DEFINE_MANY"===v),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",v,a),"DEFINE_MANY_MERGED"===v?r[a]=h(r[a],c):"DEFINE_MANY"===v&&(r[a]=p(r[a],c))}else r[a]=c}}}else;}function l(t,e){if(e)for(var n in e){var r=e[n];if(e.hasOwnProperty(n)){var o=n in b;u(!o,'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.',n);var i=n in t;u(!i,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),t[n]=r}}}function f(t,e){u(t&&e&&"object"==typeof t&&"object"==typeof e,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in e)e.hasOwnProperty(n)&&(u(void 0===t[n],"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.",n),t[n]=e[n]);return t}function h(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 o={};return f(o,n),f(o,r),o}}function p(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function d(t,e){var n=e.bind(t);return n}function m(t){for(var e=t.__reactAutoBindPairs,n=0;n8&&_<=11),O=32,E=String.fromCharCode(O),C={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},S=!1,k=null,j={eventTypes:C,extractEvents:function(t,e,n,r){return[s(t,e,n,r),f(t,e,n,r)]}};t.exports=j},function(t,e,n){"use strict";function r(t){this._root=t,this._startText=this.getText(),this._fallbackText=null}var o=n(5),i=n(21),a=n(116);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,o=this.getText(),i=o.length;for(t=0;t1?1-e:void 0;return this._fallbackText=o.slice(t,u),this._fallbackText}}),i.addPoolingTo(r),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(18),i={data:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(18),i={data:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n){var r=S.getPooled(T.change,t,e,n);return r.type="change",x.accumulateTwoPhaseDispatches(r),r}function o(t){var e=t.nodeName&&t.nodeName.toLowerCase();return"select"===e||"input"===e&&"file"===t.type}function i(t){var e=r(N,t,j(t));C.batchedUpdates(a,e)}function a(t){w.enqueueEvents(t),w.processEventQueue(!1)}function u(t,e){A=t,N=e,A.attachEvent("onchange",i)}function s(){A&&(A.detachEvent("onchange",i),A=null,N=null)}function c(t,e){var n=k.updateValueIfChanged(t),r=!0===e.simulated&&D._allowSimulatedPassThrough;if(n||r)return t}function l(t,e){if("topChange"===t)return e}function f(t,e,n){"topFocus"===t?(s(),u(e,n)):"topBlur"===t&&s()}function h(t,e){A=t,N=e,A.attachEvent("onpropertychange",d)}function p(){A&&(A.detachEvent("onpropertychange",d),A=null,N=null)}function d(t){"value"===t.propertyName&&c(N,t)&&i(t)}function m(t,e,n){"topFocus"===t?(p(),h(e,n)):"topBlur"===t&&p()}function v(t,e,n){if("topSelectionChange"===t||"topKeyUp"===t||"topKeyDown"===t)return c(N,n)}function y(t){var e=t.nodeName;return e&&"input"===e.toLowerCase()&&("checkbox"===t.type||"radio"===t.type)}function g(t,e,n){if("topClick"===t)return c(e,n)}function b(t,e,n){if("topInput"===t||"topChange"===t)return c(e,n)}function _(t,e){if(null!=t){var n=t._wrapperState||e._wrapperState;if(n&&n.controlled&&"number"===e.type){var r=""+e.value;e.getAttribute("value")!==r&&e.setAttribute("value",r)}}}var w=n(31),x=n(30),O=n(9),E=n(6),C=n(16),S=n(18),k=n(119),j=n(62),P=n(63),M=n(120),T={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},A=null,N=null,R=!1;O.canUseDOM&&(R=P("change")&&(!document.documentMode||document.documentMode>8));var I=!1;O.canUseDOM&&(I=P("input")&&(!("documentMode"in document)||document.documentMode>9));var D={eventTypes:T,_allowSimulatedPassThrough:!0,_isInputEventSupported:I,extractEvents:function(t,e,n,i){var a,u,s=e?E.getNodeFromInstance(e):window;if(o(s)?R?a=l:u=f:M(s)?I?a=b:(a=v,u=m):y(s)&&(a=g),a){var c=a(t,e,n);if(c){return r(c,n,i)}}u&&u(t,s,e),"topBlur"===t&&_(e,s)}};t.exports=D},function(t,e,n){"use strict";function r(t,e,n){"function"==typeof t?t(e.getPublicInstance()):i.addComponentAsRefTo(e,t,n)}function o(t,e,n){"function"==typeof t?t(null):i.removeComponentAsRefFrom(e,t,n)}var i=n(216),a={};a.attachRefs=function(t,e){if(null!==e&&"object"==typeof e){var n=e.ref;null!=n&&r(n,t,e._owner)}},a.shouldUpdateRefs=function(t,e){var n=null,r=null;null!==t&&"object"==typeof t&&(n=t.ref,r=t._owner);var o=null,i=null;return null!==e&&"object"==typeof e&&(o=e.ref,i=e._owner),n!==o||"string"==typeof o&&i!==r},a.detachRefs=function(t,e){if(null!==e&&"object"==typeof e){var n=e.ref;null!=n&&o(n,t,e._owner)}},t.exports=a},function(t,e,n){"use strict";function r(t){return!(!t||"function"!=typeof t.attachRef||"function"!=typeof t.detachRef)}var o=n(4),i=(n(2),{addComponentAsRefTo:function(t,e,n){r(n)||o("119"),n.attachRef(e,t)},removeComponentAsRefFrom:function(t,e,n){r(n)||o("120");var i=n.getPublicInstance();i&&i.refs[e]===t.getPublicInstance()&&n.detachRef(e)}});t.exports=i},function(t,e,n){"use strict";var r=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];t.exports=r},function(t,e,n){"use strict";var r=n(30),o=n(6),i=n(45),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},u={eventTypes:a,extractEvents:function(t,e,n,u){if("topMouseOver"===t&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==t&&"topMouseOver"!==t)return null;var s;if(u.window===u)s=u;else{var c=u.ownerDocument;s=c?c.defaultView||c.parentWindow:window}var l,f;if("topMouseOut"===t){l=e;var h=n.relatedTarget||n.toElement;f=h?o.getClosestInstanceFromNode(h):null}else l=null,f=e;if(l===f)return null;var p=null==l?s:o.getNodeFromInstance(l),d=null==f?s:o.getNodeFromInstance(f),m=i.getPooled(a.mouseLeave,l,n,u);m.type="mouseleave",m.target=p,m.relatedTarget=d;var v=i.getPooled(a.mouseEnter,f,n,u);return v.type="mouseenter",v.target=d,v.relatedTarget=p,r.accumulateEnterLeaveDispatches(m,v,l,f),[m,v]}};t.exports=u},function(t,e,n){"use strict";var r=n(26),o=r.injection.MUST_USE_PROPERTY,i=r.injection.HAS_BOOLEAN_VALUE,a=r.injection.HAS_NUMERIC_VALUE,u=r.injection.HAS_POSITIVE_NUMERIC_VALUE,s=r.injection.HAS_OVERLOADED_BOOLEAN_VALUE,c={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+r.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:o|i,cite:0,classID:0,className:0,cols:u,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:s,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:o|i,muted:o|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:u,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:o|i,shape:0,size:u,sizes:0,span:u,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{},DOMMutationMethods:{value:function(t,e){if(null==e)return t.removeAttribute("value");"number"!==t.type||!1===t.hasAttribute("value")?t.setAttribute("value",""+e):t.validity&&!t.validity.badInput&&t.ownerDocument.activeElement!==t&&t.setAttribute("value",""+e)}}};t.exports=c},function(t,e,n){"use strict";var r=n(65),o=n(225),i={processChildrenUpdates:o.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:r.dangerouslyReplaceNodeWithMarkup};t.exports=i},function(t,e,n){"use strict";var r=n(4),o=n(28),i=n(9),a=n(222),u=n(11),s=(n(2),{dangerouslyReplaceNodeWithMarkup:function(t,e){if(i.canUseDOM||r("56"),e||r("57"),"HTML"===t.nodeName&&r("58"),"string"==typeof e){var n=a(e,u)[0];t.parentNode.replaceChild(n,t)}else o.replaceChildWithTree(t,e)}});t.exports=s},function(t,e,n){"use strict";function r(t){var e=t.match(l);return e&&e[1].toLowerCase()}function o(t,e){var n=c;c||s(!1);var o=r(t),i=o&&u(o);if(i){n.innerHTML=i[1]+t+i[2];for(var l=i[0];l--;)n=n.lastChild}else n.innerHTML=t;var f=n.getElementsByTagName("script");f.length&&(e||s(!1),a(f).forEach(e));for(var h=Array.from(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return h}var i=n(9),a=n(223),u=n(224),s=n(2),c=i.canUseDOM?document.createElement("div"):null,l=/^\s*<(\w+)/;t.exports=o},function(t,e,n){"use strict";function r(t){var e=t.length;if((Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t)&&a(!1),"number"!=typeof e&&a(!1),0===e||e-1 in t||a(!1),"function"==typeof t.callee&&a(!1),t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(t){}for(var n=Array(e),r=0;r ":"<"+t+">"+t+">",u[t]=!a.firstChild),u[t]?h[t]:null}var o=n(9),i=n(2),a=o.canUseDOM?document.createElement("div"):null,u={},s=[1,'"],c=[1,"","
"],l=[3,"","
"],f=[1,'"],h={"*":[1,"?",""],area:[1,""],col:[2,"","
"],legend:[1,""],param:[1,""],tr:[2,"","
"],optgroup:s,option:s,caption:c,colgroup:c,tbody:c,tfoot:c,thead:c,td:l,th:l};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(t){h[t]=f,u[t]=!0}),t.exports=r},function(t,e,n){"use strict";var r=n(65),o=n(6),i={dangerouslyProcessChildrenUpdates:function(t,e){var n=o.getNodeFromInstance(t);r.processUpdates(n,e)}};t.exports=i},function(t,e,n){"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 o(t,e){e&&(K[t._tag]&&(null!=e.children||null!=e.dangerouslySetInnerHTML)&&v("137",t._tag,t._currentElement._owner?" Check the render method of "+t._currentElement._owner.getName()+".":""),null!=e.dangerouslySetInnerHTML&&(null!=e.children&&v("60"),"object"==typeof e.dangerouslySetInnerHTML&&V in e.dangerouslySetInnerHTML||v("61")),null!=e.style&&"object"!=typeof e.style&&v("62",r(t)))}function i(t,e,n,r){if(!(r instanceof R)){var o=t._hostContainerInfo,i=o._node&&o._node.nodeType===H,u=i?o._node:o._ownerDocument;q(e,u),r.getReactMountReady().enqueue(a,{inst:t,registrationName:e,listener:n})}}function a(){var t=this;E.putListener(t.inst,t.registrationName,t.listener)}function u(){var t=this;P.postMountWrapper(t)}function s(){var t=this;A.postMountWrapper(t)}function c(){var t=this;M.postMountWrapper(t)}function l(){D.track(this)}function f(){var t=this;t._rootNodeID||v("63");var e=F(t);switch(e||v("64"),t._tag){case"iframe":case"object":t._wrapperState.listeners=[S.trapBubbledEvent("topLoad","load",e)];break;case"video":case"audio":t._wrapperState.listeners=[];for(var n in Y)Y.hasOwnProperty(n)&&t._wrapperState.listeners.push(S.trapBubbledEvent(n,Y[n],e));break;case"source":t._wrapperState.listeners=[S.trapBubbledEvent("topError","error",e)];break;case"img":t._wrapperState.listeners=[S.trapBubbledEvent("topError","error",e),S.trapBubbledEvent("topLoad","load",e)];break;case"form":t._wrapperState.listeners=[S.trapBubbledEvent("topReset","reset",e),S.trapBubbledEvent("topSubmit","submit",e)];break;case"input":case"select":case"textarea":t._wrapperState.listeners=[S.trapBubbledEvent("topInvalid","invalid",e)]}}function h(){T.postUpdateWrapper(this)}function p(t){Q.call(Z,t)||(X.test(t)||v("65",t),Z[t]=!0)}function d(t,e){return t.indexOf("-")>=0||null!=e.is}function m(t){var e=t.type;p(e),this._currentElement=t,this._tag=e.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var v=n(4),y=n(5),g=n(227),b=n(228),_=n(28),w=n(66),x=n(26),O=n(125),E=n(31),C=n(59),S=n(48),k=n(113),j=n(6),P=n(238),M=n(240),T=n(126),A=n(241),N=(n(12),n(242)),R=n(249),I=(n(11),n(47)),D=(n(2),n(63),n(71),n(119)),L=(n(75),n(3),k),U=E.deleteListener,F=j.getNodeFromInstance,q=S.listenTo,W=C.registrationNameModules,B={string:!0,number:!0},V="__html",z={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},H=11,Y={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"},$={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},G={listing:!0,pre:!0,textarea:!0},K=y({menuitem:!0},$),X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Z={},Q={}.hasOwnProperty,J=1;m.displayName="ReactDOMComponent",m.Mixin={mountComponent:function(t,e,n,r){this._rootNodeID=J++,this._domID=n._idCounter++,this._hostParent=e,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},t.getReactMountReady().enqueue(f,this);break;case"input":P.mountWrapper(this,i,e),i=P.getHostProps(this,i),t.getReactMountReady().enqueue(l,this),t.getReactMountReady().enqueue(f,this);break;case"option":M.mountWrapper(this,i,e),i=M.getHostProps(this,i);break;case"select":T.mountWrapper(this,i,e),i=T.getHostProps(this,i),t.getReactMountReady().enqueue(f,this);break;case"textarea":A.mountWrapper(this,i,e),i=A.getHostProps(this,i),t.getReactMountReady().enqueue(l,this),t.getReactMountReady().enqueue(f,this)}o(this,i);var a,h;null!=e?(a=e._namespaceURI,h=e._tag):n._tag&&(a=n._namespaceURI,h=n._tag),(null==a||a===w.svg&&"foreignobject"===h)&&(a=w.html),a===w.html&&("svg"===this._tag?a=w.svg:"math"===this._tag&&(a=w.mathml)),this._namespaceURI=a;var p;if(t.useCreateElement){var d,m=n._ownerDocument;if(a===w.html)if("script"===this._tag){var v=m.createElement("div"),y=this._currentElement.type;v.innerHTML="<"+y+">"+y+">",d=v.removeChild(v.firstChild)}else d=i.is?m.createElement(this._currentElement.type,i.is):m.createElement(this._currentElement.type);else d=m.createElementNS(a,this._currentElement.type);j.precacheNode(this,d),this._flags|=L.hasCachedChildNodes,this._hostParent||O.setAttributeForRoot(d),this._updateDOMProperties(null,i,t);var b=_(d);this._createInitialChildren(t,i,r,b),p=b}else{var x=this._createOpenTagMarkupAndPutListeners(t,i),E=this._createContentMarkup(t,i,r);p=!E&&$[this._tag]?x+"/>":x+">"+E+""+this._currentElement.type+">"}switch(this._tag){case"input":t.getReactMountReady().enqueue(u,this),i.autoFocus&&t.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":t.getReactMountReady().enqueue(s,this),i.autoFocus&&t.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":case"button":i.autoFocus&&t.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":t.getReactMountReady().enqueue(c,this)}return p},_createOpenTagMarkupAndPutListeners:function(t,e){var n="<"+this._currentElement.type;for(var r in e)if(e.hasOwnProperty(r)){var o=e[r];if(null!=o)if(W.hasOwnProperty(r))o&&i(this,r,o,t);else{"style"===r&&(o&&(o=this._previousStyleCopy=y({},e.style)),o=b.createMarkupForStyles(o,this));var a=null;null!=this._tag&&d(this._tag,e)?z.hasOwnProperty(r)||(a=O.createMarkupForCustomAttribute(r,o)):a=O.createMarkupForProperty(r,o),a&&(n+=" "+a)}}return t.renderToStaticMarkup?n:(this._hostParent||(n+=" "+O.createMarkupForRoot()),n+=" "+O.createMarkupForID(this._domID))},_createContentMarkup:function(t,e,n){var r="",o=e.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&(r=o.__html);else{var i=B[typeof e.children]?e.children:null,a=null!=i?null:e.children;if(null!=i)r=I(i);else if(null!=a){var u=this.mountChildren(a,t,n);r=u.join("")}}return G[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(t,e,n,r){var o=e.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&_.queueHTML(r,o.__html);else{var i=B[typeof e.children]?e.children:null,a=null!=i?null:e.children;if(null!=i)""!==i&&_.queueText(r,i);else if(null!=a)for(var u=this.mountChildren(a,t,n),s=0;s0;)t=t._hostParent,n--;for(;o-n>0;)e=e._hostParent,o--;for(var a=n;a--;){if(t===e)return t;t=t._hostParent,e=e._hostParent}return null}function o(t,e){"_hostNode"in t||s("35"),"_hostNode"in e||s("35");for(;e;){if(e===t)return!0;e=e._hostParent}return!1}function i(t){return"_hostNode"in t||s("36"),t._hostParent}function a(t,e,n){for(var r=[];t;)r.push(t),t=t._hostParent;var o;for(o=r.length;o-- >0;)e(r[o],"captured",n);for(o=0;o0;)n(s[c],"captured",i)}var s=n(4);n(2);t.exports={isAncestor:o,getLowestCommonAncestor:r,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:u}},function(t,e,n){"use strict";var r=n(4),o=n(5),i=n(65),a=n(28),u=n(6),s=n(47),c=(n(2),n(75),function(t){this._currentElement=t,this._stringText=""+t,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});o(c.prototype,{mountComponent:function(t,e,n,r){var o=n._idCounter++,i=" react-text: "+o+" ";if(this._domID=o,this._hostParent=e,t.useCreateElement){var c=n._ownerDocument,l=c.createComment(i),f=c.createComment(" /react-text "),h=a(c.createDocumentFragment());return a.queueChild(h,a(l)),this._stringText&&a.queueChild(h,a(c.createTextNode(this._stringText))),a.queueChild(h,a(f)),u.precacheNode(this,l),this._closingComment=f,h}var p=s(this._stringText);return t.renderToStaticMarkup?p:"\x3c!--"+i+"--\x3e"+p+"\x3c!-- /react-text --\x3e"},receiveComponent:function(t,e){if(t!==this._currentElement){this._currentElement=t;var n=""+t;if(n!==this._stringText){this._stringText=n;var r=this.getHostNode();i.replaceDelimitedText(r[0],r[1],n)}}},getHostNode:function(){var t=this._commentNodes;if(t)return t;if(!this._closingComment)for(var e=u.getNodeFromInstance(this),n=e.nextSibling;;){if(null==n&&r("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return t=[this._hostNode,this._closingComment],this._commentNodes=t,t},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,u.uncacheNode(this)}}),t.exports=c},function(t,e,n){"use strict";function r(){this.reinitializeTransaction()}var o=n(5),i=n(16),a=n(44),u=n(11),s={initialize:u,close:function(){h.isBatchingUpdates=!1}},c={initialize:u,close:i.flushBatchedUpdates.bind(i)},l=[c,s];o(r.prototype,a,{getTransactionWrappers:function(){return l}});var f=new r,h={isBatchingUpdates:!1,batchedUpdates:function(t,e,n,r,o,i){var a=h.isBatchingUpdates;return h.isBatchingUpdates=!0,a?t(e,n,r,o,i):f.perform(t,null,e,n,r,o,i)}};t.exports=h},function(t,e,n){"use strict";function r(t){for(;t._hostParent;)t=t._hostParent;var e=f.getNodeFromInstance(t),n=e.parentNode;return f.getClosestInstanceFromNode(n)}function o(t,e){this.topLevelType=t,this.nativeEvent=e,this.ancestors=[]}function i(t){var e=p(t.nativeEvent),n=f.getClosestInstanceFromNode(e),o=n;do{t.ancestors.push(o),o=o&&r(o)}while(o);for(var i=0;ie.end?(n=e.end,r=e.start):(n=e.start,r=e.end),o.moveToElementText(t),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function u(t,e){if(window.getSelection){var n=window.getSelection(),r=t[l()].length,o=Math.min(e.start,r),i=void 0===e.end?o:Math.min(e.end,r);if(!n.extend&&o>i){var a=i;i=o,o=a}var u=c(t,o),s=c(t,i);if(u&&s){var f=document.createRange();f.setStart(u.node,u.offset),n.removeAllRanges(),o>i?(n.addRange(f),n.extend(s.node,s.offset)):(f.setEnd(s.node,s.offset),n.addRange(f))}}}var s=n(9),c=n(260),l=n(116),f=s.canUseDOM&&"selection"in document&&!("getSelection"in window),h={getOffsets:f?o:i,setOffsets:f?a:u};t.exports=h},function(t,e,n){"use strict";function r(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function o(t){for(;t;){if(t.nextSibling)return t.nextSibling;t=t.parentNode}}function i(t,e){for(var n=r(t),i=0,a=0;n;){if(3===n.nodeType){if(a=i+n.textContent.length,i<=e&&a>=e)return{node:n,offset:e-i};i=a}n=r(o(n))}}t.exports=i},function(t,e,n){"use strict";function r(t,e){return!(!t||!e)&&(t===e||!o(t)&&(o(e)?r(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}var o=n(262);t.exports=r},function(t,e,n){"use strict";function r(t){return o(t)&&3==t.nodeType}var o=n(263);t.exports=r},function(t,e,n){"use strict";function r(t){var e=t?t.ownerDocument||t:document,n=e.defaultView||window;return!(!t||!("function"==typeof n.Node?t instanceof n.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}t.exports=r},function(t,e,n){"use strict";var r={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},o={accentHeight:"accent-height",accumulate:0,additive:0,alignmentBaseline:"alignment-baseline",allowReorder:"allowReorder",alphabetic:0,amplitude:0,arabicForm:"arabic-form",ascent:0,attributeName:"attributeName",attributeType:"attributeType",autoReverse:"autoReverse",azimuth:0,baseFrequency:"baseFrequency",baseProfile:"baseProfile",baselineShift:"baseline-shift",bbox:0,begin:0,bias:0,by:0,calcMode:"calcMode",capHeight:"cap-height",clip:0,clipPath:"clip-path",clipRule:"clip-rule",clipPathUnits:"clipPathUnits",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",contentScriptType:"contentScriptType",contentStyleType:"contentStyleType",cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:"diffuseConstant",direction:0,display:0,divisor:0,dominantBaseline:"dominant-baseline",dur:0,dx:0,dy:0,edgeMode:"edgeMode",elevation:0,enableBackground:"enable-background",end:0,exponent:0,externalResourcesRequired:"externalResourcesRequired",fill:0,fillOpacity:"fill-opacity",fillRule:"fill-rule",filter:0,filterRes:"filterRes",filterUnits:"filterUnits",floodColor:"flood-color",floodOpacity:"flood-opacity",focusable:0,fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",glyphRef:"glyphRef",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",hanging:0,horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",ideographic:0,imageRendering:"image-rendering",in:0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:"kernelMatrix",kernelUnitLength:"kernelUnitLength",kerning:0,keyPoints:"keyPoints",keySplines:"keySplines",keyTimes:"keyTimes",lengthAdjust:"lengthAdjust",letterSpacing:"letter-spacing",lightingColor:"lighting-color",limitingConeAngle:"limitingConeAngle",local:0,markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",markerHeight:"markerHeight",markerUnits:"markerUnits",markerWidth:"markerWidth",mask:0,maskContentUnits:"maskContentUnits",maskUnits:"maskUnits",mathematical:0,mode:0,numOctaves:"numOctaves",offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pathLength:"pathLength",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",patternUnits:"patternUnits",pointerEvents:"pointer-events",points:0,pointsAtX:"pointsAtX",pointsAtY:"pointsAtY",pointsAtZ:"pointsAtZ",preserveAlpha:"preserveAlpha",preserveAspectRatio:"preserveAspectRatio",primitiveUnits:"primitiveUnits",r:0,radius:0,refX:"refX",refY:"refY",renderingIntent:"rendering-intent",repeatCount:"repeatCount",repeatDur:"repeatDur",requiredExtensions:"requiredExtensions",requiredFeatures:"requiredFeatures",restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:"shape-rendering",slope:0,spacing:0,specularConstant:"specularConstant",specularExponent:"specularExponent",speed:0,spreadMethod:"spreadMethod",startOffset:"startOffset",stdDeviation:"stdDeviation",stemh:0,stemv:0,stitchTiles:"stitchTiles",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",string:0,stroke:0,strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",surfaceScale:"surfaceScale",systemLanguage:"systemLanguage",tableValues:"tableValues",targetX:"targetX",targetY:"targetY",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",textLength:"textLength",to:0,transform:0,u1:0,u2:0,underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicode:0,unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",values:0,vectorEffect:"vector-effect",version:0,vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",viewBox:"viewBox",viewTarget:"viewTarget",visibility:0,widths:0,wordSpacing:"word-spacing",writingMode:"writing-mode",x:0,xHeight:"x-height",x1:0,x2:0,xChannelSelector:"xChannelSelector",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlns:0,xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space",y:0,y1:0,y2:0,yChannelSelector:"yChannelSelector",z:0,zoomAndPan:"zoomAndPan"},i={Properties:{},DOMAttributeNamespaces:{xlinkActuate:r.xlink,xlinkArcrole:r.xlink,xlinkHref:r.xlink,xlinkRole:r.xlink,xlinkShow:r.xlink,xlinkTitle:r.xlink,xlinkType:r.xlink,xmlBase:r.xml,xmlLang:r.xml,xmlSpace:r.xml},DOMAttributeNames:{}};Object.keys(o).forEach(function(t){i.Properties[t]=0,o[t]&&(i.DOMAttributeNames[t]=o[t])}),t.exports=i},function(t,e,n){"use strict";function r(t){if("selectionStart"in t&&s.hasSelectionCapabilities(t))return{start:t.selectionStart,end:t.selectionEnd};if(window.getSelection){var e=window.getSelection();return{anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function o(t,e){if(g||null==m||m!==l())return null;var n=r(m);if(!y||!h(y,n)){y=n;var o=c.getPooled(d.select,v,t,e);return o.type="select",o.target=m,i.accumulateTwoPhaseDispatches(o),o}return null}var i=n(30),a=n(9),u=n(6),s=n(134),c=n(18),l=n(135),f=n(120),h=n(71),p=a.canUseDOM&&"documentMode"in document&&document.documentMode<=11,d={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:["topBlur","topContextMenu","topFocus","topKeyDown","topKeyUp","topMouseDown","topMouseUp","topSelectionChange"]}},m=null,v=null,y=null,g=!1,b=!1,_={eventTypes:d,extractEvents:function(t,e,n,r){if(!b)return null;var i=e?u.getNodeFromInstance(e):window;switch(t){case"topFocus":(f(i)||"true"===i.contentEditable)&&(m=i,v=e,y=null);break;case"topBlur":m=null,v=null,y=null;break;case"topMouseDown":g=!0;break;case"topContextMenu":case"topMouseUp":return g=!1,o(n,r);case"topSelectionChange":if(p)break;case"topKeyDown":case"topKeyUp":return o(n,r)}return null},didPutListener:function(t,e,n){"onSelect"===e&&(b=!0)}};t.exports=_},function(t,e,n){"use strict";function r(t){return"."+t._rootNodeID}function o(t){return"button"===t||"input"===t||"select"===t||"textarea"===t}var i=n(4),a=n(133),u=n(30),s=n(6),c=n(267),l=n(268),f=n(18),h=n(269),p=n(270),d=n(45),m=n(272),v=n(273),y=n(274),g=n(32),b=n(275),_=n(11),w=n(76),x=(n(2),{}),O={};["abort","animationEnd","animationIteration","animationStart","blur","canPlay","canPlayThrough","click","contextMenu","copy","cut","doubleClick","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","focus","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","progress","rateChange","reset","scroll","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchMove","touchStart","transitionEnd","volumeChange","waiting","wheel"].forEach(function(t){var e=t[0].toUpperCase()+t.slice(1),n="on"+e,r="top"+e,o={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[r]};x[t]=o,O[r]=o});var E={},C={eventTypes:x,extractEvents:function(t,e,n,r){var o=O[t];if(!o)return null;var a;switch(t){case"topAbort":case"topCanPlay":case"topCanPlayThrough":case"topDurationChange":case"topEmptied":case"topEncrypted":case"topEnded":case"topError":case"topInput":case"topInvalid":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":a=f;break;case"topKeyPress":if(0===w(n))return null;case"topKeyDown":case"topKeyUp":a=p;break;case"topBlur":case"topFocus":a=h;break;case"topClick":if(2===n.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":a=d;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":a=m;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":a=v;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":a=c;break;case"topTransitionEnd":a=y;break;case"topScroll":a=g;break;case"topWheel":a=b;break;case"topCopy":case"topCut":case"topPaste":a=l}a||i("86",t);var s=a.getPooled(o,e,n,r);return u.accumulateTwoPhaseDispatches(s),s},didPutListener:function(t,e,n){if("onClick"===e&&!o(t._tag)){var i=r(t),u=s.getNodeFromInstance(t);E[i]||(E[i]=a.listen(u,"click",_))}},willDeleteListener:function(t,e){if("onClick"===e&&!o(t._tag)){var n=r(t);E[n].remove(),delete E[n]}}};t.exports=C},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(18),i={animationName:null,elapsedTime:null,pseudoElement:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(18),i={clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(32),i={relatedTarget:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(32),i=n(76),a=n(271),u=n(64),s={key:a,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:u,charCode:function(t){return"keypress"===t.type?i(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?i(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}};o.augmentClass(r,s),t.exports=r},function(t,e,n){"use strict";function r(t){if(t.key){var e=i[t.key]||t.key;if("Unidentified"!==e)return e}if("keypress"===t.type){var n=o(t);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===t.type||"keyup"===t.type?a[t.keyCode]||"Unidentified":""}var o=n(76),i={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(45),i={dataTransfer:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(32),i=n(64),a={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:i};o.augmentClass(r,a),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(18),i={propertyName:null,elapsedTime:null,pseudoElement:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(45),i={deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e){var n={_topLevelWrapper:t,_idCounter:1,_ownerDocument:e?e.nodeType===o?e:e.ownerDocument:null,_node:e,_tag:e?e.nodeName.toLowerCase():null,_namespaceURI:e?e.namespaceURI:null};return n}var o=(n(75),9);t.exports=r},function(t,e,n){"use strict";var r={useCreateElement:!0,useFiber:!1};t.exports=r},function(t,e,n){"use strict";var r=n(279),o=/\/?>/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(t){var e=r(t);return i.test(t)?t:t.replace(o," "+a.CHECKSUM_ATTR_NAME+'="'+e+'"$&')},canReuseMarkup:function(t,e){var n=e.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),r(t)===n}};t.exports=a},function(t,e,n){"use strict";function r(t){for(var e=1,n=0,r=0,i=t.length,a=-4&i;r ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},e.prototype.render=function(){return c.a.createElement(d.a,{history:this.history,children:this.props.children})},e}(c.a.Component);m.propTypes={basename:f.a.string,forceRefresh:f.a.bool,getUserConfirmation:f.a.func,keyLength:f.a.number,children:f.a.node},e.a=m},function(t,e,n){"use strict";var r=n(11),o=n(2),i=n(112);t.exports=function(){function t(t,e,n,r,a,u){u!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=r,n.PropTypes=n,n}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};(0,c.default)(d.canUseDOM,"Browser history needs a DOM");var e=window.history,n=(0,d.supportsHistory)(),r=!(0,d.supportsPopStateOnHashChange)(),a=t.forceRefresh,s=void 0!==a&&a,h=t.getUserConfirmation,v=void 0===h?d.getConfirmation:h,y=t.keyLength,g=void 0===y?6:y,b=t.basename?(0,f.stripTrailingSlash)((0,f.addLeadingSlash)(t.basename)):"",_=function(t){var e=t||{},n=e.key,r=e.state,o=window.location,i=o.pathname,a=o.search,s=o.hash,c=i+a+s;return(0,u.default)(!b||(0,f.hasBasename)(c,b),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+c+'" to begin with "'+b+'".'),b&&(c=(0,f.stripBasename)(c,b)),(0,l.createLocation)(c,r,n)},w=function(){return Math.random().toString(36).substr(2,g)},x=(0,p.default)(),O=function(t){i(B,t),B.length=e.length,x.notifyListeners(B.location,B.action)},E=function(t){(0,d.isExtraneousPopstateEvent)(t)||k(_(t.state))},C=function(){k(_(m()))},S=!1,k=function(t){if(S)S=!1,O();else{x.confirmTransitionTo(t,"POP",v,function(e){e?O({action:"POP",location:t}):j(t)})}},j=function(t){var e=B.location,n=M.indexOf(e.key);-1===n&&(n=0);var r=M.indexOf(t.key);-1===r&&(r=0);var o=n-r;o&&(S=!0,R(o))},P=_(m()),M=[P.key],T=function(t){return b+(0,f.createPath)(t)},A=function(t,r){(0,u.default)(!("object"===(void 0===t?"undefined":o(t))&&void 0!==t.state&&void 0!==r),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i=(0,l.createLocation)(t,r,w(),B.location);x.confirmTransitionTo(i,"PUSH",v,function(t){if(t){var r=T(i),o=i.key,a=i.state;if(n)if(e.pushState({key:o,state:a},null,r),s)window.location.href=r;else{var c=M.indexOf(B.location.key),l=M.slice(0,-1===c?0:c+1);l.push(i.key),M=l,O({action:"PUSH",location:i})}else(0,u.default)(void 0===a,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},N=function(t,r){(0,u.default)(!("object"===(void 0===t?"undefined":o(t))&&void 0!==t.state&&void 0!==r),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i=(0,l.createLocation)(t,r,w(),B.location);x.confirmTransitionTo(i,"REPLACE",v,function(t){if(t){var r=T(i),o=i.key,a=i.state;if(n)if(e.replaceState({key:o,state:a},null,r),s)window.location.replace(r);else{var c=M.indexOf(B.location.key);-1!==c&&(M[c]=i.key),O({action:"REPLACE",location:i})}else(0,u.default)(void 0===a,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},R=function(t){e.go(t)},I=function(){return R(-1)},D=function(){return R(1)},L=0,U=function(t){L+=t,1===L?((0,d.addEventListener)(window,"popstate",E),r&&(0,d.addEventListener)(window,"hashchange",C)):0===L&&((0,d.removeEventListener)(window,"popstate",E),r&&(0,d.removeEventListener)(window,"hashchange",C))},F=!1,q=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=x.setPrompt(t);return F||(U(1),F=!0),function(){return F&&(F=!1,U(-1)),e()}},W=function(t){var e=x.appendListener(t);return U(1),function(){U(-1),e()}},B={length:e.length,action:"POP",location:P,createHref:T,push:A,replace:N,go:R,goBack:I,goForward:D,block:q,listen:W};return B};e.default=v},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(7),u=n.n(a),s=n(0),c=n.n(s),l=n(1),f=n.n(l),h=n(288),p=n.n(h),d=n(79),m=function(t){function e(){var n,i,a;r(this,e);for(var u=arguments.length,s=Array(u),c=0;c ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")},e.prototype.render=function(){return c.a.createElement(d.a,{history:this.history,children:this.props.children})},e}(c.a.Component);m.propTypes={basename:f.a.string,getUserConfirmation:f.a.func,hashType:f.a.oneOf(["hashbang","noslash","slash"]),children:f.a.node},e.a=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;e=0?e:0)+"#"+t)},g=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.default)(p.canUseDOM,"Hash history needs a DOM");var e=window.history,n=(0,p.supportsGoWithoutReloadUsingHash)(),r=t.getUserConfirmation,i=void 0===r?p.getConfirmation:r,u=t.hashType,f=void 0===u?"slash":u,g=t.basename?(0,l.stripTrailingSlash)((0,l.addLeadingSlash)(t.basename)):"",b=d[f],_=b.encodePath,w=b.decodePath,x=function(){var t=w(m());return(0,a.default)(!g||(0,l.hasBasename)(t,g),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+t+'" to begin with "'+g+'".'),g&&(t=(0,l.stripBasename)(t,g)),(0,c.createLocation)(t)},O=(0,h.default)(),E=function(t){o(H,t),H.length=e.length,O.notifyListeners(H.location,H.action)},C=!1,S=null,k=function(){var t=m(),e=_(t);if(t!==e)y(e);else{var n=x(),r=H.location;if(!C&&(0,c.locationsAreEqual)(r,n))return;if(S===(0,l.createPath)(n))return;S=null,j(n)}},j=function(t){if(C)C=!1,E();else{O.confirmTransitionTo(t,"POP",i,function(e){e?E({action:"POP",location:t}):P(t)})}},P=function(t){var e=H.location,n=N.lastIndexOf((0,l.createPath)(e));-1===n&&(n=0);var r=N.lastIndexOf((0,l.createPath)(t));-1===r&&(r=0);var o=n-r;o&&(C=!0,L(o))},M=m(),T=_(M);M!==T&&y(T);var A=x(),N=[(0,l.createPath)(A)],R=function(t){return"#"+_(g+(0,l.createPath)(t))},I=function(t,e){(0,a.default)(void 0===e,"Hash history cannot push state; it is ignored");var n=(0,c.createLocation)(t,void 0,void 0,H.location);O.confirmTransitionTo(n,"PUSH",i,function(t){if(t){var e=(0,l.createPath)(n),r=_(g+e);if(m()!==r){S=e,v(r);var o=N.lastIndexOf((0,l.createPath)(H.location)),i=N.slice(0,-1===o?0:o+1);i.push(e),N=i,E({action:"PUSH",location:n})}else(0,a.default)(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),E()}})},D=function(t,e){(0,a.default)(void 0===e,"Hash history cannot replace state; it is ignored");var n=(0,c.createLocation)(t,void 0,void 0,H.location);O.confirmTransitionTo(n,"REPLACE",i,function(t){if(t){var e=(0,l.createPath)(n),r=_(g+e);m()!==r&&(S=e,y(r));var o=N.indexOf((0,l.createPath)(H.location));-1!==o&&(N[o]=e),E({action:"REPLACE",location:n})}})},L=function(t){(0,a.default)(n,"Hash history go(n) causes a full page reload in this browser"),e.go(t)},U=function(){return L(-1)},F=function(){return L(1)},q=0,W=function(t){q+=t,1===q?(0,p.addEventListener)(window,"hashchange",k):0===q&&(0,p.removeEventListener)(window,"hashchange",k)},B=!1,V=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=O.setPrompt(t);return B||(W(1),B=!0),function(){return B&&(B=!1,W(-1)),e()}},z=function(t){var e=O.appendListener(t);return W(1),function(){W(-1),e()}},H={length:e.length,action:"POP",location:A,createHref:R,push:I,replace:D,go:L,goBack:U,goForward:F,block:V,listen:z};return H};e.default=g},function(t,e,n){"use strict";var r=n(290);e.a=r.a},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(7),u=n.n(a),s=n(0),c=n.n(s),l=n(1),f=n.n(l),h=n(291),p=n.n(h),d=n(80),m=function(t){function e(){var n,i,a;r(this,e);for(var u=arguments.length,s=Array(u),c=0;c ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},e.prototype.render=function(){return c.a.createElement(d.a,{history:this.history,children:this.props.children})},e}(c.a.Component);m.propTypes={initialEntries:f.a.array,initialIndex:f.a.number,getUserConfirmation:f.a.func,keyLength:f.a.number,children:f.a.node},e.a=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=t.getUserConfirmation,n=t.initialEntries,r=void 0===n?["/"]:n,a=t.initialIndex,l=void 0===a?0:a,p=t.keyLength,d=void 0===p?6:p,m=(0,f.default)(),v=function(t){i(P,t),P.length=P.entries.length,m.notifyListeners(P.location,P.action)},y=function(){return Math.random().toString(36).substr(2,d)},g=h(l,0,r.length-1),b=r.map(function(t){return"string"==typeof t?(0,c.createLocation)(t,void 0,y()):(0,c.createLocation)(t,void 0,t.key||y())}),_=s.createPath,w=function(t,n){(0,u.default)(!("object"===(void 0===t?"undefined":o(t))&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var r=(0,c.createLocation)(t,n,y(),P.location);m.confirmTransitionTo(r,"PUSH",e,function(t){if(t){var e=P.index,n=e+1,o=P.entries.slice(0);o.length>n?o.splice(n,o.length-n,r):o.push(r),v({action:"PUSH",location:r,index:n,entries:o})}})},x=function(t,n){(0,u.default)(!("object"===(void 0===t?"undefined":o(t))&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var r=(0,c.createLocation)(t,n,y(),P.location);m.confirmTransitionTo(r,"REPLACE",e,function(t){t&&(P.entries[P.index]=r,v({action:"REPLACE",location:r}))})},O=function(t){var n=h(P.index+t,0,P.entries.length-1),r=P.entries[n];m.confirmTransitionTo(r,"POP",e,function(t){t?v({action:"POP",location:r,index:n}):v()})},E=function(){return O(-1)},C=function(){return O(1)},S=function(t){var e=P.index+t;return e>=0&&e0&&void 0!==arguments[0]&&arguments[0];return m.setPrompt(t)},j=function(t){return m.appendListener(t)},P={length:b.length,action:"POP",location:b[g],index:g,entries:b,createHref:_,push:w,replace:x,go:O,goBack:E,goForward:C,canGo:S,block:k,listen:j};return P};e.default=p},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}var o=n(0),i=n.n(o),a=n(1),u=n.n(a),s=n(142),c=n(141),l=Object.assign||function(t){for(var e=1;e outside a "),this.props.when&&this.enable(this.props.message)},e.prototype.componentWillReceiveProps=function(t){t.when?this.props.when&&this.props.message===t.message||this.enable(t.message):this.disable()},e.prototype.componentWillUnmount=function(){this.disable()},e.prototype.render=function(){return null},e}(u.a.Component);h.propTypes={when:c.a.bool,message:c.a.oneOfType([c.a.func,c.a.string]).isRequired},h.defaultProps={when:!0},h.contextTypes={router:c.a.shape({history:c.a.shape({block:c.a.func.isRequired}).isRequired}).isRequired},e.a=h},function(t,e,n){"use strict";var r=n(298);e.a=r.a},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(0),u=n.n(a),s=n(1),c=n.n(s),l=n(7),f=n.n(l),h=n(13),p=n.n(h),d=n(299),m=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},e.prototype.componentWillMount=function(){p()(this.context.router,"You should not use outside a "),this.isStatic()&&this.perform()},e.prototype.componentDidMount=function(){this.isStatic()||this.perform()},e.prototype.componentDidUpdate=function(t){var e=Object(d.a)(t.to),n=Object(d.a)(this.props.to);if(Object(d.b)(e,n))return void f()(!1,"You tried to redirect to the same route you're currently on: \""+n.pathname+n.search+'"');this.perform()},e.prototype.perform=function(){var t=this.context.router.history,e=this.props,n=e.push,r=e.to;n?t.push(r):t.replace(r)},e.prototype.render=function(){return null},e}(u.a.Component);m.propTypes={push:c.a.bool,from:c.a.string,to:c.a.oneOfType([c.a.string,c.a.object]).isRequired},m.defaultProps={push:!1},m.contextTypes={router:c.a.shape({history:c.a.shape({push:c.a.func.isRequired,replace:c.a.func.isRequired}).isRequired,staticContext:c.a.object}).isRequired},e.a=m},function(t,e,n){"use strict";var r=(n(300),n(301),n(302),n(49));n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b});n(35)},function(t,e,n){"use strict";var r=n(7),o=(n.n(r),n(13));n.n(o),n(49),n(35),n(82),n(144),"function"==typeof Symbol&&Symbol.iterator,Object.assign},function(t,e,n){"use strict";var r=n(7),o=(n.n(r),n(13)),i=(n.n(o),n(49),n(35));n(82),n(144),Object.assign,i.f,i.a,i.a,i.a},function(t,e,n){"use strict";var r=n(7);n.n(r),n(35),n(49),n(82),"function"==typeof Symbol&&Symbol.iterator,Object.assign},function(t,e,n){"use strict";var r=n(304);e.a=r.a},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=n(7),s=n.n(u),c=n(13),l=n.n(c),f=n(0),h=n.n(f),p=n(1),d=n.n(p),m=n(34),v=(n.n(m),n(80)),y=Object.assign||function(t){for(var e=1;e",t)}},E=function(){},C=function(t){function e(){var n,r,a;o(this,e);for(var u=arguments.length,s=Array(u),c=0;c ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},e.prototype.render=function(){var t=this.props,e=t.basename,n=(t.context,t.location),o=r(t,["basename","context","location"]),i={createHref:this.createHref,action:"POP",location:_(e,w(n)),push:this.handlePush,replace:this.handleReplace,go:O("go"),goBack:O("goBack"),goForward:O("goForward"),listen:this.handleListen,block:this.handleBlock};return h.a.createElement(v.a,y({},o,{history:i}))},e}(h.a.Component);C.propTypes={basename:d.a.string,context:d.a.object.isRequired,location:d.a.oneOfType([d.a.string,d.a.object])},C.defaultProps={basename:"",location:"/"},C.childContextTypes={router:d.a.object.isRequired},e.a=C},function(t,e,n){"use strict";var r=n(306);e.a=r.a},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(0),u=n.n(a),s=n(1),c=n.n(s),l=n(7),f=n.n(l),h=n(13),p=n.n(h),d=n(81),m=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.componentWillMount=function(){p()(this.context.router,"You should not use outside a ")},e.prototype.componentWillReceiveProps=function(t){f()(!(t.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),f()(!(!t.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},e.prototype.render=function(){var t=this.context.router.route,e=this.props.children,n=this.props.location||t.location,r=void 0,o=void 0;return u.a.Children.forEach(e,function(e){if(u.a.isValidElement(e)){var i=e.props,a=i.path,s=i.exact,c=i.strict,l=i.sensitive,f=i.from,h=a||f;null==r&&(o=e,r=h?Object(d.a)(n.pathname,{path:h,exact:s,strict:c,sensitive:l}):t.match)}}),r?u.a.cloneElement(o,{location:n,computedMatch:r}):null},e}(u.a.Component);m.contextTypes={router:c.a.shape({route:c.a.object.isRequired}).isRequired},m.propTypes={children:c.a.node,location:c.a.object},e.a=m},function(t,e,n){"use strict";var r=n(81);e.a=r.a},function(t,e,n){"use strict";var r=n(309);e.a=r.a},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}var o=n(0),i=n.n(o),a=n(1),u=n.n(a),s=n(310),c=n.n(s),l=n(143),f=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{validate:!1},r=!n.props.noValidate&&(n.props.liveValidate||e.validate),o={formData:t};if(r){var i=n.validate(t),a=i.errors,u=i.errorSchema;o=s({},o,{errors:a,errorSchema:u})}(0,m.setState)(n,o,function(){n.props.onChange&&n.props.onChange(n.state)})},n.onBlur=function(){if(n.props.onBlur){var t;(t=n.props).onBlur.apply(t,arguments)}},n.onFocus=function(){if(n.props.onFocus){var t;(t=n.props).onFocus.apply(t,arguments)}},n.onSubmit=function(t){if(t.preventDefault(),!n.props.noValidate){var e=function(){var t=n.validate(n.state.formData),e=t.errors,r=t.errorSchema;if(Object.keys(e).length>0)return(0,m.setState)(n,{errors:e,errorSchema:r},function(){n.props.onError?n.props.onError(e):console.error("Form validation failed",e)}),{v:void 0}}();if("object"===(void 0===e?"undefined":u(e)))return e.v}n.props.onSubmit&&n.props.onSubmit(s({},n.state,{status:"submitted"})),n.setState({errors:[],errorSchema:{}})},n.state=n.getStateFromProps(t),n}return a(e,t),c(e,[{key:"componentWillReceiveProps",value:function(t){this.setState(this.getStateFromProps(t))}},{key:"getStateFromProps",value:function(t){var e=this.state||{},n="schema"in t?t.schema:this.props.schema,r="uiSchema"in t?t.uiSchema:this.props.uiSchema,o=void 0!==t.formData,i=t.liveValidate||this.props.liveValidate,a=o&&!t.noValidate&&i,u=n.definitions,s=(0,m.getDefaultFormState)(n,t.formData,u),c=a?this.validate(s,n):{errors:e.errors||[],errorSchema:e.errorSchema||{}},l=c.errors,f=c.errorSchema;return{schema:n,uiSchema:r,idSchema:(0,m.toIdSchema)(n,r["ui:rootFieldId"],u),formData:s,edit:o,errors:l,errorSchema:f}}},{key:"shouldComponentUpdate",value:function(t,e){return(0,m.shouldRender)(this,t,e)}},{key:"validate",value:function(t,e){var n=this.props,r=n.validate,o=n.transformErrors;return(0,y.default)(t,e||this.props.schema,r,o)}},{key:"renderErrors",value:function(){var t=this.state,e=t.errors,n=t.errorSchema,r=t.schema,o=t.uiSchema,i=this.props,a=i.ErrorList,u=i.showErrorList,s=i.formContext;return e.length&&0!=u?f.default.createElement(a,{errors:e,errorSchema:n,schema:r,uiSchema:o,formContext:s}):null}},{key:"getRegistry",value:function(){var t=(0,m.getDefaultRegistry)(),e=t.fields,n=t.widgets;return{fields:s({},e,this.props.fields),widgets:s({},n,this.props.widgets),ArrayFieldTemplate:this.props.ArrayFieldTemplate,FieldTemplate:this.props.FieldTemplate,definitions:this.props.schema.definitions||{},formContext:this.props.formContext||{}}}},{key:"render",value:function(){var t=this.props,e=t.children,n=t.safeRenderCompletion,r=t.id,o=t.className,i=t.name,a=t.method,u=t.target,s=t.action,c=t.autocomplete,l=t.enctype,h=t.acceptcharset,p=t.noHtml5Validate,d=this.state,m=d.schema,v=d.uiSchema,y=d.formData,g=d.errorSchema,b=d.idSchema,_=this.getRegistry(),w=_.fields.SchemaField;return f.default.createElement("form",{className:o||"rjsf",id:r,name:i,method:a,target:u,action:s,autoComplete:c,encType:l,acceptCharset:h,noValidate:p,onSubmit:this.onSubmit},this.renderErrors(),f.default.createElement(w,{schema:m,uiSchema:v,errorSchema:g,idSchema:b,formData:y,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:_,safeRenderCompletion:n}),e||f.default.createElement("p",null,f.default.createElement("button",{type:"submit",className:"btn btn-info"},"Submit")))}}]),e}(l.Component);g.defaultProps={uiSchema:{},noValidate:!1,liveValidate:!1,safeRenderCompletion:!1,noHtml5Validate:!1,ErrorList:d.default},e.default=g},function(t,e,n){"use strict";function r(t){var e=t.errors;return i.default.createElement("div",{className:"panel panel-danger errors"},i.default.createElement("div",{className:"panel-heading"},i.default.createElement("h3",{className:"panel-title"},"Errors")),i.default.createElement("ul",{className:"list-group"},e.map(function(t,e){return i.default.createElement("li",{key:e,className:"list-group-item text-danger"},t.stack)})))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var o=n(0),i=function(t){return t&&t.__esModule?t:{default:t}}(o)},function(t,e,n){function r(t,e){this._id=t,this._clearFn=e}var o=Function.prototype.apply;e.setTimeout=function(){return new r(o.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new r(o.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(145),e.setImmediate=setImmediate,e.clearImmediate=clearImmediate},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(317),i=r(o),a=n(318),u=r(a),s=n(146),c=r(s),l=n(319),f=r(l),h=n(320),p=r(h),d=n(321),m=r(d),v=n(322),y=r(v),g=n(323),b=r(g),_=n(84),w=r(_);e.default={ArrayField:i.default,BooleanField:u.default,DescriptionField:c.default,NumberField:f.default,ObjectField:p.default,SchemaField:m.default,StringField:y.default,TitleField:b.default,UnsupportedField:w.default}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function c(t){var e=t.TitleField,n=t.idSchema,r=t.title,o=t.required;if(!r)return b.default.createElement("div",null);var i=n.$id+"__title";return b.default.createElement(e,{id:i,title:r,required:o})}function l(t){var e=t.DescriptionField,n=t.idSchema,r=t.description;if(!r)return b.default.createElement("div",null);var o=n.$id+"__description";return b.default.createElement(e,{id:o,description:r})}function f(t){var e=t.type,n=void 0===e?"default":e,r=t.icon,o=t.className,i=s(t,["type","icon","className"]);return b.default.createElement("button",y({type:"button",className:"btn btn-"+n+" "+o},i),b.default.createElement("i",{className:"glyphicon glyphicon-"+r}))}function h(t){var e={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};return b.default.createElement("div",{key:t.index,className:t.className},b.default.createElement("div",{className:t.hasToolbar?"col-xs-9":"col-xs-12"},t.children),t.hasToolbar&&b.default.createElement("div",{className:"col-xs-3 array-item-toolbox"},b.default.createElement("div",{className:"btn-group",style:{display:"flex",justifyContent:"space-around"}},(t.hasMoveUp||t.hasMoveDown)&&b.default.createElement(f,{icon:"arrow-up",className:"array-item-move-up",tabIndex:"-1",style:e,disabled:t.disabled||t.readonly||!t.hasMoveUp,onClick:t.onReorderClick(t.index,t.index-1)}),(t.hasMoveUp||t.hasMoveDown)&&b.default.createElement(f,{icon:"arrow-down",className:"array-item-move-down",tabIndex:"-1",style:e,disabled:t.disabled||t.readonly||!t.hasMoveDown,onClick:t.onReorderClick(t.index,t.index+1)}),t.hasRemove&&b.default.createElement(f,{type:"danger",icon:"remove",className:"array-item-remove",tabIndex:"-1",style:e,disabled:t.disabled||t.readonly,onClick:t.onDropIndexClick(t.index)}))))}function p(t){return b.default.createElement("fieldset",{className:t.className},b.default.createElement(c,{key:"array-field-title-"+t.idSchema.$id,TitleField:t.TitleField,idSchema:t.idSchema,title:t.uiSchema["ui:title"]||t.title,required:t.required}),(t.uiSchema["ui:description"]||t.schema.description)&&b.default.createElement("div",{className:"field-description",key:"field-description-"+t.idSchema.$id},t.uiSchema["ui:description"]||t.schema.description),b.default.createElement("div",{className:"row array-item-list",key:"array-item-list-"+t.idSchema.$id},t.items&&t.items.map(h)),t.canAdd&&b.default.createElement(m,{onClick:t.onAddClick,disabled:t.disabled||t.readonly}))}function d(t){return b.default.createElement("fieldset",{className:t.className},b.default.createElement(c,{key:"array-field-title-"+t.idSchema.$id,TitleField:t.TitleField,idSchema:t.idSchema,title:t.uiSchema["ui:title"]||t.title,required:t.required}),(t.uiSchema["ui:description"]||t.schema.description)&&b.default.createElement(l,{key:"array-field-description-"+t.idSchema.$id,DescriptionField:t.DescriptionField,idSchema:t.idSchema,description:t.uiSchema["ui:description"]||t.schema.description}),b.default.createElement("div",{className:"row array-item-list",key:"array-item-list-"+t.idSchema.$id},t.items&&t.items.map(function(t){return h(t)})),t.canAdd&&b.default.createElement(m,{onClick:t.onAddClick,disabled:t.disabled||t.readonly}))}function m(t){var e=t.onClick,n=t.disabled;return b.default.createElement("div",{className:"row"},b.default.createElement("p",{className:"col-xs-3 col-xs-offset-9 array-item-add text-right"},b.default.createElement(f,{type:"info",icon:"plus",className:"btn-add col-xs-12",tabIndex:"0",onClick:e,disabled:n})))}Object.defineProperty(e,"__esModule",{value:!0});var v=function(){function t(t,e){for(var n=0;n0,canMoveDown:n=E.length,u=a?C:E[n],s=i.$id+"_"+n,c=(0,O.toIdSchema)(u,s,_),f=a?r.additionalItems||{}:Array.isArray(r.items)?r.items[n]:r.items||{},h=o?o[n]:void 0;return t.renderArrayFieldItem({index:n,canRemove:a,canMoveUp:n>=E.length+1,canMoveDown:a&&n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t){var e=t.schema,n=t.name,r=t.uiSchema,i=t.idSchema,u=t.formData,c=t.registry,f=void 0===c?(0,l.getDefaultRegistry)():c,h=t.required,p=t.disabled,d=t.readonly,m=t.autofocus,v=t.onChange,y=e.title,g=f.widgets,b=f.formContext,_=(0,l.getUiOptions)(r),w=_.widget,x=void 0===w?"checkbox":w,O=o(_,["widget"]),E=(0,l.getWidget)(e,x,g),C=(0,l.optionsList)({enum:[!0,!1],enumNames:e.enumNames||["yes","no"]});return s.default.createElement(E,{options:a({},O,{enumOptions:C}),schema:e,id:i&&i.$id,onChange:v,label:void 0===y?n:y,value:u,required:h,disabled:p,readonly:d,registry:f,formContext:b,autofocus:m})}Object.defineProperty(e,"__esModule",{value:!0});var a=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function s(t,e,n,r){var o=e["ui:field"];if("function"==typeof o)return o;if("string"==typeof o&&o in r)return r[o];var i=O[t.type];return i in r?r[i]:function(){return y.default.createElement(w.default,{schema:t,idSchema:n,reason:"Unknown field type "+t.type})}}function c(t){var e=t.label,n=t.required,r=t.id;return e?y.default.createElement("label",{className:"control-label",htmlFor:r},n?e+x:e):y.default.createElement("div",null)}function l(t){var e=t.help;return e?"string"==typeof e?y.default.createElement("p",{className:"help-block"},e):y.default.createElement("div",{className:"help-block"},e):y.default.createElement("div",null)}function f(t){var e=t.errors,n=void 0===e?[]:e;return 0===n.length?y.default.createElement("div",null):y.default.createElement("div",null,y.default.createElement("p",null),y.default.createElement("ul",{className:"error-detail bs-callout bs-callout-info"},n.map(function(t,e){return y.default.createElement("li",{className:"text-danger",key:e},t)})))}function h(t){var e=t.id,n=t.classNames,r=t.label,o=t.children,i=t.errors,a=t.help,u=t.description,s=t.hidden,l=t.required,f=t.displayLabel;return s?o:y.default.createElement("div",{className:n},f&&y.default.createElement(c,{label:r,required:l,id:e}),f&&u?u:null,o,i,a)}function p(t){var e=t.uiSchema,n=t.errorSchema,r=t.idSchema,o=t.name,i=t.required,a=t.registry,c=void 0===a?(0,b.getDefaultRegistry)():a,p=c.definitions,d=c.fields,v=c.formContext,g=c.FieldTemplate,_=void 0===g?h:g,w=(0,b.retrieveSchema)(t.schema,p),x=s(w,e,r,d),O=d.DescriptionField,E=Boolean(t.disabled||e["ui:disabled"]),C=Boolean(t.readonly||e["ui:readonly"]),S=Boolean(t.autofocus||e["ui:autofocus"]);if(0===Object.keys(w).length)return y.default.createElement("div",null);var k=(0,b.getUiOptions)(e),j=k.label,P=void 0===j||j;"array"===w.type&&(P=(0,b.isMultiSelect)(w,p)||(0,b.isFilesArray)(w,e,p)),"object"===w.type&&(P=!1),"boolean"!==w.type||e["ui:widget"]||(P=!1),e["ui:field"]&&(P=!1);var M=n.__errors,T=u(n,["__errors"]),A=y.default.createElement(x,m({},t,{schema:w,uiSchema:m({},e,{classNames:void 0}),disabled:E,readonly:C,autofocus:S,errorSchema:T,formContext:v})),N=w.type,R=r.$id,I=e["ui:title"]||t.schema.title||w.title||o,D=e["ui:description"]||t.schema.description||w.description,L=M,U=e["ui:help"],F="hidden"===e["ui:widget"],q=["form-group","field","field-"+N,L&&L.length>0?"field-error has-error has-danger":"",e.classNames].join(" ").trim(),W={description:y.default.createElement(O,{id:R+"__description",description:D,formContext:v}),rawDescription:D,help:y.default.createElement(l,{help:U}),rawHelp:"string"==typeof U?U:void 0,errors:y.default.createElement(f,{errors:L}),rawErrors:L,id:R,label:I,hidden:F,required:i,readonly:C,displayLabel:P,classNames:q,formContext:v,fields:d,schema:w,uiSchema:e};return y.default.createElement(_,W,A)}Object.defineProperty(e,"__esModule",{value:!0});var d=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t){var e=t.schema,n=t.name,r=t.uiSchema,i=t.idSchema,u=t.formData,c=t.required,f=t.disabled,h=t.readonly,p=t.autofocus,d=t.onChange,m=t.onBlur,v=t.onFocus,y=t.registry,g=void 0===y?(0,l.getDefaultRegistry)():y,b=e.title,_=e.format,w=g.widgets,x=g.formContext,O=(0,l.isSelect)(e)&&(0,l.optionsList)(e),E=_||(O?"select":"text"),C=(0,l.getUiOptions)(r),S=C.widget,k=void 0===S?E:S,j=C.placeholder,P=void 0===j?"":j,M=o(C,["widget","placeholder"]),T=(0,l.getWidget)(e,k,w);return s.default.createElement(T,{options:a({},M,{enumOptions:O}),schema:e,id:i&&i.$id,label:void 0===b?n:b,value:u,onChange:d,onBlur:m,onFocus:v,required:c,disabled:f,readonly:h,formContext:x,autofocus:p,registry:g,placeholder:P})}Object.defineProperty(e,"__esModule",{value:!0});var a=Object.assign||function(t){for(var e=1;en.indexOf(e)})}function i(t,e){return e.filter(function(e){return e!==t})}function a(t){var e=t.id,n=t.disabled,r=t.options,a=t.value,u=t.autofocus,c=t.readonly,l=t.onChange,f=r.enumOptions,h=r.inline;return s.default.createElement("div",{className:"checkboxes",id:e},f.map(function(t,r){var p=-1!==a.indexOf(t.value),d=n||c?"disabled":"",m=s.default.createElement("span",null,s.default.createElement("input",{type:"checkbox",id:e+"_"+r,checked:p,disabled:n||c,autoFocus:u&&0===r,onChange:function(e){var n=f.map(function(t){return t.value});l(e.target.checked?o(t.value,a,n):i(t.value,a))}}),s.default.createElement("span",null,t.label));return h?s.default.createElement("label",{key:r,className:"checkbox-inline "+d},m):s.default.createElement("div",{key:r,className:"checkbox "+d},s.default.createElement("label",null,m))}))}Object.defineProperty(e,"__esModule",{value:!0});var u=n(0),s=r(u),c=n(1);r(c);a.defaultProps={autofocus:!1,options:{inline:!1}},e.default=a},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){var e=t.disabled,n=t.readonly;return u.default.createElement(l.default,i({type:"color"},t,{disabled:e||n}))}Object.defineProperty(e,"__esModule",{value:!0});var i=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:"root",n=[];return"__errors"in t&&(n=n.concat(t.__errors.map(function(t){return{stack:e+": "+t}}))),Object.keys(t).reduce(function(e,n){return"__errors"!==n&&(e=e.concat(i(t[n],n))),e},n)}function a(t){var e={__errors:[],addError:function(t){this.__errors.push(t)}};return(0,p.isObject)(t)?Object.keys(t).reduce(function(e,n){return c({},e,r({},n,a(t[n])))},e):Array.isArray(t)?t.reduce(function(t,e,n){return c({},t,r({},n,a(e)))},e):e}function u(t){return Object.keys(t).reduce(function(e,n){return"addError"===n?e:"__errors"===n?c({},e,r({},n,t[n])):c({},e,r({},n,u(t[n])))},{})}function s(t,e,n,r){var s=(0,h.validate)(t,e),c=s.errors;"function"==typeof r&&(c=r(c));var l=o(c);if("function"!=typeof n)return{errors:c,errorSchema:l};var f=n(t,a(t)),d=u(f),m=(0,p.mergeObjects)(l,d,!0);return{errors:i(m),errorSchema:m}}Object.defineProperty(e,"__esModule",{value:!0});var c=Object.assign||function(t){for(var e=1;e-1}function v(t,e){var n=this.__data__,r=O(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}function y(t){var e=-1,n=t?t.length:0;for(this.clear();++e already exists with different definition");return this.schemas[r]}this.schemas[r]=e;var u=r.replace(/^([^#]*)#$/,"$1");this.schemas[u]=e}return this.addSubSchemaArray(i,e.items instanceof Array?e.items:[e.items]),this.addSubSchemaArray(i,e.extends instanceof Array?e.extends:[e.extends]),this.addSubSchema(i,e.additionalItems),this.addSubSchemaObject(i,e.properties),this.addSubSchema(i,e.additionalProperties),this.addSubSchemaObject(i,e.definitions),this.addSubSchemaObject(i,e.patternProperties),this.addSubSchemaObject(i,e.dependencies),this.addSubSchemaArray(i,e.disallow),this.addSubSchemaArray(i,e.allOf),this.addSubSchemaArray(i,e.anyOf),this.addSubSchemaArray(i,e.oneOf),this.addSubSchema(i,e.not),this.schemas[r]}},l.prototype.addSubSchemaArray=function(t,e){if(e instanceof Array)for(var n=0;n",t);var c=a.objectGetPath(n.schemas[u],i.substr(1));if(void 0===c)throw new s("no such schema "+i+" located in <"+u+">",t);return{subschema:c,switchSchema:e}},l.prototype.testType=function(t,e,n,r,o){if("function"==typeof this.types[o])return this.types[o].call(this,t);if(o&&"object"==typeof o){var i=this.validateSchema(t,o,n,r);return void 0===i||!(i&&i.errors.length)}return!0};var f=l.prototype.types={};f.string=function(t){return"string"==typeof t},f.number=function(t){return"number"==typeof t&&isFinite(t)},f.integer=function(t){return"number"==typeof t&&t%1==0},f.boolean=function(t){return"boolean"==typeof t},f.array=function(t){return Array.isArray(t)},f.null=function(t){return null===t},f.date=function(t){return t instanceof Date},f.any=function(t){return!0},f.object=function(t){return t&&"object"==typeof t&&!(t instanceof Array)&&!(t instanceof Date)},t.exports=l},function(t,e,n){(function(t,r){var o;!function(i){function a(t){throw new RangeError(A[t])}function u(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function s(t,e){var n=t.split("@"),r="";return n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(T,"."),r+u(t.split("."),e).join(".")}function c(t){for(var e,n,r=[],o=0,i=t.length;o=55296&&e<=56319&&o65535&&(t-=65536,e+=I(t>>>10&1023|55296),t=56320|1023&t),e+=I(t)}).join("")}function f(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:w}function h(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function p(t,e,n){var r=0;for(t=n?R(t/C):t>>1,t+=R(t/e);t>N*O>>1;r+=w)t=R(t/N);return R(r+(N+1)*t/(t+E))}function d(t){var e,n,r,o,i,u,s,c,h,d,m=[],v=t.length,y=0,g=k,b=S;for(n=t.lastIndexOf(j),n<0&&(n=0),r=0;r=128&&a("not-basic"),m.push(t.charCodeAt(r));for(o=n>0?n+1:0;o=v&&a("invalid-input"),c=f(t.charCodeAt(o++)),(c>=w||c>R((_-y)/u))&&a("overflow"),y+=c*u,h=s<=b?x:s>=b+O?O:s-b,!(cR(_/d)&&a("overflow"),u*=d;e=m.length+1,b=p(y-i,e,0==i),R(y/e)>_-g&&a("overflow"),g+=R(y/e),y%=e,m.splice(y++,0,g)}return l(m)}function m(t){var e,n,r,o,i,u,s,l,f,d,m,v,y,g,b,E=[];for(t=c(t),v=t.length,e=k,n=0,i=S,u=0;u=e&&mR((_-n)/y)&&a("overflow"),n+=(s-e)*y,e=s,u=0;u_&&a("overflow"),m==e){for(l=n,f=w;d=f<=i?x:f>=i+O?O:f-i,!(l= 0x80 (not a basic code point)","invalid-input":"Invalid input"},N=w-x,R=Math.floor,I=String.fromCharCode;b={version:"1.4.1",ucs2:{decode:c,encode:l},decode:d,encode:m,toASCII:y,toUnicode:v},void 0!==(o=function(){return b}.call(e,n,e,t))&&(t.exports=o)}()}).call(e,n(348)(t),n(83))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},function(t,e,n){"use strict";e.decode=e.parse=n(351),e.encode=e.stringify=n(352)},function(t,e,n){"use strict";function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,n,i){e=e||"&",n=n||"=";var a={};if("string"!=typeof t||0===t.length)return a;var u=/\+/g;t=t.split(e);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var c=t.length;s>0&&c>s&&(c=s);for(var l=0;l=0?(f=m.substr(0,v),h=m.substr(v+1)):(f=m,h=""),p=decodeURIComponent(f),d=decodeURIComponent(h),r(a,p)?o(a[p])?a[p].push(d):a[p]=[a[p],d]:a[p]=d}return a};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,n){"use strict";function r(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r"||t+""});o.addError({name:"type",argument:a,message:"is not of a type(s) "+a})}return o},l.anyOf=function(t,e,n,o){if(void 0===t)return null;var i=new u(t,e,n,o),a=new u(t,e,n,o);if(!Array.isArray(e.anyOf))throw new s("anyOf must be an array");if(!e.anyOf.some(r.bind(this,t,n,o,function(t){a.importErrors(t)}))){var c=e.anyOf.map(function(t,e){return t.id&&"<"+t.id+">"||t.title&&JSON.stringify(t.title)||t.$ref&&"<"+t.$ref+">"||"[subschema "+e+"]"});n.nestedErrors&&i.importErrors(a),i.addError({name:"anyOf",argument:c,message:"is not any of "+c.join(",")})}return i},l.allOf=function(t,e,n,r){if(void 0===t)return null;if(!Array.isArray(e.allOf))throw new s("allOf must be an array");var o=new u(t,e,n,r),i=this;return e.allOf.forEach(function(e,a){var u=i.validateSchema(t,e,n,r);if(!u.valid){var s=e.id&&"<"+e.id+">"||e.title&&JSON.stringify(e.title)||e.$ref&&"<"+e.$ref+">"||"[subschema "+a+"]";o.addError({name:"allOf",argument:{id:s,length:u.errors.length,valid:u},message:"does not match allOf schema "+s+" with "+u.errors.length+" error[s]:"}),o.importErrors(u)}}),o},l.oneOf=function(t,e,n,o){if(void 0===t)return null;if(!Array.isArray(e.oneOf))throw new s("oneOf must be an array");var i=new u(t,e,n,o),a=new u(t,e,n,o),c=e.oneOf.filter(r.bind(this,t,n,o,function(t){a.importErrors(t)})).length,l=e.oneOf.map(function(t,e){return t.id&&"<"+t.id+">"||t.title&&JSON.stringify(t.title)||t.$ref&&"<"+t.$ref+">"||"[subschema "+e+"]"});return 1!==c&&(n.nestedErrors&&i.importErrors(a),i.addError({name:"oneOf",argument:l,message:"is not exactly one from "+l.join(",")})),i},l.properties=function(t,e,n,r){if(void 0!==t&&t instanceof Object){var o=new u(t,e,n,r),i=e.properties||{};for(var a in i){var s=(t||void 0)&&t[a],c=this.validateSchema(s,i[a],n,r.makeChild(i[a],a));c.instance!==o.instance[a]&&(o.instance[a]=c.instance),o.importErrors(c)}return o}},l.patternProperties=function(t,e,n,r){if(void 0!==t&&this.types.object(t)){var i=new u(t,e,n,r),a=e.patternProperties||{};for(var s in t){var c=!0;for(var l in a){if(new RegExp(l).test(s)){c=!1;var f=this.validateSchema(t[s],a[l],n,r.makeChild(a[l],s));f.instance!==i.instance[s]&&(i.instance[s]=f.instance),i.importErrors(f)}}c&&o.call(this,t,e,n,r,s,i)}return i}},l.additionalProperties=function(t,e,n,r){if(void 0!==t&&this.types.object(t)){if(e.patternProperties)return null;var i=new u(t,e,n,r);for(var a in t)o.call(this,t,e,n,r,a,i);return i}},l.minProperties=function(t,e,n,r){if(!t||"object"!=typeof t)return null;var o=new u(t,e,n,r);return Object.keys(t).length>=e.minProperties||o.addError({name:"minProperties",argument:e.minProperties,message:"does not meet minimum property length of "+e.minProperties}),o},l.maxProperties=function(t,e,n,r){if(!t||"object"!=typeof t)return null;var o=new u(t,e,n,r);return Object.keys(t).length<=e.maxProperties||o.addError({name:"maxProperties",argument:e.maxProperties,message:"does not meet maximum property length of "+e.maxProperties}),o},l.items=function(t,e,n,r){if(!Array.isArray(t))return null;var o=this,i=new u(t,e,n,r);return void 0!==t&&e.items?(t.every(function(t,a){var u=Array.isArray(e.items)?e.items[a]||e.additionalItems:e.items;if(void 0===u)return!0;if(!1===u)return i.addError({name:"items",message:"additionalItems not permitted"}),!1;var s=o.validateSchema(t,u,n,r.makeChild(u,a));return s.instance!==i.instance[a]&&(i.instance[a]=s.instance),i.importErrors(s),!0}),i):i},l.minimum=function(t,e,n,r){if("number"!=typeof t)return null;var o=new u(t,e,n,r),i=!0;return i=e.exclusiveMinimum&&!0===e.exclusiveMinimum?t>e.minimum:t>=e.minimum,i||o.addError({name:"minimum",argument:e.minimum,message:"must have a minimum value of "+e.minimum}),o},l.maximum=function(t,e,n,r){if("number"!=typeof t)return null;var o,i=new u(t,e,n,r);return o=e.exclusiveMaximum&&!0===e.exclusiveMaximum?t=e.minLength||o.addError({name:"minLength",argument:e.minLength,message:"does not meet minimum length of "+e.minLength}),o},l.maxLength=function(t,e,n,r){if("string"!=typeof t)return null;var o=new u(t,e,n,r);return t.length<=e.maxLength||o.addError({name:"maxLength",argument:e.maxLength,message:"does not meet maximum length of "+e.maxLength}),o},l.minItems=function(t,e,n,r){if(!Array.isArray(t))return null;var o=new u(t,e,n,r);return t.length>=e.minItems||o.addError({name:"minItems",argument:e.minItems,message:"does not meet minimum length of "+e.minItems}),o},l.maxItems=function(t,e,n,r){if(!Array.isArray(t))return null;var o=new u(t,e,n,r);return t.length<=e.maxItems||o.addError({name:"maxItems",argument:e.maxItems,message:"does not meet maximum length of "+e.maxItems}),o},l.uniqueItems=function(t,e,n,r){function o(t,e,n){for(var r=e+1;r"||a;i.addError({name:"not",argument:u,message:"is of prohibited type "+u})}}),i):null},t.exports=c},function(t,e,n){var r=n(355);"string"==typeof r&&(r=[[t.i,r,""]]);var o={};o.transform=void 0;n(357)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(356)(void 0),e.push([t.i,"*{box-sizing:border-box}.container{margin:4px;overflow:hidden;position:fixed}.container>div{padding:1em}.container{display:grid;width:100%;grid-template-columns:450px 1fr;grid-auto-rows:minmax(100px,auto)}.container__graph{grid-column:1/5;grid-row:1/2;border:1px solid #000}.container__graph-info{margin-left:12px}.btn-margin-left{margin-left:4px}.container__graph-area{max-width:800px;max-height:400px;border:1px dotted gray;margin-left:80px;margin-top:4px}.container__graph-data{grid-column:1/2;grid-row:2/3;margin-bottom:4px}.container__graph-config{grid-column:2/3;grid-row:2/3;margin-bottom:4px}.container__form{grid-column:5/6;grid-row:1/4;min-width:400px}.cross-icon{padding-right:8px}.cross-icon:hover{cursor:pointer}.form-wrapper{overflow-y:scroll;max-height:70vh}.json-data-container{max-height:250px;overflow:scroll}.reset-button,.submit-button{margin-top:22px}.reset-button{margin-left:8px}.invisible-button{background:transparent;border:none!important;font-size:0}",""])},function(t,e){function n(t,e){var n=t[1]||"",o=t[3];if(!o)return n;if(e&&"function"==typeof btoa){var i=r(o);return[n].concat(o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"})).concat([i]).join("\n")}return[n].join("\n")}function r(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var r=n(e,t);return e[2]?"@media "+e[2]+"{"+r+"}":r}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o=0&&b.splice(e,1)}function u(t){var e=document.createElement("style");return t.attrs.type="text/css",c(e,t.attrs),i(t,e),e}function s(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",c(e,t.attrs),i(t,e),e}function c(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function l(t,e){var n,r,o,i;if(e.transform&&t.css){if(!(i=e.transform(t.css)))return function(){};t.css=i}if(e.singleton){var c=g++;n=y||(y=u(e)),r=f.bind(null,n,c,!1),o=f.bind(null,n,c,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(e),r=p.bind(null,n,e),o=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=u(e),r=h.bind(null,n),o=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 o()}}function f(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=w(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function h(t,e){var n=e.css,r=e.media;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,n){var r=n.css,o=n.sourceMap,i=void 0===e.convertToAbsoluteUrls&&o;(e.convertToAbsoluteUrls||i)&&(r=_(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),u=t.href;t.href=URL.createObjectURL(a),u&&URL.revokeObjectURL(u)}var d={},m=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),v=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t.call(this,n)),e[n]}}(function(t){return document.querySelector(t)}),y=null,g=0,b=[],_=n(358);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},e.attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||(e.singleton=m()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=o(t,e);return r(n,e),function(t){for(var i=[],a=0;a1&&void 0!==arguments[1]&&arguments[1];n.state.highlightedNode=e?t:"",n.state.nodes[t].highlighted=e,n.state.links[t]&&0!==n.state.config.highlightDegree&&Object.keys(n.state.links[t]).forEach(function(t){n.state.nodes[t].highlighted=e}),n._tick()},n._tick=function(){return n.setState(n.state||{})},n._zoomConfig=function(){return(0,p.select)("#"+n.state.id+"-"+v.default.GRAPH_WRAPPER_ID).call((0,d.zoom)().scaleExtent([n.state.config.minZoom,n.state.config.maxZoom]).on("zoom",n._zoomed))},n._zoomed=function(){var t=p.event.transform;(0,p.selectAll)("#"+n.state.id+"-"+v.default.GRAPH_CONTAINER_ID).attr("transform",t),n.state.config.panAndZoom&&n.setState({transform:t.k})},n.onMouseOverNode=function(t){n.props.onMouseOverNode&&n.props.onMouseOverNode(t),n.state.config.nodeHighlightBehavior&&n._setNodeHighlightedValue(t,!0)},n.onMouseOutNode=function(t){n.props.onMouseOutNode&&n.props.onMouseOutNode(t),n.state.config.nodeHighlightBehavior&&n._setNodeHighlightedValue(t,!1)},n.onMouseOverLink=function(t,e){n.props.onMouseOverLink&&n.props.onMouseOverLink(t,e),n.state.config.linkHighlightBehavior&&(n.state.highlightedLink={source:t,target:e},n._tick())},n.onMouseOutLink=function(t,e){n.props.onMouseOutLink&&n.props.onMouseOutLink(t,e),n.state.config.linkHighlightBehavior&&(n.state.highlightedLink=void 0,n._tick())},n.pauseSimulation=function(){return!n.state.config.staticGraph&&n.state.simulation.stop()},n.resetNodesPositions=function(){if(!n.state.config.staticGraph){for(var t in n.state.nodes){var e=n.state.nodes[t];e.fx&&e.fy&&(Reflect.deleteProperty(e,"fx"),Reflect.deleteProperty(e,"fy"))}n.state.simulation.alphaTarget(C.SIMULATION_ALPHA_TARGET).restart(),n._tick()}},n.restartSimulation=function(){return!n.state.config.staticGraph&&n.state.simulation.restart()},n.props.id||E.default.throwErr(n.constructor.name,_.default.GRAPH_NO_ID_PROP),n.state=x.default.initializeGraphState(n.props,n.state),n}return a(e,t),s(e,[{key:"_graphForcesConfig",value:function(){this.state.simulation.nodes(this.state.d3Nodes).on("tick",this._tick);var t=(0,h.forceLink)(this.state.d3Links).id(function(t){return t.id}).distance(C.LINK_IDEAL_DISTANCE).strength(C.FORCE_LINK_STRENGTH);this.state.simulation.force(v.default.LINK_CLASS_NAME,t);var e=(0,f.drag)().on("start",this._onDragStart).on("drag",this._onDragMove).on("end",this._onDragEnd);(0,p.select)("#"+this.state.id+"-"+v.default.GRAPH_WRAPPER_ID).selectAll(".node").call(e)}}]),s(e,[{key:"componentWillReceiveProps",value:function(t){var e=t.data.nodes.length!==this.state.d3Nodes.length||t.data.links.length!==this.state.d3Links.length;e&&t.config.staticGraph&&E.default.throwErr(this.constructor.name,_.default.STATIC_GRAPH_DATA_UPDATE);var n=!E.default.isDeepEqual(t.config,this.state.config),r=e?x.default.initializeGraphState(t,this.state):this.state,o=n?E.default.merge(g.default,t.config||{}):this.state.config;e&&this.pauseSimulation();var i=t.config.panAndZoom!==this.state.config.panAndZoom?1:this.state.transform;this.setState(u({},r,{config:o,newGraphElements:e,configUpdated:n,transform:i}))}},{key:"componentDidUpdate",value:function(){this.state.config.staticGraph&&this.state.simulation.stop(),!this.state.config.staticGraph&&this.state.newGraphElements&&(this._graphForcesConfig(),this.restartSimulation(),this.state.newGraphElements=!1),this.state.configUpdated&&(this._zoomConfig(),this.state.configUpdated=!1)}},{key:"componentDidMount",value:function(){this.state.config.staticGraph||this._graphForcesConfig(),this._zoomConfig()}},{key:"componentWillUnmount",value:function(){this.state.simulation.stop()}},{key:"render",value:function(){var t=x.default.buildGraph(this.state.nodes,{onClickNode:this.props.onClickNode,onMouseOverNode:this.onMouseOverNode,onMouseOut:this.onMouseOutNode},this.state.links,{onClickLink:this.props.onClickLink,onMouseOverLink:this.onMouseOverLink,onMouseOutLink:this.onMouseOutLink},this.state.config,this.state.highlightedNode,this.state.highlightedLink,this.state.transform),e=t.nodes,n=t.links,r={height:this.state.config.height,width:this.state.config.width};return l.default.createElement("div",{id:this.state.id+"-"+v.default.GRAPH_WRAPPER_ID},l.default.createElement("svg",{style:r},l.default.createElement("g",{id:this.state.id+"-"+v.default.GRAPH_CONTAINER_ID},n,e)))}}]),e}(l.default.Component);e.default=S},function(t,e,n){"use strict";function r(){return!s.event.button}function o(){return this.parentNode}function i(t){return null==t?{x:s.event.x,y:s.event.y}:t}function a(){return"ontouchstart"in this}var u=n(51),s=n(8),c=n(154),l=n(155),f=n(396),h=n(397);e.a=function(){function t(t){t.on("mousedown.drag",e).filter(a).on("touchstart.drag",d).on("touchmove.drag",m).on("touchend.drag touchcancel.drag",v).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function e(){if(!w&&x.apply(this,arguments)){var t=y("mouse",O.apply(this,arguments),s.mouse,this,arguments);t&&(Object(s.select)(s.event.view).on("mousemove.drag",n,!0).on("mouseup.drag",p,!0),Object(c.a)(s.event.view),Object(l.b)(),_=!1,g=s.event.clientX,b=s.event.clientY,t("start"))}}function n(){if(Object(l.a)(),!_){var t=s.event.clientX-g,e=s.event.clientY-b;_=t*t+e*e>j}C.mouse("drag")}function p(){Object(s.select)(s.event.view).on("mousemove.drag mouseup.drag",null),Object(c.b)(s.event.view,_),Object(l.a)(),C.mouse("end")}function d(){if(x.apply(this,arguments)){var t,e,n=s.event.changedTouches,r=O.apply(this,arguments),o=n.length;for(t=0;t=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}function a(t,e){for(var n,r=0,o=t.length;r0)for(var n,r,o=new Array(n),i=0;i=E&&(E=O+1);!(x=_[E])&&++E=0;)(r=o[i])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this}},function(t,e,n){"use strict";function r(t,e){return te?1:t>=e?0:NaN}var o=n(14);e.a=function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=r);for(var n=this._groups,i=n.length,a=new Array(i),u=0;u1?this.each((null==e?r:"function"==typeof e?i:o)(t,e)):this.node()[t]}},function(t,e,n){"use strict";function r(t){return t.trim().split(/^|\s+/)}function o(t){return t.classList||new i(t)}function i(t){this._node=t,this._names=r(t.getAttribute("class")||"")}function a(t,e){for(var n=o(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}},e.a=function(t,e){var n=r(t+"");if(arguments.length<2){for(var i=o(this.node()),a=-1,u=n.length;++ap+c||rd+c||os.index){var l=p-i.x-i.vx,h=d-i.y-i.vy,y=l*l+h*h;yt.r&&(t.r=t[e].r)}function s(){if(c){var e,n,r=c.length;for(l=new Array(r),e=0;e=(i=(m+y)/2))?m=i:y=i,(l=n>=(a=(v+g)/2))?v=a:g=a,o=p,!(p=p[f=l<<1|c]))return o[f]=d,t;if(u=+t._x.call(null,p.data),s=+t._y.call(null,p.data),e===u&&n===s)return d.next=p,o?o[f]=d:t._root=d,t;do{o=o?o[f]=new Array(4):t._root=new Array(4),(c=e>=(i=(m+y)/2))?m=i:y=i,(l=n>=(a=(v+g)/2))?v=a:g=a}while((f=l<<1|c)==(h=(s>=a)<<1|u>=i));return o[h]=p,o[f]=d,t}function o(t){var e,n,o,i,a=t.length,u=new Array(a),s=new Array(a),c=1/0,l=1/0,f=-1/0,h=-1/0;for(n=0;nf&&(f=o),ih&&(h=i));for(ft||t>o||r>e||e>i))return this;var a,u,s=o-n,c=this._root;switch(u=(e<(r+i)/2)<<1|t<(n+o)/2){case 0:do{a=new Array(4),a[u]=c,c=a}while(s*=2,o=n+s,i=r+s,t>o||e>i);break;case 1:do{a=new Array(4),a[u]=c,c=a}while(s*=2,n=o-s,i=r+s,n>t||e>i);break;case 2:do{a=new Array(4),a[u]=c,c=a}while(s*=2,o=n+s,r=i-s,t>o||r>e);break;case 3:do{a=new Array(4),a[u]=c,c=a}while(s*=2,n=o-s,r=i-s,n>t||r>e)}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=o,this._y1=i,this}},function(t,e,n){"use strict";e.a=function(){var t=[];return this.visit(function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)}),t}},function(t,e,n){"use strict";e.a=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}},function(t,e,n){"use strict";var r=n(94);e.a=function(t,e,n){var o,i,a,u,s,c,l,f=this._x0,h=this._y0,p=this._x1,d=this._y1,m=[],v=this._root;for(v&&m.push(new r.a(v,f,h,p,d)),null==n?n=1/0:(f=t-n,h=e-n,p=t+n,d=e+n,n*=n);c=m.pop();)if(!(!(v=c.node)||(i=c.x0)>p||(a=c.y0)>d||(u=c.x1)=g)<<1|t>=y)&&(c=m[m.length-1],m[m.length-1]=m[m.length-1-l],m[m.length-1-l]=c)}else{var b=t-+this._x.call(null,v.data),_=e-+this._y.call(null,v.data),w=b*b+_*_;if(w=(u=(d+v)/2))?d=u:v=u,(l=a>=(s=(m+y)/2))?m=s:y=s,e=p,!(p=p[f=l<<1|c]))return this;if(!p.length)break;(e[f+1&3]||e[f+2&3]||e[f+3&3])&&(n=e,h=f)}for(;p.data!==t;)if(r=p,!(p=p.next))return this;return(o=p.next)&&delete p.next,r?(o?r.next=o:delete r.next,this):e?(o?e[f]=o:delete e[f],(p=e[0]||e[1]||e[2]||e[3])&&p===(e[3]||e[2]||e[1]||e[0])&&!p.length&&(n?n[h]=p:this._root=p),this):(this._root=o,this)}},function(t,e,n){"use strict";e.a=function(){return this._root}},function(t,e,n){"use strict";e.a=function(){var t=0;return this.visit(function(e){if(!e.length)do{++t}while(e=e.next)}),t}},function(t,e,n){"use strict";var r=n(94);e.a=function(t){var e,n,o,i,a,u,s=[],c=this._root;for(c&&s.push(new r.a(c,this._x0,this._y0,this._x1,this._y1));e=s.pop();)if(!t(c=e.node,o=e.x0,i=e.y0,a=e.x1,u=e.y1)&&c.length){var l=(o+a)/2,f=(i+u)/2;(n=c[3])&&s.push(new r.a(n,l,f,a,u)),(n=c[2])&&s.push(new r.a(n,o,f,l,u)),(n=c[1])&&s.push(new r.a(n,l,i,a,f)),(n=c[0])&&s.push(new r.a(n,o,i,l,f))}return this}},function(t,e,n){"use strict";var r=n(94);e.a=function(t){var e,n=[],o=[];for(this._root&&n.push(new r.a(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var i=e.node;if(i.length){var a,u=e.x0,s=e.y0,c=e.x1,l=e.y1,f=(u+c)/2,h=(s+l)/2;(a=i[0])&&n.push(new r.a(a,u,s,f,h)),(a=i[1])&&n.push(new r.a(a,f,s,c,h)),(a=i[2])&&n.push(new r.a(a,u,h,f,l)),(a=i[3])&&n.push(new r.a(a,f,h,c,l))}o.push(e)}for(;e=o.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this}},function(t,e,n){"use strict";function r(t){return t[0]}e.b=r,e.a=function(t){return arguments.length?(this._x=t,this):this._x}},function(t,e,n){"use strict";function r(t){return t[1]}e.b=r,e.a=function(t){return arguments.length?(this._y=t,this):this._y}},function(t,e,n){"use strict";function r(t){return t.index}function o(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}var i=n(37),a=n(93),u=n(158);e.a=function(t){function e(t){return 1/Math.min(d[t.source.index],d[t.target.index])}function n(e){for(var n=0,r=t.length;n=d)){(t.data!==c||t.next)&&(0===i&&(i=Object(o.a)(),s+=i*i),0===a&&(a=Object(o.a)(),s+=a*a),sn?(n+r)/2:Math.min(0,n)||Math.max(0,r),i>o?(o+i)/2:Math.min(0,o)||Math.max(0,i))}function g(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function b(t,e,n){t.on("start.zoom",function(){_(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){_(this,arguments).end()}).tween("zoom",function(){var t=this,r=arguments,o=_(t,r),i=T.apply(t,r),a=n||g(i),u=Math.max(i[1][0]-i[0][0],i[1][1]-i[0][1]),s=t.__zoom,c="function"==typeof e?e.apply(t,r):e,l=q(s.invert(a).concat(u/s.k),c.invert(a).concat(u/c.k));return function(t){if(1===t)t=c;else{var e=l(t),n=u/e[2];t=new m.a(n,a[0]-e[0]*n,a[1]-e[1]*n)}o.zoom(null,t)}})}function _(t,e){for(var n,r=0,o=W.length;rH}r.zoom("mouse",y(n(r.that.__zoom,r.mouse[0]=Object(f.mouse)(r.that),r.mouse[1]),r.extent))}function e(){o.on("mousemove.zoom mouseup.zoom",null),Object(c.dragEnable)(f.event.view,r.moved),Object(v.a)(),r.end()}if(!P&&M.apply(this,arguments)){var r=_(this,arguments),o=Object(f.select)(f.event.view).on("mousemove.zoom",t,!0).on("mouseup.zoom",e,!0),i=Object(f.mouse)(this),a=f.event.clientX,u=f.event.clientY;Object(c.dragDisable)(f.event.view),Object(v.b)(),r.mouse=[i,this.__zoom.invert(i)],Object(h.a)(this),r.start()}}function E(){if(M.apply(this,arguments)){var r=this.__zoom,o=Object(f.mouse)(this),i=r.invert(o),a=r.k*(f.event.shiftKey?.5:2),u=y(n(e(r,a),o,i),T.apply(this,arguments));Object(v.a)(),F>0?Object(f.select)(this).transition().duration(F).call(b,u,o):Object(f.select)(this).call(t.transform,u)}}function C(){if(M.apply(this,arguments)){var t,e,n,r,o=_(this,arguments),i=f.event.changedTouches,a=i.length;for(Object(v.b)(),e=0;ex?Math.pow(t,1/3):t/w+b}function u(t){return t>_?t*t*t:w*(t-b)}function s(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function c(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function l(t){if(t instanceof h)return new h(t.h,t.c,t.l,t.opacity);t instanceof i||(t=r(t));var e=Math.atan2(t.b,t.a)*m.b;return new h(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function f(t,e,n,r){return 1===arguments.length?l(t):new h(t,e,n,null==r?1:r)}function h(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}e.a=o,e.b=f;var p=n(100),d=n(99),m=n(160),v=.95047,y=1,g=1.08883,b=4/29,_=6/29,w=3*_*_,x=_*_*_;Object(p.a)(i,o,Object(p.b)(d.a,{brighter:function(t){return new i(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new i(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return t=y*u(t),e=v*u(e),n=g*u(n),new d.b(s(3.2404542*e-1.5371385*t-.4985314*n),s(-.969266*e+1.8760108*t+.041556*n),s(.0556434*e-.2040259*t+1.0572252*n),this.opacity)}})),Object(p.a)(h,f,Object(p.b)(d.a,{brighter:function(t){return new h(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new h(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return r(this).rgb()}}))},function(t,e,n){"use strict";function r(t){if(t instanceof i)return new i(t.h,t.s,t.l,t.opacity);t instanceof u.b||(t=Object(u.h)(t));var e=t.r/255,n=t.g/255,r=t.b/255,o=(v*r+d*e-m*n)/(v+d-m),a=r-o,c=(p*(n-o)-f*a)/h,l=Math.sqrt(c*c+a*a)/(p*o*(1-o)),y=l?Math.atan2(c,a)*s.b-120:NaN;return new i(y<0?y+360:y,l,o,t.opacity)}function o(t,e,n,o){return 1===arguments.length?r(t):new i(t,e,n,null==o?1:o)}function i(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}e.a=o;var a=n(100),u=n(99),s=n(160),c=-.14861,l=1.78277,f=-.29227,h=-.90649,p=1.97294,d=p*h,m=p*l,v=l*f-h*c;Object(a.a)(i,o,Object(a.b)(u.a,{brighter:function(t){return t=null==t?u.c:Math.pow(u.c,t),new i(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?u.d:Math.pow(u.d,t),new i(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*s.a,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),o=Math.sin(t);return new u.b(255*(e+n*(c*r+l*o)),255*(e+n*(f*r+h*o)),255*(e+n*(p*r)),this.opacity)}}))},function(t,e,n){"use strict"},function(t,e,n){"use strict";function r(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}function a(t,r,i,a,u,s){if(t!==i||r!==a){var c=u.push("translate(",null,e,null,n);s.push({i:c-4,x:Object(o.a)(t,i)},{i:c-2,x:Object(o.a)(r,a)})}else(i||a)&&u.push("translate("+i+e+a+n)}function u(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Object(o.a)(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}function s(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Object(o.a)(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}function c(t,e,n,r,a,u){if(t!==n||e!==r){var s=a.push(i(a)+"scale(",null,",",null,")");u.push({i:s-4,x:Object(o.a)(t,n)},{i:s-2,x:Object(o.a)(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}return function(e,n){var r=[],o=[];return e=t(e),n=t(n),a(e.translateX,e.translateY,n.translateX,n.translateY,r,o),u(e.rotate,n.rotate,r,o),s(e.skewX,n.skewX,r,o),c(e.scaleX,e.scaleY,n.scaleX,n.scaleY,r,o),e=n=null,function(t){for(var e,n=-1,i=o.length;++n