rails_modular_admin 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1416) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/list.txt +23 -0
  3. data/app/assets/javascripts/rails_modular_admin/vendor.js +60351 -60351
  4. data/app/assets/javascripts/rails_modular_admin.js +1 -0
  5. data/app/assets/node_modules/animate.css/LICENSE +21 -0
  6. data/app/assets/node_modules/animate.css/README.md +233 -0
  7. data/app/assets/node_modules/animate.css/animate-config.json +120 -0
  8. data/app/assets/node_modules/animate.css/animate.css +3494 -0
  9. data/app/assets/node_modules/animate.css/animate.min.css +11 -0
  10. data/app/assets/node_modules/animate.css/bower.json +5 -0
  11. data/app/assets/node_modules/animate.css/gulpfile.js +107 -0
  12. data/app/assets/node_modules/animate.css/package.json +54 -0
  13. data/app/assets/node_modules/animate.css/source/_base.css +8 -0
  14. data/app/assets/node_modules/animate.css/source/attention_seekers/bounce.css +30 -0
  15. data/app/assets/node_modules/animate.css/source/attention_seekers/flash.css +16 -0
  16. data/app/assets/node_modules/animate.css/source/attention_seekers/headShake.css +30 -0
  17. data/app/assets/node_modules/animate.css/source/attention_seekers/jello.css +40 -0
  18. data/app/assets/node_modules/animate.css/source/attention_seekers/pulse.css +19 -0
  19. data/app/assets/node_modules/animate.css/source/attention_seekers/rubberBand.css +33 -0
  20. data/app/assets/node_modules/animate.css/source/attention_seekers/shake.css +25 -0
  21. data/app/assets/node_modules/animate.css/source/attention_seekers/swing.css +26 -0
  22. data/app/assets/node_modules/animate.css/source/attention_seekers/tada.css +31 -0
  23. data/app/assets/node_modules/animate.css/source/attention_seekers/wobble.css +35 -0
  24. data/app/assets/node_modules/animate.css/source/bouncing_entrances/bounceIn.css +42 -0
  25. data/app/assets/node_modules/animate.css/source/bouncing_entrances/bounceInDown.css +35 -0
  26. data/app/assets/node_modules/animate.css/source/bouncing_entrances/bounceInLeft.css +35 -0
  27. data/app/assets/node_modules/animate.css/source/bouncing_entrances/bounceInRight.css +35 -0
  28. data/app/assets/node_modules/animate.css/source/bouncing_entrances/bounceInUp.css +35 -0
  29. data/app/assets/node_modules/animate.css/source/bouncing_exits/bounceOut.css +21 -0
  30. data/app/assets/node_modules/animate.css/source/bouncing_exits/bounceOutDown.css +20 -0
  31. data/app/assets/node_modules/animate.css/source/bouncing_exits/bounceOutLeft.css +15 -0
  32. data/app/assets/node_modules/animate.css/source/bouncing_exits/bounceOutRight.css +15 -0
  33. data/app/assets/node_modules/animate.css/source/bouncing_exits/bounceOutUp.css +20 -0
  34. data/app/assets/node_modules/animate.css/source/fading_entrances/fadeIn.css +13 -0
  35. data/app/assets/node_modules/animate.css/source/fading_entrances/fadeInDown.css +15 -0
  36. data/app/assets/node_modules/animate.css/source/fading_entrances/fadeInDownBig.css +15 -0
  37. data/app/assets/node_modules/animate.css/source/fading_entrances/fadeInLeft.css +15 -0
  38. data/app/assets/node_modules/animate.css/source/fading_entrances/fadeInLeftBig.css +15 -0
  39. data/app/assets/node_modules/animate.css/source/fading_entrances/fadeInRight.css +15 -0
  40. data/app/assets/node_modules/animate.css/source/fading_entrances/fadeInRightBig.css +15 -0
  41. data/app/assets/node_modules/animate.css/source/fading_entrances/fadeInUp.css +15 -0
  42. data/app/assets/node_modules/animate.css/source/fading_entrances/fadeInUpBig.css +15 -0
  43. data/app/assets/node_modules/animate.css/source/fading_exits/fadeOut.css +13 -0
  44. data/app/assets/node_modules/animate.css/source/fading_exits/fadeOutDown.css +14 -0
  45. data/app/assets/node_modules/animate.css/source/fading_exits/fadeOutDownBig.css +14 -0
  46. data/app/assets/node_modules/animate.css/source/fading_exits/fadeOutLeft.css +14 -0
  47. data/app/assets/node_modules/animate.css/source/fading_exits/fadeOutLeftBig.css +14 -0
  48. data/app/assets/node_modules/animate.css/source/fading_exits/fadeOutRight.css +14 -0
  49. data/app/assets/node_modules/animate.css/source/fading_exits/fadeOutRightBig.css +14 -0
  50. data/app/assets/node_modules/animate.css/source/fading_exits/fadeOutUp.css +14 -0
  51. data/app/assets/node_modules/animate.css/source/fading_exits/fadeOutUpBig.css +14 -0
  52. data/app/assets/node_modules/animate.css/source/flippers/flip.css +31 -0
  53. data/app/assets/node_modules/animate.css/source/flippers/flipInX.css +30 -0
  54. data/app/assets/node_modules/animate.css/source/flippers/flipInY.css +30 -0
  55. data/app/assets/node_modules/animate.css/source/flippers/flipOutX.css +21 -0
  56. data/app/assets/node_modules/animate.css/source/flippers/flipOutY.css +21 -0
  57. data/app/assets/node_modules/animate.css/source/lightspeed/lightSpeedIn.css +26 -0
  58. data/app/assets/node_modules/animate.css/source/lightspeed/lightSpeedOut.css +15 -0
  59. data/app/assets/node_modules/animate.css/source/rotating_entrances/rotateIn.css +17 -0
  60. data/app/assets/node_modules/animate.css/source/rotating_entrances/rotateInDownLeft.css +17 -0
  61. data/app/assets/node_modules/animate.css/source/rotating_entrances/rotateInDownRight.css +17 -0
  62. data/app/assets/node_modules/animate.css/source/rotating_entrances/rotateInUpLeft.css +17 -0
  63. data/app/assets/node_modules/animate.css/source/rotating_entrances/rotateInUpRight.css +17 -0
  64. data/app/assets/node_modules/animate.css/source/rotating_exits/rotateOut.css +16 -0
  65. data/app/assets/node_modules/animate.css/source/rotating_exits/rotateOutDownLeft.css +16 -0
  66. data/app/assets/node_modules/animate.css/source/rotating_exits/rotateOutDownRight.css +16 -0
  67. data/app/assets/node_modules/animate.css/source/rotating_exits/rotateOutUpLeft.css +16 -0
  68. data/app/assets/node_modules/animate.css/source/rotating_exits/rotateOutUpRight.css +16 -0
  69. data/app/assets/node_modules/animate.css/source/sliding_entrances/slideInDown.css +14 -0
  70. data/app/assets/node_modules/animate.css/source/sliding_entrances/slideInLeft.css +14 -0
  71. data/app/assets/node_modules/animate.css/source/sliding_entrances/slideInRight.css +14 -0
  72. data/app/assets/node_modules/animate.css/source/sliding_entrances/slideInUp.css +14 -0
  73. data/app/assets/node_modules/animate.css/source/sliding_exits/slideOutDown.css +14 -0
  74. data/app/assets/node_modules/animate.css/source/sliding_exits/slideOutLeft.css +14 -0
  75. data/app/assets/node_modules/animate.css/source/sliding_exits/slideOutRight.css +14 -0
  76. data/app/assets/node_modules/animate.css/source/sliding_exits/slideOutUp.css +14 -0
  77. data/app/assets/node_modules/animate.css/source/specials/hinge.css +31 -0
  78. data/app/assets/node_modules/animate.css/source/specials/jackInTheBox.css +24 -0
  79. data/app/assets/node_modules/animate.css/source/specials/rollIn.css +17 -0
  80. data/app/assets/node_modules/animate.css/source/specials/rollOut.css +16 -0
  81. data/app/assets/node_modules/animate.css/source/zooming_entrances/zoomIn.css +14 -0
  82. data/app/assets/node_modules/animate.css/source/zooming_entrances/zoomInDown.css +17 -0
  83. data/app/assets/node_modules/animate.css/source/zooming_entrances/zoomInLeft.css +17 -0
  84. data/app/assets/node_modules/animate.css/source/zooming_entrances/zoomInRight.css +17 -0
  85. data/app/assets/node_modules/animate.css/source/zooming_entrances/zoomInUp.css +17 -0
  86. data/app/assets/node_modules/animate.css/source/zooming_exits/zoomOut.css +18 -0
  87. data/app/assets/node_modules/animate.css/source/zooming_exits/zoomOutDown.css +18 -0
  88. data/app/assets/node_modules/animate.css/source/zooming_exits/zoomOutLeft.css +16 -0
  89. data/app/assets/node_modules/animate.css/source/zooming_exits/zoomOutRight.css +16 -0
  90. data/app/assets/node_modules/animate.css/source/zooming_exits/zoomOutUp.css +18 -0
  91. data/app/assets/node_modules/bootstrap/LICENSE +22 -0
  92. data/app/assets/node_modules/bootstrap/README.md +171 -0
  93. data/app/assets/node_modules/bootstrap/dist/css/bootstrap-grid.css +1912 -0
  94. data/app/assets/node_modules/bootstrap/dist/css/bootstrap-grid.css.map +1 -0
  95. data/app/assets/node_modules/bootstrap/dist/css/bootstrap-grid.min.css +7 -0
  96. data/app/assets/node_modules/bootstrap/dist/css/bootstrap-grid.min.css.map +1 -0
  97. data/app/assets/node_modules/bootstrap/dist/css/bootstrap-reboot.css +330 -0
  98. data/app/assets/node_modules/bootstrap/dist/css/bootstrap-reboot.css.map +1 -0
  99. data/app/assets/node_modules/bootstrap/dist/css/bootstrap-reboot.min.css +8 -0
  100. data/app/assets/node_modules/bootstrap/dist/css/bootstrap-reboot.min.css.map +1 -0
  101. data/app/assets/node_modules/bootstrap/dist/css/bootstrap.css +8981 -0
  102. data/app/assets/node_modules/bootstrap/dist/css/bootstrap.css.map +1 -0
  103. data/app/assets/node_modules/bootstrap/dist/css/bootstrap.min.css +7 -0
  104. data/app/assets/node_modules/bootstrap/dist/css/bootstrap.min.css.map +1 -0
  105. data/app/assets/node_modules/bootstrap/dist/js/bootstrap.bundle.js +6444 -0
  106. data/app/assets/node_modules/bootstrap/dist/js/bootstrap.bundle.js.map +1 -0
  107. data/app/assets/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js +7 -0
  108. data/app/assets/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js.map +1 -0
  109. data/app/assets/node_modules/bootstrap/dist/js/bootstrap.js +3927 -0
  110. data/app/assets/node_modules/bootstrap/dist/js/bootstrap.js.map +1 -0
  111. data/app/assets/node_modules/bootstrap/dist/js/bootstrap.min.js +7 -0
  112. data/app/assets/node_modules/bootstrap/dist/js/bootstrap.min.js.map +1 -0
  113. data/app/assets/node_modules/bootstrap/js/dist/alert.js +178 -0
  114. data/app/assets/node_modules/bootstrap/js/dist/alert.js.map +1 -0
  115. data/app/assets/node_modules/bootstrap/js/dist/button.js +167 -0
  116. data/app/assets/node_modules/bootstrap/js/dist/button.js.map +1 -0
  117. data/app/assets/node_modules/bootstrap/js/dist/carousel.js +508 -0
  118. data/app/assets/node_modules/bootstrap/js/dist/carousel.js.map +1 -0
  119. data/app/assets/node_modules/bootstrap/js/dist/collapse.js +367 -0
  120. data/app/assets/node_modules/bootstrap/js/dist/collapse.js.map +1 -0
  121. data/app/assets/node_modules/bootstrap/js/dist/dropdown.js +489 -0
  122. data/app/assets/node_modules/bootstrap/js/dist/dropdown.js.map +1 -0
  123. data/app/assets/node_modules/bootstrap/js/dist/index.js +23 -0
  124. data/app/assets/node_modules/bootstrap/js/dist/index.js.map +1 -0
  125. data/app/assets/node_modules/bootstrap/js/dist/modal.js +585 -0
  126. data/app/assets/node_modules/bootstrap/js/dist/modal.js.map +1 -0
  127. data/app/assets/node_modules/bootstrap/js/dist/popover.js +206 -0
  128. data/app/assets/node_modules/bootstrap/js/dist/popover.js.map +1 -0
  129. data/app/assets/node_modules/bootstrap/js/dist/scrollspy.js +319 -0
  130. data/app/assets/node_modules/bootstrap/js/dist/scrollspy.js.map +1 -0
  131. data/app/assets/node_modules/bootstrap/js/dist/tab.js +251 -0
  132. data/app/assets/node_modules/bootstrap/js/dist/tab.js.map +1 -0
  133. data/app/assets/node_modules/bootstrap/js/dist/tooltip.js +674 -0
  134. data/app/assets/node_modules/bootstrap/js/dist/tooltip.js.map +1 -0
  135. data/app/assets/node_modules/bootstrap/js/dist/util.js +132 -0
  136. data/app/assets/node_modules/bootstrap/js/dist/util.js.map +1 -0
  137. data/app/assets/node_modules/bootstrap/js/src/alert.js +183 -0
  138. data/app/assets/node_modules/bootstrap/js/src/button.js +175 -0
  139. data/app/assets/node_modules/bootstrap/js/src/carousel.js +517 -0
  140. data/app/assets/node_modules/bootstrap/js/src/collapse.js +394 -0
  141. data/app/assets/node_modules/bootstrap/js/src/dropdown.js +487 -0
  142. data/app/assets/node_modules/bootstrap/js/src/index.js +50 -0
  143. data/app/assets/node_modules/bootstrap/js/src/modal.js +579 -0
  144. data/app/assets/node_modules/bootstrap/js/src/popover.js +188 -0
  145. data/app/assets/node_modules/bootstrap/js/src/scrollspy.js +329 -0
  146. data/app/assets/node_modules/bootstrap/js/src/tab.js +263 -0
  147. data/app/assets/node_modules/bootstrap/js/src/tooltip.js +723 -0
  148. data/app/assets/node_modules/bootstrap/js/src/util.js +153 -0
  149. data/app/assets/node_modules/bootstrap/package.json +218 -0
  150. data/app/assets/node_modules/bootstrap/scss/_alert.scss +51 -0
  151. data/app/assets/node_modules/bootstrap/scss/_badge.scss +47 -0
  152. data/app/assets/node_modules/bootstrap/scss/_breadcrumb.scss +41 -0
  153. data/app/assets/node_modules/bootstrap/scss/_button-group.scss +172 -0
  154. data/app/assets/node_modules/bootstrap/scss/_buttons.scss +144 -0
  155. data/app/assets/node_modules/bootstrap/scss/_card.scss +301 -0
  156. data/app/assets/node_modules/bootstrap/scss/_carousel.scss +236 -0
  157. data/app/assets/node_modules/bootstrap/scss/_close.scss +34 -0
  158. data/app/assets/node_modules/bootstrap/scss/_code.scss +48 -0
  159. data/app/assets/node_modules/bootstrap/scss/_custom-forms.scss +421 -0
  160. data/app/assets/node_modules/bootstrap/scss/_dropdown.scss +166 -0
  161. data/app/assets/node_modules/bootstrap/scss/_forms.scss +335 -0
  162. data/app/assets/node_modules/bootstrap/scss/_functions.scss +86 -0
  163. data/app/assets/node_modules/bootstrap/scss/_grid.scss +52 -0
  164. data/app/assets/node_modules/bootstrap/scss/_images.scss +42 -0
  165. data/app/assets/node_modules/bootstrap/scss/_input-group.scss +158 -0
  166. data/app/assets/node_modules/bootstrap/scss/_jumbotron.scss +16 -0
  167. data/app/assets/node_modules/bootstrap/scss/_list-group.scss +115 -0
  168. data/app/assets/node_modules/bootstrap/scss/_media.scss +8 -0
  169. data/app/assets/node_modules/bootstrap/scss/_mixins.scss +41 -0
  170. data/app/assets/node_modules/bootstrap/scss/_modal.scss +168 -0
  171. data/app/assets/node_modules/bootstrap/scss/_nav.scss +118 -0
  172. data/app/assets/node_modules/bootstrap/scss/_navbar.scss +299 -0
  173. data/app/assets/node_modules/bootstrap/scss/_pagination.scss +78 -0
  174. data/app/assets/node_modules/bootstrap/scss/_popover.scss +183 -0
  175. data/app/assets/node_modules/bootstrap/scss/_print.scss +141 -0
  176. data/app/assets/node_modules/bootstrap/scss/_progress.scss +34 -0
  177. data/app/assets/node_modules/bootstrap/scss/_reboot.scss +480 -0
  178. data/app/assets/node_modules/bootstrap/scss/_root.scss +19 -0
  179. data/app/assets/node_modules/bootstrap/scss/_tables.scss +188 -0
  180. data/app/assets/node_modules/bootstrap/scss/_tooltip.scss +115 -0
  181. data/app/assets/node_modules/bootstrap/scss/_transitions.scss +22 -0
  182. data/app/assets/node_modules/bootstrap/scss/_type.scss +125 -0
  183. data/app/assets/node_modules/bootstrap/scss/_utilities.scss +15 -0
  184. data/app/assets/node_modules/bootstrap/scss/_variables.scss +929 -0
  185. data/app/assets/node_modules/bootstrap/scss/bootstrap-grid.scss +32 -0
  186. data/app/assets/node_modules/bootstrap/scss/bootstrap-reboot.scss +12 -0
  187. data/app/assets/node_modules/bootstrap/scss/bootstrap.scss +42 -0
  188. data/app/assets/node_modules/bootstrap/scss/mixins/_alert.scss +13 -0
  189. data/app/assets/node_modules/bootstrap/scss/mixins/_background-variant.scss +21 -0
  190. data/app/assets/node_modules/bootstrap/scss/mixins/_badge.scss +12 -0
  191. data/app/assets/node_modules/bootstrap/scss/mixins/_border-radius.scss +35 -0
  192. data/app/assets/node_modules/bootstrap/scss/mixins/_box-shadow.scss +5 -0
  193. data/app/assets/node_modules/bootstrap/scss/mixins/_breakpoints.scss +123 -0
  194. data/app/assets/node_modules/bootstrap/scss/mixins/_buttons.scss +109 -0
  195. data/app/assets/node_modules/bootstrap/scss/mixins/_caret.scss +66 -0
  196. data/app/assets/node_modules/bootstrap/scss/mixins/_clearfix.scss +7 -0
  197. data/app/assets/node_modules/bootstrap/scss/mixins/_float.scss +11 -0
  198. data/app/assets/node_modules/bootstrap/scss/mixins/_forms.scss +147 -0
  199. data/app/assets/node_modules/bootstrap/scss/mixins/_gradients.scss +45 -0
  200. data/app/assets/node_modules/bootstrap/scss/mixins/_grid-framework.scss +67 -0
  201. data/app/assets/node_modules/bootstrap/scss/mixins/_grid.scss +52 -0
  202. data/app/assets/node_modules/bootstrap/scss/mixins/_hover.scss +37 -0
  203. data/app/assets/node_modules/bootstrap/scss/mixins/_image.scss +36 -0
  204. data/app/assets/node_modules/bootstrap/scss/mixins/_list-group.scss +21 -0
  205. data/app/assets/node_modules/bootstrap/scss/mixins/_lists.scss +7 -0
  206. data/app/assets/node_modules/bootstrap/scss/mixins/_nav-divider.scss +10 -0
  207. data/app/assets/node_modules/bootstrap/scss/mixins/_pagination.scss +22 -0
  208. data/app/assets/node_modules/bootstrap/scss/mixins/_reset-text.scss +17 -0
  209. data/app/assets/node_modules/bootstrap/scss/mixins/_resize.scss +6 -0
  210. data/app/assets/node_modules/bootstrap/scss/mixins/_screen-reader.scss +33 -0
  211. data/app/assets/node_modules/bootstrap/scss/mixins/_size.scss +6 -0
  212. data/app/assets/node_modules/bootstrap/scss/mixins/_table-row.scss +30 -0
  213. data/app/assets/node_modules/bootstrap/scss/mixins/_text-emphasis.scss +14 -0
  214. data/app/assets/node_modules/bootstrap/scss/mixins/_text-hide.scss +13 -0
  215. data/app/assets/node_modules/bootstrap/scss/mixins/_text-truncate.scss +8 -0
  216. data/app/assets/node_modules/bootstrap/scss/mixins/_transition.scss +13 -0
  217. data/app/assets/node_modules/bootstrap/scss/mixins/_visibility.scss +7 -0
  218. data/app/assets/node_modules/bootstrap/scss/utilities/_align.scss +8 -0
  219. data/app/assets/node_modules/bootstrap/scss/utilities/_background.scss +19 -0
  220. data/app/assets/node_modules/bootstrap/scss/utilities/_borders.scss +59 -0
  221. data/app/assets/node_modules/bootstrap/scss/utilities/_clearfix.scss +3 -0
  222. data/app/assets/node_modules/bootstrap/scss/utilities/_display.scss +38 -0
  223. data/app/assets/node_modules/bootstrap/scss/utilities/_embed.scss +52 -0
  224. data/app/assets/node_modules/bootstrap/scss/utilities/_flex.scss +51 -0
  225. data/app/assets/node_modules/bootstrap/scss/utilities/_float.scss +9 -0
  226. data/app/assets/node_modules/bootstrap/scss/utilities/_position.scss +37 -0
  227. data/app/assets/node_modules/bootstrap/scss/utilities/_screenreaders.scss +11 -0
  228. data/app/assets/node_modules/bootstrap/scss/utilities/_shadows.scss +6 -0
  229. data/app/assets/node_modules/bootstrap/scss/utilities/_sizing.scss +12 -0
  230. data/app/assets/node_modules/bootstrap/scss/utilities/_spacing.scss +51 -0
  231. data/app/assets/node_modules/bootstrap/scss/utilities/_text.scss +58 -0
  232. data/app/assets/node_modules/bootstrap/scss/utilities/_visibility.scss +11 -0
  233. data/app/assets/node_modules/clone/LICENSE +18 -0
  234. data/app/assets/node_modules/clone/README.md +178 -0
  235. data/app/assets/node_modules/clone/clone.iml +10 -0
  236. data/app/assets/node_modules/clone/clone.js +251 -0
  237. data/app/assets/node_modules/clone/package.json +56 -0
  238. data/app/assets/node_modules/deep-equal/LICENSE +18 -0
  239. data/app/assets/node_modules/deep-equal/example/cmp.js +11 -0
  240. data/app/assets/node_modules/deep-equal/index.js +94 -0
  241. data/app/assets/node_modules/deep-equal/lib/is_arguments.js +20 -0
  242. data/app/assets/node_modules/deep-equal/lib/keys.js +9 -0
  243. data/app/assets/node_modules/deep-equal/package.json +58 -0
  244. data/app/assets/node_modules/deep-equal/readme.markdown +61 -0
  245. data/app/assets/node_modules/deep-equal/test/cmp.js +95 -0
  246. data/app/assets/node_modules/dropzone/CONTRIBUTING.md +6 -0
  247. data/app/assets/node_modules/dropzone/LICENSE +12 -0
  248. data/app/assets/node_modules/dropzone/README.md +36 -0
  249. data/app/assets/node_modules/dropzone/bower.json +16 -0
  250. data/app/assets/node_modules/dropzone/component.json +10 -0
  251. data/app/assets/node_modules/dropzone/composer.json +18 -0
  252. data/app/assets/node_modules/dropzone/dist/basic.css +39 -0
  253. data/app/assets/node_modules/dropzone/dist/dropzone-amd-module.js +3541 -0
  254. data/app/assets/node_modules/dropzone/dist/dropzone.css +388 -0
  255. data/app/assets/node_modules/dropzone/dist/dropzone.js +3526 -0
  256. data/app/assets/node_modules/dropzone/dist/min/basic.min.css +1 -0
  257. data/app/assets/node_modules/dropzone/dist/min/dropzone-amd-module.min.js +2 -0
  258. data/app/assets/node_modules/dropzone/dist/min/dropzone.min.css +1 -0
  259. data/app/assets/node_modules/dropzone/dist/min/dropzone.min.js +2 -0
  260. data/app/assets/node_modules/dropzone/dist/readme.md +10 -0
  261. data/app/assets/node_modules/dropzone/index.js +1 -0
  262. data/app/assets/node_modules/dropzone/package.json +40 -0
  263. data/app/assets/node_modules/eve-raphael/LICENSE +202 -0
  264. data/app/assets/node_modules/eve-raphael/README.md +5 -0
  265. data/app/assets/node_modules/eve-raphael/bower.json +17 -0
  266. data/app/assets/node_modules/eve-raphael/component.json +13 -0
  267. data/app/assets/node_modules/eve-raphael/e.html +66 -0
  268. data/app/assets/node_modules/eve-raphael/eve.js +426 -0
  269. data/app/assets/node_modules/eve-raphael/package.json +15 -0
  270. data/app/assets/node_modules/eventemitter3/LICENSE +21 -0
  271. data/app/assets/node_modules/eventemitter3/README.md +105 -0
  272. data/app/assets/node_modules/eventemitter3/index.d.ts +50 -0
  273. data/app/assets/node_modules/eventemitter3/index.js +311 -0
  274. data/app/assets/node_modules/eventemitter3/package.json +51 -0
  275. data/app/assets/node_modules/eventemitter3/umd/eventemitter3.min.js +1 -0
  276. data/app/assets/node_modules/extend/CHANGELOG.md +77 -0
  277. data/app/assets/node_modules/extend/LICENSE +23 -0
  278. data/app/assets/node_modules/extend/README.md +81 -0
  279. data/app/assets/node_modules/extend/component.json +32 -0
  280. data/app/assets/node_modules/extend/index.js +86 -0
  281. data/app/assets/node_modules/extend/package.json +43 -0
  282. data/app/assets/node_modules/fast-diff/README.md +24 -0
  283. data/app/assets/node_modules/fast-diff/diff.js +738 -0
  284. data/app/assets/node_modules/fast-diff/package.json +24 -0
  285. data/app/assets/node_modules/fast-diff/test.js +91 -0
  286. data/app/assets/node_modules/jquery/AUTHORS.txt +313 -0
  287. data/app/assets/node_modules/jquery/LICENSE.txt +36 -0
  288. data/app/assets/node_modules/jquery/README.md +67 -0
  289. data/app/assets/node_modules/jquery/bower.json +14 -0
  290. data/app/assets/node_modules/jquery/dist/core.js +399 -0
  291. data/app/assets/node_modules/jquery/dist/jquery.js +10364 -0
  292. data/app/assets/node_modules/jquery/dist/jquery.min.js +2 -0
  293. data/app/assets/node_modules/jquery/dist/jquery.min.map +1 -0
  294. data/app/assets/node_modules/jquery/dist/jquery.slim.js +8269 -0
  295. data/app/assets/node_modules/jquery/dist/jquery.slim.min.js +2 -0
  296. data/app/assets/node_modules/jquery/dist/jquery.slim.min.map +1 -0
  297. data/app/assets/node_modules/jquery/external/sizzle/LICENSE.txt +36 -0
  298. data/app/assets/node_modules/jquery/external/sizzle/dist/sizzle.js +2272 -0
  299. data/app/assets/node_modules/jquery/external/sizzle/dist/sizzle.min.js +3 -0
  300. data/app/assets/node_modules/jquery/external/sizzle/dist/sizzle.min.map +1 -0
  301. data/app/assets/node_modules/jquery/package.json +108 -0
  302. data/app/assets/node_modules/jquery/src/ajax/jsonp.js +103 -0
  303. data/app/assets/node_modules/jquery/src/ajax/load.js +77 -0
  304. data/app/assets/node_modules/jquery/src/ajax/parseXML.js +30 -0
  305. data/app/assets/node_modules/jquery/src/ajax/script.js +77 -0
  306. data/app/assets/node_modules/jquery/src/ajax/var/location.js +5 -0
  307. data/app/assets/node_modules/jquery/src/ajax/var/nonce.js +5 -0
  308. data/app/assets/node_modules/jquery/src/ajax/var/rquery.js +5 -0
  309. data/app/assets/node_modules/jquery/src/ajax/xhr.js +170 -0
  310. data/app/assets/node_modules/jquery/src/ajax.js +856 -0
  311. data/app/assets/node_modules/jquery/src/attributes/attr.js +141 -0
  312. data/app/assets/node_modules/jquery/src/attributes/classes.js +186 -0
  313. data/app/assets/node_modules/jquery/src/attributes/prop.js +143 -0
  314. data/app/assets/node_modules/jquery/src/attributes/support.js +33 -0
  315. data/app/assets/node_modules/jquery/src/attributes/val.js +191 -0
  316. data/app/assets/node_modules/jquery/src/attributes.js +13 -0
  317. data/app/assets/node_modules/jquery/src/callbacks.js +236 -0
  318. data/app/assets/node_modules/jquery/src/core/DOMEval.js +30 -0
  319. data/app/assets/node_modules/jquery/src/core/access.js +72 -0
  320. data/app/assets/node_modules/jquery/src/core/camelCase.js +23 -0
  321. data/app/assets/node_modules/jquery/src/core/init.js +129 -0
  322. data/app/assets/node_modules/jquery/src/core/nodeName.js +13 -0
  323. data/app/assets/node_modules/jquery/src/core/parseHTML.js +65 -0
  324. data/app/assets/node_modules/jquery/src/core/ready-no-deferred.js +97 -0
  325. data/app/assets/node_modules/jquery/src/core/ready.js +86 -0
  326. data/app/assets/node_modules/jquery/src/core/readyException.js +13 -0
  327. data/app/assets/node_modules/jquery/src/core/stripAndCollapse.js +14 -0
  328. data/app/assets/node_modules/jquery/src/core/support.js +20 -0
  329. data/app/assets/node_modules/jquery/src/core/toType.js +20 -0
  330. data/app/assets/node_modules/jquery/src/core/var/rsingleTag.js +6 -0
  331. data/app/assets/node_modules/jquery/src/core.js +399 -0
  332. data/app/assets/node_modules/jquery/src/css/addGetHookIf.js +26 -0
  333. data/app/assets/node_modules/jquery/src/css/adjustCSS.js +73 -0
  334. data/app/assets/node_modules/jquery/src/css/curCSS.js +65 -0
  335. data/app/assets/node_modules/jquery/src/css/hiddenVisibleSelectors.js +15 -0
  336. data/app/assets/node_modules/jquery/src/css/showHide.js +105 -0
  337. data/app/assets/node_modules/jquery/src/css/support.js +102 -0
  338. data/app/assets/node_modules/jquery/src/css/var/cssExpand.js +5 -0
  339. data/app/assets/node_modules/jquery/src/css/var/getStyles.js +17 -0
  340. data/app/assets/node_modules/jquery/src/css/var/isHiddenWithinTree.js +34 -0
  341. data/app/assets/node_modules/jquery/src/css/var/rboxStyle.js +7 -0
  342. data/app/assets/node_modules/jquery/src/css/var/rnumnonpx.js +7 -0
  343. data/app/assets/node_modules/jquery/src/css/var/swap.js +26 -0
  344. data/app/assets/node_modules/jquery/src/css.js +481 -0
  345. data/app/assets/node_modules/jquery/src/data/Data.js +162 -0
  346. data/app/assets/node_modules/jquery/src/data/var/acceptData.js +19 -0
  347. data/app/assets/node_modules/jquery/src/data/var/dataPriv.js +7 -0
  348. data/app/assets/node_modules/jquery/src/data/var/dataUser.js +7 -0
  349. data/app/assets/node_modules/jquery/src/data.js +180 -0
  350. data/app/assets/node_modules/jquery/src/deferred/exceptionHook.js +21 -0
  351. data/app/assets/node_modules/jquery/src/deferred.js +399 -0
  352. data/app/assets/node_modules/jquery/src/deprecated.js +98 -0
  353. data/app/assets/node_modules/jquery/src/dimensions.js +57 -0
  354. data/app/assets/node_modules/jquery/src/effects/Tween.js +123 -0
  355. data/app/assets/node_modules/jquery/src/effects/animatedSelector.js +15 -0
  356. data/app/assets/node_modules/jquery/src/effects.js +702 -0
  357. data/app/assets/node_modules/jquery/src/event/ajax.js +22 -0
  358. data/app/assets/node_modules/jquery/src/event/alias.js +29 -0
  359. data/app/assets/node_modules/jquery/src/event/focusin.js +55 -0
  360. data/app/assets/node_modules/jquery/src/event/support.js +11 -0
  361. data/app/assets/node_modules/jquery/src/event/trigger.js +199 -0
  362. data/app/assets/node_modules/jquery/src/event.js +748 -0
  363. data/app/assets/node_modules/jquery/src/exports/amd.js +26 -0
  364. data/app/assets/node_modules/jquery/src/exports/global.js +34 -0
  365. data/app/assets/node_modules/jquery/src/jquery.js +40 -0
  366. data/app/assets/node_modules/jquery/src/manipulation/_evalUrl.js +23 -0
  367. data/app/assets/node_modules/jquery/src/manipulation/buildFragment.js +105 -0
  368. data/app/assets/node_modules/jquery/src/manipulation/getAll.js +32 -0
  369. data/app/assets/node_modules/jquery/src/manipulation/setGlobalEval.js +22 -0
  370. data/app/assets/node_modules/jquery/src/manipulation/support.js +35 -0
  371. data/app/assets/node_modules/jquery/src/manipulation/var/rcheckableType.js +5 -0
  372. data/app/assets/node_modules/jquery/src/manipulation/var/rscriptType.js +5 -0
  373. data/app/assets/node_modules/jquery/src/manipulation/var/rtagName.js +5 -0
  374. data/app/assets/node_modules/jquery/src/manipulation/wrapMap.js +29 -0
  375. data/app/assets/node_modules/jquery/src/manipulation.js +486 -0
  376. data/app/assets/node_modules/jquery/src/offset.js +233 -0
  377. data/app/assets/node_modules/jquery/src/queue/delay.js +24 -0
  378. data/app/assets/node_modules/jquery/src/queue.js +145 -0
  379. data/app/assets/node_modules/jquery/src/selector-native.js +237 -0
  380. data/app/assets/node_modules/jquery/src/selector-sizzle.js +19 -0
  381. data/app/assets/node_modules/jquery/src/selector.js +3 -0
  382. data/app/assets/node_modules/jquery/src/serialize.js +132 -0
  383. data/app/assets/node_modules/jquery/src/traversing/findFilter.js +97 -0
  384. data/app/assets/node_modules/jquery/src/traversing/var/dir.js +22 -0
  385. data/app/assets/node_modules/jquery/src/traversing/var/rneedsContext.js +8 -0
  386. data/app/assets/node_modules/jquery/src/traversing/var/siblings.js +17 -0
  387. data/app/assets/node_modules/jquery/src/traversing.js +191 -0
  388. data/app/assets/node_modules/jquery/src/var/ObjectFunctionString.js +7 -0
  389. data/app/assets/node_modules/jquery/src/var/arr.js +5 -0
  390. data/app/assets/node_modules/jquery/src/var/class2type.js +6 -0
  391. data/app/assets/node_modules/jquery/src/var/concat.js +7 -0
  392. data/app/assets/node_modules/jquery/src/var/document.js +5 -0
  393. data/app/assets/node_modules/jquery/src/var/documentElement.js +7 -0
  394. data/app/assets/node_modules/jquery/src/var/fnToString.js +7 -0
  395. data/app/assets/node_modules/jquery/src/var/getProto.js +5 -0
  396. data/app/assets/node_modules/jquery/src/var/hasOwn.js +7 -0
  397. data/app/assets/node_modules/jquery/src/var/indexOf.js +7 -0
  398. data/app/assets/node_modules/jquery/src/var/isFunction.js +13 -0
  399. data/app/assets/node_modules/jquery/src/var/isWindow.js +8 -0
  400. data/app/assets/node_modules/jquery/src/var/pnum.js +5 -0
  401. data/app/assets/node_modules/jquery/src/var/push.js +7 -0
  402. data/app/assets/node_modules/jquery/src/var/rcssNum.js +9 -0
  403. data/app/assets/node_modules/jquery/src/var/rnothtmlwhite.js +8 -0
  404. data/app/assets/node_modules/jquery/src/var/slice.js +7 -0
  405. data/app/assets/node_modules/jquery/src/var/support.js +6 -0
  406. data/app/assets/node_modules/jquery/src/var/toString.js +7 -0
  407. data/app/assets/node_modules/jquery/src/wrap.js +78 -0
  408. data/app/assets/node_modules/jquery-flot/API.md +1498 -0
  409. data/app/assets/node_modules/jquery-flot/CONTRIBUTING.md +98 -0
  410. data/app/assets/node_modules/jquery-flot/FAQ.md +75 -0
  411. data/app/assets/node_modules/jquery-flot/LICENSE.txt +22 -0
  412. data/app/assets/node_modules/jquery-flot/Makefile +12 -0
  413. data/app/assets/node_modules/jquery-flot/NEWS.md +1026 -0
  414. data/app/assets/node_modules/jquery-flot/PLUGINS.md +143 -0
  415. data/app/assets/node_modules/jquery-flot/README.md +110 -0
  416. data/app/assets/node_modules/jquery-flot/component.json +8 -0
  417. data/app/assets/node_modules/jquery-flot/examples/ajax/data-eu-gdp-growth-1.json +4 -0
  418. data/app/assets/node_modules/jquery-flot/examples/ajax/data-eu-gdp-growth-2.json +4 -0
  419. data/app/assets/node_modules/jquery-flot/examples/ajax/data-eu-gdp-growth-3.json +4 -0
  420. data/app/assets/node_modules/jquery-flot/examples/ajax/data-eu-gdp-growth-4.json +4 -0
  421. data/app/assets/node_modules/jquery-flot/examples/ajax/data-eu-gdp-growth-5.json +4 -0
  422. data/app/assets/node_modules/jquery-flot/examples/ajax/data-eu-gdp-growth.json +4 -0
  423. data/app/assets/node_modules/jquery-flot/examples/ajax/data-japan-gdp-growth.json +4 -0
  424. data/app/assets/node_modules/jquery-flot/examples/ajax/data-usa-gdp-growth.json +4 -0
  425. data/app/assets/node_modules/jquery-flot/examples/ajax/index.html +173 -0
  426. data/app/assets/node_modules/jquery-flot/examples/annotating/index.html +87 -0
  427. data/app/assets/node_modules/jquery-flot/examples/axes-interacting/index.html +97 -0
  428. data/app/assets/node_modules/jquery-flot/examples/axes-multiple/index.html +77 -0
  429. data/app/assets/node_modules/jquery-flot/examples/axes-time/index.html +137 -0
  430. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/date.js +893 -0
  431. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/index.html +114 -0
  432. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/africa +1181 -0
  433. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/antarctica +413 -0
  434. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/asia +2717 -0
  435. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/australasia +1719 -0
  436. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/backward +117 -0
  437. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/etcetera +81 -0
  438. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/europe +2856 -0
  439. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/factory +10 -0
  440. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/iso3166.tab +276 -0
  441. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/leapseconds +100 -0
  442. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/northamerica +3235 -0
  443. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/pacificnew +28 -0
  444. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/solar87 +390 -0
  445. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/solar88 +390 -0
  446. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/solar89 +395 -0
  447. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/southamerica +1711 -0
  448. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/systemv +38 -0
  449. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/yearistype.sh +38 -0
  450. data/app/assets/node_modules/jquery-flot/examples/axes-time-zones/tz/zone.tab +441 -0
  451. data/app/assets/node_modules/jquery-flot/examples/background.png +0 -0
  452. data/app/assets/node_modules/jquery-flot/examples/basic-options/index.html +91 -0
  453. data/app/assets/node_modules/jquery-flot/examples/basic-usage/index.html +57 -0
  454. data/app/assets/node_modules/jquery-flot/examples/canvas/index.html +75 -0
  455. data/app/assets/node_modules/jquery-flot/examples/categories/index.html +64 -0
  456. data/app/assets/node_modules/jquery-flot/examples/examples.css +97 -0
  457. data/app/assets/node_modules/jquery-flot/examples/image/hs-2004-27-a-large-web.jpg +0 -0
  458. data/app/assets/node_modules/jquery-flot/examples/image/index.html +69 -0
  459. data/app/assets/node_modules/jquery-flot/examples/index.html +80 -0
  460. data/app/assets/node_modules/jquery-flot/examples/interacting/index.html +118 -0
  461. data/app/assets/node_modules/jquery-flot/examples/navigate/arrow-down.gif +0 -0
  462. data/app/assets/node_modules/jquery-flot/examples/navigate/arrow-left.gif +0 -0
  463. data/app/assets/node_modules/jquery-flot/examples/navigate/arrow-right.gif +0 -0
  464. data/app/assets/node_modules/jquery-flot/examples/navigate/arrow-up.gif +0 -0
  465. data/app/assets/node_modules/jquery-flot/examples/navigate/index.html +153 -0
  466. data/app/assets/node_modules/jquery-flot/examples/percentiles/index.html +79 -0
  467. data/app/assets/node_modules/jquery-flot/examples/realtime/index.html +122 -0
  468. data/app/assets/node_modules/jquery-flot/examples/resize/index.html +76 -0
  469. data/app/assets/node_modules/jquery-flot/examples/selection/index.html +152 -0
  470. data/app/assets/node_modules/jquery-flot/examples/series-errorbars/index.html +150 -0
  471. data/app/assets/node_modules/jquery-flot/examples/series-pie/index.html +818 -0
  472. data/app/assets/node_modules/jquery-flot/examples/series-toggle/index.html +121 -0
  473. data/app/assets/node_modules/jquery-flot/examples/series-types/index.html +90 -0
  474. data/app/assets/node_modules/jquery-flot/examples/shared/jquery-ui/jquery-ui.min.css +6 -0
  475. data/app/assets/node_modules/jquery-flot/examples/stacking/index.html +107 -0
  476. data/app/assets/node_modules/jquery-flot/examples/symbols/index.html +76 -0
  477. data/app/assets/node_modules/jquery-flot/examples/threshold/index.html +76 -0
  478. data/app/assets/node_modules/jquery-flot/examples/tracking/index.html +135 -0
  479. data/app/assets/node_modules/jquery-flot/examples/visitors/index.html +147 -0
  480. data/app/assets/node_modules/jquery-flot/examples/zooming/index.html +144 -0
  481. data/app/assets/node_modules/jquery-flot/excanvas.js +1428 -0
  482. data/app/assets/node_modules/jquery-flot/excanvas.min.js +1 -0
  483. data/app/assets/node_modules/jquery-flot/flot.jquery.json +27 -0
  484. data/app/assets/node_modules/jquery-flot/jquery.colorhelpers.js +180 -0
  485. data/app/assets/node_modules/jquery-flot/jquery.flot.canvas.js +345 -0
  486. data/app/assets/node_modules/jquery-flot/jquery.flot.categories.js +190 -0
  487. data/app/assets/node_modules/jquery-flot/jquery.flot.crosshair.js +176 -0
  488. data/app/assets/node_modules/jquery-flot/jquery.flot.errorbars.js +353 -0
  489. data/app/assets/node_modules/jquery-flot/jquery.flot.fillbetween.js +226 -0
  490. data/app/assets/node_modules/jquery-flot/jquery.flot.image.js +241 -0
  491. data/app/assets/node_modules/jquery-flot/jquery.flot.js +3168 -0
  492. data/app/assets/node_modules/jquery-flot/jquery.flot.navigate.js +346 -0
  493. data/app/assets/node_modules/jquery-flot/jquery.flot.pie.js +820 -0
  494. data/app/assets/node_modules/jquery-flot/jquery.flot.resize.js +59 -0
  495. data/app/assets/node_modules/jquery-flot/jquery.flot.selection.js +360 -0
  496. data/app/assets/node_modules/jquery-flot/jquery.flot.stack.js +188 -0
  497. data/app/assets/node_modules/jquery-flot/jquery.flot.symbol.js +71 -0
  498. data/app/assets/node_modules/jquery-flot/jquery.flot.threshold.js +142 -0
  499. data/app/assets/node_modules/jquery-flot/jquery.flot.time.js +432 -0
  500. data/app/assets/node_modules/jquery-flot/jquery.js +9472 -0
  501. data/app/assets/node_modules/jquery-flot/package.json +11 -0
  502. data/app/assets/node_modules/jquery-sparkline/Changelog.txt +324 -0
  503. data/app/assets/node_modules/jquery-sparkline/README.md +19 -0
  504. data/app/assets/node_modules/jquery-sparkline/build.js +13 -0
  505. data/app/assets/node_modules/jquery-sparkline/jquery.sparkline.js +3068 -0
  506. data/app/assets/node_modules/jquery-sparkline/jquery.sparkline.min.js +2 -0
  507. data/app/assets/node_modules/jquery-sparkline/package.json +32 -0
  508. data/app/assets/node_modules/jquery-sparkline/src/base.js +415 -0
  509. data/app/assets/node_modules/jquery-sparkline/src/chart-bar.js +256 -0
  510. data/app/assets/node_modules/jquery-sparkline/src/chart-box.js +186 -0
  511. data/app/assets/node_modules/jquery-sparkline/src/chart-bullet.js +131 -0
  512. data/app/assets/node_modules/jquery-sparkline/src/chart-discrete.js +66 -0
  513. data/app/assets/node_modules/jquery-sparkline/src/chart-line.js +350 -0
  514. data/app/assets/node_modules/jquery-sparkline/src/chart-pie.js +117 -0
  515. data/app/assets/node_modules/jquery-sparkline/src/chart-tristate.js +98 -0
  516. data/app/assets/node_modules/jquery-sparkline/src/defaults.js +156 -0
  517. data/app/assets/node_modules/jquery-sparkline/src/footer.js +1 -0
  518. data/app/assets/node_modules/jquery-sparkline/src/header.js +222 -0
  519. data/app/assets/node_modules/jquery-sparkline/src/interact.js +247 -0
  520. data/app/assets/node_modules/jquery-sparkline/src/rangemap.js +39 -0
  521. data/app/assets/node_modules/jquery-sparkline/src/simpledraw.js +55 -0
  522. data/app/assets/node_modules/jquery-sparkline/src/utils.js +224 -0
  523. data/app/assets/node_modules/jquery-sparkline/src/vcanvas-base.js +147 -0
  524. data/app/assets/node_modules/jquery-sparkline/src/vcanvas-canvas.js +193 -0
  525. data/app/assets/node_modules/jquery-sparkline/src/vcanvas-vml.js +165 -0
  526. data/app/assets/node_modules/jquery-touchswipe/LICENSE +24 -0
  527. data/app/assets/node_modules/jquery-touchswipe/README.md +81 -0
  528. data/app/assets/node_modules/jquery-touchswipe/bower.json +8 -0
  529. data/app/assets/node_modules/jquery-touchswipe/demos/Any_finger_swipe.html +49 -0
  530. data/app/assets/node_modules/jquery-touchswipe/demos/Basic_swipe.html +48 -0
  531. data/app/assets/node_modules/jquery-touchswipe/demos/Enable_and_destroy.html +95 -0
  532. data/app/assets/node_modules/jquery-touchswipe/demos/Excluded_children.html +82 -0
  533. data/app/assets/node_modules/jquery-touchswipe/demos/Finger_swipe.html +61 -0
  534. data/app/assets/node_modules/jquery-touchswipe/demos/Handlers_and_events.html +128 -0
  535. data/app/assets/node_modules/jquery-touchswipe/demos/Hold.html +61 -0
  536. data/app/assets/node_modules/jquery-touchswipe/demos/Image_gallery_example.html +148 -0
  537. data/app/assets/node_modules/jquery-touchswipe/demos/Options.html +90 -0
  538. data/app/assets/node_modules/jquery-touchswipe/demos/Page_scrolling.html +109 -0
  539. data/app/assets/node_modules/jquery-touchswipe/demos/Page_zoom.html +50 -0
  540. data/app/assets/node_modules/jquery-touchswipe/demos/Pinch.html +57 -0
  541. data/app/assets/node_modules/jquery-touchswipe/demos/Pinch_and_Swipe.html +81 -0
  542. data/app/assets/node_modules/jquery-touchswipe/demos/Pinch_status.html +51 -0
  543. data/app/assets/node_modules/jquery-touchswipe/demos/Single_swipe.html +51 -0
  544. data/app/assets/node_modules/jquery-touchswipe/demos/Stop_propegation.html +57 -0
  545. data/app/assets/node_modules/jquery-touchswipe/demos/Swipe_status.html +82 -0
  546. data/app/assets/node_modules/jquery-touchswipe/demos/Tap_vs_swipe.html +114 -0
  547. data/app/assets/node_modules/jquery-touchswipe/demos/Thresholds.html +109 -0
  548. data/app/assets/node_modules/jquery-touchswipe/demos/Trigger_handlers.html +158 -0
  549. data/app/assets/node_modules/jquery-touchswipe/demos/css/main.css +110 -0
  550. data/app/assets/node_modules/jquery-touchswipe/demos/index.html +74 -0
  551. data/app/assets/node_modules/jquery-touchswipe/demos/js/jquery.ui.ipad.js +223 -0
  552. data/app/assets/node_modules/jquery-touchswipe/demos/js/main.js +240 -0
  553. data/app/assets/node_modules/jquery-touchswipe/demos/tutorials.json +22 -0
  554. data/app/assets/node_modules/jquery-touchswipe/docs/$.fn.html +188 -0
  555. data/app/assets/node_modules/jquery-touchswipe/docs/$.fn.swipe.defaults.html +1174 -0
  556. data/app/assets/node_modules/jquery-touchswipe/docs/$.fn.swipe.directions.html +311 -0
  557. data/app/assets/node_modules/jquery-touchswipe/docs/$.fn.swipe.fingers.html +319 -0
  558. data/app/assets/node_modules/jquery-touchswipe/docs/$.fn.swipe.html +4205 -0
  559. data/app/assets/node_modules/jquery-touchswipe/docs/$.fn.swipe.pageScroll.html +272 -0
  560. data/app/assets/node_modules/jquery-touchswipe/docs/$.fn.swipe.phases.html +265 -0
  561. data/app/assets/node_modules/jquery-touchswipe/docs/$.html +186 -0
  562. data/app/assets/node_modules/jquery-touchswipe/docs/css/main.css +110 -0
  563. data/app/assets/node_modules/jquery-touchswipe/docs/index.html +101 -0
  564. data/app/assets/node_modules/jquery-touchswipe/docs/jquery.touchSwipe.js.html +2168 -0
  565. data/app/assets/node_modules/jquery-touchswipe/docs/js/jquery.ui.ipad.js +223 -0
  566. data/app/assets/node_modules/jquery-touchswipe/docs/js/main.js +85 -0
  567. data/app/assets/node_modules/jquery-touchswipe/docs/scripts/linenumber.js +25 -0
  568. data/app/assets/node_modules/jquery-touchswipe/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
  569. data/app/assets/node_modules/jquery-touchswipe/docs/scripts/prettify/lang-css.js +2 -0
  570. data/app/assets/node_modules/jquery-touchswipe/docs/scripts/prettify/prettify.js +28 -0
  571. data/app/assets/node_modules/jquery-touchswipe/docs/styles/jsdoc.css +625 -0
  572. data/app/assets/node_modules/jquery-touchswipe/docs/styles/prettify.css +79 -0
  573. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Any_finger_swipe.html +108 -0
  574. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Basic_swipe.html +107 -0
  575. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Enable_and_destroy.html +154 -0
  576. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Excluded_children.html +141 -0
  577. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Finger_swipe.html +120 -0
  578. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Handlers_and_events.html +187 -0
  579. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Hold.html +120 -0
  580. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Image_gallery_example.html +207 -0
  581. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Options.html +149 -0
  582. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Page_scrolling.html +168 -0
  583. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Page_zoom.html +109 -0
  584. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Pinch.html +116 -0
  585. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Pinch_and_Swipe.html +140 -0
  586. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Pinch_status.html +110 -0
  587. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Single_swipe.html +110 -0
  588. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Stop_propegation.html +116 -0
  589. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Swipe_status.html +141 -0
  590. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Tap_vs_swipe.html +173 -0
  591. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Thresholds.html +168 -0
  592. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-Trigger_handlers.html +217 -0
  593. data/app/assets/node_modules/jquery-touchswipe/docs/tutorial-index_.html +133 -0
  594. data/app/assets/node_modules/jquery-touchswipe/jquery.touchSwipe.js +2109 -0
  595. data/app/assets/node_modules/jquery-touchswipe/jquery.touchSwipe.min.js +14 -0
  596. data/app/assets/node_modules/jquery-touchswipe/package.json +47 -0
  597. data/app/assets/node_modules/jquery-validation/LICENSE.md +22 -0
  598. data/app/assets/node_modules/jquery-validation/README.md +76 -0
  599. data/app/assets/node_modules/jquery-validation/changelog.md +639 -0
  600. data/app/assets/node_modules/jquery-validation/dist/additional-methods.js +1158 -0
  601. data/app/assets/node_modules/jquery-validation/dist/jquery.validate.js +1601 -0
  602. data/app/assets/node_modules/jquery-validation/dist/jquery.validate.min.js +4 -0
  603. data/app/assets/node_modules/jquery-validation/dist/localization/messages_ar.js +35 -0
  604. data/app/assets/node_modules/jquery-validation/dist/localization/messages_az.js +35 -0
  605. data/app/assets/node_modules/jquery-validation/dist/localization/messages_bg.js +35 -0
  606. data/app/assets/node_modules/jquery-validation/dist/localization/messages_bn_BD.js +35 -0
  607. data/app/assets/node_modules/jquery-validation/dist/localization/messages_ca.js +35 -0
  608. data/app/assets/node_modules/jquery-validation/dist/localization/messages_cs.js +35 -0
  609. data/app/assets/node_modules/jquery-validation/dist/localization/messages_da.js +32 -0
  610. data/app/assets/node_modules/jquery-validation/dist/localization/messages_de.js +32 -0
  611. data/app/assets/node_modules/jquery-validation/dist/localization/messages_el.js +35 -0
  612. data/app/assets/node_modules/jquery-validation/dist/localization/messages_es.js +38 -0
  613. data/app/assets/node_modules/jquery-validation/dist/localization/messages_es_AR.js +39 -0
  614. data/app/assets/node_modules/jquery-validation/dist/localization/messages_es_PE.js +39 -0
  615. data/app/assets/node_modules/jquery-validation/dist/localization/messages_et.js +33 -0
  616. data/app/assets/node_modules/jquery-validation/dist/localization/messages_eu.js +35 -0
  617. data/app/assets/node_modules/jquery-validation/dist/localization/messages_fa.js +38 -0
  618. data/app/assets/node_modules/jquery-validation/dist/localization/messages_fi.js +33 -0
  619. data/app/assets/node_modules/jquery-validation/dist/localization/messages_fr.js +63 -0
  620. data/app/assets/node_modules/jquery-validation/dist/localization/messages_ge.js +35 -0
  621. data/app/assets/node_modules/jquery-validation/dist/localization/messages_gl.js +40 -0
  622. data/app/assets/node_modules/jquery-validation/dist/localization/messages_he.js +35 -0
  623. data/app/assets/node_modules/jquery-validation/dist/localization/messages_hr.js +35 -0
  624. data/app/assets/node_modules/jquery-validation/dist/localization/messages_hu.js +35 -0
  625. data/app/assets/node_modules/jquery-validation/dist/localization/messages_hy_AM.js +35 -0
  626. data/app/assets/node_modules/jquery-validation/dist/localization/messages_id.js +34 -0
  627. data/app/assets/node_modules/jquery-validation/dist/localization/messages_is.js +33 -0
  628. data/app/assets/node_modules/jquery-validation/dist/localization/messages_it.js +39 -0
  629. data/app/assets/node_modules/jquery-validation/dist/localization/messages_ja.js +36 -0
  630. data/app/assets/node_modules/jquery-validation/dist/localization/messages_ka.js +35 -0
  631. data/app/assets/node_modules/jquery-validation/dist/localization/messages_kk.js +35 -0
  632. data/app/assets/node_modules/jquery-validation/dist/localization/messages_ko.js +35 -0
  633. data/app/assets/node_modules/jquery-validation/dist/localization/messages_lt.js +35 -0
  634. data/app/assets/node_modules/jquery-validation/dist/localization/messages_lv.js +35 -0
  635. data/app/assets/node_modules/jquery-validation/dist/localization/messages_mk.js +35 -0
  636. data/app/assets/node_modules/jquery-validation/dist/localization/messages_my.js +35 -0
  637. data/app/assets/node_modules/jquery-validation/dist/localization/messages_nl.js +46 -0
  638. data/app/assets/node_modules/jquery-validation/dist/localization/messages_no.js +36 -0
  639. data/app/assets/node_modules/jquery-validation/dist/localization/messages_pl.js +37 -0
  640. data/app/assets/node_modules/jquery-validation/dist/localization/messages_pt_BR.js +88 -0
  641. data/app/assets/node_modules/jquery-validation/dist/localization/messages_pt_PT.js +39 -0
  642. data/app/assets/node_modules/jquery-validation/dist/localization/messages_ro.js +35 -0
  643. data/app/assets/node_modules/jquery-validation/dist/localization/messages_ru.js +35 -0
  644. data/app/assets/node_modules/jquery-validation/dist/localization/messages_sd.js +35 -0
  645. data/app/assets/node_modules/jquery-validation/dist/localization/messages_si.js +35 -0
  646. data/app/assets/node_modules/jquery-validation/dist/localization/messages_sk.js +32 -0
  647. data/app/assets/node_modules/jquery-validation/dist/localization/messages_sl.js +35 -0
  648. data/app/assets/node_modules/jquery-validation/dist/localization/messages_sr.js +35 -0
  649. data/app/assets/node_modules/jquery-validation/dist/localization/messages_sr_lat.js +35 -0
  650. data/app/assets/node_modules/jquery-validation/dist/localization/messages_sv.js +33 -0
  651. data/app/assets/node_modules/jquery-validation/dist/localization/messages_th.js +35 -0
  652. data/app/assets/node_modules/jquery-validation/dist/localization/messages_tj.js +35 -0
  653. data/app/assets/node_modules/jquery-validation/dist/localization/messages_tr.js +36 -0
  654. data/app/assets/node_modules/jquery-validation/dist/localization/messages_uk.js +35 -0
  655. data/app/assets/node_modules/jquery-validation/dist/localization/messages_ur.js +35 -0
  656. data/app/assets/node_modules/jquery-validation/dist/localization/messages_vi.js +35 -0
  657. data/app/assets/node_modules/jquery-validation/dist/localization/messages_zh.js +35 -0
  658. data/app/assets/node_modules/jquery-validation/dist/localization/messages_zh_TW.js +36 -0
  659. data/app/assets/node_modules/jquery-validation/dist/localization/methods_de.js +24 -0
  660. data/app/assets/node_modules/jquery-validation/dist/localization/methods_es_CL.js +24 -0
  661. data/app/assets/node_modules/jquery-validation/dist/localization/methods_fi.js +24 -0
  662. data/app/assets/node_modules/jquery-validation/dist/localization/methods_nl.js +24 -0
  663. data/app/assets/node_modules/jquery-validation/dist/localization/methods_pt.js +21 -0
  664. data/app/assets/node_modules/jquery-validation/package.json +61 -0
  665. data/app/assets/node_modules/jquery.browser/Gruntfile.js +62 -0
  666. data/app/assets/node_modules/jquery.browser/MIT-LICENSE.txt +21 -0
  667. data/app/assets/node_modules/jquery.browser/README.md +117 -0
  668. data/app/assets/node_modules/jquery.browser/bower.json +13 -0
  669. data/app/assets/node_modules/jquery.browser/browser.jquery.json +37 -0
  670. data/app/assets/node_modules/jquery.browser/dist/jquery.browser.js +193 -0
  671. data/app/assets/node_modules/jquery.browser/dist/jquery.browser.min.js +14 -0
  672. data/app/assets/node_modules/jquery.browser/package.json +30 -0
  673. data/app/assets/node_modules/jquery.browser/test/casperserver.js +257 -0
  674. data/app/assets/node_modules/jquery.browser/test/index.html +13 -0
  675. data/app/assets/node_modules/jquery.browser/test/src/jquery-1.10.2.min.js +6 -0
  676. data/app/assets/node_modules/jquery.browser/test/src/require/test.js +21 -0
  677. data/app/assets/node_modules/jquery.browser/test/test.js +962 -0
  678. data/app/assets/node_modules/jquery.flot.tooltip/CONTRIBUTING.md +9 -0
  679. data/app/assets/node_modules/jquery.flot.tooltip/Gruntfile.js +72 -0
  680. data/app/assets/node_modules/jquery.flot.tooltip/README.md +267 -0
  681. data/app/assets/node_modules/jquery.flot.tooltip/bower.json +13 -0
  682. data/app/assets/node_modules/jquery.flot.tooltip/examples/basic.html +45 -0
  683. data/app/assets/node_modules/jquery.flot.tooltip/examples/curved-lines.html +59 -0
  684. data/app/assets/node_modules/jquery.flot.tooltip/examples/custom-label-text.html +114 -0
  685. data/app/assets/node_modules/jquery.flot.tooltip/examples/custom_ticks.html +78 -0
  686. data/app/assets/node_modules/jquery.flot.tooltip/examples/dollar_in_tickformatter.html +68 -0
  687. data/app/assets/node_modules/jquery.flot.tooltip/examples/index.html +36 -0
  688. data/app/assets/node_modules/jquery.flot.tooltip/examples/js/curvedLines.js +483 -0
  689. data/app/assets/node_modules/jquery.flot.tooltip/examples/js/excanvas.min.js +1 -0
  690. data/app/assets/node_modules/jquery.flot.tooltip/examples/js/jquery.flot.js +3168 -0
  691. data/app/assets/node_modules/jquery.flot.tooltip/examples/js/jquery.flot.pie.js +820 -0
  692. data/app/assets/node_modules/jquery.flot.tooltip/examples/js/jquery.flot.stack.js +184 -0
  693. data/app/assets/node_modules/jquery.flot.tooltip/examples/js/jquery.flot.threshold.js +142 -0
  694. data/app/assets/node_modules/jquery.flot.tooltip/examples/js/jquery.flot.time.js +432 -0
  695. data/app/assets/node_modules/jquery.flot.tooltip/examples/many_series.html +78 -0
  696. data/app/assets/node_modules/jquery.flot.tooltip/examples/multiple-axes.html +78 -0
  697. data/app/assets/node_modules/jquery.flot.tooltip/examples/pie.html +87 -0
  698. data/app/assets/node_modules/jquery.flot.tooltip/examples/real_data.html +133 -0
  699. data/app/assets/node_modules/jquery.flot.tooltip/examples/stacking.html +97 -0
  700. data/app/assets/node_modules/jquery.flot.tooltip/examples/threshold.html +97 -0
  701. data/app/assets/node_modules/jquery.flot.tooltip/examples/time_bars.html +77 -0
  702. data/app/assets/node_modules/jquery.flot.tooltip/examples/two_chars.html +63 -0
  703. data/app/assets/node_modules/jquery.flot.tooltip/js/jquery.flot.tooltip.js +606 -0
  704. data/app/assets/node_modules/jquery.flot.tooltip/js/jquery.flot.tooltip.min.js +12 -0
  705. data/app/assets/node_modules/jquery.flot.tooltip/js/jquery.flot.tooltip.source.js +595 -0
  706. data/app/assets/node_modules/jquery.flot.tooltip/package.json +37 -0
  707. data/app/assets/node_modules/jqvmap/CHANGELOG.md +118 -0
  708. data/app/assets/node_modules/jqvmap/CONTRIBUTING.md +118 -0
  709. data/app/assets/node_modules/jqvmap/LICENSE +43 -0
  710. data/app/assets/node_modules/jqvmap/README.md +495 -0
  711. data/app/assets/node_modules/jqvmap/REGIONS.md +405 -0
  712. data/app/assets/node_modules/jqvmap/bower.json +32 -0
  713. data/app/assets/node_modules/jqvmap/create/README.md +207 -0
  714. data/app/assets/node_modules/jqvmap/create/config/continent.json +64 -0
  715. data/app/assets/node_modules/jqvmap/create/config/new-york.json +16 -0
  716. data/app/assets/node_modules/jqvmap/create/config/syria.json +16 -0
  717. data/app/assets/node_modules/jqvmap/create/jqvmap.py +573 -0
  718. data/app/assets/node_modules/jqvmap/dist/jquery.vmap.js +1281 -0
  719. data/app/assets/node_modules/jqvmap/dist/jquery.vmap.min.js +10 -0
  720. data/app/assets/node_modules/jqvmap/dist/jqvmap.css +50 -0
  721. data/app/assets/node_modules/jqvmap/dist/jqvmap.min.css +1 -0
  722. data/app/assets/node_modules/jqvmap/dist/maps/continents/jquery.vmap.africa.js +2 -0
  723. data/app/assets/node_modules/jqvmap/dist/maps/continents/jquery.vmap.asia.js +2 -0
  724. data/app/assets/node_modules/jqvmap/dist/maps/continents/jquery.vmap.australia.js +2 -0
  725. data/app/assets/node_modules/jqvmap/dist/maps/continents/jquery.vmap.europe.js +2 -0
  726. data/app/assets/node_modules/jqvmap/dist/maps/continents/jquery.vmap.north-america.js +2 -0
  727. data/app/assets/node_modules/jqvmap/dist/maps/continents/jquery.vmap.south-america.js +2 -0
  728. data/app/assets/node_modules/jqvmap/dist/maps/jquery.vmap.algeria.js +2 -0
  729. data/app/assets/node_modules/jqvmap/dist/maps/jquery.vmap.argentina.js +1 -0
  730. data/app/assets/node_modules/jqvmap/dist/maps/jquery.vmap.brazil.js +2 -0
  731. data/app/assets/node_modules/jqvmap/dist/maps/jquery.vmap.canada.js +2 -0
  732. data/app/assets/node_modules/jqvmap/dist/maps/jquery.vmap.europe.js +2 -0
  733. data/app/assets/node_modules/jqvmap/dist/maps/jquery.vmap.france.js +1 -0
  734. data/app/assets/node_modules/jqvmap/dist/maps/jquery.vmap.germany.js +2 -0
  735. data/app/assets/node_modules/jqvmap/dist/maps/jquery.vmap.greece.js +1 -0
  736. data/app/assets/node_modules/jqvmap/dist/maps/jquery.vmap.iran.js +6 -0
  737. data/app/assets/node_modules/jqvmap/dist/maps/jquery.vmap.iraq.js +1 -0
  738. data/app/assets/node_modules/jqvmap/dist/maps/jquery.vmap.russia.js +2 -0
  739. data/app/assets/node_modules/jqvmap/dist/maps/jquery.vmap.tunisia.js +2 -0
  740. data/app/assets/node_modules/jqvmap/dist/maps/jquery.vmap.turkey.js +11 -0
  741. data/app/assets/node_modules/jqvmap/dist/maps/jquery.vmap.usa.js +2 -0
  742. data/app/assets/node_modules/jqvmap/dist/maps/jquery.vmap.world.js +2 -0
  743. data/app/assets/node_modules/jqvmap/examples/algeria.html +27 -0
  744. data/app/assets/node_modules/jqvmap/examples/argentina.html +33 -0
  745. data/app/assets/node_modules/jqvmap/examples/brazil.html +33 -0
  746. data/app/assets/node_modules/jqvmap/examples/continents.html +172 -0
  747. data/app/assets/node_modules/jqvmap/examples/europe.html +27 -0
  748. data/app/assets/node_modules/jqvmap/examples/france.html +27 -0
  749. data/app/assets/node_modules/jqvmap/examples/germany.html +33 -0
  750. data/app/assets/node_modules/jqvmap/examples/greece.html +33 -0
  751. data/app/assets/node_modules/jqvmap/examples/images/background.png +0 -0
  752. data/app/assets/node_modules/jqvmap/examples/images/flag.png +0 -0
  753. data/app/assets/node_modules/jqvmap/examples/images/globe.png +0 -0
  754. data/app/assets/node_modules/jqvmap/examples/images/marker/black.png +0 -0
  755. data/app/assets/node_modules/jqvmap/examples/images/marker/blue.png +0 -0
  756. data/app/assets/node_modules/jqvmap/examples/images/marker/green.png +0 -0
  757. data/app/assets/node_modules/jqvmap/examples/images/marker/grey.png +0 -0
  758. data/app/assets/node_modules/jqvmap/examples/images/marker/orange.png +0 -0
  759. data/app/assets/node_modules/jqvmap/examples/images/marker/purple.png +0 -0
  760. data/app/assets/node_modules/jqvmap/examples/images/marker/red.png +0 -0
  761. data/app/assets/node_modules/jqvmap/examples/images/marker/white.png +0 -0
  762. data/app/assets/node_modules/jqvmap/examples/images/marker/yellow.png +0 -0
  763. data/app/assets/node_modules/jqvmap/examples/images/thumb.jpg +0 -0
  764. data/app/assets/node_modules/jqvmap/examples/images/tip.png +0 -0
  765. data/app/assets/node_modules/jqvmap/examples/inactive_regions.html +62 -0
  766. data/app/assets/node_modules/jqvmap/examples/iran.html +44 -0
  767. data/app/assets/node_modules/jqvmap/examples/iraq.html +44 -0
  768. data/app/assets/node_modules/jqvmap/examples/js/jquery.vmap.sampledata.js +1 -0
  769. data/app/assets/node_modules/jqvmap/examples/labels.html +146 -0
  770. data/app/assets/node_modules/jqvmap/examples/mobile.html +59 -0
  771. data/app/assets/node_modules/jqvmap/examples/multi.html +29 -0
  772. data/app/assets/node_modules/jqvmap/examples/pins.html +236 -0
  773. data/app/assets/node_modules/jqvmap/examples/pins_custom.html +127 -0
  774. data/app/assets/node_modules/jqvmap/examples/responsive.html +45 -0
  775. data/app/assets/node_modules/jqvmap/examples/russia.html +33 -0
  776. data/app/assets/node_modules/jqvmap/examples/touch_detect.html +46 -0
  777. data/app/assets/node_modules/jqvmap/examples/tunisia.html +33 -0
  778. data/app/assets/node_modules/jqvmap/examples/turkey.html +26 -0
  779. data/app/assets/node_modules/jqvmap/examples/usa.html +37 -0
  780. data/app/assets/node_modules/jqvmap/examples/world.html +35 -0
  781. data/app/assets/node_modules/jqvmap/grunt/bump.js +22 -0
  782. data/app/assets/node_modules/jqvmap/grunt/changelog.js +14 -0
  783. data/app/assets/node_modules/jqvmap/grunt/clean.js +5 -0
  784. data/app/assets/node_modules/jqvmap/grunt/concat.js +23 -0
  785. data/app/assets/node_modules/jqvmap/grunt/index.js +2 -0
  786. data/app/assets/node_modules/jqvmap/grunt/qunit.js +3 -0
  787. data/app/assets/node_modules/jqvmap/grunt/shell.js +6 -0
  788. data/app/assets/node_modules/jqvmap/grunt/uglify.js +19 -0
  789. data/app/assets/node_modules/jqvmap/gruntfile.js +21 -0
  790. data/app/assets/node_modules/jqvmap/node_modules/jquery/AUTHORS.txt +217 -0
  791. data/app/assets/node_modules/jqvmap/node_modules/jquery/CONTRIBUTING.md +214 -0
  792. data/app/assets/node_modules/jqvmap/node_modules/jquery/MIT-LICENSE.txt +21 -0
  793. data/app/assets/node_modules/jqvmap/node_modules/jquery/README.md +368 -0
  794. data/app/assets/node_modules/jqvmap/node_modules/jquery/bower.json +28 -0
  795. data/app/assets/node_modules/jqvmap/node_modules/jquery/dist/jquery.js +10351 -0
  796. data/app/assets/node_modules/jqvmap/node_modules/jquery/dist/jquery.min.js +6 -0
  797. data/app/assets/node_modules/jqvmap/node_modules/jquery/dist/jquery.min.map +1 -0
  798. data/app/assets/node_modules/jqvmap/node_modules/jquery/package.json +54 -0
  799. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/ajax/jsonp.js +89 -0
  800. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/ajax/load.js +75 -0
  801. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/ajax/parseJSON.js +51 -0
  802. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/ajax/parseXML.js +31 -0
  803. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/ajax/script.js +93 -0
  804. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/ajax/var/nonce.js +5 -0
  805. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/ajax/var/rquery.js +3 -0
  806. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/ajax/xhr.js +197 -0
  807. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/ajax.js +801 -0
  808. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/attributes/attr.js +271 -0
  809. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/attributes/classes.js +157 -0
  810. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/attributes/prop.js +134 -0
  811. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/attributes/support.js +62 -0
  812. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/attributes/val.js +178 -0
  813. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/attributes.js +11 -0
  814. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/callbacks.js +205 -0
  815. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/core/access.js +60 -0
  816. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/core/init.js +132 -0
  817. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/core/parseHTML.js +39 -0
  818. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/core/ready.js +152 -0
  819. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/core/var/rsingleTag.js +4 -0
  820. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/core.js +540 -0
  821. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/css/addGetHookIf.js +32 -0
  822. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/css/curCSS.js +124 -0
  823. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/css/defaultDisplay.js +69 -0
  824. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/css/hiddenVisibleSelectors.js +20 -0
  825. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/css/support.js +151 -0
  826. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/css/swap.js +28 -0
  827. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/css/var/cssExpand.js +3 -0
  828. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/css/var/isHidden.js +13 -0
  829. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/css/var/rmargin.js +3 -0
  830. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/css/var/rnumnonpx.js +5 -0
  831. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/css.js +504 -0
  832. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/data/accepts.js +21 -0
  833. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/data/support.js +25 -0
  834. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/data.js +335 -0
  835. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/deferred.js +150 -0
  836. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/deprecated.js +13 -0
  837. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/dimensions.js +50 -0
  838. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/effects/Tween.js +114 -0
  839. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/effects/animatedSelector.js +13 -0
  840. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/effects/support.js +55 -0
  841. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/effects.js +656 -0
  842. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/event/ajax.js +13 -0
  843. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/event/alias.js +39 -0
  844. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/event/support.js +26 -0
  845. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/event.js +1037 -0
  846. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/exports/amd.js +24 -0
  847. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/exports/global.js +32 -0
  848. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/intro.js +44 -0
  849. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/jquery.js +38 -0
  850. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/manipulation/_evalUrl.js +18 -0
  851. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/manipulation/support.js +76 -0
  852. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/manipulation/var/rcheckableType.js +3 -0
  853. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/manipulation.js +744 -0
  854. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/offset.js +211 -0
  855. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/outro.js +1 -0
  856. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/queue/delay.js +22 -0
  857. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/queue.js +142 -0
  858. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/selector-sizzle.js +14 -0
  859. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/selector.js +1 -0
  860. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/serialize.js +110 -0
  861. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/sizzle/dist/sizzle.js +2067 -0
  862. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/sizzle/dist/sizzle.min.js +3 -0
  863. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/sizzle/dist/sizzle.min.map +1 -0
  864. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/sizzle/test/data/empty.js +0 -0
  865. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/sizzle/test/data/mixed_sort.html +22 -0
  866. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/sizzle/test/data/testinit.js +136 -0
  867. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/sizzle/test/index.html +242 -0
  868. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/sizzle/test/jquery.js +9597 -0
  869. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/sizzle/test/unit/extending.js +95 -0
  870. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/sizzle/test/unit/selector.js +1149 -0
  871. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/sizzle/test/unit/utilities.js +169 -0
  872. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/support.js +58 -0
  873. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/traversing/findFilter.js +100 -0
  874. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/traversing/var/rneedsContext.js +6 -0
  875. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/traversing.js +200 -0
  876. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/var/class2type.js +4 -0
  877. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/var/concat.js +5 -0
  878. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/var/deletedIds.js +3 -0
  879. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/var/hasOwn.js +5 -0
  880. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/var/indexOf.js +5 -0
  881. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/var/pnum.js +3 -0
  882. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/var/push.js +5 -0
  883. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/var/rnotwhite.js +3 -0
  884. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/var/slice.js +5 -0
  885. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/var/strundefined.js +3 -0
  886. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/var/support.js +4 -0
  887. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/var/toString.js +5 -0
  888. data/app/assets/node_modules/jqvmap/node_modules/jquery/src/wrap.js +76 -0
  889. data/app/assets/node_modules/jqvmap/package.json +45 -0
  890. data/app/assets/node_modules/jqvmap/src/Base.js +80 -0
  891. data/app/assets/node_modules/jqvmap/src/ColorScale/arrayToRgb.js +9 -0
  892. data/app/assets/node_modules/jqvmap/src/ColorScale/getColor.js +41 -0
  893. data/app/assets/node_modules/jqvmap/src/ColorScale/rgbToArray.js +4 -0
  894. data/app/assets/node_modules/jqvmap/src/ColorScale/setColors.js +6 -0
  895. data/app/assets/node_modules/jqvmap/src/ColorScale/setMax.js +8 -0
  896. data/app/assets/node_modules/jqvmap/src/ColorScale/setMin.js +9 -0
  897. data/app/assets/node_modules/jqvmap/src/ColorScale/setNormalizeFunction.js +13 -0
  898. data/app/assets/node_modules/jqvmap/src/ColorScale/vectorAdd.js +7 -0
  899. data/app/assets/node_modules/jqvmap/src/ColorScale/vectorLength.js +7 -0
  900. data/app/assets/node_modules/jqvmap/src/ColorScale/vectorMult.js +7 -0
  901. data/app/assets/node_modules/jqvmap/src/ColorScale/vectorSubtract.js +7 -0
  902. data/app/assets/node_modules/jqvmap/src/ColorScale/vectorToNum.js +7 -0
  903. data/app/assets/node_modules/jqvmap/src/ColorScale.js +18 -0
  904. data/app/assets/node_modules/jqvmap/src/JQVMap/applyTransform.js +31 -0
  905. data/app/assets/node_modules/jqvmap/src/JQVMap/bindZoomButtons.js +9 -0
  906. data/app/assets/node_modules/jqvmap/src/JQVMap/deselect.js +18 -0
  907. data/app/assets/node_modules/jqvmap/src/JQVMap/getCountryId.js +3 -0
  908. data/app/assets/node_modules/jqvmap/src/JQVMap/getPin.js +4 -0
  909. data/app/assets/node_modules/jqvmap/src/JQVMap/getPinId.js +3 -0
  910. data/app/assets/node_modules/jqvmap/src/JQVMap/getPins.js +11 -0
  911. data/app/assets/node_modules/jqvmap/src/JQVMap/highlight.js +12 -0
  912. data/app/assets/node_modules/jqvmap/src/JQVMap/isSelected.js +3 -0
  913. data/app/assets/node_modules/jqvmap/src/JQVMap/makeDraggable.js +159 -0
  914. data/app/assets/node_modules/jqvmap/src/JQVMap/placePins.js +46 -0
  915. data/app/assets/node_modules/jqvmap/src/JQVMap/positionPins.js +19 -0
  916. data/app/assets/node_modules/jqvmap/src/JQVMap/removePin.js +4 -0
  917. data/app/assets/node_modules/jqvmap/src/JQVMap/removePins.js +3 -0
  918. data/app/assets/node_modules/jqvmap/src/JQVMap/reset.js +9 -0
  919. data/app/assets/node_modules/jqvmap/src/JQVMap/resize.js +13 -0
  920. data/app/assets/node_modules/jqvmap/src/JQVMap/select.js +18 -0
  921. data/app/assets/node_modules/jqvmap/src/JQVMap/selectIndex.js +9 -0
  922. data/app/assets/node_modules/jqvmap/src/JQVMap/setBackgroundColor.js +3 -0
  923. data/app/assets/node_modules/jqvmap/src/JQVMap/setColors.js +15 -0
  924. data/app/assets/node_modules/jqvmap/src/JQVMap/setNormalizeFunction.js +7 -0
  925. data/app/assets/node_modules/jqvmap/src/JQVMap/setScale.js +4 -0
  926. data/app/assets/node_modules/jqvmap/src/JQVMap/setScaleColors.js +7 -0
  927. data/app/assets/node_modules/jqvmap/src/JQVMap/setValues.js +36 -0
  928. data/app/assets/node_modules/jqvmap/src/JQVMap/unhighlight.js +8 -0
  929. data/app/assets/node_modules/jqvmap/src/JQVMap/zoomIn.js +17 -0
  930. data/app/assets/node_modules/jqvmap/src/JQVMap/zoomOut.js +17 -0
  931. data/app/assets/node_modules/jqvmap/src/JQVMap.js +243 -0
  932. data/app/assets/node_modules/jqvmap/src/VectorCanvas/applyTransformParams.js +8 -0
  933. data/app/assets/node_modules/jqvmap/src/VectorCanvas/createGroup.js +19 -0
  934. data/app/assets/node_modules/jqvmap/src/VectorCanvas/createPath.js +75 -0
  935. data/app/assets/node_modules/jqvmap/src/VectorCanvas/pathSvgToVml.js +103 -0
  936. data/app/assets/node_modules/jqvmap/src/VectorCanvas/setSize.js +24 -0
  937. data/app/assets/node_modules/jqvmap/src/VectorCanvas.js +42 -0
  938. data/app/assets/node_modules/jqvmap/tests/index.html +32 -0
  939. data/app/assets/node_modules/jqvmap/tests/qunit/qunit.css +291 -0
  940. data/app/assets/node_modules/jqvmap/tests/qunit/qunit.js +3828 -0
  941. data/app/assets/node_modules/jqvmap/tests/tests.js +422 -0
  942. data/app/assets/node_modules/metismenu/LICENSE +20 -0
  943. data/app/assets/node_modules/metismenu/README.md +361 -0
  944. data/app/assets/node_modules/metismenu/changelog.md +22 -0
  945. data/app/assets/node_modules/metismenu/dist/cjs/index.js +327 -0
  946. data/app/assets/node_modules/metismenu/dist/metisMenu.css +132 -0
  947. data/app/assets/node_modules/metismenu/dist/metisMenu.css.map +1 -0
  948. data/app/assets/node_modules/metismenu/dist/metisMenu.js +332 -0
  949. data/app/assets/node_modules/metismenu/dist/metisMenu.js.map +1 -0
  950. data/app/assets/node_modules/metismenu/dist/metisMenu.min.css +9 -0
  951. data/app/assets/node_modules/metismenu/dist/metisMenu.min.css.map +1 -0
  952. data/app/assets/node_modules/metismenu/dist/metisMenu.min.js +10 -0
  953. data/app/assets/node_modules/metismenu/dist/metisMenu.min.js.map +1 -0
  954. data/app/assets/node_modules/metismenu/dist/modules/index.js +323 -0
  955. data/app/assets/node_modules/metismenu/package.json +122 -0
  956. data/app/assets/node_modules/metismenu/src/index.js +260 -0
  957. data/app/assets/node_modules/metismenu/src/metisMenu.css +116 -0
  958. data/app/assets/node_modules/metismenu/src/util.js +61 -0
  959. data/app/assets/node_modules/metismenu/types/metismenu.d.ts +25 -0
  960. data/app/assets/node_modules/morris.js/Gruntfile.js +90 -0
  961. data/app/assets/node_modules/morris.js/README.md +234 -0
  962. data/app/assets/node_modules/morris.js/bower.json +20 -0
  963. data/app/assets/node_modules/morris.js/bower.travis.json +20 -0
  964. data/app/assets/node_modules/morris.js/examples/_template.html +18 -0
  965. data/app/assets/node_modules/morris.js/examples/area-as-line.html +31 -0
  966. data/app/assets/node_modules/morris.js/examples/area.html +34 -0
  967. data/app/assets/node_modules/morris.js/examples/bar-colors.html +44 -0
  968. data/app/assets/node_modules/morris.js/examples/bar-no-axes.html +31 -0
  969. data/app/assets/node_modules/morris.js/examples/bar.html +32 -0
  970. data/app/assets/node_modules/morris.js/examples/days.html +37 -0
  971. data/app/assets/node_modules/morris.js/examples/decimal-custom-hover.html +37 -0
  972. data/app/assets/node_modules/morris.js/examples/diagonal-xlabels-bar.html +38 -0
  973. data/app/assets/node_modules/morris.js/examples/diagonal-xlabels.html +38 -0
  974. data/app/assets/node_modules/morris.js/examples/donut-colors.html +38 -0
  975. data/app/assets/node_modules/morris.js/examples/donut-formatter.html +27 -0
  976. data/app/assets/node_modules/morris.js/examples/donut.html +29 -0
  977. data/app/assets/node_modules/morris.js/examples/dst.html +30 -0
  978. data/app/assets/node_modules/morris.js/examples/events.html +57 -0
  979. data/app/assets/node_modules/morris.js/examples/goals.html +33 -0
  980. data/app/assets/node_modules/morris.js/examples/lib/example.css +13 -0
  981. data/app/assets/node_modules/morris.js/examples/lib/example.js +4 -0
  982. data/app/assets/node_modules/morris.js/examples/months-no-smooth.html +38 -0
  983. data/app/assets/node_modules/morris.js/examples/negative.html +36 -0
  984. data/app/assets/node_modules/morris.js/examples/no-grid.html +38 -0
  985. data/app/assets/node_modules/morris.js/examples/non-continuous.html +42 -0
  986. data/app/assets/node_modules/morris.js/examples/non-date.html +37 -0
  987. data/app/assets/node_modules/morris.js/examples/quarters.html +54 -0
  988. data/app/assets/node_modules/morris.js/examples/resize.html +42 -0
  989. data/app/assets/node_modules/morris.js/examples/stacked_bars.html +31 -0
  990. data/app/assets/node_modules/morris.js/examples/timestamps.html +38 -0
  991. data/app/assets/node_modules/morris.js/examples/updating.html +49 -0
  992. data/app/assets/node_modules/morris.js/examples/weeks.html +53 -0
  993. data/app/assets/node_modules/morris.js/examples/years.html +37 -0
  994. data/app/assets/node_modules/morris.js/less/morris.core.less +27 -0
  995. data/app/assets/node_modules/morris.js/lib/morris.area.coffee +66 -0
  996. data/app/assets/node_modules/morris.js/lib/morris.bar.coffee +208 -0
  997. data/app/assets/node_modules/morris.js/lib/morris.coffee +43 -0
  998. data/app/assets/node_modules/morris.js/lib/morris.donut.coffee +213 -0
  999. data/app/assets/node_modules/morris.js/lib/morris.grid.coffee +499 -0
  1000. data/app/assets/node_modules/morris.js/lib/morris.hover.coffee +44 -0
  1001. data/app/assets/node_modules/morris.js/lib/morris.line.coffee +405 -0
  1002. data/app/assets/node_modules/morris.js/morris.css +2 -0
  1003. data/app/assets/node_modules/morris.js/morris.js +1892 -0
  1004. data/app/assets/node_modules/morris.js/morris.min.js +7 -0
  1005. data/app/assets/node_modules/morris.js/package.json +36 -0
  1006. data/app/assets/node_modules/morris.js/spec/lib/area/area_spec.coffee +60 -0
  1007. data/app/assets/node_modules/morris.js/spec/lib/bar/bar_spec.coffee +127 -0
  1008. data/app/assets/node_modules/morris.js/spec/lib/bar/colours.coffee +36 -0
  1009. data/app/assets/node_modules/morris.js/spec/lib/commas_spec.coffee +38 -0
  1010. data/app/assets/node_modules/morris.js/spec/lib/donut/donut_spec.coffee +76 -0
  1011. data/app/assets/node_modules/morris.js/spec/lib/grid/auto_grid_lines_spec.coffee +25 -0
  1012. data/app/assets/node_modules/morris.js/spec/lib/grid/set_data_spec.coffee +208 -0
  1013. data/app/assets/node_modules/morris.js/spec/lib/grid/y_label_format_spec.coffee +15 -0
  1014. data/app/assets/node_modules/morris.js/spec/lib/hover_spec.coffee +64 -0
  1015. data/app/assets/node_modules/morris.js/spec/lib/label_series_spec.coffee +186 -0
  1016. data/app/assets/node_modules/morris.js/spec/lib/line/line_spec.coffee +211 -0
  1017. data/app/assets/node_modules/morris.js/spec/lib/pad_spec.coffee +17 -0
  1018. data/app/assets/node_modules/morris.js/spec/lib/parse_time_spec.coffee +35 -0
  1019. data/app/assets/node_modules/morris.js/spec/specs.html +34 -0
  1020. data/app/assets/node_modules/morris.js/spec/support/placeholder.coffee +6 -0
  1021. data/app/assets/node_modules/morris.js/spec/viz/examples.js +56 -0
  1022. data/app/assets/node_modules/morris.js/spec/viz/exemplary/area0.png +0 -0
  1023. data/app/assets/node_modules/morris.js/spec/viz/exemplary/bar0.png +0 -0
  1024. data/app/assets/node_modules/morris.js/spec/viz/exemplary/line0.png +0 -0
  1025. data/app/assets/node_modules/morris.js/spec/viz/exemplary/stacked_bar0.png +0 -0
  1026. data/app/assets/node_modules/morris.js/spec/viz/run.sh +32 -0
  1027. data/app/assets/node_modules/morris.js/spec/viz/test.html +34 -0
  1028. data/app/assets/node_modules/morris.js/spec/viz/visual_specs.js +66 -0
  1029. data/app/assets/node_modules/nprogress/History.md +110 -0
  1030. data/app/assets/node_modules/nprogress/License.md +19 -0
  1031. data/app/assets/node_modules/nprogress/Notes.md +25 -0
  1032. data/app/assets/node_modules/nprogress/Readme.md +197 -0
  1033. data/app/assets/node_modules/nprogress/bower.json +27 -0
  1034. data/app/assets/node_modules/nprogress/component.json +19 -0
  1035. data/app/assets/node_modules/nprogress/nprogress.css +74 -0
  1036. data/app/assets/node_modules/nprogress/nprogress.js +476 -0
  1037. data/app/assets/node_modules/nprogress/package.json +47 -0
  1038. data/app/assets/node_modules/nprogress/test/component.html +26 -0
  1039. data/app/assets/node_modules/nprogress/test/test.js +175 -0
  1040. data/app/assets/node_modules/parchment/LICENSE +29 -0
  1041. data/app/assets/node_modules/parchment/README.md +274 -0
  1042. data/app/assets/node_modules/parchment/dist/parchment.js +1749 -0
  1043. data/app/assets/node_modules/parchment/dist/parchment.js.map +1 -0
  1044. data/app/assets/node_modules/parchment/dist/src/attributor/attributor.d.ts +17 -0
  1045. data/app/assets/node_modules/parchment/dist/src/attributor/class.d.ts +8 -0
  1046. data/app/assets/node_modules/parchment/dist/src/attributor/store.d.ts +15 -0
  1047. data/app/assets/node_modules/parchment/dist/src/attributor/style.d.ts +8 -0
  1048. data/app/assets/node_modules/parchment/dist/src/blot/abstract/blot.d.ts +63 -0
  1049. data/app/assets/node_modules/parchment/dist/src/blot/abstract/container.d.ts +40 -0
  1050. data/app/assets/node_modules/parchment/dist/src/blot/abstract/format.d.ts +18 -0
  1051. data/app/assets/node_modules/parchment/dist/src/blot/abstract/leaf.d.ts +11 -0
  1052. data/app/assets/node_modules/parchment/dist/src/blot/abstract/parent.d.ts +41 -0
  1053. data/app/assets/node_modules/parchment/dist/src/blot/abstract/shadow.d.ts +38 -0
  1054. data/app/assets/node_modules/parchment/dist/src/blot/block.d.ts +15 -0
  1055. data/app/assets/node_modules/parchment/dist/src/blot/embed.d.ts +11 -0
  1056. data/app/assets/node_modules/parchment/dist/src/blot/inline.d.ts +14 -0
  1057. data/app/assets/node_modules/parchment/dist/src/blot/scroll.d.ts +24 -0
  1058. data/app/assets/node_modules/parchment/dist/src/blot/text.d.ts +26 -0
  1059. data/app/assets/node_modules/parchment/dist/src/collection/linked-list.d.ts +19 -0
  1060. data/app/assets/node_modules/parchment/dist/src/collection/linked-node.d.ts +6 -0
  1061. data/app/assets/node_modules/parchment/dist/src/parchment.d.ts +35 -0
  1062. data/app/assets/node_modules/parchment/dist/src/registry.d.ts +31 -0
  1063. data/app/assets/node_modules/parchment/package.json +44 -0
  1064. data/app/assets/node_modules/parchment/src/attributor/attributor.ts +61 -0
  1065. data/app/assets/node_modules/parchment/src/attributor/class.ts +44 -0
  1066. data/app/assets/node_modules/parchment/src/attributor/store.ts +73 -0
  1067. data/app/assets/node_modules/parchment/src/attributor/style.ts +44 -0
  1068. data/app/assets/node_modules/parchment/src/blot/abstract/blot.ts +58 -0
  1069. data/app/assets/node_modules/parchment/src/blot/abstract/container.ts +268 -0
  1070. data/app/assets/node_modules/parchment/src/blot/abstract/format.ts +71 -0
  1071. data/app/assets/node_modules/parchment/src/blot/abstract/leaf.ts +33 -0
  1072. data/app/assets/node_modules/parchment/src/blot/abstract/shadow.ts +174 -0
  1073. data/app/assets/node_modules/parchment/src/blot/block.ts +53 -0
  1074. data/app/assets/node_modules/parchment/src/blot/embed.ts +29 -0
  1075. data/app/assets/node_modules/parchment/src/blot/inline.ts +64 -0
  1076. data/app/assets/node_modules/parchment/src/blot/scroll.ts +166 -0
  1077. data/app/assets/node_modules/parchment/src/blot/text.ts +93 -0
  1078. data/app/assets/node_modules/parchment/src/collection/linked-list.ts +143 -0
  1079. data/app/assets/node_modules/parchment/src/collection/linked-node.ts +8 -0
  1080. data/app/assets/node_modules/parchment/src/parchment.ts +46 -0
  1081. data/app/assets/node_modules/parchment/src/registry.ts +133 -0
  1082. data/app/assets/node_modules/parchment/tsconfig.json +9 -0
  1083. data/app/assets/node_modules/popper.js/README.md +219 -0
  1084. data/app/assets/node_modules/popper.js/dist/esm/popper-utils.js +1093 -0
  1085. data/app/assets/node_modules/popper.js/dist/esm/popper-utils.js.map +1 -0
  1086. data/app/assets/node_modules/popper.js/dist/esm/popper-utils.min.js +5 -0
  1087. data/app/assets/node_modules/popper.js/dist/esm/popper-utils.min.js.map +1 -0
  1088. data/app/assets/node_modules/popper.js/dist/esm/popper.js +2520 -0
  1089. data/app/assets/node_modules/popper.js/dist/esm/popper.js.map +1 -0
  1090. data/app/assets/node_modules/popper.js/dist/esm/popper.min.js +5 -0
  1091. data/app/assets/node_modules/popper.js/dist/esm/popper.min.js.map +1 -0
  1092. data/app/assets/node_modules/popper.js/dist/popper-utils.js +1042 -0
  1093. data/app/assets/node_modules/popper.js/dist/popper-utils.js.map +1 -0
  1094. data/app/assets/node_modules/popper.js/dist/popper-utils.min.js +5 -0
  1095. data/app/assets/node_modules/popper.js/dist/popper-utils.min.js.map +1 -0
  1096. data/app/assets/node_modules/popper.js/dist/popper.js +2372 -0
  1097. data/app/assets/node_modules/popper.js/dist/popper.js.map +1 -0
  1098. data/app/assets/node_modules/popper.js/dist/popper.min.js +5 -0
  1099. data/app/assets/node_modules/popper.js/dist/popper.min.js.map +1 -0
  1100. data/app/assets/node_modules/popper.js/dist/umd/popper-utils.js +1131 -0
  1101. data/app/assets/node_modules/popper.js/dist/umd/popper-utils.js.map +1 -0
  1102. data/app/assets/node_modules/popper.js/dist/umd/popper-utils.min.js +5 -0
  1103. data/app/assets/node_modules/popper.js/dist/umd/popper-utils.min.js.map +1 -0
  1104. data/app/assets/node_modules/popper.js/dist/umd/popper.js +2528 -0
  1105. data/app/assets/node_modules/popper.js/dist/umd/popper.js.map +1 -0
  1106. data/app/assets/node_modules/popper.js/dist/umd/popper.min.js +5 -0
  1107. data/app/assets/node_modules/popper.js/dist/umd/popper.min.js.map +1 -0
  1108. data/app/assets/node_modules/popper.js/index.d.ts +159 -0
  1109. data/app/assets/node_modules/popper.js/package.json +54 -0
  1110. data/app/assets/node_modules/quill/CHANGELOG.md +734 -0
  1111. data/app/assets/node_modules/quill/LICENSE +30 -0
  1112. data/app/assets/node_modules/quill/README.md +109 -0
  1113. data/app/assets/node_modules/quill/assets/base.styl +304 -0
  1114. data/app/assets/node_modules/quill/assets/bubble/toolbar.styl +14 -0
  1115. data/app/assets/node_modules/quill/assets/bubble/tooltip.styl +49 -0
  1116. data/app/assets/node_modules/quill/assets/bubble.styl +45 -0
  1117. data/app/assets/node_modules/quill/assets/core.styl +183 -0
  1118. data/app/assets/node_modules/quill/assets/favicon.png +0 -0
  1119. data/app/assets/node_modules/quill/assets/icons/align-center.svg +5 -0
  1120. data/app/assets/node_modules/quill/assets/icons/align-justify.svg +5 -0
  1121. data/app/assets/node_modules/quill/assets/icons/align-left.svg +5 -0
  1122. data/app/assets/node_modules/quill/assets/icons/align-right.svg +5 -0
  1123. data/app/assets/node_modules/quill/assets/icons/attachment.svg +3 -0
  1124. data/app/assets/node_modules/quill/assets/icons/audio.svg +5 -0
  1125. data/app/assets/node_modules/quill/assets/icons/authorship.svg +5 -0
  1126. data/app/assets/node_modules/quill/assets/icons/background.svg +52 -0
  1127. data/app/assets/node_modules/quill/assets/icons/blockquote.svg +6 -0
  1128. data/app/assets/node_modules/quill/assets/icons/bold.svg +4 -0
  1129. data/app/assets/node_modules/quill/assets/icons/clean.svg +7 -0
  1130. data/app/assets/node_modules/quill/assets/icons/code.svg +5 -0
  1131. data/app/assets/node_modules/quill/assets/icons/color.svg +5 -0
  1132. data/app/assets/node_modules/quill/assets/icons/comment.svg +3 -0
  1133. data/app/assets/node_modules/quill/assets/icons/direction-ltr.svg +7 -0
  1134. data/app/assets/node_modules/quill/assets/icons/direction-rtl.svg +7 -0
  1135. data/app/assets/node_modules/quill/assets/icons/dropdown.svg +4 -0
  1136. data/app/assets/node_modules/quill/assets/icons/embed.svg +3 -0
  1137. data/app/assets/node_modules/quill/assets/icons/emoji.svg +6 -0
  1138. data/app/assets/node_modules/quill/assets/icons/float-center.svg +5 -0
  1139. data/app/assets/node_modules/quill/assets/icons/float-full.svg +5 -0
  1140. data/app/assets/node_modules/quill/assets/icons/float-left.svg +7 -0
  1141. data/app/assets/node_modules/quill/assets/icons/float-right.svg +7 -0
  1142. data/app/assets/node_modules/quill/assets/icons/font.svg +5 -0
  1143. data/app/assets/node_modules/quill/assets/icons/formula.svg +5 -0
  1144. data/app/assets/node_modules/quill/assets/icons/hashtag.svg +6 -0
  1145. data/app/assets/node_modules/quill/assets/icons/header-2.svg +3 -0
  1146. data/app/assets/node_modules/quill/assets/icons/header-3.svg +3 -0
  1147. data/app/assets/node_modules/quill/assets/icons/header-4.svg +3 -0
  1148. data/app/assets/node_modules/quill/assets/icons/header-5.svg +3 -0
  1149. data/app/assets/node_modules/quill/assets/icons/header-6.svg +3 -0
  1150. data/app/assets/node_modules/quill/assets/icons/header.svg +3 -0
  1151. data/app/assets/node_modules/quill/assets/icons/horizontal-rule.svg +4 -0
  1152. data/app/assets/node_modules/quill/assets/icons/image.svg +5 -0
  1153. data/app/assets/node_modules/quill/assets/icons/indent.svg +6 -0
  1154. data/app/assets/node_modules/quill/assets/icons/italic.svg +5 -0
  1155. data/app/assets/node_modules/quill/assets/icons/link.svg +5 -0
  1156. data/app/assets/node_modules/quill/assets/icons/list-bullet.svg +8 -0
  1157. data/app/assets/node_modules/quill/assets/icons/list-check.svg +8 -0
  1158. data/app/assets/node_modules/quill/assets/icons/list-ordered.svg +9 -0
  1159. data/app/assets/node_modules/quill/assets/icons/map.svg +5 -0
  1160. data/app/assets/node_modules/quill/assets/icons/mention.svg +4 -0
  1161. data/app/assets/node_modules/quill/assets/icons/more.svg +3 -0
  1162. data/app/assets/node_modules/quill/assets/icons/outdent.svg +6 -0
  1163. data/app/assets/node_modules/quill/assets/icons/redo.svg +4 -0
  1164. data/app/assets/node_modules/quill/assets/icons/size-decrease.svg +5 -0
  1165. data/app/assets/node_modules/quill/assets/icons/size-increase.svg +6 -0
  1166. data/app/assets/node_modules/quill/assets/icons/size.svg +6 -0
  1167. data/app/assets/node_modules/quill/assets/icons/spacing.svg +9 -0
  1168. data/app/assets/node_modules/quill/assets/icons/speech.svg +6 -0
  1169. data/app/assets/node_modules/quill/assets/icons/strike.svg +5 -0
  1170. data/app/assets/node_modules/quill/assets/icons/subscript.svg +4 -0
  1171. data/app/assets/node_modules/quill/assets/icons/superscript.svg +4 -0
  1172. data/app/assets/node_modules/quill/assets/icons/table-border-all.svg +5 -0
  1173. data/app/assets/node_modules/quill/assets/icons/table-border-bottom.svg +28 -0
  1174. data/app/assets/node_modules/quill/assets/icons/table-border-left.svg +28 -0
  1175. data/app/assets/node_modules/quill/assets/icons/table-border-none.svg +25 -0
  1176. data/app/assets/node_modules/quill/assets/icons/table-border-outside.svg +35 -0
  1177. data/app/assets/node_modules/quill/assets/icons/table-border-right.svg +28 -0
  1178. data/app/assets/node_modules/quill/assets/icons/table-border-top.svg +28 -0
  1179. data/app/assets/node_modules/quill/assets/icons/table-delete-cells.svg +13 -0
  1180. data/app/assets/node_modules/quill/assets/icons/table-delete-columns.svg +8 -0
  1181. data/app/assets/node_modules/quill/assets/icons/table-delete-rows.svg +9 -0
  1182. data/app/assets/node_modules/quill/assets/icons/table-insert-cells.svg +13 -0
  1183. data/app/assets/node_modules/quill/assets/icons/table-insert-columns.svg +8 -0
  1184. data/app/assets/node_modules/quill/assets/icons/table-insert-rows.svg +9 -0
  1185. data/app/assets/node_modules/quill/assets/icons/table-merge-cells.svg +4 -0
  1186. data/app/assets/node_modules/quill/assets/icons/table-unmerge-cells.svg +7 -0
  1187. data/app/assets/node_modules/quill/assets/icons/table.svg +11 -0
  1188. data/app/assets/node_modules/quill/assets/icons/underline.svg +4 -0
  1189. data/app/assets/node_modules/quill/assets/icons/undo.svg +4 -0
  1190. data/app/assets/node_modules/quill/assets/icons/video.svg +14 -0
  1191. data/app/assets/node_modules/quill/assets/snow/toolbar.styl +26 -0
  1192. data/app/assets/node_modules/quill/assets/snow/tooltip.styl +53 -0
  1193. data/app/assets/node_modules/quill/assets/snow.styl +18 -0
  1194. data/app/assets/node_modules/quill/blots/block.js +174 -0
  1195. data/app/assets/node_modules/quill/blots/break.js +29 -0
  1196. data/app/assets/node_modules/quill/blots/container.js +9 -0
  1197. data/app/assets/node_modules/quill/blots/cursor.js +116 -0
  1198. data/app/assets/node_modules/quill/blots/embed.js +79 -0
  1199. data/app/assets/node_modules/quill/blots/inline.js +50 -0
  1200. data/app/assets/node_modules/quill/blots/scroll.js +173 -0
  1201. data/app/assets/node_modules/quill/blots/text.js +5 -0
  1202. data/app/assets/node_modules/quill/core/editor.js +267 -0
  1203. data/app/assets/node_modules/quill/core/emitter.js +63 -0
  1204. data/app/assets/node_modules/quill/core/logger.js +22 -0
  1205. data/app/assets/node_modules/quill/core/module.js +10 -0
  1206. data/app/assets/node_modules/quill/core/polyfill.js +63 -0
  1207. data/app/assets/node_modules/quill/core/quill.js +506 -0
  1208. data/app/assets/node_modules/quill/core/selection.js +355 -0
  1209. data/app/assets/node_modules/quill/core/theme.js +30 -0
  1210. data/app/assets/node_modules/quill/core.js +36 -0
  1211. data/app/assets/node_modules/quill/dist/quill.bubble.css +952 -0
  1212. data/app/assets/node_modules/quill/dist/quill.core.css +397 -0
  1213. data/app/assets/node_modules/quill/dist/quill.core.js +8522 -0
  1214. data/app/assets/node_modules/quill/dist/quill.js +11489 -0
  1215. data/app/assets/node_modules/quill/dist/quill.min.js +8 -0
  1216. data/app/assets/node_modules/quill/dist/quill.min.js.map +1 -0
  1217. data/app/assets/node_modules/quill/dist/quill.snow.css +945 -0
  1218. data/app/assets/node_modules/quill/formats/align.js +12 -0
  1219. data/app/assets/node_modules/quill/formats/background.js +11 -0
  1220. data/app/assets/node_modules/quill/formats/blockquote.js +9 -0
  1221. data/app/assets/node_modules/quill/formats/bold.js +22 -0
  1222. data/app/assets/node_modules/quill/formats/code.js +118 -0
  1223. data/app/assets/node_modules/quill/formats/color.js +21 -0
  1224. data/app/assets/node_modules/quill/formats/direction.js +12 -0
  1225. data/app/assets/node_modules/quill/formats/font.js +18 -0
  1226. data/app/assets/node_modules/quill/formats/header.js +13 -0
  1227. data/app/assets/node_modules/quill/formats/image.js +57 -0
  1228. data/app/assets/node_modules/quill/formats/indent.js +31 -0
  1229. data/app/assets/node_modules/quill/formats/italic.js +7 -0
  1230. data/app/assets/node_modules/quill/formats/link.js +41 -0
  1231. data/app/assets/node_modules/quill/formats/list.js +130 -0
  1232. data/app/assets/node_modules/quill/formats/script.js +23 -0
  1233. data/app/assets/node_modules/quill/formats/size.js +12 -0
  1234. data/app/assets/node_modules/quill/formats/strike.js +7 -0
  1235. data/app/assets/node_modules/quill/formats/underline.js +7 -0
  1236. data/app/assets/node_modules/quill/formats/video.js +53 -0
  1237. data/app/assets/node_modules/quill/modules/clipboard.js +358 -0
  1238. data/app/assets/node_modules/quill/modules/formula.js +42 -0
  1239. data/app/assets/node_modules/quill/modules/history.js +120 -0
  1240. data/app/assets/node_modules/quill/modules/keyboard.js +494 -0
  1241. data/app/assets/node_modules/quill/modules/syntax.js +81 -0
  1242. data/app/assets/node_modules/quill/modules/toolbar.js +261 -0
  1243. data/app/assets/node_modules/quill/package.json +99 -0
  1244. data/app/assets/node_modules/quill/quill.js +104 -0
  1245. data/app/assets/node_modules/quill/themes/base.js +264 -0
  1246. data/app/assets/node_modules/quill/themes/bubble.js +111 -0
  1247. data/app/assets/node_modules/quill/themes/snow.js +120 -0
  1248. data/app/assets/node_modules/quill/ui/color-picker.js +35 -0
  1249. data/app/assets/node_modules/quill/ui/icon-picker.js +23 -0
  1250. data/app/assets/node_modules/quill/ui/icons.js +49 -0
  1251. data/app/assets/node_modules/quill/ui/picker.js +186 -0
  1252. data/app/assets/node_modules/quill/ui/tooltip.js +53 -0
  1253. data/app/assets/node_modules/quill-delta/CHANGELOG.md +48 -0
  1254. data/app/assets/node_modules/quill-delta/LICENSE +21 -0
  1255. data/app/assets/node_modules/quill-delta/README.md +639 -0
  1256. data/app/assets/node_modules/quill-delta/lib/delta.js +325 -0
  1257. data/app/assets/node_modules/quill-delta/lib/op.js +139 -0
  1258. data/app/assets/node_modules/quill-delta/package.json +40 -0
  1259. data/app/assets/node_modules/raphael/CONTRIBUTING.md +22 -0
  1260. data/app/assets/node_modules/raphael/Gruntfile.js +72 -0
  1261. data/app/assets/node_modules/raphael/README.md +75 -0
  1262. data/app/assets/node_modules/raphael/bower.json +31 -0
  1263. data/app/assets/node_modules/raphael/dev/banner.txt +8 -0
  1264. data/app/assets/node_modules/raphael/dev/raphael.amd.js +5 -0
  1265. data/app/assets/node_modules/raphael/dev/raphael.core.js +5405 -0
  1266. data/app/assets/node_modules/raphael/dev/raphael.svg.js +1424 -0
  1267. data/app/assets/node_modules/raphael/dev/raphael.vml.js +999 -0
  1268. data/app/assets/node_modules/raphael/dev/raphaelTest.html +39 -0
  1269. data/app/assets/node_modules/raphael/dev/test/index.html +31 -0
  1270. data/app/assets/node_modules/raphael/dev/test/svg/dom.js +317 -0
  1271. data/app/assets/node_modules/raphael/dev/test/vml/dom.js +5 -0
  1272. data/app/assets/node_modules/raphael/history.md +155 -0
  1273. data/app/assets/node_modules/raphael/license.txt +21 -0
  1274. data/app/assets/node_modules/raphael/package.json +47 -0
  1275. data/app/assets/node_modules/raphael/raphael.js +8353 -0
  1276. data/app/assets/node_modules/raphael/raphael.min.js +3 -0
  1277. data/app/assets/node_modules/raphael/raphael.no-deps.js +7927 -0
  1278. data/app/assets/node_modules/raphael/raphael.no-deps.min.js +3 -0
  1279. data/app/assets/node_modules/raphael/webpack.config.js +64 -0
  1280. data/app/assets/node_modules/raphael/yarn.lock +2012 -0
  1281. data/app/assets/node_modules/responsive-toolkit/CHANGELOG.md +70 -0
  1282. data/app/assets/node_modules/responsive-toolkit/LICENSE +21 -0
  1283. data/app/assets/node_modules/responsive-toolkit/README.md +155 -0
  1284. data/app/assets/node_modules/responsive-toolkit/bower.json +22 -0
  1285. data/app/assets/node_modules/responsive-toolkit/demos/bootstrap/index.html +53 -0
  1286. data/app/assets/node_modules/responsive-toolkit/demos/bootstrap/main.js +42 -0
  1287. data/app/assets/node_modules/responsive-toolkit/demos/bootstrap/style.css +109 -0
  1288. data/app/assets/node_modules/responsive-toolkit/demos/custom/index.html +23 -0
  1289. data/app/assets/node_modules/responsive-toolkit/demos/custom/main.js +36 -0
  1290. data/app/assets/node_modules/responsive-toolkit/demos/custom/style.css +19 -0
  1291. data/app/assets/node_modules/responsive-toolkit/demos/foundation/index.html +25 -0
  1292. data/app/assets/node_modules/responsive-toolkit/demos/foundation/main.js +28 -0
  1293. data/app/assets/node_modules/responsive-toolkit/demos/foundation/style.css +3 -0
  1294. data/app/assets/node_modules/responsive-toolkit/dist/bootstrap-toolkit-1.5.0.js +49 -0
  1295. data/app/assets/node_modules/responsive-toolkit/dist/bootstrap-toolkit-1.5.0.min.js +8 -0
  1296. data/app/assets/node_modules/responsive-toolkit/dist/bootstrap-toolkit.js +238 -0
  1297. data/app/assets/node_modules/responsive-toolkit/dist/bootstrap-toolkit.min.js +8 -0
  1298. data/app/assets/node_modules/responsive-toolkit/gulpfile.js +38 -0
  1299. data/app/assets/node_modules/responsive-toolkit/package.json +28 -0
  1300. data/app/assets/node_modules/responsive-toolkit/src/bootstrap-toolkit.js +238 -0
  1301. data/app/assets/node_modules/sortablejs/README.md +636 -0
  1302. data/app/assets/node_modules/sortablejs/Sortable.js +1540 -0
  1303. data/app/assets/node_modules/sortablejs/Sortable.min.js +2 -0
  1304. data/app/assets/node_modules/sortablejs/package.json +48 -0
  1305. data/app/assets/node_modules/tether/CHANGELOG.md +13 -0
  1306. data/app/assets/node_modules/tether/CONTRIBUTING.md +59 -0
  1307. data/app/assets/node_modules/tether/LICENSE +8 -0
  1308. data/app/assets/node_modules/tether/README.md +116 -0
  1309. data/app/assets/node_modules/tether/bower.json +26 -0
  1310. data/app/assets/node_modules/tether/component.json +22 -0
  1311. data/app/assets/node_modules/tether/dist/css/tether-theme-arrows-dark.css +150 -0
  1312. data/app/assets/node_modules/tether/dist/css/tether-theme-arrows-dark.min.css +1 -0
  1313. data/app/assets/node_modules/tether/dist/css/tether-theme-arrows.css +153 -0
  1314. data/app/assets/node_modules/tether/dist/css/tether-theme-arrows.min.css +1 -0
  1315. data/app/assets/node_modules/tether/dist/css/tether-theme-basic.css +21 -0
  1316. data/app/assets/node_modules/tether/dist/css/tether-theme-basic.min.css +1 -0
  1317. data/app/assets/node_modules/tether/dist/css/tether.css +8 -0
  1318. data/app/assets/node_modules/tether/dist/css/tether.min.css +1 -0
  1319. data/app/assets/node_modules/tether/dist/js/tether.js +1813 -0
  1320. data/app/assets/node_modules/tether/dist/js/tether.min.js +1 -0
  1321. data/app/assets/node_modules/tether/docs/1-Overview/1-why_you_should_use_tether.md +43 -0
  1322. data/app/assets/node_modules/tether/docs/1-Overview/2-repositioning.md +46 -0
  1323. data/app/assets/node_modules/tether/docs/1-Overview/3-why_we_dont_support_IE_8.md +47 -0
  1324. data/app/assets/node_modules/tether/docs/2-Examples/1-list_of_examples.md +27 -0
  1325. data/app/assets/node_modules/tether/docs/2-Examples/2-projects_using_tether.md +45 -0
  1326. data/app/assets/node_modules/tether/docs/3-Advanced/1-embedding_tether.md +9 -0
  1327. data/app/assets/node_modules/tether/docs/3-Advanced/2-extending_tether.md +54 -0
  1328. data/app/assets/node_modules/tether/docs/coffee/intro.coffee +113 -0
  1329. data/app/assets/node_modules/tether/docs/css/intro.css +218 -0
  1330. data/app/assets/node_modules/tether/docs/intro.md +591 -0
  1331. data/app/assets/node_modules/tether/docs/js/intro.js +117 -0
  1332. data/app/assets/node_modules/tether/docs/js/markAttachment.js +51 -0
  1333. data/app/assets/node_modules/tether/docs/sass/intro.sass +233 -0
  1334. data/app/assets/node_modules/tether/docs/welcome/browser-demo.html +76 -0
  1335. data/app/assets/node_modules/tether/docs/welcome/coffee/welcome.coffee +212 -0
  1336. data/app/assets/node_modules/tether/docs/welcome/css/browser-demo.css +86 -0
  1337. data/app/assets/node_modules/tether/docs/welcome/css/prism.css +2 -0
  1338. data/app/assets/node_modules/tether/docs/welcome/css/welcome.css +247 -0
  1339. data/app/assets/node_modules/tether/docs/welcome/index.html +226 -0
  1340. data/app/assets/node_modules/tether/docs/welcome/js/drop.js +239 -0
  1341. data/app/assets/node_modules/tether/docs/welcome/js/jquery.js +9597 -0
  1342. data/app/assets/node_modules/tether/docs/welcome/js/log.js +134 -0
  1343. data/app/assets/node_modules/tether/docs/welcome/js/tether-v0.1.3.js +2 -0
  1344. data/app/assets/node_modules/tether/docs/welcome/js/welcome.js +193 -0
  1345. data/app/assets/node_modules/tether/docs/welcome/sass/_inline-block.sass +6 -0
  1346. data/app/assets/node_modules/tether/docs/welcome/sass/browser-demo.sass +93 -0
  1347. data/app/assets/node_modules/tether/docs/welcome/sass/welcome.sass +285 -0
  1348. data/app/assets/node_modules/tether/examples/chosen/chosen-sprite.png +0 -0
  1349. data/app/assets/node_modules/tether/examples/chosen/chosen-sprite@2x.png +0 -0
  1350. data/app/assets/node_modules/tether/examples/chosen/chosen.css +430 -0
  1351. data/app/assets/node_modules/tether/examples/chosen/chosen.js +1166 -0
  1352. data/app/assets/node_modules/tether/examples/chosen/index.html +110 -0
  1353. data/app/assets/node_modules/tether/examples/common/css/style.css +48 -0
  1354. data/app/assets/node_modules/tether/examples/content-visible/index.html +64 -0
  1355. data/app/assets/node_modules/tether/examples/dolls/dolls.css +18 -0
  1356. data/app/assets/node_modules/tether/examples/dolls/dolls.js +83 -0
  1357. data/app/assets/node_modules/tether/examples/dolls/index.html +7 -0
  1358. data/app/assets/node_modules/tether/examples/element-scroll/index.html +499 -0
  1359. data/app/assets/node_modules/tether/examples/enable-disable/index.html +37 -0
  1360. data/app/assets/node_modules/tether/examples/facebook/facebook.css +86 -0
  1361. data/app/assets/node_modules/tether/examples/facebook/index.html +209 -0
  1362. data/app/assets/node_modules/tether/examples/out-of-bounds/index.html +38 -0
  1363. data/app/assets/node_modules/tether/examples/pin/index.html +30 -0
  1364. data/app/assets/node_modules/tether/examples/resources/css/base.css +10 -0
  1365. data/app/assets/node_modules/tether/examples/resources/js/jquery.js +9597 -0
  1366. data/app/assets/node_modules/tether/examples/resources/js/log.js +134 -0
  1367. data/app/assets/node_modules/tether/examples/scroll/index.html +922 -0
  1368. data/app/assets/node_modules/tether/examples/simple/index.html +30 -0
  1369. data/app/assets/node_modules/tether/examples/testbed/index.html +36 -0
  1370. data/app/assets/node_modules/tether/examples/tooltip/index.html +86 -0
  1371. data/app/assets/node_modules/tether/examples/viewport/colors.css +145 -0
  1372. data/app/assets/node_modules/tether/examples/viewport/index.html +70 -0
  1373. data/app/assets/node_modules/tether/gulpfile.js +97 -0
  1374. data/app/assets/node_modules/tether/package.json +40 -0
  1375. data/app/assets/node_modules/tether/src/css/helpers/_tether-theme-arrows.sass +192 -0
  1376. data/app/assets/node_modules/tether/src/css/helpers/_tether-theme-basic.sass +14 -0
  1377. data/app/assets/node_modules/tether/src/css/helpers/_tether.sass +12 -0
  1378. data/app/assets/node_modules/tether/src/css/mixins/_inline-block.sass +6 -0
  1379. data/app/assets/node_modules/tether/src/css/mixins/_pie-clearfix.sass +7 -0
  1380. data/app/assets/node_modules/tether/src/css/tether-theme-arrows-dark.sass +12 -0
  1381. data/app/assets/node_modules/tether/src/css/tether-theme-arrows.sass +12 -0
  1382. data/app/assets/node_modules/tether/src/css/tether-theme-basic.sass +10 -0
  1383. data/app/assets/node_modules/tether/src/css/tether.sass +5 -0
  1384. data/app/assets/node_modules/tether/src/js/abutment.js +61 -0
  1385. data/app/assets/node_modules/tether/src/js/constraint.js +366 -0
  1386. data/app/assets/node_modules/tether/src/js/markAttachment.js +46 -0
  1387. data/app/assets/node_modules/tether/src/js/shift.js +32 -0
  1388. data/app/assets/node_modules/tether/src/js/tether.js +811 -0
  1389. data/app/assets/node_modules/tether/src/js/utils.js +370 -0
  1390. data/app/assets/node_modules/tinycolor2/Gruntfile.js +59 -0
  1391. data/app/assets/node_modules/tinycolor2/LICENSE +20 -0
  1392. data/app/assets/node_modules/tinycolor2/README.md +469 -0
  1393. data/app/assets/node_modules/tinycolor2/bower.json +9 -0
  1394. data/app/assets/node_modules/tinycolor2/demo/demo.css +23 -0
  1395. data/app/assets/node_modules/tinycolor2/demo/jquery-1.9.1.js +9597 -0
  1396. data/app/assets/node_modules/tinycolor2/dist/tinycolor-min.js +4 -0
  1397. data/app/assets/node_modules/tinycolor2/docs/docco.css +192 -0
  1398. data/app/assets/node_modules/tinycolor2/docs/tinycolor.html +1023 -0
  1399. data/app/assets/node_modules/tinycolor2/index.html +207 -0
  1400. data/app/assets/node_modules/tinycolor2/package.json +31 -0
  1401. data/app/assets/node_modules/tinycolor2/test/index.html +19 -0
  1402. data/app/assets/node_modules/tinycolor2/test/qunit.css +244 -0
  1403. data/app/assets/node_modules/tinycolor2/test/qunit.js +2152 -0
  1404. data/app/assets/node_modules/tinycolor2/test/test.js +791 -0
  1405. data/app/assets/node_modules/tinycolor2/tinycolor.js +1195 -0
  1406. data/app/assets/stylesheets/rails_modular_admin/application.scss +2 -3
  1407. data/app/assets/stylesheets/rails_modular_admin.scss +0 -1
  1408. data/config/initializers/assets.rb +4 -29
  1409. data/lib/rails_modular_admin/engine.rb +30 -2
  1410. data/lib/rails_modular_admin/version.rb +1 -1
  1411. metadata +1419 -8
  1412. data/app/controllers/rails_modular_admin/application_controller.rb +0 -5
  1413. data/app/helpers/rails_modular_admin/application_helper.rb +0 -4
  1414. data/app/jobs/rails_modular_admin/application_job.rb +0 -4
  1415. data/app/mailers/rails_modular_admin/application_mailer.rb +0 -6
  1416. data/app/models/rails_modular_admin/application_record.rb +0 -5
