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,173 @@
1
+ .CodeMirror {
2
+ line-height: 1em;
3
+ font-family: monospace;
4
+
5
+ /* Necessary so the scrollbar can be absolutely positioned within the wrapper on Lion. */
6
+ position: relative;
7
+ /* This prevents unwanted scrollbars from showing up on the body and wrapper in IE. */
8
+ overflow: hidden;
9
+ }
10
+
11
+ .CodeMirror-scroll {
12
+ overflow: auto;
13
+ height: 300px;
14
+ /* This is needed to prevent an IE[67] bug where the scrolled content
15
+ is visible outside of the scrolling box. */
16
+ position: relative;
17
+ outline: none;
18
+ }
19
+
20
+ /* Vertical scrollbar */
21
+ .CodeMirror-scrollbar {
22
+ position: absolute;
23
+ right: 0; top: 0;
24
+ overflow-x: hidden;
25
+ overflow-y: scroll;
26
+ z-index: 5;
27
+ }
28
+ .CodeMirror-scrollbar-inner {
29
+ /* This needs to have a nonzero width in order for the scrollbar to appear
30
+ in Firefox and IE9. */
31
+ width: 1px;
32
+ }
33
+ .CodeMirror-scrollbar.cm-sb-overlap {
34
+ /* Ensure that the scrollbar appears in Lion, and that it overlaps the content
35
+ rather than sitting to the right of it. */
36
+ position: absolute;
37
+ z-index: 1;
38
+ float: none;
39
+ right: 0;
40
+ min-width: 12px;
41
+ }
42
+ .CodeMirror-scrollbar.cm-sb-nonoverlap {
43
+ min-width: 12px;
44
+ }
45
+ .CodeMirror-scrollbar.cm-sb-ie7 {
46
+ min-width: 18px;
47
+ }
48
+
49
+ .CodeMirror-gutter {
50
+ position: absolute; left: 0; top: 0;
51
+ z-index: 10;
52
+ background-color: #f7f7f7;
53
+ border-right: 1px solid #eee;
54
+ min-width: 2em;
55
+ height: 100%;
56
+ }
57
+ .CodeMirror-gutter-text {
58
+ color: #aaa;
59
+ text-align: right;
60
+ padding: .4em .2em .4em .4em;
61
+ white-space: pre !important;
62
+ cursor: default;
63
+ }
64
+ .CodeMirror-lines {
65
+ padding: .4em;
66
+ white-space: pre;
67
+ cursor: text;
68
+ }
69
+
70
+ .CodeMirror pre {
71
+ -moz-border-radius: 0;
72
+ -webkit-border-radius: 0;
73
+ -o-border-radius: 0;
74
+ border-radius: 0;
75
+ border-width: 0; margin: 0; padding: 0; background: transparent;
76
+ font-family: inherit;
77
+ font-size: inherit;
78
+ padding: 0; margin: 0;
79
+ white-space: pre;
80
+ word-wrap: normal;
81
+ line-height: inherit;
82
+ color: inherit;
83
+ }
84
+
85
+ .CodeMirror-wrap pre {
86
+ word-wrap: break-word;
87
+ white-space: pre-wrap;
88
+ word-break: normal;
89
+ }
90
+ .CodeMirror-wrap .CodeMirror-scroll {
91
+ overflow-x: hidden;
92
+ }
93
+
94
+ .CodeMirror textarea {
95
+ outline: none !important;
96
+ }
97
+
98
+ .CodeMirror pre.CodeMirror-cursor {
99
+ z-index: 10;
100
+ position: absolute;
101
+ visibility: hidden;
102
+ border-left: 1px solid black;
103
+ border-right: none;
104
+ width: 0;
105
+ }
106
+ .cm-keymap-fat-cursor pre.CodeMirror-cursor {
107
+ width: auto;
108
+ border: 0;
109
+ background: transparent;
110
+ background: rgba(0, 200, 0, .4);
111
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#6600c800, endColorstr=#4c00c800);
112
+ }
113
+ /* Kludge to turn off filter in ie9+, which also accepts rgba */
114
+ .cm-keymap-fat-cursor pre.CodeMirror-cursor:not(#nonsense_id) {
115
+ filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
116
+ }
117
+ .CodeMirror pre.CodeMirror-cursor.CodeMirror-overwrite {}
118
+ .CodeMirror-focused pre.CodeMirror-cursor {
119
+ visibility: visible;
120
+ }
121
+
122
+ div.CodeMirror-selected { background: #d9d9d9; }
123
+ .CodeMirror-focused div.CodeMirror-selected { background: #d7d4f0; }
124
+
125
+ .CodeMirror-searching {
126
+ background: #ffa;
127
+ background: rgba(255, 255, 0, .4);
128
+ }
129
+
130
+ /* Default theme */
131
+
132
+ .cm-s-default span.cm-keyword {color: #708;}
133
+ .cm-s-default span.cm-atom {color: #219;}
134
+ .cm-s-default span.cm-number {color: #164;}
135
+ .cm-s-default span.cm-def {color: #00f;}
136
+ .cm-s-default span.cm-variable {color: black;}
137
+ .cm-s-default span.cm-variable-2 {color: #05a;}
138
+ .cm-s-default span.cm-variable-3 {color: #085;}
139
+ .cm-s-default span.cm-property {color: black;}
140
+ .cm-s-default span.cm-operator {color: black;}
141
+ .cm-s-default span.cm-comment {color: #a50;}
142
+ .cm-s-default span.cm-string {color: #a11;}
143
+ .cm-s-default span.cm-string-2 {color: #f50;}
144
+ .cm-s-default span.cm-meta {color: #555;}
145
+ .cm-s-default span.cm-error {color: #f00;}
146
+ .cm-s-default span.cm-qualifier {color: #555;}
147
+ .cm-s-default span.cm-builtin {color: #30a;}
148
+ .cm-s-default span.cm-bracket {color: #997;}
149
+ .cm-s-default span.cm-tag {color: #170;}
150
+ .cm-s-default span.cm-attribute {color: #00c;}
151
+ .cm-s-default span.cm-header {color: blue;}
152
+ .cm-s-default span.cm-quote {color: #090;}
153
+ .cm-s-default span.cm-hr {color: #999;}
154
+ .cm-s-default span.cm-link {color: #00c;}
155
+
156
+ span.cm-header, span.cm-strong {font-weight: bold;}
157
+ span.cm-em {font-style: italic;}
158
+ span.cm-emstrong {font-style: italic; font-weight: bold;}
159
+ span.cm-link {text-decoration: underline;}
160
+
161
+ span.cm-invalidchar {color: #f00;}
162
+
163
+ div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}
164
+ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
165
+
166
+ @media print {
167
+
168
+ /* Hide the cursor when printing */
169
+ .CodeMirror pre.CodeMirror-cursor {
170
+ visibility: hidden;
171
+ }
172
+
173
+ }
@@ -0,0 +1,3143 @@
1
+ // CodeMirror version 2.34
2
+
3
+ // All functions that need access to the editor's state live inside
4
+ // the CodeMirror function. Below that, at the bottom of the file,
5
+ // some utilities are defined.
6
+
7
+ // CodeMirror is the only global var we claim
8
+ window.CodeMirror = (function() {
9
+ "use strict";
10
+ // This is the function that produces an editor instance. Its
11
+ // closure is used to store the editor state.
12
+ function CodeMirror(place, givenOptions) {
13
+ // Determine effective options based on given values and defaults.
14
+ var options = {}, defaults = CodeMirror.defaults;
15
+ for (var opt in defaults)
16
+ if (defaults.hasOwnProperty(opt))
17
+ options[opt] = (givenOptions && givenOptions.hasOwnProperty(opt) ? givenOptions : defaults)[opt];
18
+
19
+ var input = elt("textarea", null, null, "position: absolute; padding: 0; width: 1px; height: 1em");
20
+ input.setAttribute("wrap", "off"); input.setAttribute("autocorrect", "off"); input.setAttribute("autocapitalize", "off");
21
+ // Wraps and hides input textarea
22
+ var inputDiv = elt("div", [input], null, "overflow: hidden; position: relative; width: 3px; height: 0px;");
23
+ // The empty scrollbar content, used solely for managing the scrollbar thumb.
24
+ var scrollbarInner = elt("div", null, "CodeMirror-scrollbar-inner");
25
+ // The vertical scrollbar. Horizontal scrolling is handled by the scroller itself.
26
+ var scrollbar = elt("div", [scrollbarInner], "CodeMirror-scrollbar");
27
+ // DIVs containing the selection and the actual code
28
+ var lineDiv = elt("div"), selectionDiv = elt("div", null, null, "position: relative; z-index: -1");
29
+ // Blinky cursor, and element used to ensure cursor fits at the end of a line
30
+ var cursor = elt("pre", "\u00a0", "CodeMirror-cursor"), widthForcer = elt("pre", "\u00a0", "CodeMirror-cursor", "visibility: hidden");
31
+ // Used to measure text size
32
+ var measure = elt("div", null, null, "position: absolute; width: 100%; height: 0px; overflow: hidden; visibility: hidden;");
33
+ var lineSpace = elt("div", [measure, cursor, widthForcer, selectionDiv, lineDiv], null, "position: relative; z-index: 0");
34
+ var gutterText = elt("div", null, "CodeMirror-gutter-text"), gutter = elt("div", [gutterText], "CodeMirror-gutter");
35
+ // Moved around its parent to cover visible view
36
+ var mover = elt("div", [gutter, elt("div", [lineSpace], "CodeMirror-lines")], null, "position: relative");
37
+ // Set to the height of the text, causes scrolling
38
+ var sizer = elt("div", [mover], null, "position: relative");
39
+ // Provides scrolling
40
+ var scroller = elt("div", [sizer], "CodeMirror-scroll");
41
+ scroller.setAttribute("tabIndex", "-1");
42
+ // The element in which the editor lives.
43
+ var wrapper = elt("div", [inputDiv, scrollbar, scroller], "CodeMirror" + (options.lineWrapping ? " CodeMirror-wrap" : ""));
44
+ if (place.appendChild) place.appendChild(wrapper); else place(wrapper);
45
+
46
+ themeChanged(); keyMapChanged();
47
+ // Needed to hide big blue blinking cursor on Mobile Safari
48
+ if (ios) input.style.width = "0px";
49
+ if (!webkit) scroller.draggable = true;
50
+ lineSpace.style.outline = "none";
51
+ if (options.tabindex != null) input.tabIndex = options.tabindex;
52
+ if (options.autofocus) focusInput();
53
+ if (!options.gutter && !options.lineNumbers) gutter.style.display = "none";
54
+ // Needed to handle Tab key in KHTML
55
+ if (khtml) inputDiv.style.height = "1px", inputDiv.style.position = "absolute";
56
+
57
+ // Check for OS X >= 10.7. This has transparent scrollbars, so the
58
+ // overlaying of one scrollbar with another won't work. This is a
59
+ // temporary hack to simply turn off the overlay scrollbar. See
60
+ // issue #727.
61
+ if (mac_geLion) { scrollbar.style.zIndex = -2; scrollbar.style.visibility = "hidden"; }
62
+ // Need to set a minimum width to see the scrollbar on IE7 (but must not set it on IE8).
63
+ else if (ie_lt8) scrollbar.style.minWidth = "18px";
64
+
65
+ // Delayed object wrap timeouts, making sure only one is active. blinker holds an interval.
66
+ var poll = new Delayed(), highlight = new Delayed(), blinker;
67
+
68
+ // mode holds a mode API object. doc is the tree of Line objects,
69
+ // frontier is the point up to which the content has been parsed,
70
+ // and history the undo history (instance of History constructor).
71
+ var mode, doc = new BranchChunk([new LeafChunk([new Line("")])]), frontier = 0, focused;
72
+ loadMode();
73
+ // The selection. These are always maintained to point at valid
74
+ // positions. Inverted is used to remember that the user is
75
+ // selecting bottom-to-top.
76
+ var sel = {from: {line: 0, ch: 0}, to: {line: 0, ch: 0}, inverted: false};
77
+ // Selection-related flags. shiftSelecting obviously tracks
78
+ // whether the user is holding shift.
79
+ var shiftSelecting, lastClick, lastDoubleClick, lastScrollTop = 0, draggingText,
80
+ overwrite = false, suppressEdits = false;
81
+ // Variables used by startOperation/endOperation to track what
82
+ // happened during the operation.
83
+ var updateInput, userSelChange, changes, textChanged, selectionChanged,
84
+ gutterDirty, callbacks;
85
+ // Current visible range (may be bigger than the view window).
86
+ var displayOffset = 0, showingFrom = 0, showingTo = 0, lastSizeC = 0;
87
+ // bracketHighlighted is used to remember that a bracket has been
88
+ // marked.
89
+ var bracketHighlighted;
90
+ // Tracks the maximum line length so that the horizontal scrollbar
91
+ // can be kept static when scrolling.
92
+ var maxLine = getLine(0), updateMaxLine = false, maxLineChanged = true;
93
+ var pollingFast = false; // Ensures slowPoll doesn't cancel fastPoll
94
+ var goalColumn = null;
95
+
96
+ // Initialize the content.
97
+ operation(function(){setValue(options.value || ""); updateInput = false;})();
98
+ var history = new History();
99
+
100
+ // Register our event handlers.
101
+ connect(scroller, "mousedown", operation(onMouseDown));
102
+ connect(scroller, "dblclick", operation(onDoubleClick));
103
+ connect(lineSpace, "selectstart", e_preventDefault);
104
+ // Gecko browsers fire contextmenu *after* opening the menu, at
105
+ // which point we can't mess with it anymore. Context menu is
106
+ // handled in onMouseDown for Gecko.
107
+ if (!gecko) connect(scroller, "contextmenu", onContextMenu);
108
+ connect(scroller, "scroll", onScrollMain);
109
+ connect(scrollbar, "scroll", onScrollBar);
110
+ connect(scrollbar, "mousedown", function() {if (focused) setTimeout(focusInput, 0);});
111
+ var resizeHandler = connect(window, "resize", function() {
112
+ if (wrapper.parentNode) updateDisplay(true);
113
+ else resizeHandler();
114
+ }, true);
115
+ connect(input, "keyup", operation(onKeyUp));
116
+ connect(input, "input", fastPoll);
117
+ connect(input, "keydown", operation(onKeyDown));
118
+ connect(input, "keypress", operation(onKeyPress));
119
+ connect(input, "focus", onFocus);
120
+ connect(input, "blur", onBlur);
121
+
122
+ function drag_(e) {
123
+ if (options.onDragEvent && options.onDragEvent(instance, addStop(e))) return;
124
+ e_stop(e);
125
+ }
126
+ if (options.dragDrop) {
127
+ connect(scroller, "dragstart", onDragStart);
128
+ connect(scroller, "dragenter", drag_);
129
+ connect(scroller, "dragover", drag_);
130
+ connect(scroller, "drop", operation(onDrop));
131
+ }
132
+ connect(scroller, "paste", function(){focusInput(); fastPoll();});
133
+ connect(input, "paste", fastPoll);
134
+ connect(input, "cut", operation(function(){
135
+ if (!options.readOnly) replaceSelection("");
136
+ }));
137
+
138
+ // Needed to handle Tab key in KHTML
139
+ if (khtml) connect(sizer, "mouseup", function() {
140
+ if (document.activeElement == input) input.blur();
141
+ focusInput();
142
+ });
143
+
144
+ // IE throws unspecified error in certain cases, when
145
+ // trying to access activeElement before onload
146
+ var hasFocus; try { hasFocus = (document.activeElement == input); } catch(e) { }
147
+ if (hasFocus || options.autofocus) setTimeout(onFocus, 20);
148
+ else onBlur();
149
+
150
+ function isLine(l) {return l >= 0 && l < doc.size;}
151
+ // The instance object that we'll return. Mostly calls out to
152
+ // local functions in the CodeMirror function. Some do some extra
153
+ // range checking and/or clipping. operation is used to wrap the
154
+ // call so that changes it makes are tracked, and the display is
155
+ // updated afterwards.
156
+ var instance = wrapper.CodeMirror = {
157
+ getValue: getValue,
158
+ setValue: operation(setValue),
159
+ getSelection: getSelection,
160
+ replaceSelection: operation(replaceSelection),
161
+ focus: function(){window.focus(); focusInput(); onFocus(); fastPoll();},
162
+ setOption: function(option, value) {
163
+ var oldVal = options[option];
164
+ options[option] = value;
165
+ if (option == "mode" || option == "indentUnit") loadMode();
166
+ else if (option == "readOnly" && value == "nocursor") {onBlur(); input.blur();}
167
+ else if (option == "readOnly" && !value) {resetInput(true);}
168
+ else if (option == "theme") themeChanged();
169
+ else if (option == "lineWrapping" && oldVal != value) operation(wrappingChanged)();
170
+ else if (option == "tabSize") updateDisplay(true);
171
+ else if (option == "keyMap") keyMapChanged();
172
+ if (option == "lineNumbers" || option == "gutter" || option == "firstLineNumber" ||
173
+ option == "theme" || option == "lineNumberFormatter") {
174
+ gutterChanged();
175
+ updateDisplay(true);
176
+ }
177
+ },
178
+ getOption: function(option) {return options[option];},
179
+ getMode: function() {return mode;},
180
+ undo: operation(undo),
181
+ redo: operation(redo),
182
+ indentLine: operation(function(n, dir) {
183
+ if (typeof dir != "string") {
184
+ if (dir == null) dir = options.smartIndent ? "smart" : "prev";
185
+ else dir = dir ? "add" : "subtract";
186
+ }
187
+ if (isLine(n)) indentLine(n, dir);
188
+ }),
189
+ indentSelection: operation(indentSelected),
190
+ historySize: function() {return {undo: history.done.length, redo: history.undone.length};},
191
+ clearHistory: function() {history = new History();},
192
+ setHistory: function(histData) {
193
+ history = new History();
194
+ history.done = histData.done;
195
+ history.undone = histData.undone;
196
+ },
197
+ getHistory: function() {
198
+ function cp(arr) {
199
+ for (var i = 0, nw = [], nwelt; i < arr.length; ++i) {
200
+ nw.push(nwelt = []);
201
+ for (var j = 0, elt = arr[i]; j < elt.length; ++j) {
202
+ var old = [], cur = elt[j];
203
+ nwelt.push({start: cur.start, added: cur.added, old: old});
204
+ for (var k = 0; k < cur.old.length; ++k) old.push(hlText(cur.old[k]));
205
+ }
206
+ }
207
+ return nw;
208
+ }
209
+ return {done: cp(history.done), undone: cp(history.undone)};
210
+ },
211
+ matchBrackets: operation(function(){matchBrackets(true);}),
212
+ getTokenAt: operation(function(pos) {
213
+ pos = clipPos(pos);
214
+ return getLine(pos.line).getTokenAt(mode, getStateBefore(pos.line), options.tabSize, pos.ch);
215
+ }),
216
+ getStateAfter: function(line) {
217
+ line = clipLine(line == null ? doc.size - 1: line);
218
+ return getStateBefore(line + 1);
219
+ },
220
+ cursorCoords: function(start, mode) {
221
+ if (start == null) start = sel.inverted;
222
+ return this.charCoords(start ? sel.from : sel.to, mode);
223
+ },
224
+ charCoords: function(pos, mode) {
225
+ pos = clipPos(pos);
226
+ if (mode == "local") return localCoords(pos, false);
227
+ if (mode == "div") return localCoords(pos, true);
228
+ return pageCoords(pos);
229
+ },
230
+ coordsChar: function(coords) {
231
+ var off = eltOffset(lineSpace);
232
+ return coordsChar(coords.x - off.left, coords.y - off.top);
233
+ },
234
+ markText: operation(markText),
235
+ setBookmark: setBookmark,
236
+ findMarksAt: findMarksAt,
237
+ setMarker: operation(addGutterMarker),
238
+ clearMarker: operation(removeGutterMarker),
239
+ setLineClass: operation(setLineClass),
240
+ hideLine: operation(function(h) {return setLineHidden(h, true);}),
241
+ showLine: operation(function(h) {return setLineHidden(h, false);}),
242
+ onDeleteLine: function(line, f) {
243
+ if (typeof line == "number") {
244
+ if (!isLine(line)) return null;
245
+ line = getLine(line);
246
+ }
247
+ (line.handlers || (line.handlers = [])).push(f);
248
+ return line;
249
+ },
250
+ lineInfo: lineInfo,
251
+ getViewport: function() { return {from: showingFrom, to: showingTo};},
252
+ addWidget: function(pos, node, scroll, vert, horiz) {
253
+ pos = localCoords(clipPos(pos));
254
+ var top = pos.yBot, left = pos.x;
255
+ node.style.position = "absolute";
256
+ sizer.appendChild(node);
257
+ if (vert == "over") top = pos.y;
258
+ else if (vert == "near") {
259
+ var vspace = Math.max(scroller.offsetHeight, doc.height * textHeight()),
260
+ hspace = Math.max(sizer.clientWidth, lineSpace.clientWidth) - paddingLeft();
261
+ if (pos.yBot + node.offsetHeight > vspace && pos.y > node.offsetHeight)
262
+ top = pos.y - node.offsetHeight;
263
+ if (left + node.offsetWidth > hspace)
264
+ left = hspace - node.offsetWidth;
265
+ }
266
+ node.style.top = (top + paddingTop()) + "px";
267
+ node.style.left = node.style.right = "";
268
+ if (horiz == "right") {
269
+ left = sizer.clientWidth - node.offsetWidth;
270
+ node.style.right = "0px";
271
+ } else {
272
+ if (horiz == "left") left = 0;
273
+ else if (horiz == "middle") left = (sizer.clientWidth - node.offsetWidth) / 2;
274
+ node.style.left = (left + paddingLeft()) + "px";
275
+ }
276
+ if (scroll)
277
+ scrollIntoView(left, top, left + node.offsetWidth, top + node.offsetHeight);
278
+ },
279
+
280
+ lineCount: function() {return doc.size;},
281
+ clipPos: clipPos,
282
+ getCursor: function(start) {
283
+ if (start == null) start = sel.inverted;
284
+ return copyPos(start ? sel.from : sel.to);
285
+ },
286
+ somethingSelected: function() {return !posEq(sel.from, sel.to);},
287
+ setCursor: operation(function(line, ch, user) {
288
+ if (ch == null && typeof line.line == "number") setCursor(line.line, line.ch, user);
289
+ else setCursor(line, ch, user);
290
+ }),
291
+ setSelection: operation(function(from, to, user) {
292
+ (user ? setSelectionUser : setSelection)(clipPos(from), clipPos(to || from));
293
+ }),
294
+ getLine: function(line) {if (isLine(line)) return getLine(line).text;},
295
+ getLineHandle: function(line) {if (isLine(line)) return getLine(line);},
296
+ setLine: operation(function(line, text) {
297
+ if (isLine(line)) replaceRange(text, {line: line, ch: 0}, {line: line, ch: getLine(line).text.length});
298
+ }),
299
+ removeLine: operation(function(line) {
300
+ if (isLine(line)) replaceRange("", {line: line, ch: 0}, clipPos({line: line+1, ch: 0}));
301
+ }),
302
+ replaceRange: operation(replaceRange),
303
+ getRange: function(from, to, lineSep) {return getRange(clipPos(from), clipPos(to), lineSep);},
304
+
305
+ triggerOnKeyDown: operation(onKeyDown),
306
+ execCommand: function(cmd) {return commands[cmd](instance);},
307
+ // Stuff used by commands, probably not much use to outside code.
308
+ moveH: operation(moveH),
309
+ deleteH: operation(deleteH),
310
+ moveV: operation(moveV),
311
+ toggleOverwrite: function() {
312
+ if(overwrite){
313
+ overwrite = false;
314
+ cursor.className = cursor.className.replace(" CodeMirror-overwrite", "");
315
+ } else {
316
+ overwrite = true;
317
+ cursor.className += " CodeMirror-overwrite";
318
+ }
319
+ },
320
+
321
+ posFromIndex: function(off) {
322
+ var lineNo = 0, ch;
323
+ doc.iter(0, doc.size, function(line) {
324
+ var sz = line.text.length + 1;
325
+ if (sz > off) { ch = off; return true; }
326
+ off -= sz;
327
+ ++lineNo;
328
+ });
329
+ return clipPos({line: lineNo, ch: ch});
330
+ },
331
+ indexFromPos: function (coords) {
332
+ if (coords.line < 0 || coords.ch < 0) return 0;
333
+ var index = coords.ch;
334
+ doc.iter(0, coords.line, function (line) {
335
+ index += line.text.length + 1;
336
+ });
337
+ return index;
338
+ },
339
+ scrollTo: function(x, y) {
340
+ if (x != null) scroller.scrollLeft = x;
341
+ if (y != null) scrollbar.scrollTop = scroller.scrollTop = y;
342
+ updateDisplay([]);
343
+ },
344
+ getScrollInfo: function() {
345
+ return {x: scroller.scrollLeft, y: scrollbar.scrollTop,
346
+ height: scrollbar.scrollHeight, width: scroller.scrollWidth};
347
+ },
348
+ setSize: function(width, height) {
349
+ function interpret(val) {
350
+ val = String(val);
351
+ return /^\d+$/.test(val) ? val + "px" : val;
352
+ }
353
+ if (width != null) wrapper.style.width = interpret(width);
354
+ if (height != null) scroller.style.height = interpret(height);
355
+ instance.refresh();
356
+ },
357
+
358
+ operation: function(f){return operation(f)();},
359
+ compoundChange: function(f){return compoundChange(f);},
360
+ refresh: function(){
361
+ updateDisplay(true, null, lastScrollTop);
362
+ if (scrollbar.scrollHeight > lastScrollTop)
363
+ scrollbar.scrollTop = lastScrollTop;
364
+ },
365
+ getInputField: function(){return input;},
366
+ getWrapperElement: function(){return wrapper;},
367
+ getScrollerElement: function(){return scroller;},
368
+ getGutterElement: function(){return gutter;}
369
+ };
370
+
371
+ function getLine(n) { return getLineAt(doc, n); }
372
+ function updateLineHeight(line, height) {
373
+ gutterDirty = true;
374
+ var diff = height - line.height;
375
+ for (var n = line; n; n = n.parent) n.height += diff;
376
+ }
377
+
378
+ function lineContent(line, wrapAt) {
379
+ if (!line.styles)
380
+ line.highlight(mode, line.stateAfter = getStateBefore(lineNo(line)), options.tabSize);
381
+ return line.getContent(options.tabSize, wrapAt, options.lineWrapping);
382
+ }
383
+
384
+ function setValue(code) {
385
+ var top = {line: 0, ch: 0};
386
+ updateLines(top, {line: doc.size - 1, ch: getLine(doc.size-1).text.length},
387
+ splitLines(code), top, top);
388
+ updateInput = true;
389
+ }
390
+ function getValue(lineSep) {
391
+ var text = [];
392
+ doc.iter(0, doc.size, function(line) { text.push(line.text); });
393
+ return text.join(lineSep || "\n");
394
+ }
395
+
396
+ function onScrollBar(e) {
397
+ if (scrollbar.scrollTop != lastScrollTop) {
398
+ lastScrollTop = scroller.scrollTop = scrollbar.scrollTop;
399
+ updateDisplay([]);
400
+ }
401
+ }
402
+
403
+ function onScrollMain(e) {
404
+ if (options.fixedGutter && gutter.style.left != scroller.scrollLeft + "px")
405
+ gutter.style.left = scroller.scrollLeft + "px";
406
+ if (scroller.scrollTop != lastScrollTop) {
407
+ lastScrollTop = scroller.scrollTop;
408
+ if (scrollbar.scrollTop != lastScrollTop)
409
+ scrollbar.scrollTop = lastScrollTop;
410
+ updateDisplay([]);
411
+ }
412
+ if (options.onScroll) options.onScroll(instance);
413
+ }
414
+
415
+ function onMouseDown(e) {
416
+ setShift(e_prop(e, "shiftKey"));
417
+ // Check whether this is a click in a widget
418
+ for (var n = e_target(e); n != wrapper; n = n.parentNode)
419
+ if (n.parentNode == sizer && n != mover) return;
420
+
421
+ // See if this is a click in the gutter
422
+ for (var n = e_target(e); n != wrapper; n = n.parentNode)
423
+ if (n.parentNode == gutterText) {
424
+ if (options.onGutterClick)
425
+ options.onGutterClick(instance, indexOf(gutterText.childNodes, n) + showingFrom, e);
426
+ return e_preventDefault(e);
427
+ }
428
+
429
+ var start = posFromMouse(e);
430
+
431
+ switch (e_button(e)) {
432
+ case 3:
433
+ if (gecko) onContextMenu(e);
434
+ return;
435
+ case 2:
436
+ if (start) setCursor(start.line, start.ch, true);
437
+ setTimeout(focusInput, 20);
438
+ e_preventDefault(e);
439
+ return;
440
+ }
441
+ // For button 1, if it was clicked inside the editor
442
+ // (posFromMouse returning non-null), we have to adjust the
443
+ // selection.
444
+ if (!start) {if (e_target(e) == scroller) e_preventDefault(e); return;}
445
+
446
+ if (!focused) onFocus();
447
+
448
+ var now = +new Date, type = "single";
449
+ if (lastDoubleClick && lastDoubleClick.time > now - 400 && posEq(lastDoubleClick.pos, start)) {
450
+ type = "triple";
451
+ e_preventDefault(e);
452
+ setTimeout(focusInput, 20);
453
+ selectLine(start.line);
454
+ } else if (lastClick && lastClick.time > now - 400 && posEq(lastClick.pos, start)) {
455
+ type = "double";
456
+ lastDoubleClick = {time: now, pos: start};
457
+ e_preventDefault(e);
458
+ var word = findWordAt(start);
459
+ setSelectionUser(word.from, word.to);
460
+ } else { lastClick = {time: now, pos: start}; }
461
+
462
+ function dragEnd(e2) {
463
+ if (webkit) scroller.draggable = false;
464
+ draggingText = false;
465
+ up(); drop();
466
+ if (Math.abs(e.clientX - e2.clientX) + Math.abs(e.clientY - e2.clientY) < 10) {
467
+ e_preventDefault(e2);
468
+ setCursor(start.line, start.ch, true);
469
+ focusInput();
470
+ }
471
+ }
472
+ var last = start, going;
473
+ if (options.dragDrop && dragAndDrop && !options.readOnly && !posEq(sel.from, sel.to) &&
474
+ !posLess(start, sel.from) && !posLess(sel.to, start) && type == "single") {
475
+ // Let the drag handler handle this.
476
+ if (webkit) scroller.draggable = true;
477
+ var up = connect(document, "mouseup", operation(dragEnd), true);
478
+ var drop = connect(scroller, "drop", operation(dragEnd), true);
479
+ draggingText = true;
480
+ // IE's approach to draggable
481
+ if (scroller.dragDrop) scroller.dragDrop();
482
+ return;
483
+ }
484
+ e_preventDefault(e);
485
+ if (type == "single") setCursor(start.line, start.ch, true);
486
+
487
+ var startstart = sel.from, startend = sel.to;
488
+
489
+ function doSelect(cur) {
490
+ if (type == "single") {
491
+ setSelectionUser(start, cur);
492
+ } else if (type == "double") {
493
+ var word = findWordAt(cur);
494
+ if (posLess(cur, startstart)) setSelectionUser(word.from, startend);
495
+ else setSelectionUser(startstart, word.to);
496
+ } else if (type == "triple") {
497
+ if (posLess(cur, startstart)) setSelectionUser(startend, clipPos({line: cur.line, ch: 0}));
498
+ else setSelectionUser(startstart, clipPos({line: cur.line + 1, ch: 0}));
499
+ }
500
+ }
501
+
502
+ function extend(e) {
503
+ var cur = posFromMouse(e, true);
504
+ if (cur && !posEq(cur, last)) {
505
+ if (!focused) onFocus();
506
+ last = cur;
507
+ doSelect(cur);
508
+ updateInput = false;
509
+ var visible = visibleLines();
510
+ if (cur.line >= visible.to || cur.line < visible.from)
511
+ going = setTimeout(operation(function(){extend(e);}), 150);
512
+ }
513
+ }
514
+
515
+ function done(e) {
516
+ clearTimeout(going);
517
+ var cur = posFromMouse(e);
518
+ if (cur) doSelect(cur);
519
+ e_preventDefault(e);
520
+ focusInput();
521
+ updateInput = true;
522
+ move(); up();
523
+ }
524
+ var move = connect(document, "mousemove", operation(function(e) {
525
+ clearTimeout(going);
526
+ e_preventDefault(e);
527
+ if (!ie && !e_button(e)) done(e);
528
+ else extend(e);
529
+ }), true);
530
+ var up = connect(document, "mouseup", operation(done), true);
531
+ }
532
+ function onDoubleClick(e) {
533
+ for (var n = e_target(e); n != wrapper; n = n.parentNode)
534
+ if (n.parentNode == gutterText) return e_preventDefault(e);
535
+ e_preventDefault(e);
536
+ }
537
+ function onDrop(e) {
538
+ if (options.onDragEvent && options.onDragEvent(instance, addStop(e))) return;
539
+ e_preventDefault(e);
540
+ var pos = posFromMouse(e, true), files = e.dataTransfer.files;
541
+ if (!pos || options.readOnly) return;
542
+ if (files && files.length && window.FileReader && window.File) {
543
+ var n = files.length, text = Array(n), read = 0;
544
+ var loadFile = function(file, i) {
545
+ var reader = new FileReader;
546
+ reader.onload = function() {
547
+ text[i] = reader.result;
548
+ if (++read == n) {
549
+ pos = clipPos(pos);
550
+ operation(function() {
551
+ var end = replaceRange(text.join(""), pos, pos);
552
+ setSelectionUser(pos, end);
553
+ })();
554
+ }
555
+ };
556
+ reader.readAsText(file);
557
+ };
558
+ for (var i = 0; i < n; ++i) loadFile(files[i], i);
559
+ } else {
560
+ // Don't do a replace if the drop happened inside of the selected text.
561
+ if (draggingText && !(posLess(pos, sel.from) || posLess(sel.to, pos))) return;
562
+ try {
563
+ var text = e.dataTransfer.getData("Text");
564
+ if (text) {
565
+ compoundChange(function() {
566
+ var curFrom = sel.from, curTo = sel.to;
567
+ setSelectionUser(pos, pos);
568
+ if (draggingText) replaceRange("", curFrom, curTo);
569
+ replaceSelection(text);
570
+ focusInput();
571
+ });
572
+ }
573
+ }
574
+ catch(e){}
575
+ }
576
+ }
577
+ function onDragStart(e) {
578
+ var txt = getSelection();
579
+ e.dataTransfer.setData("Text", txt);
580
+
581
+ // Use dummy image instead of default browsers image.
582
+ if (e.dataTransfer.setDragImage)
583
+ e.dataTransfer.setDragImage(elt('img'), 0, 0);
584
+ }
585
+
586
+ function doHandleBinding(bound, dropShift) {
587
+ if (typeof bound == "string") {
588
+ bound = commands[bound];
589
+ if (!bound) return false;
590
+ }
591
+ var prevShift = shiftSelecting;
592
+ try {
593
+ if (options.readOnly) suppressEdits = true;
594
+ if (dropShift) shiftSelecting = null;
595
+ bound(instance);
596
+ } catch(e) {
597
+ if (e != Pass) throw e;
598
+ return false;
599
+ } finally {
600
+ shiftSelecting = prevShift;
601
+ suppressEdits = false;
602
+ }
603
+ return true;
604
+ }
605
+ var maybeTransition;
606
+ function handleKeyBinding(e) {
607
+ // Handle auto keymap transitions
608
+ var startMap = getKeyMap(options.keyMap), next = startMap.auto;
609
+ clearTimeout(maybeTransition);
610
+ if (next && !isModifierKey(e)) maybeTransition = setTimeout(function() {
611
+ if (getKeyMap(options.keyMap) == startMap) {
612
+ options.keyMap = (next.call ? next.call(null, instance) : next);
613
+ }
614
+ }, 50);
615
+
616
+ var name = keyNames[e_prop(e, "keyCode")], handled = false;
617
+ var flipCtrlCmd = opera && mac;
618
+ if (name == null || e.altGraphKey) return false;
619
+ if (e_prop(e, "altKey")) name = "Alt-" + name;
620
+ if (e_prop(e, flipCtrlCmd ? "metaKey" : "ctrlKey")) name = "Ctrl-" + name;
621
+ if (e_prop(e, flipCtrlCmd ? "ctrlKey" : "metaKey")) name = "Cmd-" + name;
622
+
623
+ var stopped = false;
624
+ function stop() { stopped = true; }
625
+
626
+ if (e_prop(e, "shiftKey")) {
627
+ handled = lookupKey("Shift-" + name, options.extraKeys, options.keyMap,
628
+ function(b) {return doHandleBinding(b, true);}, stop)
629
+ || lookupKey(name, options.extraKeys, options.keyMap, function(b) {
630
+ if (typeof b == "string" && /^go[A-Z]/.test(b)) return doHandleBinding(b);
631
+ }, stop);
632
+ } else {
633
+ handled = lookupKey(name, options.extraKeys, options.keyMap, doHandleBinding, stop);
634
+ }
635
+ if (stopped) handled = false;
636
+ if (handled) {
637
+ e_preventDefault(e);
638
+ restartBlink();
639
+ if (ie) { e.oldKeyCode = e.keyCode; e.keyCode = 0; }
640
+ }
641
+ return handled;
642
+ }
643
+ function handleCharBinding(e, ch) {
644
+ var handled = lookupKey("'" + ch + "'", options.extraKeys,
645
+ options.keyMap, function(b) { return doHandleBinding(b, true); });
646
+ if (handled) {
647
+ e_preventDefault(e);
648
+ restartBlink();
649
+ }
650
+ return handled;
651
+ }
652
+
653
+ var lastStoppedKey = null;
654
+ function onKeyDown(e) {
655
+ if (!focused) onFocus();
656
+ if (ie && e.keyCode == 27) { e.returnValue = false; }
657
+ if (pollingFast) { if (readInput()) pollingFast = false; }
658
+ if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;
659
+ var code = e_prop(e, "keyCode");
660
+ // IE does strange things with escape.
661
+ setShift(code == 16 || e_prop(e, "shiftKey"));
662
+ // First give onKeyEvent option a chance to handle this.
663
+ var handled = handleKeyBinding(e);
664
+ if (opera) {
665
+ lastStoppedKey = handled ? code : null;
666
+ // Opera has no cut event... we try to at least catch the key combo
667
+ if (!handled && code == 88 && e_prop(e, mac ? "metaKey" : "ctrlKey"))
668
+ replaceSelection("");
669
+ }
670
+ }
671
+ function onKeyPress(e) {
672
+ if (pollingFast) readInput();
673
+ if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;
674
+ var keyCode = e_prop(e, "keyCode"), charCode = e_prop(e, "charCode");
675
+ if (opera && keyCode == lastStoppedKey) {lastStoppedKey = null; e_preventDefault(e); return;}
676
+ if (((opera && (!e.which || e.which < 10)) || khtml) && handleKeyBinding(e)) return;
677
+ var ch = String.fromCharCode(charCode == null ? keyCode : charCode);
678
+ if (options.electricChars && mode.electricChars && options.smartIndent && !options.readOnly) {
679
+ if (mode.electricChars.indexOf(ch) > -1)
680
+ setTimeout(operation(function() {indentLine(sel.to.line, "smart");}), 75);
681
+ }
682
+ if (handleCharBinding(e, ch)) return;
683
+ fastPoll();
684
+ }
685
+ function onKeyUp(e) {
686
+ if (options.onKeyEvent && options.onKeyEvent(instance, addStop(e))) return;
687
+ if (e_prop(e, "keyCode") == 16) shiftSelecting = null;
688
+ }
689
+
690
+ function onFocus() {
691
+ if (options.readOnly == "nocursor") return;
692
+ if (!focused) {
693
+ if (options.onFocus) options.onFocus(instance);
694
+ focused = true;
695
+ if (scroller.className.search(/\bCodeMirror-focused\b/) == -1)
696
+ scroller.className += " CodeMirror-focused";
697
+ }
698
+ slowPoll();
699
+ restartBlink();
700
+ }
701
+ function onBlur() {
702
+ if (focused) {
703
+ if (options.onBlur) options.onBlur(instance);
704
+ focused = false;
705
+ if (bracketHighlighted)
706
+ operation(function(){
707
+ if (bracketHighlighted) { bracketHighlighted(); bracketHighlighted = null; }
708
+ })();
709
+ scroller.className = scroller.className.replace(" CodeMirror-focused", "");
710
+ }
711
+ clearInterval(blinker);
712
+ setTimeout(function() {if (!focused) shiftSelecting = null;}, 150);
713
+ }
714
+
715
+ // Replace the range from from to to by the strings in newText.
716
+ // Afterwards, set the selection to selFrom, selTo.
717
+ function updateLines(from, to, newText, selFrom, selTo) {
718
+ if (suppressEdits) return;
719
+ var old = [];
720
+ doc.iter(from.line, to.line + 1, function(line) {
721
+ old.push(newHL(line.text, line.markedSpans));
722
+ });
723
+ if (history) {
724
+ history.addChange(from.line, newText.length, old);
725
+ while (history.done.length > options.undoDepth) history.done.shift();
726
+ }
727
+ var lines = updateMarkedSpans(hlSpans(old[0]), hlSpans(lst(old)), from.ch, to.ch, newText);
728
+ updateLinesNoUndo(from, to, lines, selFrom, selTo);
729
+ }
730
+ function unredoHelper(from, to) {
731
+ if (!from.length) return;
732
+ var set = from.pop(), out = [];
733
+ for (var i = set.length - 1; i >= 0; i -= 1) {
734
+ var change = set[i];
735
+ var replaced = [], end = change.start + change.added;
736
+ doc.iter(change.start, end, function(line) { replaced.push(newHL(line.text, line.markedSpans)); });
737
+ out.push({start: change.start, added: change.old.length, old: replaced});
738
+ var pos = {line: change.start + change.old.length - 1,
739
+ ch: editEnd(hlText(lst(replaced)), hlText(lst(change.old)))};
740
+ updateLinesNoUndo({line: change.start, ch: 0}, {line: end - 1, ch: getLine(end-1).text.length},
741
+ change.old, pos, pos);
742
+ }
743
+ updateInput = true;
744
+ to.push(out);
745
+ }
746
+ function undo() {unredoHelper(history.done, history.undone);}
747
+ function redo() {unredoHelper(history.undone, history.done);}
748
+
749
+ function updateLinesNoUndo(from, to, lines, selFrom, selTo) {
750
+ if (suppressEdits) return;
751
+ var recomputeMaxLength = false, maxLineLength = maxLine.text.length;
752
+ if (!options.lineWrapping)
753
+ doc.iter(from.line, to.line + 1, function(line) {
754
+ if (!line.hidden && line.text.length == maxLineLength) {recomputeMaxLength = true; return true;}
755
+ });
756
+ if (from.line != to.line || lines.length > 1) gutterDirty = true;
757
+
758
+ var nlines = to.line - from.line, firstLine = getLine(from.line), lastLine = getLine(to.line);
759
+ var lastHL = lst(lines);
760
+
761
+ // First adjust the line structure
762
+ if (from.ch == 0 && to.ch == 0 && hlText(lastHL) == "") {
763
+ // This is a whole-line replace. Treated specially to make
764
+ // sure line objects move the way they are supposed to.
765
+ var added = [], prevLine = null;
766
+ for (var i = 0, e = lines.length - 1; i < e; ++i)
767
+ added.push(new Line(hlText(lines[i]), hlSpans(lines[i])));
768
+ lastLine.update(lastLine.text, hlSpans(lastHL));
769
+ if (nlines) doc.remove(from.line, nlines, callbacks);
770
+ if (added.length) doc.insert(from.line, added);
771
+ } else if (firstLine == lastLine) {
772
+ if (lines.length == 1) {
773
+ firstLine.update(firstLine.text.slice(0, from.ch) + hlText(lines[0]) + firstLine.text.slice(to.ch), hlSpans(lines[0]));
774
+ } else {
775
+ for (var added = [], i = 1, e = lines.length - 1; i < e; ++i)
776
+ added.push(new Line(hlText(lines[i]), hlSpans(lines[i])));
777
+ added.push(new Line(hlText(lastHL) + firstLine.text.slice(to.ch), hlSpans(lastHL)));
778
+ firstLine.update(firstLine.text.slice(0, from.ch) + hlText(lines[0]), hlSpans(lines[0]));
779
+ doc.insert(from.line + 1, added);
780
+ }
781
+ } else if (lines.length == 1) {
782
+ firstLine.update(firstLine.text.slice(0, from.ch) + hlText(lines[0]) + lastLine.text.slice(to.ch), hlSpans(lines[0]));
783
+ doc.remove(from.line + 1, nlines, callbacks);
784
+ } else {
785
+ var added = [];
786
+ firstLine.update(firstLine.text.slice(0, from.ch) + hlText(lines[0]), hlSpans(lines[0]));
787
+ lastLine.update(hlText(lastHL) + lastLine.text.slice(to.ch), hlSpans(lastHL));
788
+ for (var i = 1, e = lines.length - 1; i < e; ++i)
789
+ added.push(new Line(hlText(lines[i]), hlSpans(lines[i])));
790
+ if (nlines > 1) doc.remove(from.line + 1, nlines - 1, callbacks);
791
+ doc.insert(from.line + 1, added);
792
+ }
793
+ if (options.lineWrapping) {
794
+ var perLine = Math.max(5, scroller.clientWidth / charWidth() - 3);
795
+ doc.iter(from.line, from.line + lines.length, function(line) {
796
+ if (line.hidden) return;
797
+ var guess = Math.ceil(line.text.length / perLine) || 1;
798
+ if (guess != line.height) updateLineHeight(line, guess);
799
+ });
800
+ } else {
801
+ doc.iter(from.line, from.line + lines.length, function(line) {
802
+ var l = line.text;
803
+ if (!line.hidden && l.length > maxLineLength) {
804
+ maxLine = line; maxLineLength = l.length; maxLineChanged = true;
805
+ recomputeMaxLength = false;
806
+ }
807
+ });
808
+ if (recomputeMaxLength) updateMaxLine = true;
809
+ }
810
+
811
+ // Adjust frontier, schedule worker
812
+ frontier = Math.min(frontier, from.line);
813
+ startWorker(400);
814
+
815
+ var lendiff = lines.length - nlines - 1;
816
+ // Remember that these lines changed, for updating the display
817
+ changes.push({from: from.line, to: to.line + 1, diff: lendiff});
818
+ if (options.onChange) {
819
+ // Normalize lines to contain only strings, since that's what
820
+ // the change event handler expects
821
+ for (var i = 0; i < lines.length; ++i)
822
+ if (typeof lines[i] != "string") lines[i] = lines[i].text;
823
+ var changeObj = {from: from, to: to, text: lines};
824
+ if (textChanged) {
825
+ for (var cur = textChanged; cur.next; cur = cur.next) {}
826
+ cur.next = changeObj;
827
+ } else textChanged = changeObj;
828
+ }
829
+
830
+ // Update the selection
831
+ function updateLine(n) {return n <= Math.min(to.line, to.line + lendiff) ? n : n + lendiff;}
832
+ setSelection(clipPos(selFrom), clipPos(selTo),
833
+ updateLine(sel.from.line), updateLine(sel.to.line));
834
+ }
835
+
836
+ function needsScrollbar() {
837
+ var realHeight = doc.height * textHeight() + 2 * paddingTop();
838
+ return realHeight * .99 > scroller.offsetHeight ? realHeight : false;
839
+ }
840
+
841
+ function updateVerticalScroll(scrollTop) {
842
+ var scrollHeight = needsScrollbar();
843
+ scrollbar.style.display = scrollHeight ? "block" : "none";
844
+ if (scrollHeight) {
845
+ scrollbarInner.style.height = sizer.style.minHeight = scrollHeight + "px";
846
+ scrollbar.style.height = scroller.clientHeight + "px";
847
+ if (scrollTop != null) {
848
+ scrollbar.scrollTop = scroller.scrollTop = scrollTop;
849
+ // 'Nudge' the scrollbar to work around a Webkit bug where,
850
+ // in some situations, we'd end up with a scrollbar that
851
+ // reported its scrollTop (and looked) as expected, but
852
+ // *behaved* as if it was still in a previous state (i.e.
853
+ // couldn't scroll up, even though it appeared to be at the
854
+ // bottom).
855
+ if (webkit) setTimeout(function() {
856
+ if (scrollbar.scrollTop != scrollTop) return;
857
+ scrollbar.scrollTop = scrollTop + (scrollTop ? -1 : 1);
858
+ scrollbar.scrollTop = scrollTop;
859
+ }, 0);
860
+ }
861
+ } else {
862
+ sizer.style.minHeight = "";
863
+ }
864
+ // Position the mover div to align with the current virtual scroll position
865
+ mover.style.top = displayOffset * textHeight() + "px";
866
+ }
867
+
868
+ function computeMaxLength() {
869
+ maxLine = getLine(0); maxLineChanged = true;
870
+ var maxLineLength = maxLine.text.length;
871
+ doc.iter(1, doc.size, function(line) {
872
+ var l = line.text;
873
+ if (!line.hidden && l.length > maxLineLength) {
874
+ maxLineLength = l.length; maxLine = line;
875
+ }
876
+ });
877
+ updateMaxLine = false;
878
+ }
879
+
880
+ function replaceRange(code, from, to) {
881
+ from = clipPos(from);
882
+ if (!to) to = from; else to = clipPos(to);
883
+ code = splitLines(code);
884
+ function adjustPos(pos) {
885
+ if (posLess(pos, from)) return pos;
886
+ if (!posLess(to, pos)) return end;
887
+ var line = pos.line + code.length - (to.line - from.line) - 1;
888
+ var ch = pos.ch;
889
+ if (pos.line == to.line)
890
+ ch += lst(code).length - (to.ch - (to.line == from.line ? from.ch : 0));
891
+ return {line: line, ch: ch};
892
+ }
893
+ var end;
894
+ replaceRange1(code, from, to, function(end1) {
895
+ end = end1;
896
+ return {from: adjustPos(sel.from), to: adjustPos(sel.to)};
897
+ });
898
+ return end;
899
+ }
900
+ function replaceSelection(code, collapse) {
901
+ replaceRange1(splitLines(code), sel.from, sel.to, function(end) {
902
+ if (collapse == "end") return {from: end, to: end};
903
+ else if (collapse == "start") return {from: sel.from, to: sel.from};
904
+ else return {from: sel.from, to: end};
905
+ });
906
+ }
907
+ function replaceRange1(code, from, to, computeSel) {
908
+ var endch = code.length == 1 ? code[0].length + from.ch : lst(code).length;
909
+ var newSel = computeSel({line: from.line + code.length - 1, ch: endch});
910
+ updateLines(from, to, code, newSel.from, newSel.to);
911
+ }
912
+
913
+ function getRange(from, to, lineSep) {
914
+ var l1 = from.line, l2 = to.line;
915
+ if (l1 == l2) return getLine(l1).text.slice(from.ch, to.ch);
916
+ var code = [getLine(l1).text.slice(from.ch)];
917
+ doc.iter(l1 + 1, l2, function(line) { code.push(line.text); });
918
+ code.push(getLine(l2).text.slice(0, to.ch));
919
+ return code.join(lineSep || "\n");
920
+ }
921
+ function getSelection(lineSep) {
922
+ return getRange(sel.from, sel.to, lineSep);
923
+ }
924
+
925
+ function slowPoll() {
926
+ if (pollingFast) return;
927
+ poll.set(options.pollInterval, function() {
928
+ readInput();
929
+ if (focused) slowPoll();
930
+ });
931
+ }
932
+ function fastPoll() {
933
+ var missed = false;
934
+ pollingFast = true;
935
+ function p() {
936
+ var changed = readInput();
937
+ if (!changed && !missed) {missed = true; poll.set(60, p);}
938
+ else {pollingFast = false; slowPoll();}
939
+ }
940
+ poll.set(20, p);
941
+ }
942
+
943
+ // Previnput is a hack to work with IME. If we reset the textarea
944
+ // on every change, that breaks IME. So we look for changes
945
+ // compared to the previous content instead. (Modern browsers have
946
+ // events that indicate IME taking place, but these are not widely
947
+ // supported or compatible enough yet to rely on.)
948
+ var prevInput = "";
949
+ function readInput() {
950
+ if (!focused || hasSelection(input) || options.readOnly) return false;
951
+ var text = input.value;
952
+ if (text == prevInput) return false;
953
+ if (!nestedOperation) startOperation();
954
+ shiftSelecting = null;
955
+ var same = 0, l = Math.min(prevInput.length, text.length);
956
+ while (same < l && prevInput[same] == text[same]) ++same;
957
+ if (same < prevInput.length)
958
+ sel.from = {line: sel.from.line, ch: sel.from.ch - (prevInput.length - same)};
959
+ else if (overwrite && posEq(sel.from, sel.to))
960
+ sel.to = {line: sel.to.line, ch: Math.min(getLine(sel.to.line).text.length, sel.to.ch + (text.length - same))};
961
+ replaceSelection(text.slice(same), "end");
962
+ if (text.length > 1000) { input.value = prevInput = ""; }
963
+ else prevInput = text;
964
+ if (!nestedOperation) endOperation();
965
+ return true;
966
+ }
967
+ function resetInput(user) {
968
+ if (!posEq(sel.from, sel.to)) {
969
+ prevInput = "";
970
+ input.value = getSelection();
971
+ if (focused) selectInput(input);
972
+ } else if (user) prevInput = input.value = "";
973
+ }
974
+
975
+ function focusInput() {
976
+ if (options.readOnly != "nocursor") input.focus();
977
+ }
978
+
979
+ function scrollCursorIntoView() {
980
+ var coords = calculateCursorCoords();
981
+ scrollIntoView(coords.x, coords.y, coords.x, coords.yBot);
982
+ if (!focused) return;
983
+ var box = sizer.getBoundingClientRect(), doScroll = null;
984
+ if (coords.y + box.top < 0) doScroll = true;
985
+ else if (coords.y + box.top + textHeight() > (window.innerHeight || document.documentElement.clientHeight)) doScroll = false;
986
+ if (doScroll != null) {
987
+ var hidden = cursor.style.display == "none";
988
+ if (hidden) {
989
+ cursor.style.display = "";
990
+ cursor.style.left = coords.x + "px";
991
+ cursor.style.top = (coords.y - displayOffset) + "px";
992
+ }
993
+ cursor.scrollIntoView(doScroll);
994
+ if (hidden) cursor.style.display = "none";
995
+ }
996
+ }
997
+ function calculateCursorCoords() {
998
+ var cursor = localCoords(sel.inverted ? sel.from : sel.to);
999
+ var x = options.lineWrapping ? Math.min(cursor.x, lineSpace.offsetWidth) : cursor.x;
1000
+ return {x: x, y: cursor.y, yBot: cursor.yBot};
1001
+ }
1002
+ function scrollIntoView(x1, y1, x2, y2) {
1003
+ var scrollPos = calculateScrollPos(x1, y1, x2, y2);
1004
+ if (scrollPos.scrollLeft != null) {scroller.scrollLeft = scrollPos.scrollLeft;}
1005
+ if (scrollPos.scrollTop != null) {scrollbar.scrollTop = scroller.scrollTop = scrollPos.scrollTop;}
1006
+ }
1007
+ function calculateScrollPos(x1, y1, x2, y2) {
1008
+ var pl = paddingLeft(), pt = paddingTop();
1009
+ y1 += pt; y2 += pt; x1 += pl; x2 += pl;
1010
+ var screen = scroller.clientHeight, screentop = scrollbar.scrollTop, result = {};
1011
+ var docBottom = needsScrollbar() || Infinity;
1012
+ var atTop = y1 < pt + 10, atBottom = y2 + pt > docBottom - 10;
1013
+ if (y1 < screentop) result.scrollTop = atTop ? 0 : Math.max(0, y1);
1014
+ else if (y2 > screentop + screen) result.scrollTop = (atBottom ? docBottom : y2) - screen;
1015
+
1016
+ var screenw = scroller.clientWidth, screenleft = scroller.scrollLeft;
1017
+ var gutterw = options.fixedGutter ? gutter.clientWidth : 0;
1018
+ var atLeft = x1 < gutterw + pl + 10;
1019
+ if (x1 < screenleft + gutterw || atLeft) {
1020
+ if (atLeft) x1 = 0;
1021
+ result.scrollLeft = Math.max(0, x1 - 10 - gutterw);
1022
+ } else if (x2 > screenw + screenleft - 3) {
1023
+ result.scrollLeft = x2 + 10 - screenw;
1024
+ }
1025
+ return result;
1026
+ }
1027
+
1028
+ function visibleLines(scrollTop) {
1029
+ var lh = textHeight(), top = (scrollTop != null ? scrollTop : scrollbar.scrollTop) - paddingTop();
1030
+ var fromHeight = Math.max(0, Math.floor(top / lh));
1031
+ var toHeight = Math.ceil((top + scroller.clientHeight) / lh);
1032
+ return {from: lineAtHeight(doc, fromHeight),
1033
+ to: lineAtHeight(doc, toHeight)};
1034
+ }
1035
+ // Uses a set of changes plus the current scroll position to
1036
+ // determine which DOM updates have to be made, and makes the
1037
+ // updates.
1038
+ function updateDisplay(changes, suppressCallback, scrollTop) {
1039
+ if (!scroller.clientWidth) {
1040
+ showingFrom = showingTo = displayOffset = 0;
1041
+ return;
1042
+ }
1043
+ // Compute the new visible window
1044
+ // If scrollTop is specified, use that to determine which lines
1045
+ // to render instead of the current scrollbar position.
1046
+ var visible = visibleLines(scrollTop);
1047
+ // Bail out if the visible area is already rendered and nothing changed.
1048
+ if (changes !== true && changes.length == 0 && visible.from > showingFrom && visible.to < showingTo) {
1049
+ updateVerticalScroll(scrollTop);
1050
+ return;
1051
+ }
1052
+ var from = Math.max(visible.from - 100, 0), to = Math.min(doc.size, visible.to + 100);
1053
+ if (showingFrom < from && from - showingFrom < 20) from = showingFrom;
1054
+ if (showingTo > to && showingTo - to < 20) to = Math.min(doc.size, showingTo);
1055
+
1056
+ // Create a range of theoretically intact lines, and punch holes
1057
+ // in that using the change info.
1058
+ var intact = changes === true ? [] :
1059
+ computeIntact([{from: showingFrom, to: showingTo, domStart: 0}], changes);
1060
+ // Clip off the parts that won't be visible
1061
+ var intactLines = 0;
1062
+ for (var i = 0; i < intact.length; ++i) {
1063
+ var range = intact[i];
1064
+ if (range.from < from) {range.domStart += (from - range.from); range.from = from;}
1065
+ if (range.to > to) range.to = to;
1066
+ if (range.from >= range.to) intact.splice(i--, 1);
1067
+ else intactLines += range.to - range.from;
1068
+ }
1069
+ if (intactLines == to - from && from == showingFrom && to == showingTo) {
1070
+ updateVerticalScroll(scrollTop);
1071
+ return;
1072
+ }
1073
+ intact.sort(function(a, b) {return a.domStart - b.domStart;});
1074
+
1075
+ var th = textHeight(), gutterDisplay = gutter.style.display;
1076
+ lineDiv.style.display = "none";
1077
+ patchDisplay(from, to, intact);
1078
+ lineDiv.style.display = gutter.style.display = "";
1079
+
1080
+ var different = from != showingFrom || to != showingTo || lastSizeC != scroller.clientHeight + th;
1081
+ // This is just a bogus formula that detects when the editor is
1082
+ // resized or the font size changes.
1083
+ if (different) lastSizeC = scroller.clientHeight + th;
1084
+ if (from != showingFrom || to != showingTo && options.onViewportChange)
1085
+ setTimeout(function(){
1086
+ if (options.onViewportChange) options.onViewportChange(instance, from, to);
1087
+ });
1088
+ showingFrom = from; showingTo = to;
1089
+ displayOffset = heightAtLine(doc, from);
1090
+ startWorker(100);
1091
+
1092
+ // Since this is all rather error prone, it is honoured with the
1093
+ // only assertion in the whole file.
1094
+ if (lineDiv.childNodes.length != showingTo - showingFrom)
1095
+ throw new Error("BAD PATCH! " + JSON.stringify(intact) + " size=" + (showingTo - showingFrom) +
1096
+ " nodes=" + lineDiv.childNodes.length);
1097
+
1098
+ function checkHeights() {
1099
+ var curNode = lineDiv.firstChild, heightChanged = false;
1100
+ doc.iter(showingFrom, showingTo, function(line) {
1101
+ // Work around bizarro IE7 bug where, sometimes, our curNode
1102
+ // is magically replaced with a new node in the DOM, leaving
1103
+ // us with a reference to an orphan (nextSibling-less) node.
1104
+ if (!curNode) return;
1105
+ if (!line.hidden) {
1106
+ var height = Math.round(curNode.offsetHeight / th) || 1;
1107
+ if (line.height != height) {
1108
+ updateLineHeight(line, height);
1109
+ gutterDirty = heightChanged = true;
1110
+ }
1111
+ }
1112
+ curNode = curNode.nextSibling;
1113
+ });
1114
+ return heightChanged;
1115
+ }
1116
+
1117
+ if (options.lineWrapping) checkHeights();
1118
+
1119
+ gutter.style.display = gutterDisplay;
1120
+ if (different || gutterDirty) {
1121
+ // If the gutter grew in size, re-check heights. If those changed, re-draw gutter.
1122
+ updateGutter() && options.lineWrapping && checkHeights() && updateGutter();
1123
+ }
1124
+ updateVerticalScroll(scrollTop);
1125
+ updateSelection();
1126
+ if (!suppressCallback && options.onUpdate) options.onUpdate(instance);
1127
+ return true;
1128
+ }
1129
+
1130
+ function computeIntact(intact, changes) {
1131
+ for (var i = 0, l = changes.length || 0; i < l; ++i) {
1132
+ var change = changes[i], intact2 = [], diff = change.diff || 0;
1133
+ for (var j = 0, l2 = intact.length; j < l2; ++j) {
1134
+ var range = intact[j];
1135
+ if (change.to <= range.from && change.diff)
1136
+ intact2.push({from: range.from + diff, to: range.to + diff,
1137
+ domStart: range.domStart});
1138
+ else if (change.to <= range.from || change.from >= range.to)
1139
+ intact2.push(range);
1140
+ else {
1141
+ if (change.from > range.from)
1142
+ intact2.push({from: range.from, to: change.from, domStart: range.domStart});
1143
+ if (change.to < range.to)
1144
+ intact2.push({from: change.to + diff, to: range.to + diff,
1145
+ domStart: range.domStart + (change.to - range.from)});
1146
+ }
1147
+ }
1148
+ intact = intact2;
1149
+ }
1150
+ return intact;
1151
+ }
1152
+
1153
+ function patchDisplay(from, to, intact) {
1154
+ function killNode(node) {
1155
+ var tmp = node.nextSibling;
1156
+ node.parentNode.removeChild(node);
1157
+ return tmp;
1158
+ }
1159
+ // The first pass removes the DOM nodes that aren't intact.
1160
+ if (!intact.length) removeChildren(lineDiv);
1161
+ else {
1162
+ var domPos = 0, curNode = lineDiv.firstChild, n;
1163
+ for (var i = 0; i < intact.length; ++i) {
1164
+ var cur = intact[i];
1165
+ while (cur.domStart > domPos) {curNode = killNode(curNode); domPos++;}
1166
+ for (var j = 0, e = cur.to - cur.from; j < e; ++j) {curNode = curNode.nextSibling; domPos++;}
1167
+ }
1168
+ while (curNode) curNode = killNode(curNode);
1169
+ }
1170
+ // This pass fills in the lines that actually changed.
1171
+ var nextIntact = intact.shift(), curNode = lineDiv.firstChild, j = from;
1172
+ doc.iter(from, to, function(line) {
1173
+ if (nextIntact && nextIntact.to == j) nextIntact = intact.shift();
1174
+ if (!nextIntact || nextIntact.from > j) {
1175
+ if (line.hidden) var lineElement = elt("pre");
1176
+ else {
1177
+ var lineElement = lineContent(line);
1178
+ if (line.className) lineElement.className = line.className;
1179
+ // Kludge to make sure the styled element lies behind the selection (by z-index)
1180
+ if (line.bgClassName) {
1181
+ var pre = elt("pre", "\u00a0", line.bgClassName, "position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: -2");
1182
+ lineElement = elt("div", [pre, lineElement], null, "position: relative");
1183
+ }
1184
+ }
1185
+ lineDiv.insertBefore(lineElement, curNode);
1186
+ } else {
1187
+ curNode = curNode.nextSibling;
1188
+ }
1189
+ ++j;
1190
+ });
1191
+ }
1192
+
1193
+ function updateGutter() {
1194
+ if (!options.gutter && !options.lineNumbers) return;
1195
+ var hText = mover.offsetHeight, hEditor = scroller.clientHeight;
1196
+ gutter.style.height = (hText - hEditor < 2 ? hEditor : hText) + "px";
1197
+ var fragment = document.createDocumentFragment(), i = showingFrom, normalNode;
1198
+ doc.iter(showingFrom, Math.max(showingTo, showingFrom + 1), function(line) {
1199
+ if (line.hidden) {
1200
+ fragment.appendChild(elt("pre"));
1201
+ } else {
1202
+ var marker = line.gutterMarker;
1203
+ var text = options.lineNumbers ? options.lineNumberFormatter(i + options.firstLineNumber) : null;
1204
+ if (marker && marker.text)
1205
+ text = marker.text.replace("%N%", text != null ? text : "");
1206
+ else if (text == null)
1207
+ text = "\u00a0";
1208
+ var markerElement = fragment.appendChild(elt("pre", null, marker && marker.style));
1209
+ markerElement.innerHTML = text;
1210
+ for (var j = 1; j < line.height; ++j) {
1211
+ markerElement.appendChild(elt("br"));
1212
+ markerElement.appendChild(document.createTextNode("\u00a0"));
1213
+ }
1214
+ if (!marker) normalNode = i;
1215
+ }
1216
+ ++i;
1217
+ });
1218
+ gutter.style.display = "none";
1219
+ removeChildrenAndAdd(gutterText, fragment);
1220
+ // Make sure scrolling doesn't cause number gutter size to pop
1221
+ if (normalNode != null && options.lineNumbers) {
1222
+ var node = gutterText.childNodes[normalNode - showingFrom];
1223
+ var minwidth = String(doc.size).length, val = eltText(node.firstChild), pad = "";
1224
+ while (val.length + pad.length < minwidth) pad += "\u00a0";
1225
+ if (pad) node.insertBefore(document.createTextNode(pad), node.firstChild);
1226
+ }
1227
+ gutter.style.display = "";
1228
+ var resized = Math.abs((parseInt(lineSpace.style.marginLeft) || 0) - gutter.offsetWidth) > 2;
1229
+ lineSpace.style.marginLeft = gutter.offsetWidth + "px";
1230
+ gutterDirty = false;
1231
+ return resized;
1232
+ }
1233
+ function updateSelection() {
1234
+ var collapsed = posEq(sel.from, sel.to);
1235
+ var fromPos = localCoords(sel.from, true);
1236
+ var toPos = collapsed ? fromPos : localCoords(sel.to, true);
1237
+ var headPos = sel.inverted ? fromPos : toPos, th = textHeight();
1238
+ var wrapOff = eltOffset(wrapper), lineOff = eltOffset(lineDiv);
1239
+ inputDiv.style.top = Math.max(0, Math.min(scroller.offsetHeight, headPos.y + lineOff.top - wrapOff.top)) + "px";
1240
+ inputDiv.style.left = Math.max(0, Math.min(scroller.offsetWidth, headPos.x + lineOff.left - wrapOff.left)) + "px";
1241
+ if (collapsed) {
1242
+ cursor.style.top = headPos.y + "px";
1243
+ cursor.style.left = (options.lineWrapping ? Math.min(headPos.x, lineSpace.offsetWidth) : headPos.x) + "px";
1244
+ cursor.style.display = "";
1245
+ selectionDiv.style.display = "none";
1246
+ } else {
1247
+ var sameLine = fromPos.y == toPos.y, fragment = document.createDocumentFragment();
1248
+ var clientWidth = lineSpace.clientWidth || lineSpace.offsetWidth;
1249
+ var clientHeight = lineSpace.clientHeight || lineSpace.offsetHeight;
1250
+ var add = function(left, top, right, height) {
1251
+ var rstyle = quirksMode ? "width: " + (!right ? clientWidth : clientWidth - right - left) + "px"
1252
+ : "right: " + right + "px";
1253
+ fragment.appendChild(elt("div", null, "CodeMirror-selected", "position: absolute; left: " + left +
1254
+ "px; top: " + top + "px; " + rstyle + "; height: " + height + "px"));
1255
+ };
1256
+ if (sel.from.ch && fromPos.y >= 0) {
1257
+ var right = sameLine ? clientWidth - toPos.x : 0;
1258
+ add(fromPos.x, fromPos.y, right, th);
1259
+ }
1260
+ var middleStart = Math.max(0, fromPos.y + (sel.from.ch ? th : 0));
1261
+ var middleHeight = Math.min(toPos.y, clientHeight) - middleStart;
1262
+ if (middleHeight > 0.2 * th)
1263
+ add(0, middleStart, 0, middleHeight);
1264
+ if ((!sameLine || !sel.from.ch) && toPos.y < clientHeight - .5 * th)
1265
+ add(0, toPos.y, clientWidth - toPos.x, th);
1266
+ removeChildrenAndAdd(selectionDiv, fragment);
1267
+ cursor.style.display = "none";
1268
+ selectionDiv.style.display = "";
1269
+ }
1270
+ }
1271
+
1272
+ function setShift(val) {
1273
+ if (val) shiftSelecting = shiftSelecting || (sel.inverted ? sel.to : sel.from);
1274
+ else shiftSelecting = null;
1275
+ }
1276
+ function setSelectionUser(from, to) {
1277
+ var sh = shiftSelecting && clipPos(shiftSelecting);
1278
+ if (sh) {
1279
+ if (posLess(sh, from)) from = sh;
1280
+ else if (posLess(to, sh)) to = sh;
1281
+ }
1282
+ setSelection(from, to);
1283
+ userSelChange = true;
1284
+ }
1285
+ // Update the selection. Last two args are only used by
1286
+ // updateLines, since they have to be expressed in the line
1287
+ // numbers before the update.
1288
+ function setSelection(from, to, oldFrom, oldTo) {
1289
+ goalColumn = null;
1290
+ if (oldFrom == null) {oldFrom = sel.from.line; oldTo = sel.to.line;}
1291
+ if (posEq(sel.from, from) && posEq(sel.to, to)) return;
1292
+ if (posLess(to, from)) {var tmp = to; to = from; from = tmp;}
1293
+
1294
+ // Skip over hidden lines.
1295
+ if (from.line != oldFrom) {
1296
+ var from1 = skipHidden(from, oldFrom, sel.from.ch);
1297
+ // If there is no non-hidden line left, force visibility on current line
1298
+ if (!from1) setLineHidden(from.line, false);
1299
+ else from = from1;
1300
+ }
1301
+ if (to.line != oldTo) to = skipHidden(to, oldTo, sel.to.ch);
1302
+
1303
+ if (posEq(from, to)) sel.inverted = false;
1304
+ else if (posEq(from, sel.to)) sel.inverted = false;
1305
+ else if (posEq(to, sel.from)) sel.inverted = true;
1306
+
1307
+ if (options.autoClearEmptyLines && posEq(sel.from, sel.to)) {
1308
+ var head = sel.inverted ? from : to;
1309
+ if (head.line != sel.from.line && sel.from.line < doc.size) {
1310
+ var oldLine = getLine(sel.from.line);
1311
+ if (/^\s+$/.test(oldLine.text))
1312
+ setTimeout(operation(function() {
1313
+ if (oldLine.parent && /^\s+$/.test(oldLine.text)) {
1314
+ var no = lineNo(oldLine);
1315
+ replaceRange("", {line: no, ch: 0}, {line: no, ch: oldLine.text.length});
1316
+ }
1317
+ }, 10));
1318
+ }
1319
+ }
1320
+
1321
+ sel.from = from; sel.to = to;
1322
+ selectionChanged = true;
1323
+ }
1324
+ function skipHidden(pos, oldLine, oldCh) {
1325
+ function getNonHidden(dir) {
1326
+ var lNo = pos.line + dir, end = dir == 1 ? doc.size : -1;
1327
+ while (lNo != end) {
1328
+ var line = getLine(lNo);
1329
+ if (!line.hidden) {
1330
+ var ch = pos.ch;
1331
+ if (toEnd || ch > oldCh || ch > line.text.length) ch = line.text.length;
1332
+ return {line: lNo, ch: ch};
1333
+ }
1334
+ lNo += dir;
1335
+ }
1336
+ }
1337
+ var line = getLine(pos.line);
1338
+ var toEnd = pos.ch == line.text.length && pos.ch != oldCh;
1339
+ if (!line.hidden) return pos;
1340
+ if (pos.line >= oldLine) return getNonHidden(1) || getNonHidden(-1);
1341
+ else return getNonHidden(-1) || getNonHidden(1);
1342
+ }
1343
+ function setCursor(line, ch, user) {
1344
+ var pos = clipPos({line: line, ch: ch || 0});
1345
+ (user ? setSelectionUser : setSelection)(pos, pos);
1346
+ }
1347
+
1348
+ function clipLine(n) {return Math.max(0, Math.min(n, doc.size-1));}
1349
+ function clipPos(pos) {
1350
+ if (pos.line < 0) return {line: 0, ch: 0};
1351
+ if (pos.line >= doc.size) return {line: doc.size-1, ch: getLine(doc.size-1).text.length};
1352
+ var ch = pos.ch, linelen = getLine(pos.line).text.length;
1353
+ if (ch == null || ch > linelen) return {line: pos.line, ch: linelen};
1354
+ else if (ch < 0) return {line: pos.line, ch: 0};
1355
+ else return pos;
1356
+ }
1357
+
1358
+ function findPosH(dir, unit) {
1359
+ var end = sel.inverted ? sel.from : sel.to, line = end.line, ch = end.ch;
1360
+ var lineObj = getLine(line);
1361
+ function findNextLine() {
1362
+ for (var l = line + dir, e = dir < 0 ? -1 : doc.size; l != e; l += dir) {
1363
+ var lo = getLine(l);
1364
+ if (!lo.hidden) { line = l; lineObj = lo; return true; }
1365
+ }
1366
+ }
1367
+ function moveOnce(boundToLine) {
1368
+ if (ch == (dir < 0 ? 0 : lineObj.text.length)) {
1369
+ if (!boundToLine && findNextLine()) ch = dir < 0 ? lineObj.text.length : 0;
1370
+ else return false;
1371
+ } else ch += dir;
1372
+ return true;
1373
+ }
1374
+ if (unit == "char") moveOnce();
1375
+ else if (unit == "column") moveOnce(true);
1376
+ else if (unit == "word") {
1377
+ var sawWord = false;
1378
+ for (;;) {
1379
+ if (dir < 0) if (!moveOnce()) break;
1380
+ if (isWordChar(lineObj.text.charAt(ch))) sawWord = true;
1381
+ else if (sawWord) {if (dir < 0) {dir = 1; moveOnce();} break;}
1382
+ if (dir > 0) if (!moveOnce()) break;
1383
+ }
1384
+ }
1385
+ return {line: line, ch: ch};
1386
+ }
1387
+ function moveH(dir, unit) {
1388
+ var pos = dir < 0 ? sel.from : sel.to;
1389
+ if (shiftSelecting || posEq(sel.from, sel.to)) pos = findPosH(dir, unit);
1390
+ setCursor(pos.line, pos.ch, true);
1391
+ }
1392
+ function deleteH(dir, unit) {
1393
+ if (!posEq(sel.from, sel.to)) replaceRange("", sel.from, sel.to);
1394
+ else if (dir < 0) replaceRange("", findPosH(dir, unit), sel.to);
1395
+ else replaceRange("", sel.from, findPosH(dir, unit));
1396
+ userSelChange = true;
1397
+ }
1398
+ function moveV(dir, unit) {
1399
+ var dist = 0, pos = localCoords(sel.inverted ? sel.from : sel.to, true);
1400
+ if (goalColumn != null) pos.x = goalColumn;
1401
+ if (unit == "page") {
1402
+ var screen = Math.min(scroller.clientHeight, window.innerHeight || document.documentElement.clientHeight);
1403
+ var target = coordsChar(pos.x, pos.y + screen * dir);
1404
+ } else if (unit == "line") {
1405
+ var th = textHeight();
1406
+ var target = coordsChar(pos.x, pos.y + .5 * th + dir * th);
1407
+ }
1408
+ if (unit == "page") scrollbar.scrollTop += localCoords(target, true).y - pos.y;
1409
+ setCursor(target.line, target.ch, true);
1410
+ goalColumn = pos.x;
1411
+ }
1412
+
1413
+ function findWordAt(pos) {
1414
+ var line = getLine(pos.line).text;
1415
+ var start = pos.ch, end = pos.ch;
1416
+ if (line) {
1417
+ if (pos.after === false || end == line.length) --start; else ++end;
1418
+ var startChar = line.charAt(start);
1419
+ var check = isWordChar(startChar) ? isWordChar :
1420
+ /\s/.test(startChar) ? function(ch) {return /\s/.test(ch);} :
1421
+ function(ch) {return !/\s/.test(ch) && !isWordChar(ch);};
1422
+ while (start > 0 && check(line.charAt(start - 1))) --start;
1423
+ while (end < line.length && check(line.charAt(end))) ++end;
1424
+ }
1425
+ return {from: {line: pos.line, ch: start}, to: {line: pos.line, ch: end}};
1426
+ }
1427
+ function selectLine(line) {
1428
+ setSelectionUser({line: line, ch: 0}, clipPos({line: line + 1, ch: 0}));
1429
+ }
1430
+ function indentSelected(mode) {
1431
+ if (posEq(sel.from, sel.to)) return indentLine(sel.from.line, mode);
1432
+ var e = sel.to.line - (sel.to.ch ? 0 : 1);
1433
+ for (var i = sel.from.line; i <= e; ++i) indentLine(i, mode);
1434
+ }
1435
+
1436
+ function indentLine(n, how) {
1437
+ if (!how) how = "add";
1438
+ if (how == "smart") {
1439
+ if (!mode.indent) how = "prev";
1440
+ else var state = getStateBefore(n);
1441
+ }
1442
+
1443
+ var line = getLine(n), curSpace = line.indentation(options.tabSize),
1444
+ curSpaceString = line.text.match(/^\s*/)[0], indentation;
1445
+ if (how == "smart") {
1446
+ indentation = mode.indent(state, line.text.slice(curSpaceString.length), line.text);
1447
+ if (indentation == Pass) how = "prev";
1448
+ }
1449
+ if (how == "prev") {
1450
+ if (n) indentation = getLine(n-1).indentation(options.tabSize);
1451
+ else indentation = 0;
1452
+ }
1453
+ else if (how == "add") indentation = curSpace + options.indentUnit;
1454
+ else if (how == "subtract") indentation = curSpace - options.indentUnit;
1455
+ indentation = Math.max(0, indentation);
1456
+ var diff = indentation - curSpace;
1457
+
1458
+ var indentString = "", pos = 0;
1459
+ if (options.indentWithTabs)
1460
+ for (var i = Math.floor(indentation / options.tabSize); i; --i) {pos += options.tabSize; indentString += "\t";}
1461
+ if (pos < indentation) indentString += spaceStr(indentation - pos);
1462
+
1463
+ if (indentString != curSpaceString)
1464
+ replaceRange(indentString, {line: n, ch: 0}, {line: n, ch: curSpaceString.length});
1465
+ }
1466
+
1467
+ function loadMode() {
1468
+ mode = CodeMirror.getMode(options, options.mode);
1469
+ doc.iter(0, doc.size, function(line) { line.stateAfter = null; });
1470
+ frontier = 0;
1471
+ startWorker(100);
1472
+ }
1473
+ function gutterChanged() {
1474
+ var visible = options.gutter || options.lineNumbers;
1475
+ gutter.style.display = visible ? "" : "none";
1476
+ if (visible) gutterDirty = true;
1477
+ else lineDiv.parentNode.style.marginLeft = 0;
1478
+ }
1479
+ function wrappingChanged(from, to) {
1480
+ if (options.lineWrapping) {
1481
+ wrapper.className += " CodeMirror-wrap";
1482
+ var perLine = scroller.clientWidth / charWidth() - 3;
1483
+ doc.iter(0, doc.size, function(line) {
1484
+ if (line.hidden) return;
1485
+ var guess = Math.ceil(line.text.length / perLine) || 1;
1486
+ if (guess != 1) updateLineHeight(line, guess);
1487
+ });
1488
+ lineSpace.style.minWidth = widthForcer.style.left = "";
1489
+ } else {
1490
+ wrapper.className = wrapper.className.replace(" CodeMirror-wrap", "");
1491
+ computeMaxLength();
1492
+ doc.iter(0, doc.size, function(line) {
1493
+ if (line.height != 1 && !line.hidden) updateLineHeight(line, 1);
1494
+ });
1495
+ }
1496
+ changes.push({from: 0, to: doc.size});
1497
+ }
1498
+ function themeChanged() {
1499
+ scroller.className = scroller.className.replace(/\s*cm-s-\S+/g, "") +
1500
+ options.theme.replace(/(^|\s)\s*/g, " cm-s-");
1501
+ }
1502
+ function keyMapChanged() {
1503
+ var style = keyMap[options.keyMap].style;
1504
+ wrapper.className = wrapper.className.replace(/\s*cm-keymap-\S+/g, "") +
1505
+ (style ? " cm-keymap-" + style : "");
1506
+ }
1507
+
1508
+ function TextMarker(type, style) { this.lines = []; this.type = type; if (style) this.style = style; }
1509
+ TextMarker.prototype.clear = operation(function() {
1510
+ var min = Infinity, max = -Infinity;
1511
+ for (var i = 0; i < this.lines.length; ++i) {
1512
+ var line = this.lines[i];
1513
+ var span = getMarkedSpanFor(line.markedSpans, this, true);
1514
+ if (span.from != null || span.to != null) {
1515
+ var lineN = lineNo(line);
1516
+ min = Math.min(min, lineN); max = Math.max(max, lineN);
1517
+ }
1518
+ }
1519
+ if (min != Infinity)
1520
+ changes.push({from: min, to: max + 1});
1521
+ this.lines.length = 0;
1522
+ });
1523
+ TextMarker.prototype.find = function() {
1524
+ var from, to;
1525
+ for (var i = 0; i < this.lines.length; ++i) {
1526
+ var line = this.lines[i];
1527
+ var span = getMarkedSpanFor(line.markedSpans, this);
1528
+ if (span.from != null || span.to != null) {
1529
+ var found = lineNo(line);
1530
+ if (span.from != null) from = {line: found, ch: span.from};
1531
+ if (span.to != null) to = {line: found, ch: span.to};
1532
+ }
1533
+ }
1534
+ if (this.type == "bookmark") return from;
1535
+ return from && {from: from, to: to};
1536
+ };
1537
+
1538
+ function markText(from, to, className, options) {
1539
+ from = clipPos(from); to = clipPos(to);
1540
+ var marker = new TextMarker("range", className);
1541
+ if (options) for (var opt in options) if (options.hasOwnProperty(opt))
1542
+ marker[opt] = options[opt];
1543
+ var curLine = from.line;
1544
+ doc.iter(curLine, to.line + 1, function(line) {
1545
+ var span = {from: curLine == from.line ? from.ch : null,
1546
+ to: curLine == to.line ? to.ch : null,
1547
+ marker: marker};
1548
+ (line.markedSpans || (line.markedSpans = [])).push(span);
1549
+ marker.lines.push(line);
1550
+ ++curLine;
1551
+ });
1552
+ changes.push({from: from.line, to: to.line + 1});
1553
+ return marker;
1554
+ }
1555
+
1556
+ function setBookmark(pos) {
1557
+ pos = clipPos(pos);
1558
+ var marker = new TextMarker("bookmark"), line = getLine(pos.line);
1559
+ var span = {from: pos.ch, to: pos.ch, marker: marker};
1560
+ (line.markedSpans || (line.markedSpans = [])).push(span);
1561
+ marker.lines.push(line);
1562
+ return marker;
1563
+ }
1564
+
1565
+ function findMarksAt(pos) {
1566
+ pos = clipPos(pos);
1567
+ var markers = [], spans = getLine(pos.line).markedSpans;
1568
+ if (spans) for (var i = 0; i < spans.length; ++i) {
1569
+ var span = spans[i];
1570
+ if ((span.from == null || span.from <= pos.ch) &&
1571
+ (span.to == null || span.to >= pos.ch))
1572
+ markers.push(span.marker);
1573
+ }
1574
+ return markers;
1575
+ }
1576
+
1577
+ function addGutterMarker(line, text, className) {
1578
+ if (typeof line == "number") line = getLine(clipLine(line));
1579
+ line.gutterMarker = {text: text, style: className};
1580
+ gutterDirty = true;
1581
+ return line;
1582
+ }
1583
+ function removeGutterMarker(line) {
1584
+ if (typeof line == "number") line = getLine(clipLine(line));
1585
+ line.gutterMarker = null;
1586
+ gutterDirty = true;
1587
+ }
1588
+
1589
+ function changeLine(handle, op) {
1590
+ var no = handle, line = handle;
1591
+ if (typeof handle == "number") line = getLine(clipLine(handle));
1592
+ else no = lineNo(handle);
1593
+ if (no == null) return null;
1594
+ if (op(line, no)) changes.push({from: no, to: no + 1});
1595
+ else return null;
1596
+ return line;
1597
+ }
1598
+ function setLineClass(handle, className, bgClassName) {
1599
+ return changeLine(handle, function(line) {
1600
+ if (line.className != className || line.bgClassName != bgClassName) {
1601
+ line.className = className;
1602
+ line.bgClassName = bgClassName;
1603
+ return true;
1604
+ }
1605
+ });
1606
+ }
1607
+ function setLineHidden(handle, hidden) {
1608
+ return changeLine(handle, function(line, no) {
1609
+ if (line.hidden != hidden) {
1610
+ line.hidden = hidden;
1611
+ if (!options.lineWrapping) {
1612
+ if (hidden && line.text.length == maxLine.text.length) {
1613
+ updateMaxLine = true;
1614
+ } else if (!hidden && line.text.length > maxLine.text.length) {
1615
+ maxLine = line; updateMaxLine = false;
1616
+ }
1617
+ }
1618
+ updateLineHeight(line, hidden ? 0 : 1);
1619
+ var fline = sel.from.line, tline = sel.to.line;
1620
+ if (hidden && (fline == no || tline == no)) {
1621
+ var from = fline == no ? skipHidden({line: fline, ch: 0}, fline, 0) : sel.from;
1622
+ var to = tline == no ? skipHidden({line: tline, ch: 0}, tline, 0) : sel.to;
1623
+ // Can't hide the last visible line, we'd have no place to put the cursor
1624
+ if (!to) return;
1625
+ setSelection(from, to);
1626
+ }
1627
+ return (gutterDirty = true);
1628
+ }
1629
+ });
1630
+ }
1631
+
1632
+ function lineInfo(line) {
1633
+ if (typeof line == "number") {
1634
+ if (!isLine(line)) return null;
1635
+ var n = line;
1636
+ line = getLine(line);
1637
+ if (!line) return null;
1638
+ } else {
1639
+ var n = lineNo(line);
1640
+ if (n == null) return null;
1641
+ }
1642
+ var marker = line.gutterMarker;
1643
+ return {line: n, handle: line, text: line.text, markerText: marker && marker.text,
1644
+ markerClass: marker && marker.style, lineClass: line.className, bgClass: line.bgClassName};
1645
+ }
1646
+
1647
+ function measureLine(line, ch) {
1648
+ if (ch == 0) return {top: 0, left: 0};
1649
+ var wbr = options.lineWrapping && ch < line.text.length &&
1650
+ spanAffectsWrapping.test(line.text.slice(ch - 1, ch + 1));
1651
+ var pre = lineContent(line, ch);
1652
+ removeChildrenAndAdd(measure, pre);
1653
+ var anchor = pre.anchor;
1654
+ var top = anchor.offsetTop, left = anchor.offsetLeft;
1655
+ // Older IEs report zero offsets for spans directly after a wrap
1656
+ if (ie && top == 0 && left == 0) {
1657
+ var backup = elt("span", "x");
1658
+ anchor.parentNode.insertBefore(backup, anchor.nextSibling);
1659
+ top = backup.offsetTop;
1660
+ }
1661
+ return {top: top, left: left};
1662
+ }
1663
+ function localCoords(pos, inLineWrap) {
1664
+ var x, lh = textHeight(), y = lh * (heightAtLine(doc, pos.line) - (inLineWrap ? displayOffset : 0));
1665
+ if (pos.ch == 0) x = 0;
1666
+ else {
1667
+ var sp = measureLine(getLine(pos.line), pos.ch);
1668
+ x = sp.left;
1669
+ if (options.lineWrapping) y += Math.max(0, sp.top);
1670
+ }
1671
+ return {x: x, y: y, yBot: y + lh};
1672
+ }
1673
+ // Coords must be lineSpace-local
1674
+ function coordsChar(x, y) {
1675
+ var th = textHeight(), cw = charWidth(), heightPos = displayOffset + Math.floor(y / th);
1676
+ if (heightPos < 0) return {line: 0, ch: 0};
1677
+ var lineNo = lineAtHeight(doc, heightPos);
1678
+ if (lineNo >= doc.size) return {line: doc.size - 1, ch: getLine(doc.size - 1).text.length};
1679
+ var lineObj = getLine(lineNo), text = lineObj.text;
1680
+ var tw = options.lineWrapping, innerOff = tw ? heightPos - heightAtLine(doc, lineNo) : 0;
1681
+ if (x <= 0 && innerOff == 0) return {line: lineNo, ch: 0};
1682
+ var wrongLine = false;
1683
+ function getX(len) {
1684
+ var sp = measureLine(lineObj, len);
1685
+ if (tw) {
1686
+ var off = Math.round(sp.top / th);
1687
+ wrongLine = off != innerOff;
1688
+ return Math.max(0, sp.left + (off - innerOff) * scroller.clientWidth);
1689
+ }
1690
+ return sp.left;
1691
+ }
1692
+ var from = 0, fromX = 0, to = text.length, toX;
1693
+ // Guess a suitable upper bound for our search.
1694
+ var estimated = Math.min(to, Math.ceil((x + innerOff * scroller.clientWidth * .9) / cw));
1695
+ for (;;) {
1696
+ var estX = getX(estimated);
1697
+ if (estX <= x && estimated < to) estimated = Math.min(to, Math.ceil(estimated * 1.2));
1698
+ else {toX = estX; to = estimated; break;}
1699
+ }
1700
+ if (x > toX) return {line: lineNo, ch: to};
1701
+ // Try to guess a suitable lower bound as well.
1702
+ estimated = Math.floor(to * 0.8); estX = getX(estimated);
1703
+ if (estX < x) {from = estimated; fromX = estX;}
1704
+ // Do a binary search between these bounds.
1705
+ for (;;) {
1706
+ if (to - from <= 1) {
1707
+ var after = x - fromX < toX - x;
1708
+ return {line: lineNo, ch: after ? from : to, after: after};
1709
+ }
1710
+ var middle = Math.ceil((from + to) / 2), middleX = getX(middle);
1711
+ if (middleX > x) {to = middle; toX = middleX; if (wrongLine) toX += 1000; }
1712
+ else {from = middle; fromX = middleX;}
1713
+ }
1714
+ }
1715
+ function pageCoords(pos) {
1716
+ var local = localCoords(pos, true), off = eltOffset(lineSpace);
1717
+ return {x: off.left + local.x, y: off.top + local.y, yBot: off.top + local.yBot};
1718
+ }
1719
+
1720
+ var cachedHeight, cachedHeightFor, measurePre;
1721
+ function textHeight() {
1722
+ if (measurePre == null) {
1723
+ measurePre = elt("pre");
1724
+ for (var i = 0; i < 49; ++i) {
1725
+ measurePre.appendChild(document.createTextNode("x"));
1726
+ measurePre.appendChild(elt("br"));
1727
+ }
1728
+ measurePre.appendChild(document.createTextNode("x"));
1729
+ }
1730
+ var offsetHeight = lineDiv.clientHeight;
1731
+ if (offsetHeight == cachedHeightFor) return cachedHeight;
1732
+ cachedHeightFor = offsetHeight;
1733
+ removeChildrenAndAdd(measure, measurePre.cloneNode(true));
1734
+ cachedHeight = measure.firstChild.offsetHeight / 50 || 1;
1735
+ removeChildren(measure);
1736
+ return cachedHeight;
1737
+ }
1738
+ var cachedWidth, cachedWidthFor = 0;
1739
+ function charWidth() {
1740
+ if (scroller.clientWidth == cachedWidthFor) return cachedWidth;
1741
+ cachedWidthFor = scroller.clientWidth;
1742
+ var anchor = elt("span", "x");
1743
+ var pre = elt("pre", [anchor]);
1744
+ removeChildrenAndAdd(measure, pre);
1745
+ return (cachedWidth = anchor.offsetWidth || 10);
1746
+ }
1747
+ function paddingTop() {return lineSpace.offsetTop;}
1748
+ function paddingLeft() {return lineSpace.offsetLeft;}
1749
+
1750
+ function posFromMouse(e, liberal) {
1751
+ var offW = eltOffset(scroller, true), x, y;
1752
+ // Fails unpredictably on IE[67] when mouse is dragged around quickly.
1753
+ try { x = e.clientX; y = e.clientY; } catch (e) { return null; }
1754
+ // This is a mess of a heuristic to try and determine whether a
1755
+ // scroll-bar was clicked or not, and to return null if one was
1756
+ // (and !liberal).
1757
+ if (!liberal && (x - offW.left > scroller.clientWidth || y - offW.top > scroller.clientHeight))
1758
+ return null;
1759
+ var offL = eltOffset(lineSpace, true);
1760
+ return coordsChar(x - offL.left, y - offL.top);
1761
+ }
1762
+ var detectingSelectAll;
1763
+ function onContextMenu(e) {
1764
+ var pos = posFromMouse(e), scrollPos = scrollbar.scrollTop;
1765
+ if (!pos || opera) return; // Opera is difficult.
1766
+ if (posEq(sel.from, sel.to) || posLess(pos, sel.from) || !posLess(pos, sel.to))
1767
+ operation(setCursor)(pos.line, pos.ch);
1768
+
1769
+ var oldCSS = input.style.cssText;
1770
+ inputDiv.style.position = "absolute";
1771
+ input.style.cssText = "position: fixed; width: 30px; height: 30px; top: " + (e.clientY - 5) +
1772
+ "px; left: " + (e.clientX - 5) + "px; z-index: 1000; background: white; " +
1773
+ "border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";
1774
+ focusInput();
1775
+ resetInput(true);
1776
+ // Adds "Select all" to context menu in FF
1777
+ if (posEq(sel.from, sel.to)) input.value = prevInput = " ";
1778
+
1779
+ function rehide() {
1780
+ inputDiv.style.position = "relative";
1781
+ input.style.cssText = oldCSS;
1782
+ if (ie_lt9) scrollbar.scrollTop = scrollPos;
1783
+ slowPoll();
1784
+
1785
+ // Try to detect the user choosing select-all
1786
+ if (input.selectionStart != null) {
1787
+ clearTimeout(detectingSelectAll);
1788
+ var extval = input.value = " " + (posEq(sel.from, sel.to) ? "" : input.value), i = 0;
1789
+ prevInput = " ";
1790
+ input.selectionStart = 1; input.selectionEnd = extval.length;
1791
+ detectingSelectAll = setTimeout(function poll(){
1792
+ if (prevInput == " " && input.selectionStart == 0)
1793
+ operation(commands.selectAll)(instance);
1794
+ else if (i++ < 10) detectingSelectAll = setTimeout(poll, 500);
1795
+ else resetInput();
1796
+ }, 200);
1797
+ }
1798
+ }
1799
+
1800
+ if (gecko) {
1801
+ e_stop(e);
1802
+ var mouseup = connect(window, "mouseup", function() {
1803
+ mouseup();
1804
+ setTimeout(rehide, 20);
1805
+ }, true);
1806
+ } else {
1807
+ setTimeout(rehide, 50);
1808
+ }
1809
+ }
1810
+
1811
+ // Cursor-blinking
1812
+ function restartBlink() {
1813
+ clearInterval(blinker);
1814
+ var on = true;
1815
+ cursor.style.visibility = "";
1816
+ blinker = setInterval(function() {
1817
+ cursor.style.visibility = (on = !on) ? "" : "hidden";
1818
+ }, options.cursorBlinkRate);
1819
+ }
1820
+
1821
+ var matching = {"(": ")>", ")": "(<", "[": "]>", "]": "[<", "{": "}>", "}": "{<"};
1822
+ function matchBrackets(autoclear) {
1823
+ var head = sel.inverted ? sel.from : sel.to, line = getLine(head.line), pos = head.ch - 1;
1824
+ var match = (pos >= 0 && matching[line.text.charAt(pos)]) || matching[line.text.charAt(++pos)];
1825
+ if (!match) return;
1826
+ var ch = match.charAt(0), forward = match.charAt(1) == ">", d = forward ? 1 : -1, st = line.styles;
1827
+ for (var off = pos + 1, i = 0, e = st.length; i < e; i+=2)
1828
+ if ((off -= st[i].length) <= 0) {var style = st[i+1]; break;}
1829
+
1830
+ var stack = [line.text.charAt(pos)], re = /[(){}[\]]/;
1831
+ function scan(line, from, to) {
1832
+ if (!line.text) return;
1833
+ var st = line.styles, pos = forward ? 0 : line.text.length - 1, cur;
1834
+ for (var i = forward ? 0 : st.length - 2, e = forward ? st.length : -2; i != e; i += 2*d) {
1835
+ var text = st[i];
1836
+ if (st[i+1] != style) {pos += d * text.length; continue;}
1837
+ for (var j = forward ? 0 : text.length - 1, te = forward ? text.length : -1; j != te; j += d, pos+=d) {
1838
+ if (pos >= from && pos < to && re.test(cur = text.charAt(j))) {
1839
+ var match = matching[cur];
1840
+ if (match.charAt(1) == ">" == forward) stack.push(cur);
1841
+ else if (stack.pop() != match.charAt(0)) return {pos: pos, match: false};
1842
+ else if (!stack.length) return {pos: pos, match: true};
1843
+ }
1844
+ }
1845
+ }
1846
+ }
1847
+ for (var i = head.line, e = forward ? Math.min(i + 100, doc.size) : Math.max(-1, i - 100); i != e; i+=d) {
1848
+ var line = getLine(i), first = i == head.line;
1849
+ var found = scan(line, first && forward ? pos + 1 : 0, first && !forward ? pos : line.text.length);
1850
+ if (found) break;
1851
+ }
1852
+ if (!found) found = {pos: null, match: false};
1853
+ var style = found.match ? "CodeMirror-matchingbracket" : "CodeMirror-nonmatchingbracket";
1854
+ var one = markText({line: head.line, ch: pos}, {line: head.line, ch: pos+1}, style),
1855
+ two = found.pos != null && markText({line: i, ch: found.pos}, {line: i, ch: found.pos + 1}, style);
1856
+ var clear = operation(function(){one.clear(); two && two.clear();});
1857
+ if (autoclear) setTimeout(clear, 800);
1858
+ else bracketHighlighted = clear;
1859
+ }
1860
+
1861
+ // Finds the line to start with when starting a parse. Tries to
1862
+ // find a line with a stateAfter, so that it can start with a
1863
+ // valid state. If that fails, it returns the line with the
1864
+ // smallest indentation, which tends to need the least context to
1865
+ // parse correctly.
1866
+ function findStartLine(n) {
1867
+ var minindent, minline;
1868
+ for (var search = n, lim = n - 40; search > lim; --search) {
1869
+ if (search == 0) return 0;
1870
+ var line = getLine(search-1);
1871
+ if (line.stateAfter) return search;
1872
+ var indented = line.indentation(options.tabSize);
1873
+ if (minline == null || minindent > indented) {
1874
+ minline = search - 1;
1875
+ minindent = indented;
1876
+ }
1877
+ }
1878
+ return minline;
1879
+ }
1880
+ function getStateBefore(n) {
1881
+ var pos = findStartLine(n), state = pos && getLine(pos-1).stateAfter;
1882
+ if (!state) state = startState(mode);
1883
+ else state = copyState(mode, state);
1884
+ doc.iter(pos, n, function(line) {
1885
+ line.process(mode, state, options.tabSize);
1886
+ line.stateAfter = (pos == n - 1 || pos % 5 == 0) ? copyState(mode, state) : null;
1887
+ });
1888
+ return state;
1889
+ }
1890
+ function highlightWorker() {
1891
+ if (frontier >= showingTo) return;
1892
+ var end = +new Date + options.workTime, state = copyState(mode, getStateBefore(frontier));
1893
+ var startFrontier = frontier;
1894
+ doc.iter(frontier, showingTo, function(line) {
1895
+ if (frontier >= showingFrom) { // Visible
1896
+ line.highlight(mode, state, options.tabSize);
1897
+ line.stateAfter = copyState(mode, state);
1898
+ } else {
1899
+ line.process(mode, state, options.tabSize);
1900
+ line.stateAfter = frontier % 5 == 0 ? copyState(mode, state) : null;
1901
+ }
1902
+ ++frontier;
1903
+ if (+new Date > end) {
1904
+ startWorker(options.workDelay);
1905
+ return true;
1906
+ }
1907
+ });
1908
+ if (showingTo > startFrontier && frontier >= showingFrom)
1909
+ operation(function() {changes.push({from: startFrontier, to: frontier});})();
1910
+ }
1911
+ function startWorker(time) {
1912
+ if (frontier < showingTo)
1913
+ highlight.set(time, highlightWorker);
1914
+ }
1915
+
1916
+ // Operations are used to wrap changes in such a way that each
1917
+ // change won't have to update the cursor and display (which would
1918
+ // be awkward, slow, and error-prone), but instead updates are
1919
+ // batched and then all combined and executed at once.
1920
+ function startOperation() {
1921
+ updateInput = userSelChange = textChanged = null;
1922
+ changes = []; selectionChanged = false; callbacks = [];
1923
+ }
1924
+ function endOperation() {
1925
+ if (updateMaxLine) computeMaxLength();
1926
+ if (maxLineChanged && !options.lineWrapping) {
1927
+ var cursorWidth = widthForcer.offsetWidth, left = measureLine(maxLine, maxLine.text.length).left;
1928
+ if (!ie_lt8) {
1929
+ widthForcer.style.left = left + "px";
1930
+ lineSpace.style.minWidth = (left + cursorWidth) + "px";
1931
+ }
1932
+ maxLineChanged = false;
1933
+ }
1934
+ var newScrollPos, updated;
1935
+ if (selectionChanged) {
1936
+ var coords = calculateCursorCoords();
1937
+ newScrollPos = calculateScrollPos(coords.x, coords.y, coords.x, coords.yBot);
1938
+ }
1939
+ if (changes.length || newScrollPos && newScrollPos.scrollTop != null)
1940
+ updated = updateDisplay(changes, true, newScrollPos && newScrollPos.scrollTop);
1941
+ if (!updated) {
1942
+ if (selectionChanged) updateSelection();
1943
+ if (gutterDirty) updateGutter();
1944
+ }
1945
+ if (newScrollPos) scrollCursorIntoView();
1946
+ if (selectionChanged) restartBlink();
1947
+
1948
+ if (focused && (updateInput === true || (updateInput !== false && selectionChanged)))
1949
+ resetInput(userSelChange);
1950
+
1951
+ if (selectionChanged && options.matchBrackets)
1952
+ setTimeout(operation(function() {
1953
+ if (bracketHighlighted) {bracketHighlighted(); bracketHighlighted = null;}
1954
+ if (posEq(sel.from, sel.to)) matchBrackets(false);
1955
+ }), 20);
1956
+ var sc = selectionChanged, cbs = callbacks; // these can be reset by callbacks
1957
+ if (textChanged && options.onChange && instance)
1958
+ options.onChange(instance, textChanged);
1959
+ if (sc && options.onCursorActivity)
1960
+ options.onCursorActivity(instance);
1961
+ for (var i = 0; i < cbs.length; ++i) cbs[i](instance);
1962
+ if (updated && options.onUpdate) options.onUpdate(instance);
1963
+ }
1964
+ var nestedOperation = 0;
1965
+ function operation(f) {
1966
+ return function() {
1967
+ if (!nestedOperation++) startOperation();
1968
+ try {var result = f.apply(this, arguments);}
1969
+ finally {if (!--nestedOperation) endOperation();}
1970
+ return result;
1971
+ };
1972
+ }
1973
+
1974
+ function compoundChange(f) {
1975
+ history.startCompound();
1976
+ try { return f(); } finally { history.endCompound(); }
1977
+ }
1978
+
1979
+ for (var ext in extensions)
1980
+ if (extensions.propertyIsEnumerable(ext) &&
1981
+ !instance.propertyIsEnumerable(ext))
1982
+ instance[ext] = extensions[ext];
1983
+ return instance;
1984
+ } // (end of function CodeMirror)
1985
+
1986
+ // The default configuration options.
1987
+ CodeMirror.defaults = {
1988
+ value: "",
1989
+ mode: null,
1990
+ theme: "default",
1991
+ indentUnit: 2,
1992
+ indentWithTabs: false,
1993
+ smartIndent: true,
1994
+ tabSize: 4,
1995
+ keyMap: "default",
1996
+ extraKeys: null,
1997
+ electricChars: true,
1998
+ autoClearEmptyLines: false,
1999
+ onKeyEvent: null,
2000
+ onDragEvent: null,
2001
+ lineWrapping: false,
2002
+ lineNumbers: false,
2003
+ gutter: false,
2004
+ fixedGutter: false,
2005
+ firstLineNumber: 1,
2006
+ readOnly: false,
2007
+ dragDrop: true,
2008
+ onChange: null,
2009
+ onCursorActivity: null,
2010
+ onViewportChange: null,
2011
+ onGutterClick: null,
2012
+ onUpdate: null,
2013
+ onFocus: null, onBlur: null, onScroll: null,
2014
+ matchBrackets: false,
2015
+ cursorBlinkRate: 530,
2016
+ workTime: 100,
2017
+ workDelay: 200,
2018
+ pollInterval: 100,
2019
+ undoDepth: 40,
2020
+ tabindex: null,
2021
+ autofocus: null,
2022
+ lineNumberFormatter: function(integer) { return integer; }
2023
+ };
2024
+
2025
+ var ios = /AppleWebKit/.test(navigator.userAgent) && /Mobile\/\w+/.test(navigator.userAgent);
2026
+ var mac = ios || /Mac/.test(navigator.platform);
2027
+ var win = /Win/.test(navigator.platform);
2028
+
2029
+ // Known modes, by name and by MIME
2030
+ var modes = CodeMirror.modes = {}, mimeModes = CodeMirror.mimeModes = {};
2031
+ CodeMirror.defineMode = function(name, mode) {
2032
+ if (!CodeMirror.defaults.mode && name != "null") CodeMirror.defaults.mode = name;
2033
+ if (arguments.length > 2) {
2034
+ mode.dependencies = [];
2035
+ for (var i = 2; i < arguments.length; ++i) mode.dependencies.push(arguments[i]);
2036
+ }
2037
+ modes[name] = mode;
2038
+ };
2039
+ CodeMirror.defineMIME = function(mime, spec) {
2040
+ mimeModes[mime] = spec;
2041
+ };
2042
+ CodeMirror.resolveMode = function(spec) {
2043
+ if (typeof spec == "string" && mimeModes.hasOwnProperty(spec))
2044
+ spec = mimeModes[spec];
2045
+ else if (typeof spec == "string" && /^[\w\-]+\/[\w\-]+\+xml$/.test(spec))
2046
+ return CodeMirror.resolveMode("application/xml");
2047
+ if (typeof spec == "string") return {name: spec};
2048
+ else return spec || {name: "null"};
2049
+ };
2050
+ CodeMirror.getMode = function(options, spec) {
2051
+ var spec = CodeMirror.resolveMode(spec);
2052
+ var mfactory = modes[spec.name];
2053
+ if (!mfactory) return CodeMirror.getMode(options, "text/plain");
2054
+ var modeObj = mfactory(options, spec);
2055
+ if (modeExtensions.hasOwnProperty(spec.name)) {
2056
+ var exts = modeExtensions[spec.name];
2057
+ for (var prop in exts) if (exts.hasOwnProperty(prop)) modeObj[prop] = exts[prop];
2058
+ }
2059
+ modeObj.name = spec.name;
2060
+ return modeObj;
2061
+ };
2062
+ CodeMirror.listModes = function() {
2063
+ var list = [];
2064
+ for (var m in modes)
2065
+ if (modes.propertyIsEnumerable(m)) list.push(m);
2066
+ return list;
2067
+ };
2068
+ CodeMirror.listMIMEs = function() {
2069
+ var list = [];
2070
+ for (var m in mimeModes)
2071
+ if (mimeModes.propertyIsEnumerable(m)) list.push({mime: m, mode: mimeModes[m]});
2072
+ return list;
2073
+ };
2074
+
2075
+ var extensions = CodeMirror.extensions = {};
2076
+ CodeMirror.defineExtension = function(name, func) {
2077
+ extensions[name] = func;
2078
+ };
2079
+
2080
+ var modeExtensions = CodeMirror.modeExtensions = {};
2081
+ CodeMirror.extendMode = function(mode, properties) {
2082
+ var exts = modeExtensions.hasOwnProperty(mode) ? modeExtensions[mode] : (modeExtensions[mode] = {});
2083
+ for (var prop in properties) if (properties.hasOwnProperty(prop))
2084
+ exts[prop] = properties[prop];
2085
+ };
2086
+
2087
+ var commands = CodeMirror.commands = {
2088
+ selectAll: function(cm) {cm.setSelection({line: 0, ch: 0}, {line: cm.lineCount() - 1});},
2089
+ killLine: function(cm) {
2090
+ var from = cm.getCursor(true), to = cm.getCursor(false), sel = !posEq(from, to);
2091
+ if (!sel && cm.getLine(from.line).length == from.ch) cm.replaceRange("", from, {line: from.line + 1, ch: 0});
2092
+ else cm.replaceRange("", from, sel ? to : {line: from.line});
2093
+ },
2094
+ deleteLine: function(cm) {var l = cm.getCursor().line; cm.replaceRange("", {line: l, ch: 0}, {line: l});},
2095
+ undo: function(cm) {cm.undo();},
2096
+ redo: function(cm) {cm.redo();},
2097
+ goDocStart: function(cm) {cm.setCursor(0, 0, true);},
2098
+ goDocEnd: function(cm) {cm.setSelection({line: cm.lineCount() - 1}, null, true);},
2099
+ goLineStart: function(cm) {cm.setCursor(cm.getCursor().line, 0, true);},
2100
+ goLineStartSmart: function(cm) {
2101
+ var cur = cm.getCursor();
2102
+ var text = cm.getLine(cur.line), firstNonWS = Math.max(0, text.search(/\S/));
2103
+ cm.setCursor(cur.line, cur.ch <= firstNonWS && cur.ch ? 0 : firstNonWS, true);
2104
+ },
2105
+ goLineEnd: function(cm) {cm.setSelection({line: cm.getCursor().line}, null, true);},
2106
+ goLineUp: function(cm) {cm.moveV(-1, "line");},
2107
+ goLineDown: function(cm) {cm.moveV(1, "line");},
2108
+ goPageUp: function(cm) {cm.moveV(-1, "page");},
2109
+ goPageDown: function(cm) {cm.moveV(1, "page");},
2110
+ goCharLeft: function(cm) {cm.moveH(-1, "char");},
2111
+ goCharRight: function(cm) {cm.moveH(1, "char");},
2112
+ goColumnLeft: function(cm) {cm.moveH(-1, "column");},
2113
+ goColumnRight: function(cm) {cm.moveH(1, "column");},
2114
+ goWordLeft: function(cm) {cm.moveH(-1, "word");},
2115
+ goWordRight: function(cm) {cm.moveH(1, "word");},
2116
+ delCharLeft: function(cm) {cm.deleteH(-1, "char");},
2117
+ delCharRight: function(cm) {cm.deleteH(1, "char");},
2118
+ delWordLeft: function(cm) {cm.deleteH(-1, "word");},
2119
+ delWordRight: function(cm) {cm.deleteH(1, "word");},
2120
+ indentAuto: function(cm) {cm.indentSelection("smart");},
2121
+ indentMore: function(cm) {cm.indentSelection("add");},
2122
+ indentLess: function(cm) {cm.indentSelection("subtract");},
2123
+ insertTab: function(cm) {cm.replaceSelection("\t", "end");},
2124
+ defaultTab: function(cm) {
2125
+ if (cm.somethingSelected()) cm.indentSelection("add");
2126
+ else cm.replaceSelection("\t", "end");
2127
+ },
2128
+ transposeChars: function(cm) {
2129
+ var cur = cm.getCursor(), line = cm.getLine(cur.line);
2130
+ if (cur.ch > 0 && cur.ch < line.length - 1)
2131
+ cm.replaceRange(line.charAt(cur.ch) + line.charAt(cur.ch - 1),
2132
+ {line: cur.line, ch: cur.ch - 1}, {line: cur.line, ch: cur.ch + 1});
2133
+ },
2134
+ newlineAndIndent: function(cm) {
2135
+ cm.replaceSelection("\n", "end");
2136
+ cm.indentLine(cm.getCursor().line);
2137
+ },
2138
+ toggleOverwrite: function(cm) {cm.toggleOverwrite();}
2139
+ };
2140
+
2141
+ var keyMap = CodeMirror.keyMap = {};
2142
+ keyMap.basic = {
2143
+ "Left": "goCharLeft", "Right": "goCharRight", "Up": "goLineUp", "Down": "goLineDown",
2144
+ "End": "goLineEnd", "Home": "goLineStartSmart", "PageUp": "goPageUp", "PageDown": "goPageDown",
2145
+ "Delete": "delCharRight", "Backspace": "delCharLeft", "Tab": "defaultTab", "Shift-Tab": "indentAuto",
2146
+ "Enter": "newlineAndIndent", "Insert": "toggleOverwrite"
2147
+ };
2148
+ // Note that the save and find-related commands aren't defined by
2149
+ // default. Unknown commands are simply ignored.
2150
+ keyMap.pcDefault = {
2151
+ "Ctrl-A": "selectAll", "Ctrl-D": "deleteLine", "Ctrl-Z": "undo", "Shift-Ctrl-Z": "redo", "Ctrl-Y": "redo",
2152
+ "Ctrl-Home": "goDocStart", "Alt-Up": "goDocStart", "Ctrl-End": "goDocEnd", "Ctrl-Down": "goDocEnd",
2153
+ "Ctrl-Left": "goWordLeft", "Ctrl-Right": "goWordRight", "Alt-Left": "goLineStart", "Alt-Right": "goLineEnd",
2154
+ "Ctrl-Backspace": "delWordLeft", "Ctrl-Delete": "delWordRight", "Ctrl-S": "save", "Ctrl-F": "find",
2155
+ "Ctrl-G": "findNext", "Shift-Ctrl-G": "findPrev", "Shift-Ctrl-F": "replace", "Shift-Ctrl-R": "replaceAll",
2156
+ "Ctrl-[": "indentLess", "Ctrl-]": "indentMore",
2157
+ fallthrough: "basic"
2158
+ };
2159
+ keyMap.macDefault = {
2160
+ "Cmd-A": "selectAll", "Cmd-D": "deleteLine", "Cmd-Z": "undo", "Shift-Cmd-Z": "redo", "Cmd-Y": "redo",
2161
+ "Cmd-Up": "goDocStart", "Cmd-End": "goDocEnd", "Cmd-Down": "goDocEnd", "Alt-Left": "goWordLeft",
2162
+ "Alt-Right": "goWordRight", "Cmd-Left": "goLineStart", "Cmd-Right": "goLineEnd", "Alt-Backspace": "delWordLeft",
2163
+ "Ctrl-Alt-Backspace": "delWordRight", "Alt-Delete": "delWordRight", "Cmd-S": "save", "Cmd-F": "find",
2164
+ "Cmd-G": "findNext", "Shift-Cmd-G": "findPrev", "Cmd-Alt-F": "replace", "Shift-Cmd-Alt-F": "replaceAll",
2165
+ "Cmd-[": "indentLess", "Cmd-]": "indentMore",
2166
+ fallthrough: ["basic", "emacsy"]
2167
+ };
2168
+ keyMap["default"] = mac ? keyMap.macDefault : keyMap.pcDefault;
2169
+ keyMap.emacsy = {
2170
+ "Ctrl-F": "goCharRight", "Ctrl-B": "goCharLeft", "Ctrl-P": "goLineUp", "Ctrl-N": "goLineDown",
2171
+ "Alt-F": "goWordRight", "Alt-B": "goWordLeft", "Ctrl-A": "goLineStart", "Ctrl-E": "goLineEnd",
2172
+ "Ctrl-V": "goPageUp", "Shift-Ctrl-V": "goPageDown", "Ctrl-D": "delCharRight", "Ctrl-H": "delCharLeft",
2173
+ "Alt-D": "delWordRight", "Alt-Backspace": "delWordLeft", "Ctrl-K": "killLine", "Ctrl-T": "transposeChars"
2174
+ };
2175
+
2176
+ function getKeyMap(val) {
2177
+ if (typeof val == "string") return keyMap[val];
2178
+ else return val;
2179
+ }
2180
+ function lookupKey(name, extraMap, map, handle, stop) {
2181
+ function lookup(map) {
2182
+ map = getKeyMap(map);
2183
+ var found = map[name];
2184
+ if (found === false) {
2185
+ if (stop) stop();
2186
+ return true;
2187
+ }
2188
+ if (found != null && handle(found)) return true;
2189
+ if (map.nofallthrough) {
2190
+ if (stop) stop();
2191
+ return true;
2192
+ }
2193
+ var fallthrough = map.fallthrough;
2194
+ if (fallthrough == null) return false;
2195
+ if (Object.prototype.toString.call(fallthrough) != "[object Array]")
2196
+ return lookup(fallthrough);
2197
+ for (var i = 0, e = fallthrough.length; i < e; ++i) {
2198
+ if (lookup(fallthrough[i])) return true;
2199
+ }
2200
+ return false;
2201
+ }
2202
+ if (extraMap && lookup(extraMap)) return true;
2203
+ return lookup(map);
2204
+ }
2205
+ function isModifierKey(event) {
2206
+ var name = keyNames[e_prop(event, "keyCode")];
2207
+ return name == "Ctrl" || name == "Alt" || name == "Shift" || name == "Mod";
2208
+ }
2209
+
2210
+ CodeMirror.fromTextArea = function(textarea, options) {
2211
+ if (!options) options = {};
2212
+ options.value = textarea.value;
2213
+ if (!options.tabindex && textarea.tabindex)
2214
+ options.tabindex = textarea.tabindex;
2215
+ // Set autofocus to true if this textarea is focused, or if it has
2216
+ // autofocus and no other element is focused.
2217
+ if (options.autofocus == null) {
2218
+ var hasFocus = document.body;
2219
+ // doc.activeElement occasionally throws on IE
2220
+ try { hasFocus = document.activeElement; } catch(e) {}
2221
+ options.autofocus = hasFocus == textarea ||
2222
+ textarea.getAttribute("autofocus") != null && hasFocus == document.body;
2223
+ }
2224
+
2225
+ function save() {textarea.value = instance.getValue();}
2226
+ if (textarea.form) {
2227
+ // Deplorable hack to make the submit method do the right thing.
2228
+ var rmSubmit = connect(textarea.form, "submit", save, true);
2229
+ if (typeof textarea.form.submit == "function") {
2230
+ var realSubmit = textarea.form.submit;
2231
+ textarea.form.submit = function wrappedSubmit() {
2232
+ save();
2233
+ textarea.form.submit = realSubmit;
2234
+ textarea.form.submit();
2235
+ textarea.form.submit = wrappedSubmit;
2236
+ };
2237
+ }
2238
+ }
2239
+
2240
+ textarea.style.display = "none";
2241
+ var instance = CodeMirror(function(node) {
2242
+ textarea.parentNode.insertBefore(node, textarea.nextSibling);
2243
+ }, options);
2244
+ instance.save = save;
2245
+ instance.getTextArea = function() { return textarea; };
2246
+ instance.toTextArea = function() {
2247
+ save();
2248
+ textarea.parentNode.removeChild(instance.getWrapperElement());
2249
+ textarea.style.display = "";
2250
+ if (textarea.form) {
2251
+ rmSubmit();
2252
+ if (typeof textarea.form.submit == "function")
2253
+ textarea.form.submit = realSubmit;
2254
+ }
2255
+ };
2256
+ return instance;
2257
+ };
2258
+
2259
+ var gecko = /gecko\/\d{7}/i.test(navigator.userAgent);
2260
+ var ie = /MSIE \d/.test(navigator.userAgent);
2261
+ var ie_lt8 = /MSIE [1-7]\b/.test(navigator.userAgent);
2262
+ var ie_lt9 = /MSIE [1-8]\b/.test(navigator.userAgent);
2263
+ var quirksMode = ie && document.documentMode == 5;
2264
+ var webkit = /WebKit\//.test(navigator.userAgent);
2265
+ var chrome = /Chrome\//.test(navigator.userAgent);
2266
+ var opera = /Opera\//.test(navigator.userAgent);
2267
+ var safari = /Apple Computer/.test(navigator.vendor);
2268
+ var khtml = /KHTML\//.test(navigator.userAgent);
2269
+ var mac_geLion = /Mac OS X 10\D([7-9]|\d\d)\D/.test(navigator.userAgent);
2270
+
2271
+ // Utility functions for working with state. Exported because modes
2272
+ // sometimes need to do this.
2273
+ function copyState(mode, state) {
2274
+ if (state === true) return state;
2275
+ if (mode.copyState) return mode.copyState(state);
2276
+ var nstate = {};
2277
+ for (var n in state) {
2278
+ var val = state[n];
2279
+ if (val instanceof Array) val = val.concat([]);
2280
+ nstate[n] = val;
2281
+ }
2282
+ return nstate;
2283
+ }
2284
+ CodeMirror.copyState = copyState;
2285
+ function startState(mode, a1, a2) {
2286
+ return mode.startState ? mode.startState(a1, a2) : true;
2287
+ }
2288
+ CodeMirror.startState = startState;
2289
+ CodeMirror.innerMode = function(mode, state) {
2290
+ while (mode.innerMode) {
2291
+ var info = mode.innerMode(state);
2292
+ state = info.state;
2293
+ mode = info.mode;
2294
+ }
2295
+ return info || {mode: mode, state: state};
2296
+ };
2297
+
2298
+ // The character stream used by a mode's parser.
2299
+ function StringStream(string, tabSize) {
2300
+ this.pos = this.start = 0;
2301
+ this.string = string;
2302
+ this.tabSize = tabSize || 8;
2303
+ }
2304
+ StringStream.prototype = {
2305
+ eol: function() {return this.pos >= this.string.length;},
2306
+ sol: function() {return this.pos == 0;},
2307
+ peek: function() {return this.string.charAt(this.pos) || undefined;},
2308
+ next: function() {
2309
+ if (this.pos < this.string.length)
2310
+ return this.string.charAt(this.pos++);
2311
+ },
2312
+ eat: function(match) {
2313
+ var ch = this.string.charAt(this.pos);
2314
+ if (typeof match == "string") var ok = ch == match;
2315
+ else var ok = ch && (match.test ? match.test(ch) : match(ch));
2316
+ if (ok) {++this.pos; return ch;}
2317
+ },
2318
+ eatWhile: function(match) {
2319
+ var start = this.pos;
2320
+ while (this.eat(match)){}
2321
+ return this.pos > start;
2322
+ },
2323
+ eatSpace: function() {
2324
+ var start = this.pos;
2325
+ while (/[\s\u00a0]/.test(this.string.charAt(this.pos))) ++this.pos;
2326
+ return this.pos > start;
2327
+ },
2328
+ skipToEnd: function() {this.pos = this.string.length;},
2329
+ skipTo: function(ch) {
2330
+ var found = this.string.indexOf(ch, this.pos);
2331
+ if (found > -1) {this.pos = found; return true;}
2332
+ },
2333
+ backUp: function(n) {this.pos -= n;},
2334
+ column: function() {return countColumn(this.string, this.start, this.tabSize);},
2335
+ indentation: function() {return countColumn(this.string, null, this.tabSize);},
2336
+ match: function(pattern, consume, caseInsensitive) {
2337
+ if (typeof pattern == "string") {
2338
+ var cased = function(str) {return caseInsensitive ? str.toLowerCase() : str;};
2339
+ if (cased(this.string).indexOf(cased(pattern), this.pos) == this.pos) {
2340
+ if (consume !== false) this.pos += pattern.length;
2341
+ return true;
2342
+ }
2343
+ } else {
2344
+ var match = this.string.slice(this.pos).match(pattern);
2345
+ if (match && match.index > 0) return null;
2346
+ if (match && consume !== false) this.pos += match[0].length;
2347
+ return match;
2348
+ }
2349
+ },
2350
+ current: function(){return this.string.slice(this.start, this.pos);}
2351
+ };
2352
+ CodeMirror.StringStream = StringStream;
2353
+
2354
+ function MarkedSpan(from, to, marker) {
2355
+ this.from = from; this.to = to; this.marker = marker;
2356
+ }
2357
+
2358
+ function getMarkedSpanFor(spans, marker, del) {
2359
+ if (spans) for (var i = 0; i < spans.length; ++i) {
2360
+ var span = spans[i];
2361
+ if (span.marker == marker) {
2362
+ if (del) spans.splice(i, 1);
2363
+ return span;
2364
+ }
2365
+ }
2366
+ }
2367
+
2368
+ function markedSpansBefore(old, startCh, endCh) {
2369
+ if (old) for (var i = 0, nw; i < old.length; ++i) {
2370
+ var span = old[i], marker = span.marker;
2371
+ var startsBefore = span.from == null || (marker.inclusiveLeft ? span.from <= startCh : span.from < startCh);
2372
+ if (startsBefore || marker.type == "bookmark" && span.from == startCh && span.from != endCh) {
2373
+ var endsAfter = span.to == null || (marker.inclusiveRight ? span.to >= startCh : span.to > startCh);
2374
+ (nw || (nw = [])).push({from: span.from,
2375
+ to: endsAfter ? null : span.to,
2376
+ marker: marker});
2377
+ }
2378
+ }
2379
+ return nw;
2380
+ }
2381
+
2382
+ function markedSpansAfter(old, endCh) {
2383
+ if (old) for (var i = 0, nw; i < old.length; ++i) {
2384
+ var span = old[i], marker = span.marker;
2385
+ var endsAfter = span.to == null || (marker.inclusiveRight ? span.to >= endCh : span.to > endCh);
2386
+ if (endsAfter || marker.type == "bookmark" && span.from == endCh) {
2387
+ var startsBefore = span.from == null || (marker.inclusiveLeft ? span.from <= endCh : span.from < endCh);
2388
+ (nw || (nw = [])).push({from: startsBefore ? null : span.from - endCh,
2389
+ to: span.to == null ? null : span.to - endCh,
2390
+ marker: marker});
2391
+ }
2392
+ }
2393
+ return nw;
2394
+ }
2395
+
2396
+ function updateMarkedSpans(oldFirst, oldLast, startCh, endCh, newText) {
2397
+ if (!oldFirst && !oldLast) return newText;
2398
+ // Get the spans that 'stick out' on both sides
2399
+ var first = markedSpansBefore(oldFirst, startCh);
2400
+ var last = markedSpansAfter(oldLast, endCh);
2401
+
2402
+ // Next, merge those two ends
2403
+ var sameLine = newText.length == 1, offset = lst(newText).length + (sameLine ? startCh : 0);
2404
+ if (first) {
2405
+ // Fix up .to properties of first
2406
+ for (var i = 0; i < first.length; ++i) {
2407
+ var span = first[i];
2408
+ if (span.to == null) {
2409
+ var found = getMarkedSpanFor(last, span.marker);
2410
+ if (!found) span.to = startCh;
2411
+ else if (sameLine) span.to = found.to == null ? null : found.to + offset;
2412
+ }
2413
+ }
2414
+ }
2415
+ if (last) {
2416
+ // Fix up .from in last (or move them into first in case of sameLine)
2417
+ for (var i = 0; i < last.length; ++i) {
2418
+ var span = last[i];
2419
+ if (span.to != null) span.to += offset;
2420
+ if (span.from == null) {
2421
+ var found = getMarkedSpanFor(first, span.marker);
2422
+ if (!found) {
2423
+ span.from = offset;
2424
+ if (sameLine) (first || (first = [])).push(span);
2425
+ }
2426
+ } else {
2427
+ span.from += offset;
2428
+ if (sameLine) (first || (first = [])).push(span);
2429
+ }
2430
+ }
2431
+ }
2432
+
2433
+ var newMarkers = [newHL(newText[0], first)];
2434
+ if (!sameLine) {
2435
+ // Fill gap with whole-line-spans
2436
+ var gap = newText.length - 2, gapMarkers;
2437
+ if (gap > 0 && first)
2438
+ for (var i = 0; i < first.length; ++i)
2439
+ if (first[i].to == null)
2440
+ (gapMarkers || (gapMarkers = [])).push({from: null, to: null, marker: first[i].marker});
2441
+ for (var i = 0; i < gap; ++i)
2442
+ newMarkers.push(newHL(newText[i+1], gapMarkers));
2443
+ newMarkers.push(newHL(lst(newText), last));
2444
+ }
2445
+ return newMarkers;
2446
+ }
2447
+
2448
+ // hl stands for history-line, a data structure that can be either a
2449
+ // string (line without markers) or a {text, markedSpans} object.
2450
+ function hlText(val) { return typeof val == "string" ? val : val.text; }
2451
+ function hlSpans(val) { return typeof val == "string" ? null : val.markedSpans; }
2452
+ function newHL(text, spans) { return spans ? {text: text, markedSpans: spans} : text; }
2453
+
2454
+ function detachMarkedSpans(line) {
2455
+ var spans = line.markedSpans;
2456
+ if (!spans) return;
2457
+ for (var i = 0; i < spans.length; ++i) {
2458
+ var lines = spans[i].marker.lines;
2459
+ var ix = indexOf(lines, line);
2460
+ lines.splice(ix, 1);
2461
+ }
2462
+ line.markedSpans = null;
2463
+ }
2464
+
2465
+ function attachMarkedSpans(line, spans) {
2466
+ if (!spans) return;
2467
+ for (var i = 0; i < spans.length; ++i)
2468
+ var marker = spans[i].marker.lines.push(line);
2469
+ line.markedSpans = spans;
2470
+ }
2471
+
2472
+ // When measuring the position of the end of a line, different
2473
+ // browsers require different approaches. If an empty span is added,
2474
+ // many browsers report bogus offsets. Of those, some (Webkit,
2475
+ // recent IE) will accept a space without moving the whole span to
2476
+ // the next line when wrapping it, others work with a zero-width
2477
+ // space.
2478
+ var eolSpanContent = " ";
2479
+ if (gecko || (ie && !ie_lt8)) eolSpanContent = "\u200b";
2480
+ else if (opera) eolSpanContent = "";
2481
+
2482
+ // Line objects. These hold state related to a line, including
2483
+ // highlighting info (the styles array).
2484
+ function Line(text, markedSpans) {
2485
+ this.text = text;
2486
+ this.height = 1;
2487
+ attachMarkedSpans(this, markedSpans);
2488
+ }
2489
+ Line.prototype = {
2490
+ update: function(text, markedSpans) {
2491
+ this.text = text;
2492
+ this.stateAfter = this.styles = null;
2493
+ detachMarkedSpans(this);
2494
+ attachMarkedSpans(this, markedSpans);
2495
+ },
2496
+ // Run the given mode's parser over a line, update the styles
2497
+ // array, which contains alternating fragments of text and CSS
2498
+ // classes.
2499
+ highlight: function(mode, state, tabSize) {
2500
+ var stream = new StringStream(this.text, tabSize), st = this.styles || (this.styles = []);
2501
+ var pos = st.length = 0;
2502
+ if (this.text == "" && mode.blankLine) mode.blankLine(state);
2503
+ while (!stream.eol()) {
2504
+ var style = mode.token(stream, state), substr = stream.current();
2505
+ stream.start = stream.pos;
2506
+ if (pos && st[pos-1] == style) {
2507
+ st[pos-2] += substr;
2508
+ } else if (substr) {
2509
+ st[pos++] = substr; st[pos++] = style;
2510
+ }
2511
+ // Give up when line is ridiculously long
2512
+ if (stream.pos > 5000) {
2513
+ st[pos++] = this.text.slice(stream.pos); st[pos++] = null;
2514
+ break;
2515
+ }
2516
+ }
2517
+ },
2518
+ process: function(mode, state, tabSize) {
2519
+ var stream = new StringStream(this.text, tabSize);
2520
+ if (this.text == "" && mode.blankLine) mode.blankLine(state);
2521
+ while (!stream.eol() && stream.pos <= 5000) {
2522
+ mode.token(stream, state);
2523
+ stream.start = stream.pos;
2524
+ }
2525
+ },
2526
+ // Fetch the parser token for a given character. Useful for hacks
2527
+ // that want to inspect the mode state (say, for completion).
2528
+ getTokenAt: function(mode, state, tabSize, ch) {
2529
+ var txt = this.text, stream = new StringStream(txt, tabSize);
2530
+ while (stream.pos < ch && !stream.eol()) {
2531
+ stream.start = stream.pos;
2532
+ var style = mode.token(stream, state);
2533
+ }
2534
+ return {start: stream.start,
2535
+ end: stream.pos,
2536
+ string: stream.current(),
2537
+ className: style || null,
2538
+ state: state};
2539
+ },
2540
+ indentation: function(tabSize) {return countColumn(this.text, null, tabSize);},
2541
+ // Produces an HTML fragment for the line, taking selection,
2542
+ // marking, and highlighting into account.
2543
+ getContent: function(tabSize, wrapAt, compensateForWrapping) {
2544
+ var first = true, col = 0, specials = /[\t\u0000-\u0019\u200b\u2028\u2029\uFEFF]/g;
2545
+ var pre = elt("pre");
2546
+ function span_(html, text, style) {
2547
+ if (!text) return;
2548
+ // Work around a bug where, in some compat modes, IE ignores leading spaces
2549
+ if (first && ie && text.charAt(0) == " ") text = "\u00a0" + text.slice(1);
2550
+ first = false;
2551
+ if (!specials.test(text)) {
2552
+ col += text.length;
2553
+ var content = document.createTextNode(text);
2554
+ } else {
2555
+ var content = document.createDocumentFragment(), pos = 0;
2556
+ while (true) {
2557
+ specials.lastIndex = pos;
2558
+ var m = specials.exec(text);
2559
+ var skipped = m ? m.index - pos : text.length - pos;
2560
+ if (skipped) {
2561
+ content.appendChild(document.createTextNode(text.slice(pos, pos + skipped)));
2562
+ col += skipped;
2563
+ }
2564
+ if (!m) break;
2565
+ pos += skipped + 1;
2566
+ if (m[0] == "\t") {
2567
+ var tabWidth = tabSize - col % tabSize;
2568
+ content.appendChild(elt("span", spaceStr(tabWidth), "cm-tab"));
2569
+ col += tabWidth;
2570
+ } else {
2571
+ var token = elt("span", "\u2022", "cm-invalidchar");
2572
+ token.title = "\\u" + m[0].charCodeAt(0).toString(16);
2573
+ content.appendChild(token);
2574
+ col += 1;
2575
+ }
2576
+ }
2577
+ }
2578
+ if (style) html.appendChild(elt("span", [content], style));
2579
+ else html.appendChild(content);
2580
+ }
2581
+ var span = span_;
2582
+ if (wrapAt != null) {
2583
+ var outPos = 0, anchor = pre.anchor = elt("span");
2584
+ span = function(html, text, style) {
2585
+ var l = text.length;
2586
+ if (wrapAt >= outPos && wrapAt < outPos + l) {
2587
+ if (wrapAt > outPos) {
2588
+ span_(html, text.slice(0, wrapAt - outPos), style);
2589
+ // See comment at the definition of spanAffectsWrapping
2590
+ if (compensateForWrapping) html.appendChild(elt("wbr"));
2591
+ }
2592
+ html.appendChild(anchor);
2593
+ var cut = wrapAt - outPos;
2594
+ span_(anchor, opera ? text.slice(cut, cut + 1) : text.slice(cut), style);
2595
+ if (opera) span_(html, text.slice(cut + 1), style);
2596
+ wrapAt--;
2597
+ outPos += l;
2598
+ } else {
2599
+ outPos += l;
2600
+ span_(html, text, style);
2601
+ if (outPos == wrapAt && outPos == len) {
2602
+ setTextContent(anchor, eolSpanContent);
2603
+ html.appendChild(anchor);
2604
+ }
2605
+ // Stop outputting HTML when gone sufficiently far beyond measure
2606
+ else if (outPos > wrapAt + 10 && /\s/.test(text)) span = function(){};
2607
+ }
2608
+ };
2609
+ }
2610
+
2611
+ var st = this.styles, allText = this.text, marked = this.markedSpans;
2612
+ var len = allText.length;
2613
+ function styleToClass(style) {
2614
+ if (!style) return null;
2615
+ return "cm-" + style.replace(/ +/g, " cm-");
2616
+ }
2617
+ if (!allText && wrapAt == null) {
2618
+ span(pre, " ");
2619
+ } else if (!marked || !marked.length) {
2620
+ for (var i = 0, ch = 0; ch < len; i+=2) {
2621
+ var str = st[i], style = st[i+1], l = str.length;
2622
+ if (ch + l > len) str = str.slice(0, len - ch);
2623
+ ch += l;
2624
+ span(pre, str, styleToClass(style));
2625
+ }
2626
+ } else {
2627
+ marked.sort(function(a, b) { return a.from - b.from; });
2628
+ var pos = 0, i = 0, text = "", style, sg = 0;
2629
+ var nextChange = marked[0].from || 0, marks = [], markpos = 0;
2630
+ var advanceMarks = function() {
2631
+ var m;
2632
+ while (markpos < marked.length &&
2633
+ ((m = marked[markpos]).from == pos || m.from == null)) {
2634
+ if (m.marker.type == "range") marks.push(m);
2635
+ ++markpos;
2636
+ }
2637
+ nextChange = markpos < marked.length ? marked[markpos].from : Infinity;
2638
+ for (var i = 0; i < marks.length; ++i) {
2639
+ var to = marks[i].to;
2640
+ if (to == null) to = Infinity;
2641
+ if (to == pos) marks.splice(i--, 1);
2642
+ else nextChange = Math.min(to, nextChange);
2643
+ }
2644
+ };
2645
+ var m = 0;
2646
+ while (pos < len) {
2647
+ if (nextChange == pos) advanceMarks();
2648
+ var upto = Math.min(len, nextChange);
2649
+ while (true) {
2650
+ if (text) {
2651
+ var end = pos + text.length;
2652
+ var appliedStyle = style;
2653
+ for (var j = 0; j < marks.length; ++j) {
2654
+ var mark = marks[j];
2655
+ appliedStyle = (appliedStyle ? appliedStyle + " " : "") + mark.marker.style;
2656
+ if (mark.marker.endStyle && mark.to === Math.min(end, upto)) appliedStyle += " " + mark.marker.endStyle;
2657
+ if (mark.marker.startStyle && mark.from === pos) appliedStyle += " " + mark.marker.startStyle;
2658
+ }
2659
+ span(pre, end > upto ? text.slice(0, upto - pos) : text, appliedStyle);
2660
+ if (end >= upto) {text = text.slice(upto - pos); pos = upto; break;}
2661
+ pos = end;
2662
+ }
2663
+ text = st[i++]; style = styleToClass(st[i++]);
2664
+ }
2665
+ }
2666
+ }
2667
+ return pre;
2668
+ },
2669
+ cleanUp: function() {
2670
+ this.parent = null;
2671
+ detachMarkedSpans(this);
2672
+ }
2673
+ };
2674
+
2675
+ // Data structure that holds the sequence of lines.
2676
+ function LeafChunk(lines) {
2677
+ this.lines = lines;
2678
+ this.parent = null;
2679
+ for (var i = 0, e = lines.length, height = 0; i < e; ++i) {
2680
+ lines[i].parent = this;
2681
+ height += lines[i].height;
2682
+ }
2683
+ this.height = height;
2684
+ }
2685
+ LeafChunk.prototype = {
2686
+ chunkSize: function() { return this.lines.length; },
2687
+ remove: function(at, n, callbacks) {
2688
+ for (var i = at, e = at + n; i < e; ++i) {
2689
+ var line = this.lines[i];
2690
+ this.height -= line.height;
2691
+ line.cleanUp();
2692
+ if (line.handlers)
2693
+ for (var j = 0; j < line.handlers.length; ++j) callbacks.push(line.handlers[j]);
2694
+ }
2695
+ this.lines.splice(at, n);
2696
+ },
2697
+ collapse: function(lines) {
2698
+ lines.splice.apply(lines, [lines.length, 0].concat(this.lines));
2699
+ },
2700
+ insertHeight: function(at, lines, height) {
2701
+ this.height += height;
2702
+ this.lines = this.lines.slice(0, at).concat(lines).concat(this.lines.slice(at));
2703
+ for (var i = 0, e = lines.length; i < e; ++i) lines[i].parent = this;
2704
+ },
2705
+ iterN: function(at, n, op) {
2706
+ for (var e = at + n; at < e; ++at)
2707
+ if (op(this.lines[at])) return true;
2708
+ }
2709
+ };
2710
+ function BranchChunk(children) {
2711
+ this.children = children;
2712
+ var size = 0, height = 0;
2713
+ for (var i = 0, e = children.length; i < e; ++i) {
2714
+ var ch = children[i];
2715
+ size += ch.chunkSize(); height += ch.height;
2716
+ ch.parent = this;
2717
+ }
2718
+ this.size = size;
2719
+ this.height = height;
2720
+ this.parent = null;
2721
+ }
2722
+ BranchChunk.prototype = {
2723
+ chunkSize: function() { return this.size; },
2724
+ remove: function(at, n, callbacks) {
2725
+ this.size -= n;
2726
+ for (var i = 0; i < this.children.length; ++i) {
2727
+ var child = this.children[i], sz = child.chunkSize();
2728
+ if (at < sz) {
2729
+ var rm = Math.min(n, sz - at), oldHeight = child.height;
2730
+ child.remove(at, rm, callbacks);
2731
+ this.height -= oldHeight - child.height;
2732
+ if (sz == rm) { this.children.splice(i--, 1); child.parent = null; }
2733
+ if ((n -= rm) == 0) break;
2734
+ at = 0;
2735
+ } else at -= sz;
2736
+ }
2737
+ if (this.size - n < 25) {
2738
+ var lines = [];
2739
+ this.collapse(lines);
2740
+ this.children = [new LeafChunk(lines)];
2741
+ this.children[0].parent = this;
2742
+ }
2743
+ },
2744
+ collapse: function(lines) {
2745
+ for (var i = 0, e = this.children.length; i < e; ++i) this.children[i].collapse(lines);
2746
+ },
2747
+ insert: function(at, lines) {
2748
+ var height = 0;
2749
+ for (var i = 0, e = lines.length; i < e; ++i) height += lines[i].height;
2750
+ this.insertHeight(at, lines, height);
2751
+ },
2752
+ insertHeight: function(at, lines, height) {
2753
+ this.size += lines.length;
2754
+ this.height += height;
2755
+ for (var i = 0, e = this.children.length; i < e; ++i) {
2756
+ var child = this.children[i], sz = child.chunkSize();
2757
+ if (at <= sz) {
2758
+ child.insertHeight(at, lines, height);
2759
+ if (child.lines && child.lines.length > 50) {
2760
+ while (child.lines.length > 50) {
2761
+ var spilled = child.lines.splice(child.lines.length - 25, 25);
2762
+ var newleaf = new LeafChunk(spilled);
2763
+ child.height -= newleaf.height;
2764
+ this.children.splice(i + 1, 0, newleaf);
2765
+ newleaf.parent = this;
2766
+ }
2767
+ this.maybeSpill();
2768
+ }
2769
+ break;
2770
+ }
2771
+ at -= sz;
2772
+ }
2773
+ },
2774
+ maybeSpill: function() {
2775
+ if (this.children.length <= 10) return;
2776
+ var me = this;
2777
+ do {
2778
+ var spilled = me.children.splice(me.children.length - 5, 5);
2779
+ var sibling = new BranchChunk(spilled);
2780
+ if (!me.parent) { // Become the parent node
2781
+ var copy = new BranchChunk(me.children);
2782
+ copy.parent = me;
2783
+ me.children = [copy, sibling];
2784
+ me = copy;
2785
+ } else {
2786
+ me.size -= sibling.size;
2787
+ me.height -= sibling.height;
2788
+ var myIndex = indexOf(me.parent.children, me);
2789
+ me.parent.children.splice(myIndex + 1, 0, sibling);
2790
+ }
2791
+ sibling.parent = me.parent;
2792
+ } while (me.children.length > 10);
2793
+ me.parent.maybeSpill();
2794
+ },
2795
+ iter: function(from, to, op) { this.iterN(from, to - from, op); },
2796
+ iterN: function(at, n, op) {
2797
+ for (var i = 0, e = this.children.length; i < e; ++i) {
2798
+ var child = this.children[i], sz = child.chunkSize();
2799
+ if (at < sz) {
2800
+ var used = Math.min(n, sz - at);
2801
+ if (child.iterN(at, used, op)) return true;
2802
+ if ((n -= used) == 0) break;
2803
+ at = 0;
2804
+ } else at -= sz;
2805
+ }
2806
+ }
2807
+ };
2808
+
2809
+ function getLineAt(chunk, n) {
2810
+ while (!chunk.lines) {
2811
+ for (var i = 0;; ++i) {
2812
+ var child = chunk.children[i], sz = child.chunkSize();
2813
+ if (n < sz) { chunk = child; break; }
2814
+ n -= sz;
2815
+ }
2816
+ }
2817
+ return chunk.lines[n];
2818
+ }
2819
+ function lineNo(line) {
2820
+ if (line.parent == null) return null;
2821
+ var cur = line.parent, no = indexOf(cur.lines, line);
2822
+ for (var chunk = cur.parent; chunk; cur = chunk, chunk = chunk.parent) {
2823
+ for (var i = 0, e = chunk.children.length; ; ++i) {
2824
+ if (chunk.children[i] == cur) break;
2825
+ no += chunk.children[i].chunkSize();
2826
+ }
2827
+ }
2828
+ return no;
2829
+ }
2830
+ function lineAtHeight(chunk, h) {
2831
+ var n = 0;
2832
+ outer: do {
2833
+ for (var i = 0, e = chunk.children.length; i < e; ++i) {
2834
+ var child = chunk.children[i], ch = child.height;
2835
+ if (h < ch) { chunk = child; continue outer; }
2836
+ h -= ch;
2837
+ n += child.chunkSize();
2838
+ }
2839
+ return n;
2840
+ } while (!chunk.lines);
2841
+ for (var i = 0, e = chunk.lines.length; i < e; ++i) {
2842
+ var line = chunk.lines[i], lh = line.height;
2843
+ if (h < lh) break;
2844
+ h -= lh;
2845
+ }
2846
+ return n + i;
2847
+ }
2848
+ function heightAtLine(chunk, n) {
2849
+ var h = 0;
2850
+ outer: do {
2851
+ for (var i = 0, e = chunk.children.length; i < e; ++i) {
2852
+ var child = chunk.children[i], sz = child.chunkSize();
2853
+ if (n < sz) { chunk = child; continue outer; }
2854
+ n -= sz;
2855
+ h += child.height;
2856
+ }
2857
+ return h;
2858
+ } while (!chunk.lines);
2859
+ for (var i = 0; i < n; ++i) h += chunk.lines[i].height;
2860
+ return h;
2861
+ }
2862
+
2863
+ // The history object 'chunks' changes that are made close together
2864
+ // and at almost the same time into bigger undoable units.
2865
+ function History() {
2866
+ this.time = 0;
2867
+ this.done = []; this.undone = [];
2868
+ this.compound = 0;
2869
+ this.closed = false;
2870
+ }
2871
+ History.prototype = {
2872
+ addChange: function(start, added, old) {
2873
+ this.undone.length = 0;
2874
+ var time = +new Date, cur = lst(this.done), last = cur && lst(cur);
2875
+ var dtime = time - this.time;
2876
+
2877
+ if (this.compound && cur && !this.closed) {
2878
+ cur.push({start: start, added: added, old: old});
2879
+ } else if (dtime > 400 || !last || this.closed ||
2880
+ last.start > start + old.length || last.start + last.added < start) {
2881
+ this.done.push([{start: start, added: added, old: old}]);
2882
+ this.closed = false;
2883
+ } else {
2884
+ var startBefore = Math.max(0, last.start - start),
2885
+ endAfter = Math.max(0, (start + old.length) - (last.start + last.added));
2886
+ for (var i = startBefore; i > 0; --i) last.old.unshift(old[i - 1]);
2887
+ for (var i = endAfter; i > 0; --i) last.old.push(old[old.length - i]);
2888
+ if (startBefore) last.start = start;
2889
+ last.added += added - (old.length - startBefore - endAfter);
2890
+ }
2891
+ this.time = time;
2892
+ },
2893
+ startCompound: function() {
2894
+ if (!this.compound++) this.closed = true;
2895
+ },
2896
+ endCompound: function() {
2897
+ if (!--this.compound) this.closed = true;
2898
+ }
2899
+ };
2900
+
2901
+ function stopMethod() {e_stop(this);}
2902
+ // Ensure an event has a stop method.
2903
+ function addStop(event) {
2904
+ if (!event.stop) event.stop = stopMethod;
2905
+ return event;
2906
+ }
2907
+
2908
+ function e_preventDefault(e) {
2909
+ if (e.preventDefault) e.preventDefault();
2910
+ else e.returnValue = false;
2911
+ }
2912
+ function e_stopPropagation(e) {
2913
+ if (e.stopPropagation) e.stopPropagation();
2914
+ else e.cancelBubble = true;
2915
+ }
2916
+ function e_stop(e) {e_preventDefault(e); e_stopPropagation(e);}
2917
+ CodeMirror.e_stop = e_stop;
2918
+ CodeMirror.e_preventDefault = e_preventDefault;
2919
+ CodeMirror.e_stopPropagation = e_stopPropagation;
2920
+
2921
+ function e_target(e) {return e.target || e.srcElement;}
2922
+ function e_button(e) {
2923
+ var b = e.which;
2924
+ if (b == null) {
2925
+ if (e.button & 1) b = 1;
2926
+ else if (e.button & 2) b = 3;
2927
+ else if (e.button & 4) b = 2;
2928
+ }
2929
+ if (mac && e.ctrlKey && b == 1) b = 3;
2930
+ return b;
2931
+ }
2932
+
2933
+ // Allow 3rd-party code to override event properties by adding an override
2934
+ // object to an event object.
2935
+ function e_prop(e, prop) {
2936
+ var overridden = e.override && e.override.hasOwnProperty(prop);
2937
+ return overridden ? e.override[prop] : e[prop];
2938
+ }
2939
+
2940
+ // Event handler registration. If disconnect is true, it'll return a
2941
+ // function that unregisters the handler.
2942
+ function connect(node, type, handler, disconnect) {
2943
+ if (typeof node.addEventListener == "function") {
2944
+ node.addEventListener(type, handler, false);
2945
+ if (disconnect) return function() {node.removeEventListener(type, handler, false);};
2946
+ } else {
2947
+ var wrapHandler = function(event) {handler(event || window.event);};
2948
+ node.attachEvent("on" + type, wrapHandler);
2949
+ if (disconnect) return function() {node.detachEvent("on" + type, wrapHandler);};
2950
+ }
2951
+ }
2952
+ CodeMirror.connect = connect;
2953
+
2954
+ function Delayed() {this.id = null;}
2955
+ Delayed.prototype = {set: function(ms, f) {clearTimeout(this.id); this.id = setTimeout(f, ms);}};
2956
+
2957
+ var Pass = CodeMirror.Pass = {toString: function(){return "CodeMirror.Pass";}};
2958
+
2959
+ // Detect drag-and-drop
2960
+ var dragAndDrop = function() {
2961
+ // There is *some* kind of drag-and-drop support in IE6-8, but I
2962
+ // couldn't get it to work yet.
2963
+ if (ie_lt9) return false;
2964
+ var div = elt('div');
2965
+ return "draggable" in div || "dragDrop" in div;
2966
+ }();
2967
+
2968
+ // Feature-detect whether newlines in textareas are converted to \r\n
2969
+ var lineSep = function () {
2970
+ var te = elt("textarea");
2971
+ te.value = "foo\nbar";
2972
+ if (te.value.indexOf("\r") > -1) return "\r\n";
2973
+ return "\n";
2974
+ }();
2975
+
2976
+ // For a reason I have yet to figure out, some browsers disallow
2977
+ // word wrapping between certain characters *only* if a new inline
2978
+ // element is started between them. This makes it hard to reliably
2979
+ // measure the position of things, since that requires inserting an
2980
+ // extra span. This terribly fragile set of regexps matches the
2981
+ // character combinations that suffer from this phenomenon on the
2982
+ // various browsers.
2983
+ var spanAffectsWrapping = /^$/; // Won't match any two-character string
2984
+ if (gecko) spanAffectsWrapping = /$'/;
2985
+ else if (safari) spanAffectsWrapping = /\-[^ \-?]|\?[^ !'\"\),.\-\/:;\?\]\}]/;
2986
+ else if (chrome) spanAffectsWrapping = /\-[^ \-\.?]|\?[^ \-\.?\]\}:;!'\"\),\/]|[\.!\"#&%\)*+,:;=>\]|\}~][\(\{\[<]|\$'/;
2987
+
2988
+ // Counts the column offset in a string, taking tabs into account.
2989
+ // Used mostly to find indentation.
2990
+ function countColumn(string, end, tabSize) {
2991
+ if (end == null) {
2992
+ end = string.search(/[^\s\u00a0]/);
2993
+ if (end == -1) end = string.length;
2994
+ }
2995
+ for (var i = 0, n = 0; i < end; ++i) {
2996
+ if (string.charAt(i) == "\t") n += tabSize - (n % tabSize);
2997
+ else ++n;
2998
+ }
2999
+ return n;
3000
+ }
3001
+
3002
+ function eltOffset(node, screen) {
3003
+ // Take the parts of bounding client rect that we are interested in so we are able to edit if need be,
3004
+ // since the returned value cannot be changed externally (they are kept in sync as the element moves within the page)
3005
+ try { var box = node.getBoundingClientRect(); box = { top: box.top, left: box.left }; }
3006
+ catch(e) { box = {top: 0, left: 0}; }
3007
+ if (!screen) {
3008
+ // Get the toplevel scroll, working around browser differences.
3009
+ if (window.pageYOffset == null) {
3010
+ var t = document.documentElement || document.body.parentNode;
3011
+ if (t.scrollTop == null) t = document.body;
3012
+ box.top += t.scrollTop; box.left += t.scrollLeft;
3013
+ } else {
3014
+ box.top += window.pageYOffset; box.left += window.pageXOffset;
3015
+ }
3016
+ }
3017
+ return box;
3018
+ }
3019
+
3020
+ function eltText(node) {
3021
+ return node.textContent || node.innerText || node.nodeValue || "";
3022
+ }
3023
+
3024
+ var spaceStrs = [""];
3025
+ function spaceStr(n) {
3026
+ while (spaceStrs.length <= n)
3027
+ spaceStrs.push(lst(spaceStrs) + " ");
3028
+ return spaceStrs[n];
3029
+ }
3030
+
3031
+ function lst(arr) { return arr[arr.length-1]; }
3032
+
3033
+ function selectInput(node) {
3034
+ if (ios) { // Mobile Safari apparently has a bug where select() is broken.
3035
+ node.selectionStart = 0;
3036
+ node.selectionEnd = node.value.length;
3037
+ } else node.select();
3038
+ }
3039
+
3040
+ // Operations on {line, ch} objects.
3041
+ function posEq(a, b) {return a.line == b.line && a.ch == b.ch;}
3042
+ function posLess(a, b) {return a.line < b.line || (a.line == b.line && a.ch < b.ch);}
3043
+ function copyPos(x) {return {line: x.line, ch: x.ch};}
3044
+
3045
+ function elt(tag, content, className, style) {
3046
+ var e = document.createElement(tag);
3047
+ if (className) e.className = className;
3048
+ if (style) e.style.cssText = style;
3049
+ if (typeof content == "string") setTextContent(e, content);
3050
+ else if (content) for (var i = 0; i < content.length; ++i) e.appendChild(content[i]);
3051
+ return e;
3052
+ }
3053
+ function removeChildren(e) {
3054
+ e.innerHTML = "";
3055
+ return e;
3056
+ }
3057
+ function removeChildrenAndAdd(parent, e) {
3058
+ removeChildren(parent).appendChild(e);
3059
+ }
3060
+ function setTextContent(e, str) {
3061
+ if (ie_lt9) {
3062
+ e.innerHTML = "";
3063
+ e.appendChild(document.createTextNode(str));
3064
+ } else e.textContent = str;
3065
+ }
3066
+
3067
+ // Used to position the cursor after an undo/redo by finding the
3068
+ // last edited character.
3069
+ function editEnd(from, to) {
3070
+ if (!to) return 0;
3071
+ if (!from) return to.length;
3072
+ for (var i = from.length, j = to.length; i >= 0 && j >= 0; --i, --j)
3073
+ if (from.charAt(i) != to.charAt(j)) break;
3074
+ return j + 1;
3075
+ }
3076
+
3077
+ function indexOf(collection, elt) {
3078
+ if (collection.indexOf) return collection.indexOf(elt);
3079
+ for (var i = 0, e = collection.length; i < e; ++i)
3080
+ if (collection[i] == elt) return i;
3081
+ return -1;
3082
+ }
3083
+ function isWordChar(ch) {
3084
+ return /\w/.test(ch) || ch.toUpperCase() != ch.toLowerCase();
3085
+ }
3086
+
3087
+ // See if "".split is the broken IE version, if so, provide an
3088
+ // alternative way to split lines.
3089
+ var splitLines = "\n\nb".split(/\n/).length != 3 ? function(string) {
3090
+ var pos = 0, result = [], l = string.length;
3091
+ while (pos <= l) {
3092
+ var nl = string.indexOf("\n", pos);
3093
+ if (nl == -1) nl = string.length;
3094
+ var line = string.slice(pos, string.charAt(nl - 1) == "\r" ? nl - 1 : nl);
3095
+ var rt = line.indexOf("\r");
3096
+ if (rt != -1) {
3097
+ result.push(line.slice(0, rt));
3098
+ pos += rt + 1;
3099
+ } else {
3100
+ result.push(line);
3101
+ pos = nl + 1;
3102
+ }
3103
+ }
3104
+ return result;
3105
+ } : function(string){return string.split(/\r\n?|\n/);};
3106
+ CodeMirror.splitLines = splitLines;
3107
+
3108
+ var hasSelection = window.getSelection ? function(te) {
3109
+ try { return te.selectionStart != te.selectionEnd; }
3110
+ catch(e) { return false; }
3111
+ } : function(te) {
3112
+ try {var range = te.ownerDocument.selection.createRange();}
3113
+ catch(e) {}
3114
+ if (!range || range.parentElement() != te) return false;
3115
+ return range.compareEndPoints("StartToEnd", range) != 0;
3116
+ };
3117
+
3118
+ CodeMirror.defineMode("null", function() {
3119
+ return {token: function(stream) {stream.skipToEnd();}};
3120
+ });
3121
+ CodeMirror.defineMIME("text/plain", "null");
3122
+
3123
+ var keyNames = {3: "Enter", 8: "Backspace", 9: "Tab", 13: "Enter", 16: "Shift", 17: "Ctrl", 18: "Alt",
3124
+ 19: "Pause", 20: "CapsLock", 27: "Esc", 32: "Space", 33: "PageUp", 34: "PageDown", 35: "End",
3125
+ 36: "Home", 37: "Left", 38: "Up", 39: "Right", 40: "Down", 44: "PrintScrn", 45: "Insert",
3126
+ 46: "Delete", 59: ";", 91: "Mod", 92: "Mod", 93: "Mod", 109: "-", 107: "=", 127: "Delete",
3127
+ 186: ";", 187: "=", 188: ",", 189: "-", 190: ".", 191: "/", 192: "`", 219: "[", 220: "\\",
3128
+ 221: "]", 222: "'", 63276: "PageUp", 63277: "PageDown", 63275: "End", 63273: "Home",
3129
+ 63234: "Left", 63232: "Up", 63235: "Right", 63233: "Down", 63302: "Insert", 63272: "Delete"};
3130
+ CodeMirror.keyNames = keyNames;
3131
+ (function() {
3132
+ // Number keys
3133
+ for (var i = 0; i < 10; i++) keyNames[i + 48] = String(i);
3134
+ // Alphabetic keys
3135
+ for (var i = 65; i <= 90; i++) keyNames[i] = String.fromCharCode(i);
3136
+ // Function keys
3137
+ for (var i = 1; i <= 12; i++) keyNames[i + 111] = keyNames[i + 63235] = "F" + i;
3138
+ })();
3139
+
3140
+ CodeMirror.version = "2.34";
3141
+
3142
+ return CodeMirror;
3143
+ })();