rearview 1.0.0.rc1-jruby → 1.0.0.rc2-jruby

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1814) hide show
  1. checksums.yaml +4 -4
  2. data/bin/rails +8 -0
  3. data/lib/rearview/version.rb +1 -1
  4. data/public/favicon.ico +0 -0
  5. data/public/help/alert.html +20 -0
  6. data/public/help/quick.html +34 -0
  7. data/public/monitors/index.json +3 -0
  8. data/public/monitors/outage.rb +2 -0
  9. data/public/rearview-src/css/rearview.css +1 -0
  10. data/public/rearview-src/fonts/ProximaNovaSoft-Bold/ProximaNovaSoft-Bold-webfont.eot +0 -0
  11. data/public/rearview-src/fonts/ProximaNovaSoft-Bold/ProximaNovaSoft-Bold-webfont.svg +249 -0
  12. data/public/rearview-src/fonts/ProximaNovaSoft-Bold/ProximaNovaSoft-Bold-webfont.ttf +0 -0
  13. data/public/rearview-src/fonts/ProximaNovaSoft-Bold/ProximaNovaSoft-Bold-webfont.woff +0 -0
  14. data/public/rearview-src/fonts/ProximaNovaSoft-Bold/ProximaNovaSoft-Bold.otf +0 -0
  15. data/public/rearview-src/fonts/ProximaNovaSoft-Regular/ProximaNovaSoft-Regular-webfont.eot +0 -0
  16. data/public/rearview-src/fonts/ProximaNovaSoft-Regular/ProximaNovaSoft-Regular-webfont.svg +250 -0
  17. data/public/rearview-src/fonts/ProximaNovaSoft-Regular/ProximaNovaSoft-Regular-webfont.ttf +0 -0
  18. data/public/rearview-src/fonts/ProximaNovaSoft-Regular/ProximaNovaSoft-Regular-webfont.woff +0 -0
  19. data/public/rearview-src/fonts/ProximaNovaSoft-Regular/ProximaNovaSoft-Regular.otf +0 -0
  20. data/public/rearview-src/img/livingsocial-logo-white.svg +107 -0
  21. data/public/rearview-src/img/login/company-logo.svg +107 -0
  22. data/public/rearview-src/img/noise-light.png +0 -0
  23. data/public/rearview-src/img/noise.png +0 -0
  24. data/public/rearview-src/img/rearview.svg +19 -0
  25. data/public/rearview-src/img/rearviewlogo.png +0 -0
  26. data/public/rearview-src/img/rearviewlogo_small.png +0 -0
  27. data/public/rearview-src/img/sample-monitor.png +0 -0
  28. data/public/rearview-src/js/app.build.js +15 -0
  29. data/public/rearview-src/js/app.js +295 -0
  30. data/public/rearview-src/js/collection/dashboard.js +41 -0
  31. data/public/rearview-src/js/collection/monitor.js +53 -0
  32. data/public/rearview-src/js/main.js +89 -0
  33. data/public/rearview-src/js/model/base.js +34 -0
  34. data/public/rearview-src/js/model/dashboard.js +47 -0
  35. data/public/rearview-src/js/model/monitor.js +67 -0
  36. data/public/rearview-src/js/model/user.js +81 -0
  37. data/public/rearview-src/js/route/index.js +47 -0
  38. data/public/rearview-src/js/util/highcharts-gray-theme.js +266 -0
  39. data/public/rearview-src/js/util/templar.js +178 -0
  40. data/public/rearview-src/js/view/addcategory.js +250 -0
  41. data/public/rearview-src/js/view/adddashboard.js +166 -0
  42. data/public/rearview-src/js/view/addmonitor.js +679 -0
  43. data/public/rearview-src/js/view/alert.js +47 -0
  44. data/public/rearview-src/js/view/alerttimeline.js +340 -0
  45. data/public/rearview-src/js/view/base.js +535 -0
  46. data/public/rearview-src/js/view/dashboard.js +493 -0
  47. data/public/rearview-src/js/view/dashboardtile.js +146 -0
  48. data/public/rearview-src/js/view/deletemonitor.js +68 -0
  49. data/public/rearview-src/js/view/ecosystem.js +90 -0
  50. data/public/rearview-src/js/view/expandedmonitor.js +706 -0
  51. data/public/rearview-src/js/view/header.js +43 -0
  52. data/public/rearview-src/js/view/primarynav.js +63 -0
  53. data/public/rearview-src/js/view/resetmonitor.js +101 -0
  54. data/public/rearview-src/js/view/secondarynav.js +45 -0
  55. data/public/rearview-src/js/view/smallmonitor.js +416 -0
  56. data/public/rearview-src/less/alert.less +45 -0
  57. data/public/rearview-src/less/dashboard.less +173 -0
  58. data/public/rearview-src/less/ecosystem.less +221 -0
  59. data/public/rearview-src/less/elements.less +168 -0
  60. data/public/rearview-src/less/expandedmonitor.less +283 -0
  61. data/public/rearview-src/less/header.less +76 -0
  62. data/public/rearview-src/less/login.less +1050 -0
  63. data/public/rearview-src/less/primarynav.less +151 -0
  64. data/public/rearview-src/less/rearview.less +1207 -0
  65. data/public/rearview-src/login/icons/rearview.svg +19 -0
  66. data/public/rearview-src/templates/addcategory.hbs +38 -0
  67. data/public/rearview-src/templates/adddashboard.hbs +26 -0
  68. data/public/rearview-src/templates/addmonitor.hbs +10 -0
  69. data/public/rearview-src/templates/alert.hbs +4 -0
  70. data/public/rearview-src/templates/alerttimeline.hbs +15 -0
  71. data/public/rearview-src/templates/dashboard.hbs +35 -0
  72. data/public/rearview-src/templates/dashboardtile.hbs +22 -0
  73. data/public/rearview-src/templates/deletemonitor.hbs +16 -0
  74. data/public/rearview-src/templates/expandedmonitor.hbs +191 -0
  75. data/public/rearview-src/templates/header.hbs +9 -0
  76. data/public/rearview-src/templates/primarynav.hbs +50 -0
  77. data/public/rearview-src/templates/resetmonitor.hbs +16 -0
  78. data/public/rearview-src/templates/schedulemonitor.hbs +78 -0
  79. data/public/rearview-src/templates/secondarynav.hbs +11 -0
  80. data/public/rearview-src/templates/setmetrics.hbs +53 -0
  81. data/public/rearview-src/templates/smallmonitor.hbs +52 -0
  82. data/public/rearview-src/templates/test.txt +1 -0
  83. data/public/rearview-src/test/spec/model/application.js +60 -0
  84. data/public/rearview-src/test/spec/model/job.js +109 -0
  85. data/public/rearview-src/test/spec/model/user.js +50 -0
  86. data/public/rearview-src/test/spec/view/base.js +58 -0
  87. data/public/rearview-src/vendor/backbone/js/backbone.js +1431 -0
  88. data/public/rearview-src/vendor/backbone/plugins/backbone-localStorage/js/backbone-localStorage.js +130 -0
  89. data/public/rearview-src/vendor/backbone/plugins/backbone-mediator/js/backbone-mediator.js +221 -0
  90. data/public/rearview-src/vendor/bootstrap/css/bootstrap-responsive.css +1109 -0
  91. data/public/rearview-src/vendor/bootstrap/css/bootstrap-responsive.min.css +9 -0
  92. data/public/rearview-src/vendor/bootstrap/css/bootstrap.css +6167 -0
  93. data/public/rearview-src/vendor/bootstrap/css/bootstrap.min.css +9 -0
  94. data/public/rearview-src/vendor/bootstrap/img/glyphicons-halflings-white.png +0 -0
  95. data/public/rearview-src/vendor/bootstrap/img/glyphicons-halflings.png +0 -0
  96. data/public/rearview-src/vendor/bootstrap/js/bootstrap.js +2280 -0
  97. data/public/rearview-src/vendor/bootstrap/js/bootstrap.min.js +6 -0
  98. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/LICENSE +202 -0
  99. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/README.md +305 -0
  100. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/build/build.less +66 -0
  101. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/build/build_standalone.less +69 -0
  102. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/css/datepicker.css +274 -0
  103. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js +841 -0
  104. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.cs.js +14 -0
  105. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.da.js +14 -0
  106. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.de.js +14 -0
  107. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.es.js +14 -0
  108. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.fi.js +14 -0
  109. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.fr.js +14 -0
  110. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.id.js +13 -0
  111. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.is.js +14 -0
  112. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.it.js +14 -0
  113. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.ja.js +13 -0
  114. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.kr.js +13 -0
  115. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.lt.js +15 -0
  116. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.lv.js +16 -0
  117. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.ms.js +14 -0
  118. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.nb.js +14 -0
  119. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.nl.js +14 -0
  120. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.pl.js +14 -0
  121. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.pt-BR.js +14 -0
  122. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.pt.js +14 -0
  123. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.ru.js +14 -0
  124. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.sv.js +14 -0
  125. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.th.js +14 -0
  126. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.tr.js +15 -0
  127. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.zh-CN.js +14 -0
  128. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.zh-TW.js +13 -0
  129. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/less/datepicker.less +147 -0
  130. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/README.md +55 -0
  131. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/_coverage.html +26 -0
  132. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/coverage.js +48 -0
  133. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/jquery-1.7.1.min.js +4 -0
  134. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/mock.js +26 -0
  135. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/qunit-logging.js +29 -0
  136. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/qunit.css +235 -0
  137. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/qunit.js +1669 -0
  138. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/utils.js +21 -0
  139. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/run-qunit.js +157 -0
  140. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/suites/component.js +157 -0
  141. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/suites/events.js +80 -0
  142. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/suites/formats.js +195 -0
  143. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/suites/keyboard_navigation/2011.js +86 -0
  144. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/suites/keyboard_navigation/2012.js +410 -0
  145. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/suites/keyboard_navigation/all.js +26 -0
  146. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/suites/mouse_navigation/2011.js +66 -0
  147. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/suites/mouse_navigation/2012.js +251 -0
  148. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/suites/mouse_navigation/all.js +33 -0
  149. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/suites/options.js +264 -0
  150. data/public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/tests.html +45 -0
  151. data/public/rearview-src/vendor/bootstrap/plugins/font-awesome/css/font-awesome-ie7.css +1203 -0
  152. data/public/rearview-src/vendor/bootstrap/plugins/font-awesome/css/font-awesome-ie7.min.css +384 -0
  153. data/public/rearview-src/vendor/bootstrap/plugins/font-awesome/css/font-awesome.css +1479 -0
  154. data/public/rearview-src/vendor/bootstrap/plugins/font-awesome/css/font-awesome.min.css +403 -0
  155. data/public/rearview-src/vendor/bootstrap/plugins/font-awesome/font/FontAwesome.otf +0 -0
  156. data/public/rearview-src/vendor/bootstrap/plugins/font-awesome/font/fontawesome-webfont.eot +0 -0
  157. data/public/rearview-src/vendor/bootstrap/plugins/font-awesome/font/fontawesome-webfont.svg +399 -0
  158. data/public/rearview-src/vendor/bootstrap/plugins/font-awesome/font/fontawesome-webfont.ttf +0 -0
  159. data/public/rearview-src/vendor/bootstrap/plugins/font-awesome/font/fontawesome-webfont.woff +0 -0
  160. data/public/rearview-src/vendor/bootstrap/plugins/font-awesome/less/bootstrap.less +84 -0
  161. data/public/rearview-src/vendor/bootstrap/plugins/font-awesome/less/core.less +129 -0
  162. data/public/rearview-src/vendor/bootstrap/plugins/font-awesome/less/extras.less +93 -0
  163. data/public/rearview-src/vendor/bootstrap/plugins/font-awesome/less/font-awesome-ie7.less +1953 -0
  164. data/public/rearview-src/vendor/bootstrap/plugins/font-awesome/less/font-awesome.less +33 -0
  165. data/public/rearview-src/vendor/bootstrap/plugins/font-awesome/less/icons.less +381 -0
  166. data/public/rearview-src/vendor/bootstrap/plugins/font-awesome/less/mixins.less +48 -0
  167. data/public/rearview-src/vendor/bootstrap/plugins/font-awesome/less/path.less +14 -0
  168. data/public/rearview-src/vendor/bootstrap/plugins/font-awesome/less/variables.less +735 -0
  169. data/public/rearview-src/vendor/bootstrap/plugins/font-awesome/scss/_bootstrap.scss +84 -0
  170. data/public/rearview-src/vendor/bootstrap/plugins/font-awesome/scss/_core.scss +129 -0
  171. data/public/rearview-src/vendor/bootstrap/plugins/font-awesome/scss/_extras.scss +93 -0
  172. data/public/rearview-src/vendor/bootstrap/plugins/font-awesome/scss/_icons.scss +381 -0
  173. data/public/rearview-src/vendor/bootstrap/plugins/font-awesome/scss/_mixins.scss +48 -0
  174. data/public/rearview-src/vendor/bootstrap/plugins/font-awesome/scss/_path.scss +14 -0
  175. data/public/rearview-src/vendor/bootstrap/plugins/font-awesome/scss/_variables.scss +734 -0
  176. data/public/rearview-src/vendor/bootstrap/plugins/font-awesome/scss/font-awesome-ie7.scss +1953 -0
  177. data/public/rearview-src/vendor/bootstrap/plugins/font-awesome/scss/font-awesome.scss +33 -0
  178. data/public/rearview-src/vendor/codemirror/LICENSE +23 -0
  179. data/public/rearview-src/vendor/codemirror/README.md +8 -0
  180. data/public/rearview-src/vendor/codemirror/demo/activeline.html +73 -0
  181. data/public/rearview-src/vendor/codemirror/demo/changemode.html +51 -0
  182. data/public/rearview-src/vendor/codemirror/demo/closetag.html +66 -0
  183. data/public/rearview-src/vendor/codemirror/demo/complete.html +71 -0
  184. data/public/rearview-src/vendor/codemirror/demo/emacs.html +60 -0
  185. data/public/rearview-src/vendor/codemirror/demo/folding.html +62 -0
  186. data/public/rearview-src/vendor/codemirror/demo/formatting.html +81 -0
  187. data/public/rearview-src/vendor/codemirror/demo/fullscreen.html +147 -0
  188. data/public/rearview-src/vendor/codemirror/demo/loadmode.html +40 -0
  189. data/public/rearview-src/vendor/codemirror/demo/marker.html +53 -0
  190. data/public/rearview-src/vendor/codemirror/demo/matchhighlighter.html +38 -0
  191. data/public/rearview-src/vendor/codemirror/demo/multiplex.html +60 -0
  192. data/public/rearview-src/vendor/codemirror/demo/mustache.html +58 -0
  193. data/public/rearview-src/vendor/codemirror/demo/preview.html +76 -0
  194. data/public/rearview-src/vendor/codemirror/demo/resize.html +42 -0
  195. data/public/rearview-src/vendor/codemirror/demo/runmode.html +50 -0
  196. data/public/rearview-src/vendor/codemirror/demo/search.html +85 -0
  197. data/public/rearview-src/vendor/codemirror/demo/theme.html +79 -0
  198. data/public/rearview-src/vendor/codemirror/demo/vim.html +53 -0
  199. data/public/rearview-src/vendor/codemirror/demo/visibletabs.html +53 -0
  200. data/public/rearview-src/vendor/codemirror/demo/xmlcomplete.html +71 -0
  201. data/public/rearview-src/vendor/codemirror/doc/baboon.png +0 -0
  202. data/public/rearview-src/vendor/codemirror/doc/baboon_vector.svg +153 -0
  203. data/public/rearview-src/vendor/codemirror/doc/compress.html +163 -0
  204. data/public/rearview-src/vendor/codemirror/doc/docs.css +165 -0
  205. data/public/rearview-src/vendor/codemirror/doc/internals.html +497 -0
  206. data/public/rearview-src/vendor/codemirror/doc/manual.html +1224 -0
  207. data/public/rearview-src/vendor/codemirror/doc/oldrelease.html +305 -0
  208. data/public/rearview-src/vendor/codemirror/doc/reporting.html +60 -0
  209. data/public/rearview-src/vendor/codemirror/doc/upgrade_v2.2.html +98 -0
  210. data/public/rearview-src/vendor/codemirror/index.html +472 -0
  211. data/public/rearview-src/vendor/codemirror/keymap/emacs.js +29 -0
  212. data/public/rearview-src/vendor/codemirror/keymap/vim.js +789 -0
  213. data/public/rearview-src/vendor/codemirror/lib/codemirror.css +173 -0
  214. data/public/rearview-src/vendor/codemirror/lib/codemirror.js +3143 -0
  215. data/public/rearview-src/vendor/codemirror/lib/util/closetag.js +164 -0
  216. data/public/rearview-src/vendor/codemirror/lib/util/dialog.css +27 -0
  217. data/public/rearview-src/vendor/codemirror/lib/util/dialog.js +70 -0
  218. data/public/rearview-src/vendor/codemirror/lib/util/foldcode.js +196 -0
  219. data/public/rearview-src/vendor/codemirror/lib/util/formatting.js +193 -0
  220. data/public/rearview-src/vendor/codemirror/lib/util/javascript-hint.js +134 -0
  221. data/public/rearview-src/vendor/codemirror/lib/util/loadmode.js +51 -0
  222. data/public/rearview-src/vendor/codemirror/lib/util/match-highlighter.js +44 -0
  223. data/public/rearview-src/vendor/codemirror/lib/util/multiplex.js +77 -0
  224. data/public/rearview-src/vendor/codemirror/lib/util/overlay.js +54 -0
  225. data/public/rearview-src/vendor/codemirror/lib/util/pig-hint.js +123 -0
  226. data/public/rearview-src/vendor/codemirror/lib/util/runmode-standalone.js +90 -0
  227. data/public/rearview-src/vendor/codemirror/lib/util/runmode.js +53 -0
  228. data/public/rearview-src/vendor/codemirror/lib/util/search.js +118 -0
  229. data/public/rearview-src/vendor/codemirror/lib/util/searchcursor.js +119 -0
  230. data/public/rearview-src/vendor/codemirror/lib/util/simple-hint.css +16 -0
  231. data/public/rearview-src/vendor/codemirror/lib/util/simple-hint.js +97 -0
  232. data/public/rearview-src/vendor/codemirror/lib/util/xml-hint.js +137 -0
  233. data/public/rearview-src/vendor/codemirror/mode/clike/clike.js +284 -0
  234. data/public/rearview-src/vendor/codemirror/mode/clike/index.html +102 -0
  235. data/public/rearview-src/vendor/codemirror/mode/clike/scala.html +766 -0
  236. data/public/rearview-src/vendor/codemirror/mode/clojure/clojure.js +206 -0
  237. data/public/rearview-src/vendor/codemirror/mode/clojure/index.html +67 -0
  238. data/public/rearview-src/vendor/codemirror/mode/coffeescript/LICENSE +22 -0
  239. data/public/rearview-src/vendor/codemirror/mode/coffeescript/coffeescript.js +346 -0
  240. data/public/rearview-src/vendor/codemirror/mode/coffeescript/index.html +728 -0
  241. data/public/rearview-src/vendor/codemirror/mode/commonlisp/commonlisp.js +101 -0
  242. data/public/rearview-src/vendor/codemirror/mode/commonlisp/index.html +165 -0
  243. data/public/rearview-src/vendor/codemirror/mode/css/css.js +448 -0
  244. data/public/rearview-src/vendor/codemirror/mode/css/index.html +58 -0
  245. data/public/rearview-src/vendor/codemirror/mode/css/test.js +501 -0
  246. data/public/rearview-src/vendor/codemirror/mode/diff/diff.js +32 -0
  247. data/public/rearview-src/vendor/codemirror/mode/diff/index.html +105 -0
  248. data/public/rearview-src/vendor/codemirror/mode/ecl/ecl.js +203 -0
  249. data/public/rearview-src/vendor/codemirror/mode/ecl/index.html +42 -0
  250. data/public/rearview-src/vendor/codemirror/mode/erlang/erlang.js +463 -0
  251. data/public/rearview-src/vendor/codemirror/mode/erlang/index.html +63 -0
  252. data/public/rearview-src/vendor/codemirror/mode/gfm/gfm.js +150 -0
  253. data/public/rearview-src/vendor/codemirror/mode/gfm/index.html +48 -0
  254. data/public/rearview-src/vendor/codemirror/mode/go/go.js +170 -0
  255. data/public/rearview-src/vendor/codemirror/mode/go/index.html +73 -0
  256. data/public/rearview-src/vendor/codemirror/mode/groovy/groovy.js +210 -0
  257. data/public/rearview-src/vendor/codemirror/mode/groovy/index.html +72 -0
  258. data/public/rearview-src/vendor/codemirror/mode/haskell/haskell.js +242 -0
  259. data/public/rearview-src/vendor/codemirror/mode/haskell/index.html +61 -0
  260. data/public/rearview-src/vendor/codemirror/mode/haxe/haxe.js +429 -0
  261. data/public/rearview-src/vendor/codemirror/mode/haxe/index.html +91 -0
  262. data/public/rearview-src/vendor/codemirror/mode/htmlembedded/htmlembedded.js +72 -0
  263. data/public/rearview-src/vendor/codemirror/mode/htmlembedded/index.html +50 -0
  264. data/public/rearview-src/vendor/codemirror/mode/htmlmixed/htmlmixed.js +84 -0
  265. data/public/rearview-src/vendor/codemirror/mode/htmlmixed/index.html +52 -0
  266. data/public/rearview-src/vendor/codemirror/mode/javascript/index.html +78 -0
  267. data/public/rearview-src/vendor/codemirror/mode/javascript/javascript.js +361 -0
  268. data/public/rearview-src/vendor/codemirror/mode/jinja2/index.html +38 -0
  269. data/public/rearview-src/vendor/codemirror/mode/jinja2/jinja2.js +42 -0
  270. data/public/rearview-src/vendor/codemirror/mode/less/index.html +740 -0
  271. data/public/rearview-src/vendor/codemirror/mode/less/less.js +266 -0
  272. data/public/rearview-src/vendor/codemirror/mode/lua/index.html +73 -0
  273. data/public/rearview-src/vendor/codemirror/mode/lua/lua.js +140 -0
  274. data/public/rearview-src/vendor/codemirror/mode/markdown/index.html +343 -0
  275. data/public/rearview-src/vendor/codemirror/mode/markdown/markdown.js +382 -0
  276. data/public/rearview-src/vendor/codemirror/mode/markdown/test.js +1084 -0
  277. data/public/rearview-src/vendor/codemirror/mode/mysql/index.html +42 -0
  278. data/public/rearview-src/vendor/codemirror/mode/mysql/mysql.js +186 -0
  279. data/public/rearview-src/vendor/codemirror/mode/ntriples/index.html +33 -0
  280. data/public/rearview-src/vendor/codemirror/mode/ntriples/ntriples.js +172 -0
  281. data/public/rearview-src/vendor/codemirror/mode/ocaml/index.html +130 -0
  282. data/public/rearview-src/vendor/codemirror/mode/ocaml/ocaml.js +114 -0
  283. data/public/rearview-src/vendor/codemirror/mode/pascal/LICENSE +7 -0
  284. data/public/rearview-src/vendor/codemirror/mode/pascal/index.html +49 -0
  285. data/public/rearview-src/vendor/codemirror/mode/pascal/pascal.js +94 -0
  286. data/public/rearview-src/vendor/codemirror/mode/perl/LICENSE +19 -0
  287. data/public/rearview-src/vendor/codemirror/mode/perl/index.html +63 -0
  288. data/public/rearview-src/vendor/codemirror/mode/perl/perl.js +816 -0
  289. data/public/rearview-src/vendor/codemirror/mode/php/index.html +49 -0
  290. data/public/rearview-src/vendor/codemirror/mode/php/php.js +148 -0
  291. data/public/rearview-src/vendor/codemirror/mode/pig/index.html +43 -0
  292. data/public/rearview-src/vendor/codemirror/mode/pig/pig.js +172 -0
  293. data/public/rearview-src/vendor/codemirror/mode/plsql/index.html +63 -0
  294. data/public/rearview-src/vendor/codemirror/mode/plsql/plsql.js +217 -0
  295. data/public/rearview-src/vendor/codemirror/mode/properties/index.html +41 -0
  296. data/public/rearview-src/vendor/codemirror/mode/properties/properties.js +63 -0
  297. data/public/rearview-src/vendor/codemirror/mode/python/LICENSE.txt +21 -0
  298. data/public/rearview-src/vendor/codemirror/mode/python/index.html +123 -0
  299. data/public/rearview-src/vendor/codemirror/mode/python/python.js +338 -0
  300. data/public/rearview-src/vendor/codemirror/mode/r/LICENSE +24 -0
  301. data/public/rearview-src/vendor/codemirror/mode/r/index.html +74 -0
  302. data/public/rearview-src/vendor/codemirror/mode/r/r.js +141 -0
  303. data/public/rearview-src/vendor/codemirror/mode/rpm/changes/changes.js +19 -0
  304. data/public/rearview-src/vendor/codemirror/mode/rpm/changes/index.html +54 -0
  305. data/public/rearview-src/vendor/codemirror/mode/rpm/spec/index.html +100 -0
  306. data/public/rearview-src/vendor/codemirror/mode/rpm/spec/spec.css +5 -0
  307. data/public/rearview-src/vendor/codemirror/mode/rpm/spec/spec.js +66 -0
  308. data/public/rearview-src/vendor/codemirror/mode/rst/index.html +526 -0
  309. data/public/rearview-src/vendor/codemirror/mode/rst/rst.js +326 -0
  310. data/public/rearview-src/vendor/codemirror/mode/ruby/LICENSE +24 -0
  311. data/public/rearview-src/vendor/codemirror/mode/ruby/index.html +172 -0
  312. data/public/rearview-src/vendor/codemirror/mode/ruby/ruby.js +195 -0
  313. data/public/rearview-src/vendor/codemirror/mode/rust/index.html +49 -0
  314. data/public/rearview-src/vendor/codemirror/mode/rust/rust.js +432 -0
  315. data/public/rearview-src/vendor/codemirror/mode/scheme/index.html +65 -0
  316. data/public/rearview-src/vendor/codemirror/mode/scheme/scheme.js +230 -0
  317. data/public/rearview-src/vendor/codemirror/mode/shell/index.html +50 -0
  318. data/public/rearview-src/vendor/codemirror/mode/shell/shell.js +118 -0
  319. data/public/rearview-src/vendor/codemirror/mode/sieve/LICENSE +23 -0
  320. data/public/rearview-src/vendor/codemirror/mode/sieve/index.html +81 -0
  321. data/public/rearview-src/vendor/codemirror/mode/sieve/sieve.js +156 -0
  322. data/public/rearview-src/vendor/codemirror/mode/smalltalk/index.html +56 -0
  323. data/public/rearview-src/vendor/codemirror/mode/smalltalk/smalltalk.js +139 -0
  324. data/public/rearview-src/vendor/codemirror/mode/smarty/index.html +83 -0
  325. data/public/rearview-src/vendor/codemirror/mode/smarty/smarty.js +148 -0
  326. data/public/rearview-src/vendor/codemirror/mode/sparql/index.html +41 -0
  327. data/public/rearview-src/vendor/codemirror/mode/sparql/sparql.js +143 -0
  328. data/public/rearview-src/vendor/codemirror/mode/stex/index.html +98 -0
  329. data/public/rearview-src/vendor/codemirror/mode/stex/stex.js +182 -0
  330. data/public/rearview-src/vendor/codemirror/mode/stex/test.js +343 -0
  331. data/public/rearview-src/vendor/codemirror/mode/tiddlywiki/index.html +141 -0
  332. data/public/rearview-src/vendor/codemirror/mode/tiddlywiki/tiddlywiki.css +14 -0
  333. data/public/rearview-src/vendor/codemirror/mode/tiddlywiki/tiddlywiki.js +384 -0
  334. data/public/rearview-src/vendor/codemirror/mode/tiki/index.html +83 -0
  335. data/public/rearview-src/vendor/codemirror/mode/tiki/tiki.css +26 -0
  336. data/public/rearview-src/vendor/codemirror/mode/tiki/tiki.js +309 -0
  337. data/public/rearview-src/vendor/codemirror/mode/vb/LICENSE.txt +21 -0
  338. data/public/rearview-src/vendor/codemirror/mode/vb/index.html +89 -0
  339. data/public/rearview-src/vendor/codemirror/mode/vb/vb.js +260 -0
  340. data/public/rearview-src/vendor/codemirror/mode/vbscript/index.html +43 -0
  341. data/public/rearview-src/vendor/codemirror/mode/vbscript/vbscript.js +26 -0
  342. data/public/rearview-src/vendor/codemirror/mode/velocity/index.html +104 -0
  343. data/public/rearview-src/vendor/codemirror/mode/velocity/velocity.js +146 -0
  344. data/public/rearview-src/vendor/codemirror/mode/verilog/index.html +211 -0
  345. data/public/rearview-src/vendor/codemirror/mode/verilog/verilog.js +194 -0
  346. data/public/rearview-src/vendor/codemirror/mode/xml/index.html +45 -0
  347. data/public/rearview-src/vendor/codemirror/mode/xml/xml.js +318 -0
  348. data/public/rearview-src/vendor/codemirror/mode/xquery/LICENSE +20 -0
  349. data/public/rearview-src/vendor/codemirror/mode/xquery/index.html +223 -0
  350. data/public/rearview-src/vendor/codemirror/mode/xquery/test/index.html +27 -0
  351. data/public/rearview-src/vendor/codemirror/mode/xquery/test/testBase.js +42 -0
  352. data/public/rearview-src/vendor/codemirror/mode/xquery/test/testEmptySequenceKeyword.js +16 -0
  353. data/public/rearview-src/vendor/codemirror/mode/xquery/test/testMultiAttr.js +16 -0
  354. data/public/rearview-src/vendor/codemirror/mode/xquery/test/testNamespaces.js +91 -0
  355. data/public/rearview-src/vendor/codemirror/mode/xquery/test/testProcessingInstructions.js +16 -0
  356. data/public/rearview-src/vendor/codemirror/mode/xquery/test/testQuotes.js +19 -0
  357. data/public/rearview-src/vendor/codemirror/mode/xquery/xquery.js +451 -0
  358. data/public/rearview-src/vendor/codemirror/mode/yaml/index.html +68 -0
  359. data/public/rearview-src/vendor/codemirror/mode/yaml/yaml.js +95 -0
  360. data/public/rearview-src/vendor/codemirror/package.json +21 -0
  361. data/public/rearview-src/vendor/codemirror/test/driver.js +129 -0
  362. data/public/rearview-src/vendor/codemirror/test/index.html +168 -0
  363. data/public/rearview-src/vendor/codemirror/test/lint/lint.js +120 -0
  364. data/public/rearview-src/vendor/codemirror/test/lint/parse-js.js +1372 -0
  365. data/public/rearview-src/vendor/codemirror/test/mode_test.css +10 -0
  366. data/public/rearview-src/vendor/codemirror/test/mode_test.js +203 -0
  367. data/public/rearview-src/vendor/codemirror/test/phantom_driver.js +30 -0
  368. data/public/rearview-src/vendor/codemirror/test/run.js +32 -0
  369. data/public/rearview-src/vendor/codemirror/test/test.js +672 -0
  370. data/public/rearview-src/vendor/codemirror/theme/ambiance.css +81 -0
  371. data/public/rearview-src/vendor/codemirror/theme/blackboard.css +25 -0
  372. data/public/rearview-src/vendor/codemirror/theme/cobalt.css +18 -0
  373. data/public/rearview-src/vendor/codemirror/theme/eclipse.css +25 -0
  374. data/public/rearview-src/vendor/codemirror/theme/elegant.css +10 -0
  375. data/public/rearview-src/vendor/codemirror/theme/erlang-dark.css +21 -0
  376. data/public/rearview-src/vendor/codemirror/theme/lesser-dark.css +44 -0
  377. data/public/rearview-src/vendor/codemirror/theme/monokai.css +28 -0
  378. data/public/rearview-src/vendor/codemirror/theme/neat.css +9 -0
  379. data/public/rearview-src/vendor/codemirror/theme/night.css +21 -0
  380. data/public/rearview-src/vendor/codemirror/theme/rubyblue.css +21 -0
  381. data/public/rearview-src/vendor/codemirror/theme/vibrant-ink.css +27 -0
  382. data/public/rearview-src/vendor/codemirror/theme/xq-dark.css +46 -0
  383. data/public/rearview-src/vendor/handlebars/js/handlebars.js +1920 -0
  384. data/public/rearview-src/vendor/highcharts/examples/area-basic/index.htm +94 -0
  385. data/public/rearview-src/vendor/highcharts/examples/area-inverted/index.htm +91 -0
  386. data/public/rearview-src/vendor/highcharts/examples/area-missing/index.htm +85 -0
  387. data/public/rearview-src/vendor/highcharts/examples/area-negative/index.htm +55 -0
  388. data/public/rearview-src/vendor/highcharts/examples/area-stacked-percent/index.htm +82 -0
  389. data/public/rearview-src/vendor/highcharts/examples/area-stacked/index.htm +86 -0
  390. data/public/rearview-src/vendor/highcharts/examples/arearange/index.htm +62 -0
  391. data/public/rearview-src/vendor/highcharts/examples/areaspline/index.htm +85 -0
  392. data/public/rearview-src/vendor/highcharts/examples/bar-basic/index.htm +89 -0
  393. data/public/rearview-src/vendor/highcharts/examples/bar-negative-stack/index.htm +87 -0
  394. data/public/rearview-src/vendor/highcharts/examples/bar-stacked/index.htm +67 -0
  395. data/public/rearview-src/vendor/highcharts/examples/column-basic/index.htm +97 -0
  396. data/public/rearview-src/vendor/highcharts/examples/column-drilldown/index.htm +155 -0
  397. data/public/rearview-src/vendor/highcharts/examples/column-negative/index.htm +55 -0
  398. data/public/rearview-src/vendor/highcharts/examples/column-parsed/index.htm +120 -0
  399. data/public/rearview-src/vendor/highcharts/examples/column-rotated-labels/index.htm +100 -0
  400. data/public/rearview-src/vendor/highcharts/examples/column-stacked-and-grouped/index.htm +79 -0
  401. data/public/rearview-src/vendor/highcharts/examples/column-stacked-percent/index.htm +63 -0
  402. data/public/rearview-src/vendor/highcharts/examples/column-stacked/index.htm +86 -0
  403. data/public/rearview-src/vendor/highcharts/examples/columnrange/index.htm +87 -0
  404. data/public/rearview-src/vendor/highcharts/examples/combo-dual-axes/index.htm +101 -0
  405. data/public/rearview-src/vendor/highcharts/examples/combo-multi-axes/index.htm +137 -0
  406. data/public/rearview-src/vendor/highcharts/examples/combo-regression/index.htm +60 -0
  407. data/public/rearview-src/vendor/highcharts/examples/combo/index.htm +102 -0
  408. data/public/rearview-src/vendor/highcharts/examples/dynamic-click-to-add/index.htm +88 -0
  409. data/public/rearview-src/vendor/highcharts/examples/dynamic-master-detail/index.htm +371 -0
  410. data/public/rearview-src/vendor/highcharts/examples/dynamic-update/index.htm +96 -0
  411. data/public/rearview-src/vendor/highcharts/examples/gauge-clock/index.htm +174 -0
  412. data/public/rearview-src/vendor/highcharts/examples/gauge-dual/index.htm +122 -0
  413. data/public/rearview-src/vendor/highcharts/examples/gauge-speedometer/index.htm +133 -0
  414. data/public/rearview-src/vendor/highcharts/examples/gauge-vu-meter/index.htm +148 -0
  415. data/public/rearview-src/vendor/highcharts/examples/line-ajax/analytics.tsv +87 -0
  416. data/public/rearview-src/vendor/highcharts/examples/line-ajax/index.htm +188 -0
  417. data/public/rearview-src/vendor/highcharts/examples/line-basic/index.htm +81 -0
  418. data/public/rearview-src/vendor/highcharts/examples/line-labels/index.htm +66 -0
  419. data/public/rearview-src/vendor/highcharts/examples/line-log-axis/index.htm +53 -0
  420. data/public/rearview-src/vendor/highcharts/examples/line-time-series/index.htm +206 -0
  421. data/public/rearview-src/vendor/highcharts/examples/pie-basic/index.htm +70 -0
  422. data/public/rearview-src/vendor/highcharts/examples/pie-donut/index.htm +146 -0
  423. data/public/rearview-src/vendor/highcharts/examples/pie-gradient/index.htm +83 -0
  424. data/public/rearview-src/vendor/highcharts/examples/pie-legend/index.htm +69 -0
  425. data/public/rearview-src/vendor/highcharts/examples/polar-spider/index.htm +75 -0
  426. data/public/rearview-src/vendor/highcharts/examples/polar-wind-rose/index.htm +307 -0
  427. data/public/rearview-src/vendor/highcharts/examples/polar/index.htm +79 -0
  428. data/public/rearview-src/vendor/highcharts/examples/scatter/index.htm +197 -0
  429. data/public/rearview-src/vendor/highcharts/examples/spline-inverted/index.htm +87 -0
  430. data/public/rearview-src/vendor/highcharts/examples/spline-irregular-time/index.htm +133 -0
  431. data/public/rearview-src/vendor/highcharts/examples/spline-plot-bands/index.htm +169 -0
  432. data/public/rearview-src/vendor/highcharts/examples/spline-symbols/index.htm +87 -0
  433. data/public/rearview-src/vendor/highcharts/exporting-server/java/highcharts-export/pom.xml +106 -0
  434. data/public/rearview-src/vendor/highcharts/exporting-server/java/highcharts-export/src/main/java/com/highcharts/export/controller/ExportController.java +229 -0
  435. data/public/rearview-src/vendor/highcharts/exporting-server/java/highcharts-export/src/main/java/com/highcharts/export/filters/DefaultEncodingFilter.java +79 -0
  436. data/public/rearview-src/vendor/highcharts/exporting-server/java/highcharts-export/src/main/java/com/highcharts/export/util/MimeType.java +34 -0
  437. data/public/rearview-src/vendor/highcharts/exporting-server/java/highcharts-export/src/main/java/com/highcharts/export/util/SVGRasterizer.java +77 -0
  438. data/public/rearview-src/vendor/highcharts/exporting-server/java/highcharts-export/src/main/java/com/highcharts/export/util/SVGRasterizerException.java +22 -0
  439. data/public/rearview-src/vendor/highcharts/exporting-server/java/highcharts-export/src/main/resources/log4j.properties +17 -0
  440. data/public/rearview-src/vendor/highcharts/exporting-server/java/highcharts-export/src/main/webapp/WEB-INF/web.xml +22 -0
  441. data/public/rearview-src/vendor/highcharts/exporting-server/java/install.txt +10 -0
  442. data/public/rearview-src/vendor/highcharts/exporting-server/php/index-with-imagick.php +112 -0
  443. data/public/rearview-src/vendor/highcharts/exporting-server/php/index.php +112 -0
  444. data/public/rearview-src/vendor/highcharts/gfx/vml-radial-gradient.png +0 -0
  445. data/public/rearview-src/vendor/highcharts/graphics/skies.jpg +0 -0
  446. data/public/rearview-src/vendor/highcharts/graphics/snow.png +0 -0
  447. data/public/rearview-src/vendor/highcharts/graphics/sun.png +0 -0
  448. data/public/rearview-src/vendor/highcharts/index.htm +79 -0
  449. data/public/rearview-src/vendor/highcharts/js/adapters/mootools-adapter.js +13 -0
  450. data/public/rearview-src/vendor/highcharts/js/adapters/mootools-adapter.src.js +327 -0
  451. data/public/rearview-src/vendor/highcharts/js/adapters/prototype-adapter.js +16 -0
  452. data/public/rearview-src/vendor/highcharts/js/adapters/prototype-adapter.src.js +385 -0
  453. data/public/rearview-src/vendor/highcharts/js/highcharts-more.js +35 -0
  454. data/public/rearview-src/vendor/highcharts/js/highcharts.js +249 -0
  455. data/public/rearview-src/vendor/highcharts/js/highcharts.src.js +15111 -0
  456. data/public/rearview-src/vendor/highcharts/js/modules/canvas-tools.js +133 -0
  457. data/public/rearview-src/vendor/highcharts/js/modules/canvas-tools.src.js +3113 -0
  458. data/public/rearview-src/vendor/highcharts/js/modules/data.js +11 -0
  459. data/public/rearview-src/vendor/highcharts/js/modules/data.src.js +277 -0
  460. data/public/rearview-src/vendor/highcharts/js/modules/exporting.js +23 -0
  461. data/public/rearview-src/vendor/highcharts/js/modules/exporting.src.js +736 -0
  462. data/public/rearview-src/vendor/highcharts/js/themes/dark-blue.js +263 -0
  463. data/public/rearview-src/vendor/highcharts/js/themes/dark-green.js +263 -0
  464. data/public/rearview-src/vendor/highcharts/js/themes/gray.js +262 -0
  465. data/public/rearview-src/vendor/highcharts/js/themes/grid.js +95 -0
  466. data/public/rearview-src/vendor/highcharts/js/themes/skies.js +89 -0
  467. data/public/rearview-src/vendor/jasmine/SpecRunner.html +53 -0
  468. data/public/rearview-src/vendor/jasmine/lib/jasmine-1.3.1/MIT.LICENSE +20 -0
  469. data/public/rearview-src/vendor/jasmine/lib/jasmine-1.3.1/jasmine-html.js +680 -0
  470. data/public/rearview-src/vendor/jasmine/lib/jasmine-1.3.1/jasmine.css +82 -0
  471. data/public/rearview-src/vendor/jasmine/lib/jasmine-1.3.1/jasmine.js +2600 -0
  472. data/public/rearview-src/vendor/jasmine/spec/PlayerSpec.js +58 -0
  473. data/public/rearview-src/vendor/jasmine/spec/SpecHelper.js +9 -0
  474. data/public/rearview-src/vendor/jasmine/src/Player.js +22 -0
  475. data/public/rearview-src/vendor/jasmine/src/Song.js +7 -0
  476. data/public/rearview-src/vendor/jquery/js/jquery.js +9440 -0
  477. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/css/dark-hive/images/animated-overlay.gif +0 -0
  478. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/css/dark-hive/images/ui-bg_flat_30_cccccc_40x100.png +0 -0
  479. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/css/dark-hive/images/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
  480. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/css/dark-hive/images/ui-bg_glass_40_ffc73d_1x400.png +0 -0
  481. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/css/dark-hive/images/ui-bg_highlight-hard_20_0972a5_1x100.png +0 -0
  482. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/css/dark-hive/images/ui-bg_highlight-soft_33_003147_1x100.png +0 -0
  483. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/css/dark-hive/images/ui-bg_highlight-soft_35_222222_1x100.png +0 -0
  484. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/css/dark-hive/images/ui-bg_highlight-soft_44_444444_1x100.png +0 -0
  485. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/css/dark-hive/images/ui-bg_highlight-soft_80_eeeeee_1x100.png +0 -0
  486. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/css/dark-hive/images/ui-bg_loop_25_000000_21x21.png +0 -0
  487. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/css/dark-hive/images/ui-icons_222222_256x240.png +0 -0
  488. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/css/dark-hive/images/ui-icons_4b8e0b_256x240.png +0 -0
  489. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/css/dark-hive/images/ui-icons_a83300_256x240.png +0 -0
  490. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/css/dark-hive/images/ui-icons_cccccc_256x240.png +0 -0
  491. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/css/dark-hive/images/ui-icons_ffffff_256x240.png +0 -0
  492. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/css/dark-hive/jquery-ui-1.10.3.custom.css +785 -0
  493. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/css/dark-hive/jquery-ui-1.10.3.custom.min.css +7 -0
  494. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/AUTHORS.txt +245 -0
  495. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/Gruntfile.js +378 -0
  496. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/MIT-LICENSE.txt +26 -0
  497. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/README.md +99 -0
  498. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/addClass/default.html +45 -0
  499. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/addClass/index.html +14 -0
  500. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/animate/default.html +55 -0
  501. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/animate/index.html +14 -0
  502. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/alt-field.html +29 -0
  503. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/animation.html +51 -0
  504. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/buttonbar.html +28 -0
  505. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/date-formats.html +40 -0
  506. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/date-range.html +44 -0
  507. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/default.html +26 -0
  508. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/dropdown-month-year.html +29 -0
  509. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/icon-trigger.html +30 -0
  510. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/images/calendar.gif +0 -0
  511. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/index.html +27 -0
  512. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/inline.html +26 -0
  513. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/jquery.ui.datepicker-ar.js +23 -0
  514. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/jquery.ui.datepicker-fr.js +25 -0
  515. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/jquery.ui.datepicker-he.js +23 -0
  516. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/jquery.ui.datepicker-zh-TW.js +23 -0
  517. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/localization.html +41 -0
  518. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/min-max.html +26 -0
  519. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/multiple-calendars.html +29 -0
  520. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/other-months.html +30 -0
  521. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/show-week.html +32 -0
  522. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/demos.css +19 -0
  523. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/draggable/constrain-movement.html +58 -0
  524. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/draggable/cursor-style.html +42 -0
  525. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/draggable/default.html +32 -0
  526. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/draggable/delay-start.html +38 -0
  527. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/draggable/events.html +70 -0
  528. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/draggable/handle.html +41 -0
  529. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/draggable/index.html +24 -0
  530. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/draggable/revert.html +37 -0
  531. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/draggable/scroll.html +44 -0
  532. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/draggable/snap-to.html +61 -0
  533. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/draggable/sortable.html +50 -0
  534. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/draggable/visual-feedback.html +70 -0
  535. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/accepted-elements.html +53 -0
  536. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/default.html +46 -0
  537. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/images/high_tatras.jpg +0 -0
  538. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/images/high_tatras2.jpg +0 -0
  539. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/images/high_tatras2_min.jpg +0 -0
  540. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/images/high_tatras3.jpg +0 -0
  541. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/images/high_tatras3_min.jpg +0 -0
  542. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/images/high_tatras4.jpg +0 -0
  543. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/images/high_tatras4_min.jpg +0 -0
  544. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/images/high_tatras_min.jpg +0 -0
  545. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/index.html +20 -0
  546. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/photo-manager.html +182 -0
  547. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/propagation.html +73 -0
  548. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/revert.html +54 -0
  549. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/shopping-cart.html +94 -0
  550. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/visual-feedback.html +72 -0
  551. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/effect/default.html +102 -0
  552. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/effect/easing.html +102 -0
  553. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/effect/index.html +15 -0
  554. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/hide/default.html +95 -0
  555. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/hide/index.html +14 -0
  556. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/images/calendar.gif +0 -0
  557. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/images/demo-config-on-tile.gif +0 -0
  558. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/images/demo-config-on.gif +0 -0
  559. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/images/demo-spindown-closed.gif +0 -0
  560. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/images/demo-spindown-open.gif +0 -0
  561. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/images/icon-docs-info.gif +0 -0
  562. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/images/pbar-ani.gif +0 -0
  563. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/index.html +26 -0
  564. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/removeClass/default.html +45 -0
  565. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/removeClass/index.html +14 -0
  566. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/show/default.html +97 -0
  567. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/show/index.html +14 -0
  568. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/switchClass/default.html +40 -0
  569. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/switchClass/index.html +14 -0
  570. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/toggle/default.html +103 -0
  571. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/toggle/index.html +14 -0
  572. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/toggleClass/default.html +39 -0
  573. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/toggleClass/index.html +14 -0
  574. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/widget/default.html +178 -0
  575. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/demos/widget/index.html +14 -0
  576. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/docs/blind-effect.html +58 -0
  577. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/docs/bounce-effect.html +61 -0
  578. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/docs/clip-effect.html +55 -0
  579. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/docs/datepicker.html +946 -0
  580. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/docs/draggable.html +741 -0
  581. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/docs/drop-effect.html +55 -0
  582. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/docs/droppable.html +548 -0
  583. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/docs/explode-effect.html +52 -0
  584. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/docs/fade-effect.html +43 -0
  585. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/docs/fold-effect.html +61 -0
  586. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/docs/highlight-effect.html +52 -0
  587. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/docs/jQuery.widget.html +611 -0
  588. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/docs/mouse.html +216 -0
  589. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/docs/puff-effect.html +52 -0
  590. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/docs/pulsate-effect.html +52 -0
  591. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/docs/scale-effect.html +82 -0
  592. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/docs/shake-effect.html +66 -0
  593. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/docs/size-effect.html +65 -0
  594. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/docs/slide-effect.html +59 -0
  595. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/docs/transfer-effect.html +61 -0
  596. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/external/globalize.culture.de-DE.js +81 -0
  597. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/external/globalize.culture.ja-JP.js +100 -0
  598. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/external/globalize.js +1573 -0
  599. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/external/jquery.mousewheel.js +101 -0
  600. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/external/jshint.js +4835 -0
  601. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/external/qunit.css +244 -0
  602. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/external/qunit.js +2152 -0
  603. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/jquery-1.9.1.js +9597 -0
  604. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/package.json +70 -0
  605. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/images/animated-overlay.gif +0 -0
  606. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  607. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  608. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  609. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  610. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  611. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  612. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  613. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  614. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/images/ui-icons_222222_256x240.png +0 -0
  615. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/images/ui-icons_2e83ff_256x240.png +0 -0
  616. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/images/ui-icons_454545_256x240.png +0 -0
  617. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/images/ui-icons_888888_256x240.png +0 -0
  618. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/images/ui-icons_cd0a0a_256x240.png +0 -0
  619. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/jquery-ui.css +648 -0
  620. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/jquery.ui.all.css +12 -0
  621. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/jquery.ui.base.css +25 -0
  622. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/jquery.ui.core.css +93 -0
  623. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/jquery.ui.datepicker.css +178 -0
  624. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/jquery.ui.theme.css +406 -0
  625. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/images/animated-overlay.gif +0 -0
  626. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  627. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  628. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  629. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  630. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  631. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  632. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  633. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  634. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/images/ui-icons_222222_256x240.png +0 -0
  635. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/images/ui-icons_2e83ff_256x240.png +0 -0
  636. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/images/ui-icons_454545_256x240.png +0 -0
  637. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/images/ui-icons_888888_256x240.png +0 -0
  638. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/images/ui-icons_cd0a0a_256x240.png +0 -0
  639. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/jquery-ui.min.css +7 -0
  640. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/jquery.ui.core.min.css +5 -0
  641. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/jquery.ui.datepicker.min.css +5 -0
  642. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/jquery.ui.theme.min.css +5 -0
  643. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/images/animated-overlay.gif +0 -0
  644. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/images/ui-bg_flat_30_cccccc_40x100.png +0 -0
  645. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/images/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
  646. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/images/ui-bg_glass_40_ffc73d_1x400.png +0 -0
  647. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/images/ui-bg_highlight-hard_20_0972a5_1x100.png +0 -0
  648. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/images/ui-bg_highlight-soft_33_003147_1x100.png +0 -0
  649. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/images/ui-bg_highlight-soft_35_222222_1x100.png +0 -0
  650. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/images/ui-bg_highlight-soft_44_444444_1x100.png +0 -0
  651. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/images/ui-bg_highlight-soft_80_eeeeee_1x100.png +0 -0
  652. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/images/ui-bg_loop_25_000000_21x21.png +0 -0
  653. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/images/ui-icons_222222_256x240.png +0 -0
  654. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/images/ui-icons_4b8e0b_256x240.png +0 -0
  655. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/images/ui-icons_a83300_256x240.png +0 -0
  656. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/images/ui-icons_cccccc_256x240.png +0 -0
  657. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/images/ui-icons_ffffff_256x240.png +0 -0
  658. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/jquery-ui.css +649 -0
  659. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/jquery.ui.all.css +12 -0
  660. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/jquery.ui.base.css +25 -0
  661. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/jquery.ui.core.css +93 -0
  662. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/jquery.ui.datepicker.css +178 -0
  663. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/jquery.ui.theme.css +406 -0
  664. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/images/animated-overlay.gif +0 -0
  665. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/images/ui-bg_flat_30_cccccc_40x100.png +0 -0
  666. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/images/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
  667. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/images/ui-bg_glass_40_ffc73d_1x400.png +0 -0
  668. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/images/ui-bg_highlight-hard_20_0972a5_1x100.png +0 -0
  669. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/images/ui-bg_highlight-soft_33_003147_1x100.png +0 -0
  670. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/images/ui-bg_highlight-soft_35_222222_1x100.png +0 -0
  671. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/images/ui-bg_highlight-soft_44_444444_1x100.png +0 -0
  672. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/images/ui-bg_highlight-soft_80_eeeeee_1x100.png +0 -0
  673. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/images/ui-bg_loop_25_000000_21x21.png +0 -0
  674. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/images/ui-icons_222222_256x240.png +0 -0
  675. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/images/ui-icons_4b8e0b_256x240.png +0 -0
  676. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/images/ui-icons_a83300_256x240.png +0 -0
  677. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/images/ui-icons_cccccc_256x240.png +0 -0
  678. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/images/ui-icons_ffffff_256x240.png +0 -0
  679. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/jquery-ui.min.css +7 -0
  680. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/jquery.ui.core.min.css +5 -0
  681. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/jquery.ui.datepicker.min.css +5 -0
  682. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/jquery.ui.theme.min.css +5 -0
  683. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui.core.jquery.json +61 -0
  684. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui.datepicker.jquery.json +66 -0
  685. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui.draggable.jquery.json +66 -0
  686. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui.droppable.jquery.json +67 -0
  687. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui.effect-blind.jquery.json +65 -0
  688. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui.effect-bounce.jquery.json +65 -0
  689. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui.effect-clip.jquery.json +65 -0
  690. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui.effect-drop.jquery.json +65 -0
  691. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui.effect-explode.jquery.json +65 -0
  692. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui.effect-fade.jquery.json +65 -0
  693. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui.effect-fold.jquery.json +65 -0
  694. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui.effect-highlight.jquery.json +65 -0
  695. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui.effect-pulsate.jquery.json +65 -0
  696. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui.effect-scale.jquery.json +65 -0
  697. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui.effect-shake.jquery.json +65 -0
  698. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui.effect-slide.jquery.json +65 -0
  699. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui.effect-transfer.jquery.json +63 -0
  700. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui.effect.jquery.json +68 -0
  701. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui.mouse.jquery.json +64 -0
  702. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui.widget.jquery.json +64 -0
  703. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery-ui-i18n.js +1645 -0
  704. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-af.js +23 -0
  705. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ar-DZ.js +23 -0
  706. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ar.js +23 -0
  707. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-az.js +23 -0
  708. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-be.js +23 -0
  709. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-bg.js +24 -0
  710. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-bs.js +23 -0
  711. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ca.js +23 -0
  712. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-cs.js +23 -0
  713. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-cy-GB.js +23 -0
  714. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-da.js +23 -0
  715. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-de.js +23 -0
  716. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-el.js +23 -0
  717. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-en-AU.js +23 -0
  718. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-en-GB.js +23 -0
  719. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-en-NZ.js +23 -0
  720. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-eo.js +23 -0
  721. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-es.js +23 -0
  722. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-et.js +23 -0
  723. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-eu.js +23 -0
  724. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-fa.js +59 -0
  725. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-fi.js +23 -0
  726. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-fo.js +23 -0
  727. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-fr-CA.js +23 -0
  728. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-fr-CH.js +23 -0
  729. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-fr.js +25 -0
  730. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-gl.js +23 -0
  731. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-he.js +23 -0
  732. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-hi.js +23 -0
  733. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-hr.js +23 -0
  734. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-hu.js +23 -0
  735. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-hy.js +23 -0
  736. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-id.js +23 -0
  737. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-is.js +23 -0
  738. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-it.js +23 -0
  739. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ja.js +23 -0
  740. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ka.js +21 -0
  741. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-kk.js +23 -0
  742. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-km.js +23 -0
  743. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ko.js +23 -0
  744. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ky.js +24 -0
  745. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-lb.js +23 -0
  746. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-lt.js +23 -0
  747. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-lv.js +23 -0
  748. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-mk.js +23 -0
  749. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ml.js +23 -0
  750. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ms.js +23 -0
  751. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-nb.js +22 -0
  752. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-nl-BE.js +23 -0
  753. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-nl.js +23 -0
  754. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-nn.js +22 -0
  755. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-no.js +23 -0
  756. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-pl.js +23 -0
  757. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-pt-BR.js +23 -0
  758. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-pt.js +22 -0
  759. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-rm.js +21 -0
  760. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ro.js +26 -0
  761. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ru.js +23 -0
  762. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-sk.js +23 -0
  763. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-sl.js +24 -0
  764. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-sq.js +23 -0
  765. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-sr-SR.js +23 -0
  766. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-sr.js +23 -0
  767. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-sv.js +23 -0
  768. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ta.js +23 -0
  769. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-th.js +23 -0
  770. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-tj.js +23 -0
  771. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-tr.js +23 -0
  772. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-uk.js +24 -0
  773. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-vi.js +23 -0
  774. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-zh-CN.js +23 -0
  775. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-zh-HK.js +23 -0
  776. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-zh-TW.js +23 -0
  777. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery-ui.custom.js +6562 -0
  778. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.core.js +320 -0
  779. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.datepicker.js +2038 -0
  780. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.draggable.js +958 -0
  781. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.droppable.js +372 -0
  782. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.effect-blind.js +82 -0
  783. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.effect-bounce.js +113 -0
  784. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.effect-clip.js +67 -0
  785. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.effect-drop.js +65 -0
  786. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.effect-explode.js +97 -0
  787. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.effect-fade.js +30 -0
  788. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.effect-fold.js +76 -0
  789. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.effect-highlight.js +50 -0
  790. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.effect-pulsate.js +63 -0
  791. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.effect-scale.js +318 -0
  792. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.effect-shake.js +74 -0
  793. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.effect-slide.js +64 -0
  794. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.effect-transfer.js +47 -0
  795. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.effect.js +1289 -0
  796. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.mouse.js +169 -0
  797. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.widget.js +521 -0
  798. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery-ui-i18n.min.js +7 -0
  799. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-af.min.js +5 -0
  800. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-ar-DZ.min.js +5 -0
  801. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-ar.min.js +5 -0
  802. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-az.min.js +5 -0
  803. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-be.min.js +5 -0
  804. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-bg.min.js +5 -0
  805. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-bs.min.js +5 -0
  806. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-ca.min.js +5 -0
  807. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-cs.min.js +5 -0
  808. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-cy-GB.min.js +5 -0
  809. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-da.min.js +5 -0
  810. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-de.min.js +5 -0
  811. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-el.min.js +5 -0
  812. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-en-AU.min.js +5 -0
  813. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-en-GB.min.js +5 -0
  814. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-en-NZ.min.js +5 -0
  815. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-eo.min.js +5 -0
  816. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-es.min.js +5 -0
  817. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-et.min.js +5 -0
  818. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-eu.min.js +5 -0
  819. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-fa.min.js +5 -0
  820. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-fi.min.js +5 -0
  821. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-fo.min.js +5 -0
  822. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-fr-CA.min.js +5 -0
  823. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-fr-CH.min.js +5 -0
  824. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-fr.min.js +5 -0
  825. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-gl.min.js +5 -0
  826. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-he.min.js +5 -0
  827. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-hi.min.js +5 -0
  828. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-hr.min.js +5 -0
  829. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-hu.min.js +5 -0
  830. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-hy.min.js +5 -0
  831. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-id.min.js +5 -0
  832. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-is.min.js +5 -0
  833. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-it.min.js +5 -0
  834. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-ja.min.js +5 -0
  835. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-ka.min.js +5 -0
  836. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-kk.min.js +5 -0
  837. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-km.min.js +5 -0
  838. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-ko.min.js +5 -0
  839. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-ky.min.js +5 -0
  840. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-lb.min.js +5 -0
  841. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-lt.min.js +5 -0
  842. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-lv.min.js +5 -0
  843. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-mk.min.js +5 -0
  844. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-ml.min.js +5 -0
  845. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-ms.min.js +5 -0
  846. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-nb.min.js +5 -0
  847. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-nl-BE.min.js +5 -0
  848. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-nl.min.js +5 -0
  849. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-nn.min.js +5 -0
  850. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-no.min.js +5 -0
  851. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-pl.min.js +5 -0
  852. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-pt-BR.min.js +5 -0
  853. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-pt.min.js +5 -0
  854. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-rm.min.js +5 -0
  855. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-ro.min.js +5 -0
  856. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-ru.min.js +5 -0
  857. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-sk.min.js +5 -0
  858. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-sl.min.js +5 -0
  859. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-sq.min.js +5 -0
  860. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-sr-SR.min.js +5 -0
  861. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-sr.min.js +5 -0
  862. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-sv.min.js +5 -0
  863. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-ta.min.js +5 -0
  864. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-th.min.js +5 -0
  865. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-tj.min.js +5 -0
  866. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-tr.min.js +5 -0
  867. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-uk.min.js +5 -0
  868. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-vi.min.js +5 -0
  869. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-zh-CN.min.js +5 -0
  870. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-zh-HK.min.js +5 -0
  871. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-zh-TW.min.js +5 -0
  872. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery-ui.custom.min.js +7 -0
  873. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.core.min.js +5 -0
  874. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.datepicker.min.js +6 -0
  875. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.draggable.min.js +5 -0
  876. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.droppable.min.js +5 -0
  877. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.effect-blind.min.js +5 -0
  878. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.effect-bounce.min.js +5 -0
  879. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.effect-clip.min.js +5 -0
  880. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.effect-drop.min.js +5 -0
  881. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.effect-explode.min.js +5 -0
  882. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.effect-fade.min.js +5 -0
  883. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.effect-fold.min.js +5 -0
  884. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.effect-highlight.min.js +5 -0
  885. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.effect-pulsate.min.js +5 -0
  886. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.effect-scale.min.js +5 -0
  887. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.effect-shake.min.js +5 -0
  888. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.effect-slide.min.js +5 -0
  889. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.effect-transfer.min.js +5 -0
  890. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.effect.min.js +5 -0
  891. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.mouse.min.js +5 -0
  892. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.widget.min.js +5 -0
  893. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/js/jquery-ui-1.10.3.custom.js +7935 -0
  894. data/public/rearview-src/vendor/jquery/plugins/jquery-ui/js/jquery-ui-1.10.3.custom.min.js +7 -0
  895. data/public/rearview-src/vendor/jquery/plugins/jquery.validate.js +51 -0
  896. data/public/rearview-src/vendor/jquery/plugins/timepicker-ui/css/jquery.timepicker.css +31 -0
  897. data/public/rearview-src/vendor/jquery/plugins/timepicker-ui/js/jquery.timepicker.js +2162 -0
  898. data/public/rearview-src/vendor/less/js/less.js +11 -0
  899. data/public/rearview-src/vendor/parsley/js/parsley.js +421 -0
  900. data/public/rearview-src/vendor/parsley/js/parsley.min.js +27 -0
  901. data/public/rearview-src/vendor/require/js/require.js +11408 -0
  902. data/public/rearview-src/vendor/require/plugins/domready/domready.js +129 -0
  903. data/public/rearview-src/vendor/timeline/examples/example.json +38 -0
  904. data/public/rearview-src/vendor/timeline/examples/timeline_json.html +143 -0
  905. data/public/rearview-src/vendor/timeline/timeline.css +130 -0
  906. data/public/rearview-src/vendor/timeline/timeline.js +5055 -0
  907. data/public/rearview-src/vendor/underscore/js/underscore.js +1227 -0
  908. data/public/rearview-src/vendor/underscore/plugins/underscore-string/js/underscore.string.js +644 -0
  909. data/public/rearview-src/vendor/xdate/js/xdate.js +802 -0
  910. data/public/rearview/build.txt +295 -0
  911. data/public/rearview/css/rearview.css +1 -0
  912. data/public/rearview/fonts/ProximaNovaSoft-Bold/ProximaNovaSoft-Bold-webfont.eot +0 -0
  913. data/public/rearview/fonts/ProximaNovaSoft-Bold/ProximaNovaSoft-Bold-webfont.svg +249 -0
  914. data/public/rearview/fonts/ProximaNovaSoft-Bold/ProximaNovaSoft-Bold-webfont.ttf +0 -0
  915. data/public/rearview/fonts/ProximaNovaSoft-Bold/ProximaNovaSoft-Bold-webfont.woff +0 -0
  916. data/public/rearview/fonts/ProximaNovaSoft-Bold/ProximaNovaSoft-Bold.otf +0 -0
  917. data/public/rearview/fonts/ProximaNovaSoft-Regular/ProximaNovaSoft-Regular-webfont.eot +0 -0
  918. data/public/rearview/fonts/ProximaNovaSoft-Regular/ProximaNovaSoft-Regular-webfont.svg +250 -0
  919. data/public/rearview/fonts/ProximaNovaSoft-Regular/ProximaNovaSoft-Regular-webfont.ttf +0 -0
  920. data/public/rearview/fonts/ProximaNovaSoft-Regular/ProximaNovaSoft-Regular-webfont.woff +0 -0
  921. data/public/rearview/fonts/ProximaNovaSoft-Regular/ProximaNovaSoft-Regular.otf +0 -0
  922. data/public/rearview/img/livingsocial-logo-white.svg +107 -0
  923. data/public/rearview/img/login/company-logo.svg +107 -0
  924. data/public/rearview/img/noise-light.png +0 -0
  925. data/public/rearview/img/noise.png +0 -0
  926. data/public/rearview/img/rearview.svg +19 -0
  927. data/public/rearview/img/rearviewlogo.png +0 -0
  928. data/public/rearview/img/rearviewlogo_small.png +0 -0
  929. data/public/rearview/img/sample-monitor.png +0 -0
  930. data/public/rearview/js/app.build.js +0 -0
  931. data/public/rearview/js/app.js +1 -0
  932. data/public/rearview/js/collection/dashboard.js +1 -0
  933. data/public/rearview/js/collection/monitor.js +1 -0
  934. data/public/rearview/js/main.js +402 -0
  935. data/public/rearview/js/model/base.js +1 -0
  936. data/public/rearview/js/model/dashboard.js +1 -0
  937. data/public/rearview/js/model/monitor.js +1 -0
  938. data/public/rearview/js/model/user.js +1 -0
  939. data/public/rearview/js/route/index.js +1 -0
  940. data/public/rearview/js/util/highcharts-gray-theme.js +1 -0
  941. data/public/rearview/js/util/templar.js +1 -0
  942. data/public/rearview/js/view/addcategory.js +1 -0
  943. data/public/rearview/js/view/adddashboard.js +1 -0
  944. data/public/rearview/js/view/addmonitor.js +1 -0
  945. data/public/rearview/js/view/alert.js +1 -0
  946. data/public/rearview/js/view/alerttimeline.js +1 -0
  947. data/public/rearview/js/view/base.js +1 -0
  948. data/public/rearview/js/view/dashboard.js +1 -0
  949. data/public/rearview/js/view/dashboardtile.js +1 -0
  950. data/public/rearview/js/view/deletemonitor.js +1 -0
  951. data/public/rearview/js/view/ecosystem.js +1 -0
  952. data/public/rearview/js/view/expandedmonitor.js +1 -0
  953. data/public/rearview/js/view/header.js +1 -0
  954. data/public/rearview/js/view/primarynav.js +1 -0
  955. data/public/rearview/js/view/resetmonitor.js +1 -0
  956. data/public/rearview/js/view/secondarynav.js +1 -0
  957. data/public/rearview/js/view/smallmonitor.js +1 -0
  958. data/public/rearview/less/alert.less +45 -0
  959. data/public/rearview/less/dashboard.less +173 -0
  960. data/public/rearview/less/ecosystem.less +221 -0
  961. data/public/rearview/less/elements.less +168 -0
  962. data/public/rearview/less/expandedmonitor.less +283 -0
  963. data/public/rearview/less/header.less +76 -0
  964. data/public/rearview/less/login.less +1050 -0
  965. data/public/rearview/less/primarynav.less +151 -0
  966. data/public/rearview/less/rearview.less +1207 -0
  967. data/public/rearview/login/icons/rearview.svg +19 -0
  968. data/public/rearview/templates/addcategory.hbs +38 -0
  969. data/public/rearview/templates/adddashboard.hbs +26 -0
  970. data/public/rearview/templates/addmonitor.hbs +10 -0
  971. data/public/rearview/templates/alert.hbs +4 -0
  972. data/public/rearview/templates/alerttimeline.hbs +15 -0
  973. data/public/rearview/templates/dashboard.hbs +35 -0
  974. data/public/rearview/templates/dashboardtile.hbs +22 -0
  975. data/public/rearview/templates/deletemonitor.hbs +16 -0
  976. data/public/rearview/templates/expandedmonitor.hbs +191 -0
  977. data/public/rearview/templates/header.hbs +9 -0
  978. data/public/rearview/templates/primarynav.hbs +50 -0
  979. data/public/rearview/templates/resetmonitor.hbs +16 -0
  980. data/public/rearview/templates/schedulemonitor.hbs +78 -0
  981. data/public/rearview/templates/secondarynav.hbs +11 -0
  982. data/public/rearview/templates/setmetrics.hbs +53 -0
  983. data/public/rearview/templates/smallmonitor.hbs +52 -0
  984. data/public/rearview/templates/test.txt +1 -0
  985. data/public/rearview/test/spec/model/application.js +1 -0
  986. data/public/rearview/test/spec/model/job.js +1 -0
  987. data/public/rearview/test/spec/model/user.js +1 -0
  988. data/public/rearview/test/spec/view/base.js +1 -0
  989. data/public/rearview/vendor/backbone/js/backbone.js +6 -0
  990. data/public/rearview/vendor/backbone/plugins/backbone-localStorage/js/backbone-localStorage.js +1 -0
  991. data/public/rearview/vendor/backbone/plugins/backbone-mediator/js/backbone-mediator.js +15 -0
  992. data/public/rearview/vendor/bootstrap/css/bootstrap-responsive.css +1088 -0
  993. data/public/rearview/vendor/bootstrap/css/bootstrap-responsive.min.css +9 -0
  994. data/public/rearview/vendor/bootstrap/css/bootstrap.css +5209 -0
  995. data/public/rearview/vendor/bootstrap/css/bootstrap.min.css +9 -0
  996. data/public/rearview/vendor/bootstrap/img/glyphicons-halflings-white.png +0 -0
  997. data/public/rearview/vendor/bootstrap/img/glyphicons-halflings.png +0 -0
  998. data/public/rearview/vendor/bootstrap/js/bootstrap.js +249 -0
  999. data/public/rearview/vendor/bootstrap/js/bootstrap.min.js +7 -0
  1000. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/LICENSE +202 -0
  1001. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/README.md +305 -0
  1002. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/build/build.less +66 -0
  1003. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/build/build_standalone.less +69 -0
  1004. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/css/datepicker.css +271 -0
  1005. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js +21 -0
  1006. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.cs.js +1 -0
  1007. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.da.js +1 -0
  1008. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.de.js +1 -0
  1009. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.es.js +1 -0
  1010. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.fi.js +1 -0
  1011. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.fr.js +1 -0
  1012. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.id.js +1 -0
  1013. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.is.js +1 -0
  1014. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.it.js +1 -0
  1015. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.ja.js +1 -0
  1016. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.kr.js +1 -0
  1017. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.lt.js +1 -0
  1018. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.lv.js +1 -0
  1019. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.ms.js +14 -0
  1020. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.nb.js +1 -0
  1021. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.nl.js +1 -0
  1022. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.pl.js +1 -0
  1023. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.pt-BR.js +1 -0
  1024. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.pt.js +1 -0
  1025. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.ru.js +1 -0
  1026. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.sv.js +1 -0
  1027. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.th.js +1 -0
  1028. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.tr.js +1 -0
  1029. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.zh-CN.js +1 -0
  1030. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/js/locales/bootstrap-datepicker.zh-TW.js +1 -0
  1031. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/less/datepicker.less +147 -0
  1032. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/tests/README.md +55 -0
  1033. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/tests/_coverage.html +26 -0
  1034. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/coverage.js +1 -0
  1035. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/jquery-1.7.1.min.js +5 -0
  1036. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/mock.js +1 -0
  1037. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/qunit-logging.js +1 -0
  1038. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/qunit.css +170 -0
  1039. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/qunit.js +37 -0
  1040. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/utils.js +1 -0
  1041. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/tests/run-qunit.js +1 -0
  1042. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/tests/suites/component.js +1 -0
  1043. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/tests/suites/events.js +1 -0
  1044. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/tests/suites/formats.js +1 -0
  1045. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/tests/suites/keyboard_navigation/2011.js +1 -0
  1046. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/tests/suites/keyboard_navigation/2012.js +1 -0
  1047. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/tests/suites/keyboard_navigation/all.js +1 -0
  1048. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/tests/suites/mouse_navigation/2011.js +1 -0
  1049. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/tests/suites/mouse_navigation/2012.js +1 -0
  1050. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/tests/suites/mouse_navigation/all.js +1 -0
  1051. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/tests/suites/options.js +1 -0
  1052. data/public/rearview/vendor/bootstrap/plugins/bootstrap-datepicker/tests/tests.html +45 -0
  1053. data/public/rearview/vendor/bootstrap/plugins/font-awesome/css/font-awesome-ie7.css +1203 -0
  1054. data/public/rearview/vendor/bootstrap/plugins/font-awesome/css/font-awesome-ie7.min.css +384 -0
  1055. data/public/rearview/vendor/bootstrap/plugins/font-awesome/css/font-awesome.css +1457 -0
  1056. data/public/rearview/vendor/bootstrap/plugins/font-awesome/css/font-awesome.min.css +403 -0
  1057. data/public/rearview/vendor/bootstrap/plugins/font-awesome/font/FontAwesome.otf +0 -0
  1058. data/public/rearview/vendor/bootstrap/plugins/font-awesome/font/fontawesome-webfont.eot +0 -0
  1059. data/public/rearview/vendor/bootstrap/plugins/font-awesome/font/fontawesome-webfont.svg +399 -0
  1060. data/public/rearview/vendor/bootstrap/plugins/font-awesome/font/fontawesome-webfont.ttf +0 -0
  1061. data/public/rearview/vendor/bootstrap/plugins/font-awesome/font/fontawesome-webfont.woff +0 -0
  1062. data/public/rearview/vendor/bootstrap/plugins/font-awesome/less/bootstrap.less +84 -0
  1063. data/public/rearview/vendor/bootstrap/plugins/font-awesome/less/core.less +129 -0
  1064. data/public/rearview/vendor/bootstrap/plugins/font-awesome/less/extras.less +93 -0
  1065. data/public/rearview/vendor/bootstrap/plugins/font-awesome/less/font-awesome-ie7.less +1953 -0
  1066. data/public/rearview/vendor/bootstrap/plugins/font-awesome/less/font-awesome.less +33 -0
  1067. data/public/rearview/vendor/bootstrap/plugins/font-awesome/less/icons.less +381 -0
  1068. data/public/rearview/vendor/bootstrap/plugins/font-awesome/less/mixins.less +48 -0
  1069. data/public/rearview/vendor/bootstrap/plugins/font-awesome/less/path.less +14 -0
  1070. data/public/rearview/vendor/bootstrap/plugins/font-awesome/less/variables.less +735 -0
  1071. data/public/rearview/vendor/bootstrap/plugins/font-awesome/scss/_bootstrap.scss +84 -0
  1072. data/public/rearview/vendor/bootstrap/plugins/font-awesome/scss/_core.scss +129 -0
  1073. data/public/rearview/vendor/bootstrap/plugins/font-awesome/scss/_extras.scss +93 -0
  1074. data/public/rearview/vendor/bootstrap/plugins/font-awesome/scss/_icons.scss +381 -0
  1075. data/public/rearview/vendor/bootstrap/plugins/font-awesome/scss/_mixins.scss +48 -0
  1076. data/public/rearview/vendor/bootstrap/plugins/font-awesome/scss/_path.scss +14 -0
  1077. data/public/rearview/vendor/bootstrap/plugins/font-awesome/scss/_variables.scss +734 -0
  1078. data/public/rearview/vendor/bootstrap/plugins/font-awesome/scss/font-awesome-ie7.scss +1953 -0
  1079. data/public/rearview/vendor/bootstrap/plugins/font-awesome/scss/font-awesome.scss +33 -0
  1080. data/public/rearview/vendor/codemirror/LICENSE +23 -0
  1081. data/public/rearview/vendor/codemirror/README.md +8 -0
  1082. data/public/rearview/vendor/codemirror/demo/activeline.html +73 -0
  1083. data/public/rearview/vendor/codemirror/demo/changemode.html +51 -0
  1084. data/public/rearview/vendor/codemirror/demo/closetag.html +66 -0
  1085. data/public/rearview/vendor/codemirror/demo/complete.html +71 -0
  1086. data/public/rearview/vendor/codemirror/demo/emacs.html +60 -0
  1087. data/public/rearview/vendor/codemirror/demo/folding.html +62 -0
  1088. data/public/rearview/vendor/codemirror/demo/formatting.html +81 -0
  1089. data/public/rearview/vendor/codemirror/demo/fullscreen.html +147 -0
  1090. data/public/rearview/vendor/codemirror/demo/loadmode.html +40 -0
  1091. data/public/rearview/vendor/codemirror/demo/marker.html +53 -0
  1092. data/public/rearview/vendor/codemirror/demo/matchhighlighter.html +38 -0
  1093. data/public/rearview/vendor/codemirror/demo/multiplex.html +60 -0
  1094. data/public/rearview/vendor/codemirror/demo/mustache.html +58 -0
  1095. data/public/rearview/vendor/codemirror/demo/preview.html +76 -0
  1096. data/public/rearview/vendor/codemirror/demo/resize.html +42 -0
  1097. data/public/rearview/vendor/codemirror/demo/runmode.html +50 -0
  1098. data/public/rearview/vendor/codemirror/demo/search.html +85 -0
  1099. data/public/rearview/vendor/codemirror/demo/theme.html +79 -0
  1100. data/public/rearview/vendor/codemirror/demo/vim.html +53 -0
  1101. data/public/rearview/vendor/codemirror/demo/visibletabs.html +53 -0
  1102. data/public/rearview/vendor/codemirror/demo/xmlcomplete.html +71 -0
  1103. data/public/rearview/vendor/codemirror/doc/baboon.png +0 -0
  1104. data/public/rearview/vendor/codemirror/doc/baboon_vector.svg +153 -0
  1105. data/public/rearview/vendor/codemirror/doc/compress.html +163 -0
  1106. data/public/rearview/vendor/codemirror/doc/docs.css +138 -0
  1107. data/public/rearview/vendor/codemirror/doc/internals.html +497 -0
  1108. data/public/rearview/vendor/codemirror/doc/manual.html +1224 -0
  1109. data/public/rearview/vendor/codemirror/doc/oldrelease.html +305 -0
  1110. data/public/rearview/vendor/codemirror/doc/reporting.html +60 -0
  1111. data/public/rearview/vendor/codemirror/doc/upgrade_v2.2.html +98 -0
  1112. data/public/rearview/vendor/codemirror/index.html +472 -0
  1113. data/public/rearview/vendor/codemirror/keymap/emacs.js +1 -0
  1114. data/public/rearview/vendor/codemirror/keymap/vim.js +1 -0
  1115. data/public/rearview/vendor/codemirror/lib/codemirror.css +149 -0
  1116. data/public/rearview/vendor/codemirror/lib/codemirror.js +2 -0
  1117. data/public/rearview/vendor/codemirror/lib/util/closetag.js +20 -0
  1118. data/public/rearview/vendor/codemirror/lib/util/dialog.css +24 -0
  1119. data/public/rearview/vendor/codemirror/lib/util/dialog.js +1 -0
  1120. data/public/rearview/vendor/codemirror/lib/util/foldcode.js +5 -0
  1121. data/public/rearview/vendor/codemirror/lib/util/formatting.js +1 -0
  1122. data/public/rearview/vendor/codemirror/lib/util/javascript-hint.js +1 -0
  1123. data/public/rearview/vendor/codemirror/lib/util/loadmode.js +1 -0
  1124. data/public/rearview/vendor/codemirror/lib/util/match-highlighter.js +1 -0
  1125. data/public/rearview/vendor/codemirror/lib/util/multiplex.js +1 -0
  1126. data/public/rearview/vendor/codemirror/lib/util/overlay.js +1 -0
  1127. data/public/rearview/vendor/codemirror/lib/util/pig-hint.js +1 -0
  1128. data/public/rearview/vendor/codemirror/lib/util/runmode-standalone.js +1 -0
  1129. data/public/rearview/vendor/codemirror/lib/util/runmode.js +1 -0
  1130. data/public/rearview/vendor/codemirror/lib/util/search.js +1 -0
  1131. data/public/rearview/vendor/codemirror/lib/util/searchcursor.js +1 -0
  1132. data/public/rearview/vendor/codemirror/lib/util/simple-hint.css +16 -0
  1133. data/public/rearview/vendor/codemirror/lib/util/simple-hint.js +1 -0
  1134. data/public/rearview/vendor/codemirror/lib/util/xml-hint.js +1 -0
  1135. data/public/rearview/vendor/codemirror/mode/clike/clike.js +1 -0
  1136. data/public/rearview/vendor/codemirror/mode/clike/index.html +102 -0
  1137. data/public/rearview/vendor/codemirror/mode/clike/scala.html +766 -0
  1138. data/public/rearview/vendor/codemirror/mode/clojure/clojure.js +1 -0
  1139. data/public/rearview/vendor/codemirror/mode/clojure/index.html +67 -0
  1140. data/public/rearview/vendor/codemirror/mode/coffeescript/LICENSE +22 -0
  1141. data/public/rearview/vendor/codemirror/mode/coffeescript/coffeescript.js +1 -0
  1142. data/public/rearview/vendor/codemirror/mode/coffeescript/index.html +728 -0
  1143. data/public/rearview/vendor/codemirror/mode/commonlisp/commonlisp.js +1 -0
  1144. data/public/rearview/vendor/codemirror/mode/commonlisp/index.html +165 -0
  1145. data/public/rearview/vendor/codemirror/mode/css/css.js +1 -0
  1146. data/public/rearview/vendor/codemirror/mode/css/index.html +58 -0
  1147. data/public/rearview/vendor/codemirror/mode/css/test.js +1 -0
  1148. data/public/rearview/vendor/codemirror/mode/diff/diff.js +1 -0
  1149. data/public/rearview/vendor/codemirror/mode/diff/index.html +105 -0
  1150. data/public/rearview/vendor/codemirror/mode/ecl/ecl.js +1 -0
  1151. data/public/rearview/vendor/codemirror/mode/ecl/index.html +42 -0
  1152. data/public/rearview/vendor/codemirror/mode/erlang/erlang.js +1 -0
  1153. data/public/rearview/vendor/codemirror/mode/erlang/index.html +63 -0
  1154. data/public/rearview/vendor/codemirror/mode/gfm/gfm.js +1 -0
  1155. data/public/rearview/vendor/codemirror/mode/gfm/index.html +48 -0
  1156. data/public/rearview/vendor/codemirror/mode/go/go.js +1 -0
  1157. data/public/rearview/vendor/codemirror/mode/go/index.html +73 -0
  1158. data/public/rearview/vendor/codemirror/mode/groovy/groovy.js +1 -0
  1159. data/public/rearview/vendor/codemirror/mode/groovy/index.html +72 -0
  1160. data/public/rearview/vendor/codemirror/mode/haskell/haskell.js +1 -0
  1161. data/public/rearview/vendor/codemirror/mode/haskell/index.html +61 -0
  1162. data/public/rearview/vendor/codemirror/mode/haxe/haxe.js +1 -0
  1163. data/public/rearview/vendor/codemirror/mode/haxe/index.html +91 -0
  1164. data/public/rearview/vendor/codemirror/mode/htmlembedded/htmlembedded.js +1 -0
  1165. data/public/rearview/vendor/codemirror/mode/htmlembedded/index.html +50 -0
  1166. data/public/rearview/vendor/codemirror/mode/htmlmixed/htmlmixed.js +1 -0
  1167. data/public/rearview/vendor/codemirror/mode/htmlmixed/index.html +52 -0
  1168. data/public/rearview/vendor/codemirror/mode/javascript/index.html +78 -0
  1169. data/public/rearview/vendor/codemirror/mode/javascript/javascript.js +1 -0
  1170. data/public/rearview/vendor/codemirror/mode/jinja2/index.html +38 -0
  1171. data/public/rearview/vendor/codemirror/mode/jinja2/jinja2.js +1 -0
  1172. data/public/rearview/vendor/codemirror/mode/less/index.html +740 -0
  1173. data/public/rearview/vendor/codemirror/mode/less/less.js +1 -0
  1174. data/public/rearview/vendor/codemirror/mode/lua/index.html +73 -0
  1175. data/public/rearview/vendor/codemirror/mode/lua/lua.js +1 -0
  1176. data/public/rearview/vendor/codemirror/mode/markdown/index.html +343 -0
  1177. data/public/rearview/vendor/codemirror/mode/markdown/markdown.js +1 -0
  1178. data/public/rearview/vendor/codemirror/mode/markdown/test.js +1 -0
  1179. data/public/rearview/vendor/codemirror/mode/mysql/index.html +42 -0
  1180. data/public/rearview/vendor/codemirror/mode/mysql/mysql.js +1 -0
  1181. data/public/rearview/vendor/codemirror/mode/ntriples/index.html +33 -0
  1182. data/public/rearview/vendor/codemirror/mode/ntriples/ntriples.js +1 -0
  1183. data/public/rearview/vendor/codemirror/mode/ocaml/index.html +130 -0
  1184. data/public/rearview/vendor/codemirror/mode/ocaml/ocaml.js +1 -0
  1185. data/public/rearview/vendor/codemirror/mode/pascal/LICENSE +7 -0
  1186. data/public/rearview/vendor/codemirror/mode/pascal/index.html +49 -0
  1187. data/public/rearview/vendor/codemirror/mode/pascal/pascal.js +1 -0
  1188. data/public/rearview/vendor/codemirror/mode/perl/LICENSE +19 -0
  1189. data/public/rearview/vendor/codemirror/mode/perl/index.html +63 -0
  1190. data/public/rearview/vendor/codemirror/mode/perl/perl.js +1 -0
  1191. data/public/rearview/vendor/codemirror/mode/php/index.html +49 -0
  1192. data/public/rearview/vendor/codemirror/mode/php/php.js +1 -0
  1193. data/public/rearview/vendor/codemirror/mode/pig/index.html +43 -0
  1194. data/public/rearview/vendor/codemirror/mode/pig/pig.js +1 -0
  1195. data/public/rearview/vendor/codemirror/mode/plsql/index.html +63 -0
  1196. data/public/rearview/vendor/codemirror/mode/plsql/plsql.js +1 -0
  1197. data/public/rearview/vendor/codemirror/mode/properties/index.html +41 -0
  1198. data/public/rearview/vendor/codemirror/mode/properties/properties.js +1 -0
  1199. data/public/rearview/vendor/codemirror/mode/python/LICENSE.txt +21 -0
  1200. data/public/rearview/vendor/codemirror/mode/python/index.html +123 -0
  1201. data/public/rearview/vendor/codemirror/mode/python/python.js +1 -0
  1202. data/public/rearview/vendor/codemirror/mode/r/LICENSE +24 -0
  1203. data/public/rearview/vendor/codemirror/mode/r/index.html +74 -0
  1204. data/public/rearview/vendor/codemirror/mode/r/r.js +1 -0
  1205. data/public/rearview/vendor/codemirror/mode/rpm/changes/changes.js +1 -0
  1206. data/public/rearview/vendor/codemirror/mode/rpm/changes/index.html +54 -0
  1207. data/public/rearview/vendor/codemirror/mode/rpm/spec/index.html +100 -0
  1208. data/public/rearview/vendor/codemirror/mode/rpm/spec/spec.css +5 -0
  1209. data/public/rearview/vendor/codemirror/mode/rpm/spec/spec.js +1 -0
  1210. data/public/rearview/vendor/codemirror/mode/rst/index.html +526 -0
  1211. data/public/rearview/vendor/codemirror/mode/rst/rst.js +1 -0
  1212. data/public/rearview/vendor/codemirror/mode/ruby/LICENSE +24 -0
  1213. data/public/rearview/vendor/codemirror/mode/ruby/index.html +172 -0
  1214. data/public/rearview/vendor/codemirror/mode/ruby/ruby.js +1 -0
  1215. data/public/rearview/vendor/codemirror/mode/rust/index.html +49 -0
  1216. data/public/rearview/vendor/codemirror/mode/rust/rust.js +1 -0
  1217. data/public/rearview/vendor/codemirror/mode/scheme/index.html +65 -0
  1218. data/public/rearview/vendor/codemirror/mode/scheme/scheme.js +1 -0
  1219. data/public/rearview/vendor/codemirror/mode/shell/index.html +50 -0
  1220. data/public/rearview/vendor/codemirror/mode/shell/shell.js +1 -0
  1221. data/public/rearview/vendor/codemirror/mode/sieve/LICENSE +23 -0
  1222. data/public/rearview/vendor/codemirror/mode/sieve/index.html +81 -0
  1223. data/public/rearview/vendor/codemirror/mode/sieve/sieve.js +6 -0
  1224. data/public/rearview/vendor/codemirror/mode/smalltalk/index.html +56 -0
  1225. data/public/rearview/vendor/codemirror/mode/smalltalk/smalltalk.js +1 -0
  1226. data/public/rearview/vendor/codemirror/mode/smarty/index.html +83 -0
  1227. data/public/rearview/vendor/codemirror/mode/smarty/smarty.js +1 -0
  1228. data/public/rearview/vendor/codemirror/mode/sparql/index.html +41 -0
  1229. data/public/rearview/vendor/codemirror/mode/sparql/sparql.js +1 -0
  1230. data/public/rearview/vendor/codemirror/mode/stex/index.html +98 -0
  1231. data/public/rearview/vendor/codemirror/mode/stex/stex.js +1 -0
  1232. data/public/rearview/vendor/codemirror/mode/stex/test.js +1 -0
  1233. data/public/rearview/vendor/codemirror/mode/tiddlywiki/index.html +141 -0
  1234. data/public/rearview/vendor/codemirror/mode/tiddlywiki/tiddlywiki.css +14 -0
  1235. data/public/rearview/vendor/codemirror/mode/tiddlywiki/tiddlywiki.js +17 -0
  1236. data/public/rearview/vendor/codemirror/mode/tiki/index.html +83 -0
  1237. data/public/rearview/vendor/codemirror/mode/tiki/tiki.css +22 -0
  1238. data/public/rearview/vendor/codemirror/mode/tiki/tiki.js +1 -0
  1239. data/public/rearview/vendor/codemirror/mode/vb/LICENSE.txt +21 -0
  1240. data/public/rearview/vendor/codemirror/mode/vb/index.html +89 -0
  1241. data/public/rearview/vendor/codemirror/mode/vb/vb.js +1 -0
  1242. data/public/rearview/vendor/codemirror/mode/vbscript/index.html +43 -0
  1243. data/public/rearview/vendor/codemirror/mode/vbscript/vbscript.js +1 -0
  1244. data/public/rearview/vendor/codemirror/mode/velocity/index.html +104 -0
  1245. data/public/rearview/vendor/codemirror/mode/velocity/velocity.js +1 -0
  1246. data/public/rearview/vendor/codemirror/mode/verilog/index.html +211 -0
  1247. data/public/rearview/vendor/codemirror/mode/verilog/verilog.js +1 -0
  1248. data/public/rearview/vendor/codemirror/mode/xml/index.html +45 -0
  1249. data/public/rearview/vendor/codemirror/mode/xml/xml.js +1 -0
  1250. data/public/rearview/vendor/codemirror/mode/xquery/LICENSE +20 -0
  1251. data/public/rearview/vendor/codemirror/mode/xquery/index.html +223 -0
  1252. data/public/rearview/vendor/codemirror/mode/xquery/test/index.html +27 -0
  1253. data/public/rearview/vendor/codemirror/mode/xquery/test/testBase.js +1 -0
  1254. data/public/rearview/vendor/codemirror/mode/xquery/test/testEmptySequenceKeyword.js +1 -0
  1255. data/public/rearview/vendor/codemirror/mode/xquery/test/testMultiAttr.js +1 -0
  1256. data/public/rearview/vendor/codemirror/mode/xquery/test/testNamespaces.js +1 -0
  1257. data/public/rearview/vendor/codemirror/mode/xquery/test/testProcessingInstructions.js +1 -0
  1258. data/public/rearview/vendor/codemirror/mode/xquery/test/testQuotes.js +1 -0
  1259. data/public/rearview/vendor/codemirror/mode/xquery/xquery.js +24 -0
  1260. data/public/rearview/vendor/codemirror/mode/yaml/index.html +68 -0
  1261. data/public/rearview/vendor/codemirror/mode/yaml/yaml.js +1 -0
  1262. data/public/rearview/vendor/codemirror/package.json +21 -0
  1263. data/public/rearview/vendor/codemirror/test/driver.js +1 -0
  1264. data/public/rearview/vendor/codemirror/test/index.html +168 -0
  1265. data/public/rearview/vendor/codemirror/test/lint/lint.js +1 -0
  1266. data/public/rearview/vendor/codemirror/test/lint/parse-js.js +60 -0
  1267. data/public/rearview/vendor/codemirror/test/mode_test.css +9 -0
  1268. data/public/rearview/vendor/codemirror/test/mode_test.js +1 -0
  1269. data/public/rearview/vendor/codemirror/test/phantom_driver.js +1 -0
  1270. data/public/rearview/vendor/codemirror/test/run.js +32 -0
  1271. data/public/rearview/vendor/codemirror/test/test.js +1 -0
  1272. data/public/rearview/vendor/codemirror/theme/ambiance.css +67 -0
  1273. data/public/rearview/vendor/codemirror/theme/blackboard.css +23 -0
  1274. data/public/rearview/vendor/codemirror/theme/cobalt.css +17 -0
  1275. data/public/rearview/vendor/codemirror/theme/eclipse.css +24 -0
  1276. data/public/rearview/vendor/codemirror/theme/elegant.css +10 -0
  1277. data/public/rearview/vendor/codemirror/theme/erlang-dark.css +20 -0
  1278. data/public/rearview/vendor/codemirror/theme/lesser-dark.css +37 -0
  1279. data/public/rearview/vendor/codemirror/theme/monokai.css +23 -0
  1280. data/public/rearview/vendor/codemirror/theme/neat.css +9 -0
  1281. data/public/rearview/vendor/codemirror/theme/night.css +19 -0
  1282. data/public/rearview/vendor/codemirror/theme/rubyblue.css +19 -0
  1283. data/public/rearview/vendor/codemirror/theme/vibrant-ink.css +24 -0
  1284. data/public/rearview/vendor/codemirror/theme/xq-dark.css +42 -0
  1285. data/public/rearview/vendor/handlebars/js/handlebars.js +2 -0
  1286. data/public/rearview/vendor/highcharts/examples/area-basic/index.htm +94 -0
  1287. data/public/rearview/vendor/highcharts/examples/area-inverted/index.htm +91 -0
  1288. data/public/rearview/vendor/highcharts/examples/area-missing/index.htm +85 -0
  1289. data/public/rearview/vendor/highcharts/examples/area-negative/index.htm +55 -0
  1290. data/public/rearview/vendor/highcharts/examples/area-stacked-percent/index.htm +82 -0
  1291. data/public/rearview/vendor/highcharts/examples/area-stacked/index.htm +86 -0
  1292. data/public/rearview/vendor/highcharts/examples/arearange/index.htm +62 -0
  1293. data/public/rearview/vendor/highcharts/examples/areaspline/index.htm +85 -0
  1294. data/public/rearview/vendor/highcharts/examples/bar-basic/index.htm +89 -0
  1295. data/public/rearview/vendor/highcharts/examples/bar-negative-stack/index.htm +87 -0
  1296. data/public/rearview/vendor/highcharts/examples/bar-stacked/index.htm +67 -0
  1297. data/public/rearview/vendor/highcharts/examples/column-basic/index.htm +97 -0
  1298. data/public/rearview/vendor/highcharts/examples/column-drilldown/index.htm +155 -0
  1299. data/public/rearview/vendor/highcharts/examples/column-negative/index.htm +55 -0
  1300. data/public/rearview/vendor/highcharts/examples/column-parsed/index.htm +120 -0
  1301. data/public/rearview/vendor/highcharts/examples/column-rotated-labels/index.htm +100 -0
  1302. data/public/rearview/vendor/highcharts/examples/column-stacked-and-grouped/index.htm +79 -0
  1303. data/public/rearview/vendor/highcharts/examples/column-stacked-percent/index.htm +63 -0
  1304. data/public/rearview/vendor/highcharts/examples/column-stacked/index.htm +86 -0
  1305. data/public/rearview/vendor/highcharts/examples/columnrange/index.htm +87 -0
  1306. data/public/rearview/vendor/highcharts/examples/combo-dual-axes/index.htm +101 -0
  1307. data/public/rearview/vendor/highcharts/examples/combo-multi-axes/index.htm +137 -0
  1308. data/public/rearview/vendor/highcharts/examples/combo-regression/index.htm +60 -0
  1309. data/public/rearview/vendor/highcharts/examples/combo/index.htm +102 -0
  1310. data/public/rearview/vendor/highcharts/examples/dynamic-click-to-add/index.htm +88 -0
  1311. data/public/rearview/vendor/highcharts/examples/dynamic-master-detail/index.htm +371 -0
  1312. data/public/rearview/vendor/highcharts/examples/dynamic-update/index.htm +96 -0
  1313. data/public/rearview/vendor/highcharts/examples/gauge-clock/index.htm +174 -0
  1314. data/public/rearview/vendor/highcharts/examples/gauge-dual/index.htm +122 -0
  1315. data/public/rearview/vendor/highcharts/examples/gauge-speedometer/index.htm +133 -0
  1316. data/public/rearview/vendor/highcharts/examples/gauge-vu-meter/index.htm +148 -0
  1317. data/public/rearview/vendor/highcharts/examples/line-ajax/analytics.tsv +87 -0
  1318. data/public/rearview/vendor/highcharts/examples/line-ajax/index.htm +188 -0
  1319. data/public/rearview/vendor/highcharts/examples/line-basic/index.htm +81 -0
  1320. data/public/rearview/vendor/highcharts/examples/line-labels/index.htm +66 -0
  1321. data/public/rearview/vendor/highcharts/examples/line-log-axis/index.htm +53 -0
  1322. data/public/rearview/vendor/highcharts/examples/line-time-series/index.htm +206 -0
  1323. data/public/rearview/vendor/highcharts/examples/pie-basic/index.htm +70 -0
  1324. data/public/rearview/vendor/highcharts/examples/pie-donut/index.htm +146 -0
  1325. data/public/rearview/vendor/highcharts/examples/pie-gradient/index.htm +83 -0
  1326. data/public/rearview/vendor/highcharts/examples/pie-legend/index.htm +69 -0
  1327. data/public/rearview/vendor/highcharts/examples/polar-spider/index.htm +75 -0
  1328. data/public/rearview/vendor/highcharts/examples/polar-wind-rose/index.htm +307 -0
  1329. data/public/rearview/vendor/highcharts/examples/polar/index.htm +79 -0
  1330. data/public/rearview/vendor/highcharts/examples/scatter/index.htm +197 -0
  1331. data/public/rearview/vendor/highcharts/examples/spline-inverted/index.htm +87 -0
  1332. data/public/rearview/vendor/highcharts/examples/spline-irregular-time/index.htm +133 -0
  1333. data/public/rearview/vendor/highcharts/examples/spline-plot-bands/index.htm +169 -0
  1334. data/public/rearview/vendor/highcharts/examples/spline-symbols/index.htm +87 -0
  1335. data/public/rearview/vendor/highcharts/exporting-server/java/highcharts-export/pom.xml +106 -0
  1336. data/public/rearview/vendor/highcharts/exporting-server/java/highcharts-export/src/main/java/com/highcharts/export/controller/ExportController.java +229 -0
  1337. data/public/rearview/vendor/highcharts/exporting-server/java/highcharts-export/src/main/java/com/highcharts/export/filters/DefaultEncodingFilter.java +79 -0
  1338. data/public/rearview/vendor/highcharts/exporting-server/java/highcharts-export/src/main/java/com/highcharts/export/util/MimeType.java +34 -0
  1339. data/public/rearview/vendor/highcharts/exporting-server/java/highcharts-export/src/main/java/com/highcharts/export/util/SVGRasterizer.java +77 -0
  1340. data/public/rearview/vendor/highcharts/exporting-server/java/highcharts-export/src/main/java/com/highcharts/export/util/SVGRasterizerException.java +22 -0
  1341. data/public/rearview/vendor/highcharts/exporting-server/java/highcharts-export/src/main/resources/log4j.properties +17 -0
  1342. data/public/rearview/vendor/highcharts/exporting-server/java/highcharts-export/src/main/webapp/WEB-INF/web.xml +22 -0
  1343. data/public/rearview/vendor/highcharts/exporting-server/java/install.txt +10 -0
  1344. data/public/rearview/vendor/highcharts/exporting-server/php/index-with-imagick.php +112 -0
  1345. data/public/rearview/vendor/highcharts/exporting-server/php/index.php +112 -0
  1346. data/public/rearview/vendor/highcharts/gfx/vml-radial-gradient.png +0 -0
  1347. data/public/rearview/vendor/highcharts/graphics/skies.jpg +0 -0
  1348. data/public/rearview/vendor/highcharts/graphics/snow.png +0 -0
  1349. data/public/rearview/vendor/highcharts/graphics/sun.png +0 -0
  1350. data/public/rearview/vendor/highcharts/index.htm +79 -0
  1351. data/public/rearview/vendor/highcharts/js/adapters/mootools-adapter.js +10 -0
  1352. data/public/rearview/vendor/highcharts/js/adapters/mootools-adapter.src.js +10 -0
  1353. data/public/rearview/vendor/highcharts/js/adapters/prototype-adapter.js +11 -0
  1354. data/public/rearview/vendor/highcharts/js/adapters/prototype-adapter.src.js +11 -0
  1355. data/public/rearview/vendor/highcharts/js/highcharts-more.js +9 -0
  1356. data/public/rearview/vendor/highcharts/js/highcharts.js +12 -0
  1357. data/public/rearview/vendor/highcharts/js/highcharts.src.js +12 -0
  1358. data/public/rearview/vendor/highcharts/js/modules/canvas-tools.js +23 -0
  1359. data/public/rearview/vendor/highcharts/js/modules/canvas-tools.src.js +29 -0
  1360. data/public/rearview/vendor/highcharts/js/modules/data.js +9 -0
  1361. data/public/rearview/vendor/highcharts/js/modules/data.src.js +9 -0
  1362. data/public/rearview/vendor/highcharts/js/modules/exporting.js +10 -0
  1363. data/public/rearview/vendor/highcharts/js/modules/exporting.src.js +10 -0
  1364. data/public/rearview/vendor/highcharts/js/themes/dark-blue.js +1 -0
  1365. data/public/rearview/vendor/highcharts/js/themes/dark-green.js +1 -0
  1366. data/public/rearview/vendor/highcharts/js/themes/gray.js +1 -0
  1367. data/public/rearview/vendor/highcharts/js/themes/grid.js +1 -0
  1368. data/public/rearview/vendor/highcharts/js/themes/skies.js +1 -0
  1369. data/public/rearview/vendor/jasmine/SpecRunner.html +53 -0
  1370. data/public/rearview/vendor/jasmine/lib/jasmine-1.3.1/MIT.LICENSE +20 -0
  1371. data/public/rearview/vendor/jasmine/lib/jasmine-1.3.1/jasmine-html.js +1 -0
  1372. data/public/rearview/vendor/jasmine/lib/jasmine-1.3.1/jasmine.css +80 -0
  1373. data/public/rearview/vendor/jasmine/lib/jasmine-1.3.1/jasmine.js +2 -0
  1374. data/public/rearview/vendor/jasmine/spec/PlayerSpec.js +1 -0
  1375. data/public/rearview/vendor/jasmine/spec/SpecHelper.js +1 -0
  1376. data/public/rearview/vendor/jasmine/src/Player.js +1 -0
  1377. data/public/rearview/vendor/jasmine/src/Song.js +1 -0
  1378. data/public/rearview/vendor/jquery/js/jquery.js +24 -0
  1379. data/public/rearview/vendor/jquery/plugins/jquery-ui/css/dark-hive/images/animated-overlay.gif +0 -0
  1380. data/public/rearview/vendor/jquery/plugins/jquery-ui/css/dark-hive/images/ui-bg_flat_30_cccccc_40x100.png +0 -0
  1381. data/public/rearview/vendor/jquery/plugins/jquery-ui/css/dark-hive/images/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
  1382. data/public/rearview/vendor/jquery/plugins/jquery-ui/css/dark-hive/images/ui-bg_glass_40_ffc73d_1x400.png +0 -0
  1383. data/public/rearview/vendor/jquery/plugins/jquery-ui/css/dark-hive/images/ui-bg_highlight-hard_20_0972a5_1x100.png +0 -0
  1384. data/public/rearview/vendor/jquery/plugins/jquery-ui/css/dark-hive/images/ui-bg_highlight-soft_33_003147_1x100.png +0 -0
  1385. data/public/rearview/vendor/jquery/plugins/jquery-ui/css/dark-hive/images/ui-bg_highlight-soft_35_222222_1x100.png +0 -0
  1386. data/public/rearview/vendor/jquery/plugins/jquery-ui/css/dark-hive/images/ui-bg_highlight-soft_44_444444_1x100.png +0 -0
  1387. data/public/rearview/vendor/jquery/plugins/jquery-ui/css/dark-hive/images/ui-bg_highlight-soft_80_eeeeee_1x100.png +0 -0
  1388. data/public/rearview/vendor/jquery/plugins/jquery-ui/css/dark-hive/images/ui-bg_loop_25_000000_21x21.png +0 -0
  1389. data/public/rearview/vendor/jquery/plugins/jquery-ui/css/dark-hive/images/ui-icons_222222_256x240.png +0 -0
  1390. data/public/rearview/vendor/jquery/plugins/jquery-ui/css/dark-hive/images/ui-icons_4b8e0b_256x240.png +0 -0
  1391. data/public/rearview/vendor/jquery/plugins/jquery-ui/css/dark-hive/images/ui-icons_a83300_256x240.png +0 -0
  1392. data/public/rearview/vendor/jquery/plugins/jquery-ui/css/dark-hive/images/ui-icons_cccccc_256x240.png +0 -0
  1393. data/public/rearview/vendor/jquery/plugins/jquery-ui/css/dark-hive/images/ui-icons_ffffff_256x240.png +0 -0
  1394. data/public/rearview/vendor/jquery/plugins/jquery-ui/css/dark-hive/jquery-ui-1.10.3.custom.css +732 -0
  1395. data/public/rearview/vendor/jquery/plugins/jquery-ui/css/dark-hive/jquery-ui-1.10.3.custom.min.css +6 -0
  1396. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/AUTHORS.txt +245 -0
  1397. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/Gruntfile.js +1 -0
  1398. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/MIT-LICENSE.txt +26 -0
  1399. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/README.md +99 -0
  1400. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/addClass/default.html +45 -0
  1401. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/addClass/index.html +14 -0
  1402. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/animate/default.html +55 -0
  1403. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/animate/index.html +14 -0
  1404. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/alt-field.html +29 -0
  1405. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/animation.html +51 -0
  1406. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/buttonbar.html +28 -0
  1407. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/date-formats.html +40 -0
  1408. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/date-range.html +44 -0
  1409. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/default.html +26 -0
  1410. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/dropdown-month-year.html +29 -0
  1411. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/icon-trigger.html +30 -0
  1412. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/images/calendar.gif +0 -0
  1413. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/index.html +27 -0
  1414. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/inline.html +26 -0
  1415. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/jquery.ui.datepicker-ar.js +1 -0
  1416. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/jquery.ui.datepicker-fr.js +1 -0
  1417. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/jquery.ui.datepicker-he.js +1 -0
  1418. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/jquery.ui.datepicker-zh-TW.js +1 -0
  1419. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/localization.html +41 -0
  1420. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/min-max.html +26 -0
  1421. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/multiple-calendars.html +29 -0
  1422. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/other-months.html +30 -0
  1423. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/datepicker/show-week.html +32 -0
  1424. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/demos.css +16 -0
  1425. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/draggable/constrain-movement.html +58 -0
  1426. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/draggable/cursor-style.html +42 -0
  1427. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/draggable/default.html +32 -0
  1428. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/draggable/delay-start.html +38 -0
  1429. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/draggable/events.html +70 -0
  1430. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/draggable/handle.html +41 -0
  1431. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/draggable/index.html +24 -0
  1432. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/draggable/revert.html +37 -0
  1433. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/draggable/scroll.html +44 -0
  1434. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/draggable/snap-to.html +61 -0
  1435. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/draggable/sortable.html +50 -0
  1436. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/draggable/visual-feedback.html +70 -0
  1437. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/accepted-elements.html +53 -0
  1438. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/default.html +46 -0
  1439. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/images/high_tatras.jpg +0 -0
  1440. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/images/high_tatras2.jpg +0 -0
  1441. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/images/high_tatras2_min.jpg +0 -0
  1442. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/images/high_tatras3.jpg +0 -0
  1443. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/images/high_tatras3_min.jpg +0 -0
  1444. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/images/high_tatras4.jpg +0 -0
  1445. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/images/high_tatras4_min.jpg +0 -0
  1446. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/images/high_tatras_min.jpg +0 -0
  1447. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/index.html +20 -0
  1448. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/photo-manager.html +182 -0
  1449. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/propagation.html +73 -0
  1450. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/revert.html +54 -0
  1451. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/shopping-cart.html +94 -0
  1452. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/droppable/visual-feedback.html +72 -0
  1453. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/effect/default.html +102 -0
  1454. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/effect/easing.html +102 -0
  1455. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/effect/index.html +15 -0
  1456. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/hide/default.html +95 -0
  1457. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/hide/index.html +14 -0
  1458. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/images/calendar.gif +0 -0
  1459. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/images/demo-config-on-tile.gif +0 -0
  1460. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/images/demo-config-on.gif +0 -0
  1461. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/images/demo-spindown-closed.gif +0 -0
  1462. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/images/demo-spindown-open.gif +0 -0
  1463. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/images/icon-docs-info.gif +0 -0
  1464. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/images/pbar-ani.gif +0 -0
  1465. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/index.html +26 -0
  1466. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/removeClass/default.html +45 -0
  1467. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/removeClass/index.html +14 -0
  1468. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/show/default.html +97 -0
  1469. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/show/index.html +14 -0
  1470. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/switchClass/default.html +40 -0
  1471. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/switchClass/index.html +14 -0
  1472. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/toggle/default.html +103 -0
  1473. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/toggle/index.html +14 -0
  1474. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/toggleClass/default.html +39 -0
  1475. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/toggleClass/index.html +14 -0
  1476. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/widget/default.html +178 -0
  1477. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/demos/widget/index.html +14 -0
  1478. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/docs/blind-effect.html +58 -0
  1479. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/docs/bounce-effect.html +61 -0
  1480. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/docs/clip-effect.html +55 -0
  1481. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/docs/datepicker.html +946 -0
  1482. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/docs/draggable.html +741 -0
  1483. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/docs/drop-effect.html +55 -0
  1484. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/docs/droppable.html +548 -0
  1485. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/docs/explode-effect.html +52 -0
  1486. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/docs/fade-effect.html +43 -0
  1487. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/docs/fold-effect.html +61 -0
  1488. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/docs/highlight-effect.html +52 -0
  1489. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/docs/jQuery.widget.html +611 -0
  1490. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/docs/mouse.html +216 -0
  1491. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/docs/puff-effect.html +52 -0
  1492. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/docs/pulsate-effect.html +52 -0
  1493. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/docs/scale-effect.html +82 -0
  1494. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/docs/shake-effect.html +66 -0
  1495. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/docs/size-effect.html +65 -0
  1496. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/docs/slide-effect.html +59 -0
  1497. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/docs/transfer-effect.html +61 -0
  1498. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/external/globalize.culture.de-DE.js +14 -0
  1499. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/external/globalize.culture.ja-JP.js +14 -0
  1500. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/external/globalize.js +11 -0
  1501. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/external/jquery.mousewheel.js +13 -0
  1502. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/external/jshint.js +34 -0
  1503. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/external/qunit.css +178 -0
  1504. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/external/qunit.js +37 -0
  1505. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/jquery-1.9.1.js +24 -0
  1506. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/package.json +70 -0
  1507. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/images/animated-overlay.gif +0 -0
  1508. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  1509. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  1510. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  1511. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  1512. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  1513. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  1514. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  1515. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  1516. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/images/ui-icons_222222_256x240.png +0 -0
  1517. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/images/ui-icons_2e83ff_256x240.png +0 -0
  1518. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/images/ui-icons_454545_256x240.png +0 -0
  1519. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/images/ui-icons_888888_256x240.png +0 -0
  1520. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/images/ui-icons_cd0a0a_256x240.png +0 -0
  1521. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/jquery-ui.css +599 -0
  1522. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/jquery.ui.all.css +659 -0
  1523. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/jquery.ui.base.css +269 -0
  1524. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/jquery.ui.core.css +73 -0
  1525. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/jquery.ui.datepicker.css +174 -0
  1526. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/jquery.ui.theme.css +380 -0
  1527. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/images/animated-overlay.gif +0 -0
  1528. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  1529. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  1530. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  1531. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  1532. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  1533. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  1534. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  1535. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  1536. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/images/ui-icons_222222_256x240.png +0 -0
  1537. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/images/ui-icons_2e83ff_256x240.png +0 -0
  1538. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/images/ui-icons_454545_256x240.png +0 -0
  1539. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/images/ui-icons_888888_256x240.png +0 -0
  1540. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/images/ui-icons_cd0a0a_256x240.png +0 -0
  1541. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/jquery-ui.min.css +6 -0
  1542. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/jquery.ui.core.min.css +4 -0
  1543. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/jquery.ui.datepicker.min.css +4 -0
  1544. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/base/minified/jquery.ui.theme.min.css +4 -0
  1545. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/images/animated-overlay.gif +0 -0
  1546. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/images/ui-bg_flat_30_cccccc_40x100.png +0 -0
  1547. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/images/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
  1548. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/images/ui-bg_glass_40_ffc73d_1x400.png +0 -0
  1549. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/images/ui-bg_highlight-hard_20_0972a5_1x100.png +0 -0
  1550. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/images/ui-bg_highlight-soft_33_003147_1x100.png +0 -0
  1551. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/images/ui-bg_highlight-soft_35_222222_1x100.png +0 -0
  1552. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/images/ui-bg_highlight-soft_44_444444_1x100.png +0 -0
  1553. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/images/ui-bg_highlight-soft_80_eeeeee_1x100.png +0 -0
  1554. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/images/ui-bg_loop_25_000000_21x21.png +0 -0
  1555. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/images/ui-icons_222222_256x240.png +0 -0
  1556. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/images/ui-icons_4b8e0b_256x240.png +0 -0
  1557. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/images/ui-icons_a83300_256x240.png +0 -0
  1558. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/images/ui-icons_cccccc_256x240.png +0 -0
  1559. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/images/ui-icons_ffffff_256x240.png +0 -0
  1560. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/jquery-ui.css +600 -0
  1561. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/jquery.ui.all.css +659 -0
  1562. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/jquery.ui.base.css +269 -0
  1563. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/jquery.ui.core.css +73 -0
  1564. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/jquery.ui.datepicker.css +174 -0
  1565. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/jquery.ui.theme.css +380 -0
  1566. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/images/animated-overlay.gif +0 -0
  1567. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/images/ui-bg_flat_30_cccccc_40x100.png +0 -0
  1568. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/images/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
  1569. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/images/ui-bg_glass_40_ffc73d_1x400.png +0 -0
  1570. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/images/ui-bg_highlight-hard_20_0972a5_1x100.png +0 -0
  1571. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/images/ui-bg_highlight-soft_33_003147_1x100.png +0 -0
  1572. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/images/ui-bg_highlight-soft_35_222222_1x100.png +0 -0
  1573. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/images/ui-bg_highlight-soft_44_444444_1x100.png +0 -0
  1574. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/images/ui-bg_highlight-soft_80_eeeeee_1x100.png +0 -0
  1575. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/images/ui-bg_loop_25_000000_21x21.png +0 -0
  1576. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/images/ui-icons_222222_256x240.png +0 -0
  1577. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/images/ui-icons_4b8e0b_256x240.png +0 -0
  1578. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/images/ui-icons_a83300_256x240.png +0 -0
  1579. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/images/ui-icons_cccccc_256x240.png +0 -0
  1580. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/images/ui-icons_ffffff_256x240.png +0 -0
  1581. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/jquery-ui.min.css +6 -0
  1582. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/jquery.ui.core.min.css +4 -0
  1583. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/jquery.ui.datepicker.min.css +4 -0
  1584. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/themes/dark-hive/minified/jquery.ui.theme.min.css +4 -0
  1585. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui.core.jquery.json +61 -0
  1586. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui.datepicker.jquery.json +66 -0
  1587. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui.draggable.jquery.json +66 -0
  1588. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui.droppable.jquery.json +67 -0
  1589. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui.effect-blind.jquery.json +65 -0
  1590. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui.effect-bounce.jquery.json +65 -0
  1591. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui.effect-clip.jquery.json +65 -0
  1592. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui.effect-drop.jquery.json +65 -0
  1593. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui.effect-explode.jquery.json +65 -0
  1594. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui.effect-fade.jquery.json +65 -0
  1595. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui.effect-fold.jquery.json +65 -0
  1596. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui.effect-highlight.jquery.json +65 -0
  1597. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui.effect-pulsate.jquery.json +65 -0
  1598. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui.effect-scale.jquery.json +65 -0
  1599. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui.effect-shake.jquery.json +65 -0
  1600. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui.effect-slide.jquery.json +65 -0
  1601. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui.effect-transfer.jquery.json +63 -0
  1602. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui.effect.jquery.json +68 -0
  1603. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui.mouse.jquery.json +64 -0
  1604. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui.widget.jquery.json +64 -0
  1605. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery-ui-i18n.js +7 -0
  1606. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-af.js +1 -0
  1607. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ar-DZ.js +1 -0
  1608. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ar.js +1 -0
  1609. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-az.js +1 -0
  1610. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-be.js +1 -0
  1611. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-bg.js +1 -0
  1612. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-bs.js +1 -0
  1613. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ca.js +1 -0
  1614. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-cs.js +1 -0
  1615. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-cy-GB.js +1 -0
  1616. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-da.js +1 -0
  1617. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-de.js +1 -0
  1618. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-el.js +1 -0
  1619. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-en-AU.js +1 -0
  1620. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-en-GB.js +1 -0
  1621. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-en-NZ.js +1 -0
  1622. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-eo.js +1 -0
  1623. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-es.js +1 -0
  1624. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-et.js +1 -0
  1625. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-eu.js +1 -0
  1626. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-fa.js +1 -0
  1627. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-fi.js +1 -0
  1628. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-fo.js +1 -0
  1629. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-fr-CA.js +1 -0
  1630. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-fr-CH.js +1 -0
  1631. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-fr.js +1 -0
  1632. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-gl.js +1 -0
  1633. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-he.js +1 -0
  1634. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-hi.js +1 -0
  1635. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-hr.js +1 -0
  1636. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-hu.js +1 -0
  1637. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-hy.js +1 -0
  1638. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-id.js +1 -0
  1639. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-is.js +1 -0
  1640. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-it.js +1 -0
  1641. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ja.js +1 -0
  1642. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ka.js +1 -0
  1643. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-kk.js +1 -0
  1644. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-km.js +1 -0
  1645. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ko.js +1 -0
  1646. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ky.js +1 -0
  1647. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-lb.js +1 -0
  1648. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-lt.js +1 -0
  1649. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-lv.js +1 -0
  1650. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-mk.js +1 -0
  1651. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ml.js +1 -0
  1652. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ms.js +1 -0
  1653. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-nb.js +1 -0
  1654. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-nl-BE.js +1 -0
  1655. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-nl.js +1 -0
  1656. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-nn.js +1 -0
  1657. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-no.js +1 -0
  1658. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-pl.js +1 -0
  1659. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-pt-BR.js +1 -0
  1660. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-pt.js +1 -0
  1661. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-rm.js +1 -0
  1662. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ro.js +1 -0
  1663. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ru.js +1 -0
  1664. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-sk.js +1 -0
  1665. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-sl.js +1 -0
  1666. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-sq.js +1 -0
  1667. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-sr-SR.js +1 -0
  1668. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-sr.js +1 -0
  1669. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-sv.js +1 -0
  1670. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-ta.js +1 -0
  1671. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-th.js +1 -0
  1672. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-tj.js +1 -0
  1673. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-tr.js +1 -0
  1674. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-uk.js +1 -0
  1675. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-vi.js +1 -0
  1676. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-zh-CN.js +1 -0
  1677. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-zh-HK.js +1 -0
  1678. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/i18n/jquery.ui.datepicker-zh-TW.js +1 -0
  1679. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery-ui.custom.js +19 -0
  1680. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.core.js +12 -0
  1681. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.datepicker.js +16 -0
  1682. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.draggable.js +17 -0
  1683. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.droppable.js +18 -0
  1684. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.effect-blind.js +15 -0
  1685. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.effect-bounce.js +15 -0
  1686. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.effect-clip.js +15 -0
  1687. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.effect-drop.js +15 -0
  1688. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.effect-explode.js +15 -0
  1689. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.effect-fade.js +15 -0
  1690. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.effect-fold.js +15 -0
  1691. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.effect-highlight.js +15 -0
  1692. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.effect-pulsate.js +15 -0
  1693. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.effect-scale.js +15 -0
  1694. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.effect-shake.js +15 -0
  1695. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.effect-slide.js +15 -0
  1696. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.effect-transfer.js +15 -0
  1697. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.effect.js +23 -0
  1698. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.mouse.js +15 -0
  1699. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/jquery.ui.widget.js +12 -0
  1700. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery-ui-i18n.min.js +7 -0
  1701. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-af.min.js +5 -0
  1702. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-ar-DZ.min.js +5 -0
  1703. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-ar.min.js +5 -0
  1704. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-az.min.js +5 -0
  1705. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-be.min.js +5 -0
  1706. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-bg.min.js +5 -0
  1707. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-bs.min.js +5 -0
  1708. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-ca.min.js +5 -0
  1709. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-cs.min.js +5 -0
  1710. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-cy-GB.min.js +5 -0
  1711. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-da.min.js +5 -0
  1712. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-de.min.js +5 -0
  1713. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-el.min.js +5 -0
  1714. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-en-AU.min.js +5 -0
  1715. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-en-GB.min.js +5 -0
  1716. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-en-NZ.min.js +5 -0
  1717. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-eo.min.js +5 -0
  1718. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-es.min.js +5 -0
  1719. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-et.min.js +5 -0
  1720. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-eu.min.js +5 -0
  1721. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-fa.min.js +5 -0
  1722. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-fi.min.js +5 -0
  1723. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-fo.min.js +5 -0
  1724. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-fr-CA.min.js +5 -0
  1725. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-fr-CH.min.js +5 -0
  1726. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-fr.min.js +5 -0
  1727. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-gl.min.js +5 -0
  1728. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-he.min.js +5 -0
  1729. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-hi.min.js +5 -0
  1730. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-hr.min.js +5 -0
  1731. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-hu.min.js +5 -0
  1732. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-hy.min.js +5 -0
  1733. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-id.min.js +5 -0
  1734. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-is.min.js +5 -0
  1735. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-it.min.js +5 -0
  1736. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-ja.min.js +5 -0
  1737. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-ka.min.js +5 -0
  1738. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-kk.min.js +5 -0
  1739. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-km.min.js +5 -0
  1740. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-ko.min.js +5 -0
  1741. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-ky.min.js +5 -0
  1742. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-lb.min.js +5 -0
  1743. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-lt.min.js +5 -0
  1744. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-lv.min.js +5 -0
  1745. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-mk.min.js +5 -0
  1746. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-ml.min.js +5 -0
  1747. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-ms.min.js +5 -0
  1748. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-nb.min.js +5 -0
  1749. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-nl-BE.min.js +5 -0
  1750. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-nl.min.js +5 -0
  1751. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-nn.min.js +5 -0
  1752. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-no.min.js +5 -0
  1753. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-pl.min.js +5 -0
  1754. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-pt-BR.min.js +5 -0
  1755. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-pt.min.js +5 -0
  1756. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-rm.min.js +5 -0
  1757. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-ro.min.js +5 -0
  1758. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-ru.min.js +5 -0
  1759. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-sk.min.js +5 -0
  1760. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-sl.min.js +5 -0
  1761. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-sq.min.js +5 -0
  1762. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-sr-SR.min.js +5 -0
  1763. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-sr.min.js +5 -0
  1764. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-sv.min.js +5 -0
  1765. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-ta.min.js +5 -0
  1766. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-th.min.js +5 -0
  1767. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-tj.min.js +5 -0
  1768. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-tr.min.js +5 -0
  1769. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-uk.min.js +5 -0
  1770. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-vi.min.js +5 -0
  1771. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-zh-CN.min.js +5 -0
  1772. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-zh-HK.min.js +5 -0
  1773. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/i18n/jquery.ui.datepicker-zh-TW.min.js +5 -0
  1774. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery-ui.custom.min.js +8 -0
  1775. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.core.min.js +5 -0
  1776. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.datepicker.min.js +6 -0
  1777. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.draggable.min.js +5 -0
  1778. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.droppable.min.js +5 -0
  1779. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.effect-blind.min.js +5 -0
  1780. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.effect-bounce.min.js +5 -0
  1781. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.effect-clip.min.js +5 -0
  1782. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.effect-drop.min.js +5 -0
  1783. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.effect-explode.min.js +5 -0
  1784. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.effect-fade.min.js +5 -0
  1785. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.effect-fold.min.js +5 -0
  1786. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.effect-highlight.min.js +5 -0
  1787. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.effect-pulsate.min.js +5 -0
  1788. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.effect-scale.min.js +5 -0
  1789. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.effect-shake.min.js +5 -0
  1790. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.effect-slide.min.js +5 -0
  1791. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.effect-transfer.min.js +5 -0
  1792. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.effect.min.js +5 -0
  1793. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.mouse.min.js +5 -0
  1794. data/public/rearview/vendor/jquery/plugins/jquery-ui/development-bundle/ui/minified/jquery.ui.widget.min.js +5 -0
  1795. data/public/rearview/vendor/jquery/plugins/jquery-ui/js/jquery-ui-1.10.3.custom.js +10 -0
  1796. data/public/rearview/vendor/jquery/plugins/jquery-ui/js/jquery-ui-1.10.3.custom.min.js +10 -0
  1797. data/public/rearview/vendor/jquery/plugins/jquery.validate.js +14 -0
  1798. data/public/rearview/vendor/jquery/plugins/timepicker-ui/css/jquery.timepicker.css +31 -0
  1799. data/public/rearview/vendor/jquery/plugins/timepicker-ui/js/jquery.timepicker.js +11 -0
  1800. data/public/rearview/vendor/less/js/less.js +13 -0
  1801. data/public/rearview/vendor/parsley/js/parsley.js +1 -0
  1802. data/public/rearview/vendor/parsley/js/parsley.min.js +1 -0
  1803. data/public/rearview/vendor/require/js/require.js +31 -0
  1804. data/public/rearview/vendor/require/plugins/domready/domready.js +7 -0
  1805. data/public/rearview/vendor/timeline/examples/example.json +38 -0
  1806. data/public/rearview/vendor/timeline/examples/timeline_json.html +143 -0
  1807. data/public/rearview/vendor/timeline/timeline.css +114 -0
  1808. data/public/rearview/vendor/timeline/timeline.js +45 -0
  1809. data/public/rearview/vendor/underscore/js/underscore.js +5 -0
  1810. data/public/rearview/vendor/underscore/plugins/underscore-string/js/underscore.string.js +10 -0
  1811. data/public/rearview/vendor/xdate/js/xdate.js +1 -0
  1812. data/script/rails +8 -0
  1813. data/tasks/rearview.rake +9 -0
  1814. metadata +1814 -3
@@ -0,0 +1,79 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-utf-8" />
5
+ <title>Highcharts Examples</title>
6
+ </head>
7
+ <body>
8
+ <h1>Highcharts Examples</h1>
9
+ <h4>Line and scatter charts</h4>
10
+ <ul>
11
+ <li><a href="examples/line-basic/index.htm">Basic line</a></li>
12
+ <li><a href="examples/line-ajax/index.htm">Ajax loaded data, clickable points</a></li>
13
+ <li><a href="examples/line-labels/index.htm">With data labels</a></li>
14
+ <li><a href="examples/line-time-series/index.htm">Time series, zoomable</a></li>
15
+ <li><a href="examples/spline-inverted/index.htm">Spline with inverted axes</a></li>
16
+ <li><a href="examples/spline-symbols/index.htm">Spline with symbols</a></li>
17
+ <li><a href="examples/spline-plot-bands/index.htm">Spline with plot bands</a></li>
18
+ <li><a href="examples/spline-irregular-time/index.htm">Time data with irregular intervals</a></li>
19
+ <li><a href="examples/line-log-axis/index.htm">Logarithmic axis</a></li>
20
+ <li><a href="examples/scatter/index.htm">Scatter plot</a></li>
21
+ </ul>
22
+ <h4>Area charts</h4>
23
+ <ul>
24
+ <li><a href="examples/area-basic/index.htm">Basic area</a></li>
25
+ <li><a href="examples/area-negative/index.htm">Area with negative values</a></li>
26
+ <li><a href="examples/area-stacked/index.htm">Stacked area</a></li>
27
+ <li><a href="examples/area-stacked-percent/index.htm">Percentage area</a></li>
28
+ <li><a href="examples/area-missing/index.htm">Area with missing points</a></li>
29
+ <li><a href="examples/area-inverted/index.htm">Inverted axes</a></li>
30
+ <li><a href="examples/areaspline/index.htm">Area-spline</a></li>
31
+ </ul>
32
+ <h4>Column and bar charts</h4>
33
+ <ul>
34
+ <li><a href="examples/bar-basic/index.htm">Basic bar</a></li>
35
+ <li><a href="examples/bar-stacked/index.htm">Stacked bar</a></li>
36
+ <li><a href="examples/bar-negative-stack/index.htm">Bar with negative stack</a></li>
37
+ <li><a href="examples/column-basic/index.htm">Basic column</a></li>
38
+ <li><a href="examples/column-negative/index.htm">Column with negative values</a></li>
39
+ <li><a href="examples/column-stacked/index.htm">Stacked column</a></li>
40
+ <li><a href="examples/column-stacked-and-grouped/index.htm">Stacked and grouped column</a></li>
41
+ <li><a href="examples/column-stacked-percent/index.htm">Stacked percentage column</a></li>
42
+ <li><a href="examples/column-rotated-labels/index.htm">Column with rotated labels</a></li>
43
+ <li><a href="examples/column-drilldown/index.htm">Column with drilldown</a></li>
44
+ <li><a href="examples/column-parsed/index.htm">Data defined in a HTML table</a></li>
45
+ </ul>
46
+ <h4>Pie charts</h4>
47
+ <ul>
48
+ <li><a href="examples/pie-basic/index.htm">Pie chart</a></li>
49
+ <li><a href="examples/pie-gradient/index.htm">Pie with gradient fill</a></li>
50
+ <li><a href="examples/pie-donut/index.htm">Donut chart</a></li>
51
+ <li><a href="examples/pie-legend/index.htm">Pie with legend</a></li>
52
+ </ul>
53
+ <h4>Dynamic charts</h4>
54
+ <ul>
55
+ <li><a href="examples/dynamic-update/index.htm">Spline updating each second</a></li>
56
+ <li><a href="examples/dynamic-click-to-add/index.htm">Click to add a point</a></li>
57
+ <li><a href="examples/dynamic-master-detail/index.htm">Master-detail chart</a></li>
58
+ </ul>
59
+ <h4>Combinations</h4>
60
+ <ul>
61
+ <li><a href="examples/combo/index.htm">Column, line and pie</a></li>
62
+ <li><a href="examples/combo-dual-axes/index.htm">Dual axes, line and column</a></li>
63
+ <li><a href="examples/combo-multi-axes/index.htm">Multiple axes</a></li>
64
+ <li><a href="examples/combo-regression/index.htm">Scatter with regression line</a></li>
65
+ </ul>
66
+ <h4>More chart types</h4>
67
+ <ul>
68
+ <li><a href="examples/gauge-speedometer/index.htm">Angular gauge</a></li>
69
+ <li><a href="examples/gauge-clock/index.htm">Clock</a></li>
70
+ <li><a href="examples/gauge-dual/index.htm">Gauge with dual axes</a></li>
71
+ <li><a href="examples/gauge-vu-meter/index.htm">VU meter</a></li>
72
+ <li><a href="examples/arearange/index.htm">Area range</a></li>
73
+ <li><a href="examples/columnrange/index.htm">Column range</a></li>
74
+ <li><a href="examples/polar/index.htm">Polar chart</a></li>
75
+ <li><a href="examples/polar-spider/index.htm">Spiderweb</a></li>
76
+ <li><a href="examples/polar-wind-rose/index.htm">Wind rose</a></li>
77
+ </ul>
78
+ </body>
79
+ </html>
@@ -0,0 +1,10 @@
1
+ /*
2
+ Highcharts JS v2.3.3 (2012-10-04)
3
+ MooTools adapter
4
+
5
+ (c) 2010-2011 Torstein Hønsi
6
+
7
+ License: www.highcharts.com/license
8
+ */
9
+
10
+ !function(){var t=window,e=document,n=t.MooTools.version.substring(0,3),r="1.2"===n||"1.1"===n,a=r||"1.3"===n,o=t.$extend||function(){return Object.append.apply(Object,arguments)};t.HighchartsAdapter={init:function(t){var e=Fx.prototype,n=e.start,r=Fx.Morph.prototype,a=r.compute;e.start=function(e){var r=this.element;return e.d&&(this.paths=t.init(r,r.d,this.toD)),n.apply(this,arguments),this},r.compute=function(e,n,r){var o=this.paths;return o?(this.element.attr("d",t.step(o[0],o[1],r,this.toD)),void 0):a.apply(this,arguments)}},adapterRun:function(t,e){return"width"===e||"height"===e?parseInt($(t).getStyle(e),10):void 0},getScript:function(t,n){var r=e.getElementsByTagName("head")[0],a=e.createElement("script");a.type="text/javascript",a.src=t,a.onload=n,r.appendChild(a)},animate:function(e,n,r){var a=e.attr,i=r&&r.complete;a&&!e.setStyle&&(e.getStyle=e.attr,e.setStyle=function(){var t=arguments;e.attr.call(e,t[0],t[1][0])},e.$family=function(){return!0}),t.HighchartsAdapter.stop(e),r=new Fx.Morph(a?e:$(e),o({transition:Fx.Transitions.Quad.easeInOut},r)),a&&(r.element=e),n.d&&(r.toD=n.d),i&&r.addEvent("complete",i),r.start(n),e.fx=r},each:function(t,e){return r?$each(t,e):Array.each(t,e)},map:function(t,e){return t.map(e)},grep:function(t,e){return t.filter(e)},inArray:function(t,e,n){return e.indexOf(t,n)},merge:function(){var t=arguments,e=[{}],n=t.length;if(r)t=$merge.apply(null,t);else{for(;n--;)"boolean"!=typeof t[n]&&(e[n+1]=t[n]);t=Object.merge.apply(Object,e)}return t},offset:function(t){return t=$(t).getOffsets(),{left:t.x,top:t.y}},extendWithEvents:function(t){t.addEvent||(t.nodeName?$(t):o(t,new Events))},addEvent:function(e,n,r){"string"==typeof n&&("unload"===n&&(n="beforeunload"),t.HighchartsAdapter.extendWithEvents(e),e.addEvent(n,r))},removeEvent:function(e,n,r){"string"!=typeof e&&(t.HighchartsAdapter.extendWithEvents(e),n?("unload"===n&&(n="beforeunload"),r?e.removeEvent(n,r):e.removeEvents&&e.removeEvents(n)):e.removeEvents())},fireEvent:function(t,e,n,r){e={type:e,target:t},e=a?new Event(e):new DOMEvent(e),e=o(e,n),e.preventDefault=function(){r=null},t.fireEvent&&t.fireEvent(e.type,e),r&&r(e)},washMouseEvent:function(t){return t.event||t},stop:function(t){t.fx&&t.fx.cancel()}}}();
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @license Highcharts JS v2.3.3 (2012-10-04)
3
+ * MooTools adapter
4
+ *
5
+ * (c) 2010-2011 Torstein Hønsi
6
+ *
7
+ * License: www.highcharts.com/license
8
+ */
9
+
10
+ !function(){var t=window,e=document,n=t.MooTools.version.substring(0,3),r="1.2"===n||"1.1"===n,a=r||"1.3"===n,o=t.$extend||function(){return Object.append.apply(Object,arguments)};t.HighchartsAdapter={init:function(t){var e=Fx.prototype,n=e.start,r=Fx.Morph.prototype,a=r.compute;e.start=function(e){var r=this,a=r.element;return e.d&&(r.paths=t.init(a,a.d,r.toD)),n.apply(r,arguments),this},r.compute=function(e,n,r){var o=this,i=o.paths;return i?(o.element.attr("d",t.step(i[0],i[1],r,o.toD)),void 0):a.apply(o,arguments)}},adapterRun:function(t,e){return"width"===e||"height"===e?parseInt($(t).getStyle(e),10):void 0},getScript:function(t,n){var r=e.getElementsByTagName("head")[0],a=e.createElement("script");a.type="text/javascript",a.src=t,a.onload=n,r.appendChild(a)},animate:function(e,n,r){var a,i=e.attr,u=r&&r.complete;i&&!e.setStyle&&(e.getStyle=e.attr,e.setStyle=function(){var t=arguments;e.attr.call(e,t[0],t[1][0])},e.$family=function(){return!0}),t.HighchartsAdapter.stop(e),a=new Fx.Morph(i?e:$(e),o({transition:Fx.Transitions.Quad.easeInOut},r)),i&&(a.element=e),n.d&&(a.toD=n.d),u&&a.addEvent("complete",u),a.start(n),e.fx=a},each:function(t,e){return r?$each(t,e):Array.each(t,e)},map:function(t,e){return t.map(e)},grep:function(t,e){return t.filter(e)},inArray:function(t,e,n){return e.indexOf(t,n)},merge:function(){var t,e=arguments,n=[{}],a=e.length;if(r)t=$merge.apply(null,e);else{for(;a--;)"boolean"!=typeof e[a]&&(n[a+1]=e[a]);t=Object.merge.apply(Object,n)}return t},offset:function(t){var e=$(t).getOffsets();return{left:e.x,top:e.y}},extendWithEvents:function(t){t.addEvent||(t.nodeName?t=$(t):o(t,new Events))},addEvent:function(e,n,r){"string"==typeof n&&("unload"===n&&(n="beforeunload"),t.HighchartsAdapter.extendWithEvents(e),e.addEvent(n,r))},removeEvent:function(e,n,r){"string"!=typeof e&&(t.HighchartsAdapter.extendWithEvents(e),n?("unload"===n&&(n="beforeunload"),r?e.removeEvent(n,r):e.removeEvents&&e.removeEvents(n)):e.removeEvents())},fireEvent:function(t,e,n,r){var i={type:e,target:t};e=a?new Event(i):new DOMEvent(i),e=o(e,n),e.preventDefault=function(){r=null},t.fireEvent&&t.fireEvent(e.type,e),r&&r(e)},washMouseEvent:function(t){return t.event||t},stop:function(t){t.fx&&t.fx.cancel()}}}();
@@ -0,0 +1,11 @@
1
+ /*
2
+ Highcharts JS v2.3.3 (2012-10-04)
3
+ Prototype adapter
4
+
5
+ @author Michael Nelson, Torstein Hønsi.
6
+
7
+ Feel free to use and modify this script.
8
+ Highcharts license: www.highcharts.com/license.
9
+ */
10
+
11
+ var HighchartsAdapter=function(){var t="undefined"!=typeof Effect;return{init:function(e){t&&(Effect.HighchartsTransition=Class.create(Effect.Base,{initialize:function(t,n,i,r){var h;this.element=t,this.key=n,h=t.attr?t.attr(n):$(t).getStyle(n),"d"===n&&(this.paths=e.init(t,t.d,i),this.toD=i,h=0,i=1),this.start(Object.extend(r||{},{from:h,to:i,attribute:n}))},setup:function(){HighchartsAdapter._extend(this.element),this.element._highchart_animation||(this.element._highchart_animation={}),this.element._highchart_animation[this.key]=this},update:function(t){var n=this.paths,i=this.element;n&&(t=e.step(n[0],n[1],t,this.toD)),i.attr?i.attr(this.options.attribute,t):(n={},n[this.options.attribute]=t,$(i).setStyle(n))},finish:function(){delete this.element._highchart_animation[this.key]}}))},adapterRun:function(t,e){return parseInt($(t).getStyle(e),10)},getScript:function(t,e){var n=$$("head")[0];n&&n.appendChild(new Element("script",{type:"text/javascript",src:t}).observe("load",e))},addNS:function(t){var e=/^(?:click|mouse(?:down|up|over|move|out))$/;return/^(?:load|unload|abort|error|select|change|submit|reset|focus|blur|resize|scroll)$/.test(t)||e.test(t)?t:"h:"+t},addEvent:function(t,e,n){t.addEventListener||t.attachEvent?Event.observe($(t),HighchartsAdapter.addNS(e),n):(HighchartsAdapter._extend(t),t._highcharts_observe(e,n))},animate:function(e,n,i){var r,i=i||{};if(i.delay=0,i.duration=(i.duration||500)/1e3,i.afterFinish=i.complete,t)for(r in n)new Effect.HighchartsTransition($(e),r,n[r],i);else{if(e.attr)for(r in n)e.attr(r,n[r]);i.complete&&i.complete()}e.attr||$(e).setStyle(n)},stop:function(t){var e;if(t._highcharts_extended&&t._highchart_animation)for(e in t._highchart_animation)t._highchart_animation[e].cancel()},each:function(t,e){$A(t).each(e)},inArray:function(t,e){return e.indexOf(t)},offset:function(t){return $(t).cumulativeOffset()},fireEvent:function(t,e,n,i){t.fire?t.fire(HighchartsAdapter.addNS(e),n):t._highcharts_extended&&(n=n||{},t._highcharts_fire(e,n)),n&&n.defaultPrevented&&(i=null),i&&i(n)},removeEvent:function(t,e,n){$(t).stopObserving&&(e&&(e=HighchartsAdapter.addNS(e)),$(t).stopObserving(e,n)),window===t?Event.stopObserving(t,e,n):(HighchartsAdapter._extend(t),t._highcharts_stop_observing(e,n))},washMouseEvent:function(t){return t},grep:function(t,e){return t.findAll(e)},map:function(t,e){return t.map(e)},merge:function(){function t(e,n){var i,r;for(r in n)i=n[r],e[r]=i&&"object"==typeof i&&i.constructor!==Array&&"number"!=typeof i.nodeType?t(e[r]||{},i):n[r];return e}return function(){var e,n=arguments,i={};for(e=0;e<n.length;e++)i=t(i,n[e]);return i}.apply(this,arguments)},_extend:function(t){t._highcharts_extended||Object.extend(t,{_highchart_events:{},_highchart_animation:null,_highcharts_extended:!0,_highcharts_observe:function(t,e){this._highchart_events[t]=[this._highchart_events[t],e].compact().flatten()},_highcharts_stop_observing:function(t,e){t?e?this._highchart_events[t]=[this._highchart_events[t]].compact().flatten().without(e):delete this._highchart_events[t]:this._highchart_events={}},_highcharts_fire:function(t,e){(this._highchart_events[t]||[]).each(function(t){e.stopped||(e.preventDefault=function(){e.defaultPrevented=!0},t.bind(this)(e)===!1&&e.preventDefault())}.bind(this))}})}}}();
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @license Highcharts JS v2.3.3 (2012-10-04)
3
+ * Prototype adapter
4
+ *
5
+ * @author Michael Nelson, Torstein Hønsi.
6
+ *
7
+ * Feel free to use and modify this script.
8
+ * Highcharts license: www.highcharts.com/license.
9
+ */
10
+
11
+ var HighchartsAdapter=function(){var t="undefined"!=typeof Effect;return{init:function(e){t&&(Effect.HighchartsTransition=Class.create(Effect.Base,{initialize:function(t,n,i,r){var h,a;this.element=t,this.key=n,h=t.attr?t.attr(n):$(t).getStyle(n),"d"===n&&(this.paths=e.init(t,t.d,i),this.toD=i,h=0,i=1),a=Object.extend(r||{},{from:h,to:i,attribute:n}),this.start(a)},setup:function(){HighchartsAdapter._extend(this.element),this.element._highchart_animation||(this.element._highchart_animation={}),this.element._highchart_animation[this.key]=this},update:function(t){var n,i=this.paths,r=this.element;i&&(t=e.step(i[0],i[1],t,this.toD)),r.attr?r.attr(this.options.attribute,t):(n={},n[this.options.attribute]=t,$(r).setStyle(n))},finish:function(){delete this.element._highchart_animation[this.key]}}))},adapterRun:function(t,e){return parseInt($(t).getStyle(e),10)},getScript:function(t,e){var n=$$("head")[0];n&&n.appendChild(new Element("script",{type:"text/javascript",src:t}).observe("load",e))},addNS:function(t){var e=/^(?:load|unload|abort|error|select|change|submit|reset|focus|blur|resize|scroll)$/,n=/^(?:click|mouse(?:down|up|over|move|out))$/;return e.test(t)||n.test(t)?t:"h:"+t},addEvent:function(t,e,n){t.addEventListener||t.attachEvent?Event.observe($(t),HighchartsAdapter.addNS(e),n):(HighchartsAdapter._extend(t),t._highcharts_observe(e,n))},animate:function(e,n,i){var r,h;if(i=i||{},i.delay=0,i.duration=(i.duration||500)/1e3,i.afterFinish=i.complete,t)for(r in n)h=new Effect.HighchartsTransition($(e),r,n[r],i);else{if(e.attr)for(r in n)e.attr(r,n[r]);i.complete&&i.complete()}e.attr||$(e).setStyle(n)},stop:function(t){var e;if(t._highcharts_extended&&t._highchart_animation)for(e in t._highchart_animation)t._highchart_animation[e].cancel()},each:function(t,e){$A(t).each(e)},inArray:function(t,e){return e.indexOf(t)},offset:function(t){return $(t).cumulativeOffset()},fireEvent:function(t,e,n,i){t.fire?t.fire(HighchartsAdapter.addNS(e),n):t._highcharts_extended&&(n=n||{},t._highcharts_fire(e,n)),n&&n.defaultPrevented&&(i=null),i&&i(n)},removeEvent:function(t,e,n){$(t).stopObserving&&(e&&(e=HighchartsAdapter.addNS(e)),$(t).stopObserving(e,n)),window===t?Event.stopObserving(t,e,n):(HighchartsAdapter._extend(t),t._highcharts_stop_observing(e,n))},washMouseEvent:function(t){return t},grep:function(t,e){return t.findAll(e)},map:function(t,e){return t.map(e)},merge:function(){function t(e,n){var i,r;for(r in n)i=n[r],e[r]=i&&"object"==typeof i&&i.constructor!==Array&&"number"!=typeof i.nodeType?t(e[r]||{},i):n[r];return e}function e(){var e,n=arguments,i={};for(e=0;e<n.length;e++)i=t(i,n[e]);return i}return e.apply(this,arguments)},_extend:function(t){t._highcharts_extended||Object.extend(t,{_highchart_events:{},_highchart_animation:null,_highcharts_extended:!0,_highcharts_observe:function(t,e){this._highchart_events[t]=[this._highchart_events[t],e].compact().flatten()},_highcharts_stop_observing:function(t,e){t?e?this._highchart_events[t]=[this._highchart_events[t]].compact().flatten().without(e):delete this._highchart_events[t]:this._highchart_events={}},_highcharts_fire:function(t,e){(this._highchart_events[t]||[]).each(function(t){e.stopped||(e.preventDefault=function(){e.defaultPrevented=!0},t.bind(this)(e)===!1&&e.preventDefault())}.bind(this))}})}}}();
@@ -0,0 +1,9 @@
1
+ /*
2
+ Highcharts JS v2.3.3 (2012-10-04)
3
+
4
+ (c) 2009-2011 Torstein Hønsi
5
+
6
+ License: www.highcharts.com/license
7
+ */
8
+
9
+ !function(t,i){function a(t,i,a){this.init.call(this,t,i,a)}function e(t,i,a){t.call(this,i,a),this.chart.polar&&(this.closeSegment=function(t){var i=this.xAxis.center;t.push("L",i[0],i[1])},this.closedStacks=!0)}function n(t,a){var e=this.chart,n=this.options.animation,s=this.group,o=this.markerGroup,r=this.xAxis.center,l=e.plotLeft,h=e.plotTop;e.polar?e.renderer.isSVG&&(n===!0&&(n={}),a?(s.attrSetters.scaleX=s.attrSetters.scaleY=function(t,a){return this[a]=t,this.scaleX!==i&&this.scaleY!==i&&this.element.setAttribute("transform","translate("+this.translateX+","+this.translateY+") scale("+this.scaleX+","+this.scaleY+")"),!1},e={translateX:r[0]+l,translateY:r[1]+h,scaleX:0,scaleY:0},s.attr(e),o&&(o.attrSetters=s.attrSetters,o.attr(e))):(e={translateX:l,translateY:h,scaleX:1,scaleY:1},s.animate(e,n),o&&o.animate(e,n),this.animate=null)):t.call(this,a)}var s=t.each,o=t.extend,r=t.merge,l=t.map,h=t.pick,p=t.pInt,c=t.getOptions().plotOptions,d=t.seriesTypes,g=t.extendClass,u=t.wrap,f=t.Axis,y=t.Tick,x=t.Series,P=d.column.prototype,b=function(){};o(a.prototype,{init:function(i,a,e){var n=this,o=n.defaultOptions;n.chart=a,a.angular&&(o.background={}),n.options=i=r(o,i),(i=i.background)&&s([].concat(t.splat(i)).reverse(),function(t){var i=t.backgroundColor,t=r(n.defaultBackgroundOptions,t);i&&(t.backgroundColor=i),t.color=t.backgroundColor,e.options.plotBands.unshift(t)})},defaultOptions:{center:["50%","50%"],size:"85%",startAngle:0},defaultBackgroundOptions:{shape:"circle",borderWidth:1,borderColor:"silver",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#FFF"],[1,"#DDD"]]},from:Number.MIN_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"}});var m=f.prototype,f=y.prototype,A={getOffset:b,redraw:function(){this.isDirty=!1},render:function(){this.isDirty=!1},setScale:b,setCategories:b,setTitle:b},L={isRadial:!0,defaultRadialGaugeOptions:{labels:{align:"center",x:0,y:null},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,plotBands:[],tickLength:10,tickPosition:"inside",tickWidth:2,title:{rotation:0},zIndex:2},defaultRadialXOptions:{gridLineWidth:1,labels:{align:null,distance:15,x:0,y:null},maxPadding:0,minPadding:0,plotBands:[],showLastLabel:!1,tickLength:0},defaultRadialYOptions:{gridLineInterpolation:"circle",labels:{align:"right",x:-3,y:-2},plotBands:[],showLastLabel:!1,title:{x:4,text:null,rotation:90}},setOptions:function(t){this.options=r(this.defaultOptions,this.defaultRadialOptions,t)},getOffset:function(){m.getOffset.call(this),this.chart.axisOffset[this.side]=0,this.center=this.pane.center=d.pie.prototype.getCenter.call(this.pane)},getLinePath:function(t,i){var a=this.center,i=h(i,a[2]/2-this.offset);return this.chart.renderer.symbols.arc(this.left+a[0],this.top+a[1],i,i,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})},setAxisTranslation:function(){m.setAxisTranslation.call(this),this.center&&(this.transA=this.isCircular?(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.center[2]/2/(this.max-this.min||1),this.isXAxis)&&(this.minPixelPadding=this.transA*this.minPointOffset+(this.reversed?(this.endAngleRad-this.startAngleRad)/4:0))},beforeSetTickPositions:function(){this.autoConnect&&(this.max+=this.categories&&1||this.pointRange||this.closestPointRange)},setAxisSize:function(){m.setAxisSize.call(this),this.center&&(this.len=this.width=this.height=this.isCircular?this.center[2]*(this.endAngleRad-this.startAngleRad)/2:this.center[2]/2)},getPosition:function(t,i){return this.isCircular||(i=this.translate(t),t=this.min),this.postTranslate(this.translate(t),h(i,this.center[2]/2)-this.offset)},postTranslate:function(t,i){var a=this.chart,e=this.center,t=this.startAngleRad+t;return{x:a.plotLeft+e[0]+Math.cos(t)*i,y:a.plotTop+e[1]+Math.sin(t)*i}},getPlotBandPath:function(t,i,a){var e,n=this.center,s=this.startAngleRad,o=n[2]/2,r=[h(a.outerRadius,"100%"),a.innerRadius,h(a.thickness,10)],c=/%$/,d=this.isCircular;return"polygon"===this.options.gridLineInterpolation?n=this.getPlotLinePath(t).concat(this.getPlotLinePath(i,!0)):(d||(r[0]=this.translate(t),r[1]=this.translate(i)),r=l(r,function(t){return c.test(t)&&(t=p(t,10)*o/100),t}),"circle"!==a.shape&&d?(t=s+this.translate(t),i=s+this.translate(i)):(t=-Math.PI/2,i=1.5*Math.PI,e=!0),n=this.chart.renderer.symbols.arc(this.left+n[0],this.top+n[1],r[0],r[0],{start:t,end:i,innerR:h(r[1],r[0]-r[2]),open:e})),n},getPlotLinePath:function(t,i){var a,e,n,o=this.center,r=this.chart,l=this.getPosition(t);return this.isCircular?n=["M",o[0]+r.plotLeft,o[1]+r.plotTop,"L",l.x,l.y]:"circle"===this.options.gridLineInterpolation?(t=this.translate(t))&&(n=this.getLinePath(0,t)):(a=r.xAxis[0],n=[],t=this.translate(t),o=a.tickPositions,a.autoConnect&&(o=o.concat([o[0]])),i&&(o=[].concat(o).reverse()),s(o,function(i,s){e=a.getPosition(i,t),n.push(s?"L":"M",e.x,e.y)})),n},getTitlePosition:function(){var t=this.center,i=this.chart,a=this.options.title;return{x:i.plotLeft+t[0]+(a.x||0),y:i.plotTop+t[1]-{high:.5,middle:.25,low:0}[a.align]*t[2]+(a.y||0)}}};u(m,"init",function(e,n,s){var p,c=this,d=n.angular,g=n.polar,u=s.isX,f=d&&u;d?(o(this,f?A:L),(p=!u)&&(this.defaultRadialOptions=this.defaultRadialGaugeOptions)):g&&(o(this,L),this.defaultRadialOptions=(p=u)?this.defaultRadialXOptions:r(this.defaultYAxisOptions,this.defaultRadialYOptions)),e.call(this,n,s),f||!d&&!g||(e=this.options,n.panes||(n.panes=l(t.splat(n.options.pane),function(t){return new a(t,n,c)})),this.pane=d=n.panes[s.pane||0],g=d.options,n.inverted=!1,n.options.chart.zoomType=null,this.startAngleRad=d=(g.startAngle-90)*Math.PI/180,this.endAngleRad=g=(h(g.endAngle,g.startAngle+360)-90)*Math.PI/180,this.offset=e.offset||0,(this.isCircular=p)&&s.max===i&&g-d===2*Math.PI&&(this.autoConnect=!0))}),u(f,"getPosition",function(t,i,a,e,n){var s=this.axis;return s.getPosition?s.getPosition(a):t.call(this,i,a,e,n)}),u(f,"getLabelPosition",function(t,i,a,e,n,s,o,r,l){var c=this.axis,d=s.y,g=s.align,u=180*((c.translate(this.pos)+c.startAngleRad+Math.PI/2)/Math.PI);return c.isRadial?(t=c.getPosition(this.pos,c.center[2]/2+h(s.distance,-25)),"auto"===s.rotation?e.attr({rotation:u}):null===d&&(d=.9*p(e.styles.lineHeight)-e.getBBox().height/2),null===g&&(g=c.isCircular?u>20&&160>u?"left":u>200&&340>u?"right":"center":"center",e.attr({align:g})),t.x+=s.x,t.y+=d):t=t.call(this,i,a,e,n,s,o,r,l),t}),u(f,"getMarkPath",function(t,i,a,e,n,s,o){var r=this.axis;return r.isRadial?(t=r.getPosition(this.pos,r.center[2]/2+e),i=["M",i,a,"L",t.x,t.y]):i=t.call(this,i,a,e,n,s,o),i}),c.arearange=r(c.area,{lineWidth:1,marker:null,threshold:null,tooltip:{pointFormat:'<span style="color:{series.color}">{series.name}</span>: <b>{point.low}</b> - <b>{point.high}</b><br/>'},trackByArea:!0,dataLabels:{verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0},shadow:!1}),f=t.extendClass(t.Point,{applyOptions:function(t,a){var e=this.series,n=e.pointArrayMap,s=0,r=0,l=n.length;if("object"==typeof t&&"number"!=typeof t.length)o(this,t),this.options=t;else if(t.length)for(t.length>l&&("string"==typeof t[0]?this.name=t[0]:"number"==typeof t[0]&&(this.x=t[0]),s++);l>r;)this[n[r++]]=t[s++];return this.y=this[e.pointValKey],this.x===i&&e&&(this.x=a===i?e.autoIncrement():a),this},toYData:function(){return[this.low,this.high]}}),d.arearange=t.extendClass(d.area,{type:"arearange",pointArrayMap:["low","high"],pointClass:f,pointValKey:"low",translate:function(){var t=this.yAxis;d.area.prototype.translate.apply(this),s(this.points,function(i){null!==i.y&&(i.plotLow=i.plotY,i.plotHigh=t.translate(i.high,0,1,0,1))})},getSegmentPath:function(t){for(var i,a=[],e=t.length,n=x.prototype.getSegmentPath;e--;)i=t[e],a.push({plotX:i.plotX,plotY:i.plotHigh});return t=n.call(this,t),n=n.call(this,a),a=[].concat(t,n),n[0]="L",this.areaPath=this.areaPath.concat(t,n),a},drawDataLabels:function(){var t,i,a=this.data,e=a.length,n=[],s=x.prototype,o=this.options.dataLabels,r=this.chart.inverted;if(o.enabled||this._hasPointLabels){for(t=e;t--;)i=a[t],i.y=i.high,i.plotY=i.plotHigh,n[t]=i.dataLabel,i.dataLabel=i.dataLabelUpper,i.below=!1,r?(o.align="left",o.x=o.xHigh):o.y=o.yHigh;for(s.drawDataLabels.apply(this,arguments),t=e;t--;)i=a[t],i.dataLabelUpper=i.dataLabel,i.dataLabel=n[t],i.y=i.low,i.plotY=i.plotLow,i.below=!0,r?(o.align="right",o.x=o.xLow):o.y=o.yLow;s.drawDataLabels.apply(this,arguments)}},alignDataLabel:d.column.prototype.alignDataLabel,getSymbol:d.column.prototype.getSymbol,drawPoints:b}),c.areasplinerange=r(c.arearange),d.areasplinerange=g(d.arearange,{type:"areasplinerange",getPointSpline:d.spline.prototype.getPointSpline}),c.columnrange=r(c.column,c.arearange,{lineWidth:1,pointRange:null}),d.columnrange=g(d.arearange,{type:"columnrange",translate:function(){var t,i=this.yAxis;P.translate.apply(this),s(this.points,function(a){var e=a.shapeArgs;a.plotHigh=t=i.translate(a.high,0,1,0,1),a.plotLow=a.plotY,e.y=t,e.height=a.plotY-t,a.trackerArgs=e})},drawGraph:b,pointAttrToOptions:P.pointAttrToOptions,drawPoints:P.drawPoints,drawTracker:P.drawTracker,animate:P.animate}),c.gauge=r(c.line,{dataLabels:{enabled:!0,y:15,borderWidth:1,borderColor:"silver",borderRadius:3,style:{fontWeight:"bold"},verticalAlign:"top"},dial:{},pivot:{},tooltip:{headerFormat:""},showInLegend:!1}),c={type:"gauge",pointClass:t.extendClass(t.Point,{setState:function(t){this.state=t}}),angular:!0,translate:function(){var t=this,i=t.yAxis,a=i.center;t.generatePoints(),s(t.points,function(e){var n=r(t.options.dial,e.dial),s=p(h(n.radius,80))*a[2]/200,o=p(h(n.baseLength,70))*s/100,l=p(h(n.rearLength,10))*s/100,c=n.baseWidth||3,d=n.topWidth||1;e.shapeType="path",e.shapeArgs={d:n.path||["M",-l,-c/2,"L",o,-c/2,s,-d/2,s,d/2,o,c/2,-l,c/2,"z"],translateX:a[0],translateY:a[1],rotation:180*(i.startAngleRad+i.translate(e.y))/Math.PI},e.plotX=a[0],e.plotY=a[1]})},drawPoints:function(){var t=this,i=t.yAxis.center,a=t.pivot,e=t.options,n=e.pivot;s(t.points,function(i){var a=i.graphic,n=i.shapeArgs,s=n.d,o=r(e.dial,i.dial);a?(a.animate(n),n.d=s):i.graphic=t.chart.renderer[i.shapeType](n).attr({stroke:o.borderColor||"none","stroke-width":o.borderWidth||0,fill:o.backgroundColor||"black",rotation:n.rotation}).add(t.group)}),a?a.animate({cx:i[0],cy:i[1]}):t.pivot=t.chart.renderer.circle(i[0],i[1],h(n.radius,5)).attr({"stroke-width":n.borderWidth||0,stroke:n.borderColor||"silver",fill:n.backgroundColor||"black"}).add(t.group)},animate:function(){var t=this;s(t.points,function(i){var a=i.graphic;a&&(a.attr({rotation:180*t.yAxis.startAngleRad/Math.PI}),a.animate({rotation:i.shapeArgs.rotation},t.options.animation))}),t.animate=null},render:function(){this.group=this.plotGroup("group","series",this.visible?"visible":"hidden",this.options.zIndex,this.chart.seriesGroup),d.pie.prototype.render.call(this),this.group.clip(this.chart.clipRect)},setData:d.pie.prototype.setData,drawTracker:d.column.prototype.drawTracker},d.gauge=t.extendClass(d.line,c);var v=x.prototype,c=t.MouseTracker.prototype;v.toXY=function(t){var i,a=this.chart;i=t.plotX;var e=t.plotY;t.rectPlotX=i,t.rectPlotY=e,t.deg=180*(i/Math.PI),i=this.xAxis.postTranslate(t.plotX,this.yAxis.len-e),t.plotX=t.polarPlotX=i.x-a.plotLeft,t.plotY=t.polarPlotY=i.y-a.plotTop},u(d.area.prototype,"init",e),u(d.areaspline.prototype,"init",e),u(d.spline.prototype,"getPointSpline",function(t,i,a,e){var n,s,o,r,l,h,p;return this.chart.polar?(n=a.plotX,s=a.plotY,t=i[e-1],o=i[e+1],this.connectEnds&&(t||(t=i[i.length-2]),o||(o=i[1])),t&&o&&(r=t.plotX,l=t.plotY,i=o.plotX,h=o.plotY,r=(1.5*n+r)/2.5,l=(1.5*s+l)/2.5,o=(1.5*n+i)/2.5,p=(1.5*s+h)/2.5,i=Math.sqrt(Math.pow(r-n,2)+Math.pow(l-s,2)),h=Math.sqrt(Math.pow(o-n,2)+Math.pow(p-s,2)),r=Math.atan2(l-s,r-n),l=Math.atan2(p-s,o-n),p=Math.PI/2+(r+l)/2,Math.abs(r-p)>Math.PI/2&&(p-=Math.PI),r=n+Math.cos(p)*i,l=s+Math.sin(p)*i,o=n+Math.cos(Math.PI+p)*h,p=s+Math.sin(Math.PI+p)*h,a.rightContX=o,a.rightContY=p),e?(a=["C",t.rightContX||t.plotX,t.rightContY||t.plotY,r||n,l||s,n,s],t.rightContX=t.rightContY=null):a=["M",n,s]):a=t.call(this,i,a,e),a}),u(v,"translate",function(t){if(t.call(this),this.chart.polar&&!this.preventPostTranslate)for(var t=this.points,i=t.length;i--;)this.toXY(t[i])}),u(v,"getSegmentPath",function(t,i){var a=this.points;return this.chart.polar&&this.options.connectEnds!==!1&&i[i.length-1]===a[a.length-1]&&null!==a[0].y&&(this.connectEnds=!0,i=[].concat(i,[a[0]])),t.call(this,i)}),u(v,"animate",n),u(P,"animate",n),u(v,"setTooltipPoints",function(t,i){return this.chart.polar&&o(this.xAxis,{tooltipLen:360,tooltipPosName:"deg"}),t.call(this,i)}),u(P,"translate",function(t){var i,a,e=this.xAxis,n=this.yAxis.len,s=e.center,o=e.startAngleRad,r=this.chart.renderer;if(this.preventPostTranslate=!0,t.call(this),e.isRadial)for(e=this.points,a=e.length;a--;)i=e[a],t=i.barX+o,i.shapeType="path",i.shapeArgs={d:r.symbols.arc(s[0],s[1],n-i.plotY,null,{start:t,end:t+i.pointWidth,innerR:n-h(i.yBottom,n)})},this.toXY(i)}),u(P,"alignDataLabel",function(t,i,a,e,n,s){this.chart.polar?(t=180*(i.rectPlotX/Math.PI),null===e.align&&(e.align=t>20&&160>t?"left":t>200&&340>t?"right":"center"),null===e.verticalAlign&&(e.verticalAlign=45>t||t>315?"bottom":t>135&&225>t?"top":"middle"),v.alignDataLabel.call(this,i,a,e,n,s)):t.call(this,i,a,e,n,s)}),u(c,"getIndex",function(t,i){var a,e,n=this.chart;return n.polar?(e=n.xAxis[0].center,a=i.chartX-e[0]-n.plotLeft,n=i.chartY-e[1]-n.plotTop,a=180-Math.round(180*(Math.atan2(a,n)/Math.PI))):a=t.call(this,i),a}),u(c,"getMouseCoordinates",function(t,i){var a=this.chart,e={xAxis:[],yAxis:[]};return a.polar?s(a.axes,function(t){var n=t.isXAxis,s=t.center,o=i.chartX-s[0]-a.plotLeft,s=i.chartY-s[1]-a.plotTop;e[n?"xAxis":"yAxis"].push({axis:t,value:t.translate(n?Math.PI-Math.atan2(o,s):Math.sqrt(Math.pow(o,2)+Math.pow(s,2)),!0)})}):e=t.call(this,i),e})}(Highcharts);
@@ -0,0 +1,12 @@
1
+ /*
2
+ Highcharts JS v2.3.3 (2012-10-04)
3
+
4
+ (c) 2009-2011 Torstein Hønsi
5
+
6
+ License: www.highcharts.com/license
7
+ */
8
+
9
+ define(["jquery"],function(){return function(){function t(t,e){var i;t||(t={});for(i in e)t[i]=e[i];return t}function e(){for(var t=0,e=arguments,i=e.length,s={};i>t;t++)s[e[t++]]=e[t];return s}function i(t,e){return parseInt(t,e||10)}function s(t){return"string"==typeof t}function n(t){return"object"==typeof t}function o(t){return"[object Array]"===Object.prototype.toString.call(t)}function r(t){return"number"==typeof t}function a(t){return le.log(t)/le.LN10}function h(t){return le.pow(10,t)}function l(t,e){for(var i=t.length;i--;)if(t[i]===e){t.splice(i,1);break}}function c(t){return t!==N&&null!==t}function d(t,e,i){var o,r;if(s(e))c(i)?t.setAttribute(e,i):t&&t.getAttribute&&(r=t.getAttribute(e));else if(c(e)&&n(e))for(o in e)t.setAttribute(o,e[o]);return r}function p(t){return o(t)?t:[t]}function u(){var t,e,i=arguments,s=i.length;for(t=0;s>t;t++)if(e=i[t],"undefined"!=typeof e&&null!==e)return e}function g(e,i){we&&i&&i.opacity!==N&&(i.filter="alpha(opacity="+100*i.opacity+")"),t(e.style,i)}function f(e,i,s,n,o){return e=ae.createElement(e),i&&t(e,i),o&&g(e,{padding:0,border:Oe,margin:0}),s&&g(e,s),n&&n.appendChild(e),e}function m(e,i){var s=function(){};return s.prototype=new e,t(s.prototype,i),s}function v(t,e,s,n){var o=j.lang,r=t;-1===e?(e=(t||0).toString(),t=e.indexOf(".")>-1?e.split(".")[1].length:0):t=isNaN(e=fe(e))?2:e;var e=t,s=void 0===s?o.decimalPoint:s,n=void 0===n?o.thousandsSep:n,o=0>r?"-":"",t=String(i(r=fe(+r||0).toFixed(e))),a=t.length>3?t.length%3:0;return o+(a?t.substr(0,a)+n:"")+t.substr(a).replace(/(\d{3})(?=\d)/g,"$1"+n)+(e?s+fe(r-t).toFixed(e).slice(2):"")}function x(t,e){return Array((e||2)+1-String(t).length).join(0)+t}function y(t,e,i,s){var n,i=u(i,1);for(n=t/i,e||(e=[1,2,2.5,5,10],s&&s.allowDecimals===!1&&(1===i?e=[1,2,5,10]:.1>=i&&(e=[1/i]))),s=0;s<e.length&&(t=e[s],!(n<=(e[s]+(e[s+1]||e[s]))/2));s++);return t*=i}function b(t,e){var i,s=e||[[We,[1,2,5,10,20,25,50,100,200,500]],[Ee,[1,2,5,10,15,30]],[Ge,[1,2,5,10,15,30]],[Xe,[1,2,3,4,6,8,12]],[Ne,[1,2]],[Fe,[1,2]],[Ye,[1,2,3,4,6]],[je,null]],n=s[s.length-1],o=_[n[0]],r=n[1];for(i=0;i<s.length&&(n=s[i],o=_[n[0]],r=n[1],!(s[i+1]&&t<=(o*r[r.length-1]+_[s[i+1][0]])/2));i++);return o===_[je]&&5*o>t&&(r=[1,2,5]),o===_[je]&&5*o>t&&(r=[1,2,5]),s=y(t/o,r),{unitRange:o,count:s,unitName:n[0]}}function k(e,i,s,n){var o,r=[],a={},h=j.global.useUTC,l=new Date(i),i=e.unitRange,c=e.count;i>=_[Ee]&&(l.setMilliseconds(0),l.setSeconds(i>=_[Ge]?0:c*de(l.getSeconds()/c))),i>=_[Ge]&&l[ie](i>=_[Xe]?0:c*de(l[$]()/c)),i>=_[Xe]&&l[se](i>=_[Ne]?0:c*de(l[J]()/c)),i>=_[Ne]&&l[ne](i>=_[Ye]?1:c*de(l[Q]()/c)),i>=_[Ye]&&(l[oe](i>=_[je]?0:c*de(l[te]()/c)),o=l[ee]()),i>=_[je]&&(o-=o%c,l[re](o)),i===_[Fe]&&l[ne](l[Q]()-l[q]()+u(n,1)),n=1,o=l[ee]();for(var d=l.getTime(),p=l[te](),g=l[Q](),l=h?0:(864e5+6e4*l.getTimezoneOffset())%864e5;s>d;)r.push(d),i===_[je]?d=K(o+n*c,0):i===_[Ye]?d=K(o,p+n*c):h||i!==_[Ne]&&i!==_[Fe]?(d+=i*c,i<=_[Xe]&&d%_[Ne]===l&&(a[d]=Ne)):d=K(o,p,g+n*c*(i===_[Ne]?1:7)),n++;return r.push(d),r.info=t(e,{higherRanks:a,totalRange:i*c}),r}function w(){this.symbol=this.color=0}function T(t,e){var i,s,n=t.length;for(s=0;n>s;s++)t[s].ss_i=s;for(t.sort(function(t,s){return i=e(t,s),0===i?t.ss_i-s.ss_i:i}),s=0;n>s;s++)delete t[s].ss_i}function L(t){for(var e=t.length,i=t[0];e--;)t[e]<i&&(i=t[e]);return i}function P(t){for(var e=t.length,i=t[0];e--;)t[e]>i&&(i=t[e]);return i}function S(t,e){for(var i in t)t[i]&&t[i]!==e&&t[i].destroy&&t[i].destroy(),delete t[i]}function A(t){Y||(Y=f(Re)),t&&Y.appendChild(t),Y.innerHTML=""}function M(t,e){var i="Highcharts error #"+t+": www.highcharts.com/errors/"+t;if(e)throw i;he.console&&console.log(i)}function C(t){return parseFloat(t.toPrecision(14))}function I(t,e){Z=u(t,e.animation)}function B(){var t=j.global.useUTC,e=t?"getUTC":"get",i=t?"setUTC":"set";K=t?Date.UTC:function(t,e,i,s,n,o){return new Date(t,e,u(i,1),u(s,0),u(n,0),u(o,0)).getTime()},$=e+"Minutes",J=e+"Hours",q=e+"Day",Q=e+"Date",te=e+"Month",ee=e+"FullYear",ie=i+"Minutes",se=i+"Hours",ne=i+"Date",oe=i+"Month",re=i+"FullYear"}function D(){}function z(t,e,i){this.axis=t,this.pos=e,this.type=i||"",this.isNew=!0,i||this.addLabel()}function R(t,e){return this.axis=t,e&&(this.options=e,this.id=e.id),this}function O(t,e,i,s,n,o){var r=t.chart.inverted;this.axis=t,this.isNegative=i,this.options=e,this.x=s,this.stack=n,this.percent="percent"===o,this.alignOptions={align:e.align||(r?i?"left":"right":"center"),verticalAlign:e.verticalAlign||(r?"middle":i?"bottom":"top"),y:u(e.y,r?4:i?14:-6),x:u(e.x,r?i?-6:6:0)},this.textAlign=e.textAlign||(r?i?"right":"left":"center")}function H(){this.init.apply(this,arguments)}function W(t,e){var s=e.borderWidth,n=e.style,o=i(n.padding);this.chart=t,this.options=e,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.label=t.renderer.label("",0,0,e.shape,null,null,e.useHTML,null,"tooltip").attr({padding:o,fill:e.backgroundColor,"stroke-width":s,r:e.borderRadius,zIndex:8}).css(n).css({padding:0}).hide().add(),Ce||this.label.shadow(e.shadow),this.shared=e.shared}function E(t,e){var i=Ce?"":e.chart.zoomType;this.zoomX=/x/.test(i),this.zoomY=/y/.test(i),this.options=e,this.chart=t,this.init(t,e.tooltip)}function G(t){this.init(t)}function X(t,e){var i,s=t.series;t.series=null,i=ei(j,t),i.series=t.series=s;var s=i.chart,o=s.margin,o=n(o)?o:[o,o,o,o];this.optionsMarginTop=u(s.marginTop,o[0]),this.optionsMarginRight=u(s.marginRight,o[1]),this.optionsMarginBottom=u(s.marginBottom,o[2]),this.optionsMarginLeft=u(s.marginLeft,o[3]),this.runChartClick=(o=s.events)&&!!o.click,this.callback=e,this.isResizing=0,this.options=i,this.axes=[],this.series=[],this.hasCartesianSeries=s.showAxes,this.init(o)}var N,F,Y,j,V,Z,U,_,K,$,J,q,Q,te,ee,ie,se,ne,oe,re,ae=document,he=window,le=Math,ce=le.round,de=le.floor,pe=le.ceil,ue=le.max,ge=le.min,fe=le.abs,me=le.cos,ve=le.sin,xe=le.PI,ye=2*xe/360,be=navigator.userAgent,ke=he.opera,we=/msie/i.test(be)&&!ke,Te=8===ae.documentMode,Le=/AppleWebKit/.test(be),Pe=/Firefox/.test(be),Se="http://www.w3.org/2000/svg",Ae=!!ae.createElementNS&&!!ae.createElementNS(Se,"svg").createSVGRect,Me=Pe&&parseInt(be.split("Firefox/")[1],10)<4,Ce=!Ae&&!we&&!!ae.createElement("canvas").getContext,Ie=ae.documentElement.ontouchstart!==N,Be={},De=0,ze=function(){},Re="div",Oe="none",He="rgba(192,192,192,"+(Ae?1e-6:.002)+")",We="millisecond",Ee="second",Ge="minute",Xe="hour",Ne="day",Fe="week",Ye="month",je="year",Ve={};he.Highcharts={},V=function(t,e,i){if(!c(e)||isNaN(e))return"Invalid date";var s,t=u(t,"%Y-%m-%d %H:%M:%S"),n=new Date(e),o=n[J](),r=n[q](),a=n[Q](),h=n[te](),l=n[ee](),d=j.lang,p=d.weekdays,e={a:p[r].substr(0,3),A:p[r],d:x(a),e:a,b:d.shortMonths[h],B:d.months[h],m:x(h+1),y:l.toString().substr(2,2),Y:l,H:x(o),I:x(o%12||12),l:o%12||12,M:x(n[$]()),p:12>o?"AM":"PM",P:12>o?"am":"pm",S:x(n.getSeconds()),L:x(ce(e%1e3),3)};for(s in e)t=t.replace("%"+s,e[s]);return i?t.substr(0,1).toUpperCase()+t.substr(1):t},w.prototype={wrapColor:function(t){this.color>=t&&(this.color=0)},wrapSymbol:function(t){this.symbol>=t&&(this.symbol=0)}},_=e(We,1,Ee,1e3,Ge,6e4,Xe,36e5,Ne,864e5,Fe,6048e5,Ye,2592e6,je,31556952e3),U={init:function(t,e,i){var s,n,o,e=e||"",r=t.shift,a=e.indexOf("C")>-1,h=a?7:3,e=e.split(" "),i=[].concat(i),l=function(t){for(s=t.length;s--;)"M"===t[s]&&t.splice(s+1,0,t[s+1],t[s+2],t[s+1],t[s+2])};if(a&&(l(e),l(i)),t.isArea&&(n=e.splice(e.length-6,6),o=i.splice(i.length-6,6)),r<=i.length/h)for(;r--;)i=[].concat(i).splice(0,h).concat(i);if(t.shift=0,e.length)for(t=i.length;e.length<t;)r=[].concat(e).splice(e.length-h,h),a&&(r[h-6]=r[h-2],r[h-5]=r[h-1]),e=e.concat(r);return n&&(e=e.concat(n),i=i.concat(o)),[e,i]},step:function(t,e,i,s){var n=[],o=t.length;if(1===i)n=s;else if(o===e.length&&1>i)for(;o--;)s=parseFloat(t[o]),n[o]=isNaN(s)?t[o]:i*parseFloat(e[o]-s)+s;else n=e;return n}},function(e){he.HighchartsAdapter=he.HighchartsAdapter||e&&{init:function(t){var i,s=e.fx,n=s.step,o=e.Tween,r=o&&o.propHooks;e.extend(e.easing,{easeOutQuad:function(t,e,i,s,n){return-s*(e/=n)*(e-2)+i}}),e.each(["cur","_default","width","height"],function(t,e){var i,a,h=n;"cur"===e?h=s.prototype:"_default"===e&&o&&(h=r[e],e="set"),(i=h[e])&&(h[e]=function(s){return s=t?s:this,a=s.elem,a.attr?a.attr(s.prop,"cur"===e?N:s.now):i.apply(this,arguments)})}),i=function(e){var i,s=e.elem;e.started||(i=t.init(s,s.d,s.toD),e.start=i[0],e.end=i[1],e.started=!0),s.attr("d",t.step(e.start,e.end,e.pos,s.toD))},o?r.d={set:i}:n.d=i,this.each=Array.prototype.forEach?function(t,e){return Array.prototype.forEach.call(t,e)}:function(t,e){for(var i=0,s=t.length;s>i;i++)if(e.call(t[i],t[i],i,t)===!1)return i}},getScript:e.getScript,inArray:e.inArray,adapterRun:function(t,i){return e(t)[i]()},grep:e.grep,map:function(t,e){for(var i=[],s=0,n=t.length;n>s;s++)i[s]=e.call(t[s],t[s],s,t);return i},merge:function(){var t=arguments;return e.extend(!0,null,t[0],t[1],t[2],t[3])},offset:function(t){return e(t).offset()},addEvent:function(t,i,s){e(t).bind(i,s)},removeEvent:function(t,i,s){var n=ae.removeEventListener?"removeEventListener":"detachEvent";ae[n]&&!t[n]&&(t[n]=function(){}),e(t).unbind(i,s)},fireEvent:function(i,s,n,o){var r,a=e.Event(s),h="detached"+s;!we&&n&&(delete n.layerX,delete n.layerY),t(a,n),i[s]&&(i[h]=i[s],i[s]=null),e.each(["preventDefault","stopPropagation"],function(t,e){var i=a[e];a[e]=function(){try{i.call(a)}catch(t){"preventDefault"===e&&(r=!0)}}}),e(i).trigger(a),i[h]&&(i[s]=i[h],i[h]=null),o&&!a.isDefaultPrevented()&&!r&&o(a)},washMouseEvent:function(t){var e=t.originalEvent||t;return e.pageX===N&&(e.pageX=t.pageX,e.pageY=t.pageY),e},animate:function(t,i,s){var n=e(t);i.d&&(t.toD=i.d,i.d=1),n.stop(),n.animate(i,s)},stop:function(t){e(t).stop()}}}(he.jQuery);var Ze=he.HighchartsAdapter,Ue=Ze||{};Ze&&Ze.init.call(Ze,U);var _e=Ue.adapterRun,Ke=Ue.getScript,$e=Ue.inArray,Je=Ue.each,qe=Ue.grep,Qe=Ue.offset,ti=Ue.map,ei=Ue.merge,ii=Ue.addEvent,si=Ue.removeEvent,ni=Ue.fireEvent,oi=Ue.washMouseEvent,ri=Ue.animate,ai=Ue.stop,Ue={enabled:!0,align:"center",x:0,y:15,style:{color:"#666",fontSize:"11px",lineHeight:"14px"}};j={colors:"#4572A7,#AA4643,#89A54E,#80699B,#3D96AE,#DB843D,#92A8CD,#A47D7C,#B5CA92".split(","),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),shortMonths:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),decimalPoint:".",numericSymbols:"k,M,G,T,P,E".split(","),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:","},global:{useUTC:!0,canvasToolsURL:"http://code.highcharts.com/2.3.3/modules/canvas-tools.js",VMLRadialGradientURL:"http://code.highcharts.com/2.3.3/gfx/vml-radial-gradient.png"},chart:{borderColor:"#4572A7",borderRadius:5,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacingTop:10,spacingRight:10,spacingBottom:15,spacingLeft:10,style:{fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif',fontSize:"12px"},backgroundColor:"#FFFFFF",plotBorderColor:"#C0C0C0",resetZoomButton:{theme:{zIndex:20},position:{align:"right",x:-10,y:10}}},title:{text:"Chart title",align:"center",y:15,style:{color:"#3E576F",fontSize:"16px"}},subtitle:{text:"",align:"center",y:30,style:{color:"#6D869F"}},plotOptions:{line:{allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},events:{},lineWidth:2,shadow:!0,marker:{enabled:!0,lineWidth:0,radius:4,lineColor:"#FFFFFF",states:{hover:{enabled:!0},select:{fillColor:"#FFFFFF",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:ei(Ue,{enabled:!1,formatter:function(){return this.y},verticalAlign:"bottom",y:0}),cropThreshold:300,pointRange:0,showInLegend:!0,states:{hover:{marker:{}},select:{marker:{}}},stickyTracking:!0}},labels:{style:{position:"absolute",color:"#3E576F"}},legend:{enabled:!0,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderWidth:1,borderColor:"#909090",borderRadius:5,navigation:{activeColor:"#3E576F",inactiveColor:"#CCC"},shadow:!1,itemStyle:{cursor:"pointer",color:"#3E576F",fontSize:"12px"},itemHoverStyle:{color:"#000"},itemHiddenStyle:{color:"#CCC"},itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},symbolWidth:16,symbolPadding:5,verticalAlign:"bottom",x:0,y:0},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"1em"},style:{position:"absolute",backgroundColor:"white",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,backgroundColor:"rgba(255, 255, 255, .85)",borderWidth:2,borderRadius:5,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{series.color}">{series.name}</span>: <b>{point.y}</b><br/>',shadow:!0,shared:Ce,snap:Ie?25:10,style:{color:"#333333",fontSize:"12px",padding:"5px",whiteSpace:"nowrap"}},credits:{enabled:!0,text:"Highcharts.com",href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#909090",fontSize:"10px"}}};var hi=j.plotOptions,Ze=hi.line;B();var li=function(t){var e,s=[];return function(t){(e=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/.exec(t))?s=[i(e[1]),i(e[2]),i(e[3]),parseFloat(e[4],10)]:(e=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(t))&&(s=[i(e[1],16),i(e[2],16),i(e[3],16),1])}(t),{get:function(e){return s&&!isNaN(s[0])?"rgb"===e?"rgb("+s[0]+","+s[1]+","+s[2]+")":"a"===e?s[3]:"rgba("+s.join(",")+")":t},brighten:function(t){if(r(t)&&0!==t){var e;for(e=0;3>e;e++)s[e]+=i(255*t),s[e]<0&&(s[e]=0),s[e]>255&&(s[e]=255)}return this},setOpacity:function(t){return s[3]=t,this}}};D.prototype={init:function(t,e){this.element="span"===e?f(e):ae.createElementNS(Se,e),this.renderer=t,this.attrSetters={}},animate:function(t,e,i){e=u(e,Z,!0),ai(this),e?(e=ei(e),i&&(e.complete=i),ri(this,t,e)):(this.attr(t),i&&i())},attr:function(t,e){var n,o,r,a,h,l,p,u=this.element,g=u.nodeName.toLowerCase(),f=this.renderer,m=this.attrSetters,v=this.shadows,x=this;if(s(t)&&c(e)&&(n=t,t={},t[n]=e),s(t))n=t,"circle"===g?n={x:"cx",y:"cy"}[n]||n:"strokeWidth"===n&&(n="stroke-width"),x=d(u,n)||this[n]||0,"d"!==n&&"visibility"!==n&&(x=parseFloat(x));else for(n in t)if(h=!1,o=t[n],r=m[n]&&m[n].call(this,o,n),r!==!1){if(r!==N&&(o=r),"d"===n)o&&o.join&&(o=o.join(" ")),/(NaN| {2}|^$)/.test(o)&&(o="M 0 0");else if("x"===n&&"text"===g){for(r=0;r<u.childNodes.length;r++)a=u.childNodes[r],d(a,"x")===d(u,"x")&&d(a,"x",o);this.rotation&&d(u,"transform","rotate("+this.rotation+" "+o+" "+i(t.y||d(u,"y"))+")")}else if("fill"===n)o=f.color(o,u,n);else if("circle"!==g||"x"!==n&&"y"!==n)if("rect"===g&&"r"===n)d(u,{rx:o,ry:o}),h=!0;else if("translateX"===n||"translateY"===n||"rotation"===n||"verticalAlign"===n)h=p=!0;else if("stroke"===n)o=f.color(o,u,n);else if("dashstyle"===n){if(n="stroke-dasharray",o=o&&o.toLowerCase(),"solid"===o)o=Oe;else if(o){for(o=o.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(","),r=o.length;r--;)o[r]=i(o[r])*t["stroke-width"];o=o.join(",")}}else"isTracker"===n?this[n]=o:"width"===n?o=i(o):"align"===n?(n="text-anchor",o={left:"start",center:"middle",right:"end"}[o]):"title"===n&&(r=u.getElementsByTagName("title")[0],r||(r=ae.createElementNS(Se,"title"),u.appendChild(r)),r.textContent=o);else n={x:"cx",y:"cy"}[n]||n;if("strokeWidth"===n&&(n="stroke-width"),Le&&"stroke-width"===n&&0===o&&(o=1e-6),this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)/.test(n)&&(l||(this.symbolAttr(t),l=!0),h=!0),v&&/^(width|height|visibility|x|y|d|transform)$/.test(n))for(r=v.length;r--;)d(v[r],n,"height"===n?ue(o-(v[r].cutHeight||0),0):o);("width"===n||"height"===n)&&"rect"===g&&0>o&&(o=0),this[n]=o,p&&this.updateTransform(),"text"===n?(o!==this.textStr&&delete this.bBox,this.textStr=o,this.added&&f.buildText(this)):h||d(u,n,o)}return x},symbolAttr:function(t){var e=this;Je("x,y,r,start,end,width,height,innerR,anchorX,anchorY".split(","),function(i){e[i]=u(t[i],e[i])}),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})},clip:function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":Oe)},crisp:function(t,e,i,s,n){var o,r,a={},h={},t=t||this.strokeWidth||this.attr&&this.attr("stroke-width")||0;r=ce(t)%2/2,h.x=de(e||this.x||0)+r,h.y=de(i||this.y||0)+r,h.width=de((s||this.width||0)-2*r),h.height=de((n||this.height||0)-2*r),h.strokeWidth=t;for(o in h)this[o]!==h[o]&&(this[o]=a[o]=h[o]);return a},css:function(e){var i,s=this.element,s=e&&e.width&&"text"===s.nodeName.toLowerCase(),n="",o=function(t,e){return"-"+e.toLowerCase()};if(e&&e.color&&(e.fill=e.color),this.styles=e=t(this.styles,e),Ce&&s&&delete e.width,we&&!Ae)s&&delete e.width,g(this.element,e);else{for(i in e)n+=i.replace(/([A-Z])/g,o)+":"+e[i]+";";this.attr({style:n})}return s&&this.added&&this.renderer.buildText(this),this},on:function(t,e){var i=e;return Ie&&"click"===t&&(t="touchstart",i=function(t){t.preventDefault(),e()}),this.element["on"+t]=i,this},setRadialReference:function(t){return this.element.radialReference=t,this},translate:function(t,e){return this.attr({translateX:t,translateY:e})},invert:function(){return this.inverted=!0,this.updateTransform(),this},htmlCss:function(e){var i=this.element;return(i=e&&"SPAN"===i.tagName&&e.width)&&(delete e.width,this.textWidth=i,this.updateTransform()),this.styles=t(this.styles,e),g(this.element,e),this},htmlGetBBox:function(){var t=this.element,e=this.bBox;return e||("text"===t.nodeName&&(t.style.position="absolute"),e=this.bBox={x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}),e},htmlUpdateTransform:function(){if(this.added){var t=this.renderer,e=this.element,s=this.translateX||0,n=this.translateY||0,o=this.x||0,r=this.y||0,a=this.textAlign||"left",h={left:0,center:.5,right:1}[a],l=a&&"left"!==a,d=this.shadows;if((s||n)&&(g(e,{marginLeft:s,marginTop:n}),d&&Je(d,function(t){g(t,{marginLeft:s+1,marginTop:n+1})})),this.inverted&&Je(e.childNodes,function(i){t.invertChild(i,e)}),"SPAN"===e.tagName){var p,f,m,v,d=this.rotation,x=0,y=1,x=0;m=i(this.textWidth);var b=this.xCorr||0,k=this.yCorr||0,w=[d,a,e.innerHTML,this.textWidth].join(",");p={},w!==this.cTT&&(c(d)&&(t.isSVG?(b=we?"-ms-transform":Le?"-webkit-transform":Pe?"MozTransform":ke?"-o-transform":"",p[b]=p.transform="rotate("+d+"deg)"):(x=d*ye,y=me(x),x=ve(x),p.filter=d?["progid:DXImageTransform.Microsoft.Matrix(M11=",y,", M12=",-x,", M21=",x,", M22=",y,", sizingMethod='auto expand')"].join(""):Oe),g(e,p)),p=u(this.elemWidth,e.offsetWidth),f=u(this.elemHeight,e.offsetHeight),p>m&&/[ \-]/.test(e.innerText)&&(g(e,{width:m+"px",display:"block",whiteSpace:"normal"}),p=m),m=t.fontMetrics(e.style.fontSize).b,b=0>y&&-p,k=0>x&&-f,v=0>y*x,b+=x*m*(v?1-h:h),k-=y*m*(d?v?h:1-h:1),l&&(b-=p*h*(0>y?-1:1),d&&(k-=f*h*(0>x?-1:1)),g(e,{textAlign:a})),this.xCorr=b,this.yCorr=k),g(e,{left:o+b+"px",top:r+k+"px"}),this.cTT=w}}else this.alignOnAdd=!0},updateTransform:function(){var t=this.translateX||0,e=this.translateY||0,i=this.inverted,s=this.rotation,n=[];i&&(t+=this.attr("width"),e+=this.attr("height")),(t||e)&&n.push("translate("+t+","+e+")"),i?n.push("rotate(90) scale(-1,1)"):s&&n.push("rotate("+s+" "+(this.x||0)+" "+(this.y||0)+")"),n.length&&d(this.element,"transform",n.join(" "))},toFront:function(){var t=this.element;return t.parentNode.appendChild(t),this},align:function(t,e,i){t?(this.alignOptions=t,this.alignByTranslate=e,i||this.renderer.alignedObjects.push(this)):(t=this.alignOptions,e=this.alignByTranslate);var i=u(i,this.renderer),s=t.align,n=t.verticalAlign,o=(i.x||0)+(t.x||0),r=(i.y||0)+(t.y||0),a={};return("right"===s||"center"===s)&&(o+=(i.width-(t.width||0))/{right:1,center:2}[s]),a[e?"translateX":"x"]=ce(o),("bottom"===n||"middle"===n)&&(r+=(i.height-(t.height||0))/({bottom:1,middle:2}[n]||1)),a[e?"translateY":"y"]=ce(r),this[this.placed?"animate":"attr"](a),this.placed=!0,this.alignAttr=a,this},getBBox:function(){var e,i=this.bBox,s=this.renderer,n=this.rotation,o=this.element,r=this.styles,a=n*ye;if(!i){if(o.namespaceURI===Se||s.forExport){try{i=o.getBBox?t({},o.getBBox()):{width:o.offsetWidth,height:o.offsetHeight}}catch(h){}(!i||i.width<0)&&(i={width:0,height:0})}else i=this.htmlGetBBox();s.isSVG&&(s=i.width,e=i.height,n)&&(i.width=fe(e*ve(a))+fe(s*me(a)),i.height=fe(e*me(a))+fe(s*ve(a))),we&&r&&"11px"===r.fontSize&&22.700000762939453===e&&(i.height=14),this.bBox=i}return i},show:function(){return this.attr({visibility:"visible"})},hide:function(){return this.attr({visibility:"hidden"})},add:function(t){var e,s=this.renderer,n=t||s,o=n.element||s.box,r=o.childNodes,a=this.element,h=d(a,"zIndex");if(t&&(this.parentGroup=t),this.parentInverted=t&&t.inverted,void 0!==this.textStr&&s.buildText(this),h&&(n.handleZ=!0,h=i(h)),n.handleZ)for(n=0;n<r.length;n++)if(t=r[n],s=d(t,"zIndex"),t!==a&&(i(s)>h||!c(h)&&c(s))){o.insertBefore(a,t),e=!0;break}return e||o.appendChild(a),this.added=!0,ni(this,"add"),this},safeRemoveChild:function(t){var e=t.parentNode;e&&e.removeChild(t)},destroy:function(){var t,e,i=this,s=i.element||{},n=i.shadows;if(s.onclick=s.onmouseout=s.onmouseover=s.onmousemove=null,ai(i),i.clipPath&&(i.clipPath=i.clipPath.destroy()),i.stops){for(e=0;e<i.stops.length;e++)i.stops[e]=i.stops[e].destroy();i.stops=null}i.safeRemoveChild(s),n&&Je(n,function(t){i.safeRemoveChild(t)}),l(i.renderer.alignedObjects,i);for(t in i)delete i[t];return null},empty:function(){for(var t=this.element,e=t.childNodes,i=e.length;i--;)t.removeChild(e[i])},shadow:function(t,e,i){var s,n,o,r,a,h,l=[],c=this.element;if(t){for(r=u(t.width,3),a=(t.opacity||.15)/r,h=this.parentInverted?"(-1,-1)":"("+u(t.offsetX,1)+", "+u(t.offsetY,1)+")",s=1;r>=s;s++)n=c.cloneNode(0),o=2*r+1-2*s,d(n,{isShadow:"true",stroke:t.color||"black","stroke-opacity":a*s,"stroke-width":o,transform:"translate"+h,fill:Oe}),i&&(d(n,"height",ue(d(n,"height")-o,0)),n.cutHeight=o),e?e.element.appendChild(n):c.parentNode.insertBefore(n,c),l.push(n);this.shadows=l}return this}};var ci=function(){this.init.apply(this,arguments)};ci.prototype={Element:D,init:function(t,e,i,s){var n,o=location;n=this.createElement("svg").attr({xmlns:Se,version:"1.1"}),t.appendChild(n.element),this.isSVG=!0,this.box=n.element,this.boxWrapper=n,this.alignedObjects=[],this.url=(Pe||Le)&&ae.getElementsByTagName("base").length?o.href.replace(/#.*?$/,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.defs=this.createElement("defs").add(),this.forExport=s,this.gradients={},this.setSize(e,i,!1);var r;Pe&&t.getBoundingClientRect&&(this.subPixelFix=e=function(){g(t,{left:0,top:0}),r=t.getBoundingClientRect(),g(t,{left:pe(r.left)-r.left+"px",top:pe(r.top)-r.top+"px"})},e(),ii(he,"resize",e))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),S(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.subPixelFix&&si(he,"resize",this.subPixelFix),this.alignedObjects=null},createElement:function(t){var e=new this.Element;return e.init(this,t),e},draw:function(){},buildText:function(t){for(var e,s=t.element,n=u(t.textStr,"").toString().replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">').replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(/<br.*?>/g),o=s.childNodes,r=/style="([^"]+)"/,a=/href="([^"]+)"/,h=d(s,"x"),l=t.styles,c=l&&l.width&&i(l.width),p=l&&l.lineHeight,l=o.length,f=[];l--;)s.removeChild(o[l]);c&&!t.added&&this.box.appendChild(s),""===n[n.length-1]&&n.pop(),Je(n,function(n,o){var l,u,m=0,n=n.replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||");l=n.split("|||"),Je(l,function(n){if(""!==n||1===l.length){var v,x={},y=ae.createElementNS(Se,"tspan");if(r.test(n)&&(v=n.match(r)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),d(y,"style",v)),a.test(n)&&(d(y,"onclick",'location.href="'+n.match(a)[1]+'"'),g(y,{cursor:"pointer"})),n=(n.replace(/<(.|\n)*?>/g,"")||" ").replace(/&lt;/g,"<").replace(/&gt;/g,">"),y.appendChild(ae.createTextNode(n)),m?x.dx=3:x.x=h,!m){if(o){if(!Ae&&t.renderer.forExport&&g(y,{display:"block"}),u=he.getComputedStyle&&i(he.getComputedStyle(e,null).getPropertyValue("line-height")),!u||isNaN(u)){var b;(b=p)||(b=e.offsetHeight)||(f[o]=s.getBBox?s.getBBox().height:t.renderer.fontMetrics(s.style.fontSize).h,b=ce(f[o]-(f[o-1]||0))||18),u=b}d(y,"dy",u)}e=y}if(d(y,x),s.appendChild(y),m++,c)for(var n=n.replace(/([^\^])-/g,"$1- ").split(" "),k=[];n.length||k.length;)delete t.bBox,b=t.getBBox().width,x=b>c,x&&1!==n.length?(y.removeChild(y.firstChild),k.unshift(n.pop())):(n=k,k=[],n.length&&(y=ae.createElementNS(Se,"tspan"),d(y,{dy:p||16,x:h}),v&&d(y,"style",v),s.appendChild(y),b>c&&(c=b))),n.length&&y.appendChild(ae.createTextNode(n.join(" ").replace(/- /g,"-")))}})})},button:function(i,s,n,o,r,a,h){var l,c,d,p,u,g=this.label(i,s,n),f=0,i={x1:0,y1:0,x2:0,y2:1},r=ei(e("stroke-width",1,"stroke","#999","fill",e("linearGradient",i,"stops",[[0,"#FFF"],[1,"#DDD"]]),"r",3,"padding",3,"style",e("color","black")),r);return d=r.style,delete r.style,a=ei(r,e("stroke","#68A","fill",e("linearGradient",i,"stops",[[0,"#FFF"],[1,"#ACF"]])),a),p=a.style,delete a.style,h=ei(r,e("stroke","#68A","fill",e("linearGradient",i,"stops",[[0,"#9BD"],[1,"#CDF"]])),h),u=h.style,delete h.style,ii(g.element,"mouseenter",function(){g.attr(a).css(p)}),ii(g.element,"mouseleave",function(){l=[r,a,h][f],c=[d,p,u][f],g.attr(l).css(c)}),g.setState=function(t){(f=t)?2===t&&g.attr(h).css(u):g.attr(r).css(d)},g.on("click",function(){o.call(g)}).attr(r).css(t({cursor:"default"},d))},crispLine:function(t,e){return t[1]===t[4]&&(t[1]=t[4]=ce(t[1])-e%2/2),t[2]===t[5]&&(t[2]=t[5]=ce(t[2])+e%2/2),t},path:function(e){var i={fill:Oe};return o(e)?i.d=e:n(e)&&t(i,e),this.createElement("path").attr(i)},circle:function(t,e,i){return t=n(t)?t:{x:t,y:e,r:i},this.createElement("circle").attr(t)},arc:function(t,e,i,s,o,r){return n(t)&&(e=t.y,i=t.r,s=t.innerR,o=t.start,r=t.end,t=t.x),this.symbol("arc",t||0,e||0,i||0,i||0,{innerR:s||0,start:o||0,end:r||0})},rect:function(t,e,i,s,o,r){return o=n(t)?t.r:o,o=this.createElement("rect").attr({rx:o,ry:o,fill:Oe}),o.attr(n(t)?t:o.crisp(r,t,e,ue(i,0),ue(s,0)))},setSize:function(t,e,i){var s=this.alignedObjects,n=s.length;for(this.width=t,this.height=e,this.boxWrapper[u(i,!0)?"animate":"attr"]({width:t,height:e});n--;)s[n].align()},g:function(t){var e=this.createElement("g");return c(t)?e.attr({"class":"highcharts-"+t}):e},image:function(e,i,s,n,o){var r={preserveAspectRatio:Oe};return arguments.length>1&&t(r,{x:i,y:s,width:n,height:o}),r=this.createElement("image").attr(r),r.element.setAttributeNS?r.element.setAttributeNS("http://www.w3.org/1999/xlink","href",e):r.element.setAttribute("hc-svg-href",e),r},symbol:function(e,i,s,n,o,r){var a,h,l,c=this.symbols[e],c=c&&c(ce(i),ce(s),n,o,r),d=/^url\((.*?)\)$/;return c?(a=this.path(c),t(a,{symbolName:e,x:i,y:s,width:n,height:o}),r&&t(a,r)):d.test(e)&&(l=function(t,e){t.attr({width:e[0],height:e[1]}),t.alignByTranslate||t.translate(-ce(e[0]/2),-ce(e[1]/2))},h=e.match(d)[1],e=Be[h],a=this.image(h).attr({x:i,y:s}),e?l(a,e):(a.attr({width:0,height:0}),f("img",{onload:function(){l(a,Be[h]=[this.width,this.height])},src:h}))),a},symbols:{circle:function(t,e,i,s){var n=.166*i;return["M",t+i/2,e,"C",t+i+n,e,t+i+n,e+s,t+i/2,e+s,"C",t-n,e+s,t-n,e,t+i/2,e,"Z"]},square:function(t,e,i,s){return["M",t,e,"L",t+i,e,t+i,e+s,t,e+s,"Z"]},triangle:function(t,e,i,s){return["M",t+i/2,e,"L",t+i,e+s,t,e+s,"Z"]},"triangle-down":function(t,e,i,s){return["M",t,e,"L",t+i,e,t+i/2,e+s,"Z"]},diamond:function(t,e,i,s){return["M",t+i/2,e,"L",t+i,e+s/2,t+i/2,e+s,t,e+s/2,"Z"]},arc:function(t,e,i,s,n){var o=n.start,i=n.r||i||s,r=n.end-1e-6,s=n.innerR,a=n.open,h=me(o),l=ve(o),c=me(r),r=ve(r),n=n.end-o<xe?0:1;return["M",t+i*h,e+i*l,"A",i,i,0,n,1,t+i*c,e+i*r,a?"M":"L",t+s*c,e+s*r,"A",s,s,0,n,0,t+s*h,e+s*l,a?"":"Z"]}},clipRect:function(t,e,i,s){var n="highcharts-"+De++,o=this.createElement("clipPath").attr({id:n}).add(this.defs),t=this.rect(t,e,i,s,0).add(o);return t.id=n,t.clipPath=o,t},color:function(e,i,s){var n,r,a=this,h=/^rgba/;if(e&&e.linearGradient?r="linearGradient":e&&e.radialGradient&&(r="radialGradient"),r){var l,p,u,s=e[r],g=a.gradients,i=i.radialReference;return s.id&&g[s.id]||(o(s)&&(e[r]=s={x1:s[0],y1:s[1],x2:s[2],y2:s[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===r&&i&&!c(s.gradientUnits)&&t(s,{cx:i[0]-i[2]/2+s.cx*i[2],cy:i[1]-i[2]/2+s.cy*i[2],r:s.r*i[2],gradientUnits:"userSpaceOnUse"}),s.id="highcharts-"+De++,g[s.id]=l=a.createElement(r).attr(s).add(a.defs),l.stops=[],Je(e.stops,function(t){h.test(t[1])?(n=li(t[1]),p=n.get("rgb"),u=n.get("a")):(p=t[1],u=1),t=a.createElement("stop").attr({offset:t[0],"stop-color":p,"stop-opacity":u}).add(l),l.stops.push(t)})),"url("+a.url+"#"+s.id+")"}return h.test(e)?(n=li(e),d(i,s+"-opacity",n.get("a")),n.get("rgb")):(i.removeAttribute(s+"-opacity"),e)},text:function(t,e,i,s){var n=j.chart.style,o=Ce||!Ae&&this.forExport;return s&&!this.forExport?this.html(t,e,i):(e=ce(u(e,0)),i=ce(u(i,0)),t=this.createElement("text").attr({x:e,y:i,text:t}).css({fontFamily:n.fontFamily,fontSize:n.fontSize}),o&&t.css({position:"absolute"}),t.x=e,t.y=i,t)},html:function(e,i,s){var n=j.chart.style,o=this.createElement("span"),r=o.attrSetters,a=o.element,h=o.renderer;return r.text=function(t){return t!==a.innerHTML&&delete this.bBox,a.innerHTML=t,!1},r.x=r.y=r.align=function(t,e){return"align"===e&&(e="textAlign"),o[e]=t,o.htmlUpdateTransform(),!1},o.attr({text:e,x:ce(i),y:ce(s)}).css({position:"absolute",whiteSpace:"nowrap",fontFamily:n.fontFamily,fontSize:n.fontSize}),o.css=o.htmlCss,h.isSVG&&(o.add=function(e){var i,s=h.box.parentNode,n=[];if(e){if(i=e.div,!i){for(;e;)n.push(e),e=e.parentGroup;Je(n.reverse(),function(e){var n;i=e.div=e.div||f(Re,{className:d(e.element,"class")},{position:"absolute",left:(e.translateX||0)+"px",top:(e.translateY||0)+"px"},i||s),n=i.style,t(e.attrSetters,{translateX:function(t){n.left=t+"px"},translateY:function(t){n.top=t+"px"},visibility:function(t,e){n[e]=t}})})}}else i=s;return i.appendChild(a),o.added=!0,o.alignOnAdd&&o.htmlUpdateTransform(),o}),o},fontMetrics:function(t){var t=i(t||11),t=24>t?t+4:ce(1.2*t),e=ce(.8*t);return{h:t,b:e}},label:function(e,i,s,n,o,r,a,h,l){function d(){var t,e=w.styles,e=e&&e.textAlign,i=P*(1-L);t=h?0:b,!c(m)||"center"!==e&&"right"!==e||(i+={center:.5,right:1}[e]*(m-f.width)),(i!==T.x||t!==T.y)&&T.attr({x:i,y:t}),T.x=i,T.y=t}function p(t,e){g?g.attr(t,e):A[t]=e}function u(){T.add(w),w.attr({text:e,x:i,y:s}),c(o)&&w.attr({anchorX:o,anchorY:r})}var g,f,m,v,x,y,b,k=this,w=k.g(l),T=k.text("",0,0,a).attr({zIndex:1}),L=0,P=3,S=0,A={},a=w.attrSetters;ii(w,"add",u),a.width=function(t){return m=t,!1},a.height=function(t){return v=t,!1},a.padding=function(t){return c(t)&&t!==P&&(P=t,d()),!1},a.align=function(t){return L={left:0,center:.5,right:1}[t],!1},a.text=function(t,e){T.attr(e,t);var i;return i=T.element.style,f=(void 0===m||void 0===v||w.styles.textAlign)&&T.getBBox(),w.width=(m||f.width||0)+2*P,w.height=(v||f.height||0)+2*P,b=P+k.fontMetrics(i&&i.fontSize).b,g||(i=h?-b:0,w.box=g=n?k.symbol(n,-L*P,i,w.width,w.height):k.rect(-L*P,i,w.width,w.height,0,A["stroke-width"]),g.add(w)),g.attr(ei({width:w.width,height:w.height},A)),A=null,d(),!1},a["stroke-width"]=function(t,e){return S=t%2/2,p(e,t),!1},a.stroke=a.fill=a.r=function(t,e){return p(e,t),!1},a.anchorX=function(t,e){return o=t,p(e,t+S-x),!1},a.anchorY=function(t,e){return r=t,p(e,t-y),!1},a.x=function(t){return w.x=t,t-=L*((m||f.width)+P),x=ce(t),w.attr("translateX",x),!1
10
+ },a.y=function(t){return y=w.y=ce(t),w.attr("translateY",t),!1};var M=w.css;return t(w,{css:function(t){if(t){var e={},t=ei({},t);Je("fontSize,fontWeight,fontFamily,color,lineHeight,width".split(","),function(i){t[i]!==N&&(e[i]=t[i],delete t[i])}),T.css(e)}return M.call(w,t)},getBBox:function(){return g.getBBox()},shadow:function(t){return g.shadow(t),w},destroy:function(){si(w,"add",u),si(w.element,"mouseenter"),si(w.element,"mouseleave"),T&&(T=T.destroy()),g&&(g=g.destroy()),D.prototype.destroy.call(w)}})}},F=ci;var di;if(!Ae&&!Ce){di={init:function(t,e){var i=["<",e,' filled="f" stroked="f"'],s=["position: ","absolute",";"];("shape"===e||e===Re)&&s.push("left:0;top:0;width:1px;height:1px;"),Te&&s.push("visibility: ",e===Re?"hidden":"visible"),i.push(' style="',s.join(""),'"/>'),e&&(i=e===Re||"span"===e||"img"===e?i.join(""):t.prepVML(i),this.element=f(i)),this.renderer=t,this.attrSetters={}},add:function(t){var e=this.renderer,i=this.element,s=e.box,s=t?t.element||t:s;return t&&t.inverted&&e.invertChild(i,s),s.appendChild(i),this.added=!0,this.alignOnAdd&&!this.deferUpdateTransform&&this.updateTransform(),ni(this,"add"),this},updateTransform:D.prototype.htmlUpdateTransform,attr:function(t,e){var i,n,o,a,h,l=this.element||{},p=l.style,u=l.nodeName,g=this.renderer,m=this.symbolName,v=this.shadows,x=this.attrSetters,y=this;if(s(t)&&c(e)&&(i=t,t={},t[i]=e),s(t))i=t,y="strokeWidth"===i||"stroke-width"===i?this.strokeweight:this[i];else for(i in t)if(n=t[i],h=!1,o=x[i]&&x[i].call(this,n,i),o!==!1&&null!==n){if(o!==N&&(n=o),m&&/^(x|y|r|start|end|width|height|innerR|anchorX|anchorY)/.test(i))a||(this.symbolAttr(t),a=!0),h=!0;else if("d"===i){for(n=n||[],this.d=n.join(" "),o=n.length,h=[];o--;)h[o]=r(n[o])?ce(10*n[o])-5:"Z"===n[o]?"x":n[o];if(n=h.join(" ")||"x",l.path=n,v)for(o=v.length;o--;)v[o].path=v[o].cutOff?this.cutOffPath(n,v[o].cutOff):n;h=!0}else if("visibility"===i){if(v)for(o=v.length;o--;)v[o].style[i]=n;"DIV"===u&&(n="hidden"===n?"-999em":0,i="top"),p[i]=n,h=!0}else"zIndex"===i?(n&&(p[i]=n),h=!0):"width"===i||"height"===i?(n=ue(0,n),this[i]=n,this.updateClipping?(this[i]=n,this.updateClipping()):p[i]=n,h=!0):"x"===i||"y"===i?(this[i]=n,p[{x:"left",y:"top"}[i]]=n):"class"===i?l.className=n:"stroke"===i?(n=g.color(n,l,i),i="strokecolor"):"stroke-width"===i||"strokeWidth"===i?(l.stroked=n?!0:!1,i="strokeweight",this[i]=n,r(n)&&(n+="px")):"dashstyle"===i?((l.getElementsByTagName("stroke")[0]||f(g.prepVML(["<stroke/>"]),null,null,l))[i]=n||"solid",this.dashstyle=n,h=!0):"fill"===i?"SPAN"===u?p.color=n:(l.filled=n!==Oe?!0:!1,n=g.color(n,l,i,this),i="fillcolor"):"shape"===u&&"rotation"===i?(this[i]=n,l.style.left=-ce(ve(n*ye)+1)+"px",l.style.top=ce(me(n*ye))+"px"):"translateX"===i||"translateY"===i||"rotation"===i?(this[i]=n,this.updateTransform(),h=!0):"text"===i&&(this.bBox=null,l.innerHTML=n,h=!0);h||(Te?l[i]=n:d(l,i,n))}return y},clip:function(t){var e,i=this,s=i.element,n=s.parentNode;return t?(e=t.members,e.push(i),i.destroyClip=function(){l(e,i)},n&&"highcharts-tracker"===n.className&&!Te&&g(s,{visibility:"hidden"}),t=t.getCSS(i)):(i.destroyClip&&i.destroyClip(),t={clip:Te?"inherit":"rect(auto)"}),i.css(t)},css:D.prototype.htmlCss,safeRemoveChild:function(t){t.parentNode&&A(t)},destroy:function(){return this.destroyClip&&this.destroyClip(),D.prototype.destroy.apply(this)},empty:function(){for(var t,e=this.element.childNodes,i=e.length;i--;)t=e[i],t.parentNode.removeChild(t)},on:function(t,e){return this.element["on"+t]=function(){var t=he.event;t.target=t.srcElement,e(t)},this},cutOffPath:function(t,e){var s,t=t.split(/[ ,]/);return s=t.length,(9===s||11===s)&&(t[s-4]=t[s-2]=i(t[s-2])-10*e),t.join(" ")},shadow:function(t,e,s){var n,o,r,a,h,l,c,d=[],p=this.element,g=this.renderer,m=p.style,v=p.path;if(v&&"string"!=typeof v.value&&(v="x"),h=v,t){for(l=u(t.width,3),c=(t.opacity||.15)/l,n=1;3>=n;n++)a=2*l+1-2*n,s&&(h=this.cutOffPath(v.value,a+.5)),r=['<shape isShadow="true" strokeweight="',a,'" filled="false" path="',h,'" coordsize="10 10" style="',p.style.cssText,'" />'],o=f(g.prepVML(r),null,{left:i(m.left)+u(t.offsetX,1),top:i(m.top)+u(t.offsetY,1)}),s&&(o.cutOff=a+1),r=['<stroke color="',t.color||"black",'" opacity="',c*n,'"/>'],f(g.prepVML(r),null,null,o),e?e.element.appendChild(o):p.parentNode.insertBefore(o,p),d.push(o);this.shadows=d}return this}},di=m(D,di);var pi={Element:di,isIE8:be.indexOf("MSIE 8.0")>-1,init:function(t,e,i){var s,n;this.alignedObjects=[],s=this.createElement(Re),n=s.element,n.style.position="relative",t.appendChild(s.element),this.box=n,this.boxWrapper=s,this.setSize(e,i,!1),ae.namespaces.hcv||(ae.namespaces.add("hcv","urn:schemas-microsoft-com:vml"),ae.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } ")},isHidden:function(){return!this.box.offsetWidth},clipRect:function(e,i,s,o){var r=this.createElement(),a=n(e);return t(r,{members:[],left:a?e.x:e,top:a?e.y:i,width:a?e.width:s,height:a?e.height:o,getCSS:function(e){var i=e.inverted,s=this.top,n=this.left,o=n+this.width,r=s+this.height,s={clip:"rect("+ce(i?n:s)+"px,"+ce(i?r:o)+"px,"+ce(i?o:r)+"px,"+ce(i?s:n)+"px)"};return!i&&Te&&"IMG"!==e.element.nodeName&&t(s,{width:o+"px",height:r+"px"}),s},updateClipping:function(){Je(r.members,function(t){t.css(r.getCSS(t))})}})},color:function(t,e,i,s){var n,o,r,a=this,h=/^rgba/,l=Oe;if(t&&t.linearGradient?r="gradient":t&&t.radialGradient&&(r="pattern"),r){var c,d,p,u,g,m,v,x,y=t.linearGradient||t.radialGradient,b="",t=t.stops,k=[],w=function(){o=['<fill colors="'+k.join(",")+'" opacity="',g,'" o:opacity2="',u,'" type="',r,'" ',b,'focus="100%" method="any" />'],f(a.prepVML(o),null,null,e)};if(p=t[0],x=t[t.length-1],p[0]>0&&t.unshift([0,p[1]]),x[0]<1&&t.push([1,x[1]]),Je(t,function(t,e){h.test(t[1])?(n=li(t[1]),c=n.get("rgb"),d=n.get("a")):(c=t[1],d=1),k.push(100*t[0]+"% "+c),e?(g=d,m=c):(u=d,v=c)}),"fill"===i)if("gradient"===r)i=y.x1||y[0]||0,t=y.y1||y[1]||0,p=y.x2||y[2]||0,y=y.y2||y[3]||0,b='angle="'+(90-180*le.atan((y-t)/(p-i))/xe)+'"',w();else{var T,l=y.r,L=2*l,P=2*l,S=y.cx,A=y.cy,M=e.radialReference,l=function(){M&&(T=s.getBBox(),S+=(M[0]-T.x)/T.width-.5,A+=(M[1]-T.y)/T.height-.5,L*=M[2]/T.width,P*=M[2]/T.height),b='src="'+j.global.VMLRadialGradientURL+'" size="'+L+","+P+'" origin="0.5,0.5" position="'+S+","+A+'" color2="'+v+'" ',w()};s.added?l():ii(s,"add",l),l=m}else l=c}else h.test(t)&&"IMG"!==e.tagName?(n=li(t),o=["<",i,' opacity="',n.get("a"),'"/>'],f(this.prepVML(o),null,null,e),l=n.get("rgb")):(l=e.getElementsByTagName(i),l.length&&(l[0].opacity=1),l=t);return l},prepVML:function(t){var e=this.isIE8,t=t.join("");return e?(t=t.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />'),t=-1===t.indexOf('style="')?t.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):t.replace('style="','style="display:inline-block;behavior:url(#default#VML);')):t=t.replace("<","<hcv:"),t},text:ci.prototype.html,path:function(e){var i={coordsize:"10 10"};return o(e)?i.d=e:n(e)&&t(i,e),this.createElement("shape").attr(i)},circle:function(t,e,i){return this.symbol("circle").attr({x:t-i,y:e-i,width:2*i,height:2*i})},g:function(t){var e;return t&&(e={className:"highcharts-"+t,"class":"highcharts-"+t}),this.createElement(Re).attr(e)},image:function(t,e,i,s,n){var o=this.createElement("img").attr({src:t});return arguments.length>1&&o.attr({x:e,y:i,width:s,height:n}),o},rect:function(t,e,i,s,o,r){n(t)&&(e=t.y,i=t.width,s=t.height,r=t.strokeWidth,t=t.x);var a=this.symbol("rect");return a.r=o,a.attr(a.crisp(r,t,e,ue(i,0),ue(s,0)))},invertChild:function(t,e){var s=e.style;g(t,{flip:"x",left:i(s.width)-1,top:i(s.height)-1,rotation:-90})},symbols:{arc:function(t,e,i,s,n){var o=n.start,r=n.end,a=n.r||i||s,i=me(o),s=ve(o),h=me(r),l=ve(r),c=n.innerR,d=.08/a,p=c&&.1/c||0;return 0===r-o?["x"]:(d>2*xe-r+o?h=-d:p>r-o&&(h=me(o+p)),o=["wa",t-a,e-a,t+a,e+a,t+a*i,e+a*s,t+a*h,e+a*l],n.open&&!c&&o.push("e","M",t,e),o.push("at",t-c,e-c,t+c,e+c,t+c*h,e+c*l,t+c*i,e+c*s,"x","e"),o)},circle:function(t,e,i,s){return["wa",t,e,t+i,e+s,t+i,e+s/2,t+i,e+s/2,"e"]},rect:function(t,e,i,s,n){var o,r=t+i,a=e+s;return c(n)&&n.r?(o=ge(n.r,i,s),r=["M",t+o,e,"L",r-o,e,"wa",r-2*o,e,r,e+2*o,r-o,e,r,e+o,"L",r,a-o,"wa",r-2*o,a-2*o,r,a,r,a-o,r-o,a,"L",t+o,a,"wa",t,a-2*o,t+2*o,a,t+o,a,t,a-o,"L",t,e+o,"wa",t,e,t+2*o,e+2*o,t,e+o,t+o,e,"x","e"]):r=ci.prototype.symbols.square.apply(0,arguments),r}}};di=function(){this.init.apply(this,arguments)},di.prototype=ei(ci.prototype,pi),F=di}var ui,gi;Ce&&(ui=function(){Se="http://www.w3.org/1999/xhtml"},ui.prototype.symbols={},gi=function(){function t(){var t,i=e.length;for(t=0;i>t;t++)e[t]();e=[]}var e=[];return{push:function(i,s){0===e.length&&Ke(s,t),e.push(i)}}}()),F=di||ui||ci,z.prototype={addLabel:function(){var e,i=this.axis,s=i.options,n=i.chart,o=i.horiz,a=i.categories,l=this.pos,d=s.labels,p=i.tickPositions,o=a&&o&&a.length&&!d.step&&!d.staggerLines&&!d.rotation&&n.plotWidth/p.length||!o&&n.plotWidth/2,u=l===p[0],g=l===p[p.length-1],f=a&&c(a[l])?a[l]:l,a=this.label,p=p.info;i.isDatetimeAxis&&p&&(e=s.dateTimeLabelFormats[p.higherRanks[l]||p.unitName]),this.isFirst=u,this.isLast=g,s=i.labelFormatter.call({axis:i,chart:n,isFirst:u,isLast:g,dateTimeLabelFormat:e,value:i.isLog?C(h(f)):f}),l=o&&{width:ue(1,ce(o-2*(d.padding||10)))+"px"},l=t(l,d.style),c(a)?a&&a.attr({text:s}).css(l):(o={align:d.align},r(d.rotation)&&(o.rotation=d.rotation),this.label=c(s)&&d.enabled?n.renderer.text(s,0,0,d.useHTML).attr(o).css(l).add(i.labelGroup):null)},getLabelSize:function(){var t=this.label,e=this.axis;return t?(this.labelBBox=t.getBBox())[e.horiz?"height":"width"]:0},getLabelSides:function(){var t=this.axis.options.labels,e=this.labelBBox.width,t=e*{left:0,center:.5,right:1}[t.align]-t.x;return[-t,e-t]},handleOverflow:function(t,e){var i=!0,s=this.axis,n=s.chart,o=this.isFirst,r=this.isLast,a=e.x,h=s.reversed,l=s.tickPositions;if(o||r){var c=this.getLabelSides(),d=c[0],c=c[1],n=n.plotLeft,p=n+s.len,l=(s=s.ticks[l[t+(o?1:-1)]])&&s.label.xy&&s.label.xy.x+s.getLabelSides()[o?0:1];o&&!h||r&&h?n>a+d&&(a=n-d,s&&a+c>l&&(i=!1)):a+c>p&&(a=p-c,s&&l>a+d&&(i=!1)),e.x=a}return i},getPosition:function(t,e,i,s){var n=this.axis,o=n.chart,r=s&&o.oldChartHeight||o.chartHeight;return{x:t?n.translate(e+i,null,null,s)+n.transB:n.left+n.offset+(n.opposite?(s&&o.oldChartWidth||o.chartWidth)-n.right-n.left:0),y:t?r-n.bottom+n.offset-(n.opposite?n.height:0):r-n.translate(e+i,null,null,s)-n.transB}},getLabelPosition:function(t,e,s,n,o,r,a,h){var l=this.axis,d=l.transA,p=l.reversed,l=l.staggerLines,t=t+o.x-(r&&n?r*d*(p?-1:1):0),e=e+o.y-(r&&!n?r*d*(p?1:-1):0);return c(o.y)||(e+=.9*i(s.styles.lineHeight)-s.getBBox().height/2),l&&(e+=16*(a/(h||1)%l)),{x:t,y:e}},getMarkPath:function(t,e,i,s,n,o){return o.crispLine(["M",t,e,"L",t+(n?0:-i),e+(n?i:0)],s)},render:function(t,e){var i=this.axis,s=i.options,n=i.chart.renderer,o=i.horiz,r=this.type,a=this.label,h=this.pos,l=s.labels,c=this.gridLine,d=r?r+"Grid":"grid",p=r?r+"Tick":"tick",g=s[d+"LineWidth"],f=s[d+"LineColor"],m=s[d+"LineDashStyle"],v=s[p+"Length"],d=s[p+"Width"]||0,x=s[p+"Color"],y=s[p+"Position"],p=this.mark,b=l.step,k=!0,w=i.tickmarkOffset,T=this.getPosition(o,h,w,e),L=T.x,T=T.y,P=i.staggerLines;g&&(h=i.getPlotLinePath(h+w,g,e),c===N&&(c={stroke:f,"stroke-width":g},m&&(c.dashstyle=m),r||(c.zIndex=1),this.gridLine=c=g?n.path(h).attr(c).add(i.gridGroup):null),!e&&c&&h&&c[this.isNew?"attr":"animate"]({d:h})),d&&v&&("inside"===y&&(v=-v),i.opposite&&(v=-v),r=this.getMarkPath(L,T,v,d,o,n),p?p.animate({d:r}):this.mark=n.path(r).attr({stroke:x,"stroke-width":d}).add(i.axisGroup)),a&&!isNaN(L)&&(a.xy=T=this.getLabelPosition(L,T,a,o,l,w,t,b),this.isFirst&&!u(s.showFirstLabel,1)||this.isLast&&!u(s.showLastLabel,1)?k=!1:!P&&o&&"justify"===l.overflow&&!this.handleOverflow(t,T)&&(k=!1),b&&t%b&&(k=!1),k?(a[this.isNew?"attr":"animate"](T),a.show(),this.isNew=!1):a.hide())},destroy:function(){S(this,this.axis)}},R.prototype={render:function(){var t,e=this,i=e.axis,s=i.horiz,n=(i.pointRange||0)/2,o=e.options,r=o.label,h=e.label,l=o.width,d=o.to,p=o.from,g=c(p)&&c(d),f=o.value,m=o.dashStyle,v=e.svgElem,x=[],y=o.color,b=o.zIndex,k=o.events,w=i.chart.renderer;if(i.isLog&&(p=a(p),d=a(d),f=a(f)),l)x=i.getPlotLinePath(f,l),n={stroke:y,"stroke-width":l},m&&(n.dashstyle=m);else{if(!g)return;p=ue(p,i.min-n),d=ge(d,i.max+n),x=i.getPlotBandPath(p,d,o),n={fill:y},o.borderWidth&&(n.stroke=o.borderColor,n["stroke-width"]=o.borderWidth)}if(c(b)&&(n.zIndex=b),v)x?v.animate({d:x},null,v.onGetPath):(v.hide(),v.onGetPath=function(){v.show()});else if(x&&x.length&&(e.svgElem=v=w.path(x).attr(n).add(),k))for(t in o=function(t){v.on(t,function(i){k[t].apply(e,[i])})},k)o(t);return r&&c(r.text)&&x&&x.length&&i.width>0&&i.height>0?(r=ei({align:s&&g&&"center",x:s?!g&&4:10,verticalAlign:!s&&g&&"middle",y:s?g?16:10:g?6:-4,rotation:s&&!g&&90},r),h||(e.label=h=w.text(r.text,0,0).attr({align:r.textAlign||r.align,rotation:r.rotation,zIndex:b}).css(r.style).add()),i=[x[1],x[4],u(x[6],x[1])],x=[x[2],x[5],u(x[7],x[2])],s=L(i),g=L(x),h.align(r,!1,{x:s,y:g,width:P(i)-s,height:P(x)-g}),h.show()):h&&h.hide(),e},destroy:function(){l(this.axis.plotLinesAndBands,this),S(this,this.axis)}},O.prototype={destroy:function(){S(this,this.axis)},setTotal:function(t){this.cum=this.total=t},render:function(t){var e=this.options.formatter.call(this);this.label?this.label.attr({text:e,visibility:"hidden"}):this.label=this.axis.chart.renderer.text(e,0,0).css(this.options.style).attr({align:this.textAlign,rotation:this.options.rotation,visibility:"hidden"}).add(t)},setOffset:function(t,e){var i=this.axis,s=i.chart,n=s.inverted,o=this.isNegative,r=i.translate(this.percent?100:this.total,0,0,0,1),i=i.translate(0),i=fe(r-i),a=s.xAxis[0].translate(this.x)+t,h=s.plotHeight,o={x:n?o?r:r-i:a,y:n?h-a-e:o?h-r-i:h-r,width:n?i:e,height:n?e:i};(n=this.label)&&(n.align(this.alignOptions,null,o),o=n.alignAttr,n.attr({visibility:this.options.crop===!1||s.isInsidePlot(o.x,o.y)?Ae?"inherit":"visible":"hidden"}))}},H.prototype={defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:!1,gridLineColor:"#C0C0C0",labels:Ue,lineColor:"#C0D0E0",lineWidth:1,minPadding:.01,maxPadding:.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickColor:"#C0D0E0",tickLength:5,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",tickWidth:1,title:{align:"middle",style:{color:"#6D869F",fontWeight:"bold"}},type:"linear"},defaultYAxisOptions:{endOnTick:!0,gridLineWidth:1,tickPixelInterval:72,showLastLabel:!0,labels:{align:"right",x:-8,y:3},lineWidth:0,maxPadding:.05,minPadding:.05,startOnTick:!0,tickWidth:0,title:{rotation:270,text:"Y-values"},stackLabels:{enabled:!1,formatter:function(){return this.total},style:Ue.style}},defaultLeftAxisOptions:{labels:{align:"right",x:-8,y:null},title:{rotation:270}},defaultRightAxisOptions:{labels:{align:"left",x:8,y:null},title:{rotation:90}},defaultBottomAxisOptions:{labels:{align:"center",x:0,y:14},title:{rotation:0}},defaultTopAxisOptions:{labels:{align:"center",x:0,y:-5},title:{rotation:0}},init:function(t,e){var i=e.isX;this.horiz=t.inverted?!i:i,this.xOrY=(this.isXAxis=i)?"x":"y",this.opposite=e.opposite,this.side=this.horiz?this.opposite?0:2:this.opposite?1:3,this.setOptions(e);var s=this.options,n=s.type,o="datetime"===n;this.labelFormatter=s.labels.formatter||this.defaultLabelFormatter,this.staggerLines=this.horiz&&s.labels.staggerLines,this.userOptions=e,this.minPixelPadding=0,this.chart=t,this.reversed=s.reversed,this.categories=s.categories,this.isLog="logarithmic"===n,this.isLinked=c(s.linkedTo),this.isDatetimeAxis=o,this.tickmarkOffset=s.categories&&"between"===s.tickmarkPlacement?.5:0,this.ticks={},this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=s.minRange||s.maxZoom,this.range=s.range,this.offset=s.offset||0,this.stacks={},this.min=this.max=null;var r,s=this.options.events;t.axes.push(this),t[i?"xAxis":"yAxis"].push(this),this.series=[],t.inverted&&i&&this.reversed===N&&(this.reversed=!0),this.removePlotLine=this.removePlotBand=this.removePlotBandOrLine,this.addPlotLine=this.addPlotBand=this.addPlotBandOrLine;for(r in s)ii(this,r,s[r]);this.isLog&&(this.val2lin=a,this.lin2val=h)},setOptions:function(t){this.options=ei(this.defaultOptions,this.isXAxis?{}:this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],ei(j[this.isXAxis?"xAxis":"yAxis"],t))},defaultLabelFormatter:function(){var t,e=this.axis,i=this.value,s=this.dateTimeLabelFormat,n=j.lang.numericSymbols,o=n&&n.length,r=e.isLog?i:e.tickInterval;if(e.categories)t=i;else if(s)t=V(s,i);else if(o&&r>=1e3)for(;o--&&t===N;)e=Math.pow(1e3,o+1),r>=e&&null!==n[o]&&(t=v(i/e,-1)+n[o]);return t===N&&(t=i>=1e3?v(i,0):v(i,-1)),t},getSeriesExtremes:function(){var t,e=this,i=e.chart,s=e.stacks,n=[],o=[];e.hasVisibleSeries=!1,e.dataMin=e.dataMax=null,Je(e.series,function(r){if(r.visible||!i.options.chart.ignoreHiddenSeries){var a,h,l,d,p,g,f,m,v,x,y=r.options,b=y.threshold,k=[],w=0;if(e.hasVisibleSeries=!0,e.isLog&&0>=b&&(b=y.threshold=null),e.isXAxis)y=r.xData,y.length&&(e.dataMin=ge(u(e.dataMin,y[0]),L(y)),e.dataMax=ue(u(e.dataMax,y[0]),P(y)));else{var T,S,A,M=r.cropped,I=r.xAxis.getExtremes(),B=!!r.modifyValue;for(a=y.stacking,e.usePercentage="percent"===a,a&&(p=y.stack,d=r.type+u(p,""),g="-"+d,r.stackKey=d,h=n[d]||[],n[d]=h,l=o[g]||[],o[g]=l),e.usePercentage&&(e.dataMin=0,e.dataMax=99),y=r.processedXData,f=r.processedYData,x=f.length,t=0;x>t;t++)if(m=y[t],v=f[t],a&&(S=(T=b>v)?l:h,A=T?g:d,v=S[m]=c(S[m])?C(S[m]+v):v,s[A]||(s[A]={}),s[A][m]||(s[A][m]=new O(e,e.options.stackLabels,T,m,p,a)),s[A][m].setTotal(v)),null!==v&&v!==N&&(B&&(v=r.modifyValue(v)),M||(y[t+1]||m)>=I.min&&(y[t-1]||m)<=I.max))if(m=v.length)for(;m--;)null!==v[m]&&(k[w++]=v[m]);else k[w++]=v;!e.usePercentage&&k.length&&(e.dataMin=ge(u(e.dataMin,k[0]),L(k)),e.dataMax=ue(u(e.dataMax,k[0]),P(k))),c(b)&&(e.dataMin>=b?(e.dataMin=b,e.ignoreMinPadding=!0):e.dataMax<b&&(e.dataMax=b,e.ignoreMaxPadding=!0))}}})},translate:function(t,e,i,s,n,o){var r=this.len,a=1,h=0,l=s?this.oldTransA:this.transA,s=s?this.oldMin:this.min,n=this.options.ordinal||this.isLog&&n;return l||(l=this.transA),i&&(a*=-1,h=r),this.reversed&&(a*=-1,h-=a*r),e?(this.reversed&&(t=r-t),t=t/l+s,n&&(t=this.lin2val(t))):(n&&(t=this.val2lin(t)),t=a*(t-s)*l+h+a*this.minPixelPadding+(o?l*this.pointRange/2:0)),t},getPlotLinePath:function(t,e,i){var s,n,o,r,a=this.chart,h=this.left,l=this.top,t=this.translate(t,null,null,i),c=i&&a.oldChartHeight||a.chartHeight,d=i&&a.oldChartWidth||a.chartWidth;return s=this.transB,i=n=ce(t+s),s=o=ce(c-t-s),isNaN(t)?r=!0:this.horiz?(s=l,o=c-this.bottom,(h>i||i>h+this.width)&&(r=!0)):(i=h,n=d-this.right,(l>s||s>l+this.height)&&(r=!0)),r?null:a.renderer.crispLine(["M",i,s,"L",n,o],e||0)},getPlotBandPath:function(t,e){var i=this.getPlotLinePath(e),s=this.getPlotLinePath(t);return s&&i?s.push(i[4],i[5],i[1],i[2]):s=null,s},getLinearTickPositions:function(t,e,i){for(var s,e=C(de(e/t)*t),i=C(pe(i/t)*t),n=[];i>=e&&(n.push(e),e=C(e+t),e!==s);)s=e;return n},getLogTickPositions:function(t,e,i,s){var n=this.options,o=this.len,r=[];if(s||(this._minorAutoInterval=null),t>=.5)t=ce(t),r=this.getLinearTickPositions(t,e,i);else if(t>=.08)for(var l,c,d,p,g,o=de(e),n=t>.3?[1,2,4]:t>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];i+1>o&&!g;o++)for(c=n.length,l=0;c>l&&!g;l++)d=a(h(o)*n[l]),d>e&&r.push(p),p>i&&(g=!0),p=d;else e=h(e),i=h(i),t=n[s?"minorTickInterval":"tickInterval"],t=u("auto"===t?null:t,this._minorAutoInterval,(i-e)*(n.tickPixelInterval/(s?5:1))/((s?o/this.tickPositions.length:o)||1)),t=y(t,null,le.pow(10,de(le.log(t)/le.LN10))),r=ti(this.getLinearTickPositions(t,e,i),a),s||(this._minorAutoInterval=t/5);return s||(this.tickInterval=t),r},getMinorTickPositions:function(){var t,e,i=this.tickPositions,s=this.minorTickInterval,n=[];if(this.isLog)for(e=i.length,t=1;e>t;t++)n=n.concat(this.getLogTickPositions(s,i[t-1],i[t],!0));else for(i=this.min+(i[0]-this.min)%s;i<=this.max;i+=s)n.push(i);return n},adjustForMinRange:function(){var t,e,i,s,n,o,r=this.options,a=this.min,h=this.max,l=this.dataMax-this.dataMin>=this.minRange;if(this.isXAxis&&this.minRange===N&&!this.isLog&&(c(r.min)||c(r.max)?this.minRange=null:(Je(this.series,function(t){for(n=t.xData,i=o=t.xIncrement?1:n.length-1;i>0;i--)s=n[i]-n[i-1],(e===N||e>s)&&(e=s)}),this.minRange=ge(5*e,this.dataMax-this.dataMin))),h-a<this.minRange){var d=this.minRange;t=(d-h+a)/2,t=[a-t,u(r.min,a-t)],l&&(t[2]=this.dataMin),a=P(t),h=[a+d,u(r.max,a+d)],l&&(h[2]=this.dataMax),h=L(h),d>h-a&&(t[0]=h-d,t[1]=u(r.min,h-d),a=P(t))}this.min=a,this.max=h},setAxisTranslation:function(){var t,e=this.max-this.min,i=0,s=0,n=0,o=this.linkedParent,r=this.transA;this.isXAxis&&(o?(s=o.minPointOffset,n=o.pointRangePadding):Je(this.series,function(e){var o=e.pointRange,r=e.options.pointPlacement,a=e.closestPointRange;i=ue(i,o),s=ue(s,r?0:o/2),n=ue(n,"on"===r?0:o),!e.noSharedTooltip&&c(a)&&(t=c(t)?ge(t,a):a)}),this.minPointOffset=s,this.pointRangePadding=n,this.pointRange=i,this.closestPointRange=t),this.oldTransA=r,this.translationSlope=this.transA=r=this.len/(e+n||1),this.transB=this.horiz?this.left:this.bottom,this.minPixelPadding=r*s},setTickPositions:function(t){var e=this,i=e.chart,s=e.options,n=e.isLog,o=e.isDatetimeAxis,r=e.isXAxis,h=e.isLinked,l=e.options.tickPositioner,d=s.maxPadding,p=s.minPadding,g=s.tickInterval,f=s.minTickInterval,m=s.tickPixelInterval,v=e.categories;h?(e.linkedParent=i[r?"xAxis":"yAxis"][s.linkedTo],i=e.linkedParent.getExtremes(),e.min=u(i.min,i.dataMin),e.max=u(i.max,i.dataMax),s.type!==e.linkedParent.options.type&&M(11,1)):(e.min=u(e.userMin,s.min,e.dataMin),e.max=u(e.userMax,s.max,e.dataMax)),n&&(!t&&ge(e.min,u(e.dataMin,e.min))<=0&&M(10,1),e.min=C(a(e.min)),e.max=C(a(e.max))),e.range&&(e.userMin=e.min=ue(e.min,e.max-e.range),e.userMax=e.max,t)&&(e.range=null),e.adjustForMinRange(),v||e.usePercentage||h||!c(e.min)||!c(e.max)||(i=e.max-e.min||1,c(s.min)||c(e.userMin)||!p||!(e.dataMin<0)&&e.ignoreMinPadding||(e.min-=i*p),c(s.max)||c(e.userMax)||!d||!(e.dataMax>0)&&e.ignoreMaxPadding||(e.max+=i*d)),e.tickInterval=e.min===e.max||void 0===e.min||void 0===e.max?1:h&&!g&&m===e.linkedParent.options.tickPixelInterval?e.linkedParent.tickInterval:u(g,v?1:(e.max-e.min)*m/(e.len||1)),r&&!t&&Je(e.series,function(t){t.processData(e.min!==e.oldMin||e.max!==e.oldMax)}),e.setAxisTranslation(t),e.beforeSetTickPositions&&e.beforeSetTickPositions(),e.postProcessTickInterval&&(e.tickInterval=e.postProcessTickInterval(e.tickInterval)),!g&&e.tickInterval<f&&(e.tickInterval=f),o||n||(t=le.pow(10,de(le.log(e.tickInterval)/le.LN10)),g)||(e.tickInterval=y(e.tickInterval,null,t,s)),e.minorTickInterval="auto"===s.minorTickInterval&&e.tickInterval?e.tickInterval/5:s.minorTickInterval,e.tickPositions=l=s.tickPositions||l&&l.apply(e,[e.min,e.max]),l||(l=o?(e.getNonLinearTimeTicks||k)(b(e.tickInterval,s.units),e.min,e.max,s.startOfWeek,e.ordinalPositions,e.closestPointRange,!0):n?e.getLogTickPositions(e.tickInterval,e.min,e.max):e.getLinearTickPositions(e.tickInterval,e.min,e.max),e.tickPositions=l),h||(n=l[0],o=l[l.length-1],h=e.minPointOffset||0,s.startOnTick?e.min=n:e.min-h>n&&l.shift(),s.endOnTick?e.max=o:e.max+h<o&&l.pop())},setMaxTicks:function(){var t=this.chart,e=t.maxTicks,i=this.tickPositions,s=this.xOrY;e||(e={x:0,y:0}),!this.isLinked&&!this.isDatetimeAxis&&i.length>e[s]&&this.options.alignTicks!==!1&&(e[s]=i.length),t.maxTicks=e},adjustTickAmount:function(){var t=this.xOrY,e=this.tickPositions,i=this.chart.maxTicks;if(i&&i[t]&&!this.isDatetimeAxis&&!this.categories&&!this.isLinked&&this.options.alignTicks!==!1){var s=this.tickAmount,n=e.length;if(this.tickAmount=t=i[t],t>n){for(;e.length<t;)e.push(C(e[e.length-1]+this.tickInterval));this.transA*=(n-1)/(t-1),this.max=e[e.length-1]}c(s)&&t!==s&&(this.isDirty=!0)}},setScale:function(){var t,e,i,s,n=this.stacks;if(this.oldMin=this.min,this.oldMax=this.max,this.oldAxisLength=this.len,this.setAxisSize(),s=this.len!==this.oldAxisLength,Je(this.series,function(t){(t.isDirtyData||t.isDirty||t.xAxis.isDirty)&&(i=!0)}),(s||i||this.isLinked||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax)&&(this.getSeriesExtremes(),this.setTickPositions(),this.oldUserMin=this.userMin,this.oldUserMax=this.userMax,this.isDirty||(this.isDirty=s||this.min!==this.oldMin||this.max!==this.oldMax)),!this.isXAxis)for(t in n)for(e in n[t])n[t][e].cum=n[t][e].total;this.setMaxTicks()},setExtremes:function(e,i,s,n,o){var r=this,a=r.chart,s=u(s,!0),o=t(o,{min:e,max:i});ni(r,"setExtremes",o,function(){r.userMin=e,r.userMax=i,r.isDirtyExtremes=!0,s&&a.redraw(n)})},zoom:function(t,e){return this.setExtremes(t,e,!1,N,{trigger:"zoom"}),!0},setAxisSize:function(){var t=this.chart,e=this.options,i=e.offsetLeft||0,s=e.offsetRight||0;this.left=u(e.left,t.plotLeft+i),this.top=u(e.top,t.plotTop),this.width=u(e.width,t.plotWidth-i+s),this.height=u(e.height,t.plotHeight),this.bottom=t.chartHeight-this.height-this.top,this.right=t.chartWidth-this.width-this.left,this.len=ue(this.horiz?this.width:this.height,0)},getExtremes:function(){var t=this.isLog;return{min:t?C(h(this.min)):this.min,max:t?C(h(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(t){var e=this.isLog,i=e?h(this.min):this.min,e=e?h(this.max):this.max;return i>t||null===t?t=i:t>e&&(t=e),this.translate(t,0,1,0,1)},addPlotBandOrLine:function(t){return t=new R(this,t).render(),this.plotLinesAndBands.push(t),t},getOffset:function(){var t,e,i,s=this,n=s.chart,o=n.renderer,r=s.options,a=s.tickPositions,h=s.ticks,l=s.horiz,d=s.side,p=0,g=0,f=r.title,m=r.labels,v=0,x=n.axisOffset,y=[-1,1,1,-1][d];if(s.hasData=n=s.hasVisibleSeries||c(s.min)&&c(s.max)&&!!a,s.showAxis=t=n||u(r.showEmpty,!0),s.axisGroup||(s.gridGroup=o.g("grid").attr({zIndex:r.gridZIndex||1}).add(),s.axisGroup=o.g("axis").attr({zIndex:r.zIndex||2}).add(),s.labelGroup=o.g("axis-labels").attr({zIndex:m.zIndex||7}).add()),n||s.isLinked)Je(a,function(t){h[t]?h[t].addLabel():h[t]=new z(s,t)}),Je(a,function(t){(0===d||2===d||{1:"left",3:"right"}[d]===m.align)&&(v=ue(h[t].getLabelSize(),v))}),s.staggerLines&&(v+=16*(s.staggerLines-1));else for(i in h)h[i].destroy(),delete h[i];f&&f.text&&(s.axisTitle||(s.axisTitle=o.text(f.text,0,0,f.useHTML).attr({zIndex:7,rotation:f.rotation||0,align:f.textAlign||{low:"left",middle:"center",high:"right"}[f.align]}).css(f.style).add(s.axisGroup),s.axisTitle.isNew=!0),t&&(p=s.axisTitle.getBBox()[l?"height":"width"],g=u(f.margin,l?5:10),e=f.offset),s.axisTitle[t?"show":"hide"]()),s.offset=y*u(r.offset,x[d]),s.axisTitleMargin=u(e,v+g+(2!==d&&v&&y*r.labels[l?"y":"x"])),x[d]=ue(x[d],s.axisTitleMargin+p+y*s.offset)},getLinePath:function(t){var e=this.chart,i=this.opposite,s=this.offset,n=this.horiz,o=this.left+(i?this.width:0)+s;return this.lineTop=i=e.chartHeight-this.bottom-(i?this.height:0)+s,e.renderer.crispLine(["M",n?this.left:o,n?i:this.top,"L",n?e.chartWidth-this.right:o,n?i:e.chartHeight-this.bottom],t)},getTitlePosition:function(){var t=this.horiz,e=this.left,s=this.top,n=this.len,o=this.options.title,r=t?e:s,a=this.opposite,h=this.offset,l=i(o.style.fontSize||12),n={low:r+(t?0:n),middle:r+n/2,high:r+(t?n:0)}[o.align],e=(t?s+this.height:e)+(t?1:-1)*(a?-1:1)*this.axisTitleMargin+(2===this.side?l:0);return{x:t?n:e+(a?this.width:0)+h+(o.x||0),y:t?e-(a?this.height:0)+h:n+(o.y||0)}},render:function(){var t,e,i,s=this,n=s.chart,o=n.renderer,r=s.options,a=s.isLog,l=s.isLinked,d=s.tickPositions,p=s.axisTitle,u=s.stacks,g=s.ticks,f=s.minorTicks,m=s.alternateBands,v=r.stackLabels,x=r.alternateGridColor,y=s.tickmarkOffset,b=r.lineWidth,k=n.hasRendered&&c(s.oldMin)&&!isNaN(s.oldMin),w=s.showAxis;if((s.hasData||l)&&(s.minorTickInterval&&!s.categories&&Je(s.getMinorTickPositions(),function(t){f[t]||(f[t]=new z(s,t,"minor")),k&&f[t].isNew&&f[t].render(null,!0),f[t].isActive=!0,f[t].render()}),Je(d.slice(1).concat([d[0]]),function(t,e){e=e===d.length-1?0:e+1,(!l||t>=s.min&&t<=s.max)&&(g[t]||(g[t]=new z(s,t)),k&&g[t].isNew&&g[t].render(e,!0),g[t].isActive=!0,g[t].render(e))}),x&&Je(d,function(t,n){0===n%2&&t<s.max&&(m[t]||(m[t]=new R(s)),e=t+y,i=d[n+1]!==N?d[n+1]+y:s.max,m[t].options={from:a?h(e):e,to:a?h(i):i,color:x},m[t].render(),m[t].isActive=!0)}),s._addedPlotLB||(Je((r.plotLines||[]).concat(r.plotBands||[]),function(t){s.addPlotBandOrLine(t)}),s._addedPlotLB=!0)),Je([g,f,m],function(t){for(var e in t)t[e].isActive?t[e].isActive=!1:(t[e].destroy(),delete t[e])}),b&&(t=s.getLinePath(b),s.axisLine?s.axisLine.animate({d:t}):s.axisLine=o.path(t).attr({stroke:r.lineColor,"stroke-width":b,zIndex:7}).add(s.axisGroup),s.axisLine[w?"show":"hide"]()),p&&w&&(p[p.isNew?"attr":"animate"](s.getTitlePosition()),p.isNew=!1),v&&v.enabled){var T,L,r=s.stackTotalGroup;r||(s.stackTotalGroup=r=o.g("stack-labels").attr({visibility:"visible",zIndex:6}).add()),r.translate(n.plotLeft,n.plotTop);for(T in u)for(L in n=u[T])n[L].render(r)}s.isDirty=!1},removePlotBandOrLine:function(t){for(var e=this.plotLinesAndBands,i=e.length;i--;)e[i].id===t&&e[i].destroy()},setTitle:function(t,e){var i=this.chart,s=this.options,n=this.axisTitle;s.title=ei(s.title,t),this.axisTitle=n&&n.destroy(),this.isDirty=!0,u(e,!0)&&i.redraw()},redraw:function(){var t=this.chart;t.tracker.resetTracker&&t.tracker.resetTracker(!0),this.render(),Je(this.plotLinesAndBands,function(t){t.render()}),Je(this.series,function(t){t.isDirty=!0})},setCategories:function(t,e){var i=this.chart;this.categories=this.userOptions.categories=t,Je(this.series,function(t){t.translate(),t.setTooltipPoints(!0)}),this.isDirty=!0,u(e,!0)&&i.redraw()},destroy:function(){var t,e=this,i=e.stacks;si(e);for(t in i)S(i[t]),i[t]=null;Je([e.ticks,e.minorTicks,e.alternateBands,e.plotLinesAndBands],function(t){S(t)}),Je("stackTotalGroup,axisLine,axisGroup,gridGroup,labelGroup,axisTitle".split(","),function(t){e[t]&&(e[t]=e[t].destroy())})}},W.prototype={destroy:function(){Je(this.crosshairs,function(t){t&&t.destroy()}),this.label&&(this.label=this.label.destroy())},move:function(e,i,s,n){var o=this,r=o.now,a=o.options.animation!==!1&&!o.isHidden;t(r,{x:a?(2*r.x+e)/3:e,y:a?(r.y+i)/2:i,anchorX:a?(2*r.anchorX+s)/3:s,anchorY:a?(r.anchorY+n)/2:n}),o.label.attr(r),a&&(fe(e-r.x)>1||fe(i-r.y)>1)&&(clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){o&&o.move(e,i,s,n)},32))},hide:function(){if(!this.isHidden){var t=this.chart.hoverPoints;this.label.hide(),t&&Je(t,function(t){t.setState()}),this.chart.hoverPoints=null,this.isHidden=!0}},hideCrosshairs:function(){Je(this.crosshairs,function(t){t&&t.hide()})},getAnchor:function(t,e){var i,s,n=this.chart,o=n.inverted,r=0,a=0,t=p(t);return i=t[0].tooltipPos,i||(Je(t,function(t){s=t.series.yAxis,r+=t.plotX,a+=(t.plotLow?(t.plotLow+t.plotHigh)/2:t.plotY)+(!o&&s?s.top-n.plotTop:0)}),r/=t.length,a/=t.length,i=[o?n.plotWidth-a:r,this.shared&&!o&&t.length>1&&e?e.chartY-n.plotTop:o?n.plotHeight-r:a]),ti(i,ce)},getPosition:function(t,e,i){var s,n=this.chart,o=n.plotLeft,r=n.plotTop,a=n.plotWidth,h=n.plotHeight,l=u(this.options.distance,12),c=i.plotX,i=i.plotY,n=c+o+(n.inverted?l:-t-l),d=i-e+r+15;return 7>n&&(n=o+ue(c,0)+l),n+t>o+a&&(n-=n+t-(o+a),d=i-e+r-l,s=!0),r+5>d&&(d=r+5,s&&i>=d&&d+e>=i&&(d=i+r+l)),d+e>r+h&&(d=ue(r,r+h-e-l)),{x:n,y:d}},refresh:function(t,e){function i(){var t,e=this.points||p(this),i=e[0].series;return t=[i.tooltipHeaderFormatter(e[0].key)],Je(e,function(e){i=e.series,t.push(i.tooltipFormatter&&i.tooltipFormatter(e)||e.point.tooltipFormatter(i.tooltipOptions.pointFormat))}),t.push(l.footerFormat||""),t.join("")}var s,n,o,r,a=this.chart,h=this.label,l=this.options,c={},d=[];r=l.formatter||i;var g,c=a.hoverPoints,f=l.crosshairs;
11
+ if(o=this.shared,n=this.getAnchor(t,e),s=n[0],n=n[1],!o||t.series&&t.series.noSharedTooltip?c=t.getLabelConfig():(a.hoverPoints=t,c&&Je(c,function(t){t.setState()}),Je(t,function(t){t.setState("hover"),d.push(t.getLabelConfig())}),c={x:t[0].category,y:t[0].y},c.points=d,t=t[0]),r=r.call(c),c=t.series,o=o||!c.isCartesian||c.tooltipOutsidePlot||a.isInsidePlot(s,n),r!==!1&&o?(this.isHidden&&h.show(),h.attr({text:r}),g=l.borderColor||t.color||c.color||"#606060",h.attr({stroke:g}),h=(l.positioner||this.getPosition).call(this,h.width,h.height,{plotX:s,plotY:n}),this.move(ce(h.x),ce(h.y),s+a.plotLeft,n+a.plotTop),this.isHidden=!1):this.hide(),f)for(f=p(f),h=f.length;h--;)o=t.series[h?"yAxis":"xAxis"],f[h]&&o&&(o=o.getPlotLinePath(h?u(t.stackY,t.y):t.x,1),this.crosshairs[h]?this.crosshairs[h].attr({d:o,visibility:"visible"}):(c={"stroke-width":f[h].width||1,stroke:f[h].color||"#C0C0C0",zIndex:f[h].zIndex||2},f[h].dashStyle&&(c.dashstyle=f[h].dashStyle),this.crosshairs[h]=a.renderer.path(o).attr(c).add()));ni(a,"tooltipRefresh",{text:r,x:s+a.plotLeft,y:n+a.plotTop,borderColor:g})}},E.prototype={normalizeMouseEvent:function(e){var i,s,n,e=e||he.event;return e.target||(e.target=e.srcElement),e=oi(e),n=e.touches?e.touches.item(0):e,this.chartPosition=i=Qe(this.chart.container),n.pageX===N?(s=e.x,i=e.y):(s=n.pageX-i.left,i=n.pageY-i.top),t(e,{chartX:ce(s),chartY:ce(i)})},getMouseCoordinates:function(t){var e={xAxis:[],yAxis:[]},i=this.chart;return Je(i.axes,function(s){var n=s.isXAxis;e[n?"xAxis":"yAxis"].push({axis:s,value:s.translate(((i.inverted?!n:n)?t.chartX-i.plotLeft:s.top+s.len-t.chartY)-s.minPixelPadding,!0)})}),e},getIndex:function(t){var e=this.chart;return e.inverted?e.plotHeight+e.plotTop-t.chartY:t.chartX-e.plotLeft},onmousemove:function(t){var e,i,s,n=this.chart,o=n.series,r=n.tooltip,a=n.hoverPoint,h=n.hoverSeries,l=n.chartWidth,c=this.getIndex(t);if(r&&this.options.tooltip.shared&&(!h||!h.noSharedTooltip)){for(e=[],i=o.length,s=0;i>s;s++)o[s].visible&&o[s].options.enableMouseTracking!==!1&&!o[s].noSharedTooltip&&o[s].tooltipPoints.length&&(n=o[s].tooltipPoints[c],n._dist=fe(c-n[o[s].xAxis.tooltipPosName||"plotX"]),l=ge(l,n._dist),e.push(n));for(i=e.length;i--;)e[i]._dist>l&&e.splice(i,1);e.length&&e[0].plotX!==this.hoverX&&(r.refresh(e,t),this.hoverX=e[0].plotX)}h&&h.tracker&&(n=h.tooltipPoints[c])&&n!==a&&n.onMouseOver()},resetTracker:function(t){var e=this.chart,i=e.hoverSeries,s=e.hoverPoint,n=e.tooltip,e=n&&n.shared?e.hoverPoints:s;(t=t&&n&&e)&&p(e)[0].plotX===N&&(t=!1),t?n.refresh(e):(s&&s.onMouseOut(),i&&i.onMouseOut(),n&&(n.hide(),n.hideCrosshairs()),this.hoverX=null)},setDOMEvents:function(){function e(){if(s.selectionMarker){var t,r={xAxis:[],yAxis:[]},a=s.selectionMarker.getBBox(),h=a.x-n.plotLeft,l=a.y-n.plotTop;i&&(Je(n.axes,function(e){if(e.options.zoomEnabled!==!1){var i=e.isXAxis,s=n.inverted?!i:i,o=e.translate(s?h:n.plotHeight-l-a.height,!0,0,0,1),s=e.translate((s?h+a.width:n.plotHeight-l)-2*e.minPixelPadding,!0,0,0,1);!isNaN(o)&&!isNaN(s)&&(r[i?"xAxis":"yAxis"].push({axis:e,min:ge(o,s),max:ue(o,s)}),t=!0)}}),t&&ni(n,"selection",r,function(t){n.zoom(t)})),s.selectionMarker=s.selectionMarker.destroy()}n&&(g(o,{cursor:"auto"}),n.cancelClick=i,n.mouseIsDown=i=!1),si(ae,Ie?"touchend":"mouseup",e)}var i,s=this,n=s.chart,o=n.container,r=s.zoomX&&!n.inverted||s.zoomY&&n.inverted,a=s.zoomY&&!n.inverted||s.zoomX&&n.inverted;s.hideTooltipOnMouseMove=function(t){t=oi(t),s.chartPosition&&n.hoverSeries&&n.hoverSeries.isCartesian&&!n.isInsidePlot(t.pageX-s.chartPosition.left-n.plotLeft,t.pageY-s.chartPosition.top-n.plotTop)&&s.resetTracker()},s.hideTooltipOnMouseLeave=function(){s.resetTracker(),s.chartPosition=null},o.onmousedown=function(t){t=s.normalizeMouseEvent(t),!Ie&&t.preventDefault&&t.preventDefault(),n.mouseIsDown=!0,n.cancelClick=!1,n.mouseDownX=s.mouseDownX=t.chartX,s.mouseDownY=t.chartY,ii(ae,Ie?"touchend":"mouseup",e)};var h=function(t){if(!(t&&t.touches&&t.touches.length>1)){t=s.normalizeMouseEvent(t),Ie||(t.returnValue=!1);var e=t.chartX,o=t.chartY,h=!n.isInsidePlot(e-n.plotLeft,o-n.plotTop);if(Ie&&"touchstart"===t.type&&(d(t.target,"isTracker")?n.runTrackerClick||t.preventDefault():!n.runChartClick&&!h&&t.preventDefault()),h&&(e<n.plotLeft?e=n.plotLeft:e>n.plotLeft+n.plotWidth&&(e=n.plotLeft+n.plotWidth),o<n.plotTop?o=n.plotTop:o>n.plotTop+n.plotHeight&&(o=n.plotTop+n.plotHeight)),n.mouseIsDown&&"touchstart"!==t.type&&(i=Math.sqrt(Math.pow(s.mouseDownX-e,2)+Math.pow(s.mouseDownY-o,2)),i>10)){var l=n.isInsidePlot(s.mouseDownX-n.plotLeft,s.mouseDownY-n.plotTop);if(n.hasCartesianSeries&&(s.zoomX||s.zoomY)&&l&&!s.selectionMarker&&(s.selectionMarker=n.renderer.rect(n.plotLeft,n.plotTop,r?1:n.plotWidth,a?1:n.plotHeight,0).attr({fill:s.options.chart.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add()),s.selectionMarker&&r){var c=e-s.mouseDownX;s.selectionMarker.attr({width:fe(c),x:(c>0?0:c)+s.mouseDownX})}s.selectionMarker&&a&&(o-=s.mouseDownY,s.selectionMarker.attr({height:fe(o),y:(o>0?0:o)+s.mouseDownY})),l&&!s.selectionMarker&&s.options.chart.panning&&n.pan(e)}return h||s.onmousemove(t),h||!n.hasCartesianSeries}};o.onmousemove=h,ii(o,"mouseleave",s.hideTooltipOnMouseLeave),ii(ae,"mousemove",s.hideTooltipOnMouseMove),o.ontouchstart=function(t){(s.zoomX||s.zoomY)&&o.onmousedown(t),h(t)},o.ontouchmove=h,o.ontouchend=function(){i&&s.resetTracker()},o.onclick=function(e){var i,o,r=n.hoverPoint,e=s.normalizeMouseEvent(e);e.cancelBubble=!0,n.cancelClick||(r&&(d(e.target,"isTracker")||d(e.target.parentNode,"isTracker"))?(i=r.plotX,o=r.plotY,t(r,{pageX:s.chartPosition.left+n.plotLeft+(n.inverted?n.plotWidth-o:i),pageY:s.chartPosition.top+n.plotTop+(n.inverted?n.plotHeight-i:o)}),ni(r.series,"click",t(e,{point:r})),r.firePointEvent("click",e)):(t(e,s.getMouseCoordinates(e)),n.isInsidePlot(e.chartX-n.plotLeft,e.chartY-n.plotTop)&&ni(n,"click",e)))}},destroy:function(){var t=this.chart,e=t.container;t.trackerGroup&&(t.trackerGroup=t.trackerGroup.destroy()),si(e,"mouseleave",this.hideTooltipOnMouseLeave),si(ae,"mousemove",this.hideTooltipOnMouseMove),e.onclick=e.onmousedown=e.onmousemove=e.ontouchstart=e.ontouchend=e.ontouchmove=null,clearInterval(this.tooltipTimeout)},init:function(t,e){t.trackerGroup||(t.trackerGroup=t.renderer.g("tracker").attr({zIndex:9}).add()),e.enabled&&(t.tooltip=new W(t,e)),this.setDOMEvents()}},G.prototype={init:function(t){var e=this,s=e.options=t.options.legend;if(s.enabled){var n=s.itemStyle,o=u(s.padding,8),r=s.itemMarginTop||0;e.baseline=i(n.fontSize)+3+r,e.itemStyle=n,e.itemHiddenStyle=ei(n,s.itemHiddenStyle),e.itemMarginTop=r,e.padding=o,e.initialItemX=o,e.initialItemY=o-5,e.maxItemWidth=0,e.chart=t,e.itemHeight=0,e.lastLineHeight=0,e.render(),ii(e.chart,"endResize",function(){e.positionCheckboxes()})}},colorizeItem:function(t,e){var i,s=this.options,n=t.legendItem,o=t.legendLine,r=t.legendSymbol,a=this.itemHiddenStyle.color,s=e?s.itemStyle.color:a,h=e?t.color:a,a=t.options&&t.options.marker,l={stroke:h,fill:h};if(n&&n.css({fill:s}),o&&o.attr({stroke:h}),r){if(a)for(i in a=t.convertAttribs(a))n=a[i],n!==N&&(l[i]=n);r.attr(l)}},positionItem:function(t){var e=this.options,i=e.symbolPadding,e=!e.rtl,s=t._legendItemPos,n=s[0],s=s[1],o=t.checkbox;t.legendGroup&&t.legendGroup.translate(e?n:this.legendWidth-n-2*i-4,s),o&&(o.x=n,o.y=s)},destroyItem:function(t){var e=t.checkbox;Je(["legendItem","legendLine","legendSymbol","legendGroup"],function(e){t[e]&&t[e].destroy()}),e&&A(t.checkbox)},destroy:function(){var t=this.group,e=this.box;e&&(this.box=e.destroy()),t&&(this.group=t.destroy())},positionCheckboxes:function(){var t=this;Je(t.allItems,function(e){var i=e.checkbox,s=t.group.alignAttr;i&&g(i,{left:s.translateX+e.legendItemWidth+i.x-20+"px",top:s.translateY+i.y+3+"px"})})},renderItem:function(t){var e,i=this,s=i.chart,n=s.renderer,o=i.options,r="horizontal"===o.layout,a=o.symbolWidth,h=o.symbolPadding,l=i.itemStyle,c=i.itemHiddenStyle,d=i.padding,p=!o.rtl,u=o.width,g=o.itemMarginBottom||0,m=i.itemMarginTop,v=i.initialItemX,x=t.legendItem,y=t.series||t,b=y.options,k=b.showCheckbox;!x&&(t.legendGroup=n.g("legend-item").attr({zIndex:1}).add(i.scrollGroup),y.drawLegendSymbol(i,t),t.legendItem=x=n.text(o.labelFormatter.call(t),p?a+h:-h,i.baseline,o.useHTML).css(ei(t.visible?l:c)).attr({align:p?"left":"right",zIndex:2}).add(t.legendGroup),t.legendGroup.on("mouseover",function(){t.setState("hover"),x.css(i.options.itemHoverStyle)}).on("mouseout",function(){x.css(t.visible?l:c),t.setState()}).on("click",function(e){var i=function(){t.setVisible()},e={browserEvent:e};t.firePointEvent?t.firePointEvent("legendItemClick",e,i):ni(t,"legendItemClick",e,i)}),i.colorizeItem(t,t.visible),b&&k)&&(t.checkbox=f("input",{type:"checkbox",checked:t.selected,defaultChecked:t.selected},o.itemCheckboxStyle,s.container),ii(t.checkbox,"click",function(e){ni(t,"checkboxClick",{checked:e.target.checked},function(){t.select()})})),n=x.getBBox(),e=t.legendItemWidth=o.itemWidth||a+h+n.width+d+(k?20:0),o=e,i.itemHeight=a=n.height,r&&i.itemX-v+o>(u||s.chartWidth-2*d-v)&&(i.itemX=v,i.itemY+=m+i.lastLineHeight+g,i.lastLineHeight=0),i.maxItemWidth=ue(i.maxItemWidth,o),i.lastItemY=m+i.itemY+g,i.lastLineHeight=ue(a,i.lastLineHeight),t._legendItemPos=[i.itemX,i.itemY],r?i.itemX+=o:(i.itemY+=m+a+g,i.lastLineHeight=a),i.offsetWidth=u||ue(r?i.itemX-v:o,i.offsetWidth)},render:function(){var e,i,s,n,o=this,r=o.chart,a=r.renderer,h=o.group,l=o.box,c=o.options,d=o.padding,p=c.borderWidth,u=c.backgroundColor;o.itemX=o.initialItemX,o.itemY=o.initialItemY,o.offsetWidth=0,o.lastItemY=0,h||(o.group=h=a.g("legend").attr({zIndex:7}).add(),o.contentGroup=a.g().attr({zIndex:1}).add(h),o.scrollGroup=a.g().add(o.contentGroup),o.clipRect=a.clipRect(0,0,9999,r.chartHeight),o.contentGroup.clip(o.clipRect)),e=[],Je(r.series,function(t){var i=t.options;i.showInLegend&&(e=e.concat(t.legendItems||("point"===i.legendType?t.data:t)))}),T(e,function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),c.reversed&&e.reverse(),o.allItems=e,o.display=i=!!e.length,Je(e,function(t){o.renderItem(t)}),s=c.width||o.offsetWidth,n=o.lastItemY+o.lastLineHeight,n=o.handleOverflow(n),(p||u)&&(s+=d,n+=d,l?s>0&&n>0&&(l[l.isNew?"attr":"animate"](l.crisp(null,null,null,s,n)),l.isNew=!1):(o.box=l=a.rect(0,0,s,n,c.borderRadius,p||0).attr({stroke:c.borderColor,"stroke-width":p||0,fill:u||Oe}).add(h).shadow(c.shadow),l.isNew=!0),l[i?"show":"hide"]()),o.legendWidth=s,o.legendHeight=n,Je(e,function(t){o.positionItem(t)}),i&&h.align(t({width:s,height:n},c),!0,r.spacingBox),r.isResizing||this.positionCheckboxes()},handleOverflow:function(t){var e=this,i=this.chart,s=i.renderer,n=this.options,o=n.y,o=i.spacingBox.height+("top"===n.verticalAlign?-o:o)-this.padding,r=n.maxHeight,a=this.clipRect,h=n.navigation,l=u(h.animation,!0),c=h.arrowSize||12,d=this.nav;return"horizontal"===n.layout&&(o/=2),r&&(o=ge(o,r)),t>o?(this.clipHeight=i=o-20,this.pageCount=pe(t/i),this.currentPage=u(this.currentPage,1),this.fullHeight=t,a.attr({height:i}),d||(this.nav=d=s.g().attr({zIndex:1}).add(this.group),this.up=s.symbol("triangle",0,0,c,c).on("click",function(){e.scroll(-1,l)}).add(d),this.pager=s.text("",15,10).css(h.style).add(d),this.down=s.symbol("triangle-down",0,0,c,c).on("click",function(){e.scroll(1,l)}).add(d)),e.scroll(0),t=o):d&&(a.attr({height:i.chartHeight}),d.hide(),this.scrollGroup.attr({translateY:1})),t},scroll:function(t,e){var i=this.pageCount,s=this.currentPage+t,n=this.clipHeight,o=this.options.navigation,r=o.activeColor,o=o.inactiveColor,a=this.pager,h=this.padding;s>i&&(s=i),s>0&&(e!==N&&I(e,this.chart),this.nav.attr({translateX:h,translateY:n+7,visibility:"visible"}),this.up.attr({fill:1===s?o:r}).css({cursor:1===s?"default":"pointer"}),a.attr({text:s+"/"+this.pageCount}),this.down.attr({x:18+this.pager.getBBox().width,fill:s===i?o:r}).css({cursor:s===i?"default":"pointer"}),this.scrollGroup.animate({translateY:-ge(n*(s-1),this.fullHeight-n+h)+1}),a.attr({text:s+"/"+i}),this.currentPage=s)}},X.prototype={initSeries:function(t){var e=this.options.chart,e=new Ve[t.type||e.type||e.defaultSeriesType];return e.init(this,t),e},addSeries:function(t,e,i){var s,n=this;return t&&(I(i,n),e=u(e,!0),ni(n,"addSeries",{options:t},function(){s=n.initSeries(t),n.isDirtyLegend=!0,e&&n.redraw()})),s},isInsidePlot:function(t,e,i){var s=i?e:t,t=i?t:e;return s>=0&&s<=this.plotWidth&&t>=0&&t<=this.plotHeight},adjustTickAmounts:function(){this.options.chart.alignTicks!==!1&&Je(this.axes,function(t){t.adjustTickAmount()}),this.maxTicks=null},redraw:function(t){var e,i=this.axes,s=this.series,n=this.tracker,o=this.legend,r=this.isDirtyLegend,a=this.isDirtyBox,h=s.length,l=h,c=this.renderer,d=c.isHidden(),p=[];for(I(t,this),d&&this.cloneRenderTo();l--;)if(t=s[l],t.isDirty&&t.options.stacking){e=!0;break}if(e)for(l=h;l--;)t=s[l],t.options.stacking&&(t.isDirty=!0);Je(s,function(t){t.isDirty&&"point"===t.options.legendType&&(r=!0)}),r&&o.options.enabled&&(o.render(),this.isDirtyLegend=!1),this.hasCartesianSeries&&(this.isResizing||(this.maxTicks=null,Je(i,function(t){t.setScale()})),this.adjustTickAmounts(),this.getMargins(),Je(i,function(t){t.isDirtyExtremes&&(t.isDirtyExtremes=!1,p.push(function(){ni(t,"afterSetExtremes",t.getExtremes())})),(t.isDirty||a||e)&&(t.redraw(),a=!0)})),a&&this.drawChartBox(),Je(s,function(t){t.isDirty&&t.visible&&(!t.isCartesian||t.xAxis)&&t.redraw()}),n&&n.resetTracker&&n.resetTracker(!0),c.draw(),ni(this,"redraw"),d&&this.cloneRenderTo(!0),Je(p,function(t){t.call()})},showLoading:function(e){var i=this.options,s=this.loadingDiv,n=i.loading;s||(this.loadingDiv=s=f(Re,{className:"highcharts-loading"},t(n.style,{left:this.plotLeft+"px",top:this.plotTop+"px",width:this.plotWidth+"px",height:this.plotHeight+"px",zIndex:10,display:Oe}),this.container),this.loadingSpan=f("span",null,n.labelStyle,s)),this.loadingSpan.innerHTML=e||i.lang.loading,this.loadingShown||(g(s,{opacity:0,display:""}),ri(s,{opacity:n.style.opacity},{duration:n.showDuration||0}),this.loadingShown=!0)},hideLoading:function(){var t=this.options,e=this.loadingDiv;e&&ri(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){g(e,{display:Oe})}}),this.loadingShown=!1},get:function(t){var e,i,s=this.axes,n=this.series;for(e=0;e<s.length;e++)if(s[e].options.id===t)return s[e];for(e=0;e<n.length;e++)if(n[e].options.id===t)return n[e];for(e=0;e<n.length;e++)for(i=n[e].points||[],s=0;s<i.length;s++)if(i[s].id===t)return i[s];return null},getAxes:function(){var t=this,e=this.options,i=e.xAxis||{},e=e.yAxis||{},i=p(i);Je(i,function(t,e){t.index=e,t.isX=!0}),e=p(e),Je(e,function(t,e){t.index=e}),i=i.concat(e),Je(i,function(e){new H(t,e)}),t.adjustTickAmounts()},getSelectedPoints:function(){var t=[];return Je(this.series,function(e){t=t.concat(qe(e.points,function(t){return t.selected}))}),t},getSelectedSeries:function(){return qe(this.series,function(t){return t.selected})},showResetZoom:function(){var t=this,e=j.lang,i=t.options.chart.resetZoomButton,s=i.theme,n=s.states,o="chart"===i.relativeTo?null:"plotBox";this.resetZoomButton=t.renderer.button(e.resetZoom,null,null,function(){t.zoomOut()},s,n&&n.hover).attr({align:i.position.align,title:e.resetZoomTitle}).add().align(i.position,!1,t[o]),this.resetZoomButton.alignTo=o},zoomOut:function(){var t=this,e=t.resetZoomButton;ni(t,"selection",{resetSelection:!0},function(){t.zoom()}),e&&(t.resetZoomButton=e.destroy())},zoom:function(t){var e,i=this;!t||t.resetSelection?Je(i.axes,function(t){e=t.zoom()}):Je(t.xAxis.concat(t.yAxis),function(t){var s=t.axis;i.tracker[s.isXAxis?"zoomX":"zoomY"]&&(e=s.zoom(t.min,t.max))}),i.resetZoomButton||i.showResetZoom(),e&&i.redraw(u(i.options.chart.animation,i.pointCount<100))},pan:function(t){var e=this.xAxis[0],i=this.mouseDownX,s=e.pointRange/2,n=e.getExtremes(),o=e.translate(i-t,!0)+s,i=e.translate(i+this.plotWidth-t,!0)-s;(s=this.hoverPoints)&&Je(s,function(t){t.setState()}),e.series.length&&o>ge(n.dataMin,n.min)&&i<ue(n.dataMax,n.max)&&e.setExtremes(o,i,!0,!1,{trigger:"pan"}),this.mouseDownX=t,g(this.container,{cursor:"move"})},setTitle:function(t,e){var i,s=this,n=s.options;s.chartTitleOptions=i=ei(n.title,t),s.chartSubtitleOptions=n=ei(n.subtitle,e),Je([["title",t,i],["subtitle",e,n]],function(t){var e=t[0],i=s[e],n=t[1],t=t[2];i&&n&&(s[e]=i=i.destroy()),t&&t.text&&!i&&(s[e]=s.renderer.text(t.text,0,0,t.useHTML).attr({align:t.align,"class":"highcharts-"+e,zIndex:t.zIndex||4}).css(t.style).add().align(t,!1,s.spacingBox))})},getChartSize:function(){var t=this.options.chart,e=this.renderToClone||this.renderTo;this.containerWidth=_e(e,"width"),this.containerHeight=_e(e,"height"),this.chartWidth=t.width||this.containerWidth||600,this.chartHeight=t.height||(this.containerHeight>19?this.containerHeight:400)},cloneRenderTo:function(t){var e=this.renderToClone,i=this.container;t?e&&(this.renderTo.appendChild(i),A(e),delete this.renderToClone):(i&&this.renderTo.removeChild(i),this.renderToClone=e=this.renderTo.cloneNode(0),g(e,{position:"absolute",top:"-9999px",display:"block"}),ae.body.appendChild(e),i&&e.appendChild(i))},getContainer:function(){var e,i,n,o,r=this.options.chart;this.renderTo=e=r.renderTo,o="highcharts-"+De++,s(e)&&(this.renderTo=e=ae.getElementById(e)),e||M(13,!0),e.innerHTML="",e.offsetWidth||this.cloneRenderTo(),this.getChartSize(),i=this.chartWidth,n=this.chartHeight,this.container=e=f(Re,{className:"highcharts-container"+(r.className?" "+r.className:""),id:o},t({position:"relative",overflow:"hidden",width:i+"px",height:n+"px",textAlign:"left",lineHeight:"normal",zIndex:0},r.style),this.renderToClone||e),this.renderer=r.forExport?new ci(e,i,n,!0):new F(e,i,n),Ce&&this.renderer.create(this,e,i,n)},getMargins:function(){var t,e=this.options.chart,i=e.spacingTop,s=e.spacingRight,n=e.spacingBottom,e=e.spacingLeft,o=this.legend,r=this.optionsMarginTop,a=this.optionsMarginLeft,h=this.optionsMarginRight,l=this.optionsMarginBottom,d=this.chartTitleOptions,p=this.chartSubtitleOptions,g=this.options.legend,f=u(g.margin,10),m=g.x,v=g.y,x=g.align,y=g.verticalAlign;this.resetMargins(),t=this.axisOffset,!this.title&&!this.subtitle||c(this.optionsMarginTop)||(p=ue(this.title&&!d.floating&&!d.verticalAlign&&d.y||0,this.subtitle&&!p.floating&&!p.verticalAlign&&p.y||0))&&(this.plotTop=ue(this.plotTop,p+u(d.margin,15)+i)),o.display&&!g.floating&&("right"===x?c(h)||(this.marginRight=ue(this.marginRight,o.legendWidth-m+f+s)):"left"===x?c(a)||(this.plotLeft=ue(this.plotLeft,o.legendWidth+m+f+e)):"top"===y?c(r)||(this.plotTop=ue(this.plotTop,o.legendHeight+v+f+i)):"bottom"!==y||c(l)||(this.marginBottom=ue(this.marginBottom,o.legendHeight-v+f+n))),this.extraBottomMargin&&(this.marginBottom+=this.extraBottomMargin),this.extraTopMargin&&(this.plotTop+=this.extraTopMargin),this.hasCartesianSeries&&Je(this.axes,function(t){t.getOffset()}),c(a)||(this.plotLeft+=t[3]),c(r)||(this.plotTop+=t[0]),c(l)||(this.marginBottom+=t[2]),c(h)||(this.marginRight+=t[1]),this.setChartSize()},initReflow:function(){function t(t){var o=s.width||_e(n,"width"),r=s.height||_e(n,"height"),t=t?t.target:he;o&&r&&(t===he||t===ae)&&((o!==i.containerWidth||r!==i.containerHeight)&&(clearTimeout(e),i.reflowTimeout=e=setTimeout(function(){i.container&&i.resize(o,r,!1)},100)),i.containerWidth=o,i.containerHeight=r)}var e,i=this,s=i.options.chart,n=i.renderTo;ii(he,"resize",t),ii(i,"destroy",function(){si(he,"resize",t)})},resize:function(t,e,i){var s,n,o,r=this,a=r.resetZoomButton,h=r.title,l=r.subtitle;r.isResizing+=1,o=function(){r&&ni(r,"endResize",null,function(){r.isResizing-=1})},I(i,r),r.oldChartHeight=r.chartHeight,r.oldChartWidth=r.chartWidth,c(t)&&(r.chartWidth=s=ce(t)),c(e)&&(r.chartHeight=n=ce(e)),g(r.container,{width:s+"px",height:n+"px"}),r.renderer.setSize(s,n,i),r.plotWidth=s-r.plotLeft-r.marginRight,r.plotHeight=n-r.plotTop-r.marginBottom,r.maxTicks=null,Je(r.axes,function(t){t.isDirty=!0,t.setScale()}),Je(r.series,function(t){t.isDirty=!0}),r.isDirtyLegend=!0,r.isDirtyBox=!0,r.getMargins(),t=r.spacingBox,h&&h.align(null,null,t),l&&l.align(null,null,t),a&&a.align&&a.align(null,null,r[a.alignTo]),r.redraw(i),r.oldChartHeight=null,ni(r,"resize"),Z===!1?o():setTimeout(o,Z&&Z.duration||500)},setChartSize:function(){var t,e,i,s,n=this.inverted,o=this.chartWidth,r=this.chartHeight,a=this.options.chart,h=a.spacingTop,l=a.spacingRight,c=a.spacingBottom,d=a.spacingLeft;this.plotLeft=t=ce(this.plotLeft),this.plotTop=e=ce(this.plotTop),this.plotWidth=i=ce(o-t-this.marginRight),this.plotHeight=s=ce(r-e-this.marginBottom),this.plotSizeX=n?s:i,this.plotSizeY=n?i:s,this.plotBorderWidth=n=a.plotBorderWidth||0,this.spacingBox={x:d,y:h,width:o-d-l,height:r-h-c},this.plotBox={x:t,y:e,width:i,height:s},this.clipBox={x:n/2,y:n/2,width:this.plotSizeX-n,height:this.plotSizeY-n},Je(this.axes,function(t){t.setAxisSize(),t.setAxisTranslation()})},resetMargins:function(){var t=this.options.chart,e=t.spacingRight,i=t.spacingBottom,s=t.spacingLeft;this.plotTop=u(this.optionsMarginTop,t.spacingTop),this.marginRight=u(this.optionsMarginRight,e),this.marginBottom=u(this.optionsMarginBottom,i),this.plotLeft=u(this.optionsMarginLeft,s),this.axisOffset=[0,0,0,0]},drawChartBox:function(){var t,e=this.options.chart,i=this.renderer,s=this.chartWidth,n=this.chartHeight,o=this.chartBackground,r=this.plotBackground,a=this.plotBorder,h=this.plotBGImage,l=e.borderWidth||0,c=e.backgroundColor,d=e.plotBackgroundColor,p=e.plotBackgroundImage,u=e.plotBorderWidth||0,g=this.plotLeft,f=this.plotTop,m=this.plotWidth,v=this.plotHeight,x=this.plotBox,y=this.clipRect,b=this.clipBox;t=l+(e.shadow?8:0),(l||c)&&(o?o.animate(o.crisp(null,null,null,s-t,n-t)):(o={fill:c||Oe},l&&(o.stroke=e.borderColor,o["stroke-width"]=l),this.chartBackground=i.rect(t/2,t/2,s-t,n-t,e.borderRadius,l).attr(o).add().shadow(e.shadow))),d&&(r?r.animate(x):this.plotBackground=i.rect(g,f,m,v,0).attr({fill:d}).add().shadow(e.plotShadow)),p&&(h?h.animate(x):this.plotBGImage=i.image(p,g,f,m,v).add()),y?y.animate({width:b.width,height:b.height}):this.clipRect=i.clipRect(b),u&&(a?a.animate(a.crisp(null,g,f,m,v)):this.plotBorder=i.rect(g,f,m,v,0,u).attr({stroke:e.plotBorderColor,"stroke-width":u,zIndex:1}).add()),this.isDirtyBox=!1},propFromSeries:function(){var t,e,i,s=this,n=s.options.chart,o=s.options.series;Je(["inverted","angular","polar"],function(r){for(t=Ve[n.type||n.defaultSeriesType],i=s[r]||n[r]||t&&t.prototype[r],e=o&&o.length;!i&&e--;)(t=Ve[o[e].type])&&t.prototype[r]&&(i=!0);s[r]=i})},render:function(){var e,s=this,n=s.axes,o=s.renderer,r=s.options,a=r.labels,r=r.credits;s.setTitle(),s.legend=new G(s),Je(n,function(t){t.setScale()}),s.getMargins(),s.maxTicks=null,Je(n,function(t){t.setTickPositions(!0),t.setMaxTicks()}),s.adjustTickAmounts(),s.getMargins(),s.drawChartBox(),s.hasCartesianSeries&&Je(n,function(t){t.render()}),s.seriesGroup||(s.seriesGroup=o.g("series-group").attr({zIndex:3}).add()),Je(s.series,function(t){t.translate(),t.setTooltipPoints(),t.render()}),a.items&&Je(a.items,function(e){var n=t(a.style,e.style),r=i(n.left)+s.plotLeft,h=i(n.top)+s.plotTop+12;delete n.left,delete n.top,o.text(e.html,r,h).attr({zIndex:2}).css(n).add()}),r.enabled&&!s.credits&&(e=r.href,s.credits=o.text(r.text,0,0).on("click",function(){e&&(location.href=e)}).attr({align:r.position.align,zIndex:8}).css(r.style).add().align(r.position)),s.hasRendered=!0},destroy:function(){var t,e=this,i=e.axes,s=e.series,n=e.container,o=n&&n.parentNode;for(ni(e,"destroy"),si(e),t=i.length;t--;)i[t]=i[t].destroy();for(t=s.length;t--;)s[t]=s[t].destroy();Je("title,subtitle,chartBackground,plotBackground,plotBGImage,plotBorder,seriesGroup,clipRect,credits,tracker,scroller,rangeSelector,legend,resetZoomButton,tooltip,renderer".split(","),function(t){var i=e[t];i&&i.destroy&&(e[t]=i.destroy())}),n&&(n.innerHTML="",si(n),o&&A(n));for(t in e)delete e[t]},firstRender:function(){var t=this,e=t.options,i=t.callback;!Ae&&he==he.top&&"complete"!==ae.readyState||Ce&&!he.canvg?Ce?gi.push(function(){t.firstRender()},e.global.canvasToolsURL):ae.attachEvent("onreadystatechange",function(){ae.detachEvent("onreadystatechange",t.firstRender),"complete"===ae.readyState&&t.firstRender()}):(t.getContainer(),ni(t,"init"),Highcharts.RangeSelector&&e.rangeSelector.enabled&&(t.rangeSelector=new Highcharts.RangeSelector(t)),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes(),Je(e.series||[],function(e){t.initSeries(e)}),Highcharts.Scroller&&(e.navigator.enabled||e.scrollbar.enabled)&&(t.scroller=new Highcharts.Scroller(t)),t.tracker=new E(t,e),t.render(),t.renderer.draw(),i&&i.apply(t,[t]),Je(t.callbacks,function(e){e.apply(t,[t])}),t.cloneRenderTo(!0),ni(t,"load"))},init:function(t){var e,i=this.options.chart;if(i.reflow!==!1&&ii(this,"load",this.initReflow),t)for(e in t)ii(this,e,t[e]);this.xAxis=[],this.yAxis=[],this.animation=Ce?!1:u(i.animation,!0),this.setSize=this.resize,this.pointCount=0,this.counters=new w,this.firstRender()}},X.prototype.callbacks=[];var fi=function(){};fi.prototype={init:function(t,e,i){var s=t.chart.counters;return this.series=t,this.applyOptions(e,i),this.pointAttr={},t.options.colorByPoint&&(e=t.chart.options.colors,this.color=this.color||e[s.color++],s.wrapColor(e.length)),t.chart.pointCount++,this},applyOptions:function(e,i){var s=this.series,n=typeof e;this.config=e,"number"===n||null===e?this.y=e:"number"==typeof e[0]?(this.x=e[0],this.y=e[1]):"object"===n&&"number"!=typeof e.length?(t(this,e),this.options=e,e.dataLabels&&(s._hasPointLabels=!0),e.marker&&(s._hasPointMarkers=!0)):"string"==typeof e[0]&&(this.name=e[0],this.y=e[1]),this.x===N&&(this.x=i===N?s.autoIncrement():i)},destroy:function(){var t,e=this.series.chart,i=e.hoverPoints;e.pointCount--,i&&(this.setState(),l(i,this),!i.length)&&(e.hoverPoints=null),this===e.hoverPoint&&this.onMouseOut(),(this.graphic||this.dataLabel)&&(si(this),this.destroyElements()),this.legendItem&&e.legend.destroyItem(this);for(t in this)this[t]=null},destroyElements:function(){for(var t,e="graphic,tracker,dataLabel,group,connector,shadowGroup".split(","),i=6;i--;)t=e[i],this[t]&&(this[t]=this[t].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},select:function(t,e){var i=this,s=i.series.chart,t=u(t,!i.selected);i.firePointEvent(t?"select":"unselect",{accumulate:e},function(){i.selected=t,i.setState(t&&"select"),e||Je(s.getSelectedPoints(),function(t){t.selected&&t!==i&&(t.selected=!1,t.setState(""),t.firePointEvent("unselect"))})})},onMouseOver:function(){var t=this.series,e=t.chart,i=e.tooltip,s=e.hoverPoint;s&&s!==this&&s.onMouseOut(),this.firePointEvent("mouseOver"),i&&(!i.shared||t.noSharedTooltip)&&i.refresh(this),this.setState("hover"),e.hoverPoint=this},onMouseOut:function(){var t=this.series.chart,e=t.hoverPoints;e&&-1!==$e(this,e)||(this.firePointEvent("mouseOut"),this.setState(),t.hoverPoint=null)},tooltipFormatter:function(t){var e,i,n,o,r=this.series,a=r.tooltipOptions,h=t.match(/\{(series|point)\.[a-zA-Z]+\}/g),l=/[{\.}]/,c={y:0,open:0,high:0,low:0,close:0,percentage:1,total:1};a.valuePrefix=a.valuePrefix||a.yPrefix,a.valueDecimals=a.valueDecimals||a.yDecimals,a.valueSuffix=a.valueSuffix||a.ySuffix;for(o in h)i=h[o],s(i)&&i!==t&&(n=(" "+i).split(l),e={point:this,series:r}[n[1]],n=n[2],e===this&&c.hasOwnProperty(n)?(e=c[n]?n:"value",e=(a[e+"Prefix"]||"")+v(this[n],u(a[e+"Decimals"],-1))+(a[e+"Suffix"]||"")):e=e[n],t=t.replace(i,e));return t},update:function(t,e,i){var s,o=this,r=o.series,a=o.graphic,h=r.data,l=h.length,c=r.chart,e=u(e,!0);o.firePointEvent("update",{options:t},function(){for(o.applyOptions(t),n(t)&&(r.getAttribs(),a&&a.attr(o.pointAttr[r.state])),s=0;l>s;s++)if(h[s]===o){r.xData[s]=o.x,r.yData[s]=o.y,r.options.data[s]=t;break}r.isDirty=!0,r.isDirtyData=!0,e&&c.redraw(i)})},remove:function(t,e){var i,s=this,n=s.series,o=n.chart,r=n.data,a=r.length;I(e,o),t=u(t,!0),s.firePointEvent("remove",null,function(){for(i=0;a>i;i++)if(r[i]===s){r.splice(i,1),n.options.data.splice(i,1),n.xData.splice(i,1),n.yData.splice(i,1);break}s.destroy(),n.isDirty=!0,n.isDirtyData=!0,t&&o.redraw()})},firePointEvent:function(t,e,i){var s=this,n=this.series.options;(n.point.events[t]||s.options&&s.options.events&&s.options.events[t])&&this.importEvents(),"click"===t&&n.allowPointSelect&&(i=function(t){s.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),ni(this,t,e,i)},importEvents:function(){if(!this.hasImportedEvents){var t,e=ei(this.series.options.point,this.options).events;this.events=e;for(t in e)ii(this,t,e[t]);this.hasImportedEvents=!0}},setState:function(t){var e=this.plotX,i=this.plotY,s=this.series,n=s.options.states,o=hi[s.type].marker&&s.options.marker,r=o&&!o.enabled,a=o&&o.states[t],h=a&&a.enabled===!1,l=s.stateMarkerGraphic,c=s.chart,d=this.pointAttr,t=t||"";t===this.state||this.selected&&"select"!==t||n[t]&&n[t].enabled===!1||t&&(h||r&&!a.enabled)||(this.graphic?(n=o&&this.graphic.symbolName&&d[t].r,this.graphic.attr(ei(d[t],n?{x:e-n,y:i-n,width:2*n,height:2*n}:{}))):(t&&a&&(n=a.radius,l?l.attr({x:e-n,y:i-n}):s.stateMarkerGraphic=l=c.renderer.symbol(s.symbol,e-n,i-n,2*n,2*n).attr(d[t]).add(s.markerGroup)),l&&l[t&&c.isInsidePlot(e,i)?"show":"hide"]()),this.state=t)}};var mi=function(){};mi.prototype={isCartesian:!0,type:"line",pointClass:fi,sorted:!0,pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor",r:"radius"},init:function(e,i){var s,n;this.chart=e,this.options=i=this.setOptions(i),this.bindAxes(),t(this,{name:i.name,state:"",pointAttr:{},visible:i.visible!==!1,selected:i.selected===!0}),Ce&&(i.animation=!1),n=i.events;for(s in n)ii(this,s,n[s]);(n&&n.click||i.point&&i.point.events&&i.point.events.click||i.allowPointSelect)&&(e.runTrackerClick=!0),this.getColor(),this.getSymbol(),this.setData(i.data,!1),this.isCartesian&&(e.hasCartesianSeries=!0),e.series.push(this),T(e.series,function(t,e){return(t.options.index||0)-(e.options.index||0)}),Je(e.series,function(t,e){t.index=e,t.name=t.name||"Series "+(e+1)})},bindAxes:function(){var t,e=this,i=e.options,s=e.chart;e.isCartesian&&Je(["xAxis","yAxis"],function(n){Je(s[n],function(s){t=s.options,(i[n]===t.index||i[n]===N&&0===t.index)&&(s.series.push(e),e[n]=s,s.isDirty=!0)})})},autoIncrement:function(){var t=this.options,e=this.xIncrement,e=u(e,t.pointStart,0);return this.pointInterval=u(this.pointInterval,t.pointInterval,1),this.xIncrement=e+this.pointInterval,e},getSegments:function(){var t,e=-1,i=[],s=this.points,n=s.length;if(n)if(this.options.connectNulls){for(t=n;t--;)null===s[t].y&&s.splice(t,1);s.length&&(i=[s])}else Je(s,function(t,o){null===t.y?(o>e+1&&i.push(s.slice(e+1,o)),e=o):o===n-1&&i.push(s.slice(e+1,o+1))});this.segments=i},setOptions:function(t){var e=this.chart.options,i=e.plotOptions,s=i[this.type],n=t.data;return t.data=null,i=ei(s,i.series,t),i.data=t.data=n,this.tooltipOptions=ei(e.tooltip,i.tooltip),null===s.marker&&delete i.marker,i},getColor:function(){var t=this.options,e=this.chart.options.colors,i=this.chart.counters;this.color=t.color||!t.colorByPoint&&e[i.color++]||"gray",i.wrapColor(e.length)},getSymbol:function(){var t=this.options.marker,e=this.chart,i=e.options.symbols,e=e.counters;this.symbol=t.symbol||i[e.symbol++],/^url/.test(this.symbol)&&(t.radius=0),e.wrapSymbol(i.length)},drawLegendSymbol:function(t){var e,i=this.options,s=i.marker,n=t.options.symbolWidth,o=this.chart.renderer,r=this.legendGroup,t=t.baseline;i.lineWidth&&(e={"stroke-width":i.lineWidth},i.dashStyle&&(e.dashstyle=i.dashStyle),this.legendLine=o.path(["M",0,t-4,"L",n,t-4]).attr(e).add(r)),s&&s.enabled&&(i=s.radius,this.legendSymbol=o.symbol(this.symbol,n/2-i,t-4-i,2*i,2*i).add(r))},addPoint:function(t,e,i,s){var n=this.data,o=this.graph,r=this.area,a=this.chart,h=this.xData,l=this.yData,c=o&&o.shift||0,d=this.options.data,p=this.pointClass.prototype;I(s,a),o&&i&&(o.shift=c+1),r&&(i&&(r.shift=c+1),r.isArea=!0),e=u(e,!0),s={series:this},p.applyOptions.apply(s,[t]),h.push(s.x),l.push(p.toYData?p.toYData.call(s):s.y),d.push(t),i&&(n[0]&&n[0].remove?n[0].remove(!1):(n.shift(),h.shift(),l.shift(),d.shift())),this.getAttribs(),this.isDirtyData=this.isDirty=!0,e&&a.redraw()
12
+ },setData:function(t,e){var i,n=this.points,a=this.options,h=this.initialColor,l=this.chart,d=null,p=this.xAxis,g=this.pointClass.prototype;this.xIncrement=null,this.pointRange=p&&p.categories?1:a.pointRange,c(h)&&(l.counters.color=h);var h=[],f=[],m=t?t.length:[],v=(i=this.pointArrayMap)&&i.length;if(m>(a.turboThreshold||1e3)){for(i=0;null===d&&m>i;)d=t[i],i++;if(r(d)){for(g=u(a.pointStart,0),a=u(a.pointInterval,1),i=0;m>i;i++)h[i]=g,f[i]=t[i],g+=a;this.xIncrement=g}else if(o(d))if(v)for(i=0;m>i;i++)a=t[i],h[i]=a[0],f[i]=a.slice(1,v+1);else for(i=0;m>i;i++)a=t[i],h[i]=a[0],f[i]=a[1]}else for(i=0;m>i;i++)a={series:this},g.applyOptions.apply(a,[t[i]]),h[i]=a.x,f[i]=g.toYData?g.toYData.call(a):a.y;for(s(f[0])&&M(14,!0),this.data=[],this.options.data=t,this.xData=h,this.yData=f,i=n&&n.length||0;i--;)n[i]&&n[i].destroy&&n[i].destroy();p&&(p.minRange=p.userMinRange),this.isDirty=this.isDirtyData=l.isDirtyBox=!0,u(e,!0)&&l.redraw(!1)},remove:function(t,e){var i=this,s=i.chart,t=u(t,!0);i.isRemoving||(i.isRemoving=!0,ni(i,"remove",null,function(){i.destroy(),s.isDirtyLegend=s.isDirtyBox=!0,t&&s.redraw(e)})),i.isRemoving=!1},processData:function(t){var e,i,s=this.xData,n=this.yData,o=s.length,r=0,a=o,h=this.xAxis,l=this.options,c=l.cropThreshold,d=this.isCartesian;if(d&&!this.isDirty&&!h.isDirty&&!this.yAxis.isDirty&&!t)return!1;if(d&&this.sorted&&(!c||o>c||this.forceCrop))if(t=h.getExtremes(),h=t.min,c=t.max,s[o-1]<h||s[0]>c)s=[],n=[];else if(s[0]<h||s[o-1]>c){for(t=0;o>t;t++)if(s[t]>=h){r=ue(0,t-1);break}for(;o>t;t++)if(s[t]>c){a=t+1;break}s=s.slice(r,a),n=n.slice(r,a),e=!0}for(t=s.length-1;t>0;t--)o=s[t]-s[t-1],o>0&&(i===N||i>o)&&(i=o);this.cropped=e,this.cropStart=r,this.processedXData=s,this.processedYData=n,null===l.pointRange&&(this.pointRange=i||1),this.closestPointRange=i},generatePoints:function(){var t,e,i,s,n=this.options.data,o=this.data,r=this.processedXData,a=this.processedYData,h=this.pointClass,l=r.length,c=this.cropStart||0,d=this.hasGroupedData,u=[];for(o||d||(o=[],o.length=n.length,o=this.data=o),s=0;l>s;s++)e=c+s,d?u[s]=(new h).init(this,[r[s]].concat(p(a[s]))):(o[e]?i=o[e]:n[e]!==N&&(o[e]=i=(new h).init(this,n[e],r[s])),u[s]=i);if(o&&(l!==(t=o.length)||d))for(s=0;t>s;s++)s===c&&!d&&(s+=l),o[s]&&(o[s].destroyElements(),o[s].plotX=N);this.data=o,this.points=u},translate:function(){this.processedXData||this.processData(),this.generatePoints();for(var t,e=this.chart,i=this.options,s=i.stacking,n=this.xAxis,o=n.categories,r=this.yAxis,a=this.points,h=a.length,l=!!this.modifyValue,d=r.series,p=d.length,g="between"===i.pointPlacement;p--;)if(d[p].visible){d[p]===this&&(t=!0);break}for(p=0;h>p;p++){var d=a[p],f=d.x,m=d.y,v=d.low,x=r.stacks[(m<i.threshold?"-":"")+this.stackKey];d.plotX=n.translate(f,0,0,0,1,g),s&&this.visible&&x&&x[f]&&(v=x[f],f=v.total,v.cum=v=v.cum-m,m=v+m,t&&(v=u(i.threshold,r.min)),r.isLog&&0>=v&&(v=null),"percent"===s&&(v=f?100*v/f:0,m=f?100*m/f:0),d.percentage=f?100*d.y/f:0,d.total=d.stackTotal=f,d.stackY=m),d.yBottom=c(v)?r.translate(v,0,1,0,1):null,l&&(m=this.modifyValue(m,d)),d.plotY="number"==typeof m?ce(10*r.translate(m,0,1,0,1))/10:N,d.clientX=e.inverted?e.plotHeight-d.plotX:d.plotX,d.category=o&&o[d.x]!==N?o[d.x]:d.x}this.getSegments()},setTooltipPoints:function(t){var e,i,s,n,o=[],r=(e=this.xAxis)?e.tooltipLen||e.len:this.chart.plotSizeX,a=e&&e.tooltipPosName||"plotX",h=[];if(this.options.enableMouseTracking!==!1){for(t&&(this.tooltipPoints=null),Je(this.segments||this.points,function(t){o=o.concat(t)}),e&&e.reversed&&(o=o.reverse()),t=o.length,n=0;t>n;n++)for(s=o[n],e=o[n-1]?i+1:0,i=o[n+1]?ue(0,de((s[a]+(o[n+1]?o[n+1][a]:r))/2)):r;e>=0&&i>=e;)h[e++]=s;this.tooltipPoints=h}},tooltipHeaderFormatter:function(t){var e,i=this.tooltipOptions,s=i.xDateFormat,n=this.xAxis,o=n&&"datetime"===n.options.type;if(o&&!s)for(e in _)if(_[e]>=n.closestPointRange){s=i.dateTimeLabelFormats[e];break}return i.headerFormat.replace("{point.key}",o&&r(t)?V(s,t):t).replace("{series.name}",this.name).replace("{series.color}",this.color)},onMouseOver:function(){var t=this.chart,e=t.hoverSeries;e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&ni(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},onMouseOut:function(){var t=this.options,e=this.chart,i=e.tooltip,s=e.hoverPoint;s&&s.onMouseOut(),this&&t.events.mouseOut&&ni(this,"mouseOut"),i&&!t.stickyTracking&&!i.shared&&i.hide(),this.setState(),e.hoverSeries=null},animate:function(e){var i,s=this,o=s.chart,r=o.renderer;i=s.options.animation;var a,h=o.clipBox,l=o.inverted;i&&!n(i)&&(i=hi[s.type].animation),a="_sharedClip"+i.duration+i.easing,e?(e=o[a],i=o[a+"m"],e||(o[a]=e=r.clipRect(t(h,{width:0})),o[a+"m"]=i=r.clipRect(-99,l?-o.plotLeft:-o.plotTop,99,l?o.chartWidth:o.chartHeight)),s.group.clip(e),s.markerGroup.clip(i),s.sharedClipKey=a):((e=o[a])&&(e.animate({width:o.plotSizeX},i),o[a+"m"].animate({width:o.plotSizeX+99},i)),s.animate=null,s.animationTimeout=setTimeout(function(){s.afterAnimate()},i.duration))},afterAnimate:function(){var t=this.chart,e=this.sharedClipKey,i=this.group;i&&this.options.clip!==!1&&(i.clip(t.clipRect),this.markerGroup.clip()),setTimeout(function(){e&&t[e]&&(t[e]=t[e].destroy(),t[e+"m"]=t[e+"m"].destroy())},100)},drawPoints:function(){var e,i,s,n,o,r,a,h,l,c,d=this.points,p=this.chart,g=this.options.marker,f=this.markerGroup;if(g.enabled||this._hasPointMarkers)for(n=d.length;n--;)o=d[n],i=o.plotX,s=o.plotY,l=o.graphic,a=o.marker||{},e=g.enabled&&a.enabled===N||a.enabled,c=p.isInsidePlot(i,s,p.inverted),e&&s!==N&&!isNaN(s)?(e=o.pointAttr[o.selected?"select":""],r=e.r,a=u(a.symbol,this.symbol),h=0===a.indexOf("url"),l?l.attr({visibility:c?Ae?"inherit":"visible":"hidden"}).animate(t({x:i-r,y:s-r},l.symbolName?{width:2*r,height:2*r}:{})):c&&(r>0||h)&&(o.graphic=p.renderer.symbol(a,i-r,s-r,2*r,2*r).attr(e).add(f))):l&&(o.graphic=l.destroy())},convertAttribs:function(t,e,i,s){var n,o,r=this.pointAttrToOptions,a={},t=t||{},e=e||{},i=i||{},s=s||{};for(n in r)o=r[n],a[n]=u(t[o],e[n],i[n],s[n]);return a},getAttribs:function(){var e,i,s,n=this,o=hi[n.type].marker?n.options.marker:n.options,r=o.states,a=r.hover,h=n.color,l={stroke:h,fill:h},d=n.points||[],p=[],u=n.pointAttrToOptions;for(n.options.marker?(a.radius=a.radius||o.radius+2,a.lineWidth=a.lineWidth||o.lineWidth+1):a.color=a.color||li(a.color||h).brighten(a.brightness).get(),p[""]=n.convertAttribs(o,l),Je(["hover","select"],function(t){p[t]=n.convertAttribs(r[t],p[""])}),n.pointAttr=p,h=d.length;h--;){if(l=d[h],(o=l.options&&l.options.marker||l.options)&&o.enabled===!1&&(o.radius=0),e=n.options.colorByPoint,l.options)for(s in u)c(o[u[s]])&&(e=!0);e?(o=o||{},i=[],r=o.states||{},e=r.hover=r.hover||{},n.options.marker||(e.color=li(e.color||l.color).brighten(e.brightness||a.brightness).get()),i[""]=n.convertAttribs(t({color:l.color},o),p[""]),i.hover=n.convertAttribs(r.hover,p.hover,i[""]),i.select=n.convertAttribs(r.select,p.select,i[""])):i=p,l.pointAttr=i}},destroy:function(){var t,e,i,s,n,o=this,r=o.chart,a=/AppleWebKit\/533/.test(be),h=o.data||[];for(ni(o,"destroy"),si(o),Je(["xAxis","yAxis"],function(t){(n=o[t])&&(l(n.series,o),n.isDirty=!0)}),o.legendItem&&o.chart.legend.destroyItem(o),e=h.length;e--;)(i=h[e])&&i.destroy&&i.destroy();o.points=null,clearTimeout(o.animationTimeout),Je("area,graph,dataLabelsGroup,group,markerGroup,tracker,trackerGroup".split(","),function(e){o[e]&&(t=a&&"group"===e?"hide":"destroy",o[e][t]())}),r.hoverSeries===o&&(r.hoverSeries=null),l(r.series,o);for(s in o)delete o[s]},drawDataLabels:function(){var t,e,i,s,n=this,o=n.options.dataLabels,r=n.points;(o.enabled||n._hasPointLabels)&&(n.dlProcessOptions&&n.dlProcessOptions(o),s=n.plotGroup("dataLabelsGroup","data-labels",n.visible?"visible":"hidden",6),e=o,Je(r,function(r){var a,h,l=r.dataLabel,d=!0;if(t=r.options&&r.options.dataLabels,a=e.enabled||t&&t.enabled,l&&!a)r.dataLabel=l.destroy();else if(a){if(a=o.rotation,o=ei(e,t),i=o.formatter.call(r.getLabelConfig(),o),o.style.color=u(o.color,o.style.color,n.color,"black"),l)l.attr({text:i}),d=!1;else if(c(i)){l={fill:o.backgroundColor,stroke:o.borderColor,"stroke-width":o.borderWidth,r:o.borderRadius||0,rotation:a,padding:o.padding,zIndex:1};for(h in l)l[h]===N&&delete l[h];l=r.dataLabel=n.chart.renderer[a?"text":"label"](i,0,-999,null,null,null,o.useHTML).attr(l).css(o.style).add(s).shadow(o.shadow)}l&&n.alignDataLabel(r,l,o,null,d)}}))},alignDataLabel:function(e,i,s,n,o){var r=this.chart,a=r.inverted,h=u(e.plotX,-999),e=u(e.plotY,-999),l=i.getBBox(),n=t({x:a?r.plotWidth-e:h,y:ce(a?r.plotHeight-h:e),width:0,height:0},n);t(s,{width:l.width,height:l.height}),s.rotation?(n={align:s.align,x:n.x+s.x+n.width/2,y:n.y+s.y+n.height/2},i[o?"attr":"animate"](n)):(i.align(s,null,n),n=i.alignAttr),i.attr({visibility:s.crop===!1||r.isInsidePlot(n.x,n.y)||r.isInsidePlot(h,e,a)?Ae?"inherit":"visible":"hidden"})},getSegmentPath:function(t){var e=this,i=[];return Je(t,function(s,n){e.getPointSpline?i.push.apply(i,e.getPointSpline(t,s,n)):(i.push(n?"L":"M"),n&&e.options.step&&i.push(s.plotX,t[n-1].plotY),i.push(s.plotX,s.plotY))}),i},getGraphPath:function(){var t,e=this,i=[],s=[];return Je(e.segments,function(n){t=e.getSegmentPath(n),n.length>1?i=i.concat(t):s.push(n[0])}),e.singlePoints=s,e.graphPath=i},drawGraph:function(){var t=this.options,e=this.graph,i=this.group,s=t.lineColor||this.color,n=t.lineWidth,o=t.dashStyle,r=this.getGraphPath();e?(ai(e),e.animate({d:r})):n&&(e={stroke:s,"stroke-width":n,zIndex:1},o&&(e.dashstyle=o),this.graph=this.chart.renderer.path(r).attr(e).add(i).shadow(t.shadow))},invertGroups:function(){function t(){var t={width:e.yAxis.len,height:e.xAxis.len};Je(["group","trackerGroup","markerGroup"],function(i){e[i]&&e[i].attr(t).invert()})}var e=this,i=e.chart;ii(i,"resize",t),ii(e,"destroy",function(){si(i,"resize",t)}),t(),e.invertGroups=t},plotGroup:function(t,e,i,s,n){var o=this[t],r=this.chart,a=this.xAxis,h=this.yAxis;return o||(this[t]=o=r.renderer.g(e).attr({visibility:i,zIndex:s||.1}).add(n)),o.translate(a?a.left:r.plotLeft,h?h.top:r.plotTop),o},render:function(){var t,e=this.chart,i=this.options,s=i.animation&&!!this.animate,n=this.visible?"visible":"hidden",o=i.zIndex,r=this.hasRendered,a=e.seriesGroup;t=this.plotGroup("group","series",n,o,a),this.markerGroup=this.plotGroup("markerGroup","markers",n,o,a),s&&this.animate(!0),this.getAttribs(),t.inverted=e.inverted,this.drawGraph&&this.drawGraph(),this.drawPoints(),this.drawDataLabels(),this.options.enableMouseTracking!==!1&&this.drawTracker(),e.inverted&&this.invertGroups(),i.clip!==!1&&!this.sharedClipKey&&!r&&(t.clip(e.clipRect),this.trackerGroup&&this.trackerGroup.clip(e.clipRect)),s?this.animate():r||this.afterAnimate(),this.isDirty=this.isDirtyData=!1,this.hasRendered=!0},redraw:function(){var t=this.chart,e=this.isDirtyData,i=this.group;i&&(t.inverted&&i.attr({width:t.plotWidth,height:t.plotHeight}),i.animate({translateX:this.xAxis.left,translateY:this.yAxis.top})),this.translate(),this.setTooltipPoints(!0),this.render(),e&&ni(this,"updatedData")},setState:function(t){var e=this.options,i=this.graph,s=e.states,e=e.lineWidth,t=t||"";this.state!==t&&(this.state=t,s[t]&&s[t].enabled===!1||(t&&(e=s[t].lineWidth||e+1),i&&!i.dashstyle&&i.attr({"stroke-width":e},t?0:500)))},setVisible:function(t,e){var i,s=this.chart,n=this.legendItem,o=this.group,r=this.tracker,a=this.dataLabelsGroup,h=this.markerGroup,l=this.points,c=s.options.chart.ignoreHiddenSeries;if(i=this.visible,i=(this.visible=t=t===N?!i:t)?"show":"hide",o&&o[i](),h&&h[i](),r)r[i]();else if(l)for(o=l.length;o--;)r=l[o],r.tracker&&r.tracker[i]();a&&a[i](),n&&s.legend.colorizeItem(this,t),this.isDirty=!0,this.options.stacking&&Je(s.series,function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)}),c&&(s.isDirtyBox=!0),e!==!1&&s.redraw(),ni(this,i)},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(t){this.selected=t=t===N?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),ni(this,t?"select":"unselect")},drawTracker:function(){var t,e=this,i=e.options,s=i.trackByArea,n=[].concat(s?e.areaPath:e.graphPath),o=n.length,r=e.chart,a=r.renderer,h=r.options.tooltip.snap,l=e.tracker,c=i.cursor,c=c&&{cursor:c},d=e.singlePoints,p=this.isCartesian&&this.plotGroup("trackerGroup",null,"visible",i.zIndex||1,r.trackerGroup);if(o&&!s)for(t=o+1;t--;)"M"===n[t]&&n.splice(t+1,0,n[t+1]-h,n[t+2],"L"),(t&&"M"===n[t]||t===o)&&n.splice(t,0,"L",n[t-2]+h,n[t-1]);for(t=0;t<d.length;t++)o=d[t],n.push("M",o.plotX-h,o.plotY,"L",o.plotX+h,o.plotY);l?l.attr({d:n}):e.tracker=a.path(n).attr({isTracker:!0,"stroke-linejoin":"bevel",visibility:e.visible?"visible":"hidden",stroke:He,fill:s?He:Oe,"stroke-width":i.lineWidth+(s?0:2*h)}).on(Ie?"touchstart":"mouseover",function(){r.hoverSeries!==e&&e.onMouseOver()}).on("mouseout",function(){i.stickyTracking||e.onMouseOut()}).css(c).add(p)}},Ue=m(mi),Ve.line=Ue,hi.area=ei(Ze,{threshold:0}),Ue=m(mi,{type:"area",getSegmentPath:function(t){var e,i=mi.prototype.getSegmentPath.call(this,t),s=[].concat(i),n=this.options;if(3===i.length&&s.push("L",i[1],i[2]),n.stacking&&!this.closedStacks)for(e=t.length-1;e>=0;e--)e<t.length-1&&n.step&&s.push(t[e+1].plotX,t[e].yBottom),s.push(t[e].plotX,t[e].yBottom);else this.closeSegment(s,t);return this.areaPath=this.areaPath.concat(s),i},closeSegment:function(t,e){var i=this.yAxis.getThreshold(this.options.threshold);t.push("L",e[e.length-1].plotX,i,"L",e[0].plotX,i)},drawGraph:function(){this.areaPath=[],mi.prototype.drawGraph.apply(this);var t=this.areaPath,e=this.options,i=this.area;i?i.animate({d:t}):this.area=this.chart.renderer.path(t).attr({fill:u(e.fillColor,li(this.color).setOpacity(e.fillOpacity||.75).get()),zIndex:0}).add(this.group)},drawLegendSymbol:function(t,e){e.legendSymbol=this.chart.renderer.rect(0,t.baseline-11,t.options.symbolWidth,12,2).attr({zIndex:3}).add(e.legendGroup)}}),Ve.area=Ue,hi.spline=ei(Ze),pi=m(mi,{type:"spline",getPointSpline:function(t,e,i){var s,n,o,r,a=e.plotX,h=e.plotY,l=t[i-1],c=t[i+1];if(l&&c){t=l.plotY,o=c.plotX;var d,c=c.plotY;s=(1.5*a+l.plotX)/2.5,n=(1.5*h+t)/2.5,o=(1.5*a+o)/2.5,r=(1.5*h+c)/2.5,d=(r-n)*(o-a)/(o-s)+h-r,n+=d,r+=d,n>t&&n>h?(n=ue(t,h),r=2*h-n):t>n&&h>n&&(n=ge(t,h),r=2*h-n),r>c&&r>h?(r=ue(c,h),n=2*h-r):c>r&&h>r&&(r=ge(c,h),n=2*h-r),e.rightContX=o,e.rightContY=r}return i?(e=["C",l.rightContX||l.plotX,l.rightContY||l.plotY,s||a,n||h,a,h],l.rightContX=l.rightContY=null):e=["M",a,h],e}}),Ve.spline=pi,hi.areaspline=ei(hi.area);var vi=Ue.prototype,pi=m(pi,{type:"areaspline",closedStacks:!0,getSegmentPath:vi.getSegmentPath,closeSegment:vi.closeSegment,drawGraph:vi.drawGraph});Ve.areaspline=pi,hi.column=ei(Ze,{borderColor:"#FFFFFF",borderWidth:1,borderRadius:0,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{brightness:.1,shadow:!1},select:{color:"#C0C0C0",borderColor:"#000000",shadow:!1}},dataLabels:{align:null,verticalAlign:null,y:null},threshold:0}),pi=m(mi,{type:"column",tooltipOutsidePlot:!0,pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color",r:"borderRadius"},init:function(){mi.prototype.init.apply(this,arguments);var t=this,e=t.chart;e.hasRendered&&Je(e.series,function(e){e.type===t.type&&(e.isDirty=!0)})},translate:function(){var t,e,i=this,s=i.chart,n=i.options,o=n.stacking,r=n.borderWidth,a=0,h=i.xAxis,l=h.reversed,d={};mi.prototype.translate.apply(i),n.grouping===!1?a=1:Je(s.series,function(s){var n=s.options;s.type===i.type&&s.visible&&i.options.group===n.group&&(n.stacking?(t=s.stackKey,d[t]===N&&(d[t]=a++),e=d[t]):n.grouping!==!1&&(e=a++),s.columnIndex=e)});var p=i.points,h=fe(h.transA)*(h.ordinalSlope||n.pointRange||h.closestPointRange||1),g=h*n.groupPadding,f=(h-2*g)/a,m=n.pointWidth,v=c(m)?(f-m)/2:f*n.pointPadding,x=u(m,f-2*v),y=pe(ue(x,1+2*r)),b=v+(g+((l?a-i.columnIndex:i.columnIndex)||0)*f-h/2)*(l?-1:1),k=i.translatedThreshold=i.yAxis.getThreshold(n.threshold),w=u(n.minPointLength,5);Je(p,function(t){var e=t.plotY,n=u(t.yBottom,k),a=t.plotX+b,h=pe(ge(e,n)),l=pe(ue(e,n)-h),c=i.yAxis.stacks[(t.y<0?"-":"")+i.stackKey];o&&i.visible&&c&&c[t.x]&&c[t.x].setOffset(b,y),fe(l)<w&&w&&(l=w,h=fe(h-k)>w?n-w:k-(k>=e?w:0)),t.barX=a,t.pointWidth=x,t.shapeType="rect",t.shapeArgs=e=s.renderer.Element.prototype.crisp.call(0,r,a,h,y,l),r%2&&(e.y-=1,e.height+=1),t.trackerArgs=fe(l)<3&&ei(t.shapeArgs,{height:6,y:h-3})})},getSymbol:ze,drawLegendSymbol:Ue.prototype.drawLegendSymbol,drawGraph:ze,drawPoints:function(){var t,e=this,i=e.options,s=e.chart.renderer;Je(e.points,function(n){var o=n.plotY,r=n.graphic;o===N||isNaN(o)||null===n.y?r&&(n.graphic=r.destroy()):(t=n.shapeArgs,r?(ai(r),r.animate(ei(t))):n.graphic=s[n.shapeType](t).attr(n.pointAttr[n.selected?"select":""]).add(e.group).shadow(i.shadow,null,i.stacking&&!i.borderRadius))})},drawTracker:function(){var t,e,i,s,n,o=this,r=o.chart,a=r.renderer,h=+new Date,l=o.options,c=l.cursor,p=c&&{cursor:c},u=o.isCartesian&&o.plotGroup("trackerGroup",null,"visible",l.zIndex||1,r.trackerGroup);Je(o.points,function(c){e=c.tracker,t=c.trackerArgs||c.shapeArgs,s=c.plotY,n=!o.isCartesian||s!==N&&!isNaN(s),delete t.strokeWidth,null!==c.y&&n&&(e?e.attr(t):c.tracker=a[c.shapeType](t).attr({isTracker:h,fill:He,visibility:o.visible?"visible":"hidden"}).on(Ie?"touchstart":"mouseover",function(t){i=t.relatedTarget||t.fromElement,r.hoverSeries!==o&&d(i,"isTracker")!==h&&o.onMouseOver(),c.onMouseOver()}).on("mouseout",function(t){l.stickyTracking||(i=t.relatedTarget||t.toElement,d(i,"isTracker")===h)||o.onMouseOut()}).css(p).add(c.group||u))})},alignDataLabel:function(t,e,i,s,n){var o=this.chart,r=o.inverted,a=t.below||t.plotY>(this.translatedThreshold||o.plotSizeY),h=this.options.stacking||i.inside;t.shapeArgs&&(s=ei(t.shapeArgs),r&&(s={x:o.plotWidth-s.y-s.height,y:o.plotHeight-s.x-s.width,width:s.height,height:s.width}),!h)&&(r?(s.x+=a?0:s.width,s.width=0):(s.y+=a?s.height:0,s.height=0)),i.align=u(i.align,!r||h?"center":a?"right":"left"),i.verticalAlign=u(i.verticalAlign,r||h?"middle":a?"top":"bottom"),mi.prototype.alignDataLabel.call(this,t,e,i,s,n)},animate:function(t){var e=this,i=e.points,s=e.options;t||(Je(i,function(t){var i=t.graphic,t=t.shapeArgs,n=e.yAxis,o=s.threshold;i&&(i.attr({height:0,y:c(o)?n.getThreshold(o):n.translate(n.getExtremes().min,0,1,0,1)}),i.animate({height:t.height,y:t.y},s.animation))}),e.animate=null)},remove:function(){var t=this,e=t.chart;e.hasRendered&&Je(e.series,function(e){e.type===t.type&&(e.isDirty=!0)}),mi.prototype.remove.apply(t,arguments)}}),Ve.column=pi,hi.bar=ei(hi.column),vi=m(pi,{type:"bar",inverted:!0}),Ve.bar=vi,hi.scatter=ei(Ze,{lineWidth:0,states:{hover:{lineWidth:0}},tooltip:{headerFormat:'<span style="font-size: 10px; color:{series.color}">{series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}),vi=m(mi,{type:"scatter",sorted:!1,translate:function(){var t=this;mi.prototype.translate.apply(t),Je(t.points,function(e){e.shapeType="circle",e.shapeArgs={x:e.plotX,y:e.plotY,r:t.chart.options.tooltip.snap}})},drawTracker:function(){for(var t,e=this,i=e.options.cursor,i=i&&{cursor:i},s=e.points,n=s.length;n--;)(t=s[n].graphic)&&(t.element._i=n);e._hasTracking?e._hasTracking=!0:e.markerGroup.attr({isTracker:!0}).on(Ie?"touchstart":"mouseover",function(t){e.onMouseOver(),t.target._i!==N&&s[t.target._i].onMouseOver()}).on("mouseout",function(){e.options.stickyTracking||e.onMouseOut()}).css(i)}}),Ve.scatter=vi,hi.pie=ei(Ze,{borderColor:"#FFFFFF",borderWidth:1,center:["50%","50%"],colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.name}},legendType:"point",marker:null,size:"75%",showInLegend:!1,slicedOffset:10,states:{hover:{brightness:.1,shadow:!1}}}),ze={type:"pie",isCartesian:!1,pointClass:m(fi,{init:function(){fi.prototype.init.apply(this,arguments);var e,i=this;return t(i,{visible:i.visible!==!1,name:u(i.name,"Slice")}),e=function(){i.slice()},ii(i,"select",e),ii(i,"unselect",e),i},setVisible:function(t){var e,i=this.series,s=i.chart,n=this.tracker,o=this.dataLabel,r=this.connector,a=this.shadowGroup;e=(this.visible=t=t===N?!this.visible:t)?"show":"hide",this.group[e](),n&&n[e](),o&&o[e](),r&&r[e](),a&&a[e](),this.legendItem&&s.legend.colorizeItem(this,t),!i.isDirty&&i.options.ignoreHiddenPoint&&(i.isDirty=!0,s.redraw())},slice:function(t,e,i){var s=this.series.chart,n=this.slicedTranslation;I(i,s),u(e,!0),t=this.sliced=c(t)?t:!this.sliced,t={translateX:t?n[0]:s.plotLeft,translateY:t?n[1]:s.plotTop},this.group.animate(t),this.shadowGroup&&this.shadowGroup.animate(t)}}),pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color"},getColor:function(){this.initialColor=this.chart.counters.color},animate:function(){var t=this;Je(t.points,function(e){var i=e.graphic,e=e.shapeArgs,s=-xe/2;i&&(i.attr({r:0,start:s,end:s}),i.animate({r:e.r,start:e.start,end:e.end},t.options.animation))}),t.animate=null},setData:function(t,e){mi.prototype.setData.call(this,t,!1),this.processData(),this.generatePoints(),u(e,!0)&&this.chart.redraw()},getCenter:function(){var t,e=this.options,s=this.chart,n=s.plotWidth,o=s.plotHeight,e=e.center.concat([e.size,e.innerSize||0]),r=ge(n,o);return ti(e,function(e,s){return(t=/%$/.test(e))?[n,o,r,r][s]*i(e)/100:e})},translate:function(){this.generatePoints();var t,e,i,s,n,o,r=0,a=-.25,h=this.options,l=h.slicedOffset,c=l+h.borderWidth,d=this.chart,p=this.points,u=2*xe,g=h.dataLabels.distance,f=h.ignoreHiddenPoint,m=p.length;for(this.center=t=this.getCenter(),this.getX=function(e,i){return s=le.asin((e-t[1])/(t[2]/2+g)),t[0]+(i?-1:1)*me(s)*(t[2]/2+g)},n=0;m>n;n++)o=p[n],r+=f&&!o.visible?0:o.y;for(n=0;m>n;n++)o=p[n],h=r?o.y/r:0,e=ce(1e3*a*u)/1e3,(!f||o.visible)&&(a+=h),i=ce(1e3*a*u)/1e3,o.shapeType="arc",o.shapeArgs={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:e,end:i},s=(i+e)/2,o.slicedTranslation=ti([me(s)*l+d.plotLeft,ve(s)*l+d.plotTop],ce),e=me(s)*t[2]/2,i=ve(s)*t[2]/2,o.tooltipPos=[t[0]+.7*e,t[1]+.7*i],o.labelPos=[t[0]+e+me(s)*g,t[1]+i+ve(s)*g,t[0]+e+me(s)*c,t[1]+i+ve(s)*c,t[0]+e,t[1]+i,0>g?"center":u/4>s?"left":"right",s],o.percentage=100*h,o.total=r;this.setTooltipPoints()},render:function(){this.getAttribs(),this.drawPoints(),this.options.enableMouseTracking!==!1&&this.drawTracker(),this.drawDataLabels(),this.options.animation&&this.animate&&this.animate(),this.isDirty=!1},drawPoints:function(){var e,i,s,n,o,r=this,a=r.chart,h=a.renderer,l=r.options.shadow;Je(r.points,function(c){i=c.graphic,o=c.shapeArgs,s=c.group,n=c.shadowGroup,l&&!n&&(n=c.shadowGroup=h.g("shadow").attr({zIndex:4}).add()),s||(s=c.group=h.g("point").attr({zIndex:5}).add()),e=c.sliced?c.slicedTranslation:[a.plotLeft,a.plotTop],s.translate(e[0],e[1]),n&&n.translate(e[0],e[1]),i?i.animate(o):c.graphic=i=h.arc(o).setRadialReference(r.center).attr(t(c.pointAttr[""],{"stroke-linejoin":"round"})).add(c.group).shadow(l,n),c.visible===!1&&c.setVisible(!1)})},drawDataLabels:function(){var t,e,i,s,n,o,r,a,h=this.data,l=this.chart,c=this.options.dataLabels,d=u(c.connectorPadding,10),p=u(c.connectorWidth,1),g=u(c.softConnector,!0),f=c.distance,m=this.center,v=m[2]/2,x=m[1],y=f>0,b=[[],[]],k=2;if(c.enabled||this._hasPointLabels)for(mi.prototype.drawDataLabels.apply(this),Je(h,function(t){t.dataLabel&&b[t.labelPos[7]<xe/2?0:1].push(t)}),b[1].reverse(),r=function(t,e){return e.y-t.y},h=b[0][0]&&b[0][0].dataLabel&&(b[0][0].dataLabel.getBBox().height||21);k--;){var w,T=[],L=[],P=b[k],S=P.length;if(f>0){for(a=x-v-f;x+v+f>=a;a+=h)T.push(a);if(o=T.length,S>o){for(i=[].concat(P),i.sort(r),a=S;a--;)i[a].rank=a;for(a=S;a--;)P[a].rank>=o&&P.splice(a,1);S=P.length}for(a=0;S>a;a++){for(t=P[a],i=t.labelPos,t=9999,n=0;o>n;n++)e=fe(T[n]-i[1]),t>e&&(t=e,w=n);if(a>w&&null!==T[a])w=a;else for(S-a+w>o&&null!==T[a]&&(w=o-S+a);null===T[w];)w++;L.push({i:w,y:T[w]}),T[w]=null}L.sort(r)}for(a=0;S>a;a++)t=P[a],i=t.labelPos,e=t.dataLabel,o=t.visible===!1?"hidden":"visible",s=i[1],f>0?(n=L.pop(),w=n.i,n=n.y,(s>n&&null!==T[w+1]||n>s&&null!==T[w-1])&&(n=s)):n=s,s=c.justify?m[0]+(k?-1:1)*(v+f):this.getX(0===w||w===T.length-1?s:n,k),e.attr({visibility:o,align:i[6]})[e.moved?"animate":"attr"]({x:s+c.x+({left:d,right:-d}[i[6]]||0),y:n+c.y-10}),e.moved=!0,y&&p&&(e=t.connector,i=g?["M",s+("left"===i[6]?5:-5),n,"C",s,n,2*i[2]-i[4],2*i[3]-i[5],i[2],i[3],"L",i[4],i[5]]:["M",s+("left"===i[6]?5:-5),n,"L",i[2],i[3],"L",i[4],i[5]],e?(e.animate({d:i}),e.attr("visibility",o)):t.connector=e=this.chart.renderer.path(i).attr({"stroke-width":p,stroke:c.connectorColor||t.color||"#606060",visibility:o,zIndex:3}).translate(l.plotLeft,l.plotTop).add())}},alignDataLabel:ze,drawTracker:pi.prototype.drawTracker,drawLegendSymbol:Ue.prototype.drawLegendSymbol,getSymbol:function(){}},ze=m(mi,ze),Ve.pie=ze,t(Highcharts,{Axis:H,CanVGRenderer:ui,Chart:X,Color:li,Legend:G,MouseTracker:E,Point:fi,Tick:z,Tooltip:W,Renderer:F,Series:mi,SVGRenderer:ci,VMLRenderer:di,dateFormat:V,pathAnim:U,getOptions:function(){return j},hasBidiBug:Me,numberFormat:v,seriesTypes:Ve,setOptions:function(t){return j=ei(j,t),B(),j},addEvent:ii,removeEvent:si,createElement:f,discardElement:A,css:g,each:Je,extend:t,map:ti,merge:ei,pick:u,splat:p,extendClass:m,pInt:i,wrap:function(t,e,i){var s=t[e];t[e]=function(){var t=Array.prototype.slice.call(arguments);return t.unshift(s),i.apply(this,t)}},svg:Ae,canvas:Ce,vml:!Ae&&!Ce,product:"Highcharts",version:"2.3.3"})}(),window.Highcharts});
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @license Highcharts JS v2.3.3 (2012-10-04)
3
+ *
4
+ * (c) 2009-2011 Torstein Hønsi
5
+ *
6
+ * License: www.highcharts.com/license
7
+ */
8
+
9
+ !function(){function t(t,e){var i;t||(t={});for(i in e)t[i]=e[i];return t}function e(){for(var t=0,e=arguments,i=e.length,n={};i>t;t++)n[e[t++]]=e[t];return n}function i(t,e){return parseInt(t,e||10)}function n(t){return"string"==typeof t}function r(t){return"object"==typeof t}function o(t){return"[object Array]"===Object.prototype.toString.call(t)}function a(t){return"number"==typeof t}function s(t){return ue.log(t)/ue.LN10}function l(t){return ue.pow(10,t)}function h(t,e){for(var i=t.length;i--;)if(t[i]===e){t.splice(i,1);break}}function c(t){return t!==V&&null!==t}function d(t,e,i){var o,a,s="setAttribute";if(n(e))c(i)?t[s](e,i):t&&t.getAttribute&&(a=t.getAttribute(e));else if(c(e)&&r(e))for(o in e)t[s](o,e[o]);return a}function p(t){return o(t)?t:[t]}function u(){var t,e,i=arguments,n=i.length;for(t=0;n>t;t++)if(e=i[t],"undefined"!=typeof e&&null!==e)return e}function g(e,i){Se&&i&&i.opacity!==V&&(i.filter="alpha(opacity="+100*i.opacity+")"),t(e.style,i)}function f(e,i,n,r,o){var a=de.createElement(e);return i&&t(a,i),o&&g(a,{padding:0,border:Ve,margin:0}),n&&g(a,n),r&&r.appendChild(a),a}function m(e,i){var n=function(){};return n.prototype=new e,t(n.prototype,i),n}function v(t){return t=(t||0).toString(),t.indexOf(".")>-1?t.split(".")[1].length:0}function y(t,e,n,r){var o=_.lang,a=t,s=-1===e?v(t):isNaN(e=xe(e))?2:e,l=void 0===n?o.decimalPoint:n,h=void 0===r?o.thousandsSep:r,c=0>a?"-":"",d=String(i(a=xe(+a||0).toFixed(s))),p=d.length>3?d.length%3:0;return c+(p?d.substr(0,p)+h:"")+d.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+h)+(s?l+xe(a-d).toFixed(s).slice(2):"")}function x(t,e){return new Array((e||2)+1-String(t).length).join(0)+t}function b(t,e,i){var n=t[e];t[e]=function(){var t=Array.prototype.slice.call(arguments);return t.unshift(n),i.apply(this,t)}}function k(t,e,i,n){var r,o;for(i=u(i,1),r=t/i,e||(e=[1,2,2.5,5,10],n&&n.allowDecimals===!1&&(1===i?e=[1,2,5,10]:.1>=i&&(e=[1/i]))),o=0;o<e.length&&(t=e[o],!(r<=(e[o]+(e[o+1]||e[o]))/2));o++);return t*=i}function w(t,e){var i,n,r=e||[[qe,[1,2,5,10,20,25,50,100,200,500]],[Qe,[1,2,5,10,15,30]],[ti,[1,2,5,10,15,30]],[ei,[1,2,3,4,6,8,12]],[ii,[1,2]],[ni,[1,2]],[ri,[1,2,3,4,6]],[oi,null]],o=r[r.length-1],a=q[o[0]],s=o[1];for(n=0;n<r.length;n++)if(o=r[n],a=q[o[0]],s=o[1],r[n+1]){var l=(a*s[s.length-1]+q[r[n+1][0]])/2;if(l>=t)break}return a===q[oi]&&5*a>t&&(s=[1,2,5]),a===q[oi]&&5*a>t&&(s=[1,2,5]),i=k(t/a,s),{unitRange:a,count:i,unitName:o[0]}}function T(e,i,n,r){var o,a,s=[],l={},h=_.global.useUTC,c=new Date(i),d=e.unitRange,p=e.count;d>=q[Qe]&&(c.setMilliseconds(0),c.setSeconds(d>=q[ti]?0:p*fe(c.getSeconds()/p))),d>=q[ti]&&c[ae](d>=q[ei]?0:p*fe(c[te]()/p)),d>=q[ei]&&c[se](d>=q[ii]?0:p*fe(c[ee]()/p)),d>=q[ii]&&c[le](d>=q[ri]?1:p*fe(c[ne]()/p)),d>=q[ri]&&(c[he](d>=q[oi]?0:p*fe(c[re]()/p)),a=c[oe]()),d>=q[oi]&&(a-=a%p,c[ce](a)),d===q[ni]&&c[le](c[ne]()-c[ie]()+u(r,1)),o=1,a=c[oe]();for(var g=c.getTime(),f=c[re](),m=c[ne](),v=h?0:(864e5+1e3*60*c.getTimezoneOffset())%864e5;n>g;)s.push(g),d===q[oi]?g=Q(a+o*p,0):d===q[ri]?g=Q(a,f+o*p):h||d!==q[ii]&&d!==q[ni]?(g+=d*p,d<=q[ei]&&g%q[ii]===v&&(l[g]=ii)):g=Q(a,f,m+o*p*(d===q[ii]?1:7)),o++;return s.push(g),s.info=t(e,{higherRanks:l,totalRange:d*p}),s}function L(){this.color=0,this.symbol=0}function P(t,e){var i,n,r=t.length;for(n=0;r>n;n++)t[n].ss_i=n;for(t.sort(function(t,n){return i=e(t,n),0===i?t.ss_i-n.ss_i:i}),n=0;r>n;n++)delete t[n].ss_i}function S(t){for(var e=t.length,i=t[0];e--;)t[e]<i&&(i=t[e]);return i}function A(t){for(var e=t.length,i=t[0];e--;)t[e]>i&&(i=t[e]);return i}function C(t,e){var i;for(i in t)t[i]&&t[i]!==e&&t[i].destroy&&t[i].destroy(),delete t[i]}function M(t){U||(U=f(Ee)),t&&U.appendChild(t),U.innerHTML=""}function I(t,e){var i="Highcharts error #"+t+": www.highcharts.com/errors/"+t;if(e)throw i;pe.console&&console.log(i)}function B(t){return parseFloat(t.toPrecision(14))}function D(t,e){$=u(t,e.animation)}function z(){var t=_.global.useUTC,e=t?"getUTC":"get",i=t?"setUTC":"set";Q=t?Date.UTC:function(t,e,i,n,r,o){return new Date(t,e,u(i,1),u(n,0),u(r,0),u(o,0)).getTime()},te=e+"Minutes",ee=e+"Hours",ie=e+"Day",ne=e+"Date",re=e+"Month",oe=e+"FullYear",ae=i+"Minutes",se=i+"Hours",le=i+"Date",he=i+"Month",ce=i+"FullYear"}function O(t){return _=ki(_,t),z(),_}function R(){return _}function H(){}function W(t,e,i){this.axis=t,this.pos=e,this.type=i||"",this.isNew=!0,i||this.addLabel()}function E(t,e){return this.axis=t,e&&(this.options=e,this.id=e.id),this}function G(t,e,i,n,r,o){var a=t.chart.inverted;this.axis=t,this.isNegative=i,this.options=e,this.x=n,this.stack=r,this.percent="percent"===o,this.alignOptions={align:e.align||(a?i?"left":"right":"center"),verticalAlign:e.verticalAlign||(a?"middle":i?"bottom":"top"),y:u(e.y,a?4:i?14:-6),x:u(e.x,a?i?-6:6:0)},this.textAlign=e.textAlign||(a?i?"right":"left":"center")}function X(){this.init.apply(this,arguments)}function N(t,e){var n=e.borderWidth,r=e.style,o=i(r.padding);this.chart=t,this.options=e,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.label=t.renderer.label("",0,0,e.shape,null,null,e.useHTML,null,"tooltip").attr({padding:o,fill:e.backgroundColor,"stroke-width":n,r:e.borderRadius,zIndex:8}).css(r).css({padding:0}).hide().add(),ze||this.label.shadow(e.shadow),this.shared=e.shared}function F(t,e){var i=ze?"":e.chart.zoomType;this.zoomX=/x/.test(i),this.zoomY=/y/.test(i),this.options=e,this.chart=t,this.init(t,e.tooltip)}function Y(t){this.init(t)}function j(t,e){var i,n=t.series;t.series=null,i=ki(_,t),i.series=t.series=n;var o=i.chart,a=o.margin,s=r(a)?a:[a,a,a,a];this.optionsMarginTop=u(o.marginTop,s[0]),this.optionsMarginRight=u(o.marginRight,s[1]),this.optionsMarginBottom=u(o.marginBottom,s[2]),this.optionsMarginLeft=u(o.marginLeft,s[3]);var l=o.events;this.runChartClick=l&&!!l.click,this.callback=e,this.isResizing=0,this.options=i,this.axes=[],this.series=[],this.hasCartesianSeries=o.showAxes,this.init(l)}var V,Z,U,_,K,$,J,q,Q,te,ee,ie,ne,re,oe,ae,se,le,he,ce,de=document,pe=window,ue=Math,ge=ue.round,fe=ue.floor,me=ue.ceil,ve=ue.max,ye=ue.min,xe=ue.abs,be=ue.cos,ke=ue.sin,we=ue.PI,Te=2*we/360,Le=navigator.userAgent,Pe=pe.opera,Se=/msie/i.test(Le)&&!Pe,Ae=8===de.documentMode,Ce=/AppleWebKit/.test(Le),Me=/Firefox/.test(Le),Ie="http://www.w3.org/2000/svg",Be=!!de.createElementNS&&!!de.createElementNS(Ie,"svg").createSVGRect,De=Me&&parseInt(Le.split("Firefox/")[1],10)<4,ze=!Be&&!Se&&!!de.createElement("canvas").getContext,Oe=de.documentElement.ontouchstart!==V,Re={},He=0,We=function(){},Ee="div",Ge="absolute",Xe="relative",Ne="hidden",Fe="highcharts-",Ye="visible",je="px",Ve="none",Ze="M",Ue="L",_e="rgba(192,192,192,"+(Be?1e-6:.002)+")",Ke="",$e="hover",Je="select",qe="millisecond",Qe="second",ti="minute",ei="hour",ii="day",ni="week",ri="month",oi="year",ai="fill",si="linearGradient",li="stops",hi="stroke",ci="stroke-width",di={};pe.Highcharts={},K=function(t,e,i){if(!c(e)||isNaN(e))return"Invalid date";t=u(t,"%Y-%m-%d %H:%M:%S");var n,r=new Date(e),o=r[ee](),a=r[ie](),s=r[ne](),l=r[re](),h=r[oe](),d=_.lang,p=d.weekdays,g={a:p[a].substr(0,3),A:p[a],d:x(s),e:s,b:d.shortMonths[l],B:d.months[l],m:x(l+1),y:h.toString().substr(2,2),Y:h,H:x(o),I:x(o%12||12),l:o%12||12,M:x(r[te]()),p:12>o?"AM":"PM",P:12>o?"am":"pm",S:x(r.getSeconds()),L:x(ge(e%1e3),3)};for(n in g)t=t.replace("%"+n,g[n]);return i?t.substr(0,1).toUpperCase()+t.substr(1):t},L.prototype={wrapColor:function(t){this.color>=t&&(this.color=0)},wrapSymbol:function(t){this.symbol>=t&&(this.symbol=0)}},q=e(qe,1,Qe,1e3,ti,6e4,ei,36e5,ii,864e5,ni,6048e5,ri,2592e6,oi,31556952e3),J={init:function(t,e,i){e=e||"";var n,r,o,a,s,l=t.shift,h=e.indexOf("C")>-1,c=h?7:3,d=e.split(" "),p=[].concat(i),u=function(t){for(o=t.length;o--;)t[o]===Ze&&t.splice(o+1,0,t[o+1],t[o+2],t[o+1],t[o+2])};if(h&&(u(d),u(p)),t.isArea&&(a=d.splice(d.length-6,6),s=p.splice(p.length-6,6)),l<=p.length/c)for(;l--;)p=[].concat(p).splice(0,c).concat(p);if(t.shift=0,d.length)for(n=p.length;d.length<n;)r=[].concat(d).splice(d.length-c,c),h&&(r[c-6]=r[c-2],r[c-5]=r[c-1]),d=d.concat(r);return a&&(d=d.concat(a),p=p.concat(s)),[d,p]},step:function(t,e,i,n){var r,o=[],a=t.length;if(1===i)o=n;else if(a===e.length&&1>i)for(;a--;)r=parseFloat(t[a]),o[a]=isNaN(r)?t[a]:i*parseFloat(e[a]-r)+r;else o=e;return o}},function(e){pe.HighchartsAdapter=pe.HighchartsAdapter||e&&{init:function(t){var i,n=e.fx,r=n.step,o=e.Tween,a=o&&o.propHooks;e.extend(e.easing,{easeOutQuad:function(t,e,i,n,r){return-n*(e/=r)*(e-2)+i}}),e.each(["cur","_default","width","height"],function(t,e){var i,s,l=r;"cur"===e?l=n.prototype:"_default"===e&&o&&(l=a[e],e="set"),i=l[e],i&&(l[e]=function(n){return n=t?n:this,s=n.elem,s.attr?s.attr(n.prop,"cur"===e?V:n.now):i.apply(this,arguments)})}),i=function(e){var i,n=e.elem;e.started||(i=t.init(n,n.d,n.toD),e.start=i[0],e.end=i[1],e.started=!0),n.attr("d",t.step(e.start,e.end,e.pos,n.toD))},o?a.d={set:i}:r.d=i,this.each=Array.prototype.forEach?function(t,e){return Array.prototype.forEach.call(t,e)}:function(t,e){for(var i=0,n=t.length;n>i;i++)if(e.call(t[i],t[i],i,t)===!1)return i}},getScript:e.getScript,inArray:e.inArray,adapterRun:function(t,i){return e(t)[i]()},grep:e.grep,map:function(t,e){for(var i=[],n=0,r=t.length;r>n;n++)i[n]=e.call(t[n],t[n],n,t);return i},merge:function(){var t=arguments;return e.extend(!0,null,t[0],t[1],t[2],t[3])},offset:function(t){return e(t).offset()},addEvent:function(t,i,n){e(t).bind(i,n)},removeEvent:function(t,i,n){var r=de.removeEventListener?"removeEventListener":"detachEvent";de[r]&&!t[r]&&(t[r]=function(){}),e(t).unbind(i,n)},fireEvent:function(i,n,r,o){var a,s=e.Event(n),l="detached"+n;!Se&&r&&(delete r.layerX,delete r.layerY),t(s,r),i[n]&&(i[l]=i[n],i[n]=null),e.each(["preventDefault","stopPropagation"],function(t,e){var i=s[e];s[e]=function(){try{i.call(s)}catch(t){"preventDefault"===e&&(a=!0)}}}),e(i).trigger(s),i[l]&&(i[n]=i[l],i[l]=null),!o||s.isDefaultPrevented()||a||o(s)},washMouseEvent:function(t){var e=t.originalEvent||t;return e.pageX===V&&(e.pageX=t.pageX,e.pageY=t.pageY),e},animate:function(t,i,n){var r=e(t);i.d&&(t.toD=i.d,i.d=1),r.stop(),r.animate(i,n)},stop:function(t){e(t).stop()}}}(pe.jQuery);var pi=pe.HighchartsAdapter,ui=pi||{};pi&&pi.init.call(pi,J);var gi=ui.adapterRun,fi=ui.getScript,mi=ui.inArray,vi=ui.each,yi=ui.grep,xi=ui.offset,bi=ui.map,ki=ui.merge,wi=ui.addEvent,Ti=ui.removeEvent,Li=ui.fireEvent,Pi=ui.washMouseEvent,Si=ui.animate,Ai=ui.stop,Ci={enabled:!0,align:"center",x:0,y:15,style:{color:"#666",fontSize:"11px",lineHeight:"14px"}};_={colors:["#4572A7","#AA4643","#89A54E","#80699B","#3D96AE","#DB843D","#92A8CD","#A47D7C","#B5CA92"],symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",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"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:","},global:{useUTC:!0,canvasToolsURL:"http://code.highcharts.com/2.3.3/modules/canvas-tools.js",VMLRadialGradientURL:"http://code.highcharts.com/2.3.3/gfx/vml-radial-gradient.png"},chart:{borderColor:"#4572A7",borderRadius:5,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacingTop:10,spacingRight:10,spacingBottom:15,spacingLeft:10,style:{fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif',fontSize:"12px"},backgroundColor:"#FFFFFF",plotBorderColor:"#C0C0C0",resetZoomButton:{theme:{zIndex:20},position:{align:"right",x:-10,y:10}}},title:{text:"Chart title",align:"center",y:15,style:{color:"#3E576F",fontSize:"16px"}},subtitle:{text:"",align:"center",y:30,style:{color:"#6D869F"}},plotOptions:{line:{allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},events:{},lineWidth:2,shadow:!0,marker:{enabled:!0,lineWidth:0,radius:4,lineColor:"#FFFFFF",states:{hover:{enabled:!0},select:{fillColor:"#FFFFFF",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:ki(Ci,{enabled:!1,formatter:function(){return this.y},verticalAlign:"bottom",y:0}),cropThreshold:300,pointRange:0,showInLegend:!0,states:{hover:{marker:{}},select:{marker:{}}},stickyTracking:!0}},labels:{style:{position:Ge,color:"#3E576F"}},legend:{enabled:!0,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderWidth:1,borderColor:"#909090",borderRadius:5,navigation:{activeColor:"#3E576F",inactiveColor:"#CCC"},shadow:!1,itemStyle:{cursor:"pointer",color:"#3E576F",fontSize:"12px"},itemHoverStyle:{color:"#000"},itemHiddenStyle:{color:"#CCC"},itemCheckboxStyle:{position:Ge,width:"13px",height:"13px"},symbolWidth:16,symbolPadding:5,verticalAlign:"bottom",x:0,y:0},loading:{labelStyle:{fontWeight:"bold",position:Xe,top:"1em"},style:{position:Ge,backgroundColor:"white",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,backgroundColor:"rgba(255, 255, 255, .85)",borderWidth:2,borderRadius:5,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{series.color}">{series.name}</span>: <b>{point.y}</b><br/>',shadow:!0,shared:ze,snap:Oe?25:10,style:{color:"#333333",fontSize:"12px",padding:"5px",whiteSpace:"nowrap"}},credits:{enabled:!0,text:"Highcharts.com",href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#909090",fontSize:"10px"}}};var Mi=_.plotOptions,Ii=Mi.line;z();var Bi=function(t){function e(t){s=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/.exec(t),s?l=[i(s[1]),i(s[2]),i(s[3]),parseFloat(s[4],10)]:(s=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(t),s&&(l=[i(s[1],16),i(s[2],16),i(s[3],16),1]))}function n(e){var i;return i=l&&!isNaN(l[0])?"rgb"===e?"rgb("+l[0]+","+l[1]+","+l[2]+")":"a"===e?l[3]:"rgba("+l.join(",")+")":t}function r(t){if(a(t)&&0!==t){var e;for(e=0;3>e;e++)l[e]+=i(255*t),l[e]<0&&(l[e]=0),l[e]>255&&(l[e]=255)}return this}function o(t){return l[3]=t,this}var s,l=[];return e(t),{get:n,brighten:r,setOpacity:o}};H.prototype={init:function(t,e){var i=this;i.element="span"===e?f(e):de.createElementNS(Ie,e),i.renderer=t,i.attrSetters={}},animate:function(t,e,i){var n=u(e,$,!0);Ai(this),n?(n=ki(n),i&&(n.complete=i),Si(this,t,n)):(this.attr(t),i&&i())},attr:function(t,e){var r,o,a,s,l,h,p,u,g,f=this,m=f.element,v=m.nodeName.toLowerCase(),y=f.renderer,x=f.attrSetters,b=f.shadows,k=f;if(n(t)&&c(e)&&(r=t,t={},t[r]=e),n(t))r=t,"circle"===v?r={x:"cx",y:"cy"}[r]||r:"strokeWidth"===r&&(r="stroke-width"),k=d(m,r)||f[r]||0,"d"!==r&&"visibility"!==r&&(k=parseFloat(k));else for(r in t)if(h=!1,o=t[r],a=x[r]&&x[r].call(f,o,r),a!==!1){if(a!==V&&(o=a),"d"===r)o&&o.join&&(o=o.join(" ")),/(NaN| {2}|^$)/.test(o)&&(o="M 0 0");else if("x"===r&&"text"===v){for(s=0;s<m.childNodes.length;s++)l=m.childNodes[s],d(l,"x")===d(m,"x")&&d(l,"x",o);f.rotation&&d(m,"transform","rotate("+f.rotation+" "+o+" "+i(t.y||d(m,"y"))+")")}else if("fill"===r)o=y.color(o,m,r);else if("circle"!==v||"x"!==r&&"y"!==r)if("rect"===v&&"r"===r)d(m,{rx:o,ry:o}),h=!0;else if("translateX"===r||"translateY"===r||"rotation"===r||"verticalAlign"===r)g=!0,h=!0;else if("stroke"===r)o=y.color(o,m,r);else if("dashstyle"===r){if(r="stroke-dasharray",o=o&&o.toLowerCase(),"solid"===o)o=Ve;else if(o){for(o=o.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(","),s=o.length;s--;)o[s]=i(o[s])*t["stroke-width"];o=o.join(",")}}else"isTracker"===r?f[r]=o:"width"===r?o=i(o):"align"===r?(r="text-anchor",o={left:"start",center:"middle",right:"end"}[o]):"title"===r&&(p=m.getElementsByTagName("title")[0],p||(p=de.createElementNS(Ie,"title"),m.appendChild(p)),p.textContent=o);else r={x:"cx",y:"cy"}[r]||r;if("strokeWidth"===r&&(r="stroke-width"),Ce&&"stroke-width"===r&&0===o&&(o=1e-6),f.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)/.test(r)&&(u||(f.symbolAttr(t),u=!0),h=!0),b&&/^(width|height|visibility|x|y|d|transform)$/.test(r))for(s=b.length;s--;)d(b[s],r,"height"===r?ve(o-(b[s].cutHeight||0),0):o);("width"===r||"height"===r)&&"rect"===v&&0>o&&(o=0),f[r]=o,g&&f.updateTransform(),"text"===r?(o!==f.textStr&&delete f.bBox,f.textStr=o,f.added&&y.buildText(f)):h||d(m,r,o)}return k},symbolAttr:function(t){var e=this;vi(["x","y","r","start","end","width","height","innerR","anchorX","anchorY"],function(i){e[i]=u(t[i],e[i])}),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})},clip:function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":Ve)},crisp:function(t,e,i,n,r){var o,a,s=this,l={},h={};t=t||s.strokeWidth||s.attr&&s.attr("stroke-width")||0,a=ge(t)%2/2,h.x=fe(e||s.x||0)+a,h.y=fe(i||s.y||0)+a,h.width=fe((n||s.width||0)-2*a),h.height=fe((r||s.height||0)-2*a),h.strokeWidth=t;for(o in h)s[o]!==h[o]&&(s[o]=l[o]=h[o]);return l},css:function(e){var i,n=this,r=n.element,o=e&&e.width&&"text"===r.nodeName.toLowerCase(),a="",s=function(t,e){return"-"+e.toLowerCase()};if(e&&e.color&&(e.fill=e.color),e=t(n.styles,e),n.styles=e,ze&&o&&delete e.width,Se&&!Be)o&&delete e.width,g(n.element,e);else{for(i in e)a+=i.replace(/([A-Z])/g,s)+":"+e[i]+";";n.attr({style:a})}return o&&n.added&&n.renderer.buildText(n),n},on:function(t,e){var i=e;return Oe&&"click"===t&&(t="touchstart",i=function(t){t.preventDefault(),e()}),this.element["on"+t]=i,this},setRadialReference:function(t){return this.element.radialReference=t,this},translate:function(t,e){return this.attr({translateX:t,translateY:e})},invert:function(){var t=this;return t.inverted=!0,t.updateTransform(),t},htmlCss:function(e){var i=this,n=i.element,r=e&&"SPAN"===n.tagName&&e.width;return r&&(delete e.width,i.textWidth=r,i.updateTransform()),i.styles=t(i.styles,e),g(i.element,e),i},htmlGetBBox:function(){var t=this,e=t.element,i=t.bBox;return i||("text"===e.nodeName&&(e.style.position=Ge),i=t.bBox={x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}),i},htmlUpdateTransform:function(){if(!this.added)return this.alignOnAdd=!0,void 0;var t=this,e=t.renderer,n=t.element,r=t.translateX||0,o=t.translateY||0,a=t.x||0,s=t.y||0,l=t.textAlign||"left",h={left:0,center:.5,right:1}[l],d=l&&"left"!==l,p=t.shadows;if((r||o)&&(g(n,{marginLeft:r,marginTop:o}),p&&vi(p,function(t){g(t,{marginLeft:r+1,marginTop:o+1})})),t.inverted&&vi(n.childNodes,function(t){e.invertChild(t,n)}),"SPAN"===n.tagName){var f,m,v,y,x,b=t.rotation,k=0,w=1,T=0,L=i(t.textWidth),P=t.xCorr||0,S=t.yCorr||0,A=[b,l,n.innerHTML,t.textWidth].join(","),C={};A!==t.cTT&&(c(b)&&(e.isSVG?(x=Se?"-ms-transform":Ce?"-webkit-transform":Me?"MozTransform":Pe?"-o-transform":"",C[x]=C.transform="rotate("+b+"deg)"):(k=b*Te,w=be(k),T=ke(k),C.filter=b?["progid:DXImageTransform.Microsoft.Matrix(M11=",w,", M12=",-T,", M21=",T,", M22=",w,", sizingMethod='auto expand')"].join(""):Ve),g(n,C)),f=u(t.elemWidth,n.offsetWidth),m=u(t.elemHeight,n.offsetHeight),f>L&&/[ \-]/.test(n.innerText)&&(g(n,{width:L+je,display:"block",whiteSpace:"normal"}),f=L),v=e.fontMetrics(n.style.fontSize).b,P=0>w&&-f,S=0>T&&-m,y=0>w*T,P+=T*v*(y?1-h:h),S-=w*v*(b?y?h:1-h:1),d&&(P-=f*h*(0>w?-1:1),b&&(S-=m*h*(0>T?-1:1)),g(n,{textAlign:l})),t.xCorr=P,t.yCorr=S),g(n,{left:a+P+je,top:s+S+je}),t.cTT=A}},updateTransform:function(){var t=this,e=t.translateX||0,i=t.translateY||0,n=t.inverted,r=t.rotation,o=[];n&&(e+=t.attr("width"),i+=t.attr("height")),(e||i)&&o.push("translate("+e+","+i+")"),n?o.push("rotate(90) scale(-1,1)"):r&&o.push("rotate("+r+" "+(t.x||0)+" "+(t.y||0)+")"),o.length&&d(t.element,"transform",o.join(" "))},toFront:function(){var t=this.element;return t.parentNode.appendChild(t),this},align:function(t,e,i){var n=this;t?(n.alignOptions=t,n.alignByTranslate=e,i||n.renderer.alignedObjects.push(n)):(t=n.alignOptions,e=n.alignByTranslate),i=u(i,n.renderer);var r=t.align,o=t.verticalAlign,a=(i.x||0)+(t.x||0),s=(i.y||0)+(t.y||0),l={};return("right"===r||"center"===r)&&(a+=(i.width-(t.width||0))/{right:1,center:2}[r]),l[e?"translateX":"x"]=ge(a),("bottom"===o||"middle"===o)&&(s+=(i.height-(t.height||0))/({bottom:1,middle:2}[o]||1)),l[e?"translateY":"y"]=ge(s),n[n.placed?"animate":"attr"](l),n.placed=!0,n.alignAttr=l,n},getBBox:function(){var e,i,n=this,r=n.bBox,o=n.renderer,a=n.rotation,s=n.element,l=n.styles,h=a*Te;if(!r){if(s.namespaceURI===Ie||o.forExport){try{r=s.getBBox?t({},s.getBBox()):{width:s.offsetWidth,height:s.offsetHeight}}catch(c){}(!r||r.width<0)&&(r={width:0,height:0})}else r=n.htmlGetBBox();o.isSVG&&(e=r.width,i=r.height,a&&(r.width=xe(i*ke(h))+xe(e*be(h)),r.height=xe(i*be(h))+xe(e*ke(h)))),Se&&l&&"11px"===l.fontSize&&22.700000762939453===i&&(r.height=14),n.bBox=r}return r},show:function(){return this.attr({visibility:Ye})},hide:function(){return this.attr({visibility:Ne})},add:function(t){var e,n,r,o,a=this.renderer,s=t||a,l=s.element||a.box,h=l.childNodes,p=this.element,u=d(p,"zIndex");if(t&&(this.parentGroup=t),this.parentInverted=t&&t.inverted,void 0!==this.textStr&&a.buildText(this),u&&(s.handleZ=!0,u=i(u)),s.handleZ)for(r=0;r<h.length;r++)if(e=h[r],n=d(e,"zIndex"),e!==p&&(i(n)>u||!c(u)&&c(n))){l.insertBefore(p,e),o=!0;break}return o||l.appendChild(p),this.added=!0,Li(this,"add"),this},safeRemoveChild:function(t){var e=t.parentNode;e&&e.removeChild(t)},destroy:function(){var t,e,i=this,n=i.element||{},r=i.shadows;if(n.onclick=n.onmouseout=n.onmouseover=n.onmousemove=null,Ai(i),i.clipPath&&(i.clipPath=i.clipPath.destroy()),i.stops){for(e=0;e<i.stops.length;e++)i.stops[e]=i.stops[e].destroy();i.stops=null}i.safeRemoveChild(n),r&&vi(r,function(t){i.safeRemoveChild(t)}),h(i.renderer.alignedObjects,i);for(t in i)delete i[t];return null},empty:function(){for(var t=this.element,e=t.childNodes,i=e.length;i--;)t.removeChild(e[i])},shadow:function(t,e,i){var n,r,o,a,s,l,h=[],c=this.element;if(t){for(a=u(t.width,3),s=(t.opacity||.15)/a,l=this.parentInverted?"(-1,-1)":"("+u(t.offsetX,1)+", "+u(t.offsetY,1)+")",n=1;a>=n;n++)r=c.cloneNode(0),o=2*a+1-2*n,d(r,{isShadow:"true",stroke:t.color||"black","stroke-opacity":s*n,"stroke-width":o,transform:"translate"+l,fill:Ve}),i&&(d(r,"height",ve(d(r,"height")-o,0)),r.cutHeight=o),e?e.element.appendChild(r):c.parentNode.insertBefore(r,c),h.push(r);this.shadows=h}return this}};var Di=function(){this.init.apply(this,arguments)};Di.prototype={Element:H,init:function(t,e,i,n){var r,o=this,a=location;r=o.createElement("svg").attr({xmlns:Ie,version:"1.1"}),t.appendChild(r.element),o.isSVG=!0,o.box=r.element,o.boxWrapper=r,o.alignedObjects=[],o.url=(Me||Ce)&&de.getElementsByTagName("base").length?a.href.replace(/#.*?$/,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",o.defs=this.createElement("defs").add(),o.forExport=n,o.gradients={},o.setSize(e,i,!1);var s,l;Me&&t.getBoundingClientRect&&(o.subPixelFix=s=function(){g(t,{left:0,top:0}),l=t.getBoundingClientRect(),g(t,{left:me(l.left)-l.left+je,top:me(l.top)-l.top+je})},s(),wi(pe,"resize",s))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var t=this,e=t.defs;return t.box=null,t.boxWrapper=t.boxWrapper.destroy(),C(t.gradients||{}),t.gradients=null,e&&(t.defs=e.destroy()),t.subPixelFix&&Ti(pe,"resize",t.subPixelFix),t.alignedObjects=null,null},createElement:function(t){var e=new this.Element;return e.init(this,t),e},draw:function(){},buildText:function(t){function e(e){return y[e]=r.getBBox?r.getBBox().height:t.renderer.fontMetrics(r.style.fontSize).h,ge(y[e]-(y[e-1]||0))}for(var n,r=t.element,o=u(t.textStr,"").toString().replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">').replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(/<br.*?>/g),a=r.childNodes,s=/style="([^"]+)"/,l=/href="([^"]+)"/,h=d(r,"x"),c=t.styles,p=c&&c.width&&i(c.width),f=c&&c.lineHeight,m="getComputedStyle",v=a.length,y=[];v--;)r.removeChild(a[v]);p&&!t.added&&this.box.appendChild(r),""===o[o.length-1]&&o.pop(),vi(o,function(o,a){var c,u,v=0;o=o.replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||"),c=o.split("|||"),vi(c,function(o){if(""!==o||1===c.length){var y,x={},b=de.createElementNS(Ie,"tspan");if(s.test(o)&&(y=o.match(s)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),d(b,"style",y)),l.test(o)&&(d(b,"onclick",'location.href="'+o.match(l)[1]+'"'),g(b,{cursor:"pointer"})),o=(o.replace(/<(.|\n)*?>/g,"")||" ").replace(/&lt;/g,"<").replace(/&gt;/g,">"),b.appendChild(de.createTextNode(o)),v?x.dx=3:x.x=h,v||(a&&(!Be&&t.renderer.forExport&&g(b,{display:"block"}),u=pe[m]&&i(pe[m](n,null).getPropertyValue("line-height")),(!u||isNaN(u))&&(u=f||n.offsetHeight||e(a)||18),d(b,"dy",u)),n=b),d(b,x),r.appendChild(b),v++,p)for(var k,w,T=o.replace(/([^\^])-/g,"$1- ").split(" "),L=[];T.length||L.length;)delete t.bBox,w=t.getBBox().width,k=w>p,k&&1!==T.length?(b.removeChild(b.firstChild),L.unshift(T.pop())):(T=L,L=[],T.length&&(b=de.createElementNS(Ie,"tspan"),d(b,{dy:f||16,x:h}),y&&d(b,"style",y),r.appendChild(b),w>p&&(p=w))),T.length&&b.appendChild(de.createTextNode(T.join(" ").replace(/- /g,"-")))}})})},button:function(i,n,r,o,a,s,l){var h,c,d,p,u,g=this.label(i,n,r),f=0,m="style",v={x1:0,y1:0,x2:0,y2:1};return a=ki(e(ci,1,hi,"#999",ai,e(si,v,li,[[0,"#FFF"],[1,"#DDD"]]),"r",3,"padding",3,m,e("color","black")),a),d=a[m],delete a[m],s=ki(a,e(hi,"#68A",ai,e(si,v,li,[[0,"#FFF"],[1,"#ACF"]])),s),p=s[m],delete s[m],l=ki(a,e(hi,"#68A",ai,e(si,v,li,[[0,"#9BD"],[1,"#CDF"]])),l),u=l[m],delete l[m],wi(g.element,"mouseenter",function(){g.attr(s).css(p)}),wi(g.element,"mouseleave",function(){h=[a,s,l][f],c=[d,p,u][f],g.attr(h).css(c)}),g.setState=function(t){f=t,t?2===t&&g.attr(l).css(u):g.attr(a).css(d)},g.on("click",function(){o.call(g)}).attr(a).css(t({cursor:"default"},d))},crispLine:function(t,e){return t[1]===t[4]&&(t[1]=t[4]=ge(t[1])-e%2/2),t[2]===t[5]&&(t[2]=t[5]=ge(t[2])+e%2/2),t},path:function(e){var i={fill:Ve};return o(e)?i.d=e:r(e)&&t(i,e),this.createElement("path").attr(i)},circle:function(t,e,i){var n=r(t)?t:{x:t,y:e,r:i};return this.createElement("circle").attr(n)},arc:function(t,e,i,n,o,a){return r(t)&&(e=t.y,i=t.r,n=t.innerR,o=t.start,a=t.end,t=t.x),this.symbol("arc",t||0,e||0,i||0,i||0,{innerR:n||0,start:o||0,end:a||0})},rect:function(t,e,i,n,o,a){o=r(t)?t.r:o;var s=this.createElement("rect").attr({rx:o,ry:o,fill:Ve});return s.attr(r(t)?t:s.crisp(a,t,e,ve(i,0),ve(n,0)))},setSize:function(t,e,i){var n=this,r=n.alignedObjects,o=r.length;for(n.width=t,n.height=e,n.boxWrapper[u(i,!0)?"animate":"attr"]({width:t,height:e});o--;)r[o].align()},g:function(t){var e=this.createElement("g");return c(t)?e.attr({"class":Fe+t}):e},image:function(e,i,n,r,o){var a,s={preserveAspectRatio:Ve};return arguments.length>1&&t(s,{x:i,y:n,width:r,height:o}),a=this.createElement("image").attr(s),a.element.setAttributeNS?a.element.setAttributeNS("http://www.w3.org/1999/xlink","href",e):a.element.setAttribute("hc-svg-href",e),a},symbol:function(e,i,n,r,o,a){var s,l,h,c,d=this.symbols[e],p=d&&d(ge(i),ge(n),r,o,a),u=/^url\((.*?)\)$/;return p?(s=this.path(p),t(s,{symbolName:e,x:i,y:n,width:r,height:o}),a&&t(s,a)):u.test(e)&&(c=function(t,e){t.attr({width:e[0],height:e[1]}),t.alignByTranslate||t.translate(-ge(e[0]/2),-ge(e[1]/2))},l=e.match(u)[1],h=Re[l],s=this.image(l).attr({x:i,y:n}),h?c(s,h):(s.attr({width:0,height:0}),f("img",{onload:function(){var t=this;c(s,Re[l]=[t.width,t.height])},src:l}))),s},symbols:{circle:function(t,e,i,n){var r=.166*i;return[Ze,t+i/2,e,"C",t+i+r,e,t+i+r,e+n,t+i/2,e+n,"C",t-r,e+n,t-r,e,t+i/2,e,"Z"]},square:function(t,e,i,n){return[Ze,t,e,Ue,t+i,e,t+i,e+n,t,e+n,"Z"]},triangle:function(t,e,i,n){return[Ze,t+i/2,e,Ue,t+i,e+n,t,e+n,"Z"]},"triangle-down":function(t,e,i,n){return[Ze,t,e,Ue,t+i,e,t+i/2,e+n,"Z"]},diamond:function(t,e,i,n){return[Ze,t+i/2,e,Ue,t+i,e+n/2,t+i/2,e+n,t,e+n/2,"Z"]},arc:function(t,e,i,n,r){var o=r.start,a=r.r||i||n,s=r.end-1e-6,l=r.innerR,h=r.open,c=be(o),d=ke(o),p=be(s),u=ke(s),g=r.end-o<we?0:1;return[Ze,t+a*c,e+a*d,"A",a,a,0,g,1,t+a*p,e+a*u,h?Ze:Ue,t+l*p,e+l*u,"A",l,l,0,g,0,t+l*c,e+l*d,h?"":"Z"]}},clipRect:function(t,e,i,n){var r,o=Fe+He++,a=this.createElement("clipPath").attr({id:o}).add(this.defs);return r=this.rect(t,e,i,n,0).add(a),r.id=o,r.clipPath=a,r},color:function(e,i,n){var r,a,s=this,l=/^rgba/;if(e&&e.linearGradient?a="linearGradient":e&&e.radialGradient&&(a="radialGradient"),a){var h,p,u,g=e[a],f=s.gradients,m=i.radialReference;return g.id&&f[g.id]||(o(g)&&(e[a]=g={x1:g[0],y1:g[1],x2:g[2],y2:g[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===a&&m&&!c(g.gradientUnits)&&t(g,{cx:m[0]-m[2]/2+g.cx*m[2],cy:m[1]-m[2]/2+g.cy*m[2],r:g.r*m[2],gradientUnits:"userSpaceOnUse"}),g.id=Fe+He++,f[g.id]=h=s.createElement(a).attr(g).add(s.defs),h.stops=[],vi(e.stops,function(t){var e;l.test(t[1])?(r=Bi(t[1]),p=r.get("rgb"),u=r.get("a")):(p=t[1],u=1),e=s.createElement("stop").attr({offset:t[0],"stop-color":p,"stop-opacity":u}).add(h),h.stops.push(e)})),"url("+s.url+"#"+g.id+")"}return l.test(e)?(r=Bi(e),d(i,n+"-opacity",r.get("a")),r.get("rgb")):(i.removeAttribute(n+"-opacity"),e)},text:function(t,e,i,n){var r,o=this,a=_.chart.style,s=ze||!Be&&o.forExport;return n&&!o.forExport?o.html(t,e,i):(e=ge(u(e,0)),i=ge(u(i,0)),r=o.createElement("text").attr({x:e,y:i,text:t}).css({fontFamily:a.fontFamily,fontSize:a.fontSize}),s&&r.css({position:Ge}),r.x=e,r.y=i,r)},html:function(e,i,n){var r=_.chart.style,o=this.createElement("span"),a=o.attrSetters,s=o.element,l=o.renderer;return a.text=function(t){return t!==s.innerHTML&&delete this.bBox,s.innerHTML=t,!1},a.x=a.y=a.align=function(t,e){return"align"===e&&(e="textAlign"),o[e]=t,o.htmlUpdateTransform(),!1},o.attr({text:e,x:ge(i),y:ge(n)}).css({position:Ge,whiteSpace:"nowrap",fontFamily:r.fontFamily,fontSize:r.fontSize}),o.css=o.htmlCss,l.isSVG&&(o.add=function(e){var i,n,r=l.box.parentNode,a=[];if(e){if(i=e.div,!i){for(n=e;n;)a.push(n),n=n.parentGroup;vi(a.reverse(),function(e){var n;i=e.div=e.div||f(Ee,{className:d(e.element,"class")},{position:Ge,left:(e.translateX||0)+je,top:(e.translateY||0)+je},i||r),n=i.style,t(e.attrSetters,{translateX:function(t){n.left=t+je},translateY:function(t){n.top=t+je},visibility:function(t,e){n[e]=t}})})}}else i=r;return i.appendChild(s),o.added=!0,o.alignOnAdd&&o.htmlUpdateTransform(),o}),o},fontMetrics:function(t){t=i(t||11);var e=24>t?t+4:ge(1.2*t),n=ge(.8*e);return{h:e,b:n}},label:function(e,i,n,r,o,a,s,l,h){function d(){var t,e=L.element.style;m=(void 0===v||void 0===y||T.styles.textAlign)&&L.getBBox(),T.width=(v||m.width||0)+2*S,T.height=(y||m.height||0)+2*S,k=S+w.fontMetrics(e&&e.fontSize).b,f||(t=l?-k:0,T.box=f=r?w.symbol(r,-P*S,t,T.width,T.height):w.rect(-P*S,t,T.width,T.height,0,C[ci]),f.add(T)),f.attr(ki({width:T.width,height:T.height},C)),C=null}function p(){var t,e=T.styles,i=e&&e.textAlign,n=S*(1-P);t=l?0:k,!c(v)||"center"!==i&&"right"!==i||(n+={center:.5,right:1}[i]*(v-m.width)),(n!==L.x||t!==L.y)&&L.attr({x:n,y:t}),L.x=n,L.y=t}function u(t,e){f?f.attr(t,e):C[t]=e}function g(){L.add(T),T.attr({text:e,x:i,y:n}),c(o)&&T.attr({anchorX:o,anchorY:a})}var f,m,v,y,x,b,k,w=this,T=w.g(h),L=w.text("",0,0,s).attr({zIndex:1}),P=0,S=3,A=0,C={},M=T.attrSetters;wi(T,"add",g),M.width=function(t){return v=t,!1},M.height=function(t){return y=t,!1},M.padding=function(t){return c(t)&&t!==S&&(S=t,p()),!1},M.align=function(t){return P={left:0,center:.5,right:1}[t],!1},M.text=function(t,e){return L.attr(e,t),d(),p(),!1},M[ci]=function(t,e){return A=t%2/2,u(e,t),!1},M.stroke=M.fill=M.r=function(t,e){return u(e,t),!1},M.anchorX=function(t,e){return o=t,u(e,t+A-x),!1},M.anchorY=function(t,e){return a=t,u(e,t-b),!1},M.x=function(t){return T.x=t,t-=P*((v||m.width)+S),x=ge(t),T.attr("translateX",x),!1
10
+ },M.y=function(t){return b=T.y=ge(t),T.attr("translateY",t),!1};var I=T.css;return t(T,{css:function(t){if(t){var e={};t=ki({},t),vi(["fontSize","fontWeight","fontFamily","color","lineHeight","width"],function(i){t[i]!==V&&(e[i]=t[i],delete t[i])}),L.css(e)}return I.call(T,t)},getBBox:function(){return f.getBBox()},shadow:function(t){return f.shadow(t),T},destroy:function(){Ti(T,"add",g),Ti(T.element,"mouseenter"),Ti(T.element,"mouseleave"),L&&(L=L.destroy()),f&&(f=f.destroy()),H.prototype.destroy.call(T)}})}},Z=Di;var zi;if(!Be&&!ze){var Oi={init:function(t,e){var i=this,n=["<",e,' filled="f" stroked="f"'],r=["position: ",Ge,";"];("shape"===e||e===Ee)&&r.push("left:0;top:0;width:1px;height:1px;"),Ae&&r.push("visibility: ",e===Ee?Ne:Ye),n.push(' style="',r.join(""),'"/>'),e&&(n=e===Ee||"span"===e||"img"===e?n.join(""):t.prepVML(n),i.element=f(n)),i.renderer=t,i.attrSetters={}},add:function(t){var e=this,i=e.renderer,n=e.element,r=i.box,o=t&&t.inverted,a=t?t.element||t:r;return o&&i.invertChild(n,a),a.appendChild(n),e.added=!0,e.alignOnAdd&&!e.deferUpdateTransform&&e.updateTransform(),Li(e,"add"),e},updateTransform:H.prototype.htmlUpdateTransform,attr:function(t,e){var i,r,o,s,l,h,p=this,u=p.element||{},g=u.style,m=u.nodeName,v=p.renderer,y=p.symbolName,x=p.shadows,b=p.attrSetters,k=p;if(n(t)&&c(e)&&(i=t,t={},t[i]=e),n(t))i=t,k="strokeWidth"===i||"stroke-width"===i?p.strokeweight:p[i];else for(i in t)if(r=t[i],h=!1,s=b[i]&&b[i].call(p,r,i),s!==!1&&null!==r){if(s!==V&&(r=s),y&&/^(x|y|r|start|end|width|height|innerR|anchorX|anchorY)/.test(i))l||(p.symbolAttr(t),l=!0),h=!0;else if("d"===i){r=r||[],p.d=r.join(" "),o=r.length;for(var w=[];o--;)w[o]=a(r[o])?ge(10*r[o])-5:"Z"===r[o]?"x":r[o];if(r=w.join(" ")||"x",u.path=r,x)for(o=x.length;o--;)x[o].path=x[o].cutOff?this.cutOffPath(r,x[o].cutOff):r;h=!0}else if("visibility"===i){if(x)for(o=x.length;o--;)x[o].style[i]=r;"DIV"===m&&(r=r===Ne?"-999em":0,i="top"),g[i]=r,h=!0}else if("zIndex"===i)r&&(g[i]=r),h=!0;else if("width"===i||"height"===i)r=ve(0,r),this[i]=r,p.updateClipping?(p[i]=r,p.updateClipping()):g[i]=r,h=!0;else if("x"===i||"y"===i)p[i]=r,g[{x:"left",y:"top"}[i]]=r;else if("class"===i)u.className=r;else if("stroke"===i)r=v.color(r,u,i),i="strokecolor";else if("stroke-width"===i||"strokeWidth"===i)u.stroked=r?!0:!1,i="strokeweight",p[i]=r,a(r)&&(r+=je);else if("dashstyle"===i){var T=u.getElementsByTagName("stroke")[0]||f(v.prepVML(["<stroke/>"]),null,null,u);T[i]=r||"solid",p.dashstyle=r,h=!0}else"fill"===i?"SPAN"===m?g.color=r:(u.filled=r!==Ve?!0:!1,r=v.color(r,u,i,p),i="fillcolor"):"shape"===m&&"rotation"===i?(p[i]=r,u.style.left=-ge(ke(r*Te)+1)+je,u.style.top=ge(be(r*Te))+je):"translateX"===i||"translateY"===i||"rotation"===i?(p[i]=r,p.updateTransform(),h=!0):"text"===i&&(this.bBox=null,u.innerHTML=r,h=!0);h||(Ae?u[i]=r:d(u,i,r))}return k},clip:function(t){var e,i,n=this,r=n.element,o=r.parentNode;return t?(e=t.members,e.push(n),n.destroyClip=function(){h(e,n)},o&&"highcharts-tracker"===o.className&&!Ae&&g(r,{visibility:Ne}),i=t.getCSS(n)):(n.destroyClip&&n.destroyClip(),i={clip:Ae?"inherit":"rect(auto)"}),n.css(i)},css:H.prototype.htmlCss,safeRemoveChild:function(t){t.parentNode&&M(t)},destroy:function(){return this.destroyClip&&this.destroyClip(),H.prototype.destroy.apply(this)},empty:function(){for(var t,e=this.element,i=e.childNodes,n=i.length;n--;)t=i[n],t.parentNode.removeChild(t)},on:function(t,e){return this.element["on"+t]=function(){var t=pe.event;t.target=t.srcElement,e(t)},this},cutOffPath:function(t,e){var n;return t=t.split(/[ ,]/),n=t.length,(9===n||11===n)&&(t[n-4]=t[n-2]=i(t[n-2])-10*e),t.join(" ")},shadow:function(t,e,n){var r,o,a,s,l,h,c,d=[],p=this.element,g=this.renderer,m=p.style,v=p.path;if(v&&"string"!=typeof v.value&&(v="x"),l=v,t){for(h=u(t.width,3),c=(t.opacity||.15)/h,r=1;3>=r;r++)s=2*h+1-2*r,n&&(l=this.cutOffPath(v.value,s+.5)),a=['<shape isShadow="true" strokeweight="',s,'" filled="false" path="',l,'" coordsize="10 10" style="',p.style.cssText,'" />'],o=f(g.prepVML(a),null,{left:i(m.left)+u(t.offsetX,1),top:i(m.top)+u(t.offsetY,1)}),n&&(o.cutOff=s+1),a=['<stroke color="',t.color||"black",'" opacity="',c*r,'"/>'],f(g.prepVML(a),null,null,o),e?e.element.appendChild(o):p.parentNode.insertBefore(o,p),d.push(o);this.shadows=d}return this}};Oi=m(H,Oi);var Ri={Element:Oi,isIE8:Le.indexOf("MSIE 8.0")>-1,init:function(t,e,i){var n,r,o=this;o.alignedObjects=[],n=o.createElement(Ee),r=n.element,r.style.position=Xe,t.appendChild(n.element),o.box=r,o.boxWrapper=n,o.setSize(e,i,!1),de.namespaces.hcv||(de.namespaces.add("hcv","urn:schemas-microsoft-com:vml"),de.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } ")},isHidden:function(){return!this.box.offsetWidth},clipRect:function(e,i,n,o){var a=this.createElement(),s=r(e);return t(a,{members:[],left:s?e.x:e,top:s?e.y:i,width:s?e.width:n,height:s?e.height:o,getCSS:function(e){var i=e.inverted,n=this,r=n.top,o=n.left,a=o+n.width,s=r+n.height,l={clip:"rect("+ge(i?o:r)+"px,"+ge(i?s:a)+"px,"+ge(i?a:s)+"px,"+ge(i?r:o)+"px)"};return!i&&Ae&&"IMG"!==e.element.nodeName&&t(l,{width:a+je,height:s+je}),l},updateClipping:function(){vi(a.members,function(t){t.css(a.getCSS(t))})}})},color:function(t,e,i,n){var r,o,a,s=this,l=/^rgba/,h=Ve;if(t&&t.linearGradient?a="gradient":t&&t.radialGradient&&(a="pattern"),a){var c,d,p,u,g,m,v,y,x,b,k,w,T=t.linearGradient||t.radialGradient,L="",P=t.stops,S=[],A=function(){o=['<fill colors="'+S.join(",")+'" opacity="',y,'" o:opacity2="',v,'" type="',a,'" ',L,'focus="100%" method="any" />'],f(s.prepVML(o),null,null,e)};if(k=P[0],w=P[P.length-1],k[0]>0&&P.unshift([0,k[1]]),w[0]<1&&P.push([1,w[1]]),vi(P,function(t,e){l.test(t[1])?(r=Bi(t[1]),c=r.get("rgb"),d=r.get("a")):(c=t[1],d=1),S.push(100*t[0]+"% "+c),e?(y=d,x=c):(v=d,b=c)}),"fill"===i)if("gradient"===a)p=T.x1||T[0]||0,u=T.y1||T[1]||0,g=T.x2||T[2]||0,m=T.y2||T[3]||0,L='angle="'+(90-180*ue.atan((m-u)/(g-p))/we)+'"',A();else{var C,M=T.r,I=2*M,B=2*M,D=T.cx,z=T.cy,O=e.radialReference,R=function(){O&&(C=n.getBBox(),D+=(O[0]-C.x)/C.width-.5,z+=(O[1]-C.y)/C.height-.5,I*=O[2]/C.width,B*=O[2]/C.height),L='src="'+_.global.VMLRadialGradientURL+'" '+'size="'+I+","+B+'" '+'origin="0.5,0.5" '+'position="'+D+","+z+'" '+'color2="'+b+'" ',A()};n.added?R():wi(n,"add",R),h=x}else h=c}else if(l.test(t)&&"IMG"!==e.tagName)r=Bi(t),o=["<",i,' opacity="',r.get("a"),'"/>'],f(this.prepVML(o),null,null,e),h=r.get("rgb");else{var H=e.getElementsByTagName(i);H.length&&(H[0].opacity=1),h=t}return h},prepVML:function(t){var e="display:inline-block;behavior:url(#default#VML);",i=this.isIE8;return t=t.join(""),i?(t=t.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />'),t=-1===t.indexOf('style="')?t.replace("/>",' style="'+e+'" />'):t.replace('style="','style="'+e)):t=t.replace("<","<hcv:"),t},text:Di.prototype.html,path:function(e){var i={coordsize:"10 10"};return o(e)?i.d=e:r(e)&&t(i,e),this.createElement("shape").attr(i)},circle:function(t,e,i){return this.symbol("circle").attr({x:t-i,y:e-i,width:2*i,height:2*i})},g:function(t){var e,i;return t&&(i={className:Fe+t,"class":Fe+t}),e=this.createElement(Ee).attr(i)},image:function(t,e,i,n,r){var o=this.createElement("img").attr({src:t});return arguments.length>1&&o.attr({x:e,y:i,width:n,height:r}),o},rect:function(t,e,i,n,o,a){r(t)&&(e=t.y,i=t.width,n=t.height,a=t.strokeWidth,t=t.x);var s=this.symbol("rect");return s.r=o,s.attr(s.crisp(a,t,e,ve(i,0),ve(n,0)))},invertChild:function(t,e){var n=e.style;g(t,{flip:"x",left:i(n.width)-1,top:i(n.height)-1,rotation:-90})},symbols:{arc:function(t,e,i,n,r){var o,a=r.start,s=r.end,l=r.r||i||n,h=be(a),c=ke(a),d=be(s),p=ke(s),u=r.innerR,g=.08/l,f=u&&.1/u||0;return 0===s-a?["x"]:(g>2*we-s+a?d=-g:f>s-a&&(d=be(a+f)),o=["wa",t-l,e-l,t+l,e+l,t+l*h,e+l*c,t+l*d,e+l*p],r.open&&!u&&o.push("e",Ze,t,e),o.push("at",t-u,e-u,t+u,e+u,t+u*d,e+u*p,t+u*h,e+u*c,"x","e"),o)},circle:function(t,e,i,n){return["wa",t,e,t+i,e+n,t+i,e+n/2,t+i,e+n/2,"e"]},rect:function(t,e,i,n,r){var o,a,s=t+i,l=e+n;return c(r)&&r.r?(a=ye(r.r,i,n),o=[Ze,t+a,e,Ue,s-a,e,"wa",s-2*a,e,s,e+2*a,s-a,e,s,e+a,Ue,s,l-a,"wa",s-2*a,l-2*a,s,l,s,l-a,s-a,l,Ue,t+a,l,"wa",t,l-2*a,t+2*a,l,t+a,l,t,l-a,Ue,t,e+a,"wa",t,e,t+2*a,e+2*a,t,e+a,t+a,e,"x","e"]):o=Di.prototype.symbols.square.apply(0,arguments),o}}};zi=function(){this.init.apply(this,arguments)},zi.prototype=ki(Di.prototype,Ri),Z=zi}var Hi,Wi;ze&&(Hi=function(){Ie="http://www.w3.org/1999/xhtml"},Hi.prototype.symbols={},Wi=function(){function t(){var t,i=e.length;for(t=0;i>t;t++)e[t]();e=[]}var e=[];return{push:function(i,n){0===e.length&&fi(n,t),e.push(i)}}}()),Z=zi||Hi||Di,W.prototype={addLabel:function(){var e,i,n,r,o=this,s=o.axis,h=s.options,d=s.chart,p=s.horiz,u=s.categories,g=o.pos,f=h.labels,m=s.tickPositions,v=u&&p&&u.length&&!f.step&&!f.staggerLines&&!f.rotation&&d.plotWidth/m.length||!p&&d.plotWidth/2,y=g===m[0],x=g===m[m.length-1],b=u&&c(u[g])?u[g]:g,k=o.label,w=m.info;s.isDatetimeAxis&&w&&(r=h.dateTimeLabelFormats[w.higherRanks[g]||w.unitName]),o.isFirst=y,o.isLast=x,e=s.labelFormatter.call({axis:s,chart:d,isFirst:y,isLast:x,dateTimeLabelFormat:r,value:s.isLog?B(l(b)):b}),i=v&&{width:ve(1,ge(v-2*(f.padding||10)))+je},i=t(i,f.style),c(k)?k&&k.attr({text:e}).css(i):(n={align:f.align},a(f.rotation)&&(n.rotation=f.rotation),o.label=c(e)&&f.enabled?d.renderer.text(e,0,0,f.useHTML).attr(n).css(i).add(s.labelGroup):null)},getLabelSize:function(){var t=this.label,e=this.axis;return t?(this.labelBBox=t.getBBox())[e.horiz?"height":"width"]:0},getLabelSides:function(){var t=this.labelBBox,e=this.axis,i=e.options,n=i.labels,r=t.width,o=r*{left:0,center:.5,right:1}[n.align]-n.x;return[-o,r-o]},handleOverflow:function(t,e){var i=!0,n=this.axis,r=n.chart,o=this.isFirst,a=this.isLast,s=e.x,l=n.reversed,h=n.tickPositions;if(o||a){var c=this.getLabelSides(),d=c[0],p=c[1],u=r.plotLeft,g=u+n.len,f=n.ticks[h[t+(o?1:-1)]],m=f&&f.label.xy&&f.label.xy.x+f.getLabelSides()[o?0:1];o&&!l||a&&l?u>s+d&&(s=u-d,f&&s+p>m&&(i=!1)):s+p>g&&(s=g-p,f&&m>s+d&&(i=!1)),e.x=s}return i},getPosition:function(t,e,i,n){var r=this.axis,o=r.chart,a=n&&o.oldChartHeight||o.chartHeight;return{x:t?r.translate(e+i,null,null,n)+r.transB:r.left+r.offset+(r.opposite?(n&&o.oldChartWidth||o.chartWidth)-r.right-r.left:0),y:t?a-r.bottom+r.offset-(r.opposite?r.height:0):a-r.translate(e+i,null,null,n)-r.transB}},getLabelPosition:function(t,e,n,r,o,a,s,l){var h=this.axis,d=h.transA,p=h.reversed,u=h.staggerLines;return t=t+o.x-(a&&r?a*d*(p?-1:1):0),e=e+o.y-(a&&!r?a*d*(p?1:-1):0),c(o.y)||(e+=.9*i(n.styles.lineHeight)-n.getBBox().height/2),u&&(e+=16*(s/(l||1)%u)),{x:t,y:e}},getMarkPath:function(t,e,i,n,r,o){return o.crispLine([Ze,t,e,Ue,t+(r?0:-i),e+(r?i:0)],n)},render:function(t,e){var i,n,r,o=this,a=o.axis,s=a.options,l=a.chart,h=l.renderer,c=a.horiz,d=o.type,p=o.label,g=o.pos,f=s.labels,m=o.gridLine,v=d?d+"Grid":"grid",y=d?d+"Tick":"tick",x=s[v+"LineWidth"],b=s[v+"LineColor"],k=s[v+"LineDashStyle"],w=s[y+"Length"],T=s[y+"Width"]||0,L=s[y+"Color"],P=s[y+"Position"],S=o.mark,A=f.step,C=!0,M=a.tickmarkOffset,I=o.getPosition(c,g,M,e),B=I.x,D=I.y,z=a.staggerLines;x&&(i=a.getPlotLinePath(g+M,x,e),m===V&&(r={stroke:b,"stroke-width":x},k&&(r.dashstyle=k),d||(r.zIndex=1),o.gridLine=m=x?h.path(i).attr(r).add(a.gridGroup):null),!e&&m&&i&&m[o.isNew?"attr":"animate"]({d:i})),T&&w&&("inside"===P&&(w=-w),a.opposite&&(w=-w),n=o.getMarkPath(B,D,w,T,c,h),S?S.animate({d:n}):o.mark=h.path(n).attr({stroke:L,"stroke-width":T}).add(a.axisGroup)),p&&!isNaN(B)&&(p.xy=I=o.getLabelPosition(B,D,p,c,f,M,t,A),o.isFirst&&!u(s.showFirstLabel,1)||o.isLast&&!u(s.showLastLabel,1)?C=!1:z||!c||"justify"!==f.overflow||o.handleOverflow(t,I)||(C=!1),A&&t%A&&(C=!1),C?(p[o.isNew?"attr":"animate"](I),p.show(),o.isNew=!1):p.hide())},destroy:function(){C(this,this.axis)}},E.prototype={render:function(){var t,e,i,n,r,o,a,l=this,h=l.axis,d=h.horiz,p=(h.pointRange||0)/2,g=l.options,f=g.label,m=l.label,v=g.width,y=g.to,x=g.from,b=c(x)&&c(y),k=g.value,w=g.dashStyle,T=l.svgElem,L=[],P=g.color,C=g.zIndex,M=g.events,I=h.chart.renderer;if(h.isLog&&(x=s(x),y=s(y),k=s(k)),v)L=h.getPlotLinePath(k,v),a={stroke:P,"stroke-width":v},w&&(a.dashstyle=w);else{if(!b)return;x=ve(x,h.min-p),y=ye(y,h.max+p),L=h.getPlotBandPath(x,y,g),a={fill:P},g.borderWidth&&(a.stroke=g.borderColor,a["stroke-width"]=g.borderWidth)}if(c(C)&&(a.zIndex=C),T)L?T.animate({d:L},null,T.onGetPath):(T.hide(),T.onGetPath=function(){T.show()});else if(L&&L.length&&(l.svgElem=T=I.path(L).attr(a).add(),M)){t=function(t){T.on(t,function(e){M[t].apply(l,[e])})};for(e in M)t(e)}return f&&c(f.text)&&L&&L.length&&h.width>0&&h.height>0?(f=ki({align:d&&b&&"center",x:d?!b&&4:10,verticalAlign:!d&&b&&"middle",y:d?b?16:10:b?6:-4,rotation:d&&!b&&90},f),m||(l.label=m=I.text(f.text,0,0).attr({align:f.textAlign||f.align,rotation:f.rotation,zIndex:C}).css(f.style).add()),i=[L[1],L[4],u(L[6],L[1])],n=[L[2],L[5],u(L[7],L[2])],r=S(i),o=S(n),m.align(f,!1,{x:r,y:o,width:A(i)-r,height:A(n)-o}),m.show()):m&&m.hide(),l},destroy:function(){var t=this,e=t.axis;h(e.plotLinesAndBands,t),C(t,this.axis)}},G.prototype={destroy:function(){C(this,this.axis)},setTotal:function(t){this.total=t,this.cum=t},render:function(t){var e=this.options.formatter.call(this);this.label?this.label.attr({text:e,visibility:Ne}):this.label=this.axis.chart.renderer.text(e,0,0).css(this.options.style).attr({align:this.textAlign,rotation:this.options.rotation,visibility:Ne}).add(t)},setOffset:function(t,e){var i,n=this,r=n.axis,o=r.chart,a=o.inverted,s=this.isNegative,l=r.translate(this.percent?100:this.total,0,0,0,1),h=r.translate(0),c=xe(l-h),d=o.xAxis[0].translate(this.x)+t,p=o.plotHeight,u={x:a?s?l:l-c:d,y:a?p-d-e:s?p-l-c:p-l,width:a?c:e,height:a?e:c},g=this.label;g&&(g.align(this.alignOptions,null,u),i=g.alignAttr,g.attr({visibility:this.options.crop===!1||o.isInsidePlot(i.x,i.y)?Be?"inherit":Ye:Ne}))}},X.prototype={defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:!1,gridLineColor:"#C0C0C0",labels:Ci,lineColor:"#C0D0E0",lineWidth:1,minPadding:.01,maxPadding:.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickColor:"#C0D0E0",tickLength:5,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",tickWidth:1,title:{align:"middle",style:{color:"#6D869F",fontWeight:"bold"}},type:"linear"},defaultYAxisOptions:{endOnTick:!0,gridLineWidth:1,tickPixelInterval:72,showLastLabel:!0,labels:{align:"right",x:-8,y:3},lineWidth:0,maxPadding:.05,minPadding:.05,startOnTick:!0,tickWidth:0,title:{rotation:270,text:"Y-values"},stackLabels:{enabled:!1,formatter:function(){return this.total},style:Ci.style}},defaultLeftAxisOptions:{labels:{align:"right",x:-8,y:null},title:{rotation:270}},defaultRightAxisOptions:{labels:{align:"left",x:8,y:null},title:{rotation:90}},defaultBottomAxisOptions:{labels:{align:"center",x:0,y:14},title:{rotation:0}},defaultTopAxisOptions:{labels:{align:"center",x:0,y:-5},title:{rotation:0}},init:function(t,e){var i=e.isX,n=this;n.horiz=t.inverted?!i:i,n.isXAxis=i,n.xOrY=i?"x":"y",n.opposite=e.opposite,n.side=n.horiz?n.opposite?0:2:n.opposite?1:3,n.setOptions(e);var r=this.options,o=r.type,a="datetime"===o;n.labelFormatter=r.labels.formatter||n.defaultLabelFormatter,n.staggerLines=n.horiz&&r.labels.staggerLines,n.userOptions=e,n.minPixelPadding=0,n.chart=t,n.reversed=r.reversed,n.categories=r.categories,n.isLog="logarithmic"===o,n.isLinked=c(r.linkedTo),n.isDatetimeAxis=a,n.tickmarkOffset=r.categories&&"between"===r.tickmarkPlacement?.5:0,n.ticks={},n.minorTicks={},n.plotLinesAndBands=[],n.alternateBands={},n.len=0,n.minRange=n.userMinRange=r.minRange||r.maxZoom,n.range=r.range,n.offset=r.offset||0,n.stacks={},n.max=null,n.min=null;var h,d=n.options.events;t.axes.push(n),t[i?"xAxis":"yAxis"].push(n),n.series=[],t.inverted&&i&&n.reversed===V&&(n.reversed=!0),n.removePlotBand=n.removePlotBandOrLine,n.removePlotLine=n.removePlotBandOrLine,n.addPlotBand=n.addPlotBandOrLine,n.addPlotLine=n.addPlotBandOrLine;for(h in d)wi(n,h,d[h]);n.isLog&&(n.val2lin=s,n.lin2val=l)},setOptions:function(t){this.options=ki(this.defaultOptions,this.isXAxis?{}:this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],ki(_[this.isXAxis?"xAxis":"yAxis"],t))},defaultLabelFormatter:function(){var t,e,i=this.axis,n=this.value,r=i.categories,o=this.dateTimeLabelFormat,a=_.lang.numericSymbols,s=a&&a.length,l=i.isLog?n:i.tickInterval;if(r)e=n;else if(o)e=K(o,n);else if(s&&l>=1e3)for(;s--&&e===V;)t=Math.pow(1e3,s+1),l>=t&&null!==a[s]&&(e=y(n/t,-1)+a[s]);return e===V&&(e=n>=1e3?y(n,0):y(n,-1)),e},getSeriesExtremes:function(){var t,e=this,i=e.chart,n=e.stacks,r=[],o=[];e.hasVisibleSeries=!1,e.dataMin=e.dataMax=null,vi(e.series,function(a){if(a.visible||!i.options.chart.ignoreHiddenSeries){var s,l,h,d,p,g,f,m,v,y,x,b=a.options,k=b.threshold,w=[],T=0;if(e.hasVisibleSeries=!0,e.isLog&&0>=k&&(k=b.threshold=null),e.isXAxis)f=a.xData,f.length&&(e.dataMin=ye(u(e.dataMin,f[0]),S(f)),e.dataMax=ve(u(e.dataMax,f[0]),A(f)));else{var L,P,C,M,I=a.cropped,D=a.xAxis.getExtremes(),z=!!a.modifyValue;for(s=b.stacking,e.usePercentage="percent"===s,s&&(p=b.stack,d=a.type+u(p,""),g="-"+d,a.stackKey=d,l=r[d]||[],r[d]=l,h=o[g]||[],o[g]=h),e.usePercentage&&(e.dataMin=0,e.dataMax=99),f=a.processedXData,m=a.processedYData,x=m.length,t=0;x>t;t++)if(v=f[t],y=m[t],s&&(L=k>y,P=L?h:l,C=L?g:d,y=P[v]=c(P[v])?B(P[v]+y):y,n[C]||(n[C]={}),n[C][v]||(n[C][v]=new G(e,e.options.stackLabels,L,v,p,s)),n[C][v].setTotal(y)),null!==y&&y!==V&&(z&&(y=a.modifyValue(y)),I||(f[t+1]||v)>=D.min&&(f[t-1]||v)<=D.max))if(M=y.length)for(;M--;)null!==y[M]&&(w[T++]=y[M]);else w[T++]=y;!e.usePercentage&&w.length&&(e.dataMin=ye(u(e.dataMin,w[0]),S(w)),e.dataMax=ve(u(e.dataMax,w[0]),A(w))),c(k)&&(e.dataMin>=k?(e.dataMin=k,e.ignoreMinPadding=!0):e.dataMax<k&&(e.dataMax=k,e.ignoreMaxPadding=!0))}}})},translate:function(t,e,i,n,r,o){var a,s=this,l=s.len,h=1,c=0,d=n?s.oldTransA:s.transA,p=n?s.oldMin:s.min,u=s.options.ordinal||s.isLog&&r;return d||(d=s.transA),i&&(h*=-1,c=l),s.reversed&&(h*=-1,c-=h*l),e?(s.reversed&&(t=l-t),a=t/d+p,u&&(a=s.lin2val(a))):(u&&(t=s.val2lin(t)),a=h*(t-p)*d+c+h*s.minPixelPadding+(o?d*s.pointRange/2:0)),a},getPlotLinePath:function(t,e,i){var n,r,o,a,s,l=this,h=l.chart,c=l.left,d=l.top,p=l.translate(t,null,null,i),u=i&&h.oldChartHeight||h.chartHeight,g=i&&h.oldChartWidth||h.chartWidth,f=l.transB;return n=o=ge(p+f),r=a=ge(u-p-f),isNaN(p)?s=!0:l.horiz?(r=d,a=u-l.bottom,(c>n||n>c+l.width)&&(s=!0)):(n=c,o=g-l.right,(d>r||r>d+l.height)&&(s=!0)),s?null:h.renderer.crispLine([Ze,n,r,Ue,o,a],e||0)},getPlotBandPath:function(t,e){var i=this.getPlotLinePath(e),n=this.getPlotLinePath(t);return n&&i?n.push(i[4],i[5],i[1],i[2]):n=null,n},getLinearTickPositions:function(t,e,i){var n,r,o=B(fe(e/t)*t),a=B(me(i/t)*t),s=[];for(n=o;a>=n&&(s.push(n),n=B(n+t),n!==r);)r=n;return s},getLogTickPositions:function(t,e,i,n){var r=this,o=r.options,a=r.len,h=[];if(n||(r._minorAutoInterval=null),t>=.5)t=ge(t),h=r.getLinearTickPositions(t,e,i);else if(t>=.08){var c,d,p,g,f,m,v,y=fe(e);for(c=t>.3?[1,2,4]:t>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],d=y;i+1>d&&!v;d++)for(g=c.length,p=0;g>p&&!v;p++)f=s(l(d)*c[p]),f>e&&h.push(m),m>i&&(v=!0),m=f}else{var x=l(e),b=l(i),w=o[n?"minorTickInterval":"tickInterval"],T="auto"===w?null:w,L=o.tickPixelInterval/(n?5:1),P=n?a/r.tickPositions.length:a;t=u(T,r._minorAutoInterval,(b-x)*L/(P||1)),t=k(t,null,ue.pow(10,fe(ue.log(t)/ue.LN10))),h=bi(r.getLinearTickPositions(t,x,b),s),n||(r._minorAutoInterval=t/5)}return n||(r.tickInterval=t),h},getMinorTickPositions:function(){var t,e,i,n=this,r=n.tickPositions,o=n.minorTickInterval,a=[];if(n.isLog)for(i=r.length,e=1;i>e;e++)a=a.concat(n.getLogTickPositions(o,r[e-1],r[e],!0));else for(t=n.min+(r[0]-n.min)%o;t<=n.max;t+=o)a.push(t);return a},adjustForMinRange:function(){var t,e,i,n,r,o,a,s,l=this,h=l.options,d=l.min,p=l.max,g=l.dataMax-l.dataMin>=l.minRange;if(l.isXAxis&&l.minRange===V&&!l.isLog&&(c(h.min)||c(h.max)?l.minRange=null:(vi(l.series,function(t){for(r=t.xData,o=t.xIncrement?1:r.length-1,i=o;i>0;i--)n=r[i]-r[i-1],(e===V||e>n)&&(e=n)}),l.minRange=ye(5*e,l.dataMax-l.dataMin))),p-d<l.minRange){var f=l.minRange;t=(f-p+d)/2,a=[d-t,u(h.min,d-t)],g&&(a[2]=l.dataMin),d=A(a),s=[d+f,u(h.max,d+f)],g&&(s[2]=l.dataMax),p=S(s),f>p-d&&(a[0]=p-f,a[1]=u(h.min,p-f),d=A(a))}l.min=d,l.max=p},setAxisTranslation:function(){var t,e=this,i=e.max-e.min,n=0,r=0,o=0,a=e.linkedParent,s=e.transA;e.isXAxis&&(a?(r=a.minPointOffset,o=a.pointRangePadding):vi(e.series,function(e){var i=e.pointRange,a=e.options.pointPlacement,s=e.closestPointRange;n=ve(n,i),r=ve(r,a?0:i/2),o=ve(o,"on"===a?0:i),!e.noSharedTooltip&&c(s)&&(t=c(t)?ye(t,s):s)}),e.minPointOffset=r,e.pointRangePadding=o,e.pointRange=n,e.closestPointRange=t),e.oldTransA=s,e.translationSlope=e.transA=s=e.len/(i+o||1),e.transB=e.horiz?e.left:e.bottom,e.minPixelPadding=s*r},setTickPositions:function(t){var e,i,n,r,o=this,a=o.chart,l=o.options,h=o.isLog,d=o.isDatetimeAxis,p=o.isXAxis,g=o.isLinked,f=o.options.tickPositioner,m=l.maxPadding,v=l.minPadding,y=l.tickInterval,x=l.minTickInterval,b=l.tickPixelInterval,L=o.categories;if(g?(o.linkedParent=a[p?"xAxis":"yAxis"][l.linkedTo],n=o.linkedParent.getExtremes(),o.min=u(n.min,n.dataMin),o.max=u(n.max,n.dataMax),l.type!==o.linkedParent.options.type&&I(11,1)):(o.min=u(o.userMin,l.min,o.dataMin),o.max=u(o.userMax,l.max,o.dataMax)),h&&(!t&&ye(o.min,u(o.dataMin,o.min))<=0&&I(10,1),o.min=B(s(o.min)),o.max=B(s(o.max))),o.range&&(o.userMin=o.min=ve(o.min,o.max-o.range),o.userMax=o.max,t&&(o.range=null)),o.adjustForMinRange(),L||o.usePercentage||g||!c(o.min)||!c(o.max)||(i=o.max-o.min||1,c(l.min)||c(o.userMin)||!v||!(o.dataMin<0)&&o.ignoreMinPadding||(o.min-=i*v),c(l.max)||c(o.userMax)||!m||!(o.dataMax>0)&&o.ignoreMaxPadding||(o.max+=i*m)),o.tickInterval=o.min===o.max||void 0===o.min||void 0===o.max?1:g&&!y&&b===o.linkedParent.options.tickPixelInterval?o.linkedParent.tickInterval:u(y,L?1:(o.max-o.min)*b/(o.len||1)),p&&!t&&vi(o.series,function(t){t.processData(o.min!==o.oldMin||o.max!==o.oldMax)}),o.setAxisTranslation(t),o.beforeSetTickPositions&&o.beforeSetTickPositions(),o.postProcessTickInterval&&(o.tickInterval=o.postProcessTickInterval(o.tickInterval)),!y&&o.tickInterval<x&&(o.tickInterval=x),d||h||(e=ue.pow(10,fe(ue.log(o.tickInterval)/ue.LN10)),y||(o.tickInterval=k(o.tickInterval,null,e,l))),o.minorTickInterval="auto"===l.minorTickInterval&&o.tickInterval?o.tickInterval/5:l.minorTickInterval,o.tickPositions=r=l.tickPositions||f&&f.apply(o,[o.min,o.max]),r||(r=d?(o.getNonLinearTimeTicks||T)(w(o.tickInterval,l.units),o.min,o.max,l.startOfWeek,o.ordinalPositions,o.closestPointRange,!0):h?o.getLogTickPositions(o.tickInterval,o.min,o.max):o.getLinearTickPositions(o.tickInterval,o.min,o.max),o.tickPositions=r),!g){var P=r[0],S=r[r.length-1],A=o.minPointOffset||0;l.startOnTick?o.min=P:o.min-A>P&&r.shift(),l.endOnTick?o.max=S:o.max+A<S&&r.pop()}},setMaxTicks:function(){var t=this.chart,e=t.maxTicks,i=this.tickPositions,n=this.xOrY;e||(e={x:0,y:0}),!this.isLinked&&!this.isDatetimeAxis&&i.length>e[n]&&this.options.alignTicks!==!1&&(e[n]=i.length),t.maxTicks=e},adjustTickAmount:function(){var t=this,e=t.chart,i=t.xOrY,n=t.tickPositions,r=e.maxTicks;if(r&&r[i]&&!t.isDatetimeAxis&&!t.categories&&!t.isLinked&&t.options.alignTicks!==!1){var o,a=t.tickAmount,s=n.length;if(t.tickAmount=o=r[i],o>s){for(;n.length<o;)n.push(B(n[n.length-1]+t.tickInterval));t.transA*=(s-1)/(o-1),t.max=n[n.length-1]}c(a)&&o!==a&&(t.isDirty=!0)}},setScale:function(){var t,e,i,n,r=this,o=r.stacks;if(r.oldMin=r.min,r.oldMax=r.max,r.oldAxisLength=r.len,r.setAxisSize(),n=r.len!==r.oldAxisLength,vi(r.series,function(t){(t.isDirtyData||t.isDirty||t.xAxis.isDirty)&&(i=!0)}),(n||i||r.isLinked||r.userMin!==r.oldUserMin||r.userMax!==r.oldUserMax)&&(r.getSeriesExtremes(),r.setTickPositions(),r.oldUserMin=r.userMin,r.oldUserMax=r.userMax,r.isDirty||(r.isDirty=n||r.min!==r.oldMin||r.max!==r.oldMax)),!r.isXAxis)for(t in o)for(e in o[t])o[t][e].cum=o[t][e].total;r.setMaxTicks()},setExtremes:function(e,i,n,r,o){var a=this,s=a.chart;n=u(n,!0),o=t(o,{min:e,max:i}),Li(a,"setExtremes",o,function(){a.userMin=e,a.userMax=i,a.isDirtyExtremes=!0,n&&s.redraw(r)})},zoom:function(t,e){return this.setExtremes(t,e,!1,V,{trigger:"zoom"}),!0},setAxisSize:function(){var t=this,e=t.chart,i=t.options,n=i.offsetLeft||0,r=i.offsetRight||0;t.left=u(i.left,e.plotLeft+n),t.top=u(i.top,e.plotTop),t.width=u(i.width,e.plotWidth-n+r),t.height=u(i.height,e.plotHeight),t.bottom=e.chartHeight-t.height-t.top,t.right=e.chartWidth-t.width-t.left,t.len=ve(t.horiz?t.width:t.height,0)},getExtremes:function(){var t=this,e=t.isLog;return{min:e?B(l(t.min)):t.min,max:e?B(l(t.max)):t.max,dataMin:t.dataMin,dataMax:t.dataMax,userMin:t.userMin,userMax:t.userMax}},getThreshold:function(t){var e=this,i=e.isLog,n=i?l(e.min):e.min,r=i?l(e.max):e.max;return n>t||null===t?t=n:t>r&&(t=r),e.translate(t,0,1,0,1)},addPlotBandOrLine:function(t){var e=new E(this,t).render();return this.plotLinesAndBands.push(e),e},getOffset:function(){var t,e,i,n,r=this,o=r.chart,a=o.renderer,s=r.options,l=r.tickPositions,h=r.ticks,d=r.horiz,p=r.side,g=0,f=0,m=s.title,v=s.labels,y=0,x=o.axisOffset,b=[-1,1,1,-1][p];if(r.hasData=t=r.hasVisibleSeries||c(r.min)&&c(r.max)&&!!l,r.showAxis=e=t||u(s.showEmpty,!0),r.axisGroup||(r.gridGroup=a.g("grid").attr({zIndex:s.gridZIndex||1}).add(),r.axisGroup=a.g("axis").attr({zIndex:s.zIndex||2}).add(),r.labelGroup=a.g("axis-labels").attr({zIndex:v.zIndex||7}).add()),t||r.isLinked)vi(l,function(t){h[t]?h[t].addLabel():h[t]=new W(r,t)}),vi(l,function(t){(0===p||2===p||{1:"left",3:"right"}[p]===v.align)&&(y=ve(h[t].getLabelSize(),y))}),r.staggerLines&&(y+=16*(r.staggerLines-1));else for(n in h)h[n].destroy(),delete h[n];m&&m.text&&(r.axisTitle||(r.axisTitle=a.text(m.text,0,0,m.useHTML).attr({zIndex:7,rotation:m.rotation||0,align:m.textAlign||{low:"left",middle:"center",high:"right"}[m.align]}).css(m.style).add(r.axisGroup),r.axisTitle.isNew=!0),e&&(g=r.axisTitle.getBBox()[d?"height":"width"],f=u(m.margin,d?5:10),i=m.offset),r.axisTitle[e?"show":"hide"]()),r.offset=b*u(s.offset,x[p]),r.axisTitleMargin=u(i,y+f+(2!==p&&y&&b*s.labels[d?"y":"x"])),x[p]=ve(x[p],r.axisTitleMargin+g+b*r.offset)},getLinePath:function(t){var e=this.chart,i=this.opposite,n=this.offset,r=this.horiz,o=this.left+(i?this.width:0)+n,a=e.chartHeight-this.bottom-(i?this.height:0)+n;return this.lineTop=a,e.renderer.crispLine([Ze,r?this.left:o,r?a:this.top,Ue,r?e.chartWidth-this.right:o,r?a:e.chartHeight-this.bottom],t)},getTitlePosition:function(){var t=this.horiz,e=this.left,n=this.top,r=this.len,o=this.options.title,a=t?e:n,s=this.opposite,l=this.offset,h=i(o.style.fontSize||12),c={low:a+(t?0:r),middle:a+r/2,high:a+(t?r:0)}[o.align],d=(t?n+this.height:e)+(t?1:-1)*(s?-1:1)*this.axisTitleMargin+(2===this.side?h:0);return{x:t?c:d+(s?this.width:0)+l+(o.x||0),y:t?d-(s?this.height:0)+l:c+(o.y||0)}},render:function(){var t,e,i,n=this,r=n.chart,o=r.renderer,a=n.options,s=n.isLog,h=n.isLinked,d=n.tickPositions,p=n.axisTitle,u=n.stacks,g=n.ticks,f=n.minorTicks,m=n.alternateBands,v=a.stackLabels,y=a.alternateGridColor,x=n.tickmarkOffset,b=a.lineWidth,k=r.hasRendered,w=k&&c(n.oldMin)&&!isNaN(n.oldMin),T=n.hasData,L=n.showAxis;if((T||h)&&(n.minorTickInterval&&!n.categories&&vi(n.getMinorTickPositions(),function(t){f[t]||(f[t]=new W(n,t,"minor")),w&&f[t].isNew&&f[t].render(null,!0),f[t].isActive=!0,f[t].render()}),vi(d.slice(1).concat([d[0]]),function(t,e){e=e===d.length-1?0:e+1,(!h||t>=n.min&&t<=n.max)&&(g[t]||(g[t]=new W(n,t)),w&&g[t].isNew&&g[t].render(e,!0),g[t].isActive=!0,g[t].render(e))}),y&&vi(d,function(t,r){0===r%2&&t<n.max&&(m[t]||(m[t]=new E(n)),e=t+x,i=d[r+1]!==V?d[r+1]+x:n.max,m[t].options={from:s?l(e):e,to:s?l(i):i,color:y},m[t].render(),m[t].isActive=!0)}),n._addedPlotLB||(vi((a.plotLines||[]).concat(a.plotBands||[]),function(t){n.addPlotBandOrLine(t)}),n._addedPlotLB=!0)),vi([g,f,m],function(t){var e;for(e in t)t[e].isActive?t[e].isActive=!1:(t[e].destroy(),delete t[e])}),b&&(t=n.getLinePath(b),n.axisLine?n.axisLine.animate({d:t}):n.axisLine=o.path(t).attr({stroke:a.lineColor,"stroke-width":b,zIndex:7}).add(n.axisGroup),n.axisLine[L?"show":"hide"]()),p&&L&&(p[p.isNew?"attr":"animate"](n.getTitlePosition()),p.isNew=!1),v&&v.enabled){var P,S,A,C=n.stackTotalGroup;C||(n.stackTotalGroup=C=o.g("stack-labels").attr({visibility:Ye,zIndex:6}).add()),C.translate(r.plotLeft,r.plotTop);for(P in u){S=u[P];for(A in S)S[A].render(C)}}n.isDirty=!1},removePlotBandOrLine:function(t){for(var e=this.plotLinesAndBands,i=e.length;i--;)e[i].id===t&&e[i].destroy()},setTitle:function(t,e){var i=this.chart,n=this.options,r=this.axisTitle;n.title=ki(n.title,t),this.axisTitle=r&&r.destroy(),this.isDirty=!0,u(e,!0)&&i.redraw()},redraw:function(){var t=this,e=t.chart;e.tracker.resetTracker&&e.tracker.resetTracker(!0),t.render(),vi(t.plotLinesAndBands,function(t){t.render()}),vi(t.series,function(t){t.isDirty=!0})},setCategories:function(t,e){var i=this,n=i.chart;i.categories=i.userOptions.categories=t,vi(i.series,function(t){t.translate(),t.setTooltipPoints(!0)}),i.isDirty=!0,u(e,!0)&&n.redraw()},destroy:function(){var t,e=this,i=e.stacks;Ti(e);for(t in i)C(i[t]),i[t]=null;vi([e.ticks,e.minorTicks,e.alternateBands,e.plotLinesAndBands],function(t){C(t)}),vi(["stackTotalGroup","axisLine","axisGroup","gridGroup","labelGroup","axisTitle"],function(t){e[t]&&(e[t]=e[t].destroy())})}},N.prototype={destroy:function(){vi(this.crosshairs,function(t){t&&t.destroy()}),this.label&&(this.label=this.label.destroy())},move:function(e,i,n,r){var o=this,a=o.now,s=o.options.animation!==!1&&!o.isHidden;t(a,{x:s?(2*a.x+e)/3:e,y:s?(a.y+i)/2:i,anchorX:s?(2*a.anchorX+n)/3:n,anchorY:s?(a.anchorY+r)/2:r}),o.label.attr(a),s&&(xe(e-a.x)>1||xe(i-a.y)>1)&&(clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){o&&o.move(e,i,n,r)},32))},hide:function(){if(!this.isHidden){var t=this.chart.hoverPoints;this.label.hide(),t&&vi(t,function(t){t.setState()}),this.chart.hoverPoints=null,this.isHidden=!0}},hideCrosshairs:function(){vi(this.crosshairs,function(t){t&&t.hide()})},getAnchor:function(t,e){var i,n,r=this.chart,o=r.inverted,a=0,s=0;return t=p(t),i=t[0].tooltipPos,i||(vi(t,function(t){n=t.series.yAxis,a+=t.plotX,s+=(t.plotLow?(t.plotLow+t.plotHigh)/2:t.plotY)+(!o&&n?n.top-r.plotTop:0)}),a/=t.length,s/=t.length,i=[o?r.plotWidth-s:a,this.shared&&!o&&t.length>1&&e?e.chartY-r.plotTop:o?r.plotHeight-a:s]),bi(i,ge)},getPosition:function(t,e,i){var n,r=this.chart,o=r.plotLeft,a=r.plotTop,s=r.plotWidth,l=r.plotHeight,h=u(this.options.distance,12),c=i.plotX,d=i.plotY,p=c+o+(r.inverted?h:-t-h),g=d-e+a+15;return 7>p&&(p=o+ve(c,0)+h),p+t>o+s&&(p-=p+t-(o+s),g=d-e+a-h,n=!0),a+5>g&&(g=a+5,n&&d>=g&&g+e>=d&&(g=d+a+h)),g+e>a+l&&(g=ve(a,a+l-e-h)),{x:p,y:g}},refresh:function(t,e){function i(){var t,e=this,i=e.points||p(e),n=i[0].series;return t=[n.tooltipHeaderFormatter(i[0].key)],vi(i,function(e){n=e.series,t.push(n.tooltipFormatter&&n.tooltipFormatter(e)||e.point.tooltipFormatter(n.tooltipOptions.pointFormat))}),t.push(m.footerFormat||""),t.join("")}var n,r,o,a,s,l,h,c,d=this,g=d.chart,f=d.label,m=d.options,v={},y=[],x=m.formatter||i,b=g.hoverPoints,k=m.crosshairs,w=d.shared;if(a=d.getAnchor(t,e),n=a[0],r=a[1],!w||t.series&&t.series.noSharedTooltip?v=t.getLabelConfig():(g.hoverPoints=t,b&&vi(b,function(t){t.setState()}),vi(t,function(t){t.setState($e),y.push(t.getLabelConfig())}),v={x:t[0].category,y:t[0].y},v.points=y,t=t[0]),s=x.call(v),c=t.series,o=w||!c.isCartesian||c.tooltipOutsidePlot||g.isInsidePlot(n,r),s!==!1&&o?(d.isHidden&&f.show(),f.attr({text:s}),h=m.borderColor||t.color||c.color||"#606060",f.attr({stroke:h}),l=(m.positioner||d.getPosition).call(d,f.width,f.height,{plotX:n,plotY:r}),d.move(ge(l.x),ge(l.y),n+g.plotLeft,r+g.plotTop),d.isHidden=!1):this.hide(),k){k=p(k);
11
+ for(var T,L,P,S=k.length;S--;)P=t.series[S?"yAxis":"xAxis"],k[S]&&P&&(T=P.getPlotLinePath(S?u(t.stackY,t.y):t.x,1),d.crosshairs[S]?d.crosshairs[S].attr({d:T,visibility:Ye}):(L={"stroke-width":k[S].width||1,stroke:k[S].color||"#C0C0C0",zIndex:k[S].zIndex||2},k[S].dashStyle&&(L.dashstyle=k[S].dashStyle),d.crosshairs[S]=g.renderer.path(T).attr(L).add()))}Li(g,"tooltipRefresh",{text:s,x:n+g.plotLeft,y:r+g.plotTop,borderColor:h})}},F.prototype={normalizeMouseEvent:function(e){var i,n,r,o;return e=e||pe.event,e.target||(e.target=e.srcElement),e=Pi(e),o=e.touches?e.touches.item(0):e,this.chartPosition=i=xi(this.chart.container),o.pageX===V?(n=e.x,r=e.y):(n=o.pageX-i.left,r=o.pageY-i.top),t(e,{chartX:ge(n),chartY:ge(r)})},getMouseCoordinates:function(t){var e={xAxis:[],yAxis:[]},i=this.chart;return vi(i.axes,function(n){var r=n.isXAxis,o=i.inverted?!r:r;e[r?"xAxis":"yAxis"].push({axis:n,value:n.translate((o?t.chartX-i.plotLeft:n.top+n.len-t.chartY)-n.minPixelPadding,!0)})}),e},getIndex:function(t){var e=this.chart;return e.inverted?e.plotHeight+e.plotTop-t.chartY:t.chartX-e.plotLeft},onmousemove:function(t){var e,i,n,r,o=this,a=o.chart,s=a.series,l=a.tooltip,h=a.hoverPoint,c=a.hoverSeries,d=a.chartWidth,p=o.getIndex(t);if(l&&o.options.tooltip.shared&&(!c||!c.noSharedTooltip)){for(i=[],n=s.length,r=0;n>r;r++)s[r].visible&&s[r].options.enableMouseTracking!==!1&&!s[r].noSharedTooltip&&s[r].tooltipPoints.length&&(e=s[r].tooltipPoints[p],e._dist=xe(p-e[s[r].xAxis.tooltipPosName||"plotX"]),d=ye(d,e._dist),i.push(e));for(n=i.length;n--;)i[n]._dist>d&&i.splice(n,1);i.length&&i[0].plotX!==o.hoverX&&(l.refresh(i,t),o.hoverX=i[0].plotX)}c&&c.tracker&&(e=c.tooltipPoints[p],e&&e!==h&&e.onMouseOver())},resetTracker:function(t){var e=this,i=e.chart,n=i.hoverSeries,r=i.hoverPoint,o=i.tooltip,a=o&&o.shared?i.hoverPoints:r;t=t&&o&&a,t&&p(a)[0].plotX===V&&(t=!1),t?o.refresh(a):(r&&r.onMouseOut(),n&&n.onMouseOut(),o&&(o.hide(),o.hideCrosshairs()),e.hoverX=null)},setDOMEvents:function(){function e(){if(r.selectionMarker){var t,n={xAxis:[],yAxis:[]},s=r.selectionMarker.getBBox(),l=s.x-o.plotLeft,h=s.y-o.plotTop;i&&(vi(o.axes,function(e){if(e.options.zoomEnabled!==!1){var i=e.isXAxis,r=o.inverted?!i:i,a=e.translate(r?l:o.plotHeight-h-s.height,!0,0,0,1),c=e.translate((r?l+s.width:o.plotHeight-h)-2*e.minPixelPadding,!0,0,0,1);isNaN(a)||isNaN(c)||(n[i?"xAxis":"yAxis"].push({axis:e,min:ye(a,c),max:ve(a,c)}),t=!0)}}),t&&Li(o,"selection",n,function(t){o.zoom(t)})),r.selectionMarker=r.selectionMarker.destroy()}o&&(g(a,{cursor:"auto"}),o.cancelClick=i,o.mouseIsDown=i=!1),Ti(de,Oe?"touchend":"mouseup",e)}var i,n=!0,r=this,o=r.chart,a=o.container,s=r.zoomX&&!o.inverted||r.zoomY&&o.inverted,l=r.zoomY&&!o.inverted||r.zoomX&&o.inverted;r.hideTooltipOnMouseMove=function(t){t=Pi(t),r.chartPosition&&o.hoverSeries&&o.hoverSeries.isCartesian&&!o.isInsidePlot(t.pageX-r.chartPosition.left-o.plotLeft,t.pageY-r.chartPosition.top-o.plotTop)&&r.resetTracker()},r.hideTooltipOnMouseLeave=function(){r.resetTracker(),r.chartPosition=null},a.onmousedown=function(t){t=r.normalizeMouseEvent(t),!Oe&&t.preventDefault&&t.preventDefault(),o.mouseIsDown=!0,o.cancelClick=!1,o.mouseDownX=r.mouseDownX=t.chartX,r.mouseDownY=t.chartY,wi(de,Oe?"touchend":"mouseup",e)};var h=function(t){if(!(t&&t.touches&&t.touches.length>1)){t=r.normalizeMouseEvent(t),Oe||(t.returnValue=!1);var e=t.chartX,a=t.chartY,h=!o.isInsidePlot(e-o.plotLeft,a-o.plotTop);if(Oe&&"touchstart"===t.type&&(d(t.target,"isTracker")?o.runTrackerClick||t.preventDefault():o.runChartClick||h||t.preventDefault()),h&&(e<o.plotLeft?e=o.plotLeft:e>o.plotLeft+o.plotWidth&&(e=o.plotLeft+o.plotWidth),a<o.plotTop?a=o.plotTop:a>o.plotTop+o.plotHeight&&(a=o.plotTop+o.plotHeight)),o.mouseIsDown&&"touchstart"!==t.type&&(i=Math.sqrt(Math.pow(r.mouseDownX-e,2)+Math.pow(r.mouseDownY-a,2)),i>10)){var c=o.isInsidePlot(r.mouseDownX-o.plotLeft,r.mouseDownY-o.plotTop);if(o.hasCartesianSeries&&(r.zoomX||r.zoomY)&&c&&(r.selectionMarker||(r.selectionMarker=o.renderer.rect(o.plotLeft,o.plotTop,s?1:o.plotWidth,l?1:o.plotHeight,0).attr({fill:r.options.chart.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add())),r.selectionMarker&&s){var p=e-r.mouseDownX;r.selectionMarker.attr({width:xe(p),x:(p>0?0:p)+r.mouseDownX})}if(r.selectionMarker&&l){var u=a-r.mouseDownY;r.selectionMarker.attr({height:xe(u),y:(u>0?0:u)+r.mouseDownY})}c&&!r.selectionMarker&&r.options.chart.panning&&o.pan(e)}return h||r.onmousemove(t),n=h,h||!o.hasCartesianSeries}};a.onmousemove=h,wi(a,"mouseleave",r.hideTooltipOnMouseLeave),wi(de,"mousemove",r.hideTooltipOnMouseMove),a.ontouchstart=function(t){(r.zoomX||r.zoomY)&&a.onmousedown(t),h(t)},a.ontouchmove=h,a.ontouchend=function(){i&&r.resetTracker()},a.onclick=function(e){var i,n,a=o.hoverPoint;e=r.normalizeMouseEvent(e),e.cancelBubble=!0,o.cancelClick||(a&&(d(e.target,"isTracker")||d(e.target.parentNode,"isTracker"))?(i=a.plotX,n=a.plotY,t(a,{pageX:r.chartPosition.left+o.plotLeft+(o.inverted?o.plotWidth-n:i),pageY:r.chartPosition.top+o.plotTop+(o.inverted?o.plotHeight-i:n)}),Li(a.series,"click",t(e,{point:a})),a.firePointEvent("click",e)):(t(e,r.getMouseCoordinates(e)),o.isInsidePlot(e.chartX-o.plotLeft,e.chartY-o.plotTop)&&Li(o,"click",e)))}},destroy:function(){var t=this,e=t.chart,i=e.container;e.trackerGroup&&(e.trackerGroup=e.trackerGroup.destroy()),Ti(i,"mouseleave",t.hideTooltipOnMouseLeave),Ti(de,"mousemove",t.hideTooltipOnMouseMove),i.onclick=i.onmousedown=i.onmousemove=i.ontouchstart=i.ontouchend=i.ontouchmove=null,clearInterval(this.tooltipTimeout)},init:function(t,e){t.trackerGroup||(t.trackerGroup=t.renderer.g("tracker").attr({zIndex:9}).add()),e.enabled&&(t.tooltip=new N(t,e)),this.setDOMEvents()}},Y.prototype={init:function(t){var e=this,n=e.options=t.options.legend;if(n.enabled){var r=n.itemStyle,o=u(n.padding,8),a=n.itemMarginTop||0;e.baseline=i(r.fontSize)+3+a,e.itemStyle=r,e.itemHiddenStyle=ki(r,n.itemHiddenStyle),e.itemMarginTop=a,e.padding=o,e.initialItemX=o,e.initialItemY=o-5,e.maxItemWidth=0,e.chart=t,e.itemHeight=0,e.lastLineHeight=0,e.render(),wi(e.chart,"endResize",function(){e.positionCheckboxes()})}},colorizeItem:function(t,e){var i,n,r=this,o=r.options,a=t.legendItem,s=t.legendLine,l=t.legendSymbol,h=r.itemHiddenStyle.color,c=e?o.itemStyle.color:h,d=e?t.color:h,p=t.options&&t.options.marker,u={stroke:d,fill:d};if(a&&a.css({fill:c}),s&&s.attr({stroke:d}),l){if(p){p=t.convertAttribs(p);for(i in p)n=p[i],n!==V&&(u[i]=n)}l.attr(u)}},positionItem:function(t){var e=this,i=e.options,n=i.symbolPadding,r=!i.rtl,o=t._legendItemPos,a=o[0],s=o[1],l=t.checkbox;t.legendGroup&&t.legendGroup.translate(r?a:e.legendWidth-a-2*n-4,s),l&&(l.x=a,l.y=s)},destroyItem:function(t){var e=t.checkbox;vi(["legendItem","legendLine","legendSymbol","legendGroup"],function(e){t[e]&&t[e].destroy()}),e&&M(t.checkbox)},destroy:function(){var t=this,e=t.group,i=t.box;i&&(t.box=i.destroy()),e&&(t.group=e.destroy())},positionCheckboxes:function(){var t=this;vi(t.allItems,function(e){var i=e.checkbox,n=t.group.alignAttr;i&&g(i,{left:n.translateX+e.legendItemWidth+i.x-20+je,top:n.translateY+i.y+3+je})})},renderItem:function(t){var e,i,n,r=this,o=r.chart,a=o.renderer,s=r.options,l="horizontal"===s.layout,h=s.symbolWidth,c=s.symbolPadding,d=r.itemStyle,p=r.itemHiddenStyle,u=r.padding,g=!s.rtl,m=s.width,v=s.itemMarginBottom||0,y=r.itemMarginTop,x=r.initialItemX,b=t.legendItem,k=t.series||t,w=k.options,T=w.showCheckbox;b||(t.legendGroup=a.g("legend-item").attr({zIndex:1}).add(r.scrollGroup),k.drawLegendSymbol(r,t),t.legendItem=b=a.text(s.labelFormatter.call(t),g?h+c:-c,r.baseline,s.useHTML).css(ki(t.visible?d:p)).attr({align:g?"left":"right",zIndex:2}).add(t.legendGroup),t.legendGroup.on("mouseover",function(){t.setState($e),b.css(r.options.itemHoverStyle)}).on("mouseout",function(){b.css(t.visible?d:p),t.setState()}).on("click",function(e){var i="legendItemClick",n=function(){t.setVisible()};e={browserEvent:e},t.firePointEvent?t.firePointEvent(i,e,n):Li(t,i,e,n)}),r.colorizeItem(t,t.visible),w&&T&&(t.checkbox=f("input",{type:"checkbox",checked:t.selected,defaultChecked:t.selected},s.itemCheckboxStyle,o.container),wi(t.checkbox,"click",function(e){var i=e.target;Li(t,"checkboxClick",{checked:i.checked},function(){t.select()})}))),i=b.getBBox(),n=t.legendItemWidth=s.itemWidth||h+c+i.width+u+(T?20:0),r.itemHeight=e=i.height,l&&r.itemX-x+n>(m||o.chartWidth-2*u-x)&&(r.itemX=x,r.itemY+=y+r.lastLineHeight+v,r.lastLineHeight=0),r.maxItemWidth=ve(r.maxItemWidth,n),r.lastItemY=y+r.itemY+v,r.lastLineHeight=ve(e,r.lastLineHeight),t._legendItemPos=[r.itemX,r.itemY],l?r.itemX+=n:(r.itemY+=y+e+v,r.lastLineHeight=e),r.offsetWidth=m||ve(l?r.itemX-x:n,r.offsetWidth)},render:function(){var e,i,n,r,o=this,a=o.chart,s=a.renderer,l=o.group,h=o.box,c=o.options,d=o.padding,p=c.borderWidth,u=c.backgroundColor;o.itemX=o.initialItemX,o.itemY=o.initialItemY,o.offsetWidth=0,o.lastItemY=0,l||(o.group=l=s.g("legend").attr({zIndex:7}).add(),o.contentGroup=s.g().attr({zIndex:1}).add(l),o.scrollGroup=s.g().add(o.contentGroup),o.clipRect=s.clipRect(0,0,9999,a.chartHeight),o.contentGroup.clip(o.clipRect)),e=[],vi(a.series,function(t){var i=t.options;i.showInLegend&&(e=e.concat(t.legendItems||("point"===i.legendType?t.data:t)))}),P(e,function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),c.reversed&&e.reverse(),o.allItems=e,o.display=i=!!e.length,vi(e,function(t){o.renderItem(t)}),n=c.width||o.offsetWidth,r=o.lastItemY+o.lastLineHeight,r=o.handleOverflow(r),(p||u)&&(n+=d,r+=d,h?n>0&&r>0&&(h[h.isNew?"attr":"animate"](h.crisp(null,null,null,n,r)),h.isNew=!1):(o.box=h=s.rect(0,0,n,r,c.borderRadius,p||0).attr({stroke:c.borderColor,"stroke-width":p||0,fill:u||Ve}).add(l).shadow(c.shadow),h.isNew=!0),h[i?"show":"hide"]()),o.legendWidth=n,o.legendHeight=r,vi(e,function(t){o.positionItem(t)}),i&&l.align(t({width:n,height:r},c),!0,a.spacingBox),a.isResizing||this.positionCheckboxes()},handleOverflow:function(t){var e,i,n=this,r=this.chart,o=r.renderer,a=this.options,s=a.y,l="top"===a.verticalAlign,h=r.spacingBox.height+(l?-s:s)-this.padding,c=a.maxHeight,d=this.clipRect,p=a.navigation,g=u(p.animation,!0),f=p.arrowSize||12,m=this.nav;return"horizontal"===a.layout&&(h/=2),c&&(h=ye(h,c)),t>h?(this.clipHeight=i=h-20,this.pageCount=e=me(t/i),this.currentPage=u(this.currentPage,1),this.fullHeight=t,d.attr({height:i}),m||(this.nav=m=o.g().attr({zIndex:1}).add(this.group),this.up=o.symbol("triangle",0,0,f,f).on("click",function(){n.scroll(-1,g)}).add(m),this.pager=o.text("",15,10).css(p.style).add(m),this.down=o.symbol("triangle-down",0,0,f,f).on("click",function(){n.scroll(1,g)}).add(m)),n.scroll(0),t=h):m&&(d.attr({height:r.chartHeight}),m.hide(),this.scrollGroup.attr({translateY:1})),t},scroll:function(t,e){var i=this.pageCount,n=this.currentPage+t,r=this.clipHeight,o=this.options.navigation,a=o.activeColor,s=o.inactiveColor,l=this.pager,h=this.padding;n>i&&(n=i),n>0&&(e!==V&&D(e,this.chart),this.nav.attr({translateX:h,translateY:r+7,visibility:Ye}),this.up.attr({fill:1===n?s:a}).css({cursor:1===n?"default":"pointer"}),l.attr({text:n+"/"+this.pageCount}),this.down.attr({x:18+this.pager.getBBox().width,fill:n===i?s:a}).css({cursor:n===i?"default":"pointer"}),this.scrollGroup.animate({translateY:-ye(r*(n-1),this.fullHeight-r+h)+1}),l.attr({text:n+"/"+i}),this.currentPage=n)}},j.prototype={initSeries:function(t){var e=this,i=e.options.chart,n=t.type||i.type||i.defaultSeriesType,r=new di[n];return r.init(this,t),r},addSeries:function(t,e,i){var n,r=this;return t&&(D(i,r),e=u(e,!0),Li(r,"addSeries",{options:t},function(){n=r.initSeries(t),r.isDirtyLegend=!0,e&&r.redraw()})),n},isInsidePlot:function(t,e,i){var n=i?e:t,r=i?t:e;return n>=0&&n<=this.plotWidth&&r>=0&&r<=this.plotHeight},adjustTickAmounts:function(){this.options.chart.alignTicks!==!1&&vi(this.axes,function(t){t.adjustTickAmount()}),this.maxTicks=null},redraw:function(t){var e,i,n=this,r=n.axes,o=n.series,a=n.tracker,s=n.legend,l=n.isDirtyLegend,h=n.isDirtyBox,c=o.length,d=c,p=n.renderer,u=p.isHidden(),g=[];for(D(t,n),u&&n.cloneRenderTo();d--;)if(i=o[d],i.isDirty&&i.options.stacking){e=!0;break}if(e)for(d=c;d--;)i=o[d],i.options.stacking&&(i.isDirty=!0);vi(o,function(t){t.isDirty&&"point"===t.options.legendType&&(l=!0)}),l&&s.options.enabled&&(s.render(),n.isDirtyLegend=!1),n.hasCartesianSeries&&(n.isResizing||(n.maxTicks=null,vi(r,function(t){t.setScale()})),n.adjustTickAmounts(),n.getMargins(),vi(r,function(t){t.isDirtyExtremes&&(t.isDirtyExtremes=!1,g.push(function(){Li(t,"afterSetExtremes",t.getExtremes())})),(t.isDirty||h||e)&&(t.redraw(),h=!0)})),h&&n.drawChartBox(),vi(o,function(t){t.isDirty&&t.visible&&(!t.isCartesian||t.xAxis)&&t.redraw()}),a&&a.resetTracker&&a.resetTracker(!0),p.draw(),Li(n,"redraw"),u&&n.cloneRenderTo(!0),vi(g,function(t){t.call()})},showLoading:function(e){var i=this,n=i.options,r=i.loadingDiv,o=n.loading;r||(i.loadingDiv=r=f(Ee,{className:Fe+"loading"},t(o.style,{left:i.plotLeft+je,top:i.plotTop+je,width:i.plotWidth+je,height:i.plotHeight+je,zIndex:10,display:Ve}),i.container),i.loadingSpan=f("span",null,o.labelStyle,r)),i.loadingSpan.innerHTML=e||n.lang.loading,i.loadingShown||(g(r,{opacity:0,display:""}),Si(r,{opacity:o.style.opacity},{duration:o.showDuration||0}),i.loadingShown=!0)},hideLoading:function(){var t=this.options,e=this.loadingDiv;e&&Si(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){g(e,{display:Ve})}}),this.loadingShown=!1},get:function(t){var e,i,n,r=this,o=r.axes,a=r.series;for(e=0;e<o.length;e++)if(o[e].options.id===t)return o[e];for(e=0;e<a.length;e++)if(a[e].options.id===t)return a[e];for(e=0;e<a.length;e++)for(n=a[e].points||[],i=0;i<n.length;i++)if(n[i].id===t)return n[i];return null},getAxes:function(){var t,e,i=this,n=this.options,r=n.xAxis||{},o=n.yAxis||{};r=p(r),vi(r,function(t,e){t.index=e,t.isX=!0}),o=p(o),vi(o,function(t,e){t.index=e}),t=r.concat(o),vi(t,function(t){e=new X(i,t)}),i.adjustTickAmounts()},getSelectedPoints:function(){var t=[];return vi(this.series,function(e){t=t.concat(yi(e.points,function(t){return t.selected}))}),t},getSelectedSeries:function(){return yi(this.series,function(t){return t.selected})},showResetZoom:function(){var t=this,e=_.lang,i=t.options.chart.resetZoomButton,n=i.theme,r=n.states,o="chart"===i.relativeTo?null:"plotBox";this.resetZoomButton=t.renderer.button(e.resetZoom,null,null,function(){t.zoomOut()},n,r&&r.hover).attr({align:i.position.align,title:e.resetZoomTitle}).add().align(i.position,!1,t[o]),this.resetZoomButton.alignTo=o},zoomOut:function(){var t=this,e=t.resetZoomButton;Li(t,"selection",{resetSelection:!0},function(){t.zoom()}),e&&(t.resetZoomButton=e.destroy())},zoom:function(t){var e,i=this;!t||t.resetSelection?vi(i.axes,function(t){e=t.zoom()}):vi(t.xAxis.concat(t.yAxis),function(t){var n=t.axis;i.tracker[n.isXAxis?"zoomX":"zoomY"]&&(e=n.zoom(t.min,t.max))}),i.resetZoomButton||i.showResetZoom(),e&&i.redraw(u(i.options.chart.animation,i.pointCount<100))},pan:function(t){var e=this,i=e.xAxis[0],n=e.mouseDownX,r=i.pointRange/2,o=i.getExtremes(),a=i.translate(n-t,!0)+r,s=i.translate(n+e.plotWidth-t,!0)-r,l=e.hoverPoints;l&&vi(l,function(t){t.setState()}),i.series.length&&a>ye(o.dataMin,o.min)&&s<ve(o.dataMax,o.max)&&i.setExtremes(a,s,!0,!1,{trigger:"pan"}),e.mouseDownX=t,g(e.container,{cursor:"move"})},setTitle:function(t,e){var i,n,r=this,o=r.options;r.chartTitleOptions=i=ki(o.title,t),r.chartSubtitleOptions=n=ki(o.subtitle,e),vi([["title",t,i],["subtitle",e,n]],function(t){var e=t[0],i=r[e],n=t[1],o=t[2];i&&n&&(r[e]=i=i.destroy()),o&&o.text&&!i&&(r[e]=r.renderer.text(o.text,0,0,o.useHTML).attr({align:o.align,"class":Fe+e,zIndex:o.zIndex||4}).css(o.style).add().align(o,!1,r.spacingBox))})},getChartSize:function(){var t=this,e=t.options.chart,i=t.renderToClone||t.renderTo;t.containerWidth=gi(i,"width"),t.containerHeight=gi(i,"height"),t.chartWidth=e.width||t.containerWidth||600,t.chartHeight=e.height||(t.containerHeight>19?t.containerHeight:400)},cloneRenderTo:function(t){var e=this.renderToClone,i=this.container;t?e&&(this.renderTo.appendChild(i),M(e),delete this.renderToClone):(i&&this.renderTo.removeChild(i),this.renderToClone=e=this.renderTo.cloneNode(0),g(e,{position:Ge,top:"-9999px",display:"block"}),de.body.appendChild(e),i&&e.appendChild(i))},getContainer:function(){var e,i,r,o,a,s=this,l=s.options.chart;s.renderTo=o=l.renderTo,a=Fe+He++,n(o)&&(s.renderTo=o=de.getElementById(o)),o||I(13,!0),o.innerHTML="",o.offsetWidth||s.cloneRenderTo(),s.getChartSize(),i=s.chartWidth,r=s.chartHeight,s.container=e=f(Ee,{className:Fe+"container"+(l.className?" "+l.className:""),id:a},t({position:Xe,overflow:Ne,width:i+je,height:r+je,textAlign:"left",lineHeight:"normal",zIndex:0},l.style),s.renderToClone||o),s.renderer=l.forExport?new Di(e,i,r,!0):new Z(e,i,r),ze&&s.renderer.create(s,e,i,r)},getMargins:function(){var t,e,i=this,n=i.options.chart,r=n.spacingTop,o=n.spacingRight,a=n.spacingBottom,s=n.spacingLeft,l=i.legend,h=i.optionsMarginTop,d=i.optionsMarginLeft,p=i.optionsMarginRight,g=i.optionsMarginBottom,f=i.chartTitleOptions,m=i.chartSubtitleOptions,v=i.options.legend,y=u(v.margin,10),x=v.x,b=v.y,k=v.align,w=v.verticalAlign;i.resetMargins(),t=i.axisOffset,!i.title&&!i.subtitle||c(i.optionsMarginTop)||(e=ve(i.title&&!f.floating&&!f.verticalAlign&&f.y||0,i.subtitle&&!m.floating&&!m.verticalAlign&&m.y||0),e&&(i.plotTop=ve(i.plotTop,e+u(f.margin,15)+r))),l.display&&!v.floating&&("right"===k?c(p)||(i.marginRight=ve(i.marginRight,l.legendWidth-x+y+o)):"left"===k?c(d)||(i.plotLeft=ve(i.plotLeft,l.legendWidth+x+y+s)):"top"===w?c(h)||(i.plotTop=ve(i.plotTop,l.legendHeight+b+y+r)):"bottom"===w&&(c(g)||(i.marginBottom=ve(i.marginBottom,l.legendHeight-b+y+a)))),i.extraBottomMargin&&(i.marginBottom+=i.extraBottomMargin),i.extraTopMargin&&(i.plotTop+=i.extraTopMargin),i.hasCartesianSeries&&vi(i.axes,function(t){t.getOffset()}),c(d)||(i.plotLeft+=t[3]),c(h)||(i.plotTop+=t[0]),c(g)||(i.marginBottom+=t[2]),c(p)||(i.marginRight+=t[1]),i.setChartSize()},initReflow:function(){function t(t){var o=n.width||gi(r,"width"),a=n.height||gi(r,"height"),s=t?t.target:pe;o&&a&&(s===pe||s===de)&&((o!==i.containerWidth||a!==i.containerHeight)&&(clearTimeout(e),i.reflowTimeout=e=setTimeout(function(){i.container&&i.resize(o,a,!1)},100)),i.containerWidth=o,i.containerHeight=a)}var e,i=this,n=i.options.chart,r=i.renderTo;wi(pe,"resize",t),wi(i,"destroy",function(){Ti(pe,"resize",t)})},resize:function(t,e,i){var n,r,o,a,s=this,l=s.resetZoomButton,h=s.title,d=s.subtitle;s.isResizing+=1,a=function(){s&&Li(s,"endResize",null,function(){s.isResizing-=1})},D(i,s),s.oldChartHeight=s.chartHeight,s.oldChartWidth=s.chartWidth,c(t)&&(s.chartWidth=n=ge(t)),c(e)&&(s.chartHeight=r=ge(e)),g(s.container,{width:n+je,height:r+je}),s.renderer.setSize(n,r,i),s.plotWidth=n-s.plotLeft-s.marginRight,s.plotHeight=r-s.plotTop-s.marginBottom,s.maxTicks=null,vi(s.axes,function(t){t.isDirty=!0,t.setScale()}),vi(s.series,function(t){t.isDirty=!0}),s.isDirtyLegend=!0,s.isDirtyBox=!0,s.getMargins(),o=s.spacingBox,h&&h.align(null,null,o),d&&d.align(null,null,o),l&&l.align&&l.align(null,null,s[l.alignTo]),s.redraw(i),s.oldChartHeight=null,Li(s,"resize"),$===!1?a():setTimeout(a,$&&$.duration||500)},setChartSize:function(){var t,e,i,n,r,o=this,a=o.inverted,s=o.chartWidth,l=o.chartHeight,h=o.options.chart,c=h.spacingTop,d=h.spacingRight,p=h.spacingBottom,u=h.spacingLeft;o.plotLeft=t=ge(o.plotLeft),o.plotTop=e=ge(o.plotTop),o.plotWidth=i=ge(s-t-o.marginRight),o.plotHeight=n=ge(l-e-o.marginBottom),o.plotSizeX=a?n:i,o.plotSizeY=a?i:n,o.plotBorderWidth=r=h.plotBorderWidth||0,o.spacingBox={x:u,y:c,width:s-u-d,height:l-c-p},o.plotBox={x:t,y:e,width:i,height:n},o.clipBox={x:r/2,y:r/2,width:o.plotSizeX-r,height:o.plotSizeY-r},vi(o.axes,function(t){t.setAxisSize(),t.setAxisTranslation()})},resetMargins:function(){var t=this,e=t.options.chart,i=e.spacingTop,n=e.spacingRight,r=e.spacingBottom,o=e.spacingLeft;t.plotTop=u(t.optionsMarginTop,i),t.marginRight=u(t.optionsMarginRight,n),t.marginBottom=u(t.optionsMarginBottom,r),t.plotLeft=u(t.optionsMarginLeft,o),t.axisOffset=[0,0,0,0]},drawChartBox:function(){var t,e,i=this,n=i.options.chart,r=i.renderer,o=i.chartWidth,a=i.chartHeight,s=i.chartBackground,l=i.plotBackground,h=i.plotBorder,c=i.plotBGImage,d=n.borderWidth||0,p=n.backgroundColor,u=n.plotBackgroundColor,g=n.plotBackgroundImage,f=n.plotBorderWidth||0,m=i.plotLeft,v=i.plotTop,y=i.plotWidth,x=i.plotHeight,b=i.plotBox,k=i.clipRect,w=i.clipBox;t=d+(n.shadow?8:0),(d||p)&&(s?s.animate(s.crisp(null,null,null,o-t,a-t)):(e={fill:p||Ve},d&&(e.stroke=n.borderColor,e["stroke-width"]=d),i.chartBackground=r.rect(t/2,t/2,o-t,a-t,n.borderRadius,d).attr(e).add().shadow(n.shadow))),u&&(l?l.animate(b):i.plotBackground=r.rect(m,v,y,x,0).attr({fill:u}).add().shadow(n.plotShadow)),g&&(c?c.animate(b):i.plotBGImage=r.image(g,m,v,y,x).add()),k?k.animate({width:w.width,height:w.height}):i.clipRect=r.clipRect(w),f&&(h?h.animate(h.crisp(null,m,v,y,x)):i.plotBorder=r.rect(m,v,y,x,0,f).attr({stroke:n.plotBorderColor,"stroke-width":f,zIndex:1}).add()),i.isDirtyBox=!1},propFromSeries:function(){var t,e,i,n=this,r=n.options.chart,o=n.options.series;vi(["inverted","angular","polar"],function(a){for(t=di[r.type||r.defaultSeriesType],i=n[a]||r[a]||t&&t.prototype[a],e=o&&o.length;!i&&e--;)t=di[o[e].type],t&&t.prototype[a]&&(i=!0);n[a]=i})},render:function(){var e,n=this,r=n.axes,o=n.renderer,a=n.options,s=a.labels,l=a.credits;n.setTitle(),n.legend=new Y(n),vi(r,function(t){t.setScale()}),n.getMargins(),n.maxTicks=null,vi(r,function(t){t.setTickPositions(!0),t.setMaxTicks()}),n.adjustTickAmounts(),n.getMargins(),n.drawChartBox(),n.hasCartesianSeries&&vi(r,function(t){t.render()}),n.seriesGroup||(n.seriesGroup=o.g("series-group").attr({zIndex:3}).add()),vi(n.series,function(t){t.translate(),t.setTooltipPoints(),t.render()}),s.items&&vi(s.items,function(e){var r=t(s.style,e.style),a=i(r.left)+n.plotLeft,l=i(r.top)+n.plotTop+12;delete r.left,delete r.top,o.text(e.html,a,l).attr({zIndex:2}).css(r).add()}),l.enabled&&!n.credits&&(e=l.href,n.credits=o.text(l.text,0,0).on("click",function(){e&&(location.href=e)}).attr({align:l.position.align,zIndex:8}).css(l.style).add().align(l.position)),n.hasRendered=!0},destroy:function(){var t,e=this,i=e.axes,n=e.series,r=e.container,o=r&&r.parentNode;for(Li(e,"destroy"),Ti(e),t=i.length;t--;)i[t]=i[t].destroy();for(t=n.length;t--;)n[t]=n[t].destroy();vi(["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","tracker","scroller","rangeSelector","legend","resetZoomButton","tooltip","renderer"],function(t){var i=e[t];i&&i.destroy&&(e[t]=i.destroy())}),r&&(r.innerHTML="",Ti(r),o&&M(r));for(t in e)delete e[t]},firstRender:function(){var t=this,e=t.options,i=t.callback,n="onreadystatechange",r="complete";return!Be&&pe==pe.top&&de.readyState!==r||ze&&!pe.canvg?(ze?Wi.push(function(){t.firstRender()},e.global.canvasToolsURL):de.attachEvent(n,function(){de.detachEvent(n,t.firstRender),de.readyState===r&&t.firstRender()}),void 0):(t.getContainer(),Li(t,"init"),Highcharts.RangeSelector&&e.rangeSelector.enabled&&(t.rangeSelector=new Highcharts.RangeSelector(t)),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes(),vi(e.series||[],function(e){t.initSeries(e)}),Highcharts.Scroller&&(e.navigator.enabled||e.scrollbar.enabled)&&(t.scroller=new Highcharts.Scroller(t)),t.tracker=new F(t,e),t.render(),t.renderer.draw(),i&&i.apply(t,[t]),vi(t.callbacks,function(e){e.apply(t,[t])}),t.cloneRenderTo(!0),Li(t,"load"),void 0)},init:function(t){var e,i=this,n=i.options.chart;if(n.reflow!==!1&&wi(i,"load",i.initReflow),t)for(e in t)wi(i,e,t[e]);i.xAxis=[],i.yAxis=[],i.animation=ze?!1:u(n.animation,!0),i.setSize=i.resize,i.pointCount=0,i.counters=new L,i.firstRender()}},j.prototype.callbacks=[];var Ei=function(){};Ei.prototype={init:function(t,e,i){var n,r=this,o=t.chart.counters;return r.series=t,r.applyOptions(e,i),r.pointAttr={},t.options.colorByPoint&&(n=t.chart.options.colors,r.color=r.color||n[o.color++],o.wrapColor(n.length)),t.chart.pointCount++,r},applyOptions:function(e,i){var n=this,r=n.series,o=typeof e;n.config=e,"number"===o||null===e?n.y=e:"number"==typeof e[0]?(n.x=e[0],n.y=e[1]):"object"===o&&"number"!=typeof e.length?(t(n,e),n.options=e,e.dataLabels&&(r._hasPointLabels=!0),e.marker&&(r._hasPointMarkers=!0)):"string"==typeof e[0]&&(n.name=e[0],n.y=e[1]),n.x===V&&(n.x=i===V?r.autoIncrement():i)},destroy:function(){var t,e=this,i=e.series,n=i.chart,r=n.hoverPoints;n.pointCount--,r&&(e.setState(),h(r,e),r.length||(n.hoverPoints=null)),e===n.hoverPoint&&e.onMouseOut(),(e.graphic||e.dataLabel)&&(Ti(e),e.destroyElements()),e.legendItem&&n.legend.destroyItem(e);for(t in e)e[t]=null},destroyElements:function(){for(var t,e=this,i=["graphic","tracker","dataLabel","group","connector","shadowGroup"],n=6;n--;)t=i[n],e[t]&&(e[t]=e[t].destroy())},getLabelConfig:function(){var t=this;return{x:t.category,y:t.y,key:t.name||t.category,series:t.series,point:t,percentage:t.percentage,total:t.total||t.stackTotal}},select:function(t,e){var i=this,n=i.series,r=n.chart;t=u(t,!i.selected),i.firePointEvent(t?"select":"unselect",{accumulate:e},function(){i.selected=t,i.setState(t&&Je),e||vi(r.getSelectedPoints(),function(t){t.selected&&t!==i&&(t.selected=!1,t.setState(Ke),t.firePointEvent("unselect"))})})},onMouseOver:function(){var t=this,e=t.series,i=e.chart,n=i.tooltip,r=i.hoverPoint;r&&r!==t&&r.onMouseOut(),t.firePointEvent("mouseOver"),!n||n.shared&&!e.noSharedTooltip||n.refresh(t),t.setState($e),i.hoverPoint=t},onMouseOut:function(){var t=this.series.chart,e=t.hoverPoints;e&&-1!==mi(this,e)||(this.firePointEvent("mouseOut"),this.setState(),t.hoverPoint=null)},tooltipFormatter:function(t){var e,i,r,o,a,s,l,h=this,c=h.series,d=c.tooltipOptions,p=t.match(/\{(series|point)\.[a-zA-Z]+\}/g),g=/[{\.}]/,f={y:0,open:0,high:0,low:0,close:0,percentage:1,total:1};d.valuePrefix=d.valuePrefix||d.yPrefix,d.valueDecimals=d.valueDecimals||d.yDecimals,d.valueSuffix=d.valueSuffix||d.ySuffix;for(l in p)i=p[l],n(i)&&i!==t&&(a=(" "+i).split(g),e={point:h,series:c}[a[1]],s=a[2],e===h&&f.hasOwnProperty(s)?(o=f[s]?s:"value",r=(d[o+"Prefix"]||"")+y(h[s],u(d[o+"Decimals"],-1))+(d[o+"Suffix"]||"")):r=e[s],t=t.replace(i,r));return t},update:function(t,e,i){var n,o=this,a=o.series,s=o.graphic,l=a.data,h=l.length,c=a.chart;e=u(e,!0),o.firePointEvent("update",{options:t},function(){for(o.applyOptions(t),r(t)&&(a.getAttribs(),s&&s.attr(o.pointAttr[a.state])),n=0;h>n;n++)if(l[n]===o){a.xData[n]=o.x,a.yData[n]=o.y,a.options.data[n]=t;break}a.isDirty=!0,a.isDirtyData=!0,e&&c.redraw(i)})},remove:function(t,e){var i,n=this,r=n.series,o=r.chart,a=r.data,s=a.length;D(e,o),t=u(t,!0),n.firePointEvent("remove",null,function(){for(i=0;s>i;i++)if(a[i]===n){a.splice(i,1),r.options.data.splice(i,1),r.xData.splice(i,1),r.yData.splice(i,1);break}n.destroy(),r.isDirty=!0,r.isDirtyData=!0,t&&o.redraw()})},firePointEvent:function(t,e,i){var n=this,r=this.series,o=r.options;(o.point.events[t]||n.options&&n.options.events&&n.options.events[t])&&this.importEvents(),"click"===t&&o.allowPointSelect&&(i=function(t){n.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),Li(this,t,e,i)},importEvents:function(){if(!this.hasImportedEvents){var t,e=this,i=ki(e.series.options.point,e.options),n=i.events;e.events=n;for(t in n)wi(e,t,n[t]);this.hasImportedEvents=!0}},setState:function(t){var e,i=this,n=i.plotX,r=i.plotY,o=i.series,a=o.options.states,s=Mi[o.type].marker&&o.options.marker,l=s&&!s.enabled,h=s&&s.states[t],c=h&&h.enabled===!1,d=o.stateMarkerGraphic,p=o.chart,u=i.pointAttr;t=t||Ke,t===i.state||i.selected&&t!==Je||a[t]&&a[t].enabled===!1||t&&(c||l&&!h.enabled)||(i.graphic?(e=s&&i.graphic.symbolName&&u[t].r,i.graphic.attr(ki(u[t],e?{x:n-e,y:r-e,width:2*e,height:2*e}:{}))):(t&&h&&(e=h.radius,d?d.attr({x:n-e,y:r-e}):o.stateMarkerGraphic=d=p.renderer.symbol(o.symbol,n-e,r-e,2*e,2*e).attr(u[t]).add(o.markerGroup)),d&&d[t&&p.isInsidePlot(n,r)?"show":"hide"]()),i.state=t)}};var Gi=function(){};Gi.prototype={isCartesian:!0,type:"line",pointClass:Ei,sorted:!0,pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor",r:"radius"},init:function(e,i){var n,r,o=this;o.chart=e,o.options=i=o.setOptions(i),o.bindAxes(),t(o,{name:i.name,state:Ke,pointAttr:{},visible:i.visible!==!1,selected:i.selected===!0}),ze&&(i.animation=!1),r=i.events;for(n in r)wi(o,n,r[n]);(r&&r.click||i.point&&i.point.events&&i.point.events.click||i.allowPointSelect)&&(e.runTrackerClick=!0),o.getColor(),o.getSymbol(),o.setData(i.data,!1),o.isCartesian&&(e.hasCartesianSeries=!0),e.series.push(o),P(e.series,function(t,e){return(t.options.index||0)-(e.options.index||0)}),vi(e.series,function(t,e){t.index=e,t.name=t.name||"Series "+(e+1)})},bindAxes:function(){var t,e=this,i=e.options,n=e.chart;e.isCartesian&&vi(["xAxis","yAxis"],function(r){vi(n[r],function(n){t=n.options,(i[r]===t.index||i[r]===V&&0===t.index)&&(n.series.push(e),e[r]=n,n.isDirty=!0)})})},autoIncrement:function(){var t=this,e=t.options,i=t.xIncrement;return i=u(i,e.pointStart,0),t.pointInterval=u(t.pointInterval,e.pointInterval,1),t.xIncrement=i+t.pointInterval,i},getSegments:function(){var t,e=this,i=-1,n=[],r=e.points,o=r.length;if(o)if(e.options.connectNulls){for(t=o;t--;)null===r[t].y&&r.splice(t,1);r.length&&(n=[r])}else vi(r,function(t,e){null===t.y?(e>i+1&&n.push(r.slice(i+1,e)),i=e):e===o-1&&n.push(r.slice(i+1,e+1))});e.segments=n},setOptions:function(t){var e,i=this.chart,n=i.options,r=n.plotOptions,o=r[this.type],a=t.data;return t.data=null,e=ki(o,r.series,t),e.data=t.data=a,this.tooltipOptions=ki(n.tooltip,e.tooltip),null===o.marker&&delete e.marker,e},getColor:function(){var t=this.options,e=this.chart.options.colors,i=this.chart.counters;this.color=t.color||!t.colorByPoint&&e[i.color++]||"gray",i.wrapColor(e.length)},getSymbol:function(){var t=this,e=t.options.marker,i=t.chart,n=i.options.symbols,r=i.counters;t.symbol=e.symbol||n[r.symbol++],/^url/.test(t.symbol)&&(e.radius=0),r.wrapSymbol(n.length)},drawLegendSymbol:function(t){var e,i,n,r=this.options,o=r.marker,a=t.options,s=a.symbolWidth,l=this.chart.renderer,h=this.legendGroup,c=t.baseline;r.lineWidth&&(n={"stroke-width":r.lineWidth},r.dashStyle&&(n.dashstyle=r.dashStyle),this.legendLine=l.path([Ze,0,c-4,Ue,s,c-4]).attr(n).add(h)),o&&o.enabled&&(e=o.radius,this.legendSymbol=i=l.symbol(this.symbol,s/2-e,c-4-e,2*e,2*e).add(h))},addPoint:function(t,e,i,n){var r,o=this,a=o.data,s=o.graph,l=o.area,h=o.chart,c=o.xData,d=o.yData,p=s&&s.shift||0,g=o.options.data,f=o.pointClass.prototype;D(n,h),s&&i&&(s.shift=p+1),l&&(i&&(l.shift=p+1),l.isArea=!0),e=u(e,!0),r={series:o},f.applyOptions.apply(r,[t]),c.push(r.x),d.push(f.toYData?f.toYData.call(r):r.y),g.push(t),i&&(a[0]&&a[0].remove?a[0].remove(!1):(a.shift(),c.shift(),d.shift(),g.shift())),o.getAttribs(),o.isDirty=!0,o.isDirtyData=!0,e&&h.redraw()},setData:function(t,e){var i,r=this,s=r.points,l=r.options,h=r.initialColor,d=r.chart,p=null,g=r.xAxis,f=r.pointClass.prototype;r.xIncrement=null,r.pointRange=g&&g.categories?1:l.pointRange,c(h)&&(d.counters.color=h);var m,v=[],y=[],x=t?t.length:[],b=l.turboThreshold||1e3,k=r.pointArrayMap,w=k&&k.length;if(x>b){for(i=0;null===p&&x>i;)p=t[i],i++;if(a(p)){var T=u(l.pointStart,0),L=u(l.pointInterval,1);for(i=0;x>i;i++)v[i]=T,y[i]=t[i],T+=L;r.xIncrement=T}else if(o(p))if(w)for(i=0;x>i;i++)m=t[i],v[i]=m[0],y[i]=m.slice(1,w+1);else for(i=0;x>i;i++)m=t[i],v[i]=m[0],y[i]=m[1]}else for(i=0;x>i;i++)m={series:r},f.applyOptions.apply(m,[t[i]]),v[i]=m.x,y[i]=f.toYData?f.toYData.call(m):m.y;for(n(y[0])&&I(14,!0),r.data=[],r.options.data=t,r.xData=v,r.yData=y,i=s&&s.length||0;i--;)s[i]&&s[i].destroy&&s[i].destroy();g&&(g.minRange=g.userMinRange),r.isDirty=r.isDirtyData=d.isDirtyBox=!0,u(e,!0)&&d.redraw(!1)},remove:function(t,e){var i=this,n=i.chart;t=u(t,!0),i.isRemoving||(i.isRemoving=!0,Li(i,"remove",null,function(){i.destroy(),n.isDirtyLegend=n.isDirtyBox=!0,t&&n.redraw(e)
12
+ })),i.isRemoving=!1},processData:function(t){var e,i,n,r,o=this,a=o.xData,s=o.yData,l=a.length,h=0,c=l,d=o.xAxis,p=o.options,u=p.cropThreshold,g=o.isCartesian;if(g&&!o.isDirty&&!d.isDirty&&!o.yAxis.isDirty&&!t)return!1;if(g&&o.sorted&&(!u||l>u||o.forceCrop)){var f=d.getExtremes(),m=f.min,v=f.max;if(a[l-1]<m||a[0]>v)a=[],s=[];else if(a[0]<m||a[l-1]>v){for(r=0;l>r;r++)if(a[r]>=m){h=ve(0,r-1);break}for(;l>r;r++)if(a[r]>v){c=r+1;break}a=a.slice(h,c),s=s.slice(h,c),e=!0}}for(r=a.length-1;r>0;r--)i=a[r]-a[r-1],i>0&&(n===V||n>i)&&(n=i);o.cropped=e,o.cropStart=h,o.processedXData=a,o.processedYData=s,null===p.pointRange&&(o.pointRange=n||1),o.closestPointRange=n},generatePoints:function(){var t,e,i,n,r=this,o=r.options,a=o.data,s=r.data,l=r.processedXData,h=r.processedYData,c=r.pointClass,d=l.length,u=r.cropStart||0,g=r.hasGroupedData,f=[];if(!s&&!g){var m=[];m.length=a.length,s=r.data=m}for(n=0;d>n;n++)e=u+n,g?f[n]=(new c).init(r,[l[n]].concat(p(h[n]))):(s[e]?i=s[e]:a[e]!==V&&(s[e]=i=(new c).init(r,a[e],l[n])),f[n]=i);if(s&&(d!==(t=s.length)||g))for(n=0;t>n;n++)n!==u||g||(n+=d),s[n]&&(s[n].destroyElements(),s[n].plotX=V);r.data=s,r.points=f},translate:function(){this.processedXData||this.processData(),this.generatePoints();for(var t,e=this,i=e.chart,n=e.options,r=n.stacking,o=e.xAxis,a=o.categories,s=e.yAxis,l=e.points,h=l.length,d=!!e.modifyValue,p=s.series,g=p.length,f="between"===n.pointPlacement;g--;)if(p[g].visible){p[g]===e&&(t=!0);break}for(g=0;h>g;g++){var m,v,y=l[g],x=y.x,b=y.y,k=y.low,w=s.stacks[(b<n.threshold?"-":"")+e.stackKey];y.plotX=o.translate(x,0,0,0,1,f),r&&e.visible&&w&&w[x]&&(m=w[x],v=m.total,m.cum=k=m.cum-b,b=k+b,t&&(k=u(n.threshold,s.min)),s.isLog&&0>=k&&(k=null),"percent"===r&&(k=v?100*k/v:0,b=v?100*b/v:0),y.percentage=v?100*y.y/v:0,y.total=y.stackTotal=v,y.stackY=b),y.yBottom=c(k)?s.translate(k,0,1,0,1):null,d&&(b=e.modifyValue(b,y)),y.plotY="number"==typeof b?ge(10*s.translate(b,0,1,0,1))/10:V,y.clientX=i.inverted?i.plotHeight-y.plotX:y.plotX,y.category=a&&a[y.x]!==V?a[y.x]:y.x}e.getSegments()},setTooltipPoints:function(t){var e,i,n,r,o,a=this,s=[],l=a.xAxis,h=l?l.tooltipLen||l.len:a.chart.plotSizeX,c=l&&l.tooltipPosName||"plotX",d=[];if(a.options.enableMouseTracking!==!1){for(t&&(a.tooltipPoints=null),vi(a.segments||a.points,function(t){s=s.concat(t)}),l&&l.reversed&&(s=s.reverse()),e=s.length,o=0;e>o;o++)for(r=s[o],i=s[o-1]?n+1:0,n=s[o+1]?ve(0,fe((r[c]+(s[o+1]?s[o+1][c]:h))/2)):h;i>=0&&n>=i;)d[i++]=r;a.tooltipPoints=d}},tooltipHeaderFormatter:function(t){var e,i=this,n=i.tooltipOptions,r=n.xDateFormat,o=i.xAxis,s=o&&"datetime"===o.options.type;if(s&&!r)for(e in q)if(q[e]>=o.closestPointRange){r=n.dateTimeLabelFormats[e];break}return n.headerFormat.replace("{point.key}",s&&a(t)?K(r,t):t).replace("{series.name}",i.name).replace("{series.color}",i.color)},onMouseOver:function(){var t=this,e=t.chart,i=e.hoverSeries;i&&i!==t&&i.onMouseOut(),t.options.events.mouseOver&&Li(t,"mouseOver"),t.setState($e),e.hoverSeries=t},onMouseOut:function(){var t=this,e=t.options,i=t.chart,n=i.tooltip,r=i.hoverPoint;r&&r.onMouseOut(),t&&e.events.mouseOut&&Li(t,"mouseOut"),!n||e.stickyTracking||n.shared||n.hide(),t.setState(),i.hoverSeries=null},animate:function(e){var i,n,o,a=this,s=a.chart,l=s.renderer,h=a.options.animation,c=s.clipBox,d=s.inverted;h&&!r(h)&&(h=Mi[a.type].animation),o="_sharedClip"+h.duration+h.easing,e?(i=s[o],n=s[o+"m"],i||(s[o]=i=l.clipRect(t(c,{width:0})),s[o+"m"]=n=l.clipRect(-99,d?-s.plotLeft:-s.plotTop,99,d?s.chartWidth:s.chartHeight)),a.group.clip(i),a.markerGroup.clip(n),a.sharedClipKey=o):(i=s[o],i&&(i.animate({width:s.plotSizeX},h),s[o+"m"].animate({width:s.plotSizeX+99},h)),a.animate=null,a.animationTimeout=setTimeout(function(){a.afterAnimate()},h.duration))},afterAnimate:function(){var t=this.chart,e=this.sharedClipKey,i=this.group;i&&this.options.clip!==!1&&(i.clip(t.clipRect),this.markerGroup.clip()),setTimeout(function(){e&&t[e]&&(t[e]=t[e].destroy(),t[e+"m"]=t[e+"m"].destroy())},100)},drawPoints:function(){var e,i,n,r,o,a,s,l,h,c,d,p,g=this,f=g.points,m=g.chart,v=g.options,y=v.marker,x=g.markerGroup;if(y.enabled||g._hasPointMarkers)for(r=f.length;r--;)o=f[r],i=o.plotX,n=o.plotY,h=o.graphic,c=o.marker||{},d=y.enabled&&c.enabled===V||c.enabled,p=m.isInsidePlot(i,n,m.inverted),d&&n!==V&&!isNaN(n)?(e=o.pointAttr[o.selected?Je:Ke],a=e.r,s=u(c.symbol,g.symbol),l=0===s.indexOf("url"),h?h.attr({visibility:p?Be?"inherit":Ye:Ne}).animate(t({x:i-a,y:n-a},h.symbolName?{width:2*a,height:2*a}:{})):p&&(a>0||l)&&(o.graphic=h=m.renderer.symbol(s,i-a,n-a,2*a,2*a).attr(e).add(x))):h&&(o.graphic=h.destroy())},convertAttribs:function(t,e,i,n){var r,o,a=this.pointAttrToOptions,s={};t=t||{},e=e||{},i=i||{},n=n||{};for(r in a)o=a[r],s[r]=u(t[o],e[r],i[r],n[r]);return s},getAttribs:function(){var e,i,n,r,o,a,s=this,l=Mi[s.type].marker?s.options.marker:s.options,h=l.states,d=h[$e],p=s.color,u={stroke:p,fill:p},g=s.points||[],f=[],m=s.pointAttrToOptions;for(s.options.marker?(d.radius=d.radius||l.radius+2,d.lineWidth=d.lineWidth||l.lineWidth+1):d.color=d.color||Bi(d.color||p).brighten(d.brightness).get(),f[Ke]=s.convertAttribs(l,u),vi([$e,Je],function(t){f[t]=s.convertAttribs(h[t],f[Ke])}),s.pointAttr=f,i=g.length;i--;){if(n=g[i],l=n.options&&n.options.marker||n.options,l&&l.enabled===!1&&(l.radius=0),o=s.options.colorByPoint,n.options)for(a in m)c(l[m[a]])&&(o=!0);o?(l=l||{},r=[],h=l.states||{},e=h[$e]=h[$e]||{},s.options.marker||(e.color=Bi(e.color||n.color).brighten(e.brightness||d.brightness).get()),r[Ke]=s.convertAttribs(t({color:n.color},l),f[Ke]),r[$e]=s.convertAttribs(h[$e],f[$e],r[Ke]),r[Je]=s.convertAttribs(h[Je],f[Je],r[Ke])):r=f,n.pointAttr=r}},destroy:function(){var t,e,i,n,r,o=this,a=o.chart,s=/AppleWebKit\/533/.test(Le),l=o.data||[];for(Li(o,"destroy"),Ti(o),vi(["xAxis","yAxis"],function(t){r=o[t],r&&(h(r.series,o),r.isDirty=!0)}),o.legendItem&&o.chart.legend.destroyItem(o),e=l.length;e--;)i=l[e],i&&i.destroy&&i.destroy();o.points=null,clearTimeout(o.animationTimeout),vi(["area","graph","dataLabelsGroup","group","markerGroup","tracker","trackerGroup"],function(e){o[e]&&(t=s&&"group"===e?"hide":"destroy",o[e][t]())}),a.hoverSeries===o&&(a.hoverSeries=null),h(a.series,o);for(n in o)delete o[n]},drawDataLabels:function(){var t,e,i,n,r=this,o=r.options,a=o.dataLabels,s=r.points;(a.enabled||r._hasPointLabels)&&(r.dlProcessOptions&&r.dlProcessOptions(a),n=r.plotGroup("dataLabelsGroup","data-labels",r.visible?Ye:Ne,6),e=a,vi(s,function(o){var s,l,h,d,p=o.dataLabel,g=!0;if(t=o.options&&o.options.dataLabels,s=e.enabled||t&&t.enabled,p&&!s)o.dataLabel=p.destroy();else if(s){if(d=a.rotation,a=ki(e,t),i=a.formatter.call(o.getLabelConfig(),a),a.style.color=u(a.color,a.style.color,r.color,"black"),p)p.attr({text:i}),g=!1;else if(c(i)){l={fill:a.backgroundColor,stroke:a.borderColor,"stroke-width":a.borderWidth,r:a.borderRadius||0,rotation:d,padding:a.padding,zIndex:1};for(h in l)l[h]===V&&delete l[h];p=o.dataLabel=r.chart.renderer[d?"text":"label"](i,0,-999,null,null,null,a.useHTML).attr(l).css(a.style).add(n).shadow(a.shadow)}p&&r.alignDataLabel(o,p,a,null,g)}}))},alignDataLabel:function(e,i,n,r,o){var a,s=this.chart,l=s.inverted,h=u(e.plotX,-999),c=u(e.plotY,-999),d=i.getBBox();r=t({x:l?s.plotWidth-c:h,y:ge(l?s.plotHeight-h:c),width:0,height:0},r),t(n,{width:d.width,height:d.height}),n.rotation?(a={align:n.align,x:r.x+n.x+r.width/2,y:r.y+n.y+r.height/2},i[o?"attr":"animate"](a)):(i.align(n,null,r),a=i.alignAttr),i.attr({visibility:n.crop===!1||s.isInsidePlot(a.x,a.y)||s.isInsidePlot(h,c,l)?Be?"inherit":Ye:Ne})},getSegmentPath:function(t){var e=this,i=[];return vi(t,function(n,r){if(e.getPointSpline)i.push.apply(i,e.getPointSpline(t,n,r));else{if(i.push(r?Ue:Ze),r&&e.options.step){var o=t[r-1];i.push(n.plotX,o.plotY)}i.push(n.plotX,n.plotY)}}),i},getGraphPath:function(){var t,e=this,i=[],n=[];return vi(e.segments,function(r){t=e.getSegmentPath(r),r.length>1?i=i.concat(t):n.push(r[0])}),e.singlePoints=n,e.graphPath=i,i},drawGraph:function(){var t,e=this.options,i=this.graph,n=this.group,r=e.lineColor||this.color,o=e.lineWidth,a=e.dashStyle,s=this.getGraphPath();i?(Ai(i),i.animate({d:s})):o&&(t={stroke:r,"stroke-width":o,zIndex:1},a&&(t.dashstyle=a),this.graph=this.chart.renderer.path(s).attr(t).add(n).shadow(e.shadow))},invertGroups:function(){function t(){var t={width:e.yAxis.len,height:e.xAxis.len};vi(["group","trackerGroup","markerGroup"],function(i){e[i]&&e[i].attr(t).invert()})}var e=this,i=e.chart;wi(i,"resize",t),wi(e,"destroy",function(){Ti(i,"resize",t)}),t(),e.invertGroups=t},plotGroup:function(t,e,i,n,r){var o=this[t],a=this.chart,s=this.xAxis,l=this.yAxis;return o||(this[t]=o=a.renderer.g(e).attr({visibility:i,zIndex:n||.1}).add(r)),o.translate(s?s.left:a.plotLeft,l?l.top:a.plotTop),o},render:function(){var t,e=this,i=e.chart,n=e.options,r=n.animation,o=r&&!!e.animate,a=e.visible?Ye:Ne,s=n.zIndex,l=e.hasRendered,h=i.seriesGroup;t=e.plotGroup("group","series",a,s,h),e.markerGroup=e.plotGroup("markerGroup","markers",a,s,h),o&&e.animate(!0),e.getAttribs(),t.inverted=i.inverted,e.drawGraph&&e.drawGraph(),e.drawPoints(),e.drawDataLabels(),e.options.enableMouseTracking!==!1&&e.drawTracker(),i.inverted&&e.invertGroups(),n.clip===!1||e.sharedClipKey||l||(t.clip(i.clipRect),this.trackerGroup&&this.trackerGroup.clip(i.clipRect)),o?e.animate():l||e.afterAnimate(),e.isDirty=e.isDirtyData=!1,e.hasRendered=!0},redraw:function(){var t=this,e=t.chart,i=t.isDirtyData,n=t.group;n&&(e.inverted&&n.attr({width:e.plotWidth,height:e.plotHeight}),n.animate({translateX:t.xAxis.left,translateY:t.yAxis.top})),t.translate(),t.setTooltipPoints(!0),t.render(),i&&Li(t,"updatedData")},setState:function(t){var e=this,i=e.options,n=e.graph,r=i.states,o=i.lineWidth;if(t=t||Ke,e.state!==t){if(e.state=t,r[t]&&r[t].enabled===!1)return;t&&(o=r[t].lineWidth||o+1),n&&!n.dashstyle&&n.attr({"stroke-width":o},t?0:500)}},setVisible:function(t,e){var i,n,r,o=this,a=o.chart,s=o.legendItem,l=o.group,h=o.tracker,c=o.dataLabelsGroup,d=o.markerGroup,p=o.points,u=a.options.chart.ignoreHiddenSeries,g=o.visible;if(o.visible=t=t===V?!g:t,i=t?"show":"hide",l&&l[i](),d&&d[i](),h)h[i]();else if(p)for(n=p.length;n--;)r=p[n],r.tracker&&r.tracker[i]();c&&c[i](),s&&a.legend.colorizeItem(o,t),o.isDirty=!0,o.options.stacking&&vi(a.series,function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)}),u&&(a.isDirtyBox=!0),e!==!1&&a.redraw(),Li(o,i)},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(t){var e=this;e.selected=t=t===V?!e.selected:t,e.checkbox&&(e.checkbox.checked=t),Li(e,t?"select":"unselect")},drawTracker:function(){var t,e,i=this,n=i.options,r=n.trackByArea,o=[].concat(r?i.areaPath:i.graphPath),a=o.length,s=i.chart,l=s.renderer,h=s.options.tooltip.snap,c=i.tracker,d=n.cursor,p=d&&{cursor:d},u=i.singlePoints,g=this.isCartesian&&this.plotGroup("trackerGroup",null,Ye,n.zIndex||1,s.trackerGroup);if(a&&!r)for(e=a+1;e--;)o[e]===Ze&&o.splice(e+1,0,o[e+1]-h,o[e+2],Ue),(e&&o[e]===Ze||e===a)&&o.splice(e,0,Ue,o[e-2]+h,o[e-1]);for(e=0;e<u.length;e++)t=u[e],o.push(Ze,t.plotX-h,t.plotY,Ue,t.plotX+h,t.plotY);c?c.attr({d:o}):i.tracker=l.path(o).attr({isTracker:!0,"stroke-linejoin":"bevel",visibility:i.visible?Ye:Ne,stroke:_e,fill:r?_e:Ve,"stroke-width":n.lineWidth+(r?0:2*h)}).on(Oe?"touchstart":"mouseover",function(){s.hoverSeries!==i&&i.onMouseOver()}).on("mouseout",function(){n.stickyTracking||i.onMouseOut()}).css(p).add(g)}};var Xi=m(Gi);di.line=Xi,Mi.area=ki(Ii,{threshold:0});var Ni=m(Gi,{type:"area",getSegmentPath:function(t){var e,i=Gi.prototype.getSegmentPath.call(this,t),n=[].concat(i),r=this.options,o=i.length;if(3===o&&n.push(Ue,i[1],i[2]),r.stacking&&!this.closedStacks)for(e=t.length-1;e>=0;e--)e<t.length-1&&r.step&&n.push(t[e+1].plotX,t[e].yBottom),n.push(t[e].plotX,t[e].yBottom);else this.closeSegment(n,t);return this.areaPath=this.areaPath.concat(n),i},closeSegment:function(t,e){var i=this.yAxis.getThreshold(this.options.threshold);t.push(Ue,e[e.length-1].plotX,i,Ue,e[0].plotX,i)},drawGraph:function(){this.areaPath=[],Gi.prototype.drawGraph.apply(this);var t=this.areaPath,e=this.options,i=this.area;i?i.animate({d:t}):this.area=this.chart.renderer.path(t).attr({fill:u(e.fillColor,Bi(this.color).setOpacity(e.fillOpacity||.75).get()),zIndex:0}).add(this.group)},drawLegendSymbol:function(t,e){e.legendSymbol=this.chart.renderer.rect(0,t.baseline-11,t.options.symbolWidth,12,2).attr({zIndex:3}).add(e.legendGroup)}});di.area=Ni,Mi.spline=ki(Ii);var Fi=m(Gi,{type:"spline",getPointSpline:function(t,e,i){var n,r,o,a,s,l=1.5,h=l+1,c=e.plotX,d=e.plotY,p=t[i-1],u=t[i+1];if(p&&u){var g,f=p.plotX,m=p.plotY,v=u.plotX,y=u.plotY;n=(l*c+f)/h,r=(l*d+m)/h,o=(l*c+v)/h,a=(l*d+y)/h,g=(a-r)*(o-c)/(o-n)+d-a,r+=g,a+=g,r>m&&r>d?(r=ve(m,d),a=2*d-r):m>r&&d>r&&(r=ye(m,d),a=2*d-r),a>y&&a>d?(a=ve(y,d),r=2*d-a):y>a&&d>a&&(a=ye(y,d),r=2*d-a),e.rightContX=o,e.rightContY=a}return i?(s=["C",p.rightContX||p.plotX,p.rightContY||p.plotY,n||c,r||d,c,d],p.rightContX=p.rightContY=null):s=[Ze,c,d],s}});di.spline=Fi,Mi.areaspline=ki(Mi.area);var Yi=Ni.prototype,ji=m(Fi,{type:"areaspline",closedStacks:!0,getSegmentPath:Yi.getSegmentPath,closeSegment:Yi.closeSegment,drawGraph:Yi.drawGraph});di.areaspline=ji,Mi.column=ki(Ii,{borderColor:"#FFFFFF",borderWidth:1,borderRadius:0,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{brightness:.1,shadow:!1},select:{color:"#C0C0C0",borderColor:"#000000",shadow:!1}},dataLabels:{align:null,verticalAlign:null,y:null},threshold:0});var Vi=m(Gi,{type:"column",tooltipOutsidePlot:!0,pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color",r:"borderRadius"},init:function(){Gi.prototype.init.apply(this,arguments);var t=this,e=t.chart;e.hasRendered&&vi(e.series,function(e){e.type===t.type&&(e.isDirty=!0)})},translate:function(){var t,e,i=this,n=i.chart,r=i.options,o=r.stacking,a=r.borderWidth,s=0,l=i.xAxis,h=l.reversed,d={};Gi.prototype.translate.apply(i),r.grouping===!1?s=1:vi(n.series,function(n){var r=n.options;n.type===i.type&&n.visible&&i.options.group===r.group&&(r.stacking?(t=n.stackKey,d[t]===V&&(d[t]=s++),e=d[t]):r.grouping!==!1&&(e=s++),n.columnIndex=e)});var p=i.points,g=xe(l.transA)*(l.ordinalSlope||r.pointRange||l.closestPointRange||1),f=g*r.groupPadding,m=g-2*f,v=m/s,y=r.pointWidth,x=c(y)?(v-y)/2:v*r.pointPadding,b=u(y,v-2*x),k=me(ve(b,1+2*a)),w=(h?s-i.columnIndex:i.columnIndex)||0,T=x+(f+w*v-g/2)*(h?-1:1),L=r.threshold,P=i.translatedThreshold=i.yAxis.getThreshold(L),S=u(r.minPointLength,5);vi(p,function(t){var e,r=t.plotY,s=u(t.yBottom,P),l=t.plotX+T,h=me(ye(r,s)),c=me(ve(r,s)-h),d=i.yAxis.stacks[(t.y<0?"-":"")+i.stackKey];o&&i.visible&&d&&d[t.x]&&d[t.x].setOffset(T,k),xe(c)<S&&S&&(c=S,h=xe(h-P)>S?s-S:P-(P>=r?S:0)),t.barX=l,t.pointWidth=b,t.shapeType="rect",t.shapeArgs=e=n.renderer.Element.prototype.crisp.call(0,a,l,h,k,c),a%2&&(e.y-=1,e.height+=1),t.trackerArgs=xe(c)<3&&ki(t.shapeArgs,{height:6,y:h-3})})},getSymbol:We,drawLegendSymbol:Ni.prototype.drawLegendSymbol,drawGraph:We,drawPoints:function(){var t,e=this,i=e.options,n=e.chart.renderer;vi(e.points,function(r){var o=r.plotY,a=r.graphic;o===V||isNaN(o)||null===r.y?a&&(r.graphic=a.destroy()):(t=r.shapeArgs,a?(Ai(a),a.animate(ki(t))):r.graphic=a=n[r.shapeType](t).attr(r.pointAttr[r.selected?Je:Ke]).add(e.group).shadow(i.shadow,null,i.stacking&&!i.borderRadius))})},drawTracker:function(){var t,e,i,n,r,o=this,a=o.chart,s=a.renderer,l=+new Date,h=o.options,c=h.cursor,p=c&&{cursor:c},u=o.isCartesian&&o.plotGroup("trackerGroup",null,Ye,h.zIndex||1,a.trackerGroup);vi(o.points,function(c){e=c.tracker,t=c.trackerArgs||c.shapeArgs,n=c.plotY,r=!o.isCartesian||n!==V&&!isNaN(n),delete t.strokeWidth,null!==c.y&&r&&(e?e.attr(t):c.tracker=s[c.shapeType](t).attr({isTracker:l,fill:_e,visibility:o.visible?Ye:Ne}).on(Oe?"touchstart":"mouseover",function(t){i=t.relatedTarget||t.fromElement,a.hoverSeries!==o&&d(i,"isTracker")!==l&&o.onMouseOver(),c.onMouseOver()}).on("mouseout",function(t){h.stickyTracking||(i=t.relatedTarget||t.toElement,d(i,"isTracker")!==l&&o.onMouseOut())}).css(p).add(c.group||u))})},alignDataLabel:function(t,e,i,n,r){var o=this.chart,a=o.inverted,s=t.below||t.plotY>(this.translatedThreshold||o.plotSizeY),l=this.options.stacking||i.inside;t.shapeArgs&&(n=ki(t.shapeArgs),a&&(n={x:o.plotWidth-n.y-n.height,y:o.plotHeight-n.x-n.width,width:n.height,height:n.width}),l||(a?(n.x+=s?0:n.width,n.width=0):(n.y+=s?n.height:0,n.height=0))),i.align=u(i.align,!a||l?"center":s?"right":"left"),i.verticalAlign=u(i.verticalAlign,a||l?"middle":s?"top":"bottom"),Gi.prototype.alignDataLabel.call(this,t,e,i,n,r)},animate:function(t){var e=this,i=e.points,n=e.options;t||(vi(i,function(t){var i=t.graphic,r=t.shapeArgs,o=e.yAxis,a=n.threshold;i&&(i.attr({height:0,y:c(a)?o.getThreshold(a):o.translate(o.getExtremes().min,0,1,0,1)}),i.animate({height:r.height,y:r.y},n.animation))}),e.animate=null)},remove:function(){var t=this,e=t.chart;e.hasRendered&&vi(e.series,function(e){e.type===t.type&&(e.isDirty=!0)}),Gi.prototype.remove.apply(t,arguments)}});di.column=Vi,Mi.bar=ki(Mi.column);var Zi=m(Vi,{type:"bar",inverted:!0});di.bar=Zi,Mi.scatter=ki(Ii,{lineWidth:0,states:{hover:{lineWidth:0}},tooltip:{headerFormat:'<span style="font-size: 10px; color:{series.color}">{series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}});var Ui=m(Gi,{type:"scatter",sorted:!1,translate:function(){var t=this;Gi.prototype.translate.apply(t),vi(t.points,function(e){e.shapeType="circle",e.shapeArgs={x:e.plotX,y:e.plotY,r:t.chart.options.tooltip.snap}})},drawTracker:function(){for(var t,e=this,i=e.options.cursor,n=i&&{cursor:i},r=e.points,o=r.length;o--;)t=r[o].graphic,t&&(t.element._i=o);e._hasTracking?e._hasTracking=!0:e.markerGroup.attr({isTracker:!0}).on(Oe?"touchstart":"mouseover",function(t){e.onMouseOver(),t.target._i!==V&&r[t.target._i].onMouseOver()}).on("mouseout",function(){e.options.stickyTracking||e.onMouseOut()}).css(n)}});di.scatter=Ui,Mi.pie=ki(Ii,{borderColor:"#FFFFFF",borderWidth:1,center:["50%","50%"],colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.name}},legendType:"point",marker:null,size:"75%",showInLegend:!1,slicedOffset:10,states:{hover:{brightness:.1,shadow:!1}}});var _i=m(Ei,{init:function(){Ei.prototype.init.apply(this,arguments);var e,i=this;return t(i,{visible:i.visible!==!1,name:u(i.name,"Slice")}),e=function(){i.slice()},wi(i,"select",e),wi(i,"unselect",e),i},setVisible:function(t){var e,i=this,n=i.series,r=n.chart,o=i.tracker,a=i.dataLabel,s=i.connector,l=i.shadowGroup;i.visible=t=t===V?!i.visible:t,e=t?"show":"hide",i.group[e](),o&&o[e](),a&&a[e](),s&&s[e](),l&&l[e](),i.legendItem&&r.legend.colorizeItem(i,t),!n.isDirty&&n.options.ignoreHiddenPoint&&(n.isDirty=!0,r.redraw())},slice:function(t,e,i){var n,r=this,o=r.series,a=o.chart,s=r.slicedTranslation;D(i,a),e=u(e,!0),t=r.sliced=c(t)?t:!r.sliced,n={translateX:t?s[0]:a.plotLeft,translateY:t?s[1]:a.plotTop},r.group.animate(n),r.shadowGroup&&r.shadowGroup.animate(n)}}),Ki={type:"pie",isCartesian:!1,pointClass:_i,pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color"},getColor:function(){this.initialColor=this.chart.counters.color},animate:function(){var t=this,e=t.points;vi(e,function(e){var i=e.graphic,n=e.shapeArgs,r=-we/2;i&&(i.attr({r:0,start:r,end:r}),i.animate({r:n.r,start:n.start,end:n.end},t.options.animation))}),t.animate=null},setData:function(t,e){Gi.prototype.setData.call(this,t,!1),this.processData(),this.generatePoints(),u(e,!0)&&this.chart.redraw()},getCenter:function(){var t,e=this.options,n=this.chart,r=n.plotWidth,o=n.plotHeight,a=e.center.concat([e.size,e.innerSize||0]),s=ye(r,o);return bi(a,function(e,n){return t=/%$/.test(e),t?[r,o,s,s][n]*i(e)/100:e})},translate:function(){this.generatePoints();var t,e,i,n,r,o,a,s,l,h=0,c=this,d=-.25,p=1e3,u=c.options,g=u.slicedOffset,f=g+u.borderWidth,m=c.chart,v=c.points,y=2*we,x=u.dataLabels.distance,b=u.ignoreHiddenPoint,k=v.length;for(c.center=t=c.getCenter(),c.getX=function(e,i){return n=ue.asin((e-t[1])/(t[2]/2+x)),t[0]+(i?-1:1)*be(n)*(t[2]/2+x)},s=0;k>s;s++)l=v[s],h+=b&&!l.visible?0:l.y;for(s=0;k>s;s++)l=v[s],r=h?l.y/h:0,e=ge(d*y*p)/p,(!b||l.visible)&&(d+=r),i=ge(d*y*p)/p,l.shapeType="arc",l.shapeArgs={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:e,end:i},n=(i+e)/2,l.slicedTranslation=bi([be(n)*g+m.plotLeft,ke(n)*g+m.plotTop],ge),o=be(n)*t[2]/2,a=ke(n)*t[2]/2,l.tooltipPos=[t[0]+.7*o,t[1]+.7*a],l.labelPos=[t[0]+o+be(n)*x,t[1]+a+ke(n)*x,t[0]+o+be(n)*f,t[1]+a+ke(n)*f,t[0]+o,t[1]+a,0>x?"center":y/4>n?"left":"right",n],l.percentage=100*r,l.total=h;this.setTooltipPoints()},render:function(){var t=this;t.getAttribs(),this.drawPoints(),t.options.enableMouseTracking!==!1&&t.drawTracker(),this.drawDataLabels(),t.options.animation&&t.animate&&t.animate(),t.isDirty=!1},drawPoints:function(){var e,i,n,r,o,a=this,s=a.chart,l=s.renderer,h=a.options.shadow;vi(a.points,function(c){i=c.graphic,o=c.shapeArgs,n=c.group,r=c.shadowGroup,h&&!r&&(r=c.shadowGroup=l.g("shadow").attr({zIndex:4}).add()),n||(n=c.group=l.g("point").attr({zIndex:5}).add()),e=c.sliced?c.slicedTranslation:[s.plotLeft,s.plotTop],n.translate(e[0],e[1]),r&&r.translate(e[0],e[1]),i?i.animate(o):c.graphic=i=l.arc(o).setRadialReference(a.center).attr(t(c.pointAttr[Ke],{"stroke-linejoin":"round"})).add(c.group).shadow(h,r),c.visible===!1&&c.setVisible(!1)})},drawDataLabels:function(){var t,e,i,n,r,o,a,s,l,h,c,d,p=this,g=p.data,f=p.chart,m=p.options.dataLabels,v=u(m.connectorPadding,10),y=u(m.connectorWidth,1),x=u(m.softConnector,!0),b=m.distance,k=p.center,w=k[2]/2,T=k[1],L=b>0,P=[[],[]],S=2;if(m.enabled||p._hasPointLabels)for(Gi.prototype.drawDataLabels.apply(p),vi(g,function(t){t.dataLabel&&P[t.labelPos[7]<we/2?0:1].push(t)}),P[1].reverse(),c=function(t,e){return e.y-t.y},o=P[0][0]&&P[0][0].dataLabel&&(P[0][0].dataLabel.getBBox().height||21);S--;){var A,C,M,I=[],B=[],D=P[S],z=D.length;if(b>0){for(C=T-w-b;T+w+b>=C;C+=o)I.push(C);if(A=I.length,z>A){for(h=[].concat(D),h.sort(c),d=z;d--;)h[d].rank=d;for(d=z;d--;)D[d].rank>=A&&D.splice(d,1);z=D.length}for(d=0;z>d;d++){t=D[d],r=t.labelPos;var O,R,H=9999;for(R=0;A>R;R++)O=xe(I[R]-r[1]),H>O&&(H=O,M=R);if(d>M&&null!==I[d])M=d;else if(z-d+M>A&&null!==I[d])for(M=A-z+d;null===I[M];)M++;else for(;null===I[M];)M++;B.push({i:M,y:I[M]}),I[M]=null}B.sort(c)}for(d=0;z>d;d++){var W,E;t=D[d],r=t.labelPos,n=t.dataLabel,l=t.visible===!1?Ne:Ye,E=r[1],b>0?(W=B.pop(),M=W.i,s=W.y,(E>s&&null!==I[M+1]||s>E&&null!==I[M-1])&&(s=E)):s=E,a=m.justify?k[0]+(S?-1:1)*(w+b):p.getX(0===M||M===I.length-1?E:s,S),n.attr({visibility:l,align:r[6]})[n.moved?"animate":"attr"]({x:a+m.x+({left:v,right:-v}[r[6]]||0),y:s+m.y-10}),n.moved=!0,L&&y&&(e=t.connector,i=x?[Ze,a+("left"===r[6]?5:-5),s,"C",a,s,2*r[2]-r[4],2*r[3]-r[5],r[2],r[3],Ue,r[4],r[5]]:[Ze,a+("left"===r[6]?5:-5),s,Ue,r[2],r[3],Ue,r[4],r[5]],e?(e.animate({d:i}),e.attr("visibility",l)):t.connector=e=p.chart.renderer.path(i).attr({"stroke-width":y,stroke:m.connectorColor||t.color||"#606060",visibility:l,zIndex:3}).translate(f.plotLeft,f.plotTop).add())}}},alignDataLabel:We,drawTracker:Vi.prototype.drawTracker,drawLegendSymbol:Ni.prototype.drawLegendSymbol,getSymbol:function(){}};Ki=m(Gi,Ki),di.pie=Ki,t(Highcharts,{Axis:X,CanVGRenderer:Hi,Chart:j,Color:Bi,Legend:Y,MouseTracker:F,Point:Ei,Tick:W,Tooltip:N,Renderer:Z,Series:Gi,SVGRenderer:Di,VMLRenderer:zi,dateFormat:K,pathAnim:J,getOptions:R,hasBidiBug:De,numberFormat:y,seriesTypes:di,setOptions:O,addEvent:wi,removeEvent:Ti,createElement:f,discardElement:M,css:g,each:vi,extend:t,map:bi,merge:ki,pick:u,splat:p,extendClass:m,pInt:i,wrap:b,svg:Be,canvas:ze,vml:!Be&&!ze,product:"Highcharts",version:"2.3.3"})}();
@@ -0,0 +1,23 @@
1
+ /*
2
+ A class to parse color values
3
+ @author Stoyan Stefanov <sstoo@gmail.com>
4
+ @link http://www.phpied.com/rgb-color-parser-in-javascript/
5
+ Use it if you like it
6
+
7
+ canvg.js - Javascript SVG parser and renderer on Canvas
8
+ MIT Licensed
9
+ Gabe Lerner (gabelerner@gmail.com)
10
+ http://code.google.com/p/canvg/
11
+
12
+ Requires: rgbcolor.js - http://www.phpied.com/rgb-color-parser-in-javascript/
13
+
14
+ Highcharts JS v2.3.3 (2012-10-04)
15
+ CanVGRenderer Extension module
16
+
17
+ (c) 2011-2012 Torstein Hønsi, Erik Olsson
18
+
19
+ License: www.highcharts.com/license
20
+ */
21
+
22
+ function RGBColor(t){this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6));var e,t=t.replace(/ /g,""),t=t.toLowerCase(),i={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};for(e in i)t==e&&(t=i[e]);var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}];for(e=0;e<n.length;e++){var s=n[e].process,a=n[e].re.exec(t);a&&(channels=s(a),this.r=channels[0],this.g=channels[1],this.b=channels[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),i=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==i.length&&(i="0"+i),"#"+t+e+i},this.getHelpXML=function(){for(var t=[],e=0;e<n.length;e++)for(var s=n[e].example,a=0;a<s.length;a++)t[t.length]=s[a];for(var r in i)t[t.length]=r;for(s=document.createElement("ul"),s.setAttribute("id","rgbcolor-examples"),e=0;e<t.length;e++)try{var o=document.createElement("li"),h=new RGBColor(t[e]),l=document.createElement("div");l.style.cssText="margin: 3px; border: 1px solid black; background:"+h.toHex()+"; color:"+h.toHex(),l.appendChild(document.createTextNode("test"));var u=document.createTextNode(" "+t[e]+" -> "+h.toRGB()+" -> "+h.toHex());o.appendChild(l),o.appendChild(u),s.appendChild(o)}catch(f){}return s}}window.console||(window.console={},window.console.log=function(){},window.console.dir=function(){}),Array.prototype.indexOf||(Array.prototype.indexOf=function(t){for(var e=0;e<this.length;e++)if(this[e]==t)return e;return-1}),function(){function t(){var t={FRAMERATE:30,MAX_VIRTUAL_PIXELS:3e4};return t.init=function(e){t.Definitions={},t.Styles={},t.Animations=[],t.Images=[],t.ctx=e,t.ViewPort=new function(){this.viewPorts=[],this.Clear=function(){this.viewPorts=[]},this.SetCurrent=function(t,e){this.viewPorts.push({width:t,height:e})},this.RemoveCurrent=function(){this.viewPorts.pop()},this.Current=function(){return this.viewPorts[this.viewPorts.length-1]},this.width=function(){return this.Current().width},this.height=function(){return this.Current().height},this.ComputeSize=function(t){return null!=t&&"number"==typeof t?t:"x"==t?this.width():"y"==t?this.height():Math.sqrt(Math.pow(this.width(),2)+Math.pow(this.height(),2))/Math.sqrt(2)}}},t.init(),t.ImagesLoaded=function(){for(var e=0;e<t.Images.length;e++)if(!t.Images[e].loaded)return!1;return!0},t.trim=function(t){return t.replace(/^\s+|\s+$/g,"")},t.compressSpaces=function(t){return t.replace(/[\s\r\t\n]+/gm," ")},t.ajax=function(t){var e;return(e=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"))?(e.open("GET",t,!1),e.send(null),e.responseText):null},t.parseXml=function(t){if(window.DOMParser)return(new DOMParser).parseFromString(t,"text/xml");var t=t.replace(/<!DOCTYPE svg[^>]*>/,""),e=new ActiveXObject("Microsoft.XMLDOM");return e.async="false",e.loadXML(t),e},t.Property=function(e,i){this.name=e,this.value=i,this.hasValue=function(){return null!=this.value&&""!==this.value},this.numValue=function(){if(!this.hasValue())return 0;var t=parseFloat(this.value);return(this.value+"").match(/%$/)&&(t/=100),t},this.valueOrDefault=function(t){return this.hasValue()?this.value:t},this.numValueOrDefault=function(t){return this.hasValue()?this.numValue():t};var n=this;this.Color={addOpacity:function(e){var i=n.value;if(null!=e&&""!=e){var s=new RGBColor(n.value);s.ok&&(i="rgba("+s.r+", "+s.g+", "+s.b+", "+e+")")}return new t.Property(n.name,i)}},this.Definition={getDefinition:function(){var e=n.value.replace(/^(url\()?#([^\)]+)\)?$/,"$2");return t.Definitions[e]},isUrl:function(){return 0==n.value.indexOf("url(")},getFillStyle:function(e){var i=this.getDefinition();return null!=i&&i.createGradient?i.createGradient(t.ctx,e):null!=i&&i.createPattern?i.createPattern(t.ctx,e):null}},this.Length={DPI:function(){return 96},EM:function(e){var i=12,n=new t.Property("fontSize",t.Font.Parse(t.ctx.font).fontSize);return n.hasValue()&&(i=n.Length.toPixels(e)),i},toPixels:function(e){if(!n.hasValue())return 0;var i=n.value+"";return i.match(/em$/)?n.numValue()*this.EM(e):i.match(/ex$/)?n.numValue()*this.EM(e)/2:i.match(/px$/)?n.numValue():i.match(/pt$/)?1.25*n.numValue():i.match(/pc$/)?15*n.numValue():i.match(/cm$/)?n.numValue()*this.DPI(e)/2.54:i.match(/mm$/)?n.numValue()*this.DPI(e)/25.4:i.match(/in$/)?n.numValue()*this.DPI(e):i.match(/%$/)?n.numValue()*t.ViewPort.ComputeSize(e):n.numValue()}},this.Time={toMilliseconds:function(){if(!n.hasValue())return 0;var t=n.value+"";return t.match(/s$/)?1e3*n.numValue():(t.match(/ms$/),n.numValue())}},this.Angle={toRadians:function(){if(!n.hasValue())return 0;var t=n.value+"";return t.match(/deg$/)?n.numValue()*(Math.PI/180):t.match(/grad$/)?n.numValue()*(Math.PI/200):t.match(/rad$/)?n.numValue():n.numValue()*(Math.PI/180)}}},t.Font=new function(){this.Styles=["normal","italic","oblique","inherit"],this.Variants=["normal","small-caps","inherit"],this.Weights="normal,bold,bolder,lighter,100,200,300,400,500,600,700,800,900,inherit".split(","),this.CreateFont=function(e,i,n,s,a,r){return r=null!=r?this.Parse(r):this.CreateFont("","","","","",t.ctx.font),{fontFamily:a||r.fontFamily,fontSize:s||r.fontSize,fontStyle:e||r.fontStyle,fontWeight:n||r.fontWeight,fontVariant:i||r.fontVariant,toString:function(){return[this.fontStyle,this.fontVariant,this.fontWeight,this.fontSize,this.fontFamily].join(" ")}}};var e=this;this.Parse=function(i){for(var n={},i=t.trim(t.compressSpaces(i||"")).split(" "),s=!1,a=!1,r=!1,o=!1,h="",l=0;l<i.length;l++)a||-1==e.Styles.indexOf(i[l])?o||-1==e.Variants.indexOf(i[l])?r||-1==e.Weights.indexOf(i[l])?s?"inherit"!=i[l]&&(h+=i[l]):("inherit"!=i[l]&&(n.fontSize=i[l].split("/")[0]),a=o=r=s=!0):("inherit"!=i[l]&&(n.fontWeight=i[l]),a=o=r=!0):("inherit"!=i[l]&&(n.fontVariant=i[l]),a=o=!0):("inherit"!=i[l]&&(n.fontStyle=i[l]),a=!0);return""!=h&&(n.fontFamily=h),n}},t.ToNumberArray=function(e){for(var e=t.trim(t.compressSpaces((e||"").replace(/,/g," "))).split(" "),i=0;i<e.length;i++)e[i]=parseFloat(e[i]);return e},t.Point=function(t,e){this.x=t,this.y=e,this.angleTo=function(t){return Math.atan2(t.y-this.y,t.x-this.x)},this.applyTransform=function(t){var e=this.x*t[1]+this.y*t[3]+t[5];this.x=this.x*t[0]+this.y*t[2]+t[4],this.y=e}},t.CreatePoint=function(e){return e=t.ToNumberArray(e),new t.Point(e[0],e[1])},t.CreatePath=function(e){for(var e=t.ToNumberArray(e),i=[],n=0;n<e.length;n+=2)i.push(new t.Point(e[n],e[n+1]));return i},t.BoundingBox=function(t,e,n,s){this.y2=this.x2=this.y1=this.x1=Number.NaN,this.x=function(){return this.x1},this.y=function(){return this.y1},this.width=function(){return this.x2-this.x1},this.height=function(){return this.y2-this.y1},this.addPoint=function(t,e){null!=t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x2=this.x1=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),null!=e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y2=this.y1=e),e<this.y1&&(this.y1=e),e>this.y2&&(this.y2=e))},this.addX=function(t){this.addPoint(t,null)},this.addY=function(t){this.addPoint(null,t)},this.addBoundingBox=function(t){this.addPoint(t.x1,t.y1),this.addPoint(t.x2,t.y2)},this.addQuadraticCurve=function(t,e,i,n,s,a){i=t+2/3*(i-t),n=e+2/3*(n-e),this.addBezierCurve(t,e,i,i+1/3*(s-t),n,n+1/3*(a-e),s,a)},this.addBezierCurve=function(t,e,n,s,a,r,o,h){var l=[t,e],u=[n,s],f=[a,r],d=[o,h];for(this.addPoint(l[0],l[1]),this.addPoint(d[0],d[1]),i=0;1>=i;i++)t=function(t){return Math.pow(1-t,3)*l[i]+3*Math.pow(1-t,2)*t*u[i]+3*(1-t)*Math.pow(t,2)*f[i]+Math.pow(t,3)*d[i]},e=6*l[i]-12*u[i]+6*f[i],n=-3*l[i]+9*u[i]-9*f[i]+3*d[i],s=3*u[i]-3*l[i],0==n?0!=e&&(e=-s/e,e>0&&1>e&&(0==i&&this.addX(t(e)),1==i&&this.addY(t(e)))):(s=Math.pow(e,2)-4*s*n,0>s||(a=(-e+Math.sqrt(s))/(2*n),a>0&&1>a&&(0==i&&this.addX(t(a)),1==i&&this.addY(t(a))),e=(-e-Math.sqrt(s))/(2*n),e>0&&1>e&&(0==i&&this.addX(t(e)),1==i&&this.addY(t(e)))))},this.isPointInBox=function(t,e){return this.x1<=t&&t<=this.x2&&this.y1<=e&&e<=this.y2},this.addPoint(t,e),this.addPoint(n,s)},t.Transform=function(e){var i=this;this.Type={},this.Type.translate=function(e){this.p=t.CreatePoint(e),this.apply=function(t){t.translate(this.p.x||0,this.p.y||0)},this.applyToPoint=function(t){t.applyTransform([1,0,0,1,this.p.x||0,this.p.y||0])}},this.Type.rotate=function(e){e=t.ToNumberArray(e),this.angle=new t.Property("angle",e[0]),this.cx=e[1]||0,this.cy=e[2]||0,this.apply=function(t){t.translate(this.cx,this.cy),t.rotate(this.angle.Angle.toRadians()),t.translate(-this.cx,-this.cy)},this.applyToPoint=function(t){var e=this.angle.Angle.toRadians();t.applyTransform([1,0,0,1,this.p.x||0,this.p.y||0]),t.applyTransform([Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0]),t.applyTransform([1,0,0,1,-this.p.x||0,-this.p.y||0])}},this.Type.scale=function(e){this.p=t.CreatePoint(e),this.apply=function(t){t.scale(this.p.x||1,this.p.y||this.p.x||1)},this.applyToPoint=function(t){t.applyTransform([this.p.x||0,0,0,this.p.y||0,0,0])}},this.Type.matrix=function(e){this.m=t.ToNumberArray(e),this.apply=function(t){t.transform(this.m[0],this.m[1],this.m[2],this.m[3],this.m[4],this.m[5])},this.applyToPoint=function(t){t.applyTransform(this.m)}},this.Type.SkewBase=function(e){this.base=i.Type.matrix,this.base(e),this.angle=new t.Property("angle",e)},this.Type.SkewBase.prototype=new this.Type.matrix,this.Type.skewX=function(t){this.base=i.Type.SkewBase,this.base(t),this.m=[1,0,Math.tan(this.angle.Angle.toRadians()),1,0,0]},this.Type.skewX.prototype=new this.Type.SkewBase,this.Type.skewY=function(t){this.base=i.Type.SkewBase,this.base(t),this.m=[1,Math.tan(this.angle.Angle.toRadians()),0,1,0,0]},this.Type.skewY.prototype=new this.Type.SkewBase,this.transforms=[],this.apply=function(t){for(var e=0;e<this.transforms.length;e++)this.transforms[e].apply(t)},this.applyToPoint=function(t){for(var e=0;e<this.transforms.length;e++)this.transforms[e].applyToPoint(t)};for(var e=t.trim(t.compressSpaces(e)).split(/\s(?=[a-z])/),n=0;n<e.length;n++){var s=e[n].split("(")[0],a=e[n].split("(")[1].replace(")","");this.transforms.push(new this.Type[s](a))}},t.AspectRatio=function(e,i,n,s,a,r,o,h,l,u){var i=t.compressSpaces(i),i=i.replace(/^defer\s/,""),f=i.split(" ")[0]||"xMidYMid",i=i.split(" ")[1]||"meet",d=n/s,c=a/r,m=Math.min(d,c),p=Math.max(d,c);"meet"==i&&(s*=m,r*=m),"slice"==i&&(s*=p,r*=p),l=new t.Property("refX",l),u=new t.Property("refY",u),l.hasValue()&&u.hasValue()?e.translate(-m*l.Length.toPixels("x"),-m*u.Length.toPixels("y")):(f.match(/^xMid/)&&("meet"==i&&m==c||"slice"==i&&p==c)&&e.translate(n/2-s/2,0),f.match(/YMid$/)&&("meet"==i&&m==d||"slice"==i&&p==d)&&e.translate(0,a/2-r/2),f.match(/^xMax/)&&("meet"==i&&m==c||"slice"==i&&p==c)&&e.translate(n-s,0),f.match(/YMax$/)&&("meet"==i&&m==d||"slice"==i&&p==d)&&e.translate(0,a-r)),"none"==f?e.scale(d,c):"meet"==i?e.scale(m,m):"slice"==i&&e.scale(p,p),e.translate(null==o?0:-o,null==h?0:-h)},t.Element={},t.Element.ElementBase=function(e){if(this.attributes={},this.styles={},this.children=[],this.attribute=function(e,i){var n=this.attributes[e];return null!=n?n:(n=new t.Property(e,""),1==i&&(this.attributes[e]=n),n)},this.style=function(e,i){var n=this.styles[e];return null!=n?n:(n=this.attribute(e),null!=n&&n.hasValue()?n:(n=this.parent,null!=n&&(n=n.style(e),null!=n&&n.hasValue())?n:(n=new t.Property(e,""),1==i&&(this.styles[e]=n),n)))},this.render=function(t){if("none"!=this.style("display").value&&"hidden"!=this.attribute("visibility").value){if(t.save(),this.setContext(t),this.attribute("mask").hasValue()){var e=this.attribute("mask").Definition.getDefinition();null!=e&&e.apply(t,this)}else this.style("filter").hasValue()?(e=this.style("filter").Definition.getDefinition(),null!=e&&e.apply(t,this)):this.renderChildren(t);this.clearContext(t),t.restore()}},this.setContext=function(){},this.clearContext=function(){},this.renderChildren=function(t){for(var e=0;e<this.children.length;e++)this.children[e].render(t)},this.addChild=function(e,i){var n=e;i&&(n=t.CreateElement(e)),n.parent=this,this.children.push(n)},null!=e&&1==e.nodeType){for(var i=0;i<e.childNodes.length;i++){var n=e.childNodes[i];1==n.nodeType&&this.addChild(n,!0)}for(i=0;i<e.attributes.length;i++)n=e.attributes[i],this.attributes[n.nodeName]=new t.Property(n.nodeName,n.nodeValue);if(n=t.Styles[e.nodeName],null!=n)for(var s in n)this.styles[s]=n[s];if(this.attribute("class").hasValue())for(var i=t.compressSpaces(this.attribute("class").value).split(" "),a=0;a<i.length;a++){if(n=t.Styles["."+i[a]],null!=n)for(s in n)this.styles[s]=n[s];if(n=t.Styles[e.nodeName+"."+i[a]],null!=n)for(s in n)this.styles[s]=n[s]}if(this.attribute("style").hasValue())for(n=this.attribute("style").value.split(";"),i=0;i<n.length;i++)""!=t.trim(n[i])&&(e=n[i].split(":"),s=t.trim(e[0]),e=t.trim(e[1]),this.styles[s]=new t.Property(s,e));this.attribute("id").hasValue()&&null==t.Definitions[this.attribute("id").value]&&(t.Definitions[this.attribute("id").value]=this)}},t.Element.RenderedElementBase=function(e){this.base=t.Element.ElementBase,this.base(e),this.setContext=function(e){if(this.style("fill").Definition.isUrl()){var i=this.style("fill").Definition.getFillStyle(this);null!=i&&(e.fillStyle=i)}else this.style("fill").hasValue()&&(i=this.style("fill"),this.style("fill-opacity").hasValue()&&(i=i.Color.addOpacity(this.style("fill-opacity").value)),e.fillStyle="none"==i.value?"rgba(0,0,0,0)":i.value);this.style("stroke").Definition.isUrl()?(i=this.style("stroke").Definition.getFillStyle(this),null!=i&&(e.strokeStyle=i)):this.style("stroke").hasValue()&&(i=this.style("stroke"),this.style("stroke-opacity").hasValue()&&(i=i.Color.addOpacity(this.style("stroke-opacity").value)),e.strokeStyle="none"==i.value?"rgba(0,0,0,0)":i.value),this.style("stroke-width").hasValue()&&(e.lineWidth=this.style("stroke-width").Length.toPixels()),this.style("stroke-linecap").hasValue()&&(e.lineCap=this.style("stroke-linecap").value),this.style("stroke-linejoin").hasValue()&&(e.lineJoin=this.style("stroke-linejoin").value),this.style("stroke-miterlimit").hasValue()&&(e.miterLimit=this.style("stroke-miterlimit").value),"undefined"!=typeof e.font&&(e.font=t.Font.CreateFont(this.style("font-style").value,this.style("font-variant").value,this.style("font-weight").value,this.style("font-size").hasValue()?this.style("font-size").Length.toPixels()+"px":"",this.style("font-family").value).toString()),this.attribute("transform").hasValue()&&new t.Transform(this.attribute("transform").value).apply(e),this.attribute("clip-path").hasValue()&&(i=this.attribute("clip-path").Definition.getDefinition(),null!=i&&i.apply(e)),this.style("opacity").hasValue()&&(e.globalAlpha=this.style("opacity").numValue())}},t.Element.RenderedElementBase.prototype=new t.Element.ElementBase,t.Element.PathElementBase=function(e){this.base=t.Element.RenderedElementBase,this.base(e),this.path=function(e){return null!=e&&e.beginPath(),new t.BoundingBox},this.renderChildren=function(e){this.path(e),t.Mouse.checkPath(this,e),""!=e.fillStyle&&e.fill(),""!=e.strokeStyle&&e.stroke();var i=this.getMarkers();if(null!=i){if(this.style("marker-start").Definition.isUrl()){var n=this.style("marker-start").Definition.getDefinition();n.render(e,i[0][0],i[0][1])}if(this.style("marker-mid").Definition.isUrl())for(var n=this.style("marker-mid").Definition.getDefinition(),s=1;s<i.length-1;s++)n.render(e,i[s][0],i[s][1]);this.style("marker-end").Definition.isUrl()&&(n=this.style("marker-end").Definition.getDefinition(),n.render(e,i[i.length-1][0],i[i.length-1][1]))}},this.getBoundingBox=function(){return this.path()},this.getMarkers=function(){return null}},t.Element.PathElementBase.prototype=new t.Element.RenderedElementBase,t.Element.svg=function(e){this.base=t.Element.RenderedElementBase,this.base(e),this.baseClearContext=this.clearContext,this.clearContext=function(e){this.baseClearContext(e),t.ViewPort.RemoveCurrent()},this.baseSetContext=this.setContext,this.setContext=function(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4,this.baseSetContext(e),this.attribute("x").hasValue()&&this.attribute("y").hasValue()&&e.translate(this.attribute("x").Length.toPixels("x"),this.attribute("y").Length.toPixels("y"));var i=t.ViewPort.width(),n=t.ViewPort.height();if("undefined"==typeof this.root&&this.attribute("width").hasValue()&&this.attribute("height").hasValue()){var i=this.attribute("width").Length.toPixels("x"),n=this.attribute("height").Length.toPixels("y"),s=0,a=0;this.attribute("refX").hasValue()&&this.attribute("refY").hasValue()&&(s=-this.attribute("refX").Length.toPixels("x"),a=-this.attribute("refY").Length.toPixels("y")),e.beginPath(),e.moveTo(s,a),e.lineTo(i,a),e.lineTo(i,n),e.lineTo(s,n),e.closePath(),e.clip()}if(t.ViewPort.SetCurrent(i,n),this.attribute("viewBox").hasValue()){var s=t.ToNumberArray(this.attribute("viewBox").value),a=s[0],r=s[1],i=s[2],n=s[3];t.AspectRatio(e,this.attribute("preserveAspectRatio").value,t.ViewPort.width(),i,t.ViewPort.height(),n,a,r,this.attribute("refX").value,this.attribute("refY").value),t.ViewPort.RemoveCurrent(),t.ViewPort.SetCurrent(s[2],s[3])}}},t.Element.svg.prototype=new t.Element.RenderedElementBase,t.Element.rect=function(e){this.base=t.Element.PathElementBase,this.base(e),this.path=function(e){var i=this.attribute("x").Length.toPixels("x"),n=this.attribute("y").Length.toPixels("y"),s=this.attribute("width").Length.toPixels("x"),a=this.attribute("height").Length.toPixels("y"),r=this.attribute("rx").Length.toPixels("x"),o=this.attribute("ry").Length.toPixels("y");return this.attribute("rx").hasValue()&&!this.attribute("ry").hasValue()&&(o=r),this.attribute("ry").hasValue()&&!this.attribute("rx").hasValue()&&(r=o),null!=e&&(e.beginPath(),e.moveTo(i+r,n),e.lineTo(i+s-r,n),e.quadraticCurveTo(i+s,n,i+s,n+o),e.lineTo(i+s,n+a-o),e.quadraticCurveTo(i+s,n+a,i+s-r,n+a),e.lineTo(i+r,n+a),e.quadraticCurveTo(i,n+a,i,n+a-o),e.lineTo(i,n+o),e.quadraticCurveTo(i,n,i+r,n),e.closePath()),new t.BoundingBox(i,n,i+s,n+a)}},t.Element.rect.prototype=new t.Element.PathElementBase,t.Element.circle=function(e){this.base=t.Element.PathElementBase,this.base(e),this.path=function(e){var i=this.attribute("cx").Length.toPixels("x"),n=this.attribute("cy").Length.toPixels("y"),s=this.attribute("r").Length.toPixels();return null!=e&&(e.beginPath(),e.arc(i,n,s,0,2*Math.PI,!0),e.closePath()),new t.BoundingBox(i-s,n-s,i+s,n+s)}},t.Element.circle.prototype=new t.Element.PathElementBase,t.Element.ellipse=function(e){this.base=t.Element.PathElementBase,this.base(e),this.path=function(e){var i=4*((Math.sqrt(2)-1)/3),n=this.attribute("rx").Length.toPixels("x"),s=this.attribute("ry").Length.toPixels("y"),a=this.attribute("cx").Length.toPixels("x"),r=this.attribute("cy").Length.toPixels("y");return null!=e&&(e.beginPath(),e.moveTo(a,r-s),e.bezierCurveTo(a+i*n,r-s,a+n,r-i*s,a+n,r),e.bezierCurveTo(a+n,r+i*s,a+i*n,r+s,a,r+s),e.bezierCurveTo(a-i*n,r+s,a-n,r+i*s,a-n,r),e.bezierCurveTo(a-n,r-i*s,a-i*n,r-s,a,r-s),e.closePath()),new t.BoundingBox(a-n,r-s,a+n,r+s)}},t.Element.ellipse.prototype=new t.Element.PathElementBase,t.Element.line=function(e){this.base=t.Element.PathElementBase,this.base(e),this.getPoints=function(){return[new t.Point(this.attribute("x1").Length.toPixels("x"),this.attribute("y1").Length.toPixels("y")),new t.Point(this.attribute("x2").Length.toPixels("x"),this.attribute("y2").Length.toPixels("y"))]},this.path=function(e){var i=this.getPoints();return null!=e&&(e.beginPath(),e.moveTo(i[0].x,i[0].y),e.lineTo(i[1].x,i[1].y)),new t.BoundingBox(i[0].x,i[0].y,i[1].x,i[1].y)},this.getMarkers=function(){var t=this.getPoints(),e=t[0].angleTo(t[1]);return[[t[0],e],[t[1],e]]}},t.Element.line.prototype=new t.Element.PathElementBase,t.Element.polyline=function(e){this.base=t.Element.PathElementBase,this.base(e),this.points=t.CreatePath(this.attribute("points").value),this.path=function(e){var i=new t.BoundingBox(this.points[0].x,this.points[0].y);null!=e&&(e.beginPath(),e.moveTo(this.points[0].x,this.points[0].y));for(var n=1;n<this.points.length;n++)i.addPoint(this.points[n].x,this.points[n].y),null!=e&&e.lineTo(this.points[n].x,this.points[n].y);return i},this.getMarkers=function(){for(var t=[],e=0;e<this.points.length-1;e++)t.push([this.points[e],this.points[e].angleTo(this.points[e+1])]);return t.push([this.points[this.points.length-1],t[t.length-1][1]]),t}},t.Element.polyline.prototype=new t.Element.PathElementBase,t.Element.polygon=function(e){this.base=t.Element.polyline,this.base(e),this.basePath=this.path,this.path=function(t){var e=this.basePath(t);return null!=t&&(t.lineTo(this.points[0].x,this.points[0].y),t.closePath()),e}},t.Element.polygon.prototype=new t.Element.polyline,t.Element.path=function(e){this.base=t.Element.PathElementBase,this.base(e),e=this.attribute("d").value,e=e.replace(/,/gm," "),e=e.replace(/([MmZzLlHhVvCcSsQqTtAa])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2"),e=e.replace(/([MmZzLlHhVvCcSsQqTtAa])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2"),e=e.replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2"),e=e.replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2"),e=e.replace(/([0-9])([+\-])/gm,"$1 $2"),e=e.replace(/(\.[0-9]*)(\.)/gm,"$1 $2"),e=e.replace(/([Aa](\s+[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $3 $4 "),e=t.compressSpaces(e),e=t.trim(e),this.PathParser=new function(e){this.tokens=e.split(" "),this.reset=function(){this.i=-1,this.previousCommand=this.command="",this.start=new t.Point(0,0),this.control=new t.Point(0,0),this.current=new t.Point(0,0),this.points=[],this.angles=[]},this.isEnd=function(){return this.i>=this.tokens.length-1},this.isCommandOrEnd=function(){return this.isEnd()?!0:null!=this.tokens[this.i+1].match(/^[A-Za-z]$/)},this.isRelativeCommand=function(){return this.command==this.command.toLowerCase()},this.getToken=function(){return this.i+=1,this.tokens[this.i]},this.getScalar=function(){return parseFloat(this.getToken())},this.nextCommand=function(){this.previousCommand=this.command,this.command=this.getToken()},this.getPoint=function(){return this.makeAbsolute(new t.Point(this.getScalar(),this.getScalar()))},this.getAsControlPoint=function(){var t=this.getPoint();return this.control=t},this.getAsCurrentPoint=function(){var t=this.getPoint();return this.current=t},this.getReflectedControlPoint=function(){return"c"!=this.previousCommand.toLowerCase()&&"s"!=this.previousCommand.toLowerCase()?this.current:new t.Point(2*this.current.x-this.control.x,2*this.current.y-this.control.y)},this.makeAbsolute=function(t){return this.isRelativeCommand()&&(t.x=this.current.x+t.x,t.y=this.current.y+t.y),t},this.addMarker=function(t,e,i){null!=i&&this.angles.length>0&&null==this.angles[this.angles.length-1]&&(this.angles[this.angles.length-1]=this.points[this.points.length-1].angleTo(i)),this.addMarkerAngle(t,null==e?null:e.angleTo(t))},this.addMarkerAngle=function(t,e){this.points.push(t),this.angles.push(e)},this.getMarkerPoints=function(){return this.points},this.getMarkerAngles=function(){for(var t=0;t<this.angles.length;t++)if(null==this.angles[t])for(var e=t+1;e<this.angles.length;e++)if(null!=this.angles[e]){this.angles[t]=this.angles[e];break}return this.angles}}(e),this.path=function(e){var i=this.PathParser;i.reset();var n=new t.BoundingBox;for(null!=e&&e.beginPath();!i.isEnd();)switch(i.nextCommand(),i.command.toUpperCase()){case"M":var s=i.getAsCurrentPoint();for(i.addMarker(s),n.addPoint(s.x,s.y),null!=e&&e.moveTo(s.x,s.y),i.start=i.current;!i.isCommandOrEnd();)s=i.getAsCurrentPoint(),i.addMarker(s,i.start),n.addPoint(s.x,s.y),null!=e&&e.lineTo(s.x,s.y);break;case"L":for(;!i.isCommandOrEnd();){var a=i.current,s=i.getAsCurrentPoint();i.addMarker(s,a),n.addPoint(s.x,s.y),null!=e&&e.lineTo(s.x,s.y)}break;case"H":for(;!i.isCommandOrEnd();)s=new t.Point((i.isRelativeCommand()?i.current.x:0)+i.getScalar(),i.current.y),i.addMarker(s,i.current),i.current=s,n.addPoint(i.current.x,i.current.y),null!=e&&e.lineTo(i.current.x,i.current.y);break;case"V":for(;!i.isCommandOrEnd();)s=new t.Point(i.current.x,(i.isRelativeCommand()?i.current.y:0)+i.getScalar()),i.addMarker(s,i.current),i.current=s,n.addPoint(i.current.x,i.current.y),null!=e&&e.lineTo(i.current.x,i.current.y);break;case"C":for(;!i.isCommandOrEnd();){var r=i.current,a=i.getPoint(),o=i.getAsControlPoint(),s=i.getAsCurrentPoint();i.addMarker(s,o,a),n.addBezierCurve(r.x,r.y,a.x,a.y,o.x,o.y,s.x,s.y),null!=e&&e.bezierCurveTo(a.x,a.y,o.x,o.y,s.x,s.y)}break;case"S":for(;!i.isCommandOrEnd();)r=i.current,a=i.getReflectedControlPoint(),o=i.getAsControlPoint(),s=i.getAsCurrentPoint(),i.addMarker(s,o,a),n.addBezierCurve(r.x,r.y,a.x,a.y,o.x,o.y,s.x,s.y),null!=e&&e.bezierCurveTo(a.x,a.y,o.x,o.y,s.x,s.y);break;case"Q":for(;!i.isCommandOrEnd();)r=i.current,o=i.getAsControlPoint(),s=i.getAsCurrentPoint(),i.addMarker(s,o,o),n.addQuadraticCurve(r.x,r.y,o.x,o.y,s.x,s.y),null!=e&&e.quadraticCurveTo(o.x,o.y,s.x,s.y);break;case"T":for(;!i.isCommandOrEnd();)r=i.current,o=i.getReflectedControlPoint(),i.control=o,s=i.getAsCurrentPoint(),i.addMarker(s,o,o),n.addQuadraticCurve(r.x,r.y,o.x,o.y,s.x,s.y),null!=e&&e.quadraticCurveTo(o.x,o.y,s.x,s.y);break;case"A":for(;!i.isCommandOrEnd();){var r=i.current,h=i.getScalar(),l=i.getScalar(),a=i.getScalar()*(Math.PI/180),u=i.getScalar(),o=i.getScalar(),s=i.getAsCurrentPoint(),f=new t.Point(Math.cos(a)*(r.x-s.x)/2+Math.sin(a)*(r.y-s.y)/2,-Math.sin(a)*(r.x-s.x)/2+Math.cos(a)*(r.y-s.y)/2),d=Math.pow(f.x,2)/Math.pow(h,2)+Math.pow(f.y,2)/Math.pow(l,2);d>1&&(h*=Math.sqrt(d),l*=Math.sqrt(d)),u=(u==o?-1:1)*Math.sqrt((Math.pow(h,2)*Math.pow(l,2)-Math.pow(h,2)*Math.pow(f.y,2)-Math.pow(l,2)*Math.pow(f.x,2))/(Math.pow(h,2)*Math.pow(f.y,2)+Math.pow(l,2)*Math.pow(f.x,2))),isNaN(u)&&(u=0);var c=new t.Point(u*h*f.y/l,u*-l*f.x/h),r=new t.Point((r.x+s.x)/2+Math.cos(a)*c.x-Math.sin(a)*c.y,(r.y+s.y)/2+Math.sin(a)*c.x+Math.cos(a)*c.y),m=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))*Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2)))},p=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(m(t,e))},u=p([1,0],[(f.x-c.x)/h,(f.y-c.y)/l]),d=[(f.x-c.x)/h,(f.y-c.y)/l],c=[(-f.x-c.x)/h,(-f.y-c.y)/l],f=p(d,c);m(d,c)<=-1&&(f=Math.PI),m(d,c)>=1&&(f=0),0==o&&f>0&&(f-=2*Math.PI),1==o&&0>f&&(f+=2*Math.PI),d=new t.Point(r.x-h*Math.cos((u+f)/2),r.y-l*Math.sin((u+f)/2)),i.addMarkerAngle(d,(u+f)/2+(0==o?1:-1)*Math.PI/2),i.addMarkerAngle(s,f+(0==o?1:-1)*Math.PI/2),n.addPoint(s.x,s.y),null!=e&&(m=h>l?h:l,s=h>l?1:h/l,h=h>l?l/h:1,e.translate(r.x,r.y),e.rotate(a),e.scale(s,h),e.arc(0,0,m,u,u+f,1-o),e.scale(1/s,1/h),e.rotate(-a),e.translate(-r.x,-r.y))}break;case"Z":null!=e&&e.closePath(),i.current=i.start}return n},this.getMarkers=function(){for(var t=this.PathParser.getMarkerPoints(),e=this.PathParser.getMarkerAngles(),i=[],n=0;n<t.length;n++)i.push([t[n],e[n]]);return i}},t.Element.path.prototype=new t.Element.PathElementBase,t.Element.pattern=function(e){this.base=t.Element.ElementBase,this.base(e),this.createPattern=function(e){var i=new t.Element.svg;i.attributes.viewBox=new t.Property("viewBox",this.attribute("viewBox").value),i.attributes.x=new t.Property("x",this.attribute("x").value),i.attributes.y=new t.Property("y",this.attribute("y").value),i.attributes.width=new t.Property("width",this.attribute("width").value),i.attributes.height=new t.Property("height",this.attribute("height").value),i.children=this.children;var n=document.createElement("canvas");return n.width=this.attribute("width").Length.toPixels("x"),n.height=this.attribute("height").Length.toPixels("y"),i.render(n.getContext("2d")),e.createPattern(n,"repeat")}},t.Element.pattern.prototype=new t.Element.ElementBase,t.Element.marker=function(e){this.base=t.Element.ElementBase,this.base(e),this.baseRender=this.render,this.render=function(e,i,n){e.translate(i.x,i.y),"auto"==this.attribute("orient").valueOrDefault("auto")&&e.rotate(n),"strokeWidth"==this.attribute("markerUnits").valueOrDefault("strokeWidth")&&e.scale(e.lineWidth,e.lineWidth),e.save();var s=new t.Element.svg;s.attributes.viewBox=new t.Property("viewBox",this.attribute("viewBox").value),s.attributes.refX=new t.Property("refX",this.attribute("refX").value),s.attributes.refY=new t.Property("refY",this.attribute("refY").value),s.attributes.width=new t.Property("width",this.attribute("markerWidth").value),s.attributes.height=new t.Property("height",this.attribute("markerHeight").value),s.attributes.fill=new t.Property("fill",this.attribute("fill").valueOrDefault("black")),s.attributes.stroke=new t.Property("stroke",this.attribute("stroke").valueOrDefault("none")),s.children=this.children,s.render(e),e.restore(),"strokeWidth"==this.attribute("markerUnits").valueOrDefault("strokeWidth")&&e.scale(1/e.lineWidth,1/e.lineWidth),"auto"==this.attribute("orient").valueOrDefault("auto")&&e.rotate(-n),e.translate(-i.x,-i.y)}},t.Element.marker.prototype=new t.Element.ElementBase,t.Element.defs=function(e){this.base=t.Element.ElementBase,this.base(e),this.render=function(){}
23
+ },t.Element.defs.prototype=new t.Element.ElementBase,t.Element.GradientBase=function(e){for(this.base=t.Element.ElementBase,this.base(e),this.gradientUnits=this.attribute("gradientUnits").valueOrDefault("objectBoundingBox"),this.stops=[],e=0;e<this.children.length;e++)this.stops.push(this.children[e]);this.getGradient=function(){},this.createGradient=function(e,i){var n=this;this.attribute("xlink:href").hasValue()&&(n=this.attribute("xlink:href").Definition.getDefinition());for(var s=this.getGradient(e,i),a=0;a<n.stops.length;a++)s.addColorStop(n.stops[a].offset,n.stops[a].color);if(this.attribute("gradientTransform").hasValue()){n=t.ViewPort.viewPorts[0],a=new t.Element.rect,a.attributes.x=new t.Property("x",-t.MAX_VIRTUAL_PIXELS/3),a.attributes.y=new t.Property("y",-t.MAX_VIRTUAL_PIXELS/3),a.attributes.width=new t.Property("width",t.MAX_VIRTUAL_PIXELS),a.attributes.height=new t.Property("height",t.MAX_VIRTUAL_PIXELS);var r=new t.Element.g;return r.attributes.transform=new t.Property("transform",this.attribute("gradientTransform").value),r.children=[a],a=new t.Element.svg,a.attributes.x=new t.Property("x",0),a.attributes.y=new t.Property("y",0),a.attributes.width=new t.Property("width",n.width),a.attributes.height=new t.Property("height",n.height),a.children=[r],r=document.createElement("canvas"),r.width=n.width,r.height=n.height,n=r.getContext("2d"),n.fillStyle=s,a.render(n),n.createPattern(r,"no-repeat")}return s}},t.Element.GradientBase.prototype=new t.Element.ElementBase,t.Element.linearGradient=function(e){this.base=t.Element.GradientBase,this.base(e),this.getGradient=function(t,e){var i=e.getBoundingBox(),n="objectBoundingBox"==this.gradientUnits?i.x()+i.width()*this.attribute("x1").numValue():this.attribute("x1").Length.toPixels("x"),s="objectBoundingBox"==this.gradientUnits?i.y()+i.height()*this.attribute("y1").numValue():this.attribute("y1").Length.toPixels("y"),a="objectBoundingBox"==this.gradientUnits?i.x()+i.width()*this.attribute("x2").numValue():this.attribute("x2").Length.toPixels("x"),i="objectBoundingBox"==this.gradientUnits?i.y()+i.height()*this.attribute("y2").numValue():this.attribute("y2").Length.toPixels("y");return t.createLinearGradient(n,s,a,i)}},t.Element.linearGradient.prototype=new t.Element.GradientBase,t.Element.radialGradient=function(e){this.base=t.Element.GradientBase,this.base(e),this.getGradient=function(t,e){var i=e.getBoundingBox(),n="objectBoundingBox"==this.gradientUnits?i.x()+i.width()*this.attribute("cx").numValue():this.attribute("cx").Length.toPixels("x"),s="objectBoundingBox"==this.gradientUnits?i.y()+i.height()*this.attribute("cy").numValue():this.attribute("cy").Length.toPixels("y"),a=n,r=s;return this.attribute("fx").hasValue()&&(a="objectBoundingBox"==this.gradientUnits?i.x()+i.width()*this.attribute("fx").numValue():this.attribute("fx").Length.toPixels("x")),this.attribute("fy").hasValue()&&(r="objectBoundingBox"==this.gradientUnits?i.y()+i.height()*this.attribute("fy").numValue():this.attribute("fy").Length.toPixels("y")),i="objectBoundingBox"==this.gradientUnits?(i.width()+i.height())/2*this.attribute("r").numValue():this.attribute("r").Length.toPixels(),t.createRadialGradient(a,r,0,n,s,i)}},t.Element.radialGradient.prototype=new t.Element.GradientBase,t.Element.stop=function(e){this.base=t.Element.ElementBase,this.base(e),this.offset=this.attribute("offset").numValue(),e=this.style("stop-color"),this.style("stop-opacity").hasValue()&&(e=e.Color.addOpacity(this.style("stop-opacity").value)),this.color=e.value},t.Element.stop.prototype=new t.Element.ElementBase,t.Element.AnimateBase=function(e){this.base=t.Element.ElementBase,this.base(e),t.Animations.push(this),this.duration=0,this.begin=this.attribute("begin").Time.toMilliseconds(),this.maxDuration=this.begin+this.attribute("dur").Time.toMilliseconds(),this.getProperty=function(){var t=this.attribute("attributeType").value,e=this.attribute("attributeName").value;return"CSS"==t?this.parent.style(e,!0):this.parent.attribute(e,!0)},this.initialValue=null,this.removed=!1,this.calcValue=function(){return""},this.update=function(t){if(null==this.initialValue&&(this.initialValue=this.getProperty().value),this.duration>this.maxDuration){if("indefinite"!=this.attribute("repeatCount").value)return"remove"!=this.attribute("fill").valueOrDefault("remove")||this.removed?!1:(this.removed=!0,this.getProperty().value=this.initialValue,!0);this.duration=0}return this.duration+=t,t=!1,this.begin<this.duration&&(t=this.calcValue(),this.attribute("type").hasValue()&&(t=this.attribute("type").value+"("+t+")"),this.getProperty().value=t,t=!0),t},this.progress=function(){return(this.duration-this.begin)/(this.maxDuration-this.begin)}},t.Element.AnimateBase.prototype=new t.Element.ElementBase,t.Element.animate=function(e){this.base=t.Element.AnimateBase,this.base(e),this.calcValue=function(){var t=this.attribute("from").numValue(),e=this.attribute("to").numValue();return t+(e-t)*this.progress()}},t.Element.animate.prototype=new t.Element.AnimateBase,t.Element.animateColor=function(e){this.base=t.Element.AnimateBase,this.base(e),this.calcValue=function(){var t=new RGBColor(this.attribute("from").value),e=new RGBColor(this.attribute("to").value);if(t.ok&&e.ok){var i=t.r+(e.r-t.r)*this.progress(),n=t.g+(e.g-t.g)*this.progress(),t=t.b+(e.b-t.b)*this.progress();return"rgb("+parseInt(i,10)+","+parseInt(n,10)+","+parseInt(t,10)+")"}return this.attribute("from").value}},t.Element.animateColor.prototype=new t.Element.AnimateBase,t.Element.animateTransform=function(e){this.base=t.Element.animate,this.base(e)},t.Element.animateTransform.prototype=new t.Element.animate,t.Element.font=function(e){for(this.base=t.Element.ElementBase,this.base(e),this.horizAdvX=this.attribute("horiz-adv-x").numValue(),this.isArabic=this.isRTL=!1,this.missingGlyph=this.fontFace=null,this.glyphs=[],e=0;e<this.children.length;e++){var i=this.children[e];"font-face"==i.type?(this.fontFace=i,i.style("font-family").hasValue()&&(t.Definitions[i.style("font-family").value]=this)):"missing-glyph"==i.type?this.missingGlyph=i:"glyph"==i.type&&(""!=i.arabicForm?(this.isArabic=this.isRTL=!0,"undefined"==typeof this.glyphs[i.unicode]&&(this.glyphs[i.unicode]=[]),this.glyphs[i.unicode][i.arabicForm]=i):this.glyphs[i.unicode]=i)}},t.Element.font.prototype=new t.Element.ElementBase,t.Element.fontface=function(e){this.base=t.Element.ElementBase,this.base(e),this.ascent=this.attribute("ascent").value,this.descent=this.attribute("descent").value,this.unitsPerEm=this.attribute("units-per-em").numValue()},t.Element.fontface.prototype=new t.Element.ElementBase,t.Element.missingglyph=function(e){this.base=t.Element.path,this.base(e),this.horizAdvX=0},t.Element.missingglyph.prototype=new t.Element.path,t.Element.glyph=function(e){this.base=t.Element.path,this.base(e),this.horizAdvX=this.attribute("horiz-adv-x").numValue(),this.unicode=this.attribute("unicode").value,this.arabicForm=this.attribute("arabic-form").value},t.Element.glyph.prototype=new t.Element.path,t.Element.text=function(e){if(this.base=t.Element.RenderedElementBase,this.base(e),null!=e){this.children=[];for(var i=0;i<e.childNodes.length;i++){var n=e.childNodes[i];1==n.nodeType?this.addChild(n,!0):3==n.nodeType&&this.addChild(new t.Element.tspan(n),!1)}}this.baseSetContext=this.setContext,this.setContext=function(t){this.baseSetContext(t),this.style("dominant-baseline").hasValue()&&(t.textBaseline=this.style("dominant-baseline").value),this.style("alignment-baseline").hasValue()&&(t.textBaseline=this.style("alignment-baseline").value)},this.renderChildren=function(t){for(var e=this.style("text-anchor").valueOrDefault("start"),i=this.attribute("x").Length.toPixels("x"),n=this.attribute("y").Length.toPixels("y"),s=0;s<this.children.length;s++){var a=this.children[s];if(a.attribute("x").hasValue()?a.x=a.attribute("x").Length.toPixels("x"):(a.attribute("dx").hasValue()&&(i+=a.attribute("dx").Length.toPixels("x")),a.x=i),i=a.measureText(t),"start"!=e&&(0==s||a.attribute("x").hasValue())){for(var r=i,o=s+1;o<this.children.length;o++){var h=this.children[o];if(h.attribute("x").hasValue())break;r+=h.measureText(t)}a.x-="end"==e?r:r/2}i=a.x+i,a.attribute("y").hasValue()?a.y=a.attribute("y").Length.toPixels("y"):(a.attribute("dy").hasValue()&&(n+=a.attribute("dy").Length.toPixels("y")),a.y=n),n=a.y,a.render(t)}}},t.Element.text.prototype=new t.Element.RenderedElementBase,t.Element.TextElementBase=function(e){this.base=t.Element.RenderedElementBase,this.base(e),this.getGlyph=function(t,e,i){var n=e[i],s=null;if(t.isArabic){var a="isolated";(0==i||" "==e[i-1])&&i<e.length-2&&" "!=e[i+1]&&(a="terminal"),i>0&&" "!=e[i-1]&&i<e.length-2&&" "!=e[i+1]&&(a="medial"),i>0&&" "!=e[i-1]&&(i==e.length-1||" "==e[i+1])&&(a="initial"),"undefined"!=typeof t.glyphs[n]&&(s=t.glyphs[n][a],null==s&&"glyph"==t.glyphs[n].type&&(s=t.glyphs[n]))}else s=t.glyphs[n];return null==s&&(s=t.missingGlyph),s},this.renderChildren=function(e){var i=this.parent.style("font-family").Definition.getDefinition();if(null!=i){var n=this.parent.style("font-size").numValueOrDefault(t.Font.Parse(t.ctx.font).fontSize),s=this.parent.style("font-style").valueOrDefault(t.Font.Parse(t.ctx.font).fontStyle),a=this.getText();i.isRTL&&(a=a.split("").reverse().join(""));for(var r=t.ToNumberArray(this.parent.attribute("dx").value),o=0;o<a.length;o++){var h=this.getGlyph(i,a,o),l=n/i.fontFace.unitsPerEm;e.translate(this.x,this.y),e.scale(l,-l);var u=e.lineWidth;e.lineWidth=e.lineWidth*i.fontFace.unitsPerEm/n,"italic"==s&&e.transform(1,0,.4,1,0,0),h.render(e),"italic"==s&&e.transform(1,0,-.4,1,0,0),e.lineWidth=u,e.scale(1/l,-1/l),e.translate(-this.x,-this.y),this.x+=n*(h.horizAdvX||i.horizAdvX)/i.fontFace.unitsPerEm,"undefined"!=typeof r[o]&&!isNaN(r[o])&&(this.x+=r[o])}}else""!=e.strokeStyle&&e.strokeText(t.compressSpaces(this.getText()),this.x,this.y),""!=e.fillStyle&&e.fillText(t.compressSpaces(this.getText()),this.x,this.y)},this.getText=function(){},this.measureText=function(e){var i=this.parent.style("font-family").Definition.getDefinition();if(null!=i){var e=this.parent.style("font-size").numValueOrDefault(t.Font.Parse(t.ctx.font).fontSize),n=0,s=this.getText();i.isRTL&&(s=s.split("").reverse().join(""));for(var a=t.ToNumberArray(this.parent.attribute("dx").value),r=0;r<s.length;r++){var o=this.getGlyph(i,s,r);n+=(o.horizAdvX||i.horizAdvX)*e/i.fontFace.unitsPerEm,"undefined"!=typeof a[r]&&!isNaN(a[r])&&(n+=a[r])}return n}return i=t.compressSpaces(this.getText()),e.measureText?(e.save(),this.setContext(e),i=e.measureText(i).width,e.restore(),i):10*i.length}},t.Element.TextElementBase.prototype=new t.Element.RenderedElementBase,t.Element.tspan=function(e){this.base=t.Element.TextElementBase,this.base(e),this.text=3==e.nodeType?e.nodeValue:e.childNodes.length>0?e.childNodes[0].nodeValue:e.text,this.getText=function(){return this.text}},t.Element.tspan.prototype=new t.Element.TextElementBase,t.Element.tref=function(e){this.base=t.Element.TextElementBase,this.base(e),this.getText=function(){var t=this.attribute("xlink:href").Definition.getDefinition();return null!=t?t.children[0].getText():void 0}},t.Element.tref.prototype=new t.Element.TextElementBase,t.Element.a=function(e){this.base=t.Element.TextElementBase,this.base(e),this.hasText=!0;for(var i=0;i<e.childNodes.length;i++)3!=e.childNodes[i].nodeType&&(this.hasText=!1);this.text=this.hasText?e.childNodes[0].nodeValue:"",this.getText=function(){return this.text},this.baseRenderChildren=this.renderChildren,this.renderChildren=function(e){if(this.hasText){this.baseRenderChildren(e);var i=new t.Property("fontSize",t.Font.Parse(t.ctx.font).fontSize);t.Mouse.checkBoundingBox(this,new t.BoundingBox(this.x,this.y-i.Length.toPixels("y"),this.x+this.measureText(e),this.y))}else i=new t.Element.g,i.children=this.children,i.parent=this,i.render(e)},this.onclick=function(){window.open(this.attribute("xlink:href").value)},this.onmousemove=function(){t.ctx.canvas.style.cursor="pointer"}},t.Element.a.prototype=new t.Element.TextElementBase,t.Element.image=function(e){this.base=t.Element.RenderedElementBase,this.base(e),t.Images.push(this),this.img=document.createElement("img"),this.loaded=!1;var i=this;this.img.onload=function(){i.loaded=!0},this.img.src=this.attribute("xlink:href").value,this.renderChildren=function(e){var i=this.attribute("x").Length.toPixels("x"),n=this.attribute("y").Length.toPixels("y"),s=this.attribute("width").Length.toPixels("x"),a=this.attribute("height").Length.toPixels("y");0==s||0==a||(e.save(),e.translate(i,n),t.AspectRatio(e,this.attribute("preserveAspectRatio").value,s,this.img.width,a,this.img.height,0,0),e.drawImage(this.img,0,0),e.restore())}},t.Element.image.prototype=new t.Element.RenderedElementBase,t.Element.g=function(e){this.base=t.Element.RenderedElementBase,this.base(e),this.getBoundingBox=function(){for(var e=new t.BoundingBox,i=0;i<this.children.length;i++)e.addBoundingBox(this.children[i].getBoundingBox());return e}},t.Element.g.prototype=new t.Element.RenderedElementBase,t.Element.symbol=function(e){this.base=t.Element.RenderedElementBase,this.base(e),this.baseSetContext=this.setContext,this.setContext=function(e){if(this.baseSetContext(e),this.attribute("viewBox").hasValue()){var i=t.ToNumberArray(this.attribute("viewBox").value),n=i[0],s=i[1];width=i[2],height=i[3],t.AspectRatio(e,this.attribute("preserveAspectRatio").value,this.attribute("width").Length.toPixels("x"),width,this.attribute("height").Length.toPixels("y"),height,n,s),t.ViewPort.SetCurrent(i[2],i[3])}}},t.Element.symbol.prototype=new t.Element.RenderedElementBase,t.Element.style=function(e){this.base=t.Element.ElementBase,this.base(e);for(var e=e.childNodes[0].nodeValue+(e.childNodes.length>1?e.childNodes[1].nodeValue:""),e=e.replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,""),e=t.compressSpaces(e),e=e.split("}"),i=0;i<e.length;i++)if(""!=t.trim(e[i]))for(var n=e[i].split("{"),s=n[0].split(","),n=n[1].split(";"),a=0;a<s.length;a++){var r=t.trim(s[a]);if(""!=r){for(var o={},h=0;h<n.length;h++){var l=n[h].indexOf(":"),u=n[h].substr(0,l),l=n[h].substr(l+1,n[h].length-l);null!=u&&null!=l&&(o[t.trim(u)]=new t.Property(t.trim(u),t.trim(l)))}if(t.Styles[r]=o,"@font-face"==r)for(r=o["font-family"].value.replace(/"/g,""),o=o.src.value.split(","),h=0;h<o.length;h++)if(o[h].indexOf('format("svg")')>0)for(u=o[h].indexOf("url"),l=o[h].indexOf(")",u),u=o[h].substr(u+5,l-u-6),u=t.parseXml(t.ajax(u)).getElementsByTagName("font"),l=0;l<u.length;l++){var f=t.CreateElement(u[l]);t.Definitions[r]=f}}}},t.Element.style.prototype=new t.Element.ElementBase,t.Element.use=function(e){this.base=t.Element.RenderedElementBase,this.base(e),this.baseSetContext=this.setContext,this.setContext=function(t){this.baseSetContext(t),this.attribute("x").hasValue()&&t.translate(this.attribute("x").Length.toPixels("x"),0),this.attribute("y").hasValue()&&t.translate(0,this.attribute("y").Length.toPixels("y"))},this.getDefinition=function(){var t=this.attribute("xlink:href").Definition.getDefinition();return this.attribute("width").hasValue()&&(t.attribute("width",!0).value=this.attribute("width").value),this.attribute("height").hasValue()&&(t.attribute("height",!0).value=this.attribute("height").value),t},this.path=function(t){var e=this.getDefinition();null!=e&&e.path(t)},this.renderChildren=function(t){var e=this.getDefinition();null!=e&&e.render(t)}},t.Element.use.prototype=new t.Element.RenderedElementBase,t.Element.mask=function(e){this.base=t.Element.ElementBase,this.base(e),this.apply=function(t,e){var i=this.attribute("x").Length.toPixels("x"),n=this.attribute("y").Length.toPixels("y"),s=this.attribute("width").Length.toPixels("x"),a=this.attribute("height").Length.toPixels("y"),r=e.attribute("mask").value;e.attribute("mask").value="";var o=document.createElement("canvas");o.width=i+s,o.height=n+a;var h=o.getContext("2d");this.renderChildren(h);var l=document.createElement("canvas");l.width=i+s,l.height=n+a;var u=l.getContext("2d");e.render(u),u.globalCompositeOperation="destination-in",u.fillStyle=h.createPattern(o,"no-repeat"),u.fillRect(0,0,i+s,n+a),t.fillStyle=u.createPattern(l,"no-repeat"),t.fillRect(0,0,i+s,n+a),e.attribute("mask").value=r},this.render=function(){}},t.Element.mask.prototype=new t.Element.ElementBase,t.Element.clipPath=function(e){this.base=t.Element.ElementBase,this.base(e),this.apply=function(t){for(var e=0;e<this.children.length;e++)this.children[e].path&&(this.children[e].path(t),t.clip())},this.render=function(){}},t.Element.clipPath.prototype=new t.Element.ElementBase,t.Element.filter=function(e){this.base=t.Element.ElementBase,this.base(e),this.apply=function(t,e){var i=e.getBoundingBox(),n=this.attribute("x").Length.toPixels("x"),s=this.attribute("y").Length.toPixels("y");(0==n||0==s)&&(n=i.x1,s=i.y1);var a=this.attribute("width").Length.toPixels("x"),r=this.attribute("height").Length.toPixels("y");(0==a||0==r)&&(a=i.width(),r=i.height()),i=e.style("filter").value,e.style("filter").value="";var o=.2*a,h=.2*r,l=document.createElement("canvas");l.width=a+2*o,l.height=r+2*h;var u=l.getContext("2d");u.translate(-n+o,-s+h),e.render(u);for(var f=0;f<this.children.length;f++)this.children[f].apply(u,0,0,a+2*o,r+2*h);t.drawImage(l,0,0,a+2*o,r+2*h,n-o,s-h,a+2*o,r+2*h),e.style("filter",!0).value=i},this.render=function(){}},t.Element.filter.prototype=new t.Element.ElementBase,t.Element.feGaussianBlur=function(e){function i(t,e,i,n,s){for(var a=0;s>a;a++)for(var r=0;n>r;r++)for(var o=t[4*a*n+4*r+3]/255,h=0;4>h;h++){for(var l=i[0]*(0==o?255:t[4*a*n+4*r+h])*(0==o||3==h?1:o),u=1;u<i.length;u++){var f,d=Math.max(r-u,0),c=t[4*a*n+4*d+3]/255,d=Math.min(r+u,n-1),d=t[4*a*n+4*d+3]/255,m=i[u];0==c?f=255:(f=Math.max(r-u,0),f=t[4*a*n+4*f+h]),c=f*(0==c||3==h?1:c),0==d?f=255:(f=Math.min(r+u,n-1),f=t[4*a*n+4*f+h]),l+=m*(c+f*(0==d||3==h?1:d))}e[4*r*s+4*a+h]=l}}this.base=t.Element.ElementBase,this.base(e),this.apply=function(t,e,n,s,a){var n=this.attribute("stdDeviation").numValue(),e=t.getImageData(0,0,s,a),n=Math.max(n,.01),r=Math.ceil(4*n)+1;mask=[];for(var o=0;r>o;o++)mask[o]=Math.exp(-.5*(o/n)*(o/n));for(n=mask,r=0,o=1;o<n.length;o++)r+=Math.abs(n[o]);for(r=2*r+Math.abs(n[0]),o=0;o<n.length;o++)n[o]/=r;tmp=[],i(e.data,tmp,n,s,a),i(tmp,e.data,n,a,s),t.clearRect(0,0,s,a),t.putImageData(e,0,0)}},t.Element.filter.prototype=new t.Element.feGaussianBlur,t.Element.title=function(){},t.Element.title.prototype=new t.Element.ElementBase,t.Element.desc=function(){},t.Element.desc.prototype=new t.Element.ElementBase,t.Element.MISSING=function(t){console.log("ERROR: Element '"+t.nodeName+"' not yet implemented.")},t.Element.MISSING.prototype=new t.Element.ElementBase,t.CreateElement=function(e){var i=e.nodeName.replace(/^[^:]+:/,""),i=i.replace(/\-/g,""),n=null,n="undefined"!=typeof t.Element[i]?new t.Element[i](e):new t.Element.MISSING(e);return n.type=e.nodeName,n},t.load=function(e,i){t.loadXml(e,t.ajax(i))},t.loadXml=function(e,i){t.loadXmlDoc(e,t.parseXml(i))},t.loadXmlDoc=function(e,i){t.init(e);var n=function(t){for(var i=e.canvas;i;)t.x-=i.offsetLeft,t.y-=i.offsetTop,i=i.offsetParent;return window.scrollX&&(t.x+=window.scrollX),window.scrollY&&(t.y+=window.scrollY),t};1!=t.opts.ignoreMouse&&(e.canvas.onclick=function(e){e=n(new t.Point(null!=e?e.clientX:event.clientX,null!=e?e.clientY:event.clientY)),t.Mouse.onclick(e.x,e.y)},e.canvas.onmousemove=function(e){e=n(new t.Point(null!=e?e.clientX:event.clientX,null!=e?e.clientY:event.clientY)),t.Mouse.onmousemove(e.x,e.y)});var s=t.CreateElement(i.documentElement),a=s.root=!0,r=function(){t.ViewPort.Clear(),e.canvas.parentNode&&t.ViewPort.SetCurrent(e.canvas.parentNode.clientWidth,e.canvas.parentNode.clientHeight),1!=t.opts.ignoreDimensions&&(s.style("width").hasValue()&&(e.canvas.width=s.style("width").Length.toPixels("x"),e.canvas.style.width=e.canvas.width+"px"),s.style("height").hasValue()&&(e.canvas.height=s.style("height").Length.toPixels("y"),e.canvas.style.height=e.canvas.height+"px"));var i=e.canvas.clientWidth||e.canvas.width,n=e.canvas.clientHeight||e.canvas.height;if(t.ViewPort.SetCurrent(i,n),null!=t.opts&&null!=t.opts.offsetX&&(s.attribute("x",!0).value=t.opts.offsetX),null!=t.opts&&null!=t.opts.offsetY&&(s.attribute("y",!0).value=t.opts.offsetY),null!=t.opts&&null!=t.opts.scaleWidth&&null!=t.opts.scaleHeight){var r=1,o=1;s.attribute("width").hasValue()&&(r=s.attribute("width").Length.toPixels("x")/t.opts.scaleWidth),s.attribute("height").hasValue()&&(o=s.attribute("height").Length.toPixels("y")/t.opts.scaleHeight),s.attribute("width",!0).value=t.opts.scaleWidth,s.attribute("height",!0).value=t.opts.scaleHeight,s.attribute("viewBox",!0).value="0 0 "+i*r+" "+n*o,s.attribute("preserveAspectRatio",!0).value="none"}1!=t.opts.ignoreClear&&e.clearRect(0,0,i,n),s.render(e),a&&(a=!1,null!=t.opts&&"function"==typeof t.opts.renderCallback&&t.opts.renderCallback())},o=!0;t.ImagesLoaded()&&(o=!1,r()),t.intervalID=setInterval(function(){var e=!1;if(o&&t.ImagesLoaded()&&(o=!1,e=!0),1!=t.opts.ignoreMouse&&(e|=t.Mouse.hasEvents()),1!=t.opts.ignoreAnimation)for(var i=0;i<t.Animations.length;i++)e|=t.Animations[i].update(1e3/t.FRAMERATE);null!=t.opts&&"function"==typeof t.opts.forceRedraw&&1==t.opts.forceRedraw()&&(e=!0),e&&(r(),t.Mouse.runEvents())},1e3/t.FRAMERATE)},t.stop=function(){t.intervalID&&clearInterval(t.intervalID)},t.Mouse=new function(){this.events=[],this.hasEvents=function(){return 0!=this.events.length},this.onclick=function(t,e){this.events.push({type:"onclick",x:t,y:e,run:function(t){t.onclick&&t.onclick()}})},this.onmousemove=function(t,e){this.events.push({type:"onmousemove",x:t,y:e,run:function(t){t.onmousemove&&t.onmousemove()}})},this.eventElements=[],this.checkPath=function(t,e){for(var i=0;i<this.events.length;i++){var n=this.events[i];e.isPointInPath&&e.isPointInPath(n.x,n.y)&&(this.eventElements[i]=t)}},this.checkBoundingBox=function(t,e){for(var i=0;i<this.events.length;i++){var n=this.events[i];e.isPointInBox(n.x,n.y)&&(this.eventElements[i]=t)}},this.runEvents=function(){t.ctx.canvas.style.cursor="";for(var e=0;e<this.events.length;e++)for(var i=this.events[e],n=this.eventElements[e];n;)i.run(n),n=n.parent;this.events=[],this.eventElements=[]}},t}this.canvg=function(e,i,n){if(null==e&&null==i&&null==n)for(var i=document.getElementsByTagName("svg"),s=0;s<i.length;s++){e=i[s],n=document.createElement("canvas"),n.width=e.clientWidth,n.height=e.clientHeight,e.parentNode.insertBefore(n,e),e.parentNode.removeChild(e);var a=document.createElement("div");a.appendChild(e),canvg(n,a.innerHTML)}else n=n||{},"string"==typeof e&&(e=document.getElementById(e)),null==e.svg?(s=t(),e.svg=s):(s=e.svg,s.stop()),s.opts=n,e=e.getContext("2d"),"undefined"!=typeof i.documentElement?s.loadXmlDoc(e,i):"<"==i.substr(0,1)?s.loadXml(e,i):s.load(e,i)}}(),CanvasRenderingContext2D&&(CanvasRenderingContext2D.prototype.drawSvg=function(t,e,i,n,s){canvg(this.canvas,t,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:e,offsetY:i,scaleWidth:n,scaleHeight:s})}),function(t){var e=t.css,i=t.CanVGRenderer,n=t.SVGRenderer,s=t.extend,a=t.merge,r=t.addEvent,o=t.createElement,h=t.discardElement;s(i.prototype,n.prototype),s(i.prototype,{create:function(t,e,i,n){this.setContainer(e,i,n),this.configure(t)},setContainer:function(t,e,i){var n=t.style,s=t.parentNode,a=n.left,n=n.top,r=t.offsetWidth,h=t.offsetHeight,l={visibility:"hidden",position:"absolute"};this.init.apply(this,[t,e,i]),this.canvas=o("canvas",{width:r,height:h},{position:"relative",left:a,top:n},t),this.ttLine=o("div",null,l,s),this.ttDiv=o("div",null,l,s),this.ttTimer=void 0,this.hiddenSvg=t=o("div",{width:r,height:h},{visibility:"hidden",left:a,top:n},s),t.appendChild(this.box)},configure:function(t){var i=this,n=t.options.tooltip,s=n.borderWidth,o=i.ttDiv,h=n.style,l=i.ttLine,u=parseInt(h.padding,10),h=a(h,{padding:u+"px","background-color":n.backgroundColor,"border-style":"solid","border-width":s+"px","border-radius":n.borderRadius+"px"});n.shadow&&(h=a(h,{"box-shadow":"1px 1px 3px gray","-webkit-box-shadow":"1px 1px 3px gray"})),e(o,h),e(l,{"border-left":"1px solid darkgray"}),r(t,"tooltipRefresh",function(n){var s,a=t.container,r=a.offsetLeft,a=a.offsetTop;o.innerHTML=n.text,s=t.tooltip.getPosition(o.offsetWidth,o.offsetHeight,{plotX:n.x,plotY:n.y}),e(o,{visibility:"visible",left:s.x+"px",top:s.y+"px","border-color":n.borderColor}),e(l,{visibility:"visible",left:r+n.x+"px",top:a+t.plotTop+"px",height:t.plotHeight+"px"}),void 0!==i.ttTimer&&clearTimeout(i.ttTimer),i.ttTimer=setTimeout(function(){e(o,{visibility:"hidden"}),e(l,{visibility:"hidden"})},3e3)})},destroy:function(){return h(this.canvas),void 0!==this.ttTimer&&clearTimeout(this.ttTimer),h(this.ttLine),h(this.ttDiv),h(this.hiddenSvg),n.prototype.destroy.apply(this)},color:function(t,e,i){return t&&t.linearGradient&&(t=t.stops[t.stops.length-1][1]),n.prototype.color.call(this,t,e,i)},draw:function(){window.canvg(this.canvas,this.hiddenSvg.innerHTML)}})}(Highcharts);
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @license A class to parse color values
3
+ * @author Stoyan Stefanov <sstoo@gmail.com>
4
+ * @link http://www.phpied.com/rgb-color-parser-in-javascript/
5
+ * Use it if you like it
6
+ *
7
+ */
8
+
9
+ /**
10
+ * @license canvg.js - Javascript SVG parser and renderer on Canvas
11
+ * MIT Licensed
12
+ * Gabe Lerner (gabelerner@gmail.com)
13
+ * http://code.google.com/p/canvg/
14
+ *
15
+ * Requires: rgbcolor.js - http://www.phpied.com/rgb-color-parser-in-javascript/
16
+ *
17
+ */
18
+
19
+ /**
20
+ * @license Highcharts JS v2.3.3 (2012-10-04)
21
+ * CanVGRenderer Extension module
22
+ *
23
+ * (c) 2011-2012 Torstein Hønsi, Erik Olsson
24
+ *
25
+ * License: www.highcharts.com/license
26
+ */
27
+
28
+ function RGBColor(t){this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=t.replace(/ /g,""),t=t.toLowerCase();var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};for(var i in e)t==i&&(t=e[i]);for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],s=0;s<n.length;s++){var a=n[s].re,r=n[s].process,o=a.exec(t);o&&(channels=r(o),this.r=channels[0],this.g=channels[1],this.b=channels[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),i=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==i.length&&(i="0"+i),"#"+t+e+i},this.getHelpXML=function(){for(var t=new Array,i=0;i<n.length;i++)for(var s=n[i].example,a=0;a<s.length;a++)t[t.length]=s[a];for(var r in e)t[t.length]=r;var o=document.createElement("ul");o.setAttribute("id","rgbcolor-examples");for(var i=0;i<t.length;i++)try{var l=document.createElement("li"),h=new RGBColor(t[i]),u=document.createElement("div");u.style.cssText="margin: 3px; border: 1px solid black; background:"+h.toHex()+"; "+"color:"+h.toHex(),u.appendChild(document.createTextNode("test"));var f=document.createTextNode(" "+t[i]+" -> "+h.toRGB()+" -> "+h.toHex());l.appendChild(u),l.appendChild(f),o.appendChild(l)}catch(c){}return o}}window.console||(window.console={},window.console.log=function(){},window.console.dir=function(){}),Array.prototype.indexOf||(Array.prototype.indexOf=function(t){for(var e=0;e<this.length;e++)if(this[e]==t)return e;return-1}),function(){function t(){var t={};return t.FRAMERATE=30,t.MAX_VIRTUAL_PIXELS=3e4,t.init=function(e){t.Definitions={},t.Styles={},t.Animations=[],t.Images=[],t.ctx=e,t.ViewPort=new function(){this.viewPorts=[],this.Clear=function(){this.viewPorts=[]},this.SetCurrent=function(t,e){this.viewPorts.push({width:t,height:e})},this.RemoveCurrent=function(){this.viewPorts.pop()},this.Current=function(){return this.viewPorts[this.viewPorts.length-1]},this.width=function(){return this.Current().width},this.height=function(){return this.Current().height},this.ComputeSize=function(t){return null!=t&&"number"==typeof t?t:"x"==t?this.width():"y"==t?this.height():Math.sqrt(Math.pow(this.width(),2)+Math.pow(this.height(),2))/Math.sqrt(2)}}},t.init(),t.ImagesLoaded=function(){for(var e=0;e<t.Images.length;e++)if(!t.Images[e].loaded)return!1;return!0},t.trim=function(t){return t.replace(/^\s+|\s+$/g,"")},t.compressSpaces=function(t){return t.replace(/[\s\r\t\n]+/gm," ")},t.ajax=function(t){var e;return e=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),e?(e.open("GET",t,!1),e.send(null),e.responseText):null},t.parseXml=function(t){if(window.DOMParser){var e=new DOMParser;return e.parseFromString(t,"text/xml")}t=t.replace(/<!DOCTYPE svg[^>]*>/,"");var i=new ActiveXObject("Microsoft.XMLDOM");return i.async="false",i.loadXML(t),i},t.Property=function(e,i){this.name=e,this.value=i,this.hasValue=function(){return null!=this.value&&""!==this.value},this.numValue=function(){if(!this.hasValue())return 0;var t=parseFloat(this.value);return(this.value+"").match(/%$/)&&(t/=100),t},this.valueOrDefault=function(t){return this.hasValue()?this.value:t},this.numValueOrDefault=function(t){return this.hasValue()?this.numValue():t};var n=this;this.Color={addOpacity:function(e){var i=n.value;if(null!=e&&""!=e){var s=new RGBColor(n.value);s.ok&&(i="rgba("+s.r+", "+s.g+", "+s.b+", "+e+")")}return new t.Property(n.name,i)}},this.Definition={getDefinition:function(){var e=n.value.replace(/^(url\()?#([^\)]+)\)?$/,"$2");return t.Definitions[e]},isUrl:function(){return 0==n.value.indexOf("url(")},getFillStyle:function(e){var i=this.getDefinition();return null!=i&&i.createGradient?i.createGradient(t.ctx,e):null!=i&&i.createPattern?i.createPattern(t.ctx,e):null}},this.Length={DPI:function(){return 96},EM:function(e){var i=12,n=new t.Property("fontSize",t.Font.Parse(t.ctx.font).fontSize);return n.hasValue()&&(i=n.Length.toPixels(e)),i},toPixels:function(e){if(!n.hasValue())return 0;var i=n.value+"";return i.match(/em$/)?n.numValue()*this.EM(e):i.match(/ex$/)?n.numValue()*this.EM(e)/2:i.match(/px$/)?n.numValue():i.match(/pt$/)?1.25*n.numValue():i.match(/pc$/)?15*n.numValue():i.match(/cm$/)?n.numValue()*this.DPI(e)/2.54:i.match(/mm$/)?n.numValue()*this.DPI(e)/25.4:i.match(/in$/)?n.numValue()*this.DPI(e):i.match(/%$/)?n.numValue()*t.ViewPort.ComputeSize(e):n.numValue()}},this.Time={toMilliseconds:function(){if(!n.hasValue())return 0;var t=n.value+"";return t.match(/s$/)?1e3*n.numValue():t.match(/ms$/)?n.numValue():n.numValue()}},this.Angle={toRadians:function(){if(!n.hasValue())return 0;var t=n.value+"";return t.match(/deg$/)?n.numValue()*(Math.PI/180):t.match(/grad$/)?n.numValue()*(Math.PI/200):t.match(/rad$/)?n.numValue():n.numValue()*(Math.PI/180)}}},t.Font=new function(){this.Styles=["normal","italic","oblique","inherit"],this.Variants=["normal","small-caps","inherit"],this.Weights=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900","inherit"],this.CreateFont=function(e,i,n,s,a,r){var o=null!=r?this.Parse(r):this.CreateFont("","","","","",t.ctx.font);return{fontFamily:a||o.fontFamily,fontSize:s||o.fontSize,fontStyle:e||o.fontStyle,fontWeight:n||o.fontWeight,fontVariant:i||o.fontVariant,toString:function(){return[this.fontStyle,this.fontVariant,this.fontWeight,this.fontSize,this.fontFamily].join(" ")}}};var e=this;this.Parse=function(i){for(var n={},s=t.trim(t.compressSpaces(i||"")).split(" "),a={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1},r="",o=0;o<s.length;o++)a.fontStyle||-1==e.Styles.indexOf(s[o])?a.fontVariant||-1==e.Variants.indexOf(s[o])?a.fontWeight||-1==e.Weights.indexOf(s[o])?a.fontSize?"inherit"!=s[o]&&(r+=s[o]):("inherit"!=s[o]&&(n.fontSize=s[o].split("/")[0]),a.fontStyle=a.fontVariant=a.fontWeight=a.fontSize=!0):("inherit"!=s[o]&&(n.fontWeight=s[o]),a.fontStyle=a.fontVariant=a.fontWeight=!0):("inherit"!=s[o]&&(n.fontVariant=s[o]),a.fontStyle=a.fontVariant=!0):("inherit"!=s[o]&&(n.fontStyle=s[o]),a.fontStyle=!0);return""!=r&&(n.fontFamily=r),n}},t.ToNumberArray=function(e){for(var i=t.trim(t.compressSpaces((e||"").replace(/,/g," "))).split(" "),n=0;n<i.length;n++)i[n]=parseFloat(i[n]);return i},t.Point=function(t,e){this.x=t,this.y=e,this.angleTo=function(t){return Math.atan2(t.y-this.y,t.x-this.x)},this.applyTransform=function(t){var e=this.x*t[0]+this.y*t[2]+t[4],i=this.x*t[1]+this.y*t[3]+t[5];this.x=e,this.y=i}},t.CreatePoint=function(e){var i=t.ToNumberArray(e);return new t.Point(i[0],i[1])},t.CreatePath=function(e){for(var i=t.ToNumberArray(e),n=[],s=0;s<i.length;s+=2)n.push(new t.Point(i[s],i[s+1]));return n},t.BoundingBox=function(t,e,n,s){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN,this.x=function(){return this.x1},this.y=function(){return this.y1},this.width=function(){return this.x2-this.x1},this.height=function(){return this.y2-this.y1},this.addPoint=function(t,e){null!=t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),null!=e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),e<this.y1&&(this.y1=e),e>this.y2&&(this.y2=e))},this.addX=function(t){this.addPoint(t,null)},this.addY=function(t){this.addPoint(null,t)},this.addBoundingBox=function(t){this.addPoint(t.x1,t.y1),this.addPoint(t.x2,t.y2)},this.addQuadraticCurve=function(t,e,i,n,s,a){var r=t+2/3*(i-t),o=e+2/3*(n-e),l=r+1/3*(s-t),h=o+1/3*(a-e);this.addBezierCurve(t,e,r,l,o,h,s,a)},this.addBezierCurve=function(t,e,n,s,a,r,o,l){var h=[t,e],u=[n,s],f=[a,r],c=[o,l];for(this.addPoint(h[0],h[1]),this.addPoint(c[0],c[1]),i=0;1>=i;i++){var d=function(t){return Math.pow(1-t,3)*h[i]+3*Math.pow(1-t,2)*t*u[i]+3*(1-t)*Math.pow(t,2)*f[i]+Math.pow(t,3)*c[i]},m=6*h[i]-12*u[i]+6*f[i],p=-3*h[i]+9*u[i]-9*f[i]+3*c[i],g=3*u[i]-3*h[i];if(0!=p){var y=Math.pow(m,2)-4*g*p;if(!(0>y)){var v=(-m+Math.sqrt(y))/(2*p);v>0&&1>v&&(0==i&&this.addX(d(v)),1==i&&this.addY(d(v)));var b=(-m-Math.sqrt(y))/(2*p);b>0&&1>b&&(0==i&&this.addX(d(b)),1==i&&this.addY(d(b)))}}else{if(0==m)continue;var x=-g/m;x>0&&1>x&&(0==i&&this.addX(d(x)),1==i&&this.addY(d(x)))}}},this.isPointInBox=function(t,e){return this.x1<=t&&t<=this.x2&&this.y1<=e&&e<=this.y2},this.addPoint(t,e),this.addPoint(n,s)},t.Transform=function(e){var i=this;this.Type={},this.Type.translate=function(e){this.p=t.CreatePoint(e),this.apply=function(t){t.translate(this.p.x||0,this.p.y||0)},this.applyToPoint=function(t){t.applyTransform([1,0,0,1,this.p.x||0,this.p.y||0])}},this.Type.rotate=function(e){var i=t.ToNumberArray(e);this.angle=new t.Property("angle",i[0]),this.cx=i[1]||0,this.cy=i[2]||0,this.apply=function(t){t.translate(this.cx,this.cy),t.rotate(this.angle.Angle.toRadians()),t.translate(-this.cx,-this.cy)},this.applyToPoint=function(t){var e=this.angle.Angle.toRadians();t.applyTransform([1,0,0,1,this.p.x||0,this.p.y||0]),t.applyTransform([Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0]),t.applyTransform([1,0,0,1,-this.p.x||0,-this.p.y||0])}},this.Type.scale=function(e){this.p=t.CreatePoint(e),this.apply=function(t){t.scale(this.p.x||1,this.p.y||this.p.x||1)},this.applyToPoint=function(t){t.applyTransform([this.p.x||0,0,0,this.p.y||0,0,0])}},this.Type.matrix=function(e){this.m=t.ToNumberArray(e),this.apply=function(t){t.transform(this.m[0],this.m[1],this.m[2],this.m[3],this.m[4],this.m[5])},this.applyToPoint=function(t){t.applyTransform(this.m)}},this.Type.SkewBase=function(e){this.base=i.Type.matrix,this.base(e),this.angle=new t.Property("angle",e)},this.Type.SkewBase.prototype=new this.Type.matrix,this.Type.skewX=function(t){this.base=i.Type.SkewBase,this.base(t),this.m=[1,0,Math.tan(this.angle.Angle.toRadians()),1,0,0]},this.Type.skewX.prototype=new this.Type.SkewBase,this.Type.skewY=function(t){this.base=i.Type.SkewBase,this.base(t),this.m=[1,Math.tan(this.angle.Angle.toRadians()),0,1,0,0]},this.Type.skewY.prototype=new this.Type.SkewBase,this.transforms=[],this.apply=function(t){for(var e=0;e<this.transforms.length;e++)this.transforms[e].apply(t)},this.applyToPoint=function(t){for(var e=0;e<this.transforms.length;e++)this.transforms[e].applyToPoint(t)};for(var n=t.trim(t.compressSpaces(e)).split(/\s(?=[a-z])/),s=0;s<n.length;s++){var a=n[s].split("(")[0],r=n[s].split("(")[1].replace(")",""),o=new this.Type[a](r);this.transforms.push(o)}},t.AspectRatio=function(e,i,n,s,a,r,o,l,h,u){i=t.compressSpaces(i),i=i.replace(/^defer\s/,"");var f=i.split(" ")[0]||"xMidYMid",c=i.split(" ")[1]||"meet",d=n/s,m=a/r,p=Math.min(d,m),g=Math.max(d,m);"meet"==c&&(s*=p,r*=p),"slice"==c&&(s*=g,r*=g),h=new t.Property("refX",h),u=new t.Property("refY",u),h.hasValue()&&u.hasValue()?e.translate(-p*h.Length.toPixels("x"),-p*u.Length.toPixels("y")):(f.match(/^xMid/)&&("meet"==c&&p==m||"slice"==c&&g==m)&&e.translate(n/2-s/2,0),f.match(/YMid$/)&&("meet"==c&&p==d||"slice"==c&&g==d)&&e.translate(0,a/2-r/2),f.match(/^xMax/)&&("meet"==c&&p==m||"slice"==c&&g==m)&&e.translate(n-s,0),f.match(/YMax$/)&&("meet"==c&&p==d||"slice"==c&&g==d)&&e.translate(0,a-r)),"none"==f?e.scale(d,m):"meet"==c?e.scale(p,p):"slice"==c&&e.scale(g,g),e.translate(null==o?0:-o,null==l?0:-l)},t.Element={},t.Element.ElementBase=function(e){if(this.attributes={},this.styles={},this.children=[],this.attribute=function(e,i){var n=this.attributes[e];return null!=n?n:(n=new t.Property(e,""),1==i&&(this.attributes[e]=n),n)},this.style=function(e,i){var n=this.styles[e];if(null!=n)return n;var s=this.attribute(e);if(null!=s&&s.hasValue())return s;var a=this.parent;if(null!=a){var r=a.style(e);if(null!=r&&r.hasValue())return r}return n=new t.Property(e,""),1==i&&(this.styles[e]=n),n},this.render=function(t){if("none"!=this.style("display").value&&"hidden"!=this.attribute("visibility").value){if(t.save(),this.setContext(t),this.attribute("mask").hasValue()){var e=this.attribute("mask").Definition.getDefinition();null!=e&&e.apply(t,this)}else if(this.style("filter").hasValue()){var i=this.style("filter").Definition.getDefinition();null!=i&&i.apply(t,this)}else this.renderChildren(t);this.clearContext(t),t.restore()}},this.setContext=function(){},this.clearContext=function(){},this.renderChildren=function(t){for(var e=0;e<this.children.length;e++)this.children[e].render(t)},this.addChild=function(e,i){var n=e;i&&(n=t.CreateElement(e)),n.parent=this,this.children.push(n)},null!=e&&1==e.nodeType){for(var i=0;i<e.childNodes.length;i++){var n=e.childNodes[i];1==n.nodeType&&this.addChild(n,!0)}for(var i=0;i<e.attributes.length;i++){var s=e.attributes[i];this.attributes[s.nodeName]=new t.Property(s.nodeName,s.nodeValue)}var a=t.Styles[e.nodeName];if(null!=a)for(var r in a)this.styles[r]=a[r];if(this.attribute("class").hasValue())for(var o=t.compressSpaces(this.attribute("class").value).split(" "),l=0;l<o.length;l++){if(a=t.Styles["."+o[l]],null!=a)for(var r in a)this.styles[r]=a[r];if(a=t.Styles[e.nodeName+"."+o[l]],null!=a)for(var r in a)this.styles[r]=a[r]}if(this.attribute("style").hasValue())for(var a=this.attribute("style").value.split(";"),i=0;i<a.length;i++)if(""!=t.trim(a[i])){var h=a[i].split(":"),r=t.trim(h[0]),u=t.trim(h[1]);this.styles[r]=new t.Property(r,u)}this.attribute("id").hasValue()&&null==t.Definitions[this.attribute("id").value]&&(t.Definitions[this.attribute("id").value]=this)}},t.Element.RenderedElementBase=function(e){this.base=t.Element.ElementBase,this.base(e),this.setContext=function(e){if(this.style("fill").Definition.isUrl()){var i=this.style("fill").Definition.getFillStyle(this);null!=i&&(e.fillStyle=i)}else if(this.style("fill").hasValue()){var n=this.style("fill");this.style("fill-opacity").hasValue()&&(n=n.Color.addOpacity(this.style("fill-opacity").value)),e.fillStyle="none"==n.value?"rgba(0,0,0,0)":n.value}if(this.style("stroke").Definition.isUrl()){var i=this.style("stroke").Definition.getFillStyle(this);null!=i&&(e.strokeStyle=i)}else if(this.style("stroke").hasValue()){var s=this.style("stroke");this.style("stroke-opacity").hasValue()&&(s=s.Color.addOpacity(this.style("stroke-opacity").value)),e.strokeStyle="none"==s.value?"rgba(0,0,0,0)":s.value}if(this.style("stroke-width").hasValue()&&(e.lineWidth=this.style("stroke-width").Length.toPixels()),this.style("stroke-linecap").hasValue()&&(e.lineCap=this.style("stroke-linecap").value),this.style("stroke-linejoin").hasValue()&&(e.lineJoin=this.style("stroke-linejoin").value),this.style("stroke-miterlimit").hasValue()&&(e.miterLimit=this.style("stroke-miterlimit").value),"undefined"!=typeof e.font&&(e.font=t.Font.CreateFont(this.style("font-style").value,this.style("font-variant").value,this.style("font-weight").value,this.style("font-size").hasValue()?this.style("font-size").Length.toPixels()+"px":"",this.style("font-family").value).toString()),this.attribute("transform").hasValue()){var a=new t.Transform(this.attribute("transform").value);a.apply(e)}if(this.attribute("clip-path").hasValue()){var r=this.attribute("clip-path").Definition.getDefinition();null!=r&&r.apply(e)}this.style("opacity").hasValue()&&(e.globalAlpha=this.style("opacity").numValue())}},t.Element.RenderedElementBase.prototype=new t.Element.ElementBase,t.Element.PathElementBase=function(e){this.base=t.Element.RenderedElementBase,this.base(e),this.path=function(e){return null!=e&&e.beginPath(),new t.BoundingBox},this.renderChildren=function(e){this.path(e),t.Mouse.checkPath(this,e),""!=e.fillStyle&&e.fill(),""!=e.strokeStyle&&e.stroke();var i=this.getMarkers();if(null!=i){if(this.style("marker-start").Definition.isUrl()){var n=this.style("marker-start").Definition.getDefinition();n.render(e,i[0][0],i[0][1])}if(this.style("marker-mid").Definition.isUrl())for(var n=this.style("marker-mid").Definition.getDefinition(),s=1;s<i.length-1;s++)n.render(e,i[s][0],i[s][1]);if(this.style("marker-end").Definition.isUrl()){var n=this.style("marker-end").Definition.getDefinition();n.render(e,i[i.length-1][0],i[i.length-1][1])}}},this.getBoundingBox=function(){return this.path()},this.getMarkers=function(){return null}},t.Element.PathElementBase.prototype=new t.Element.RenderedElementBase,t.Element.svg=function(e){this.base=t.Element.RenderedElementBase,this.base(e),this.baseClearContext=this.clearContext,this.clearContext=function(e){this.baseClearContext(e),t.ViewPort.RemoveCurrent()},this.baseSetContext=this.setContext,this.setContext=function(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4,this.baseSetContext(e),this.attribute("x").hasValue()&&this.attribute("y").hasValue()&&e.translate(this.attribute("x").Length.toPixels("x"),this.attribute("y").Length.toPixels("y"));var i=t.ViewPort.width(),n=t.ViewPort.height();if("undefined"==typeof this.root&&this.attribute("width").hasValue()&&this.attribute("height").hasValue()){i=this.attribute("width").Length.toPixels("x"),n=this.attribute("height").Length.toPixels("y");var s=0,a=0;this.attribute("refX").hasValue()&&this.attribute("refY").hasValue()&&(s=-this.attribute("refX").Length.toPixels("x"),a=-this.attribute("refY").Length.toPixels("y")),e.beginPath(),e.moveTo(s,a),e.lineTo(i,a),e.lineTo(i,n),e.lineTo(s,n),e.closePath(),e.clip()}if(t.ViewPort.SetCurrent(i,n),this.attribute("viewBox").hasValue()){var r=t.ToNumberArray(this.attribute("viewBox").value),o=r[0],l=r[1];i=r[2],n=r[3],t.AspectRatio(e,this.attribute("preserveAspectRatio").value,t.ViewPort.width(),i,t.ViewPort.height(),n,o,l,this.attribute("refX").value,this.attribute("refY").value),t.ViewPort.RemoveCurrent(),t.ViewPort.SetCurrent(r[2],r[3])}}},t.Element.svg.prototype=new t.Element.RenderedElementBase,t.Element.rect=function(e){this.base=t.Element.PathElementBase,this.base(e),this.path=function(e){var i=this.attribute("x").Length.toPixels("x"),n=this.attribute("y").Length.toPixels("y"),s=this.attribute("width").Length.toPixels("x"),a=this.attribute("height").Length.toPixels("y"),r=this.attribute("rx").Length.toPixels("x"),o=this.attribute("ry").Length.toPixels("y");return this.attribute("rx").hasValue()&&!this.attribute("ry").hasValue()&&(o=r),this.attribute("ry").hasValue()&&!this.attribute("rx").hasValue()&&(r=o),null!=e&&(e.beginPath(),e.moveTo(i+r,n),e.lineTo(i+s-r,n),e.quadraticCurveTo(i+s,n,i+s,n+o),e.lineTo(i+s,n+a-o),e.quadraticCurveTo(i+s,n+a,i+s-r,n+a),e.lineTo(i+r,n+a),e.quadraticCurveTo(i,n+a,i,n+a-o),e.lineTo(i,n+o),e.quadraticCurveTo(i,n,i+r,n),e.closePath()),new t.BoundingBox(i,n,i+s,n+a)}},t.Element.rect.prototype=new t.Element.PathElementBase,t.Element.circle=function(e){this.base=t.Element.PathElementBase,this.base(e),this.path=function(e){var i=this.attribute("cx").Length.toPixels("x"),n=this.attribute("cy").Length.toPixels("y"),s=this.attribute("r").Length.toPixels();return null!=e&&(e.beginPath(),e.arc(i,n,s,0,2*Math.PI,!0),e.closePath()),new t.BoundingBox(i-s,n-s,i+s,n+s)}},t.Element.circle.prototype=new t.Element.PathElementBase,t.Element.ellipse=function(e){this.base=t.Element.PathElementBase,this.base(e),this.path=function(e){var i=4*((Math.sqrt(2)-1)/3),n=this.attribute("rx").Length.toPixels("x"),s=this.attribute("ry").Length.toPixels("y"),a=this.attribute("cx").Length.toPixels("x"),r=this.attribute("cy").Length.toPixels("y");return null!=e&&(e.beginPath(),e.moveTo(a,r-s),e.bezierCurveTo(a+i*n,r-s,a+n,r-i*s,a+n,r),e.bezierCurveTo(a+n,r+i*s,a+i*n,r+s,a,r+s),e.bezierCurveTo(a-i*n,r+s,a-n,r+i*s,a-n,r),e.bezierCurveTo(a-n,r-i*s,a-i*n,r-s,a,r-s),e.closePath()),new t.BoundingBox(a-n,r-s,a+n,r+s)}},t.Element.ellipse.prototype=new t.Element.PathElementBase,t.Element.line=function(e){this.base=t.Element.PathElementBase,this.base(e),this.getPoints=function(){return[new t.Point(this.attribute("x1").Length.toPixels("x"),this.attribute("y1").Length.toPixels("y")),new t.Point(this.attribute("x2").Length.toPixels("x"),this.attribute("y2").Length.toPixels("y"))]},this.path=function(e){var i=this.getPoints();return null!=e&&(e.beginPath(),e.moveTo(i[0].x,i[0].y),e.lineTo(i[1].x,i[1].y)),new t.BoundingBox(i[0].x,i[0].y,i[1].x,i[1].y)},this.getMarkers=function(){var t=this.getPoints(),e=t[0].angleTo(t[1]);return[[t[0],e],[t[1],e]]}},t.Element.line.prototype=new t.Element.PathElementBase,t.Element.polyline=function(e){this.base=t.Element.PathElementBase,this.base(e),this.points=t.CreatePath(this.attribute("points").value),this.path=function(e){var i=new t.BoundingBox(this.points[0].x,this.points[0].y);null!=e&&(e.beginPath(),e.moveTo(this.points[0].x,this.points[0].y));for(var n=1;n<this.points.length;n++)i.addPoint(this.points[n].x,this.points[n].y),null!=e&&e.lineTo(this.points[n].x,this.points[n].y);return i},this.getMarkers=function(){for(var t=[],e=0;e<this.points.length-1;e++)t.push([this.points[e],this.points[e].angleTo(this.points[e+1])]);return t.push([this.points[this.points.length-1],t[t.length-1][1]]),t}},t.Element.polyline.prototype=new t.Element.PathElementBase,t.Element.polygon=function(e){this.base=t.Element.polyline,this.base(e),this.basePath=this.path,this.path=function(t){var e=this.basePath(t);return null!=t&&(t.lineTo(this.points[0].x,this.points[0].y),t.closePath()),e}},t.Element.polygon.prototype=new t.Element.polyline,t.Element.path=function(e){this.base=t.Element.PathElementBase,this.base(e);var i=this.attribute("d").value;i=i.replace(/,/gm," "),i=i.replace(/([MmZzLlHhVvCcSsQqTtAa])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2"),i=i.replace(/([MmZzLlHhVvCcSsQqTtAa])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2"),i=i.replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2"),i=i.replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2"),i=i.replace(/([0-9])([+\-])/gm,"$1 $2"),i=i.replace(/(\.[0-9]*)(\.)/gm,"$1 $2"),i=i.replace(/([Aa](\s+[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $3 $4 "),i=t.compressSpaces(i),i=t.trim(i),this.PathParser=new function(e){this.tokens=e.split(" "),this.reset=function(){this.i=-1,this.command="",this.previousCommand="",this.start=new t.Point(0,0),this.control=new t.Point(0,0),this.current=new t.Point(0,0),this.points=[],this.angles=[]},this.isEnd=function(){return this.i>=this.tokens.length-1},this.isCommandOrEnd=function(){return this.isEnd()?!0:null!=this.tokens[this.i+1].match(/^[A-Za-z]$/)},this.isRelativeCommand=function(){return this.command==this.command.toLowerCase()},this.getToken=function(){return this.i=this.i+1,this.tokens[this.i]},this.getScalar=function(){return parseFloat(this.getToken())},this.nextCommand=function(){this.previousCommand=this.command,this.command=this.getToken()},this.getPoint=function(){var e=new t.Point(this.getScalar(),this.getScalar());return this.makeAbsolute(e)},this.getAsControlPoint=function(){var t=this.getPoint();return this.control=t,t},this.getAsCurrentPoint=function(){var t=this.getPoint();return this.current=t,t},this.getReflectedControlPoint=function(){if("c"!=this.previousCommand.toLowerCase()&&"s"!=this.previousCommand.toLowerCase())return this.current;var e=new t.Point(2*this.current.x-this.control.x,2*this.current.y-this.control.y);return e},this.makeAbsolute=function(t){return this.isRelativeCommand()&&(t.x=this.current.x+t.x,t.y=this.current.y+t.y),t},this.addMarker=function(t,e,i){null!=i&&this.angles.length>0&&null==this.angles[this.angles.length-1]&&(this.angles[this.angles.length-1]=this.points[this.points.length-1].angleTo(i)),this.addMarkerAngle(t,null==e?null:e.angleTo(t))},this.addMarkerAngle=function(t,e){this.points.push(t),this.angles.push(e)},this.getMarkerPoints=function(){return this.points},this.getMarkerAngles=function(){for(var t=0;t<this.angles.length;t++)if(null==this.angles[t])for(var e=t+1;e<this.angles.length;e++)if(null!=this.angles[e]){this.angles[t]=this.angles[e];break}return this.angles}}(i),this.path=function(e){var i=this.PathParser;i.reset();var n=new t.BoundingBox;for(null!=e&&e.beginPath();!i.isEnd();)switch(i.nextCommand(),i.command.toUpperCase()){case"M":var s=i.getAsCurrentPoint();for(i.addMarker(s),n.addPoint(s.x,s.y),null!=e&&e.moveTo(s.x,s.y),i.start=i.current;!i.isCommandOrEnd();){var s=i.getAsCurrentPoint();i.addMarker(s,i.start),n.addPoint(s.x,s.y),null!=e&&e.lineTo(s.x,s.y)}break;case"L":for(;!i.isCommandOrEnd();){var a=i.current,s=i.getAsCurrentPoint();i.addMarker(s,a),n.addPoint(s.x,s.y),null!=e&&e.lineTo(s.x,s.y)}break;case"H":for(;!i.isCommandOrEnd();){var r=new t.Point((i.isRelativeCommand()?i.current.x:0)+i.getScalar(),i.current.y);i.addMarker(r,i.current),i.current=r,n.addPoint(i.current.x,i.current.y),null!=e&&e.lineTo(i.current.x,i.current.y)}break;case"V":for(;!i.isCommandOrEnd();){var r=new t.Point(i.current.x,(i.isRelativeCommand()?i.current.y:0)+i.getScalar());i.addMarker(r,i.current),i.current=r,n.addPoint(i.current.x,i.current.y),null!=e&&e.lineTo(i.current.x,i.current.y)}break;case"C":for(;!i.isCommandOrEnd();){var o=i.current,l=i.getPoint(),h=i.getAsControlPoint(),u=i.getAsCurrentPoint();i.addMarker(u,h,l),n.addBezierCurve(o.x,o.y,l.x,l.y,h.x,h.y,u.x,u.y),null!=e&&e.bezierCurveTo(l.x,l.y,h.x,h.y,u.x,u.y)}break;case"S":for(;!i.isCommandOrEnd();){var o=i.current,l=i.getReflectedControlPoint(),h=i.getAsControlPoint(),u=i.getAsCurrentPoint();i.addMarker(u,h,l),n.addBezierCurve(o.x,o.y,l.x,l.y,h.x,h.y,u.x,u.y),null!=e&&e.bezierCurveTo(l.x,l.y,h.x,h.y,u.x,u.y)}break;case"Q":for(;!i.isCommandOrEnd();){var o=i.current,h=i.getAsControlPoint(),u=i.getAsCurrentPoint();i.addMarker(u,h,h),n.addQuadraticCurve(o.x,o.y,h.x,h.y,u.x,u.y),null!=e&&e.quadraticCurveTo(h.x,h.y,u.x,u.y)}break;case"T":for(;!i.isCommandOrEnd();){var o=i.current,h=i.getReflectedControlPoint();i.control=h;var u=i.getAsCurrentPoint();i.addMarker(u,h,h),n.addQuadraticCurve(o.x,o.y,h.x,h.y,u.x,u.y),null!=e&&e.quadraticCurveTo(h.x,h.y,u.x,u.y)}break;case"A":for(;!i.isCommandOrEnd();){var o=i.current,f=i.getScalar(),c=i.getScalar(),d=i.getScalar()*(Math.PI/180),m=i.getScalar(),p=i.getScalar(),u=i.getAsCurrentPoint(),g=new t.Point(Math.cos(d)*(o.x-u.x)/2+Math.sin(d)*(o.y-u.y)/2,-Math.sin(d)*(o.x-u.x)/2+Math.cos(d)*(o.y-u.y)/2),y=Math.pow(g.x,2)/Math.pow(f,2)+Math.pow(g.y,2)/Math.pow(c,2);y>1&&(f*=Math.sqrt(y),c*=Math.sqrt(y));var v=(m==p?-1:1)*Math.sqrt((Math.pow(f,2)*Math.pow(c,2)-Math.pow(f,2)*Math.pow(g.y,2)-Math.pow(c,2)*Math.pow(g.x,2))/(Math.pow(f,2)*Math.pow(g.y,2)+Math.pow(c,2)*Math.pow(g.x,2)));isNaN(v)&&(v=0);var b=new t.Point(v*f*g.y/c,v*-c*g.x/f),x=new t.Point((o.x+u.x)/2+Math.cos(d)*b.x-Math.sin(d)*b.y,(o.y+u.y)/2+Math.sin(d)*b.x+Math.cos(d)*b.y),w=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))},E=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(w(t)*w(e))},P=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(E(t,e))},C=P([1,0],[(g.x-b.x)/f,(g.y-b.y)/c]),B=[(g.x-b.x)/f,(g.y-b.y)/c],T=[(-g.x-b.x)/f,(-g.y-b.y)/c],k=P(B,T);E(B,T)<=-1&&(k=Math.PI),E(B,T)>=1&&(k=0),0==p&&k>0&&(k-=2*Math.PI),1==p&&0>k&&(k+=2*Math.PI);var V=new t.Point(x.x-f*Math.cos((C+k)/2),x.y-c*Math.sin((C+k)/2));if(i.addMarkerAngle(V,(C+k)/2+(0==p?1:-1)*Math.PI/2),i.addMarkerAngle(u,k+(0==p?1:-1)*Math.PI/2),n.addPoint(u.x,u.y),null!=e){var E=f>c?f:c,M=f>c?1:f/c,S=f>c?c/f:1;e.translate(x.x,x.y),e.rotate(d),e.scale(M,S),e.arc(0,0,E,C,C+k,1-p),e.scale(1/M,1/S),e.rotate(-d),e.translate(-x.x,-x.y)}}break;case"Z":null!=e&&e.closePath(),i.current=i.start}return n},this.getMarkers=function(){for(var t=this.PathParser.getMarkerPoints(),e=this.PathParser.getMarkerAngles(),i=[],n=0;n<t.length;n++)i.push([t[n],e[n]]);return i}},t.Element.path.prototype=new t.Element.PathElementBase,t.Element.pattern=function(e){this.base=t.Element.ElementBase,this.base(e),this.createPattern=function(e){var i=new t.Element.svg;i.attributes.viewBox=new t.Property("viewBox",this.attribute("viewBox").value),i.attributes.x=new t.Property("x",this.attribute("x").value),i.attributes.y=new t.Property("y",this.attribute("y").value),i.attributes.width=new t.Property("width",this.attribute("width").value),i.attributes.height=new t.Property("height",this.attribute("height").value),i.children=this.children;var n=document.createElement("canvas");return n.width=this.attribute("width").Length.toPixels("x"),n.height=this.attribute("height").Length.toPixels("y"),i.render(n.getContext("2d")),e.createPattern(n,"repeat")}},t.Element.pattern.prototype=new t.Element.ElementBase,t.Element.marker=function(e){this.base=t.Element.ElementBase,this.base(e),this.baseRender=this.render,this.render=function(e,i,n){e.translate(i.x,i.y),"auto"==this.attribute("orient").valueOrDefault("auto")&&e.rotate(n),"strokeWidth"==this.attribute("markerUnits").valueOrDefault("strokeWidth")&&e.scale(e.lineWidth,e.lineWidth),e.save();var s=new t.Element.svg;s.attributes.viewBox=new t.Property("viewBox",this.attribute("viewBox").value),s.attributes.refX=new t.Property("refX",this.attribute("refX").value),s.attributes.refY=new t.Property("refY",this.attribute("refY").value),s.attributes.width=new t.Property("width",this.attribute("markerWidth").value),s.attributes.height=new t.Property("height",this.attribute("markerHeight").value),s.attributes.fill=new t.Property("fill",this.attribute("fill").valueOrDefault("black")),s.attributes.stroke=new t.Property("stroke",this.attribute("stroke").valueOrDefault("none")),s.children=this.children,s.render(e),e.restore(),"strokeWidth"==this.attribute("markerUnits").valueOrDefault("strokeWidth")&&e.scale(1/e.lineWidth,1/e.lineWidth),"auto"==this.attribute("orient").valueOrDefault("auto")&&e.rotate(-n),e.translate(-i.x,-i.y)
29
+ }},t.Element.marker.prototype=new t.Element.ElementBase,t.Element.defs=function(e){this.base=t.Element.ElementBase,this.base(e),this.render=function(){}},t.Element.defs.prototype=new t.Element.ElementBase,t.Element.GradientBase=function(e){this.base=t.Element.ElementBase,this.base(e),this.gradientUnits=this.attribute("gradientUnits").valueOrDefault("objectBoundingBox"),this.stops=[];for(var i=0;i<this.children.length;i++){var n=this.children[i];this.stops.push(n)}this.getGradient=function(){},this.createGradient=function(e,i){var n=this;this.attribute("xlink:href").hasValue()&&(n=this.attribute("xlink:href").Definition.getDefinition());for(var s=this.getGradient(e,i),a=0;a<n.stops.length;a++)s.addColorStop(n.stops[a].offset,n.stops[a].color);if(this.attribute("gradientTransform").hasValue()){var r=t.ViewPort.viewPorts[0],o=new t.Element.rect;o.attributes.x=new t.Property("x",-t.MAX_VIRTUAL_PIXELS/3),o.attributes.y=new t.Property("y",-t.MAX_VIRTUAL_PIXELS/3),o.attributes.width=new t.Property("width",t.MAX_VIRTUAL_PIXELS),o.attributes.height=new t.Property("height",t.MAX_VIRTUAL_PIXELS);var l=new t.Element.g;l.attributes.transform=new t.Property("transform",this.attribute("gradientTransform").value),l.children=[o];var h=new t.Element.svg;h.attributes.x=new t.Property("x",0),h.attributes.y=new t.Property("y",0),h.attributes.width=new t.Property("width",r.width),h.attributes.height=new t.Property("height",r.height),h.children=[l];var u=document.createElement("canvas");u.width=r.width,u.height=r.height;var f=u.getContext("2d");return f.fillStyle=s,h.render(f),f.createPattern(u,"no-repeat")}return s}},t.Element.GradientBase.prototype=new t.Element.ElementBase,t.Element.linearGradient=function(e){this.base=t.Element.GradientBase,this.base(e),this.getGradient=function(t,e){var i=e.getBoundingBox(),n="objectBoundingBox"==this.gradientUnits?i.x()+i.width()*this.attribute("x1").numValue():this.attribute("x1").Length.toPixels("x"),s="objectBoundingBox"==this.gradientUnits?i.y()+i.height()*this.attribute("y1").numValue():this.attribute("y1").Length.toPixels("y"),a="objectBoundingBox"==this.gradientUnits?i.x()+i.width()*this.attribute("x2").numValue():this.attribute("x2").Length.toPixels("x"),r="objectBoundingBox"==this.gradientUnits?i.y()+i.height()*this.attribute("y2").numValue():this.attribute("y2").Length.toPixels("y");return t.createLinearGradient(n,s,a,r)}},t.Element.linearGradient.prototype=new t.Element.GradientBase,t.Element.radialGradient=function(e){this.base=t.Element.GradientBase,this.base(e),this.getGradient=function(t,e){var i=e.getBoundingBox(),n="objectBoundingBox"==this.gradientUnits?i.x()+i.width()*this.attribute("cx").numValue():this.attribute("cx").Length.toPixels("x"),s="objectBoundingBox"==this.gradientUnits?i.y()+i.height()*this.attribute("cy").numValue():this.attribute("cy").Length.toPixels("y"),a=n,r=s;this.attribute("fx").hasValue()&&(a="objectBoundingBox"==this.gradientUnits?i.x()+i.width()*this.attribute("fx").numValue():this.attribute("fx").Length.toPixels("x")),this.attribute("fy").hasValue()&&(r="objectBoundingBox"==this.gradientUnits?i.y()+i.height()*this.attribute("fy").numValue():this.attribute("fy").Length.toPixels("y"));var o="objectBoundingBox"==this.gradientUnits?(i.width()+i.height())/2*this.attribute("r").numValue():this.attribute("r").Length.toPixels();return t.createRadialGradient(a,r,0,n,s,o)}},t.Element.radialGradient.prototype=new t.Element.GradientBase,t.Element.stop=function(e){this.base=t.Element.ElementBase,this.base(e),this.offset=this.attribute("offset").numValue();var i=this.style("stop-color");this.style("stop-opacity").hasValue()&&(i=i.Color.addOpacity(this.style("stop-opacity").value)),this.color=i.value},t.Element.stop.prototype=new t.Element.ElementBase,t.Element.AnimateBase=function(e){this.base=t.Element.ElementBase,this.base(e),t.Animations.push(this),this.duration=0,this.begin=this.attribute("begin").Time.toMilliseconds(),this.maxDuration=this.begin+this.attribute("dur").Time.toMilliseconds(),this.getProperty=function(){var t=this.attribute("attributeType").value,e=this.attribute("attributeName").value;return"CSS"==t?this.parent.style(e,!0):this.parent.attribute(e,!0)},this.initialValue=null,this.removed=!1,this.calcValue=function(){return""},this.update=function(t){if(null==this.initialValue&&(this.initialValue=this.getProperty().value),this.duration>this.maxDuration){if("indefinite"!=this.attribute("repeatCount").value)return"remove"!=this.attribute("fill").valueOrDefault("remove")||this.removed?!1:(this.removed=!0,this.getProperty().value=this.initialValue,!0);this.duration=0}this.duration=this.duration+t;var e=!1;if(this.begin<this.duration){var i=this.calcValue();if(this.attribute("type").hasValue()){var n=this.attribute("type").value;i=n+"("+i+")"}this.getProperty().value=i,e=!0}return e},this.progress=function(){return(this.duration-this.begin)/(this.maxDuration-this.begin)}},t.Element.AnimateBase.prototype=new t.Element.ElementBase,t.Element.animate=function(e){this.base=t.Element.AnimateBase,this.base(e),this.calcValue=function(){var t=this.attribute("from").numValue(),e=this.attribute("to").numValue();return t+(e-t)*this.progress()}},t.Element.animate.prototype=new t.Element.AnimateBase,t.Element.animateColor=function(e){this.base=t.Element.AnimateBase,this.base(e),this.calcValue=function(){var t=new RGBColor(this.attribute("from").value),e=new RGBColor(this.attribute("to").value);if(t.ok&&e.ok){var i=t.r+(e.r-t.r)*this.progress(),n=t.g+(e.g-t.g)*this.progress(),s=t.b+(e.b-t.b)*this.progress();return"rgb("+parseInt(i,10)+","+parseInt(n,10)+","+parseInt(s,10)+")"}return this.attribute("from").value}},t.Element.animateColor.prototype=new t.Element.AnimateBase,t.Element.animateTransform=function(e){this.base=t.Element.animate,this.base(e)},t.Element.animateTransform.prototype=new t.Element.animate,t.Element.font=function(e){this.base=t.Element.ElementBase,this.base(e),this.horizAdvX=this.attribute("horiz-adv-x").numValue(),this.isRTL=!1,this.isArabic=!1,this.fontFace=null,this.missingGlyph=null,this.glyphs=[];for(var i=0;i<this.children.length;i++){var n=this.children[i];"font-face"==n.type?(this.fontFace=n,n.style("font-family").hasValue()&&(t.Definitions[n.style("font-family").value]=this)):"missing-glyph"==n.type?this.missingGlyph=n:"glyph"==n.type&&(""!=n.arabicForm?(this.isRTL=!0,this.isArabic=!0,"undefined"==typeof this.glyphs[n.unicode]&&(this.glyphs[n.unicode]=[]),this.glyphs[n.unicode][n.arabicForm]=n):this.glyphs[n.unicode]=n)}},t.Element.font.prototype=new t.Element.ElementBase,t.Element.fontface=function(e){this.base=t.Element.ElementBase,this.base(e),this.ascent=this.attribute("ascent").value,this.descent=this.attribute("descent").value,this.unitsPerEm=this.attribute("units-per-em").numValue()},t.Element.fontface.prototype=new t.Element.ElementBase,t.Element.missingglyph=function(e){this.base=t.Element.path,this.base(e),this.horizAdvX=0},t.Element.missingglyph.prototype=new t.Element.path,t.Element.glyph=function(e){this.base=t.Element.path,this.base(e),this.horizAdvX=this.attribute("horiz-adv-x").numValue(),this.unicode=this.attribute("unicode").value,this.arabicForm=this.attribute("arabic-form").value},t.Element.glyph.prototype=new t.Element.path,t.Element.text=function(e){if(this.base=t.Element.RenderedElementBase,this.base(e),null!=e){this.children=[];for(var i=0;i<e.childNodes.length;i++){var n=e.childNodes[i];1==n.nodeType?this.addChild(n,!0):3==n.nodeType&&this.addChild(new t.Element.tspan(n),!1)}}this.baseSetContext=this.setContext,this.setContext=function(t){this.baseSetContext(t),this.style("dominant-baseline").hasValue()&&(t.textBaseline=this.style("dominant-baseline").value),this.style("alignment-baseline").hasValue()&&(t.textBaseline=this.style("alignment-baseline").value)},this.renderChildren=function(t){for(var e=this.style("text-anchor").valueOrDefault("start"),i=this.attribute("x").Length.toPixels("x"),n=this.attribute("y").Length.toPixels("y"),s=0;s<this.children.length;s++){var a=this.children[s];a.attribute("x").hasValue()?a.x=a.attribute("x").Length.toPixels("x"):(a.attribute("dx").hasValue()&&(i+=a.attribute("dx").Length.toPixels("x")),a.x=i);var r=a.measureText(t);if("start"!=e&&(0==s||a.attribute("x").hasValue())){for(var o=r,l=s+1;l<this.children.length;l++){var h=this.children[l];if(h.attribute("x").hasValue())break;o+=h.measureText(t)}a.x-="end"==e?o:o/2}i=a.x+r,a.attribute("y").hasValue()?a.y=a.attribute("y").Length.toPixels("y"):(a.attribute("dy").hasValue()&&(n+=a.attribute("dy").Length.toPixels("y")),a.y=n),n=a.y,a.render(t)}}},t.Element.text.prototype=new t.Element.RenderedElementBase,t.Element.TextElementBase=function(e){this.base=t.Element.RenderedElementBase,this.base(e),this.getGlyph=function(t,e,i){var n=e[i],s=null;if(t.isArabic){var a="isolated";(0==i||" "==e[i-1])&&i<e.length-2&&" "!=e[i+1]&&(a="terminal"),i>0&&" "!=e[i-1]&&i<e.length-2&&" "!=e[i+1]&&(a="medial"),i>0&&" "!=e[i-1]&&(i==e.length-1||" "==e[i+1])&&(a="initial"),"undefined"!=typeof t.glyphs[n]&&(s=t.glyphs[n][a],null==s&&"glyph"==t.glyphs[n].type&&(s=t.glyphs[n]))}else s=t.glyphs[n];return null==s&&(s=t.missingGlyph),s},this.renderChildren=function(e){var i=this.parent.style("font-family").Definition.getDefinition();if(null==i)""!=e.strokeStyle&&e.strokeText(t.compressSpaces(this.getText()),this.x,this.y),""!=e.fillStyle&&e.fillText(t.compressSpaces(this.getText()),this.x,this.y);else{var n=this.parent.style("font-size").numValueOrDefault(t.Font.Parse(t.ctx.font).fontSize),s=this.parent.style("font-style").valueOrDefault(t.Font.Parse(t.ctx.font).fontStyle),a=this.getText();i.isRTL&&(a=a.split("").reverse().join(""));for(var r=t.ToNumberArray(this.parent.attribute("dx").value),o=0;o<a.length;o++){var l=this.getGlyph(i,a,o),h=n/i.fontFace.unitsPerEm;e.translate(this.x,this.y),e.scale(h,-h);var u=e.lineWidth;e.lineWidth=e.lineWidth*i.fontFace.unitsPerEm/n,"italic"==s&&e.transform(1,0,.4,1,0,0),l.render(e),"italic"==s&&e.transform(1,0,-.4,1,0,0),e.lineWidth=u,e.scale(1/h,-1/h),e.translate(-this.x,-this.y),this.x+=n*(l.horizAdvX||i.horizAdvX)/i.fontFace.unitsPerEm,"undefined"==typeof r[o]||isNaN(r[o])||(this.x+=r[o])}}},this.getText=function(){},this.measureText=function(e){var i=this.parent.style("font-family").Definition.getDefinition();if(null!=i){var n=this.parent.style("font-size").numValueOrDefault(t.Font.Parse(t.ctx.font).fontSize),s=0,a=this.getText();i.isRTL&&(a=a.split("").reverse().join(""));for(var r=t.ToNumberArray(this.parent.attribute("dx").value),o=0;o<a.length;o++){var l=this.getGlyph(i,a,o);s+=(l.horizAdvX||i.horizAdvX)*n/i.fontFace.unitsPerEm,"undefined"==typeof r[o]||isNaN(r[o])||(s+=r[o])}return s}var h=t.compressSpaces(this.getText());if(!e.measureText)return 10*h.length;e.save(),this.setContext(e);var u=e.measureText(h).width;return e.restore(),u}},t.Element.TextElementBase.prototype=new t.Element.RenderedElementBase,t.Element.tspan=function(e){this.base=t.Element.TextElementBase,this.base(e),this.text=3==e.nodeType?e.nodeValue:e.childNodes.length>0?e.childNodes[0].nodeValue:e.text,this.getText=function(){return this.text}},t.Element.tspan.prototype=new t.Element.TextElementBase,t.Element.tref=function(e){this.base=t.Element.TextElementBase,this.base(e),this.getText=function(){var t=this.attribute("xlink:href").Definition.getDefinition();return null!=t?t.children[0].getText():void 0}},t.Element.tref.prototype=new t.Element.TextElementBase,t.Element.a=function(e){this.base=t.Element.TextElementBase,this.base(e),this.hasText=!0;for(var i=0;i<e.childNodes.length;i++)3!=e.childNodes[i].nodeType&&(this.hasText=!1);this.text=this.hasText?e.childNodes[0].nodeValue:"",this.getText=function(){return this.text},this.baseRenderChildren=this.renderChildren,this.renderChildren=function(e){if(this.hasText){this.baseRenderChildren(e);var i=new t.Property("fontSize",t.Font.Parse(t.ctx.font).fontSize);t.Mouse.checkBoundingBox(this,new t.BoundingBox(this.x,this.y-i.Length.toPixels("y"),this.x+this.measureText(e),this.y))}else{var n=new t.Element.g;n.children=this.children,n.parent=this,n.render(e)}},this.onclick=function(){window.open(this.attribute("xlink:href").value)},this.onmousemove=function(){t.ctx.canvas.style.cursor="pointer"}},t.Element.a.prototype=new t.Element.TextElementBase,t.Element.image=function(e){this.base=t.Element.RenderedElementBase,this.base(e),t.Images.push(this),this.img=document.createElement("img"),this.loaded=!1;var i=this;this.img.onload=function(){i.loaded=!0},this.img.src=this.attribute("xlink:href").value,this.renderChildren=function(e){var i=this.attribute("x").Length.toPixels("x"),n=this.attribute("y").Length.toPixels("y"),s=this.attribute("width").Length.toPixels("x"),a=this.attribute("height").Length.toPixels("y");0!=s&&0!=a&&(e.save(),e.translate(i,n),t.AspectRatio(e,this.attribute("preserveAspectRatio").value,s,this.img.width,a,this.img.height,0,0),e.drawImage(this.img,0,0),e.restore())}},t.Element.image.prototype=new t.Element.RenderedElementBase,t.Element.g=function(e){this.base=t.Element.RenderedElementBase,this.base(e),this.getBoundingBox=function(){for(var e=new t.BoundingBox,i=0;i<this.children.length;i++)e.addBoundingBox(this.children[i].getBoundingBox());return e}},t.Element.g.prototype=new t.Element.RenderedElementBase,t.Element.symbol=function(e){this.base=t.Element.RenderedElementBase,this.base(e),this.baseSetContext=this.setContext,this.setContext=function(e){if(this.baseSetContext(e),this.attribute("viewBox").hasValue()){var i=t.ToNumberArray(this.attribute("viewBox").value),n=i[0],s=i[1];width=i[2],height=i[3],t.AspectRatio(e,this.attribute("preserveAspectRatio").value,this.attribute("width").Length.toPixels("x"),width,this.attribute("height").Length.toPixels("y"),height,n,s),t.ViewPort.SetCurrent(i[2],i[3])}}},t.Element.symbol.prototype=new t.Element.RenderedElementBase,t.Element.style=function(e){this.base=t.Element.ElementBase,this.base(e);var i=e.childNodes[0].nodeValue+(e.childNodes.length>1?e.childNodes[1].nodeValue:"");i=i.replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,""),i=t.compressSpaces(i);for(var n=i.split("}"),s=0;s<n.length;s++)if(""!=t.trim(n[s]))for(var a=n[s].split("{"),r=a[0].split(","),o=a[1].split(";"),l=0;l<r.length;l++){var h=t.trim(r[l]);if(""!=h){for(var u={},f=0;f<o.length;f++){var c=o[f].indexOf(":"),d=o[f].substr(0,c),m=o[f].substr(c+1,o[f].length-c);null!=d&&null!=m&&(u[t.trim(d)]=new t.Property(t.trim(d),t.trim(m)))}if(t.Styles[h]=u,"@font-face"==h)for(var p=u["font-family"].value.replace(/"/g,""),g=u.src.value.split(","),y=0;y<g.length;y++)if(g[y].indexOf('format("svg")')>0)for(var v=g[y].indexOf("url"),b=g[y].indexOf(")",v),x=g[y].substr(v+5,b-v-6),w=t.parseXml(t.ajax(x)),E=w.getElementsByTagName("font"),P=0;P<E.length;P++){var C=t.CreateElement(E[P]);t.Definitions[p]=C}}}},t.Element.style.prototype=new t.Element.ElementBase,t.Element.use=function(e){this.base=t.Element.RenderedElementBase,this.base(e),this.baseSetContext=this.setContext,this.setContext=function(t){this.baseSetContext(t),this.attribute("x").hasValue()&&t.translate(this.attribute("x").Length.toPixels("x"),0),this.attribute("y").hasValue()&&t.translate(0,this.attribute("y").Length.toPixels("y"))},this.getDefinition=function(){var t=this.attribute("xlink:href").Definition.getDefinition();return this.attribute("width").hasValue()&&(t.attribute("width",!0).value=this.attribute("width").value),this.attribute("height").hasValue()&&(t.attribute("height",!0).value=this.attribute("height").value),t},this.path=function(t){var e=this.getDefinition();null!=e&&e.path(t)},this.renderChildren=function(t){var e=this.getDefinition();null!=e&&e.render(t)}},t.Element.use.prototype=new t.Element.RenderedElementBase,t.Element.mask=function(e){this.base=t.Element.ElementBase,this.base(e),this.apply=function(t,e){var i=this.attribute("x").Length.toPixels("x"),n=this.attribute("y").Length.toPixels("y"),s=this.attribute("width").Length.toPixels("x"),a=this.attribute("height").Length.toPixels("y"),r=e.attribute("mask").value;e.attribute("mask").value="";var o=document.createElement("canvas");o.width=i+s,o.height=n+a;var l=o.getContext("2d");this.renderChildren(l);var h=document.createElement("canvas");h.width=i+s,h.height=n+a;var u=h.getContext("2d");e.render(u),u.globalCompositeOperation="destination-in",u.fillStyle=l.createPattern(o,"no-repeat"),u.fillRect(0,0,i+s,n+a),t.fillStyle=u.createPattern(h,"no-repeat"),t.fillRect(0,0,i+s,n+a),e.attribute("mask").value=r},this.render=function(){}},t.Element.mask.prototype=new t.Element.ElementBase,t.Element.clipPath=function(e){this.base=t.Element.ElementBase,this.base(e),this.apply=function(t){for(var e=0;e<this.children.length;e++)this.children[e].path&&(this.children[e].path(t),t.clip())},this.render=function(){}},t.Element.clipPath.prototype=new t.Element.ElementBase,t.Element.filter=function(e){this.base=t.Element.ElementBase,this.base(e),this.apply=function(t,e){var i=e.getBoundingBox(),n=this.attribute("x").Length.toPixels("x"),s=this.attribute("y").Length.toPixels("y");(0==n||0==s)&&(n=i.x1,s=i.y1);var a=this.attribute("width").Length.toPixels("x"),r=this.attribute("height").Length.toPixels("y");(0==a||0==r)&&(a=i.width(),r=i.height());var o=e.style("filter").value;e.style("filter").value="";var l=.2,h=l*a,u=l*r,f=document.createElement("canvas");f.width=a+2*h,f.height=r+2*u;var c=f.getContext("2d");c.translate(-n+h,-s+u),e.render(c);for(var d=0;d<this.children.length;d++)this.children[d].apply(c,0,0,a+2*h,r+2*u);t.drawImage(f,0,0,a+2*h,r+2*u,n-h,s-u,a+2*h,r+2*u),e.style("filter",!0).value=o},this.render=function(){}},t.Element.filter.prototype=new t.Element.ElementBase,t.Element.feGaussianBlur=function(e){function i(t){t=Math.max(t,.01);var e=Math.ceil(4*t)+1;mask=[];for(var i=0;e>i;i++)mask[i]=Math.exp(-.5*(i/t)*(i/t));return mask}function n(t){for(var e=0,i=1;i<t.length;i++)e+=Math.abs(t[i]);e=2*e+Math.abs(t[0]);for(var i=0;i<t.length;i++)t[i]/=e;return t}function s(t,e,i,n,s){for(var o=0;s>o;o++)for(var l=0;n>l;l++)for(var h=a(t,l,o,n,s,3)/255,u=0;4>u;u++){for(var f=i[0]*(0==h?255:a(t,l,o,n,s,u))*(0==h||3==u?1:h),c=1;c<i.length;c++){var d=a(t,Math.max(l-c,0),o,n,s,3)/255,m=a(t,Math.min(l+c,n-1),o,n,s,3)/255;f+=i[c]*((0==d?255:a(t,Math.max(l-c,0),o,n,s,u))*(0==d||3==u?1:d)+(0==m?255:a(t,Math.min(l+c,n-1),o,n,s,u))*(0==m||3==u?1:m))}r(e,o,l,s,n,u,f)}}function a(t,e,i,n,s,a){return t[4*i*n+4*e+a]}function r(t,e,i,n,s,a,r){t[4*i*n+4*e+a]=r}function o(t,e,a,r){var o=t.getImageData(0,0,e,a),l=i(r);l=n(l),tmp=[],s(o.data,tmp,l,e,a),s(tmp,o.data,l,a,e),t.clearRect(0,0,e,a),t.putImageData(o,0,0)}this.base=t.Element.ElementBase,this.base(e),this.apply=function(t,e,i,n,s){o(t,n,s,this.attribute("stdDeviation").numValue())}},t.Element.filter.prototype=new t.Element.feGaussianBlur,t.Element.title=function(){},t.Element.title.prototype=new t.Element.ElementBase,t.Element.desc=function(){},t.Element.desc.prototype=new t.Element.ElementBase,t.Element.MISSING=function(t){console.log("ERROR: Element '"+t.nodeName+"' not yet implemented.")},t.Element.MISSING.prototype=new t.Element.ElementBase,t.CreateElement=function(e){var i=e.nodeName.replace(/^[^:]+:/,"");i=i.replace(/\-/g,"");var n=null;return n="undefined"!=typeof t.Element[i]?new t.Element[i](e):new t.Element.MISSING(e),n.type=e.nodeName,n},t.load=function(e,i){t.loadXml(e,t.ajax(i))},t.loadXml=function(e,i){t.loadXmlDoc(e,t.parseXml(i))},t.loadXmlDoc=function(e,i){t.init(e);var n=function(t){for(var i=e.canvas;i;)t.x-=i.offsetLeft,t.y-=i.offsetTop,i=i.offsetParent;return window.scrollX&&(t.x+=window.scrollX),window.scrollY&&(t.y+=window.scrollY),t};1!=t.opts.ignoreMouse&&(e.canvas.onclick=function(e){var i=n(new t.Point(null!=e?e.clientX:event.clientX,null!=e?e.clientY:event.clientY));t.Mouse.onclick(i.x,i.y)},e.canvas.onmousemove=function(e){var i=n(new t.Point(null!=e?e.clientX:event.clientX,null!=e?e.clientY:event.clientY));t.Mouse.onmousemove(i.x,i.y)});var s=t.CreateElement(i.documentElement);s.root=!0;var a=!0,r=function(){t.ViewPort.Clear(),e.canvas.parentNode&&t.ViewPort.SetCurrent(e.canvas.parentNode.clientWidth,e.canvas.parentNode.clientHeight),1!=t.opts.ignoreDimensions&&(s.style("width").hasValue()&&(e.canvas.width=s.style("width").Length.toPixels("x"),e.canvas.style.width=e.canvas.width+"px"),s.style("height").hasValue()&&(e.canvas.height=s.style("height").Length.toPixels("y"),e.canvas.style.height=e.canvas.height+"px"));var i=e.canvas.clientWidth||e.canvas.width,n=e.canvas.clientHeight||e.canvas.height;if(t.ViewPort.SetCurrent(i,n),null!=t.opts&&null!=t.opts.offsetX&&(s.attribute("x",!0).value=t.opts.offsetX),null!=t.opts&&null!=t.opts.offsetY&&(s.attribute("y",!0).value=t.opts.offsetY),null!=t.opts&&null!=t.opts.scaleWidth&&null!=t.opts.scaleHeight){var r=1,o=1;s.attribute("width").hasValue()&&(r=s.attribute("width").Length.toPixels("x")/t.opts.scaleWidth),s.attribute("height").hasValue()&&(o=s.attribute("height").Length.toPixels("y")/t.opts.scaleHeight),s.attribute("width",!0).value=t.opts.scaleWidth,s.attribute("height",!0).value=t.opts.scaleHeight,s.attribute("viewBox",!0).value="0 0 "+i*r+" "+n*o,s.attribute("preserveAspectRatio",!0).value="none"}1!=t.opts.ignoreClear&&e.clearRect(0,0,i,n),s.render(e),a&&(a=!1,null!=t.opts&&"function"==typeof t.opts.renderCallback&&t.opts.renderCallback())},o=!0;t.ImagesLoaded()&&(o=!1,r()),t.intervalID=setInterval(function(){var e=!1;if(o&&t.ImagesLoaded()&&(o=!1,e=!0),1!=t.opts.ignoreMouse&&(e|=t.Mouse.hasEvents()),1!=t.opts.ignoreAnimation)for(var i=0;i<t.Animations.length;i++)e|=t.Animations[i].update(1e3/t.FRAMERATE);null!=t.opts&&"function"==typeof t.opts.forceRedraw&&1==t.opts.forceRedraw()&&(e=!0),e&&(r(),t.Mouse.runEvents())},1e3/t.FRAMERATE)},t.stop=function(){t.intervalID&&clearInterval(t.intervalID)},t.Mouse=new function(){this.events=[],this.hasEvents=function(){return 0!=this.events.length},this.onclick=function(t,e){this.events.push({type:"onclick",x:t,y:e,run:function(t){t.onclick&&t.onclick()}})},this.onmousemove=function(t,e){this.events.push({type:"onmousemove",x:t,y:e,run:function(t){t.onmousemove&&t.onmousemove()}})},this.eventElements=[],this.checkPath=function(t,e){for(var i=0;i<this.events.length;i++){var n=this.events[i];e.isPointInPath&&e.isPointInPath(n.x,n.y)&&(this.eventElements[i]=t)}},this.checkBoundingBox=function(t,e){for(var i=0;i<this.events.length;i++){var n=this.events[i];e.isPointInBox(n.x,n.y)&&(this.eventElements[i]=t)}},this.runEvents=function(){t.ctx.canvas.style.cursor="";for(var e=0;e<this.events.length;e++)for(var i=this.events[e],n=this.eventElements[e];n;)i.run(n),n=n.parent;this.events=[],this.eventElements=[]}},t}this.canvg=function(e,i,n){if(null!=e||null!=i||null!=n){n=n||{},"string"==typeof e&&(e=document.getElementById(e));var s;null==e.svg?(s=t(),e.svg=s):(s=e.svg,s.stop()),s.opts=n;var a=e.getContext("2d");"undefined"!=typeof i.documentElement?s.loadXmlDoc(a,i):"<"==i.substr(0,1)?s.loadXml(a,i):s.load(a,i)}else for(var r=document.getElementsByTagName("svg"),o=0;o<r.length;o++){var l=r[o],h=document.createElement("canvas");h.width=l.clientWidth,h.height=l.clientHeight,l.parentNode.insertBefore(h,l),l.parentNode.removeChild(l);var u=document.createElement("div");u.appendChild(l),canvg(h,u.innerHTML)}}}(),CanvasRenderingContext2D&&(CanvasRenderingContext2D.prototype.drawSvg=function(t,e,i,n,s){canvg(this.canvas,t,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:e,offsetY:i,scaleWidth:n,scaleHeight:s})}),function(t){var e,i="div",n="absolute",s="relative",a="hidden",r="visible",o="px",l=t.css,h=t.CanVGRenderer,u=t.SVGRenderer,f=t.extend,c=t.merge,d=t.addEvent,m=t.createElement,p=t.discardElement;f(h.prototype,u.prototype),f(h.prototype,{create:function(t,e,i,n){this.setContainer(e,i,n),this.configure(t)},setContainer:function(t,r,o){var l,h=t.style,u=t.parentNode,f=h.left,c=h.top,d=t.offsetWidth,p=t.offsetHeight,g={visibility:a,position:n};this.init.apply(this,[t,r,o]),l=m("canvas",{width:d,height:p},{position:s,left:f,top:c},t),this.canvas=l,this.ttLine=m(i,null,g,u),this.ttDiv=m(i,null,g,u),this.ttTimer=e;var y=m(i,{width:d,height:p},{visibility:a,left:f,top:c},u);this.hiddenSvg=y,y.appendChild(this.box)},configure:function(t){var i=this,n=t.options.tooltip,s=n.borderWidth,h=i.ttDiv,u=n.style,f=i.ttLine,m=parseInt(u.padding,10);u=c(u,{padding:m+o,"background-color":n.backgroundColor,"border-style":"solid","border-width":s+o,"border-radius":n.borderRadius+o}),n.shadow&&(u=c(u,{"box-shadow":"1px 1px 3px gray","-webkit-box-shadow":"1px 1px 3px gray"})),l(h,u),l(f,{"border-left":"1px solid darkgray"}),d(t,"tooltipRefresh",function(n){var s,u=t.container,c=u.offsetLeft,d=u.offsetTop;h.innerHTML=n.text,s=t.tooltip.getPosition(h.offsetWidth,h.offsetHeight,{plotX:n.x,plotY:n.y}),l(h,{visibility:r,left:s.x+o,top:s.y+o,"border-color":n.borderColor}),l(f,{visibility:r,left:c+n.x+o,top:d+t.plotTop+o,height:t.plotHeight+o}),i.ttTimer!==e&&clearTimeout(i.ttTimer),i.ttTimer=setTimeout(function(){l(h,{visibility:a}),l(f,{visibility:a})},3e3)})},destroy:function(){var t=this;return p(t.canvas),t.ttTimer!==e&&clearTimeout(t.ttTimer),p(t.ttLine),p(t.ttDiv),p(t.hiddenSvg),u.prototype.destroy.apply(t)},color:function(t,e,i){return t&&t.linearGradient&&(t=t.stops[t.stops.length-1][1]),u.prototype.color.call(this,t,e,i)},draw:function(){var t=this;window.canvg(t.canvas,t.hiddenSvg.innerHTML)}})}(Highcharts);
@@ -0,0 +1,9 @@
1
+ /*
2
+ Data plugin for Highcharts v0.1
3
+
4
+ (c) 2012 Torstein Hønsi
5
+
6
+ License: www.highcharts.com/license
7
+ */
8
+
9
+ !function(t){var e=t.each,i=function(t){this.init(t)};t.extend(i.prototype,{init:function(t){this.options=t,this.columns=[],this.parseCSV(),this.parseTable(),this.parseTypes(),this.findHeaderRow(),this.parsed(),this.complete()},parseCSV:function(){var t=this.options,i=t.csv,s=this.columns,n=t.startRow||0,o=t.endRow||Number.MAX_VALUE,a=t.startColumn||0,r=t.endColumn||Number.MAX_VALUE;i&&(i=i.split(t.lineDelimiter||"\n"),e(i,function(i,h){if(h>=n&&o>=h){var m=i.split(t.itemDelimiter||",");e(m,function(t,e){e>=a&&r>=e&&(s[e-a]||(s[e-a]=[]),s[e-a][h-n]=t)})}}))},parseTable:function(){var t,i=this.options,s=i.table,n=this.columns,o=i.startRow||0,a=i.endRow||Number.MAX_VALUE,r=i.startColumn||0,h=i.endColumn||Number.MAX_VALUE;s&&("string"==typeof s&&(s=document.getElementById(s)),e(s.getElementsByTagName("tr"),function(i,s){t=0,s>=o&&a>=s&&e(i.childNodes,function(e){("TD"===e.tagName||"TH"===e.tagName)&&t>=r&&h>=t&&(n[t]||(n[t]=[]),n[t][s-o]=e.innerHTML,t+=1)})}))},findHeaderRow:function(){e(this.columns,function(){}),this.headerRow=0},trim:function(t){return t.replace(/^\s+|\s+$/g,"")},parseTypes:function(){for(var t,e,i,s,n=this.columns,o=n.length;o--;)for(t=n[o].length;t--;)e=n[o][t],i=parseFloat(e),s=this.trim(e),s==i?(n[o][t]=i,i>31536e6?n[o].isDatetime=!0:n[o].isNumeric=!0):(e=Date.parse(e),0!==o||"number"!=typeof e||isNaN(e)?n[o][t]=s:(n[o][t]=e,n[o].isDatetime=!0))},parsed:function(){this.options.parsed&&this.options.parsed.call(this,this.columns)},complete:function(){var t,e,i,s,n,o,a,r,h,m=this.columns,u=this.options;if(u.complete){for(m.length>1&&(i=m.shift(),0===this.headerRow&&i.shift(),(t=i.isNumeric||i.isDatetime)||(e=i),i.isDatetime&&(s="datetime")),n=[],r=0;r<m.length;r++){for(0===this.headerRow&&(a=m[r].shift()),o=[],h=0;h<m[r].length;h++)o[h]=void 0!==m[r][h]?t?[i[h],m[r][h]]:m[r][h]:null;n[r]={name:a,data:o}}u.complete({xAxis:{categories:e,type:s},series:n})}}}),t.Data=i,t.data=function(t){return new i(t)}}(Highcharts);
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license Data plugin for Highcharts v0.1
3
+ *
4
+ * (c) 2012 Torstein Hønsi
5
+ *
6
+ * License: www.highcharts.com/license
7
+ */
8
+
9
+ !function(t){var e=t.each,i=function(t){this.init(t)};t.extend(i.prototype,{init:function(t){this.options=t,this.columns=[],this.parseCSV(),this.parseTable(),this.parseTypes(),this.findHeaderRow(),this.parsed(),this.complete()},parseCSV:function(){var t,i=this.options,s=i.csv,n=this.columns,o=i.startRow||0,a=i.endRow||Number.MAX_VALUE,r=i.startColumn||0,h=i.endColumn||Number.MAX_VALUE;s&&(t=s.split(i.lineDelimiter||"\n"),e(t,function(t,s){if(s>=o&&a>=s){var l=t.split(i.itemDelimiter||",");e(l,function(t,e){e>=r&&h>=e&&(n[e-r]||(n[e-r]=[]),n[e-r][s-o]=t)})}}))},parseTable:function(){var t,i=this.options,s=i.table,n=this.columns,o=i.startRow||0,a=i.endRow||Number.MAX_VALUE,r=i.startColumn||0,h=i.endColumn||Number.MAX_VALUE;s&&("string"==typeof s&&(s=document.getElementById(s)),e(s.getElementsByTagName("tr"),function(i,s){t=0,s>=o&&a>=s&&e(i.childNodes,function(e){("TD"===e.tagName||"TH"===e.tagName)&&t>=r&&h>=t&&(n[t]||(n[t]=[]),n[t][s-o]=e.innerHTML,t+=1)})}))},findHeaderRow:function(){var t=0;e(this.columns,function(e){"string"!=typeof e[0]&&(t=null)}),this.headerRow=0},trim:function(t){return t.replace(/^\s+|\s+$/g,"")},parseTypes:function(){for(var t,e,i,s,n,o=this.columns,a=o.length;a--;)for(t=o[a].length;t--;)e=o[a][t],i=parseFloat(e),s=this.trim(e),s==i?(o[a][t]=i,i>31536e6?o[a].isDatetime=!0:o[a].isNumeric=!0):(n=Date.parse(e),0!==a||"number"!=typeof n||isNaN(n)?o[a][t]=s:(o[a][t]=n,o[a].isDatetime=!0))},parsed:function(){this.options.parsed&&this.options.parsed.call(this,this.columns)},complete:function(){var t,e,i,s,n,o,a,r,h,l=this.columns,m=this.options;if(m.complete){for(l.length>1&&(i=l.shift(),0===this.headerRow&&i.shift(),t=i.isNumeric||i.isDatetime,t||(e=i),i.isDatetime&&(s="datetime")),n=[],r=0;r<l.length;r++){for(0===this.headerRow&&(a=l[r].shift()),o=[],h=0;h<l[r].length;h++)o[h]=void 0!==l[r][h]?t?[i[h],l[r][h]]:l[r][h]:null;n[r]={name:a,data:o}}m.complete({xAxis:{categories:e,type:s},series:n})}}}),t.Data=i,t.data=function(t){return new i(t)}}(Highcharts);
@@ -0,0 +1,10 @@
1
+ /*
2
+ Highcharts JS v2.3.3 (2012-10-04)
3
+ Exporting module
4
+
5
+ (c) 2010-2011 Torstein Hønsi
6
+
7
+ License: www.highcharts.com/license
8
+ */
9
+
10
+ !function(){function t(t){for(var e=t.length;e--;)"number"==typeof t[e]&&(t[e]=Math.round(t[e])-.5);return t}var e=Highcharts,o=e.Chart,n=e.addEvent,r=e.removeEvent,i=e.createElement,l=e.discardElement,a=e.css,s=e.merge,p=e.each,c=e.extend,d=Math.max,h=document,u=window,m=void 0!==h.documentElement.ontouchstart,g=e.getOptions();c(g.lang,{downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",exportButtonTitle:"Export to raster or vector image",printButtonTitle:"Print the chart"}),g.navigation={menuStyle:{border:"1px solid #A0A0A0",background:"#FFFFFF"},menuItemStyle:{padding:"0 5px",background:"none",color:"#303030",fontSize:m?"14px":"11px"},menuItemHoverStyle:{background:"#4572A5",color:"#FFFFFF"},buttonOptions:{align:"right",backgroundColor:{linearGradient:[0,0,0,20],stops:[[.4,"#F7F7F7"],[.6,"#E3E3E3"]]},borderColor:"#B0B0B0",borderRadius:3,borderWidth:1,height:20,hoverBorderColor:"#909090",hoverSymbolFill:"#81A7CF",hoverSymbolStroke:"#4572A5",symbolFill:"#E0E0E0",symbolStroke:"#A0A0A0",symbolX:11.5,symbolY:10.5,verticalAlign:"top",width:24,y:10}},g.exporting={type:"image/png",url:"http://export.highcharts.com/",width:800,buttons:{exportButton:{symbol:"exportIcon",x:-10,symbolFill:"#A8BF77",hoverSymbolFill:"#768F3E",_id:"exportButton",_titleKey:"exportButtonTitle",menuItems:[{textKey:"downloadPNG",onclick:function(){this.exportChart()}},{textKey:"downloadJPEG",onclick:function(){this.exportChart({type:"image/jpeg"})}},{textKey:"downloadPDF",onclick:function(){this.exportChart({type:"application/pdf"})}},{textKey:"downloadSVG",onclick:function(){this.exportChart({type:"image/svg+xml"})}}]},printButton:{symbol:"printIcon",x:-36,symbolFill:"#B5C9DF",hoverSymbolFill:"#779ABF",_id:"printButton",_titleKey:"printButtonTitle",onclick:function(){this.print()}}}},c(o.prototype,{getSVG:function(t){var e,o,n,r=this,a=s(r.options,t);return h.createElementNS||(h.createElementNS=function(t,e){return h.createElement(e)}),t=i("div",null,{position:"absolute",top:"-9999em",width:r.chartWidth+"px",height:r.chartHeight+"px"},h.body),c(a.chart,{renderTo:t,forExport:!0}),a.exporting.enabled=!1,a.chart.plotBackgroundImage=null,a.series=[],p(r.series,function(t){n=s(t.options,{animation:!1,showCheckbox:!1,visible:t.visible}),n.isInternal||(n&&n.marker&&/^url\(/.test(n.marker.symbol)&&(n.marker.symbol="circle"),a.series.push(n))}),e=new Highcharts.Chart(a),p(["xAxis","yAxis"],function(t){p(r[t],function(o,n){var r=e[t][n],i=o.getExtremes(),l=i.userMin,i=i.userMax;(void 0!==l||void 0!==i)&&r.setExtremes(l,i,!0,!1)})}),o=e.container.innerHTML,a=null,e.destroy(),l(t),o=o.replace(/zIndex="[^"]+"/g,"").replace(/isShadow="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery[0-9]+="[^"]+"/g,"").replace(/isTracker="[^"]+"/g,"").replace(/url\([^#]+#/g,"url(#").replace(/<svg /,'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ').replace(/ href=/g," xlink:href=").replace(/\n/," ").replace(/<\/svg>.*?$/,"</svg>").replace(/&nbsp;/g," ").replace(/&shy;/g,"­").replace(/<IMG /g,"<image ").replace(/height=([^" ]+)/g,'height="$1"').replace(/width=([^" ]+)/g,'width="$1"').replace(/hc-svg-href="([^"]+)">/g,'xlink:href="$1"/>').replace(/id=([^" >]+)/g,'id="$1"').replace(/class=([^" ]+)/g,'class="$1"').replace(/ transform /g," ").replace(/:(path|rect)/g,"$1").replace(/style="([^"]+)"/g,function(t){return t.toLowerCase()}),o=o.replace(/(url\(#highcharts-[0-9]+)&quot;/g,"$1").replace(/&quot;/g,"'"),2===o.match(/ xmlns="/g).length&&(o=o.replace(/xmlns="[^"]+"/,"")),o},exportChart:function(t,e){var o,n=this.getSVG(s(this.options.exporting.chartOptions,e)),t=s(this.options.exporting,t);o=i("form",{method:"post",action:t.url,enctype:"multipart/form-data"},{display:"none"},h.body),p(["filename","type","width","svg"],function(e){i("input",{type:"hidden",name:e,value:{filename:t.filename||"chart",type:t.type,width:t.width,svg:n}[e]},null,o)}),o.submit(),l(o)},print:function(){var t=this,e=t.container,o=[],n=e.parentNode,r=h.body,i=r.childNodes;t.isPrinting||(t.isPrinting=!0,p(i,function(t,e){1===t.nodeType&&(o[e]=t.style.display,t.style.display="none")}),r.appendChild(e),u.print(),setTimeout(function(){n.appendChild(e),p(i,function(t,e){1===t.nodeType&&(t.style.display=o[e])}),t.isPrinting=!1},1e3))},contextMenu:function(t,e,o,r,l,s){var h,u,g=this,x=g.options.navigation,y=x.menuItemStyle,b=g.chartWidth,f=g.chartHeight,v="cache-"+t,k=g[v],w=d(l,s);k||(g[v]=k=i("div",{className:"highcharts-"+t},{position:"absolute",zIndex:1e3,padding:w+"px"},g.container),h=i("div",null,c({MozBoxShadow:"3px 3px 10px #888",WebkitBoxShadow:"3px 3px 10px #888",boxShadow:"3px 3px 10px #888"},x.menuStyle),k),u=function(){a(k,{display:"none"})},n(k,"mouseleave",u),p(e,function(t){if(t){var e=i("div",{onmouseover:function(){a(this,x.menuItemHoverStyle)},onmouseout:function(){a(this,y)},innerHTML:t.text||g.options.lang[t.textKey]},c({cursor:"pointer"},y),h);e[m?"ontouchstart":"onclick"]=function(){u(),t.onclick.apply(g,arguments)},g.exportDivElements.push(e)}}),g.exportDivElements.push(h,k),g.exportMenuWidth=k.offsetWidth,g.exportMenuHeight=k.offsetHeight),t={display:"block"},o+g.exportMenuWidth>b?t.right=b-o-l-w+"px":t.left=o-w+"px",r+s+g.exportMenuHeight>f?t.bottom=f-r-w+"px":t.top=r+s-w+"px",a(k,t)},addButton:function(t){function e(){n.attr(g),o.attr(m)}var o,n,r,i=this,l=i.renderer,a=s(i.options.navigation.buttonOptions,t),p=a.onclick,d=a.menuItems,h=a.width,u=a.height,t=a.borderWidth,m={stroke:a.borderColor},g={stroke:a.symbolStroke,fill:a.symbolFill},x=a.symbolSize||12;i.exportDivElements||(i.exportDivElements=[],i.exportSVGElements=[]),a.enabled!==!1&&(o=l.rect(0,0,h,u,a.borderRadius,t).align(a,!0).attr(c({fill:a.backgroundColor,"stroke-width":t,zIndex:19},m)).add(),r=l.rect(0,0,h,u,0).align(a).attr({id:a._id,fill:"rgba(255, 255, 255, 0.001)",title:i.options.lang[a._titleKey],zIndex:21}).css({cursor:"pointer"}).on("mouseover",function(){n.attr({stroke:a.hoverSymbolStroke,fill:a.hoverSymbolFill}),o.attr({stroke:a.hoverBorderColor})}).on("mouseout",e).on("click",e).add(),d&&(p=function(){e();var t=r.getBBox();i.contextMenu("export-menu",d,t.x,t.y,h,u)}),r.on("click",function(){p.apply(i,arguments)}),n=l.symbol(a.symbol,a.symbolX-x/2,a.symbolY-x/2,x,x).align(a,!0).attr(c(g,{"stroke-width":a.symbolStrokeWidth||1,zIndex:20})).add(),i.exportSVGElements.push(o,r,n))},destroyExport:function(){var t,e;for(t=0;t<this.exportSVGElements.length;t++)e=this.exportSVGElements[t],e.onclick=e.ontouchstart=null,this.exportSVGElements[t]=e.destroy();for(t=0;t<this.exportDivElements.length;t++)e=this.exportDivElements[t],r(e,"mouseleave"),this.exportDivElements[t]=e.onmouseout=e.onmouseover=e.ontouchstart=e.onclick=null,l(e)}}),e.Renderer.prototype.symbols.exportIcon=function(e,o,n,r){return t(["M",e,o+n,"L",e+n,o+r,e+n,o+.8*r,e,o+.8*r,"Z","M",e+.5*n,o+.8*r,"L",e+.8*n,o+.4*r,e+.4*n,o+.4*r,e+.4*n,o,e+.6*n,o,e+.6*n,o+.4*r,e+.2*n,o+.4*r,"Z"])},e.Renderer.prototype.symbols.printIcon=function(e,o,n,r){return t(["M",e,o+.7*r,"L",e+n,o+.7*r,e+n,o+.4*r,e,o+.4*r,"Z","M",e+.2*n,o+.4*r,"L",e+.2*n,o,e+.8*n,o,e+.8*n,o+.4*r,"Z","M",e+.2*n,o+.7*r,"L",e,o+r,e+n,o+r,e+.8*n,o+.7*r,"Z"])},o.prototype.callbacks.push(function(t){var e,o=t.options.exporting,r=o.buttons;if(o.enabled!==!1){for(e in r)t.addButton(r[e]);n(t,"destroy",t.destroyExport)}})}();
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @license Highcharts JS v2.3.3 (2012-10-04)
3
+ * Exporting module
4
+ *
5
+ * (c) 2010-2011 Torstein Hønsi
6
+ *
7
+ * License: www.highcharts.com/license
8
+ */
9
+
10
+ !function(){function t(t){for(var e=t.length;e--;)"number"==typeof t[e]&&(t[e]=Math.round(t[e])-.5);return t}var e,o=Highcharts,n=o.Chart,r=o.addEvent,i=o.removeEvent,l=o.createElement,a=o.discardElement,s=o.css,c=o.merge,p=o.each,d=o.extend,u=Math,h=u.max,m=document,g=window,x=void 0!==m.documentElement.ontouchstart,y="M",f="L",b="div",v="hidden",k="none",w="highcharts-",E="absolute",S="px",F=o.getOptions();d(F.lang,{downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",exportButtonTitle:"Export to raster or vector image",printButtonTitle:"Print the chart"}),F.navigation={menuStyle:{border:"1px solid #A0A0A0",background:"#FFFFFF"},menuItemStyle:{padding:"0 5px",background:k,color:"#303030",fontSize:x?"14px":"11px"},menuItemHoverStyle:{background:"#4572A5",color:"#FFFFFF"},buttonOptions:{align:"right",backgroundColor:{linearGradient:[0,0,0,20],stops:[[.4,"#F7F7F7"],[.6,"#E3E3E3"]]},borderColor:"#B0B0B0",borderRadius:3,borderWidth:1,height:20,hoverBorderColor:"#909090",hoverSymbolFill:"#81A7CF",hoverSymbolStroke:"#4572A5",symbolFill:"#E0E0E0",symbolStroke:"#A0A0A0",symbolX:11.5,symbolY:10.5,verticalAlign:"top",width:24,y:10}},F.exporting={type:"image/png",url:"http://export.highcharts.com/",width:800,buttons:{exportButton:{symbol:"exportIcon",x:-10,symbolFill:"#A8BF77",hoverSymbolFill:"#768F3E",_id:"exportButton",_titleKey:"exportButtonTitle",menuItems:[{textKey:"downloadPNG",onclick:function(){this.exportChart()}},{textKey:"downloadJPEG",onclick:function(){this.exportChart({type:"image/jpeg"})}},{textKey:"downloadPDF",onclick:function(){this.exportChart({type:"application/pdf"})}},{textKey:"downloadSVG",onclick:function(){this.exportChart({type:"image/svg+xml"})}}]},printButton:{symbol:"printIcon",x:-36,symbolFill:"#B5C9DF",hoverSymbolFill:"#779ABF",_id:"printButton",_titleKey:"printButtonTitle",onclick:function(){this.print()}}}},d(n.prototype,{getSVG:function(t){var o,n,r,i,s=this,u=c(s.options,t);return m.createElementNS||(m.createElementNS=function(t,e){return m.createElement(e)}),n=l(b,null,{position:E,top:"-9999em",width:s.chartWidth+S,height:s.chartHeight+S},m.body),d(u.chart,{renderTo:n,forExport:!0}),u.exporting.enabled=!1,u.chart.plotBackgroundImage=null,u.series=[],p(s.series,function(t){i=c(t.options,{animation:!1,showCheckbox:!1,visible:t.visible}),i.isInternal||(i&&i.marker&&/^url\(/.test(i.marker.symbol)&&(i.marker.symbol="circle"),u.series.push(i))}),o=new Highcharts.Chart(u),p(["xAxis","yAxis"],function(t){p(s[t],function(n,r){var i=o[t][r],l=n.getExtremes(),a=l.userMin,s=l.userMax;(a!==e||s!==e)&&i.setExtremes(a,s,!0,!1)})}),r=o.container.innerHTML,u=null,o.destroy(),a(n),r=r.replace(/zIndex="[^"]+"/g,"").replace(/isShadow="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery[0-9]+="[^"]+"/g,"").replace(/isTracker="[^"]+"/g,"").replace(/url\([^#]+#/g,"url(#").replace(/<svg /,'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ').replace(/ href=/g," xlink:href=").replace(/\n/," ").replace(/<\/svg>.*?$/,"</svg>").replace(/&nbsp;/g," ").replace(/&shy;/g,"­").replace(/<IMG /g,"<image ").replace(/height=([^" ]+)/g,'height="$1"').replace(/width=([^" ]+)/g,'width="$1"').replace(/hc-svg-href="([^"]+)">/g,'xlink:href="$1"/>').replace(/id=([^" >]+)/g,'id="$1"').replace(/class=([^" ]+)/g,'class="$1"').replace(/ transform /g," ").replace(/:(path|rect)/g,"$1").replace(/style="([^"]+)"/g,function(t){return t.toLowerCase()}),r=r.replace(/(url\(#highcharts-[0-9]+)&quot;/g,"$1").replace(/&quot;/g,"'"),2===r.match(/ xmlns="/g).length&&(r=r.replace(/xmlns="[^"]+"/,"")),r},exportChart:function(t,e){var o,n=this,r=n.getSVG(c(n.options.exporting.chartOptions,e));t=c(n.options.exporting,t),o=l("form",{method:"post",action:t.url,enctype:"multipart/form-data"},{display:k},m.body),p(["filename","type","width","svg"],function(e){l("input",{type:v,name:e,value:{filename:t.filename||"chart",type:t.type,width:t.width,svg:r}[e]},null,o)}),o.submit(),a(o)},print:function(){var t=this,e=t.container,o=[],n=e.parentNode,r=m.body,i=r.childNodes;t.isPrinting||(t.isPrinting=!0,p(i,function(t,e){1===t.nodeType&&(o[e]=t.style.display,t.style.display=k)}),r.appendChild(e),g.print(),setTimeout(function(){n.appendChild(e),p(i,function(t,e){1===t.nodeType&&(t.style.display=o[e])}),t.isPrinting=!1},1e3))},contextMenu:function(t,e,o,n,i,a){var c,u,m,g=this,y=g.options.navigation,f=y.menuItemStyle,v=g.chartWidth,F=g.chartHeight,B="cache-"+t,C=g[B],G=h(i,a),I="3px 3px 10px #888";C||(g[B]=C=l(b,{className:w+t},{position:E,zIndex:1e3,padding:G+S},g.container),c=l(b,null,d({MozBoxShadow:I,WebkitBoxShadow:I,boxShadow:I},y.menuStyle),C),u=function(){s(C,{display:k})},r(C,"mouseleave",u),p(e,function(t){if(t){var e=l(b,{onmouseover:function(){s(this,y.menuItemHoverStyle)},onmouseout:function(){s(this,f)},innerHTML:t.text||g.options.lang[t.textKey]},d({cursor:"pointer"},f),c);e[x?"ontouchstart":"onclick"]=function(){u(),t.onclick.apply(g,arguments)},g.exportDivElements.push(e)}}),g.exportDivElements.push(c,C),g.exportMenuWidth=C.offsetWidth,g.exportMenuHeight=C.offsetHeight),m={display:"block"},o+g.exportMenuWidth>v?m.right=v-o-i-G+S:m.left=o-G+S,n+a+g.exportMenuHeight>F?m.bottom=F-n-G+S:m.top=n+a-G+S,s(C,m)},addButton:function(t){function e(){n.attr(x),o.attr(g)}var o,n,r,i=this,l=i.renderer,a=c(i.options.navigation.buttonOptions,t),s=a.onclick,p=a.menuItems,u=a.width,h=a.height,m=a.borderWidth,g={stroke:a.borderColor},x={stroke:a.symbolStroke,fill:a.symbolFill},y=a.symbolSize||12;i.exportDivElements||(i.exportDivElements=[],i.exportSVGElements=[]),a.enabled!==!1&&(o=l.rect(0,0,u,h,a.borderRadius,m).align(a,!0).attr(d({fill:a.backgroundColor,"stroke-width":m,zIndex:19},g)).add(),r=l.rect(0,0,u,h,0).align(a).attr({id:a._id,fill:"rgba(255, 255, 255, 0.001)",title:i.options.lang[a._titleKey],zIndex:21}).css({cursor:"pointer"}).on("mouseover",function(){n.attr({stroke:a.hoverSymbolStroke,fill:a.hoverSymbolFill}),o.attr({stroke:a.hoverBorderColor})}).on("mouseout",e).on("click",e).add(),p&&(s=function(){e();var t=r.getBBox();i.contextMenu("export-menu",p,t.x,t.y,u,h)}),r.on("click",function(){s.apply(i,arguments)}),n=l.symbol(a.symbol,a.symbolX-y/2,a.symbolY-y/2,y,y).align(a,!0).attr(d(x,{"stroke-width":a.symbolStrokeWidth||1,zIndex:20})).add(),i.exportSVGElements.push(o,r,n))},destroyExport:function(){var t,e,o=this;for(t=0;t<o.exportSVGElements.length;t++)e=o.exportSVGElements[t],e.onclick=e.ontouchstart=null,o.exportSVGElements[t]=e.destroy();for(t=0;t<o.exportDivElements.length;t++)e=o.exportDivElements[t],i(e,"mouseleave"),o.exportDivElements[t]=e.onmouseout=e.onmouseover=e.ontouchstart=e.onclick=null,a(e)}}),o.Renderer.prototype.symbols.exportIcon=function(e,o,n,r){return t([y,e,o+n,f,e+n,o+r,e+n,o+.8*r,e,o+.8*r,"Z",y,e+.5*n,o+.8*r,f,e+.8*n,o+.4*r,e+.4*n,o+.4*r,e+.4*n,o,e+.6*n,o,e+.6*n,o+.4*r,e+.2*n,o+.4*r,"Z"])},o.Renderer.prototype.symbols.printIcon=function(e,o,n,r){return t([y,e,o+.7*r,f,e+n,o+.7*r,e+n,o+.4*r,e,o+.4*r,"Z",y,e+.2*n,o+.4*r,f,e+.2*n,o,e+.8*n,o,e+.8*n,o+.4*r,"Z",y,e+.2*n,o+.7*r,f,e,o+r,e+n,o+r,e+.8*n,o+.7*r,"Z"])},n.prototype.callbacks.push(function(t){var e,o=t.options.exporting,n=o.buttons;if(o.enabled!==!1){for(e in n)t.addButton(n[e]);r(t,"destroy",t.destroyExport)}})}();
@@ -0,0 +1 @@
1
+ Highcharts.theme={colors:["#DDDF0D","#55BF3B","#DF5353","#7798BF","#aaeeee","#ff0066","#eeaaee","#55BF3B","#DF5353","#7798BF","#aaeeee"],chart:{backgroundColor:{linearGradient:{x1:0,y1:0,x2:1,y2:1},stops:[[0,"rgb(48, 48, 96)"],[1,"rgb(0, 0, 0)"]]},borderColor:"#000000",borderWidth:2,className:"dark-container",plotBackgroundColor:"rgba(255, 255, 255, .1)",plotBorderColor:"#CCCCCC",plotBorderWidth:1},title:{style:{color:"#C0C0C0",font:'bold 16px "Trebuchet MS", Verdana, sans-serif'}},subtitle:{style:{color:"#666666",font:'bold 12px "Trebuchet MS", Verdana, sans-serif'}},xAxis:{gridLineColor:"#333333",gridLineWidth:1,labels:{style:{color:"#A0A0A0"}},lineColor:"#A0A0A0",tickColor:"#A0A0A0",title:{style:{color:"#CCC",fontWeight:"bold",fontSize:"12px",fontFamily:"Trebuchet MS, Verdana, sans-serif"}}},yAxis:{gridLineColor:"#333333",labels:{style:{color:"#A0A0A0"}},lineColor:"#A0A0A0",minorTickInterval:null,tickColor:"#A0A0A0",tickWidth:1,title:{style:{color:"#CCC",fontWeight:"bold",fontSize:"12px",fontFamily:"Trebuchet MS, Verdana, sans-serif"}}},tooltip:{backgroundColor:"rgba(0, 0, 0, 0.75)",style:{color:"#F0F0F0"}},toolbar:{itemStyle:{color:"silver"}},plotOptions:{line:{dataLabels:{color:"#CCC"},marker:{lineColor:"#333"}},spline:{marker:{lineColor:"#333"}},scatter:{marker:{lineColor:"#333"}},candlestick:{lineColor:"white"}},legend:{itemStyle:{font:"9pt Trebuchet MS, Verdana, sans-serif",color:"#A0A0A0"},itemHoverStyle:{color:"#FFF"},itemHiddenStyle:{color:"#444"}},credits:{style:{color:"#666"}},labels:{style:{color:"#CCC"}},navigation:{buttonOptions:{backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[.4,"#606060"],[.6,"#333333"]]},borderColor:"#000000",symbolStroke:"#C0C0C0",hoverSymbolStroke:"#FFFFFF"}},exporting:{buttons:{exportButton:{symbolFill:"#55BE3B"},printButton:{symbolFill:"#7797BE"}}},rangeSelector:{buttonTheme:{fill:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[.4,"#888"],[.6,"#555"]]},stroke:"#000000",style:{color:"#CCC",fontWeight:"bold"},states:{hover:{fill:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[.4,"#BBB"],[.6,"#888"]]},stroke:"#000000",style:{color:"white"}},select:{fill:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[.1,"#000"],[.3,"#333"]]},stroke:"#000000",style:{color:"yellow"}}}},inputStyle:{backgroundColor:"#333",color:"silver"},labelStyle:{color:"silver"}},navigator:{handles:{backgroundColor:"#666",borderColor:"#AAA"},outlineColor:"#CCC",maskFill:"rgba(16, 16, 16, 0.5)",series:{color:"#7798BF",lineColor:"#A6C7ED"}},scrollbar:{barBackgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[.4,"#888"],[.6,"#555"]]},barBorderColor:"#CCC",buttonArrowColor:"#CCC",buttonBackgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[.4,"#888"],[.6,"#555"]]},buttonBorderColor:"#CCC",rifleColor:"#FFF",trackBackgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#000"],[1,"#333"]]},trackBorderColor:"#666"},legendBackgroundColor:"rgba(0, 0, 0, 0.5)",legendBackgroundColorSolid:"rgb(35, 35, 70)",dataLabelsColor:"#444",textColor:"#C0C0C0",maskColor:"rgba(255,255,255,0.3)"};var highchartsOptions=Highcharts.setOptions(Highcharts.theme);
@@ -0,0 +1 @@
1
+ Highcharts.theme={colors:["#DDDF0D","#55BF3B","#DF5353","#7798BF","#aaeeee","#ff0066","#eeaaee","#55BF3B","#DF5353","#7798BF","#aaeeee"],chart:{backgroundColor:{linearGradient:[0,0,250,500],stops:[[0,"rgb(48, 96, 48)"],[1,"rgb(0, 0, 0)"]]},borderColor:"#000000",borderWidth:2,className:"dark-container",plotBackgroundColor:"rgba(255, 255, 255, .1)",plotBorderColor:"#CCCCCC",plotBorderWidth:1},title:{style:{color:"#C0C0C0",font:'bold 16px "Trebuchet MS", Verdana, sans-serif'}},subtitle:{style:{color:"#666666",font:'bold 12px "Trebuchet MS", Verdana, sans-serif'}},xAxis:{gridLineColor:"#333333",gridLineWidth:1,labels:{style:{color:"#A0A0A0"}},lineColor:"#A0A0A0",tickColor:"#A0A0A0",title:{style:{color:"#CCC",fontWeight:"bold",fontSize:"12px",fontFamily:"Trebuchet MS, Verdana, sans-serif"}}},yAxis:{gridLineColor:"#333333",labels:{style:{color:"#A0A0A0"}},lineColor:"#A0A0A0",minorTickInterval:null,tickColor:"#A0A0A0",tickWidth:1,title:{style:{color:"#CCC",fontWeight:"bold",fontSize:"12px",fontFamily:"Trebuchet MS, Verdana, sans-serif"}}},tooltip:{backgroundColor:"rgba(0, 0, 0, 0.75)",style:{color:"#F0F0F0"}},toolbar:{itemStyle:{color:"silver"}},plotOptions:{line:{dataLabels:{color:"#CCC"},marker:{lineColor:"#333"}},spline:{marker:{lineColor:"#333"}},scatter:{marker:{lineColor:"#333"}},candlestick:{lineColor:"white"}},legend:{itemStyle:{font:"9pt Trebuchet MS, Verdana, sans-serif",color:"#A0A0A0"},itemHoverStyle:{color:"#FFF"},itemHiddenStyle:{color:"#444"}},credits:{style:{color:"#666"}},labels:{style:{color:"#CCC"}},navigation:{buttonOptions:{backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[.4,"#606060"],[.6,"#333333"]]},borderColor:"#000000",symbolStroke:"#C0C0C0",hoverSymbolStroke:"#FFFFFF"}},exporting:{buttons:{exportButton:{symbolFill:"#55BE3B"},printButton:{symbolFill:"#7797BE"}}},rangeSelector:{buttonTheme:{fill:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[.4,"#888"],[.6,"#555"]]},stroke:"#000000",style:{color:"#CCC",fontWeight:"bold"},states:{hover:{fill:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[.4,"#BBB"],[.6,"#888"]]},stroke:"#000000",style:{color:"white"}},select:{fill:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[.1,"#000"],[.3,"#333"]]},stroke:"#000000",style:{color:"yellow"}}}},inputStyle:{backgroundColor:"#333",color:"silver"},labelStyle:{color:"silver"}},navigator:{handles:{backgroundColor:"#666",borderColor:"#AAA"},outlineColor:"#CCC",maskFill:"rgba(16, 16, 16, 0.5)",series:{color:"#7798BF",lineColor:"#A6C7ED"}},scrollbar:{barBackgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[.4,"#888"],[.6,"#555"]]},barBorderColor:"#CCC",buttonArrowColor:"#CCC",buttonBackgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[.4,"#888"],[.6,"#555"]]},buttonBorderColor:"#CCC",rifleColor:"#FFF",trackBackgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#000"],[1,"#333"]]},trackBorderColor:"#666"},legendBackgroundColor:"rgba(0, 0, 0, 0.5)",legendBackgroundColorSolid:"rgb(35, 35, 70)",dataLabelsColor:"#444",textColor:"#C0C0C0",maskColor:"rgba(255,255,255,0.3)"};var highchartsOptions=Highcharts.setOptions(Highcharts.theme);
@@ -0,0 +1 @@
1
+ Highcharts.theme={colors:["#DDDF0D","#7798BF","#55BF3B","#DF5353","#aaeeee","#ff0066","#eeaaee","#55BF3B","#DF5353","#7798BF","#aaeeee"],chart:{backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"rgb(96, 96, 96)"],[1,"rgb(16, 16, 16)"]]},borderWidth:0,borderRadius:15,plotBackgroundColor:null,plotShadow:!1,plotBorderWidth:0},title:{style:{color:"#FFF",font:"16px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif"}},subtitle:{style:{color:"#DDD",font:"12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif"}},xAxis:{gridLineWidth:0,lineColor:"#999",tickColor:"#999",labels:{style:{color:"#999",fontWeight:"bold"}},title:{style:{color:"#AAA",font:"bold 12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif"}}},yAxis:{alternateGridColor:null,minorTickInterval:null,gridLineColor:"rgba(255, 255, 255, .1)",lineWidth:0,tickWidth:0,labels:{style:{color:"#999",fontWeight:"bold"}},title:{style:{color:"#AAA",font:"bold 12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif"}}},legend:{itemStyle:{color:"#CCC"},itemHoverStyle:{color:"#FFF"},itemHiddenStyle:{color:"#333"}},labels:{style:{color:"#CCC"}},tooltip:{backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"rgba(96, 96, 96, .8)"],[1,"rgba(16, 16, 16, .8)"]]},borderWidth:0,style:{color:"#FFF"}},plotOptions:{line:{dataLabels:{color:"#CCC"},marker:{lineColor:"#333"}},spline:{marker:{lineColor:"#333"}},scatter:{marker:{lineColor:"#333"}},candlestick:{lineColor:"white"}},toolbar:{itemStyle:{color:"#CCC"}},navigation:{buttonOptions:{backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[.4,"#606060"],[.6,"#333333"]]},borderColor:"#000000",symbolStroke:"#C0C0C0",hoverSymbolStroke:"#FFFFFF"}},exporting:{buttons:{exportButton:{symbolFill:"#55BE3B"},printButton:{symbolFill:"#7797BE"}}},rangeSelector:{buttonTheme:{fill:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[.4,"#888"],[.6,"#555"]]},stroke:"#000000",style:{color:"#CCC",fontWeight:"bold"},states:{hover:{fill:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[.4,"#BBB"],[.6,"#888"]]},stroke:"#000000",style:{color:"white"}},select:{fill:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[.1,"#000"],[.3,"#333"]]},stroke:"#000000",style:{color:"yellow"}}}},inputStyle:{backgroundColor:"#333",color:"silver"},labelStyle:{color:"silver"}},navigator:{handles:{backgroundColor:"#666",borderColor:"#AAA"},outlineColor:"#CCC",maskFill:"rgba(16, 16, 16, 0.5)",series:{color:"#7798BF",lineColor:"#A6C7ED"}},scrollbar:{barBackgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[.4,"#888"],[.6,"#555"]]},barBorderColor:"#CCC",buttonArrowColor:"#CCC",buttonBackgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[.4,"#888"],[.6,"#555"]]},buttonBorderColor:"#CCC",rifleColor:"#FFF",trackBackgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#000"],[1,"#333"]]},trackBorderColor:"#666"},legendBackgroundColor:"rgba(48, 48, 48, 0.8)",legendBackgroundColorSolid:"rgb(70, 70, 70)",dataLabelsColor:"#444",textColor:"#E0E0E0",maskColor:"rgba(255,255,255,0.3)"};var highchartsOptions=Highcharts.setOptions(Highcharts.theme);
@@ -0,0 +1 @@
1
+ Highcharts.theme={colors:["#058DC7","#50B432","#ED561B","#DDDF00","#24CBE5","#64E572","#FF9655","#FFF263","#6AF9C4"],chart:{backgroundColor:{linearGradient:{x1:0,y1:0,x2:1,y2:1},stops:[[0,"rgb(255, 255, 255)"],[1,"rgb(240, 240, 255)"]]},borderWidth:2,plotBackgroundColor:"rgba(255, 255, 255, .9)",plotShadow:!0,plotBorderWidth:1},title:{style:{color:"#000",font:'bold 16px "Trebuchet MS", Verdana, sans-serif'}},subtitle:{style:{color:"#666666",font:'bold 12px "Trebuchet MS", Verdana, sans-serif'}},xAxis:{gridLineWidth:1,lineColor:"#000",tickColor:"#000",labels:{style:{color:"#000",font:"11px Trebuchet MS, Verdana, sans-serif"}},title:{style:{color:"#333",fontWeight:"bold",fontSize:"12px",fontFamily:"Trebuchet MS, Verdana, sans-serif"}}},yAxis:{minorTickInterval:"auto",lineColor:"#000",lineWidth:1,tickWidth:1,tickColor:"#000",labels:{style:{color:"#000",font:"11px Trebuchet MS, Verdana, sans-serif"}},title:{style:{color:"#333",fontWeight:"bold",fontSize:"12px",fontFamily:"Trebuchet MS, Verdana, sans-serif"}}},legend:{itemStyle:{font:"9pt Trebuchet MS, Verdana, sans-serif",color:"black"},itemHoverStyle:{color:"#039"},itemHiddenStyle:{color:"gray"}},labels:{style:{color:"#99b"}}};var highchartsOptions=Highcharts.setOptions(Highcharts.theme);
@@ -0,0 +1 @@
1
+ Highcharts.theme={colors:["#514F78","#42A07B","#9B5E4A","#72727F","#1F949A","#82914E","#86777F","#42A07B"],chart:{className:"skies",borderWidth:0,plotShadow:!0,plotBackgroundImage:"/demo/gfx/skies.jpg",plotBackgroundColor:{linearGradient:[0,0,250,500],stops:[[0,"rgba(255, 255, 255, 1)"],[1,"rgba(255, 255, 255, 0)"]]},plotBorderWidth:1},title:{style:{color:"#3E576F",font:"16px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif"}},subtitle:{style:{color:"#6D869F",font:"12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif"}},xAxis:{gridLineWidth:0,lineColor:"#C0D0E0",tickColor:"#C0D0E0",labels:{style:{color:"#666",fontWeight:"bold"}},title:{style:{color:"#666",font:"12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif"}}},yAxis:{alternateGridColor:"rgba(255, 255, 255, .5)",lineColor:"#C0D0E0",tickColor:"#C0D0E0",tickWidth:1,labels:{style:{color:"#666",fontWeight:"bold"}},title:{style:{color:"#666",font:"12px Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif"}}},legend:{itemStyle:{font:"9pt Trebuchet MS, Verdana, sans-serif",color:"#3E576F"},itemHoverStyle:{color:"black"},itemHiddenStyle:{color:"silver"}},labels:{style:{color:"#3E576F"}}};var highchartsOptions=Highcharts.setOptions(Highcharts.theme);
@@ -0,0 +1,53 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2
+ "http://www.w3.org/TR/html4/loose.dtd">
3
+ <html>
4
+ <head>
5
+ <title>Jasmine Spec Runner</title>
6
+
7
+ <link rel="shortcut icon" type="image/png" href="lib/jasmine-1.3.1/jasmine_favicon.png">
8
+ <link rel="stylesheet" type="text/css" href="lib/jasmine-1.3.1/jasmine.css">
9
+ <script type="text/javascript" src="lib/jasmine-1.3.1/jasmine.js"></script>
10
+ <script type="text/javascript" src="lib/jasmine-1.3.1/jasmine-html.js"></script>
11
+
12
+ <!-- include source files here... -->
13
+ <script type="text/javascript" src="src/Player.js"></script>
14
+ <script type="text/javascript" src="src/Song.js"></script>
15
+
16
+ <!-- include spec files here... -->
17
+ <script type="text/javascript" src="spec/SpecHelper.js"></script>
18
+ <script type="text/javascript" src="spec/PlayerSpec.js"></script>
19
+
20
+ <script type="text/javascript">
21
+ (function() {
22
+ var jasmineEnv = jasmine.getEnv();
23
+ jasmineEnv.updateInterval = 1000;
24
+
25
+ var htmlReporter = new jasmine.HtmlReporter();
26
+
27
+ jasmineEnv.addReporter(htmlReporter);
28
+
29
+ jasmineEnv.specFilter = function(spec) {
30
+ return htmlReporter.specFilter(spec);
31
+ };
32
+
33
+ var currentWindowOnload = window.onload;
34
+
35
+ window.onload = function() {
36
+ if (currentWindowOnload) {
37
+ currentWindowOnload();
38
+ }
39
+ execJasmine();
40
+ };
41
+
42
+ function execJasmine() {
43
+ jasmineEnv.execute();
44
+ }
45
+
46
+ })();
47
+ </script>
48
+
49
+ </head>
50
+
51
+ <body>
52
+ </body>
53
+ </html>
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2008-2011 Pivotal Labs
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1 @@
1
+ jasmine.HtmlReporterHelpers={},jasmine.HtmlReporterHelpers.createDom=function(e,t){for(var s=document.createElement(e),i=2;i<arguments.length;i++){var a=arguments[i];"string"==typeof a?s.appendChild(document.createTextNode(a)):a&&s.appendChild(a)}for(var r in t)"className"==r?s[r]=t[r]:s.setAttribute(r,t[r]);return s},jasmine.HtmlReporterHelpers.getSpecStatus=function(e){var t=e.results(),s=t.passed()?"passed":"failed";return t.skipped&&(s="skipped"),s},jasmine.HtmlReporterHelpers.appendToSummary=function(e,t){var s=this.dom.summary,i="undefined"==typeof e.parentSuite?"suite":"parentSuite",a=e[i];a&&("undefined"==typeof this.views.suites[a.id]&&(this.views.suites[a.id]=new jasmine.HtmlReporter.SuiteView(a,this.dom,this.views)),s=this.views.suites[a.id].element),s.appendChild(t)},jasmine.HtmlReporterHelpers.addHelpers=function(e){for(var t in jasmine.HtmlReporterHelpers)e.prototype[t]=jasmine.HtmlReporterHelpers[t]},jasmine.HtmlReporter=function(e){function t(){var e;return function(){if(!e){for(var t=[],s=jasmine.HtmlReporter.parameters(p),i=0;i<s.length;i++){var a=s[i].split("=");t[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}e=t.spec}}(),e}function s(e){l.reporter=o.createDom("div",{id:"HTMLReporter",className:"jasmine_reporter"},l.banner=o.createDom("div",{className:"banner"},o.createDom("span",{className:"title"},"Jasmine "),o.createDom("span",{className:"version"},e)),l.symbolSummary=o.createDom("ul",{className:"symbolSummary"}),l.alert=o.createDom("div",{className:"alert"},o.createDom("span",{className:"exceptions"},o.createDom("label",{className:"label","for":"no_try_catch"},"No try/catch"),o.createDom("input",{id:"no_try_catch",type:"checkbox"}))),l.results=o.createDom("div",{className:"results"},l.summary=o.createDom("div",{className:"summary"}),l.details=o.createDom("div",{id:"details"})))}function i(){return window.location.search.match(/catch=false/)}function a(){for(var e=jasmine.HtmlReporter.parameters(window.document),t=!1,s=0;!t&&s<e.length;)e[s].match(/catch=/)&&(e.splice(s,1),t=!0),s++;return jasmine.CATCH_EXCEPTIONS&&e.push("catch=false"),e.join("&")}function r(){var e=document.getElementById("no_try_catch");i()&&(e.setAttribute("checked",!0),jasmine.CATCH_EXCEPTIONS=!1),e.onclick=function(){window.location.search=a()}}var n,o=this,p=e||window.document,l={};return o.logRunningSpecs=!1,o.reportRunnerStarting=function(e){var t=e.specs()||[];0!=t.length&&(s(e.env.versionString()),p.body.appendChild(l.reporter),r(),n=new jasmine.HtmlReporter.ReporterView(l),n.addSpecs(t,o.specFilter))},o.reportRunnerResults=function(){n&&n.complete()},o.reportSuiteResults=function(e){n.suiteComplete(e)},o.reportSpecStarting=function(e){o.logRunningSpecs&&o.log(">> Jasmine Running "+e.suite.description+" "+e.description+"...")},o.reportSpecResults=function(e){n.specComplete(e)},o.log=function(){var e=jasmine.getGlobal().console;e&&e.log&&(e.log.apply?e.log.apply(e,arguments):e.log(arguments))},o.specFilter=function(e){return t()?0===e.getFullName().indexOf(t()):!0},o},jasmine.HtmlReporter.parameters=function(e){var t=e.location.search.substring(1),s=[];return t.length>0&&(s=t.split("&")),s},jasmine.HtmlReporter.sectionLink=function(e){var t="?",s=[];return e&&s.push("spec="+encodeURIComponent(e)),jasmine.CATCH_EXCEPTIONS||s.push("catch=false"),s.length>0&&(t+=s.join("&")),t},jasmine.HtmlReporterHelpers.addHelpers(jasmine.HtmlReporter),jasmine.HtmlReporter.ReporterView=function(e){function t(){-1===e.reporter.className.search(/showDetails/)&&(e.reporter.className+=" showDetails")}function s(e){return"undefined"==typeof e}function i(e){return!s(e)}function a(e){var t=e+" spec";return e>1&&(t+="s"),t}return this.startedAt=new Date,this.runningSpecCount=0,this.completeSpecCount=0,this.passedCount=0,this.failedCount=0,this.skippedCount=0,this.createResultsMenu=function(){this.resultsMenu=this.createDom("span",{className:"resultsMenu bar"},this.summaryMenuItem=this.createDom("a",{className:"summaryMenuItem",href:"#"},"0 specs")," | ",this.detailsMenuItem=this.createDom("a",{className:"detailsMenuItem",href:"#"},"0 failing")),this.summaryMenuItem.onclick=function(){e.reporter.className=e.reporter.className.replace(/ showDetails/g,"")},this.detailsMenuItem.onclick=function(){t()}},this.addSpecs=function(t,s){this.totalSpecCount=t.length,this.views={specs:{},suites:{}};for(var i=0;i<t.length;i++){var a=t[i];this.views.specs[a.id]=new jasmine.HtmlReporter.SpecView(a,e,this.views),s(a)&&this.runningSpecCount++}},this.specComplete=function(t){this.completeSpecCount++,s(this.views.specs[t.id])&&(this.views.specs[t.id]=new jasmine.HtmlReporter.SpecView(t,e));var i=this.views.specs[t.id];switch(i.status()){case"passed":this.passedCount++;break;case"failed":this.failedCount++;break;case"skipped":this.skippedCount++}i.refresh(),this.refresh()},this.suiteComplete=function(e){var t=this.views.suites[e.id];s(t)||t.refresh()},this.refresh=function(){s(this.resultsMenu)&&this.createResultsMenu(),s(this.runningAlert)&&(this.runningAlert=this.createDom("a",{href:jasmine.HtmlReporter.sectionLink(),className:"runningAlert bar"}),e.alert.appendChild(this.runningAlert)),this.runningAlert.innerHTML="Running "+this.completeSpecCount+" of "+a(this.totalSpecCount),s(this.skippedAlert)&&(this.skippedAlert=this.createDom("a",{href:jasmine.HtmlReporter.sectionLink(),className:"skippedAlert bar"})),this.skippedAlert.innerHTML="Skipping "+this.skippedCount+" of "+a(this.totalSpecCount)+" - run all",1===this.skippedCount&&i(e.alert)&&e.alert.appendChild(this.skippedAlert),s(this.passedAlert)&&(this.passedAlert=this.createDom("span",{href:jasmine.HtmlReporter.sectionLink(),className:"passingAlert bar"})),this.passedAlert.innerHTML="Passing "+a(this.passedCount),s(this.failedAlert)&&(this.failedAlert=this.createDom("span",{href:"?",className:"failingAlert bar"})),this.failedAlert.innerHTML="Failing "+a(this.failedCount),1===this.failedCount&&i(e.alert)&&(e.alert.appendChild(this.failedAlert),e.alert.appendChild(this.resultsMenu)),this.summaryMenuItem.innerHTML=""+a(this.runningSpecCount),this.detailsMenuItem.innerHTML=""+this.failedCount+" failing"},this.complete=function(){e.alert.removeChild(this.runningAlert),this.skippedAlert.innerHTML="Ran "+this.runningSpecCount+" of "+a(this.totalSpecCount)+" - run all",0===this.failedCount?e.alert.appendChild(this.createDom("span",{className:"passingAlert bar"},"Passing "+a(this.passedCount))):t(),e.banner.appendChild(this.createDom("span",{className:"duration"},"finished in "+((new Date).getTime()-this.startedAt.getTime())/1e3+"s"))},this},jasmine.HtmlReporterHelpers.addHelpers(jasmine.HtmlReporter.ReporterView),jasmine.HtmlReporter.SpecView=function(e,t,s){this.spec=e,this.dom=t,this.views=s,this.symbol=this.createDom("li",{className:"pending"}),this.dom.symbolSummary.appendChild(this.symbol),this.summary=this.createDom("div",{className:"specSummary"},this.createDom("a",{className:"description",href:jasmine.HtmlReporter.sectionLink(this.spec.getFullName()),title:this.spec.getFullName()},this.spec.description)),this.detail=this.createDom("div",{className:"specDetail"},this.createDom("a",{className:"description",href:"?spec="+encodeURIComponent(this.spec.getFullName()),title:this.spec.getFullName()},this.spec.getFullName()))},jasmine.HtmlReporter.SpecView.prototype.status=function(){return this.getSpecStatus(this.spec)},jasmine.HtmlReporter.SpecView.prototype.refresh=function(){switch(this.symbol.className=this.status(),this.status()){case"skipped":break;case"passed":this.appendSummaryToSuiteDiv();break;case"failed":this.appendSummaryToSuiteDiv(),this.appendFailureDetail()}},jasmine.HtmlReporter.SpecView.prototype.appendSummaryToSuiteDiv=function(){this.summary.className+=" "+this.status(),this.appendToSummary(this.spec,this.summary)},jasmine.HtmlReporter.SpecView.prototype.appendFailureDetail=function(){this.detail.className+=" "+this.status();for(var e=this.spec.results().getItems(),t=this.createDom("div",{className:"messages"}),s=0;s<e.length;s++){var i=e[s];"log"==i.type?t.appendChild(this.createDom("div",{className:"resultMessage log"},i.toString())):"expect"==i.type&&i.passed&&!i.passed()&&(t.appendChild(this.createDom("div",{className:"resultMessage fail"},i.message)),i.trace.stack&&t.appendChild(this.createDom("div",{className:"stackTrace"},i.trace.stack)))}t.childNodes.length>0&&(this.detail.appendChild(t),this.dom.details.appendChild(this.detail))},jasmine.HtmlReporterHelpers.addHelpers(jasmine.HtmlReporter.SpecView),jasmine.HtmlReporter.SuiteView=function(e,t,s){this.suite=e,this.dom=t,this.views=s,this.element=this.createDom("div",{className:"suite"},this.createDom("a",{className:"description",href:jasmine.HtmlReporter.sectionLink(this.suite.getFullName())},this.suite.description)),this.appendToSummary(this.suite,this.element)},jasmine.HtmlReporter.SuiteView.prototype.status=function(){return this.getSpecStatus(this.suite)},jasmine.HtmlReporter.SuiteView.prototype.refresh=function(){this.element.className+=" "+this.status()},jasmine.HtmlReporterHelpers.addHelpers(jasmine.HtmlReporter.SuiteView),jasmine.TrivialReporter=function(e){this.document=e||document,this.suiteDivs={},this.logRunningSpecs=!1},jasmine.TrivialReporter.prototype.createDom=function(e,t){for(var s=document.createElement(e),i=2;i<arguments.length;i++){var a=arguments[i];"string"==typeof a?s.appendChild(document.createTextNode(a)):a&&s.appendChild(a)}for(var r in t)"className"==r?s[r]=t[r]:s.setAttribute(r,t[r]);return s},jasmine.TrivialReporter.prototype.reportRunnerStarting=function(e){var t,s;this.outerDiv=this.createDom("div",{id:"TrivialReporter",className:"jasmine_reporter"},this.createDom("div",{className:"banner"},this.createDom("div",{className:"logo"},this.createDom("span",{className:"title"},"Jasmine"),this.createDom("span",{className:"version"},e.env.versionString())),this.createDom("div",{className:"options"},"Show ",t=this.createDom("input",{id:"__jasmine_TrivialReporter_showPassed__",type:"checkbox"}),this.createDom("label",{"for":"__jasmine_TrivialReporter_showPassed__"}," passed "),s=this.createDom("input",{id:"__jasmine_TrivialReporter_showSkipped__",type:"checkbox"}),this.createDom("label",{"for":"__jasmine_TrivialReporter_showSkipped__"}," skipped"))),this.runnerDiv=this.createDom("div",{className:"runner running"},this.createDom("a",{className:"run_spec",href:"?"},"run all"),this.runnerMessageSpan=this.createDom("span",{},"Running..."),this.finishedAtSpan=this.createDom("span",{className:"finished-at"},""))),this.document.body.appendChild(this.outerDiv);for(var i=e.suites(),a=0;a<i.length;a++){var r=i[a],n=this.createDom("div",{className:"suite"},this.createDom("a",{className:"run_spec",href:"?spec="+encodeURIComponent(r.getFullName())},"run"),this.createDom("a",{className:"description",href:"?spec="+encodeURIComponent(r.getFullName())},r.description));this.suiteDivs[r.id]=n;var o=this.outerDiv;r.parentSuite&&(o=this.suiteDivs[r.parentSuite.id]),o.appendChild(n)}this.startedAt=new Date;var p=this;t.onclick=function(){t.checked?p.outerDiv.className+=" show-passed":p.outerDiv.className=p.outerDiv.className.replace(/ show-passed/,"")},s.onclick=function(){s.checked?p.outerDiv.className+=" show-skipped":p.outerDiv.className=p.outerDiv.className.replace(/ show-skipped/,"")}},jasmine.TrivialReporter.prototype.reportRunnerResults=function(e){var t=e.results(),s=t.failedCount>0?"runner failed":"runner passed";this.runnerDiv.setAttribute("class",s),this.runnerDiv.setAttribute("className",s);for(var i=e.specs(),a=0,r=0;r<i.length;r++)this.specFilter(i[r])&&a++;var n=""+a+" spec"+(1==a?"":"s")+", "+t.failedCount+" failure"+(1==t.failedCount?"":"s");n+=" in "+((new Date).getTime()-this.startedAt.getTime())/1e3+"s",this.runnerMessageSpan.replaceChild(this.createDom("a",{className:"description",href:"?"},n),this.runnerMessageSpan.firstChild),this.finishedAtSpan.appendChild(document.createTextNode("Finished at "+(new Date).toString()))},jasmine.TrivialReporter.prototype.reportSuiteResults=function(e){var t=e.results(),s=t.passed()?"passed":"failed";0===t.totalCount&&(s="skipped"),this.suiteDivs[e.id].className+=" "+s},jasmine.TrivialReporter.prototype.reportSpecStarting=function(e){this.logRunningSpecs&&this.log(">> Jasmine Running "+e.suite.description+" "+e.description+"...")},jasmine.TrivialReporter.prototype.reportSpecResults=function(e){var t=e.results(),s=t.passed()?"passed":"failed";t.skipped&&(s="skipped");for(var i=this.createDom("div",{className:"spec "+s},this.createDom("a",{className:"run_spec",href:"?spec="+encodeURIComponent(e.getFullName())},"run"),this.createDom("a",{className:"description",href:"?spec="+encodeURIComponent(e.getFullName()),title:e.getFullName()},e.description)),a=t.getItems(),r=this.createDom("div",{className:"messages"}),n=0;n<a.length;n++){var o=a[n];"log"==o.type?r.appendChild(this.createDom("div",{className:"resultMessage log"},o.toString())):"expect"==o.type&&o.passed&&!o.passed()&&(r.appendChild(this.createDom("div",{className:"resultMessage fail"},o.message)),o.trace.stack&&r.appendChild(this.createDom("div",{className:"stackTrace"},o.trace.stack)))}r.childNodes.length>0&&i.appendChild(r),this.suiteDivs[e.suite.id].appendChild(i)},jasmine.TrivialReporter.prototype.log=function(){var e=jasmine.getGlobal().console;e&&e.log&&(e.log.apply?e.log.apply(e,arguments):e.log(arguments))},jasmine.TrivialReporter.prototype.getLocation=function(){return this.document.location},jasmine.TrivialReporter.prototype.specFilter=function(e){for(var t={},s=this.getLocation().search.substring(1).split("&"),i=0;i<s.length;i++){var a=s[i].split("=");t[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return t.spec?0===e.getFullName().indexOf(t.spec):!0};
@@ -0,0 +1,80 @@
1
+ body { background-color: #eeeeee; padding: 0; margin: 5px; overflow-y: scroll; }
2
+ #HTMLReporter { font-size: 11px; font-family: Monaco, "Lucida Console", monospace; line-height: 14px; color: #333333; }
3
+ #HTMLReporter a { text-decoration: none; }
4
+ #HTMLReporter a:hover { text-decoration: underline; }
5
+ #HTMLReporter p, #HTMLReporter h1, #HTMLReporter h2, #HTMLReporter h3, #HTMLReporter h4, #HTMLReporter h5, #HTMLReporter h6 { margin: 0; line-height: 14px; }
6
+ #HTMLReporter .banner, #HTMLReporter .symbolSummary, #HTMLReporter .summary, #HTMLReporter .resultMessage, #HTMLReporter .specDetail .description, #HTMLReporter .alert .bar, #HTMLReporter .stackTrace { padding-left: 9px; padding-right: 9px; }
7
+ #HTMLReporter #jasmine_content { position: fixed; right: 100%; }
8
+ #HTMLReporter .version { color: #aaaaaa; }
9
+ #HTMLReporter .banner { margin-top: 14px; }
10
+ #HTMLReporter .duration { color: #aaaaaa; float: right; }
11
+ #HTMLReporter .symbolSummary { overflow: hidden; *zoom: 1; margin: 14px 0; }
12
+ #HTMLReporter .symbolSummary li { display: block; float: left; height: 7px; width: 14px; margin-bottom: 7px; font-size: 16px; }
13
+ #HTMLReporter .symbolSummary li.passed { font-size: 14px; }
14
+ #HTMLReporter .symbolSummary li.passed:before { color: #5e7d00; content: "\02022"; }
15
+ #HTMLReporter .symbolSummary li.failed { line-height: 9px; }
16
+ #HTMLReporter .symbolSummary li.failed:before { color: #b03911; content: "x"; font-weight: bold; margin-left: -1px; }
17
+ #HTMLReporter .symbolSummary li.skipped { font-size: 14px; }
18
+ #HTMLReporter .symbolSummary li.skipped:before { color: #bababa; content: "\02022"; }
19
+ #HTMLReporter .symbolSummary li.pending { line-height: 11px; }
20
+ #HTMLReporter .symbolSummary li.pending:before { color: #aaaaaa; content: "-"; }
21
+ #HTMLReporter .exceptions { color: #fff; float: right; margin-top: 5px; margin-right: 5px; }
22
+ #HTMLReporter .bar { line-height: 28px; font-size: 14px; display: block; color: #eee; }
23
+ #HTMLReporter .runningAlert { background-color: #666666; }
24
+ #HTMLReporter .skippedAlert { background-color: #aaaaaa; }
25
+ #HTMLReporter .skippedAlert:first-child { background-color: #333333; }
26
+ #HTMLReporter .skippedAlert:hover { text-decoration: none; color: white; text-decoration: underline; }
27
+ #HTMLReporter .passingAlert { background-color: #a6b779; }
28
+ #HTMLReporter .passingAlert:first-child { background-color: #5e7d00; }
29
+ #HTMLReporter .failingAlert { background-color: #cf867e; }
30
+ #HTMLReporter .failingAlert:first-child { background-color: #b03911; }
31
+ #HTMLReporter .results { margin-top: 14px; }
32
+ #HTMLReporter #details { display: none; }
33
+ #HTMLReporter .resultsMenu, #HTMLReporter .resultsMenu a { background-color: #fff; color: #333333; }
34
+ #HTMLReporter.showDetails .summaryMenuItem { font-weight: normal; text-decoration: inherit; }
35
+ #HTMLReporter.showDetails .summaryMenuItem:hover { text-decoration: underline; }
36
+ #HTMLReporter.showDetails .detailsMenuItem { font-weight: bold; text-decoration: underline; }
37
+ #HTMLReporter.showDetails .summary { display: none; }
38
+ #HTMLReporter.showDetails #details { display: block; }
39
+ #HTMLReporter .summaryMenuItem { font-weight: bold; text-decoration: underline; }
40
+ #HTMLReporter .summary { margin-top: 14px; }
41
+ #HTMLReporter .summary .suite .suite, #HTMLReporter .summary .specSummary { margin-left: 14px; }
42
+ #HTMLReporter .summary .specSummary.passed a { color: #5e7d00; }
43
+ #HTMLReporter .summary .specSummary.failed a { color: #b03911; }
44
+ #HTMLReporter .description + .suite { margin-top: 0; }
45
+ #HTMLReporter .suite { margin-top: 14px; }
46
+ #HTMLReporter .suite a { color: #333333; }
47
+ #HTMLReporter #details .specDetail { margin-bottom: 28px; }
48
+ #HTMLReporter #details .specDetail .description { display: block; color: white; background-color: #b03911; }
49
+ #HTMLReporter .resultMessage { padding-top: 14px; color: #333333; }
50
+ #HTMLReporter .resultMessage span.result { display: block; }
51
+ #HTMLReporter .stackTrace { margin: 5px 0 0 0; max-height: 224px; overflow: auto; line-height: 18px; color: #666666; border: 1px solid #ddd; background: white; white-space: pre; }
52
+ #TrivialReporter { padding: 8px 13px; position: absolute; top: 0; bottom: 0; left: 0; right: 0; overflow-y: scroll; background-color: white; font-family: "Helvetica Neue Light", "Lucida Grande", "Calibri", "Arial", sans-serif; }
53
+ #TrivialReporter a:visited, #TrivialReporter a { color: #303; }
54
+ #TrivialReporter a:hover, #TrivialReporter a:active { color: blue; }
55
+ #TrivialReporter .run_spec { float: right; padding-right: 5px; font-size: .8em; text-decoration: none; }
56
+ #TrivialReporter .banner { color: #303; background-color: #fef; padding: 5px; }
57
+ #TrivialReporter .logo { float: left; font-size: 1.1em; padding-left: 5px; }
58
+ #TrivialReporter .logo .version { font-size: .6em; padding-left: 1em; }
59
+ #TrivialReporter .runner.running { background-color: yellow; }
60
+ #TrivialReporter .options { text-align: right; font-size: .8em; }
61
+ #TrivialReporter .suite { border: 1px outset gray; margin: 5px 0; padding-left: 1em; }
62
+ #TrivialReporter .suite .suite { margin: 5px; }
63
+ #TrivialReporter .suite.passed { background-color: #dfd; }
64
+ #TrivialReporter .suite.failed { background-color: #fdd; }
65
+ #TrivialReporter .spec { margin: 5px; padding-left: 1em; clear: both; }
66
+ #TrivialReporter .spec.failed, #TrivialReporter .spec.passed, #TrivialReporter .spec.skipped { padding-bottom: 5px; border: 1px solid gray; }
67
+ #TrivialReporter .spec.failed { background-color: #fbb; border-color: red; }
68
+ #TrivialReporter .spec.passed { background-color: #bfb; border-color: green; }
69
+ #TrivialReporter .spec.skipped { background-color: #bbb; }
70
+ #TrivialReporter .messages { border-left: 1px dashed gray; padding-left: 1em; padding-right: 1em; }
71
+ #TrivialReporter .passed { background-color: #cfc; display: none; }
72
+ #TrivialReporter .failed { background-color: #fbb; }
73
+ #TrivialReporter .skipped { color: #777; background-color: #eee; display: none; }
74
+ #TrivialReporter .resultMessage span.result { display: block; line-height: 2em; color: black; }
75
+ #TrivialReporter .resultMessage .mismatch { color: black; }
76
+ #TrivialReporter .stackTrace { white-space: pre; font-size: .8em; margin-left: 10px; max-height: 5em; overflow: auto; border: 1px inset red; padding: 1em; background: #eef; }
77
+ #TrivialReporter .finished-at { padding-left: 1em; font-size: .6em; }
78
+ #TrivialReporter.show-passed .passed, #TrivialReporter.show-skipped .skipped { display: block; }
79
+ #TrivialReporter #jasmine_content { position: fixed; right: 100%; }
80
+ #TrivialReporter .runner { border: 1px solid gray; display: block; margin: 5px 0; padding: 2px 0 2px 10px; }