@@ -0,0 +1,3526 @@
1
+ "use strict";
2
+
3
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
4
+
5
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
6
+
7
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
8
+
9
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
10
+
11
+ /*
12
+ *
13
+ * More info at [www.dropzonejs.com](http://www.dropzonejs.com)
14
+ *
15
+ * Copyright (c) 2012, Matias Meno
16
+ *
17
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
18
+ * of this software and associated documentation files (the "Software"), to deal
19
+ * in the Software without restriction, including without limitation the rights
20
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
21
+ * copies of the Software, and to permit persons to whom the Software is
22
+ * furnished to do so, subject to the following conditions:
23
+ *
24
+ * The above copyright notice and this permission notice shall be included in
25
+ * all copies or substantial portions of the Software.
26
+ *
27
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
28
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
29
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
30
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
31
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
32
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
33
+ * THE SOFTWARE.
34
+ *
35
+ */
36
+
37
+ // The Emitter class provides the ability to call `.on()` on Dropzone to listen
38
+ // to events.
39
+ // It is strongly based on component's emitter class, and I removed the
40
+ // functionality because of the dependency hell with different frameworks.
41
+ var Emitter = function () {
42
+ function Emitter() {
43
+ _classCallCheck(this, Emitter);
44
+ }
45
+
46
+ _createClass(Emitter, [{
47
+ key: "on",
48
+
49
+ // Add an event listener for given event
50
+ value: function on(event, fn) {
51
+ this._callbacks = this._callbacks || {};
52
+ // Create namespace for this event
53
+ if (!this._callbacks[event]) {
54
+ this._callbacks[event] = [];
55
+ }
56
+ this._callbacks[event].push(fn);
57
+ return this;
58
+ }
59
+ }, {
60
+ key: "emit",
61
+ value: function emit(event) {
62
+ this._callbacks = this._callbacks || {};
63
+ var callbacks = this._callbacks[event];
64
+
65
+ if (callbacks) {
66
+ for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
67
+ args[_key - 1] = arguments[_key];
68
+ }
69
+
70
+ for (var _iterator = callbacks, _isArray = true, _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
71
+ var _ref;
72
+
73
+ if (_isArray) {
74
+ if (_i >= _iterator.length) break;
75
+ _ref = _iterator[_i++];
76
+ } else {
77
+ _i = _iterator.next();
78
+ if (_i.done) break;
79
+ _ref = _i.value;
80
+ }
81
+
82
+ var callback = _ref;
83
+
84
+ callback.apply(this, args);
85
+ }
86
+ }
87
+
88
+ return this;
89
+ }
90
+
91
+ // Remove event listener for given event. If fn is not provided, all event
92
+ // listeners for that event will be removed. If neither is provided, all
93
+ // event listeners will be removed.
94
+
95
+ }, {
96
+ key: "off",
97
+ value: function off(event, fn) {
98
+ if (!this._callbacks || arguments.length === 0) {
99
+ this._callbacks = {};
100
+ return this;
101
+ }
102
+
103
+ // specific event
104
+ var callbacks = this._callbacks[event];
105
+ if (!callbacks) {
106
+ return this;
107
+ }
108
+
109
+ // remove all handlers
110
+ if (arguments.length === 1) {
111
+ delete this._callbacks[event];
112
+ return this;
113
+ }
114
+
115
+ // remove specific handler
116
+ for (var i = 0; i < callbacks.length; i++) {
117
+ var callback = callbacks[i];
118
+ if (callback === fn) {
119
+ callbacks.splice(i, 1);
120
+ break;
121
+ }
122
+ }
123
+
124
+ return this;
125
+ }
126
+ }]);
127
+
128
+ return Emitter;
129
+ }();
130
+
131
+ var Dropzone = function (_Emitter) {
132
+ _inherits(Dropzone, _Emitter);
133
+
134
+ _createClass(Dropzone, null, [{
135
+ key: "initClass",
136
+ value: function initClass() {
137
+
138
+ // Exposing the emitter class, mainly for tests
139
+ this.prototype.Emitter = Emitter;
140
+
141
+ /*
142
+ This is a list of all available events you can register on a dropzone object.
143
+ You can register an event handler like this:
144
+ dropzone.on("dragEnter", function() { });
145
+ */
146
+ this.prototype.events = ["drop", "dragstart", "dragend", "dragenter", "dragover", "dragleave", "addedfile", "addedfiles", "removedfile", "thumbnail", "error", "errormultiple", "processing", "processingmultiple", "uploadprogress", "totaluploadprogress", "sending", "sendingmultiple", "success", "successmultiple", "canceled", "canceledmultiple", "complete", "completemultiple", "reset", "maxfilesexceeded", "maxfilesreached", "queuecomplete"];
147
+
148
+ this.prototype.defaultOptions = {
149
+ /**
150
+ * Has to be specified on elements other than form (or when the form
151
+ * doesn't have an `action` attribute). You can also
152
+ * provide a function that will be called with `files` and
153
+ * must return the url (since `v3.12.0`)
154
+ */
155
+ url: null,
156
+
157
+ /**
158
+ * Can be changed to `"put"` if necessary. You can also provide a function
159
+ * that will be called with `files` and must return the method (since `v3.12.0`).
160
+ */
161
+ method: "post",
162
+
163
+ /**
164
+ * Will be set on the XHRequest.
165
+ */
166
+ withCredentials: false,
167
+
168
+ /**
169
+ * The timeout for the XHR requests in milliseconds (since `v4.4.0`).
170
+ */
171
+ timeout: 30000,
172
+
173
+ /**
174
+ * How many file uploads to process in parallel (See the
175
+ * Enqueuing file uploads* documentation section for more info)
176
+ */
177
+ parallelUploads: 2,
178
+
179
+ /**
180
+ * Whether to send multiple files in one request. If
181
+ * this it set to true, then the fallback file input element will
182
+ * have the `multiple` attribute as well. This option will
183
+ * also trigger additional events (like `processingmultiple`). See the events
184
+ * documentation section for more information.
185
+ */
186
+ uploadMultiple: false,
187
+
188
+ /**
189
+ * Whether you want files to be uploaded in chunks to your server. This can't be
190
+ * used in combination with `uploadMultiple`.
191
+ *
192
+ * See [chunksUploaded](#config-chunksUploaded) for the callback to finalise an upload.
193
+ */
194
+ chunking: false,
195
+
196
+ /**
197
+ * If `chunking` is enabled, this defines whether **every** file should be chunked,
198
+ * even if the file size is below chunkSize. This means, that the additional chunk
199
+ * form data will be submitted and the `chunksUploaded` callback will be invoked.
200
+ */
201
+ forceChunking: false,
202
+
203
+ /**
204
+ * If `chunking` is `true`, then this defines the chunk size in bytes.
205
+ */
206
+ chunkSize: 2000000,
207
+
208
+ /**
209
+ * If `true`, the individual chunks of a file are being uploaded simultaneously.
210
+ */
211
+ parallelChunkUploads: false,
212
+
213
+ /**
214
+ * Whether a chunk should be retried if it fails.
215
+ */
216
+ retryChunks: false,
217
+
218
+ /**
219
+ * If `retryChunks` is true, how many times should it be retried.
220
+ */
221
+ retryChunksLimit: 3,
222
+
223
+ /**
224
+ * If not `null` defines how many files this Dropzone handles. If it exceeds,
225
+ * the event `maxfilesexceeded` will be called. The dropzone element gets the
226
+ * class `dz-max-files-reached` accordingly so you can provide visual feedback.
227
+ */
228
+ maxFilesize: 256,
229
+
230
+ /**
231
+ * The name of the file param that gets transferred.
232
+ * **NOTE**: If you have the option `uploadMultiple` set to `true`, then
233
+ * Dropzone will append `[]` to the name.
234
+ */
235
+ paramName: "file",
236
+
237
+ /**
238
+ * Whether thumbnails for images should be generated
239
+ */
240
+ createImageThumbnails: true,
241
+
242
+ /**
243
+ * In MB. When the filename exceeds this limit, the thumbnail will not be generated.
244
+ */
245
+ maxThumbnailFilesize: 10,
246
+
247
+ /**
248
+ * If `null`, the ratio of the image will be used to calculate it.
249
+ */
250
+ thumbnailWidth: 120,
251
+
252
+ /**
253
+ * The same as `thumbnailWidth`. If both are null, images will not be resized.
254
+ */
255
+ thumbnailHeight: 120,
256
+
257
+ /**
258
+ * How the images should be scaled down in case both, `thumbnailWidth` and `thumbnailHeight` are provided.
259
+ * Can be either `contain` or `crop`.
260
+ */
261
+ thumbnailMethod: 'crop',
262
+
263
+ /**
264
+ * If set, images will be resized to these dimensions before being **uploaded**.
265
+ * If only one, `resizeWidth` **or** `resizeHeight` is provided, the original aspect
266
+ * ratio of the file will be preserved.
267
+ *
268
+ * The `options.transformFile` function uses these options, so if the `transformFile` function
269
+ * is overridden, these options don't do anything.
270
+ */
271
+ resizeWidth: null,
272
+
273
+ /**
274
+ * See `resizeWidth`.
275
+ */
276
+ resizeHeight: null,
277
+
278
+ /**
279
+ * The mime type of the resized image (before it gets uploaded to the server).
280
+ * If `null` the original mime type will be used. To force jpeg, for example, use `image/jpeg`.
281
+ * See `resizeWidth` for more information.
282
+ */
283
+ resizeMimeType: null,
284
+
285
+ /**
286
+ * The quality of the resized images. See `resizeWidth`.
287
+ */
288
+ resizeQuality: 0.8,
289
+
290
+ /**
291
+ * How the images should be scaled down in case both, `resizeWidth` and `resizeHeight` are provided.
292
+ * Can be either `contain` or `crop`.
293
+ */
294
+ resizeMethod: 'contain',
295
+
296
+ /**
297
+ * The base that is used to calculate the filesize. You can change this to
298
+ * 1024 if you would rather display kibibytes, mebibytes, etc...
299
+ * 1024 is technically incorrect, because `1024 bytes` are `1 kibibyte` not `1 kilobyte`.
300
+ * You can change this to `1024` if you don't care about validity.
301
+ */
302
+ filesizeBase: 1000,
303
+
304
+ /**
305
+ * Can be used to limit the maximum number of files that will be handled by this Dropzone
306
+ */
307
+ maxFiles: null,
308
+
309
+ /**
310
+ * An optional object to send additional headers to the server. Eg:
311
+ * `{ "My-Awesome-Header": "header value" }`
312
+ */
313
+ headers: null,
314
+
315
+ /**
316
+ * If `true`, the dropzone element itself will be clickable, if `false`
317
+ * nothing will be clickable.
318
+ *
319
+ * You can also pass an HTML element, a CSS selector (for multiple elements)
320
+ * or an array of those. In that case, all of those elements will trigger an
321
+ * upload when clicked.
322
+ */
323
+ clickable: true,
324
+
325
+ /**
326
+ * Whether hidden files in directories should be ignored.
327
+ */
328
+ ignoreHiddenFiles: true,
329
+
330
+ /**
331
+ * The default implementation of `accept` checks the file's mime type or
332
+ * extension against this list. This is a comma separated list of mime
333
+ * types or file extensions.
334
+ *
335
+ * Eg.: `image/*,application/pdf,.psd`
336
+ *
337
+ * If the Dropzone is `clickable` this option will also be used as
338
+ * [`accept`](https://developer.mozilla.org/en-US/docs/HTML/Element/input#attr-accept)
339
+ * parameter on the hidden file input as well.
340
+ */
341
+ acceptedFiles: null,
342
+
343
+ /**
344
+ * **Deprecated!**
345
+ * Use acceptedFiles instead.
346
+ */
347
+ acceptedMimeTypes: null,
348
+
349
+ /**
350
+ * If false, files will be added to the queue but the queue will not be
351
+ * processed automatically.
352
+ * This can be useful if you need some additional user input before sending
353
+ * files (or if you want want all files sent at once).
354
+ * If you're ready to send the file simply call `myDropzone.processQueue()`.
355
+ *
356
+ * See the [enqueuing file uploads](#enqueuing-file-uploads) documentation
357
+ * section for more information.
358
+ */
359
+ autoProcessQueue: true,
360
+
361
+ /**
362
+ * If false, files added to the dropzone will not be queued by default.
363
+ * You'll have to call `enqueueFile(file)` manually.
364
+ */
365
+ autoQueue: true,
366
+
367
+ /**
368
+ * If `true`, this will add a link to every file preview to remove or cancel (if
369
+ * already uploading) the file. The `dictCancelUpload`, `dictCancelUploadConfirmation`
370
+ * and `dictRemoveFile` options are used for the wording.
371
+ */
372
+ addRemoveLinks: false,
373
+
374
+ /**
375
+ * Defines where to display the file previews – if `null` the
376
+ * Dropzone element itself is used. Can be a plain `HTMLElement` or a CSS
377
+ * selector. The element should have the `dropzone-previews` class so
378
+ * the previews are displayed properly.
379
+ */
380
+ previewsContainer: null,
381
+
382
+ /**
383
+ * This is the element the hidden input field (which is used when clicking on the
384
+ * dropzone to trigger file selection) will be appended to. This might
385
+ * be important in case you use frameworks to switch the content of your page.
386
+ */
387
+ hiddenInputContainer: "body",
388
+
389
+ /**
390
+ * If null, no capture type will be specified
391
+ * If camera, mobile devices will skip the file selection and choose camera
392
+ * If microphone, mobile devices will skip the file selection and choose the microphone
393
+ * If camcorder, mobile devices will skip the file selection and choose the camera in video mode
394
+ * On apple devices multiple must be set to false. AcceptedFiles may need to
395
+ * be set to an appropriate mime type (e.g. "image/*", "audio/*", or "video/*").
396
+ */
397
+ capture: null,
398
+
399
+ /**
400
+ * **Deprecated**. Use `renameFile` instead.
401
+ */
402
+ renameFilename: null,
403
+
404
+ /**
405
+ * A function that is invoked before the file is uploaded to the server and renames the file.
406
+ * This function gets the `File` as argument and can use the `file.name`. The actual name of the
407
+ * file that gets used during the upload can be accessed through `file.upload.filename`.
408
+ */
409
+ renameFile: null,
410
+
411
+ /**
412
+ * If `true` the fallback will be forced. This is very useful to test your server
413
+ * implementations first and make sure that everything works as
414
+ * expected without dropzone if you experience problems, and to test
415
+ * how your fallbacks will look.
416
+ */
417
+ forceFallback: false,
418
+
419
+ /**
420
+ * The text used before any files are dropped.
421
+ */
422
+ dictDefaultMessage: "Drop files here to upload",
423
+
424
+ /**
425
+ * The text that replaces the default message text it the browser is not supported.
426
+ */
427
+ dictFallbackMessage: "Your browser does not support drag'n'drop file uploads.",
428
+
429
+ /**
430
+ * The text that will be added before the fallback form.
431
+ * If you provide a fallback element yourself, or if this option is `null` this will
432
+ * be ignored.
433
+ */
434
+ dictFallbackText: "Please use the fallback form below to upload your files like in the olden days.",
435
+
436
+ /**
437
+ * If the filesize is too big.
438
+ * `{{filesize}}` and `{{maxFilesize}}` will be replaced with the respective configuration values.
439
+ */
440
+ dictFileTooBig: "File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",
441
+
442
+ /**
443
+ * If the file doesn't match the file type.
444
+ */
445
+ dictInvalidFileType: "You can't upload files of this type.",
446
+
447
+ /**
448
+ * If the server response was invalid.
449
+ * `{{statusCode}}` will be replaced with the servers status code.
450
+ */
451
+ dictResponseError: "Server responded with {{statusCode}} code.",
452
+
453
+ /**
454
+ * If `addRemoveLinks` is true, the text to be used for the cancel upload link.
455
+ */
456
+ dictCancelUpload: "Cancel upload",
457
+
458
+ /**
459
+ * The text that is displayed if an upload was manually canceled
460
+ */
461
+ dictUploadCanceled: "Upload canceled.",
462
+
463
+ /**
464
+ * If `addRemoveLinks` is true, the text to be used for confirmation when cancelling upload.
465
+ */
466
+ dictCancelUploadConfirmation: "Are you sure you want to cancel this upload?",
467
+
468
+ /**
469
+ * If `addRemoveLinks` is true, the text to be used to remove a file.
470
+ */
471
+ dictRemoveFile: "Remove file",
472
+
473
+ /**
474
+ * If this is not null, then the user will be prompted before removing a file.
475
+ */
476
+ dictRemoveFileConfirmation: null,
477
+
478
+ /**
479
+ * Displayed if `maxFiles` is st and exceeded.
480
+ * The string `{{maxFiles}}` will be replaced by the configuration value.
481
+ */
482
+ dictMaxFilesExceeded: "You can not upload any more files.",
483
+
484
+ /**
485
+ * Allows you to translate the different units. Starting with `tb` for terabytes and going down to
486
+ * `b` for bytes.
487
+ */
488
+ dictFileSizeUnits: { tb: "TB", gb: "GB", mb: "MB", kb: "KB", b: "b" },
489
+ /**
490
+ * Called when dropzone initialized
491
+ * You can add event listeners here
492
+ */
493
+ init: function init() {},
494
+
495
+
496
+ /**
497
+ * Can be an **object** of additional parameters to transfer to the server, **or** a `Function`
498
+ * that gets invoked with the `files`, `xhr` and, if it's a chunked upload, `chunk` arguments. In case
499
+ * of a function, this needs to return a map.
500
+ *
501
+ * The default implementation does nothing for normal uploads, but adds relevant information for
502
+ * chunked uploads.
503
+ *
504
+ * This is the same as adding hidden input fields in the form element.
505
+ */
506
+ params: function params(files, xhr, chunk) {
507
+ if (chunk) {
508
+ return {
509
+ dzuuid: chunk.file.upload.uuid,
510
+ dzchunkindex: chunk.index,
511
+ dztotalfilesize: chunk.file.size,
512
+ dzchunksize: this.options.chunkSize,
513
+ dztotalchunkcount: chunk.file.upload.totalChunkCount,
514
+ dzchunkbyteoffset: chunk.index * this.options.chunkSize
515
+ };
516
+ }
517
+ },
518
+
519
+
520
+ /**
521
+ * A function that gets a [file](https://developer.mozilla.org/en-US/docs/DOM/File)
522
+ * and a `done` function as parameters.
523
+ *
524
+ * If the done function is invoked without arguments, the file is "accepted" and will
525
+ * be processed. If you pass an error message, the file is rejected, and the error
526
+ * message will be displayed.
527
+ * This function will not be called if the file is too big or doesn't match the mime types.
528
+ */
529
+ accept: function accept(file, done) {
530
+ return done();
531
+ },
532
+
533
+
534
+ /**
535
+ * The callback that will be invoked when all chunks have been uploaded for a file.
536
+ * It gets the file for which the chunks have been uploaded as the first parameter,
537
+ * and the `done` function as second. `done()` needs to be invoked when everything
538
+ * needed to finish the upload process is done.
539
+ */
540
+ chunksUploaded: function chunksUploaded(file, done) {
541
+ done();
542
+ },
543
+
544
+ /**
545
+ * Gets called when the browser is not supported.
546
+ * The default implementation shows the fallback input field and adds
547
+ * a text.
548
+ */
549
+ fallback: function fallback() {
550
+ // This code should pass in IE7... :(
551
+ var messageElement = void 0;
552
+ this.element.className = this.element.className + " dz-browser-not-supported";
553
+
554
+ for (var _iterator2 = this.element.getElementsByTagName("div"), _isArray2 = true, _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) {
555
+ var _ref2;
556
+
557
+ if (_isArray2) {
558
+ if (_i2 >= _iterator2.length) break;
559
+ _ref2 = _iterator2[_i2++];
560
+ } else {
561
+ _i2 = _iterator2.next();
562
+ if (_i2.done) break;
563
+ _ref2 = _i2.value;
564
+ }
565
+
566
+ var child = _ref2;
567
+
568
+ if (/(^| )dz-message($| )/.test(child.className)) {
569
+ messageElement = child;
570
+ child.className = "dz-message"; // Removes the 'dz-default' class
571
+ break;
572
+ }
573
+ }
574
+ if (!messageElement) {
575
+ messageElement = Dropzone.createElement("<div class=\"dz-message\"><span></span></div>");
576
+ this.element.appendChild(messageElement);
577
+ }
578
+
579
+ var span = messageElement.getElementsByTagName("span")[0];
580
+ if (span) {
581
+ if (span.textContent != null) {
582
+ span.textContent = this.options.dictFallbackMessage;
583
+ } else if (span.innerText != null) {
584
+ span.innerText = this.options.dictFallbackMessage;
585
+ }
586
+ }
587
+
588
+ return this.element.appendChild(this.getFallbackForm());
589
+ },
590
+
591
+
592
+ /**
593
+ * Gets called to calculate the thumbnail dimensions.
594
+ *
595
+ * It gets `file`, `width` and `height` (both may be `null`) as parameters and must return an object containing:
596
+ *
597
+ * - `srcWidth` & `srcHeight` (required)
598
+ * - `trgWidth` & `trgHeight` (required)
599
+ * - `srcX` & `srcY` (optional, default `0`)
600
+ * - `trgX` & `trgY` (optional, default `0`)
601
+ *
602
+ * Those values are going to be used by `ctx.drawImage()`.
603
+ */
604
+ resize: function resize(file, width, height, resizeMethod) {
605
+ var info = {
606
+ srcX: 0,
607
+ srcY: 0,
608
+ srcWidth: file.width,
609
+ srcHeight: file.height
610
+ };
611
+
612
+ var srcRatio = file.width / file.height;
613
+
614
+ // Automatically calculate dimensions if not specified
615
+ if (width == null && height == null) {
616
+ width = info.srcWidth;
617
+ height = info.srcHeight;
618
+ } else if (width == null) {
619
+ width = height * srcRatio;
620
+ } else if (height == null) {
621
+ height = width / srcRatio;
622
+ }
623
+
624
+ // Make sure images aren't upscaled
625
+ width = Math.min(width, info.srcWidth);
626
+ height = Math.min(height, info.srcHeight);
627
+
628
+ var trgRatio = width / height;
629
+
630
+ if (info.srcWidth > width || info.srcHeight > height) {
631
+ // Image is bigger and needs rescaling
632
+ if (resizeMethod === 'crop') {
633
+ if (srcRatio > trgRatio) {
634
+ info.srcHeight = file.height;
635
+ info.srcWidth = info.srcHeight * trgRatio;
636
+ } else {
637
+ info.srcWidth = file.width;
638
+ info.srcHeight = info.srcWidth / trgRatio;
639
+ }
640
+ } else if (resizeMethod === 'contain') {
641
+ // Method 'contain'
642
+ if (srcRatio > trgRatio) {
643
+ height = width / srcRatio;
644
+ } else {
645
+ width = height * srcRatio;
646
+ }
647
+ } else {
648
+ throw new Error("Unknown resizeMethod '" + resizeMethod + "'");
649
+ }
650
+ }
651
+
652
+ info.srcX = (file.width - info.srcWidth) / 2;
653
+ info.srcY = (file.height - info.srcHeight) / 2;
654
+
655
+ info.trgWidth = width;
656
+ info.trgHeight = height;
657
+
658
+ return info;
659
+ },
660
+
661
+
662
+ /**
663
+ * Can be used to transform the file (for example, resize an image if necessary).
664
+ *
665
+ * The default implementation uses `resizeWidth` and `resizeHeight` (if provided) and resizes
666
+ * images according to those dimensions.
667
+ *
668
+ * Gets the `file` as the first parameter, and a `done()` function as the second, that needs
669
+ * to be invoked with the file when the transformation is done.
670
+ */
671
+ transformFile: function transformFile(file, done) {
672
+ if ((this.options.resizeWidth || this.options.resizeHeight) && file.type.match(/image.*/)) {
673
+ return this.resizeImage(file, this.options.resizeWidth, this.options.resizeHeight, this.options.resizeMethod, done);
674
+ } else {
675
+ return done(file);
676
+ }
677
+ },
678
+
679
+
680
+ /**
681
+ * A string that contains the template used for each dropped
682
+ * file. Change it to fulfill your needs but make sure to properly
683
+ * provide all elements.
684
+ *
685
+ * If you want to use an actual HTML element instead of providing a String
686
+ * as a config option, you could create a div with the id `tpl`,
687
+ * put the template inside it and provide the element like this:
688
+ *
689
+ * document
690
+ * .querySelector('#tpl')
691
+ * .innerHTML
692
+ *
693
+ */
694
+ previewTemplate: "<div class=\"dz-preview dz-file-preview\">\n <div class=\"dz-image\"><img data-dz-thumbnail /></div>\n <div class=\"dz-details\">\n <div class=\"dz-size\"><span data-dz-size></span></div>\n <div class=\"dz-filename\"><span data-dz-name></span></div>\n </div>\n <div class=\"dz-progress\"><span class=\"dz-upload\" data-dz-uploadprogress></span></div>\n <div class=\"dz-error-message\"><span data-dz-errormessage></span></div>\n <div class=\"dz-success-mark\">\n <svg width=\"54px\" height=\"54px\" viewBox=\"0 0 54 54\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:sketch=\"http://www.bohemiancoding.com/sketch/ns\">\n <title>Check</title>\n <defs></defs>\n <g id=\"Page-1\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\" sketch:type=\"MSPage\">\n <path d=\"M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z\" id=\"Oval-2\" stroke-opacity=\"0.198794158\" stroke=\"#747474\" fill-opacity=\"0.816519475\" fill=\"#FFFFFF\" sketch:type=\"MSShapeGroup\"></path>\n </g>\n </svg>\n </div>\n <div class=\"dz-error-mark\">\n <svg width=\"54px\" height=\"54px\" viewBox=\"0 0 54 54\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:sketch=\"http://www.bohemiancoding.com/sketch/ns\">\n <title>Error</title>\n <defs></defs>\n <g id=\"Page-1\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\" sketch:type=\"MSPage\">\n <g id=\"Check-+-Oval-2\" sketch:type=\"MSLayerGroup\" stroke=\"#747474\" stroke-opacity=\"0.198794158\" fill=\"#FFFFFF\" fill-opacity=\"0.816519475\">\n <path d=\"M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z\" id=\"Oval-2\" sketch:type=\"MSShapeGroup\"></path>\n </g>\n </g>\n </svg>\n </div>\n</div>",
695
+
696
+ // END OPTIONS
697
+ // (Required by the dropzone documentation parser)
698
+
699
+
700
+ /*
701
+ Those functions register themselves to the events on init and handle all
702
+ the user interface specific stuff. Overwriting them won't break the upload
703
+ but can break the way it's displayed.
704
+ You can overwrite them if you don't like the default behavior. If you just
705
+ want to add an additional event handler, register it on the dropzone object
706
+ and don't overwrite those options.
707
+ */
708
+
709
+ // Those are self explanatory and simply concern the DragnDrop.
710
+ drop: function drop(e) {
711
+ return this.element.classList.remove("dz-drag-hover");
712
+ },
713
+ dragstart: function dragstart(e) {},
714
+ dragend: function dragend(e) {
715
+ return this.element.classList.remove("dz-drag-hover");
716
+ },
717
+ dragenter: function dragenter(e) {
718
+ return this.element.classList.add("dz-drag-hover");
719
+ },
720
+ dragover: function dragover(e) {
721
+ return this.element.classList.add("dz-drag-hover");
722
+ },
723
+ dragleave: function dragleave(e) {
724
+ return this.element.classList.remove("dz-drag-hover");
725
+ },
726
+ paste: function paste(e) {},
727
+
728
+
729
+ // Called whenever there are no files left in the dropzone anymore, and the
730
+ // dropzone should be displayed as if in the initial state.
731
+ reset: function reset() {
732
+ return this.element.classList.remove("dz-started");
733
+ },
734
+
735
+
736
+ // Called when a file is added to the queue
737
+ // Receives `file`
738
+ addedfile: function addedfile(file) {
739
+ var _this2 = this;
740
+
741
+ if (this.element === this.previewsContainer) {
742
+ this.element.classList.add("dz-started");
743
+ }
744
+
745
+ if (this.previewsContainer) {
746
+ file.previewElement = Dropzone.createElement(this.options.previewTemplate.trim());
747
+ file.previewTemplate = file.previewElement; // Backwards compatibility
748
+
749
+ this.previewsContainer.appendChild(file.previewElement);
750
+ for (var _iterator3 = file.previewElement.querySelectorAll("[data-dz-name]"), _isArray3 = true, _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) {
751
+ var _ref3;
752
+
753
+ if (_isArray3) {
754
+ if (_i3 >= _iterator3.length) break;
755
+ _ref3 = _iterator3[_i3++];
756
+ } else {
757
+ _i3 = _iterator3.next();
758
+ if (_i3.done) break;
759
+ _ref3 = _i3.value;
760
+ }
761
+
762
+ var node = _ref3;
763
+
764
+ node.textContent = file.name;
765
+ }
766
+ for (var _iterator4 = file.previewElement.querySelectorAll("[data-dz-size]"), _isArray4 = true, _i4 = 0, _iterator4 = _isArray4 ? _iterator4 : _iterator4[Symbol.iterator]();;) {
767
+ if (_isArray4) {
768
+ if (_i4 >= _iterator4.length) break;
769
+ node = _iterator4[_i4++];
770
+ } else {
771
+ _i4 = _iterator4.next();
772
+ if (_i4.done) break;
773
+ node = _i4.value;
774
+ }
775
+
776
+ node.innerHTML = this.filesize(file.size);
777
+ }
778
+
779
+ if (this.options.addRemoveLinks) {
780
+ file._removeLink = Dropzone.createElement("<a class=\"dz-remove\" href=\"javascript:undefined;\" data-dz-remove>" + this.options.dictRemoveFile + "</a>");
781
+ file.previewElement.appendChild(file._removeLink);
782
+ }
783
+
784
+ var removeFileEvent = function removeFileEvent(e) {
785
+ e.preventDefault();
786
+ e.stopPropagation();
787
+ if (file.status === Dropzone.UPLOADING) {
788
+ return Dropzone.confirm(_this2.options.dictCancelUploadConfirmation, function () {
789
+ return _this2.removeFile(file);
790
+ });
791
+ } else {
792
+ if (_this2.options.dictRemoveFileConfirmation) {
793
+ return Dropzone.confirm(_this2.options.dictRemoveFileConfirmation, function () {
794
+ return _this2.removeFile(file);
795
+ });
796
+ } else {
797
+ return _this2.removeFile(file);
798
+ }
799
+ }
800
+ };
801
+
802
+ for (var _iterator5 = file.previewElement.querySelectorAll("[data-dz-remove]"), _isArray5 = true, _i5 = 0, _iterator5 = _isArray5 ? _iterator5 : _iterator5[Symbol.iterator]();;) {
803
+ var _ref4;
804
+
805
+ if (_isArray5) {
806
+ if (_i5 >= _iterator5.length) break;
807
+ _ref4 = _iterator5[_i5++];
808
+ } else {
809
+ _i5 = _iterator5.next();
810
+ if (_i5.done) break;
811
+ _ref4 = _i5.value;
812
+ }
813
+
814
+ var removeLink = _ref4;
815
+
816
+ removeLink.addEventListener("click", removeFileEvent);
817
+ }
818
+ }
819
+ },
820
+
821
+
822
+ // Called whenever a file is removed.
823
+ removedfile: function removedfile(file) {
824
+ if (file.previewElement != null && file.previewElement.parentNode != null) {
825
+ file.previewElement.parentNode.removeChild(file.previewElement);
826
+ }
827
+ return this._updateMaxFilesReachedClass();
828
+ },
829
+
830
+
831
+ // Called when a thumbnail has been generated
832
+ // Receives `file` and `dataUrl`
833
+ thumbnail: function thumbnail(file, dataUrl) {
834
+ if (file.previewElement) {
835
+ file.previewElement.classList.remove("dz-file-preview");
836
+ for (var _iterator6 = file.previewElement.querySelectorAll("[data-dz-thumbnail]"), _isArray6 = true, _i6 = 0, _iterator6 = _isArray6 ? _iterator6 : _iterator6[Symbol.iterator]();;) {
837
+ var _ref5;
838
+
839
+ if (_isArray6) {
840
+ if (_i6 >= _iterator6.length) break;
841
+ _ref5 = _iterator6[_i6++];
842
+ } else {
843
+ _i6 = _iterator6.next();
844
+ if (_i6.done) break;
845
+ _ref5 = _i6.value;
846
+ }
847
+
848
+ var thumbnailElement = _ref5;
849
+
850
+ thumbnailElement.alt = file.name;
851
+ thumbnailElement.src = dataUrl;
852
+ }
853
+
854
+ return setTimeout(function () {
855
+ return file.previewElement.classList.add("dz-image-preview");
856
+ }, 1);
857
+ }
858
+ },
859
+
860
+
861
+ // Called whenever an error occurs
862
+ // Receives `file` and `message`
863
+ error: function error(file, message) {
864
+ if (file.previewElement) {
865
+ file.previewElement.classList.add("dz-error");
866
+ if (typeof message !== "String" && message.error) {
867
+ message = message.error;
868
+ }
869
+ for (var _iterator7 = file.previewElement.querySelectorAll("[data-dz-errormessage]"), _isArray7 = true, _i7 = 0, _iterator7 = _isArray7 ? _iterator7 : _iterator7[Symbol.iterator]();;) {
870
+ var _ref6;
871
+
872
+ if (_isArray7) {
873
+ if (_i7 >= _iterator7.length) break;
874
+ _ref6 = _iterator7[_i7++];
875
+ } else {
876
+ _i7 = _iterator7.next();
877
+ if (_i7.done) break;
878
+ _ref6 = _i7.value;
879
+ }
880
+
881
+ var node = _ref6;
882
+
883
+ node.textContent = message;
884
+ }
885
+ }
886
+ },
887
+ errormultiple: function errormultiple() {},
888
+
889
+
890
+ // Called when a file gets processed. Since there is a cue, not all added
891
+ // files are processed immediately.
892
+ // Receives `file`
893
+ processing: function processing(file) {
894
+ if (file.previewElement) {
895
+ file.previewElement.classList.add("dz-processing");
896
+ if (file._removeLink) {
897
+ return file._removeLink.textContent = this.options.dictCancelUpload;
898
+ }
899
+ }
900
+ },
901
+ processingmultiple: function processingmultiple() {},
902
+
903
+
904
+ // Called whenever the upload progress gets updated.
905
+ // Receives `file`, `progress` (percentage 0-100) and `bytesSent`.
906
+ // To get the total number of bytes of the file, use `file.size`
907
+ uploadprogress: function uploadprogress(file, progress, bytesSent) {
908
+ if (file.previewElement) {
909
+ for (var _iterator8 = file.previewElement.querySelectorAll("[data-dz-uploadprogress]"), _isArray8 = true, _i8 = 0, _iterator8 = _isArray8 ? _iterator8 : _iterator8[Symbol.iterator]();;) {
910
+ var _ref7;
911
+
912
+ if (_isArray8) {
913
+ if (_i8 >= _iterator8.length) break;
914
+ _ref7 = _iterator8[_i8++];
915
+ } else {
916
+ _i8 = _iterator8.next();
917
+ if (_i8.done) break;
918
+ _ref7 = _i8.value;
919
+ }
920
+
921
+ var node = _ref7;
922
+
923
+ node.nodeName === 'PROGRESS' ? node.value = progress : node.style.width = progress + "%";
924
+ }
925
+ }
926
+ },
927
+
928
+
929
+ // Called whenever the total upload progress gets updated.
930
+ // Called with totalUploadProgress (0-100), totalBytes and totalBytesSent
931
+ totaluploadprogress: function totaluploadprogress() {},
932
+
933
+
934
+ // Called just before the file is sent. Gets the `xhr` object as second
935
+ // parameter, so you can modify it (for example to add a CSRF token) and a
936
+ // `formData` object to add additional information.
937
+ sending: function sending() {},
938
+ sendingmultiple: function sendingmultiple() {},
939
+
940
+
941
+ // When the complete upload is finished and successful
942
+ // Receives `file`
943
+ success: function success(file) {
944
+ if (file.previewElement) {
945
+ return file.previewElement.classList.add("dz-success");
946
+ }
947
+ },
948
+ successmultiple: function successmultiple() {},
949
+
950
+
951
+ // When the upload is canceled.
952
+ canceled: function canceled(file) {
953
+ return this.emit("error", file, this.options.dictUploadCanceled);
954
+ },
955
+ canceledmultiple: function canceledmultiple() {},
956
+
957
+
958
+ // When the upload is finished, either with success or an error.
959
+ // Receives `file`
960
+ complete: function complete(file) {
961
+ if (file._removeLink) {
962
+ file._removeLink.textContent = this.options.dictRemoveFile;
963
+ }
964
+ if (file.previewElement) {
965
+ return file.previewElement.classList.add("dz-complete");
966
+ }
967
+ },
968
+ completemultiple: function completemultiple() {},
969
+ maxfilesexceeded: function maxfilesexceeded() {},
970
+ maxfilesreached: function maxfilesreached() {},
971
+ queuecomplete: function queuecomplete() {},
972
+ addedfiles: function addedfiles() {}
973
+ };
974
+
975
+ this.prototype._thumbnailQueue = [];
976
+ this.prototype._processingThumbnail = false;
977
+ }
978
+
979
+ // global utility
980
+
981
+ }, {
982
+ key: "extend",
983
+ value: function extend(target) {
984
+ for (var _len2 = arguments.length, objects = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
985
+ objects[_key2 - 1] = arguments[_key2];
986
+ }
987
+
988
+ for (var _iterator9 = objects, _isArray9 = true, _i9 = 0, _iterator9 = _isArray9 ? _iterator9 : _iterator9[Symbol.iterator]();;) {
989
+ var _ref8;
990
+
991
+ if (_isArray9) {
992
+ if (_i9 >= _iterator9.length) break;
993
+ _ref8 = _iterator9[_i9++];
994
+ } else {
995
+ _i9 = _iterator9.next();
996
+ if (_i9.done) break;
997
+ _ref8 = _i9.value;
998
+ }
999
+
1000
+ var object = _ref8;
1001
+
1002
+ for (var key in object) {
1003
+ var val = object[key];
1004
+ target[key] = val;
1005
+ }
1006
+ }
1007
+ return target;
1008
+ }
1009
+ }]);
1010
+
1011
+ function Dropzone(el, options) {
1012
+ _classCallCheck(this, Dropzone);
1013
+
1014
+ var _this = _possibleConstructorReturn(this, (Dropzone.__proto__ || Object.getPrototypeOf(Dropzone)).call(this));
1015
+
1016
+ var fallback = void 0,
1017
+ left = void 0;
1018
+ _this.element = el;
1019
+ // For backwards compatibility since the version was in the prototype previously
1020
+ _this.version = Dropzone.version;
1021
+
1022
+ _this.defaultOptions.previewTemplate = _this.defaultOptions.previewTemplate.replace(/\n*/g, "");
1023
+
1024
+ _this.clickableElements = [];
1025
+ _this.listeners = [];
1026
+ _this.files = []; // All files
1027
+
1028
+ if (typeof _this.element === "string") {
1029
+ _this.element = document.querySelector(_this.element);
1030
+ }
1031
+
1032
+ // Not checking if instance of HTMLElement or Element since IE9 is extremely weird.
1033
+ if (!_this.element || _this.element.nodeType == null) {
1034
+ throw new Error("Invalid dropzone element.");
1035
+ }
1036
+
1037
+ if (_this.element.dropzone) {
1038
+ throw new Error("Dropzone already attached.");
1039
+ }
1040
+
1041
+ // Now add this dropzone to the instances.
1042
+ Dropzone.instances.push(_this);
1043
+
1044
+ // Put the dropzone inside the element itself.
1045
+ _this.element.dropzone = _this;
1046
+
1047
+ var elementOptions = (left = Dropzone.optionsForElement(_this.element)) != null ? left : {};
1048
+
1049
+ _this.options = Dropzone.extend({}, _this.defaultOptions, elementOptions, options != null ? options : {});
1050
+
1051
+ // If the browser failed, just call the fallback and leave
1052
+ if (_this.options.forceFallback || !Dropzone.isBrowserSupported()) {
1053
+ var _ret;
1054
+
1055
+ return _ret = _this.options.fallback.call(_this), _possibleConstructorReturn(_this, _ret);
1056
+ }
1057
+
1058
+ // @options.url = @element.getAttribute "action" unless @options.url?
1059
+ if (_this.options.url == null) {
1060
+ _this.options.url = _this.element.getAttribute("action");
1061
+ }
1062
+
1063
+ if (!_this.options.url) {
1064
+ throw new Error("No URL provided.");
1065
+ }
1066
+
1067
+ if (_this.options.acceptedFiles && _this.options.acceptedMimeTypes) {
1068
+ throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");
1069
+ }
1070
+
1071
+ if (_this.options.uploadMultiple && _this.options.chunking) {
1072
+ throw new Error('You cannot set both: uploadMultiple and chunking.');
1073
+ }
1074
+
1075
+ // Backwards compatibility
1076
+ if (_this.options.acceptedMimeTypes) {
1077
+ _this.options.acceptedFiles = _this.options.acceptedMimeTypes;
1078
+ delete _this.options.acceptedMimeTypes;
1079
+ }
1080
+
1081
+ // Backwards compatibility
1082
+ if (_this.options.renameFilename != null) {
1083
+ _this.options.renameFile = function (file) {
1084
+ return _this.options.renameFilename.call(_this, file.name, file);
1085
+ };
1086
+ }
1087
+
1088
+ _this.options.method = _this.options.method.toUpperCase();
1089
+
1090
+ if ((fallback = _this.getExistingFallback()) && fallback.parentNode) {
1091
+ // Remove the fallback
1092
+ fallback.parentNode.removeChild(fallback);
1093
+ }
1094
+
1095
+ // Display previews in the previewsContainer element or the Dropzone element unless explicitly set to false
1096
+ if (_this.options.previewsContainer !== false) {
1097
+ if (_this.options.previewsContainer) {
1098
+ _this.previewsContainer = Dropzone.getElement(_this.options.previewsContainer, "previewsContainer");
1099
+ } else {
1100
+ _this.previewsContainer = _this.element;
1101
+ }
1102
+ }
1103
+
1104
+ if (_this.options.clickable) {
1105
+ if (_this.options.clickable === true) {
1106
+ _this.clickableElements = [_this.element];
1107
+ } else {
1108
+ _this.clickableElements = Dropzone.getElements(_this.options.clickable, "clickable");
1109
+ }
1110
+ }
1111
+
1112
+ _this.init();
1113
+ return _this;
1114
+ }
1115
+
1116
+ // Returns all files that have been accepted
1117
+
1118
+
1119
+ _createClass(Dropzone, [{
1120
+ key: "getAcceptedFiles",
1121
+ value: function getAcceptedFiles() {
1122
+ return this.files.filter(function (file) {
1123
+ return file.accepted;
1124
+ }).map(function (file) {
1125
+ return file;
1126
+ });
1127
+ }
1128
+
1129
+ // Returns all files that have been rejected
1130
+ // Not sure when that's going to be useful, but added for completeness.
1131
+
1132
+ }, {
1133
+ key: "getRejectedFiles",
1134
+ value: function getRejectedFiles() {
1135
+ return this.files.filter(function (file) {
1136
+ return !file.accepted;
1137
+ }).map(function (file) {
1138
+ return file;
1139
+ });
1140
+ }
1141
+ }, {
1142
+ key: "getFilesWithStatus",
1143
+ value: function getFilesWithStatus(status) {
1144
+ return this.files.filter(function (file) {
1145
+ return file.status === status;
1146
+ }).map(function (file) {
1147
+ return file;
1148
+ });
1149
+ }
1150
+
1151
+ // Returns all files that are in the queue
1152
+
1153
+ }, {
1154
+ key: "getQueuedFiles",
1155
+ value: function getQueuedFiles() {
1156
+ return this.getFilesWithStatus(Dropzone.QUEUED);
1157
+ }
1158
+ }, {
1159
+ key: "getUploadingFiles",
1160
+ value: function getUploadingFiles() {
1161
+ return this.getFilesWithStatus(Dropzone.UPLOADING);
1162
+ }
1163
+ }, {
1164
+ key: "getAddedFiles",
1165
+ value: function getAddedFiles() {
1166
+ return this.getFilesWithStatus(Dropzone.ADDED);
1167
+ }
1168
+
1169
+ // Files that are either queued or uploading
1170
+
1171
+ }, {
1172
+ key: "getActiveFiles",
1173
+ value: function getActiveFiles() {
1174
+ return this.files.filter(function (file) {
1175
+ return file.status === Dropzone.UPLOADING || file.status === Dropzone.QUEUED;
1176
+ }).map(function (file) {
1177
+ return file;
1178
+ });
1179
+ }
1180
+
1181
+ // The function that gets called when Dropzone is initialized. You
1182
+ // can (and should) setup event listeners inside this function.
1183
+
1184
+ }, {
1185
+ key: "init",
1186
+ value: function init() {
1187
+ var _this3 = this;
1188
+
1189
+ // In case it isn't set already
1190
+ if (this.element.tagName === "form") {
1191
+ this.element.setAttribute("enctype", "multipart/form-data");
1192
+ }
1193
+
1194
+ if (this.element.classList.contains("dropzone") && !this.element.querySelector(".dz-message")) {
1195
+ this.element.appendChild(Dropzone.createElement("<div class=\"dz-default dz-message\"><span>" + this.options.dictDefaultMessage + "</span></div>"));
1196
+ }
1197
+
1198
+ if (this.clickableElements.length) {
1199
+ var setupHiddenFileInput = function setupHiddenFileInput() {
1200
+ if (_this3.hiddenFileInput) {
1201
+ _this3.hiddenFileInput.parentNode.removeChild(_this3.hiddenFileInput);
1202
+ }
1203
+ _this3.hiddenFileInput = document.createElement("input");
1204
+ _this3.hiddenFileInput.setAttribute("type", "file");
1205
+ if (_this3.options.maxFiles === null || _this3.options.maxFiles > 1) {
1206
+ _this3.hiddenFileInput.setAttribute("multiple", "multiple");
1207
+ }
1208
+ _this3.hiddenFileInput.className = "dz-hidden-input";
1209
+
1210
+ if (_this3.options.acceptedFiles !== null) {
1211
+ _this3.hiddenFileInput.setAttribute("accept", _this3.options.acceptedFiles);
1212
+ }
1213
+ if (_this3.options.capture !== null) {
1214
+ _this3.hiddenFileInput.setAttribute("capture", _this3.options.capture);
1215
+ }
1216
+
1217
+ // Not setting `display="none"` because some browsers don't accept clicks
1218
+ // on elements that aren't displayed.
1219
+ _this3.hiddenFileInput.style.visibility = "hidden";
1220
+ _this3.hiddenFileInput.style.position = "absolute";
1221
+ _this3.hiddenFileInput.style.top = "0";
1222
+ _this3.hiddenFileInput.style.left = "0";
1223
+ _this3.hiddenFileInput.style.height = "0";
1224
+ _this3.hiddenFileInput.style.width = "0";
1225
+ document.querySelector(_this3.options.hiddenInputContainer).appendChild(_this3.hiddenFileInput);
1226
+ return _this3.hiddenFileInput.addEventListener("change", function () {
1227
+ var files = _this3.hiddenFileInput.files;
1228
+
1229
+ if (files.length) {
1230
+ for (var _iterator10 = files, _isArray10 = true, _i10 = 0, _iterator10 = _isArray10 ? _iterator10 : _iterator10[Symbol.iterator]();;) {
1231
+ var _ref9;
1232
+
1233
+ if (_isArray10) {
1234
+ if (_i10 >= _iterator10.length) break;
1235
+ _ref9 = _iterator10[_i10++];
1236
+ } else {
1237
+ _i10 = _iterator10.next();
1238
+ if (_i10.done) break;
1239
+ _ref9 = _i10.value;
1240
+ }
1241
+
1242
+ var file = _ref9;
1243
+
1244
+ _this3.addFile(file);
1245
+ }
1246
+ }
1247
+ _this3.emit("addedfiles", files);
1248
+ return setupHiddenFileInput();
1249
+ });
1250
+ };
1251
+ setupHiddenFileInput();
1252
+ }
1253
+
1254
+ this.URL = window.URL !== null ? window.URL : window.webkitURL;
1255
+
1256
+ // Setup all event listeners on the Dropzone object itself.
1257
+ // They're not in @setupEventListeners() because they shouldn't be removed
1258
+ // again when the dropzone gets disabled.
1259
+ for (var _iterator11 = this.events, _isArray11 = true, _i11 = 0, _iterator11 = _isArray11 ? _iterator11 : _iterator11[Symbol.iterator]();;) {
1260
+ var _ref10;
1261
+
1262
+ if (_isArray11) {
1263
+ if (_i11 >= _iterator11.length) break;
1264
+ _ref10 = _iterator11[_i11++];
1265
+ } else {
1266
+ _i11 = _iterator11.next();
1267
+ if (_i11.done) break;
1268
+ _ref10 = _i11.value;
1269
+ }
1270
+
1271
+ var eventName = _ref10;
1272
+
1273
+ this.on(eventName, this.options[eventName]);
1274
+ }
1275
+
1276
+ this.on("uploadprogress", function () {
1277
+ return _this3.updateTotalUploadProgress();
1278
+ });
1279
+
1280
+ this.on("removedfile", function () {
1281
+ return _this3.updateTotalUploadProgress();
1282
+ });
1283
+
1284
+ this.on("canceled", function (file) {
1285
+ return _this3.emit("complete", file);
1286
+ });
1287
+
1288
+ // Emit a `queuecomplete` event if all files finished uploading.
1289
+ this.on("complete", function (file) {
1290
+ if (_this3.getAddedFiles().length === 0 && _this3.getUploadingFiles().length === 0 && _this3.getQueuedFiles().length === 0) {
1291
+ // This needs to be deferred so that `queuecomplete` really triggers after `complete`
1292
+ return setTimeout(function () {
1293
+ return _this3.emit("queuecomplete");
1294
+ }, 0);
1295
+ }
1296
+ });
1297
+
1298
+ var noPropagation = function noPropagation(e) {
1299
+ e.stopPropagation();
1300
+ if (e.preventDefault) {
1301
+ return e.preventDefault();
1302
+ } else {
1303
+ return e.returnValue = false;
1304
+ }
1305
+ };
1306
+
1307
+ // Create the listeners
1308
+ this.listeners = [{
1309
+ element: this.element,
1310
+ events: {
1311
+ "dragstart": function dragstart(e) {
1312
+ return _this3.emit("dragstart", e);
1313
+ },
1314
+ "dragenter": function dragenter(e) {
1315
+ noPropagation(e);
1316
+ return _this3.emit("dragenter", e);
1317
+ },
1318
+ "dragover": function dragover(e) {
1319
+ // Makes it possible to drag files from chrome's download bar
1320
+ // http://stackoverflow.com/questions/19526430/drag-and-drop-file-uploads-from-chrome-downloads-bar
1321
+ // Try is required to prevent bug in Internet Explorer 11 (SCRIPT65535 exception)
1322
+ var efct = void 0;
1323
+ try {
1324
+ efct = e.dataTransfer.effectAllowed;
1325
+ } catch (error) {}
1326
+ e.dataTransfer.dropEffect = 'move' === efct || 'linkMove' === efct ? 'move' : 'copy';
1327
+
1328
+ noPropagation(e);
1329
+ return _this3.emit("dragover", e);
1330
+ },
1331
+ "dragleave": function dragleave(e) {
1332
+ return _this3.emit("dragleave", e);
1333
+ },
1334
+ "drop": function drop(e) {
1335
+ noPropagation(e);
1336
+ return _this3.drop(e);
1337
+ },
1338
+ "dragend": function dragend(e) {
1339
+ return _this3.emit("dragend", e);
1340
+ }
1341
+
1342
+ // This is disabled right now, because the browsers don't implement it properly.
1343
+ // "paste": (e) =>
1344
+ // noPropagation e
1345
+ // @paste e
1346
+ } }];
1347
+
1348
+ this.clickableElements.forEach(function (clickableElement) {
1349
+ return _this3.listeners.push({
1350
+ element: clickableElement,
1351
+ events: {
1352
+ "click": function click(evt) {
1353
+ // Only the actual dropzone or the message element should trigger file selection
1354
+ if (clickableElement !== _this3.element || evt.target === _this3.element || Dropzone.elementInside(evt.target, _this3.element.querySelector(".dz-message"))) {
1355
+ _this3.hiddenFileInput.click(); // Forward the click
1356
+ }
1357
+ return true;
1358
+ }
1359
+ }
1360
+ });
1361
+ });
1362
+
1363
+ this.enable();
1364
+
1365
+ return this.options.init.call(this);
1366
+ }
1367
+
1368
+ // Not fully tested yet
1369
+
1370
+ }, {
1371
+ key: "destroy",
1372
+ value: function destroy() {
1373
+ this.disable();
1374
+ this.removeAllFiles(true);
1375
+ if (this.hiddenFileInput != null ? this.hiddenFileInput.parentNode : undefined) {
1376
+ this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput);
1377
+ this.hiddenFileInput = null;
1378
+ }
1379
+ delete this.element.dropzone;
1380
+ return Dropzone.instances.splice(Dropzone.instances.indexOf(this), 1);
1381
+ }
1382
+ }, {
1383
+ key: "updateTotalUploadProgress",
1384
+ value: function updateTotalUploadProgress() {
1385
+ var totalUploadProgress = void 0;
1386
+ var totalBytesSent = 0;
1387
+ var totalBytes = 0;
1388
+
1389
+ var activeFiles = this.getActiveFiles();
1390
+
1391
+ if (activeFiles.length) {
1392
+ for (var _iterator12 = this.getActiveFiles(), _isArray12 = true, _i12 = 0, _iterator12 = _isArray12 ? _iterator12 : _iterator12[Symbol.iterator]();;) {
1393
+ var _ref11;
1394
+
1395
+ if (_isArray12) {
1396
+ if (_i12 >= _iterator12.length) break;
1397
+ _ref11 = _iterator12[_i12++];
1398
+ } else {
1399
+ _i12 = _iterator12.next();
1400
+ if (_i12.done) break;
1401
+ _ref11 = _i12.value;
1402
+ }
1403
+
1404
+ var file = _ref11;
1405
+
1406
+ totalBytesSent += file.upload.bytesSent;
1407
+ totalBytes += file.upload.total;
1408
+ }
1409
+ totalUploadProgress = 100 * totalBytesSent / totalBytes;
1410
+ } else {
1411
+ totalUploadProgress = 100;
1412
+ }
1413
+
1414
+ return this.emit("totaluploadprogress", totalUploadProgress, totalBytes, totalBytesSent);
1415
+ }
1416
+
1417
+ // @options.paramName can be a function taking one parameter rather than a string.
1418
+ // A parameter name for a file is obtained simply by calling this with an index number.
1419
+
1420
+ }, {
1421
+ key: "_getParamName",
1422
+ value: function _getParamName(n) {
1423
+ if (typeof this.options.paramName === "function") {
1424
+ return this.options.paramName(n);
1425
+ } else {
1426
+ return "" + this.options.paramName + (this.options.uploadMultiple ? "[" + n + "]" : "");
1427
+ }
1428
+ }
1429
+
1430
+ // If @options.renameFile is a function,
1431
+ // the function will be used to rename the file.name before appending it to the formData
1432
+
1433
+ }, {
1434
+ key: "_renameFile",
1435
+ value: function _renameFile(file) {
1436
+ if (typeof this.options.renameFile !== "function") {
1437
+ return file.name;
1438
+ }
1439
+ return this.options.renameFile(file);
1440
+ }
1441
+
1442
+ // Returns a form that can be used as fallback if the browser does not support DragnDrop
1443
+ //
1444
+ // If the dropzone is already a form, only the input field and button are returned. Otherwise a complete form element is provided.
1445
+ // This code has to pass in IE7 :(
1446
+
1447
+ }, {
1448
+ key: "getFallbackForm",
1449
+ value: function getFallbackForm() {
1450
+ var existingFallback = void 0,
1451
+ form = void 0;
1452
+ if (existingFallback = this.getExistingFallback()) {
1453
+ return existingFallback;
1454
+ }
1455
+
1456
+ var fieldsString = "<div class=\"dz-fallback\">";
1457
+ if (this.options.dictFallbackText) {
1458
+ fieldsString += "<p>" + this.options.dictFallbackText + "</p>";
1459
+ }
1460
+ fieldsString += "<input type=\"file\" name=\"" + this._getParamName(0) + "\" " + (this.options.uploadMultiple ? 'multiple="multiple"' : undefined) + " /><input type=\"submit\" value=\"Upload!\"></div>";
1461
+
1462
+ var fields = Dropzone.createElement(fieldsString);
1463
+ if (this.element.tagName !== "FORM") {
1464
+ form = Dropzone.createElement("<form action=\"" + this.options.url + "\" enctype=\"multipart/form-data\" method=\"" + this.options.method + "\"></form>");
1465
+ form.appendChild(fields);
1466
+ } else {
1467
+ // Make sure that the enctype and method attributes are set properly
1468
+ this.element.setAttribute("enctype", "multipart/form-data");
1469
+ this.element.setAttribute("method", this.options.method);
1470
+ }
1471
+ return form != null ? form : fields;
1472
+ }
1473
+
1474
+ // Returns the fallback elements if they exist already
1475
+ //
1476
+ // This code has to pass in IE7 :(
1477
+
1478
+ }, {
1479
+ key: "getExistingFallback",
1480
+ value: function getExistingFallback() {
1481
+ var getFallback = function getFallback(elements) {
1482
+ for (var _iterator13 = elements, _isArray13 = true, _i13 = 0, _iterator13 = _isArray13 ? _iterator13 : _iterator13[Symbol.iterator]();;) {
1483
+ var _ref12;
1484
+
1485
+ if (_isArray13) {
1486
+ if (_i13 >= _iterator13.length) break;
1487
+ _ref12 = _iterator13[_i13++];
1488
+ } else {
1489
+ _i13 = _iterator13.next();
1490
+ if (_i13.done) break;
1491
+ _ref12 = _i13.value;
1492
+ }
1493
+
1494
+ var el = _ref12;
1495
+
1496
+ if (/(^| )fallback($| )/.test(el.className)) {
1497
+ return el;
1498
+ }
1499
+ }
1500
+ };
1501
+
1502
+ var _arr = ["div", "form"];
1503
+ for (var _i14 = 0; _i14 < _arr.length; _i14++) {
1504
+ var tagName = _arr[_i14];
1505
+ var fallback;
1506
+ if (fallback = getFallback(this.element.getElementsByTagName(tagName))) {
1507
+ return fallback;
1508
+ }
1509
+ }
1510
+ }
1511
+
1512
+ // Activates all listeners stored in @listeners
1513
+
1514
+ }, {
1515
+ key: "setupEventListeners",
1516
+ value: function setupEventListeners() {
1517
+ return this.listeners.map(function (elementListeners) {
1518
+ return function () {
1519
+ var result = [];
1520
+ for (var event in elementListeners.events) {
1521
+ var listener = elementListeners.events[event];
1522
+ result.push(elementListeners.element.addEventListener(event, listener, false));
1523
+ }
1524
+ return result;
1525
+ }();
1526
+ });
1527
+ }
1528
+
1529
+ // Deactivates all listeners stored in @listeners
1530
+
1531
+ }, {
1532
+ key: "removeEventListeners",
1533
+ value: function removeEventListeners() {
1534
+ return this.listeners.map(function (elementListeners) {
1535
+ return function () {
1536
+ var result = [];
1537
+ for (var event in elementListeners.events) {
1538
+ var listener = elementListeners.events[event];
1539
+ result.push(elementListeners.element.removeEventListener(event, listener, false));
1540
+ }
1541
+ return result;
1542
+ }();
1543
+ });
1544
+ }
1545
+
1546
+ // Removes all event listeners and cancels all files in the queue or being processed.
1547
+
1548
+ }, {
1549
+ key: "disable",
1550
+ value: function disable() {
1551
+ var _this4 = this;
1552
+
1553
+ this.clickableElements.forEach(function (element) {
1554
+ return element.classList.remove("dz-clickable");
1555
+ });
1556
+ this.removeEventListeners();
1557
+ this.disabled = true;
1558
+
1559
+ return this.files.map(function (file) {
1560
+ return _this4.cancelUpload(file);
1561
+ });
1562
+ }
1563
+ }, {
1564
+ key: "enable",
1565
+ value: function enable() {
1566
+ delete this.disabled;
1567
+ this.clickableElements.forEach(function (element) {
1568
+ return element.classList.add("dz-clickable");
1569
+ });
1570
+ return this.setupEventListeners();
1571
+ }
1572
+
1573
+ // Returns a nicely formatted filesize
1574
+
1575
+ }, {
1576
+ key: "filesize",
1577
+ value: function filesize(size) {
1578
+ var selectedSize = 0;
1579
+ var selectedUnit = "b";
1580
+
1581
+ if (size > 0) {
1582
+ var units = ['tb', 'gb', 'mb', 'kb', 'b'];
1583
+
1584
+ for (var i = 0; i < units.length; i++) {
1585
+ var unit = units[i];
1586
+ var cutoff = Math.pow(this.options.filesizeBase, 4 - i) / 10;
1587
+
1588
+ if (size >= cutoff) {
1589
+ selectedSize = size / Math.pow(this.options.filesizeBase, 4 - i);
1590
+ selectedUnit = unit;
1591
+ break;
1592
+ }
1593
+ }
1594
+
1595
+ selectedSize = Math.round(10 * selectedSize) / 10; // Cutting of digits
1596
+ }
1597
+
1598
+ return "<strong>" + selectedSize + "</strong> " + this.options.dictFileSizeUnits[selectedUnit];
1599
+ }
1600
+
1601
+ // Adds or removes the `dz-max-files-reached` class from the form.
1602
+
1603
+ }, {
1604
+ key: "_updateMaxFilesReachedClass",
1605
+ value: function _updateMaxFilesReachedClass() {
1606
+ if (this.options.maxFiles != null && this.getAcceptedFiles().length >= this.options.maxFiles) {
1607
+ if (this.getAcceptedFiles().length === this.options.maxFiles) {
1608
+ this.emit('maxfilesreached', this.files);
1609
+ }
1610
+ return this.element.classList.add("dz-max-files-reached");
1611
+ } else {
1612
+ return this.element.classList.remove("dz-max-files-reached");
1613
+ }
1614
+ }
1615
+ }, {
1616
+ key: "drop",
1617
+ value: function drop(e) {
1618
+ if (!e.dataTransfer) {
1619
+ return;
1620
+ }
1621
+ this.emit("drop", e);
1622
+
1623
+ // Convert the FileList to an Array
1624
+ // This is necessary for IE11
1625
+ var files = [];
1626
+ for (var i = 0; i < e.dataTransfer.files.length; i++) {
1627
+ files[i] = e.dataTransfer.files[i];
1628
+ }
1629
+
1630
+ this.emit("addedfiles", files);
1631
+
1632
+ // Even if it's a folder, files.length will contain the folders.
1633
+ if (files.length) {
1634
+ var items = e.dataTransfer.items;
1635
+
1636
+ if (items && items.length && items[0].webkitGetAsEntry != null) {
1637
+ // The browser supports dropping of folders, so handle items instead of files
1638
+ this._addFilesFromItems(items);
1639
+ } else {
1640
+ this.handleFiles(files);
1641
+ }
1642
+ }
1643
+ }
1644
+ }, {
1645
+ key: "paste",
1646
+ value: function paste(e) {
1647
+ if (__guard__(e != null ? e.clipboardData : undefined, function (x) {
1648
+ return x.items;
1649
+ }) == null) {
1650
+ return;
1651
+ }
1652
+
1653
+ this.emit("paste", e);
1654
+ var items = e.clipboardData.items;
1655
+
1656
+
1657
+ if (items.length) {
1658
+ return this._addFilesFromItems(items);
1659
+ }
1660
+ }
1661
+ }, {
1662
+ key: "handleFiles",
1663
+ value: function handleFiles(files) {
1664
+ for (var _iterator14 = files, _isArray14 = true, _i15 = 0, _iterator14 = _isArray14 ? _iterator14 : _iterator14[Symbol.iterator]();;) {
1665
+ var _ref13;
1666
+
1667
+ if (_isArray14) {
1668
+ if (_i15 >= _iterator14.length) break;
1669
+ _ref13 = _iterator14[_i15++];
1670
+ } else {
1671
+ _i15 = _iterator14.next();
1672
+ if (_i15.done) break;
1673
+ _ref13 = _i15.value;
1674
+ }
1675
+
1676
+ var file = _ref13;
1677
+
1678
+ this.addFile(file);
1679
+ }
1680
+ }
1681
+
1682
+ // When a folder is dropped (or files are pasted), items must be handled
1683
+ // instead of files.
1684
+
1685
+ }, {
1686
+ key: "_addFilesFromItems",
1687
+ value: function _addFilesFromItems(items) {
1688
+ var _this5 = this;
1689
+
1690
+ return function () {
1691
+ var result = [];
1692
+ for (var _iterator15 = items, _isArray15 = true, _i16 = 0, _iterator15 = _isArray15 ? _iterator15 : _iterator15[Symbol.iterator]();;) {
1693
+ var _ref14;
1694
+
1695
+ if (_isArray15) {
1696
+ if (_i16 >= _iterator15.length) break;
1697
+ _ref14 = _iterator15[_i16++];
1698
+ } else {
1699
+ _i16 = _iterator15.next();
1700
+ if (_i16.done) break;
1701
+ _ref14 = _i16.value;
1702
+ }
1703
+
1704
+ var item = _ref14;
1705
+
1706
+ var entry;
1707
+ if (item.webkitGetAsEntry != null && (entry = item.webkitGetAsEntry())) {
1708
+ if (entry.isFile) {
1709
+ result.push(_this5.addFile(item.getAsFile()));
1710
+ } else if (entry.isDirectory) {
1711
+ // Append all files from that directory to files
1712
+ result.push(_this5._addFilesFromDirectory(entry, entry.name));
1713
+ } else {
1714
+ result.push(undefined);
1715
+ }
1716
+ } else if (item.getAsFile != null) {
1717
+ if (item.kind == null || item.kind === "file") {
1718
+ result.push(_this5.addFile(item.getAsFile()));
1719
+ } else {
1720
+ result.push(undefined);
1721
+ }
1722
+ } else {
1723
+ result.push(undefined);
1724
+ }
1725
+ }
1726
+ return result;
1727
+ }();
1728
+ }
1729
+
1730
+ // Goes through the directory, and adds each file it finds recursively
1731
+
1732
+ }, {
1733
+ key: "_addFilesFromDirectory",
1734
+ value: function _addFilesFromDirectory(directory, path) {
1735
+ var _this6 = this;
1736
+
1737
+ var dirReader = directory.createReader();
1738
+
1739
+ var errorHandler = function errorHandler(error) {
1740
+ return __guardMethod__(console, 'log', function (o) {
1741
+ return o.log(error);
1742
+ });
1743
+ };
1744
+
1745
+ var readEntries = function readEntries() {
1746
+ return dirReader.readEntries(function (entries) {
1747
+ if (entries.length > 0) {
1748
+ for (var _iterator16 = entries, _isArray16 = true, _i17 = 0, _iterator16 = _isArray16 ? _iterator16 : _iterator16[Symbol.iterator]();;) {
1749
+ var _ref15;
1750
+
1751
+ if (_isArray16) {
1752
+ if (_i17 >= _iterator16.length) break;
1753
+ _ref15 = _iterator16[_i17++];
1754
+ } else {
1755
+ _i17 = _iterator16.next();
1756
+ if (_i17.done) break;
1757
+ _ref15 = _i17.value;
1758
+ }
1759
+
1760
+ var entry = _ref15;
1761
+
1762
+ if (entry.isFile) {
1763
+ entry.file(function (file) {
1764
+ if (_this6.options.ignoreHiddenFiles && file.name.substring(0, 1) === '.') {
1765
+ return;
1766
+ }
1767
+ file.fullPath = path + "/" + file.name;
1768
+ return _this6.addFile(file);
1769
+ });
1770
+ } else if (entry.isDirectory) {
1771
+ _this6._addFilesFromDirectory(entry, path + "/" + entry.name);
1772
+ }
1773
+ }
1774
+
1775
+ // Recursively call readEntries() again, since browser only handle
1776
+ // the first 100 entries.
1777
+ // See: https://developer.mozilla.org/en-US/docs/Web/API/DirectoryReader#readEntries
1778
+ readEntries();
1779
+ }
1780
+ return null;
1781
+ }, errorHandler);
1782
+ };
1783
+
1784
+ return readEntries();
1785
+ }
1786
+
1787
+ // If `done()` is called without argument the file is accepted
1788
+ // If you call it with an error message, the file is rejected
1789
+ // (This allows for asynchronous validation)
1790
+ //
1791
+ // This function checks the filesize, and if the file.type passes the
1792
+ // `acceptedFiles` check.
1793
+
1794
+ }, {
1795
+ key: "accept",
1796
+ value: function accept(file, done) {
1797
+ if (file.size > this.options.maxFilesize * 1024 * 1024) {
1798
+ return done(this.options.dictFileTooBig.replace("{{filesize}}", Math.round(file.size / 1024 / 10.24) / 100).replace("{{maxFilesize}}", this.options.maxFilesize));
1799
+ } else if (!Dropzone.isValidFile(file, this.options.acceptedFiles)) {
1800
+ return done(this.options.dictInvalidFileType);
1801
+ } else if (this.options.maxFiles != null && this.getAcceptedFiles().length >= this.options.maxFiles) {
1802
+ done(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}", this.options.maxFiles));
1803
+ return this.emit("maxfilesexceeded", file);
1804
+ } else {
1805
+ return this.options.accept.call(this, file, done);
1806
+ }
1807
+ }
1808
+ }, {
1809
+ key: "addFile",
1810
+ value: function addFile(file) {
1811
+ var _this7 = this;
1812
+
1813
+ file.upload = {
1814
+ uuid: Dropzone.uuidv4(),
1815
+ progress: 0,
1816
+ // Setting the total upload size to file.size for the beginning
1817
+ // It's actual different than the size to be transmitted.
1818
+ total: file.size,
1819
+ bytesSent: 0,
1820
+ filename: this._renameFile(file),
1821
+ chunked: this.options.chunking && (this.options.forceChunking || file.size > this.options.chunkSize),
1822
+ totalChunkCount: Math.ceil(file.size / this.options.chunkSize)
1823
+ };
1824
+ this.files.push(file);
1825
+
1826
+ file.status = Dropzone.ADDED;
1827
+
1828
+ this.emit("addedfile", file);
1829
+
1830
+ this._enqueueThumbnail(file);
1831
+
1832
+ return this.accept(file, function (error) {
1833
+ if (error) {
1834
+ file.accepted = false;
1835
+ _this7._errorProcessing([file], error); // Will set the file.status
1836
+ } else {
1837
+ file.accepted = true;
1838
+ if (_this7.options.autoQueue) {
1839
+ _this7.enqueueFile(file);
1840
+ } // Will set .accepted = true
1841
+ }
1842
+ return _this7._updateMaxFilesReachedClass();
1843
+ });
1844
+ }
1845
+
1846
+ // Wrapper for enqueueFile
1847
+
1848
+ }, {
1849
+ key: "enqueueFiles",
1850
+ value: function enqueueFiles(files) {
1851
+ for (var _iterator17 = files, _isArray17 = true, _i18 = 0, _iterator17 = _isArray17 ? _iterator17 : _iterator17[Symbol.iterator]();;) {
1852
+ var _ref16;
1853
+
1854
+ if (_isArray17) {
1855
+ if (_i18 >= _iterator17.length) break;
1856
+ _ref16 = _iterator17[_i18++];
1857
+ } else {
1858
+ _i18 = _iterator17.next();
1859
+ if (_i18.done) break;
1860
+ _ref16 = _i18.value;
1861
+ }
1862
+
1863
+ var file = _ref16;
1864
+
1865
+ this.enqueueFile(file);
1866
+ }
1867
+ return null;
1868
+ }
1869
+ }, {
1870
+ key: "enqueueFile",
1871
+ value: function enqueueFile(file) {
1872
+ var _this8 = this;
1873
+
1874
+ if (file.status === Dropzone.ADDED && file.accepted === true) {
1875
+ file.status = Dropzone.QUEUED;
1876
+ if (this.options.autoProcessQueue) {
1877
+ return setTimeout(function () {
1878
+ return _this8.processQueue();
1879
+ }, 0); // Deferring the call
1880
+ }
1881
+ } else {
1882
+ throw new Error("This file can't be queued because it has already been processed or was rejected.");
1883
+ }
1884
+ }
1885
+ }, {
1886
+ key: "_enqueueThumbnail",
1887
+ value: function _enqueueThumbnail(file) {
1888
+ var _this9 = this;
1889
+
1890
+ if (this.options.createImageThumbnails && file.type.match(/image.*/) && file.size <= this.options.maxThumbnailFilesize * 1024 * 1024) {
1891
+ this._thumbnailQueue.push(file);
1892
+ return setTimeout(function () {
1893
+ return _this9._processThumbnailQueue();
1894
+ }, 0); // Deferring the call
1895
+ }
1896
+ }
1897
+ }, {
1898
+ key: "_processThumbnailQueue",
1899
+ value: function _processThumbnailQueue() {
1900
+ var _this10 = this;
1901
+
1902
+ if (this._processingThumbnail || this._thumbnailQueue.length === 0) {
1903
+ return;
1904
+ }
1905
+
1906
+ this._processingThumbnail = true;
1907
+ var file = this._thumbnailQueue.shift();
1908
+ return this.createThumbnail(file, this.options.thumbnailWidth, this.options.thumbnailHeight, this.options.thumbnailMethod, true, function (dataUrl) {
1909
+ _this10.emit("thumbnail", file, dataUrl);
1910
+ _this10._processingThumbnail = false;
1911
+ return _this10._processThumbnailQueue();
1912
+ });
1913
+ }
1914
+
1915
+ // Can be called by the user to remove a file
1916
+
1917
+ }, {
1918
+ key: "removeFile",
1919
+ value: function removeFile(file) {
1920
+ if (file.status === Dropzone.UPLOADING) {
1921
+ this.cancelUpload(file);
1922
+ }
1923
+ this.files = without(this.files, file);
1924
+
1925
+ this.emit("removedfile", file);
1926
+ if (this.files.length === 0) {
1927
+ return this.emit("reset");
1928
+ }
1929
+ }
1930
+
1931
+ // Removes all files that aren't currently processed from the list
1932
+
1933
+ }, {
1934
+ key: "removeAllFiles",
1935
+ value: function removeAllFiles(cancelIfNecessary) {
1936
+ // Create a copy of files since removeFile() changes the @files array.
1937
+ if (cancelIfNecessary == null) {
1938
+ cancelIfNecessary = false;
1939
+ }
1940
+ for (var _iterator18 = this.files.slice(), _isArray18 = true, _i19 = 0, _iterator18 = _isArray18 ? _iterator18 : _iterator18[Symbol.iterator]();;) {
1941
+ var _ref17;
1942
+
1943
+ if (_isArray18) {
1944
+ if (_i19 >= _iterator18.length) break;
1945
+ _ref17 = _iterator18[_i19++];
1946
+ } else {
1947
+ _i19 = _iterator18.next();
1948
+ if (_i19.done) break;
1949
+ _ref17 = _i19.value;
1950
+ }
1951
+
1952
+ var file = _ref17;
1953
+
1954
+ if (file.status !== Dropzone.UPLOADING || cancelIfNecessary) {
1955
+ this.removeFile(file);
1956
+ }
1957
+ }
1958
+ return null;
1959
+ }
1960
+
1961
+ // Resizes an image before it gets sent to the server. This function is the default behavior of
1962
+ // `options.transformFile` if `resizeWidth` or `resizeHeight` are set. The callback is invoked with
1963
+ // the resized blob.
1964
+
1965
+ }, {
1966
+ key: "resizeImage",
1967
+ value: function resizeImage(file, width, height, resizeMethod, callback) {
1968
+ var _this11 = this;
1969
+
1970
+ return this.createThumbnail(file, width, height, resizeMethod, false, function (dataUrl, canvas) {
1971
+ if (canvas == null) {
1972
+ // The image has not been resized
1973
+ return callback(file);
1974
+ } else {
1975
+ var resizeMimeType = _this11.options.resizeMimeType;
1976
+
1977
+ if (resizeMimeType == null) {
1978
+ resizeMimeType = file.type;
1979
+ }
1980
+ var resizedDataURL = canvas.toDataURL(resizeMimeType, _this11.options.resizeQuality);
1981
+ if (resizeMimeType === 'image/jpeg' || resizeMimeType === 'image/jpg') {
1982
+ // Now add the original EXIF information
1983
+ resizedDataURL = ExifRestore.restore(file.dataURL, resizedDataURL);
1984
+ }
1985
+ return callback(Dropzone.dataURItoBlob(resizedDataURL));
1986
+ }
1987
+ });
1988
+ }
1989
+ }, {
1990
+ key: "createThumbnail",
1991
+ value: function createThumbnail(file, width, height, resizeMethod, fixOrientation, callback) {
1992
+ var _this12 = this;
1993
+
1994
+ var fileReader = new FileReader();
1995
+
1996
+ fileReader.onload = function () {
1997
+
1998
+ file.dataURL = fileReader.result;
1999
+
2000
+ // Don't bother creating a thumbnail for SVG images since they're vector
2001
+ if (file.type === "image/svg+xml") {
2002
+ if (callback != null) {
2003
+ callback(fileReader.result);
2004
+ }
2005
+ return;
2006
+ }
2007
+
2008
+ return _this12.createThumbnailFromUrl(file, width, height, resizeMethod, fixOrientation, callback);
2009
+ };
2010
+
2011
+ return fileReader.readAsDataURL(file);
2012
+ }
2013
+ }, {
2014
+ key: "createThumbnailFromUrl",
2015
+ value: function createThumbnailFromUrl(file, width, height, resizeMethod, fixOrientation, callback, crossOrigin) {
2016
+ var _this13 = this;
2017
+
2018
+ // Not using `new Image` here because of a bug in latest Chrome versions.
2019
+ // See https://github.com/enyo/dropzone/pull/226
2020
+ var img = document.createElement("img");
2021
+
2022
+ if (crossOrigin) {
2023
+ img.crossOrigin = crossOrigin;
2024
+ }
2025
+
2026
+ img.onload = function () {
2027
+ var loadExif = function loadExif(callback) {
2028
+ return callback(1);
2029
+ };
2030
+ if (typeof EXIF !== 'undefined' && EXIF !== null && fixOrientation) {
2031
+ loadExif = function loadExif(callback) {
2032
+ return EXIF.getData(img, function () {
2033
+ return callback(EXIF.getTag(this, 'Orientation'));
2034
+ });
2035
+ };
2036
+ }
2037
+
2038
+ return loadExif(function (orientation) {
2039
+ file.width = img.width;
2040
+ file.height = img.height;
2041
+
2042
+ var resizeInfo = _this13.options.resize.call(_this13, file, width, height, resizeMethod);
2043
+
2044
+ var canvas = document.createElement("canvas");
2045
+ var ctx = canvas.getContext("2d");
2046
+
2047
+ canvas.width = resizeInfo.trgWidth;
2048
+ canvas.height = resizeInfo.trgHeight;
2049
+
2050
+ if (orientation > 4) {
2051
+ canvas.width = resizeInfo.trgHeight;
2052
+ canvas.height = resizeInfo.trgWidth;
2053
+ }
2054
+
2055
+ switch (orientation) {
2056
+ case 2:
2057
+ // horizontal flip
2058
+ ctx.translate(canvas.width, 0);
2059
+ ctx.scale(-1, 1);
2060
+ break;
2061
+ case 3:
2062
+ // 180° rotate left
2063
+ ctx.translate(canvas.width, canvas.height);
2064
+ ctx.rotate(Math.PI);
2065
+ break;
2066
+ case 4:
2067
+ // vertical flip
2068
+ ctx.translate(0, canvas.height);
2069
+ ctx.scale(1, -1);
2070
+ break;
2071
+ case 5:
2072
+ // vertical flip + 90 rotate right
2073
+ ctx.rotate(0.5 * Math.PI);
2074
+ ctx.scale(1, -1);
2075
+ break;
2076
+ case 6:
2077
+ // 90° rotate right
2078
+ ctx.rotate(0.5 * Math.PI);
2079
+ ctx.translate(0, -canvas.height);
2080
+ break;
2081
+ case 7:
2082
+ // horizontal flip + 90 rotate right
2083
+ ctx.rotate(0.5 * Math.PI);
2084
+ ctx.translate(canvas.width, -canvas.height);
2085
+ ctx.scale(-1, 1);
2086
+ break;
2087
+ case 8:
2088
+ // 90° rotate left
2089
+ ctx.rotate(-0.5 * Math.PI);
2090
+ ctx.translate(-canvas.width, 0);
2091
+ break;
2092
+ }
2093
+
2094
+ // This is a bugfix for iOS' scaling bug.
2095
+ drawImageIOSFix(ctx, img, resizeInfo.srcX != null ? resizeInfo.srcX : 0, resizeInfo.srcY != null ? resizeInfo.srcY : 0, resizeInfo.srcWidth, resizeInfo.srcHeight, resizeInfo.trgX != null ? resizeInfo.trgX : 0, resizeInfo.trgY != null ? resizeInfo.trgY : 0, resizeInfo.trgWidth, resizeInfo.trgHeight);
2096
+
2097
+ var thumbnail = canvas.toDataURL("image/png");
2098
+
2099
+ if (callback != null) {
2100
+ return callback(thumbnail, canvas);
2101
+ }
2102
+ });
2103
+ };
2104
+
2105
+ if (callback != null) {
2106
+ img.onerror = callback;
2107
+ }
2108
+
2109
+ return img.src = file.dataURL;
2110
+ }
2111
+
2112
+ // Goes through the queue and processes files if there aren't too many already.
2113
+
2114
+ }, {
2115
+ key: "processQueue",
2116
+ value: function processQueue() {
2117
+ var parallelUploads = this.options.parallelUploads;
2118
+
2119
+ var processingLength = this.getUploadingFiles().length;
2120
+ var i = processingLength;
2121
+
2122
+ // There are already at least as many files uploading than should be
2123
+ if (processingLength >= parallelUploads) {
2124
+ return;
2125
+ }
2126
+
2127
+ var queuedFiles = this.getQueuedFiles();
2128
+
2129
+ if (!(queuedFiles.length > 0)) {
2130
+ return;
2131
+ }
2132
+
2133
+ if (this.options.uploadMultiple) {
2134
+ // The files should be uploaded in one request
2135
+ return this.processFiles(queuedFiles.slice(0, parallelUploads - processingLength));
2136
+ } else {
2137
+ while (i < parallelUploads) {
2138
+ if (!queuedFiles.length) {
2139
+ return;
2140
+ } // Nothing left to process
2141
+ this.processFile(queuedFiles.shift());
2142
+ i++;
2143
+ }
2144
+ }
2145
+ }
2146
+
2147
+ // Wrapper for `processFiles`
2148
+
2149
+ }, {
2150
+ key: "processFile",
2151
+ value: function processFile(file) {
2152
+ return this.processFiles([file]);
2153
+ }
2154
+
2155
+ // Loads the file, then calls finishedLoading()
2156
+
2157
+ }, {
2158
+ key: "processFiles",
2159
+ value: function processFiles(files) {
2160
+ for (var _iterator19 = files, _isArray19 = true, _i20 = 0, _iterator19 = _isArray19 ? _iterator19 : _iterator19[Symbol.iterator]();;) {
2161
+ var _ref18;
2162
+
2163
+ if (_isArray19) {
2164
+ if (_i20 >= _iterator19.length) break;
2165
+ _ref18 = _iterator19[_i20++];
2166
+ } else {
2167
+ _i20 = _iterator19.next();
2168
+ if (_i20.done) break;
2169
+ _ref18 = _i20.value;
2170
+ }
2171
+
2172
+ var file = _ref18;
2173
+
2174
+ file.processing = true; // Backwards compatibility
2175
+ file.status = Dropzone.UPLOADING;
2176
+
2177
+ this.emit("processing", file);
2178
+ }
2179
+
2180
+ if (this.options.uploadMultiple) {
2181
+ this.emit("processingmultiple", files);
2182
+ }
2183
+
2184
+ return this.uploadFiles(files);
2185
+ }
2186
+ }, {
2187
+ key: "_getFilesWithXhr",
2188
+ value: function _getFilesWithXhr(xhr) {
2189
+ var files = void 0;
2190
+ return files = this.files.filter(function (file) {
2191
+ return file.xhr === xhr;
2192
+ }).map(function (file) {
2193
+ return file;
2194
+ });
2195
+ }
2196
+
2197
+ // Cancels the file upload and sets the status to CANCELED
2198
+ // **if** the file is actually being uploaded.
2199
+ // If it's still in the queue, the file is being removed from it and the status
2200
+ // set to CANCELED.
2201
+
2202
+ }, {
2203
+ key: "cancelUpload",
2204
+ value: function cancelUpload(file) {
2205
+ if (file.status === Dropzone.UPLOADING) {
2206
+ var groupedFiles = this._getFilesWithXhr(file.xhr);
2207
+ for (var _iterator20 = groupedFiles, _isArray20 = true, _i21 = 0, _iterator20 = _isArray20 ? _iterator20 : _iterator20[Symbol.iterator]();;) {
2208
+ var _ref19;
2209
+
2210
+ if (_isArray20) {
2211
+ if (_i21 >= _iterator20.length) break;
2212
+ _ref19 = _iterator20[_i21++];
2213
+ } else {
2214
+ _i21 = _iterator20.next();
2215
+ if (_i21.done) break;
2216
+ _ref19 = _i21.value;
2217
+ }
2218
+
2219
+ var groupedFile = _ref19;
2220
+
2221
+ groupedFile.status = Dropzone.CANCELED;
2222
+ }
2223
+ if (typeof file.xhr !== 'undefined') {
2224
+ file.xhr.abort();
2225
+ }
2226
+ for (var _iterator21 = groupedFiles, _isArray21 = true, _i22 = 0, _iterator21 = _isArray21 ? _iterator21 : _iterator21[Symbol.iterator]();;) {
2227
+ var _ref20;
2228
+
2229
+ if (_isArray21) {
2230
+ if (_i22 >= _iterator21.length) break;
2231
+ _ref20 = _iterator21[_i22++];
2232
+ } else {
2233
+ _i22 = _iterator21.next();
2234
+ if (_i22.done) break;
2235
+ _ref20 = _i22.value;
2236
+ }
2237
+
2238
+ var _groupedFile = _ref20;
2239
+
2240
+ this.emit("canceled", _groupedFile);
2241
+ }
2242
+ if (this.options.uploadMultiple) {
2243
+ this.emit("canceledmultiple", groupedFiles);
2244
+ }
2245
+ } else if (file.status === Dropzone.ADDED || file.status === Dropzone.QUEUED) {
2246
+ file.status = Dropzone.CANCELED;
2247
+ this.emit("canceled", file);
2248
+ if (this.options.uploadMultiple) {
2249
+ this.emit("canceledmultiple", [file]);
2250
+ }
2251
+ }
2252
+
2253
+ if (this.options.autoProcessQueue) {
2254
+ return this.processQueue();
2255
+ }
2256
+ }
2257
+ }, {
2258
+ key: "resolveOption",
2259
+ value: function resolveOption(option) {
2260
+ if (typeof option === 'function') {
2261
+ for (var _len3 = arguments.length, args = Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
2262
+ args[_key3 - 1] = arguments[_key3];
2263
+ }
2264
+
2265
+ return option.apply(this, args);
2266
+ }
2267
+ return option;
2268
+ }
2269
+ }, {
2270
+ key: "uploadFile",
2271
+ value: function uploadFile(file) {
2272
+ return this.uploadFiles([file]);
2273
+ }
2274
+ }, {
2275
+ key: "uploadFiles",
2276
+ value: function uploadFiles(files) {
2277
+ var _this14 = this;
2278
+
2279
+ this._transformFiles(files, function (transformedFiles) {
2280
+ if (files[0].upload.chunked) {
2281
+ // This file should be sent in chunks!
2282
+
2283
+ // If the chunking option is set, we **know** that there can only be **one** file, since
2284
+ // uploadMultiple is not allowed with this option.
2285
+ var file = files[0];
2286
+ var transformedFile = transformedFiles[0];
2287
+ var startedChunkCount = 0;
2288
+
2289
+ file.upload.chunks = [];
2290
+
2291
+ var handleNextChunk = function handleNextChunk() {
2292
+ var chunkIndex = 0;
2293
+
2294
+ // Find the next item in file.upload.chunks that is not defined yet.
2295
+ while (file.upload.chunks[chunkIndex] !== undefined) {
2296
+ chunkIndex++;
2297
+ }
2298
+
2299
+ // This means, that all chunks have already been started.
2300
+ if (chunkIndex >= file.upload.totalChunkCount) return;
2301
+
2302
+ startedChunkCount++;
2303
+
2304
+ var start = chunkIndex * _this14.options.chunkSize;
2305
+ var end = Math.min(start + _this14.options.chunkSize, file.size);
2306
+
2307
+ var dataBlock = {
2308
+ name: _this14._getParamName(0),
2309
+ data: transformedFile.webkitSlice ? transformedFile.webkitSlice(start, end) : transformedFile.slice(start, end),
2310
+ filename: file.upload.filename,
2311
+ chunkIndex: chunkIndex
2312
+ };
2313
+
2314
+ file.upload.chunks[chunkIndex] = {
2315
+ file: file,
2316
+ index: chunkIndex,
2317
+ dataBlock: dataBlock, // In case we want to retry.
2318
+ status: Dropzone.UPLOADING,
2319
+ progress: 0,
2320
+ retries: 0 // The number of times this block has been retried.
2321
+ };
2322
+
2323
+ _this14._uploadData(files, [dataBlock]);
2324
+ };
2325
+
2326
+ file.upload.finishedChunkUpload = function (chunk) {
2327
+ var allFinished = true;
2328
+ chunk.status = Dropzone.SUCCESS;
2329
+
2330
+ // Clear the data from the chunk
2331
+ chunk.dataBlock = null;
2332
+
2333
+ for (var i = 0; i < file.upload.totalChunkCount; i++) {
2334
+ if (file.upload.chunks[i] === undefined) {
2335
+ return handleNextChunk();
2336
+ }
2337
+ if (file.upload.chunks[i].status !== Dropzone.SUCCESS) {
2338
+ allFinished = false;
2339
+ }
2340
+ }
2341
+
2342
+ if (allFinished) {
2343
+ _this14.options.chunksUploaded(file, function () {
2344
+ _this14._finished(files, '', null);
2345
+ });
2346
+ }
2347
+ };
2348
+
2349
+ if (_this14.options.parallelChunkUploads) {
2350
+ for (var i = 0; i < file.upload.totalChunkCount; i++) {
2351
+ handleNextChunk();
2352
+ }
2353
+ } else {
2354
+ handleNextChunk();
2355
+ }
2356
+ } else {
2357
+ var dataBlocks = [];
2358
+ for (var _i23 = 0; _i23 < files.length; _i23++) {
2359
+ dataBlocks[_i23] = {
2360
+ name: _this14._getParamName(_i23),
2361
+ data: transformedFiles[_i23],
2362
+ filename: files[_i23].upload.filename
2363
+ };
2364
+ }
2365
+ _this14._uploadData(files, dataBlocks);
2366
+ }
2367
+ });
2368
+ }
2369
+
2370
+ /// Returns the right chunk for given file and xhr
2371
+
2372
+ }, {
2373
+ key: "_getChunk",
2374
+ value: function _getChunk(file, xhr) {
2375
+ for (var i = 0; i < file.upload.totalChunkCount; i++) {
2376
+ if (file.upload.chunks[i] !== undefined && file.upload.chunks[i].xhr === xhr) {
2377
+ return file.upload.chunks[i];
2378
+ }
2379
+ }
2380
+ }
2381
+
2382
+ // This function actually uploads the file(s) to the server.
2383
+ // If dataBlocks contains the actual data to upload (meaning, that this could either be transformed
2384
+ // files, or individual chunks for chunked upload).
2385
+
2386
+ }, {
2387
+ key: "_uploadData",
2388
+ value: function _uploadData(files, dataBlocks) {
2389
+ var _this15 = this;
2390
+
2391
+ var xhr = new XMLHttpRequest();
2392
+
2393
+ // Put the xhr object in the file objects to be able to reference it later.
2394
+ for (var _iterator22 = files, _isArray22 = true, _i24 = 0, _iterator22 = _isArray22 ? _iterator22 : _iterator22[Symbol.iterator]();;) {
2395
+ var _ref21;
2396
+
2397
+ if (_isArray22) {
2398
+ if (_i24 >= _iterator22.length) break;
2399
+ _ref21 = _iterator22[_i24++];
2400
+ } else {
2401
+ _i24 = _iterator22.next();
2402
+ if (_i24.done) break;
2403
+ _ref21 = _i24.value;
2404
+ }
2405
+
2406
+ var file = _ref21;
2407
+
2408
+ file.xhr = xhr;
2409
+ }
2410
+ if (files[0].upload.chunked) {
2411
+ // Put the xhr object in the right chunk object, so it can be associated later, and found with _getChunk
2412
+ files[0].upload.chunks[dataBlocks[0].chunkIndex].xhr = xhr;
2413
+ }
2414
+
2415
+ var method = this.resolveOption(this.options.method, files);
2416
+ var url = this.resolveOption(this.options.url, files);
2417
+ xhr.open(method, url, true);
2418
+
2419
+ // Setting the timeout after open because of IE11 issue: https://gitlab.com/meno/dropzone/issues/8
2420
+ xhr.timeout = this.resolveOption(this.options.timeout, files);
2421
+
2422
+ // Has to be after `.open()`. See https://github.com/enyo/dropzone/issues/179
2423
+ xhr.withCredentials = !!this.options.withCredentials;
2424
+
2425
+ xhr.onload = function (e) {
2426
+ _this15._finishedUploading(files, xhr, e);
2427
+ };
2428
+
2429
+ xhr.onerror = function () {
2430
+ _this15._handleUploadError(files, xhr);
2431
+ };
2432
+
2433
+ // Some browsers do not have the .upload property
2434
+ var progressObj = xhr.upload != null ? xhr.upload : xhr;
2435
+ progressObj.onprogress = function (e) {
2436
+ return _this15._updateFilesUploadProgress(files, xhr, e);
2437
+ };
2438
+
2439
+ var headers = {
2440
+ "Accept": "application/json",
2441
+ "Cache-Control": "no-cache",
2442
+ "X-Requested-With": "XMLHttpRequest"
2443
+ };
2444
+
2445
+ if (this.options.headers) {
2446
+ Dropzone.extend(headers, this.options.headers);
2447
+ }
2448
+
2449
+ for (var headerName in headers) {
2450
+ var headerValue = headers[headerName];
2451
+ if (headerValue) {
2452
+ xhr.setRequestHeader(headerName, headerValue);
2453
+ }
2454
+ }
2455
+
2456
+ var formData = new FormData();
2457
+
2458
+ // Adding all @options parameters
2459
+ if (this.options.params) {
2460
+ var additionalParams = this.options.params;
2461
+ if (typeof additionalParams === 'function') {
2462
+ additionalParams = additionalParams.call(this, files, xhr, files[0].upload.chunked ? this._getChunk(files[0], xhr) : null);
2463
+ }
2464
+
2465
+ for (var key in additionalParams) {
2466
+ var value = additionalParams[key];
2467
+ formData.append(key, value);
2468
+ }
2469
+ }
2470
+
2471
+ // Let the user add additional data if necessary
2472
+ for (var _iterator23 = files, _isArray23 = true, _i25 = 0, _iterator23 = _isArray23 ? _iterator23 : _iterator23[Symbol.iterator]();;) {
2473
+ var _ref22;
2474
+
2475
+ if (_isArray23) {
2476
+ if (_i25 >= _iterator23.length) break;
2477
+ _ref22 = _iterator23[_i25++];
2478
+ } else {
2479
+ _i25 = _iterator23.next();
2480
+ if (_i25.done) break;
2481
+ _ref22 = _i25.value;
2482
+ }
2483
+
2484
+ var _file = _ref22;
2485
+
2486
+ this.emit("sending", _file, xhr, formData);
2487
+ }
2488
+ if (this.options.uploadMultiple) {
2489
+ this.emit("sendingmultiple", files, xhr, formData);
2490
+ }
2491
+
2492
+ this._addFormElementData(formData);
2493
+
2494
+ // Finally add the files
2495
+ // Has to be last because some servers (eg: S3) expect the file to be the last parameter
2496
+ for (var i = 0; i < dataBlocks.length; i++) {
2497
+ var dataBlock = dataBlocks[i];
2498
+ formData.append(dataBlock.name, dataBlock.data, dataBlock.filename);
2499
+ }
2500
+
2501
+ this.submitRequest(xhr, formData, files);
2502
+ }
2503
+
2504
+ // Transforms all files with this.options.transformFile and invokes done with the transformed files when done.
2505
+
2506
+ }, {
2507
+ key: "_transformFiles",
2508
+ value: function _transformFiles(files, done) {
2509
+ var _this16 = this;
2510
+
2511
+ var transformedFiles = [];
2512
+ // Clumsy way of handling asynchronous calls, until I get to add a proper Future library.
2513
+ var doneCounter = 0;
2514
+
2515
+ var _loop = function _loop(i) {
2516
+ _this16.options.transformFile.call(_this16, files[i], function (transformedFile) {
2517
+ transformedFiles[i] = transformedFile;
2518
+ if (++doneCounter === files.length) {
2519
+ done(transformedFiles);
2520
+ }
2521
+ });
2522
+ };
2523
+
2524
+ for (var i = 0; i < files.length; i++) {
2525
+ _loop(i);
2526
+ }
2527
+ }
2528
+
2529
+ // Takes care of adding other input elements of the form to the AJAX request
2530
+
2531
+ }, {
2532
+ key: "_addFormElementData",
2533
+ value: function _addFormElementData(formData) {
2534
+ // Take care of other input elements
2535
+ if (this.element.tagName === "FORM") {
2536
+ for (var _iterator24 = this.element.querySelectorAll("input, textarea, select, button"), _isArray24 = true, _i26 = 0, _iterator24 = _isArray24 ? _iterator24 : _iterator24[Symbol.iterator]();;) {
2537
+ var _ref23;
2538
+
2539
+ if (_isArray24) {
2540
+ if (_i26 >= _iterator24.length) break;
2541
+ _ref23 = _iterator24[_i26++];
2542
+ } else {
2543
+ _i26 = _iterator24.next();
2544
+ if (_i26.done) break;
2545
+ _ref23 = _i26.value;
2546
+ }
2547
+
2548
+ var input = _ref23;
2549
+
2550
+ var inputName = input.getAttribute("name");
2551
+ var inputType = input.getAttribute("type");
2552
+ if (inputType) inputType = inputType.toLowerCase();
2553
+
2554
+ // If the input doesn't have a name, we can't use it.
2555
+ if (typeof inputName === 'undefined' || inputName === null) continue;
2556
+
2557
+ if (input.tagName === "SELECT" && input.hasAttribute("multiple")) {
2558
+ // Possibly multiple values
2559
+ for (var _iterator25 = input.options, _isArray25 = true, _i27 = 0, _iterator25 = _isArray25 ? _iterator25 : _iterator25[Symbol.iterator]();;) {
2560
+ var _ref24;
2561
+
2562
+ if (_isArray25) {
2563
+ if (_i27 >= _iterator25.length) break;
2564
+ _ref24 = _iterator25[_i27++];
2565
+ } else {
2566
+ _i27 = _iterator25.next();
2567
+ if (_i27.done) break;
2568
+ _ref24 = _i27.value;
2569
+ }
2570
+
2571
+ var option = _ref24;
2572
+
2573
+ if (option.selected) {
2574
+ formData.append(inputName, option.value);
2575
+ }
2576
+ }
2577
+ } else if (!inputType || inputType !== "checkbox" && inputType !== "radio" || input.checked) {
2578
+ formData.append(inputName, input.value);
2579
+ }
2580
+ }
2581
+ }
2582
+ }
2583
+
2584
+ // Invoked when there is new progress information about given files.
2585
+ // If e is not provided, it is assumed that the upload is finished.
2586
+
2587
+ }, {
2588
+ key: "_updateFilesUploadProgress",
2589
+ value: function _updateFilesUploadProgress(files, xhr, e) {
2590
+ var progress = void 0;
2591
+ if (typeof e !== 'undefined') {
2592
+ progress = 100 * e.loaded / e.total;
2593
+
2594
+ if (files[0].upload.chunked) {
2595
+ var file = files[0];
2596
+ // Since this is a chunked upload, we need to update the appropriate chunk progress.
2597
+ var chunk = this._getChunk(file, xhr);
2598
+ chunk.progress = progress;
2599
+ chunk.total = e.total;
2600
+ chunk.bytesSent = e.loaded;
2601
+ var fileProgress = 0,
2602
+ fileTotal = void 0,
2603
+ fileBytesSent = void 0;
2604
+ file.upload.progress = 0;
2605
+ file.upload.total = 0;
2606
+ file.upload.bytesSent = 0;
2607
+ for (var i = 0; i < file.upload.totalChunkCount; i++) {
2608
+ if (file.upload.chunks[i] !== undefined && file.upload.chunks[i].progress !== undefined) {
2609
+ file.upload.progress += file.upload.chunks[i].progress;
2610
+ file.upload.total += file.upload.chunks[i].total;
2611
+ file.upload.bytesSent += file.upload.chunks[i].bytesSent;
2612
+ }
2613
+ }
2614
+ file.upload.progress = file.upload.progress / file.upload.totalChunkCount;
2615
+ } else {
2616
+ for (var _iterator26 = files, _isArray26 = true, _i28 = 0, _iterator26 = _isArray26 ? _iterator26 : _iterator26[Symbol.iterator]();;) {
2617
+ var _ref25;
2618
+
2619
+ if (_isArray26) {
2620
+ if (_i28 >= _iterator26.length) break;
2621
+ _ref25 = _iterator26[_i28++];
2622
+ } else {
2623
+ _i28 = _iterator26.next();
2624
+ if (_i28.done) break;
2625
+ _ref25 = _i28.value;
2626
+ }
2627
+
2628
+ var _file2 = _ref25;
2629
+
2630
+ _file2.upload.progress = progress;
2631
+ _file2.upload.total = e.total;
2632
+ _file2.upload.bytesSent = e.loaded;
2633
+ }
2634
+ }
2635
+ for (var _iterator27 = files, _isArray27 = true, _i29 = 0, _iterator27 = _isArray27 ? _iterator27 : _iterator27[Symbol.iterator]();;) {
2636
+ var _ref26;
2637
+
2638
+ if (_isArray27) {
2639
+ if (_i29 >= _iterator27.length) break;
2640
+ _ref26 = _iterator27[_i29++];
2641
+ } else {
2642
+ _i29 = _iterator27.next();
2643
+ if (_i29.done) break;
2644
+ _ref26 = _i29.value;
2645
+ }
2646
+
2647
+ var _file3 = _ref26;
2648
+
2649
+ this.emit("uploadprogress", _file3, _file3.upload.progress, _file3.upload.bytesSent);
2650
+ }
2651
+ } else {
2652
+ // Called when the file finished uploading
2653
+
2654
+ var allFilesFinished = true;
2655
+
2656
+ progress = 100;
2657
+
2658
+ for (var _iterator28 = files, _isArray28 = true, _i30 = 0, _iterator28 = _isArray28 ? _iterator28 : _iterator28[Symbol.iterator]();;) {
2659
+ var _ref27;
2660
+
2661
+ if (_isArray28) {
2662
+ if (_i30 >= _iterator28.length) break;
2663
+ _ref27 = _iterator28[_i30++];
2664
+ } else {
2665
+ _i30 = _iterator28.next();
2666
+ if (_i30.done) break;
2667
+ _ref27 = _i30.value;
2668
+ }
2669
+
2670
+ var _file4 = _ref27;
2671
+
2672
+ if (_file4.upload.progress !== 100 || _file4.upload.bytesSent !== _file4.upload.total) {
2673
+ allFilesFinished = false;
2674
+ }
2675
+ _file4.upload.progress = progress;
2676
+ _file4.upload.bytesSent = _file4.upload.total;
2677
+ }
2678
+
2679
+ // Nothing to do, all files already at 100%
2680
+ if (allFilesFinished) {
2681
+ return;
2682
+ }
2683
+
2684
+ for (var _iterator29 = files, _isArray29 = true, _i31 = 0, _iterator29 = _isArray29 ? _iterator29 : _iterator29[Symbol.iterator]();;) {
2685
+ var _ref28;
2686
+
2687
+ if (_isArray29) {
2688
+ if (_i31 >= _iterator29.length) break;
2689
+ _ref28 = _iterator29[_i31++];
2690
+ } else {
2691
+ _i31 = _iterator29.next();
2692
+ if (_i31.done) break;
2693
+ _ref28 = _i31.value;
2694
+ }
2695
+
2696
+ var _file5 = _ref28;
2697
+
2698
+ this.emit("uploadprogress", _file5, progress, _file5.upload.bytesSent);
2699
+ }
2700
+ }
2701
+ }
2702
+ }, {
2703
+ key: "_finishedUploading",
2704
+ value: function _finishedUploading(files, xhr, e) {
2705
+ var response = void 0;
2706
+
2707
+ if (files[0].status === Dropzone.CANCELED) {
2708
+ return;
2709
+ }
2710
+
2711
+ if (xhr.readyState !== 4) {
2712
+ return;
2713
+ }
2714
+
2715
+ if (xhr.responseType !== 'arraybuffer' && xhr.responseType !== 'blob') {
2716
+ response = xhr.responseText;
2717
+
2718
+ if (xhr.getResponseHeader("content-type") && ~xhr.getResponseHeader("content-type").indexOf("application/json")) {
2719
+ try {
2720
+ response = JSON.parse(response);
2721
+ } catch (error) {
2722
+ e = error;
2723
+ response = "Invalid JSON response from server.";
2724
+ }
2725
+ }
2726
+ }
2727
+
2728
+ this._updateFilesUploadProgress(files);
2729
+
2730
+ if (!(200 <= xhr.status && xhr.status < 300)) {
2731
+ this._handleUploadError(files, xhr, response);
2732
+ } else {
2733
+ if (files[0].upload.chunked) {
2734
+ files[0].upload.finishedChunkUpload(this._getChunk(files[0], xhr));
2735
+ } else {
2736
+ this._finished(files, response, e);
2737
+ }
2738
+ }
2739
+ }
2740
+ }, {
2741
+ key: "_handleUploadError",
2742
+ value: function _handleUploadError(files, xhr, response) {
2743
+ if (files[0].status === Dropzone.CANCELED) {
2744
+ return;
2745
+ }
2746
+
2747
+ if (files[0].upload.chunked && this.options.retryChunks) {
2748
+ var chunk = this._getChunk(files[0], xhr);
2749
+ if (chunk.retries++ < this.options.retryChunksLimit) {
2750
+ this._uploadData(files, [chunk.dataBlock]);
2751
+ return;
2752
+ } else {
2753
+ console.warn('Retried this chunk too often. Giving up.');
2754
+ }
2755
+ }
2756
+
2757
+ for (var _iterator30 = files, _isArray30 = true, _i32 = 0, _iterator30 = _isArray30 ? _iterator30 : _iterator30[Symbol.iterator]();;) {
2758
+ var _ref29;
2759
+
2760
+ if (_isArray30) {
2761
+ if (_i32 >= _iterator30.length) break;
2762
+ _ref29 = _iterator30[_i32++];
2763
+ } else {
2764
+ _i32 = _iterator30.next();
2765
+ if (_i32.done) break;
2766
+ _ref29 = _i32.value;
2767
+ }
2768
+
2769
+ var file = _ref29;
2770
+
2771
+ this._errorProcessing(files, response || this.options.dictResponseError.replace("{{statusCode}}", xhr.status), xhr);
2772
+ }
2773
+ }
2774
+ }, {
2775
+ key: "submitRequest",
2776
+ value: function submitRequest(xhr, formData, files) {
2777
+ xhr.send(formData);
2778
+ }
2779
+
2780
+ // Called internally when processing is finished.
2781
+ // Individual callbacks have to be called in the appropriate sections.
2782
+
2783
+ }, {
2784
+ key: "_finished",
2785
+ value: function _finished(files, responseText, e) {
2786
+ for (var _iterator31 = files, _isArray31 = true, _i33 = 0, _iterator31 = _isArray31 ? _iterator31 : _iterator31[Symbol.iterator]();;) {
2787
+ var _ref30;
2788
+
2789
+ if (_isArray31) {
2790
+ if (_i33 >= _iterator31.length) break;
2791
+ _ref30 = _iterator31[_i33++];
2792
+ } else {
2793
+ _i33 = _iterator31.next();
2794
+ if (_i33.done) break;
2795
+ _ref30 = _i33.value;
2796
+ }
2797
+
2798
+ var file = _ref30;
2799
+
2800
+ file.status = Dropzone.SUCCESS;
2801
+ this.emit("success", file, responseText, e);
2802
+ this.emit("complete", file);
2803
+ }
2804
+ if (this.options.uploadMultiple) {
2805
+ this.emit("successmultiple", files, responseText, e);
2806
+ this.emit("completemultiple", files);
2807
+ }
2808
+
2809
+ if (this.options.autoProcessQueue) {
2810
+ return this.processQueue();
2811
+ }
2812
+ }
2813
+
2814
+ // Called internally when processing is finished.
2815
+ // Individual callbacks have to be called in the appropriate sections.
2816
+
2817
+ }, {
2818
+ key: "_errorProcessing",
2819
+ value: function _errorProcessing(files, message, xhr) {
2820
+ for (var _iterator32 = files, _isArray32 = true, _i34 = 0, _iterator32 = _isArray32 ? _iterator32 : _iterator32[Symbol.iterator]();;) {
2821
+ var _ref31;
2822
+
2823
+ if (_isArray32) {
2824
+ if (_i34 >= _iterator32.length) break;
2825
+ _ref31 = _iterator32[_i34++];
2826
+ } else {
2827
+ _i34 = _iterator32.next();
2828
+ if (_i34.done) break;
2829
+ _ref31 = _i34.value;
2830
+ }
2831
+
2832
+ var file = _ref31;
2833
+
2834
+ file.status = Dropzone.ERROR;
2835
+ this.emit("error", file, message, xhr);
2836
+ this.emit("complete", file);
2837
+ }
2838
+ if (this.options.uploadMultiple) {
2839
+ this.emit("errormultiple", files, message, xhr);
2840
+ this.emit("completemultiple", files);
2841
+ }
2842
+
2843
+ if (this.options.autoProcessQueue) {
2844
+ return this.processQueue();
2845
+ }
2846
+ }
2847
+ }], [{
2848
+ key: "uuidv4",
2849
+ value: function uuidv4() {
2850
+ return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
2851
+ var r = Math.random() * 16 | 0,
2852
+ v = c === 'x' ? r : r & 0x3 | 0x8;
2853
+ return v.toString(16);
2854
+ });
2855
+ }
2856
+ }]);
2857
+
2858
+ return Dropzone;
2859
+ }(Emitter);
2860
+
2861
+ Dropzone.initClass();
2862
+
2863
+ Dropzone.version = "5.4.0";
2864
+
2865
+ // This is a map of options for your different dropzones. Add configurations
2866
+ // to this object for your different dropzone elemens.
2867
+ //
2868
+ // Example:
2869
+ //
2870
+ // Dropzone.options.myDropzoneElementId = { maxFilesize: 1 };
2871
+ //
2872
+ // To disable autoDiscover for a specific element, you can set `false` as an option:
2873
+ //
2874
+ // Dropzone.options.myDisabledElementId = false;
2875
+ //
2876
+ // And in html:
2877
+ //
2878
+ // <form action="/upload" id="my-dropzone-element-id" class="dropzone"></form>
2879
+ Dropzone.options = {};
2880
+
2881
+ // Returns the options for an element or undefined if none available.
2882
+ Dropzone.optionsForElement = function (element) {
2883
+ // Get the `Dropzone.options.elementId` for this element if it exists
2884
+ if (element.getAttribute("id")) {
2885
+ return Dropzone.options[camelize(element.getAttribute("id"))];
2886
+ } else {
2887
+ return undefined;
2888
+ }
2889
+ };
2890
+
2891
+ // Holds a list of all dropzone instances
2892
+ Dropzone.instances = [];
2893
+
2894
+ // Returns the dropzone for given element if any
2895
+ Dropzone.forElement = function (element) {
2896
+ if (typeof element === "string") {
2897
+ element = document.querySelector(element);
2898
+ }
2899
+ if ((element != null ? element.dropzone : undefined) == null) {
2900
+ throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");
2901
+ }
2902
+ return element.dropzone;
2903
+ };
2904
+
2905
+ // Set to false if you don't want Dropzone to automatically find and attach to .dropzone elements.
2906
+ Dropzone.autoDiscover = true;
2907
+
2908
+ // Looks for all .dropzone elements and creates a dropzone for them
2909
+ Dropzone.discover = function () {
2910
+ var dropzones = void 0;
2911
+ if (document.querySelectorAll) {
2912
+ dropzones = document.querySelectorAll(".dropzone");
2913
+ } else {
2914
+ dropzones = [];
2915
+ // IE :(
2916
+ var checkElements = function checkElements(elements) {
2917
+ return function () {
2918
+ var result = [];
2919
+ for (var _iterator33 = elements, _isArray33 = true, _i35 = 0, _iterator33 = _isArray33 ? _iterator33 : _iterator33[Symbol.iterator]();;) {
2920
+ var _ref32;
2921
+
2922
+ if (_isArray33) {
2923
+ if (_i35 >= _iterator33.length) break;
2924
+ _ref32 = _iterator33[_i35++];
2925
+ } else {
2926
+ _i35 = _iterator33.next();
2927
+ if (_i35.done) break;
2928
+ _ref32 = _i35.value;
2929
+ }
2930
+
2931
+ var el = _ref32;
2932
+
2933
+ if (/(^| )dropzone($| )/.test(el.className)) {
2934
+ result.push(dropzones.push(el));
2935
+ } else {
2936
+ result.push(undefined);
2937
+ }
2938
+ }
2939
+ return result;
2940
+ }();
2941
+ };
2942
+ checkElements(document.getElementsByTagName("div"));
2943
+ checkElements(document.getElementsByTagName("form"));
2944
+ }
2945
+
2946
+ return function () {
2947
+ var result = [];
2948
+ for (var _iterator34 = dropzones, _isArray34 = true, _i36 = 0, _iterator34 = _isArray34 ? _iterator34 : _iterator34[Symbol.iterator]();;) {
2949
+ var _ref33;
2950
+
2951
+ if (_isArray34) {
2952
+ if (_i36 >= _iterator34.length) break;
2953
+ _ref33 = _iterator34[_i36++];
2954
+ } else {
2955
+ _i36 = _iterator34.next();
2956
+ if (_i36.done) break;
2957
+ _ref33 = _i36.value;
2958
+ }
2959
+
2960
+ var dropzone = _ref33;
2961
+
2962
+ // Create a dropzone unless auto discover has been disabled for specific element
2963
+ if (Dropzone.optionsForElement(dropzone) !== false) {
2964
+ result.push(new Dropzone(dropzone));
2965
+ } else {
2966
+ result.push(undefined);
2967
+ }
2968
+ }
2969
+ return result;
2970
+ }();
2971
+ };
2972
+
2973
+ // Since the whole Drag'n'Drop API is pretty new, some browsers implement it,
2974
+ // but not correctly.
2975
+ // So I created a blacklist of userAgents. Yes, yes. Browser sniffing, I know.
2976
+ // But what to do when browsers *theoretically* support an API, but crash
2977
+ // when using it.
2978
+ //
2979
+ // This is a list of regular expressions tested against navigator.userAgent
2980
+ //
2981
+ // ** It should only be used on browser that *do* support the API, but
2982
+ // incorrectly **
2983
+ //
2984
+ Dropzone.blacklistedBrowsers = [
2985
+ // The mac os and windows phone version of opera 12 seems to have a problem with the File drag'n'drop API.
2986
+ /opera.*(Macintosh|Windows Phone).*version\/12/i];
2987
+
2988
+ // Checks if the browser is supported
2989
+ Dropzone.isBrowserSupported = function () {
2990
+ var capableBrowser = true;
2991
+
2992
+ if (window.File && window.FileReader && window.FileList && window.Blob && window.FormData && document.querySelector) {
2993
+ if (!("classList" in document.createElement("a"))) {
2994
+ capableBrowser = false;
2995
+ } else {
2996
+ // The browser supports the API, but may be blacklisted.
2997
+ for (var _iterator35 = Dropzone.blacklistedBrowsers, _isArray35 = true, _i37 = 0, _iterator35 = _isArray35 ? _iterator35 : _iterator35[Symbol.iterator]();;) {
2998
+ var _ref34;
2999
+
3000
+ if (_isArray35) {
3001
+ if (_i37 >= _iterator35.length) break;
3002
+ _ref34 = _iterator35[_i37++];
3003
+ } else {
3004
+ _i37 = _iterator35.next();
3005
+ if (_i37.done) break;
3006
+ _ref34 = _i37.value;
3007
+ }
3008
+
3009
+ var regex = _ref34;
3010
+
3011
+ if (regex.test(navigator.userAgent)) {
3012
+ capableBrowser = false;
3013
+ continue;
3014
+ }
3015
+ }
3016
+ }
3017
+ } else {
3018
+ capableBrowser = false;
3019
+ }
3020
+
3021
+ return capableBrowser;
3022
+ };
3023
+
3024
+ Dropzone.dataURItoBlob = function (dataURI) {
3025
+ // convert base64 to raw binary data held in a string
3026
+ // doesn't handle URLEncoded DataURIs - see SO answer #6850276 for code that does this
3027
+ var byteString = atob(dataURI.split(',')[1]);
3028
+
3029
+ // separate out the mime component
3030
+ var mimeString = dataURI.split(',')[0].split(':')[1].split(';')[0];
3031
+
3032
+ // write the bytes of the string to an ArrayBuffer
3033
+ var ab = new ArrayBuffer(byteString.length);
3034
+ var ia = new Uint8Array(ab);
3035
+ for (var i = 0, end = byteString.length, asc = 0 <= end; asc ? i <= end : i >= end; asc ? i++ : i--) {
3036
+ ia[i] = byteString.charCodeAt(i);
3037
+ }
3038
+
3039
+ // write the ArrayBuffer to a blob
3040
+ return new Blob([ab], { type: mimeString });
3041
+ };
3042
+
3043
+ // Returns an array without the rejected item
3044
+ var without = function without(list, rejectedItem) {
3045
+ return list.filter(function (item) {
3046
+ return item !== rejectedItem;
3047
+ }).map(function (item) {
3048
+ return item;
3049
+ });
3050
+ };
3051
+
3052
+ // abc-def_ghi -> abcDefGhi
3053
+ var camelize = function camelize(str) {
3054
+ return str.replace(/[\-_](\w)/g, function (match) {
3055
+ return match.charAt(1).toUpperCase();
3056
+ });
3057
+ };
3058
+
3059
+ // Creates an element from string
3060
+ Dropzone.createElement = function (string) {
3061
+ var div = document.createElement("div");
3062
+ div.innerHTML = string;
3063
+ return div.childNodes[0];
3064
+ };
3065
+
3066
+ // Tests if given element is inside (or simply is) the container
3067
+ Dropzone.elementInside = function (element, container) {
3068
+ if (element === container) {
3069
+ return true;
3070
+ } // Coffeescript doesn't support do/while loops
3071
+ while (element = element.parentNode) {
3072
+ if (element === container) {
3073
+ return true;
3074
+ }
3075
+ }
3076
+ return false;
3077
+ };
3078
+
3079
+ Dropzone.getElement = function (el, name) {
3080
+ var element = void 0;
3081
+ if (typeof el === "string") {
3082
+ element = document.querySelector(el);
3083
+ } else if (el.nodeType != null) {
3084
+ element = el;
3085
+ }
3086
+ if (element == null) {
3087
+ throw new Error("Invalid `" + name + "` option provided. Please provide a CSS selector or a plain HTML element.");
3088
+ }
3089
+ return element;
3090
+ };
3091
+
3092
+ Dropzone.getElements = function (els, name) {
3093
+ var el = void 0,
3094
+ elements = void 0;
3095
+ if (els instanceof Array) {
3096
+ elements = [];
3097
+ try {
3098
+ for (var _iterator36 = els, _isArray36 = true, _i38 = 0, _iterator36 = _isArray36 ? _iterator36 : _iterator36[Symbol.iterator]();;) {
3099
+ if (_isArray36) {
3100
+ if (_i38 >= _iterator36.length) break;
3101
+ el = _iterator36[_i38++];
3102
+ } else {
3103
+ _i38 = _iterator36.next();
3104
+ if (_i38.done) break;
3105
+ el = _i38.value;
3106
+ }
3107
+
3108
+ elements.push(this.getElement(el, name));
3109
+ }
3110
+ } catch (e) {
3111
+ elements = null;
3112
+ }
3113
+ } else if (typeof els === "string") {
3114
+ elements = [];
3115
+ for (var _iterator37 = document.querySelectorAll(els), _isArray37 = true, _i39 = 0, _iterator37 = _isArray37 ? _iterator37 : _iterator37[Symbol.iterator]();;) {
3116
+ if (_isArray37) {
3117
+ if (_i39 >= _iterator37.length) break;
3118
+ el = _iterator37[_i39++];
3119
+ } else {
3120
+ _i39 = _iterator37.next();
3121
+ if (_i39.done) break;
3122
+ el = _i39.value;
3123
+ }
3124
+
3125
+ elements.push(el);
3126
+ }
3127
+ } else if (els.nodeType != null) {
3128
+ elements = [els];
3129
+ }
3130
+
3131
+ if (elements == null || !elements.length) {
3132
+ throw new Error("Invalid `" + name + "` option provided. Please provide a CSS selector, a plain HTML element or a list of those.");
3133
+ }
3134
+
3135
+ return elements;
3136
+ };
3137
+
3138
+ // Asks the user the question and calls accepted or rejected accordingly
3139
+ //
3140
+ // The default implementation just uses `window.confirm` and then calls the
3141
+ // appropriate callback.
3142
+ Dropzone.confirm = function (question, accepted, rejected) {
3143
+ if (window.confirm(question)) {
3144
+ return accepted();
3145
+ } else if (rejected != null) {
3146
+ return rejected();
3147
+ }
3148
+ };
3149
+
3150
+ // Validates the mime type like this:
3151
+ //
3152
+ // https://developer.mozilla.org/en-US/docs/HTML/Element/input#attr-accept
3153
+ Dropzone.isValidFile = function (file, acceptedFiles) {
3154
+ if (!acceptedFiles) {
3155
+ return true;
3156
+ } // If there are no accepted mime types, it's OK
3157
+ acceptedFiles = acceptedFiles.split(",");
3158
+
3159
+ var mimeType = file.type;
3160
+ var baseMimeType = mimeType.replace(/\/.*$/, "");
3161
+
3162
+ for (var _iterator38 = acceptedFiles, _isArray38 = true, _i40 = 0, _iterator38 = _isArray38 ? _iterator38 : _iterator38[Symbol.iterator]();;) {
3163
+ var _ref35;
3164
+
3165
+ if (_isArray38) {
3166
+ if (_i40 >= _iterator38.length) break;
3167
+ _ref35 = _iterator38[_i40++];
3168
+ } else {
3169
+ _i40 = _iterator38.next();
3170
+ if (_i40.done) break;
3171
+ _ref35 = _i40.value;
3172
+ }
3173
+
3174
+ var validType = _ref35;
3175
+
3176
+ validType = validType.trim();
3177
+ if (validType.charAt(0) === ".") {
3178
+ if (file.name.toLowerCase().indexOf(validType.toLowerCase(), file.name.length - validType.length) !== -1) {
3179
+ return true;
3180
+ }
3181
+ } else if (/\/\*$/.test(validType)) {
3182
+ // This is something like a image/* mime type
3183
+ if (baseMimeType === validType.replace(/\/.*$/, "")) {
3184
+ return true;
3185
+ }
3186
+ } else {
3187
+ if (mimeType === validType) {
3188
+ return true;
3189
+ }
3190
+ }
3191
+ }
3192
+
3193
+ return false;
3194
+ };
3195
+
3196
+ // Augment jQuery
3197
+ if (typeof jQuery !== 'undefined' && jQuery !== null) {
3198
+ jQuery.fn.dropzone = function (options) {
3199
+ return this.each(function () {
3200
+ return new Dropzone(this, options);
3201
+ });
3202
+ };
3203
+ }
3204
+
3205
+ if (typeof module !== 'undefined' && module !== null) {
3206
+ module.exports = Dropzone;
3207
+ } else {
3208
+ window.Dropzone = Dropzone;
3209
+ }
3210
+
3211
+ // Dropzone file status codes
3212
+ Dropzone.ADDED = "added";
3213
+
3214
+ Dropzone.QUEUED = "queued";
3215
+ // For backwards compatibility. Now, if a file is accepted, it's either queued
3216
+ // or uploading.
3217
+ Dropzone.ACCEPTED = Dropzone.QUEUED;
3218
+
3219
+ Dropzone.UPLOADING = "uploading";
3220
+ Dropzone.PROCESSING = Dropzone.UPLOADING; // alias
3221
+
3222
+ Dropzone.CANCELED = "canceled";
3223
+ Dropzone.ERROR = "error";
3224
+ Dropzone.SUCCESS = "success";
3225
+
3226
+ /*
3227
+
3228
+ Bugfix for iOS 6 and 7
3229
+ Source: http://stackoverflow.com/questions/11929099/html5-canvas-drawimage-ratio-bug-ios
3230
+ based on the work of https://github.com/stomita/ios-imagefile-megapixel
3231
+
3232
+ */
3233
+
3234
+ // Detecting vertical squash in loaded image.
3235
+ // Fixes a bug which squash image vertically while drawing into canvas for some images.
3236
+ // This is a bug in iOS6 devices. This function from https://github.com/stomita/ios-imagefile-megapixel
3237
+ var detectVerticalSquash = function detectVerticalSquash(img) {
3238
+ var iw = img.naturalWidth;
3239
+ var ih = img.naturalHeight;
3240
+ var canvas = document.createElement("canvas");
3241
+ canvas.width = 1;
3242
+ canvas.height = ih;
3243
+ var ctx = canvas.getContext("2d");
3244
+ ctx.drawImage(img, 0, 0);
3245
+
3246
+ var _ctx$getImageData = ctx.getImageData(1, 0, 1, ih),
3247
+ data = _ctx$getImageData.data;
3248
+
3249
+ // search image edge pixel position in case it is squashed vertically.
3250
+
3251
+
3252
+ var sy = 0;
3253
+ var ey = ih;
3254
+ var py = ih;
3255
+ while (py > sy) {
3256
+ var alpha = data[(py - 1) * 4 + 3];
3257
+
3258
+ if (alpha === 0) {
3259
+ ey = py;
3260
+ } else {
3261
+ sy = py;
3262
+ }
3263
+
3264
+ py = ey + sy >> 1;
3265
+ }
3266
+ var ratio = py / ih;
3267
+
3268
+ if (ratio === 0) {
3269
+ return 1;
3270
+ } else {
3271
+ return ratio;
3272
+ }
3273
+ };
3274
+
3275
+ // A replacement for context.drawImage
3276
+ // (args are for source and destination).
3277
+ var drawImageIOSFix = function drawImageIOSFix(ctx, img, sx, sy, sw, sh, dx, dy, dw, dh) {
3278
+ var vertSquashRatio = detectVerticalSquash(img);
3279
+ return ctx.drawImage(img, sx, sy, sw, sh, dx, dy, dw, dh / vertSquashRatio);
3280
+ };
3281
+
3282
+ // Based on MinifyJpeg
3283
+ // Source: http://www.perry.cz/files/ExifRestorer.js
3284
+ // http://elicon.blog57.fc2.com/blog-entry-206.html
3285
+
3286
+ var ExifRestore = function () {
3287
+ function ExifRestore() {
3288
+ _classCallCheck(this, ExifRestore);
3289
+ }
3290
+
3291
+ _createClass(ExifRestore, null, [{
3292
+ key: "initClass",
3293
+ value: function initClass() {
3294
+ this.KEY_STR = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
3295
+ }
3296
+ }, {
3297
+ key: "encode64",
3298
+ value: function encode64(input) {
3299
+ var output = '';
3300
+ var chr1 = undefined;
3301
+ var chr2 = undefined;
3302
+ var chr3 = '';
3303
+ var enc1 = undefined;
3304
+ var enc2 = undefined;
3305
+ var enc3 = undefined;
3306
+ var enc4 = '';
3307
+ var i = 0;
3308
+ while (true) {
3309
+ chr1 = input[i++];
3310
+ chr2 = input[i++];
3311
+ chr3 = input[i++];
3312
+ enc1 = chr1 >> 2;
3313
+ enc2 = (chr1 & 3) << 4 | chr2 >> 4;
3314
+ enc3 = (chr2 & 15) << 2 | chr3 >> 6;
3315
+ enc4 = chr3 & 63;
3316
+ if (isNaN(chr2)) {
3317
+ enc3 = enc4 = 64;
3318
+ } else if (isNaN(chr3)) {
3319
+ enc4 = 64;
3320
+ }
3321
+ output = output + this.KEY_STR.charAt(enc1) + this.KEY_STR.charAt(enc2) + this.KEY_STR.charAt(enc3) + this.KEY_STR.charAt(enc4);
3322
+ chr1 = chr2 = chr3 = '';
3323
+ enc1 = enc2 = enc3 = enc4 = '';
3324
+ if (!(i < input.length)) {
3325
+ break;
3326
+ }
3327
+ }
3328
+ return output;
3329
+ }
3330
+ }, {
3331
+ key: "restore",
3332
+ value: function restore(origFileBase64, resizedFileBase64) {
3333
+ if (!origFileBase64.match('data:image/jpeg;base64,')) {
3334
+ return resizedFileBase64;
3335
+ }
3336
+ var rawImage = this.decode64(origFileBase64.replace('data:image/jpeg;base64,', ''));
3337
+ var segments = this.slice2Segments(rawImage);
3338
+ var image = this.exifManipulation(resizedFileBase64, segments);
3339
+ return "data:image/jpeg;base64," + this.encode64(image);
3340
+ }
3341
+ }, {
3342
+ key: "exifManipulation",
3343
+ value: function exifManipulation(resizedFileBase64, segments) {
3344
+ var exifArray = this.getExifArray(segments);
3345
+ var newImageArray = this.insertExif(resizedFileBase64, exifArray);
3346
+ var aBuffer = new Uint8Array(newImageArray);
3347
+ return aBuffer;
3348
+ }
3349
+ }, {
3350
+ key: "getExifArray",
3351
+ value: function getExifArray(segments) {
3352
+ var seg = undefined;
3353
+ var x = 0;
3354
+ while (x < segments.length) {
3355
+ seg = segments[x];
3356
+ if (seg[0] === 255 & seg[1] === 225) {
3357
+ return seg;
3358
+ }
3359
+ x++;
3360
+ }
3361
+ return [];
3362
+ }
3363
+ }, {
3364
+ key: "insertExif",
3365
+ value: function insertExif(resizedFileBase64, exifArray) {
3366
+ var imageData = resizedFileBase64.replace('data:image/jpeg;base64,', '');
3367
+ var buf = this.decode64(imageData);
3368
+ var separatePoint = buf.indexOf(255, 3);
3369
+ var mae = buf.slice(0, separatePoint);
3370
+ var ato = buf.slice(separatePoint);
3371
+ var array = mae;
3372
+ array = array.concat(exifArray);
3373
+ array = array.concat(ato);
3374
+ return array;
3375
+ }
3376
+ }, {
3377
+ key: "slice2Segments",
3378
+ value: function slice2Segments(rawImageArray) {
3379
+ var head = 0;
3380
+ var segments = [];
3381
+ while (true) {
3382
+ var length;
3383
+ if (rawImageArray[head] === 255 & rawImageArray[head + 1] === 218) {
3384
+ break;
3385
+ }
3386
+ if (rawImageArray[head] === 255 & rawImageArray[head + 1] === 216) {
3387
+ head += 2;
3388
+ } else {
3389
+ length = rawImageArray[head + 2] * 256 + rawImageArray[head + 3];
3390
+ var endPoint = head + length + 2;
3391
+ var seg = rawImageArray.slice(head, endPoint);
3392
+ segments.push(seg);
3393
+ head = endPoint;
3394
+ }
3395
+ if (head > rawImageArray.length) {
3396
+ break;
3397
+ }
3398
+ }
3399
+ return segments;
3400
+ }
3401
+ }, {
3402
+ key: "decode64",
3403
+ value: function decode64(input) {
3404
+ var output = '';
3405
+ var chr1 = undefined;
3406
+ var chr2 = undefined;
3407
+ var chr3 = '';
3408
+ var enc1 = undefined;
3409
+ var enc2 = undefined;
3410
+ var enc3 = undefined;
3411
+ var enc4 = '';
3412
+ var i = 0;
3413
+ var buf = [];
3414
+ // remove all characters that are not A-Z, a-z, 0-9, +, /, or =
3415
+ var base64test = /[^A-Za-z0-9\+\/\=]/g;
3416
+ if (base64test.exec(input)) {
3417
+ console.warn('There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, \'+\', \'/\',and \'=\'\nExpect errors in decoding.');
3418
+ }
3419
+ input = input.replace(/[^A-Za-z0-9\+\/\=]/g, '');
3420
+ while (true) {
3421
+ enc1 = this.KEY_STR.indexOf(input.charAt(i++));
3422
+ enc2 = this.KEY_STR.indexOf(input.charAt(i++));
3423
+ enc3 = this.KEY_STR.indexOf(input.charAt(i++));
3424
+ enc4 = this.KEY_STR.indexOf(input.charAt(i++));
3425
+ chr1 = enc1 << 2 | enc2 >> 4;
3426
+ chr2 = (enc2 & 15) << 4 | enc3 >> 2;
3427
+ chr3 = (enc3 & 3) << 6 | enc4;
3428
+ buf.push(chr1);
3429
+ if (enc3 !== 64) {
3430
+ buf.push(chr2);
3431
+ }
3432
+ if (enc4 !== 64) {
3433
+ buf.push(chr3);
3434
+ }
3435
+ chr1 = chr2 = chr3 = '';
3436
+ enc1 = enc2 = enc3 = enc4 = '';
3437
+ if (!(i < input.length)) {
3438
+ break;
3439
+ }
3440
+ }
3441
+ return buf;
3442
+ }
3443
+ }]);
3444
+
3445
+ return ExifRestore;
3446
+ }();
3447
+
3448
+ ExifRestore.initClass();
3449
+
3450
+ /*
3451
+ * contentloaded.js
3452
+ *
3453
+ * Author: Diego Perini (diego.perini at gmail.com)
3454
+ * Summary: cross-browser wrapper for DOMContentLoaded
3455
+ * Updated: 20101020
3456
+ * License: MIT
3457
+ * Version: 1.2
3458
+ *
3459
+ * URL:
3460
+ * http://javascript.nwbox.com/ContentLoaded/
3461
+ * http://javascript.nwbox.com/ContentLoaded/MIT-LICENSE
3462
+ */
3463
+
3464
+ // @win window reference
3465
+ // @fn function reference
3466
+ var contentLoaded = function contentLoaded(win, fn) {
3467
+ var done = false;
3468
+ var top = true;
3469
+ var doc = win.document;
3470
+ var root = doc.documentElement;
3471
+ var add = doc.addEventListener ? "addEventListener" : "attachEvent";
3472
+ var rem = doc.addEventListener ? "removeEventListener" : "detachEvent";
3473
+ var pre = doc.addEventListener ? "" : "on";
3474
+ var init = function init(e) {
3475
+ if (e.type === "readystatechange" && doc.readyState !== "complete") {
3476
+ return;
3477
+ }
3478
+ (e.type === "load" ? win : doc)[rem](pre + e.type, init, false);
3479
+ if (!done && (done = true)) {
3480
+ return fn.call(win, e.type || e);
3481
+ }
3482
+ };
3483
+
3484
+ var poll = function poll() {
3485
+ try {
3486
+ root.doScroll("left");
3487
+ } catch (e) {
3488
+ setTimeout(poll, 50);
3489
+ return;
3490
+ }
3491
+ return init("poll");
3492
+ };
3493
+
3494
+ if (doc.readyState !== "complete") {
3495
+ if (doc.createEventObject && root.doScroll) {
3496
+ try {
3497
+ top = !win.frameElement;
3498
+ } catch (error) {}
3499
+ if (top) {
3500
+ poll();
3501
+ }
3502
+ }
3503
+ doc[add](pre + "DOMContentLoaded", init, false);
3504
+ doc[add](pre + "readystatechange", init, false);
3505
+ return win[add](pre + "load", init, false);
3506
+ }
3507
+ };
3508
+
3509
+ // As a single function to be able to write tests.
3510
+ Dropzone._autoDiscoverFunction = function () {
3511
+ if (Dropzone.autoDiscover) {
3512
+ return Dropzone.discover();
3513
+ }
3514
+ };
3515
+ contentLoaded(window, Dropzone._autoDiscoverFunction);
3516
+
3517
+ function __guard__(value, transform) {
3518
+ return typeof value !== 'undefined' && value !== null ? transform(value) : undefined;
3519
+ }
3520
+ function __guardMethod__(obj, methodName, transform) {
3521
+ if (typeof obj !== 'undefined' && obj !== null && typeof obj[methodName] === 'function') {
3522
+ return transform(obj, methodName);
3523
+ } else {
3524
+ return undefined;
3525
+ }
3526
+ }