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