patriot-workflow-scheduler 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  <html>
2
2
  <head>
3
- <title>Home</title>
3
+ <title>Patriot Workflow Scheduler</title>
4
4
  <script src="<%= url('js/jquery-1.6.4.min.js') %>"></script>
5
5
  <script src="<%= url('js/bootstrap-modal.js') %>"></script>
6
6
  <script src="<%= url('js/bootstrap-buttons.js') %>"></script>
@@ -0,0 +1,13 @@
1
+ <html>
2
+ <head>
3
+ <title>Patriot Workflow Scheduler</title>
4
+ <link rel="stylesheet" href="<%= url('css/bootstrap.min.css') %>">
5
+ <link rel="stylesheet" href="<%= url('css/original.css') %>">
6
+ </head>
7
+ <body>
8
+ <div id="mainContent">
9
+ <script src="<%= url('js/patriot-workflow-scheduler-0.8.0.js') %>"></script>
10
+ </div>
11
+ </body>
12
+ </html>
13
+
@@ -1,6 +1,6 @@
1
1
  <html>
2
2
  <head>
3
- <title>Home</title>
3
+ <title>Patriot Workflow Scheduler</title>
4
4
  <link rel="stylesheet" href="<%= url('css/bootstrap.min.css') %>">
5
5
  <link rel="stylesheet" href="<%= url('css/original.css') %>">
6
6
  </head>
metadata CHANGED
@@ -1,181 +1,181 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: patriot-workflow-scheduler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Teruyoshi Zenmyo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-02 00:00:00.000000000 Z
11
+ date: 2017-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '4.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: log4r
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.1'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.1'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: json
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.8'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.8'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: inifile
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: '2.0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ~>
67
67
  - !ruby/object:Gem::Version
68
68
  version: '2.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: thor
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ~>
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0.18'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ~>
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0.18'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rest-client
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ~>
88
88
  - !ruby/object:Gem::Version
89
89
  version: '1.6'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ~>
95
95
  - !ruby/object:Gem::Version
96
96
  version: '1.6'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: sinatra
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ~>
102
102
  - !ruby/object:Gem::Version
103
103
  version: '1.4'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - ~>
109
109
  - !ruby/object:Gem::Version
110
110
  version: '1.4'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: sinatra-contrib
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
115
+ - - ~>
116
116
  - !ruby/object:Gem::Version
117
117
  version: '1.4'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - "~>"
122
+ - - ~>
123
123
  - !ruby/object:Gem::Version
124
124
  version: '1.4'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: mail
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - "~>"
129
+ - - ~>
130
130
  - !ruby/object:Gem::Version
131
131
  version: '2.6'
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - "~>"
136
+ - - ~>
137
137
  - !ruby/object:Gem::Version
138
138
  version: '2.6'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: tilt
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - "~>"
143
+ - - ~>
144
144
  - !ruby/object:Gem::Version
145
145
  version: '1.4'
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - "~>"
150
+ - - ~>
151
151
  - !ruby/object:Gem::Version
152
152
  version: '1.4'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: thin
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - "~>"
157
+ - - ~>
158
158
  - !ruby/object:Gem::Version
159
159
  version: '1.6'
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - "~>"
164
+ - - ~>
165
165
  - !ruby/object:Gem::Version
166
166
  version: '1.6'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: rack-rewrite
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - "~>"
171
+ - - ~>
172
172
  - !ruby/object:Gem::Version
173
173
  version: '1.5'
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - "~>"
178
+ - - ~>
179
179
  - !ruby/object:Gem::Version
180
180
  version: '1.5'
181
181
  description: a workflow scheduler enabling fine-grained dependency management
@@ -186,32 +186,28 @@ executables:
186
186
  extensions: []
187
187
  extra_rdoc_files: []
188
188
  files:
189
- - bin/patriot
190
- - bin/patriot-init
191
- - lib/patriot.rb
192
- - lib/patriot/command.rb
193
189
  - lib/patriot/command/base.rb
194
190
  - lib/patriot/command/command_group.rb
195
191
  - lib/patriot/command/command_macro.rb
196
192
  - lib/patriot/command/composite.rb
197
193
  - lib/patriot/command/parser.rb
198
- - lib/patriot/command/post_processor.rb
199
194
  - lib/patriot/command/post_processor/base.rb
200
195
  - lib/patriot/command/post_processor/mail_notification.rb
201
196
  - lib/patriot/command/post_processor/retrial.rb
202
197
  - lib/patriot/command/post_processor/skip_on_fail.rb
198
+ - lib/patriot/command/post_processor.rb
203
199
  - lib/patriot/command/sh_command.rb
204
- - lib/patriot/controller.rb
200
+ - lib/patriot/command.rb
205
201
  - lib/patriot/controller/package_controller.rb
206
202
  - lib/patriot/controller/worker_admin_controller.rb
207
- - lib/patriot/job_store.rb
203
+ - lib/patriot/controller.rb
208
204
  - lib/patriot/job_store/base.rb
209
205
  - lib/patriot/job_store/factory.rb
210
206
  - lib/patriot/job_store/in_memory_store.rb
211
207
  - lib/patriot/job_store/job.rb
212
208
  - lib/patriot/job_store/job_ticket.rb
213
209
  - lib/patriot/job_store/rdb_job_store.rb
214
- - lib/patriot/tool.rb
210
+ - lib/patriot/job_store.rb
215
211
  - lib/patriot/tool/batch_parser.rb
216
212
  - lib/patriot/tool/patriot_command.rb
217
213
  - lib/patriot/tool/patriot_commands/execute.rb
@@ -222,36 +218,38 @@ files:
222
218
  - lib/patriot/tool/patriot_commands/validate.rb
223
219
  - lib/patriot/tool/patriot_commands/worker.rb
224
220
  - lib/patriot/tool/patriot_commands/worker_admin.rb
225
- - lib/patriot/util.rb
226
- - lib/patriot/util/config.rb
221
+ - lib/patriot/tool.rb
227
222
  - lib/patriot/util/config/base.rb
228
223
  - lib/patriot/util/config/inifile_config.rb
224
+ - lib/patriot/util/config.rb
229
225
  - lib/patriot/util/cron_format_parser.rb
230
226
  - lib/patriot/util/date_util.rb
231
- - lib/patriot/util/db_client.rb
232
227
  - lib/patriot/util/db_client/base.rb
233
228
  - lib/patriot/util/db_client/hash_record.rb
234
229
  - lib/patriot/util/db_client/record.rb
235
- - lib/patriot/util/logger.rb
230
+ - lib/patriot/util/db_client.rb
236
231
  - lib/patriot/util/logger/facade.rb
237
232
  - lib/patriot/util/logger/factory.rb
238
233
  - lib/patriot/util/logger/log4r_factory.rb
239
234
  - lib/patriot/util/logger/webrick_log_factory.rb
235
+ - lib/patriot/util/logger.rb
240
236
  - lib/patriot/util/param.rb
241
237
  - lib/patriot/util/retry.rb
242
238
  - lib/patriot/util/script.rb
243
239
  - lib/patriot/util/system.rb
240
+ - lib/patriot/util.rb
244
241
  - lib/patriot/version.rb
245
- - lib/patriot/worker.rb
246
242
  - lib/patriot/worker/base.rb
247
243
  - lib/patriot/worker/info_server.rb
248
244
  - lib/patriot/worker/job_store_server.rb
249
245
  - lib/patriot/worker/multi_node_worker.rb
250
- - lib/patriot/worker/servlet.rb
251
246
  - lib/patriot/worker/servlet/api_servlet_base.rb
252
247
  - lib/patriot/worker/servlet/index_servlet.rb
253
248
  - lib/patriot/worker/servlet/job_api_servlet.rb
254
249
  - lib/patriot/worker/servlet/worker_api_servlet.rb
250
+ - lib/patriot/worker/servlet.rb
251
+ - lib/patriot/worker.rb
252
+ - lib/patriot.rb
255
253
  - skel/batch/sample/daily/test.pbc
256
254
  - skel/config/patriot.ini
257
255
  - skel/public/css/bootstrap.css
@@ -267,14 +265,16 @@ files:
267
265
  - skel/public/js/bootstrap-twipsy.js
268
266
  - skel/public/js/jquery-1.6.4.min.js
269
267
  - skel/public/js/patriot-workflow-scheduler-0.8.0.js
270
- - skel/public/js/patriot-workflow-scheduler-0.8.0.min.js
271
268
  - skel/public/templates/_jobs.erb
272
269
  - skel/public/templates/job.erb
273
270
  - skel/public/templates/jobs.erb
274
271
  - skel/public/templates/jobs_deleted.erb
275
272
  - skel/public/templates/layout.erb
276
273
  - skel/public/templates/state_updated.erb
274
+ - skel/public/views/index.erb
277
275
  - skel/public/views/index.tpl.erb
276
+ - bin/patriot
277
+ - bin/patriot-init
278
278
  homepage: http://github.com/CyberAgent/patriot-workflow-scheduler
279
279
  licenses:
280
280
  - Apache License, Version 2.0
@@ -285,17 +285,17 @@ require_paths:
285
285
  - lib
286
286
  required_ruby_version: !ruby/object:Gem::Requirement
287
287
  requirements:
288
- - - ">="
288
+ - - '>='
289
289
  - !ruby/object:Gem::Version
290
290
  version: '0'
291
291
  required_rubygems_version: !ruby/object:Gem::Requirement
292
292
  requirements:
293
- - - ">="
293
+ - - '>='
294
294
  - !ruby/object:Gem::Version
295
295
  version: '0'
296
296
  requirements: []
297
297
  rubyforge_project: patriot-workflow-scheduler
298
- rubygems_version: 2.5.1
298
+ rubygems_version: 2.0.14.1
299
299
  signing_key:
300
300
  specification_version: 4
301
301
  summary: Patriot Workflow Scheduler
@@ -1,26 +0,0 @@
1
- !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){!function(){function a(a){return a&&(a.ownerDocument||a.document||a).documentElement}function c(a){return a&&(a.ownerDocument&&a.ownerDocument.defaultView||a.document&&a||a.defaultView)}function d(a,b){return b>a?-1:a>b?1:a>=b?0:NaN}function e(a){return null===a?NaN:+a}function f(a){return!isNaN(a)}function g(a){return{left:function(b,c,d,e){for(arguments.length<3&&(d=0),arguments.length<4&&(e=b.length);e>d;){var f=d+e>>>1;a(b[f],c)<0?d=f+1:e=f}return d},right:function(b,c,d,e){for(arguments.length<3&&(d=0),arguments.length<4&&(e=b.length);e>d;){var f=d+e>>>1;a(b[f],c)>0?e=f:d=f+1}return d}}}function h(a){return a.length}function i(a){for(var b=1;a*b%1;)b*=10;return b}function j(a,b){for(var c in b)Object.defineProperty(a.prototype,c,{value:b[c],enumerable:!1})}function k(){this._=Object.create(null)}function l(a){return(a+="")===vg||a[0]===wg?wg+a:a}function m(a){return(a+="")[0]===wg?a.slice(1):a}function n(a){return l(a)in this._}function o(a){return(a=l(a))in this._&&delete this._[a]}function p(){var a=[];for(var b in this._)a.push(m(b));return a}function q(){var a=0;for(var b in this._)++a;return a}function r(){for(var a in this._)return!1;return!0}function s(){this._=Object.create(null)}function t(a){return a}function u(a,b,c){return function(){var d=c.apply(b,arguments);return d===b?a:d}}function v(a,b){if(b in a)return b;b=b.charAt(0).toUpperCase()+b.slice(1);for(var c=0,d=xg.length;d>c;++c){var e=xg[c]+b;if(e in a)return e}}function w(){}function x(){}function y(a){function b(){for(var b,d=c,e=-1,f=d.length;++e<f;)(b=d[e].on)&&b.apply(this,arguments);return a}var c=[],d=new k;return b.on=function(b,e){var f,g=d.get(b);return arguments.length<2?g&&g.on:(g&&(g.on=null,c=c.slice(0,f=c.indexOf(g)).concat(c.slice(f+1)),d.remove(b)),e&&c.push(d.set(b,{on:e})),a)},b}function z(){ig.event.preventDefault()}function A(){for(var a,b=ig.event;a=b.sourceEvent;)b=a;return b}function B(a){for(var b=new x,c=0,d=arguments.length;++c<d;)b[arguments[c]]=y(b);return b.of=function(c,d){return function(e){try{var f=e.sourceEvent=ig.event;e.target=a,ig.event=e,b[e.type].apply(c,d)}finally{ig.event=f}}},b}function C(a){return zg(a,Dg),a}function D(a){return"function"==typeof a?a:function(){return Ag(a,this)}}function E(a){return"function"==typeof a?a:function(){return Bg(a,this)}}function F(a,b){function c(){this.removeAttribute(a)}function d(){this.removeAttributeNS(a.space,a.local)}function e(){this.setAttribute(a,b)}function f(){this.setAttributeNS(a.space,a.local,b)}function g(){var c=b.apply(this,arguments);null==c?this.removeAttribute(a):this.setAttribute(a,c)}function h(){var c=b.apply(this,arguments);null==c?this.removeAttributeNS(a.space,a.local):this.setAttributeNS(a.space,a.local,c)}return a=ig.ns.qualify(a),null==b?a.local?d:c:"function"==typeof b?a.local?h:g:a.local?f:e}function G(a){return a.trim().replace(/\s+/g," ")}function H(a){return new RegExp("(?:^|\\s+)"+ig.requote(a)+"(?:\\s+|$)","g")}function I(a){return(a+"").trim().split(/^|\s+/)}function J(a,b){function c(){for(var c=-1;++c<e;)a[c](this,b)}function d(){for(var c=-1,d=b.apply(this,arguments);++c<e;)a[c](this,d)}a=I(a).map(K);var e=a.length;return"function"==typeof b?d:c}function K(a){var b=H(a);return function(c,d){if(e=c.classList)return d?e.add(a):e.remove(a);var e=c.getAttribute("class")||"";d?(b.lastIndex=0,b.test(e)||c.setAttribute("class",G(e+" "+a))):c.setAttribute("class",G(e.replace(b," ")))}}function L(a,b,c){function d(){this.style.removeProperty(a)}function e(){this.style.setProperty(a,b,c)}function f(){var d=b.apply(this,arguments);null==d?this.style.removeProperty(a):this.style.setProperty(a,d,c)}return null==b?d:"function"==typeof b?f:e}function M(a,b){function c(){delete this[a]}function d(){this[a]=b}function e(){var c=b.apply(this,arguments);null==c?delete this[a]:this[a]=c}return null==b?c:"function"==typeof b?e:d}function N(a){function b(){var b=this.ownerDocument,c=this.namespaceURI;return c===Eg&&b.documentElement.namespaceURI===Eg?b.createElement(a):b.createElementNS(c,a)}function c(){return this.ownerDocument.createElementNS(a.space,a.local)}return"function"==typeof a?a:(a=ig.ns.qualify(a)).local?c:b}function O(){var a=this.parentNode;a&&a.removeChild(this)}function P(a){return{__data__:a}}function Q(a){return function(){return Cg(this,a)}}function R(a){return arguments.length||(a=d),function(b,c){return b&&c?a(b.__data__,c.__data__):!b-!c}}function S(a,b){for(var c=0,d=a.length;d>c;c++)for(var e,f=a[c],g=0,h=f.length;h>g;g++)(e=f[g])&&b(e,g,c);return a}function T(a){return zg(a,Gg),a}function U(a){var b,c;return function(d,e,f){var g,h=a[f].update,i=h.length;for(f!=c&&(c=f,b=0),e>=b&&(b=e+1);!(g=h[b])&&++b<i;);return g}}function V(a,b,c){function d(){var b=this[g];b&&(this.removeEventListener(a,b,b.$),delete this[g])}function e(){var e=i(b,kg(arguments));d.call(this),this.addEventListener(a,this[g]=e,e.$=c),e._=b}function f(){var b,c=new RegExp("^__on([^.]+)"+ig.requote(a)+"$");for(var d in this)if(b=d.match(c)){var e=this[d];this.removeEventListener(b[1],e,e.$),delete this[d]}}var g="__on"+a,h=a.indexOf("."),i=W;h>0&&(a=a.slice(0,h));var j=Hg.get(a);return j&&(a=j,i=X),h?b?e:d:b?w:f}function W(a,b){return function(c){var d=ig.event;ig.event=c,b[0]=this.__data__;try{a.apply(this,b)}finally{ig.event=d}}}function X(a,b){var c=W(a,b);return function(a){var b=this,d=a.relatedTarget;d&&(d===b||8&d.compareDocumentPosition(b))||c.call(b,a)}}function Y(b){var d=".dragsuppress-"+ ++Jg,e="click"+d,f=ig.select(c(b)).on("touchmove"+d,z).on("dragstart"+d,z).on("selectstart"+d,z);if(null==Ig&&(Ig="onselectstart"in b?!1:v(b.style,"userSelect")),Ig){var g=a(b).style,h=g[Ig];g[Ig]="none"}return function(a){if(f.on(d,null),Ig&&(g[Ig]=h),a){var b=function(){f.on(e,null)};f.on(e,function(){z(),b()},!0),setTimeout(b,0)}}}function Z(a,b){b.changedTouches&&(b=b.changedTouches[0]);var d=a.ownerSVGElement||a;if(d.createSVGPoint){var e=d.createSVGPoint();if(0>Kg){var f=c(a);if(f.scrollX||f.scrollY){d=ig.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var g=d[0][0].getScreenCTM();Kg=!(g.f||g.e),d.remove()}}return Kg?(e.x=b.pageX,e.y=b.pageY):(e.x=b.clientX,e.y=b.clientY),e=e.matrixTransform(a.getScreenCTM().inverse()),[e.x,e.y]}var h=a.getBoundingClientRect();return[b.clientX-h.left-a.clientLeft,b.clientY-h.top-a.clientTop]}function $(){return ig.event.changedTouches[0].identifier}function _(a){return a>0?1:0>a?-1:0}function aa(a,b,c){return(b[0]-a[0])*(c[1]-a[1])-(b[1]-a[1])*(c[0]-a[0])}function ba(a){return a>1?0:-1>a?Ng:Math.acos(a)}function ca(a){return a>1?Qg:-1>a?-Qg:Math.asin(a)}function da(a){return((a=Math.exp(a))-1/a)/2}function ea(a){return((a=Math.exp(a))+1/a)/2}function fa(a){return((a=Math.exp(2*a))-1)/(a+1)}function ga(a){return(a=Math.sin(a/2))*a}function ha(){}function ia(a,b,c){return this instanceof ia?(this.h=+a,this.s=+b,void(this.l=+c)):arguments.length<2?a instanceof ia?new ia(a.h,a.s,a.l):wa(""+a,xa,ia):new ia(a,b,c)}function ja(a,b,c){function d(a){return a>360?a-=360:0>a&&(a+=360),60>a?f+(g-f)*a/60:180>a?g:240>a?f+(g-f)*(240-a)/60:f}function e(a){return Math.round(255*d(a))}var f,g;return a=isNaN(a)?0:(a%=360)<0?a+360:a,b=isNaN(b)?0:0>b?0:b>1?1:b,c=0>c?0:c>1?1:c,g=.5>=c?c*(1+b):c+b-c*b,f=2*c-g,new sa(e(a+120),e(a),e(a-120))}function ka(a,b,c){return this instanceof ka?(this.h=+a,this.c=+b,void(this.l=+c)):arguments.length<2?a instanceof ka?new ka(a.h,a.c,a.l):a instanceof ma?oa(a.l,a.a,a.b):oa((a=ya((a=ig.rgb(a)).r,a.g,a.b)).l,a.a,a.b):new ka(a,b,c)}function la(a,b,c){return isNaN(a)&&(a=0),isNaN(b)&&(b=0),new ma(c,Math.cos(a*=Rg)*b,Math.sin(a)*b)}function ma(a,b,c){return this instanceof ma?(this.l=+a,this.a=+b,void(this.b=+c)):arguments.length<2?a instanceof ma?new ma(a.l,a.a,a.b):a instanceof ka?la(a.h,a.c,a.l):ya((a=sa(a)).r,a.g,a.b):new ma(a,b,c)}function na(a,b,c){var d=(a+16)/116,e=d+b/500,f=d-c/200;return e=pa(e)*ah,d=pa(d)*bh,f=pa(f)*ch,new sa(ra(3.2404542*e-1.5371385*d-.4985314*f),ra(-.969266*e+1.8760108*d+.041556*f),ra(.0556434*e-.2040259*d+1.0572252*f))}function oa(a,b,c){return a>0?new ka(Math.atan2(c,b)*Sg,Math.sqrt(b*b+c*c),a):new ka(NaN,NaN,a)}function pa(a){return a>.206893034?a*a*a:(a-4/29)/7.787037}function qa(a){return a>.008856?Math.pow(a,1/3):7.787037*a+4/29}function ra(a){return Math.round(255*(.00304>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055))}function sa(a,b,c){return this instanceof sa?(this.r=~~a,this.g=~~b,void(this.b=~~c)):arguments.length<2?a instanceof sa?new sa(a.r,a.g,a.b):wa(""+a,sa,ja):new sa(a,b,c)}function ta(a){return new sa(a>>16,a>>8&255,255&a)}function ua(a){return ta(a)+""}function va(a){return 16>a?"0"+Math.max(0,a).toString(16):Math.min(255,a).toString(16)}function wa(a,b,c){var d,e,f,g=0,h=0,i=0;if(d=/([a-z]+)\((.*)\)/.exec(a=a.toLowerCase()))switch(e=d[2].split(","),d[1]){case"hsl":return c(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100);case"rgb":return b(Aa(e[0]),Aa(e[1]),Aa(e[2]))}return(f=fh.get(a))?b(f.r,f.g,f.b):(null==a||"#"!==a.charAt(0)||isNaN(f=parseInt(a.slice(1),16))||(4===a.length?(g=(3840&f)>>4,g=g>>4|g,h=240&f,h=h>>4|h,i=15&f,i=i<<4|i):7===a.length&&(g=(16711680&f)>>16,h=(65280&f)>>8,i=255&f)),b(g,h,i))}function xa(a,b,c){var d,e,f=Math.min(a/=255,b/=255,c/=255),g=Math.max(a,b,c),h=g-f,i=(g+f)/2;return h?(e=.5>i?h/(g+f):h/(2-g-f),d=a==g?(b-c)/h+(c>b?6:0):b==g?(c-a)/h+2:(a-b)/h+4,d*=60):(d=NaN,e=i>0&&1>i?0:d),new ia(d,e,i)}function ya(a,b,c){a=za(a),b=za(b),c=za(c);var d=qa((.4124564*a+.3575761*b+.1804375*c)/ah),e=qa((.2126729*a+.7151522*b+.072175*c)/bh),f=qa((.0193339*a+.119192*b+.9503041*c)/ch);return ma(116*e-16,500*(d-e),200*(e-f))}function za(a){return(a/=255)<=.04045?a/12.92:Math.pow((a+.055)/1.055,2.4)}function Aa(a){var b=parseFloat(a);return"%"===a.charAt(a.length-1)?Math.round(2.55*b):b}function Ba(a){return"function"==typeof a?a:function(){return a}}function Ca(a){return function(b,c,d){return 2===arguments.length&&"function"==typeof c&&(d=c,c=null),Da(b,c,a,d)}}function Da(a,b,c,d){function e(){var a,b=i.status;if(!b&&Fa(i)||b>=200&&300>b||304===b){try{a=c.call(f,i)}catch(d){return void g.error.call(f,d)}g.load.call(f,a)}else g.error.call(f,i)}var f={},g=ig.dispatch("beforesend","progress","load","error"),h={},i=new XMLHttpRequest,j=null;return!this.XDomainRequest||"withCredentials"in i||!/^(http(s)?:)?\/\//.test(a)||(i=new XDomainRequest),"onload"in i?i.onload=i.onerror=e:i.onreadystatechange=function(){i.readyState>3&&e()},i.onprogress=function(a){var b=ig.event;ig.event=a;try{g.progress.call(f,i)}finally{ig.event=b}},f.header=function(a,b){return a=(a+"").toLowerCase(),arguments.length<2?h[a]:(null==b?delete h[a]:h[a]=b+"",f)},f.mimeType=function(a){return arguments.length?(b=null==a?null:a+"",f):b},f.responseType=function(a){return arguments.length?(j=a,f):j},f.response=function(a){return c=a,f},["get","post"].forEach(function(a){f[a]=function(){return f.send.apply(f,[a].concat(kg(arguments)))}}),f.send=function(c,d,e){if(2===arguments.length&&"function"==typeof d&&(e=d,d=null),i.open(c,a,!0),null==b||"accept"in h||(h.accept=b+",*/*"),i.setRequestHeader)for(var k in h)i.setRequestHeader(k,h[k]);return null!=b&&i.overrideMimeType&&i.overrideMimeType(b),null!=j&&(i.responseType=j),null!=e&&f.on("error",e).on("load",function(a){e(null,a)}),g.beforesend.call(f,i),i.send(null==d?null:d),f},f.abort=function(){return i.abort(),f},ig.rebind(f,g,"on"),null==d?f:f.get(Ea(d))}function Ea(a){return 1===a.length?function(b,c){a(null==b?c:null)}:a}function Fa(a){var b=a.responseType;return b&&"text"!==b?a.response:a.responseText}function Ga(a,b,c){var d=arguments.length;2>d&&(b=0),3>d&&(c=Date.now());var e=c+b,f={c:a,t:e,n:null};return hh?hh.n=f:gh=f,hh=f,ih||(jh=clearTimeout(jh),ih=1,kh(Ha)),f}function Ha(){var a=Ia(),b=Ja()-a;b>24?(isFinite(b)&&(clearTimeout(jh),jh=setTimeout(Ha,b)),ih=0):(ih=1,kh(Ha))}function Ia(){for(var a=Date.now(),b=gh;b;)a>=b.t&&b.c(a-b.t)&&(b.c=null),b=b.n;return a}function Ja(){for(var a,b=gh,c=1/0;b;)b.c?(b.t<c&&(c=b.t),b=(a=b).n):b=a?a.n=b.n:gh=b.n;return hh=a,c}function Ka(a,b){return b-(a?Math.ceil(Math.log(a)/Math.LN10):1)}function La(a,b){var c=Math.pow(10,3*ug(8-b));return{scale:b>8?function(a){return a/c}:function(a){return a*c},symbol:a}}function Ma(a){var b=a.decimal,c=a.thousands,d=a.grouping,e=a.currency,f=d&&c?function(a,b){for(var e=a.length,f=[],g=0,h=d[0],i=0;e>0&&h>0&&(i+h+1>b&&(h=Math.max(1,b-i)),f.push(a.substring(e-=h,e+h)),!((i+=h+1)>b));)h=d[g=(g+1)%d.length];return f.reverse().join(c)}:t;return function(a){var c=mh.exec(a),d=c[1]||" ",g=c[2]||">",h=c[3]||"-",i=c[4]||"",j=c[5],k=+c[6],l=c[7],m=c[8],n=c[9],o=1,p="",q="",r=!1,s=!0;switch(m&&(m=+m.substring(1)),(j||"0"===d&&"="===g)&&(j=d="0",g="="),n){case"n":l=!0,n="g";break;case"%":o=100,q="%",n="f";break;case"p":o=100,q="%",n="r";break;case"b":case"o":case"x":case"X":"#"===i&&(p="0"+n.toLowerCase());case"c":s=!1;case"d":r=!0,m=0;break;case"s":o=-1,n="r"}"$"===i&&(p=e[0],q=e[1]),"r"!=n||m||(n="g"),null!=m&&("g"==n?m=Math.max(1,Math.min(21,m)):"e"!=n&&"f"!=n||(m=Math.max(0,Math.min(20,m)))),n=nh.get(n)||Na;var t=j&&l;return function(a){var c=q;if(r&&a%1)return"";var e=0>a||0===a&&0>1/a?(a=-a,"-"):"-"===h?"":h;if(0>o){var i=ig.formatPrefix(a,m);a=i.scale(a),c=i.symbol+q}else a*=o;a=n(a,m);var u,v,w=a.lastIndexOf(".");if(0>w){var x=s?a.lastIndexOf("e"):-1;0>x?(u=a,v=""):(u=a.substring(0,x),v=a.substring(x))}else u=a.substring(0,w),v=b+a.substring(w+1);!j&&l&&(u=f(u,1/0));var y=p.length+u.length+v.length+(t?0:e.length),z=k>y?new Array(y=k-y+1).join(d):"";return t&&(u=f(z+u,z.length?k-v.length:1/0)),e+=p,a=u+v,("<"===g?e+a+z:">"===g?z+e+a:"^"===g?z.substring(0,y>>=1)+e+a+z.substring(y):e+(t?a:z+a))+c}}}function Na(a){return a+""}function Oa(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Pa(a,b,c){function d(b){var c=a(b),d=f(c,1);return d-b>b-c?c:d}function e(c){return b(c=a(new ph(c-1)),1),c}function f(a,c){return b(a=new ph(+a),c),a}function g(a,d,f){var g=e(a),h=[];if(f>1)for(;d>g;)c(g)%f||h.push(new Date(+g)),b(g,1);else for(;d>g;)h.push(new Date(+g)),b(g,1);return h}function h(a,b,c){try{ph=Oa;var d=new Oa;return d._=a,g(d,b,c)}finally{ph=Date}}a.floor=a,a.round=d,a.ceil=e,a.offset=f,a.range=g;var i=a.utc=Qa(a);return i.floor=i,i.round=Qa(d),i.ceil=Qa(e),i.offset=Qa(f),i.range=h,a}function Qa(a){return function(b,c){try{ph=Oa;var d=new Oa;return d._=b,a(d,c)._}finally{ph=Date}}}function Ra(a){function b(a){function b(b){for(var c,e,f,g=[],h=-1,i=0;++h<d;)37===a.charCodeAt(h)&&(g.push(a.slice(i,h)),null!=(e=rh[c=a.charAt(++h)])&&(c=a.charAt(++h)),(f=C[c])&&(c=f(b,null==e?"e"===c?" ":"0":e)),g.push(c),i=h+1);return g.push(a.slice(i,h)),g.join("")}var d=a.length;return b.parse=function(b){var d={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},e=c(d,a,b,0);if(e!=b.length)return null;"p"in d&&(d.H=d.H%12+12*d.p);var f=null!=d.Z&&ph!==Oa,g=new(f?Oa:ph);return"j"in d?g.setFullYear(d.y,0,d.j):"W"in d||"U"in d?("w"in d||(d.w="W"in d?1:0),g.setFullYear(d.y,0,1),g.setFullYear(d.y,0,"W"in d?(d.w+6)%7+7*d.W-(g.getDay()+5)%7:d.w+7*d.U-(g.getDay()+6)%7)):g.setFullYear(d.y,d.m,d.d),g.setHours(d.H+(d.Z/100|0),d.M+d.Z%100,d.S,d.L),f?g._:g},b.toString=function(){return a},b}function c(a,b,c,d){for(var e,f,g,h=0,i=b.length,j=c.length;i>h;){if(d>=j)return-1;if(e=b.charCodeAt(h++),37===e){if(g=b.charAt(h++),f=D[g in rh?b.charAt(h++):g],!f||(d=f(a,c,d))<0)return-1}else if(e!=c.charCodeAt(d++))return-1}return d}function d(a,b,c){w.lastIndex=0;var d=w.exec(b.slice(c));return d?(a.w=x.get(d[0].toLowerCase()),c+d[0].length):-1}function e(a,b,c){u.lastIndex=0;var d=u.exec(b.slice(c));return d?(a.w=v.get(d[0].toLowerCase()),c+d[0].length):-1}function f(a,b,c){A.lastIndex=0;var d=A.exec(b.slice(c));return d?(a.m=B.get(d[0].toLowerCase()),c+d[0].length):-1}function g(a,b,c){y.lastIndex=0;var d=y.exec(b.slice(c));return d?(a.m=z.get(d[0].toLowerCase()),c+d[0].length):-1}function h(a,b,d){return c(a,C.c.toString(),b,d)}function i(a,b,d){return c(a,C.x.toString(),b,d)}function j(a,b,d){return c(a,C.X.toString(),b,d)}function k(a,b,c){var d=t.get(b.slice(c,c+=2).toLowerCase());return null==d?-1:(a.p=d,c)}var l=a.dateTime,m=a.date,n=a.time,o=a.periods,p=a.days,q=a.shortDays,r=a.months,s=a.shortMonths;b.utc=function(a){function c(a){try{ph=Oa;var b=new ph;return b._=a,d(b)}finally{ph=Date}}var d=b(a);return c.parse=function(a){try{ph=Oa;var b=d.parse(a);return b&&b._}finally{ph=Date}},c.toString=d.toString,c},b.multi=b.utc.multi=jb;var t=ig.map(),u=Ta(p),v=Ua(p),w=Ta(q),x=Ua(q),y=Ta(r),z=Ua(r),A=Ta(s),B=Ua(s);o.forEach(function(a,b){t.set(a.toLowerCase(),b)});var C={a:function(a){return q[a.getDay()]},A:function(a){return p[a.getDay()]},b:function(a){return s[a.getMonth()]},B:function(a){return r[a.getMonth()]},c:b(l),d:function(a,b){return Sa(a.getDate(),b,2)},e:function(a,b){return Sa(a.getDate(),b,2)},H:function(a,b){return Sa(a.getHours(),b,2)},I:function(a,b){return Sa(a.getHours()%12||12,b,2)},j:function(a,b){return Sa(1+oh.dayOfYear(a),b,3)},L:function(a,b){return Sa(a.getMilliseconds(),b,3)},m:function(a,b){return Sa(a.getMonth()+1,b,2)},M:function(a,b){return Sa(a.getMinutes(),b,2)},p:function(a){return o[+(a.getHours()>=12)]},S:function(a,b){return Sa(a.getSeconds(),b,2)},U:function(a,b){return Sa(oh.sundayOfYear(a),b,2)},w:function(a){return a.getDay()},W:function(a,b){return Sa(oh.mondayOfYear(a),b,2)},x:b(m),X:b(n),y:function(a,b){return Sa(a.getFullYear()%100,b,2)},Y:function(a,b){return Sa(a.getFullYear()%1e4,b,4)},Z:hb,"%":function(){return"%"}},D={a:d,A:e,b:f,B:g,c:h,d:bb,e:bb,H:db,I:db,j:cb,L:gb,m:ab,M:eb,p:k,S:fb,U:Wa,w:Va,W:Xa,x:i,X:j,y:Za,Y:Ya,Z:$a,"%":ib};return b}function Sa(a,b,c){var d=0>a?"-":"",e=(d?-a:a)+"",f=e.length;return d+(c>f?new Array(c-f+1).join(b)+e:e)}function Ta(a){return new RegExp("^(?:"+a.map(ig.requote).join("|")+")","i")}function Ua(a){for(var b=new k,c=-1,d=a.length;++c<d;)b.set(a[c].toLowerCase(),c);return b}function Va(a,b,c){sh.lastIndex=0;var d=sh.exec(b.slice(c,c+1));return d?(a.w=+d[0],c+d[0].length):-1}function Wa(a,b,c){sh.lastIndex=0;var d=sh.exec(b.slice(c));return d?(a.U=+d[0],c+d[0].length):-1}function Xa(a,b,c){sh.lastIndex=0;var d=sh.exec(b.slice(c));return d?(a.W=+d[0],c+d[0].length):-1}function Ya(a,b,c){sh.lastIndex=0;var d=sh.exec(b.slice(c,c+4));return d?(a.y=+d[0],c+d[0].length):-1}function Za(a,b,c){sh.lastIndex=0;var d=sh.exec(b.slice(c,c+2));return d?(a.y=_a(+d[0]),c+d[0].length):-1}function $a(a,b,c){return/^[+-]\d{4}$/.test(b=b.slice(c,c+5))?(a.Z=-b,c+5):-1}function _a(a){return a+(a>68?1900:2e3)}function ab(a,b,c){sh.lastIndex=0;var d=sh.exec(b.slice(c,c+2));return d?(a.m=d[0]-1,c+d[0].length):-1}function bb(a,b,c){sh.lastIndex=0;var d=sh.exec(b.slice(c,c+2));return d?(a.d=+d[0],c+d[0].length):-1}function cb(a,b,c){sh.lastIndex=0;var d=sh.exec(b.slice(c,c+3));return d?(a.j=+d[0],c+d[0].length):-1}function db(a,b,c){sh.lastIndex=0;var d=sh.exec(b.slice(c,c+2));return d?(a.H=+d[0],c+d[0].length):-1}function eb(a,b,c){sh.lastIndex=0;var d=sh.exec(b.slice(c,c+2));return d?(a.M=+d[0],c+d[0].length):-1}function fb(a,b,c){sh.lastIndex=0;var d=sh.exec(b.slice(c,c+2));return d?(a.S=+d[0],c+d[0].length):-1}function gb(a,b,c){sh.lastIndex=0;var d=sh.exec(b.slice(c,c+3));return d?(a.L=+d[0],c+d[0].length):-1}function hb(a){var b=a.getTimezoneOffset(),c=b>0?"-":"+",d=ug(b)/60|0,e=ug(b)%60;return c+Sa(d,"0",2)+Sa(e,"0",2)}function ib(a,b,c){th.lastIndex=0;var d=th.exec(b.slice(c,c+1));return d?c+d[0].length:-1}function jb(a){for(var b=a.length,c=-1;++c<b;)a[c][0]=this(a[c][0]);return function(b){for(var c=0,d=a[c];!d[1](b);)d=a[++c];return d[0](b)}}function kb(){}function lb(a,b,c){var d=c.s=a+b,e=d-a,f=d-e;c.t=a-f+(b-e)}function mb(a,b){a&&xh.hasOwnProperty(a.type)&&xh[a.type](a,b)}function nb(a,b,c){var d,e=-1,f=a.length-c;for(b.lineStart();++e<f;)d=a[e],b.point(d[0],d[1],d[2]);b.lineEnd()}function ob(a,b){var c=-1,d=a.length;for(b.polygonStart();++c<d;)nb(a[c],b,1);b.polygonEnd()}function pb(){function a(a,b){a*=Rg,b=b*Rg/2+Ng/4;var c=a-d,g=c>=0?1:-1,h=g*c,i=Math.cos(b),j=Math.sin(b),k=f*j,l=e*i+k*Math.cos(h),m=k*g*Math.sin(h);zh.add(Math.atan2(m,l)),d=a,e=i,f=j}var b,c,d,e,f;Ah.point=function(g,h){Ah.point=a,d=(b=g)*Rg,e=Math.cos(h=(c=h)*Rg/2+Ng/4),f=Math.sin(h)},Ah.lineEnd=function(){a(b,c)}}function qb(a){var b=a[0],c=a[1],d=Math.cos(c);return[d*Math.cos(b),d*Math.sin(b),Math.sin(c)]}function rb(a,b){return a[0]*b[0]+a[1]*b[1]+a[2]*b[2]}function sb(a,b){return[a[1]*b[2]-a[2]*b[1],a[2]*b[0]-a[0]*b[2],a[0]*b[1]-a[1]*b[0]]}function tb(a,b){a[0]+=b[0],a[1]+=b[1],a[2]+=b[2]}function ub(a,b){return[a[0]*b,a[1]*b,a[2]*b]}function vb(a){var b=Math.sqrt(a[0]*a[0]+a[1]*a[1]+a[2]*a[2]);a[0]/=b,a[1]/=b,a[2]/=b}function wb(a){return[Math.atan2(a[1],a[0]),ca(a[2])]}function xb(a,b){return ug(a[0]-b[0])<Lg&&ug(a[1]-b[1])<Lg}function yb(a,b){a*=Rg;var c=Math.cos(b*=Rg);zb(c*Math.cos(a),c*Math.sin(a),Math.sin(b))}function zb(a,b,c){++Bh,Dh+=(a-Dh)/Bh,Eh+=(b-Eh)/Bh,Fh+=(c-Fh)/Bh}function Ab(){function a(a,e){a*=Rg;var f=Math.cos(e*=Rg),g=f*Math.cos(a),h=f*Math.sin(a),i=Math.sin(e),j=Math.atan2(Math.sqrt((j=c*i-d*h)*j+(j=d*g-b*i)*j+(j=b*h-c*g)*j),b*g+c*h+d*i);Ch+=j,Gh+=j*(b+(b=g)),Hh+=j*(c+(c=h)),Ih+=j*(d+(d=i)),zb(b,c,d)}var b,c,d;Mh.point=function(e,f){e*=Rg;var g=Math.cos(f*=Rg);b=g*Math.cos(e),c=g*Math.sin(e),d=Math.sin(f),Mh.point=a,zb(b,c,d)}}function Bb(){Mh.point=yb}function Cb(){function a(a,b){a*=Rg;var c=Math.cos(b*=Rg),g=c*Math.cos(a),h=c*Math.sin(a),i=Math.sin(b),j=e*i-f*h,k=f*g-d*i,l=d*h-e*g,m=Math.sqrt(j*j+k*k+l*l),n=d*g+e*h+f*i,o=m&&-ba(n)/m,p=Math.atan2(m,n);Jh+=o*j,Kh+=o*k,Lh+=o*l,Ch+=p,Gh+=p*(d+(d=g)),Hh+=p*(e+(e=h)),Ih+=p*(f+(f=i)),zb(d,e,f)}var b,c,d,e,f;Mh.point=function(g,h){b=g,c=h,Mh.point=a,g*=Rg;var i=Math.cos(h*=Rg);d=i*Math.cos(g),e=i*Math.sin(g),f=Math.sin(h),zb(d,e,f)},Mh.lineEnd=function(){a(b,c),Mh.lineEnd=Bb,Mh.point=yb}}function Db(a,b){function c(c,d){return c=a(c,d),b(c[0],c[1])}return a.invert&&b.invert&&(c.invert=function(c,d){return c=b.invert(c,d),c&&a.invert(c[0],c[1])}),c}function Eb(){return!0}function Fb(a,b,c,d,e){var f=[],g=[];if(a.forEach(function(a){if(!((b=a.length-1)<=0)){var b,c=a[0],d=a[b];if(xb(c,d)){e.lineStart();for(var h=0;b>h;++h)e.point((c=a[h])[0],c[1]);return void e.lineEnd()}var i=new Hb(c,a,null,!0),j=new Hb(c,null,i,!1);i.o=j,f.push(i),g.push(j),i=new Hb(d,a,null,!1),j=new Hb(d,null,i,!0),i.o=j,f.push(i),g.push(j)}}),g.sort(b),Gb(f),Gb(g),f.length){for(var h=0,i=c,j=g.length;j>h;++h)g[h].e=i=!i;for(var k,l,m=f[0];;){for(var n=m,o=!0;n.v;)if((n=n.n)===m)return;k=n.z,e.lineStart();do{if(n.v=n.o.v=!0,n.e){if(o)for(var h=0,j=k.length;j>h;++h)e.point((l=k[h])[0],l[1]);else d(n.x,n.n.x,1,e);n=n.n}else{if(o){k=n.p.z;for(var h=k.length-1;h>=0;--h)e.point((l=k[h])[0],l[1])}else d(n.x,n.p.x,-1,e);n=n.p}n=n.o,k=n.z,o=!o}while(!n.v);e.lineEnd()}}}function Gb(a){if(b=a.length){for(var b,c,d=0,e=a[0];++d<b;)e.n=c=a[d],c.p=e,e=c;e.n=c=a[0],c.p=e}}function Hb(a,b,c,d){this.x=a,this.z=b,this.o=c,this.e=d,this.v=!1,this.n=this.p=null}function Ib(a,b,c,d){return function(e,f){function g(b,c){var d=e(b,c);a(b=d[0],c=d[1])&&f.point(b,c)}function h(a,b){var c=e(a,b);q.point(c[0],c[1])}function i(){s.point=h,q.lineStart()}function j(){s.point=g,q.lineEnd()}function k(a,b){p.push([a,b]);var c=e(a,b);u.point(c[0],c[1])}function l(){u.lineStart(),p=[]}function m(){k(p[0][0],p[0][1]),u.lineEnd();var a,b=u.clean(),c=t.buffer(),d=c.length;if(p.pop(),o.push(p),p=null,d)if(1&b){a=c[0];var e,d=a.length-1,g=-1;if(d>0){for(v||(f.polygonStart(),v=!0),f.lineStart();++g<d;)f.point((e=a[g])[0],e[1]);f.lineEnd()}}else d>1&&2&b&&c.push(c.pop().concat(c.shift())),n.push(c.filter(Jb))}var n,o,p,q=b(f),r=e.invert(d[0],d[1]),s={point:g,lineStart:i,lineEnd:j,polygonStart:function(){s.point=k,s.lineStart=l,s.lineEnd=m,n=[],o=[]},polygonEnd:function(){s.point=g,s.lineStart=i,s.lineEnd=j,n=ig.merge(n);var a=Pb(r,o);n.length?(v||(f.polygonStart(),v=!0),Fb(n,Lb,a,c,f)):a&&(v||(f.polygonStart(),v=!0),f.lineStart(),c(null,null,1,f),f.lineEnd()),v&&(f.polygonEnd(),v=!1),n=o=null},sphere:function(){f.polygonStart(),f.lineStart(),c(null,null,1,f),f.lineEnd(),f.polygonEnd()}},t=Kb(),u=b(t),v=!1;return s}}function Jb(a){return a.length>1}function Kb(){var a,b=[];return{lineStart:function(){b.push(a=[])},point:function(b,c){a.push([b,c])},lineEnd:w,buffer:function(){var c=b;return b=[],a=null,c},rejoin:function(){b.length>1&&b.push(b.pop().concat(b.shift()))}}}function Lb(a,b){return((a=a.x)[0]<0?a[1]-Qg-Lg:Qg-a[1])-((b=b.x)[0]<0?b[1]-Qg-Lg:Qg-b[1])}function Mb(a){var b,c=NaN,d=NaN,e=NaN;return{lineStart:function(){a.lineStart(),b=1},point:function(f,g){var h=f>0?Ng:-Ng,i=ug(f-c);ug(i-Ng)<Lg?(a.point(c,d=(d+g)/2>0?Qg:-Qg),a.point(e,d),a.lineEnd(),a.lineStart(),a.point(h,d),a.point(f,d),b=0):e!==h&&i>=Ng&&(ug(c-e)<Lg&&(c-=e*Lg),ug(f-h)<Lg&&(f-=h*Lg),d=Nb(c,d,f,g),a.point(e,d),a.lineEnd(),a.lineStart(),a.point(h,d),b=0),a.point(c=f,d=g),e=h},lineEnd:function(){a.lineEnd(),c=d=NaN},clean:function(){return 2-b}}}function Nb(a,b,c,d){var e,f,g=Math.sin(a-c);return ug(g)>Lg?Math.atan((Math.sin(b)*(f=Math.cos(d))*Math.sin(c)-Math.sin(d)*(e=Math.cos(b))*Math.sin(a))/(e*f*g)):(b+d)/2}function Ob(a,b,c,d){var e;if(null==a)e=c*Qg,d.point(-Ng,e),d.point(0,e),d.point(Ng,e),d.point(Ng,0),d.point(Ng,-e),d.point(0,-e),d.point(-Ng,-e),d.point(-Ng,0),d.point(-Ng,e);else if(ug(a[0]-b[0])>Lg){var f=a[0]<b[0]?Ng:-Ng;e=c*f/2,d.point(-f,e),d.point(0,e),d.point(f,e)}else d.point(b[0],b[1])}function Pb(a,b){var c=a[0],d=a[1],e=[Math.sin(c),-Math.cos(c),0],f=0,g=0;zh.reset();for(var h=0,i=b.length;i>h;++h){var j=b[h],k=j.length;if(k)for(var l=j[0],m=l[0],n=l[1]/2+Ng/4,o=Math.sin(n),p=Math.cos(n),q=1;;){q===k&&(q=0),a=j[q];var r=a[0],s=a[1]/2+Ng/4,t=Math.sin(s),u=Math.cos(s),v=r-m,w=v>=0?1:-1,x=w*v,y=x>Ng,z=o*t;if(zh.add(Math.atan2(z*w*Math.sin(x),p*u+z*Math.cos(x))),f+=y?v+w*Og:v,y^m>=c^r>=c){var A=sb(qb(l),qb(a));vb(A);var B=sb(e,A);vb(B);var C=(y^v>=0?-1:1)*ca(B[2]);(d>C||d===C&&(A[0]||A[1]))&&(g+=y^v>=0?1:-1)}if(!q++)break;m=r,o=t,p=u,l=a}}return(-Lg>f||Lg>f&&0>zh)^1&g}function Qb(a){function b(a,b){return Math.cos(a)*Math.cos(b)>f}function c(a){var c,f,i,j,k;return{lineStart:function(){j=i=!1,k=1},point:function(l,m){var n,o=[l,m],p=b(l,m),q=g?p?0:e(l,m):p?e(l+(0>l?Ng:-Ng),m):0;if(!c&&(j=i=p)&&a.lineStart(),p!==i&&(n=d(c,o),(xb(c,n)||xb(o,n))&&(o[0]+=Lg,o[1]+=Lg,p=b(o[0],o[1]))),p!==i)k=0,p?(a.lineStart(),n=d(o,c),a.point(n[0],n[1])):(n=d(c,o),a.point(n[0],n[1]),a.lineEnd()),c=n;else if(h&&c&&g^p){var r;q&f||!(r=d(o,c,!0))||(k=0,g?(a.lineStart(),a.point(r[0][0],r[0][1]),a.point(r[1][0],r[1][1]),a.lineEnd()):(a.point(r[1][0],r[1][1]),a.lineEnd(),a.lineStart(),a.point(r[0][0],r[0][1])))}!p||c&&xb(c,o)||a.point(o[0],o[1]),c=o,i=p,f=q},lineEnd:function(){i&&a.lineEnd(),c=null},clean:function(){return k|(j&&i)<<1}}}function d(a,b,c){var d=qb(a),e=qb(b),g=[1,0,0],h=sb(d,e),i=rb(h,h),j=h[0],k=i-j*j;if(!k)return!c&&a;var l=f*i/k,m=-f*j/k,n=sb(g,h),o=ub(g,l),p=ub(h,m);tb(o,p);var q=n,r=rb(o,q),s=rb(q,q),t=r*r-s*(rb(o,o)-1);if(!(0>t)){var u=Math.sqrt(t),v=ub(q,(-r-u)/s);if(tb(v,o),v=wb(v),!c)return v;var w,x=a[0],y=b[0],z=a[1],A=b[1];x>y&&(w=x,x=y,y=w);var B=y-x,C=ug(B-Ng)<Lg,D=C||Lg>B;if(!C&&z>A&&(w=z,z=A,A=w),D?C?z+A>0^v[1]<(ug(v[0]-x)<Lg?z:A):z<=v[1]&&v[1]<=A:B>Ng^(x<=v[0]&&v[0]<=y)){var E=ub(q,(-r+u)/s);return tb(E,o),[v,wb(E)]}}}function e(b,c){var d=g?a:Ng-a,e=0;return-d>b?e|=1:b>d&&(e|=2),-d>c?e|=4:c>d&&(e|=8),e}var f=Math.cos(a),g=f>0,h=ug(f)>Lg,i=pc(a,6*Rg);return Ib(b,c,i,g?[0,-a]:[-Ng,a-Ng])}function Rb(a,b,c,d){return function(e){var f,g=e.a,h=e.b,i=g.x,j=g.y,k=h.x,l=h.y,m=0,n=1,o=k-i,p=l-j;if(f=a-i,o||!(f>0)){if(f/=o,0>o){if(m>f)return;n>f&&(n=f)}else if(o>0){if(f>n)return;f>m&&(m=f)}if(f=c-i,o||!(0>f)){if(f/=o,0>o){if(f>n)return;f>m&&(m=f)}else if(o>0){if(m>f)return;n>f&&(n=f)}if(f=b-j,p||!(f>0)){if(f/=p,0>p){if(m>f)return;n>f&&(n=f)}else if(p>0){if(f>n)return;f>m&&(m=f)}if(f=d-j,p||!(0>f)){if(f/=p,0>p){if(f>n)return;f>m&&(m=f)}else if(p>0){if(m>f)return;n>f&&(n=f)}return m>0&&(e.a={x:i+m*o,y:j+m*p}),1>n&&(e.b={x:i+n*o,y:j+n*p}),e}}}}}}function Sb(a,b,c,d){function e(d,e){return ug(d[0]-a)<Lg?e>0?0:3:ug(d[0]-c)<Lg?e>0?2:1:ug(d[1]-b)<Lg?e>0?1:0:e>0?3:2}function f(a,b){return g(a.x,b.x)}function g(a,b){var c=e(a,1),d=e(b,1);return c!==d?c-d:0===c?b[1]-a[1]:1===c?a[0]-b[0]:2===c?a[1]-b[1]:b[0]-a[0]}return function(h){function i(a){for(var b=0,c=q.length,d=a[1],e=0;c>e;++e)for(var f,g=1,h=q[e],i=h.length,j=h[0];i>g;++g)f=h[g],j[1]<=d?f[1]>d&&aa(j,f,a)>0&&++b:f[1]<=d&&aa(j,f,a)<0&&--b,j=f;return 0!==b}function j(f,h,i,j){var k=0,l=0;if(null==f||(k=e(f,i))!==(l=e(h,i))||g(f,h)<0^i>0){do j.point(0===k||3===k?a:c,k>1?d:b);while((k=(k+i+4)%4)!==l)}else j.point(h[0],h[1])}function k(e,f){return e>=a&&c>=e&&f>=b&&d>=f}function l(a,b){k(a,b)&&h.point(a,b)}function m(){D.point=o,q&&q.push(r=[]),y=!0,x=!1,v=w=NaN}function n(){p&&(o(s,t),u&&x&&B.rejoin(),p.push(B.buffer())),D.point=l,x&&h.lineEnd()}function o(a,b){a=Math.max(-Oh,Math.min(Oh,a)),b=Math.max(-Oh,Math.min(Oh,b));var c=k(a,b);if(q&&r.push([a,b]),y)s=a,t=b,u=c,y=!1,c&&(h.lineStart(),h.point(a,b));else if(c&&x)h.point(a,b);else{var d={a:{x:v,y:w},b:{x:a,y:b}};C(d)?(x||(h.lineStart(),h.point(d.a.x,d.a.y)),h.point(d.b.x,d.b.y),c||h.lineEnd(),z=!1):c&&(h.lineStart(),h.point(a,b),z=!1)}v=a,w=b,x=c}var p,q,r,s,t,u,v,w,x,y,z,A=h,B=Kb(),C=Rb(a,b,c,d),D={point:l,lineStart:m,lineEnd:n,polygonStart:function(){h=B,p=[],q=[],z=!0},polygonEnd:function(){h=A,p=ig.merge(p);var b=i([a,d]),c=z&&b,e=p.length;(c||e)&&(h.polygonStart(),c&&(h.lineStart(),j(null,null,1,h),h.lineEnd()),e&&Fb(p,f,b,j,h),h.polygonEnd()),p=q=r=null}};return D}}function Tb(a){var b=0,c=Ng/3,d=hc(a),e=d(b,c);return e.parallels=function(a){return arguments.length?d(b=a[0]*Ng/180,c=a[1]*Ng/180):[b/Ng*180,c/Ng*180]},e}function Ub(a,b){function c(a,b){var c=Math.sqrt(f-2*e*Math.sin(b))/e;return[c*Math.sin(a*=e),g-c*Math.cos(a)]}var d=Math.sin(a),e=(d+Math.sin(b))/2,f=1+d*(2*e-d),g=Math.sqrt(f)/e;return c.invert=function(a,b){var c=g-b;return[Math.atan2(a,c)/e,ca((f-(a*a+c*c)*e*e)/(2*e))]},c}function Vb(){function a(a,b){Qh+=e*a-d*b,d=a,e=b}var b,c,d,e;Vh.point=function(f,g){Vh.point=a,b=d=f,c=e=g},Vh.lineEnd=function(){a(b,c)}}function Wb(a,b){Rh>a&&(Rh=a),a>Th&&(Th=a),Sh>b&&(Sh=b),b>Uh&&(Uh=b)}function Xb(){function a(a,b){g.push("M",a,",",b,f)}function b(a,b){g.push("M",a,",",b),h.point=c}function c(a,b){g.push("L",a,",",b)}function d(){h.point=a}function e(){g.push("Z")}var f=Yb(4.5),g=[],h={point:a,lineStart:function(){h.point=b},lineEnd:d,polygonStart:function(){h.lineEnd=e},polygonEnd:function(){h.lineEnd=d,h.point=a},pointRadius:function(a){return f=Yb(a),h},result:function(){if(g.length){var a=g.join("");return g=[],a}}};return h}function Yb(a){return"m0,"+a+"a"+a+","+a+" 0 1,1 0,"+-2*a+"a"+a+","+a+" 0 1,1 0,"+2*a+"z"}function Zb(a,b){Dh+=a,Eh+=b,++Fh}function $b(){function a(a,d){var e=a-b,f=d-c,g=Math.sqrt(e*e+f*f);Gh+=g*(b+a)/2,Hh+=g*(c+d)/2,Ih+=g,Zb(b=a,c=d)}var b,c;Xh.point=function(d,e){Xh.point=a,Zb(b=d,c=e)}}function _b(){Xh.point=Zb}function ac(){function a(a,b){var c=a-d,f=b-e,g=Math.sqrt(c*c+f*f);Gh+=g*(d+a)/2,Hh+=g*(e+b)/2,Ih+=g,g=e*a-d*b,Jh+=g*(d+a),Kh+=g*(e+b),Lh+=3*g,Zb(d=a,e=b)}var b,c,d,e;Xh.point=function(f,g){Xh.point=a,Zb(b=d=f,c=e=g)},Xh.lineEnd=function(){a(b,c)}}function bc(a){function b(b,c){a.moveTo(b+g,c),a.arc(b,c,g,0,Og)}function c(b,c){a.moveTo(b,c),h.point=d}function d(b,c){a.lineTo(b,c)}function e(){h.point=b}function f(){a.closePath()}var g=4.5,h={point:b,lineStart:function(){h.point=c},lineEnd:e,polygonStart:function(){h.lineEnd=f},polygonEnd:function(){
2
- h.lineEnd=e,h.point=b},pointRadius:function(a){return g=a,h},result:w};return h}function cc(a){function b(a){return(h?d:c)(a)}function c(b){return fc(b,function(c,d){c=a(c,d),b.point(c[0],c[1])})}function d(b){function c(c,d){c=a(c,d),b.point(c[0],c[1])}function d(){t=NaN,y.point=f,b.lineStart()}function f(c,d){var f=qb([c,d]),g=a(c,d);e(t,u,s,v,w,x,t=g[0],u=g[1],s=c,v=f[0],w=f[1],x=f[2],h,b),b.point(t,u)}function g(){y.point=c,b.lineEnd()}function i(){d(),y.point=j,y.lineEnd=k}function j(a,b){f(l=a,m=b),n=t,o=u,p=v,q=w,r=x,y.point=f}function k(){e(t,u,s,v,w,x,n,o,l,p,q,r,h,b),y.lineEnd=g,g()}var l,m,n,o,p,q,r,s,t,u,v,w,x,y={point:c,lineStart:d,lineEnd:g,polygonStart:function(){b.polygonStart(),y.lineStart=i},polygonEnd:function(){b.polygonEnd(),y.lineStart=d}};return y}function e(b,c,d,h,i,j,k,l,m,n,o,p,q,r){var s=k-b,t=l-c,u=s*s+t*t;if(u>4*f&&q--){var v=h+n,w=i+o,x=j+p,y=Math.sqrt(v*v+w*w+x*x),z=Math.asin(x/=y),A=ug(ug(x)-1)<Lg||ug(d-m)<Lg?(d+m)/2:Math.atan2(w,v),B=a(A,z),C=B[0],D=B[1],E=C-b,F=D-c,G=t*E-s*F;(G*G/u>f||ug((s*E+t*F)/u-.5)>.3||g>h*n+i*o+j*p)&&(e(b,c,d,h,i,j,C,D,A,v/=y,w/=y,x,q,r),r.point(C,D),e(C,D,A,v,w,x,k,l,m,n,o,p,q,r))}}var f=.5,g=Math.cos(30*Rg),h=16;return b.precision=function(a){return arguments.length?(h=(f=a*a)>0&&16,b):Math.sqrt(f)},b}function dc(a){var b=cc(function(b,c){return a([b*Sg,c*Sg])});return function(a){return ic(b(a))}}function ec(a){this.stream=a}function fc(a,b){return{point:b,sphere:function(){a.sphere()},lineStart:function(){a.lineStart()},lineEnd:function(){a.lineEnd()},polygonStart:function(){a.polygonStart()},polygonEnd:function(){a.polygonEnd()}}}function gc(a){return hc(function(){return a})()}function hc(a){function b(a){return a=h(a[0]*Rg,a[1]*Rg),[a[0]*m+i,j-a[1]*m]}function c(a){return a=h.invert((a[0]-i)/m,(j-a[1])/m),a&&[a[0]*Sg,a[1]*Sg]}function d(){h=Db(g=lc(r,s,u),f);var a=f(p,q);return i=n-a[0]*m,j=o+a[1]*m,e()}function e(){return k&&(k.valid=!1,k=null),b}var f,g,h,i,j,k,l=cc(function(a,b){return a=f(a,b),[a[0]*m+i,j-a[1]*m]}),m=150,n=480,o=250,p=0,q=0,r=0,s=0,u=0,v=Nh,w=t,x=null,y=null;return b.stream=function(a){return k&&(k.valid=!1),k=ic(v(g,l(w(a)))),k.valid=!0,k},b.clipAngle=function(a){return arguments.length?(v=null==a?(x=a,Nh):Qb((x=+a)*Rg),e()):x},b.clipExtent=function(a){return arguments.length?(y=a,w=a?Sb(a[0][0],a[0][1],a[1][0],a[1][1]):t,e()):y},b.scale=function(a){return arguments.length?(m=+a,d()):m},b.translate=function(a){return arguments.length?(n=+a[0],o=+a[1],d()):[n,o]},b.center=function(a){return arguments.length?(p=a[0]%360*Rg,q=a[1]%360*Rg,d()):[p*Sg,q*Sg]},b.rotate=function(a){return arguments.length?(r=a[0]%360*Rg,s=a[1]%360*Rg,u=a.length>2?a[2]%360*Rg:0,d()):[r*Sg,s*Sg,u*Sg]},ig.rebind(b,l,"precision"),function(){return f=a.apply(this,arguments),b.invert=f.invert&&c,d()}}function ic(a){return fc(a,function(b,c){a.point(b*Rg,c*Rg)})}function jc(a,b){return[a,b]}function kc(a,b){return[a>Ng?a-Og:-Ng>a?a+Og:a,b]}function lc(a,b,c){return a?b||c?Db(nc(a),oc(b,c)):nc(a):b||c?oc(b,c):kc}function mc(a){return function(b,c){return b+=a,[b>Ng?b-Og:-Ng>b?b+Og:b,c]}}function nc(a){var b=mc(a);return b.invert=mc(-a),b}function oc(a,b){function c(a,b){var c=Math.cos(b),h=Math.cos(a)*c,i=Math.sin(a)*c,j=Math.sin(b),k=j*d+h*e;return[Math.atan2(i*f-k*g,h*d-j*e),ca(k*f+i*g)]}var d=Math.cos(a),e=Math.sin(a),f=Math.cos(b),g=Math.sin(b);return c.invert=function(a,b){var c=Math.cos(b),h=Math.cos(a)*c,i=Math.sin(a)*c,j=Math.sin(b),k=j*f-i*g;return[Math.atan2(i*f+j*g,h*d+k*e),ca(k*d-h*e)]},c}function pc(a,b){var c=Math.cos(a),d=Math.sin(a);return function(e,f,g,h){var i=g*b;null!=e?(e=qc(c,e),f=qc(c,f),(g>0?f>e:e>f)&&(e+=g*Og)):(e=a+g*Og,f=a-.5*i);for(var j,k=e;g>0?k>f:f>k;k-=i)h.point((j=wb([c,-d*Math.cos(k),-d*Math.sin(k)]))[0],j[1])}}function qc(a,b){var c=qb(b);c[0]-=a,vb(c);var d=ba(-c[1]);return((-c[2]<0?-d:d)+2*Math.PI-Lg)%(2*Math.PI)}function rc(a,b,c){var d=ig.range(a,b-Lg,c).concat(b);return function(a){return d.map(function(b){return[a,b]})}}function sc(a,b,c){var d=ig.range(a,b-Lg,c).concat(b);return function(a){return d.map(function(b){return[b,a]})}}function tc(a){return a.source}function uc(a){return a.target}function vc(a,b,c,d){var e=Math.cos(b),f=Math.sin(b),g=Math.cos(d),h=Math.sin(d),i=e*Math.cos(a),j=e*Math.sin(a),k=g*Math.cos(c),l=g*Math.sin(c),m=2*Math.asin(Math.sqrt(ga(d-b)+e*g*ga(c-a))),n=1/Math.sin(m),o=m?function(a){var b=Math.sin(a*=m)*n,c=Math.sin(m-a)*n,d=c*i+b*k,e=c*j+b*l,g=c*f+b*h;return[Math.atan2(e,d)*Sg,Math.atan2(g,Math.sqrt(d*d+e*e))*Sg]}:function(){return[a*Sg,b*Sg]};return o.distance=m,o}function wc(){function a(a,e){var f=Math.sin(e*=Rg),g=Math.cos(e),h=ug((a*=Rg)-b),i=Math.cos(h);Yh+=Math.atan2(Math.sqrt((h=g*Math.sin(h))*h+(h=d*f-c*g*i)*h),c*f+d*g*i),b=a,c=f,d=g}var b,c,d;Zh.point=function(e,f){b=e*Rg,c=Math.sin(f*=Rg),d=Math.cos(f),Zh.point=a},Zh.lineEnd=function(){Zh.point=Zh.lineEnd=w}}function xc(a,b){function c(b,c){var d=Math.cos(b),e=Math.cos(c),f=a(d*e);return[f*e*Math.sin(b),f*Math.sin(c)]}return c.invert=function(a,c){var d=Math.sqrt(a*a+c*c),e=b(d),f=Math.sin(e),g=Math.cos(e);return[Math.atan2(a*f,d*g),Math.asin(d&&c*f/d)]},c}function yc(a,b){function c(a,b){g>0?-Qg+Lg>b&&(b=-Qg+Lg):b>Qg-Lg&&(b=Qg-Lg);var c=g/Math.pow(e(b),f);return[c*Math.sin(f*a),g-c*Math.cos(f*a)]}var d=Math.cos(a),e=function(a){return Math.tan(Ng/4+a/2)},f=a===b?Math.sin(a):Math.log(d/Math.cos(b))/Math.log(e(b)/e(a)),g=d*Math.pow(e(a),f)/f;return f?(c.invert=function(a,b){var c=g-b,d=_(f)*Math.sqrt(a*a+c*c);return[Math.atan2(a,c)/f,2*Math.atan(Math.pow(g/d,1/f))-Qg]},c):Ac}function zc(a,b){function c(a,b){var c=f-b;return[c*Math.sin(e*a),f-c*Math.cos(e*a)]}var d=Math.cos(a),e=a===b?Math.sin(a):(d-Math.cos(b))/(b-a),f=d/e+a;return ug(e)<Lg?jc:(c.invert=function(a,b){var c=f-b;return[Math.atan2(a,c)/e,f-_(e)*Math.sqrt(a*a+c*c)]},c)}function Ac(a,b){return[a,Math.log(Math.tan(Ng/4+b/2))]}function Bc(a){var b,c=gc(a),d=c.scale,e=c.translate,f=c.clipExtent;return c.scale=function(){var a=d.apply(c,arguments);return a===c?b?c.clipExtent(null):c:a},c.translate=function(){var a=e.apply(c,arguments);return a===c?b?c.clipExtent(null):c:a},c.clipExtent=function(a){var g=f.apply(c,arguments);if(g===c){if(b=null==a){var h=Ng*d(),i=e();f([[i[0]-h,i[1]-h],[i[0]+h,i[1]+h]])}}else b&&(g=null);return g},c.clipExtent(null)}function Cc(a,b){return[Math.log(Math.tan(Ng/4+b/2)),-a]}function Dc(a){return a[0]}function Ec(a){return a[1]}function Fc(a){for(var b=a.length,c=[0,1],d=2,e=2;b>e;e++){for(;d>1&&aa(a[c[d-2]],a[c[d-1]],a[e])<=0;)--d;c[d++]=e}return c.slice(0,d)}function Gc(a,b){return a[0]-b[0]||a[1]-b[1]}function Hc(a,b,c){return(c[0]-b[0])*(a[1]-b[1])<(c[1]-b[1])*(a[0]-b[0])}function Ic(a,b,c,d){var e=a[0],f=c[0],g=b[0]-e,h=d[0]-f,i=a[1],j=c[1],k=b[1]-i,l=d[1]-j,m=(h*(i-j)-l*(e-f))/(l*g-h*k);return[e+m*g,i+m*k]}function Jc(a){var b=a[0],c=a[a.length-1];return!(b[0]-c[0]||b[1]-c[1])}function Kc(){dd(this),this.edge=this.site=this.circle=null}function Lc(a){var b=ji.pop()||new Kc;return b.site=a,b}function Mc(a){Wc(a),gi.remove(a),ji.push(a),dd(a)}function Nc(a){var b=a.circle,c=b.x,d=b.cy,e={x:c,y:d},f=a.P,g=a.N,h=[a];Mc(a);for(var i=f;i.circle&&ug(c-i.circle.x)<Lg&&ug(d-i.circle.cy)<Lg;)f=i.P,h.unshift(i),Mc(i),i=f;h.unshift(i),Wc(i);for(var j=g;j.circle&&ug(c-j.circle.x)<Lg&&ug(d-j.circle.cy)<Lg;)g=j.N,h.push(j),Mc(j),j=g;h.push(j),Wc(j);var k,l=h.length;for(k=1;l>k;++k)j=h[k],i=h[k-1],ad(j.edge,i.site,j.site,e);i=h[0],j=h[l-1],j.edge=$c(i.site,j.site,null,e),Vc(i),Vc(j)}function Oc(a){for(var b,c,d,e,f=a.x,g=a.y,h=gi._;h;)if(d=Pc(h,g)-f,d>Lg)h=h.L;else{if(e=f-Qc(h,g),!(e>Lg)){d>-Lg?(b=h.P,c=h):e>-Lg?(b=h,c=h.N):b=c=h;break}if(!h.R){b=h;break}h=h.R}var i=Lc(a);if(gi.insert(b,i),b||c){if(b===c)return Wc(b),c=Lc(b.site),gi.insert(i,c),i.edge=c.edge=$c(b.site,i.site),Vc(b),void Vc(c);if(!c)return void(i.edge=$c(b.site,i.site));Wc(b),Wc(c);var j=b.site,k=j.x,l=j.y,m=a.x-k,n=a.y-l,o=c.site,p=o.x-k,q=o.y-l,r=2*(m*q-n*p),s=m*m+n*n,t=p*p+q*q,u={x:(q*s-n*t)/r+k,y:(m*t-p*s)/r+l};ad(c.edge,j,o,u),i.edge=$c(j,a,null,u),c.edge=$c(a,o,null,u),Vc(b),Vc(c)}}function Pc(a,b){var c=a.site,d=c.x,e=c.y,f=e-b;if(!f)return d;var g=a.P;if(!g)return-(1/0);c=g.site;var h=c.x,i=c.y,j=i-b;if(!j)return h;var k=h-d,l=1/f-1/j,m=k/j;return l?(-m+Math.sqrt(m*m-2*l*(k*k/(-2*j)-i+j/2+e-f/2)))/l+d:(d+h)/2}function Qc(a,b){var c=a.N;if(c)return Pc(c,b);var d=a.site;return d.y===b?d.x:1/0}function Rc(a){this.site=a,this.edges=[]}function Sc(a){for(var b,c,d,e,f,g,h,i,j,k,l=a[0][0],m=a[1][0],n=a[0][1],o=a[1][1],p=fi,q=p.length;q--;)if(f=p[q],f&&f.prepare())for(h=f.edges,i=h.length,g=0;i>g;)k=h[g].end(),d=k.x,e=k.y,j=h[++g%i].start(),b=j.x,c=j.y,(ug(d-b)>Lg||ug(e-c)>Lg)&&(h.splice(g,0,new bd(_c(f.site,k,ug(d-l)<Lg&&o-e>Lg?{x:l,y:ug(b-l)<Lg?c:o}:ug(e-o)<Lg&&m-d>Lg?{x:ug(c-o)<Lg?b:m,y:o}:ug(d-m)<Lg&&e-n>Lg?{x:m,y:ug(b-m)<Lg?c:n}:ug(e-n)<Lg&&d-l>Lg?{x:ug(c-n)<Lg?b:l,y:n}:null),f.site,null)),++i)}function Tc(a,b){return b.angle-a.angle}function Uc(){dd(this),this.x=this.y=this.arc=this.site=this.cy=null}function Vc(a){var b=a.P,c=a.N;if(b&&c){var d=b.site,e=a.site,f=c.site;if(d!==f){var g=e.x,h=e.y,i=d.x-g,j=d.y-h,k=f.x-g,l=f.y-h,m=2*(i*l-j*k);if(!(m>=-Mg)){var n=i*i+j*j,o=k*k+l*l,p=(l*n-j*o)/m,q=(i*o-k*n)/m,l=q+h,r=ki.pop()||new Uc;r.arc=a,r.site=e,r.x=p+g,r.y=l+Math.sqrt(p*p+q*q),r.cy=l,a.circle=r;for(var s=null,t=ii._;t;)if(r.y<t.y||r.y===t.y&&r.x<=t.x){if(!t.L){s=t.P;break}t=t.L}else{if(!t.R){s=t;break}t=t.R}ii.insert(s,r),s||(hi=r)}}}}function Wc(a){var b=a.circle;b&&(b.P||(hi=b.N),ii.remove(b),ki.push(b),dd(b),a.circle=null)}function Xc(a){for(var b,c=ei,d=Rb(a[0][0],a[0][1],a[1][0],a[1][1]),e=c.length;e--;)b=c[e],(!Yc(b,a)||!d(b)||ug(b.a.x-b.b.x)<Lg&&ug(b.a.y-b.b.y)<Lg)&&(b.a=b.b=null,c.splice(e,1))}function Yc(a,b){var c=a.b;if(c)return!0;var d,e,f=a.a,g=b[0][0],h=b[1][0],i=b[0][1],j=b[1][1],k=a.l,l=a.r,m=k.x,n=k.y,o=l.x,p=l.y,q=(m+o)/2,r=(n+p)/2;if(p===n){if(g>q||q>=h)return;if(m>o){if(f){if(f.y>=j)return}else f={x:q,y:i};c={x:q,y:j}}else{if(f){if(f.y<i)return}else f={x:q,y:j};c={x:q,y:i}}}else if(d=(m-o)/(p-n),e=r-d*q,-1>d||d>1)if(m>o){if(f){if(f.y>=j)return}else f={x:(i-e)/d,y:i};c={x:(j-e)/d,y:j}}else{if(f){if(f.y<i)return}else f={x:(j-e)/d,y:j};c={x:(i-e)/d,y:i}}else if(p>n){if(f){if(f.x>=h)return}else f={x:g,y:d*g+e};c={x:h,y:d*h+e}}else{if(f){if(f.x<g)return}else f={x:h,y:d*h+e};c={x:g,y:d*g+e}}return a.a=f,a.b=c,!0}function Zc(a,b){this.l=a,this.r=b,this.a=this.b=null}function $c(a,b,c,d){var e=new Zc(a,b);return ei.push(e),c&&ad(e,a,b,c),d&&ad(e,b,a,d),fi[a.i].edges.push(new bd(e,a,b)),fi[b.i].edges.push(new bd(e,b,a)),e}function _c(a,b,c){var d=new Zc(a,null);return d.a=b,d.b=c,ei.push(d),d}function ad(a,b,c,d){a.a||a.b?a.l===c?a.b=d:a.a=d:(a.a=d,a.l=b,a.r=c)}function bd(a,b,c){var d=a.a,e=a.b;this.edge=a,this.site=b,this.angle=c?Math.atan2(c.y-b.y,c.x-b.x):a.l===b?Math.atan2(e.x-d.x,d.y-e.y):Math.atan2(d.x-e.x,e.y-d.y)}function cd(){this._=null}function dd(a){a.U=a.C=a.L=a.R=a.P=a.N=null}function ed(a,b){var c=b,d=b.R,e=c.U;e?e.L===c?e.L=d:e.R=d:a._=d,d.U=e,c.U=d,c.R=d.L,c.R&&(c.R.U=c),d.L=c}function fd(a,b){var c=b,d=b.L,e=c.U;e?e.L===c?e.L=d:e.R=d:a._=d,d.U=e,c.U=d,c.L=d.R,c.L&&(c.L.U=c),d.R=c}function gd(a){for(;a.L;)a=a.L;return a}function hd(a,b){var c,d,e,f=a.sort(id).pop();for(ei=[],fi=new Array(a.length),gi=new cd,ii=new cd;;)if(e=hi,f&&(!e||f.y<e.y||f.y===e.y&&f.x<e.x))f.x===c&&f.y===d||(fi[f.i]=new Rc(f),Oc(f),c=f.x,d=f.y),f=a.pop();else{if(!e)break;Nc(e.arc)}b&&(Xc(b),Sc(b));var g={cells:fi,edges:ei};return gi=ii=ei=fi=null,g}function id(a,b){return b.y-a.y||b.x-a.x}function jd(a,b,c){return(a.x-c.x)*(b.y-a.y)-(a.x-b.x)*(c.y-a.y)}function kd(a){return a.x}function ld(a){return a.y}function md(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function nd(a,b,c,d,e,f){if(!a(b,c,d,e,f)){var g=.5*(c+e),h=.5*(d+f),i=b.nodes;i[0]&&nd(a,i[0],c,d,g,h),i[1]&&nd(a,i[1],g,d,e,h),i[2]&&nd(a,i[2],c,h,g,f),i[3]&&nd(a,i[3],g,h,e,f)}}function od(a,b,c,d,e,f,g){var h,i=1/0;return function j(a,k,l,m,n){if(!(k>f||l>g||d>m||e>n)){if(o=a.point){var o,p=b-a.x,q=c-a.y,r=p*p+q*q;if(i>r){var s=Math.sqrt(i=r);d=b-s,e=c-s,f=b+s,g=c+s,h=o}}for(var t=a.nodes,u=.5*(k+m),v=.5*(l+n),w=b>=u,x=c>=v,y=x<<1|w,z=y+4;z>y;++y)if(a=t[3&y])switch(3&y){case 0:j(a,k,l,u,v);break;case 1:j(a,u,l,m,v);break;case 2:j(a,k,v,u,n);break;case 3:j(a,u,v,m,n)}}}(a,d,e,f,g),h}function pd(a,b){a=ig.rgb(a),b=ig.rgb(b);var c=a.r,d=a.g,e=a.b,f=b.r-c,g=b.g-d,h=b.b-e;return function(a){return"#"+va(Math.round(c+f*a))+va(Math.round(d+g*a))+va(Math.round(e+h*a))}}function qd(a,b){var c,d={},e={};for(c in a)c in b?d[c]=td(a[c],b[c]):e[c]=a[c];for(c in b)c in a||(e[c]=b[c]);return function(a){for(c in d)e[c]=d[c](a);return e}}function rd(a,b){return a=+a,b=+b,function(c){return a*(1-c)+b*c}}function sd(a,b){var c,d,e,f=mi.lastIndex=ni.lastIndex=0,g=-1,h=[],i=[];for(a+="",b+="";(c=mi.exec(a))&&(d=ni.exec(b));)(e=d.index)>f&&(e=b.slice(f,e),h[g]?h[g]+=e:h[++g]=e),(c=c[0])===(d=d[0])?h[g]?h[g]+=d:h[++g]=d:(h[++g]=null,i.push({i:g,x:rd(c,d)})),f=ni.lastIndex;return f<b.length&&(e=b.slice(f),h[g]?h[g]+=e:h[++g]=e),h.length<2?i[0]?(b=i[0].x,function(a){return b(a)+""}):function(){return b}:(b=i.length,function(a){for(var c,d=0;b>d;++d)h[(c=i[d]).i]=c.x(a);return h.join("")})}function td(a,b){for(var c,d=ig.interpolators.length;--d>=0&&!(c=ig.interpolators[d](a,b)););return c}function ud(a,b){var c,d=[],e=[],f=a.length,g=b.length,h=Math.min(a.length,b.length);for(c=0;h>c;++c)d.push(td(a[c],b[c]));for(;f>c;++c)e[c]=a[c];for(;g>c;++c)e[c]=b[c];return function(a){for(c=0;h>c;++c)e[c]=d[c](a);return e}}function vd(a){return function(b){return 0>=b?0:b>=1?1:a(b)}}function wd(a){return function(b){return 1-a(1-b)}}function xd(a){return function(b){return.5*(.5>b?a(2*b):2-a(2-2*b))}}function yd(a){return a*a}function zd(a){return a*a*a}function Ad(a){if(0>=a)return 0;if(a>=1)return 1;var b=a*a,c=b*a;return 4*(.5>a?c:3*(a-b)+c-.75)}function Bd(a){return function(b){return Math.pow(b,a)}}function Cd(a){return 1-Math.cos(a*Qg)}function Dd(a){return Math.pow(2,10*(a-1))}function Ed(a){return 1-Math.sqrt(1-a*a)}function Fd(a,b){var c;return arguments.length<2&&(b=.45),arguments.length?c=b/Og*Math.asin(1/a):(a=1,c=b/4),function(d){return 1+a*Math.pow(2,-10*d)*Math.sin((d-c)*Og/b)}}function Gd(a){return a||(a=1.70158),function(b){return b*b*((a+1)*b-a)}}function Hd(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375}function Id(a,b){a=ig.hcl(a),b=ig.hcl(b);var c=a.h,d=a.c,e=a.l,f=b.h-c,g=b.c-d,h=b.l-e;return isNaN(g)&&(g=0,d=isNaN(d)?b.c:d),isNaN(f)?(f=0,c=isNaN(c)?b.h:c):f>180?f-=360:-180>f&&(f+=360),function(a){return la(c+f*a,d+g*a,e+h*a)+""}}function Jd(a,b){a=ig.hsl(a),b=ig.hsl(b);var c=a.h,d=a.s,e=a.l,f=b.h-c,g=b.s-d,h=b.l-e;return isNaN(g)&&(g=0,d=isNaN(d)?b.s:d),isNaN(f)?(f=0,c=isNaN(c)?b.h:c):f>180?f-=360:-180>f&&(f+=360),function(a){return ja(c+f*a,d+g*a,e+h*a)+""}}function Kd(a,b){a=ig.lab(a),b=ig.lab(b);var c=a.l,d=a.a,e=a.b,f=b.l-c,g=b.a-d,h=b.b-e;return function(a){return na(c+f*a,d+g*a,e+h*a)+""}}function Ld(a,b){return b-=a,function(c){return Math.round(a+b*c)}}function Md(a){var b=[a.a,a.b],c=[a.c,a.d],d=Od(b),e=Nd(b,c),f=Od(Pd(c,b,-e))||0;b[0]*c[1]<c[0]*b[1]&&(b[0]*=-1,b[1]*=-1,d*=-1,e*=-1),this.rotate=(d?Math.atan2(b[1],b[0]):Math.atan2(-c[0],c[1]))*Sg,this.translate=[a.e,a.f],this.scale=[d,f],this.skew=f?Math.atan2(e,f)*Sg:0}function Nd(a,b){return a[0]*b[0]+a[1]*b[1]}function Od(a){var b=Math.sqrt(Nd(a,a));return b&&(a[0]/=b,a[1]/=b),b}function Pd(a,b,c){return a[0]+=c*b[0],a[1]+=c*b[1],a}function Qd(a){return a.length?a.pop()+",":""}function Rd(a,b,c,d){if(a[0]!==b[0]||a[1]!==b[1]){var e=c.push("translate(",null,",",null,")");d.push({i:e-4,x:rd(a[0],b[0])},{i:e-2,x:rd(a[1],b[1])})}else(b[0]||b[1])&&c.push("translate("+b+")")}function Sd(a,b,c,d){a!==b?(a-b>180?b+=360:b-a>180&&(a+=360),d.push({i:c.push(Qd(c)+"rotate(",null,")")-2,x:rd(a,b)})):b&&c.push(Qd(c)+"rotate("+b+")")}function Td(a,b,c,d){a!==b?d.push({i:c.push(Qd(c)+"skewX(",null,")")-2,x:rd(a,b)}):b&&c.push(Qd(c)+"skewX("+b+")")}function Ud(a,b,c,d){if(a[0]!==b[0]||a[1]!==b[1]){var e=c.push(Qd(c)+"scale(",null,",",null,")");d.push({i:e-4,x:rd(a[0],b[0])},{i:e-2,x:rd(a[1],b[1])})}else 1===b[0]&&1===b[1]||c.push(Qd(c)+"scale("+b+")")}function Vd(a,b){var c=[],d=[];return a=ig.transform(a),b=ig.transform(b),Rd(a.translate,b.translate,c,d),Sd(a.rotate,b.rotate,c,d),Td(a.skew,b.skew,c,d),Ud(a.scale,b.scale,c,d),a=b=null,function(a){for(var b,e=-1,f=d.length;++e<f;)c[(b=d[e]).i]=b.x(a);return c.join("")}}function Wd(a,b){return b=(b-=a=+a)||1/b,function(c){return(c-a)/b}}function Xd(a,b){return b=(b-=a=+a)||1/b,function(c){return Math.max(0,Math.min(1,(c-a)/b))}}function Yd(a){for(var b=a.source,c=a.target,d=$d(b,c),e=[b];b!==d;)b=b.parent,e.push(b);for(var f=e.length;c!==d;)e.splice(f,0,c),c=c.parent;return e}function Zd(a){for(var b=[],c=a.parent;null!=c;)b.push(a),a=c,c=c.parent;return b.push(a),b}function $d(a,b){if(a===b)return a;for(var c=Zd(a),d=Zd(b),e=c.pop(),f=d.pop(),g=null;e===f;)g=e,e=c.pop(),f=d.pop();return g}function _d(a){a.fixed|=2}function ae(a){a.fixed&=-7}function be(a){a.fixed|=4,a.px=a.x,a.py=a.y}function ce(a){a.fixed&=-5}function de(a,b,c){var d=0,e=0;if(a.charge=0,!a.leaf)for(var f,g=a.nodes,h=g.length,i=-1;++i<h;)f=g[i],null!=f&&(de(f,b,c),a.charge+=f.charge,d+=f.charge*f.cx,e+=f.charge*f.cy);if(a.point){a.leaf||(a.point.x+=Math.random()-.5,a.point.y+=Math.random()-.5);var j=b*c[a.point.index];a.charge+=a.pointCharge=j,d+=j*a.point.x,e+=j*a.point.y}a.cx=d/a.charge,a.cy=e/a.charge}function ee(a,b){return ig.rebind(a,b,"sort","children","value"),a.nodes=a,a.links=ke,a}function fe(a,b){for(var c=[a];null!=(a=c.pop());)if(b(a),(e=a.children)&&(d=e.length))for(var d,e;--d>=0;)c.push(e[d])}function ge(a,b){for(var c=[a],d=[];null!=(a=c.pop());)if(d.push(a),(f=a.children)&&(e=f.length))for(var e,f,g=-1;++g<e;)c.push(f[g]);for(;null!=(a=d.pop());)b(a)}function he(a){return a.children}function ie(a){return a.value}function je(a,b){return b.value-a.value}function ke(a){return ig.merge(a.map(function(a){return(a.children||[]).map(function(b){return{source:a,target:b}})}))}function le(a){return a.x}function me(a){return a.y}function ne(a,b,c){a.y0=b,a.y=c}function oe(a){return ig.range(a.length)}function pe(a){for(var b=-1,c=a[0].length,d=[];++b<c;)d[b]=0;return d}function qe(a){for(var b,c=1,d=0,e=a[0][1],f=a.length;f>c;++c)(b=a[c][1])>e&&(d=c,e=b);return d}function re(a){return a.reduce(se,0)}function se(a,b){return a+b[1]}function te(a,b){return ue(a,Math.ceil(Math.log(b.length)/Math.LN2+1))}function ue(a,b){for(var c=-1,d=+a[0],e=(a[1]-d)/b,f=[];++c<=b;)f[c]=e*c+d;return f}function ve(a){return[ig.min(a),ig.max(a)]}function we(a,b){return a.value-b.value}function xe(a,b){var c=a._pack_next;a._pack_next=b,b._pack_prev=a,b._pack_next=c,c._pack_prev=b}function ye(a,b){a._pack_next=b,b._pack_prev=a}function ze(a,b){var c=b.x-a.x,d=b.y-a.y,e=a.r+b.r;return.999*e*e>c*c+d*d}function Ae(a){function b(a){k=Math.min(a.x-a.r,k),l=Math.max(a.x+a.r,l),m=Math.min(a.y-a.r,m),n=Math.max(a.y+a.r,n)}if((c=a.children)&&(j=c.length)){var c,d,e,f,g,h,i,j,k=1/0,l=-(1/0),m=1/0,n=-(1/0);if(c.forEach(Be),d=c[0],d.x=-d.r,d.y=0,b(d),j>1&&(e=c[1],e.x=e.r,e.y=0,b(e),j>2))for(f=c[2],Ee(d,e,f),b(f),xe(d,f),d._pack_prev=f,xe(f,e),e=d._pack_next,g=3;j>g;g++){Ee(d,e,f=c[g]);var o=0,p=1,q=1;for(h=e._pack_next;h!==e;h=h._pack_next,p++)if(ze(h,f)){o=1;break}if(1==o)for(i=d._pack_prev;i!==h._pack_prev&&!ze(i,f);i=i._pack_prev,q++);o?(q>p||p==q&&e.r<d.r?ye(d,e=h):ye(d=i,e),g--):(xe(d,f),e=f,b(f))}var r=(k+l)/2,s=(m+n)/2,t=0;for(g=0;j>g;g++)f=c[g],f.x-=r,f.y-=s,t=Math.max(t,f.r+Math.sqrt(f.x*f.x+f.y*f.y));a.r=t,c.forEach(Ce)}}function Be(a){a._pack_next=a._pack_prev=a}function Ce(a){delete a._pack_next,delete a._pack_prev}function De(a,b,c,d){var e=a.children;if(a.x=b+=d*a.x,a.y=c+=d*a.y,a.r*=d,e)for(var f=-1,g=e.length;++f<g;)De(e[f],b,c,d)}function Ee(a,b,c){var d=a.r+c.r,e=b.x-a.x,f=b.y-a.y;if(d&&(e||f)){var g=b.r+c.r,h=e*e+f*f;g*=g,d*=d;var i=.5+(d-g)/(2*h),j=Math.sqrt(Math.max(0,2*g*(d+h)-(d-=h)*d-g*g))/(2*h);c.x=a.x+i*e+j*f,c.y=a.y+i*f-j*e}else c.x=a.x+d,c.y=a.y}function Fe(a,b){return a.parent==b.parent?1:2}function Ge(a){var b=a.children;return b.length?b[0]:a.t}function He(a){var b,c=a.children;return(b=c.length)?c[b-1]:a.t}function Ie(a,b,c){var d=c/(b.i-a.i);b.c-=d,b.s+=c,a.c+=d,b.z+=c,b.m+=c}function Je(a){for(var b,c=0,d=0,e=a.children,f=e.length;--f>=0;)b=e[f],b.z+=c,b.m+=c,c+=b.s+(d+=b.c)}function Ke(a,b,c){return a.a.parent===b.parent?a.a:c}function Le(a){return 1+ig.max(a,function(a){return a.y})}function Me(a){return a.reduce(function(a,b){return a+b.x},0)/a.length}function Ne(a){var b=a.children;return b&&b.length?Ne(b[0]):a}function Oe(a){var b,c=a.children;return c&&(b=c.length)?Oe(c[b-1]):a}function Pe(a){return{x:a.x,y:a.y,dx:a.dx,dy:a.dy}}function Qe(a,b){var c=a.x+b[3],d=a.y+b[0],e=a.dx-b[1]-b[3],f=a.dy-b[0]-b[2];return 0>e&&(c+=e/2,e=0),0>f&&(d+=f/2,f=0),{x:c,y:d,dx:e,dy:f}}function Re(a){var b=a[0],c=a[a.length-1];return c>b?[b,c]:[c,b]}function Se(a){return a.rangeExtent?a.rangeExtent():Re(a.range())}function Te(a,b,c,d){var e=c(a[0],a[1]),f=d(b[0],b[1]);return function(a){return f(e(a))}}function Ue(a,b){var c,d=0,e=a.length-1,f=a[d],g=a[e];return f>g&&(c=d,d=e,e=c,c=f,f=g,g=c),a[d]=b.floor(f),a[e]=b.ceil(g),a}function Ve(a){return a?{floor:function(b){return Math.floor(b/a)*a},ceil:function(b){return Math.ceil(b/a)*a}}:yi}function We(a,b,c,d){var e=[],f=[],g=0,h=Math.min(a.length,b.length)-1;for(a[h]<a[0]&&(a=a.slice().reverse(),b=b.slice().reverse());++g<=h;)e.push(c(a[g-1],a[g])),f.push(d(b[g-1],b[g]));return function(b){var c=ig.bisect(a,b,1,h)-1;return f[c](e[c](b))}}function Xe(a,b,c,d){function e(){var e=Math.min(a.length,b.length)>2?We:Te,i=d?Xd:Wd;return g=e(a,b,i,c),h=e(b,a,i,td),f}function f(a){return g(a)}var g,h;return f.invert=function(a){return h(a)},f.domain=function(b){return arguments.length?(a=b.map(Number),e()):a},f.range=function(a){return arguments.length?(b=a,e()):b},f.rangeRound=function(a){return f.range(a).interpolate(Ld)},f.clamp=function(a){return arguments.length?(d=a,e()):d},f.interpolate=function(a){return arguments.length?(c=a,e()):c},f.ticks=function(b){return _e(a,b)},f.tickFormat=function(b,c){return af(a,b,c)},f.nice=function(b){return Ze(a,b),e()},f.copy=function(){return Xe(a,b,c,d)},e()}function Ye(a,b){return ig.rebind(a,b,"range","rangeRound","interpolate","clamp")}function Ze(a,b){return Ue(a,Ve($e(a,b)[2])),Ue(a,Ve($e(a,b)[2])),a}function $e(a,b){null==b&&(b=10);var c=Re(a),d=c[1]-c[0],e=Math.pow(10,Math.floor(Math.log(d/b)/Math.LN10)),f=b/d*e;return.15>=f?e*=10:.35>=f?e*=5:.75>=f&&(e*=2),c[0]=Math.ceil(c[0]/e)*e,c[1]=Math.floor(c[1]/e)*e+.5*e,c[2]=e,c}function _e(a,b){return ig.range.apply(ig,$e(a,b))}function af(a,b,c){var d=$e(a,b);if(c){var e=mh.exec(c);if(e.shift(),"s"===e[8]){var f=ig.formatPrefix(Math.max(ug(d[0]),ug(d[1])));return e[7]||(e[7]="."+bf(f.scale(d[2]))),e[8]="f",c=ig.format(e.join("")),function(a){return c(f.scale(a))+f.symbol}}e[7]||(e[7]="."+cf(e[8],d)),c=e.join("")}else c=",."+bf(d[2])+"f";return ig.format(c)}function bf(a){return-Math.floor(Math.log(a)/Math.LN10+.01)}function cf(a,b){var c=bf(b[2]);return a in zi?Math.abs(c-bf(Math.max(ug(b[0]),ug(b[1]))))+ +("e"!==a):c-2*("%"===a)}function df(a,b,c,d){function e(a){return(c?Math.log(0>a?0:a):-Math.log(a>0?0:-a))/Math.log(b)}function f(a){return c?Math.pow(b,a):-Math.pow(b,-a)}function g(b){return a(e(b))}return g.invert=function(b){return f(a.invert(b))},g.domain=function(b){return arguments.length?(c=b[0]>=0,a.domain((d=b.map(Number)).map(e)),g):d},g.base=function(c){return arguments.length?(b=+c,a.domain(d.map(e)),g):b},g.nice=function(){var b=Ue(d.map(e),c?Math:Bi);return a.domain(b),d=b.map(f),g},g.ticks=function(){var a=Re(d),g=[],h=a[0],i=a[1],j=Math.floor(e(h)),k=Math.ceil(e(i)),l=b%1?2:b;if(isFinite(k-j)){if(c){for(;k>j;j++)for(var m=1;l>m;m++)g.push(f(j)*m);g.push(f(j))}else for(g.push(f(j));j++<k;)for(var m=l-1;m>0;m--)g.push(f(j)*m);for(j=0;g[j]<h;j++);for(k=g.length;g[k-1]>i;k--);g=g.slice(j,k)}return g},g.tickFormat=function(a,c){if(!arguments.length)return Ai;arguments.length<2?c=Ai:"function"!=typeof c&&(c=ig.format(c));var d=Math.max(1,b*a/g.ticks().length);return function(a){var g=a/f(Math.round(e(a)));return b-.5>g*b&&(g*=b),d>=g?c(a):""}},g.copy=function(){return df(a.copy(),b,c,d)},Ye(g,a)}function ef(a,b,c){function d(b){return a(e(b))}var e=ff(b),f=ff(1/b);return d.invert=function(b){return f(a.invert(b))},d.domain=function(b){return arguments.length?(a.domain((c=b.map(Number)).map(e)),d):c},d.ticks=function(a){return _e(c,a)},d.tickFormat=function(a,b){return af(c,a,b)},d.nice=function(a){return d.domain(Ze(c,a))},d.exponent=function(g){return arguments.length?(e=ff(b=g),f=ff(1/b),a.domain(c.map(e)),d):b},d.copy=function(){return ef(a.copy(),b,c)},Ye(d,a)}function ff(a){return function(b){return 0>b?-Math.pow(-b,a):Math.pow(b,a)}}function gf(a,b){function c(c){return f[((e.get(c)||("range"===b.t?e.set(c,a.push(c)):NaN))-1)%f.length]}function d(b,c){return ig.range(a.length).map(function(a){return b+c*a})}var e,f,g;return c.domain=function(d){if(!arguments.length)return a;a=[],e=new k;for(var f,g=-1,h=d.length;++g<h;)e.has(f=d[g])||e.set(f,a.push(f));return c[b.t].apply(c,b.a)},c.range=function(a){return arguments.length?(f=a,g=0,b={t:"range",a:arguments},c):f},c.rangePoints=function(e,h){arguments.length<2&&(h=0);var i=e[0],j=e[1],k=a.length<2?(i=(i+j)/2,0):(j-i)/(a.length-1+h);return f=d(i+k*h/2,k),g=0,b={t:"rangePoints",a:arguments},c},c.rangeRoundPoints=function(e,h){arguments.length<2&&(h=0);var i=e[0],j=e[1],k=a.length<2?(i=j=Math.round((i+j)/2),0):(j-i)/(a.length-1+h)|0;return f=d(i+Math.round(k*h/2+(j-i-(a.length-1+h)*k)/2),k),g=0,b={t:"rangeRoundPoints",a:arguments},c},c.rangeBands=function(e,h,i){arguments.length<2&&(h=0),arguments.length<3&&(i=h);var j=e[1]<e[0],k=e[j-0],l=e[1-j],m=(l-k)/(a.length-h+2*i);return f=d(k+m*i,m),j&&f.reverse(),g=m*(1-h),b={t:"rangeBands",a:arguments},c},c.rangeRoundBands=function(e,h,i){arguments.length<2&&(h=0),arguments.length<3&&(i=h);var j=e[1]<e[0],k=e[j-0],l=e[1-j],m=Math.floor((l-k)/(a.length-h+2*i));return f=d(k+Math.round((l-k-(a.length-h)*m)/2),m),j&&f.reverse(),g=Math.round(m*(1-h)),b={t:"rangeRoundBands",a:arguments},c},c.rangeBand=function(){return g},c.rangeExtent=function(){return Re(b.a[0])},c.copy=function(){return gf(a,b)},c.domain(a)}function hf(a,b){function c(){var c=0,d=b.length;for(h=[];++c<d;)h[c-1]=ig.quantile(a,c/d);return g}function g(a){return isNaN(a=+a)?void 0:b[ig.bisect(h,a)]}var h;return g.domain=function(b){return arguments.length?(a=b.map(e).filter(f).sort(d),c()):a},g.range=function(a){return arguments.length?(b=a,c()):b},g.quantiles=function(){return h},g.invertExtent=function(c){return c=b.indexOf(c),0>c?[NaN,NaN]:[c>0?h[c-1]:a[0],c<h.length?h[c]:a[a.length-1]]},g.copy=function(){return hf(a,b)},c()}function jf(a,b,c){function d(b){return c[Math.max(0,Math.min(g,Math.floor(f*(b-a))))]}function e(){return f=c.length/(b-a),g=c.length-1,d}var f,g;return d.domain=function(c){return arguments.length?(a=+c[0],b=+c[c.length-1],e()):[a,b]},d.range=function(a){return arguments.length?(c=a,e()):c},d.invertExtent=function(b){return b=c.indexOf(b),b=0>b?NaN:b/f+a,[b,b+1/f]},d.copy=function(){return jf(a,b,c)},e()}function kf(a,b){function c(c){return c>=c?b[ig.bisect(a,c)]:void 0}return c.domain=function(b){return arguments.length?(a=b,c):a},c.range=function(a){return arguments.length?(b=a,c):b},c.invertExtent=function(c){return c=b.indexOf(c),[a[c-1],a[c]]},c.copy=function(){return kf(a,b)},c}function lf(a){function b(a){return+a}return b.invert=b,b.domain=b.range=function(c){return arguments.length?(a=c.map(b),b):a},b.ticks=function(b){return _e(a,b)},b.tickFormat=function(b,c){return af(a,b,c)},b.copy=function(){return lf(a)},b}function mf(){return 0}function nf(a){return a.innerRadius}function of(a){return a.outerRadius}function pf(a){return a.startAngle}function qf(a){return a.endAngle}function rf(a){return a&&a.padAngle}function sf(a,b,c,d){return(a-c)*b-(b-d)*a>0?0:1}function tf(a,b,c,d,e){var f=a[0]-b[0],g=a[1]-b[1],h=(e?d:-d)/Math.sqrt(f*f+g*g),i=h*g,j=-h*f,k=a[0]+i,l=a[1]+j,m=b[0]+i,n=b[1]+j,o=(k+m)/2,p=(l+n)/2,q=m-k,r=n-l,s=q*q+r*r,t=c-d,u=k*n-m*l,v=(0>r?-1:1)*Math.sqrt(Math.max(0,t*t*s-u*u)),w=(u*r-q*v)/s,x=(-u*q-r*v)/s,y=(u*r+q*v)/s,z=(-u*q+r*v)/s,A=w-o,B=x-p,C=y-o,D=z-p;return A*A+B*B>C*C+D*D&&(w=y,x=z),[[w-i,x-j],[w*c/t,x*c/t]]}function uf(a){function b(b){function g(){j.push("M",f(a(k),h))}for(var i,j=[],k=[],l=-1,m=b.length,n=Ba(c),o=Ba(d);++l<m;)e.call(this,i=b[l],l)?k.push([+n.call(this,i,l),+o.call(this,i,l)]):k.length&&(g(),k=[]);return k.length&&g(),j.length?j.join(""):null}var c=Dc,d=Ec,e=Eb,f=vf,g=f.key,h=.7;return b.x=function(a){return arguments.length?(c=a,b):c},b.y=function(a){return arguments.length?(d=a,b):d},b.defined=function(a){return arguments.length?(e=a,b):e},b.interpolate=function(a){return arguments.length?(g="function"==typeof a?f=a:(f=Hi.get(a)||vf).key,b):g},b.tension=function(a){return arguments.length?(h=a,b):h},b}function vf(a){return a.length>1?a.join("L"):a+"Z"}function wf(a){return a.join("L")+"Z"}function xf(a){for(var b=0,c=a.length,d=a[0],e=[d[0],",",d[1]];++b<c;)e.push("H",(d[0]+(d=a[b])[0])/2,"V",d[1]);return c>1&&e.push("H",d[0]),e.join("")}function yf(a){for(var b=0,c=a.length,d=a[0],e=[d[0],",",d[1]];++b<c;)e.push("V",(d=a[b])[1],"H",d[0]);return e.join("")}function zf(a){for(var b=0,c=a.length,d=a[0],e=[d[0],",",d[1]];++b<c;)e.push("H",(d=a[b])[0],"V",d[1]);return e.join("")}function Af(a,b){return a.length<4?vf(a):a[1]+Df(a.slice(1,-1),Ef(a,b))}function Bf(a,b){return a.length<3?wf(a):a[0]+Df((a.push(a[0]),a),Ef([a[a.length-2]].concat(a,[a[1]]),b))}function Cf(a,b){return a.length<3?vf(a):a[0]+Df(a,Ef(a,b))}function Df(a,b){if(b.length<1||a.length!=b.length&&a.length!=b.length+2)return vf(a);var c=a.length!=b.length,d="",e=a[0],f=a[1],g=b[0],h=g,i=1;if(c&&(d+="Q"+(f[0]-2*g[0]/3)+","+(f[1]-2*g[1]/3)+","+f[0]+","+f[1],e=a[1],i=2),b.length>1){h=b[1],f=a[i],i++,d+="C"+(e[0]+g[0])+","+(e[1]+g[1])+","+(f[0]-h[0])+","+(f[1]-h[1])+","+f[0]+","+f[1];for(var j=2;j<b.length;j++,i++)f=a[i],h=b[j],d+="S"+(f[0]-h[0])+","+(f[1]-h[1])+","+f[0]+","+f[1]}if(c){var k=a[i];d+="Q"+(f[0]+2*h[0]/3)+","+(f[1]+2*h[1]/3)+","+k[0]+","+k[1]}return d}function Ef(a,b){for(var c,d=[],e=(1-b)/2,f=a[0],g=a[1],h=1,i=a.length;++h<i;)c=f,f=g,g=a[h],d.push([e*(g[0]-c[0]),e*(g[1]-c[1])]);return d}function Ff(a){if(a.length<3)return vf(a);var b=1,c=a.length,d=a[0],e=d[0],f=d[1],g=[e,e,e,(d=a[1])[0]],h=[f,f,f,d[1]],i=[e,",",f,"L",Jf(Ki,g),",",Jf(Ki,h)];for(a.push(a[c-1]);++b<=c;)d=a[b],g.shift(),g.push(d[0]),h.shift(),h.push(d[1]),Kf(i,g,h);return a.pop(),i.push("L",d),i.join("")}function Gf(a){if(a.length<4)return vf(a);for(var b,c=[],d=-1,e=a.length,f=[0],g=[0];++d<3;)b=a[d],f.push(b[0]),g.push(b[1]);for(c.push(Jf(Ki,f)+","+Jf(Ki,g)),--d;++d<e;)b=a[d],f.shift(),f.push(b[0]),g.shift(),g.push(b[1]),Kf(c,f,g);return c.join("")}function Hf(a){for(var b,c,d=-1,e=a.length,f=e+4,g=[],h=[];++d<4;)c=a[d%e],g.push(c[0]),h.push(c[1]);for(b=[Jf(Ki,g),",",Jf(Ki,h)],--d;++d<f;)c=a[d%e],g.shift(),g.push(c[0]),h.shift(),h.push(c[1]),Kf(b,g,h);return b.join("")}function If(a,b){var c=a.length-1;if(c)for(var d,e,f=a[0][0],g=a[0][1],h=a[c][0]-f,i=a[c][1]-g,j=-1;++j<=c;)d=a[j],e=j/c,d[0]=b*d[0]+(1-b)*(f+e*h),d[1]=b*d[1]+(1-b)*(g+e*i);return Ff(a)}function Jf(a,b){return a[0]*b[0]+a[1]*b[1]+a[2]*b[2]+a[3]*b[3]}function Kf(a,b,c){a.push("C",Jf(Ii,b),",",Jf(Ii,c),",",Jf(Ji,b),",",Jf(Ji,c),",",Jf(Ki,b),",",Jf(Ki,c))}function Lf(a,b){return(b[1]-a[1])/(b[0]-a[0])}function Mf(a){for(var b=0,c=a.length-1,d=[],e=a[0],f=a[1],g=d[0]=Lf(e,f);++b<c;)d[b]=(g+(g=Lf(e=f,f=a[b+1])))/2;return d[b]=g,d}function Nf(a){for(var b,c,d,e,f=[],g=Mf(a),h=-1,i=a.length-1;++h<i;)b=Lf(a[h],a[h+1]),ug(b)<Lg?g[h]=g[h+1]=0:(c=g[h]/b,d=g[h+1]/b,e=c*c+d*d,e>9&&(e=3*b/Math.sqrt(e),
3
- g[h]=e*c,g[h+1]=e*d));for(h=-1;++h<=i;)e=(a[Math.min(i,h+1)][0]-a[Math.max(0,h-1)][0])/(6*(1+g[h]*g[h])),f.push([e||0,g[h]*e||0]);return f}function Of(a){return a.length<3?vf(a):a[0]+Df(a,Nf(a))}function Pf(a){for(var b,c,d,e=-1,f=a.length;++e<f;)b=a[e],c=b[0],d=b[1]-Qg,b[0]=c*Math.cos(d),b[1]=c*Math.sin(d);return a}function Qf(a){function b(b){function i(){p.push("M",h(a(r),l),k,j(a(q.reverse()),l),"Z")}for(var m,n,o,p=[],q=[],r=[],s=-1,t=b.length,u=Ba(c),v=Ba(e),w=c===d?function(){return n}:Ba(d),x=e===f?function(){return o}:Ba(f);++s<t;)g.call(this,m=b[s],s)?(q.push([n=+u.call(this,m,s),o=+v.call(this,m,s)]),r.push([+w.call(this,m,s),+x.call(this,m,s)])):q.length&&(i(),q=[],r=[]);return q.length&&i(),p.length?p.join(""):null}var c=Dc,d=Dc,e=0,f=Ec,g=Eb,h=vf,i=h.key,j=h,k="L",l=.7;return b.x=function(a){return arguments.length?(c=d=a,b):d},b.x0=function(a){return arguments.length?(c=a,b):c},b.x1=function(a){return arguments.length?(d=a,b):d},b.y=function(a){return arguments.length?(e=f=a,b):f},b.y0=function(a){return arguments.length?(e=a,b):e},b.y1=function(a){return arguments.length?(f=a,b):f},b.defined=function(a){return arguments.length?(g=a,b):g},b.interpolate=function(a){return arguments.length?(i="function"==typeof a?h=a:(h=Hi.get(a)||vf).key,j=h.reverse||h,k=h.closed?"M":"L",b):i},b.tension=function(a){return arguments.length?(l=a,b):l},b}function Rf(a){return a.radius}function Sf(a){return[a.x,a.y]}function Tf(a){return function(){var b=a.apply(this,arguments),c=b[0],d=b[1]-Qg;return[c*Math.cos(d),c*Math.sin(d)]}}function Uf(){return 64}function Vf(){return"circle"}function Wf(a){var b=Math.sqrt(a/Ng);return"M0,"+b+"A"+b+","+b+" 0 1,1 0,"+-b+"A"+b+","+b+" 0 1,1 0,"+b+"Z"}function Xf(a){return function(){var b,c,d;(b=this[a])&&(d=b[c=b.active])&&(d.timer.c=null,d.timer.t=NaN,--b.count?delete b[c]:delete this[a],b.active+=.5,d.event&&d.event.interrupt.call(this,this.__data__,d.index))}}function Yf(a,b,c){return zg(a,Ri),a.namespace=b,a.id=c,a}function Zf(a,b,c,d){var e=a.id,f=a.namespace;return S(a,"function"==typeof c?function(a,g,h){a[f][e].tween.set(b,d(c.call(a,a.__data__,g,h)))}:(c=d(c),function(a){a[f][e].tween.set(b,c)}))}function $f(a){return null==a&&(a=""),function(){this.textContent=a}}function _f(a){return null==a?"__transition__":"__transition_"+a+"__"}function ag(a,b,c,d,e){function f(a){var b=p.delay;return j.t=b+i,a>=b?g(a-b):void(j.c=g)}function g(c){var e=o.active,f=o[e];f&&(f.timer.c=null,f.timer.t=NaN,--o.count,delete o[e],f.event&&f.event.interrupt.call(a,a.__data__,f.index));for(var g in o)if(d>+g){var k=o[g];k.timer.c=null,k.timer.t=NaN,--o.count,delete o[g]}j.c=h,Ga(function(){return j.c&&h(c||1)&&(j.c=null,j.t=NaN),1},0,i),o.active=d,p.event&&p.event.start.call(a,a.__data__,b),n=[],p.tween.forEach(function(c,d){(d=d.call(a,a.__data__,b))&&n.push(d)}),m=p.ease,l=p.duration}function h(e){for(var f=e/l,g=m(f),h=n.length;h>0;)n[--h].call(a,g);return f>=1?(p.event&&p.event.end.call(a,a.__data__,b),--o.count?delete o[d]:delete a[c],1):void 0}var i,j,l,m,n,o=a[c]||(a[c]={active:0,count:0}),p=o[d];p||(i=e.time,j=Ga(f,0,i),p=o[d]={tween:new k,time:i,timer:j,delay:e.delay,duration:e.duration,ease:e.ease,index:b},e=null,++o.count)}function bg(a,b,c){a.attr("transform",function(a){var d=b(a);return"translate("+(isFinite(d)?d:c(a))+",0)"})}function cg(a,b,c){a.attr("transform",function(a){var d=b(a);return"translate(0,"+(isFinite(d)?d:c(a))+")"})}function dg(a){return a.toISOString()}function eg(a,b,c){function d(b){return a(b)}function e(a,c){var d=a[1]-a[0],e=d/c,f=ig.bisect($i,e);return f==$i.length?[b.year,$e(a.map(function(a){return a/31536e6}),c)[2]]:f?b[e/$i[f-1]<$i[f]/e?f-1:f]:[bj,$e(a,c)[2]]}return d.invert=function(b){return fg(a.invert(b))},d.domain=function(b){return arguments.length?(a.domain(b),d):a.domain().map(fg)},d.nice=function(a,b){function c(c){return!isNaN(c)&&!a.range(c,fg(+c+1),b).length}var f=d.domain(),g=Re(f),h=null==a?e(g,10):"number"==typeof a&&e(g,a);return h&&(a=h[0],b=h[1]),d.domain(Ue(f,b>1?{floor:function(b){for(;c(b=a.floor(b));)b=fg(b-1);return b},ceil:function(b){for(;c(b=a.ceil(b));)b=fg(+b+1);return b}}:a))},d.ticks=function(a,b){var c=Re(d.domain()),f=null==a?e(c,10):"number"==typeof a?e(c,a):!a.range&&[{range:a},b];return f&&(a=f[0],b=f[1]),a.range(c[0],fg(+c[1]+1),1>b?1:b)},d.tickFormat=function(){return c},d.copy=function(){return eg(a.copy(),b,c)},Ye(d,a)}function fg(a){return new Date(a)}function gg(a){return JSON.parse(a.responseText)}function hg(a){var b=lg.createRange();return b.selectNode(lg.body),b.createContextualFragment(a.responseText)}var ig={version:"3.5.16"},jg=[].slice,kg=function(a){return jg.call(a)},lg=this.document;if(lg)try{kg(lg.documentElement.childNodes)[0].nodeType}catch(mg){kg=function(a){for(var b=a.length,c=new Array(b);b--;)c[b]=a[b];return c}}if(Date.now||(Date.now=function(){return+new Date}),lg)try{lg.createElement("DIV").style.setProperty("opacity",0,"")}catch(ng){var og=this.Element.prototype,pg=og.setAttribute,qg=og.setAttributeNS,rg=this.CSSStyleDeclaration.prototype,sg=rg.setProperty;og.setAttribute=function(a,b){pg.call(this,a,b+"")},og.setAttributeNS=function(a,b,c){qg.call(this,a,b,c+"")},rg.setProperty=function(a,b,c){sg.call(this,a,b+"",c)}}ig.ascending=d,ig.descending=function(a,b){return a>b?-1:b>a?1:b>=a?0:NaN},ig.min=function(a,b){var c,d,e=-1,f=a.length;if(1===arguments.length){for(;++e<f;)if(null!=(d=a[e])&&d>=d){c=d;break}for(;++e<f;)null!=(d=a[e])&&c>d&&(c=d)}else{for(;++e<f;)if(null!=(d=b.call(a,a[e],e))&&d>=d){c=d;break}for(;++e<f;)null!=(d=b.call(a,a[e],e))&&c>d&&(c=d)}return c},ig.max=function(a,b){var c,d,e=-1,f=a.length;if(1===arguments.length){for(;++e<f;)if(null!=(d=a[e])&&d>=d){c=d;break}for(;++e<f;)null!=(d=a[e])&&d>c&&(c=d)}else{for(;++e<f;)if(null!=(d=b.call(a,a[e],e))&&d>=d){c=d;break}for(;++e<f;)null!=(d=b.call(a,a[e],e))&&d>c&&(c=d)}return c},ig.extent=function(a,b){var c,d,e,f=-1,g=a.length;if(1===arguments.length){for(;++f<g;)if(null!=(d=a[f])&&d>=d){c=e=d;break}for(;++f<g;)null!=(d=a[f])&&(c>d&&(c=d),d>e&&(e=d))}else{for(;++f<g;)if(null!=(d=b.call(a,a[f],f))&&d>=d){c=e=d;break}for(;++f<g;)null!=(d=b.call(a,a[f],f))&&(c>d&&(c=d),d>e&&(e=d))}return[c,e]},ig.sum=function(a,b){var c,d=0,e=a.length,g=-1;if(1===arguments.length)for(;++g<e;)f(c=+a[g])&&(d+=c);else for(;++g<e;)f(c=+b.call(a,a[g],g))&&(d+=c);return d},ig.mean=function(a,b){var c,d=0,g=a.length,h=-1,i=g;if(1===arguments.length)for(;++h<g;)f(c=e(a[h]))?d+=c:--i;else for(;++h<g;)f(c=e(b.call(a,a[h],h)))?d+=c:--i;return i?d/i:void 0},ig.quantile=function(a,b){var c=(a.length-1)*b+1,d=Math.floor(c),e=+a[d-1],f=c-d;return f?e+f*(a[d]-e):e},ig.median=function(a,b){var c,g=[],h=a.length,i=-1;if(1===arguments.length)for(;++i<h;)f(c=e(a[i]))&&g.push(c);else for(;++i<h;)f(c=e(b.call(a,a[i],i)))&&g.push(c);return g.length?ig.quantile(g.sort(d),.5):void 0},ig.variance=function(a,b){var c,d,g=a.length,h=0,i=0,j=-1,k=0;if(1===arguments.length)for(;++j<g;)f(c=e(a[j]))&&(d=c-h,h+=d/++k,i+=d*(c-h));else for(;++j<g;)f(c=e(b.call(a,a[j],j)))&&(d=c-h,h+=d/++k,i+=d*(c-h));return k>1?i/(k-1):void 0},ig.deviation=function(){var a=ig.variance.apply(this,arguments);return a?Math.sqrt(a):a};var tg=g(d);ig.bisectLeft=tg.left,ig.bisect=ig.bisectRight=tg.right,ig.bisector=function(a){return g(1===a.length?function(b,c){return d(a(b),c)}:a)},ig.shuffle=function(a,b,c){(f=arguments.length)<3&&(c=a.length,2>f&&(b=0));for(var d,e,f=c-b;f;)e=Math.random()*f--|0,d=a[f+b],a[f+b]=a[e+b],a[e+b]=d;return a},ig.permute=function(a,b){for(var c=b.length,d=new Array(c);c--;)d[c]=a[b[c]];return d},ig.pairs=function(a){for(var b,c=0,d=a.length-1,e=a[0],f=new Array(0>d?0:d);d>c;)f[c]=[b=e,e=a[++c]];return f},ig.transpose=function(a){if(!(e=a.length))return[];for(var b=-1,c=ig.min(a,h),d=new Array(c);++b<c;)for(var e,f=-1,g=d[b]=new Array(e);++f<e;)g[f]=a[f][b];return d},ig.zip=function(){return ig.transpose(arguments)},ig.keys=function(a){var b=[];for(var c in a)b.push(c);return b},ig.values=function(a){var b=[];for(var c in a)b.push(a[c]);return b},ig.entries=function(a){var b=[];for(var c in a)b.push({key:c,value:a[c]});return b},ig.merge=function(a){for(var b,c,d,e=a.length,f=-1,g=0;++f<e;)g+=a[f].length;for(c=new Array(g);--e>=0;)for(d=a[e],b=d.length;--b>=0;)c[--g]=d[b];return c};var ug=Math.abs;ig.range=function(a,b,c){if(arguments.length<3&&(c=1,arguments.length<2&&(b=a,a=0)),(b-a)/c===1/0)throw new Error("infinite range");var d,e=[],f=i(ug(c)),g=-1;if(a*=f,b*=f,c*=f,0>c)for(;(d=a+c*++g)>b;)e.push(d/f);else for(;(d=a+c*++g)<b;)e.push(d/f);return e},ig.map=function(a,b){var c=new k;if(a instanceof k)a.forEach(function(a,b){c.set(a,b)});else if(Array.isArray(a)){var d,e=-1,f=a.length;if(1===arguments.length)for(;++e<f;)c.set(e,a[e]);else for(;++e<f;)c.set(b.call(a,d=a[e],e),d)}else for(var g in a)c.set(g,a[g]);return c};var vg="__proto__",wg="\x00";j(k,{has:n,get:function(a){return this._[l(a)]},set:function(a,b){return this._[l(a)]=b},remove:o,keys:p,values:function(){var a=[];for(var b in this._)a.push(this._[b]);return a},entries:function(){var a=[];for(var b in this._)a.push({key:m(b),value:this._[b]});return a},size:q,empty:r,forEach:function(a){for(var b in this._)a.call(this,m(b),this._[b])}}),ig.nest=function(){function a(b,g,h){if(h>=f.length)return d?d.call(e,g):c?g.sort(c):g;for(var i,j,l,m,n=-1,o=g.length,p=f[h++],q=new k;++n<o;)(m=q.get(i=p(j=g[n])))?m.push(j):q.set(i,[j]);return b?(j=b(),l=function(c,d){j.set(c,a(b,d,h))}):(j={},l=function(c,d){j[c]=a(b,d,h)}),q.forEach(l),j}function b(a,c){if(c>=f.length)return a;var d=[],e=g[c++];return a.forEach(function(a,e){d.push({key:a,values:b(e,c)})}),e?d.sort(function(a,b){return e(a.key,b.key)}):d}var c,d,e={},f=[],g=[];return e.map=function(b,c){return a(c,b,0)},e.entries=function(c){return b(a(ig.map,c,0),0)},e.key=function(a){return f.push(a),e},e.sortKeys=function(a){return g[f.length-1]=a,e},e.sortValues=function(a){return c=a,e},e.rollup=function(a){return d=a,e},e},ig.set=function(a){var b=new s;if(a)for(var c=0,d=a.length;d>c;++c)b.add(a[c]);return b},j(s,{has:n,add:function(a){return this._[l(a+="")]=!0,a},remove:o,values:p,size:q,empty:r,forEach:function(a){for(var b in this._)a.call(this,m(b))}}),ig.behavior={},ig.rebind=function(a,b){for(var c,d=1,e=arguments.length;++d<e;)a[c=arguments[d]]=u(a,b,b[c]);return a};var xg=["webkit","ms","moz","Moz","o","O"];ig.dispatch=function(){for(var a=new x,b=-1,c=arguments.length;++b<c;)a[arguments[b]]=y(a);return a},x.prototype.on=function(a,b){var c=a.indexOf("."),d="";if(c>=0&&(d=a.slice(c+1),a=a.slice(0,c)),a)return arguments.length<2?this[a].on(d):this[a].on(d,b);if(2===arguments.length){if(null==b)for(a in this)this.hasOwnProperty(a)&&this[a].on(d,null);return this}},ig.event=null,ig.requote=function(a){return a.replace(yg,"\\$&")};var yg=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,zg={}.__proto__?function(a,b){a.__proto__=b}:function(a,b){for(var c in b)a[c]=b[c]},Ag=function(a,b){return b.querySelector(a)},Bg=function(a,b){return b.querySelectorAll(a)},Cg=function(a,b){var c=a.matches||a[v(a,"matchesSelector")];return(Cg=function(a,b){return c.call(a,b)})(a,b)};"function"==typeof Sizzle&&(Ag=function(a,b){return Sizzle(a,b)[0]||null},Bg=Sizzle,Cg=Sizzle.matchesSelector),ig.selection=function(){return ig.select(lg.documentElement)};var Dg=ig.selection.prototype=[];Dg.select=function(a){var b,c,d,e,f=[];a=D(a);for(var g=-1,h=this.length;++g<h;){f.push(b=[]),b.parentNode=(d=this[g]).parentNode;for(var i=-1,j=d.length;++i<j;)(e=d[i])?(b.push(c=a.call(e,e.__data__,i,g)),c&&"__data__"in e&&(c.__data__=e.__data__)):b.push(null)}return C(f)},Dg.selectAll=function(a){var b,c,d=[];a=E(a);for(var e=-1,f=this.length;++e<f;)for(var g=this[e],h=-1,i=g.length;++h<i;)(c=g[h])&&(d.push(b=kg(a.call(c,c.__data__,h,e))),b.parentNode=c);return C(d)};var Eg="http://www.w3.org/1999/xhtml",Fg={svg:"http://www.w3.org/2000/svg",xhtml:Eg,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};ig.ns={prefix:Fg,qualify:function(a){var b=a.indexOf(":"),c=a;return b>=0&&"xmlns"!==(c=a.slice(0,b))&&(a=a.slice(b+1)),Fg.hasOwnProperty(c)?{space:Fg[c],local:a}:a}},Dg.attr=function(a,b){if(arguments.length<2){if("string"==typeof a){var c=this.node();return a=ig.ns.qualify(a),a.local?c.getAttributeNS(a.space,a.local):c.getAttribute(a)}for(b in a)this.each(F(b,a[b]));return this}return this.each(F(a,b))},Dg.classed=function(a,b){if(arguments.length<2){if("string"==typeof a){var c=this.node(),d=(a=I(a)).length,e=-1;if(b=c.classList){for(;++e<d;)if(!b.contains(a[e]))return!1}else for(b=c.getAttribute("class");++e<d;)if(!H(a[e]).test(b))return!1;return!0}for(b in a)this.each(J(b,a[b]));return this}return this.each(J(a,b))},Dg.style=function(a,b,d){var e=arguments.length;if(3>e){if("string"!=typeof a){2>e&&(b="");for(d in a)this.each(L(d,a[d],b));return this}if(2>e){var f=this.node();return c(f).getComputedStyle(f,null).getPropertyValue(a)}d=""}return this.each(L(a,b,d))},Dg.property=function(a,b){if(arguments.length<2){if("string"==typeof a)return this.node()[a];for(b in a)this.each(M(b,a[b]));return this}return this.each(M(a,b))},Dg.text=function(a){return arguments.length?this.each("function"==typeof a?function(){var b=a.apply(this,arguments);this.textContent=null==b?"":b}:null==a?function(){this.textContent=""}:function(){this.textContent=a}):this.node().textContent},Dg.html=function(a){return arguments.length?this.each("function"==typeof a?function(){var b=a.apply(this,arguments);this.innerHTML=null==b?"":b}:null==a?function(){this.innerHTML=""}:function(){this.innerHTML=a}):this.node().innerHTML},Dg.append=function(a){return a=N(a),this.select(function(){return this.appendChild(a.apply(this,arguments))})},Dg.insert=function(a,b){return a=N(a),b=D(b),this.select(function(){return this.insertBefore(a.apply(this,arguments),b.apply(this,arguments)||null)})},Dg.remove=function(){return this.each(O)},Dg.data=function(a,b){function c(a,c){var d,e,f,g=a.length,l=c.length,m=Math.min(g,l),n=new Array(l),o=new Array(l),p=new Array(g);if(b){var q,r=new k,s=new Array(g);for(d=-1;++d<g;)(e=a[d])&&(r.has(q=b.call(e,e.__data__,d))?p[d]=e:r.set(q,e),s[d]=q);for(d=-1;++d<l;)(e=r.get(q=b.call(c,f=c[d],d)))?e!==!0&&(n[d]=e,e.__data__=f):o[d]=P(f),r.set(q,!0);for(d=-1;++d<g;)d in s&&r.get(s[d])!==!0&&(p[d]=a[d])}else{for(d=-1;++d<m;)e=a[d],f=c[d],e?(e.__data__=f,n[d]=e):o[d]=P(f);for(;l>d;++d)o[d]=P(c[d]);for(;g>d;++d)p[d]=a[d]}o.update=n,o.parentNode=n.parentNode=p.parentNode=a.parentNode,h.push(o),i.push(n),j.push(p)}var d,e,f=-1,g=this.length;if(!arguments.length){for(a=new Array(g=(d=this[0]).length);++f<g;)(e=d[f])&&(a[f]=e.__data__);return a}var h=T([]),i=C([]),j=C([]);if("function"==typeof a)for(;++f<g;)c(d=this[f],a.call(d,d.parentNode.__data__,f));else for(;++f<g;)c(d=this[f],a);return i.enter=function(){return h},i.exit=function(){return j},i},Dg.datum=function(a){return arguments.length?this.property("__data__",a):this.property("__data__")},Dg.filter=function(a){var b,c,d,e=[];"function"!=typeof a&&(a=Q(a));for(var f=0,g=this.length;g>f;f++){e.push(b=[]),b.parentNode=(c=this[f]).parentNode;for(var h=0,i=c.length;i>h;h++)(d=c[h])&&a.call(d,d.__data__,h,f)&&b.push(d)}return C(e)},Dg.order=function(){for(var a=-1,b=this.length;++a<b;)for(var c,d=this[a],e=d.length-1,f=d[e];--e>=0;)(c=d[e])&&(f&&f!==c.nextSibling&&f.parentNode.insertBefore(c,f),f=c);return this},Dg.sort=function(a){a=R.apply(this,arguments);for(var b=-1,c=this.length;++b<c;)this[b].sort(a);return this.order()},Dg.each=function(a){return S(this,function(b,c,d){a.call(b,b.__data__,c,d)})},Dg.call=function(a){var b=kg(arguments);return a.apply(b[0]=this,b),this},Dg.empty=function(){return!this.node()},Dg.node=function(){for(var a=0,b=this.length;b>a;a++)for(var c=this[a],d=0,e=c.length;e>d;d++){var f=c[d];if(f)return f}return null},Dg.size=function(){var a=0;return S(this,function(){++a}),a};var Gg=[];ig.selection.enter=T,ig.selection.enter.prototype=Gg,Gg.append=Dg.append,Gg.empty=Dg.empty,Gg.node=Dg.node,Gg.call=Dg.call,Gg.size=Dg.size,Gg.select=function(a){for(var b,c,d,e,f,g=[],h=-1,i=this.length;++h<i;){d=(e=this[h]).update,g.push(b=[]),b.parentNode=e.parentNode;for(var j=-1,k=e.length;++j<k;)(f=e[j])?(b.push(d[j]=c=a.call(e.parentNode,f.__data__,j,h)),c.__data__=f.__data__):b.push(null)}return C(g)},Gg.insert=function(a,b){return arguments.length<2&&(b=U(this)),Dg.insert.call(this,a,b)},ig.select=function(b){var c;return"string"==typeof b?(c=[Ag(b,lg)],c.parentNode=lg.documentElement):(c=[b],c.parentNode=a(b)),C([c])},ig.selectAll=function(a){var b;return"string"==typeof a?(b=kg(Bg(a,lg)),b.parentNode=lg.documentElement):(b=kg(a),b.parentNode=null),C([b])},Dg.on=function(a,b,c){var d=arguments.length;if(3>d){if("string"!=typeof a){2>d&&(b=!1);for(c in a)this.each(V(c,a[c],b));return this}if(2>d)return(d=this.node()["__on"+a])&&d._;c=!1}return this.each(V(a,b,c))};var Hg=ig.map({mouseenter:"mouseover",mouseleave:"mouseout"});lg&&Hg.forEach(function(a){"on"+a in lg&&Hg.remove(a)});var Ig,Jg=0;ig.mouse=function(a){return Z(a,A())};var Kg=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;ig.touch=function(a,b,c){if(arguments.length<3&&(c=b,b=A().changedTouches),b)for(var d,e=0,f=b.length;f>e;++e)if((d=b[e]).identifier===c)return Z(a,d)},ig.behavior.drag=function(){function a(){this.on("mousedown.drag",f).on("touchstart.drag",g)}function b(a,b,c,f,g){return function(){function h(){var a,c,d=b(m,p);d&&(a=d[0]-t[0],c=d[1]-t[1],o|=a|c,t=d,n({type:"drag",x:d[0]+j[0],y:d[1]+j[1],dx:a,dy:c}))}function i(){b(m,p)&&(r.on(f+q,null).on(g+q,null),s(o),n({type:"dragend"}))}var j,k=this,l=ig.event.target.correspondingElement||ig.event.target,m=k.parentNode,n=d.of(k,arguments),o=0,p=a(),q=".drag"+(null==p?"":"-"+p),r=ig.select(c(l)).on(f+q,h).on(g+q,i),s=Y(l),t=b(m,p);e?(j=e.apply(k,arguments),j=[j.x-t[0],j.y-t[1]]):j=[0,0],n({type:"dragstart"})}}var d=B(a,"drag","dragstart","dragend"),e=null,f=b(w,ig.mouse,c,"mousemove","mouseup"),g=b($,ig.touch,t,"touchmove","touchend");return a.origin=function(b){return arguments.length?(e=b,a):e},ig.rebind(a,d,"on")},ig.touches=function(a,b){return arguments.length<2&&(b=A().touches),b?kg(b).map(function(b){var c=Z(a,b);return c.identifier=b.identifier,c}):[]};var Lg=1e-6,Mg=Lg*Lg,Ng=Math.PI,Og=2*Ng,Pg=Og-Lg,Qg=Ng/2,Rg=Ng/180,Sg=180/Ng,Tg=Math.SQRT2,Ug=2,Vg=4;ig.interpolateZoom=function(a,b){var c,d,e=a[0],f=a[1],g=a[2],h=b[0],i=b[1],j=b[2],k=h-e,l=i-f,m=k*k+l*l;if(Mg>m)d=Math.log(j/g)/Tg,c=function(a){return[e+a*k,f+a*l,g*Math.exp(Tg*a*d)]};else{var n=Math.sqrt(m),o=(j*j-g*g+Vg*m)/(2*g*Ug*n),p=(j*j-g*g-Vg*m)/(2*j*Ug*n),q=Math.log(Math.sqrt(o*o+1)-o),r=Math.log(Math.sqrt(p*p+1)-p);d=(r-q)/Tg,c=function(a){var b=a*d,c=ea(q),h=g/(Ug*n)*(c*fa(Tg*b+q)-da(q));return[e+h*k,f+h*l,g*c/ea(Tg*b+q)]}}return c.duration=1e3*d,c},ig.behavior.zoom=function(){function a(a){a.on(F,l).on(Xg+".zoom",n).on("dblclick.zoom",o).on(I,m)}function b(a){return[(a[0]-y.x)/y.k,(a[1]-y.y)/y.k]}function d(a){return[a[0]*y.k+y.x,a[1]*y.k+y.y]}function e(a){y.k=Math.max(C[0],Math.min(C[1],a))}function f(a,b){b=d(b),y.x+=a[0]-b[0],y.y+=a[1]-b[1]}function g(b,c,d,g){b.__chart__={x:y.x,y:y.y,k:y.k},e(Math.pow(2,g)),f(q=c,d),b=ig.select(b),D>0&&(b=b.transition().duration(D)),b.call(a.event)}function h(){v&&v.domain(u.range().map(function(a){return(a-y.x)/y.k}).map(u.invert)),x&&x.domain(w.range().map(function(a){return(a-y.y)/y.k}).map(w.invert))}function i(a){E++||a({type:"zoomstart"})}function j(a){h(),a({type:"zoom",scale:y.k,translate:[y.x,y.y]})}function k(a){--E||(a({type:"zoomend"}),q=null)}function l(){function a(){h=1,f(ig.mouse(e),m),j(g)}function d(){l.on(G,null).on(H,null),n(h),k(g)}var e=this,g=J.of(e,arguments),h=0,l=ig.select(c(e)).on(G,a).on(H,d),m=b(ig.mouse(e)),n=Y(e);Qi.call(e),i(g)}function m(){function a(){var a=ig.touches(o);return n=y.k,a.forEach(function(a){a.identifier in q&&(q[a.identifier]=b(a))}),a}function c(){var b=ig.event.target;ig.select(b).on(u,d).on(v,h),w.push(b);for(var c=ig.event.changedTouches,e=0,f=c.length;f>e;++e)q[c[e].identifier]=null;var i=a(),j=Date.now();if(1===i.length){if(500>j-t){var k=i[0];g(o,k,q[k.identifier],Math.floor(Math.log(y.k)/Math.LN2)+1),z()}t=j}else if(i.length>1){var k=i[0],l=i[1],m=k[0]-l[0],n=k[1]-l[1];r=m*m+n*n}}function d(){var a,b,c,d,g=ig.touches(o);Qi.call(o);for(var h=0,i=g.length;i>h;++h,d=null)if(c=g[h],d=q[c.identifier]){if(b)break;a=c,b=d}if(d){var k=(k=c[0]-a[0])*k+(k=c[1]-a[1])*k,l=r&&Math.sqrt(k/r);a=[(a[0]+c[0])/2,(a[1]+c[1])/2],b=[(b[0]+d[0])/2,(b[1]+d[1])/2],e(l*n)}t=null,f(a,b),j(p)}function h(){if(ig.event.touches.length){for(var b=ig.event.changedTouches,c=0,d=b.length;d>c;++c)delete q[b[c].identifier];for(var e in q)return void a()}ig.selectAll(w).on(s,null),x.on(F,l).on(I,m),A(),k(p)}var n,o=this,p=J.of(o,arguments),q={},r=0,s=".zoom-"+ig.event.changedTouches[0].identifier,u="touchmove"+s,v="touchend"+s,w=[],x=ig.select(o),A=Y(o);c(),i(p),x.on(F,null).on(I,c)}function n(){var a=J.of(this,arguments);s?clearTimeout(s):(Qi.call(this),p=b(q=r||ig.mouse(this)),i(a)),s=setTimeout(function(){s=null,k(a)},50),z(),e(Math.pow(2,.002*Wg())*y.k),f(q,p),j(a)}function o(){var a=ig.mouse(this),c=Math.log(y.k)/Math.LN2;g(this,a,b(a),ig.event.shiftKey?Math.ceil(c)-1:Math.floor(c)+1)}var p,q,r,s,t,u,v,w,x,y={x:0,y:0,k:1},A=[960,500],C=Yg,D=250,E=0,F="mousedown.zoom",G="mousemove.zoom",H="mouseup.zoom",I="touchstart.zoom",J=B(a,"zoomstart","zoom","zoomend");return Xg||(Xg="onwheel"in lg?(Wg=function(){return-ig.event.deltaY*(ig.event.deltaMode?120:1)},"wheel"):"onmousewheel"in lg?(Wg=function(){return ig.event.wheelDelta},"mousewheel"):(Wg=function(){return-ig.event.detail},"MozMousePixelScroll")),a.event=function(a){a.each(function(){var a=J.of(this,arguments),b=y;Oi?ig.select(this).transition().each("start.zoom",function(){y=this.__chart__||{x:0,y:0,k:1},i(a)}).tween("zoom:zoom",function(){var c=A[0],d=A[1],e=q?q[0]:c/2,f=q?q[1]:d/2,g=ig.interpolateZoom([(e-y.x)/y.k,(f-y.y)/y.k,c/y.k],[(e-b.x)/b.k,(f-b.y)/b.k,c/b.k]);return function(b){var d=g(b),h=c/d[2];this.__chart__=y={x:e-d[0]*h,y:f-d[1]*h,k:h},j(a)}}).each("interrupt.zoom",function(){k(a)}).each("end.zoom",function(){k(a)}):(this.__chart__=y,i(a),j(a),k(a))})},a.translate=function(b){return arguments.length?(y={x:+b[0],y:+b[1],k:y.k},h(),a):[y.x,y.y]},a.scale=function(b){return arguments.length?(y={x:y.x,y:y.y,k:null},e(+b),h(),a):y.k},a.scaleExtent=function(b){return arguments.length?(C=null==b?Yg:[+b[0],+b[1]],a):C},a.center=function(b){return arguments.length?(r=b&&[+b[0],+b[1]],a):r},a.size=function(b){return arguments.length?(A=b&&[+b[0],+b[1]],a):A},a.duration=function(b){return arguments.length?(D=+b,a):D},a.x=function(b){return arguments.length?(v=b,u=b.copy(),y={x:0,y:0,k:1},a):v},a.y=function(b){return arguments.length?(x=b,w=b.copy(),y={x:0,y:0,k:1},a):x},ig.rebind(a,J,"on")};var Wg,Xg,Yg=[0,1/0];ig.color=ha,ha.prototype.toString=function(){return this.rgb()+""},ig.hsl=ia;var Zg=ia.prototype=new ha;Zg.brighter=function(a){return a=Math.pow(.7,arguments.length?a:1),new ia(this.h,this.s,this.l/a)},Zg.darker=function(a){return a=Math.pow(.7,arguments.length?a:1),new ia(this.h,this.s,a*this.l)},Zg.rgb=function(){return ja(this.h,this.s,this.l)},ig.hcl=ka;var $g=ka.prototype=new ha;$g.brighter=function(a){return new ka(this.h,this.c,Math.min(100,this.l+_g*(arguments.length?a:1)))},$g.darker=function(a){return new ka(this.h,this.c,Math.max(0,this.l-_g*(arguments.length?a:1)))},$g.rgb=function(){return la(this.h,this.c,this.l).rgb()},ig.lab=ma;var _g=18,ah=.95047,bh=1,ch=1.08883,dh=ma.prototype=new ha;dh.brighter=function(a){return new ma(Math.min(100,this.l+_g*(arguments.length?a:1)),this.a,this.b)},dh.darker=function(a){return new ma(Math.max(0,this.l-_g*(arguments.length?a:1)),this.a,this.b)},dh.rgb=function(){return na(this.l,this.a,this.b)},ig.rgb=sa;var eh=sa.prototype=new ha;eh.brighter=function(a){a=Math.pow(.7,arguments.length?a:1);var b=this.r,c=this.g,d=this.b,e=30;return b||c||d?(b&&e>b&&(b=e),c&&e>c&&(c=e),d&&e>d&&(d=e),new sa(Math.min(255,b/a),Math.min(255,c/a),Math.min(255,d/a))):new sa(e,e,e)},eh.darker=function(a){return a=Math.pow(.7,arguments.length?a:1),new sa(a*this.r,a*this.g,a*this.b)},eh.hsl=function(){return xa(this.r,this.g,this.b)},eh.toString=function(){return"#"+va(this.r)+va(this.g)+va(this.b)};var fh=ig.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,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});fh.forEach(function(a,b){fh.set(a,ta(b))}),ig.functor=Ba,ig.xhr=Ca(t),ig.dsv=function(a,b){function c(a,c,f){arguments.length<3&&(f=c,c=null);var g=Da(a,b,null==c?d:e(c),f);return g.row=function(a){return arguments.length?g.response(null==(c=a)?d:e(a)):c},g}function d(a){return c.parse(a.responseText)}function e(a){return function(b){return c.parse(b.responseText,a)}}function f(b){return b.map(g).join(a)}function g(a){return h.test(a)?'"'+a.replace(/\"/g,'""')+'"':a}var h=new RegExp('["'+a+"\n]"),i=a.charCodeAt(0);return c.parse=function(a,b){var d;return c.parseRows(a,function(a,c){if(d)return d(a,c-1);var e=new Function("d","return {"+a.map(function(a,b){return JSON.stringify(a)+": d["+b+"]"}).join(",")+"}");d=b?function(a,c){return b(e(a),c)}:e})},c.parseRows=function(a,b){function c(){if(k>=j)return g;if(e)return e=!1,f;var b=k;if(34===a.charCodeAt(b)){for(var c=b;c++<j;)if(34===a.charCodeAt(c)){if(34!==a.charCodeAt(c+1))break;++c}k=c+2;var d=a.charCodeAt(c+1);return 13===d?(e=!0,10===a.charCodeAt(c+2)&&++k):10===d&&(e=!0),a.slice(b+1,c).replace(/""/g,'"')}for(;j>k;){var d=a.charCodeAt(k++),h=1;if(10===d)e=!0;else if(13===d)e=!0,10===a.charCodeAt(k)&&(++k,++h);else if(d!==i)continue;return a.slice(b,k-h)}return a.slice(b)}for(var d,e,f={},g={},h=[],j=a.length,k=0,l=0;(d=c())!==g;){for(var m=[];d!==f&&d!==g;)m.push(d),d=c();b&&null==(m=b(m,l++))||h.push(m)}return h},c.format=function(b){if(Array.isArray(b[0]))return c.formatRows(b);var d=new s,e=[];return b.forEach(function(a){for(var b in a)d.has(b)||e.push(d.add(b))}),[e.map(g).join(a)].concat(b.map(function(b){return e.map(function(a){return g(b[a])}).join(a)})).join("\n")},c.formatRows=function(a){return a.map(f).join("\n")},c},ig.csv=ig.dsv(",","text/csv"),ig.tsv=ig.dsv(" ","text/tab-separated-values");var gh,hh,ih,jh,kh=this[v(this,"requestAnimationFrame")]||function(a){setTimeout(a,17)};ig.timer=function(){Ga.apply(this,arguments)},ig.timer.flush=function(){Ia(),Ja()},ig.round=function(a,b){return b?Math.round(a*(b=Math.pow(10,b)))/b:Math.round(a)};var lh=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(La);ig.formatPrefix=function(a,b){var c=0;return(a=+a)&&(0>a&&(a*=-1),b&&(a=ig.round(a,Ka(a,b))),c=1+Math.floor(1e-12+Math.log(a)/Math.LN10),c=Math.max(-24,Math.min(24,3*Math.floor((c-1)/3)))),lh[8+c/3]};var mh=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,nh=ig.map({b:function(a){return a.toString(2)},c:function(a){return String.fromCharCode(a)},o:function(a){return a.toString(8)},x:function(a){return a.toString(16)},X:function(a){return a.toString(16).toUpperCase()},g:function(a,b){return a.toPrecision(b)},e:function(a,b){return a.toExponential(b)},f:function(a,b){return a.toFixed(b)},r:function(a,b){return(a=ig.round(a,Ka(a,b))).toFixed(Math.max(0,Math.min(20,Ka(a*(1+1e-15),b))))}}),oh=ig.time={},ph=Date;Oa.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){qh.setUTCDate.apply(this._,arguments)},setDay:function(){qh.setUTCDay.apply(this._,arguments)},setFullYear:function(){qh.setUTCFullYear.apply(this._,arguments)},setHours:function(){qh.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){qh.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){qh.setUTCMinutes.apply(this._,arguments)},setMonth:function(){qh.setUTCMonth.apply(this._,arguments)},setSeconds:function(){qh.setUTCSeconds.apply(this._,arguments)},setTime:function(){qh.setTime.apply(this._,arguments)}};var qh=Date.prototype;oh.year=Pa(function(a){return a=oh.day(a),a.setMonth(0,1),a},function(a,b){a.setFullYear(a.getFullYear()+b)},function(a){return a.getFullYear()}),oh.years=oh.year.range,oh.years.utc=oh.year.utc.range,oh.day=Pa(function(a){var b=new ph(2e3,0);return b.setFullYear(a.getFullYear(),a.getMonth(),a.getDate()),b},function(a,b){a.setDate(a.getDate()+b)},function(a){return a.getDate()-1}),oh.days=oh.day.range,oh.days.utc=oh.day.utc.range,oh.dayOfYear=function(a){var b=oh.year(a);return Math.floor((a-b-6e4*(a.getTimezoneOffset()-b.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(a,b){b=7-b;var c=oh[a]=Pa(function(a){return(a=oh.day(a)).setDate(a.getDate()-(a.getDay()+b)%7),a},function(a,b){a.setDate(a.getDate()+7*Math.floor(b))},function(a){var c=oh.year(a).getDay();return Math.floor((oh.dayOfYear(a)+(c+b)%7)/7)-(c!==b)});oh[a+"s"]=c.range,oh[a+"s"].utc=c.utc.range,
4
- oh[a+"OfYear"]=function(a){var c=oh.year(a).getDay();return Math.floor((oh.dayOfYear(a)+(c+b)%7)/7)}}),oh.week=oh.sunday,oh.weeks=oh.sunday.range,oh.weeks.utc=oh.sunday.utc.range,oh.weekOfYear=oh.sundayOfYear;var rh={"-":"",_:" ",0:"0"},sh=/^\s*\d+/,th=/^%/;ig.locale=function(a){return{numberFormat:Ma(a),timeFormat:Ra(a)}};var uh=ig.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});ig.format=uh.numberFormat,ig.geo={},kb.prototype={s:0,t:0,add:function(a){lb(a,this.t,vh),lb(vh.s,this.s,this),this.s?this.t+=vh.t:this.s=vh.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var vh=new kb;ig.geo.stream=function(a,b){a&&wh.hasOwnProperty(a.type)?wh[a.type](a,b):mb(a,b)};var wh={Feature:function(a,b){mb(a.geometry,b)},FeatureCollection:function(a,b){for(var c=a.features,d=-1,e=c.length;++d<e;)mb(c[d].geometry,b)}},xh={Sphere:function(a,b){b.sphere()},Point:function(a,b){a=a.coordinates,b.point(a[0],a[1],a[2])},MultiPoint:function(a,b){for(var c=a.coordinates,d=-1,e=c.length;++d<e;)a=c[d],b.point(a[0],a[1],a[2])},LineString:function(a,b){nb(a.coordinates,b,0)},MultiLineString:function(a,b){for(var c=a.coordinates,d=-1,e=c.length;++d<e;)nb(c[d],b,0)},Polygon:function(a,b){ob(a.coordinates,b)},MultiPolygon:function(a,b){for(var c=a.coordinates,d=-1,e=c.length;++d<e;)ob(c[d],b)},GeometryCollection:function(a,b){for(var c=a.geometries,d=-1,e=c.length;++d<e;)mb(c[d],b)}};ig.geo.area=function(a){return yh=0,ig.geo.stream(a,Ah),yh};var yh,zh=new kb,Ah={sphere:function(){yh+=4*Ng},point:w,lineStart:w,lineEnd:w,polygonStart:function(){zh.reset(),Ah.lineStart=pb},polygonEnd:function(){var a=2*zh;yh+=0>a?4*Ng+a:a,Ah.lineStart=Ah.lineEnd=Ah.point=w}};ig.geo.bounds=function(){function a(a,b){t.push(u=[k=a,m=a]),l>b&&(l=b),b>n&&(n=b)}function b(b,c){var d=qb([b*Rg,c*Rg]);if(r){var e=sb(r,d),f=[e[1],-e[0],0],g=sb(f,e);vb(g),g=wb(g);var i=b-o,j=i>0?1:-1,p=g[0]*Sg*j,q=ug(i)>180;if(q^(p>j*o&&j*b>p)){var s=g[1]*Sg;s>n&&(n=s)}else if(p=(p+360)%360-180,q^(p>j*o&&j*b>p)){var s=-g[1]*Sg;l>s&&(l=s)}else l>c&&(l=c),c>n&&(n=c);q?o>b?h(k,b)>h(k,m)&&(m=b):h(b,m)>h(k,m)&&(k=b):m>=k?(k>b&&(k=b),b>m&&(m=b)):b>o?h(k,b)>h(k,m)&&(m=b):h(b,m)>h(k,m)&&(k=b)}else a(b,c);r=d,o=b}function c(){v.point=b}function d(){u[0]=k,u[1]=m,v.point=a,r=null}function e(a,c){if(r){var d=a-o;s+=ug(d)>180?d+(d>0?360:-360):d}else p=a,q=c;Ah.point(a,c),b(a,c)}function f(){Ah.lineStart()}function g(){e(p,q),Ah.lineEnd(),ug(s)>Lg&&(k=-(m=180)),u[0]=k,u[1]=m,r=null}function h(a,b){return(b-=a)<0?b+360:b}function i(a,b){return a[0]-b[0]}function j(a,b){return b[0]<=b[1]?b[0]<=a&&a<=b[1]:a<b[0]||b[1]<a}var k,l,m,n,o,p,q,r,s,t,u,v={point:a,lineStart:c,lineEnd:d,polygonStart:function(){v.point=e,v.lineStart=f,v.lineEnd=g,s=0,Ah.polygonStart()},polygonEnd:function(){Ah.polygonEnd(),v.point=a,v.lineStart=c,v.lineEnd=d,0>zh?(k=-(m=180),l=-(n=90)):s>Lg?n=90:-Lg>s&&(l=-90),u[0]=k,u[1]=m}};return function(a){n=m=-(k=l=1/0),t=[],ig.geo.stream(a,v);var b=t.length;if(b){t.sort(i);for(var c,d=1,e=t[0],f=[e];b>d;++d)c=t[d],j(c[0],e)||j(c[1],e)?(h(e[0],c[1])>h(e[0],e[1])&&(e[1]=c[1]),h(c[0],e[1])>h(e[0],e[1])&&(e[0]=c[0])):f.push(e=c);for(var g,c,o=-(1/0),b=f.length-1,d=0,e=f[b];b>=d;e=c,++d)c=f[d],(g=h(e[1],c[0]))>o&&(o=g,k=c[0],m=e[1])}return t=u=null,k===1/0||l===1/0?[[NaN,NaN],[NaN,NaN]]:[[k,l],[m,n]]}}(),ig.geo.centroid=function(a){Bh=Ch=Dh=Eh=Fh=Gh=Hh=Ih=Jh=Kh=Lh=0,ig.geo.stream(a,Mh);var b=Jh,c=Kh,d=Lh,e=b*b+c*c+d*d;return Mg>e&&(b=Gh,c=Hh,d=Ih,Lg>Ch&&(b=Dh,c=Eh,d=Fh),e=b*b+c*c+d*d,Mg>e)?[NaN,NaN]:[Math.atan2(c,b)*Sg,ca(d/Math.sqrt(e))*Sg]};var Bh,Ch,Dh,Eh,Fh,Gh,Hh,Ih,Jh,Kh,Lh,Mh={sphere:w,point:yb,lineStart:Ab,lineEnd:Bb,polygonStart:function(){Mh.lineStart=Cb},polygonEnd:function(){Mh.lineStart=Ab}},Nh=Ib(Eb,Mb,Ob,[-Ng,-Ng/2]),Oh=1e9;ig.geo.clipExtent=function(){var a,b,c,d,e,f,g={stream:function(a){return e&&(e.valid=!1),e=f(a),e.valid=!0,e},extent:function(h){return arguments.length?(f=Sb(a=+h[0][0],b=+h[0][1],c=+h[1][0],d=+h[1][1]),e&&(e.valid=!1,e=null),g):[[a,b],[c,d]]}};return g.extent([[0,0],[960,500]])},(ig.geo.conicEqualArea=function(){return Tb(Ub)}).raw=Ub,ig.geo.albers=function(){return ig.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},ig.geo.albersUsa=function(){function a(a){var f=a[0],g=a[1];return b=null,c(f,g),b||(d(f,g),b)||e(f,g),b}var b,c,d,e,f=ig.geo.albers(),g=ig.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),h=ig.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),i={point:function(a,c){b=[a,c]}};return a.invert=function(a){var b=f.scale(),c=f.translate(),d=(a[0]-c[0])/b,e=(a[1]-c[1])/b;return(e>=.12&&.234>e&&d>=-.425&&-.214>d?g:e>=.166&&.234>e&&d>=-.214&&-.115>d?h:f).invert(a)},a.stream=function(a){var b=f.stream(a),c=g.stream(a),d=h.stream(a);return{point:function(a,e){b.point(a,e),c.point(a,e),d.point(a,e)},sphere:function(){b.sphere(),c.sphere(),d.sphere()},lineStart:function(){b.lineStart(),c.lineStart(),d.lineStart()},lineEnd:function(){b.lineEnd(),c.lineEnd(),d.lineEnd()},polygonStart:function(){b.polygonStart(),c.polygonStart(),d.polygonStart()},polygonEnd:function(){b.polygonEnd(),c.polygonEnd(),d.polygonEnd()}}},a.precision=function(b){return arguments.length?(f.precision(b),g.precision(b),h.precision(b),a):f.precision()},a.scale=function(b){return arguments.length?(f.scale(b),g.scale(.35*b),h.scale(b),a.translate(f.translate())):f.scale()},a.translate=function(b){if(!arguments.length)return f.translate();var j=f.scale(),k=+b[0],l=+b[1];return c=f.translate(b).clipExtent([[k-.455*j,l-.238*j],[k+.455*j,l+.238*j]]).stream(i).point,d=g.translate([k-.307*j,l+.201*j]).clipExtent([[k-.425*j+Lg,l+.12*j+Lg],[k-.214*j-Lg,l+.234*j-Lg]]).stream(i).point,e=h.translate([k-.205*j,l+.212*j]).clipExtent([[k-.214*j+Lg,l+.166*j+Lg],[k-.115*j-Lg,l+.234*j-Lg]]).stream(i).point,a},a.scale(1070)};var Ph,Qh,Rh,Sh,Th,Uh,Vh={point:w,lineStart:w,lineEnd:w,polygonStart:function(){Qh=0,Vh.lineStart=Vb},polygonEnd:function(){Vh.lineStart=Vh.lineEnd=Vh.point=w,Ph+=ug(Qh/2)}},Wh={point:Wb,lineStart:w,lineEnd:w,polygonStart:w,polygonEnd:w},Xh={point:Zb,lineStart:$b,lineEnd:_b,polygonStart:function(){Xh.lineStart=ac},polygonEnd:function(){Xh.point=Zb,Xh.lineStart=$b,Xh.lineEnd=_b}};ig.geo.path=function(){function a(a){return a&&("function"==typeof h&&f.pointRadius(+h.apply(this,arguments)),g&&g.valid||(g=e(f)),ig.geo.stream(a,g)),f.result()}function b(){return g=null,a}var c,d,e,f,g,h=4.5;return a.area=function(a){return Ph=0,ig.geo.stream(a,e(Vh)),Ph},a.centroid=function(a){return Dh=Eh=Fh=Gh=Hh=Ih=Jh=Kh=Lh=0,ig.geo.stream(a,e(Xh)),Lh?[Jh/Lh,Kh/Lh]:Ih?[Gh/Ih,Hh/Ih]:Fh?[Dh/Fh,Eh/Fh]:[NaN,NaN]},a.bounds=function(a){return Th=Uh=-(Rh=Sh=1/0),ig.geo.stream(a,e(Wh)),[[Rh,Sh],[Th,Uh]]},a.projection=function(a){return arguments.length?(e=(c=a)?a.stream||dc(a):t,b()):c},a.context=function(a){return arguments.length?(f=null==(d=a)?new Xb:new bc(a),"function"!=typeof h&&f.pointRadius(h),b()):d},a.pointRadius=function(b){return arguments.length?(h="function"==typeof b?b:(f.pointRadius(+b),+b),a):h},a.projection(ig.geo.albersUsa()).context(null)},ig.geo.transform=function(a){return{stream:function(b){var c=new ec(b);for(var d in a)c[d]=a[d];return c}}},ec.prototype={point:function(a,b){this.stream.point(a,b)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},ig.geo.projection=gc,ig.geo.projectionMutator=hc,(ig.geo.equirectangular=function(){return gc(jc)}).raw=jc.invert=jc,ig.geo.rotation=function(a){function b(b){return b=a(b[0]*Rg,b[1]*Rg),b[0]*=Sg,b[1]*=Sg,b}return a=lc(a[0]%360*Rg,a[1]*Rg,a.length>2?a[2]*Rg:0),b.invert=function(b){return b=a.invert(b[0]*Rg,b[1]*Rg),b[0]*=Sg,b[1]*=Sg,b},b},kc.invert=jc,ig.geo.circle=function(){function a(){var a="function"==typeof d?d.apply(this,arguments):d,b=lc(-a[0]*Rg,-a[1]*Rg,0).invert,e=[];return c(null,null,1,{point:function(a,c){e.push(a=b(a,c)),a[0]*=Sg,a[1]*=Sg}}),{type:"Polygon",coordinates:[e]}}var b,c,d=[0,0],e=6;return a.origin=function(b){return arguments.length?(d=b,a):d},a.angle=function(d){return arguments.length?(c=pc((b=+d)*Rg,e*Rg),a):b},a.precision=function(d){return arguments.length?(c=pc(b*Rg,(e=+d)*Rg),a):e},a.angle(90)},ig.geo.distance=function(a,b){var c,d=(b[0]-a[0])*Rg,e=a[1]*Rg,f=b[1]*Rg,g=Math.sin(d),h=Math.cos(d),i=Math.sin(e),j=Math.cos(e),k=Math.sin(f),l=Math.cos(f);return Math.atan2(Math.sqrt((c=l*g)*c+(c=j*k-i*l*h)*c),i*k+j*l*h)},ig.geo.graticule=function(){function a(){return{type:"MultiLineString",coordinates:b()}}function b(){return ig.range(Math.ceil(f/q)*q,e,q).map(m).concat(ig.range(Math.ceil(j/r)*r,i,r).map(n)).concat(ig.range(Math.ceil(d/o)*o,c,o).filter(function(a){return ug(a%q)>Lg}).map(k)).concat(ig.range(Math.ceil(h/p)*p,g,p).filter(function(a){return ug(a%r)>Lg}).map(l))}var c,d,e,f,g,h,i,j,k,l,m,n,o=10,p=o,q=90,r=360,s=2.5;return a.lines=function(){return b().map(function(a){return{type:"LineString",coordinates:a}})},a.outline=function(){return{type:"Polygon",coordinates:[m(f).concat(n(i).slice(1),m(e).reverse().slice(1),n(j).reverse().slice(1))]}},a.extent=function(b){return arguments.length?a.majorExtent(b).minorExtent(b):a.minorExtent()},a.majorExtent=function(b){return arguments.length?(f=+b[0][0],e=+b[1][0],j=+b[0][1],i=+b[1][1],f>e&&(b=f,f=e,e=b),j>i&&(b=j,j=i,i=b),a.precision(s)):[[f,j],[e,i]]},a.minorExtent=function(b){return arguments.length?(d=+b[0][0],c=+b[1][0],h=+b[0][1],g=+b[1][1],d>c&&(b=d,d=c,c=b),h>g&&(b=h,h=g,g=b),a.precision(s)):[[d,h],[c,g]]},a.step=function(b){return arguments.length?a.majorStep(b).minorStep(b):a.minorStep()},a.majorStep=function(b){return arguments.length?(q=+b[0],r=+b[1],a):[q,r]},a.minorStep=function(b){return arguments.length?(o=+b[0],p=+b[1],a):[o,p]},a.precision=function(b){return arguments.length?(s=+b,k=rc(h,g,90),l=sc(d,c,s),m=rc(j,i,90),n=sc(f,e,s),a):s},a.majorExtent([[-180,-90+Lg],[180,90-Lg]]).minorExtent([[-180,-80-Lg],[180,80+Lg]])},ig.geo.greatArc=function(){function a(){return{type:"LineString",coordinates:[b||d.apply(this,arguments),c||e.apply(this,arguments)]}}var b,c,d=tc,e=uc;return a.distance=function(){return ig.geo.distance(b||d.apply(this,arguments),c||e.apply(this,arguments))},a.source=function(c){return arguments.length?(d=c,b="function"==typeof c?null:c,a):d},a.target=function(b){return arguments.length?(e=b,c="function"==typeof b?null:b,a):e},a.precision=function(){return arguments.length?a:0},a},ig.geo.interpolate=function(a,b){return vc(a[0]*Rg,a[1]*Rg,b[0]*Rg,b[1]*Rg)},ig.geo.length=function(a){return Yh=0,ig.geo.stream(a,Zh),Yh};var Yh,Zh={sphere:w,point:w,lineStart:wc,lineEnd:w,polygonStart:w,polygonEnd:w},$h=xc(function(a){return Math.sqrt(2/(1+a))},function(a){return 2*Math.asin(a/2)});(ig.geo.azimuthalEqualArea=function(){return gc($h)}).raw=$h;var _h=xc(function(a){var b=Math.acos(a);return b&&b/Math.sin(b)},t);(ig.geo.azimuthalEquidistant=function(){return gc(_h)}).raw=_h,(ig.geo.conicConformal=function(){return Tb(yc)}).raw=yc,(ig.geo.conicEquidistant=function(){return Tb(zc)}).raw=zc;var ai=xc(function(a){return 1/a},Math.atan);(ig.geo.gnomonic=function(){return gc(ai)}).raw=ai,Ac.invert=function(a,b){return[a,2*Math.atan(Math.exp(b))-Qg]},(ig.geo.mercator=function(){return Bc(Ac)}).raw=Ac;var bi=xc(function(){return 1},Math.asin);(ig.geo.orthographic=function(){return gc(bi)}).raw=bi;var ci=xc(function(a){return 1/(1+a)},function(a){return 2*Math.atan(a)});(ig.geo.stereographic=function(){return gc(ci)}).raw=ci,Cc.invert=function(a,b){return[-b,2*Math.atan(Math.exp(a))-Qg]},(ig.geo.transverseMercator=function(){var a=Bc(Cc),b=a.center,c=a.rotate;return a.center=function(a){return a?b([-a[1],a[0]]):(a=b(),[a[1],-a[0]])},a.rotate=function(a){return a?c([a[0],a[1],a.length>2?a[2]+90:90]):(a=c(),[a[0],a[1],a[2]-90])},c([0,0,90])}).raw=Cc,ig.geom={},ig.geom.hull=function(a){function b(a){if(a.length<3)return[];var b,e=Ba(c),f=Ba(d),g=a.length,h=[],i=[];for(b=0;g>b;b++)h.push([+e.call(this,a[b],b),+f.call(this,a[b],b),b]);for(h.sort(Gc),b=0;g>b;b++)i.push([h[b][0],-h[b][1]]);var j=Fc(h),k=Fc(i),l=k[0]===j[0],m=k[k.length-1]===j[j.length-1],n=[];for(b=j.length-1;b>=0;--b)n.push(a[h[j[b]][2]]);for(b=+l;b<k.length-m;++b)n.push(a[h[k[b]][2]]);return n}var c=Dc,d=Ec;return arguments.length?b(a):(b.x=function(a){return arguments.length?(c=a,b):c},b.y=function(a){return arguments.length?(d=a,b):d},b)},ig.geom.polygon=function(a){return zg(a,di),a};var di=ig.geom.polygon.prototype=[];di.area=function(){for(var a,b=-1,c=this.length,d=this[c-1],e=0;++b<c;)a=d,d=this[b],e+=a[1]*d[0]-a[0]*d[1];return.5*e},di.centroid=function(a){var b,c,d=-1,e=this.length,f=0,g=0,h=this[e-1];for(arguments.length||(a=-1/(6*this.area()));++d<e;)b=h,h=this[d],c=b[0]*h[1]-h[0]*b[1],f+=(b[0]+h[0])*c,g+=(b[1]+h[1])*c;return[f*a,g*a]},di.clip=function(a){for(var b,c,d,e,f,g,h=Jc(a),i=-1,j=this.length-Jc(this),k=this[j-1];++i<j;){for(b=a.slice(),a.length=0,e=this[i],f=b[(d=b.length-h)-1],c=-1;++c<d;)g=b[c],Hc(g,k,e)?(Hc(f,k,e)||a.push(Ic(f,g,k,e)),a.push(g)):Hc(f,k,e)&&a.push(Ic(f,g,k,e)),f=g;h&&a.push(a[0]),k=e}return a};var ei,fi,gi,hi,ii,ji=[],ki=[];Rc.prototype.prepare=function(){for(var a,b=this.edges,c=b.length;c--;)a=b[c].edge,a.b&&a.a||b.splice(c,1);return b.sort(Tc),b.length},bd.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},cd.prototype={insert:function(a,b){var c,d,e;if(a){if(b.P=a,b.N=a.N,a.N&&(a.N.P=b),a.N=b,a.R){for(a=a.R;a.L;)a=a.L;a.L=b}else a.R=b;c=a}else this._?(a=gd(this._),b.P=null,b.N=a,a.P=a.L=b,c=a):(b.P=b.N=null,this._=b,c=null);for(b.L=b.R=null,b.U=c,b.C=!0,a=b;c&&c.C;)d=c.U,c===d.L?(e=d.R,e&&e.C?(c.C=e.C=!1,d.C=!0,a=d):(a===c.R&&(ed(this,c),a=c,c=a.U),c.C=!1,d.C=!0,fd(this,d))):(e=d.L,e&&e.C?(c.C=e.C=!1,d.C=!0,a=d):(a===c.L&&(fd(this,c),a=c,c=a.U),c.C=!1,d.C=!0,ed(this,d))),c=a.U;this._.C=!1},remove:function(a){a.N&&(a.N.P=a.P),a.P&&(a.P.N=a.N),a.N=a.P=null;var b,c,d,e=a.U,f=a.L,g=a.R;if(c=f?g?gd(g):f:g,e?e.L===a?e.L=c:e.R=c:this._=c,f&&g?(d=c.C,c.C=a.C,c.L=f,f.U=c,c!==g?(e=c.U,c.U=a.U,a=c.R,e.L=a,c.R=g,g.U=c):(c.U=e,e=c,a=c.R)):(d=a.C,a=c),a&&(a.U=e),!d){if(a&&a.C)return void(a.C=!1);do{if(a===this._)break;if(a===e.L){if(b=e.R,b.C&&(b.C=!1,e.C=!0,ed(this,e),b=e.R),b.L&&b.L.C||b.R&&b.R.C){b.R&&b.R.C||(b.L.C=!1,b.C=!0,fd(this,b),b=e.R),b.C=e.C,e.C=b.R.C=!1,ed(this,e),a=this._;break}}else if(b=e.L,b.C&&(b.C=!1,e.C=!0,fd(this,e),b=e.L),b.L&&b.L.C||b.R&&b.R.C){b.L&&b.L.C||(b.R.C=!1,b.C=!0,ed(this,b),b=e.L),b.C=e.C,e.C=b.L.C=!1,fd(this,e),a=this._;break}b.C=!0,a=e,e=e.U}while(!a.C);a&&(a.C=!1)}}},ig.geom.voronoi=function(a){function b(a){var b=new Array(a.length),d=h[0][0],e=h[0][1],f=h[1][0],g=h[1][1];return hd(c(a),h).cells.forEach(function(c,h){var i=c.edges,j=c.site,k=b[h]=i.length?i.map(function(a){var b=a.start();return[b.x,b.y]}):j.x>=d&&j.x<=f&&j.y>=e&&j.y<=g?[[d,g],[f,g],[f,e],[d,e]]:[];k.point=a[h]}),b}function c(a){return a.map(function(a,b){return{x:Math.round(f(a,b)/Lg)*Lg,y:Math.round(g(a,b)/Lg)*Lg,i:b}})}var d=Dc,e=Ec,f=d,g=e,h=li;return a?b(a):(b.links=function(a){return hd(c(a)).edges.filter(function(a){return a.l&&a.r}).map(function(b){return{source:a[b.l.i],target:a[b.r.i]}})},b.triangles=function(a){var b=[];return hd(c(a)).cells.forEach(function(c,d){for(var e,f,g=c.site,h=c.edges.sort(Tc),i=-1,j=h.length,k=h[j-1].edge,l=k.l===g?k.r:k.l;++i<j;)e=k,f=l,k=h[i].edge,l=k.l===g?k.r:k.l,d<f.i&&d<l.i&&jd(g,f,l)<0&&b.push([a[d],a[f.i],a[l.i]])}),b},b.x=function(a){return arguments.length?(f=Ba(d=a),b):d},b.y=function(a){return arguments.length?(g=Ba(e=a),b):e},b.clipExtent=function(a){return arguments.length?(h=null==a?li:a,b):h===li?null:h},b.size=function(a){return arguments.length?b.clipExtent(a&&[[0,0],a]):h===li?null:h&&h[1]},b)};var li=[[-1e6,-1e6],[1e6,1e6]];ig.geom.delaunay=function(a){return ig.geom.voronoi().triangles(a)},ig.geom.quadtree=function(a,b,c,d,e){function f(a){function f(a,b,c,d,e,f,g,h){if(!isNaN(c)&&!isNaN(d))if(a.leaf){var i=a.x,k=a.y;if(null!=i)if(ug(i-c)+ug(k-d)<.01)j(a,b,c,d,e,f,g,h);else{var l=a.point;a.x=a.y=a.point=null,j(a,l,i,k,e,f,g,h),j(a,b,c,d,e,f,g,h)}else a.x=c,a.y=d,a.point=b}else j(a,b,c,d,e,f,g,h)}function j(a,b,c,d,e,g,h,i){var j=.5*(e+h),k=.5*(g+i),l=c>=j,m=d>=k,n=m<<1|l;a.leaf=!1,a=a.nodes[n]||(a.nodes[n]=md()),l?e=j:h=j,m?g=k:i=k,f(a,b,c,d,e,g,h,i)}var k,l,m,n,o,p,q,r,s,t=Ba(h),u=Ba(i);if(null!=b)p=b,q=c,r=d,s=e;else if(r=s=-(p=q=1/0),l=[],m=[],o=a.length,g)for(n=0;o>n;++n)k=a[n],k.x<p&&(p=k.x),k.y<q&&(q=k.y),k.x>r&&(r=k.x),k.y>s&&(s=k.y),l.push(k.x),m.push(k.y);else for(n=0;o>n;++n){var v=+t(k=a[n],n),w=+u(k,n);p>v&&(p=v),q>w&&(q=w),v>r&&(r=v),w>s&&(s=w),l.push(v),m.push(w)}var x=r-p,y=s-q;x>y?s=q+x:r=p+y;var z=md();if(z.add=function(a){f(z,a,+t(a,++n),+u(a,n),p,q,r,s)},z.visit=function(a){nd(a,z,p,q,r,s)},z.find=function(a){return od(z,a[0],a[1],p,q,r,s)},n=-1,null==b){for(;++n<o;)f(z,a[n],l[n],m[n],p,q,r,s);--n}else a.forEach(z.add);return l=m=a=k=null,z}var g,h=Dc,i=Ec;return(g=arguments.length)?(h=kd,i=ld,3===g&&(e=c,d=b,c=b=0),f(a)):(f.x=function(a){return arguments.length?(h=a,f):h},f.y=function(a){return arguments.length?(i=a,f):i},f.extent=function(a){return arguments.length?(null==a?b=c=d=e=null:(b=+a[0][0],c=+a[0][1],d=+a[1][0],e=+a[1][1]),f):null==b?null:[[b,c],[d,e]]},f.size=function(a){return arguments.length?(null==a?b=c=d=e=null:(b=c=0,d=+a[0],e=+a[1]),f):null==b?null:[d-b,e-c]},f)},ig.interpolateRgb=pd,ig.interpolateObject=qd,ig.interpolateNumber=rd,ig.interpolateString=sd;var mi=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ni=new RegExp(mi.source,"g");ig.interpolate=td,ig.interpolators=[function(a,b){var c=typeof b;return("string"===c?fh.has(b.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(b)?pd:sd:b instanceof ha?pd:Array.isArray(b)?ud:"object"===c&&isNaN(b)?qd:rd)(a,b)}],ig.interpolateArray=ud;var oi=function(){return t},pi=ig.map({linear:oi,poly:Bd,quad:function(){return yd},cubic:function(){return zd},sin:function(){return Cd},exp:function(){return Dd},circle:function(){return Ed},elastic:Fd,back:Gd,bounce:function(){return Hd}}),qi=ig.map({"in":t,out:wd,"in-out":xd,"out-in":function(a){return xd(wd(a))}});ig.ease=function(a){var b=a.indexOf("-"),c=b>=0?a.slice(0,b):a,d=b>=0?a.slice(b+1):"in";return c=pi.get(c)||oi,d=qi.get(d)||t,vd(d(c.apply(null,jg.call(arguments,1))))},ig.interpolateHcl=Id,ig.interpolateHsl=Jd,ig.interpolateLab=Kd,ig.interpolateRound=Ld,ig.transform=function(a){var b=lg.createElementNS(ig.ns.prefix.svg,"g");return(ig.transform=function(a){if(null!=a){b.setAttribute("transform",a);var c=b.transform.baseVal.consolidate()}return new Md(c?c.matrix:ri)})(a)},Md.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var ri={a:1,b:0,c:0,d:1,e:0,f:0};ig.interpolateTransform=Vd,ig.layout={},ig.layout.bundle=function(){return function(a){for(var b=[],c=-1,d=a.length;++c<d;)b.push(Yd(a[c]));return b}},ig.layout.chord=function(){function a(){var a,j,l,m,n,o={},p=[],q=ig.range(f),r=[];for(c=[],d=[],a=0,m=-1;++m<f;){for(j=0,n=-1;++n<f;)j+=e[m][n];p.push(j),r.push(ig.range(f)),a+=j}for(g&&q.sort(function(a,b){return g(p[a],p[b])}),h&&r.forEach(function(a,b){a.sort(function(a,c){return h(e[b][a],e[b][c])})}),a=(Og-k*f)/a,j=0,m=-1;++m<f;){for(l=j,n=-1;++n<f;){var s=q[m],t=r[s][n],u=e[s][t],v=j,w=j+=u*a;o[s+"-"+t]={index:s,subindex:t,startAngle:v,endAngle:w,value:u}}d[s]={index:s,startAngle:l,endAngle:j,value:p[s]},j+=k}for(m=-1;++m<f;)for(n=m-1;++n<f;){var x=o[m+"-"+n],y=o[n+"-"+m];(x.value||y.value)&&c.push(x.value<y.value?{source:y,target:x}:{source:x,target:y})}i&&b()}function b(){c.sort(function(a,b){return i((a.source.value+a.target.value)/2,(b.source.value+b.target.value)/2)})}var c,d,e,f,g,h,i,j={},k=0;return j.matrix=function(a){return arguments.length?(f=(e=a)&&e.length,c=d=null,j):e},j.padding=function(a){return arguments.length?(k=a,c=d=null,j):k},j.sortGroups=function(a){return arguments.length?(g=a,c=d=null,j):g},j.sortSubgroups=function(a){return arguments.length?(h=a,c=null,j):h},j.sortChords=function(a){return arguments.length?(i=a,c&&b(),j):i},j.chords=function(){return c||a(),c},j.groups=function(){return d||a(),d},j},ig.layout.force=function(){function a(a){return function(b,c,d,e){if(b.point!==a){var f=b.cx-a.x,g=b.cy-a.y,h=e-c,i=f*f+g*g;if(i>h*h/r){if(p>i){var j=b.charge/i;a.px-=f*j,a.py-=g*j}return!0}if(b.point&&i&&p>i){var j=b.pointCharge/i;a.px-=f*j,a.py-=g*j}}return!b.charge}}function b(a){a.px=ig.event.x,a.py=ig.event.y,i.resume()}var c,d,e,f,g,h,i={},j=ig.dispatch("start","tick","end"),k=[1,1],l=.9,m=si,n=ti,o=-30,p=ui,q=.1,r=.64,s=[],u=[];return i.tick=function(){if((e*=.99)<.005)return c=null,j.end({type:"end",alpha:e=0}),!0;var b,d,i,m,n,p,r,t,v,w=s.length,x=u.length;for(d=0;x>d;++d)i=u[d],m=i.source,n=i.target,t=n.x-m.x,v=n.y-m.y,(p=t*t+v*v)&&(p=e*g[d]*((p=Math.sqrt(p))-f[d])/p,t*=p,v*=p,n.x-=t*(r=m.weight+n.weight?m.weight/(m.weight+n.weight):.5),n.y-=v*r,m.x+=t*(r=1-r),m.y+=v*r);if((r=e*q)&&(t=k[0]/2,v=k[1]/2,d=-1,r))for(;++d<w;)i=s[d],i.x+=(t-i.x)*r,i.y+=(v-i.y)*r;if(o)for(de(b=ig.geom.quadtree(s),e,h),d=-1;++d<w;)(i=s[d]).fixed||b.visit(a(i));for(d=-1;++d<w;)i=s[d],i.fixed?(i.x=i.px,i.y=i.py):(i.x-=(i.px-(i.px=i.x))*l,i.y-=(i.py-(i.py=i.y))*l);j.tick({type:"tick",alpha:e})},i.nodes=function(a){return arguments.length?(s=a,i):s},i.links=function(a){return arguments.length?(u=a,i):u},i.size=function(a){return arguments.length?(k=a,i):k},i.linkDistance=function(a){return arguments.length?(m="function"==typeof a?a:+a,i):m},i.distance=i.linkDistance,i.linkStrength=function(a){return arguments.length?(n="function"==typeof a?a:+a,i):n},i.friction=function(a){return arguments.length?(l=+a,i):l},i.charge=function(a){return arguments.length?(o="function"==typeof a?a:+a,i):o},i.chargeDistance=function(a){return arguments.length?(p=a*a,i):Math.sqrt(p)},i.gravity=function(a){return arguments.length?(q=+a,i):q},i.theta=function(a){return arguments.length?(r=a*a,i):Math.sqrt(r)},i.alpha=function(a){return arguments.length?(a=+a,e?a>0?e=a:(c.c=null,c.t=NaN,c=null,j.end({type:"end",alpha:e=0})):a>0&&(j.start({type:"start",alpha:e=a}),c=Ga(i.tick)),i):e},i.start=function(){function a(a,d){if(!c){for(c=new Array(e),i=0;e>i;++i)c[i]=[];for(i=0;j>i;++i){var f=u[i];c[f.source.index].push(f.target),c[f.target.index].push(f.source)}}for(var g,h=c[b],i=-1,k=h.length;++i<k;)if(!isNaN(g=h[i][a]))return g;return Math.random()*d}var b,c,d,e=s.length,j=u.length,l=k[0],p=k[1];for(b=0;e>b;++b)(d=s[b]).index=b,d.weight=0;for(b=0;j>b;++b)d=u[b],"number"==typeof d.source&&(d.source=s[d.source]),"number"==typeof d.target&&(d.target=s[d.target]),++d.source.weight,++d.target.weight;for(b=0;e>b;++b)d=s[b],isNaN(d.x)&&(d.x=a("x",l)),isNaN(d.y)&&(d.y=a("y",p)),isNaN(d.px)&&(d.px=d.x),isNaN(d.py)&&(d.py=d.y);if(f=[],"function"==typeof m)for(b=0;j>b;++b)f[b]=+m.call(this,u[b],b);else for(b=0;j>b;++b)f[b]=m;if(g=[],"function"==typeof n)for(b=0;j>b;++b)g[b]=+n.call(this,u[b],b);else for(b=0;j>b;++b)g[b]=n;if(h=[],"function"==typeof o)for(b=0;e>b;++b)h[b]=+o.call(this,s[b],b);else for(b=0;e>b;++b)h[b]=o;return i.resume()},i.resume=function(){return i.alpha(.1)},i.stop=function(){return i.alpha(0)},i.drag=function(){return d||(d=ig.behavior.drag().origin(t).on("dragstart.force",_d).on("drag.force",b).on("dragend.force",ae)),arguments.length?void this.on("mouseover.force",be).on("mouseout.force",ce).call(d):d},ig.rebind(i,j,"on")};var si=20,ti=1,ui=1/0;ig.layout.hierarchy=function(){function a(e){var f,g=[e],h=[];for(e.depth=0;null!=(f=g.pop());)if(h.push(f),(j=c.call(a,f,f.depth))&&(i=j.length)){for(var i,j,k;--i>=0;)g.push(k=j[i]),k.parent=f,k.depth=f.depth+1;d&&(f.value=0),f.children=j}else d&&(f.value=+d.call(a,f,f.depth)||0),delete f.children;return ge(e,function(a){var c,e;b&&(c=a.children)&&c.sort(b),d&&(e=a.parent)&&(e.value+=a.value)}),h}var b=je,c=he,d=ie;return a.sort=function(c){return arguments.length?(b=c,a):b},a.children=function(b){return arguments.length?(c=b,a):c},a.value=function(b){return arguments.length?(d=b,a):d},a.revalue=function(b){return d&&(fe(b,function(a){a.children&&(a.value=0)}),ge(b,function(b){var c;b.children||(b.value=+d.call(a,b,b.depth)||0),(c=b.parent)&&(c.value+=b.value)})),b},a},ig.layout.partition=function(){function a(b,c,d,e){var f=b.children;if(b.x=c,b.y=b.depth*e,b.dx=d,b.dy=e,f&&(g=f.length)){var g,h,i,j=-1;for(d=b.value?d/b.value:0;++j<g;)a(h=f[j],c,i=h.value*d,e),c+=i}}function b(a){var c=a.children,d=0;if(c&&(e=c.length))for(var e,f=-1;++f<e;)d=Math.max(d,b(c[f]));return 1+d}function c(c,f){var g=d.call(this,c,f);return a(g[0],0,e[0],e[1]/b(g[0])),g}var d=ig.layout.hierarchy(),e=[1,1];return c.size=function(a){return arguments.length?(e=a,c):e},ee(c,d)},ig.layout.pie=function(){function a(g){var h,i=g.length,j=g.map(function(c,d){return+b.call(a,c,d)}),k=+("function"==typeof d?d.apply(this,arguments):d),l=("function"==typeof e?e.apply(this,arguments):e)-k,m=Math.min(Math.abs(l)/i,+("function"==typeof f?f.apply(this,arguments):f)),n=m*(0>l?-1:1),o=ig.sum(j),p=o?(l-i*n)/o:0,q=ig.range(i),r=[];return null!=c&&q.sort(c===vi?function(a,b){return j[b]-j[a]}:function(a,b){return c(g[a],g[b])}),q.forEach(function(a){r[a]={data:g[a],value:h=j[a],startAngle:k,endAngle:k+=h*p+n,padAngle:m}}),r}var b=Number,c=vi,d=0,e=Og,f=0;return a.value=function(c){return arguments.length?(b=c,a):b},a.sort=function(b){return arguments.length?(c=b,a):c},a.startAngle=function(b){return arguments.length?(d=b,a):d},a.endAngle=function(b){return arguments.length?(e=b,a):e},a.padAngle=function(b){return arguments.length?(f=b,a):f},a};var vi={};ig.layout.stack=function(){function a(h,i){if(!(m=h.length))return h;var j=h.map(function(c,d){return b.call(a,c,d)}),k=j.map(function(b){return b.map(function(b,c){return[f.call(a,b,c),g.call(a,b,c)]})}),l=c.call(a,k,i);j=ig.permute(j,l),k=ig.permute(k,l);var m,n,o,p,q=d.call(a,k,i),r=j[0].length;for(o=0;r>o;++o)for(e.call(a,j[0][o],p=q[o],k[0][o][1]),n=1;m>n;++n)e.call(a,j[n][o],p+=k[n-1][o][1],k[n][o][1]);return h}var b=t,c=oe,d=pe,e=ne,f=le,g=me;return a.values=function(c){return arguments.length?(b=c,a):b},a.order=function(b){return arguments.length?(c="function"==typeof b?b:wi.get(b)||oe,a):c},a.offset=function(b){return arguments.length?(d="function"==typeof b?b:xi.get(b)||pe,a):d},a.x=function(b){return arguments.length?(f=b,a):f},a.y=function(b){return arguments.length?(g=b,a):g},a.out=function(b){return arguments.length?(e=b,a):e},a};var wi=ig.map({"inside-out":function(a){var b,c,d=a.length,e=a.map(qe),f=a.map(re),g=ig.range(d).sort(function(a,b){return e[a]-e[b]}),h=0,i=0,j=[],k=[];for(b=0;d>b;++b)c=g[b],i>h?(h+=f[c],j.push(c)):(i+=f[c],k.push(c));return k.reverse().concat(j)},reverse:function(a){return ig.range(a.length).reverse()},"default":oe}),xi=ig.map({silhouette:function(a){var b,c,d,e=a.length,f=a[0].length,g=[],h=0,i=[];for(c=0;f>c;++c){for(b=0,d=0;e>b;b++)d+=a[b][c][1];d>h&&(h=d),g.push(d)}for(c=0;f>c;++c)i[c]=(h-g[c])/2;return i},wiggle:function(a){var b,c,d,e,f,g,h,i,j,k=a.length,l=a[0],m=l.length,n=[];for(n[0]=i=j=0,c=1;m>c;++c){for(b=0,e=0;k>b;++b)e+=a[b][c][1];for(b=0,f=0,h=l[c][0]-l[c-1][0];k>b;++b){for(d=0,g=(a[b][c][1]-a[b][c-1][1])/(2*h);b>d;++d)g+=(a[d][c][1]-a[d][c-1][1])/h;f+=g*a[b][c][1]}n[c]=i-=e?f/e*h:0,j>i&&(j=i)}for(c=0;m>c;++c)n[c]-=j;return n},expand:function(a){var b,c,d,e=a.length,f=a[0].length,g=1/e,h=[];for(c=0;f>c;++c){for(b=0,d=0;e>b;b++)d+=a[b][c][1];if(d)for(b=0;e>b;b++)a[b][c][1]/=d;else for(b=0;e>b;b++)a[b][c][1]=g}for(c=0;f>c;++c)h[c]=0;return h},zero:pe});ig.layout.histogram=function(){function a(a,f){for(var g,h,i=[],j=a.map(c,this),k=d.call(this,j,f),l=e.call(this,k,j,f),f=-1,m=j.length,n=l.length-1,o=b?1:1/m;++f<n;)g=i[f]=[],g.dx=l[f+1]-(g.x=l[f]),g.y=0;if(n>0)for(f=-1;++f<m;)h=j[f],h>=k[0]&&h<=k[1]&&(g=i[ig.bisect(l,h,1,n)-1],g.y+=o,g.push(a[f]));return i}var b=!0,c=Number,d=ve,e=te;return a.value=function(b){return arguments.length?(c=b,a):c},a.range=function(b){return arguments.length?(d=Ba(b),a):d},a.bins=function(b){return arguments.length?(e="number"==typeof b?function(a){return ue(a,b)}:Ba(b),a):e},a.frequency=function(c){return arguments.length?(b=!!c,a):b},a},ig.layout.pack=function(){function a(a,f){var g=c.call(this,a,f),h=g[0],i=e[0],j=e[1],k=null==b?Math.sqrt:"function"==typeof b?b:function(){return b};if(h.x=h.y=0,ge(h,function(a){a.r=+k(a.value)}),ge(h,Ae),d){var l=d*(b?1:Math.max(2*h.r/i,2*h.r/j))/2;ge(h,function(a){a.r+=l}),ge(h,Ae),ge(h,function(a){a.r-=l})}return De(h,i/2,j/2,b?1:1/Math.max(2*h.r/i,2*h.r/j)),g}var b,c=ig.layout.hierarchy().sort(we),d=0,e=[1,1];return a.size=function(b){return arguments.length?(e=b,a):e},a.radius=function(c){return arguments.length?(b=null==c||"function"==typeof c?c:+c,a):b},a.padding=function(b){return arguments.length?(d=+b,a):d},ee(a,c)},ig.layout.tree=function(){function a(a,e){var k=g.call(this,a,e),l=k[0],m=b(l);if(ge(m,c),m.parent.m=-m.z,fe(m,d),j)fe(l,f);else{var n=l,o=l,p=l;fe(l,function(a){a.x<n.x&&(n=a),a.x>o.x&&(o=a),a.depth>p.depth&&(p=a)});var q=h(n,o)/2-n.x,r=i[0]/(o.x+h(o,n)/2+q),s=i[1]/(p.depth||1);fe(l,function(a){a.x=(a.x+q)*r,a.y=a.depth*s})}return k}function b(a){for(var b,c={A:null,children:[a]},d=[c];null!=(b=d.pop());)for(var e,f=b.children,g=0,h=f.length;h>g;++g)d.push((f[g]=e={_:f[g],parent:b,children:(e=f[g].children)&&e.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:g}).a=e);return c.children[0]}function c(a){var b=a.children,c=a.parent.children,d=a.i?c[a.i-1]:null;if(b.length){Je(a);var f=(b[0].z+b[b.length-1].z)/2;d?(a.z=d.z+h(a._,d._),a.m=a.z-f):a.z=f}else d&&(a.z=d.z+h(a._,d._));a.parent.A=e(a,d,a.parent.A||c[0])}function d(a){a._.x=a.z+a.parent.m,a.m+=a.parent.m}function e(a,b,c){if(b){for(var d,e=a,f=a,g=b,i=e.parent.children[0],j=e.m,k=f.m,l=g.m,m=i.m;g=He(g),e=Ge(e),g&&e;)i=Ge(i),f=He(f),f.a=a,d=g.z+l-e.z-j+h(g._,e._),d>0&&(Ie(Ke(g,a,c),a,d),j+=d,k+=d),l+=g.m,j+=e.m,m+=i.m,k+=f.m;g&&!He(f)&&(f.t=g,f.m+=l-k),e&&!Ge(i)&&(i.t=e,i.m+=j-m,c=a)}return c}function f(a){a.x*=i[0],a.y=a.depth*i[1]}var g=ig.layout.hierarchy().sort(null).value(null),h=Fe,i=[1,1],j=null;return a.separation=function(b){return arguments.length?(h=b,a):h},a.size=function(b){return arguments.length?(j=null==(i=b)?f:null,a):j?null:i},a.nodeSize=function(b){return arguments.length?(j=null==(i=b)?null:f,a):j?i:null},ee(a,g)},ig.layout.cluster=function(){function a(a,f){var g,h=b.call(this,a,f),i=h[0],j=0;ge(i,function(a){var b=a.children;b&&b.length?(a.x=Me(b),a.y=Le(b)):(a.x=g?j+=c(a,g):0,a.y=0,g=a)});var k=Ne(i),l=Oe(i),m=k.x-c(k,l)/2,n=l.x+c(l,k)/2;return ge(i,e?function(a){a.x=(a.x-i.x)*d[0],a.y=(i.y-a.y)*d[1]}:function(a){a.x=(a.x-m)/(n-m)*d[0],a.y=(1-(i.y?a.y/i.y:1))*d[1]}),h}var b=ig.layout.hierarchy().sort(null).value(null),c=Fe,d=[1,1],e=!1;return a.separation=function(b){return arguments.length?(c=b,a):c},a.size=function(b){return arguments.length?(e=null==(d=b),a):e?null:d},a.nodeSize=function(b){return arguments.length?(e=null!=(d=b),a):e?d:null},ee(a,b)},ig.layout.treemap=function(){function a(a,b){for(var c,d,e=-1,f=a.length;++e<f;)d=(c=a[e]).value*(0>b?0:b),c.area=isNaN(d)||0>=d?0:d}function b(c){var f=c.children;if(f&&f.length){var g,h,i,j=l(c),k=[],m=f.slice(),o=1/0,p="slice"===n?j.dx:"dice"===n?j.dy:"slice-dice"===n?1&c.depth?j.dy:j.dx:Math.min(j.dx,j.dy);for(a(m,j.dx*j.dy/c.value),k.area=0;(i=m.length)>0;)k.push(g=m[i-1]),k.area+=g.area,"squarify"!==n||(h=d(k,p))<=o?(m.pop(),o=h):(k.area-=k.pop().area,
5
- e(k,p,j,!1),p=Math.min(j.dx,j.dy),k.length=k.area=0,o=1/0);k.length&&(e(k,p,j,!0),k.length=k.area=0),f.forEach(b)}}function c(b){var d=b.children;if(d&&d.length){var f,g=l(b),h=d.slice(),i=[];for(a(h,g.dx*g.dy/b.value),i.area=0;f=h.pop();)i.push(f),i.area+=f.area,null!=f.z&&(e(i,f.z?g.dx:g.dy,g,!h.length),i.length=i.area=0);d.forEach(c)}}function d(a,b){for(var c,d=a.area,e=0,f=1/0,g=-1,h=a.length;++g<h;)(c=a[g].area)&&(f>c&&(f=c),c>e&&(e=c));return d*=d,b*=b,d?Math.max(b*e*o/d,d/(b*f*o)):1/0}function e(a,b,c,d){var e,f=-1,g=a.length,h=c.x,j=c.y,k=b?i(a.area/b):0;if(b==c.dx){for((d||k>c.dy)&&(k=c.dy);++f<g;)e=a[f],e.x=h,e.y=j,e.dy=k,h+=e.dx=Math.min(c.x+c.dx-h,k?i(e.area/k):0);e.z=!0,e.dx+=c.x+c.dx-h,c.y+=k,c.dy-=k}else{for((d||k>c.dx)&&(k=c.dx);++f<g;)e=a[f],e.x=h,e.y=j,e.dx=k,j+=e.dy=Math.min(c.y+c.dy-j,k?i(e.area/k):0);e.z=!1,e.dy+=c.y+c.dy-j,c.x+=k,c.dx-=k}}function f(d){var e=g||h(d),f=e[0];return f.x=f.y=0,f.value?(f.dx=j[0],f.dy=j[1]):f.dx=f.dy=0,g&&h.revalue(f),a([f],f.dx*f.dy/f.value),(g?c:b)(f),m&&(g=e),e}var g,h=ig.layout.hierarchy(),i=Math.round,j=[1,1],k=null,l=Pe,m=!1,n="squarify",o=.5*(1+Math.sqrt(5));return f.size=function(a){return arguments.length?(j=a,f):j},f.padding=function(a){function b(b){var c=a.call(f,b,b.depth);return null==c?Pe(b):Qe(b,"number"==typeof c?[c,c,c,c]:c)}function c(b){return Qe(b,a)}if(!arguments.length)return k;var d;return l=null==(k=a)?Pe:"function"==(d=typeof a)?b:"number"===d?(a=[a,a,a,a],c):c,f},f.round=function(a){return arguments.length?(i=a?Math.round:Number,f):i!=Number},f.sticky=function(a){return arguments.length?(m=a,g=null,f):m},f.ratio=function(a){return arguments.length?(o=a,f):o},f.mode=function(a){return arguments.length?(n=a+"",f):n},ee(f,h)},ig.random={normal:function(a,b){var c=arguments.length;return 2>c&&(b=1),1>c&&(a=0),function(){var c,d,e;do c=2*Math.random()-1,d=2*Math.random()-1,e=c*c+d*d;while(!e||e>1);return a+b*c*Math.sqrt(-2*Math.log(e)/e)}},logNormal:function(){var a=ig.random.normal.apply(ig,arguments);return function(){return Math.exp(a())}},bates:function(a){var b=ig.random.irwinHall(a);return function(){return b()/a}},irwinHall:function(a){return function(){for(var b=0,c=0;a>c;c++)b+=Math.random();return b}}},ig.scale={};var yi={floor:t,ceil:t};ig.scale.linear=function(){return Xe([0,1],[0,1],td,!1)};var zi={s:1,g:1,p:1,r:1,e:1};ig.scale.log=function(){return df(ig.scale.linear().domain([0,1]),10,!0,[1,10])};var Ai=ig.format(".0e"),Bi={floor:function(a){return-Math.ceil(-a)},ceil:function(a){return-Math.floor(-a)}};ig.scale.pow=function(){return ef(ig.scale.linear(),1,[0,1])},ig.scale.sqrt=function(){return ig.scale.pow().exponent(.5)},ig.scale.ordinal=function(){return gf([],{t:"range",a:[[]]})},ig.scale.category10=function(){return ig.scale.ordinal().range(Ci)},ig.scale.category20=function(){return ig.scale.ordinal().range(Di)},ig.scale.category20b=function(){return ig.scale.ordinal().range(Ei)},ig.scale.category20c=function(){return ig.scale.ordinal().range(Fi)};var Ci=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(ua),Di=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(ua),Ei=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(ua),Fi=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(ua);ig.scale.quantile=function(){return hf([],[])},ig.scale.quantize=function(){return jf(0,1,[0,1])},ig.scale.threshold=function(){return kf([.5],[0,1])},ig.scale.identity=function(){return lf([0,1])},ig.svg={},ig.svg.arc=function(){function a(){var a=Math.max(0,+c.apply(this,arguments)),j=Math.max(0,+d.apply(this,arguments)),k=g.apply(this,arguments)-Qg,l=h.apply(this,arguments)-Qg,m=Math.abs(l-k),n=k>l?0:1;if(a>j&&(o=j,j=a,a=o),m>=Pg)return b(j,n)+(a?b(a,1-n):"")+"Z";var o,p,q,r,s,t,u,v,w,x,y,z,A=0,B=0,C=[];if((r=(+i.apply(this,arguments)||0)/2)&&(q=f===Gi?Math.sqrt(a*a+j*j):+f.apply(this,arguments),n||(B*=-1),j&&(B=ca(q/j*Math.sin(r))),a&&(A=ca(q/a*Math.sin(r)))),j){s=j*Math.cos(k+B),t=j*Math.sin(k+B),u=j*Math.cos(l-B),v=j*Math.sin(l-B);var D=Math.abs(l-k-2*B)<=Ng?0:1;if(B&&sf(s,t,u,v)===n^D){var E=(k+l)/2;s=j*Math.cos(E),t=j*Math.sin(E),u=v=null}}else s=t=0;if(a){w=a*Math.cos(l-A),x=a*Math.sin(l-A),y=a*Math.cos(k+A),z=a*Math.sin(k+A);var F=Math.abs(k-l+2*A)<=Ng?0:1;if(A&&sf(w,x,y,z)===1-n^F){var G=(k+l)/2;w=a*Math.cos(G),x=a*Math.sin(G),y=z=null}}else w=x=0;if(m>Lg&&(o=Math.min(Math.abs(j-a)/2,+e.apply(this,arguments)))>.001){p=j>a^n?0:1;var H=o,I=o;if(Ng>m){var J=null==y?[w,x]:null==u?[s,t]:Ic([s,t],[y,z],[u,v],[w,x]),K=s-J[0],L=t-J[1],M=u-J[0],N=v-J[1],O=1/Math.sin(Math.acos((K*M+L*N)/(Math.sqrt(K*K+L*L)*Math.sqrt(M*M+N*N)))/2),P=Math.sqrt(J[0]*J[0]+J[1]*J[1]);I=Math.min(o,(a-P)/(O-1)),H=Math.min(o,(j-P)/(O+1))}if(null!=u){var Q=tf(null==y?[w,x]:[y,z],[s,t],j,H,n),R=tf([u,v],[w,x],j,H,n);o===H?C.push("M",Q[0],"A",H,",",H," 0 0,",p," ",Q[1],"A",j,",",j," 0 ",1-n^sf(Q[1][0],Q[1][1],R[1][0],R[1][1]),",",n," ",R[1],"A",H,",",H," 0 0,",p," ",R[0]):C.push("M",Q[0],"A",H,",",H," 0 1,",p," ",R[0])}else C.push("M",s,",",t);if(null!=y){var S=tf([s,t],[y,z],a,-I,n),T=tf([w,x],null==u?[s,t]:[u,v],a,-I,n);o===I?C.push("L",T[0],"A",I,",",I," 0 0,",p," ",T[1],"A",a,",",a," 0 ",n^sf(T[1][0],T[1][1],S[1][0],S[1][1]),",",1-n," ",S[1],"A",I,",",I," 0 0,",p," ",S[0]):C.push("L",T[0],"A",I,",",I," 0 0,",p," ",S[0])}else C.push("L",w,",",x)}else C.push("M",s,",",t),null!=u&&C.push("A",j,",",j," 0 ",D,",",n," ",u,",",v),C.push("L",w,",",x),null!=y&&C.push("A",a,",",a," 0 ",F,",",1-n," ",y,",",z);return C.push("Z"),C.join("")}function b(a,b){return"M0,"+a+"A"+a+","+a+" 0 1,"+b+" 0,"+-a+"A"+a+","+a+" 0 1,"+b+" 0,"+a}var c=nf,d=of,e=mf,f=Gi,g=pf,h=qf,i=rf;return a.innerRadius=function(b){return arguments.length?(c=Ba(b),a):c},a.outerRadius=function(b){return arguments.length?(d=Ba(b),a):d},a.cornerRadius=function(b){return arguments.length?(e=Ba(b),a):e},a.padRadius=function(b){return arguments.length?(f=b==Gi?Gi:Ba(b),a):f},a.startAngle=function(b){return arguments.length?(g=Ba(b),a):g},a.endAngle=function(b){return arguments.length?(h=Ba(b),a):h},a.padAngle=function(b){return arguments.length?(i=Ba(b),a):i},a.centroid=function(){var a=(+c.apply(this,arguments)+ +d.apply(this,arguments))/2,b=(+g.apply(this,arguments)+ +h.apply(this,arguments))/2-Qg;return[Math.cos(b)*a,Math.sin(b)*a]},a};var Gi="auto";ig.svg.line=function(){return uf(t)};var Hi=ig.map({linear:vf,"linear-closed":wf,step:xf,"step-before":yf,"step-after":zf,basis:Ff,"basis-open":Gf,"basis-closed":Hf,bundle:If,cardinal:Cf,"cardinal-open":Af,"cardinal-closed":Bf,monotone:Of});Hi.forEach(function(a,b){b.key=a,b.closed=/-closed$/.test(a)});var Ii=[0,2/3,1/3,0],Ji=[0,1/3,2/3,0],Ki=[0,1/6,2/3,1/6];ig.svg.line.radial=function(){var a=uf(Pf);return a.radius=a.x,delete a.x,a.angle=a.y,delete a.y,a},yf.reverse=zf,zf.reverse=yf,ig.svg.area=function(){return Qf(t)},ig.svg.area.radial=function(){var a=Qf(Pf);return a.radius=a.x,delete a.x,a.innerRadius=a.x0,delete a.x0,a.outerRadius=a.x1,delete a.x1,a.angle=a.y,delete a.y,a.startAngle=a.y0,delete a.y0,a.endAngle=a.y1,delete a.y1,a},ig.svg.chord=function(){function a(a,h){var i=b(this,f,a,h),j=b(this,g,a,h);return"M"+i.p0+d(i.r,i.p1,i.a1-i.a0)+(c(i,j)?e(i.r,i.p1,i.r,i.p0):e(i.r,i.p1,j.r,j.p0)+d(j.r,j.p1,j.a1-j.a0)+e(j.r,j.p1,i.r,i.p0))+"Z"}function b(a,b,c,d){var e=b.call(a,c,d),f=h.call(a,e,d),g=i.call(a,e,d)-Qg,k=j.call(a,e,d)-Qg;return{r:f,a0:g,a1:k,p0:[f*Math.cos(g),f*Math.sin(g)],p1:[f*Math.cos(k),f*Math.sin(k)]}}function c(a,b){return a.a0==b.a0&&a.a1==b.a1}function d(a,b,c){return"A"+a+","+a+" 0 "+ +(c>Ng)+",1 "+b}function e(a,b,c,d){return"Q 0,0 "+d}var f=tc,g=uc,h=Rf,i=pf,j=qf;return a.radius=function(b){return arguments.length?(h=Ba(b),a):h},a.source=function(b){return arguments.length?(f=Ba(b),a):f},a.target=function(b){return arguments.length?(g=Ba(b),a):g},a.startAngle=function(b){return arguments.length?(i=Ba(b),a):i},a.endAngle=function(b){return arguments.length?(j=Ba(b),a):j},a},ig.svg.diagonal=function(){function a(a,e){var f=b.call(this,a,e),g=c.call(this,a,e),h=(f.y+g.y)/2,i=[f,{x:f.x,y:h},{x:g.x,y:h},g];return i=i.map(d),"M"+i[0]+"C"+i[1]+" "+i[2]+" "+i[3]}var b=tc,c=uc,d=Sf;return a.source=function(c){return arguments.length?(b=Ba(c),a):b},a.target=function(b){return arguments.length?(c=Ba(b),a):c},a.projection=function(b){return arguments.length?(d=b,a):d},a},ig.svg.diagonal.radial=function(){var a=ig.svg.diagonal(),b=Sf,c=a.projection;return a.projection=function(a){return arguments.length?c(Tf(b=a)):b},a},ig.svg.symbol=function(){function a(a,d){return(Li.get(b.call(this,a,d))||Wf)(c.call(this,a,d))}var b=Vf,c=Uf;return a.type=function(c){return arguments.length?(b=Ba(c),a):b},a.size=function(b){return arguments.length?(c=Ba(b),a):c},a};var Li=ig.map({circle:Wf,cross:function(a){var b=Math.sqrt(a/5)/2;return"M"+-3*b+","+-b+"H"+-b+"V"+-3*b+"H"+b+"V"+-b+"H"+3*b+"V"+b+"H"+b+"V"+3*b+"H"+-b+"V"+b+"H"+-3*b+"Z"},diamond:function(a){var b=Math.sqrt(a/(2*Ni)),c=b*Ni;return"M0,"+-b+"L"+c+",0 0,"+b+" "+-c+",0Z"},square:function(a){var b=Math.sqrt(a)/2;return"M"+-b+","+-b+"L"+b+","+-b+" "+b+","+b+" "+-b+","+b+"Z"},"triangle-down":function(a){var b=Math.sqrt(a/Mi),c=b*Mi/2;return"M0,"+c+"L"+b+","+-c+" "+-b+","+-c+"Z"},"triangle-up":function(a){var b=Math.sqrt(a/Mi),c=b*Mi/2;return"M0,"+-c+"L"+b+","+c+" "+-b+","+c+"Z"}});ig.svg.symbolTypes=Li.keys();var Mi=Math.sqrt(3),Ni=Math.tan(30*Rg);Dg.transition=function(a){for(var b,c,d=Oi||++Si,e=_f(a),f=[],g=Pi||{time:Date.now(),ease:Ad,delay:0,duration:250},h=-1,i=this.length;++h<i;){f.push(b=[]);for(var j=this[h],k=-1,l=j.length;++k<l;)(c=j[k])&&ag(c,k,e,d,g),b.push(c)}return Yf(f,e,d)},Dg.interrupt=function(a){return this.each(null==a?Qi:Xf(_f(a)))};var Oi,Pi,Qi=Xf(_f()),Ri=[],Si=0;Ri.call=Dg.call,Ri.empty=Dg.empty,Ri.node=Dg.node,Ri.size=Dg.size,ig.transition=function(a,b){return a&&a.transition?Oi?a.transition(b):a:ig.selection().transition(a)},ig.transition.prototype=Ri,Ri.select=function(a){var b,c,d,e=this.id,f=this.namespace,g=[];a=D(a);for(var h=-1,i=this.length;++h<i;){g.push(b=[]);for(var j=this[h],k=-1,l=j.length;++k<l;)(d=j[k])&&(c=a.call(d,d.__data__,k,h))?("__data__"in d&&(c.__data__=d.__data__),ag(c,k,f,e,d[f][e]),b.push(c)):b.push(null)}return Yf(g,f,e)},Ri.selectAll=function(a){var b,c,d,e,f,g=this.id,h=this.namespace,i=[];a=E(a);for(var j=-1,k=this.length;++j<k;)for(var l=this[j],m=-1,n=l.length;++m<n;)if(d=l[m]){f=d[h][g],c=a.call(d,d.__data__,m,j),i.push(b=[]);for(var o=-1,p=c.length;++o<p;)(e=c[o])&&ag(e,o,h,g,f),b.push(e)}return Yf(i,h,g)},Ri.filter=function(a){var b,c,d,e=[];"function"!=typeof a&&(a=Q(a));for(var f=0,g=this.length;g>f;f++){e.push(b=[]);for(var c=this[f],h=0,i=c.length;i>h;h++)(d=c[h])&&a.call(d,d.__data__,h,f)&&b.push(d)}return Yf(e,this.namespace,this.id)},Ri.tween=function(a,b){var c=this.id,d=this.namespace;return arguments.length<2?this.node()[d][c].tween.get(a):S(this,null==b?function(b){b[d][c].tween.remove(a)}:function(e){e[d][c].tween.set(a,b)})},Ri.attr=function(a,b){function c(){this.removeAttribute(h)}function d(){this.removeAttributeNS(h.space,h.local)}function e(a){return null==a?c:(a+="",function(){var b,c=this.getAttribute(h);return c!==a&&(b=g(c,a),function(a){this.setAttribute(h,b(a))})})}function f(a){return null==a?d:(a+="",function(){var b,c=this.getAttributeNS(h.space,h.local);return c!==a&&(b=g(c,a),function(a){this.setAttributeNS(h.space,h.local,b(a))})})}if(arguments.length<2){for(b in a)this.attr(b,a[b]);return this}var g="transform"==a?Vd:td,h=ig.ns.qualify(a);return Zf(this,"attr."+a,b,h.local?f:e)},Ri.attrTween=function(a,b){function c(a,c){var d=b.call(this,a,c,this.getAttribute(e));return d&&function(a){this.setAttribute(e,d(a))}}function d(a,c){var d=b.call(this,a,c,this.getAttributeNS(e.space,e.local));return d&&function(a){this.setAttributeNS(e.space,e.local,d(a))}}var e=ig.ns.qualify(a);return this.tween("attr."+a,e.local?d:c)},Ri.style=function(a,b,d){function e(){this.style.removeProperty(a)}function f(b){return null==b?e:(b+="",function(){var e,f=c(this).getComputedStyle(this,null).getPropertyValue(a);return f!==b&&(e=td(f,b),function(b){this.style.setProperty(a,e(b),d)})})}var g=arguments.length;if(3>g){if("string"!=typeof a){2>g&&(b="");for(d in a)this.style(d,a[d],b);return this}d=""}return Zf(this,"style."+a,b,f)},Ri.styleTween=function(a,b,d){function e(e,f){var g=b.call(this,e,f,c(this).getComputedStyle(this,null).getPropertyValue(a));return g&&function(b){this.style.setProperty(a,g(b),d)}}return arguments.length<3&&(d=""),this.tween("style."+a,e)},Ri.text=function(a){return Zf(this,"text",a,$f)},Ri.remove=function(){var a=this.namespace;return this.each("end.transition",function(){var b;this[a].count<2&&(b=this.parentNode)&&b.removeChild(this)})},Ri.ease=function(a){var b=this.id,c=this.namespace;return arguments.length<1?this.node()[c][b].ease:("function"!=typeof a&&(a=ig.ease.apply(ig,arguments)),S(this,function(d){d[c][b].ease=a}))},Ri.delay=function(a){var b=this.id,c=this.namespace;return arguments.length<1?this.node()[c][b].delay:S(this,"function"==typeof a?function(d,e,f){d[c][b].delay=+a.call(d,d.__data__,e,f)}:(a=+a,function(d){d[c][b].delay=a}))},Ri.duration=function(a){var b=this.id,c=this.namespace;return arguments.length<1?this.node()[c][b].duration:S(this,"function"==typeof a?function(d,e,f){d[c][b].duration=Math.max(1,a.call(d,d.__data__,e,f))}:(a=Math.max(1,a),function(d){d[c][b].duration=a}))},Ri.each=function(a,b){var c=this.id,d=this.namespace;if(arguments.length<2){var e=Pi,f=Oi;try{Oi=c,S(this,function(b,e,f){Pi=b[d][c],a.call(b,b.__data__,e,f)})}finally{Pi=e,Oi=f}}else S(this,function(e){var f=e[d][c];(f.event||(f.event=ig.dispatch("start","end","interrupt"))).on(a,b)});return this},Ri.transition=function(){for(var a,b,c,d,e=this.id,f=++Si,g=this.namespace,h=[],i=0,j=this.length;j>i;i++){h.push(a=[]);for(var b=this[i],k=0,l=b.length;l>k;k++)(c=b[k])&&(d=c[g][e],ag(c,k,g,f,{time:d.time,ease:d.ease,delay:d.delay+d.duration,duration:d.duration})),a.push(c)}return Yf(h,g,f)},ig.svg.axis=function(){function a(a){a.each(function(){var a,j=ig.select(this),k=this.__chart__||c,l=this.__chart__=c.copy(),m=null==i?l.ticks?l.ticks.apply(l,h):l.domain():i,n=null==b?l.tickFormat?l.tickFormat.apply(l,h):t:b,o=j.selectAll(".tick").data(m,l),p=o.enter().insert("g",".domain").attr("class","tick").style("opacity",Lg),q=ig.transition(o.exit()).style("opacity",Lg).remove(),r=ig.transition(o.order()).style("opacity",1),s=Math.max(e,0)+g,u=Se(l),v=j.selectAll(".domain").data([0]),w=(v.enter().append("path").attr("class","domain"),ig.transition(v));p.append("line"),p.append("text");var x,y,z,A,B=p.select("line"),C=r.select("line"),D=o.select("text").text(n),E=p.select("text"),F=r.select("text"),G="top"===d||"left"===d?-1:1;if("bottom"===d||"top"===d?(a=bg,x="x",z="y",y="x2",A="y2",D.attr("dy",0>G?"0em":".71em").style("text-anchor","middle"),w.attr("d","M"+u[0]+","+G*f+"V0H"+u[1]+"V"+G*f)):(a=cg,x="y",z="x",y="y2",A="x2",D.attr("dy",".32em").style("text-anchor",0>G?"end":"start"),w.attr("d","M"+G*f+","+u[0]+"H0V"+u[1]+"H"+G*f)),B.attr(A,G*e),E.attr(z,G*s),C.attr(y,0).attr(A,G*e),F.attr(x,0).attr(z,G*s),l.rangeBand){var H=l,I=H.rangeBand()/2;k=l=function(a){return H(a)+I}}else k.rangeBand?k=l:q.call(a,l,k);p.call(a,k,l),r.call(a,l,l)})}var b,c=ig.scale.linear(),d=Ti,e=6,f=6,g=3,h=[10],i=null;return a.scale=function(b){return arguments.length?(c=b,a):c},a.orient=function(b){return arguments.length?(d=b in Ui?b+"":Ti,a):d},a.ticks=function(){return arguments.length?(h=kg(arguments),a):h},a.tickValues=function(b){return arguments.length?(i=b,a):i},a.tickFormat=function(c){return arguments.length?(b=c,a):b},a.tickSize=function(b){var c=arguments.length;return c?(e=+b,f=+arguments[c-1],a):e},a.innerTickSize=function(b){return arguments.length?(e=+b,a):e},a.outerTickSize=function(b){return arguments.length?(f=+b,a):f},a.tickPadding=function(b){return arguments.length?(g=+b,a):g},a.tickSubdivide=function(){return arguments.length&&a},a};var Ti="bottom",Ui={top:1,right:1,bottom:1,left:1};ig.svg.brush=function(){function a(c){c.each(function(){var c=ig.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",f).on("touchstart.brush",f),g=c.selectAll(".background").data([0]);g.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),c.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var h=c.selectAll(".resize").data(p,t);h.exit().remove(),h.enter().append("g").attr("class",function(a){return"resize "+a}).style("cursor",function(a){return Vi[a]}).append("rect").attr("x",function(a){return/[ew]$/.test(a)?-3:null}).attr("y",function(a){return/^[ns]/.test(a)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),h.style("display",a.empty()?"none":null);var i,l=ig.transition(c),m=ig.transition(g);j&&(i=Se(j),m.attr("x",i[0]).attr("width",i[1]-i[0]),d(l)),k&&(i=Se(k),m.attr("y",i[0]).attr("height",i[1]-i[0]),e(l)),b(l)})}function b(a){a.selectAll(".resize").attr("transform",function(a){return"translate("+l[+/e$/.test(a)]+","+m[+/^s/.test(a)]+")"})}function d(a){a.select(".extent").attr("x",l[0]),a.selectAll(".extent,.n>rect,.s>rect").attr("width",l[1]-l[0])}function e(a){a.select(".extent").attr("y",m[0]),a.selectAll(".extent,.e>rect,.w>rect").attr("height",m[1]-m[0])}function f(){function f(){32==ig.event.keyCode&&(D||(t=null,F[0]-=l[1],F[1]-=m[1],D=2),z())}function p(){32==ig.event.keyCode&&2==D&&(F[0]+=l[1],F[1]+=m[1],D=0,z())}function q(){var a=ig.mouse(v),c=!1;u&&(a[0]+=u[0],a[1]+=u[1]),D||(ig.event.altKey?(t||(t=[(l[0]+l[1])/2,(m[0]+m[1])/2]),F[0]=l[+(a[0]<t[0])],F[1]=m[+(a[1]<t[1])]):t=null),B&&r(a,j,0)&&(d(y),c=!0),C&&r(a,k,1)&&(e(y),c=!0),c&&(b(y),x({type:"brush",mode:D?"move":"resize"}))}function r(a,b,c){var d,e,f=Se(b),i=f[0],j=f[1],k=F[c],p=c?m:l,q=p[1]-p[0];return D&&(i-=k,j-=q+k),d=(c?o:n)?Math.max(i,Math.min(j,a[c])):a[c],D?e=(d+=k)+q:(t&&(k=Math.max(i,Math.min(j,2*t[c]-d))),d>k?(e=d,d=k):e=k),p[0]!=d||p[1]!=e?(c?h=null:g=null,p[0]=d,p[1]=e,!0):void 0}function s(){q(),y.style("pointer-events","all").selectAll(".resize").style("display",a.empty()?"none":null),ig.select("body").style("cursor",null),G.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),E(),x({type:"brushend"})}var t,u,v=this,w=ig.select(ig.event.target),x=i.of(v,arguments),y=ig.select(v),A=w.datum(),B=!/^(n|s)$/.test(A)&&j,C=!/^(e|w)$/.test(A)&&k,D=w.classed("extent"),E=Y(v),F=ig.mouse(v),G=ig.select(c(v)).on("keydown.brush",f).on("keyup.brush",p);if(ig.event.changedTouches?G.on("touchmove.brush",q).on("touchend.brush",s):G.on("mousemove.brush",q).on("mouseup.brush",s),y.interrupt().selectAll("*").interrupt(),D)F[0]=l[0]-F[0],F[1]=m[0]-F[1];else if(A){var H=+/w$/.test(A),I=+/^n/.test(A);u=[l[1-H]-F[0],m[1-I]-F[1]],F[0]=l[H],F[1]=m[I]}else ig.event.altKey&&(t=F.slice());y.style("pointer-events","none").selectAll(".resize").style("display",null),ig.select("body").style("cursor",w.style("cursor")),x({type:"brushstart"}),q()}var g,h,i=B(a,"brushstart","brush","brushend"),j=null,k=null,l=[0,0],m=[0,0],n=!0,o=!0,p=Wi[0];return a.event=function(a){a.each(function(){var a=i.of(this,arguments),b={x:l,y:m,i:g,j:h},c=this.__chart__||b;this.__chart__=b,Oi?ig.select(this).transition().each("start.brush",function(){g=c.i,h=c.j,l=c.x,m=c.y,a({type:"brushstart"})}).tween("brush:brush",function(){var c=ud(l,b.x),d=ud(m,b.y);return g=h=null,function(e){l=b.x=c(e),m=b.y=d(e),a({type:"brush",mode:"resize"})}}).each("end.brush",function(){g=b.i,h=b.j,a({type:"brush",mode:"resize"}),a({type:"brushend"})}):(a({type:"brushstart"}),a({type:"brush",mode:"resize"}),a({type:"brushend"}))})},a.x=function(b){return arguments.length?(j=b,p=Wi[!j<<1|!k],a):j},a.y=function(b){return arguments.length?(k=b,p=Wi[!j<<1|!k],a):k},a.clamp=function(b){return arguments.length?(j&&k?(n=!!b[0],o=!!b[1]):j?n=!!b:k&&(o=!!b),a):j&&k?[n,o]:j?n:k?o:null},a.extent=function(b){var c,d,e,f,i;return arguments.length?(j&&(c=b[0],d=b[1],k&&(c=c[0],d=d[0]),g=[c,d],j.invert&&(c=j(c),d=j(d)),c>d&&(i=c,c=d,d=i),c==l[0]&&d==l[1]||(l=[c,d])),k&&(e=b[0],f=b[1],j&&(e=e[1],f=f[1]),h=[e,f],k.invert&&(e=k(e),f=k(f)),e>f&&(i=e,e=f,f=i),e==m[0]&&f==m[1]||(m=[e,f])),a):(j&&(g?(c=g[0],d=g[1]):(c=l[0],d=l[1],j.invert&&(c=j.invert(c),d=j.invert(d)),c>d&&(i=c,c=d,d=i))),k&&(h?(e=h[0],f=h[1]):(e=m[0],f=m[1],k.invert&&(e=k.invert(e),f=k.invert(f)),e>f&&(i=e,e=f,f=i))),j&&k?[[c,e],[d,f]]:j?[c,d]:k&&[e,f])},a.clear=function(){return a.empty()||(l=[0,0],m=[0,0],g=h=null),a},a.empty=function(){return!!j&&l[0]==l[1]||!!k&&m[0]==m[1]},ig.rebind(a,i,"on")};var Vi={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Wi=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Xi=oh.format=uh.timeFormat,Yi=Xi.utc,Zi=Yi("%Y-%m-%dT%H:%M:%S.%LZ");Xi.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?dg:Zi,dg.parse=function(a){var b=new Date(a);return isNaN(b)?null:b},dg.toString=Zi.toString,oh.second=Pa(function(a){return new ph(1e3*Math.floor(a/1e3))},function(a,b){a.setTime(a.getTime()+1e3*Math.floor(b))},function(a){return a.getSeconds()}),oh.seconds=oh.second.range,oh.seconds.utc=oh.second.utc.range,oh.minute=Pa(function(a){return new ph(6e4*Math.floor(a/6e4))},function(a,b){a.setTime(a.getTime()+6e4*Math.floor(b))},function(a){return a.getMinutes()}),oh.minutes=oh.minute.range,oh.minutes.utc=oh.minute.utc.range,oh.hour=Pa(function(a){var b=a.getTimezoneOffset()/60;return new ph(36e5*(Math.floor(a/36e5-b)+b))},function(a,b){a.setTime(a.getTime()+36e5*Math.floor(b))},function(a){return a.getHours()}),oh.hours=oh.hour.range,oh.hours.utc=oh.hour.utc.range,oh.month=Pa(function(a){return a=oh.day(a),a.setDate(1),a},function(a,b){a.setMonth(a.getMonth()+b)},function(a){return a.getMonth()}),oh.months=oh.month.range,oh.months.utc=oh.month.utc.range;var $i=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],_i=[[oh.second,1],[oh.second,5],[oh.second,15],[oh.second,30],[oh.minute,1],[oh.minute,5],[oh.minute,15],[oh.minute,30],[oh.hour,1],[oh.hour,3],[oh.hour,6],[oh.hour,12],[oh.day,1],[oh.day,2],[oh.week,1],[oh.month,1],[oh.month,3],[oh.year,1]],aj=Xi.multi([[".%L",function(a){return a.getMilliseconds()}],[":%S",function(a){return a.getSeconds()}],["%I:%M",function(a){return a.getMinutes()}],["%I %p",function(a){return a.getHours()}],["%a %d",function(a){return a.getDay()&&1!=a.getDate()}],["%b %d",function(a){return 1!=a.getDate()}],["%B",function(a){return a.getMonth()}],["%Y",Eb]]),bj={range:function(a,b,c){return ig.range(Math.ceil(a/c)*c,+b,c).map(fg)},floor:t,ceil:t};_i.year=oh.year,oh.scale=function(){return eg(ig.scale.linear(),_i,aj)};var cj=_i.map(function(a){return[a[0].utc,a[1]]}),dj=Yi.multi([[".%L",function(a){return a.getUTCMilliseconds()}],[":%S",function(a){return a.getUTCSeconds()}],["%I:%M",function(a){return a.getUTCMinutes()}],["%I %p",function(a){return a.getUTCHours()}],["%a %d",function(a){return a.getUTCDay()&&1!=a.getUTCDate()}],["%b %d",function(a){return 1!=a.getUTCDate()}],["%B",function(a){return a.getUTCMonth()}],["%Y",Eb]]);cj.year=oh.year.utc,oh.scale.utc=function(){return eg(ig.scale.linear(),cj,dj)},ig.text=Ca(function(a){return a.responseText}),ig.json=function(a,b){return Da(a,"application/json",gg,b)},ig.html=function(a,b){return Da(a,"text/html",hg,b)},ig.xml=Ca(function(a){return a.responseXML}),"function"==typeof define&&define.amd?(this.d3=ig,define(ig)):"object"==typeof b&&b.exports?b.exports=ig:this.d3=ig}()},{}],2:[function(a,b,c){b.exports={graphlib:a("./lib/graphlib"),dagre:a("./lib/dagre"),intersect:a("./lib/intersect"),render:a("./lib/render"),util:a("./lib/util"),version:a("./lib/version")}},{"./lib/dagre":9,"./lib/graphlib":10,"./lib/intersect":11,"./lib/render":26,"./lib/util":28,"./lib/version":29}],3:[function(a,b,c){function d(a,b,c,d){var e=a.append("marker").attr("id",b).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),f=e.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");g.applyStyle(f,c[d+"Style"]),c[d+"Class"]&&f.attr("class",c[d+"Class"])}function e(a,b,c,d){var e=a.append("marker").attr("id",b).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),f=e.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");g.applyStyle(f,c[d+"Style"]),c[d+"Class"]&&f.attr("class",c[d+"Class"])}function f(a,b,c,d){var e=a.append("marker").attr("id",b).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),f=e.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");g.applyStyle(f,c[d+"Style"]),c[d+"Class"]&&f.attr("class",c[d+"Class"])}var g=a("./util");b.exports={"default":d,normal:d,vee:e,undirected:f}},{"./util":28}],4:[function(a,b,c){function d(a,b){var c=b.nodes().filter(function(a){return e.isSubgraph(b,a)}),d=a.selectAll("g.cluster").data(c,function(a){return a});return d.selectAll("*").remove(),d.enter().append("g").attr("class","cluster").attr("id",function(a){var c=b.node(a);return c.id}).style("opacity",0),e.applyTransition(d,b).style("opacity",1),d.each(function(a){var c=b.node(a),d=d3.select(this);d3.select(this).append("rect");var e=d.append("g").attr("class","label");f(e,c,c.clusterLabelPos)}),d.selectAll("rect").each(function(a){var c=b.node(a),d=d3.select(this);e.applyStyle(d,c.style)}),e.applyTransition(d.exit(),b).style("opacity",0).remove(),d}var e=a("./util"),f=a("./label/add-label");b.exports=d},{"./label/add-label":19,"./util":28}],5:[function(a,b,c){"use strict";function d(a,b){var c=a.selectAll("g.edgeLabel").data(b.edges(),function(a){return g.edgeToId(a)}).classed("update",!0);return c.selectAll("*").remove(),c.enter().append("g").classed("edgeLabel",!0).style("opacity",0),c.each(function(a){var c=b.edge(a),d=f(h.select(this),b.edge(a),0,0).classed("label",!0),g=d.node().getBBox();c.labelId&&d.attr("id",c.labelId),e.has(c,"width")||(c.width=g.width),e.has(c,"height")||(c.height=g.height)}),g.applyTransition(c.exit(),b).style("opacity",0).remove(),c}var e=a("./lodash"),f=a("./label/add-label"),g=a("./util"),h=a("./d3");b.exports=d},{"./d3":8,"./label/add-label":19,"./lodash":22,"./util":28}],6:[function(a,b,c){"use strict";function d(a,b,c){var d=a.selectAll("g.edgePath").data(b.edges(),function(a){return m.edgeToId(a)}).classed("update",!0);return i(d,b),j(d,b),m.applyTransition(d,b).style("opacity",1),d.each(function(a){var c=n.select(this),d=b.edge(a);d.elem=this,d.id&&c.attr("id",d.id),m.applyClass(c,d["class"],(c.classed("update")?"update ":"")+"edgePath")}),d.selectAll("path.path").each(function(a){var c=b.edge(a);c.arrowheadId=k.uniqueId("arrowhead");var d=n.select(this).attr("marker-end",function(){return"url("+e(location.href,c.arrowheadId)+")"}).style("fill","none");m.applyTransition(d,b).attr("d",function(a){return f(b,a)}),m.applyStyle(d,c.style)}),d.selectAll("defs *").remove(),d.selectAll("defs").each(function(a){var d=b.edge(a),e=c[d.arrowhead];e(n.select(this),d.arrowheadId,d,"arrowhead")}),d}function e(a,b){var c=a.split("#")[0];return c+"#"+b}function f(a,b){var c=a.edge(b),d=a.node(b.v),e=a.node(b.w),f=c.points.slice(1,c.points.length-1);return f.unshift(l(d,f[0])),f.push(l(e,f[f.length-1])),g(c,f)}function g(a,b){var c=n.svg.line().x(function(a){return a.x}).y(function(a){return a.y});return k.has(a,"lineInterpolate")&&c.interpolate(a.lineInterpolate),k.has(a,"lineTension")&&c.tension(Number(a.lineTension)),c(b)}function h(a){var b=a.getBBox(),c=a.ownerSVGElement.getScreenCTM().inverse().multiply(a.getScreenCTM()).translate(b.width/2,b.height/2);return{x:c.e,y:c.f}}function i(a,b){var c=a.enter().append("g").attr("class","edgePath").style("opacity",0);c.append("path").attr("class","path").attr("d",function(a){var c=b.edge(a),d=b.node(a.v).elem,e=k.range(c.points.length).map(function(){return h(d)});return g(c,e)}),c.append("defs")}function j(a,b){var c=a.exit();m.applyTransition(c,b).style("opacity",0).remove(),m.applyTransition(c.select("path.path"),b).attr("d",function(a){var c=b.node(a.v);if(c){var d=k.range(this.getTotalLength()).map(function(){return c});return g({},d)}return n.select(this).attr("d")})}var k=a("./lodash"),l=a("./intersect/intersect-node"),m=a("./util"),n=a("./d3");b.exports=d},{"./d3":8,"./intersect/intersect-node":15,"./lodash":22,"./util":28}],7:[function(a,b,c){"use strict";function d(a,b,c){var d=b.nodes().filter(function(a){return!g.isSubgraph(b,a)}),i=a.selectAll("g.node").data(d,function(a){return a}).classed("update",!0);return i.selectAll("*").remove(),i.enter().append("g").attr("class","node").style("opacity",0),i.each(function(a){var d=b.node(a),i=h.select(this),j=i.append("g").attr("class","label"),k=f(j,d),l=c[d.shape],m=e.pick(k.node().getBBox(),"width","height");d.elem=this,d.id&&i.attr("id",d.id),d.labelId&&j.attr("id",d.labelId),g.applyClass(i,d["class"],(i.classed("update")?"update ":"")+"node"),e.has(d,"width")&&(m.width=d.width),e.has(d,"height")&&(m.height=d.height),m.width+=d.paddingLeft+d.paddingRight,m.height+=d.paddingTop+d.paddingBottom,j.attr("transform","translate("+(d.paddingLeft-d.paddingRight)/2+","+(d.paddingTop-d.paddingBottom)/2+")");var n=l(h.select(this),m,d);g.applyStyle(n,d.style);var o=n.node().getBBox();d.width=o.width,d.height=o.height}),g.applyTransition(i.exit(),b).style("opacity",0).remove(),i}var e=a("./lodash"),f=a("./label/add-label"),g=a("./util"),h=a("./d3");b.exports=d},{"./d3":8,"./label/add-label":19,"./lodash":22,"./util":28}],8:[function(a,b,c){b.exports=window.d3},{}],9:[function(a,b,c){var d;if(a)try{d=a("dagre")}catch(e){}d||(d=window.dagre),b.exports=d},{dagre:51}],10:[function(a,b,c){var d;if(a)try{d=a("graphlib")}catch(e){}d||(d=window.graphlib),b.exports=d},{graphlib:30}],11:[function(a,b,c){b.exports={node:a("./intersect-node"),circle:a("./intersect-circle"),ellipse:a("./intersect-ellipse"),polygon:a("./intersect-polygon"),rect:a("./intersect-rect")}},{"./intersect-circle":12,"./intersect-ellipse":13,"./intersect-node":15,"./intersect-polygon":16,"./intersect-rect":17}],12:[function(a,b,c){function d(a,b,c){return e(a,b,b,c)}var e=a("./intersect-ellipse");b.exports=d},{"./intersect-ellipse":13}],13:[function(a,b,c){function d(a,b,c,d){var e=a.x,f=a.y,g=e-d.x,h=f-d.y,i=Math.sqrt(b*b*h*h+c*c*g*g),j=Math.abs(b*c*g/i);d.x<e&&(j=-j);var k=Math.abs(b*c*h/i);return d.y<f&&(k=-k),{x:e+j,y:f+k}}b.exports=d},{}],14:[function(a,b,c){function d(a,b,c,d){var f,g,h,i,j,k,l,m,n,o,p,q,r,s,t;return f=b.y-a.y,h=a.x-b.x,j=b.x*a.y-a.x*b.y,n=f*c.x+h*c.y+j,o=f*d.x+h*d.y+j,0!==n&&0!==o&&e(n,o)||(g=d.y-c.y,i=c.x-d.x,k=d.x*c.y-c.x*d.y,l=g*a.x+i*a.y+k,m=g*b.x+i*b.y+k,0!==l&&0!==m&&e(l,m)||(p=f*i-g*h,0===p))?void 0:(q=Math.abs(p/2),r=h*k-i*j,s=0>r?(r-q)/p:(r+q)/p,r=g*j-f*k,t=0>r?(r-q)/p:(r+q)/p,{x:s,y:t})}function e(a,b){return a*b>0}b.exports=d},{}],15:[function(a,b,c){function d(a,b){return a.intersect(b)}b.exports=d},{}],16:[function(a,b,c){function d(a,b,c){var d=a.x,f=a.y,g=[],h=Number.POSITIVE_INFINITY,i=Number.POSITIVE_INFINITY;b.forEach(function(a){h=Math.min(h,a.x),i=Math.min(i,a.y);
6
- });for(var j=d-a.width/2-h,k=f-a.height/2-i,l=0;l<b.length;l++){var m=b[l],n=b[l<b.length-1?l+1:0],o=e(a,c,{x:j+m.x,y:k+m.y},{x:j+n.x,y:k+n.y});o&&g.push(o)}return g.length?(g.length>1&&g.sort(function(a,b){var d=a.x-c.x,e=a.y-c.y,f=Math.sqrt(d*d+e*e),g=b.x-c.x,h=b.y-c.y,i=Math.sqrt(g*g+h*h);return i>f?-1:f===i?0:1}),g[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",a),a)}var e=a("./intersect-line");b.exports=d},{"./intersect-line":14}],17:[function(a,b,c){function d(a,b){var c,d,e=a.x,f=a.y,g=b.x-e,h=b.y-f,i=a.width/2,j=a.height/2;return Math.abs(h)*i>Math.abs(g)*j?(0>h&&(j=-j),c=0===h?0:j*g/h,d=j):(0>g&&(i=-i),c=i,d=0===g?0:i*h/g),{x:e+c,y:f+d}}b.exports=d},{}],18:[function(a,b,c){function d(a,b){var c=a.append("foreignObject").attr("width","100000"),d=c.append("xhtml:div");d.attr("xmlns","http://www.w3.org/1999/xhtml");var f=b.label;switch(typeof f){case"function":d.insert(f);break;case"object":d.insert(function(){return f});break;default:d.html(f)}e.applyStyle(d,b.labelStyle),d.style("display","inline-block"),d.style("white-space","nowrap");var g=d[0][0].getBoundingClientRect();return c.attr("width",g.width).attr("height",g.height),c}var e=a("../util");b.exports=d},{"../util":28}],19:[function(a,b,c){function d(a,b,c){var d=b.label,h=a.append("g");"svg"===b.labelType?g(h,b):"string"!=typeof d||"html"===b.labelType?f(h,b):e(h,b);var i,j=h.node().getBBox();switch(c){case"top":i=-b.height/2;break;case"bottom":i=b.height/2-j.height;break;default:i=-j.height/2}return h.attr("transform","translate("+-j.width/2+","+i+")"),h}var e=a("./add-text-label"),f=a("./add-html-label"),g=a("./add-svg-label");b.exports=d},{"./add-html-label":18,"./add-svg-label":20,"./add-text-label":21}],20:[function(a,b,c){function d(a,b){var c=a;return c.node().appendChild(b.label),e.applyStyle(c,b.labelStyle),c}var e=a("../util");b.exports=d},{"../util":28}],21:[function(a,b,c){function d(a,b){for(var c=a.append("text"),d=e(b.label).split("\n"),g=0;g<d.length;g++)c.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(d[g]);return f.applyStyle(c,b.labelStyle),c}function e(a){for(var b,c="",d=!1,e=0;e<a.length;++e)if(b=a[e],d){switch(b){case"n":c+="\n";break;default:c+=b}d=!1}else"\\"===b?d=!0:c+=b;return c}var f=a("../util");b.exports=d},{"../util":28}],22:[function(a,b,c){var d;if(a)try{d=a("lodash")}catch(e){}d||(d=window._),b.exports=d},{lodash:50}],23:[function(a,b,c){"use strict";function d(a,b){function c(a){var c=b.node(a);return"translate("+c.x+","+c.y+")"}var d=a.filter(function(){return!f.select(this).classed("update")});d.attr("transform",c),e.applyTransition(a,b).style("opacity",1).attr("transform",c),e.applyTransition(d.selectAll("rect"),b).attr("width",function(a){return b.node(a).width}).attr("height",function(a){return b.node(a).height}).attr("x",function(a){var c=b.node(a);return-c.width/2}).attr("y",function(a){var c=b.node(a);return-c.height/2})}var e=a("./util"),f=a("./d3");b.exports=d},{"./d3":8,"./util":28}],24:[function(a,b,c){"use strict";function d(a,b){function c(a){var c=b.edge(a);return g.has(c,"x")?"translate("+c.x+","+c.y+")":""}var d=a.filter(function(){return!f.select(this).classed("update")});d.attr("transform",c),e.applyTransition(a,b).style("opacity",1).attr("transform",c)}var e=a("./util"),f=a("./d3"),g=a("./lodash");b.exports=d},{"./d3":8,"./lodash":22,"./util":28}],25:[function(a,b,c){"use strict";function d(a,b){function c(a){var c=b.node(a);return"translate("+c.x+","+c.y+")"}var d=a.filter(function(){return!f.select(this).classed("update")});d.attr("transform",c),e.applyTransition(a,b).style("opacity",1).attr("transform",c)}var e=a("./util"),f=a("./d3");b.exports=d},{"./d3":8,"./util":28}],26:[function(a,b,c){function d(){var b=a("./create-nodes"),c=a("./create-clusters"),d=a("./create-edge-labels"),h=a("./create-edge-paths"),j=a("./position-nodes"),k=a("./position-edge-labels"),l=a("./position-clusters"),m=a("./shapes"),n=a("./arrows"),o=function(a,o){e(o);var p=g(a,"output"),q=g(p,"clusters"),r=g(p,"edgePaths"),s=d(g(p,"edgeLabels"),o),t=b(g(p,"nodes"),o,m);i(o),j(t,o),k(s,o),h(r,o,n);var u=c(q,o);l(u,o),f(o)};return o.createNodes=function(a){return arguments.length?(b=a,o):b},o.createClusters=function(a){return arguments.length?(c=a,o):c},o.createEdgeLabels=function(a){return arguments.length?(d=a,o):d},o.createEdgePaths=function(a){return arguments.length?(h=a,o):h},o.shapes=function(a){return arguments.length?(m=a,o):m},o.arrows=function(a){return arguments.length?(n=a,o):n},o}function e(a){a.nodes().forEach(function(b){var c=a.node(b);h.has(c,"label")||a.children(b).length||(c.label=b),h.has(c,"paddingX")&&h.defaults(c,{paddingLeft:c.paddingX,paddingRight:c.paddingX}),h.has(c,"paddingY")&&h.defaults(c,{paddingTop:c.paddingY,paddingBottom:c.paddingY}),h.has(c,"padding")&&h.defaults(c,{paddingLeft:c.padding,paddingRight:c.padding,paddingTop:c.padding,paddingBottom:c.padding}),h.defaults(c,j),h.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(a){c[a]=Number(c[a])}),h.has(c,"width")&&(c._prevWidth=c.width),h.has(c,"height")&&(c._prevHeight=c.height)}),a.edges().forEach(function(b){var c=a.edge(b);h.has(c,"label")||(c.label=""),h.defaults(c,k)})}function f(a){h.each(a.nodes(),function(b){var c=a.node(b);h.has(c,"_prevWidth")?c.width=c._prevWidth:delete c.width,h.has(c,"_prevHeight")?c.height=c._prevHeight:delete c.height,delete c._prevWidth,delete c._prevHeight})}function g(a,b){var c=a.select("g."+b);return c.empty()&&(c=a.append("g").attr("class",b)),c}var h=a("./lodash"),i=a("./dagre").layout;b.exports=d;var j={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},k={arrowhead:"normal",lineInterpolate:"linear"}},{"./arrows":3,"./create-clusters":4,"./create-edge-labels":5,"./create-edge-paths":6,"./create-nodes":7,"./dagre":9,"./lodash":22,"./position-clusters":23,"./position-edge-labels":24,"./position-nodes":25,"./shapes":27}],27:[function(a,b,c){"use strict";function d(a,b,c){var d=a.insert("rect",":first-child").attr("rx",c.rx).attr("ry",c.ry).attr("x",-b.width/2).attr("y",-b.height/2).attr("width",b.width).attr("height",b.height);return c.intersect=function(a){return h(c,a)},d}function e(a,b,c){var d=b.width/2,e=b.height/2,f=a.insert("ellipse",":first-child").attr("x",-b.width/2).attr("y",-b.height/2).attr("rx",d).attr("ry",e);return c.intersect=function(a){return i(c,d,e,a)},f}function f(a,b,c){var d=Math.max(b.width,b.height)/2,e=a.insert("circle",":first-child").attr("x",-b.width/2).attr("y",-b.height/2).attr("r",d);return c.intersect=function(a){return j(c,d,a)},e}function g(a,b,c){var d=b.width*Math.SQRT2/2,e=b.height*Math.SQRT2/2,f=[{x:0,y:-e},{x:-d,y:0},{x:0,y:e},{x:d,y:0}],g=a.insert("polygon",":first-child").attr("points",f.map(function(a){return a.x+","+a.y}).join(" "));return c.intersect=function(a){return k(c,f,a)},g}var h=a("./intersect/intersect-rect"),i=a("./intersect/intersect-ellipse"),j=a("./intersect/intersect-circle"),k=a("./intersect/intersect-polygon");b.exports={rect:d,ellipse:e,circle:f,diamond:g}},{"./intersect/intersect-circle":12,"./intersect/intersect-ellipse":13,"./intersect/intersect-polygon":16,"./intersect/intersect-rect":17}],28:[function(a,b,c){function d(a,b){return!!a.children(b).length}function e(a){return f(a.v)+":"+f(a.w)+":"+f(a.name)}function f(a){return a?String(a).replace(k,"\\:"):""}function g(a,b){b&&a.attr("style",b)}function h(a,b,c){b&&a.attr("class",b).attr("class",c+" "+a.attr("class"))}function i(a,b){var c=b.graph();if(j.isPlainObject(c)){var d=c.transition;if(j.isFunction(d))return d(a)}return a}var j=a("./lodash");b.exports={isSubgraph:d,edgeToId:e,applyStyle:g,applyClass:h,applyTransition:i};var k=/:/g},{"./lodash":22}],29:[function(a,b,c){b.exports="0.4.17"},{}],30:[function(a,b,c){var d=a("./lib");b.exports={Graph:d.Graph,json:a("./lib/json"),alg:a("./lib/alg"),version:d.version}},{"./lib":46,"./lib/alg":37,"./lib/json":47}],31:[function(a,b,c){function d(a){function b(f){e.has(d,f)||(d[f]=!0,c.push(f),e.each(a.successors(f),b),e.each(a.predecessors(f),b))}var c,d={},f=[];return e.each(a.nodes(),function(a){c=[],b(a),c.length&&f.push(c)}),f}var e=a("../lodash");b.exports=d},{"../lodash":48}],32:[function(a,b,c){function d(a,b,c){f.isArray(b)||(b=[b]);var d=[],g={};return f.each(b,function(b){if(!a.hasNode(b))throw new Error("Graph does not have node: "+b);e(a,b,"post"===c,g,d)}),d}function e(a,b,c,d,g){f.has(d,b)||(d[b]=!0,c||g.push(b),f.each(a.neighbors(b),function(b){e(a,b,c,d,g)}),c&&g.push(b))}var f=a("../lodash");b.exports=d},{"../lodash":48}],33:[function(a,b,c){function d(a,b,c){return f.transform(a.nodes(),function(d,f){d[f]=e(a,f,b,c)},{})}var e=a("./dijkstra"),f=a("../lodash");b.exports=d},{"../lodash":48,"./dijkstra":34}],34:[function(a,b,c){function d(a,b,c,d){return e(a,String(b),c||h,d||function(b){return a.outEdges(b)})}function e(a,b,c,d){var e,f,h={},i=new g,j=function(a){var b=a.v!==e?a.v:a.w,d=h[b],g=c(a),j=f.distance+g;if(0>g)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+a+" Weight: "+g);j<d.distance&&(d.distance=j,d.predecessor=e,i.decrease(b,j))};for(a.nodes().forEach(function(a){var c=a===b?0:Number.POSITIVE_INFINITY;h[a]={distance:c},i.add(a,c)});i.size()>0&&(e=i.removeMin(),f=h[e],f.distance!==Number.POSITIVE_INFINITY);)d(e).forEach(j);return h}var f=a("../lodash"),g=a("../data/priority-queue");b.exports=d;var h=f.constant(1)},{"../data/priority-queue":44,"../lodash":48}],35:[function(a,b,c){function d(a){return e.filter(f(a),function(b){return b.length>1||1===b.length&&a.hasEdge(b[0],b[0])})}var e=a("../lodash"),f=a("./tarjan");b.exports=d},{"../lodash":48,"./tarjan":42}],36:[function(a,b,c){function d(a,b,c){return e(a,b||g,c||function(b){return a.outEdges(b)})}function e(a,b,c){var d={},e=a.nodes();return e.forEach(function(a){d[a]={},d[a][a]={distance:0},e.forEach(function(b){a!==b&&(d[a][b]={distance:Number.POSITIVE_INFINITY})}),c(a).forEach(function(c){var e=c.v===a?c.w:c.v,f=b(c);d[a][e]={distance:f,predecessor:a}})}),e.forEach(function(a){var b=d[a];e.forEach(function(c){var f=d[c];e.forEach(function(c){var d=f[a],e=b[c],g=f[c],h=d.distance+e.distance;h<g.distance&&(g.distance=h,g.predecessor=e.predecessor)})})}),d}var f=a("../lodash");b.exports=d;var g=f.constant(1)},{"../lodash":48}],37:[function(a,b,c){b.exports={components:a("./components"),dijkstra:a("./dijkstra"),dijkstraAll:a("./dijkstra-all"),findCycles:a("./find-cycles"),floydWarshall:a("./floyd-warshall"),isAcyclic:a("./is-acyclic"),postorder:a("./postorder"),preorder:a("./preorder"),prim:a("./prim"),tarjan:a("./tarjan"),topsort:a("./topsort")}},{"./components":31,"./dijkstra":34,"./dijkstra-all":33,"./find-cycles":35,"./floyd-warshall":36,"./is-acyclic":38,"./postorder":39,"./preorder":40,"./prim":41,"./tarjan":42,"./topsort":43}],38:[function(a,b,c){function d(a){try{e(a)}catch(b){if(b instanceof e.CycleException)return!1;throw b}return!0}var e=a("./topsort");b.exports=d},{"./topsort":43}],39:[function(a,b,c){function d(a,b){return e(a,b,"post")}var e=a("./dfs");b.exports=d},{"./dfs":32}],40:[function(a,b,c){function d(a,b){return e(a,b,"pre")}var e=a("./dfs");b.exports=d},{"./dfs":32}],41:[function(a,b,c){function d(a,b){function c(a){var c=a.v===d?a.w:a.v,e=j.priority(c);if(void 0!==e){var f=b(a);e>f&&(i[c]=d,j.decrease(c,f))}}var d,h=new f,i={},j=new g;if(0===a.nodeCount())return h;e.each(a.nodes(),function(a){j.add(a,Number.POSITIVE_INFINITY),h.setNode(a)}),j.decrease(a.nodes()[0],0);for(var k=!1;j.size()>0;){if(d=j.removeMin(),e.has(i,d))h.setEdge(d,i[d]);else{if(k)throw new Error("Input graph is not connected: "+a);k=!0}a.nodeEdges(d).forEach(c)}return h}var e=a("../lodash"),f=a("../graph"),g=a("../data/priority-queue");b.exports=d},{"../data/priority-queue":44,"../graph":45,"../lodash":48}],42:[function(a,b,c){function d(a){function b(h){var i=f[h]={onStack:!0,lowlink:c,index:c++};if(d.push(h),a.successors(h).forEach(function(a){e.has(f,a)?f[a].onStack&&(i.lowlink=Math.min(i.lowlink,f[a].index)):(b(a),i.lowlink=Math.min(i.lowlink,f[a].lowlink))}),i.lowlink===i.index){var j,k=[];do j=d.pop(),f[j].onStack=!1,k.push(j);while(h!==j);g.push(k)}}var c=0,d=[],f={},g=[];return a.nodes().forEach(function(a){e.has(f,a)||b(a)}),g}var e=a("../lodash");b.exports=d},{"../lodash":48}],43:[function(a,b,c){function d(a){function b(h){if(f.has(d,h))throw new e;f.has(c,h)||(d[h]=!0,c[h]=!0,f.each(a.predecessors(h),b),delete d[h],g.push(h))}var c={},d={},g=[];if(f.each(a.sinks(),b),f.size(c)!==a.nodeCount())throw new e;return g}function e(){}var f=a("../lodash");b.exports=d,d.CycleException=e},{"../lodash":48}],44:[function(a,b,c){function d(){this._arr=[],this._keyIndices={}}var e=a("../lodash");b.exports=d,d.prototype.size=function(){return this._arr.length},d.prototype.keys=function(){return this._arr.map(function(a){return a.key})},d.prototype.has=function(a){return e.has(this._keyIndices,a)},d.prototype.priority=function(a){var b=this._keyIndices[a];return void 0!==b?this._arr[b].priority:void 0},d.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},d.prototype.add=function(a,b){var c=this._keyIndices;if(a=String(a),!e.has(c,a)){var d=this._arr,f=d.length;return c[a]=f,d.push({key:a,priority:b}),this._decrease(f),!0}return!1},d.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var a=this._arr.pop();return delete this._keyIndices[a.key],this._heapify(0),a.key},d.prototype.decrease=function(a,b){var c=this._keyIndices[a];if(b>this._arr[c].priority)throw new Error("New priority is greater than current priority. Key: "+a+" Old: "+this._arr[c].priority+" New: "+b);this._arr[c].priority=b,this._decrease(c)},d.prototype._heapify=function(a){var b=this._arr,c=2*a,d=c+1,e=a;c<b.length&&(e=b[c].priority<b[e].priority?c:e,d<b.length&&(e=b[d].priority<b[e].priority?d:e),e!==a&&(this._swap(a,e),this._heapify(e)))},d.prototype._decrease=function(a){for(var b,c=this._arr,d=c[a].priority;0!==a&&(b=a>>1,!(c[b].priority<d));)this._swap(a,b),a=b},d.prototype._swap=function(a,b){var c=this._arr,d=this._keyIndices,e=c[a],f=c[b];c[a]=f,c[b]=e,d[f.key]=a,d[e.key]=b}},{"../lodash":48}],45:[function(a,b,c){"use strict";function d(a){this._isDirected=j.has(a,"directed")?a.directed:!0,this._isMultigraph=j.has(a,"multigraph")?a.multigraph:!1,this._isCompound=j.has(a,"compound")?a.compound:!1,this._label=void 0,this._defaultNodeLabelFn=j.constant(void 0),this._defaultEdgeLabelFn=j.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[l]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function e(a,b){a[b]?a[b]++:a[b]=1}function f(a,b){--a[b]||delete a[b]}function g(a,b,c,d){var e=""+b,f=""+c;if(!a&&e>f){var g=e;e=f,f=g}return e+m+f+m+(j.isUndefined(d)?k:d)}function h(a,b,c,d){var e=""+b,f=""+c;if(!a&&e>f){var g=e;e=f,f=g}var h={v:e,w:f};return d&&(h.name=d),h}function i(a,b){return g(a,b.v,b.w,b.name)}var j=a("./lodash");b.exports=d;var k="\x00",l="\x00",m="";d.prototype._nodeCount=0,d.prototype._edgeCount=0,d.prototype.isDirected=function(){return this._isDirected},d.prototype.isMultigraph=function(){return this._isMultigraph},d.prototype.isCompound=function(){return this._isCompound},d.prototype.setGraph=function(a){return this._label=a,this},d.prototype.graph=function(){return this._label},d.prototype.setDefaultNodeLabel=function(a){return j.isFunction(a)||(a=j.constant(a)),this._defaultNodeLabelFn=a,this},d.prototype.nodeCount=function(){return this._nodeCount},d.prototype.nodes=function(){return j.keys(this._nodes)},d.prototype.sources=function(){return j.filter(this.nodes(),function(a){return j.isEmpty(this._in[a])},this)},d.prototype.sinks=function(){return j.filter(this.nodes(),function(a){return j.isEmpty(this._out[a])},this)},d.prototype.setNodes=function(a,b){var c=arguments;return j.each(a,function(a){c.length>1?this.setNode(a,b):this.setNode(a)},this),this},d.prototype.setNode=function(a,b){return j.has(this._nodes,a)?(arguments.length>1&&(this._nodes[a]=b),this):(this._nodes[a]=arguments.length>1?b:this._defaultNodeLabelFn(a),this._isCompound&&(this._parent[a]=l,this._children[a]={},this._children[l][a]=!0),this._in[a]={},this._preds[a]={},this._out[a]={},this._sucs[a]={},++this._nodeCount,this)},d.prototype.node=function(a){return this._nodes[a]},d.prototype.hasNode=function(a){return j.has(this._nodes,a)},d.prototype.removeNode=function(a){var b=this;if(j.has(this._nodes,a)){var c=function(a){b.removeEdge(b._edgeObjs[a])};delete this._nodes[a],this._isCompound&&(this._removeFromParentsChildList(a),delete this._parent[a],j.each(this.children(a),function(a){this.setParent(a)},this),delete this._children[a]),j.each(j.keys(this._in[a]),c),delete this._in[a],delete this._preds[a],j.each(j.keys(this._out[a]),c),delete this._out[a],delete this._sucs[a],--this._nodeCount}return this},d.prototype.setParent=function(a,b){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(j.isUndefined(b))b=l;else{b+="";for(var c=b;!j.isUndefined(c);c=this.parent(c))if(c===a)throw new Error("Setting "+b+" as parent of "+a+" would create create a cycle");this.setNode(b)}return this.setNode(a),this._removeFromParentsChildList(a),this._parent[a]=b,this._children[b][a]=!0,this},d.prototype._removeFromParentsChildList=function(a){delete this._children[this._parent[a]][a]},d.prototype.parent=function(a){if(this._isCompound){var b=this._parent[a];if(b!==l)return b}},d.prototype.children=function(a){if(j.isUndefined(a)&&(a=l),this._isCompound){var b=this._children[a];if(b)return j.keys(b)}else{if(a===l)return this.nodes();if(this.hasNode(a))return[]}},d.prototype.predecessors=function(a){var b=this._preds[a];return b?j.keys(b):void 0},d.prototype.successors=function(a){var b=this._sucs[a];return b?j.keys(b):void 0},d.prototype.neighbors=function(a){var b=this.predecessors(a);return b?j.union(b,this.successors(a)):void 0},d.prototype.filterNodes=function(a){function b(a){var f=d.parent(a);return void 0===f||c.hasNode(f)?(e[a]=f,f):f in e?e[f]:b(f)}var c=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});c.setGraph(this.graph()),j.each(this._nodes,function(b,d){a(d)&&c.setNode(d,b)},this),j.each(this._edgeObjs,function(a){c.hasNode(a.v)&&c.hasNode(a.w)&&c.setEdge(a,this.edge(a))},this);var d=this,e={};return this._isCompound&&j.each(c.nodes(),function(a){c.setParent(a,b(a))}),c},d.prototype.setDefaultEdgeLabel=function(a){return j.isFunction(a)||(a=j.constant(a)),this._defaultEdgeLabelFn=a,this},d.prototype.edgeCount=function(){return this._edgeCount},d.prototype.edges=function(){return j.values(this._edgeObjs)},d.prototype.setPath=function(a,b){var c=this,d=arguments;return j.reduce(a,function(a,e){return d.length>1?c.setEdge(a,e,b):c.setEdge(a,e),e}),this},d.prototype.setEdge=function(){var a,b,c,d,f=!1,i=arguments[0];"object"==typeof i&&null!==i&&"v"in i?(a=i.v,b=i.w,c=i.name,2===arguments.length&&(d=arguments[1],f=!0)):(a=i,b=arguments[1],c=arguments[3],arguments.length>2&&(d=arguments[2],f=!0)),a=""+a,b=""+b,j.isUndefined(c)||(c=""+c);var k=g(this._isDirected,a,b,c);if(j.has(this._edgeLabels,k))return f&&(this._edgeLabels[k]=d),this;if(!j.isUndefined(c)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(a),this.setNode(b),this._edgeLabels[k]=f?d:this._defaultEdgeLabelFn(a,b,c);var l=h(this._isDirected,a,b,c);return a=l.v,b=l.w,Object.freeze(l),this._edgeObjs[k]=l,e(this._preds[b],a),e(this._sucs[a],b),this._in[b][k]=l,this._out[a][k]=l,this._edgeCount++,this},d.prototype.edge=function(a,b,c){var d=1===arguments.length?i(this._isDirected,arguments[0]):g(this._isDirected,a,b,c);return this._edgeLabels[d]},d.prototype.hasEdge=function(a,b,c){var d=1===arguments.length?i(this._isDirected,arguments[0]):g(this._isDirected,a,b,c);return j.has(this._edgeLabels,d)},d.prototype.removeEdge=function(a,b,c){var d=1===arguments.length?i(this._isDirected,arguments[0]):g(this._isDirected,a,b,c),e=this._edgeObjs[d];return e&&(a=e.v,b=e.w,delete this._edgeLabels[d],delete this._edgeObjs[d],f(this._preds[b],a),f(this._sucs[a],b),delete this._in[b][d],delete this._out[a][d],this._edgeCount--),this},d.prototype.inEdges=function(a,b){var c=this._in[a];if(c){var d=j.values(c);return b?j.filter(d,function(a){return a.v===b}):d}},d.prototype.outEdges=function(a,b){var c=this._out[a];if(c){var d=j.values(c);return b?j.filter(d,function(a){return a.w===b}):d}},d.prototype.nodeEdges=function(a,b){var c=this.inEdges(a,b);return c?c.concat(this.outEdges(a,b)):void 0}},{"./lodash":48}],46:[function(a,b,c){b.exports={Graph:a("./graph"),version:a("./version")}},{"./graph":45,"./version":49}],47:[function(a,b,c){function d(a){var b={options:{directed:a.isDirected(),multigraph:a.isMultigraph(),compound:a.isCompound()},nodes:e(a),edges:f(a)};return h.isUndefined(a.graph())||(b.value=h.clone(a.graph())),b}function e(a){return h.map(a.nodes(),function(b){var c=a.node(b),d=a.parent(b),e={v:b};return h.isUndefined(c)||(e.value=c),h.isUndefined(d)||(e.parent=d),e})}function f(a){return h.map(a.edges(),function(b){var c=a.edge(b),d={v:b.v,w:b.w};return h.isUndefined(b.name)||(d.name=b.name),h.isUndefined(c)||(d.value=c),d})}function g(a){var b=new i(a.options).setGraph(a.value);return h.each(a.nodes,function(a){b.setNode(a.v,a.value),a.parent&&b.setParent(a.v,a.parent)}),h.each(a.edges,function(a){b.setEdge({v:a.v,w:a.w,name:a.name},a.value)}),b}var h=a("./lodash"),i=a("./graph");b.exports={write:d,read:g}},{"./graph":45,"./lodash":48}],48:[function(a,b,c){var d;if("function"==typeof a)try{d=a("lodash")}catch(e){}d||(d=window._),b.exports=d},{lodash:50}],49:[function(a,b,c){b.exports="1.0.7"},{}],50:[function(a,b,c){(function(a){(function(){function d(a,b){if(a!==b){var c=null===a,d=a===z,e=a===a,f=null===b,g=b===z,h=b===b;if(a>b&&!f||!e||c&&!g&&h||d&&h)return 1;if(b>a&&!c||!h||f&&!d&&e||g&&e)return-1}return 0}function e(a,b,c){for(var d=a.length,e=c?d:-1;c?e--:++e<d;)if(b(a[e],e,a))return e;return-1}function f(a,b,c){if(b!==b)return q(a,c);for(var d=c-1,e=a.length;++d<e;)if(a[d]===b)return d;return-1}function g(a){return"function"==typeof a||!1}function h(a){return null==a?"":a+""}function i(a,b){for(var c=-1,d=a.length;++c<d&&b.indexOf(a.charAt(c))>-1;);return c}function j(a,b){for(var c=a.length;c--&&b.indexOf(a.charAt(c))>-1;);return c}function k(a,b){return d(a.criteria,b.criteria)||a.index-b.index}function l(a,b,c){for(var e=-1,f=a.criteria,g=b.criteria,h=f.length,i=c.length;++e<h;){var j=d(f[e],g[e]);if(j){if(e>=i)return j;var k=c[e];return j*("asc"===k||k===!0?1:-1)}}return a.index-b.index}function m(a){return Sa[a]}function n(a){return Ta[a]}function o(a,b,c){return b?a=Wa[a]:c&&(a=Xa[a]),"\\"+a}function p(a){return"\\"+Xa[a]}function q(a,b,c){for(var d=a.length,e=b+(c?0:-1);c?e--:++e<d;){var f=a[e];if(f!==f)return e}return-1}function r(a){return!!a&&"object"==typeof a}function s(a){return 160>=a&&a>=9&&13>=a||32==a||160==a||5760==a||6158==a||a>=8192&&(8202>=a||8232==a||8233==a||8239==a||8287==a||12288==a||65279==a)}function t(a,b){for(var c=-1,d=a.length,e=-1,f=[];++c<d;)a[c]===b&&(a[c]=S,f[++e]=c);return f}function u(a,b){for(var c,d=-1,e=a.length,f=-1,g=[];++d<e;){var h=a[d],i=b?b(h,d,a):h;d&&c===i||(c=i,g[++f]=h)}return g}function v(a){for(var b=-1,c=a.length;++b<c&&s(a.charCodeAt(b)););return b}function w(a){for(var b=a.length;b--&&s(a.charCodeAt(b)););return b}function x(a){return Ua[a]}function y(a){function b(a){if(r(a)&&!Ch(a)&&!(a instanceof Z)){if(a instanceof s)return a;if(ag.call(a,"__chain__")&&ag.call(a,"__wrapped__"))return md(a)}return new s(a)}function c(){}function s(a,b,c){this.__wrapped__=a,this.__actions__=c||[],this.__chain__=!!b}function Z(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Bg,this.__views__=[]}function ba(){var a=new Z(this.__wrapped__);return a.__actions__=ab(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=ab(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=ab(this.__views__),a}function da(){if(this.__filtered__){var a=new Z(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function Sa(){var a=this.__wrapped__.value(),b=this.__dir__,c=Ch(a),d=0>b,e=c?a.length:0,f=Tc(0,e,this.__views__),g=f.start,h=f.end,i=h-g,j=d?h:g-1,k=this.__iteratees__,l=k.length,m=0,n=wg(i,this.__takeCount__);if(!c||O>e||e==i&&n==i)return cc(d&&c?a.reverse():a,this.__actions__);var o=[];a:for(;i--&&n>m;){j+=b;for(var p=-1,q=a[j];++p<l;){var r=k[p],s=r.iteratee,t=r.type,u=s(q);if(t==Q)q=u;else if(!u){if(t==P)continue a;break a}}o[m++]=q}return o}function Ta(){this.__data__={}}function Ua(a){return this.has(a)&&delete this.__data__[a]}function Va(a){return"__proto__"==a?z:this.__data__[a]}function Wa(a){return"__proto__"!=a&&ag.call(this.__data__,a)}function Xa(a,b){return"__proto__"!=a&&(this.__data__[a]=b),this}function Ya(a){var b=a?a.length:0;for(this.data={hash:qg(null),set:new kg};b--;)this.push(a[b])}function Za(a,b){var c=a.data,d="string"==typeof b||He(b)?c.set.has(b):c.hash[b];return d?0:-1}function $a(a){var b=this.data;"string"==typeof a||He(a)?b.set.add(a):b.hash[a]=!0}function _a(a,b){for(var c=-1,d=a.length,e=-1,f=b.length,g=Of(d+f);++c<d;)g[c]=a[c];for(;++e<f;)g[c++]=b[e];return g}function ab(a,b){var c=-1,d=a.length;for(b||(b=Of(d));++c<d;)b[c]=a[c];return b}function bb(a,b){for(var c=-1,d=a.length;++c<d&&b(a[c],c,a)!==!1;);return a}function eb(a,b){for(var c=a.length;c--&&b(a[c],c,a)!==!1;);return a}function fb(a,b){for(var c=-1,d=a.length;++c<d;)if(!b(a[c],c,a))return!1;return!0}function gb(a,b,c,d){for(var e=-1,f=a.length,g=d,h=g;++e<f;){var i=a[e],j=+b(i);c(j,g)&&(g=j,h=i)}return h}function hb(a,b){for(var c=-1,d=a.length,e=-1,f=[];++c<d;){var g=a[c];b(g,c,a)&&(f[++e]=g)}return f}function ib(a,b){for(var c=-1,d=a.length,e=Of(d);++c<d;)e[c]=b(a[c],c,a);return e}function jb(a,b){for(var c=-1,d=b.length,e=a.length;++c<d;)a[e+c]=b[c];return a}function kb(a,b,c,d){var e=-1,f=a.length;for(d&&f&&(c=a[++e]);++e<f;)c=b(c,a[e],e,a);return c}function lb(a,b,c,d){var e=a.length;for(d&&e&&(c=a[--e]);e--;)c=b(c,a[e],e,a);return c}function mb(a,b){for(var c=-1,d=a.length;++c<d;)if(b(a[c],c,a))return!0;return!1}function nb(a,b){for(var c=a.length,d=0;c--;)d+=+b(a[c])||0;return d}function ob(a,b){return a===z?b:a}function pb(a,b,c,d){return a!==z&&ag.call(d,c)?a:b}function qb(a,b,c){for(var d=-1,e=Nh(b),f=e.length;++d<f;){var g=e[d],h=a[g],i=c(h,b[g],g,a,b);(i===i?i===h:h!==h)&&(h!==z||g in a)||(a[g]=i)}return a}function rb(a,b){return null==b?a:tb(b,Nh(b),a)}function sb(a,b){for(var c=-1,d=null==a,e=!d&&Yc(a),f=e?a.length:0,g=b.length,h=Of(g);++c<g;){var i=b[c];e?h[c]=Zc(i,f)?a[i]:z:h[c]=d?z:a[i]}return h}function tb(a,b,c){c||(c={});for(var d=-1,e=b.length;++d<e;){var f=b[d];c[f]=a[f]}return c}function ub(a,b,c){var d=typeof a;return"function"==d?b===z?a:fc(a,b,c):null==a?Bf:"object"==d?Nb(a):b===z?Hf(a):Ob(a,b)}function vb(a,b,c,d,e,f,g){var h;if(c&&(h=e?c(a,d,e):c(a)),h!==z)return h;if(!He(a))return a;var i=Ch(a);if(i){if(h=Uc(a),!b)return ab(a,h)}else{var j=cg.call(a),k=j==Y;if(j!=_&&j!=T&&(!k||e))return Ra[j]?Wc(a,j,b):e?a:{};if(h=Vc(k?{}:a),!b)return rb(h,a)}f||(f=[]),g||(g=[]);for(var l=f.length;l--;)if(f[l]==a)return g[l];return f.push(a),g.push(h),(i?bb:Fb)(a,function(d,e){h[e]=vb(d,b,c,e,a,f,g)}),h}function wb(a,b,c){if("function"!=typeof a)throw new Xf(R);return lg(function(){a.apply(z,c)},b)}function xb(a,b){var c=a?a.length:0,d=[];if(!c)return d;var e=-1,g=Qc(),h=g==f,i=h&&b.length>=O?oc(b):null,j=b.length;i&&(g=Za,h=!1,b=i);a:for(;++e<c;){var k=a[e];if(h&&k===k){for(var l=j;l--;)if(b[l]===k)continue a;d.push(k)}else g(b,k,0)<0&&d.push(k)}return d}function yb(a,b){var c=!0;return Jg(a,function(a,d,e){return c=!!b(a,d,e)}),c}function zb(a,b,c,d){var e=d,f=e;return Jg(a,function(a,g,h){var i=+b(a,g,h);(c(i,e)||i===d&&i===f)&&(e=i,f=a)}),f}function Ab(a,b,c,d){var e=a.length;for(c=null==c?0:+c||0,0>c&&(c=-c>e?0:e+c),d=d===z||d>e?e:+d||0,0>d&&(d+=e),e=c>d?0:d>>>0,c>>>=0;e>c;)a[c++]=b;return a}function Bb(a,b){var c=[];return Jg(a,function(a,d,e){b(a,d,e)&&c.push(a)}),c}function Cb(a,b,c,d){var e;return c(a,function(a,c,f){return b(a,c,f)?(e=d?c:a,!1):void 0}),e}function Db(a,b,c,d){d||(d=[]);for(var e=-1,f=a.length;++e<f;){var g=a[e];r(g)&&Yc(g)&&(c||Ch(g)||ye(g))?b?Db(g,b,c,d):jb(d,g):c||(d[d.length]=g)}return d}function Eb(a,b){return Lg(a,b,_e)}function Fb(a,b){return Lg(a,b,Nh)}function Gb(a,b){return Mg(a,b,Nh)}function Hb(a,b){for(var c=-1,d=b.length,e=-1,f=[];++c<d;){var g=b[c];Ge(a[g])&&(f[++e]=g)}return f}function Ib(a,b,c){if(null!=a){c!==z&&c in kd(a)&&(b=[c]);for(var d=0,e=b.length;null!=a&&e>d;)a=a[b[d++]];return d&&d==e?a:z}}function Jb(a,b,c,d,e,f){return a===b?!0:null==a||null==b||!He(a)&&!r(b)?a!==a&&b!==b:Kb(a,b,Jb,c,d,e,f)}function Kb(a,b,c,d,e,f,g){var h=Ch(a),i=Ch(b),j=U,k=U;h||(j=cg.call(a),j==T?j=_:j!=_&&(h=Qe(a))),i||(k=cg.call(b),k==T?k=_:k!=_&&(i=Qe(b)));var l=j==_,m=k==_,n=j==k;if(n&&!h&&!l)return Mc(a,b,j);if(!e){var o=l&&ag.call(a,"__wrapped__"),p=m&&ag.call(b,"__wrapped__");if(o||p)return c(o?a.value():a,p?b.value():b,d,e,f,g)}if(!n)return!1;f||(f=[]),g||(g=[]);for(var q=f.length;q--;)if(f[q]==a)return g[q]==b;f.push(a),g.push(b);var r=(h?Lc:Nc)(a,b,c,d,e,f,g);return f.pop(),g.pop(),r}function Lb(a,b,c){var d=b.length,e=d,f=!c;if(null==a)return!e;for(a=kd(a);d--;){var g=b[d];if(f&&g[2]?g[1]!==a[g[0]]:!(g[0]in a))return!1}for(;++d<e;){g=b[d];var h=g[0],i=a[h],j=g[1];if(f&&g[2]){if(i===z&&!(h in a))return!1}else{var k=c?c(i,j,h):z;if(!(k===z?Jb(j,i,c,!0):k))return!1}}return!0}function Mb(a,b){var c=-1,d=Yc(a)?Of(a.length):[];return Jg(a,function(a,e,f){d[++c]=b(a,e,f)}),d}function Nb(a){var b=Rc(a);if(1==b.length&&b[0][2]){var c=b[0][0],d=b[0][1];return function(a){return null==a?!1:a[c]===d&&(d!==z||c in kd(a))}}return function(a){return Lb(a,b)}}function Ob(a,b){var c=Ch(a),d=_c(a)&&cd(b),e=a+"";return a=ld(a),function(f){if(null==f)return!1;var g=e;if(f=kd(f),(c||!d)&&!(g in f)){if(f=1==a.length?f:Ib(f,Wb(a,0,-1)),null==f)return!1;g=zd(a),f=kd(f)}return f[g]===b?b!==z||g in f:Jb(b,f[g],z,!0)}}function Pb(a,b,c,d,e){if(!He(a))return a;var f=Yc(b)&&(Ch(b)||Qe(b)),g=f?z:Nh(b);return bb(g||b,function(h,i){if(g&&(i=h,h=b[i]),r(h))d||(d=[]),e||(e=[]),Qb(a,b,i,Pb,c,d,e);else{var j=a[i],k=c?c(j,h,i,a,b):z,l=k===z;l&&(k=h),k===z&&(!f||i in a)||!l&&(k===k?k===j:j!==j)||(a[i]=k)}}),a}function Qb(a,b,c,d,e,f,g){for(var h=f.length,i=b[c];h--;)if(f[h]==i)return void(a[c]=g[h]);var j=a[c],k=e?e(j,i,c,a,b):z,l=k===z;l&&(k=i,Yc(i)&&(Ch(i)||Qe(i))?k=Ch(j)?j:Yc(j)?ab(j):[]:Ne(i)||ye(i)?k=ye(j)?Ve(j):Ne(j)?j:{}:l=!1),f.push(i),g.push(k),l?a[c]=d(k,i,e,f,g):(k===k?k!==j:j===j)&&(a[c]=k)}function Rb(a){return function(b){return null==b?z:b[a]}}function Sb(a){var b=a+"";return a=ld(a),function(c){return Ib(c,a,b)}}function Tb(a,b){for(var c=a?b.length:0;c--;){var d=b[c];if(d!=e&&Zc(d)){var e=d;mg.call(a,d,1)}}return a}function Ub(a,b){return a+rg(zg()*(b-a+1))}function Vb(a,b,c,d,e){return e(a,function(a,e,f){c=d?(d=!1,a):b(c,a,e,f)}),c}function Wb(a,b,c){var d=-1,e=a.length;b=null==b?0:+b||0,0>b&&(b=-b>e?0:e+b),c=c===z||c>e?e:+c||0,0>c&&(c+=e),e=b>c?0:c-b>>>0,b>>>=0;for(var f=Of(e);++d<e;)f[d]=a[d+b];return f}function Xb(a,b){var c;return Jg(a,function(a,d,e){return c=b(a,d,e),!c}),!!c}function Yb(a,b){var c=a.length;for(a.sort(b);c--;)a[c]=a[c].value;return a}function Zb(a,b,c){var d=Oc(),e=-1;b=ib(b,function(a){return d(a)});var f=Mb(a,function(a){var c=ib(b,function(b){return b(a)});return{criteria:c,index:++e,value:a}});return Yb(f,function(a,b){return l(a,b,c)})}function $b(a,b){var c=0;return Jg(a,function(a,d,e){c+=+b(a,d,e)||0}),c}function _b(a,b){var c=-1,d=Qc(),e=a.length,g=d==f,h=g&&e>=O,i=h?oc():null,j=[];i?(d=Za,g=!1):(h=!1,i=b?[]:j);a:for(;++c<e;){var k=a[c],l=b?b(k,c,a):k;
7
- if(g&&k===k){for(var m=i.length;m--;)if(i[m]===l)continue a;b&&i.push(l),j.push(k)}else d(i,l,0)<0&&((b||h)&&i.push(l),j.push(k))}return j}function ac(a,b){for(var c=-1,d=b.length,e=Of(d);++c<d;)e[c]=a[b[c]];return e}function bc(a,b,c,d){for(var e=a.length,f=d?e:-1;(d?f--:++f<e)&&b(a[f],f,a););return c?Wb(a,d?0:f,d?f+1:e):Wb(a,d?f+1:0,d?e:f)}function cc(a,b){var c=a;c instanceof Z&&(c=c.value());for(var d=-1,e=b.length;++d<e;){var f=b[d];c=f.func.apply(f.thisArg,jb([c],f.args))}return c}function dc(a,b,c){var d=0,e=a?a.length:d;if("number"==typeof b&&b===b&&Eg>=e){for(;e>d;){var f=d+e>>>1,g=a[f];(c?b>=g:b>g)&&null!==g?d=f+1:e=f}return e}return ec(a,b,Bf,c)}function ec(a,b,c,d){b=c(b);for(var e=0,f=a?a.length:0,g=b!==b,h=null===b,i=b===z;f>e;){var j=rg((e+f)/2),k=c(a[j]),l=k!==z,m=k===k;if(g)var n=m||d;else n=h?m&&l&&(d||null!=k):i?m&&(d||l):null==k?!1:d?b>=k:b>k;n?e=j+1:f=j}return wg(f,Dg)}function fc(a,b,c){if("function"!=typeof a)return Bf;if(b===z)return a;switch(c){case 1:return function(c){return a.call(b,c)};case 3:return function(c,d,e){return a.call(b,c,d,e)};case 4:return function(c,d,e,f){return a.call(b,c,d,e,f)};case 5:return function(c,d,e,f,g){return a.call(b,c,d,e,f,g)}}return function(){return a.apply(b,arguments)}}function gc(a){var b=new fg(a.byteLength),c=new ng(b);return c.set(new ng(a)),b}function hc(a,b,c){for(var d=c.length,e=-1,f=vg(a.length-d,0),g=-1,h=b.length,i=Of(h+f);++g<h;)i[g]=b[g];for(;++e<d;)i[c[e]]=a[e];for(;f--;)i[g++]=a[e++];return i}function ic(a,b,c){for(var d=-1,e=c.length,f=-1,g=vg(a.length-e,0),h=-1,i=b.length,j=Of(g+i);++f<g;)j[f]=a[f];for(var k=f;++h<i;)j[k+h]=b[h];for(;++d<e;)j[k+c[d]]=a[f++];return j}function jc(a,b){return function(c,d,e){var f=b?b():{};if(d=Oc(d,e,3),Ch(c))for(var g=-1,h=c.length;++g<h;){var i=c[g];a(f,i,d(i,g,c),c)}else Jg(c,function(b,c,e){a(f,b,d(b,c,e),e)});return f}}function kc(a){return qe(function(b,c){var d=-1,e=null==b?0:c.length,f=e>2?c[e-2]:z,g=e>2?c[2]:z,h=e>1?c[e-1]:z;for("function"==typeof f?(f=fc(f,h,5),e-=2):(f="function"==typeof h?h:z,e-=f?1:0),g&&$c(c[0],c[1],g)&&(f=3>e?z:f,e=1);++d<e;){var i=c[d];i&&a(b,i,f)}return b})}function lc(a,b){return function(c,d){var e=c?Pg(c):0;if(!bd(e))return a(c,d);for(var f=b?e:-1,g=kd(c);(b?f--:++f<e)&&d(g[f],f,g)!==!1;);return c}}function mc(a){return function(b,c,d){for(var e=kd(b),f=d(b),g=f.length,h=a?g:-1;a?h--:++h<g;){var i=f[h];if(c(e[i],i,e)===!1)break}return b}}function nc(a,b){function c(){var e=this&&this!==cb&&this instanceof c?d:a;return e.apply(b,arguments)}var d=qc(a);return c}function oc(a){return qg&&kg?new Ya(a):null}function pc(a){return function(b){for(var c=-1,d=yf(kf(b)),e=d.length,f="";++c<e;)f=a(f,d[c],c);return f}}function qc(a){return function(){var b=arguments;switch(b.length){case 0:return new a;case 1:return new a(b[0]);case 2:return new a(b[0],b[1]);case 3:return new a(b[0],b[1],b[2]);case 4:return new a(b[0],b[1],b[2],b[3]);case 5:return new a(b[0],b[1],b[2],b[3],b[4]);case 6:return new a(b[0],b[1],b[2],b[3],b[4],b[5]);case 7:return new a(b[0],b[1],b[2],b[3],b[4],b[5],b[6])}var c=Ig(a.prototype),d=a.apply(c,b);return He(d)?d:c}}function rc(a){function b(c,d,e){e&&$c(c,d,e)&&(d=z);var f=Kc(c,a,z,z,z,z,z,d);return f.placeholder=b.placeholder,f}return b}function sc(a,b){return qe(function(c){var d=c[0];return null==d?d:(c.push(b),a.apply(z,c))})}function tc(a,b){return function(c,d,e){if(e&&$c(c,d,e)&&(d=z),d=Oc(d,e,3),1==d.length){c=Ch(c)?c:jd(c);var f=gb(c,d,a,b);if(!c.length||f!==b)return f}return zb(c,d,a,b)}}function uc(a,b){return function(c,d,f){if(d=Oc(d,f,3),Ch(c)){var g=e(c,d,b);return g>-1?c[g]:z}return Cb(c,d,a)}}function vc(a){return function(b,c,d){return b&&b.length?(c=Oc(c,d,3),e(b,c,a)):-1}}function wc(a){return function(b,c,d){return c=Oc(c,d,3),Cb(b,c,a,!0)}}function xc(a){return function(){for(var b,c=arguments.length,d=a?c:-1,e=0,f=Of(c);a?d--:++d<c;){var g=f[e++]=arguments[d];if("function"!=typeof g)throw new Xf(R);!b&&s.prototype.thru&&"wrapper"==Pc(g)&&(b=new s([],!0))}for(d=b?-1:c;++d<c;){g=f[d];var h=Pc(g),i="wrapper"==h?Og(g):z;b=i&&ad(i[0])&&i[1]==(I|E|G|J)&&!i[4].length&&1==i[9]?b[Pc(i[0])].apply(b,i[3]):1==g.length&&ad(g)?b[h]():b.thru(g)}return function(){var a=arguments,d=a[0];if(b&&1==a.length&&Ch(d)&&d.length>=O)return b.plant(d).value();for(var e=0,g=c?f[e].apply(this,a):d;++e<c;)g=f[e].call(this,g);return g}}}function yc(a,b){return function(c,d,e){return"function"==typeof d&&e===z&&Ch(c)?a(c,d):b(c,fc(d,e,3))}}function zc(a){return function(b,c,d){return"function"==typeof c&&d===z||(c=fc(c,d,3)),a(b,c,_e)}}function Ac(a){return function(b,c,d){return"function"==typeof c&&d===z||(c=fc(c,d,3)),a(b,c)}}function Bc(a){return function(b,c,d){var e={};return c=Oc(c,d,3),Fb(b,function(b,d,f){var g=c(b,d,f);d=a?g:d,b=a?b:g,e[d]=b}),e}}function Cc(a){return function(b,c,d){return b=h(b),(a?b:"")+Gc(b,c,d)+(a?"":b)}}function Dc(a){var b=qe(function(c,d){var e=t(d,b.placeholder);return Kc(c,a,z,d,e)});return b}function Ec(a,b){return function(c,d,e,f){var g=arguments.length<3;return"function"==typeof d&&f===z&&Ch(c)?a(c,d,e,g):Vb(c,Oc(d,f,4),e,g,b)}}function Fc(a,b,c,d,e,f,g,h,i,j){function k(){for(var s=arguments.length,u=s,v=Of(s);u--;)v[u]=arguments[u];if(d&&(v=hc(v,d,e)),f&&(v=ic(v,f,g)),o||q){var w=k.placeholder,x=t(v,w);if(s-=x.length,j>s){var y=h?ab(h):z,A=vg(j-s,0),D=o?x:z,E=o?z:x,F=o?v:z,I=o?z:v;b|=o?G:H,b&=~(o?H:G),p||(b&=~(B|C));var J=[a,b,c,F,D,I,E,y,i,A],K=Fc.apply(z,J);return ad(a)&&Qg(K,J),K.placeholder=w,K}}var L=m?c:this,M=n?L[a]:a;return h&&(v=hd(v,h)),l&&i<v.length&&(v.length=i),this&&this!==cb&&this instanceof k&&(M=r||qc(a)),M.apply(L,v)}var l=b&I,m=b&B,n=b&C,o=b&E,p=b&D,q=b&F,r=n?z:qc(a);return k}function Gc(a,b,c){var d=a.length;if(b=+b,d>=b||!tg(b))return"";var e=b-d;return c=null==c?" ":c+"",qf(c,pg(e/c.length)).slice(0,e)}function Hc(a,b,c,d){function e(){for(var b=-1,h=arguments.length,i=-1,j=d.length,k=Of(j+h);++i<j;)k[i]=d[i];for(;h--;)k[i++]=arguments[++b];var l=this&&this!==cb&&this instanceof e?g:a;return l.apply(f?c:this,k)}var f=b&B,g=qc(a);return e}function Ic(a){var b=Sf[a];return function(a,c){return c=c===z?0:+c||0,c?(c=ig(10,c),b(a*c)/c):b(a)}}function Jc(a){return function(b,c,d,e){var f=Oc(d);return null==d&&f===ub?dc(b,c,a):ec(b,c,f(d,e,1),a)}}function Kc(a,b,c,d,e,f,g,h){var i=b&C;if(!i&&"function"!=typeof a)throw new Xf(R);var j=d?d.length:0;if(j||(b&=~(G|H),d=e=z),j-=e?e.length:0,b&H){var k=d,l=e;d=e=z}var m=i?z:Og(a),n=[a,b,c,d,e,k,l,f,g,h];if(m&&(dd(n,m),b=n[1],h=n[9]),n[9]=null==h?i?0:a.length:vg(h-j,0)||0,b==B)var o=nc(n[0],n[2]);else o=b!=G&&b!=(B|G)||n[4].length?Fc.apply(z,n):Hc.apply(z,n);var p=m?Ng:Qg;return p(o,n)}function Lc(a,b,c,d,e,f,g){var h=-1,i=a.length,j=b.length;if(i!=j&&!(e&&j>i))return!1;for(;++h<i;){var k=a[h],l=b[h],m=d?d(e?l:k,e?k:l,h):z;if(m!==z){if(m)continue;return!1}if(e){if(!mb(b,function(a){return k===a||c(k,a,d,e,f,g)}))return!1}else if(k!==l&&!c(k,l,d,e,f,g))return!1}return!0}function Mc(a,b,c){switch(c){case V:case W:return+a==+b;case X:return a.name==b.name&&a.message==b.message;case $:return a!=+a?b!=+b:a==+b;case aa:case ca:return a==b+""}return!1}function Nc(a,b,c,d,e,f,g){var h=Nh(a),i=h.length,j=Nh(b),k=j.length;if(i!=k&&!e)return!1;for(var l=i;l--;){var m=h[l];if(!(e?m in b:ag.call(b,m)))return!1}for(var n=e;++l<i;){m=h[l];var o=a[m],p=b[m],q=d?d(e?p:o,e?o:p,m):z;if(!(q===z?c(o,p,d,e,f,g):q))return!1;n||(n="constructor"==m)}if(!n){var r=a.constructor,s=b.constructor;if(r!=s&&"constructor"in a&&"constructor"in b&&!("function"==typeof r&&r instanceof r&&"function"==typeof s&&s instanceof s))return!1}return!0}function Oc(a,c,d){var e=b.callback||zf;return e=e===zf?ub:e,d?e(a,c,d):e}function Pc(a){for(var b=a.name,c=Hg[b],d=c?c.length:0;d--;){var e=c[d],f=e.func;if(null==f||f==a)return e.name}return b}function Qc(a,c,d){var e=b.indexOf||xd;return e=e===xd?f:e,a?e(a,c,d):e}function Rc(a){for(var b=af(a),c=b.length;c--;)b[c][2]=cd(b[c][1]);return b}function Sc(a,b){var c=null==a?z:a[b];return Ke(c)?c:z}function Tc(a,b,c){for(var d=-1,e=c.length;++d<e;){var f=c[d],g=f.size;switch(f.type){case"drop":a+=g;break;case"dropRight":b-=g;break;case"take":b=wg(b,a+g);break;case"takeRight":a=vg(a,b-g)}}return{start:a,end:b}}function Uc(a){var b=a.length,c=new a.constructor(b);return b&&"string"==typeof a[0]&&ag.call(a,"index")&&(c.index=a.index,c.input=a.input),c}function Vc(a){var b=a.constructor;return"function"==typeof b&&b instanceof b||(b=Uf),new b}function Wc(a,b,c){var d=a.constructor;switch(b){case ea:return gc(a);case V:case W:return new d(+a);case fa:case ga:case ha:case ia:case ja:case ka:case la:case ma:case na:var e=a.buffer;return new d(c?gc(e):e,a.byteOffset,a.length);case $:case ca:return new d(a);case aa:var f=new d(a.source,Ga.exec(a));f.lastIndex=a.lastIndex}return f}function Xc(a,b,c){null==a||_c(b,a)||(b=ld(b),a=1==b.length?a:Ib(a,Wb(b,0,-1)),b=zd(b));var d=null==a?a:a[b];return null==d?z:d.apply(a,c)}function Yc(a){return null!=a&&bd(Pg(a))}function Zc(a,b){return a="number"==typeof a||Ja.test(a)?+a:-1,b=null==b?Fg:b,a>-1&&a%1==0&&b>a}function $c(a,b,c){if(!He(c))return!1;var d=typeof b;if("number"==d?Yc(c)&&Zc(b,c.length):"string"==d&&b in c){var e=c[b];return a===a?a===e:e!==e}return!1}function _c(a,b){var c=typeof a;if("string"==c&&za.test(a)||"number"==c)return!0;if(Ch(a))return!1;var d=!ya.test(a);return d||null!=b&&a in kd(b)}function ad(a){var c=Pc(a);if(!(c in Z.prototype))return!1;var d=b[c];if(a===d)return!0;var e=Og(d);return!!e&&a===e[0]}function bd(a){return"number"==typeof a&&a>-1&&a%1==0&&Fg>=a}function cd(a){return a===a&&!He(a)}function dd(a,b){var c=a[1],d=b[1],e=c|d,f=I>e,g=d==I&&c==E||d==I&&c==J&&a[7].length<=b[8]||d==(I|J)&&c==E;if(!f&&!g)return a;d&B&&(a[2]=b[2],e|=c&B?0:D);var h=b[3];if(h){var i=a[3];a[3]=i?hc(i,h,b[4]):ab(h),a[4]=i?t(a[3],S):ab(b[4])}return h=b[5],h&&(i=a[5],a[5]=i?ic(i,h,b[6]):ab(h),a[6]=i?t(a[5],S):ab(b[6])),h=b[7],h&&(a[7]=ab(h)),d&I&&(a[8]=null==a[8]?b[8]:wg(a[8],b[8])),null==a[9]&&(a[9]=b[9]),a[0]=b[0],a[1]=e,a}function ed(a,b){return a===z?b:Dh(a,b,ed)}function fd(a,b){a=kd(a);for(var c=-1,d=b.length,e={};++c<d;){var f=b[c];f in a&&(e[f]=a[f])}return e}function gd(a,b){var c={};return Eb(a,function(a,d,e){b(a,d,e)&&(c[d]=a)}),c}function hd(a,b){for(var c=a.length,d=wg(b.length,c),e=ab(a);d--;){var f=b[d];a[d]=Zc(f,c)?e[f]:z}return a}function id(a){for(var b=_e(a),c=b.length,d=c&&a.length,e=!!d&&bd(d)&&(Ch(a)||ye(a)),f=-1,g=[];++f<c;){var h=b[f];(e&&Zc(h,d)||ag.call(a,h))&&g.push(h)}return g}function jd(a){return null==a?[]:Yc(a)?He(a)?a:Uf(a):ef(a)}function kd(a){return He(a)?a:Uf(a)}function ld(a){if(Ch(a))return a;var b=[];return h(a).replace(Aa,function(a,c,d,e){b.push(d?e.replace(Ea,"$1"):c||a)}),b}function md(a){return a instanceof Z?a.clone():new s(a.__wrapped__,a.__chain__,ab(a.__actions__))}function nd(a,b,c){b=(c?$c(a,b,c):null==b)?1:vg(rg(b)||1,1);for(var d=0,e=a?a.length:0,f=-1,g=Of(pg(e/b));e>d;)g[++f]=Wb(a,d,d+=b);return g}function od(a){for(var b=-1,c=a?a.length:0,d=-1,e=[];++b<c;){var f=a[b];f&&(e[++d]=f)}return e}function pd(a,b,c){var d=a?a.length:0;return d?((c?$c(a,b,c):null==b)&&(b=1),Wb(a,0>b?0:b)):[]}function qd(a,b,c){var d=a?a.length:0;return d?((c?$c(a,b,c):null==b)&&(b=1),b=d-(+b||0),Wb(a,0,0>b?0:b)):[]}function rd(a,b,c){return a&&a.length?bc(a,Oc(b,c,3),!0,!0):[]}function sd(a,b,c){return a&&a.length?bc(a,Oc(b,c,3),!0):[]}function td(a,b,c,d){var e=a?a.length:0;return e?(c&&"number"!=typeof c&&$c(a,b,c)&&(c=0,d=e),Ab(a,b,c,d)):[]}function ud(a){return a?a[0]:z}function vd(a,b,c){var d=a?a.length:0;return c&&$c(a,b,c)&&(b=!1),d?Db(a,b):[]}function wd(a){var b=a?a.length:0;return b?Db(a,!0):[]}function xd(a,b,c){var d=a?a.length:0;if(!d)return-1;if("number"==typeof c)c=0>c?vg(d+c,0):c;else if(c){var e=dc(a,b);return d>e&&(b===b?b===a[e]:a[e]!==a[e])?e:-1}return f(a,b,c||0)}function yd(a){return qd(a,1)}function zd(a){var b=a?a.length:0;return b?a[b-1]:z}function Ad(a,b,c){var d=a?a.length:0;if(!d)return-1;var e=d;if("number"==typeof c)e=(0>c?vg(d+c,0):wg(c||0,d-1))+1;else if(c){e=dc(a,b,!0)-1;var f=a[e];return(b===b?b===f:f!==f)?e:-1}if(b!==b)return q(a,e,!0);for(;e--;)if(a[e]===b)return e;return-1}function Bd(){var a=arguments,b=a[0];if(!b||!b.length)return b;for(var c=0,d=Qc(),e=a.length;++c<e;)for(var f=0,g=a[c];(f=d(b,g,f))>-1;)mg.call(b,f,1);return b}function Cd(a,b,c){var d=[];if(!a||!a.length)return d;var e=-1,f=[],g=a.length;for(b=Oc(b,c,3);++e<g;){var h=a[e];b(h,e,a)&&(d.push(h),f.push(e))}return Tb(a,f),d}function Dd(a){return pd(a,1)}function Ed(a,b,c){var d=a?a.length:0;return d?(c&&"number"!=typeof c&&$c(a,b,c)&&(b=0,c=d),Wb(a,b,c)):[]}function Fd(a,b,c){var d=a?a.length:0;return d?((c?$c(a,b,c):null==b)&&(b=1),Wb(a,0,0>b?0:b)):[]}function Gd(a,b,c){var d=a?a.length:0;return d?((c?$c(a,b,c):null==b)&&(b=1),b=d-(+b||0),Wb(a,0>b?0:b)):[]}function Hd(a,b,c){return a&&a.length?bc(a,Oc(b,c,3),!1,!0):[]}function Id(a,b,c){return a&&a.length?bc(a,Oc(b,c,3)):[]}function Jd(a,b,c,d){var e=a?a.length:0;if(!e)return[];null!=b&&"boolean"!=typeof b&&(d=c,c=$c(a,b,d)?z:b,b=!1);var g=Oc();return null==c&&g===ub||(c=g(c,d,3)),b&&Qc()==f?u(a,c):_b(a,c)}function Kd(a){if(!a||!a.length)return[];var b=-1,c=0;a=hb(a,function(a){return Yc(a)?(c=vg(a.length,c),!0):void 0});for(var d=Of(c);++b<c;)d[b]=ib(a,Rb(b));return d}function Ld(a,b,c){var d=a?a.length:0;if(!d)return[];var e=Kd(a);return null==b?e:(b=fc(b,c,4),ib(e,function(a){return kb(a,b,z,!0)}))}function Md(){for(var a=-1,b=arguments.length;++a<b;){var c=arguments[a];if(Yc(c))var d=d?jb(xb(d,c),xb(c,d)):c}return d?_b(d):[]}function Nd(a,b){var c=-1,d=a?a.length:0,e={};for(!d||b||Ch(a[0])||(b=[]);++c<d;){var f=a[c];b?e[f]=b[c]:f&&(e[f[0]]=f[1])}return e}function Od(a){var c=b(a);return c.__chain__=!0,c}function Pd(a,b,c){return b.call(c,a),a}function Qd(a,b,c){return b.call(c,a)}function Rd(){return Od(this)}function Sd(){return new s(this.value(),this.__chain__)}function Td(a){for(var b,d=this;d instanceof c;){var e=md(d);b?f.__wrapped__=e:b=e;var f=e;d=d.__wrapped__}return f.__wrapped__=a,b}function Ud(){var a=this.__wrapped__,b=function(a){return c&&c.__dir__<0?a:a.reverse()};if(a instanceof Z){var c=a;return this.__actions__.length&&(c=new Z(this)),c=c.reverse(),c.__actions__.push({func:Qd,args:[b],thisArg:z}),new s(c,this.__chain__)}return this.thru(b)}function Vd(){return this.value()+""}function Wd(){return cc(this.__wrapped__,this.__actions__)}function Xd(a,b,c){var d=Ch(a)?fb:yb;return c&&$c(a,b,c)&&(b=z),"function"==typeof b&&c===z||(b=Oc(b,c,3)),d(a,b)}function Yd(a,b,c){var d=Ch(a)?hb:Bb;return b=Oc(b,c,3),d(a,b)}function Zd(a,b){return dh(a,Nb(b))}function $d(a,b,c,d){var e=a?Pg(a):0;return bd(e)||(a=ef(a),e=a.length),c="number"!=typeof c||d&&$c(b,c,d)?0:0>c?vg(e+c,0):c||0,"string"==typeof a||!Ch(a)&&Pe(a)?e>=c&&a.indexOf(b,c)>-1:!!e&&Qc(a,b,c)>-1}function _d(a,b,c){var d=Ch(a)?ib:Mb;return b=Oc(b,c,3),d(a,b)}function ae(a,b){return _d(a,Hf(b))}function be(a,b,c){var d=Ch(a)?hb:Bb;return b=Oc(b,c,3),d(a,function(a,c,d){return!b(a,c,d)})}function ce(a,b,c){if(c?$c(a,b,c):null==b){a=jd(a);var d=a.length;return d>0?a[Ub(0,d-1)]:z}var e=-1,f=Ue(a),d=f.length,g=d-1;for(b=wg(0>b?0:+b||0,d);++e<b;){var h=Ub(e,g),i=f[h];f[h]=f[e],f[e]=i}return f.length=b,f}function de(a){return ce(a,Bg)}function ee(a){var b=a?Pg(a):0;return bd(b)?b:Nh(a).length}function fe(a,b,c){var d=Ch(a)?mb:Xb;return c&&$c(a,b,c)&&(b=z),"function"==typeof b&&c===z||(b=Oc(b,c,3)),d(a,b)}function ge(a,b,c){if(null==a)return[];c&&$c(a,b,c)&&(b=z);var d=-1;b=Oc(b,c,3);var e=Mb(a,function(a,c,e){return{criteria:b(a,c,e),index:++d,value:a}});return Yb(e,k)}function he(a,b,c,d){return null==a?[]:(d&&$c(b,c,d)&&(c=z),Ch(b)||(b=null==b?[]:[b]),Ch(c)||(c=null==c?[]:[c]),Zb(a,b,c))}function ie(a,b){return Yd(a,Nb(b))}function je(a,b){if("function"!=typeof b){if("function"!=typeof a)throw new Xf(R);var c=a;a=b,b=c}return a=tg(a=+a)?a:0,function(){return--a<1?b.apply(this,arguments):void 0}}function ke(a,b,c){return c&&$c(a,b,c)&&(b=z),b=a&&null==b?a.length:vg(+b||0,0),Kc(a,I,z,z,z,z,b)}function le(a,b){var c;if("function"!=typeof b){if("function"!=typeof a)throw new Xf(R);var d=a;a=b,b=d}return function(){return--a>0&&(c=b.apply(this,arguments)),1>=a&&(b=z),c}}function me(a,b,c){function d(){n&&gg(n),j&&gg(j),p=0,j=n=o=z}function e(b,c){c&&gg(c),j=n=o=z,b&&(p=oh(),k=a.apply(m,i),n||j||(i=m=z))}function f(){var a=b-(oh()-l);0>=a||a>b?e(o,j):n=lg(f,a)}function g(){e(r,n)}function h(){if(i=arguments,l=oh(),m=this,o=r&&(n||!s),q===!1)var c=s&&!n;else{j||s||(p=l);var d=q-(l-p),e=0>=d||d>q;e?(j&&(j=gg(j)),p=l,k=a.apply(m,i)):j||(j=lg(g,d))}return e&&n?n=gg(n):n||b===q||(n=lg(f,b)),c&&(e=!0,k=a.apply(m,i)),!e||n||j||(i=m=z),k}var i,j,k,l,m,n,o,p=0,q=!1,r=!0;if("function"!=typeof a)throw new Xf(R);if(b=0>b?0:+b||0,c===!0){var s=!0;r=!1}else He(c)&&(s=!!c.leading,q="maxWait"in c&&vg(+c.maxWait||0,b),r="trailing"in c?!!c.trailing:r);return h.cancel=d,h}function ne(a,b){if("function"!=typeof a||b&&"function"!=typeof b)throw new Xf(R);var c=function(){var d=arguments,e=b?b.apply(this,d):d[0],f=c.cache;if(f.has(e))return f.get(e);var g=a.apply(this,d);return c.cache=f.set(e,g),g};return c.cache=new ne.Cache,c}function oe(a){if("function"!=typeof a)throw new Xf(R);return function(){return!a.apply(this,arguments)}}function pe(a){return le(2,a)}function qe(a,b){if("function"!=typeof a)throw new Xf(R);return b=vg(b===z?a.length-1:+b||0,0),function(){for(var c=arguments,d=-1,e=vg(c.length-b,0),f=Of(e);++d<e;)f[d]=c[b+d];switch(b){case 0:return a.call(this,f);case 1:return a.call(this,c[0],f);case 2:return a.call(this,c[0],c[1],f)}var g=Of(b+1);for(d=-1;++d<b;)g[d]=c[d];return g[b]=f,a.apply(this,g)}}function re(a){if("function"!=typeof a)throw new Xf(R);return function(b){return a.apply(this,b)}}function se(a,b,c){var d=!0,e=!0;if("function"!=typeof a)throw new Xf(R);return c===!1?d=!1:He(c)&&(d="leading"in c?!!c.leading:d,e="trailing"in c?!!c.trailing:e),me(a,b,{leading:d,maxWait:+b,trailing:e})}function te(a,b){return b=null==b?Bf:b,Kc(b,G,z,[a],[])}function ue(a,b,c,d){return b&&"boolean"!=typeof b&&$c(a,b,c)?b=!1:"function"==typeof b&&(d=c,c=b,b=!1),"function"==typeof c?vb(a,b,fc(c,d,1)):vb(a,b)}function ve(a,b,c){return"function"==typeof b?vb(a,!0,fc(b,c,1)):vb(a,!0)}function we(a,b){return a>b}function xe(a,b){return a>=b}function ye(a){return r(a)&&Yc(a)&&ag.call(a,"callee")&&!jg.call(a,"callee")}function ze(a){return a===!0||a===!1||r(a)&&cg.call(a)==V}function Ae(a){return r(a)&&cg.call(a)==W}function Be(a){return!!a&&1===a.nodeType&&r(a)&&!Ne(a)}function Ce(a){return null==a?!0:Yc(a)&&(Ch(a)||Pe(a)||ye(a)||r(a)&&Ge(a.splice))?!a.length:!Nh(a).length}function De(a,b,c,d){c="function"==typeof c?fc(c,d,3):z;var e=c?c(a,b):z;return e===z?Jb(a,b,c):!!e}function Ee(a){return r(a)&&"string"==typeof a.message&&cg.call(a)==X}function Fe(a){return"number"==typeof a&&tg(a)}function Ge(a){return He(a)&&cg.call(a)==Y}function He(a){var b=typeof a;return!!a&&("object"==b||"function"==b)}function Ie(a,b,c,d){return c="function"==typeof c?fc(c,d,3):z,Lb(a,Rc(b),c)}function Je(a){return Me(a)&&a!=+a}function Ke(a){return null==a?!1:Ge(a)?eg.test(_f.call(a)):r(a)&&Ia.test(a)}function Le(a){return null===a}function Me(a){return"number"==typeof a||r(a)&&cg.call(a)==$}function Ne(a){var b;if(!r(a)||cg.call(a)!=_||ye(a)||!ag.call(a,"constructor")&&(b=a.constructor,"function"==typeof b&&!(b instanceof b)))return!1;var c;return Eb(a,function(a,b){c=b}),c===z||ag.call(a,c)}function Oe(a){return He(a)&&cg.call(a)==aa}function Pe(a){return"string"==typeof a||r(a)&&cg.call(a)==ca}function Qe(a){return r(a)&&bd(a.length)&&!!Qa[cg.call(a)]}function Re(a){return a===z}function Se(a,b){return b>a}function Te(a,b){return b>=a}function Ue(a){var b=a?Pg(a):0;return bd(b)?b?ab(a):[]:ef(a)}function Ve(a){return tb(a,_e(a))}function We(a,b,c){var d=Ig(a);return c&&$c(a,b,c)&&(b=z),b?rb(d,b):d}function Xe(a){return Hb(a,_e(a))}function Ye(a,b,c){var d=null==a?z:Ib(a,ld(b),b+"");return d===z?c:d}function Ze(a,b){if(null==a)return!1;var c=ag.call(a,b);if(!c&&!_c(b)){if(b=ld(b),a=1==b.length?a:Ib(a,Wb(b,0,-1)),null==a)return!1;b=zd(b),c=ag.call(a,b)}return c||bd(a.length)&&Zc(b,a.length)&&(Ch(a)||ye(a))}function $e(a,b,c){c&&$c(a,b,c)&&(b=z);for(var d=-1,e=Nh(a),f=e.length,g={};++d<f;){var h=e[d],i=a[h];b?ag.call(g,i)?g[i].push(h):g[i]=[h]:g[i]=h}return g}function _e(a){if(null==a)return[];He(a)||(a=Uf(a));var b=a.length;b=b&&bd(b)&&(Ch(a)||ye(a))&&b||0;for(var c=a.constructor,d=-1,e="function"==typeof c&&c.prototype===a,f=Of(b),g=b>0;++d<b;)f[d]=d+"";for(var h in a)g&&Zc(h,b)||"constructor"==h&&(e||!ag.call(a,h))||f.push(h);return f}function af(a){a=kd(a);for(var b=-1,c=Nh(a),d=c.length,e=Of(d);++b<d;){var f=c[b];e[b]=[f,a[f]]}return e}function bf(a,b,c){var d=null==a?z:a[b];return d===z&&(null==a||_c(b,a)||(b=ld(b),a=1==b.length?a:Ib(a,Wb(b,0,-1)),d=null==a?z:a[zd(b)]),d=d===z?c:d),Ge(d)?d.call(a):d}function cf(a,b,c){if(null==a)return a;var d=b+"";b=null!=a[d]||_c(b,a)?[d]:ld(b);for(var e=-1,f=b.length,g=f-1,h=a;null!=h&&++e<f;){var i=b[e];He(h)&&(e==g?h[i]=c:null==h[i]&&(h[i]=Zc(b[e+1])?[]:{})),h=h[i]}return a}function df(a,b,c,d){var e=Ch(a)||Qe(a);if(b=Oc(b,d,4),null==c)if(e||He(a)){var f=a.constructor;c=e?Ch(a)?new f:[]:Ig(Ge(f)?f.prototype:z)}else c={};return(e?bb:Fb)(a,function(a,d,e){return b(c,a,d,e)}),c}function ef(a){return ac(a,Nh(a))}function ff(a){return ac(a,_e(a))}function gf(a,b,c){return b=+b||0,c===z?(c=b,b=0):c=+c||0,a>=wg(b,c)&&a<vg(b,c)}function hf(a,b,c){c&&$c(a,b,c)&&(b=c=z);var d=null==a,e=null==b;if(null==c&&(e&&"boolean"==typeof a?(c=a,a=1):"boolean"==typeof b&&(c=b,e=!0)),d&&e&&(b=1,e=!1),a=+a||0,e?(b=a,a=0):b=+b||0,c||a%1||b%1){var f=zg();return wg(a+f*(b-a+hg("1e-"+((f+"").length-1))),b)}return Ub(a,b)}function jf(a){return a=h(a),a&&a.charAt(0).toUpperCase()+a.slice(1)}function kf(a){return a=h(a),a&&a.replace(Ka,m).replace(Da,"")}function lf(a,b,c){a=h(a),b+="";var d=a.length;return c=c===z?d:wg(0>c?0:+c||0,d),c-=b.length,c>=0&&a.indexOf(b,c)==c}function mf(a){return a=h(a),a&&ua.test(a)?a.replace(sa,n):a}function nf(a){return a=h(a),a&&Ca.test(a)?a.replace(Ba,o):a||"(?:)"}function of(a,b,c){a=h(a),b=+b;var d=a.length;if(d>=b||!tg(b))return a;var e=(b-d)/2,f=rg(e),g=pg(e);return c=Gc("",g,c),c.slice(0,f)+a+c}function pf(a,b,c){return(c?$c(a,b,c):null==b)?b=0:b&&(b=+b),a=tf(a),yg(a,b||(Ha.test(a)?16:10))}function qf(a,b){var c="";if(a=h(a),b=+b,1>b||!a||!tg(b))return c;do b%2&&(c+=a),b=rg(b/2),a+=a;while(b);return c}function rf(a,b,c){return a=h(a),c=null==c?0:wg(0>c?0:+c||0,a.length),a.lastIndexOf(b,c)==c}function sf(a,c,d){var e=b.templateSettings;d&&$c(a,c,d)&&(c=d=z),a=h(a),c=qb(rb({},d||c),e,pb);var f,g,i=qb(rb({},c.imports),e.imports,pb),j=Nh(i),k=ac(i,j),l=0,m=c.interpolate||La,n="__p += '",o=Vf((c.escape||La).source+"|"+m.source+"|"+(m===xa?Fa:La).source+"|"+(c.evaluate||La).source+"|$","g"),q="//# sourceURL="+("sourceURL"in c?c.sourceURL:"lodash.templateSources["+ ++Pa+"]")+"\n";a.replace(o,function(b,c,d,e,h,i){return d||(d=e),n+=a.slice(l,i).replace(Ma,p),c&&(f=!0,n+="' +\n__e("+c+") +\n'"),h&&(g=!0,n+="';\n"+h+";\n__p += '"),d&&(n+="' +\n((__t = ("+d+")) == null ? '' : __t) +\n'"),l=i+b.length,b}),n+="';\n";var r=c.variable;r||(n="with (obj) {\n"+n+"\n}\n"),n=(g?n.replace(oa,""):n).replace(pa,"$1").replace(qa,"$1;"),n="function("+(r||"obj")+") {\n"+(r?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(f?", __e = _.escape":"")+(g?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+n+"return __p\n}";var s=Yh(function(){return Rf(j,q+"return "+n).apply(z,k)});if(s.source=n,Ee(s))throw s;return s}function tf(a,b,c){var d=a;return(a=h(a))?(c?$c(d,b,c):null==b)?a.slice(v(a),w(a)+1):(b+="",a.slice(i(a,b),j(a,b)+1)):a}function uf(a,b,c){var d=a;return a=h(a),a?(c?$c(d,b,c):null==b)?a.slice(v(a)):a.slice(i(a,b+"")):a}function vf(a,b,c){var d=a;return a=h(a),a?(c?$c(d,b,c):null==b)?a.slice(0,w(a)+1):a.slice(0,j(a,b+"")+1):a}function wf(a,b,c){c&&$c(a,b,c)&&(b=z);var d=K,e=L;if(null!=b)if(He(b)){var f="separator"in b?b.separator:f;d="length"in b?+b.length||0:d,e="omission"in b?h(b.omission):e}else d=+b||0;if(a=h(a),d>=a.length)return a;var g=d-e.length;if(1>g)return e;var i=a.slice(0,g);if(null==f)return i+e;if(Oe(f)){if(a.slice(g).search(f)){var j,k,l=a.slice(0,g);for(f.global||(f=Vf(f.source,(Ga.exec(f)||"")+"g")),f.lastIndex=0;j=f.exec(l);)k=j.index;i=i.slice(0,null==k?g:k)}}else if(a.indexOf(f,g)!=g){var m=i.lastIndexOf(f);m>-1&&(i=i.slice(0,m))}return i+e}function xf(a){return a=h(a),a&&ta.test(a)?a.replace(ra,x):a}function yf(a,b,c){return c&&$c(a,b,c)&&(b=z),a=h(a),a.match(b||Na)||[]}function zf(a,b,c){return c&&$c(a,b,c)&&(b=z),r(a)?Cf(a):ub(a,b)}function Af(a){return function(){return a}}function Bf(a){return a}function Cf(a){return Nb(vb(a,!0))}function Df(a,b){return Ob(a,vb(b,!0))}function Ef(a,b,c){if(null==c){var d=He(b),e=d?Nh(b):z,f=e&&e.length?Hb(b,e):z;(f?f.length:d)||(f=!1,c=b,b=a,a=this)}f||(f=Hb(b,Nh(b)));var g=!0,h=-1,i=Ge(a),j=f.length;c===!1?g=!1:He(c)&&"chain"in c&&(g=c.chain);for(;++h<j;){var k=f[h],l=b[k];a[k]=l,i&&(a.prototype[k]=function(b){return function(){var c=this.__chain__;if(g||c){var d=a(this.__wrapped__),e=d.__actions__=ab(this.__actions__);return e.push({func:b,args:arguments,thisArg:a}),d.__chain__=c,d}return b.apply(a,jb([this.value()],arguments))}}(l))}return a}function Ff(){return cb._=dg,this}function Gf(){}function Hf(a){return _c(a)?Rb(a):Sb(a)}function If(a){return function(b){return Ib(a,ld(b),b+"")}}function Jf(a,b,c){c&&$c(a,b,c)&&(b=c=z),a=+a||0,c=null==c?1:+c||0,null==b?(b=a,a=0):b=+b||0;for(var d=-1,e=vg(pg((b-a)/(c||1)),0),f=Of(e);++d<e;)f[d]=a,a+=c;return f}function Kf(a,b,c){if(a=rg(a),1>a||!tg(a))return[];var d=-1,e=Of(wg(a,Cg));for(b=fc(b,c,1);++d<a;)Cg>d?e[d]=b(d):b(d);return e}function Lf(a){var b=++bg;return h(a)+b}function Mf(a,b){return(+a||0)+(+b||0)}function Nf(a,b,c){return c&&$c(a,b,c)&&(b=z),b=Oc(b,c,3),1==b.length?nb(Ch(a)?a:jd(a),b):$b(a,b)}a=a?db.defaults(cb.Object(),a,db.pick(cb,Oa)):cb;var Of=a.Array,Pf=a.Date,Qf=a.Error,Rf=a.Function,Sf=a.Math,Tf=a.Number,Uf=a.Object,Vf=a.RegExp,Wf=a.String,Xf=a.TypeError,Yf=Of.prototype,Zf=Uf.prototype,$f=Wf.prototype,_f=Rf.prototype.toString,ag=Zf.hasOwnProperty,bg=0,cg=Zf.toString,dg=cb._,eg=Vf("^"+_f.call(ag).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fg=a.ArrayBuffer,gg=a.clearTimeout,hg=a.parseFloat,ig=Sf.pow,jg=Zf.propertyIsEnumerable,kg=Sc(a,"Set"),lg=a.setTimeout,mg=Yf.splice,ng=a.Uint8Array,og=Sc(a,"WeakMap"),pg=Sf.ceil,qg=Sc(Uf,"create"),rg=Sf.floor,sg=Sc(Of,"isArray"),tg=a.isFinite,ug=Sc(Uf,"keys"),vg=Sf.max,wg=Sf.min,xg=Sc(Pf,"now"),yg=a.parseInt,zg=Sf.random,Ag=Tf.NEGATIVE_INFINITY,Bg=Tf.POSITIVE_INFINITY,Cg=4294967295,Dg=Cg-1,Eg=Cg>>>1,Fg=9007199254740991,Gg=og&&new og,Hg={};b.support={};b.templateSettings={escape:va,evaluate:wa,interpolate:xa,variable:"",imports:{_:b}};var Ig=function(){function a(){}return function(b){if(He(b)){a.prototype=b;var c=new a;a.prototype=z}return c||{}}}(),Jg=lc(Fb),Kg=lc(Gb,!0),Lg=mc(),Mg=mc(!0),Ng=Gg?function(a,b){return Gg.set(a,b),a}:Bf,Og=Gg?function(a){return Gg.get(a)}:Gf,Pg=Rb("length"),Qg=function(){var a=0,b=0;return function(c,d){var e=oh(),f=N-(e-b);if(b=e,f>0){if(++a>=M)return c}else a=0;return Ng(c,d)}}(),Rg=qe(function(a,b){return r(a)&&Yc(a)?xb(a,Db(b,!1,!0)):[]}),Sg=vc(),Tg=vc(!0),Ug=qe(function(a){for(var b=a.length,c=b,d=Of(l),e=Qc(),g=e==f,h=[];c--;){var i=a[c]=Yc(i=a[c])?i:[];d[c]=g&&i.length>=120?oc(c&&i):null}var j=a[0],k=-1,l=j?j.length:0,m=d[0];a:for(;++k<l;)if(i=j[k],(m?Za(m,i):e(h,i,0))<0){for(var c=b;--c;){var n=d[c];if((n?Za(n,i):e(a[c],i,0))<0)continue a}m&&m.push(i),h.push(i)}return h}),Vg=qe(function(a,b){b=Db(b);var c=sb(a,b);return Tb(a,b.sort(d)),c}),Wg=Jc(),Xg=Jc(!0),Yg=qe(function(a){return _b(Db(a,!1,!0))}),Zg=qe(function(a,b){return Yc(a)?xb(a,b):[]}),$g=qe(Kd),_g=qe(function(a){var b=a.length,c=b>2?a[b-2]:z,d=b>1?a[b-1]:z;return b>2&&"function"==typeof c?b-=2:(c=b>1&&"function"==typeof d?(--b,d):z,d=z),a.length=b,Ld(a,c,d)}),ah=qe(function(a){return a=Db(a),this.thru(function(b){return _a(Ch(b)?b:[kd(b)],a)})}),bh=qe(function(a,b){return sb(a,Db(b))}),ch=jc(function(a,b,c){ag.call(a,c)?++a[c]:a[c]=1}),dh=uc(Jg),eh=uc(Kg,!0),fh=yc(bb,Jg),gh=yc(eb,Kg),hh=jc(function(a,b,c){ag.call(a,c)?a[c].push(b):a[c]=[b]}),ih=jc(function(a,b,c){a[c]=b}),jh=qe(function(a,b,c){var d=-1,e="function"==typeof b,f=_c(b),g=Yc(a)?Of(a.length):[];return Jg(a,function(a){var h=e?b:f&&null!=a?a[b]:z;g[++d]=h?h.apply(a,c):Xc(a,b,c)}),g}),kh=jc(function(a,b,c){a[c?0:1].push(b)},function(){return[[],[]]}),lh=Ec(kb,Jg),mh=Ec(lb,Kg),nh=qe(function(a,b){if(null==a)return[];var c=b[2];return c&&$c(b[0],b[1],c)&&(b.length=1),Zb(a,Db(b),[])}),oh=xg||function(){return(new Pf).getTime()},ph=qe(function(a,b,c){var d=B;if(c.length){var e=t(c,ph.placeholder);d|=G}return Kc(a,d,b,c,e)}),qh=qe(function(a,b){b=b.length?Db(b):Xe(a);for(var c=-1,d=b.length;++c<d;){var e=b[c];a[e]=Kc(a[e],B,a)}return a}),rh=qe(function(a,b,c){var d=B|C;if(c.length){var e=t(c,rh.placeholder);d|=G}return Kc(b,d,a,c,e)}),sh=rc(E),th=rc(F),uh=qe(function(a,b){return wb(a,1,b)}),vh=qe(function(a,b,c){return wb(a,b,c)}),wh=xc(),xh=xc(!0),yh=qe(function(a,b){if(b=Db(b),"function"!=typeof a||!fb(b,g))throw new Xf(R);var c=b.length;return qe(function(d){for(var e=wg(d.length,c);e--;)d[e]=b[e](d[e]);return a.apply(this,d)})}),zh=Dc(G),Ah=Dc(H),Bh=qe(function(a,b){return Kc(a,J,z,z,z,Db(b))}),Ch=sg||function(a){return r(a)&&bd(a.length)&&cg.call(a)==U},Dh=kc(Pb),Eh=kc(function(a,b,c){return c?qb(a,b,c):rb(a,b)}),Fh=sc(Eh,ob),Gh=sc(Dh,ed),Hh=wc(Fb),Ih=wc(Gb),Jh=zc(Lg),Kh=zc(Mg),Lh=Ac(Fb),Mh=Ac(Gb),Nh=ug?function(a){var b=null==a?z:a.constructor;return"function"==typeof b&&b.prototype===a||"function"!=typeof a&&Yc(a)?id(a):He(a)?ug(a):[]}:id,Oh=Bc(!0),Ph=Bc(),Qh=qe(function(a,b){if(null==a)return{};if("function"!=typeof b[0]){var b=ib(Db(b),Wf);return fd(a,xb(_e(a),b))}var c=fc(b[0],b[1],3);return gd(a,function(a,b,d){return!c(a,b,d)})}),Rh=qe(function(a,b){return null==a?{}:"function"==typeof b[0]?gd(a,fc(b[0],b[1],3)):fd(a,Db(b))}),Sh=pc(function(a,b,c){return b=b.toLowerCase(),a+(c?b.charAt(0).toUpperCase()+b.slice(1):b)}),Th=pc(function(a,b,c){return a+(c?"-":"")+b.toLowerCase()}),Uh=Cc(),Vh=Cc(!0),Wh=pc(function(a,b,c){return a+(c?"_":"")+b.toLowerCase()}),Xh=pc(function(a,b,c){return a+(c?" ":"")+(b.charAt(0).toUpperCase()+b.slice(1))}),Yh=qe(function(a,b){try{return a.apply(z,b)}catch(c){return Ee(c)?c:new Qf(c)}}),Zh=qe(function(a,b){return function(c){return Xc(c,a,b)}}),$h=qe(function(a,b){return function(c){return Xc(a,c,b)}}),_h=Ic("ceil"),ai=Ic("floor"),bi=tc(we,Ag),ci=tc(Se,Bg),di=Ic("round");return b.prototype=c.prototype,s.prototype=Ig(c.prototype),s.prototype.constructor=s,Z.prototype=Ig(c.prototype),Z.prototype.constructor=Z,Ta.prototype["delete"]=Ua,Ta.prototype.get=Va,Ta.prototype.has=Wa,Ta.prototype.set=Xa,Ya.prototype.push=$a,ne.Cache=Ta,b.after=je,b.ary=ke,b.assign=Eh,b.at=bh,b.before=le,b.bind=ph,b.bindAll=qh,b.bindKey=rh,b.callback=zf,b.chain=Od,b.chunk=nd,b.compact=od,b.constant=Af,b.countBy=ch,b.create=We,b.curry=sh,b.curryRight=th,b.debounce=me,b.defaults=Fh,b.defaultsDeep=Gh,b.defer=uh,b.delay=vh,b.difference=Rg,b.drop=pd,b.dropRight=qd,b.dropRightWhile=rd,b.dropWhile=sd,b.fill=td,b.filter=Yd,b.flatten=vd,b.flattenDeep=wd,b.flow=wh,b.flowRight=xh,b.forEach=fh,b.forEachRight=gh,b.forIn=Jh,b.forInRight=Kh,b.forOwn=Lh,b.forOwnRight=Mh,b.functions=Xe,b.groupBy=hh,b.indexBy=ih,b.initial=yd,b.intersection=Ug,b.invert=$e,b.invoke=jh,b.keys=Nh,b.keysIn=_e,b.map=_d,b.mapKeys=Oh,b.mapValues=Ph,b.matches=Cf,b.matchesProperty=Df,b.memoize=ne,b.merge=Dh,b.method=Zh,b.methodOf=$h,b.mixin=Ef,b.modArgs=yh,b.negate=oe,b.omit=Qh,b.once=pe,b.pairs=af,b.partial=zh,b.partialRight=Ah,b.partition=kh,b.pick=Rh,b.pluck=ae,b.property=Hf,b.propertyOf=If,b.pull=Bd,b.pullAt=Vg,b.range=Jf,b.rearg=Bh,b.reject=be,b.remove=Cd,b.rest=Dd,b.restParam=qe,
8
- b.set=cf,b.shuffle=de,b.slice=Ed,b.sortBy=ge,b.sortByAll=nh,b.sortByOrder=he,b.spread=re,b.take=Fd,b.takeRight=Gd,b.takeRightWhile=Hd,b.takeWhile=Id,b.tap=Pd,b.throttle=se,b.thru=Qd,b.times=Kf,b.toArray=Ue,b.toPlainObject=Ve,b.transform=df,b.union=Yg,b.uniq=Jd,b.unzip=Kd,b.unzipWith=Ld,b.values=ef,b.valuesIn=ff,b.where=ie,b.without=Zg,b.wrap=te,b.xor=Md,b.zip=$g,b.zipObject=Nd,b.zipWith=_g,b.backflow=xh,b.collect=_d,b.compose=xh,b.each=fh,b.eachRight=gh,b.extend=Eh,b.iteratee=zf,b.methods=Xe,b.object=Nd,b.select=Yd,b.tail=Dd,b.unique=Jd,Ef(b,b),b.add=Mf,b.attempt=Yh,b.camelCase=Sh,b.capitalize=jf,b.ceil=_h,b.clone=ue,b.cloneDeep=ve,b.deburr=kf,b.endsWith=lf,b.escape=mf,b.escapeRegExp=nf,b.every=Xd,b.find=dh,b.findIndex=Sg,b.findKey=Hh,b.findLast=eh,b.findLastIndex=Tg,b.findLastKey=Ih,b.findWhere=Zd,b.first=ud,b.floor=ai,b.get=Ye,b.gt=we,b.gte=xe,b.has=Ze,b.identity=Bf,b.includes=$d,b.indexOf=xd,b.inRange=gf,b.isArguments=ye,b.isArray=Ch,b.isBoolean=ze,b.isDate=Ae,b.isElement=Be,b.isEmpty=Ce,b.isEqual=De,b.isError=Ee,b.isFinite=Fe,b.isFunction=Ge,b.isMatch=Ie,b.isNaN=Je,b.isNative=Ke,b.isNull=Le,b.isNumber=Me,b.isObject=He,b.isPlainObject=Ne,b.isRegExp=Oe,b.isString=Pe,b.isTypedArray=Qe,b.isUndefined=Re,b.kebabCase=Th,b.last=zd,b.lastIndexOf=Ad,b.lt=Se,b.lte=Te,b.max=bi,b.min=ci,b.noConflict=Ff,b.noop=Gf,b.now=oh,b.pad=of,b.padLeft=Uh,b.padRight=Vh,b.parseInt=pf,b.random=hf,b.reduce=lh,b.reduceRight=mh,b.repeat=qf,b.result=bf,b.round=di,b.runInContext=y,b.size=ee,b.snakeCase=Wh,b.some=fe,b.sortedIndex=Wg,b.sortedLastIndex=Xg,b.startCase=Xh,b.startsWith=rf,b.sum=Nf,b.template=sf,b.trim=tf,b.trimLeft=uf,b.trimRight=vf,b.trunc=wf,b.unescape=xf,b.uniqueId=Lf,b.words=yf,b.all=Xd,b.any=fe,b.contains=$d,b.eq=De,b.detect=dh,b.foldl=lh,b.foldr=mh,b.head=ud,b.include=$d,b.inject=lh,Ef(b,function(){var a={};return Fb(b,function(c,d){b.prototype[d]||(a[d]=c)}),a}(),!1),b.sample=ce,b.prototype.sample=function(a){return this.__chain__||null!=a?this.thru(function(b){return ce(b,a)}):ce(this.value())},b.VERSION=A,bb(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){b[a].placeholder=b}),bb(["drop","take"],function(a,b){Z.prototype[a]=function(c){var d=this.__filtered__;if(d&&!b)return new Z(this);c=null==c?1:vg(rg(c)||0,0);var e=this.clone();return d?e.__takeCount__=wg(e.__takeCount__,c):e.__views__.push({size:c,type:a+(e.__dir__<0?"Right":"")}),e},Z.prototype[a+"Right"]=function(b){return this.reverse()[a](b).reverse()}}),bb(["filter","map","takeWhile"],function(a,b){var c=b+1,d=c!=Q;Z.prototype[a]=function(a,b){var e=this.clone();return e.__iteratees__.push({iteratee:Oc(a,b,1),type:c}),e.__filtered__=e.__filtered__||d,e}}),bb(["first","last"],function(a,b){var c="take"+(b?"Right":"");Z.prototype[a]=function(){return this[c](1).value()[0]}}),bb(["initial","rest"],function(a,b){var c="drop"+(b?"":"Right");Z.prototype[a]=function(){return this.__filtered__?new Z(this):this[c](1)}}),bb(["pluck","where"],function(a,b){var c=b?"filter":"map",d=b?Nb:Hf;Z.prototype[a]=function(a){return this[c](d(a))}}),Z.prototype.compact=function(){return this.filter(Bf)},Z.prototype.reject=function(a,b){return a=Oc(a,b,1),this.filter(function(b){return!a(b)})},Z.prototype.slice=function(a,b){a=null==a?0:+a||0;var c=this;return c.__filtered__&&(a>0||0>b)?new Z(c):(0>a?c=c.takeRight(-a):a&&(c=c.drop(a)),b!==z&&(b=+b||0,c=0>b?c.dropRight(-b):c.take(b-a)),c)},Z.prototype.takeRightWhile=function(a,b){return this.reverse().takeWhile(a,b).reverse()},Z.prototype.toArray=function(){return this.take(Bg)},Fb(Z.prototype,function(a,c){var d=/^(?:filter|map|reject)|While$/.test(c),e=/^(?:first|last)$/.test(c),f=b[e?"take"+("last"==c?"Right":""):c];f&&(b.prototype[c]=function(){var b=e?[1]:arguments,c=this.__chain__,g=this.__wrapped__,h=!!this.__actions__.length,i=g instanceof Z,j=b[0],k=i||Ch(g);k&&d&&"function"==typeof j&&1!=j.length&&(i=k=!1);var l=function(a){return e&&c?f(a,1)[0]:f.apply(z,jb([a],b))},m={func:Qd,args:[l],thisArg:z},n=i&&!h;if(e&&!c)return n?(g=g.clone(),g.__actions__.push(m),a.call(g)):f.call(z,this.value())[0];if(!e&&k){g=n?g:new Z(this);var o=a.apply(g,b);return o.__actions__.push(m),new s(o,c)}return this.thru(l)})}),bb(["join","pop","push","replace","shift","sort","splice","split","unshift"],function(a){var c=(/^(?:replace|split)$/.test(a)?$f:Yf)[a],d=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",e=/^(?:join|pop|replace|shift)$/.test(a);b.prototype[a]=function(){var a=arguments;return e&&!this.__chain__?c.apply(this.value(),a):this[d](function(b){return c.apply(b,a)})}}),Fb(Z.prototype,function(a,c){var d=b[c];if(d){var e=d.name,f=Hg[e]||(Hg[e]=[]);f.push({name:c,func:d})}}),Hg[Fc(z,C).name]=[{name:"wrapper",func:z}],Z.prototype.clone=ba,Z.prototype.reverse=da,Z.prototype.value=Sa,b.prototype.chain=Rd,b.prototype.commit=Sd,b.prototype.concat=ah,b.prototype.plant=Td,b.prototype.reverse=Ud,b.prototype.toString=Vd,b.prototype.run=b.prototype.toJSON=b.prototype.valueOf=b.prototype.value=Wd,b.prototype.collect=b.prototype.map,b.prototype.head=b.prototype.first,b.prototype.select=b.prototype.filter,b.prototype.tail=b.prototype.rest,b}var z,A="3.10.1",B=1,C=2,D=4,E=8,F=16,G=32,H=64,I=128,J=256,K=30,L="...",M=150,N=16,O=200,P=1,Q=2,R="Expected a function",S="__lodash_placeholder__",T="[object Arguments]",U="[object Array]",V="[object Boolean]",W="[object Date]",X="[object Error]",Y="[object Function]",Z="[object Map]",$="[object Number]",_="[object Object]",aa="[object RegExp]",ba="[object Set]",ca="[object String]",da="[object WeakMap]",ea="[object ArrayBuffer]",fa="[object Float32Array]",ga="[object Float64Array]",ha="[object Int8Array]",ia="[object Int16Array]",ja="[object Int32Array]",ka="[object Uint8Array]",la="[object Uint8ClampedArray]",ma="[object Uint16Array]",na="[object Uint32Array]",oa=/\b__p \+= '';/g,pa=/\b(__p \+=) '' \+/g,qa=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ra=/&(?:amp|lt|gt|quot|#39|#96);/g,sa=/[&<>"'`]/g,ta=RegExp(ra.source),ua=RegExp(sa.source),va=/<%-([\s\S]+?)%>/g,wa=/<%([\s\S]+?)%>/g,xa=/<%=([\s\S]+?)%>/g,ya=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,za=/^\w*$/,Aa=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,Ba=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,Ca=RegExp(Ba.source),Da=/[\u0300-\u036f\ufe20-\ufe23]/g,Ea=/\\(\\)?/g,Fa=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ga=/\w*$/,Ha=/^0[xX]/,Ia=/^\[object .+?Constructor\]$/,Ja=/^\d+$/,Ka=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,La=/($^)/,Ma=/['\n\r\u2028\u2029\\]/g,Na=function(){var a="[A-Z\\xc0-\\xd6\\xd8-\\xde]",b="[a-z\\xdf-\\xf6\\xf8-\\xff]+";return RegExp(a+"+(?="+a+b+")|"+a+"?"+b+"|"+a+"+|[0-9]+","g")}(),Oa=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","isFinite","parseFloat","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap"],Pa=-1,Qa={};Qa[fa]=Qa[ga]=Qa[ha]=Qa[ia]=Qa[ja]=Qa[ka]=Qa[la]=Qa[ma]=Qa[na]=!0,Qa[T]=Qa[U]=Qa[ea]=Qa[V]=Qa[W]=Qa[X]=Qa[Y]=Qa[Z]=Qa[$]=Qa[_]=Qa[aa]=Qa[ba]=Qa[ca]=Qa[da]=!1;var Ra={};Ra[T]=Ra[U]=Ra[ea]=Ra[V]=Ra[W]=Ra[fa]=Ra[ga]=Ra[ha]=Ra[ia]=Ra[ja]=Ra[$]=Ra[_]=Ra[aa]=Ra[ca]=Ra[ka]=Ra[la]=Ra[ma]=Ra[na]=!0,Ra[X]=Ra[Y]=Ra[Z]=Ra[ba]=Ra[da]=!1;var Sa={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},Ta={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},Ua={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},Va={"function":!0,object:!0},Wa={0:"x30",1:"x31",2:"x32",3:"x33",4:"x34",5:"x35",6:"x36",7:"x37",8:"x38",9:"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},Xa={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ya=Va[typeof c]&&c&&!c.nodeType&&c,Za=Va[typeof b]&&b&&!b.nodeType&&b,$a=Ya&&Za&&"object"==typeof a&&a&&a.Object&&a,_a=Va[typeof self]&&self&&self.Object&&self,ab=Va[typeof window]&&window&&window.Object&&window,bb=Za&&Za.exports===Ya&&Ya,cb=$a||ab!==(this&&this.window)&&ab||_a||this,db=y();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(cb._=db,define(function(){return db})):Ya&&Za?bb?(Za.exports=db)._=db:Ya._=db:cb._=db}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],51:[function(a,b,c){b.exports={graphlib:a("./lib/graphlib"),layout:a("./lib/layout"),debug:a("./lib/debug"),util:{time:a("./lib/util").time,notime:a("./lib/util").notime},version:a("./lib/version")}},{"./lib/debug":56,"./lib/graphlib":57,"./lib/layout":59,"./lib/util":79,"./lib/version":80}],52:[function(a,b,c){"use strict";function d(a){function b(a){return function(b){return a.edge(b).weight}}var c="greedy"===a.graph().acyclicer?h(a,b(a)):e(a);g.each(c,function(b){var c=a.edge(b);a.removeEdge(b),c.forwardName=b.name,c.reversed=!0,a.setEdge(b.w,b.v,c,g.uniqueId("rev"))})}function e(a){function b(f){g.has(e,f)||(e[f]=!0,d[f]=!0,g.each(a.outEdges(f),function(a){g.has(d,a.w)?c.push(a):b(a.w)}),delete d[f])}var c=[],d={},e={};return g.each(a.nodes(),b),c}function f(a){g.each(a.edges(),function(b){var c=a.edge(b);if(c.reversed){a.removeEdge(b);var d=c.forwardName;delete c.reversed,delete c.forwardName,a.setEdge(b.w,b.v,c,d)}})}var g=a("./lodash"),h=a("./greedy-fas");b.exports={run:d,undo:f}},{"./greedy-fas":58,"./lodash":60}],53:[function(a,b,c){function d(a){function b(c){var d=a.children(c),g=a.node(c);if(d.length&&f.each(d,b),f.has(g,"minRank")){g.borderLeft=[],g.borderRight=[];for(var h=g.minRank,i=g.maxRank+1;i>h;++h)e(a,"borderLeft","_bl",c,g,h),e(a,"borderRight","_br",c,g,h)}}f.each(a.children(),b)}function e(a,b,c,d,e,f){var h={width:0,height:0,rank:f,borderType:b},i=e[b][f-1],j=g.addDummyNode(a,"border",h,c);e[b][f]=j,a.setParent(j,d),i&&a.setEdge(i,j,{weight:1})}var f=a("./lodash"),g=a("./util");b.exports=d},{"./lodash":60,"./util":79}],54:[function(a,b,c){"use strict";function d(a){var b=a.graph().rankdir.toLowerCase();"lr"!==b&&"rl"!==b||f(a)}function e(a){var b=a.graph().rankdir.toLowerCase();"bt"!==b&&"rl"!==b||h(a),"lr"!==b&&"rl"!==b||(j(a),f(a))}function f(a){l.each(a.nodes(),function(b){g(a.node(b))}),l.each(a.edges(),function(b){g(a.edge(b))})}function g(a){var b=a.width;a.width=a.height,a.height=b}function h(a){l.each(a.nodes(),function(b){i(a.node(b))}),l.each(a.edges(),function(b){var c=a.edge(b);l.each(c.points,i),l.has(c,"y")&&i(c)})}function i(a){a.y=-a.y}function j(a){l.each(a.nodes(),function(b){k(a.node(b))}),l.each(a.edges(),function(b){var c=a.edge(b);l.each(c.points,k),l.has(c,"x")&&k(c)})}function k(a){var b=a.x;a.x=a.y,a.y=b}var l=a("./lodash");b.exports={adjust:d,undo:e}},{"./lodash":60}],55:[function(a,b,c){function d(){var a={};a._next=a._prev=a,this._sentinel=a}function e(a){a._prev._next=a._next,a._next._prev=a._prev,delete a._next,delete a._prev}function f(a,b){return"_next"!==a&&"_prev"!==a?b:void 0}b.exports=d,d.prototype.dequeue=function(){var a=this._sentinel,b=a._prev;return b!==a?(e(b),b):void 0},d.prototype.enqueue=function(a){var b=this._sentinel;a._prev&&a._next&&e(a),a._next=b._next,b._next._prev=a,b._next=a,a._prev=b},d.prototype.toString=function(){for(var a=[],b=this._sentinel,c=b._prev;c!==b;)a.push(JSON.stringify(c,f)),c=c._prev;return"["+a.join(", ")+"]"}},{}],56:[function(a,b,c){function d(a){var b=f.buildLayerMatrix(a),c=new g({compound:!0,multigraph:!0}).setGraph({});return e.each(a.nodes(),function(b){c.setNode(b,{label:b}),c.setParent(b,"layer"+a.node(b).rank)}),e.each(a.edges(),function(a){c.setEdge(a.v,a.w,{},a.name)}),e.each(b,function(a,b){var d="layer"+b;c.setNode(d,{rank:"same"}),e.reduce(a,function(a,b){return c.setEdge(a,b,{style:"invis"}),b})}),c}var e=a("./lodash"),f=a("./util"),g=a("./graphlib").Graph;b.exports={debugOrdering:d}},{"./graphlib":57,"./lodash":60,"./util":79}],57:[function(a,b,c){var d;if("function"==typeof a)try{d=a("graphlib")}catch(e){}d||(d=window.graphlib),b.exports=d},{graphlib:81}],58:[function(a,b,c){function d(a,b){if(a.nodeCount()<=1)return[];var c=g(a,b||l),d=e(c.graph,c.buckets,c.zeroIdx);return i.flatten(i.map(d,function(b){return a.outEdges(b.v,b.w)}),!0)}function e(a,b,c){for(var d,e=[],g=b[b.length-1],h=b[0];a.nodeCount();){for(;d=h.dequeue();)f(a,b,c,d);for(;d=g.dequeue();)f(a,b,c,d);if(a.nodeCount())for(var i=b.length-2;i>0;--i)if(d=b[i].dequeue()){e=e.concat(f(a,b,c,d,!0));break}}return e}function f(a,b,c,d,e){var f=e?[]:void 0;return i.each(a.inEdges(d.v),function(d){var g=a.edge(d),i=a.node(d.v);e&&f.push({v:d.v,w:d.w}),i.out-=g,h(b,c,i)}),i.each(a.outEdges(d.v),function(d){var e=a.edge(d),f=d.w,g=a.node(f);g["in"]-=e,h(b,c,g)}),a.removeNode(d.v),f}function g(a,b){var c=new j,d=0,e=0;i.each(a.nodes(),function(a){c.setNode(a,{v:a,"in":0,out:0})}),i.each(a.edges(),function(a){var f=c.edge(a.v,a.w)||0,g=b(a),h=f+g;c.setEdge(a.v,a.w,h),e=Math.max(e,c.node(a.v).out+=g),d=Math.max(d,c.node(a.w)["in"]+=g)});var f=i.range(e+d+3).map(function(){return new k}),g=d+1;return i.each(c.nodes(),function(a){h(f,g,c.node(a))}),{graph:c,buckets:f,zeroIdx:g}}function h(a,b,c){c.out?c["in"]?a[c.out-c["in"]+b].enqueue(c):a[a.length-1].enqueue(c):a[0].enqueue(c)}var i=a("./lodash"),j=a("./graphlib").Graph,k=a("./data/list");b.exports=d;var l=i.constant(1)},{"./data/list":55,"./graphlib":57,"./lodash":60}],59:[function(a,b,c){"use strict";function d(a,b){var c=b&&b.debugTiming?H.time:H.notime;c("layout",function(){var b=c(" buildLayoutGraph",function(){return g(a)});c(" runLayout",function(){e(b,c)}),c(" updateInputGraph",function(){f(a,b)})})}function e(a,b){b(" makeSpaceForEdgeLabels",function(){h(a)}),b(" removeSelfEdges",function(){q(a)}),b(" acyclic",function(){w.run(a)}),b(" nestingGraph.run",function(){C.run(a)}),b(" rank",function(){y(H.asNonCompoundGraph(a))}),b(" injectEdgeLabelProxies",function(){i(a)}),b(" removeEmptyRanks",function(){B(a)}),b(" nestingGraph.cleanup",function(){C.cleanup(a)}),b(" normalizeRanks",function(){z(a)}),b(" assignRankMinMax",function(){j(a)}),b(" removeEdgeLabelProxies",function(){k(a)}),b(" normalize.run",function(){x.run(a)}),b(" parentDummyChains",function(){A(a)}),b(" addBorderSegments",function(){D(a)}),b(" order",function(){F(a)}),b(" insertSelfEdges",function(){r(a)}),b(" adjustCoordinateSystem",function(){E.adjust(a)}),b(" position",function(){G(a)}),b(" positionSelfEdges",function(){s(a)}),b(" removeBorderNodes",function(){p(a)}),b(" normalize.undo",function(){x.undo(a)}),b(" fixupEdgeLabelCoords",function(){n(a)}),b(" undoCoordinateSystem",function(){E.undo(a)}),b(" translateGraph",function(){l(a)}),b(" assignNodeIntersects",function(){m(a)}),b(" reversePoints",function(){o(a)}),b(" acyclic.undo",function(){w.undo(a)})}function f(a,b){v.each(a.nodes(),function(c){var d=a.node(c),e=b.node(c);d&&(d.x=e.x,d.y=e.y,b.children(c).length&&(d.width=e.width,d.height=e.height))}),v.each(a.edges(),function(c){var d=a.edge(c),e=b.edge(c);d.points=e.points,v.has(e,"x")&&(d.x=e.x,d.y=e.y)}),a.graph().width=b.graph().width,a.graph().height=b.graph().height}function g(a){var b=new I({multigraph:!0,compound:!0}),c=u(a.graph());return b.setGraph(v.merge({},K,t(c,J),v.pick(c,L))),v.each(a.nodes(),function(c){var d=u(a.node(c));b.setNode(c,v.defaults(t(d,M),N)),b.setParent(c,a.parent(c))}),v.each(a.edges(),function(c){var d=u(a.edge(c));b.setEdge(c,v.merge({},P,t(d,O),v.pick(d,Q)))}),b}function h(a){var b=a.graph();b.ranksep/=2,v.each(a.edges(),function(c){var d=a.edge(c);d.minlen*=2,"c"!==d.labelpos.toLowerCase()&&("TB"===b.rankdir||"BT"===b.rankdir?d.width+=d.labeloffset:d.height+=d.labeloffset)})}function i(a){v.each(a.edges(),function(b){var c=a.edge(b);if(c.width&&c.height){var d=a.node(b.v),e=a.node(b.w),f={rank:(e.rank-d.rank)/2+d.rank,e:b};H.addDummyNode(a,"edge-proxy",f,"_ep")}})}function j(a){var b=0;v.each(a.nodes(),function(c){var d=a.node(c);d.borderTop&&(d.minRank=a.node(d.borderTop).rank,d.maxRank=a.node(d.borderBottom).rank,b=v.max(b,d.maxRank))}),a.graph().maxRank=b}function k(a){v.each(a.nodes(),function(b){var c=a.node(b);"edge-proxy"===c.dummy&&(a.edge(c.e).labelRank=c.rank,a.removeNode(b))})}function l(a){function b(a){var b=a.x,g=a.y,h=a.width,i=a.height;c=Math.min(c,b-h/2),d=Math.max(d,b+h/2),e=Math.min(e,g-i/2),f=Math.max(f,g+i/2)}var c=Number.POSITIVE_INFINITY,d=0,e=Number.POSITIVE_INFINITY,f=0,g=a.graph(),h=g.marginx||0,i=g.marginy||0;v.each(a.nodes(),function(c){b(a.node(c))}),v.each(a.edges(),function(c){var d=a.edge(c);v.has(d,"x")&&b(d)}),c-=h,e-=i,v.each(a.nodes(),function(b){var d=a.node(b);d.x-=c,d.y-=e}),v.each(a.edges(),function(b){var d=a.edge(b);v.each(d.points,function(a){a.x-=c,a.y-=e}),v.has(d,"x")&&(d.x-=c),v.has(d,"y")&&(d.y-=e)}),g.width=d-c+h,g.height=f-e+i}function m(a){v.each(a.edges(),function(b){var c,d,e=a.edge(b),f=a.node(b.v),g=a.node(b.w);e.points?(c=e.points[0],d=e.points[e.points.length-1]):(e.points=[],c=g,d=f),e.points.unshift(H.intersectRect(f,c)),e.points.push(H.intersectRect(g,d))})}function n(a){v.each(a.edges(),function(b){var c=a.edge(b);if(v.has(c,"x"))switch("l"!==c.labelpos&&"r"!==c.labelpos||(c.width-=c.labeloffset),c.labelpos){case"l":c.x-=c.width/2+c.labeloffset;break;case"r":c.x+=c.width/2+c.labeloffset}})}function o(a){v.each(a.edges(),function(b){var c=a.edge(b);c.reversed&&c.points.reverse()})}function p(a){v.each(a.nodes(),function(b){if(a.children(b).length){var c=a.node(b),d=a.node(c.borderTop),e=a.node(c.borderBottom),f=a.node(v.last(c.borderLeft)),g=a.node(v.last(c.borderRight));c.width=Math.abs(g.x-f.x),c.height=Math.abs(e.y-d.y),c.x=f.x+c.width/2,c.y=d.y+c.height/2}}),v.each(a.nodes(),function(b){"border"===a.node(b).dummy&&a.removeNode(b)})}function q(a){v.each(a.edges(),function(b){if(b.v===b.w){var c=a.node(b.v);c.selfEdges||(c.selfEdges=[]),c.selfEdges.push({e:b,label:a.edge(b)}),a.removeEdge(b)}})}function r(a){var b=H.buildLayerMatrix(a);v.each(b,function(b){var c=0;v.each(b,function(b,d){var e=a.node(b);e.order=d+c,v.each(e.selfEdges,function(b){H.addDummyNode(a,"selfedge",{width:b.label.width,height:b.label.height,rank:e.rank,order:d+ ++c,e:b.e,label:b.label},"_se")}),delete e.selfEdges})})}function s(a){v.each(a.nodes(),function(b){var c=a.node(b);if("selfedge"===c.dummy){var d=a.node(c.e.v),e=d.x+d.width/2,f=d.y,g=c.x-e,h=d.height/2;a.setEdge(c.e,c.label),a.removeNode(b),c.label.points=[{x:e+2*g/3,y:f-h},{x:e+5*g/6,y:f-h},{x:e+g,y:f},{x:e+5*g/6,y:f+h},{x:e+2*g/3,y:f+h}],c.label.x=c.x,c.label.y=c.y}})}function t(a,b){return v.mapValues(v.pick(a,b),Number)}function u(a){var b={};return v.each(a,function(a,c){b[c.toLowerCase()]=a}),b}var v=a("./lodash"),w=a("./acyclic"),x=a("./normalize"),y=a("./rank"),z=a("./util").normalizeRanks,A=a("./parent-dummy-chains"),B=a("./util").removeEmptyRanks,C=a("./nesting-graph"),D=a("./add-border-segments"),E=a("./coordinate-system"),F=a("./order"),G=a("./position"),H=a("./util"),I=a("./graphlib").Graph;b.exports=d;var J=["nodesep","edgesep","ranksep","marginx","marginy"],K={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},L=["acyclicer","ranker","rankdir","align"],M=["width","height"],N={width:0,height:0},O=["minlen","weight","width","height","labeloffset"],P={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Q=["labelpos"]},{"./acyclic":52,"./add-border-segments":53,"./coordinate-system":54,"./graphlib":57,"./lodash":60,"./nesting-graph":61,"./normalize":62,"./order":67,"./parent-dummy-chains":72,"./position":74,"./rank":76,"./util":79}],60:[function(a,b,c){arguments[4][48][0].apply(c,arguments)},{dup:48,lodash:101}],61:[function(a,b,c){function d(a){var b=j.addDummyNode(a,"root",{},"_root"),c=f(a),d=i.max(c)-1,h=2*d+1;a.graph().nestingRoot=b,i.each(a.edges(),function(b){a.edge(b).minlen*=h});var k=g(a)+1;i.each(a.children(),function(f){e(a,b,h,k,d,c,f)}),a.graph().nodeRankFactor=h}function e(a,b,c,d,f,g,h){var k=a.children(h);if(!k.length)return void(h!==b&&a.setEdge(b,h,{weight:0,minlen:c}));var l=j.addBorderNode(a,"_bt"),m=j.addBorderNode(a,"_bb"),n=a.node(h);a.setParent(l,h),n.borderTop=l,a.setParent(m,h),n.borderBottom=m,i.each(k,function(i){e(a,b,c,d,f,g,i);var j=a.node(i),k=j.borderTop?j.borderTop:i,n=j.borderBottom?j.borderBottom:i,o=j.borderTop?d:2*d,p=k!==n?1:f-g[h]+1;a.setEdge(l,k,{weight:o,minlen:p,nestingEdge:!0}),a.setEdge(n,m,{weight:o,minlen:p,nestingEdge:!0})}),a.parent(h)||a.setEdge(b,l,{weight:0,minlen:f+g[h]})}function f(a){function b(d,e){var f=a.children(d);f&&f.length&&i.each(f,function(a){b(a,e+1)}),c[d]=e}var c={};return i.each(a.children(),function(a){b(a,1)}),c}function g(a){return i.reduce(a.edges(),function(b,c){return b+a.edge(c).weight},0)}function h(a){var b=a.graph();a.removeNode(b.nestingRoot),delete b.nestingRoot,i.each(a.edges(),function(b){var c=a.edge(b);c.nestingEdge&&a.removeEdge(b)})}var i=a("./lodash"),j=a("./util");b.exports={run:d,cleanup:h}},{"./lodash":60,"./util":79}],62:[function(a,b,c){"use strict";function d(a){a.graph().dummyChains=[],g.each(a.edges(),function(b){e(a,b)})}function e(a,b){var c=b.v,d=a.node(c).rank,e=b.w,f=a.node(e).rank,g=b.name,i=a.edge(b),j=i.labelRank;if(f!==d+1){a.removeEdge(b);var k,l,m;for(m=0,++d;f>d;++m,++d)i.points=[],l={width:0,height:0,edgeLabel:i,edgeObj:b,rank:d},k=h.addDummyNode(a,"edge",l,"_d"),d===j&&(l.width=i.width,l.height=i.height,l.dummy="edge-label",l.labelpos=i.labelpos),a.setEdge(c,k,{weight:i.weight},g),0===m&&a.graph().dummyChains.push(k),c=k;a.setEdge(c,e,{weight:i.weight},g)}}function f(a){g.each(a.graph().dummyChains,function(b){var c,d=a.node(b),e=d.edgeLabel;for(a.setEdge(d.edgeObj,e);d.dummy;)c=a.successors(b)[0],a.removeNode(b),e.points.push({x:d.x,y:d.y}),"edge-label"===d.dummy&&(e.x=d.x,e.y=d.y,e.width=d.width,e.height=d.height),b=c,d=a.node(b)})}var g=a("./lodash"),h=a("./util");b.exports={run:d,undo:f}},{"./lodash":60,"./util":79}],63:[function(a,b,c){function d(a,b,c){var d,f={};e.each(c,function(c){for(var e,g,h=a.parent(c);h;){if(e=a.parent(h),e?(g=f[e],f[e]=h):(g=d,d=h),g&&g!==h)return void b.setEdge(g,h);h=e}})}var e=a("../lodash");b.exports=d},{"../lodash":60}],64:[function(a,b,c){function d(a,b){return e.map(b,function(b){var c=a.inEdges(b);if(c.length){var d=e.reduce(c,function(b,c){var d=a.edge(c),e=a.node(c.v);return{sum:b.sum+d.weight*e.order,weight:b.weight+d.weight}},{sum:0,weight:0});return{v:b,barycenter:d.sum/d.weight,weight:d.weight}}return{v:b}})}var e=a("../lodash");b.exports=d},{"../lodash":60}],65:[function(a,b,c){function d(a,b,c){var d=e(a),h=new g({compound:!0}).setGraph({root:d}).setDefaultNodeLabel(function(b){return a.node(b)});return f.each(a.nodes(),function(e){var g=a.node(e),i=a.parent(e);(g.rank===b||g.minRank<=b&&b<=g.maxRank)&&(h.setNode(e),h.setParent(e,i||d),f.each(a[c](e),function(b){var c=b.v===e?b.w:b.v,d=h.edge(c,e),g=f.isUndefined(d)?0:d.weight;h.setEdge(c,e,{weight:a.edge(b).weight+g})}),f.has(g,"minRank")&&h.setNode(e,{borderLeft:g.borderLeft[b],borderRight:g.borderRight[b]}))}),h}function e(a){for(var b;a.hasNode(b=f.uniqueId("_root")););return b}var f=a("../lodash"),g=a("../graphlib").Graph;b.exports=d},{"../graphlib":57,"../lodash":60}],66:[function(a,b,c){"use strict";function d(a,b){for(var c=0,d=1;d<b.length;++d)c+=e(a,b[d-1],b[d]);return c}function e(a,b,c){for(var d=f.zipObject(c,f.map(c,function(a,b){return b})),e=f.flatten(f.map(b,function(b){return f.chain(a.outEdges(b)).map(function(b){return{pos:d[b.w],weight:a.edge(b).weight}}).sortBy("pos").value()}),!0),g=1;g<c.length;)g<<=1;var h=2*g-1;g-=1;var i=f.map(new Array(h),function(){return 0}),j=0;return f.each(e.forEach(function(a){var b=a.pos+g;i[b]+=a.weight;for(var c=0;b>0;)b%2&&(c+=i[b+1]),b=b-1>>1,i[b]+=a.weight;j+=a.weight*c})),j}var f=a("../lodash");b.exports=d},{"../lodash":60}],67:[function(a,b,c){"use strict";function d(a){var b=o.maxRank(a),c=e(a,h.range(1,b+1),"inEdges"),d=e(a,h.range(b-1,-1,-1),"outEdges"),k=i(a);g(a,k);for(var l,m=Number.POSITIVE_INFINITY,n=0,p=0;4>p;++n,++p){f(n%2?c:d,n%4>=2),k=o.buildLayerMatrix(a);var q=j(a,k);m>q&&(p=0,l=h.cloneDeep(k),m=q)}g(a,l)}function e(a,b,c){return h.map(b,function(b){return l(a,b,c)})}function f(a,b){var c=new n;h.each(a,function(a){var d=a.graph().root,e=k(a,d,c,b);h.each(e.vs,function(b,c){a.node(b).order=c}),m(a,c,e.vs)})}function g(a,b){h.each(b,function(b){h.each(b,function(b,c){a.node(b).order=c})})}var h=a("../lodash"),i=a("./init-order"),j=a("./cross-count"),k=a("./sort-subgraph"),l=a("./build-layer-graph"),m=a("./add-subgraph-constraints"),n=a("../graphlib").Graph,o=a("../util");b.exports=d},{"../graphlib":57,"../lodash":60,"../util":79,"./add-subgraph-constraints":63,"./build-layer-graph":65,"./cross-count":66,"./init-order":68,"./sort-subgraph":70}],68:[function(a,b,c){"use strict";function d(a){function b(d){if(!e.has(c,d)){c[d]=!0;var f=a.node(d);g[f.rank].push(d),e.each(a.successors(d),b)}}var c={},d=e.filter(a.nodes(),function(b){return!a.children(b).length}),f=e.max(e.map(d,function(b){return a.node(b).rank})),g=e.map(e.range(f+1),function(){return[]}),h=e.sortBy(d,function(b){return a.node(b).rank});return e.each(h,b),g}var e=a("../lodash");b.exports=d},{"../lodash":60}],69:[function(a,b,c){"use strict";function d(a,b){var c={};g.each(a,function(a,b){var d=c[a.v]={indegree:0,"in":[],out:[],vs:[a.v],i:b};g.isUndefined(a.barycenter)||(d.barycenter=a.barycenter,d.weight=a.weight)}),g.each(b.edges(),function(a){var b=c[a.v],d=c[a.w];g.isUndefined(b)||g.isUndefined(d)||(d.indegree++,b.out.push(c[a.w]))});var d=g.filter(c,function(a){return!a.indegree});return e(d)}function e(a){function b(a){return function(b){b.merged||(g.isUndefined(b.barycenter)||g.isUndefined(a.barycenter)||b.barycenter>=a.barycenter)&&f(a,b)}}function c(b){return function(c){c["in"].push(b),0===--c.indegree&&a.push(c)}}for(var d=[];a.length;){var e=a.pop();d.push(e),g.each(e["in"].reverse(),b(e)),g.each(e.out,c(e))}return g.chain(d).filter(function(a){return!a.merged}).map(function(a){return g.pick(a,["vs","i","barycenter","weight"])}).value()}function f(a,b){var c=0,d=0;a.weight&&(c+=a.barycenter*a.weight,d+=a.weight),b.weight&&(c+=b.barycenter*b.weight,d+=b.weight),a.vs=b.vs.concat(a.vs),a.barycenter=c/d,a.weight=d,a.i=Math.min(b.i,a.i),b.merged=!0}var g=a("../lodash");b.exports=d},{"../lodash":60}],70:[function(a,b,c){function d(a,b,c,k){var l=a.children(b),m=a.node(b),n=m?m.borderLeft:void 0,o=m?m.borderRight:void 0,p={};n&&(l=g.filter(l,function(a){return a!==n&&a!==o}));var q=h(a,l);g.each(q,function(b){if(a.children(b.v).length){var e=d(a,b.v,c,k);p[b.v]=e,g.has(e,"barycenter")&&f(b,e)}});var r=i(q,c);e(r,p);var s=j(r,k);if(n&&(s.vs=g.flatten([n,s.vs,o],!0),a.predecessors(n).length)){var t=a.node(a.predecessors(n)[0]),u=a.node(a.predecessors(o)[0]);g.has(s,"barycenter")||(s.barycenter=0,s.weight=0),s.barycenter=(s.barycenter*s.weight+t.order+u.order)/(s.weight+2),s.weight+=2}return s}function e(a,b){g.each(a,function(a){a.vs=g.flatten(a.vs.map(function(a){return b[a]?b[a].vs:a}),!0)})}function f(a,b){g.isUndefined(a.barycenter)?(a.barycenter=b.barycenter,a.weight=b.weight):(a.barycenter=(a.barycenter*a.weight+b.barycenter*b.weight)/(a.weight+b.weight),a.weight+=b.weight)}var g=a("../lodash"),h=a("./barycenter"),i=a("./resolve-conflicts"),j=a("./sort");b.exports=d},{"../lodash":60,"./barycenter":64,"./resolve-conflicts":69,"./sort":71}],71:[function(a,b,c){function d(a,b){var c=h.partition(a,function(a){return g.has(a,"barycenter")}),d=c.lhs,i=g.sortBy(c.rhs,function(a){return-a.i}),j=[],k=0,l=0,m=0;d.sort(f(!!b)),m=e(j,i,m),g.each(d,function(a){m+=a.vs.length,j.push(a.vs),k+=a.barycenter*a.weight,l+=a.weight,m=e(j,i,m)});var n={vs:g.flatten(j,!0)};return l&&(n.barycenter=k/l,n.weight=l),n}function e(a,b,c){for(var d;b.length&&(d=g.last(b)).i<=c;)b.pop(),a.push(d.vs),c++;return c}function f(a){return function(b,c){return b.barycenter<c.barycenter?-1:b.barycenter>c.barycenter?1:a?c.i-b.i:b.i-c.i}}var g=a("../lodash"),h=a("../util");b.exports=d},{"../lodash":60,"../util":79}],72:[function(a,b,c){function d(a){var b=f(a);g.each(a.graph().dummyChains,function(c){for(var d=a.node(c),f=d.edgeObj,g=e(a,b,f.v,f.w),h=g.path,i=g.lca,j=0,k=h[j],l=!0;c!==f.w;){if(d=a.node(c),l){for(;(k=h[j])!==i&&a.node(k).maxRank<d.rank;)j++;k===i&&(l=!1)}if(!l){for(;j<h.length-1&&a.node(k=h[j+1]).minRank<=d.rank;)j++;k=h[j]}a.setParent(c,k),c=a.successors(c)[0]}})}function e(a,b,c,d){var e,f,g=[],h=[],i=Math.min(b[c].low,b[d].low),j=Math.max(b[c].lim,b[d].lim);e=c;do e=a.parent(e),g.push(e);while(e&&(b[e].low>i||j>b[e].lim));for(f=e,e=d;(e=a.parent(e))!==f;)h.push(e);return{path:g.concat(h.reverse()),lca:f}}function f(a){function b(e){var f=d;g.each(a.children(e),b),c[e]={low:f,lim:d++}}var c={},d=0;return g.each(a.children(),b),c}var g=a("./lodash");b.exports=d},{"./lodash":60}],73:[function(a,b,c){"use strict";function d(a,b){function c(b,c){var e=0,h=0,i=b.length,j=r.last(c);return r.each(c,function(b,k){var l=f(a,b),m=l?a.node(l).order:i;(l||b===j)&&(r.each(c.slice(h,k+1),function(b){r.each(a.predecessors(b),function(c){var f=a.node(c),h=f.order;!(e>h||h>m)||f.dummy&&a.node(b).dummy||g(d,c,b)})}),h=k+1,e=m)}),c}var d={};return r.reduce(b,c),d}function e(a,b){function c(b,c,d,f,h){var i;r.each(r.range(c,d),function(c){i=b[c],a.node(i).dummy&&r.each(a.predecessors(i),function(b){var c=a.node(b);c.dummy&&(c.order<f||c.order>h)&&g(e,b,i)})})}function d(b,d){var e,f=-1,g=0;return r.each(d,function(h,i){if("border"===a.node(h).dummy){var j=a.predecessors(h);j.length&&(e=a.node(j[0]).order,c(d,g,i,f,e),g=i,f=e)}c(d,g,d.length,e,b.length)}),d}var e={};return r.reduce(b,d),e}function f(a,b){return a.node(b).dummy?r.find(a.predecessors(b),function(b){return a.node(b).dummy}):void 0}function g(a,b,c){if(b>c){var d=b;b=c,c=d}var e=a[b];e||(a[b]=e={}),e[c]=!0}function h(a,b,c){if(b>c){var d=b;b=c,c=d}return r.has(a[b],c)}function i(a,b,c,d){var e={},f={},g={};return r.each(b,function(a){r.each(a,function(a,b){e[a]=a,f[a]=a,g[a]=b})}),r.each(b,function(a){var b=-1;r.each(a,function(a){var i=d(a);if(i.length){i=r.sortBy(i,function(a){return g[a]});for(var j=(i.length-1)/2,k=Math.floor(j),l=Math.ceil(j);l>=k;++k){var m=i[k];f[a]===a&&b<g[m]&&!h(c,a,m)&&(f[m]=a,f[a]=e[a]=e[m],b=g[m])}}})}),{root:e,align:f}}function j(a,b,c,d,e){function f(a){r.has(j,a)||(j[a]=!0,h[a]=r.reduce(i.inEdges(a),function(a,b){return f(b.v),Math.max(a,h[b.v]+i.edge(b))},0))}function g(b){if(2!==j[b]){j[b]++;var c=a.node(b),d=r.reduce(i.outEdges(b),function(a,b){return g(b.w),Math.min(a,h[b.w]-i.edge(b))},Number.POSITIVE_INFINITY);d!==Number.POSITIVE_INFINITY&&c.borderType!==l&&(h[b]=Math.max(h[b],d))}}var h={},i=k(a,b,c,e),j={};r.each(i.nodes(),f);var l=e?"borderLeft":"borderRight";return r.each(i.nodes(),g),r.each(d,function(a){h[a]=h[c[a]]}),h}function k(a,b,c,d){var e=new s,f=a.graph(),g=p(f.nodesep,f.edgesep,d);return r.each(b,function(b){var d;r.each(b,function(b){var f=c[b];if(e.setNode(f),d){var h=c[d],i=e.edge(h,f);e.setEdge(h,f,Math.max(g(a,b,d),i||0))}d=b})}),e}function l(a,b){return r.min(b,function(b){var c=r.min(b,function(b,c){return b-q(a,c)/2}),d=r.max(b,function(b,c){return b+q(a,c)/2});return d-c})}function m(a,b){var c=r.min(b),d=r.max(b);r.each(["u","d"],function(e){r.each(["l","r"],function(f){var g,h=e+f,i=a[h];i!==b&&(g="l"===f?c-r.min(i):d-r.max(i),g&&(a[h]=r.mapValues(i,function(a){return a+g})))})})}function n(a,b){return r.mapValues(a.ul,function(c,d){if(b)return a[b.toLowerCase()][d];var e=r.sortBy(r.pluck(a,d));return(e[1]+e[2])/2;
9
- })}function o(a){var b,c=t.buildLayerMatrix(a),f=r.merge(d(a,c),e(a,c)),g={};r.each(["u","d"],function(d){b="u"===d?c:r.values(c).reverse(),r.each(["l","r"],function(c){"r"===c&&(b=r.map(b,function(a){return r.values(a).reverse()}));var e=r.bind("u"===d?a.predecessors:a.successors,a),h=i(a,b,f,e),k=j(a,b,h.root,h.align,"r"===c);"r"===c&&(k=r.mapValues(k,function(a){return-a})),g[d+c]=k})});var h=l(a,g);return m(g,h),n(g,a.graph().align)}function p(a,b,c){return function(d,e,f){var g,h=d.node(e),i=d.node(f),j=0;if(j+=h.width/2,r.has(h,"labelpos"))switch(h.labelpos.toLowerCase()){case"l":g=-h.width/2;break;case"r":g=h.width/2}if(g&&(j+=c?g:-g),g=0,j+=(h.dummy?b:a)/2,j+=(i.dummy?b:a)/2,j+=i.width/2,r.has(i,"labelpos"))switch(i.labelpos.toLowerCase()){case"l":g=i.width/2;break;case"r":g=-i.width/2}return g&&(j+=c?g:-g),g=0,j}}function q(a,b){return a.node(b).width}var r=a("../lodash"),s=a("../graphlib").Graph,t=a("../util");b.exports={positionX:o,findType1Conflicts:d,findType2Conflicts:e,addConflict:g,hasConflict:h,verticalAlignment:i,horizontalCompaction:j,alignCoordinates:m,findSmallestWidthAlignment:l,balance:n}},{"../graphlib":57,"../lodash":60,"../util":79}],74:[function(a,b,c){"use strict";function d(a){a=g.asNonCompoundGraph(a),e(a),f.each(h(a),function(b,c){a.node(c).x=b})}function e(a){var b=g.buildLayerMatrix(a),c=a.graph().ranksep,d=0;f.each(b,function(b){var e=f.max(f.map(b,function(b){return a.node(b).height}));f.each(b,function(b){a.node(b).y=d+e/2}),d+=e+c})}var f=a("../lodash"),g=a("../util"),h=a("./bk").positionX;b.exports=d},{"../lodash":60,"../util":79,"./bk":73}],75:[function(a,b,c){"use strict";function d(a){var b=new i({directed:!1}),c=a.nodes()[0],d=a.nodeCount();b.setNode(c,{});for(var h,k;e(b,a)<d;)h=f(b,a),k=b.hasNode(h.v)?j(a,h):-j(a,h),g(b,a,k);return b}function e(a,b){function c(d){h.each(b.nodeEdges(d),function(e){var f=e.v,g=d===f?e.w:f;a.hasNode(g)||j(b,e)||(a.setNode(g,{}),a.setEdge(d,g,{}),c(g))})}return h.each(a.nodes(),c),a.nodeCount()}function f(a,b){return h.min(b.edges(),function(c){return a.hasNode(c.v)!==a.hasNode(c.w)?j(b,c):void 0})}function g(a,b,c){h.each(a.nodes(),function(a){b.node(a).rank+=c})}var h=a("../lodash"),i=a("../graphlib").Graph,j=a("./util").slack;b.exports=d},{"../graphlib":57,"../lodash":60,"./util":78}],76:[function(a,b,c){"use strict";function d(a){switch(a.graph().ranker){case"network-simplex":f(a);break;case"tight-tree":e(a);break;case"longest-path":k(a);break;default:f(a)}}function e(a){h(a),i(a)}function f(a){j(a)}var g=a("./util"),h=g.longestPath,i=a("./feasible-tree"),j=a("./network-simplex");b.exports=d;var k=h},{"./feasible-tree":75,"./network-simplex":77,"./util":78}],77:[function(a,b,c){"use strict";function d(a){a=v(a),s(a);var b=q(a);h(b),e(b,a);for(var c,d;c=j(b);)d=k(b,a,c),l(b,a,c,d)}function e(a,b){var c=u(a,a.nodes());c=c.slice(0,c.length-1),p.each(c,function(c){f(a,b,c)})}function f(a,b,c){var d=a.node(c),e=d.parent;a.edge(c,e).cutvalue=g(a,b,c)}function g(a,b,c){var d=a.node(c),e=d.parent,f=!0,g=b.edge(c,e),h=0;return g||(f=!1,g=b.edge(e,c)),h=g.weight,p.each(b.nodeEdges(c),function(d){var g=d.v===c,i=g?d.w:d.v;if(i!==e){var j=g===f,k=b.edge(d).weight;if(h+=j?k:-k,n(a,c,i)){var l=a.edge(c,i).cutvalue;h+=j?-l:l}}}),h}function h(a,b){arguments.length<2&&(b=a.nodes()[0]),i(a,{},1,b)}function i(a,b,c,d,e){var f=c,g=a.node(d);return b[d]=!0,p.each(a.neighbors(d),function(e){p.has(b,e)||(c=i(a,b,c,e,d))}),g.low=f,g.lim=c++,e?g.parent=e:delete g.parent,c}function j(a){return p.find(a.edges(),function(b){return a.edge(b).cutvalue<0})}function k(a,b,c){var d=c.v,e=c.w;b.hasEdge(d,e)||(d=c.w,e=c.v);var f=a.node(d),g=a.node(e),h=f,i=!1;f.lim>g.lim&&(h=g,i=!0);var j=p.filter(b.edges(),function(b){return i===o(a,a.node(b.v),h)&&i!==o(a,a.node(b.w),h)});return p.min(j,function(a){return r(b,a)})}function l(a,b,c,d){var f=c.v,g=c.w;a.removeEdge(f,g),a.setEdge(d.v,d.w,{}),h(a),e(a,b),m(a,b)}function m(a,b){var c=p.find(a.nodes(),function(a){return!b.node(a).parent}),d=t(a,c);d=d.slice(1),p.each(d,function(c){var d=a.node(c).parent,e=b.edge(c,d),f=!1;e||(e=b.edge(d,c),f=!0),b.node(c).rank=b.node(d).rank+(f?e.minlen:-e.minlen)})}function n(a,b,c){return a.hasEdge(b,c)}function o(a,b,c){return c.low<=b.lim&&b.lim<=c.lim}var p=a("../lodash"),q=a("./feasible-tree"),r=a("./util").slack,s=a("./util").longestPath,t=a("../graphlib").alg.preorder,u=a("../graphlib").alg.postorder,v=a("../util").simplify;b.exports=d,d.initLowLimValues=h,d.initCutValues=e,d.calcCutValue=g,d.leaveEdge=j,d.enterEdge=k,d.exchangeEdges=l},{"../graphlib":57,"../lodash":60,"../util":79,"./feasible-tree":75,"./util":78}],78:[function(a,b,c){"use strict";function d(a){function b(d){var e=a.node(d);if(f.has(c,d))return e.rank;c[d]=!0;var g=f.min(f.map(a.outEdges(d),function(c){return b(c.w)-a.edge(c).minlen}));return g===Number.POSITIVE_INFINITY&&(g=0),e.rank=g}var c={};f.each(a.sources(),b)}function e(a,b){return a.node(b.w).rank-a.node(b.v).rank-a.edge(b).minlen}var f=a("../lodash");b.exports={longestPath:d,slack:e}},{"../lodash":60}],79:[function(a,b,c){"use strict";function d(a,b,c,d){var e;do e=r.uniqueId(d);while(a.hasNode(e));return c.dummy=b,a.setNode(e,c),e}function e(a){var b=(new s).setGraph(a.graph());return r.each(a.nodes(),function(c){b.setNode(c,a.node(c))}),r.each(a.edges(),function(c){var d=b.edge(c.v,c.w)||{weight:0,minlen:1},e=a.edge(c);b.setEdge(c.v,c.w,{weight:d.weight+e.weight,minlen:Math.max(d.minlen,e.minlen)})}),b}function f(a){var b=new s({multigraph:a.isMultigraph()}).setGraph(a.graph());return r.each(a.nodes(),function(c){a.children(c).length||b.setNode(c,a.node(c))}),r.each(a.edges(),function(c){b.setEdge(c,a.edge(c))}),b}function g(a){var b=r.map(a.nodes(),function(b){var c={};return r.each(a.outEdges(b),function(b){c[b.w]=(c[b.w]||0)+a.edge(b).weight}),c});return r.zipObject(a.nodes(),b)}function h(a){var b=r.map(a.nodes(),function(b){var c={};return r.each(a.inEdges(b),function(b){c[b.v]=(c[b.v]||0)+a.edge(b).weight}),c});return r.zipObject(a.nodes(),b)}function i(a,b){var c=a.x,d=a.y,e=b.x-c,f=b.y-d,g=a.width/2,h=a.height/2;if(!e&&!f)throw new Error("Not possible to find intersection inside of the rectangle");var i,j;return Math.abs(f)*g>Math.abs(e)*h?(0>f&&(h=-h),i=h*e/f,j=h):(0>e&&(g=-g),i=g,j=g*f/e),{x:c+i,y:d+j}}function j(a){var b=r.map(r.range(n(a)+1),function(){return[]});return r.each(a.nodes(),function(c){var d=a.node(c),e=d.rank;r.isUndefined(e)||(b[e][d.order]=c)}),b}function k(a){var b=r.min(r.map(a.nodes(),function(b){return a.node(b).rank}));r.each(a.nodes(),function(c){var d=a.node(c);r.has(d,"rank")&&(d.rank-=b)})}function l(a){var b=r.min(r.map(a.nodes(),function(b){return a.node(b).rank})),c=[];r.each(a.nodes(),function(d){var e=a.node(d).rank-b;c[e]||(c[e]=[]),c[e].push(d)});var d=0,e=a.graph().nodeRankFactor;r.each(c,function(b,c){r.isUndefined(b)&&c%e!==0?--d:d&&r.each(b,function(b){a.node(b).rank+=d})})}function m(a,b,c,e){var f={width:0,height:0};return arguments.length>=4&&(f.rank=c,f.order=e),d(a,"border",f,b)}function n(a){return r.max(r.map(a.nodes(),function(b){var c=a.node(b).rank;return r.isUndefined(c)?void 0:c}))}function o(a,b){var c={lhs:[],rhs:[]};return r.each(a,function(a){b(a)?c.lhs.push(a):c.rhs.push(a)}),c}function p(a,b){var c=r.now();try{return b()}finally{console.log(a+" time: "+(r.now()-c)+"ms")}}function q(a,b){return b()}var r=a("./lodash"),s=a("./graphlib").Graph;b.exports={addDummyNode:d,simplify:e,asNonCompoundGraph:f,successorWeights:g,predecessorWeights:h,intersectRect:i,buildLayerMatrix:j,normalizeRanks:k,removeEmptyRanks:l,addBorderNode:m,maxRank:n,partition:o,time:p,notime:q}},{"./graphlib":57,"./lodash":60}],80:[function(a,b,c){b.exports="0.7.4"},{}],81:[function(a,b,c){arguments[4][30][0].apply(c,arguments)},{"./lib":97,"./lib/alg":88,"./lib/json":98,dup:30}],82:[function(a,b,c){arguments[4][31][0].apply(c,arguments)},{"../lodash":99,dup:31}],83:[function(a,b,c){arguments[4][32][0].apply(c,arguments)},{"../lodash":99,dup:32}],84:[function(a,b,c){arguments[4][33][0].apply(c,arguments)},{"../lodash":99,"./dijkstra":85,dup:33}],85:[function(a,b,c){arguments[4][34][0].apply(c,arguments)},{"../data/priority-queue":95,"../lodash":99,dup:34}],86:[function(a,b,c){arguments[4][35][0].apply(c,arguments)},{"../lodash":99,"./tarjan":93,dup:35}],87:[function(a,b,c){arguments[4][36][0].apply(c,arguments)},{"../lodash":99,dup:36}],88:[function(a,b,c){arguments[4][37][0].apply(c,arguments)},{"./components":82,"./dijkstra":85,"./dijkstra-all":84,"./find-cycles":86,"./floyd-warshall":87,"./is-acyclic":89,"./postorder":90,"./preorder":91,"./prim":92,"./tarjan":93,"./topsort":94,dup:37}],89:[function(a,b,c){arguments[4][38][0].apply(c,arguments)},{"./topsort":94,dup:38}],90:[function(a,b,c){arguments[4][39][0].apply(c,arguments)},{"./dfs":83,dup:39}],91:[function(a,b,c){arguments[4][40][0].apply(c,arguments)},{"./dfs":83,dup:40}],92:[function(a,b,c){arguments[4][41][0].apply(c,arguments)},{"../data/priority-queue":95,"../graph":96,"../lodash":99,dup:41}],93:[function(a,b,c){arguments[4][42][0].apply(c,arguments)},{"../lodash":99,dup:42}],94:[function(a,b,c){arguments[4][43][0].apply(c,arguments)},{"../lodash":99,dup:43}],95:[function(a,b,c){arguments[4][44][0].apply(c,arguments)},{"../lodash":99,dup:44}],96:[function(a,b,c){arguments[4][45][0].apply(c,arguments)},{"./lodash":99,dup:45}],97:[function(a,b,c){arguments[4][46][0].apply(c,arguments)},{"./graph":96,"./version":100,dup:46}],98:[function(a,b,c){arguments[4][47][0].apply(c,arguments)},{"./graph":96,"./lodash":99,dup:47}],99:[function(a,b,c){arguments[4][48][0].apply(c,arguments)},{dup:48,lodash:101}],100:[function(a,b,c){arguments[4][49][0].apply(c,arguments)},{dup:49}],101:[function(a,b,c){arguments[4][50][0].apply(c,arguments)},{dup:50}],102:[function(a,b,c){},{}],103:[function(a,b,c){(function(b){"use strict";function d(){function a(){}try{var b=new Uint8Array(1);return b.foo=function(){return 42},b.constructor=a,42===b.foo()&&b.constructor===a&&"function"==typeof b.subarray&&0===b.subarray(1,1).byteLength}catch(c){return!1}}function e(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f(a){return this instanceof f?(f.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof a?g(this,a):"string"==typeof a?h(this,a,arguments.length>1?arguments[1]:"utf8"):i(this,a)):arguments.length>1?new f(a,arguments[1]):new f(a)}function g(a,b){if(a=p(a,0>b?0:0|q(b)),!f.TYPED_ARRAY_SUPPORT)for(var c=0;b>c;c++)a[c]=0;return a}function h(a,b,c){"string"==typeof c&&""!==c||(c="utf8");var d=0|s(b,c);return a=p(a,d),a.write(b,c),a}function i(a,b){if(f.isBuffer(b))return j(a,b);if(Y(b))return k(a,b);if(null==b)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(b.buffer instanceof ArrayBuffer)return l(a,b);if(b instanceof ArrayBuffer)return m(a,b)}return b.length?n(a,b):o(a,b)}function j(a,b){var c=0|q(b.length);return a=p(a,c),b.copy(a,0,0,c),a}function k(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function l(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function m(a,b){return f.TYPED_ARRAY_SUPPORT?(b.byteLength,a=f._augment(new Uint8Array(b))):a=l(a,new Uint8Array(b)),a}function n(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function o(a,b){var c,d=0;"Buffer"===b.type&&Y(b.data)&&(c=b.data,d=0|q(c.length)),a=p(a,d);for(var e=0;d>e;e+=1)a[e]=255&c[e];return a}function p(a,b){f.TYPED_ARRAY_SUPPORT?(a=f._augment(new Uint8Array(b)),a.__proto__=f.prototype):(a.length=b,a._isBuffer=!0);var c=0!==b&&b<=f.poolSize>>>1;return c&&(a.parent=Z),a}function q(a){if(a>=e())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+e().toString(16)+" bytes");return 0|a}function r(a,b){if(!(this instanceof r))return new r(a,b);var c=new f(a,b);return delete c.parent,c}function s(a,b){"string"!=typeof a&&(a=""+a);var c=a.length;if(0===c)return 0;for(var d=!1;;)switch(b){case"ascii":case"binary":case"raw":case"raws":return c;case"utf8":case"utf-8":return R(a).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*c;case"hex":return c>>>1;case"base64":return U(a).length;default:if(d)return R(a).length;b=(""+b).toLowerCase(),d=!0}}function t(a,b,c){var d=!1;if(b=0|b,c=void 0===c||c===1/0?this.length:0|c,a||(a="utf8"),0>b&&(b=0),c>this.length&&(c=this.length),b>=c)return"";for(;;)switch(a){case"hex":return F(this,b,c);case"utf8":case"utf-8":return B(this,b,c);case"ascii":return D(this,b,c);case"binary":return E(this,b,c);case"base64":return A(this,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,b,c);default:if(d)throw new TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),d=!0}}function u(a,b,c,d){c=Number(c)||0;var e=a.length-c;d?(d=Number(d),d>e&&(d=e)):d=e;var f=b.length;if(f%2!==0)throw new Error("Invalid hex string");d>f/2&&(d=f/2);for(var g=0;d>g;g++){var h=parseInt(b.substr(2*g,2),16);if(isNaN(h))throw new Error("Invalid hex string");a[c+g]=h}return g}function v(a,b,c,d){return V(R(b,a.length-c),a,c,d)}function w(a,b,c,d){return V(S(b),a,c,d)}function x(a,b,c,d){return w(a,b,c,d)}function y(a,b,c,d){return V(U(b),a,c,d)}function z(a,b,c,d){return V(T(b,a.length-c),a,c,d)}function A(a,b,c){return 0===b&&c===a.length?W.fromByteArray(a):W.fromByteArray(a.slice(b,c))}function B(a,b,c){c=Math.min(a.length,c);for(var d=[],e=b;c>e;){var f=a[e],g=null,h=f>239?4:f>223?3:f>191?2:1;if(c>=e+h){var i,j,k,l;switch(h){case 1:128>f&&(g=f);break;case 2:i=a[e+1],128===(192&i)&&(l=(31&f)<<6|63&i,l>127&&(g=l));break;case 3:i=a[e+1],j=a[e+2],128===(192&i)&&128===(192&j)&&(l=(15&f)<<12|(63&i)<<6|63&j,l>2047&&(55296>l||l>57343)&&(g=l));break;case 4:i=a[e+1],j=a[e+2],k=a[e+3],128===(192&i)&&128===(192&j)&&128===(192&k)&&(l=(15&f)<<18|(63&i)<<12|(63&j)<<6|63&k,l>65535&&1114112>l&&(g=l))}}null===g?(g=65533,h=1):g>65535&&(g-=65536,d.push(g>>>10&1023|55296),g=56320|1023&g),d.push(g),e+=h}return C(d)}function C(a){var b=a.length;if($>=b)return String.fromCharCode.apply(String,a);for(var c="",d=0;b>d;)c+=String.fromCharCode.apply(String,a.slice(d,d+=$));return c}function D(a,b,c){var d="";c=Math.min(a.length,c);for(var e=b;c>e;e++)d+=String.fromCharCode(127&a[e]);return d}function E(a,b,c){var d="";c=Math.min(a.length,c);for(var e=b;c>e;e++)d+=String.fromCharCode(a[e]);return d}function F(a,b,c){var d=a.length;(!b||0>b)&&(b=0),(!c||0>c||c>d)&&(c=d);for(var e="",f=b;c>f;f++)e+=Q(a[f]);return e}function G(a,b,c){for(var d=a.slice(b,c),e="",f=0;f<d.length;f+=2)e+=String.fromCharCode(d[f]+256*d[f+1]);return e}function H(a,b,c){if(a%1!==0||0>a)throw new RangeError("offset is not uint");if(a+b>c)throw new RangeError("Trying to access beyond buffer length")}function I(a,b,c,d,e,g){if(!f.isBuffer(a))throw new TypeError("buffer must be a Buffer instance");if(b>e||g>b)throw new RangeError("value is out of bounds");if(c+d>a.length)throw new RangeError("index out of range")}function J(a,b,c,d){0>b&&(b=65535+b+1);for(var e=0,f=Math.min(a.length-c,2);f>e;e++)a[c+e]=(b&255<<8*(d?e:1-e))>>>8*(d?e:1-e)}function K(a,b,c,d){0>b&&(b=4294967295+b+1);for(var e=0,f=Math.min(a.length-c,4);f>e;e++)a[c+e]=b>>>8*(d?e:3-e)&255}function L(a,b,c,d,e,f){if(b>e||f>b)throw new RangeError("value is out of bounds");if(c+d>a.length)throw new RangeError("index out of range");if(0>c)throw new RangeError("index out of range")}function M(a,b,c,d,e){return e||L(a,b,c,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(a,b,c,d,23,4),c+4}function N(a,b,c,d,e){return e||L(a,b,c,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(a,b,c,d,52,8),c+8}function O(a){if(a=P(a).replace(aa,""),a.length<2)return"";for(;a.length%4!==0;)a+="=";return a}function P(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}function Q(a){return 16>a?"0"+a.toString(16):a.toString(16)}function R(a,b){b=b||1/0;for(var c,d=a.length,e=null,f=[],g=0;d>g;g++){if(c=a.charCodeAt(g),c>55295&&57344>c){if(!e){if(c>56319){(b-=3)>-1&&f.push(239,191,189);continue}if(g+1===d){(b-=3)>-1&&f.push(239,191,189);continue}e=c;continue}if(56320>c){(b-=3)>-1&&f.push(239,191,189),e=c;continue}c=(e-55296<<10|c-56320)+65536}else e&&(b-=3)>-1&&f.push(239,191,189);if(e=null,128>c){if((b-=1)<0)break;f.push(c)}else if(2048>c){if((b-=2)<0)break;f.push(c>>6|192,63&c|128)}else if(65536>c){if((b-=3)<0)break;f.push(c>>12|224,c>>6&63|128,63&c|128)}else{if(!(1114112>c))throw new Error("Invalid code point");if((b-=4)<0)break;f.push(c>>18|240,c>>12&63|128,c>>6&63|128,63&c|128)}}return f}function S(a){for(var b=[],c=0;c<a.length;c++)b.push(255&a.charCodeAt(c));return b}function T(a,b){for(var c,d,e,f=[],g=0;g<a.length&&!((b-=2)<0);g++)c=a.charCodeAt(g),d=c>>8,e=c%256,f.push(e),f.push(d);return f}function U(a){return W.toByteArray(O(a))}function V(a,b,c,d){for(var e=0;d>e&&!(e+c>=b.length||e>=a.length);e++)b[e+c]=a[e];return e}var W=a("base64-js"),X=a("ieee754"),Y=a("isarray");c.Buffer=f,c.SlowBuffer=r,c.INSPECT_MAX_BYTES=50,f.poolSize=8192;var Z={};f.TYPED_ARRAY_SUPPORT=void 0!==b.TYPED_ARRAY_SUPPORT?b.TYPED_ARRAY_SUPPORT:d(),f.TYPED_ARRAY_SUPPORT?(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array):(f.prototype.length=void 0,f.prototype.parent=void 0),f.isBuffer=function(a){return!(null==a||!a._isBuffer)},f.compare=function(a,b){if(!f.isBuffer(a)||!f.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var c=a.length,d=b.length,e=0,g=Math.min(c,d);g>e&&a[e]===b[e];)++e;return e!==g&&(c=a[e],d=b[e]),d>c?-1:c>d?1:0},f.isEncoding=function(a){switch(String(a).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(a,b){if(!Y(a))throw new TypeError("list argument must be an Array of Buffers.");if(0===a.length)return new f(0);var c;if(void 0===b)for(b=0,c=0;c<a.length;c++)b+=a[c].length;var d=new f(b),e=0;for(c=0;c<a.length;c++){var g=a[c];g.copy(d,e),e+=g.length}return d},f.byteLength=s,f.prototype.toString=function(){var a=0|this.length;return 0===a?"":0===arguments.length?B(this,0,a):t.apply(this,arguments)},f.prototype.equals=function(a){if(!f.isBuffer(a))throw new TypeError("Argument must be a Buffer");return this===a?!0:0===f.compare(this,a)},f.prototype.inspect=function(){var a="",b=c.INSPECT_MAX_BYTES;return this.length>0&&(a=this.toString("hex",0,b).match(/.{2}/g).join(" "),this.length>b&&(a+=" ... ")),"<Buffer "+a+">"},f.prototype.compare=function(a){if(!f.isBuffer(a))throw new TypeError("Argument must be a Buffer");return this===a?0:f.compare(this,a)},f.prototype.indexOf=function(a,b){function c(a,b,c){for(var d=-1,e=0;c+e<a.length;e++)if(a[c+e]===b[-1===d?0:e-d]){if(-1===d&&(d=e),e-d+1===b.length)return c+d}else d=-1;return-1}if(b>2147483647?b=2147483647:-2147483648>b&&(b=-2147483648),b>>=0,0===this.length)return-1;if(b>=this.length)return-1;if(0>b&&(b=Math.max(this.length+b,0)),"string"==typeof a)return 0===a.length?-1:String.prototype.indexOf.call(this,a,b);if(f.isBuffer(a))return c(this,a,b);if("number"==typeof a)return f.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,a,b):c(this,[a],b);throw new TypeError("val must be string, number or Buffer")},f.prototype.get=function(a){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(a)},f.prototype.set=function(a,b){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(a,b)},f.prototype.write=function(a,b,c,d){if(void 0===b)d="utf8",c=this.length,b=0;else if(void 0===c&&"string"==typeof b)d=b,c=this.length,b=0;else if(isFinite(b))b=0|b,isFinite(c)?(c=0|c,void 0===d&&(d="utf8")):(d=c,c=void 0);else{var e=d;d=b,b=0|c,c=e}var f=this.length-b;if((void 0===c||c>f)&&(c=f),a.length>0&&(0>c||0>b)||b>this.length)throw new RangeError("attempt to write outside buffer bounds");d||(d="utf8");for(var g=!1;;)switch(d){case"hex":return u(this,a,b,c);case"utf8":case"utf-8":return v(this,a,b,c);case"ascii":return w(this,a,b,c);case"binary":return x(this,a,b,c);case"base64":return y(this,a,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,a,b,c);default:if(g)throw new TypeError("Unknown encoding: "+d);d=(""+d).toLowerCase(),g=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;f.prototype.slice=function(a,b){var c=this.length;a=~~a,b=void 0===b?c:~~b,0>a?(a+=c,0>a&&(a=0)):a>c&&(a=c),0>b?(b+=c,0>b&&(b=0)):b>c&&(b=c),a>b&&(b=a);var d;if(f.TYPED_ARRAY_SUPPORT)d=f._augment(this.subarray(a,b));else{var e=b-a;d=new f(e,void 0);for(var g=0;e>g;g++)d[g]=this[g+a]}return d.length&&(d.parent=this.parent||this),d},f.prototype.readUIntLE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=this[a],e=1,f=0;++f<b&&(e*=256);)d+=this[a+f]*e;return d},f.prototype.readUIntBE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=this[a+--b],e=1;b>0&&(e*=256);)d+=this[a+--b]*e;return d},f.prototype.readUInt8=function(a,b){return b||H(a,1,this.length),this[a]},f.prototype.readUInt16LE=function(a,b){return b||H(a,2,this.length),this[a]|this[a+1]<<8},f.prototype.readUInt16BE=function(a,b){return b||H(a,2,this.length),this[a]<<8|this[a+1]},f.prototype.readUInt32LE=function(a,b){return b||H(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+16777216*this[a+3]},f.prototype.readUInt32BE=function(a,b){return b||H(a,4,this.length),16777216*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])},f.prototype.readIntLE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=this[a],e=1,f=0;++f<b&&(e*=256);)d+=this[a+f]*e;return e*=128,d>=e&&(d-=Math.pow(2,8*b)),d},f.prototype.readIntBE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=b,e=1,f=this[a+--d];d>0&&(e*=256);)f+=this[a+--d]*e;return e*=128,f>=e&&(f-=Math.pow(2,8*b)),f},f.prototype.readInt8=function(a,b){return b||H(a,1,this.length),128&this[a]?-1*(255-this[a]+1):this[a]},f.prototype.readInt16LE=function(a,b){b||H(a,2,this.length);var c=this[a]|this[a+1]<<8;return 32768&c?4294901760|c:c},f.prototype.readInt16BE=function(a,b){b||H(a,2,this.length);var c=this[a+1]|this[a]<<8;return 32768&c?4294901760|c:c},f.prototype.readInt32LE=function(a,b){return b||H(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},f.prototype.readInt32BE=function(a,b){return b||H(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},f.prototype.readFloatLE=function(a,b){return b||H(a,4,this.length),X.read(this,a,!0,23,4)},f.prototype.readFloatBE=function(a,b){return b||H(a,4,this.length),X.read(this,a,!1,23,4)},f.prototype.readDoubleLE=function(a,b){return b||H(a,8,this.length),X.read(this,a,!0,52,8)},f.prototype.readDoubleBE=function(a,b){return b||H(a,8,this.length),X.read(this,a,!1,52,8)},f.prototype.writeUIntLE=function(a,b,c,d){a=+a,b=0|b,c=0|c,d||I(this,a,b,c,Math.pow(2,8*c),0);var e=1,f=0;for(this[b]=255&a;++f<c&&(e*=256);)this[b+f]=a/e&255;return b+c},f.prototype.writeUIntBE=function(a,b,c,d){a=+a,b=0|b,c=0|c,d||I(this,a,b,c,Math.pow(2,8*c),0);var e=c-1,f=1;for(this[b+e]=255&a;--e>=0&&(f*=256);)this[b+e]=a/f&255;return b+c},f.prototype.writeUInt8=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,1,255,0),f.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),this[b]=255&a,b+1},f.prototype.writeUInt16LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8):J(this,a,b,!0),b+2},f.prototype.writeUInt16BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=255&a):J(this,a,b,!1),b+2},f.prototype.writeUInt32LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[b+3]=a>>>24,this[b+2]=a>>>16,this[b+1]=a>>>8,this[b]=255&a):K(this,a,b,!0),b+4},f.prototype.writeUInt32BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a):K(this,a,b,!1),b+4},f.prototype.writeIntLE=function(a,b,c,d){if(a=+a,b=0|b,!d){var e=Math.pow(2,8*c-1);I(this,a,b,c,e-1,-e)}var f=0,g=1,h=0>a?1:0;for(this[b]=255&a;++f<c&&(g*=256);)this[b+f]=(a/g>>0)-h&255;return b+c},f.prototype.writeIntBE=function(a,b,c,d){if(a=+a,b=0|b,!d){var e=Math.pow(2,8*c-1);I(this,a,b,c,e-1,-e)}var f=c-1,g=1,h=0>a?1:0;for(this[b+f]=255&a;--f>=0&&(g*=256);)this[b+f]=(a/g>>0)-h&255;return b+c},f.prototype.writeInt8=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,1,127,-128),f.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),0>a&&(a=255+a+1),this[b]=255&a,b+1},f.prototype.writeInt16LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8):J(this,a,b,!0),b+2},f.prototype.writeInt16BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=255&a):J(this,a,b,!1),b+2},f.prototype.writeInt32LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8,this[b+2]=a>>>16,this[b+3]=a>>>24):K(this,a,b,!0),b+4},f.prototype.writeInt32BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,2147483647,-2147483648),0>a&&(a=4294967295+a+1),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a):K(this,a,b,!1),b+4},f.prototype.writeFloatLE=function(a,b,c){return M(this,a,b,!0,c)},f.prototype.writeFloatBE=function(a,b,c){return M(this,a,b,!1,c)},f.prototype.writeDoubleLE=function(a,b,c){return N(this,a,b,!0,c)},f.prototype.writeDoubleBE=function(a,b,c){return N(this,a,b,!1,c)},f.prototype.copy=function(a,b,c,d){if(c||(c=0),d||0===d||(d=this.length),b>=a.length&&(b=a.length),b||(b=0),d>0&&c>d&&(d=c),d===c)return 0;if(0===a.length||0===this.length)return 0;if(0>b)throw new RangeError("targetStart out of bounds");if(0>c||c>=this.length)throw new RangeError("sourceStart out of bounds");if(0>d)throw new RangeError("sourceEnd out of bounds");d>this.length&&(d=this.length),a.length-b<d-c&&(d=a.length-b+c);var e,g=d-c;if(this===a&&b>c&&d>b)for(e=g-1;e>=0;e--)a[e+b]=this[e+c];else if(1e3>g||!f.TYPED_ARRAY_SUPPORT)for(e=0;g>e;e++)a[e+b]=this[e+c];else a._set(this.subarray(c,c+g),b);return g},f.prototype.fill=function(a,b,c){if(a||(a=0),b||(b=0),c||(c=this.length),b>c)throw new RangeError("end < start");if(c!==b&&0!==this.length){if(0>b||b>=this.length)throw new RangeError("start out of bounds");if(0>c||c>this.length)throw new RangeError("end out of bounds");var d;if("number"==typeof a)for(d=b;c>d;d++)this[d]=a;else{var e=R(a.toString()),f=e.length;for(d=b;c>d;d++)this[d]=e[d%f]}return this}},f.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(f.TYPED_ARRAY_SUPPORT)return new f(this).buffer;for(var a=new Uint8Array(this.length),b=0,c=a.length;c>b;b+=1)a[b]=this[b];return a.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var _=f.prototype;f._augment=function(a){return a.constructor=f,a._isBuffer=!0,a._set=a.set,a.get=_.get,a.set=_.set,a.write=_.write,a.toString=_.toString,a.toLocaleString=_.toString,a.toJSON=_.toJSON,a.equals=_.equals,a.compare=_.compare,a.indexOf=_.indexOf,a.copy=_.copy,a.slice=_.slice,a.readUIntLE=_.readUIntLE,a.readUIntBE=_.readUIntBE,a.readUInt8=_.readUInt8,a.readUInt16LE=_.readUInt16LE,a.readUInt16BE=_.readUInt16BE,a.readUInt32LE=_.readUInt32LE,a.readUInt32BE=_.readUInt32BE,a.readIntLE=_.readIntLE,a.readIntBE=_.readIntBE,a.readInt8=_.readInt8,a.readInt16LE=_.readInt16LE,a.readInt16BE=_.readInt16BE,a.readInt32LE=_.readInt32LE,a.readInt32BE=_.readInt32BE,a.readFloatLE=_.readFloatLE,a.readFloatBE=_.readFloatBE,a.readDoubleLE=_.readDoubleLE,a.readDoubleBE=_.readDoubleBE,a.writeUInt8=_.writeUInt8,a.writeUIntLE=_.writeUIntLE,a.writeUIntBE=_.writeUIntBE,a.writeUInt16LE=_.writeUInt16LE,a.writeUInt16BE=_.writeUInt16BE,a.writeUInt32LE=_.writeUInt32LE,a.writeUInt32BE=_.writeUInt32BE,a.writeIntLE=_.writeIntLE,a.writeIntBE=_.writeIntBE,a.writeInt8=_.writeInt8,a.writeInt16LE=_.writeInt16LE,a.writeInt16BE=_.writeInt16BE,a.writeInt32LE=_.writeInt32LE,a.writeInt32BE=_.writeInt32BE,a.writeFloatLE=_.writeFloatLE,a.writeFloatBE=_.writeFloatBE,a.writeDoubleLE=_.writeDoubleLE,a.writeDoubleBE=_.writeDoubleBE,a.fill=_.fill,a.inspect=_.inspect,a.toArrayBuffer=_.toArrayBuffer,a};var aa=/[^+\/0-9A-Za-z-_]/g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":104,ieee754:105,isarray:106}],104:[function(a,b,c){var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(a){"use strict";function b(a){var b=a.charCodeAt(0);return b===g||b===l?62:b===h||b===m?63:i>b?-1:i+10>b?b-i+26+26:k+26>b?b-k:j+26>b?b-j+26:void 0}function c(a){function c(a){j[l++]=a}var d,e,g,h,i,j;if(a.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var k=a.length;i="="===a.charAt(k-2)?2:"="===a.charAt(k-1)?1:0,j=new f(3*a.length/4-i),g=i>0?a.length-4:a.length;var l=0;for(d=0,e=0;g>d;d+=4,e+=3)h=b(a.charAt(d))<<18|b(a.charAt(d+1))<<12|b(a.charAt(d+2))<<6|b(a.charAt(d+3)),c((16711680&h)>>16),c((65280&h)>>8),c(255&h);return 2===i?(h=b(a.charAt(d))<<2|b(a.charAt(d+1))>>4,c(255&h)):1===i&&(h=b(a.charAt(d))<<10|b(a.charAt(d+1))<<4|b(a.charAt(d+2))>>2,c(h>>8&255),c(255&h)),j}function e(a){function b(a){return d.charAt(a)}function c(a){return b(a>>18&63)+b(a>>12&63)+b(a>>6&63)+b(63&a)}var e,f,g,h=a.length%3,i="";for(e=0,g=a.length-h;g>e;e+=3)f=(a[e]<<16)+(a[e+1]<<8)+a[e+2],i+=c(f);switch(h){case 1:f=a[a.length-1],i+=b(f>>2),i+=b(f<<4&63),i+="==";break;case 2:f=(a[a.length-2]<<8)+a[a.length-1],i+=b(f>>10),i+=b(f>>4&63),i+=b(f<<2&63),i+="="}return i}var f="undefined"!=typeof Uint8Array?Uint8Array:Array,g="+".charCodeAt(0),h="/".charCodeAt(0),i="0".charCodeAt(0),j="a".charCodeAt(0),k="A".charCodeAt(0),l="-".charCodeAt(0),m="_".charCodeAt(0);a.toByteArray=c,a.fromByteArray=e}("undefined"==typeof c?this.base64js={}:c)},{}],105:[function(a,b,c){c.read=function(a,b,c,d,e){var f,g,h=8*e-d-1,i=(1<<h)-1,j=i>>1,k=-7,l=c?e-1:0,m=c?-1:1,n=a[b+l];for(l+=m,f=n&(1<<-k)-1,n>>=-k,k+=h;k>0;f=256*f+a[b+l],l+=m,k-=8);for(g=f&(1<<-k)-1,f>>=-k,k+=d;k>0;g=256*g+a[b+l],l+=m,k-=8);if(0===f)f=1-j;else{if(f===i)return g?NaN:(n?-1:1)*(1/0);g+=Math.pow(2,d),f-=j}return(n?-1:1)*g*Math.pow(2,f-d)},c.write=function(a,b,c,d,e,f){var g,h,i,j=8*f-e-1,k=(1<<j)-1,l=k>>1,m=23===e?Math.pow(2,-24)-Math.pow(2,-77):0,n=d?0:f-1,o=d?1:-1,p=0>b||0===b&&0>1/b?1:0;for(b=Math.abs(b),isNaN(b)||b===1/0?(h=isNaN(b)?1:0,g=k):(g=Math.floor(Math.log(b)/Math.LN2),b*(i=Math.pow(2,-g))<1&&(g--,i*=2),b+=g+l>=1?m/i:m*Math.pow(2,1-l),b*i>=2&&(g++,i/=2),g+l>=k?(h=0,g=k):g+l>=1?(h=(b*i-1)*Math.pow(2,e),g+=l):(h=b*Math.pow(2,l-1)*Math.pow(2,e),g=0));e>=8;a[c+n]=255&h,n+=o,h/=256,e-=8);for(g=g<<e|h,j+=e;j>0;a[c+n]=255&g,n+=o,g/=256,j-=8);a[c+n-o]|=128*p}},{}],106:[function(a,b,c){var d={}.toString;b.exports=Array.isArray||function(a){return"[object Array]"==d.call(a)}},{}],107:[function(a,b,c){function d(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function e(a){return"function"==typeof a}function f(a){return"number"==typeof a}function g(a){return"object"==typeof a&&null!==a}function h(a){return void 0===a}b.exports=d,d.EventEmitter=d,d.prototype._events=void 0,d.prototype._maxListeners=void 0,d.defaultMaxListeners=10,d.prototype.setMaxListeners=function(a){if(!f(a)||0>a||isNaN(a))throw TypeError("n must be a positive number");return this._maxListeners=a,this},d.prototype.emit=function(a){var b,c,d,f,i,j;if(this._events||(this._events={}),"error"===a&&(!this._events.error||g(this._events.error)&&!this._events.error.length)){if(b=arguments[1],b instanceof Error)throw b;throw TypeError('Uncaught, unspecified "error" event.')}if(c=this._events[a],h(c))return!1;if(e(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:for(d=arguments.length,
10
- f=new Array(d-1),i=1;d>i;i++)f[i-1]=arguments[i];c.apply(this,f)}else if(g(c)){for(d=arguments.length,f=new Array(d-1),i=1;d>i;i++)f[i-1]=arguments[i];for(j=c.slice(),d=j.length,i=0;d>i;i++)j[i].apply(this,f)}return!0},d.prototype.addListener=function(a,b){var c;if(!e(b))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",a,e(b.listener)?b.listener:b),this._events[a]?g(this._events[a])?this._events[a].push(b):this._events[a]=[this._events[a],b]:this._events[a]=b,g(this._events[a])&&!this._events[a].warned){var c;c=h(this._maxListeners)?d.defaultMaxListeners:this._maxListeners,c&&c>0&&this._events[a].length>c&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),"function"==typeof console.trace&&console.trace())}return this},d.prototype.on=d.prototype.addListener,d.prototype.once=function(a,b){function c(){this.removeListener(a,c),d||(d=!0,b.apply(this,arguments))}if(!e(b))throw TypeError("listener must be a function");var d=!1;return c.listener=b,this.on(a,c),this},d.prototype.removeListener=function(a,b){var c,d,f,h;if(!e(b))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;if(c=this._events[a],f=c.length,d=-1,c===b||e(c.listener)&&c.listener===b)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,b);else if(g(c)){for(h=f;h-- >0;)if(c[h]===b||c[h].listener&&c[h].listener===b){d=h;break}if(0>d)return this;1===c.length?(c.length=0,delete this._events[a]):c.splice(d,1),this._events.removeListener&&this.emit("removeListener",a,b)}return this},d.prototype.removeAllListeners=function(a){var b,c;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[a]&&delete this._events[a],this;if(0===arguments.length){for(b in this._events)"removeListener"!==b&&this.removeAllListeners(b);return this.removeAllListeners("removeListener"),this._events={},this}if(c=this._events[a],e(c))this.removeListener(a,c);else for(;c.length;)this.removeListener(a,c[c.length-1]);return delete this._events[a],this},d.prototype.listeners=function(a){var b;return b=this._events&&this._events[a]?e(this._events[a])?[this._events[a]]:this._events[a].slice():[]},d.listenerCount=function(a,b){var c;return c=a._events&&a._events[b]?e(a._events[b])?1:a._events[b].length:0}},{}],108:[function(a,b,c){"function"==typeof Object.create?b.exports=function(a,b){a.super_=b,a.prototype=Object.create(b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}})}:b.exports=function(a,b){a.super_=b;var c=function(){};c.prototype=b.prototype,a.prototype=new c,a.prototype.constructor=a}},{}],109:[function(a,b,c){b.exports=function(a){return!(null==a||!(a._isBuffer||a.constructor&&"function"==typeof a.constructor.isBuffer&&a.constructor.isBuffer(a)))}},{}],110:[function(a,b,c){b.exports=Array.isArray||function(a){return"[object Array]"==Object.prototype.toString.call(a)}},{}],111:[function(a,b,c){function d(){k=!1,h.length?j=h.concat(j):l=-1,j.length&&e()}function e(){if(!k){var a=setTimeout(d);k=!0;for(var b=j.length;b;){for(h=j,j=[];++l<b;)h&&h[l].run();l=-1,b=j.length}h=null,k=!1,clearTimeout(a)}}function f(a,b){this.fun=a,this.array=b}function g(){}var h,i=b.exports={},j=[],k=!1,l=-1;i.nextTick=function(a){var b=new Array(arguments.length-1);if(arguments.length>1)for(var c=1;c<arguments.length;c++)b[c-1]=arguments[c];j.push(new f(a,b)),1!==j.length||k||setTimeout(e,0)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.binding=function(a){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(a){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],112:[function(a,b,c){(function(a){!function(d){function e(a){throw new RangeError(H[a])}function f(a,b){for(var c=a.length,d=[];c--;)d[c]=b(a[c]);return d}function g(a,b){var c=a.split("@"),d="";c.length>1&&(d=c[0]+"@",a=c[1]),a=a.replace(G,".");var e=a.split("."),g=f(e,b).join(".");return d+g}function h(a){for(var b,c,d=[],e=0,f=a.length;f>e;)b=a.charCodeAt(e++),b>=55296&&56319>=b&&f>e?(c=a.charCodeAt(e++),56320==(64512&c)?d.push(((1023&b)<<10)+(1023&c)+65536):(d.push(b),e--)):d.push(b);return d}function i(a){return f(a,function(a){var b="";return a>65535&&(a-=65536,b+=K(a>>>10&1023|55296),a=56320|1023&a),b+=K(a)}).join("")}function j(a){return 10>a-48?a-22:26>a-65?a-65:26>a-97?a-97:w}function k(a,b){return a+22+75*(26>a)-((0!=b)<<5)}function l(a,b,c){var d=0;for(a=c?J(a/A):a>>1,a+=J(a/b);a>I*y>>1;d+=w)a=J(a/I);return J(d+(I+1)*a/(a+z))}function m(a){var b,c,d,f,g,h,k,m,n,o,p=[],q=a.length,r=0,s=C,t=B;for(c=a.lastIndexOf(D),0>c&&(c=0),d=0;c>d;++d)a.charCodeAt(d)>=128&&e("not-basic"),p.push(a.charCodeAt(d));for(f=c>0?c+1:0;q>f;){for(g=r,h=1,k=w;f>=q&&e("invalid-input"),m=j(a.charCodeAt(f++)),(m>=w||m>J((v-r)/h))&&e("overflow"),r+=m*h,n=t>=k?x:k>=t+y?y:k-t,!(n>m);k+=w)o=w-n,h>J(v/o)&&e("overflow"),h*=o;b=p.length+1,t=l(r-g,b,0==g),J(r/b)>v-s&&e("overflow"),s+=J(r/b),r%=b,p.splice(r++,0,s)}return i(p)}function n(a){var b,c,d,f,g,i,j,m,n,o,p,q,r,s,t,u=[];for(a=h(a),q=a.length,b=C,c=0,g=B,i=0;q>i;++i)p=a[i],128>p&&u.push(K(p));for(d=f=u.length,f&&u.push(D);q>d;){for(j=v,i=0;q>i;++i)p=a[i],p>=b&&j>p&&(j=p);for(r=d+1,j-b>J((v-c)/r)&&e("overflow"),c+=(j-b)*r,b=j,i=0;q>i;++i)if(p=a[i],b>p&&++c>v&&e("overflow"),p==b){for(m=c,n=w;o=g>=n?x:n>=g+y?y:n-g,!(o>m);n+=w)t=m-o,s=w-o,u.push(K(k(o+t%s,0))),m=J(t/s);u.push(K(k(m,0))),g=l(c,r,d==f),c=0,++d}++c,++b}return u.join("")}function o(a){return g(a,function(a){return E.test(a)?m(a.slice(4).toLowerCase()):a})}function p(a){return g(a,function(a){return F.test(a)?"xn--"+n(a):a})}var q="object"==typeof c&&c&&!c.nodeType&&c,r="object"==typeof b&&b&&!b.nodeType&&b,s="object"==typeof a&&a;s.global!==s&&s.window!==s&&s.self!==s||(d=s);var t,u,v=2147483647,w=36,x=1,y=26,z=38,A=700,B=72,C=128,D="-",E=/^xn--/,F=/[^\x20-\x7E]/,G=/[\x2E\u3002\uFF0E\uFF61]/g,H={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},I=w-x,J=Math.floor,K=String.fromCharCode;if(t={version:"1.3.2",ucs2:{decode:h,encode:i},decode:m,encode:n,toASCII:p,toUnicode:o},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return t});else if(q&&r)if(b.exports==q)r.exports=t;else for(u in t)t.hasOwnProperty(u)&&(q[u]=t[u]);else d.punycode=t}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],113:[function(a,b,c){"use strict";function d(a,b){return Object.prototype.hasOwnProperty.call(a,b)}b.exports=function(a,b,c,f){b=b||"&",c=c||"=";var g={};if("string"!=typeof a||0===a.length)return g;var h=/\+/g;a=a.split(b);var i=1e3;f&&"number"==typeof f.maxKeys&&(i=f.maxKeys);var j=a.length;i>0&&j>i&&(j=i);for(var k=0;j>k;++k){var l,m,n,o,p=a[k].replace(h,"%20"),q=p.indexOf(c);q>=0?(l=p.substr(0,q),m=p.substr(q+1)):(l=p,m=""),n=decodeURIComponent(l),o=decodeURIComponent(m),d(g,n)?e(g[n])?g[n].push(o):g[n]=[g[n],o]:g[n]=o}return g};var e=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)}},{}],114:[function(a,b,c){"use strict";function d(a,b){if(a.map)return a.map(b);for(var c=[],d=0;d<a.length;d++)c.push(b(a[d],d));return c}var e=function(a){switch(typeof a){case"string":return a;case"boolean":return a?"true":"false";case"number":return isFinite(a)?a:"";default:return""}};b.exports=function(a,b,c,h){return b=b||"&",c=c||"=",null===a&&(a=void 0),"object"==typeof a?d(g(a),function(g){var h=encodeURIComponent(e(g))+c;return f(a[g])?d(a[g],function(a){return h+encodeURIComponent(e(a))}).join(b):h+encodeURIComponent(e(a[g]))}).join(b):h?encodeURIComponent(e(h))+c+encodeURIComponent(e(a)):""};var f=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)},g=Object.keys||function(a){var b=[];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.push(c);return b}},{}],115:[function(a,b,c){"use strict";c.decode=c.parse=a("./decode"),c.encode=c.stringify=a("./encode")},{"./decode":113,"./encode":114}],116:[function(a,b,c){b.exports=a("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":117}],117:[function(a,b,c){"use strict";function d(a){return this instanceof d?(j.call(this,a),k.call(this,a),a&&a.readable===!1&&(this.readable=!1),a&&a.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,a&&a.allowHalfOpen===!1&&(this.allowHalfOpen=!1),void this.once("end",e)):new d(a)}function e(){this.allowHalfOpen||this._writableState.ended||h(f,this)}function f(a){a.end()}var g=Object.keys||function(a){var b=[];for(var c in a)b.push(c);return b};b.exports=d;var h=a("process-nextick-args"),i=a("core-util-is");i.inherits=a("inherits");var j=a("./_stream_readable"),k=a("./_stream_writable");i.inherits(d,j);for(var l=g(k.prototype),m=0;m<l.length;m++){var n=l[m];d.prototype[n]||(d.prototype[n]=k.prototype[n])}},{"./_stream_readable":119,"./_stream_writable":121,"core-util-is":122,inherits:108,"process-nextick-args":123}],118:[function(a,b,c){"use strict";function d(a){return this instanceof d?void e.call(this,a):new d(a)}b.exports=d;var e=a("./_stream_transform"),f=a("core-util-is");f.inherits=a("inherits"),f.inherits(d,e),d.prototype._transform=function(a,b,c){c(null,a)}},{"./_stream_transform":120,"core-util-is":122,inherits:108}],119:[function(a,b,c){(function(c){"use strict";function d(b,c){I=I||a("./_stream_duplex"),b=b||{},this.objectMode=!!b.objectMode,c instanceof I&&(this.objectMode=this.objectMode||!!b.readableObjectMode);var d=b.highWaterMark,e=this.objectMode?16:16384;this.highWaterMark=d||0===d?d:e,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.defaultEncoding=b.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,b.encoding&&(H||(H=a("string_decoder/").StringDecoder),this.decoder=new H(b.encoding),this.encoding=b.encoding)}function e(b){return I=I||a("./_stream_duplex"),this instanceof e?(this._readableState=new d(b,this),this.readable=!0,b&&"function"==typeof b.read&&(this._read=b.read),void C.call(this)):new e(b)}function f(a,b,c,d,e){var f=j(b,c);if(f)a.emit("error",f);else if(null===c)b.reading=!1,k(a,b);else if(b.objectMode||c&&c.length>0)if(b.ended&&!e){var h=new Error("stream.push() after EOF");a.emit("error",h)}else if(b.endEmitted&&e){var h=new Error("stream.unshift() after end event");a.emit("error",h)}else!b.decoder||e||d||(c=b.decoder.write(c)),e||(b.reading=!1),b.flowing&&0===b.length&&!b.sync?(a.emit("data",c),a.read(0)):(b.length+=b.objectMode?1:c.length,e?b.buffer.unshift(c):b.buffer.push(c),b.needReadable&&l(a)),n(a,b);else e||(b.reading=!1);return g(b)}function g(a){return!a.ended&&(a.needReadable||a.length<a.highWaterMark||0===a.length)}function h(a){return a>=J?a=J:(a--,a|=a>>>1,a|=a>>>2,a|=a>>>4,a|=a>>>8,a|=a>>>16,a++),a}function i(a,b){return 0===b.length&&b.ended?0:b.objectMode?0===a?0:1:null===a||isNaN(a)?b.flowing&&b.buffer.length?b.buffer[0].length:b.length:0>=a?0:(a>b.highWaterMark&&(b.highWaterMark=h(a)),a>b.length?b.ended?b.length:(b.needReadable=!0,0):a)}function j(a,b){var c=null;return B.isBuffer(b)||"string"==typeof b||null===b||void 0===b||a.objectMode||(c=new TypeError("Invalid non-string/buffer chunk")),c}function k(a,b){if(!b.ended){if(b.decoder){var c=b.decoder.end();c&&c.length&&(b.buffer.push(c),b.length+=b.objectMode?1:c.length)}b.ended=!0,l(a)}}function l(a){var b=a._readableState;b.needReadable=!1,b.emittedReadable||(F("emitReadable",b.flowing),b.emittedReadable=!0,b.sync?z(m,a):m(a))}function m(a){F("emit readable"),a.emit("readable"),t(a)}function n(a,b){b.readingMore||(b.readingMore=!0,z(o,a,b))}function o(a,b){for(var c=b.length;!b.reading&&!b.flowing&&!b.ended&&b.length<b.highWaterMark&&(F("maybeReadMore read 0"),a.read(0),c!==b.length);)c=b.length;b.readingMore=!1}function p(a){return function(){var b=a._readableState;F("pipeOnDrain",b.awaitDrain),b.awaitDrain&&b.awaitDrain--,0===b.awaitDrain&&D(a,"data")&&(b.flowing=!0,t(a))}}function q(a){F("readable nexttick read 0"),a.read(0)}function r(a,b){b.resumeScheduled||(b.resumeScheduled=!0,z(s,a,b))}function s(a,b){b.reading||(F("resume read 0"),a.read(0)),b.resumeScheduled=!1,a.emit("resume"),t(a),b.flowing&&!b.reading&&a.read(0)}function t(a){var b=a._readableState;if(F("flow",b.flowing),b.flowing)do var c=a.read();while(null!==c&&b.flowing)}function u(a,b){var c,d=b.buffer,e=b.length,f=!!b.decoder,g=!!b.objectMode;if(0===d.length)return null;if(0===e)c=null;else if(g)c=d.shift();else if(!a||a>=e)c=f?d.join(""):1===d.length?d[0]:B.concat(d,e),d.length=0;else if(a<d[0].length){var h=d[0];c=h.slice(0,a),d[0]=h.slice(a)}else if(a===d[0].length)c=d.shift();else{c=f?"":new B(a);for(var i=0,j=0,k=d.length;k>j&&a>i;j++){var h=d[0],l=Math.min(a-i,h.length);f?c+=h.slice(0,l):h.copy(c,i,0,l),l<h.length?d[0]=h.slice(l):d.shift(),i+=l}}return c}function v(a){var b=a._readableState;if(b.length>0)throw new Error("endReadable called on non-empty stream");b.endEmitted||(b.ended=!0,z(w,b,a))}function w(a,b){a.endEmitted||0!==a.length||(a.endEmitted=!0,b.readable=!1,b.emit("end"))}function x(a,b){for(var c=0,d=a.length;d>c;c++)b(a[c],c)}function y(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1}b.exports=e;var z=a("process-nextick-args"),A=a("isarray"),B=a("buffer").Buffer;e.ReadableState=d;var C,D=(a("events"),function(a,b){return a.listeners(b).length});!function(){try{C=a("stream")}catch(b){}finally{C||(C=a("events").EventEmitter)}}();var B=a("buffer").Buffer,E=a("core-util-is");E.inherits=a("inherits");var F,G=a("util");F=G&&G.debuglog?G.debuglog("stream"):function(){};var H;E.inherits(e,C);var I,I;e.prototype.push=function(a,b){var c=this._readableState;return c.objectMode||"string"!=typeof a||(b=b||c.defaultEncoding,b!==c.encoding&&(a=new B(a,b),b="")),f(this,c,a,b,!1)},e.prototype.unshift=function(a){var b=this._readableState;return f(this,b,a,"",!0)},e.prototype.isPaused=function(){return this._readableState.flowing===!1},e.prototype.setEncoding=function(b){return H||(H=a("string_decoder/").StringDecoder),this._readableState.decoder=new H(b),this._readableState.encoding=b,this};var J=8388608;e.prototype.read=function(a){F("read",a);var b=this._readableState,c=a;if(("number"!=typeof a||a>0)&&(b.emittedReadable=!1),0===a&&b.needReadable&&(b.length>=b.highWaterMark||b.ended))return F("read: emitReadable",b.length,b.ended),0===b.length&&b.ended?v(this):l(this),null;if(a=i(a,b),0===a&&b.ended)return 0===b.length&&v(this),null;var d=b.needReadable;F("need readable",d),(0===b.length||b.length-a<b.highWaterMark)&&(d=!0,F("length less than watermark",d)),(b.ended||b.reading)&&(d=!1,F("reading or ended",d)),d&&(F("do read"),b.reading=!0,b.sync=!0,0===b.length&&(b.needReadable=!0),this._read(b.highWaterMark),b.sync=!1),d&&!b.reading&&(a=i(c,b));var e;return e=a>0?u(a,b):null,null===e&&(b.needReadable=!0,a=0),b.length-=a,0!==b.length||b.ended||(b.needReadable=!0),c!==a&&b.ended&&0===b.length&&v(this),null!==e&&this.emit("data",e),e},e.prototype._read=function(a){this.emit("error",new Error("not implemented"))},e.prototype.pipe=function(a,b){function d(a){F("onunpipe"),a===l&&f()}function e(){F("onend"),a.end()}function f(){F("cleanup"),a.removeListener("close",i),a.removeListener("finish",j),a.removeListener("drain",q),a.removeListener("error",h),a.removeListener("unpipe",d),l.removeListener("end",e),l.removeListener("end",f),l.removeListener("data",g),r=!0,!m.awaitDrain||a._writableState&&!a._writableState.needDrain||q()}function g(b){F("ondata");var c=a.write(b);!1===c&&(1!==m.pipesCount||m.pipes[0]!==a||1!==l.listenerCount("data")||r||(F("false write response, pause",l._readableState.awaitDrain),l._readableState.awaitDrain++),l.pause())}function h(b){F("onerror",b),k(),a.removeListener("error",h),0===D(a,"error")&&a.emit("error",b)}function i(){a.removeListener("finish",j),k()}function j(){F("onfinish"),a.removeListener("close",i),k()}function k(){F("unpipe"),l.unpipe(a)}var l=this,m=this._readableState;switch(m.pipesCount){case 0:m.pipes=a;break;case 1:m.pipes=[m.pipes,a];break;default:m.pipes.push(a)}m.pipesCount+=1,F("pipe count=%d opts=%j",m.pipesCount,b);var n=(!b||b.end!==!1)&&a!==c.stdout&&a!==c.stderr,o=n?e:f;m.endEmitted?z(o):l.once("end",o),a.on("unpipe",d);var q=p(l);a.on("drain",q);var r=!1;return l.on("data",g),a._events&&a._events.error?A(a._events.error)?a._events.error.unshift(h):a._events.error=[h,a._events.error]:a.on("error",h),a.once("close",i),a.once("finish",j),a.emit("pipe",l),m.flowing||(F("pipe resume"),l.resume()),a},e.prototype.unpipe=function(a){var b=this._readableState;if(0===b.pipesCount)return this;if(1===b.pipesCount)return a&&a!==b.pipes?this:(a||(a=b.pipes),b.pipes=null,b.pipesCount=0,b.flowing=!1,a&&a.emit("unpipe",this),this);if(!a){var c=b.pipes,d=b.pipesCount;b.pipes=null,b.pipesCount=0,b.flowing=!1;for(var e=0;d>e;e++)c[e].emit("unpipe",this);return this}var e=y(b.pipes,a);return-1===e?this:(b.pipes.splice(e,1),b.pipesCount-=1,1===b.pipesCount&&(b.pipes=b.pipes[0]),a.emit("unpipe",this),this)},e.prototype.on=function(a,b){var c=C.prototype.on.call(this,a,b);if("data"===a&&!1!==this._readableState.flowing&&this.resume(),"readable"===a&&this.readable){var d=this._readableState;d.readableListening||(d.readableListening=!0,d.emittedReadable=!1,d.needReadable=!0,d.reading?d.length&&l(this,d):z(q,this))}return c},e.prototype.addListener=e.prototype.on,e.prototype.resume=function(){var a=this._readableState;return a.flowing||(F("resume"),a.flowing=!0,r(this,a)),this},e.prototype.pause=function(){return F("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(F("pause"),this._readableState.flowing=!1,this.emit("pause")),this},e.prototype.wrap=function(a){var b=this._readableState,c=!1,d=this;a.on("end",function(){if(F("wrapped end"),b.decoder&&!b.ended){var a=b.decoder.end();a&&a.length&&d.push(a)}d.push(null)}),a.on("data",function(e){if(F("wrapped data"),b.decoder&&(e=b.decoder.write(e)),(!b.objectMode||null!==e&&void 0!==e)&&(b.objectMode||e&&e.length)){var f=d.push(e);f||(c=!0,a.pause())}});for(var e in a)void 0===this[e]&&"function"==typeof a[e]&&(this[e]=function(b){return function(){return a[b].apply(a,arguments)}}(e));var f=["error","close","destroy","pause","resume"];return x(f,function(b){a.on(b,d.emit.bind(d,b))}),d._read=function(b){F("wrapped _read",b),c&&(c=!1,a.resume())},d},e._fromList=u}).call(this,a("_process"))},{"./_stream_duplex":117,_process:111,buffer:103,"core-util-is":122,events:107,inherits:108,isarray:110,"process-nextick-args":123,"string_decoder/":139,util:102}],120:[function(a,b,c){"use strict";function d(a){this.afterTransform=function(b,c){return e(a,b,c)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function e(a,b,c){var d=a._transformState;d.transforming=!1;var e=d.writecb;if(!e)return a.emit("error",new Error("no writecb in Transform class"));d.writechunk=null,d.writecb=null,null!==c&&void 0!==c&&a.push(c),e&&e(b);var f=a._readableState;f.reading=!1,(f.needReadable||f.length<f.highWaterMark)&&a._read(f.highWaterMark)}function f(a){if(!(this instanceof f))return new f(a);h.call(this,a),this._transformState=new d(this);var b=this;this._readableState.needReadable=!0,this._readableState.sync=!1,a&&("function"==typeof a.transform&&(this._transform=a.transform),"function"==typeof a.flush&&(this._flush=a.flush)),this.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(a){g(b,a)}):g(b)})}function g(a,b){if(b)return a.emit("error",b);var c=a._writableState,d=a._transformState;if(c.length)throw new Error("calling transform done when ws.length != 0");if(d.transforming)throw new Error("calling transform done when still transforming");return a.push(null)}b.exports=f;var h=a("./_stream_duplex"),i=a("core-util-is");i.inherits=a("inherits"),i.inherits(f,h),f.prototype.push=function(a,b){return this._transformState.needTransform=!1,h.prototype.push.call(this,a,b)},f.prototype._transform=function(a,b,c){throw new Error("not implemented")},f.prototype._write=function(a,b,c){var d=this._transformState;if(d.writecb=c,d.writechunk=a,d.writeencoding=b,!d.transforming){var e=this._readableState;(d.needTransform||e.needReadable||e.length<e.highWaterMark)&&this._read(e.highWaterMark)}},f.prototype._read=function(a){var b=this._transformState;null!==b.writechunk&&b.writecb&&!b.transforming?(b.transforming=!0,this._transform(b.writechunk,b.writeencoding,b.afterTransform)):b.needTransform=!0}},{"./_stream_duplex":117,"core-util-is":122,inherits:108}],121:[function(a,b,c){"use strict";function d(){}function e(a,b,c){this.chunk=a,this.encoding=b,this.callback=c,this.next=null}function f(b,c){B=B||a("./_stream_duplex"),b=b||{},this.objectMode=!!b.objectMode,c instanceof B&&(this.objectMode=this.objectMode||!!b.writableObjectMode);var d=b.highWaterMark,e=this.objectMode?16:16384;this.highWaterMark=d||0===d?d:e,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var f=b.decodeStrings===!1;this.decodeStrings=!f,this.defaultEncoding=b.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){o(c,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1}function g(b){return B=B||a("./_stream_duplex"),this instanceof g||this instanceof B?(this._writableState=new f(b,this),this.writable=!0,b&&("function"==typeof b.write&&(this._write=b.write),"function"==typeof b.writev&&(this._writev=b.writev)),void z.call(this)):new g(b)}function h(a,b){var c=new Error("write after end");a.emit("error",c),w(b,c)}function i(a,b,c,d){var e=!0;if(!x.isBuffer(c)&&"string"!=typeof c&&null!==c&&void 0!==c&&!b.objectMode){var f=new TypeError("Invalid non-string/buffer chunk");a.emit("error",f),w(d,f),e=!1}return e}function j(a,b,c){return a.objectMode||a.decodeStrings===!1||"string"!=typeof b||(b=new x(b,c)),b}function k(a,b,c,d,f){c=j(b,c,d),x.isBuffer(c)&&(d="buffer");var g=b.objectMode?1:c.length;b.length+=g;var h=b.length<b.highWaterMark;if(h||(b.needDrain=!0),b.writing||b.corked){var i=b.lastBufferedRequest;b.lastBufferedRequest=new e(c,d,f),i?i.next=b.lastBufferedRequest:b.bufferedRequest=b.lastBufferedRequest}else l(a,b,!1,g,c,d,f);return h}function l(a,b,c,d,e,f,g){b.writelen=d,b.writecb=g,b.writing=!0,b.sync=!0,c?a._writev(e,b.onwrite):a._write(e,f,b.onwrite),b.sync=!1}function m(a,b,c,d,e){--b.pendingcb,c?w(e,d):e(d),a._writableState.errorEmitted=!0,a.emit("error",d)}function n(a){a.writing=!1,a.writecb=null,a.length-=a.writelen,a.writelen=0}function o(a,b){var c=a._writableState,d=c.sync,e=c.writecb;if(n(c),b)m(a,c,d,b,e);else{var f=s(c);f||c.corked||c.bufferProcessing||!c.bufferedRequest||r(a,c),d?w(p,a,c,f,e):p(a,c,f,e)}}function p(a,b,c,d){c||q(a,b),b.pendingcb--,d(),u(a,b)}function q(a,b){0===b.length&&b.needDrain&&(b.needDrain=!1,a.emit("drain"))}function r(a,b){b.bufferProcessing=!0;var c=b.bufferedRequest;if(a._writev&&c&&c.next){for(var d=[],e=[];c;)e.push(c.callback),d.push(c),c=c.next;b.pendingcb++,b.lastBufferedRequest=null,l(a,b,!0,b.length,d,"",function(a){for(var c=0;c<e.length;c++)b.pendingcb--,e[c](a)})}else{for(;c;){var f=c.chunk,g=c.encoding,h=c.callback,i=b.objectMode?1:f.length;if(l(a,b,!1,i,f,g,h),c=c.next,b.writing)break}null===c&&(b.lastBufferedRequest=null)}b.bufferedRequest=c,b.bufferProcessing=!1}function s(a){return a.ending&&0===a.length&&null===a.bufferedRequest&&!a.finished&&!a.writing}function t(a,b){b.prefinished||(b.prefinished=!0,a.emit("prefinish"))}function u(a,b){var c=s(b);return c&&(0===b.pendingcb?(t(a,b),b.finished=!0,a.emit("finish")):t(a,b)),c}function v(a,b,c){b.ending=!0,u(a,b),c&&(b.finished?w(c):a.once("finish",c)),b.ended=!0}b.exports=g;var w=a("process-nextick-args"),x=a("buffer").Buffer;g.WritableState=f;var y=a("core-util-is");y.inherits=a("inherits");var z,A={deprecate:a("util-deprecate")};!function(){try{z=a("stream")}catch(b){}finally{z||(z=a("events").EventEmitter)}}();var x=a("buffer").Buffer;y.inherits(g,z);var B;f.prototype.getBuffer=function(){for(var a=this.bufferedRequest,b=[];a;)b.push(a),a=a.next;return b},function(){try{Object.defineProperty(f.prototype,"buffer",{get:A.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")})}catch(a){}}();var B;g.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},g.prototype.write=function(a,b,c){var e=this._writableState,f=!1;return"function"==typeof b&&(c=b,b=null),x.isBuffer(a)?b="buffer":b||(b=e.defaultEncoding),"function"!=typeof c&&(c=d),e.ended?h(this,c):i(this,e,a,c)&&(e.pendingcb++,f=k(this,e,a,b,c)),f},g.prototype.cork=function(){var a=this._writableState;a.corked++},g.prototype.uncork=function(){var a=this._writableState;a.corked&&(a.corked--,a.writing||a.corked||a.finished||a.bufferProcessing||!a.bufferedRequest||r(this,a))},g.prototype.setDefaultEncoding=function(a){if("string"==typeof a&&(a=a.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((a+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+a);this._writableState.defaultEncoding=a},g.prototype._write=function(a,b,c){c(new Error("not implemented"))},g.prototype._writev=null,g.prototype.end=function(a,b,c){var d=this._writableState;"function"==typeof a?(c=a,a=null,b=null):"function"==typeof b&&(c=b,b=null),null!==a&&void 0!==a&&this.write(a,b),d.corked&&(d.corked=1,this.uncork()),d.ending||d.finished||v(this,d,c)}},{"./_stream_duplex":117,buffer:103,"core-util-is":122,events:107,inherits:108,"process-nextick-args":123,"util-deprecate":124}],122:[function(a,b,c){(function(a){function b(a){return Array.isArray?Array.isArray(a):"[object Array]"===q(a)}function d(a){return"boolean"==typeof a}function e(a){return null===a}function f(a){return null==a}function g(a){return"number"==typeof a}function h(a){return"string"==typeof a}function i(a){return"symbol"==typeof a}function j(a){return void 0===a}function k(a){return"[object RegExp]"===q(a)}function l(a){return"object"==typeof a&&null!==a}function m(a){return"[object Date]"===q(a)}function n(a){return"[object Error]"===q(a)||a instanceof Error}function o(a){return"function"==typeof a}function p(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||"undefined"==typeof a}function q(a){return Object.prototype.toString.call(a)}c.isArray=b,c.isBoolean=d,c.isNull=e,c.isNullOrUndefined=f,c.isNumber=g,c.isString=h,c.isSymbol=i,c.isUndefined=j,c.isRegExp=k,c.isObject=l,c.isDate=m,c.isError=n,c.isFunction=o,c.isPrimitive=p,c.isBuffer=a.isBuffer}).call(this,{isBuffer:a("../../../../insert-module-globals/node_modules/is-buffer/index.js")})},{"../../../../insert-module-globals/node_modules/is-buffer/index.js":109}],123:[function(a,b,c){(function(a){"use strict";function c(b){for(var c=new Array(arguments.length-1),d=0;d<c.length;)c[d++]=arguments[d];a.nextTick(function(){b.apply(null,c)})}!a.version||0===a.version.indexOf("v0.")||0===a.version.indexOf("v1.")&&0!==a.version.indexOf("v1.8.")?b.exports=c:b.exports=a.nextTick}).call(this,a("_process"))},{_process:111}],124:[function(a,b,c){(function(a){function c(a,b){function c(){if(!e){if(d("throwDeprecation"))throw new Error(b);d("traceDeprecation")?console.trace(b):console.warn(b),e=!0}return a.apply(this,arguments)}if(d("noDeprecation"))return a;var e=!1;return c}function d(b){try{if(!a.localStorage)return!1}catch(c){return!1}var d=a.localStorage[b];return null==d?!1:"true"===String(d).toLowerCase()}b.exports=c}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],125:[function(a,b,c){b.exports=a("./lib/_stream_passthrough.js")},{"./lib/_stream_passthrough.js":118}],126:[function(a,b,c){var d=function(){try{return a("stream")}catch(b){}}();c=b.exports=a("./lib/_stream_readable.js"),c.Stream=d||c,c.Readable=c,c.Writable=a("./lib/_stream_writable.js"),c.Duplex=a("./lib/_stream_duplex.js"),c.Transform=a("./lib/_stream_transform.js"),c.PassThrough=a("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":117,"./lib/_stream_passthrough.js":118,"./lib/_stream_readable.js":119,"./lib/_stream_transform.js":120,"./lib/_stream_writable.js":121}],127:[function(a,b,c){b.exports=a("./lib/_stream_transform.js")},{"./lib/_stream_transform.js":120}],128:[function(a,b,c){b.exports=a("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":121}],129:[function(a,b,c){function d(){e.call(this)}b.exports=d;var e=a("events").EventEmitter,f=a("inherits");f(d,e),d.Readable=a("readable-stream/readable.js"),d.Writable=a("readable-stream/writable.js"),d.Duplex=a("readable-stream/duplex.js"),d.Transform=a("readable-stream/transform.js"),d.PassThrough=a("readable-stream/passthrough.js"),d.Stream=d,d.prototype.pipe=function(a,b){function c(b){a.writable&&!1===a.write(b)&&j.pause&&j.pause()}function d(){j.readable&&j.resume&&j.resume()}function f(){k||(k=!0,a.end())}function g(){k||(k=!0,"function"==typeof a.destroy&&a.destroy())}function h(a){if(i(),0===e.listenerCount(this,"error"))throw a}function i(){j.removeListener("data",c),a.removeListener("drain",d),j.removeListener("end",f),j.removeListener("close",g),j.removeListener("error",h),a.removeListener("error",h),j.removeListener("end",i),j.removeListener("close",i),a.removeListener("close",i)}var j=this;j.on("data",c),a.on("drain",d),a._isStdio||b&&b.end===!1||(j.on("end",f),j.on("close",g));var k=!1;return j.on("error",h),a.on("error",h),j.on("end",i),j.on("close",i),a.on("close",i),a.emit("pipe",j),a}},{events:107,inherits:108,"readable-stream/duplex.js":116,"readable-stream/passthrough.js":125,"readable-stream/readable.js":126,"readable-stream/transform.js":127,"readable-stream/writable.js":128}],130:[function(a,b,c){var d=a("./lib/request"),e=a("xtend"),f=a("builtin-status-codes"),g=a("url"),h=c;h.request=function(a,b){a="string"==typeof a?g.parse(a):e(a);var c=a.protocol||"",f=a.hostname||a.host,h=a.port,i=a.path||"/";f&&-1!==f.indexOf(":")&&(f="["+f+"]"),a.url=(f?c+"//"+f:"")+(h?":"+h:"")+i,a.method=(a.method||"GET").toUpperCase(),a.headers=a.headers||{};var j=new d(a);return b&&j.on("response",b),j},h.get=function(a,b){var c=h.request(a,b);return c.end(),c},h.Agent=function(){},h.Agent.defaultMaxSockets=4,h.STATUS_CODES=f,h.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},{"./lib/request":132,"builtin-status-codes":134,url:140,xtend:141}],131:[function(a,b,c){(function(a){function b(a){try{return f.responseType=a,f.responseType===a}catch(b){}return!1}function d(a){return"function"==typeof a}c.fetch=d(a.fetch)&&d(a.ReadableByteStream),c.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),c.blobConstructor=!0}catch(e){}var f=new a.XMLHttpRequest;f.open("GET",a.location.host?"/":"https://example.com");var g="undefined"!=typeof a.ArrayBuffer,h=g&&d(a.ArrayBuffer.prototype.slice);c.arraybuffer=g&&b("arraybuffer"),c.msstream=!c.fetch&&h&&b("ms-stream"),c.mozchunkedarraybuffer=!c.fetch&&g&&b("moz-chunked-arraybuffer"),
11
- c.overrideMimeType=d(f.overrideMimeType),c.vbArray=d(a.VBArray),f=null}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],132:[function(a,b,c){(function(c,d,e){function f(a){return h.fetch?"fetch":h.mozchunkedarraybuffer?"moz-chunked-arraybuffer":h.msstream?"ms-stream":h.arraybuffer&&a?"arraybuffer":h.vbArray&&a?"text:vbarray":"text"}function g(a){try{return null!==a.status}catch(b){return!1}}var h=a("./capability"),i=a("foreach"),j=a("indexof"),k=a("inherits"),l=a("object-keys"),m=a("./response"),n=a("stream"),o=m.IncomingMessage,p=m.readyStates,q=b.exports=function(a){var b=this;n.Writable.call(b),b._opts=a,b._body=[],b._headers={},a.auth&&b.setHeader("Authorization","Basic "+new e(a.auth).toString("base64")),i(l(a.headers),function(c){b.setHeader(c,a.headers[c])});var c;if("prefer-streaming"===a.mode)c=!1;else if("allow-wrong-content-type"===a.mode)c=!h.overrideMimeType;else{if(a.mode&&"default"!==a.mode&&"prefer-fast"!==a.mode)throw new Error("Invalid value for opts.mode");c=!0}b._mode=f(c),b.on("finish",function(){b._onFinish()})};k(q,n.Writable),q.prototype.setHeader=function(a,b){var c=this,d=a.toLowerCase();-1===j(r,d)&&(c._headers[d]={name:a,value:b})},q.prototype.getHeader=function(a){var b=this;return b._headers[a.toLowerCase()].value},q.prototype.removeHeader=function(a){var b=this;delete b._headers[a.toLowerCase()]},q.prototype._onFinish=function(){var a=this;if(!a._destroyed){var b,f=a._opts,g=a._headers;if("POST"!==f.method&&"PUT"!==f.method||(b=h.blobConstructor?new d.Blob(a._body.map(function(a){return a.toArrayBuffer()}),{type:(g["content-type"]||{}).value||""}):e.concat(a._body).toString()),"fetch"===a._mode){var j=l(g).map(function(a){return[g[a].name,g[a].value]});d.fetch(a._opts.url,{method:a._opts.method,headers:j,body:b,mode:"cors",credentials:f.withCredentials?"include":"same-origin"}).then(function(b){a._fetchResponse=b,a._connect()}).then(void 0,function(b){a.emit("error",b)})}else{var k=a._xhr=new d.XMLHttpRequest;try{k.open(a._opts.method,a._opts.url,!0)}catch(m){return void c.nextTick(function(){a.emit("error",m)})}"responseType"in k&&(k.responseType=a._mode.split(":")[0]),"withCredentials"in k&&(k.withCredentials=!!f.withCredentials),"text"===a._mode&&"overrideMimeType"in k&&k.overrideMimeType("text/plain; charset=x-user-defined"),i(l(g),function(a){k.setRequestHeader(g[a].name,g[a].value)}),a._response=null,k.onreadystatechange=function(){switch(k.readyState){case p.LOADING:case p.DONE:a._onXHRProgress()}},"moz-chunked-arraybuffer"===a._mode&&(k.onprogress=function(){a._onXHRProgress()}),k.onerror=function(){a._destroyed||a.emit("error",new Error("XHR error"))};try{k.send(b)}catch(m){return void c.nextTick(function(){a.emit("error",m)})}}}},q.prototype._onXHRProgress=function(){var a=this;g(a._xhr)&&!a._destroyed&&(a._response||a._connect(),a._response._onXHRProgress())},q.prototype._connect=function(){var a=this;a._destroyed||(a._response=new o(a._xhr,a._fetchResponse,a._mode),a.emit("response",a._response))},q.prototype._write=function(a,b,c){var d=this;d._body.push(a),c()},q.prototype.abort=q.prototype.destroy=function(){var a=this;a._destroyed=!0,a._response&&(a._response._destroyed=!0),a._xhr&&a._xhr.abort()},q.prototype.end=function(a,b,c){var d=this;"function"==typeof a&&(c=a,a=void 0),n.Writable.prototype.end.call(d,a,b,c)},q.prototype.flushHeaders=function(){},q.prototype.setTimeout=function(){},q.prototype.setNoDelay=function(){},q.prototype.setSocketKeepAlive=function(){};var r=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},a("buffer").Buffer)},{"./capability":131,"./response":133,_process:111,buffer:103,foreach:135,indexof:136,inherits:108,"object-keys":137,stream:129}],133:[function(a,b,c){(function(b,d,e){var f=a("./capability"),g=a("foreach"),h=a("inherits"),i=a("stream"),j=c.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},k=c.IncomingMessage=function(a,c,d){function h(){n.read().then(function(a){if(!j._destroyed){if(a.done)return void j.push(null);j.push(new e(a.value)),h()}})}var j=this;if(i.Readable.call(j),j._mode=d,j.headers={},j.rawHeaders=[],j.trailers={},j.rawTrailers=[],j.on("end",function(){b.nextTick(function(){j.emit("close")})}),"fetch"===d){j._fetchResponse=c,j.statusCode=c.status,j.statusMessage=c.statusText;for(var k,l,m=c.headers[Symbol.iterator]();k=(l=m.next()).value,!l.done;)j.headers[k[0].toLowerCase()]=k[1],j.rawHeaders.push(k[0],k[1]);var n=c.body.getReader();h()}else{j._xhr=a,j._pos=0,j.statusCode=a.status,j.statusMessage=a.statusText;var o=a.getAllResponseHeaders().split(/\r?\n/);if(g(o,function(a){var b=a.match(/^([^:]+):\s*(.*)/);if(b){var c=b[1].toLowerCase();void 0!==j.headers[c]?j.headers[c]+=", "+b[2]:j.headers[c]=b[2],j.rawHeaders.push(b[1],b[2])}}),j._charset="x-user-defined",!f.overrideMimeType){var p=j.rawHeaders["mime-type"];if(p){var q=p.match(/;\s*charset=([^;])(;|$)/);q&&(j._charset=q[1].toLowerCase())}j._charset||(j._charset="utf-8")}}};h(k,i.Readable),k.prototype._read=function(){},k.prototype._onXHRProgress=function(){var a=this,b=a._xhr,c=null;switch(a._mode){case"text:vbarray":if(b.readyState!==j.DONE)break;try{c=new d.VBArray(b.responseBody).toArray()}catch(f){}if(null!==c){a.push(new e(c));break}case"text":try{c=b.responseText}catch(f){a._mode="text:vbarray";break}if(c.length>a._pos){var g=c.substr(a._pos);if("x-user-defined"===a._charset){for(var h=new e(g.length),i=0;i<g.length;i++)h[i]=255&g.charCodeAt(i);a.push(h)}else a.push(g,a._charset);a._pos=c.length}break;case"arraybuffer":if(b.readyState!==j.DONE)break;c=b.response,a.push(new e(new Uint8Array(c)));break;case"moz-chunked-arraybuffer":if(c=b.response,b.readyState!==j.LOADING||!c)break;a.push(new e(new Uint8Array(c)));break;case"ms-stream":if(c=b.response,b.readyState!==j.LOADING)break;var k=new d.MSStreamReader;k.onprogress=function(){k.result.byteLength>a._pos&&(a.push(new e(new Uint8Array(k.result.slice(a._pos)))),a._pos=k.result.byteLength)},k.onload=function(){a.push(null)},k.readAsArrayBuffer(c)}a._xhr.readyState===j.DONE&&"ms-stream"!==a._mode&&a.push(null)}}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},a("buffer").Buffer)},{"./capability":131,_process:111,buffer:103,foreach:135,inherits:108,stream:129}],134:[function(a,b,c){b.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Time-out",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Large",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Time-out",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],135:[function(a,b,c){var d=Object.prototype.hasOwnProperty,e=Object.prototype.toString;b.exports=function(a,b,c){if("[object Function]"!==e.call(b))throw new TypeError("iterator must be a function");var f=a.length;if(f===+f)for(var g=0;f>g;g++)b.call(c,a[g],g,a);else for(var h in a)d.call(a,h)&&b.call(c,a[h],h,a)}},{}],136:[function(a,b,c){var d=[].indexOf;b.exports=function(a,b){if(d)return a.indexOf(b);for(var c=0;c<a.length;++c)if(a[c]===b)return c;return-1}},{}],137:[function(a,b,c){"use strict";var d=Object.prototype.hasOwnProperty,e=Object.prototype.toString,f=Array.prototype.slice,g=a("./isArguments"),h=!{toString:null}.propertyIsEnumerable("toString"),i=function(){}.propertyIsEnumerable("prototype"),j=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],k=function(a){var b=a.constructor;return b&&b.prototype===a},l={$console:!0,$frame:!0,$frameElement:!0,$frames:!0,$parent:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},m=function(){if("undefined"==typeof window)return!1;for(var a in window)try{if(!l["$"+a]&&d.call(window,a)&&null!==window[a]&&"object"==typeof window[a])try{k(window[a])}catch(b){return!0}}catch(b){return!0}return!1}(),n=function(a){if("undefined"==typeof window||!m)return k(a);try{return k(a)}catch(b){return!1}},o=function(a){var b=null!==a&&"object"==typeof a,c="[object Function]"===e.call(a),f=g(a),k=b&&"[object String]"===e.call(a),l=[];if(!b&&!c&&!f)throw new TypeError("Object.keys called on a non-object");var m=i&&c;if(k&&a.length>0&&!d.call(a,0))for(var o=0;o<a.length;++o)l.push(String(o));if(f&&a.length>0)for(var p=0;p<a.length;++p)l.push(String(p));else for(var q in a)m&&"prototype"===q||!d.call(a,q)||l.push(String(q));if(h)for(var r=n(a),s=0;s<j.length;++s)r&&"constructor"===j[s]||!d.call(a,j[s])||l.push(j[s]);return l};o.shim=function(){if(Object.keys){var a=function(){return 2===(Object.keys(arguments)||"").length}(1,2);if(!a){var b=Object.keys;Object.keys=function(a){return b(g(a)?f.call(a):a)}}}else Object.keys=o;return Object.keys||o},b.exports=o},{"./isArguments":138}],138:[function(a,b,c){"use strict";var d=Object.prototype.toString;b.exports=function(a){var b=d.call(a),c="[object Arguments]"===b;return c||(c="[object Array]"!==b&&null!==a&&"object"==typeof a&&"number"==typeof a.length&&a.length>=0&&"[object Function]"===d.call(a.callee)),c}},{}],139:[function(a,b,c){function d(a){if(a&&!i(a))throw new Error("Unknown encoding: "+a)}function e(a){return a.toString(this.encoding)}function f(a){this.charReceived=a.length%2,this.charLength=this.charReceived?2:0}function g(a){this.charReceived=a.length%3,this.charLength=this.charReceived?3:0}var h=a("buffer").Buffer,i=h.isEncoding||function(a){switch(a&&a.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},j=c.StringDecoder=function(a){switch(this.encoding=(a||"utf8").toLowerCase().replace(/[-_]/,""),d(a),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=f;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=g;break;default:return void(this.write=e)}this.charBuffer=new h(6),this.charReceived=0,this.charLength=0};j.prototype.write=function(a){for(var b="";this.charLength;){var c=a.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:a.length;if(a.copy(this.charBuffer,this.charReceived,0,c),this.charReceived+=c,this.charReceived<this.charLength)return"";a=a.slice(c,a.length),b=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var d=b.charCodeAt(b.length-1);if(!(d>=55296&&56319>=d)){if(this.charReceived=this.charLength=0,0===a.length)return b;break}this.charLength+=this.surrogateSize,b=""}this.detectIncompleteChar(a);var e=a.length;this.charLength&&(a.copy(this.charBuffer,0,a.length-this.charReceived,e),e-=this.charReceived),b+=a.toString(this.encoding,0,e);var e=b.length-1,d=b.charCodeAt(e);if(d>=55296&&56319>=d){var f=this.surrogateSize;return this.charLength+=f,this.charReceived+=f,this.charBuffer.copy(this.charBuffer,f,0,f),a.copy(this.charBuffer,0,0,f),b.substring(0,e)}return b},j.prototype.detectIncompleteChar=function(a){for(var b=a.length>=3?3:a.length;b>0;b--){var c=a[a.length-b];if(1==b&&c>>5==6){this.charLength=2;break}if(2>=b&&c>>4==14){this.charLength=3;break}if(3>=b&&c>>3==30){this.charLength=4;break}}this.charReceived=b},j.prototype.end=function(a){var b="";if(a&&a.length&&(b=this.write(a)),this.charReceived){var c=this.charReceived,d=this.charBuffer,e=this.encoding;b+=d.slice(0,c).toString(e)}return b}},{buffer:103}],140:[function(a,b,c){function d(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function e(a,b,c){if(a&&j(a)&&a instanceof d)return a;var e=new d;return e.parse(a,b,c),e}function f(a){return i(a)&&(a=e(a)),a instanceof d?a.format():d.prototype.format.call(a)}function g(a,b){return e(a,!1,!0).resolve(b)}function h(a,b){return a?e(a,!1,!0).resolveObject(b):b}function i(a){return"string"==typeof a}function j(a){return"object"==typeof a&&null!==a}function k(a){return null===a}function l(a){return null==a}var m=a("punycode");c.parse=e,c.resolve=g,c.resolveObject=h,c.format=f,c.Url=d;var n=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,p=["<",">",'"',"`"," ","\r","\n"," "],q=["{","}","|","\\","^","`"].concat(p),r=["'"].concat(q),s=["%","/","?",";","#"].concat(r),t=["/","?","#"],u=255,v=/^[a-z0-9A-Z_-]{0,63}$/,w=/^([a-z0-9A-Z_-]{0,63})(.*)$/,x={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},z={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},A=a("querystring");d.prototype.parse=function(a,b,c){if(!i(a))throw new TypeError("Parameter 'url' must be a string, not "+typeof a);var d=a;d=d.trim();var e=n.exec(d);if(e){e=e[0];var f=e.toLowerCase();this.protocol=f,d=d.substr(e.length)}if(c||e||d.match(/^\/\/[^@\/]+@[^@\/]+/)){var g="//"===d.substr(0,2);!g||e&&y[e]||(d=d.substr(2),this.slashes=!0)}if(!y[e]&&(g||e&&!z[e])){for(var h=-1,j=0;j<t.length;j++){var k=d.indexOf(t[j]);-1!==k&&(-1===h||h>k)&&(h=k)}var l,o;o=-1===h?d.lastIndexOf("@"):d.lastIndexOf("@",h),-1!==o&&(l=d.slice(0,o),d=d.slice(o+1),this.auth=decodeURIComponent(l)),h=-1;for(var j=0;j<s.length;j++){var k=d.indexOf(s[j]);-1!==k&&(-1===h||h>k)&&(h=k)}-1===h&&(h=d.length),this.host=d.slice(0,h),d=d.slice(h),this.parseHost(),this.hostname=this.hostname||"";var p="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!p)for(var q=this.hostname.split(/\./),j=0,B=q.length;B>j;j++){var C=q[j];if(C&&!C.match(v)){for(var D="",E=0,F=C.length;F>E;E++)D+=C.charCodeAt(E)>127?"x":C[E];if(!D.match(v)){var G=q.slice(0,j),H=q.slice(j+1),I=C.match(w);I&&(G.push(I[1]),H.unshift(I[2])),H.length&&(d="/"+H.join(".")+d),this.hostname=G.join(".");break}}}if(this.hostname.length>u?this.hostname="":this.hostname=this.hostname.toLowerCase(),!p){for(var J=this.hostname.split("."),K=[],j=0;j<J.length;++j){var L=J[j];K.push(L.match(/[^A-Za-z0-9_-]/)?"xn--"+m.encode(L):L)}this.hostname=K.join(".")}var M=this.port?":"+this.port:"",N=this.hostname||"";this.host=N+M,this.href+=this.host,p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==d[0]&&(d="/"+d))}if(!x[f])for(var j=0,B=r.length;B>j;j++){var O=r[j],P=encodeURIComponent(O);P===O&&(P=escape(O)),d=d.split(O).join(P)}var Q=d.indexOf("#");-1!==Q&&(this.hash=d.substr(Q),d=d.slice(0,Q));var R=d.indexOf("?");if(-1!==R?(this.search=d.substr(R),this.query=d.substr(R+1),b&&(this.query=A.parse(this.query)),d=d.slice(0,R)):b&&(this.search="",this.query={}),d&&(this.pathname=d),z[f]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var M=this.pathname||"",L=this.search||"";this.path=M+L}return this.href=this.format(),this},d.prototype.format=function(){var a=this.auth||"";a&&(a=encodeURIComponent(a),a=a.replace(/%3A/i,":"),a+="@");var b=this.protocol||"",c=this.pathname||"",d=this.hash||"",e=!1,f="";this.host?e=a+this.host:this.hostname&&(e=a+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(e+=":"+this.port)),this.query&&j(this.query)&&Object.keys(this.query).length&&(f=A.stringify(this.query));var g=this.search||f&&"?"+f||"";return b&&":"!==b.substr(-1)&&(b+=":"),this.slashes||(!b||z[b])&&e!==!1?(e="//"+(e||""),c&&"/"!==c.charAt(0)&&(c="/"+c)):e||(e=""),d&&"#"!==d.charAt(0)&&(d="#"+d),g&&"?"!==g.charAt(0)&&(g="?"+g),c=c.replace(/[?#]/g,function(a){return encodeURIComponent(a)}),g=g.replace("#","%23"),b+e+c+g+d},d.prototype.resolve=function(a){return this.resolveObject(e(a,!1,!0)).format()},d.prototype.resolveObject=function(a){if(i(a)){var b=new d;b.parse(a,!1,!0),a=b}var c=new d;if(Object.keys(this).forEach(function(a){c[a]=this[a]},this),c.hash=a.hash,""===a.href)return c.href=c.format(),c;if(a.slashes&&!a.protocol)return Object.keys(a).forEach(function(b){"protocol"!==b&&(c[b]=a[b])}),z[c.protocol]&&c.hostname&&!c.pathname&&(c.path=c.pathname="/"),c.href=c.format(),c;if(a.protocol&&a.protocol!==c.protocol){if(!z[a.protocol])return Object.keys(a).forEach(function(b){c[b]=a[b]}),c.href=c.format(),c;if(c.protocol=a.protocol,a.host||y[a.protocol])c.pathname=a.pathname;else{for(var e=(a.pathname||"").split("/");e.length&&!(a.host=e.shift()););a.host||(a.host=""),a.hostname||(a.hostname=""),""!==e[0]&&e.unshift(""),e.length<2&&e.unshift(""),c.pathname=e.join("/")}if(c.search=a.search,c.query=a.query,c.host=a.host||"",c.auth=a.auth,c.hostname=a.hostname||a.host,c.port=a.port,c.pathname||c.search){var f=c.pathname||"",g=c.search||"";c.path=f+g}return c.slashes=c.slashes||a.slashes,c.href=c.format(),c}var h=c.pathname&&"/"===c.pathname.charAt(0),j=a.host||a.pathname&&"/"===a.pathname.charAt(0),m=j||h||c.host&&a.pathname,n=m,o=c.pathname&&c.pathname.split("/")||[],e=a.pathname&&a.pathname.split("/")||[],p=c.protocol&&!z[c.protocol];if(p&&(c.hostname="",c.port=null,c.host&&(""===o[0]?o[0]=c.host:o.unshift(c.host)),c.host="",a.protocol&&(a.hostname=null,a.port=null,a.host&&(""===e[0]?e[0]=a.host:e.unshift(a.host)),a.host=null),m=m&&(""===e[0]||""===o[0])),j)c.host=a.host||""===a.host?a.host:c.host,c.hostname=a.hostname||""===a.hostname?a.hostname:c.hostname,c.search=a.search,c.query=a.query,o=e;else if(e.length)o||(o=[]),o.pop(),o=o.concat(e),c.search=a.search,c.query=a.query;else if(!l(a.search)){if(p){c.hostname=c.host=o.shift();var q=c.host&&c.host.indexOf("@")>0?c.host.split("@"):!1;q&&(c.auth=q.shift(),c.host=c.hostname=q.shift())}return c.search=a.search,c.query=a.query,k(c.pathname)&&k(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.href=c.format(),c}if(!o.length)return c.pathname=null,c.search?c.path="/"+c.search:c.path=null,c.href=c.format(),c;for(var r=o.slice(-1)[0],s=(c.host||a.host)&&("."===r||".."===r)||""===r,t=0,u=o.length;u>=0;u--)r=o[u],"."==r?o.splice(u,1):".."===r?(o.splice(u,1),t++):t&&(o.splice(u,1),t--);if(!m&&!n)for(;t--;t)o.unshift("..");!m||""===o[0]||o[0]&&"/"===o[0].charAt(0)||o.unshift(""),s&&"/"!==o.join("/").substr(-1)&&o.push("");var v=""===o[0]||o[0]&&"/"===o[0].charAt(0);if(p){c.hostname=c.host=v?"":o.length?o.shift():"";var q=c.host&&c.host.indexOf("@")>0?c.host.split("@"):!1;q&&(c.auth=q.shift(),c.host=c.hostname=q.shift())}return m=m||c.host&&o.length,m&&!v&&o.unshift(""),o.length?c.pathname=o.join("/"):(c.pathname=null,c.path=null),k(c.pathname)&&k(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.auth=a.auth||c.auth,c.slashes=c.slashes||a.slashes,c.href=c.format(),c},d.prototype.parseHost=function(){var a=this.host,b=o.exec(a);b&&(b=b[0],":"!==b&&(this.port=b.substr(1)),a=a.substr(0,a.length-b.length)),a&&(this.hostname=a)}},{punycode:112,querystring:115}],141:[function(a,b,c){function d(){for(var a={},b=0;b<arguments.length;b++){var c=arguments[b];for(var d in c)e.call(c,d)&&(a[d]=c[d])}return a}b.exports=d;var e=Object.prototype.hasOwnProperty},{}],142:[function(a,b,c){(function(a){(function(){function d(a,b){return a.set(b[0],b[1]),a}function e(a,b){return a.add(b),a}function f(a,b,c){var d=c.length;switch(d){case 0:return a.call(b);case 1:return a.call(b,c[0]);case 2:return a.call(b,c[0],c[1]);case 3:return a.call(b,c[0],c[1],c[2])}return a.apply(b,c)}function g(a,b,c,d){for(var e=-1,f=a.length;++e<f;){var g=a[e];b(d,g,c(g),a)}return d}function h(a,b){for(var c=-1,d=a.length,e=-1,f=b.length,g=Array(d+f);++c<d;)g[c]=a[c];for(;++e<f;)g[c++]=b[e];return g}function i(a,b){for(var c=-1,d=a.length;++c<d&&b(a[c],c,a)!==!1;);return a}function j(a,b){for(var c=a.length;c--&&b(a[c],c,a)!==!1;);return a}function k(a,b){for(var c=-1,d=a.length;++c<d;)if(!b(a[c],c,a))return!1;return!0}function l(a,b){for(var c=-1,d=a.length,e=0,f=[];++c<d;){var g=a[c];b(g,c,a)&&(f[e++]=g)}return f}function m(a,b){return!!a.length&&w(a,b,0)>-1}function n(a,b,c){for(var d=-1,e=a.length;++d<e;)if(c(b,a[d]))return!0;return!1}function o(a,b){for(var c=-1,d=a.length,e=Array(d);++c<d;)e[c]=b(a[c],c,a);return e}function p(a,b){for(var c=-1,d=b.length,e=a.length;++c<d;)a[e+c]=b[c];return a}function q(a,b,c,d){var e=-1,f=a.length;for(d&&f&&(c=a[++e]);++e<f;)c=b(c,a[e],e,a);return c}function r(a,b,c,d){var e=a.length;for(d&&e&&(c=a[--e]);e--;)c=b(c,a[e],e,a);return c}function s(a,b){for(var c=-1,d=a.length;++c<d;)if(b(a[c],c,a))return!0;return!1}function t(a,b,c){for(var d=-1,e=a.length;++d<e;){var f=a[d],g=b(f);if(null!=g&&(h===Z?g===g:c(g,h)))var h=g,i=f}return i}function u(a,b,c,d){var e;return c(a,function(a,c,f){return b(a,c,f)?(e=d?c:a,!1):void 0}),e}function v(a,b,c){for(var d=a.length,e=c?d:-1;c?e--:++e<d;)if(b(a[e],e,a))return e;return-1}function w(a,b,c){if(b!==b)return O(a,c);for(var d=c-1,e=a.length;++d<e;)if(a[d]===b)return d;return-1}function x(a,b,c,d){for(var e=c-1,f=a.length;++e<f;)if(d(a[e],b))return e;return-1}function y(a,b,c,d,e){return e(a,function(a,e,f){c=d?(d=!1,a):b(c,a,e,f)}),c}function z(a,b){var c=a.length;for(a.sort(b);c--;)a[c]=a[c].value;return a}function A(a,b){for(var c,d=-1,e=a.length;++d<e;){var f=b(a[d]);f!==Z&&(c=c===Z?f:c+f)}return c}function B(a,b){for(var c=-1,d=Array(a);++c<a;)d[c]=b(c);return d}function C(a,b){return o(b,function(b){return[b,a[b]]})}function D(a){return function(b){return a(b)}}function E(a,b){return o(b,function(b){return a[b]})}function F(a,b){for(var c=-1,d=a.length;++c<d&&w(b,a[c],0)>-1;);return c}function G(a,b){for(var c=a.length;c--&&w(b,a[c],0)>-1;);return c}function H(a){return a&&a.Object===Object?a:null}function I(a,b){if(a!==b){var c=null===a,d=a===Z,e=a===a,f=null===b,g=b===Z,h=b===b;if(a>b&&!f||!e||c&&!g&&h||d&&h)return 1;if(b>a&&!c||!h||f&&!d&&e||g&&e)return-1}return 0}function J(a,b,c){for(var d=-1,e=a.criteria,f=b.criteria,g=e.length,h=c.length;++d<g;){var i=I(e[d],f[d]);if(i){if(d>=h)return i;var j=c[d];return i*("desc"==j?-1:1)}}return a.index-b.index}function K(a,b){for(var c=a.length,d=0;c--;)a[c]===b&&d++;return d}function L(a){return vc[a]}function M(a){return wc[a]}function N(a){return"\\"+zc[a]}function O(a,b,c){for(var d=a.length,e=b+(c?0:-1);c?e--:++e<d;){var f=a[e];if(f!==f)return e}return-1}function P(a){var b=!1;if(null!=a&&"function"!=typeof a.toString)try{b=!!(a+"")}catch(c){}return b}function Q(a,b){return a="number"==typeof a||Bb.test(a)?+a:-1,b=null==b?xa:b,a>-1&&a%1==0&&b>a}function R(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c}function S(a){var b=-1,c=Array(a.size);return a.forEach(function(a,d){c[++b]=[d,a]}),c}function T(a,b){for(var c=-1,d=a.length,e=0,f=[];++c<d;){var g=a[c];g!==b&&g!==ca||(a[c]=ca,f[e++]=c)}return f}function U(a){var b=-1,c=Array(a.size);return a.forEach(function(a){c[++b]=a}),c}function V(a){if(!a||!nc.test(a))return a.length;for(var b=mc.lastIndex=0;mc.test(a);)b++;return b}function W(a){return a.match(mc)}function X(a){return xc[a]}function Y(a){function b(a){if(Og(a)&&!zk(a)&&!(a instanceof Bb)){if(a instanceof H)return a;if(Vi.call(a,"__wrapped__"))return He(a)}return new H(a)}function c(){}function H(a,b){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!b,this.__index__=0,this.__values__=Z}function Bb(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Aa,this.__views__=[]}function Fb(){var a=new Bb(this.__wrapped__);return a.__actions__=Md(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=Md(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=Md(this.__views__),a}function Gb(){if(this.__filtered__){var a=new Bb(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function Hb(){var a=this.__wrapped__.value(),b=this.__dir__,c=zk(a),d=0>b,e=c?a.length:0,f=qe(0,e,this.__views__),g=f.start,h=f.end,i=h-g,j=d?h:g-1,k=this.__iteratees__,l=k.length,m=0,n=sj(i,this.__takeCount__);if(!c||_>e||e==i&&n==i)return Ad(a,this.__actions__);var o=[];a:for(;i--&&n>m;){j+=b;for(var p=-1,q=a[j];++p<l;){var r=k[p],s=r.iteratee,t=r.type,u=s(q);if(t==ua)q=u;else if(!u){if(t==ta)continue a;break a}}o[m++]=q}return o}function Ib(){}function Jb(a,b){return Lb(a,b)&&delete a[b]}function Kb(a,b){if(zj){var c=a[b];return c===ba?Z:c}return Vi.call(a,b)?a[b]:Z}function Lb(a,b){return zj?a[b]!==Z:Vi.call(a,b)}function Mb(a,b,c){a[b]=zj&&c===Z?ba:c}function Nb(a){var b=-1,c=a?a.length:0;for(this.clear();++b<c;){var d=a[b];this.set(d[0],d[1])}}function Ob(){this.__data__={hash:new Ib,map:wj?new wj:[],string:new Ib}}function Pb(a){var b=this.__data__;return ye(a)?Jb("string"==typeof a?b.string:b.hash,a):wj?b.map["delete"](a):ac(b.map,a)}function Qb(a){var b=this.__data__;return ye(a)?Kb("string"==typeof a?b.string:b.hash,a):wj?b.map.get(a):bc(b.map,a)}function Rb(a){var b=this.__data__;return ye(a)?Lb("string"==typeof a?b.string:b.hash,a):wj?b.map.has(a):cc(b.map,a)}function Sb(a,b){var c=this.__data__;return ye(a)?Mb("string"==typeof a?c.string:c.hash,a,b):wj?c.map.set(a,b):ec(c.map,a,b),this}function Tb(a){var b=-1,c=a?a.length:0;for(this.__data__=new Nb;++b<c;)this.push(a[b])}function Ub(a,b){var c=a.__data__;if(ye(b)){var d=c.__data__,e="string"==typeof b?d.string:d.hash;return e[b]===ba}return c.has(b)}function Vb(a){var b=this.__data__;if(ye(a)){var c=b.__data__,d="string"==typeof a?c.string:c.hash;d[a]=ba}else b.set(a,ba)}function Wb(a){var b=-1,c=a?a.length:0;for(this.clear();++b<c;){var d=a[b];this.set(d[0],d[1])}}function Xb(){this.__data__={array:[],map:null}}function Yb(a){var b=this.__data__,c=b.array;return c?ac(c,a):b.map["delete"](a)}function Zb(a){var b=this.__data__,c=b.array;return c?bc(c,a):b.map.get(a)}function $b(a){var b=this.__data__,c=b.array;return c?cc(c,a):b.map.has(a)}function _b(a,b){var c=this.__data__,d=c.array;d&&(d.length<_-1?ec(d,a,b):(c.array=null,c.map=new Nb(d)));var e=c.map;return e&&e.set(a,b),this}function ac(a,b){var c=dc(a,b);if(0>c)return!1;var d=a.length-1;return c==d?a.pop():lj.call(a,c,1),!0}function bc(a,b){var c=dc(a,b);return 0>c?Z:a[c][1]}function cc(a,b){return dc(a,b)>-1}function dc(a,b){for(var c=a.length;c--;)if(vg(a[c][0],b))return c;return-1}function ec(a,b,c){var d=dc(a,b);0>d?a.push([b,c]):a[d][1]=c}function fc(a,b,c,d){return a===Z||vg(a,Ti[c])&&!Vi.call(d,c)?b:a}function gc(a,b,c){(c===Z||vg(a[b],c))&&("number"!=typeof b||c!==Z||b in a)||(a[b]=c)}function hc(a,b,c){var d=a[b];Vi.call(a,b)&&vg(d,c)&&(c!==Z||b in a)||(a[b]=c)}function ic(a,b,c,d){return Jj(a,function(a,e,f){b(d,a,c(a),f)}),d}function jc(a,b){return a&&Nd(b,Ah(b),a)}function kc(a,b){for(var c=-1,d=null==a,e=b.length,f=Array(e);++c<e;)f[c]=d?Z:xh(a,b[c]);return f}function mc(a){return Bg(a)?a:[]}function vc(a){return"function"==typeof a?a:ri}function wc(a){return zk(a)?a:Ge(a)}function xc(a,b,c){return a===a&&(c!==Z&&(a=c>=a?a:c),b!==Z&&(a=a>=b?a:b)),a}function yc(a,b,c,d,e,f,g){var h;if(d&&(h=f?d(a,e,f,g):d(a)),h!==Z)return h;if(!Ng(a))return a;var j=zk(a);if(j){if(h=se(a),!b)return Md(a,h)}else{var k=pe(a),l=k==Ia||k==Ja;if(Ak(a))return Dd(a,b);if(k==Ma||k==Da||l&&!f){if(P(a))return f?a:{};if(h=te(l?{}:a),!b)return h=jc(h,a),c?Pd(a,h):h}else{if(!uc[k])return f?a:{};h=ue(a,k,b)}}g||(g=new Wb);var m=g.get(a);return m?m:(g.set(a,h),(j?i:Nc)(a,function(e,f){hc(h,f,yc(e,b,c,d,f,a,g))}),c&&!j?Pd(a,h):h)}function zc(a){var b=Ah(a),c=b.length;return function(d){if(null==d)return!c;for(var e=c;e--;){var f=b[e],g=a[f],h=d[f];if(h===Z&&!(f in Object(d))||!g(h))return!1}return!0}}function Cc(a){return Ng(a)?ij(a):{}}function Dc(a,b,c){if("function"!=typeof a)throw new Ri(aa);return kj(function(){a.apply(Z,c)},b)}function Fc(a,b,c,d){var e=-1,f=m,g=!0,h=a.length,i=[],j=b.length;if(!h)return i;c&&(b=o(b,D(c))),d?(f=n,g=!1):b.length>=_&&(f=Ub,g=!1,b=new Tb(b));a:for(;++e<h;){var k=a[e],l=c?c(k):k;if(g&&l===l){for(var p=j;p--;)if(b[p]===l)continue a;i.push(k)}else f(b,l,d)||i.push(k)}return i}function Gc(a,b){var c=!0;return Jj(a,function(a,d,e){return c=!!b(a,d,e)}),c}function Hc(a,b,c,d){var e=a.length;for(c=ih(c),0>c&&(c=-c>e?0:e+c),d=d===Z||d>e?e:ih(d),0>d&&(d+=e),d=c>d?0:jh(d);d>c;)a[c++]=b;return a}function Ic(a,b){var c=[];return Jj(a,function(a,d,e){b(a,d,e)&&c.push(a)}),c}function Lc(a,b,c,d){d||(d=[]);for(var e=-1,f=a.length;++e<f;){var g=a[e];b>0&&Bg(g)&&(c||zk(g)||yg(g))?b>1?Lc(g,b-1,c,d):p(d,g):c||(d[d.length]=g)}return d}function Mc(a,b){return null==a?a:Lj(a,b,Bh)}function Nc(a,b){return a&&Lj(a,b,Ah)}function Oc(a,b){return a&&Mj(a,b,Ah)}function Pc(a,b){return l(b,function(b){return Kg(a[b])})}function Qc(a,b){b=xe(b,a)?[b+""]:wc(b);for(var c=0,d=b.length;null!=a&&d>c;)a=a[b[c++]];return c&&c==d?a:Z}function Rc(a,b){return Vi.call(a,b)||"object"==typeof a&&b in a&&null===fj(a)}function Sc(a,b){return b in Object(a)}function Tc(a,b,c){return a>=sj(b,c)&&a<rj(b,c)}function Uc(a,b,c){for(var d=c?n:m,e=a[0].length,f=a.length,g=f,h=Array(f),i=1/0,j=[];g--;){var k=a[g];g&&b&&(k=o(k,D(b))),i=sj(k.length,i),h[g]=!c&&(b||e>=120&&k.length>=120)?new Tb(g&&k):Z}k=a[0];var l=-1,p=h[0];a:for(;++l<e&&j.length<i;){var q=k[l],r=b?b(q):q;if(!(p?Ub(p,r):d(j,r,c))){for(g=f;--g;){var s=h[g];if(!(s?Ub(s,r):d(a[g],r,c)))continue a}p&&p.push(r),j.push(q)}}return j}function Vc(a,b,c,d){return Nc(a,function(a,e,f){b(d,c(a),e,f)}),d}function Wc(a,b,c){xe(b,a)||(b=wc(b),a=Ee(a,b),b=Ze(b));var d=null==a?a:a[b];return null==d?Z:f(d,a,c)}function Xc(a,b,c,d,e){return a===b?!0:null==a||null==b||!Ng(a)&&!Og(b)?a!==a&&b!==b:Yc(a,b,Xc,c,d,e)}function Yc(a,b,c,d,e,f){var g=zk(a),h=zk(b),i=Ea,j=Ea;g||(i=pe(a),i=i==Da?Ma:i),h||(j=pe(b),j=j==Da?Ma:j);var k=i==Ma&&!P(a),l=j==Ma&&!P(b),m=i==j;if(m&&!k)return f||(f=new Wb),g||bh(a)?he(a,b,c,d,e,f):ie(a,b,i,c,d,e,f);if(!(e&oa)){var n=k&&Vi.call(a,"__wrapped__"),o=l&&Vi.call(b,"__wrapped__");if(n||o)return f||(f=new Wb),c(n?a.value():a,o?b.value():b,d,e,f)}return m?(f||(f=new Wb),je(a,b,c,d,e,f)):!1}function Zc(a,b,c,d){var e=c.length,f=e,g=!d;if(null==a)return!f;for(a=Object(a);e--;){var h=c[e];if(g&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++e<f;){h=c[e];var i=h[0],j=a[i],k=h[1];if(g&&h[2]){if(j===Z&&!(i in a))return!1}else{var l=new Wb,m=d?d(j,k,i,a,b,l):Z;if(!(m===Z?Xc(k,j,d,na|oa,l):m))return!1}}return!0}function $c(a){var b=typeof a;return"function"==b?a:null==a?ri:"object"==b?zk(a)?dd(a[0],a[1]):cd(a):zi(a)}function _c(a){return qj(Object(a))}function ad(a){a=null==a?a:Object(a);var b=[];for(var c in a)b.push(c);return b}function bd(a,b){var c=-1,d=Ag(a)?Array(a.length):[];return Jj(a,function(a,e,f){d[++c]=b(a,e,f)}),d}function cd(a){var b=me(a);if(1==b.length&&b[0][2]){var c=b[0][0],d=b[0][1];return function(a){return null==a?!1:a[c]===d&&(d!==Z||c in Object(a))}}return function(c){return c===a||Zc(c,a,b)}}function dd(a,b){return function(c){var d=xh(c,a);return d===Z&&d===b?zh(c,a):Xc(b,d,Z,na|oa)}}function ed(a,b,c,d,e){if(a!==b){var f=zk(b)||bh(b)?Z:Bh(b);
12
- i(f||b,function(g,h){if(f&&(h=g,g=b[h]),Ng(g))e||(e=new Wb),fd(a,b,h,c,ed,d,e);else{var i=d?d(a[h],g,h+"",a,b,e):Z;i===Z&&(i=g),gc(a,h,i)}})}}function fd(a,b,c,d,e,f,g){var h=a[c],i=b[c],j=g.get(i);if(j)return void gc(a,c,j);var k=f?f(h,i,c+"",a,b,g):Z,l=k===Z;l&&(k=i,zk(i)||bh(i)?zk(h)?k=h:Bg(h)?k=Md(h):(l=!1,k=yc(i,!f)):Xg(i)||yg(i)?yg(h)?k=lh(h):!Ng(h)||d&&Kg(h)?(l=!1,k=yc(i,!f)):k=h:l=!1),g.set(i,k),l&&e(k,i,d,f,g),g["delete"](i),gc(a,c,k)}function gd(a,b,c){var d=-1;b=o(b.length?b:Array(1),le());var e=bd(a,function(a,c,e){var f=o(b,function(b){return b(a)});return{criteria:f,index:++d,value:a}});return z(e,function(a,b){return J(a,b,c)})}function hd(a,b){return a=Object(a),q(b,function(b,c){return c in a&&(b[c]=a[c]),b},{})}function id(a,b){var c={};return Mc(a,function(a,d){b(a,d)&&(c[d]=a)}),c}function jd(a){return function(b){return null==b?Z:b[a]}}function kd(a){return function(b){return Qc(b,a)}}function ld(a,b,c,d){var e=d?x:w,f=-1,g=b.length,h=a;for(c&&(h=o(a,D(c)));++f<g;)for(var i=0,j=b[f],k=c?c(j):j;(i=e(h,k,i,d))>-1;)h!==a&&lj.call(h,i,1),lj.call(a,i,1);return a}function md(a,b){for(var c=a?b.length:0,d=c-1;c--;){var e=b[c];if(d==c||e!=f){var f=e;if(Q(e))lj.call(a,e,1);else if(xe(e,a))delete a[e];else{var g=wc(e),h=Ee(a,g);null!=h&&delete h[Ze(g)]}}}return a}function nd(a,b){return a+nj(uj()*(b-a+1))}function od(a,b,c,d){for(var e=-1,f=rj(mj((b-a)/(c||1)),0),g=Array(f);f--;)g[d?f:++e]=a,a+=c;return g}function pd(a,b,c,d){b=xe(b,a)?[b+""]:wc(b);for(var e=-1,f=b.length,g=f-1,h=a;null!=h&&++e<f;){var i=b[e];if(Ng(h)){var j=c;if(e!=g){var k=h[i];j=d?d(k,i,h):Z,j===Z&&(j=null==k?Q(b[e+1])?[]:{}:k)}hc(h,i,j)}h=h[i]}return a}function qd(a,b,c){var d=-1,e=a.length;0>b&&(b=-b>e?0:e+b),c=c>e?e:c,0>c&&(c+=e),e=b>c?0:c-b>>>0,b>>>=0;for(var f=Array(e);++d<e;)f[d]=a[d+b];return f}function rd(a,b){var c;return Jj(a,function(a,d,e){return c=b(a,d,e),!c}),!!c}function sd(a,b,c){var d=0,e=a?a.length:d;if("number"==typeof b&&b===b&&Ca>=e){for(;e>d;){var f=d+e>>>1,g=a[f];(c?b>=g:b>g)&&null!==g?d=f+1:e=f}return e}return td(a,b,ri,c)}function td(a,b,c,d){b=c(b);for(var e=0,f=a?a.length:0,g=b!==b,h=null===b,i=b===Z;f>e;){var j=nj((e+f)/2),k=c(a[j]),l=k!==Z,m=k===k;if(g)var n=m||d;else n=h?m&&l&&(d||null!=k):i?m&&(d||l):null==k?!1:d?b>=k:b>k;n?e=j+1:f=j}return sj(f,Ba)}function ud(a){return vd(a)}function vd(a,b){for(var c=0,d=a.length,e=a[0],f=b?b(e):e,g=f,h=1,i=[e];++c<d;)e=a[c],f=b?b(e):e,vg(f,g)||(g=f,i[h++]=e);return i}function wd(a,b,c){var d=-1,e=m,f=a.length,g=!0,h=[],i=h;if(c)g=!1,e=n;else if(f>=_){var j=b?null:Oj(a);if(j)return U(j);g=!1,e=Ub,i=new Tb}else i=b?[]:h;a:for(;++d<f;){var k=a[d],l=b?b(k):k;if(g&&l===l){for(var o=i.length;o--;)if(i[o]===l)continue a;b&&i.push(l),h.push(k)}else e(i,l,c)||(i!==h&&i.push(l),h.push(k))}return h}function xd(a,b){b=xe(b,a)?[b+""]:wc(b),a=Ee(a,b);var c=Ze(b);return null!=a&&yh(a,c)?delete a[c]:!0}function yd(a,b,c,d){return pd(a,b,c(Qc(a,b)),d)}function zd(a,b,c,d){for(var e=a.length,f=d?e:-1;(d?f--:++f<e)&&b(a[f],f,a););return c?qd(a,d?0:f,d?f+1:e):qd(a,d?f+1:0,d?e:f)}function Ad(a,b){var c=a;return c instanceof Bb&&(c=c.value()),q(b,function(a,b){return b.func.apply(b.thisArg,p([a],b.args))},c)}function Bd(a,b,c){for(var d=-1,e=a.length;++d<e;)var f=f?p(Fc(f,a[d],b,c),Fc(a[d],f,b,c)):a[d];return f&&f.length?wd(f,b,c):[]}function Cd(a,b,c){for(var d=-1,e=a.length,f=b.length,g={};++d<e;)c(g,a[d],f>d?b[d]:Z);return g}function Dd(a,b){if(b)return a.slice();var c=new a.constructor(a.length);return a.copy(c),c}function Ed(a){var b=new a.constructor(a.byteLength);return new cj(b).set(new cj(a)),b}function Fd(a){return q(S(a),d,new a.constructor)}function Gd(a){var b=new a.constructor(a.source,vb.exec(a));return b.lastIndex=a.lastIndex,b}function Hd(a){return q(U(a),e,new a.constructor)}function Id(a){return Hj?Object(Hj.call(a)):{}}function Jd(a,b){var c=b?Ed(a.buffer):a.buffer;return new a.constructor(c,a.byteOffset,a.length)}function Kd(a,b,c,d){for(var e=-1,f=a.length,g=c.length,h=-1,i=b.length,j=rj(f-g,0),k=Array(i+j),l=!d;++h<i;)k[h]=b[h];for(;++e<g;)(l||f>e)&&(k[c[e]]=a[e]);for(;j--;)k[h++]=a[e++];return k}function Ld(a,b,c,d){for(var e=-1,f=a.length,g=-1,h=c.length,i=-1,j=b.length,k=rj(f-h,0),l=Array(k+j),m=!d;++e<k;)l[e]=a[e];for(var n=e;++i<j;)l[n+i]=b[i];for(;++g<h;)(m||f>e)&&(l[n+c[g]]=a[e++]);return l}function Md(a,b){var c=-1,d=a.length;for(b||(b=Array(d));++c<d;)b[c]=a[c];return b}function Nd(a,b,c){return Od(a,b,c)}function Od(a,b,c,d){c||(c={});for(var e=-1,f=b.length;++e<f;){var g=b[e],h=d?d(c[g],a[g],g,c,a):a[g];hc(c,g,h)}return c}function Pd(a,b){return Nd(a,Rj(a),b)}function Qd(a,b){return function(c,d){var e=zk(c)?g:ic,f=b?b():{};return e(c,a,le(d),f)}}function Rd(a){return lg(function(b,c){var d=-1,e=c.length,f=e>1?c[e-1]:Z,g=e>2?c[2]:Z;for(f="function"==typeof f?(e--,f):Z,g&&we(c[0],c[1],g)&&(f=3>e?Z:f,e=1),b=Object(b);++d<e;){var h=c[d];h&&a(b,h,d,f)}return b})}function Sd(a,b){return function(c,d){if(null==c)return c;if(!Ag(c))return a(c,d);for(var e=c.length,f=b?e:-1,g=Object(c);(b?f--:++f<e)&&d(g[f],f,g)!==!1;);return c}}function Td(a){return function(b,c,d){for(var e=-1,f=Object(b),g=d(b),h=g.length;h--;){var i=g[a?h:++e];if(c(f[i],i,f)===!1)break}return b}}function Ud(a,b,c){function d(){var b=this&&this!==Jc&&this instanceof d?f:a;return b.apply(e?c:this,arguments)}var e=b&da,f=Xd(a);return d}function Vd(a){return function(b){b=nh(b);var c=nc.test(b)?W(b):Z,d=c?c[0]:b.charAt(0),e=c?c.slice(1).join(""):b.slice(1);return d[a]()+e}}function Wd(a){return function(b){return q(ni(Vh(b)),a,"")}}function Xd(a){return function(){var b=arguments;switch(b.length){case 0:return new a;case 1:return new a(b[0]);case 2:return new a(b[0],b[1]);case 3:return new a(b[0],b[1],b[2]);case 4:return new a(b[0],b[1],b[2],b[3]);case 5:return new a(b[0],b[1],b[2],b[3],b[4]);case 6:return new a(b[0],b[1],b[2],b[3],b[4],b[5]);case 7:return new a(b[0],b[1],b[2],b[3],b[4],b[5],b[6])}var c=Cc(a.prototype),d=a.apply(c,b);return Ng(d)?d:c}}function Yd(a,b,c){function d(){for(var g=arguments.length,h=Array(g),i=g,j=oe(d);i--;)h[i]=arguments[i];var k=3>g&&h[0]!==j&&h[g-1]!==j?[]:T(h,j);if(g-=k.length,c>g)return ee(a,b,$d,d.placeholder,Z,h,k,Z,Z,c-g);var l=this&&this!==Jc&&this instanceof d?e:a;return f(l,this,h)}var e=Xd(a);return d}function Zd(a){return lg(function(b){b=Lc(b,1);var c=b.length,d=c,e=H.prototype.thru;for(a&&b.reverse();d--;){var f=b[d];if("function"!=typeof f)throw new Ri(aa);if(e&&!g&&"wrapper"==ke(f))var g=new H([],!0)}for(d=g?d:c;++d<c;){f=b[d];var h=ke(f),i="wrapper"==h?Pj(f):Z;g=i&&ze(i[0])&&i[1]==(ka|ga|ia|la)&&!i[4].length&&1==i[9]?g[ke(i[0])].apply(g,i[3]):1==f.length&&ze(f)?g[h]():g.thru(f)}return function(){var a=arguments,d=a[0];if(g&&1==a.length&&zk(d)&&d.length>=_)return g.plant(d).value();for(var e=0,f=c?b[e].apply(this,a):d;++e<c;)f=b[e].call(this,f);return f}})}function $d(a,b,c,d,e,f,g,h,i,j){function k(){for(var r=arguments.length,s=r,t=Array(r);s--;)t[s]=arguments[s];if(o)var u=oe(k),v=K(t,u);if(d&&(t=Kd(t,d,e,o)),f&&(t=Ld(t,f,g,o)),r-=v,o&&j>r){var w=T(t,u);return ee(a,b,$d,k.placeholder,c,t,w,h,i,j-r)}var x=m?c:this,y=n?x[a]:a;return r=t.length,h?t=Fe(t,h):p&&r>1&&t.reverse(),l&&r>i&&(t.length=i),this&&this!==Jc&&this instanceof k&&(y=q||Xd(y)),y.apply(x,t)}var l=b&ka,m=b&da,n=b&ea,o=b&(ga|ha),p=b&ma,q=n?Z:Xd(a);return k}function _d(a,b){return function(c,d){return Vc(c,a,b(d),{})}}function ae(a){return lg(function(b){return b=o(Lc(b,1),le()),lg(function(c){var d=this;return a(b,function(a){return f(a,d,c)})})})}function be(a,b,c){b=ih(b);var d=V(a);if(!b||d>=b)return"";var e=b-d;c=c===Z?" ":c+"";var f=bi(c,mj(e/V(c)));return nc.test(c)?W(f).slice(0,e).join(""):f.slice(0,e)}function ce(a,b,c,d){function e(){for(var b=-1,i=arguments.length,j=-1,k=d.length,l=Array(k+i),m=this&&this!==Jc&&this instanceof e?h:a;++j<k;)l[j]=d[j];for(;i--;)l[j++]=arguments[++b];return f(m,g?c:this,l)}var g=b&da,h=Xd(a);return e}function de(a){return function(b,c,d){return d&&"number"!=typeof d&&we(b,c,d)&&(c=d=Z),b=kh(b),b=b===b?b:0,c===Z?(c=b,b=0):c=kh(c)||0,d=d===Z?c>b?1:-1:kh(d)||0,od(b,c,d,a)}}function ee(a,b,c,d,e,f,g,h,i,j){var k=b&ga,l=h?Md(h):Z,m=k?g:Z,n=k?Z:g,o=k?f:Z,p=k?Z:f;b|=k?ia:ja,b&=~(k?ja:ia),b&fa||(b&=~(da|ea));var q=[a,b,e,o,m,p,n,l,i,j],r=c.apply(Z,q);return ze(a)&&Sj(r,q),r.placeholder=d,r}function fe(a){var b=Pi[a];return function(a,c){if(a=kh(a),c=ih(c)){var d=(nh(a)+"e").split("e"),e=b(d[0]+"e"+(+d[1]+c));return d=(nh(e)+"e").split("e"),+(d[0]+"e"+(+d[1]-c))}return b(a)}}function ge(a,b,c,d,e,f,g,h){var i=b&ea;if(!i&&"function"!=typeof a)throw new Ri(aa);var j=d?d.length:0;if(j||(b&=~(ia|ja),d=e=Z),g=g===Z?g:rj(ih(g),0),h=h===Z?h:ih(h),j-=e?e.length:0,b&ja){var k=d,l=e;d=e=Z}var m=i?Z:Pj(a),n=[a,b,c,d,e,k,l,f,g,h];if(m&&Ce(n,m),a=n[0],b=n[1],c=n[2],d=n[3],e=n[4],h=n[9]=null==n[9]?i?0:a.length:rj(n[9]-j,0),!h&&b&(ga|ha)&&(b&=~(ga|ha)),b&&b!=da)o=b==ga||b==ha?Yd(a,b,h):b!=ia&&b!=(da|ia)||e.length?$d.apply(Z,n):ce(a,b,c,d);else var o=Ud(a,b,c);var p=m?Nj:Sj;return p(o,n)}function he(a,b,c,d,e,f){var g=-1,h=e&oa,i=e&na,j=a.length,k=b.length;if(j!=k&&!(h&&k>j))return!1;var l=f.get(a);if(l)return l==b;var m=!0;for(f.set(a,b);++g<j;){var n=a[g],o=b[g];if(d)var p=h?d(o,n,g,b,a,f):d(n,o,g,a,b,f);if(p!==Z){if(p)continue;m=!1;break}if(i){if(!s(b,function(a){return n===a||c(n,a,d,e,f)})){m=!1;break}}else if(n!==o&&!c(n,o,d,e,f)){m=!1;break}}return f["delete"](a),m}function ie(a,b,c,d,e,f,g){switch(c){case Ta:return!(a.byteLength!=b.byteLength||!d(new cj(a),new cj(b)));case Fa:case Ga:return+a==+b;case Ha:return a.name==b.name&&a.message==b.message;case La:return a!=+a?b!=+b:a==+b;case Na:case Pa:return a==b+"";case Ka:var h=S;case Oa:var i=f&oa;if(h||(h=U),a.size!=b.size&&!i)return!1;var j=g.get(a);return j?j==b:he(h(a),h(b),d,e,f|na,g.set(a,b));case Qa:if(Hj)return Hj.call(a)==Hj.call(b)}return!1}function je(a,b,c,d,e,f){var g=e&oa,h=Ah(a),i=h.length,j=Ah(b),k=j.length;if(i!=k&&!g)return!1;for(var l=i;l--;){var m=h[l];if(!(g?m in b:Rc(b,m)))return!1}var n=f.get(a);if(n)return n==b;var o=!0;f.set(a,b);for(var p=g;++l<i;){m=h[l];var q=a[m],r=b[m];if(d)var s=g?d(r,q,m,b,a,f):d(q,r,m,a,b,f);if(!(s===Z?q===r||c(q,r,d,e,f):s)){o=!1;break}p||(p="constructor"==m)}if(o&&!p){var t=a.constructor,u=b.constructor;t!=u&&"constructor"in a&&"constructor"in b&&!("function"==typeof t&&t instanceof t&&"function"==typeof u&&u instanceof u)&&(o=!1)}return f["delete"](a),o}function ke(a){for(var b=a.name+"",c=Cj[b],d=Vi.call(Cj,b)?c.length:0;d--;){var e=c[d],f=e.func;if(null==f||f==a)return e.name}return b}function le(){var a=b.iteratee||si;return a=a===si?$c:a,arguments.length?a(arguments[0],arguments[1]):a}function me(a){for(var b=Jh(a),c=b.length;c--;)b[c][2]=Be(b[c][1]);return b}function ne(a,b){var c=a[b];return Tg(c)?c:Z}function oe(a){var c=Vi.call(b,"placeholder")?b:a;return c.placeholder}function pe(a){return Yi.call(a)}function qe(a,b,c){for(var d=-1,e=c.length;++d<e;){var f=c[d],g=f.size;switch(f.type){case"drop":a+=g;break;case"dropRight":b-=g;break;case"take":b=sj(b,a+g);break;case"takeRight":a=rj(a,b-g)}}return{start:a,end:b}}function re(a,b,c){if(null==a)return!1;var d=c(a,b);d||xe(b)||(b=wc(b),a=Ee(a,b),null!=a&&(b=Ze(b),d=c(a,b)));var e=a?a.length:Z;return d||!!e&&Mg(e)&&Q(b,e)&&(zk(a)||_g(a)||yg(a))}function se(a){var b=a.length,c=a.constructor(b);return b&&"string"==typeof a[0]&&Vi.call(a,"index")&&(c.index=a.index,c.input=a.input),c}function te(a){return"function"!=typeof a.constructor||Ae(a)?{}:Cc(fj(a))}function ue(a,b,c){var d=a.constructor;switch(b){case Ta:return Ed(a);case Fa:case Ga:return new d(+a);case Ua:case Va:case Wa:case Xa:case Ya:case Za:case $a:case _a:case ab:return Jd(a,c);case Ka:return Fd(a);case La:case Pa:return new d(a);case Na:return Gd(a);case Oa:return Hd(a);case Qa:return Id(a)}}function ve(a){var b=a?a.length:Z;return Mg(b)&&(zk(a)||_g(a)||yg(a))?B(b,String):null}function we(a,b,c){if(!Ng(c))return!1;var d=typeof b;return("number"==d?Ag(c)&&Q(b,c.length):"string"==d&&b in c)?vg(c[b],a):!1}function xe(a,b){return"number"==typeof a?!0:!zk(a)&&(mb.test(a)||!lb.test(a)||null!=b&&a in Object(b))}function ye(a){var b=typeof a;return"number"==b||"boolean"==b||"string"==b&&"__proto__"!=a||null==a}function ze(a){var c=ke(a),d=b[c];if("function"!=typeof d||!(c in Bb.prototype))return!1;if(a===d)return!0;var e=Pj(d);return!!e&&a===e[0]}function Ae(a){var b=a&&a.constructor,c="function"==typeof b&&b.prototype||Ti;return a===c}function Be(a){return a===a&&!Ng(a)}function Ce(a,b){var c=a[1],d=b[1],e=c|d,f=(da|ea|ka)>e,g=d==ka&&c==ga||d==ka&&c==la&&a[7].length<=b[8]||d==(ka|la)&&b[7].length<=b[8]&&c==ga;if(!f&&!g)return a;d&da&&(a[2]=b[2],e|=c&da?0:fa);var h=b[3];if(h){var i=a[3];a[3]=i?Kd(i,h,b[4]):Md(h),a[4]=i?T(a[3],ca):Md(b[4])}return h=b[5],h&&(i=a[5],a[5]=i?Ld(i,h,b[6]):Md(h),a[6]=i?T(a[5],ca):Md(b[6])),h=b[7],h&&(a[7]=Md(h)),d&ka&&(a[8]=null==a[8]?b[8]:sj(a[8],b[8])),null==a[9]&&(a[9]=b[9]),a[0]=b[0],a[1]=e,a}function De(a,b,c,d,e,f){return Ng(a)&&Ng(b)&&ed(a,b,Z,De,f.set(b,a)),a}function Ee(a,b){return 1==b.length?a:xh(a,qd(b,0,-1))}function Fe(a,b){for(var c=a.length,d=sj(b.length,c),e=Md(a);d--;){var f=b[d];a[d]=Q(f,c)?e[f]:Z}return a}function Ge(a){var b=[];return nh(a).replace(nb,function(a,c,d,e){b.push(d?e.replace(tb,"$1"):c||a)}),b}function He(a){if(a instanceof Bb)return a.clone();var b=new H(a.__wrapped__,a.__chain__);return b.__actions__=Md(a.__actions__),b.__index__=a.__index__,b.__values__=a.__values__,b}function Ie(a,b){b=rj(ih(b),0);var c=a?a.length:0;if(!c||1>b)return[];for(var d=0,e=0,f=Array(mj(c/b));c>d;)f[e++]=qd(a,d,d+=b);return f}function Je(a){for(var b=-1,c=a?a.length:0,d=0,e=[];++b<c;){var f=a[b];f&&(e[d++]=f)}return e}function Ke(a,b,c){var d=a?a.length:0;return d?(b=c||b===Z?1:ih(b),qd(a,0>b?0:b,d)):[]}function Le(a,b,c){var d=a?a.length:0;return d?(b=c||b===Z?1:ih(b),b=d-b,qd(a,0,0>b?0:b)):[]}function Me(a,b){return a&&a.length?zd(a,le(b,3),!0,!0):[]}function Ne(a,b){return a&&a.length?zd(a,le(b,3),!0):[]}function Oe(a,b,c,d){var e=a?a.length:0;return e?(c&&"number"!=typeof c&&we(a,b,c)&&(c=0,d=e),Hc(a,b,c,d)):[]}function Pe(a,b){return a&&a.length?v(a,le(b,3)):-1}function Qe(a,b){return a&&a.length?v(a,le(b,3),!0):-1}function Re(a){var b=a?a.length:0;return b?Lc(a,1):[]}function Se(a){var b=a?a.length:0;return b?Lc(a,wa):[]}function Te(a,b){var c=a?a.length:0;return c?(b=b===Z?1:ih(b),Lc(a,b)):[]}function Ue(a){for(var b=-1,c=a?a.length:0,d={};++b<c;){var e=a[b];d[e[0]]=e[1]}return d}function Ve(a){return a?a[0]:Z}function We(a,b,c){var d=a?a.length:0;return d?(c=ih(c),0>c&&(c=rj(d+c,0)),w(a,b,c)):-1}function Xe(a){return Le(a,1)}function Ye(a,b){return a?pj.call(a,b):""}function Ze(a){var b=a?a.length:0;return b?a[b-1]:Z}function $e(a,b,c){var d=a?a.length:0;if(!d)return-1;var e=d;if(c!==Z&&(e=ih(c),e=(0>e?rj(d+e,0):sj(e,d-1))+1),b!==b)return O(a,e,!0);for(;e--;)if(a[e]===b)return e;return-1}function _e(a,b){return a&&a.length&&b&&b.length?ld(a,b):a}function af(a,b,c){return a&&a.length&&b&&b.length?ld(a,b,le(c)):a}function bf(a,b,c){return a&&a.length&&b&&b.length?ld(a,b,Z,c):a}function cf(a,b){var c=[];if(!a||!a.length)return c;var d=-1,e=[],f=a.length;for(b=le(b,3);++d<f;){var g=a[d];b(g,d,a)&&(c.push(g),e.push(d))}return md(a,e),c}function df(a){return a?vj.call(a):a}function ef(a,b,c){var d=a?a.length:0;return d?(c&&"number"!=typeof c&&we(a,b,c)?(b=0,c=d):(b=null==b?0:ih(b),c=c===Z?d:ih(c)),qd(a,b,c)):[]}function ff(a,b){return sd(a,b)}function gf(a,b,c){return td(a,b,le(c))}function hf(a,b){var c=a?a.length:0;if(c){var d=sd(a,b);if(c>d&&vg(a[d],b))return d}return-1}function jf(a,b){return sd(a,b,!0)}function kf(a,b,c){return td(a,b,le(c),!0)}function lf(a,b){var c=a?a.length:0;if(c){var d=sd(a,b,!0)-1;if(vg(a[d],b))return d}return-1}function mf(a){return a&&a.length?ud(a):[]}function nf(a,b){return a&&a.length?vd(a,le(b)):[]}function of(a){return Ke(a,1)}function pf(a,b,c){return a&&a.length?(b=c||b===Z?1:ih(b),qd(a,0,0>b?0:b)):[]}function qf(a,b,c){var d=a?a.length:0;return d?(b=c||b===Z?1:ih(b),b=d-b,qd(a,0>b?0:b,d)):[]}function rf(a,b){return a&&a.length?zd(a,le(b,3),!1,!0):[]}function sf(a,b){return a&&a.length?zd(a,le(b,3)):[]}function tf(a){return a&&a.length?wd(a):[]}function uf(a,b){return a&&a.length?wd(a,le(b)):[]}function vf(a,b){return a&&a.length?wd(a,Z,b):[]}function wf(a){if(!a||!a.length)return[];var b=0;return a=l(a,function(a){return Bg(a)?(b=rj(a.length,b),!0):void 0}),B(b,function(b){return o(a,jd(b))})}function xf(a,b){if(!a||!a.length)return[];var c=wf(a);return null==b?c:o(c,function(a){return f(b,Z,a)})}function yf(a,b){return Cd(a||[],b||[],hc)}function zf(a,b){return Cd(a||[],b||[],pd)}function Af(a){var c=b(a);return c.__chain__=!0,c}function Bf(a,b){return b(a),a}function Cf(a,b){return b(a)}function Df(){return Af(this)}function Ef(){return new H(this.value(),this.__chain__)}function Ff(a){return this.map(a).flatten()}function Gf(){this.__values__===Z&&(this.__values__=hh(this.value()));var a=this.__index__>=this.__values__.length,b=a?Z:this.__values__[this.__index__++];return{done:a,value:b}}function Hf(){return this}function If(a){for(var b,d=this;d instanceof c;){var e=He(d);e.__index__=0,e.__values__=Z,b?f.__wrapped__=e:b=e;var f=e;d=d.__wrapped__}return f.__wrapped__=a,b}function Jf(){var a=this.__wrapped__;if(a instanceof Bb){var b=a;return this.__actions__.length&&(b=new Bb(this)),b=b.reverse(),b.__actions__.push({func:Cf,args:[df],thisArg:Z}),new H(b,this.__chain__)}return this.thru(df)}function Kf(){return Ad(this.__wrapped__,this.__actions__)}function Lf(a,b,c){var d=zk(a)?k:Gc;return c&&we(a,b,c)&&(b=Z),d(a,le(b,3))}function Mf(a,b){var c=zk(a)?l:Ic;return c(a,le(b,3))}function Nf(a,b){if(b=le(b,3),zk(a)){var c=v(a,b);return c>-1?a[c]:Z}return u(a,b,Jj)}function Of(a,b){if(b=le(b,3),zk(a)){var c=v(a,b,!0);return c>-1?a[c]:Z}return u(a,b,Kj)}function Pf(a,b){return Lc(Tf(a,b),1)}function Qf(a,b){return"function"==typeof b&&zk(a)?i(a,b):Jj(a,vc(b))}function Rf(a,b){return"function"==typeof b&&zk(a)?j(a,b):Kj(a,vc(b))}function Sf(a,b,c,d){a=Ag(a)?a:Ph(a),c=c&&!d?ih(c):0;var e=a.length;return 0>c&&(c=rj(e+c,0)),_g(a)?e>=c&&a.indexOf(b,c)>-1:!!e&&w(a,b,c)>-1}function Tf(a,b){var c=zk(a)?o:bd;return c(a,le(b,3))}function Uf(a,b,c,d){return null==a?[]:(zk(b)||(b=null==b?[]:[b]),c=d?Z:c,zk(c)||(c=null==c?[]:[c]),gd(a,b,c))}function Vf(a,b,c){var d=zk(a)?q:y,e=arguments.length<3;return d(a,le(b,4),c,e,Jj)}function Wf(a,b,c){var d=zk(a)?r:y,e=arguments.length<3;return d(a,le(b,4),c,e,Kj)}function Xf(a,b){var c=zk(a)?l:Ic;return b=le(b,3),c(a,function(a,c,d){return!b(a,c,d)})}function Yf(a){var b=Ag(a)?a:Ph(a),c=b.length;return c>0?b[nd(0,c-1)]:Z}function Zf(a,b){var c=-1,d=hh(a),e=d.length,f=e-1;for(b=xc(ih(b),0,e);++c<b;){var g=nd(c,f),h=d[g];d[g]=d[c],d[c]=h}return d.length=b,d}function $f(a){return Zf(a,Aa)}function _f(a){if(null==a)return 0;if(Ag(a)){var b=a.length;return b&&_g(a)?V(a):b}return Ah(a).length}function ag(a,b,c){var d=zk(a)?s:rd;return c&&we(a,b,c)&&(b=Z),d(a,le(b,3))}function bg(a,b){if("function"!=typeof b)throw new Ri(aa);return a=ih(a),function(){return--a<1?b.apply(this,arguments):void 0}}function cg(a,b,c){return b=c?Z:b,b=a&&null==b?a.length:b,ge(a,ka,Z,Z,Z,Z,b)}function dg(a,b){var c;if("function"!=typeof b)throw new Ri(aa);return a=ih(a),function(){return--a>0&&(c=b.apply(this,arguments)),1>=a&&(b=Z),c}}function eg(a,b,c){b=c?Z:b;var d=ge(a,ga,Z,Z,Z,Z,Z,b);return d.placeholder=eg.placeholder,d}function fg(a,b,c){b=c?Z:b;var d=ge(a,ha,Z,Z,Z,Z,Z,b);return d.placeholder=fg.placeholder,d}function gg(a,b,c){function d(){o&&dj(o),k&&dj(k),q=0,j=k=n=o=p=Z}function e(b,c){c&&dj(c),k=o=p=Z,b&&(q=qk(),l=a.apply(n,j),o||k||(j=n=Z))}function f(){var a=b-(qk()-m);0>=a||a>b?e(p,k):o=kj(f,a)}function g(){return(o&&p||k&&t)&&(l=a.apply(n,j)),d(),l}function h(){e(t,o)}function i(){if(j=arguments,m=qk(),n=this,p=t&&(o||!r),s===!1)var c=r&&!o;else{q||k||r||(q=m);var d=s-(m-q),e=(0>=d||d>s)&&(r||k);e?(k&&(k=dj(k)),q=m,l=a.apply(n,j)):k||(k=kj(h,d))}return e&&o?o=dj(o):o||b===s||(o=kj(f,b)),c&&(e=!0,l=a.apply(n,j)),!e||o||k||(j=n=Z),l}var j,k,l,m,n,o,p,q=0,r=!1,s=!1,t=!0;if("function"!=typeof a)throw new Ri(aa);return b=kh(b)||0,Ng(c)&&(r=!!c.leading,s="maxWait"in c&&rj(kh(c.maxWait)||0,b),t="trailing"in c?!!c.trailing:t),i.cancel=d,i.flush=g,i}function hg(a){return ge(a,ma)}function ig(a,b){if("function"!=typeof a||b&&"function"!=typeof b)throw new Ri(aa);var c=function(){var d=arguments,e=b?b.apply(this,d):d[0],f=c.cache;if(f.has(e))return f.get(e);var g=a.apply(this,d);return c.cache=f.set(e,g),g};return c.cache=new ig.Cache,c}function jg(a){if("function"!=typeof a)throw new Ri(aa);return function(){return!a.apply(this,arguments)}}function kg(a){return dg(2,a)}function lg(a,b){if("function"!=typeof a)throw new Ri(aa);return b=rj(b===Z?a.length-1:ih(b),0),function(){for(var c=arguments,d=-1,e=rj(c.length-b,0),g=Array(e);++d<e;)g[d]=c[b+d];switch(b){case 0:return a.call(this,g);case 1:return a.call(this,c[0],g);case 2:return a.call(this,c[0],c[1],g)}var h=Array(b+1);for(d=-1;++d<b;)h[d]=c[d];return h[b]=g,f(a,this,h)}}function mg(a,b){if("function"!=typeof a)throw new Ri(aa);return b=b===Z?0:rj(ih(b),0),lg(function(c){var d=c[b],e=c.slice(0,b);return d&&p(e,d),f(a,this,e)})}function ng(a,b,c){var d=!0,e=!0;if("function"!=typeof a)throw new Ri(aa);return Ng(c)&&(d="leading"in c?!!c.leading:d,e="trailing"in c?!!c.trailing:e),gg(a,b,{leading:d,maxWait:b,trailing:e})}function og(a){return cg(a,1)}function pg(a,b){return b=null==b?ri:b,wk(b,a)}function qg(){if(!arguments.length)return[];var a=arguments[0];return zk(a)?a:[a]}function rg(a){return yc(a,!1,!0)}function sg(a,b){return yc(a,!1,!0,b)}function tg(a){return yc(a,!0,!0)}function ug(a,b){return yc(a,!0,!0,b)}function vg(a,b){return a===b||a!==a&&b!==b}function wg(a,b){return a>b}function xg(a,b){return a>=b}function yg(a){return Bg(a)&&Vi.call(a,"callee")&&(!jj.call(a,"callee")||Yi.call(a)==Da)}function zg(a){return Og(a)&&Yi.call(a)==Ta}function Ag(a){return null!=a&&Mg(Qj(a))&&!Kg(a)}function Bg(a){return Og(a)&&Ag(a)}function Cg(a){return a===!0||a===!1||Og(a)&&Yi.call(a)==Fa}function Dg(a){return Og(a)&&Yi.call(a)==Ga}function Eg(a){return!!a&&1===a.nodeType&&Og(a)&&!Xg(a)}function Fg(a){if(Ag(a)&&(zk(a)||_g(a)||Kg(a.splice)||yg(a)))return!a.length;for(var b in a)if(Vi.call(a,b))return!1;return!0}function Gg(a,b){return Xc(a,b)}function Hg(a,b,c){c="function"==typeof c?c:Z;var d=c?c(a,b):Z;return d===Z?Xc(a,b,c):!!d}function Ig(a){return Og(a)?Yi.call(a)==Ha||"string"==typeof a.message&&"string"==typeof a.name:!1}function Jg(a){return"number"==typeof a&&oj(a)}function Kg(a){var b=Ng(a)?Yi.call(a):"";return b==Ia||b==Ja}function Lg(a){return"number"==typeof a&&a==ih(a)}function Mg(a){return"number"==typeof a&&a>-1&&a%1==0&&xa>=a}function Ng(a){var b=typeof a;return!!a&&("object"==b||"function"==b)}function Og(a){return!!a&&"object"==typeof a}function Pg(a){return Og(a)&&pe(a)==Ka}function Qg(a,b){return a===b||Zc(a,b,me(b))}function Rg(a,b,c){return c="function"==typeof c?c:Z,Zc(a,b,me(b),c)}function Sg(a){return Wg(a)&&a!=+a}function Tg(a){return null==a?!1:Kg(a)?$i.test(Ui.call(a)):Og(a)&&(P(a)?$i:zb).test(a)}function Ug(a){return null===a}function Vg(a){return null==a}function Wg(a){return"number"==typeof a||Og(a)&&Yi.call(a)==La}function Xg(a){if(!Og(a)||Yi.call(a)!=Ma||P(a))return!1;var b=fj(a);if(null===b)return!0;var c=b.constructor;return"function"==typeof c&&c instanceof c&&Ui.call(c)==Xi}function Yg(a){return Ng(a)&&Yi.call(a)==Na}function Zg(a){return Lg(a)&&a>=-xa&&xa>=a}function $g(a){return Og(a)&&pe(a)==Oa}function _g(a){return"string"==typeof a||!zk(a)&&Og(a)&&Yi.call(a)==Pa}function ah(a){return"symbol"==typeof a||Og(a)&&Yi.call(a)==Qa}function bh(a){return Og(a)&&Mg(a.length)&&!!tc[Yi.call(a)]}function ch(a){return a===Z}function dh(a){return Og(a)&&pe(a)==Ra}function eh(a){return Og(a)&&Yi.call(a)==Sa}function fh(a,b){return b>a}function gh(a,b){return b>=a}function hh(a){if(!a)return[];if(Ag(a))return _g(a)?W(a):Md(a);if(hj&&a[hj])return R(a[hj]());var b=pe(a),c=b==Ka?S:b==Oa?U:Ph;return c(a)}function ih(a){if(!a)return 0===a?a:0;if(a=kh(a),a===wa||a===-wa){var b=0>a?-1:1;return b*ya}var c=a%1;return a===a?c?a-c:a:0}function jh(a){return a?xc(ih(a),0,Aa):0}function kh(a){if(Ng(a)){var b=Kg(a.valueOf)?a.valueOf():a;a=Ng(b)?b+"":b}if("string"!=typeof a)return 0===a?a:+a;a=a.replace(qb,"");var c=yb.test(a);return c||Ab.test(a)?Bc(a.slice(2),c?2:8):xb.test(a)?za:+a}function lh(a){return Nd(a,Bh(a))}function mh(a){return xc(ih(a),-xa,xa)}function nh(a){if("string"==typeof a)return a;if(null==a)return"";if(ah(a))return Ij?Ij.call(a):"";var b=a+"";return"0"==b&&1/a==-wa?"-0":b}function oh(a,b){var c=Cc(a);return b?jc(c,b):c}function ph(a,b){return u(a,le(b,3),Nc,!0)}function qh(a,b){return u(a,le(b,3),Oc,!0)}function rh(a,b){return null==a?a:Lj(a,vc(b),Bh)}function sh(a,b){return null==a?a:Mj(a,vc(b),Bh)}function th(a,b){return a&&Nc(a,vc(b))}function uh(a,b){return a&&Oc(a,vc(b))}function vh(a){return null==a?[]:Pc(a,Ah(a))}function wh(a){return null==a?[]:Pc(a,Bh(a))}function xh(a,b,c){var d=null==a?Z:Qc(a,b);return d===Z?c:d}function yh(a,b){return re(a,b,Rc)}function zh(a,b){return re(a,b,Sc)}function Ah(a){var b=Ae(a);if(!b&&!Ag(a))return _c(a);var c=ve(a),d=!!c,e=c||[],f=e.length;for(var g in a)!Rc(a,g)||d&&("length"==g||Q(g,f))||b&&"constructor"==g||e.push(g);return e}function Bh(a){for(var b=-1,c=Ae(a),d=ad(a),e=d.length,f=ve(a),g=!!f,h=f||[],i=h.length;++b<e;){var j=d[b];g&&("length"==j||Q(j,i))||"constructor"==j&&(c||!Vi.call(a,j))||h.push(j)}return h}function Ch(a,b){var c={};return b=le(b,3),Nc(a,function(a,d,e){c[b(a,d,e)]=a}),c}function Dh(a,b){var c={};return b=le(b,3),Nc(a,function(a,d,e){c[d]=b(a,d,e)}),c}function Eh(a,b){return b=le(b),id(a,function(a,c){return!b(a,c)})}function Fh(a,b){return null==a?{}:id(a,le(b))}function Gh(a,b,c){if(xe(b,a))d=null==a?Z:a[b];else{b=wc(b);var d=xh(a,b);a=Ee(a,b)}return d===Z&&(d=c),Kg(d)?d.call(a):d}function Hh(a,b,c){return null==a?a:pd(a,b,c)}function Ih(a,b,c,d){return d="function"==typeof d?d:Z,null==a?a:pd(a,b,c,d)}function Jh(a){return C(a,Ah(a))}function Kh(a){return C(a,Bh(a))}function Lh(a,b,c){var d=zk(a)||bh(a);if(b=le(b,4),null==c)if(d||Ng(a)){var e=a.constructor;c=d?zk(a)?new e:[]:Kg(e)?Cc(fj(a)):{}}else c={};return(d?i:Nc)(a,function(a,d,e){return b(c,a,d,e)}),c}function Mh(a,b){return null==a?!0:xd(a,b)}function Nh(a,b,c){return null==a?a:yd(a,b,vc(c))}function Oh(a,b,c,d){return d="function"==typeof d?d:Z,null==a?a:yd(a,b,vc(c),d)}function Ph(a){return a?E(a,Ah(a)):[]}function Qh(a){return null==a?[]:E(a,Bh(a))}function Rh(a,b,c){return c===Z&&(c=b,b=Z),c!==Z&&(c=kh(c),c=c===c?c:0),b!==Z&&(b=kh(b),b=b===b?b:0),xc(kh(a),b,c)}function Sh(a,b,c){return b=kh(b)||0,c===Z?(c=b,b=0):c=kh(c)||0,a=kh(a),Tc(a,b,c)}function Th(a,b,c){if(c&&"boolean"!=typeof c&&we(a,b,c)&&(b=c=Z),c===Z&&("boolean"==typeof b?(c=b,b=Z):"boolean"==typeof a&&(c=a,a=Z)),a===Z&&b===Z?(a=0,b=1):(a=kh(a)||0,b===Z?(b=a,a=0):b=kh(b)||0),a>b){var d=a;a=b,b=d}if(c||a%1||b%1){var e=uj();return sj(a+e*(b-a+Ac("1e-"+((e+"").length-1))),b)}return nd(a,b)}function Uh(a){return Tk(nh(a).toLowerCase())}function Vh(a){return a=nh(a),a&&a.replace(Cb,L).replace(lc,"")}function Wh(a,b,c){a=nh(a),b="string"==typeof b?b:b+"";var d=a.length;return c=c===Z?d:xc(ih(c),0,d),c-=b.length,c>=0&&a.indexOf(b,c)==c}function Xh(a){return a=nh(a),a&&hb.test(a)?a.replace(fb,M):a}function Yh(a){return a=nh(a),a&&pb.test(a)?a.replace(ob,"\\$&"):a}function Zh(a,b,c){a=nh(a),b=ih(b);var d=V(a);if(!b||d>=b)return a;var e=(b-d)/2,f=nj(e),g=mj(e);return be("",f,c)+a+be("",g,c)}function $h(a,b,c){return a=nh(a),a+be(a,b,c)}function _h(a,b,c){return a=nh(a),be(a,b,c)+a}function ai(a,b,c){return c||null==b?b=0:b&&(b=+b),a=nh(a).replace(qb,""),tj(a,b||(wb.test(a)?16:10))}function bi(a,b){a=nh(a),b=ih(b);var c="";if(!a||1>b||b>xa)return c;do b%2&&(c+=a),b=nj(b/2),a+=a;while(b);return c}function ci(){var a=arguments,b=nh(a[0]);return a.length<3?b:b.replace(a[1],a[2])}function di(a,b,c){return nh(a).split(b,c)}function ei(a,b,c){return a=nh(a),c=xc(ih(c),0,a.length),a.lastIndexOf(b,c)==c}function fi(a,c,d){var e=b.templateSettings;d&&we(a,c,d)&&(c=Z),a=nh(a),c=Dk({},c,e,fc);var f,g,h=Dk({},c.imports,e.imports,fc),i=Ah(h),j=E(h,i),k=0,l=c.interpolate||Db,m="__p += '",n=Qi((c.escape||Db).source+"|"+l.source+"|"+(l===kb?ub:Db).source+"|"+(c.evaluate||Db).source+"|$","g"),o="//# sourceURL="+("sourceURL"in c?c.sourceURL:"lodash.templateSources["+ ++sc+"]")+"\n";a.replace(n,function(b,c,d,e,h,i){return d||(d=e),m+=a.slice(k,i).replace(Eb,N),c&&(f=!0,m+="' +\n__e("+c+") +\n'"),h&&(g=!0,m+="';\n"+h+";\n__p += '"),d&&(m+="' +\n((__t = ("+d+")) == null ? '' : __t) +\n'"),k=i+b.length,b}),m+="';\n";var p=c.variable;p||(m="with (obj) {\n"+m+"\n}\n"),m=(g?m.replace(bb,""):m).replace(cb,"$1").replace(db,"$1;"),m="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(f?", __e = _.escape":"")+(g?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+m+"return __p\n}";var q=Xk(function(){return Function(i,o+"return "+m).apply(Z,j)});if(q.source=m,Ig(q))throw q;return q}function gi(a){return nh(a).toLowerCase()}function hi(a){return nh(a).toUpperCase()}function ii(a,b,c){if(a=nh(a),!a)return a;if(c||b===Z)return a.replace(qb,"");if(b+="",!b)return a;var d=W(a),e=W(b);return d.slice(F(d,e),G(d,e)+1).join("")}function ji(a,b,c){if(a=nh(a),!a)return a;if(c||b===Z)return a.replace(sb,"");if(b+="",!b)return a;var d=W(a);return d.slice(0,G(d,W(b))+1).join("")}function ki(a,b,c){if(a=nh(a),!a)return a;if(c||b===Z)return a.replace(rb,"");if(b+="",!b)return a;var d=W(a);return d.slice(F(d,W(b))).join("")}function li(a,b){var c=pa,d=qa;if(Ng(b)){var e="separator"in b?b.separator:e;c="length"in b?ih(b.length):c,d="omission"in b?nh(b.omission):d}a=nh(a);var f=a.length;if(nc.test(a)){var g=W(a);f=g.length}if(c>=f)return a;var h=c-V(d);if(1>h)return d;var i=g?g.slice(0,h).join(""):a.slice(0,h);if(e===Z)return i+d;if(g&&(h+=i.length-h),Yg(e)){if(a.slice(h).search(e)){var j,k=i;for(e.global||(e=Qi(e.source,nh(vb.exec(e))+"g")),e.lastIndex=0;j=e.exec(k);)var l=j.index;i=i.slice(0,l===Z?h:l)}}else if(a.indexOf(e,h)!=h){var m=i.lastIndexOf(e);m>-1&&(i=i.slice(0,m))}return i+d}function mi(a){return a=nh(a),a&&gb.test(a)?a.replace(eb,X):a}function ni(a,b,c){return a=nh(a),b=c?Z:b,b===Z&&(b=qc.test(a)?pc:oc),a.match(b)||[]}function oi(a){var b=a?a.length:0,c=le();return a=b?o(a,function(a){if("function"!=typeof a[1])throw new Ri(aa);return[c(a[0]),a[1]]}):[],lg(function(c){for(var d=-1;++d<b;){var e=a[d];if(f(e[0],this,c))return f(e[1],this,c)}})}function pi(a){return zc(yc(a,!0))}function qi(a){return function(){return a}}function ri(a){return a}function si(a){return $c("function"==typeof a?a:yc(a,!0))}function ti(a){return cd(yc(a,!0))}function ui(a,b){return dd(a,yc(b,!0))}function vi(a,b,c){var d=Ah(b),e=Pc(b,d);null!=c||Ng(b)&&(e.length||!d.length)||(c=b,b=a,a=this,e=Pc(b,Ah(b)));var f=Ng(c)&&"chain"in c?c.chain:!0,g=Kg(a);return i(e,function(c){var d=b[c];a[c]=d,g&&(a.prototype[c]=function(){var b=this.__chain__;if(f||b){var c=a(this.__wrapped__),e=c.__actions__=Md(this.__actions__);return e.push({func:d,args:arguments,thisArg:a}),c.__chain__=b,c}return d.apply(a,p([this.value()],arguments))})}),a}function wi(){return Jc._===this&&(Jc._=Zi),this}function xi(){}function yi(a){return a=ih(a),function(){return arguments[a]}}function zi(a){return xe(a)?jd(a):kd(a)}function Ai(a){return function(b){return null==a?Z:Qc(a,b)}}function Bi(a,b){if(a=ih(a),1>a||a>xa)return[];var c=Aa,d=sj(a,Aa);b=vc(b),a-=Aa;for(var e=B(d,b);++c<a;)b(c);return e}function Ci(a){return zk(a)?o(a,String):Ge(a)}function Di(a){var b=++Wi;return nh(a)+b}function Ei(a,b){var c;return a===Z&&b===Z?0:(a!==Z&&(c=a),b!==Z&&(c=c===Z?b:c+b),c)}function Fi(a){return a&&a.length?t(a,ri,wg):Z}function Gi(a,b){return a&&a.length?t(a,le(b),wg):Z}function Hi(a){return Li(a)/(a?a.length:0)}
13
- function Ii(a){return a&&a.length?t(a,ri,fh):Z}function Ji(a,b){return a&&a.length?t(a,le(b),fh):Z}function Ki(a,b){var c;return a===Z&&b===Z?0:(a!==Z&&(c=a),b!==Z&&(c=c===Z?b:c-b),c)}function Li(a){return a&&a.length?A(a,ri):0}function Mi(a,b){return a&&a.length?A(a,le(b)):0}a=a?Kc.defaults({},a,Kc.pick(Jc,rc)):Jc;var Ni=a.Date,Oi=a.Error,Pi=a.Math,Qi=a.RegExp,Ri=a.TypeError,Si=a.Array.prototype,Ti=a.Object.prototype,Ui=a.Function.prototype.toString,Vi=Ti.hasOwnProperty,Wi=0,Xi=Ui.call(Object),Yi=Ti.toString,Zi=Jc._,$i=Qi("^"+Ui.call(Vi).replace(ob,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_i=Ec?a.Buffer:Z,aj=a.Reflect,bj=a.Symbol,cj=a.Uint8Array,dj=a.clearTimeout,ej=aj?aj.enumerate:Z,fj=Object.getPrototypeOf,gj=Object.getOwnPropertySymbols,hj="symbol"==typeof(hj=bj&&bj.iterator)?hj:Z,ij=Object.create,jj=Ti.propertyIsEnumerable,kj=a.setTimeout,lj=Si.splice,mj=Pi.ceil,nj=Pi.floor,oj=a.isFinite,pj=Si.join,qj=Object.keys,rj=Pi.max,sj=Pi.min,tj=a.parseInt,uj=Pi.random,vj=Si.reverse,wj=ne(a,"Map"),xj=ne(a,"Set"),yj=ne(a,"WeakMap"),zj=ne(Object,"create"),Aj=yj&&new yj,Bj=!jj.call({valueOf:1},"valueOf"),Cj={},Dj=wj?Ui.call(wj):"",Ej=xj?Ui.call(xj):"",Fj=yj?Ui.call(yj):"",Gj=bj?bj.prototype:Z,Hj=Gj?Gj.valueOf:Z,Ij=Gj?Gj.toString:Z;b.templateSettings={escape:ib,evaluate:jb,interpolate:kb,variable:"",imports:{_:b}};var Jj=Sd(Nc),Kj=Sd(Oc,!0),Lj=Td(),Mj=Td(!0);ej&&!jj.call({valueOf:1},"valueOf")&&(ad=function(a){return R(ej(a))});var Nj=Aj?function(a,b){return Aj.set(a,b),a}:ri,Oj=xj&&2===new xj([1,2]).size?function(a){return new xj(a)}:xi,Pj=Aj?function(a){return Aj.get(a)}:xi,Qj=jd("length"),Rj=gj||function(){return[]};(wj&&pe(new wj)!=Ka||xj&&pe(new xj)!=Oa||yj&&pe(new yj)!=Ra)&&(pe=function(a){var b=Yi.call(a),c=b==Ma?a.constructor:null,d="function"==typeof c?Ui.call(c):"";if(d)switch(d){case Dj:return Ka;case Ej:return Oa;case Fj:return Ra}return b});var Sj=function(){var a=0,b=0;return function(c,d){var e=qk(),f=sa-(e-b);if(b=e,f>0){if(++a>=ra)return c}else a=0;return Nj(c,d)}}(),Tj=lg(function(a,b){return zk(a)||(a=null==a?[]:[Object(a)]),b=Lc(b,1),h(a,b)}),Uj=lg(function(a,b){return Bg(a)?Fc(a,Lc(b,1,!0)):[]}),Vj=lg(function(a,b){var c=Ze(b);return Bg(c)&&(c=Z),Bg(a)?Fc(a,Lc(b,1,!0),le(c)):[]}),Wj=lg(function(a,b){var c=Ze(b);return Bg(c)&&(c=Z),Bg(a)?Fc(a,Lc(b,1,!0),Z,c):[]}),Xj=lg(function(a){var b=o(a,mc);return b.length&&b[0]===a[0]?Uc(b):[]}),Yj=lg(function(a){var b=Ze(a),c=o(a,mc);return b===Ze(c)?b=Z:c.pop(),c.length&&c[0]===a[0]?Uc(c,le(b)):[]}),Zj=lg(function(a){var b=Ze(a),c=o(a,mc);return b===Ze(c)?b=Z:c.pop(),c.length&&c[0]===a[0]?Uc(c,Z,b):[]}),$j=lg(_e),_j=lg(function(a,b){b=o(Lc(b,1),String);var c=kc(a,b);return md(a,b.sort(I)),c}),ak=lg(function(a){return wd(Lc(a,1,!0))}),bk=lg(function(a){var b=Ze(a);return Bg(b)&&(b=Z),wd(Lc(a,1,!0),le(b))}),ck=lg(function(a){var b=Ze(a);return Bg(b)&&(b=Z),wd(Lc(a,1,!0),Z,b)}),dk=lg(function(a,b){return Bg(a)?Fc(a,b):[]}),ek=lg(function(a){return Bd(l(a,Bg))}),fk=lg(function(a){var b=Ze(a);return Bg(b)&&(b=Z),Bd(l(a,Bg),le(b))}),gk=lg(function(a){var b=Ze(a);return Bg(b)&&(b=Z),Bd(l(a,Bg),Z,b)}),hk=lg(wf),ik=lg(function(a){var b=a.length,c=b>1?a[b-1]:Z;return c="function"==typeof c?(a.pop(),c):Z,xf(a,c)}),jk=lg(function(a){a=Lc(a,1);var b=a.length,c=b?a[0]:0,d=this.__wrapped__,e=function(b){return kc(b,a)};return!(b>1||this.__actions__.length)&&d instanceof Bb&&Q(c)?(d=d.slice(c,+c+(b?1:0)),d.__actions__.push({func:Cf,args:[e],thisArg:Z}),new H(d,this.__chain__).thru(function(a){return b&&!a.length&&a.push(Z),a})):this.thru(e)}),kk=Qd(function(a,b,c){Vi.call(a,c)?++a[c]:a[c]=1}),lk=Qd(function(a,b,c){Vi.call(a,c)?a[c].push(b):a[c]=[b]}),mk=lg(function(a,b,c){var d=-1,e="function"==typeof b,g=xe(b),h=Ag(a)?Array(a.length):[];return Jj(a,function(a){var i=e?b:g&&null!=a?a[b]:Z;h[++d]=i?f(i,a,c):Wc(a,b,c)}),h}),nk=Qd(function(a,b,c){a[c]=b}),ok=Qd(function(a,b,c){a[c?0:1].push(b)},function(){return[[],[]]}),pk=lg(function(a,b){if(null==a)return[];var c=b.length;return c>1&&we(a,b[0],b[1])?b=[]:c>2&&we(b[0],b[1],b[2])&&(b.length=1),gd(a,Lc(b,1),[])}),qk=Ni.now,rk=lg(function(a,b,c){var d=da;if(c.length){var e=T(c,oe(rk));d|=ia}return ge(a,d,b,c,e)}),sk=lg(function(a,b,c){var d=da|ea;if(c.length){var e=T(c,oe(sk));d|=ia}return ge(b,d,a,c,e)}),tk=lg(function(a,b){return Dc(a,1,b)}),uk=lg(function(a,b,c){return Dc(a,kh(b)||0,c)}),vk=lg(function(a,b){b=o(Lc(b,1),le());var c=b.length;return lg(function(d){for(var e=-1,g=sj(d.length,c);++e<g;)d[e]=b[e].call(this,d[e]);return f(a,this,d)})}),wk=lg(function(a,b){var c=T(b,oe(wk));return ge(a,ia,Z,b,c)}),xk=lg(function(a,b){var c=T(b,oe(xk));return ge(a,ja,Z,b,c)}),yk=lg(function(a,b){return ge(a,la,Z,Z,Z,Lc(b,1))}),zk=Array.isArray,Ak=_i?function(a){return a instanceof _i}:qi(!1),Bk=Rd(function(a,b){if(Bj||Ae(b)||Ag(b))return void Nd(b,Ah(b),a);for(var c in b)Vi.call(b,c)&&hc(a,c,b[c])}),Ck=Rd(function(a,b){if(Bj||Ae(b)||Ag(b))return void Nd(b,Bh(b),a);for(var c in b)hc(a,c,b[c])}),Dk=Rd(function(a,b,c,d){Od(b,Bh(b),a,d)}),Ek=Rd(function(a,b,c,d){Od(b,Ah(b),a,d)}),Fk=lg(function(a,b){return kc(a,Lc(b,1))}),Gk=lg(function(a){return a.push(Z,fc),f(Dk,Z,a)}),Hk=lg(function(a){return a.push(Z,De),f(Mk,Z,a)}),Ik=_d(function(a,b,c){a[b]=c},qi(ri)),Jk=_d(function(a,b,c){Vi.call(a,b)?a[b].push(c):a[b]=[c]},le),Kk=lg(Wc),Lk=Rd(function(a,b,c){ed(a,b,c)}),Mk=Rd(function(a,b,c,d){ed(a,b,c,d)}),Nk=lg(function(a,b){return null==a?{}:(b=o(Lc(b,1),String),hd(a,Fc(Bh(a),b)))}),Ok=lg(function(a,b){return null==a?{}:hd(a,Lc(b,1))}),Pk=Wd(function(a,b,c){return b=b.toLowerCase(),a+(c?Uh(b):b)}),Qk=Wd(function(a,b,c){return a+(c?"-":"")+b.toLowerCase()}),Rk=Wd(function(a,b,c){return a+(c?" ":"")+b.toLowerCase()}),Sk=Vd("toLowerCase"),Tk=Vd("toUpperCase"),Uk=Wd(function(a,b,c){return a+(c?"_":"")+b.toLowerCase()}),Vk=Wd(function(a,b,c){return a+(c?" ":"")+Uh(b)}),Wk=Wd(function(a,b,c){return a+(c?" ":"")+b.toUpperCase()}),Xk=lg(function(a,b){try{return f(a,Z,b)}catch(c){return Ig(c)?c:new Oi(c)}}),Yk=lg(function(a,b){return i(Lc(b,1),function(b){a[b]=rk(a[b],a)}),a}),Zk=Zd(),$k=Zd(!0),_k=lg(function(a,b){return function(c){return Wc(c,a,b)}}),al=lg(function(a,b){return function(c){return Wc(a,c,b)}}),bl=ae(o),cl=ae(k),dl=ae(s),el=de(),fl=de(!0),gl=fe("ceil"),hl=fe("floor"),il=fe("round");return b.prototype=c.prototype,b.prototype.constructor=b,H.prototype=Cc(c.prototype),H.prototype.constructor=H,Bb.prototype=Cc(c.prototype),Bb.prototype.constructor=Bb,Ib.prototype=zj?zj(null):Ti,Nb.prototype.clear=Ob,Nb.prototype["delete"]=Pb,Nb.prototype.get=Qb,Nb.prototype.has=Rb,Nb.prototype.set=Sb,Tb.prototype.push=Vb,Wb.prototype.clear=Xb,Wb.prototype["delete"]=Yb,Wb.prototype.get=Zb,Wb.prototype.has=$b,Wb.prototype.set=_b,ig.Cache=Nb,b.after=bg,b.ary=cg,b.assign=Bk,b.assignIn=Ck,b.assignInWith=Dk,b.assignWith=Ek,b.at=Fk,b.before=dg,b.bind=rk,b.bindAll=Yk,b.bindKey=sk,b.castArray=qg,b.chain=Af,b.chunk=Ie,b.compact=Je,b.concat=Tj,b.cond=oi,b.conforms=pi,b.constant=qi,b.countBy=kk,b.create=oh,b.curry=eg,b.curryRight=fg,b.debounce=gg,b.defaults=Gk,b.defaultsDeep=Hk,b.defer=tk,b.delay=uk,b.difference=Uj,b.differenceBy=Vj,b.differenceWith=Wj,b.drop=Ke,b.dropRight=Le,b.dropRightWhile=Me,b.dropWhile=Ne,b.fill=Oe,b.filter=Mf,b.flatMap=Pf,b.flatten=Re,b.flattenDeep=Se,b.flattenDepth=Te,b.flip=hg,b.flow=Zk,b.flowRight=$k,b.fromPairs=Ue,b.functions=vh,b.functionsIn=wh,b.groupBy=lk,b.initial=Xe,b.intersection=Xj,b.intersectionBy=Yj,b.intersectionWith=Zj,b.invert=Ik,b.invertBy=Jk,b.invokeMap=mk,b.iteratee=si,b.keyBy=nk,b.keys=Ah,b.keysIn=Bh,b.map=Tf,b.mapKeys=Ch,b.mapValues=Dh,b.matches=ti,b.matchesProperty=ui,b.memoize=ig,b.merge=Lk,b.mergeWith=Mk,b.method=_k,b.methodOf=al,b.mixin=vi,b.negate=jg,b.nthArg=yi,b.omit=Nk,b.omitBy=Eh,b.once=kg,b.orderBy=Uf,b.over=bl,b.overArgs=vk,b.overEvery=cl,b.overSome=dl,b.partial=wk,b.partialRight=xk,b.partition=ok,b.pick=Ok,b.pickBy=Fh,b.property=zi,b.propertyOf=Ai,b.pull=$j,b.pullAll=_e,b.pullAllBy=af,b.pullAllWith=bf,b.pullAt=_j,b.range=el,b.rangeRight=fl,b.rearg=yk,b.reject=Xf,b.remove=cf,b.rest=lg,b.reverse=df,b.sampleSize=Zf,b.set=Hh,b.setWith=Ih,b.shuffle=$f,b.slice=ef,b.sortBy=pk,b.sortedUniq=mf,b.sortedUniqBy=nf,b.split=di,b.spread=mg,b.tail=of,b.take=pf,b.takeRight=qf,b.takeRightWhile=rf,b.takeWhile=sf,b.tap=Bf,b.throttle=ng,b.thru=Cf,b.toArray=hh,b.toPairs=Jh,b.toPairsIn=Kh,b.toPath=Ci,b.toPlainObject=lh,b.transform=Lh,b.unary=og,b.union=ak,b.unionBy=bk,b.unionWith=ck,b.uniq=tf,b.uniqBy=uf,b.uniqWith=vf,b.unset=Mh,b.unzip=wf,b.unzipWith=xf,b.update=Nh,b.updateWith=Oh,b.values=Ph,b.valuesIn=Qh,b.without=dk,b.words=ni,b.wrap=pg,b.xor=ek,b.xorBy=fk,b.xorWith=gk,b.zip=hk,b.zipObject=yf,b.zipObjectDeep=zf,b.zipWith=ik,b.extend=Ck,b.extendWith=Dk,vi(b,b),b.add=Ei,b.attempt=Xk,b.camelCase=Pk,b.capitalize=Uh,b.ceil=gl,b.clamp=Rh,b.clone=rg,b.cloneDeep=tg,b.cloneDeepWith=ug,b.cloneWith=sg,b.deburr=Vh,b.endsWith=Wh,b.eq=vg,b.escape=Xh,b.escapeRegExp=Yh,b.every=Lf,b.find=Nf,b.findIndex=Pe,b.findKey=ph,b.findLast=Of,b.findLastIndex=Qe,b.findLastKey=qh,b.floor=hl,b.forEach=Qf,b.forEachRight=Rf,b.forIn=rh,b.forInRight=sh,b.forOwn=th,b.forOwnRight=uh,b.get=xh,b.gt=wg,b.gte=xg,b.has=yh,b.hasIn=zh,b.head=Ve,b.identity=ri,b.includes=Sf,b.indexOf=We,b.inRange=Sh,b.invoke=Kk,b.isArguments=yg,b.isArray=zk,b.isArrayBuffer=zg,b.isArrayLike=Ag,b.isArrayLikeObject=Bg,b.isBoolean=Cg,b.isBuffer=Ak,b.isDate=Dg,b.isElement=Eg,b.isEmpty=Fg,b.isEqual=Gg,b.isEqualWith=Hg,b.isError=Ig,b.isFinite=Jg,b.isFunction=Kg,b.isInteger=Lg,b.isLength=Mg,b.isMap=Pg,b.isMatch=Qg,b.isMatchWith=Rg,b.isNaN=Sg,b.isNative=Tg,b.isNil=Vg,b.isNull=Ug,b.isNumber=Wg,b.isObject=Ng,b.isObjectLike=Og,b.isPlainObject=Xg,b.isRegExp=Yg,b.isSafeInteger=Zg,b.isSet=$g,b.isString=_g,b.isSymbol=ah,b.isTypedArray=bh,b.isUndefined=ch,b.isWeakMap=dh,b.isWeakSet=eh,b.join=Ye,b.kebabCase=Qk,b.last=Ze,b.lastIndexOf=$e,b.lowerCase=Rk,b.lowerFirst=Sk,b.lt=fh,b.lte=gh,b.max=Fi,b.maxBy=Gi,b.mean=Hi,b.min=Ii,b.minBy=Ji,b.noConflict=wi,b.noop=xi,b.now=qk,b.pad=Zh,b.padEnd=$h,b.padStart=_h,b.parseInt=ai,b.random=Th,b.reduce=Vf,b.reduceRight=Wf,b.repeat=bi,b.replace=ci,b.result=Gh,b.round=il,b.runInContext=Y,b.sample=Yf,b.size=_f,b.snakeCase=Uk,b.some=ag,b.sortedIndex=ff,b.sortedIndexBy=gf,b.sortedIndexOf=hf,b.sortedLastIndex=jf,b.sortedLastIndexBy=kf,b.sortedLastIndexOf=lf,b.startCase=Vk,b.startsWith=ei,b.subtract=Ki,b.sum=Li,b.sumBy=Mi,b.template=fi,b.times=Bi,b.toInteger=ih,b.toLength=jh,b.toLower=gi,b.toNumber=kh,b.toSafeInteger=mh,b.toString=nh,b.toUpper=hi,b.trim=ii,b.trimEnd=ji,b.trimStart=ki,b.truncate=li,b.unescape=mi,b.uniqueId=Di,b.upperCase=Wk,b.upperFirst=Tk,b.each=Qf,b.eachRight=Rf,b.first=Ve,vi(b,function(){var a={};return Nc(b,function(c,d){Vi.call(b.prototype,d)||(a[d]=c)}),a}(),{chain:!1}),b.VERSION=$,i(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){b[a].placeholder=b}),i(["drop","take"],function(a,b){Bb.prototype[a]=function(c){var d=this.__filtered__;if(d&&!b)return new Bb(this);c=c===Z?1:rj(ih(c),0);var e=this.clone();return d?e.__takeCount__=sj(c,e.__takeCount__):e.__views__.push({size:sj(c,Aa),type:a+(e.__dir__<0?"Right":"")}),e},Bb.prototype[a+"Right"]=function(b){return this.reverse()[a](b).reverse()}}),i(["filter","map","takeWhile"],function(a,b){var c=b+1,d=c==ta||c==va;Bb.prototype[a]=function(a){var b=this.clone();return b.__iteratees__.push({iteratee:le(a,3),type:c}),b.__filtered__=b.__filtered__||d,b}}),i(["head","last"],function(a,b){var c="take"+(b?"Right":"");Bb.prototype[a]=function(){return this[c](1).value()[0]}}),i(["initial","tail"],function(a,b){var c="drop"+(b?"":"Right");Bb.prototype[a]=function(){return this.__filtered__?new Bb(this):this[c](1)}}),Bb.prototype.compact=function(){return this.filter(ri)},Bb.prototype.find=function(a){return this.filter(a).head()},Bb.prototype.findLast=function(a){return this.reverse().find(a)},Bb.prototype.invokeMap=lg(function(a,b){return"function"==typeof a?new Bb(this):this.map(function(c){return Wc(c,a,b)})}),Bb.prototype.reject=function(a){return a=le(a,3),this.filter(function(b){return!a(b)})},Bb.prototype.slice=function(a,b){a=ih(a);var c=this;return c.__filtered__&&(a>0||0>b)?new Bb(c):(0>a?c=c.takeRight(-a):a&&(c=c.drop(a)),b!==Z&&(b=ih(b),c=0>b?c.dropRight(-b):c.take(b-a)),c)},Bb.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},Bb.prototype.toArray=function(){return this.take(Aa)},Nc(Bb.prototype,function(a,c){var d=/^(?:filter|find|map|reject)|While$/.test(c),e=/^(?:head|last)$/.test(c),f=b[e?"take"+("last"==c?"Right":""):c],g=e||/^find/.test(c);f&&(b.prototype[c]=function(){var c=this.__wrapped__,h=e?[1]:arguments,i=c instanceof Bb,j=h[0],k=i||zk(c),l=function(a){var c=f.apply(b,p([a],h));return e&&m?c[0]:c};k&&d&&"function"==typeof j&&1!=j.length&&(i=k=!1);var m=this.__chain__,n=!!this.__actions__.length,o=g&&!m,q=i&&!n;if(!g&&k){c=q?c:new Bb(this);var r=a.apply(c,h);return r.__actions__.push({func:Cf,args:[l],thisArg:Z}),new H(r,m)}return o&&q?a.apply(this,h):(r=this.thru(l),o?e?r.value()[0]:r.value():r)})}),i(["pop","push","shift","sort","splice","unshift"],function(a){var c=Si[a],d=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",e=/^(?:pop|shift)$/.test(a);b.prototype[a]=function(){var a=arguments;return e&&!this.__chain__?c.apply(this.value(),a):this[d](function(b){return c.apply(b,a)})}}),Nc(Bb.prototype,function(a,c){var d=b[c];if(d){var e=d.name+"",f=Cj[e]||(Cj[e]=[]);f.push({name:c,func:d})}}),Cj[$d(Z,ea).name]=[{name:"wrapper",func:Z}],Bb.prototype.clone=Fb,Bb.prototype.reverse=Gb,Bb.prototype.value=Hb,b.prototype.at=jk,b.prototype.chain=Df,b.prototype.commit=Ef,b.prototype.flatMap=Ff,b.prototype.next=Gf,b.prototype.plant=If,b.prototype.reverse=Jf,b.prototype.toJSON=b.prototype.valueOf=b.prototype.value=Kf,hj&&(b.prototype[hj]=Hf),b}var Z,$="4.6.1",_=200,aa="Expected a function",ba="__lodash_hash_undefined__",ca="__lodash_placeholder__",da=1,ea=2,fa=4,ga=8,ha=16,ia=32,ja=64,ka=128,la=256,ma=512,na=1,oa=2,pa=30,qa="...",ra=150,sa=16,ta=1,ua=2,va=3,wa=1/0,xa=9007199254740991,ya=1.7976931348623157e308,za=NaN,Aa=4294967295,Ba=Aa-1,Ca=Aa>>>1,Da="[object Arguments]",Ea="[object Array]",Fa="[object Boolean]",Ga="[object Date]",Ha="[object Error]",Ia="[object Function]",Ja="[object GeneratorFunction]",Ka="[object Map]",La="[object Number]",Ma="[object Object]",Na="[object RegExp]",Oa="[object Set]",Pa="[object String]",Qa="[object Symbol]",Ra="[object WeakMap]",Sa="[object WeakSet]",Ta="[object ArrayBuffer]",Ua="[object Float32Array]",Va="[object Float64Array]",Wa="[object Int8Array]",Xa="[object Int16Array]",Ya="[object Int32Array]",Za="[object Uint8Array]",$a="[object Uint8ClampedArray]",_a="[object Uint16Array]",ab="[object Uint32Array]",bb=/\b__p \+= '';/g,cb=/\b(__p \+=) '' \+/g,db=/(__e\(.*?\)|\b__t\)) \+\n'';/g,eb=/&(?:amp|lt|gt|quot|#39|#96);/g,fb=/[&<>"'`]/g,gb=RegExp(eb.source),hb=RegExp(fb.source),ib=/<%-([\s\S]+?)%>/g,jb=/<%([\s\S]+?)%>/g,kb=/<%=([\s\S]+?)%>/g,lb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mb=/^\w*$/,nb=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g,ob=/[\\^$.*+?()[\]{}|]/g,pb=RegExp(ob.source),qb=/^\s+|\s+$/g,rb=/^\s+/,sb=/\s+$/,tb=/\\(\\)?/g,ub=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vb=/\w*$/,wb=/^0x/i,xb=/^[-+]0x[0-9a-f]+$/i,yb=/^0b[01]+$/i,zb=/^\[object .+?Constructor\]$/,Ab=/^0o[0-7]+$/i,Bb=/^(?:0|[1-9]\d*)$/,Cb=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,Db=/($^)/,Eb=/['\n\r\u2028\u2029\\]/g,Fb="\\ud800-\\udfff",Gb="\\u0300-\\u036f\\ufe20-\\ufe23",Hb="\\u20d0-\\u20f0",Ib="\\u2700-\\u27bf",Jb="a-z\\xdf-\\xf6\\xf8-\\xff",Kb="\\xac\\xb1\\xd7\\xf7",Lb="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Mb="\\u2018\\u2019\\u201c\\u201d",Nb=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ob="A-Z\\xc0-\\xd6\\xd8-\\xde",Pb="\\ufe0e\\ufe0f",Qb=Kb+Lb+Mb+Nb,Rb="["+Fb+"]",Sb="["+Qb+"]",Tb="["+Gb+Hb+"]",Ub="\\d+",Vb="["+Ib+"]",Wb="["+Jb+"]",Xb="[^"+Fb+Qb+Ub+Ib+Jb+Ob+"]",Yb="\\ud83c[\\udffb-\\udfff]",Zb="(?:"+Tb+"|"+Yb+")",$b="[^"+Fb+"]",_b="(?:\\ud83c[\\udde6-\\uddff]){2}",ac="[\\ud800-\\udbff][\\udc00-\\udfff]",bc="["+Ob+"]",cc="\\u200d",dc="(?:"+Wb+"|"+Xb+")",ec="(?:"+bc+"|"+Xb+")",fc=Zb+"?",gc="["+Pb+"]?",hc="(?:"+cc+"(?:"+[$b,_b,ac].join("|")+")"+gc+fc+")*",ic=gc+fc+hc,jc="(?:"+[Vb,_b,ac].join("|")+")"+ic,kc="(?:"+[$b+Tb+"?",Tb,_b,ac,Rb].join("|")+")",lc=RegExp(Tb,"g"),mc=RegExp(Yb+"(?="+Yb+")|"+kc+ic,"g"),nc=RegExp("["+cc+Fb+Gb+Hb+Pb+"]"),oc=/[a-zA-Z0-9]+/g,pc=RegExp([bc+"?"+Wb+"+(?="+[Sb,bc,"$"].join("|")+")",ec+"+(?="+[Sb,bc+dc,"$"].join("|")+")",bc+"?"+dc+"+",bc+"+",Ub,jc].join("|"),"g"),qc=/[a-z][A-Z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rc=["Array","Buffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Reflect","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],sc=-1,tc={};tc[Ua]=tc[Va]=tc[Wa]=tc[Xa]=tc[Ya]=tc[Za]=tc[$a]=tc[_a]=tc[ab]=!0,tc[Da]=tc[Ea]=tc[Ta]=tc[Fa]=tc[Ga]=tc[Ha]=tc[Ia]=tc[Ka]=tc[La]=tc[Ma]=tc[Na]=tc[Oa]=tc[Pa]=tc[Ra]=!1;var uc={};uc[Da]=uc[Ea]=uc[Ta]=uc[Fa]=uc[Ga]=uc[Ua]=uc[Va]=uc[Wa]=uc[Xa]=uc[Ya]=uc[Ka]=uc[La]=uc[Ma]=uc[Na]=uc[Oa]=uc[Pa]=uc[Qa]=uc[Za]=uc[$a]=uc[_a]=uc[ab]=!0,uc[Ha]=uc[Ia]=uc[Ra]=!1;var vc={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},wc={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},xc={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},yc={"function":!0,object:!0},zc={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ac=parseFloat,Bc=parseInt,Cc=yc[typeof c]&&c&&!c.nodeType?c:Z,Dc=yc[typeof b]&&b&&!b.nodeType?b:Z,Ec=Dc&&Dc.exports===Cc?Cc:Z,Fc=H(Cc&&Dc&&"object"==typeof a&&a),Gc=H(yc[typeof self]&&self),Hc=H(yc[typeof window]&&window),Ic=H(yc[typeof this]&&this),Jc=Fc||Hc!==(Ic&&Ic.window)&&Hc||Gc||Ic||Function("return this")(),Kc=Y();(Hc||Gc||{})._=Kc,"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return Kc}):Cc&&Dc?(Ec&&((Dc.exports=Kc)._=Kc),Cc._=Kc):Jc._=Kc}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],143:[function(a,b,c){!function(a,d){"object"==typeof c&&"undefined"!=typeof b?b.exports=d():"function"==typeof define&&define.amd?define(d):a.moment=d()}(this,function(){"use strict";function c(){return _c.apply(null,arguments)}function d(a){_c=a}function e(a){return a instanceof Array||"[object Array]"===Object.prototype.toString.call(a)}function f(a){return a instanceof Date||"[object Date]"===Object.prototype.toString.call(a)}function g(a,b){var c,d=[];for(c=0;c<a.length;++c)d.push(b(a[c],c));return d}function h(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function i(a,b){for(var c in b)h(b,c)&&(a[c]=b[c]);return h(b,"toString")&&(a.toString=b.toString),h(b,"valueOf")&&(a.valueOf=b.valueOf),a}function j(a,b,c,d){return Ka(a,b,c,d,!0).utc()}function k(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function l(a){return null==a._pf&&(a._pf=k()),a._pf}function m(a){if(null==a._isValid){var b=l(a);a._isValid=!(isNaN(a._d.getTime())||!(b.overflow<0)||b.empty||b.invalidMonth||b.invalidWeekday||b.nullInput||b.invalidFormat||b.userInvalidated),a._strict&&(a._isValid=a._isValid&&0===b.charsLeftOver&&0===b.unusedTokens.length&&void 0===b.bigHour)}return a._isValid}function n(a){var b=j(NaN);return null!=a?i(l(b),a):l(b).userInvalidated=!0,b}function o(a){return void 0===a}function p(a,b){var c,d,e;if(o(b._isAMomentObject)||(a._isAMomentObject=b._isAMomentObject),o(b._i)||(a._i=b._i),o(b._f)||(a._f=b._f),o(b._l)||(a._l=b._l),o(b._strict)||(a._strict=b._strict),o(b._tzm)||(a._tzm=b._tzm),o(b._isUTC)||(a._isUTC=b._isUTC),o(b._offset)||(a._offset=b._offset),o(b._pf)||(a._pf=l(b)),o(b._locale)||(a._locale=b._locale),ad.length>0)for(c in ad)d=ad[c],e=b[d],o(e)||(a[d]=e);return a}function q(a){p(this,a),this._d=new Date(null!=a._d?a._d.getTime():NaN),bd===!1&&(bd=!0,c.updateOffset(this),bd=!1)}function r(a){return a instanceof q||null!=a&&null!=a._isAMomentObject}function s(a){return 0>a?Math.ceil(a):Math.floor(a)}function t(a){var b=+a,c=0;return 0!==b&&isFinite(b)&&(c=s(b)),c}function u(a,b,c){var d,e=Math.min(a.length,b.length),f=Math.abs(a.length-b.length),g=0;for(d=0;e>d;d++)(c&&a[d]!==b[d]||!c&&t(a[d])!==t(b[d]))&&g++;return g+f}function v(a){c.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+a)}function w(a,b){var c=!0;return i(function(){return c&&(v(a+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+(new Error).stack),c=!1),b.apply(this,arguments)},b)}function x(a,b){cd[a]||(v(b),cd[a]=!0)}function y(a){return a instanceof Function||"[object Function]"===Object.prototype.toString.call(a)}function z(a){return"[object Object]"===Object.prototype.toString.call(a)}function A(a){var b,c;for(c in a)b=a[c],y(b)?this[c]=b:this["_"+c]=b;this._config=a,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function B(a,b){var c,d=i({},a);for(c in b)h(b,c)&&(z(a[c])&&z(b[c])?(d[c]={},i(d[c],a[c]),i(d[c],b[c])):null!=b[c]?d[c]=b[c]:delete d[c]);return d}function C(a){null!=a&&this.set(a)}function D(a){return a?a.toLowerCase().replace("_","-"):a}function E(a){for(var b,c,d,e,f=0;f<a.length;){for(e=D(a[f]).split("-"),b=e.length,c=D(a[f+1]),c=c?c.split("-"):null;b>0;){if(d=F(e.slice(0,b).join("-")))return d;if(c&&c.length>=b&&u(e,c,!0)>=b-1)break;b--}f++}return null}function F(c){var d=null;if(!ed[c]&&"undefined"!=typeof b&&b&&b.exports)try{d=dd._abbr,a("./locale/"+c),G(d)}catch(e){}return ed[c]}function G(a,b){var c;return a&&(c=o(b)?J(a):H(a,b),c&&(dd=c)),dd._abbr}function H(a,b){return null!==b?(b.abbr=a,null!=ed[a]?(x("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale"),b=B(ed[a]._config,b)):null!=b.parentLocale&&(null!=ed[b.parentLocale]?b=B(ed[b.parentLocale]._config,b):x("parentLocaleUndefined","specified parentLocale is not defined yet")),ed[a]=new C(b),G(a),ed[a]):(delete ed[a],null)}function I(a,b){if(null!=b){var c;null!=ed[a]&&(b=B(ed[a]._config,b)),c=new C(b),c.parentLocale=ed[a],ed[a]=c,G(a)}else null!=ed[a]&&(null!=ed[a].parentLocale?ed[a]=ed[a].parentLocale:null!=ed[a]&&delete ed[a]);return ed[a]}function J(a){var b;if(a&&a._locale&&a._locale._abbr&&(a=a._locale._abbr),!a)return dd;if(!e(a)){if(b=F(a))return b;a=[a]}return E(a)}function K(){return Object.keys(ed)}function L(a,b){var c=a.toLowerCase();fd[c]=fd[c+"s"]=fd[b]=a}function M(a){return"string"==typeof a?fd[a]||fd[a.toLowerCase()]:void 0}function N(a){var b,c,d={};for(c in a)h(a,c)&&(b=M(c),b&&(d[b]=a[c]));return d}function O(a,b){return function(d){return null!=d?(Q(this,a,d),c.updateOffset(this,b),this):P(this,a)}}function P(a,b){return a.isValid()?a._d["get"+(a._isUTC?"UTC":"")+b]():NaN}function Q(a,b,c){a.isValid()&&a._d["set"+(a._isUTC?"UTC":"")+b](c)}function R(a,b){var c;if("object"==typeof a)for(c in a)this.set(c,a[c]);else if(a=M(a),y(this[a]))return this[a](b);return this}function S(a,b,c){var d=""+Math.abs(a),e=b-d.length,f=a>=0;return(f?c?"+":"":"-")+Math.pow(10,Math.max(0,e)).toString().substr(1)+d}function T(a,b,c,d){var e=d;"string"==typeof d&&(e=function(){return this[d]()}),a&&(jd[a]=e),b&&(jd[b[0]]=function(){return S(e.apply(this,arguments),b[1],b[2])}),c&&(jd[c]=function(){return this.localeData().ordinal(e.apply(this,arguments),a)})}function U(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"")}function V(a){var b,c,d=a.match(gd);for(b=0,c=d.length;c>b;b++)jd[d[b]]?d[b]=jd[d[b]]:d[b]=U(d[b]);return function(e){var f="";for(b=0;c>b;b++)f+=d[b]instanceof Function?d[b].call(e,a):d[b];return f}}function W(a,b){return a.isValid()?(b=X(b,a.localeData()),id[b]=id[b]||V(b),id[b](a)):a.localeData().invalidDate()}function X(a,b){function c(a){return b.longDateFormat(a)||a}var d=5;for(hd.lastIndex=0;d>=0&&hd.test(a);)a=a.replace(hd,c),hd.lastIndex=0,d-=1;return a}function Y(a,b,c){Bd[a]=y(b)?b:function(a,d){return a&&c?c:b}}function Z(a,b){return h(Bd,a)?Bd[a](b._strict,b._locale):new RegExp($(a))}function $(a){return _(a.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,b,c,d,e){return b||c||d||e}))}function _(a){return a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function aa(a,b){var c,d=b;for("string"==typeof a&&(a=[a]),"number"==typeof b&&(d=function(a,c){c[b]=t(a)}),c=0;c<a.length;c++)Cd[a[c]]=d}function ba(a,b){aa(a,function(a,c,d,e){d._w=d._w||{},b(a,d._w,d,e)})}function ca(a,b,c){null!=b&&h(Cd,a)&&Cd[a](b,c._a,c,a)}function da(a,b){return new Date(Date.UTC(a,b+1,0)).getUTCDate()}function ea(a,b){return e(this._months)?this._months[a.month()]:this._months[Md.test(b)?"format":"standalone"][a.month()]}function fa(a,b){return e(this._monthsShort)?this._monthsShort[a.month()]:this._monthsShort[Md.test(b)?"format":"standalone"][a.month()]}function ga(a,b,c){var d,e,f;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),d=0;12>d;d++){if(e=j([2e3,d]),c&&!this._longMonthsParse[d]&&(this._longMonthsParse[d]=new RegExp("^"+this.months(e,"").replace(".","")+"$","i"),this._shortMonthsParse[d]=new RegExp("^"+this.monthsShort(e,"").replace(".","")+"$","i")),c||this._monthsParse[d]||(f="^"+this.months(e,"")+"|^"+this.monthsShort(e,""),this._monthsParse[d]=new RegExp(f.replace(".",""),"i")),c&&"MMMM"===b&&this._longMonthsParse[d].test(a))return d;if(c&&"MMM"===b&&this._shortMonthsParse[d].test(a))return d;if(!c&&this._monthsParse[d].test(a))return d}}function ha(a,b){var c;if(!a.isValid())return a;if("string"==typeof b)if(/^\d+$/.test(b))b=t(b);else if(b=a.localeData().monthsParse(b),"number"!=typeof b)return a;return c=Math.min(a.date(),da(a.year(),b)),a._d["set"+(a._isUTC?"UTC":"")+"Month"](b,c),a}function ia(a){return null!=a?(ha(this,a),c.updateOffset(this,!0),this):P(this,"Month")}function ja(){return da(this.year(),this.month())}function ka(a){return this._monthsParseExact?(h(this,"_monthsRegex")||ma.call(this),a?this._monthsShortStrictRegex:this._monthsShortRegex):this._monthsShortStrictRegex&&a?this._monthsShortStrictRegex:this._monthsShortRegex}function la(a){return this._monthsParseExact?(h(this,"_monthsRegex")||ma.call(this),a?this._monthsStrictRegex:this._monthsRegex):this._monthsStrictRegex&&a?this._monthsStrictRegex:this._monthsRegex}function ma(){function a(a,b){return b.length-a.length}var b,c,d=[],e=[],f=[];for(b=0;12>b;b++)c=j([2e3,b]),d.push(this.monthsShort(c,"")),e.push(this.months(c,"")),f.push(this.months(c,"")),f.push(this.monthsShort(c,""));for(d.sort(a),e.sort(a),f.sort(a),b=0;12>b;b++)d[b]=_(d[b]),e[b]=_(e[b]),f[b]=_(f[b]);this._monthsRegex=new RegExp("^("+f.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+e.join("|")+")$","i"),this._monthsShortStrictRegex=new RegExp("^("+d.join("|")+")$","i")}function na(a){var b,c=a._a;return c&&-2===l(a).overflow&&(b=c[Ed]<0||c[Ed]>11?Ed:c[Fd]<1||c[Fd]>da(c[Dd],c[Ed])?Fd:c[Gd]<0||c[Gd]>24||24===c[Gd]&&(0!==c[Hd]||0!==c[Id]||0!==c[Jd])?Gd:c[Hd]<0||c[Hd]>59?Hd:c[Id]<0||c[Id]>59?Id:c[Jd]<0||c[Jd]>999?Jd:-1,l(a)._overflowDayOfYear&&(Dd>b||b>Fd)&&(b=Fd),l(a)._overflowWeeks&&-1===b&&(b=Kd),l(a)._overflowWeekday&&-1===b&&(b=Ld),l(a).overflow=b),a}function oa(a){var b,c,d,e,f,g,h=a._i,i=Rd.exec(h)||Sd.exec(h);if(i){for(l(a).iso=!0,b=0,c=Ud.length;c>b;b++)if(Ud[b][1].exec(i[1])){e=Ud[b][0],d=Ud[b][2]!==!1;break}if(null==e)return void(a._isValid=!1);if(i[3]){for(b=0,c=Vd.length;c>b;b++)if(Vd[b][1].exec(i[3])){f=(i[2]||" ")+Vd[b][0];break}if(null==f)return void(a._isValid=!1)}if(!d&&null!=f)return void(a._isValid=!1);if(i[4]){if(!Td.exec(i[4]))return void(a._isValid=!1);g="Z"}a._f=e+(f||"")+(g||""),Da(a)}else a._isValid=!1}function pa(a){var b=Wd.exec(a._i);return null!==b?void(a._d=new Date(+b[1])):(oa(a),void(a._isValid===!1&&(delete a._isValid,c.createFromInputFallback(a))))}function qa(a,b,c,d,e,f,g){var h=new Date(a,b,c,d,e,f,g);return 100>a&&a>=0&&isFinite(h.getFullYear())&&h.setFullYear(a),h}function ra(a){var b=new Date(Date.UTC.apply(null,arguments));return 100>a&&a>=0&&isFinite(b.getUTCFullYear())&&b.setUTCFullYear(a),b}function sa(a){return ta(a)?366:365}function ta(a){return a%4===0&&a%100!==0||a%400===0}function ua(){return ta(this.year())}function va(a,b,c){var d=7+b-c,e=(7+ra(a,0,d).getUTCDay()-b)%7;return-e+d-1}function wa(a,b,c,d,e){var f,g,h=(7+c-d)%7,i=va(a,d,e),j=1+7*(b-1)+h+i;return 0>=j?(f=a-1,g=sa(f)+j):j>sa(a)?(f=a+1,g=j-sa(a)):(f=a,g=j),{year:f,dayOfYear:g}}function xa(a,b,c){var d,e,f=va(a.year(),b,c),g=Math.floor((a.dayOfYear()-f-1)/7)+1;return 1>g?(e=a.year()-1,d=g+ya(e,b,c)):g>ya(a.year(),b,c)?(d=g-ya(a.year(),b,c),e=a.year()+1):(e=a.year(),d=g),{week:d,year:e}}function ya(a,b,c){var d=va(a,b,c),e=va(a+1,b,c);return(sa(a)-d+e)/7}function za(a,b,c){return null!=a?a:null!=b?b:c}function Aa(a){var b=new Date(c.now());return a._useUTC?[b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()]:[b.getFullYear(),b.getMonth(),b.getDate()]}function Ba(a){var b,c,d,e,f=[];if(!a._d){for(d=Aa(a),a._w&&null==a._a[Fd]&&null==a._a[Ed]&&Ca(a),a._dayOfYear&&(e=za(a._a[Dd],d[Dd]),a._dayOfYear>sa(e)&&(l(a)._overflowDayOfYear=!0),c=ra(e,0,a._dayOfYear),a._a[Ed]=c.getUTCMonth(),a._a[Fd]=c.getUTCDate()),b=0;3>b&&null==a._a[b];++b)a._a[b]=f[b]=d[b];for(;7>b;b++)a._a[b]=f[b]=null==a._a[b]?2===b?1:0:a._a[b];24===a._a[Gd]&&0===a._a[Hd]&&0===a._a[Id]&&0===a._a[Jd]&&(a._nextDay=!0,a._a[Gd]=0),a._d=(a._useUTC?ra:qa).apply(null,f),null!=a._tzm&&a._d.setUTCMinutes(a._d.getUTCMinutes()-a._tzm),a._nextDay&&(a._a[Gd]=24)}}function Ca(a){var b,c,d,e,f,g,h,i;b=a._w,null!=b.GG||null!=b.W||null!=b.E?(f=1,g=4,c=za(b.GG,a._a[Dd],xa(La(),1,4).year),d=za(b.W,1),e=za(b.E,1),(1>e||e>7)&&(i=!0)):(f=a._locale._week.dow,g=a._locale._week.doy,c=za(b.gg,a._a[Dd],xa(La(),f,g).year),d=za(b.w,1),null!=b.d?(e=b.d,(0>e||e>6)&&(i=!0)):null!=b.e?(e=b.e+f,(b.e<0||b.e>6)&&(i=!0)):e=f),1>d||d>ya(c,f,g)?l(a)._overflowWeeks=!0:null!=i?l(a)._overflowWeekday=!0:(h=wa(c,d,e,f,g),a._a[Dd]=h.year,a._dayOfYear=h.dayOfYear)}function Da(a){if(a._f===c.ISO_8601)return void oa(a);a._a=[],l(a).empty=!0;var b,d,e,f,g,h=""+a._i,i=h.length,j=0;for(e=X(a._f,a._locale).match(gd)||[],b=0;b<e.length;b++)f=e[b],d=(h.match(Z(f,a))||[])[0],d&&(g=h.substr(0,h.indexOf(d)),g.length>0&&l(a).unusedInput.push(g),h=h.slice(h.indexOf(d)+d.length),j+=d.length),jd[f]?(d?l(a).empty=!1:l(a).unusedTokens.push(f),ca(f,d,a)):a._strict&&!d&&l(a).unusedTokens.push(f);l(a).charsLeftOver=i-j,h.length>0&&l(a).unusedInput.push(h),l(a).bigHour===!0&&a._a[Gd]<=12&&a._a[Gd]>0&&(l(a).bigHour=void 0),a._a[Gd]=Ea(a._locale,a._a[Gd],a._meridiem),Ba(a),na(a)}function Ea(a,b,c){var d;return null==c?b:null!=a.meridiemHour?a.meridiemHour(b,c):null!=a.isPM?(d=a.isPM(c),d&&12>b&&(b+=12),d||12!==b||(b=0),b):b}function Fa(a){var b,c,d,e,f;if(0===a._f.length)return l(a).invalidFormat=!0,void(a._d=new Date(NaN));for(e=0;e<a._f.length;e++)f=0,b=p({},a),null!=a._useUTC&&(b._useUTC=a._useUTC),b._f=a._f[e],Da(b),m(b)&&(f+=l(b).charsLeftOver,f+=10*l(b).unusedTokens.length,l(b).score=f,(null==d||d>f)&&(d=f,c=b));i(a,c||b)}function Ga(a){if(!a._d){var b=N(a._i);
14
- a._a=g([b.year,b.month,b.day||b.date,b.hour,b.minute,b.second,b.millisecond],function(a){return a&&parseInt(a,10)}),Ba(a)}}function Ha(a){var b=new q(na(Ia(a)));return b._nextDay&&(b.add(1,"d"),b._nextDay=void 0),b}function Ia(a){var b=a._i,c=a._f;return a._locale=a._locale||J(a._l),null===b||void 0===c&&""===b?n({nullInput:!0}):("string"==typeof b&&(a._i=b=a._locale.preparse(b)),r(b)?new q(na(b)):(e(c)?Fa(a):c?Da(a):f(b)?a._d=b:Ja(a),m(a)||(a._d=null),a))}function Ja(a){var b=a._i;void 0===b?a._d=new Date(c.now()):f(b)?a._d=new Date(+b):"string"==typeof b?pa(a):e(b)?(a._a=g(b.slice(0),function(a){return parseInt(a,10)}),Ba(a)):"object"==typeof b?Ga(a):"number"==typeof b?a._d=new Date(b):c.createFromInputFallback(a)}function Ka(a,b,c,d,e){var f={};return"boolean"==typeof c&&(d=c,c=void 0),f._isAMomentObject=!0,f._useUTC=f._isUTC=e,f._l=c,f._i=a,f._f=b,f._strict=d,Ha(f)}function La(a,b,c,d){return Ka(a,b,c,d,!1)}function Ma(a,b){var c,d;if(1===b.length&&e(b[0])&&(b=b[0]),!b.length)return La();for(c=b[0],d=1;d<b.length;++d)b[d].isValid()&&!b[d][a](c)||(c=b[d]);return c}function Na(){var a=[].slice.call(arguments,0);return Ma("isBefore",a)}function Oa(){var a=[].slice.call(arguments,0);return Ma("isAfter",a)}function Pa(a){var b=N(a),c=b.year||0,d=b.quarter||0,e=b.month||0,f=b.week||0,g=b.day||0,h=b.hour||0,i=b.minute||0,j=b.second||0,k=b.millisecond||0;this._milliseconds=+k+1e3*j+6e4*i+36e5*h,this._days=+g+7*f,this._months=+e+3*d+12*c,this._data={},this._locale=J(),this._bubble()}function Qa(a){return a instanceof Pa}function Ra(a,b){T(a,0,0,function(){var a=this.utcOffset(),c="+";return 0>a&&(a=-a,c="-"),c+S(~~(a/60),2)+b+S(~~a%60,2)})}function Sa(a,b){var c=(b||"").match(a)||[],d=c[c.length-1]||[],e=(d+"").match(_d)||["-",0,0],f=+(60*e[1])+t(e[2]);return"+"===e[0]?f:-f}function Ta(a,b){var d,e;return b._isUTC?(d=b.clone(),e=(r(a)||f(a)?+a:+La(a))-+d,d._d.setTime(+d._d+e),c.updateOffset(d,!1),d):La(a).local()}function Ua(a){return 15*-Math.round(a._d.getTimezoneOffset()/15)}function Va(a,b){var d,e=this._offset||0;return this.isValid()?null!=a?("string"==typeof a?a=Sa(yd,a):Math.abs(a)<16&&(a=60*a),!this._isUTC&&b&&(d=Ua(this)),this._offset=a,this._isUTC=!0,null!=d&&this.add(d,"m"),e!==a&&(!b||this._changeInProgress?kb(this,eb(a-e,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,c.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?e:Ua(this):null!=a?this:NaN}function Wa(a,b){return null!=a?("string"!=typeof a&&(a=-a),this.utcOffset(a,b),this):-this.utcOffset()}function Xa(a){return this.utcOffset(0,a)}function Ya(a){return this._isUTC&&(this.utcOffset(0,a),this._isUTC=!1,a&&this.subtract(Ua(this),"m")),this}function Za(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(Sa(xd,this._i)),this}function $a(a){return this.isValid()?(a=a?La(a).utcOffset():0,(this.utcOffset()-a)%60===0):!1}function _a(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function ab(){if(!o(this._isDSTShifted))return this._isDSTShifted;var a={};if(p(a,this),a=Ia(a),a._a){var b=a._isUTC?j(a._a):La(a._a);this._isDSTShifted=this.isValid()&&u(a._a,b.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function bb(){return this.isValid()?!this._isUTC:!1}function cb(){return this.isValid()?this._isUTC:!1}function db(){return this.isValid()?this._isUTC&&0===this._offset:!1}function eb(a,b){var c,d,e,f=a,g=null;return Qa(a)?f={ms:a._milliseconds,d:a._days,M:a._months}:"number"==typeof a?(f={},b?f[b]=a:f.milliseconds=a):(g=ae.exec(a))?(c="-"===g[1]?-1:1,f={y:0,d:t(g[Fd])*c,h:t(g[Gd])*c,m:t(g[Hd])*c,s:t(g[Id])*c,ms:t(g[Jd])*c}):(g=be.exec(a))?(c="-"===g[1]?-1:1,f={y:fb(g[2],c),M:fb(g[3],c),w:fb(g[4],c),d:fb(g[5],c),h:fb(g[6],c),m:fb(g[7],c),s:fb(g[8],c)}):null==f?f={}:"object"==typeof f&&("from"in f||"to"in f)&&(e=hb(La(f.from),La(f.to)),f={},f.ms=e.milliseconds,f.M=e.months),d=new Pa(f),Qa(a)&&h(a,"_locale")&&(d._locale=a._locale),d}function fb(a,b){var c=a&&parseFloat(a.replace(",","."));return(isNaN(c)?0:c)*b}function gb(a,b){var c={milliseconds:0,months:0};return c.months=b.month()-a.month()+12*(b.year()-a.year()),a.clone().add(c.months,"M").isAfter(b)&&--c.months,c.milliseconds=+b-+a.clone().add(c.months,"M"),c}function hb(a,b){var c;return a.isValid()&&b.isValid()?(b=Ta(b,a),a.isBefore(b)?c=gb(a,b):(c=gb(b,a),c.milliseconds=-c.milliseconds,c.months=-c.months),c):{milliseconds:0,months:0}}function ib(a){return 0>a?-1*Math.round(-1*a):Math.round(a)}function jb(a,b){return function(c,d){var e,f;return null===d||isNaN(+d)||(x(b,"moment()."+b+"(period, number) is deprecated. Please use moment()."+b+"(number, period)."),f=c,c=d,d=f),c="string"==typeof c?+c:c,e=eb(c,d),kb(this,e,a),this}}function kb(a,b,d,e){var f=b._milliseconds,g=ib(b._days),h=ib(b._months);a.isValid()&&(e=null==e?!0:e,f&&a._d.setTime(+a._d+f*d),g&&Q(a,"Date",P(a,"Date")+g*d),h&&ha(a,P(a,"Month")+h*d),e&&c.updateOffset(a,g||h))}function lb(a,b){var c=a||La(),d=Ta(c,this).startOf("day"),e=this.diff(d,"days",!0),f=-6>e?"sameElse":-1>e?"lastWeek":0>e?"lastDay":1>e?"sameDay":2>e?"nextDay":7>e?"nextWeek":"sameElse",g=b&&(y(b[f])?b[f]():b[f]);return this.format(g||this.localeData().calendar(f,this,La(c)))}function mb(){return new q(this)}function nb(a,b){var c=r(a)?a:La(a);return this.isValid()&&c.isValid()?(b=M(o(b)?"millisecond":b),"millisecond"===b?+this>+c:+c<+this.clone().startOf(b)):!1}function ob(a,b){var c=r(a)?a:La(a);return this.isValid()&&c.isValid()?(b=M(o(b)?"millisecond":b),"millisecond"===b?+c>+this:+this.clone().endOf(b)<+c):!1}function pb(a,b,c){return this.isAfter(a,c)&&this.isBefore(b,c)}function qb(a,b){var c,d=r(a)?a:La(a);return this.isValid()&&d.isValid()?(b=M(b||"millisecond"),"millisecond"===b?+this===+d:(c=+d,+this.clone().startOf(b)<=c&&c<=+this.clone().endOf(b))):!1}function rb(a,b){return this.isSame(a,b)||this.isAfter(a,b)}function sb(a,b){return this.isSame(a,b)||this.isBefore(a,b)}function tb(a,b,c){var d,e,f,g;return this.isValid()?(d=Ta(a,this),d.isValid()?(e=6e4*(d.utcOffset()-this.utcOffset()),b=M(b),"year"===b||"month"===b||"quarter"===b?(g=ub(this,d),"quarter"===b?g/=3:"year"===b&&(g/=12)):(f=this-d,g="second"===b?f/1e3:"minute"===b?f/6e4:"hour"===b?f/36e5:"day"===b?(f-e)/864e5:"week"===b?(f-e)/6048e5:f),c?g:s(g)):NaN):NaN}function ub(a,b){var c,d,e=12*(b.year()-a.year())+(b.month()-a.month()),f=a.clone().add(e,"months");return 0>b-f?(c=a.clone().add(e-1,"months"),d=(b-f)/(f-c)):(c=a.clone().add(e+1,"months"),d=(b-f)/(c-f)),-(e+d)}function vb(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function wb(){var a=this.clone().utc();return 0<a.year()&&a.year()<=9999?y(Date.prototype.toISOString)?this.toDate().toISOString():W(a,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):W(a,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function xb(a){var b=W(this,a||c.defaultFormat);return this.localeData().postformat(b)}function yb(a,b){return this.isValid()&&(r(a)&&a.isValid()||La(a).isValid())?eb({to:this,from:a}).locale(this.locale()).humanize(!b):this.localeData().invalidDate()}function zb(a){return this.from(La(),a)}function Ab(a,b){return this.isValid()&&(r(a)&&a.isValid()||La(a).isValid())?eb({from:this,to:a}).locale(this.locale()).humanize(!b):this.localeData().invalidDate()}function Bb(a){return this.to(La(),a)}function Cb(a){var b;return void 0===a?this._locale._abbr:(b=J(a),null!=b&&(this._locale=b),this)}function Db(){return this._locale}function Eb(a){switch(a=M(a)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===a&&this.weekday(0),"isoWeek"===a&&this.isoWeekday(1),"quarter"===a&&this.month(3*Math.floor(this.month()/3)),this}function Fb(a){return a=M(a),void 0===a||"millisecond"===a?this:this.startOf(a).add(1,"isoWeek"===a?"week":a).subtract(1,"ms")}function Gb(){return+this._d-6e4*(this._offset||0)}function Hb(){return Math.floor(+this/1e3)}function Ib(){return this._offset?new Date(+this):this._d}function Jb(){var a=this;return[a.year(),a.month(),a.date(),a.hour(),a.minute(),a.second(),a.millisecond()]}function Kb(){var a=this;return{years:a.year(),months:a.month(),date:a.date(),hours:a.hours(),minutes:a.minutes(),seconds:a.seconds(),milliseconds:a.milliseconds()}}function Lb(){return this.isValid()?this.toISOString():null}function Mb(){return m(this)}function Nb(){return i({},l(this))}function Ob(){return l(this).overflow}function Pb(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Qb(a,b){T(0,[a,a.length],0,b)}function Rb(a){return Vb.call(this,a,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Sb(a){return Vb.call(this,a,this.isoWeek(),this.isoWeekday(),1,4)}function Tb(){return ya(this.year(),1,4)}function Ub(){var a=this.localeData()._week;return ya(this.year(),a.dow,a.doy)}function Vb(a,b,c,d,e){var f;return null==a?xa(this,d,e).year:(f=ya(a,d,e),b>f&&(b=f),Wb.call(this,a,b,c,d,e))}function Wb(a,b,c,d,e){var f=wa(a,b,c,d,e),g=ra(f.year,0,f.dayOfYear);return this.year(g.getUTCFullYear()),this.month(g.getUTCMonth()),this.date(g.getUTCDate()),this}function Xb(a){return null==a?Math.ceil((this.month()+1)/3):this.month(3*(a-1)+this.month()%3)}function Yb(a){return xa(a,this._week.dow,this._week.doy).week}function Zb(){return this._week.dow}function $b(){return this._week.doy}function _b(a){var b=this.localeData().week(this);return null==a?b:this.add(7*(a-b),"d")}function ac(a){var b=xa(this,1,4).week;return null==a?b:this.add(7*(a-b),"d")}function bc(a,b){return"string"!=typeof a?a:isNaN(a)?(a=b.weekdaysParse(a),"number"==typeof a?a:null):parseInt(a,10)}function cc(a,b){return e(this._weekdays)?this._weekdays[a.day()]:this._weekdays[this._weekdays.isFormat.test(b)?"format":"standalone"][a.day()]}function dc(a){return this._weekdaysShort[a.day()]}function ec(a){return this._weekdaysMin[a.day()]}function fc(a,b,c){var d,e,f;for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),d=0;7>d;d++){if(e=La([2e3,1]).day(d),c&&!this._fullWeekdaysParse[d]&&(this._fullWeekdaysParse[d]=new RegExp("^"+this.weekdays(e,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[d]=new RegExp("^"+this.weekdaysShort(e,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[d]=new RegExp("^"+this.weekdaysMin(e,"").replace(".",".?")+"$","i")),this._weekdaysParse[d]||(f="^"+this.weekdays(e,"")+"|^"+this.weekdaysShort(e,"")+"|^"+this.weekdaysMin(e,""),this._weekdaysParse[d]=new RegExp(f.replace(".",""),"i")),c&&"dddd"===b&&this._fullWeekdaysParse[d].test(a))return d;if(c&&"ddd"===b&&this._shortWeekdaysParse[d].test(a))return d;if(c&&"dd"===b&&this._minWeekdaysParse[d].test(a))return d;if(!c&&this._weekdaysParse[d].test(a))return d}}function gc(a){if(!this.isValid())return null!=a?this:NaN;var b=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=a?(a=bc(a,this.localeData()),this.add(a-b,"d")):b}function hc(a){if(!this.isValid())return null!=a?this:NaN;var b=(this.day()+7-this.localeData()._week.dow)%7;return null==a?b:this.add(a-b,"d")}function ic(a){return this.isValid()?null==a?this.day()||7:this.day(this.day()%7?a:a-7):null!=a?this:NaN}function jc(a){var b=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==a?b:this.add(a-b,"d")}function kc(){return this.hours()%12||12}function lc(a,b){T(a,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),b)})}function mc(a,b){return b._meridiemParse}function nc(a){return"p"===(a+"").toLowerCase().charAt(0)}function oc(a,b,c){return a>11?c?"pm":"PM":c?"am":"AM"}function pc(a,b){b[Jd]=t(1e3*("0."+a))}function qc(){return this._isUTC?"UTC":""}function rc(){return this._isUTC?"Coordinated Universal Time":""}function sc(a){return La(1e3*a)}function tc(){return La.apply(null,arguments).parseZone()}function uc(a,b,c){var d=this._calendar[a];return y(d)?d.call(b,c):d}function vc(a){var b=this._longDateFormat[a],c=this._longDateFormat[a.toUpperCase()];return b||!c?b:(this._longDateFormat[a]=c.replace(/MMMM|MM|DD|dddd/g,function(a){return a.slice(1)}),this._longDateFormat[a])}function wc(){return this._invalidDate}function xc(a){return this._ordinal.replace("%d",a)}function yc(a){return a}function zc(a,b,c,d){var e=this._relativeTime[c];return y(e)?e(a,b,c,d):e.replace(/%d/i,a)}function Ac(a,b){var c=this._relativeTime[a>0?"future":"past"];return y(c)?c(b):c.replace(/%s/i,b)}function Bc(a,b,c,d){var e=J(),f=j().set(d,b);return e[c](f,a)}function Cc(a,b,c,d,e){if("number"==typeof a&&(b=a,a=void 0),a=a||"",null!=b)return Bc(a,b,c,e);var f,g=[];for(f=0;d>f;f++)g[f]=Bc(a,f,c,e);return g}function Dc(a,b){return Cc(a,b,"months",12,"month")}function Ec(a,b){return Cc(a,b,"monthsShort",12,"month")}function Fc(a,b){return Cc(a,b,"weekdays",7,"day")}function Gc(a,b){return Cc(a,b,"weekdaysShort",7,"day")}function Hc(a,b){return Cc(a,b,"weekdaysMin",7,"day")}function Ic(){var a=this._data;return this._milliseconds=ze(this._milliseconds),this._days=ze(this._days),this._months=ze(this._months),a.milliseconds=ze(a.milliseconds),a.seconds=ze(a.seconds),a.minutes=ze(a.minutes),a.hours=ze(a.hours),a.months=ze(a.months),a.years=ze(a.years),this}function Jc(a,b,c,d){var e=eb(b,c);return a._milliseconds+=d*e._milliseconds,a._days+=d*e._days,a._months+=d*e._months,a._bubble()}function Kc(a,b){return Jc(this,a,b,1)}function Lc(a,b){return Jc(this,a,b,-1)}function Mc(a){return 0>a?Math.floor(a):Math.ceil(a)}function Nc(){var a,b,c,d,e,f=this._milliseconds,g=this._days,h=this._months,i=this._data;return f>=0&&g>=0&&h>=0||0>=f&&0>=g&&0>=h||(f+=864e5*Mc(Pc(h)+g),g=0,h=0),i.milliseconds=f%1e3,a=s(f/1e3),i.seconds=a%60,b=s(a/60),i.minutes=b%60,c=s(b/60),i.hours=c%24,g+=s(c/24),e=s(Oc(g)),h+=e,g-=Mc(Pc(e)),d=s(h/12),h%=12,i.days=g,i.months=h,i.years=d,this}function Oc(a){return 4800*a/146097}function Pc(a){return 146097*a/4800}function Qc(a){var b,c,d=this._milliseconds;if(a=M(a),"month"===a||"year"===a)return b=this._days+d/864e5,c=this._months+Oc(b),"month"===a?c:c/12;switch(b=this._days+Math.round(Pc(this._months)),a){case"week":return b/7+d/6048e5;case"day":return b+d/864e5;case"hour":return 24*b+d/36e5;case"minute":return 1440*b+d/6e4;case"second":return 86400*b+d/1e3;case"millisecond":return Math.floor(864e5*b)+d;default:throw new Error("Unknown unit "+a)}}function Rc(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*t(this._months/12)}function Sc(a){return function(){return this.as(a)}}function Tc(a){return a=M(a),this[a+"s"]()}function Uc(a){return function(){return this._data[a]}}function Vc(){return s(this.days()/7)}function Wc(a,b,c,d,e){return e.relativeTime(b||1,!!c,a,d)}function Xc(a,b,c){var d=eb(a).abs(),e=Pe(d.as("s")),f=Pe(d.as("m")),g=Pe(d.as("h")),h=Pe(d.as("d")),i=Pe(d.as("M")),j=Pe(d.as("y")),k=e<Qe.s&&["s",e]||1>=f&&["m"]||f<Qe.m&&["mm",f]||1>=g&&["h"]||g<Qe.h&&["hh",g]||1>=h&&["d"]||h<Qe.d&&["dd",h]||1>=i&&["M"]||i<Qe.M&&["MM",i]||1>=j&&["y"]||["yy",j];return k[2]=b,k[3]=+a>0,k[4]=c,Wc.apply(null,k)}function Yc(a,b){return void 0===Qe[a]?!1:void 0===b?Qe[a]:(Qe[a]=b,!0)}function Zc(a){var b=this.localeData(),c=Xc(this,!a,b);return a&&(c=b.pastFuture(+this,c)),b.postformat(c)}function $c(){var a,b,c,d=Re(this._milliseconds)/1e3,e=Re(this._days),f=Re(this._months);a=s(d/60),b=s(a/60),d%=60,a%=60,c=s(f/12),f%=12;var g=c,h=f,i=e,j=b,k=a,l=d,m=this.asSeconds();return m?(0>m?"-":"")+"P"+(g?g+"Y":"")+(h?h+"M":"")+(i?i+"D":"")+(j||k||l?"T":"")+(j?j+"H":"")+(k?k+"M":"")+(l?l+"S":""):"P0D"}var _c,ad=c.momentProperties=[],bd=!1,cd={};c.suppressDeprecationWarnings=!1;var dd,ed={},fd={},gd=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,hd=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,id={},jd={},kd=/\d/,ld=/\d\d/,md=/\d{3}/,nd=/\d{4}/,od=/[+-]?\d{6}/,pd=/\d\d?/,qd=/\d\d\d\d?/,rd=/\d\d\d\d\d\d?/,sd=/\d{1,3}/,td=/\d{1,4}/,ud=/[+-]?\d{1,6}/,vd=/\d+/,wd=/[+-]?\d+/,xd=/Z|[+-]\d\d:?\d\d/gi,yd=/Z|[+-]\d\d(?::?\d\d)?/gi,zd=/[+-]?\d+(\.\d{1,3})?/,Ad=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Bd={},Cd={},Dd=0,Ed=1,Fd=2,Gd=3,Hd=4,Id=5,Jd=6,Kd=7,Ld=8;T("M",["MM",2],"Mo",function(){return this.month()+1}),T("MMM",0,0,function(a){return this.localeData().monthsShort(this,a)}),T("MMMM",0,0,function(a){return this.localeData().months(this,a)}),L("month","M"),Y("M",pd),Y("MM",pd,ld),Y("MMM",function(a,b){return b.monthsShortRegex(a)}),Y("MMMM",function(a,b){return b.monthsRegex(a)}),aa(["M","MM"],function(a,b){b[Ed]=t(a)-1}),aa(["MMM","MMMM"],function(a,b,c,d){var e=c._locale.monthsParse(a,d,c._strict);null!=e?b[Ed]=e:l(c).invalidMonth=a});var Md=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/,Nd="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Od="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Pd=Ad,Qd=Ad,Rd=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,Sd=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,Td=/Z|[+-]\d\d(?::?\d\d)?/,Ud=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Vd=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Wd=/^\/?Date\((\-?\d+)/i;c.createFromInputFallback=w("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(a){a._d=new Date(a._i+(a._useUTC?" UTC":""))}),T("Y",0,0,function(){var a=this.year();return 9999>=a?""+a:"+"+a}),T(0,["YY",2],0,function(){return this.year()%100}),T(0,["YYYY",4],0,"year"),T(0,["YYYYY",5],0,"year"),T(0,["YYYYYY",6,!0],0,"year"),L("year","y"),Y("Y",wd),Y("YY",pd,ld),Y("YYYY",td,nd),Y("YYYYY",ud,od),Y("YYYYYY",ud,od),aa(["YYYYY","YYYYYY"],Dd),aa("YYYY",function(a,b){b[Dd]=2===a.length?c.parseTwoDigitYear(a):t(a)}),aa("YY",function(a,b){b[Dd]=c.parseTwoDigitYear(a)}),aa("Y",function(a,b){b[Dd]=parseInt(a,10)}),c.parseTwoDigitYear=function(a){return t(a)+(t(a)>68?1900:2e3)};var Xd=O("FullYear",!1);c.ISO_8601=function(){};var Yd=w("moment().min is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var a=La.apply(null,arguments);return this.isValid()&&a.isValid()?this>a?this:a:n()}),Zd=w("moment().max is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var a=La.apply(null,arguments);return this.isValid()&&a.isValid()?a>this?this:a:n()}),$d=function(){return Date.now?Date.now():+new Date};Ra("Z",":"),Ra("ZZ",""),Y("Z",yd),Y("ZZ",yd),aa(["Z","ZZ"],function(a,b,c){c._useUTC=!0,c._tzm=Sa(yd,a)});var _d=/([\+\-]|\d\d)/gi;c.updateOffset=function(){};var ae=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/,be=/^(-)?P(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)W)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?$/;eb.fn=Pa.prototype;var ce=jb(1,"add"),de=jb(-1,"subtract");c.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var ee=w("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(a){return void 0===a?this.localeData():this.locale(a)});T(0,["gg",2],0,function(){return this.weekYear()%100}),T(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Qb("gggg","weekYear"),Qb("ggggg","weekYear"),Qb("GGGG","isoWeekYear"),Qb("GGGGG","isoWeekYear"),L("weekYear","gg"),L("isoWeekYear","GG"),Y("G",wd),Y("g",wd),Y("GG",pd,ld),Y("gg",pd,ld),Y("GGGG",td,nd),Y("gggg",td,nd),Y("GGGGG",ud,od),Y("ggggg",ud,od),ba(["gggg","ggggg","GGGG","GGGGG"],function(a,b,c,d){b[d.substr(0,2)]=t(a)}),ba(["gg","GG"],function(a,b,d,e){b[e]=c.parseTwoDigitYear(a)}),T("Q",0,"Qo","quarter"),L("quarter","Q"),Y("Q",kd),aa("Q",function(a,b){b[Ed]=3*(t(a)-1)}),T("w",["ww",2],"wo","week"),T("W",["WW",2],"Wo","isoWeek"),L("week","w"),L("isoWeek","W"),Y("w",pd),Y("ww",pd,ld),Y("W",pd),Y("WW",pd,ld),ba(["w","ww","W","WW"],function(a,b,c,d){b[d.substr(0,1)]=t(a)});var fe={dow:0,doy:6};T("D",["DD",2],"Do","date"),L("date","D"),Y("D",pd),Y("DD",pd,ld),Y("Do",function(a,b){return a?b._ordinalParse:b._ordinalParseLenient}),aa(["D","DD"],Fd),aa("Do",function(a,b){b[Fd]=t(a.match(pd)[0],10)});var ge=O("Date",!0);T("d",0,"do","day"),T("dd",0,0,function(a){return this.localeData().weekdaysMin(this,a)}),T("ddd",0,0,function(a){return this.localeData().weekdaysShort(this,a)}),T("dddd",0,0,function(a){return this.localeData().weekdays(this,a)}),T("e",0,0,"weekday"),T("E",0,0,"isoWeekday"),L("day","d"),L("weekday","e"),L("isoWeekday","E"),Y("d",pd),Y("e",pd),Y("E",pd),Y("dd",Ad),Y("ddd",Ad),Y("dddd",Ad),ba(["dd","ddd","dddd"],function(a,b,c,d){var e=c._locale.weekdaysParse(a,d,c._strict);null!=e?b.d=e:l(c).invalidWeekday=a}),ba(["d","e","E"],function(a,b,c,d){b[d]=t(a)});var he="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ie="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),je="Su_Mo_Tu_We_Th_Fr_Sa".split("_");T("DDD",["DDDD",3],"DDDo","dayOfYear"),L("dayOfYear","DDD"),Y("DDD",sd),Y("DDDD",md),aa(["DDD","DDDD"],function(a,b,c){c._dayOfYear=t(a)}),T("H",["HH",2],0,"hour"),T("h",["hh",2],0,kc),T("hmm",0,0,function(){return""+kc.apply(this)+S(this.minutes(),2)}),T("hmmss",0,0,function(){return""+kc.apply(this)+S(this.minutes(),2)+S(this.seconds(),2)}),T("Hmm",0,0,function(){return""+this.hours()+S(this.minutes(),2)}),T("Hmmss",0,0,function(){return""+this.hours()+S(this.minutes(),2)+S(this.seconds(),2)}),lc("a",!0),lc("A",!1),L("hour","h"),Y("a",mc),Y("A",mc),Y("H",pd),Y("h",pd),Y("HH",pd,ld),Y("hh",pd,ld),Y("hmm",qd),Y("hmmss",rd),Y("Hmm",qd),Y("Hmmss",rd),aa(["H","HH"],Gd),aa(["a","A"],function(a,b,c){c._isPm=c._locale.isPM(a),c._meridiem=a}),aa(["h","hh"],function(a,b,c){b[Gd]=t(a),l(c).bigHour=!0}),aa("hmm",function(a,b,c){var d=a.length-2;b[Gd]=t(a.substr(0,d)),b[Hd]=t(a.substr(d)),l(c).bigHour=!0}),aa("hmmss",function(a,b,c){var d=a.length-4,e=a.length-2;b[Gd]=t(a.substr(0,d)),b[Hd]=t(a.substr(d,2)),b[Id]=t(a.substr(e)),l(c).bigHour=!0}),aa("Hmm",function(a,b,c){var d=a.length-2;b[Gd]=t(a.substr(0,d)),b[Hd]=t(a.substr(d))}),aa("Hmmss",function(a,b,c){var d=a.length-4,e=a.length-2;b[Gd]=t(a.substr(0,d)),b[Hd]=t(a.substr(d,2)),b[Id]=t(a.substr(e))});var ke=/[ap]\.?m?\.?/i,le=O("Hours",!0);T("m",["mm",2],0,"minute"),L("minute","m"),Y("m",pd),Y("mm",pd,ld),aa(["m","mm"],Hd);var me=O("Minutes",!1);T("s",["ss",2],0,"second"),L("second","s"),Y("s",pd),Y("ss",pd,ld),aa(["s","ss"],Id);var ne=O("Seconds",!1);T("S",0,0,function(){return~~(this.millisecond()/100)}),T(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),T(0,["SSS",3],0,"millisecond"),T(0,["SSSS",4],0,function(){return 10*this.millisecond()}),T(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),T(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),T(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),T(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),T(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),L("millisecond","ms"),Y("S",sd,kd),Y("SS",sd,ld),Y("SSS",sd,md);var oe;for(oe="SSSS";oe.length<=9;oe+="S")Y(oe,vd);for(oe="S";oe.length<=9;oe+="S")aa(oe,pc);var pe=O("Milliseconds",!1);T("z",0,0,"zoneAbbr"),T("zz",0,0,"zoneName");var qe=q.prototype;qe.add=ce,qe.calendar=lb,qe.clone=mb,qe.diff=tb,qe.endOf=Fb,qe.format=xb,qe.from=yb,qe.fromNow=zb,qe.to=Ab,qe.toNow=Bb,qe.get=R,qe.invalidAt=Ob,qe.isAfter=nb,qe.isBefore=ob,qe.isBetween=pb,qe.isSame=qb,qe.isSameOrAfter=rb,qe.isSameOrBefore=sb,qe.isValid=Mb,qe.lang=ee,qe.locale=Cb,qe.localeData=Db,qe.max=Zd,qe.min=Yd,qe.parsingFlags=Nb,qe.set=R,qe.startOf=Eb,qe.subtract=de,qe.toArray=Jb,qe.toObject=Kb,qe.toDate=Ib,qe.toISOString=wb,qe.toJSON=Lb,qe.toString=vb,qe.unix=Hb,qe.valueOf=Gb,qe.creationData=Pb,qe.year=Xd,qe.isLeapYear=ua,qe.weekYear=Rb,qe.isoWeekYear=Sb,qe.quarter=qe.quarters=Xb,qe.month=ia,qe.daysInMonth=ja,qe.week=qe.weeks=_b,qe.isoWeek=qe.isoWeeks=ac,qe.weeksInYear=Ub,qe.isoWeeksInYear=Tb,qe.date=ge,qe.day=qe.days=gc,qe.weekday=hc,qe.isoWeekday=ic,qe.dayOfYear=jc,qe.hour=qe.hours=le,qe.minute=qe.minutes=me,qe.second=qe.seconds=ne,qe.millisecond=qe.milliseconds=pe,qe.utcOffset=Va,qe.utc=Xa,qe.local=Ya,qe.parseZone=Za,qe.hasAlignedHourOffset=$a,qe.isDST=_a,qe.isDSTShifted=ab,qe.isLocal=bb,qe.isUtcOffset=cb,qe.isUtc=db,qe.isUTC=db,qe.zoneAbbr=qc,qe.zoneName=rc,qe.dates=w("dates accessor is deprecated. Use date instead.",ge),qe.months=w("months accessor is deprecated. Use month instead",ia),qe.years=w("years accessor is deprecated. Use year instead",Xd),qe.zone=w("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",Wa);var re=qe,se={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},te={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},ue="Invalid date",ve="%d",we=/\d{1,2}/,xe={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ye=C.prototype;ye._calendar=se,ye.calendar=uc,ye._longDateFormat=te,ye.longDateFormat=vc,ye._invalidDate=ue,ye.invalidDate=wc,ye._ordinal=ve,ye.ordinal=xc,ye._ordinalParse=we,ye.preparse=yc,ye.postformat=yc,ye._relativeTime=xe,ye.relativeTime=zc,ye.pastFuture=Ac,ye.set=A,ye.months=ea,ye._months=Nd,ye.monthsShort=fa,ye._monthsShort=Od,ye.monthsParse=ga,ye._monthsRegex=Qd,ye.monthsRegex=la,ye._monthsShortRegex=Pd,ye.monthsShortRegex=ka,ye.week=Yb,ye._week=fe,ye.firstDayOfYear=$b,ye.firstDayOfWeek=Zb,ye.weekdays=cc,ye._weekdays=he,ye.weekdaysMin=ec,ye._weekdaysMin=je,ye.weekdaysShort=dc,ye._weekdaysShort=ie,ye.weekdaysParse=fc,ye.isPM=nc,ye._meridiemParse=ke,ye.meridiem=oc,G("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(a){var b=a%10,c=1===t(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+c}}),c.lang=w("moment.lang is deprecated. Use moment.locale instead.",G),c.langData=w("moment.langData is deprecated. Use moment.localeData instead.",J);var ze=Math.abs,Ae=Sc("ms"),Be=Sc("s"),Ce=Sc("m"),De=Sc("h"),Ee=Sc("d"),Fe=Sc("w"),Ge=Sc("M"),He=Sc("y"),Ie=Uc("milliseconds"),Je=Uc("seconds"),Ke=Uc("minutes"),Le=Uc("hours"),Me=Uc("days"),Ne=Uc("months"),Oe=Uc("years"),Pe=Math.round,Qe={s:45,m:45,h:22,d:26,M:11},Re=Math.abs,Se=Pa.prototype;Se.abs=Ic,Se.add=Kc,Se.subtract=Lc,Se.as=Qc,Se.asMilliseconds=Ae,Se.asSeconds=Be,Se.asMinutes=Ce,Se.asHours=De,Se.asDays=Ee,Se.asWeeks=Fe,Se.asMonths=Ge,Se.asYears=He,Se.valueOf=Rc,Se._bubble=Nc,Se.get=Tc,Se.milliseconds=Ie,Se.seconds=Je,Se.minutes=Ke,Se.hours=Le,Se.days=Me,Se.weeks=Vc,Se.months=Ne,Se.years=Oe,Se.humanize=Zc,Se.toISOString=$c,Se.toString=$c,Se.toJSON=$c,Se.locale=Cb,Se.localeData=Db,Se.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",$c),Se.lang=ee,T("X",0,0,"unix"),T("x",0,0,"valueOf"),Y("x",wd),Y("X",zd),aa("X",function(a,b,c){c._d=new Date(1e3*parseFloat(a,10))}),aa("x",function(a,b,c){c._d=new Date(t(a))}),c.version="2.12.0",d(La),c.fn=re,c.min=Na,c.max=Oa,c.now=$d,c.utc=j,c.unix=sc,c.months=Dc,c.isDate=f,c.locale=G,c.invalid=n,c.duration=eb,c.isMoment=r,c.weekdays=Fc,c.parseZone=tc,c.localeData=J,c.isDuration=Qa,c.monthsShort=Ec,c.weekdaysMin=Hc,c.defineLocale=H,c.updateLocale=I,c.locales=K,c.weekdaysShort=Gc,c.normalizeUnits=M,c.relativeTimeThreshold=Yc,c.prototype=re;var Te=c;return Te})},{}],144:[function(a,b,c){"use strict";b.exports=a("react/lib/ReactDOM")},{"react/lib/ReactDOM":266}],145:[function(a,b,c){(function(c){function d(a){delete a.ref}var e=a("react"),f=a("react-dom"),g=a("exenv"),h=e.createFactory(a("./ModalPortal")),i=a("../helpers/ariaAppHider"),j=a("element-class"),k=a("react-dom").unstable_renderSubtreeIntoContainer,l=g.canUseDOM?window.HTMLElement:{};b.exports=e.createClass({displayName:"Modal",statics:{setAppElement:i.setElement,injectCSS:function(){"production"!==c.env.NODE_ENV&&console.warn("React-Modal: injectCSS has been deprecated and no longer has any effect. It will be removed in a later version")}},propTypes:{isOpen:e.PropTypes.bool.isRequired,style:e.PropTypes.shape({content:e.PropTypes.object,overlay:e.PropTypes.object}),appElement:e.PropTypes.instanceOf(l),onRequestClose:e.PropTypes.func,closeTimeoutMS:e.PropTypes.number,ariaHideApp:e.PropTypes.bool},getDefaultProps:function(){return{isOpen:!1,ariaHideApp:!0,closeTimeoutMS:0}},componentDidMount:function(){this.node=document.createElement("div"),this.node.className="ReactModalPortal",document.body.appendChild(this.node),this.renderPortal(this.props)},componentWillReceiveProps:function(a){this.renderPortal(a)},componentWillUnmount:function(){f.unmountComponentAtNode(this.node),document.body.removeChild(this.node)},renderPortal:function(a){a.isOpen?j(document.body).add("ReactModal__Body--open"):j(document.body).remove("ReactModal__Body--open"),a.ariaHideApp&&i.toggle(a.isOpen,a.appElement),d(a),this.portal=k(this,h(a),this.node)},render:function(){return e.DOM.noscript()}})}).call(this,a("_process"))},{"../helpers/ariaAppHider":147,"./ModalPortal":146,_process:111,"element-class":152,exenv:153,react:387,"react-dom":144}],146:[function(a,b,c){function d(a){a.stopPropagation()}var e=a("react"),f=e.DOM.div,g=a("../helpers/focusManager"),h=a("../helpers/scopeTab"),i=a("lodash.assign"),j={overlay:{base:"ReactModal__Overlay",afterOpen:"ReactModal__Overlay--after-open",beforeClose:"ReactModal__Overlay--before-close"},content:{base:"ReactModal__Content",afterOpen:"ReactModal__Content--after-open",beforeClose:"ReactModal__Content--before-close"}},k={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}};b.exports=e.createClass({displayName:"ModalPortal",getDefaultProps:function(){return{style:{overlay:{},content:{}}}},getInitialState:function(){return{afterOpen:!1,beforeClose:!1}},componentDidMount:function(){this.props.isOpen&&(this.setFocusAfterRender(!0),this.open())},componentWillUnmount:function(){clearTimeout(this.closeTimer)},componentWillReceiveProps:function(a){!this.props.isOpen&&a.isOpen?(this.setFocusAfterRender(!0),this.open()):this.props.isOpen&&!a.isOpen&&this.close()},componentDidUpdate:function(){this.focusAfterRender&&(this.focusContent(),this.setFocusAfterRender(!1))},setFocusAfterRender:function(a){this.focusAfterRender=a},open:function(){g.setupScopedFocus(this.node),g.markForFocusLater(),this.setState({isOpen:!0},function(){this.setState({afterOpen:!0})}.bind(this))},close:function(){this.ownerHandlesClose()&&(this.props.closeTimeoutMS>0?this.closeWithTimeout():this.closeWithoutTimeout())},focusContent:function(){this.refs.content.focus()},closeWithTimeout:function(){this.setState({beforeClose:!0},function(){this.closeTimer=setTimeout(this.closeWithoutTimeout,this.props.closeTimeoutMS);
15
- }.bind(this))},closeWithoutTimeout:function(){this.setState({afterOpen:!1,beforeClose:!1},this.afterClose)},afterClose:function(){g.returnFocus(),g.teardownScopedFocus()},handleKeyDown:function(a){9==a.keyCode&&h(this.refs.content,a),27==a.keyCode&&this.requestClose()},handleOverlayClick:function(){this.ownerHandlesClose()?this.requestClose():this.focusContent()},requestClose:function(){this.ownerHandlesClose()&&this.props.onRequestClose()},ownerHandlesClose:function(){return this.props.onRequestClose},shouldBeClosed:function(){return!this.props.isOpen&&!this.state.beforeClose},buildClassName:function(a,b){var c=j[a].base;return this.state.afterOpen&&(c+=" "+j[a].afterOpen),this.state.beforeClose&&(c+=" "+j[a].beforeClose),b?c+" "+b:c},render:function(){return this.shouldBeClosed()?f():f({ref:"overlay",className:this.buildClassName("overlay",this.props.overlayClassName),style:i({},k.overlay,this.props.style.overlay||{}),onClick:this.handleOverlayClick},f({ref:"content",style:i({},k.content,this.props.style.content||{}),className:this.buildClassName("content",this.props.className),tabIndex:"-1",onClick:d,onKeyDown:this.handleKeyDown},this.props.children))}})},{"../helpers/focusManager":148,"../helpers/scopeTab":149,"lodash.assign":154,react:387}],147:[function(a,b,c){function d(a){if("string"==typeof a){var b=document.querySelectorAll(a);a="length"in b?b[0]:b}j=a||j}function e(a){h(a),(a||j).setAttribute("aria-hidden","true")}function f(a){h(a),(a||j).removeAttribute("aria-hidden")}function g(a,b){a?e(b):f(b)}function h(a){if(!a&&!j)throw new Error("react-modal: You must set an element with `Modal.setAppElement(el)` to make this accessible")}function i(){j=document.body}var j="undefined"!=typeof document?document.body:null;c.toggle=g,c.setElement=d,c.show=f,c.hide=e,c.resetForTesting=i},{}],148:[function(a,b,c){function d(a){i=!0}function e(a){if(i){if(i=!1,!g)return;setTimeout(function(){if(!g.contains(document.activeElement)){var a=f(g)[0]||g;a.focus()}},0)}}var f=a("../helpers/tabbable"),g=null,h=null,i=!1;c.markForFocusLater=function(){h=document.activeElement},c.returnFocus=function(){try{h.focus()}catch(a){console.warn("You tried to return focus to "+h+" but it is not in the DOM anymore")}h=null},c.setupScopedFocus=function(a){g=a,window.addEventListener?(window.addEventListener("blur",d,!1),document.addEventListener("focus",e,!0)):(window.attachEvent("onBlur",d),document.attachEvent("onFocus",e))},c.teardownScopedFocus=function(){g=null,window.addEventListener?(window.removeEventListener("blur",d),document.removeEventListener("focus",e)):(window.detachEvent("onBlur",d),document.detachEvent("onFocus",e))}},{"../helpers/tabbable":150}],149:[function(a,b,c){var d=a("../helpers/tabbable");b.exports=function(a,b){var c=d(a),e=c[b.shiftKey?0:c.length-1],f=e===document.activeElement||a===document.activeElement;if(f){b.preventDefault();var g=c[b.shiftKey?c.length-1:0];g.focus()}}},{"../helpers/tabbable":150}],150:[function(a,b,c){function d(a,b){var c=a.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(c)?!a.disabled:"a"===c?a.href||b:b)&&f(a)}function e(a){return a.offsetWidth<=0&&a.offsetHeight<=0||"none"===a.style.display}function f(a){for(;a&&a!==document.body;){if(e(a))return!1;a=a.parentNode}return!0}function g(a){var b=a.getAttribute("tabindex");null===b&&(b=void 0);var c=isNaN(b);return(c||b>=0)&&d(a,!c)}function h(a){return[].slice.call(a.querySelectorAll("*"),0).filter(function(a){return g(a)})}b.exports=h},{}],151:[function(a,b,c){b.exports=a("./components/Modal")},{"./components/Modal":145}],152:[function(a,b,c){function d(a,b){if(a.indexOf)return a.indexOf(b);for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1}function e(a){if(!(this instanceof e))return new e(a);a||(a={}),a.nodeType&&(a={el:a}),this.opts=a,this.el=a.el||document.body,"object"!=typeof this.el&&(this.el=document.querySelector(this.el))}b.exports=function(a){return new e(a)},e.prototype.add=function(a){var b=this.el;if(b){if(""===b.className)return b.className=a;var c=b.className.split(" ");return d(c,a)>-1?c:(c.push(a),b.className=c.join(" "),c)}},e.prototype.remove=function(a){var b=this.el;if(b&&""!==b.className){var c=b.className.split(" "),e=d(c,a);return e>-1&&c.splice(e,1),b.className=c.join(" "),c}},e.prototype.has=function(a){var b=this.el;if(b){var c=b.className.split(" ");return d(c,a)>-1}},e.prototype.toggle=function(a){var b=this.el;b&&(this.has(a)?this.remove(a):this.add(a))}},{}],153:[function(a,b,c){!function(){"use strict";var a=!("undefined"==typeof window||!window.document||!window.document.createElement),c={canUseDOM:a,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:a&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:a&&!!window.screen};"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return c}):"undefined"!=typeof b&&b.exports?b.exports=c:window.ExecutionEnvironment=c}()},{}],154:[function(a,b,c){function d(a,b,c){for(var d=-1,e=g(b),f=e.length;++d<f;){var h=e[d],i=a[h],j=c(i,b[h],h,a,b);(j===j?j===i:i!==i)&&(void 0!==i||h in a)||(a[h]=j)}return a}var e=a("lodash._baseassign"),f=a("lodash._createassigner"),g=a("lodash.keys"),h=f(function(a,b,c){return c?d(a,b,c):e(a,b)});b.exports=h},{"lodash._baseassign":155,"lodash._createassigner":157,"lodash.keys":161}],155:[function(a,b,c){function d(a,b){return null==b?a:e(b,f(b),a)}var e=a("lodash._basecopy"),f=a("lodash.keys");b.exports=d},{"lodash._basecopy":156,"lodash.keys":161}],156:[function(a,b,c){function d(a,b,c){c||(c={});for(var d=-1,e=b.length;++d<e;){var f=b[d];c[f]=a[f]}return c}b.exports=d},{}],157:[function(a,b,c){function d(a){return g(function(b,c){var d=-1,g=null==b?0:c.length,h=g>2?c[g-2]:void 0,i=g>2?c[2]:void 0,j=g>1?c[g-1]:void 0;for("function"==typeof h?(h=e(h,j,5),g-=2):(h="function"==typeof j?j:void 0,g-=h?1:0),i&&f(c[0],c[1],i)&&(h=3>g?void 0:h,g=1);++d<g;){var k=c[d];k&&a(b,k,h)}return b})}var e=a("lodash._bindcallback"),f=a("lodash._isiterateecall"),g=a("lodash.restparam");b.exports=d},{"lodash._bindcallback":158,"lodash._isiterateecall":159,"lodash.restparam":160}],158:[function(a,b,c){function d(a,b,c){if("function"!=typeof a)return e;if(void 0===b)return a;switch(c){case 1:return function(c){return a.call(b,c)};case 3:return function(c,d,e){return a.call(b,c,d,e)};case 4:return function(c,d,e,f){return a.call(b,c,d,e,f)};case 5:return function(c,d,e,f,g){return a.call(b,c,d,e,f,g)}}return function(){return a.apply(b,arguments)}}function e(a){return a}b.exports=d},{}],159:[function(a,b,c){function d(a){return function(b){return null==b?void 0:b[a]}}function e(a){return null!=a&&h(l(a))}function f(a,b){return a="number"==typeof a||j.test(a)?+a:-1,b=null==b?k:b,a>-1&&a%1==0&&b>a}function g(a,b,c){if(!i(c))return!1;var d=typeof b;if("number"==d?e(c)&&f(b,c.length):"string"==d&&b in c){var g=c[b];return a===a?a===g:g!==g}return!1}function h(a){return"number"==typeof a&&a>-1&&a%1==0&&k>=a}function i(a){var b=typeof a;return!!a&&("object"==b||"function"==b)}var j=/^\d+$/,k=9007199254740991,l=d("length");b.exports=g},{}],160:[function(a,b,c){function d(a,b){if("function"!=typeof a)throw new TypeError(e);return b=f(void 0===b?a.length-1:+b||0,0),function(){for(var c=arguments,d=-1,e=f(c.length-b,0),g=Array(e);++d<e;)g[d]=c[b+d];switch(b){case 0:return a.call(this,g);case 1:return a.call(this,c[0],g);case 2:return a.call(this,c[0],c[1],g)}var h=Array(b+1);for(d=-1;++d<b;)h[d]=c[d];return h[b]=g,a.apply(this,h)}}var e="Expected a function",f=Math.max;b.exports=d},{}],161:[function(a,b,c){function d(a){return function(b){return null==b?void 0:b[a]}}function e(a){return null!=a&&g(s(a))}function f(a,b){return a="number"==typeof a||n.test(a)?+a:-1,b=null==b?r:b,a>-1&&a%1==0&&b>a}function g(a){return"number"==typeof a&&a>-1&&a%1==0&&r>=a}function h(a){for(var b=j(a),c=b.length,d=c&&a.length,e=!!d&&g(d)&&(m(a)||l(a)),h=-1,i=[];++h<c;){var k=b[h];(e&&f(k,d)||p.call(a,k))&&i.push(k)}return i}function i(a){var b=typeof a;return!!a&&("object"==b||"function"==b)}function j(a){if(null==a)return[];i(a)||(a=Object(a));var b=a.length;b=b&&g(b)&&(m(a)||l(a))&&b||0;for(var c=a.constructor,d=-1,e="function"==typeof c&&c.prototype===a,h=Array(b),j=b>0;++d<b;)h[d]=d+"";for(var k in a)j&&f(k,b)||"constructor"==k&&(e||!p.call(a,k))||h.push(k);return h}var k=a("lodash._getnative"),l=a("lodash.isarguments"),m=a("lodash.isarray"),n=/^\d+$/,o=Object.prototype,p=o.hasOwnProperty,q=k(Object,"keys"),r=9007199254740991,s=d("length"),t=q?function(a){var b=null==a?void 0:a.constructor;return"function"==typeof b&&b.prototype===a||"function"!=typeof a&&e(a)?h(a):i(a)?q(a):[]}:h;b.exports=t},{"lodash._getnative":162,"lodash.isarguments":163,"lodash.isarray":164}],162:[function(a,b,c){function d(a){return!!a&&"object"==typeof a}function e(a,b){var c=null==a?void 0:a[b];return h(c)?c:void 0}function f(a){return g(a)&&n.call(a)==i}function g(a){var b=typeof a;return!!a&&("object"==b||"function"==b)}function h(a){return null==a?!1:f(a)?o.test(l.call(a)):d(a)&&j.test(a)}var i="[object Function]",j=/^\[object .+?Constructor\]$/,k=Object.prototype,l=Function.prototype.toString,m=k.hasOwnProperty,n=k.toString,o=RegExp("^"+l.call(m).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");b.exports=e},{}],163:[function(a,b,c){function d(a){return function(b){return null==b?void 0:b[a]}}function e(a){return g(a)&&q.call(a,"callee")&&(!s.call(a,"callee")||r.call(a)==m)}function f(a){return null!=a&&!("function"==typeof a&&h(a))&&i(t(a))}function g(a){return k(a)&&f(a)}function h(a){var b=j(a)?r.call(a):"";return b==n||b==o}function i(a){return"number"==typeof a&&a>-1&&a%1==0&&l>=a}function j(a){var b=typeof a;return!!a&&("object"==b||"function"==b)}function k(a){return!!a&&"object"==typeof a}var l=9007199254740991,m="[object Arguments]",n="[object Function]",o="[object GeneratorFunction]",p=Object.prototype,q=p.hasOwnProperty,r=p.toString,s=p.propertyIsEnumerable,t=d("length");b.exports=e},{}],164:[function(a,b,c){function d(a){return!!a&&"object"==typeof a}function e(a,b){var c=null==a?void 0:a[b];return i(c)?c:void 0}function f(a){return"number"==typeof a&&a>-1&&a%1==0&&s>=a}function g(a){return h(a)&&p.call(a)==k}function h(a){var b=typeof a;return!!a&&("object"==b||"function"==b)}function i(a){return null==a?!1:g(a)?q.test(n.call(a)):d(a)&&l.test(a)}var j="[object Array]",k="[object Function]",l=/^\[object .+?Constructor\]$/,m=Object.prototype,n=Function.prototype.toString,o=m.hasOwnProperty,p=m.toString,q=RegExp("^"+n.call(o).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),r=e(Array,"isArray"),s=9007199254740991,t=r||function(a){return d(a)&&f(a.length)&&p.call(a)==j};b.exports=t},{}],165:[function(a,b,c){b.exports=function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={exports:{},id:d,loaded:!1};return a[d].call(e.exports,e,e.exports,b),e.loaded=!0,e.exports}var c={};return b.m=a,b.c=c,b.p="",b(0)}([function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){var c={};for(var d in a)b.indexOf(d)>=0||Object.prototype.hasOwnProperty.call(a,d)&&(c[d]=a[d]);return c}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function i(a,b){return a.classList?a.classList.add(b):void(a.className.search(new RegExp("\\b"+b+"\\b"))||(a.className=" "+b))}function j(a,b){if(a.className){if(a.classList)return a.classList.remove(b);a.className=a.className.replace(new RegExp("\\b"+b+"\\b","g"),"")}}var k=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},l=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}();Object.defineProperty(b,"__esModule",{value:!0}),b.NumericInput=void 0;var m=c(1),n=d(m),o=n["default"].PropTypes,p=38,q=40,r=b.NumericInput=function(a){function b(a){f(this,b);var c=g(this,Object.getPrototypeOf(b).call(this,a));return c._timer=null,c._valid=void 0,c.state={selectionStart:null,selectionEnd:null,value:"value"in a?a.value:a.defaultValue,btnDownHover:!1,btnDownActive:!1,btnUpHover:!1,btnUpActive:!1,inputFocus:!1},c.stop=c.stop.bind(c),c}return h(b,a),l(b,[{key:"componentWillReceiveProps",value:function(a){var b=String(a.value||0===a.value?a.value:"").replace(/^\s*|\s*$/,"");this.setState({value:"value"in a&&""!==b?this._parse(b):null})}},{key:"componentDidUpdate",value:function(a,b){b.value!=this.state.value&&this._invokeEventCallback("onChange",this.state.value,this.refs.input.value),this.state.inputFocus&&!b.inputFocus&&(this.refs.input.focus(),(this.state.selectionStart||0===this.state.selectionStart)&&(this.refs.input.selectionStart=this.state.selectionStart),(this.state.selectionEnd||0===this.state.selectionEnd)&&(this.refs.input.selectionEnd=this.state.selectionEnd)),this.state.inputFocus||document.activeElement!==this.refs.input||(this.state.inputFocus=!0),this.checkValidity()}},{key:"componentWillUnmount",value:function(){this.stop()}},{key:"componentDidMount",value:function(){var a=this;this.refs.input.getValueAsNumber=function(){return a.state.value||0},this.refs.input.setValue=function(b){a.setState({value:a._parse(b)})},this.checkValidity()}},{key:"checkValidity",value:function(){var a=void 0,b="",c=!!this.refs.input.checkValidity,d=!(!this.props.noValidate||"false"==this.props.noValidate);this.refs.input.noValidate=d,a=d||!c,a?b="":(""===this.refs.input.pattern&&(this.refs.input.pattern=this.props.required?".+":".*"),c&&(this.refs.input.checkValidity(),a=this.refs.input.validity.valid,a||(b=this.refs.input.validationMessage)),a&&c&&this.props.maxLength&&this.refs.input.value.length>this.props.maxLength&&(b="This value is too long")),b=b||(a?"":this.refs.input.validationMessage||"Unknown Error");var e=this._valid!==b;this._valid=b,b?(i(this.refs.wrapper,"has-error"),e&&this._invokeEventCallback("onInvalid",b,this.state.value,this.refs.input.value)):(j(this.refs.wrapper,"has-error"),e&&this._invokeEventCallback("onValid",this.state.value,this.refs.input.value))}},{key:"_toNumber",value:function(a){var b=parseFloat(a),c=Math.pow(10,this.props.precision);return!isNaN(b)&&isFinite(b)||(b=0),b=Math.min(Math.max(b,this.props.min),this.props.max),b=Math.round(b*c)/c}},{key:"_parse",value:function(a){return"function"==typeof this.props.parse?parseFloat(this.props.parse(a)):parseFloat(a)}},{key:"_format",value:function(a){var b=this._toNumber(a).toFixed(this.props.precision);return this.props.format?this.props.format(b):b}},{key:"_step",value:function(a,b){var c=this._toNumber((this.state.value||0)+this.props.step*a);c!==this.state.value&&this.setState({value:c},b)}},{key:"_onChange",value:function(a){this.setState({value:this._parse(a.target.value)})}},{key:"_onKeyDown",value:function(){for(var a=arguments.length,b=Array(a),c=0;a>c;c++)b[c]=arguments[c];this._invokeEventCallback.apply(this,["onKeyDown"].concat(b));var d=b[0];d.isDefaultPrevented()||(d.keyCode===p?(d.preventDefault(),this._step(d.ctrlKey||d.metaKey?.1:d.shiftKey?10:1)):d.keyCode===q&&(d.preventDefault(),this._step(d.ctrlKey||d.metaKey?-.1:d.shiftKey?-10:-1)))}},{key:"_onSelectionChange",value:function(a){var b=this;this.setState({selectionStart:this.refs.input.selectionStart,selectionEnd:this.refs.input.selectionEnd},function(){switch(a.type){case"input":b.props.onInput&&b.props.onInput.call(b.refs.input,a);break;case"select":b.props.onSelect&&b.props.onSelect.call(b.refs.input,a);break;case"selectstart":b.props.onSelectStart&&b.props.onSelectStart.call(b.refs.input,a)}})}},{key:"stop",value:function(){this._timer&&window.clearTimeout(this._timer)}},{key:"increase",value:function(a,c){var d=this;this.stop(),this._step(1,c),(isNaN(this.state.value)||this.state.value<this.props.max)&&(this._timer=setTimeout(function(){d.increase(!0)},a?b.SPEED:b.DELAY))}},{key:"decrease",value:function(a,c){var d=this;this.stop(),this._step(-1,c),(isNaN(this.state.value)||this.state.value>this.props.min)&&(this._timer=setTimeout(function(){d.decrease(!0)},a?b.SPEED:b.DELAY))}},{key:"onMouseDown",value:function(a,b){"down"==a?this.decrease(!1,b):"up"==a&&this.increase(!1,b)}},{key:"onTouchStart",value:function(a,b){b.preventDefault(),"down"==a?this.decrease():"up"==a&&this.increase()}},{key:"_invokeEventCallback",value:function(a){if("function"==typeof this.props[a]){for(var b,c=arguments.length,d=Array(c>1?c-1:0),e=1;c>e;e++)d[e-1]=arguments[e];(b=this.props[a]).call.apply(b,[null].concat(d))}}},{key:"render",value:function(){var a=this,c=this.props,d=this.state,f={};for(var g in b.style)f[g]=Object.assign({},b.style[g],c.style?c.style[g]||{}:{});var h=this.props,i=(h.step,h.min,h.max,h.precision,h.parse,h.format,h.value,h.type,h.style,h.defaultValue,e(h,["step","min","max","precision","parse","format","value","type","style","defaultValue"])),j=c.className&&/\bform-control\b/.test(c.className),l="auto"==c.mobile?"ontouchstart"in document:c.mobile;"function"==typeof l&&(l=l.call(this)),l=!!l;var m={wrap:{style:f.wrap,className:"react-numeric-input",ref:"wrapper"},input:k({ref:"input",type:"text",style:Object.assign({},f.input,j?{}:f["input:not(.form-control)"],d.inputFocus?f["input:focus"]:{})},i),btnUp:{style:Object.assign({},f.btn,f.btnUp,c.disabled?f["btn:disabled"]:d.btnUpActive?f["btn:active"]:d.btnUpHover?f["btn:hover"]:{})},btnDown:{style:Object.assign({},f.btn,f.btnDown,c.disabled?f["btn:disabled"]:d.btnDownActive?f["btn:active"]:d.btnDownHover?f["btn:hover"]:{})}};return(d.value||0===d.value)&&(m.input.value=this._format(d.value)),j&&Object.assign(m.wrap.style,f["wrap.hasFormControl"]),l&&(Object.assign(m.input.style,f["input.mobile"]),Object.assign(m.btnUp.style,f["btnUp.mobile"]),Object.assign(m.btnDown.style,f["btnDown.mobile"])),c.disabled?Object.assign(m.input.style,f["input:disabled"]):(Object.assign(m.wrap,{onMouseUp:this.stop,onMouseLeave:this.stop}),Object.assign(m.btnUp,{onTouchStart:this.onTouchStart.bind(this,"up"),onTouchEnd:this.stop,onMouseEnter:function(){a.setState({btnUpHover:!0})},onMouseLeave:function(){a.stop(),a.setState({btnUpHover:!1,btnUpActive:!1})},onMouseUp:function(){a.setState({btnUpHover:!0,btnUpActive:!1})},onMouseDown:function(){for(var b=arguments.length,c=Array(b),d=0;b>d;d++)c[d]=arguments[d];c[0].preventDefault(),a.setState({btnUpHover:!0,btnUpActive:!0,inputFocus:!0},function(){a._invokeEventCallback.apply(a,["onFocus"].concat(c))}),a.onMouseDown("up")}}),Object.assign(m.btnDown,{onTouchStart:this.onTouchStart.bind(this,"down"),onTouchEnd:this.stop,onMouseEnter:function(){a.setState({btnDownHover:!0})},onMouseLeave:function(){a.stop(),a.setState({btnDownHover:!1,btnDownActive:!1})},onMouseUp:function(){a.setState({btnDownHover:!0,btnDownActive:!1})},onMouseDown:function(){for(var b=arguments.length,c=Array(b),d=0;b>d;d++)c[d]=arguments[d];c[0].preventDefault(),a.setState({btnDownHover:!0,btnDownActive:!0,inputFocus:!0},function(){a._invokeEventCallback.apply(a,["onFocus"].concat(c))}),a.onMouseDown("down")}}),Object.assign(m.input,{onChange:this._onChange.bind(this),onKeyDown:this._onKeyDown.bind(this),onInput:this._onSelectionChange.bind(this),onSelect:this._onSelectionChange.bind(this),onSelectStart:this._onSelectionChange.bind(this),onFocus:function(){for(var b=arguments.length,c=Array(b),d=0;b>d;d++)c[d]=arguments[d];a.setState({inputFocus:!0},function(){a._invokeEventCallback.apply(a,["onFocus"].concat(c))})},onBlur:function(){for(var b=arguments.length,c=Array(b),d=0;b>d;d++)c[d]=arguments[d];a.setState({inputFocus:!1},function(){a._invokeEventCallback.apply(a,["onBlur"].concat(c))})}})),l?n["default"].createElement("span",m.wrap,n["default"].createElement("input",m.input),n["default"].createElement("b",m.btnUp,n["default"].createElement("i",{style:f.minus}),n["default"].createElement("i",{style:f.plus})),n["default"].createElement("b",m.btnDown,n["default"].createElement("i",{style:f.minus}))):n["default"].createElement("span",m.wrap,n["default"].createElement("input",m.input),n["default"].createElement("b",m.btnUp,n["default"].createElement("i",{style:f.arrowUp})),n["default"].createElement("b",m.btnDown,n["default"].createElement("i",{style:f.arrowDown})))}}]),b}(n["default"].Component);r.propTypes={step:o.number,min:o.number,max:o.number,precision:o.number,maxLength:o.number,parse:o.func,format:o.func,className:o.string,disabled:o.bool,readOnly:o.bool,required:o.bool,noValidate:o.oneOfType([o.bool,o.string]),style:o.object,type:o.string,pattern:o.string,onFocus:o.func,onBlur:o.func,onKeyDown:o.func,onChange:o.func,onInvalid:o.func,onValid:o.func,onInput:o.func,onSelect:o.func,onSelectStart:o.func,size:o.oneOfType([o.number,o.string]),value:o.oneOfType([o.number,o.string]),defaultValue:o.oneOfType([o.number,o.string]),mobile:function(a,b){var c=a[b];return c!==!0&&c!==!1&&"auto"!==c&&"function"!=typeof c?new Error('The "mobile" prop must be true, false, "auto" or a function'):void 0}},r.defaultProps={step:1,min:Number.MIN_SAFE_INTEGER||-9007199254740991,max:Number.MAX_SAFE_INTEGER||9007199254740991,precision:0,parse:null,format:null,mobile:"auto",style:{}},r.style={wrap:{position:"relative",display:"inline-block"},"wrap.hasFormControl":{display:"block"},arrowUp:{position:"absolute",top:"50%",left:"50%",width:0,height:0,borderWidth:"0 0.6ex 0.6ex 0.6ex",borderColor:"transparent transparent rgba(0, 0, 0, 0.7)",borderStyle:"solid",margin:"-0.3ex 0 0 -0.56ex"},arrowDown:{position:"absolute",top:"50%",left:"50%",width:0,height:0,borderWidth:"0.6ex 0.6ex 0 0.6ex",borderColor:"rgba(0, 0, 0, 0.7) transparent transparent",borderStyle:"solid",margin:"-0.3ex 0 0 -0.56ex"},plus:{position:"absolute",top:"50%",left:"50%",width:2,height:10,background:"rgba(0,0,0,.7)",margin:"-5px 0 0 -1px"},minus:{position:"absolute",top:"50%",left:"50%",width:10,height:2,background:"rgba(0,0,0,.7)",margin:"-1px 0 0 -5px"},btn:{position:"absolute",right:2,width:"2.26ex",borderColor:"rgba(0,0,0,.1)",borderStyle:"solid",textAlign:"center",cursor:"default",transition:"all 0.1s",background:"rgba(0,0,0,.1)",boxShadow:"-1px -1px 3px rgba(0,0,0,.1) inset,\n 1px 1px 3px rgba(255,255,255,.7) inset"},btnUp:{top:2,bottom:"50%",borderRadius:"2px 2px 0 0",borderWidth:"1px 1px 0 1px"},"btnUp.mobile":{width:"3.3ex",bottom:2,boxShadow:"none",borderRadius:2,borderWidth:1},btnDown:{top:"50%",bottom:2,borderRadius:"0 0 2px 2px",borderWidth:"0 1px 1px 1px"},"btnDown.mobile":{width:"3.3ex",bottom:2,left:2,top:2,right:"auto",boxShadow:"none",borderRadius:2,borderWidth:1},"btn:hover":{background:"rgba(0,0,0,.2)"},"btn:active":{background:"rgba(0,0,0,.3)",boxShadow:"0 1px 3px rgba(0,0,0,.2) inset,\n -1px -1px 4px rgba(255,255,255,.5) inset"},"btn:disabled":{opacity:.5,boxShadow:"none",cursor:"not-allowed"},input:{paddingRight:"3ex",boxSizing:"border-box"},"input:not(.form-control)":{border:"1px solid #ccc",borderRadius:2,paddingLeft:4,display:"block",WebkitAppearance:"none",lineHeight:"normal"},"input.mobile":{paddingLeft:" 3.4ex",paddingRight:"3.4ex",textAlign:"center"},"input:focus":{},"input:disabled":{color:"rgba(0, 0, 0, 0.3)",textShadow:"0 1px 0 rgba(255, 255, 255, 0.8)"}},r.SPEED=50,r.DELAY=500,b["default"]=r},function(b,c){b.exports=a("react")}])},{react:387}],166:[function(a,b,c){"use strict";function d(a,b,c){function d(){return h=!0,i?void(k=[].concat(f.call(arguments))):void c.apply(this,arguments)}function e(){if(!h&&(j=!0,!i)){for(i=!0;!h&&a>g&&j;)j=!1,b.call(this,g++,e,d);return i=!1,h?void c.apply(this,k):void(g>=a&&j&&(h=!0,c()))}}var g=0,h=!1,i=!1,j=!1,k=void 0;e()}function e(a,b,c){function d(a,b,d){g||(b?(g=!0,c(b)):(f[a]=d,g=++h===e,g&&c(null,f)))}var e=a.length,f=[];if(0===e)return c(null,f);var g=!1,h=0;a.forEach(function(a,c){b(a,c,function(a,b){d(c,a,b)})})}c.__esModule=!0;var f=Array.prototype.slice;c.loopAsync=d,c.mapAsync=e},{}],167:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0;var f=a("./routerWarning"),g=e(f),h=a("./PropTypes"),i={contextTypes:{history:h.history},componentWillMount:function(){"production"!==d.env.NODE_ENV?g["default"](!1,"the `History` mixin is deprecated, please access `context.router` with your own `contextTypes`. http://tiny.cc/router-historymixin"):void 0,this.history=this.context.history}};c["default"]=i,b.exports=c["default"]}).call(this,a("_process"))},{"./PropTypes":174,"./routerWarning":197,_process:111}],168:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0;var e=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},f=a("react"),g=d(f),h=a("./Link"),i=d(h),j=g["default"].createClass({displayName:"IndexLink",render:function(){return g["default"].createElement(i["default"],e({},this.props,{onlyActiveOnIndex:!0}))}});c["default"]=j,b.exports=c["default"]},{"./Link":172,react:387}],169:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0;var f=a("react"),g=e(f),h=a("./routerWarning"),i=e(h),j=a("invariant"),k=e(j),l=a("./Redirect"),m=e(l),n=a("./PropTypes"),o=g["default"].PropTypes,p=o.string,q=o.object,r=g["default"].createClass({displayName:"IndexRedirect",statics:{createRouteFromReactElement:function(a,b){b?b.indexRoute=m["default"].createRouteFromReactElement(a):"production"!==d.env.NODE_ENV?i["default"](!1,"An <IndexRedirect> does not make sense at the root of your route config"):void 0}},propTypes:{to:p.isRequired,query:q,state:q,onEnter:n.falsy,children:n.falsy},render:function(){"production"!==d.env.NODE_ENV?k["default"](!1,"<IndexRedirect> elements are for router configuration only and should not be rendered"):k["default"](!1)}});c["default"]=r,b.exports=c["default"]}).call(this,a("_process"))},{"./PropTypes":174,"./Redirect":175,"./routerWarning":197,_process:111,invariant:221,react:387}],170:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0;var f=a("react"),g=e(f),h=a("./routerWarning"),i=e(h),j=a("invariant"),k=e(j),l=a("./RouteUtils"),m=a("./PropTypes"),n=g["default"].PropTypes.func,o=g["default"].createClass({displayName:"IndexRoute",statics:{createRouteFromReactElement:function(a,b){b?b.indexRoute=l.createRouteFromReactElement(a):"production"!==d.env.NODE_ENV?i["default"](!1,"An <IndexRoute> does not make sense at the root of your route config"):void 0}},propTypes:{path:m.falsy,component:m.component,components:m.components,getComponent:n,getComponents:n},render:function(){"production"!==d.env.NODE_ENV?k["default"](!1,"<IndexRoute> elements are for router configuration only and should not be rendered"):k["default"](!1)}});c["default"]=o,b.exports=c["default"]}).call(this,a("_process"))},{"./PropTypes":174,"./RouteUtils":178,"./routerWarning":197,_process:111,invariant:221,react:387}],171:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0;var f=a("./routerWarning"),g=e(f),h=a("react"),i=e(h),j=a("invariant"),k=e(j),l=i["default"].PropTypes.object,m={contextTypes:{history:l.isRequired,route:l},propTypes:{route:l},componentDidMount:function(){"production"!==d.env.NODE_ENV?g["default"](!1,"the `Lifecycle` mixin is deprecated, please use `context.router.setRouteLeaveHook(route, hook)`. http://tiny.cc/router-lifecyclemixin"):void 0,this.routerWillLeave?void 0:"production"!==d.env.NODE_ENV?k["default"](!1,"The Lifecycle mixin requires you to define a routerWillLeave method"):k["default"](!1);var a=this.props.route||this.context.route;a?void 0:"production"!==d.env.NODE_ENV?k["default"](!1,"The Lifecycle mixin must be used on either a) a <Route component> or b) a descendant of a <Route component> that uses the RouteContext mixin"):k["default"](!1),this._unlistenBeforeLeavingRoute=this.context.history.listenBeforeLeavingRoute(a,this.routerWillLeave)},componentWillUnmount:function(){this._unlistenBeforeLeavingRoute&&this._unlistenBeforeLeavingRoute()}};c["default"]=m,b.exports=c["default"]}).call(this,a("_process"))},{"./routerWarning":197,_process:111,invariant:221,react:387}],172:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){var c={};for(var d in a)b.indexOf(d)>=0||Object.prototype.hasOwnProperty.call(a,d)&&(c[d]=a[d]);return c}function g(a){return 0===a.button}function h(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function i(a){for(var b in a)if(a.hasOwnProperty(b))return!1;return!0}function j(a,b){var c=b.query,d=b.hash,e=b.state;return c||d||e?{pathname:a,query:c,hash:d,state:e}:a}c.__esModule=!0;var k=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},l=a("react"),m=e(l),n=a("./routerWarning"),o=e(n),p=m["default"].PropTypes,q=p.bool,r=p.object,s=p.string,t=p.func,u=p.oneOfType,v=m["default"].createClass({displayName:"Link",contextTypes:{router:r},propTypes:{to:u([s,r]).isRequired,query:r,hash:s,state:r,activeStyle:r,activeClassName:s,onlyActiveOnIndex:q.isRequired,onClick:t},getDefaultProps:function(){return{onlyActiveOnIndex:!1,className:"",style:{}}},handleClick:function(a){var b=!0;if(this.props.onClick&&this.props.onClick(a),!h(a)&&g(a)){if(a.defaultPrevented===!0&&(b=!1),this.props.target)return void(b||a.preventDefault());if(a.preventDefault(),b){var c=this.props,d=c.to,e=c.query,f=c.hash,i=c.state,k=j(d,{query:e,hash:f,state:i});this.context.router.push(k)}}},render:function(){var a=this.props,b=a.to,c=a.query,e=a.hash,g=a.state,h=a.activeClassName,l=a.activeStyle,n=a.onlyActiveOnIndex,p=f(a,["to","query","hash","state","activeClassName","activeStyle","onlyActiveOnIndex"]);"production"!==d.env.NODE_ENV?o["default"](!(c||e||g),"the `query`, `hash`, and `state` props on `<Link>` are deprecated, use `<Link to={{ pathname, query, hash, state }}/>. http://tiny.cc/router-isActivedeprecated"):void 0;var q=this.context.router;if(q){var r=j(b,{query:c,hash:e,state:g});p.href=q.createHref(r),(h||null!=l&&!i(l))&&q.isActive(r,n)&&(h&&(p.className+=""===p.className?h:" "+h),l&&(p.style=k({},p.style,l)))}return m["default"].createElement("a",k({},p,{onClick:this.handleClick}))}});c["default"]=v,b.exports=c["default"]}).call(this,a("_process"))},{"./routerWarning":197,_process:111,react:387}],173:[function(a,b,c){(function(b){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){return a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function f(a){return e(a).replace(/\/+/g,"/+")}function g(a){for(var b="",c=[],d=[],e=void 0,g=0,h=/:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)/g;e=h.exec(a);)e.index!==g&&(d.push(a.slice(g,e.index)),b+=f(a.slice(g,e.index))),e[1]?(b+="([^/?#]+)",c.push(e[1])):"**"===e[0]?(b+="([\\s\\S]*)",c.push("splat")):"*"===e[0]?(b+="([\\s\\S]*?)",c.push("splat")):"("===e[0]?b+="(?:":")"===e[0]&&(b+=")?"),d.push(e[0]),g=h.lastIndex;return g!==a.length&&(d.push(a.slice(g,a.length)),b+=f(a.slice(g,a.length))),{pattern:a,regexpSource:b,paramNames:c,tokens:d}}function h(a){return a in o||(o[a]=g(a)),o[a]}function i(a,b){"/"!==a.charAt(0)&&(a="/"+a),
16
- "/"!==b.charAt(0)&&(b="/"+b);var c=h(a),d=c.regexpSource,e=c.paramNames,f=c.tokens;d+="/*";var g="*"!==f[f.length-1];g&&(d+="([\\s\\S]*?)");var i=b.match(new RegExp("^"+d+"$","i")),j=void 0,k=void 0;if(null!=i){if(g){j=i.pop();var l=i[0].substr(0,i[0].length-j.length);if(j&&"/"!==l.charAt(l.length-1))return{remainingPathname:null,paramNames:e,paramValues:null}}else j="";k=i.slice(1).map(function(a){return null!=a?decodeURIComponent(a):a})}else j=k=null;return{remainingPathname:j,paramNames:e,paramValues:k}}function j(a){return h(a).paramNames}function k(a,b){var c=i(a,b),d=c.paramNames,e=c.paramValues;return null!=e?d.reduce(function(a,b,c){return a[b]=e[c],a},{}):null}function l(a,c){c=c||{};for(var d=h(a),e=d.tokens,f=0,g="",i=0,j=void 0,k=void 0,l=void 0,m=0,o=e.length;o>m;++m)j=e[m],"*"===j||"**"===j?(l=Array.isArray(c.splat)?c.splat[i++]:c.splat,null!=l||f>0?void 0:"production"!==b.env.NODE_ENV?n["default"](!1,'Missing splat #%s for path "%s"',i,a):n["default"](!1),null!=l&&(g+=encodeURI(l))):"("===j?f+=1:")"===j?f-=1:":"===j.charAt(0)?(k=j.substring(1),l=c[k],null!=l||f>0?void 0:"production"!==b.env.NODE_ENV?n["default"](!1,'Missing "%s" parameter for path "%s"',k,a):n["default"](!1),null!=l&&(g+=encodeURIComponent(l))):g+=j;return g.replace(/\/+/g,"/")}c.__esModule=!0,c.compilePattern=h,c.matchPattern=i,c.getParamNames=j,c.getParams=k,c.formatPattern=l;var m=a("invariant"),n=d(m),o={}}).call(this,a("_process"))},{_process:111,invariant:221}],174:[function(a,b,c){"use strict";function d(a,b,c){return a[b]?new Error("<"+c+'> should not have a "'+b+'" prop'):void 0}c.__esModule=!0,c.falsy=d;var e=a("react"),f=e.PropTypes.func,g=e.PropTypes.object,h=e.PropTypes.arrayOf,i=e.PropTypes.oneOfType,j=e.PropTypes.element,k=e.PropTypes.shape,l=e.PropTypes.string,m=k({listen:f.isRequired,pushState:f.isRequired,replaceState:f.isRequired,go:f.isRequired});c.history=m;var n=k({pathname:l.isRequired,search:l.isRequired,state:g,action:l.isRequired,key:l});c.location=n;var o=i([f,l]);c.component=o;var p=i([o,g]);c.components=p;var q=i([g,j]);c.route=q;var r=i([q,h(q)]);c.routes=r,c["default"]={falsy:d,history:m,location:n,component:o,components:p,route:q}},{react:387}],175:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0;var f=a("react"),g=e(f),h=a("invariant"),i=e(h),j=a("./RouteUtils"),k=a("./PatternUtils"),l=a("./PropTypes"),m=g["default"].PropTypes,n=m.string,o=m.object,p=g["default"].createClass({displayName:"Redirect",statics:{createRouteFromReactElement:function(a){var b=j.createRouteFromReactElement(a);return b.from&&(b.path=b.from),b.onEnter=function(a,c){var d=a.location,e=a.params,f=void 0;if("/"===b.to.charAt(0))f=k.formatPattern(b.to,e);else if(b.to){var g=a.routes.indexOf(b),h=p.getRoutePattern(a.routes,g-1),i=h.replace(/\/*$/,"/")+b.to;f=k.formatPattern(i,e)}else f=d.pathname;c({pathname:f,query:b.query||d.query,state:b.state||d.state})},b},getRoutePattern:function(a,b){for(var c="",d=b;d>=0;d--){var e=a[d],f=e.path||"";if(c=f.replace(/\/*$/,"/")+c,0===f.indexOf("/"))break}return"/"+c}},propTypes:{path:n,from:n,to:n.isRequired,query:o,state:o,onEnter:l.falsy,children:l.falsy},render:function(){"production"!==d.env.NODE_ENV?i["default"](!1,"<Redirect> elements are for router configuration only and should not be rendered"):i["default"](!1)}});c["default"]=p,b.exports=c["default"]}).call(this,a("_process"))},{"./PatternUtils":173,"./PropTypes":174,"./RouteUtils":178,_process:111,invariant:221,react:387}],176:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0;var f=a("react"),g=e(f),h=a("invariant"),i=e(h),j=a("./RouteUtils"),k=a("./PropTypes"),l=g["default"].PropTypes,m=l.string,n=l.func,o=g["default"].createClass({displayName:"Route",statics:{createRouteFromReactElement:j.createRouteFromReactElement},propTypes:{path:m,component:k.component,components:k.components,getComponent:n,getComponents:n},render:function(){"production"!==d.env.NODE_ENV?i["default"](!1,"<Route> elements are for router configuration only and should not be rendered"):i["default"](!1)}});c["default"]=o,b.exports=c["default"]}).call(this,a("_process"))},{"./PropTypes":174,"./RouteUtils":178,_process:111,invariant:221,react:387}],177:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0;var f=a("./routerWarning"),g=e(f),h=a("react"),i=e(h),j=i["default"].PropTypes.object,k={propTypes:{route:j.isRequired},childContextTypes:{route:j.isRequired},getChildContext:function(){return{route:this.props.route}},componentWillMount:function(){"production"!==d.env.NODE_ENV?g["default"](!1,"The `RouteContext` mixin is deprecated. You can provide `this.props.route` on context with your own `contextTypes`. http://tiny.cc/router-routecontextmixin"):void 0}};c["default"]=k,b.exports=c["default"]}).call(this,a("_process"))},{"./routerWarning":197,_process:111,react:387}],178:[function(a,b,c){(function(b){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){return null==a||n["default"].isValidElement(a)}function f(a){return e(a)||Array.isArray(a)&&a.every(e)}function g(a,c,d){a=a||"UnknownComponent";for(var e in c)if(c.hasOwnProperty(e)){var f=c[e](d,e,a);f instanceof Error&&("production"!==b.env.NODE_ENV?p["default"](!1,f.message):void 0)}}function h(a,b){return l({},a,b)}function i(a){var b=a.type,c=h(b.defaultProps,a.props);if(b.propTypes&&g(b.displayName||b.name,b.propTypes,c),c.children){var d=j(c.children,c);d.length&&(c.childRoutes=d),delete c.children}return c}function j(a,b){var c=[];return n["default"].Children.forEach(a,function(a){if(n["default"].isValidElement(a))if(a.type.createRouteFromReactElement){var d=a.type.createRouteFromReactElement(a,b);d&&c.push(d)}else c.push(i(a))}),c}function k(a){return f(a)?a=j(a):a&&!Array.isArray(a)&&(a=[a]),a}c.__esModule=!0;var l=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a};c.isReactChildren=f,c.createRouteFromReactElement=i,c.createRoutesFromReactChildren=j,c.createRoutes=k;var m=a("react"),n=d(m),o=a("./routerWarning"),p=d(o)}).call(this,a("_process"))},{"./routerWarning":197,_process:111,react:387}],179:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){var c={};for(var d in a)b.indexOf(d)>=0||Object.prototype.hasOwnProperty.call(a,d)&&(c[d]=a[d]);return c}function g(a){return!a||!a.__v2_compatible__}c.__esModule=!0;var h=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},i=a("history/lib/createHashHistory"),j=e(i),k=a("history/lib/useQueries"),l=e(k),m=a("react"),n=e(m),o=a("./createTransitionManager"),p=e(o),q=a("./PropTypes"),r=a("./RouterContext"),s=e(r),t=a("./RouteUtils"),u=a("./RouterUtils"),v=a("./routerWarning"),w=e(v),x=n["default"].PropTypes,y=x.func,z=x.object,A=n["default"].createClass({displayName:"Router",propTypes:{history:z,children:q.routes,routes:q.routes,render:y,createElement:y,onError:y,onUpdate:y,matchContext:z},getDefaultProps:function(){return{render:function(a){return n["default"].createElement(s["default"],a)}}},getInitialState:function(){return{location:null,routes:null,params:null,components:null}},handleError:function(a){if(!this.props.onError)throw a;this.props.onError.call(this,a)},componentWillMount:function(){var a=this,b=this.props,c=b.parseQueryString,e=b.stringifyQuery;"production"!==d.env.NODE_ENV?w["default"](!(c||e),"`parseQueryString` and `stringifyQuery` are deprecated. Please create a custom history. http://tiny.cc/router-customquerystring"):void 0;var f=this.createRouterObjects(),g=f.history,h=f.transitionManager,i=f.router;this._unlisten=h.listen(function(b,c){b?a.handleError(b):a.setState(c,a.props.onUpdate)}),this.history=g,this.router=i},createRouterObjects:function(){var a=this.props.matchContext;if(a)return a;var b=this.props.history,c=this.props,d=c.routes,e=c.children;g(b)&&(b=this.wrapDeprecatedHistory(b));var f=p["default"](b,t.createRoutes(d||e)),h=u.createRouterObject(b,f),i=u.createRoutingHistory(b,f);return{history:i,transitionManager:f,router:h}},wrapDeprecatedHistory:function(a){var b=this.props,c=b.parseQueryString,e=b.stringifyQuery,f=void 0;return a?("production"!==d.env.NODE_ENV?w["default"](!1,"It appears you have provided a deprecated history object to `<Router/>`, please use a history provided by React Router with `import { browserHistory } from 'react-router'` or `import { hashHistory } from 'react-router'`. If you are using a custom history please create it with `useRouterHistory`, see http://tiny.cc/router-usinghistory for details."):void 0,f=function(){return a}):("production"!==d.env.NODE_ENV?w["default"](!1,"`Router` no longer defaults the history prop to hash history. Please use the `hashHistory` singleton instead. http://tiny.cc/router-defaulthistory"):void 0,f=j["default"]),l["default"](f)({parseQueryString:c,stringifyQuery:e})},componentWillReceiveProps:function(a){"production"!==d.env.NODE_ENV?w["default"](a.history===this.props.history,"You cannot change <Router history>; it will be ignored"):void 0,"production"!==d.env.NODE_ENV?w["default"]((a.routes||a.children)===(this.props.routes||this.props.children),"You cannot change <Router routes>; it will be ignored"):void 0},componentWillUnmount:function(){this._unlisten&&this._unlisten()},render:function B(){var a=this.state,b=a.location,c=a.routes,d=a.params,e=a.components,g=this.props,i=g.createElement,B=g.render,j=f(g,["createElement","render"]);return null==b?null:(Object.keys(A.propTypes).forEach(function(a){return delete j[a]}),B(h({},j,{history:this.history,router:this.router,location:b,routes:c,params:d,components:e,createElement:i})))}});c["default"]=A,b.exports=c["default"]}).call(this,a("_process"))},{"./PropTypes":174,"./RouteUtils":178,"./RouterContext":180,"./RouterUtils":181,"./createTransitionManager":188,"./routerWarning":197,_process:111,"history/lib/createHashHistory":208,"history/lib/useQueries":215,react:387}],180:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0;var f=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},g=a("invariant"),h=e(g),i=a("react"),j=e(i),k=a("./deprecateObjectProperties"),l=e(k),m=a("./getRouteParams"),n=e(m),o=a("./RouteUtils"),p=a("./routerWarning"),q=e(p),r=j["default"].PropTypes,s=r.array,t=r.func,u=r.object,v=j["default"].createClass({displayName:"RouterContext",propTypes:{history:u,router:u.isRequired,location:u.isRequired,routes:s.isRequired,params:u.isRequired,components:s.isRequired,createElement:t.isRequired},getDefaultProps:function(){return{createElement:j["default"].createElement}},childContextTypes:{history:u,location:u.isRequired,router:u.isRequired},getChildContext:function(){var a=this.props,b=a.router,c=a.history,e=a.location;return b||("production"!==d.env.NODE_ENV?q["default"](!1,"`<RouterContext>` expects a `router` rather than a `history`"):void 0,b=f({},c,{setRouteLeaveHook:c.listenBeforeLeavingRoute}),delete b.listenBeforeLeavingRoute),"production"!==d.env.NODE_ENV&&(e=l["default"](e,"`context.location` is deprecated, please use a route component's `props.location` instead. http://tiny.cc/router-accessinglocation")),{history:c,location:e,router:b}},createElement:function(a,b){return null==a?null:this.props.createElement(a,b)},render:function(){var a=this,b=this.props,c=b.history,e=b.location,g=b.routes,i=b.params,k=b.components,l=null;return k&&(l=k.reduceRight(function(b,d,h){if(null==d)return b;var j=g[h],k=n["default"](j,i),l={history:c,location:e,params:i,route:j,routeParams:k,routes:g};if(o.isReactChildren(b))l.children=b;else if(b)for(var m in b)b.hasOwnProperty(m)&&(l[m]=b[m]);if("object"==typeof d){var p={};for(var q in d)d.hasOwnProperty(q)&&(p[q]=a.createElement(d[q],f({key:q},l)));return p}return a.createElement(d,l)},l)),null===l||l===!1||j["default"].isValidElement(l)?void 0:"production"!==d.env.NODE_ENV?h["default"](!1,"The root route must render a single element"):h["default"](!1),l}});c["default"]=v,b.exports=c["default"]}).call(this,a("_process"))},{"./RouteUtils":178,"./deprecateObjectProperties":189,"./getRouteParams":191,"./routerWarning":197,_process:111,invariant:221,react:387}],181:[function(a,b,c){(function(b){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){return g({},a,{setRouteLeaveHook:b.listenBeforeLeavingRoute,isActive:b.isActive})}function f(a,c){return a=g({},a,c),"production"!==b.env.NODE_ENV&&(a=i["default"](a,"`props.history` and `context.history` are deprecated. Please use `context.router`. http://tiny.cc/router-contextchanges")),a}c.__esModule=!0;var g=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a};c.createRouterObject=e,c.createRoutingHistory=f;var h=a("./deprecateObjectProperties"),i=d(h)}).call(this,a("_process"))},{"./deprecateObjectProperties":189,_process:111}],182:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0;var f=a("react"),g=e(f),h=a("./RouterContext"),i=e(h),j=a("./routerWarning"),k=e(j),l=g["default"].createClass({displayName:"RoutingContext",componentWillMount:function(){"production"!==d.env.NODE_ENV?k["default"](!1,"`RoutingContext` has been renamed to `RouterContext`. Please use `import { RouterContext } from 'react-router'`. http://tiny.cc/router-routercontext"):void 0},render:function(){return g["default"].createElement(i["default"],this.props)}});c["default"]=l,b.exports=c["default"]}).call(this,a("_process"))},{"./RouterContext":180,"./routerWarning":197,_process:111,react:387}],183:[function(a,b,c){(function(b){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){return function(c,d,e){a.apply(b,arguments),a.length<3&&e()}}function f(a){return a.reduce(function(a,b){return b.onEnter&&a.push(e(b.onEnter,b)),a},[])}function g(a,c,d){function e(a,c,d){return c?("production"!==b.env.NODE_ENV?k["default"](!1,"`replaceState(state, pathname, query) is deprecated; use `replace(location)` with a location descriptor instead. http://tiny.cc/router-isActivedeprecated"):void 0,void(h={pathname:c,query:d,state:a})):void(h=a)}var g=f(a);if(!g.length)return void d();var h=void 0;i.loopAsync(g.length,function(a,b,d){g[a](c,e,function(a){a||h?d(a,h):b()})},d)}function h(a){for(var b=0,c=a.length;c>b;++b)a[b].onLeave&&a[b].onLeave.call(a[b])}c.__esModule=!0,c.runEnterHooks=g,c.runLeaveHooks=h;var i=a("./AsyncUtils"),j=a("./routerWarning"),k=d(j)}).call(this,a("_process"))},{"./AsyncUtils":166,"./routerWarning":197,_process:111}],184:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0;var e=a("history/lib/createBrowserHistory"),f=d(e),g=a("./createRouterHistory"),h=d(g);c["default"]=h["default"](f["default"]),b.exports=c["default"]},{"./createRouterHistory":187,"history/lib/createBrowserHistory":206}],185:[function(a,b,c){"use strict";function d(a,b,c){if(!a.path)return!1;var d=f.getParamNames(a.path);return d.some(function(a){return b.params[a]!==c.params[a]})}function e(a,b){var c=a&&a.routes,e=b.routes,f=void 0,g=void 0;return c?(f=c.filter(function(c){return-1===e.indexOf(c)||d(c,a,b)}),f.reverse(),g=e.filter(function(a){return-1===c.indexOf(a)||-1!==f.indexOf(a)})):(f=[],g=e),{leaveRoutes:f,enterRoutes:g}}c.__esModule=!0;var f=a("./PatternUtils");c["default"]=e,b.exports=c["default"]},{"./PatternUtils":173}],186:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){var b=k["default"](a),c=function(){return b},d=g["default"](i["default"](c))(a);return d.__v2_compatible__=!0,d}c.__esModule=!0,c["default"]=e;var f=a("history/lib/useQueries"),g=d(f),h=a("history/lib/useBasename"),i=d(h),j=a("history/lib/createMemoryHistory"),k=d(j);b.exports=c["default"]},{"history/lib/createMemoryHistory":211,"history/lib/useBasename":214,"history/lib/useQueries":215}],187:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0;var e=a("./useRouterHistory"),f=d(e),g=!("undefined"==typeof window||!window.document||!window.document.createElement);c["default"]=function(a){var b=void 0;return g&&(b=f["default"](a)()),b},b.exports=c["default"]},{"./useRouterHistory":198}],188:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{"default":a}}function f(a){for(var b in a)if(a.hasOwnProperty(b))return!0;return!1}function g(a,b){function c(b){var c=arguments.length<=1||void 0===arguments[1]?!1:arguments[1],e=arguments.length<=2||void 0===arguments[2]?null:arguments[2],f=void 0;return c&&c!==!0||null!==e?("production"!==d.env.NODE_ENV?j["default"](!1,"`isActive(pathname, query, indexOnly) is deprecated; use `isActive(location, indexOnly)` with a location descriptor instead. http://tiny.cc/router-isActivedeprecated"):void 0,b={pathname:b,query:c},f=e||!1):(b=a.createLocation(b),f=c),p["default"](b,f,x.location,x.routes,x.params)}function e(b){return a.createLocation(b,k.REPLACE)}function g(a,c){y&&y.location===a?i(y,c):t["default"](b,a,function(b,d){b?c(b):d?i(h({},d,{location:a}),c):c()})}function i(a,b){var c=m["default"](x,a),d=c.leaveRoutes,f=c.enterRoutes;n.runLeaveHooks(d),d.forEach(u),n.runEnterHooks(f,a,function(c,d){c?b(c):d?b(null,e(d)):r["default"](a,function(c,d){c?b(c):b(null,null,x=h({},a,{components:d}))})})}function l(a){var b=arguments.length<=1||void 0===arguments[1]?!0:arguments[1];return a.__id__||b&&(a.__id__=z++)}function o(a){return a.reduce(function(a,b){return a.push.apply(a,A[l(b)]),a},[])}function q(a,c){t["default"](b,a,function(b,d){if(null==d)return void c();y=h({},d,{location:a});for(var e=o(m["default"](x,y).leaveRoutes),f=void 0,g=0,i=e.length;null==f&&i>g;++g)f=e[g](a);c(f)})}function s(){if(x.routes){for(var a=o(x.routes),b=void 0,c=0,d=a.length;"string"!=typeof b&&d>c;++c)b=a[c]();return b}}function u(a){var b=l(a,!1);b&&(delete A[b],f(A)||(B&&(B(),B=null),C&&(C(),C=null)))}function v(b,c){var e=l(b),g=A[e];if(g)-1===g.indexOf(c)&&("production"!==d.env.NODE_ENV?j["default"](!1,"adding multiple leave hooks for the same route is deprecated; manage multiple confirmations in your own code instead"):void 0,g.push(c));else{var h=!f(A);A[e]=[c],h&&(B=a.listenBefore(q),a.listenBeforeUnload&&(C=a.listenBeforeUnload(s)))}return function(){var a=A[e];if(a){var d=a.filter(function(a){return a!==c});0===d.length?u(b):A[e]=d}}}function w(b){return a.listen(function(c){x.location===c?b(null,x):g(c,function(e,f,g){e?b(e):f?a.transitionTo(f):g?b(null,g):"production"!==d.env.NODE_ENV?j["default"](!1,'Location "%s" did not match any routes',c.pathname+c.search+c.hash):void 0})})}var x={},y=void 0,z=1,A={},B=void 0,C=void 0;return{isActive:c,match:g,listenBeforeLeavingRoute:v,listen:w}}c.__esModule=!0;var h=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a};c["default"]=g;var i=a("./routerWarning"),j=e(i),k=a("history/lib/Actions"),l=a("./computeChangedRoutes"),m=e(l),n=a("./TransitionUtils"),o=a("./isActive"),p=e(o),q=a("./getComponents"),r=e(q),s=a("./matchRoutes"),t=e(s);b.exports=c["default"]}).call(this,a("_process"))},{"./TransitionUtils":183,"./computeChangedRoutes":185,"./getComponents":190,"./isActive":194,"./matchRoutes":196,"./routerWarning":197,_process:111,"history/lib/Actions":200}],189:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!i)return a;var c={},e=function(e){"function"==typeof a[e]?c[e]=function(){return"production"!==d.env.NODE_ENV?h["default"](!1,b):void 0,a[e].apply(a,arguments)}:Object.defineProperty(c,e,{configurable:!1,enumerable:!1,get:function(){return"production"!==d.env.NODE_ENV?h["default"](!1,b):void 0,a[e]}})};for(var f in a)e(f);return c}c.__esModule=!0,c["default"]=f;var g=a("./routerWarning"),h=e(g),i=!1;if("production"!==d.env.NODE_ENV)try{Object.defineProperty({},"x",{get:function(){return!0}}).x&&(i=!0)}catch(j){}b.exports=c["default"]}).call(this,a("_process"))},{"./routerWarning":197,_process:111}],190:[function(a,b,c){"use strict";function d(a,b,c){b.component||b.components?c(null,b.component||b.components):b.getComponent?b.getComponent(a,c):b.getComponents?b.getComponents(a,c):c()}function e(a,b){f.mapAsync(a.routes,function(b,c,e){d(a.location,b,e)},b)}c.__esModule=!0;var f=a("./AsyncUtils");c["default"]=e,b.exports=c["default"]},{"./AsyncUtils":166}],191:[function(a,b,c){"use strict";function d(a,b){var c={};if(!a.path)return c;var d=e.getParamNames(a.path);for(var f in b)b.hasOwnProperty(f)&&-1!==d.indexOf(f)&&(c[f]=b[f]);return c}c.__esModule=!0;var e=a("./PatternUtils");c["default"]=d,b.exports=c["default"]},{"./PatternUtils":173}],192:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0;var e=a("history/lib/createHashHistory"),f=d(e),g=a("./createRouterHistory"),h=d(g);c["default"]=h["default"](f["default"]),b.exports=c["default"]},{"./createRouterHistory":187,"history/lib/createHashHistory":208}],193:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0;var e=a("./Router"),f=d(e);c.Router=f["default"];var g=a("./Link"),h=d(g);c.Link=h["default"];var i=a("./IndexLink"),j=d(i);c.IndexLink=j["default"];var k=a("./IndexRedirect"),l=d(k);c.IndexRedirect=l["default"];var m=a("./IndexRoute"),n=d(m);c.IndexRoute=n["default"];var o=a("./Redirect"),p=d(o);c.Redirect=p["default"];var q=a("./Route"),r=d(q);c.Route=r["default"];var s=a("./History"),t=d(s);c.History=t["default"];var u=a("./Lifecycle"),v=d(u);c.Lifecycle=v["default"];var w=a("./RouteContext"),x=d(w);c.RouteContext=x["default"];var y=a("./useRoutes"),z=d(y);c.useRoutes=z["default"];var A=a("./RouteUtils");c.createRoutes=A.createRoutes;var B=a("./RouterContext"),C=d(B);c.RouterContext=C["default"];var D=a("./RoutingContext"),E=d(D);c.RoutingContext=E["default"];var F=a("./PropTypes"),G=d(F);c.PropTypes=G["default"];var H=a("./match"),I=d(H);c.match=I["default"];var J=a("./useRouterHistory"),K=d(J);c.useRouterHistory=K["default"];var L=a("./PatternUtils");c.formatPattern=L.formatPattern;var M=a("./browserHistory"),N=d(M);c.browserHistory=N["default"];var O=a("./hashHistory"),P=d(O);c.hashHistory=P["default"];var Q=a("./createMemoryHistory"),R=d(Q);c.createMemoryHistory=R["default"]},{"./History":167,"./IndexLink":168,"./IndexRedirect":169,"./IndexRoute":170,"./Lifecycle":171,"./Link":172,"./PatternUtils":173,"./PropTypes":174,"./Redirect":175,"./Route":176,"./RouteContext":177,"./RouteUtils":178,"./Router":179,"./RouterContext":180,"./RoutingContext":182,"./browserHistory":184,"./createMemoryHistory":186,"./hashHistory":192,"./match":195,"./useRouterHistory":198,"./useRoutes":199}],194:[function(a,b,c){"use strict";function d(a,b){if(a==b)return!0;if(null==a||null==b)return!1;if(Array.isArray(a))return Array.isArray(b)&&a.length===b.length&&a.every(function(a,c){return d(a,b[c])});if("object"==typeof a){for(var c in a)if(a.hasOwnProperty(c))if(void 0===a[c]){if(void 0!==b[c])return!1}else{if(!b.hasOwnProperty(c))return!1;if(!d(a[c],b[c]))return!1}return!0}return String(a)===String(b)}function e(a,b,c){return a.every(function(a,d){return String(b[d])===String(c[a])})}function f(a,b,c){for(var d=a,f=[],g=[],h=0,i=b.length;i>h;++h){var k=b[h],l=k.path||"";if("/"===l.charAt(0)&&(d=a,f=[],g=[]),null!==d){var m=j.matchPattern(l,d);d=m.remainingPathname,f=[].concat(f,m.paramNames),g=[].concat(g,m.paramValues)}if(""===d&&k.path&&e(f,g,c))return h}return null}function g(a,b,c,d){var e=f(a,b,c);return null===e?!1:d?b.slice(e+1).every(function(a){return!a.path}):!0}function h(a,b){return null==b?null==a:null==a?!0:d(a,b)}function i(a,b,c,d,e){var f=a.pathname,i=a.query;return null==c?!1:g(f,d,e,b)?h(i,c.query):!1}c.__esModule=!0,c["default"]=i;var j=a("./PatternUtils");b.exports=c["default"]},{"./PatternUtils":173}],195:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){var c={};for(var d in a)b.indexOf(d)>=0||Object.prototype.hasOwnProperty.call(a,d)&&(c[d]=a[d]);return c}function g(a,b){var c=a.history,e=a.routes,g=a.location,i=f(a,["history","routes","location"]);c||g?void 0:"production"!==d.env.NODE_ENV?j["default"](!1,"match needs a history or a location"):j["default"](!1),c=c?c:l["default"](i);var k=n["default"](c,o.createRoutes(e)),m=void 0;g?g=c.createLocation(g):m=c.listen(function(a){g=a});var q=p.createRouterObject(c,k);c=p.createRoutingHistory(c,k),k.match(g,function(a,d,e){b(a,d,e&&h({},e,{history:c,router:q,matchContext:{history:c,transitionManager:k,router:q}})),m&&m()})}c.__esModule=!0;var h=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},i=a("invariant"),j=e(i),k=a("./createMemoryHistory"),l=e(k),m=a("./createTransitionManager"),n=e(m),o=a("./RouteUtils"),p=a("./RouterUtils");c["default"]=g,b.exports=c["default"]}).call(this,a("_process"))},{"./RouteUtils":178,"./RouterUtils":181,"./createMemoryHistory":186,"./createTransitionManager":188,_process:111,invariant:221}],196:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b,c){if(a.childRoutes)return[null,a.childRoutes];if(!a.getChildRoutes)return[];var d=!0,e=void 0;return a.getChildRoutes(b,function(a,b){return b=!a&&p.createRoutes(b),d?void(e=[a,b]):void c(a,b)}),d=!1,e}function g(a,b,c){a.indexRoute?c(null,a.indexRoute):a.getIndexRoute?a.getIndexRoute(b,function(a,b){c(a,!a&&p.createRoutes(b)[0])}):a.childRoutes?!function(){var d=a.childRoutes.filter(function(a){return!a.hasOwnProperty("path")});n.loopAsync(d.length,function(a,c,e){g(d[a],b,function(b,f){if(b||f){var g=[d[a]].concat(Array.isArray(f)?f:[f]);e(b,g)}else c()})},function(a,b){c(null,b)})}():c()}function h(a,b,c){return b.reduce(function(a,b,d){var e=c&&c[d];return Array.isArray(a[b])?a[b].push(e):b in a?a[b]=[a[b],e]:a[b]=e,a},a)}function i(a,b){return h({},a,b)}function j(a,b,c,e,h,j){var l=a.path||"";if("/"===l.charAt(0)&&(c=b.pathname,e=[],h=[]),null!==c){var n=o.matchPattern(l,c);if(c=n.remainingPathname,e=[].concat(e,n.paramNames),h=[].concat(h,n.paramValues),""===c&&a.path){var p=function(){var c={routes:[a],params:i(e,h)};return g(a,b,function(a,b){if(a)j(a);else{if(Array.isArray(b)){var e;"production"!==d.env.NODE_ENV?m["default"](b.every(function(a){return!a.path}),"Index routes should not have paths"):void 0,(e=c.routes).push.apply(e,b)}else b&&("production"!==d.env.NODE_ENV?m["default"](!b.path,"Index routes should not have paths"):void 0,c.routes.push(b));j(null,c)}}),{v:void 0}}();if("object"==typeof p)return p.v}}if(null!=c||a.childRoutes){var q=function(d,f){d?j(d):f?k(f,b,function(b,c){b?j(b):c?(c.routes.unshift(a),j(null,c)):j()},c,e,h):j()},r=f(a,b,q);r&&q.apply(void 0,r)}else j()}function k(a,b,c){var d=arguments.length<=3||void 0===arguments[3]?b.pathname:arguments[3],e=arguments.length<=4||void 0===arguments[4]?[]:arguments[4],f=arguments.length<=5||void 0===arguments[5]?[]:arguments[5];return function(){n.loopAsync(a.length,function(c,g,h){j(a[c],b,d,e,f,function(a,b){a||b?h(a,b):g()})},c)}()}c.__esModule=!0;var l=a("./routerWarning"),m=e(l),n=a("./AsyncUtils"),o=a("./PatternUtils"),p=a("./RouteUtils");c["default"]=k,b.exports=c["default"]}).call(this,a("_process"))},{"./AsyncUtils":166,"./PatternUtils":173,"./RouteUtils":178,"./routerWarning":197,_process:111}],197:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){b="[react-router] "+b;for(var c=arguments.length,e=Array(c>2?c-2:0),f=2;c>f;f++)e[f-2]=arguments[f];"production"!==d.env.NODE_ENV?h["default"].apply(void 0,[a,b].concat(e)):void 0}c.__esModule=!0,c["default"]=f;var g=a("warning"),h=e(g);b.exports=c["default"]}).call(this,a("_process"))},{_process:111,warning:222}],198:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){return function(b){var c=g["default"](i["default"](a))(b);return c.__v2_compatible__=!0,c}}c.__esModule=!0,c["default"]=e;var f=a("history/lib/useQueries"),g=d(f),h=a("history/lib/useBasename"),i=d(h);b.exports=c["default"]},{"history/lib/useBasename":214,"history/lib/useQueries":215}],199:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){var c={};for(var d in a)b.indexOf(d)>=0||Object.prototype.hasOwnProperty.call(a,d)&&(c[d]=a[d]);return c}function g(a){return"production"!==d.env.NODE_ENV?n["default"](!1,"`useRoutes` is deprecated. Please use `createTransitionManager` instead."):void 0,function(){var b=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],c=b.routes,d=f(b,["routes"]),e=j["default"](a)(d),g=l["default"](e,c);return h({},e,g)}}c.__esModule=!0;var h=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},i=a("history/lib/useQueries"),j=e(i),k=a("./createTransitionManager"),l=e(k),m=a("./routerWarning"),n=e(m);c["default"]=g,b.exports=c["default"]}).call(this,a("_process"))},{"./createTransitionManager":188,"./routerWarning":197,_process:111,"history/lib/useQueries":215}],200:[function(a,b,c){"use strict";c.__esModule=!0;var d="PUSH";c.PUSH=d;var e="REPLACE";c.REPLACE=e;var f="POP";c.POP=f,c["default"]={PUSH:d,REPLACE:e,POP:f}},{}],201:[function(a,b,c){"use strict";function d(a,b,c){function d(){g=!0,c.apply(this,arguments)}function e(){g||(a>f?b.call(this,f++,e,d):d.apply(this,arguments))}var f=0,g=!1;e()}c.__esModule=!0,c.loopAsync=d},{}],202:[function(a,b,c){(function(b){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){return j+a}function f(a,c){try{null==c?window.sessionStorage.removeItem(e(a)):window.sessionStorage.setItem(e(a),JSON.stringify(c))}catch(d){if(d.name===l)return void("production"!==b.env.NODE_ENV?i["default"](!1,"[history] Unable to save state; sessionStorage is not available due to security settings"):void 0);if(k.indexOf(d.name)>=0&&0===window.sessionStorage.length)return void("production"!==b.env.NODE_ENV?i["default"](!1,"[history] Unable to save state; sessionStorage is not available in Safari private mode"):void 0);throw d}}function g(a){var c=void 0;try{c=window.sessionStorage.getItem(e(a))}catch(d){if(d.name===l)return"production"!==b.env.NODE_ENV?i["default"](!1,"[history] Unable to read state; sessionStorage is not available due to security settings"):void 0,null}if(c)try{return JSON.parse(c)}catch(d){}return null}c.__esModule=!0,c.saveState=f,c.readState=g;var h=a("warning"),i=d(h),j="@@History/",k=["QuotaExceededError","QUOTA_EXCEEDED_ERR"],l="SecurityError"}).call(this,a("_process"))},{_process:111,warning:222}],203:[function(a,b,c){"use strict";function d(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent("on"+b,c)}function e(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent("on"+b,c)}function f(){return window.location.href.split("#")[1]||""}function g(a){window.location.replace(window.location.pathname+window.location.search+"#"+a)}function h(){return window.location.pathname+window.location.search+window.location.hash}function i(a){a&&window.history.go(a)}function j(a,b){b(window.confirm(a))}function k(){var a=navigator.userAgent;return-1===a.indexOf("Android 2.")&&-1===a.indexOf("Android 4.0")||-1===a.indexOf("Mobile Safari")||-1!==a.indexOf("Chrome")||-1!==a.indexOf("Windows Phone")?window.history&&"pushState"in window.history:!1;
17
- }function l(){var a=navigator.userAgent;return-1===a.indexOf("Firefox")}c.__esModule=!0,c.addEventListener=d,c.removeEventListener=e,c.getHashPath=f,c.replaceHashPath=g,c.getWindowPath=h,c.go=i,c.getUserConfirmation=j,c.supportsHistory=k,c.supportsGoWithoutReloadUsingHash=l},{}],204:[function(a,b,c){"use strict";c.__esModule=!0;var d=!("undefined"==typeof window||!window.document||!window.document.createElement);c.canUseDOM=d},{}],205:[function(a,b,c){(function(b){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){var b=a.match(/^https?:\/\/[^\/]*/);return null==b?a:a.substring(b[0].length)}function f(a){var c=e(a),d="",f="";"production"!==b.env.NODE_ENV?h["default"](a===c,'A path must be pathname + search + hash only, not a fully qualified URL like "%s"',a):void 0;var g=c.indexOf("#");-1!==g&&(f=c.substring(g),c=c.substring(0,g));var i=c.indexOf("?");return-1!==i&&(d=c.substring(i),c=c.substring(0,i)),""===c&&(c="/"),{pathname:c,search:d,hash:f}}c.__esModule=!0,c.extractPath=e,c.parsePath=f;var g=a("warning"),h=d(g)}).call(this,a("_process"))},{_process:111,warning:222}],206:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{"default":a}}function f(){function a(a){a=a||window.history.state||{};var b=m.getWindowPath(),c=a,d=c.key,e=void 0;d?e=n.readState(d):(e=null,d=u.createKey(),s&&window.history.replaceState(g({},a,{key:d}),null,b));var f=k.parsePath(b);return u.createLocation(g({},f,{state:e}),void 0,d)}function b(b){function c(b){void 0!==b.state&&d(a(b.state))}var d=b.transitionTo;return m.addEventListener(window,"popstate",c),function(){m.removeEventListener(window,"popstate",c)}}function c(a){var b=a.basename,c=a.pathname,d=a.search,e=a.hash,f=a.state,g=a.action,h=a.key;if(g!==j.POP){n.saveState(h,f);var i=(b||"")+c+d+e,k={key:h};if(g===j.PUSH){if(t)return window.location.href=i,!1;window.history.pushState(k,null,i)}else{if(t)return window.location.replace(i),!1;window.history.replaceState(k,null,i)}}}function e(a){1===++v&&(w=b(u));var c=u.listenBefore(a);return function(){c(),0===--v&&w()}}function f(a){1===++v&&(w=b(u));var c=u.listen(a);return function(){c(),0===--v&&w()}}function h(a){1===++v&&(w=b(u)),u.registerTransitionHook(a)}function o(a){u.unregisterTransitionHook(a),0===--v&&w()}var q=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];l.canUseDOM?void 0:"production"!==d.env.NODE_ENV?i["default"](!1,"Browser history needs a DOM"):i["default"](!1);var r=q.forceRefresh,s=m.supportsHistory(),t=!s||r,u=p["default"](g({},q,{getCurrentLocation:a,finishTransition:c,saveState:n.saveState})),v=0,w=void 0;return g({},u,{listenBefore:e,listen:f,registerTransitionHook:h,unregisterTransitionHook:o})}c.__esModule=!0;var g=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},h=a("invariant"),i=e(h),j=a("./Actions"),k=a("./PathUtils"),l=a("./ExecutionEnvironment"),m=a("./DOMUtils"),n=a("./DOMStateStorage"),o=a("./createDOMHistory"),p=e(o);c["default"]=f,b.exports=c["default"]}).call(this,a("_process"))},{"./Actions":200,"./DOMStateStorage":202,"./DOMUtils":203,"./ExecutionEnvironment":204,"./PathUtils":205,"./createDOMHistory":207,_process:111,invariant:221}],207:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{"default":a}}function f(a){function b(a){return j.canUseDOM?void 0:"production"!==d.env.NODE_ENV?i["default"](!1,"DOM history needs a DOM"):i["default"](!1),c.listen(a)}var c=m["default"](g({getUserConfirmation:k.getUserConfirmation},a,{go:k.go}));return g({},c,{listen:b})}c.__esModule=!0;var g=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},h=a("invariant"),i=e(h),j=a("./ExecutionEnvironment"),k=a("./DOMUtils"),l=a("./createHistory"),m=e(l);c["default"]=f,b.exports=c["default"]}).call(this,a("_process"))},{"./DOMUtils":203,"./ExecutionEnvironment":204,"./createHistory":209,_process:111,invariant:221}],208:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{"default":a}}function f(a){return"string"==typeof a&&"/"===a.charAt(0)}function g(){var a=t.getHashPath();return f(a)?!0:(t.replaceHashPath("/"+a),!1)}function h(a,b,c){return a+(-1===a.indexOf("?")?"?":"&")+(b+"="+c)}function i(a,b){return a.replace(new RegExp("[?&]?"+b+"=[a-zA-Z0-9]+"),"")}function j(a,b){var c=a.match(new RegExp("\\?.*?\\b"+b+"=(.+?)\\b"));return c&&c[1]}function k(){function a(){var a=t.getHashPath(),b=void 0,c=void 0;D?(b=j(a,D),a=i(a,D),b?c=u.readState(b):(c=null,b=E.createKey(),t.replaceHashPath(h(a,D,b)))):b=c=null;var d=r.parsePath(a);return E.createLocation(l({},d,{state:c}),void 0,b)}function b(b){function c(){g()&&d(a())}var d=b.transitionTo;return g(),t.addEventListener(window,"hashchange",c),function(){t.removeEventListener(window,"hashchange",c)}}function c(a){var b=a.basename,c=a.pathname,e=a.search,f=a.state,g=a.action,i=a.key;if(g!==q.POP){var j=(b||"")+c+e;D?(j=h(j,D,i),u.saveState(i,f)):a.key=a.state=null;var k=t.getHashPath();g===q.PUSH?k!==j?window.location.hash=j:"production"!==d.env.NODE_ENV?n["default"](!1,"You cannot PUSH the same path using hash history"):void 0:k!==j&&t.replaceHashPath(j)}}function e(a){1===++F&&(G=b(E));var c=E.listenBefore(a);return function(){c(),0===--F&&G()}}function f(a){1===++F&&(G=b(E));var c=E.listen(a);return function(){c(),0===--F&&G()}}function k(a){"production"!==d.env.NODE_ENV?n["default"](D||null==a.state,"You cannot use state without a queryKey it will be dropped"):void 0,E.push(a)}function m(a){"production"!==d.env.NODE_ENV?n["default"](D||null==a.state,"You cannot use state without a queryKey it will be dropped"):void 0,E.replace(a)}function o(a){"production"!==d.env.NODE_ENV?n["default"](H,"Hash history go(n) causes a full page reload in this browser"):void 0,E.go(a)}function v(a){return"#"+E.createHref(a)}function y(a){1===++F&&(G=b(E)),E.registerTransitionHook(a)}function z(a){E.unregisterTransitionHook(a),0===--F&&G()}function A(a,b){"production"!==d.env.NODE_ENV?n["default"](D||null==a,"You cannot use state without a queryKey it will be dropped"):void 0,E.pushState(a,b)}function B(a,b){"production"!==d.env.NODE_ENV?n["default"](D||null==a,"You cannot use state without a queryKey it will be dropped"):void 0,E.replaceState(a,b)}var C=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];s.canUseDOM?void 0:"production"!==d.env.NODE_ENV?p["default"](!1,"Hash history needs a DOM"):p["default"](!1);var D=C.queryKey;(void 0===D||D)&&(D="string"==typeof D?D:x);var E=w["default"](l({},C,{getCurrentLocation:a,finishTransition:c,saveState:u.saveState})),F=0,G=void 0,H=t.supportsGoWithoutReloadUsingHash();return l({},E,{listenBefore:e,listen:f,push:k,replace:m,go:o,createHref:v,registerTransitionHook:y,unregisterTransitionHook:z,pushState:A,replaceState:B})}c.__esModule=!0;var l=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},m=a("warning"),n=e(m),o=a("invariant"),p=e(o),q=a("./Actions"),r=a("./PathUtils"),s=a("./ExecutionEnvironment"),t=a("./DOMUtils"),u=a("./DOMStateStorage"),v=a("./createDOMHistory"),w=e(v),x="_k";c["default"]=k,b.exports=c["default"]}).call(this,a("_process"))},{"./Actions":200,"./DOMStateStorage":202,"./DOMUtils":203,"./ExecutionEnvironment":204,"./PathUtils":205,"./createDOMHistory":207,_process:111,invariant:221,warning:222}],209:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{"default":a}}function f(a){return Math.random().toString(36).substr(2,a)}function g(a,b){return a.pathname===b.pathname&&a.search===b.search&&a.key===b.key&&m["default"](a.state,b.state)}function h(){function a(a){return O.push(a),function(){O=O.filter(function(b){return b!==a})}}function b(){return S&&S.action===p.POP?P.indexOf(S.key):R?P.indexOf(R.key):-1}function c(a){var c=b();R=a,R.action===p.PUSH?P=[].concat(P.slice(0,c+1),[R.key]):R.action===p.REPLACE&&(P[c]=R.key),Q.forEach(function(a){a(R)})}function e(a){if(Q.push(a),R)a(R);else{var b=I();P=[b.key],c(b)}return function(){Q=Q.filter(function(b){return b!==a})}}function h(a,b){o.loopAsync(O.length,function(b,c,d){t["default"](O[b],a,function(a){null!=a?d(a):c()})},function(a){N&&"string"==typeof a?N(a,function(a){b(a!==!1)}):b(a!==!1)})}function j(a){R&&g(R,a)||(S=a,h(a,function(b){if(S===a)if(b){if(a.action===p.PUSH){var d=y(R),e=y(a);e===d&&m["default"](R.state,a.state)&&(a.action=p.REPLACE)}J(a)!==!1&&c(a)}else if(R&&a.action===p.POP){var f=P.indexOf(R.key),g=P.indexOf(a.key);-1!==f&&-1!==g&&L(f-g)}}))}function l(a){j(A(a,p.PUSH,x()))}function q(a){j(A(a,p.REPLACE,x()))}function s(){L(-1)}function u(){L(1)}function x(){return f(M)}function y(a){if(null==a||"string"==typeof a)return a;var b=a.pathname,c=a.search,d=a.hash,e=b;return c&&(e+=c),d&&(e+=d),e}function z(a){return y(a)}function A(a,b){var c=arguments.length<=2||void 0===arguments[2]?x():arguments[2];return"object"==typeof b&&("production"!==d.env.NODE_ENV?k["default"](!1,"The state (2nd) argument to history.createLocation is deprecated; use a location descriptor instead"):void 0,"string"==typeof a&&(a=n.parsePath(a)),a=i({},a,{state:b}),b=c,c=arguments[3]||x()),r["default"](a,b,c)}function B(a){R?(C(R,a),c(R)):C(I(),a)}function C(a,b){a.state=i({},a.state,b),K(a.key,a.state)}function D(a){-1===O.indexOf(a)&&O.push(a)}function E(a){O=O.filter(function(b){return b!==a})}function F(a,b){"string"==typeof b&&(b=n.parsePath(b)),l(i({state:a},b))}function G(a,b){"string"==typeof b&&(b=n.parsePath(b)),q(i({state:a},b))}var H=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],I=H.getCurrentLocation,J=H.finishTransition,K=H.saveState,L=H.go,M=H.keyLength,N=H.getUserConfirmation;"number"!=typeof M&&(M=w);var O=[],P=[],Q=[],R=void 0,S=void 0;return{listenBefore:a,listen:e,transitionTo:j,push:l,replace:q,go:L,goBack:s,goForward:u,createKey:x,createPath:y,createHref:z,createLocation:A,setState:v["default"](B,"setState is deprecated; use location.key to save state instead"),registerTransitionHook:v["default"](D,"registerTransitionHook is deprecated; use listenBefore instead"),unregisterTransitionHook:v["default"](E,"unregisterTransitionHook is deprecated; use the callback returned from listenBefore instead"),pushState:v["default"](F,"pushState is deprecated; use push instead"),replaceState:v["default"](G,"replaceState is deprecated; use replace instead")}}c.__esModule=!0;var i=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},j=a("warning"),k=e(j),l=a("deep-equal"),m=e(l),n=a("./PathUtils"),o=a("./AsyncUtils"),p=a("./Actions"),q=a("./createLocation"),r=e(q),s=a("./runTransitionHook"),t=e(s),u=a("./deprecate"),v=e(u),w=6;c["default"]=h,b.exports=c["default"]}).call(this,a("_process"))},{"./Actions":200,"./AsyncUtils":201,"./PathUtils":205,"./createLocation":210,"./deprecate":212,"./runTransitionHook":213,_process:111,"deep-equal":216,warning:222}],210:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{"default":a}}function f(){var a=arguments.length<=0||void 0===arguments[0]?"/":arguments[0],b=arguments.length<=1||void 0===arguments[1]?j.POP:arguments[1],c=arguments.length<=2||void 0===arguments[2]?null:arguments[2],e=arguments.length<=3||void 0===arguments[3]?null:arguments[3];"string"==typeof a&&(a=k.parsePath(a)),"object"==typeof b&&("production"!==d.env.NODE_ENV?i["default"](!1,"The state (2nd) argument to createLocation is deprecated; use a location descriptor instead"):void 0,a=g({},a,{state:b}),b=c||j.POP,c=e);var f=a.pathname||"/",h=a.search||"",l=a.hash||"",m=a.state||null;return{pathname:f,search:h,hash:l,state:m,action:b,key:c}}c.__esModule=!0;var g=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},h=a("warning"),i=e(h),j=a("./Actions"),k=a("./PathUtils");c["default"]=f,b.exports=c["default"]}).call(this,a("_process"))},{"./Actions":200,"./PathUtils":205,_process:111,warning:222}],211:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{"default":a}}function f(a){return a.filter(function(a){return a.state}).reduce(function(a,b){return a[b.key]=b.state,a},{})}function g(){function a(a,b){t[a]=b}function b(a){return t[a]}function c(){var a=r[s],c=a.key,d=a.basename,e=a.pathname,f=a.search,g=(d||"")+e+(f||""),i=void 0;c?i=b(c):(i=null,c=o.createKey(),a.key=c);var j=m.parsePath(g);return o.createLocation(h({},j,{state:i}),void 0,c)}function e(a){var b=s+a;return b>=0&&b<r.length}function g(a){if(a){if(!e(a))return void("production"!==d.env.NODE_ENV?j["default"](!1,"Cannot go(%s) there is not enough history",a):void 0);s+=a;var b=c();o.transitionTo(h({},b,{action:n.POP}))}}function i(b){switch(b.action){case n.PUSH:s+=1,s<r.length&&r.splice(s),r.push(b),a(b.key,b.state);break;case n.REPLACE:r[s]=b,a(b.key,b.state)}}var k=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];Array.isArray(k)?k={entries:k}:"string"==typeof k&&(k={entries:[k]});var o=p["default"](h({},k,{getCurrentLocation:c,finishTransition:i,saveState:a,go:g})),q=k,r=q.entries,s=q.current;"string"==typeof r?r=[r]:Array.isArray(r)||(r=["/"]),r=r.map(function(a){var b=o.createKey();return"string"==typeof a?{pathname:a,key:b}:"object"==typeof a&&a?h({},a,{key:b}):void("production"!==d.env.NODE_ENV?l["default"](!1,"Unable to create history entry from %s",a):l["default"](!1))}),null==s?s=r.length-1:s>=0&&s<r.length?void 0:"production"!==d.env.NODE_ENV?l["default"](!1,"Current index must be >= 0 and < %s, was %s",r.length,s):l["default"](!1);var t=f(r);return o}c.__esModule=!0;var h=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},i=a("warning"),j=e(i),k=a("invariant"),l=e(k),m=a("./PathUtils"),n=a("./Actions"),o=a("./createHistory"),p=e(o);c["default"]=g,b.exports=c["default"]}).call(this,a("_process"))},{"./Actions":200,"./PathUtils":205,"./createHistory":209,_process:111,invariant:221,warning:222}],212:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){return function(){return"production"!==d.env.NODE_ENV?h["default"](!1,"[history] "+b):void 0,a.apply(this,arguments)}}c.__esModule=!0;var g=a("warning"),h=e(g);c["default"]=f,b.exports=c["default"]}).call(this,a("_process"))},{_process:111,warning:222}],213:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b,c){var e=a(b,c);a.length<2?c(e):"production"!==d.env.NODE_ENV?h["default"](void 0===e,'You should not "return" in a transition hook with a callback argument; call the callback instead'):void 0}c.__esModule=!0;var g=a("warning"),h=e(g);c["default"]=f,b.exports=c["default"]}).call(this,a("_process"))},{_process:111,warning:222}],214:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){var c={};for(var d in a)b.indexOf(d)>=0||Object.prototype.hasOwnProperty.call(a,d)&&(c[d]=a[d]);return c}function f(a){return function(){function b(a){return t&&null==a.basename&&(0===a.pathname.indexOf(t)?(a.pathname=a.pathname.substring(t.length),a.basename=t,""===a.pathname&&(a.pathname="/")):a.basename=""),a}function c(a){if(!t)return a;"string"==typeof a&&(a=i.parsePath(a));var b=a.pathname,c="/"===t.slice(-1)?t:t+"/",d="/"===b.charAt(0)?b.slice(1):b,e=c+d;return g({},a,{pathname:e})}function d(a){return v.listenBefore(function(c,d){k["default"](a,b(c),d)})}function f(a){return v.listen(function(c){a(b(c))})}function j(a){v.push(c(a))}function l(a){v.replace(c(a))}function n(a){return v.createPath(c(a))}function o(a){return v.createHref(c(a))}function p(a){for(var d=arguments.length,e=Array(d>1?d-1:0),f=1;d>f;f++)e[f-1]=arguments[f];return b(v.createLocation.apply(v,[c(a)].concat(e)))}function q(a,b){"string"==typeof b&&(b=i.parsePath(b)),j(g({state:a},b))}function r(a,b){"string"==typeof b&&(b=i.parsePath(b)),l(g({state:a},b))}var s=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=s.basename,u=e(s,["basename"]),v=a(u);if(null==t&&h.canUseDOM){var w=document.getElementsByTagName("base")[0];w&&(t=i.extractPath(w.href))}return g({},v,{listenBefore:d,listen:f,push:j,replace:l,createPath:n,createHref:o,createLocation:p,pushState:m["default"](q,"pushState is deprecated; use push instead"),replaceState:m["default"](r,"replaceState is deprecated; use replace instead")})}}c.__esModule=!0;var g=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},h=a("./ExecutionEnvironment"),i=a("./PathUtils"),j=a("./runTransitionHook"),k=d(j),l=a("./deprecate"),m=d(l);c["default"]=f,b.exports=c["default"]},{"./ExecutionEnvironment":204,"./PathUtils":205,"./deprecate":212,"./runTransitionHook":213}],215:[function(a,b,c){(function(d){"use strict";function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){var c={};for(var d in a)b.indexOf(d)>=0||Object.prototype.hasOwnProperty.call(a,d)&&(c[d]=a[d]);return c}function g(a){return m.stringify(a).replace(/%20/g,"+")}function h(a){for(var b in a)if(a.hasOwnProperty(b)&&"object"==typeof a[b]&&!Array.isArray(a[b])&&null!==a[b])return!0;return!1}function i(a){return function(){function b(a){if(null==a.query){var b=a.search;a.query=z(b.substring(1)),a[s]={search:b,searchBase:""}}return a}function c(a,b){var c,e=a[s],f=b?y(b):"";if(!e&&!f)return a;"production"!==d.env.NODE_ENV?l["default"](y!==g||!h(b),"useQueries does not stringify nested query objects by default; use a custom stringifyQuery function"):void 0,"string"==typeof a&&(a=p.parsePath(a));var i=void 0;i=e&&a.search===e.search?e.searchBase:a.search||"";var k=i;return f&&(k+=(k?"&":"?")+f),j({},a,(c={search:k},c[s]={search:k,searchBase:i},c))}function e(a){return B.listenBefore(function(c,d){o["default"](a,b(c),d)})}function i(a){return B.listen(function(c){a(b(c))})}function k(a){B.push(c(a,a.query))}function m(a){B.replace(c(a,a.query))}function n(a,b){return"production"!==d.env.NODE_ENV?l["default"](!b,"the query argument to createPath is deprecated; use a location descriptor instead"):void 0,B.createPath(c(a,b||a.query))}function q(a,b){return"production"!==d.env.NODE_ENV?l["default"](!b,"the query argument to createHref is deprecated; use a location descriptor instead"):void 0,B.createHref(c(a,b||a.query))}function u(a){for(var d=arguments.length,e=Array(d>1?d-1:0),f=1;d>f;f++)e[f-1]=arguments[f];var g=B.createLocation.apply(B,[c(a,a.query)].concat(e));return a.query&&(g.query=a.query),b(g)}function v(a,b,c){"string"==typeof b&&(b=p.parsePath(b)),k(j({state:a},b,{query:c}))}function w(a,b,c){"string"==typeof b&&(b=p.parsePath(b)),m(j({state:a},b,{query:c}))}var x=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],y=x.stringifyQuery,z=x.parseQueryString,A=f(x,["stringifyQuery","parseQueryString"]),B=a(A);return"function"!=typeof y&&(y=g),"function"!=typeof z&&(z=t),j({},B,{listenBefore:e,listen:i,push:k,replace:m,createPath:n,createHref:q,createLocation:u,pushState:r["default"](v,"pushState is deprecated; use push instead"),replaceState:r["default"](w,"replaceState is deprecated; use replace instead")})}}c.__esModule=!0;var j=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},k=a("warning"),l=e(k),m=a("query-string"),n=a("./runTransitionHook"),o=e(n),p=a("./PathUtils"),q=a("./deprecate"),r=e(q),s="$searchBase",t=m.parse;c["default"]=i,b.exports=c["default"]}).call(this,a("_process"))},{"./PathUtils":205,"./deprecate":212,"./runTransitionHook":213,_process:111,"query-string":219,warning:222}],216:[function(a,b,c){function d(a){return null===a||void 0===a}function e(a){return a&&"object"==typeof a&&"number"==typeof a.length?"function"!=typeof a.copy||"function"!=typeof a.slice?!1:!(a.length>0&&"number"!=typeof a[0]):!1}function f(a,b,c){var f,k;if(d(a)||d(b))return!1;if(a.prototype!==b.prototype)return!1;if(i(a))return i(b)?(a=g.call(a),b=g.call(b),j(a,b,c)):!1;if(e(a)){if(!e(b))return!1;if(a.length!==b.length)return!1;for(f=0;f<a.length;f++)if(a[f]!==b[f])return!1;return!0}try{var l=h(a),m=h(b)}catch(n){return!1}if(l.length!=m.length)return!1;for(l.sort(),m.sort(),f=l.length-1;f>=0;f--)if(l[f]!=m[f])return!1;for(f=l.length-1;f>=0;f--)if(k=l[f],!j(a[k],b[k],c))return!1;return typeof a==typeof b}var g=Array.prototype.slice,h=a("./lib/keys.js"),i=a("./lib/is_arguments.js"),j=b.exports=function(a,b,c){return c||(c={}),a===b?!0:a instanceof Date&&b instanceof Date?a.getTime()===b.getTime():!a||!b||"object"!=typeof a&&"object"!=typeof b?c.strict?a===b:a==b:f(a,b,c)}},{"./lib/is_arguments.js":217,"./lib/keys.js":218}],217:[function(a,b,c){function d(a){return"[object Arguments]"==Object.prototype.toString.call(a)}function e(a){return a&&"object"==typeof a&&"number"==typeof a.length&&Object.prototype.hasOwnProperty.call(a,"callee")&&!Object.prototype.propertyIsEnumerable.call(a,"callee")||!1}var f="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();c=b.exports=f?d:e,c.supported=d,c.unsupported=e},{}],218:[function(a,b,c){function d(a){var b=[];for(var c in a)b.push(c);return b}c=b.exports="function"==typeof Object.keys?Object.keys:d,c.shim=d},{}],219:[function(a,b,c){"use strict";var d=a("strict-uri-encode");c.extract=function(a){return a.split("?")[1]||""},c.parse=function(a){return"string"!=typeof a?{}:(a=a.trim().replace(/^(\?|#|&)/,""),a?a.split("&").reduce(function(a,b){var c=b.replace(/\+/g," ").split("="),d=c.shift(),e=c.length>0?c.join("="):void 0;return d=decodeURIComponent(d),e=void 0===e?null:decodeURIComponent(e),a.hasOwnProperty(d)?Array.isArray(a[d])?a[d].push(e):a[d]=[a[d],e]:a[d]=e,a},{}):{})},c.stringify=function(a){return a?Object.keys(a).sort().map(function(b){var c=a[b];return void 0===c?"":null===c?b:Array.isArray(c)?c.sort().map(function(a){return d(b)+"="+d(a)}).join("&"):d(b)+"="+d(c)}).filter(function(a){return a.length>0}).join("&"):""}},{"strict-uri-encode":220}],220:[function(a,b,c){"use strict";b.exports=function(a){return encodeURIComponent(a).replace(/[!'()*]/g,function(a){return"%"+a.charCodeAt(0).toString(16).toUpperCase()})}},{}],221:[function(a,b,c){(function(a){"use strict";var c=function(b,c,d,e,f,g,h,i){if("production"!==a.env.NODE_ENV&&void 0===c)throw new Error("invariant requires an error message argument");if(!b){var j;if(void 0===c)j=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var k=[d,e,f,g,h,i],l=0;j=new Error(c.replace(/%s/g,function(){return k[l++]})),j.name="Invariant Violation"}throw j.framesToPop=1,j}};b.exports=c}).call(this,a("_process"))},{_process:111}],222:[function(a,b,c){(function(a){"use strict";var c=function(){};"production"!==a.env.NODE_ENV&&(c=function(a,b,c){var d=arguments.length;c=new Array(d>2?d-2:0);for(var e=2;d>e;e++)c[e-2]=arguments[e];if(void 0===b)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(b.length<10||/^[s\W]*$/.test(b))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+b);if(!a){var f=0,g="Warning: "+b.replace(/%s/g,function(){return c[f++]});"undefined"!=typeof console&&console.error(g);try{throw new Error(g)}catch(h){}}}),b.exports=c}).call(this,a("_process"))},{_process:111}],223:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){b.selected?(a.setAttribute("tabindex",0),a.setAttribute("selected","selected"),b.focus&&a.focus()):(a.removeAttribute("tabindex"),a.removeAttribute("selected"))}var f=a("react"),g=d(f),h=a("react-dom"),i=a("classnames"),j=d(i);b.exports=g["default"].createClass({displayName:"Tab",propTypes:{className:f.PropTypes.string,id:f.PropTypes.string,selected:f.PropTypes.bool,disabled:f.PropTypes.bool,panelId:f.PropTypes.string,children:f.PropTypes.oneOfType([f.PropTypes.array,f.PropTypes.object,f.PropTypes.string])},getDefaultProps:function(){return{focus:!1,selected:!1,id:null,panelId:null}},componentDidMount:function(){e((0,h.findDOMNode)(this),this.props)},componentDidUpdate:function(){e((0,h.findDOMNode)(this),this.props)},render:function(){return g["default"].createElement("li",{className:(0,j["default"])("ReactTabs__Tab",this.props.className,{"ReactTabs__Tab--selected":this.props.selected,"ReactTabs__Tab--disabled":this.props.disabled}),role:"tab",id:this.props.id,"aria-selected":this.props.selected?"true":"false","aria-expanded":this.props.selected?"true":"false","aria-disabled":this.props.disabled?"true":"false","aria-controls":this.props.panelId},this.props.children)}})},{classnames:230,react:387,"react-dom":144}],224:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}var e=a("react"),f=d(e),g=a("classnames"),h=d(g);b.exports=f["default"].createClass({displayName:"TabList",propTypes:{className:e.PropTypes.string,children:e.PropTypes.oneOfType([e.PropTypes.object,e.PropTypes.array])},render:function(){return f["default"].createElement("ul",{className:(0,h["default"])("ReactTabs__TabList",this.props.className),role:"tablist"},this.props.children)}})},{classnames:230,react:387}],225:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}var e=a("react"),f=d(e),g=a("classnames"),h=d(g);b.exports=f["default"].createClass({displayName:"TabPanel",propTypes:{className:e.PropTypes.string,selected:e.PropTypes.bool,id:e.PropTypes.string,tabId:e.PropTypes.string,children:e.PropTypes.oneOfType([e.PropTypes.array,e.PropTypes.object,e.PropTypes.string])},contextTypes:{forceRenderTabPanel:e.PropTypes.bool},getDefaultProps:function(){return{selected:!1,id:null,tabId:null}},render:function(){var a=this.context.forceRenderTabPanel||this.props.selected?this.props.children:null;return f["default"].createElement("div",{className:(0,h["default"])("ReactTabs__TabPanel",this.props.className,{"ReactTabs__TabPanel--selected":this.props.selected}),role:"tabpanel",id:this.props.id,"aria-labelledby":this.props.tabId,style:{display:this.props.selected?null:"none"}},a)}})},{classnames:230,react:387}],226:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){return"LI"===a.nodeName&&"tab"===a.getAttribute("role")}function f(a){return"true"===a.getAttribute("aria-disabled")}var g=a("react"),h=d(g),i=a("react-dom"),j=a("classnames"),k=d(j),l=a("js-stylesheet"),m=d(l),n=a("../helpers/uuid"),o=d(n),p=a("../helpers/childrenPropType"),q=d(p),r=!0;b.exports=h["default"].createClass({displayName:"Tabs",propTypes:{className:g.PropTypes.string,selectedIndex:g.PropTypes.number,onSelect:g.PropTypes.func,focus:g.PropTypes.bool,children:q["default"],forceRenderTabPanel:g.PropTypes.bool},childContextTypes:{forceRenderTabPanel:g.PropTypes.bool},statics:{setUseDefaultStyles:function(a){r=a}},getDefaultProps:function(){return{selectedIndex:-1,focus:!1,forceRenderTabPanel:!1}},getInitialState:function(){return this.copyPropsToState(this.props)},getChildContext:function(){return{forceRenderTabPanel:this.props.forceRenderTabPanel}},componentDidMount:function(){r&&(0,m["default"])(a("../helpers/styles.js"))},componentWillReceiveProps:function(a){this.setState(this.copyPropsToState(a))},handleClick:function(a){var b=a.target;do if(e(b)){if(f(b))return;var c=[].slice.call(b.parentNode.children).indexOf(b);return void this.setSelected(c)}while(null!==(b=b.parentNode))},handleKeyDown:function(a){if(e(a.target)){var b=this.state.selectedIndex,c=!1;37===a.keyCode||38===a.keyCode?(b=this.getPrevTab(b),c=!0):39!==a.keyCode&&40!==a.keyCode||(b=this.getNextTab(b),c=!0),c&&a.preventDefault(),this.setSelected(b,!0)}},setSelected:function(a,b){if(a!==this.state.selectedIndex&&!(0>a||a>=this.getTabsCount())){var c=this.state.selectedIndex;this.setState({selectedIndex:a,focus:b===!0}),"function"==typeof this.props.onSelect&&this.props.onSelect(a,c)}},getNextTab:function(a){for(var b=this.getTabsCount(),c=a+1;b>c;c++){var d=this.getTab(c);if(!f((0,i.findDOMNode)(d)))return c}for(var c=0;a>c;c++){var d=this.getTab(c);if(!f((0,i.findDOMNode)(d)))return c}return a},getPrevTab:function(a){for(var b=a;b--;){var c=this.getTab(b);if(!f((0,i.findDOMNode)(c)))return b}for(b=this.getTabsCount();b-- >a;){var c=this.getTab(b);if(!f((0,i.findDOMNode)(c)))return b}return a},getTabsCount:function(){return this.props.children&&this.props.children[0]?h["default"].Children.count(this.props.children[0].props.children):0},getPanelsCount:function(){return h["default"].Children.count(this.props.children.slice(1))},getTabList:function(){return this.refs.tablist},getTab:function(a){return this.refs["tabs-"+a]},getPanel:function(a){return this.refs["panels-"+a]},getChildren:function(){for(var a=0,b=0,c=this.props.children,d=this.state,e=this.tabIds=this.tabIds||[],f=this.panelIds=this.panelIds||[],i=this.tabIds.length-this.getTabsCount();i++<0;)e.push((0,o["default"])()),f.push((0,o["default"])());return h["default"].Children.map(c,function(c){if(null===c)return null;var i=null;if(0===b++)i=(0,g.cloneElement)(c,{ref:"tablist",children:h["default"].Children.map(c.props.children,function(b){if(null===b)return null;var c="tabs-"+a,h=e[a],i=f[a],j=d.selectedIndex===a,k=j&&d.focus;return a++,(0,g.cloneElement)(b,{ref:c,id:h,panelId:i,selected:j,focus:k})})}),a=0;else{var j="panels-"+a,k=f[a],l=e[a],m=d.selectedIndex===a;a++,i=(0,g.cloneElement)(c,{ref:j,id:k,tabId:l,selected:m})}return i})},render:function(){var a=this;return this.state.focus&&setTimeout(function(){a.state.focus=!1},0),h["default"].createElement("div",{className:(0,k["default"])("ReactTabs","react-tabs",this.props.className),onClick:this.handleClick,onKeyDown:this.handleKeyDown},this.getChildren())},copyPropsToState:function(a){var b=a.selectedIndex;return-1===b&&(b=this.state&&this.state.selectedIndex?this.state.selectedIndex:0),{selectedIndex:b,focus:a.focus}}})},{"../helpers/childrenPropType":227,"../helpers/styles.js":228,"../helpers/uuid":229,classnames:230,"js-stylesheet":231,react:387,"react-dom":144}],227:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}var e=a("react"),f=d(e),g=a("../components/Tab"),h=d(g),i=a("../components/TabList"),j=d(i);b.exports=function(a,b){var c=void 0,d=0,e=0,g=a[b];return f["default"].Children.forEach(g,function(a){null!==a&&(a.type===j["default"]?f["default"].Children.forEach(a.props.children,function(a){null!==a&&(a.type===h["default"]?d++:c=new Error("Expected `Tab` but found `"+(a.type.displayName||a.type)+"`"))}):"TabPanel"===a.type.displayName?e++:c=new Error("Expected `TabList` or `TabPanel` but found `"+(a.type.displayName||a.type)+"`"))}),d!==e&&(c=new Error("There should be an equal number of `Tabs` and `TabPanels`. Received "+d+" `Tabs` and "+e+" `TabPanels`.")),c}},{"../components/Tab":223,"../components/TabList":224,react:387}],228:[function(a,b,c){"use strict";b.exports={".react-tabs [role=tablist]":{"border-bottom":"1px solid #aaa",margin:"0 0 10px",padding:"0"},".react-tabs [role=tab]":{display:"inline-block",border:"1px solid transparent","border-bottom":"none",bottom:"-1px",position:"relative","list-style":"none",padding:"6px 12px",cursor:"pointer"},".react-tabs [role=tab][aria-selected=true]":{background:"#fff","border-color":"#aaa",color:"black","border-radius":"5px 5px 0 0","-moz-border-radius":"5px 5px 0 0","-webkit-border-radius":"5px 5px 0 0"},".react-tabs [role=tab][aria-disabled=true]":{
18
- color:"GrayText",cursor:"default"},".react-tabs [role=tab]:focus":{"box-shadow":"0 0 5px hsl(208, 99%, 50%)","border-color":"hsl(208, 99%, 50%)",outline:"none"},".react-tabs [role=tab]:focus:after":{content:'""',position:"absolute",height:"5px",left:"-4px",right:"-4px",bottom:"-5px",background:"#fff"}}},{}],229:[function(a,b,c){"use strict";var d=0;b.exports=function(){return"react-tabs-"+d++}},{}],230:[function(a,b,c){!function(){"use strict";function a(){for(var b=[],d=0;d<arguments.length;d++){var e=arguments[d];if(e){var f=typeof e;if("string"===f||"number"===f)b.push(e);else if(Array.isArray(e))b.push(a.apply(null,e));else if("object"===f)for(var g in e)c.call(e,g)&&e[g]&&b.push(g)}}return b.join(" ")}var c={}.hasOwnProperty;"undefined"!=typeof b&&b.exports?b.exports=a:"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return a}):window.classNames=a}()},{}],231:[function(a,b,c){!function(){function a(a){var b=[];for(var c in a)b.push(d(c,a[c]));f(b)}function d(a,b){return a+" {\n"+e(b)+"\n}"}function e(a){var b=[];for(var c in a)b.push(" "+c+": "+a[c]+";");return b.join("\n")}function f(a){var b=document.getElementById("jss-styles");if(!b){b=document.createElement("style"),b.setAttribute("id","jss-styles");var c=document.getElementsByTagName("head")[0];c.insertBefore(b,c.firstChild)}var d=document.createTextNode(a.join("\n\n"));b.appendChild(d)}"object"==typeof c?b.exports=a:window.jss=a}()},{}],232:[function(a,b,c){"use strict";var d=a("./ReactMount"),e=a("./findDOMNode"),f=a("fbjs/lib/focusNode"),g={componentDidMount:function(){this.props.autoFocus&&f(e(this))}},h={Mixin:g,focusDOMComponent:function(){f(d.getNode(this._rootNodeID))}};b.exports=h},{"./ReactMount":296,"./findDOMNode":339,"fbjs/lib/focusNode":369}],233:[function(a,b,c){"use strict";function d(){var a=window.opera;return"object"==typeof a&&"function"==typeof a.version&&parseInt(a.version(),10)<=12}function e(a){return(a.ctrlKey||a.altKey||a.metaKey)&&!(a.ctrlKey&&a.altKey)}function f(a){switch(a){case C.topCompositionStart:return D.compositionStart;case C.topCompositionEnd:return D.compositionEnd;case C.topCompositionUpdate:return D.compositionUpdate}}function g(a,b){return a===C.topKeyDown&&b.keyCode===v}function h(a,b){switch(a){case C.topKeyUp:return-1!==u.indexOf(b.keyCode);case C.topKeyDown:return b.keyCode!==v;case C.topKeyPress:case C.topMouseDown:case C.topBlur:return!0;default:return!1}}function i(a){var b=a.detail;return"object"==typeof b&&"data"in b?b.data:null}function j(a,b,c,d,e){var j,k;if(w?j=f(a):F?h(a,d)&&(j=D.compositionEnd):g(a,d)&&(j=D.compositionStart),!j)return null;z&&(F||j!==D.compositionStart?j===D.compositionEnd&&F&&(k=F.getData()):F=q.getPooled(b));var l=r.getPooled(j,c,d,e);if(k)l.data=k;else{var m=i(d);null!==m&&(l.data=m)}return o.accumulateTwoPhaseDispatches(l),l}function k(a,b){switch(a){case C.topCompositionEnd:return i(b);case C.topKeyPress:var c=b.which;return c!==A?null:(E=!0,B);case C.topTextInput:var d=b.data;return d===B&&E?null:d;default:return null}}function l(a,b){if(F){if(a===C.topCompositionEnd||h(a,b)){var c=F.getData();return q.release(F),F=null,c}return null}switch(a){case C.topPaste:return null;case C.topKeyPress:return b.which&&!e(b)?String.fromCharCode(b.which):null;case C.topCompositionEnd:return z?null:b.data;default:return null}}function m(a,b,c,d,e){var f;if(f=y?k(a,d):l(a,d),!f)return null;var g=s.getPooled(D.beforeInput,c,d,e);return g.data=f,o.accumulateTwoPhaseDispatches(g),g}var n=a("./EventConstants"),o=a("./EventPropagators"),p=a("fbjs/lib/ExecutionEnvironment"),q=a("./FallbackCompositionState"),r=a("./SyntheticCompositionEvent"),s=a("./SyntheticInputEvent"),t=a("fbjs/lib/keyOf"),u=[9,13,27,32],v=229,w=p.canUseDOM&&"CompositionEvent"in window,x=null;p.canUseDOM&&"documentMode"in document&&(x=document.documentMode);var y=p.canUseDOM&&"TextEvent"in window&&!x&&!d(),z=p.canUseDOM&&(!w||x&&x>8&&11>=x),A=32,B=String.fromCharCode(A),C=n.topLevelTypes,D={beforeInput:{phasedRegistrationNames:{bubbled:t({onBeforeInput:null}),captured:t({onBeforeInputCapture:null})},dependencies:[C.topCompositionEnd,C.topKeyPress,C.topTextInput,C.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:t({onCompositionEnd:null}),captured:t({onCompositionEndCapture:null})},dependencies:[C.topBlur,C.topCompositionEnd,C.topKeyDown,C.topKeyPress,C.topKeyUp,C.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:t({onCompositionStart:null}),captured:t({onCompositionStartCapture:null})},dependencies:[C.topBlur,C.topCompositionStart,C.topKeyDown,C.topKeyPress,C.topKeyUp,C.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:t({onCompositionUpdate:null}),captured:t({onCompositionUpdateCapture:null})},dependencies:[C.topBlur,C.topCompositionUpdate,C.topKeyDown,C.topKeyPress,C.topKeyUp,C.topMouseDown]}},E=!1,F=null,G={eventTypes:D,extractEvents:function(a,b,c,d,e){return[j(a,b,c,d,e),m(a,b,c,d,e)]}};b.exports=G},{"./EventConstants":245,"./EventPropagators":249,"./FallbackCompositionState":250,"./SyntheticCompositionEvent":321,"./SyntheticInputEvent":325,"fbjs/lib/ExecutionEnvironment":361,"fbjs/lib/keyOf":379}],234:[function(a,b,c){"use strict";function d(a,b){return a+b.charAt(0).toUpperCase()+b.substring(1)}var e={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0},f=["Webkit","ms","Moz","O"];Object.keys(e).forEach(function(a){f.forEach(function(b){e[d(b,a)]=e[a]})});var g={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}},h={isUnitlessNumber:e,shorthandPropertyExpansions:g};b.exports=h},{}],235:[function(a,b,c){(function(c){"use strict";var d=a("./CSSProperty"),e=a("fbjs/lib/ExecutionEnvironment"),f=a("./ReactPerf"),g=a("fbjs/lib/camelizeStyleName"),h=a("./dangerousStyleValue"),i=a("fbjs/lib/hyphenateStyleName"),j=a("fbjs/lib/memoizeStringOnly"),k=a("fbjs/lib/warning"),l=j(function(a){return i(a)}),m=!1,n="cssFloat";if(e.canUseDOM){var o=document.createElement("div").style;try{o.font=""}catch(p){m=!0}void 0===document.documentElement.style.cssFloat&&(n="styleFloat")}if("production"!==c.env.NODE_ENV)var q=/^(?:webkit|moz|o)[A-Z]/,r=/;\s*$/,s={},t={},u=function(a){s.hasOwnProperty(a)&&s[a]||(s[a]=!0,"production"!==c.env.NODE_ENV?k(!1,"Unsupported style property %s. Did you mean %s?",a,g(a)):void 0)},v=function(a){s.hasOwnProperty(a)&&s[a]||(s[a]=!0,"production"!==c.env.NODE_ENV?k(!1,"Unsupported vendor-prefixed style property %s. Did you mean %s?",a,a.charAt(0).toUpperCase()+a.slice(1)):void 0)},w=function(a,b){t.hasOwnProperty(b)&&t[b]||(t[b]=!0,"production"!==c.env.NODE_ENV?k(!1,'Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.',a,b.replace(r,"")):void 0)},x=function(a,b){a.indexOf("-")>-1?u(a):q.test(a)?v(a):r.test(b)&&w(a,b)};var y={createMarkupForStyles:function(a){var b="";for(var d in a)if(a.hasOwnProperty(d)){var e=a[d];"production"!==c.env.NODE_ENV&&x(d,e),null!=e&&(b+=l(d)+":",b+=h(d,e)+";")}return b||null},setValueForStyles:function(a,b){var e=a.style;for(var f in b)if(b.hasOwnProperty(f)){"production"!==c.env.NODE_ENV&&x(f,b[f]);var g=h(f,b[f]);if("float"===f&&(f=n),g)e[f]=g;else{var i=m&&d.shorthandPropertyExpansions[f];if(i)for(var j in i)e[j]="";else e[f]=""}}}};f.measureMethods(y,"CSSPropertyOperations",{setValueForStyles:"setValueForStyles"}),b.exports=y}).call(this,a("_process"))},{"./CSSProperty":234,"./ReactPerf":302,"./dangerousStyleValue":336,_process:111,"fbjs/lib/ExecutionEnvironment":361,"fbjs/lib/camelizeStyleName":363,"fbjs/lib/hyphenateStyleName":374,"fbjs/lib/memoizeStringOnly":381,"fbjs/lib/warning":386}],236:[function(a,b,c){(function(c){"use strict";function d(){this._callbacks=null,this._contexts=null}var e=a("./PooledClass"),f=a("./Object.assign"),g=a("fbjs/lib/invariant");f(d.prototype,{enqueue:function(a,b){this._callbacks=this._callbacks||[],this._contexts=this._contexts||[],this._callbacks.push(a),this._contexts.push(b)},notifyAll:function(){var a=this._callbacks,b=this._contexts;if(a){a.length!==b.length?"production"!==c.env.NODE_ENV?g(!1,"Mismatched list of contexts in callback queue"):g(!1):void 0,this._callbacks=null,this._contexts=null;for(var d=0;d<a.length;d++)a[d].call(b[d]);a.length=0,b.length=0}},reset:function(){this._callbacks=null,this._contexts=null},destructor:function(){this.reset()}}),e.addPoolingTo(d),b.exports=d}).call(this,a("_process"))},{"./Object.assign":253,"./PooledClass":254,_process:111,"fbjs/lib/invariant":375}],237:[function(a,b,c){"use strict";function d(a){var b=a.nodeName&&a.nodeName.toLowerCase();return"select"===b||"input"===b&&"file"===a.type}function e(a){var b=x.getPooled(D.change,F,a,y(a));u.accumulateTwoPhaseDispatches(b),w.batchedUpdates(f,b)}function f(a){t.enqueueEvents(a),t.processEventQueue(!1)}function g(a,b){E=a,F=b,E.attachEvent("onchange",e)}function h(){E&&(E.detachEvent("onchange",e),E=null,F=null)}function i(a,b,c){return a===C.topChange?c:void 0}function j(a,b,c){a===C.topFocus?(h(),g(b,c)):a===C.topBlur&&h()}function k(a,b){E=a,F=b,G=a.value,H=Object.getOwnPropertyDescriptor(a.constructor.prototype,"value"),Object.defineProperty(E,"value",K),E.attachEvent("onpropertychange",m)}function l(){E&&(delete E.value,E.detachEvent("onpropertychange",m),E=null,F=null,G=null,H=null)}function m(a){if("value"===a.propertyName){var b=a.srcElement.value;b!==G&&(G=b,e(a))}}function n(a,b,c){return a===C.topInput?c:void 0}function o(a,b,c){a===C.topFocus?(l(),k(b,c)):a===C.topBlur&&l()}function p(a,b,c){return a!==C.topSelectionChange&&a!==C.topKeyUp&&a!==C.topKeyDown||!E||E.value===G?void 0:(G=E.value,F)}function q(a){return a.nodeName&&"input"===a.nodeName.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)}function r(a,b,c){return a===C.topClick?c:void 0}var s=a("./EventConstants"),t=a("./EventPluginHub"),u=a("./EventPropagators"),v=a("fbjs/lib/ExecutionEnvironment"),w=a("./ReactUpdates"),x=a("./SyntheticEvent"),y=a("./getEventTarget"),z=a("./isEventSupported"),A=a("./isTextInputElement"),B=a("fbjs/lib/keyOf"),C=s.topLevelTypes,D={change:{phasedRegistrationNames:{bubbled:B({onChange:null}),captured:B({onChangeCapture:null})},dependencies:[C.topBlur,C.topChange,C.topClick,C.topFocus,C.topInput,C.topKeyDown,C.topKeyUp,C.topSelectionChange]}},E=null,F=null,G=null,H=null,I=!1;v.canUseDOM&&(I=z("change")&&(!("documentMode"in document)||document.documentMode>8));var J=!1;v.canUseDOM&&(J=z("input")&&(!("documentMode"in document)||document.documentMode>9));var K={get:function(){return H.get.call(this)},set:function(a){G=""+a,H.set.call(this,a)}},L={eventTypes:D,extractEvents:function(a,b,c,e,f){var g,h;if(d(b)?I?g=i:h=j:A(b)?J?g=n:(g=p,h=o):q(b)&&(g=r),g){var k=g(a,b,c);if(k){var l=x.getPooled(D.change,k,e,f);return l.type="change",u.accumulateTwoPhaseDispatches(l),l}}h&&h(a,b,c)}};b.exports=L},{"./EventConstants":245,"./EventPluginHub":246,"./EventPropagators":249,"./ReactUpdates":314,"./SyntheticEvent":323,"./getEventTarget":345,"./isEventSupported":350,"./isTextInputElement":351,"fbjs/lib/ExecutionEnvironment":361,"fbjs/lib/keyOf":379}],238:[function(a,b,c){"use strict";var d=0,e={createReactRootIndex:function(){return d++}};b.exports=e},{}],239:[function(a,b,c){(function(c){"use strict";function d(a,b,c){var d=c>=a.childNodes.length?null:a.childNodes.item(c);a.insertBefore(b,d)}var e=a("./Danger"),f=a("./ReactMultiChildUpdateTypes"),g=a("./ReactPerf"),h=a("./setInnerHTML"),i=a("./setTextContent"),j=a("fbjs/lib/invariant"),k={dangerouslyReplaceNodeWithMarkup:e.dangerouslyReplaceNodeWithMarkup,updateTextContent:i,processUpdates:function(a,b){for(var g,k=null,l=null,m=0;m<a.length;m++)if(g=a[m],g.type===f.MOVE_EXISTING||g.type===f.REMOVE_NODE){var n=g.fromIndex,o=g.parentNode.childNodes[n],p=g.parentID;o?void 0:"production"!==c.env.NODE_ENV?j(!1,"processUpdates(): Unable to find child %s of element. This probably means the DOM was unexpectedly mutated (e.g., by the browser), usually due to forgetting a <tbody> when using tables, nesting tags like <form>, <p>, or <a>, or using non-SVG elements in an <svg> parent. Try inspecting the child nodes of the element with React ID `%s`.",n,p):j(!1),k=k||{},k[p]=k[p]||[],k[p][n]=o,l=l||[],l.push(o)}var q;if(q=b.length&&"string"==typeof b[0]?e.dangerouslyRenderMarkup(b):b,l)for(var r=0;r<l.length;r++)l[r].parentNode.removeChild(l[r]);for(var s=0;s<a.length;s++)switch(g=a[s],g.type){case f.INSERT_MARKUP:d(g.parentNode,q[g.markupIndex],g.toIndex);break;case f.MOVE_EXISTING:d(g.parentNode,k[g.parentID][g.fromIndex],g.toIndex);break;case f.SET_MARKUP:h(g.parentNode,g.content);break;case f.TEXT_CONTENT:i(g.parentNode,g.content);break;case f.REMOVE_NODE:}}};g.measureMethods(k,"DOMChildrenOperations",{updateTextContent:"updateTextContent"}),b.exports=k}).call(this,a("_process"))},{"./Danger":242,"./ReactMultiChildUpdateTypes":298,"./ReactPerf":302,"./setInnerHTML":355,"./setTextContent":356,_process:111,"fbjs/lib/invariant":375}],240:[function(a,b,c){(function(c){"use strict";function d(a,b){return(a&b)===b}var e=a("fbjs/lib/invariant"),f={MUST_USE_ATTRIBUTE:1,MUST_USE_PROPERTY:2,HAS_SIDE_EFFECTS:4,HAS_BOOLEAN_VALUE:8,HAS_NUMERIC_VALUE:16,HAS_POSITIVE_NUMERIC_VALUE:48,HAS_OVERLOADED_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(a){var b=f,g=a.Properties||{},i=a.DOMAttributeNamespaces||{},j=a.DOMAttributeNames||{},k=a.DOMPropertyNames||{},l=a.DOMMutationMethods||{};a.isCustomAttribute&&h._isCustomAttributeFunctions.push(a.isCustomAttribute);for(var m in g){h.properties.hasOwnProperty(m)?"production"!==c.env.NODE_ENV?e(!1,"injectDOMPropertyConfig(...): You're trying to inject DOM property '%s' which has already been injected. You may be accidentally injecting the same DOM property config twice, or you may be injecting two configs that have conflicting property names.",m):e(!1):void 0;var n=m.toLowerCase(),o=g[m],p={attributeName:n,attributeNamespace:null,propertyName:m,mutationMethod:null,mustUseAttribute:d(o,b.MUST_USE_ATTRIBUTE),mustUseProperty:d(o,b.MUST_USE_PROPERTY),hasSideEffects:d(o,b.HAS_SIDE_EFFECTS),hasBooleanValue:d(o,b.HAS_BOOLEAN_VALUE),hasNumericValue:d(o,b.HAS_NUMERIC_VALUE),hasPositiveNumericValue:d(o,b.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:d(o,b.HAS_OVERLOADED_BOOLEAN_VALUE)};if(p.mustUseAttribute&&p.mustUseProperty?"production"!==c.env.NODE_ENV?e(!1,"DOMProperty: Cannot require using both attribute and property: %s",m):e(!1):void 0,!p.mustUseProperty&&p.hasSideEffects?"production"!==c.env.NODE_ENV?e(!1,"DOMProperty: Properties that have side effects must use property: %s",m):e(!1):void 0,p.hasBooleanValue+p.hasNumericValue+p.hasOverloadedBooleanValue<=1?void 0:"production"!==c.env.NODE_ENV?e(!1,"DOMProperty: Value can be one of boolean, overloaded boolean, or numeric value, but not a combination: %s",m):e(!1),"production"!==c.env.NODE_ENV&&(h.getPossibleStandardName[n]=m),j.hasOwnProperty(m)){var q=j[m];p.attributeName=q,"production"!==c.env.NODE_ENV&&(h.getPossibleStandardName[q]=m)}i.hasOwnProperty(m)&&(p.attributeNamespace=i[m]),k.hasOwnProperty(m)&&(p.propertyName=k[m]),l.hasOwnProperty(m)&&(p.mutationMethod=l[m]),h.properties[m]=p}}},g={},h={ID_ATTRIBUTE_NAME:"data-reactid",properties:{},getPossibleStandardName:"production"!==c.env.NODE_ENV?{}:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(a){for(var b=0;b<h._isCustomAttributeFunctions.length;b++){var c=h._isCustomAttributeFunctions[b];if(c(a))return!0}return!1},getDefaultValueForProperty:function(a,b){var c,d=g[a];return d||(g[a]=d={}),b in d||(c=document.createElement(a),d[b]=c[b]),d[b]},injection:f};b.exports=h}).call(this,a("_process"))},{_process:111,"fbjs/lib/invariant":375}],241:[function(a,b,c){(function(c){"use strict";function d(a){return l.hasOwnProperty(a)?!0:k.hasOwnProperty(a)?!1:j.test(a)?(l[a]=!0,!0):(k[a]=!0,"production"!==c.env.NODE_ENV?i(!1,"Invalid attribute name: `%s`",a):void 0,!1)}function e(a,b){return null==b||a.hasBooleanValue&&!b||a.hasNumericValue&&isNaN(b)||a.hasPositiveNumericValue&&1>b||a.hasOverloadedBooleanValue&&b===!1}var f=a("./DOMProperty"),g=a("./ReactPerf"),h=a("./quoteAttributeValueForBrowser"),i=a("fbjs/lib/warning"),j=/^[a-zA-Z_][\w\.\-]*$/,k={},l={};if("production"!==c.env.NODE_ENV)var m={children:!0,dangerouslySetInnerHTML:!0,key:!0,ref:!0},n={},o=function(a){if(!(m.hasOwnProperty(a)&&m[a]||n.hasOwnProperty(a)&&n[a])){n[a]=!0;var b=a.toLowerCase(),d=f.isCustomAttribute(b)?b:f.getPossibleStandardName.hasOwnProperty(b)?f.getPossibleStandardName[b]:null;"production"!==c.env.NODE_ENV?i(null==d,"Unknown DOM property %s. Did you mean %s?",a,d):void 0}};var p={createMarkupForID:function(a){return f.ID_ATTRIBUTE_NAME+"="+h(a)},setAttributeForID:function(a,b){a.setAttribute(f.ID_ATTRIBUTE_NAME,b)},createMarkupForProperty:function(a,b){var d=f.properties.hasOwnProperty(a)?f.properties[a]:null;if(d){if(e(d,b))return"";var g=d.attributeName;return d.hasBooleanValue||d.hasOverloadedBooleanValue&&b===!0?g+'=""':g+"="+h(b)}return f.isCustomAttribute(a)?null==b?"":a+"="+h(b):("production"!==c.env.NODE_ENV&&o(a),null)},createMarkupForCustomAttribute:function(a,b){return d(a)&&null!=b?a+"="+h(b):""},setValueForProperty:function(a,b,d){var g=f.properties.hasOwnProperty(b)?f.properties[b]:null;if(g){var h=g.mutationMethod;if(h)h(a,d);else if(e(g,d))this.deleteValueForProperty(a,b);else if(g.mustUseAttribute){var i=g.attributeName,j=g.attributeNamespace;j?a.setAttributeNS(j,i,""+d):g.hasBooleanValue||g.hasOverloadedBooleanValue&&d===!0?a.setAttribute(i,""):a.setAttribute(i,""+d)}else{var k=g.propertyName;g.hasSideEffects&&""+a[k]==""+d||(a[k]=d)}}else f.isCustomAttribute(b)?p.setValueForAttribute(a,b,d):"production"!==c.env.NODE_ENV&&o(b)},setValueForAttribute:function(a,b,c){d(b)&&(null==c?a.removeAttribute(b):a.setAttribute(b,""+c))},deleteValueForProperty:function(a,b){var d=f.properties.hasOwnProperty(b)?f.properties[b]:null;if(d){var e=d.mutationMethod;if(e)e(a,void 0);else if(d.mustUseAttribute)a.removeAttribute(d.attributeName);else{var g=d.propertyName,h=f.getDefaultValueForProperty(a.nodeName,g);d.hasSideEffects&&""+a[g]===h||(a[g]=h)}}else f.isCustomAttribute(b)?a.removeAttribute(b):"production"!==c.env.NODE_ENV&&o(b)}};g.measureMethods(p,"DOMPropertyOperations",{setValueForProperty:"setValueForProperty",setValueForAttribute:"setValueForAttribute",deleteValueForProperty:"deleteValueForProperty"}),b.exports=p}).call(this,a("_process"))},{"./DOMProperty":240,"./ReactPerf":302,"./quoteAttributeValueForBrowser":353,_process:111,"fbjs/lib/warning":386}],242:[function(a,b,c){(function(c){"use strict";function d(a){return a.substring(1,a.indexOf(" "))}var e=a("fbjs/lib/ExecutionEnvironment"),f=a("fbjs/lib/createNodesFromMarkup"),g=a("fbjs/lib/emptyFunction"),h=a("fbjs/lib/getMarkupWrap"),i=a("fbjs/lib/invariant"),j=/^(<[^ \/>]+)/,k="data-danger-index",l={dangerouslyRenderMarkup:function(a){e.canUseDOM?void 0:"production"!==c.env.NODE_ENV?i(!1,"dangerouslyRenderMarkup(...): Cannot render markup in a worker thread. Make sure `window` and `document` are available globally before requiring React when unit testing or use ReactDOMServer.renderToString for server rendering."):i(!1);for(var b,l={},m=0;m<a.length;m++)a[m]?void 0:"production"!==c.env.NODE_ENV?i(!1,"dangerouslyRenderMarkup(...): Missing markup."):i(!1),b=d(a[m]),b=h(b)?b:"*",l[b]=l[b]||[],l[b][m]=a[m];var n=[],o=0;for(b in l)if(l.hasOwnProperty(b)){var p,q=l[b];for(p in q)if(q.hasOwnProperty(p)){var r=q[p];q[p]=r.replace(j,"$1 "+k+'="'+p+'" ')}for(var s=f(q.join(""),g),t=0;t<s.length;++t){var u=s[t];u.hasAttribute&&u.hasAttribute(k)?(p=+u.getAttribute(k),u.removeAttribute(k),n.hasOwnProperty(p)?"production"!==c.env.NODE_ENV?i(!1,"Danger: Assigning to an already-occupied result index."):i(!1):void 0,n[p]=u,o+=1):"production"!==c.env.NODE_ENV&&console.error("Danger: Discarding unexpected node:",u)}}return o!==n.length?"production"!==c.env.NODE_ENV?i(!1,"Danger: Did not assign to every index of resultList."):i(!1):void 0,n.length!==a.length?"production"!==c.env.NODE_ENV?i(!1,"Danger: Expected markup to render %s nodes, but rendered %s.",a.length,n.length):i(!1):void 0,n},dangerouslyReplaceNodeWithMarkup:function(a,b){e.canUseDOM?void 0:"production"!==c.env.NODE_ENV?i(!1,"dangerouslyReplaceNodeWithMarkup(...): Cannot render markup in a worker thread. Make sure `window` and `document` are available globally before requiring React when unit testing or use ReactDOMServer.renderToString() for server rendering."):i(!1),b?void 0:"production"!==c.env.NODE_ENV?i(!1,"dangerouslyReplaceNodeWithMarkup(...): Missing markup."):i(!1),"html"===a.tagName.toLowerCase()?"production"!==c.env.NODE_ENV?i(!1,"dangerouslyReplaceNodeWithMarkup(...): Cannot replace markup of the <html> node. This is because browser quirks make this unreliable and/or slow. If you want to render to the root you must use server rendering. See ReactDOMServer.renderToString()."):i(!1):void 0;var d;d="string"==typeof b?f(b,g)[0]:b,a.parentNode.replaceChild(d,a)}};b.exports=l}).call(this,a("_process"))},{_process:111,"fbjs/lib/ExecutionEnvironment":361,"fbjs/lib/createNodesFromMarkup":366,"fbjs/lib/emptyFunction":367,"fbjs/lib/getMarkupWrap":371,"fbjs/lib/invariant":375}],243:[function(a,b,c){"use strict";var d=a("fbjs/lib/keyOf"),e=[d({ResponderEventPlugin:null}),d({SimpleEventPlugin:null}),d({TapEventPlugin:null}),d({EnterLeaveEventPlugin:null}),d({ChangeEventPlugin:null}),d({SelectEventPlugin:null}),d({BeforeInputEventPlugin:null})];b.exports=e},{"fbjs/lib/keyOf":379}],244:[function(a,b,c){"use strict";var d=a("./EventConstants"),e=a("./EventPropagators"),f=a("./SyntheticMouseEvent"),g=a("./ReactMount"),h=a("fbjs/lib/keyOf"),i=d.topLevelTypes,j=g.getFirstReactDOM,k={mouseEnter:{registrationName:h({onMouseEnter:null}),dependencies:[i.topMouseOut,i.topMouseOver]},mouseLeave:{registrationName:h({onMouseLeave:null}),dependencies:[i.topMouseOut,i.topMouseOver]}},l=[null,null],m={eventTypes:k,extractEvents:function(a,b,c,d,h){if(a===i.topMouseOver&&(d.relatedTarget||d.fromElement))return null;if(a!==i.topMouseOut&&a!==i.topMouseOver)return null;var m;if(b.window===b)m=b;else{var n=b.ownerDocument;m=n?n.defaultView||n.parentWindow:window}var o,p,q="",r="";if(a===i.topMouseOut?(o=b,q=c,p=j(d.relatedTarget||d.toElement),p?r=g.getID(p):p=m,p=p||m):(o=m,p=b,r=c),o===p)return null;var s=f.getPooled(k.mouseLeave,q,d,h);s.type="mouseleave",s.target=o,s.relatedTarget=p;var t=f.getPooled(k.mouseEnter,r,d,h);return t.type="mouseenter",t.target=p,t.relatedTarget=o,e.accumulateEnterLeaveDispatches(s,t,q,r),l[0]=s,l[1]=t,l}};b.exports=m},{"./EventConstants":245,"./EventPropagators":249,"./ReactMount":296,"./SyntheticMouseEvent":327,"fbjs/lib/keyOf":379}],245:[function(a,b,c){"use strict";var d=a("fbjs/lib/keyMirror"),e=d({bubbled:null,captured:null}),f=d({topAbort:null,topBlur:null,topCanPlay:null,topCanPlayThrough:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topDurationChange:null,topEmptied:null,topEncrypted:null,topEnded:null,topError:null,topFocus:null,topInput:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topLoadedData:null,topLoadedMetadata:null,topLoadStart:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topPause:null,topPlay:null,topPlaying:null,topProgress:null,topRateChange:null,topReset:null,topScroll:null,topSeeked:null,topSeeking:null,topSelectionChange:null,topStalled:null,topSubmit:null,topSuspend:null,topTextInput:null,topTimeUpdate:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topVolumeChange:null,topWaiting:null,topWheel:null}),g={topLevelTypes:f,PropagationPhases:e};b.exports=g},{"fbjs/lib/keyMirror":378}],246:[function(a,b,c){(function(c){"use strict";function d(){var a=q&&q.traverseTwoPhase&&q.traverseEnterLeave;"production"!==c.env.NODE_ENV?k(a,"InstanceHandle not injected before use!"):void 0}var e=a("./EventPluginRegistry"),f=a("./EventPluginUtils"),g=a("./ReactErrorUtils"),h=a("./accumulateInto"),i=a("./forEachAccumulated"),j=a("fbjs/lib/invariant"),k=a("fbjs/lib/warning"),l={},m=null,n=function(a,b){a&&(f.executeDispatchesInOrder(a,b),a.isPersistent()||a.constructor.release(a))},o=function(a){return n(a,!0)},p=function(a){return n(a,!1)},q=null,r={injection:{injectMount:f.injection.injectMount,injectInstanceHandle:function(a){q=a,"production"!==c.env.NODE_ENV&&d()},getInstanceHandle:function(){return"production"!==c.env.NODE_ENV&&d(),q},injectEventPluginOrder:e.injectEventPluginOrder,injectEventPluginsByName:e.injectEventPluginsByName},eventNameDispatchConfigs:e.eventNameDispatchConfigs,registrationNameModules:e.registrationNameModules,putListener:function(a,b,d){"function"!=typeof d?"production"!==c.env.NODE_ENV?j(!1,"Expected %s listener to be a function, instead got type %s",b,typeof d):j(!1):void 0;var f=l[b]||(l[b]={});f[a]=d;var g=e.registrationNameModules[b];g&&g.didPutListener&&g.didPutListener(a,b,d)},getListener:function(a,b){var c=l[b];return c&&c[a]},deleteListener:function(a,b){var c=e.registrationNameModules[b];c&&c.willDeleteListener&&c.willDeleteListener(a,b);var d=l[b];d&&delete d[a]},deleteAllListeners:function(a){for(var b in l)if(l[b][a]){var c=e.registrationNameModules[b];c&&c.willDeleteListener&&c.willDeleteListener(a,b),delete l[b][a]}},extractEvents:function(a,b,c,d,f){for(var g,i=e.plugins,j=0;j<i.length;j++){var k=i[j];if(k){var l=k.extractEvents(a,b,c,d,f);l&&(g=h(g,l))}}return g},enqueueEvents:function(a){a&&(m=h(m,a))},processEventQueue:function(a){var b=m;m=null,a?i(b,o):i(b,p),m?"production"!==c.env.NODE_ENV?j(!1,"processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented."):j(!1):void 0,g.rethrowCaughtError()},__purge:function(){l={}},__getListenerBank:function(){return l}};b.exports=r}).call(this,a("_process"))},{"./EventPluginRegistry":247,"./EventPluginUtils":248,"./ReactErrorUtils":287,"./accumulateInto":333,"./forEachAccumulated":341,_process:111,"fbjs/lib/invariant":375,"fbjs/lib/warning":386}],247:[function(a,b,c){(function(c){"use strict";function d(){if(h)for(var a in i){var b=i[a],d=h.indexOf(a);if(d>-1?void 0:"production"!==c.env.NODE_ENV?g(!1,"EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.",a):g(!1),!j.plugins[d]){b.extractEvents?void 0:"production"!==c.env.NODE_ENV?g(!1,"EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.",a):g(!1),j.plugins[d]=b;var f=b.eventTypes;for(var k in f)e(f[k],b,k)?void 0:"production"!==c.env.NODE_ENV?g(!1,"EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.",k,a):g(!1)}}}function e(a,b,d){j.eventNameDispatchConfigs.hasOwnProperty(d)?"production"!==c.env.NODE_ENV?g(!1,"EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.",d):g(!1):void 0,j.eventNameDispatchConfigs[d]=a;var e=a.phasedRegistrationNames;if(e){for(var h in e)if(e.hasOwnProperty(h)){var i=e[h];f(i,b,d)}return!0}return a.registrationName?(f(a.registrationName,b,d),!0):!1}function f(a,b,d){j.registrationNameModules[a]?"production"!==c.env.NODE_ENV?g(!1,"EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.",a):g(!1):void 0,j.registrationNameModules[a]=b,j.registrationNameDependencies[a]=b.eventTypes[d].dependencies}var g=a("fbjs/lib/invariant"),h=null,i={},j={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},injectEventPluginOrder:function(a){h?"production"!==c.env.NODE_ENV?g(!1,"EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React."):g(!1):void 0,h=Array.prototype.slice.call(a),d()},injectEventPluginsByName:function(a){var b=!1;for(var e in a)if(a.hasOwnProperty(e)){var f=a[e];i.hasOwnProperty(e)&&i[e]===f||(i[e]?"production"!==c.env.NODE_ENV?g(!1,"EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.",e):g(!1):void 0,i[e]=f,b=!0)}b&&d()},getPluginModuleForEvent:function(a){var b=a.dispatchConfig;if(b.registrationName)return j.registrationNameModules[b.registrationName]||null;for(var c in b.phasedRegistrationNames)if(b.phasedRegistrationNames.hasOwnProperty(c)){var d=j.registrationNameModules[b.phasedRegistrationNames[c]];if(d)return d}return null},_resetEventPlugins:function(){h=null;for(var a in i)i.hasOwnProperty(a)&&delete i[a];j.plugins.length=0;var b=j.eventNameDispatchConfigs;for(var c in b)b.hasOwnProperty(c)&&delete b[c];var d=j.registrationNameModules;for(var e in d)d.hasOwnProperty(e)&&delete d[e]}};b.exports=j}).call(this,a("_process"))},{_process:111,"fbjs/lib/invariant":375}],248:[function(a,b,c){(function(c){"use strict";function d(a){return a===s.topMouseUp||a===s.topTouchEnd||a===s.topTouchCancel}function e(a){return a===s.topMouseMove||a===s.topTouchMove}function f(a){return a===s.topMouseDown||a===s.topTouchStart}function g(a,b,c,d){var e=a.type||"unknown-event";a.currentTarget=r.Mount.getNode(d),b?o.invokeGuardedCallbackWithCatch(e,c,a,d):o.invokeGuardedCallback(e,c,a,d),a.currentTarget=null}function h(a,b){var d=a._dispatchListeners,e=a._dispatchIDs;if("production"!==c.env.NODE_ENV&&m(a),Array.isArray(d))for(var f=0;f<d.length&&!a.isPropagationStopped();f++)g(a,b,d[f],e[f]);else d&&g(a,b,d,e);a._dispatchListeners=null,a._dispatchIDs=null}function i(a){var b=a._dispatchListeners,d=a._dispatchIDs;if("production"!==c.env.NODE_ENV&&m(a),Array.isArray(b)){for(var e=0;e<b.length&&!a.isPropagationStopped();e++)if(b[e](a,d[e]))return d[e]}else if(b&&b(a,d))return d;return null}function j(a){var b=i(a);return a._dispatchIDs=null,a._dispatchListeners=null,b}function k(a){"production"!==c.env.NODE_ENV&&m(a);var b=a._dispatchListeners,d=a._dispatchIDs;Array.isArray(b)?"production"!==c.env.NODE_ENV?p(!1,"executeDirectDispatch(...): Invalid `event`."):p(!1):void 0;var e=b?b(a,d):null;return a._dispatchListeners=null,a._dispatchIDs=null,e}function l(a){return!!a._dispatchListeners}var m,n=a("./EventConstants"),o=a("./ReactErrorUtils"),p=a("fbjs/lib/invariant"),q=a("fbjs/lib/warning"),r={Mount:null,injectMount:function(a){r.Mount=a,"production"!==c.env.NODE_ENV&&("production"!==c.env.NODE_ENV?q(a&&a.getNode&&a.getID,"EventPluginUtils.injection.injectMount(...): Injected Mount module is missing getNode or getID."):void 0)}},s=n.topLevelTypes;"production"!==c.env.NODE_ENV&&(m=function(a){var b=a._dispatchListeners,d=a._dispatchIDs,e=Array.isArray(b),f=Array.isArray(d),g=f?d.length:d?1:0,h=e?b.length:b?1:0;"production"!==c.env.NODE_ENV?q(f===e&&g===h,"EventPluginUtils: Invalid `event`."):void 0});var t={isEndish:d,isMoveish:e,isStartish:f,executeDirectDispatch:k,executeDispatchesInOrder:h,executeDispatchesInOrderStopAtTrue:j,hasDispatches:l,getNode:function(a){return r.Mount.getNode(a)},getID:function(a){
19
- return r.Mount.getID(a)},injection:r};b.exports=t}).call(this,a("_process"))},{"./EventConstants":245,"./ReactErrorUtils":287,_process:111,"fbjs/lib/invariant":375,"fbjs/lib/warning":386}],249:[function(a,b,c){(function(c){"use strict";function d(a,b,c){var d=b.dispatchConfig.phasedRegistrationNames[c];return t(a,d)}function e(a,b,e){"production"!==c.env.NODE_ENV&&("production"!==c.env.NODE_ENV?p(a,"Dispatching id must not be null"):void 0);var f=b?s.bubbled:s.captured,g=d(a,e,f);g&&(e._dispatchListeners=q(e._dispatchListeners,g),e._dispatchIDs=q(e._dispatchIDs,a))}function f(a){a&&a.dispatchConfig.phasedRegistrationNames&&o.injection.getInstanceHandle().traverseTwoPhase(a.dispatchMarker,e,a)}function g(a){a&&a.dispatchConfig.phasedRegistrationNames&&o.injection.getInstanceHandle().traverseTwoPhaseSkipTarget(a.dispatchMarker,e,a)}function h(a,b,c){if(c&&c.dispatchConfig.registrationName){var d=c.dispatchConfig.registrationName,e=t(a,d);e&&(c._dispatchListeners=q(c._dispatchListeners,e),c._dispatchIDs=q(c._dispatchIDs,a))}}function i(a){a&&a.dispatchConfig.registrationName&&h(a.dispatchMarker,null,a)}function j(a){r(a,f)}function k(a){r(a,g)}function l(a,b,c,d){o.injection.getInstanceHandle().traverseEnterLeave(c,d,h,a,b)}function m(a){r(a,i)}var n=a("./EventConstants"),o=a("./EventPluginHub"),p=a("fbjs/lib/warning"),q=a("./accumulateInto"),r=a("./forEachAccumulated"),s=n.PropagationPhases,t=o.getListener,u={accumulateTwoPhaseDispatches:j,accumulateTwoPhaseDispatchesSkipTarget:k,accumulateDirectDispatches:m,accumulateEnterLeaveDispatches:l};b.exports=u}).call(this,a("_process"))},{"./EventConstants":245,"./EventPluginHub":246,"./accumulateInto":333,"./forEachAccumulated":341,_process:111,"fbjs/lib/warning":386}],250:[function(a,b,c){"use strict";function d(a){this._root=a,this._startText=this.getText(),this._fallbackText=null}var e=a("./PooledClass"),f=a("./Object.assign"),g=a("./getTextContentAccessor");f(d.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[g()]},getData:function(){if(this._fallbackText)return this._fallbackText;var a,b,c=this._startText,d=c.length,e=this.getText(),f=e.length;for(a=0;d>a&&c[a]===e[a];a++);var g=d-a;for(b=1;g>=b&&c[d-b]===e[f-b];b++);var h=b>1?1-b:void 0;return this._fallbackText=e.slice(a,h),this._fallbackText}}),e.addPoolingTo(d),b.exports=d},{"./Object.assign":253,"./PooledClass":254,"./getTextContentAccessor":348}],251:[function(a,b,c){"use strict";var d,e=a("./DOMProperty"),f=a("fbjs/lib/ExecutionEnvironment"),g=e.injection.MUST_USE_ATTRIBUTE,h=e.injection.MUST_USE_PROPERTY,i=e.injection.HAS_BOOLEAN_VALUE,j=e.injection.HAS_SIDE_EFFECTS,k=e.injection.HAS_NUMERIC_VALUE,l=e.injection.HAS_POSITIVE_NUMERIC_VALUE,m=e.injection.HAS_OVERLOADED_BOOLEAN_VALUE;if(f.canUseDOM){var n=document.implementation;d=n&&n.hasFeature&&n.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}var o={isCustomAttribute:RegExp.prototype.test.bind(/^(data|aria)-[a-z_][a-z\d_.\-]*$/),Properties:{accept:null,acceptCharset:null,accessKey:null,action:null,allowFullScreen:g|i,allowTransparency:g,alt:null,async:i,autoComplete:null,autoPlay:i,capture:g|i,cellPadding:null,cellSpacing:null,charSet:g,challenge:g,checked:h|i,classID:g,className:d?g:h,cols:g|l,colSpan:null,content:null,contentEditable:null,contextMenu:g,controls:h|i,coords:null,crossOrigin:null,data:null,dateTime:g,"default":i,defer:i,dir:null,disabled:g|i,download:m,draggable:null,encType:null,form:g,formAction:g,formEncType:g,formMethod:g,formNoValidate:i,formTarget:g,frameBorder:g,headers:null,height:g,hidden:g|i,high:null,href:null,hrefLang:null,htmlFor:null,httpEquiv:null,icon:null,id:h,inputMode:g,integrity:null,is:g,keyParams:g,keyType:g,kind:null,label:null,lang:null,list:g,loop:h|i,low:null,manifest:g,marginHeight:null,marginWidth:null,max:null,maxLength:g,media:g,mediaGroup:null,method:null,min:null,minLength:g,multiple:h|i,muted:h|i,name:null,nonce:g,noValidate:i,open:i,optimum:null,pattern:null,placeholder:null,poster:null,preload:null,radioGroup:null,readOnly:h|i,rel:null,required:i,reversed:i,role:g,rows:g|l,rowSpan:null,sandbox:null,scope:null,scoped:i,scrolling:null,seamless:g|i,selected:h|i,shape:null,size:g|l,sizes:g,span:l,spellCheck:null,src:null,srcDoc:h,srcLang:null,srcSet:g,start:k,step:null,style:null,summary:null,tabIndex:null,target:null,title:null,type:null,useMap:null,value:h|j,width:g,wmode:g,wrap:null,about:g,datatype:g,inlist:g,prefix:g,property:g,resource:g,"typeof":g,vocab:g,autoCapitalize:g,autoCorrect:g,autoSave:null,color:null,itemProp:g,itemScope:g|i,itemType:g,itemID:g,itemRef:g,results:null,security:g,unselectable:g},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{autoComplete:"autocomplete",autoFocus:"autofocus",autoPlay:"autoplay",autoSave:"autosave",encType:"encoding",hrefLang:"hreflang",radioGroup:"radiogroup",spellCheck:"spellcheck",srcDoc:"srcdoc",srcSet:"srcset"}};b.exports=o},{"./DOMProperty":240,"fbjs/lib/ExecutionEnvironment":361}],252:[function(a,b,c){(function(c){"use strict";function d(a){null!=a.checkedLink&&null!=a.valueLink?"production"!==c.env.NODE_ENV?j(!1,"Cannot provide a checkedLink and a valueLink. If you want to use checkedLink, you probably don't want to use valueLink and vice versa."):j(!1):void 0}function e(a){d(a),null!=a.value||null!=a.onChange?"production"!==c.env.NODE_ENV?j(!1,"Cannot provide a valueLink and a value or onChange event. If you want to use value or onChange, you probably don't want to use valueLink."):j(!1):void 0}function f(a){d(a),null!=a.checked||null!=a.onChange?"production"!==c.env.NODE_ENV?j(!1,"Cannot provide a checkedLink and a checked property or onChange event. If you want to use checked or onChange, you probably don't want to use checkedLink"):j(!1):void 0}function g(a){if(a){var b=a.getName();if(b)return" Check the render method of `"+b+"`."}return""}var h=a("./ReactPropTypes"),i=a("./ReactPropTypeLocations"),j=a("fbjs/lib/invariant"),k=a("fbjs/lib/warning"),l={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},m={value:function(a,b,c){return!a[b]||l[a.type]||a.onChange||a.readOnly||a.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(a,b,c){return!a[b]||a.onChange||a.readOnly||a.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:h.func},n={},o={checkPropTypes:function(a,b,d){for(var e in m){if(m.hasOwnProperty(e))var f=m[e](b,e,a,i.prop);if(f instanceof Error&&!(f.message in n)){n[f.message]=!0;var h=g(d);"production"!==c.env.NODE_ENV?k(!1,"Failed form propType: %s%s",f.message,h):void 0}}},getValue:function(a){return a.valueLink?(e(a),a.valueLink.value):a.value},getChecked:function(a){return a.checkedLink?(f(a),a.checkedLink.value):a.checked},executeOnChange:function(a,b){return a.valueLink?(e(a),a.valueLink.requestChange(b.target.value)):a.checkedLink?(f(a),a.checkedLink.requestChange(b.target.checked)):a.onChange?a.onChange.call(void 0,b):void 0}};b.exports=o}).call(this,a("_process"))},{"./ReactPropTypeLocations":304,"./ReactPropTypes":305,_process:111,"fbjs/lib/invariant":375,"fbjs/lib/warning":386}],253:[function(a,b,c){"use strict";function d(a,b){if(null==a)throw new TypeError("Object.assign target cannot be null or undefined");for(var c=Object(a),d=Object.prototype.hasOwnProperty,e=1;e<arguments.length;e++){var f=arguments[e];if(null!=f){var g=Object(f);for(var h in g)d.call(g,h)&&(c[h]=g[h])}}return c}b.exports=d},{}],254:[function(a,b,c){(function(c){"use strict";var d=a("fbjs/lib/invariant"),e=function(a){var b=this;if(b.instancePool.length){var c=b.instancePool.pop();return b.call(c,a),c}return new b(a)},f=function(a,b){var c=this;if(c.instancePool.length){var d=c.instancePool.pop();return c.call(d,a,b),d}return new c(a,b)},g=function(a,b,c){var d=this;if(d.instancePool.length){var e=d.instancePool.pop();return d.call(e,a,b,c),e}return new d(a,b,c)},h=function(a,b,c,d){var e=this;if(e.instancePool.length){var f=e.instancePool.pop();return e.call(f,a,b,c,d),f}return new e(a,b,c,d)},i=function(a,b,c,d,e){var f=this;if(f.instancePool.length){var g=f.instancePool.pop();return f.call(g,a,b,c,d,e),g}return new f(a,b,c,d,e)},j=function(a){var b=this;a instanceof b?void 0:"production"!==c.env.NODE_ENV?d(!1,"Trying to release an instance into a pool of a different type."):d(!1),a.destructor(),b.instancePool.length<b.poolSize&&b.instancePool.push(a)},k=10,l=e,m=function(a,b){var c=a;return c.instancePool=[],c.getPooled=b||l,c.poolSize||(c.poolSize=k),c.release=j,c},n={addPoolingTo:m,oneArgumentPooler:e,twoArgumentPooler:f,threeArgumentPooler:g,fourArgumentPooler:h,fiveArgumentPooler:i};b.exports=n}).call(this,a("_process"))},{_process:111,"fbjs/lib/invariant":375}],255:[function(a,b,c){"use strict";var d=a("./ReactDOM"),e=a("./ReactDOMServer"),f=a("./ReactIsomorphic"),g=a("./Object.assign"),h=a("./deprecated"),i={};g(i,f),g(i,{findDOMNode:h("findDOMNode","ReactDOM","react-dom",d,d.findDOMNode),render:h("render","ReactDOM","react-dom",d,d.render),unmountComponentAtNode:h("unmountComponentAtNode","ReactDOM","react-dom",d,d.unmountComponentAtNode),renderToString:h("renderToString","ReactDOMServer","react-dom/server",e,e.renderToString),renderToStaticMarkup:h("renderToStaticMarkup","ReactDOMServer","react-dom/server",e,e.renderToStaticMarkup)}),i.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=d,i.__SECRET_DOM_SERVER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=e,b.exports=i},{"./Object.assign":253,"./ReactDOM":266,"./ReactDOMServer":276,"./ReactIsomorphic":294,"./deprecated":337}],256:[function(a,b,c){(function(c){"use strict";var d=a("./ReactInstanceMap"),e=a("./findDOMNode"),f=a("fbjs/lib/warning"),g="_getDOMNodeDidWarn",h={getDOMNode:function(){return"production"!==c.env.NODE_ENV?f(this.constructor[g],"%s.getDOMNode(...) is deprecated. Please use ReactDOM.findDOMNode(instance) instead.",d.get(this).getName()||this.tagName||"Unknown"):void 0,this.constructor[g]=!0,e(this)}};b.exports=h}).call(this,a("_process"))},{"./ReactInstanceMap":293,"./findDOMNode":339,_process:111,"fbjs/lib/warning":386}],257:[function(a,b,c){"use strict";function d(a){return Object.prototype.hasOwnProperty.call(a,q)||(a[q]=o++,m[a[q]]={}),m[a[q]]}var e=a("./EventConstants"),f=a("./EventPluginHub"),g=a("./EventPluginRegistry"),h=a("./ReactEventEmitterMixin"),i=a("./ReactPerf"),j=a("./ViewportMetrics"),k=a("./Object.assign"),l=a("./isEventSupported"),m={},n=!1,o=0,p={topAbort:"abort",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},q="_reactListenersID"+String(Math.random()).slice(2),r=k({},h,{ReactEventListener:null,injection:{injectReactEventListener:function(a){a.setHandleTopLevel(r.handleTopLevel),r.ReactEventListener=a}},setEnabled:function(a){r.ReactEventListener&&r.ReactEventListener.setEnabled(a)},isEnabled:function(){return!(!r.ReactEventListener||!r.ReactEventListener.isEnabled())},listenTo:function(a,b){for(var c=b,f=d(c),h=g.registrationNameDependencies[a],i=e.topLevelTypes,j=0;j<h.length;j++){var k=h[j];f.hasOwnProperty(k)&&f[k]||(k===i.topWheel?l("wheel")?r.ReactEventListener.trapBubbledEvent(i.topWheel,"wheel",c):l("mousewheel")?r.ReactEventListener.trapBubbledEvent(i.topWheel,"mousewheel",c):r.ReactEventListener.trapBubbledEvent(i.topWheel,"DOMMouseScroll",c):k===i.topScroll?l("scroll",!0)?r.ReactEventListener.trapCapturedEvent(i.topScroll,"scroll",c):r.ReactEventListener.trapBubbledEvent(i.topScroll,"scroll",r.ReactEventListener.WINDOW_HANDLE):k===i.topFocus||k===i.topBlur?(l("focus",!0)?(r.ReactEventListener.trapCapturedEvent(i.topFocus,"focus",c),r.ReactEventListener.trapCapturedEvent(i.topBlur,"blur",c)):l("focusin")&&(r.ReactEventListener.trapBubbledEvent(i.topFocus,"focusin",c),r.ReactEventListener.trapBubbledEvent(i.topBlur,"focusout",c)),f[i.topBlur]=!0,f[i.topFocus]=!0):p.hasOwnProperty(k)&&r.ReactEventListener.trapBubbledEvent(k,p[k],c),f[k]=!0)}},trapBubbledEvent:function(a,b,c){return r.ReactEventListener.trapBubbledEvent(a,b,c)},trapCapturedEvent:function(a,b,c){return r.ReactEventListener.trapCapturedEvent(a,b,c)},ensureScrollValueMonitoring:function(){if(!n){var a=j.refreshScrollValues;r.ReactEventListener.monitorScrollValue(a),n=!0}},eventNameDispatchConfigs:f.eventNameDispatchConfigs,registrationNameModules:f.registrationNameModules,putListener:f.putListener,getListener:f.getListener,deleteListener:f.deleteListener,deleteAllListeners:f.deleteAllListeners});i.measureMethods(r,"ReactBrowserEventEmitter",{putListener:"putListener",deleteListener:"deleteListener"}),b.exports=r},{"./EventConstants":245,"./EventPluginHub":246,"./EventPluginRegistry":247,"./Object.assign":253,"./ReactEventEmitterMixin":288,"./ReactPerf":302,"./ViewportMetrics":332,"./isEventSupported":350}],258:[function(a,b,c){(function(c){"use strict";function d(a,b,d){var e=void 0===a[d];"production"!==c.env.NODE_ENV&&("production"!==c.env.NODE_ENV?i(e,"flattenChildren(...): Encountered two children with the same key, `%s`. Child keys must be unique; when two children share a key, only the first child will be used.",d):void 0),null!=b&&e&&(a[d]=f(b,null))}var e=a("./ReactReconciler"),f=a("./instantiateReactComponent"),g=a("./shouldUpdateReactComponent"),h=a("./traverseAllChildren"),i=a("fbjs/lib/warning"),j={instantiateChildren:function(a,b,c){if(null==a)return null;var e={};return h(a,d,e),e},updateChildren:function(a,b,c,d){if(!b&&!a)return null;var h;for(h in b)if(b.hasOwnProperty(h)){var i=a&&a[h],j=i&&i._currentElement,k=b[h];if(null!=i&&g(j,k))e.receiveComponent(i,k,c,d),b[h]=i;else{i&&e.unmountComponent(i,h);var l=f(k,null);b[h]=l}}for(h in a)!a.hasOwnProperty(h)||b&&b.hasOwnProperty(h)||e.unmountComponent(a[h]);return b},unmountChildren:function(a){for(var b in a)if(a.hasOwnProperty(b)){var c=a[b];e.unmountComponent(c)}}};b.exports=j}).call(this,a("_process"))},{"./ReactReconciler":307,"./instantiateReactComponent":349,"./shouldUpdateReactComponent":357,"./traverseAllChildren":358,_process:111,"fbjs/lib/warning":386}],259:[function(a,b,c){"use strict";function d(a){return(""+a).replace(u,"//")}function e(a,b){this.func=a,this.context=b,this.count=0}function f(a,b,c){var d=a.func,e=a.context;d.call(e,b,a.count++)}function g(a,b,c){if(null==a)return a;var d=e.getPooled(b,c);r(a,f,d),e.release(d)}function h(a,b,c,d){this.result=a,this.keyPrefix=b,this.func=c,this.context=d,this.count=0}function i(a,b,c){var e=a.result,f=a.keyPrefix,g=a.func,h=a.context,i=g.call(h,b,a.count++);Array.isArray(i)?j(i,e,c,q.thatReturnsArgument):null!=i&&(p.isValidElement(i)&&(i=p.cloneAndReplaceKey(i,f+(i!==b?d(i.key||"")+"/":"")+c)),e.push(i))}function j(a,b,c,e,f){var g="";null!=c&&(g=d(c)+"/");var j=h.getPooled(b,g,e,f);r(a,i,j),h.release(j)}function k(a,b,c){if(null==a)return a;var d=[];return j(a,d,null,b,c),d}function l(a,b,c){return null}function m(a,b){return r(a,l,null)}function n(a){var b=[];return j(a,b,null,q.thatReturnsArgument),b}var o=a("./PooledClass"),p=a("./ReactElement"),q=a("fbjs/lib/emptyFunction"),r=a("./traverseAllChildren"),s=o.twoArgumentPooler,t=o.fourArgumentPooler,u=/\/(?!\/)/g;e.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},o.addPoolingTo(e,s),h.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},o.addPoolingTo(h,t);var v={forEach:g,map:k,mapIntoWithKeyPrefixInternal:j,count:m,toArray:n};b.exports=v},{"./PooledClass":254,"./ReactElement":283,"./traverseAllChildren":358,"fbjs/lib/emptyFunction":367}],260:[function(a,b,c){(function(c){"use strict";function d(){B||(B=!0,"production"!==c.env.NODE_ENV?x(!1,"setProps(...) and replaceProps(...) are deprecated. Instead, call render again at the top level."):void 0)}function e(a,b,d){for(var e in b)b.hasOwnProperty(e)&&("production"!==c.env.NODE_ENV?x("function"==typeof b[e],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",a.displayName||"ReactClass",q[d],e):void 0)}function f(a,b){var d=C.hasOwnProperty(b)?C[b]:null;E.hasOwnProperty(b)&&(d!==z.OVERRIDE_BASE?"production"!==c.env.NODE_ENV?u(!1,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",b):u(!1):void 0),a.hasOwnProperty(b)&&(d!==z.DEFINE_MANY&&d!==z.DEFINE_MANY_MERGED?"production"!==c.env.NODE_ENV?u(!1,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",b):u(!1):void 0)}function g(a,b){if(b){"function"==typeof b?"production"!==c.env.NODE_ENV?u(!1,"ReactClass: You're attempting to use a component class as a mixin. Instead, just use a regular object."):u(!1):void 0,o.isValidElement(b)?"production"!==c.env.NODE_ENV?u(!1,"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object."):u(!1):void 0;var d=a.prototype;b.hasOwnProperty(y)&&D.mixins(a,b.mixins);for(var e in b)if(b.hasOwnProperty(e)&&e!==y){var g=b[e];if(f(d,e),D.hasOwnProperty(e))D[e](a,g);else{var h=C.hasOwnProperty(e),i=d.hasOwnProperty(e),l="function"==typeof g,m=l&&!h&&!i&&b.autobind!==!1;if(m)d.__reactAutoBindMap||(d.__reactAutoBindMap={}),d.__reactAutoBindMap[e]=g,d[e]=g;else if(i){var n=C[e];!h||n!==z.DEFINE_MANY_MERGED&&n!==z.DEFINE_MANY?"production"!==c.env.NODE_ENV?u(!1,"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",n,e):u(!1):void 0,n===z.DEFINE_MANY_MERGED?d[e]=j(d[e],g):n===z.DEFINE_MANY&&(d[e]=k(d[e],g))}else d[e]=g,"production"!==c.env.NODE_ENV&&"function"==typeof g&&b.displayName&&(d[e].displayName=b.displayName+"_"+e)}}}}function h(a,b){if(b)for(var d in b){var e=b[d];if(b.hasOwnProperty(d)){var f=d in D;f?"production"!==c.env.NODE_ENV?u(!1,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',d):u(!1):void 0;var g=d in a;g?"production"!==c.env.NODE_ENV?u(!1,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",d):u(!1):void 0,a[d]=e}}}function i(a,b){a&&b&&"object"==typeof a&&"object"==typeof b?void 0:"production"!==c.env.NODE_ENV?u(!1,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."):u(!1);for(var d in b)b.hasOwnProperty(d)&&(void 0!==a[d]?"production"!==c.env.NODE_ENV?u(!1,"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",d):u(!1):void 0,a[d]=b[d]);return a}function j(a,b){return function(){var c=a.apply(this,arguments),d=b.apply(this,arguments);if(null==c)return d;if(null==d)return c;var e={};return i(e,c),i(e,d),e}}function k(a,b){return function(){a.apply(this,arguments),b.apply(this,arguments)}}function l(a,b){var d=b.bind(a);if("production"!==c.env.NODE_ENV){d.__reactBoundContext=a,d.__reactBoundMethod=b,d.__reactBoundArguments=null;var e=a.constructor.displayName,f=d.bind;d.bind=function(g){for(var h=arguments.length,i=Array(h>1?h-1:0),j=1;h>j;j++)i[j-1]=arguments[j];if(g!==a&&null!==g)"production"!==c.env.NODE_ENV?x(!1,"bind(): React component methods may only be bound to the component instance. See %s",e):void 0;else if(!i.length)return"production"!==c.env.NODE_ENV?x(!1,"bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call. See %s",e):void 0,d;var k=f.apply(d,arguments);return k.__reactBoundContext=a,k.__reactBoundMethod=b,k.__reactBoundArguments=i,k}}return d}function m(a){for(var b in a.__reactAutoBindMap)if(a.__reactAutoBindMap.hasOwnProperty(b)){var c=a.__reactAutoBindMap[b];a[b]=l(a,c)}}var n=a("./ReactComponent"),o=a("./ReactElement"),p=a("./ReactPropTypeLocations"),q=a("./ReactPropTypeLocationNames"),r=a("./ReactNoopUpdateQueue"),s=a("./Object.assign"),t=a("fbjs/lib/emptyObject"),u=a("fbjs/lib/invariant"),v=a("fbjs/lib/keyMirror"),w=a("fbjs/lib/keyOf"),x=a("fbjs/lib/warning"),y=w({mixins:null}),z=v({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),A=[],B=!1,C={mixins:z.DEFINE_MANY,statics:z.DEFINE_MANY,propTypes:z.DEFINE_MANY,contextTypes:z.DEFINE_MANY,childContextTypes:z.DEFINE_MANY,getDefaultProps:z.DEFINE_MANY_MERGED,getInitialState:z.DEFINE_MANY_MERGED,getChildContext:z.DEFINE_MANY_MERGED,render:z.DEFINE_ONCE,componentWillMount:z.DEFINE_MANY,componentDidMount:z.DEFINE_MANY,componentWillReceiveProps:z.DEFINE_MANY,shouldComponentUpdate:z.DEFINE_ONCE,componentWillUpdate:z.DEFINE_MANY,componentDidUpdate:z.DEFINE_MANY,componentWillUnmount:z.DEFINE_MANY,updateComponent:z.OVERRIDE_BASE},D={displayName:function(a,b){a.displayName=b},mixins:function(a,b){if(b)for(var c=0;c<b.length;c++)g(a,b[c])},childContextTypes:function(a,b){"production"!==c.env.NODE_ENV&&e(a,b,p.childContext),a.childContextTypes=s({},a.childContextTypes,b)},contextTypes:function(a,b){"production"!==c.env.NODE_ENV&&e(a,b,p.context),a.contextTypes=s({},a.contextTypes,b)},getDefaultProps:function(a,b){a.getDefaultProps?a.getDefaultProps=j(a.getDefaultProps,b):a.getDefaultProps=b},propTypes:function(a,b){"production"!==c.env.NODE_ENV&&e(a,b,p.prop),a.propTypes=s({},a.propTypes,b)},statics:function(a,b){h(a,b)},autobind:function(){}},E={replaceState:function(a,b){this.updater.enqueueReplaceState(this,a),b&&this.updater.enqueueCallback(this,b)},isMounted:function(){return this.updater.isMounted(this)},setProps:function(a,b){"production"!==c.env.NODE_ENV&&d(),this.updater.enqueueSetProps(this,a),b&&this.updater.enqueueCallback(this,b)},replaceProps:function(a,b){"production"!==c.env.NODE_ENV&&d(),this.updater.enqueueReplaceProps(this,a),b&&this.updater.enqueueCallback(this,b)}},F=function(){};s(F.prototype,n.prototype,E);var G={createClass:function(a){var b=function(a,d,e){"production"!==c.env.NODE_ENV&&("production"!==c.env.NODE_ENV?x(this instanceof b,"Something is calling a React component directly. Use a factory or JSX instead. See: https://fb.me/react-legacyfactory"):void 0),this.__reactAutoBindMap&&m(this),this.props=a,this.context=d,this.refs=t,this.updater=e||r,this.state=null;var f=this.getInitialState?this.getInitialState():null;"production"!==c.env.NODE_ENV&&"undefined"==typeof f&&this.getInitialState._isMockFunction&&(f=null),"object"!=typeof f||Array.isArray(f)?"production"!==c.env.NODE_ENV?u(!1,"%s.getInitialState(): must return an object or null",b.displayName||"ReactCompositeComponent"):u(!1):void 0,this.state=f};b.prototype=new F,b.prototype.constructor=b,A.forEach(g.bind(null,b)),g(b,a),b.getDefaultProps&&(b.defaultProps=b.getDefaultProps()),"production"!==c.env.NODE_ENV&&(b.getDefaultProps&&(b.getDefaultProps.isReactClassApproved={}),b.prototype.getInitialState&&(b.prototype.getInitialState.isReactClassApproved={})),b.prototype.render?void 0:"production"!==c.env.NODE_ENV?u(!1,"createClass(...): Class specification must implement a `render` method."):u(!1),"production"!==c.env.NODE_ENV&&("production"!==c.env.NODE_ENV?x(!b.prototype.componentShouldUpdate,"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",a.displayName||"A component"):void 0,"production"!==c.env.NODE_ENV?x(!b.prototype.componentWillRecieveProps,"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",a.displayName||"A component"):void 0);for(var d in C)b.prototype[d]||(b.prototype[d]=null);return b},injection:{injectMixin:function(a){A.push(a)}}};b.exports=G}).call(this,a("_process"))},{"./Object.assign":253,"./ReactComponent":261,"./ReactElement":283,"./ReactNoopUpdateQueue":300,"./ReactPropTypeLocationNames":303,"./ReactPropTypeLocations":304,_process:111,"fbjs/lib/emptyObject":368,"fbjs/lib/invariant":375,"fbjs/lib/keyMirror":378,"fbjs/lib/keyOf":379,"fbjs/lib/warning":386}],261:[function(a,b,c){(function(c){"use strict";function d(a,b,c){this.props=a,this.context=b,this.refs=g,this.updater=c||e}var e=a("./ReactNoopUpdateQueue"),f=a("./canDefineProperty"),g=a("fbjs/lib/emptyObject"),h=a("fbjs/lib/invariant"),i=a("fbjs/lib/warning");if(d.prototype.isReactComponent={},d.prototype.setState=function(a,b){"object"!=typeof a&&"function"!=typeof a&&null!=a?"production"!==c.env.NODE_ENV?h(!1,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."):h(!1):void 0,"production"!==c.env.NODE_ENV&&("production"!==c.env.NODE_ENV?i(null!=a,"setState(...): You passed an undefined or null state object; instead, use forceUpdate()."):void 0),this.updater.enqueueSetState(this,a),b&&this.updater.enqueueCallback(this,b)},d.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this),a&&this.updater.enqueueCallback(this,a)},"production"!==c.env.NODE_ENV){var j={getDOMNode:["getDOMNode","Use ReactDOM.findDOMNode(component) instead."],isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceProps:["replaceProps","Instead, call render again at the top level."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."],setProps:["setProps","Instead, call render again at the top level."]},k=function(a,b){f&&Object.defineProperty(d.prototype,a,{get:function(){"production"!==c.env.NODE_ENV?i(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",b[0],b[1]):void 0}})};for(var l in j)j.hasOwnProperty(l)&&k(l,j[l])}b.exports=d}).call(this,a("_process"))},{"./ReactNoopUpdateQueue":300,"./canDefineProperty":335,_process:111,"fbjs/lib/emptyObject":368,"fbjs/lib/invariant":375,"fbjs/lib/warning":386}],262:[function(a,b,c){"use strict";var d=a("./ReactDOMIDOperations"),e=a("./ReactMount"),f={processChildrenUpdates:d.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkupByID:d.dangerouslyReplaceNodeWithMarkupByID,unmountIDFromEnvironment:function(a){e.purgeID(a)}};b.exports=f},{"./ReactDOMIDOperations":271,"./ReactMount":296}],263:[function(a,b,c){(function(c){"use strict";var d=a("fbjs/lib/invariant"),e=!1,f={unmountIDFromEnvironment:null,replaceNodeWithMarkupByID:null,processChildrenUpdates:null,injection:{injectEnvironment:function(a){e?"production"!==c.env.NODE_ENV?d(!1,"ReactCompositeComponent: injectEnvironment() can only be called once."):d(!1):void 0,f.unmountIDFromEnvironment=a.unmountIDFromEnvironment,f.replaceNodeWithMarkupByID=a.replaceNodeWithMarkupByID,f.processChildrenUpdates=a.processChildrenUpdates,e=!0}}};b.exports=f}).call(this,a("_process"))},{_process:111,"fbjs/lib/invariant":375}],264:[function(a,b,c){(function(c){"use strict";function d(a){var b=a._currentElement._owner||null;if(b){var c=b.getName();if(c)return" Check the render method of `"+c+"`."}return""}function e(a){}var f=a("./ReactComponentEnvironment"),g=a("./ReactCurrentOwner"),h=a("./ReactElement"),i=a("./ReactInstanceMap"),j=a("./ReactPerf"),k=a("./ReactPropTypeLocations"),l=a("./ReactPropTypeLocationNames"),m=a("./ReactReconciler"),n=a("./ReactUpdateQueue"),o=a("./Object.assign"),p=a("fbjs/lib/emptyObject"),q=a("fbjs/lib/invariant"),r=a("./shouldUpdateReactComponent"),s=a("fbjs/lib/warning");e.prototype.render=function(){var a=i.get(this)._currentElement.type;return a(this.props,this.context,this.updater)};var t=1,u={construct:function(a){this._currentElement=a,this._rootNodeID=null,this._instance=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null},mountComponent:function(a,b,d){this._context=d,this._mountOrder=t++,this._rootNodeID=a;var f,j,k=this._processProps(this._currentElement.props),l=this._processContext(d),o=this._currentElement.type,r="prototype"in o;if(r)if("production"!==c.env.NODE_ENV){g.current=this;try{f=new o(k,l,n)}finally{g.current=null}}else f=new o(k,l,n);r&&null!==f&&f!==!1&&!h.isValidElement(f)||(j=f,f=new e(o)),"production"!==c.env.NODE_ENV&&(null==f.render?"production"!==c.env.NODE_ENV?s(!1,"%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`, returned null/false from a stateless component, or tried to render an element whose type is a function that isn't a React component.",o.displayName||o.name||"Component"):void 0:"production"!==c.env.NODE_ENV?s(o.prototype&&o.prototype.isReactComponent||!r||!(f instanceof o),"%s(...): React component classes must extend React.Component.",o.displayName||o.name||"Component"):void 0),f.props=k,f.context=l,f.refs=p,f.updater=n,this._instance=f,i.set(f,this),"production"!==c.env.NODE_ENV&&("production"!==c.env.NODE_ENV?s(!f.getInitialState||f.getInitialState.isReactClassApproved,"getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",this.getName()||"a component"):void 0,"production"!==c.env.NODE_ENV?s(!f.getDefaultProps||f.getDefaultProps.isReactClassApproved,"getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",this.getName()||"a component"):void 0,"production"!==c.env.NODE_ENV?s(!f.propTypes,"propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",this.getName()||"a component"):void 0,"production"!==c.env.NODE_ENV?s(!f.contextTypes,"contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",this.getName()||"a component"):void 0,"production"!==c.env.NODE_ENV?s("function"!=typeof f.componentShouldUpdate,"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",this.getName()||"A component"):void 0,
20
- "production"!==c.env.NODE_ENV?s("function"!=typeof f.componentDidUnmount,"%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",this.getName()||"A component"):void 0,"production"!==c.env.NODE_ENV?s("function"!=typeof f.componentWillRecieveProps,"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",this.getName()||"A component"):void 0);var u=f.state;void 0===u&&(f.state=u=null),"object"!=typeof u||Array.isArray(u)?"production"!==c.env.NODE_ENV?q(!1,"%s.state: must be set to an object or null",this.getName()||"ReactCompositeComponent"):q(!1):void 0,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,f.componentWillMount&&(f.componentWillMount(),this._pendingStateQueue&&(f.state=this._processPendingState(f.props,f.context))),void 0===j&&(j=this._renderValidatedComponent()),this._renderedComponent=this._instantiateReactComponent(j);var v=m.mountComponent(this._renderedComponent,a,b,this._processChildContext(d));return f.componentDidMount&&b.getReactMountReady().enqueue(f.componentDidMount,f),v},unmountComponent:function(){var a=this._instance;a.componentWillUnmount&&a.componentWillUnmount(),m.unmountComponent(this._renderedComponent),this._renderedComponent=null,this._instance=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=null,this._topLevelWrapper=null,i.remove(a)},_maskContext:function(a){var b=null,c=this._currentElement.type,d=c.contextTypes;if(!d)return p;b={};for(var e in d)b[e]=a[e];return b},_processContext:function(a){var b=this._maskContext(a);if("production"!==c.env.NODE_ENV){var d=this._currentElement.type;d.contextTypes&&this._checkPropTypes(d.contextTypes,b,k.context)}return b},_processChildContext:function(a){var b=this._currentElement.type,d=this._instance,e=d.getChildContext&&d.getChildContext();if(e){"object"!=typeof b.childContextTypes?"production"!==c.env.NODE_ENV?q(!1,"%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",this.getName()||"ReactCompositeComponent"):q(!1):void 0,"production"!==c.env.NODE_ENV&&this._checkPropTypes(b.childContextTypes,e,k.childContext);for(var f in e)f in b.childContextTypes?void 0:"production"!==c.env.NODE_ENV?q(!1,'%s.getChildContext(): key "%s" is not defined in childContextTypes.',this.getName()||"ReactCompositeComponent",f):q(!1);return o({},a,e)}return a},_processProps:function(a){if("production"!==c.env.NODE_ENV){var b=this._currentElement.type;b.propTypes&&this._checkPropTypes(b.propTypes,a,k.prop)}return a},_checkPropTypes:function(a,b,e){var f=this.getName();for(var g in a)if(a.hasOwnProperty(g)){var h;try{"function"!=typeof a[g]?"production"!==c.env.NODE_ENV?q(!1,"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",f||"React class",l[e],g):q(!1):void 0,h=a[g](b,g,f,e)}catch(i){h=i}if(h instanceof Error){var j=d(this);e===k.prop?"production"!==c.env.NODE_ENV?s(!1,"Failed Composite propType: %s%s",h.message,j):void 0:"production"!==c.env.NODE_ENV?s(!1,"Failed Context Types: %s%s",h.message,j):void 0}}},receiveComponent:function(a,b,c){var d=this._currentElement,e=this._context;this._pendingElement=null,this.updateComponent(b,d,a,e,c)},performUpdateIfNecessary:function(a){null!=this._pendingElement&&m.receiveComponent(this,this._pendingElement||this._currentElement,a,this._context),(null!==this._pendingStateQueue||this._pendingForceUpdate)&&this.updateComponent(a,this._currentElement,this._currentElement,this._context,this._context)},updateComponent:function(a,b,d,e,f){var g,h=this._instance,i=this._context===f?h.context:this._processContext(f);b===d?g=d.props:(g=this._processProps(d.props),h.componentWillReceiveProps&&h.componentWillReceiveProps(g,i));var j=this._processPendingState(g,i),k=this._pendingForceUpdate||!h.shouldComponentUpdate||h.shouldComponentUpdate(g,j,i);"production"!==c.env.NODE_ENV&&("production"!==c.env.NODE_ENV?s("undefined"!=typeof k,"%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",this.getName()||"ReactCompositeComponent"):void 0),k?(this._pendingForceUpdate=!1,this._performComponentUpdate(d,g,j,i,a,f)):(this._currentElement=d,this._context=f,h.props=g,h.state=j,h.context=i)},_processPendingState:function(a,b){var c=this._instance,d=this._pendingStateQueue,e=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!d)return c.state;if(e&&1===d.length)return d[0];for(var f=o({},e?d[0]:c.state),g=e?1:0;g<d.length;g++){var h=d[g];o(f,"function"==typeof h?h.call(c,f,a,b):h)}return f},_performComponentUpdate:function(a,b,c,d,e,f){var g,h,i,j=this._instance,k=Boolean(j.componentDidUpdate);k&&(g=j.props,h=j.state,i=j.context),j.componentWillUpdate&&j.componentWillUpdate(b,c,d),this._currentElement=a,this._context=f,j.props=b,j.state=c,j.context=d,this._updateRenderedComponent(e,f),k&&e.getReactMountReady().enqueue(j.componentDidUpdate.bind(j,g,h,i),j)},_updateRenderedComponent:function(a,b){var c=this._renderedComponent,d=c._currentElement,e=this._renderValidatedComponent();if(r(d,e))m.receiveComponent(c,e,a,this._processChildContext(b));else{var f=this._rootNodeID,g=c._rootNodeID;m.unmountComponent(c),this._renderedComponent=this._instantiateReactComponent(e);var h=m.mountComponent(this._renderedComponent,f,a,this._processChildContext(b));this._replaceNodeWithMarkupByID(g,h)}},_replaceNodeWithMarkupByID:function(a,b){f.replaceNodeWithMarkupByID(a,b)},_renderValidatedComponentWithoutOwnerOrContext:function(){var a=this._instance,b=a.render();return"production"!==c.env.NODE_ENV&&"undefined"==typeof b&&a.render._isMockFunction&&(b=null),b},_renderValidatedComponent:function(){var a;g.current=this;try{a=this._renderValidatedComponentWithoutOwnerOrContext()}finally{g.current=null}return null===a||a===!1||h.isValidElement(a)?void 0:"production"!==c.env.NODE_ENV?q(!1,"%s.render(): A valid ReactComponent must be returned. You may have returned undefined, an array or some other invalid object.",this.getName()||"ReactCompositeComponent"):q(!1),a},attachRef:function(a,b){var d=this.getPublicInstance();null==d?"production"!==c.env.NODE_ENV?q(!1,"Stateless function components cannot have refs."):q(!1):void 0;var e=b.getPublicInstance();if("production"!==c.env.NODE_ENV){var f=b&&b.getName?b.getName():"a component";"production"!==c.env.NODE_ENV?s(null!=e,'Stateless function components cannot be given refs (See ref "%s" in %s created by %s). Attempts to access this ref will fail.',a,f,this.getName()):void 0}var g=d.refs===p?d.refs={}:d.refs;g[a]=e},detachRef:function(a){var b=this.getPublicInstance().refs;delete b[a]},getName:function(){var a=this._currentElement.type,b=this._instance&&this._instance.constructor;return a.displayName||b&&b.displayName||a.name||b&&b.name||null},getPublicInstance:function(){var a=this._instance;return a instanceof e?null:a},_instantiateReactComponent:null};j.measureMethods(u,"ReactCompositeComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent",_renderValidatedComponent:"_renderValidatedComponent"});var v={Mixin:u};b.exports=v}).call(this,a("_process"))},{"./Object.assign":253,"./ReactComponentEnvironment":263,"./ReactCurrentOwner":265,"./ReactElement":283,"./ReactInstanceMap":293,"./ReactPerf":302,"./ReactPropTypeLocationNames":303,"./ReactPropTypeLocations":304,"./ReactReconciler":307,"./ReactUpdateQueue":313,"./shouldUpdateReactComponent":357,_process:111,"fbjs/lib/emptyObject":368,"fbjs/lib/invariant":375,"fbjs/lib/warning":386}],265:[function(a,b,c){"use strict";var d={current:null};b.exports=d},{}],266:[function(a,b,c){(function(c){"use strict";var d=a("./ReactCurrentOwner"),e=a("./ReactDOMTextComponent"),f=a("./ReactDefaultInjection"),g=a("./ReactInstanceHandles"),h=a("./ReactMount"),i=a("./ReactPerf"),j=a("./ReactReconciler"),k=a("./ReactUpdates"),l=a("./ReactVersion"),m=a("./findDOMNode"),n=a("./renderSubtreeIntoContainer"),o=a("fbjs/lib/warning");f.inject();var p=i.measure("React","render",h.render),q={findDOMNode:m,render:p,unmountComponentAtNode:h.unmountComponentAtNode,version:l,unstable_batchedUpdates:k.batchedUpdates,unstable_renderSubtreeIntoContainer:n};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({CurrentOwner:d,InstanceHandles:g,Mount:h,Reconciler:j,TextComponent:e}),"production"!==c.env.NODE_ENV){var r=a("fbjs/lib/ExecutionEnvironment");if(r.canUseDOM&&window.top===window.self){"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&(navigator.userAgent.indexOf("Chrome")>-1&&-1===navigator.userAgent.indexOf("Edge")||navigator.userAgent.indexOf("Firefox")>-1)&&console.debug("Download the React DevTools for a better development experience: https://fb.me/react-devtools");var s=document.documentMode&&document.documentMode<8;"production"!==c.env.NODE_ENV?o(!s,'Internet Explorer is running in compatibility mode; please add the following tag to your HTML to prevent this from happening: <meta http-equiv="X-UA-Compatible" content="IE=edge" />'):void 0;for(var t=[Array.isArray,Array.prototype.every,Array.prototype.forEach,Array.prototype.indexOf,Array.prototype.map,Date.now,Function.prototype.bind,Object.keys,String.prototype.split,String.prototype.trim,Object.create,Object.freeze],u=0;u<t.length;u++)if(!t[u]){console.error("One or more ES5 shim/shams expected by React are not available: https://fb.me/react-warning-polyfills");break}}}b.exports=q}).call(this,a("_process"))},{"./ReactCurrentOwner":265,"./ReactDOMTextComponent":277,"./ReactDefaultInjection":280,"./ReactInstanceHandles":292,"./ReactMount":296,"./ReactPerf":302,"./ReactReconciler":307,"./ReactUpdates":314,"./ReactVersion":315,"./findDOMNode":339,"./renderSubtreeIntoContainer":354,_process:111,"fbjs/lib/ExecutionEnvironment":361,"fbjs/lib/warning":386}],267:[function(a,b,c){"use strict";var d={onClick:!0,onDoubleClick:!0,onMouseDown:!0,onMouseMove:!0,onMouseUp:!0,onClickCapture:!0,onDoubleClickCapture:!0,onMouseDownCapture:!0,onMouseMoveCapture:!0,onMouseUpCapture:!0},e={getNativeProps:function(a,b,c){if(!b.disabled)return b;var e={};for(var f in b)b.hasOwnProperty(f)&&!d[f]&&(e[f]=b[f]);return e}};b.exports=e},{}],268:[function(a,b,c){(function(c){"use strict";function d(a){if(a){var b=a._currentElement._owner||null;if(b){var c=b.getName();if(c)return" This DOM node was rendered by `"+c+"`."}}return""}function e(){if("production"!==c.env.NODE_ENV){var a=this._reactInternalComponent;"production"!==c.env.NODE_ENV?W(!1,"ReactDOMComponent: Do not access .getDOMNode() of a DOM node; instead, use the node directly.%s",d(a)):void 0}return this}function f(){var a=this._reactInternalComponent;return"production"!==c.env.NODE_ENV&&("production"!==c.env.NODE_ENV?W(!1,"ReactDOMComponent: Do not access .isMounted() of a DOM node.%s",d(a)):void 0),!!a}function g(){if("production"!==c.env.NODE_ENV){var a=this._reactInternalComponent;"production"!==c.env.NODE_ENV?W(!1,"ReactDOMComponent: Do not access .setState(), .replaceState(), or .forceUpdate() of a DOM node. This is a no-op.%s",d(a)):void 0}}function h(a,b){var e=this._reactInternalComponent;"production"!==c.env.NODE_ENV&&("production"!==c.env.NODE_ENV?W(!1,"ReactDOMComponent: Do not access .setProps() of a DOM node. Instead, call ReactDOM.render again at the top level.%s",d(e)):void 0),e&&(L.enqueueSetPropsInternal(e,a),b&&L.enqueueCallbackInternal(e,b))}function i(a,b){var e=this._reactInternalComponent;"production"!==c.env.NODE_ENV&&("production"!==c.env.NODE_ENV?W(!1,"ReactDOMComponent: Do not access .replaceProps() of a DOM node. Instead, call ReactDOM.render again at the top level.%s",d(e)):void 0),e&&(L.enqueueReplacePropsInternal(e,a),b&&L.enqueueCallbackInternal(e,b))}function j(a){if("object"==typeof a){if(Array.isArray(a))return"["+a.map(j).join(", ")+"]";var b=[];for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=/^[a-z$_][\w$_]*$/i.test(c)?c:JSON.stringify(c);b.push(d+": "+j(a[c]))}return"{"+b.join(", ")+"}"}return"string"==typeof a?JSON.stringify(a):"function"==typeof a?"[function object]":String(a)}function k(a,b,d){if(null!=a&&null!=b&&!U(a,b)){var e,f=d._tag,g=d._currentElement._owner;g&&(e=g.getName());var h=e+"|"+f;da.hasOwnProperty(h)||(da[h]=!0,"production"!==c.env.NODE_ENV?W(!1,"`%s` was passed a style object that has previously been mutated. Mutating `style` is deprecated. Consider cloning it beforehand. Check the `render` %s. Previous style: %s. Mutated style: %s.",f,g?"of `"+e+"`":"using <"+f+">",j(a),j(b)):void 0)}}function l(a,b){b&&("production"!==c.env.NODE_ENV&&ha[a._tag]&&("production"!==c.env.NODE_ENV?W(null==b.children&&null==b.dangerouslySetInnerHTML,"%s is a void element tag and must not have `children` or use `props.dangerouslySetInnerHTML`.%s",a._tag,a._currentElement._owner?" Check the render method of "+a._currentElement._owner.getName()+".":""):void 0),null!=b.dangerouslySetInnerHTML&&(null!=b.children?"production"!==c.env.NODE_ENV?P(!1,"Can only set one of `children` or `props.dangerouslySetInnerHTML`."):P(!1):void 0,"object"==typeof b.dangerouslySetInnerHTML&&ba in b.dangerouslySetInnerHTML?void 0:"production"!==c.env.NODE_ENV?P(!1,"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information."):P(!1)),"production"!==c.env.NODE_ENV&&("production"!==c.env.NODE_ENV?W(null==b.innerHTML,"Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."):void 0,"production"!==c.env.NODE_ENV?W(!b.contentEditable||null==b.children,"A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."):void 0),null!=b.style&&"object"!=typeof b.style?"production"!==c.env.NODE_ENV?P(!1,"The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.%s",d(a)):P(!1):void 0)}function m(a,b,d,e){"production"!==c.env.NODE_ENV&&("production"!==c.env.NODE_ENV?W("onScroll"!==b||Q("scroll",!0),"This browser doesn't support the `onScroll` event"):void 0);var f=I.findReactContainerForID(a);if(f){var g=f.nodeType===ca?f.ownerDocument:f;Y(b,g)}e.getReactMountReady().enqueue(n,{id:a,registrationName:b,listener:d})}function n(){var a=this;B.putListener(a.id,a.registrationName,a.listener)}function o(){var a=this;a._rootNodeID?void 0:"production"!==c.env.NODE_ENV?P(!1,"Must be mounted to trap events"):P(!1);var b=I.getNode(a._rootNodeID);switch(b?void 0:"production"!==c.env.NODE_ENV?P(!1,"trapBubbledEvent(...): Requires node to be rendered."):P(!1),a._tag){case"iframe":a._wrapperState.listeners=[B.trapBubbledEvent(A.topLevelTypes.topLoad,"load",b)];break;case"video":case"audio":a._wrapperState.listeners=[];for(var d in ea)ea.hasOwnProperty(d)&&a._wrapperState.listeners.push(B.trapBubbledEvent(A.topLevelTypes[d],ea[d],b));break;case"img":a._wrapperState.listeners=[B.trapBubbledEvent(A.topLevelTypes.topError,"error",b),B.trapBubbledEvent(A.topLevelTypes.topLoad,"load",b)];break;case"form":a._wrapperState.listeners=[B.trapBubbledEvent(A.topLevelTypes.topReset,"reset",b),B.trapBubbledEvent(A.topLevelTypes.topSubmit,"submit",b)]}}function p(){E.mountReadyWrapper(this)}function q(){G.postUpdateWrapper(this)}function r(a){ka.call(ja,a)||(ia.test(a)?void 0:"production"!==c.env.NODE_ENV?P(!1,"Invalid tag: %s",a):P(!1),ja[a]=!0)}function s(a,b){a=M({},a);var c=a[V.ancestorInfoContextKey];return a[V.ancestorInfoContextKey]=V.updatedAncestorInfo(c,b._tag,b),a}function t(a,b){return a.indexOf("-")>=0||null!=b.is}function u(a){r(a),this._tag=a.toLowerCase(),this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._rootNodeID=null,this._wrapperState=null,this._topLevelWrapper=null,this._nodeWithLegacyProperties=null,"production"!==c.env.NODE_ENV&&(this._unprocessedContextDev=null,this._processedContextDev=null)}var v,w=a("./AutoFocusUtils"),x=a("./CSSPropertyOperations"),y=a("./DOMProperty"),z=a("./DOMPropertyOperations"),A=a("./EventConstants"),B=a("./ReactBrowserEventEmitter"),C=a("./ReactComponentBrowserEnvironment"),D=a("./ReactDOMButton"),E=a("./ReactDOMInput"),F=a("./ReactDOMOption"),G=a("./ReactDOMSelect"),H=a("./ReactDOMTextarea"),I=a("./ReactMount"),J=a("./ReactMultiChild"),K=a("./ReactPerf"),L=a("./ReactUpdateQueue"),M=a("./Object.assign"),N=a("./canDefineProperty"),O=a("./escapeTextContentForBrowser"),P=a("fbjs/lib/invariant"),Q=a("./isEventSupported"),R=a("fbjs/lib/keyOf"),S=a("./setInnerHTML"),T=a("./setTextContent"),U=a("fbjs/lib/shallowEqual"),V=a("./validateDOMNesting"),W=a("fbjs/lib/warning"),X=B.deleteListener,Y=B.listenTo,Z=B.registrationNameModules,$={string:!0,number:!0},_=R({children:null}),aa=R({style:null}),ba=R({__html:null}),ca=1;"production"!==c.env.NODE_ENV&&(v={props:{enumerable:!1,get:function(){var a=this._reactInternalComponent;return"production"!==c.env.NODE_ENV?W(!1,"ReactDOMComponent: Do not access .props of a DOM node; instead, recreate the props as `render` did originally or read the DOM properties/attributes directly from this node (e.g., this.refs.box.className).%s",d(a)):void 0,a._currentElement.props}}});var da={},ea={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"},fa={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},ga={listing:!0,pre:!0,textarea:!0},ha=M({menuitem:!0},fa),ia=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ja={},ka={}.hasOwnProperty;u.displayName="ReactDOMComponent",u.Mixin={construct:function(a){this._currentElement=a},mountComponent:function(a,b,d){this._rootNodeID=a;var e=this._currentElement.props;switch(this._tag){case"iframe":case"img":case"form":case"video":case"audio":this._wrapperState={listeners:null},b.getReactMountReady().enqueue(o,this);break;case"button":e=D.getNativeProps(this,e,d);break;case"input":E.mountWrapper(this,e,d),e=E.getNativeProps(this,e,d);break;case"option":F.mountWrapper(this,e,d),e=F.getNativeProps(this,e,d);break;case"select":G.mountWrapper(this,e,d),e=G.getNativeProps(this,e,d),d=G.processChildContext(this,e,d);break;case"textarea":H.mountWrapper(this,e,d),e=H.getNativeProps(this,e,d)}l(this,e),"production"!==c.env.NODE_ENV&&d[V.ancestorInfoContextKey]&&V(this._tag,this,d[V.ancestorInfoContextKey]),"production"!==c.env.NODE_ENV&&(this._unprocessedContextDev=d,this._processedContextDev=s(d,this),d=this._processedContextDev);var f;if(b.useCreateElement){var g=d[I.ownerDocumentContextKey],h=g.createElement(this._currentElement.type);z.setAttributeForID(h,this._rootNodeID),I.getID(h),this._updateDOMProperties({},e,b,h),this._createInitialChildren(b,e,d,h),f=h}else{var i=this._createOpenTagMarkupAndPutListeners(b,e),j=this._createContentMarkup(b,e,d);f=!j&&fa[this._tag]?i+"/>":i+">"+j+"</"+this._currentElement.type+">"}switch(this._tag){case"input":b.getReactMountReady().enqueue(p,this);case"button":case"select":case"textarea":e.autoFocus&&b.getReactMountReady().enqueue(w.focusDOMComponent,this)}return f},_createOpenTagMarkupAndPutListeners:function(a,b){var d="<"+this._currentElement.type;for(var e in b)if(b.hasOwnProperty(e)){var f=b[e];if(null!=f)if(Z.hasOwnProperty(e))f&&m(this._rootNodeID,e,f,a);else{e===aa&&(f&&("production"!==c.env.NODE_ENV&&(this._previousStyle=f),f=this._previousStyleCopy=M({},b.style)),f=x.createMarkupForStyles(f));var g=null;null!=this._tag&&t(this._tag,b)?e!==_&&(g=z.createMarkupForCustomAttribute(e,f)):g=z.createMarkupForProperty(e,f),g&&(d+=" "+g)}}if(a.renderToStaticMarkup)return d;var h=z.createMarkupForID(this._rootNodeID);return d+" "+h},_createContentMarkup:function(a,b,c){var d="",e=b.dangerouslySetInnerHTML;if(null!=e)null!=e.__html&&(d=e.__html);else{var f=$[typeof b.children]?b.children:null,g=null!=f?null:b.children;if(null!=f)d=O(f);else if(null!=g){var h=this.mountChildren(g,a,c);d=h.join("")}}return ga[this._tag]&&"\n"===d.charAt(0)?"\n"+d:d},_createInitialChildren:function(a,b,c,d){var e=b.dangerouslySetInnerHTML;if(null!=e)null!=e.__html&&S(d,e.__html);else{var f=$[typeof b.children]?b.children:null,g=null!=f?null:b.children;if(null!=f)T(d,f);else if(null!=g)for(var h=this.mountChildren(g,a,c),i=0;i<h.length;i++)d.appendChild(h[i])}},receiveComponent:function(a,b,c){var d=this._currentElement;this._currentElement=a,this.updateComponent(b,d,a,c)},updateComponent:function(a,b,d,e){var f=b.props,g=this._currentElement.props;switch(this._tag){case"button":f=D.getNativeProps(this,f),g=D.getNativeProps(this,g);break;case"input":E.updateWrapper(this),f=E.getNativeProps(this,f),g=E.getNativeProps(this,g);break;case"option":f=F.getNativeProps(this,f),g=F.getNativeProps(this,g);break;case"select":f=G.getNativeProps(this,f),g=G.getNativeProps(this,g);break;case"textarea":H.updateWrapper(this),f=H.getNativeProps(this,f),g=H.getNativeProps(this,g)}"production"!==c.env.NODE_ENV&&(this._unprocessedContextDev!==e&&(this._unprocessedContextDev=e,this._processedContextDev=s(e,this)),e=this._processedContextDev),l(this,g),this._updateDOMProperties(f,g,a,null),this._updateDOMChildren(f,g,a,e),!N&&this._nodeWithLegacyProperties&&(this._nodeWithLegacyProperties.props=g),"select"===this._tag&&a.getReactMountReady().enqueue(q,this)},_updateDOMProperties:function(a,b,d,e){var f,g,h;for(f in a)if(!b.hasOwnProperty(f)&&a.hasOwnProperty(f))if(f===aa){var i=this._previousStyleCopy;for(g in i)i.hasOwnProperty(g)&&(h=h||{},h[g]="");this._previousStyleCopy=null}else Z.hasOwnProperty(f)?a[f]&&X(this._rootNodeID,f):(y.properties[f]||y.isCustomAttribute(f))&&(e||(e=I.getNode(this._rootNodeID)),z.deleteValueForProperty(e,f));for(f in b){var j=b[f],l=f===aa?this._previousStyleCopy:a[f];if(b.hasOwnProperty(f)&&j!==l)if(f===aa)if(j?("production"!==c.env.NODE_ENV&&(k(this._previousStyleCopy,this._previousStyle,this),this._previousStyle=j),j=this._previousStyleCopy=M({},j)):this._previousStyleCopy=null,l){for(g in l)!l.hasOwnProperty(g)||j&&j.hasOwnProperty(g)||(h=h||{},h[g]="");for(g in j)j.hasOwnProperty(g)&&l[g]!==j[g]&&(h=h||{},h[g]=j[g])}else h=j;else Z.hasOwnProperty(f)?j?m(this._rootNodeID,f,j,d):l&&X(this._rootNodeID,f):t(this._tag,b)?(e||(e=I.getNode(this._rootNodeID)),f===_&&(j=null),z.setValueForAttribute(e,f,j)):(y.properties[f]||y.isCustomAttribute(f))&&(e||(e=I.getNode(this._rootNodeID)),null!=j?z.setValueForProperty(e,f,j):z.deleteValueForProperty(e,f))}h&&(e||(e=I.getNode(this._rootNodeID)),x.setValueForStyles(e,h))},_updateDOMChildren:function(a,b,c,d){var e=$[typeof a.children]?a.children:null,f=$[typeof b.children]?b.children:null,g=a.dangerouslySetInnerHTML&&a.dangerouslySetInnerHTML.__html,h=b.dangerouslySetInnerHTML&&b.dangerouslySetInnerHTML.__html,i=null!=e?null:a.children,j=null!=f?null:b.children,k=null!=e||null!=g,l=null!=f||null!=h;null!=i&&null==j?this.updateChildren(null,c,d):k&&!l&&this.updateTextContent(""),null!=f?e!==f&&this.updateTextContent(""+f):null!=h?g!==h&&this.updateMarkup(""+h):null!=j&&this.updateChildren(j,c,d)},unmountComponent:function(){switch(this._tag){case"iframe":case"img":case"form":case"video":case"audio":var a=this._wrapperState.listeners;if(a)for(var b=0;b<a.length;b++)a[b].remove();break;case"input":E.unmountWrapper(this);break;case"html":case"head":case"body":"production"!==c.env.NODE_ENV?P(!1,"<%s> tried to unmount. Because of cross-browser quirks it is impossible to unmount some top-level components (eg <html>, <head>, and <body>) reliably and efficiently. To fix this, have a single top-level component that never unmounts render these elements.",this._tag):P(!1)}if(this.unmountChildren(),B.deleteAllListeners(this._rootNodeID),C.unmountIDFromEnvironment(this._rootNodeID),this._rootNodeID=null,this._wrapperState=null,this._nodeWithLegacyProperties){var d=this._nodeWithLegacyProperties;d._reactInternalComponent=null,this._nodeWithLegacyProperties=null}},getPublicInstance:function(){if(!this._nodeWithLegacyProperties){var a=I.getNode(this._rootNodeID);a._reactInternalComponent=this,a.getDOMNode=e,a.isMounted=f,a.setState=g,a.replaceState=g,a.forceUpdate=g,a.setProps=h,a.replaceProps=i,"production"!==c.env.NODE_ENV&&N?Object.defineProperties(a,v):a.props=this._currentElement.props,this._nodeWithLegacyProperties=a}return this._nodeWithLegacyProperties}},K.measureMethods(u,"ReactDOMComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent"}),M(u.prototype,u.Mixin,J.Mixin),b.exports=u}).call(this,a("_process"))},{"./AutoFocusUtils":232,"./CSSPropertyOperations":235,"./DOMProperty":240,"./DOMPropertyOperations":241,"./EventConstants":245,"./Object.assign":253,"./ReactBrowserEventEmitter":257,"./ReactComponentBrowserEnvironment":262,"./ReactDOMButton":267,"./ReactDOMInput":272,"./ReactDOMOption":273,"./ReactDOMSelect":274,"./ReactDOMTextarea":278,"./ReactMount":296,"./ReactMultiChild":297,"./ReactPerf":302,"./ReactUpdateQueue":313,"./canDefineProperty":335,"./escapeTextContentForBrowser":338,"./isEventSupported":350,"./setInnerHTML":355,"./setTextContent":356,"./validateDOMNesting":359,_process:111,"fbjs/lib/invariant":375,"fbjs/lib/keyOf":379,"fbjs/lib/shallowEqual":384,"fbjs/lib/warning":386}],269:[function(a,b,c){(function(c){"use strict";function d(a){return"production"!==c.env.NODE_ENV?f.createFactory(a):e.createFactory(a)}var e=a("./ReactElement"),f=a("./ReactElementValidator"),g=a("fbjs/lib/mapObject"),h=g({a:"a",abbr:"abbr",address:"address",area:"area",article:"article",aside:"aside",audio:"audio",b:"b",base:"base",bdi:"bdi",bdo:"bdo",big:"big",blockquote:"blockquote",body:"body",br:"br",button:"button",canvas:"canvas",caption:"caption",cite:"cite",code:"code",col:"col",colgroup:"colgroup",data:"data",datalist:"datalist",dd:"dd",del:"del",details:"details",dfn:"dfn",dialog:"dialog",div:"div",dl:"dl",dt:"dt",em:"em",embed:"embed",fieldset:"fieldset",figcaption:"figcaption",figure:"figure",footer:"footer",form:"form",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",head:"head",header:"header",hgroup:"hgroup",hr:"hr",html:"html",i:"i",iframe:"iframe",img:"img",input:"input",ins:"ins",kbd:"kbd",keygen:"keygen",label:"label",legend:"legend",li:"li",link:"link",main:"main",map:"map",mark:"mark",menu:"menu",menuitem:"menuitem",meta:"meta",meter:"meter",nav:"nav",noscript:"noscript",object:"object",ol:"ol",optgroup:"optgroup",option:"option",output:"output",p:"p",param:"param",picture:"picture",pre:"pre",progress:"progress",q:"q",rp:"rp",rt:"rt",ruby:"ruby",s:"s",samp:"samp",script:"script",section:"section",select:"select",small:"small",source:"source",span:"span",strong:"strong",style:"style",sub:"sub",summary:"summary",sup:"sup",table:"table",tbody:"tbody",td:"td",textarea:"textarea",tfoot:"tfoot",th:"th",thead:"thead",time:"time",title:"title",tr:"tr",track:"track",u:"u",ul:"ul","var":"var",video:"video",wbr:"wbr",circle:"circle",clipPath:"clipPath",defs:"defs",ellipse:"ellipse",g:"g",image:"image",line:"line",linearGradient:"linearGradient",mask:"mask",path:"path",pattern:"pattern",polygon:"polygon",polyline:"polyline",radialGradient:"radialGradient",rect:"rect",stop:"stop",svg:"svg",text:"text",tspan:"tspan"},d);b.exports=h}).call(this,a("_process"))},{"./ReactElement":283,"./ReactElementValidator":284,_process:111,"fbjs/lib/mapObject":380}],270:[function(a,b,c){"use strict";var d={useCreateElement:!1};b.exports=d},{}],271:[function(a,b,c){(function(c){"use strict";var d=a("./DOMChildrenOperations"),e=a("./DOMPropertyOperations"),f=a("./ReactMount"),g=a("./ReactPerf"),h=a("fbjs/lib/invariant"),i={dangerouslySetInnerHTML:"`dangerouslySetInnerHTML` must be set using `updateInnerHTMLByID()`.",style:"`style` must be set using `updateStylesByID()`."},j={updatePropertyByID:function(a,b,d){var g=f.getNode(a);i.hasOwnProperty(b)?"production"!==c.env.NODE_ENV?h(!1,"updatePropertyByID(...): %s",i[b]):h(!1):void 0,null!=d?e.setValueForProperty(g,b,d):e.deleteValueForProperty(g,b)},dangerouslyReplaceNodeWithMarkupByID:function(a,b){var c=f.getNode(a);d.dangerouslyReplaceNodeWithMarkup(c,b)},dangerouslyProcessChildrenUpdates:function(a,b){for(var c=0;c<a.length;c++)a[c].parentNode=f.getNode(a[c].parentID);d.processUpdates(a,b)}};g.measureMethods(j,"ReactDOMIDOperations",{dangerouslyReplaceNodeWithMarkupByID:"dangerouslyReplaceNodeWithMarkupByID",dangerouslyProcessChildrenUpdates:"dangerouslyProcessChildrenUpdates"}),b.exports=j}).call(this,a("_process"))},{"./DOMChildrenOperations":239,"./DOMPropertyOperations":241,"./ReactMount":296,"./ReactPerf":302,_process:111,"fbjs/lib/invariant":375}],272:[function(a,b,c){(function(c){"use strict";function d(){this._rootNodeID&&m.updateWrapper(this)}function e(a){var b=this._currentElement.props,e=g.executeOnChange(b,a);i.asap(d,this);var f=b.name;if("radio"===b.type&&null!=f){for(var j=h.getNode(this._rootNodeID),m=j;m.parentNode;)m=m.parentNode;for(var n=m.querySelectorAll("input[name="+JSON.stringify(""+f)+'][type="radio"]'),o=0;o<n.length;o++){var p=n[o];if(p!==j&&p.form===j.form){var q=h.getID(p);q?void 0:"production"!==c.env.NODE_ENV?k(!1,"ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported."):k(!1);var r=l[q];r?void 0:"production"!==c.env.NODE_ENV?k(!1,"ReactDOMInput: Unknown radio button ID %s.",q):k(!1),i.asap(d,r)}}}return e}var f=a("./ReactDOMIDOperations"),g=a("./LinkedValueUtils"),h=a("./ReactMount"),i=a("./ReactUpdates"),j=a("./Object.assign"),k=a("fbjs/lib/invariant"),l={},m={getNativeProps:function(a,b,c){var d=g.getValue(b),e=g.getChecked(b),f=j({},b,{defaultChecked:void 0,defaultValue:void 0,value:null!=d?d:a._wrapperState.initialValue,checked:null!=e?e:a._wrapperState.initialChecked,onChange:a._wrapperState.onChange});return f},mountWrapper:function(a,b){"production"!==c.env.NODE_ENV&&g.checkPropTypes("input",b,a._currentElement._owner);var d=b.defaultValue;a._wrapperState={initialChecked:b.defaultChecked||!1,initialValue:null!=d?d:null,onChange:e.bind(a)}},mountReadyWrapper:function(a){l[a._rootNodeID]=a},unmountWrapper:function(a){delete l[a._rootNodeID]},updateWrapper:function(a){var b=a._currentElement.props,c=b.checked;null!=c&&f.updatePropertyByID(a._rootNodeID,"checked",c||!1);var d=g.getValue(b);null!=d&&f.updatePropertyByID(a._rootNodeID,"value",""+d)}};b.exports=m}).call(this,a("_process"))},{"./LinkedValueUtils":252,"./Object.assign":253,"./ReactDOMIDOperations":271,"./ReactMount":296,"./ReactUpdates":314,_process:111,"fbjs/lib/invariant":375}],273:[function(a,b,c){(function(c){"use strict";var d=a("./ReactChildren"),e=a("./ReactDOMSelect"),f=a("./Object.assign"),g=a("fbjs/lib/warning"),h=e.valueContextKey,i={mountWrapper:function(a,b,d){"production"!==c.env.NODE_ENV&&("production"!==c.env.NODE_ENV?g(null==b.selected,"Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."):void 0);var e=d[h],f=null;if(null!=e)if(f=!1,Array.isArray(e)){for(var i=0;i<e.length;i++)if(""+e[i]==""+b.value){f=!0;break}}else f=""+e==""+b.value;a._wrapperState={selected:f}},getNativeProps:function(a,b,e){var h=f({selected:void 0,children:void 0},b);null!=a._wrapperState.selected&&(h.selected=a._wrapperState.selected);var i="";return d.forEach(b.children,function(a){null!=a&&("string"==typeof a||"number"==typeof a?i+=a:"production"!==c.env.NODE_ENV?g(!1,"Only strings and numbers are supported as <option> children."):void 0);
21
- }),i&&(h.children=i),h}};b.exports=i}).call(this,a("_process"))},{"./Object.assign":253,"./ReactChildren":259,"./ReactDOMSelect":274,_process:111,"fbjs/lib/warning":386}],274:[function(a,b,c){(function(c){"use strict";function d(){if(this._rootNodeID&&this._wrapperState.pendingUpdate){this._wrapperState.pendingUpdate=!1;var a=this._currentElement.props,b=i.getValue(a);null!=b&&g(this,Boolean(a.multiple),b)}}function e(a){if(a){var b=a.getName();if(b)return" Check the render method of `"+b+"`."}return""}function f(a,b){var d=a._currentElement._owner;i.checkPropTypes("select",b,d);for(var f=0;f<o.length;f++){var g=o[f];null!=b[g]&&(b.multiple?"production"!==c.env.NODE_ENV?m(Array.isArray(b[g]),"The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",g,e(d)):void 0:"production"!==c.env.NODE_ENV?m(!Array.isArray(b[g]),"The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",g,e(d)):void 0)}}function g(a,b,c){var d,e,f=j.getNode(a._rootNodeID).options;if(b){for(d={},e=0;e<c.length;e++)d[""+c[e]]=!0;for(e=0;e<f.length;e++){var g=d.hasOwnProperty(f[e].value);f[e].selected!==g&&(f[e].selected=g)}}else{for(d=""+c,e=0;e<f.length;e++)if(f[e].value===d)return void(f[e].selected=!0);f.length&&(f[0].selected=!0)}}function h(a){var b=this._currentElement.props,c=i.executeOnChange(b,a);return this._wrapperState.pendingUpdate=!0,k.asap(d,this),c}var i=a("./LinkedValueUtils"),j=a("./ReactMount"),k=a("./ReactUpdates"),l=a("./Object.assign"),m=a("fbjs/lib/warning"),n="__ReactDOMSelect_value$"+Math.random().toString(36).slice(2),o=["value","defaultValue"],p={valueContextKey:n,getNativeProps:function(a,b,c){return l({},b,{onChange:a._wrapperState.onChange,value:void 0})},mountWrapper:function(a,b){"production"!==c.env.NODE_ENV&&f(a,b);var d=i.getValue(b);a._wrapperState={pendingUpdate:!1,initialValue:null!=d?d:b.defaultValue,onChange:h.bind(a),wasMultiple:Boolean(b.multiple)}},processChildContext:function(a,b,c){var d=l({},c);return d[n]=a._wrapperState.initialValue,d},postUpdateWrapper:function(a){var b=a._currentElement.props;a._wrapperState.initialValue=void 0;var c=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=Boolean(b.multiple);var d=i.getValue(b);null!=d?(a._wrapperState.pendingUpdate=!1,g(a,Boolean(b.multiple),d)):c!==Boolean(b.multiple)&&(null!=b.defaultValue?g(a,Boolean(b.multiple),b.defaultValue):g(a,Boolean(b.multiple),b.multiple?[]:""))}};b.exports=p}).call(this,a("_process"))},{"./LinkedValueUtils":252,"./Object.assign":253,"./ReactMount":296,"./ReactUpdates":314,_process:111,"fbjs/lib/warning":386}],275:[function(a,b,c){"use strict";function d(a,b,c,d){return a===c&&b===d}function e(a){var b=document.selection,c=b.createRange(),d=c.text.length,e=c.duplicate();e.moveToElementText(a),e.setEndPoint("EndToStart",c);var f=e.text.length,g=f+d;return{start:f,end:g}}function f(a){var b=window.getSelection&&window.getSelection();if(!b||0===b.rangeCount)return null;var c=b.anchorNode,e=b.anchorOffset,f=b.focusNode,g=b.focusOffset,h=b.getRangeAt(0);try{h.startContainer.nodeType,h.endContainer.nodeType}catch(i){return null}var j=d(b.anchorNode,b.anchorOffset,b.focusNode,b.focusOffset),k=j?0:h.toString().length,l=h.cloneRange();l.selectNodeContents(a),l.setEnd(h.startContainer,h.startOffset);var m=d(l.startContainer,l.startOffset,l.endContainer,l.endOffset),n=m?0:l.toString().length,o=n+k,p=document.createRange();p.setStart(c,e),p.setEnd(f,g);var q=p.collapsed;return{start:q?o:n,end:q?n:o}}function g(a,b){var c,d,e=document.selection.createRange().duplicate();"undefined"==typeof b.end?(c=b.start,d=c):b.start>b.end?(c=b.end,d=b.start):(c=b.start,d=b.end),e.moveToElementText(a),e.moveStart("character",c),e.setEndPoint("EndToStart",e),e.moveEnd("character",d-c),e.select()}function h(a,b){if(window.getSelection){var c=window.getSelection(),d=a[k()].length,e=Math.min(b.start,d),f="undefined"==typeof b.end?e:Math.min(b.end,d);if(!c.extend&&e>f){var g=f;f=e,e=g}var h=j(a,e),i=j(a,f);if(h&&i){var l=document.createRange();l.setStart(h.node,h.offset),c.removeAllRanges(),e>f?(c.addRange(l),c.extend(i.node,i.offset)):(l.setEnd(i.node,i.offset),c.addRange(l))}}}var i=a("fbjs/lib/ExecutionEnvironment"),j=a("./getNodeForCharacterOffset"),k=a("./getTextContentAccessor"),l=i.canUseDOM&&"selection"in document&&!("getSelection"in window),m={getOffsets:l?e:f,setOffsets:l?g:h};b.exports=m},{"./getNodeForCharacterOffset":347,"./getTextContentAccessor":348,"fbjs/lib/ExecutionEnvironment":361}],276:[function(a,b,c){"use strict";var d=a("./ReactDefaultInjection"),e=a("./ReactServerRendering"),f=a("./ReactVersion");d.inject();var g={renderToString:e.renderToString,renderToStaticMarkup:e.renderToStaticMarkup,version:f};b.exports=g},{"./ReactDefaultInjection":280,"./ReactServerRendering":311,"./ReactVersion":315}],277:[function(a,b,c){(function(c){"use strict";var d=a("./DOMChildrenOperations"),e=a("./DOMPropertyOperations"),f=a("./ReactComponentBrowserEnvironment"),g=a("./ReactMount"),h=a("./Object.assign"),i=a("./escapeTextContentForBrowser"),j=a("./setTextContent"),k=a("./validateDOMNesting"),l=function(a){};h(l.prototype,{construct:function(a){this._currentElement=a,this._stringText=""+a,this._rootNodeID=null,this._mountIndex=0},mountComponent:function(a,b,d){if("production"!==c.env.NODE_ENV&&d[k.ancestorInfoContextKey]&&k("span",null,d[k.ancestorInfoContextKey]),this._rootNodeID=a,b.useCreateElement){var f=d[g.ownerDocumentContextKey],h=f.createElement("span");return e.setAttributeForID(h,a),g.getID(h),j(h,this._stringText),h}var l=i(this._stringText);return b.renderToStaticMarkup?l:"<span "+e.createMarkupForID(a)+">"+l+"</span>"},receiveComponent:function(a,b){if(a!==this._currentElement){this._currentElement=a;var c=""+a;if(c!==this._stringText){this._stringText=c;var e=g.getNode(this._rootNodeID);d.updateTextContent(e,c)}}},unmountComponent:function(){f.unmountIDFromEnvironment(this._rootNodeID)}}),b.exports=l}).call(this,a("_process"))},{"./DOMChildrenOperations":239,"./DOMPropertyOperations":241,"./Object.assign":253,"./ReactComponentBrowserEnvironment":262,"./ReactMount":296,"./escapeTextContentForBrowser":338,"./setTextContent":356,"./validateDOMNesting":359,_process:111}],278:[function(a,b,c){(function(c){"use strict";function d(){this._rootNodeID&&l.updateWrapper(this)}function e(a){var b=this._currentElement.props,c=f.executeOnChange(b,a);return h.asap(d,this),c}var f=a("./LinkedValueUtils"),g=a("./ReactDOMIDOperations"),h=a("./ReactUpdates"),i=a("./Object.assign"),j=a("fbjs/lib/invariant"),k=a("fbjs/lib/warning"),l={getNativeProps:function(a,b,d){null!=b.dangerouslySetInnerHTML?"production"!==c.env.NODE_ENV?j(!1,"`dangerouslySetInnerHTML` does not make sense on <textarea>."):j(!1):void 0;var e=i({},b,{defaultValue:void 0,value:void 0,children:a._wrapperState.initialValue,onChange:a._wrapperState.onChange});return e},mountWrapper:function(a,b){"production"!==c.env.NODE_ENV&&f.checkPropTypes("textarea",b,a._currentElement._owner);var d=b.defaultValue,g=b.children;null!=g&&("production"!==c.env.NODE_ENV&&("production"!==c.env.NODE_ENV?k(!1,"Use the `defaultValue` or `value` props instead of setting children on <textarea>."):void 0),null!=d?"production"!==c.env.NODE_ENV?j(!1,"If you supply `defaultValue` on a <textarea>, do not pass children."):j(!1):void 0,Array.isArray(g)&&(g.length<=1?void 0:"production"!==c.env.NODE_ENV?j(!1,"<textarea> can only have at most one child."):j(!1),g=g[0]),d=""+g),null==d&&(d="");var h=f.getValue(b);a._wrapperState={initialValue:""+(null!=h?h:d),onChange:e.bind(a)}},updateWrapper:function(a){var b=a._currentElement.props,c=f.getValue(b);null!=c&&g.updatePropertyByID(a._rootNodeID,"value",""+c)}};b.exports=l}).call(this,a("_process"))},{"./LinkedValueUtils":252,"./Object.assign":253,"./ReactDOMIDOperations":271,"./ReactUpdates":314,_process:111,"fbjs/lib/invariant":375,"fbjs/lib/warning":386}],279:[function(a,b,c){"use strict";function d(){this.reinitializeTransaction()}var e=a("./ReactUpdates"),f=a("./Transaction"),g=a("./Object.assign"),h=a("fbjs/lib/emptyFunction"),i={initialize:h,close:function(){m.isBatchingUpdates=!1}},j={initialize:h,close:e.flushBatchedUpdates.bind(e)},k=[j,i];g(d.prototype,f.Mixin,{getTransactionWrappers:function(){return k}});var l=new d,m={isBatchingUpdates:!1,batchedUpdates:function(a,b,c,d,e,f){var g=m.isBatchingUpdates;m.isBatchingUpdates=!0,g?a(b,c,d,e,f):l.perform(a,null,b,c,d,e,f)}};b.exports=m},{"./Object.assign":253,"./ReactUpdates":314,"./Transaction":331,"fbjs/lib/emptyFunction":367}],280:[function(a,b,c){(function(c){"use strict";function d(){if(!z&&(z=!0,r.EventEmitter.injectReactEventListener(q),r.EventPluginHub.injectEventPluginOrder(h),r.EventPluginHub.injectInstanceHandle(s),r.EventPluginHub.injectMount(t),r.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:x,EnterLeaveEventPlugin:i,ChangeEventPlugin:f,SelectEventPlugin:v,BeforeInputEventPlugin:e}),r.NativeComponent.injectGenericComponentClass(o),r.NativeComponent.injectTextComponentClass(p),r.Class.injectMixin(l),r.DOMProperty.injectDOMPropertyConfig(k),r.DOMProperty.injectDOMPropertyConfig(y),r.EmptyComponent.injectEmptyComponent("noscript"),r.Updates.injectReconcileTransaction(u),r.Updates.injectBatchingStrategy(n),r.RootIndex.injectCreateReactRootIndex(j.canUseDOM?g.createReactRootIndex:w.createReactRootIndex),r.Component.injectEnvironment(m),"production"!==c.env.NODE_ENV)){var b=j.canUseDOM&&window.location.href||"";if(/[?&]react_perf\b/.test(b)){var d=a("./ReactDefaultPerf");d.start()}}}var e=a("./BeforeInputEventPlugin"),f=a("./ChangeEventPlugin"),g=a("./ClientReactRootIndex"),h=a("./DefaultEventPluginOrder"),i=a("./EnterLeaveEventPlugin"),j=a("fbjs/lib/ExecutionEnvironment"),k=a("./HTMLDOMPropertyConfig"),l=a("./ReactBrowserComponentMixin"),m=a("./ReactComponentBrowserEnvironment"),n=a("./ReactDefaultBatchingStrategy"),o=a("./ReactDOMComponent"),p=a("./ReactDOMTextComponent"),q=a("./ReactEventListener"),r=a("./ReactInjection"),s=a("./ReactInstanceHandles"),t=a("./ReactMount"),u=a("./ReactReconcileTransaction"),v=a("./SelectEventPlugin"),w=a("./ServerReactRootIndex"),x=a("./SimpleEventPlugin"),y=a("./SVGDOMPropertyConfig"),z=!1;b.exports={inject:d}}).call(this,a("_process"))},{"./BeforeInputEventPlugin":233,"./ChangeEventPlugin":237,"./ClientReactRootIndex":238,"./DefaultEventPluginOrder":243,"./EnterLeaveEventPlugin":244,"./HTMLDOMPropertyConfig":251,"./ReactBrowserComponentMixin":256,"./ReactComponentBrowserEnvironment":262,"./ReactDOMComponent":268,"./ReactDOMTextComponent":277,"./ReactDefaultBatchingStrategy":279,"./ReactDefaultPerf":281,"./ReactEventListener":289,"./ReactInjection":290,"./ReactInstanceHandles":292,"./ReactMount":296,"./ReactReconcileTransaction":306,"./SVGDOMPropertyConfig":316,"./SelectEventPlugin":317,"./ServerReactRootIndex":318,"./SimpleEventPlugin":319,_process:111,"fbjs/lib/ExecutionEnvironment":361}],281:[function(a,b,c){"use strict";function d(a){return Math.floor(100*a)/100}function e(a,b,c){a[b]=(a[b]||0)+c}var f=a("./DOMProperty"),g=a("./ReactDefaultPerfAnalysis"),h=a("./ReactMount"),i=a("./ReactPerf"),j=a("fbjs/lib/performanceNow"),k={_allMeasurements:[],_mountStack:[0],_injected:!1,start:function(){k._injected||i.injection.injectMeasure(k.measure),k._allMeasurements.length=0,i.enableMeasure=!0},stop:function(){i.enableMeasure=!1},getLastMeasurements:function(){return k._allMeasurements},printExclusive:function(a){a=a||k._allMeasurements;var b=g.getExclusiveSummary(a);console.table(b.map(function(a){return{"Component class name":a.componentName,"Total inclusive time (ms)":d(a.inclusive),"Exclusive mount time (ms)":d(a.exclusive),"Exclusive render time (ms)":d(a.render),"Mount time per instance (ms)":d(a.exclusive/a.count),"Render time per instance (ms)":d(a.render/a.count),Instances:a.count}}))},printInclusive:function(a){a=a||k._allMeasurements;var b=g.getInclusiveSummary(a);console.table(b.map(function(a){return{"Owner > component":a.componentName,"Inclusive time (ms)":d(a.time),Instances:a.count}})),console.log("Total time:",g.getTotalTime(a).toFixed(2)+" ms")},getMeasurementsSummaryMap:function(a){var b=g.getInclusiveSummary(a,!0);return b.map(function(a){return{"Owner > component":a.componentName,"Wasted time (ms)":a.time,Instances:a.count}})},printWasted:function(a){a=a||k._allMeasurements,console.table(k.getMeasurementsSummaryMap(a)),console.log("Total time:",g.getTotalTime(a).toFixed(2)+" ms")},printDOM:function(a){a=a||k._allMeasurements;var b=g.getDOMSummary(a);console.table(b.map(function(a){var b={};return b[f.ID_ATTRIBUTE_NAME]=a.id,b.type=a.type,b.args=JSON.stringify(a.args),b})),console.log("Total time:",g.getTotalTime(a).toFixed(2)+" ms")},_recordWrite:function(a,b,c,d){var e=k._allMeasurements[k._allMeasurements.length-1].writes;e[a]=e[a]||[],e[a].push({type:b,time:c,args:d})},measure:function(a,b,c){return function(){for(var d=arguments.length,f=Array(d),g=0;d>g;g++)f[g]=arguments[g];var i,l,m;if("_renderNewRootComponent"===b||"flushBatchedUpdates"===b)return k._allMeasurements.push({exclusive:{},inclusive:{},render:{},counts:{},writes:{},displayNames:{},totalTime:0,created:{}}),m=j(),l=c.apply(this,f),k._allMeasurements[k._allMeasurements.length-1].totalTime=j()-m,l;if("_mountImageIntoNode"===b||"ReactBrowserEventEmitter"===a||"ReactDOMIDOperations"===a||"CSSPropertyOperations"===a||"DOMChildrenOperations"===a||"DOMPropertyOperations"===a){if(m=j(),l=c.apply(this,f),i=j()-m,"_mountImageIntoNode"===b){var n=h.getID(f[1]);k._recordWrite(n,b,i,f[0])}else if("dangerouslyProcessChildrenUpdates"===b)f[0].forEach(function(a){var b={};null!==a.fromIndex&&(b.fromIndex=a.fromIndex),null!==a.toIndex&&(b.toIndex=a.toIndex),null!==a.textContent&&(b.textContent=a.textContent),null!==a.markupIndex&&(b.markup=f[1][a.markupIndex]),k._recordWrite(a.parentID,a.type,i,b)});else{var o=f[0];"object"==typeof o&&(o=h.getID(f[0])),k._recordWrite(o,b,i,Array.prototype.slice.call(f,1))}return l}if("ReactCompositeComponent"!==a||"mountComponent"!==b&&"updateComponent"!==b&&"_renderValidatedComponent"!==b)return c.apply(this,f);if(this._currentElement.type===h.TopLevelWrapper)return c.apply(this,f);var p="mountComponent"===b?f[0]:this._rootNodeID,q="_renderValidatedComponent"===b,r="mountComponent"===b,s=k._mountStack,t=k._allMeasurements[k._allMeasurements.length-1];if(q?e(t.counts,p,1):r&&(t.created[p]=!0,s.push(0)),m=j(),l=c.apply(this,f),i=j()-m,q)e(t.render,p,i);else if(r){var u=s.pop();s[s.length-1]+=i,e(t.exclusive,p,i-u),e(t.inclusive,p,i)}else e(t.inclusive,p,i);return t.displayNames[p]={current:this.getName(),owner:this._currentElement._owner?this._currentElement._owner.getName():"<root>"},l}}};b.exports=k},{"./DOMProperty":240,"./ReactDefaultPerfAnalysis":282,"./ReactMount":296,"./ReactPerf":302,"fbjs/lib/performanceNow":383}],282:[function(a,b,c){"use strict";function d(a){for(var b=0,c=0;c<a.length;c++){var d=a[c];b+=d.totalTime}return b}function e(a){var b=[];return a.forEach(function(a){Object.keys(a.writes).forEach(function(c){a.writes[c].forEach(function(a){b.push({id:c,type:k[a.type]||a.type,args:a.args})})})}),b}function f(a){for(var b,c={},d=0;d<a.length;d++){var e=a[d],f=i({},e.exclusive,e.inclusive);for(var g in f)b=e.displayNames[g].current,c[b]=c[b]||{componentName:b,inclusive:0,exclusive:0,render:0,count:0},e.render[g]&&(c[b].render+=e.render[g]),e.exclusive[g]&&(c[b].exclusive+=e.exclusive[g]),e.inclusive[g]&&(c[b].inclusive+=e.inclusive[g]),e.counts[g]&&(c[b].count+=e.counts[g])}var h=[];for(b in c)c[b].exclusive>=j&&h.push(c[b]);return h.sort(function(a,b){return b.exclusive-a.exclusive}),h}function g(a,b){for(var c,d={},e=0;e<a.length;e++){var f,g=a[e],k=i({},g.exclusive,g.inclusive);b&&(f=h(g));for(var l in k)if(!b||f[l]){var m=g.displayNames[l];c=m.owner+" > "+m.current,d[c]=d[c]||{componentName:c,time:0,count:0},g.inclusive[l]&&(d[c].time+=g.inclusive[l]),g.counts[l]&&(d[c].count+=g.counts[l])}}var n=[];for(c in d)d[c].time>=j&&n.push(d[c]);return n.sort(function(a,b){return b.time-a.time}),n}function h(a){var b={},c=Object.keys(a.writes),d=i({},a.exclusive,a.inclusive);for(var e in d){for(var f=!1,g=0;g<c.length;g++)if(0===c[g].indexOf(e)){f=!0;break}a.created[e]&&(f=!0),!f&&a.counts[e]>0&&(b[e]=!0)}return b}var i=a("./Object.assign"),j=1.2,k={_mountImageIntoNode:"set innerHTML",INSERT_MARKUP:"set innerHTML",MOVE_EXISTING:"move",REMOVE_NODE:"remove",SET_MARKUP:"set innerHTML",TEXT_CONTENT:"set textContent",setValueForProperty:"update attribute",setValueForAttribute:"update attribute",deleteValueForProperty:"remove attribute",setValueForStyles:"update styles",replaceNodeWithMarkup:"replace",updateTextContent:"set textContent"},l={getExclusiveSummary:f,getInclusiveSummary:g,getDOMSummary:e,getTotalTime:d};b.exports=l},{"./Object.assign":253}],283:[function(a,b,c){(function(c){"use strict";var d=a("./ReactCurrentOwner"),e=a("./Object.assign"),f=a("./canDefineProperty"),g="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,h={key:!0,ref:!0,__self:!0,__source:!0},i=function(a,b,d,e,h,i,j){var k={$$typeof:g,type:a,key:b,ref:d,props:j,_owner:i};return"production"!==c.env.NODE_ENV&&(k._store={},f?(Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(k,"_self",{configurable:!1,enumerable:!1,writable:!1,value:e}),Object.defineProperty(k,"_source",{configurable:!1,enumerable:!1,writable:!1,value:h})):(k._store.validated=!1,k._self=e,k._source=h),Object.freeze(k.props),Object.freeze(k)),k};i.createElement=function(a,b,c){var e,f={},g=null,j=null,k=null,l=null;if(null!=b){j=void 0===b.ref?null:b.ref,g=void 0===b.key?null:""+b.key,k=void 0===b.__self?null:b.__self,l=void 0===b.__source?null:b.__source;for(e in b)b.hasOwnProperty(e)&&!h.hasOwnProperty(e)&&(f[e]=b[e])}var m=arguments.length-2;if(1===m)f.children=c;else if(m>1){for(var n=Array(m),o=0;m>o;o++)n[o]=arguments[o+2];f.children=n}if(a&&a.defaultProps){var p=a.defaultProps;for(e in p)"undefined"==typeof f[e]&&(f[e]=p[e])}return i(a,g,j,k,l,d.current,f)},i.createFactory=function(a){var b=i.createElement.bind(null,a);return b.type=a,b},i.cloneAndReplaceKey=function(a,b){var c=i(a.type,b,a.ref,a._self,a._source,a._owner,a.props);return c},i.cloneAndReplaceProps=function(a,b){var d=i(a.type,a.key,a.ref,a._self,a._source,a._owner,b);return"production"!==c.env.NODE_ENV&&(d._store.validated=a._store.validated),d},i.cloneElement=function(a,b,c){var f,g=e({},a.props),j=a.key,k=a.ref,l=a._self,m=a._source,n=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,n=d.current),void 0!==b.key&&(j=""+b.key);for(f in b)b.hasOwnProperty(f)&&!h.hasOwnProperty(f)&&(g[f]=b[f])}var o=arguments.length-2;if(1===o)g.children=c;else if(o>1){for(var p=Array(o),q=0;o>q;q++)p[q]=arguments[q+2];g.children=p}return i(a.type,j,k,l,m,n,g)},i.isValidElement=function(a){return"object"==typeof a&&null!==a&&a.$$typeof===g},b.exports=i}).call(this,a("_process"))},{"./Object.assign":253,"./ReactCurrentOwner":265,"./canDefineProperty":335,_process:111}],284:[function(a,b,c){(function(c){"use strict";function d(){if(m.current){var a=m.current.getName();if(a)return" Check the render method of `"+a+"`."}return""}function e(a,b){if(a._store&&!a._store.validated&&null==a.key){a._store.validated=!0;var d=f("uniqueKey",a,b);null!==d&&("production"!==c.env.NODE_ENV?q(!1,'Each child in an array or iterator should have a unique "key" prop.%s%s%s',d.parentOrOwner||"",d.childOwner||"",d.url||""):void 0)}}function f(a,b,c){var e=d();if(!e){var f="string"==typeof c?c:c.displayName||c.name;f&&(e=" Check the top-level render call using <"+f+">.")}var g=r[a]||(r[a]={});if(g[e])return null;g[e]=!0;var h={parentOrOwner:e,url:" See https://fb.me/react-warning-keys for more information.",childOwner:null};return b&&b._owner&&b._owner!==m.current&&(h.childOwner=" It was passed a child from "+b._owner.getName()+"."),h}function g(a,b){if("object"==typeof a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];j.isValidElement(d)&&e(d,b)}else if(j.isValidElement(a))a._store&&(a._store.validated=!0);else if(a){var f=o(a);if(f&&f!==a.entries)for(var g,h=f.call(a);!(g=h.next()).done;)j.isValidElement(g.value)&&e(g.value,b)}}function h(a,b,e,f){for(var g in b)if(b.hasOwnProperty(g)){var h;try{"function"!=typeof b[g]?"production"!==c.env.NODE_ENV?p(!1,"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",a||"React class",l[f],g):p(!1):void 0,h=b[g](e,g,a,f)}catch(i){h=i}if("production"!==c.env.NODE_ENV?q(!h||h instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",l[f],g,typeof h):void 0,h instanceof Error&&!(h.message in s)){s[h.message]=!0;var j=d();"production"!==c.env.NODE_ENV?q(!1,"Failed propType: %s%s",h.message,j):void 0}}}function i(a){var b=a.type;if("function"==typeof b){var d=b.displayName||b.name;b.propTypes&&h(d,b.propTypes,a.props,k.prop),"function"==typeof b.getDefaultProps&&("production"!==c.env.NODE_ENV?q(b.getDefaultProps.isReactClassApproved,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."):void 0)}}var j=a("./ReactElement"),k=a("./ReactPropTypeLocations"),l=a("./ReactPropTypeLocationNames"),m=a("./ReactCurrentOwner"),n=a("./canDefineProperty"),o=a("./getIteratorFn"),p=a("fbjs/lib/invariant"),q=a("fbjs/lib/warning"),r={},s={},t={createElement:function(a,b,e){var f="string"==typeof a||"function"==typeof a;"production"!==c.env.NODE_ENV?q(f,"React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass (for composite components).%s",d()):void 0;var h=j.createElement.apply(this,arguments);if(null==h)return h;if(f)for(var k=2;k<arguments.length;k++)g(arguments[k],a);return i(h),h},createFactory:function(a){var b=t.createElement.bind(null,a);return b.type=a,"production"!==c.env.NODE_ENV&&n&&Object.defineProperty(b,"type",{enumerable:!1,get:function(){return"production"!==c.env.NODE_ENV?q(!1,"Factory.type is deprecated. Access the class directly before passing it to createFactory."):void 0,Object.defineProperty(this,"type",{value:a}),a}}),b},cloneElement:function(a,b,c){for(var d=j.cloneElement.apply(this,arguments),e=2;e<arguments.length;e++)g(arguments[e],d.type);return i(d),d}};b.exports=t}).call(this,a("_process"))},{"./ReactCurrentOwner":265,"./ReactElement":283,"./ReactPropTypeLocationNames":303,"./ReactPropTypeLocations":304,"./canDefineProperty":335,"./getIteratorFn":346,_process:111,"fbjs/lib/invariant":375,"fbjs/lib/warning":386}],285:[function(a,b,c){"use strict";var d,e=a("./ReactElement"),f=a("./ReactEmptyComponentRegistry"),g=a("./ReactReconciler"),h=a("./Object.assign"),i={injectEmptyComponent:function(a){d=e.createElement(a)}},j=function(a){this._currentElement=null,this._rootNodeID=null,this._renderedComponent=a(d)};h(j.prototype,{construct:function(a){},mountComponent:function(a,b,c){return f.registerNullComponentID(a),this._rootNodeID=a,g.mountComponent(this._renderedComponent,a,b,c)},receiveComponent:function(){},unmountComponent:function(a,b,c){g.unmountComponent(this._renderedComponent),f.deregisterNullComponentID(this._rootNodeID),this._rootNodeID=null,this._renderedComponent=null}}),j.injection=i,b.exports=j},{"./Object.assign":253,"./ReactElement":283,"./ReactEmptyComponentRegistry":286,"./ReactReconciler":307}],286:[function(a,b,c){"use strict";function d(a){return!!g[a]}function e(a){g[a]=!0}function f(a){delete g[a]}var g={},h={isNullComponentID:d,registerNullComponentID:e,deregisterNullComponentID:f};b.exports=h},{}],287:[function(a,b,c){(function(a){"use strict";function c(a,b,c,e){try{return b(c,e)}catch(f){return void(null===d&&(d=f))}}var d=null,e={invokeGuardedCallback:c,invokeGuardedCallbackWithCatch:c,rethrowCaughtError:function(){if(d){var a=d;throw d=null,a}}};if("production"!==a.env.NODE_ENV&&"undefined"!=typeof window&&"function"==typeof window.dispatchEvent&&"undefined"!=typeof document&&"function"==typeof document.createEvent){var f=document.createElement("react");e.invokeGuardedCallback=function(a,b,c,d){var e=b.bind(null,c,d),g="react-"+a;f.addEventListener(g,e,!1);var h=document.createEvent("Event");h.initEvent(g,!1,!1),f.dispatchEvent(h),f.removeEventListener(g,e,!1)}}b.exports=e}).call(this,a("_process"))},{_process:111}],288:[function(a,b,c){"use strict";function d(a){e.enqueueEvents(a),e.processEventQueue(!1)}var e=a("./EventPluginHub"),f={handleTopLevel:function(a,b,c,f,g){var h=e.extractEvents(a,b,c,f,g);d(h)}};b.exports=f},{"./EventPluginHub":246}],289:[function(a,b,c){"use strict";function d(a){var b=m.getID(a),c=l.getReactRootIDFromNodeID(b),d=m.findReactContainerForID(c),e=m.getFirstReactDOM(d);return e}function e(a,b){this.topLevelType=a,this.nativeEvent=b,this.ancestors=[]}function f(a){g(a)}function g(a){for(var b=m.getFirstReactDOM(p(a.nativeEvent))||window,c=b;c;)a.ancestors.push(c),c=d(c);for(var e=0;e<a.ancestors.length;e++){b=a.ancestors[e];var f=m.getID(b)||"";r._handleTopLevel(a.topLevelType,b,f,a.nativeEvent,p(a.nativeEvent))}}function h(a){var b=q(window);a(b)}var i=a("fbjs/lib/EventListener"),j=a("fbjs/lib/ExecutionEnvironment"),k=a("./PooledClass"),l=a("./ReactInstanceHandles"),m=a("./ReactMount"),n=a("./ReactUpdates"),o=a("./Object.assign"),p=a("./getEventTarget"),q=a("fbjs/lib/getUnboundedScrollPosition");o(e.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),k.addPoolingTo(e,k.twoArgumentPooler);var r={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:j.canUseDOM?window:null,setHandleTopLevel:function(a){r._handleTopLevel=a},setEnabled:function(a){r._enabled=!!a},isEnabled:function(){return r._enabled},trapBubbledEvent:function(a,b,c){var d=c;return d?i.listen(d,b,r.dispatchEvent.bind(null,a)):null},trapCapturedEvent:function(a,b,c){var d=c;return d?i.capture(d,b,r.dispatchEvent.bind(null,a)):null},monitorScrollValue:function(a){var b=h.bind(null,a);i.listen(window,"scroll",b)},dispatchEvent:function(a,b){if(r._enabled){var c=e.getPooled(a,b);try{n.batchedUpdates(f,c)}finally{e.release(c)}}}};b.exports=r},{"./Object.assign":253,"./PooledClass":254,"./ReactInstanceHandles":292,"./ReactMount":296,"./ReactUpdates":314,"./getEventTarget":345,"fbjs/lib/EventListener":360,"fbjs/lib/ExecutionEnvironment":361,"fbjs/lib/getUnboundedScrollPosition":372}],290:[function(a,b,c){"use strict";var d=a("./DOMProperty"),e=a("./EventPluginHub"),f=a("./ReactComponentEnvironment"),g=a("./ReactClass"),h=a("./ReactEmptyComponent"),i=a("./ReactBrowserEventEmitter"),j=a("./ReactNativeComponent"),k=a("./ReactPerf"),l=a("./ReactRootIndex"),m=a("./ReactUpdates"),n={Component:f.injection,Class:g.injection,DOMProperty:d.injection,EmptyComponent:h.injection,EventPluginHub:e.injection,EventEmitter:i.injection,NativeComponent:j.injection,Perf:k.injection,RootIndex:l.injection,Updates:m.injection};b.exports=n},{"./DOMProperty":240,"./EventPluginHub":246,"./ReactBrowserEventEmitter":257,"./ReactClass":260,"./ReactComponentEnvironment":263,"./ReactEmptyComponent":285,"./ReactNativeComponent":299,"./ReactPerf":302,"./ReactRootIndex":309,"./ReactUpdates":314}],291:[function(a,b,c){"use strict";function d(a){return f(document.documentElement,a)}var e=a("./ReactDOMSelection"),f=a("fbjs/lib/containsNode"),g=a("fbjs/lib/focusNode"),h=a("fbjs/lib/getActiveElement"),i={hasSelectionCapabilities:function(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&("input"===b&&"text"===a.type||"textarea"===b||"true"===a.contentEditable)},getSelectionInformation:function(){var a=h();return{focusedElem:a,selectionRange:i.hasSelectionCapabilities(a)?i.getSelection(a):null}},restoreSelection:function(a){var b=h(),c=a.focusedElem,e=a.selectionRange;b!==c&&d(c)&&(i.hasSelectionCapabilities(c)&&i.setSelection(c,e),g(c))},getSelection:function(a){var b;if("selectionStart"in a)b={start:a.selectionStart,end:a.selectionEnd};else if(document.selection&&a.nodeName&&"input"===a.nodeName.toLowerCase()){var c=document.selection.createRange();c.parentElement()===a&&(b={start:-c.moveStart("character",-a.value.length),end:-c.moveEnd("character",-a.value.length)})}else b=e.getOffsets(a);return b||{start:0,end:0}},setSelection:function(a,b){var c=b.start,d=b.end;if("undefined"==typeof d&&(d=c),"selectionStart"in a)a.selectionStart=c,a.selectionEnd=Math.min(d,a.value.length);else if(document.selection&&a.nodeName&&"input"===a.nodeName.toLowerCase()){var f=a.createTextRange();f.collapse(!0),f.moveStart("character",c),f.moveEnd("character",d-c),f.select()}else e.setOffsets(a,b)}};b.exports=i},{"./ReactDOMSelection":275,"fbjs/lib/containsNode":364,"fbjs/lib/focusNode":369,"fbjs/lib/getActiveElement":370}],292:[function(a,b,c){(function(c){"use strict";function d(a){return n+a.toString(36)}function e(a,b){return a.charAt(b)===n||b===a.length}function f(a){return""===a||a.charAt(0)===n&&a.charAt(a.length-1)!==n}function g(a,b){return 0===b.indexOf(a)&&e(b,a.length)}function h(a){return a?a.substr(0,a.lastIndexOf(n)):""}function i(a,b){if(f(a)&&f(b)?void 0:"production"!==c.env.NODE_ENV?m(!1,"getNextDescendantID(%s, %s): Received an invalid React DOM ID.",a,b):m(!1),g(a,b)?void 0:"production"!==c.env.NODE_ENV?m(!1,"getNextDescendantID(...): React has made an invalid assumption about the DOM hierarchy. Expected `%s` to be an ancestor of `%s`.",a,b):m(!1),a===b)return a;var d,h=a.length+o;for(d=h;d<b.length&&!e(b,d);d++);return b.substr(0,d)}function j(a,b){var d=Math.min(a.length,b.length);if(0===d)return"";for(var g=0,h=0;d>=h;h++)if(e(a,h)&&e(b,h))g=h;else if(a.charAt(h)!==b.charAt(h))break;var i=a.substr(0,g);return f(i)?void 0:"production"!==c.env.NODE_ENV?m(!1,"getFirstCommonAncestorID(%s, %s): Expected a valid React DOM ID: %s",a,b,i):m(!1),i}function k(a,b,d,e,f,j){a=a||"",b=b||"",a===b?"production"!==c.env.NODE_ENV?m(!1,"traverseParentPath(...): Cannot traverse from and to the same ID, `%s`.",a):m(!1):void 0;var k=g(b,a);k||g(a,b)?void 0:"production"!==c.env.NODE_ENV?m(!1,"traverseParentPath(%s, %s, ...): Cannot traverse from two IDs that do not have a parent path.",a,b):m(!1);for(var l=0,n=k?h:i,o=a;;o=n(o,b)){var q;if(f&&o===a||j&&o===b||(q=d(o,k,e)),q===!1||o===b)break;l++<p?void 0:"production"!==c.env.NODE_ENV?m(!1,"traverseParentPath(%s, %s, ...): Detected an infinite loop while traversing the React DOM ID tree. This may be due to malformed IDs: %s",a,b,o):m(!1)}}var l=a("./ReactRootIndex"),m=a("fbjs/lib/invariant"),n=".",o=n.length,p=1e4,q={createReactRootID:function(){return d(l.createReactRootIndex())},createReactID:function(a,b){return a+b},getReactRootIDFromNodeID:function(a){if(a&&a.charAt(0)===n&&a.length>1){var b=a.indexOf(n,1);return b>-1?a.substr(0,b):a}return null},traverseEnterLeave:function(a,b,c,d,e){var f=j(a,b);f!==a&&k(a,f,c,d,!1,!0),f!==b&&k(f,b,c,e,!0,!1)},traverseTwoPhase:function(a,b,c){a&&(k("",a,b,c,!0,!1),k(a,"",b,c,!1,!0))},traverseTwoPhaseSkipTarget:function(a,b,c){a&&(k("",a,b,c,!0,!0),k(a,"",b,c,!0,!0))},traverseAncestors:function(a,b,c){k("",a,b,c,!0,!1)},getFirstCommonAncestorID:j,_getNextDescendantID:i,isAncestorIDOf:g,SEPARATOR:n};b.exports=q}).call(this,a("_process"))},{"./ReactRootIndex":309,_process:111,"fbjs/lib/invariant":375}],293:[function(a,b,c){"use strict";var d={remove:function(a){a._reactInternalInstance=void 0},get:function(a){return a._reactInternalInstance},has:function(a){return void 0!==a._reactInternalInstance},set:function(a,b){a._reactInternalInstance=b}};b.exports=d},{}],294:[function(a,b,c){(function(c){"use strict";var d=a("./ReactChildren"),e=a("./ReactComponent"),f=a("./ReactClass"),g=a("./ReactDOMFactories"),h=a("./ReactElement"),i=a("./ReactElementValidator"),j=a("./ReactPropTypes"),k=a("./ReactVersion"),l=a("./Object.assign"),m=a("./onlyChild"),n=h.createElement,o=h.createFactory,p=h.cloneElement;
22
- "production"!==c.env.NODE_ENV&&(n=i.createElement,o=i.createFactory,p=i.cloneElement);var q={Children:{map:d.map,forEach:d.forEach,count:d.count,toArray:d.toArray,only:m},Component:e,createElement:n,cloneElement:p,isValidElement:h.isValidElement,PropTypes:j,createClass:f.createClass,createFactory:o,createMixin:function(a){return a},DOM:g,version:k,__spread:l};b.exports=q}).call(this,a("_process"))},{"./Object.assign":253,"./ReactChildren":259,"./ReactClass":260,"./ReactComponent":261,"./ReactDOMFactories":269,"./ReactElement":283,"./ReactElementValidator":284,"./ReactPropTypes":305,"./ReactVersion":315,"./onlyChild":352,_process:111}],295:[function(a,b,c){"use strict";var d=a("./adler32"),e=/\/?>/,f={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(a){var b=d(a);return a.replace(e," "+f.CHECKSUM_ATTR_NAME+'="'+b+'"$&')},canReuseMarkup:function(a,b){var c=b.getAttribute(f.CHECKSUM_ATTR_NAME);c=c&&parseInt(c,10);var e=d(a);return e===c}};b.exports=f},{"./adler32":334}],296:[function(a,b,c){(function(c){"use strict";function d(a,b){for(var c=Math.min(a.length,b.length),d=0;c>d;d++)if(a.charAt(d)!==b.charAt(d))return d;return a.length===b.length?-1:c}function e(a){return a?a.nodeType===T?a.documentElement:a.firstChild:null}function f(a){var b=e(a);return b&&aa.getID(b)}function g(a){var b=h(a);if(b)if(R.hasOwnProperty(b)){var d=R[b];d!==a&&(l(d,b)?"production"!==c.env.NODE_ENV?L(!1,"ReactMount: Two valid but unequal nodes with the same `%s`: %s",Q,b):L(!1):void 0,R[b]=a)}else R[b]=a;return b}function h(a){return a&&a.getAttribute&&a.getAttribute(Q)||""}function i(a,b){var c=h(a);c!==b&&delete R[c],a.setAttribute(Q,b),R[b]=a}function j(a){return R.hasOwnProperty(a)&&l(R[a],a)||(R[a]=aa.findReactNodeByID(a)),R[a]}function k(a){var b=B.get(a)._rootNodeID;return z.isNullComponentID(b)?null:(R.hasOwnProperty(b)&&l(R[b],b)||(R[b]=aa.findReactNodeByID(b)),R[b])}function l(a,b){if(a){h(a)!==b?"production"!==c.env.NODE_ENV?L(!1,"ReactMount: Unexpected modification of `%s`",Q):L(!1):void 0;var d=aa.findReactContainerForID(b);if(d&&J(d,a))return!0}return!1}function m(a){delete R[a]}function n(a){var b=R[a];return b&&l(b,a)?void($=b):!1}function o(a){$=null,A.traverseAncestors(a,n);var b=$;return $=null,b}function p(a,b,d,e,f,g){if(x.useCreateElement&&(g=H({},g),d.nodeType===T?g[V]=d:g[V]=d.ownerDocument),"production"!==c.env.NODE_ENV){g===I&&(g={});var h=d.nodeName.toLowerCase();g[O.ancestorInfoContextKey]=O.updatedAncestorInfo(null,h,null)}var i=E.mountComponent(a,b,e,g);a._renderedComponent._topLevelWrapper=a,aa._mountImageIntoNode(i,d,f,e)}function q(a,b,c,d,e){var f=G.ReactReconcileTransaction.getPooled(d);f.perform(p,null,a,b,c,f,d,e),G.ReactReconcileTransaction.release(f)}function r(a,b){for(E.unmountComponent(a),b.nodeType===T&&(b=b.documentElement);b.lastChild;)b.removeChild(b.lastChild)}function s(a){var b=f(a);return b?b!==A.getReactRootIDFromNodeID(b):!1}function t(a){for(;a&&a.parentNode!==a;a=a.parentNode)if(1===a.nodeType){var b=h(a);if(b){var c,d=A.getReactRootIDFromNodeID(b),e=a;do if(c=h(e),e=e.parentNode,null==e)return null;while(c!==d);if(e===X[d])return a}}return null}var u=a("./DOMProperty"),v=a("./ReactBrowserEventEmitter"),w=a("./ReactCurrentOwner"),x=a("./ReactDOMFeatureFlags"),y=a("./ReactElement"),z=a("./ReactEmptyComponentRegistry"),A=a("./ReactInstanceHandles"),B=a("./ReactInstanceMap"),C=a("./ReactMarkupChecksum"),D=a("./ReactPerf"),E=a("./ReactReconciler"),F=a("./ReactUpdateQueue"),G=a("./ReactUpdates"),H=a("./Object.assign"),I=a("fbjs/lib/emptyObject"),J=a("fbjs/lib/containsNode"),K=a("./instantiateReactComponent"),L=a("fbjs/lib/invariant"),M=a("./setInnerHTML"),N=a("./shouldUpdateReactComponent"),O=a("./validateDOMNesting"),P=a("fbjs/lib/warning"),Q=u.ID_ATTRIBUTE_NAME,R={},S=1,T=9,U=11,V="__ReactMount_ownerDocument$"+Math.random().toString(36).slice(2),W={},X={};if("production"!==c.env.NODE_ENV)var Y={};var Z=[],$=null,_=function(){};_.prototype.isReactComponent={},"production"!==c.env.NODE_ENV&&(_.displayName="TopLevelWrapper"),_.prototype.render=function(){return this.props};var aa={TopLevelWrapper:_,_instancesByReactRootID:W,scrollMonitor:function(a,b){b()},_updateRootComponent:function(a,b,d,g){return aa.scrollMonitor(d,function(){F.enqueueElementInternal(a,b),g&&F.enqueueCallbackInternal(a,g)}),"production"!==c.env.NODE_ENV&&(Y[f(d)]=e(d)),a},_registerComponent:function(a,b){!b||b.nodeType!==S&&b.nodeType!==T&&b.nodeType!==U?"production"!==c.env.NODE_ENV?L(!1,"_registerComponent(...): Target container is not a DOM element."):L(!1):void 0,v.ensureScrollValueMonitoring();var d=aa.registerContainer(b);return W[d]=a,d},_renderNewRootComponent:function(a,b,d,f){"production"!==c.env.NODE_ENV?P(null==w.current,"_renderNewRootComponent(): Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate. Check the render method of %s.",w.current&&w.current.getName()||"ReactCompositeComponent"):void 0;var g=K(a,null),h=aa._registerComponent(g,b);return G.batchedUpdates(q,g,h,b,d,f),"production"!==c.env.NODE_ENV&&(Y[h]=e(b)),g},renderSubtreeIntoContainer:function(a,b,d,e){return null==a||null==a._reactInternalInstance?"production"!==c.env.NODE_ENV?L(!1,"parentComponent must be a valid React Component"):L(!1):void 0,aa._renderSubtreeIntoContainer(a,b,d,e)},_renderSubtreeIntoContainer:function(a,b,d,g){y.isValidElement(b)?void 0:"production"!==c.env.NODE_ENV?L(!1,"ReactDOM.render(): Invalid component element.%s","string"==typeof b?" Instead of passing an element string, make sure to instantiate it by passing it to React.createElement.":"function"==typeof b?" Instead of passing a component class, make sure to instantiate it by passing it to React.createElement.":null!=b&&void 0!==b.props?" This may be caused by unintentionally loading two independent copies of React.":""):L(!1),"production"!==c.env.NODE_ENV?P(!d||!d.tagName||"BODY"!==d.tagName.toUpperCase(),"render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app."):void 0;var i=new y(_,null,null,null,null,null,b),j=W[f(d)];if(j){var k=j._currentElement,l=k.props;if(N(l,b)){var m=j._renderedComponent.getPublicInstance(),n=g&&function(){g.call(m)};return aa._updateRootComponent(j,i,d,n),m}aa.unmountComponentAtNode(d)}var o=e(d),p=o&&!!h(o),q=s(d);if("production"!==c.env.NODE_ENV&&("production"!==c.env.NODE_ENV?P(!q,"render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."):void 0,!p||o.nextSibling))for(var r=o;r;){if(h(r)){"production"!==c.env.NODE_ENV?P(!1,"render(): Target node has markup rendered by React, but there are unrelated nodes as well. This is most commonly caused by white-space inserted around server-rendered markup."):void 0;break}r=r.nextSibling}var t=p&&!j&&!q,u=aa._renderNewRootComponent(i,d,t,null!=a?a._reactInternalInstance._processChildContext(a._reactInternalInstance._context):I)._renderedComponent.getPublicInstance();return g&&g.call(u),u},render:function(a,b,c){return aa._renderSubtreeIntoContainer(null,a,b,c)},registerContainer:function(a){var b=f(a);return b&&(b=A.getReactRootIDFromNodeID(b)),b||(b=A.createReactRootID()),X[b]=a,b},unmountComponentAtNode:function(a){"production"!==c.env.NODE_ENV?P(null==w.current,"unmountComponentAtNode(): Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate. Check the render method of %s.",w.current&&w.current.getName()||"ReactCompositeComponent"):void 0,!a||a.nodeType!==S&&a.nodeType!==T&&a.nodeType!==U?"production"!==c.env.NODE_ENV?L(!1,"unmountComponentAtNode(...): Target container is not a DOM element."):L(!1):void 0;var b=f(a),d=W[b];if(!d){var e=s(a),g=h(a),i=g&&g===A.getReactRootIDFromNodeID(g);return"production"!==c.env.NODE_ENV&&("production"!==c.env.NODE_ENV?P(!e,"unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",i?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component."):void 0),!1}return G.batchedUpdates(r,d,a),delete W[b],delete X[b],"production"!==c.env.NODE_ENV&&delete Y[b],!0},findReactContainerForID:function(a){var b=A.getReactRootIDFromNodeID(a),d=X[b];if("production"!==c.env.NODE_ENV){var e=Y[b];if(e&&e.parentNode!==d){"production"!==c.env.NODE_ENV?P(h(e)===b,"ReactMount: Root element ID differed from reactRootID."):void 0;var f=d.firstChild;f&&b===h(f)?Y[b]=f:"production"!==c.env.NODE_ENV?P(!1,"ReactMount: Root element has been removed from its original container. New container: %s",e.parentNode):void 0}}return d},findReactNodeByID:function(a){var b=aa.findReactContainerForID(a);return aa.findComponentRoot(b,a)},getFirstReactDOM:function(a){return t(a)},findComponentRoot:function(a,b){var d=Z,e=0,f=o(b)||a;for("production"!==c.env.NODE_ENV&&("production"!==c.env.NODE_ENV?P(null!=f,"React can't find the root component node for data-reactid value `%s`. If you're seeing this message, it probably means that you've loaded two copies of React on the page. At this time, only a single copy of React can be loaded at a time.",b):void 0),d[0]=f.firstChild,d.length=1;e<d.length;){for(var g,h=d[e++];h;){var i=aa.getID(h);i?b===i?g=h:A.isAncestorIDOf(i,b)&&(d.length=e=0,d.push(h.firstChild)):d.push(h.firstChild),h=h.nextSibling}if(g)return d.length=0,g}d.length=0,"production"!==c.env.NODE_ENV?L(!1,"findComponentRoot(..., %s): Unable to find element. This probably means the DOM was unexpectedly mutated (e.g., by the browser), usually due to forgetting a <tbody> when using tables, nesting tags like <form>, <p>, or <a>, or using non-SVG elements in an <svg> parent. Try inspecting the child nodes of the element with React ID `%s`.",b,aa.getID(a)):L(!1)},_mountImageIntoNode:function(a,b,f,g){if(!b||b.nodeType!==S&&b.nodeType!==T&&b.nodeType!==U?"production"!==c.env.NODE_ENV?L(!1,"mountComponentIntoNode(...): Target container is not valid."):L(!1):void 0,f){var h=e(b);if(C.canReuseMarkup(a,h))return;var i=h.getAttribute(C.CHECKSUM_ATTR_NAME);h.removeAttribute(C.CHECKSUM_ATTR_NAME);var j=h.outerHTML;h.setAttribute(C.CHECKSUM_ATTR_NAME,i);var k=a;if("production"!==c.env.NODE_ENV){var l;b.nodeType===S?(l=document.createElement("div"),l.innerHTML=a,k=l.innerHTML):(l=document.createElement("iframe"),document.body.appendChild(l),l.contentDocument.write(a),k=l.contentDocument.documentElement.outerHTML,document.body.removeChild(l))}var m=d(k,j),n=" (client) "+k.substring(m-20,m+20)+"\n (server) "+j.substring(m-20,m+20);b.nodeType===T?"production"!==c.env.NODE_ENV?L(!1,"You're trying to render a component to the document using server rendering but the checksum was invalid. This usually means you rendered a different component type or props on the client from the one on the server, or your render() methods are impure. React cannot handle this case due to cross-browser quirks by rendering at the document root. You should look for environment dependent code in your components and ensure the props are the same client and server side:\n%s",n):L(!1):void 0,"production"!==c.env.NODE_ENV&&("production"!==c.env.NODE_ENV?P(!1,"React attempted to reuse markup in a container but the checksum was invalid. This generally means that you are using server rendering and the markup generated on the server was not what the client was expecting. React injected new markup to compensate which works but you have lost many of the benefits of server rendering. Instead, figure out why the markup being generated is different on the client or server:\n%s",n):void 0)}if(b.nodeType===T?"production"!==c.env.NODE_ENV?L(!1,"You're trying to render a component to the document but you didn't use server rendering. We can't do this without using server rendering due to cross-browser quirks. See ReactDOMServer.renderToString() for server rendering."):L(!1):void 0,g.useCreateElement){for(;b.lastChild;)b.removeChild(b.lastChild);b.appendChild(a)}else M(b,a)},ownerDocumentContextKey:V,getReactRootID:f,getID:g,setID:i,getNode:j,getNodeFromInstance:k,isValid:l,purgeID:m};D.measureMethods(aa,"ReactMount",{_renderNewRootComponent:"_renderNewRootComponent",_mountImageIntoNode:"_mountImageIntoNode"}),b.exports=aa}).call(this,a("_process"))},{"./DOMProperty":240,"./Object.assign":253,"./ReactBrowserEventEmitter":257,"./ReactCurrentOwner":265,"./ReactDOMFeatureFlags":270,"./ReactElement":283,"./ReactEmptyComponentRegistry":286,"./ReactInstanceHandles":292,"./ReactInstanceMap":293,"./ReactMarkupChecksum":295,"./ReactPerf":302,"./ReactReconciler":307,"./ReactUpdateQueue":313,"./ReactUpdates":314,"./instantiateReactComponent":349,"./setInnerHTML":355,"./shouldUpdateReactComponent":357,"./validateDOMNesting":359,_process:111,"fbjs/lib/containsNode":364,"fbjs/lib/emptyObject":368,"fbjs/lib/invariant":375,"fbjs/lib/warning":386}],297:[function(a,b,c){(function(c){"use strict";function d(a,b,c){r.push({parentID:a,parentNode:null,type:l.INSERT_MARKUP,markupIndex:s.push(b)-1,content:null,fromIndex:null,toIndex:c})}function e(a,b,c){r.push({parentID:a,parentNode:null,type:l.MOVE_EXISTING,markupIndex:null,content:null,fromIndex:b,toIndex:c})}function f(a,b){r.push({parentID:a,parentNode:null,type:l.REMOVE_NODE,markupIndex:null,content:null,fromIndex:b,toIndex:null})}function g(a,b){r.push({parentID:a,parentNode:null,type:l.SET_MARKUP,markupIndex:null,content:b,fromIndex:null,toIndex:null})}function h(a,b){r.push({parentID:a,parentNode:null,type:l.TEXT_CONTENT,markupIndex:null,content:b,fromIndex:null,toIndex:null})}function i(){r.length&&(k.processChildrenUpdates(r,s),j())}function j(){r.length=0,s.length=0}var k=a("./ReactComponentEnvironment"),l=a("./ReactMultiChildUpdateTypes"),m=a("./ReactCurrentOwner"),n=a("./ReactReconciler"),o=a("./ReactChildReconciler"),p=a("./flattenChildren"),q=0,r=[],s=[],t={Mixin:{_reconcilerInstantiateChildren:function(a,b,d){if("production"!==c.env.NODE_ENV&&this._currentElement)try{return m.current=this._currentElement._owner,o.instantiateChildren(a,b,d)}finally{m.current=null}return o.instantiateChildren(a,b,d)},_reconcilerUpdateChildren:function(a,b,d,e){var f;if("production"!==c.env.NODE_ENV&&this._currentElement){try{m.current=this._currentElement._owner,f=p(b)}finally{m.current=null}return o.updateChildren(a,f,d,e)}return f=p(b),o.updateChildren(a,f,d,e)},mountChildren:function(a,b,c){var d=this._reconcilerInstantiateChildren(a,b,c);this._renderedChildren=d;var e=[],f=0;for(var g in d)if(d.hasOwnProperty(g)){var h=d[g],i=this._rootNodeID+g,j=n.mountComponent(h,i,b,c);h._mountIndex=f++,e.push(j)}return e},updateTextContent:function(a){q++;var b=!0;try{var c=this._renderedChildren;o.unmountChildren(c);for(var d in c)c.hasOwnProperty(d)&&this._unmountChild(c[d]);this.setTextContent(a),b=!1}finally{q--,q||(b?j():i())}},updateMarkup:function(a){q++;var b=!0;try{var c=this._renderedChildren;o.unmountChildren(c);for(var d in c)c.hasOwnProperty(d)&&this._unmountChildByName(c[d],d);this.setMarkup(a),b=!1}finally{q--,q||(b?j():i())}},updateChildren:function(a,b,c){q++;var d=!0;try{this._updateChildren(a,b,c),d=!1}finally{q--,q||(d?j():i())}},_updateChildren:function(a,b,c){var d=this._renderedChildren,e=this._reconcilerUpdateChildren(d,a,b,c);if(this._renderedChildren=e,e||d){var f,g=0,h=0;for(f in e)if(e.hasOwnProperty(f)){var i=d&&d[f],j=e[f];i===j?(this.moveChild(i,h,g),g=Math.max(i._mountIndex,g),i._mountIndex=h):(i&&(g=Math.max(i._mountIndex,g),this._unmountChild(i)),this._mountChildByNameAtIndex(j,f,h,b,c)),h++}for(f in d)!d.hasOwnProperty(f)||e&&e.hasOwnProperty(f)||this._unmountChild(d[f])}},unmountChildren:function(){var a=this._renderedChildren;o.unmountChildren(a),this._renderedChildren=null},moveChild:function(a,b,c){a._mountIndex<c&&e(this._rootNodeID,a._mountIndex,b)},createChild:function(a,b){d(this._rootNodeID,b,a._mountIndex)},removeChild:function(a){f(this._rootNodeID,a._mountIndex)},setTextContent:function(a){h(this._rootNodeID,a)},setMarkup:function(a){g(this._rootNodeID,a)},_mountChildByNameAtIndex:function(a,b,c,d,e){var f=this._rootNodeID+b,g=n.mountComponent(a,f,d,e);a._mountIndex=c,this.createChild(a,g)},_unmountChild:function(a){this.removeChild(a),a._mountIndex=null}}};b.exports=t}).call(this,a("_process"))},{"./ReactChildReconciler":258,"./ReactComponentEnvironment":263,"./ReactCurrentOwner":265,"./ReactMultiChildUpdateTypes":298,"./ReactReconciler":307,"./flattenChildren":340,_process:111}],298:[function(a,b,c){"use strict";var d=a("fbjs/lib/keyMirror"),e=d({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,SET_MARKUP:null,TEXT_CONTENT:null});b.exports=e},{"fbjs/lib/keyMirror":378}],299:[function(a,b,c){(function(c){"use strict";function d(a){if("function"==typeof a.type)return a.type;var b=a.type,c=l[b];return null==c&&(l[b]=c=j(b)),c}function e(a){return k?void 0:"production"!==c.env.NODE_ENV?i(!1,"There is no registered component for the tag %s",a.type):i(!1),new k(a.type,a.props)}function f(a){return new m(a)}function g(a){return a instanceof m}var h=a("./Object.assign"),i=a("fbjs/lib/invariant"),j=null,k=null,l={},m=null,n={injectGenericComponentClass:function(a){k=a},injectTextComponentClass:function(a){m=a},injectComponentClasses:function(a){h(l,a)}},o={getComponentClassForElement:d,createInternalComponent:e,createInstanceForText:f,isTextComponent:g,injection:n};b.exports=o}).call(this,a("_process"))},{"./Object.assign":253,_process:111,"fbjs/lib/invariant":375}],300:[function(a,b,c){(function(c){"use strict";function d(a,b){"production"!==c.env.NODE_ENV&&("production"!==c.env.NODE_ENV?e(!1,"%s(...): Can only update a mounted or mounting component. This usually means you called %s() on an unmounted component. This is a no-op. Please check the code for the %s component.",b,b,a.constructor&&a.constructor.displayName||""):void 0)}var e=a("fbjs/lib/warning"),f={isMounted:function(a){return!1},enqueueCallback:function(a,b){},enqueueForceUpdate:function(a){d(a,"forceUpdate")},enqueueReplaceState:function(a,b){d(a,"replaceState")},enqueueSetState:function(a,b){d(a,"setState")},enqueueSetProps:function(a,b){d(a,"setProps")},enqueueReplaceProps:function(a,b){d(a,"replaceProps")}};b.exports=f}).call(this,a("_process"))},{_process:111,"fbjs/lib/warning":386}],301:[function(a,b,c){(function(c){"use strict";var d=a("fbjs/lib/invariant"),e={isValidOwner:function(a){return!(!a||"function"!=typeof a.attachRef||"function"!=typeof a.detachRef)},addComponentAsRefTo:function(a,b,f){e.isValidOwner(f)?void 0:"production"!==c.env.NODE_ENV?d(!1,"addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner)."):d(!1),f.attachRef(b,a)},removeComponentAsRefFrom:function(a,b,f){e.isValidOwner(f)?void 0:"production"!==c.env.NODE_ENV?d(!1,"removeComponentAsRefFrom(...): Only a ReactOwner can have refs. You might be removing a ref to a component that was not created inside a component's `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner)."):d(!1),f.getPublicInstance().refs[b]===a.getPublicInstance()&&f.detachRef(b)}};b.exports=e}).call(this,a("_process"))},{_process:111,"fbjs/lib/invariant":375}],302:[function(a,b,c){(function(a){"use strict";function c(a,b,c){return c}var d={enableMeasure:!1,storedMeasure:c,measureMethods:function(b,c,e){if("production"!==a.env.NODE_ENV)for(var f in e)e.hasOwnProperty(f)&&(b[f]=d.measure(c,e[f],b[f]))},measure:function(b,c,e){if("production"!==a.env.NODE_ENV){var f=null,g=function(){return d.enableMeasure?(f||(f=d.storedMeasure(b,c,e)),f.apply(this,arguments)):e.apply(this,arguments)};return g.displayName=b+"_"+c,g}return e},injection:{injectMeasure:function(a){d.storedMeasure=a}}};b.exports=d}).call(this,a("_process"))},{_process:111}],303:[function(a,b,c){(function(a){"use strict";var c={};"production"!==a.env.NODE_ENV&&(c={prop:"prop",context:"context",childContext:"child context"}),b.exports=c}).call(this,a("_process"))},{_process:111}],304:[function(a,b,c){"use strict";var d=a("fbjs/lib/keyMirror"),e=d({prop:null,context:null,childContext:null});b.exports=e},{"fbjs/lib/keyMirror":378}],305:[function(a,b,c){"use strict";function d(a){function b(b,c,d,e,f,g){if(e=e||w,g=g||d,null==c[d]){var h=t[f];return b?new Error("Required "+h+" `"+g+"` was not specified in "+("`"+e+"`.")):null}return a(c,d,e,f,g)}var c=b.bind(null,!1);return c.isRequired=b.bind(null,!0),c}function e(a){function b(b,c,d,e,f){var g=b[c],h=p(g);if(h!==a){var i=t[e],j=q(g);return new Error("Invalid "+i+" `"+f+"` of type "+("`"+j+"` supplied to `"+d+"`, expected ")+("`"+a+"`."))}return null}return d(b)}function f(){return d(u.thatReturns(null))}function g(a){function b(b,c,d,e,f){var g=b[c];if(!Array.isArray(g)){var h=t[e],i=p(g);return new Error("Invalid "+h+" `"+f+"` of type "+("`"+i+"` supplied to `"+d+"`, expected an array."))}for(var j=0;j<g.length;j++){var k=a(g,j,d,e,f+"["+j+"]");if(k instanceof Error)return k}return null}return d(b)}function h(){function a(a,b,c,d,e){if(!s.isValidElement(a[b])){var f=t[d];return new Error("Invalid "+f+" `"+e+"` supplied to "+("`"+c+"`, expected a single ReactElement."))}return null}return d(a)}function i(a){function b(b,c,d,e,f){if(!(b[c]instanceof a)){var g=t[e],h=a.name||w,i=r(b[c]);return new Error("Invalid "+g+" `"+f+"` of type "+("`"+i+"` supplied to `"+d+"`, expected ")+("instance of `"+h+"`."))}return null}return d(b)}function j(a){function b(b,c,d,e,f){for(var g=b[c],h=0;h<a.length;h++)if(g===a[h])return null;var i=t[e],j=JSON.stringify(a);return new Error("Invalid "+i+" `"+f+"` of value `"+g+"` "+("supplied to `"+d+"`, expected one of "+j+"."))}return d(Array.isArray(a)?b:function(){return new Error("Invalid argument supplied to oneOf, expected an instance of array.")})}function k(a){function b(b,c,d,e,f){var g=b[c],h=p(g);if("object"!==h){var i=t[e];return new Error("Invalid "+i+" `"+f+"` of type "+("`"+h+"` supplied to `"+d+"`, expected an object."))}for(var j in g)if(g.hasOwnProperty(j)){var k=a(g,j,d,e,f+"."+j);if(k instanceof Error)return k}return null}return d(b)}function l(a){function b(b,c,d,e,f){for(var g=0;g<a.length;g++){var h=a[g];if(null==h(b,c,d,e,f))return null}var i=t[e];return new Error("Invalid "+i+" `"+f+"` supplied to "+("`"+d+"`."))}return d(Array.isArray(a)?b:function(){return new Error("Invalid argument supplied to oneOfType, expected an instance of array.")})}function m(){function a(a,b,c,d,e){if(!o(a[b])){var f=t[d];return new Error("Invalid "+f+" `"+e+"` supplied to "+("`"+c+"`, expected a ReactNode."))}return null}return d(a)}function n(a){function b(b,c,d,e,f){var g=b[c],h=p(g);if("object"!==h){var i=t[e];return new Error("Invalid "+i+" `"+f+"` of type `"+h+"` "+("supplied to `"+d+"`, expected `object`."))}for(var j in a){var k=a[j];if(k){var l=k(g,j,d,e,f+"."+j);if(l)return l}}return null}return d(b)}function o(a){switch(typeof a){case"number":case"string":case"undefined":return!0;case"boolean":return!a;case"object":if(Array.isArray(a))return a.every(o);if(null===a||s.isValidElement(a))return!0;var b=v(a);if(!b)return!1;var c,d=b.call(a);if(b!==a.entries){for(;!(c=d.next()).done;)if(!o(c.value))return!1}else for(;!(c=d.next()).done;){var e=c.value;if(e&&!o(e[1]))return!1}return!0;default:return!1}}function p(a){var b=typeof a;return Array.isArray(a)?"array":a instanceof RegExp?"object":b}function q(a){var b=p(a);if("object"===b){if(a instanceof Date)return"date";if(a instanceof RegExp)return"regexp"}return b}function r(a){return a.constructor&&a.constructor.name?a.constructor.name:"<<anonymous>>"}var s=a("./ReactElement"),t=a("./ReactPropTypeLocationNames"),u=a("fbjs/lib/emptyFunction"),v=a("./getIteratorFn"),w="<<anonymous>>",x={array:e("array"),bool:e("boolean"),func:e("function"),number:e("number"),object:e("object"),string:e("string"),any:f(),arrayOf:g,element:h(),instanceOf:i,node:m(),objectOf:k,oneOf:j,oneOfType:l,shape:n};b.exports=x},{"./ReactElement":283,"./ReactPropTypeLocationNames":303,"./getIteratorFn":346,"fbjs/lib/emptyFunction":367}],306:[function(a,b,c){"use strict";function d(a){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=e.getPooled(null),this.useCreateElement=!a&&h.useCreateElement}var e=a("./CallbackQueue"),f=a("./PooledClass"),g=a("./ReactBrowserEventEmitter"),h=a("./ReactDOMFeatureFlags"),i=a("./ReactInputSelection"),j=a("./Transaction"),k=a("./Object.assign"),l={initialize:i.getSelectionInformation,close:i.restoreSelection},m={initialize:function(){var a=g.isEnabled();return g.setEnabled(!1),a},close:function(a){g.setEnabled(a)}},n={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},o=[l,m,n],p={getTransactionWrappers:function(){return o},getReactMountReady:function(){return this.reactMountReady},destructor:function(){e.release(this.reactMountReady),this.reactMountReady=null}};k(d.prototype,j.Mixin,p),f.addPoolingTo(d),b.exports=d},{"./CallbackQueue":236,"./Object.assign":253,"./PooledClass":254,"./ReactBrowserEventEmitter":257,"./ReactDOMFeatureFlags":270,"./ReactInputSelection":291,"./Transaction":331}],307:[function(a,b,c){"use strict";function d(){e.attachRefs(this,this._currentElement)}var e=a("./ReactRef"),f={mountComponent:function(a,b,c,e){var f=a.mountComponent(b,c,e);return a._currentElement&&null!=a._currentElement.ref&&c.getReactMountReady().enqueue(d,a),f},unmountComponent:function(a){e.detachRefs(a,a._currentElement),a.unmountComponent()},receiveComponent:function(a,b,c,f){var g=a._currentElement;if(b!==g||f!==a._context){var h=e.shouldUpdateRefs(g,b);h&&e.detachRefs(a,g),a.receiveComponent(b,c,f),h&&a._currentElement&&null!=a._currentElement.ref&&c.getReactMountReady().enqueue(d,a)}},performUpdateIfNecessary:function(a,b){a.performUpdateIfNecessary(b)}};b.exports=f},{"./ReactRef":308}],308:[function(a,b,c){"use strict";function d(a,b,c){"function"==typeof a?a(b.getPublicInstance()):f.addComponentAsRefTo(b,a,c)}function e(a,b,c){"function"==typeof a?a(null):f.removeComponentAsRefFrom(b,a,c)}var f=a("./ReactOwner"),g={};g.attachRefs=function(a,b){if(null!==b&&b!==!1){var c=b.ref;null!=c&&d(c,a,b._owner)}},g.shouldUpdateRefs=function(a,b){var c=null===a||a===!1,d=null===b||b===!1;return c||d||b._owner!==a._owner||b.ref!==a.ref},g.detachRefs=function(a,b){if(null!==b&&b!==!1){var c=b.ref;null!=c&&e(c,a,b._owner)}},b.exports=g},{"./ReactOwner":301}],309:[function(a,b,c){"use strict";var d={injectCreateReactRootIndex:function(a){e.createReactRootIndex=a}},e={createReactRootIndex:null,injection:d};b.exports=e},{}],310:[function(a,b,c){"use strict";var d={isBatchingUpdates:!1,batchedUpdates:function(a){}};b.exports=d},{}],311:[function(a,b,c){(function(c){"use strict";function d(a){g.isValidElement(a)?void 0:"production"!==c.env.NODE_ENV?o(!1,"renderToString(): You must pass a valid ReactElement."):o(!1);var b;try{l.injection.injectBatchingStrategy(j);var d=h.createReactRootID();return b=k.getPooled(!1),b.perform(function(){var c=n(a,null),e=c.mountComponent(d,b,m);return i.addChecksumToMarkup(e)},null)}finally{k.release(b),l.injection.injectBatchingStrategy(f)}}function e(a){g.isValidElement(a)?void 0:"production"!==c.env.NODE_ENV?o(!1,"renderToStaticMarkup(): You must pass a valid ReactElement."):o(!1);var b;try{l.injection.injectBatchingStrategy(j);var d=h.createReactRootID();return b=k.getPooled(!0),b.perform(function(){var c=n(a,null);return c.mountComponent(d,b,m)},null)}finally{k.release(b),l.injection.injectBatchingStrategy(f)}}var f=a("./ReactDefaultBatchingStrategy"),g=a("./ReactElement"),h=a("./ReactInstanceHandles"),i=a("./ReactMarkupChecksum"),j=a("./ReactServerBatchingStrategy"),k=a("./ReactServerRenderingTransaction"),l=a("./ReactUpdates"),m=a("fbjs/lib/emptyObject"),n=a("./instantiateReactComponent"),o=a("fbjs/lib/invariant");b.exports={renderToString:d,renderToStaticMarkup:e}}).call(this,a("_process"))},{"./ReactDefaultBatchingStrategy":279,"./ReactElement":283,"./ReactInstanceHandles":292,"./ReactMarkupChecksum":295,"./ReactServerBatchingStrategy":310,"./ReactServerRenderingTransaction":312,"./ReactUpdates":314,"./instantiateReactComponent":349,_process:111,"fbjs/lib/emptyObject":368,"fbjs/lib/invariant":375}],312:[function(a,b,c){"use strict";function d(a){this.reinitializeTransaction(),this.renderToStaticMarkup=a,this.reactMountReady=f.getPooled(null),this.useCreateElement=!1}var e=a("./PooledClass"),f=a("./CallbackQueue"),g=a("./Transaction"),h=a("./Object.assign"),i=a("fbjs/lib/emptyFunction"),j={initialize:function(){this.reactMountReady.reset()},close:i},k=[j],l={getTransactionWrappers:function(){return k},getReactMountReady:function(){return this.reactMountReady},destructor:function(){f.release(this.reactMountReady),this.reactMountReady=null}};h(d.prototype,g.Mixin,l),e.addPoolingTo(d),b.exports=d},{"./CallbackQueue":236,"./Object.assign":253,"./PooledClass":254,"./Transaction":331,"fbjs/lib/emptyFunction":367}],313:[function(a,b,c){(function(c){"use strict";function d(a){i.enqueueUpdate(a)}function e(a,b){var d=h.get(a);return d?("production"!==c.env.NODE_ENV&&("production"!==c.env.NODE_ENV?l(null==f.current,"%s(...): Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state.",b):void 0),d):("production"!==c.env.NODE_ENV&&("production"!==c.env.NODE_ENV?l(!b,"%s(...): Can only update a mounted or mounting component. This usually means you called %s() on an unmounted component. This is a no-op. Please check the code for the %s component.",b,b,a.constructor.displayName):void 0),null)}var f=a("./ReactCurrentOwner"),g=a("./ReactElement"),h=a("./ReactInstanceMap"),i=a("./ReactUpdates"),j=a("./Object.assign"),k=a("fbjs/lib/invariant"),l=a("fbjs/lib/warning"),m={isMounted:function(a){if("production"!==c.env.NODE_ENV){var b=f.current;null!==b&&("production"!==c.env.NODE_ENV?l(b._warnedAboutRefsInRender,"%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",b.getName()||"A component"):void 0,b._warnedAboutRefsInRender=!0)}var d=h.get(a);return d?!!d._renderedComponent:!1},enqueueCallback:function(a,b){"function"!=typeof b?"production"!==c.env.NODE_ENV?k(!1,"enqueueCallback(...): You called `setProps`, `replaceProps`, `setState`, `replaceState`, or `forceUpdate` with a callback that isn't callable."):k(!1):void 0;var f=e(a);return f?(f._pendingCallbacks?f._pendingCallbacks.push(b):f._pendingCallbacks=[b],void d(f)):null},enqueueCallbackInternal:function(a,b){"function"!=typeof b?"production"!==c.env.NODE_ENV?k(!1,"enqueueCallback(...): You called `setProps`, `replaceProps`, `setState`, `replaceState`, or `forceUpdate` with a callback that isn't callable."):k(!1):void 0,a._pendingCallbacks?a._pendingCallbacks.push(b):a._pendingCallbacks=[b],d(a)},enqueueForceUpdate:function(a){var b=e(a,"forceUpdate");b&&(b._pendingForceUpdate=!0,d(b))},enqueueReplaceState:function(a,b){var c=e(a,"replaceState");c&&(c._pendingStateQueue=[b],c._pendingReplaceState=!0,d(c))},enqueueSetState:function(a,b){var c=e(a,"setState");if(c){var f=c._pendingStateQueue||(c._pendingStateQueue=[]);
23
- f.push(b),d(c)}},enqueueSetProps:function(a,b){var c=e(a,"setProps");c&&m.enqueueSetPropsInternal(c,b)},enqueueSetPropsInternal:function(a,b){var e=a._topLevelWrapper;e?void 0:"production"!==c.env.NODE_ENV?k(!1,"setProps(...): You called `setProps` on a component with a parent. This is an anti-pattern since props will get reactively updated when rendered. Instead, change the owner's `render` method to pass the correct value as props to the component where it is created."):k(!1);var f=e._pendingElement||e._currentElement,h=f.props,i=j({},h.props,b);e._pendingElement=g.cloneAndReplaceProps(f,g.cloneAndReplaceProps(h,i)),d(e)},enqueueReplaceProps:function(a,b){var c=e(a,"replaceProps");c&&m.enqueueReplacePropsInternal(c,b)},enqueueReplacePropsInternal:function(a,b){var e=a._topLevelWrapper;e?void 0:"production"!==c.env.NODE_ENV?k(!1,"replaceProps(...): You called `replaceProps` on a component with a parent. This is an anti-pattern since props will get reactively updated when rendered. Instead, change the owner's `render` method to pass the correct value as props to the component where it is created."):k(!1);var f=e._pendingElement||e._currentElement,h=f.props;e._pendingElement=g.cloneAndReplaceProps(f,g.cloneAndReplaceProps(h,b)),d(e)},enqueueElementInternal:function(a,b){a._pendingElement=b,d(a)}};b.exports=m}).call(this,a("_process"))},{"./Object.assign":253,"./ReactCurrentOwner":265,"./ReactElement":283,"./ReactInstanceMap":293,"./ReactUpdates":314,_process:111,"fbjs/lib/invariant":375,"fbjs/lib/warning":386}],314:[function(a,b,c){(function(c){"use strict";function d(){A.ReactReconcileTransaction&&u?void 0:"production"!==c.env.NODE_ENV?q(!1,"ReactUpdates: must inject a reconcile transaction class and batching strategy"):q(!1)}function e(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=k.getPooled(),this.reconcileTransaction=A.ReactReconcileTransaction.getPooled(!1)}function f(a,b,c,e,f,g){d(),u.batchedUpdates(a,b,c,e,f,g)}function g(a,b){return a._mountOrder-b._mountOrder}function h(a){var b=a.dirtyComponentsLength;b!==r.length?"production"!==c.env.NODE_ENV?q(!1,"Expected flush transaction's stored dirty-components length (%s) to match dirty-components array length (%s).",b,r.length):q(!1):void 0,r.sort(g);for(var d=0;b>d;d++){var e=r[d],f=e._pendingCallbacks;if(e._pendingCallbacks=null,n.performUpdateIfNecessary(e,a.reconcileTransaction),f)for(var h=0;h<f.length;h++)a.callbackQueue.enqueue(f[h],e.getPublicInstance())}}function i(a){return d(),u.isBatchingUpdates?void r.push(a):void u.batchedUpdates(i,a)}function j(a,b){u.isBatchingUpdates?void 0:"production"!==c.env.NODE_ENV?q(!1,"ReactUpdates.asap: Can't enqueue an asap callback in a context whereupdates are not being batched."):q(!1),s.enqueue(a,b),t=!0}var k=a("./CallbackQueue"),l=a("./PooledClass"),m=a("./ReactPerf"),n=a("./ReactReconciler"),o=a("./Transaction"),p=a("./Object.assign"),q=a("fbjs/lib/invariant"),r=[],s=k.getPooled(),t=!1,u=null,v={initialize:function(){this.dirtyComponentsLength=r.length},close:function(){this.dirtyComponentsLength!==r.length?(r.splice(0,this.dirtyComponentsLength),y()):r.length=0}},w={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},x=[v,w];p(e.prototype,o.Mixin,{getTransactionWrappers:function(){return x},destructor:function(){this.dirtyComponentsLength=null,k.release(this.callbackQueue),this.callbackQueue=null,A.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(a,b,c){return o.Mixin.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,a,b,c)}}),l.addPoolingTo(e);var y=function(){for(;r.length||t;){if(r.length){var a=e.getPooled();a.perform(h,null,a),e.release(a)}if(t){t=!1;var b=s;s=k.getPooled(),b.notifyAll(),k.release(b)}}};y=m.measure("ReactUpdates","flushBatchedUpdates",y);var z={injectReconcileTransaction:function(a){a?void 0:"production"!==c.env.NODE_ENV?q(!1,"ReactUpdates: must provide a reconcile transaction class"):q(!1),A.ReactReconcileTransaction=a},injectBatchingStrategy:function(a){a?void 0:"production"!==c.env.NODE_ENV?q(!1,"ReactUpdates: must provide a batching strategy"):q(!1),"function"!=typeof a.batchedUpdates?"production"!==c.env.NODE_ENV?q(!1,"ReactUpdates: must provide a batchedUpdates() function"):q(!1):void 0,"boolean"!=typeof a.isBatchingUpdates?"production"!==c.env.NODE_ENV?q(!1,"ReactUpdates: must provide an isBatchingUpdates boolean attribute"):q(!1):void 0,u=a}},A={ReactReconcileTransaction:null,batchedUpdates:f,enqueueUpdate:i,flushBatchedUpdates:y,injection:z,asap:j};b.exports=A}).call(this,a("_process"))},{"./CallbackQueue":236,"./Object.assign":253,"./PooledClass":254,"./ReactPerf":302,"./ReactReconciler":307,"./Transaction":331,_process:111,"fbjs/lib/invariant":375}],315:[function(a,b,c){"use strict";b.exports="0.14.7"},{}],316:[function(a,b,c){"use strict";var d=a("./DOMProperty"),e=d.injection.MUST_USE_ATTRIBUTE,f={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},g={Properties:{clipPath:e,cx:e,cy:e,d:e,dx:e,dy:e,fill:e,fillOpacity:e,fontFamily:e,fontSize:e,fx:e,fy:e,gradientTransform:e,gradientUnits:e,markerEnd:e,markerMid:e,markerStart:e,offset:e,opacity:e,patternContentUnits:e,patternUnits:e,points:e,preserveAspectRatio:e,r:e,rx:e,ry:e,spreadMethod:e,stopColor:e,stopOpacity:e,stroke:e,strokeDasharray:e,strokeLinecap:e,strokeOpacity:e,strokeWidth:e,textAnchor:e,transform:e,version:e,viewBox:e,x1:e,x2:e,x:e,xlinkActuate:e,xlinkArcrole:e,xlinkHref:e,xlinkRole:e,xlinkShow:e,xlinkTitle:e,xlinkType:e,xmlBase:e,xmlLang:e,xmlSpace:e,y1:e,y2:e,y:e},DOMAttributeNamespaces:{xlinkActuate:f.xlink,xlinkArcrole:f.xlink,xlinkHref:f.xlink,xlinkRole:f.xlink,xlinkShow:f.xlink,xlinkTitle:f.xlink,xlinkType:f.xlink,xmlBase:f.xml,xmlLang:f.xml,xmlSpace:f.xml},DOMAttributeNames:{clipPath:"clip-path",fillOpacity:"fill-opacity",fontFamily:"font-family",fontSize:"font-size",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",patternContentUnits:"patternContentUnits",patternUnits:"patternUnits",preserveAspectRatio:"preserveAspectRatio",spreadMethod:"spreadMethod",stopColor:"stop-color",stopOpacity:"stop-opacity",strokeDasharray:"stroke-dasharray",strokeLinecap:"stroke-linecap",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",viewBox:"viewBox",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlLang:"xml:lang",xmlSpace:"xml:space"}};b.exports=g},{"./DOMProperty":240}],317:[function(a,b,c){"use strict";function d(a){if("selectionStart"in a&&i.hasSelectionCapabilities(a))return{start:a.selectionStart,end:a.selectionEnd};if(window.getSelection){var b=window.getSelection();return{anchorNode:b.anchorNode,anchorOffset:b.anchorOffset,focusNode:b.focusNode,focusOffset:b.focusOffset}}if(document.selection){var c=document.selection.createRange();return{parentElement:c.parentElement(),text:c.text,top:c.boundingTop,left:c.boundingLeft}}}function e(a,b){if(u||null==r||r!==k())return null;var c=d(r);if(!t||!n(t,c)){t=c;var e=j.getPooled(q.select,s,a,b);return e.type="select",e.target=r,g.accumulateTwoPhaseDispatches(e),e}return null}var f=a("./EventConstants"),g=a("./EventPropagators"),h=a("fbjs/lib/ExecutionEnvironment"),i=a("./ReactInputSelection"),j=a("./SyntheticEvent"),k=a("fbjs/lib/getActiveElement"),l=a("./isTextInputElement"),m=a("fbjs/lib/keyOf"),n=a("fbjs/lib/shallowEqual"),o=f.topLevelTypes,p=h.canUseDOM&&"documentMode"in document&&document.documentMode<=11,q={select:{phasedRegistrationNames:{bubbled:m({onSelect:null}),captured:m({onSelectCapture:null})},dependencies:[o.topBlur,o.topContextMenu,o.topFocus,o.topKeyDown,o.topMouseDown,o.topMouseUp,o.topSelectionChange]}},r=null,s=null,t=null,u=!1,v=!1,w=m({onSelect:null}),x={eventTypes:q,extractEvents:function(a,b,c,d,f){if(!v)return null;switch(a){case o.topFocus:(l(b)||"true"===b.contentEditable)&&(r=b,s=c,t=null);break;case o.topBlur:r=null,s=null,t=null;break;case o.topMouseDown:u=!0;break;case o.topContextMenu:case o.topMouseUp:return u=!1,e(d,f);case o.topSelectionChange:if(p)break;case o.topKeyDown:case o.topKeyUp:return e(d,f)}return null},didPutListener:function(a,b,c){b===w&&(v=!0)}};b.exports=x},{"./EventConstants":245,"./EventPropagators":249,"./ReactInputSelection":291,"./SyntheticEvent":323,"./isTextInputElement":351,"fbjs/lib/ExecutionEnvironment":361,"fbjs/lib/getActiveElement":370,"fbjs/lib/keyOf":379,"fbjs/lib/shallowEqual":384}],318:[function(a,b,c){"use strict";var d=Math.pow(2,53),e={createReactRootIndex:function(){return Math.ceil(Math.random()*d)}};b.exports=e},{}],319:[function(a,b,c){(function(c){"use strict";var d=a("./EventConstants"),e=a("fbjs/lib/EventListener"),f=a("./EventPropagators"),g=a("./ReactMount"),h=a("./SyntheticClipboardEvent"),i=a("./SyntheticEvent"),j=a("./SyntheticFocusEvent"),k=a("./SyntheticKeyboardEvent"),l=a("./SyntheticMouseEvent"),m=a("./SyntheticDragEvent"),n=a("./SyntheticTouchEvent"),o=a("./SyntheticUIEvent"),p=a("./SyntheticWheelEvent"),q=a("fbjs/lib/emptyFunction"),r=a("./getEventCharCode"),s=a("fbjs/lib/invariant"),t=a("fbjs/lib/keyOf"),u=d.topLevelTypes,v={abort:{phasedRegistrationNames:{bubbled:t({onAbort:!0}),captured:t({onAbortCapture:!0})}},blur:{phasedRegistrationNames:{bubbled:t({onBlur:!0}),captured:t({onBlurCapture:!0})}},canPlay:{phasedRegistrationNames:{bubbled:t({onCanPlay:!0}),captured:t({onCanPlayCapture:!0})}},canPlayThrough:{phasedRegistrationNames:{bubbled:t({onCanPlayThrough:!0}),captured:t({onCanPlayThroughCapture:!0})}},click:{phasedRegistrationNames:{bubbled:t({onClick:!0}),captured:t({onClickCapture:!0})}},contextMenu:{phasedRegistrationNames:{bubbled:t({onContextMenu:!0}),captured:t({onContextMenuCapture:!0})}},copy:{phasedRegistrationNames:{bubbled:t({onCopy:!0}),captured:t({onCopyCapture:!0})}},cut:{phasedRegistrationNames:{bubbled:t({onCut:!0}),captured:t({onCutCapture:!0})}},doubleClick:{phasedRegistrationNames:{bubbled:t({onDoubleClick:!0}),captured:t({onDoubleClickCapture:!0})}},drag:{phasedRegistrationNames:{bubbled:t({onDrag:!0}),captured:t({onDragCapture:!0})}},dragEnd:{phasedRegistrationNames:{bubbled:t({onDragEnd:!0}),captured:t({onDragEndCapture:!0})}},dragEnter:{phasedRegistrationNames:{bubbled:t({onDragEnter:!0}),captured:t({onDragEnterCapture:!0})}},dragExit:{phasedRegistrationNames:{bubbled:t({onDragExit:!0}),captured:t({onDragExitCapture:!0})}},dragLeave:{phasedRegistrationNames:{bubbled:t({onDragLeave:!0}),captured:t({onDragLeaveCapture:!0})}},dragOver:{phasedRegistrationNames:{bubbled:t({onDragOver:!0}),captured:t({onDragOverCapture:!0})}},dragStart:{phasedRegistrationNames:{bubbled:t({onDragStart:!0}),captured:t({onDragStartCapture:!0})}},drop:{phasedRegistrationNames:{bubbled:t({onDrop:!0}),captured:t({onDropCapture:!0})}},durationChange:{phasedRegistrationNames:{bubbled:t({onDurationChange:!0}),captured:t({onDurationChangeCapture:!0})}},emptied:{phasedRegistrationNames:{bubbled:t({onEmptied:!0}),captured:t({onEmptiedCapture:!0})}},encrypted:{phasedRegistrationNames:{bubbled:t({onEncrypted:!0}),captured:t({onEncryptedCapture:!0})}},ended:{phasedRegistrationNames:{bubbled:t({onEnded:!0}),captured:t({onEndedCapture:!0})}},error:{phasedRegistrationNames:{bubbled:t({onError:!0}),captured:t({onErrorCapture:!0})}},focus:{phasedRegistrationNames:{bubbled:t({onFocus:!0}),captured:t({onFocusCapture:!0})}},input:{phasedRegistrationNames:{bubbled:t({onInput:!0}),captured:t({onInputCapture:!0})}},keyDown:{phasedRegistrationNames:{bubbled:t({onKeyDown:!0}),captured:t({onKeyDownCapture:!0})}},keyPress:{phasedRegistrationNames:{bubbled:t({onKeyPress:!0}),captured:t({onKeyPressCapture:!0})}},keyUp:{phasedRegistrationNames:{bubbled:t({onKeyUp:!0}),captured:t({onKeyUpCapture:!0})}},load:{phasedRegistrationNames:{bubbled:t({onLoad:!0}),captured:t({onLoadCapture:!0})}},loadedData:{phasedRegistrationNames:{bubbled:t({onLoadedData:!0}),captured:t({onLoadedDataCapture:!0})}},loadedMetadata:{phasedRegistrationNames:{bubbled:t({onLoadedMetadata:!0}),captured:t({onLoadedMetadataCapture:!0})}},loadStart:{phasedRegistrationNames:{bubbled:t({onLoadStart:!0}),captured:t({onLoadStartCapture:!0})}},mouseDown:{phasedRegistrationNames:{bubbled:t({onMouseDown:!0}),captured:t({onMouseDownCapture:!0})}},mouseMove:{phasedRegistrationNames:{bubbled:t({onMouseMove:!0}),captured:t({onMouseMoveCapture:!0})}},mouseOut:{phasedRegistrationNames:{bubbled:t({onMouseOut:!0}),captured:t({onMouseOutCapture:!0})}},mouseOver:{phasedRegistrationNames:{bubbled:t({onMouseOver:!0}),captured:t({onMouseOverCapture:!0})}},mouseUp:{phasedRegistrationNames:{bubbled:t({onMouseUp:!0}),captured:t({onMouseUpCapture:!0})}},paste:{phasedRegistrationNames:{bubbled:t({onPaste:!0}),captured:t({onPasteCapture:!0})}},pause:{phasedRegistrationNames:{bubbled:t({onPause:!0}),captured:t({onPauseCapture:!0})}},play:{phasedRegistrationNames:{bubbled:t({onPlay:!0}),captured:t({onPlayCapture:!0})}},playing:{phasedRegistrationNames:{bubbled:t({onPlaying:!0}),captured:t({onPlayingCapture:!0})}},progress:{phasedRegistrationNames:{bubbled:t({onProgress:!0}),captured:t({onProgressCapture:!0})}},rateChange:{phasedRegistrationNames:{bubbled:t({onRateChange:!0}),captured:t({onRateChangeCapture:!0})}},reset:{phasedRegistrationNames:{bubbled:t({onReset:!0}),captured:t({onResetCapture:!0})}},scroll:{phasedRegistrationNames:{bubbled:t({onScroll:!0}),captured:t({onScrollCapture:!0})}},seeked:{phasedRegistrationNames:{bubbled:t({onSeeked:!0}),captured:t({onSeekedCapture:!0})}},seeking:{phasedRegistrationNames:{bubbled:t({onSeeking:!0}),captured:t({onSeekingCapture:!0})}},stalled:{phasedRegistrationNames:{bubbled:t({onStalled:!0}),captured:t({onStalledCapture:!0})}},submit:{phasedRegistrationNames:{bubbled:t({onSubmit:!0}),captured:t({onSubmitCapture:!0})}},suspend:{phasedRegistrationNames:{bubbled:t({onSuspend:!0}),captured:t({onSuspendCapture:!0})}},timeUpdate:{phasedRegistrationNames:{bubbled:t({onTimeUpdate:!0}),captured:t({onTimeUpdateCapture:!0})}},touchCancel:{phasedRegistrationNames:{bubbled:t({onTouchCancel:!0}),captured:t({onTouchCancelCapture:!0})}},touchEnd:{phasedRegistrationNames:{bubbled:t({onTouchEnd:!0}),captured:t({onTouchEndCapture:!0})}},touchMove:{phasedRegistrationNames:{bubbled:t({onTouchMove:!0}),captured:t({onTouchMoveCapture:!0})}},touchStart:{phasedRegistrationNames:{bubbled:t({onTouchStart:!0}),captured:t({onTouchStartCapture:!0})}},volumeChange:{phasedRegistrationNames:{bubbled:t({onVolumeChange:!0}),captured:t({onVolumeChangeCapture:!0})}},waiting:{phasedRegistrationNames:{bubbled:t({onWaiting:!0}),captured:t({onWaitingCapture:!0})}},wheel:{phasedRegistrationNames:{bubbled:t({onWheel:!0}),captured:t({onWheelCapture:!0})}}},w={topAbort:v.abort,topBlur:v.blur,topCanPlay:v.canPlay,topCanPlayThrough:v.canPlayThrough,topClick:v.click,topContextMenu:v.contextMenu,topCopy:v.copy,topCut:v.cut,topDoubleClick:v.doubleClick,topDrag:v.drag,topDragEnd:v.dragEnd,topDragEnter:v.dragEnter,topDragExit:v.dragExit,topDragLeave:v.dragLeave,topDragOver:v.dragOver,topDragStart:v.dragStart,topDrop:v.drop,topDurationChange:v.durationChange,topEmptied:v.emptied,topEncrypted:v.encrypted,topEnded:v.ended,topError:v.error,topFocus:v.focus,topInput:v.input,topKeyDown:v.keyDown,topKeyPress:v.keyPress,topKeyUp:v.keyUp,topLoad:v.load,topLoadedData:v.loadedData,topLoadedMetadata:v.loadedMetadata,topLoadStart:v.loadStart,topMouseDown:v.mouseDown,topMouseMove:v.mouseMove,topMouseOut:v.mouseOut,topMouseOver:v.mouseOver,topMouseUp:v.mouseUp,topPaste:v.paste,topPause:v.pause,topPlay:v.play,topPlaying:v.playing,topProgress:v.progress,topRateChange:v.rateChange,topReset:v.reset,topScroll:v.scroll,topSeeked:v.seeked,topSeeking:v.seeking,topStalled:v.stalled,topSubmit:v.submit,topSuspend:v.suspend,topTimeUpdate:v.timeUpdate,topTouchCancel:v.touchCancel,topTouchEnd:v.touchEnd,topTouchMove:v.touchMove,topTouchStart:v.touchStart,topVolumeChange:v.volumeChange,topWaiting:v.waiting,topWheel:v.wheel};for(var x in w)w[x].dependencies=[x];var y=t({onClick:null}),z={},A={eventTypes:v,extractEvents:function(a,b,d,e,g){var q=w[a];if(!q)return null;var t;switch(a){case u.topAbort:case u.topCanPlay:case u.topCanPlayThrough:case u.topDurationChange:case u.topEmptied:case u.topEncrypted:case u.topEnded:case u.topError:case u.topInput:case u.topLoad:case u.topLoadedData:case u.topLoadedMetadata:case u.topLoadStart:case u.topPause:case u.topPlay:case u.topPlaying:case u.topProgress:case u.topRateChange:case u.topReset:case u.topSeeked:case u.topSeeking:case u.topStalled:case u.topSubmit:case u.topSuspend:case u.topTimeUpdate:case u.topVolumeChange:case u.topWaiting:t=i;break;case u.topKeyPress:if(0===r(e))return null;case u.topKeyDown:case u.topKeyUp:t=k;break;case u.topBlur:case u.topFocus:t=j;break;case u.topClick:if(2===e.button)return null;case u.topContextMenu:case u.topDoubleClick:case u.topMouseDown:case u.topMouseMove:case u.topMouseOut:case u.topMouseOver:case u.topMouseUp:t=l;break;case u.topDrag:case u.topDragEnd:case u.topDragEnter:case u.topDragExit:case u.topDragLeave:case u.topDragOver:case u.topDragStart:case u.topDrop:t=m;break;case u.topTouchCancel:case u.topTouchEnd:case u.topTouchMove:case u.topTouchStart:t=n;break;case u.topScroll:t=o;break;case u.topWheel:t=p;break;case u.topCopy:case u.topCut:case u.topPaste:t=h}t?void 0:"production"!==c.env.NODE_ENV?s(!1,"SimpleEventPlugin: Unhandled event type, `%s`.",a):s(!1);var v=t.getPooled(q,d,e,g);return f.accumulateTwoPhaseDispatches(v),v},didPutListener:function(a,b,c){if(b===y){var d=g.getNode(a);z[a]||(z[a]=e.listen(d,"click",q))}},willDeleteListener:function(a,b){b===y&&(z[a].remove(),delete z[a])}};b.exports=A}).call(this,a("_process"))},{"./EventConstants":245,"./EventPropagators":249,"./ReactMount":296,"./SyntheticClipboardEvent":320,"./SyntheticDragEvent":322,"./SyntheticEvent":323,"./SyntheticFocusEvent":324,"./SyntheticKeyboardEvent":326,"./SyntheticMouseEvent":327,"./SyntheticTouchEvent":328,"./SyntheticUIEvent":329,"./SyntheticWheelEvent":330,"./getEventCharCode":342,_process:111,"fbjs/lib/EventListener":360,"fbjs/lib/emptyFunction":367,"fbjs/lib/invariant":375,"fbjs/lib/keyOf":379}],320:[function(a,b,c){"use strict";function d(a,b,c,d){e.call(this,a,b,c,d)}var e=a("./SyntheticEvent"),f={clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}};e.augmentClass(d,f),b.exports=d},{"./SyntheticEvent":323}],321:[function(a,b,c){"use strict";function d(a,b,c,d){e.call(this,a,b,c,d)}var e=a("./SyntheticEvent"),f={data:null};e.augmentClass(d,f),b.exports=d},{"./SyntheticEvent":323}],322:[function(a,b,c){"use strict";function d(a,b,c,d){e.call(this,a,b,c,d)}var e=a("./SyntheticMouseEvent"),f={dataTransfer:null};e.augmentClass(d,f),b.exports=d},{"./SyntheticMouseEvent":327}],323:[function(a,b,c){(function(c){"use strict";function d(a,b,c,d){this.dispatchConfig=a,this.dispatchMarker=b,this.nativeEvent=c;var e=this.constructor.Interface;for(var f in e)if(e.hasOwnProperty(f)){var h=e[f];h?this[f]=h(c):"target"===f?this.target=d:this[f]=c[f]}var i=null!=c.defaultPrevented?c.defaultPrevented:c.returnValue===!1;i?this.isDefaultPrevented=g.thatReturnsTrue:this.isDefaultPrevented=g.thatReturnsFalse,this.isPropagationStopped=g.thatReturnsFalse}var e=a("./PooledClass"),f=a("./Object.assign"),g=a("fbjs/lib/emptyFunction"),h=a("fbjs/lib/warning"),i={type:null,target:null,currentTarget:g.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};f(d.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;"production"!==c.env.NODE_ENV&&("production"!==c.env.NODE_ENV?h(a,"This synthetic event is reused for performance reasons. If you're seeing this, you're calling `preventDefault` on a released/nullified synthetic event. This is a no-op. See https://fb.me/react-event-pooling for more information."):void 0),a&&(a.preventDefault?a.preventDefault():a.returnValue=!1,this.isDefaultPrevented=g.thatReturnsTrue)},stopPropagation:function(){var a=this.nativeEvent;"production"!==c.env.NODE_ENV&&("production"!==c.env.NODE_ENV?h(a,"This synthetic event is reused for performance reasons. If you're seeing this, you're calling `stopPropagation` on a released/nullified synthetic event. This is a no-op. See https://fb.me/react-event-pooling for more information."):void 0),a&&(a.stopPropagation?a.stopPropagation():a.cancelBubble=!0,this.isPropagationStopped=g.thatReturnsTrue)},persist:function(){this.isPersistent=g.thatReturnsTrue},isPersistent:g.thatReturnsFalse,destructor:function(){var a=this.constructor.Interface;for(var b in a)this[b]=null;this.dispatchConfig=null,this.dispatchMarker=null,this.nativeEvent=null}}),d.Interface=i,d.augmentClass=function(a,b){var c=this,d=Object.create(c.prototype);f(d,a.prototype),a.prototype=d,a.prototype.constructor=a,a.Interface=f({},c.Interface,b),a.augmentClass=c.augmentClass,e.addPoolingTo(a,e.fourArgumentPooler)},e.addPoolingTo(d,e.fourArgumentPooler),b.exports=d}).call(this,a("_process"))},{"./Object.assign":253,"./PooledClass":254,_process:111,"fbjs/lib/emptyFunction":367,"fbjs/lib/warning":386}],324:[function(a,b,c){"use strict";function d(a,b,c,d){e.call(this,a,b,c,d)}var e=a("./SyntheticUIEvent"),f={relatedTarget:null};e.augmentClass(d,f),b.exports=d},{"./SyntheticUIEvent":329}],325:[function(a,b,c){"use strict";function d(a,b,c,d){e.call(this,a,b,c,d)}var e=a("./SyntheticEvent"),f={data:null};e.augmentClass(d,f),b.exports=d},{"./SyntheticEvent":323}],326:[function(a,b,c){"use strict";function d(a,b,c,d){e.call(this,a,b,c,d)}var e=a("./SyntheticUIEvent"),f=a("./getEventCharCode"),g=a("./getEventKey"),h=a("./getEventModifierState"),i={key:g,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:h,charCode:function(a){return"keypress"===a.type?f(a):0},keyCode:function(a){return"keydown"===a.type||"keyup"===a.type?a.keyCode:0},which:function(a){return"keypress"===a.type?f(a):"keydown"===a.type||"keyup"===a.type?a.keyCode:0}};e.augmentClass(d,i),b.exports=d},{"./SyntheticUIEvent":329,"./getEventCharCode":342,"./getEventKey":343,"./getEventModifierState":344}],327:[function(a,b,c){"use strict";function d(a,b,c,d){e.call(this,a,b,c,d)}var e=a("./SyntheticUIEvent"),f=a("./ViewportMetrics"),g=a("./getEventModifierState"),h={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:g,button:function(a){var b=a.button;return"which"in a?b:2===b?2:4===b?1:0},buttons:null,relatedTarget:function(a){return a.relatedTarget||(a.fromElement===a.srcElement?a.toElement:a.fromElement)},pageX:function(a){return"pageX"in a?a.pageX:a.clientX+f.currentScrollLeft},pageY:function(a){return"pageY"in a?a.pageY:a.clientY+f.currentScrollTop}};e.augmentClass(d,h),b.exports=d},{"./SyntheticUIEvent":329,"./ViewportMetrics":332,"./getEventModifierState":344}],328:[function(a,b,c){"use strict";function d(a,b,c,d){e.call(this,a,b,c,d)}var e=a("./SyntheticUIEvent"),f=a("./getEventModifierState"),g={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:f};e.augmentClass(d,g),b.exports=d},{"./SyntheticUIEvent":329,"./getEventModifierState":344}],329:[function(a,b,c){"use strict";function d(a,b,c,d){e.call(this,a,b,c,d)}var e=a("./SyntheticEvent"),f=a("./getEventTarget"),g={view:function(a){if(a.view)return a.view;var b=f(a);if(null!=b&&b.window===b)return b;var c=b.ownerDocument;return c?c.defaultView||c.parentWindow:window},detail:function(a){return a.detail||0}};e.augmentClass(d,g),b.exports=d},{"./SyntheticEvent":323,"./getEventTarget":345}],330:[function(a,b,c){"use strict";function d(a,b,c,d){e.call(this,a,b,c,d)}var e=a("./SyntheticMouseEvent"),f={deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:null,deltaMode:null};e.augmentClass(d,f),b.exports=d},{"./SyntheticMouseEvent":327}],331:[function(a,b,c){(function(c){"use strict";var d=a("fbjs/lib/invariant"),e={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(a,b,e,f,g,h,i,j){this.isInTransaction()?"production"!==c.env.NODE_ENV?d(!1,"Transaction.perform(...): Cannot initialize a transaction when there is already an outstanding transaction."):d(!1):void 0;var k,l;try{this._isInTransaction=!0,k=!0,this.initializeAll(0),l=a.call(b,e,f,g,h,i,j),k=!1}finally{try{if(k)try{this.closeAll(0)}catch(m){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return l},initializeAll:function(a){for(var b=this.transactionWrappers,c=a;c<b.length;c++){var d=b[c];try{this.wrapperInitData[c]=f.OBSERVED_ERROR,this.wrapperInitData[c]=d.initialize?d.initialize.call(this):null}finally{if(this.wrapperInitData[c]===f.OBSERVED_ERROR)try{this.initializeAll(c+1)}catch(e){}}}},closeAll:function(a){this.isInTransaction()?void 0:"production"!==c.env.NODE_ENV?d(!1,"Transaction.closeAll(): Cannot close transaction when none are open."):d(!1);for(var b=this.transactionWrappers,e=a;e<b.length;e++){var g,h=b[e],i=this.wrapperInitData[e];try{g=!0,i!==f.OBSERVED_ERROR&&h.close&&h.close.call(this,i),g=!1}finally{if(g)try{this.closeAll(e+1)}catch(j){}}}this.wrapperInitData.length=0}},f={Mixin:e,OBSERVED_ERROR:{}};b.exports=f}).call(this,a("_process"))},{_process:111,"fbjs/lib/invariant":375}],332:[function(a,b,c){"use strict";var d={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(a){d.currentScrollLeft=a.x,d.currentScrollTop=a.y}};b.exports=d},{}],333:[function(a,b,c){(function(c){"use strict";function d(a,b){if(null==b?"production"!==c.env.NODE_ENV?e(!1,"accumulateInto(...): Accumulated items must not be null or undefined."):e(!1):void 0,null==a)return b;var d=Array.isArray(a),f=Array.isArray(b);return d&&f?(a.push.apply(a,b),a):d?(a.push(b),a):f?[a].concat(b):[a,b]}var e=a("fbjs/lib/invariant");b.exports=d}).call(this,a("_process"))},{_process:111,"fbjs/lib/invariant":375}],334:[function(a,b,c){"use strict";function d(a){for(var b=1,c=0,d=0,f=a.length,g=-4&f;g>d;){for(;d<Math.min(d+4096,g);d+=4)c+=(b+=a.charCodeAt(d))+(b+=a.charCodeAt(d+1))+(b+=a.charCodeAt(d+2))+(b+=a.charCodeAt(d+3));b%=e,c%=e}for(;f>d;d++)c+=b+=a.charCodeAt(d);return b%=e,c%=e,b|c<<16}var e=65521;b.exports=d},{}],335:[function(a,b,c){(function(a){"use strict";var c=!1;if("production"!==a.env.NODE_ENV)try{Object.defineProperty({},"x",{get:function(){}}),c=!0}catch(d){}b.exports=c}).call(this,a("_process"))},{_process:111}],336:[function(a,b,c){"use strict";function d(a,b){var c=null==b||"boolean"==typeof b||""===b;if(c)return"";var d=isNaN(b);return d||0===b||f.hasOwnProperty(a)&&f[a]?""+b:("string"==typeof b&&(b=b.trim()),b+"px")}var e=a("./CSSProperty"),f=e.isUnitlessNumber;b.exports=d},{"./CSSProperty":234}],337:[function(a,b,c){(function(c){"use strict";function d(a,b,d,g,h){var i=!1;if("production"!==c.env.NODE_ENV){var j=function(){return"production"!==c.env.NODE_ENV?f(i,"React.%s is deprecated. Please use %s.%s from require('%s') instead.",a,b,a,d):void 0,i=!0,h.apply(g,arguments)};return e(j,h)}return h}var e=a("./Object.assign"),f=a("fbjs/lib/warning");b.exports=d}).call(this,a("_process"))},{"./Object.assign":253,_process:111,"fbjs/lib/warning":386}],338:[function(a,b,c){"use strict";function d(a){return f[a]}function e(a){return(""+a).replace(g,d)}var f={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},g=/[&><"']/g;b.exports=e},{}],339:[function(a,b,c){(function(c){"use strict";function d(a){if("production"!==c.env.NODE_ENV){var b=e.current;null!==b&&("production"!==c.env.NODE_ENV?i(b._warnedAboutRefsInRender,"%s is accessing getDOMNode or findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",b.getName()||"A component"):void 0,b._warnedAboutRefsInRender=!0)}return null==a?null:1===a.nodeType?a:f.has(a)?g.getNodeFromInstance(a):(null!=a.render&&"function"==typeof a.render?"production"!==c.env.NODE_ENV?h(!1,"findDOMNode was called on an unmounted component."):h(!1):void 0,void("production"!==c.env.NODE_ENV?h(!1,"Element appears to be neither ReactComponent nor DOMNode (keys: %s)",Object.keys(a)):h(!1)))}var e=a("./ReactCurrentOwner"),f=a("./ReactInstanceMap"),g=a("./ReactMount"),h=a("fbjs/lib/invariant"),i=a("fbjs/lib/warning");b.exports=d}).call(this,a("_process"))},{"./ReactCurrentOwner":265,"./ReactInstanceMap":293,"./ReactMount":296,_process:111,"fbjs/lib/invariant":375,"fbjs/lib/warning":386}],340:[function(a,b,c){(function(c){"use strict";function d(a,b,d){var e=a,f=void 0===e[d];"production"!==c.env.NODE_ENV&&("production"!==c.env.NODE_ENV?g(f,"flattenChildren(...): Encountered two children with the same key, `%s`. Child keys must be unique; when two children share a key, only the first child will be used.",d):void 0),f&&null!=b&&(e[d]=b)}function e(a){if(null==a)return a;var b={};return f(a,d,b),b}var f=a("./traverseAllChildren"),g=a("fbjs/lib/warning");b.exports=e}).call(this,a("_process"))},{"./traverseAllChildren":358,_process:111,"fbjs/lib/warning":386}],341:[function(a,b,c){"use strict";var d=function(a,b,c){Array.isArray(a)?a.forEach(b,c):a&&b.call(c,a)};b.exports=d},{}],342:[function(a,b,c){"use strict";function d(a){var b,c=a.keyCode;return"charCode"in a?(b=a.charCode,0===b&&13===c&&(b=13)):b=c,b>=32||13===b?b:0}b.exports=d},{}],343:[function(a,b,c){"use strict";function d(a){if(a.key){var b=f[a.key]||a.key;if("Unidentified"!==b)return b}if("keypress"===a.type){var c=e(a);return 13===c?"Enter":String.fromCharCode(c)}return"keydown"===a.type||"keyup"===a.type?g[a.keyCode]||"Unidentified":""}var e=a("./getEventCharCode"),f={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},g={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"};b.exports=d},{"./getEventCharCode":342}],344:[function(a,b,c){"use strict";function d(a){var b=this,c=b.nativeEvent;if(c.getModifierState)return c.getModifierState(a);var d=f[a];return d?!!c[d]:!1}function e(a){return d}var f={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};b.exports=e},{}],345:[function(a,b,c){"use strict";function d(a){var b=a.target||a.srcElement||window;return 3===b.nodeType?b.parentNode:b}b.exports=d},{}],346:[function(a,b,c){"use strict";function d(a){var b=a&&(e&&a[e]||a[f]);return"function"==typeof b?b:void 0}var e="function"==typeof Symbol&&Symbol.iterator,f="@@iterator";b.exports=d},{}],347:[function(a,b,c){"use strict";function d(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function e(a){for(;a;){if(a.nextSibling)return a.nextSibling;a=a.parentNode}}function f(a,b){for(var c=d(a),f=0,g=0;c;){if(3===c.nodeType){if(g=f+c.textContent.length,b>=f&&g>=b)return{node:c,offset:b-f};f=g}c=d(e(c))}}b.exports=f},{}],348:[function(a,b,c){
24
- "use strict";function d(){return!f&&e.canUseDOM&&(f="textContent"in document.documentElement?"textContent":"innerText"),f}var e=a("fbjs/lib/ExecutionEnvironment"),f=null;b.exports=d},{"fbjs/lib/ExecutionEnvironment":361}],349:[function(a,b,c){(function(c){"use strict";function d(a){if(a){var b=a.getName();if(b)return" Check the render method of `"+b+"`."}return""}function e(a){return"function"==typeof a&&"undefined"!=typeof a.prototype&&"function"==typeof a.prototype.mountComponent&&"function"==typeof a.prototype.receiveComponent}function f(a){var b;if(null===a||a===!1)b=new h(f);else if("object"==typeof a){var g=a;!g||"function"!=typeof g.type&&"string"!=typeof g.type?"production"!==c.env.NODE_ENV?k(!1,"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",null==g.type?g.type:typeof g.type,d(g._owner)):k(!1):void 0,b="string"==typeof g.type?i.createInternalComponent(g):e(g.type)?new g.type(g):new m}else"string"==typeof a||"number"==typeof a?b=i.createInstanceForText(a):"production"!==c.env.NODE_ENV?k(!1,"Encountered invalid React node of type %s",typeof a):k(!1);return"production"!==c.env.NODE_ENV&&("production"!==c.env.NODE_ENV?l("function"==typeof b.construct&&"function"==typeof b.mountComponent&&"function"==typeof b.receiveComponent&&"function"==typeof b.unmountComponent,"Only React Components can be mounted."):void 0),b.construct(a),b._mountIndex=0,b._mountImage=null,"production"!==c.env.NODE_ENV&&(b._isOwnerNecessary=!1,b._warnedAboutRefsInRender=!1),"production"!==c.env.NODE_ENV&&Object.preventExtensions&&Object.preventExtensions(b),b}var g=a("./ReactCompositeComponent"),h=a("./ReactEmptyComponent"),i=a("./ReactNativeComponent"),j=a("./Object.assign"),k=a("fbjs/lib/invariant"),l=a("fbjs/lib/warning"),m=function(){};j(m.prototype,g.Mixin,{_instantiateReactComponent:f}),b.exports=f}).call(this,a("_process"))},{"./Object.assign":253,"./ReactCompositeComponent":264,"./ReactEmptyComponent":285,"./ReactNativeComponent":299,_process:111,"fbjs/lib/invariant":375,"fbjs/lib/warning":386}],350:[function(a,b,c){"use strict";function d(a,b){if(!f.canUseDOM||b&&!("addEventListener"in document))return!1;var c="on"+a,d=c in document;if(!d){var g=document.createElement("div");g.setAttribute(c,"return;"),d="function"==typeof g[c]}return!d&&e&&"wheel"===a&&(d=document.implementation.hasFeature("Events.wheel","3.0")),d}var e,f=a("fbjs/lib/ExecutionEnvironment");f.canUseDOM&&(e=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),b.exports=d},{"fbjs/lib/ExecutionEnvironment":361}],351:[function(a,b,c){"use strict";function d(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&("input"===b&&e[a.type]||"textarea"===b)}var e={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};b.exports=d},{}],352:[function(a,b,c){(function(c){"use strict";function d(a){return e.isValidElement(a)?void 0:"production"!==c.env.NODE_ENV?f(!1,"onlyChild must be passed a children with exactly one child."):f(!1),a}var e=a("./ReactElement"),f=a("fbjs/lib/invariant");b.exports=d}).call(this,a("_process"))},{"./ReactElement":283,_process:111,"fbjs/lib/invariant":375}],353:[function(a,b,c){"use strict";function d(a){return'"'+e(a)+'"'}var e=a("./escapeTextContentForBrowser");b.exports=d},{"./escapeTextContentForBrowser":338}],354:[function(a,b,c){"use strict";var d=a("./ReactMount");b.exports=d.renderSubtreeIntoContainer},{"./ReactMount":296}],355:[function(a,b,c){"use strict";var d=a("fbjs/lib/ExecutionEnvironment"),e=/^[ \r\n\t\f]/,f=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,g=function(a,b){a.innerHTML=b};if("undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(g=function(a,b){MSApp.execUnsafeLocalFunction(function(){a.innerHTML=b})}),d.canUseDOM){var h=document.createElement("div");h.innerHTML=" ",""===h.innerHTML&&(g=function(a,b){if(a.parentNode&&a.parentNode.replaceChild(a,a),e.test(b)||"<"===b[0]&&f.test(b)){a.innerHTML=String.fromCharCode(65279)+b;var c=a.firstChild;1===c.data.length?a.removeChild(c):c.deleteData(0,1)}else a.innerHTML=b})}b.exports=g},{"fbjs/lib/ExecutionEnvironment":361}],356:[function(a,b,c){"use strict";var d=a("fbjs/lib/ExecutionEnvironment"),e=a("./escapeTextContentForBrowser"),f=a("./setInnerHTML"),g=function(a,b){a.textContent=b};d.canUseDOM&&("textContent"in document.documentElement||(g=function(a,b){f(a,e(b))})),b.exports=g},{"./escapeTextContentForBrowser":338,"./setInnerHTML":355,"fbjs/lib/ExecutionEnvironment":361}],357:[function(a,b,c){"use strict";function d(a,b){var c=null===a||a===!1,d=null===b||b===!1;if(c||d)return c===d;var e=typeof a,f=typeof b;return"string"===e||"number"===e?"string"===f||"number"===f:"object"===f&&a.type===b.type&&a.key===b.key}b.exports=d},{}],358:[function(a,b,c){(function(c){"use strict";function d(a){return r[a]}function e(a,b){return a&&null!=a.key?g(a.key):b.toString(36)}function f(a){return(""+a).replace(s,d)}function g(a){return"$"+f(a)}function h(a,b,d,f){var i=typeof a;if("undefined"!==i&&"boolean"!==i||(a=null),null===a||"string"===i||"number"===i||k.isValidElement(a))return d(f,a,""===b?p+e(a,0):b),1;var l,r,s=0,u=""===b?p:b+q;if(Array.isArray(a))for(var v=0;v<a.length;v++)l=a[v],r=u+e(l,v),s+=h(l,r,d,f);else{var w=m(a);if(w){var x,y=w.call(a);if(w!==a.entries)for(var z=0;!(x=y.next()).done;)l=x.value,r=u+e(l,z++),s+=h(l,r,d,f);else for("production"!==c.env.NODE_ENV&&("production"!==c.env.NODE_ENV?o(t,"Using Maps as children is not yet fully supported. It is an experimental feature that might be removed. Convert it to a sequence / iterable of keyed ReactElements instead."):void 0,t=!0);!(x=y.next()).done;){var A=x.value;A&&(l=A[1],r=u+g(A[0])+q+e(l,0),s+=h(l,r,d,f))}}else if("object"===i){var B="";if("production"!==c.env.NODE_ENV&&(B=" If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons.",a._isReactElement&&(B=" It looks like you're using an element created by a different version of React. Make sure to use only one copy of React."),j.current)){var C=j.current.getName();C&&(B+=" Check the render method of `"+C+"`.")}var D=String(a);"production"!==c.env.NODE_ENV?n(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===D?"object with keys {"+Object.keys(a).join(", ")+"}":D,B):n(!1)}}return s}function i(a,b,c){return null==a?0:h(a,"",b,c)}var j=a("./ReactCurrentOwner"),k=a("./ReactElement"),l=a("./ReactInstanceHandles"),m=a("./getIteratorFn"),n=a("fbjs/lib/invariant"),o=a("fbjs/lib/warning"),p=l.SEPARATOR,q=":",r={"=":"=0",".":"=1",":":"=2"},s=/[=.:]/g,t=!1;b.exports=i}).call(this,a("_process"))},{"./ReactCurrentOwner":265,"./ReactElement":283,"./ReactInstanceHandles":292,"./getIteratorFn":346,_process:111,"fbjs/lib/invariant":375,"fbjs/lib/warning":386}],359:[function(a,b,c){(function(c){"use strict";var d=a("./Object.assign"),e=a("fbjs/lib/emptyFunction"),f=a("fbjs/lib/warning"),g=e;if("production"!==c.env.NODE_ENV){var h=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],i=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],j=i.concat(["button"]),k=["dd","dt","li","option","optgroup","p","rp","rt"],l={parentTag:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null},m=function(a,b,c){var e=d({},a||l),f={tag:b,instance:c};return-1!==i.indexOf(b)&&(e.aTagInScope=null,e.buttonTagInScope=null,e.nobrTagInScope=null),-1!==j.indexOf(b)&&(e.pTagInButtonScope=null),-1!==h.indexOf(b)&&"address"!==b&&"div"!==b&&"p"!==b&&(e.listItemTagAutoclosing=null,e.dlItemTagAutoclosing=null),e.parentTag=f,"form"===b&&(e.formTag=f),"a"===b&&(e.aTagInScope=f),"button"===b&&(e.buttonTagInScope=f),"nobr"===b&&(e.nobrTagInScope=f),"p"===b&&(e.pTagInButtonScope=f),"li"===b&&(e.listItemTagAutoclosing=f),"dd"!==b&&"dt"!==b||(e.dlItemTagAutoclosing=f),e},n=function(a,b){switch(b){case"select":return"option"===a||"optgroup"===a||"#text"===a;case"optgroup":return"option"===a||"#text"===a;case"option":return"#text"===a;case"tr":return"th"===a||"td"===a||"style"===a||"script"===a||"template"===a;case"tbody":case"thead":case"tfoot":return"tr"===a||"style"===a||"script"===a||"template"===a;case"colgroup":return"col"===a||"template"===a;case"table":return"caption"===a||"colgroup"===a||"tbody"===a||"tfoot"===a||"thead"===a||"style"===a||"script"===a||"template"===a;case"head":return"base"===a||"basefont"===a||"bgsound"===a||"link"===a||"meta"===a||"title"===a||"noscript"===a||"noframes"===a||"style"===a||"script"===a||"template"===a;case"html":return"head"===a||"body"===a}switch(a){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return"h1"!==b&&"h2"!==b&&"h3"!==b&&"h4"!==b&&"h5"!==b&&"h6"!==b;case"rp":case"rt":return-1===k.indexOf(b);case"caption":case"col":case"colgroup":case"frame":case"head":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return null==b}return!0},o=function(a,b){switch(a){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return b.pTagInButtonScope;case"form":return b.formTag||b.pTagInButtonScope;case"li":return b.listItemTagAutoclosing;case"dd":case"dt":return b.dlItemTagAutoclosing;case"button":return b.buttonTagInScope;case"a":return b.aTagInScope;case"nobr":return b.nobrTagInScope}return null},p=function(a){if(!a)return[];var b=[];do b.push(a);while(a=a._currentElement._owner);return b.reverse(),b},q={};g=function(a,b,d){d=d||l;var e=d.parentTag,g=e&&e.tag,h=n(a,g)?null:e,i=h?null:o(a,d),j=h||i;if(j){var k,m=j.tag,r=j.instance,s=b&&b._currentElement._owner,t=r&&r._currentElement._owner,u=p(s),v=p(t),w=Math.min(u.length,v.length),x=-1;for(k=0;w>k&&u[k]===v[k];k++)x=k;var y="(unknown)",z=u.slice(x+1).map(function(a){return a.getName()||y}),A=v.slice(x+1).map(function(a){return a.getName()||y}),B=[].concat(-1!==x?u[x].getName()||y:[],A,m,i?["..."]:[],z,a).join(" > "),C=!!h+"|"+a+"|"+m+"|"+B;if(q[C])return;if(q[C]=!0,h){var D="";"table"===m&&"tr"===a&&(D+=" Add a <tbody> to your code to match the DOM tree generated by the browser."),"production"!==c.env.NODE_ENV?f(!1,"validateDOMNesting(...): <%s> cannot appear as a child of <%s>. See %s.%s",a,m,B,D):void 0}else"production"!==c.env.NODE_ENV?f(!1,"validateDOMNesting(...): <%s> cannot appear as a descendant of <%s>. See %s.",a,m,B):void 0}},g.ancestorInfoContextKey="__validateDOMNesting_ancestorInfo$"+Math.random().toString(36).slice(2),g.updatedAncestorInfo=m,g.isTagValidInContext=function(a,b){b=b||l;var c=b.parentTag,d=c&&c.tag;return n(a,d)&&!o(a,b)}}b.exports=g}).call(this,a("_process"))},{"./Object.assign":253,_process:111,"fbjs/lib/emptyFunction":367,"fbjs/lib/warning":386}],360:[function(a,b,c){(function(c){"use strict";var d=a("./emptyFunction"),e={listen:function(a,b,c){return a.addEventListener?(a.addEventListener(b,c,!1),{remove:function(){a.removeEventListener(b,c,!1)}}):a.attachEvent?(a.attachEvent("on"+b,c),{remove:function(){a.detachEvent("on"+b,c)}}):void 0},capture:function(a,b,e){return a.addEventListener?(a.addEventListener(b,e,!0),{remove:function(){a.removeEventListener(b,e,!0)}}):("production"!==c.env.NODE_ENV&&console.error("Attempted to listen to events during the capture phase on a browser that does not support the capture phase. Your application will not receive some events."),{remove:d})},registerDefault:function(){}};b.exports=e}).call(this,a("_process"))},{"./emptyFunction":367,_process:111}],361:[function(a,b,c){"use strict";var d=!("undefined"==typeof window||!window.document||!window.document.createElement),e={canUseDOM:d,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:d&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:d&&!!window.screen,isInWorker:!d};b.exports=e},{}],362:[function(a,b,c){"use strict";function d(a){return a.replace(e,function(a,b){return b.toUpperCase()})}var e=/-(.)/g;b.exports=d},{}],363:[function(a,b,c){"use strict";function d(a){return e(a.replace(f,"ms-"))}var e=a("./camelize"),f=/^-ms-/;b.exports=d},{"./camelize":362}],364:[function(a,b,c){"use strict";function d(a,b){var c=!0;a:for(;c;){var d=a,f=b;if(c=!1,d&&f){if(d===f)return!0;if(e(d))return!1;if(e(f)){a=d,b=f.parentNode,c=!0;continue a}return d.contains?d.contains(f):d.compareDocumentPosition?!!(16&d.compareDocumentPosition(f)):!1}return!1}}var e=a("./isTextNode");b.exports=d},{"./isTextNode":377}],365:[function(a,b,c){"use strict";function d(a){return!!a&&("object"==typeof a||"function"==typeof a)&&"length"in a&&!("setInterval"in a)&&"number"!=typeof a.nodeType&&(Array.isArray(a)||"callee"in a||"item"in a)}function e(a){return d(a)?Array.isArray(a)?a.slice():f(a):[a]}var f=a("./toArray");b.exports=e},{"./toArray":385}],366:[function(a,b,c){(function(c){"use strict";function d(a){var b=a.match(k);return b&&b[1].toLowerCase()}function e(a,b){var e=j;j?void 0:"production"!==c.env.NODE_ENV?i(!1,"createNodesFromMarkup dummy not initialized"):i(!1);var f=d(a),k=f&&h(f);if(k){e.innerHTML=k[1]+a+k[2];for(var l=k[0];l--;)e=e.lastChild}else e.innerHTML=a;var m=e.getElementsByTagName("script");m.length&&(b?void 0:"production"!==c.env.NODE_ENV?i(!1,"createNodesFromMarkup(...): Unexpected <script> element rendered."):i(!1),g(m).forEach(b));for(var n=g(e.childNodes);e.lastChild;)e.removeChild(e.lastChild);return n}var f=a("./ExecutionEnvironment"),g=a("./createArrayFromMixed"),h=a("./getMarkupWrap"),i=a("./invariant"),j=f.canUseDOM?document.createElement("div"):null,k=/^\s*<(\w+)/;b.exports=e}).call(this,a("_process"))},{"./ExecutionEnvironment":361,"./createArrayFromMixed":365,"./getMarkupWrap":371,"./invariant":375,_process:111}],367:[function(a,b,c){"use strict";function d(a){return function(){return a}}function e(){}e.thatReturns=d,e.thatReturnsFalse=d(!1),e.thatReturnsTrue=d(!0),e.thatReturnsNull=d(null),e.thatReturnsThis=function(){return this},e.thatReturnsArgument=function(a){return a},b.exports=e},{}],368:[function(a,b,c){(function(a){"use strict";var c={};"production"!==a.env.NODE_ENV&&Object.freeze(c),b.exports=c}).call(this,a("_process"))},{_process:111}],369:[function(a,b,c){"use strict";function d(a){try{a.focus()}catch(b){}}b.exports=d},{}],370:[function(a,b,c){"use strict";function d(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(a){return document.body}}b.exports=d},{}],371:[function(a,b,c){(function(c){"use strict";function d(a){return g?void 0:"production"!==c.env.NODE_ENV?f(!1,"Markup wrapping node not initialized"):f(!1),m.hasOwnProperty(a)||(a="*"),h.hasOwnProperty(a)||("*"===a?g.innerHTML="<link />":g.innerHTML="<"+a+"></"+a+">",h[a]=!g.firstChild),h[a]?m[a]:null}var e=a("./ExecutionEnvironment"),f=a("./invariant"),g=e.canUseDOM?document.createElement("div"):null,h={},i=[1,'<select multiple="true">',"</select>"],j=[1,"<table>","</table>"],k=[3,"<table><tbody><tr>","</tr></tbody></table>"],l=[1,'<svg xmlns="http://www.w3.org/2000/svg">',"</svg>"],m={"*":[1,"?<div>","</div>"],area:[1,"<map>","</map>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],legend:[1,"<fieldset>","</fieldset>"],param:[1,"<object>","</object>"],tr:[2,"<table><tbody>","</tbody></table>"],optgroup:i,option:i,caption:j,colgroup:j,tbody:j,tfoot:j,thead:j,td:k,th:k},n=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];n.forEach(function(a){m[a]=l,h[a]=!0}),b.exports=d}).call(this,a("_process"))},{"./ExecutionEnvironment":361,"./invariant":375,_process:111}],372:[function(a,b,c){"use strict";function d(a){return a===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:a.scrollLeft,y:a.scrollTop}}b.exports=d},{}],373:[function(a,b,c){"use strict";function d(a){return a.replace(e,"-$1").toLowerCase()}var e=/([A-Z])/g;b.exports=d},{}],374:[function(a,b,c){"use strict";function d(a){return e(a).replace(f,"-ms-")}var e=a("./hyphenate"),f=/^ms-/;b.exports=d},{"./hyphenate":373}],375:[function(a,b,c){(function(a){"use strict";function c(b,c,d,e,f,g,h,i){if("production"!==a.env.NODE_ENV&&void 0===c)throw new Error("invariant requires an error message argument");if(!b){var j;if(void 0===c)j=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var k=[d,e,f,g,h,i],l=0;j=new Error(c.replace(/%s/g,function(){return k[l++]})),j.name="Invariant Violation"}throw j.framesToPop=1,j}}b.exports=c}).call(this,a("_process"))},{_process:111}],376:[function(a,b,c){"use strict";function d(a){return!(!a||!("function"==typeof Node?a instanceof Node:"object"==typeof a&&"number"==typeof a.nodeType&&"string"==typeof a.nodeName))}b.exports=d},{}],377:[function(a,b,c){"use strict";function d(a){return e(a)&&3==a.nodeType}var e=a("./isNode");b.exports=d},{"./isNode":376}],378:[function(a,b,c){(function(c){"use strict";var d=a("./invariant"),e=function(a){var b,e={};a instanceof Object&&!Array.isArray(a)?void 0:"production"!==c.env.NODE_ENV?d(!1,"keyMirror(...): Argument must be an object."):d(!1);for(b in a)a.hasOwnProperty(b)&&(e[b]=b);return e};b.exports=e}).call(this,a("_process"))},{"./invariant":375,_process:111}],379:[function(a,b,c){"use strict";var d=function(a){var b;for(b in a)if(a.hasOwnProperty(b))return b;return null};b.exports=d},{}],380:[function(a,b,c){"use strict";function d(a,b,c){if(!a)return null;var d={};for(var f in a)e.call(a,f)&&(d[f]=b.call(c,a[f],f,a));return d}var e=Object.prototype.hasOwnProperty;b.exports=d},{}],381:[function(a,b,c){"use strict";function d(a){var b={};return function(c){return b.hasOwnProperty(c)||(b[c]=a.call(this,c)),b[c]}}b.exports=d},{}],382:[function(a,b,c){"use strict";var d,e=a("./ExecutionEnvironment");e.canUseDOM&&(d=window.performance||window.msPerformance||window.webkitPerformance),b.exports=d||{}},{"./ExecutionEnvironment":361}],383:[function(a,b,c){"use strict";var d,e=a("./performance");d=e.now?function(){return e.now()}:function(){return Date.now()},b.exports=d},{"./performance":382}],384:[function(a,b,c){"use strict";function d(a,b){if(a===b)return!0;if("object"!=typeof a||null===a||"object"!=typeof b||null===b)return!1;var c=Object.keys(a),d=Object.keys(b);if(c.length!==d.length)return!1;for(var f=e.bind(b),g=0;g<c.length;g++)if(!f(c[g])||a[c[g]]!==b[c[g]])return!1;return!0}var e=Object.prototype.hasOwnProperty;b.exports=d},{}],385:[function(a,b,c){(function(c){"use strict";function d(a){var b=a.length;if(Array.isArray(a)||"object"!=typeof a&&"function"!=typeof a?"production"!==c.env.NODE_ENV?e(!1,"toArray: Array-like object expected"):e(!1):void 0,"number"!=typeof b?"production"!==c.env.NODE_ENV?e(!1,"toArray: Object needs a length property"):e(!1):void 0,0===b||b-1 in a?void 0:"production"!==c.env.NODE_ENV?e(!1,"toArray: Object should have keys for indices"):e(!1),a.hasOwnProperty)try{return Array.prototype.slice.call(a)}catch(d){}for(var f=Array(b),g=0;b>g;g++)f[g]=a[g];return f}var e=a("./invariant");b.exports=d}).call(this,a("_process"))},{"./invariant":375,_process:111}],386:[function(a,b,c){(function(c){"use strict";var d=a("./emptyFunction"),e=d;"production"!==c.env.NODE_ENV&&(e=function(a,b){for(var c=arguments.length,d=Array(c>2?c-2:0),e=2;c>e;e++)d[e-2]=arguments[e];if(void 0===b)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==b.indexOf("Failed Composite propType: ")&&!a){var f=0,g="Warning: "+b.replace(/%s/g,function(){return d[f++]});"undefined"!=typeof console&&console.error(g);try{throw new Error(g)}catch(h){}}}),b.exports=e}).call(this,a("_process"))},{"./emptyFunction":367,_process:111}],387:[function(a,b,c){"use strict";b.exports=a("./lib/React")},{"./lib/React":255}],388:[function(a,b,c){"use strict";var d=a("http");b.exports={get:function(a,b){var c=this.request(a,"GET",b);c.end()},request_with_body:function(a,b,c,d){var e=JSON.stringify(c),f={headers:{"Content-Type":"application/json;charset=utf-8","Content-Length":e.length}},g=this.request(a,b,d,f);g.write(e),g.end()},request:function(a,b,c,e){return"undefined"==typeof e&&(e={}),"undefined"==typeof e.headers&&(e.headers={}),"undefined"==typeof e.e_callback&&(e.e_callback=function(a){alert(a.message)}),e.path=a,e.method=b,e.headers.Accept="text/json",d.request(e,function(a){var b="";a.setEncoding("utf8"),a.on("data",function(a){b+=a}),a.on("end",function(){var d=JSON.parse(b);200==a.statusCode&&c(d)})}).on("error",e.e_callback)}}},{http:130}],389:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}var e=a("react"),f=d(e),g=a("./worker/common/workerClient"),h=d(g);a("react-router");b.exports=f["default"].createClass({displayName:"exports",mixins:[h["default"]],getInitialState:function(){return{version:"",workerClass:"",startedAt:""}},componentWillMount:function(){this.getConfig(function(a){this.setState({host:a.host,version:a.version,workerClass:a["class"],startedAt:a.started_at})}.bind(this))},render:function(){return f["default"].createElement("div",{className:"container"},f["default"].createElement("h2",null," worker @ ",this.state.host," "),f["default"].createElement("table",{className:"table table-bordered tabel-striped"},f["default"].createElement("tbody",null,f["default"].createElement("tr",null,f["default"].createElement("td",null,"VERSION :"),f["default"].createElement("td",null,this.state.version," ")),f["default"].createElement("tr",null,f["default"].createElement("td",null,"CLASS :"),f["default"].createElement("td",null," ",this.state.workerClass," ")),f["default"].createElement("tr",null,f["default"].createElement("td",null," STARTED AT :"),f["default"].createElement("td",null," ",this.state.startedAt," ")))))}})},{"./worker/common/workerClient":400,react:387,"react-router":193}],390:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}var e=a("react"),f=d(e),g=a("./jobUtil"),h=d(g),i=a("./jobClient"),j=d(i),k=a("./jobChangeConfirmModal"),l=d(k);b.exports=f["default"].createClass({displayName:"exports",mixins:[h["default"],j["default"]],contextTypes:{router:f["default"].PropTypes.object.isRequired},getInitialState:function(){return{postState:this.props.currentState,with_subsequent:!1,modalIsOpen:!1}},componentWillReceiveProps:function(a){this.setState({postState:a.currentState})},submitNewState:function(){this.updateJobState(this.props.jobId,this.state.postState,{with_subsequent:this.state.with_subsequent},function(){this.closeModal(),this.context.router.replace("/job/detail/"+encodeURIComponent(this.props.jobId))}.bind(this))},openModal:function(){this.setState({modalIsOpen:!0})},closeModal:function(){this.setState({modalIsOpen:!1})},handleUpdate:function(a){this.setState({postState:a.target.value})},handleWithSubsequentUpdate:function(a){this.setState({with_subsequent:a.target.value})},render:function(){var a="state = "+this.name_of_state(this.state.postState);return this.state.with_subsequent&&(a+=" with subsequent jobs"),f["default"].createElement("div",null,f["default"].createElement(l["default"],{modalIsOpen:this.state.modalIsOpen,submitHandler:this.submitNewState,closeHandler:this.closeModal,jobIds:[this.props.jobId],deltaDescription:a}),f["default"].createElement("table",null,f["default"].createElement("tbody",null,f["default"].createElement("tr",null,f["default"].createElement("td",null,f["default"].createElement("select",{className:"form-control",onChange:this.handleUpdate,value:this.state.postState},f["default"].createElement("option",{value:1}," WAIT "),f["default"].createElement("option",{value:0}," SUCCEEDED "),f["default"].createElement("option",{value:3}," SUSPEND "),f["default"].createElement("option",{value:4}," FAILED "),f["default"].createElement("option",{value:-2}," DISCARDED "))),f["default"].createElement("td",null,f["default"].createElement("select",{className:"form-control",onChange:this.handleWithSubsequentUpdate,value:this.state.with_subsequet},f["default"].createElement("option",{value:!1}," ONLY THIS "),f["default"].createElement("option",{value:!0}," WITH SUBSEQUENT "))),f["default"].createElement("td",null,f["default"].createElement("button",{type:"submit",className:"btn btn-primary",onClick:this.openModal}," change state "))))))}})},{"./jobChangeConfirmModal":391,"./jobClient":392,"./jobUtil":393,react:387}],391:[function(a,b,c){"use strict";var d=a("react"),e=a("react-modal");b.exports=d.createClass({displayName:"exports",getInitialState:function(){return{modalIsOpen:this.props.modalIsOpen}},componentWillReceiveProps:function(a){this.setState({modalIsOpen:a.modalIsOpen})},handleSubmit:function(){this.props.submitHandler()},handleClose:function(){this.props.closeHandler()},render:function(){return d.createElement("div",null,d.createElement(e,{isOpen:this.state.modalIsOpen,onRequestClose:this.handleClose},d.createElement("h2",null,"Job Update Confirmation"),d.createElement("table",{className:"table table-bordered table-striped"},d.createElement("tbody",null,this.props.jobIds.map(function(a){return d.createElement("tr",{key:a},d.createElement("td",null,a),d.createElement("td",null,this.props.deltaDescription))}.bind(this)))),d.createElement("button",{className:"btn btn-primary",onClick:this.handleSubmit},"submit"),d.createElement("button",{className:"btn btn-secondary",onClick:this.handleClose},"cancel")))}})},{react:387,"react-modal":151}],392:[function(a,b,c){"use strict";var d=a("../../common/httpClient"),e="/api/v1/jobs/";b.exports={getJobStats:function(a){d.get(e+"stats",function(b){a(b)})},getJobs:function(a,b){var c="?"+Object.keys(a).map(function(b){return b+"="+encodeURIComponent(a[b])}).join("&");d.get(e+c,function(a){b(a)})},getJob:function(a,b){a=encodeURIComponent(a),d.get(e+a,function(a){b(a)})},getHistory:function(a,b,c){a=encodeURIComponent(a);var f=a+"/histories?size="+b;d.get(e+f,function(a){c(a)})},getGraph:function(a,b,c,f){a=encodeURIComponent(a);var g=a+"/graph?p_depth="+b+"&c_depth="+c;d.get(e+g,function(a){f(a)})},updateJobState:function(a,b,c,f){a=encodeURIComponent(a),d.request_with_body(e+a,"PUT",{state:b,option:c},function(a){f(a)})},updateJobs:function(a,b,c,f){b.job_ids=a,d.request_with_body(e,"PUT",b,function(a){f(a)})},deleteJobs:function(a,b,c){var f=e+"?job_ids="+encodeURIComponent(JSON.stringify(a));d.request_with_body(f,"DELETE",{},function(a){c(a)})}}},{"../../common/httpClient":388}],393:[function(a,b,c){"use strict";a("react");b.exports={name_of_state:function(a){switch("string"==typeof a&&(a=parseInt(a)),a){case-2:return"DISCARDED";case-1:return"INITIATING";case 0:return"SUCCEEDED";case 1:return"WAITING";case 2:return"RUNNING";case 3:return"SUSPENDED";case 4:return"FAILED";default:return"unknown state: "+a}},name_of_exitcode:function(a){switch(a){case 0:return"SUCCEEDED";case 1:return"FAILED";case null:return"";default:return"unknown exit code: "+a}}}},{react:387}],394:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}var e=a("react"),f=d(e),g=a("./common/jobClient"),h=d(g),i=a("./common/jobUtil"),j=d(i),k=a("react-dom"),l=d(k),m=a("d3"),n=d(m),o=a("dagre"),p=(d(o),a("dagre-d3")),q=d(p),r=a("lodash"),s=d(r),t=a("moment"),u=d(t);b.exports=f["default"].createClass({displayName:"exports",mixins:[j["default"],h["default"]],getDefaultProps:function(){return{rectHeight:45}},getInitialState:function(){return{job:this.props.job,graphNodes:{},graphEdges:{},dependencyProducerDepth:this.props.dependencyProducerDepth,dependencyConsumerDepth:this.props.dependencyConsumerDepth,divWidth:0,divHeight:0}},componentDidMount:function(){window.addEventListener("resize",this.handleResize),this.setState({job:this.props.job,divWidth:l["default"].findDOMNode(this).offsetWidth,divHeight:innerHeight-150})},componentWillReceiveProps:function(a){this.setState({job:a.job,graphNodes:{},graphEdges:{},dependencyProducerDepth:a.dependencyProducerDepth,dependencyConsumerDepth:a.dependencyConsumerDepth})},componentWillMount:function(){this.redraw=s["default"].debounce(this.redraw,200)},componentWillUnmount:function(){window.removeEventListener("resize",this.handleResize)},shouldComponentUpdate:function(a,b){return"undefined"!=typeof b.job.job_id},redraw:function(){this.setState({divWidth:l["default"].findDOMNode(this).offsetWidth,divHeight:innerHeight-150})},handleResize:function(a){this.redraw()},getHumanReadableTimeDiff:function(a,b){a=u["default"].utc((0,u["default"])(a).toISOString()).format(),b=u["default"].utc((0,u["default"])(b).toISOString()).format();var c=u["default"].duration((0,u["default"])(a).diff((0,u["default"])(b))),d=parseInt(c.asDays()),e=parseInt(c.asHours());e-=24*d;var f=parseInt(c.asMinutes());f-=24*d*60+60*e;var g=parseInt(c.asSeconds());g-=24*d*60+60*e+60*f;var h="";return d>0&&(h+=d+" day(s)"),c.asHours()<168&&e>0&&(h+=e+" hour(s)"),c.asMinutes()<1440&&f>0&&(h+=f+" minute(s)"),c.asSeconds()<3600&&g>0&&(h+=g+" second(s)"),h},render:function(){return"undefined"==typeof this.state.job.job_id?f["default"].createElement("div",null):(this.getGraph(this.state.job.job_id,this.state.dependencyProducerDepth,this.state.dependencyConsumerDepth,function(a){var b=a.nodes,c=a.edges;"undefined"==typeof window.d3&&(window.d3=n["default"]);var d=(new q["default"].graphlib.Graph).setGraph({}).setDefaultEdgeLabel(function(){return{}});d.graph().rankDir="LR",Object.keys(b).map(function(a,c){var e=b[a],f=this.name_of_state(e.state),g=e.job_id;g.length>142&&(g=g.substr(0,142)+"...");var h={rx:2,ry:2,padding:0,label:function(){var a=document.createElement("span"),b=n["default"].select(a);return b.append("span").attr("class","status "+f).html("&nbsp;"),b.append("span").attr("class","job_title").text(g),a}};this.state.job.job_id===e.job_id&&(h.style="fill: #afeeee;"),d.setNode(a,h)}.bind(this)),c.sort().map(function(a){d.setEdge(a[0],a[1],{lineInterpolate:"basis"})}.bind(this));var e=n["default"].select(l["default"].findDOMNode(this.refs.nodeTree)),f=n["default"].select(l["default"].findDOMNode(this.refs.nodeTreeGroup)),g=n["default"].behavior.zoom().on("zoom",function(){f.attr("transform","translate("+n["default"].event.translate+")scale("+n["default"].event.scale+")")});e.call(g);var h=new q["default"].render;h(f,d);var i=this.state.divWidth/d.graph().width,j=this.state.divHeight/d.graph().height,k=j>i?i:j;k>=1&&(k=1),g.translate([(this.state.divWidth-d.graph().width*k)/2,20]).scale(k).event(e),e.attr("height",this.state.divHeight),e.attr("width",this.state.divWidth);var m=n["default"].select("body").append("div").attr("class","jobToolTip").style("position","absolute").style("visibility","hidden");e.selectAll("g.node").on("click",function(a){n["default"].event.defaultPrevented||(window.location="/job/detail/"+encodeURIComponent(a))}).on("mouseover",function(a){var c=b[a],d="";return d+='<table class="jobTooltipTable">',
25
- d+="<tr><th>JOB ID</th><td>"+c.job_id+"</td></tr>",d+=null!==c.exec_node&&null!=c.exec_host?"<tr><th>node@host</th><td>"+c.exec_node+"@"+c.exec_host+"</td></tr>":"",d+=null!==c.start_datetime?"<tr><th>start_datetime</th><td>"+c.start_datetime+"</td></tr>":"",null!==c.history&&null!==c.history.begin_at&&(d+="<tr><th>BEGIN AT</th><td>"+c.history.begin_at+"</td></tr>"),null!==c.history&&null!==c.history.end_at&&(d+="<tr><th>END AT</th><td>"+c.history.end_at+"</td></tr>"),2===c.state?d+="<tr><th>EXECUTE ELAPSED TIME</th><td>"+this.getHumanReadableTimeDiff(new Date,c.history.begin_at)+"</td></tr>":0===c.state&&(d+="<tr><th>EXECUTE ELAPSED TIME</th><td>"+this.getHumanReadableTimeDiff(c.history.end_at,c.history.begin_at)+"</td></tr>",d+="<tr><th>TIME SINCE END TIME</th><td>"+this.getHumanReadableTimeDiff(new Date,c.history.end_at)+"</td></tr>"),m.html(d).style("visibility","visible")}.bind(this)).on("mousemove",function(){return n["default"].event.pageX>this.state.divWidth/2+200?m.style("top",n["default"].event.pageY+10+"px").style("left",n["default"].event.pageX-300+"px"):m.style("top",n["default"].event.pageY+10+"px").style("left",n["default"].event.pageX+10+"px")}.bind(this)).on("mouseout",function(){return n["default"].selectAll(".jobToolTip").style("visibility","hidden"),m.style("visibility","hidden")}),e.selectAll("g.node rect").attr("height",this.props.rectHeight)}.bind(this)),f["default"].createElement("div",{className:"nodeTree"},f["default"].createElement("svg",{ref:"nodeTree"},f["default"].createElement("g",{ref:"nodeTreeGroup"}))))}})},{"./common/jobClient":392,"./common/jobUtil":393,d3:1,dagre:51,"dagre-d3":2,lodash:142,moment:143,react:387,"react-dom":144}],395:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}var e=a("react"),f=d(e),g=a("./common/jobUtil"),h=d(g),i=a("./common/jobClient"),j=d(i),k=a("./common/jobChangeConfirmModal"),l=d(k),m=a("react-router"),n=a("react-router/lib/PatternUtils");b.exports=f["default"].createClass({displayName:"exports",mixins:[h["default"],j["default"]],contextTypes:{router:f["default"].PropTypes.object.isRequired},getInitialState:function(){return{selected:{},allChecked:!1,postState:0,updateModalIsOpen:!1,deleteModalIsOpen:!1}},handleAllChecked:function(){var a=!this.state.allChecked,b={};if(a)for(var c=0;c<this.props.jobs.length;c++){var d=this.props.jobs[c].job_id;b[d]=a}this.setState({allChecked:a,selected:b})},jobSelectionHandler:function(a){return function(){var b=this.state.selected;"undefined"==typeof b[a]?b[a]=!0:delete b[a],this.setState({allChecked:!1,selected:b})}.bind(this)},handlePostStateUpdate:function(a){this.setState({postState:a.target.value})},handleUpdate:function(){var a=this.getSelectedJobIds();a.length>0?this.setState({updateModalIsOpen:!0}):alert("jobs are not selected")},closeUpdateModal:function(){this.setState({updateModalIsOpen:!1})},requestUpdate:function(){var a=this.getSelectedJobIds();this.updateJobs(a,{state:this.state.postState},{},function(){this.context.router.push(this.props.path)}.bind(this)),this.setState({updateModalIsOpen:!1,selected:{},allChecked:!1})},handleDelete:function(){var a=this.getSelectedJobIds();a.length>0?this.setState({deleteModalIsOpen:!0}):alert("jobs are not selected")},closeDeleteModal:function(){this.setState({deleteModalIsOpen:!1})},requestDelete:function(){var a=this.getSelectedJobIds();this.deleteJobs(a,{},function(){this.context.router.push(this.props.path)}.bind(this)),this.setState({deleteModalIsOpen:!1,selected:{},allChecked:!1})},getSelectedJobIds:function(){var a=[];return Object.keys(this.state.selected).forEach(function(b){this.state.selected[b]&&a.push(b)}.bind(this)),a},render:function(){return f["default"].createElement("div",{className:"alt-table-responsive"},f["default"].createElement(l["default"],{modalIsOpen:this.state.updateModalIsOpen,submitHandler:this.requestUpdate,closeHandler:this.closeUpdateModal,jobIds:this.getSelectedJobIds(),deltaDescription:"state = "+this.name_of_state(this.state.postState)}),f["default"].createElement(l["default"],{modalIsOpen:this.state.deleteModalIsOpen,submitHandler:this.requestDelete,closeHandler:this.closeDeleteModal,jobIds:this.getSelectedJobIds(),deltaDescription:"DELETE"}),f["default"].createElement("table",{className:"table table-bordered table-striped"},f["default"].createElement("thead",null,f["default"].createElement("tr",null,f["default"].createElement("th",{className:"col-md-1"},f["default"].createElement("input",{type:"checkbox",onChange:this.handleAllChecked,checked:this.state.allChecked})),f["default"].createElement("th",{className:"col-md-9"}," Job ID "),f["default"].createElement("th",{className:"col-md-2"}," State "))),f["default"].createElement("tbody",null,this.props.jobs.map(function(a){return f["default"].createElement("tr",{key:a.job_id},f["default"].createElement("td",{onClick:this.jobSelectionHandler(a.job_id)},f["default"].createElement("input",{className:"form-control small-checkbox",type:"checkbox",checked:this.state.selected[a.job_id]})," "),f["default"].createElement("td",null,f["default"].createElement(m.Link,{to:(0,n.formatPattern)("/job/detail/:job_id",{job_id:a.job_id})}," ",a.job_id," ")," "),f["default"].createElement("td",null," ",this.name_of_state(a.state)," "))}.bind(this)))),f["default"].createElement("table",null,f["default"].createElement("tbody",null,f["default"].createElement("tr",null,f["default"].createElement("td",null,f["default"].createElement("select",{className:"form-control",onChange:this.handlePostStateUpdate,value:this.state.postState},f["default"].createElement("option",{value:1}," WAIT "),f["default"].createElement("option",{value:0}," SUCCEEDED "),f["default"].createElement("option",{value:3}," SUSPEND "),f["default"].createElement("option",{value:4}," FAILED "),f["default"].createElement("option",{value:-2}," DISCARDED "))),f["default"].createElement("td",null,f["default"].createElement("button",{type:"submit",onClick:this.handleUpdate,className:"btn btn-primary"}," change state ")),f["default"].createElement("td",null,this.props.hasDeleteButton?f["default"].createElement("button",{type:"submit",onClick:this.handleDelete,className:"btn btn-danger"}," delete "):null)))))}})},{"./common/jobChangeConfirmModal":391,"./common/jobClient":392,"./common/jobUtil":393,react:387,"react-router":193,"react-router/lib/PatternUtils":173}],396:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}var e=a("react"),f=d(e),g=a("./jobList"),h=d(g),i=a("./common/jobUtil"),j=d(i),k=a("./common/jobClient"),l=d(k),m=a("react-router");a("react-router/lib/PatternUtils");b.exports=f["default"].createClass({displayName:"exports",mixins:[j["default"],l["default"]],contextTypes:{router:f["default"].PropTypes.object.isRequired},getInitialState:function(){return{offset:0,limit:50,jobs:[],filter_exp:""}},componentWillMount:function(){var a=this.parseQuery(this.props.location.query);a.state=parseInt(this.props.params.state),this.fetchJobs(a)},componentWillReceiveProps:function(a){var b=this.parseQuery(a.location.query);b.state=parseInt(a.params.state),this.fetchJobs(b)},parseQuery:function(a){var b={};return b.offset="undefined"==typeof a.offset?0:parseInt(a.offset),b.limit="undefined"==typeof a.limit?50:parseInt(a.limit),b.filter_exp="undefined"==typeof a.filter_exp?"":a.filter_exp,b},handleUpdateFilter:function(a){this.setState({filter_exp:a.target.value})},handleFilterKeyPress:function(a){"Enter"==a.key&&this.handleFilterSubmit()},handleFilterSubmit:function(){var a={state:parseInt(this.props.params.state),filter_exp:this.state.filter_exp};this.fetchJobs(a)},fetchJobs:function(a){NaN==a.offset&&(a.offset=0),NaN==a.limit&&(a.limit=50),this.getJobs(a,function(b){a.jobs=b,this.setState(a)}.bind(this))},render:function(){var a=parseInt(this.state.offset),b=parseInt(this.state.limit),c=a>b?a-b:0,d=b>this.state.jobs.length?a:a+b;return f["default"].createElement("div",null,f["default"].createElement("h1",null," ",this.name_of_state(this.props.params.state)," Jobs "),f["default"].createElement("div",{className:"row"},f["default"].createElement("div",{className:"col-xs-8"},f["default"].createElement("input",{className:"form-control",style:{width:"100%"},type:"text",placeholder:"job_id",onChange:this.handleUpdateFilter,onKeyPress:this.handleFilterKeyPress,value:this.state.filter_exp})),f["default"].createElement("div",{className:"col-xs-2"},f["default"].createElement("button",{type:"button",className:"form-control btn btn-primary",onClick:this.handleFilterSubmit}," search "))),f["default"].createElement(h["default"],{jobs:this.state.jobs,path:this.props.location.pathname,hasDeleteButton:-2==parseInt(this.props.params.state)}),f["default"].createElement("div",{className:"pager"},f["default"].createElement("ul",null,f["default"].createElement("li",{className:a>0?"previous":"previous disabled"},f["default"].createElement(m.Link,{to:{pathname:"/job/list/"+this.props.params.state,query:{filter_exp:this.state.filter_exp,offset:c,limit:b}}},"prev")),f["default"].createElement("li",{className:this.state.jobs.length==b?"next":"next disabled"},f["default"].createElement(m.Link,{to:{pathname:"/job/list/"+this.props.params.state,query:{filter_exp:this.state.filter_exp,offset:d,limit:b}}},"next")))))}})},{"./common/jobClient":392,"./common/jobUtil":393,"./jobList":395,react:387,"react-router":193,"react-router/lib/PatternUtils":173}],397:[function(a,b,c){"use strict";var d=a("react"),e=(a("./jobListView"),a("./jobView"),a("./common/jobClient")),f=a("react-router"),g=(f.DefaultRoute,f.Link),h=(f.Route,f.RouteHandler,["0","1","2","3","4","-1","-2"]);b.exports=d.createClass({displayName:"exports",mixins:[e],getInitialState:function(){return{viewState:{type:"list",state:4},jobStats:{0:"***",1:0,2:0,3:0,4:0,"-1":0,"-2":0}}},componentWillMount:function(){this.updateJobStats({})},componentWillReceiveProps:function(){this.updateJobStats({})},updateJobStats:function(a){this.getJobStats(function(b){void 0==b[0]&&(b[0]="***");for(var c=0;c<h.length;c++)void 0==b[h[c]]&&(b[h[c]]="0"==h[c]?"***":0);a.jobStats=b,this.setState(a)}.bind(this))},render:function(){var a=this.props.children;return d.createElement("div",{className:"container"},d.createElement("div",{className:"row"},d.createElement("div",{className:"col-md-3 well well-lg"},d.createElement("h3",null," #Jobs "),d.createElement("table",{className:"table"},d.createElement("tbody",null,d.createElement("tr",null,d.createElement("td",null,"Succeeded :"),d.createElement("td",null,d.createElement(g,{to:"/job/list/0"},this.state.jobStats[0]))),d.createElement("tr",null,d.createElement("td",null,"Initiating :"),d.createElement("td",null,d.createElement(g,{to:"/job/list/-1"},this.state.jobStats[-1]))),d.createElement("tr",null,d.createElement("td",null,"Waiting :"),d.createElement("td",null,d.createElement(g,{to:"/job/list/1"},this.state.jobStats[1]))),d.createElement("tr",null,d.createElement("td",null,"Running :"),d.createElement("td",null,d.createElement(g,{to:"/job/list/2"},this.state.jobStats[2]))),d.createElement("tr",null,d.createElement("td",null,"Suspended :"),d.createElement("td",null,d.createElement(g,{to:"/job/list/3"},this.state.jobStats[3]))),d.createElement("tr",null,d.createElement("td",null,"Failed :"),d.createElement("td",null,d.createElement(g,{to:"/job/list/4"},this.state.jobStats[4]))),d.createElement("tr",null,d.createElement("td",null,"Discarded :"),d.createElement("td",null,d.createElement(g,{to:"/job/list/-2"},this.state.jobStats[-2])))))),d.createElement("div",{className:"col-md-9"},a)))}})},{"./common/jobClient":392,"./jobListView":396,"./jobView":398,react:387,"react-router":193}],398:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}var e=a("react"),f=d(e),g=a("./jobList"),h=d(g),i=a("./common/jobClient"),j=d(i),k=a("./common/jobUtil"),l=d(k),m=a("./common/changeJobStateForm"),n=d(m),o=(a("react-router/lib/PatternUtils"),a("./dependencyGraph")),p=d(o),q=a("react-numeric-input"),r=d(q),s=a("react-tabs/lib/components/Tab"),t=d(s),u=a("react-tabs/lib/components/Tabs"),v=d(u),w=a("react-tabs/lib/components/TabList"),x=d(w),y=a("react-tabs/lib/components/TabPanel"),z=d(y),A=["COMMAND_CLASS","update_id","state","priority","start_datetime","exec_host","exec_node","products","requisites","consumers","producers"],B={TAB_INDEX_DEFAULT:0,TAB_INDEX_GRAPH:1};b.exports=f["default"].createClass({displayName:"exports",mixins:[l["default"],j["default"]],contextTypes:{router:f["default"].PropTypes.object.isRequired},getInitialState:function(){return{job:{},history:[],dependencyProducerDepth:2,dependencyConsumerDepth:2,tabIndex:B.TAB_INDEX_DEFAULT}},componentWillMount:function(){this.updateJob(this.props.params.jobId)},componentWillReceiveProps:function(a){this.updateJob(a.params.jobId)},componentWillUpdate:function(a,b){},updateJob:function(a){this.getJob(a,function(b){this.getHistory(a,3,function(a){this.setState({job:b,history:a})}.bind(this))}.bind(this))},handleTabSelect:function(a,b){this.setState({tabIndex:a})},handleChangeProducerGraphDepth:function(a){this.setState({dependencyProducerDepth:a})},handleChangeConsumerGraphDepth:function(a){this.setState({dependencyConsumerDepth:a})},render:function(){var a=new Date(1e3*this.state.job.update_id).toString(),b=[],c={wordWrap:"break-word",wordBreak:"break-all"};Object.keys(this.state.job).forEach(function(a){if(A.indexOf(a)<0){var d=this.state.job[a];d instanceof Array?d.forEach(function(d,e,g){b.push(f["default"].createElement("tr",{key:a+e},f["default"].createElement("td",{className:"original main"},0==e?"":a),f["default"].createElement("td",{style:c,colSpan:"3"},JSON.stringify(d))))}):b.push(f["default"].createElement("tr",{key:a},f["default"].createElement("td",{className:"original main"},a),f["default"].createElement("td",{style:c,colSpan:"3"},JSON.stringify(d))))}}.bind(this));var d,e;return void 0!=this.state.job.producers&&(d=f["default"].createElement("div",null,f["default"].createElement("h4",null," Before "),f["default"].createElement(h["default"],{jobs:this.state.job.producers,path:this.props.location.pathname,hasDeleteButton:!1}))),void 0!=this.state.job.consumers&&(e=f["default"].createElement("div",null,f["default"].createElement("h4",null," After "),f["default"].createElement(h["default"],{jobs:this.state.job.consumers,path:this.props.location.pathname,hasDeleteButton:!1}))),f["default"].createElement("div",null,f["default"].createElement("div",{style:{position:"relative"}},f["default"].createElement(v["default"],{onSelect:this.handleTabSelect,selectedIndex:this.state.tabIndex},f["default"].createElement(x["default"],null,f["default"].createElement(t["default"],null,"Job Info"),f["default"].createElement(t["default"],null,"Graph")),f["default"].createElement(z["default"],null,f["default"].createElement("div",null,f["default"].createElement("h1",{className:"original"},this.props.params.jobId)),f["default"].createElement("h3",null," Job Info. "),f["default"].createElement(n["default"],{jobId:this.props.params.jobId,currentState:this.state.job.state}),f["default"].createElement("table",{className:"table table-bordered",style:{tableLayout:"fixed"}},f["default"].createElement("tbody",null,f["default"].createElement("tr",null,f["default"].createElement("td",{className:"original main"},"Command Class"),f["default"].createElement("td",{colSpan:"3"},this.state.job.COMMAND_CLASS)),f["default"].createElement("tr",null,f["default"].createElement("td",{className:"original main"},"Updated at"),f["default"].createElement("td",null,a),f["default"].createElement("td",{className:"original main"},"State"),f["default"].createElement("td",null,this.name_of_state(this.state.job.state))),f["default"].createElement("tr",null,f["default"].createElement("td",{className:"original main"},"Priority"),f["default"].createElement("td",null,this.state.job.priority),f["default"].createElement("td",{className:"original main"},"Start After"),f["default"].createElement("td",null,this.state.job.start_datetime)),f["default"].createElement("tr",null,f["default"].createElement("td",{className:"original main"},"Host"),f["default"].createElement("td",null,this.state.job.exec_host),f["default"].createElement("td",{className:"original main"},"Node"),f["default"].createElement("td",null,this.state.job.exec_node)),f["default"].createElement("tr",null,f["default"].createElement("td",{className:"original main"},"Produced Products"),f["default"].createElement("td",{colSpan:"3"},this.state.job.products)),f["default"].createElement("tr",null,f["default"].createElement("td",{className:"original main"},"Required Products"),f["default"].createElement("td",{colSpan:"3"},this.state.job.requisites)),f["default"].createElement("tr",null,f["default"].createElement("td",{className:"original main",colSpan:"4"}," content ")),b.map(function(a){return a}))),f["default"].createElement("h3",null," Execution History "),f["default"].createElement("table",{className:"table table-borderd"},f["default"].createElement("thead",null,f["default"].createElement("tr",null,f["default"].createElement("th",null," host "),f["default"].createElement("th",null," node "),f["default"].createElement("th",null," begin_at "),f["default"].createElement("th",null," end_at "),f["default"].createElement("th",null," result "),f["default"].createElement("th",null," description "))),f["default"].createElement("tbody",null,this.state.history.map(function(a){return f["default"].createElement("tr",{key:a.begin_at},f["default"].createElement("td",null," ",a.host," "),f["default"].createElement("td",null," ",a.node," "),f["default"].createElement("td",null," ",a.begin_at," "),f["default"].createElement("td",null," ",a.end_at," "),f["default"].createElement("td",null," ",this.name_of_exitcode(a.exit_code)," "),f["default"].createElement("td",null," ",a.description," "))}.bind(this)))),f["default"].createElement("h3",null," Dependency "),d,e),f["default"].createElement(z["default"],null,f["default"].createElement("div",{style:{width:"50%",textAlign:"center",display:"inline-block"}},"<< Producer Dependency Depth",f["default"].createElement(r["default"],{min:0,max:4,size:2,onChange:this.handleChangeProducerGraphDepth,value:this.state.dependencyProducerDepth,mobile:!0,valueAsNumber:!0})),f["default"].createElement("div",{style:{width:"50%",textAlign:"center",display:"inline-block"}},">> Consumer Dependency Depth",f["default"].createElement(r["default"],{min:0,max:4,size:2,onChange:this.handleChangeConsumerGraphDepth,value:this.state.dependencyConsumerDepth,mobile:!0,valueAsNumber:!0})),f["default"].createElement("div",{id:"statePanel"},f["default"].createElement("div",{style:{display:"inline-block",verticalAlign:"middle"}},"DISCARDED"),f["default"].createElement("div",{className:"stateExplanation status DISCARDED"}),f["default"].createElement("br",null),f["default"].createElement("div",{style:{display:"inline-block",verticalAlign:"middle"}},"INITIATING"),f["default"].createElement("div",{className:"stateExplanation status INITIATING"}),f["default"].createElement("br",null),f["default"].createElement("div",{style:{display:"inline-block",verticalAlign:"middle"}},"SUCCEEDED"),f["default"].createElement("div",{className:"stateExplanation status SUCCEEDED"}),f["default"].createElement("br",null),f["default"].createElement("div",{style:{display:"inline-block",verticalAlign:"middle"}},"WAITING"),f["default"].createElement("div",{className:"stateExplanation status WAITING"}),f["default"].createElement("br",null),f["default"].createElement("div",{style:{display:"inline-block",verticalAlign:"middle"}},"RUNNING"),f["default"].createElement("div",{className:"stateExplanation status RUNNING"}),f["default"].createElement("br",null),f["default"].createElement("div",{style:{display:"inline-block",verticalAlign:"middle"}},"SUSPENDED"),f["default"].createElement("div",{className:"stateExplanation status SUSPENDED"}),f["default"].createElement("br",null),f["default"].createElement("div",{style:{display:"inline-block",verticalAlign:"middle"}},"FAILED"),f["default"].createElement("div",{className:"stateExplanation status FAILED"}),f["default"].createElement("br",null)),f["default"].createElement(p["default"],{job:this.state.job,dependencyProducerDepth:this.state.dependencyProducerDepth,dependencyConsumerDepth:this.state.dependencyConsumerDepth})))))}})},{"./common/changeJobStateForm":390,"./common/jobClient":392,"./common/jobUtil":393,"./dependencyGraph":394,"./jobList":395,react:387,"react-numeric-input":165,"react-router/lib/PatternUtils":173,"react-tabs/lib/components/Tab":223,"react-tabs/lib/components/TabList":224,"react-tabs/lib/components/TabPanel":225,"react-tabs/lib/components/Tabs":226}],399:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}var e=a("react"),f=d(e),g=a("react-dom"),h=d(g),i=a("react-router"),j=a("./index"),k=d(j),l=a("./job/jobManager"),m=d(l),n=a("./job/jobListView"),o=d(n),p=a("./job/jobView"),q=d(p),r=a("./worker/workerManager"),s=d(r),t=a("./worker/workerView"),u=d(t),v=f["default"].createClass({displayName:"SchedulerManager",getInitialState:function(){return{currentManager:m["default"]}},render:function(){return f["default"].createElement("div",null,f["default"].createElement("nav",{className:"navbar navbar-inverse"},f["default"].createElement("div",{className:"container-fluid"},f["default"].createElement("div",{className:"navbar-header"},f["default"].createElement(i.Link,{to:"/",className:"navbar-brand"},"Patriot Workflow Scheduler")),f["default"].createElement("ul",{className:"nav navbar-nav"},f["default"].createElement("li",null," ",f["default"].createElement(i.Link,{to:"/job"}," Job ")," "),f["default"].createElement("li",null," ",f["default"].createElement(i.Link,{to:"/worker"}," Worker ")," ")))),this.props.children)}});h["default"].render(f["default"].createElement(i.Router,{history:i.browserHistory},f["default"].createElement(i.Route,{path:"/",component:v},f["default"].createElement(i.IndexRoute,{component:k["default"]}),f["default"].createElement(i.Route,{path:"job",component:m["default"]},f["default"].createElement(i.IndexRedirect,{to:"/job/list/4"}),f["default"].createElement(i.Route,{path:"list/:state",component:o["default"]}),f["default"].createElement(i.Route,{path:"detail/:jobId",component:q["default"]})),f["default"].createElement(i.Route,{path:"worker",component:s["default"]},f["default"].createElement(i.IndexRedirect,{to:"/worker/this"}),f["default"].createElement(i.Route,{path:"this",component:u["default"]})))),document.getElementById("mainContent"))},{"./index":389,"./job/jobListView":396,"./job/jobManager":397,"./job/jobView":398,"./worker/workerManager":401,"./worker/workerView":402,react:387,"react-dom":144,"react-router":193}],400:[function(a,b,c){"use strict";var d=a("../../common/httpClient"),e="/api/v1/workers/";b.exports={getConfig:function(a){d.get(e+"this",function(b){a(b)})},getWorkers:function(a){d.get(e,function(b){a(b)})}}},{"../../common/httpClient":388}],401:[function(a,b,c){"use strict";var d=a("react-router"),e=a("react"),f=a("./common/workerClient");b.exports=e.createClass({displayName:"exports",mixins:[f],getInitialState:function(){return{workers:[]}},componentWillMount:function(){this.getWorkers(function(a){this.setState({workers:a})}.bind(this))},render:function(){return e.createElement("div",{className:"container"},e.createElement("div",{className:"row"},e.createElement("div",{className:"col-md-3 well well-lg"},e.createElement("h3",null," Workers "),e.createElement("table",{className:"table"},e.createElement("tbody",null,e.createElement("tr",null,e.createElement("td",null,e.createElement(d.Link,{to:"/worker/this"},"this worker"))),this.state.workers.map(function(a){var b="http://"+a.host+":"+a.port+"/worker/this";return e.createElement("tr",{key:a.host},e.createElement("td",null,e.createElement("a",{href:b}," ",a.host," ")))})))),e.createElement("div",{className:"col-md-9"},this.props.children)))}})},{"./common/workerClient":400,react:387,"react-router":193}],402:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}var e=a("react"),f=d(e),g=a("./common/workerClient"),h=d(g);a("react-router");b.exports=f["default"].createClass({displayName:"exports",mixins:[h["default"]],getInitialState:function(){return{version:"",workerClass:"",startedAt:""}},componentWillMount:function(){this.getConfig(function(a){this.setState({host:a.host,version:a.version,workerClass:a["class"],startedAt:a.started_at,state:a.state})}.bind(this))},render:function(){return f["default"].createElement("div",{className:"container"},f["default"].createElement("h2",null," worker @ ",this.state.host," "),f["default"].createElement("table",{className:"table table-bordered tabel-striped"},f["default"].createElement("tbody",null,f["default"].createElement("tr",null,f["default"].createElement("td",null,"VERSION :"),f["default"].createElement("td",null,this.state.version," ")),f["default"].createElement("tr",null,f["default"].createElement("td",null,"CLASS :"),f["default"].createElement("td",null," ",this.state.workerClass," ")),f["default"].createElement("tr",null,f["default"].createElement("td",null," STARTED AT :"),f["default"].createElement("td",null," ",this.state.startedAt," ")),f["default"].createElement("tr",null,f["default"].createElement("td",null," STATE :"),f["default"].createElement("td",null," ",this.state.state," ")))))}})},{"./common/workerClient":400,react:387,"react-router":193}]},{},[388,389,390,391,392,393,394,395,396,397,398,399,400,401,402]);
26
- //# sourceMappingURL=patriot-workflow-scheduler-0.8.0.min.js.map