Cloudflare - Version 3.1.0

Version Description

  • 2016-11-17 =

Added

  • Added ability to automatically purge cache when a post is published, edited or deleted. (Thanks to brandomeniconi and mike503)
  • Added ability to work with Wordpress MU Domain Mapping plugin. (Thanks to brandomeniconi)

Changed

  • Changed the UI to look more like cloudflare.com dashboard.
  • Changed plugin description.
  • Disabled showing WordPress Admin Bar and Edit Post Link to avoid caching problems for users using HTML Caching.

Fixed

  • Fixed bug where require vendor folders was not working.
  • Fixed bug where static files were cached which caused issues updating the plugin.
  • Fixed dependencies which caused issues with PHP Compatibility Checker plugin.
Download this release

Release Info

Developer furkan811
Plugin Icon 128x128 Cloudflare
Version 3.1.0
Comparing to
See all releases

Code changes from version 3.0.6 to 3.1.0

Files changed (458) hide show
  1. .gitignore +1 -0
  2. LICENSE.md +1 -1
  3. cloudflare.loader.php +27 -7
  4. cloudflare.php +2 -2
  5. compiled.js +34 -36
  6. compiled.js.map +1 -1
  7. composer.json +2 -2
  8. config.js +1 -1
  9. fonts/FontAwesome.otf +0 -0
  10. fonts/cloudflare-font.eot +0 -0
  11. fonts/cloudflare-font.svg +0 -0
  12. fonts/cloudflare-font.ttf +0 -0
  13. fonts/cloudflare-font.woff +0 -0
  14. fonts/fontawesome-cloudflare.eot +0 -0
  15. fonts/fontawesome-cloudflare.svg +0 -0
  16. fonts/fontawesome-cloudflare.ttf +0 -0
  17. fonts/fontawesome-cloudflare.woff +0 -0
  18. fonts/fontawesome-webfont.eot +0 -0
  19. fonts/fontawesome-webfont.svg +0 -0
  20. fonts/fontawesome-webfont.ttf +0 -0
  21. fonts/fontawesome-webfont.woff +0 -0
  22. fonts/opensans-300.eot +0 -0
  23. fonts/opensans-300.ttf +0 -0
  24. fonts/opensans-300.woff +0 -0
  25. fonts/opensans-300.woff2 +0 -0
  26. fonts/opensans-300i.eot +0 -0
  27. fonts/opensans-300i.ttf +0 -0
  28. fonts/opensans-300i.woff +0 -0
  29. fonts/opensans-300i.woff2 +0 -0
  30. fonts/opensans-400.eot +0 -0
  31. fonts/opensans-400.ttf +0 -0
  32. fonts/opensans-400.woff +0 -0
  33. fonts/opensans-400.woff2 +0 -0
  34. fonts/opensans-400i.eot +0 -0
  35. fonts/opensans-400i.ttf +0 -0
  36. fonts/opensans-400i.woff +0 -0
  37. fonts/opensans-400i.woff2 +0 -0
  38. fonts/opensans-600.eot +0 -0
  39. fonts/opensans-600.ttf +0 -0
  40. fonts/opensans-600.woff +0 -0
  41. fonts/opensans-600.woff2 +0 -0
  42. fonts/opensans-700.eot +0 -0
  43. fonts/opensans-700.ttf +0 -0
  44. fonts/opensans-700.woff +0 -0
  45. fonts/opensans-700.woff2 +0 -0
  46. index.php +13 -5
  47. lang/de.js +7 -7
  48. lang/en.js +37 -27
  49. lang/es.js +7 -7
  50. lang/fr.js +7 -7
  51. lang/it.js +7 -7
  52. lang/nl.js +6 -6
  53. lang/pt.js +7 -7
  54. proxy.php +0 -102
  55. readme.txt +26 -3
  56. src/WordPress/Hooks.php +103 -3
  57. src/WordPress/Proxy.php +1 -1
  58. src/WordPress/WordPressClientAPI.php +14 -0
  59. src/WordPress/WordPressWrapper.php +8 -2
  60. stylesheets/api-docs.css +0 -0
  61. stylesheets/blog.css +0 -0
  62. stylesheets/cf.core.css +0 -0
  63. stylesheets/cf.portal.css +0 -0
  64. stylesheets/components.css.map +0 -0
  65. stylesheets/github.io.css +0 -0
  66. stylesheets/hacks.css +0 -0
  67. stylesheets/plugins.css +27 -0
  68. vendor/guzzle/guzzle/docs/Makefile +0 -153
  69. vendor/guzzle/guzzle/docs/_downloads/guzzle-schema-1.0.json +0 -176
  70. vendor/guzzle/guzzle/docs/_static/guzzle-icon.png +0 -0
  71. vendor/guzzle/guzzle/docs/_static/homepage.css +0 -122
  72. vendor/guzzle/guzzle/docs/_static/logo.png +0 -0
  73. vendor/guzzle/guzzle/docs/_static/prettify.css +0 -41
  74. vendor/guzzle/guzzle/docs/_static/prettify.js +0 -28
  75. vendor/guzzle/guzzle/docs/_templates/index.html +0 -106
  76. vendor/guzzle/guzzle/docs/_templates/leftbar.html +0 -0
  77. vendor/guzzle/guzzle/docs/_templates/nav_links.html +0 -5
  78. vendor/guzzle/guzzle/docs/batching/batching.rst +0 -183
  79. vendor/guzzle/guzzle/docs/conf.py +0 -94
  80. vendor/guzzle/guzzle/docs/docs.rst +0 -73
  81. vendor/guzzle/guzzle/docs/getting-started/faq.rst +0 -29
  82. vendor/guzzle/guzzle/docs/getting-started/installation.rst +0 -154
  83. vendor/guzzle/guzzle/docs/getting-started/overview.rst +0 -85
  84. vendor/guzzle/guzzle/docs/http-client/client.rst +0 -569
  85. vendor/guzzle/guzzle/docs/http-client/entity-bodies.rst +0 -151
  86. vendor/guzzle/guzzle/docs/http-client/http-redirects.rst +0 -99
  87. vendor/guzzle/guzzle/docs/http-client/request.rst +0 -667
  88. vendor/guzzle/guzzle/docs/http-client/response.rst +0 -141
  89. vendor/guzzle/guzzle/docs/http-client/uri-templates.rst +0 -52
  90. vendor/guzzle/guzzle/docs/index.rst +0 -5
  91. vendor/guzzle/guzzle/docs/iterators/guzzle-iterators.rst +0 -97
  92. vendor/guzzle/guzzle/docs/iterators/resource-iterators.rst +0 -149
  93. vendor/guzzle/guzzle/docs/plugins/async-plugin.rst +0 -18
  94. vendor/guzzle/guzzle/docs/plugins/backoff-plugin.rst +0 -22
  95. vendor/guzzle/guzzle/docs/plugins/cache-plugin.rst +0 -169
  96. vendor/guzzle/guzzle/docs/plugins/cookie-plugin.rst +0 -33
  97. vendor/guzzle/guzzle/docs/plugins/creating-plugins.rst +0 -93
  98. vendor/guzzle/guzzle/docs/plugins/curl-auth-plugin.rst +0 -32
  99. vendor/guzzle/guzzle/docs/plugins/history-plugin.rst +0 -24
  100. vendor/guzzle/guzzle/docs/plugins/log-plugin.rst +0 -69
  101. vendor/guzzle/guzzle/docs/plugins/md5-validator-plugin.rst +0 -29
  102. vendor/guzzle/guzzle/docs/plugins/mock-plugin.rst +0 -27
  103. vendor/guzzle/guzzle/docs/plugins/oauth-plugin.rst +0 -30
  104. vendor/guzzle/guzzle/docs/plugins/plugins-list.rst.inc +0 -9
  105. vendor/guzzle/guzzle/docs/plugins/plugins-overview.rst +0 -59
  106. vendor/guzzle/guzzle/docs/requirements.txt +0 -2
  107. vendor/guzzle/guzzle/docs/testing/unit-testing.rst +0 -201
  108. vendor/guzzle/guzzle/docs/webservice-client/guzzle-service-descriptions.rst +0 -619
  109. vendor/guzzle/guzzle/docs/webservice-client/using-the-service-builder.rst +0 -316
  110. vendor/guzzle/guzzle/docs/webservice-client/webservice-client.rst +0 -659
  111. vendor/guzzle/guzzle/tests/Guzzle/Tests/Batch/AbstractBatchDecoratorTest.php +0 -33
  112. vendor/guzzle/guzzle/tests/Guzzle/Tests/Batch/BatchBuilderTest.php +0 -86
  113. vendor/guzzle/guzzle/tests/Guzzle/Tests/Batch/BatchClosureDivisorTest.php +0 -36
  114. vendor/guzzle/guzzle/tests/Guzzle/Tests/Batch/BatchClosureTransferTest.php +0 -52
  115. vendor/guzzle/guzzle/tests/Guzzle/Tests/Batch/BatchCommandTransferTest.php +0 -83
  116. vendor/guzzle/guzzle/tests/Guzzle/Tests/Batch/BatchRequestTransferTest.php +0 -80
  117. vendor/guzzle/guzzle/tests/Guzzle/Tests/Batch/BatchSizeDivisorTest.php +0 -24
  118. vendor/guzzle/guzzle/tests/Guzzle/Tests/Batch/BatchTest.php +0 -91
  119. vendor/guzzle/guzzle/tests/Guzzle/Tests/Batch/ExceptionBufferingBatchTest.php +0 -45
  120. vendor/guzzle/guzzle/tests/Guzzle/Tests/Batch/FlushingBatchTest.php +0 -40
  121. vendor/guzzle/guzzle/tests/Guzzle/Tests/Batch/HistoryBatchTest.php +0 -26
  122. vendor/guzzle/guzzle/tests/Guzzle/Tests/Batch/NotifyingBatchTest.php +0 -45
  123. vendor/guzzle/guzzle/tests/Guzzle/Tests/Cache/CacheAdapterFactoryTest.php +0 -64
  124. vendor/guzzle/guzzle/tests/Guzzle/Tests/Cache/CacheAdapterTest.php +0 -68
  125. vendor/guzzle/guzzle/tests/Guzzle/Tests/Cache/ClosureCacheAdapterTest.php +0 -94
  126. vendor/guzzle/guzzle/tests/Guzzle/Tests/Cache/NullCacheAdapterTest.php +0 -20
  127. vendor/guzzle/guzzle/tests/Guzzle/Tests/Cache/Zf2CacheAdapterTest.php +0 -58
  128. vendor/guzzle/guzzle/tests/Guzzle/Tests/Common/AbstractHasDispatcherTest.php +0 -63
  129. vendor/guzzle/guzzle/tests/Guzzle/Tests/Common/CollectionTest.php +0 -529
  130. vendor/guzzle/guzzle/tests/Guzzle/Tests/Common/EventTest.php +0 -62
  131. vendor/guzzle/guzzle/tests/Guzzle/Tests/Common/Exception/BatchTransferExceptionTest.php +0 -21
  132. vendor/guzzle/guzzle/tests/Guzzle/Tests/Common/Exception/ExceptionCollectionTest.php +0 -66
  133. vendor/guzzle/guzzle/tests/Guzzle/Tests/Common/VersionTest.php +0 -27
  134. vendor/guzzle/guzzle/tests/Guzzle/Tests/GuzzleTestCase.php +0 -235
  135. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/AbstractEntityBodyDecoratorTest.php +0 -34
  136. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/CachingEntityBodyTest.php +0 -249
  137. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/ClientTest.php +0 -601
  138. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/Curl/CurlHandleTest.php +0 -947
  139. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/Curl/CurlMultiProxyTest.php +0 -110
  140. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/Curl/CurlMultiTest.php +0 -455
  141. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/Curl/CurlVersionTest.php +0 -39
  142. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/Curl/RequestMediatorTest.php +0 -67
  143. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/EntityBodyTest.php +0 -182
  144. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/Exception/CurlExceptionTest.php +0 -27
  145. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/Exception/ExceptionTest.php +0 -66
  146. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/Exception/MultiTransferExceptionTest.php +0 -51
  147. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/IoEmittingEntityBodyTest.php +0 -47
  148. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/Message/AbstractMessageTest.php +0 -136
  149. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/Message/EntityEnclosingRequestTest.php +0 -434
  150. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/Message/Header/HeaderFactoryTest.php +0 -29
  151. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/Message/Header/LinkTest.php +0 -63
  152. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/Message/HeaderComparison.php +0 -135
  153. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/Message/HeaderComparisonTest.php +0 -115
  154. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/Message/HeaderTest.php +0 -162
  155. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/Message/PostFileTest.php +0 -88
  156. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/Message/RequestFactoryTest.php +0 -616
  157. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/Message/RequestTest.php +0 -639
  158. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/Message/ResponseTest.php +0 -677
  159. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/MimetypesTest.php +0 -31
  160. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/QueryAggregator/CommaAggregatorTest.php +0 -30
  161. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/QueryAggregator/DuplicateAggregatorTest.php +0 -30
  162. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/QueryAggregator/PhpAggregatorTest.php +0 -32
  163. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/QueryStringTest.php +0 -233
  164. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/ReadLimitEntityBodyTest.php +0 -81
  165. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/RedirectPluginTest.php +0 -277
  166. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/Server.php +0 -191
  167. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/StaticClientTest.php +0 -67
  168. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/UrlTest.php +0 -303
  169. vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/server.js +0 -146
  170. vendor/guzzle/guzzle/tests/Guzzle/Tests/Inflection/InflectorTest.php +0 -37
  171. vendor/guzzle/guzzle/tests/Guzzle/Tests/Inflection/MemoizingInflectorTest.php +0 -46
  172. vendor/guzzle/guzzle/tests/Guzzle/Tests/Inflection/PreComputedInflectorTest.php +0 -45
  173. vendor/guzzle/guzzle/tests/Guzzle/Tests/Iterator/AppendIteratorTest.php +0 -29
  174. vendor/guzzle/guzzle/tests/Guzzle/Tests/Iterator/ChunkedIteratorTest.php +0 -52
  175. vendor/guzzle/guzzle/tests/Guzzle/Tests/Iterator/FilterIteratorTest.php +0 -28
  176. vendor/guzzle/guzzle/tests/Guzzle/Tests/Iterator/MapIteratorTest.php +0 -28
  177. vendor/guzzle/guzzle/tests/Guzzle/Tests/Iterator/MethodProxyIteratorTest.php +0 -28
  178. vendor/guzzle/guzzle/tests/Guzzle/Tests/Log/ArrayLogAdapterTest.php +0 -23
  179. vendor/guzzle/guzzle/tests/Guzzle/Tests/Log/ClosureLogAdapterTest.php +0 -30
  180. vendor/guzzle/guzzle/tests/Guzzle/Tests/Log/MessageFormatterTest.php +0 -143
  181. vendor/guzzle/guzzle/tests/Guzzle/Tests/Log/PsrLogAdapterTest.php +0 -25
  182. vendor/guzzle/guzzle/tests/Guzzle/Tests/Log/Zf2LogAdapterTest.php +0 -51
  183. vendor/guzzle/guzzle/tests/Guzzle/Tests/Mock/CustomResponseModel.php +0 -21
  184. vendor/guzzle/guzzle/tests/Guzzle/Tests/Mock/ErrorResponseMock.php +0 -25
  185. vendor/guzzle/guzzle/tests/Guzzle/Tests/Mock/ExceptionMock.php +0 -11
  186. vendor/guzzle/guzzle/tests/Guzzle/Tests/Mock/MockMulti.php +0 -11
  187. vendor/guzzle/guzzle/tests/Guzzle/Tests/Mock/MockObserver.php +0 -65
  188. vendor/guzzle/guzzle/tests/Guzzle/Tests/Mock/MockSubject.php +0 -7
  189. vendor/guzzle/guzzle/tests/Guzzle/Tests/Parser/Cookie/CookieParserProvider.php +0 -381
  190. vendor/guzzle/guzzle/tests/Guzzle/Tests/Parser/Cookie/CookieParserTest.php +0 -22
  191. vendor/guzzle/guzzle/tests/Guzzle/Tests/Parser/Message/MessageParserProvider.php +0 -225
  192. vendor/guzzle/guzzle/tests/Guzzle/Tests/Parser/Message/MessageParserTest.php +0 -58
  193. vendor/guzzle/guzzle/tests/Guzzle/Tests/Parser/Message/PeclHttpMessageParserTest.php +0 -36
  194. vendor/guzzle/guzzle/tests/Guzzle/Tests/Parser/ParserRegistryTest.php +0 -33
  195. vendor/guzzle/guzzle/tests/Guzzle/Tests/Parser/UriTemplate/AbstractUriTemplateTest.php +0 -113
  196. vendor/guzzle/guzzle/tests/Guzzle/Tests/Parser/UriTemplate/PeclUriTemplateTest.php +0 -27
  197. vendor/guzzle/guzzle/tests/Guzzle/Tests/Parser/UriTemplate/UriTemplateTest.php +0 -106
  198. vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Async/AsyncPluginTest.php +0 -93
  199. vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/AbstractBackoffStrategyTest.php +0 -86
  200. vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/BackoffLoggerTest.php +0 -110
  201. vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/BackoffPluginTest.php +0 -297
  202. vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/CallbackBackoffStrategyTest.php +0 -31
  203. vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/ConstantBackoffStrategyTest.php +0 -20
  204. vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/CurlBackoffStrategyTest.php +0 -36
  205. vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/ExponentialBackoffStrategyTest.php +0 -23
  206. vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/HttpBackoffStrategyTest.php +0 -47
  207. vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/LinearBackoffStrategyTest.php +0 -21
  208. vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/ReasonPhraseBackoffStrategyTest.php +0 -32
  209. vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/TruncatedBackoffStrategyTest.php +0 -30
  210. vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cache/CachePluginTest.php +0 -441
  211. vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cache/CallbackCanCacheStrategyTest.php +0 -72
  212. vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cache/DefaultCacheStorageTest.php +0 -193
  213. vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cache/DefaultCanCacheStrategyTest.php +0 -40
  214. vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cache/DefaultRevalidationTest.php +0 -248
  215. vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cache/DenyRevalidationTest.php +0 -19
  216. vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cache/SkipRevalidationTest.php +0 -19
  217. vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cookie/CookieJar/ArrayCookieJarTest.php +0 -385
  218. vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cookie/CookieJar/FileCookieJarTest.php +0 -63
  219. vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cookie/CookiePluginTest.php +0 -134
  220. vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cookie/CookieTest.php +0 -223
  221. vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/CurlAuth/CurlAuthPluginTest.php +0 -39
  222. vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/ErrorResponse/ErrorResponsePluginTest.php +0 -137
  223. vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/History/HistoryPluginTest.php +0 -140
  224. vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Log/LogPluginTest.php +0 -95
  225. vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Md5/CommandContentMd5PluginTest.php +0 -97
  226. vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Md5/Md5ValidatorPluginTest.php +0 -120
  227. vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Mock/MockPluginTest.php +0 -199
  228. vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Oauth/OauthPluginTest.php +0 -345
  229. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/AbstractConfigLoaderTest.php +0 -149
  230. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Builder/ServiceBuilderLoaderTest.php +0 -177
  231. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Builder/ServiceBuilderTest.php +0 -317
  232. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/CachingConfigLoaderTest.php +0 -43
  233. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/ClientTest.php +0 -320
  234. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/AbstractCommandTest.php +0 -16
  235. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/ClosureCommandTest.php +0 -54
  236. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/CommandTest.php +0 -445
  237. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/DefaultRequestSerializerTest.php +0 -122
  238. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/DefaultResponseParserTest.php +0 -59
  239. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/Factory/AliasFactoryTest.php +0 -76
  240. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/Factory/CompositeFactoryTest.php +0 -124
  241. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/Factory/ConcreteClassFactoryTest.php +0 -49
  242. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/Factory/MapFactoryTest.php +0 -37
  243. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/Factory/ServiceDescriptionFactoryTest.php +0 -68
  244. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Request/AbstractVisitorTestCase.php +0 -110
  245. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Request/BodyVisitorTest.php +0 -63
  246. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Request/HeaderVisitorTest.php +0 -48
  247. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Request/JsonVisitorTest.php +0 -60
  248. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Request/PostFieldVisitorTest.php +0 -33
  249. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Request/PostFileVisitorTest.php +0 -54
  250. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Request/QueryVisitorTest.php +0 -48
  251. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Request/ResponseBodyVisitorTest.php +0 -20
  252. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Request/XmlVisitorTest.php +0 -558
  253. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Response/AbstractResponseVisitorTest.php +0 -29
  254. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Response/BodyVisitorTest.php +0 -21
  255. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Response/HeaderVisitorTest.php +0 -98
  256. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Response/JsonVisitorTest.php +0 -157
  257. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Response/ReasonPhraseVisitorTest.php +0 -21
  258. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Response/StatusCodeVisitorTest.php +0 -21
  259. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Response/XmlVisitorTest.php +0 -431
  260. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/VisitorFlyweightTest.php +0 -53
  261. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/OperationCommandTest.php +0 -102
  262. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/OperationResponseParserTest.php +0 -335
  263. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Description/OperationTest.php +0 -308
  264. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Description/ParameterTest.php +0 -411
  265. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Description/SchemaFormatterTest.php +0 -61
  266. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Description/SchemaValidatorTest.php +0 -326
  267. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Description/ServiceDescriptionLoaderTest.php +0 -177
  268. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Description/ServiceDescriptionTest.php +0 -240
  269. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Exception/CommandTransferExceptionTest.php +0 -66
  270. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Exception/InconsistentClientTransferExceptionTest.php +0 -15
  271. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Exception/ValidationExceptionTest.php +0 -17
  272. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Mock/Command/IterableCommand.php +0 -31
  273. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Mock/Command/MockCommand.php +0 -32
  274. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Mock/Command/OtherCommand.php +0 -30
  275. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Mock/Command/Sub/Sub.php +0 -7
  276. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Mock/MockClient.php +0 -36
  277. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Mock/Model/MockCommandIterator.php +0 -42
  278. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Resource/CompositeResourceIteratorFactoryTest.php +0 -37
  279. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Resource/MapResourceIteratorFactoryTest.php +0 -40
  280. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Resource/ModelTest.php +0 -65
  281. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Resource/ResourceIteratorClassFactoryTest.php +0 -41
  282. vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Resource/ResourceIteratorTest.php +0 -184
  283. vendor/guzzle/guzzle/tests/Guzzle/Tests/Stream/PhpStreamRequestFactoryTest.php +0 -172
  284. vendor/guzzle/guzzle/tests/Guzzle/Tests/Stream/StreamTest.php +0 -189
  285. vendor/guzzle/guzzle/tests/Guzzle/Tests/TestData/FileBody.txt +0 -0
  286. vendor/guzzle/guzzle/tests/Guzzle/Tests/TestData/description/bar.json +0 -3
  287. vendor/guzzle/guzzle/tests/Guzzle/Tests/TestData/description/baz.json +0 -3
  288. vendor/guzzle/guzzle/tests/Guzzle/Tests/TestData/description/foo.json +0 -8
  289. vendor/guzzle/guzzle/tests/Guzzle/Tests/TestData/description/recursive.json +0 -3
  290. vendor/guzzle/guzzle/tests/Guzzle/Tests/TestData/mock_response +0 -3
  291. vendor/guzzle/guzzle/tests/Guzzle/Tests/TestData/services/json1.json +0 -18
  292. vendor/guzzle/guzzle/tests/Guzzle/Tests/TestData/services/json2.json +0 -11
  293. vendor/guzzle/guzzle/tests/Guzzle/Tests/TestData/services/services.json +0 -71
  294. vendor/guzzle/guzzle/tests/Guzzle/Tests/TestData/test_service.json +0 -40
  295. vendor/guzzle/guzzle/tests/Guzzle/Tests/TestData/test_service2.json +0 -7
  296. vendor/guzzle/guzzle/tests/Guzzle/Tests/TestData/test_service_3.json +0 -40
  297. vendor/guzzle/guzzle/tests/bootstrap.php +0 -10
  298. vendor/phpdocumentor/reflection-common/LICENSE +0 -22
  299. vendor/phpdocumentor/reflection-common/README.md +0 -1
  300. vendor/phpdocumentor/reflection-common/composer.json +0 -29
  301. vendor/phpdocumentor/reflection-common/composer.lock +0 -974
  302. vendor/phpdocumentor/reflection-common/phpunit.xml.dist +0 -26
  303. vendor/phpdocumentor/reflection-common/src/Element.php +0 -32
  304. vendor/phpdocumentor/reflection-common/src/File.php +0 -40
  305. vendor/phpdocumentor/reflection-common/src/Fqsen.php +0 -78
  306. vendor/phpdocumentor/reflection-common/src/Location.php +0 -57
  307. vendor/phpdocumentor/reflection-common/src/Project.php +0 -25
  308. vendor/phpdocumentor/reflection-common/src/ProjectFactory.php +0 -27
  309. vendor/phpdocumentor/reflection-common/tests/common/bootstrap.php +0 -10
  310. vendor/phpdocumentor/reflection-common/tests/unit/FqsenTest.php +0 -88
  311. vendor/phpdocumentor/reflection-docblock/.gitignore +0 -2
  312. vendor/phpdocumentor/reflection-docblock/.scrutinizer.yml +0 -32
  313. vendor/phpdocumentor/reflection-docblock/.travis.yml +0 -36
  314. vendor/phpdocumentor/reflection-docblock/LICENSE +0 -21
  315. vendor/phpdocumentor/reflection-docblock/README.md +0 -69
  316. vendor/phpdocumentor/reflection-docblock/composer.json +0 -28
  317. vendor/phpdocumentor/reflection-docblock/composer.lock +0 -1120
  318. vendor/phpdocumentor/reflection-docblock/examples/01-interpreting-a-simple-docblock.php +0 -27
  319. vendor/phpdocumentor/reflection-docblock/examples/02-interpreting-tags.php +0 -24
  320. vendor/phpdocumentor/reflection-docblock/examples/03-reconstituting-a-docblock.php +0 -27
  321. vendor/phpdocumentor/reflection-docblock/examples/04-adding-your-own-tag.php +0 -135
  322. vendor/phpdocumentor/reflection-docblock/examples/playing-with-descriptions/02-escaping.php +0 -47
  323. vendor/phpdocumentor/reflection-docblock/phpmd.xml.dist +0 -23
  324. vendor/phpdocumentor/reflection-docblock/phpunit.xml.dist +0 -33
  325. vendor/phpdocumentor/reflection-docblock/src/DocBlock.php +0 -220
  326. vendor/phpdocumentor/reflection-docblock/src/DocBlock/Description.php +0 -103
  327. vendor/phpdocumentor/reflection-docblock/src/DocBlock/DescriptionFactory.php +0 -191
  328. vendor/phpdocumentor/reflection-docblock/src/DocBlock/ExampleFinder.php +0 -170
  329. vendor/phpdocumentor/reflection-docblock/src/DocBlock/Serializer.php +0 -143
  330. vendor/phpdocumentor/reflection-docblock/src/DocBlock/StandardTagFactory.php +0 -314
  331. vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tag.php +0 -26
  332. vendor/phpdocumentor/reflection-docblock/src/DocBlock/TagFactory.php +0 -93
  333. vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Author.php +0 -100
  334. vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/BaseTag.php +0 -52
  335. vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Covers.php +0 -84
  336. vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Deprecated.php +0 -94
  337. vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Example.php +0 -158
  338. vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Factory/StaticMethod.php +0 -18
  339. vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Factory/Strategy.php +0 -18
  340. vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Formatter.php +0 -27
  341. vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Formatter/PassthroughFormatter.php +0 -31
  342. vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Generic.php +0 -91
  343. vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Link.php +0 -77
  344. vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Method.php +0 -220
  345. vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Param.php +0 -141
  346. vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Property.php +0 -118
  347. vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/PropertyRead.php +0 -118
  348. vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/PropertyWrite.php +0 -118
  349. vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Return_.php +0 -73
  350. vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/See.php +0 -81
  351. vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Since.php +0 -94
  352. vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Source.php +0 -96
  353. vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Throws.php +0 -72
  354. vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Uses.php +0 -83
  355. vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Var_.php +0 -118
  356. vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Version.php +0 -94
  357. vendor/phpdocumentor/reflection-docblock/src/DocBlockFactory.php +0 -277
  358. vendor/phpdocumentor/reflection-docblock/src/DocBlockFactoryInterface.php +0 -23
  359. vendor/phpdocumentor/reflection-docblock/tests/integration/InterpretingDocBlocksTest.php +0 -97
  360. vendor/phpdocumentor/reflection-docblock/tests/integration/ReconstitutingADocBlockTest.php +0 -35
  361. vendor/phpdocumentor/reflection-docblock/tests/integration/UsingTagsTest.php +0 -39
  362. vendor/phpdocumentor/reflection-docblock/tests/unit/DocBlock/DescriptionFactoryTest.php +0 -174
  363. vendor/phpdocumentor/reflection-docblock/tests/unit/DocBlock/DescriptionTest.php +0 -75
  364. vendor/phpdocumentor/reflection-docblock/tests/unit/DocBlock/SerializerTest.php +0 -201
  365. vendor/phpdocumentor/reflection-docblock/tests/unit/DocBlock/StandardTagFactoryTest.php +0 -361
  366. vendor/phpdocumentor/reflection-docblock/tests/unit/DocBlock/Tags/AuthorTest.php +0 -148
  367. vendor/phpdocumentor/reflection-docblock/tests/unit/DocBlock/Tags/CoversTest.php +0 -155
  368. vendor/phpdocumentor/reflection-docblock/tests/unit/DocBlock/Tags/DeprecatedTest.php +0 -166
  369. vendor/phpdocumentor/reflection-docblock/tests/unit/DocBlock/Tags/Formatter/PassthroughFormatterTest.php +0 -41
  370. vendor/phpdocumentor/reflection-docblock/tests/unit/DocBlock/Tags/GenericTest.php +0 -146
  371. vendor/phpdocumentor/reflection-docblock/tests/unit/DocBlock/Tags/LinkTest.php +0 -158
  372. vendor/phpdocumentor/reflection-docblock/tests/unit/DocBlock/Tags/MethodTest.php +0 -410
  373. vendor/phpdocumentor/reflection-docblock/tests/unit/DocBlock/Tags/ParamTest.php +0 -228
  374. vendor/phpdocumentor/reflection-docblock/tests/unit/DocBlock/Tags/PropertyReadTest.php +0 -201
  375. vendor/phpdocumentor/reflection-docblock/tests/unit/DocBlock/Tags/PropertyTest.php +0 -200
  376. vendor/phpdocumentor/reflection-docblock/tests/unit/DocBlock/Tags/PropertyWriteTest.php +0 -201
  377. vendor/phpdocumentor/reflection-docblock/tests/unit/DocBlock/Tags/ReturnTest.php +0 -170
  378. vendor/phpdocumentor/reflection-docblock/tests/unit/DocBlock/Tags/SeeTest.php +0 -173
  379. vendor/phpdocumentor/reflection-docblock/tests/unit/DocBlock/Tags/SinceTest.php +0 -166
  380. vendor/phpdocumentor/reflection-docblock/tests/unit/DocBlock/Tags/SourceTest.php +0 -199
  381. vendor/phpdocumentor/reflection-docblock/tests/unit/DocBlock/Tags/ThrowsTest.php +0 -170
  382. vendor/phpdocumentor/reflection-docblock/tests/unit/DocBlock/Tags/UsesTest.php +0 -174
  383. vendor/phpdocumentor/reflection-docblock/tests/unit/DocBlock/Tags/VarTest.php +0 -200
  384. vendor/phpdocumentor/reflection-docblock/tests/unit/DocBlock/Tags/VersionTest.php +0 -166
  385. vendor/phpdocumentor/reflection-docblock/tests/unit/DocBlockFactoryTest.php +0 -290
  386. vendor/phpdocumentor/reflection-docblock/tests/unit/DocBlockTest.php +0 -252
  387. vendor/phpdocumentor/type-resolver/.scrutinizer.yml +0 -31
  388. vendor/phpdocumentor/type-resolver/.travis.yml +0 -34
  389. vendor/phpdocumentor/type-resolver/LICENSE +0 -21
  390. vendor/phpdocumentor/type-resolver/README.md +0 -169
  391. vendor/phpdocumentor/type-resolver/composer.json +0 -27
  392. vendor/phpdocumentor/type-resolver/examples/01-resolving-simple-types.php +0 -13
  393. vendor/phpdocumentor/type-resolver/examples/02-resolving-classes.php +0 -12
  394. vendor/phpdocumentor/type-resolver/examples/03-resolving-all-elements.php +0 -17
  395. vendor/phpdocumentor/type-resolver/examples/04-discovering-the-context-using-class-reflection.php +0 -30
  396. vendor/phpdocumentor/type-resolver/examples/05-discovering-the-context-using-method-reflection.php +0 -30
  397. vendor/phpdocumentor/type-resolver/examples/06-discovering-the-context-using-file-contents.php +0 -22
  398. vendor/phpdocumentor/type-resolver/examples/Classy.php +0 -16
  399. vendor/phpdocumentor/type-resolver/phpmd.xml.dist +0 -23
  400. vendor/phpdocumentor/type-resolver/phpunit.xml.dist +0 -31
  401. vendor/phpdocumentor/type-resolver/src/FqsenResolver.php +0 -76
  402. vendor/phpdocumentor/type-resolver/src/Type.php +0 -18
  403. vendor/phpdocumentor/type-resolver/src/TypeResolver.php +0 -266
  404. vendor/phpdocumentor/type-resolver/src/Types/Array_.php +0 -87
  405. vendor/phpdocumentor/type-resolver/src/Types/Boolean.php +0 -31
  406. vendor/phpdocumentor/type-resolver/src/Types/Callable_.php +0 -31
  407. vendor/phpdocumentor/type-resolver/src/Types/Compound.php +0 -82
  408. vendor/phpdocumentor/type-resolver/src/Types/Context.php +0 -84
  409. vendor/phpdocumentor/type-resolver/src/Types/ContextFactory.php +0 -210
  410. vendor/phpdocumentor/type-resolver/src/Types/Float_.php +0 -31
  411. vendor/phpdocumentor/type-resolver/src/Types/Integer.php +0 -28
  412. vendor/phpdocumentor/type-resolver/src/Types/Mixed.php +0 -31
  413. vendor/phpdocumentor/type-resolver/src/Types/Null_.php +0 -31
  414. vendor/phpdocumentor/type-resolver/src/Types/Object_.php +0 -70
  415. vendor/phpdocumentor/type-resolver/src/Types/Resource.php +0 -31
  416. vendor/phpdocumentor/type-resolver/src/Types/Scalar.php +0 -31
  417. vendor/phpdocumentor/type-resolver/src/Types/Self_.php +0 -33
  418. vendor/phpdocumentor/type-resolver/src/Types/Static_.php +0 -38
  419. vendor/phpdocumentor/type-resolver/src/Types/String_.php +0 -31
  420. vendor/phpdocumentor/type-resolver/src/Types/This.php +0 -34
  421. vendor/phpdocumentor/type-resolver/src/Types/Void_.php +0 -34
  422. vendor/phpdocumentor/type-resolver/tests/unit/TypeResolverTest.php +0 -395
  423. vendor/phpdocumentor/type-resolver/tests/unit/Types/ContextFactoryTest.php +0 -188
  424. vendor/phpdocumentor/type-resolver/tests/unit/Types/ContextTest.php +0 -61
  425. vendor/sebastian/global-state/.gitignore +0 -6
  426. vendor/sebastian/global-state/.travis.yml +0 -20
  427. vendor/sebastian/global-state/LICENSE +0 -33
  428. vendor/sebastian/global-state/README.md +0 -15
  429. vendor/sebastian/global-state/build.xml +0 -33
  430. vendor/sebastian/global-state/composer.json +0 -37
  431. vendor/sebastian/global-state/phpunit.xml.dist +0 -21
  432. vendor/sebastian/global-state/src/Blacklist.php +0 -149
  433. vendor/sebastian/global-state/src/CodeExporter.php +0 -93
  434. vendor/sebastian/global-state/src/Exception.php +0 -17
  435. vendor/sebastian/global-state/src/Restorer.php +0 -141
  436. vendor/sebastian/global-state/src/RuntimeException.php +0 -17
  437. vendor/sebastian/global-state/src/Snapshot.php +0 -423
  438. vendor/sebastian/global-state/tests/BlacklistTest.php +0 -113
  439. vendor/sebastian/global-state/tests/SnapshotTest.php +0 -119
  440. vendor/sebastian/global-state/tests/_fixture/BlacklistedChildClass.php +0 -17
  441. vendor/sebastian/global-state/tests/_fixture/BlacklistedClass.php +0 -18
  442. vendor/sebastian/global-state/tests/_fixture/BlacklistedImplementor.php +0 -18
  443. vendor/sebastian/global-state/tests/_fixture/BlacklistedInterface.php +0 -17
  444. vendor/sebastian/global-state/tests/_fixture/SnapshotClass.php +0 -37
  445. vendor/sebastian/global-state/tests/_fixture/SnapshotDomDocument.php +0 -19
  446. vendor/sebastian/global-state/tests/_fixture/SnapshotFunctions.php +0 -15
  447. vendor/sebastian/global-state/tests/_fixture/SnapshotTrait.php +0 -17
  448. vendor/webmozart/assert/.composer-auth.json +0 -7
  449. vendor/webmozart/assert/.styleci.yml +0 -7
  450. vendor/webmozart/assert/.travis.yml +0 -35
  451. vendor/webmozart/assert/CHANGELOG.md +0 -28
  452. vendor/webmozart/assert/LICENSE +0 -20
  453. vendor/webmozart/assert/README.md +0 -235
  454. vendor/webmozart/assert/appveyor.yml +0 -36
  455. vendor/webmozart/assert/composer.json +0 -34
  456. vendor/webmozart/assert/phpunit.xml.dist +0 -16
  457. vendor/webmozart/assert/src/Assert.php +0 -903
  458. vendor/webmozart/assert/tests/AssertTest.php +0 -422
.gitignore ADDED
@@ -0,0 +1 @@
1
+ *.DS_Store
LICENSE.md CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2016, CloudFlare. All rights reserved.
2
3
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4
1
+ Copyright (c) 2016, Cloudflare. All rights reserved.
2
3
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4
cloudflare.loader.php CHANGED
@@ -1,9 +1,14 @@
1
<?php
2
3
- require_once 'vendor/autoload.php';
4
5
use CloudFlare\IpRewrite;
6
7
// Rewrites Cloudflare IP
8
$ipRewrite = new IpRewrite();
9
@@ -18,10 +23,14 @@ if ($is_cf) {
18
// Enable HTTP2 Server Push
19
// add_action('init', array('\CF\Hooks\HTTP2ServerPush', 'init'));
20
21
- if (is_admin()) {
22
- // Initiliaze Hooks class which contains WordPress hook functions
23
- $cloudflareHooks = new \CF\WordPress\Hooks();
24
25
//Register proxy AJAX endpoint
26
add_action('wp_ajax_cloudflare_proxy', array($cloudflareHooks, 'initProxy'));
27
@@ -36,8 +45,19 @@ if (is_admin()) {
36
37
// Load Deactivation Script
38
register_deactivation_hook(CLOUDFLARE_PLUGIN_DIR.'cloudflare.php', array($cloudflareHooks, 'deactivate'));
39
40
- // Load Automatic Cache Purge
41
- add_action('switch_theme', array($cloudflareHooks, 'purgeCache'));
42
- add_action('customize_save_after', array($cloudflareHooks, 'purgeCache'));
43
}
1
<?php
2
3
+ require_once __DIR__.'/vendor/autoload.php';
4
5
use CloudFlare\IpRewrite;
6
7
+ // Exit if accessed directly
8
+ if (!defined('ABSPATH')) {
9
+ exit;
10
+ }
11
+
12
// Rewrites Cloudflare IP
13
$ipRewrite = new IpRewrite();
14
23
// Enable HTTP2 Server Push
24
// add_action('init', array('\CF\Hooks\HTTP2ServerPush', 'init'));
25
26
+ // Don't allow "logged in" options to display to anonymous users
27
+ add_filter('show_admin_bar', '__return_false');
28
+ add_filter('edit_post_link', '__return_null');
29
+
30
+ // Initiliaze Hooks class which contains WordPress hook functions
31
+ $cloudflareHooks = new \CF\WordPress\Hooks();
32
33
+ if (is_admin()) {
34
//Register proxy AJAX endpoint
35
add_action('wp_ajax_cloudflare_proxy', array($cloudflareHooks, 'initProxy'));
36
45
46
// Load Deactivation Script
47
register_deactivation_hook(CLOUDFLARE_PLUGIN_DIR.'cloudflare.php', array($cloudflareHooks, 'deactivate'));
48
+ }
49
+
50
+ // Load Automatic Cache Purge
51
+ add_action('switch_theme', array($cloudflareHooks, 'purgeCacheEverything'));
52
+ add_action('customize_save_after', array($cloudflareHooks, 'purgeCacheEverything'));
53
+
54
+ $cloudflarePurgeActions = array(
55
+ 'autoptimize_action_cachepurged', // Compat with https://wordpress.org/plugins/autoptimize
56
+ 'deleted_post', // Delete a post
57
+ 'edit_post', // Edit a post - includes leaving comments
58
+ 'delete_attachment', // Delete an attachment - includes re-uploading
59
+ );
60
61
+ foreach ($cloudflarePurgeActions as $action) {
62
+ add_action($action, array($cloudflareHooks, 'purgeCacheByRevelantURLs'), 10, 2);
63
}
cloudflare.php CHANGED
@@ -2,8 +2,8 @@
2
/*
3
Plugin Name: Cloudflare
4
Plugin URI: https://blog.cloudflare.com/new-wordpress-plugin/
5
- Description: Cloudflare integrates your blog with the Cloudflare platform.
6
- Version: 3.0.6
7
Author: John Wineman, Furkan Yilmaz, Junade Ali (Cloudflare Team)
8
License: BSD-3-Clause
9
*/
2
/*
3
Plugin Name: Cloudflare
4
Plugin URI: https://blog.cloudflare.com/new-wordpress-plugin/
5
+ Description: Cloudflare speeds up and protects your WordPress site.
6
+ Version: 3.1.0
7
Author: John Wineman, Furkan Yilmaz, Junade Ali (Cloudflare Team)
8
License: BSD-3-Clause
9
*/
compiled.js CHANGED
@@ -1,36 +1,34 @@
1
- !function(){var e=void 0;!function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[a]={exports:{}};t[a][0].call(l.exports,function(e){var n=t[a][1][e];return o(n?n:e)},l,l.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){},{}],2:[function(e,t,n){function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(p===setTimeout)return setTimeout(e,0);if((p===r||!p)&&setTimeout)return p=setTimeout,setTimeout(e,0);try{return p(e,0)}catch(t){try{return p.call(null,e,0)}catch(t){return p.call(this,e,0)}}}function a(e){if(f===clearTimeout)return clearTimeout(e);if((f===o||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function s(){m&&h&&(m=!1,h.length?g=h.concat(g):y=-1,g.length&&u())}function u(){if(!m){var e=i(s);m=!0;for(var t=g.length;t;){for(h=g,g=[];++y<t;)h&&h[y].run();y=-1,t=g.length}h=null,m=!1,a(e)}}function c(e,t){this.fun=e,this.array=t}function l(){}var p,f,d=t.exports={};!function(){try{p="function"==typeof setTimeout?setTimeout:r}catch(e){p=r}try{f="function"==typeof clearTimeout?clearTimeout:o}catch(e){f=o}}();var h,g=[],m=!1,y=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];g.push(new c(e,t)),1!==g.length||m||i(u)},c.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=l,d.addListener=l,d.once=l,d.off=l,d.removeListener=l,d.removeAllListeners=l,d.emit=l,d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},{}],3:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.disabled,n=e.loading,r=this.props.submit?"submit":"button",o="cf-btn cf-btn--"+this.props.type;n&&(o+=" cf-btn--loading");var i=(void 0!==t?t:n)||!1;return a.createElement("button",{type:r,className:o,disabled:i,onClick:this.props.onClick},this.props.children)},t}(a.Component);u.propTypes={onClick:s.func.isRequired,submit:s.bool,type:s.oneOf(["default","primary","success","warning","danger"]).isRequired,disabled:s.bool,loading:s.bool},u.defaultProps={type:"default",submit:!1},t.exports=u},{react:509}],4:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-btn__group"},this.props.children)},t}(a.Component);t.exports=s},{react:509}],5:[function(e,t,n){"use strict";n.Button=e("./Button"),n.ButtonGroup=e("./ButtonGroup")},{"./Button":3,"./ButtonGroup":4}],6:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("section",{className:"cf-card"},this.props.children)},t}(a.Component);t.exports=s},{react:509}],7:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-card__content"},a.createElement("h3",{className:"cf-card__title"},this.props.title),this.props.children,this.props.footerMessage?a.createElement("div",{className:"cf-card__footer_message"},this.props.footerMessage):null)},t}(a.Component);u.propTypes={title:s.any.isRequired,footerMessage:s.string},t.exports=u},{react:509}],8:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-card__control"},this.props.children)},t}(a.Component);t.exports=s},{react:509}],9:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=e("./CardSection"),c=e("./CardToolbar"),l=e("./CardToolbarLink"),p=e("./CardPropTypes"),f=0,d=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=i=o(this,e.call.apply(e,[this].concat(u))),i._cardId=f++,a=n,o(i,a)}return i(t,e),t.prototype.render=function(){var e=this,t=[],n=[];this.props.drawers.forEach(function(r){var o=r.id===e.props.active,i="card-"+e._cardId+"-drawer-"+r.id;t.push(a.createElement(l,{key:r.id,id:i,isActive:o,onClick:e.props.onClick.bind(null,r.id)},r.name));var s="cf-card__drawer";o&&(s+=" cf-card__drawer--active"),n.push(a.createElement("div",{key:r.id,role:"tabpanel","aria-labelledby":i,"aria-hidden":o?"false":"true",className:s},o&&r.content))});var r="cf-card__drawers_container";return this.props.active&&(r+=" cf-card__drawers_container--open"),a.createElement(u,null,a.createElement(c,{controls:this.props.controls,links:t}),a.createElement("div",{className:r},n))},t}(a.Component);d.propTypes={onClick:s.func.isRequired,active:s.string,drawers:p.cardDrawers.isRequired,controls:s.any},t.exports=d},{"./CardPropTypes":12,"./CardSection":13,"./CardToolbar":14,"./CardToolbarLink":15,react:509}],10:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-card__loading_text"})},t}(a.Component);t.exports=s},{react:509}],11:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-card__messages"},this.props.messages.map(function(e,t){return a.createElement("div",{key:t,role:"alert",className:"cf-card__message cf-card__message--"+e.type},e.content)}))},t}(a.Component);u.propTypes={messages:s.arrayOf(s.shape({type:s.oneOf(["info","success","error","warning"]),content:s.any.isRequired})).isRequired},t.exports=u},{react:509}],12:[function(e,t,n){"use strict";var r=e("react"),o=r.PropTypes,i=o.shape({id:o.string.isRequired,name:o.string.isRequired,content:o.any.isRequired}),a=o.arrayOf(i);t.exports={cardDrawer:i,cardDrawers:a}},{react:509}],13:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-card__section cf-card__section--"+this.props.status},this.props.children)},t}(a.Component);u.propTypes={status:s.oneOf(["default","error"])},u.defaultProps={status:"default"},t.exports=u},{react:509}],14:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-card__toolbar"},a.createElement("div",{className:"cf-card__toolbar_controls"},this.props.controls),a.createElement("div",{className:"cf-card__toolbar_links",role:"tablist"},this.props.links))},t}(a.Component);u.propTypes={controls:s.any,links:s.any},t.exports=u},{react:509}],15:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=e("cf-component-link"),u=a.PropTypes,c=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=i=o(this,e.call.apply(e,[this].concat(u))),i.handleClick=function(e){e.preventDefault(),i.props.onClick()},a=n,o(i,a)}return i(t,e),t.prototype.render=function(){var e="cf-card__toolbar_link";return this.props.isActive&&(e+=" cf-card__toolbar_link--open"),a.createElement(s,{role:"tab",id:this.props.id,className:e,onClick:this.handleClick},this.props.children)},t}(a.Component);c.propTypes={onClick:u.func.isRequired,isActive:u.bool.isRequired,id:u.string},t.exports=c},{"cf-component-link":18,react:509}],16:[function(e,t,n){"use strict";n.Card=e("./Card"),n.CardContent=e("./CardContent"),n.CardControl=e("./CardControl"),n.CardDrawers=e("./CardDrawers"),n.CardLoadingText=e("./CardLoadingText"),n.CardMessages=e("./CardMessages"),n.CardPropTypes=e("./CardPropTypes"),n.CardSection=e("./CardSection")},{"./Card":6,"./CardContent":7,"./CardControl":8,"./CardDrawers":9,"./CardLoadingText":10,"./CardMessages":11,"./CardPropTypes":12,"./CardSection":13}],17:[function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=e("react"),u=s.PropTypes,c=e("cf-util-route-handler"),l=c.routeTo,p=function(e){function t(n,r){if(o(this,t),!n.to&&!n.onClick)throw new Error("<Link/> requires either a `to` or `onClick` prop");var a=i(this,e.call(this,n,r));return a.handleClick=function(e){e.preventDefault(),a.props.disabled||(a.props.to?l(a.props.to):a.props.onClick(e))},a}return a(t,e),t.prototype.render=function(){var e=this.props,t=e.tagName,n=e.to,o=e.children,i=e.className,a=e.disabled,u=r(e,["tagName","to","children","className","disabled"]);return u.href||"a"!==t||(u.href=n||"#!"),u.role||(n&&"a"!==t?u.role="link":n||(u.role="button")),u.className="cf-link",a&&(u.className+=" cf-link--disabled",u.disabled=!0),i&&(u.className+=" "+i),u.onClick=this.handleClick,s.createElement(t,u,o)},t}(s.Component);p.propTypes={to:u.string,onClick:u.func,tagName:u.string,disabled:u.bool},p.defaultProps={tagName:"a"},t.exports=p},{"cf-util-route-handler":19,react:509}],18:[function(e,t,n){"use strict";t.exports=e("./Link")},{"./Link":17}],19:[function(e,t,n){"use strict";t.exports=e("./routeHandler")},{"./routeHandler":20}],20:[function(e,t,n){"use strict";function r(e){return a?void console.error("Warning: Route Handler: Only one handler is allowed at a time"):void(a=e)}function o(e){return a?void a(e):void console.error("Warning: Route Handler: A handler needs to be setup before you can route")}function i(){a=null}var a=void 0;t.exports={handleRoutes:r,routeTo:o,__resetRouteHandler:i}},{}],21:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=i=o(this,e.call.apply(e,[this].concat(u))),i.handleChange=function(e){i.props.onChange(e.target.checked)},a=n,o(i,a)}return i(t,e),t.prototype.render=function(){var e="cf-checkbox";return this.props.checked&&(e+=" cf-checkbox--checked"),a.createElement("label",{htmlFor:this.props.name,className:e},a.createElement("input",{type:"checkbox",className:"cf-checkbox__input",id:this.props.name,name:this.props.name,value:this.props.value,checked:this.props.checked,onChange:this.handleChange}),this.props.label&&a.createElement("span",{className:"cf-checkbox__label"},this.props.label))},t}(a.Component);u.propTypes={label:s.oneOfType([s.string,s.oneOf([!1])]).isRequired,name:s.string.isRequired,value:s.string.isRequired,checked:s.bool.isRequired,onChange:s.func.isRequired},t.exports=u},{react:509}],22:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=e("./Checkbox"),c=e("lodash/includes"),l=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=i=o(this,e.call.apply(e,[this].concat(u))),i.handleChange=function(e,t){var n=i.props.options.filter(function(n){return n.value===e?t:c(i.props.values,n.value)}).map(function(e){return e.value});i.props.onChange(n)},a=n,o(i,a)}return i(t,e),t.prototype.render=function(){var e=this;return a.createElement("div",{className:"cf-checkbox__group"},this.props.options.map(function(t){return a.createElement(u,{key:t.name,label:t.label,name:t.name,value:t.value,checked:c(e.props.values,t.value),onChange:function(n){return e.handleChange(t.value,n)}})}))},t}(a.Component);l.propTypes={values:s.arrayOf(s.string).isRequired,onChange:s.func.isRequired,options:s.arrayOf(s.shape({label:s.oneOfType([s.string,s.oneOf([!1])]).isRequired,name:s.string.isRequired,value:s.string.isRequired})).isRequired},t.exports=l},{"./Checkbox":21,"lodash/includes":36,react:509}],23:[function(e,t,n){"use strict";n.Checkbox=e("./Checkbox"),n.CheckboxGroup=e("./CheckboxGroup")},{"./Checkbox":21,"./CheckboxGroup":22}],24:[function(e,t,n){function r(e,t){var n=a(e)||i(e)?o(e.length,String):[],r=n.length,u=!!r;for(var l in e)!t&&!c.call(e,l)||u&&("length"==l||s(l,r))||n.push(l);return n}var o=e("./_baseTimes"),i=e("./isArguments"),a=e("./isArray"),s=e("./_isIndex"),u=Object.prototype,c=u.hasOwnProperty;t.exports=r},{"./_baseTimes":30,"./_isIndex":32,"./isArguments":37,"./isArray":38}],25:[function(e,t,n){function r(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}t.exports=r},{}],26:[function(e,t,n){function r(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}t.exports=r},{}],27:[function(e,t,n){function r(e,t,n){if(t!==t)return o(e,i,n);for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}var o=e("./_baseFindIndex"),i=e("./_baseIsNaN");t.exports=r},{"./_baseFindIndex":26,"./_baseIsNaN":28}],28:[function(e,t,n){function r(e){return e!==e}t.exports=r},{}],29:[function(e,t,n){function r(e){if(!o(e))return i(e);var t=[];for(var n in Object(e))s.call(e,n)&&"constructor"!=n&&t.push(n);return t}var o=e("./_isPrototype"),i=e("./_nativeKeys"),a=Object.prototype,s=a.hasOwnProperty;t.exports=r},{"./_isPrototype":33,"./_nativeKeys":34}],30:[function(e,t,n){function r(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}t.exports=r},{}],31:[function(e,t,n){function r(e,t){return o(t,function(t){return e[t]})}var o=e("./_arrayMap");t.exports=r},{"./_arrayMap":25}],32:[function(e,t,n){function r(e,t){return t=null==t?o:t,!!t&&("number"==typeof e||i.test(e))&&e>-1&&e%1==0&&e<t}var o=9007199254740991,i=/^(?:0|[1-9]\d*)#x2F;;t.exports=r},{}],33:[function(e,t,n){function r(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||o;return e===n}var o=Object.prototype;t.exports=r},{}],34:[function(e,t,n){var r=e("./_overArg"),o=r(Object.keys,Object);t.exports=o},{"./_overArg":35}],35:[function(e,t,n){function r(e,t){return function(n){return e(t(n))}}t.exports=r},{}],36:[function(e,t,n){function r(e,t,n,r){e=i(e)?e:u(e),n=n&&!r?s(n):0;var l=e.length;return n<0&&(n=c(l+n,0)),a(e)?n<=l&&e.indexOf(t,n)>-1:!!l&&o(e,t,n)>-1}var o=e("./_baseIndexOf"),i=e("./isArrayLike"),a=e("./isString"),s=e("./toInteger"),u=e("./values"),c=Math.max;t.exports=r},{"./_baseIndexOf":27,"./isArrayLike":39,"./isString":45,"./toInteger":49,"./values":51}],37:[function(e,t,n){function r(e){return o(e)&&s.call(e,"callee")&&(!c.call(e,"callee")||u.call(e)==i)}var o=e("./isArrayLikeObject"),i="[object Arguments]",a=Object.prototype,s=a.hasOwnProperty,u=a.toString,c=a.propertyIsEnumerable;t.exports=r},{"./isArrayLikeObject":40}],38:[function(e,t,n){var r=Array.isArray;t.exports=r},{}],39:[function(e,t,n){function r(e){return null!=e&&i(e.length)&&!o(e)}var o=e("./isFunction"),i=e("./isLength");t.exports=r},{"./isFunction":41,"./isLength":42}],40:[function(e,t,n){function r(e){return i(e)&&o(e)}var o=e("./isArrayLike"),i=e("./isObjectLike");t.exports=r},{"./isArrayLike":39,"./isObjectLike":44}],41:[function(e,t,n){function r(e){var t=o(e)?u.call(e):"";return t==i||t==a}var o=e("./isObject"),i="[object Function]",a="[object GeneratorFunction]",s=Object.prototype,u=s.toString;t.exports=r},{"./isObject":43}],42:[function(e,t,n){function r(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}var o=9007199254740991;t.exports=r},{}],43:[function(e,t,n){function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}t.exports=r},{}],44:[function(e,t,n){function r(e){return!!e&&"object"==typeof e}t.exports=r},{}],45:[function(e,t,n){function r(e){return"string"==typeof e||!o(e)&&i(e)&&u.call(e)==a}var o=e("./isArray"),i=e("./isObjectLike"),a="[object String]",s=Object.prototype,u=s.toString;t.exports=r},{"./isArray":38,"./isObjectLike":44}],46:[function(e,t,n){function r(e){return"symbol"==typeof e||o(e)&&s.call(e)==i}var o=e("./isObjectLike"),i="[object Symbol]",a=Object.prototype,s=a.toString;t.exports=r},{"./isObjectLike":44}],47:[function(e,t,n){function r(e){return a(e)?o(e):i(e)}var o=e("./_arrayLikeKeys"),i=e("./_baseKeys"),a=e("./isArrayLike");t.exports=r},{"./_arrayLikeKeys":24,"./_baseKeys":29,"./isArrayLike":39}],48:[function(e,t,n){function r(e){if(!e)return 0===e?e:0;if(e=o(e),e===i||e===-i){var t=e<0?-1:1;return t*a}return e===e?e:0}var o=e("./toNumber"),i=1/0,a=1.7976931348623157e308;t.exports=r},{"./toNumber":50}],49:[function(e,t,n){function r(e){var t=o(e),n=t%1;return t===t?n?t-n:t:0}var o=e("./toFinite");t.exports=r},{"./toFinite":48}],50:[function(e,t,n){function r(e){if("number"==typeof e)return e;if(i(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=c.test(e);return n||l.test(e)?p(e.slice(2),n?2:8):u.test(e)?a:+e}var o=e("./isObject"),i=e("./isSymbol"),a=NaN,s=/^\s+|\s+#x2F;g,u=/^[-+]0x[0-9a-f]+#x2F;i,c=/^0b[01]+#x2F;i,l=/^0o[0-7]+#x2F;i,p=parseInt;t.exports=r},{"./isObject":43,"./isSymbol":46}],51:[function(e,t,n){function r(e){return e?o(e,i(e)):[]}var o=e("./_baseValues"),i=e("./keys");t.exports=r},{"./_baseValues":31,"./keys":47}],52:[function(e,t,n){(function(n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=e("./DropdownRegistry"),c=e("exenv"),l=c.canUseDOM,p=function(e){function t(n,i){r(this,t);var a=o(this,e.call(this,n,i));return a.handleDocumentKeydown=function(e){var t=e.keyCode;40===t?(e.preventDefault(),a.dropdownRegistry.focusNext()):38===t?(e.preventDefault(),a.dropdownRegistry.focusPrev()):27===t&&a.props.onClose()},a.handleDocumentClick=function(e){a.props.onClose()},a.dropdownRegistry=new u,a}return i(t,e),t.prototype.getChildContext=function(){return{dropdownRegistry:this.dropdownRegistry}},t.prototype.componentDidMount=function(){l&&(n.document.addEventListener("keydown",this.handleDocumentKeydown),n.document.addEventListener("click",this.handleDocumentClick))},t.prototype.componentWillUnmount=function(){l&&(n.document.removeEventListener("keydown",this.handleDocumentKeydown),n.document.removeEventListener("click",this.handleDocumentClick))},t.prototype.render=function(){return a.createElement("ul",{role:"menu",className:"cf-dropdown cf-dropdown--"+this.props.align},this.props.children)},t}(a.Component);p.propTypes={onClose:s.func.isRequired,align:s.oneOf(["left","right"])},p.defaultProps={align:"left"},p.childContextTypes={dropdownRegistry:s.instanceOf(u).isRequired},t.exports=p}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./DropdownRegistry":54,exenv:61,react:509}],53:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=e("react-dom"),c=u.findDOMNode,l=e("cf-component-link"),p=e("./DropdownRegistry"),f=function(e){function t(n,i){if(r(this,t),!n.to&&!n.onClick)throw new Error("<DropdownLink/> requires either a `to` or `onClick` prop");var a=o(this,e.call(this,n,i));return a.handleLinkFocus=function(e){a.dropdownRegistry.setFocusedChild(a)},a.handleLinkBlur=function(e){a.dropdownRegistry.removeFocusedChild()},a.dropdownRegistry=i.dropdownRegistry,a}return i(t,e),t.prototype.componentWillMount=function(){this.dropdownRegistry.addChild(this)},t.prototype.componentWillUnmount=function(){this.dropdownRegistry.removeChild(this)},t.prototype.focus=function(){c(this.refs.link).focus()},t.prototype.render=function(){return a.createElement("li",{className:"cf-dropdown__link",role:"menuitem"},a.createElement(l,{ref:"link",to:this.props.to,onClick:this.props.onClick,onFocus:this.handleLinkFocus,onBlur:this.handleLinkBlur},this.props.children))},t}(a.Component);f.propTypes={to:s.string,onClick:s.func},f.contextTypes={dropdownRegistry:s.instanceOf(p).isRequired},t.exports=f},{"./DropdownRegistry":54,"cf-component-link":58,react:509,"react-dom":274}],54:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(){r(this,e),this._links=[],this._currentFocusIndex=-1}return e.prototype.addChild=function(e){this._links.push(e)},e.prototype.removeChild=function(e){this._links.splice(this._links.indexOf(e),1)},e.prototype._focusChildAt=function(e){this._links[e]&&this._links[e].focus()},e.prototype.focusNext=function(){this._focusChildAt(this._currentFocusIndex+1)},e.prototype.focusPrev=function(){this._focusChildAt(this._currentFocusIndex-1)},e.prototype.setFocusedChild=function(e){this._currentFocusIndex=this._links.indexOf(e)},e.prototype.removeFocusedChild=function(e){this._currentFocusIndex=-1},e}();t.exports=o},{}],55:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-dropdown__separator",role:"separator"})},t}(a.Component);t.exports=s},{react:509}],56:[function(e,t,n){"use strict";n.Dropdown=e("./Dropdown"),n.DropdownLink=e("./DropdownLink"),n.DropdownSeparator=e("./DropdownSeparator")},{"./Dropdown":52,"./DropdownLink":53,"./DropdownSeparator":55}],57:[function(e,t,n){arguments[4][17][0].apply(n,arguments)},{"cf-util-route-handler":59,dup:17,react:509}],58:[function(e,t,n){arguments[4][18][0].apply(n,arguments)},{"./Link":57,dup:18}],59:[function(e,t,n){arguments[4][19][0].apply(n,arguments)},{"./routeHandler":60,dup:19}],60:[function(e,t,n){arguments[4][20][0].apply(n,arguments)},{dup:20}],61:[function(t,n,r){!function(){"use strict";var t=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen};"function"==typeof e&&"object"==typeof e.amd&&e.amd?e(function(){
2
- return r}):"undefined"!=typeof n&&n.exports?n.exports=r:window.ExecutionEnvironment=r}()},{}],62:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e="cf-form cf-form--"+this.props.layout;return a.createElement("form",{className:e,onSubmit:this.props.onSubmit},this.props.children)},t}(a.Component);u.propTypes={layout:s.oneOf(["horizontal","vertical"]).isRequired,onSubmit:s.func.isRequired},t.exports=u},{react:509}],63:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=this;return this.props.field.invalid?a.createElement("div",{className:"cf-form__field-error"},Object.keys(this.props.validations).map(function(t){return a.createElement("p",{key:t},e.props.validations[t])})):a.createElement("noscript",null)},t}(a.Component);u.propTypes={field:s.object.isRequired,validations:s.object.isRequired},t.exports=u},{react:509}],64:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("fieldset",{className:"cf-form__fieldset"},a.createElement("legend",{className:"cf-form__fieldset_legend"},this.props.legend),a.createElement("div",{className:"cf-form__fieldset_content"},this.props.children))},t}(a.Component);u.propTypes={legend:s.string.isRequired},t.exports=u},{react:509}],65:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=(a.PropTypes,function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-form__footer"},this.props.children)},t}(a.Component));t.exports=s},{react:509}],66:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-form__header"},a.createElement("h3",{className:"cf-form__title"},this.props.title))},t}(a.Component);u.propTypes={title:s.string.isRequired},t.exports=u},{react:509}],67:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e="cf-form__label";return this.props.hidden&&(e+=" cf-form__label--hidden"),a.createElement("label",{className:e},this.props.children)},t}(a.Component);u.propTypes={hidden:s.bool},t.exports=u},{react:509}],68:[function(e,t,n){"use strict";n.Form=e("./Form"),n.FormHeader=e("./FormHeader"),n.FormFooter=e("./FormFooter"),n.FormFieldset=e("./FormFieldset"),n.FormLabel=e("./FormLabel"),n.FormFieldError=e("./FormFieldError")},{"./Form":62,"./FormFieldError":63,"./FormFieldset":64,"./FormFooter":65,"./FormHeader":66,"./FormLabel":67}],69:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e="h"+this.props.size,t="cf-heading cf-heading--"+this.props.size;return a.createElement(e,{className:t},this.props.children)},t}(a.Component);u.propTypes={size:s.oneOf([1,2,3,4,5,6]).isRequired},t.exports=u},{react:509}],70:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("small",{className:"cf-heading__caption"},this.props.children)},t}(a.Component);t.exports=s},{react:509}],71:[function(e,t,n){"use strict";n.Heading=e("./Heading"),n.HeadingCaption=e("./HeadingCaption")},{"./Heading":69,"./HeadingCaption":70}],72:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=i=o(this,e.call.apply(e,[this].concat(u))),i.handleChange=function(e){i.props.onChange(e.target.value)},a=n,o(i,a)}return i(t,e),t.prototype.render=function(){var e="cf-input cf-input--"+this.props.type;return this.props.invalid&&(e+=" cf-input--invalid"),a.createElement("input",{type:this.props.type,className:e,name:this.props.name,value:this.props.value,onChange:this.handleChange,placeholder:this.props.placeholder})},t}(a.Component);u.propTypes={type:s.oneOf(["text","email","number","password","search"]),name:s.string.isRequired,value:s.string.isRequired,onChange:s.func.isRequired,placeholder:s.string,invalid:s.bool},u.defaultProps={type:"text"},t.exports=u},{react:509}],73:[function(e,t,n){"use strict";t.exports=e("./Input")},{"./Input":72}],74:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=(100*this.props.width).toPrecision(5)+"%";return a.createElement("div",{className:"cf-layout__column",style:{width:e}},this.props.children)},t}(a.Component);u.propTypes={width:s.number.isRequired},t.exports=u},{react:509}],75:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-layout__container"},this.props.children)},t}(a.Component);t.exports=s},{react:509}],76:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-layout__row"},this.props.children)},t}(a.Component);t.exports=s},{react:509}],77:[function(e,t,n){"use strict";n.LayoutContainer=e("./LayoutContainer"),n.LayoutRow=e("./LayoutRow"),n.LayoutColumn=e("./LayoutColumn")},{"./LayoutColumn":74,"./LayoutContainer":75,"./LayoutRow":76}],78:[function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=e("react"),u=s.PropTypes,c=e("cf-util-route-handler"),l=c.routeTo,p=function(e){function t(n,r){if(o(this,t),!n.to&&!n.onClick)throw new Error("<Link/> requires either a `to` or `onClick` prop");var a=i(this,e.call(this,n,r));return a.handleClick=function(e){e.preventDefault(),a.props.disabled||(a.props.to?l(a.props.to):a.props.onClick(e))},a}return a(t,e),t.prototype.render=function(){var e=this.props,t=e.tagName,n=e.to,o=e.children,i=e.className,a=e.disabled,u=r(e,["tagName","to","children","className","disabled"]);return u.href||"a"!==t||(u.href=n||"#!"),u.role||(n&&"a"!==t?u.role="link":n||(u.role="button")),u.className="cf-link",a&&(u.className+=" cf-link--disabled",u.disabled=!0),i&&(u.className+=" "+i),u.onClick=this.handleClick,s.createElement(t,u,o)},t}(s.Component);p.propTypes={to:u.string,onClick:u.func,tagName:u.string,disabled:u.bool},p.defaultProps={tagName:"a"},t.exports=p},{"cf-util-route-handler":80,react:509}],79:[function(e,t,n){arguments[4][18][0].apply(n,arguments)},{"./Link":78,dup:18}],80:[function(e,t,n){"use strict";function r(e){if(i)throw new Error("Only one handler is allowed at a time");i=e}function o(e){if(!i)throw new Error("A handler needs to be setup before you can route");i(e)}n.__esModule=!0,n.handleRoutes=r,n.routeTo=o;var i=void 0},{}],81:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e="ul",t="cf-list";return this.props.ordered&&(e="ol",t+=" cf-list--ordered"),this.props.unstyled&&(t+=" cf-list--unstyled"),a.createElement(e,{className:t},this.props.children)},t}(a.Component);u.propTypes={ordered:s.bool,unstyled:s.bool},u.defaultProps={ordered:!1,unstyled:!1},t.exports=u},{react:509}],82:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("li",{className:"cf-list__item"},this.props.children)},t}(a.Component);t.exports=s},{react:509}],83:[function(e,t,n){"use strict";n.List=e("./List"),n.ListItem=e("./ListItem")},{"./List":81,"./ListItem":82}],84:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=e("cf-component-icon"),u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement(s,{type:"loading",label:"Loading"})},t}(a.Component);t.exports=u},{"cf-component-icon":87,react:509}],85:[function(e,t,n){"use strict";t.exports=e("./Loading")},{"./Loading":84}],86:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=e("./options"),c=u.TYPES,l=u.SIZES,p=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e="cf-icon cf-icon--"+this.props.type;return this.props.size&&(e+=" cf-icon--"+this.props.size),this.props.border&&(e+=" cf-icon--border"),this.props.spin&&(e+=" cf-icon--spin"),this.props.muted&&(e+=" cf-icon--muted"),this.props.white&&(e+=" cf-icon--white"),a.createElement("i",{className:e},this.props.label&&a.createElement("span",{className:"cf-icon__label"},this.props.label))},t}(a.Component);p.propTypes={label:s.oneOfType([s.string,s.oneOf([!1])]).isRequired,type:s.oneOf(c).isRequired,size:s.oneOf(l),border:s.bool,spin:s.bool,muted:s.bool,white:s.bool},t.exports=p},{"./options":88,react:509}],87:[function(e,t,n){"use strict";t.exports=e("./Icon")},{"./Icon":86}],88:[function(e,t,n){"use strict";n.TYPES="caret-up chevron-up caret-down chevron-down caret-left chevron-left caret-right chevron-right ok-sign exclamation-sign info-sign pause time ok clipboard bolt chart drive filter flowchart hamburger lock list file shield plus happy sad search wrench remove remove-sign speech gear help widen calendar facebook twitter googleplus linkedin resize-horizontal upload loading close".split(" "),n.SIZES="2x 3x 4x large xlarge".split(" ")},{}],89:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=e("react-modal2").default,c=e("react-gateway"),l=c.Gateway,p=e("react-addons-css-transition-group"),f=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e="cf-modal";return"confirm"===this.props.type&&(e+=" cf-modal--confirm"),a.createElement(l,{into:"modal"},a.createElement(p,{transitionName:"cf-transition-modal",transitionAppear:!0,transitionAppearTimeout:200,transitionEnterTimeout:200,transitionLeaveTimeout:200},this.props.isOpen&&a.createElement("div",{className:"cf-modal__backdrop-scroller"},a.createElement("div",{className:"cf-modal__backdrop-outer"},a.createElement(u,{ref:"modal",key:"modal",backdropClassName:"cf-modal__backdrop",modalClassName:e,closeOnEsc:this.props.closeOnEsc,closeOnBackdropClick:this.props.closeOnBackdropClick,onClose:this.props.onRequestClose},this.props.children)))))},t}(a.Component);f.propTypes={type:s.oneOf(["confirm"]),isOpen:s.bool.isRequired,onRequestClose:s.func.isRequired,closeOnEsc:s.bool,closeOnBackdropClick:s.bool},f.defaultProps={closeOnEsc:!0,closeOnBackdropClick:!0},t.exports=f},{react:509,"react-addons-css-transition-group":270,"react-gateway":279,"react-modal2":98}],90:[function(e,t,n){"use strict";function r(e){return o.createElement("div",{className:"cf-modal__actions"},e.children)}var o=e("react");t.exports=r},{react:509}],91:[function(e,t,n){"use strict";function r(e){return o.createElement("div",{className:"cf-modal__body"},e.children)}var o=e("react");t.exports=r},{react:509}],92:[function(e,t,n){"use strict";function r(e){return o.createElement("span",{className:"cf-modal__close",onClick:e.onClick})}var o=e("react"),i=o.PropTypes;r.propTypes={onClick:i.func.isRequired},t.exports=r},{react:509}],93:[function(e,t,n){"use strict";function r(e){var t="cf-modal__footer";return e.simple&&(t+=" cf-modal__footer--simple"),o.createElement("div",{className:t},e.children)}var o=e("react"),i=o.PropTypes;r.propTypes={simple:i.bool},r.defaultProps={simple:!1},t.exports=r},{react:509}],94:[function(e,t,n){"use strict";function r(e){return o.createElement("header",{className:"cf-modal__header"},e.children)}var o=e("react");t.exports=r},{react:509}],95:[function(e,t,n){"use strict";function r(e){return o.createElement("h4",{className:"cf-modal__title"},e.children)}var o=e("react");t.exports=r},{react:509}],96:[function(e,t,n){"use strict";n.Modal=e("./Modal"),n.ModalActions=e("./ModalActions"),n.ModalBody=e("./ModalBody"),n.ModalClose=e("./ModalClose"),n.ModalFooter=e("./ModalFooter"),n.ModalHeader=e("./ModalHeader"),n.ModalTitle=e("./ModalTitle")},{"./Modal":89,"./ModalActions":90,"./ModalBody":91,"./ModalClose":92,"./ModalFooter":93,"./ModalHeader":94,"./ModalTitle":95}],97:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){h.default.storeFocus(),e&&e.setAttribute("aria-hidden","true"),f.default.scopeFocus(t)}function u(e){f.default.unscopeFocus(),e&&e.removeAttribute("aria-hidden"),h.default.restoreFocus()}n.__esModule=!0;var c=e("react"),l=r(c),p=e("a11y-focus-scope"),f=r(p),d=e("a11y-focus-store"),h=r(d),g=e("exenv"),m=r(g),y=function(e){function t(){var n,r,a;o(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=r=i(this,e.call.apply(e,[this].concat(u))),r.handleDocumentKeydown=function(e){r.props.closeOnEsc&&27===e.keyCode&&r.props.onClose()},r.handleBackdropClick=function(){r.props.closeOnBackdropClick&&r.props.onClose()},r.handleModalClick=function(e){e.stopPropagation()},a=n,i(r,a)}return a(t,e),t.getApplicationElement=function(){console.warn("`ReactModal2.getApplicationElement` needs to be set for accessibility reasons")},t.prototype.componentDidMount=function(){m.default.canUseDOM&&(s(t.getApplicationElement(),this.refs.modal),document.addEventListener("keydown",this.handleDocumentKeydown))},t.prototype.componentWillUnmount=function(){m.default.canUseDOM&&(u(t.getApplicationElement()),document.removeEventListener("keydown",this.handleDocumentKeydown))},t.prototype.render=function(){return l.default.createElement("div",{ref:"backdrop",className:this.props.backdropClassName,style:this.props.backdropStyles,onClick:this.handleBackdropClick},l.default.createElement("div",{ref:"modal",className:this.props.modalClassName,style:this.props.modalStyles,onClick:this.handleModalClick,tabIndex:"-1"},this.props.children))},t}(l.default.Component);y.propTypes={onClose:l.default.PropTypes.func.isRequired,closeOnEsc:l.default.PropTypes.bool,closeOnBackdropClick:l.default.PropTypes.bool,backdropClassName:l.default.PropTypes.string,backdropStyles:l.default.PropTypes.object,modalClassName:l.default.PropTypes.string,modalStyles:l.default.PropTypes.object},y.defaultProps={closeOnEsc:!0,closeOnBackdropClick:!0},n.default=y},{"a11y-focus-scope":99,"a11y-focus-store":102,exenv:103,react:509}],98:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}n.__esModule=!0,n.default=void 0;var o=e("./Modal"),i=r(o);n.default=i.default},{"./Modal":97}],99:[function(e,t,n){"use strict";function r(e){function t(){(i(e)[0]||e).focus()}function n(n){e===n.target||e.contains(n.target)||t()}return s||(a.polyfill(),s=!0),t(),document.addEventListener("focusin",n),function(){document.removeEventListener("focusin",n)}}var o,i=e("tabbable"),a=e("focusin"),s=!1;n.scopeFocus=function(e){o&&o(),o=r(e)},n.unscopeFocus=function(){o&&o(),o=null}},{focusin:100,tabbable:101}],100:[function(e,t,n){function r(){function e(e){var t="focus"===e.type?"focusin":"focusout",n=new window.CustomEvent(t,{bubbles:!0,cancelable:!1});n.c1Generated=!0,e.target.dispatchEvent(n)}function t(n){n.c1Generated||(r.removeEventListener("focus",e,!0),r.removeEventListener("blur",e,!0),r.removeEventListener("focusin",t,!0),r.removeEventListener("focusout",t,!0)),setTimeout(function(){r.removeEventListener("focusin",t,!0),r.removeEventListener("focusout",t,!0)})}var n=window,r=n.document;void 0===n.onfocusin&&(r.addEventListener("focus",e,!0),r.addEventListener("blur",e,!0),r.addEventListener("focusin",t,!0),r.addEventListener("focusout",t,!0))}t.exports={polyfill:r}},{}],101:[function(e,t,n){function r(){var e=[];return function t(n){if(n===document.documentElement)return!1;for(var r=0,o=e.length;r<o;r++)if(e[r][0]===n)return e[r][1];var i=!1,a=window.getComputedStyle(n);return"hidden"===a.visibility||"none"===a.display?i=!0:n.parentNode&&(i=t(n.parentNode)),e.push([n,i]),i}}t.exports=function(e){for(var t,n,o=[],i=[],a=r(),s=e.querySelectorAll("input, select, a[href], textarea, button, [tabindex]"),u=0,c=s.length;u<c;u++)t=s[u],n=t.tabIndex,n<0||"INPUT"===t.tagName&&"hidden"===t.type||t.disabled||a(t)||(0===n?o.push(t):i.push({tabIndex:n,node:t}));var l=i.sort(function(e,t){return e.tabIndex-t.tabIndex}).map(function(e){return e.node});return Array.prototype.push.apply(l,o),l}},{}],102:[function(e,t,n){"use strict";var r;n.storeFocus=function(){r=document.activeElement},n.clearStoredFocus=function(){r=null},n.restoreFocus=function(){if(r){try{r.focus()}catch(e){}r=null}}},{}],103:[function(e,t,n){arguments[4][61][0].apply(n,arguments)},{dup:61}],104:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=e("raf"),c=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=i=o(this,e.call.apply(e,[this].concat(u))),i.state={persist:i.props.persist,timeoutId:null},a=n,o(i,a)}return i(t,e),t.prototype.componentDidMount=function(){var e=this;this._raf=u(function(){e._raf=u(function(){e._raf=null,e.startTimeout()})})},t.prototype.componentWillUnmount=function(){this.stopTimeout()},t.prototype.startTimeout=function(){var e=this;if(!this.state.persist){this.stopTimeout();var t=setTimeout(function(){return e.props.onClose()},this.props.delay);this.setState({timeoutId:t})}},t.prototype.stopTimeout=function(){this._raf&&(u.cancel(this._raf),this._raf=null),this.state.timeoutId&&(clearTimeout(this.state.timeoutId),this.setState({timeoutId:null}))},t.prototype.handleMouseEnter=function(){this.stopTimeout()},t.prototype.handleMouseLeave=function(){this.startTimeout()},t.prototype.handleClickClose=function(){this.props.onClose()},t.prototype.handleClick=function(){this.stopTimeout(),this.setState({persist:!0})},t.prototype.render=function(){var e="cf-notifications__item",t=void 0;if(e+=" cf-notifications__item--"+this.props.type,this.state.persist)e+=" cf-notifications__item--persist";else{var n="cf-notifications__item_progress",r={};this.state.timeoutId&&(n+=" cf-notifications__item_progress--active",r.transitionDuration=this.props.delay+"ms"),t=a.createElement("span",{className:n,style:r})}var o=void 0;return this.props.closable&&(o=a.createElement("span",{className:"cf-notifications__item_close",onClick:this.handleClickClose.bind(this)})),a.createElement("div",{role:"alert",className:e,onClick:this.handleClick.bind(this),onMouseEnter:this.handleMouseEnter.bind(this),onMouseLeave:this.handleMouseLeave.bind(this)},t,o,a.createElement("span",{className:"cf-notifications__item_message"},this.props.message))},t}(a.Component);c.propTypes={type:s.oneOf(["success","error","info","warning"]),message:s.string.isRequired,closable:s.bool,delay:s.number,persist:s.bool,onClose:s.func.isRequired},c.defaultProps={closable:!0,delay:4e3,persist:!1},t.exports=c},{raf:108,react:509}],105:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-notifications__global_container"},this.props.children)},t}(a.Component);t.exports=s},{react:509}],106:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");
3
- }function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-notifications"},this.props.children)},t}(a.Component);t.exports=s},{react:509}],107:[function(e,t,n){"use strict";n.NotificationList=e("./NotificationList"),n.Notification=e("./Notification"),n.NotificationGlobalContainer=e("./NotificationGlobalContainer")},{"./Notification":104,"./NotificationGlobalContainer":105,"./NotificationList":106}],108:[function(e,t,n){(function(n){for(var r=e("performance-now"),o="undefined"==typeof window?n:window,i=["moz","webkit"],a="AnimationFrame",s=o["request"+a],u=o["cancel"+a]||o["cancelRequest"+a],c=0;!s&&c<i.length;c++)s=o[i[c]+"Request"+a],u=o[i[c]+"Cancel"+a]||o[i[c]+"CancelRequest"+a];if(!s||!u){var l=0,p=0,f=[],d=1e3/60;s=function(e){if(0===f.length){var t=r(),n=Math.max(0,d-(t-l));l=n+t,setTimeout(function(){var e=f.slice(0);f.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(e){setTimeout(function(){throw e},0)}},Math.round(n))}return f.push({handle:++p,callback:e,cancelled:!1}),p},u=function(e){for(var t=0;t<f.length;t++)f[t].handle===e&&(f[t].cancelled=!0)}}t.exports=function(e){return s.call(o,e)},t.exports.cancel=function(){u.apply(o,arguments)},t.exports.polyfill=function(){o.requestAnimationFrame=s,o.cancelAnimationFrame=u}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"performance-now":109}],109:[function(e,t,n){(function(e){(function(){var n,r,o;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:"undefined"!=typeof e&&null!==e&&e.hrtime?(t.exports=function(){return(n()-o)/1e6},r=e.hrtime,n=function(){var e;return e=r(),1e9*e[0]+e[1]},o=n()):Date.now?(t.exports=function(){return Date.now()-o},o=Date.now()):(t.exports=function(){return(new Date).getTime()-o},o=(new Date).getTime())}).call(this)}).call(this,e("_process"))},{_process:2}],110:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=i=o(this,e.call.apply(e,[this].concat(u))),i.handleChange=function(e){i.props.onChange(e.target.value)},a=n,o(i,a)}return i(t,e),t.prototype.render=function(){var e="cf-radio";return this.props.checked&&(e+=" cf-radio--checked"),a.createElement("label",{htmlFor:this.props.name,className:e},a.createElement("input",{type:"radio",className:"cf-radio__input",id:this.props.name,name:this.props.name,value:this.props.value,checked:this.props.checked,onChange:this.handleChange}),this.props.label&&a.createElement("span",{className:"cf-radio__label"},this.props.label))},t}(a.Component);u.propTypes={label:s.oneOfType([s.string,s.oneOf([!1])]).isRequired,name:s.string.isRequired,value:s.string.isRequired,checked:s.bool.isRequired,onChange:s.func.isRequired},t.exports=u},{react:509}],111:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=e("./Radio"),c=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=this;return a.createElement("div",{className:"cf-radio__group"},this.props.options.map(function(t){return a.createElement(u,{key:t.name,label:t.label,name:t.name,value:t.value,checked:e.props.value===t.value,onChange:e.props.onChange})}))},t}(a.Component);c.propTypes={value:s.string.isRequired,onChange:s.func.isRequired,options:s.arrayOf(s.shape({label:s.oneOfType([s.string,s.oneOf([!1])]).isRequired,name:s.string.isRequired,value:s.string.isRequired})).isRequired},t.exports=c},{"./Radio":110,react:509}],112:[function(e,t,n){"use strict";n.Radio=e("./Radio"),n.RadioGroup=e("./RadioGroup")},{"./Radio":110,"./RadioGroup":111}],113:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=e("react-select"),c=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-select"},this.props.label&&a.createElement("label",null,this.props.label),a.createElement(u,{searchable:this.props.searchable,clearable:this.props.searchable,backspaceRemoves:this.props.searchable,onChange:this.props.onChange,onBlur:this.props.onBlur,onFocus:this.props.onFocus,multi:this.props.multi,value:this.props.value,options:this.props.options,placeholder:this.props.placeholder}))},t}(a.Component);c.propTypes={label:s.string,onChange:s.func.isRequired,onBlur:s.func,onFocus:s.func,multi:s.bool,searchable:s.bool,value:s.any,options:s.arrayOf(s.shape({label:s.string.isRequired,value:s.any.isRequired})),placeholder:s.string},c.defaultProps={multi:!1,searchable:!1},t.exports=c},{react:509,"react-select":116}],114:[function(e,t,n){"use strict";t.exports=e("./Select")},{"./Select":113}],115:[function(e,t,n){"use strict";var r=e("react"),o=e("classnames"),i=r.createClass({displayName:"Option",propTypes:{addLabelText:r.PropTypes.string,className:r.PropTypes.string,mouseDown:r.PropTypes.func,mouseEnter:r.PropTypes.func,mouseLeave:r.PropTypes.func,option:r.PropTypes.object.isRequired,renderFunc:r.PropTypes.func},blockEvent:function(e){e.preventDefault(),"A"===e.target.tagName&&"href"in e.target&&(e.target.target?window.open(e.target.href):window.location.href=e.target.href)},handleMouseDown:function(e){this.props.mouseDown(this.props.option,e)},handleMouseEnter:function(e){this.props.mouseEnter(this.props.option,e)},handleMouseLeave:function(e){this.props.mouseLeave(this.props.option,e)},render:function(){var e=this.props.option,t=e.create?this.props.addLabelText.replace("{label}",e.label):this.props.renderFunc(e),n=o(this.props.className,e.className);return e.disabled?r.createElement("div",{className:n,onMouseDown:this.blockEvent,onClick:this.blockEvent},t):r.createElement("div",{className:n,style:e.style,onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onClick:this.handleMouseDown,title:e.title},t)}});t.exports=i},{classnames:119,react:509}],116:[function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=e("react"),a=e("react-dom"),s=e("react-input-autosize"),u=e("classnames"),c=e("./Value"),l=e("./SingleValue"),p=e("./Option"),f=0,d=i.createClass({displayName:"Select",propTypes:{addLabelText:i.PropTypes.string,allowCreate:i.PropTypes.bool,asyncOptions:i.PropTypes.func,autoload:i.PropTypes.bool,backspaceRemoves:i.PropTypes.bool,cacheAsyncResults:i.PropTypes.bool,className:i.PropTypes.string,clearAllText:i.PropTypes.string,clearValueText:i.PropTypes.string,clearable:i.PropTypes.bool,delimiter:i.PropTypes.string,disabled:i.PropTypes.bool,filterOption:i.PropTypes.func,filterOptions:i.PropTypes.func,ignoreCase:i.PropTypes.bool,inputProps:i.PropTypes.object,isLoading:i.PropTypes.bool,labelKey:i.PropTypes.string,matchPos:i.PropTypes.string,matchProp:i.PropTypes.string,multi:i.PropTypes.bool,name:i.PropTypes.string,newOptionCreator:i.PropTypes.func,noResultsText:i.PropTypes.string,onBlur:i.PropTypes.func,onChange:i.PropTypes.func,onFocus:i.PropTypes.func,onInputChange:i.PropTypes.func,onOptionLabelClick:i.PropTypes.func,optionComponent:i.PropTypes.func,optionRenderer:i.PropTypes.func,options:i.PropTypes.array,placeholder:i.PropTypes.string,searchable:i.PropTypes.bool,searchingText:i.PropTypes.string,searchPromptText:i.PropTypes.string,singleValueComponent:i.PropTypes.func,value:i.PropTypes.any,valueComponent:i.PropTypes.func,valueKey:i.PropTypes.string,valueRenderer:i.PropTypes.func},getDefaultProps:function(){return{addLabelText:'Add "{label}"?',allowCreate:!1,asyncOptions:void 0,autoload:!0,backspaceRemoves:!0,cacheAsyncResults:!0,className:void 0,clearAllText:"Clear all",clearValueText:"Clear value",clearable:!0,delimiter:",",disabled:!1,ignoreCase:!0,inputProps:{},isLoading:!1,labelKey:"label",matchPos:"any",matchProp:"any",name:void 0,newOptionCreator:void 0,noResultsText:"No results found",onChange:void 0,onInputChange:void 0,onOptionLabelClick:void 0,optionComponent:p,options:void 0,placeholder:"Select...",searchable:!0,searchingText:"Searching...",searchPromptText:"Type to search",singleValueComponent:l,value:void 0,valueComponent:c,valueKey:"value"}},getInitialState:function(){return{isFocused:!1,isLoading:!1,isOpen:!1,options:this.props.options}},componentWillMount:function(){var e=this;this._optionsCache={},this._optionsFilterString="",this._closeMenuIfClickedOutside=function(t){if(e.state.isOpen){var n=a.findDOMNode(e.refs.selectMenuContainer),r=a.findDOMNode(e.refs.control),o=e.clickedOutsideElement(n,t),i=e.clickedOutsideElement(r,t);o&&i&&e.setState({isOpen:!1},e._unbindCloseMenuIfClickedOutside)}},this._bindCloseMenuIfClickedOutside=function(){!document.addEventListener&&document.attachEvent?document.attachEvent("onclick",e._closeMenuIfClickedOutside):document.addEventListener("click",e._closeMenuIfClickedOutside)},this._unbindCloseMenuIfClickedOutside=function(){!document.removeEventListener&&document.detachEvent?document.detachEvent("onclick",e._closeMenuIfClickedOutside):document.removeEventListener("click",e._closeMenuIfClickedOutside)},this.setState(this.getStateFromValue(this.props.value))},componentDidMount:function(){this.props.asyncOptions&&this.props.autoload&&this.autoloadAsyncOptions()},componentWillUnmount:function(){clearTimeout(this._blurTimeout),clearTimeout(this._focusTimeout),this.state.isOpen&&this._unbindCloseMenuIfClickedOutside()},componentWillReceiveProps:function(e){var t=this,n=!1;if(JSON.stringify(e.options)!==JSON.stringify(this.props.options)&&(n=!0,this.setState({options:e.options,filteredOptions:this.filterOptions(e.options)})),e.value!==this.state.value||e.placeholder!==this.props.placeholder||n){var r=function(n){t.setState(t.getStateFromValue(e.value,n&&n.options||e.options,e.placeholder))};this.props.asyncOptions?this.loadAsyncOptions(e.value,{},r):r()}},componentDidUpdate:function(){var e=this;if(!this.props.disabled&&this._focusAfterUpdate&&(clearTimeout(this._blurTimeout),clearTimeout(this._focusTimeout),this._focusTimeout=setTimeout(function(){e.isMounted()&&(e.getInputNode().focus(),e._focusAfterUpdate=!1)},50)),this._focusedOptionReveal){if(this.refs.focused&&this.refs.menu){var t=a.findDOMNode(this.refs.focused),n=a.findDOMNode(this.refs.menu),r=t.getBoundingClientRect(),o=n.getBoundingClientRect();(r.bottom>o.bottom||r.top<o.top)&&(n.scrollTop=t.offsetTop+t.clientHeight-n.offsetHeight)}this._focusedOptionReveal=!1}},focus:function(){this.getInputNode().focus()},clickedOutsideElement:function(e,t){for(var n=t.target?t.target:t.srcElement;null!=n;){if(n===e)return!1;n=n.offsetParent}return!0},getStateFromValue:function(e,t,n){var r=this;t||(t=this.state.options),n||(n=this.props.placeholder),this._optionsFilterString="";var o,i=this.initValuesArray(e,t),a=this.filterOptions(t,i),s=null;return!this.props.multi&&i.length?(o=i[0],s=i[0][this.props.valueKey]):(o=this.getFirstFocusableOption(a),s=i.map(function(e){return e[r.props.valueKey]}).join(this.props.delimiter)),{value:s,values:i,inputValue:"",filteredOptions:a,placeholder:!this.props.multi&&i.length?i[0][this.props.labelKey]:n,focusedOption:o}},getFirstFocusableOption:function(e){for(var t=0;t<e.length;++t)if(!e[t].disabled)return e[t]},initValuesArray:function(e,t){var n=this;return Array.isArray(e)||(e="string"==typeof e?""===e?[]:this.props.multi?e.split(this.props.delimiter):[e]:void 0!==e&&null!==e?[e]:[]),e.map(function(e){if("string"==typeof e||"number"==typeof e){var o;for(var i in t)if(t.hasOwnProperty(i)&&t[i]&&(t[i][n.props.valueKey]===e||"number"==typeof t[i][n.props.valueKey]&&t[i][n.props.valueKey].toString()===e))return t[i];return o={},r(o,n.props.valueKey,e),r(o,n.props.labelKey,e),o}return e})},setValue:function(e,t){(t||void 0===t)&&(this._focusAfterUpdate=!0);var n=this.getStateFromValue(e);n.isOpen=!1,this.fireChangeEvent(n),this.setState(n)},selectValue:function(e){this.props.multi?e&&this.addValue(e):this.setValue(e),this._unbindCloseMenuIfClickedOutside()},addValue:function(e){this.setValue(this.state.values.concat(e))},popValue:function(){this.setValue(this.state.values.slice(0,this.state.values.length-1))},removeValue:function(e){this.setValue(this.state.values.filter(function(t){return t!==e}))},clearValue:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this.setValue(null))},resetValue:function(){this.setValue(""===this.state.value?null:this.state.value)},getInputNode:function(){var e=this.refs.input;return this.props.searchable?e:a.findDOMNode(e)},fireChangeEvent:function(e){e.value!==this.state.value&&this.props.onChange&&this.props.onChange(e.value,e.values)},handleMouseDown:function(e){if(!(this.props.disabled||"mousedown"===e.type&&0!==e.button))return e.stopPropagation(),e.preventDefault(),this.state.isOpen&&!this.props.searchable?void this.setState({isOpen:!1},this._unbindCloseMenuIfClickedOutside):void(this.state.isFocused?this.setState({isOpen:!0},this._bindCloseMenuIfClickedOutside):(this._openAfterFocus=!0,this.getInputNode().focus()))},handleMouseDownOnMenu:function(e){this.props.disabled||"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault())},handleMouseDownOnArrow:function(e){this.props.disabled||"mousedown"===e.type&&0!==e.button||this.state.isOpen&&(e.stopPropagation(),e.preventDefault(),this.setState({isOpen:!1},this._unbindCloseMenuIfClickedOutside))},handleInputFocus:function(e){var t=this,n=this.state.isOpen||this._openAfterFocus;this.setState({isFocused:!0,isOpen:n},function(){n?t._bindCloseMenuIfClickedOutside():t._unbindCloseMenuIfClickedOutside()}),this._openAfterFocus=!1,this.props.onFocus&&this.props.onFocus(e)},handleInputBlur:function(e){var t=this,n=a.findDOMNode(this.refs.menu);document.activeElement.isEqualNode(n)||(this._blurTimeout=setTimeout(function(){!t._focusAfterUpdate&&t.isMounted()&&t.setState({inputValue:"",isFocused:!1,isOpen:!1})},50),this.props.onBlur&&this.props.onBlur(e))},handleKeyDown:function(e){if(!this.props.disabled){switch(e.keyCode){case 8:return void(!this.state.inputValue&&this.props.backspaceRemoves&&(e.preventDefault(),this.popValue()));case 9:if(e.shiftKey||!this.state.isOpen||!this.state.focusedOption)return;this.selectFocusedOption();break;case 13:if(!this.state.isOpen)return;this.selectFocusedOption();break;case 27:this.state.isOpen?this.resetValue():this.props.clearable&&this.clearValue(e);break;case 38:this.focusPreviousOption();break;case 40:this.focusNextOption();break;case 188:if(!this.props.allowCreate||!this.props.multi)return;e.preventDefault(),e.stopPropagation(),this.selectFocusedOption();break;default:return}e.preventDefault()}},_getNewFocusedOption:function(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t]===this.state.focusedOption)return e[t];return this.getFirstFocusableOption(e)},handleInputChange:function(e){if(this._optionsFilterString=e.target.value,this.props.onInputChange&&this.props.onInputChange(e.target.value),this.props.asyncOptions)this.setState({isLoading:!0,inputValue:e.target.value}),this.loadAsyncOptions(e.target.value,{isLoading:!1,isOpen:!0},this._bindCloseMenuIfClickedOutside);else{var t=this.filterOptions(this.state.options);this.setState({isOpen:!0,inputValue:e.target.value,filteredOptions:t,focusedOption:this._getNewFocusedOption(t)},this._bindCloseMenuIfClickedOutside)}},autoloadAsyncOptions:function(){var e=this;this.setState({isLoading:!0}),this.loadAsyncOptions("",{isLoading:!1},function(){e.setValue(e.props.value,!1)})},loadAsyncOptions:function(e,t,n){void 0===e&&(e="");var r=this,o=this._currentRequestId=f++;if(this.props.cacheAsyncResults)for(var i=0;i<=e.length;i++){var a=e.slice(0,i);if(this._optionsCache[a]&&(e===a||this._optionsCache[a].complete)){var s=this._optionsCache[a].options,u=this.filterOptions(s),c={options:s,filteredOptions:u,focusedOption:this._getNewFocusedOption(u)};for(var l in t)t.hasOwnProperty(l)&&(c[l]=t[l]);return this.setState(c),void(n&&n.call(this,c))}}var p=function(i,a){if(i)throw i;if(r.props.cacheAsyncResults&&(r._optionsCache[e]=a),o===r._currentRequestId){var s=r.filterOptions(a.options),u={options:a.options,filteredOptions:s,focusedOption:r._getNewFocusedOption(s)};for(var c in t)t.hasOwnProperty(c)&&(u[c]=t[c]);r.setState(u),n&&n.call(r,u)}},d=this.props.asyncOptions(e,p);d&&"function"==typeof d.then&&d.then(function(e){p(null,e)},function(e){p(e)})},filterOptions:function(e,t){var n=this,r=this._optionsFilterString,o=(t||this.state.values).map(function(e){return e[n.props.valueKey]});if(this.props.filterOptions)return this.props.filterOptions.call(this,e,r,o);var i=function(e){if(this.props.multi&&o.indexOf(e[this.props.valueKey])>-1)return!1;if(this.props.filterOption)return this.props.filterOption.call(this,e,r);var t=String(e[this.props.valueKey]),n=String(e[this.props.labelKey]);return this.props.ignoreCase&&(t=t.toLowerCase(),n=n.toLowerCase(),r=r.toLowerCase()),r&&"start"!==this.props.matchPos?"label"!==this.props.matchProp&&t.indexOf(r)>=0||"value"!==this.props.matchProp&&n.indexOf(r)>=0:"label"!==this.props.matchProp&&t.substr(0,r.length)===r||"value"!==this.props.matchProp&&n.substr(0,r.length)===r};return(e||[]).filter(i,this)},selectFocusedOption:function(){return this.props.allowCreate&&!this.state.focusedOption?this.selectValue(this.state.inputValue):this.state.focusedOption?this.selectValue(this.state.focusedOption):void 0},focusOption:function(e){this.setState({focusedOption:e})},focusNextOption:function(){this.focusAdjacentOption("next")},focusPreviousOption:function(){this.focusAdjacentOption("previous")},focusAdjacentOption:function(e){this._focusedOptionReveal=!0;var t=this.state.filteredOptions.filter(function(e){return!e.disabled});if(!this.state.isOpen)return void this.setState({isOpen:!0,inputValue:"",focusedOption:this.state.focusedOption||t["next"===e?0:t.length-1]},this._bindCloseMenuIfClickedOutside);if(t.length){for(var n=-1,r=0;r<t.length;r++)if(this.state.focusedOption===t[r]){n=r;break}var o=t[0];"next"===e&&n>-1&&n<t.length-1?o=t[n+1]:"previous"===e&&(o=n>0?t[n-1]:t[t.length-1]),this.setState({focusedOption:o})}},unfocusOption:function(e){this.state.focusedOption===e&&this.setState({focusedOption:null})},renderOptionLabel:function(e){return e[this.props.labelKey]},buildMenu:function(){var e=this.state.focusedOption?this.state.focusedOption[this.props.valueKey]:null,t=this.props.optionRenderer||this.renderOptionLabel;this.state.filteredOptions.length>0&&(e=null==e?this.state.filteredOptions[0]:e);var n=this.state.filteredOptions;if(this.props.allowCreate&&this.state.inputValue.trim()){var r=this.state.inputValue;n=n.slice();var o=this.props.newOptionCreator?this.props.newOptionCreator(r):{value:r,label:r,create:!0};n.unshift(o)}var a=Object.keys(n).map(function(r){var o=n[r],a=this.state.value===o[this.props.valueKey],s=e===o[this.props.valueKey],c=u({"Select-option":!0,"is-selected":a,"is-focused":s,"is-disabled":o.disabled}),l=s?"focused":null,p=i.createElement(this.props.optionComponent,{key:"option-"+o[this.props.valueKey],className:c,renderFunc:t,mouseDown:this.selectValue,mouseEnter:this.focusOption,mouseLeave:this.unfocusOption,addLabelText:this.props.addLabelText,option:o,ref:l});return p},this);if(a.length)return a;var s,c;return this.isLoading()?(c="Select-searching",s=this.props.searchingText):this.state.inputValue||!this.props.asyncOptions?(c="Select-noresults",s=this.props.noResultsText):(c="Select-search-prompt",s=this.props.searchPromptText),i.createElement("div",{className:c},s)},handleOptionLabelClick:function(e,t){this.props.onOptionLabelClick&&this.props.onOptionLabelClick(e,t)},isLoading:function(){return this.props.isLoading||this.state.isLoading},render:function(){var e=u("Select",this.props.className,{"Select--multi":this.props.multi,"is-searchable":this.props.searchable,"is-open":this.state.isOpen,"is-focused":this.state.isFocused,"is-loading":this.isLoading(),"is-disabled":this.props.disabled,"has-value":this.state.value}),t=[];if(this.props.multi&&this.state.values.forEach(function(e){var n=this.props.valueRenderer||this.renderOptionLabel,r=this.handleOptionLabelClick.bind(this,e),o=this.removeValue.bind(this,e),a=i.createElement(this.props.valueComponent,{key:e[this.props.valueKey],option:e,renderer:n,optionLabelClick:!!this.props.onOptionLabelClick,onOptionLabelClick:r,onRemove:o,disabled:this.props.disabled});t.push(a)},this),!(this.state.inputValue||this.props.multi&&t.length)){var n=this.state.values[0]||null;if(this.props.valueRenderer&&this.state.values.length)t.push(i.createElement(c,{key:0,option:n,renderer:this.props.valueRenderer,disabled:this.props.disabled}));else{var r=i.createElement(this.props.singleValueComponent,{key:"placeholder",value:n,placeholder:this.state.placeholder});t.push(r)}}var a,l,p=this.isLoading()?i.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},i.createElement("span",{className:"Select-loading"})):null,f=this.props.clearable&&this.state.value&&!this.props.disabled&&!this.isLoading()?i.createElement("span",{className:"Select-clear-zone",title:this.props.multi?this.props.clearAllText:this.props.clearValueText,"aria-label":this.props.multi?this.props.clearAllText:this.props.clearValueText,onMouseDown:this.clearValue,onTouchEnd:this.clearValue,onClick:this.clearValue},i.createElement("span",{className:"Select-clear",dangerouslySetInnerHTML:{__html:"&times;"}})):null,d=i.createElement("span",{className:"Select-arrow-zone",onMouseDown:this.handleMouseDownOnArrow},i.createElement("span",{className:"Select-arrow",onMouseDown:this.handleMouseDownOnArrow}));this.state.isOpen&&(l={ref:"menu",className:"Select-menu",onMouseDown:this.handleMouseDownOnMenu},a=i.createElement("div",{ref:"selectMenuContainer",className:"Select-menu-outer"},i.createElement("div",l,this.buildMenu())));var h,g={ref:"input",className:"Select-input "+(this.props.inputProps.className||""),tabIndex:this.props.tabIndex||0,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur};for(var m in this.props.inputProps)this.props.inputProps.hasOwnProperty(m)&&"className"!==m&&(g[m]=this.props.inputProps[m]);return this.props.disabled?this.props.multi&&this.state.values.length||(h=i.createElement("div",{className:"Select-input"}," ")):h=this.props.searchable?i.createElement(s,o({value:this.state.inputValue,onChange:this.handleInputChange,minWidth:"5"},g)):i.createElement("div",g," "),i.createElement("div",{ref:"wrapper",className:e},i.createElement("input",{type:"hidden",ref:"value",name:this.props.name,value:this.state.value,disabled:this.props.disabled}),i.createElement("div",{className:"Select-control",ref:"control",onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleMouseDown},t,h,p,f,d),a)}});t.exports=d},{"./Option":115,"./SingleValue":117,"./Value":118,classnames:119,react:509,"react-dom":274,"react-input-autosize":120}],117:[function(e,t,n){"use strict";var r=e("react"),o=e("classnames"),i=r.createClass({displayName:"SingleValue",propTypes:{placeholder:r.PropTypes.string,value:r.PropTypes.object},render:function(){var e=o("Select-placeholder",this.props.value&&this.props.value.className);return r.createElement("div",{className:e,style:this.props.value&&this.props.value.style,title:this.props.value&&this.props.value.title},this.props.placeholder)}});t.exports=i},{classnames:119,react:509}],118:[function(e,t,n){"use strict";var r=e("react"),o=e("classnames"),i=r.createClass({displayName:"Value",propTypes:{disabled:r.PropTypes.bool,onOptionLabelClick:r.PropTypes.func,onRemove:r.PropTypes.func,option:r.PropTypes.object.isRequired,optionLabelClick:r.PropTypes.bool,renderer:r.PropTypes.func},blockEvent:function(e){e.stopPropagation()},handleOnRemove:function(e){this.props.disabled||this.props.onRemove(e)},render:function(){var e=this.props.option.label;return this.props.renderer&&(e=this.props.renderer(this.props.option)),this.props.onRemove||this.props.optionLabelClick?(this.props.optionLabelClick&&(e=r.createElement("a",{className:o("Select-item-label__a",this.props.option.className),onMouseDown:this.blockEvent,onTouchEnd:this.props.onOptionLabelClick,onClick:this.props.onOptionLabelClick,style:this.props.option.style,title:this.props.option.title},e)),r.createElement("div",{className:o("Select-item",this.props.option.className),style:this.props.option.style,title:this.props.option.title},r.createElement("span",{className:"Select-item-icon",onMouseDown:this.blockEvent,onClick:this.handleOnRemove,onTouchEnd:this.handleOnRemove},"×"),r.createElement("span",{className:"Select-item-label"},e))):r.createElement("div",{className:o("Select-value",this.props.option.className),style:this.props.option.style,title:this.props.option.title},e)}});t.exports=i},{classnames:119,react:509}],119:[function(t,n,r){!function(){"use strict";function t(){for(var e=[],n=0;n<arguments.length;n++){var o=arguments[n];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o))e.push(t.apply(null,o));else if("object"===i)for(var a in o)r.call(o,a)&&o[a]&&e.push(a)}}return e.join(" ")}var r={}.hasOwnProperty;"undefined"!=typeof n&&n.exports?n.exports=t:"function"==typeof e&&"object"==typeof e.amd&&e.amd?e("classnames",[],function(){return t}):window.classNames=t}()},{}],120:[function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=e("react"),i={position:"absolute",visibility:"hidden",height:0,width:0,overflow:"scroll",whiteSpace:"pre"},a=("undefined"!=typeof window?function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}().bind(window):void 0,o.createClass({displayName:"AutosizeInput",propTypes:{value:o.PropTypes.any,defaultValue:o.PropTypes.any,onChange:o.PropTypes.func,style:o.PropTypes.object,className:o.PropTypes.string,minWidth:o.PropTypes.oneOfType([o.PropTypes.number,o.PropTypes.string]),inputStyle:o.PropTypes.object,inputClassName:o.PropTypes.string},getDefaultProps:function(){return{minWidth:1}},getInitialState:function(){return{inputWidth:this.props.minWidth}},componentDidMount:function(){this.copyInputStyles(),this.updateInputWidth()},componentDidUpdate:function(){this.updateInputWidth()},copyInputStyles:function(){if(this.isMounted()&&window.getComputedStyle){var e=window.getComputedStyle(this.refs.input);if(e){var t=this.refs.sizer;if(t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,this.props.placeholder){var n=this.refs.placeholderSizer;n.style.fontSize=e.fontSize,n.style.fontFamily=e.fontFamily,n.style.fontWeight=e.fontWeight,n.style.fontStyle=e.fontStyle,n.style.letterSpacing=e.letterSpacing}}}},updateInputWidth:function(){if(this.isMounted()&&"undefined"!=typeof this.refs.sizer.scrollWidth){var e=void 0;e=this.props.placeholder?Math.max(this.refs.sizer.scrollWidth,this.refs.placeholderSizer.scrollWidth)+2:this.refs.sizer.scrollWidth+2,e<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}},getInput:function(){return this.refs.input},focus:function(){this.refs.input.focus()},blur:function(){this.refs.input.blur()},select:function(){this.refs.input.select()},render:function(){var e=this.props.defaultValue||this.props.value||"",t=this.props.style||{};t.display||(t.display="inline-block");var n=r({},this.props.inputStyle);n.width=this.state.inputWidth+"px",n.boxSizing="content-box";var a=this.props.placeholder?o.createElement("div",{ref:"placeholderSizer",style:i},this.props.placeholder):null;return o.createElement("div",{className:this.props.className,style:t},o.createElement("input",r({},this.props,{ref:"input",className:this.props.inputClassName,style:n})),o.createElement("div",{ref:"sizer",style:i},e),a)}}));t.exports=a},{react:509}],121:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var s=e("react"),u=r(s),c=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e="cf-table";return this.props.striped&&(e+=" cf-table--striped"),this.props.hover&&(e+=" cf-table--hover"),this.props.bordered&&(e+=" cf-table--bordered"),this.props.condensed&&(e+=" cf-table--condensed"),u.default.createElement("table",{className:e},this.props.children)},t}(u.default.Component);c.propTypes={striped:s.PropTypes.bool,hover:s.PropTypes.bool,bordered:s.PropTypes.bool,condensed:s.PropTypes.bool},c.defaultProps={striped:!1,hover:!1,bordered:!0,condensed:!1},n.default=c},{react:509}],122:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");
4
- }function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var s=e("react"),u=r(s),c=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){return u.default.createElement("tbody",{className:"cf-table__body"},this.props.children)},t}(u.default.Component);n.default=c},{react:509}],123:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var s=e("react"),u=r(s),c=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e="cf-table__cell";return this.props.sortable&&(e+=" cf-table__cell--sortable"),u.default.createElement("td",{className:e},this.props.children)},t}(u.default.Component);c.propTypes={sortable:s.PropTypes.bool,editable:s.PropTypes.bool},n.default=c},{react:509}],124:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var s=e("react"),u=r(s),c=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){return u.default.createElement("tfoot",{className:"cf-table__foot"},this.props.children)},t}(u.default.Component);n.default=c},{react:509}],125:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var s=e("react"),u=r(s),c=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){return u.default.createElement("thead",{className:"cf-table__head"},this.props.children)},t}(u.default.Component);n.default=c},{react:509}],126:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var s=e("react"),u=r(s),c=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e="cf-table__cell cf-table__cell--head";return this.props.sortable&&(e+=" cf-table__cell--sortable"),u.default.createElement("th",{className:e},this.props.children)},t}(u.default.Component);c.propTypes={sortable:s.PropTypes.bool,editable:s.PropTypes.bool},n.default=c},{react:509}],127:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var s=e("react"),u=r(s),c=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e="cf-table__row cf-table__row--"+this.props.type;return this.props.accent&&(e+=" cf-table__row--accent-"+this.props.accent),u.default.createElement("tr",{className:e},this.props.children)},t}(u.default.Component);c.propTypes={type:s.PropTypes.oneOf(["default","info","success","warning","error"]),accent:s.PropTypes.oneOf([!1,"gray","orange","pink","red","green","purple"])},c.defaultProps={type:"default",accent:!1},n.default=c},{react:509}],128:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}n.__esModule=!0,n.TableRow=n.TableHeadCell=n.TableHead=n.TableFoot=n.TableCell=n.TableBody=n.Table=void 0;var o=e("./Table"),i=r(o),a=e("./TableBody"),s=r(a),u=e("./TableCell"),c=r(u),l=e("./TableFoot"),p=r(l),f=e("./TableHead"),d=r(f),h=e("./TableHeadCell"),g=r(h),m=e("./TableRow"),y=r(m);n.Table=i.default,n.TableBody=s.default,n.TableCell=c.default,n.TableFoot=p.default,n.TableHead=d.default,n.TableHeadCell=g.default,n.TableRow=y.default},{"./Table":121,"./TableBody":122,"./TableCell":123,"./TableFoot":124,"./TableHead":125,"./TableHeadCell":126,"./TableRow":127}],129:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=e("cf-component-viewport"),c=e("cf-component-select"),l=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.getChildContext=function(){return{activeTab:this.props.activeTab}},t.prototype.handleChange=function(e){e!==this.props.active&&this.props.onChange(e)},t.prototype.handleKeyDown=function(e,t){13===t.which&&this.handleChange(e)},t.prototype.render=function(){var e=this;return a.createElement("section",{className:"cf-tabs"},a.createElement(u,{size:"mobile"},a.createElement(c,{onChange:this.handleChange,value:this.props.activeTab,options:this.props.tabs.map(function(e){return{value:e.id,label:e.label}})})),a.createElement(u,{not:!0,size:"mobile"},a.createElement("ul",{className:"cf-tabs__group",role:"tablist"},this.props.tabs.map(function(t){var n=t.id===e.props.activeTab,r="cf-tabs__item";return n&&(r+=" cf-tabs__item--active"),a.createElement("li",{key:t.id,role:"tab",tabIndex:0,"aria-controls":t.id,"aria-selected":n,className:r,onKeyDown:e.handleKeyDown.bind(e,t.id),onClick:e.handleChange.bind(e,t.id)},t.label)}))),this.props.children)},t}(a.Component);l.propTypes={onChange:s.func.isRequired,activeTab:s.string.isRequired,tabs:s.arrayOf(s.shape({id:s.string.isRequired,label:s.string.isRequired})).isRequired},l.childContextTypes={activeTab:s.string.isRequired},t.exports=l},{"cf-component-select":114,"cf-component-viewport":134,react:509}],130:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=this.context.activeTab===this.props.id;return a.createElement("div",{className:"cf-tabs__panel",role:"tabpanel","aria-labelledby":this.props.id,"aria-hidden":!e,style:{display:e?"block":"none"}},this.props.children)},t}(a.Component);u.propTypes={id:s.string.isRequired},u.contextTypes={activeTab:s.string.isRequired},t.exports=u},{react:509}],131:[function(e,t,n){"use strict";n.Tabs=e("./Tabs"),n.TabsPanel=e("./TabsPanel")},{"./Tabs":129,"./TabsPanel":130}],132:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=e("react-responsive"),c=e("./buildMediaQuery"),l={mobile:{minWidth:null,maxWidth:"15.6em"},mobileWide:{minWidth:"15.6em",maxWidth:"32.4em"},tablet:{minWidth:"32.4em",maxWidth:"49.2em"},desktop:{minWidth:"49.2em",maxWidth:"66em"},desktopLarge:{minWidth:"66em",maxWidth:null}},p=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.size,n=e.not,r=c(l[t],n);return a.createElement(u,{query:r},this.props.children)},t}(a.Component);p.propTypes={not:s.bool,size:s.oneOf(["mobile","mobileWide","tablet","desktop","desktopLarge"]).isRequired},p.defaultProps={not:!1},t.exports=p},{"./buildMediaQuery":133,react:509,"react-responsive":139}],133:[function(e,t,n){"use strict";function r(e,t){var n=e.minWidth,r=e.maxWidth,o="";return n&&(o+="(min-width: "+n+")"),n&&r&&(o+=" and "),r&&(o+="(max-width: "+r+")"),t&&(o="not all and "+o),o}t.exports=r},{}],134:[function(e,t,n){"use strict";t.exports=e("./Viewport")},{"./Viewport":132}],135:[function(e,t,n){"use strict";function r(e){return e.replace(o,"-amp;").toLowerCase().replace(i,"-ms-")}var o=/[A-Z]/g,i=/^ms-/;t.exports=r},{}],136:[function(e,t,n){"use strict";function r(e,t){function n(e){u&&u.addListener(e)}function r(e){u&&u.removeListener(e)}function o(e){s.matches=e.matches,s.media=e.media}var s=this;if(a){var u=a.call(window,e);this.matches=u.matches,this.media=u.media,u.addListener(o)}else this.matches=i(e,t),this.media=e;this.addListener=n,this.removeListener=r}function o(e,t){return new r(e,t)}var i=e("css-mediaquery").match,a="undefined"!=typeof window?window.matchMedia:null;t.exports=o},{"css-mediaquery":137}],137:[function(e,t,n){"use strict";function r(e,t){return o(e).some(function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var o=e.expressions.every(function(e){var n=e.feature,r=e.modifier,o=e.value,u=t[n];if(!u)return!1;switch(n){case"orientation":case"scan":return u.toLowerCase()===o.toLowerCase();case"width":case"height":case"device-width":case"device-height":o=s(o),u=s(u);break;case"resolution":o=a(o),u=a(u);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":o=i(o),u=i(u);break;case"grid":case"color":case"color-index":case"monochrome":o=parseInt(o,10)||1,u=parseInt(u,10)||0}switch(r){case"min":return u>=o;case"max":return u<=o;default:return u===o}});return o&&!n||!o&&n})}function o(e){return e.split(",").map(function(e){e=e.trim();var t=e.match(u),n=t[1],r=t[2],o=t[3]||"",i={};return i.inverse=!!n&&"not"===n.toLowerCase(),i.type=r?r.toLowerCase():"all",o=o.match(/\([^\)]+\)/g)||[],i.expressions=o.map(function(e){var t=e.match(c),n=t[1].toLowerCase().match(l);return{modifier:n[1],feature:n[2],value:t[2]}}),i})}function i(e){var t,n=Number(e);return n||(t=e.match(/^(\d+)\s*\/\s*(\d+)#x2F;),n=t[1]/t[2]),n}function a(e){var t=parseFloat(e),n=String(e).match(f)[1];switch(n){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function s(e){var t=parseFloat(e),n=String(e).match(p)[1];switch(n){case"em":return 16*t;case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}n.match=r,n.parse=o;var u=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,c=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,l=/^(?:(min|max)-)?(.+)/,p=/(em|rem|px|cm|mm|in|pt|pc)?#x2F;,f=/(dpi|dpcm|dppx)?#x2F;},{}],138:[function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}var i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=o()?Object.assign:function(e,t){for(var n,o,s=r(e),u=1;u<arguments.length;u++){n=Object(arguments[u]);for(var c in n)i.call(n,c)&&(s[c]=n[c]);if(Object.getOwnPropertySymbols){o=Object.getOwnPropertySymbols(n);for(var l=0;l<o.length;l++)a.call(n,o[l])&&(s[o[l]]=n[o[l]])}}return s}},{}],139:[function(e,t,n){"use strict";function r(e,t){var n=c({},e);return t.forEach(function(e){delete n[e]}),n}var o=e("react"),i=e("matchmedia"),a=e("hyphenate-style-name"),s=e("./mediaQuery"),u=e("./toQuery"),c=e("object-assign"),l={component:o.PropTypes.node,query:o.PropTypes.string,values:o.PropTypes.shape(s.matchers),children:o.PropTypes.array},p=Object.keys(s.all),f=Object.keys(l),d=f.concat(p),h=o.createClass({displayName:"MediaQuery",getDefaultProps:function(){return{values:{}}},getInitialState:function(){return{matches:!1}},componentWillMount:function(){this.updateQuery(this.props)},componentWillReceiveProps:function(e){this.updateQuery(e)},updateQuery:function(e){var t;if(e.query?this.query=e.query:this.query=u(r(e,f)),!this.query)throw new Error("Invalid or missing MediaQuery!");e.values&&(t=Object.keys(e.values).reduce(function(t,n){return t[a(n)]=e.values[n],t},{})),this._mql&&this._mql.removeListener(this.updateMatches),this._mql=i(this.query,t),this._mql.addListener(this.updateMatches),this.updateMatches()},componentWillUnmount:function(){this._mql.removeListener(this.updateMatches)},updateMatches:function(){this._mql.matches!==this.state.matches&&this.setState({matches:this._mql.matches})},render:function(){if(this.state.matches===!1)return null;var e=r(this.props,d),t=Object.keys(e).length>0,n=o.Children.count(this.props.children),i=this.props.component||n>1||"string"==typeof this.props.children||void 0===this.props.children;return i?o.createElement(this.props.component||"div",e,this.props.children):t?o.cloneElement(this.props.children,e):n?this.props.children:null}});t.exports=h},{"./mediaQuery":140,"./toQuery":141,"hyphenate-style-name":135,matchmedia:136,"object-assign":138,react:509}],140:[function(e,t,n){var r=e("react").PropTypes,o=e("object-assign"),i=r.oneOfType([r.string,r.number]),a={orientation:r.oneOf(["portrait","landscape"]),scan:r.oneOf(["progressive","interlace"]),aspectRatio:r.string,deviceAspectRatio:r.string,height:i,deviceHeight:i,width:i,deviceWidth:i,color:r.bool,colorIndex:r.bool,monochrome:r.bool,resolution:i},s={minAspectRatio:r.string,maxAspectRatio:r.string,minDeviceAspectRatio:r.string,maxDeviceAspectRatio:r.string,minHeight:i,maxHeight:i,minDeviceHeight:i,maxDeviceHeight:i,minWidth:i,maxWidth:i,minDeviceWidth:i,maxDeviceWidth:i,minColor:r.number,maxColor:r.number,minColorIndex:r.number,maxColorIndex:r.number,minMonochrome:r.number,maxMonochrome:r.number,minResolution:i,maxResolution:i};o(s,a);var u={all:r.bool,grid:r.bool,aural:r.bool,braille:r.bool,handheld:r.bool,print:r.bool,projection:r.bool,screen:r.bool,tty:r.bool,tv:r.bool,embossed:r.bool},c={};o(c,u),o(c,s),o(a,{type:Object.keys(u)}),t.exports={all:c,types:u,matchers:a,features:s}},{"object-assign":138,react:509}],141:[function(e,t,n){"use strict";function r(e){return"not "+e}function o(e,t){var n=a(e);return"number"==typeof t&&(t+="px"),t===!0?e:t===!1?r(e):"("+n+": "+t+")"}function i(e){return e.join(" and ")}var a=e("hyphenate-style-name"),s=e("./mediaQuery");t.exports=function(e){var t=[];return Object.keys(s.all).forEach(function(n){var r=e[n];null!=r&&t.push(o(n,r))}),i(t)}},{"./mediaQuery":140,"hyphenate-style-name":135}],142:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=e("react-required-if"),c=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=i=o(this,e.call.apply(e,[this].concat(u))),i.handleChange=function(e){i.props.onChange&&i.props.onChange(e.target.value)},a=n,o(i,a)}return i(t,e),t.prototype.render=function(){var e="cf-textarea";return this.props.disabled&&(e+=" cf-textarea--disabled"),this.props.readOnly&&(e+=" cf-textarea--readonly"),a.createElement("textarea",{className:e,name:this.props.name,value:this.props.value,disabled:this.props.disabled,readOnly:this.props.readOnly,onChange:this.handleChange,onFocus:this.props.onFocus,onBlur:this.props.onBlur})},t}(a.Component);c.propTypes={name:s.string.isRequired,value:s.string.isRequired,disabled:s.bool,readOnly:s.bool,onChange:u(s.func,function(e){return!e.disabled&&!e.readOnly}),onFocus:s.func,onBlur:s.func},t.exports=c},{react:509,"react-required-if":144}],143:[function(e,t,n){"use strict";t.exports=e("./Textarea")},{"./Textarea":142}],144:[function(e,t,n){t.exports=function(e,t){return function(n){const r=t(n)?e.isRequired:e;return r.apply(this,arguments)}}},{}],145:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=i=o(this,e.call.apply(e,[this].concat(u))),i.handleChange=function(e){i.props.onChange(e.target.checked)},a=n,o(i,a)}return i(t,e),t.prototype.render=function(){var e="cf-toggle";return this.props.value&&(e+=" cf-toggle--active"),a.createElement("label",{htmlFor:this.props.name,className:e},a.createElement("input",{className:"cf-toggle__checkbox",type:"checkbox",id:this.props.name,name:this.props.name,checked:this.props.value,onChange:this.handleChange,onFocus:this.props.onFocus,onBlur:this.props.onBlur}),a.createElement("span",{className:"cf-toggle__label"},this.props.label),a.createElement("span",{className:"cf-toggle__handle"}))},t}(a.Component);u.propTypes={label:s.oneOfType([s.string,s.oneOf([!1])]).isRequired,name:s.string,value:s.bool,onChange:s.func,onFocus:s.func,onBlur:s.func},t.exports=u},{react:509}],146:[function(e,t,n){"use strict";t.exports=e("./Toggle")},{"./Toggle":145}],147:[function(e,t,n){"use strict";function r(e){m.push(e)}function o(e,t,n,r){n=n||{},n.method=e,n.url=t,n.callback=r,m.forEach(function(e){return e(n)});var o=l[g[n.method]](n.url);n.parameters&&o.query(n.parameters),n.headers&&o.set(n.headers),n.body&&o.send(n.body);var i=n.method+" "+n.url;return f(i),o.end(function(e,t){i=i+" ("+t.status+" "+t.statusText+")";var r={headers:t.headers,status:t.status,body:t.body,text:t.text};e?(d(i),n.callback(r)):(h(i),n.callback(null,r))}),function(){o.abort()}}function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.apply(void 0,["GET"].concat(t))}function a(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.apply(void 0,["POST"].concat(t))}function s(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.apply(void 0,["PUT"].concat(t))}function u(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.apply(void 0,["PATCH"].concat(t))}function c(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.apply(void 0,["DELETE"].concat(t))}var l=e("superagent"),p=e("cf-util-logger"),f=p("http:request"),d=p("http:error"),h=p("http:success"),g={GET:"get",POST:"post",PUT:"put",PATCH:"patch",DELETE:"del"},m=[];t.exports={beforeSend:r,request:o,get:i,post:a,put:s,patch:u,del:c}},{"cf-util-logger":150,superagent:154}],148:[function(e,t,n){"use strict";t.exports=e("./http")},{"./http":147}],149:[function(e,t,n){"use strict";function r(e){var t=o(e);return function(e){t(e)}}var o=e("debug");t.exports=r},{debug:151}],150:[function(e,t,n){"use strict";t.exports=e("./createLogger")},{"./createLogger":149}],151:[function(e,t,n){function r(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function o(){var e=arguments,t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+n.humanize(this.diff),!t)return e;var r="color: "+this.color;e=[e[0],r,"color: inherit"].concat(Array.prototype.slice.call(e,1));var o=0,i=0;return e[0].replace(/%[a-z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))}),e.splice(i,0,r),e}function i(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(e){try{null==e?n.storage.removeItem("debug"):n.storage.debug=e}catch(e){}}function s(){var e;try{e=n.storage.debug}catch(e){}return e}function u(){try{return window.localStorage}catch(e){}}n=t.exports=e("./debug"),n.log=i,n.formatArgs=o,n.save=a,n.load=s,n.useColors=r,n.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:u(),n.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],n.formatters.j=function(e){return JSON.stringify(e)},n.enable(s())},{"./debug":152}],152:[function(e,t,n){function r(){return n.colors[l++%n.colors.length]}function o(e){function t(){}function o(){var e=o,t=+new Date,i=t-(c||t);e.diff=i,e.prev=c,e.curr=t,c=t,null==e.useColors&&(e.useColors=n.useColors()),null==e.color&&e.useColors&&(e.color=r());var a=Array.prototype.slice.call(arguments);a[0]=n.coerce(a[0]),"string"!=typeof a[0]&&(a=["%o"].concat(a));var s=0;a[0]=a[0].replace(/%([a-z%])/g,function(t,r){if("%%"===t)return t;s++;var o=n.formatters[r];if("function"==typeof o){var i=a[s];t=o.call(e,i),a.splice(s,1),s--}return t}),"function"==typeof n.formatArgs&&(a=n.formatArgs.apply(e,a));var u=o.log||n.log||console.log.bind(console);u.apply(e,a)}t.enabled=!1,o.enabled=!0;var i=n.enabled(e)?o:t;return i.namespace=e,i}function i(e){n.save(e);for(var t=(e||"").split(/[\s,]+/),r=t.length,o=0;o<r;o++)t[o]&&(e=t[o].replace(/\*/g,".*?"),"-"===e[0]?n.skips.push(new RegExp("^"+e.substr(1)+"quot;)):n.names.push(new RegExp("^"+e+"quot;)))}function a(){n.enable("")}function s(e){var t,r;for(t=0,r=n.skips.length;t<r;t++)if(n.skips[t].test(e))return!1;for(t=0,r=n.names.length;t<r;t++)if(n.names[t].test(e))return!0;return!1}function u(e){return e instanceof Error?e.stack||e.message:e}n=t.exports=o,n.coerce=u,n.disable=a,n.enable=i,n.enabled=s,n.humanize=e("ms"),n.names=[],n.skips=[],n.formatters={};var c,l=0},{ms:153}],153:[function(e,t,n){function r(e){if(e=""+e,!(e.length>1e4)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?#x2F;i.exec(e);if(t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*p;case"days":case"day":case"d":return n*l;case"hours":case"hour":case"hrs":case"hr":case"h":return n*c;case"minutes":case"minute":case"mins":case"min":case"m":return n*u;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n}}}}function o(e){return e>=l?Math.round(e/l)+"d":e>=c?Math.round(e/c)+"h":e>=u?Math.round(e/u)+"m":e>=s?Math.round(e/s)+"s":e+"ms"}function i(e){return a(e,l,"day")||a(e,c,"hour")||a(e,u,"minute")||a(e,s,"second")||e+" ms"}function a(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}var s=1e3,u=60*s,c=60*u,l=24*c,p=365.25*l;t.exports=function(e,t){return t=t||{},"string"==typeof e?r(e):t.long?i(e):o(e)}},{}],154:[function(e,t,n){function r(){}function o(e){var t={}.toString.call(e);switch(t){case"[object File]":case"[object Blob]":case"[object FormData]":return!0;default:return!1}}function i(e){if(!_(e))return e;var t=[];for(var n in e)null!=e[n]&&a(t,n,e[n]);return t.join("&")}function a(e,t,n){return Array.isArray(n)?n.forEach(function(n){a(e,t,n)}):void e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))}function s(e){for(var t,n,r={},o=e.split("&"),i=0,a=o.length;i<a;++i)n=o[i],t=n.split("="),r[decodeURIComponent(t[0])]=decodeURIComponent(t[1]);return r}function u(e){var t,n,r,o,i=e.split(/\r?\n/),a={};i.pop();for(var s=0,u=i.length;s<u;++s)n=i[s],t=n.indexOf(":"),r=n.slice(0,t).toLowerCase(),o=E(n.slice(t+1)),a[r]=o;return a}function c(e){return/[\/+]json\b/.test(e)}function l(e){return e.split(/ *; */).shift()}function p(e){return y(e.split(/ *; */),function(e,t){var n=t.split(/ *= */),r=n.shift(),o=n.shift();return r&&o&&(e[r]=o),e},{})}function f(e,t){t=t||{},this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!=this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||"undefined"==typeof this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText,this.setStatusProperties(this.xhr.status),this.header=this.headers=u(this.xhr.getAllResponseHeaders()),this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this.setHeaderProperties(this.header),this.body="HEAD"!=this.req.method?this.parseBody(this.text?this.text:this.xhr.response):null}function d(e,t){var n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",function(){var e=null,t=null;try{t=new f(n)}catch(t){return e=new Error("Parser is unable to parse the response"),e.parse=!0,e.original=t,e.rawResponse=n.xhr&&n.xhr.responseText?n.xhr.responseText:null,e.statusCode=n.xhr&&n.xhr.status?n.xhr.status:null,n.callback(e)}if(n.emit("response",t),e)return n.callback(e,t);if(t.status>=200&&t.status<300)return n.callback(e,t);var r=new Error(t.statusText||"Unsuccessful HTTP response");r.original=e,r.response=t,r.status=t.status,n.callback(r,t)})}function h(e,t){var n=b("DELETE",e);return t&&n.end(t),n}var g,m=e("emitter"),y=e("reduce"),v=e("./request-base"),_=e("./is-object");g="undefined"!=typeof window?window:"undefined"!=typeof self?self:this;var b=t.exports=e("./request").bind(null,d);b.getXHR=function(){if(!(!g.XMLHttpRequest||g.location&&"file:"==g.location.protocol&&g.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}return!1};var E="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};b.serializeObject=i,b.parseString=s,b.types={html:"text/html",json:"application/json",xml:"application/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},b.serialize={"application/x-www-form-urlencoded":i,"application/json":JSON.stringify},b.parse={"application/x-www-form-urlencoded":s,"application/json":JSON.parse},f.prototype.get=function(e){return this.header[e.toLowerCase()]},f.prototype.setHeaderProperties=function(e){var t=this.header["content-type"]||"";this.type=l(t);var n=p(t);for(var r in n)this[r]=n[r]},f.prototype.parseBody=function(e){var t=b.parse[this.type];return!t&&c(this.type)&&(t=b.parse["application/json"]),t&&e&&(e.length||e instanceof Object)?t(e):null},f.prototype.setStatusProperties=function(e){1223===e&&(e=204);var t=e/100|0;this.status=this.statusCode=e,this.statusType=t,this.info=1==t,this.ok=2==t,this.clientError=4==t,this.serverError=5==t,this.error=(4==t||5==t)&&this.toError(),this.accepted=202==e,this.noContent=204==e,this.badRequest=400==e,this.unauthorized=401==e,this.notAcceptable=406==e,this.notFound=404==e,this.forbidden=403==e},f.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r="cannot "+t+" "+n+" ("+this.status+")",o=new Error(r);return o.status=this.status,o.method=t,o.url=n,o},b.Response=f,m(d.prototype);for(var x in v)d.prototype[x]=v[x];d.prototype.abort=function(){if(!this.aborted)return this.aborted=!0,this.xhr&&this.xhr.abort(),this.clearTimeout(),this.emit("abort"),this},d.prototype.type=function(e){return this.set("Content-Type",b.types[e]||e),this},d.prototype.responseType=function(e){return this._responseType=e,this},d.prototype.accept=function(e){return this.set("Accept",b.types[e]||e),this},d.prototype.auth=function(e,t,n){switch(n||(n={type:"basic"}),n.type){case"basic":var r=btoa(e+":"+t);this.set("Authorization","Basic "+r);break;case"auto":this.username=e,this.password=t}return this},d.prototype.query=function(e){
5
- return"string"!=typeof e&&(e=i(e)),e&&this._query.push(e),this},d.prototype.attach=function(e,t,n){return this._getFormData().append(e,t,n||t.name),this},d.prototype._getFormData=function(){return this._formData||(this._formData=new g.FormData),this._formData},d.prototype.send=function(e){var t=_(e),n=this._header["content-type"];if(t&&_(this._data))for(var r in e)this._data[r]=e[r];else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],"application/x-www-form-urlencoded"==n?this._data=this._data?this._data+"&"+e:e:this._data=(this._data||"")+e):this._data=e;return!t||o(e)?this:(n||this.type("json"),this)},f.prototype.parse=function(e){return g.console&&console.warn("Client-side parse() method has been renamed to serialize(). This method is not compatible with superagent v2.0"),this.serialize(e),this},f.prototype.serialize=function(e){return this._parser=e,this},d.prototype.callback=function(e,t){var n=this._callback;this.clearTimeout(),n(e,t)},d.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},d.prototype.timeoutError=function(){var e=this._timeout,t=new Error("timeout of "+e+"ms exceeded");t.timeout=e,this.callback(t)},d.prototype.withCredentials=function(){return this._withCredentials=!0,this},d.prototype.end=function(e){var t=this,n=this.xhr=b.getXHR(),i=this._query.join("&"),a=this._timeout,s=this._formData||this._data;this._callback=e||r,n.onreadystatechange=function(){if(4==n.readyState){var e;try{e=n.status}catch(t){e=0}if(0==e){if(t.timedout)return t.timeoutError();if(t.aborted)return;return t.crossDomainError()}t.emit("end")}};var u=function(e){e.total>0&&(e.percent=e.loaded/e.total*100),e.direction="download",t.emit("progress",e)};this.hasListeners("progress")&&(n.onprogress=u);try{n.upload&&this.hasListeners("progress")&&(n.upload.onprogress=u)}catch(e){}if(a&&!this._timer&&(this._timer=setTimeout(function(){t.timedout=!0,t.abort()},a)),i&&(i=b.serializeObject(i),this.url+=~this.url.indexOf("?")?"&"+i:"?"+i),this.username&&this.password?n.open(this.method,this.url,!0,this.username,this.password):n.open(this.method,this.url,!0),this._withCredentials&&(n.withCredentials=!0),"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof s&&!o(s)){var l=this._header["content-type"],p=this._parser||b.serialize[l?l.split(";")[0]:""];!p&&c(l)&&(p=b.serialize["application/json"]),p&&(s=p(s))}for(var f in this.header)null!=this.header[f]&&n.setRequestHeader(f,this.header[f]);return this._responseType&&(n.responseType=this._responseType),this.emit("request",this),n.send("undefined"!=typeof s?s:null),this},b.Request=d,b.get=function(e,t,n){var r=b("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},b.head=function(e,t,n){var r=b("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},b.del=h,b.delete=h,b.patch=function(e,t,n){var r=b("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},b.post=function(e,t,n){var r=b("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},b.put=function(e,t,n){var r=b("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},{"./is-object":155,"./request":157,"./request-base":156,emitter:158,reduce:159}],155:[function(e,t,n){function r(e){return null!=e&&"object"==typeof e}t.exports=r},{}],156:[function(e,t,n){var r=e("./is-object");n.clearTimeout=function(){return this._timeout=0,clearTimeout(this._timer),this},n.parse=function(e){return this._parser=e,this},n.timeout=function(e){return this._timeout=e,this},n.then=function(e,t){return this.end(function(n,r){n?t(n):e(r)})},n.use=function(e){return e(this),this},n.get=function(e){return this._header[e.toLowerCase()]},n.getHeader=n.get,n.set=function(e,t){if(r(e)){for(var n in e)this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},n.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},n.field=function(e,t){return this._getFormData().append(e,t),this}},{"./is-object":155}],157:[function(e,t,n){function r(e,t,n){return"function"==typeof n?new e("GET",t).end(n):2==arguments.length?new e("GET",t):new e(t,n)}t.exports=r},{}],158:[function(e,t,n){function r(e){if(e)return o(e)}function o(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}"undefined"!=typeof t&&(t.exports=r),r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["quot;+e]=this._callbacks["quot;+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks["quot;+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["quot;+e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return this},r.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=[].slice.call(arguments,1),n=this._callbacks["quot;+e];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this},r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["quot;+e]||[]},r.prototype.hasListeners=function(e){return!!this.listeners(e).length}},{}],159:[function(e,t,n){t.exports=function(e,t,n){for(var r=0,o=e.length,i=3==arguments.length?n:e[r++];r<o;)i=t.call(null,i,e[r],++r,e);return i}},{}],160:[function(t,n,r){!function(t,o){"object"==typeof r&&"undefined"!=typeof n?o(r):"function"==typeof e&&e.amd?e(["exports"],o):o(t.d3=t.d3||{})}(this,function(e){"use strict";function t(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function n(e){return e=t(Math.abs(e)),e?e[1]:NaN}function r(e,t){return function(n,r){for(var o=n.length,i=[],a=0,s=e[0],u=0;o>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),i.push(n.substring(o-=s,o+s)),!((u+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}function o(e,t){e=e.toPrecision(t);e:for(var n,r=e.length,o=1,i=-1;o<r;++o)switch(e[o]){case".":i=n=o;break;case"0":0===i&&(i=o),n=o;break;case"e":break e;default:i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(n+1):e}function i(e,n){var r=t(e,n);if(!r)return e+"";var o=r[0],i=r[1],a=i-(g=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=o.length;return a===s?o:a>s?o+new Array(a-s+1).join("0"):a>0?o.slice(0,a)+"."+o.slice(a):"0."+new Array(1-a).join("0")+t(e,Math.max(0,n+a-1))[0]}function a(e,n){var r=t(e,n);if(!r)return e+"";var o=r[0],i=r[1];return i<0?"0."+new Array((-i)).join("0")+o:o.length>i+1?o.slice(0,i+1)+"."+o.slice(i+1):o+new Array(i-o.length+2).join("0")}function s(e){return new u(e)}function u(e){if(!(t=y.exec(e)))throw new Error("invalid format: "+e);var t,n=t[1]||" ",r=t[2]||">",o=t[3]||"-",i=t[4]||"",a=!!t[5],s=t[6]&&+t[6],u=!!t[7],c=t[8]&&+t[8].slice(1),l=t[9]||"";"n"===l?(u=!0,l="g"):m[l]||(l=""),(a||"0"===n&&"="===r)&&(a=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=o,this.symbol=i,this.zero=a,this.width=s,this.comma=u,this.precision=c,this.type=l}function c(e){return e}function l(e){function t(e){function t(e){var t,a,s,c=y,m=v;if("c"===h)m=b(e)+m,e="";else{e=+e;var x=(e<0||1/e<0)&&(e*=-1,!0);if(e=b(e,d),x)for(t=-1,a=e.length,x=!1;++t<a;)if(s=e.charCodeAt(t),48<s&&s<58||"x"===h&&96<s&&s<103||"X"===h&&64<s&&s<71){x=!0;break}if(c=(x?"("===o?o:"-":"-"===o||"("===o?"":o)+c,m=m+("s"===h?_[8+g/3]:"")+(x&&"("===o?")":""),E)for(t=-1,a=e.length;++t<a;)if(s=e.charCodeAt(t),48>s||s>57){m=(46===s?u+e.slice(t+1):e.slice(t))+m,e=e.slice(0,t);break}}f&&!l&&(e=i(e,1/0));var C=c.length+e.length+m.length,w=C<p?new Array(p-C+1).join(n):"";switch(f&&l&&(e=i(w+e,w.length?p-m.length:1/0),w=""),r){case"<":return c+e+m+w;case"=":return c+w+e+m;case"^":return w.slice(0,C=w.length>>1)+c+e+m+w.slice(C)}return w+c+e+m}e=s(e);var n=e.fill,r=e.align,o=e.sign,c=e.symbol,l=e.zero,p=e.width,f=e.comma,d=e.precision,h=e.type,y="quot;===c?a[0]:"#"===c&&/[boxX]/.test(h)?"0"+h.toLowerCase():"",v="quot;===c?a[1]:/[%p]/.test(h)?"%":"",b=m[h],E=!h||/[defgprs%]/.test(h);return d=null==d?h?6:12:/[gprs]/.test(h)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),t.toString=function(){return e+""},t}function o(e,r){var o=t((e=s(e),e.type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(n(r)/3))),a=Math.pow(10,-i),u=_[8+i/3];return function(e){return o(a*e)+u}}var i=e.grouping&&e.thousands?r(e.grouping,e.thousands):c,a=e.currency,u=e.decimal;return{format:t,formatPrefix:o}}function p(t){return v=l(t),e.format=v.format,e.formatPrefix=v.formatPrefix,v}function f(e){return Math.max(0,-n(Math.abs(e)))}function d(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(n(t)/3)))-n(Math.abs(e)))}function h(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,n(t)-n(e))+1}var g,m={"":o,"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return a(100*e,t)},r:a,s:i,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},y=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?#x2F;i;u.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var v,_=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];p({decimal:".",thousands:",",grouping:[3],currency:["quot;,""]}),e.formatDefaultLocale=p,e.formatLocale=l,e.formatSpecifier=s,e.precisionFixed=f,e.precisionPrefix=d,e.precisionRound=h,Object.defineProperty(e,"__esModule",{value:!0})})},{}],161:[function(e,t,n){"use strict";n.__esModule=!0;var r="PUSH";n.PUSH=r;var o="REPLACE";n.REPLACE=o;var i="POP";n.POP=i,n.default={PUSH:r,REPLACE:o,POP:i}},{}],162:[function(e,t,n){"use strict";function r(e,t,n){function r(){a=!0,n.apply(this,arguments)}function o(){a||(i<e?t.call(this,i++,o,r):r.apply(this,arguments))}var i=0,a=!1;o()}n.__esModule=!0,n.loopAsync=r},{}],163:[function(e,t,n){(function(t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return c+e}function i(e,n){try{window.sessionStorage.setItem(o(e),JSON.stringify(n))}catch(e){if(e.name===p)return void("production"!==t.env.NODE_ENV?u.default(!1,"[history] Unable to save state; sessionStorage is not available due to security settings"):void 0);if(e.name===l&&0===window.sessionStorage.length)return void("production"!==t.env.NODE_ENV?u.default(!1,"[history] Unable to save state; sessionStorage is not available in Safari private mode"):void 0);throw e}}function a(e){var n=void 0;try{n=window.sessionStorage.getItem(o(e))}catch(e){if(e.name===p)return"production"!==t.env.NODE_ENV?u.default(!1,"[history] Unable to read state; sessionStorage is not available due to security settings"):void 0,null}if(n)try{return JSON.parse(n)}catch(e){}return null}n.__esModule=!0,n.saveState=i,n.readState=a;var s=e("warning"),u=r(s),c="@@History/",l="QuotaExceededError",p="SecurityError"}).call(this,e("_process"))},{_process:2,warning:183}],164:[function(e,t,n){"use strict";function r(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function o(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)}function i(){return window.location.href.split("#")[1]||""}function a(e){window.location.replace(window.location.pathname+window.location.search+"#"+e)}function s(){return window.location.pathname+window.location.search+window.location.hash}function u(e){e&&window.history.go(e)}function c(e,t){t(window.confirm(e))}function l(){var e=navigator.userAgent;return(e.indexOf("Android 2.")===-1&&e.indexOf("Android 4.0")===-1||e.indexOf("Mobile Safari")===-1||e.indexOf("Chrome")!==-1||e.indexOf("Windows Phone")!==-1)&&(e.indexOf("CriOS")===-1&&(window.history&&"pushState"in window.history))}function p(){var e=navigator.userAgent;return e.indexOf("Firefox")===-1}n.__esModule=!0,n.addEventListener=r,n.removeEventListener=o,n.getHashPath=i,n.replaceHashPath=a,n.getWindowPath=s,n.go=u,n.getUserConfirmation=c,n.supportsHistory=l,n.supportsGoWithoutReloadUsingHash=p},{}],165:[function(e,t,n){"use strict";n.__esModule=!0;var r=!("undefined"==typeof window||!window.document||!window.document.createElement);n.canUseDOM=r},{}],166:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){function t(e){return c.canUseDOM?void 0:"production"!==r.env.NODE_ENV?u.default(!1,"DOM history needs a DOM"):u.default(!1),n.listen(e)}var n=f.default(a({getUserConfirmation:l.getUserConfirmation},e,{go:l.go}));return a({},n,{listen:t})}n.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=e("invariant"),u=o(s),c=e("./ExecutionEnvironment"),l=e("./DOMUtils"),p=e("./createHistory"),f=o(p);n.default=i,t.exports=n.default}).call(this,e("_process"))},{"./DOMUtils":164,"./ExecutionEnvironment":165,"./createHistory":168,_process:2,invariant:180}],167:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){return"string"==typeof e&&"/"===e.charAt(0)}function a(){var e=v.getHashPath();return!!i(e)||(v.replaceHashPath("/"+e),!1)}function s(e,t,n){return e+(e.indexOf("?")===-1?"?":"&")+(t+"="+n)}function u(e,t){return e.replace(new RegExp("[?&]?"+t+"=[a-zA-Z0-9]+"),"")}function c(e,t){var n=e.match(new RegExp("\\?.*?\\b"+t+"=(.+?)\\b"));return n&&n[1]}function l(){function e(){var e=v.getHashPath(),t=void 0,n=void 0;R?(t=c(e,R),e=u(e,R),t?n=_.readState(t):(n=null,t=N.createKey(),v.replaceHashPath(s(e,R,t)))):t=n=null;var r=C.default(e);return N.createLocation(p({},r,{state:n}),void 0,t)}function t(t){function n(){a()&&r(e())}var r=t.transitionTo;return a(),v.addEventListener(window,"hashchange",n),function(){v.removeEventListener(window,"hashchange",n)}}function n(e){var t=e.basename,n=e.pathname,o=e.search,i=e.state,a=e.action,u=e.key;if(a!==m.POP){var c=(t||"")+n+o;R?(c=s(c,R,u),_.saveState(u,i)):e.key=e.state=null;var l=v.getHashPath();a===m.PUSH?l!==c?window.location.hash=c:"production"!==r.env.NODE_ENV?d.default(!1,"You cannot PUSH the same path using hash history"):void 0:l!==c&&v.replaceHashPath(c)}}function o(e){1===++A&&(M=t(N));var n=N.listenBefore(e);return function(){n(),0===--A&&M()}}function i(e){1===++A&&(M=t(N));var n=N.listen(e);return function(){n(),0===--A&&M()}}function l(e){"production"!==r.env.NODE_ENV?d.default(R||null==e.state,"You cannot use state without a queryKey it will be dropped"):void 0,N.push(e)}function f(e){"production"!==r.env.NODE_ENV?d.default(R||null==e.state,"You cannot use state without a queryKey it will be dropped"):void 0,N.replace(e)}function h(e){"production"!==r.env.NODE_ENV?d.default(D,"Hash history go(n) causes a full page reload in this browser"):void 0,N.go(e)}function b(e){return"#"+N.createHref(e)}function x(e){1===++A&&(M=t(N)),N.registerTransitionHook(e)}function S(e){N.unregisterTransitionHook(e),0===--A&&M()}function O(e,t){"production"!==r.env.NODE_ENV?d.default(R||null==e,"You cannot use state without a queryKey it will be dropped"):void 0,N.pushState(e,t)}function T(e,t){"production"!==r.env.NODE_ENV?d.default(R||null==e,"You cannot use state without a queryKey it will be dropped"):void 0,N.replaceState(e,t)}var P=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];y.canUseDOM?void 0:"production"!==r.env.NODE_ENV?g.default(!1,"Hash history needs a DOM"):g.default(!1);var R=P.queryKey;(void 0===R||R)&&(R="string"==typeof R?R:w);var N=E.default(p({},P,{getCurrentLocation:e,finishTransition:n,saveState:_.saveState})),A=0,M=void 0,D=v.supportsGoWithoutReloadUsingHash();return p({},N,{listenBefore:o,listen:i,push:l,replace:f,go:h,createHref:b,registerTransitionHook:x,unregisterTransitionHook:S,pushState:O,replaceState:T})}n.__esModule=!0;var p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=e("warning"),d=o(f),h=e("invariant"),g=o(h),m=e("./Actions"),y=e("./ExecutionEnvironment"),v=e("./DOMUtils"),_=e("./DOMStateStorage"),b=e("./createDOMHistory"),E=o(b),x=e("./parsePath"),C=o(x),w="_k";n.default=l,t.exports=n.default}).call(this,e("_process"))},{"./Actions":161,"./DOMStateStorage":163,"./DOMUtils":164,"./ExecutionEnvironment":165,"./createDOMHistory":166,"./parsePath":173,_process:2,invariant:180,warning:183}],168:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return Math.random().toString(36).substr(2,e)}function i(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.key===t.key&&c.default(e.state,t.state)}function a(){function e(e){return j.push(e),function(){j=j.filter(function(t){return t!==e})}}function t(){return z&&z.action===p.POP?F.indexOf(z.key):U?F.indexOf(U.key):-1}function n(e){var n=t();U=e,U.action===p.PUSH?F=[].concat(F.slice(0,n+1),[U.key]):U.action===p.REPLACE&&(F[n]=U.key),V.forEach(function(e){e(U)})}function r(e){if(V.push(e),U)e(U);else{var t=A();F=[t.key],n(t)}return function(){V=V.filter(function(t){return t!==e})}}function a(e,t){l.loopAsync(j.length,function(t,n,r){g.default(j[t],e,function(e){null!=e?r(e):n()})},function(e){k&&"string"==typeof e?k(e,function(e){t(e!==!1)}):t(e!==!1)})}function u(e){U&&i(U,e)||(z=e,a(e,function(t){if(z===e)if(t){if(e.action===p.PUSH){var r=E(U),o=E(e);o===r&&(e.action=p.REPLACE)}M(e)!==!1&&n(e)}else if(U&&e.action===p.POP){var i=F.indexOf(U.key),a=F.indexOf(e.key);i!==-1&&a!==-1&&I(i-a)}}))}function c(e){u(C(e,p.PUSH,v()))}function f(e){u(C(e,p.REPLACE,v()))}function h(){I(-1)}function m(){I(1)}function v(){return o(L)}function E(e){if(null==e||"string"==typeof e)return e;var t=e.pathname,n=e.search,r=e.hash,o=t;return n&&(o+=n),r&&(o+=r),o}function x(e){return E(e)}function C(e,t){var n=arguments.length<=2||void 0===arguments[2]?v():arguments[2];return"object"==typeof t&&("string"==typeof e&&(e=y.default(e)),e=s({},e,{state:t}),t=n,n=arguments[3]||v()),d.default(e,t,n)}function w(e){U?(S(U,e),n(U)):S(A(),e)}function S(e,t){e.state=s({},e.state,t),D(e.key,e.state)}function O(e){j.indexOf(e)===-1&&j.push(e)}function T(e){j=j.filter(function(t){return t!==e})}function P(e,t){"string"==typeof t&&(t=y.default(t)),c(s({state:e},t))}function R(e,t){"string"==typeof t&&(t=y.default(t)),f(s({state:e},t))}var N=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],A=N.getCurrentLocation,M=N.finishTransition,D=N.saveState,I=N.go,L=N.keyLength,k=N.getUserConfirmation;"number"!=typeof L&&(L=b);var j=[],F=[],V=[],U=void 0,z=void 0;return{listenBefore:e,listen:r,transitionTo:u,push:c,replace:f,go:I,goBack:h,goForward:m,createKey:v,createPath:E,createHref:x,createLocation:C,setState:_.default(w,"setState is deprecated; use location.key to save state instead"),registerTransitionHook:_.default(O,"registerTransitionHook is deprecated; use listenBefore instead"),unregisterTransitionHook:_.default(T,"unregisterTransitionHook is deprecated; use the callback returned from listenBefore instead"),pushState:_.default(P,"pushState is deprecated; use push instead"),replaceState:_.default(R,"replaceState is deprecated; use replace instead")}}n.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=e("deep-equal"),c=r(u),l=e("./AsyncUtils"),p=e("./Actions"),f=e("./createLocation"),d=r(f),h=e("./runTransitionHook"),g=r(h),m=e("./parsePath"),y=r(m),v=e("./deprecate"),_=r(v),b=6;n.default=a,t.exports=n.default},{"./Actions":161,"./AsyncUtils":162,"./createLocation":169,"./deprecate":171,"./parsePath":173,"./runTransitionHook":174,"deep-equal":177}],169:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){var e=arguments.length<=0||void 0===arguments[0]?"/":arguments[0],t=arguments.length<=1||void 0===arguments[1]?a.POP:arguments[1],n=arguments.length<=2||void 0===arguments[2]?null:arguments[2],r=arguments.length<=3||void 0===arguments[3]?null:arguments[3];"string"==typeof e&&(e=u.default(e)),"object"==typeof t&&(e=i({},e,{state:t}),t=n||a.POP,n=r);var o=e.pathname||"/",s=e.search||"",c=e.hash||"",l=e.state||null;return{pathname:o,search:s,hash:c,state:l,action:t,key:n}}n.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=e("./Actions"),s=e("./parsePath"),u=r(s);n.default=o,t.exports=n.default},{"./Actions":161,"./parsePath":173}],170:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){return e.filter(function(e){return e.state}).reduce(function(e,t){return e[t.key]=t.state,e},{})}function a(){function e(e,t){_[e]=t}function t(e){return _[e]}function n(){var e=y[v],n=e.key,r=e.basename,o=e.pathname,i=e.search,a=(r||"")+o+(i||""),u=void 0;n?u=t(n):(u=null,n=d.createKey(),e.key=n);var c=m.default(a);return d.createLocation(s({},c,{state:u}),void 0,n)}function o(e){var t=v+e;return t>=0&&t<y.length}function a(e){if(e){if(!o(e))return void("production"!==r.env.NODE_ENV?c.default(!1,"Cannot go(%s) there is not enough history",e):void 0);v+=e;var t=n();d.transitionTo(s({},t,{action:f.POP}))}}function u(t){switch(t.action){case f.PUSH:v+=1,v<y.length&&y.splice(v),y.push(t),e(t.key,t.state);break;case f.REPLACE:y[v]=t,e(t.key,t.state)}}var l=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];Array.isArray(l)?l={entries:l}:"string"==typeof l&&(l={entries:[l]});var d=h.default(s({},l,{getCurrentLocation:n,finishTransition:u,saveState:e,go:a})),g=l,y=g.entries,v=g.current;"string"==typeof y?y=[y]:Array.isArray(y)||(y=["/"]),y=y.map(function(e){var t=d.createKey();return"string"==typeof e?{pathname:e,key:t}:"object"==typeof e&&e?s({},e,{key:t}):void("production"!==r.env.NODE_ENV?p.default(!1,"Unable to create history entry from %s",e):p.default(!1))}),null==v?v=y.length-1:v>=0&&v<y.length?void 0:"production"!==r.env.NODE_ENV?p.default(!1,"Current index must be >= 0 and < %s, was %s",y.length,v):p.default(!1);var _=i(y);return d}n.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=e("warning"),c=o(u),l=e("invariant"),p=o(l),f=e("./Actions"),d=e("./createHistory"),h=o(d),g=e("./parsePath"),m=o(g);n.default=a,t.exports=n.default}).call(this,e("_process"))},{"./Actions":161,"./createHistory":168,"./parsePath":173,_process:2,invariant:180,warning:183}],171:[function(e,t,n){"use strict";function r(e){return e}n.__esModule=!0,n.default=r,t.exports=n.default},{}],172:[function(e,t,n){"use strict";function r(e){var t=e.match(/^https?:\/\/[^\/]*/);return null==t?e:e.substring(t[0].length)}n.__esModule=!0,n.default=r,t.exports=n.default},{}],173:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=c.default(e),n="",o="";"production"!==r.env.NODE_ENV?s.default(e===t,'A path must be pathname + search + hash only, not a fully qualified URL like "%s"',e):void 0;var i=t.indexOf("#");i!==-1&&(o=t.substring(i),t=t.substring(0,i));var a=t.indexOf("?");return a!==-1&&(n=t.substring(a),t=t.substring(0,a)),""===t&&(t="/"),{pathname:t,search:n,hash:o}}n.__esModule=!0;var a=e("warning"),s=o(a),u=e("./extractPath"),c=o(u);n.default=i,t.exports=n.default}).call(this,e("_process"))},{"./extractPath":172,_process:2,warning:183}],174:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){var o=e(t,n);e.length<2?n(o):"production"!==r.env.NODE_ENV?s.default(void 0===o,'You should not "return" in a transition hook with a callback argument; call the callback instead'):void 0}n.__esModule=!0;var a=e("warning"),s=o(a);n.default=i,t.exports=n.default}).call(this,e("_process"))},{_process:2,warning:183}],175:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e){return function(){function t(e){return b&&null==e.basename&&(0===e.pathname.indexOf(b)?(e.pathname=e.pathname.substring(b.length),e.basename=b,""===e.pathname&&(e.pathname="/")):e.basename=""),e}function n(e){if(!b)return e;"string"==typeof e&&(e=d.default(e));var t=e.pathname,n="/"===b.slice(-1)?b:b+"/",r="/"===t.charAt(0)?t.slice(1):t,o=n+r;return a({},e,{pathname:o})}function r(e){return x.listenBefore(function(n,r){c.default(e,t(n),r)})}function i(e){return x.listen(function(n){e(t(n))})}function u(e){x.push(n(e))}function l(e){x.replace(n(e))}function f(e){return x.createPath(n(e))}function h(e){return x.createHref(n(e))}function m(){return t(x.createLocation.apply(x,arguments))}function y(e,t){"string"==typeof t&&(t=d.default(t)),u(a({state:e},t))}function v(e,t){"string"==typeof t&&(t=d.default(t)),l(a({state:e},t))}var _=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],b=_.basename,E=o(_,["basename"]),x=e(E);if(null==b&&s.canUseDOM){var C=document.getElementsByTagName("base")[0];C&&(b=p.default(C.href))}return a({},x,{listenBefore:r,listen:i,push:u,replace:l,createPath:f,createHref:h,createLocation:m,pushState:g.default(y,"pushState is deprecated; use push instead"),replaceState:g.default(v,"replaceState is deprecated; use replace instead")})}}n.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=e("./ExecutionEnvironment"),u=e("./runTransitionHook"),c=r(u),l=e("./extractPath"),p=r(l),f=e("./parsePath"),d=r(f),h=e("./deprecate"),g=r(h);n.default=i,t.exports=n.default},{"./ExecutionEnvironment":165,"./deprecate":171,"./extractPath":172,"./parsePath":173,"./runTransitionHook":174}],176:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e){return f.stringify(e).replace(/%20/g,"+")}function s(e){for(var t in e)if(e.hasOwnProperty(t)&&"object"==typeof e[t]&&!Array.isArray(e[t])&&null!==e[t])return!0;return!1}function u(e){return function(){function t(e){if(null==e.query){var t=e.search;e.query=S(t.substring(1)),e[_]={search:t,searchBase:""}}return e}function n(e,t){var n,o=void 0;if(!t||""===(o=w(t)))return e;"production"!==r.env.NODE_ENV?p.default(w!==a||!s(t),"useQueries does not stringify nested query objects by default; use a custom stringifyQuery function"):void 0,"string"==typeof e&&(e=m.default(e));var i=e[_],u=void 0;u=i&&e.search===i.search?i.searchBase:e.search||"";var l=u+(u?"&":"?")+o;return c({},e,(n={search:l},n[_]={search:l,searchBase:u},n))}function o(e){return T.listenBefore(function(n,r){h.default(e,t(n),r)})}function u(e){return T.listen(function(n){e(t(n))})}function l(e){T.push(n(e,e.query))}function f(e){T.replace(n(e,e.query))}function d(e,t){return T.createPath(n(e,t||e.query))}function g(e,t){return T.createHref(n(e,t||e.query))}function y(){return t(T.createLocation.apply(T,arguments))}function E(e,t,n){"string"==typeof t&&(t=m.default(t)),l(c({state:e},t,{query:n}))}function x(e,t,n){"string"==typeof t&&(t=m.default(t)),f(c({state:e},t,{query:n}))}var C=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],w=C.stringifyQuery,S=C.parseQueryString,O=i(C,["stringifyQuery","parseQueryString"]),T=e(O);return"function"!=typeof w&&(w=a),"function"!=typeof S&&(S=b),c({},T,{listenBefore:o,listen:u,push:l,replace:f,createPath:d,createHref:g,createLocation:y,pushState:v.default(E,"pushState is deprecated; use push instead"),replaceState:v.default(x,"replaceState is deprecated; use replace instead")})}}n.__esModule=!0;var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=e("warning"),p=o(l),f=e("query-string"),d=e("./runTransitionHook"),h=o(d),g=e("./parsePath"),m=o(g),y=e("./deprecate"),v=o(y),_="$searchBase",b=f.parse;n.default=u,t.exports=n.default}).call(this,e("_process"))},{"./deprecate":171,"./parsePath":173,"./runTransitionHook":174,_process:2,"query-string":181,warning:183}],177:[function(e,t,n){function r(e){return null===e||void 0===e}function o(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length)&&("function"==typeof e.copy&&"function"==typeof e.slice&&!(e.length>0&&"number"!=typeof e[0]))}function i(e,t,n){var i,l;if(r(e)||r(t))return!1;if(e.prototype!==t.prototype)return!1;if(u(e))return!!u(t)&&(e=a.call(e),t=a.call(t),c(e,t,n));if(o(e)){if(!o(t))return!1;if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}try{var p=s(e),f=s(t)}catch(e){return!1}if(p.length!=f.length)return!1;for(p.sort(),f.sort(),i=p.length-1;i>=0;i--)if(p[i]!=f[i])return!1;for(i=p.length-1;i>=0;i--)if(l=p[i],!c(e[l],t[l],n))return!1;return typeof e==typeof t}var a=Array.prototype.slice,s=e("./lib/keys.js"),u=e("./lib/is_arguments.js"),c=t.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:i(e,t,n))}},{"./lib/is_arguments.js":178,"./lib/keys.js":179}],178:[function(e,t,n){function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}var i="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();n=t.exports=i?r:o,n.supported=r,n.unsupported=o},{}],179:[function(e,t,n){function r(e){var t=[];for(var n in e)t.push(n);return t}n=t.exports="function"==typeof Object.keys?Object.keys:r,n.shim=r},{}],180:[function(e,t,n){(function(e){"use strict";var n=function(t,n,r,o,i,a,s,u){if("production"!==e.env.NODE_ENV&&void 0===n)throw new Error("invariant requires an error message argument");if(!t){var c;if(void 0===n)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,o,i,a,s,u],p=0;c=new Error(n.replace(/%s/g,function(){return l[p++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};t.exports=n}).call(this,e("_process"))},{_process:2}],181:[function(e,t,n){"use strict";var r=e("strict-uri-encode");n.extract=function(e){return e.split("?")[1]||""},n.parse=function(e){return"string"!=typeof e?{}:(e=e.trim().replace(/^(\?|#|&)/,""),e?e.split("&").reduce(function(e,t){var n=t.replace(/\+/g," ").split("="),r=n.shift(),o=n.length>0?n.join("="):void 0;return r=decodeURIComponent(r),o=void 0===o?null:decodeURIComponent(o),e.hasOwnProperty(r)?Array.isArray(e[r])?e[r].push(o):e[r]=[e[r],o]:e[r]=o,e},{}):{})},n.stringify=function(e){return e?Object.keys(e).sort().map(function(t){var n=e[t];
6
- return void 0===n?"":null===n?t:Array.isArray(n)?n.slice().sort().map(function(e){return r(t)+"="+r(e)}).join("&"):r(t)+"="+r(n)}).filter(function(e){return e.length>0}).join("&"):""}},{"strict-uri-encode":182}],182:[function(e,t,n){"use strict";t.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}},{}],183:[function(e,t,n){(function(e){"use strict";var n=function(){};"production"!==e.env.NODE_ENV&&(n=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var o=2;o<r;o++)n[o-2]=arguments[o];if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(t.length<10||/^[s\W]*#x2F;.test(t))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+t);if(!e){var i=0,a="Warning: "+t.replace(/%s/g,function(){return n[i++]});"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}catch(e){}}}),t.exports=n}).call(this,e("_process"))},{_process:2}],184:[function(e,t,n){(function(n){n.IntlPolyfill=e("./lib/core.js"),e("./locale-data/complete.js"),n.Intl||(n.Intl=n.IntlPolyfill,n.IntlPolyfill.__applyLocaleSensitivePrototypes()),t.exports=n.IntlPolyfill}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/core.js":185,"./locale-data/complete.js":1}],185:[function(e,t,n){"use strict";function r(e){if("function"==typeof Math.log10)return Math.floor(Math.log10(e));var t=Math.round(Math.log(e)*Math.LOG10E);return t-(Number("1e"+t)>e)}function o(e){for(var t in e)(e instanceof o||oe.call(e,t))&&ie(this,t,{value:e[t],enumerable:!0,writable:!0,configurable:!0})}function i(){ie(this,"length",{writable:!0,value:0}),arguments.length&&le.apply(this,ue.call(arguments))}function a(){for(var e=/[.?*+^$[\]\\(){}|-]/g,t=RegExp.lastMatch||"",n=RegExp.multiline?"m":"",r={input:RegExp.input},o=new i,a=!1,s={},u=1;u<=9;u++)a=(s["quot;+u]=RegExp["quot;+u])||a;if(t=t.replace(e,"\\amp;"),a)for(var c=1;c<=9;c++){var l=s["quot;+c];l?(l=l.replace(e,"\\amp;"),t=t.replace(l,"("+l+")")):t="()"+t,le.call(o,t.slice(0,t.indexOf("(")+1)),t=t.slice(t.indexOf("(")+1)}return r.exp=new RegExp(pe.call(o,"")+t,n),r}function s(e){if(null===e)throw new TypeError("Cannot convert null or undefined to object");return Object(e)}function u(e){return oe.call(e,"__getInternalProperties")?e.__getInternalProperties(ge):se(null)}function c(e){Me=e}function l(e){for(var t=e.length;t--;){var n=e.charAt(t);n>="a"&&n<="z"&&(e=e.slice(0,t)+n.toUpperCase()+e.slice(t+1))}return e}function p(e){return!!Pe.test(e)&&(!Re.test(e)&&!Ne.test(e))}function f(e){var t=void 0,n=void 0;e=e.toLowerCase(),n=e.split("-");for(var r=1,o=n.length;r<o;r++)if(2===n[r].length)n[r]=n[r].toUpperCase();else if(4===n[r].length)n[r]=n[r].charAt(0).toUpperCase()+n[r].slice(1);else if(1===n[r].length&&"x"!==n[r])break;e=pe.call(n,"-"),(t=e.match(Ae))&&t.length>1&&(t.sort(),e=e.replace(RegExp("(?:"+Ae.source+")+","i"),pe.call(t,""))),oe.call(De.tags,e)&&(e=De.tags[e]),n=e.split("-");for(var i=1,a=n.length;i<a;i++)oe.call(De.subtags,n[i])?n[i]=De.subtags[n[i]]:oe.call(De.extLang,n[i])&&(n[i]=De.extLang[n[i]][0],1===i&&De.extLang[n[1]][1]===n[0]&&(n=ue.call(n,i++),a-=1));return pe.call(n,"-")}function d(){return Me}function h(e){var t=String(e),n=l(t);return Ie.test(n)!==!1}function g(e){if(void 0===e)return new i;var t=new i;e="string"==typeof e?[e]:e;for(var n=s(e),r=n.length,o=0;o<r;){var a=String(o),u=a in n;if(u){var c=n[a];if(null===c||"string"!=typeof c&&"object"!==("undefined"==typeof c?"undefined":te.typeof(c)))throw new TypeError("String or Object type expected");var l=String(c);if(!p(l))throw new RangeError("'"+l+"' is not a structurally valid language tag");l=f(l),ae.call(t,l)===-1&&le.call(t,l)}o++}return t}function m(e,t){for(var n=t;n;){if(ae.call(e,n)>-1)return n;var r=n.lastIndexOf("-");if(r<0)return;r>=2&&"-"===n.charAt(r-2)&&(r-=2),n=n.substring(0,r)}}function y(e,t){for(var n=0,r=t.length,i=void 0,a=void 0,s=void 0;n<r&&!i;)a=t[n],s=String(a).replace(Le,""),i=m(e,s),n++;var u=new o;if(void 0!==i){if(u["[[locale]]"]=i,String(a)!==String(s)){var c=a.match(Le)[0],l=a.indexOf("-u-");u["[[extension]]"]=c,u["[[extensionIndex]]"]=l}}else u["[[locale]]"]=d();return u}function v(e,t){return y(e,t)}function _(e,t,n,r,i){if(0===e.length)throw new ReferenceError("No locale data has been provided for this object yet.");var a=n["[[localeMatcher]]"],s=void 0;s="lookup"===a?y(e,t):v(e,t);var u=s["[[locale]]"],c=void 0,l=void 0;if(oe.call(s,"[[extension]]")){var p=s["[[extension]]"],d=String.prototype.split;c=d.call(p,"-"),l=c.length}var h=new o;h["[[dataLocale]]"]=u;for(var g="-u",m=0,_=r.length;m<_;){var b=r[m],E=i[u],x=E[b],C=x[0],w="",S=ae;if(void 0!==c){var O=S.call(c,b);if(O!==-1)if(O+1<l&&c[O+1].length>2){var T=c[O+1],P=S.call(x,T);P!==-1&&(C=T,w="-"+b+"-"+C)}else{var R=S(x,"true");R!==-1&&(C="true")}}if(oe.call(n,"[["+b+"]]")){var N=n["[["+b+"]]"];S.call(x,N)!==-1&&N!==C&&(C=N,w="")}h["[["+b+"]]"]=C,g+=w,m++}if(g.length>2){var A=u.indexOf("-x-");if(A===-1)u+=g;else{var M=u.substring(0,A),D=u.substring(A);u=M+g+D}u=f(u)}return h["[[locale]]"]=u,h}function b(e,t){for(var n=t.length,r=new i,o=0;o<n;){var a=t[o],s=String(a).replace(Le,""),u=m(e,s);void 0!==u&&le.call(r,a),o++}var c=ue.call(r);return c}function E(e,t){return b(e,t)}function x(e,t,n){var r=void 0,i=void 0;if(void 0!==n&&(n=new o(s(n)),r=n.localeMatcher,void 0!==r&&(r=String(r),"lookup"!==r&&"best fit"!==r)))throw new RangeError('matcher should be "lookup" or "best fit"');i=void 0===r||"best fit"===r?E(e,t):b(e,t);for(var a in i)oe.call(i,a)&&ie(i,a,{writable:!1,configurable:!1,value:i[a]});return ie(i,"length",{writable:!1}),i}function C(e,t,n,r,o){var i=e[t];if(void 0!==i){if(i="boolean"===n?Boolean(i):"string"===n?String(i):i,void 0!==r&&ae.call(r,i)===-1)throw new RangeError("'"+i+"' is not an allowed value for `"+t+"`");return i}return o}function w(e,t,n,r,o){var i=e[t];if(void 0!==i){if(i=Number(i),isNaN(i)||i<n||i>r)throw new RangeError("Value is not a number or outside accepted range");return Math.floor(i)}return o}function S(){var e=arguments[0],t=arguments[1];return this&&this!==ke?O(s(this),e,t):new ke.NumberFormat(e,t)}function O(e,t,n){var r=u(e),c=a();if(r["[[initializedIntlObject]]"]===!0)throw new TypeError("`this` object has already been initialized as an Intl object");ie(e,"__getInternalProperties",{value:function(){if(arguments[0]===ge)return r}}),r["[[initializedIntlObject]]"]=!0;var l=g(t);n=void 0===n?{}:s(n);var p=new o,f=C(n,"localeMatcher","string",new i("lookup","best fit"),"best fit");p["[[localeMatcher]]"]=f;var d=he.NumberFormat["[[localeData]]"],m=_(he.NumberFormat["[[availableLocales]]"],l,p,he.NumberFormat["[[relevantExtensionKeys]]"],d);r["[[locale]]"]=m["[[locale]]"],r["[[numberingSystem]]"]=m["[[nu]]"],r["[[dataLocale]]"]=m["[[dataLocale]]"];var y=m["[[dataLocale]]"],v=C(n,"style","string",new i("decimal","percent","currency"),"decimal");r["[[style]]"]=v;var b=C(n,"currency","string");if(void 0!==b&&!h(b))throw new RangeError("'"+b+"' is not a valid currency code");if("currency"===v&&void 0===b)throw new TypeError("Currency code is required when style is currency");var E=void 0;"currency"===v&&(b=b.toUpperCase(),r["[[currency]]"]=b,E=T(b));var x=C(n,"currencyDisplay","string",new i("code","symbol","name"),"symbol");"currency"===v&&(r["[[currencyDisplay]]"]=x);var S=w(n,"minimumIntegerDigits",1,21,1);r["[[minimumIntegerDigits]]"]=S;var O="currency"===v?E:0,R=w(n,"minimumFractionDigits",0,20,O);r["[[minimumFractionDigits]]"]=R;var N="currency"===v?Math.max(R,E):"percent"===v?Math.max(R,0):Math.max(R,3),A=w(n,"maximumFractionDigits",R,20,N);r["[[maximumFractionDigits]]"]=A;var M=n.minimumSignificantDigits,D=n.maximumSignificantDigits;void 0===M&&void 0===D||(M=w(n,"minimumSignificantDigits",1,21,1),D=w(n,"maximumSignificantDigits",M,21,21),r["[[minimumSignificantDigits]]"]=M,r["[[maximumSignificantDigits]]"]=D);var I=C(n,"useGrouping","boolean",void 0,!0);r["[[useGrouping]]"]=I;var L=d[y],k=L.patterns,j=k[v];return r["[[positivePattern]]"]=j.positivePattern,r["[[negativePattern]]"]=j.negativePattern,r["[[boundFormat]]"]=void 0,r["[[initializedNumberFormat]]"]=!0,re&&(e.format=P.call(e)),c.exp.test(c.input),e}function T(e){return void 0!==je[e]?je[e]:2}function P(){var e=null!==this&&"object"===te.typeof(this)&&u(this);if(!e||!e["[[initializedNumberFormat]]"])throw new TypeError("`this` value for format() is not an initialized Intl.NumberFormat object.");if(void 0===e["[[boundFormat]]"]){var t=function(e){return A(this,Number(e))},n=de.call(t,this);e["[[boundFormat]]"]=n}return e["[[boundFormat]]"]}function R(e,t){for(var n=N(e,t),r=[],o=0,i=0;n.length>i;i++){var a=n[i],s={};s.type=a["[[type]]"],s.value=a["[[value]]"],r[o]=s,o+=1}return r}function N(e,t){var n=u(e),r=n["[[dataLocale]]"],o=n["[[numberingSystem]]"],a=he.NumberFormat["[[localeData]]"][r],s=a.symbols[o]||a.symbols.latn,c=void 0;!isNaN(t)&&t<0?(t=-t,c=n["[[negativePattern]]"]):c=n["[[positivePattern]]"];for(var l=new i,p=c.indexOf("{",0),f=0,d=0,h=c.length;p>-1&&p<h;){if(f=c.indexOf("}",p),f===-1)throw new Error;if(p>d){var g=c.substring(d,p);le.call(l,{"[[type]]":"literal","[[value]]":g})}var m=c.substring(p+1,f);if("number"===m)if(isNaN(t)){var y=s.nan;le.call(l,{"[[type]]":"nan","[[value]]":y})}else if(isFinite(t)){"percent"===n["[[style]]"]&&isFinite(t)&&(t*=100);var v=void 0;v=oe.call(n,"[[minimumSignificantDigits]]")&&oe.call(n,"[[maximumSignificantDigits]]")?M(t,n["[[minimumSignificantDigits]]"],n["[[maximumSignificantDigits]]"]):D(t,n["[[minimumIntegerDigits]]"],n["[[minimumFractionDigits]]"],n["[[maximumFractionDigits]]"]),Fe[o]?!function(){var e=Fe[o];v=String(v).replace(/\d/g,function(t){return e[t]})}():v=String(v);var _=void 0,b=void 0,E=v.indexOf(".",0);if(E>0?(_=v.substring(0,E),b=v.substring(E+1,E.length)):(_=v,b=void 0),n["[[useGrouping]]"]===!0){var x=s.group,C=[],w=a.patterns.primaryGroupSize||3,S=a.patterns.secondaryGroupSize||w;if(_.length>w){var O=_.length-w,T=O%S,P=_.slice(0,T);for(P.length&&le.call(C,P);T<O;)le.call(C,_.slice(T,T+S)),T+=S;le.call(C,_.slice(O))}else le.call(C,_);if(0===C.length)throw new Error;for(;C.length;){var R=fe.call(C);le.call(l,{"[[type]]":"integer","[[value]]":R}),C.length&&le.call(l,{"[[type]]":"group","[[value]]":x})}}else le.call(l,{"[[type]]":"integer","[[value]]":_});if(void 0!==b){var N=s.decimal;le.call(l,{"[[type]]":"decimal","[[value]]":N}),le.call(l,{"[[type]]":"fraction","[[value]]":b})}}else{var A=s.infinity;le.call(l,{"[[type]]":"infinity","[[value]]":A})}else if("plusSign"===m){var I=s.plusSign;le.call(l,{"[[type]]":"plusSign","[[value]]":I})}else if("minusSign"===m){var L=s.minusSign;le.call(l,{"[[type]]":"minusSign","[[value]]":L})}else if("percentSign"===m&&"percent"===n["[[style]]"]){var k=s.percentSign;le.call(l,{"[[type]]":"literal","[[value]]":k})}else if("currency"===m&&"currency"===n["[[style]]"]){var j=n["[[currency]]"],F=void 0;"code"===n["[[currencyDisplay]]"]?F=j:"symbol"===n["[[currencyDisplay]]"]?F=a.currencies[j]||j:"name"===n["[[currencyDisplay]]"]&&(F=j),le.call(l,{"[[type]]":"currency","[[value]]":F})}else{var V=c.substring(p,f);le.call(l,{"[[type]]":"literal","[[value]]":V})}d=f+1,p=c.indexOf("{",d)}if(d<h){var U=c.substring(d,h);le.call(l,{"[[type]]":"literal","[[value]]":U})}return l}function A(e,t){for(var n=N(e,t),r="",o=0;n.length>o;o++){var i=n[o];r+=i["[[value]]"]}return r}function M(e,t,n){var o=n,i=void 0,a=void 0;if(0===e)i=pe.call(Array(o+1),"0"),a=0;else{a=r(Math.abs(e));var s=Math.round(Math.exp(Math.abs(a-o+1)*Math.LN10));i=String(Math.round(a-o+1<0?e*s:e/s))}if(a>=o)return i+pe.call(Array(a-o+1+1),"0");if(a===o-1)return i;if(a>=0?i=i.slice(0,a+1)+"."+i.slice(a+1):a<0&&(i="0."+pe.call(Array(-(a+1)+1),"0")+i),i.indexOf(".")>=0&&n>t){for(var u=n-t;u>0&&"0"===i.charAt(i.length-1);)i=i.slice(0,-1),u--;"."===i.charAt(i.length-1)&&(i=i.slice(0,-1))}return i}function D(e,t,n,r){var o=r,i=Math.pow(10,o)*e,a=0===i?"0":i.toFixed(0),s=void 0,u=(s=a.indexOf("e"))>-1?a.slice(s+1):0;u&&(a=a.slice(0,s).replace(".",""),a+=pe.call(Array(u-(a.length-1)+1),"0"));var c=void 0;if(0!==o){var l=a.length;if(l<=o){var p=pe.call(Array(o+1-l+1),"0");a=p+a,l=o+1}var f=a.substring(0,l-o),d=a.substring(l-o,a.length);a=f+"."+d,c=f.length}else c=a.length;for(var h=r-n;h>0&&"0"===a.slice(-1);)a=a.slice(0,-1),h--;if("."===a.slice(-1)&&(a=a.slice(0,-1)),c<t){var g=pe.call(Array(t-c+1),"0");a=g+a}return a}function I(e){for(var t=0;t<He.length;t+=1)if(e.hasOwnProperty(He[t]))return!1;return!0}function L(e){for(var t=0;t<Ge.length;t+=1)if(e.hasOwnProperty(Ge[t]))return!1;return!0}function k(e,t){for(var n={_:{}},r=0;r<Ge.length;r+=1)e[Ge[r]]&&(n[Ge[r]]=e[Ge[r]]),e._[Ge[r]]&&(n._[Ge[r]]=e._[Ge[r]]);for(var o=0;o<He.length;o+=1)t[He[o]]&&(n[He[o]]=t[He[o]]),t._[He[o]]&&(n._[He[o]]=t._[He[o]]);return n}function j(e){return e.pattern12=e.extendedPattern.replace(/'([^']*)'/g,function(e,t){return t?t:"'"}),e.pattern=e.pattern12.replace("{ampm}","").replace(Ue,""),e}function F(e,t){switch(e.charAt(0)){case"G":return t.era=["short","short","short","long","narrow"][e.length-1],"{era}";case"y":case"Y":case"u":case"U":case"r":return t.year=2===e.length?"2-digit":"numeric","{year}";case"Q":case"q":return t.quarter=["numeric","2-digit","short","long","narrow"][e.length-1],"{quarter}";case"M":case"L":return t.month=["numeric","2-digit","short","long","narrow"][e.length-1],"{month}";case"w":return t.week=2===e.length?"2-digit":"numeric","{weekday}";case"W":return t.week="numeric","{weekday}";case"d":return t.day=2===e.length?"2-digit":"numeric","{day}";case"D":case"F":case"g":return t.day="numeric","{day}";case"E":return t.weekday=["short","short","short","long","narrow","short"][e.length-1],"{weekday}";case"e":return t.weekday=["numeric","2-digit","short","long","narrow","short"][e.length-1],"{weekday}";case"c":return t.weekday=["numeric",void 0,"short","long","narrow","short"][e.length-1],"{weekday}";case"a":case"b":case"B":return t.hour12=!0,"{ampm}";case"h":case"H":return t.hour=2===e.length?"2-digit":"numeric","{hour}";case"k":case"K":return t.hour12=!0,t.hour=2===e.length?"2-digit":"numeric","{hour}";case"m":return t.minute=2===e.length?"2-digit":"numeric","{minute}";case"s":return t.second=2===e.length?"2-digit":"numeric","{second}";case"S":case"A":return t.second="numeric","{second}";case"z":case"Z":case"O":case"v":case"V":case"X":case"x":return t.timeZoneName=e.length<4?"short":"long","{timeZoneName}"}}function V(e,t){if(!ze.test(t)){var n={originalPattern:t,_:{}};return n.extendedPattern=t.replace(Ve,function(e){return F(e,n._)}),e.replace(Ve,function(e){return F(e,n)}),j(n)}}function U(e){var t=e.availableFormats,n=e.timeFormats,r=e.dateFormats,o=[],i=void 0,a=void 0,s=void 0,u=void 0,c=void 0,l=[],p=[];for(i in t)t.hasOwnProperty(i)&&(a=t[i],s=V(i,a),s&&(o.push(s),I(s)?p.push(s):L(s)&&l.push(s)));for(i in n)n.hasOwnProperty(i)&&(a=n[i],s=V(i,a),s&&(o.push(s),l.push(s)));for(i in r)r.hasOwnProperty(i)&&(a=r[i],s=V(i,a),s&&(o.push(s),p.push(s)));for(u=0;u<l.length;u+=1)for(c=0;c<p.length;c+=1)a="long"===p[c].month?p[c].weekday?e.full:e.long:"short"===p[c].month?e.medium:e.short,s=k(p[c],l[u]),s.originalPattern=a,s.extendedPattern=a.replace("{0}",l[u].extendedPattern).replace("{1}",p[c].extendedPattern).replace(/^[,\s]+|[,\s]+#x2F;gi,""),o.push(j(s));return o}function z(e,t,n,r,o){var i=e[t]&&e[t][n]?e[t][n]:e.gregory[n],a={narrow:["short","long"],short:["long","narrow"],long:["short","narrow"]},s=oe.call(i,r)?i[r]:oe.call(i,a[r][0])?i[a[r][0]]:i[a[r][1]];return null!==o?s[o]:s}function G(){var e=arguments[0],t=arguments[1];return this&&this!==ke?H(s(this),e,t):new ke.DateTimeFormat(e,t)}function H(e,t,n){var r=u(e),s=a();if(r["[[initializedIntlObject]]"]===!0)throw new TypeError("`this` object has already been initialized as an Intl object");ie(e,"__getInternalProperties",{value:function(){if(arguments[0]===ge)return r}}),r["[[initializedIntlObject]]"]=!0;var c=g(t);n=q(n,"any","date");var p=new o,f=C(n,"localeMatcher","string",new i("lookup","best fit"),"best fit");p["[[localeMatcher]]"]=f;var d=he.DateTimeFormat,h=d["[[localeData]]"],m=_(d["[[availableLocales]]"],c,p,d["[[relevantExtensionKeys]]"],h);r["[[locale]]"]=m["[[locale]]"],r["[[calendar]]"]=m["[[ca]]"],r["[[numberingSystem]]"]=m["[[nu]]"],r["[[dataLocale]]"]=m["[[dataLocale]]"];var y=m["[[dataLocale]]"],v=n.timeZone;if(void 0!==v&&(v=l(v),"UTC"!==v))throw new RangeError("timeZone is not supported.");r["[[timeZone]]"]=v,p=new o;for(var b in qe)if(oe.call(qe,b)){var E=C(n,b,"string",qe[b]);p["[["+b+"]]"]=E}var x=void 0,w=h[y],S=B(w.formats);if(f=C(n,"formatMatcher","string",new i("basic","best fit"),"best fit"),w.formats=S,"basic"===f)x=Z(p,S);else{var O=C(n,"hour12","boolean");p.hour12=void 0===O?w.hour12:O,x=W(p,S)}for(var T in qe)if(oe.call(qe,T)&&oe.call(x,T)){var P=x[T];P=x._&&oe.call(x._,T)?x._[T]:P,r["[["+T+"]]"]=P}var R=void 0,N=C(n,"hour12","boolean");if(r["[[hour]]"])if(N=void 0===N?w.hour12:N,r["[[hour12]]"]=N,N===!0){var A=w.hourNo0;r["[[hourNo0]]"]=A,R=x.pattern12}else R=x.pattern;else R=x.pattern;return r["[[pattern]]"]=R,r["[[boundFormat]]"]=void 0,r["[[initializedDateTimeFormat]]"]=!0,re&&(e.format=Y.call(e)),s.exp.test(s.input),e}function B(e){return"[object Array]"===Object.prototype.toString.call(e)?e:U(e)}function q(e,t,n){if(void 0===e)e=null;else{var r=s(e);e=new o;for(var i in r)e[i]=r[i]}var a=se;e=a(e);var u=!0;return"date"!==t&&"any"!==t||void 0===e.weekday&&void 0===e.year&&void 0===e.month&&void 0===e.day||(u=!1),"time"!==t&&"any"!==t||void 0===e.hour&&void 0===e.minute&&void 0===e.second||(u=!1),!u||"date"!==n&&"all"!==n||(e.year=e.month=e.day="numeric"),!u||"time"!==n&&"all"!==n||(e.hour=e.minute=e.second="numeric"),e}function Z(e,t){for(var n=120,r=20,o=8,i=6,a=6,s=3,u=-(1/0),c=void 0,l=0,p=t.length;l<p;){var f=t[l],d=0;for(var h in qe)if(oe.call(qe,h)){var g=e["[["+h+"]]"],m=oe.call(f,h)?f[h]:void 0;if(void 0===g&&void 0!==m)d-=r;else if(void 0!==g&&void 0===m)d-=n;else{var y=["2-digit","numeric","narrow","short","long"],v=ae.call(y,g),_=ae.call(y,m),b=Math.max(Math.min(_-v,2),-2);2===b?d-=i:1===b?d-=s:b===-1?d-=a:b===-2&&(d-=o)}}d>u&&(u=d,c=f),l++}return c}function W(e,t){for(var n=120,r=20,o=8,i=6,a=6,s=3,u=1,c=-(1/0),l=void 0,p=0,f=t.length;p<f;){var d=t[p],h=0;for(var g in qe)if(oe.call(qe,g)){var m=e["[["+g+"]]"],y=oe.call(d,g)?d[g]:void 0;if(void 0===m&&void 0!==y)h-=r;else if(void 0!==m&&void 0===y)h-=n;else{var v=["2-digit","numeric","narrow","short","long"],_=ae.call(v,m),b=ae.call(v,y),E=Math.max(Math.min(b-_,2),-2);b<=1&&_>=2||b>=2&&_<=1?E>0?h-=i:E<0&&(h-=o):E>1?h-=s:E<-1&&(h-=a)}}d._.hour12!==e.hour12&&(h-=u),h>c&&(c=h,l=d),p++}return l}function Y(){var e=null!==this&&"object"===te.typeof(this)&&u(this);if(!e||!e["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for format() is not an initialized Intl.DateTimeFormat object.");if(void 0===e["[[boundFormat]]"]){var t=function(){var e=Number(0===arguments.length?Date.now():arguments[0]);return Q(this,e)},n=de.call(t,this);e["[[boundFormat]]"]=n}return e["[[boundFormat]]"]}function X(){var e=null!==this&&"object"===te.typeof(this)&&u(this);if(!e||!e["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for formatToParts() is not an initialized Intl.DateTimeFormat object.");if(void 0===e["[[boundFormatToParts]]"]){var t=function(){var e=Number(0===arguments.length?Date.now():arguments[0]);return $(this,e)},n=de.call(t,this);e["[[boundFormatToParts]]"]=n}return e["[[boundFormatToParts]]"]}function K(e,t){if(!isFinite(t))throw new RangeError("Invalid valid date passed to format");var n=e.__getInternalProperties(ge);a();for(var r=n["[[locale]]"],o=new ke.NumberFormat([r],{useGrouping:!1}),s=new ke.NumberFormat([r],{minimumIntegerDigits:2,useGrouping:!1}),u=J(t,n["[[calendar]]"],n["[[timeZone]]"]),c=n["[[pattern]]"],l=new i,p=0,f=c.indexOf("{"),d=0,h=n["[[dataLocale]]"],g=he.DateTimeFormat["[[localeData]]"][h].calendars,m=n["[[calendar]]"];f!==-1;){var y=void 0;if(d=c.indexOf("}",f),d===-1)throw new Error("Unclosed pattern");f>p&&le.call(l,{type:"literal",value:c.substring(p,f)});var v=c.substring(f+1,d);if(qe.hasOwnProperty(v)){var _=n["[["+v+"]]"],b=u["[["+v+"]]"];if("year"===v&&b<=0?b=1-b:"month"===v?b++:"hour"===v&&n["[[hour12]]"]===!0&&(b%=12,0===b&&n["[[hourNo0]]"]===!0&&(b=12)),"numeric"===_)y=A(o,b);else if("2-digit"===_)y=A(s,b),y.length>2&&(y=y.slice(-2));else if(_ in Be)switch(v){case"month":y=z(g,m,"months",_,u["[["+v+"]]"]);break;case"weekday":try{y=z(g,m,"days",_,u["[["+v+"]]"])}catch(e){throw new Error("Could not find weekday data for locale "+r)}break;case"timeZoneName":y="";break;case"era":try{y=z(g,m,"eras",_,u["[["+v+"]]"])}catch(e){throw new Error("Could not find era data for locale "+r)}break;default:y=u["[["+v+"]]"]}le.call(l,{type:v,value:y})}else if("ampm"===v){var E=u["[[hour]]"];y=z(g,m,"dayPeriods",E>11?"pm":"am",null),le.call(l,{type:"dayPeriod",value:y})}else le.call(l,{type:"literal",value:c.substring(f,d+1)});p=d+1,f=c.indexOf("{",p)}return d<c.length-1&&le.call(l,{type:"literal",value:c.substr(d+1)}),l}function Q(e,t){for(var n=K(e,t),r="",o=0;n.length>o;o++){var i=n[o];r+=i.value}return r}function $(e,t){for(var n=K(e,t),r=[],o=0;n.length>o;o++){var i=n[o];r.push({type:i.type,value:i.value})}return r}function J(e,t,n){var r=new Date(e),i="get"+(n||"");return new o({"[[weekday]]":r[i+"Day"](),"[[era]]":+(r[i+"FullYear"]()>=0),"[[year]]":r[i+"FullYear"](),"[[month]]":r[i+"Month"](),"[[day]]":r[i+"Date"](),"[[hour]]":r[i+"Hours"](),"[[minute]]":r[i+"Minutes"](),"[[second]]":r[i+"Seconds"](),"[[inDST]]":!1})}function ee(e,t){if(!e.number)throw new Error("Object passed doesn't contain locale data for Intl.NumberFormat");var n=void 0,r=[t],o=t.split("-");for(o.length>2&&4===o[1].length&&le.call(r,o[0]+"-"+o[2]);n=fe.call(r);)le.call(he.NumberFormat["[[availableLocales]]"],n),he.NumberFormat["[[localeData]]"][n]=e.number,e.date&&(e.date.nu=e.number.nu,le.call(he.DateTimeFormat["[[availableLocales]]"],n),he.DateTimeFormat["[[localeData]]"][n]=e.date);void 0===Me&&c(t)}var te={};te.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};var ne=function(){var e={};try{return Object.defineProperty(e,"a",{}),"a"in e}catch(e){return!1}}(),re=!ne&&!Object.prototype.__defineGetter__,oe=Object.prototype.hasOwnProperty,ie=ne?Object.defineProperty:function(e,t,n){"get"in n&&e.__defineGetter__?e.__defineGetter__(t,n.get):(!oe.call(e,t)||"value"in n)&&(e[t]=n.value)},ae=Array.prototype.indexOf||function(e){var t=this;if(!t.length)return-1;for(var n=arguments[1]||0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},se=Object.create||function(e,t){function n(){}var r=void 0;n.prototype=e,r=new n;for(var o in t)oe.call(t,o)&&ie(r,o,t[o]);return r},ue=Array.prototype.slice,ce=Array.prototype.concat,le=Array.prototype.push,pe=Array.prototype.join,fe=Array.prototype.shift,de=Function.prototype.bind||function(e){var t=this,n=ue.call(arguments,1);return 1===t.length?function(){return t.apply(e,ce.call(n,ue.call(arguments)))}:function(){return t.apply(e,ce.call(n,ue.call(arguments)))}},he=se(null),ge=Math.random();o.prototype=se(null),i.prototype=se(null);var me="[a-z]{3}(?:-[a-z]{3}){0,2}",ye="(?:[a-z]{2,3}(?:-"+me+")?|[a-z]{4}|[a-z]{5,8})",ve="[a-z]{4}",_e="(?:[a-z]{2}|\\d{3})",be="(?:[a-z0-9]{5,8}|\\d[a-z0-9]{3})",Ee="[0-9a-wy-z]",xe=Ee+"(?:-[a-z0-9]{2,8})+",Ce="x(?:-[a-z0-9]{1,8})+",we="(?:en-GB-oed|i-(?:ami|bnn|default|enochian|hak|klingon|lux|mingo|navajo|pwn|tao|tay|tsu)|sgn-(?:BE-FR|BE-NL|CH-DE))",Se="(?:art-lojban|cel-gaulish|no-bok|no-nyn|zh-(?:guoyu|hakka|min|min-nan|xiang))",Oe="(?:"+we+"|"+Se+")",Te=ye+"(?:-"+ve+")?(?:-"+_e+")?(?:-"+be+")*(?:-"+xe+")*(?:-"+Ce+")?",Pe=RegExp("^(?:"+Te+"|"+Ce+"|"+Oe+")quot;,"i"),Re=RegExp("^(?!x).*?-("+be+")-(?:\\w{4,8}-(?!x-))*\\1\\b","i"),Ne=RegExp("^(?!x).*?-("+Ee+")-(?:\\w+-(?!x-))*\\1\\b","i"),Ae=RegExp("-"+xe,"ig"),Me=void 0,De={tags:{"art-lojban":"jbo","i-ami":"ami","i-bnn":"bnn","i-hak":"hak","i-klingon":"tlh","i-lux":"lb","i-navajo":"nv","i-pwn":"pwn","i-tao":"tao","i-tay":"tay","i-tsu":"tsu","no-bok":"nb","no-nyn":"nn","sgn-BE-FR":"sfb","sgn-BE-NL":"vgt","sgn-CH-DE":"sgg","zh-guoyu":"cmn","zh-hakka":"hak","zh-min-nan":"nan","zh-xiang":"hsn","sgn-BR":"bzs","sgn-CO":"csn","sgn-DE":"gsg","sgn-DK":"dsl","sgn-ES":"ssp","sgn-FR":"fsl","sgn-GB":"bfi","sgn-GR":"gss","sgn-IE":"isg","sgn-IT":"ise","sgn-JP":"jsl","sgn-MX":"mfs","sgn-NI":"ncs","sgn-NL":"dse","sgn-NO":"nsl","sgn-PT":"psr","sgn-SE":"swl","sgn-US":"ase","sgn-ZA":"sfs","zh-cmn":"cmn","zh-cmn-Hans":"cmn-Hans","zh-cmn-Hant":"cmn-Hant","zh-gan":"gan","zh-wuu":"wuu","zh-yue":"yue"},subtags:{BU:"MM",DD:"DE",FX:"FR",TP:"TL",YD:"YE",ZR:"CD",heploc:"alalc97",in:"id",iw:"he",ji:"yi",jw:"jv",mo:"ro",ayx:"nun",bjd:"drl",ccq:"rki",cjr:"mom",cka:"cmr",cmk:"xch",drh:"khk",drw:"prs",gav:"dev",hrr:"jal",ibi:"opa",kgh:"kml",lcq:"ppr",mst:"mry",myt:"mry",sca:"hle",tie:"ras",tkk:"twm",tlw:"weo",tnf:"prs",ybd:"rki",yma:"lrr"},extLang:{aao:["aao","ar"],abh:["abh","ar"],abv:["abv","ar"],acm:["acm","ar"],acq:["acq","ar"],acw:["acw","ar"],acx:["acx","ar"],acy:["acy","ar"],adf:["adf","ar"],ads:["ads","sgn"],aeb:["aeb","ar"],aec:["aec","ar"],aed:["aed","sgn"],aen:["aen","sgn"],afb:["afb","ar"],afg:["afg","sgn"],ajp:["ajp","ar"],apc:["apc","ar"],apd:["apd","ar"],arb:["arb","ar"],arq:["arq","ar"],ars:["ars","ar"],ary:["ary","ar"],arz:["arz","ar"],ase:["ase","sgn"],asf:["asf","sgn"],asp:["asp","sgn"],asq:["asq","sgn"],asw:["asw","sgn"],auz:["auz","ar"],avl:["avl","ar"],ayh:["ayh","ar"],ayl:["ayl","ar"],ayn:["ayn","ar"],ayp:["ayp","ar"],bbz:["bbz","ar"],bfi:["bfi","sgn"],bfk:["bfk","sgn"],bjn:["bjn","ms"],bog:["bog","sgn"],bqn:["bqn","sgn"],bqy:["bqy","sgn"],btj:["btj","ms"],bve:["bve","ms"],bvl:["bvl","sgn"],bvu:["bvu","ms"],bzs:["bzs","sgn"],cdo:["cdo","zh"],cds:["cds","sgn"],cjy:["cjy","zh"],cmn:["cmn","zh"],coa:["coa","ms"],cpx:["cpx","zh"],csc:["csc","sgn"],csd:["csd","sgn"],cse:["cse","sgn"],csf:["csf","sgn"],csg:["csg","sgn"],csl:["csl","sgn"],csn:["csn","sgn"],csq:["csq","sgn"],csr:["csr","sgn"],czh:["czh","zh"],czo:["czo","zh"],doq:["doq","sgn"],dse:["dse","sgn"],dsl:["dsl","sgn"],dup:["dup","ms"],ecs:["ecs","sgn"],esl:["esl","sgn"],esn:["esn","sgn"],eso:["eso","sgn"],eth:["eth","sgn"],fcs:["fcs","sgn"],fse:["fse","sgn"],fsl:["fsl","sgn"],fss:["fss","sgn"],gan:["gan","zh"],gds:["gds","sgn"],gom:["gom","kok"],gse:["gse","sgn"],gsg:["gsg","sgn"],gsm:["gsm","sgn"],gss:["gss","sgn"],gus:["gus","sgn"],hab:["hab","sgn"],haf:["haf","sgn"],hak:["hak","zh"],hds:["hds","sgn"],hji:["hji","ms"],hks:["hks","sgn"],hos:["hos","sgn"],hps:["hps","sgn"],hsh:["hsh","sgn"],hsl:["hsl","sgn"],hsn:["hsn","zh"],icl:["icl","sgn"],ils:["ils","sgn"],inl:["inl","sgn"],ins:["ins","sgn"],ise:["ise","sgn"],isg:["isg","sgn"],isr:["isr","sgn"],jak:["jak","ms"],jax:["jax","ms"],jcs:["jcs","sgn"],jhs:["jhs","sgn"],jls:["jls","sgn"],jos:["jos","sgn"],jsl:["jsl","sgn"],jus:["jus","sgn"],kgi:["kgi","sgn"],knn:["knn","kok"],kvb:["kvb","ms"],kvk:["kvk","sgn"],kvr:["kvr","ms"],kxd:["kxd","ms"],lbs:["lbs","sgn"],lce:["lce","ms"],lcf:["lcf","ms"],liw:["liw","ms"],lls:["lls","sgn"],lsg:["lsg","sgn"],lsl:["lsl","sgn"],lso:["lso","sgn"],lsp:["lsp","sgn"],lst:["lst","sgn"],lsy:["lsy","sgn"],ltg:["ltg","lv"],lvs:["lvs","lv"],lzh:["lzh","zh"],max:["max","ms"],mdl:["mdl","sgn"],meo:["meo","ms"],mfa:["mfa","ms"],mfb:["mfb","ms"],mfs:["mfs","sgn"],min:["min","ms"],mnp:["mnp","zh"],mqg:["mqg","ms"],mre:["mre","sgn"],msd:["msd","sgn"],msi:["msi","ms"],msr:["msr","sgn"],mui:["mui","ms"],mzc:["mzc","sgn"],mzg:["mzg","sgn"],mzy:["mzy","sgn"],nan:["nan","zh"],nbs:["nbs","sgn"],ncs:["ncs","sgn"],nsi:["nsi","sgn"],nsl:["nsl","sgn"],nsp:["nsp","sgn"],nsr:["nsr","sgn"],nzs:["nzs","sgn"],okl:["okl","sgn"],orn:["orn","ms"],ors:["ors","ms"],pel:["pel","ms"],pga:["pga","ar"],pks:["pks","sgn"],prl:["prl","sgn"],prz:["prz","sgn"],psc:["psc","sgn"],psd:["psd","sgn"],pse:["pse","ms"],psg:["psg","sgn"],psl:["psl","sgn"],pso:["pso","sgn"],psp:["psp","sgn"],psr:["psr","sgn"],pys:["pys","sgn"],rms:["rms","sgn"],rsi:["rsi","sgn"],rsl:["rsl","sgn"],sdl:["sdl","sgn"],sfb:["sfb","sgn"],sfs:["sfs","sgn"],sgg:["sgg","sgn"],sgx:["sgx","sgn"],shu:["shu","ar"],slf:["slf","sgn"],sls:["sls","sgn"],sqk:["sqk","sgn"],sqs:["sqs","sgn"],ssh:["ssh","ar"],ssp:["ssp","sgn"],ssr:["ssr","sgn"],svk:["svk","sgn"],swc:["swc","sw"],swh:["swh","sw"],swl:["swl","sgn"],syy:["syy","sgn"],tmw:["tmw","ms"],tse:["tse","sgn"],tsm:["tsm","sgn"],tsq:["tsq","sgn"],tss:["tss","sgn"],tsy:["tsy","sgn"],tza:["tza","sgn"],ugn:["ugn","sgn"],ugy:["ugy","sgn"],ukl:["ukl","sgn"],uks:["uks","sgn"],urk:["urk","ms"],uzn:["uzn","uz"],uzs:["uzs","uz"],vgt:["vgt","sgn"],vkk:["vkk","ms"],vkt:["vkt","ms"],vsi:["vsi","sgn"],vsl:["vsl","sgn"],vsv:["vsv","sgn"],wuu:["wuu","zh"],xki:["xki","sgn"],xml:["xml","sgn"],xmm:["xmm","ms"],xms:["xms","sgn"],yds:["yds","sgn"],ysl:["ysl","sgn"],yue:["yue","zh"],zib:["zib","sgn"],zlm:["zlm","ms"],zmi:["zmi","ms"],zsl:["zsl","sgn"],zsm:["zsm","ms"]}},Ie=/^[A-Z]{3}#x2F;,Le=/-u(?:-[0-9a-z]{2,8})+/gi,ke={};ke.getCanonicalLocales=function(e){var t=g(e),n=[];for(var r in t)n.push(t[r]);return n};var je={BHD:3,BYR:0,XOF:0,BIF:0,XAF:0,CLF:4,CLP:0,KMF:0,DJF:0,XPF:0,GNF:0,ISK:0,IQD:3,JPY:0,JOD:3,KRW:0,KWD:3,LYD:3,OMR:3,PYG:0,RWF:0,TND:3,UGX:0,UYI:0,VUV:0,VND:0};ie(ke,"NumberFormat",{configurable:!0,writable:!0,value:S}),ie(ke.NumberFormat,"prototype",{writable:!1}),he.NumberFormat={"[[availableLocales]]":[],"[[relevantExtensionKeys]]":["nu"],"[[localeData]]":{}},ie(ke.NumberFormat,"supportedLocalesOf",{configurable:!0,writable:!0,value:de.call(function(e){if(!oe.call(this,"[[availableLocales]]"))throw new TypeError("supportedLocalesOf() is not a constructor");var t=a(),n=arguments[1],r=this["[[availableLocales]]"],o=g(e);return t.exp.test(t.input),x(r,o,n)},he.NumberFormat)}),ie(ke.NumberFormat.prototype,"format",{configurable:!0,get:P}),ke.NumberFormat.prototype.formatToParts=function(e){var t=null!==this&&"object"===te.typeof(this)&&u(this);if(!t||!t["[[initializedNumberFormat]]"])throw new TypeError("`this` value for formatToParts() is not an initialized Intl.NumberFormat object.");var n=Number(e);return R(this,n)};var Fe={arab:["٠","١","٢","٣","٤","٥","٦","٧","٨","٩"],arabext:["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"],bali:["᭐","᭑","᭒","᭓","᭔","᭕","᭖","᭗","᭘","᭙"],beng:["০","১","২","৩","৪","৫","৬","৭","৮","৯"],deva:["०","१","२","३","४","५","६","७","८","९"],fullwide:["0","1","2","3","4","5","6","7","8","9"],gujr:["૦","૧","૨","૩","૪","૫","૬","૭","૮","૯"],guru:["੦","੧","੨","੩","੪","੫","੬","੭","੮","੯"],hanidec:["〇","一","二","三","四","五","六","七","八","九"],khmr:["០","១","២","៣","៤","៥","៦","៧","៨","៩"],knda:["೦","೧","೨","೩","೪","೫","೬","೭","೮","೯"],laoo:["໐","໑","໒","໓","໔","໕","໖","໗","໘","໙"],latn:["0","1","2","3","4","5","6","7","8","9"],limb:["᥆","᥇","᥈","᥉","᥊","᥋","᥌","᥍","᥎","᥏"],mlym:["൦","൧","൨","൩","൪","൫","൬","൭","൮","൯"],mong:["᠐","᠑","᠒","᠓","᠔","᠕","᠖","᠗","᠘","᠙"],mymr:["၀","၁","၂","၃","၄","၅","၆","၇","၈","၉"],orya:["୦","୧","୨","୩","୪","୫","୬","୭","୮","୯"],tamldec:["௦","௧","௨","௩","௪","௫","௬","௭","௮","௯"],telu:["౦","౧","౨","౩","౪","౫","౬","౭","౮","౯"],thai:["๐","๑","๒","๓","๔","๕","๖","๗","๘","๙"],tibt:["༠","༡","༢","༣","༤","༥","༦","༧","༨","༩"]};ie(ke.NumberFormat.prototype,"resolvedOptions",{configurable:!0,writable:!0,value:function(){var e=void 0,t=new o,n=["locale","numberingSystem","style","currency","currencyDisplay","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","useGrouping"],r=null!==this&&"object"===te.typeof(this)&&u(this);if(!r||!r["[[initializedNumberFormat]]"])throw new TypeError("`this` value for resolvedOptions() is not an initialized Intl.NumberFormat object.");for(var i=0,a=n.length;i<a;i++)oe.call(r,e="[["+n[i]+"]]")&&(t[n[i]]={
7
- value:r[e],writable:!0,configurable:!0,enumerable:!0});return se({},t)}});var Ve=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,Ue=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+#x2F;g,ze=/[rqQASjJgwWIQq]/,Ge=["weekday","era","year","month","day","weekday","quarter"],He=["hour","minute","second","hour12","timeZoneName"],Be=se(null,{narrow:{},short:{},long:{}});ie(ke,"DateTimeFormat",{configurable:!0,writable:!0,value:G}),ie(G,"prototype",{writable:!1});var qe={weekday:["narrow","short","long"],era:["narrow","short","long"],year:["2-digit","numeric"],month:["2-digit","numeric","narrow","short","long"],day:["2-digit","numeric"],hour:["2-digit","numeric"],minute:["2-digit","numeric"],second:["2-digit","numeric"],timeZoneName:["short","long"]};he.DateTimeFormat={"[[availableLocales]]":[],"[[relevantExtensionKeys]]":["ca","nu"],"[[localeData]]":{}},ie(ke.DateTimeFormat,"supportedLocalesOf",{configurable:!0,writable:!0,value:de.call(function(e){if(!oe.call(this,"[[availableLocales]]"))throw new TypeError("supportedLocalesOf() is not a constructor");var t=a(),n=arguments[1],r=this["[[availableLocales]]"],o=g(e);return t.exp.test(t.input),x(r,o,n)},he.NumberFormat)}),ie(ke.DateTimeFormat.prototype,"format",{configurable:!0,get:Y}),ie(ke.DateTimeFormat.prototype,"formatToParts",{configurable:!0,get:X}),ie(ke.DateTimeFormat.prototype,"resolvedOptions",{writable:!0,configurable:!0,value:function(){var e=void 0,t=new o,n=["locale","calendar","numberingSystem","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"],r=null!==this&&"object"===te.typeof(this)&&u(this);if(!r||!r["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for resolvedOptions() is not an initialized Intl.DateTimeFormat object.");for(var i=0,a=n.length;i<a;i++)oe.call(r,e="[["+n[i]+"]]")&&(t[n[i]]={value:r[e],writable:!0,configurable:!0,enumerable:!0});return se({},t)}});var Ze=ke.__localeSensitiveProtos={Number:{},Date:{}};Ze.Number.toLocaleString=function(){if("[object Number]"!==Object.prototype.toString.call(this))throw new TypeError("`this` value must be a number for Number.prototype.toLocaleString()");return A(new S(arguments[0],arguments[1]),this)},Ze.Date.toLocaleString=function(){if("[object Date]"!==Object.prototype.toString.call(this))throw new TypeError("`this` value must be a Date instance for Date.prototype.toLocaleString()");var e=+this;if(isNaN(e))return"Invalid Date";var t=arguments[0],n=arguments[1];n=q(n,"any","all");var r=new G(t,n);return Q(r,e)},Ze.Date.toLocaleDateString=function(){if("[object Date]"!==Object.prototype.toString.call(this))throw new TypeError("`this` value must be a Date instance for Date.prototype.toLocaleDateString()");var e=+this;if(isNaN(e))return"Invalid Date";var t=arguments[0],n=arguments[1];n=q(n,"date","date");var r=new G(t,n);return Q(r,e)},Ze.Date.toLocaleTimeString=function(){if("[object Date]"!==Object.prototype.toString.call(this))throw new TypeError("`this` value must be a Date instance for Date.prototype.toLocaleTimeString()");var e=+this;if(isNaN(e))return"Invalid Date";var t=arguments[0],n=arguments[1];n=q(n,"time","time");var r=new G(t,n);return Q(r,e)},ie(ke,"__applyLocaleSensitivePrototypes",{writable:!0,configurable:!0,value:function(){ie(Number.prototype,"toLocaleString",{writable:!0,configurable:!0,value:Ze.Number.toLocaleString}),ie(Date.prototype,"toLocaleString",{writable:!0,configurable:!0,value:Ze.Date.toLocaleString});for(var e in Ze.Date)oe.call(Ze.Date,e)&&ie(Date.prototype,e,{writable:!0,configurable:!0,value:Ze.Date[e]})}}),ie(ke,"__addLocaleData",{value:function(e){if(!p(e.locale))throw new Error("Object passed doesn't identify itself with a valid language tag");ee(e,e.locale)}}),t.exports=ke},{}],186:[function(t,n,r){(function(t){(function(){function o(e,t){if(e!==t){var n=null===e,r=e===O,o=e===e,i=null===t,a=t===O,s=t===t;if(e>t&&!i||!o||n&&!a&&s||r&&s)return 1;if(e<t&&!n||!s||i&&!r&&o||a&&o)return-1}return 0}function i(e,t,n){for(var r=e.length,o=n?r:-1;n?o--:++o<r;)if(t(e[o],o,e))return o;return-1}function a(e,t,n){if(t!==t)return y(e,n);for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}function s(e){return"function"==typeof e||!1}function u(e){return null==e?"":e+""}function c(e,t){for(var n=-1,r=e.length;++n<r&&t.indexOf(e.charAt(n))>-1;);return n}function l(e,t){for(var n=e.length;n--&&t.indexOf(e.charAt(n))>-1;);return n}function p(e,t){return o(e.criteria,t.criteria)||e.index-t.index}function f(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,s=i.length,u=n.length;++r<s;){var c=o(i[r],a[r]);if(c){if(r>=u)return c;var l=n[r];return c*("asc"===l||l===!0?1:-1)}}return e.index-t.index}function d(e){return qe[e]}function h(e){return Ze[e]}function g(e,t,n){return t?e=Xe[e]:n&&(e=Ke[e]),"\\"+e}function m(e){return"\\"+Ke[e]}function y(e,t,n){for(var r=e.length,o=t+(n?0:-1);n?o--:++o<r;){var i=e[o];if(i!==i)return o}return-1}function v(e){return!!e&&"object"==typeof e}function _(e){return e<=160&&e>=9&&e<=13||32==e||160==e||5760==e||6158==e||e>=8192&&(e<=8202||8232==e||8233==e||8239==e||8287==e||12288==e||65279==e)}function b(e,t){for(var n=-1,r=e.length,o=-1,i=[];++n<r;)e[n]===t&&(e[n]=q,i[++o]=n);return i}function E(e,t){for(var n,r=-1,o=e.length,i=-1,a=[];++r<o;){var s=e[r],u=t?t(s,r,e):s;r&&n===u||(n=u,a[++i]=s)}return a}function x(e){for(var t=-1,n=e.length;++t<n&&_(e.charCodeAt(t)););return t}function C(e){for(var t=e.length;t--&&_(e.charCodeAt(t)););return t}function w(e){return We[e]}function S(e){function t(e){if(v(e)&&!Rs(e)&&!(e instanceof _)){if(e instanceof r)return e;if(ta.call(e,"__chain__")&&ta.call(e,"__wrapped__"))return dr(e)}return new r(e)}function n(){}function r(e,t,n){this.__wrapped__=e,this.__actions__=n||[],this.__chain__=!!t}function _(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Pa,this.__views__=[]}function $(){var e=new _(this.__wrapped__);return e.__actions__=et(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=et(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=et(this.__views__),e}function ne(){if(this.__filtered__){var e=new _(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function oe(){var e=this.__wrapped__.value(),t=this.__dir__,n=Rs(e),r=t<0,o=n?e.length:0,i=Zn(0,o,this.__views__),a=i.start,s=i.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,p=l.length,f=0,d=Ca(u,this.__takeCount__);if(!n||o<z||o==u&&d==u)return nn(r&&n?e.reverse():e,this.__actions__);var h=[];e:for(;u--&&f<d;){c+=t;for(var g=-1,m=e[c];++g<p;){var y=l[g],v=y.iteratee,_=y.type,b=v(m);if(_==H)m=b;else if(!b){if(_==G)continue e;break e}}h[f++]=m}return h}function qe(){this.__data__={}}function Ze(e){return this.has(e)&&delete this.__data__[e]}function We(e){return"__proto__"==e?O:this.__data__[e]}function Ye(e){return"__proto__"!=e&&ta.call(this.__data__,e)}function Xe(e,t){return"__proto__"!=e&&(this.__data__[e]=t),this}function Ke(e){var t=e?e.length:0;for(this.data={hash:ya(null),set:new pa};t--;)this.push(e[t])}function Qe(e,t){var n=e.data,r="string"==typeof t||Lo(t)?n.set.has(t):n.hash[t];return r?0:-1}function $e(e){var t=this.data;"string"==typeof e||Lo(e)?t.set.add(e):t.hash[e]=!0}function Je(e,t){for(var n=-1,r=e.length,o=-1,i=t.length,a=zi(r+i);++n<r;)a[n]=e[n];for(;++o<i;)a[n++]=t[o];return a}function et(e,t){var n=-1,r=e.length;for(t||(t=zi(r));++n<r;)t[n]=e[n];return t}function tt(e,t){for(var n=-1,r=e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function nt(e,t){for(var n=e.length;n--&&t(e[n],n,e)!==!1;);return e}function it(e,t){for(var n=-1,r=e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function at(e,t,n,r){for(var o=-1,i=e.length,a=r,s=a;++o<i;){var u=e[o],c=+t(u);n(c,a)&&(a=c,s=u)}return s}function st(e,t){for(var n=-1,r=e.length,o=-1,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[++o]=a)}return i}function ut(e,t){for(var n=-1,r=e.length,o=zi(r);++n<r;)o[n]=t(e[n],n,e);return o}function ct(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function lt(e,t,n,r){var o=-1,i=e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function pt(e,t,n,r){var o=e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function ft(e,t){for(var n=-1,r=e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function dt(e,t){for(var n=e.length,r=0;n--;)r+=+t(e[n])||0;return r}function ht(e,t){return e===O?t:e}function gt(e,t,n,r){return e!==O&&ta.call(r,n)?e:t}function mt(e,t,n){for(var r=-1,o=Us(t),i=o.length;++r<i;){var a=o[r],s=e[a],u=n(s,t[a],a,e,t);(u===u?u===s:s!==s)&&(s!==O||a in e)||(e[a]=u)}return e}function yt(e,t){return null==t?e:_t(t,Us(t),e)}function vt(e,t){for(var n=-1,r=null==e,o=!r&&Qn(e),i=o?e.length:0,a=t.length,s=zi(a);++n<a;){var u=t[n];o?s[n]=$n(u,i)?e[u]:O:s[n]=r?O:e[u]}return s}function _t(e,t,n){n||(n={});for(var r=-1,o=t.length;++r<o;){var i=t[r];n[i]=e[i]}return n}function bt(e,t,n){var r=typeof e;return"function"==r?t===O?e:an(e,t,n):null==e?Pi:"object"==r?Vt(e):t===O?Ii(e):Ut(e,t)}function Et(e,t,n,r,o,i,a){var s;if(n&&(s=o?n(e,r,o):n(e)),s!==O)return s;if(!Lo(e))return e;var u=Rs(e);if(u){if(s=Wn(e),!t)return et(e,s)}else{var c=ra.call(e),l=c==Q;if(c!=ee&&c!=Z&&(!l||o))return Be[c]?Xn(e,c,t):o?e:{};if(s=Yn(l?{}:e),!t)return yt(s,e)}i||(i=[]),a||(a=[]);for(var p=i.length;p--;)if(i[p]==e)return a[p];return i.push(e),a.push(s),(u?tt:At)(e,function(r,o){s[o]=Et(r,t,n,o,e,i,a)}),s}function xt(e,t,n){if("function"!=typeof e)throw new Ki(B);return fa(function(){e.apply(O,n)},t)}function Ct(e,t){var n=e?e.length:0,r=[];if(!n)return r;var o=-1,i=Hn(),s=i==a,u=s&&t.length>=z?gn(t):null,c=t.length;u&&(i=Qe,s=!1,t=u);e:for(;++o<n;){var l=e[o];if(s&&l===l){for(var p=c;p--;)if(t[p]===l)continue e;r.push(l)}else i(t,l,0)<0&&r.push(l)}return r}function wt(e,t){var n=!0;return ka(e,function(e,r,o){return n=!!t(e,r,o)}),n}function St(e,t,n,r){var o=r,i=o;return ka(e,function(e,a,s){var u=+t(e,a,s);(n(u,o)||u===r&&u===i)&&(o=u,i=e)}),i}function Ot(e,t,n,r){var o=e.length;for(n=null==n?0:+n||0,n<0&&(n=-n>o?0:o+n),r=r===O||r>o?o:+r||0,r<0&&(r+=o),o=n>r?0:r>>>0,n>>>=0;n<o;)e[n++]=t;return e}function Tt(e,t){var n=[];return ka(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function Pt(e,t,n,r){var o;return n(e,function(e,n,i){if(t(e,n,i))return o=r?n:e,!1}),o}function Rt(e,t,n,r){r||(r=[]);for(var o=-1,i=e.length;++o<i;){var a=e[o];v(a)&&Qn(a)&&(n||Rs(a)||Oo(a))?t?Rt(a,t,n,r):ct(r,a):n||(r[r.length]=a)}return r}function Nt(e,t){return Fa(e,t,ti)}function At(e,t){return Fa(e,t,Us)}function Mt(e,t){return Va(e,t,Us)}function Dt(e,t){for(var n=-1,r=t.length,o=-1,i=[];++n<r;){var a=t[n];Io(e[a])&&(i[++o]=a)}return i}function It(e,t,n){if(null!=e){n!==O&&n in pr(e)&&(t=[n]);for(var r=0,o=t.length;null!=e&&r<o;)e=e[t[r++]];return r&&r==o?e:O}}function Lt(e,t,n,r,o,i){return e===t||(null==e||null==t||!Lo(e)&&!v(t)?e!==e&&t!==t:kt(e,t,Lt,n,r,o,i))}function kt(e,t,n,r,o,i,a){var s=Rs(e),u=Rs(t),c=W,l=W;s||(c=ra.call(e),c==Z?c=ee:c!=ee&&(s=Bo(e))),u||(l=ra.call(t),l==Z?l=ee:l!=ee&&(u=Bo(t)));var p=c==ee,f=l==ee,d=c==l;if(d&&!s&&!p)return Vn(e,t,c);if(!o){var h=p&&ta.call(e,"__wrapped__"),g=f&&ta.call(t,"__wrapped__");if(h||g)return n(h?e.value():e,g?t.value():t,r,o,i,a)}if(!d)return!1;i||(i=[]),a||(a=[]);for(var m=i.length;m--;)if(i[m]==e)return a[m]==t;i.push(e),a.push(t);var y=(s?Fn:Un)(e,t,n,r,o,i,a);return i.pop(),a.pop(),y}function jt(e,t,n){var r=t.length,o=r,i=!n;if(null==e)return!o;for(e=pr(e);r--;){var a=t[r];if(i&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++r<o;){a=t[r];var s=a[0],u=e[s],c=a[1];if(i&&a[2]){if(u===O&&!(s in e))return!1}else{var l=n?n(u,c,s):O;if(!(l===O?Lt(c,u,n,!0):l))return!1}}return!0}function Ft(e,t){var n=-1,r=Qn(e)?zi(e.length):[];return ka(e,function(e,o,i){r[++n]=t(e,o,i)}),r}function Vt(e){var t=Bn(e);if(1==t.length&&t[0][2]){var n=t[0][0],r=t[0][1];return function(e){return null!=e&&(e[n]===r&&(r!==O||n in pr(e)))}}return function(e){return jt(e,t)}}function Ut(e,t){var n=Rs(e),r=er(e)&&rr(t),o=e+"";return e=fr(e),function(i){if(null==i)return!1;var a=o;if(i=pr(i),(n||!r)&&!(a in i)){if(i=1==e.length?i:It(i,Yt(e,0,-1)),null==i)return!1;a=Or(e),i=pr(i)}return i[a]===t?t!==O||a in i:Lt(t,i[a],O,!0)}}function zt(e,t,n,r,o){if(!Lo(e))return e;var i=Qn(t)&&(Rs(t)||Bo(t)),a=i?O:Us(t);return tt(a||t,function(s,u){if(a&&(u=s,s=t[u]),v(s))r||(r=[]),o||(o=[]),Gt(e,t,u,zt,n,r,o);else{var c=e[u],l=n?n(c,s,u,e,t):O,p=l===O;p&&(l=s),l===O&&(!i||u in e)||!p&&(l===l?l===c:c!==c)||(e[u]=l)}}),e}function Gt(e,t,n,r,o,i,a){for(var s=i.length,u=t[n];s--;)if(i[s]==u)return void(e[n]=a[s]);var c=e[n],l=o?o(c,u,n,e,t):O,p=l===O;p&&(l=u,Qn(u)&&(Rs(u)||Bo(u))?l=Rs(c)?c:Qn(c)?et(c):[]:zo(u)||Oo(u)?l=Oo(c)?Xo(c):zo(c)?c:{}:p=!1),i.push(u),a.push(l),p?e[n]=r(l,u,o,i,a):(l===l?l!==c:c===c)&&(e[n]=l)}function Ht(e){return function(t){return null==t?O:t[e]}}function Bt(e){var t=e+"";return e=fr(e),function(n){return It(n,e,t)}}function qt(e,t){for(var n=e?t.length:0;n--;){var r=t[n];if(r!=o&&$n(r)){var o=r;da.call(e,r,1)}}return e}function Zt(e,t){return e+va(Oa()*(t-e+1))}function Wt(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}function Yt(e,t,n){var r=-1,o=e.length;t=null==t?0:+t||0,t<0&&(t=-t>o?0:o+t),n=n===O||n>o?o:+n||0,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=zi(o);++r<o;)i[r]=e[r+t];return i}function Xt(e,t){var n;return ka(e,function(e,r,o){return n=t(e,r,o),!n}),!!n}function Kt(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function Qt(e,t,n){var r=zn(),o=-1;t=ut(t,function(e){return r(e)});var i=Ft(e,function(e){var n=ut(t,function(t){return t(e)});return{criteria:n,index:++o,value:e}});return Kt(i,function(e,t){return f(e,t,n)})}function $t(e,t){var n=0;return ka(e,function(e,r,o){n+=+t(e,r,o)||0}),n}function Jt(e,t){var n=-1,r=Hn(),o=e.length,i=r==a,s=i&&o>=z,u=s?gn():null,c=[];u?(r=Qe,i=!1):(s=!1,u=t?[]:c);e:for(;++n<o;){var l=e[n],p=t?t(l,n,e):l;if(i&&l===l){for(var f=u.length;f--;)if(u[f]===p)continue e;t&&u.push(p),c.push(l)}else r(u,p,0)<0&&((t||s)&&u.push(p),c.push(l))}return c}function en(e,t){for(var n=-1,r=t.length,o=zi(r);++n<r;)o[n]=e[t[n]];return o}function tn(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?Yt(e,r?0:i,r?i+1:o):Yt(e,r?i+1:0,r?o:i)}function nn(e,t){var n=e;n instanceof _&&(n=n.value());for(var r=-1,o=t.length;++r<o;){var i=t[r];n=i.func.apply(i.thisArg,ct([n],i.args))}return n}function rn(e,t,n){var r=0,o=e?e.length:r;if("number"==typeof t&&t===t&&o<=Aa){for(;r<o;){var i=r+o>>>1,a=e[i];(n?a<=t:a<t)&&null!==a?r=i+1:o=i}return o}return on(e,t,Pi,n)}function on(e,t,n,r){t=n(t);for(var o=0,i=e?e.length:0,a=t!==t,s=null===t,u=t===O;o<i;){var c=va((o+i)/2),l=n(e[c]),p=l!==O,f=l===l;if(a)var d=f||r;else d=s?f&&p&&(r||null!=l):u?f&&(r||p):null!=l&&(r?l<=t:l<t);d?o=c+1:i=c}return Ca(i,Na)}function an(e,t,n){if("function"!=typeof e)return Pi;if(t===O)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,i){return e.call(t,n,r,o,i)};case 5:return function(n,r,o,i,a){return e.call(t,n,r,o,i,a)}}return function(){return e.apply(t,arguments)}}function sn(e){var t=new aa(e.byteLength),n=new ha(t);return n.set(new ha(e)),t}function un(e,t,n){for(var r=n.length,o=-1,i=xa(e.length-r,0),a=-1,s=t.length,u=zi(s+i);++a<s;)u[a]=t[a];for(;++o<r;)u[n[o]]=e[o];for(;i--;)u[a++]=e[o++];return u}function cn(e,t,n){for(var r=-1,o=n.length,i=-1,a=xa(e.length-o,0),s=-1,u=t.length,c=zi(a+u);++i<a;)c[i]=e[i];for(var l=i;++s<u;)c[l+s]=t[s];for(;++r<o;)c[l+n[r]]=e[i++];return c}function ln(e,t){return function(n,r,o){var i=t?t():{};if(r=zn(r,o,3),Rs(n))for(var a=-1,s=n.length;++a<s;){var u=n[a];e(i,u,r(u,a,n),n)}else ka(n,function(t,n,o){e(i,t,r(t,n,o),o)});return i}}function pn(e){return vo(function(t,n){var r=-1,o=null==t?0:n.length,i=o>2?n[o-2]:O,a=o>2?n[2]:O,s=o>1?n[o-1]:O;for("function"==typeof i?(i=an(i,s,5),o-=2):(i="function"==typeof s?s:O,o-=i?1:0),a&&Jn(n[0],n[1],a)&&(i=o<3?O:i,o=1);++r<o;){var u=n[r];u&&e(t,u,i)}return t})}function fn(e,t){return function(n,r){var o=n?Ga(n):0;if(!nr(o))return e(n,r);for(var i=t?o:-1,a=pr(n);(t?i--:++i<o)&&r(a[i],i,a)!==!1;);return n}}function dn(e){return function(t,n,r){for(var o=pr(t),i=r(t),a=i.length,s=e?a:-1;e?s--:++s<a;){var u=i[s];if(n(o[u],u,o)===!1)break}return t}}function hn(e,t){function n(){var o=this&&this!==rt&&this instanceof n?r:e;return o.apply(t,arguments)}var r=yn(e);return n}function gn(e){return ya&&pa?new Ke(e):null}function mn(e){return function(t){for(var n=-1,r=Si(pi(t)),o=r.length,i="";++n<o;)i=e(i,r[n],n);return i}}function yn(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=La(e.prototype),r=e.apply(n,t);return Lo(r)?r:n}}function vn(e){function t(n,r,o){o&&Jn(n,r,o)&&(r=O);var i=jn(n,e,O,O,O,O,O,r);return i.placeholder=t.placeholder,i}return t}function _n(e,t){return vo(function(n){var r=n[0];return null==r?r:(n.push(t),e.apply(O,n))})}function bn(e,t){return function(n,r,o){if(o&&Jn(n,r,o)&&(r=O),r=zn(r,o,3),1==r.length){n=Rs(n)?n:lr(n);var i=at(n,r,e,t);if(!n.length||i!==t)return i}return St(n,r,e,t)}}function En(e,t){return function(n,r,o){if(r=zn(r,o,3),Rs(n)){var a=i(n,r,t);return a>-1?n[a]:O}return Pt(n,r,e)}}function xn(e){return function(t,n,r){return t&&t.length?(n=zn(n,r,3),i(t,n,e)):-1}}function Cn(e){return function(t,n,r){return n=zn(n,r,3),Pt(t,n,e,!0)}}function wn(e){return function(){for(var t,n=arguments.length,o=e?n:-1,i=0,a=zi(n);e?o--:++o<n;){var s=a[i++]=arguments[o];if("function"!=typeof s)throw new Ki(B);!t&&r.prototype.thru&&"wrapper"==Gn(s)&&(t=new r([],(!0)))}for(o=t?-1:n;++o<n;){s=a[o];var u=Gn(s),c="wrapper"==u?za(s):O;t=c&&tr(c[0])&&c[1]==(L|A|D|k)&&!c[4].length&&1==c[9]?t[Gn(c[0])].apply(t,c[3]):1==s.length&&tr(s)?t[u]():t.thru(s)}return function(){var e=arguments,r=e[0];if(t&&1==e.length&&Rs(r)&&r.length>=z)return t.plant(r).value();for(var o=0,i=n?a[o].apply(this,e):r;++o<n;)i=a[o].call(this,i);return i}}}function Sn(e,t){return function(n,r,o){return"function"==typeof r&&o===O&&Rs(n)?e(n,r):t(n,an(r,o,3))}}function On(e){return function(t,n,r){return"function"==typeof n&&r===O||(n=an(n,r,3)),e(t,n,ti)}}function Tn(e){return function(t,n,r){return"function"==typeof n&&r===O||(n=an(n,r,3)),e(t,n)}}function Pn(e){return function(t,n,r){var o={};return n=zn(n,r,3),At(t,function(t,r,i){var a=n(t,r,i);r=e?a:r,t=e?t:a,o[r]=t}),o}}function Rn(e){return function(t,n,r){return t=u(t),(e?t:"")+Dn(t,n,r)+(e?"":t)}}function Nn(e){var t=vo(function(n,r){var o=b(r,t.placeholder);return jn(n,e,O,r,o)});return t}function An(e,t){return function(n,r,o,i){var a=arguments.length<3;return"function"==typeof r&&i===O&&Rs(n)?e(n,r,o,a):Wt(n,zn(r,i,4),o,a,t)}}function Mn(e,t,n,r,o,i,a,s,u,c){function l(){for(var v=arguments.length,_=v,E=zi(v);_--;)E[_]=arguments[_];if(r&&(E=un(E,r,o)),i&&(E=cn(E,i,a)),h||m){var x=l.placeholder,C=b(E,x);if(v-=C.length,v<c){var w=s?et(s):O,S=xa(c-v,0),T=h?C:O,N=h?O:C,A=h?E:O,M=h?O:E;t|=h?D:I,t&=~(h?I:D),g||(t&=~(P|R));var L=[e,t,n,A,T,M,N,w,u,S],k=Mn.apply(O,L);return tr(e)&&Ha(k,L),k.placeholder=x,k}}var j=f?n:this,F=d?j[e]:e;return s&&(E=ur(E,s)),p&&u<E.length&&(E.length=u),this&&this!==rt&&this instanceof l&&(F=y||yn(e)),F.apply(j,E)}var p=t&L,f=t&P,d=t&R,h=t&A,g=t&N,m=t&M,y=d?O:yn(e);return l}function Dn(e,t,n){var r=e.length;if(t=+t,r>=t||!ba(t))return"";var o=t-r;return n=null==n?" ":n+"",yi(n,ma(o/n.length)).slice(0,o)}function In(e,t,n,r){function o(){for(var t=-1,s=arguments.length,u=-1,c=r.length,l=zi(c+s);++u<c;)l[u]=r[u];for(;s--;)l[u++]=arguments[++t];var p=this&&this!==rt&&this instanceof o?a:e;return p.apply(i?n:this,l)}var i=t&P,a=yn(e);return o}function Ln(e){var t=qi[e];return function(e,n){return n=n===O?0:+n||0,n?(n=ca(10,n),t(e*n)/n):t(e)}}function kn(e){return function(t,n,r,o){var i=zn(r);return null==r&&i===bt?rn(t,n,e):on(t,n,i(r,o,1),e)}}function jn(e,t,n,r,o,i,a,s){var u=t&R;if(!u&&"function"!=typeof e)throw new Ki(B);var c=r?r.length:0;if(c||(t&=~(D|I),r=o=O),c-=o?o.length:0,t&I){var l=r,p=o;r=o=O}var f=u?O:za(e),d=[e,t,n,r,o,l,p,i,a,s];if(f&&(or(d,f),t=d[1],s=d[9]),d[9]=null==s?u?0:e.length:xa(s-c,0)||0,t==P)var h=hn(d[0],d[2]);else h=t!=D&&t!=(P|D)||d[4].length?Mn.apply(O,d):In.apply(O,d);var g=f?Ua:Ha;return g(h,d)}function Fn(e,t,n,r,o,i,a){var s=-1,u=e.length,c=t.length;if(u!=c&&!(o&&c>u))return!1;for(;++s<u;){var l=e[s],p=t[s],f=r?r(o?p:l,o?l:p,s):O;if(f!==O){if(f)continue;return!1}if(o){if(!ft(t,function(e){return l===e||n(l,e,r,o,i,a)}))return!1}else if(l!==p&&!n(l,p,r,o,i,a))return!1}return!0}function Vn(e,t,n){switch(n){case Y:case X:return+e==+t;case K:return e.name==t.name&&e.message==t.message;case J:return e!=+e?t!=+t:e==+t;case te:case re:return e==t+""}return!1}function Un(e,t,n,r,o,i,a){var s=Us(e),u=s.length,c=Us(t),l=c.length;if(u!=l&&!o)return!1;for(var p=u;p--;){var f=s[p];if(!(o?f in t:ta.call(t,f)))return!1}for(var d=o;++p<u;){f=s[p];var h=e[f],g=t[f],m=r?r(o?g:h,o?h:g,f):O;if(!(m===O?n(h,g,r,o,i,a):m))return!1;d||(d="constructor"==f)}if(!d){var y=e.constructor,v=t.constructor;if(y!=v&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v))return!1}return!0}function zn(e,n,r){var o=t.callback||Oi;return o=o===Oi?bt:o,r?o(e,n,r):o}function Gn(e){for(var t=e.name,n=Ia[t],r=n?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function Hn(e,n,r){var o=t.indexOf||wr;return o=o===wr?a:o,e?o(e,n,r):o}function Bn(e){for(var t=ni(e),n=t.length;n--;)t[n][2]=rr(t[n][1]);return t}function qn(e,t){var n=null==e?O:e[t];return Fo(n)?n:O}function Zn(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Ca(t,e+a);break;case"takeRight":e=xa(e,t-a)}}return{start:e,end:t}}function Wn(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ta.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Yn(e){var t=e.constructor;return"function"==typeof t&&t instanceof t||(t=Wi),new t}function Xn(e,t,n){var r=e.constructor;switch(t){case ie:return sn(e);case Y:case X:return new r((+e));case ae:case se:case ue:case ce:case le:case pe:case fe:case de:case he:var o=e.buffer;return new r(n?sn(o):o,e.byteOffset,e.length);case J:case re:return new r(e);case te:var i=new r(e.source,De.exec(e));i.lastIndex=e.lastIndex}return i}function Kn(e,t,n){null==e||er(t,e)||(t=fr(t),e=1==t.length?e:It(e,Yt(t,0,-1)),t=Or(t));var r=null==e?e:e[t];return null==r?O:r.apply(e,n)}function Qn(e){return null!=e&&nr(Ga(e))}function $n(e,t){return e="number"==typeof e||ke.test(e)?+e:-1,t=null==t?Ma:t,e>-1&&e%1==0&&e<t}function Jn(e,t,n){if(!Lo(n))return!1;var r=typeof t;if("number"==r?Qn(n)&&$n(t,n.length):"string"==r&&t in n){var o=n[t];return e===e?e===o:o!==o}return!1}function er(e,t){var n=typeof e;if("string"==n&&Oe.test(e)||"number"==n)return!0;if(Rs(e))return!1;var r=!Se.test(e);return r||null!=t&&e in pr(t)}function tr(e){var n=Gn(e);if(!(n in _.prototype))return!1;var r=t[n];if(e===r)return!0;var o=za(r);return!!o&&e===o[0]}function nr(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Ma}function rr(e){return e===e&&!Lo(e)}function or(e,t){var n=e[1],r=t[1],o=n|r,i=o<L,a=r==L&&n==A||r==L&&n==k&&e[7].length<=t[8]||r==(L|k)&&n==A;if(!i&&!a)return e;r&P&&(e[2]=t[2],o|=n&P?0:N);var s=t[3];if(s){var u=e[3];e[3]=u?un(u,s,t[4]):et(s),e[4]=u?b(e[3],q):et(t[4])}return s=t[5],s&&(u=e[5],e[5]=u?cn(u,s,t[6]):et(s),e[6]=u?b(e[5],q):et(t[6])),s=t[7],s&&(e[7]=et(s)),r&L&&(e[8]=null==e[8]?t[8]:Ca(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e}function ir(e,t){return e===O?t:Ns(e,t,ir)}function ar(e,t){e=pr(e);for(var n=-1,r=t.length,o={};++n<r;){var i=t[n];i in e&&(o[i]=e[i])}return o}function sr(e,t){var n={};return Nt(e,function(e,r,o){t(e,r,o)&&(n[r]=e)}),n}function ur(e,t){for(var n=e.length,r=Ca(t.length,n),o=et(e);r--;){var i=t[r];e[r]=$n(i,n)?o[i]:O}return e}function cr(e){for(var t=ti(e),n=t.length,r=n&&e.length,o=!!r&&nr(r)&&(Rs(e)||Oo(e)),i=-1,a=[];++i<n;){var s=t[i];(o&&$n(s,r)||ta.call(e,s))&&a.push(s)}return a}function lr(e){return null==e?[]:Qn(e)?Lo(e)?e:Wi(e):ai(e)}function pr(e){return Lo(e)?e:Wi(e)}function fr(e){if(Rs(e))return e;var t=[];return u(e).replace(Te,function(e,n,r,o){t.push(r?o.replace(Ae,"$1"):n||e)}),t}function dr(e){return e instanceof _?e.clone():new r(e.__wrapped__,e.__chain__,et(e.__actions__))}function hr(e,t,n){t=(n?Jn(e,t,n):null==t)?1:xa(va(t)||1,1);for(var r=0,o=e?e.length:0,i=-1,a=zi(ma(o/t));r<o;)a[++i]=Yt(e,r,r+=t);return a}function gr(e){for(var t=-1,n=e?e.length:0,r=-1,o=[];++t<n;){var i=e[t];i&&(o[++r]=i)}return o}function mr(e,t,n){var r=e?e.length:0;return r?((n?Jn(e,t,n):null==t)&&(t=1),Yt(e,t<0?0:t)):[]}function yr(e,t,n){var r=e?e.length:0;return r?((n?Jn(e,t,n):null==t)&&(t=1),t=r-(+t||0),Yt(e,0,t<0?0:t)):[]}function vr(e,t,n){return e&&e.length?tn(e,zn(t,n,3),!0,!0):[]}function _r(e,t,n){return e&&e.length?tn(e,zn(t,n,3),!0):[]}function br(e,t,n,r){var o=e?e.length:0;return o?(n&&"number"!=typeof n&&Jn(e,t,n)&&(n=0,r=o),Ot(e,t,n,r)):[]}function Er(e){return e?e[0]:O}function xr(e,t,n){var r=e?e.length:0;return n&&Jn(e,t,n)&&(t=!1),r?Rt(e,t):[]}function Cr(e){var t=e?e.length:0;return t?Rt(e,!0):[]}function wr(e,t,n){var r=e?e.length:0;if(!r)return-1;if("number"==typeof n)n=n<0?xa(r+n,0):n;else if(n){var o=rn(e,t);return o<r&&(t===t?t===e[o]:e[o]!==e[o])?o:-1}return a(e,t,n||0)}function Sr(e){return yr(e,1)}function Or(e){var t=e?e.length:0;return t?e[t-1]:O}function Tr(e,t,n){var r=e?e.length:0;if(!r)return-1;var o=r;if("number"==typeof n)o=(n<0?xa(r+n,0):Ca(n||0,r-1))+1;else if(n){o=rn(e,t,!0)-1;var i=e[o];return(t===t?t===i:i!==i)?o:-1}if(t!==t)return y(e,o,!0);for(;o--;)if(e[o]===t)return o;return-1}function Pr(){var e=arguments,t=e[0];if(!t||!t.length)return t;for(var n=0,r=Hn(),o=e.length;++n<o;)for(var i=0,a=e[n];(i=r(t,a,i))>-1;)da.call(t,i,1);return t}function Rr(e,t,n){var r=[];if(!e||!e.length)return r;var o=-1,i=[],a=e.length;for(t=zn(t,n,3);++o<a;){var s=e[o];t(s,o,e)&&(r.push(s),i.push(o))}return qt(e,i),r}function Nr(e){return mr(e,1)}function Ar(e,t,n){var r=e?e.length:0;return r?(n&&"number"!=typeof n&&Jn(e,t,n)&&(t=0,n=r),Yt(e,t,n)):[]}function Mr(e,t,n){var r=e?e.length:0;return r?((n?Jn(e,t,n):null==t)&&(t=1),Yt(e,0,t<0?0:t)):[]}function Dr(e,t,n){var r=e?e.length:0;return r?((n?Jn(e,t,n):null==t)&&(t=1),t=r-(+t||0),Yt(e,t<0?0:t)):[]}function Ir(e,t,n){return e&&e.length?tn(e,zn(t,n,3),!1,!0):[]}function Lr(e,t,n){return e&&e.length?tn(e,zn(t,n,3)):[]}function kr(e,t,n,r){var o=e?e.length:0;if(!o)return[];null!=t&&"boolean"!=typeof t&&(r=n,n=Jn(e,t,r)?O:t,t=!1);var i=zn();return null==n&&i===bt||(n=i(n,r,3)),t&&Hn()==a?E(e,n):Jt(e,n)}function jr(e){if(!e||!e.length)return[];var t=-1,n=0;e=st(e,function(e){if(Qn(e))return n=xa(e.length,n),!0});for(var r=zi(n);++t<n;)r[t]=ut(e,Ht(t));return r}function Fr(e,t,n){var r=e?e.length:0;if(!r)return[];var o=jr(e);return null==t?o:(t=an(t,n,4),ut(o,function(e){return lt(e,t,O,!0)}))}function Vr(){for(var e=-1,t=arguments.length;++e<t;){var n=arguments[e];if(Qn(n))var r=r?ct(Ct(r,n),Ct(n,r)):n}return r?Jt(r):[]}function Ur(e,t){var n=-1,r=e?e.length:0,o={};for(!r||t||Rs(e[0])||(t=[]);++n<r;){var i=e[n];t?o[i]=t[n]:i&&(o[i[0]]=i[1])}return o}function zr(e){var n=t(e);return n.__chain__=!0,n}function Gr(e,t,n){return t.call(n,e),e}function Hr(e,t,n){return t.call(n,e)}function Br(){return zr(this)}function qr(){return new r(this.value(),this.__chain__)}function Zr(e){for(var t,r=this;r instanceof n;){var o=dr(r);t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t}function Wr(){var e=this.__wrapped__,t=function(e){return n&&n.__dir__<0?e:e.reverse()};if(e instanceof _){var n=e;return this.__actions__.length&&(n=new _(this)),n=n.reverse(),n.__actions__.push({func:Hr,args:[t],thisArg:O}),new r(n,this.__chain__)}return this.thru(t)}function Yr(){return this.value()+""}function Xr(){return nn(this.__wrapped__,this.__actions__)}function Kr(e,t,n){var r=Rs(e)?it:wt;return n&&Jn(e,t,n)&&(t=O),"function"==typeof t&&n===O||(t=zn(t,n,3)),r(e,t)}function Qr(e,t,n){var r=Rs(e)?st:Tt;return t=zn(t,n,3),r(e,t)}function $r(e,t){return os(e,Vt(t))}function Jr(e,t,n,r){var o=e?Ga(e):0;return nr(o)||(e=ai(e),o=e.length),n="number"!=typeof n||r&&Jn(t,n,r)?0:n<0?xa(o+n,0):n||0,"string"==typeof e||!Rs(e)&&Ho(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Hn(e,t,n)>-1}function eo(e,t,n){var r=Rs(e)?ut:Ft;return t=zn(t,n,3),r(e,t)}function to(e,t){return eo(e,Ii(t))}function no(e,t,n){var r=Rs(e)?st:Tt;return t=zn(t,n,3),r(e,function(e,n,r){return!t(e,n,r)})}function ro(e,t,n){if(n?Jn(e,t,n):null==t){e=lr(e);var r=e.length;return r>0?e[Zt(0,r-1)]:O}var o=-1,i=Yo(e),r=i.length,a=r-1;for(t=Ca(t<0?0:+t||0,r);++o<t;){var s=Zt(o,a),u=i[s];i[s]=i[o],i[o]=u}return i.length=t,i}function oo(e){return ro(e,Pa)}function io(e){var t=e?Ga(e):0;return nr(t)?t:Us(e).length}function ao(e,t,n){var r=Rs(e)?ft:Xt;return n&&Jn(e,t,n)&&(t=O),"function"==typeof t&&n===O||(t=zn(t,n,3)),r(e,t)}function so(e,t,n){if(null==e)return[];n&&Jn(e,t,n)&&(t=O);var r=-1;t=zn(t,n,3);var o=Ft(e,function(e,n,o){return{criteria:t(e,n,o),index:++r,value:e}});return Kt(o,p)}function uo(e,t,n,r){return null==e?[]:(r&&Jn(t,n,r)&&(n=O),Rs(t)||(t=null==t?[]:[t]),Rs(n)||(n=null==n?[]:[n]),Qt(e,t,n))}function co(e,t){return Qr(e,Vt(t))}function lo(e,t){if("function"!=typeof t){if("function"!=typeof e)throw new Ki(B);var n=e;e=t,t=n}return e=ba(e=+e)?e:0,function(){if(--e<1)return t.apply(this,arguments)}}function po(e,t,n){return n&&Jn(e,t,n)&&(t=O),t=e&&null==t?e.length:xa(+t||0,0),jn(e,L,O,O,O,O,t)}function fo(e,t){var n;if("function"!=typeof t){if("function"!=typeof e)throw new Ki(B);var r=e;e=t,t=r}return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=O),n}}function ho(e,t,n){function r(){d&&sa(d),c&&sa(c),g=0,c=d=h=O}function o(t,n){n&&sa(n),c=d=h=O,t&&(g=gs(),l=e.apply(f,u),d||c||(u=f=O))}function i(){var e=t-(gs()-p);e<=0||e>t?o(h,c):d=fa(i,e)}function a(){o(y,d)}function s(){if(u=arguments,p=gs(),f=this,h=y&&(d||!v),m===!1)var n=v&&!d;else{c||v||(g=p);var r=m-(p-g),o=r<=0||r>m;o?(c&&(c=sa(c)),g=p,l=e.apply(f,u)):c||(c=fa(a,r))}return o&&d?d=sa(d):d||t===m||(d=fa(i,t)),n&&(o=!0,l=e.apply(f,u)),!o||d||c||(u=f=O),l}var u,c,l,p,f,d,h,g=0,m=!1,y=!0;if("function"!=typeof e)throw new Ki(B);if(t=t<0?0:+t||0,n===!0){var v=!0;y=!1}else Lo(n)&&(v=!!n.leading,m="maxWait"in n&&xa(+n.maxWait||0,t),y="trailing"in n?!!n.trailing:y);return s.cancel=r,s}function go(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new Ki(B);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new go.Cache,n}function mo(e){if("function"!=typeof e)throw new Ki(B);return function(){return!e.apply(this,arguments)}}function yo(e){return fo(2,e)}function vo(e,t){if("function"!=typeof e)throw new Ki(B);return t=xa(t===O?e.length-1:+t||0,0),function(){for(var n=arguments,r=-1,o=xa(n.length-t,0),i=zi(o);++r<o;)i[r]=n[t+r];switch(t){case 0:return e.call(this,i);case 1:return e.call(this,n[0],i);case 2:return e.call(this,n[0],n[1],i)}var a=zi(t+1);for(r=-1;++r<t;)a[r]=n[r];return a[t]=i,e.apply(this,a)}}function _o(e){if("function"!=typeof e)throw new Ki(B);return function(t){return e.apply(this,t)}}function bo(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Ki(B);return n===!1?r=!1:Lo(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ho(e,t,{leading:r,maxWait:+t,trailing:o
8
- })}function Eo(e,t){return t=null==t?Pi:t,jn(t,D,O,[e],[])}function xo(e,t,n,r){return t&&"boolean"!=typeof t&&Jn(e,t,n)?t=!1:"function"==typeof t&&(r=n,n=t,t=!1),"function"==typeof n?Et(e,t,an(n,r,1)):Et(e,t)}function Co(e,t,n){return"function"==typeof t?Et(e,!0,an(t,n,1)):Et(e,!0)}function wo(e,t){return e>t}function So(e,t){return e>=t}function Oo(e){return v(e)&&Qn(e)&&ta.call(e,"callee")&&!la.call(e,"callee")}function To(e){return e===!0||e===!1||v(e)&&ra.call(e)==Y}function Po(e){return v(e)&&ra.call(e)==X}function Ro(e){return!!e&&1===e.nodeType&&v(e)&&!zo(e)}function No(e){return null==e||(Qn(e)&&(Rs(e)||Ho(e)||Oo(e)||v(e)&&Io(e.splice))?!e.length:!Us(e).length)}function Ao(e,t,n,r){n="function"==typeof n?an(n,r,3):O;var o=n?n(e,t):O;return o===O?Lt(e,t,n):!!o}function Mo(e){return v(e)&&"string"==typeof e.message&&ra.call(e)==K}function Do(e){return"number"==typeof e&&ba(e)}function Io(e){return Lo(e)&&ra.call(e)==Q}function Lo(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ko(e,t,n,r){return n="function"==typeof n?an(n,r,3):O,jt(e,Bn(t),n)}function jo(e){return Uo(e)&&e!=+e}function Fo(e){return null!=e&&(Io(e)?ia.test(ea.call(e)):v(e)&&Le.test(e))}function Vo(e){return null===e}function Uo(e){return"number"==typeof e||v(e)&&ra.call(e)==J}function zo(e){var t;if(!v(e)||ra.call(e)!=ee||Oo(e)||!ta.call(e,"constructor")&&(t=e.constructor,"function"==typeof t&&!(t instanceof t)))return!1;var n;return Nt(e,function(e,t){n=t}),n===O||ta.call(e,n)}function Go(e){return Lo(e)&&ra.call(e)==te}function Ho(e){return"string"==typeof e||v(e)&&ra.call(e)==re}function Bo(e){return v(e)&&nr(e.length)&&!!He[ra.call(e)]}function qo(e){return e===O}function Zo(e,t){return e<t}function Wo(e,t){return e<=t}function Yo(e){var t=e?Ga(e):0;return nr(t)?t?et(e):[]:ai(e)}function Xo(e){return _t(e,ti(e))}function Ko(e,t,n){var r=La(e);return n&&Jn(e,t,n)&&(t=O),t?yt(r,t):r}function Qo(e){return Dt(e,ti(e))}function $o(e,t,n){var r=null==e?O:It(e,fr(t),t+"");return r===O?n:r}function Jo(e,t){if(null==e)return!1;var n=ta.call(e,t);if(!n&&!er(t)){if(t=fr(t),e=1==t.length?e:It(e,Yt(t,0,-1)),null==e)return!1;t=Or(t),n=ta.call(e,t)}return n||nr(e.length)&&$n(t,e.length)&&(Rs(e)||Oo(e))}function ei(e,t,n){n&&Jn(e,t,n)&&(t=O);for(var r=-1,o=Us(e),i=o.length,a={};++r<i;){var s=o[r],u=e[s];t?ta.call(a,u)?a[u].push(s):a[u]=[s]:a[u]=s}return a}function ti(e){if(null==e)return[];Lo(e)||(e=Wi(e));var t=e.length;t=t&&nr(t)&&(Rs(e)||Oo(e))&&t||0;for(var n=e.constructor,r=-1,o="function"==typeof n&&n.prototype===e,i=zi(t),a=t>0;++r<t;)i[r]=r+"";for(var s in e)a&&$n(s,t)||"constructor"==s&&(o||!ta.call(e,s))||i.push(s);return i}function ni(e){e=pr(e);for(var t=-1,n=Us(e),r=n.length,o=zi(r);++t<r;){var i=n[t];o[t]=[i,e[i]]}return o}function ri(e,t,n){var r=null==e?O:e[t];return r===O&&(null==e||er(t,e)||(t=fr(t),e=1==t.length?e:It(e,Yt(t,0,-1)),r=null==e?O:e[Or(t)]),r=r===O?n:r),Io(r)?r.call(e):r}function oi(e,t,n){if(null==e)return e;var r=t+"";t=null!=e[r]||er(t,e)?[r]:fr(t);for(var o=-1,i=t.length,a=i-1,s=e;null!=s&&++o<i;){var u=t[o];Lo(s)&&(o==a?s[u]=n:null==s[u]&&(s[u]=$n(t[o+1])?[]:{})),s=s[u]}return e}function ii(e,t,n,r){var o=Rs(e)||Bo(e);if(t=zn(t,r,4),null==n)if(o||Lo(e)){var i=e.constructor;n=o?Rs(e)?new i:[]:La(Io(i)?i.prototype:O)}else n={};return(o?tt:At)(e,function(e,r,o){return t(n,e,r,o)}),n}function ai(e){return en(e,Us(e))}function si(e){return en(e,ti(e))}function ui(e,t,n){return t=+t||0,n===O?(n=t,t=0):n=+n||0,e>=Ca(t,n)&&e<xa(t,n)}function ci(e,t,n){n&&Jn(e,t,n)&&(t=n=O);var r=null==e,o=null==t;if(null==n&&(o&&"boolean"==typeof e?(n=e,e=1):"boolean"==typeof t&&(n=t,o=!0)),r&&o&&(t=1,o=!1),e=+e||0,o?(t=e,e=0):t=+t||0,n||e%1||t%1){var i=Oa();return Ca(e+i*(t-e+ua("1e-"+((i+"").length-1))),t)}return Zt(e,t)}function li(e){return e=u(e),e&&e.charAt(0).toUpperCase()+e.slice(1)}function pi(e){return e=u(e),e&&e.replace(je,d).replace(Ne,"")}function fi(e,t,n){e=u(e),t+="";var r=e.length;return n=n===O?r:Ca(n<0?0:+n||0,r),n-=t.length,n>=0&&e.indexOf(t,n)==n}function di(e){return e=u(e),e&&Ee.test(e)?e.replace(_e,h):e}function hi(e){return e=u(e),e&&Re.test(e)?e.replace(Pe,g):e||"(?:)"}function gi(e,t,n){e=u(e),t=+t;var r=e.length;if(r>=t||!ba(t))return e;var o=(t-r)/2,i=va(o),a=ma(o);return n=Dn("",a,n),n.slice(0,i)+e+n}function mi(e,t,n){return(n?Jn(e,t,n):null==t)?t=0:t&&(t=+t),e=bi(e),Sa(e,t||(Ie.test(e)?16:10))}function yi(e,t){var n="";if(e=u(e),t=+t,t<1||!e||!ba(t))return n;do t%2&&(n+=e),t=va(t/2),e+=e;while(t);return n}function vi(e,t,n){return e=u(e),n=null==n?0:Ca(n<0?0:+n||0,e.length),e.lastIndexOf(t,n)==n}function _i(e,n,r){var o=t.templateSettings;r&&Jn(e,n,r)&&(n=r=O),e=u(e),n=mt(yt({},r||n),o,gt);var i,a,s=mt(yt({},n.imports),o.imports,gt),c=Us(s),l=en(s,c),p=0,f=n.interpolate||Fe,d="__p += '",h=Yi((n.escape||Fe).source+"|"+f.source+"|"+(f===we?Me:Fe).source+"|"+(n.evaluate||Fe).source+"|quot;,"g"),g="//# sourceURL="+("sourceURL"in n?n.sourceURL:"lodash.templateSources["+ ++Ge+"]")+"\n";e.replace(h,function(t,n,r,o,s,u){return r||(r=o),d+=e.slice(p,u).replace(Ve,m),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),s&&(a=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),p=u+t.length,t}),d+="';\n";var y=n.variable;y||(d="with (obj) {\n"+d+"\n}\n"),d=(a?d.replace(ge,""):d).replace(me,"$1").replace(ye,"$1;"),d="function("+(y||"obj")+") {\n"+(y?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var v=Qs(function(){return Bi(c,g+"return "+d).apply(O,l)});if(v.source=d,Mo(v))throw v;return v}function bi(e,t,n){var r=e;return(e=u(e))?(n?Jn(r,t,n):null==t)?e.slice(x(e),C(e)+1):(t+="",e.slice(c(e,t),l(e,t)+1)):e}function Ei(e,t,n){var r=e;return e=u(e),e?(n?Jn(r,t,n):null==t)?e.slice(x(e)):e.slice(c(e,t+"")):e}function xi(e,t,n){var r=e;return e=u(e),e?(n?Jn(r,t,n):null==t)?e.slice(0,C(e)+1):e.slice(0,l(e,t+"")+1):e}function Ci(e,t,n){n&&Jn(e,t,n)&&(t=O);var r=j,o=F;if(null!=t)if(Lo(t)){var i="separator"in t?t.separator:i;r="length"in t?+t.length||0:r,o="omission"in t?u(t.omission):o}else r=+t||0;if(e=u(e),r>=e.length)return e;var a=r-o.length;if(a<1)return o;var s=e.slice(0,a);if(null==i)return s+o;if(Go(i)){if(e.slice(a).search(i)){var c,l,p=e.slice(0,a);for(i.global||(i=Yi(i.source,(De.exec(i)||"")+"g")),i.lastIndex=0;c=i.exec(p);)l=c.index;s=s.slice(0,null==l?a:l)}}else if(e.indexOf(i,a)!=a){var f=s.lastIndexOf(i);f>-1&&(s=s.slice(0,f))}return s+o}function wi(e){return e=u(e),e&&be.test(e)?e.replace(ve,w):e}function Si(e,t,n){return n&&Jn(e,t,n)&&(t=O),e=u(e),e.match(t||Ue)||[]}function Oi(e,t,n){return n&&Jn(e,t,n)&&(t=O),v(e)?Ri(e):bt(e,t)}function Ti(e){return function(){return e}}function Pi(e){return e}function Ri(e){return Vt(Et(e,!0))}function Ni(e,t){return Ut(e,Et(t,!0))}function Ai(e,t,n){if(null==n){var r=Lo(t),o=r?Us(t):O,i=o&&o.length?Dt(t,o):O;(i?i.length:r)||(i=!1,n=t,t=e,e=this)}i||(i=Dt(t,Us(t)));var a=!0,s=-1,u=Io(e),c=i.length;n===!1?a=!1:Lo(n)&&"chain"in n&&(a=n.chain);for(;++s<c;){var l=i[s],p=t[l];e[l]=p,u&&(e.prototype[l]=function(t){return function(){var n=this.__chain__;if(a||n){var r=e(this.__wrapped__),o=r.__actions__=et(this.__actions__);return o.push({func:t,args:arguments,thisArg:e}),r.__chain__=n,r}return t.apply(e,ct([this.value()],arguments))}}(p))}return e}function Mi(){return rt._=oa,this}function Di(){}function Ii(e){return er(e)?Ht(e):Bt(e)}function Li(e){return function(t){return It(e,fr(t),t+"")}}function ki(e,t,n){n&&Jn(e,t,n)&&(t=n=O),e=+e||0,n=null==n?1:+n||0,null==t?(t=e,e=0):t=+t||0;for(var r=-1,o=xa(ma((t-e)/(n||1)),0),i=zi(o);++r<o;)i[r]=e,e+=n;return i}function ji(e,t,n){if(e=va(e),e<1||!ba(e))return[];var r=-1,o=zi(Ca(e,Ra));for(t=an(t,n,1);++r<e;)r<Ra?o[r]=t(r):t(r);return o}function Fi(e){var t=++na;return u(e)+t}function Vi(e,t){return(+e||0)+(+t||0)}function Ui(e,t,n){return n&&Jn(e,t,n)&&(t=O),t=zn(t,n,3),1==t.length?dt(Rs(e)?e:lr(e),t):$t(e,t)}e=e?ot.defaults(rt.Object(),e,ot.pick(rt,ze)):rt;var zi=e.Array,Gi=e.Date,Hi=e.Error,Bi=e.Function,qi=e.Math,Zi=e.Number,Wi=e.Object,Yi=e.RegExp,Xi=e.String,Ki=e.TypeError,Qi=zi.prototype,$i=Wi.prototype,Ji=Xi.prototype,ea=Bi.prototype.toString,ta=$i.hasOwnProperty,na=0,ra=$i.toString,oa=rt._,ia=Yi("^"+ea.call(ta).replace(/[\\^$.*+?()[\]{}|]/g,"\\amp;").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"quot;),aa=e.ArrayBuffer,sa=e.clearTimeout,ua=e.parseFloat,ca=qi.pow,la=$i.propertyIsEnumerable,pa=qn(e,"Set"),fa=e.setTimeout,da=Qi.splice,ha=e.Uint8Array,ga=qn(e,"WeakMap"),ma=qi.ceil,ya=qn(Wi,"create"),va=qi.floor,_a=qn(zi,"isArray"),ba=e.isFinite,Ea=qn(Wi,"keys"),xa=qi.max,Ca=qi.min,wa=qn(Gi,"now"),Sa=e.parseInt,Oa=qi.random,Ta=Zi.NEGATIVE_INFINITY,Pa=Zi.POSITIVE_INFINITY,Ra=4294967295,Na=Ra-1,Aa=Ra>>>1,Ma=9007199254740991,Da=ga&&new ga,Ia={};t.support={};t.templateSettings={escape:xe,evaluate:Ce,interpolate:we,variable:"",imports:{_:t}};var La=function(){function e(){}return function(t){if(Lo(t)){e.prototype=t;var n=new e;e.prototype=O}return n||{}}}(),ka=fn(At),ja=fn(Mt,!0),Fa=dn(),Va=dn(!0),Ua=Da?function(e,t){return Da.set(e,t),e}:Pi,za=Da?function(e){return Da.get(e)}:Di,Ga=Ht("length"),Ha=function(){var e=0,t=0;return function(n,r){var o=gs(),i=U-(o-t);if(t=o,i>0){if(++e>=V)return n}else e=0;return Ua(n,r)}}(),Ba=vo(function(e,t){return v(e)&&Qn(e)?Ct(e,Rt(t,!1,!0)):[]}),qa=xn(),Za=xn(!0),Wa=vo(function(e){for(var t=e.length,n=t,r=zi(p),o=Hn(),i=o==a,s=[];n--;){var u=e[n]=Qn(u=e[n])?u:[];r[n]=i&&u.length>=120?gn(n&&u):null}var c=e[0],l=-1,p=c?c.length:0,f=r[0];e:for(;++l<p;)if(u=c[l],(f?Qe(f,u):o(s,u,0))<0){for(var n=t;--n;){var d=r[n];if((d?Qe(d,u):o(e[n],u,0))<0)continue e}f&&f.push(u),s.push(u)}return s}),Ya=vo(function(e,t){t=Rt(t);var n=vt(e,t);return qt(e,t.sort(o)),n}),Xa=kn(),Ka=kn(!0),Qa=vo(function(e){return Jt(Rt(e,!1,!0))}),$a=vo(function(e,t){return Qn(e)?Ct(e,t):[]}),Ja=vo(jr),es=vo(function(e){var t=e.length,n=t>2?e[t-2]:O,r=t>1?e[t-1]:O;return t>2&&"function"==typeof n?t-=2:(n=t>1&&"function"==typeof r?(--t,r):O,r=O),e.length=t,Fr(e,n,r)}),ts=vo(function(e){return e=Rt(e),this.thru(function(t){return Je(Rs(t)?t:[pr(t)],e)})}),ns=vo(function(e,t){return vt(e,Rt(t))}),rs=ln(function(e,t,n){ta.call(e,n)?++e[n]:e[n]=1}),os=En(ka),is=En(ja,!0),as=Sn(tt,ka),ss=Sn(nt,ja),us=ln(function(e,t,n){ta.call(e,n)?e[n].push(t):e[n]=[t]}),cs=ln(function(e,t,n){e[n]=t}),ls=vo(function(e,t,n){var r=-1,o="function"==typeof t,i=er(t),a=Qn(e)?zi(e.length):[];return ka(e,function(e){var s=o?t:i&&null!=e?e[t]:O;a[++r]=s?s.apply(e,n):Kn(e,t,n)}),a}),ps=ln(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),fs=An(lt,ka),ds=An(pt,ja),hs=vo(function(e,t){if(null==e)return[];var n=t[2];return n&&Jn(t[0],t[1],n)&&(t.length=1),Qt(e,Rt(t),[])}),gs=wa||function(){return(new Gi).getTime()},ms=vo(function(e,t,n){var r=P;if(n.length){var o=b(n,ms.placeholder);r|=D}return jn(e,r,t,n,o)}),ys=vo(function(e,t){t=t.length?Rt(t):Qo(e);for(var n=-1,r=t.length;++n<r;){var o=t[n];e[o]=jn(e[o],P,e)}return e}),vs=vo(function(e,t,n){var r=P|R;if(n.length){var o=b(n,vs.placeholder);r|=D}return jn(t,r,e,n,o)}),_s=vn(A),bs=vn(M),Es=vo(function(e,t){return xt(e,1,t)}),xs=vo(function(e,t,n){return xt(e,t,n)}),Cs=wn(),ws=wn(!0),Ss=vo(function(e,t){if(t=Rt(t),"function"!=typeof e||!it(t,s))throw new Ki(B);var n=t.length;return vo(function(r){for(var o=Ca(r.length,n);o--;)r[o]=t[o](r[o]);return e.apply(this,r)})}),Os=Nn(D),Ts=Nn(I),Ps=vo(function(e,t){return jn(e,k,O,O,O,Rt(t))}),Rs=_a||function(e){return v(e)&&nr(e.length)&&ra.call(e)==W},Ns=pn(zt),As=pn(function(e,t,n){return n?mt(e,t,n):yt(e,t)}),Ms=_n(As,ht),Ds=_n(Ns,ir),Is=Cn(At),Ls=Cn(Mt),ks=On(Fa),js=On(Va),Fs=Tn(At),Vs=Tn(Mt),Us=Ea?function(e){var t=null==e?O:e.constructor;return"function"==typeof t&&t.prototype===e||"function"!=typeof e&&Qn(e)?cr(e):Lo(e)?Ea(e):[]}:cr,zs=Pn(!0),Gs=Pn(),Hs=vo(function(e,t){if(null==e)return{};if("function"!=typeof t[0]){var t=ut(Rt(t),Xi);return ar(e,Ct(ti(e),t))}var n=an(t[0],t[1],3);return sr(e,function(e,t,r){return!n(e,t,r)})}),Bs=vo(function(e,t){return null==e?{}:"function"==typeof t[0]?sr(e,an(t[0],t[1],3)):ar(e,Rt(t))}),qs=mn(function(e,t,n){return t=t.toLowerCase(),e+(n?t.charAt(0).toUpperCase()+t.slice(1):t)}),Zs=mn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Ws=Rn(),Ys=Rn(!0),Xs=mn(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Ks=mn(function(e,t,n){return e+(n?" ":"")+(t.charAt(0).toUpperCase()+t.slice(1))}),Qs=vo(function(e,t){try{return e.apply(O,t)}catch(e){return Mo(e)?e:new Hi(e)}}),$s=vo(function(e,t){return function(n){return Kn(n,e,t)}}),Js=vo(function(e,t){return function(n){return Kn(e,n,t)}}),eu=Ln("ceil"),tu=Ln("floor"),nu=bn(wo,Ta),ru=bn(Zo,Pa),ou=Ln("round");return t.prototype=n.prototype,r.prototype=La(n.prototype),r.prototype.constructor=r,_.prototype=La(n.prototype),_.prototype.constructor=_,qe.prototype.delete=Ze,qe.prototype.get=We,qe.prototype.has=Ye,qe.prototype.set=Xe,Ke.prototype.push=$e,go.Cache=qe,t.after=lo,t.ary=po,t.assign=As,t.at=ns,t.before=fo,t.bind=ms,t.bindAll=ys,t.bindKey=vs,t.callback=Oi,t.chain=zr,t.chunk=hr,t.compact=gr,t.constant=Ti,t.countBy=rs,t.create=Ko,t.curry=_s,t.curryRight=bs,t.debounce=ho,t.defaults=Ms,t.defaultsDeep=Ds,t.defer=Es,t.delay=xs,t.difference=Ba,t.drop=mr,t.dropRight=yr,t.dropRightWhile=vr,t.dropWhile=_r,t.fill=br,t.filter=Qr,t.flatten=xr,t.flattenDeep=Cr,t.flow=Cs,t.flowRight=ws,t.forEach=as,t.forEachRight=ss,t.forIn=ks,t.forInRight=js,t.forOwn=Fs,t.forOwnRight=Vs,t.functions=Qo,t.groupBy=us,t.indexBy=cs,t.initial=Sr,t.intersection=Wa,t.invert=ei,t.invoke=ls,t.keys=Us,t.keysIn=ti,t.map=eo,t.mapKeys=zs,t.mapValues=Gs,t.matches=Ri,t.matchesProperty=Ni,t.memoize=go,t.merge=Ns,t.method=$s,t.methodOf=Js,t.mixin=Ai,t.modArgs=Ss,t.negate=mo,t.omit=Hs,t.once=yo,t.pairs=ni,t.partial=Os,t.partialRight=Ts,t.partition=ps,t.pick=Bs,t.pluck=to,t.property=Ii,t.propertyOf=Li,t.pull=Pr,t.pullAt=Ya,t.range=ki,t.rearg=Ps,t.reject=no,t.remove=Rr,t.rest=Nr,t.restParam=vo,t.set=oi,t.shuffle=oo,t.slice=Ar,t.sortBy=so,t.sortByAll=hs,t.sortByOrder=uo,t.spread=_o,t.take=Mr,t.takeRight=Dr,t.takeRightWhile=Ir,t.takeWhile=Lr,t.tap=Gr,t.throttle=bo,t.thru=Hr,t.times=ji,t.toArray=Yo,t.toPlainObject=Xo,t.transform=ii,t.union=Qa,t.uniq=kr,t.unzip=jr,t.unzipWith=Fr,t.values=ai,t.valuesIn=si,t.where=co,t.without=$a,t.wrap=Eo,t.xor=Vr,t.zip=Ja,t.zipObject=Ur,t.zipWith=es,t.backflow=ws,t.collect=eo,t.compose=ws,t.each=as,t.eachRight=ss,t.extend=As,t.iteratee=Oi,t.methods=Qo,t.object=Ur,t.select=Qr,t.tail=Nr,t.unique=kr,Ai(t,t),t.add=Vi,t.attempt=Qs,t.camelCase=qs,t.capitalize=li,t.ceil=eu,t.clone=xo,t.cloneDeep=Co,t.deburr=pi,t.endsWith=fi,t.escape=di,t.escapeRegExp=hi,t.every=Kr,t.find=os,t.findIndex=qa,t.findKey=Is,t.findLast=is,t.findLastIndex=Za,t.findLastKey=Ls,t.findWhere=$r,t.first=Er,t.floor=tu,t.get=$o,t.gt=wo,t.gte=So,t.has=Jo,t.identity=Pi,t.includes=Jr,t.indexOf=wr,t.inRange=ui,t.isArguments=Oo,t.isArray=Rs,t.isBoolean=To,t.isDate=Po,t.isElement=Ro,t.isEmpty=No,t.isEqual=Ao,t.isError=Mo,t.isFinite=Do,t.isFunction=Io,t.isMatch=ko,t.isNaN=jo,t.isNative=Fo,t.isNull=Vo,t.isNumber=Uo,t.isObject=Lo,t.isPlainObject=zo,t.isRegExp=Go,t.isString=Ho,t.isTypedArray=Bo,t.isUndefined=qo,t.kebabCase=Zs,t.last=Or,t.lastIndexOf=Tr,t.lt=Zo,t.lte=Wo,t.max=nu,t.min=ru,t.noConflict=Mi,t.noop=Di,t.now=gs,t.pad=gi,t.padLeft=Ws,t.padRight=Ys,t.parseInt=mi,t.random=ci,t.reduce=fs,t.reduceRight=ds,t.repeat=yi,t.result=ri,t.round=ou,t.runInContext=S,t.size=io,t.snakeCase=Xs,t.some=ao,t.sortedIndex=Xa,t.sortedLastIndex=Ka,t.startCase=Ks,t.startsWith=vi,t.sum=Ui,t.template=_i,t.trim=bi,t.trimLeft=Ei,t.trimRight=xi,t.trunc=Ci,t.unescape=wi,t.uniqueId=Fi,t.words=Si,t.all=Kr,t.any=ao,t.contains=Jr,t.eq=Ao,t.detect=os,t.foldl=fs,t.foldr=ds,t.head=Er,t.include=Jr,t.inject=fs,Ai(t,function(){var e={};return At(t,function(n,r){t.prototype[r]||(e[r]=n)}),e}(),!1),t.sample=ro,t.prototype.sample=function(e){return this.__chain__||null!=e?this.thru(function(t){return ro(t,e)}):ro(this.value())},t.VERSION=T,tt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){t[e].placeholder=t}),tt(["drop","take"],function(e,t){_.prototype[e]=function(n){var r=this.__filtered__;if(r&&!t)return new _(this);n=null==n?1:xa(va(n)||0,0);var o=this.clone();return r?o.__takeCount__=Ca(o.__takeCount__,n):o.__views__.push({size:n,type:e+(o.__dir__<0?"Right":"")}),o},_.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),tt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n!=H;_.prototype[e]=function(e,t){var o=this.clone();return o.__iteratees__.push({iteratee:zn(e,t,1),type:n}),o.__filtered__=o.__filtered__||r,o}}),tt(["first","last"],function(e,t){var n="take"+(t?"Right":"");_.prototype[e]=function(){return this[n](1).value()[0]}}),tt(["initial","rest"],function(e,t){var n="drop"+(t?"":"Right");_.prototype[e]=function(){return this.__filtered__?new _(this):this[n](1)}}),tt(["pluck","where"],function(e,t){var n=t?"filter":"map",r=t?Vt:Ii;_.prototype[e]=function(e){return this[n](r(e))}}),_.prototype.compact=function(){return this.filter(Pi)},_.prototype.reject=function(e,t){return e=zn(e,t,1),this.filter(function(t){return!e(t)})},_.prototype.slice=function(e,t){e=null==e?0:+e||0;var n=this;return n.__filtered__&&(e>0||t<0)?new _(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==O&&(t=+t||0,n=t<0?n.dropRight(-t):n.take(t-e)),n)},_.prototype.takeRightWhile=function(e,t){return this.reverse().takeWhile(e,t).reverse()},_.prototype.toArray=function(){return this.take(Pa)},At(_.prototype,function(e,n){var o=/^(?:filter|map|reject)|While#x2F;.test(n),i=/^(?:first|last)#x2F;.test(n),a=t[i?"take"+("last"==n?"Right":""):n];a&&(t.prototype[n]=function(){var t=i?[1]:arguments,n=this.__chain__,s=this.__wrapped__,u=!!this.__actions__.length,c=s instanceof _,l=t[0],p=c||Rs(s);p&&o&&"function"==typeof l&&1!=l.length&&(c=p=!1);var f=function(e){return i&&n?a(e,1)[0]:a.apply(O,ct([e],t))},d={func:Hr,args:[f],thisArg:O},h=c&&!u;if(i&&!n)return h?(s=s.clone(),s.__actions__.push(d),e.call(s)):a.call(O,this.value())[0];if(!i&&p){s=h?s:new _(this);var g=e.apply(s,t);return g.__actions__.push(d),new r(g,n)}return this.thru(f)})}),tt(["join","pop","push","replace","shift","sort","splice","split","unshift"],function(e){var n=(/^(?:replace|split)#x2F;.test(e)?Ji:Qi)[e],r=/^(?:push|sort|unshift)#x2F;.test(e)?"tap":"thru",o=/^(?:join|pop|replace|shift)#x2F;.test(e);t.prototype[e]=function(){var e=arguments;return o&&!this.__chain__?n.apply(this.value(),e):this[r](function(t){return n.apply(t,e)})}}),At(_.prototype,function(e,n){var r=t[n];if(r){var o=r.name,i=Ia[o]||(Ia[o]=[]);i.push({name:n,func:r})}}),Ia[Mn(O,R).name]=[{name:"wrapper",func:O}],_.prototype.clone=$,_.prototype.reverse=ne,_.prototype.value=oe,t.prototype.chain=Br,t.prototype.commit=qr,t.prototype.concat=ts,t.prototype.plant=Zr,t.prototype.reverse=Wr,t.prototype.toString=Yr,t.prototype.run=t.prototype.toJSON=t.prototype.valueOf=t.prototype.value=Xr,t.prototype.collect=t.prototype.map,t.prototype.head=t.prototype.first,t.prototype.select=t.prototype.filter,t.prototype.tail=t.prototype.rest,t}var O,T="3.10.1",P=1,R=2,N=4,A=8,M=16,D=32,I=64,L=128,k=256,j=30,F="...",V=150,U=16,z=200,G=1,H=2,B="Expected a function",q="__lodash_placeholder__",Z="[object Arguments]",W="[object Array]",Y="[object Boolean]",X="[object Date]",K="[object Error]",Q="[object Function]",$="[object Map]",J="[object Number]",ee="[object Object]",te="[object RegExp]",ne="[object Set]",re="[object String]",oe="[object WeakMap]",ie="[object ArrayBuffer]",ae="[object Float32Array]",se="[object Float64Array]",ue="[object Int8Array]",ce="[object Int16Array]",le="[object Int32Array]",pe="[object Uint8Array]",fe="[object Uint8ClampedArray]",de="[object Uint16Array]",he="[object Uint32Array]",ge=/\b__p \+= '';/g,me=/\b(__p \+=) '' \+/g,ye=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ve=/&(?:amp|lt|gt|quot|#39|#96);/g,_e=/[&<>"'`]/g,be=RegExp(ve.source),Ee=RegExp(_e.source),xe=/<%-([\s\S]+?)%>/g,Ce=/<%([\s\S]+?)%>/g,we=/<%=([\s\S]+?)%>/g,Se=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,Oe=/^\w*#x2F;,Te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,Pe=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,Re=RegExp(Pe.source),Ne=/[\u0300-\u036f\ufe20-\ufe23]/g,Ae=/\\(\\)?/g,Me=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,De=/\w*#x2F;,Ie=/^0[xX]/,Le=/^\[object .+?Constructor\]#x2F;,ke=/^\d+#x2F;,je=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,Fe=/($^)/,Ve=/['\n\r\u2028\u2029\\]/g,Ue=function(){var e="[A-Z\\xc0-\\xd6\\xd8-\\xde]",t="[a-z\\xdf-\\xf6\\xf8-\\xff]+";return RegExp(e+"+(?="+e+t+")|"+e+"?"+t+"|"+e+"+|[0-9]+","g")}(),ze=["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"],Ge=-1,He={};He[ae]=He[se]=He[ue]=He[ce]=He[le]=He[pe]=He[fe]=He[de]=He[he]=!0,He[Z]=He[W]=He[ie]=He[Y]=He[X]=He[K]=He[Q]=He[$]=He[J]=He[ee]=He[te]=He[ne]=He[re]=He[oe]=!1;var Be={};Be[Z]=Be[W]=Be[ie]=Be[Y]=Be[X]=Be[ae]=Be[se]=Be[ue]=Be[ce]=Be[le]=Be[J]=Be[ee]=Be[te]=Be[re]=Be[pe]=Be[fe]=Be[de]=Be[he]=!0,Be[K]=Be[Q]=Be[$]=Be[ne]=Be[oe]=!1;var qe={"À":"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"},Ze={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},We={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},Ye={function:!0,object:!0},Xe={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"},Ke={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Qe=Ye[typeof r]&&r&&!r.nodeType&&r,$e=Ye[typeof n]&&n&&!n.nodeType&&n,Je=Qe&&$e&&"object"==typeof t&&t&&t.Object&&t,et=Ye[typeof self]&&self&&self.Object&&self,tt=Ye[typeof window]&&window&&window.Object&&window,nt=$e&&$e.exports===Qe&&Qe,rt=Je||tt!==(this&&this.window)&&tt||et||this,ot=S();"function"==typeof e&&"object"==typeof e.amd&&e.amd?(rt._=ot,e(function(){return ot})):Qe&&$e?nt?($e.exports=ot)._=ot:Qe._=ot:rt._=ot}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],187:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(r(this,e),!t||"string"!=typeof t)throw new Error("A string non-empty key is required");this._key=t,this._assignEntity=n.assignEntity;var o=n.idAttribute||"id";this._getId="function"==typeof o?o:function(e){return e[o]},this._idAttribute=o,this._meta=n.meta,this._defaults=n.defaults}return o(e,[{key:"getAssignEntity",value:function(){return this._assignEntity}},{key:"getKey",value:function(){return this._key}},{key:"getId",value:function(e){return this._getId(e)}},{key:"getIdAttribute",value:function(){return this._idAttribute}},{key:"getMeta",value:function(e){if(!e||"string"!=typeof e)throw new Error("A string non-empty property name is required");return this._meta&&this._meta[e]}},{key:"getDefaults",value:function(){return this._defaults}},{key:"define",value:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}}]),e}();n.default=i},{}],188:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=e("lodash/isObject"),s=r(a),u=e("./UnionSchema"),c=r(u),l=function(){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(o(this,e),!(0,s.default)(t))throw new Error("ArraySchema requires item schema to be an object.");if(n.schemaAttribute){var r=n.schemaAttribute;this._itemSchema=new c.default(t,{schemaAttribute:r})}else this._itemSchema=t}return i(e,[{key:"getItemSchema",value:function(){return this._itemSchema}}]),e}();n.default=l},{"./UnionSchema":189,"lodash/isObject":266}],189:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=e("lodash/isObject"),s=r(a),u=function(){function e(t,n){if(o(this,e),!(0,s.default)(t))throw new Error("UnionSchema requires item schema to be an object.");if(!n||!n.schemaAttribute)throw new Error("UnionSchema requires schemaAttribute option.");this._itemSchema=t;var r=n.schemaAttribute;this._getSchema="function"==typeof r?r:function(e){return e[r]}}return i(e,[{key:"getItemSchema",value:function(){return this._itemSchema}},{key:"getSchemaKey",value:function(e){return this._getSchema(e)}}]),e}();n.default=u},{"lodash/isObject":266}],190:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){e[t]=n}function i(e,t,n,r){var i=r.assignEntity,a=void 0===i?o:i,s=t&&t.getDefaults&&t.getDefaults(),u=t&&t.getAssignEntity&&t.getAssignEntity(),c=(0,T.default)(s)?y({},s):{};for(var l in e)if(e.hasOwnProperty(l)){var p=f(e[l],t[l],n,r);a.call(null,c,l,p,e,t),u&&u.call(null,c,l,p,e,t)}return c}function a(e,t,n,r){return function(e){return f(e,t,n,r)}}function s(e,t,n,r){return function(o){var i=e.getSchemaKey(o),a=f(o,t[i],n,r);return{id:a,schema:i}}}function u(e,t,n,r){var o=t.getItemSchema(),i=a(t,o,n,r);return Array.isArray(e)?e.map(i):Object.keys(e).reduce(function(t,n){return t[n]=i(e[n]),t},{})}function c(e,t,n,r){var o=t.getItemSchema();return s(t,o,n,r)(e)}function l(e,t,n){for(var r in t)t.hasOwnProperty(r)&&(e.hasOwnProperty(r)&&!(0,S.default)(e[r],t[r])?console.warn("When merging two "+n+', found unequal data in their "'+r+'" values. Using the earlier value.',e[r],t[r]):e[r]=t[r])}function p(e,t,n,r){var o=r.mergeIntoEntity,a=void 0===o?l:o,s=t.getKey(),u=t.getId(e);n.hasOwnProperty(s)||(n[s]={}),n[s].hasOwnProperty(u)||(n[s][u]={});var c=n[s][u],p=i(e,t,n,r);return a(c,p,s),u}function f(e,t,n,r){return(0,T.default)(e)&&(0,T.default)(t)?t instanceof _.default?p(e,t,n,r):t instanceof E.default?u(e,t,n,r):t instanceof C.default?c(e,t,n,r):i(e,t,n,r):e}function d(e,t){return new E.default(e,t)}function h(e,t){return new E.default(e,t)}function g(e,t){return new C.default(e,t)}function m(e,t){var n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];if(!(0,T.default)(e))throw new Error("Normalize accepts an object or an array as its input.");if(!(0,T.default)(t)||Array.isArray(t))throw new Error("Normalize accepts an object for schema.");var r={},o=f(e,t,r,n);return{entities:r,result:o}}Object.defineProperty(n,"__esModule",{value:!0}),n.Schema=void 0;var y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};n.arrayOf=d,n.valuesOf=h,n.unionOf=g,n.normalize=m;var v=e("./EntitySchema"),_=r(v),b=e("./IterableSchema"),E=r(b),x=e("./UnionSchema"),C=r(x),w=e("lodash/isEqual"),S=r(w),O=e("lodash/isObject"),T=r(O);n.Schema=_.default},{"./EntitySchema":187,"./IterableSchema":188,"./UnionSchema":189,"lodash/isEqual":263,"lodash/isObject":266}],191:[function(e,t,n){var r=e("./_getNative"),o=e("./_root"),i=r(o,"DataView");t.exports=i},{"./_getNative":220,"./_root":248}],192:[function(e,t,n){function r(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=e("./_hashClear"),i=e("./_hashDelete"),a=e("./_hashGet"),s=e("./_hashHas"),u=e("./_hashSet");r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,t.exports=r},{"./_hashClear":223,"./_hashDelete":224,"./_hashGet":225,"./_hashHas":226,"./_hashSet":227}],193:[function(e,t,n){function r(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=e("./_listCacheClear"),i=e("./_listCacheDelete"),a=e("./_listCacheGet"),s=e("./_listCacheHas"),u=e("./_listCacheSet");r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,t.exports=r},{"./_listCacheClear":233,"./_listCacheDelete":234,"./_listCacheGet":235,"./_listCacheHas":236,"./_listCacheSet":237}],194:[function(e,t,n){var r=e("./_getNative"),o=e("./_root"),i=r(o,"Map");t.exports=i},{"./_getNative":220,"./_root":248}],195:[function(e,t,n){function r(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=e("./_mapCacheClear"),i=e("./_mapCacheDelete"),a=e("./_mapCacheGet"),s=e("./_mapCacheHas"),u=e("./_mapCacheSet");r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,t.exports=r},{"./_mapCacheClear":238,"./_mapCacheDelete":239,"./_mapCacheGet":240,"./_mapCacheHas":241,"./_mapCacheSet":242}],196:[function(e,t,n){var r=e("./_getNative"),o=e("./_root"),i=r(o,"Promise");t.exports=i},{"./_getNative":220,"./_root":248}],197:[function(e,t,n){var r=e("./_getNative"),o=e("./_root"),i=r(o,"Set");t.exports=i},{"./_getNative":220,"./_root":248}],198:[function(e,t,n){function r(e){var t=-1,n=e?e.length:0;for(this.__data__=new o;++t<n;)this.add(e[t])}var o=e("./_MapCache"),i=e("./_setCacheAdd"),a=e("./_setCacheHas");r.prototype.add=r.prototype.push=i,r.prototype.has=a,t.exports=r},{"./_MapCache":195,"./_setCacheAdd":249,"./_setCacheHas":250}],199:[function(e,t,n){function r(e){this.__data__=new o(e)}var o=e("./_ListCache"),i=e("./_stackClear"),a=e("./_stackDelete"),s=e("./_stackGet"),u=e("./_stackHas"),c=e("./_stackSet");r.prototype.clear=i,r.prototype.delete=a,r.prototype.get=s,r.prototype.has=u,r.prototype.set=c,t.exports=r},{"./_ListCache":193,"./_stackClear":252,"./_stackDelete":253,"./_stackGet":254,"./_stackHas":255,"./_stackSet":256}],200:[function(e,t,n){var r=e("./_root"),o=r.Symbol;t.exports=o},{"./_root":248}],201:[function(e,t,n){var r=e("./_root"),o=r.Uint8Array;t.exports=o},{"./_root":248}],202:[function(e,t,n){var r=e("./_getNative"),o=e("./_root"),i=r(o,"WeakMap");t.exports=i},{"./_getNative":220,"./_root":248}],203:[function(e,t,n){arguments[4][24][0].apply(n,arguments)},{"./_baseTimes":212,"./_isIndex":229,"./isArguments":259,"./isArray":260,dup:24}],204:[function(e,t,n){function r(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}t.exports=r},{}],205:[function(e,t,n){function r(e,t){for(var n=e.length;n--;)if(o(e[n][0],t))return n;return-1}var o=e("./eq");t.exports=r},{"./eq":258}],206:[function(e,t,n){function r(e){return i.call(e);
9
- }var o=Object.prototype,i=o.toString;t.exports=r},{}],207:[function(e,t,n){function r(e,t,n,s,u){return e===t||(null==e||null==t||!i(e)&&!a(t)?e!==e&&t!==t:o(e,t,r,n,s,u))}var o=e("./_baseIsEqualDeep"),i=e("./isObject"),a=e("./isObjectLike");t.exports=r},{"./_baseIsEqualDeep":208,"./isObject":266,"./isObjectLike":267}],208:[function(e,t,n){function r(e,t,n,r,m,v){var _=c(e),b=c(t),E=h,x=h;_||(E=u(e),E=E==d?g:E),b||(x=u(t),x=x==d?g:x);var C=E==g&&!l(e),w=x==g&&!l(t),S=E==x;if(S&&!C)return v||(v=new o),_||p(e)?i(e,t,n,r,m,v):a(e,t,E,n,r,m,v);if(!(m&f)){var O=C&&y.call(e,"__wrapped__"),T=w&&y.call(t,"__wrapped__");if(O||T){var P=O?e.value():e,R=T?t.value():t;return v||(v=new o),n(P,R,r,m,v)}}return!!S&&(v||(v=new o),s(e,t,n,r,m,v))}var o=e("./_Stack"),i=e("./_equalArrays"),a=e("./_equalByTag"),s=e("./_equalObjects"),u=e("./_getTag"),c=e("./isArray"),l=e("./_isHostObject"),p=e("./isTypedArray"),f=2,d="[object Arguments]",h="[object Array]",g="[object Object]",m=Object.prototype,y=m.hasOwnProperty;t.exports=r},{"./_Stack":199,"./_equalArrays":215,"./_equalByTag":216,"./_equalObjects":217,"./_getTag":221,"./_isHostObject":228,"./isArray":260,"./isTypedArray":268}],209:[function(e,t,n){function r(e){if(!s(e)||a(e))return!1;var t=o(e)||i(e)?g:l;return t.test(u(e))}var o=e("./isFunction"),i=e("./_isHostObject"),a=e("./_isMasked"),s=e("./isObject"),u=e("./_toSource"),c=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]#x2F;,p=Function.prototype,f=Object.prototype,d=p.toString,h=f.hasOwnProperty,g=RegExp("^"+d.call(h).replace(c,"\\amp;").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"quot;);t.exports=r},{"./_isHostObject":228,"./_isMasked":231,"./_toSource":257,"./isFunction":264,"./isObject":266}],210:[function(e,t,n){function r(e){return i(e)&&o(e.length)&&!!N[M.call(e)]}var o=e("./isLength"),i=e("./isObjectLike"),a="[object Arguments]",s="[object Array]",u="[object Boolean]",c="[object Date]",l="[object Error]",p="[object Function]",f="[object Map]",d="[object Number]",h="[object Object]",g="[object RegExp]",m="[object Set]",y="[object String]",v="[object WeakMap]",_="[object ArrayBuffer]",b="[object DataView]",E="[object Float32Array]",x="[object Float64Array]",C="[object Int8Array]",w="[object Int16Array]",S="[object Int32Array]",O="[object Uint8Array]",T="[object Uint8ClampedArray]",P="[object Uint16Array]",R="[object Uint32Array]",N={};N[E]=N[x]=N[C]=N[w]=N[S]=N[O]=N[T]=N[P]=N[R]=!0,N[a]=N[s]=N[_]=N[u]=N[b]=N[c]=N[l]=N[p]=N[f]=N[d]=N[h]=N[g]=N[m]=N[y]=N[v]=!1;var A=Object.prototype,M=A.toString;t.exports=r},{"./isLength":265,"./isObjectLike":267}],211:[function(e,t,n){arguments[4][29][0].apply(n,arguments)},{"./_isPrototype":232,"./_nativeKeys":245,dup:29}],212:[function(e,t,n){arguments[4][30][0].apply(n,arguments)},{dup:30}],213:[function(e,t,n){function r(e){return function(t){return e(t)}}t.exports=r},{}],214:[function(e,t,n){var r=e("./_root"),o=r["__core-js_shared__"];t.exports=o},{"./_root":248}],215:[function(e,t,n){function r(e,t,n,r,u,c){var l=u&s,p=e.length,f=t.length;if(p!=f&&!(l&&f>p))return!1;var d=c.get(e);if(d&&c.get(t))return d==t;var h=-1,g=!0,m=u&a?new o:void 0;for(c.set(e,t),c.set(t,e);++h<p;){var y=e[h],v=t[h];if(r)var _=l?r(v,y,h,t,e,c):r(y,v,h,e,t,c);if(void 0!==_){if(_)continue;g=!1;break}if(m){if(!i(t,function(e,t){if(!m.has(t)&&(y===e||n(y,e,r,u,c)))return m.add(t)})){g=!1;break}}else if(y!==v&&!n(y,v,r,u,c)){g=!1;break}}return c.delete(e),c.delete(t),g}var o=e("./_SetCache"),i=e("./_arraySome"),a=1,s=2;t.exports=r},{"./_SetCache":198,"./_arraySome":204}],216:[function(e,t,n){function r(e,t,n,r,o,C,S){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!r(new i(e),new i(t)));case f:case d:case m:return a(+e,+t);case h:return e.name==t.name&&e.message==t.message;case y:case _:return e==t+"";case g:var O=u;case v:var T=C&p;if(O||(O=c),e.size!=t.size&&!T)return!1;var P=S.get(e);if(P)return P==t;C|=l,S.set(e,t);var R=s(O(e),O(t),r,o,C,S);return S.delete(e),R;case b:if(w)return w.call(e)==w.call(t)}return!1}var o=e("./_Symbol"),i=e("./_Uint8Array"),a=e("./eq"),s=e("./_equalArrays"),u=e("./_mapToArray"),c=e("./_setToArray"),l=1,p=2,f="[object Boolean]",d="[object Date]",h="[object Error]",g="[object Map]",m="[object Number]",y="[object RegExp]",v="[object Set]",_="[object String]",b="[object Symbol]",E="[object ArrayBuffer]",x="[object DataView]",C=o?o.prototype:void 0,w=C?C.valueOf:void 0;t.exports=r},{"./_Symbol":200,"./_Uint8Array":201,"./_equalArrays":215,"./_mapToArray":243,"./_setToArray":251,"./eq":258}],217:[function(e,t,n){function r(e,t,n,r,a,u){var c=a&i,l=o(e),p=l.length,f=o(t),d=f.length;if(p!=d&&!c)return!1;for(var h=p;h--;){var g=l[h];if(!(c?g in t:s.call(t,g)))return!1}var m=u.get(e);if(m&&u.get(t))return m==t;var y=!0;u.set(e,t),u.set(t,e);for(var v=c;++h<p;){g=l[h];var _=e[g],b=t[g];if(r)var E=c?r(b,_,g,t,e,u):r(_,b,g,e,t,u);if(!(void 0===E?_===b||n(_,b,r,a,u):E)){y=!1;break}v||(v="constructor"==g)}if(y&&!v){var x=e.constructor,C=t.constructor;x!=C&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof C&&C instanceof C)&&(y=!1)}return u.delete(e),u.delete(t),y}var o=e("./keys"),i=2,a=Object.prototype,s=a.hasOwnProperty;t.exports=r},{"./keys":269}],218:[function(e,t,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],219:[function(e,t,n){function r(e,t){var n=e.__data__;return o(t)?n["string"==typeof t?"string":"hash"]:n.map}var o=e("./_isKeyable");t.exports=r},{"./_isKeyable":230}],220:[function(e,t,n){function r(e,t){var n=i(e,t);return o(n)?n:void 0}var o=e("./_baseIsNative"),i=e("./_getValue");t.exports=r},{"./_baseIsNative":209,"./_getValue":222}],221:[function(e,t,n){var r=e("./_DataView"),o=e("./_Map"),i=e("./_Promise"),a=e("./_Set"),s=e("./_WeakMap"),u=e("./_baseGetTag"),c=e("./_toSource"),l="[object Map]",p="[object Object]",f="[object Promise]",d="[object Set]",h="[object WeakMap]",g="[object DataView]",m=Object.prototype,y=m.toString,v=c(r),_=c(o),b=c(i),E=c(a),x=c(s),C=u;(r&&C(new r(new ArrayBuffer(1)))!=g||o&&C(new o)!=l||i&&C(i.resolve())!=f||a&&C(new a)!=d||s&&C(new s)!=h)&&(C=function(e){var t=y.call(e),n=t==p?e.constructor:void 0,r=n?c(n):void 0;if(r)switch(r){case v:return g;case _:return l;case b:return f;case E:return d;case x:return h}return t}),t.exports=C},{"./_DataView":191,"./_Map":194,"./_Promise":196,"./_Set":197,"./_WeakMap":202,"./_baseGetTag":206,"./_toSource":257}],222:[function(e,t,n){function r(e,t){return null==e?void 0:e[t]}t.exports=r},{}],223:[function(e,t,n){function r(){this.__data__=o?o(null):{}}var o=e("./_nativeCreate");t.exports=r},{"./_nativeCreate":244}],224:[function(e,t,n){function r(e){return this.has(e)&&delete this.__data__[e]}t.exports=r},{}],225:[function(e,t,n){function r(e){var t=this.__data__;if(o){var n=t[e];return n===i?void 0:n}return s.call(t,e)?t[e]:void 0}var o=e("./_nativeCreate"),i="__lodash_hash_undefined__",a=Object.prototype,s=a.hasOwnProperty;t.exports=r},{"./_nativeCreate":244}],226:[function(e,t,n){function r(e){var t=this.__data__;return o?void 0!==t[e]:a.call(t,e)}var o=e("./_nativeCreate"),i=Object.prototype,a=i.hasOwnProperty;t.exports=r},{"./_nativeCreate":244}],227:[function(e,t,n){function r(e,t){var n=this.__data__;return n[e]=o&&void 0===t?i:t,this}var o=e("./_nativeCreate"),i="__lodash_hash_undefined__";t.exports=r},{"./_nativeCreate":244}],228:[function(e,t,n){function r(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}t.exports=r},{}],229:[function(e,t,n){arguments[4][32][0].apply(n,arguments)},{dup:32}],230:[function(e,t,n){function r(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}t.exports=r},{}],231:[function(e,t,n){function r(e){return!!i&&i in e}var o=e("./_coreJsData"),i=function(){var e=/[^.]+#x2F;.exec(o&&o.keys&&o.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();t.exports=r},{"./_coreJsData":214}],232:[function(e,t,n){arguments[4][33][0].apply(n,arguments)},{dup:33}],233:[function(e,t,n){function r(){this.__data__=[]}t.exports=r},{}],234:[function(e,t,n){function r(e){var t=this.__data__,n=o(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():a.call(t,n,1),!0}var o=e("./_assocIndexOf"),i=Array.prototype,a=i.splice;t.exports=r},{"./_assocIndexOf":205}],235:[function(e,t,n){function r(e){var t=this.__data__,n=o(t,e);return n<0?void 0:t[n][1]}var o=e("./_assocIndexOf");t.exports=r},{"./_assocIndexOf":205}],236:[function(e,t,n){function r(e){return o(this.__data__,e)>-1}var o=e("./_assocIndexOf");t.exports=r},{"./_assocIndexOf":205}],237:[function(e,t,n){function r(e,t){var n=this.__data__,r=o(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}var o=e("./_assocIndexOf");t.exports=r},{"./_assocIndexOf":205}],238:[function(e,t,n){function r(){this.__data__={hash:new o,map:new(a||i),string:new o}}var o=e("./_Hash"),i=e("./_ListCache"),a=e("./_Map");t.exports=r},{"./_Hash":192,"./_ListCache":193,"./_Map":194}],239:[function(e,t,n){function r(e){return o(this,e).delete(e)}var o=e("./_getMapData");t.exports=r},{"./_getMapData":219}],240:[function(e,t,n){function r(e){return o(this,e).get(e)}var o=e("./_getMapData");t.exports=r},{"./_getMapData":219}],241:[function(e,t,n){function r(e){return o(this,e).has(e)}var o=e("./_getMapData");t.exports=r},{"./_getMapData":219}],242:[function(e,t,n){function r(e,t){return o(this,e).set(e,t),this}var o=e("./_getMapData");t.exports=r},{"./_getMapData":219}],243:[function(e,t,n){function r(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}t.exports=r},{}],244:[function(e,t,n){var r=e("./_getNative"),o=r(Object,"create");t.exports=o},{"./_getNative":220}],245:[function(e,t,n){arguments[4][34][0].apply(n,arguments)},{"./_overArg":247,dup:34}],246:[function(e,t,n){var r=e("./_freeGlobal"),o="object"==typeof n&&n&&!n.nodeType&&n,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o,s=a&&r.process,u=function(){try{return s&&s.binding("util")}catch(e){}}();t.exports=u},{"./_freeGlobal":218}],247:[function(e,t,n){arguments[4][35][0].apply(n,arguments)},{dup:35}],248:[function(e,t,n){var r=e("./_freeGlobal"),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},{"./_freeGlobal":218}],249:[function(e,t,n){function r(e){return this.__data__.set(e,o),this}var o="__lodash_hash_undefined__";t.exports=r},{}],250:[function(e,t,n){function r(e){return this.__data__.has(e)}t.exports=r},{}],251:[function(e,t,n){function r(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.exports=r},{}],252:[function(e,t,n){function r(){this.__data__=new o}var o=e("./_ListCache");t.exports=r},{"./_ListCache":193}],253:[function(e,t,n){function r(e){return this.__data__.delete(e)}t.exports=r},{}],254:[function(e,t,n){function r(e){return this.__data__.get(e)}t.exports=r},{}],255:[function(e,t,n){function r(e){return this.__data__.has(e)}t.exports=r},{}],256:[function(e,t,n){function r(e,t){var n=this.__data__;if(n instanceof o){var r=n.__data__;if(!i||r.length<s-1)return r.push([e,t]),this;n=this.__data__=new a(r)}return n.set(e,t),this}var o=e("./_ListCache"),i=e("./_Map"),a=e("./_MapCache"),s=200;t.exports=r},{"./_ListCache":193,"./_Map":194,"./_MapCache":195}],257:[function(e,t,n){function r(e){if(null!=e){try{return i.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var o=Function.prototype,i=o.toString;t.exports=r},{}],258:[function(e,t,n){function r(e,t){return e===t||e!==e&&t!==t}t.exports=r},{}],259:[function(e,t,n){arguments[4][37][0].apply(n,arguments)},{"./isArrayLikeObject":262,dup:37}],260:[function(e,t,n){arguments[4][38][0].apply(n,arguments)},{dup:38}],261:[function(e,t,n){arguments[4][39][0].apply(n,arguments)},{"./isFunction":264,"./isLength":265,dup:39}],262:[function(e,t,n){arguments[4][40][0].apply(n,arguments)},{"./isArrayLike":261,"./isObjectLike":267,dup:40}],263:[function(e,t,n){function r(e,t){return o(e,t)}var o=e("./_baseIsEqual");t.exports=r},{"./_baseIsEqual":207}],264:[function(e,t,n){arguments[4][41][0].apply(n,arguments)},{"./isObject":266,dup:41}],265:[function(e,t,n){arguments[4][42][0].apply(n,arguments)},{dup:42}],266:[function(e,t,n){arguments[4][43][0].apply(n,arguments)},{dup:43}],267:[function(e,t,n){arguments[4][44][0].apply(n,arguments)},{dup:44}],268:[function(e,t,n){var r=e("./_baseIsTypedArray"),o=e("./_baseUnary"),i=e("./_nodeUtil"),a=i&&i.isTypedArray,s=a?o(a):r;t.exports=s},{"./_baseIsTypedArray":210,"./_baseUnary":213,"./_nodeUtil":246}],269:[function(e,t,n){arguments[4][47][0].apply(n,arguments)},{"./_arrayLikeKeys":203,"./_baseKeys":211,"./isArrayLike":261,dup:47}],270:[function(e,t,n){t.exports=e("react/lib/ReactCSSTransitionGroup")},{"react/lib/ReactCSSTransitionGroup":374}],271:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e("react"),s=e("c3"),u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype._updateC3=function(e){e.config.bindto=this._container,this._chart&&this._chart.destroy(),this._chart=s.generate(e.config)},t.prototype.componentDidMount=function(){this._updateC3(this.props)},t.prototype.componentWillReceiveProps=function(e){this._updateC3(e)},t.prototype.componentWillUnmount=function(){this._chart.destroy()},t.prototype.render=function(){var e=this;return a.createElement("div",{ref:function(t){return e._container=t}})},t}(a.Component);u.propTypes={config:a.PropTypes.object.isRequired},t.exports=u},{c3:272,react:509}],272:[function(t,n,r){!function(o){"use strict";function i(e){this.owner=e}function a(e,t){if(Object.create)t.prototype=Object.create(e.prototype);else{var n=function(){};n.prototype=e.prototype,t.prototype=new n}return t.prototype.constructor=t,t}function s(e){var t=this.internal=new u(this);t.loadConfig(e),t.beforeInit(e),t.init(),t.afterInit(e),function e(t,n,r){Object.keys(t).forEach(function(o){n[o]=t[o].bind(r),Object.keys(t[o]).length>0&&e(t[o],n[o],r)})}(p,this,this)}function u(e){var n=this;n.d3=o.d3?o.d3:"undefined"!=typeof t?t("d3"):void 0,n.api=e,n.config=n.getDefaultConfig(),n.data={},n.cache={},n.axes={}}function c(e){i.call(this,e)}function l(e,t){function n(e,t){e.attr("transform",function(e){return"translate("+Math.ceil(t(e)+b)+", 0)"})}function r(e,t){e.attr("transform",function(e){return"translate(0,"+Math.ceil(t(e))+")"})}function o(e){var t=e[0],n=e[e.length-1];return t<n?[t,n]:[n,t]}function i(e){var t,n,r=[];if(e.ticks)return e.ticks.apply(e,d);for(n=e.domain(),t=Math.ceil(n[0]);t<n[1];t++)r.push(t);return r.length>0&&r[0]>0&&r.unshift(r[0]-(r[1]-r[0])),r}function a(){var e,n=g.copy();return t.isCategory&&(e=g.domain(),n.domain([e[0],e[1]-1])),n}function s(e){var t=f?f(e):e;return"undefined"!=typeof t?t:""}function u(e){if(N)return N;var t={h:11.5,w:5.5};return e.select("text").text(s).each(function(e){var n=this.getBoundingClientRect(),r=s(e),o=n.height,i=r?n.width/r.length:void 0;o&&i&&(t.h=o,t.w=i)}).text(""),N=t,t}function c(n){return t.withoutTransition?n:e.transition(n)}function l(f){f.each(function(){function f(e,n){function r(e,t){i=void 0;for(var s=1;s<t.length;s++)if(" "===t.charAt(s)&&(i=s),o=t.substr(0,s+1),a=Z.w*o.length,n<a)return r(e.concat(t.substr(0,i?i:s)),t.slice(i?i+1:s));return e.concat(t)}var o,i,a,u=s(e),c=[];return"[object Array]"===Object.prototype.toString.call(u)?u:((!n||n<=0)&&(n=X?95:t.isCategory?Math.ceil(A(M[1])-A(M[0]))-12:110),r(c,u+""))}function d(e,t){var n=Z.h;return 0===t&&(n="left"===m||"right"===m?-((W[e.index]-1)*(Z.h/2)-3):".71em"),n}function E(e){var t=g(e)+(h?0:b);return j[0]<t&&t<j[1]?y:0}function x(e){return e?e>0?"start":"end":"middle"}function C(e){return e?"rotate("+e+")":""}function w(e){return e?8*Math.sin(Math.PI*(e/180)):0}function S(e){return e?11.5-2.5*(e/15)*(e>0?1:-1):Y}var O,T,P,R=l.g=e.select(this),N=this.__chart__||g,A=this.__chart__=a(),M=_?_:i(A),D=R.selectAll(".tick").data(M,A),I=D.enter().insert("g",".domain").attr("class","tick").style("opacity",1e-6),L=D.exit().remove(),k=c(D).style("opacity",1),j=g.rangeExtent?g.rangeExtent():o(g.range()),F=R.selectAll(".domain").data([0]),V=(F.enter().append("path").attr("class","domain"),c(F));I.append("line"),I.append("text");var U=I.select("line"),z=k.select("line"),G=I.select("text"),H=k.select("text");t.isCategory?(b=Math.ceil((A(1)-A(0))/2),T=h?0:b,P=h?b:0):b=T=0;var B,q,Z=u(R.select(".tick")),W=[],Y=Math.max(y,0)+v,X="left"===m||"right"===m;B=D.select("text"),q=B.selectAll("tspan").data(function(e,n){var r=t.tickMultiline?f(e,t.tickWidth):[].concat(s(e));return W[n]=r.length,r.map(function(e){return{index:n,splitted:e}})}),q.enter().append("tspan"),q.exit().remove(),q.text(function(e){return e.splitted});var K=t.tickTextRotate;switch(m){case"bottom":O=n,U.attr("y2",y),G.attr("y",Y),z.attr("x1",T).attr("x2",T).attr("y2",E),H.attr("x",0).attr("y",S(K)).style("text-anchor",x(K)).attr("transform",C(K)),q.attr("x",0).attr("dy",d).attr("dx",w(K)),V.attr("d","M"+j[0]+","+p+"V0H"+j[1]+"V"+p);break;case"top":O=n,U.attr("y2",-y),G.attr("y",-Y),z.attr("x2",0).attr("y2",-y),H.attr("x",0).attr("y",-Y),B.style("text-anchor","middle"),q.attr("x",0).attr("dy","0em"),V.attr("d","M"+j[0]+","+-p+"V0H"+j[1]+"V"+-p);break;case"left":O=r,U.attr("x2",-y),G.attr("x",-Y),z.attr("x2",-y).attr("y1",P).attr("y2",P),H.attr("x",-Y).attr("y",b),B.style("text-anchor","end"),q.attr("x",-Y).attr("dy",d),V.attr("d","M"+-p+","+j[0]+"H0V"+j[1]+"H"+-p);break;case"right":O=r,U.attr("x2",y),G.attr("x",Y),z.attr("x2",y).attr("y2",0),H.attr("x",Y).attr("y",0),B.style("text-anchor","start"),q.attr("x",Y).attr("dy",d),V.attr("d","M"+p+","+j[0]+"H0V"+j[1]+"H"+p)}if(A.rangeBand){var Q=A,$=Q.rangeBand()/2;N=A=function(e){return Q(e)+$}}else N.rangeBand?N=A:L.call(O,A);I.call(O,N),k.call(O,A)})}var p,f,d,h,g=e.scale.linear(),m="bottom",y=6,v=3,_=null,b=0,E=!0;return t=t||{},p=t.withOuterTick?6:0,l.scale=function(e){return arguments.length?(g=e,l):g},l.orient=function(e){return arguments.length?(m=e in{top:1,right:1,bottom:1,left:1}?e+"":"bottom",l):m},l.tickFormat=function(e){return arguments.length?(f=e,l):f},l.tickCentered=function(e){return arguments.length?(h=e,l):h},l.tickOffset=function(){return b},l.tickInterval=function(){var e,n;return t.isCategory?e=2*b:(n=l.g.select("path.domain").node().getTotalLength()-2*p,e=n/l.g.selectAll("line").size()),e===1/0?0:e},l.ticks=function(){return arguments.length?(d=arguments,l):d},l.tickCulling=function(e){return arguments.length?(E=e,l):E},l.tickValues=function(e){if("function"==typeof e)_=function(){return e(g.domain())};else{if(!arguments.length)return _;_=e}return l},l}var p,f,d,h={version:"0.4.11"};h.generate=function(e){return new s(e)},h.chart={fn:s.prototype,internal:{fn:u.prototype,axis:{fn:c.prototype}}},p=h.chart.fn,f=h.chart.internal.fn,d=h.chart.internal.axis.fn,f.beforeInit=function(){},f.afterInit=function(){},f.init=function(){var e=this,t=e.config;if(e.initParams(),t.data_url)e.convertUrlToData(t.data_url,t.data_mimeType,t.data_headers,t.data_keys,e.initWithData);else if(t.data_json)e.initWithData(e.convertJsonToData(t.data_json,t.data_keys));else if(t.data_rows)e.initWithData(e.convertRowsToData(t.data_rows));else{if(!t.data_columns)throw Error("url or json or rows or columns is required.");e.initWithData(e.convertColumnsToData(t.data_columns))}},f.initParams=function(){var e=this,t=e.d3,n=e.config;e.clipId="c3-"+ +new Date+"-clip",e.clipIdForXAxis=e.clipId+"-xaxis",e.clipIdForYAxis=e.clipId+"-yaxis",e.clipIdForGrid=e.clipId+"-grid",e.clipIdForSubchart=e.clipId+"-subchart",e.clipPath=e.getClipPath(e.clipId),e.clipPathForXAxis=e.getClipPath(e.clipIdForXAxis),e.clipPathForYAxis=e.getClipPath(e.clipIdForYAxis),e.clipPathForGrid=e.getClipPath(e.clipIdForGrid),e.clipPathForSubchart=e.getClipPath(e.clipIdForSubchart),e.dragStart=null,e.dragging=!1,e.flowing=!1,e.cancelClick=!1,e.mouseover=!1,e.transiting=!1,e.color=e.generateColor(),e.levelColor=e.generateLevelColor(),e.dataTimeFormat=n.data_xLocaltime?t.time.format:t.time.format.utc,e.axisTimeFormat=n.axis_x_localtime?t.time.format:t.time.format.utc,e.defaultAxisTimeFormat=e.axisTimeFormat.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%-m/%-d",function(e){return e.getDay()&&1!==e.getDate()}],["%-m/%-d",function(e){return 1!==e.getDate()}],["%-m/%-d",function(e){return e.getMonth()}],["%Y/%-m/%-d",function(){return!0}]]),e.hiddenTargetIds=[],e.hiddenLegendIds=[],e.focusedTargetIds=[],e.defocusedTargetIds=[],e.xOrient=n.axis_rotated?"left":"bottom",e.yOrient=n.axis_rotated?n.axis_y_inner?"top":"bottom":n.axis_y_inner?"right":"left",e.y2Orient=n.axis_rotated?n.axis_y2_inner?"bottom":"top":n.axis_y2_inner?"left":"right",e.subXOrient=n.axis_rotated?"left":"bottom",e.isLegendRight="right"===n.legend_position,e.isLegendInset="inset"===n.legend_position,e.isLegendTop="top-left"===n.legend_inset_anchor||"top-right"===n.legend_inset_anchor,e.isLegendLeft="top-left"===n.legend_inset_anchor||"bottom-left"===n.legend_inset_anchor,e.legendStep=0,e.legendItemWidth=0,e.legendItemHeight=0,e.currentMaxTickWidths={x:0,y:0,y2:0},e.rotated_padding_left=30,e.rotated_padding_right=n.axis_rotated&&!n.axis_x_show?0:30,e.rotated_padding_top=5,e.withoutFadeIn={},e.intervalForObserveInserted=void 0,e.axes.subx=t.selectAll([])},f.initChartElements=function(){this.initBar&&this.initBar(),this.initLine&&this.initLine(),this.initArc&&this.initArc(),this.initGauge&&this.initGauge(),this.initText&&this.initText()},f.initWithData=function(e){var t,n,r=this,o=r.d3,i=r.config,a=!0;r.axis=new c(r),r.initPie&&r.initPie(),r.initBrush&&r.initBrush(),r.initZoom&&r.initZoom(),i.bindto?"function"==typeof i.bindto.node?r.selectChart=i.bindto:r.selectChart=o.select(i.bindto):r.selectChart=o.selectAll([]),r.selectChart.empty()&&(r.selectChart=o.select(document.createElement("div")).style("opacity",0),r.observeInserted(r.selectChart),a=!1),r.selectChart.html("").classed("c3",!0),r.data.xs={},r.data.targets=r.convertDataToTargets(e),i.data_filter&&(r.data.targets=r.data.targets.filter(i.data_filter)),i.data_hide&&r.addHiddenTargetIds(i.data_hide===!0?r.mapToIds(r.data.targets):i.data_hide),i.legend_hide&&r.addHiddenLegendIds(i.legend_hide===!0?r.mapToIds(r.data.targets):i.legend_hide),r.hasType("gauge")&&(i.legend_show=!1),r.updateSizes(),r.updateScales(),r.x.domain(o.extent(r.getXDomain(r.data.targets))),r.y.domain(r.getYDomain(r.data.targets,"y")),r.y2.domain(r.getYDomain(r.data.targets,"y2")),r.subX.domain(r.x.domain()),r.subY.domain(r.y.domain()),r.subY2.domain(r.y2.domain()),r.orgXDomain=r.x.domain(),r.brush&&r.brush.scale(r.subX),i.zoom_enabled&&r.zoom.scale(r.x),r.svg=r.selectChart.append("svg").style("overflow","hidden").on("mouseenter",function(){return i.onmouseover.call(r)}).on("mouseleave",function(){return i.onmouseout.call(r)}),r.config.svg_classname&&r.svg.attr("class",r.config.svg_classname),t=r.svg.append("defs"),r.clipChart=r.appendClip(t,r.clipId),r.clipXAxis=r.appendClip(t,r.clipIdForXAxis),r.clipYAxis=r.appendClip(t,r.clipIdForYAxis),r.clipGrid=r.appendClip(t,r.clipIdForGrid),r.clipSubchart=r.appendClip(t,r.clipIdForSubchart),r.updateSvgSize(),n=r.main=r.svg.append("g").attr("transform",r.getTranslate("main")),r.initSubchart&&r.initSubchart(),r.initTooltip&&r.initTooltip(),r.initLegend&&r.initLegend(),r.initTitle&&r.initTitle(),n.append("text").attr("class",g.text+" "+g.empty).attr("text-anchor","middle").attr("dominant-baseline","middle"),r.initRegion(),r.initGrid(),n.append("g").attr("clip-path",r.clipPath).attr("class",g.chart),i.grid_lines_front&&r.initGridLines(),r.initEventRect(),r.initChartElements(),n.insert("rect",i.zoom_privileged?null:"g."+g.regions).attr("class",g.zoomRect).attr("width",r.width).attr("height",r.height).style("opacity",0).on("dblclick.zoom",null),i.axis_x_extent&&r.brush.extent(r.getDefaultExtent()),r.axis.init(),r.updateTargets(r.data.targets),a&&(r.updateDimension(),r.config.oninit.call(r),r.redraw({withTransition:!1,withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransitionForAxis:!1})),r.bindResize(),r.api.element=r.selectChart.node()},f.smoothLines=function(e,t){var n=this;"grid"===t&&e.each(function(){var e=n.d3.select(this),t=e.attr("x1"),r=e.attr("x2"),o=e.attr("y1"),i=e.attr("y2");e.attr({x1:Math.ceil(t),x2:Math.ceil(r),y1:Math.ceil(o),y2:Math.ceil(i)})})},f.updateSizes=function(){var e=this,t=e.config,n=e.legend?e.getLegendHeight():0,r=e.legend?e.getLegendWidth():0,o=e.isLegendRight||e.isLegendInset?0:n,i=e.hasArcType(),a=t.axis_rotated||i?0:e.getHorizontalAxisHeight("x"),s=t.subchart_show&&!i?t.subchart_size_height+a:0;e.currentWidth=e.getCurrentWidth(),e.currentHeight=e.getCurrentHeight(),e.margin=t.axis_rotated?{top:e.getHorizontalAxisHeight("y2")+e.getCurrentPaddingTop(),right:i?0:e.getCurrentPaddingRight(),bottom:e.getHorizontalAxisHeight("y")+o+e.getCurrentPaddingBottom(),left:s+(i?0:e.getCurrentPaddingLeft())}:{top:4+e.getCurrentPaddingTop(),right:i?0:e.getCurrentPaddingRight(),bottom:a+s+o+e.getCurrentPaddingBottom(),left:i?0:e.getCurrentPaddingLeft()},e.margin2=t.axis_rotated?{top:e.margin.top,right:NaN,bottom:20+o,left:e.rotated_padding_left}:{top:e.currentHeight-s-o,right:NaN,bottom:a+o,left:e.margin.left},e.margin3={top:0,right:NaN,bottom:0,left:0},e.updateSizeForLegend&&e.updateSizeForLegend(n,r),e.width=e.currentWidth-e.margin.left-e.margin.right,e.height=e.currentHeight-e.margin.top-e.margin.bottom,e.width<0&&(e.width=0),e.height<0&&(e.height=0),e.width2=t.axis_rotated?e.margin.left-e.rotated_padding_left-e.rotated_padding_right:e.width,e.height2=t.axis_rotated?e.height:e.currentHeight-e.margin2.top-e.margin2.bottom,e.width2<0&&(e.width2=0),e.height2<0&&(e.height2=0),e.arcWidth=e.width-(e.isLegendRight?r+10:0),e.arcHeight=e.height-(e.isLegendRight?0:10),e.hasType("gauge")&&!t.gauge_fullCircle&&(e.arcHeight+=e.height-e.getGaugeLabelHeight()),e.updateRadius&&e.updateRadius(),e.isLegendRight&&i&&(e.margin3.left=e.arcWidth/2+1.1*e.radiusExpanded)},f.updateTargets=function(e){var t=this;t.updateTargetsForText(e),t.updateTargetsForBar(e),t.updateTargetsForLine(e),t.hasArcType()&&t.updateTargetsForArc&&t.updateTargetsForArc(e),t.updateTargetsForSubchart&&t.updateTargetsForSubchart(e),t.showTargets()},f.showTargets=function(){var e=this;e.svg.selectAll("."+g.target).filter(function(t){return e.isTargetToShow(t.id)}).transition().duration(e.config.transition_duration).style("opacity",1)},f.redraw=function(e,t){var n,r,o,i,a,s,u,c,l,p,f,d,h,m,y,v,_,b,E,x,C,w,S,T,P,R,N,A,M,D=this,I=D.main,L=D.d3,k=D.config,j=D.getShapeIndices(D.isAreaType),F=D.getShapeIndices(D.isBarType),V=D.getShapeIndices(D.isLineType),U=D.hasArcType(),z=D.filterTargetsToShow(D.data.targets),G=D.xv.bind(D);if(e=e||{},n=O(e,"withY",!0),r=O(e,"withSubchart",!0),o=O(e,"withTransition",!0),s=O(e,"withTransform",!1),u=O(e,"withUpdateXDomain",!1),c=O(e,"withUpdateOrgXDomain",!1),l=O(e,"withTrimXDomain",!0),h=O(e,"withUpdateXAxis",u),p=O(e,"withLegend",!1),f=O(e,"withEventRect",!0),d=O(e,"withDimension",!0),i=O(e,"withTransitionForExit",o),a=O(e,"withTransitionForAxis",o),E=o?k.transition_duration:0,x=i?E:0,C=a?E:0,t=t||D.axis.generateTransitions(C),p&&k.legend_show?D.updateLegend(D.mapToIds(D.data.targets),e,t):d&&D.updateDimension(!0),D.isCategorized()&&0===z.length&&D.x.domain([0,D.axes.x.selectAll(".tick").size()]),z.length?(D.updateXDomain(z,u,c,l),k.axis_x_tick_values||(T=D.axis.updateXAxisTickValues(z))):(D.xAxis.tickValues([]),D.subXAxis.tickValues([])),k.zoom_rescale&&!e.flow&&(N=D.x.orgDomain()),D.y.domain(D.getYDomain(z,"y",N)),D.y2.domain(D.getYDomain(z,"y2",N)),!k.axis_y_tick_values&&k.axis_y_tick_count&&D.yAxis.tickValues(D.axis.generateTickValues(D.y.domain(),k.axis_y_tick_count)),!k.axis_y2_tick_values&&k.axis_y2_tick_count&&D.y2Axis.tickValues(D.axis.generateTickValues(D.y2.domain(),k.axis_y2_tick_count)),D.axis.redraw(t,U),D.axis.updateLabels(o),(u||h)&&z.length)if(k.axis_x_tick_culling&&T){for(P=1;P<T.length;P++)if(T.length/P<k.axis_x_tick_culling_max){R=P;break}D.svg.selectAll("."+g.axisX+" .tick text").each(function(e){var t=T.indexOf(e);t>=0&&L.select(this).style("display",t%R?"none":"block")})}else D.svg.selectAll("."+g.axisX+" .tick text").style("display","block");m=D.generateDrawArea?D.generateDrawArea(j,!1):void 0,y=D.generateDrawBar?D.generateDrawBar(F):void 0,v=D.generateDrawLine?D.generateDrawLine(V,!1):void 0,_=D.generateXYForText(j,F,V,!0),b=D.generateXYForText(j,F,V,!1),n&&(D.subY.domain(D.getYDomain(z,"y")),D.subY2.domain(D.getYDomain(z,"y2"))),D.updateXgridFocus(),I.select("text."+g.text+"."+g.empty).attr("x",D.width/2).attr("y",D.height/2).text(k.data_empty_label_text).transition().style("opacity",z.length?0:1),D.updateGrid(E),D.updateRegion(E),D.updateBar(x),D.updateLine(x),D.updateArea(x),D.updateCircle(),D.hasDataLabel()&&D.updateText(x),D.redrawTitle&&D.redrawTitle(),D.redrawArc&&D.redrawArc(E,x,s),D.redrawSubchart&&D.redrawSubchart(r,t,E,x,j,F,V),I.selectAll("."+g.selectedCircles).filter(D.isBarType.bind(D)).selectAll("circle").remove(),k.interaction_enabled&&!e.flow&&f&&(D.redrawEventRect(),D.updateZoom&&D.updateZoom()),D.updateCircleY(),A=(D.config.axis_rotated?D.circleY:D.circleX).bind(D),M=(D.config.axis_rotated?D.circleX:D.circleY).bind(D),e.flow&&(S=D.generateFlow({targets:z,flow:e.flow,duration:e.flow.duration,drawBar:y,drawLine:v,drawArea:m,cx:A,cy:M,xv:G,xForText:_,yForText:b})),(E||S)&&D.isTabVisible()?L.transition().duration(E).each(function(){var t=[];[D.redrawBar(y,!0),D.redrawLine(v,!0),D.redrawArea(m,!0),D.redrawCircle(A,M,!0),D.redrawText(_,b,e.flow,!0),D.redrawRegion(!0),D.redrawGrid(!0)].forEach(function(e){e.forEach(function(e){t.push(e)})}),w=D.generateWait(),t.forEach(function(e){w.add(e)})}).call(w,function(){S&&S(),k.onrendered&&k.onrendered.call(D)}):(D.redrawBar(y),D.redrawLine(v),D.redrawArea(m),D.redrawCircle(A,M),D.redrawText(_,b,e.flow),D.redrawRegion(),D.redrawGrid(),k.onrendered&&k.onrendered.call(D)),D.mapToIds(D.data.targets).forEach(function(e){D.withoutFadeIn[e]=!0})},f.updateAndRedraw=function(e){var t,n=this,r=n.config;e=e||{},e.withTransition=O(e,"withTransition",!0),e.withTransform=O(e,"withTransform",!1),e.withLegend=O(e,"withLegend",!1),e.withUpdateXDomain=!0,e.withUpdateOrgXDomain=!0,e.withTransitionForExit=!1,e.withTransitionForTransform=O(e,"withTransitionForTransform",e.withTransition),n.updateSizes(),e.withLegend&&r.legend_show||(t=n.axis.generateTransitions(e.withTransitionForAxis?r.transition_duration:0),n.updateScales(),n.updateSvgSize(),n.transformAll(e.withTransitionForTransform,t)),n.redraw(e,t)},f.redrawWithoutRescale=function(){this.redraw({withY:!1,withSubchart:!1,withEventRect:!1,withTransitionForAxis:!1})},f.isTimeSeries=function(){return"timeseries"===this.config.axis_x_type},f.isCategorized=function(){return this.config.axis_x_type.indexOf("categor")>=0},f.isCustomX=function(){var e=this,t=e.config;return!e.isTimeSeries()&&(t.data_x||S(t.data_xs))},f.isTimeSeriesY=function(){return"timeseries"===this.config.axis_y_type},f.getTranslate=function(e){var t,n,r=this,o=r.config;return"main"===e?(t=x(r.margin.left),n=x(r.margin.top)):"context"===e?(t=x(r.margin2.left),n=x(r.margin2.top)):"legend"===e?(t=r.margin3.left,
10
- n=r.margin3.top):"x"===e?(t=0,n=o.axis_rotated?0:r.height):"y"===e?(t=0,n=o.axis_rotated?r.height:0):"y2"===e?(t=o.axis_rotated?0:r.width,n=o.axis_rotated?1:0):"subx"===e?(t=0,n=o.axis_rotated?0:r.height2):"arc"===e&&(t=r.arcWidth/2,n=r.arcHeight/2),"translate("+t+","+n+")"},f.initialOpacity=function(e){return null!==e.value&&this.withoutFadeIn[e.id]?1:0},f.initialOpacityForCircle=function(e){return null!==e.value&&this.withoutFadeIn[e.id]?this.opacityForCircle(e):0},f.opacityForCircle=function(e){var t=this.config.point_show?1:0;return m(e.value)?this.isScatterType(e)?.5:t:0},f.opacityForText=function(){return this.hasDataLabel()?1:0},f.xx=function(e){return e?this.x(e.x):null},f.xv=function(e){var t=this,n=e.value;return t.isTimeSeries()?n=t.parseDate(e.value):t.isCategorized()&&"string"==typeof e.value&&(n=t.config.axis_x_categories.indexOf(e.value)),Math.ceil(t.x(n))},f.yv=function(e){var t=this,n=e.axis&&"y2"===e.axis?t.y2:t.y;return Math.ceil(n(e.value))},f.subxx=function(e){return e?this.subX(e.x):null},f.transformMain=function(e,t){var n,r,o,i=this;t&&t.axisX?n=t.axisX:(n=i.main.select("."+g.axisX),e&&(n=n.transition())),t&&t.axisY?r=t.axisY:(r=i.main.select("."+g.axisY),e&&(r=r.transition())),t&&t.axisY2?o=t.axisY2:(o=i.main.select("."+g.axisY2),e&&(o=o.transition())),(e?i.main.transition():i.main).attr("transform",i.getTranslate("main")),n.attr("transform",i.getTranslate("x")),r.attr("transform",i.getTranslate("y")),o.attr("transform",i.getTranslate("y2")),i.main.select("."+g.chartArcs).attr("transform",i.getTranslate("arc"))},f.transformAll=function(e,t){var n=this;n.transformMain(e,t),n.config.subchart_show&&n.transformContext(e,t),n.legend&&n.transformLegend(e)},f.updateSvgSize=function(){var e=this,t=e.svg.select(".c3-brush .background");e.svg.attr("width",e.currentWidth).attr("height",e.currentHeight),e.svg.selectAll(["#"+e.clipId,"#"+e.clipIdForGrid]).select("rect").attr("width",e.width).attr("height",e.height),e.svg.select("#"+e.clipIdForXAxis).select("rect").attr("x",e.getXAxisClipX.bind(e)).attr("y",e.getXAxisClipY.bind(e)).attr("width",e.getXAxisClipWidth.bind(e)).attr("height",e.getXAxisClipHeight.bind(e)),e.svg.select("#"+e.clipIdForYAxis).select("rect").attr("x",e.getYAxisClipX.bind(e)).attr("y",e.getYAxisClipY.bind(e)).attr("width",e.getYAxisClipWidth.bind(e)).attr("height",e.getYAxisClipHeight.bind(e)),e.svg.select("#"+e.clipIdForSubchart).select("rect").attr("width",e.width).attr("height",t.size()?t.attr("height"):0),e.svg.select("."+g.zoomRect).attr("width",e.width).attr("height",e.height),e.selectChart.style("max-height",e.currentHeight+"px")},f.updateDimension=function(e){var t=this;e||(t.config.axis_rotated?(t.axes.x.call(t.xAxis),t.axes.subx.call(t.subXAxis)):(t.axes.y.call(t.yAxis),t.axes.y2.call(t.y2Axis))),t.updateSizes(),t.updateScales(),t.updateSvgSize(),t.transformAll(!1)},f.observeInserted=function(e){var t,n=this;return"undefined"==typeof MutationObserver?void o.console.error("MutationObserver not defined."):(t=new MutationObserver(function(r){r.forEach(function(r){"childList"===r.type&&r.previousSibling&&(t.disconnect(),n.intervalForObserveInserted=o.setInterval(function(){e.node().parentNode&&(o.clearInterval(n.intervalForObserveInserted),n.updateDimension(),n.brush&&n.brush.update(),n.config.oninit.call(n),n.redraw({withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransition:!1,withTransitionForTransform:!1,withLegend:!0}),e.transition().style("opacity",1))},10))})}),void t.observe(e.node(),{attributes:!0,childList:!0,characterData:!0}))},f.bindResize=function(){var e=this,t=e.config;if(e.resizeFunction=e.generateResize(),e.resizeFunction.add(function(){t.onresize.call(e)}),t.resize_auto&&e.resizeFunction.add(function(){void 0!==e.resizeTimeout&&o.clearTimeout(e.resizeTimeout),e.resizeTimeout=o.setTimeout(function(){delete e.resizeTimeout,e.api.flush()},100)}),e.resizeFunction.add(function(){t.onresized.call(e)}),o.attachEvent)o.attachEvent("onresize",e.resizeFunction);else if(o.addEventListener)o.addEventListener("resize",e.resizeFunction,!1);else{var n=o.onresize;n?n.add&&n.remove||(n=e.generateResize(),n.add(o.onresize)):n=e.generateResize(),n.add(e.resizeFunction),o.onresize=n}},f.generateResize=function(){function e(){t.forEach(function(e){e()})}var t=[];return e.add=function(e){t.push(e)},e.remove=function(e){for(var n=0;n<t.length;n++)if(t[n]===e){t.splice(n,1);break}},e},f.endall=function(e,t){var n=0;e.each(function(){++n}).each("end",function(){--n||t.apply(this,arguments)})},f.generateWait=function(){var e=[],t=function(t,n){var r=setInterval(function(){var t=0;e.forEach(function(e){if(e.empty())return void(t+=1);try{e.transition()}catch(e){t+=1}}),t===e.length&&(clearInterval(r),n&&n())},10)};return t.add=function(t){e.push(t)},t},f.parseDate=function(e){var t,n=this;return e instanceof Date?t=e:"string"==typeof e?t=n.dataTimeFormat(n.config.data_xFormat).parse(e):"number"!=typeof e||isNaN(e)||(t=new Date((+e))),t&&!isNaN(+t)||o.console.error("Failed to parse x '"+e+"' to Date object"),t},f.isTabVisible=function(){var e;return"undefined"!=typeof document.hidden?e="hidden":"undefined"!=typeof document.mozHidden?e="mozHidden":"undefined"!=typeof document.msHidden?e="msHidden":"undefined"!=typeof document.webkitHidden&&(e="webkitHidden"),!document[e]},f.getDefaultConfig=function(){var e={bindto:"#chart",svg_classname:void 0,size_width:void 0,size_height:void 0,padding_left:void 0,padding_right:void 0,padding_top:void 0,padding_bottom:void 0,resize_auto:!0,zoom_enabled:!1,zoom_extent:void 0,zoom_privileged:!1,zoom_rescale:!1,zoom_onzoom:function(){},zoom_onzoomstart:function(){},zoom_onzoomend:function(){},zoom_x_min:void 0,zoom_x_max:void 0,interaction_brighten:!0,interaction_enabled:!0,onmouseover:function(){},onmouseout:function(){},onresize:function(){},onresized:function(){},oninit:function(){},onrendered:function(){},transition_duration:350,data_x:void 0,data_xs:{},data_xFormat:"%Y-%m-%d",data_xLocaltime:!0,data_xSort:!0,data_idConverter:function(e){return e},data_names:{},data_classes:{},data_groups:[],data_axes:{},data_type:void 0,data_types:{},data_labels:{},data_order:"desc",data_regions:{},data_color:void 0,data_colors:{},data_hide:!1,data_filter:void 0,data_selection_enabled:!1,data_selection_grouped:!1,data_selection_isselectable:function(){return!0},data_selection_multiple:!0,data_selection_draggable:!1,data_onclick:function(){},data_onmouseover:function(){},data_onmouseout:function(){},data_onselected:function(){},data_onunselected:function(){},data_url:void 0,data_headers:void 0,data_json:void 0,data_rows:void 0,data_columns:void 0,data_mimeType:void 0,data_keys:void 0,data_empty_label_text:"",subchart_show:!1,subchart_size_height:60,subchart_axis_x_show:!0,subchart_onbrush:function(){},color_pattern:[],color_threshold:{},legend_show:!0,legend_hide:!1,legend_position:"bottom",legend_inset_anchor:"top-left",legend_inset_x:10,legend_inset_y:0,legend_inset_step:void 0,legend_item_onclick:void 0,legend_item_onmouseover:void 0,legend_item_onmouseout:void 0,legend_equally:!1,legend_padding:0,legend_item_tile_width:10,legend_item_tile_height:10,axis_rotated:!1,axis_x_show:!0,axis_x_type:"indexed",axis_x_localtime:!0,axis_x_categories:[],axis_x_tick_centered:!1,axis_x_tick_format:void 0,axis_x_tick_culling:{},axis_x_tick_culling_max:10,axis_x_tick_count:void 0,axis_x_tick_fit:!0,axis_x_tick_values:null,axis_x_tick_rotate:0,axis_x_tick_outer:!0,axis_x_tick_multiline:!0,axis_x_tick_width:null,axis_x_max:void 0,axis_x_min:void 0,axis_x_padding:{},axis_x_height:void 0,axis_x_extent:void 0,axis_x_label:{},axis_y_show:!0,axis_y_type:void 0,axis_y_max:void 0,axis_y_min:void 0,axis_y_inverted:!1,axis_y_center:void 0,axis_y_inner:void 0,axis_y_label:{},axis_y_tick_format:void 0,axis_y_tick_outer:!0,axis_y_tick_values:null,axis_y_tick_rotate:0,axis_y_tick_count:void 0,axis_y_tick_time_value:void 0,axis_y_tick_time_interval:void 0,axis_y_padding:{},axis_y_default:void 0,axis_y2_show:!1,axis_y2_max:void 0,axis_y2_min:void 0,axis_y2_inverted:!1,axis_y2_center:void 0,axis_y2_inner:void 0,axis_y2_label:{},axis_y2_tick_format:void 0,axis_y2_tick_outer:!0,axis_y2_tick_values:null,axis_y2_tick_count:void 0,axis_y2_padding:{},axis_y2_default:void 0,grid_x_show:!1,grid_x_type:"tick",grid_x_lines:[],grid_y_show:!1,grid_y_lines:[],grid_y_ticks:10,grid_focus_show:!0,grid_lines_front:!0,point_show:!0,point_r:2.5,point_sensitivity:10,point_focus_expand_enabled:!0,point_focus_expand_r:void 0,point_select_r:void 0,line_connectNull:!1,line_step_type:"step",bar_width:void 0,bar_width_ratio:.6,bar_width_max:void 0,bar_zerobased:!0,area_zerobased:!0,area_above:!1,pie_label_show:!0,pie_label_format:void 0,pie_label_threshold:.05,pie_label_ratio:void 0,pie_expand:{},pie_expand_duration:50,gauge_fullCircle:!1,gauge_label_show:!0,gauge_label_format:void 0,gauge_min:0,gauge_max:100,gauge_startingAngle:-1*Math.PI/2,gauge_units:void 0,gauge_width:void 0,gauge_expand:{},gauge_expand_duration:50,donut_label_show:!0,donut_label_format:void 0,donut_label_threshold:.05,donut_label_ratio:void 0,donut_width:void 0,donut_title:"",donut_expand:{},donut_expand_duration:50,spline_interpolation_type:"cardinal",regions:[],tooltip_show:!0,tooltip_grouped:!0,tooltip_format_title:void 0,tooltip_format_name:void 0,tooltip_format_value:void 0,tooltip_position:void 0,tooltip_contents:function(e,t,n,r){return this.getTooltipContent?this.getTooltipContent(e,t,n,r):""},tooltip_init_show:!1,tooltip_init_x:0,tooltip_init_position:{top:"0px",left:"50px"},tooltip_onshow:function(){},tooltip_onhide:function(){},title_text:void 0,title_padding:{top:0,right:0,bottom:0,left:0},title_position:"top-center"};return Object.keys(this.additionalConfig).forEach(function(t){e[t]=this.additionalConfig[t]},this),e},f.additionalConfig={},f.loadConfig=function(e){function t(){var e=r.shift();return e&&n&&"object"==typeof n&&e in n?(n=n[e],t()):e?void 0:n}var n,r,o,i=this.config;Object.keys(i).forEach(function(a){n=e,r=a.split("_"),o=t(),b(o)&&(i[a]=o)})},f.getScale=function(e,t,n){return(n?this.d3.time.scale():this.d3.scale.linear()).range([e,t])},f.getX=function(e,t,n,r){var o,i=this,a=i.getScale(e,t,i.isTimeSeries()),s=n?a.domain(n):a;i.isCategorized()?(r=r||function(){return 0},a=function(e,t){var n=s(e)+r(e);return t?n:Math.ceil(n)}):a=function(e,t){var n=s(e);return t?n:Math.ceil(n)};for(o in s)a[o]=s[o];return a.orgDomain=function(){return s.domain()},i.isCategorized()&&(a.domain=function(e){return arguments.length?(s.domain(e),a):(e=this.orgDomain(),[e[0],e[1]+1])}),a},f.getY=function(e,t,n){var r=this.getScale(e,t,this.isTimeSeriesY());return n&&r.domain(n),r},f.getYScale=function(e){return"y2"===this.axis.getId(e)?this.y2:this.y},f.getSubYScale=function(e){return"y2"===this.axis.getId(e)?this.subY2:this.subY},f.updateScales=function(){var e=this,t=e.config,n=!e.x;e.xMin=t.axis_rotated?1:0,e.xMax=t.axis_rotated?e.height:e.width,e.yMin=t.axis_rotated?0:e.height,e.yMax=t.axis_rotated?e.width:1,e.subXMin=e.xMin,e.subXMax=e.xMax,e.subYMin=t.axis_rotated?0:e.height2,e.subYMax=t.axis_rotated?e.width2:1,e.x=e.getX(e.xMin,e.xMax,n?void 0:e.x.orgDomain(),function(){return e.xAxis.tickOffset()}),e.y=e.getY(e.yMin,e.yMax,n?t.axis_y_default:e.y.domain()),e.y2=e.getY(e.yMin,e.yMax,n?t.axis_y2_default:e.y2.domain()),e.subX=e.getX(e.xMin,e.xMax,e.orgXDomain,function(t){return t%1?0:e.subXAxis.tickOffset()}),e.subY=e.getY(e.subYMin,e.subYMax,n?t.axis_y_default:e.subY.domain()),e.subY2=e.getY(e.subYMin,e.subYMax,n?t.axis_y2_default:e.subY2.domain()),e.xAxisTickFormat=e.axis.getXAxisTickFormat(),e.xAxisTickValues=e.axis.getXAxisTickValues(),e.yAxisTickValues=e.axis.getYAxisTickValues(),e.y2AxisTickValues=e.axis.getY2AxisTickValues(),e.xAxis=e.axis.getXAxis(e.x,e.xOrient,e.xAxisTickFormat,e.xAxisTickValues,t.axis_x_tick_outer),e.subXAxis=e.axis.getXAxis(e.subX,e.subXOrient,e.xAxisTickFormat,e.xAxisTickValues,t.axis_x_tick_outer),e.yAxis=e.axis.getYAxis(e.y,e.yOrient,t.axis_y_tick_format,e.yAxisTickValues,t.axis_y_tick_outer),e.y2Axis=e.axis.getYAxis(e.y2,e.y2Orient,t.axis_y2_tick_format,e.y2AxisTickValues,t.axis_y2_tick_outer),n||(e.brush&&e.brush.scale(e.subX),t.zoom_enabled&&e.zoom.scale(e.x)),e.updateArc&&e.updateArc()},f.getYDomainMin=function(e){var t,n,r,o,i,a,s=this,u=s.config,c=s.mapToIds(e),l=s.getValuesAsIdKeyed(e);if(u.data_groups.length>0)for(a=s.hasNegativeValueInTargets(e),t=0;t<u.data_groups.length;t++)if(o=u.data_groups[t].filter(function(e){return c.indexOf(e)>=0}),0!==o.length)for(r=o[0],a&&l[r]&&l[r].forEach(function(e,t){l[r][t]=e<0?e:0}),n=1;n<o.length;n++)i=o[n],l[i]&&l[i].forEach(function(e,t){s.axis.getId(i)!==s.axis.getId(r)||!l[r]||a&&+e>0||(l[r][t]+=+e)});return s.d3.min(Object.keys(l).map(function(e){return s.d3.min(l[e])}))},f.getYDomainMax=function(e){var t,n,r,o,i,a,s=this,u=s.config,c=s.mapToIds(e),l=s.getValuesAsIdKeyed(e);if(u.data_groups.length>0)for(a=s.hasPositiveValueInTargets(e),t=0;t<u.data_groups.length;t++)if(o=u.data_groups[t].filter(function(e){return c.indexOf(e)>=0}),0!==o.length)for(r=o[0],a&&l[r]&&l[r].forEach(function(e,t){l[r][t]=e>0?e:0}),n=1;n<o.length;n++)i=o[n],l[i]&&l[i].forEach(function(e,t){s.axis.getId(i)!==s.axis.getId(r)||!l[r]||a&&+e<0||(l[r][t]+=+e)});return s.d3.max(Object.keys(l).map(function(e){return s.d3.max(l[e])}))},f.getYDomain=function(e,t,n){var r,o,i,a,s,u,c,l,p,f,d,h=this,g=h.config,y=e.filter(function(e){return h.axis.getId(e.id)===t}),v=n?h.filterByXDomain(y,n):y,_="y2"===t?g.axis_y2_min:g.axis_y_min,b="y2"===t?g.axis_y2_max:g.axis_y_max,E=h.getYDomainMin(v),x=h.getYDomainMax(v),w="y2"===t?g.axis_y2_center:g.axis_y_center,O=h.hasType("bar",v)&&g.bar_zerobased||h.hasType("area",v)&&g.area_zerobased,T="y2"===t?g.axis_y2_inverted:g.axis_y_inverted,P=h.hasDataLabel()&&g.axis_rotated,R=h.hasDataLabel()&&!g.axis_rotated;return E=m(_)?_:m(b)?E<b?E:b-10:E,x=m(b)?b:m(_)?_<x?x:_+10:x,0===v.length?"y2"===t?h.y2.domain():h.y.domain():(isNaN(E)&&(E=0),isNaN(x)&&(x=E),E===x&&(E<0?x=0:E=0),f=E>=0&&x>=0,d=E<=0&&x<=0,(m(_)&&f||m(b)&&d)&&(O=!1),O&&(f&&(E=0),d&&(x=0)),o=Math.abs(x-E),i=a=s=.1*o,"undefined"!=typeof w&&(u=Math.max(Math.abs(E),Math.abs(x)),x=w+u,E=w-u),P?(c=h.getDataLabelLength(E,x,"width"),l=C(h.y.range()),p=[c[0]/l,c[1]/l],a+=o*(p[1]/(1-p[0]-p[1])),s+=o*(p[0]/(1-p[0]-p[1]))):R&&(c=h.getDataLabelLength(E,x,"height"),a+=h.axis.convertPixelsToAxisPadding(c[1],o),s+=h.axis.convertPixelsToAxisPadding(c[0],o)),"y"===t&&S(g.axis_y_padding)&&(a=h.axis.getPadding(g.axis_y_padding,"top",a,o),s=h.axis.getPadding(g.axis_y_padding,"bottom",s,o)),"y2"===t&&S(g.axis_y2_padding)&&(a=h.axis.getPadding(g.axis_y2_padding,"top",a,o),s=h.axis.getPadding(g.axis_y2_padding,"bottom",s,o)),O&&(f&&(s=E),d&&(a=-x)),r=[E-s,x+a],T?r.reverse():r)},f.getXDomainMin=function(e){var t=this,n=t.config;return b(n.axis_x_min)?t.isTimeSeries()?this.parseDate(n.axis_x_min):n.axis_x_min:t.d3.min(e,function(e){return t.d3.min(e.values,function(e){return e.x})})},f.getXDomainMax=function(e){var t=this,n=t.config;return b(n.axis_x_max)?t.isTimeSeries()?this.parseDate(n.axis_x_max):n.axis_x_max:t.d3.max(e,function(e){return t.d3.max(e.values,function(e){return e.x})})},f.getXDomainPadding=function(e){var t,n,r,o,i=this,a=i.config,s=e[1]-e[0];return i.isCategorized()?n=0:i.hasType("bar")?(t=i.getMaxDataCount(),n=t>1?s/(t-1)/2:.5):n=.01*s,"object"==typeof a.axis_x_padding&&S(a.axis_x_padding)?(r=m(a.axis_x_padding.left)?a.axis_x_padding.left:n,o=m(a.axis_x_padding.right)?a.axis_x_padding.right:n):r=o="number"==typeof a.axis_x_padding?a.axis_x_padding:n,{left:r,right:o}},f.getXDomain=function(e){var t=this,n=[t.getXDomainMin(e),t.getXDomainMax(e)],r=n[0],o=n[1],i=t.getXDomainPadding(n),a=0,s=0;return r-o!==0||t.isCategorized()||(t.isTimeSeries()?(r=new Date(.5*r.getTime()),o=new Date(1.5*o.getTime())):(r=0===r?1:.5*r,o=0===o?-1:1.5*o)),(r||0===r)&&(a=t.isTimeSeries()?new Date(r.getTime()-i.left):r-i.left),(o||0===o)&&(s=t.isTimeSeries()?new Date(o.getTime()+i.right):o+i.right),[a,s]},f.updateXDomain=function(e,t,n,r,o){var i=this,a=i.config;return n&&(i.x.domain(o?o:i.d3.extent(i.getXDomain(e))),i.orgXDomain=i.x.domain(),a.zoom_enabled&&i.zoom.scale(i.x).updateScaleExtent(),i.subX.domain(i.x.domain()),i.brush&&i.brush.scale(i.subX)),t&&(i.x.domain(o?o:!i.brush||i.brush.empty()?i.orgXDomain:i.brush.extent()),a.zoom_enabled&&i.zoom.scale(i.x).updateScaleExtent()),r&&i.x.domain(i.trimXDomain(i.x.orgDomain())),i.x.domain()},f.trimXDomain=function(e){var t=this.getZoomDomain(),n=t[0],r=t[1];return e[0]<=n&&(e[1]=+e[1]+(n-e[0]),e[0]=n),r<=e[1]&&(e[0]=+e[0]-(e[1]-r),e[1]=r),e},f.isX=function(e){var t=this,n=t.config;return n.data_x&&e===n.data_x||S(n.data_xs)&&T(n.data_xs,e)},f.isNotX=function(e){return!this.isX(e)},f.getXKey=function(e){var t=this,n=t.config;return n.data_x?n.data_x:S(n.data_xs)?n.data_xs[e]:null},f.getXValuesOfXKey=function(e,t){var n,r=this,o=t&&S(t)?r.mapToIds(t):[];return o.forEach(function(t){r.getXKey(t)===e&&(n=r.data.xs[t])}),n},f.getIndexByX=function(e){var t=this,n=t.filterByX(t.data.targets,e);return n.length?n[0].index:null},f.getXValue=function(e,t){var n=this;return e in n.data.xs&&n.data.xs[e]&&m(n.data.xs[e][t])?n.data.xs[e][t]:t},f.getOtherTargetXs=function(){var e=this,t=Object.keys(e.data.xs);return t.length?e.data.xs[t[0]]:null},f.getOtherTargetX=function(e){var t=this.getOtherTargetXs();return t&&e<t.length?t[e]:null},f.addXs=function(e){var t=this;Object.keys(e).forEach(function(n){t.config.data_xs[n]=e[n]})},f.hasMultipleX=function(e){return this.d3.set(Object.keys(e).map(function(t){return e[t]})).size()>1},f.isMultipleX=function(){return S(this.config.data_xs)||!this.config.data_xSort||this.hasType("scatter")},f.addName=function(e){var t,n=this;return e&&(t=n.config.data_names[e.id],e.name=void 0!==t?t:e.id),e},f.getValueOnIndex=function(e,t){var n=e.filter(function(e){return e.index===t});return n.length?n[0]:null},f.updateTargetX=function(e,t){var n=this;e.forEach(function(e){e.values.forEach(function(r,o){r.x=n.generateTargetX(t[o],e.id,o)}),n.data.xs[e.id]=t})},f.updateTargetXs=function(e,t){var n=this;e.forEach(function(e){t[e.id]&&n.updateTargetX([e],t[e.id])})},f.generateTargetX=function(e,t,n){var r,o=this;return r=o.isTimeSeries()?e?o.parseDate(e):o.parseDate(o.getXValue(t,n)):o.isCustomX()&&!o.isCategorized()?m(e)?+e:o.getXValue(t,n):n},f.cloneTarget=function(e){return{id:e.id,id_org:e.id_org,values:e.values.map(function(e){return{x:e.x,value:e.value,id:e.id}})}},f.updateXs=function(){var e=this;e.data.targets.length&&(e.xs=[],e.data.targets[0].values.forEach(function(t){e.xs[t.index]=t.x}))},f.getPrevX=function(e){var t=this.xs[e-1];return"undefined"!=typeof t?t:null},f.getNextX=function(e){var t=this.xs[e+1];return"undefined"!=typeof t?t:null},f.getMaxDataCount=function(){var e=this;return e.d3.max(e.data.targets,function(e){return e.values.length})},f.getMaxDataCountTarget=function(e){var t,n=e.length,r=0;return n>1?e.forEach(function(e){e.values.length>r&&(t=e,r=e.values.length)}):t=n?e[0]:null,t},f.getEdgeX=function(e){var t=this;return e.length?[t.d3.min(e,function(e){return e.values[0].x}),t.d3.max(e,function(e){return e.values[e.values.length-1].x})]:[0,0]},f.mapToIds=function(e){return e.map(function(e){return e.id})},f.mapToTargetIds=function(e){var t=this;return e?[].concat(e):t.mapToIds(t.data.targets)},f.hasTarget=function(e,t){var n,r=this.mapToIds(e);for(n=0;n<r.length;n++)if(r[n]===t)return!0;return!1},f.isTargetToShow=function(e){return this.hiddenTargetIds.indexOf(e)<0},f.isLegendToShow=function(e){return this.hiddenLegendIds.indexOf(e)<0},f.filterTargetsToShow=function(e){var t=this;return e.filter(function(e){return t.isTargetToShow(e.id)})},f.mapTargetsToUniqueXs=function(e){var t=this,n=t.d3.set(t.d3.merge(e.map(function(e){return e.values.map(function(e){return+e.x})}))).values();return n=t.isTimeSeries()?n.map(function(e){return new Date((+e))}):n.map(function(e){return+e}),n.sort(function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN})},f.addHiddenTargetIds=function(e){this.hiddenTargetIds=this.hiddenTargetIds.concat(e)},f.removeHiddenTargetIds=function(e){this.hiddenTargetIds=this.hiddenTargetIds.filter(function(t){return e.indexOf(t)<0})},f.addHiddenLegendIds=function(e){this.hiddenLegendIds=this.hiddenLegendIds.concat(e)},f.removeHiddenLegendIds=function(e){this.hiddenLegendIds=this.hiddenLegendIds.filter(function(t){return e.indexOf(t)<0})},f.getValuesAsIdKeyed=function(e){var t={};return e.forEach(function(e){t[e.id]=[],e.values.forEach(function(n){t[e.id].push(n.value)})}),t},f.checkValueInTargets=function(e,t){var n,r,o,i=Object.keys(e);for(n=0;n<i.length;n++)for(o=e[i[n]].values,r=0;r<o.length;r++)if(t(o[r].value))return!0;return!1},f.hasNegativeValueInTargets=function(e){return this.checkValueInTargets(e,function(e){return e<0})},f.hasPositiveValueInTargets=function(e){return this.checkValueInTargets(e,function(e){return e>0})},f.isOrderDesc=function(){var e=this.config;return"string"==typeof e.data_order&&"desc"===e.data_order.toLowerCase()},f.isOrderAsc=function(){var e=this.config;return"string"==typeof e.data_order&&"asc"===e.data_order.toLowerCase()},f.orderTargets=function(e){var t=this,n=t.config,r=t.isOrderAsc(),o=t.isOrderDesc();return r||o?e.sort(function(e,t){var n=function(e,t){return e+Math.abs(t.value)},o=e.values.reduce(n,0),i=t.values.reduce(n,0);return r?i-o:o-i}):y(n.data_order)&&e.sort(n.data_order),e},f.filterByX=function(e,t){return this.d3.merge(e.map(function(e){return e.values})).filter(function(e){return e.x-t===0})},f.filterRemoveNull=function(e){return e.filter(function(e){return m(e.value)})},f.filterByXDomain=function(e,t){return e.map(function(e){return{id:e.id,id_org:e.id_org,values:e.values.filter(function(e){return t[0]<=e.x&&e.x<=t[1]})}})},f.hasDataLabel=function(){var e=this.config;return!("boolean"!=typeof e.data_labels||!e.data_labels)||!("object"!=typeof e.data_labels||!S(e.data_labels))},f.getDataLabelLength=function(e,t,n){var r=this,o=[0,0],i=1.3;return r.selectChart.select("svg").selectAll(".dummy").data([e,t]).enter().append("text").text(function(e){return r.dataLabelFormat(e.id)(e)}).each(function(e,t){o[t]=this.getBoundingClientRect()[n]*i}).remove(),o},f.isNoneArc=function(e){return this.hasTarget(this.data.targets,e.id)},f.isArc=function(e){return"data"in e&&this.hasTarget(this.data.targets,e.data.id)},f.findSameXOfValues=function(e,t){var n,r=e[t].x,o=[];for(n=t-1;n>=0&&r===e[n].x;n--)o.push(e[n]);for(n=t;n<e.length&&r===e[n].x;n++)o.push(e[n]);return o},f.findClosestFromTargets=function(e,t){var n,r=this;return n=e.map(function(e){return r.findClosest(e.values,t)}),r.findClosest(n,t)},f.findClosest=function(e,t){var n,r=this,o=r.config.point_sensitivity;return e.filter(function(e){return e&&r.isBarType(e.id)}).forEach(function(e){var t=r.main.select("."+g.bars+r.getTargetSelectorSuffix(e.id)+" ."+g.bar+"-"+e.index).node();!n&&r.isWithinBar(t)&&(n=e)}),e.filter(function(e){return e&&!r.isBarType(e.id)}).forEach(function(e){var i=r.dist(e,t);i<o&&(o=i,n=e)}),n},f.dist=function(e,t){var n=this,r=n.config,o=r.axis_rotated?1:0,i=r.axis_rotated?0:1,a=n.circleY(e,e.index),s=n.x(e.x);return Math.sqrt(Math.pow(s-t[o],2)+Math.pow(a-t[i],2))},f.convertValuesToStep=function(e){var t,n=[].concat(e);if(!this.isCategorized())return e;for(t=e.length+1;0<t;t--)n[t]=n[t-1];return n[0]={x:n[0].x-1,value:n[0].value,id:n[0].id},n[e.length+1]={x:n[e.length].x+1,value:n[e.length].value,id:n[e.length].id},n},f.updateDataAttributes=function(e,t){var n=this,r=n.config,o=r["data_"+e];return"undefined"==typeof t?o:(Object.keys(t).forEach(function(e){o[e]=t[e]}),n.redraw({withLegend:!0}),o)},f.convertUrlToData=function(e,t,n,r,o){var i=this,a=t?t:"csv",s=i.d3.xhr(e);n&&Object.keys(n).forEach(function(e){s.header(e,n[e])}),s.get(function(e,t){var n;if(!t)throw new Error(e.responseURL+" "+e.status+" ("+e.statusText+")");n="json"===a?i.convertJsonToData(JSON.parse(t.response),r):"tsv"===a?i.convertTsvToData(t.response):i.convertCsvToData(t.response),o.call(i,n)})},f.convertXsvToData=function(e,t){var n,r=t.parseRows(e);return 1===r.length?(n=[{}],r[0].forEach(function(e){n[0][e]=null})):n=t.parse(e),n},f.convertCsvToData=function(e){return this.convertXsvToData(e,this.d3.csv)},f.convertTsvToData=function(e){return this.convertXsvToData(e,this.d3.tsv)},f.convertJsonToData=function(e,t){var n,r,o=this,i=[];return t?(t.x?(n=t.value.concat(t.x),o.config.data_x=t.x):n=t.value,i.push(n),e.forEach(function(e){var t=[];n.forEach(function(n){var r=o.findValueInJson(e,n);_(r)&&(r=null),t.push(r)}),i.push(t)}),r=o.convertRowsToData(i)):(Object.keys(e).forEach(function(t){i.push([t].concat(e[t]))}),r=o.convertColumnsToData(i)),r},f.findValueInJson=function(e,t){t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");for(var n=t.split("."),r=0;r<n.length;++r){var o=n[r];if(!(o in e))return;e=e[o]}return e},f.convertRowsToData=function(e){var t,n,r=e[0],o={},i=[];for(t=1;t<e.length;t++){for(o={},n=0;n<e[t].length;n++){if(_(e[t][n]))throw new Error("Source data is missing a component at ("+t+","+n+")!");o[r[n]]=e[t][n]}i.push(o)}return i},f.convertColumnsToData=function(e){var t,n,r,o=[];for(t=0;t<e.length;t++)for(r=e[t][0],n=1;n<e[t].length;n++){if(_(o[n-1])&&(o[n-1]={}),_(e[t][n]))throw new Error("Source data is missing a component at ("+t+","+n+")!");o[n-1][r]=e[t][n]}return o},f.convertDataToTargets=function(e,t){var n,r=this,o=r.config,i=r.d3.keys(e[0]).filter(r.isNotX,r),a=r.d3.keys(e[0]).filter(r.isX,r);return i.forEach(function(n){var i=r.getXKey(n);r.isCustomX()||r.isTimeSeries()?a.indexOf(i)>=0?r.data.xs[n]=(t&&r.data.xs[n]?r.data.xs[n]:[]).concat(e.map(function(e){return e[i]}).filter(m).map(function(e,t){return r.generateTargetX(e,n,t)})):o.data_x?r.data.xs[n]=r.getOtherTargetXs():S(o.data_xs)&&(r.data.xs[n]=r.getXValuesOfXKey(i,r.data.targets)):r.data.xs[n]=e.map(function(e,t){return t})}),i.forEach(function(e){if(!r.data.xs[e])throw new Error('x is not defined for id = "'+e+'".')}),n=i.map(function(t,n){var i=o.data_idConverter(t);return{id:i,id_org:t,values:e.map(function(e,a){var s,u=r.getXKey(t),c=e[u],l=null===e[t]||isNaN(e[t])?null:+e[t];return r.isCustomX()&&r.isCategorized()&&0===n&&!_(c)?(0===n&&0===a&&(o.axis_x_categories=[]),s=o.axis_x_categories.indexOf(c),s===-1&&(s=o.axis_x_categories.length,o.axis_x_categories.push(c))):s=r.generateTargetX(c,t,a),(_(e[t])||r.data.xs[t].length<=a)&&(s=void 0),{x:s,value:l,id:i}}).filter(function(e){return b(e.x)})}}),n.forEach(function(e){var t;o.data_xSort&&(e.values=e.values.sort(function(e,t){var n=e.x||0===e.x?e.x:1/0,r=t.x||0===t.x?t.x:1/0;return n-r})),t=0,e.values.forEach(function(e){e.index=t++}),r.data.xs[e.id].sort(function(e,t){return e-t})}),r.hasNegativeValue=r.hasNegativeValueInTargets(n),r.hasPositiveValue=r.hasPositiveValueInTargets(n),o.data_type&&r.setTargetType(r.mapToIds(n).filter(function(e){return!(e in o.data_types)}),o.data_type),n.forEach(function(e){r.addCache(e.id_org,e)}),n},f.load=function(e,t){var n=this;e&&(t.filter&&(e=e.filter(t.filter)),(t.type||t.types)&&e.forEach(function(e){var r=t.types&&t.types[e.id]?t.types[e.id]:t.type;n.setTargetType(e.id,r)}),n.data.targets.forEach(function(t){for(var n=0;n<e.length;n++)if(t.id===e[n].id){t.values=e[n].values,e.splice(n,1);break}}),n.data.targets=n.data.targets.concat(e)),n.updateTargets(n.data.targets),n.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),t.done&&t.done()},f.loadFromArgs=function(e){var t=this;e.data?t.load(t.convertDataToTargets(e.data),e):e.url?t.convertUrlToData(e.url,e.mimeType,e.headers,e.keys,function(n){t.load(t.convertDataToTargets(n),e)}):e.json?t.load(t.convertDataToTargets(t.convertJsonToData(e.json,e.keys)),e):e.rows?t.load(t.convertDataToTargets(t.convertRowsToData(e.rows)),e):e.columns?t.load(t.convertDataToTargets(t.convertColumnsToData(e.columns)),e):t.load(null,e)},f.unload=function(e,t){var n=this;return t||(t=function(){}),e=e.filter(function(e){return n.hasTarget(n.data.targets,e)}),e&&0!==e.length?(n.svg.selectAll(e.map(function(e){return n.selectorTarget(e)})).transition().style("opacity",0).remove().call(n.endall,t),void e.forEach(function(e){n.withoutFadeIn[e]=!1,n.legend&&n.legend.selectAll("."+g.legendItem+n.getTargetSelectorSuffix(e)).remove(),n.data.targets=n.data.targets.filter(function(t){return t.id!==e})})):void t()},f.categoryName=function(e){var t=this.config;return e<t.axis_x_categories.length?t.axis_x_categories[e]:e},f.initEventRect=function(){var e=this;e.main.select("."+g.chart).append("g").attr("class",g.eventRects).style("fill-opacity",0)},f.redrawEventRect=function(){var e,t,n=this,r=n.config,o=n.isMultipleX(),i=n.main.select("."+g.eventRects).style("cursor",r.zoom_enabled?r.axis_rotated?"ns-resize":"ew-resize":null).classed(g.eventRectsMultiple,o).classed(g.eventRectsSingle,!o);i.selectAll("."+g.eventRect).remove(),n.eventRect=i.selectAll("."+g.eventRect),o?(e=n.eventRect.data([0]),n.generateEventRectsForMultipleXs(e.enter()),n.updateEventRect(e)):(t=n.getMaxDataCountTarget(n.data.targets),i.datum(t?t.values:[]),n.eventRect=i.selectAll("."+g.eventRect),e=n.eventRect.data(function(e){return e}),n.generateEventRectsForSingleX(e.enter()),n.updateEventRect(e),e.exit().remove())},f.updateEventRect=function(e){var t,n,r,o,i,a,s=this,u=s.config;e=e||s.eventRect.data(function(e){return e}),s.isMultipleX()?(t=0,n=0,r=s.width,o=s.height):(!s.isCustomX()&&!s.isTimeSeries()||s.isCategorized()?(i=s.getEventRectWidth(),a=function(e){return s.x(e.x)-i/2}):(s.updateXs(),i=function(e){var t=s.getPrevX(e.index),n=s.getNextX(e.index);return null===t&&null===n?u.axis_rotated?s.height:s.width:(null===t&&(t=s.x.domain()[0]),null===n&&(n=s.x.domain()[1]),Math.max(0,(s.x(n)-s.x(t))/2))},a=function(e){var t=s.getPrevX(e.index),n=s.getNextX(e.index),r=s.data.xs[e.id][e.index];return null===t&&null===n?0:(null===t&&(t=s.x.domain()[0]),(s.x(r)+s.x(t))/2)}),t=u.axis_rotated?0:a,n=u.axis_rotated?a:0,r=u.axis_rotated?s.width:i,o=u.axis_rotated?i:s.height),e.attr("class",s.classEvent.bind(s)).attr("x",t).attr("y",n).attr("width",r).attr("height",o)},f.generateEventRectsForSingleX=function(e){var t=this,n=t.d3,r=t.config;e.append("rect").attr("class",t.classEvent.bind(t)).style("cursor",r.data_selection_enabled&&r.data_selection_grouped?"pointer":null).on("mouseover",function(e){var n=e.index;t.dragging||t.flowing||t.hasArcType()||(r.point_focus_expand_enabled&&t.expandCircles(n,null,!0),t.expandBars(n,null,!0),t.main.selectAll("."+g.shape+"-"+n).each(function(e){r.data_onmouseover.call(t.api,e)}))}).on("mouseout",function(e){var n=e.index;t.config&&(t.hasArcType()||(t.hideXGridFocus(),t.hideTooltip(),t.unexpandCircles(),t.unexpandBars(),t.main.selectAll("."+g.shape+"-"+n).each(function(e){r.data_onmouseout.call(t.api,e)})))}).on("mousemove",function(e){var o,i=e.index,a=t.svg.select("."+g.eventRect+"-"+i);t.dragging||t.flowing||t.hasArcType()||(t.isStepType(e)&&"step-after"===t.config.line_step_type&&n.mouse(this)[0]<t.x(t.getXValue(e.id,i))&&(i-=1),o=t.filterTargetsToShow(t.data.targets).map(function(e){return t.addName(t.getValueOnIndex(e.values,i))}),r.tooltip_grouped&&(t.showTooltip(o,this),t.showXGridFocus(o)),(!r.tooltip_grouped||r.data_selection_enabled&&!r.data_selection_grouped)&&t.main.selectAll("."+g.shape+"-"+i).each(function(){n.select(this).classed(g.EXPANDED,!0),r.data_selection_enabled&&a.style("cursor",r.data_selection_grouped?"pointer":null),r.tooltip_grouped||(t.hideXGridFocus(),t.hideTooltip(),r.data_selection_grouped||(t.unexpandCircles(i),t.unexpandBars(i)))}).filter(function(e){return t.isWithinShape(this,e)}).each(function(e){r.data_selection_enabled&&(r.data_selection_grouped||r.data_selection_isselectable(e))&&a.style("cursor","pointer"),r.tooltip_grouped||(t.showTooltip([e],this),t.showXGridFocus([e]),r.point_focus_expand_enabled&&t.expandCircles(i,e.id,!0),t.expandBars(i,e.id,!0))}))}).on("click",function(e){var o=e.index;if(!t.hasArcType()&&t.toggleShape){if(t.cancelClick)return void(t.cancelClick=!1);
11
- t.isStepType(e)&&"step-after"===r.line_step_type&&n.mouse(this)[0]<t.x(t.getXValue(e.id,o))&&(o-=1),t.main.selectAll("."+g.shape+"-"+o).each(function(e){(r.data_selection_grouped||t.isWithinShape(this,e))&&(t.toggleShape(this,e,o),t.config.data_onclick.call(t.api,e,this))})}}).call(r.data_selection_draggable&&t.drag?n.behavior.drag().origin(Object).on("drag",function(){t.drag(n.mouse(this))}).on("dragstart",function(){t.dragstart(n.mouse(this))}).on("dragend",function(){t.dragend()}):function(){})},f.generateEventRectsForMultipleXs=function(e){function t(){n.svg.select("."+g.eventRect).style("cursor",null),n.hideXGridFocus(),n.hideTooltip(),n.unexpandCircles(),n.unexpandBars()}var n=this,r=n.d3,o=n.config;e.append("rect").attr("x",0).attr("y",0).attr("width",n.width).attr("height",n.height).attr("class",g.eventRect).on("mouseout",function(){n.config&&(n.hasArcType()||t())}).on("mousemove",function(){var e,i,a,s,u=n.filterTargetsToShow(n.data.targets);if(!n.dragging&&!n.hasArcType(u)){if(e=r.mouse(this),i=n.findClosestFromTargets(u,e),!n.mouseover||i&&i.id===n.mouseover.id||(o.data_onmouseout.call(n.api,n.mouseover),n.mouseover=void 0),!i)return void t();a=n.isScatterType(i)||!o.tooltip_grouped?[i]:n.filterByX(u,i.x),s=a.map(function(e){return n.addName(e)}),n.showTooltip(s,this),o.point_focus_expand_enabled&&n.expandCircles(i.index,i.id,!0),n.expandBars(i.index,i.id,!0),n.showXGridFocus(s),(n.isBarType(i.id)||n.dist(i,e)<o.point_sensitivity)&&(n.svg.select("."+g.eventRect).style("cursor","pointer"),n.mouseover||(o.data_onmouseover.call(n.api,i),n.mouseover=i))}}).on("click",function(){var e,t,i=n.filterTargetsToShow(n.data.targets);n.hasArcType(i)||(e=r.mouse(this),t=n.findClosestFromTargets(i,e),t&&(n.isBarType(t.id)||n.dist(t,e)<o.point_sensitivity)&&n.main.selectAll("."+g.shapes+n.getTargetSelectorSuffix(t.id)).selectAll("."+g.shape+"-"+t.index).each(function(){(o.data_selection_grouped||n.isWithinShape(this,t))&&(n.toggleShape(this,t,t.index),n.config.data_onclick.call(n.api,t,this))}))}).call(o.data_selection_draggable&&n.drag?r.behavior.drag().origin(Object).on("drag",function(){n.drag(r.mouse(this))}).on("dragstart",function(){n.dragstart(r.mouse(this))}).on("dragend",function(){n.dragend()}):function(){})},f.dispatchEvent=function(e,t,n){var r=this,i="."+g.eventRect+(r.isMultipleX()?"":"-"+t),a=r.main.select(i).node(),s=a.getBoundingClientRect(),u=s.left+(n?n[0]:0),c=s.top+(n?n[1]:0),l=document.createEvent("MouseEvents");l.initMouseEvent(e,!0,!0,o,0,u,c,u,c,!1,!1,!1,!1,0,null),a.dispatchEvent(l)},f.getCurrentWidth=function(){var e=this,t=e.config;return t.size_width?t.size_width:e.getParentWidth()},f.getCurrentHeight=function(){var e=this,t=e.config,n=t.size_height?t.size_height:e.getParentHeight();return n>0?n:320/(e.hasType("gauge")&&!t.gauge_fullCircle?2:1)},f.getCurrentPaddingTop=function(){var e=this,t=e.config,n=m(t.padding_top)?t.padding_top:0;return e.title&&e.title.node()&&(n+=e.getTitlePadding()),n},f.getCurrentPaddingBottom=function(){var e=this.config;return m(e.padding_bottom)?e.padding_bottom:0},f.getCurrentPaddingLeft=function(e){var t=this,n=t.config;return m(n.padding_left)?n.padding_left:n.axis_rotated?n.axis_x_show?Math.max(E(t.getAxisWidthByAxisId("x",e)),40):1:!n.axis_y_show||n.axis_y_inner?t.axis.getYAxisLabelPosition().isOuter?30:1:E(t.getAxisWidthByAxisId("y",e))},f.getCurrentPaddingRight=function(){var e=this,t=e.config,n=10,r=e.isLegendRight?e.getLegendWidth()+20:0;return m(t.padding_right)?t.padding_right+1:t.axis_rotated?n+r:!t.axis_y2_show||t.axis_y2_inner?2+r+(e.axis.getY2AxisLabelPosition().isOuter?20:0):E(e.getAxisWidthByAxisId("y2"))+r},f.getParentRectValue=function(e){for(var t,n=this.selectChart.node();n&&"BODY"!==n.tagName;){try{t=n.getBoundingClientRect()[e]}catch(r){"width"===e&&(t=n.offsetWidth)}if(t)break;n=n.parentNode}return t},f.getParentWidth=function(){return this.getParentRectValue("width")},f.getParentHeight=function(){var e=this.selectChart.style("height");return e.indexOf("px")>0?+e.replace("px",""):0},f.getSvgLeft=function(e){var t=this,n=t.config,r=n.axis_rotated||!n.axis_rotated&&!n.axis_y_inner,o=n.axis_rotated?g.axisX:g.axisY,i=t.main.select("."+o).node(),a=i&&r?i.getBoundingClientRect():{right:0},s=t.selectChart.node().getBoundingClientRect(),u=t.hasArcType(),c=a.right-s.left-(u?0:t.getCurrentPaddingLeft(e));return c>0?c:0},f.getAxisWidthByAxisId=function(e,t){var n=this,r=n.axis.getLabelPositionById(e);return n.axis.getMaxTickWidth(e,t)+(r.isInner?20:40)},f.getHorizontalAxisHeight=function(e){var t=this,n=t.config,r=30;return"x"!==e||n.axis_x_show?"x"===e&&n.axis_x_height?n.axis_x_height:"y"!==e||n.axis_y_show?"y2"!==e||n.axis_y2_show?("x"===e&&!n.axis_rotated&&n.axis_x_tick_rotate&&(r=30+t.axis.getMaxTickWidth(e)*Math.cos(Math.PI*(90-n.axis_x_tick_rotate)/180)),"y"===e&&n.axis_rotated&&n.axis_y_tick_rotate&&(r=30+t.axis.getMaxTickWidth(e)*Math.cos(Math.PI*(90-n.axis_y_tick_rotate)/180)),r+(t.axis.getLabelPositionById(e).isInner?0:10)+("y2"===e?-10:0)):t.rotated_padding_top:!n.legend_show||t.isLegendRight||t.isLegendInset?1:10:8},f.getEventRectWidth=function(){return Math.max(0,this.xAxis.tickInterval())},f.getShapeIndices=function(e){var t,n,r=this,o=r.config,i={},a=0;return r.filterTargetsToShow(r.data.targets.filter(e,r)).forEach(function(e){for(t=0;t<o.data_groups.length;t++)if(!(o.data_groups[t].indexOf(e.id)<0))for(n=0;n<o.data_groups[t].length;n++)if(o.data_groups[t][n]in i){i[e.id]=i[o.data_groups[t][n]];break}_(i[e.id])&&(i[e.id]=a++)}),i.__max__=a-1,i},f.getShapeX=function(e,t,n,r){var o=this,i=r?o.subX:o.x;return function(r){var o=r.id in n?n[r.id]:0;return r.x||0===r.x?i(r.x)-e*(t/2-o):0}},f.getShapeY=function(e){var t=this;return function(n){var r=e?t.getSubYScale(n.id):t.getYScale(n.id);return r(n.value)}},f.getShapeOffset=function(e,t,n){var r=this,o=r.orderTargets(r.filterTargetsToShow(r.data.targets.filter(e,r))),i=o.map(function(e){return e.id});return function(e,a){var s=n?r.getSubYScale(e.id):r.getYScale(e.id),u=s(0),c=u;return o.forEach(function(n){var o=r.isStepType(e)?r.convertValuesToStep(n.values):n.values;n.id!==e.id&&t[n.id]===t[e.id]&&i.indexOf(n.id)<i.indexOf(e.id)&&("undefined"!=typeof o[a]&&+o[a].x===+e.x||(a=-1,o.forEach(function(t,n){t.x===e.x&&(a=n)})),a in o&&o[a].value*e.value>=0&&(c+=s(o[a].value)-u))}),c}},f.isWithinShape=function(e,t){var n,r=this,o=r.d3.select(e);return r.isTargetToShow(t.id)?"circle"===e.nodeName?n=r.isStepType(t)?r.isWithinStep(e,r.getYScale(t.id)(t.value)):r.isWithinCircle(e,1.5*r.pointSelectR(t)):"path"===e.nodeName&&(n=!o.classed(g.bar)||r.isWithinBar(e)):n=!1,n},f.getInterpolate=function(e){var t=this,n=t.isInterpolationType(t.config.spline_interpolation_type)?t.config.spline_interpolation_type:"cardinal";return t.isSplineType(e)?n:t.isStepType(e)?t.config.line_step_type:"linear"},f.initLine=function(){var e=this;e.main.select("."+g.chart).append("g").attr("class",g.chartLines)},f.updateTargetsForLine=function(e){var t,n,r=this,o=r.config,i=r.classChartLine.bind(r),a=r.classLines.bind(r),s=r.classAreas.bind(r),u=r.classCircles.bind(r),c=r.classFocus.bind(r);t=r.main.select("."+g.chartLines).selectAll("."+g.chartLine).data(e).attr("class",function(e){return i(e)+c(e)}),n=t.enter().append("g").attr("class",i).style("opacity",0).style("pointer-events","none"),n.append("g").attr("class",a),n.append("g").attr("class",s),n.append("g").attr("class",function(e){return r.generateClass(g.selectedCircles,e.id)}),n.append("g").attr("class",u).style("cursor",function(e){return o.data_selection_isselectable(e)?"pointer":null}),e.forEach(function(e){r.main.selectAll("."+g.selectedCircles+r.getTargetSelectorSuffix(e.id)).selectAll("."+g.selectedCircle).each(function(t){t.value=e.values[t.index].value})})},f.updateLine=function(e){var t=this;t.mainLine=t.main.selectAll("."+g.lines).selectAll("."+g.line).data(t.lineData.bind(t)),t.mainLine.enter().append("path").attr("class",t.classLine.bind(t)).style("stroke",t.color),t.mainLine.style("opacity",t.initialOpacity.bind(t)).style("shape-rendering",function(e){return t.isStepType(e)?"crispEdges":""}).attr("transform",null),t.mainLine.exit().transition().duration(e).style("opacity",0).remove()},f.redrawLine=function(e,t){return[(t?this.mainLine.transition(Math.random().toString()):this.mainLine).attr("d",e).style("stroke",this.color).style("opacity",1)]},f.generateDrawLine=function(e,t){var n=this,r=n.config,o=n.d3.svg.line(),i=n.generateGetLinePoints(e,t),a=t?n.getSubYScale:n.getYScale,s=function(e){return(t?n.subxx:n.xx).call(n,e)},u=function(e,t){return r.data_groups.length>0?i(e,t)[0][1]:a.call(n,e.id)(e.value)};return o=r.axis_rotated?o.x(u).y(s):o.x(s).y(u),r.line_connectNull||(o=o.defined(function(e){return null!=e.value})),function(e){var i,s=r.line_connectNull?n.filterRemoveNull(e.values):e.values,u=t?n.x:n.subX,c=a.call(n,e.id),l=0,p=0;return n.isLineType(e)?r.data_regions[e.id]?i=n.lineWithRegions(s,u,c,r.data_regions[e.id]):(n.isStepType(e)&&(s=n.convertValuesToStep(s)),i=o.interpolate(n.getInterpolate(e))(s)):(s[0]&&(l=u(s[0].x),p=c(s[0].value)),i=r.axis_rotated?"M "+p+" "+l:"M "+l+" "+p),i?i:"M 0 0"}},f.generateGetLinePoints=function(e,t){var n=this,r=n.config,o=e.__max__+1,i=n.getShapeX(0,o,e,!!t),a=n.getShapeY(!!t),s=n.getShapeOffset(n.isLineType,e,!!t),u=t?n.getSubYScale:n.getYScale;return function(e,t){var o=u.call(n,e.id)(0),c=s(e,t)||o,l=i(e),p=a(e);return r.axis_rotated&&(0<e.value&&p<o||e.value<0&&o<p)&&(p=o),[[l,p-(o-c)],[l,p-(o-c)],[l,p-(o-c)],[l,p-(o-c)]]}},f.lineWithRegions=function(e,t,n,r){function o(e,t){var n;for(n=0;n<t.length;n++)if(t[n].start<e&&e<=t[n].end)return!0;return!1}function i(e){return"M"+e[0][0]+" "+e[0][1]+" "+e[1][0]+" "+e[1][1]}var a,s,u,c,l,p,f,d,h,g,m,y,v=this,E=v.config,x=-1,C="M",w=v.isCategorized()?.5:0,S=[];if(b(r))for(a=0;a<r.length;a++)S[a]={},_(r[a].start)?S[a].start=e[0].x:S[a].start=v.isTimeSeries()?v.parseDate(r[a].start):r[a].start,_(r[a].end)?S[a].end=e[e.length-1].x:S[a].end=v.isTimeSeries()?v.parseDate(r[a].end):r[a].end;for(m=E.axis_rotated?function(e){return n(e.value)}:function(e){return t(e.x)},y=E.axis_rotated?function(e){return t(e.x)}:function(e){return n(e.value)},u=v.isTimeSeries()?function(e,r,o,a){var s,u=e.x.getTime(),c=r.x-e.x,p=new Date(u+c*o),f=new Date(u+c*(o+a));return s=E.axis_rotated?[[n(l(o)),t(p)],[n(l(o+a)),t(f)]]:[[t(p),n(l(o))],[t(f),n(l(o+a))]],i(s)}:function(e,r,o,a){var s;return s=E.axis_rotated?[[n(l(o),!0),t(c(o))],[n(l(o+a),!0),t(c(o+a))]]:[[t(c(o),!0),n(l(o))],[t(c(o+a),!0),n(l(o+a))]],i(s)},a=0;a<e.length;a++){if(_(S)||!o(e[a].x,S))C+=" "+m(e[a])+" "+y(e[a]);else for(c=v.getScale(e[a-1].x+w,e[a].x+w,v.isTimeSeries()),l=v.getScale(e[a-1].value,e[a].value),p=t(e[a].x)-t(e[a-1].x),f=n(e[a].value)-n(e[a-1].value),d=Math.sqrt(Math.pow(p,2)+Math.pow(f,2)),h=2/d,g=2*h,s=h;s<=1;s+=g)C+=u(e[a-1],e[a],s,h);x=e[a].x}return C},f.updateArea=function(e){var t=this,n=t.d3;t.mainArea=t.main.selectAll("."+g.areas).selectAll("."+g.area).data(t.lineData.bind(t)),t.mainArea.enter().append("path").attr("class",t.classArea.bind(t)).style("fill",t.color).style("opacity",function(){return t.orgAreaOpacity=+n.select(this).style("opacity"),0}),t.mainArea.style("opacity",t.orgAreaOpacity),t.mainArea.exit().transition().duration(e).style("opacity",0).remove()},f.redrawArea=function(e,t){return[(t?this.mainArea.transition(Math.random().toString()):this.mainArea).attr("d",e).style("fill",this.color).style("opacity",this.orgAreaOpacity)]},f.generateDrawArea=function(e,t){var n=this,r=n.config,o=n.d3.svg.area(),i=n.generateGetAreaPoints(e,t),a=t?n.getSubYScale:n.getYScale,s=function(e){return(t?n.subxx:n.xx).call(n,e)},u=function(e,t){return r.data_groups.length>0?i(e,t)[0][1]:a.call(n,e.id)(n.getAreaBaseValue(e.id))},c=function(e,t){return r.data_groups.length>0?i(e,t)[1][1]:a.call(n,e.id)(e.value)};return o=r.axis_rotated?o.x0(u).x1(c).y(s):o.x(s).y0(r.area_above?0:u).y1(c),r.line_connectNull||(o=o.defined(function(e){return null!==e.value})),function(e){var t,i=r.line_connectNull?n.filterRemoveNull(e.values):e.values,a=0,s=0;return n.isAreaType(e)?(n.isStepType(e)&&(i=n.convertValuesToStep(i)),t=o.interpolate(n.getInterpolate(e))(i)):(i[0]&&(a=n.x(i[0].x),s=n.getYScale(e.id)(i[0].value)),t=r.axis_rotated?"M "+s+" "+a:"M "+a+" "+s),t?t:"M 0 0"}},f.getAreaBaseValue=function(){return 0},f.generateGetAreaPoints=function(e,t){var n=this,r=n.config,o=e.__max__+1,i=n.getShapeX(0,o,e,!!t),a=n.getShapeY(!!t),s=n.getShapeOffset(n.isAreaType,e,!!t),u=t?n.getSubYScale:n.getYScale;return function(e,t){var o=u.call(n,e.id)(0),c=s(e,t)||o,l=i(e),p=a(e);return r.axis_rotated&&(0<e.value&&p<o||e.value<0&&o<p)&&(p=o),[[l,c],[l,p-(o-c)],[l,p-(o-c)],[l,c]]}},f.updateCircle=function(){var e=this;e.mainCircle=e.main.selectAll("."+g.circles).selectAll("."+g.circle).data(e.lineOrScatterData.bind(e)),e.mainCircle.enter().append("circle").attr("class",e.classCircle.bind(e)).attr("r",e.pointR.bind(e)).style("fill",e.color),e.mainCircle.style("opacity",e.initialOpacityForCircle.bind(e)),e.mainCircle.exit().remove()},f.redrawCircle=function(e,t,n){var r=this.main.selectAll("."+g.selectedCircle);return[(n?this.mainCircle.transition(Math.random().toString()):this.mainCircle).style("opacity",this.opacityForCircle.bind(this)).style("fill",this.color).attr("cx",e).attr("cy",t),(n?r.transition(Math.random().toString()):r).attr("cx",e).attr("cy",t)]},f.circleX=function(e){return e.x||0===e.x?this.x(e.x):null},f.updateCircleY=function(){var e,t,n=this;n.config.data_groups.length>0?(e=n.getShapeIndices(n.isLineType),t=n.generateGetLinePoints(e),n.circleY=function(e,n){return t(e,n)[0][1]}):n.circleY=function(e){return n.getYScale(e.id)(e.value)}},f.getCircles=function(e,t){var n=this;return(t?n.main.selectAll("."+g.circles+n.getTargetSelectorSuffix(t)):n.main).selectAll("."+g.circle+(m(e)?"-"+e:""))},f.expandCircles=function(e,t,n){var r=this,o=r.pointExpandedR.bind(r);n&&r.unexpandCircles(),r.getCircles(e,t).classed(g.EXPANDED,!0).attr("r",o)},f.unexpandCircles=function(e){var t=this,n=t.pointR.bind(t);t.getCircles(e).filter(function(){return t.d3.select(this).classed(g.EXPANDED)}).classed(g.EXPANDED,!1).attr("r",n)},f.pointR=function(e){var t=this,n=t.config;return t.isStepType(e)?0:y(n.point_r)?n.point_r(e):n.point_r},f.pointExpandedR=function(e){var t=this,n=t.config;return n.point_focus_expand_enabled?n.point_focus_expand_r?n.point_focus_expand_r:1.75*t.pointR(e):t.pointR(e)},f.pointSelectR=function(e){var t=this,n=t.config;return y(n.point_select_r)?n.point_select_r(e):n.point_select_r?n.point_select_r:4*t.pointR(e)},f.isWithinCircle=function(e,t){var n=this.d3,r=n.mouse(e),o=n.select(e),i=+o.attr("cx"),a=+o.attr("cy");return Math.sqrt(Math.pow(i-r[0],2)+Math.pow(a-r[1],2))<t},f.isWithinStep=function(e,t){return Math.abs(t-this.d3.mouse(e)[1])<30},f.initBar=function(){var e=this;e.main.select("."+g.chart).append("g").attr("class",g.chartBars)},f.updateTargetsForBar=function(e){var t,n,r=this,o=r.config,i=r.classChartBar.bind(r),a=r.classBars.bind(r),s=r.classFocus.bind(r);t=r.main.select("."+g.chartBars).selectAll("."+g.chartBar).data(e).attr("class",function(e){return i(e)+s(e)}),n=t.enter().append("g").attr("class",i).style("opacity",0).style("pointer-events","none"),n.append("g").attr("class",a).style("cursor",function(e){return o.data_selection_isselectable(e)?"pointer":null})},f.updateBar=function(e){var t=this,n=t.barData.bind(t),r=t.classBar.bind(t),o=t.initialOpacity.bind(t),i=function(e){return t.color(e.id)};t.mainBar=t.main.selectAll("."+g.bars).selectAll("."+g.bar).data(n),t.mainBar.enter().append("path").attr("class",r).style("stroke",i).style("fill",i),t.mainBar.style("opacity",o),t.mainBar.exit().transition().duration(e).style("opacity",0).remove()},f.redrawBar=function(e,t){return[(t?this.mainBar.transition(Math.random().toString()):this.mainBar).attr("d",e).style("fill",this.color).style("opacity",1)]},f.getBarW=function(e,t){var n=this,r=n.config,o="number"==typeof r.bar_width?r.bar_width:t?e.tickInterval()*r.bar_width_ratio/t:0;return r.bar_width_max&&o>r.bar_width_max?r.bar_width_max:o},f.getBars=function(e,t){var n=this;return(t?n.main.selectAll("."+g.bars+n.getTargetSelectorSuffix(t)):n.main).selectAll("."+g.bar+(m(e)?"-"+e:""))},f.expandBars=function(e,t,n){var r=this;n&&r.unexpandBars(),r.getBars(e,t).classed(g.EXPANDED,!0)},f.unexpandBars=function(e){var t=this;t.getBars(e).classed(g.EXPANDED,!1)},f.generateDrawBar=function(e,t){var n=this,r=n.config,o=n.generateGetBarPoints(e,t);return function(e,t){var n=o(e,t),i=r.axis_rotated?1:0,a=r.axis_rotated?0:1,s="M "+n[0][i]+","+n[0][a]+" L"+n[1][i]+","+n[1][a]+" L"+n[2][i]+","+n[2][a]+" L"+n[3][i]+","+n[3][a]+" z";return s}},f.generateGetBarPoints=function(e,t){var n=this,r=t?n.subXAxis:n.xAxis,o=e.__max__+1,i=n.getBarW(r,o),a=n.getShapeX(i,o,e,!!t),s=n.getShapeY(!!t),u=n.getShapeOffset(n.isBarType,e,!!t),c=t?n.getSubYScale:n.getYScale;return function(e,t){var r=c.call(n,e.id)(0),o=u(e,t)||r,l=a(e),p=s(e);return n.config.axis_rotated&&(0<e.value&&p<r||e.value<0&&r<p)&&(p=r),[[l,o],[l,p-(r-o)],[l+i,p-(r-o)],[l+i,o]]}},f.isWithinBar=function(e){var t=this.d3.mouse(e),n=e.getBoundingClientRect(),r=e.pathSegList.getItem(0),o=e.pathSegList.getItem(1),i=Math.min(r.x,o.x),a=Math.min(r.y,o.y),s=n.width,u=n.height,c=2,l=i-c,p=i+s+c,f=a+u+c,d=a-c;return l<t[0]&&t[0]<p&&d<t[1]&&t[1]<f},f.initText=function(){var e=this;e.main.select("."+g.chart).append("g").attr("class",g.chartTexts),e.mainText=e.d3.selectAll([])},f.updateTargetsForText=function(e){var t,n,r=this,o=r.classChartText.bind(r),i=r.classTexts.bind(r),a=r.classFocus.bind(r);t=r.main.select("."+g.chartTexts).selectAll("."+g.chartText).data(e).attr("class",function(e){return o(e)+a(e)}),n=t.enter().append("g").attr("class",o).style("opacity",0).style("pointer-events","none"),n.append("g").attr("class",i)},f.updateText=function(e){var t=this,n=t.config,r=t.barOrLineData.bind(t),o=t.classText.bind(t);t.mainText=t.main.selectAll("."+g.texts).selectAll("."+g.text).data(r),t.mainText.enter().append("text").attr("class",o).attr("text-anchor",function(e){return n.axis_rotated?e.value<0?"end":"start":"middle"}).style("stroke","none").style("fill",function(e){return t.color(e)}).style("fill-opacity",0),t.mainText.text(function(e,n,r){return t.dataLabelFormat(e.id)(e.value,e.id,n,r)}),t.mainText.exit().transition().duration(e).style("fill-opacity",0).remove()},f.redrawText=function(e,t,n,r){return[(r?this.mainText.transition():this.mainText).attr("x",e).attr("y",t).style("fill",this.color).style("fill-opacity",n?0:this.opacityForText.bind(this))]},f.getTextRect=function(e,t,n){var r,o=this.d3.select("body").append("div").classed("c3",!0),i=o.append("svg").style("visibility","hidden").style("position","fixed").style("top",0).style("left",0),a=this.d3.select(n).style("font");return i.selectAll(".dummy").data([e]).enter().append("text").classed(t?t:"",!0).style("font",a).text(e).each(function(){r=this.getBoundingClientRect()}),o.remove(),r},f.generateXYForText=function(e,t,n,r){var o=this,i=o.generateGetAreaPoints(e,!1),a=o.generateGetBarPoints(t,!1),s=o.generateGetLinePoints(n,!1),u=r?o.getXForText:o.getYForText;return function(e,t){var n=o.isAreaType(e)?i:o.isBarType(e)?a:s;return u.call(o,n(e,t),e,this)}},f.getXForText=function(e,t,n){var r,o,i=this,a=n.getBoundingClientRect();return i.config.axis_rotated?(o=i.isBarType(t)?4:6,r=e[2][1]+o*(t.value<0?-1:1)):r=i.hasType("bar")?(e[2][0]+e[0][0])/2:e[0][0],null===t.value&&(r>i.width?r=i.width-a.width:r<0&&(r=4)),r},f.getYForText=function(e,t,n){var r,o=this,i=n.getBoundingClientRect();return o.config.axis_rotated?r=(e[0][0]+e[2][0]+.6*i.height)/2:(r=e[2][1],t.value<0||0===t.value&&!o.hasPositiveValue?(r+=i.height,o.isBarType(t)&&o.isSafari()?r-=3:!o.isBarType(t)&&o.isChrome()&&(r+=3)):r+=o.isBarType(t)?-3:-6),null!==t.value||o.config.axis_rotated||(r<i.height?r=i.height:r>this.height&&(r=this.height-4)),r},f.setTargetType=function(e,t){var n=this,r=n.config;n.mapToTargetIds(e).forEach(function(e){n.withoutFadeIn[e]=t===r.data_types[e],r.data_types[e]=t}),e||(r.data_type=t)},f.hasType=function(e,t){var n=this,r=n.config.data_types,o=!1;return t=t||n.data.targets,t&&t.length?t.forEach(function(t){var n=r[t.id];(n&&n.indexOf(e)>=0||!n&&"line"===e)&&(o=!0)}):Object.keys(r).length?Object.keys(r).forEach(function(t){r[t]===e&&(o=!0)}):o=n.config.data_type===e,o},f.hasArcType=function(e){return this.hasType("pie",e)||this.hasType("donut",e)||this.hasType("gauge",e)},f.isLineType=function(e){var t=this.config,n=v(e)?e:e.id;return!t.data_types[n]||["line","spline","area","area-spline","step","area-step"].indexOf(t.data_types[n])>=0},f.isStepType=function(e){var t=v(e)?e:e.id;return["step","area-step"].indexOf(this.config.data_types[t])>=0},f.isSplineType=function(e){var t=v(e)?e:e.id;return["spline","area-spline"].indexOf(this.config.data_types[t])>=0},f.isAreaType=function(e){var t=v(e)?e:e.id;return["area","area-spline","area-step"].indexOf(this.config.data_types[t])>=0},f.isBarType=function(e){var t=v(e)?e:e.id;return"bar"===this.config.data_types[t]},f.isScatterType=function(e){var t=v(e)?e:e.id;return"scatter"===this.config.data_types[t]},f.isPieType=function(e){var t=v(e)?e:e.id;return"pie"===this.config.data_types[t]},f.isGaugeType=function(e){var t=v(e)?e:e.id;return"gauge"===this.config.data_types[t]},f.isDonutType=function(e){var t=v(e)?e:e.id;return"donut"===this.config.data_types[t]},f.isArcType=function(e){return this.isPieType(e)||this.isDonutType(e)||this.isGaugeType(e)},f.lineData=function(e){return this.isLineType(e)?[e]:[]},f.arcData=function(e){return this.isArcType(e.data)?[e]:[]},f.barData=function(e){return this.isBarType(e)?e.values:[]},f.lineOrScatterData=function(e){return this.isLineType(e)||this.isScatterType(e)?e.values:[]},f.barOrLineData=function(e){return this.isBarType(e)||this.isLineType(e)?e.values:[]},f.isInterpolationType=function(e){return["linear","linear-closed","basis","basis-open","basis-closed","bundle","cardinal","cardinal-open","cardinal-closed","monotone"].indexOf(e)>=0},f.initGrid=function(){var e=this,t=e.config,n=e.d3;e.grid=e.main.append("g").attr("clip-path",e.clipPathForGrid).attr("class",g.grid),t.grid_x_show&&e.grid.append("g").attr("class",g.xgrids),t.grid_y_show&&e.grid.append("g").attr("class",g.ygrids),t.grid_focus_show&&e.grid.append("g").attr("class",g.xgridFocus).append("line").attr("class",g.xgridFocus),e.xgrid=n.selectAll([]),t.grid_lines_front||e.initGridLines()},f.initGridLines=function(){var e=this,t=e.d3;e.gridLines=e.main.append("g").attr("clip-path",e.clipPathForGrid).attr("class",g.grid+" "+g.gridLines),e.gridLines.append("g").attr("class",g.xgridLines),e.gridLines.append("g").attr("class",g.ygridLines),e.xgridLines=t.selectAll([])},f.updateXGrid=function(e){var t=this,n=t.config,r=t.d3,o=t.generateGridData(n.grid_x_type,t.x),i=t.isCategorized()?t.xAxis.tickOffset():0;t.xgridAttr=n.axis_rotated?{x1:0,x2:t.width,y1:function(e){return t.x(e)-i},y2:function(e){return t.x(e)-i}}:{x1:function(e){return t.x(e)+i},x2:function(e){return t.x(e)+i},y1:0,y2:t.height},t.xgrid=t.main.select("."+g.xgrids).selectAll("."+g.xgrid).data(o),t.xgrid.enter().append("line").attr("class",g.xgrid),e||t.xgrid.attr(t.xgridAttr).style("opacity",function(){return+r.select(this).attr(n.axis_rotated?"y1":"x1")===(n.axis_rotated?t.height:0)?0:1}),t.xgrid.exit().remove()},f.updateYGrid=function(){var e=this,t=e.config,n=e.yAxis.tickValues()||e.y.ticks(t.grid_y_ticks);e.ygrid=e.main.select("."+g.ygrids).selectAll("."+g.ygrid).data(n),e.ygrid.enter().append("line").attr("class",g.ygrid),e.ygrid.attr("x1",t.axis_rotated?e.y:0).attr("x2",t.axis_rotated?e.y:e.width).attr("y1",t.axis_rotated?0:e.y).attr("y2",t.axis_rotated?e.height:e.y),e.ygrid.exit().remove(),e.smoothLines(e.ygrid,"grid")},f.gridTextAnchor=function(e){return e.position?e.position:"end"},f.gridTextDx=function(e){return"start"===e.position?4:"middle"===e.position?0:-4},f.xGridTextX=function(e){return"start"===e.position?-this.height:"middle"===e.position?-this.height/2:0},f.yGridTextX=function(e){return"start"===e.position?0:"middle"===e.position?this.width/2:this.width},f.updateGrid=function(e){var t,n,r,o=this,i=o.main,a=o.config;o.grid.style("visibility",o.hasArcType()?"hidden":"visible"),i.select("line."+g.xgridFocus).style("visibility","hidden"),a.grid_x_show&&o.updateXGrid(),o.xgridLines=i.select("."+g.xgridLines).selectAll("."+g.xgridLine).data(a.grid_x_lines),t=o.xgridLines.enter().append("g").attr("class",function(e){return g.xgridLine+(e.class?" "+e.class:"")}),t.append("line").style("opacity",0),t.append("text").attr("text-anchor",o.gridTextAnchor).attr("transform",a.axis_rotated?"":"rotate(-90)").attr("dx",o.gridTextDx).attr("dy",-5).style("opacity",0),o.xgridLines.exit().transition().duration(e).style("opacity",0).remove(),a.grid_y_show&&o.updateYGrid(),o.ygridLines=i.select("."+g.ygridLines).selectAll("."+g.ygridLine).data(a.grid_y_lines),n=o.ygridLines.enter().append("g").attr("class",function(e){return g.ygridLine+(e.class?" "+e.class:"")}),n.append("line").style("opacity",0),n.append("text").attr("text-anchor",o.gridTextAnchor).attr("transform",a.axis_rotated?"rotate(-90)":"").attr("dx",o.gridTextDx).attr("dy",-5).style("opacity",0),r=o.yv.bind(o),o.ygridLines.select("line").transition().duration(e).attr("x1",a.axis_rotated?r:0).attr("x2",a.axis_rotated?r:o.width).attr("y1",a.axis_rotated?0:r).attr("y2",a.axis_rotated?o.height:r).style("opacity",1),o.ygridLines.select("text").transition().duration(e).attr("x",a.axis_rotated?o.xGridTextX.bind(o):o.yGridTextX.bind(o)).attr("y",r).text(function(e){return e.text}).style("opacity",1),o.ygridLines.exit().transition().duration(e).style("opacity",0).remove()},f.redrawGrid=function(e){var t=this,n=t.config,r=t.xv.bind(t),o=t.xgridLines.select("line"),i=t.xgridLines.select("text");return[(e?o.transition():o).attr("x1",n.axis_rotated?0:r).attr("x2",n.axis_rotated?t.width:r).attr("y1",n.axis_rotated?r:0).attr("y2",n.axis_rotated?r:t.height).style("opacity",1),(e?i.transition():i).attr("x",n.axis_rotated?t.yGridTextX.bind(t):t.xGridTextX.bind(t)).attr("y",r).text(function(e){return e.text}).style("opacity",1)]},f.showXGridFocus=function(e){var t=this,n=t.config,r=e.filter(function(e){return e&&m(e.value)}),o=t.main.selectAll("line."+g.xgridFocus),i=t.xx.bind(t);n.tooltip_show&&(t.hasType("scatter")||t.hasArcType()||(o.style("visibility","visible").data([r[0]]).attr(n.axis_rotated?"y1":"x1",i).attr(n.axis_rotated?"y2":"x2",i),t.smoothLines(o,"grid")))},f.hideXGridFocus=function(){this.main.select("line."+g.xgridFocus).style("visibility","hidden")},f.updateXgridFocus=function(){var e=this,t=e.config;e.main.select("line."+g.xgridFocus).attr("x1",t.axis_rotated?0:-10).attr("x2",t.axis_rotated?e.width:-10).attr("y1",t.axis_rotated?-10:0).attr("y2",t.axis_rotated?-10:e.height)},f.generateGridData=function(e,t){var n,r,o,i,a=this,s=[],u=a.main.select("."+g.axisX).selectAll(".tick").size();if("year"===e)for(n=a.getXDomain(),r=n[0].getFullYear(),o=n[1].getFullYear(),i=r;i<=o;i++)s.push(new Date(i+"-01-01 00:00:00"));else s=t.ticks(10),s.length>u&&(s=s.filter(function(e){return(""+e).indexOf(".")<0}));return s},f.getGridFilterToRemove=function(e){return e?function(t){var n=!1;return[].concat(e).forEach(function(e){("value"in e&&t.value===e.value||"class"in e&&t.class===e.class)&&(n=!0)}),n}:function(){return!0}},f.removeGridLines=function(e,t){var n=this,r=n.config,o=n.getGridFilterToRemove(e),i=function(e){return!o(e)},a=t?g.xgridLines:g.ygridLines,s=t?g.xgridLine:g.ygridLine;n.main.select("."+a).selectAll("."+s).filter(o).transition().duration(r.transition_duration).style("opacity",0).remove(),t?r.grid_x_lines=r.grid_x_lines.filter(i):r.grid_y_lines=r.grid_y_lines.filter(i)},f.initTooltip=function(){var e,t=this,n=t.config;if(t.tooltip=t.selectChart.style("position","relative").append("div").attr("class",g.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none"),n.tooltip_init_show){if(t.isTimeSeries()&&v(n.tooltip_init_x)){for(n.tooltip_init_x=t.parseDate(n.tooltip_init_x),e=0;e<t.data.targets[0].values.length&&t.data.targets[0].values[e].x-n.tooltip_init_x!==0;e++);n.tooltip_init_x=e}t.tooltip.html(n.tooltip_contents.call(t,t.data.targets.map(function(e){return t.addName(e.values[n.tooltip_init_x])}),t.axis.getXAxisTickFormat(),t.getYFormat(t.hasArcType()),t.color)),t.tooltip.style("top",n.tooltip_init_position.top).style("left",n.tooltip_init_position.left).style("display","block")}},f.getTooltipContent=function(e,t,n,r){var o,i,a,s,u,c,l=this,p=l.config,f=p.tooltip_format_title||t,d=p.tooltip_format_name||function(e){return e},h=p.tooltip_format_value||n,g=l.isOrderAsc();if(0===p.data_groups.length)e.sort(function(e,t){var n=e?e.value:null,r=t?t.value:null;return g?n-r:r-n});else{var m=l.orderTargets(l.data.targets).map(function(e){return e.id});e.sort(function(e,t){var n=e?e.value:null,r=t?t.value:null;return n>0&&r>0&&(n=e?m.indexOf(e.id):null,r=t?m.indexOf(t.id):null),g?n-r:r-n})}for(i=0;i<e.length;i++)if(e[i]&&(e[i].value||0===e[i].value)&&(o||(a=P(f?f(e[i].x):e[i].x),o="<table class='"+l.CLASS.tooltip+"'>"+(a||0===a?"<tr><th colspan='2'>"+a+"</th></tr>":"")),s=P(h(e[i].value,e[i].ratio,e[i].id,e[i].index,e)),void 0!==s)){if(null===e[i].name)continue;u=P(d(e[i].name,e[i].ratio,e[i].id,e[i].index)),c=l.levelColor?l.levelColor(e[i].value):r(e[i].id),o+="<tr class='"+l.CLASS.tooltipName+"-"+l.getTargetSelectorSuffix(e[i].id)+"'>",o+="<td class='name'><span style='background-color:"+c+"'></span>"+u+"</td>",o+="<td class='value'>"+s+"</td>",o+="</tr>"}return o+"</table>"},f.tooltipPosition=function(e,t,n,r){var o,i,a,s,u,c=this,l=c.config,p=c.d3,f=c.hasArcType(),d=p.mouse(r);return f?(i=(c.width-(c.isLegendRight?c.getLegendWidth():0))/2+d[0],s=c.height/2+d[1]+20):(o=c.getSvgLeft(!0),l.axis_rotated?(i=o+d[0]+100,a=i+t,u=c.currentWidth-c.getCurrentPaddingRight(),s=c.x(e[0].x)+20):(i=o+c.getCurrentPaddingLeft(!0)+c.x(e[0].x)+20,a=i+t,u=o+c.currentWidth-c.getCurrentPaddingRight(),s=d[1]+15),a>u&&(i-=a-u+20),s+n>c.currentHeight&&(s-=n+30)),s<0&&(s=0),{top:s,left:i}},f.showTooltip=function(e,t){var n,r,o,i=this,a=i.config,s=i.hasArcType(),u=e.filter(function(e){return e&&m(e.value)}),c=a.tooltip_position||f.tooltipPosition;0!==u.length&&a.tooltip_show&&(i.tooltip.html(a.tooltip_contents.call(i,e,i.axis.getXAxisTickFormat(),i.getYFormat(s),i.color)).style("display","block"),n=i.tooltip.property("offsetWidth"),r=i.tooltip.property("offsetHeight"),o=c.call(this,u,n,r,t),i.tooltip.style("top",o.top+"px").style("left",o.left+"px"))},f.hideTooltip=function(){this.tooltip.style("display","none")},f.initLegend=function(){var e=this;return e.legendItemTextBox={},e.legendHasRendered=!1,e.legend=e.svg.append("g").attr("transform",e.getTranslate("legend")),e.config.legend_show?void e.updateLegendWithDefaults():(e.legend.style("visibility","hidden"),void(e.hiddenLegendIds=e.mapToIds(e.data.targets)))},f.updateLegendWithDefaults=function(){var e=this;e.updateLegend(e.mapToIds(e.data.targets),{withTransform:!1,withTransitionForTransform:!1,withTransition:!1})},f.updateSizeForLegend=function(e,t){var n=this,r=n.config,o={top:n.isLegendTop?n.getCurrentPaddingTop()+r.legend_inset_y+5.5:n.currentHeight-e-n.getCurrentPaddingBottom()-r.legend_inset_y,left:n.isLegendLeft?n.getCurrentPaddingLeft()+r.legend_inset_x+.5:n.currentWidth-t-n.getCurrentPaddingRight()-r.legend_inset_x+.5};n.margin3={top:n.isLegendRight?0:n.isLegendInset?o.top:n.currentHeight-e,right:NaN,bottom:0,left:n.isLegendRight?n.currentWidth-t:n.isLegendInset?o.left:0}},f.transformLegend=function(e){var t=this;(e?t.legend.transition():t.legend).attr("transform",t.getTranslate("legend"))},f.updateLegendStep=function(e){this.legendStep=e},f.updateLegendItemWidth=function(e){this.legendItemWidth=e},f.updateLegendItemHeight=function(e){this.legendItemHeight=e},f.getLegendWidth=function(){var e=this;return e.config.legend_show?e.isLegendRight||e.isLegendInset?e.legendItemWidth*(e.legendStep+1):e.currentWidth:0;
12
- },f.getLegendHeight=function(){var e=this,t=0;return e.config.legend_show&&(t=e.isLegendRight?e.currentHeight:Math.max(20,e.legendItemHeight)*(e.legendStep+1)),t},f.opacityForLegend=function(e){return e.classed(g.legendItemHidden)?null:1},f.opacityForUnfocusedLegend=function(e){return e.classed(g.legendItemHidden)?null:.3},f.toggleFocusLegend=function(e,t){var n=this;e=n.mapToTargetIds(e),n.legend.selectAll("."+g.legendItem).filter(function(t){return e.indexOf(t)>=0}).classed(g.legendItemFocused,t).transition().duration(100).style("opacity",function(){var e=t?n.opacityForLegend:n.opacityForUnfocusedLegend;return e.call(n,n.d3.select(this))})},f.revertLegend=function(){var e=this,t=e.d3;e.legend.selectAll("."+g.legendItem).classed(g.legendItemFocused,!1).transition().duration(100).style("opacity",function(){return e.opacityForLegend(t.select(this))})},f.showLegend=function(e){var t=this,n=t.config;n.legend_show||(n.legend_show=!0,t.legend.style("visibility","visible"),t.legendHasRendered||t.updateLegendWithDefaults()),t.removeHiddenLegendIds(e),t.legend.selectAll(t.selectorLegends(e)).style("visibility","visible").transition().style("opacity",function(){return t.opacityForLegend(t.d3.select(this))})},f.hideLegend=function(e){var t=this,n=t.config;n.legend_show&&w(e)&&(n.legend_show=!1,t.legend.style("visibility","hidden")),t.addHiddenLegendIds(e),t.legend.selectAll(t.selectorLegends(e)).style("opacity",0).style("visibility","hidden")},f.clearLegendItemTextBoxCache=function(){this.legendItemTextBox={}},f.updateLegend=function(e,t,n){function r(e,t){return C.legendItemTextBox[t]||(C.legendItemTextBox[t]=C.getTextRect(e.textContent,g.legendItem,e)),C.legendItemTextBox[t]}function o(t,n,o){function i(e,t){t||(a=(h-M-d)/2,a<N&&(a=(h-d)/2,M=0,F++)),j[e]=F,k[F]=C.isLegendInset?10:a,D[e]=M,M+=d}var a,s,u=0===o,c=o===e.length-1,l=r(t,n),p=l.width+A+(!c||C.isLegendRight||C.isLegendInset?T:0)+w.legend_padding,f=l.height+S,d=C.isLegendRight||C.isLegendInset?f:p,h=C.isLegendRight||C.isLegendInset?C.getLegendHeight():C.getLegendWidth();return u&&(M=0,F=0,P=0,R=0),w.legend_show&&!C.isLegendToShow(n)?void(I[n]=L[n]=j[n]=D[n]=0):(I[n]=p,L[n]=f,(!P||p>=P)&&(P=p),(!R||f>=R)&&(R=f),s=C.isLegendRight||C.isLegendInset?R:P,void(w.legend_equally?(Object.keys(I).forEach(function(e){I[e]=P}),Object.keys(L).forEach(function(e){L[e]=R}),a=(h-s*e.length)/2,a<N?(M=0,F=0,e.forEach(function(e){i(e)})):i(n,!0)):i(n)))}var i,a,s,u,c,l,p,f,d,h,m,y,v,_,E,x,C=this,w=C.config,S=4,T=10,P=0,R=0,N=10,A=w.legend_item_tile_width+5,M=0,D={},I={},L={},k=[0],j={},F=0;e=e.filter(function(e){return!b(w.data_names[e])||null!==w.data_names[e]}),t=t||{},m=O(t,"withTransition",!0),y=O(t,"withTransitionForTransform",!0),C.isLegendInset&&(F=w.legend_inset_step?w.legend_inset_step:e.length,C.updateLegendStep(F)),C.isLegendRight?(i=function(e){return P*j[e]},u=function(e){return k[j[e]]+D[e]}):C.isLegendInset?(i=function(e){return P*j[e]+10},u=function(e){return k[j[e]]+D[e]}):(i=function(e){return k[j[e]]+D[e]},u=function(e){return R*j[e]}),a=function(e,t){return i(e,t)+4+w.legend_item_tile_width},c=function(e,t){return u(e,t)+9},s=function(e,t){return i(e,t)},l=function(e,t){return u(e,t)-5},p=function(e,t){return i(e,t)-2},f=function(e,t){return i(e,t)-2+w.legend_item_tile_width},d=function(e,t){return u(e,t)+4},h=C.legend.selectAll("."+g.legendItem).data(e).enter().append("g").attr("class",function(e){return C.generateClass(g.legendItem,e)}).style("visibility",function(e){return C.isLegendToShow(e)?"visible":"hidden"}).style("cursor","pointer").on("click",function(e){w.legend_item_onclick?w.legend_item_onclick.call(C,e):C.d3.event.altKey?(C.api.hide(),C.api.show(e)):(C.api.toggle(e),C.isTargetToShow(e)?C.api.focus(e):C.api.revert())}).on("mouseover",function(e){w.legend_item_onmouseover?w.legend_item_onmouseover.call(C,e):(C.d3.select(this).classed(g.legendItemFocused,!0),!C.transiting&&C.isTargetToShow(e)&&C.api.focus(e))}).on("mouseout",function(e){w.legend_item_onmouseout?w.legend_item_onmouseout.call(C,e):(C.d3.select(this).classed(g.legendItemFocused,!1),C.api.revert())}),h.append("text").text(function(e){return b(w.data_names[e])?w.data_names[e]:e}).each(function(e,t){o(this,e,t)}).style("pointer-events","none").attr("x",C.isLegendRight||C.isLegendInset?a:-200).attr("y",C.isLegendRight||C.isLegendInset?-200:c),h.append("rect").attr("class",g.legendItemEvent).style("fill-opacity",0).attr("x",C.isLegendRight||C.isLegendInset?s:-200).attr("y",C.isLegendRight||C.isLegendInset?-200:l),h.append("line").attr("class",g.legendItemTile).style("stroke",C.color).style("pointer-events","none").attr("x1",C.isLegendRight||C.isLegendInset?p:-200).attr("y1",C.isLegendRight||C.isLegendInset?-200:d).attr("x2",C.isLegendRight||C.isLegendInset?f:-200).attr("y2",C.isLegendRight||C.isLegendInset?-200:d).attr("stroke-width",w.legend_item_tile_height),x=C.legend.select("."+g.legendBackground+" rect"),C.isLegendInset&&P>0&&0===x.size()&&(x=C.legend.insert("g","."+g.legendItem).attr("class",g.legendBackground).append("rect")),v=C.legend.selectAll("text").data(e).text(function(e){return b(w.data_names[e])?w.data_names[e]:e}).each(function(e,t){o(this,e,t)}),(m?v.transition():v).attr("x",a).attr("y",c),_=C.legend.selectAll("rect."+g.legendItemEvent).data(e),(m?_.transition():_).attr("width",function(e){return I[e]}).attr("height",function(e){return L[e]}).attr("x",s).attr("y",l),E=C.legend.selectAll("line."+g.legendItemTile).data(e),(m?E.transition():E).style("stroke",C.color).attr("x1",p).attr("y1",d).attr("x2",f).attr("y2",d),x&&(m?x.transition():x).attr("height",C.getLegendHeight()-12).attr("width",P*(F+1)+10),C.legend.selectAll("."+g.legendItem).classed(g.legendItemHidden,function(e){return!C.isTargetToShow(e)}),C.updateLegendItemWidth(P),C.updateLegendItemHeight(R),C.updateLegendStep(F),C.updateSizes(),C.updateScales(),C.updateSvgSize(),C.transformAll(y,n),C.legendHasRendered=!0},f.initTitle=function(){var e=this;e.title=e.svg.append("text").text(e.config.title_text).attr("class",e.CLASS.title)},f.redrawTitle=function(){var e=this;e.title.attr("x",e.xForTitle.bind(e)).attr("y",e.yForTitle.bind(e))},f.xForTitle=function(){var e,t=this,n=t.config,r=n.title_position||"left";return e=r.indexOf("right")>=0?t.currentWidth-t.getTextRect(t.title.node().textContent,t.CLASS.title,t.title.node()).width-n.title_padding.right:r.indexOf("center")>=0?(t.currentWidth-t.getTextRect(t.title.node().textContent,t.CLASS.title,t.title.node()).width)/2:n.title_padding.left},f.yForTitle=function(){var e=this;return e.config.title_padding.top+e.getTextRect(e.title.node().textContent,e.CLASS.title,e.title.node()).height},f.getTitlePadding=function(){var e=this;return e.yForTitle()+e.config.title_padding.bottom},a(i,c),c.prototype.init=function(){var e=this.owner,t=e.config,n=e.main;e.axes.x=n.append("g").attr("class",g.axis+" "+g.axisX).attr("clip-path",e.clipPathForXAxis).attr("transform",e.getTranslate("x")).style("visibility",t.axis_x_show?"visible":"hidden"),e.axes.x.append("text").attr("class",g.axisXLabel).attr("transform",t.axis_rotated?"rotate(-90)":"").style("text-anchor",this.textAnchorForXAxisLabel.bind(this)),e.axes.y=n.append("g").attr("class",g.axis+" "+g.axisY).attr("clip-path",t.axis_y_inner?"":e.clipPathForYAxis).attr("transform",e.getTranslate("y")).style("visibility",t.axis_y_show?"visible":"hidden"),e.axes.y.append("text").attr("class",g.axisYLabel).attr("transform",t.axis_rotated?"":"rotate(-90)").style("text-anchor",this.textAnchorForYAxisLabel.bind(this)),e.axes.y2=n.append("g").attr("class",g.axis+" "+g.axisY2).attr("transform",e.getTranslate("y2")).style("visibility",t.axis_y2_show?"visible":"hidden"),e.axes.y2.append("text").attr("class",g.axisY2Label).attr("transform",t.axis_rotated?"":"rotate(-90)").style("text-anchor",this.textAnchorForY2AxisLabel.bind(this))},c.prototype.getXAxis=function(e,t,n,r,o,i,a){var s=this.owner,u=s.config,c={isCategory:s.isCategorized(),withOuterTick:o,tickMultiline:u.axis_x_tick_multiline,tickWidth:u.axis_x_tick_width,tickTextRotate:a?0:u.axis_x_tick_rotate,withoutTransition:i},p=l(s.d3,c).scale(e).orient(t);return s.isTimeSeries()&&r&&"function"!=typeof r&&(r=r.map(function(e){return s.parseDate(e)})),p.tickFormat(n).tickValues(r),s.isCategorized()&&(p.tickCentered(u.axis_x_tick_centered),w(u.axis_x_tick_culling)&&(u.axis_x_tick_culling=!1)),p},c.prototype.updateXAxisTickValues=function(e,t){var n,r=this.owner,o=r.config;return(o.axis_x_tick_fit||o.axis_x_tick_count)&&(n=this.generateTickValues(r.mapTargetsToUniqueXs(e),o.axis_x_tick_count,r.isTimeSeries())),t?t.tickValues(n):(r.xAxis.tickValues(n),r.subXAxis.tickValues(n)),n},c.prototype.getYAxis=function(e,t,n,r,o,i,a){var s=this.owner,u=s.config,c={withOuterTick:o,withoutTransition:i,tickTextRotate:a?0:u.axis_y_tick_rotate},p=l(s.d3,c).scale(e).orient(t).tickFormat(n);return s.isTimeSeriesY()?p.ticks(s.d3.time[u.axis_y_tick_time_value],u.axis_y_tick_time_interval):p.tickValues(r),p},c.prototype.getId=function(e){var t=this.owner.config;return e in t.data_axes?t.data_axes[e]:"y"},c.prototype.getXAxisTickFormat=function(){var e=this.owner,t=e.config,n=e.isTimeSeries()?e.defaultAxisTimeFormat:e.isCategorized()?e.categoryName:function(e){return e<0?e.toFixed(0):e};return t.axis_x_tick_format&&(y(t.axis_x_tick_format)?n=t.axis_x_tick_format:e.isTimeSeries()&&(n=function(n){return n?e.axisTimeFormat(t.axis_x_tick_format)(n):""})),y(n)?function(t){return n.call(e,t)}:n},c.prototype.getTickValues=function(e,t){return e?e:t?t.tickValues():void 0},c.prototype.getXAxisTickValues=function(){return this.getTickValues(this.owner.config.axis_x_tick_values,this.owner.xAxis)},c.prototype.getYAxisTickValues=function(){return this.getTickValues(this.owner.config.axis_y_tick_values,this.owner.yAxis)},c.prototype.getY2AxisTickValues=function(){return this.getTickValues(this.owner.config.axis_y2_tick_values,this.owner.y2Axis)},c.prototype.getLabelOptionByAxisId=function(e){var t,n=this.owner,r=n.config;return"y"===e?t=r.axis_y_label:"y2"===e?t=r.axis_y2_label:"x"===e&&(t=r.axis_x_label),t},c.prototype.getLabelText=function(e){var t=this.getLabelOptionByAxisId(e);return v(t)?t:t?t.text:null},c.prototype.setLabelText=function(e,t){var n=this.owner,r=n.config,o=this.getLabelOptionByAxisId(e);v(o)?"y"===e?r.axis_y_label=t:"y2"===e?r.axis_y2_label=t:"x"===e&&(r.axis_x_label=t):o&&(o.text=t)},c.prototype.getLabelPosition=function(e,t){var n=this.getLabelOptionByAxisId(e),r=n&&"object"==typeof n&&n.position?n.position:t;return{isInner:r.indexOf("inner")>=0,isOuter:r.indexOf("outer")>=0,isLeft:r.indexOf("left")>=0,isCenter:r.indexOf("center")>=0,isRight:r.indexOf("right")>=0,isTop:r.indexOf("top")>=0,isMiddle:r.indexOf("middle")>=0,isBottom:r.indexOf("bottom")>=0}},c.prototype.getXAxisLabelPosition=function(){return this.getLabelPosition("x",this.owner.config.axis_rotated?"inner-top":"inner-right")},c.prototype.getYAxisLabelPosition=function(){return this.getLabelPosition("y",this.owner.config.axis_rotated?"inner-right":"inner-top")},c.prototype.getY2AxisLabelPosition=function(){return this.getLabelPosition("y2",this.owner.config.axis_rotated?"inner-right":"inner-top")},c.prototype.getLabelPositionById=function(e){return"y2"===e?this.getY2AxisLabelPosition():"y"===e?this.getYAxisLabelPosition():this.getXAxisLabelPosition()},c.prototype.textForXAxisLabel=function(){return this.getLabelText("x")},c.prototype.textForYAxisLabel=function(){return this.getLabelText("y")},c.prototype.textForY2AxisLabel=function(){return this.getLabelText("y2")},c.prototype.xForAxisLabel=function(e,t){var n=this.owner;return e?t.isLeft?0:t.isCenter?n.width/2:n.width:t.isBottom?-n.height:t.isMiddle?-n.height/2:0},c.prototype.dxForAxisLabel=function(e,t){return e?t.isLeft?"0.5em":t.isRight?"-0.5em":"0":t.isTop?"-0.5em":t.isBottom?"0.5em":"0"},c.prototype.textAnchorForAxisLabel=function(e,t){return e?t.isLeft?"start":t.isCenter?"middle":"end":t.isBottom?"start":t.isMiddle?"middle":"end"},c.prototype.xForXAxisLabel=function(){return this.xForAxisLabel(!this.owner.config.axis_rotated,this.getXAxisLabelPosition())},c.prototype.xForYAxisLabel=function(){return this.xForAxisLabel(this.owner.config.axis_rotated,this.getYAxisLabelPosition())},c.prototype.xForY2AxisLabel=function(){return this.xForAxisLabel(this.owner.config.axis_rotated,this.getY2AxisLabelPosition())},c.prototype.dxForXAxisLabel=function(){return this.dxForAxisLabel(!this.owner.config.axis_rotated,this.getXAxisLabelPosition())},c.prototype.dxForYAxisLabel=function(){return this.dxForAxisLabel(this.owner.config.axis_rotated,this.getYAxisLabelPosition())},c.prototype.dxForY2AxisLabel=function(){return this.dxForAxisLabel(this.owner.config.axis_rotated,this.getY2AxisLabelPosition())},c.prototype.dyForXAxisLabel=function(){var e=this.owner,t=e.config,n=this.getXAxisLabelPosition();return t.axis_rotated?n.isInner?"1.2em":-25-this.getMaxTickWidth("x"):n.isInner?"-0.5em":t.axis_x_height?t.axis_x_height-10:"3em"},c.prototype.dyForYAxisLabel=function(){var e=this.owner,t=this.getYAxisLabelPosition();return e.config.axis_rotated?t.isInner?"-0.5em":"3em":t.isInner?"1.2em":-10-(e.config.axis_y_inner?0:this.getMaxTickWidth("y")+10)},c.prototype.dyForY2AxisLabel=function(){var e=this.owner,t=this.getY2AxisLabelPosition();return e.config.axis_rotated?t.isInner?"1.2em":"-2.2em":t.isInner?"-0.5em":15+(e.config.axis_y2_inner?0:this.getMaxTickWidth("y2")+15)},c.prototype.textAnchorForXAxisLabel=function(){var e=this.owner;return this.textAnchorForAxisLabel(!e.config.axis_rotated,this.getXAxisLabelPosition())},c.prototype.textAnchorForYAxisLabel=function(){var e=this.owner;return this.textAnchorForAxisLabel(e.config.axis_rotated,this.getYAxisLabelPosition())},c.prototype.textAnchorForY2AxisLabel=function(){var e=this.owner;return this.textAnchorForAxisLabel(e.config.axis_rotated,this.getY2AxisLabelPosition())},c.prototype.getMaxTickWidth=function(e,t){var n,r,o,i,a,s=this.owner,u=s.config,c=0;return t&&s.currentMaxTickWidths[e]?s.currentMaxTickWidths[e]:(s.svg&&(n=s.filterTargetsToShow(s.data.targets),"y"===e?(r=s.y.copy().domain(s.getYDomain(n,"y")),o=this.getYAxis(r,s.yOrient,u.axis_y_tick_format,s.yAxisTickValues,!1,!0,!0)):"y2"===e?(r=s.y2.copy().domain(s.getYDomain(n,"y2")),o=this.getYAxis(r,s.y2Orient,u.axis_y2_tick_format,s.y2AxisTickValues,!1,!0,!0)):(r=s.x.copy().domain(s.getXDomain(n)),o=this.getXAxis(r,s.xOrient,s.xAxisTickFormat,s.xAxisTickValues,!1,!0,!0),this.updateXAxisTickValues(n,o)),i=s.d3.select("body").append("div").classed("c3",!0),a=i.append("svg").style("visibility","hidden").style("position","fixed").style("top",0).style("left",0),a.append("g").call(o).each(function(){s.d3.select(this).selectAll("text").each(function(){var e=this.getBoundingClientRect();c<e.width&&(c=e.width)}),i.remove()})),s.currentMaxTickWidths[e]=c<=0?s.currentMaxTickWidths[e]:c,s.currentMaxTickWidths[e])},c.prototype.updateLabels=function(e){var t=this.owner,n=t.main.select("."+g.axisX+" ."+g.axisXLabel),r=t.main.select("."+g.axisY+" ."+g.axisYLabel),o=t.main.select("."+g.axisY2+" ."+g.axisY2Label);(e?n.transition():n).attr("x",this.xForXAxisLabel.bind(this)).attr("dx",this.dxForXAxisLabel.bind(this)).attr("dy",this.dyForXAxisLabel.bind(this)).text(this.textForXAxisLabel.bind(this)),(e?r.transition():r).attr("x",this.xForYAxisLabel.bind(this)).attr("dx",this.dxForYAxisLabel.bind(this)).attr("dy",this.dyForYAxisLabel.bind(this)).text(this.textForYAxisLabel.bind(this)),(e?o.transition():o).attr("x",this.xForY2AxisLabel.bind(this)).attr("dx",this.dxForY2AxisLabel.bind(this)).attr("dy",this.dyForY2AxisLabel.bind(this)).text(this.textForY2AxisLabel.bind(this))},c.prototype.getPadding=function(e,t,n,r){var o="number"==typeof e?e:e[t];return m(o)?"ratio"===e.unit?e[t]*r:this.convertPixelsToAxisPadding(o,r):n},c.prototype.convertPixelsToAxisPadding=function(e,t){var n=this.owner,r=n.config.axis_rotated?n.width:n.height;return t*(e/r)},c.prototype.generateTickValues=function(e,t,n){var r,o,i,a,s,u,c,l=e;if(t)if(r=y(t)?t():t,1===r)l=[e[0]];else if(2===r)l=[e[0],e[e.length-1]];else if(r>2){for(a=r-2,o=e[0],i=e[e.length-1],s=(i-o)/(a+1),l=[o],u=0;u<a;u++)c=+o+s*(u+1),l.push(n?new Date(c):c);l.push(i)}return n||(l=l.sort(function(e,t){return e-t})),l},c.prototype.generateTransitions=function(e){var t=this.owner,n=t.axes;return{axisX:e?n.x.transition().duration(e):n.x,axisY:e?n.y.transition().duration(e):n.y,axisY2:e?n.y2.transition().duration(e):n.y2,axisSubX:e?n.subx.transition().duration(e):n.subx}},c.prototype.redraw=function(e,t){var n=this.owner;n.axes.x.style("opacity",t?0:1),n.axes.y.style("opacity",t?0:1),n.axes.y2.style("opacity",t?0:1),n.axes.subx.style("opacity",t?0:1),e.axisX.call(n.xAxis),e.axisY.call(n.yAxis),e.axisY2.call(n.y2Axis),e.axisSubX.call(n.subXAxis)},f.getClipPath=function(e){var t=o.navigator.appVersion.toLowerCase().indexOf("msie 9.")>=0;return"url("+(t?"":document.URL.split("#")[0])+"#"+e+")"},f.appendClip=function(e,t){return e.append("clipPath").attr("id",t).append("rect")},f.getAxisClipX=function(e){var t=Math.max(30,this.margin.left);return e?-(1+t):-(t-1)},f.getAxisClipY=function(e){return e?-20:-this.margin.top},f.getXAxisClipX=function(){var e=this;return e.getAxisClipX(!e.config.axis_rotated)},f.getXAxisClipY=function(){var e=this;return e.getAxisClipY(!e.config.axis_rotated)},f.getYAxisClipX=function(){var e=this;return e.config.axis_y_inner?-1:e.getAxisClipX(e.config.axis_rotated)},f.getYAxisClipY=function(){var e=this;return e.getAxisClipY(e.config.axis_rotated)},f.getAxisClipWidth=function(e){var t=this,n=Math.max(30,t.margin.left),r=Math.max(30,t.margin.right);return e?t.width+2+n+r:t.margin.left+20},f.getAxisClipHeight=function(e){return(e?this.margin.bottom:this.margin.top+this.height)+20},f.getXAxisClipWidth=function(){var e=this;return e.getAxisClipWidth(!e.config.axis_rotated)},f.getXAxisClipHeight=function(){var e=this;return e.getAxisClipHeight(!e.config.axis_rotated)},f.getYAxisClipWidth=function(){var e=this;return e.getAxisClipWidth(e.config.axis_rotated)+(e.config.axis_y_inner?20:0)},f.getYAxisClipHeight=function(){var e=this;return e.getAxisClipHeight(e.config.axis_rotated)},f.initPie=function(){var e=this,t=e.d3,n=e.config;e.pie=t.layout.pie().value(function(e){return e.values.reduce(function(e,t){return e+t.value},0)}),n.data_order||e.pie.sort(null)},f.updateRadius=function(){var e=this,t=e.config,n=t.gauge_width||t.donut_width;e.radiusExpanded=Math.min(e.arcWidth,e.arcHeight)/2,e.radius=.95*e.radiusExpanded,e.innerRadiusRatio=n?(e.radius-n)/e.radius:.6,e.innerRadius=e.hasType("donut")||e.hasType("gauge")?e.radius*e.innerRadiusRatio:0},f.updateArc=function(){var e=this;e.svgArc=e.getSvgArc(),e.svgArcExpanded=e.getSvgArcExpanded(),e.svgArcExpandedSub=e.getSvgArcExpanded(.98)},f.updateAngle=function(e){var t,n,r,o,i=this,a=i.config,s=!1,u=0;return a?(i.pie(i.filterTargetsToShow(i.data.targets)).forEach(function(t){s||t.data.id!==e.data.id||(s=!0,e=t,e.index=u),u++}),isNaN(e.startAngle)&&(e.startAngle=0),isNaN(e.endAngle)&&(e.endAngle=e.startAngle),i.isGaugeType(e.data)&&(t=a.gauge_min,n=a.gauge_max,r=Math.PI*(a.gauge_fullCircle?2:1)/(n-t),o=e.value<t?0:e.value<n?e.value-t:n-t,e.startAngle=a.gauge_startingAngle,e.endAngle=e.startAngle+r*o),s?e:null):null},f.getSvgArc=function(){var e=this,t=e.d3.svg.arc().outerRadius(e.radius).innerRadius(e.innerRadius),n=function(n,r){var o;return r?t(n):(o=e.updateAngle(n),o?t(o):"M 0 0")};return n.centroid=t.centroid,n},f.getSvgArcExpanded=function(e){var t=this,n=t.d3.svg.arc().outerRadius(t.radiusExpanded*(e?e:1)).innerRadius(t.innerRadius);return function(e){var r=t.updateAngle(e);return r?n(r):"M 0 0"}},f.getArc=function(e,t,n){return n||this.isArcType(e.data)?this.svgArc(e,t):"M 0 0"},f.transformForArcLabel=function(e){var t,n,r,o,i,a=this,s=a.config,u=a.updateAngle(e),c="";return u&&!a.hasType("gauge")&&(t=this.svgArc.centroid(u),n=isNaN(t[0])?0:t[0],r=isNaN(t[1])?0:t[1],o=Math.sqrt(n*n+r*r),i=a.hasType("donut")&&s.donut_label_ratio?y(s.donut_label_ratio)?s.donut_label_ratio(e,a.radius,o):s.donut_label_ratio:a.hasType("pie")&&s.pie_label_ratio?y(s.pie_label_ratio)?s.pie_label_ratio(e,a.radius,o):s.pie_label_ratio:a.radius&&o?(36/a.radius>.375?1.175-36/a.radius:.8)*a.radius/o:0,c="translate("+n*i+","+r*i+")"),c},f.getArcRatio=function(e){var t=this,n=t.config,r=Math.PI*(t.hasType("gauge")&&!n.gauge_fullCircle?1:2);return e?(e.endAngle-e.startAngle)/r:null},f.convertToArcData=function(e){return this.addName({id:e.data.id,value:e.value,ratio:this.getArcRatio(e),index:e.index})},f.textForArcLabel=function(e){var t,n,r,o,i,a=this;return a.shouldShowArcLabel()?(t=a.updateAngle(e),n=t?t.value:null,r=a.getArcRatio(t),o=e.data.id,a.hasType("gauge")||a.meetsArcLabelThreshold(r)?(i=a.getArcLabelFormat(),i?i(n,r,o):a.defaultArcValueFormat(n,r)):""):""},f.expandArc=function(e){var t,n=this;return n.transiting?void(t=o.setInterval(function(){n.transiting||(o.clearInterval(t),n.legend.selectAll(".c3-legend-item-focused").size()>0&&n.expandArc(e))},10)):(e=n.mapToTargetIds(e),void n.svg.selectAll(n.selectorTargets(e,"."+g.chartArc)).each(function(e){n.shouldExpand(e.data.id)&&n.d3.select(this).selectAll("path").transition().duration(n.expandDuration(e.data.id)).attr("d",n.svgArcExpanded).transition().duration(2*n.expandDuration(e.data.id)).attr("d",n.svgArcExpandedSub).each(function(e){n.isDonutType(e.data)})}))},f.unexpandArc=function(e){var t=this;t.transiting||(e=t.mapToTargetIds(e),t.svg.selectAll(t.selectorTargets(e,"."+g.chartArc)).selectAll("path").transition().duration(function(e){return t.expandDuration(e.data.id)}).attr("d",t.svgArc),t.svg.selectAll("."+g.arc).style("opacity",1))},f.expandDuration=function(e){var t=this,n=t.config;return t.isDonutType(e)?n.donut_expand_duration:t.isGaugeType(e)?n.gauge_expand_duration:t.isPieType(e)?n.pie_expand_duration:50},f.shouldExpand=function(e){var t=this,n=t.config;return t.isDonutType(e)&&n.donut_expand||t.isGaugeType(e)&&n.gauge_expand||t.isPieType(e)&&n.pie_expand},f.shouldShowArcLabel=function(){var e=this,t=e.config,n=!0;return e.hasType("donut")?n=t.donut_label_show:e.hasType("pie")&&(n=t.pie_label_show),n},f.meetsArcLabelThreshold=function(e){var t=this,n=t.config,r=t.hasType("donut")?n.donut_label_threshold:n.pie_label_threshold;return e>=r},f.getArcLabelFormat=function(){var e=this,t=e.config,n=t.pie_label_format;return e.hasType("gauge")?n=t.gauge_label_format:e.hasType("donut")&&(n=t.donut_label_format),n},f.getArcTitle=function(){var e=this;return e.hasType("donut")?e.config.donut_title:""},f.updateTargetsForArc=function(e){var t,n,r=this,o=r.main,i=r.classChartArc.bind(r),a=r.classArcs.bind(r),s=r.classFocus.bind(r);t=o.select("."+g.chartArcs).selectAll("."+g.chartArc).data(r.pie(e)).attr("class",function(e){return i(e)+s(e.data)}),n=t.enter().append("g").attr("class",i),n.append("g").attr("class",a),n.append("text").attr("dy",r.hasType("gauge")?"-.1em":".35em").style("opacity",0).style("text-anchor","middle").style("pointer-events","none")},f.initArc=function(){var e=this;e.arcs=e.main.select("."+g.chart).append("g").attr("class",g.chartArcs).attr("transform",e.getTranslate("arc")),e.arcs.append("text").attr("class",g.chartArcsTitle).style("text-anchor","middle").text(e.getArcTitle())},f.redrawArc=function(e,t,n){var r,o=this,i=o.d3,a=o.config,s=o.main;r=s.selectAll("."+g.arcs).selectAll("."+g.arc).data(o.arcData.bind(o)),r.enter().append("path").attr("class",o.classArc.bind(o)).style("fill",function(e){return o.color(e.data)}).style("cursor",function(e){return a.interaction_enabled&&a.data_selection_isselectable(e)?"pointer":null}).style("opacity",0).each(function(e){o.isGaugeType(e.data)&&(e.startAngle=e.endAngle=a.gauge_startingAngle),this._current=e}),r.attr("transform",function(e){return!o.isGaugeType(e.data)&&n?"scale(0)":""}).style("opacity",function(e){return e===this._current?0:1}).on("mouseover",a.interaction_enabled?function(e){var t,n;o.transiting||(t=o.updateAngle(e),t&&(n=o.convertToArcData(t),o.expandArc(t.data.id),o.api.focus(t.data.id),o.toggleFocusLegend(t.data.id,!0),o.config.data_onmouseover(n,this)))}:null).on("mousemove",a.interaction_enabled?function(e){var t,n,r=o.updateAngle(e);r&&(t=o.convertToArcData(r),n=[t],o.showTooltip(n,this))}:null).on("mouseout",a.interaction_enabled?function(e){var t,n;o.transiting||(t=o.updateAngle(e),t&&(n=o.convertToArcData(t),o.unexpandArc(t.data.id),o.api.revert(),o.revertLegend(),o.hideTooltip(),o.config.data_onmouseout(n,this)))}:null).on("click",a.interaction_enabled?function(e,t){var n,r=o.updateAngle(e);r&&(n=o.convertToArcData(r),o.toggleShape&&o.toggleShape(this,n,t),o.config.data_onclick.call(o.api,n,this))}:null).each(function(){o.transiting=!0}).transition().duration(e).attrTween("d",function(e){var t,n=o.updateAngle(e);return n?(isNaN(this._current.startAngle)&&(this._current.startAngle=0),isNaN(this._current.endAngle)&&(this._current.endAngle=this._current.startAngle),t=i.interpolate(this._current,n),this._current=t(0),function(n){var r=t(n);return r.data=e.data,o.getArc(r,!0)}):function(){return"M 0 0"}}).attr("transform",n?"scale(1)":"").style("fill",function(e){return o.levelColor?o.levelColor(e.data.values[0].value):o.color(e.data.id)}).style("opacity",1).call(o.endall,function(){o.transiting=!1}),r.exit().transition().duration(t).style("opacity",0).remove(),s.selectAll("."+g.chartArc).select("text").style("opacity",0).attr("class",function(e){return o.isGaugeType(e.data)?g.gaugeValue:""}).text(o.textForArcLabel.bind(o)).attr("transform",o.transformForArcLabel.bind(o)).style("font-size",function(e){return o.isGaugeType(e.data)?Math.round(o.radius/5)+"px":""}).transition().duration(e).style("opacity",function(e){return o.isTargetToShow(e.data.id)&&o.isArcType(e.data)?1:0}),s.select("."+g.chartArcsTitle).style("opacity",o.hasType("donut")||o.hasType("gauge")?1:0),o.hasType("gauge")&&(o.arcs.select("."+g.chartArcsBackground).attr("d",function(){var e={data:[{value:a.gauge_max}],startAngle:a.gauge_startingAngle,endAngle:-1*a.gauge_startingAngle};return o.getArc(e,!0,!0)}),o.arcs.select("."+g.chartArcsGaugeUnit).attr("dy",".75em").text(a.gauge_label_show?a.gauge_units:""),o.arcs.select("."+g.chartArcsGaugeMin).attr("dx",-1*(o.innerRadius+(o.radius-o.innerRadius)/(a.gauge_fullCircle?1:2))+"px").attr("dy","1.2em").text(a.gauge_label_show?a.gauge_min:""),o.arcs.select("."+g.chartArcsGaugeMax).attr("dx",o.innerRadius+(o.radius-o.innerRadius)/(a.gauge_fullCircle?1:2)+"px").attr("dy","1.2em").text(a.gauge_label_show?a.gauge_max:""))},f.initGauge=function(){var e=this.arcs;this.hasType("gauge")&&(e.append("path").attr("class",g.chartArcsBackground),e.append("text").attr("class",g.chartArcsGaugeUnit).style("text-anchor","middle").style("pointer-events","none"),e.append("text").attr("class",g.chartArcsGaugeMin).style("text-anchor","middle").style("pointer-events","none"),e.append("text").attr("class",g.chartArcsGaugeMax).style("text-anchor","middle").style("pointer-events","none"))},f.getGaugeLabelHeight=function(){return this.config.gauge_label_show?20:0},f.initRegion=function(){var e=this;e.region=e.main.append("g").attr("clip-path",e.clipPath).attr("class",g.regions)},f.updateRegion=function(e){var t=this,n=t.config;t.region.style("visibility",t.hasArcType()?"hidden":"visible"),t.mainRegion=t.main.select("."+g.regions).selectAll("."+g.region).data(n.regions),t.mainRegion.enter().append("g").append("rect").style("fill-opacity",0),t.mainRegion.attr("class",t.classRegion.bind(t)),t.mainRegion.exit().transition().duration(e).style("opacity",0).remove()},f.redrawRegion=function(e){var t=this,n=t.mainRegion.selectAll("rect").each(function(){var e=t.d3.select(this.parentNode).datum();t.d3.select(this).datum(e)}),r=t.regionX.bind(t),o=t.regionY.bind(t),i=t.regionWidth.bind(t),a=t.regionHeight.bind(t);return[(e?n.transition():n).attr("x",r).attr("y",o).attr("width",i).attr("height",a).style("fill-opacity",function(e){return m(e.opacity)?e.opacity:.1})]},f.regionX=function(e){var t,n=this,r=n.config,o="y"===e.axis?n.y:n.y2;return t="y"===e.axis||"y2"===e.axis?r.axis_rotated&&"start"in e?o(e.start):0:r.axis_rotated?0:"start"in e?n.x(n.isTimeSeries()?n.parseDate(e.start):e.start):0},f.regionY=function(e){var t,n=this,r=n.config,o="y"===e.axis?n.y:n.y2;return t="y"===e.axis||"y2"===e.axis?r.axis_rotated?0:"end"in e?o(e.end):0:r.axis_rotated&&"start"in e?n.x(n.isTimeSeries()?n.parseDate(e.start):e.start):0},f.regionWidth=function(e){var t,n=this,r=n.config,o=n.regionX(e),i="y"===e.axis?n.y:n.y2;return t="y"===e.axis||"y2"===e.axis?r.axis_rotated&&"end"in e?i(e.end):n.width:r.axis_rotated?n.width:"end"in e?n.x(n.isTimeSeries()?n.parseDate(e.end):e.end):n.width,t<o?0:t-o},f.regionHeight=function(e){var t,n=this,r=n.config,o=this.regionY(e),i="y"===e.axis?n.y:n.y2;return t="y"===e.axis||"y2"===e.axis?r.axis_rotated?n.height:"start"in e?i(e.start):n.height:r.axis_rotated&&"end"in e?n.x(n.isTimeSeries()?n.parseDate(e.end):e.end):n.height,t<o?0:t-o},f.isRegionOnX=function(e){return!e.axis||"x"===e.axis},f.drag=function(e){var t,n,r,o,i,a,s,u,c=this,l=c.config,p=c.main,f=c.d3;c.hasArcType()||l.data_selection_enabled&&(l.zoom_enabled&&!c.zoom.altDomain||l.data_selection_multiple&&(t=c.dragStart[0],n=c.dragStart[1],r=e[0],o=e[1],i=Math.min(t,r),a=Math.max(t,r),s=l.data_selection_grouped?c.margin.top:Math.min(n,o),u=l.data_selection_grouped?c.height:Math.max(n,o),p.select("."+g.dragarea).attr("x",i).attr("y",s).attr("width",a-i).attr("height",u-s),p.selectAll("."+g.shapes).selectAll("."+g.shape).filter(function(e){return l.data_selection_isselectable(e)}).each(function(e,t){var n,r,o,l,p,d,h=f.select(this),m=h.classed(g.SELECTED),y=h.classed(g.INCLUDED),v=!1;if(h.classed(g.circle))n=1*h.attr("cx"),r=1*h.attr("cy"),p=c.togglePoint,v=i<n&&n<a&&s<r&&r<u;else{if(!h.classed(g.bar))return;d=R(this),n=d.x,r=d.y,o=d.width,l=d.height,p=c.togglePath,v=!(a<n||n+o<i||u<r||r+l<s)}v^y&&(h.classed(g.INCLUDED,!y),h.classed(g.SELECTED,!m),p.call(c,!m,h,e,t))})))},f.dragstart=function(e){var t=this,n=t.config;t.hasArcType()||n.data_selection_enabled&&(t.dragStart=e,t.main.select("."+g.chart).append("rect").attr("class",g.dragarea).style("opacity",.1),t.dragging=!0)},f.dragend=function(){var e=this,t=e.config;e.hasArcType()||t.data_selection_enabled&&(e.main.select("."+g.dragarea).transition().duration(100).style("opacity",0).remove(),e.main.selectAll("."+g.shape).classed(g.INCLUDED,!1),e.dragging=!1)},f.selectPoint=function(e,t,n){var r=this,o=r.config,i=(o.axis_rotated?r.circleY:r.circleX).bind(r),a=(o.axis_rotated?r.circleX:r.circleY).bind(r),s=r.pointSelectR.bind(r);o.data_onselected.call(r.api,t,e.node()),r.main.select("."+g.selectedCircles+r.getTargetSelectorSuffix(t.id)).selectAll("."+g.selectedCircle+"-"+n).data([t]).enter().append("circle").attr("class",function(){return r.generateClass(g.selectedCircle,n)}).attr("cx",i).attr("cy",a).attr("stroke",function(){return r.color(t)}).attr("r",function(e){return 1.4*r.pointSelectR(e)}).transition().duration(100).attr("r",s)},f.unselectPoint=function(e,t,n){var r=this;r.config.data_onunselected.call(r.api,t,e.node()),r.main.select("."+g.selectedCircles+r.getTargetSelectorSuffix(t.id)).selectAll("."+g.selectedCircle+"-"+n).transition().duration(100).attr("r",0).remove()},f.togglePoint=function(e,t,n,r){e?this.selectPoint(t,n,r):this.unselectPoint(t,n,r)},f.selectPath=function(e,t){var n=this;n.config.data_onselected.call(n,t,e.node()),n.config.interaction_brighten&&e.transition().duration(100).style("fill",function(){return n.d3.rgb(n.color(t)).brighter(.75)})},f.unselectPath=function(e,t){var n=this;n.config.data_onunselected.call(n,t,e.node()),n.config.interaction_brighten&&e.transition().duration(100).style("fill",function(){return n.color(t)})},f.togglePath=function(e,t,n,r){e?this.selectPath(t,n,r):this.unselectPath(t,n,r)},f.getToggle=function(e,t){var n,r=this;return"circle"===e.nodeName?n=r.isStepType(t)?function(){}:r.togglePoint:"path"===e.nodeName&&(n=r.togglePath),n},f.toggleShape=function(e,t,n){
13
- var r=this,o=r.d3,i=r.config,a=o.select(e),s=a.classed(g.SELECTED),u=r.getToggle(e,t).bind(r);i.data_selection_enabled&&i.data_selection_isselectable(t)&&(i.data_selection_multiple||r.main.selectAll("."+g.shapes+(i.data_selection_grouped?r.getTargetSelectorSuffix(t.id):"")).selectAll("."+g.shape).each(function(e,t){var n=o.select(this);n.classed(g.SELECTED)&&u(!1,n.classed(g.SELECTED,!1),e,t)}),a.classed(g.SELECTED,!s),u(!s,a,t,n))},f.initBrush=function(){var e=this,t=e.d3;e.brush=t.svg.brush().on("brush",function(){e.redrawForBrush()}),e.brush.update=function(){return e.context&&e.context.select("."+g.brush).call(this),this},e.brush.scale=function(t){return e.config.axis_rotated?this.y(t):this.x(t)}},f.initSubchart=function(){var e=this,t=e.config,n=e.context=e.svg.append("g").attr("transform",e.getTranslate("context")),r=t.subchart_show?"visible":"hidden";n.style("visibility",r),n.append("g").attr("clip-path",e.clipPathForSubchart).attr("class",g.chart),n.select("."+g.chart).append("g").attr("class",g.chartBars),n.select("."+g.chart).append("g").attr("class",g.chartLines),n.append("g").attr("clip-path",e.clipPath).attr("class",g.brush).call(e.brush),e.axes.subx=n.append("g").attr("class",g.axisX).attr("transform",e.getTranslate("subx")).attr("clip-path",t.axis_rotated?"":e.clipPathForXAxis).style("visibility",t.subchart_axis_x_show?r:"hidden")},f.updateTargetsForSubchart=function(e){var t,n,r,o,i=this,a=i.context,s=i.config,u=i.classChartBar.bind(i),c=i.classBars.bind(i),l=i.classChartLine.bind(i),p=i.classLines.bind(i),f=i.classAreas.bind(i);s.subchart_show&&(o=a.select("."+g.chartBars).selectAll("."+g.chartBar).data(e).attr("class",u),r=o.enter().append("g").style("opacity",0).attr("class",u),r.append("g").attr("class",c),n=a.select("."+g.chartLines).selectAll("."+g.chartLine).data(e).attr("class",l),t=n.enter().append("g").style("opacity",0).attr("class",l),t.append("g").attr("class",p),t.append("g").attr("class",f),a.selectAll("."+g.brush+" rect").attr(s.axis_rotated?"width":"height",s.axis_rotated?i.width2:i.height2))},f.updateBarForSubchart=function(e){var t=this;t.contextBar=t.context.selectAll("."+g.bars).selectAll("."+g.bar).data(t.barData.bind(t)),t.contextBar.enter().append("path").attr("class",t.classBar.bind(t)).style("stroke","none").style("fill",t.color),t.contextBar.style("opacity",t.initialOpacity.bind(t)),t.contextBar.exit().transition().duration(e).style("opacity",0).remove()},f.redrawBarForSubchart=function(e,t,n){(t?this.contextBar.transition(Math.random().toString()).duration(n):this.contextBar).attr("d",e).style("opacity",1)},f.updateLineForSubchart=function(e){var t=this;t.contextLine=t.context.selectAll("."+g.lines).selectAll("."+g.line).data(t.lineData.bind(t)),t.contextLine.enter().append("path").attr("class",t.classLine.bind(t)).style("stroke",t.color),t.contextLine.style("opacity",t.initialOpacity.bind(t)),t.contextLine.exit().transition().duration(e).style("opacity",0).remove()},f.redrawLineForSubchart=function(e,t,n){(t?this.contextLine.transition(Math.random().toString()).duration(n):this.contextLine).attr("d",e).style("opacity",1)},f.updateAreaForSubchart=function(e){var t=this,n=t.d3;t.contextArea=t.context.selectAll("."+g.areas).selectAll("."+g.area).data(t.lineData.bind(t)),t.contextArea.enter().append("path").attr("class",t.classArea.bind(t)).style("fill",t.color).style("opacity",function(){return t.orgAreaOpacity=+n.select(this).style("opacity"),0}),t.contextArea.style("opacity",0),t.contextArea.exit().transition().duration(e).style("opacity",0).remove()},f.redrawAreaForSubchart=function(e,t,n){(t?this.contextArea.transition(Math.random().toString()).duration(n):this.contextArea).attr("d",e).style("fill",this.color).style("opacity",this.orgAreaOpacity)},f.redrawSubchart=function(e,t,n,r,o,i,a){var s,u,c,l=this,p=l.d3,f=l.config;l.context.style("visibility",f.subchart_show?"visible":"hidden"),f.subchart_show&&(p.event&&"zoom"===p.event.type&&l.brush.extent(l.x.orgDomain()).update(),e&&(l.brush.empty()||l.brush.extent(l.x.orgDomain()).update(),s=l.generateDrawArea(o,!0),u=l.generateDrawBar(i,!0),c=l.generateDrawLine(a,!0),l.updateBarForSubchart(n),l.updateLineForSubchart(n),l.updateAreaForSubchart(n),l.redrawBarForSubchart(u,n,n),l.redrawLineForSubchart(c,n,n),l.redrawAreaForSubchart(s,n,n)))},f.redrawForBrush=function(){var e=this,t=e.x;e.redraw({withTransition:!1,withY:e.config.zoom_rescale,withSubchart:!1,withUpdateXDomain:!0,withDimension:!1}),e.config.subchart_onbrush.call(e.api,t.orgDomain())},f.transformContext=function(e,t){var n,r=this;t&&t.axisSubX?n=t.axisSubX:(n=r.context.select("."+g.axisX),e&&(n=n.transition())),r.context.attr("transform",r.getTranslate("context")),n.attr("transform",r.getTranslate("subx"))},f.getDefaultExtent=function(){var e=this,t=e.config,n=y(t.axis_x_extent)?t.axis_x_extent(e.getXDomain(e.data.targets)):t.axis_x_extent;return e.isTimeSeries()&&(n=[e.parseDate(n[0]),e.parseDate(n[1])]),n},f.initZoom=function(){var e,t=this,n=t.d3,r=t.config;t.zoom=n.behavior.zoom().on("zoomstart",function(){e=n.event.sourceEvent,t.zoom.altDomain=n.event.sourceEvent.altKey?t.x.orgDomain():null,r.zoom_onzoomstart.call(t.api,n.event.sourceEvent)}).on("zoom",function(){t.redrawForZoom.call(t)}).on("zoomend",function(){var o=n.event.sourceEvent;o&&e.clientX===o.clientX&&e.clientY===o.clientY||(t.redrawEventRect(),t.updateZoom(),r.zoom_onzoomend.call(t.api,t.x.orgDomain()))}),t.zoom.scale=function(e){return r.axis_rotated?this.y(e):this.x(e)},t.zoom.orgScaleExtent=function(){var e=r.zoom_extent?r.zoom_extent:[1,10];return[e[0],Math.max(t.getMaxDataCount()/e[1],e[1])]},t.zoom.updateScaleExtent=function(){var e=C(t.x.orgDomain())/C(t.getZoomDomain()),n=this.orgScaleExtent();return this.scaleExtent([n[0]*e,n[1]*e]),this}},f.getZoomDomain=function(){var e=this,t=e.config,n=e.d3,r=n.min([e.orgXDomain[0],t.zoom_x_min]),o=n.max([e.orgXDomain[1],t.zoom_x_max]);return[r,o]},f.updateZoom=function(){var e=this,t=e.config.zoom_enabled?e.zoom:function(){};e.main.select("."+g.zoomRect).call(t).on("dblclick.zoom",null),e.main.selectAll("."+g.eventRect).call(t).on("dblclick.zoom",null)},f.redrawForZoom=function(){var e=this,t=e.d3,n=e.config,r=e.zoom,o=e.x;if(n.zoom_enabled&&0!==e.filterTargetsToShow(e.data.targets).length){if("mousemove"===t.event.sourceEvent.type&&r.altDomain)return o.domain(r.altDomain),void r.scale(o).updateScaleExtent();e.isCategorized()&&o.orgDomain()[0]===e.orgXDomain[0]&&o.domain([e.orgXDomain[0]-1e-10,o.orgDomain()[1]]),e.redraw({withTransition:!1,withY:n.zoom_rescale,withSubchart:!1,withEventRect:!1,withDimension:!1}),"mousemove"===t.event.sourceEvent.type&&(e.cancelClick=!0),n.zoom_onzoom.call(e.api,o.orgDomain())}},f.generateColor=function(){var e=this,t=e.config,n=e.d3,r=t.data_colors,o=S(t.color_pattern)?t.color_pattern:n.scale.category10().range(),i=t.data_color,a=[];return function(e){var t,n=e.id||e.data&&e.data.id||e;return r[n]instanceof Function?t=r[n](e):r[n]?t=r[n]:(a.indexOf(n)<0&&a.push(n),t=o[a.indexOf(n)%o.length],r[n]=t),i instanceof Function?i(t,e):t}},f.generateLevelColor=function(){var e=this,t=e.config,n=t.color_pattern,r=t.color_threshold,o="value"===r.unit,i=r.values&&r.values.length?r.values:[],a=r.max||100;return S(t.color_threshold)?function(e){var t,r,s=n[n.length-1];for(t=0;t<i.length;t++)if(r=o?e:100*e/a,r<i[t]){s=n[t];break}return s}:null},f.getYFormat=function(e){var t=this,n=e&&!t.hasType("gauge")?t.defaultArcValueFormat:t.yFormat,r=e&&!t.hasType("gauge")?t.defaultArcValueFormat:t.y2Format;return function(e,o,i){var a="y2"===t.axis.getId(i)?r:n;return a.call(t,e,o)}},f.yFormat=function(e){var t=this,n=t.config,r=n.axis_y_tick_format?n.axis_y_tick_format:t.defaultValueFormat;return r(e)},f.y2Format=function(e){var t=this,n=t.config,r=n.axis_y2_tick_format?n.axis_y2_tick_format:t.defaultValueFormat;return r(e)},f.defaultValueFormat=function(e){return m(e)?+e:""},f.defaultArcValueFormat=function(e,t){return(100*t).toFixed(1)+"%"},f.dataLabelFormat=function(e){var t,n=this,r=n.config.data_labels,o=function(e){return m(e)?+e:""};return t="function"==typeof r.format?r.format:"object"==typeof r.format?r.format[e]?r.format[e]===!0?o:r.format[e]:function(){return""}:o},f.hasCaches=function(e){for(var t=0;t<e.length;t++)if(!(e[t]in this.cache))return!1;return!0},f.addCache=function(e,t){this.cache[e]=this.cloneTarget(t)},f.getCaches=function(e){var t,n=[];for(t=0;t<e.length;t++)e[t]in this.cache&&n.push(this.cloneTarget(this.cache[e[t]]));return n};var g=f.CLASS={target:"c3-target",chart:"c3-chart",chartLine:"c3-chart-line",chartLines:"c3-chart-lines",chartBar:"c3-chart-bar",chartBars:"c3-chart-bars",chartText:"c3-chart-text",chartTexts:"c3-chart-texts",chartArc:"c3-chart-arc",chartArcs:"c3-chart-arcs",chartArcsTitle:"c3-chart-arcs-title",chartArcsBackground:"c3-chart-arcs-background",chartArcsGaugeUnit:"c3-chart-arcs-gauge-unit",chartArcsGaugeMax:"c3-chart-arcs-gauge-max",chartArcsGaugeMin:"c3-chart-arcs-gauge-min",selectedCircle:"c3-selected-circle",selectedCircles:"c3-selected-circles",eventRect:"c3-event-rect",eventRects:"c3-event-rects",eventRectsSingle:"c3-event-rects-single",eventRectsMultiple:"c3-event-rects-multiple",zoomRect:"c3-zoom-rect",brush:"c3-brush",focused:"c3-focused",defocused:"c3-defocused",region:"c3-region",regions:"c3-regions",title:"c3-title",tooltipContainer:"c3-tooltip-container",tooltip:"c3-tooltip",tooltipName:"c3-tooltip-name",shape:"c3-shape",shapes:"c3-shapes",line:"c3-line",lines:"c3-lines",bar:"c3-bar",bars:"c3-bars",circle:"c3-circle",circles:"c3-circles",arc:"c3-arc",arcs:"c3-arcs",area:"c3-area",areas:"c3-areas",empty:"c3-empty",text:"c3-text",texts:"c3-texts",gaugeValue:"c3-gauge-value",grid:"c3-grid",gridLines:"c3-grid-lines",xgrid:"c3-xgrid",xgrids:"c3-xgrids",xgridLine:"c3-xgrid-line",xgridLines:"c3-xgrid-lines",xgridFocus:"c3-xgrid-focus",ygrid:"c3-ygrid",ygrids:"c3-ygrids",ygridLine:"c3-ygrid-line",ygridLines:"c3-ygrid-lines",axis:"c3-axis",axisX:"c3-axis-x",axisXLabel:"c3-axis-x-label",axisY:"c3-axis-y",axisYLabel:"c3-axis-y-label",axisY2:"c3-axis-y2",axisY2Label:"c3-axis-y2-label",legendBackground:"c3-legend-background",legendItem:"c3-legend-item",legendItemEvent:"c3-legend-item-event",legendItemTile:"c3-legend-item-tile",legendItemHidden:"c3-legend-item-hidden",legendItemFocused:"c3-legend-item-focused",dragarea:"c3-dragarea",EXPANDED:"_expanded_",SELECTED:"_selected_",INCLUDED:"_included_"};f.generateClass=function(e,t){return" "+e+" "+e+this.getTargetSelectorSuffix(t)},f.classText=function(e){return this.generateClass(g.text,e.index)},f.classTexts=function(e){return this.generateClass(g.texts,e.id)},f.classShape=function(e){return this.generateClass(g.shape,e.index)},f.classShapes=function(e){return this.generateClass(g.shapes,e.id)},f.classLine=function(e){return this.classShape(e)+this.generateClass(g.line,e.id)},f.classLines=function(e){return this.classShapes(e)+this.generateClass(g.lines,e.id)},f.classCircle=function(e){return this.classShape(e)+this.generateClass(g.circle,e.index)},f.classCircles=function(e){return this.classShapes(e)+this.generateClass(g.circles,e.id)},f.classBar=function(e){return this.classShape(e)+this.generateClass(g.bar,e.index)},f.classBars=function(e){return this.classShapes(e)+this.generateClass(g.bars,e.id)},f.classArc=function(e){return this.classShape(e.data)+this.generateClass(g.arc,e.data.id)},f.classArcs=function(e){return this.classShapes(e.data)+this.generateClass(g.arcs,e.data.id)},f.classArea=function(e){return this.classShape(e)+this.generateClass(g.area,e.id)},f.classAreas=function(e){return this.classShapes(e)+this.generateClass(g.areas,e.id)},f.classRegion=function(e,t){return this.generateClass(g.region,t)+" "+("class"in e?e.class:"")},f.classEvent=function(e){return this.generateClass(g.eventRect,e.index)},f.classTarget=function(e){var t=this,n=t.config.data_classes[e],r="";return n&&(r=" "+g.target+"-"+n),t.generateClass(g.target,e)+r},f.classFocus=function(e){return this.classFocused(e)+this.classDefocused(e)},f.classFocused=function(e){return" "+(this.focusedTargetIds.indexOf(e.id)>=0?g.focused:"")},f.classDefocused=function(e){return" "+(this.defocusedTargetIds.indexOf(e.id)>=0?g.defocused:"")},f.classChartText=function(e){return g.chartText+this.classTarget(e.id)},f.classChartLine=function(e){return g.chartLine+this.classTarget(e.id)},f.classChartBar=function(e){return g.chartBar+this.classTarget(e.id)},f.classChartArc=function(e){return g.chartArc+this.classTarget(e.data.id)},f.getTargetSelectorSuffix=function(e){return e||0===e?("-"+e).replace(/[\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\]/g,"-"):""},f.selectorTarget=function(e,t){return(t||"")+"."+g.target+this.getTargetSelectorSuffix(e)},f.selectorTargets=function(e,t){var n=this;return e=e||[],e.length?e.map(function(e){return n.selectorTarget(e,t)}):null},f.selectorLegend=function(e){return"."+g.legendItem+this.getTargetSelectorSuffix(e)},f.selectorLegends=function(e){var t=this;return e&&e.length?e.map(function(e){return t.selectorLegend(e)}):null};var m=f.isValue=function(e){return e||0===e},y=f.isFunction=function(e){return"function"==typeof e},v=f.isString=function(e){return"string"==typeof e},_=f.isUndefined=function(e){return"undefined"==typeof e},b=f.isDefined=function(e){return"undefined"!=typeof e},E=f.ceil10=function(e){return 10*Math.ceil(e/10)},x=f.asHalfPixel=function(e){return Math.ceil(e)+.5},C=f.diffDomain=function(e){return e[1]-e[0]},w=f.isEmpty=function(e){return"undefined"==typeof e||null===e||v(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length},S=f.notEmpty=function(e){return!f.isEmpty(e)},O=f.getOption=function(e,t,n){return b(e[t])?e[t]:n},T=f.hasValue=function(e,t){var n=!1;return Object.keys(e).forEach(function(r){e[r]===t&&(n=!0)}),n},P=f.sanitise=function(e){return"string"==typeof e?e.replace(/</g,"&lt;").replace(/>/g,"&gt;"):e},R=f.getPathBox=function(e){var t=e.getBoundingClientRect(),n=[e.pathSegList.getItem(0),e.pathSegList.getItem(1)],r=n[0].x,o=Math.min(n[0].y,n[1].y);return{x:r,y:o,width:t.width,height:t.height}};p.focus=function(e){var t,n=this.internal;e=n.mapToTargetIds(e),t=n.svg.selectAll(n.selectorTargets(e.filter(n.isTargetToShow,n))),this.revert(),this.defocus(),t.classed(g.focused,!0).classed(g.defocused,!1),n.hasArcType()&&n.expandArc(e),n.toggleFocusLegend(e,!0),n.focusedTargetIds=e,n.defocusedTargetIds=n.defocusedTargetIds.filter(function(t){return e.indexOf(t)<0})},p.defocus=function(e){var t,n=this.internal;e=n.mapToTargetIds(e),t=n.svg.selectAll(n.selectorTargets(e.filter(n.isTargetToShow,n))),t.classed(g.focused,!1).classed(g.defocused,!0),n.hasArcType()&&n.unexpandArc(e),n.toggleFocusLegend(e,!1),n.focusedTargetIds=n.focusedTargetIds.filter(function(t){return e.indexOf(t)<0}),n.defocusedTargetIds=e},p.revert=function(e){var t,n=this.internal;e=n.mapToTargetIds(e),t=n.svg.selectAll(n.selectorTargets(e)),t.classed(g.focused,!1).classed(g.defocused,!1),n.hasArcType()&&n.unexpandArc(e),n.config.legend_show&&(n.showLegend(e.filter(n.isLegendToShow.bind(n))),n.legend.selectAll(n.selectorLegends(e)).filter(function(){return n.d3.select(this).classed(g.legendItemFocused)}).classed(g.legendItemFocused,!1)),n.focusedTargetIds=[],n.defocusedTargetIds=[]},p.show=function(e,t){var n,r=this.internal;e=r.mapToTargetIds(e),t=t||{},r.removeHiddenTargetIds(e),n=r.svg.selectAll(r.selectorTargets(e)),n.transition().style("opacity",1,"important").call(r.endall,function(){n.style("opacity",null).style("opacity",1)}),t.withLegend&&r.showLegend(e),r.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0})},p.hide=function(e,t){var n,r=this.internal;e=r.mapToTargetIds(e),t=t||{},r.addHiddenTargetIds(e),n=r.svg.selectAll(r.selectorTargets(e)),n.transition().style("opacity",0,"important").call(r.endall,function(){n.style("opacity",null).style("opacity",0)}),t.withLegend&&r.hideLegend(e),r.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0})},p.toggle=function(e,t){var n=this,r=this.internal;r.mapToTargetIds(e).forEach(function(e){r.isTargetToShow(e)?n.hide(e,t):n.show(e,t)})},p.zoom=function(e){var t=this.internal;return e&&(t.isTimeSeries()&&(e=e.map(function(e){return t.parseDate(e)})),t.brush.extent(e),t.redraw({withUpdateXDomain:!0,withY:t.config.zoom_rescale}),t.config.zoom_onzoom.call(this,t.x.orgDomain())),t.brush.extent()},p.zoom.enable=function(e){var t=this.internal;t.config.zoom_enabled=e,t.updateAndRedraw()},p.unzoom=function(){var e=this.internal;e.brush.clear().update(),e.redraw({withUpdateXDomain:!0})},p.zoom.max=function(e){var t=this.internal,n=t.config,r=t.d3;return 0===e||e?void(n.zoom_x_max=r.max([t.orgXDomain[1],e])):n.zoom_x_max},p.zoom.min=function(e){var t=this.internal,n=t.config,r=t.d3;return 0===e||e?void(n.zoom_x_min=r.min([t.orgXDomain[0],e])):n.zoom_x_min},p.zoom.range=function(e){return arguments.length?(b(e.max)&&this.domain.max(e.max),void(b(e.min)&&this.domain.min(e.min))):{max:this.domain.max(),min:this.domain.min()}},p.load=function(e){var t=this.internal,n=t.config;return e.xs&&t.addXs(e.xs),"names"in e&&p.data.names.bind(this)(e.names),"classes"in e&&Object.keys(e.classes).forEach(function(t){n.data_classes[t]=e.classes[t]}),"categories"in e&&t.isCategorized()&&(n.axis_x_categories=e.categories),"axes"in e&&Object.keys(e.axes).forEach(function(t){n.data_axes[t]=e.axes[t]}),"colors"in e&&Object.keys(e.colors).forEach(function(t){n.data_colors[t]=e.colors[t]}),"cacheIds"in e&&t.hasCaches(e.cacheIds)?void t.load(t.getCaches(e.cacheIds),e.done):void("unload"in e?t.unload(t.mapToTargetIds("boolean"==typeof e.unload&&e.unload?null:e.unload),function(){t.loadFromArgs(e)}):t.loadFromArgs(e))},p.unload=function(e){var t=this.internal;e=e||{},e instanceof Array?e={ids:e}:"string"==typeof e&&(e={ids:[e]}),t.unload(t.mapToTargetIds(e.ids),function(){t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),e.done&&e.done()})},p.flow=function(e){var t,n,r,o,i,a,s,u,c=this.internal,l=[],p=c.getMaxDataCount(),f=0,d=0;if(e.json)n=c.convertJsonToData(e.json,e.keys);else if(e.rows)n=c.convertRowsToData(e.rows);else{if(!e.columns)return;n=c.convertColumnsToData(e.columns)}t=c.convertDataToTargets(n,!0),c.data.targets.forEach(function(e){var n,r,o=!1;for(n=0;n<t.length;n++)if(e.id===t[n].id){for(o=!0,e.values[e.values.length-1]&&(d=e.values[e.values.length-1].index+1),f=t[n].values.length,r=0;r<f;r++)t[n].values[r].index=d+r,c.isTimeSeries()||(t[n].values[r].x=d+r);e.values=e.values.concat(t[n].values),t.splice(n,1);break}o||l.push(e.id)}),c.data.targets.forEach(function(e){var t,n;for(t=0;t<l.length;t++)if(e.id===l[t])for(d=e.values[e.values.length-1].index+1,n=0;n<f;n++)e.values.push({id:e.id,index:d+n,x:c.isTimeSeries()?c.getOtherTargetX(d+n):d+n,value:null})}),c.data.targets.length&&t.forEach(function(e){var t,n=[];for(t=c.data.targets[0].values[0].index;t<d;t++)n.push({id:e.id,index:t,x:c.isTimeSeries()?c.getOtherTargetX(t):t,value:null});e.values.forEach(function(e){e.index+=d,c.isTimeSeries()||(e.x+=d)}),e.values=n.concat(e.values)}),c.data.targets=c.data.targets.concat(t),r=c.getMaxDataCount(),i=c.data.targets[0],a=i.values[0],b(e.to)?(f=0,u=c.isTimeSeries()?c.parseDate(e.to):e.to,i.values.forEach(function(e){e.x<u&&f++})):b(e.length)&&(f=e.length),p?1===p&&c.isTimeSeries()&&(s=(i.values[i.values.length-1].x-a.x)/2,o=[new Date(+a.x-s),new Date(+a.x+s)],c.updateXDomain(null,!0,!0,!1,o)):(s=c.isTimeSeries()?i.values.length>1?i.values[i.values.length-1].x-a.x:a.x-c.getXDomain(c.data.targets)[0]:1,o=[a.x-s,a.x],c.updateXDomain(null,!0,!0,!1,o)),c.updateTargets(c.data.targets),c.redraw({flow:{index:a.index,length:f,duration:m(e.duration)?e.duration:c.config.transition_duration,done:e.done,orgDataCount:p},withLegend:!0,withTransition:p>1,withTrimXDomain:!1,withUpdateXAxis:!0})},f.generateFlow=function(e){var t=this,n=t.config,r=t.d3;return function(){var o,i,a,s=e.targets,u=e.flow,c=e.drawBar,l=e.drawLine,p=e.drawArea,f=e.cx,d=e.cy,h=e.xv,m=e.xForText,y=e.yForText,v=e.duration,_=1,b=u.index,E=u.length,x=t.getValueOnIndex(t.data.targets[0].values,b),w=t.getValueOnIndex(t.data.targets[0].values,b+E),S=t.x.domain(),O=u.duration||v,T=u.done||function(){},P=t.generateWait(),R=t.xgrid||r.selectAll([]),N=t.xgridLines||r.selectAll([]),A=t.mainRegion||r.selectAll([]),M=t.mainText||r.selectAll([]),D=t.mainBar||r.selectAll([]),I=t.mainLine||r.selectAll([]),L=t.mainArea||r.selectAll([]),k=t.mainCircle||r.selectAll([]);t.flowing=!0,t.data.targets.forEach(function(e){e.values.splice(0,E)}),a=t.updateXDomain(s,!0,!0),t.updateXGrid&&t.updateXGrid(!0),u.orgDataCount?o=1===u.orgDataCount||(x&&x.x)===(w&&w.x)?t.x(S[0])-t.x(a[0]):t.isTimeSeries()?t.x(S[0])-t.x(a[0]):t.x(x.x)-t.x(w.x):1!==t.data.targets[0].values.length?o=t.x(S[0])-t.x(a[0]):t.isTimeSeries()?(x=t.getValueOnIndex(t.data.targets[0].values,0),w=t.getValueOnIndex(t.data.targets[0].values,t.data.targets[0].values.length-1),o=t.x(x.x)-t.x(w.x)):o=C(a)/2,_=C(S)/C(a),i="translate("+o+",0) scale("+_+",1)",t.hideXGridFocus(),r.transition().ease("linear").duration(O).each(function(){P.add(t.axes.x.transition().call(t.xAxis)),P.add(D.transition().attr("transform",i)),P.add(I.transition().attr("transform",i)),P.add(L.transition().attr("transform",i)),P.add(k.transition().attr("transform",i)),P.add(M.transition().attr("transform",i)),P.add(A.filter(t.isRegionOnX).transition().attr("transform",i)),P.add(R.transition().attr("transform",i)),P.add(N.transition().attr("transform",i))}).call(P,function(){var e,r=[],o=[],i=[];if(E){for(e=0;e<E;e++)r.push("."+g.shape+"-"+(b+e)),o.push("."+g.text+"-"+(b+e)),i.push("."+g.eventRect+"-"+(b+e));t.svg.selectAll("."+g.shapes).selectAll(r).remove(),t.svg.selectAll("."+g.texts).selectAll(o).remove(),t.svg.selectAll("."+g.eventRects).selectAll(i).remove(),t.svg.select("."+g.xgrid).remove()}R.attr("transform",null).attr(t.xgridAttr),N.attr("transform",null),N.select("line").attr("x1",n.axis_rotated?0:h).attr("x2",n.axis_rotated?t.width:h),N.select("text").attr("x",n.axis_rotated?t.width:0).attr("y",h),D.attr("transform",null).attr("d",c),I.attr("transform",null).attr("d",l),L.attr("transform",null).attr("d",p),k.attr("transform",null).attr("cx",f).attr("cy",d),M.attr("transform",null).attr("x",m).attr("y",y).style("fill-opacity",t.opacityForText.bind(t)),A.attr("transform",null),A.select("rect").filter(t.isRegionOnX).attr("x",t.regionX.bind(t)).attr("width",t.regionWidth.bind(t)),n.interaction_enabled&&t.redrawEventRect(),T(),t.flowing=!1})}},p.selected=function(e){var t=this.internal,n=t.d3;return n.merge(t.main.selectAll("."+g.shapes+t.getTargetSelectorSuffix(e)).selectAll("."+g.shape).filter(function(){return n.select(this).classed(g.SELECTED)}).map(function(e){return e.map(function(e){var t=e.__data__;return t.data?t.data:t})}))},p.select=function(e,t,n){var r=this.internal,o=r.d3,i=r.config;i.data_selection_enabled&&r.main.selectAll("."+g.shapes).selectAll("."+g.shape).each(function(a,s){var u=o.select(this),c=a.data?a.data.id:a.id,l=r.getToggle(this,a).bind(r),p=i.data_selection_grouped||!e||e.indexOf(c)>=0,f=!t||t.indexOf(s)>=0,d=u.classed(g.SELECTED);u.classed(g.line)||u.classed(g.area)||(p&&f?i.data_selection_isselectable(a)&&!d&&l(!0,u.classed(g.SELECTED,!0),a,s):b(n)&&n&&d&&l(!1,u.classed(g.SELECTED,!1),a,s))})},p.unselect=function(e,t){var n=this.internal,r=n.d3,o=n.config;o.data_selection_enabled&&n.main.selectAll("."+g.shapes).selectAll("."+g.shape).each(function(i,a){var s=r.select(this),u=i.data?i.data.id:i.id,c=n.getToggle(this,i).bind(n),l=o.data_selection_grouped||!e||e.indexOf(u)>=0,p=!t||t.indexOf(a)>=0,f=s.classed(g.SELECTED);s.classed(g.line)||s.classed(g.area)||l&&p&&o.data_selection_isselectable(i)&&f&&c(!1,s.classed(g.SELECTED,!1),i,a)})},p.transform=function(e,t){var n=this.internal,r=["pie","donut"].indexOf(e)>=0?{withTransform:!0}:null;n.transformTo(t,e,r)},f.transformTo=function(e,t,n){var r=this,o=!r.hasArcType(),i=n||{withTransitionForAxis:o};i.withTransitionForTransform=!1,r.transiting=!1,r.setTargetType(e,t),r.updateTargets(r.data.targets),r.updateAndRedraw(i)},p.groups=function(e){var t=this.internal,n=t.config;return _(e)?n.data_groups:(n.data_groups=e,t.redraw(),n.data_groups)},p.xgrids=function(e){var t=this.internal,n=t.config;return e?(n.grid_x_lines=e,t.redrawWithoutRescale(),n.grid_x_lines):n.grid_x_lines},p.xgrids.add=function(e){var t=this.internal;return this.xgrids(t.config.grid_x_lines.concat(e?e:[]))},p.xgrids.remove=function(e){var t=this.internal;t.removeGridLines(e,!0)},p.ygrids=function(e){var t=this.internal,n=t.config;return e?(n.grid_y_lines=e,t.redrawWithoutRescale(),n.grid_y_lines):n.grid_y_lines},p.ygrids.add=function(e){var t=this.internal;return this.ygrids(t.config.grid_y_lines.concat(e?e:[]))},p.ygrids.remove=function(e){var t=this.internal;t.removeGridLines(e,!1)},p.regions=function(e){var t=this.internal,n=t.config;return e?(n.regions=e,t.redrawWithoutRescale(),n.regions):n.regions},p.regions.add=function(e){var t=this.internal,n=t.config;return e?(n.regions=n.regions.concat(e),t.redrawWithoutRescale(),n.regions):n.regions},p.regions.remove=function(e){var t,n,r,o=this.internal,i=o.config;return e=e||{},t=o.getOption(e,"duration",i.transition_duration),n=o.getOption(e,"classes",[g.region]),r=o.main.select("."+g.regions).selectAll(n.map(function(e){return"."+e})),(t?r.transition().duration(t):r).style("opacity",0).remove(),i.regions=i.regions.filter(function(e){var t=!1;return!e.class||(e.class.split(" ").forEach(function(e){n.indexOf(e)>=0&&(t=!0)}),!t)}),i.regions},p.data=function(e){var t=this.internal.data.targets;return"undefined"==typeof e?t:t.filter(function(t){return[].concat(e).indexOf(t.id)>=0})},p.data.shown=function(e){return this.internal.filterTargetsToShow(this.data(e))},p.data.values=function(e){var t,n=null;return e&&(t=this.data(e),n=t[0]?t[0].values.map(function(e){return e.value}):null),n},p.data.names=function(e){return this.internal.clearLegendItemTextBoxCache(),this.internal.updateDataAttributes("names",e)},p.data.colors=function(e){return this.internal.updateDataAttributes("colors",e)},p.data.axes=function(e){return this.internal.updateDataAttributes("axes",e)},p.category=function(e,t){var n=this.internal,r=n.config;return arguments.length>1&&(r.axis_x_categories[e]=t,n.redraw()),r.axis_x_categories[e]},p.categories=function(e){var t=this.internal,n=t.config;return arguments.length?(n.axis_x_categories=e,t.redraw(),n.axis_x_categories):n.axis_x_categories},p.color=function(e){var t=this.internal;return t.color(e)},p.x=function(e){var t=this.internal;return arguments.length&&(t.updateTargetX(t.data.targets,e),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),t.data.xs},p.xs=function(e){var t=this.internal;return arguments.length&&(t.updateTargetXs(t.data.targets,e),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),t.data.xs},p.axis=function(){},p.axis.labels=function(e){var t=this.internal;arguments.length&&(Object.keys(e).forEach(function(n){t.axis.setLabelText(n,e[n])}),t.axis.updateLabels())},p.axis.max=function(e){var t=this.internal,n=t.config;return arguments.length?("object"==typeof e?(m(e.x)&&(n.axis_x_max=e.x),m(e.y)&&(n.axis_y_max=e.y),m(e.y2)&&(n.axis_y2_max=e.y2)):n.axis_y_max=n.axis_y2_max=e,void t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})):{x:n.axis_x_max,y:n.axis_y_max,y2:n.axis_y2_max}},p.axis.min=function(e){var t=this.internal,n=t.config;return arguments.length?("object"==typeof e?(m(e.x)&&(n.axis_x_min=e.x),m(e.y)&&(n.axis_y_min=e.y),m(e.y2)&&(n.axis_y2_min=e.y2)):n.axis_y_min=n.axis_y2_min=e,void t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})):{x:n.axis_x_min,y:n.axis_y_min,y2:n.axis_y2_min}},p.axis.range=function(e){return arguments.length?(b(e.max)&&this.axis.max(e.max),void(b(e.min)&&this.axis.min(e.min))):{max:this.axis.max(),min:this.axis.min()}},p.legend=function(){},p.legend.show=function(e){var t=this.internal;t.showLegend(t.mapToTargetIds(e)),t.updateAndRedraw({withLegend:!0})},p.legend.hide=function(e){var t=this.internal;t.hideLegend(t.mapToTargetIds(e)),t.updateAndRedraw({withLegend:!0})},p.resize=function(e){var t=this.internal,n=t.config;n.size_width=e?e.width:null,n.size_height=e?e.height:null,this.flush()},p.flush=function(){var e=this.internal;e.updateAndRedraw({withLegend:!0,withTransition:!1,withTransitionForTransform:!1})},p.destroy=function(){var e=this.internal;if(o.clearInterval(e.intervalForObserveInserted),void 0!==e.resizeTimeout&&o.clearTimeout(e.resizeTimeout),o.detachEvent)o.detachEvent("onresize",e.resizeFunction);else if(o.removeEventListener)o.removeEventListener("resize",e.resizeFunction);else{var t=o.onresize;t&&t.add&&t.remove&&t.remove(e.resizeFunction)}return e.selectChart.classed("c3",!1).html(""),Object.keys(e).forEach(function(t){e[t]=null}),null},p.tooltip=function(){},p.tooltip.show=function(e){var t,n,r=this.internal;e.mouse&&(n=e.mouse),e.data?r.isMultipleX()?(n=[r.x(e.data.x),r.getYScale(e.data.id)(e.data.value)],t=null):t=m(e.data.index)?e.data.index:r.getIndexByX(e.data.x):"undefined"!=typeof e.x?t=r.getIndexByX(e.x):"undefined"!=typeof e.index&&(t=e.index),r.dispatchEvent("mouseover",t,n),r.dispatchEvent("mousemove",t,n),r.config.tooltip_onshow.call(r,e.data)},p.tooltip.hide=function(){this.internal.dispatchEvent("mouseout",0),this.internal.config.tooltip_onhide.call(this)};var N;f.isSafari=function(){var e=o.navigator.userAgent;return e.indexOf("Safari")>=0&&e.indexOf("Chrome")<0},f.isChrome=function(){var e=o.navigator.userAgent;return e.indexOf("Chrome")>=0},Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,r=function(){},o=function(){return n.apply(this instanceof r?this:e,t.concat(Array.prototype.slice.call(arguments)))};return r.prototype=this.prototype,o.prototype=new r,o}),function(){"SVGPathSeg"in o||(o.SVGPathSeg=function(e,t,n){this.pathSegType=e,this.pathSegTypeAsLetter=t,this._owningPathSegList=n},SVGPathSeg.PATHSEG_UNKNOWN=0,SVGPathSeg.PATHSEG_CLOSEPATH=1,SVGPathSeg.PATHSEG_MOVETO_ABS=2,SVGPathSeg.PATHSEG_MOVETO_REL=3,SVGPathSeg.PATHSEG_LINETO_ABS=4,SVGPathSeg.PATHSEG_LINETO_REL=5,SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS=6,SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL=7,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS=8,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL=9,SVGPathSeg.PATHSEG_ARC_ABS=10,SVGPathSeg.PATHSEG_ARC_REL=11,SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS=12,SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL=13,SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS=14,SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL=15,SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS=16,SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL=17,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS=18,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL=19,SVGPathSeg.prototype._segmentChanged=function(){this._owningPathSegList&&this._owningPathSegList.segmentChanged(this)},o.SVGPathSegClosePath=function(e){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CLOSEPATH,"z",e)},SVGPathSegClosePath.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegClosePath.prototype.toString=function(){return"[object SVGPathSegClosePath]"},SVGPathSegClosePath.prototype._asPathString=function(){return this.pathSegTypeAsLetter},SVGPathSegClosePath.prototype.clone=function(){return new SVGPathSegClosePath((void 0))},o.SVGPathSegMovetoAbs=function(e,t,n){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_MOVETO_ABS,"M",e),this._x=t,this._y=n},SVGPathSegMovetoAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegMovetoAbs.prototype.toString=function(){return"[object SVGPathSegMovetoAbs]"},SVGPathSegMovetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},SVGPathSegMovetoAbs.prototype.clone=function(){return new SVGPathSegMovetoAbs((void 0),this._x,this._y)},Object.defineProperty(SVGPathSegMovetoAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged();
14
- },enumerable:!0}),Object.defineProperty(SVGPathSegMovetoAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegMovetoRel=function(e,t,n){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_MOVETO_REL,"m",e),this._x=t,this._y=n},SVGPathSegMovetoRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegMovetoRel.prototype.toString=function(){return"[object SVGPathSegMovetoRel]"},SVGPathSegMovetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},SVGPathSegMovetoRel.prototype.clone=function(){return new SVGPathSegMovetoRel((void 0),this._x,this._y)},Object.defineProperty(SVGPathSegMovetoRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegMovetoRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegLinetoAbs=function(e,t,n){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_LINETO_ABS,"L",e),this._x=t,this._y=n},SVGPathSegLinetoAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegLinetoAbs.prototype.toString=function(){return"[object SVGPathSegLinetoAbs]"},SVGPathSegLinetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},SVGPathSegLinetoAbs.prototype.clone=function(){return new SVGPathSegLinetoAbs((void 0),this._x,this._y)},Object.defineProperty(SVGPathSegLinetoAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegLinetoAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegLinetoRel=function(e,t,n){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_LINETO_REL,"l",e),this._x=t,this._y=n},SVGPathSegLinetoRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegLinetoRel.prototype.toString=function(){return"[object SVGPathSegLinetoRel]"},SVGPathSegLinetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},SVGPathSegLinetoRel.prototype.clone=function(){return new SVGPathSegLinetoRel((void 0),this._x,this._y)},Object.defineProperty(SVGPathSegLinetoRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegLinetoRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegCurvetoCubicAbs=function(e,t,n,r,o,i,a){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS,"C",e),this._x=t,this._y=n,this._x1=r,this._y1=o,this._x2=i,this._y2=a},SVGPathSegCurvetoCubicAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoCubicAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicAbs]"},SVGPathSegCurvetoCubicAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},SVGPathSegCurvetoCubicAbs.prototype.clone=function(){return new SVGPathSegCurvetoCubicAbs((void 0),this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(SVGPathSegCurvetoCubicAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicAbs.prototype,"x1",{get:function(){return this._x1},set:function(e){this._x1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicAbs.prototype,"y1",{get:function(){return this._y1},set:function(e){this._y1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicAbs.prototype,"x2",{get:function(){return this._x2},set:function(e){this._x2=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicAbs.prototype,"y2",{get:function(){return this._y2},set:function(e){this._y2=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegCurvetoCubicRel=function(e,t,n,r,o,i,a){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL,"c",e),this._x=t,this._y=n,this._x1=r,this._y1=o,this._x2=i,this._y2=a},SVGPathSegCurvetoCubicRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoCubicRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicRel]"},SVGPathSegCurvetoCubicRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},SVGPathSegCurvetoCubicRel.prototype.clone=function(){return new SVGPathSegCurvetoCubicRel((void 0),this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(SVGPathSegCurvetoCubicRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicRel.prototype,"x1",{get:function(){return this._x1},set:function(e){this._x1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicRel.prototype,"y1",{get:function(){return this._y1},set:function(e){this._y1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicRel.prototype,"x2",{get:function(){return this._x2},set:function(e){this._x2=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicRel.prototype,"y2",{get:function(){return this._y2},set:function(e){this._y2=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegCurvetoQuadraticAbs=function(e,t,n,r,o){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS,"Q",e),this._x=t,this._y=n,this._x1=r,this._y1=o},SVGPathSegCurvetoQuadraticAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoQuadraticAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticAbs]"},SVGPathSegCurvetoQuadraticAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},SVGPathSegCurvetoQuadraticAbs.prototype.clone=function(){return new SVGPathSegCurvetoQuadraticAbs((void 0),this._x,this._y,this._x1,this._y1)},Object.defineProperty(SVGPathSegCurvetoQuadraticAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticAbs.prototype,"x1",{get:function(){return this._x1},set:function(e){this._x1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticAbs.prototype,"y1",{get:function(){return this._y1},set:function(e){this._y1=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegCurvetoQuadraticRel=function(e,t,n,r,o){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL,"q",e),this._x=t,this._y=n,this._x1=r,this._y1=o},SVGPathSegCurvetoQuadraticRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoQuadraticRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticRel]"},SVGPathSegCurvetoQuadraticRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},SVGPathSegCurvetoQuadraticRel.prototype.clone=function(){return new SVGPathSegCurvetoQuadraticRel((void 0),this._x,this._y,this._x1,this._y1)},Object.defineProperty(SVGPathSegCurvetoQuadraticRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticRel.prototype,"x1",{get:function(){return this._x1},set:function(e){this._x1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticRel.prototype,"y1",{get:function(){return this._y1},set:function(e){this._y1=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegArcAbs=function(e,t,n,r,o,i,a,s){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_ARC_ABS,"A",e),this._x=t,this._y=n,this._r1=r,this._r2=o,this._angle=i,this._largeArcFlag=a,this._sweepFlag=s},SVGPathSegArcAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegArcAbs.prototype.toString=function(){return"[object SVGPathSegArcAbs]"},SVGPathSegArcAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},SVGPathSegArcAbs.prototype.clone=function(){return new SVGPathSegArcAbs((void 0),this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(SVGPathSegArcAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcAbs.prototype,"r1",{get:function(){return this._r1},set:function(e){this._r1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcAbs.prototype,"r2",{get:function(){return this._r2},set:function(e){this._r2=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcAbs.prototype,"angle",{get:function(){return this._angle},set:function(e){this._angle=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcAbs.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(e){this._largeArcFlag=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcAbs.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(e){this._sweepFlag=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegArcRel=function(e,t,n,r,o,i,a,s){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_ARC_REL,"a",e),this._x=t,this._y=n,this._r1=r,this._r2=o,this._angle=i,this._largeArcFlag=a,this._sweepFlag=s},SVGPathSegArcRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegArcRel.prototype.toString=function(){return"[object SVGPathSegArcRel]"},SVGPathSegArcRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},SVGPathSegArcRel.prototype.clone=function(){return new SVGPathSegArcRel((void 0),this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(SVGPathSegArcRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcRel.prototype,"r1",{get:function(){return this._r1},set:function(e){this._r1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcRel.prototype,"r2",{get:function(){return this._r2},set:function(e){this._r2=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcRel.prototype,"angle",{get:function(){return this._angle},set:function(e){this._angle=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcRel.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(e){this._largeArcFlag=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcRel.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(e){this._sweepFlag=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegLinetoHorizontalAbs=function(e,t){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS,"H",e),this._x=t},SVGPathSegLinetoHorizontalAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegLinetoHorizontalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalAbs]"},SVGPathSegLinetoHorizontalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},SVGPathSegLinetoHorizontalAbs.prototype.clone=function(){return new SVGPathSegLinetoHorizontalAbs((void 0),this._x)},Object.defineProperty(SVGPathSegLinetoHorizontalAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegLinetoHorizontalRel=function(e,t){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL,"h",e),this._x=t},SVGPathSegLinetoHorizontalRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegLinetoHorizontalRel.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalRel]"},SVGPathSegLinetoHorizontalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},SVGPathSegLinetoHorizontalRel.prototype.clone=function(){return new SVGPathSegLinetoHorizontalRel((void 0),this._x)},Object.defineProperty(SVGPathSegLinetoHorizontalRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegLinetoVerticalAbs=function(e,t){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS,"V",e),this._y=t},SVGPathSegLinetoVerticalAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegLinetoVerticalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalAbs]"},SVGPathSegLinetoVerticalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},SVGPathSegLinetoVerticalAbs.prototype.clone=function(){return new SVGPathSegLinetoVerticalAbs((void 0),this._y)},Object.defineProperty(SVGPathSegLinetoVerticalAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegLinetoVerticalRel=function(e,t){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL,"v",e),this._y=t},SVGPathSegLinetoVerticalRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegLinetoVerticalRel.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalRel]"},SVGPathSegLinetoVerticalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},SVGPathSegLinetoVerticalRel.prototype.clone=function(){return new SVGPathSegLinetoVerticalRel((void 0),this._y)},Object.defineProperty(SVGPathSegLinetoVerticalRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegCurvetoCubicSmoothAbs=function(e,t,n,r,o){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS,"S",e),this._x=t,this._y=n,this._x2=r,this._y2=o},SVGPathSegCurvetoCubicSmoothAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoCubicSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothAbs]"},SVGPathSegCurvetoCubicSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},SVGPathSegCurvetoCubicSmoothAbs.prototype.clone=function(){return new SVGPathSegCurvetoCubicSmoothAbs((void 0),this._x,this._y,this._x2,this._y2)},Object.defineProperty(SVGPathSegCurvetoCubicSmoothAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicSmoothAbs.prototype,"x2",{get:function(){return this._x2},set:function(e){this._x2=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicSmoothAbs.prototype,"y2",{get:function(){return this._y2},set:function(e){this._y2=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegCurvetoCubicSmoothRel=function(e,t,n,r,o){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL,"s",e),this._x=t,this._y=n,this._x2=r,this._y2=o},SVGPathSegCurvetoCubicSmoothRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoCubicSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothRel]"},SVGPathSegCurvetoCubicSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},SVGPathSegCurvetoCubicSmoothRel.prototype.clone=function(){return new SVGPathSegCurvetoCubicSmoothRel((void 0),this._x,this._y,this._x2,this._y2)},Object.defineProperty(SVGPathSegCurvetoCubicSmoothRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicSmoothRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicSmoothRel.prototype,"x2",{get:function(){return this._x2},set:function(e){this._x2=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicSmoothRel.prototype,"y2",{get:function(){return this._y2},set:function(e){this._y2=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegCurvetoQuadraticSmoothAbs=function(e,t,n){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS,"T",e),this._x=t,this._y=n},SVGPathSegCurvetoQuadraticSmoothAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoQuadraticSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothAbs]"},SVGPathSegCurvetoQuadraticSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},SVGPathSegCurvetoQuadraticSmoothAbs.prototype.clone=function(){return new SVGPathSegCurvetoQuadraticSmoothAbs((void 0),this._x,this._y)},Object.defineProperty(SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegCurvetoQuadraticSmoothRel=function(e,t,n){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL,"t",e),this._x=t,this._y=n},SVGPathSegCurvetoQuadraticSmoothRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoQuadraticSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothRel]"},SVGPathSegCurvetoQuadraticSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},SVGPathSegCurvetoQuadraticSmoothRel.prototype.clone=function(){return new SVGPathSegCurvetoQuadraticSmoothRel((void 0),this._x,this._y)},Object.defineProperty(SVGPathSegCurvetoQuadraticSmoothRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticSmoothRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),SVGPathElement.prototype.createSVGPathSegClosePath=function(){return new SVGPathSegClosePath((void 0))},SVGPathElement.prototype.createSVGPathSegMovetoAbs=function(e,t){return new SVGPathSegMovetoAbs((void 0),e,t)},SVGPathElement.prototype.createSVGPathSegMovetoRel=function(e,t){return new SVGPathSegMovetoRel((void 0),e,t)},SVGPathElement.prototype.createSVGPathSegLinetoAbs=function(e,t){return new SVGPathSegLinetoAbs((void 0),e,t)},SVGPathElement.prototype.createSVGPathSegLinetoRel=function(e,t){return new SVGPathSegLinetoRel((void 0),e,t)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs=function(e,t,n,r,o,i){return new SVGPathSegCurvetoCubicAbs((void 0),e,t,n,r,o,i)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel=function(e,t,n,r,o,i){return new SVGPathSegCurvetoCubicRel((void 0),e,t,n,r,o,i)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs=function(e,t,n,r){return new SVGPathSegCurvetoQuadraticAbs((void 0),e,t,n,r)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel=function(e,t,n,r){return new SVGPathSegCurvetoQuadraticRel((void 0),e,t,n,r)},SVGPathElement.prototype.createSVGPathSegArcAbs=function(e,t,n,r,o,i,a){return new SVGPathSegArcAbs((void 0),e,t,n,r,o,i,a)},SVGPathElement.prototype.createSVGPathSegArcRel=function(e,t,n,r,o,i,a){return new SVGPathSegArcRel((void 0),e,t,n,r,o,i,a)},SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs=function(e){return new SVGPathSegLinetoHorizontalAbs((void 0),e)},SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel=function(e){return new SVGPathSegLinetoHorizontalRel((void 0),e)},SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs=function(e){return new SVGPathSegLinetoVerticalAbs((void 0),e)},SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel=function(e){return new SVGPathSegLinetoVerticalRel((void 0),e)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs=function(e,t,n,r){return new SVGPathSegCurvetoCubicSmoothAbs((void 0),e,t,n,r)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel=function(e,t,n,r){return new SVGPathSegCurvetoCubicSmoothRel((void 0),e,t,n,r)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs=function(e,t){return new SVGPathSegCurvetoQuadraticSmoothAbs((void 0),e,t)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel=function(e,t){return new SVGPathSegCurvetoQuadraticSmoothRel((void 0),e,t)}),"SVGPathSegList"in o||(o.SVGPathSegList=function(e){this._pathElement=e,this._list=this._parsePath(this._pathElement.getAttribute("d")),this._mutationObserverConfig={attributes:!0,attributeFilter:["d"]},this._pathElementMutationObserver=new MutationObserver(this._updateListFromPathMutations.bind(this)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},Object.defineProperty(SVGPathSegList.prototype,"numberOfItems",{get:function(){return this._checkPathSynchronizedToList(),this._list.length},enumerable:!0}),Object.defineProperty(SVGPathElement.prototype,"pathSegList",{get:function(){return this._pathSegList||(this._pathSegList=new SVGPathSegList(this)),this._pathSegList},enumerable:!0}),Object.defineProperty(SVGPathElement.prototype,"normalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(SVGPathElement.prototype,"animatedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(SVGPathElement.prototype,"animatedNormalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),SVGPathSegList.prototype._checkPathSynchronizedToList=function(){this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords())},SVGPathSegList.prototype._updateListFromPathMutations=function(e){if(this._pathElement){var t=!1;e.forEach(function(e){"d"==e.attributeName&&(t=!0)}),t&&(this._list=this._parsePath(this._pathElement.getAttribute("d")))}},SVGPathSegList.prototype._writeListToPath=function(){this._pathElementMutationObserver.disconnect(),this._pathElement.setAttribute("d",SVGPathSegList._pathSegArrayAsString(this._list)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},SVGPathSegList.prototype.segmentChanged=function(e){this._writeListToPath()},SVGPathSegList.prototype.clear=function(){this._checkPathSynchronizedToList(),this._list.forEach(function(e){e._owningPathSegList=null}),this._list=[],this._writeListToPath()},SVGPathSegList.prototype.initialize=function(e){return this._checkPathSynchronizedToList(),this._list=[e],e._owningPathSegList=this,this._writeListToPath(),e},SVGPathSegList.prototype._checkValidIndex=function(e){if(isNaN(e)||e<0||e>=this.numberOfItems)throw"INDEX_SIZE_ERR"},SVGPathSegList.prototype.getItem=function(e){return this._checkPathSynchronizedToList(),this._checkValidIndex(e),this._list[e]},SVGPathSegList.prototype.insertItemBefore=function(e,t){return this._checkPathSynchronizedToList(),t>this.numberOfItems&&(t=this.numberOfItems),e._owningPathSegList&&(e=e.clone()),this._list.splice(t,0,e),e._owningPathSegList=this,this._writeListToPath(),e},SVGPathSegList.prototype.replaceItem=function(e,t){return this._checkPathSynchronizedToList(),e._owningPathSegList&&(e=e.clone()),this._checkValidIndex(t),this._list[t]=e,e._owningPathSegList=this,this._writeListToPath(),e},SVGPathSegList.prototype.removeItem=function(e){this._checkPathSynchronizedToList(),this._checkValidIndex(e);var t=this._list[e];return this._list.splice(e,1),this._writeListToPath(),t},SVGPathSegList.prototype.appendItem=function(e){return this._checkPathSynchronizedToList(),e._owningPathSegList&&(e=e.clone()),this._list.push(e),e._owningPathSegList=this,this._writeListToPath(),e},SVGPathSegList._pathSegArrayAsString=function(e){var t="",n=!0;return e.forEach(function(e){n?(n=!1,t+=e._asPathString()):t+=" "+e._asPathString()}),t},SVGPathSegList.prototype._parsePath=function(e){if(!e||0==e.length)return[];var t=this,n=function(){this.pathSegList=[]};n.prototype.appendSegment=function(e){this.pathSegList.push(e)};var r=function(e){this._string=e,this._currentIndex=0,this._endIndex=this._string.length,this._previousCommand=SVGPathSeg.PATHSEG_UNKNOWN,this._skipOptionalSpaces()};r.prototype._isCurrentSpace=function(){var e=this._string[this._currentIndex];return e<=" "&&(" "==e||"\n"==e||"\t"==e||"\r"==e||"\f"==e)},r.prototype._skipOptionalSpaces=function(){for(;this._currentIndex<this._endIndex&&this._isCurrentSpace();)this._currentIndex++;return this._currentIndex<this._endIndex},r.prototype._skipOptionalSpacesOrDelimiter=function(){return!(this._currentIndex<this._endIndex&&!this._isCurrentSpace()&&","!=this._string.charAt(this._currentIndex))&&(this._skipOptionalSpaces()&&this._currentIndex<this._endIndex&&","==this._string.charAt(this._currentIndex)&&(this._currentIndex++,this._skipOptionalSpaces()),this._currentIndex<this._endIndex)},r.prototype.hasMoreData=function(){return this._currentIndex<this._endIndex},r.prototype.peekSegmentType=function(){var e=this._string[this._currentIndex];return this._pathSegTypeFromChar(e)},r.prototype._pathSegTypeFromChar=function(e){switch(e){case"Z":case"z":return SVGPathSeg.PATHSEG_CLOSEPATH;case"M":return SVGPathSeg.PATHSEG_MOVETO_ABS;case"m":return SVGPathSeg.PATHSEG_MOVETO_REL;case"L":return SVGPathSeg.PATHSEG_LINETO_ABS;case"l":return SVGPathSeg.PATHSEG_LINETO_REL;case"C":return SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS;case"c":return SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL;case"Q":return SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS;case"q":return SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL;case"A":return SVGPathSeg.PATHSEG_ARC_ABS;case"a":return SVGPathSeg.PATHSEG_ARC_REL;case"H":return SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS;case"h":return SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL;case"V":return SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS;case"v":return SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL;case"S":return SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS;case"s":return SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL;case"T":return SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS;case"t":return SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL;default:return SVGPathSeg.PATHSEG_UNKNOWN}},r.prototype._nextCommandHelper=function(e,t){return("+"==e||"-"==e||"."==e||e>="0"&&e<="9")&&t!=SVGPathSeg.PATHSEG_CLOSEPATH?t==SVGPathSeg.PATHSEG_MOVETO_ABS?SVGPathSeg.PATHSEG_LINETO_ABS:t==SVGPathSeg.PATHSEG_MOVETO_REL?SVGPathSeg.PATHSEG_LINETO_REL:t:SVGPathSeg.PATHSEG_UNKNOWN},r.prototype.initialCommandIsMoveTo=function(){if(!this.hasMoreData())return!0;var e=this.peekSegmentType();return e==SVGPathSeg.PATHSEG_MOVETO_ABS||e==SVGPathSeg.PATHSEG_MOVETO_REL},r.prototype._parseNumber=function(){var e=0,t=0,n=1,r=0,o=1,i=1,a=this._currentIndex;if(this._skipOptionalSpaces(),this._currentIndex<this._endIndex&&"+"==this._string.charAt(this._currentIndex)?this._currentIndex++:this._currentIndex<this._endIndex&&"-"==this._string.charAt(this._currentIndex)&&(this._currentIndex++,o=-1),!(this._currentIndex==this._endIndex||(this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")&&"."!=this._string.charAt(this._currentIndex))){for(var s=this._currentIndex;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)this._currentIndex++;if(this._currentIndex!=s)for(var u=this._currentIndex-1,c=1;u>=s;)t+=c*(this._string.charAt(u--)-"0"),c*=10;if(this._currentIndex<this._endIndex&&"."==this._string.charAt(this._currentIndex)){if(this._currentIndex++,this._currentIndex>=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)r+=(this._string.charAt(this._currentIndex++)-"0")*(n*=.1)}if(this._currentIndex!=a&&this._currentIndex+1<this._endIndex&&("e"==this._string.charAt(this._currentIndex)||"E"==this._string.charAt(this._currentIndex))&&"x"!=this._string.charAt(this._currentIndex+1)&&"m"!=this._string.charAt(this._currentIndex+1)){if(this._currentIndex++,"+"==this._string.charAt(this._currentIndex)?this._currentIndex++:"-"==this._string.charAt(this._currentIndex)&&(this._currentIndex++,i=-1),this._currentIndex>=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)e*=10,e+=this._string.charAt(this._currentIndex)-"0",this._currentIndex++}var l=t+r;if(l*=o,e&&(l*=Math.pow(10,i*e)),a!=this._currentIndex)return this._skipOptionalSpacesOrDelimiter(),l}},r.prototype._parseArcFlag=function(){if(!(this._currentIndex>=this._endIndex)){var e=!1,t=this._string.charAt(this._currentIndex++);if("0"==t)e=!1;else{if("1"!=t)return;e=!0}return this._skipOptionalSpacesOrDelimiter(),e}},r.prototype.parseSegment=function(){var e=this._string[this._currentIndex],n=this._pathSegTypeFromChar(e);if(n==SVGPathSeg.PATHSEG_UNKNOWN){if(this._previousCommand==SVGPathSeg.PATHSEG_UNKNOWN)return null;if(n=this._nextCommandHelper(e,this._previousCommand),n==SVGPathSeg.PATHSEG_UNKNOWN)return null}else this._currentIndex++;switch(this._previousCommand=n,n){case SVGPathSeg.PATHSEG_MOVETO_REL:return new SVGPathSegMovetoRel(t,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_MOVETO_ABS:return new SVGPathSegMovetoAbs(t,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_REL:return new SVGPathSegLinetoRel(t,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_ABS:return new SVGPathSegLinetoAbs(t,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:return new SVGPathSegLinetoHorizontalRel(t,this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:return new SVGPathSegLinetoHorizontalAbs(t,this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:return new SVGPathSegLinetoVerticalRel(t,this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:return new SVGPathSegLinetoVerticalAbs(t,this._parseNumber());case SVGPathSeg.PATHSEG_CLOSEPATH:return this._skipOptionalSpaces(),new SVGPathSegClosePath(t);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:var r={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicRel(t,r.x,r.y,r.x1,r.y1,r.x2,r.y2);
15
- case SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:var r={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicAbs(t,r.x,r.y,r.x1,r.y1,r.x2,r.y2);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:var r={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicSmoothRel(t,r.x,r.y,r.x2,r.y2);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:var r={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicSmoothAbs(t,r.x,r.y,r.x2,r.y2);case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:var r={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoQuadraticRel(t,r.x,r.y,r.x1,r.y1);case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:var r={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoQuadraticAbs(t,r.x,r.y,r.x1,r.y1);case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:return new SVGPathSegCurvetoQuadraticSmoothRel(t,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:return new SVGPathSegCurvetoQuadraticSmoothAbs(t,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_ARC_REL:var r={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegArcRel(t,r.x,r.y,r.x1,r.y1,r.arcAngle,r.arcLarge,r.arcSweep);case SVGPathSeg.PATHSEG_ARC_ABS:var r={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegArcAbs(t,r.x,r.y,r.x1,r.y1,r.arcAngle,r.arcLarge,r.arcSweep);default:throw"Unknown path seg type."}};var o=new n,i=new r(e);if(!i.initialCommandIsMoveTo())return[];for(;i.hasMoreData();){var a=i.parseSegment();if(!a)return[];o.appendSegment(a)}return o.pathSegList})}(),"function"==typeof e&&e.amd?e("c3",["d3"],function(){return h}):"undefined"!=typeof r&&"undefined"!=typeof n?n.exports=h:o.c3=h}(window)},{d3:273}],273:[function(t,n,r){!function(){function t(e){return e&&(e.ownerDocument||e.document||e).documentElement}function r(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}function o(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function i(e){return null===e?NaN:+e}function a(e){return!isNaN(e)}function s(e){return{left:function(t,n,r,o){for(arguments.length<3&&(r=0),arguments.length<4&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(arguments.length<3&&(r=0),arguments.length<4&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)>0?o=i:r=i+1}return r}}}function u(e){return e.length}function c(e){for(var t=1;e*t%1;)t*=10;return t}function l(e,t){for(var n in t)Object.defineProperty(e.prototype,n,{value:t[n],enumerable:!1})}function p(){this._=Object.create(null)}function f(e){return(e+="")===Ea||e[0]===xa?xa+e:e}function d(e){return(e+="")[0]===xa?e.slice(1):e}function h(e){return f(e)in this._}function g(e){return(e=f(e))in this._&&delete this._[e]}function m(){var e=[];for(var t in this._)e.push(d(t));return e}function y(){var e=0;for(var t in this._)++e;return e}function v(){for(var e in this._)return!1;return!0}function _(){this._=Object.create(null)}function b(e){return e}function E(e,t,n){return function(){var r=n.apply(t,arguments);return r===t?e:r}}function x(e,t){if(t in e)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var n=0,r=Ca.length;n<r;++n){var o=Ca[n]+t;if(o in e)return o}}function C(){}function w(){}function S(e){function t(){for(var t,r=n,o=-1,i=r.length;++o<i;)(t=r[o].on)&&t.apply(this,arguments);return e}var n=[],r=new p;return t.on=function(t,o){var i,a=r.get(t);return arguments.length<2?a&&a.on:(a&&(a.on=null,n=n.slice(0,i=n.indexOf(a)).concat(n.slice(i+1)),r.remove(t)),o&&n.push(r.set(t,{on:o})),e)},t}function O(){la.event.preventDefault()}function T(){for(var e,t=la.event;e=t.sourceEvent;)t=e;return t}function P(e){for(var t=new w,n=0,r=arguments.length;++n<r;)t[arguments[n]]=S(t);return t.of=function(n,r){return function(o){try{var i=o.sourceEvent=la.event;o.target=e,la.event=o,t[o.type].apply(n,r)}finally{la.event=i}}},t}function R(e){return Sa(e,Ra),e}function N(e){return"function"==typeof e?e:function(){return Oa(e,this)}}function A(e){return"function"==typeof e?e:function(){return Ta(e,this)}}function M(e,t){function n(){this.removeAttribute(e)}function r(){this.removeAttributeNS(e.space,e.local)}function o(){this.setAttribute(e,t)}function i(){this.setAttributeNS(e.space,e.local,t)}function a(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}function s(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}return e=la.ns.qualify(e),null==t?e.local?r:n:"function"==typeof t?e.local?s:a:e.local?i:o}function D(e){return e.trim().replace(/\s+/g," ")}function I(e){return new RegExp("(?:^|\\s+)"+la.requote(e)+"(?:\\s+|$)","g")}function L(e){return(e+"").trim().split(/^|\s+/)}function k(e,t){function n(){for(var n=-1;++n<o;)e[n](this,t)}function r(){for(var n=-1,r=t.apply(this,arguments);++n<o;)e[n](this,r)}e=L(e).map(j);var o=e.length;return"function"==typeof t?r:n}function j(e){var t=I(e);return function(n,r){if(o=n.classList)return r?o.add(e):o.remove(e);var o=n.getAttribute("class")||"";r?(t.lastIndex=0,t.test(o)||n.setAttribute("class",D(o+" "+e))):n.setAttribute("class",D(o.replace(t," ")))}}function F(e,t,n){function r(){this.style.removeProperty(e)}function o(){this.style.setProperty(e,t,n)}function i(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}return null==t?r:"function"==typeof t?i:o}function V(e,t){function n(){delete this[e]}function r(){this[e]=t}function o(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}return null==t?n:"function"==typeof t?o:r}function U(e){function t(){var t=this.ownerDocument,n=this.namespaceURI;return n===Na&&t.documentElement.namespaceURI===Na?t.createElement(e):t.createElementNS(n,e)}function n(){return this.ownerDocument.createElementNS(e.space,e.local)}return"function"==typeof e?e:(e=la.ns.qualify(e)).local?n:t}function z(){var e=this.parentNode;e&&e.removeChild(this)}function G(e){return{__data__:e}}function H(e){return function(){return Pa(this,e)}}function B(e){return arguments.length||(e=o),function(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}}function q(e,t){for(var n=0,r=e.length;n<r;n++)for(var o,i=e[n],a=0,s=i.length;a<s;a++)(o=i[a])&&t(o,a,n);return e}function Z(e){return Sa(e,Ma),e}function W(e){var t,n;return function(r,o,i){var a,s=e[i].update,u=s.length;for(i!=n&&(n=i,t=0),o>=t&&(t=o+1);!(a=s[t])&&++t<u;);return a}}function Y(e,t,n){function r(){var t=this[a];t&&(this.removeEventListener(e,t,t.$),delete this[a])}function o(){var o=u(t,fa(arguments));r.call(this),this.addEventListener(e,this[a]=o,o.$=n),o._=t}function i(){var t,n=new RegExp("^__on([^.]+)"+la.requote(e)+"quot;);for(var r in this)if(t=r.match(n)){var o=this[r];this.removeEventListener(t[1],o,o.$),delete this[r]}}var a="__on"+e,s=e.indexOf("."),u=X;s>0&&(e=e.slice(0,s));var c=Da.get(e);return c&&(e=c,u=K),s?t?o:r:t?C:i}function X(e,t){return function(n){var r=la.event;la.event=n,t[0]=this.__data__;try{e.apply(this,t)}finally{la.event=r}}}function K(e,t){var n=X(e,t);return function(e){var t=this,r=e.relatedTarget;r&&(r===t||8&r.compareDocumentPosition(t))||n.call(t,e)}}function Q(e){var n=".dragsuppress-"+ ++La,o="click"+n,i=la.select(r(e)).on("touchmove"+n,O).on("dragstart"+n,O).on("selectstart"+n,O);if(null==Ia&&(Ia=!("onselectstart"in e)&&x(e.style,"userSelect")),Ia){var a=t(e).style,s=a[Ia];a[Ia]="none"}return function(e){if(i.on(n,null),Ia&&(a[Ia]=s),e){var t=function(){i.on(o,null)};i.on(o,function(){O(),t()},!0),setTimeout(t,0)}}}function $(e,t){t.changedTouches&&(t=t.changedTouches[0]);var n=e.ownerSVGElement||e;if(n.createSVGPoint){var o=n.createSVGPoint();if(ka<0){var i=r(e);if(i.scrollX||i.scrollY){n=la.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var a=n[0][0].getScreenCTM();ka=!(a.f||a.e),n.remove()}}return ka?(o.x=t.pageX,o.y=t.pageY):(o.x=t.clientX,o.y=t.clientY),o=o.matrixTransform(e.getScreenCTM().inverse()),[o.x,o.y]}var s=e.getBoundingClientRect();return[t.clientX-s.left-e.clientLeft,t.clientY-s.top-e.clientTop]}function J(){return la.event.changedTouches[0].identifier}function ee(e){return e>0?1:e<0?-1:0}function te(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function ne(e){return e>1?0:e<-1?Va:Math.acos(e)}function re(e){return e>1?Ga:e<-1?-Ga:Math.asin(e)}function oe(e){return((e=Math.exp(e))-1/e)/2}function ie(e){return((e=Math.exp(e))+1/e)/2}function ae(e){return((e=Math.exp(2*e))-1)/(e+1)}function se(e){return(e=Math.sin(e/2))*e}function ue(){}function ce(e,t,n){return this instanceof ce?(this.h=+e,this.s=+t,void(this.l=+n)):arguments.length<2?e instanceof ce?new ce(e.h,e.s,e.l):Ce(""+e,we,ce):new ce(e,t,n)}function le(e,t,n){function r(e){return e>360?e-=360:e<0&&(e+=360),e<60?i+(a-i)*e/60:e<180?a:e<240?i+(a-i)*(240-e)/60:i}function o(e){return Math.round(255*r(e))}var i,a;return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)?0:t<0?0:t>1?1:t,n=n<0?0:n>1?1:n,a=n<=.5?n*(1+t):n+t-n*t,i=2*n-a,new _e(o(e+120),o(e),o(e-120))}function pe(e,t,n){return this instanceof pe?(this.h=+e,this.c=+t,void(this.l=+n)):arguments.length<2?e instanceof pe?new pe(e.h,e.c,e.l):e instanceof de?ge(e.l,e.a,e.b):ge((e=Se((e=la.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new pe(e,t,n)}function fe(e,t,n){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new de(n,Math.cos(e*=Ha)*t,Math.sin(e)*t)}function de(e,t,n){return this instanceof de?(this.l=+e,this.a=+t,void(this.b=+n)):arguments.length<2?e instanceof de?new de(e.l,e.a,e.b):e instanceof pe?fe(e.h,e.c,e.l):Se((e=_e(e)).r,e.g,e.b):new de(e,t,n)}function he(e,t,n){var r=(e+16)/116,o=r+t/500,i=r-n/200;return o=me(o)*es,r=me(r)*ts,i=me(i)*ns,new _e(ve(3.2404542*o-1.5371385*r-.4985314*i),ve(-.969266*o+1.8760108*r+.041556*i),ve(.0556434*o-.2040259*r+1.0572252*i))}function ge(e,t,n){return e>0?new pe(Math.atan2(n,t)*Ba,Math.sqrt(t*t+n*n),e):new pe(NaN,NaN,e)}function me(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function ye(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function ve(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function _e(e,t,n){return this instanceof _e?(this.r=~~e,this.g=~~t,void(this.b=~~n)):arguments.length<2?e instanceof _e?new _e(e.r,e.g,e.b):Ce(""+e,_e,le):new _e(e,t,n)}function be(e){return new _e(e>>16,e>>8&255,255&e)}function Ee(e){return be(e)+""}function xe(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function Ce(e,t,n){var r,o,i,a=0,s=0,u=0;if(r=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))switch(o=r[2].split(","),r[1]){case"hsl":return n(parseFloat(o[0]),parseFloat(o[1])/100,parseFloat(o[2])/100);case"rgb":return t(Te(o[0]),Te(o[1]),Te(o[2]))}return(i=is.get(e))?t(i.r,i.g,i.b):(null==e||"#"!==e.charAt(0)||isNaN(i=parseInt(e.slice(1),16))||(4===e.length?(a=(3840&i)>>4,a=a>>4|a,s=240&i,s=s>>4|s,u=15&i,u=u<<4|u):7===e.length&&(a=(16711680&i)>>16,s=(65280&i)>>8,u=255&i)),t(a,s,u))}function we(e,t,n){var r,o,i=Math.min(e/=255,t/=255,n/=255),a=Math.max(e,t,n),s=a-i,u=(a+i)/2;return s?(o=u<.5?s/(a+i):s/(2-a-i),r=e==a?(t-n)/s+(t<n?6:0):t==a?(n-e)/s+2:(e-t)/s+4,r*=60):(r=NaN,o=u>0&&u<1?0:r),new ce(r,o,u)}function Se(e,t,n){e=Oe(e),t=Oe(t),n=Oe(n);var r=ye((.4124564*e+.3575761*t+.1804375*n)/es),o=ye((.2126729*e+.7151522*t+.072175*n)/ts),i=ye((.0193339*e+.119192*t+.9503041*n)/ns);return de(116*o-16,500*(r-o),200*(o-i))}function Oe(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Te(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}function Pe(e){return"function"==typeof e?e:function(){return e}}function Re(e){return function(t,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=null),Ne(t,n,e,r)}}function Ne(e,t,n,r){function o(){var e,t=u.status;if(!t&&Me(u)||t>=200&&t<300||304===t){try{e=n.call(i,u)}catch(e){return void a.error.call(i,e)}a.load.call(i,e)}else a.error.call(i,u)}var i={},a=la.dispatch("beforesend","progress","load","error"),s={},u=new XMLHttpRequest,c=null;return!this.XDomainRequest||"withCredentials"in u||!/^(http(s)?:)?\/\//.test(e)||(u=new XDomainRequest),"onload"in u?u.onload=u.onerror=o:u.onreadystatechange=function(){u.readyState>3&&o()},u.onprogress=function(e){var t=la.event;la.event=e;try{a.progress.call(i,u)}finally{la.event=t}},i.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?s[e]:(null==t?delete s[e]:s[e]=t+"",i)},i.mimeType=function(e){return arguments.length?(t=null==e?null:e+"",i):t},i.responseType=function(e){return arguments.length?(c=e,i):c},i.response=function(e){return n=e,i},["get","post"].forEach(function(e){i[e]=function(){return i.send.apply(i,[e].concat(fa(arguments)))}}),i.send=function(n,r,o){if(2===arguments.length&&"function"==typeof r&&(o=r,r=null),u.open(n,e,!0),null==t||"accept"in s||(s.accept=t+",*/*"),u.setRequestHeader)for(var l in s)u.setRequestHeader(l,s[l]);return null!=t&&u.overrideMimeType&&u.overrideMimeType(t),null!=c&&(u.responseType=c),null!=o&&i.on("error",o).on("load",function(e){o(null,e)}),a.beforesend.call(i,u),u.send(null==r?null:r),i},i.abort=function(){return u.abort(),i},la.rebind(i,a,"on"),null==r?i:i.get(Ae(r))}function Ae(e){return 1===e.length?function(t,n){e(null==t?n:null)}:e}function Me(e){var t=e.responseType;return t&&"text"!==t?e.response:e.responseText}function De(e,t,n){var r=arguments.length;r<2&&(t=0),r<3&&(n=Date.now());var o=n+t,i={c:e,t:o,n:null};return ss?ss.n=i:as=i,ss=i,us||(cs=clearTimeout(cs),us=1,ls(Ie)),i}function Ie(){var e=Le(),t=ke()-e;t>24?(isFinite(t)&&(clearTimeout(cs),cs=setTimeout(Ie,t)),us=0):(us=1,ls(Ie))}function Le(){for(var e=Date.now(),t=as;t;)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function ke(){for(var e,t=as,n=1/0;t;)t.c?(t.t<n&&(n=t.t),t=(e=t).n):t=e?e.n=t.n:as=t.n;return ss=e,n}function je(e,t){return t-(e?Math.ceil(Math.log(e)/Math.LN10):1)}function Fe(e,t){var n=Math.pow(10,3*ba(8-t));return{scale:t>8?function(e){return e/n}:function(e){return e*n},symbol:e}}function Ve(e){var t=e.decimal,n=e.thousands,r=e.grouping,o=e.currency,i=r&&n?function(e,t){for(var o=e.length,i=[],a=0,s=r[0],u=0;o>0&&s>0&&(u+s+1>t&&(s=Math.max(1,t-u)),i.push(e.substring(o-=s,o+s)),!((u+=s+1)>t));)s=r[a=(a+1)%r.length];return i.reverse().join(n)}:b;return function(e){var n=fs.exec(e),r=n[1]||" ",a=n[2]||">",s=n[3]||"-",u=n[4]||"",c=n[5],l=+n[6],p=n[7],f=n[8],d=n[9],h=1,g="",m="",y=!1,v=!0;switch(f&&(f=+f.substring(1)),(c||"0"===r&&"="===a)&&(c=r="0",a="="),d){case"n":p=!0,d="g";break;case"%":h=100,m="%",d="f";break;case"p":h=100,m="%",d="r";break;case"b":case"o":case"x":case"X":"#"===u&&(g="0"+d.toLowerCase());case"c":v=!1;case"d":y=!0,f=0;break;case"s":h=-1,d="r"}"quot;===u&&(g=o[0],m=o[1]),"r"!=d||f||(d="g"),null!=f&&("g"==d?f=Math.max(1,Math.min(21,f)):"e"!=d&&"f"!=d||(f=Math.max(0,Math.min(20,f)))),d=ds.get(d)||Ue;var _=c&&p;return function(e){var n=m;if(y&&e%1)return"";var o=e<0||0===e&&1/e<0?(e=-e,"-"):"-"===s?"":s;if(h<0){var u=la.formatPrefix(e,f);e=u.scale(e),n=u.symbol+m}else e*=h;e=d(e,f);var b,E,x=e.lastIndexOf(".");if(x<0){var C=v?e.lastIndexOf("e"):-1;C<0?(b=e,E=""):(b=e.substring(0,C),E=e.substring(C))}else b=e.substring(0,x),E=t+e.substring(x+1);!c&&p&&(b=i(b,1/0));var w=g.length+b.length+E.length+(_?0:o.length),S=w<l?new Array(w=l-w+1).join(r):"";return _&&(b=i(S+b,S.length?l-E.length:1/0)),o+=g,e=b+E,("<"===a?o+e+S:">"===a?S+o+e:"^"===a?S.substring(0,w>>=1)+o+e+S.substring(w):o+(_?e:S+e))+n}}}function Ue(e){return e+""}function ze(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Ge(e,t,n){function r(t){var n=e(t),r=i(n,1);return t-n<r-t?n:r}function o(n){return t(n=e(new gs(n-1)),1),n}function i(e,n){return t(e=new gs((+e)),n),e}function a(e,r,i){var a=o(e),s=[];if(i>1)for(;a<r;)n(a)%i||s.push(new Date((+a))),t(a,1);else for(;a<r;)s.push(new Date((+a))),t(a,1);return s}function s(e,t,n){try{gs=ze;var r=new ze;return r._=e,a(r,t,n)}finally{gs=Date}}e.floor=e,e.round=r,e.ceil=o,e.offset=i,e.range=a;var u=e.utc=He(e);return u.floor=u,u.round=He(r),u.ceil=He(o),u.offset=He(i),u.range=s,e}function He(e){return function(t,n){try{gs=ze;var r=new ze;return r._=t,e(r,n)._}finally{gs=Date}}}function Be(e){function t(e){function t(t){for(var n,o,i,a=[],s=-1,u=0;++s<r;)37===e.charCodeAt(s)&&(a.push(e.slice(u,s)),null!=(o=ys[n=e.charAt(++s)])&&(n=e.charAt(++s)),(i=P[n])&&(n=i(t,null==o?"e"===n?" ":"0":o)),a.push(n),u=s+1);return a.push(e.slice(u,s)),a.join("")}var r=e.length;return t.parse=function(t){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},o=n(r,e,t,0);if(o!=t.length)return null;"p"in r&&(r.H=r.H%12+12*r.p);var i=null!=r.Z&&gs!==ze,a=new(i?ze:gs);return"j"in r?a.setFullYear(r.y,0,r.j):"W"in r||"U"in r?("w"in r||(r.w="W"in r?1:0),a.setFullYear(r.y,0,1),a.setFullYear(r.y,0,"W"in r?(r.w+6)%7+7*r.W-(a.getDay()+5)%7:r.w+7*r.U-(a.getDay()+6)%7)):a.setFullYear(r.y,r.m,r.d),a.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),i?a._:a},t.toString=function(){return e},t}function n(e,t,n,r){for(var o,i,a,s=0,u=t.length,c=n.length;s<u;){if(r>=c)return-1;if(o=t.charCodeAt(s++),37===o){if(a=t.charAt(s++),i=R[a in ys?t.charAt(s++):a],!i||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}function r(e,t,n){x.lastIndex=0;var r=x.exec(t.slice(n));return r?(e.w=C.get(r[0].toLowerCase()),n+r[0].length):-1}function o(e,t,n){b.lastIndex=0;var r=b.exec(t.slice(n));return r?(e.w=E.get(r[0].toLowerCase()),n+r[0].length):-1}function i(e,t,n){O.lastIndex=0;var r=O.exec(t.slice(n));return r?(e.m=T.get(r[0].toLowerCase()),n+r[0].length):-1}function a(e,t,n){w.lastIndex=0;var r=w.exec(t.slice(n));return r?(e.m=S.get(r[0].toLowerCase()),n+r[0].length):-1}function s(e,t,r){return n(e,P.c.toString(),t,r)}function u(e,t,r){return n(e,P.x.toString(),t,r)}function c(e,t,r){return n(e,P.X.toString(),t,r)}function l(e,t,n){var r=_.get(t.slice(n,n+=2).toLowerCase());return null==r?-1:(e.p=r,n)}var p=e.dateTime,f=e.date,d=e.time,h=e.periods,g=e.days,m=e.shortDays,y=e.months,v=e.shortMonths;t.utc=function(e){function n(e){try{gs=ze;var t=new gs;return t._=e,r(t)}finally{gs=Date}}var r=t(e);return n.parse=function(e){try{gs=ze;var t=r.parse(e);return t&&t._}finally{gs=Date}},n.toString=r.toString,n},t.multi=t.utc.multi=lt;var _=la.map(),b=Ze(g),E=We(g),x=Ze(m),C=We(m),w=Ze(y),S=We(y),O=Ze(v),T=We(v);h.forEach(function(e,t){_.set(e.toLowerCase(),t)});var P={a:function(e){return m[e.getDay()]},A:function(e){return g[e.getDay()]},b:function(e){return v[e.getMonth()]},B:function(e){return y[e.getMonth()]},c:t(p),d:function(e,t){return qe(e.getDate(),t,2)},e:function(e,t){return qe(e.getDate(),t,2)},H:function(e,t){return qe(e.getHours(),t,2)},I:function(e,t){return qe(e.getHours()%12||12,t,2)},j:function(e,t){return qe(1+hs.dayOfYear(e),t,3)},L:function(e,t){return qe(e.getMilliseconds(),t,3)},m:function(e,t){return qe(e.getMonth()+1,t,2)},M:function(e,t){return qe(e.getMinutes(),t,2)},p:function(e){return h[+(e.getHours()>=12)]},S:function(e,t){return qe(e.getSeconds(),t,2)},U:function(e,t){return qe(hs.sundayOfYear(e),t,2)},w:function(e){return e.getDay()},W:function(e,t){return qe(hs.mondayOfYear(e),t,2)},x:t(f),X:t(d),y:function(e,t){return qe(e.getFullYear()%100,t,2)},Y:function(e,t){return qe(e.getFullYear()%1e4,t,4)},Z:ut,"%":function(){return"%"}},R={a:r,A:o,b:i,B:a,c:s,d:nt,e:nt,H:ot,I:ot,j:rt,L:st,m:tt,M:it,p:l,S:at,U:Xe,w:Ye,W:Ke,x:u,X:c,y:$e,Y:Qe,Z:Je,"%":ct};return t}function qe(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function Ze(e){return new RegExp("^(?:"+e.map(la.requote).join("|")+")","i")}function We(e){for(var t=new p,n=-1,r=e.length;++n<r;)t.set(e[n].toLowerCase(),n);return t}function Ye(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Xe(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n));return r?(e.U=+r[0],n+r[0].length):-1}function Ke(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n));return r?(e.W=+r[0],n+r[0].length):-1}function Qe(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function $e(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n,n+2));return r?(e.y=et(+r[0]),n+r[0].length):-1}function Je(e,t,n){return/^[+-]\d{4}#x2F;.test(t=t.slice(n,n+5))?(e.Z=-t,n+5):-1}function et(e){return e+(e>68?1900:2e3)}function tt(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function nt(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function rt(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n,n+3));return r?(e.j=+r[0],n+r[0].length):-1}function ot(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function it(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function at(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function st(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function ut(e){var t=e.getTimezoneOffset(),n=t>0?"-":"+",r=ba(t)/60|0,o=ba(t)%60;return n+qe(r,"0",2)+qe(o,"0",2)}function ct(e,t,n){_s.lastIndex=0;var r=_s.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function lt(e){for(var t=e.length,n=-1;++n<t;)e[n][0]=this(e[n][0]);return function(t){for(var n=0,r=e[n];!r[1](t);)r=e[++n];return r[0](t)}}function pt(){}function ft(e,t,n){var r=n.s=e+t,o=r-e,i=r-o;n.t=e-i+(t-o)}function dt(e,t){e&&Cs.hasOwnProperty(e.type)&&Cs[e.type](e,t)}function ht(e,t,n){var r,o=-1,i=e.length-n;for(t.lineStart();++o<i;)r=e[o],t.point(r[0],r[1],r[2]);t.lineEnd()}function gt(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)ht(e[n],t,1);t.polygonEnd()}function mt(){function e(e,t){e*=Ha,t=t*Ha/2+Va/4;var n=e-r,a=n>=0?1:-1,s=a*n,u=Math.cos(t),c=Math.sin(t),l=i*c,p=o*u+l*Math.cos(s),f=l*a*Math.sin(s);Ss.add(Math.atan2(f,p)),r=e,o=u,i=c}var t,n,r,o,i;Os.point=function(a,s){Os.point=e,r=(t=a)*Ha,o=Math.cos(s=(n=s)*Ha/2+Va/4),i=Math.sin(s)},Os.lineEnd=function(){e(t,n)}}function yt(e){var t=e[0],n=e[1],r=Math.cos(n);return[r*Math.cos(t),r*Math.sin(t),Math.sin(n)]}function vt(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function _t(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function bt(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Et(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function xt(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function Ct(e){return[Math.atan2(e[1],e[0]),re(e[2])]}function wt(e,t){return ba(e[0]-t[0])<ja&&ba(e[1]-t[1])<ja}function St(e,t){e*=Ha;var n=Math.cos(t*=Ha);Ot(n*Math.cos(e),n*Math.sin(e),Math.sin(t))}function Ot(e,t,n){++Ts,Rs+=(e-Rs)/Ts,Ns+=(t-Ns)/Ts,As+=(n-As)/Ts}function Tt(){function e(e,o){e*=Ha;var i=Math.cos(o*=Ha),a=i*Math.cos(e),s=i*Math.sin(e),u=Math.sin(o),c=Math.atan2(Math.sqrt((c=n*u-r*s)*c+(c=r*a-t*u)*c+(c=t*s-n*a)*c),t*a+n*s+r*u);Ps+=c,Ms+=c*(t+(t=a)),Ds+=c*(n+(n=s)),Is+=c*(r+(r=u)),Ot(t,n,r)}var t,n,r;Fs.point=function(o,i){o*=Ha;var a=Math.cos(i*=Ha);t=a*Math.cos(o),n=a*Math.sin(o),r=Math.sin(i),Fs.point=e,Ot(t,n,r)}}function Pt(){Fs.point=St}function Rt(){function e(e,t){e*=Ha;var n=Math.cos(t*=Ha),a=n*Math.cos(e),s=n*Math.sin(e),u=Math.sin(t),c=o*u-i*s,l=i*a-r*u,p=r*s-o*a,f=Math.sqrt(c*c+l*l+p*p),d=r*a+o*s+i*u,h=f&&-ne(d)/f,g=Math.atan2(f,d);Ls+=h*c,ks+=h*l,js+=h*p,Ps+=g,Ms+=g*(r+(r=a)),Ds+=g*(o+(o=s)),Is+=g*(i+(i=u)),Ot(r,o,i)}var t,n,r,o,i;Fs.point=function(a,s){t=a,n=s,Fs.point=e,a*=Ha;var u=Math.cos(s*=Ha);r=u*Math.cos(a),o=u*Math.sin(a),i=Math.sin(s),Ot(r,o,i)},Fs.lineEnd=function(){e(t,n),Fs.lineEnd=Pt,Fs.point=St}}function Nt(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return n=t.invert(n,r),n&&e.invert(n[0],n[1])}),n}function At(){return!0}function Mt(e,t,n,r,o){var i=[],a=[];if(e.forEach(function(e){if(!((t=e.length-1)<=0)){var t,n=e[0],r=e[t];if(wt(n,r)){o.lineStart();for(var s=0;s<t;++s)o.point((n=e[s])[0],n[1]);return void o.lineEnd()}var u=new It(n,e,null,(!0)),c=new It(n,null,u,(!1));u.o=c,i.push(u),a.push(c),u=new It(r,e,null,(!1)),c=new It(r,null,u,(!0)),u.o=c,i.push(u),a.push(c)}}),a.sort(t),Dt(i),Dt(a),i.length){for(var s=0,u=n,c=a.length;s<c;++s)a[s].e=u=!u;for(var l,p,f=i[0];;){for(var d=f,h=!0;d.v;)if((d=d.n)===f)return;l=d.z,o.lineStart();do{if(d.v=d.o.v=!0,d.e){if(h)for(var s=0,c=l.length;s<c;++s)o.point((p=l[s])[0],p[1]);else r(d.x,d.n.x,1,o);d=d.n}else{if(h){l=d.p.z;for(var s=l.length-1;s>=0;--s)o.point((p=l[s])[0],p[1])}else r(d.x,d.p.x,-1,o);d=d.p}d=d.o,l=d.z,h=!h}while(!d.v);o.lineEnd()}}}function Dt(e){if(t=e.length){for(var t,n,r=0,o=e[0];++r<t;)o.n=n=e[r],n.p=o,o=n;o.n=n=e[0],n.p=o}}function It(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function Lt(e,t,n,r){return function(o,i){function a(t,n){var r=o(t,n);e(t=r[0],n=r[1])&&i.point(t,n)}function s(e,t){var n=o(e,t);m.point(n[0],n[1])}function u(){v.point=s,m.lineStart()}function c(){v.point=a,m.lineEnd()}function l(e,t){g.push([e,t]);var n=o(e,t);b.point(n[0],n[1])}function p(){b.lineStart(),g=[]}function f(){l(g[0][0],g[0][1]),b.lineEnd();var e,t=b.clean(),n=_.buffer(),r=n.length;if(g.pop(),h.push(g),g=null,r)if(1&t){e=n[0];var o,r=e.length-1,a=-1;if(r>0){for(E||(i.polygonStart(),E=!0),i.lineStart();++a<r;)i.point((o=e[a])[0],o[1]);i.lineEnd()}}else r>1&&2&t&&n.push(n.pop().concat(n.shift())),d.push(n.filter(kt))}var d,h,g,m=t(i),y=o.invert(r[0],r[1]),v={point:a,lineStart:u,lineEnd:c,polygonStart:function(){v.point=l,v.lineStart=p,v.lineEnd=f,d=[],h=[]},polygonEnd:function(){v.point=a,v.lineStart=u,v.lineEnd=c,d=la.merge(d);var e=Gt(y,h);d.length?(E||(i.polygonStart(),E=!0),Mt(d,Ft,e,n,i)):e&&(E||(i.polygonStart(),E=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),E&&(i.polygonEnd(),E=!1),d=h=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}},_=jt(),b=t(_),E=!1;return v}}function kt(e){return e.length>1}function jt(){var e,t=[];return{lineStart:function(){t.push(e=[])},point:function(t,n){e.push([t,n])},lineEnd:C,buffer:function(){var n=t;return t=[],e=null,n},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function Ft(e,t){return((e=e.x)[0]<0?e[1]-Ga-ja:Ga-e[1])-((t=t.x)[0]<0?t[1]-Ga-ja:Ga-t[1])}function Vt(e){var t,n=NaN,r=NaN,o=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(i,a){var s=i>0?Va:-Va,u=ba(i-n);ba(u-Va)<ja?(e.point(n,r=(r+a)/2>0?Ga:-Ga),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(i,r),t=0):o!==s&&u>=Va&&(ba(n-o)<ja&&(n-=o*ja),ba(i-s)<ja&&(i-=s*ja),r=Ut(n,r,i,a),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(s,r),t=0),e.point(n=i,r=a),o=s},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}function Ut(e,t,n,r){var o,i,a=Math.sin(e-n);return ba(a)>ja?Math.atan((Math.sin(t)*(i=Math.cos(r))*Math.sin(n)-Math.sin(r)*(o=Math.cos(t))*Math.sin(e))/(o*i*a)):(t+r)/2}function zt(e,t,n,r){var o;if(null==e)o=n*Ga,r.point(-Va,o),r.point(0,o),r.point(Va,o),r.point(Va,0),r.point(Va,-o),r.point(0,-o),r.point(-Va,-o),r.point(-Va,0),r.point(-Va,o);else if(ba(e[0]-t[0])>ja){var i=e[0]<t[0]?Va:-Va;o=n*i/2,r.point(-i,o),r.point(0,o),r.point(i,o)}else r.point(t[0],t[1])}function Gt(e,t){var n=e[0],r=e[1],o=[Math.sin(n),-Math.cos(n),0],i=0,a=0;Ss.reset();for(var s=0,u=t.length;s<u;++s){var c=t[s],l=c.length;if(l)for(var p=c[0],f=p[0],d=p[1]/2+Va/4,h=Math.sin(d),g=Math.cos(d),m=1;;){m===l&&(m=0),e=c[m];var y=e[0],v=e[1]/2+Va/4,_=Math.sin(v),b=Math.cos(v),E=y-f,x=E>=0?1:-1,C=x*E,w=C>Va,S=h*_;if(Ss.add(Math.atan2(S*x*Math.sin(C),g*b+S*Math.cos(C))),i+=w?E+x*Ua:E,w^f>=n^y>=n){var O=_t(yt(p),yt(e));xt(O);var T=_t(o,O);xt(T);var P=(w^E>=0?-1:1)*re(T[2]);(r>P||r===P&&(O[0]||O[1]))&&(a+=w^E>=0?1:-1)}if(!m++)break;f=y,h=_,g=b,p=e}}return(i<-ja||i<ja&&Ss<-ja)^1&a}function Ht(e){function t(e,t){return Math.cos(e)*Math.cos(t)>i}function n(e){var n,i,u,c,l;return{lineStart:function(){c=u=!1,l=1},point:function(p,f){var d,h=[p,f],g=t(p,f),m=a?g?0:o(p,f):g?o(p+(p<0?Va:-Va),f):0;if(!n&&(c=u=g)&&e.lineStart(),g!==u&&(d=r(n,h),(wt(n,d)||wt(h,d))&&(h[0]+=ja,h[1]+=ja,g=t(h[0],h[1]))),g!==u)l=0,g?(e.lineStart(),d=r(h,n),e.point(d[0],d[1])):(d=r(n,h),e.point(d[0],d[1]),e.lineEnd()),n=d;else if(s&&n&&a^g){var y;m&i||!(y=r(h,n,!0))||(l=0,a?(e.lineStart(),e.point(y[0][0],y[0][1]),e.point(y[1][0],y[1][1]),e.lineEnd()):(e.point(y[1][0],y[1][1]),e.lineEnd(),e.lineStart(),e.point(y[0][0],y[0][1])))}!g||n&&wt(n,h)||e.point(h[0],h[1]),n=h,u=g,i=m},lineEnd:function(){u&&e.lineEnd(),n=null},clean:function(){return l|(c&&u)<<1}}}function r(e,t,n){var r=yt(e),o=yt(t),a=[1,0,0],s=_t(r,o),u=vt(s,s),c=s[0],l=u-c*c;if(!l)return!n&&e;var p=i*u/l,f=-i*c/l,d=_t(a,s),h=Et(a,p),g=Et(s,f);bt(h,g);var m=d,y=vt(h,m),v=vt(m,m),_=y*y-v*(vt(h,h)-1);if(!(_<0)){var b=Math.sqrt(_),E=Et(m,(-y-b)/v);if(bt(E,h),E=Ct(E),!n)return E;var x,C=e[0],w=t[0],S=e[1],O=t[1];w<C&&(x=C,C=w,w=x);var T=w-C,P=ba(T-Va)<ja,R=P||T<ja;if(!P&&O<S&&(x=S,S=O,O=x),R?P?S+O>0^E[1]<(ba(E[0]-C)<ja?S:O):S<=E[1]&&E[1]<=O:T>Va^(C<=E[0]&&E[0]<=w)){var N=Et(m,(-y+b)/v);return bt(N,h),[E,Ct(N)]}}}function o(t,n){var r=a?e:Va-e,o=0;return t<-r?o|=1:t>r&&(o|=2),n<-r?o|=4:n>r&&(o|=8),o}var i=Math.cos(e),a=i>0,s=ba(i)>ja,u=yn(e,6*Ha);return Lt(t,n,u,a?[0,-e]:[-Va,e-Va])}function Bt(e,t,n,r){return function(o){var i,a=o.a,s=o.b,u=a.x,c=a.y,l=s.x,p=s.y,f=0,d=1,h=l-u,g=p-c;if(i=e-u,h||!(i>0)){if(i/=h,h<0){if(i<f)return;i<d&&(d=i)}else if(h>0){if(i>d)return;i>f&&(f=i)}if(i=n-u,h||!(i<0)){if(i/=h,h<0){if(i>d)return;i>f&&(f=i)}else if(h>0){if(i<f)return;i<d&&(d=i)}if(i=t-c,g||!(i>0)){if(i/=g,g<0){if(i<f)return;i<d&&(d=i)}else if(g>0){if(i>d)return;i>f&&(f=i)}if(i=r-c,g||!(i<0)){if(i/=g,g<0){if(i>d)return;i>f&&(f=i)}else if(g>0){if(i<f)return;i<d&&(d=i)}return f>0&&(o.a={x:u+f*h,y:c+f*g}),d<1&&(o.b={x:u+d*h,y:c+d*g}),o}}}}}}function qt(e,t,n,r){function o(r,o){return ba(r[0]-e)<ja?o>0?0:3:ba(r[0]-n)<ja?o>0?2:1:ba(r[1]-t)<ja?o>0?1:0:o>0?3:2}function i(e,t){return a(e.x,t.x)}function a(e,t){var n=o(e,1),r=o(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(s){function u(e){for(var t=0,n=m.length,r=e[1],o=0;o<n;++o)for(var i,a=1,s=m[o],u=s.length,c=s[0];a<u;++a)i=s[a],c[1]<=r?i[1]>r&&te(c,i,e)>0&&++t:i[1]<=r&&te(c,i,e)<0&&--t,c=i;return 0!==t}function c(i,s,u,c){var l=0,p=0;if(null==i||(l=o(i,u))!==(p=o(s,u))||a(i,s)<0^u>0){do c.point(0===l||3===l?e:n,l>1?r:t);while((l=(l+u+4)%4)!==p)}else c.point(s[0],s[1])}function l(o,i){return e<=o&&o<=n&&t<=i&&i<=r}function p(e,t){l(e,t)&&s.point(e,t)}function f(){R.point=h,m&&m.push(y=[]),w=!0,C=!1,E=x=NaN}function d(){g&&(h(v,_),b&&C&&T.rejoin(),g.push(T.buffer())),R.point=p,C&&s.lineEnd()}function h(e,t){e=Math.max(-Us,Math.min(Us,e)),t=Math.max(-Us,Math.min(Us,t));var n=l(e,t);if(m&&y.push([e,t]),w)v=e,_=t,b=n,w=!1,n&&(s.lineStart(),s.point(e,t));else if(n&&C)s.point(e,t);else{var r={a:{x:E,y:x},b:{x:e,y:t}};P(r)?(C||(s.lineStart(),s.point(r.a.x,r.a.y)),s.point(r.b.x,r.b.y),n||s.lineEnd(),S=!1):n&&(s.lineStart(),s.point(e,t),S=!1)}E=e,x=t,C=n}var g,m,y,v,_,b,E,x,C,w,S,O=s,T=jt(),P=Bt(e,t,n,r),R={point:p,lineStart:f,lineEnd:d,polygonStart:function(){s=T,g=[],m=[],S=!0},polygonEnd:function(){s=O,g=la.merge(g);var t=u([e,r]),n=S&&t,o=g.length;(n||o)&&(s.polygonStart(),n&&(s.lineStart(),c(null,null,1,s),s.lineEnd()),o&&Mt(g,i,t,c,s),s.polygonEnd()),g=m=y=null}};return R}}function Zt(e){var t=0,n=Va/3,r=cn(e),o=r(t,n);
16
- return o.parallels=function(e){return arguments.length?r(t=e[0]*Va/180,n=e[1]*Va/180):[t/Va*180,n/Va*180]},o}function Wt(e,t){function n(e,t){var n=Math.sqrt(i-2*o*Math.sin(t))/o;return[n*Math.sin(e*=o),a-n*Math.cos(e)]}var r=Math.sin(e),o=(r+Math.sin(t))/2,i=1+r*(2*o-r),a=Math.sqrt(i)/o;return n.invert=function(e,t){var n=a-t;return[Math.atan2(e,n)/o,re((i-(e*e+n*n)*o*o)/(2*o))]},n}function Yt(){function e(e,t){Gs+=o*e-r*t,r=e,o=t}var t,n,r,o;Ws.point=function(i,a){Ws.point=e,t=r=i,n=o=a},Ws.lineEnd=function(){e(t,n)}}function Xt(e,t){e<Hs&&(Hs=e),e>qs&&(qs=e),t<Bs&&(Bs=t),t>Zs&&(Zs=t)}function Kt(){function e(e,t){a.push("M",e,",",t,i)}function t(e,t){a.push("M",e,",",t),s.point=n}function n(e,t){a.push("L",e,",",t)}function r(){s.point=e}function o(){a.push("Z")}var i=Qt(4.5),a=[],s={point:e,lineStart:function(){s.point=t},lineEnd:r,polygonStart:function(){s.lineEnd=o},polygonEnd:function(){s.lineEnd=r,s.point=e},pointRadius:function(e){return i=Qt(e),s},result:function(){if(a.length){var e=a.join("");return a=[],e}}};return s}function Qt(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function $t(e,t){Rs+=e,Ns+=t,++As}function Jt(){function e(e,r){var o=e-t,i=r-n,a=Math.sqrt(o*o+i*i);Ms+=a*(t+e)/2,Ds+=a*(n+r)/2,Is+=a,$t(t=e,n=r)}var t,n;Xs.point=function(r,o){Xs.point=e,$t(t=r,n=o)}}function en(){Xs.point=$t}function tn(){function e(e,t){var n=e-r,i=t-o,a=Math.sqrt(n*n+i*i);Ms+=a*(r+e)/2,Ds+=a*(o+t)/2,Is+=a,a=o*e-r*t,Ls+=a*(r+e),ks+=a*(o+t),js+=3*a,$t(r=e,o=t)}var t,n,r,o;Xs.point=function(i,a){Xs.point=e,$t(t=r=i,n=o=a)},Xs.lineEnd=function(){e(t,n)}}function nn(e){function t(t,n){e.moveTo(t+a,n),e.arc(t,n,a,0,Ua)}function n(t,n){e.moveTo(t,n),s.point=r}function r(t,n){e.lineTo(t,n)}function o(){s.point=t}function i(){e.closePath()}var a=4.5,s={point:t,lineStart:function(){s.point=n},lineEnd:o,polygonStart:function(){s.lineEnd=i},polygonEnd:function(){s.lineEnd=o,s.point=t},pointRadius:function(e){return a=e,s},result:C};return s}function rn(e){function t(e){return(s?r:n)(e)}function n(t){return sn(t,function(n,r){n=e(n,r),t.point(n[0],n[1])})}function r(t){function n(n,r){n=e(n,r),t.point(n[0],n[1])}function r(){_=NaN,w.point=i,t.lineStart()}function i(n,r){var i=yt([n,r]),a=e(n,r);o(_,b,v,E,x,C,_=a[0],b=a[1],v=n,E=i[0],x=i[1],C=i[2],s,t),t.point(_,b)}function a(){w.point=n,t.lineEnd()}function u(){r(),w.point=c,w.lineEnd=l}function c(e,t){i(p=e,f=t),d=_,h=b,g=E,m=x,y=C,w.point=i}function l(){o(_,b,v,E,x,C,d,h,p,g,m,y,s,t),w.lineEnd=a,a()}var p,f,d,h,g,m,y,v,_,b,E,x,C,w={point:n,lineStart:r,lineEnd:a,polygonStart:function(){t.polygonStart(),w.lineStart=u},polygonEnd:function(){t.polygonEnd(),w.lineStart=r}};return w}function o(t,n,r,s,u,c,l,p,f,d,h,g,m,y){var v=l-t,_=p-n,b=v*v+_*_;if(b>4*i&&m--){var E=s+d,x=u+h,C=c+g,w=Math.sqrt(E*E+x*x+C*C),S=Math.asin(C/=w),O=ba(ba(C)-1)<ja||ba(r-f)<ja?(r+f)/2:Math.atan2(x,E),T=e(O,S),P=T[0],R=T[1],N=P-t,A=R-n,M=_*N-v*A;(M*M/b>i||ba((v*N+_*A)/b-.5)>.3||s*d+u*h+c*g<a)&&(o(t,n,r,s,u,c,P,R,O,E/=w,x/=w,C,m,y),y.point(P,R),o(P,R,O,E,x,C,l,p,f,d,h,g,m,y))}}var i=.5,a=Math.cos(30*Ha),s=16;return t.precision=function(e){return arguments.length?(s=(i=e*e)>0&&16,t):Math.sqrt(i)},t}function on(e){var t=rn(function(t,n){return e([t*Ba,n*Ba])});return function(e){return ln(t(e))}}function an(e){this.stream=e}function sn(e,t){return{point:t,sphere:function(){e.sphere()},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}}}function un(e){return cn(function(){return e})()}function cn(e){function t(e){return e=s(e[0]*Ha,e[1]*Ha),[e[0]*f+u,c-e[1]*f]}function n(e){return e=s.invert((e[0]-u)/f,(c-e[1])/f),e&&[e[0]*Ba,e[1]*Ba]}function r(){s=Nt(a=dn(y,v,_),i);var e=i(g,m);return u=d-e[0]*f,c=h+e[1]*f,o()}function o(){return l&&(l.valid=!1,l=null),t}var i,a,s,u,c,l,p=rn(function(e,t){return e=i(e,t),[e[0]*f+u,c-e[1]*f]}),f=150,d=480,h=250,g=0,m=0,y=0,v=0,_=0,E=Vs,x=b,C=null,w=null;return t.stream=function(e){return l&&(l.valid=!1),l=ln(E(a,p(x(e)))),l.valid=!0,l},t.clipAngle=function(e){return arguments.length?(E=null==e?(C=e,Vs):Ht((C=+e)*Ha),o()):C},t.clipExtent=function(e){return arguments.length?(w=e,x=e?qt(e[0][0],e[0][1],e[1][0],e[1][1]):b,o()):w},t.scale=function(e){return arguments.length?(f=+e,r()):f},t.translate=function(e){return arguments.length?(d=+e[0],h=+e[1],r()):[d,h]},t.center=function(e){return arguments.length?(g=e[0]%360*Ha,m=e[1]%360*Ha,r()):[g*Ba,m*Ba]},t.rotate=function(e){return arguments.length?(y=e[0]%360*Ha,v=e[1]%360*Ha,_=e.length>2?e[2]%360*Ha:0,r()):[y*Ba,v*Ba,_*Ba]},la.rebind(t,p,"precision"),function(){return i=e.apply(this,arguments),t.invert=i.invert&&n,r()}}function ln(e){return sn(e,function(t,n){e.point(t*Ha,n*Ha)})}function pn(e,t){return[e,t]}function fn(e,t){return[e>Va?e-Ua:e<-Va?e+Ua:e,t]}function dn(e,t,n){return e?t||n?Nt(gn(e),mn(t,n)):gn(e):t||n?mn(t,n):fn}function hn(e){return function(t,n){return t+=e,[t>Va?t-Ua:t<-Va?t+Ua:t,n]}}function gn(e){var t=hn(e);return t.invert=hn(-e),t}function mn(e,t){function n(e,t){var n=Math.cos(t),s=Math.cos(e)*n,u=Math.sin(e)*n,c=Math.sin(t),l=c*r+s*o;return[Math.atan2(u*i-l*a,s*r-c*o),re(l*i+u*a)]}var r=Math.cos(e),o=Math.sin(e),i=Math.cos(t),a=Math.sin(t);return n.invert=function(e,t){var n=Math.cos(t),s=Math.cos(e)*n,u=Math.sin(e)*n,c=Math.sin(t),l=c*i-u*a;return[Math.atan2(u*i+c*a,s*r+l*o),re(l*r-s*o)]},n}function yn(e,t){var n=Math.cos(e),r=Math.sin(e);return function(o,i,a,s){var u=a*t;null!=o?(o=vn(n,o),i=vn(n,i),(a>0?o<i:o>i)&&(o+=a*Ua)):(o=e+a*Ua,i=e-.5*u);for(var c,l=o;a>0?l>i:l<i;l-=u)s.point((c=Ct([n,-r*Math.cos(l),-r*Math.sin(l)]))[0],c[1])}}function vn(e,t){var n=yt(t);n[0]-=e,xt(n);var r=ne(-n[1]);return((-n[2]<0?-r:r)+2*Math.PI-ja)%(2*Math.PI)}function _n(e,t,n){var r=la.range(e,t-ja,n).concat(t);return function(e){return r.map(function(t){return[e,t]})}}function bn(e,t,n){var r=la.range(e,t-ja,n).concat(t);return function(e){return r.map(function(t){return[t,e]})}}function En(e){return e.source}function xn(e){return e.target}function Cn(e,t,n,r){var o=Math.cos(t),i=Math.sin(t),a=Math.cos(r),s=Math.sin(r),u=o*Math.cos(e),c=o*Math.sin(e),l=a*Math.cos(n),p=a*Math.sin(n),f=2*Math.asin(Math.sqrt(se(r-t)+o*a*se(n-e))),d=1/Math.sin(f),h=f?function(e){var t=Math.sin(e*=f)*d,n=Math.sin(f-e)*d,r=n*u+t*l,o=n*c+t*p,a=n*i+t*s;return[Math.atan2(o,r)*Ba,Math.atan2(a,Math.sqrt(r*r+o*o))*Ba]}:function(){return[e*Ba,t*Ba]};return h.distance=f,h}function wn(){function e(e,o){var i=Math.sin(o*=Ha),a=Math.cos(o),s=ba((e*=Ha)-t),u=Math.cos(s);Ks+=Math.atan2(Math.sqrt((s=a*Math.sin(s))*s+(s=r*i-n*a*u)*s),n*i+r*a*u),t=e,n=i,r=a}var t,n,r;Qs.point=function(o,i){t=o*Ha,n=Math.sin(i*=Ha),r=Math.cos(i),Qs.point=e},Qs.lineEnd=function(){Qs.point=Qs.lineEnd=C}}function Sn(e,t){function n(t,n){var r=Math.cos(t),o=Math.cos(n),i=e(r*o);return[i*o*Math.sin(t),i*Math.sin(n)]}return n.invert=function(e,n){var r=Math.sqrt(e*e+n*n),o=t(r),i=Math.sin(o),a=Math.cos(o);return[Math.atan2(e*i,r*a),Math.asin(r&&n*i/r)]},n}function On(e,t){function n(e,t){a>0?t<-Ga+ja&&(t=-Ga+ja):t>Ga-ja&&(t=Ga-ja);var n=a/Math.pow(o(t),i);return[n*Math.sin(i*e),a-n*Math.cos(i*e)]}var r=Math.cos(e),o=function(e){return Math.tan(Va/4+e/2)},i=e===t?Math.sin(e):Math.log(r/Math.cos(t))/Math.log(o(t)/o(e)),a=r*Math.pow(o(e),i)/i;return i?(n.invert=function(e,t){var n=a-t,r=ee(i)*Math.sqrt(e*e+n*n);return[Math.atan2(e,n)/i,2*Math.atan(Math.pow(a/r,1/i))-Ga]},n):Pn}function Tn(e,t){function n(e,t){var n=i-t;return[n*Math.sin(o*e),i-n*Math.cos(o*e)]}var r=Math.cos(e),o=e===t?Math.sin(e):(r-Math.cos(t))/(t-e),i=r/o+e;return ba(o)<ja?pn:(n.invert=function(e,t){var n=i-t;return[Math.atan2(e,n)/o,i-ee(o)*Math.sqrt(e*e+n*n)]},n)}function Pn(e,t){return[e,Math.log(Math.tan(Va/4+t/2))]}function Rn(e){var t,n=un(e),r=n.scale,o=n.translate,i=n.clipExtent;return n.scale=function(){var e=r.apply(n,arguments);return e===n?t?n.clipExtent(null):n:e},n.translate=function(){var e=o.apply(n,arguments);return e===n?t?n.clipExtent(null):n:e},n.clipExtent=function(e){var a=i.apply(n,arguments);if(a===n){if(t=null==e){var s=Va*r(),u=o();i([[u[0]-s,u[1]-s],[u[0]+s,u[1]+s]])}}else t&&(a=null);return a},n.clipExtent(null)}function Nn(e,t){return[Math.log(Math.tan(Va/4+t/2)),-e]}function An(e){return e[0]}function Mn(e){return e[1]}function Dn(e){for(var t=e.length,n=[0,1],r=2,o=2;o<t;o++){for(;r>1&&te(e[n[r-2]],e[n[r-1]],e[o])<=0;)--r;n[r++]=o}return n.slice(0,r)}function In(e,t){return e[0]-t[0]||e[1]-t[1]}function Ln(e,t,n){return(n[0]-t[0])*(e[1]-t[1])<(n[1]-t[1])*(e[0]-t[0])}function kn(e,t,n,r){var o=e[0],i=n[0],a=t[0]-o,s=r[0]-i,u=e[1],c=n[1],l=t[1]-u,p=r[1]-c,f=(s*(u-c)-p*(o-i))/(p*a-s*l);return[o+f*a,u+f*l]}function jn(e){var t=e[0],n=e[e.length-1];return!(t[0]-n[0]||t[1]-n[1])}function Fn(){ir(this),this.edge=this.site=this.circle=null}function Vn(e){var t=cu.pop()||new Fn;return t.site=e,t}function Un(e){Kn(e),au.remove(e),cu.push(e),ir(e)}function zn(e){var t=e.circle,n=t.x,r=t.cy,o={x:n,y:r},i=e.P,a=e.N,s=[e];Un(e);for(var u=i;u.circle&&ba(n-u.circle.x)<ja&&ba(r-u.circle.cy)<ja;)i=u.P,s.unshift(u),Un(u),u=i;s.unshift(u),Kn(u);for(var c=a;c.circle&&ba(n-c.circle.x)<ja&&ba(r-c.circle.cy)<ja;)a=c.N,s.push(c),Un(c),c=a;s.push(c),Kn(c);var l,p=s.length;for(l=1;l<p;++l)c=s[l],u=s[l-1],nr(c.edge,u.site,c.site,o);u=s[0],c=s[p-1],c.edge=er(u.site,c.site,null,o),Xn(u),Xn(c)}function Gn(e){for(var t,n,r,o,i=e.x,a=e.y,s=au._;s;)if(r=Hn(s,a)-i,r>ja)s=s.L;else{if(o=i-Bn(s,a),!(o>ja)){r>-ja?(t=s.P,n=s):o>-ja?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}var u=Vn(e);if(au.insert(t,u),t||n){if(t===n)return Kn(t),n=Vn(t.site),au.insert(u,n),u.edge=n.edge=er(t.site,u.site),Xn(t),void Xn(n);if(!n)return void(u.edge=er(t.site,u.site));Kn(t),Kn(n);var c=t.site,l=c.x,p=c.y,f=e.x-l,d=e.y-p,h=n.site,g=h.x-l,m=h.y-p,y=2*(f*m-d*g),v=f*f+d*d,_=g*g+m*m,b={x:(m*v-d*_)/y+l,y:(f*_-g*v)/y+p};nr(n.edge,c,h,b),u.edge=er(c,e,null,b),n.edge=er(e,h,null,b),Xn(t),Xn(n)}}function Hn(e,t){var n=e.site,r=n.x,o=n.y,i=o-t;if(!i)return r;var a=e.P;if(!a)return-(1/0);n=a.site;var s=n.x,u=n.y,c=u-t;if(!c)return s;var l=s-r,p=1/i-1/c,f=l/c;return p?(-f+Math.sqrt(f*f-2*p*(l*l/(-2*c)-u+c/2+o-i/2)))/p+r:(r+s)/2}function Bn(e,t){var n=e.N;if(n)return Hn(n,t);var r=e.site;return r.y===t?r.x:1/0}function qn(e){this.site=e,this.edges=[]}function Zn(e){for(var t,n,r,o,i,a,s,u,c,l,p=e[0][0],f=e[1][0],d=e[0][1],h=e[1][1],g=iu,m=g.length;m--;)if(i=g[m],i&&i.prepare())for(s=i.edges,u=s.length,a=0;a<u;)l=s[a].end(),r=l.x,o=l.y,c=s[++a%u].start(),t=c.x,n=c.y,(ba(r-t)>ja||ba(o-n)>ja)&&(s.splice(a,0,new rr(tr(i.site,l,ba(r-p)<ja&&h-o>ja?{x:p,y:ba(t-p)<ja?n:h}:ba(o-h)<ja&&f-r>ja?{x:ba(n-h)<ja?t:f,y:h}:ba(r-f)<ja&&o-d>ja?{x:f,y:ba(t-f)<ja?n:d}:ba(o-d)<ja&&r-p>ja?{x:ba(n-d)<ja?t:p,y:d}:null),i.site,null)),++u)}function Wn(e,t){return t.angle-e.angle}function Yn(){ir(this),this.x=this.y=this.arc=this.site=this.cy=null}function Xn(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,o=e.site,i=n.site;if(r!==i){var a=o.x,s=o.y,u=r.x-a,c=r.y-s,l=i.x-a,p=i.y-s,f=2*(u*p-c*l);if(!(f>=-Fa)){var d=u*u+c*c,h=l*l+p*p,g=(p*d-c*h)/f,m=(u*h-l*d)/f,p=m+s,y=lu.pop()||new Yn;y.arc=e,y.site=o,y.x=g+a,y.y=p+Math.sqrt(g*g+m*m),y.cy=p,e.circle=y;for(var v=null,_=uu._;_;)if(y.y<_.y||y.y===_.y&&y.x<=_.x){if(!_.L){v=_.P;break}_=_.L}else{if(!_.R){v=_;break}_=_.R}uu.insert(v,y),v||(su=y)}}}}function Kn(e){var t=e.circle;t&&(t.P||(su=t.N),uu.remove(t),lu.push(t),ir(t),e.circle=null)}function Qn(e){for(var t,n=ou,r=Bt(e[0][0],e[0][1],e[1][0],e[1][1]),o=n.length;o--;)t=n[o],(!$n(t,e)||!r(t)||ba(t.a.x-t.b.x)<ja&&ba(t.a.y-t.b.y)<ja)&&(t.a=t.b=null,n.splice(o,1))}function $n(e,t){var n=e.b;if(n)return!0;var r,o,i=e.a,a=t[0][0],s=t[1][0],u=t[0][1],c=t[1][1],l=e.l,p=e.r,f=l.x,d=l.y,h=p.x,g=p.y,m=(f+h)/2,y=(d+g)/2;if(g===d){if(m<a||m>=s)return;if(f>h){if(i){if(i.y>=c)return}else i={x:m,y:u};n={x:m,y:c}}else{if(i){if(i.y<u)return}else i={x:m,y:c};n={x:m,y:u}}}else if(r=(f-h)/(g-d),o=y-r*m,r<-1||r>1)if(f>h){if(i){if(i.y>=c)return}else i={x:(u-o)/r,y:u};n={x:(c-o)/r,y:c}}else{if(i){if(i.y<u)return}else i={x:(c-o)/r,y:c};n={x:(u-o)/r,y:u}}else if(d<g){if(i){if(i.x>=s)return}else i={x:a,y:r*a+o};n={x:s,y:r*s+o}}else{if(i){if(i.x<a)return}else i={x:s,y:r*s+o};n={x:a,y:r*a+o}}return e.a=i,e.b=n,!0}function Jn(e,t){this.l=e,this.r=t,this.a=this.b=null}function er(e,t,n,r){var o=new Jn(e,t);return ou.push(o),n&&nr(o,e,t,n),r&&nr(o,t,e,r),iu[e.i].edges.push(new rr(o,e,t)),iu[t.i].edges.push(new rr(o,t,e)),o}function tr(e,t,n){var r=new Jn(e,null);return r.a=t,r.b=n,ou.push(r),r}function nr(e,t,n,r){e.a||e.b?e.l===n?e.b=r:e.a=r:(e.a=r,e.l=t,e.r=n)}function rr(e,t,n){var r=e.a,o=e.b;this.edge=e,this.site=t,this.angle=n?Math.atan2(n.y-t.y,n.x-t.x):e.l===t?Math.atan2(o.x-r.x,r.y-o.y):Math.atan2(r.x-o.x,o.y-r.y)}function or(){this._=null}function ir(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function ar(e,t){var n=t,r=t.R,o=n.U;o?o.L===n?o.L=r:o.R=r:e._=r,r.U=o,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function sr(e,t){var n=t,r=t.L,o=n.U;o?o.L===n?o.L=r:o.R=r:e._=r,r.U=o,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function ur(e){for(;e.L;)e=e.L;return e}function cr(e,t){var n,r,o,i=e.sort(lr).pop();for(ou=[],iu=new Array(e.length),au=new or,uu=new or;;)if(o=su,i&&(!o||i.y<o.y||i.y===o.y&&i.x<o.x))i.x===n&&i.y===r||(iu[i.i]=new qn(i),Gn(i),n=i.x,r=i.y),i=e.pop();else{if(!o)break;zn(o.arc)}t&&(Qn(t),Zn(t));var a={cells:iu,edges:ou};return au=uu=ou=iu=null,a}function lr(e,t){return t.y-e.y||t.x-e.x}function pr(e,t,n){return(e.x-n.x)*(t.y-e.y)-(e.x-t.x)*(n.y-e.y)}function fr(e){return e.x}function dr(e){return e.y}function hr(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function gr(e,t,n,r,o,i){if(!e(t,n,r,o,i)){var a=.5*(n+o),s=.5*(r+i),u=t.nodes;u[0]&&gr(e,u[0],n,r,a,s),u[1]&&gr(e,u[1],a,r,o,s),u[2]&&gr(e,u[2],n,s,a,i),u[3]&&gr(e,u[3],a,s,o,i)}}function mr(e,t,n,r,o,i,a){var s,u=1/0;return function e(c,l,p,f,d){if(!(l>i||p>a||f<r||d<o)){if(h=c.point){var h,g=t-c.x,m=n-c.y,y=g*g+m*m;if(y<u){var v=Math.sqrt(u=y);r=t-v,o=n-v,i=t+v,a=n+v,s=h}}for(var _=c.nodes,b=.5*(l+f),E=.5*(p+d),x=t>=b,C=n>=E,w=C<<1|x,S=w+4;w<S;++w)if(c=_[3&w])switch(3&w){case 0:e(c,l,p,b,E);break;case 1:e(c,b,p,f,E);break;case 2:e(c,l,E,b,d);break;case 3:e(c,b,E,f,d)}}}(e,r,o,i,a),s}function yr(e,t){e=la.rgb(e),t=la.rgb(t);var n=e.r,r=e.g,o=e.b,i=t.r-n,a=t.g-r,s=t.b-o;return function(e){return"#"+xe(Math.round(n+i*e))+xe(Math.round(r+a*e))+xe(Math.round(o+s*e))}}function vr(e,t){var n,r={},o={};for(n in e)n in t?r[n]=Er(e[n],t[n]):o[n]=e[n];for(n in t)n in e||(o[n]=t[n]);return function(e){for(n in r)o[n]=r[n](e);return o}}function _r(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function br(e,t){var n,r,o,i=fu.lastIndex=du.lastIndex=0,a=-1,s=[],u=[];for(e+="",t+="";(n=fu.exec(e))&&(r=du.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:_r(n,r)})),i=du.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?u[0]?(t=u[0].x,function(e){return t(e)+""}):function(){return t}:(t=u.length,function(e){for(var n,r=0;r<t;++r)s[(n=u[r]).i]=n.x(e);return s.join("")})}function Er(e,t){for(var n,r=la.interpolators.length;--r>=0&&!(n=la.interpolators[r](e,t)););return n}function xr(e,t){var n,r=[],o=[],i=e.length,a=t.length,s=Math.min(e.length,t.length);for(n=0;n<s;++n)r.push(Er(e[n],t[n]));for(;n<i;++n)o[n]=e[n];for(;n<a;++n)o[n]=t[n];return function(e){for(n=0;n<s;++n)o[n]=r[n](e);return o}}function Cr(e){return function(t){return t<=0?0:t>=1?1:e(t)}}function wr(e){return function(t){return 1-e(1-t)}}function Sr(e){return function(t){return.5*(t<.5?e(2*t):2-e(2-2*t))}}function Or(e){return e*e}function Tr(e){return e*e*e}function Pr(e){if(e<=0)return 0;if(e>=1)return 1;var t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}function Rr(e){return function(t){return Math.pow(t,e)}}function Nr(e){return 1-Math.cos(e*Ga)}function Ar(e){return Math.pow(2,10*(e-1))}function Mr(e){return 1-Math.sqrt(1-e*e)}function Dr(e,t){var n;return arguments.length<2&&(t=.45),arguments.length?n=t/Ua*Math.asin(1/e):(e=1,n=t/4),function(r){return 1+e*Math.pow(2,-10*r)*Math.sin((r-n)*Ua/t)}}function Ir(e){return e||(e=1.70158),function(t){return t*t*((e+1)*t-e)}}function Lr(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function kr(e,t){e=la.hcl(e),t=la.hcl(t);var n=e.h,r=e.c,o=e.l,i=t.h-n,a=t.c-r,s=t.l-o;return isNaN(a)&&(a=0,r=isNaN(r)?t.c:r),isNaN(i)?(i=0,n=isNaN(n)?t.h:n):i>180?i-=360:i<-180&&(i+=360),function(e){return fe(n+i*e,r+a*e,o+s*e)+""}}function jr(e,t){e=la.hsl(e),t=la.hsl(t);var n=e.h,r=e.s,o=e.l,i=t.h-n,a=t.s-r,s=t.l-o;return isNaN(a)&&(a=0,r=isNaN(r)?t.s:r),isNaN(i)?(i=0,n=isNaN(n)?t.h:n):i>180?i-=360:i<-180&&(i+=360),function(e){return le(n+i*e,r+a*e,o+s*e)+""}}function Fr(e,t){e=la.lab(e),t=la.lab(t);var n=e.l,r=e.a,o=e.b,i=t.l-n,a=t.a-r,s=t.b-o;return function(e){return he(n+i*e,r+a*e,o+s*e)+""}}function Vr(e,t){return t-=e,function(n){return Math.round(e+t*n)}}function Ur(e){var t=[e.a,e.b],n=[e.c,e.d],r=Gr(t),o=zr(t,n),i=Gr(Hr(n,t,-o))||0;t[0]*n[1]<n[0]*t[1]&&(t[0]*=-1,t[1]*=-1,r*=-1,o*=-1),this.rotate=(r?Math.atan2(t[1],t[0]):Math.atan2(-n[0],n[1]))*Ba,this.translate=[e.e,e.f],this.scale=[r,i],this.skew=i?Math.atan2(o,i)*Ba:0}function zr(e,t){return e[0]*t[0]+e[1]*t[1]}function Gr(e){var t=Math.sqrt(zr(e,e));return t&&(e[0]/=t,e[1]/=t),t}function Hr(e,t,n){return e[0]+=n*t[0],e[1]+=n*t[1],e}function Br(e){return e.length?e.pop()+",":""}function qr(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var o=n.push("translate(",null,",",null,")");r.push({i:o-4,x:_r(e[0],t[0])},{i:o-2,x:_r(e[1],t[1])})}else(t[0]||t[1])&&n.push("translate("+t+")")}function Zr(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(Br(n)+"rotate(",null,")")-2,x:_r(e,t)})):t&&n.push(Br(n)+"rotate("+t+")")}function Wr(e,t,n,r){e!==t?r.push({i:n.push(Br(n)+"skewX(",null,")")-2,x:_r(e,t)}):t&&n.push(Br(n)+"skewX("+t+")")}function Yr(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var o=n.push(Br(n)+"scale(",null,",",null,")");r.push({i:o-4,x:_r(e[0],t[0])},{i:o-2,x:_r(e[1],t[1])})}else 1===t[0]&&1===t[1]||n.push(Br(n)+"scale("+t+")")}function Xr(e,t){var n=[],r=[];return e=la.transform(e),t=la.transform(t),qr(e.translate,t.translate,n,r),Zr(e.rotate,t.rotate,n,r),Wr(e.skew,t.skew,n,r),Yr(e.scale,t.scale,n,r),e=t=null,function(e){for(var t,o=-1,i=r.length;++o<i;)n[(t=r[o]).i]=t.x(e);return n.join("")}}function Kr(e,t){return t=(t-=e=+e)||1/t,function(n){return(n-e)/t}}function Qr(e,t){return t=(t-=e=+e)||1/t,function(n){return Math.max(0,Math.min(1,(n-e)/t))}}function $r(e){for(var t=e.source,n=e.target,r=eo(t,n),o=[t];t!==r;)t=t.parent,o.push(t);for(var i=o.length;n!==r;)o.splice(i,0,n),n=n.parent;return o}function Jr(e){for(var t=[],n=e.parent;null!=n;)t.push(e),e=n,n=n.parent;return t.push(e),t}function eo(e,t){if(e===t)return e;for(var n=Jr(e),r=Jr(t),o=n.pop(),i=r.pop(),a=null;o===i;)a=o,o=n.pop(),i=r.pop();return a}function to(e){e.fixed|=2}function no(e){e.fixed&=-7}function ro(e){e.fixed|=4,e.px=e.x,e.py=e.y}function oo(e){e.fixed&=-5}function io(e,t,n){var r=0,o=0;if(e.charge=0,!e.leaf)for(var i,a=e.nodes,s=a.length,u=-1;++u<s;)i=a[u],null!=i&&(io(i,t,n),e.charge+=i.charge,r+=i.charge*i.cx,o+=i.charge*i.cy);if(e.point){e.leaf||(e.point.x+=Math.random()-.5,e.point.y+=Math.random()-.5);var c=t*n[e.point.index];e.charge+=e.pointCharge=c,r+=c*e.point.x,o+=c*e.point.y}e.cx=r/e.charge,e.cy=o/e.charge}function ao(e,t){return la.rebind(e,t,"sort","children","value"),e.nodes=e,e.links=fo,e}function so(e,t){for(var n=[e];null!=(e=n.pop());)if(t(e),(o=e.children)&&(r=o.length))for(var r,o;--r>=0;)n.push(o[r])}function uo(e,t){for(var n=[e],r=[];null!=(e=n.pop());)if(r.push(e),(i=e.children)&&(o=i.length))for(var o,i,a=-1;++a<o;)n.push(i[a]);for(;null!=(e=r.pop());)t(e)}function co(e){return e.children}function lo(e){return e.value}function po(e,t){return t.value-e.value}function fo(e){return la.merge(e.map(function(e){return(e.children||[]).map(function(t){return{source:e,target:t}})}))}function ho(e){return e.x}function go(e){return e.y}function mo(e,t,n){e.y0=t,e.y=n}function yo(e){return la.range(e.length)}function vo(e){for(var t=-1,n=e[0].length,r=[];++t<n;)r[t]=0;return r}function _o(e){for(var t,n=1,r=0,o=e[0][1],i=e.length;n<i;++n)(t=e[n][1])>o&&(r=n,o=t);return r}function bo(e){return e.reduce(Eo,0)}function Eo(e,t){return e+t[1]}function xo(e,t){return Co(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function Co(e,t){for(var n=-1,r=+e[0],o=(e[1]-r)/t,i=[];++n<=t;)i[n]=o*n+r;return i}function wo(e){return[la.min(e),la.max(e)]}function So(e,t){return e.value-t.value}function Oo(e,t){var n=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=n,n._pack_prev=t}function To(e,t){e._pack_next=t,t._pack_prev=e}function Po(e,t){var n=t.x-e.x,r=t.y-e.y,o=e.r+t.r;return.999*o*o>n*n+r*r}function Ro(e){function t(e){l=Math.min(e.x-e.r,l),p=Math.max(e.x+e.r,p),f=Math.min(e.y-e.r,f),d=Math.max(e.y+e.r,d)}if((n=e.children)&&(c=n.length)){var n,r,o,i,a,s,u,c,l=1/0,p=-(1/0),f=1/0,d=-(1/0);if(n.forEach(No),r=n[0],r.x=-r.r,r.y=0,t(r),c>1&&(o=n[1],o.x=o.r,o.y=0,t(o),c>2))for(i=n[2],Do(r,o,i),t(i),Oo(r,i),r._pack_prev=i,Oo(i,o),o=r._pack_next,a=3;a<c;a++){Do(r,o,i=n[a]);var h=0,g=1,m=1;for(s=o._pack_next;s!==o;s=s._pack_next,g++)if(Po(s,i)){h=1;break}if(1==h)for(u=r._pack_prev;u!==s._pack_prev&&!Po(u,i);u=u._pack_prev,m++);h?(g<m||g==m&&o.r<r.r?To(r,o=s):To(r=u,o),a--):(Oo(r,i),o=i,t(i))}var y=(l+p)/2,v=(f+d)/2,_=0;for(a=0;a<c;a++)i=n[a],i.x-=y,i.y-=v,_=Math.max(_,i.r+Math.sqrt(i.x*i.x+i.y*i.y));e.r=_,n.forEach(Ao)}}function No(e){e._pack_next=e._pack_prev=e}function Ao(e){delete e._pack_next,delete e._pack_prev}function Mo(e,t,n,r){var o=e.children;if(e.x=t+=r*e.x,e.y=n+=r*e.y,e.r*=r,o)for(var i=-1,a=o.length;++i<a;)Mo(o[i],t,n,r)}function Do(e,t,n){var r=e.r+n.r,o=t.x-e.x,i=t.y-e.y;if(r&&(o||i)){var a=t.r+n.r,s=o*o+i*i;a*=a,r*=r;var u=.5+(r-a)/(2*s),c=Math.sqrt(Math.max(0,2*a*(r+s)-(r-=s)*r-a*a))/(2*s);n.x=e.x+u*o+c*i,n.y=e.y+u*i-c*o}else n.x=e.x+r,n.y=e.y}function Io(e,t){return e.parent==t.parent?1:2}function Lo(e){var t=e.children;return t.length?t[0]:e.t}function ko(e){var t,n=e.children;return(t=n.length)?n[t-1]:e.t}function jo(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function Fo(e){for(var t,n=0,r=0,o=e.children,i=o.length;--i>=0;)t=o[i],t.z+=n,t.m+=n,n+=t.s+(r+=t.c)}function Vo(e,t,n){return e.a.parent===t.parent?e.a:n}function Uo(e){return 1+la.max(e,function(e){return e.y})}function zo(e){return e.reduce(function(e,t){return e+t.x},0)/e.length}function Go(e){var t=e.children;return t&&t.length?Go(t[0]):e}function Ho(e){var t,n=e.children;return n&&(t=n.length)?Ho(n[t-1]):e}function Bo(e){return{x:e.x,y:e.y,dx:e.dx,dy:e.dy}}function qo(e,t){var n=e.x+t[3],r=e.y+t[0],o=e.dx-t[1]-t[3],i=e.dy-t[0]-t[2];return o<0&&(n+=o/2,o=0),i<0&&(r+=i/2,i=0),{x:n,y:r,dx:o,dy:i}}function Zo(e){var t=e[0],n=e[e.length-1];return t<n?[t,n]:[n,t]}function Wo(e){return e.rangeExtent?e.rangeExtent():Zo(e.range())}function Yo(e,t,n,r){var o=n(e[0],e[1]),i=r(t[0],t[1]);return function(e){return i(o(e))}}function Xo(e,t){var n,r=0,o=e.length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}function Ko(e){return e?{floor:function(t){return Math.floor(t/e)*e},ceil:function(t){return Math.ceil(t/e)*e}}:wu}function Qo(e,t,n,r){var o=[],i=[],a=0,s=Math.min(e.length,t.length)-1;for(e[s]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<=s;)o.push(n(e[a-1],e[a])),i.push(r(t[a-1],t[a]));return function(t){var n=la.bisect(e,t,1,s)-1;return i[n](o[n](t))}}function $o(e,t,n,r){function o(){var o=Math.min(e.length,t.length)>2?Qo:Yo,u=r?Qr:Kr;return a=o(e,t,u,n),s=o(t,e,u,Er),i}function i(e){return a(e)}var a,s;return i.invert=function(e){return s(e)},i.domain=function(t){return arguments.length?(e=t.map(Number),o()):e},i.range=function(e){return arguments.length?(t=e,o()):t},i.rangeRound=function(e){return i.range(e).interpolate(Vr)},i.clamp=function(e){return arguments.length?(r=e,o()):r},i.interpolate=function(e){return arguments.length?(n=e,o()):n},i.ticks=function(t){return ni(e,t)},i.tickFormat=function(t,n){return ri(e,t,n)},i.nice=function(t){return ei(e,t),o()},i.copy=function(){return $o(e,t,n,r)},o()}function Jo(e,t){return la.rebind(e,t,"range","rangeRound","interpolate","clamp")}function ei(e,t){return Xo(e,Ko(ti(e,t)[2])),Xo(e,Ko(ti(e,t)[2])),e}function ti(e,t){null==t&&(t=10);var n=Zo(e),r=n[1]-n[0],o=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),i=t/r*o;return i<=.15?o*=10:i<=.35?o*=5:i<=.75&&(o*=2),n[0]=Math.ceil(n[0]/o)*o,n[1]=Math.floor(n[1]/o)*o+.5*o,n[2]=o,n}function ni(e,t){return la.range.apply(la,ti(e,t))}function ri(e,t,n){var r=ti(e,t);if(n){var o=fs.exec(n);if(o.shift(),"s"===o[8]){var i=la.formatPrefix(Math.max(ba(r[0]),ba(r[1])));return o[7]||(o[7]="."+oi(i.scale(r[2]))),o[8]="f",n=la.format(o.join("")),function(e){return n(i.scale(e))+i.symbol}}o[7]||(o[7]="."+ii(o[8],r)),n=o.join("")}else n=",."+oi(r[2])+"f";return la.format(n)}function oi(e){return-Math.floor(Math.log(e)/Math.LN10+.01)}function ii(e,t){var n=oi(t[2]);return e in Su?Math.abs(n-oi(Math.max(ba(t[0]),ba(t[1]))))+ +("e"!==e):n-2*("%"===e)}function ai(e,t,n,r){function o(e){return(n?Math.log(e<0?0:e):-Math.log(e>0?0:-e))/Math.log(t)}function i(e){return n?Math.pow(t,e):-Math.pow(t,-e)}function a(t){return e(o(t))}return a.invert=function(t){return i(e.invert(t))},a.domain=function(t){return arguments.length?(n=t[0]>=0,e.domain((r=t.map(Number)).map(o)),a):r},a.base=function(n){return arguments.length?(t=+n,e.domain(r.map(o)),a):t},a.nice=function(){var t=Xo(r.map(o),n?Math:Tu);return e.domain(t),r=t.map(i),a},a.ticks=function(){var e=Zo(r),a=[],s=e[0],u=e[1],c=Math.floor(o(s)),l=Math.ceil(o(u)),p=t%1?2:t;if(isFinite(l-c)){if(n){for(;c<l;c++)for(var f=1;f<p;f++)a.push(i(c)*f);a.push(i(c))}else for(a.push(i(c));c++<l;)for(var f=p-1;f>0;f--)a.push(i(c)*f);for(c=0;a[c]<s;c++);for(l=a.length;a[l-1]>u;l--);a=a.slice(c,l)}return a},a.tickFormat=function(e,n){if(!arguments.length)return Ou;arguments.length<2?n=Ou:"function"!=typeof n&&(n=la.format(n));var r=Math.max(1,t*e/a.ticks().length);return function(e){var a=e/i(Math.round(o(e)));return a*t<t-.5&&(a*=t),a<=r?n(e):""}},a.copy=function(){return ai(e.copy(),t,n,r)},Jo(a,e)}function si(e,t,n){function r(t){return e(o(t))}var o=ui(t),i=ui(1/t);return r.invert=function(t){return i(e.invert(t))},r.domain=function(t){return arguments.length?(e.domain((n=t.map(Number)).map(o)),r):n},r.ticks=function(e){return ni(n,e)},r.tickFormat=function(e,t){return ri(n,e,t)},r.nice=function(e){return r.domain(ei(n,e))},r.exponent=function(a){return arguments.length?(o=ui(t=a),i=ui(1/t),e.domain(n.map(o)),r):t},r.copy=function(){return si(e.copy(),t,n)},Jo(r,e)}function ui(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function ci(e,t){function n(n){return i[((o.get(n)||("range"===t.t?o.set(n,e.push(n)):NaN))-1)%i.length]}function r(t,n){return la.range(e.length).map(function(e){return t+n*e})}var o,i,a;return n.domain=function(r){if(!arguments.length)return e;e=[],o=new p;for(var i,a=-1,s=r.length;++a<s;)o.has(i=r[a])||o.set(i,e.push(i));return n[t.t].apply(n,t.a)},n.range=function(e){return arguments.length?(i=e,a=0,t={t:"range",a:arguments},n):i},n.rangePoints=function(o,s){arguments.length<2&&(s=0);var u=o[0],c=o[1],l=e.length<2?(u=(u+c)/2,0):(c-u)/(e.length-1+s);return i=r(u+l*s/2,l),a=0,t={t:"rangePoints",a:arguments},n},n.rangeRoundPoints=function(o,s){arguments.length<2&&(s=0);var u=o[0],c=o[1],l=e.length<2?(u=c=Math.round((u+c)/2),0):(c-u)/(e.length-1+s)|0;return i=r(u+Math.round(l*s/2+(c-u-(e.length-1+s)*l)/2),l),a=0,t={t:"rangeRoundPoints",a:arguments},n},n.rangeBands=function(o,s,u){arguments.length<2&&(s=0),arguments.length<3&&(u=s);var c=o[1]<o[0],l=o[c-0],p=o[1-c],f=(p-l)/(e.length-s+2*u);return i=r(l+f*u,f),c&&i.reverse(),a=f*(1-s),t={t:"rangeBands",a:arguments},n},n.rangeRoundBands=function(o,s,u){arguments.length<2&&(s=0),arguments.length<3&&(u=s);var c=o[1]<o[0],l=o[c-0],p=o[1-c],f=Math.floor((p-l)/(e.length-s+2*u));return i=r(l+Math.round((p-l-(e.length-s)*f)/2),f),c&&i.reverse(),a=Math.round(f*(1-s)),t={t:"rangeRoundBands",a:arguments},n},n.rangeBand=function(){return a},n.rangeExtent=function(){return Zo(t.a[0])},n.copy=function(){return ci(e,t)},n.domain(e)}function li(e,t){function n(){var n=0,o=t.length;for(s=[];++n<o;)s[n-1]=la.quantile(e,n/o);return r}function r(e){if(!isNaN(e=+e))return t[la.bisect(s,e)]}var s;return r.domain=function(t){return arguments.length?(e=t.map(i).filter(a).sort(o),n()):e},r.range=function(e){return arguments.length?(t=e,n()):t},r.quantiles=function(){return s},r.invertExtent=function(n){return n=t.indexOf(n),n<0?[NaN,NaN]:[n>0?s[n-1]:e[0],n<s.length?s[n]:e[e.length-1]]},r.copy=function(){return li(e,t)},n()}function pi(e,t,n){function r(t){return n[Math.max(0,Math.min(a,Math.floor(i*(t-e))))]}function o(){return i=n.length/(t-e),a=n.length-1,r}var i,a;return r.domain=function(n){return arguments.length?(e=+n[0],t=+n[n.length-1],o()):[e,t]},r.range=function(e){return arguments.length?(n=e,o()):n},r.invertExtent=function(t){return t=n.indexOf(t),t=t<0?NaN:t/i+e,[t,t+1/i]},r.copy=function(){return pi(e,t,n)},o()}function fi(e,t){function n(n){if(n<=n)return t[la.bisect(e,n)]}return n.domain=function(t){return arguments.length?(e=t,n):e},n.range=function(e){return arguments.length?(t=e,n):t},n.invertExtent=function(n){return n=t.indexOf(n),[e[n-1],e[n]]},n.copy=function(){return fi(e,t)},n}function di(e){function t(e){return+e}return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=n.map(t),t):e},t.ticks=function(t){return ni(e,t)},t.tickFormat=function(t,n){return ri(e,t,n)},t.copy=function(){return di(e)},t}function hi(){return 0}function gi(e){return e.innerRadius}function mi(e){return e.outerRadius}function yi(e){return e.startAngle}function vi(e){return e.endAngle}function _i(e){return e&&e.padAngle}function bi(e,t,n,r){return(e-n)*t-(t-r)*e>0?0:1}function Ei(e,t,n,r,o){var i=e[0]-t[0],a=e[1]-t[1],s=(o?r:-r)/Math.sqrt(i*i+a*a),u=s*a,c=-s*i,l=e[0]+u,p=e[1]+c,f=t[0]+u,d=t[1]+c,h=(l+f)/2,g=(p+d)/2,m=f-l,y=d-p,v=m*m+y*y,_=n-r,b=l*d-f*p,E=(y<0?-1:1)*Math.sqrt(Math.max(0,_*_*v-b*b)),x=(b*y-m*E)/v,C=(-b*m-y*E)/v,w=(b*y+m*E)/v,S=(-b*m+y*E)/v,O=x-h,T=C-g,P=w-h,R=S-g;return O*O+T*T>P*P+R*R&&(x=w,C=S),[[x-u,C-c],[x*n/_,C*n/_]]}function xi(e){function t(t){function a(){c.push("M",i(e(l),s))}for(var u,c=[],l=[],p=-1,f=t.length,d=Pe(n),h=Pe(r);++p<f;)o.call(this,u=t[p],p)?l.push([+d.call(this,u,p),+h.call(this,u,p)]):l.length&&(a(),l=[]);return l.length&&a(),c.length?c.join(""):null}var n=An,r=Mn,o=At,i=Ci,a=i.key,s=.7;return t.x=function(e){return arguments.length?(n=e,t):n},t.y=function(e){return arguments.length?(r=e,t):r},t.defined=function(e){return arguments.length?(o=e,t):o},t.interpolate=function(e){return arguments.length?(a="function"==typeof e?i=e:(i=Du.get(e)||Ci).key,t):a},t.tension=function(e){return arguments.length?(s=e,t):s},t}function Ci(e){return e.length>1?e.join("L"):e+"Z"}function wi(e){return e.join("L")+"Z"}function Si(e){for(var t=0,n=e.length,r=e[0],o=[r[0],",",r[1]];++t<n;)o.push("H",(r[0]+(r=e[t])[0])/2,"V",r[1]);return n>1&&o.push("H",r[0]),o.join("")}function Oi(e){for(var t=0,n=e.length,r=e[0],o=[r[0],",",r[1]];++t<n;)o.push("V",(r=e[t])[1],"H",r[0]);return o.join("")}function Ti(e){for(var t=0,n=e.length,r=e[0],o=[r[0],",",r[1]];++t<n;)o.push("H",(r=e[t])[0],"V",r[1]);return o.join("")}function Pi(e,t){return e.length<4?Ci(e):e[1]+Ai(e.slice(1,-1),Mi(e,t))}function Ri(e,t){return e.length<3?wi(e):e[0]+Ai((e.push(e[0]),e),Mi([e[e.length-2]].concat(e,[e[1]]),t))}function Ni(e,t){return e.length<3?Ci(e):e[0]+Ai(e,Mi(e,t))}function Ai(e,t){if(t.length<1||e.length!=t.length&&e.length!=t.length+2)return Ci(e);var n=e.length!=t.length,r="",o=e[0],i=e[1],a=t[0],s=a,u=1;if(n&&(r+="Q"+(i[0]-2*a[0]/3)+","+(i[1]-2*a[1]/3)+","+i[0]+","+i[1],
17
- o=e[1],u=2),t.length>1){s=t[1],i=e[u],u++,r+="C"+(o[0]+a[0])+","+(o[1]+a[1])+","+(i[0]-s[0])+","+(i[1]-s[1])+","+i[0]+","+i[1];for(var c=2;c<t.length;c++,u++)i=e[u],s=t[c],r+="S"+(i[0]-s[0])+","+(i[1]-s[1])+","+i[0]+","+i[1]}if(n){var l=e[u];r+="Q"+(i[0]+2*s[0]/3)+","+(i[1]+2*s[1]/3)+","+l[0]+","+l[1]}return r}function Mi(e,t){for(var n,r=[],o=(1-t)/2,i=e[0],a=e[1],s=1,u=e.length;++s<u;)n=i,i=a,a=e[s],r.push([o*(a[0]-n[0]),o*(a[1]-n[1])]);return r}function Di(e){if(e.length<3)return Ci(e);var t=1,n=e.length,r=e[0],o=r[0],i=r[1],a=[o,o,o,(r=e[1])[0]],s=[i,i,i,r[1]],u=[o,",",i,"L",ji(ku,a),",",ji(ku,s)];for(e.push(e[n-1]);++t<=n;)r=e[t],a.shift(),a.push(r[0]),s.shift(),s.push(r[1]),Fi(u,a,s);return e.pop(),u.push("L",r),u.join("")}function Ii(e){if(e.length<4)return Ci(e);for(var t,n=[],r=-1,o=e.length,i=[0],a=[0];++r<3;)t=e[r],i.push(t[0]),a.push(t[1]);for(n.push(ji(ku,i)+","+ji(ku,a)),--r;++r<o;)t=e[r],i.shift(),i.push(t[0]),a.shift(),a.push(t[1]),Fi(n,i,a);return n.join("")}function Li(e){for(var t,n,r=-1,o=e.length,i=o+4,a=[],s=[];++r<4;)n=e[r%o],a.push(n[0]),s.push(n[1]);for(t=[ji(ku,a),",",ji(ku,s)],--r;++r<i;)n=e[r%o],a.shift(),a.push(n[0]),s.shift(),s.push(n[1]),Fi(t,a,s);return t.join("")}function ki(e,t){var n=e.length-1;if(n)for(var r,o,i=e[0][0],a=e[0][1],s=e[n][0]-i,u=e[n][1]-a,c=-1;++c<=n;)r=e[c],o=c/n,r[0]=t*r[0]+(1-t)*(i+o*s),r[1]=t*r[1]+(1-t)*(a+o*u);return Di(e)}function ji(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function Fi(e,t,n){e.push("C",ji(Iu,t),",",ji(Iu,n),",",ji(Lu,t),",",ji(Lu,n),",",ji(ku,t),",",ji(ku,n))}function Vi(e,t){return(t[1]-e[1])/(t[0]-e[0])}function Ui(e){for(var t=0,n=e.length-1,r=[],o=e[0],i=e[1],a=r[0]=Vi(o,i);++t<n;)r[t]=(a+(a=Vi(o=i,i=e[t+1])))/2;return r[t]=a,r}function zi(e){for(var t,n,r,o,i=[],a=Ui(e),s=-1,u=e.length-1;++s<u;)t=Vi(e[s],e[s+1]),ba(t)<ja?a[s]=a[s+1]=0:(n=a[s]/t,r=a[s+1]/t,o=n*n+r*r,o>9&&(o=3*t/Math.sqrt(o),a[s]=o*n,a[s+1]=o*r));for(s=-1;++s<=u;)o=(e[Math.min(u,s+1)][0]-e[Math.max(0,s-1)][0])/(6*(1+a[s]*a[s])),i.push([o||0,a[s]*o||0]);return i}function Gi(e){return e.length<3?Ci(e):e[0]+Ai(e,zi(e))}function Hi(e){for(var t,n,r,o=-1,i=e.length;++o<i;)t=e[o],n=t[0],r=t[1]-Ga,t[0]=n*Math.cos(r),t[1]=n*Math.sin(r);return e}function Bi(e){function t(t){function u(){g.push("M",s(e(y),p),l,c(e(m.reverse()),p),"Z")}for(var f,d,h,g=[],m=[],y=[],v=-1,_=t.length,b=Pe(n),E=Pe(o),x=n===r?function(){return d}:Pe(r),C=o===i?function(){return h}:Pe(i);++v<_;)a.call(this,f=t[v],v)?(m.push([d=+b.call(this,f,v),h=+E.call(this,f,v)]),y.push([+x.call(this,f,v),+C.call(this,f,v)])):m.length&&(u(),m=[],y=[]);return m.length&&u(),g.length?g.join(""):null}var n=An,r=An,o=0,i=Mn,a=At,s=Ci,u=s.key,c=s,l="L",p=.7;return t.x=function(e){return arguments.length?(n=r=e,t):r},t.x0=function(e){return arguments.length?(n=e,t):n},t.x1=function(e){return arguments.length?(r=e,t):r},t.y=function(e){return arguments.length?(o=i=e,t):i},t.y0=function(e){return arguments.length?(o=e,t):o},t.y1=function(e){return arguments.length?(i=e,t):i},t.defined=function(e){return arguments.length?(a=e,t):a},t.interpolate=function(e){return arguments.length?(u="function"==typeof e?s=e:(s=Du.get(e)||Ci).key,c=s.reverse||s,l=s.closed?"M":"L",t):u},t.tension=function(e){return arguments.length?(p=e,t):p},t}function qi(e){return e.radius}function Zi(e){return[e.x,e.y]}function Wi(e){return function(){var t=e.apply(this,arguments),n=t[0],r=t[1]-Ga;return[n*Math.cos(r),n*Math.sin(r)]}}function Yi(){return 64}function Xi(){return"circle"}function Ki(e){var t=Math.sqrt(e/Va);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}function Qi(e){return function(){var t,n,r;(t=this[e])&&(r=t[n=t.active])&&(r.timer.c=null,r.timer.t=NaN,--t.count?delete t[n]:delete this[e],t.active+=.5,r.event&&r.event.interrupt.call(this,this.__data__,r.index))}}function $i(e,t,n){return Sa(e,Hu),e.namespace=t,e.id=n,e}function Ji(e,t,n,r){var o=e.id,i=e.namespace;return q(e,"function"==typeof n?function(e,a,s){e[i][o].tween.set(t,r(n.call(e,e.__data__,a,s)))}:(n=r(n),function(e){e[i][o].tween.set(t,n)}))}function ea(e){return null==e&&(e=""),function(){this.textContent=e}}function ta(e){return null==e?"__transition__":"__transition_"+e+"__"}function na(e,t,n,r,o){function i(e){var t=g.delay;return c.t=t+u,t<=e?a(e-t):void(c.c=a)}function a(n){var o=h.active,i=h[o];i&&(i.timer.c=null,i.timer.t=NaN,--h.count,delete h[o],i.event&&i.event.interrupt.call(e,e.__data__,i.index));for(var a in h)if(+a<r){var p=h[a];p.timer.c=null,p.timer.t=NaN,--h.count,delete h[a]}c.c=s,De(function(){return c.c&&s(n||1)&&(c.c=null,c.t=NaN),1},0,u),h.active=r,g.event&&g.event.start.call(e,e.__data__,t),d=[],g.tween.forEach(function(n,r){(r=r.call(e,e.__data__,t))&&d.push(r)}),f=g.ease,l=g.duration}function s(o){for(var i=o/l,a=f(i),s=d.length;s>0;)d[--s].call(e,a);if(i>=1)return g.event&&g.event.end.call(e,e.__data__,t),--h.count?delete h[r]:delete e[n],1}var u,c,l,f,d,h=e[n]||(e[n]={active:0,count:0}),g=h[r];g||(u=o.time,c=De(i,0,u),g=h[r]={tween:new p,time:u,timer:c,delay:o.delay,duration:o.duration,ease:o.ease,index:t},o=null,++h.count)}function ra(e,t,n){e.attr("transform",function(e){var r=t(e);return"translate("+(isFinite(r)?r:n(e))+",0)"})}function oa(e,t,n){e.attr("transform",function(e){var r=t(e);return"translate(0,"+(isFinite(r)?r:n(e))+")"})}function ia(e){return e.toISOString()}function aa(e,t,n){function r(t){return e(t)}function o(e,n){var r=e[1]-e[0],o=r/n,i=la.bisect($u,o);return i==$u.length?[t.year,ti(e.map(function(e){return e/31536e6}),n)[2]]:i?t[o/$u[i-1]<$u[i]/o?i-1:i]:[tc,ti(e,n)[2]]}return r.invert=function(t){return sa(e.invert(t))},r.domain=function(t){return arguments.length?(e.domain(t),r):e.domain().map(sa)},r.nice=function(e,t){function n(n){return!isNaN(n)&&!e.range(n,sa(+n+1),t).length}var i=r.domain(),a=Zo(i),s=null==e?o(a,10):"number"==typeof e&&o(a,e);return s&&(e=s[0],t=s[1]),r.domain(Xo(i,t>1?{floor:function(t){for(;n(t=e.floor(t));)t=sa(t-1);return t},ceil:function(t){for(;n(t=e.ceil(t));)t=sa(+t+1);return t}}:e))},r.ticks=function(e,t){var n=Zo(r.domain()),i=null==e?o(n,10):"number"==typeof e?o(n,e):!e.range&&[{range:e},t];return i&&(e=i[0],t=i[1]),e.range(n[0],sa(+n[1]+1),t<1?1:t)},r.tickFormat=function(){return n},r.copy=function(){return aa(e.copy(),t,n)},Jo(r,e)}function sa(e){return new Date(e)}function ua(e){return JSON.parse(e.responseText)}function ca(e){var t=da.createRange();return t.selectNode(da.body),t.createContextualFragment(e.responseText)}var la={version:"3.5.17"},pa=[].slice,fa=function(e){return pa.call(e)},da=this.document;if(da)try{fa(da.documentElement.childNodes)[0].nodeType}catch(e){fa=function(e){for(var t=e.length,n=new Array(t);t--;)n[t]=e[t];return n}}if(Date.now||(Date.now=function(){return+new Date}),da)try{da.createElement("DIV").style.setProperty("opacity",0,"")}catch(e){var ha=this.Element.prototype,ga=ha.setAttribute,ma=ha.setAttributeNS,ya=this.CSSStyleDeclaration.prototype,va=ya.setProperty;ha.setAttribute=function(e,t){ga.call(this,e,t+"")},ha.setAttributeNS=function(e,t,n){ma.call(this,e,t,n+"")},ya.setProperty=function(e,t,n){va.call(this,e,t+"",n)}}la.ascending=o,la.descending=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},la.min=function(e,t){var n,r,o=-1,i=e.length;if(1===arguments.length){for(;++o<i;)if(null!=(r=e[o])&&r>=r){n=r;break}for(;++o<i;)null!=(r=e[o])&&n>r&&(n=r)}else{for(;++o<i;)if(null!=(r=t.call(e,e[o],o))&&r>=r){n=r;break}for(;++o<i;)null!=(r=t.call(e,e[o],o))&&n>r&&(n=r)}return n},la.max=function(e,t){var n,r,o=-1,i=e.length;if(1===arguments.length){for(;++o<i;)if(null!=(r=e[o])&&r>=r){n=r;break}for(;++o<i;)null!=(r=e[o])&&r>n&&(n=r)}else{for(;++o<i;)if(null!=(r=t.call(e,e[o],o))&&r>=r){n=r;break}for(;++o<i;)null!=(r=t.call(e,e[o],o))&&r>n&&(n=r)}return n},la.extent=function(e,t){var n,r,o,i=-1,a=e.length;if(1===arguments.length){for(;++i<a;)if(null!=(r=e[i])&&r>=r){n=o=r;break}for(;++i<a;)null!=(r=e[i])&&(n>r&&(n=r),o<r&&(o=r))}else{for(;++i<a;)if(null!=(r=t.call(e,e[i],i))&&r>=r){n=o=r;break}for(;++i<a;)null!=(r=t.call(e,e[i],i))&&(n>r&&(n=r),o<r&&(o=r))}return[n,o]},la.sum=function(e,t){var n,r=0,o=e.length,i=-1;if(1===arguments.length)for(;++i<o;)a(n=+e[i])&&(r+=n);else for(;++i<o;)a(n=+t.call(e,e[i],i))&&(r+=n);return r},la.mean=function(e,t){var n,r=0,o=e.length,s=-1,u=o;if(1===arguments.length)for(;++s<o;)a(n=i(e[s]))?r+=n:--u;else for(;++s<o;)a(n=i(t.call(e,e[s],s)))?r+=n:--u;if(u)return r/u},la.quantile=function(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),o=+e[r-1],i=n-r;return i?o+i*(e[r]-o):o},la.median=function(e,t){var n,r=[],s=e.length,u=-1;if(1===arguments.length)for(;++u<s;)a(n=i(e[u]))&&r.push(n);else for(;++u<s;)a(n=i(t.call(e,e[u],u)))&&r.push(n);if(r.length)return la.quantile(r.sort(o),.5)},la.variance=function(e,t){var n,r,o=e.length,s=0,u=0,c=-1,l=0;if(1===arguments.length)for(;++c<o;)a(n=i(e[c]))&&(r=n-s,s+=r/++l,u+=r*(n-s));else for(;++c<o;)a(n=i(t.call(e,e[c],c)))&&(r=n-s,s+=r/++l,u+=r*(n-s));if(l>1)return u/(l-1)},la.deviation=function(){var e=la.variance.apply(this,arguments);return e?Math.sqrt(e):e};var _a=s(o);la.bisectLeft=_a.left,la.bisect=la.bisectRight=_a.right,la.bisector=function(e){return s(1===e.length?function(t,n){return o(e(t),n)}:e)},la.shuffle=function(e,t,n){(i=arguments.length)<3&&(n=e.length,i<2&&(t=0));for(var r,o,i=n-t;i;)o=Math.random()*i--|0,r=e[i+t],e[i+t]=e[o+t],e[o+t]=r;return e},la.permute=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},la.pairs=function(e){for(var t,n=0,r=e.length-1,o=e[0],i=new Array(r<0?0:r);n<r;)i[n]=[t=o,o=e[++n]];return i},la.transpose=function(e){if(!(o=e.length))return[];for(var t=-1,n=la.min(e,u),r=new Array(n);++t<n;)for(var o,i=-1,a=r[t]=new Array(o);++i<o;)a[i]=e[i][t];return r},la.zip=function(){return la.transpose(arguments)},la.keys=function(e){var t=[];for(var n in e)t.push(n);return t},la.values=function(e){var t=[];for(var n in e)t.push(e[n]);return t},la.entries=function(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t},la.merge=function(e){for(var t,n,r,o=e.length,i=-1,a=0;++i<o;)a+=e[i].length;for(n=new Array(a);--o>=0;)for(r=e[o],t=r.length;--t>=0;)n[--a]=r[t];return n};var ba=Math.abs;la.range=function(e,t,n){if(arguments.length<3&&(n=1,arguments.length<2&&(t=e,e=0)),(t-e)/n===1/0)throw new Error("infinite range");var r,o=[],i=c(ba(n)),a=-1;if(e*=i,t*=i,n*=i,n<0)for(;(r=e+n*++a)>t;)o.push(r/i);else for(;(r=e+n*++a)<t;)o.push(r/i);return o},la.map=function(e,t){var n=new p;if(e instanceof p)e.forEach(function(e,t){n.set(e,t)});else if(Array.isArray(e)){var r,o=-1,i=e.length;if(1===arguments.length)for(;++o<i;)n.set(o,e[o]);else for(;++o<i;)n.set(t.call(e,r=e[o],o),r)}else for(var a in e)n.set(a,e[a]);return n};var Ea="__proto__",xa="\0";l(p,{has:h,get:function(e){return this._[f(e)]},set:function(e,t){return this._[f(e)]=t},remove:g,keys:m,values:function(){var e=[];for(var t in this._)e.push(this._[t]);return e},entries:function(){var e=[];for(var t in this._)e.push({key:d(t),value:this._[t]});return e},size:y,empty:v,forEach:function(e){for(var t in this._)e.call(this,d(t),this._[t])}}),la.nest=function(){function e(t,a,s){if(s>=i.length)return r?r.call(o,a):n?a.sort(n):a;for(var u,c,l,f,d=-1,h=a.length,g=i[s++],m=new p;++d<h;)(f=m.get(u=g(c=a[d])))?f.push(c):m.set(u,[c]);return t?(c=t(),l=function(n,r){c.set(n,e(t,r,s))}):(c={},l=function(n,r){c[n]=e(t,r,s)}),m.forEach(l),c}function t(e,n){if(n>=i.length)return e;var r=[],o=a[n++];return e.forEach(function(e,o){r.push({key:e,values:t(o,n)})}),o?r.sort(function(e,t){return o(e.key,t.key)}):r}var n,r,o={},i=[],a=[];return o.map=function(t,n){return e(n,t,0)},o.entries=function(n){return t(e(la.map,n,0),0)},o.key=function(e){return i.push(e),o},o.sortKeys=function(e){return a[i.length-1]=e,o},o.sortValues=function(e){return n=e,o},o.rollup=function(e){return r=e,o},o},la.set=function(e){var t=new _;if(e)for(var n=0,r=e.length;n<r;++n)t.add(e[n]);return t},l(_,{has:h,add:function(e){return this._[f(e+="")]=!0,e},remove:g,values:m,size:y,empty:v,forEach:function(e){for(var t in this._)e.call(this,d(t))}}),la.behavior={},la.rebind=function(e,t){for(var n,r=1,o=arguments.length;++r<o;)e[n=arguments[r]]=E(e,t,t[n]);return e};var Ca=["webkit","ms","moz","Moz","o","O"];la.dispatch=function(){for(var e=new w,t=-1,n=arguments.length;++t<n;)e[arguments[t]]=S(e);return e},w.prototype.on=function(e,t){var n=e.indexOf("."),r="";if(n>=0&&(r=e.slice(n+1),e=e.slice(0,n)),e)return arguments.length<2?this[e].on(r):this[e].on(r,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(r,null);return this}},la.event=null,la.requote=function(e){return e.replace(wa,"\\amp;")};var wa=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Sa={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)e[n]=t[n]},Oa=function(e,t){return t.querySelector(e)},Ta=function(e,t){return t.querySelectorAll(e)},Pa=function(e,t){var n=e.matches||e[x(e,"matchesSelector")];return(Pa=function(e,t){return n.call(e,t)})(e,t)};"function"==typeof Sizzle&&(Oa=function(e,t){return Sizzle(e,t)[0]||null},Ta=Sizzle,Pa=Sizzle.matchesSelector),la.selection=function(){return la.select(da.documentElement)};var Ra=la.selection.prototype=[];Ra.select=function(e){var t,n,r,o,i=[];e=N(e);for(var a=-1,s=this.length;++a<s;){i.push(t=[]),t.parentNode=(r=this[a]).parentNode;for(var u=-1,c=r.length;++u<c;)(o=r[u])?(t.push(n=e.call(o,o.__data__,u,a)),n&&"__data__"in o&&(n.__data__=o.__data__)):t.push(null)}return R(i)},Ra.selectAll=function(e){var t,n,r=[];e=A(e);for(var o=-1,i=this.length;++o<i;)for(var a=this[o],s=-1,u=a.length;++s<u;)(n=a[s])&&(r.push(t=fa(e.call(n,n.__data__,s,o))),t.parentNode=n);return R(r)};var Na="http://www.w3.org/1999/xhtml",Aa={svg:"http://www.w3.org/2000/svg",xhtml:Na,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};la.ns={prefix:Aa,qualify:function(e){var t=e.indexOf(":"),n=e;return t>=0&&"xmlns"!==(n=e.slice(0,t))&&(e=e.slice(t+1)),Aa.hasOwnProperty(n)?{space:Aa[n],local:e}:e}},Ra.attr=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node();return e=la.ns.qualify(e),e.local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(t in e)this.each(M(t,e[t]));return this}return this.each(M(e,t))},Ra.classed=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node(),r=(e=L(e)).length,o=-1;if(t=n.classList){for(;++o<r;)if(!t.contains(e[o]))return!1}else for(t=n.getAttribute("class");++o<r;)if(!I(e[o]).test(t))return!1;return!0}for(t in e)this.each(k(t,e[t]));return this}return this.each(k(e,t))},Ra.style=function(e,t,n){var o=arguments.length;if(o<3){if("string"!=typeof e){o<2&&(t="");for(n in e)this.each(F(n,e[n],t));return this}if(o<2){var i=this.node();return r(i).getComputedStyle(i,null).getPropertyValue(e)}n=""}return this.each(F(e,t,n))},Ra.property=function(e,t){if(arguments.length<2){if("string"==typeof e)return this.node()[e];for(t in e)this.each(V(t,e[t]));return this}return this.each(V(e,t))},Ra.text=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}:null==e?function(){this.textContent=""}:function(){this.textContent=e}):this.node().textContent},Ra.html=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}:null==e?function(){this.innerHTML=""}:function(){this.innerHTML=e}):this.node().innerHTML},Ra.append=function(e){return e=U(e),this.select(function(){return this.appendChild(e.apply(this,arguments))})},Ra.insert=function(e,t){return e=U(e),t=N(t),this.select(function(){return this.insertBefore(e.apply(this,arguments),t.apply(this,arguments)||null)})},Ra.remove=function(){return this.each(z)},Ra.data=function(e,t){function n(e,n){var r,o,i,a=e.length,l=n.length,f=Math.min(a,l),d=new Array(l),h=new Array(l),g=new Array(a);if(t){var m,y=new p,v=new Array(a);for(r=-1;++r<a;)(o=e[r])&&(y.has(m=t.call(o,o.__data__,r))?g[r]=o:y.set(m,o),v[r]=m);for(r=-1;++r<l;)(o=y.get(m=t.call(n,i=n[r],r)))?o!==!0&&(d[r]=o,o.__data__=i):h[r]=G(i),y.set(m,!0);for(r=-1;++r<a;)r in v&&y.get(v[r])!==!0&&(g[r]=e[r])}else{for(r=-1;++r<f;)o=e[r],i=n[r],o?(o.__data__=i,d[r]=o):h[r]=G(i);for(;r<l;++r)h[r]=G(n[r]);for(;r<a;++r)g[r]=e[r]}h.update=d,h.parentNode=d.parentNode=g.parentNode=e.parentNode,s.push(h),u.push(d),c.push(g)}var r,o,i=-1,a=this.length;if(!arguments.length){for(e=new Array(a=(r=this[0]).length);++i<a;)(o=r[i])&&(e[i]=o.__data__);return e}var s=Z([]),u=R([]),c=R([]);if("function"==typeof e)for(;++i<a;)n(r=this[i],e.call(r,r.parentNode.__data__,i));else for(;++i<a;)n(r=this[i],e);return u.enter=function(){return s},u.exit=function(){return c},u},Ra.datum=function(e){return arguments.length?this.property("__data__",e):this.property("__data__")},Ra.filter=function(e){var t,n,r,o=[];"function"!=typeof e&&(e=H(e));for(var i=0,a=this.length;i<a;i++){o.push(t=[]),t.parentNode=(n=this[i]).parentNode;for(var s=0,u=n.length;s<u;s++)(r=n[s])&&e.call(r,r.__data__,s,i)&&t.push(r)}return R(o)},Ra.order=function(){for(var e=-1,t=this.length;++e<t;)for(var n,r=this[e],o=r.length-1,i=r[o];--o>=0;)(n=r[o])&&(i&&i!==n.nextSibling&&i.parentNode.insertBefore(n,i),i=n);return this},Ra.sort=function(e){e=B.apply(this,arguments);for(var t=-1,n=this.length;++t<n;)this[t].sort(e);return this.order()},Ra.each=function(e){return q(this,function(t,n,r){e.call(t,t.__data__,n,r)})},Ra.call=function(e){var t=fa(arguments);return e.apply(t[0]=this,t),this},Ra.empty=function(){return!this.node()},Ra.node=function(){for(var e=0,t=this.length;e<t;e++)for(var n=this[e],r=0,o=n.length;r<o;r++){var i=n[r];if(i)return i}return null},Ra.size=function(){var e=0;return q(this,function(){++e}),e};var Ma=[];la.selection.enter=Z,la.selection.enter.prototype=Ma,Ma.append=Ra.append,Ma.empty=Ra.empty,Ma.node=Ra.node,Ma.call=Ra.call,Ma.size=Ra.size,Ma.select=function(e){for(var t,n,r,o,i,a=[],s=-1,u=this.length;++s<u;){r=(o=this[s]).update,a.push(t=[]),t.parentNode=o.parentNode;for(var c=-1,l=o.length;++c<l;)(i=o[c])?(t.push(r[c]=n=e.call(o.parentNode,i.__data__,c,s)),n.__data__=i.__data__):t.push(null)}return R(a)},Ma.insert=function(e,t){return arguments.length<2&&(t=W(this)),Ra.insert.call(this,e,t)},la.select=function(e){var n;return"string"==typeof e?(n=[Oa(e,da)],n.parentNode=da.documentElement):(n=[e],n.parentNode=t(e)),R([n])},la.selectAll=function(e){var t;return"string"==typeof e?(t=fa(Ta(e,da)),t.parentNode=da.documentElement):(t=fa(e),t.parentNode=null),R([t])},Ra.on=function(e,t,n){var r=arguments.length;if(r<3){if("string"!=typeof e){r<2&&(t=!1);for(n in e)this.each(Y(n,e[n],t));return this}if(r<2)return(r=this.node()["__on"+e])&&r._;n=!1}return this.each(Y(e,t,n))};var Da=la.map({mouseenter:"mouseover",mouseleave:"mouseout"});da&&Da.forEach(function(e){"on"+e in da&&Da.remove(e)});var Ia,La=0;la.mouse=function(e){return $(e,T())};var ka=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;la.touch=function(e,t,n){if(arguments.length<3&&(n=t,t=T().changedTouches),t)for(var r,o=0,i=t.length;o<i;++o)if((r=t[o]).identifier===n)return $(e,r)},la.behavior.drag=function(){function e(){this.on("mousedown.drag",i).on("touchstart.drag",a)}function t(e,t,r,i,a){return function(){function s(){var e,n,r=t(f,g);r&&(e=r[0]-_[0],n=r[1]-_[1],h|=e|n,_=r,d({type:"drag",x:r[0]+c[0],y:r[1]+c[1],dx:e,dy:n}))}function u(){t(f,g)&&(y.on(i+m,null).on(a+m,null),v(h),d({type:"dragend"}))}var c,l=this,p=la.event.target.correspondingElement||la.event.target,f=l.parentNode,d=n.of(l,arguments),h=0,g=e(),m=".drag"+(null==g?"":"-"+g),y=la.select(r(p)).on(i+m,s).on(a+m,u),v=Q(p),_=t(f,g);o?(c=o.apply(l,arguments),c=[c.x-_[0],c.y-_[1]]):c=[0,0],d({type:"dragstart"})}}var n=P(e,"drag","dragstart","dragend"),o=null,i=t(C,la.mouse,r,"mousemove","mouseup"),a=t(J,la.touch,b,"touchmove","touchend");return e.origin=function(t){return arguments.length?(o=t,e):o},la.rebind(e,n,"on")},la.touches=function(e,t){return arguments.length<2&&(t=T().touches),t?fa(t).map(function(t){var n=$(e,t);return n.identifier=t.identifier,n}):[]};var ja=1e-6,Fa=ja*ja,Va=Math.PI,Ua=2*Va,za=Ua-ja,Ga=Va/2,Ha=Va/180,Ba=180/Va,qa=Math.SQRT2,Za=2,Wa=4;la.interpolateZoom=function(e,t){var n,r,o=e[0],i=e[1],a=e[2],s=t[0],u=t[1],c=t[2],l=s-o,p=u-i,f=l*l+p*p;if(f<Fa)r=Math.log(c/a)/qa,n=function(e){return[o+e*l,i+e*p,a*Math.exp(qa*e*r)]};else{var d=Math.sqrt(f),h=(c*c-a*a+Wa*f)/(2*a*Za*d),g=(c*c-a*a-Wa*f)/(2*c*Za*d),m=Math.log(Math.sqrt(h*h+1)-h),y=Math.log(Math.sqrt(g*g+1)-g);r=(y-m)/qa,n=function(e){var t=e*r,n=ie(m),s=a/(Za*d)*(n*ae(qa*t+m)-oe(m));return[o+s*l,i+s*p,a*n/ie(qa*t+m)]}}return n.duration=1e3*r,n},la.behavior.zoom=function(){function e(e){e.on(A,p).on(Xa+".zoom",d).on("dblclick.zoom",h).on(I,f)}function t(e){return[(e[0]-w.x)/w.k,(e[1]-w.y)/w.k]}function n(e){return[e[0]*w.k+w.x,e[1]*w.k+w.y]}function o(e){w.k=Math.max(T[0],Math.min(T[1],e))}function i(e,t){t=n(t),w.x+=e[0]-t[0],w.y+=e[1]-t[1]}function a(t,n,r,a){t.__chart__={x:w.x,y:w.y,k:w.k},o(Math.pow(2,a)),i(m=n,r),t=la.select(t),R>0&&(t=t.transition().duration(R)),t.call(e.event)}function s(){E&&E.domain(b.range().map(function(e){return(e-w.x)/w.k}).map(b.invert)),C&&C.domain(x.range().map(function(e){return(e-w.y)/w.k}).map(x.invert))}function u(e){N++||e({type:"zoomstart"})}function c(e){s(),e({type:"zoom",scale:w.k,translate:[w.x,w.y]})}function l(e){--N||(e({type:"zoomend"}),m=null)}function p(){function e(){s=1,i(la.mouse(o),f),c(a)}function n(){p.on(M,null).on(D,null),d(s),l(a)}var o=this,a=L.of(o,arguments),s=0,p=la.select(r(o)).on(M,e).on(D,n),f=t(la.mouse(o)),d=Q(o);Gu.call(o),u(a)}function f(){function e(){var e=la.touches(h);return d=w.k,e.forEach(function(e){e.identifier in m&&(m[e.identifier]=t(e))}),e}function n(){var t=la.event.target;la.select(t).on(b,r).on(E,s),x.push(t);for(var n=la.event.changedTouches,o=0,i=n.length;o<i;++o)m[n[o].identifier]=null;var u=e(),c=Date.now();if(1===u.length){if(c-_<500){var l=u[0];a(h,l,m[l.identifier],Math.floor(Math.log(w.k)/Math.LN2)+1),O()}_=c}else if(u.length>1){var l=u[0],p=u[1],f=l[0]-p[0],d=l[1]-p[1];y=f*f+d*d}}function r(){var e,t,n,r,a=la.touches(h);Gu.call(h);for(var s=0,u=a.length;s<u;++s,r=null)if(n=a[s],r=m[n.identifier]){if(t)break;e=n,t=r}if(r){var l=(l=n[0]-e[0])*l+(l=n[1]-e[1])*l,p=y&&Math.sqrt(l/y);e=[(e[0]+n[0])/2,(e[1]+n[1])/2],t=[(t[0]+r[0])/2,(t[1]+r[1])/2],o(p*d)}_=null,i(e,t),c(g)}function s(){if(la.event.touches.length){for(var t=la.event.changedTouches,n=0,r=t.length;n<r;++n)delete m[t[n].identifier];for(var o in m)return void e()}la.selectAll(x).on(v,null),C.on(A,p).on(I,f),S(),l(g)}var d,h=this,g=L.of(h,arguments),m={},y=0,v=".zoom-"+la.event.changedTouches[0].identifier,b="touchmove"+v,E="touchend"+v,x=[],C=la.select(h),S=Q(h);n(),u(g),C.on(A,null).on(I,n)}function d(){var e=L.of(this,arguments);v?clearTimeout(v):(Gu.call(this),g=t(m=y||la.mouse(this)),u(e)),v=setTimeout(function(){v=null,l(e)},50),O(),o(Math.pow(2,.002*Ya())*w.k),i(m,g),c(e)}function h(){var e=la.mouse(this),n=Math.log(w.k)/Math.LN2;a(this,e,t(e),la.event.shiftKey?Math.ceil(n)-1:Math.floor(n)+1)}var g,m,y,v,_,b,E,x,C,w={x:0,y:0,k:1},S=[960,500],T=Ka,R=250,N=0,A="mousedown.zoom",M="mousemove.zoom",D="mouseup.zoom",I="touchstart.zoom",L=P(e,"zoomstart","zoom","zoomend");return Xa||(Xa="onwheel"in da?(Ya=function(){return-la.event.deltaY*(la.event.deltaMode?120:1)},"wheel"):"onmousewheel"in da?(Ya=function(){return la.event.wheelDelta},"mousewheel"):(Ya=function(){return-la.event.detail},"MozMousePixelScroll")),e.event=function(e){e.each(function(){var e=L.of(this,arguments),t=w;Uu?la.select(this).transition().each("start.zoom",function(){w=this.__chart__||{x:0,y:0,k:1},u(e)}).tween("zoom:zoom",function(){var n=S[0],r=S[1],o=m?m[0]:n/2,i=m?m[1]:r/2,a=la.interpolateZoom([(o-w.x)/w.k,(i-w.y)/w.k,n/w.k],[(o-t.x)/t.k,(i-t.y)/t.k,n/t.k]);return function(t){var r=a(t),s=n/r[2];this.__chart__=w={x:o-r[0]*s,y:i-r[1]*s,k:s},c(e)}}).each("interrupt.zoom",function(){l(e)}).each("end.zoom",function(){l(e)}):(this.__chart__=w,u(e),c(e),l(e))})},e.translate=function(t){return arguments.length?(w={x:+t[0],y:+t[1],k:w.k},s(),e):[w.x,w.y]},e.scale=function(t){return arguments.length?(w={x:w.x,y:w.y,k:null},o(+t),s(),e):w.k},e.scaleExtent=function(t){return arguments.length?(T=null==t?Ka:[+t[0],+t[1]],e):T},e.center=function(t){return arguments.length?(y=t&&[+t[0],+t[1]],e):y},e.size=function(t){return arguments.length?(S=t&&[+t[0],+t[1]],e):S},e.duration=function(t){return arguments.length?(R=+t,e):R},e.x=function(t){return arguments.length?(E=t,b=t.copy(),w={x:0,y:0,k:1},e):E},e.y=function(t){return arguments.length?(C=t,x=t.copy(),w={x:0,y:0,k:1},e):C},la.rebind(e,L,"on")};var Ya,Xa,Ka=[0,1/0];la.color=ue,ue.prototype.toString=function(){return this.rgb()+""},la.hsl=ce;var Qa=ce.prototype=new ue;Qa.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new ce(this.h,this.s,this.l/e)},Qa.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new ce(this.h,this.s,e*this.l)},Qa.rgb=function(){return le(this.h,this.s,this.l)},la.hcl=pe;var $a=pe.prototype=new ue;$a.brighter=function(e){return new pe(this.h,this.c,Math.min(100,this.l+Ja*(arguments.length?e:1)))},$a.darker=function(e){return new pe(this.h,this.c,Math.max(0,this.l-Ja*(arguments.length?e:1)))},$a.rgb=function(){return fe(this.h,this.c,this.l).rgb()},la.lab=de;var Ja=18,es=.95047,ts=1,ns=1.08883,rs=de.prototype=new ue;rs.brighter=function(e){return new de(Math.min(100,this.l+Ja*(arguments.length?e:1)),this.a,this.b)},rs.darker=function(e){return new de(Math.max(0,this.l-Ja*(arguments.length?e:1)),this.a,this.b)},rs.rgb=function(){return he(this.l,this.a,this.b)},la.rgb=_e;var os=_e.prototype=new ue;os.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,n=this.g,r=this.b,o=30;return t||n||r?(t&&t<o&&(t=o),n&&n<o&&(n=o),r&&r<o&&(r=o),new _e(Math.min(255,t/e),Math.min(255,n/e),Math.min(255,r/e))):new _e(o,o,o)},os.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new _e(e*this.r,e*this.g,e*this.b)},os.hsl=function(){return we(this.r,this.g,this.b)},os.toString=function(){return"#"+xe(this.r)+xe(this.g)+xe(this.b)};var is=la.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});is.forEach(function(e,t){is.set(e,be(t))}),la.functor=Pe,la.xhr=Re(b),la.dsv=function(e,t){function n(e,n,i){arguments.length<3&&(i=n,n=null);var a=Ne(e,t,null==n?r:o(n),i);return a.row=function(e){return arguments.length?a.response(null==(n=e)?r:o(e)):n},a}function r(e){return n.parse(e.responseText)}function o(e){return function(t){return n.parse(t.responseText,e)}}function i(t){return t.map(a).join(e)}function a(e){return s.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}var s=new RegExp('["'+e+"\n]"),u=e.charCodeAt(0);return n.parse=function(e,t){var r;return n.parseRows(e,function(e,n){if(r)return r(e,n-1);var o=new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+"]"}).join(",")+"}");r=t?function(e,n){return t(o(e),n)}:o})},n.parseRows=function(e,t){function n(){if(l>=c)return a;if(o)return o=!1,i;var t=l;if(34===e.charCodeAt(t)){for(var n=t;n++<c;)if(34===e.charCodeAt(n)){if(34!==e.charCodeAt(n+1))break;++n}l=n+2;var r=e.charCodeAt(n+1);return 13===r?(o=!0,10===e.charCodeAt(n+2)&&++l):10===r&&(o=!0),e.slice(t+1,n).replace(/""/g,'"')}for(;l<c;){var r=e.charCodeAt(l++),s=1;if(10===r)o=!0;else if(13===r)o=!0,10===e.charCodeAt(l)&&(++l,++s);else if(r!==u)continue;return e.slice(t,l-s)}return e.slice(t)}for(var r,o,i={},a={},s=[],c=e.length,l=0,p=0;(r=n())!==a;){for(var f=[];r!==i&&r!==a;)f.push(r),r=n();t&&null==(f=t(f,p++))||s.push(f)}return s},n.format=function(t){if(Array.isArray(t[0]))return n.formatRows(t);var r=new _,o=[];return t.forEach(function(e){for(var t in e)r.has(t)||o.push(r.add(t))}),[o.map(a).join(e)].concat(t.map(function(t){return o.map(function(e){return a(t[e])}).join(e)})).join("\n")},n.formatRows=function(e){return e.map(i).join("\n")},n},la.csv=la.dsv(",","text/csv"),la.tsv=la.dsv("\t","text/tab-separated-values");var as,ss,us,cs,ls=this[x(this,"requestAnimationFrame")]||function(e){setTimeout(e,17)};la.timer=function(){De.apply(this,arguments)},la.timer.flush=function(){Le(),ke()},la.round=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)};var ps=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(Fe);la.formatPrefix=function(e,t){var n=0;return(e=+e)&&(e<0&&(e*=-1),t&&(e=la.round(e,je(e,t))),n=1+Math.floor(1e-12+Math.log(e)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),ps[8+n/3]};var fs=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,ds=la.map({b:function(e){return e.toString(2)},c:function(e){return String.fromCharCode(e)},o:function(e){return e.toString(8)},x:function(e){return e.toString(16)},X:function(e){return e.toString(16).toUpperCase()},g:function(e,t){return e.toPrecision(t)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},r:function(e,t){return(e=la.round(e,je(e,t))).toFixed(Math.max(0,Math.min(20,je(e*(1+1e-15),t))))}}),hs=la.time={},gs=Date;ze.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){
18
- 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(){ms.setUTCDate.apply(this._,arguments)},setDay:function(){ms.setUTCDay.apply(this._,arguments)},setFullYear:function(){ms.setUTCFullYear.apply(this._,arguments)},setHours:function(){ms.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){ms.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){ms.setUTCMinutes.apply(this._,arguments)},setMonth:function(){ms.setUTCMonth.apply(this._,arguments)},setSeconds:function(){ms.setUTCSeconds.apply(this._,arguments)},setTime:function(){ms.setTime.apply(this._,arguments)}};var ms=Date.prototype;hs.year=Ge(function(e){return e=hs.day(e),e.setMonth(0,1),e},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e){return e.getFullYear()}),hs.years=hs.year.range,hs.years.utc=hs.year.utc.range,hs.day=Ge(function(e){var t=new gs(2e3,0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t},function(e,t){e.setDate(e.getDate()+t)},function(e){return e.getDate()-1}),hs.days=hs.day.range,hs.days.utc=hs.day.utc.range,hs.dayOfYear=function(e){var t=hs.year(e);return Math.floor((e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(e,t){t=7-t;var n=hs[e]=Ge(function(e){return(e=hs.day(e)).setDate(e.getDate()-(e.getDay()+t)%7),e},function(e,t){e.setDate(e.getDate()+7*Math.floor(t))},function(e){var n=hs.year(e).getDay();return Math.floor((hs.dayOfYear(e)+(n+t)%7)/7)-(n!==t)});hs[e+"s"]=n.range,hs[e+"s"].utc=n.utc.range,hs[e+"OfYear"]=function(e){var n=hs.year(e).getDay();return Math.floor((hs.dayOfYear(e)+(n+t)%7)/7)}}),hs.week=hs.sunday,hs.weeks=hs.sunday.range,hs.weeks.utc=hs.sunday.utc.range,hs.weekOfYear=hs.sundayOfYear;var ys={"-":"",_:" ",0:"0"},vs=/^\s*\d+/,_s=/^%/;la.locale=function(e){return{numberFormat:Ve(e),timeFormat:Be(e)}};var bs=la.locale({decimal:".",thousands:",",grouping:[3],currency:["quot;,""],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"]});la.format=bs.numberFormat,la.geo={},pt.prototype={s:0,t:0,add:function(e){ft(e,this.t,Es),ft(Es.s,this.s,this),this.s?this.t+=Es.t:this.s=Es.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var Es=new pt;la.geo.stream=function(e,t){e&&xs.hasOwnProperty(e.type)?xs[e.type](e,t):dt(e,t)};var xs={Feature:function(e,t){dt(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,o=n.length;++r<o;)dt(n[r].geometry,t)}},Cs={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,o=n.length;++r<o;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){ht(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,o=n.length;++r<o;)ht(n[r],t,0)},Polygon:function(e,t){gt(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,o=n.length;++r<o;)gt(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,o=n.length;++r<o;)dt(n[r],t)}};la.geo.area=function(e){return ws=0,la.geo.stream(e,Os),ws};var ws,Ss=new pt,Os={sphere:function(){ws+=4*Va},point:C,lineStart:C,lineEnd:C,polygonStart:function(){Ss.reset(),Os.lineStart=mt},polygonEnd:function(){var e=2*Ss;ws+=e<0?4*Va+e:e,Os.lineStart=Os.lineEnd=Os.point=C}};la.geo.bounds=function(){function e(e,t){_.push(b=[l=e,f=e]),t<p&&(p=t),t>d&&(d=t)}function t(t,n){var r=yt([t*Ha,n*Ha]);if(y){var o=_t(y,r),i=[o[1],-o[0],0],a=_t(i,o);xt(a),a=Ct(a);var u=t-h,c=u>0?1:-1,g=a[0]*Ba*c,m=ba(u)>180;if(m^(c*h<g&&g<c*t)){var v=a[1]*Ba;v>d&&(d=v)}else if(g=(g+360)%360-180,m^(c*h<g&&g<c*t)){var v=-a[1]*Ba;v<p&&(p=v)}else n<p&&(p=n),n>d&&(d=n);m?t<h?s(l,t)>s(l,f)&&(f=t):s(t,f)>s(l,f)&&(l=t):f>=l?(t<l&&(l=t),t>f&&(f=t)):t>h?s(l,t)>s(l,f)&&(f=t):s(t,f)>s(l,f)&&(l=t)}else e(t,n);y=r,h=t}function n(){E.point=t}function r(){b[0]=l,b[1]=f,E.point=e,y=null}function o(e,n){if(y){var r=e-h;v+=ba(r)>180?r+(r>0?360:-360):r}else g=e,m=n;Os.point(e,n),t(e,n)}function i(){Os.lineStart()}function a(){o(g,m),Os.lineEnd(),ba(v)>ja&&(l=-(f=180)),b[0]=l,b[1]=f,y=null}function s(e,t){return(t-=e)<0?t+360:t}function u(e,t){return e[0]-t[0]}function c(e,t){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}var l,p,f,d,h,g,m,y,v,_,b,E={point:e,lineStart:n,lineEnd:r,polygonStart:function(){E.point=o,E.lineStart=i,E.lineEnd=a,v=0,Os.polygonStart()},polygonEnd:function(){Os.polygonEnd(),E.point=e,E.lineStart=n,E.lineEnd=r,Ss<0?(l=-(f=180),p=-(d=90)):v>ja?d=90:v<-ja&&(p=-90),b[0]=l,b[1]=f}};return function(e){d=f=-(l=p=1/0),_=[],la.geo.stream(e,E);var t=_.length;if(t){_.sort(u);for(var n,r=1,o=_[0],i=[o];r<t;++r)n=_[r],c(n[0],o)||c(n[1],o)?(s(o[0],n[1])>s(o[0],o[1])&&(o[1]=n[1]),s(n[0],o[1])>s(o[0],o[1])&&(o[0]=n[0])):i.push(o=n);for(var a,n,h=-(1/0),t=i.length-1,r=0,o=i[t];r<=t;o=n,++r)n=i[r],(a=s(o[1],n[0]))>h&&(h=a,l=n[0],f=o[1])}return _=b=null,l===1/0||p===1/0?[[NaN,NaN],[NaN,NaN]]:[[l,p],[f,d]]}}(),la.geo.centroid=function(e){Ts=Ps=Rs=Ns=As=Ms=Ds=Is=Ls=ks=js=0,la.geo.stream(e,Fs);var t=Ls,n=ks,r=js,o=t*t+n*n+r*r;return o<Fa&&(t=Ms,n=Ds,r=Is,Ps<ja&&(t=Rs,n=Ns,r=As),o=t*t+n*n+r*r,o<Fa)?[NaN,NaN]:[Math.atan2(n,t)*Ba,re(r/Math.sqrt(o))*Ba]};var Ts,Ps,Rs,Ns,As,Ms,Ds,Is,Ls,ks,js,Fs={sphere:C,point:St,lineStart:Tt,lineEnd:Pt,polygonStart:function(){Fs.lineStart=Rt},polygonEnd:function(){Fs.lineStart=Tt}},Vs=Lt(At,Vt,zt,[-Va,-Va/2]),Us=1e9;la.geo.clipExtent=function(){var e,t,n,r,o,i,a={stream:function(e){return o&&(o.valid=!1),o=i(e),o.valid=!0,o},extent:function(s){return arguments.length?(i=qt(e=+s[0][0],t=+s[0][1],n=+s[1][0],r=+s[1][1]),o&&(o.valid=!1,o=null),a):[[e,t],[n,r]]}};return a.extent([[0,0],[960,500]])},(la.geo.conicEqualArea=function(){return Zt(Wt)}).raw=Wt,la.geo.albers=function(){return la.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},la.geo.albersUsa=function(){function e(e){var i=e[0],a=e[1];return t=null,n(i,a),t||(r(i,a),t)||o(i,a),t}var t,n,r,o,i=la.geo.albers(),a=la.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=la.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(e,n){t=[e,n]}};return e.invert=function(e){var t=i.scale(),n=i.translate(),r=(e[0]-n[0])/t,o=(e[1]-n[1])/t;return(o>=.12&&o<.234&&r>=-.425&&r<-.214?a:o>=.166&&o<.234&&r>=-.214&&r<-.115?s:i).invert(e)},e.stream=function(e){var t=i.stream(e),n=a.stream(e),r=s.stream(e);return{point:function(e,o){t.point(e,o),n.point(e,o),r.point(e,o)},sphere:function(){t.sphere(),n.sphere(),r.sphere()},lineStart:function(){t.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},e.precision=function(t){return arguments.length?(i.precision(t),a.precision(t),s.precision(t),e):i.precision()},e.scale=function(t){return arguments.length?(i.scale(t),a.scale(.35*t),s.scale(t),e.translate(i.translate())):i.scale()},e.translate=function(t){if(!arguments.length)return i.translate();var c=i.scale(),l=+t[0],p=+t[1];return n=i.translate(t).clipExtent([[l-.455*c,p-.238*c],[l+.455*c,p+.238*c]]).stream(u).point,r=a.translate([l-.307*c,p+.201*c]).clipExtent([[l-.425*c+ja,p+.12*c+ja],[l-.214*c-ja,p+.234*c-ja]]).stream(u).point,o=s.translate([l-.205*c,p+.212*c]).clipExtent([[l-.214*c+ja,p+.166*c+ja],[l-.115*c-ja,p+.234*c-ja]]).stream(u).point,e},e.scale(1070)};var zs,Gs,Hs,Bs,qs,Zs,Ws={point:C,lineStart:C,lineEnd:C,polygonStart:function(){Gs=0,Ws.lineStart=Yt},polygonEnd:function(){Ws.lineStart=Ws.lineEnd=Ws.point=C,zs+=ba(Gs/2)}},Ys={point:Xt,lineStart:C,lineEnd:C,polygonStart:C,polygonEnd:C},Xs={point:$t,lineStart:Jt,lineEnd:en,polygonStart:function(){Xs.lineStart=tn},polygonEnd:function(){Xs.point=$t,Xs.lineStart=Jt,Xs.lineEnd=en}};la.geo.path=function(){function e(e){return e&&("function"==typeof s&&i.pointRadius(+s.apply(this,arguments)),a&&a.valid||(a=o(i)),la.geo.stream(e,a)),i.result()}function t(){return a=null,e}var n,r,o,i,a,s=4.5;return e.area=function(e){return zs=0,la.geo.stream(e,o(Ws)),zs},e.centroid=function(e){return Rs=Ns=As=Ms=Ds=Is=Ls=ks=js=0,la.geo.stream(e,o(Xs)),js?[Ls/js,ks/js]:Is?[Ms/Is,Ds/Is]:As?[Rs/As,Ns/As]:[NaN,NaN]},e.bounds=function(e){return qs=Zs=-(Hs=Bs=1/0),la.geo.stream(e,o(Ys)),[[Hs,Bs],[qs,Zs]]},e.projection=function(e){return arguments.length?(o=(n=e)?e.stream||on(e):b,t()):n},e.context=function(e){return arguments.length?(i=null==(r=e)?new Kt:new nn(e),"function"!=typeof s&&i.pointRadius(s),t()):r},e.pointRadius=function(t){return arguments.length?(s="function"==typeof t?t:(i.pointRadius(+t),+t),e):s},e.projection(la.geo.albersUsa()).context(null)},la.geo.transform=function(e){return{stream:function(t){var n=new an(t);for(var r in e)n[r]=e[r];return n}}},an.prototype={point:function(e,t){this.stream.point(e,t)},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()}},la.geo.projection=un,la.geo.projectionMutator=cn,(la.geo.equirectangular=function(){return un(pn)}).raw=pn.invert=pn,la.geo.rotation=function(e){function t(t){return t=e(t[0]*Ha,t[1]*Ha),t[0]*=Ba,t[1]*=Ba,t}return e=dn(e[0]%360*Ha,e[1]*Ha,e.length>2?e[2]*Ha:0),t.invert=function(t){return t=e.invert(t[0]*Ha,t[1]*Ha),t[0]*=Ba,t[1]*=Ba,t},t},fn.invert=pn,la.geo.circle=function(){function e(){var e="function"==typeof r?r.apply(this,arguments):r,t=dn(-e[0]*Ha,-e[1]*Ha,0).invert,o=[];return n(null,null,1,{point:function(e,n){o.push(e=t(e,n)),e[0]*=Ba,e[1]*=Ba}}),{type:"Polygon",coordinates:[o]}}var t,n,r=[0,0],o=6;return e.origin=function(t){return arguments.length?(r=t,e):r},e.angle=function(r){return arguments.length?(n=yn((t=+r)*Ha,o*Ha),e):t},e.precision=function(r){return arguments.length?(n=yn(t*Ha,(o=+r)*Ha),e):o},e.angle(90)},la.geo.distance=function(e,t){var n,r=(t[0]-e[0])*Ha,o=e[1]*Ha,i=t[1]*Ha,a=Math.sin(r),s=Math.cos(r),u=Math.sin(o),c=Math.cos(o),l=Math.sin(i),p=Math.cos(i);return Math.atan2(Math.sqrt((n=p*a)*n+(n=c*l-u*p*s)*n),u*l+c*p*s)},la.geo.graticule=function(){function e(){return{type:"MultiLineString",coordinates:t()}}function t(){return la.range(Math.ceil(i/m)*m,o,m).map(f).concat(la.range(Math.ceil(c/y)*y,u,y).map(d)).concat(la.range(Math.ceil(r/h)*h,n,h).filter(function(e){return ba(e%m)>ja}).map(l)).concat(la.range(Math.ceil(s/g)*g,a,g).filter(function(e){return ba(e%y)>ja}).map(p))}var n,r,o,i,a,s,u,c,l,p,f,d,h=10,g=h,m=90,y=360,v=2.5;return e.lines=function(){return t().map(function(e){return{type:"LineString",coordinates:e}})},e.outline=function(){return{type:"Polygon",coordinates:[f(i).concat(d(u).slice(1),f(o).reverse().slice(1),d(c).reverse().slice(1))]}},e.extent=function(t){return arguments.length?e.majorExtent(t).minorExtent(t):e.minorExtent()},e.majorExtent=function(t){return arguments.length?(i=+t[0][0],o=+t[1][0],c=+t[0][1],u=+t[1][1],i>o&&(t=i,i=o,o=t),c>u&&(t=c,c=u,u=t),e.precision(v)):[[i,c],[o,u]]},e.minorExtent=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],s=+t[0][1],a=+t[1][1],r>n&&(t=r,r=n,n=t),s>a&&(t=s,s=a,a=t),e.precision(v)):[[r,s],[n,a]]},e.step=function(t){return arguments.length?e.majorStep(t).minorStep(t):e.minorStep()},e.majorStep=function(t){return arguments.length?(m=+t[0],y=+t[1],e):[m,y]},e.minorStep=function(t){return arguments.length?(h=+t[0],g=+t[1],e):[h,g]},e.precision=function(t){return arguments.length?(v=+t,l=_n(s,a,90),p=bn(r,n,v),f=_n(c,u,90),d=bn(i,o,v),e):v},e.majorExtent([[-180,-90+ja],[180,90-ja]]).minorExtent([[-180,-80-ja],[180,80+ja]])},la.geo.greatArc=function(){function e(){return{type:"LineString",coordinates:[t||r.apply(this,arguments),n||o.apply(this,arguments)]}}var t,n,r=En,o=xn;return e.distance=function(){return la.geo.distance(t||r.apply(this,arguments),n||o.apply(this,arguments))},e.source=function(n){return arguments.length?(r=n,t="function"==typeof n?null:n,e):r},e.target=function(t){return arguments.length?(o=t,n="function"==typeof t?null:t,e):o},e.precision=function(){return arguments.length?e:0},e},la.geo.interpolate=function(e,t){return Cn(e[0]*Ha,e[1]*Ha,t[0]*Ha,t[1]*Ha)},la.geo.length=function(e){return Ks=0,la.geo.stream(e,Qs),Ks};var Ks,Qs={sphere:C,point:C,lineStart:wn,lineEnd:C,polygonStart:C,polygonEnd:C},$s=Sn(function(e){return Math.sqrt(2/(1+e))},function(e){return 2*Math.asin(e/2)});(la.geo.azimuthalEqualArea=function(){return un($s)}).raw=$s;var Js=Sn(function(e){var t=Math.acos(e);return t&&t/Math.sin(t)},b);(la.geo.azimuthalEquidistant=function(){return un(Js)}).raw=Js,(la.geo.conicConformal=function(){return Zt(On)}).raw=On,(la.geo.conicEquidistant=function(){return Zt(Tn)}).raw=Tn;var eu=Sn(function(e){return 1/e},Math.atan);(la.geo.gnomonic=function(){return un(eu)}).raw=eu,Pn.invert=function(e,t){return[e,2*Math.atan(Math.exp(t))-Ga]},(la.geo.mercator=function(){return Rn(Pn)}).raw=Pn;var tu=Sn(function(){return 1},Math.asin);(la.geo.orthographic=function(){return un(tu)}).raw=tu;var nu=Sn(function(e){return 1/(1+e)},function(e){return 2*Math.atan(e)});(la.geo.stereographic=function(){return un(nu)}).raw=nu,Nn.invert=function(e,t){return[-t,2*Math.atan(Math.exp(e))-Ga]},(la.geo.transverseMercator=function(){var e=Rn(Nn),t=e.center,n=e.rotate;return e.center=function(e){return e?t([-e[1],e[0]]):(e=t(),[e[1],-e[0]])},e.rotate=function(e){return e?n([e[0],e[1],e.length>2?e[2]+90:90]):(e=n(),[e[0],e[1],e[2]-90])},n([0,0,90])}).raw=Nn,la.geom={},la.geom.hull=function(e){function t(e){if(e.length<3)return[];var t,o=Pe(n),i=Pe(r),a=e.length,s=[],u=[];for(t=0;t<a;t++)s.push([+o.call(this,e[t],t),+i.call(this,e[t],t),t]);for(s.sort(In),t=0;t<a;t++)u.push([s[t][0],-s[t][1]]);var c=Dn(s),l=Dn(u),p=l[0]===c[0],f=l[l.length-1]===c[c.length-1],d=[];for(t=c.length-1;t>=0;--t)d.push(e[s[c[t]][2]]);for(t=+p;t<l.length-f;++t)d.push(e[s[l[t]][2]]);return d}var n=An,r=Mn;return arguments.length?t(e):(t.x=function(e){return arguments.length?(n=e,t):n},t.y=function(e){return arguments.length?(r=e,t):r},t)},la.geom.polygon=function(e){return Sa(e,ru),e};var ru=la.geom.polygon.prototype=[];ru.area=function(){for(var e,t=-1,n=this.length,r=this[n-1],o=0;++t<n;)e=r,r=this[t],o+=e[1]*r[0]-e[0]*r[1];return.5*o},ru.centroid=function(e){var t,n,r=-1,o=this.length,i=0,a=0,s=this[o-1];for(arguments.length||(e=-1/(6*this.area()));++r<o;)t=s,s=this[r],n=t[0]*s[1]-s[0]*t[1],i+=(t[0]+s[0])*n,a+=(t[1]+s[1])*n;return[i*e,a*e]},ru.clip=function(e){for(var t,n,r,o,i,a,s=jn(e),u=-1,c=this.length-jn(this),l=this[c-1];++u<c;){for(t=e.slice(),e.length=0,o=this[u],i=t[(r=t.length-s)-1],n=-1;++n<r;)a=t[n],Ln(a,l,o)?(Ln(i,l,o)||e.push(kn(i,a,l,o)),e.push(a)):Ln(i,l,o)&&e.push(kn(i,a,l,o)),i=a;s&&e.push(e[0]),l=o}return e};var ou,iu,au,su,uu,cu=[],lu=[];qn.prototype.prepare=function(){for(var e,t=this.edges,n=t.length;n--;)e=t[n].edge,e.b&&e.a||t.splice(n,1);return t.sort(Wn),t.length},rr.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}},or.prototype={insert:function(e,t){var n,r,o;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=ur(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);for(t.L=t.R=null,t.U=n,t.C=!0,e=t;n&&n.C;)r=n.U,n===r.L?(o=r.R,o&&o.C?(n.C=o.C=!1,r.C=!0,e=r):(e===n.R&&(ar(this,n),e=n,n=e.U),n.C=!1,r.C=!0,sr(this,r))):(o=r.L,o&&o.C?(n.C=o.C=!1,r.C=!0,e=r):(e===n.L&&(sr(this,n),e=n,n=e.U),n.C=!1,r.C=!0,ar(this,r))),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,r,o=e.U,i=e.L,a=e.R;if(n=i?a?ur(a):i:a,o?o.L===e?o.L=n:o.R=n:this._=n,i&&a?(r=n.C,n.C=e.C,n.L=i,i.U=n,n!==a?(o=n.U,n.U=e.U,e=n.R,o.L=e,n.R=a,a.U=n):(n.U=o,o=n,e=n.R)):(r=e.C,e=n),e&&(e.U=o),!r){if(e&&e.C)return void(e.C=!1);do{if(e===this._)break;if(e===o.L){if(t=o.R,t.C&&(t.C=!1,o.C=!0,ar(this,o),t=o.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,sr(this,t),t=o.R),t.C=o.C,o.C=t.R.C=!1,ar(this,o),e=this._;break}}else if(t=o.L,t.C&&(t.C=!1,o.C=!0,sr(this,o),t=o.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,ar(this,t),t=o.L),t.C=o.C,o.C=t.L.C=!1,sr(this,o),e=this._;break}t.C=!0,e=o,o=o.U}while(!e.C);e&&(e.C=!1)}}},la.geom.voronoi=function(e){function t(e){var t=new Array(e.length),r=s[0][0],o=s[0][1],i=s[1][0],a=s[1][1];return cr(n(e),s).cells.forEach(function(n,s){var u=n.edges,c=n.site,l=t[s]=u.length?u.map(function(e){var t=e.start();return[t.x,t.y]}):c.x>=r&&c.x<=i&&c.y>=o&&c.y<=a?[[r,a],[i,a],[i,o],[r,o]]:[];l.point=e[s]}),t}function n(e){return e.map(function(e,t){return{x:Math.round(i(e,t)/ja)*ja,y:Math.round(a(e,t)/ja)*ja,i:t}})}var r=An,o=Mn,i=r,a=o,s=pu;return e?t(e):(t.links=function(e){return cr(n(e)).edges.filter(function(e){return e.l&&e.r}).map(function(t){return{source:e[t.l.i],target:e[t.r.i]}})},t.triangles=function(e){var t=[];return cr(n(e)).cells.forEach(function(n,r){for(var o,i,a=n.site,s=n.edges.sort(Wn),u=-1,c=s.length,l=s[c-1].edge,p=l.l===a?l.r:l.l;++u<c;)o=l,i=p,l=s[u].edge,p=l.l===a?l.r:l.l,r<i.i&&r<p.i&&pr(a,i,p)<0&&t.push([e[r],e[i.i],e[p.i]])}),t},t.x=function(e){return arguments.length?(i=Pe(r=e),t):r},t.y=function(e){return arguments.length?(a=Pe(o=e),t):o},t.clipExtent=function(e){return arguments.length?(s=null==e?pu:e,t):s===pu?null:s},t.size=function(e){return arguments.length?t.clipExtent(e&&[[0,0],e]):s===pu?null:s&&s[1]},t)};var pu=[[-1e6,-1e6],[1e6,1e6]];la.geom.delaunay=function(e){return la.geom.voronoi().triangles(e)},la.geom.quadtree=function(e,t,n,r,o){function i(e){function i(e,t,n,r,o,i,a,s){if(!isNaN(n)&&!isNaN(r))if(e.leaf){var u=e.x,l=e.y;if(null!=u)if(ba(u-n)+ba(l-r)<.01)c(e,t,n,r,o,i,a,s);else{var p=e.point;e.x=e.y=e.point=null,c(e,p,u,l,o,i,a,s),c(e,t,n,r,o,i,a,s)}else e.x=n,e.y=r,e.point=t}else c(e,t,n,r,o,i,a,s)}function c(e,t,n,r,o,a,s,u){var c=.5*(o+s),l=.5*(a+u),p=n>=c,f=r>=l,d=f<<1|p;e.leaf=!1,e=e.nodes[d]||(e.nodes[d]=hr()),p?o=c:s=c,f?a=l:u=l,i(e,t,n,r,o,a,s,u)}var l,p,f,d,h,g,m,y,v,_=Pe(s),b=Pe(u);if(null!=t)g=t,m=n,y=r,v=o;else if(y=v=-(g=m=1/0),p=[],f=[],h=e.length,a)for(d=0;d<h;++d)l=e[d],l.x<g&&(g=l.x),l.y<m&&(m=l.y),l.x>y&&(y=l.x),l.y>v&&(v=l.y),p.push(l.x),f.push(l.y);else for(d=0;d<h;++d){var E=+_(l=e[d],d),x=+b(l,d);E<g&&(g=E),x<m&&(m=x),E>y&&(y=E),x>v&&(v=x),p.push(E),f.push(x)}var C=y-g,w=v-m;C>w?v=m+C:y=g+w;var S=hr();if(S.add=function(e){i(S,e,+_(e,++d),+b(e,d),g,m,y,v)},S.visit=function(e){gr(e,S,g,m,y,v)},S.find=function(e){return mr(S,e[0],e[1],g,m,y,v)},d=-1,null==t){for(;++d<h;)i(S,e[d],p[d],f[d],g,m,y,v);--d}else e.forEach(S.add);return p=f=e=l=null,S}var a,s=An,u=Mn;return(a=arguments.length)?(s=fr,u=dr,3===a&&(o=n,r=t,n=t=0),i(e)):(i.x=function(e){return arguments.length?(s=e,i):s},i.y=function(e){return arguments.length?(u=e,i):u},i.extent=function(e){return arguments.length?(null==e?t=n=r=o=null:(t=+e[0][0],n=+e[0][1],r=+e[1][0],o=+e[1][1]),i):null==t?null:[[t,n],[r,o]]},i.size=function(e){return arguments.length?(null==e?t=n=r=o=null:(t=n=0,r=+e[0],o=+e[1]),i):null==t?null:[r-t,o-n]},i)},la.interpolateRgb=yr,la.interpolateObject=vr,la.interpolateNumber=_r,la.interpolateString=br;var fu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,du=new RegExp(fu.source,"g");la.interpolate=Er,la.interpolators=[function(e,t){var n=typeof t;return("string"===n?is.has(t.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(t)?yr:br:t instanceof ue?yr:Array.isArray(t)?xr:"object"===n&&isNaN(t)?vr:_r)(e,t)}],la.interpolateArray=xr;var hu=function(){return b},gu=la.map({linear:hu,poly:Rr,quad:function(){return Or},cubic:function(){return Tr},sin:function(){return Nr},exp:function(){return Ar},circle:function(){return Mr},elastic:Dr,back:Ir,bounce:function(){return Lr}}),mu=la.map({in:b,out:wr,"in-out":Sr,"out-in":function(e){return Sr(wr(e))}});la.ease=function(e){var t=e.indexOf("-"),n=t>=0?e.slice(0,t):e,r=t>=0?e.slice(t+1):"in";return n=gu.get(n)||hu,r=mu.get(r)||b,Cr(r(n.apply(null,pa.call(arguments,1))))},la.interpolateHcl=kr,la.interpolateHsl=jr,la.interpolateLab=Fr,la.interpolateRound=Vr,la.transform=function(e){var t=da.createElementNS(la.ns.prefix.svg,"g");return(la.transform=function(e){if(null!=e){t.setAttribute("transform",e);var n=t.transform.baseVal.consolidate()}return new Ur(n?n.matrix:yu)})(e)},Ur.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var yu={a:1,b:0,c:0,d:1,e:0,f:0};la.interpolateTransform=Xr,la.layout={},la.layout.bundle=function(){return function(e){for(var t=[],n=-1,r=e.length;++n<r;)t.push($r(e[n]));return t}},la.layout.chord=function(){function e(){var e,c,p,f,d,h={},g=[],m=la.range(i),y=[];for(n=[],r=[],e=0,f=-1;++f<i;){for(c=0,d=-1;++d<i;)c+=o[f][d];g.push(c),y.push(la.range(i)),e+=c}for(a&&m.sort(function(e,t){return a(g[e],g[t])}),s&&y.forEach(function(e,t){e.sort(function(e,n){return s(o[t][e],o[t][n])})}),e=(Ua-l*i)/e,c=0,f=-1;++f<i;){for(p=c,d=-1;++d<i;){var v=m[f],_=y[v][d],b=o[v][_],E=c,x=c+=b*e;h[v+"-"+_]={index:v,subindex:_,startAngle:E,endAngle:x,value:b}}r[v]={index:v,startAngle:p,endAngle:c,value:g[v]},c+=l}for(f=-1;++f<i;)for(d=f-1;++d<i;){var C=h[f+"-"+d],w=h[d+"-"+f];(C.value||w.value)&&n.push(C.value<w.value?{source:w,target:C}:{source:C,target:w})}u&&t()}function t(){n.sort(function(e,t){return u((e.source.value+e.target.value)/2,(t.source.value+t.target.value)/2)})}var n,r,o,i,a,s,u,c={},l=0;return c.matrix=function(e){return arguments.length?(i=(o=e)&&o.length,n=r=null,c):o},c.padding=function(e){return arguments.length?(l=e,n=r=null,c):l},c.sortGroups=function(e){return arguments.length?(a=e,n=r=null,c):a},c.sortSubgroups=function(e){return arguments.length?(s=e,n=null,c):s},c.sortChords=function(e){return arguments.length?(u=e,n&&t(),c):u},c.chords=function(){return n||e(),n},c.groups=function(){return r||e(),r},c},la.layout.force=function(){function e(e){return function(t,n,r,o){if(t.point!==e){var i=t.cx-e.x,a=t.cy-e.y,s=o-n,u=i*i+a*a;if(s*s/y<u){if(u<g){var c=t.charge/u;e.px-=i*c,e.py-=a*c}return!0}if(t.point&&u&&u<g){var c=t.pointCharge/u;e.px-=i*c,e.py-=a*c}}return!t.charge}}function t(e){e.px=la.event.x,e.py=la.event.y,u.resume()}var n,r,o,i,a,s,u={},c=la.dispatch("start","tick","end"),l=[1,1],p=.9,f=vu,d=_u,h=-30,g=bu,m=.1,y=.64,v=[],_=[];return u.tick=function(){if((o*=.99)<.005)return n=null,c.end({type:"end",alpha:o=0}),!0;var t,r,u,f,d,g,y,b,E,x=v.length,C=_.length;for(r=0;r<C;++r)u=_[r],f=u.source,d=u.target,b=d.x-f.x,E=d.y-f.y,(g=b*b+E*E)&&(g=o*a[r]*((g=Math.sqrt(g))-i[r])/g,b*=g,E*=g,d.x-=b*(y=f.weight+d.weight?f.weight/(f.weight+d.weight):.5),d.y-=E*y,f.x+=b*(y=1-y),f.y+=E*y);if((y=o*m)&&(b=l[0]/2,E=l[1]/2,r=-1,y))for(;++r<x;)u=v[r],u.x+=(b-u.x)*y,u.y+=(E-u.y)*y;if(h)for(io(t=la.geom.quadtree(v),o,s),r=-1;++r<x;)(u=v[r]).fixed||t.visit(e(u));for(r=-1;++r<x;)u=v[r],u.fixed?(u.x=u.px,u.y=u.py):(u.x-=(u.px-(u.px=u.x))*p,u.y-=(u.py-(u.py=u.y))*p);c.tick({type:"tick",alpha:o})},u.nodes=function(e){return arguments.length?(v=e,u):v},u.links=function(e){return arguments.length?(_=e,u):_},u.size=function(e){return arguments.length?(l=e,u):l},u.linkDistance=function(e){return arguments.length?(f="function"==typeof e?e:+e,u):f},u.distance=u.linkDistance,u.linkStrength=function(e){return arguments.length?(d="function"==typeof e?e:+e,u):d},u.friction=function(e){return arguments.length?(p=+e,u):p},u.charge=function(e){return arguments.length?(h="function"==typeof e?e:+e,u):h},u.chargeDistance=function(e){return arguments.length?(g=e*e,u):Math.sqrt(g)},u.gravity=function(e){return arguments.length?(m=+e,u):m},u.theta=function(e){return arguments.length?(y=e*e,u):Math.sqrt(y)},u.alpha=function(e){return arguments.length?(e=+e,o?e>0?o=e:(n.c=null,n.t=NaN,n=null,c.end({type:"end",alpha:o=0})):e>0&&(c.start({type:"start",alpha:o=e}),n=De(u.tick)),u):o},u.start=function(){function e(e,r){if(!n){for(n=new Array(o),u=0;u<o;++u)n[u]=[];for(u=0;u<c;++u){var i=_[u];n[i.source.index].push(i.target),n[i.target.index].push(i.source)}}for(var a,s=n[t],u=-1,l=s.length;++u<l;)if(!isNaN(a=s[u][e]))return a;return Math.random()*r}var t,n,r,o=v.length,c=_.length,p=l[0],g=l[1];for(t=0;t<o;++t)(r=v[t]).index=t,r.weight=0;for(t=0;t<c;++t)r=_[t],"number"==typeof r.source&&(r.source=v[r.source]),"number"==typeof r.target&&(r.target=v[r.target]),++r.source.weight,++r.target.weight;for(t=0;t<o;++t)r=v[t],isNaN(r.x)&&(r.x=e("x",p)),isNaN(r.y)&&(r.y=e("y",g)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(i=[],"function"==typeof f)for(t=0;t<c;++t)i[t]=+f.call(this,_[t],t);else for(t=0;t<c;++t)i[t]=f;if(a=[],"function"==typeof d)for(t=0;t<c;++t)a[t]=+d.call(this,_[t],t);else for(t=0;t<c;++t)a[t]=d;if(s=[],"function"==typeof h)for(t=0;t<o;++t)s[t]=+h.call(this,v[t],t);else for(t=0;t<o;++t)s[t]=h;return u.resume()},u.resume=function(){return u.alpha(.1)},u.stop=function(){return u.alpha(0)},u.drag=function(){return r||(r=la.behavior.drag().origin(b).on("dragstart.force",to).on("drag.force",t).on("dragend.force",no)),arguments.length?void this.on("mouseover.force",ro).on("mouseout.force",oo).call(r):r},la.rebind(u,c,"on")};var vu=20,_u=1,bu=1/0;la.layout.hierarchy=function(){function e(o){var i,a=[o],s=[];for(o.depth=0;null!=(i=a.pop());)if(s.push(i),(c=n.call(e,i,i.depth))&&(u=c.length)){for(var u,c,l;--u>=0;)a.push(l=c[u]),l.parent=i,l.depth=i.depth+1;r&&(i.value=0),i.children=c}else r&&(i.value=+r.call(e,i,i.depth)||0),delete i.children;return uo(o,function(e){var n,o;t&&(n=e.children)&&n.sort(t),r&&(o=e.parent)&&(o.value+=e.value)}),s}var t=po,n=co,r=lo;return e.sort=function(n){return arguments.length?(t=n,e):t},e.children=function(t){return arguments.length?(n=t,e):n},e.value=function(t){return arguments.length?(r=t,e):r},e.revalue=function(t){return r&&(so(t,function(e){e.children&&(e.value=0)}),uo(t,function(t){var n;t.children||(t.value=+r.call(e,t,t.depth)||0),(n=t.parent)&&(n.value+=t.value)})),t},e},la.layout.partition=function(){function e(t,n,r,o){var i=t.children;if(t.x=n,t.y=t.depth*o,t.dx=r,t.dy=o,i&&(a=i.length)){var a,s,u,c=-1;for(r=t.value?r/t.value:0;++c<a;)e(s=i[c],n,u=s.value*r,o),n+=u}}function t(e){var n=e.children,r=0;if(n&&(o=n.length))for(var o,i=-1;++i<o;)r=Math.max(r,t(n[i]));return 1+r}function n(n,i){var a=r.call(this,n,i);return e(a[0],0,o[0],o[1]/t(a[0])),a}var r=la.layout.hierarchy(),o=[1,1];return n.size=function(e){return arguments.length?(o=e,n):o},ao(n,r)},la.layout.pie=function(){function e(a){var s,u=a.length,c=a.map(function(n,r){return+t.call(e,n,r)}),l=+("function"==typeof r?r.apply(this,arguments):r),p=("function"==typeof o?o.apply(this,arguments):o)-l,f=Math.min(Math.abs(p)/u,+("function"==typeof i?i.apply(this,arguments):i)),d=f*(p<0?-1:1),h=la.sum(c),g=h?(p-u*d)/h:0,m=la.range(u),y=[];return null!=n&&m.sort(n===Eu?function(e,t){return c[t]-c[e]}:function(e,t){return n(a[e],a[t])}),m.forEach(function(e){y[e]={data:a[e],value:s=c[e],startAngle:l,endAngle:l+=s*g+d,padAngle:f}}),y}var t=Number,n=Eu,r=0,o=Ua,i=0;return e.value=function(n){return arguments.length?(t=n,e):t},e.sort=function(t){return arguments.length?(n=t,e):n},e.startAngle=function(t){return arguments.length?(r=t,e):r},e.endAngle=function(t){return arguments.length?(o=t,e):o},e.padAngle=function(t){return arguments.length?(i=t,e):i},e};var Eu={};la.layout.stack=function(){function e(s,u){if(!(f=s.length))return s;var c=s.map(function(n,r){return t.call(e,n,r)}),l=c.map(function(t){return t.map(function(t,n){return[i.call(e,t,n),a.call(e,t,n)]})}),p=n.call(e,l,u);c=la.permute(c,p),l=la.permute(l,p);var f,d,h,g,m=r.call(e,l,u),y=c[0].length;for(h=0;h<y;++h)for(o.call(e,c[0][h],g=m[h],l[0][h][1]),d=1;d<f;++d)o.call(e,c[d][h],g+=l[d-1][h][1],l[d][h][1]);return s}var t=b,n=yo,r=vo,o=mo,i=ho,a=go;return e.values=function(n){return arguments.length?(t=n,e):t},e.order=function(t){return arguments.length?(n="function"==typeof t?t:xu.get(t)||yo,e):n},e.offset=function(t){return arguments.length?(r="function"==typeof t?t:Cu.get(t)||vo,e):r},e.x=function(t){return arguments.length?(i=t,e):i},e.y=function(t){return arguments.length?(a=t,e):a},e.out=function(t){return arguments.length?(o=t,e):o},e};var xu=la.map({"inside-out":function(e){var t,n,r=e.length,o=e.map(_o),i=e.map(bo),a=la.range(r).sort(function(e,t){return o[e]-o[t]}),s=0,u=0,c=[],l=[];for(t=0;t<r;++t)n=a[t],s<u?(s+=i[n],c.push(n)):(u+=i[n],l.push(n));return l.reverse().concat(c)},reverse:function(e){return la.range(e.length).reverse()},default:yo}),Cu=la.map({silhouette:function(e){var t,n,r,o=e.length,i=e[0].length,a=[],s=0,u=[];for(n=0;n<i;++n){for(t=0,r=0;t<o;t++)r+=e[t][n][1];r>s&&(s=r),a.push(r)}for(n=0;n<i;++n)u[n]=(s-a[n])/2;return u},wiggle:function(e){var t,n,r,o,i,a,s,u,c,l=e.length,p=e[0],f=p.length,d=[];for(d[0]=u=c=0,n=1;n<f;++n){for(t=0,o=0;t<l;++t)o+=e[t][n][1];for(t=0,i=0,s=p[n][0]-p[n-1][0];t<l;++t){for(r=0,a=(e[t][n][1]-e[t][n-1][1])/(2*s);r<t;++r)a+=(e[r][n][1]-e[r][n-1][1])/s;i+=a*e[t][n][1]}d[n]=u-=o?i/o*s:0,u<c&&(c=u)}for(n=0;n<f;++n)d[n]-=c;return d},expand:function(e){var t,n,r,o=e.length,i=e[0].length,a=1/o,s=[];for(n=0;n<i;++n){for(t=0,r=0;t<o;t++)r+=e[t][n][1];if(r)for(t=0;t<o;t++)e[t][n][1]/=r;else for(t=0;t<o;t++)e[t][n][1]=a}for(n=0;n<i;++n)s[n]=0;return s},zero:vo});la.layout.histogram=function(){function e(e,i){for(var a,s,u=[],c=e.map(n,this),l=r.call(this,c,i),p=o.call(this,l,c,i),i=-1,f=c.length,d=p.length-1,h=t?1:1/f;++i<d;)a=u[i]=[],a.dx=p[i+1]-(a.x=p[i]),a.y=0;if(d>0)for(i=-1;++i<f;)s=c[i],s>=l[0]&&s<=l[1]&&(a=u[la.bisect(p,s,1,d)-1],a.y+=h,a.push(e[i]));return u}var t=!0,n=Number,r=wo,o=xo;return e.value=function(t){return arguments.length?(n=t,e):n},e.range=function(t){return arguments.length?(r=Pe(t),e):r},e.bins=function(t){return arguments.length?(o="number"==typeof t?function(e){return Co(e,t)}:Pe(t),e):o},e.frequency=function(n){return arguments.length?(t=!!n,e):t},e},la.layout.pack=function(){function e(e,i){var a=n.call(this,e,i),s=a[0],u=o[0],c=o[1],l=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(s.x=s.y=0,uo(s,function(e){e.r=+l(e.value)}),uo(s,Ro),r){var p=r*(t?1:Math.max(2*s.r/u,2*s.r/c))/2;uo(s,function(e){e.r+=p}),uo(s,Ro),uo(s,function(e){e.r-=p})}return Mo(s,u/2,c/2,t?1:1/Math.max(2*s.r/u,2*s.r/c)),a}var t,n=la.layout.hierarchy().sort(So),r=0,o=[1,1];return e.size=function(t){return arguments.length?(o=t,e):o},e.radius=function(n){return arguments.length?(t=null==n||"function"==typeof n?n:+n,e):t},e.padding=function(t){return arguments.length?(r=+t,e):r},ao(e,n)},la.layout.tree=function(){function e(e,o){var l=a.call(this,e,o),p=l[0],f=t(p);if(uo(f,n),f.parent.m=-f.z,so(f,r),c)so(p,i);else{var d=p,h=p,g=p;so(p,function(e){e.x<d.x&&(d=e),e.x>h.x&&(h=e),e.depth>g.depth&&(g=e)});var m=s(d,h)/2-d.x,y=u[0]/(h.x+s(h,d)/2+m),v=u[1]/(g.depth||1);so(p,function(e){e.x=(e.x+m)*y,e.y=e.depth*v})}return l}function t(e){for(var t,n={A:null,children:[e]},r=[n];null!=(t=r.pop());)for(var o,i=t.children,a=0,s=i.length;a<s;++a)r.push((i[a]=o={_:i[a],parent:t,children:(o=i[a].children)&&o.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:a}).a=o);return n.children[0]}function n(e){var t=e.children,n=e.parent.children,r=e.i?n[e.i-1]:null;if(t.length){Fo(e);var i=(t[0].z+t[t.length-1].z)/2;r?(e.z=r.z+s(e._,r._),
19
- e.m=e.z-i):e.z=i}else r&&(e.z=r.z+s(e._,r._));e.parent.A=o(e,r,e.parent.A||n[0])}function r(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function o(e,t,n){if(t){for(var r,o=e,i=e,a=t,u=o.parent.children[0],c=o.m,l=i.m,p=a.m,f=u.m;a=ko(a),o=Lo(o),a&&o;)u=Lo(u),i=ko(i),i.a=e,r=a.z+p-o.z-c+s(a._,o._),r>0&&(jo(Vo(a,e,n),e,r),c+=r,l+=r),p+=a.m,c+=o.m,f+=u.m,l+=i.m;a&&!ko(i)&&(i.t=a,i.m+=p-l),o&&!Lo(u)&&(u.t=o,u.m+=c-f,n=e)}return n}function i(e){e.x*=u[0],e.y=e.depth*u[1]}var a=la.layout.hierarchy().sort(null).value(null),s=Io,u=[1,1],c=null;return e.separation=function(t){return arguments.length?(s=t,e):s},e.size=function(t){return arguments.length?(c=null==(u=t)?i:null,e):c?null:u},e.nodeSize=function(t){return arguments.length?(c=null==(u=t)?null:i,e):c?u:null},ao(e,a)},la.layout.cluster=function(){function e(e,i){var a,s=t.call(this,e,i),u=s[0],c=0;uo(u,function(e){var t=e.children;t&&t.length?(e.x=zo(t),e.y=Uo(t)):(e.x=a?c+=n(e,a):0,e.y=0,a=e)});var l=Go(u),p=Ho(u),f=l.x-n(l,p)/2,d=p.x+n(p,l)/2;return uo(u,o?function(e){e.x=(e.x-u.x)*r[0],e.y=(u.y-e.y)*r[1]}:function(e){e.x=(e.x-f)/(d-f)*r[0],e.y=(1-(u.y?e.y/u.y:1))*r[1]}),s}var t=la.layout.hierarchy().sort(null).value(null),n=Io,r=[1,1],o=!1;return e.separation=function(t){return arguments.length?(n=t,e):n},e.size=function(t){return arguments.length?(o=null==(r=t),e):o?null:r},e.nodeSize=function(t){return arguments.length?(o=null!=(r=t),e):o?r:null},ao(e,t)},la.layout.treemap=function(){function e(e,t){for(var n,r,o=-1,i=e.length;++o<i;)r=(n=e[o]).value*(t<0?0:t),n.area=isNaN(r)||r<=0?0:r}function t(n){var i=n.children;if(i&&i.length){var a,s,u,c=p(n),l=[],f=i.slice(),h=1/0,g="slice"===d?c.dx:"dice"===d?c.dy:"slice-dice"===d?1&n.depth?c.dy:c.dx:Math.min(c.dx,c.dy);for(e(f,c.dx*c.dy/n.value),l.area=0;(u=f.length)>0;)l.push(a=f[u-1]),l.area+=a.area,"squarify"!==d||(s=r(l,g))<=h?(f.pop(),h=s):(l.area-=l.pop().area,o(l,g,c,!1),g=Math.min(c.dx,c.dy),l.length=l.area=0,h=1/0);l.length&&(o(l,g,c,!0),l.length=l.area=0),i.forEach(t)}}function n(t){var r=t.children;if(r&&r.length){var i,a=p(t),s=r.slice(),u=[];for(e(s,a.dx*a.dy/t.value),u.area=0;i=s.pop();)u.push(i),u.area+=i.area,null!=i.z&&(o(u,i.z?a.dx:a.dy,a,!s.length),u.length=u.area=0);r.forEach(n)}}function r(e,t){for(var n,r=e.area,o=0,i=1/0,a=-1,s=e.length;++a<s;)(n=e[a].area)&&(n<i&&(i=n),n>o&&(o=n));return r*=r,t*=t,r?Math.max(t*o*h/r,r/(t*i*h)):1/0}function o(e,t,n,r){var o,i=-1,a=e.length,s=n.x,c=n.y,l=t?u(e.area/t):0;if(t==n.dx){for((r||l>n.dy)&&(l=n.dy);++i<a;)o=e[i],o.x=s,o.y=c,o.dy=l,s+=o.dx=Math.min(n.x+n.dx-s,l?u(o.area/l):0);o.z=!0,o.dx+=n.x+n.dx-s,n.y+=l,n.dy-=l}else{for((r||l>n.dx)&&(l=n.dx);++i<a;)o=e[i],o.x=s,o.y=c,o.dx=l,c+=o.dy=Math.min(n.y+n.dy-c,l?u(o.area/l):0);o.z=!1,o.dy+=n.y+n.dy-c,n.x+=l,n.dx-=l}}function i(r){var o=a||s(r),i=o[0];return i.x=i.y=0,i.value?(i.dx=c[0],i.dy=c[1]):i.dx=i.dy=0,a&&s.revalue(i),e([i],i.dx*i.dy/i.value),(a?n:t)(i),f&&(a=o),o}var a,s=la.layout.hierarchy(),u=Math.round,c=[1,1],l=null,p=Bo,f=!1,d="squarify",h=.5*(1+Math.sqrt(5));return i.size=function(e){return arguments.length?(c=e,i):c},i.padding=function(e){function t(t){var n=e.call(i,t,t.depth);return null==n?Bo(t):qo(t,"number"==typeof n?[n,n,n,n]:n)}function n(t){return qo(t,e)}if(!arguments.length)return l;var r;return p=null==(l=e)?Bo:"function"==(r=typeof e)?t:"number"===r?(e=[e,e,e,e],n):n,i},i.round=function(e){return arguments.length?(u=e?Math.round:Number,i):u!=Number},i.sticky=function(e){return arguments.length?(f=e,a=null,i):f},i.ratio=function(e){return arguments.length?(h=e,i):h},i.mode=function(e){return arguments.length?(d=e+"",i):d},ao(i,s)},la.random={normal:function(e,t){var n=arguments.length;return n<2&&(t=1),n<1&&(e=0),function(){var n,r,o;do n=2*Math.random()-1,r=2*Math.random()-1,o=n*n+r*r;while(!o||o>1);return e+t*n*Math.sqrt(-2*Math.log(o)/o)}},logNormal:function(){var e=la.random.normal.apply(la,arguments);return function(){return Math.exp(e())}},bates:function(e){var t=la.random.irwinHall(e);return function(){return t()/e}},irwinHall:function(e){return function(){for(var t=0,n=0;n<e;n++)t+=Math.random();return t}}},la.scale={};var wu={floor:b,ceil:b};la.scale.linear=function(){return $o([0,1],[0,1],Er,!1)};var Su={s:1,g:1,p:1,r:1,e:1};la.scale.log=function(){return ai(la.scale.linear().domain([0,1]),10,!0,[1,10])};var Ou=la.format(".0e"),Tu={floor:function(e){return-Math.ceil(-e)},ceil:function(e){return-Math.floor(-e)}};la.scale.pow=function(){return si(la.scale.linear(),1,[0,1])},la.scale.sqrt=function(){return la.scale.pow().exponent(.5)},la.scale.ordinal=function(){return ci([],{t:"range",a:[[]]})},la.scale.category10=function(){return la.scale.ordinal().range(Pu)},la.scale.category20=function(){return la.scale.ordinal().range(Ru)},la.scale.category20b=function(){return la.scale.ordinal().range(Nu)},la.scale.category20c=function(){return la.scale.ordinal().range(Au)};var Pu=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Ee),Ru=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Ee),Nu=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Ee),Au=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Ee);la.scale.quantile=function(){return li([],[])},la.scale.quantize=function(){return pi(0,1,[0,1])},la.scale.threshold=function(){return fi([.5],[0,1])},la.scale.identity=function(){return di([0,1])},la.svg={},la.svg.arc=function(){function e(){var e=Math.max(0,+n.apply(this,arguments)),c=Math.max(0,+r.apply(this,arguments)),l=a.apply(this,arguments)-Ga,p=s.apply(this,arguments)-Ga,f=Math.abs(p-l),d=l>p?0:1;if(c<e&&(h=c,c=e,e=h),f>=za)return t(c,d)+(e?t(e,1-d):"")+"Z";var h,g,m,y,v,_,b,E,x,C,w,S,O=0,T=0,P=[];if((y=(+u.apply(this,arguments)||0)/2)&&(m=i===Mu?Math.sqrt(e*e+c*c):+i.apply(this,arguments),d||(T*=-1),c&&(T=re(m/c*Math.sin(y))),e&&(O=re(m/e*Math.sin(y)))),c){v=c*Math.cos(l+T),_=c*Math.sin(l+T),b=c*Math.cos(p-T),E=c*Math.sin(p-T);var R=Math.abs(p-l-2*T)<=Va?0:1;if(T&&bi(v,_,b,E)===d^R){var N=(l+p)/2;v=c*Math.cos(N),_=c*Math.sin(N),b=E=null}}else v=_=0;if(e){x=e*Math.cos(p-O),C=e*Math.sin(p-O),w=e*Math.cos(l+O),S=e*Math.sin(l+O);var A=Math.abs(l-p+2*O)<=Va?0:1;if(O&&bi(x,C,w,S)===1-d^A){var M=(l+p)/2;x=e*Math.cos(M),C=e*Math.sin(M),w=S=null}}else x=C=0;if(f>ja&&(h=Math.min(Math.abs(c-e)/2,+o.apply(this,arguments)))>.001){g=e<c^d?0:1;var D=h,I=h;if(f<Va){var L=null==w?[x,C]:null==b?[v,_]:kn([v,_],[w,S],[b,E],[x,C]),k=v-L[0],j=_-L[1],F=b-L[0],V=E-L[1],U=1/Math.sin(Math.acos((k*F+j*V)/(Math.sqrt(k*k+j*j)*Math.sqrt(F*F+V*V)))/2),z=Math.sqrt(L[0]*L[0]+L[1]*L[1]);I=Math.min(h,(e-z)/(U-1)),D=Math.min(h,(c-z)/(U+1))}if(null!=b){var G=Ei(null==w?[x,C]:[w,S],[v,_],c,D,d),H=Ei([b,E],[x,C],c,D,d);h===D?P.push("M",G[0],"A",D,",",D," 0 0,",g," ",G[1],"A",c,",",c," 0 ",1-d^bi(G[1][0],G[1][1],H[1][0],H[1][1]),",",d," ",H[1],"A",D,",",D," 0 0,",g," ",H[0]):P.push("M",G[0],"A",D,",",D," 0 1,",g," ",H[0])}else P.push("M",v,",",_);if(null!=w){var B=Ei([v,_],[w,S],e,-I,d),q=Ei([x,C],null==b?[v,_]:[b,E],e,-I,d);h===I?P.push("L",q[0],"A",I,",",I," 0 0,",g," ",q[1],"A",e,",",e," 0 ",d^bi(q[1][0],q[1][1],B[1][0],B[1][1]),",",1-d," ",B[1],"A",I,",",I," 0 0,",g," ",B[0]):P.push("L",q[0],"A",I,",",I," 0 0,",g," ",B[0])}else P.push("L",x,",",C)}else P.push("M",v,",",_),null!=b&&P.push("A",c,",",c," 0 ",R,",",d," ",b,",",E),P.push("L",x,",",C),null!=w&&P.push("A",e,",",e," 0 ",A,",",1-d," ",w,",",S);return P.push("Z"),P.join("")}function t(e,t){return"M0,"+e+"A"+e+","+e+" 0 1,"+t+" 0,"+-e+"A"+e+","+e+" 0 1,"+t+" 0,"+e}var n=gi,r=mi,o=hi,i=Mu,a=yi,s=vi,u=_i;return e.innerRadius=function(t){return arguments.length?(n=Pe(t),e):n},e.outerRadius=function(t){return arguments.length?(r=Pe(t),e):r},e.cornerRadius=function(t){return arguments.length?(o=Pe(t),e):o},e.padRadius=function(t){return arguments.length?(i=t==Mu?Mu:Pe(t),e):i},e.startAngle=function(t){return arguments.length?(a=Pe(t),e):a},e.endAngle=function(t){return arguments.length?(s=Pe(t),e):s},e.padAngle=function(t){return arguments.length?(u=Pe(t),e):u},e.centroid=function(){var e=(+n.apply(this,arguments)+ +r.apply(this,arguments))/2,t=(+a.apply(this,arguments)+ +s.apply(this,arguments))/2-Ga;return[Math.cos(t)*e,Math.sin(t)*e]},e};var Mu="auto";la.svg.line=function(){return xi(b)};var Du=la.map({linear:Ci,"linear-closed":wi,step:Si,"step-before":Oi,"step-after":Ti,basis:Di,"basis-open":Ii,"basis-closed":Li,bundle:ki,cardinal:Ni,"cardinal-open":Pi,"cardinal-closed":Ri,monotone:Gi});Du.forEach(function(e,t){t.key=e,t.closed=/-closed#x2F;.test(e)});var Iu=[0,2/3,1/3,0],Lu=[0,1/3,2/3,0],ku=[0,1/6,2/3,1/6];la.svg.line.radial=function(){var e=xi(Hi);return e.radius=e.x,delete e.x,e.angle=e.y,delete e.y,e},Oi.reverse=Ti,Ti.reverse=Oi,la.svg.area=function(){return Bi(b)},la.svg.area.radial=function(){var e=Bi(Hi);return e.radius=e.x,delete e.x,e.innerRadius=e.x0,delete e.x0,e.outerRadius=e.x1,delete e.x1,e.angle=e.y,delete e.y,e.startAngle=e.y0,delete e.y0,e.endAngle=e.y1,delete e.y1,e},la.svg.chord=function(){function e(e,s){var u=t(this,i,e,s),c=t(this,a,e,s);return"M"+u.p0+r(u.r,u.p1,u.a1-u.a0)+(n(u,c)?o(u.r,u.p1,u.r,u.p0):o(u.r,u.p1,c.r,c.p0)+r(c.r,c.p1,c.a1-c.a0)+o(c.r,c.p1,u.r,u.p0))+"Z"}function t(e,t,n,r){var o=t.call(e,n,r),i=s.call(e,o,r),a=u.call(e,o,r)-Ga,l=c.call(e,o,r)-Ga;return{r:i,a0:a,a1:l,p0:[i*Math.cos(a),i*Math.sin(a)],p1:[i*Math.cos(l),i*Math.sin(l)]}}function n(e,t){return e.a0==t.a0&&e.a1==t.a1}function r(e,t,n){return"A"+e+","+e+" 0 "+ +(n>Va)+",1 "+t}function o(e,t,n,r){return"Q 0,0 "+r}var i=En,a=xn,s=qi,u=yi,c=vi;return e.radius=function(t){return arguments.length?(s=Pe(t),e):s},e.source=function(t){return arguments.length?(i=Pe(t),e):i},e.target=function(t){return arguments.length?(a=Pe(t),e):a},e.startAngle=function(t){return arguments.length?(u=Pe(t),e):u},e.endAngle=function(t){return arguments.length?(c=Pe(t),e):c},e},la.svg.diagonal=function(){function e(e,o){var i=t.call(this,e,o),a=n.call(this,e,o),s=(i.y+a.y)/2,u=[i,{x:i.x,y:s},{x:a.x,y:s},a];return u=u.map(r),"M"+u[0]+"C"+u[1]+" "+u[2]+" "+u[3]}var t=En,n=xn,r=Zi;return e.source=function(n){return arguments.length?(t=Pe(n),e):t},e.target=function(t){return arguments.length?(n=Pe(t),e):n},e.projection=function(t){return arguments.length?(r=t,e):r},e},la.svg.diagonal.radial=function(){var e=la.svg.diagonal(),t=Zi,n=e.projection;return e.projection=function(e){return arguments.length?n(Wi(t=e)):t},e},la.svg.symbol=function(){function e(e,r){return(ju.get(t.call(this,e,r))||Ki)(n.call(this,e,r))}var t=Xi,n=Yi;return e.type=function(n){return arguments.length?(t=Pe(n),e):t},e.size=function(t){return arguments.length?(n=Pe(t),e):n},e};var ju=la.map({circle:Ki,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*Vu)),n=t*Vu;return"M0,"+-t+"L"+n+",0 0,"+t+" "+-n+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/Fu),n=t*Fu/2;return"M0,"+n+"L"+t+","+-n+" "+-t+","+-n+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/Fu),n=t*Fu/2;return"M0,"+-n+"L"+t+","+n+" "+-t+","+n+"Z"}});la.svg.symbolTypes=ju.keys();var Fu=Math.sqrt(3),Vu=Math.tan(30*Ha);Ra.transition=function(e){for(var t,n,r=Uu||++Bu,o=ta(e),i=[],a=zu||{time:Date.now(),ease:Pr,delay:0,duration:250},s=-1,u=this.length;++s<u;){i.push(t=[]);for(var c=this[s],l=-1,p=c.length;++l<p;)(n=c[l])&&na(n,l,o,r,a),t.push(n)}return $i(i,o,r)},Ra.interrupt=function(e){return this.each(null==e?Gu:Qi(ta(e)))};var Uu,zu,Gu=Qi(ta()),Hu=[],Bu=0;Hu.call=Ra.call,Hu.empty=Ra.empty,Hu.node=Ra.node,Hu.size=Ra.size,la.transition=function(e,t){return e&&e.transition?Uu?e.transition(t):e:la.selection().transition(e)},la.transition.prototype=Hu,Hu.select=function(e){var t,n,r,o=this.id,i=this.namespace,a=[];e=N(e);for(var s=-1,u=this.length;++s<u;){a.push(t=[]);for(var c=this[s],l=-1,p=c.length;++l<p;)(r=c[l])&&(n=e.call(r,r.__data__,l,s))?("__data__"in r&&(n.__data__=r.__data__),na(n,l,i,o,r[i][o]),t.push(n)):t.push(null)}return $i(a,i,o)},Hu.selectAll=function(e){var t,n,r,o,i,a=this.id,s=this.namespace,u=[];e=A(e);for(var c=-1,l=this.length;++c<l;)for(var p=this[c],f=-1,d=p.length;++f<d;)if(r=p[f]){i=r[s][a],n=e.call(r,r.__data__,f,c),u.push(t=[]);for(var h=-1,g=n.length;++h<g;)(o=n[h])&&na(o,h,s,a,i),t.push(o)}return $i(u,s,a)},Hu.filter=function(e){var t,n,r,o=[];"function"!=typeof e&&(e=H(e));for(var i=0,a=this.length;i<a;i++){o.push(t=[]);for(var n=this[i],s=0,u=n.length;s<u;s++)(r=n[s])&&e.call(r,r.__data__,s,i)&&t.push(r)}return $i(o,this.namespace,this.id)},Hu.tween=function(e,t){var n=this.id,r=this.namespace;return arguments.length<2?this.node()[r][n].tween.get(e):q(this,null==t?function(t){t[r][n].tween.remove(e)}:function(o){o[r][n].tween.set(e,t)})},Hu.attr=function(e,t){function n(){this.removeAttribute(s)}function r(){this.removeAttributeNS(s.space,s.local)}function o(e){return null==e?n:(e+="",function(){var t,n=this.getAttribute(s);return n!==e&&(t=a(n,e),function(e){this.setAttribute(s,t(e))})})}function i(e){return null==e?r:(e+="",function(){var t,n=this.getAttributeNS(s.space,s.local);return n!==e&&(t=a(n,e),function(e){this.setAttributeNS(s.space,s.local,t(e))})})}if(arguments.length<2){for(t in e)this.attr(t,e[t]);return this}var a="transform"==e?Xr:Er,s=la.ns.qualify(e);return Ji(this,"attr."+e,t,s.local?i:o)},Hu.attrTween=function(e,t){function n(e,n){var r=t.call(this,e,n,this.getAttribute(o));return r&&function(e){this.setAttribute(o,r(e))}}function r(e,n){var r=t.call(this,e,n,this.getAttributeNS(o.space,o.local));return r&&function(e){this.setAttributeNS(o.space,o.local,r(e))}}var o=la.ns.qualify(e);return this.tween("attr."+e,o.local?r:n)},Hu.style=function(e,t,n){function o(){this.style.removeProperty(e)}function i(t){return null==t?o:(t+="",function(){var o,i=r(this).getComputedStyle(this,null).getPropertyValue(e);return i!==t&&(o=Er(i,t),function(t){this.style.setProperty(e,o(t),n)})})}var a=arguments.length;if(a<3){if("string"!=typeof e){a<2&&(t="");for(n in e)this.style(n,e[n],t);return this}n=""}return Ji(this,"style."+e,t,i)},Hu.styleTween=function(e,t,n){function o(o,i){var a=t.call(this,o,i,r(this).getComputedStyle(this,null).getPropertyValue(e));return a&&function(t){this.style.setProperty(e,a(t),n)}}return arguments.length<3&&(n=""),this.tween("style."+e,o)},Hu.text=function(e){return Ji(this,"text",e,ea)},Hu.remove=function(){var e=this.namespace;return this.each("end.transition",function(){var t;this[e].count<2&&(t=this.parentNode)&&t.removeChild(this)})},Hu.ease=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].ease:("function"!=typeof e&&(e=la.ease.apply(la,arguments)),q(this,function(r){r[n][t].ease=e}))},Hu.delay=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].delay:q(this,"function"==typeof e?function(r,o,i){r[n][t].delay=+e.call(r,r.__data__,o,i)}:(e=+e,function(r){r[n][t].delay=e}))},Hu.duration=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].duration:q(this,"function"==typeof e?function(r,o,i){r[n][t].duration=Math.max(1,e.call(r,r.__data__,o,i))}:(e=Math.max(1,e),function(r){r[n][t].duration=e}))},Hu.each=function(e,t){var n=this.id,r=this.namespace;if(arguments.length<2){var o=zu,i=Uu;try{Uu=n,q(this,function(t,o,i){zu=t[r][n],e.call(t,t.__data__,o,i)})}finally{zu=o,Uu=i}}else q(this,function(o){var i=o[r][n];(i.event||(i.event=la.dispatch("start","end","interrupt"))).on(e,t)});return this},Hu.transition=function(){for(var e,t,n,r,o=this.id,i=++Bu,a=this.namespace,s=[],u=0,c=this.length;u<c;u++){s.push(e=[]);for(var t=this[u],l=0,p=t.length;l<p;l++)(n=t[l])&&(r=n[a][o],na(n,l,a,i,{time:r.time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration})),e.push(n)}return $i(s,a,i)},la.svg.axis=function(){function e(e){e.each(function(){var e,c=la.select(this),l=this.__chart__||n,p=this.__chart__=n.copy(),f=null==u?p.ticks?p.ticks.apply(p,s):p.domain():u,d=null==t?p.tickFormat?p.tickFormat.apply(p,s):b:t,h=c.selectAll(".tick").data(f,p),g=h.enter().insert("g",".domain").attr("class","tick").style("opacity",ja),m=la.transition(h.exit()).style("opacity",ja).remove(),y=la.transition(h.order()).style("opacity",1),v=Math.max(o,0)+a,_=Wo(p),E=c.selectAll(".domain").data([0]),x=(E.enter().append("path").attr("class","domain"),la.transition(E));g.append("line"),g.append("text");var C,w,S,O,T=g.select("line"),P=y.select("line"),R=h.select("text").text(d),N=g.select("text"),A=y.select("text"),M="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(e=ra,C="x",S="y",w="x2",O="y2",R.attr("dy",M<0?"0em":".71em").style("text-anchor","middle"),x.attr("d","M"+_[0]+","+M*i+"V0H"+_[1]+"V"+M*i)):(e=oa,C="y",S="x",w="y2",O="x2",R.attr("dy",".32em").style("text-anchor",M<0?"end":"start"),x.attr("d","M"+M*i+","+_[0]+"H0V"+_[1]+"H"+M*i)),T.attr(O,M*o),N.attr(S,M*v),P.attr(w,0).attr(O,M*o),A.attr(C,0).attr(S,M*v),p.rangeBand){var D=p,I=D.rangeBand()/2;l=p=function(e){return D(e)+I}}else l.rangeBand?l=p:m.call(e,p,l);g.call(e,l,p),y.call(e,p,p)})}var t,n=la.scale.linear(),r=qu,o=6,i=6,a=3,s=[10],u=null;return e.scale=function(t){return arguments.length?(n=t,e):n},e.orient=function(t){return arguments.length?(r=t in Zu?t+"":qu,e):r},e.ticks=function(){return arguments.length?(s=fa(arguments),e):s},e.tickValues=function(t){return arguments.length?(u=t,e):u},e.tickFormat=function(n){return arguments.length?(t=n,e):t},e.tickSize=function(t){var n=arguments.length;return n?(o=+t,i=+arguments[n-1],e):o},e.innerTickSize=function(t){return arguments.length?(o=+t,e):o},e.outerTickSize=function(t){return arguments.length?(i=+t,e):i},e.tickPadding=function(t){return arguments.length?(a=+t,e):a},e.tickSubdivide=function(){return arguments.length&&e},e};var qu="bottom",Zu={top:1,right:1,bottom:1,left:1};la.svg.brush=function(){function e(r){r.each(function(){var r=la.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",i).on("touchstart.brush",i),a=r.selectAll(".background").data([0]);a.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),r.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var s=r.selectAll(".resize").data(g,b);s.exit().remove(),s.enter().append("g").attr("class",function(e){return"resize "+e}).style("cursor",function(e){return Wu[e]}).append("rect").attr("x",function(e){return/[ew]#x2F;.test(e)?-3:null}).attr("y",function(e){return/^[ns]/.test(e)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),s.style("display",e.empty()?"none":null);var u,p=la.transition(r),f=la.transition(a);c&&(u=Wo(c),f.attr("x",u[0]).attr("width",u[1]-u[0]),n(p)),l&&(u=Wo(l),f.attr("y",u[0]).attr("height",u[1]-u[0]),o(p)),t(p)})}function t(e){e.selectAll(".resize").attr("transform",function(e){return"translate("+p[+/e#x2F;.test(e)]+","+f[+/^s/.test(e)]+")"})}function n(e){e.select(".extent").attr("x",p[0]),e.selectAll(".extent,.n>rect,.s>rect").attr("width",p[1]-p[0])}function o(e){e.select(".extent").attr("y",f[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",f[1]-f[0])}function i(){function i(){32==la.event.keyCode&&(R||(_=null,A[0]-=p[1],A[1]-=f[1],R=2),O())}function g(){32==la.event.keyCode&&2==R&&(A[0]+=p[1],A[1]+=f[1],R=0,O())}function m(){var e=la.mouse(E),r=!1;b&&(e[0]+=b[0],e[1]+=b[1]),R||(la.event.altKey?(_||(_=[(p[0]+p[1])/2,(f[0]+f[1])/2]),A[0]=p[+(e[0]<_[0])],A[1]=f[+(e[1]<_[1])]):_=null),T&&y(e,c,0)&&(n(w),r=!0),P&&y(e,l,1)&&(o(w),r=!0),r&&(t(w),C({type:"brush",mode:R?"move":"resize"}))}function y(e,t,n){var r,o,i=Wo(t),u=i[0],c=i[1],l=A[n],g=n?f:p,m=g[1]-g[0];if(R&&(u-=l,c-=m+l),r=(n?h:d)?Math.max(u,Math.min(c,e[n])):e[n],R?o=(r+=l)+m:(_&&(l=Math.max(u,Math.min(c,2*_[n]-r))),l<r?(o=r,r=l):o=l),g[0]!=r||g[1]!=o)return n?s=null:a=null,g[0]=r,g[1]=o,!0}function v(){m(),w.style("pointer-events","all").selectAll(".resize").style("display",e.empty()?"none":null),la.select("body").style("cursor",null),M.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),N(),C({type:"brushend"})}var _,b,E=this,x=la.select(la.event.target),C=u.of(E,arguments),w=la.select(E),S=x.datum(),T=!/^(n|s)#x2F;.test(S)&&c,P=!/^(e|w)#x2F;.test(S)&&l,R=x.classed("extent"),N=Q(E),A=la.mouse(E),M=la.select(r(E)).on("keydown.brush",i).on("keyup.brush",g);if(la.event.changedTouches?M.on("touchmove.brush",m).on("touchend.brush",v):M.on("mousemove.brush",m).on("mouseup.brush",v),w.interrupt().selectAll("*").interrupt(),R)A[0]=p[0]-A[0],A[1]=f[0]-A[1];else if(S){var D=+/w#x2F;.test(S),I=+/^n/.test(S);b=[p[1-D]-A[0],f[1-I]-A[1]],A[0]=p[D],A[1]=f[I]}else la.event.altKey&&(_=A.slice());w.style("pointer-events","none").selectAll(".resize").style("display",null),la.select("body").style("cursor",x.style("cursor")),C({type:"brushstart"}),m()}var a,s,u=P(e,"brushstart","brush","brushend"),c=null,l=null,p=[0,0],f=[0,0],d=!0,h=!0,g=Yu[0];return e.event=function(e){e.each(function(){var e=u.of(this,arguments),t={x:p,y:f,i:a,j:s},n=this.__chart__||t;this.__chart__=t,Uu?la.select(this).transition().each("start.brush",function(){a=n.i,s=n.j,p=n.x,f=n.y,e({type:"brushstart"})}).tween("brush:brush",function(){var n=xr(p,t.x),r=xr(f,t.y);return a=s=null,function(o){p=t.x=n(o),f=t.y=r(o),e({type:"brush",mode:"resize"})}}).each("end.brush",function(){a=t.i,s=t.j,e({type:"brush",mode:"resize"}),e({type:"brushend"})}):(e({type:"brushstart"}),e({type:"brush",mode:"resize"}),e({type:"brushend"}))})},e.x=function(t){return arguments.length?(c=t,g=Yu[!c<<1|!l],e):c},e.y=function(t){return arguments.length?(l=t,g=Yu[!c<<1|!l],e):l},e.clamp=function(t){return arguments.length?(c&&l?(d=!!t[0],h=!!t[1]):c?d=!!t:l&&(h=!!t),e):c&&l?[d,h]:c?d:l?h:null},e.extent=function(t){var n,r,o,i,u;return arguments.length?(c&&(n=t[0],r=t[1],l&&(n=n[0],r=r[0]),a=[n,r],c.invert&&(n=c(n),r=c(r)),r<n&&(u=n,n=r,r=u),n==p[0]&&r==p[1]||(p=[n,r])),l&&(o=t[0],i=t[1],c&&(o=o[1],i=i[1]),s=[o,i],l.invert&&(o=l(o),i=l(i)),i<o&&(u=o,o=i,i=u),o==f[0]&&i==f[1]||(f=[o,i])),e):(c&&(a?(n=a[0],r=a[1]):(n=p[0],r=p[1],c.invert&&(n=c.invert(n),r=c.invert(r)),r<n&&(u=n,n=r,r=u))),l&&(s?(o=s[0],i=s[1]):(o=f[0],i=f[1],l.invert&&(o=l.invert(o),i=l.invert(i)),i<o&&(u=o,o=i,i=u))),c&&l?[[n,o],[r,i]]:c?[n,r]:l&&[o,i])},e.clear=function(){return e.empty()||(p=[0,0],f=[0,0],a=s=null),e},e.empty=function(){return!!c&&p[0]==p[1]||!!l&&f[0]==f[1]},la.rebind(e,u,"on")};var Wu={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Yu=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Xu=hs.format=bs.timeFormat,Ku=Xu.utc,Qu=Ku("%Y-%m-%dT%H:%M:%S.%LZ");Xu.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?ia:Qu,ia.parse=function(e){var t=new Date(e);return isNaN(t)?null:t},ia.toString=Qu.toString,hs.second=Ge(function(e){return new gs(1e3*Math.floor(e/1e3))},function(e,t){e.setTime(e.getTime()+1e3*Math.floor(t))},function(e){return e.getSeconds()}),hs.seconds=hs.second.range,hs.seconds.utc=hs.second.utc.range,hs.minute=Ge(function(e){return new gs(6e4*Math.floor(e/6e4))},function(e,t){e.setTime(e.getTime()+6e4*Math.floor(t))},function(e){return e.getMinutes()}),hs.minutes=hs.minute.range,hs.minutes.utc=hs.minute.utc.range,hs.hour=Ge(function(e){var t=e.getTimezoneOffset()/60;return new gs(36e5*(Math.floor(e/36e5-t)+t))},function(e,t){e.setTime(e.getTime()+36e5*Math.floor(t))},function(e){return e.getHours()}),hs.hours=hs.hour.range,hs.hours.utc=hs.hour.utc.range,hs.month=Ge(function(e){return e=hs.day(e),e.setDate(1),e},function(e,t){e.setMonth(e.getMonth()+t)},function(e){return e.getMonth()}),hs.months=hs.month.range,hs.months.utc=hs.month.utc.range;var $u=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Ju=[[hs.second,1],[hs.second,5],[hs.second,15],[hs.second,30],[hs.minute,1],[hs.minute,5],[hs.minute,15],[hs.minute,30],[hs.hour,1],[hs.hour,3],[hs.hour,6],[hs.hour,12],[hs.day,1],[hs.day,2],[hs.week,1],[hs.month,1],[hs.month,3],[hs.year,1]],ec=Xu.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%a %d",function(e){return e.getDay()&&1!=e.getDate()}],["%b %d",function(e){return 1!=e.getDate()}],["%B",function(e){return e.getMonth()}],["%Y",At]]),tc={range:function(e,t,n){return la.range(Math.ceil(e/n)*n,+t,n).map(sa)},floor:b,ceil:b};Ju.year=hs.year,hs.scale=function(){return aa(la.scale.linear(),Ju,ec)};var nc=Ju.map(function(e){return[e[0].utc,e[1]]}),rc=Ku.multi([[".%L",function(e){return e.getUTCMilliseconds()}],[":%S",function(e){return e.getUTCSeconds()}],["%I:%M",function(e){return e.getUTCMinutes()}],["%I %p",function(e){return e.getUTCHours()}],["%a %d",function(e){return e.getUTCDay()&&1!=e.getUTCDate()}],["%b %d",function(e){return 1!=e.getUTCDate()}],["%B",function(e){return e.getUTCMonth()}],["%Y",At]]);nc.year=hs.year.utc,hs.scale.utc=function(){return aa(la.scale.linear(),nc,rc)},la.text=Re(function(e){return e.responseText}),la.json=function(e,t){return Ne(e,"application/json",ua,t)},la.html=function(e,t){return Ne(e,"text/html",ca,t)},la.xml=Re(function(e){return e.responseXML}),"function"==typeof e&&e.amd?(this.d3=la,e(la)):"object"==typeof n&&n.exports?n.exports=la:this.d3=la}()},{}],274:[function(e,t,n){"use strict";t.exports=e("react/lib/ReactDOM")},{"react/lib/ReactDOM":384}],275:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var s=e("react"),u=r(s),c=e("./GatewayRegistry"),l=r(c),p=function(e){function t(n,r){o(this,t);var a=i(this,e.call(this,n,r));return a.gatewayRegistry=r.gatewayRegistry,a}return a(t,e),t.prototype.componentWillMount=function(){this.renderIntoGatewayNode(this.props)},t.prototype.componentWillReceiveProps=function(e){this.gatewayRegistry.clearChild(this.props.into),this.renderIntoGatewayNode(e)},t.prototype.componentWillUnmount=function(){this.gatewayRegistry.removeChild(this.props.into)},t.prototype.renderIntoGatewayNode=function(e){this.gatewayRegistry.addChild(this.props.into,e.children)},t.prototype.render=function(){return null},t}(u.default.Component);p.contextTypes={gatewayRegistry:u.default.PropTypes.instanceOf(l.default).isRequired},p.propTypes={into:u.default.PropTypes.string.isRequired,children:u.default.PropTypes.oneOfType([u.default.PropTypes.element,u.default.PropTypes.string])},n.default=p},{"./GatewayRegistry":278,react:509}],276:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var u=e("react"),c=r(u),l=e("./GatewayRegistry"),p=r(l),f=e("react-prop-types"),d=function(e){function t(n,r){i(this,t);var o=a(this,e.call(this,n,r));return o.state={child:null},o.gatewayRegistry=r.gatewayRegistry,o}return s(t,e),t.prototype.componentWillMount=function(){this.gatewayRegistry.addContainer(this.props.name,this)},t.prototype.componentWillUnmount=function(){this.gatewayRegistry.removeContainer(this.props.name,this)},t.prototype.render=function(){var e=this.props,t=e.component,n=e.tagName,r=o(e,["component","tagName"]);return delete r.name,c.default.createElement(t||n||"div",r,this.state.child)},t}(c.default.Component);d.contextTypes={gatewayRegistry:c.default.PropTypes.instanceOf(p.default).isRequired},d.propTypes={name:c.default.PropTypes.string.isRequired,tagName:(0,f.deprecated)(c.default.PropTypes.string,'Use "component" instead.'),component:c.default.PropTypes.oneOfType([c.default.PropTypes.string,c.default.PropTypes.func])},n.default=d},{"./GatewayRegistry":278,react:509,"react-prop-types":284}],277:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.__esModule=!0;var s=e("react"),u=r(s),c=e("./GatewayRegistry"),l=r(c),p=function(e){function t(n,r){o(this,t);var a=i(this,e.call(this,n,r));return a.gatewayRegistry=new l.default,a}return a(t,e),t.prototype.getChildContext=function(){return{gatewayRegistry:this.gatewayRegistry}},t.prototype.render=function(){return this.props.children},t}(u.default.Component);p.childContextTypes={gatewayRegistry:u.default.PropTypes.instanceOf(l.default).isRequired},p.propTypes={children:u.default.PropTypes.element},n.default=p},{"./GatewayRegistry":278,react:509}],278:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.__esModule=!0;var o=function(){function e(){r(this,e),this._containers={},this._children={}}return e.prototype._renderContainer=function(e){this._containers[e]&&this._containers[e].setState({child:this._children[e]})},e.prototype.addContainer=function(e,t){this._containers[e]=t,this._renderContainer(e)},e.prototype.removeContainer=function(e){this._containers[e]=null},e.prototype.addChild=function(e,t){this._children[e]&&console.warn("Only a single Gateway can be rendered at a time into a GatewayDest."+('You rendered multiple into "'+e+'"')),this._children[e]=t,this._renderContainer(e)},e.prototype.clearChild=function(e){this._children[e]=null},e.prototype.removeChild=function(e){this.clearChild(e),this._renderContainer(e)},e}();n.default=o},{}],279:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}n.__esModule=!0,n.GatewayProvider=n.GatewayDest=n.Gateway=void 0;var o=e("./Gateway"),i=r(o),a=e("./GatewayDest"),s=r(a),u=e("./GatewayProvider"),c=r(u);n.Gateway=i.default,n.GatewayDest=s.default,n.GatewayProvider=c.default},{"./Gateway":275,"./GatewayDest":276,"./GatewayProvider":277
20
- }],280:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){function e(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=null;return n.forEach(function(e){if(null==o){var n=e.apply(void 0,t);null!=n&&(o=n)}}),o}for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return(0,a.default)(e)}n.__esModule=!0,n.default=o;var i=e("./utils/createChainableTypeChecker"),a=r(i)},{"./utils/createChainableTypeChecker":286}],281:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r,o){var a=e[t],u="undefined"==typeof a?"undefined":i(a);return s.default.isValidElement(a)?new Error("Invalid "+r+" `"+o+"` of type ReactElement "+("supplied to `"+n+"`, expected a ReactComponent or a ")+"DOMElement. You can usually obtain a ReactComponent or DOMElement from a ReactElement by attaching a ref to it."):"object"===u&&"function"==typeof a.render||1===a.nodeType?null:new Error("Invalid "+r+" `"+o+"` of value `"+a+"` "+("supplied to `"+n+"`, expected a ReactComponent or a ")+"DOMElement.")}n.__esModule=!0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},a=e("react"),s=r(a),u=e("./utils/createChainableTypeChecker"),c=r(u);n.default=(0,c.default)(o)},{"./utils/createChainableTypeChecker":286,react:509}],282:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){return function(n,r,o,i,a){var c=o||"<<anonymous>>",l=a||r;if(null!=n[r]){var p=o+"."+r;(0,s.default)(u[p],"The "+i+" `"+l+"` of "+("`"+c+"` is deprecated. "+t+".")),u[p]=!0}for(var f=arguments.length,d=Array(f>5?f-5:0),h=5;h<f;h++)d[h-5]=arguments[h];return e.apply(void 0,[n,r,o,i,a].concat(d))}}function i(){u={}}n.__esModule=!0,n.default=o;var a=e("warning"),s=r(a),u={};o._resetWarned=i},{warning:287}],283:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r,o){var a=e[t],u="undefined"==typeof a?"undefined":i(a);return s.default.isValidElement(a)?new Error("Invalid "+r+" `"+o+"` of type ReactElement "+("supplied to `"+n+"`, expected an element type (a string ")+"or a ReactClass)."):"function"!==u&&"string"!==u?new Error("Invalid "+r+" `"+o+"` of value `"+a+"` "+("supplied to `"+n+"`, expected an element type (a string ")+"or a ReactClass)."):null}n.__esModule=!0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},a=e("react"),s=r(a),u=e("./utils/createChainableTypeChecker"),c=r(u);n.default=(0,c.default)(o)},{"./utils/createChainableTypeChecker":286,react:509}],284:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}n.__esModule=!0,n.isRequiredForA11y=n.elementType=n.deprecated=n.componentOrElement=n.all=void 0;var o=e("./all"),i=r(o),a=e("./componentOrElement"),s=r(a),u=e("./deprecated"),c=r(u),l=e("./elementType"),p=r(l),f=e("./isRequiredForA11y"),d=r(f);n.all=i.default,n.componentOrElement=s.default,n.deprecated=c.default,n.elementType=p.default,n.isRequiredForA11y=d.default},{"./all":280,"./componentOrElement":281,"./deprecated":282,"./elementType":283,"./isRequiredForA11y":285}],285:[function(e,t,n){"use strict";function r(e){return function(t,n,r,o,i){var a=r||"<<anonymous>>",s=i||n;if(null==t[n])return new Error("The "+o+" `"+s+"` is required to make "+("`"+a+"` accessible for users of assistive ")+"technologies such as screen readers.");for(var u=arguments.length,c=Array(u>5?u-5:0),l=5;l<u;l++)c[l-5]=arguments[l];return e.apply(void 0,[t,n,r,o,i].concat(c))}}n.__esModule=!0,n.default=r},{}],286:[function(e,t,n){"use strict";function r(e){function t(t,n,r,o,i,a){var s=o||"<<anonymous>>",u=a||r;if(null==n[r])return t?new Error("Required "+i+" `"+u+"` was not specified "+("in `"+s+"`.")):null;for(var c=arguments.length,l=Array(c>6?c-6:0),p=6;p<c;p++)l[p-6]=arguments[p];return e.apply(void 0,[n,r,s,i,u].concat(l))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}n.__esModule=!0,n.default=r},{}],287:[function(e,t,n){(function(e){"use strict";var n=function(){};"production"!==e.env.NODE_ENV&&(n=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var o=2;o<r;o++)n[o-2]=arguments[o];if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(t.length<10||/^[s\W]*#x2F;.test(t))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+t);if(!e){var i=0,a="Warning: "+t.replace(/%s/g,function(){return n[i++]});"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}catch(e){}}}),t.exports=n}).call(this,e("_process"))},{_process:2}],288:[function(e,t,n){(function(t,r){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e.default:e}function i(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=Array.isArray(e)?e:[e];t.forEach(function(e){e&&e.locale&&(A.__addLocaleData(e),M.__addLocaleData(e))})}function a(e){for(var t=(e||"").split("-");t.length>0;){if(s(t.join("-")))return!0;t.pop()}return!1}function s(e){var t=e&&e.toLowerCase();return!(!A.__localeData__[t]||!M.__localeData__[t])}function u(e){return(""+e).replace(Ne,function(e){return Re[e]})}function c(e,t){var n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];return t.reduce(function(t,r){return e.hasOwnProperty(r)?t[r]=e[r]:n.hasOwnProperty(r)&&(t[r]=n[r]),t},{})}function l(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=e.intl;L(t,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}function p(e,t){if(e===t)return!0;if("object"!==("undefined"==typeof e?"undefined":fe.typeof(e))||null===e||"object"!==("undefined"==typeof t?"undefined":fe.typeof(t))||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(t),i=0;i<n.length;i++)if(!o(n[i])||e[n[i]]!==t[n[i]])return!1;return!0}function f(e,t,n){var r=e.props,o=e.state,i=e.context,a=void 0===i?{}:i,s=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],u=a.intl,l=void 0===u?{}:u,f=s.intl,d=void 0===f?{}:f;return!p(t,r)||!p(n,o)||!(d===l||p(c(d,Pe),c(l,Pe)))}function d(e){return e.displayName||e.name||"Component"}function h(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=t.intlPropName,r=void 0===n?"intl":n,o=t.withRef,i=void 0!==o&&o,a=function(t){function n(e,t){z(this,n);var r=te(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));return l(t),r}return Y(n,t),G(n,[{key:"getWrappedInstance",value:function(){return L(i,"[React Intl] To access the wrapped instance, the `{withRef: true}` option must be set when calling: `injectIntl()`"),this.refs.wrappedInstance}},{key:"render",value:function(){return I.createElement(e,fe.extends({},this.props,q({},r,this.context.intl),{ref:i?"wrappedInstance":null}))}}]),n}(D.Component);return a.displayName="InjectIntl("+d(e)+")",a.contextTypes={intl:xe},a.WrappedComponent=e,a}function g(e){return e}function m(e){return A.prototype._resolveLocale(e)}function y(e){return A.prototype._findPluralRuleFunction(e)}function v(e){var t=M.thresholds;t.second=e.second,t.minute=e.minute,t.hour=e.hour,t.day=e.day,t.month=e.month}function _(e,n,r){var o=e&&e[n]&&e[n][r];return o?o:void("production"!==t.env.NODE_ENV&&console.error("[React Intl] No "+n+" format named: "+r))}function b(e,n,r){var o=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],i=e.locale,a=e.formats,s=o.format,u=new Date(r),l=s&&_(a,"date",s),p=c(o,Me,l);try{return n.getDateTimeFormat(i,p).format(u)}catch(e){"production"!==t.env.NODE_ENV&&console.error("[React Intl] Error formatting date.\n"+e)}return String(u)}function E(e,n,r){var o=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],i=e.locale,a=e.formats,s=o.format,u=new Date(r),l=s&&_(a,"time",s),p=c(o,Me,l);p.hour||p.minute||p.second||(p=fe.extends({},p,{hour:"numeric",minute:"numeric"}));try{return n.getDateTimeFormat(i,p).format(u)}catch(e){"production"!==t.env.NODE_ENV&&console.error("[React Intl] Error formatting time.\n"+e)}return String(u)}function x(e,n,r){var o=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],i=e.locale,a=e.formats,s=o.format,u=new Date(r),l=new Date(o.now),p=s&&_(a,"relative",s),f=c(o,Ie,p),d=fe.extends({},M.thresholds);v(ke);try{return n.getRelativeFormat(i,f).format(u,{now:isFinite(l)?l:n.now()})}catch(e){"production"!==t.env.NODE_ENV&&console.error("[React Intl] Error formatting relative time.\n"+e)}finally{v(d)}return String(u)}function C(e,n,r){var o=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],i=e.locale,a=e.formats,s=o.format,u=s&&_(a,"number",s),l=c(o,De,u);try{return n.getNumberFormat(i,l).format(r)}catch(e){"production"!==t.env.NODE_ENV&&console.error("[React Intl] Error formatting number.\n"+e)}return String(r)}function w(e,n,r){var o=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],i=e.locale,a=c(o,Le);try{return n.getPluralFormat(i,a).format(r)}catch(e){"production"!==t.env.NODE_ENV&&console.error("[React Intl] Error formatting plural.\n"+e)}return"other"}function S(e,n){var r=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],o=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],i=e.locale,a=e.formats,s=e.messages,u=e.defaultLocale,c=e.defaultFormats,l=r.id,p=r.defaultMessage;L(l,"[React Intl] An `id` must be provided to format a message.");var f=s&&s[l],d=Object.keys(o).length>0;if(!d&&"production"===t.env.NODE_ENV)return f||p||l;var h=void 0;if(f)try{var g=n.getMessageFormat(f,i,a);h=g.format(o)}catch(e){"production"!==t.env.NODE_ENV&&console.error('[React Intl] Error formatting message: "'+l+'" for locale: "'+i+'"'+(p?", using default message as fallback.":"")+("\n"+e))}else"production"!==t.env.NODE_ENV&&(!p||i&&i.toLowerCase()!==u.toLowerCase())&&console.error('[React Intl] Missing message: "'+l+'" for locale: "'+i+'"'+(p?", using default message as fallback.":""));if(!h&&p)try{var m=n.getMessageFormat(p,u,c);h=m.format(o)}catch(e){"production"!==t.env.NODE_ENV&&console.error('[React Intl] Error formatting the default message for: "'+l+'"\n'+e)}return h||"production"!==t.env.NODE_ENV&&console.error('[React Intl] Cannot format message: "'+l+'", '+("using message "+(f||p?"source":"id")+" as fallback.")),h||f||p||l}function O(e,t,n){var r=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],o=Object.keys(r).reduce(function(e,t){var n=r[t];return e[t]="string"==typeof n?u(n):n,e},{});return S(e,t,n,o)}function T(e){var t=Math.abs(e);return t<qe?"second":t<Ze?"minute":t<We?"hour":"day"}function P(e){switch(e){case"second":return Be;case"minute":return qe;case"hour":return Ze;case"day":return We;default:return Ye}}function R(e,t){if(e===t)return!0;var n=new Date(e).getTime(),r=new Date(t).getTime();return isFinite(n)&&isFinite(r)&&n===r}Object.defineProperty(n,"__esModule",{value:!0});var N=o(e("../locale-data/index.js")),A=o(e("intl-messageformat")),M=o(e("intl-relativeformat")),D=e("react"),I=o(D),L=o(e("invariant")),k=o(e("intl-format-cache")),j={locale:"en",pluralRuleFunction:function(e,t){var n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"few":"other":1==e&&r?"one":"other"},fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},minute:{displayName:"minute",relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}}}},F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},V=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+3];n.children=u}return{$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),U=function(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),s=a.value}catch(e){return void n(e)}return a.done?void e(s):Promise.resolve(s).then(function(e){return r("next",e)},function(e){return r("throw",e)})}return r("next")})}},z=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},G=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),H=function(e,t){for(var n in t){var r=t[n];r.configurable=r.enumerable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,n,r)}return e},B=function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}return e},q=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},Y=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},X=function(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?t[Symbol.hasInstance](e):e instanceof t},K=function(e){return e&&e.__esModule?e:{default:e}},Q=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},$=function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")},J=function(e){if(null==e)throw new TypeError("Cannot destructure undefined")},ee=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},te=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},ne="undefined"==typeof r?self:r,re=function e(t,n,r,o){var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);null!==a&&e(a,n,r,o)}else if("value"in i&&i.writable)i.value=r;else{var s=i.set;void 0!==s&&s.call(o,r)}return r},oe=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ie=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){for(var n,r=[],o=e[Symbol.iterator]();!(n=o.next()).done&&(r.push(n.value),!t||r.length!==t););return r}throw new TypeError("Invalid attempt to destructure non-iterable instance")},ae=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},se=function(e,t){return e.raw=t,e},ue=function(e,t,n){if(e===n)throw new ReferenceError(t+" is not defined - temporal dead zone");return e},ce={},le=function(e){return Array.isArray(e)?e:Array.from(e)},pe=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},fe=Object.freeze({jsx:V,asyncToGenerator:U,classCallCheck:z,createClass:G,defineEnumerableProperties:H,defaults:B,defineProperty:q,get:W,inherits:Y,interopRequireDefault:K,interopRequireWildcard:Q,newArrowCheck:$,objectDestructuringEmpty:J,objectWithoutProperties:ee,possibleConstructorReturn:te,selfGlobal:ne,set:re,slicedToArray:oe,slicedToArrayLoose:ie,taggedTemplateLiteral:ae,taggedTemplateLiteralLoose:se,temporalRef:ue,temporalUndefined:ce,toArray:le,toConsumableArray:pe,typeof:F,extends:Z,instanceof:X}),de=D.PropTypes.bool,he=D.PropTypes.number,ge=D.PropTypes.string,me=D.PropTypes.func,ye=D.PropTypes.object,ve=D.PropTypes.oneOf,_e=D.PropTypes.shape,be={locale:ge,formats:ye,messages:ye,defaultLocale:ge,defaultFormats:ye},Ee={formatDate:me.isRequired,formatTime:me.isRequired,formatRelative:me.isRequired,formatNumber:me.isRequired,formatPlural:me.isRequired,formatMessage:me.isRequired,formatHTMLMessage:me.isRequired},xe=_e(fe.extends({},be,Ee,{formatters:ye,now:me.isRequired})),Ce={id:ge.isRequired,description:ge,defaultMessage:ge},we={localeMatcher:ve(["best fit","lookup"]),formatMatcher:ve(["basic","best fit"]),timeZone:ge,hour12:de,weekday:ve(["narrow","short","long"]),era:ve(["narrow","short","long"]),year:ve(["numeric","2-digit"]),month:ve(["numeric","2-digit","narrow","short","long"]),day:ve(["numeric","2-digit"]),hour:ve(["numeric","2-digit"]),minute:ve(["numeric","2-digit"]),second:ve(["numeric","2-digit"]),timeZoneName:ve(["short","long"])},Se={localeMatcher:ve(["best fit","lookup"]),style:ve(["decimal","currency","percent"]),currency:ge,currencyDisplay:ve(["symbol","code","name"]),useGrouping:de,minimumIntegerDigits:he,minimumFractionDigits:he,maximumFractionDigits:he,minimumSignificantDigits:he,maximumSignificantDigits:he},Oe={style:ve(["best fit","numeric"]),units:ve(["second","minute","hour","day","month","year"])},Te={style:ve(["cardinal","ordinal"])},Pe=Object.keys(be),Re={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},Ne=/[&><"']/g,Ae=function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];z(this,e);var r="ordinal"===n.style,o=y(m(t));this.format=function(e){return o(e,r)}},Me=Object.keys(we),De=Object.keys(Se),Ie=Object.keys(Oe),Le=Object.keys(Te),ke={second:60,minute:60,hour:24,day:30,month:12},je=Object.freeze({formatDate:b,formatTime:E,formatRelative:x,formatNumber:C,formatPlural:w,formatMessage:S,formatHTMLMessage:O}),Fe=Object.keys(be),Ve=Object.keys(Ee),Ue={formats:{},messages:{},defaultLocale:"en",defaultFormats:{}},ze=function(e){function n(e,t){z(this,n);var r=te(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));L("undefined"!=typeof Intl,"[React Intl] The `Intl` APIs must be available in the runtime, and do not appear to be built-in. An `Intl` polyfill should be loaded.\nSee: http://formatjs.io/guides/runtime-environments/");var o=t.intl,i=void 0;i=isFinite(e.initialNow)?Number(e.initialNow):o?o.now():Date.now();var a=o||{},s=a.formatters,u=void 0===s?{getDateTimeFormat:k(Intl.DateTimeFormat),getNumberFormat:k(Intl.NumberFormat),getMessageFormat:k(A),getRelativeFormat:k(M),getPluralFormat:k(Ae)}:s;return r.state=fe.extends({},u,{now:function(){return r._didDisplay?Date.now():i}}),r}return Y(n,e),G(n,[{key:"getConfig",value:function(){var e=this.context.intl,n=c(this.props,Fe,e);for(var r in Ue)void 0===n[r]&&(n[r]=Ue[r]);if(!a(n.locale)){var o=n,i=o.locale,s=o.defaultLocale,u=o.defaultFormats;"production"!==t.env.NODE_ENV&&console.error('[React Intl] Missing locale data for locale: "'+i+'". '+('Using default locale: "'+s+'" as fallback.')),n=fe.extends({},n,{locale:s,formats:u,messages:Ue.messages})}return n}},{key:"getBoundFormatFns",value:function(e,t){return Ve.reduce(function(n,r){return n[r]=je[r].bind(null,e,t),n},{})}},{key:"getChildContext",value:function(){var e=this.getConfig(),t=this.getBoundFormatFns(e,this.state),n=this.state,r=n.now,o=ee(n,["now"]);return{intl:fe.extends({},e,t,{formatters:o,now:r})}}},{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.apply(void 0,[this].concat(t))}},{key:"componentDidMount",value:function(){this._didDisplay=!0}},{key:"render",value:function(){return D.Children.only(this.props.children)}}]),n}(D.Component);ze.displayName="IntlProvider",ze.contextTypes={intl:xe},ze.childContextTypes={intl:xe.isRequired},ze.propTypes=fe.extends({},be,{children:D.PropTypes.element.isRequired,initialNow:D.PropTypes.any});var Ge=function(e){function t(e,n){z(this,t);var r=te(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return l(n),r}return Y(t,e),G(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl.formatDate,t=this.props,n=t.value,r=t.children,o=e(n,this.props);return"function"==typeof r?r(o):I.createElement("span",null,o)}}]),t}(D.Component);Ge.displayName="FormattedDate",Ge.contextTypes={intl:xe},Ge.propTypes=fe.extends({},we,{value:D.PropTypes.any.isRequired,format:D.PropTypes.string,children:D.PropTypes.func});var He=function(e){function t(e,n){z(this,t);var r=te(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return l(n),r}return Y(t,e),G(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl.formatTime,t=this.props,n=t.value,r=t.children,o=e(n,this.props);return"function"==typeof r?r(o):I.createElement("span",null,o)}}]),t}(D.Component);He.displayName="FormattedTime",He.contextTypes={intl:xe},He.propTypes=fe.extends({},we,{value:D.PropTypes.any.isRequired,format:D.PropTypes.string,children:D.PropTypes.func});var Be=1e3,qe=6e4,Ze=36e5,We=864e5,Ye=2147483647,Xe=function(e){function t(e,n){z(this,t);var r=te(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));l(n);var o=isFinite(e.initialNow)?Number(e.initialNow):n.intl.now();return r.state={now:o},r}return Y(t,e),G(t,[{key:"scheduleNextUpdate",value:function(e,t){var n=this,r=e.updateInterval;if(r){var o=new Date(e.value).getTime(),i=o-t.now,a=e.units||T(i),s=P(a),u=Math.abs(i%s),c=i<0?Math.max(r,s-u):Math.max(r,u);clearTimeout(this._timer),this._timer=setTimeout(function(){n.setState({now:n.context.intl.now()})},c)}}},{key:"componentDidMount",value:function(){this.scheduleNextUpdate(this.props,this.state)}},{key:"componentWillReceiveProps",value:function(e){var t=e.value;R(t,this.props.value)||this.setState({now:this.context.intl.now()})}},{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.apply(void 0,[this].concat(t))}},{key:"componentWillUpdate",value:function(e,t){this.scheduleNextUpdate(e,t)}},{key:"componentWillUnmount",value:function(){clearTimeout(this._timer)}},{key:"render",value:function(){var e=this.context.intl.formatRelative,t=this.props,n=t.value,r=t.children,o=e(n,fe.extends({},this.props,this.state));return"function"==typeof r?r(o):I.createElement("span",null,o)}}]),t}(D.Component);Xe.displayName="FormattedRelative",Xe.contextTypes={intl:xe},Xe.propTypes=fe.extends({},Oe,{value:D.PropTypes.any.isRequired,format:D.PropTypes.string,updateInterval:D.PropTypes.number,initialNow:D.PropTypes.any,children:D.PropTypes.func}),Xe.defaultProps={updateInterval:1e4};var Ke=function(e){function t(e,n){z(this,t);var r=te(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return l(n),r}return Y(t,e),G(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl.formatNumber,t=this.props,n=t.value,r=t.children,o=e(n,this.props);return"function"==typeof r?r(o):I.createElement("span",null,o)}}]),t}(D.Component);Ke.displayName="FormattedNumber",Ke.contextTypes={intl:xe},Ke.propTypes=fe.extends({},Se,{value:D.PropTypes.any.isRequired,format:D.PropTypes.string,children:D.PropTypes.func});var Qe=function(e){function t(e,n){z(this,t);var r=te(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return l(n),r}return Y(t,e),G(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl.formatPlural,t=this.props,n=t.value,r=t.other,o=t.children,i=e(n,this.props),a=this.props[i]||r;return"function"==typeof o?o(a):I.createElement("span",null,a)}}]),t}(D.Component);Qe.displayName="FormattedPlural",Qe.contextTypes={intl:xe},Qe.propTypes=fe.extends({},Te,{value:D.PropTypes.any.isRequired,other:D.PropTypes.node.isRequired,zero:D.PropTypes.node,one:D.PropTypes.node,two:D.PropTypes.node,few:D.PropTypes.node,many:D.PropTypes.node,children:D.PropTypes.func}),Qe.defaultProps={style:"cardinal"};var $e=function(e){function t(e,n){z(this,t);var r=te(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return l(n),r}return Y(t,e),G(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props.values,n=e.values;if(!p(n,t))return!0;for(var r=fe.extends({},e,{values:t}),o=arguments.length,i=Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return f.apply(void 0,[this,r].concat(i))}},{key:"render",value:function(){var e=this.context.intl.formatMessage,t=this.props,n=t.id,r=t.description,o=t.defaultMessage,i=t.values,a=t.tagName,s=t.children,u=void 0,c=void 0,l=void 0,p=i&&Object.keys(i).length>0;p&&!function(){var e=Math.floor(1099511627776*Math.random()).toString(16),t=function(){var t=0;return function(){return"ELEMENT-"+e+"-"+(t+=1)}}();u="@__"+e+"__@",c={},l={},Object.keys(i).forEach(function(e){var n=i[e];if(D.isValidElement(n)){var r=t();c[e]=u+r+u,l[r]=n}else c[e]=n})}();var f={id:n,description:r,defaultMessage:o},d=e(f,c||i),h=void 0,g=l&&Object.keys(l).length>0;return h=g?d.split(u).filter(function(e){return!!e}).map(function(e){return l[e]||e}):[d],"function"==typeof s?s.apply(void 0,pe(h)):D.createElement.apply(void 0,[a,null].concat(pe(h)))}}]),t}(D.Component);$e.displayName="FormattedMessage",$e.contextTypes={intl:xe},$e.propTypes=fe.extends({},Ce,{values:D.PropTypes.object,tagName:D.PropTypes.string,children:D.PropTypes.func}),$e.defaultProps={values:{},tagName:"span"};var Je=function(e){function t(e,n){z(this,t);var r=te(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return l(n),r}return Y(t,e),G(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props.values,n=e.values;if(!p(n,t))return!0;for(var r=fe.extends({},e,{values:t}),o=arguments.length,i=Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return f.apply(void 0,[this,r].concat(i))}},{key:"render",value:function(){var e=this.context.intl.formatHTMLMessage,t=this.props,n=t.id,r=t.description,o=t.defaultMessage,i=t.values,a=t.tagName,s=t.children,u={id:n,description:r,defaultMessage:o},c=e(u,i);return"function"==typeof s?s(c):D.createElement(a,{dangerouslySetInnerHTML:{__html:c}})}}]),t}(D.Component);Je.displayName="FormattedHTMLMessage",Je.contextTypes={intl:xe},Je.propTypes=fe.extends({},Ce,{values:D.PropTypes.object,tagName:D.PropTypes.string,children:D.PropTypes.func}),Je.defaultProps={values:{},tagName:"span"},i(j),i(N),n.addLocaleData=i,n.intlShape=xe,n.injectIntl=h,n.defineMessages=g,n.IntlProvider=ze,n.FormattedDate=Ge,n.FormattedTime=He,n.FormattedRelative=Xe,n.FormattedNumber=Ke,n.FormattedPlural=Qe,n.FormattedMessage=$e,n.FormattedHTMLMessage=Je}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../locale-data/index.js":1,_process:2,"intl-format-cache":289,"intl-messageformat":292,"intl-relativeformat":301,invariant:307,react:509}],289:[function(e,t,n){"use strict";n=t.exports=e("./lib/memoizer").default,n.default=n},{"./lib/memoizer":291}],290:[function(e,t,n){"use strict";var r=Function.prototype.bind||function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,r=function(){},o=function(){return n.apply(this instanceof r?this:e,t.concat(Array.prototype.slice.call(arguments)))};return this.prototype&&(r.prototype=this.prototype),o.prototype=new r,o},o=Object.prototype.hasOwnProperty,i=function(){try{return!!Object.defineProperty({},"a",{})}catch(e){return!1}}(),a=(!i&&!Object.prototype.__defineGetter__,i?Object.defineProperty:function(e,t,n){"get"in n&&e.__defineGetter__?e.__defineGetter__(t,n.get):(!o.call(e,t)||"value"in n)&&(e[t]=n.value)}),s=Object.create||function(e,t){function n(){}var r,i;n.prototype=e,r=new n;for(i in t)o.call(t,i)&&a(r,i,t[i]);return r};n.bind=r,n.defineProperty=a,n.objCreate=s},{}],291:[function(e,t,n){"use strict";function r(e){var t=a.objCreate(null);return function(){var n=Array.prototype.slice.call(arguments),r=o(n),i=r&&t[r];return i||(i=new(a.bind.apply(e,[null].concat(n))),r&&(t[r]=i)),i}}function o(e){if("undefined"!=typeof JSON){var t,n,r,o=[];for(t=0,n=e.length;t<n;t+=1)r=e[t],r&&"object"==typeof r?o.push(i(r)):o.push(r);return JSON.stringify(o)}}function i(e){var t,n,r,o,i=[],a=[];for(t in e)e.hasOwnProperty(t)&&a.push(t);var s=a.sort();for(n=0,r=s.length;n<r;n+=1)t=s[n],o={},o[t]=e[t],i[n]=o;return i}var a=e("./es5");n.default=r},{"./es5":290}],292:[function(e,t,n){"use strict";var r=e("./lib/main").default;e("./lib/locales"),n=t.exports=r,n.default=n},{"./lib/locales":1,"./lib/main":297}],293:[function(e,t,n){"use strict";function r(e,t,n){this.locales=e,this.formats=t,this.pluralFn=n}function o(e){this.id=e}function i(e,t,n,r,o){this.id=e,this.useOrdinal=t,this.offset=n,this.options=r,this.pluralFn=o}function a(e,t,n,r){this.id=e,this.offset=t,this.numberFormat=n,this.string=r}function s(e,t){this.id=e,this.options=t}n.default=r,r.prototype.compile=function(e){return this.pluralStack=[],this.currentPlural=null,this.pluralNumberFormat=null,this.compileMessage(e)},r.prototype.compileMessage=function(e){if(!e||"messageFormatPattern"!==e.type)throw new Error('Message AST is not of type: "messageFormatPattern"');var t,n,r,o=e.elements,i=[];for(t=0,n=o.length;t<n;t+=1)switch(r=o[t],r.type){case"messageTextElement":i.push(this.compileMessageText(r));break;case"argumentElement":i.push(this.compileArgument(r));break;default:throw new Error("Message element does not have a valid type")}return i},r.prototype.compileMessageText=function(e){return this.currentPlural&&/(^|[^\\])#/g.test(e.value)?(this.pluralNumberFormat||(this.pluralNumberFormat=new Intl.NumberFormat(this.locales)),new a(this.currentPlural.id,this.currentPlural.format.offset,this.pluralNumberFormat,e.value)):e.value.replace(/\\#/g,"#");
21
- },r.prototype.compileArgument=function(e){var t=e.format;if(!t)return new o(e.id);var n,r=this.formats,a=this.locales,u=this.pluralFn;switch(t.type){case"numberFormat":return n=r.number[t.style],{id:e.id,format:new Intl.NumberFormat(a,n).format};case"dateFormat":return n=r.date[t.style],{id:e.id,format:new Intl.DateTimeFormat(a,n).format};case"timeFormat":return n=r.time[t.style],{id:e.id,format:new Intl.DateTimeFormat(a,n).format};case"pluralFormat":return n=this.compileOptions(e),new i(e.id,t.ordinal,t.offset,n,u);case"selectFormat":return n=this.compileOptions(e),new s(e.id,n);default:throw new Error("Message element does not have a valid format type")}},r.prototype.compileOptions=function(e){var t=e.format,n=t.options,r={};this.pluralStack.push(this.currentPlural),this.currentPlural="pluralFormat"===t.type?e:null;var o,i,a;for(o=0,i=n.length;o<i;o+=1)a=n[o],r[a.selector]=this.compileMessage(a.value);return this.currentPlural=this.pluralStack.pop(),r},o.prototype.format=function(e){return e?"string"==typeof e?e:String(e):""},i.prototype.getOption=function(e){var t=this.options,n=t["="+e]||t[this.pluralFn(e-this.offset,this.useOrdinal)];return n||t.other},a.prototype.format=function(e){var t=this.numberFormat.format(e-this.offset);return this.string.replace(/(^|[^\\])#/g,"$1"+t).replace(/\\#/g,"#")},s.prototype.getOption=function(e){var t=this.options;return t[e]||t.other}},{}],294:[function(e,t,n){"use strict";function r(e,t,n){var o="string"==typeof e?r.__parse(e):e;if(!o||"messageFormatPattern"!==o.type)throw new TypeError("A message must be provided as a String or AST.");n=this._mergeFormats(r.formats,n),i.defineProperty(this,"_locale",{value:this._resolveLocale(t)});var a=this._findPluralRuleFunction(this._locale),s=this._compilePattern(o,t,n,a),u=this;this.format=function(e){return u._format(s,e)}}var o=e("./utils"),i=e("./es5"),a=e("./compiler"),s=e("intl-messagefo