ext_yarn 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (618) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +125 -0
  3. data/.ruby-version +1 -0
  4. data/Gemfile +21 -0
  5. data/Gemfile.lock +78 -0
  6. data/MIT-LICENSE +20 -0
  7. data/README.md +3 -0
  8. data/bin/yarn +12 -0
  9. data/ext_yarn.gemspec +23 -0
  10. data/lib/ext_yarn/engine.rb +21 -0
  11. data/lib/ext_yarn/version.rb +3 -0
  12. data/lib/ext_yarn.rb +5 -0
  13. data/node_modules/.yarn-integrity +64 -0
  14. data/node_modules/bootstrap-sass/LICENSE +22 -0
  15. data/node_modules/bootstrap-sass/assets/javascripts/bootstrap/affix.js +162 -0
  16. data/node_modules/bootstrap-sass/assets/javascripts/bootstrap/alert.js +94 -0
  17. data/node_modules/bootstrap-sass/assets/javascripts/bootstrap/button.js +125 -0
  18. data/node_modules/bootstrap-sass/assets/javascripts/bootstrap/carousel.js +237 -0
  19. data/node_modules/bootstrap-sass/assets/javascripts/bootstrap/collapse.js +212 -0
  20. data/node_modules/bootstrap-sass/assets/javascripts/bootstrap/dropdown.js +165 -0
  21. data/node_modules/bootstrap-sass/assets/javascripts/bootstrap/modal.js +339 -0
  22. data/node_modules/bootstrap-sass/assets/javascripts/bootstrap/popover.js +108 -0
  23. data/node_modules/bootstrap-sass/assets/javascripts/bootstrap/scrollspy.js +172 -0
  24. data/node_modules/bootstrap-sass/assets/javascripts/bootstrap/tab.js +155 -0
  25. data/node_modules/bootstrap-sass/assets/javascripts/bootstrap/tooltip.js +520 -0
  26. data/node_modules/bootstrap-sass/assets/javascripts/bootstrap/transition.js +59 -0
  27. data/node_modules/bootstrap-sass/assets/javascripts/bootstrap-sprockets.js +12 -0
  28. data/node_modules/bootstrap-sass/assets/javascripts/bootstrap.js +2377 -0
  29. data/node_modules/bootstrap-sass/assets/stylesheets/_bootstrap-compass.scss +9 -0
  30. data/node_modules/bootstrap-sass/assets/stylesheets/_bootstrap-mincer.scss +19 -0
  31. data/node_modules/bootstrap-sass/assets/stylesheets/_bootstrap-sprockets.scss +9 -0
  32. data/node_modules/bootstrap-sass/assets/stylesheets/_bootstrap.scss +56 -0
  33. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_alerts.scss +73 -0
  34. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_badges.scss +68 -0
  35. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_breadcrumbs.scss +28 -0
  36. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_button-groups.scss +244 -0
  37. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_buttons.scss +168 -0
  38. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_carousel.scss +270 -0
  39. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_close.scss +36 -0
  40. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_code.scss +69 -0
  41. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_component-animations.scss +37 -0
  42. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_dropdowns.scss +216 -0
  43. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_forms.scss +617 -0
  44. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_glyphicons.scss +307 -0
  45. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_grid.scss +84 -0
  46. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_input-groups.scss +171 -0
  47. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_jumbotron.scss +54 -0
  48. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_labels.scss +66 -0
  49. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_list-group.scss +130 -0
  50. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_media.scss +66 -0
  51. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_mixins.scss +40 -0
  52. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_modals.scss +150 -0
  53. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_navbar.scss +662 -0
  54. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_navs.scss +242 -0
  55. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_normalize.scss +424 -0
  56. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_pager.scss +54 -0
  57. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_pagination.scss +89 -0
  58. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_panels.scss +271 -0
  59. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_popovers.scss +131 -0
  60. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_print.scss +101 -0
  61. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_progress-bars.scss +87 -0
  62. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_responsive-embed.scss +35 -0
  63. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_responsive-utilities.scss +179 -0
  64. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_scaffolding.scss +161 -0
  65. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_tables.scss +234 -0
  66. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_theme.scss +291 -0
  67. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_thumbnails.scss +38 -0
  68. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_tooltip.scss +101 -0
  69. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_type.scss +298 -0
  70. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_utilities.scss +55 -0
  71. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_variables.scss +874 -0
  72. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_wells.scss +29 -0
  73. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_alerts.scss +14 -0
  74. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_background-variant.scss +12 -0
  75. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_border-radius.scss +18 -0
  76. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_buttons.scss +65 -0
  77. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_center-block.scss +7 -0
  78. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_clearfix.scss +22 -0
  79. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_forms.scss +88 -0
  80. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_gradients.scss +58 -0
  81. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +81 -0
  82. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_grid.scss +122 -0
  83. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_hide-text.scss +21 -0
  84. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_image.scss +33 -0
  85. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_labels.scss +12 -0
  86. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_list-group.scss +32 -0
  87. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +10 -0
  88. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss +9 -0
  89. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_opacity.scss +8 -0
  90. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_pagination.scss +24 -0
  91. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_panels.scss +24 -0
  92. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_progress-bar.scss +10 -0
  93. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_reset-filter.scss +8 -0
  94. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_reset-text.scss +18 -0
  95. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_resize.scss +6 -0
  96. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_responsive-visibility.scss +21 -0
  97. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_size.scss +10 -0
  98. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_tab-focus.scss +9 -0
  99. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_table-row.scss +28 -0
  100. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +12 -0
  101. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_text-overflow.scss +8 -0
  102. data/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +222 -0
  103. data/node_modules/bootstrap-sass/package.json +44 -0
  104. data/node_modules/bootswatch/cerulean/_bootswatch.scss +131 -0
  105. data/node_modules/bootswatch/cerulean/_variables.scss +870 -0
  106. data/node_modules/bootswatch/cosmo/_bootswatch.scss +262 -0
  107. data/node_modules/bootswatch/cosmo/_variables.scss +870 -0
  108. data/node_modules/bootswatch/cyborg/_bootswatch.scss +243 -0
  109. data/node_modules/bootswatch/cyborg/_variables.scss +870 -0
  110. data/node_modules/bootswatch/darkly/_bootswatch.scss +351 -0
  111. data/node_modules/bootswatch/darkly/_variables.scss +870 -0
  112. data/node_modules/bootswatch/flatly/_bootswatch.scss +330 -0
  113. data/node_modules/bootswatch/flatly/_variables.scss +870 -0
  114. data/node_modules/bootswatch/journal/_bootswatch.scss +145 -0
  115. data/node_modules/bootswatch/journal/_variables.scss +870 -0
  116. data/node_modules/bootswatch/lumen/_bootswatch.scss +523 -0
  117. data/node_modules/bootswatch/lumen/_variables.scss +870 -0
  118. data/node_modules/bootswatch/package.json +26 -0
  119. data/node_modules/bootswatch/paper/_bootswatch.scss +620 -0
  120. data/node_modules/bootswatch/paper/_variables.scss +870 -0
  121. data/node_modules/bootswatch/readable/_bootswatch.scss +183 -0
  122. data/node_modules/bootswatch/readable/_variables.scss +870 -0
  123. data/node_modules/bootswatch/sandstone/_bootswatch.scss +196 -0
  124. data/node_modules/bootswatch/sandstone/_variables.scss +870 -0
  125. data/node_modules/bootswatch/simplex/_bootswatch.scss +170 -0
  126. data/node_modules/bootswatch/simplex/_variables.scss +870 -0
  127. data/node_modules/bootswatch/slate/_bootswatch.scss +448 -0
  128. data/node_modules/bootswatch/slate/_variables.scss +870 -0
  129. data/node_modules/bootswatch/spacelab/_bootswatch.scss +142 -0
  130. data/node_modules/bootswatch/spacelab/_variables.scss +870 -0
  131. data/node_modules/bootswatch/superhero/_bootswatch.scss +360 -0
  132. data/node_modules/bootswatch/superhero/_variables.scss +870 -0
  133. data/node_modules/bootswatch/united/_bootswatch.scss +56 -0
  134. data/node_modules/bootswatch/united/_variables.scss +870 -0
  135. data/node_modules/bootswatch/yeti/_bootswatch.scss +445 -0
  136. data/node_modules/bootswatch/yeti/_variables.scss +870 -0
  137. data/node_modules/chart.js/dist/Chart.bundle.js +18919 -0
  138. data/node_modules/chart.js/dist/Chart.js +14384 -0
  139. data/node_modules/chart.js/package.json +57 -0
  140. data/node_modules/chartkick/chartkick.js +1853 -0
  141. data/node_modules/chartkick/package.json +25 -0
  142. data/node_modules/eonasdan-bootstrap-datetimepicker/package.json +51 -0
  143. data/node_modules/eonasdan-bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js +2636 -0
  144. data/node_modules/eonasdan-bootstrap-datetimepicker/src/sass/_bootstrap-datetimepicker.scss +344 -0
  145. data/node_modules/eonasdan-bootstrap-datetimepicker/src/sass/bootstrap-datetimepicker-build.scss +16 -0
  146. data/node_modules/file-saver/FileSaver.js +188 -0
  147. data/node_modules/file-saver/package.json +28 -0
  148. data/node_modules/font-awesome-sass/LICENSE.txt +22 -0
  149. data/node_modules/font-awesome-sass/assets/fonts/font-awesome/fontawesome-webfont.eot +0 -0
  150. data/node_modules/font-awesome-sass/assets/fonts/font-awesome/fontawesome-webfont.svg +2671 -0
  151. data/node_modules/font-awesome-sass/assets/fonts/font-awesome/fontawesome-webfont.ttf +0 -0
  152. data/node_modules/font-awesome-sass/assets/fonts/font-awesome/fontawesome-webfont.woff +0 -0
  153. data/node_modules/font-awesome-sass/assets/fonts/font-awesome/fontawesome-webfont.woff2 +0 -0
  154. data/node_modules/font-awesome-sass/assets/stylesheets/_font-awesome-compass.scss +5 -0
  155. data/node_modules/font-awesome-sass/assets/stylesheets/_font-awesome-sprockets.scss +5 -0
  156. data/node_modules/font-awesome-sass/assets/stylesheets/_font-awesome.scss +18 -0
  157. data/node_modules/font-awesome-sass/assets/stylesheets/font-awesome/_animated.scss +34 -0
  158. data/node_modules/font-awesome-sass/assets/stylesheets/font-awesome/_bordered-pulled.scss +25 -0
  159. data/node_modules/font-awesome-sass/assets/stylesheets/font-awesome/_core.scss +12 -0
  160. data/node_modules/font-awesome-sass/assets/stylesheets/font-awesome/_fixed-width.scss +6 -0
  161. data/node_modules/font-awesome-sass/assets/stylesheets/font-awesome/_icons.scss +789 -0
  162. data/node_modules/font-awesome-sass/assets/stylesheets/font-awesome/_larger.scss +13 -0
  163. data/node_modules/font-awesome-sass/assets/stylesheets/font-awesome/_list.scss +19 -0
  164. data/node_modules/font-awesome-sass/assets/stylesheets/font-awesome/_mixins.scss +60 -0
  165. data/node_modules/font-awesome-sass/assets/stylesheets/font-awesome/_path.scss +14 -0
  166. data/node_modules/font-awesome-sass/assets/stylesheets/font-awesome/_rotated-flipped.scss +20 -0
  167. data/node_modules/font-awesome-sass/assets/stylesheets/font-awesome/_screen-reader.scss +5 -0
  168. data/node_modules/font-awesome-sass/assets/stylesheets/font-awesome/_stacked.scss +20 -0
  169. data/node_modules/font-awesome-sass/assets/stylesheets/font-awesome/_variables.scss +802 -0
  170. data/node_modules/font-awesome-sass/package.json +19 -0
  171. data/node_modules/jquery/dist/jquery.js +10253 -0
  172. data/node_modules/jquery/dist/jquery.slim.js +8160 -0
  173. data/node_modules/jquery/package.json +97 -0
  174. data/node_modules/jquery-pjax/jquery.pjax.js +903 -0
  175. data/node_modules/jquery-pjax/package.json +18 -0
  176. data/node_modules/jquery-ui/package.json +74 -0
  177. data/node_modules/jquery-ui/themes/base/accordion.css +23 -0
  178. data/node_modules/jquery-ui/themes/base/all.css +12 -0
  179. data/node_modules/jquery-ui/themes/base/autocomplete.css +16 -0
  180. data/node_modules/jquery-ui/themes/base/base.css +30 -0
  181. data/node_modules/jquery-ui/themes/base/button.css +82 -0
  182. data/node_modules/jquery-ui/themes/base/checkboxradio.css +34 -0
  183. data/node_modules/jquery-ui/themes/base/controlgroup.css +65 -0
  184. data/node_modules/jquery-ui/themes/base/core.css +97 -0
  185. data/node_modules/jquery-ui/themes/base/datepicker.css +185 -0
  186. data/node_modules/jquery-ui/themes/base/dialog.css +101 -0
  187. data/node_modules/jquery-ui/themes/base/draggable.css +12 -0
  188. data/node_modules/jquery-ui/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  189. data/node_modules/jquery-ui/themes/base/images/ui-icons_444444_256x240.png +0 -0
  190. data/node_modules/jquery-ui/themes/base/images/ui-icons_555555_256x240.png +0 -0
  191. data/node_modules/jquery-ui/themes/base/images/ui-icons_777620_256x240.png +0 -0
  192. data/node_modules/jquery-ui/themes/base/images/ui-icons_777777_256x240.png +0 -0
  193. data/node_modules/jquery-ui/themes/base/images/ui-icons_cc0000_256x240.png +0 -0
  194. data/node_modules/jquery-ui/themes/base/images/ui-icons_ffffff_256x240.png +0 -0
  195. data/node_modules/jquery-ui/themes/base/menu.css +64 -0
  196. data/node_modules/jquery-ui/themes/base/progressbar.css +28 -0
  197. data/node_modules/jquery-ui/themes/base/resizable.css +78 -0
  198. data/node_modules/jquery-ui/themes/base/selectable.css +17 -0
  199. data/node_modules/jquery-ui/themes/base/selectmenu.css +50 -0
  200. data/node_modules/jquery-ui/themes/base/slider.css +75 -0
  201. data/node_modules/jquery-ui/themes/base/sortable.css +12 -0
  202. data/node_modules/jquery-ui/themes/base/spinner.css +52 -0
  203. data/node_modules/jquery-ui/themes/base/tabs.css +51 -0
  204. data/node_modules/jquery-ui/themes/base/theme.css +443 -0
  205. data/node_modules/jquery-ui/themes/base/tooltip.css +19 -0
  206. data/node_modules/jquery-ui/ui/core.js +21 -0
  207. data/node_modules/jquery-ui/ui/data.js +39 -0
  208. data/node_modules/jquery-ui/ui/disable-selection.js +46 -0
  209. data/node_modules/jquery-ui/ui/effect.js +1635 -0
  210. data/node_modules/jquery-ui/ui/effects/effect-blind.js +70 -0
  211. data/node_modules/jquery-ui/ui/effects/effect-bounce.js +110 -0
  212. data/node_modules/jquery-ui/ui/effects/effect-clip.js +65 -0
  213. data/node_modules/jquery-ui/ui/effects/effect-drop.js +69 -0
  214. data/node_modules/jquery-ui/ui/effects/effect-explode.js +111 -0
  215. data/node_modules/jquery-ui/ui/effects/effect-fade.js +47 -0
  216. data/node_modules/jquery-ui/ui/effects/effect-fold.js +89 -0
  217. data/node_modules/jquery-ui/ui/effects/effect-highlight.js +57 -0
  218. data/node_modules/jquery-ui/ui/effects/effect-puff.js +42 -0
  219. data/node_modules/jquery-ui/ui/effects/effect-pulsate.js +64 -0
  220. data/node_modules/jquery-ui/ui/effects/effect-scale.js +56 -0
  221. data/node_modules/jquery-ui/ui/effects/effect-shake.js +74 -0
  222. data/node_modules/jquery-ui/ui/effects/effect-size.js +191 -0
  223. data/node_modules/jquery-ui/ui/effects/effect-slide.js +76 -0
  224. data/node_modules/jquery-ui/ui/effects/effect-transfer.js +40 -0
  225. data/node_modules/jquery-ui/ui/escape-selector.js +21 -0
  226. data/node_modules/jquery-ui/ui/focusable.js +84 -0
  227. data/node_modules/jquery-ui/ui/form-reset-mixin.js +77 -0
  228. data/node_modules/jquery-ui/ui/form.js +20 -0
  229. data/node_modules/jquery-ui/ui/i18n/datepicker-af.js +37 -0
  230. data/node_modules/jquery-ui/ui/i18n/datepicker-ar-DZ.js +39 -0
  231. data/node_modules/jquery-ui/ui/i18n/datepicker-ar.js +39 -0
  232. data/node_modules/jquery-ui/ui/i18n/datepicker-az.js +37 -0
  233. data/node_modules/jquery-ui/ui/i18n/datepicker-be.js +37 -0
  234. data/node_modules/jquery-ui/ui/i18n/datepicker-bg.js +38 -0
  235. data/node_modules/jquery-ui/ui/i18n/datepicker-bs.js +37 -0
  236. data/node_modules/jquery-ui/ui/i18n/datepicker-ca.js +37 -0
  237. data/node_modules/jquery-ui/ui/i18n/datepicker-cs.js +37 -0
  238. data/node_modules/jquery-ui/ui/i18n/datepicker-cy-GB.js +45 -0
  239. data/node_modules/jquery-ui/ui/i18n/datepicker-da.js +37 -0
  240. data/node_modules/jquery-ui/ui/i18n/datepicker-de.js +37 -0
  241. data/node_modules/jquery-ui/ui/i18n/datepicker-el.js +37 -0
  242. data/node_modules/jquery-ui/ui/i18n/datepicker-en-AU.js +37 -0
  243. data/node_modules/jquery-ui/ui/i18n/datepicker-en-GB.js +37 -0
  244. data/node_modules/jquery-ui/ui/i18n/datepicker-en-NZ.js +37 -0
  245. data/node_modules/jquery-ui/ui/i18n/datepicker-eo.js +37 -0
  246. data/node_modules/jquery-ui/ui/i18n/datepicker-es.js +37 -0
  247. data/node_modules/jquery-ui/ui/i18n/datepicker-et.js +45 -0
  248. data/node_modules/jquery-ui/ui/i18n/datepicker-eu.js +36 -0
  249. data/node_modules/jquery-ui/ui/i18n/datepicker-fa.js +73 -0
  250. data/node_modules/jquery-ui/ui/i18n/datepicker-fi.js +37 -0
  251. data/node_modules/jquery-ui/ui/i18n/datepicker-fo.js +45 -0
  252. data/node_modules/jquery-ui/ui/i18n/datepicker-fr-CA.js +37 -0
  253. data/node_modules/jquery-ui/ui/i18n/datepicker-fr-CH.js +37 -0
  254. data/node_modules/jquery-ui/ui/i18n/datepicker-fr.js +39 -0
  255. data/node_modules/jquery-ui/ui/i18n/datepicker-gl.js +37 -0
  256. data/node_modules/jquery-ui/ui/i18n/datepicker-he.js +37 -0
  257. data/node_modules/jquery-ui/ui/i18n/datepicker-hi.js +37 -0
  258. data/node_modules/jquery-ui/ui/i18n/datepicker-hr.js +37 -0
  259. data/node_modules/jquery-ui/ui/i18n/datepicker-hu.js +36 -0
  260. data/node_modules/jquery-ui/ui/i18n/datepicker-hy.js +37 -0
  261. data/node_modules/jquery-ui/ui/i18n/datepicker-id.js +37 -0
  262. data/node_modules/jquery-ui/ui/i18n/datepicker-is.js +45 -0
  263. data/node_modules/jquery-ui/ui/i18n/datepicker-it-CH.js +37 -0
  264. data/node_modules/jquery-ui/ui/i18n/datepicker-it.js +37 -0
  265. data/node_modules/jquery-ui/ui/i18n/datepicker-ja.js +37 -0
  266. data/node_modules/jquery-ui/ui/i18n/datepicker-ka.js +48 -0
  267. data/node_modules/jquery-ui/ui/i18n/datepicker-kk.js +37 -0
  268. data/node_modules/jquery-ui/ui/i18n/datepicker-km.js +37 -0
  269. data/node_modules/jquery-ui/ui/i18n/datepicker-ko.js +37 -0
  270. data/node_modules/jquery-ui/ui/i18n/datepicker-ky.js +38 -0
  271. data/node_modules/jquery-ui/ui/i18n/datepicker-lb.js +45 -0
  272. data/node_modules/jquery-ui/ui/i18n/datepicker-lt.js +45 -0
  273. data/node_modules/jquery-ui/ui/i18n/datepicker-lv.js +45 -0
  274. data/node_modules/jquery-ui/ui/i18n/datepicker-mk.js +37 -0
  275. data/node_modules/jquery-ui/ui/i18n/datepicker-ml.js +37 -0
  276. data/node_modules/jquery-ui/ui/i18n/datepicker-ms.js +37 -0
  277. data/node_modules/jquery-ui/ui/i18n/datepicker-nb.js +49 -0
  278. data/node_modules/jquery-ui/ui/i18n/datepicker-nl-BE.js +37 -0
  279. data/node_modules/jquery-ui/ui/i18n/datepicker-nl.js +37 -0
  280. data/node_modules/jquery-ui/ui/i18n/datepicker-nn.js +49 -0
  281. data/node_modules/jquery-ui/ui/i18n/datepicker-no.js +50 -0
  282. data/node_modules/jquery-ui/ui/i18n/datepicker-pl.js +37 -0
  283. data/node_modules/jquery-ui/ui/i18n/datepicker-pt-BR.js +45 -0
  284. data/node_modules/jquery-ui/ui/i18n/datepicker-pt.js +44 -0
  285. data/node_modules/jquery-ui/ui/i18n/datepicker-rm.js +61 -0
  286. data/node_modules/jquery-ui/ui/i18n/datepicker-ro.js +40 -0
  287. data/node_modules/jquery-ui/ui/i18n/datepicker-ru.js +37 -0
  288. data/node_modules/jquery-ui/ui/i18n/datepicker-sk.js +37 -0
  289. data/node_modules/jquery-ui/ui/i18n/datepicker-sl.js +38 -0
  290. data/node_modules/jquery-ui/ui/i18n/datepicker-sq.js +37 -0
  291. data/node_modules/jquery-ui/ui/i18n/datepicker-sr-SR.js +37 -0
  292. data/node_modules/jquery-ui/ui/i18n/datepicker-sr.js +37 -0
  293. data/node_modules/jquery-ui/ui/i18n/datepicker-sv.js +37 -0
  294. data/node_modules/jquery-ui/ui/i18n/datepicker-ta.js +53 -0
  295. data/node_modules/jquery-ui/ui/i18n/datepicker-th.js +37 -0
  296. data/node_modules/jquery-ui/ui/i18n/datepicker-tj.js +37 -0
  297. data/node_modules/jquery-ui/ui/i18n/datepicker-tr.js +37 -0
  298. data/node_modules/jquery-ui/ui/i18n/datepicker-uk.js +38 -0
  299. data/node_modules/jquery-ui/ui/i18n/datepicker-vi.js +37 -0
  300. data/node_modules/jquery-ui/ui/i18n/datepicker-zh-CN.js +37 -0
  301. data/node_modules/jquery-ui/ui/i18n/datepicker-zh-HK.js +37 -0
  302. data/node_modules/jquery-ui/ui/i18n/datepicker-zh-TW.js +37 -0
  303. data/node_modules/jquery-ui/ui/ie.js +15 -0
  304. data/node_modules/jquery-ui/ui/jquery-1-7.js +89 -0
  305. data/node_modules/jquery-ui/ui/keycode.js +45 -0
  306. data/node_modules/jquery-ui/ui/labels.js +62 -0
  307. data/node_modules/jquery-ui/ui/plugin.js +44 -0
  308. data/node_modules/jquery-ui/ui/position.js +498 -0
  309. data/node_modules/jquery-ui/ui/safe-active-element.js +40 -0
  310. data/node_modules/jquery-ui/ui/safe-blur.js +21 -0
  311. data/node_modules/jquery-ui/ui/scroll-parent.js +45 -0
  312. data/node_modules/jquery-ui/ui/tabbable.js +35 -0
  313. data/node_modules/jquery-ui/ui/unique-id.js +49 -0
  314. data/node_modules/jquery-ui/ui/version.js +17 -0
  315. data/node_modules/jquery-ui/ui/widget.js +733 -0
  316. data/node_modules/jquery-ui/ui/widgets/accordion.js +613 -0
  317. data/node_modules/jquery-ui/ui/widgets/autocomplete.js +682 -0
  318. data/node_modules/jquery-ui/ui/widgets/button.js +386 -0
  319. data/node_modules/jquery-ui/ui/widgets/checkboxradio.js +286 -0
  320. data/node_modules/jquery-ui/ui/widgets/controlgroup.js +298 -0
  321. data/node_modules/jquery-ui/ui/widgets/datepicker.js +2120 -0
  322. data/node_modules/jquery-ui/ui/widgets/dialog.js +940 -0
  323. data/node_modules/jquery-ui/ui/widgets/draggable.js +1250 -0
  324. data/node_modules/jquery-ui/ui/widgets/droppable.js +497 -0
  325. data/node_modules/jquery-ui/ui/widgets/menu.js +673 -0
  326. data/node_modules/jquery-ui/ui/widgets/mouse.js +226 -0
  327. data/node_modules/jquery-ui/ui/widgets/progressbar.js +178 -0
  328. data/node_modules/jquery-ui/ui/widgets/resizable.js +1201 -0
  329. data/node_modules/jquery-ui/ui/widgets/selectable.js +310 -0
  330. data/node_modules/jquery-ui/ui/widgets/selectmenu.js +687 -0
  331. data/node_modules/jquery-ui/ui/widgets/slider.js +752 -0
  332. data/node_modules/jquery-ui/ui/widgets/sortable.js +1554 -0
  333. data/node_modules/jquery-ui/ui/widgets/spinner.js +575 -0
  334. data/node_modules/jquery-ui/ui/widgets/tabs.js +924 -0
  335. data/node_modules/jquery-ui/ui/widgets/tooltip.js +520 -0
  336. data/node_modules/jquery-ujs/package.json +26 -0
  337. data/node_modules/jquery-ujs/src/rails.js +555 -0
  338. data/node_modules/js-cookie/package.json +49 -0
  339. data/node_modules/js-cookie/src/js.cookie.js +165 -0
  340. data/node_modules/jstz/dist/jstz.js +1428 -0
  341. data/node_modules/jstz/package.json +57 -0
  342. data/node_modules/lodash/core.js +3836 -0
  343. data/node_modules/lodash/lodash.js +17084 -0
  344. data/node_modules/lodash/package.json +17 -0
  345. data/node_modules/moment/locale/af.js +74 -0
  346. data/node_modules/moment/locale/ar-dz.js +60 -0
  347. data/node_modules/moment/locale/ar-kw.js +60 -0
  348. data/node_modules/moment/locale/ar-ly.js +127 -0
  349. data/node_modules/moment/locale/ar-ma.js +61 -0
  350. data/node_modules/moment/locale/ar-sa.js +106 -0
  351. data/node_modules/moment/locale/ar-tn.js +60 -0
  352. data/node_modules/moment/locale/ar.js +143 -0
  353. data/node_modules/moment/locale/az.js +106 -0
  354. data/node_modules/moment/locale/be.js +135 -0
  355. data/node_modules/moment/locale/bg.js +91 -0
  356. data/node_modules/moment/locale/bm.js +60 -0
  357. data/node_modules/moment/locale/bn.js +120 -0
  358. data/node_modules/moment/locale/bo.js +120 -0
  359. data/node_modules/moment/locale/br.js +109 -0
  360. data/node_modules/moment/locale/bs.js +153 -0
  361. data/node_modules/moment/locale/ca.js +89 -0
  362. data/node_modules/moment/locale/cs.js +180 -0
  363. data/node_modules/moment/locale/cv.js +64 -0
  364. data/node_modules/moment/locale/cy.js +82 -0
  365. data/node_modules/moment/locale/da.js +61 -0
  366. data/node_modules/moment/locale/de-at.js +80 -0
  367. data/node_modules/moment/locale/de-ch.js +79 -0
  368. data/node_modules/moment/locale/de.js +79 -0
  369. data/node_modules/moment/locale/dv.js +101 -0
  370. data/node_modules/moment/locale/el.js +101 -0
  371. data/node_modules/moment/locale/en-au.js +68 -0
  372. data/node_modules/moment/locale/en-ca.js +64 -0
  373. data/node_modules/moment/locale/en-gb.js +68 -0
  374. data/node_modules/moment/locale/en-ie.js +68 -0
  375. data/node_modules/moment/locale/en-nz.js +68 -0
  376. data/node_modules/moment/locale/eo.js +74 -0
  377. data/node_modules/moment/locale/es-do.js +92 -0
  378. data/node_modules/moment/locale/es-us.js +84 -0
  379. data/node_modules/moment/locale/es.js +93 -0
  380. data/node_modules/moment/locale/et.js +82 -0
  381. data/node_modules/moment/locale/eu.js +67 -0
  382. data/node_modules/moment/locale/fa.js +108 -0
  383. data/node_modules/moment/locale/fi.js +110 -0
  384. data/node_modules/moment/locale/fo.js +61 -0
  385. data/node_modules/moment/locale/fr-ca.js +75 -0
  386. data/node_modules/moment/locale/fr-ch.js +79 -0
  387. data/node_modules/moment/locale/fr.js +84 -0
  388. data/node_modules/moment/locale/fy.js +76 -0
  389. data/node_modules/moment/locale/gd.js +77 -0
  390. data/node_modules/moment/locale/gl.js +78 -0
  391. data/node_modules/moment/locale/gom-latn.js +124 -0
  392. data/node_modules/moment/locale/gu.js +125 -0
  393. data/node_modules/moment/locale/he.js +100 -0
  394. data/node_modules/moment/locale/hi.js +125 -0
  395. data/node_modules/moment/locale/hr.js +155 -0
  396. data/node_modules/moment/locale/hu.js +111 -0
  397. data/node_modules/moment/locale/hy-am.js +96 -0
  398. data/node_modules/moment/locale/id.js +84 -0
  399. data/node_modules/moment/locale/is.js +133 -0
  400. data/node_modules/moment/locale/it.js +71 -0
  401. data/node_modules/moment/locale/ja.js +81 -0
  402. data/node_modules/moment/locale/jv.js +84 -0
  403. data/node_modules/moment/locale/ka.js +90 -0
  404. data/node_modules/moment/locale/kk.js +88 -0
  405. data/node_modules/moment/locale/km.js +59 -0
  406. data/node_modules/moment/locale/kn.js +127 -0
  407. data/node_modules/moment/locale/ko.js +83 -0
  408. data/node_modules/moment/locale/ky.js +89 -0
  409. data/node_modules/moment/locale/lb.js +138 -0
  410. data/node_modules/moment/locale/lo.js +71 -0
  411. data/node_modules/moment/locale/lt.js +119 -0
  412. data/node_modules/moment/locale/lv.js +99 -0
  413. data/node_modules/moment/locale/me.js +113 -0
  414. data/node_modules/moment/locale/mi.js +65 -0
  415. data/node_modules/moment/locale/mk.js +91 -0
  416. data/node_modules/moment/locale/ml.js +82 -0
  417. data/node_modules/moment/locale/mr.js +162 -0
  418. data/node_modules/moment/locale/ms-my.js +84 -0
  419. data/node_modules/moment/locale/ms.js +83 -0
  420. data/node_modules/moment/locale/mt.js +61 -0
  421. data/node_modules/moment/locale/my.js +97 -0
  422. data/node_modules/moment/locale/nb.js +64 -0
  423. data/node_modules/moment/locale/ne.js +124 -0
  424. data/node_modules/moment/locale/nl-be.js +89 -0
  425. data/node_modules/moment/locale/nl.js +89 -0
  426. data/node_modules/moment/locale/nn.js +61 -0
  427. data/node_modules/moment/locale/pa-in.js +125 -0
  428. data/node_modules/moment/locale/pl.js +127 -0
  429. data/node_modules/moment/locale/pt-br.js +62 -0
  430. data/node_modules/moment/locale/pt.js +66 -0
  431. data/node_modules/moment/locale/ro.js +77 -0
  432. data/node_modules/moment/locale/ru.js +185 -0
  433. data/node_modules/moment/locale/sd.js +99 -0
  434. data/node_modules/moment/locale/se.js +62 -0
  435. data/node_modules/moment/locale/si.js +72 -0
  436. data/node_modules/moment/locale/sk.js +158 -0
  437. data/node_modules/moment/locale/sl.js +174 -0
  438. data/node_modules/moment/locale/sq.js +71 -0
  439. data/node_modules/moment/locale/sr-cyrl.js +112 -0
  440. data/node_modules/moment/locale/sr.js +112 -0
  441. data/node_modules/moment/locale/ss.js +90 -0
  442. data/node_modules/moment/locale/sv.js +70 -0
  443. data/node_modules/moment/locale/sw.js +60 -0
  444. data/node_modules/moment/locale/ta.js +131 -0
  445. data/node_modules/moment/locale/te.js +90 -0
  446. data/node_modules/moment/locale/tet.js +69 -0
  447. data/node_modules/moment/locale/th.js +68 -0
  448. data/node_modules/moment/locale/tl-ph.js +63 -0
  449. data/node_modules/moment/locale/tlh.js +123 -0
  450. data/node_modules/moment/locale/tr.js +91 -0
  451. data/node_modules/moment/locale/tzl.js +93 -0
  452. data/node_modules/moment/locale/tzm-latn.js +59 -0
  453. data/node_modules/moment/locale/tzm.js +59 -0
  454. data/node_modules/moment/locale/uk.js +153 -0
  455. data/node_modules/moment/locale/ur.js +100 -0
  456. data/node_modules/moment/locale/uz-latn.js +59 -0
  457. data/node_modules/moment/locale/uz.js +59 -0
  458. data/node_modules/moment/locale/vi.js +80 -0
  459. data/node_modules/moment/locale/x-pseudo.js +69 -0
  460. data/node_modules/moment/locale/yo.js +61 -0
  461. data/node_modules/moment/locale/zh-cn.js +112 -0
  462. data/node_modules/moment/locale/zh-hk.js +106 -0
  463. data/node_modules/moment/locale/zh-tw.js +105 -0
  464. data/node_modules/moment/min/locales.js +9769 -0
  465. data/node_modules/moment/min/moment-with-locales.js +14289 -0
  466. data/node_modules/moment/moment.js +4535 -0
  467. data/node_modules/moment/package.json +99 -0
  468. data/node_modules/moment-timezone/builds/moment-timezone-with-data-2012-2022.js +1204 -0
  469. data/node_modules/moment-timezone/builds/moment-timezone-with-data.js +1204 -0
  470. data/node_modules/moment-timezone/moment-timezone-utils.js +316 -0
  471. data/node_modules/moment-timezone/moment-timezone.js +605 -0
  472. data/node_modules/moment-timezone/package.json +50 -0
  473. data/node_modules/nprogress/nprogress.css +74 -0
  474. data/node_modules/nprogress/nprogress.js +480 -0
  475. data/node_modules/nprogress/package.json +47 -0
  476. data/node_modules/nprogress/support/extras.css +4 -0
  477. data/node_modules/roboto-fontface/css/mixins.scss +36 -0
  478. data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-black-italic.scss +3 -0
  479. data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-black.scss +3 -0
  480. data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-bold-italic.scss +3 -0
  481. data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-bold.scss +3 -0
  482. data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-light-italic.scss +3 -0
  483. data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-light.scss +3 -0
  484. data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-medium-italic.scss +3 -0
  485. data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-medium.scss +3 -0
  486. data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-regular-italic.scss +3 -0
  487. data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-regular.scss +3 -0
  488. data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-thin-italic.scss +3 -0
  489. data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface-thin.scss +3 -0
  490. data/node_modules/roboto-fontface/css/roboto/sass/roboto-fontface.scss +12 -0
  491. data/node_modules/roboto-fontface/css/roboto-condensed/sass/roboto-condensed-fontface-bold-italic.scss +3 -0
  492. data/node_modules/roboto-fontface/css/roboto-condensed/sass/roboto-condensed-fontface-bold.scss +3 -0
  493. data/node_modules/roboto-fontface/css/roboto-condensed/sass/roboto-condensed-fontface-light-italic.scss +3 -0
  494. data/node_modules/roboto-fontface/css/roboto-condensed/sass/roboto-condensed-fontface-light.scss +3 -0
  495. data/node_modules/roboto-fontface/css/roboto-condensed/sass/roboto-condensed-fontface-regular-italic.scss +3 -0
  496. data/node_modules/roboto-fontface/css/roboto-condensed/sass/roboto-condensed-fontface-regular.scss +3 -0
  497. data/node_modules/roboto-fontface/css/roboto-condensed/sass/roboto-condensed-fontface.scss +6 -0
  498. data/node_modules/roboto-fontface/css/roboto-slab/sass/roboto-slab-fontface-bold.scss +3 -0
  499. data/node_modules/roboto-fontface/css/roboto-slab/sass/roboto-slab-fontface-light.scss +3 -0
  500. data/node_modules/roboto-fontface/css/roboto-slab/sass/roboto-slab-fontface-regular.scss +3 -0
  501. data/node_modules/roboto-fontface/css/roboto-slab/sass/roboto-slab-fontface-thin.scss +3 -0
  502. data/node_modules/roboto-fontface/css/roboto-slab/sass/roboto-slab-fontface.scss +4 -0
  503. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Black.eot +0 -0
  504. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Black.svg +10968 -0
  505. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Black.ttf +0 -0
  506. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Black.woff +0 -0
  507. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Black.woff2 +0 -0
  508. data/node_modules/roboto-fontface/fonts/roboto/Roboto-BlackItalic.eot +0 -0
  509. data/node_modules/roboto-fontface/fonts/roboto/Roboto-BlackItalic.svg +11086 -0
  510. data/node_modules/roboto-fontface/fonts/roboto/Roboto-BlackItalic.ttf +0 -0
  511. data/node_modules/roboto-fontface/fonts/roboto/Roboto-BlackItalic.woff +0 -0
  512. data/node_modules/roboto-fontface/fonts/roboto/Roboto-BlackItalic.woff2 +0 -0
  513. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Bold.eot +0 -0
  514. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Bold.svg +11010 -0
  515. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Bold.ttf +0 -0
  516. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Bold.woff +0 -0
  517. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Bold.woff2 +0 -0
  518. data/node_modules/roboto-fontface/fonts/roboto/Roboto-BoldItalic.eot +0 -0
  519. data/node_modules/roboto-fontface/fonts/roboto/Roboto-BoldItalic.svg +11096 -0
  520. data/node_modules/roboto-fontface/fonts/roboto/Roboto-BoldItalic.ttf +0 -0
  521. data/node_modules/roboto-fontface/fonts/roboto/Roboto-BoldItalic.woff +0 -0
  522. data/node_modules/roboto-fontface/fonts/roboto/Roboto-BoldItalic.woff2 +0 -0
  523. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Light.eot +0 -0
  524. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Light.svg +10564 -0
  525. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Light.ttf +0 -0
  526. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Light.woff +0 -0
  527. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Light.woff2 +0 -0
  528. data/node_modules/roboto-fontface/fonts/roboto/Roboto-LightItalic.eot +0 -0
  529. data/node_modules/roboto-fontface/fonts/roboto/Roboto-LightItalic.svg +10646 -0
  530. data/node_modules/roboto-fontface/fonts/roboto/Roboto-LightItalic.ttf +0 -0
  531. data/node_modules/roboto-fontface/fonts/roboto/Roboto-LightItalic.woff +0 -0
  532. data/node_modules/roboto-fontface/fonts/roboto/Roboto-LightItalic.woff2 +0 -0
  533. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Medium.eot +0 -0
  534. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Medium.svg +10999 -0
  535. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Medium.ttf +0 -0
  536. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Medium.woff +0 -0
  537. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Medium.woff2 +0 -0
  538. data/node_modules/roboto-fontface/fonts/roboto/Roboto-MediumItalic.eot +0 -0
  539. data/node_modules/roboto-fontface/fonts/roboto/Roboto-MediumItalic.svg +11100 -0
  540. data/node_modules/roboto-fontface/fonts/roboto/Roboto-MediumItalic.ttf +0 -0
  541. data/node_modules/roboto-fontface/fonts/roboto/Roboto-MediumItalic.woff +0 -0
  542. data/node_modules/roboto-fontface/fonts/roboto/Roboto-MediumItalic.woff2 +0 -0
  543. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Regular.eot +0 -0
  544. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Regular.svg +10520 -0
  545. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Regular.ttf +0 -0
  546. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Regular.woff +0 -0
  547. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Regular.woff2 +0 -0
  548. data/node_modules/roboto-fontface/fonts/roboto/Roboto-RegularItalic.eot +0 -0
  549. data/node_modules/roboto-fontface/fonts/roboto/Roboto-RegularItalic.svg +10629 -0
  550. data/node_modules/roboto-fontface/fonts/roboto/Roboto-RegularItalic.ttf +0 -0
  551. data/node_modules/roboto-fontface/fonts/roboto/Roboto-RegularItalic.woff +0 -0
  552. data/node_modules/roboto-fontface/fonts/roboto/Roboto-RegularItalic.woff2 +0 -0
  553. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Thin.eot +0 -0
  554. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Thin.svg +10617 -0
  555. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Thin.ttf +0 -0
  556. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Thin.woff +0 -0
  557. data/node_modules/roboto-fontface/fonts/roboto/Roboto-Thin.woff2 +0 -0
  558. data/node_modules/roboto-fontface/fonts/roboto/Roboto-ThinItalic.eot +0 -0
  559. data/node_modules/roboto-fontface/fonts/roboto/Roboto-ThinItalic.svg +10726 -0
  560. data/node_modules/roboto-fontface/fonts/roboto/Roboto-ThinItalic.ttf +0 -0
  561. data/node_modules/roboto-fontface/fonts/roboto/Roboto-ThinItalic.woff +0 -0
  562. data/node_modules/roboto-fontface/fonts/roboto/Roboto-ThinItalic.woff2 +0 -0
  563. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Bold.eot +0 -0
  564. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Bold.svg +643 -0
  565. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Bold.ttf +0 -0
  566. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Bold.woff +0 -0
  567. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Bold.woff2 +0 -0
  568. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-BoldItalic.eot +0 -0
  569. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-BoldItalic.svg +643 -0
  570. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-BoldItalic.ttf +0 -0
  571. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-BoldItalic.woff +0 -0
  572. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-BoldItalic.woff2 +0 -0
  573. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Light.eot +0 -0
  574. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Light.svg +643 -0
  575. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Light.ttf +0 -0
  576. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Light.woff +0 -0
  577. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Light.woff2 +0 -0
  578. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-LightItalic.eot +0 -0
  579. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-LightItalic.svg +643 -0
  580. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-LightItalic.ttf +0 -0
  581. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-LightItalic.woff +0 -0
  582. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-LightItalic.woff2 +0 -0
  583. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.eot +0 -0
  584. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.svg +644 -0
  585. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.ttf +0 -0
  586. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.woff +0 -0
  587. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.woff2 +0 -0
  588. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-RegularItalic.eot +0 -0
  589. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-RegularItalic.svg +644 -0
  590. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-RegularItalic.ttf +0 -0
  591. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-RegularItalic.woff +0 -0
  592. data/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-RegularItalic.woff2 +0 -0
  593. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Bold.eot +0 -0
  594. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Bold.svg +679 -0
  595. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Bold.ttf +0 -0
  596. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Bold.woff +0 -0
  597. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Bold.woff2 +0 -0
  598. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Light.eot +0 -0
  599. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Light.svg +678 -0
  600. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Light.ttf +0 -0
  601. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Light.woff +0 -0
  602. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Light.woff2 +0 -0
  603. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Regular.eot +0 -0
  604. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Regular.svg +678 -0
  605. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Regular.ttf +0 -0
  606. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Regular.woff +0 -0
  607. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Regular.woff2 +0 -0
  608. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Thin.eot +0 -0
  609. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Thin.svg +678 -0
  610. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Thin.ttf +0 -0
  611. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Thin.woff +0 -0
  612. data/node_modules/roboto-fontface/fonts/roboto-slab/Roboto-Slab-Thin.woff2 +0 -0
  613. data/node_modules/roboto-fontface/package.json +28 -0
  614. data/node_modules/signature_pad/dist/signature_pad.js +610 -0
  615. data/node_modules/signature_pad/package.json +41 -0
  616. data/package.json +25 -0
  617. data/yarn.lock +126 -0
  618. metadata +708 -0
@@ -0,0 +1,1250 @@
1
+ /*!
2
+ * jQuery UI Draggable 1.12.1
3
+ * http://jqueryui.com
4
+ *
5
+ * Copyright jQuery Foundation and other contributors
6
+ * Released under the MIT license.
7
+ * http://jquery.org/license
8
+ */
9
+
10
+ //>>label: Draggable
11
+ //>>group: Interactions
12
+ //>>description: Enables dragging functionality for any element.
13
+ //>>docs: http://api.jqueryui.com/draggable/
14
+ //>>demos: http://jqueryui.com/draggable/
15
+ //>>css.structure: ../../themes/base/draggable.css
16
+
17
+ ( function( factory ) {
18
+ if ( typeof define === "function" && define.amd ) {
19
+
20
+ // AMD. Register as an anonymous module.
21
+ define( [
22
+ "jquery",
23
+ "./mouse",
24
+ "../data",
25
+ "../plugin",
26
+ "../safe-active-element",
27
+ "../safe-blur",
28
+ "../scroll-parent",
29
+ "../version",
30
+ "../widget"
31
+ ], factory );
32
+ } else {
33
+
34
+ // Browser globals
35
+ factory( jQuery );
36
+ }
37
+ }( function( $ ) {
38
+
39
+ $.widget( "ui.draggable", $.ui.mouse, {
40
+ version: "1.12.1",
41
+ widgetEventPrefix: "drag",
42
+ options: {
43
+ addClasses: true,
44
+ appendTo: "parent",
45
+ axis: false,
46
+ connectToSortable: false,
47
+ containment: false,
48
+ cursor: "auto",
49
+ cursorAt: false,
50
+ grid: false,
51
+ handle: false,
52
+ helper: "original",
53
+ iframeFix: false,
54
+ opacity: false,
55
+ refreshPositions: false,
56
+ revert: false,
57
+ revertDuration: 500,
58
+ scope: "default",
59
+ scroll: true,
60
+ scrollSensitivity: 20,
61
+ scrollSpeed: 20,
62
+ snap: false,
63
+ snapMode: "both",
64
+ snapTolerance: 20,
65
+ stack: false,
66
+ zIndex: false,
67
+
68
+ // Callbacks
69
+ drag: null,
70
+ start: null,
71
+ stop: null
72
+ },
73
+ _create: function() {
74
+
75
+ if ( this.options.helper === "original" ) {
76
+ this._setPositionRelative();
77
+ }
78
+ if ( this.options.addClasses ) {
79
+ this._addClass( "ui-draggable" );
80
+ }
81
+ this._setHandleClassName();
82
+
83
+ this._mouseInit();
84
+ },
85
+
86
+ _setOption: function( key, value ) {
87
+ this._super( key, value );
88
+ if ( key === "handle" ) {
89
+ this._removeHandleClassName();
90
+ this._setHandleClassName();
91
+ }
92
+ },
93
+
94
+ _destroy: function() {
95
+ if ( ( this.helper || this.element ).is( ".ui-draggable-dragging" ) ) {
96
+ this.destroyOnClear = true;
97
+ return;
98
+ }
99
+ this._removeHandleClassName();
100
+ this._mouseDestroy();
101
+ },
102
+
103
+ _mouseCapture: function( event ) {
104
+ var o = this.options;
105
+
106
+ // Among others, prevent a drag on a resizable-handle
107
+ if ( this.helper || o.disabled ||
108
+ $( event.target ).closest( ".ui-resizable-handle" ).length > 0 ) {
109
+ return false;
110
+ }
111
+
112
+ //Quit if we're not on a valid handle
113
+ this.handle = this._getHandle( event );
114
+ if ( !this.handle ) {
115
+ return false;
116
+ }
117
+
118
+ this._blurActiveElement( event );
119
+
120
+ this._blockFrames( o.iframeFix === true ? "iframe" : o.iframeFix );
121
+
122
+ return true;
123
+
124
+ },
125
+
126
+ _blockFrames: function( selector ) {
127
+ this.iframeBlocks = this.document.find( selector ).map( function() {
128
+ var iframe = $( this );
129
+
130
+ return $( "<div>" )
131
+ .css( "position", "absolute" )
132
+ .appendTo( iframe.parent() )
133
+ .outerWidth( iframe.outerWidth() )
134
+ .outerHeight( iframe.outerHeight() )
135
+ .offset( iframe.offset() )[ 0 ];
136
+ } );
137
+ },
138
+
139
+ _unblockFrames: function() {
140
+ if ( this.iframeBlocks ) {
141
+ this.iframeBlocks.remove();
142
+ delete this.iframeBlocks;
143
+ }
144
+ },
145
+
146
+ _blurActiveElement: function( event ) {
147
+ var activeElement = $.ui.safeActiveElement( this.document[ 0 ] ),
148
+ target = $( event.target );
149
+
150
+ // Don't blur if the event occurred on an element that is within
151
+ // the currently focused element
152
+ // See #10527, #12472
153
+ if ( target.closest( activeElement ).length ) {
154
+ return;
155
+ }
156
+
157
+ // Blur any element that currently has focus, see #4261
158
+ $.ui.safeBlur( activeElement );
159
+ },
160
+
161
+ _mouseStart: function( event ) {
162
+
163
+ var o = this.options;
164
+
165
+ //Create and append the visible helper
166
+ this.helper = this._createHelper( event );
167
+
168
+ this._addClass( this.helper, "ui-draggable-dragging" );
169
+
170
+ //Cache the helper size
171
+ this._cacheHelperProportions();
172
+
173
+ //If ddmanager is used for droppables, set the global draggable
174
+ if ( $.ui.ddmanager ) {
175
+ $.ui.ddmanager.current = this;
176
+ }
177
+
178
+ /*
179
+ * - Position generation -
180
+ * This block generates everything position related - it's the core of draggables.
181
+ */
182
+
183
+ //Cache the margins of the original element
184
+ this._cacheMargins();
185
+
186
+ //Store the helper's css position
187
+ this.cssPosition = this.helper.css( "position" );
188
+ this.scrollParent = this.helper.scrollParent( true );
189
+ this.offsetParent = this.helper.offsetParent();
190
+ this.hasFixedAncestor = this.helper.parents().filter( function() {
191
+ return $( this ).css( "position" ) === "fixed";
192
+ } ).length > 0;
193
+
194
+ //The element's absolute position on the page minus margins
195
+ this.positionAbs = this.element.offset();
196
+ this._refreshOffsets( event );
197
+
198
+ //Generate the original position
199
+ this.originalPosition = this.position = this._generatePosition( event, false );
200
+ this.originalPageX = event.pageX;
201
+ this.originalPageY = event.pageY;
202
+
203
+ //Adjust the mouse offset relative to the helper if "cursorAt" is supplied
204
+ ( o.cursorAt && this._adjustOffsetFromHelper( o.cursorAt ) );
205
+
206
+ //Set a containment if given in the options
207
+ this._setContainment();
208
+
209
+ //Trigger event + callbacks
210
+ if ( this._trigger( "start", event ) === false ) {
211
+ this._clear();
212
+ return false;
213
+ }
214
+
215
+ //Recache the helper size
216
+ this._cacheHelperProportions();
217
+
218
+ //Prepare the droppable offsets
219
+ if ( $.ui.ddmanager && !o.dropBehaviour ) {
220
+ $.ui.ddmanager.prepareOffsets( this, event );
221
+ }
222
+
223
+ // Execute the drag once - this causes the helper not to be visible before getting its
224
+ // correct position
225
+ this._mouseDrag( event, true );
226
+
227
+ // If the ddmanager is used for droppables, inform the manager that dragging has started
228
+ // (see #5003)
229
+ if ( $.ui.ddmanager ) {
230
+ $.ui.ddmanager.dragStart( this, event );
231
+ }
232
+
233
+ return true;
234
+ },
235
+
236
+ _refreshOffsets: function( event ) {
237
+ this.offset = {
238
+ top: this.positionAbs.top - this.margins.top,
239
+ left: this.positionAbs.left - this.margins.left,
240
+ scroll: false,
241
+ parent: this._getParentOffset(),
242
+ relative: this._getRelativeOffset()
243
+ };
244
+
245
+ this.offset.click = {
246
+ left: event.pageX - this.offset.left,
247
+ top: event.pageY - this.offset.top
248
+ };
249
+ },
250
+
251
+ _mouseDrag: function( event, noPropagation ) {
252
+
253
+ // reset any necessary cached properties (see #5009)
254
+ if ( this.hasFixedAncestor ) {
255
+ this.offset.parent = this._getParentOffset();
256
+ }
257
+
258
+ //Compute the helpers position
259
+ this.position = this._generatePosition( event, true );
260
+ this.positionAbs = this._convertPositionTo( "absolute" );
261
+
262
+ //Call plugins and callbacks and use the resulting position if something is returned
263
+ if ( !noPropagation ) {
264
+ var ui = this._uiHash();
265
+ if ( this._trigger( "drag", event, ui ) === false ) {
266
+ this._mouseUp( new $.Event( "mouseup", event ) );
267
+ return false;
268
+ }
269
+ this.position = ui.position;
270
+ }
271
+
272
+ this.helper[ 0 ].style.left = this.position.left + "px";
273
+ this.helper[ 0 ].style.top = this.position.top + "px";
274
+
275
+ if ( $.ui.ddmanager ) {
276
+ $.ui.ddmanager.drag( this, event );
277
+ }
278
+
279
+ return false;
280
+ },
281
+
282
+ _mouseStop: function( event ) {
283
+
284
+ //If we are using droppables, inform the manager about the drop
285
+ var that = this,
286
+ dropped = false;
287
+ if ( $.ui.ddmanager && !this.options.dropBehaviour ) {
288
+ dropped = $.ui.ddmanager.drop( this, event );
289
+ }
290
+
291
+ //if a drop comes from outside (a sortable)
292
+ if ( this.dropped ) {
293
+ dropped = this.dropped;
294
+ this.dropped = false;
295
+ }
296
+
297
+ if ( ( this.options.revert === "invalid" && !dropped ) ||
298
+ ( this.options.revert === "valid" && dropped ) ||
299
+ this.options.revert === true || ( $.isFunction( this.options.revert ) &&
300
+ this.options.revert.call( this.element, dropped ) )
301
+ ) {
302
+ $( this.helper ).animate(
303
+ this.originalPosition,
304
+ parseInt( this.options.revertDuration, 10 ),
305
+ function() {
306
+ if ( that._trigger( "stop", event ) !== false ) {
307
+ that._clear();
308
+ }
309
+ }
310
+ );
311
+ } else {
312
+ if ( this._trigger( "stop", event ) !== false ) {
313
+ this._clear();
314
+ }
315
+ }
316
+
317
+ return false;
318
+ },
319
+
320
+ _mouseUp: function( event ) {
321
+ this._unblockFrames();
322
+
323
+ // If the ddmanager is used for droppables, inform the manager that dragging has stopped
324
+ // (see #5003)
325
+ if ( $.ui.ddmanager ) {
326
+ $.ui.ddmanager.dragStop( this, event );
327
+ }
328
+
329
+ // Only need to focus if the event occurred on the draggable itself, see #10527
330
+ if ( this.handleElement.is( event.target ) ) {
331
+
332
+ // The interaction is over; whether or not the click resulted in a drag,
333
+ // focus the element
334
+ this.element.trigger( "focus" );
335
+ }
336
+
337
+ return $.ui.mouse.prototype._mouseUp.call( this, event );
338
+ },
339
+
340
+ cancel: function() {
341
+
342
+ if ( this.helper.is( ".ui-draggable-dragging" ) ) {
343
+ this._mouseUp( new $.Event( "mouseup", { target: this.element[ 0 ] } ) );
344
+ } else {
345
+ this._clear();
346
+ }
347
+
348
+ return this;
349
+
350
+ },
351
+
352
+ _getHandle: function( event ) {
353
+ return this.options.handle ?
354
+ !!$( event.target ).closest( this.element.find( this.options.handle ) ).length :
355
+ true;
356
+ },
357
+
358
+ _setHandleClassName: function() {
359
+ this.handleElement = this.options.handle ?
360
+ this.element.find( this.options.handle ) : this.element;
361
+ this._addClass( this.handleElement, "ui-draggable-handle" );
362
+ },
363
+
364
+ _removeHandleClassName: function() {
365
+ this._removeClass( this.handleElement, "ui-draggable-handle" );
366
+ },
367
+
368
+ _createHelper: function( event ) {
369
+
370
+ var o = this.options,
371
+ helperIsFunction = $.isFunction( o.helper ),
372
+ helper = helperIsFunction ?
373
+ $( o.helper.apply( this.element[ 0 ], [ event ] ) ) :
374
+ ( o.helper === "clone" ?
375
+ this.element.clone().removeAttr( "id" ) :
376
+ this.element );
377
+
378
+ if ( !helper.parents( "body" ).length ) {
379
+ helper.appendTo( ( o.appendTo === "parent" ?
380
+ this.element[ 0 ].parentNode :
381
+ o.appendTo ) );
382
+ }
383
+
384
+ // Http://bugs.jqueryui.com/ticket/9446
385
+ // a helper function can return the original element
386
+ // which wouldn't have been set to relative in _create
387
+ if ( helperIsFunction && helper[ 0 ] === this.element[ 0 ] ) {
388
+ this._setPositionRelative();
389
+ }
390
+
391
+ if ( helper[ 0 ] !== this.element[ 0 ] &&
392
+ !( /(fixed|absolute)/ ).test( helper.css( "position" ) ) ) {
393
+ helper.css( "position", "absolute" );
394
+ }
395
+
396
+ return helper;
397
+
398
+ },
399
+
400
+ _setPositionRelative: function() {
401
+ if ( !( /^(?:r|a|f)/ ).test( this.element.css( "position" ) ) ) {
402
+ this.element[ 0 ].style.position = "relative";
403
+ }
404
+ },
405
+
406
+ _adjustOffsetFromHelper: function( obj ) {
407
+ if ( typeof obj === "string" ) {
408
+ obj = obj.split( " " );
409
+ }
410
+ if ( $.isArray( obj ) ) {
411
+ obj = { left: +obj[ 0 ], top: +obj[ 1 ] || 0 };
412
+ }
413
+ if ( "left" in obj ) {
414
+ this.offset.click.left = obj.left + this.margins.left;
415
+ }
416
+ if ( "right" in obj ) {
417
+ this.offset.click.left = this.helperProportions.width - obj.right + this.margins.left;
418
+ }
419
+ if ( "top" in obj ) {
420
+ this.offset.click.top = obj.top + this.margins.top;
421
+ }
422
+ if ( "bottom" in obj ) {
423
+ this.offset.click.top = this.helperProportions.height - obj.bottom + this.margins.top;
424
+ }
425
+ },
426
+
427
+ _isRootNode: function( element ) {
428
+ return ( /(html|body)/i ).test( element.tagName ) || element === this.document[ 0 ];
429
+ },
430
+
431
+ _getParentOffset: function() {
432
+
433
+ //Get the offsetParent and cache its position
434
+ var po = this.offsetParent.offset(),
435
+ document = this.document[ 0 ];
436
+
437
+ // This is a special case where we need to modify a offset calculated on start, since the
438
+ // following happened:
439
+ // 1. The position of the helper is absolute, so it's position is calculated based on the
440
+ // next positioned parent
441
+ // 2. The actual offset parent is a child of the scroll parent, and the scroll parent isn't
442
+ // the document, which means that the scroll is included in the initial calculation of the
443
+ // offset of the parent, and never recalculated upon drag
444
+ if ( this.cssPosition === "absolute" && this.scrollParent[ 0 ] !== document &&
445
+ $.contains( this.scrollParent[ 0 ], this.offsetParent[ 0 ] ) ) {
446
+ po.left += this.scrollParent.scrollLeft();
447
+ po.top += this.scrollParent.scrollTop();
448
+ }
449
+
450
+ if ( this._isRootNode( this.offsetParent[ 0 ] ) ) {
451
+ po = { top: 0, left: 0 };
452
+ }
453
+
454
+ return {
455
+ top: po.top + ( parseInt( this.offsetParent.css( "borderTopWidth" ), 10 ) || 0 ),
456
+ left: po.left + ( parseInt( this.offsetParent.css( "borderLeftWidth" ), 10 ) || 0 )
457
+ };
458
+
459
+ },
460
+
461
+ _getRelativeOffset: function() {
462
+ if ( this.cssPosition !== "relative" ) {
463
+ return { top: 0, left: 0 };
464
+ }
465
+
466
+ var p = this.element.position(),
467
+ scrollIsRootNode = this._isRootNode( this.scrollParent[ 0 ] );
468
+
469
+ return {
470
+ top: p.top - ( parseInt( this.helper.css( "top" ), 10 ) || 0 ) +
471
+ ( !scrollIsRootNode ? this.scrollParent.scrollTop() : 0 ),
472
+ left: p.left - ( parseInt( this.helper.css( "left" ), 10 ) || 0 ) +
473
+ ( !scrollIsRootNode ? this.scrollParent.scrollLeft() : 0 )
474
+ };
475
+
476
+ },
477
+
478
+ _cacheMargins: function() {
479
+ this.margins = {
480
+ left: ( parseInt( this.element.css( "marginLeft" ), 10 ) || 0 ),
481
+ top: ( parseInt( this.element.css( "marginTop" ), 10 ) || 0 ),
482
+ right: ( parseInt( this.element.css( "marginRight" ), 10 ) || 0 ),
483
+ bottom: ( parseInt( this.element.css( "marginBottom" ), 10 ) || 0 )
484
+ };
485
+ },
486
+
487
+ _cacheHelperProportions: function() {
488
+ this.helperProportions = {
489
+ width: this.helper.outerWidth(),
490
+ height: this.helper.outerHeight()
491
+ };
492
+ },
493
+
494
+ _setContainment: function() {
495
+
496
+ var isUserScrollable, c, ce,
497
+ o = this.options,
498
+ document = this.document[ 0 ];
499
+
500
+ this.relativeContainer = null;
501
+
502
+ if ( !o.containment ) {
503
+ this.containment = null;
504
+ return;
505
+ }
506
+
507
+ if ( o.containment === "window" ) {
508
+ this.containment = [
509
+ $( window ).scrollLeft() - this.offset.relative.left - this.offset.parent.left,
510
+ $( window ).scrollTop() - this.offset.relative.top - this.offset.parent.top,
511
+ $( window ).scrollLeft() + $( window ).width() -
512
+ this.helperProportions.width - this.margins.left,
513
+ $( window ).scrollTop() +
514
+ ( $( window ).height() || document.body.parentNode.scrollHeight ) -
515
+ this.helperProportions.height - this.margins.top
516
+ ];
517
+ return;
518
+ }
519
+
520
+ if ( o.containment === "document" ) {
521
+ this.containment = [
522
+ 0,
523
+ 0,
524
+ $( document ).width() - this.helperProportions.width - this.margins.left,
525
+ ( $( document ).height() || document.body.parentNode.scrollHeight ) -
526
+ this.helperProportions.height - this.margins.top
527
+ ];
528
+ return;
529
+ }
530
+
531
+ if ( o.containment.constructor === Array ) {
532
+ this.containment = o.containment;
533
+ return;
534
+ }
535
+
536
+ if ( o.containment === "parent" ) {
537
+ o.containment = this.helper[ 0 ].parentNode;
538
+ }
539
+
540
+ c = $( o.containment );
541
+ ce = c[ 0 ];
542
+
543
+ if ( !ce ) {
544
+ return;
545
+ }
546
+
547
+ isUserScrollable = /(scroll|auto)/.test( c.css( "overflow" ) );
548
+
549
+ this.containment = [
550
+ ( parseInt( c.css( "borderLeftWidth" ), 10 ) || 0 ) +
551
+ ( parseInt( c.css( "paddingLeft" ), 10 ) || 0 ),
552
+ ( parseInt( c.css( "borderTopWidth" ), 10 ) || 0 ) +
553
+ ( parseInt( c.css( "paddingTop" ), 10 ) || 0 ),
554
+ ( isUserScrollable ? Math.max( ce.scrollWidth, ce.offsetWidth ) : ce.offsetWidth ) -
555
+ ( parseInt( c.css( "borderRightWidth" ), 10 ) || 0 ) -
556
+ ( parseInt( c.css( "paddingRight" ), 10 ) || 0 ) -
557
+ this.helperProportions.width -
558
+ this.margins.left -
559
+ this.margins.right,
560
+ ( isUserScrollable ? Math.max( ce.scrollHeight, ce.offsetHeight ) : ce.offsetHeight ) -
561
+ ( parseInt( c.css( "borderBottomWidth" ), 10 ) || 0 ) -
562
+ ( parseInt( c.css( "paddingBottom" ), 10 ) || 0 ) -
563
+ this.helperProportions.height -
564
+ this.margins.top -
565
+ this.margins.bottom
566
+ ];
567
+ this.relativeContainer = c;
568
+ },
569
+
570
+ _convertPositionTo: function( d, pos ) {
571
+
572
+ if ( !pos ) {
573
+ pos = this.position;
574
+ }
575
+
576
+ var mod = d === "absolute" ? 1 : -1,
577
+ scrollIsRootNode = this._isRootNode( this.scrollParent[ 0 ] );
578
+
579
+ return {
580
+ top: (
581
+
582
+ // The absolute mouse position
583
+ pos.top +
584
+
585
+ // Only for relative positioned nodes: Relative offset from element to offset parent
586
+ this.offset.relative.top * mod +
587
+
588
+ // The offsetParent's offset without borders (offset + border)
589
+ this.offset.parent.top * mod -
590
+ ( ( this.cssPosition === "fixed" ?
591
+ -this.offset.scroll.top :
592
+ ( scrollIsRootNode ? 0 : this.offset.scroll.top ) ) * mod )
593
+ ),
594
+ left: (
595
+
596
+ // The absolute mouse position
597
+ pos.left +
598
+
599
+ // Only for relative positioned nodes: Relative offset from element to offset parent
600
+ this.offset.relative.left * mod +
601
+
602
+ // The offsetParent's offset without borders (offset + border)
603
+ this.offset.parent.left * mod -
604
+ ( ( this.cssPosition === "fixed" ?
605
+ -this.offset.scroll.left :
606
+ ( scrollIsRootNode ? 0 : this.offset.scroll.left ) ) * mod )
607
+ )
608
+ };
609
+
610
+ },
611
+
612
+ _generatePosition: function( event, constrainPosition ) {
613
+
614
+ var containment, co, top, left,
615
+ o = this.options,
616
+ scrollIsRootNode = this._isRootNode( this.scrollParent[ 0 ] ),
617
+ pageX = event.pageX,
618
+ pageY = event.pageY;
619
+
620
+ // Cache the scroll
621
+ if ( !scrollIsRootNode || !this.offset.scroll ) {
622
+ this.offset.scroll = {
623
+ top: this.scrollParent.scrollTop(),
624
+ left: this.scrollParent.scrollLeft()
625
+ };
626
+ }
627
+
628
+ /*
629
+ * - Position constraining -
630
+ * Constrain the position to a mix of grid, containment.
631
+ */
632
+
633
+ // If we are not dragging yet, we won't check for options
634
+ if ( constrainPosition ) {
635
+ if ( this.containment ) {
636
+ if ( this.relativeContainer ) {
637
+ co = this.relativeContainer.offset();
638
+ containment = [
639
+ this.containment[ 0 ] + co.left,
640
+ this.containment[ 1 ] + co.top,
641
+ this.containment[ 2 ] + co.left,
642
+ this.containment[ 3 ] + co.top
643
+ ];
644
+ } else {
645
+ containment = this.containment;
646
+ }
647
+
648
+ if ( event.pageX - this.offset.click.left < containment[ 0 ] ) {
649
+ pageX = containment[ 0 ] + this.offset.click.left;
650
+ }
651
+ if ( event.pageY - this.offset.click.top < containment[ 1 ] ) {
652
+ pageY = containment[ 1 ] + this.offset.click.top;
653
+ }
654
+ if ( event.pageX - this.offset.click.left > containment[ 2 ] ) {
655
+ pageX = containment[ 2 ] + this.offset.click.left;
656
+ }
657
+ if ( event.pageY - this.offset.click.top > containment[ 3 ] ) {
658
+ pageY = containment[ 3 ] + this.offset.click.top;
659
+ }
660
+ }
661
+
662
+ if ( o.grid ) {
663
+
664
+ //Check for grid elements set to 0 to prevent divide by 0 error causing invalid
665
+ // argument errors in IE (see ticket #6950)
666
+ top = o.grid[ 1 ] ? this.originalPageY + Math.round( ( pageY -
667
+ this.originalPageY ) / o.grid[ 1 ] ) * o.grid[ 1 ] : this.originalPageY;
668
+ pageY = containment ? ( ( top - this.offset.click.top >= containment[ 1 ] ||
669
+ top - this.offset.click.top > containment[ 3 ] ) ?
670
+ top :
671
+ ( ( top - this.offset.click.top >= containment[ 1 ] ) ?
672
+ top - o.grid[ 1 ] : top + o.grid[ 1 ] ) ) : top;
673
+
674
+ left = o.grid[ 0 ] ? this.originalPageX +
675
+ Math.round( ( pageX - this.originalPageX ) / o.grid[ 0 ] ) * o.grid[ 0 ] :
676
+ this.originalPageX;
677
+ pageX = containment ? ( ( left - this.offset.click.left >= containment[ 0 ] ||
678
+ left - this.offset.click.left > containment[ 2 ] ) ?
679
+ left :
680
+ ( ( left - this.offset.click.left >= containment[ 0 ] ) ?
681
+ left - o.grid[ 0 ] : left + o.grid[ 0 ] ) ) : left;
682
+ }
683
+
684
+ if ( o.axis === "y" ) {
685
+ pageX = this.originalPageX;
686
+ }
687
+
688
+ if ( o.axis === "x" ) {
689
+ pageY = this.originalPageY;
690
+ }
691
+ }
692
+
693
+ return {
694
+ top: (
695
+
696
+ // The absolute mouse position
697
+ pageY -
698
+
699
+ // Click offset (relative to the element)
700
+ this.offset.click.top -
701
+
702
+ // Only for relative positioned nodes: Relative offset from element to offset parent
703
+ this.offset.relative.top -
704
+
705
+ // The offsetParent's offset without borders (offset + border)
706
+ this.offset.parent.top +
707
+ ( this.cssPosition === "fixed" ?
708
+ -this.offset.scroll.top :
709
+ ( scrollIsRootNode ? 0 : this.offset.scroll.top ) )
710
+ ),
711
+ left: (
712
+
713
+ // The absolute mouse position
714
+ pageX -
715
+
716
+ // Click offset (relative to the element)
717
+ this.offset.click.left -
718
+
719
+ // Only for relative positioned nodes: Relative offset from element to offset parent
720
+ this.offset.relative.left -
721
+
722
+ // The offsetParent's offset without borders (offset + border)
723
+ this.offset.parent.left +
724
+ ( this.cssPosition === "fixed" ?
725
+ -this.offset.scroll.left :
726
+ ( scrollIsRootNode ? 0 : this.offset.scroll.left ) )
727
+ )
728
+ };
729
+
730
+ },
731
+
732
+ _clear: function() {
733
+ this._removeClass( this.helper, "ui-draggable-dragging" );
734
+ if ( this.helper[ 0 ] !== this.element[ 0 ] && !this.cancelHelperRemoval ) {
735
+ this.helper.remove();
736
+ }
737
+ this.helper = null;
738
+ this.cancelHelperRemoval = false;
739
+ if ( this.destroyOnClear ) {
740
+ this.destroy();
741
+ }
742
+ },
743
+
744
+ // From now on bulk stuff - mainly helpers
745
+
746
+ _trigger: function( type, event, ui ) {
747
+ ui = ui || this._uiHash();
748
+ $.ui.plugin.call( this, type, [ event, ui, this ], true );
749
+
750
+ // Absolute position and offset (see #6884 ) have to be recalculated after plugins
751
+ if ( /^(drag|start|stop)/.test( type ) ) {
752
+ this.positionAbs = this._convertPositionTo( "absolute" );
753
+ ui.offset = this.positionAbs;
754
+ }
755
+ return $.Widget.prototype._trigger.call( this, type, event, ui );
756
+ },
757
+
758
+ plugins: {},
759
+
760
+ _uiHash: function() {
761
+ return {
762
+ helper: this.helper,
763
+ position: this.position,
764
+ originalPosition: this.originalPosition,
765
+ offset: this.positionAbs
766
+ };
767
+ }
768
+
769
+ } );
770
+
771
+ $.ui.plugin.add( "draggable", "connectToSortable", {
772
+ start: function( event, ui, draggable ) {
773
+ var uiSortable = $.extend( {}, ui, {
774
+ item: draggable.element
775
+ } );
776
+
777
+ draggable.sortables = [];
778
+ $( draggable.options.connectToSortable ).each( function() {
779
+ var sortable = $( this ).sortable( "instance" );
780
+
781
+ if ( sortable && !sortable.options.disabled ) {
782
+ draggable.sortables.push( sortable );
783
+
784
+ // RefreshPositions is called at drag start to refresh the containerCache
785
+ // which is used in drag. This ensures it's initialized and synchronized
786
+ // with any changes that might have happened on the page since initialization.
787
+ sortable.refreshPositions();
788
+ sortable._trigger( "activate", event, uiSortable );
789
+ }
790
+ } );
791
+ },
792
+ stop: function( event, ui, draggable ) {
793
+ var uiSortable = $.extend( {}, ui, {
794
+ item: draggable.element
795
+ } );
796
+
797
+ draggable.cancelHelperRemoval = false;
798
+
799
+ $.each( draggable.sortables, function() {
800
+ var sortable = this;
801
+
802
+ if ( sortable.isOver ) {
803
+ sortable.isOver = 0;
804
+
805
+ // Allow this sortable to handle removing the helper
806
+ draggable.cancelHelperRemoval = true;
807
+ sortable.cancelHelperRemoval = false;
808
+
809
+ // Use _storedCSS To restore properties in the sortable,
810
+ // as this also handles revert (#9675) since the draggable
811
+ // may have modified them in unexpected ways (#8809)
812
+ sortable._storedCSS = {
813
+ position: sortable.placeholder.css( "position" ),
814
+ top: sortable.placeholder.css( "top" ),
815
+ left: sortable.placeholder.css( "left" )
816
+ };
817
+
818
+ sortable._mouseStop( event );
819
+
820
+ // Once drag has ended, the sortable should return to using
821
+ // its original helper, not the shared helper from draggable
822
+ sortable.options.helper = sortable.options._helper;
823
+ } else {
824
+
825
+ // Prevent this Sortable from removing the helper.
826
+ // However, don't set the draggable to remove the helper
827
+ // either as another connected Sortable may yet handle the removal.
828
+ sortable.cancelHelperRemoval = true;
829
+
830
+ sortable._trigger( "deactivate", event, uiSortable );
831
+ }
832
+ } );
833
+ },
834
+ drag: function( event, ui, draggable ) {
835
+ $.each( draggable.sortables, function() {
836
+ var innermostIntersecting = false,
837
+ sortable = this;
838
+
839
+ // Copy over variables that sortable's _intersectsWith uses
840
+ sortable.positionAbs = draggable.positionAbs;
841
+ sortable.helperProportions = draggable.helperProportions;
842
+ sortable.offset.click = draggable.offset.click;
843
+
844
+ if ( sortable._intersectsWith( sortable.containerCache ) ) {
845
+ innermostIntersecting = true;
846
+
847
+ $.each( draggable.sortables, function() {
848
+
849
+ // Copy over variables that sortable's _intersectsWith uses
850
+ this.positionAbs = draggable.positionAbs;
851
+ this.helperProportions = draggable.helperProportions;
852
+ this.offset.click = draggable.offset.click;
853
+
854
+ if ( this !== sortable &&
855
+ this._intersectsWith( this.containerCache ) &&
856
+ $.contains( sortable.element[ 0 ], this.element[ 0 ] ) ) {
857
+ innermostIntersecting = false;
858
+ }
859
+
860
+ return innermostIntersecting;
861
+ } );
862
+ }
863
+
864
+ if ( innermostIntersecting ) {
865
+
866
+ // If it intersects, we use a little isOver variable and set it once,
867
+ // so that the move-in stuff gets fired only once.
868
+ if ( !sortable.isOver ) {
869
+ sortable.isOver = 1;
870
+
871
+ // Store draggable's parent in case we need to reappend to it later.
872
+ draggable._parent = ui.helper.parent();
873
+
874
+ sortable.currentItem = ui.helper
875
+ .appendTo( sortable.element )
876
+ .data( "ui-sortable-item", true );
877
+
878
+ // Store helper option to later restore it
879
+ sortable.options._helper = sortable.options.helper;
880
+
881
+ sortable.options.helper = function() {
882
+ return ui.helper[ 0 ];
883
+ };
884
+
885
+ // Fire the start events of the sortable with our passed browser event,
886
+ // and our own helper (so it doesn't create a new one)
887
+ event.target = sortable.currentItem[ 0 ];
888
+ sortable._mouseCapture( event, true );
889
+ sortable._mouseStart( event, true, true );
890
+
891
+ // Because the browser event is way off the new appended portlet,
892
+ // modify necessary variables to reflect the changes
893
+ sortable.offset.click.top = draggable.offset.click.top;
894
+ sortable.offset.click.left = draggable.offset.click.left;
895
+ sortable.offset.parent.left -= draggable.offset.parent.left -
896
+ sortable.offset.parent.left;
897
+ sortable.offset.parent.top -= draggable.offset.parent.top -
898
+ sortable.offset.parent.top;
899
+
900
+ draggable._trigger( "toSortable", event );
901
+
902
+ // Inform draggable that the helper is in a valid drop zone,
903
+ // used solely in the revert option to handle "valid/invalid".
904
+ draggable.dropped = sortable.element;
905
+
906
+ // Need to refreshPositions of all sortables in the case that
907
+ // adding to one sortable changes the location of the other sortables (#9675)
908
+ $.each( draggable.sortables, function() {
909
+ this.refreshPositions();
910
+ } );
911
+
912
+ // Hack so receive/update callbacks work (mostly)
913
+ draggable.currentItem = draggable.element;
914
+ sortable.fromOutside = draggable;
915
+ }
916
+
917
+ if ( sortable.currentItem ) {
918
+ sortable._mouseDrag( event );
919
+
920
+ // Copy the sortable's position because the draggable's can potentially reflect
921
+ // a relative position, while sortable is always absolute, which the dragged
922
+ // element has now become. (#8809)
923
+ ui.position = sortable.position;
924
+ }
925
+ } else {
926
+
927
+ // If it doesn't intersect with the sortable, and it intersected before,
928
+ // we fake the drag stop of the sortable, but make sure it doesn't remove
929
+ // the helper by using cancelHelperRemoval.
930
+ if ( sortable.isOver ) {
931
+
932
+ sortable.isOver = 0;
933
+ sortable.cancelHelperRemoval = true;
934
+
935
+ // Calling sortable's mouseStop would trigger a revert,
936
+ // so revert must be temporarily false until after mouseStop is called.
937
+ sortable.options._revert = sortable.options.revert;
938
+ sortable.options.revert = false;
939
+
940
+ sortable._trigger( "out", event, sortable._uiHash( sortable ) );
941
+ sortable._mouseStop( event, true );
942
+
943
+ // Restore sortable behaviors that were modfied
944
+ // when the draggable entered the sortable area (#9481)
945
+ sortable.options.revert = sortable.options._revert;
946
+ sortable.options.helper = sortable.options._helper;
947
+
948
+ if ( sortable.placeholder ) {
949
+ sortable.placeholder.remove();
950
+ }
951
+
952
+ // Restore and recalculate the draggable's offset considering the sortable
953
+ // may have modified them in unexpected ways. (#8809, #10669)
954
+ ui.helper.appendTo( draggable._parent );
955
+ draggable._refreshOffsets( event );
956
+ ui.position = draggable._generatePosition( event, true );
957
+
958
+ draggable._trigger( "fromSortable", event );
959
+
960
+ // Inform draggable that the helper is no longer in a valid drop zone
961
+ draggable.dropped = false;
962
+
963
+ // Need to refreshPositions of all sortables just in case removing
964
+ // from one sortable changes the location of other sortables (#9675)
965
+ $.each( draggable.sortables, function() {
966
+ this.refreshPositions();
967
+ } );
968
+ }
969
+ }
970
+ } );
971
+ }
972
+ } );
973
+
974
+ $.ui.plugin.add( "draggable", "cursor", {
975
+ start: function( event, ui, instance ) {
976
+ var t = $( "body" ),
977
+ o = instance.options;
978
+
979
+ if ( t.css( "cursor" ) ) {
980
+ o._cursor = t.css( "cursor" );
981
+ }
982
+ t.css( "cursor", o.cursor );
983
+ },
984
+ stop: function( event, ui, instance ) {
985
+ var o = instance.options;
986
+ if ( o._cursor ) {
987
+ $( "body" ).css( "cursor", o._cursor );
988
+ }
989
+ }
990
+ } );
991
+
992
+ $.ui.plugin.add( "draggable", "opacity", {
993
+ start: function( event, ui, instance ) {
994
+ var t = $( ui.helper ),
995
+ o = instance.options;
996
+ if ( t.css( "opacity" ) ) {
997
+ o._opacity = t.css( "opacity" );
998
+ }
999
+ t.css( "opacity", o.opacity );
1000
+ },
1001
+ stop: function( event, ui, instance ) {
1002
+ var o = instance.options;
1003
+ if ( o._opacity ) {
1004
+ $( ui.helper ).css( "opacity", o._opacity );
1005
+ }
1006
+ }
1007
+ } );
1008
+
1009
+ $.ui.plugin.add( "draggable", "scroll", {
1010
+ start: function( event, ui, i ) {
1011
+ if ( !i.scrollParentNotHidden ) {
1012
+ i.scrollParentNotHidden = i.helper.scrollParent( false );
1013
+ }
1014
+
1015
+ if ( i.scrollParentNotHidden[ 0 ] !== i.document[ 0 ] &&
1016
+ i.scrollParentNotHidden[ 0 ].tagName !== "HTML" ) {
1017
+ i.overflowOffset = i.scrollParentNotHidden.offset();
1018
+ }
1019
+ },
1020
+ drag: function( event, ui, i ) {
1021
+
1022
+ var o = i.options,
1023
+ scrolled = false,
1024
+ scrollParent = i.scrollParentNotHidden[ 0 ],
1025
+ document = i.document[ 0 ];
1026
+
1027
+ if ( scrollParent !== document && scrollParent.tagName !== "HTML" ) {
1028
+ if ( !o.axis || o.axis !== "x" ) {
1029
+ if ( ( i.overflowOffset.top + scrollParent.offsetHeight ) - event.pageY <
1030
+ o.scrollSensitivity ) {
1031
+ scrollParent.scrollTop = scrolled = scrollParent.scrollTop + o.scrollSpeed;
1032
+ } else if ( event.pageY - i.overflowOffset.top < o.scrollSensitivity ) {
1033
+ scrollParent.scrollTop = scrolled = scrollParent.scrollTop - o.scrollSpeed;
1034
+ }
1035
+ }
1036
+
1037
+ if ( !o.axis || o.axis !== "y" ) {
1038
+ if ( ( i.overflowOffset.left + scrollParent.offsetWidth ) - event.pageX <
1039
+ o.scrollSensitivity ) {
1040
+ scrollParent.scrollLeft = scrolled = scrollParent.scrollLeft + o.scrollSpeed;
1041
+ } else if ( event.pageX - i.overflowOffset.left < o.scrollSensitivity ) {
1042
+ scrollParent.scrollLeft = scrolled = scrollParent.scrollLeft - o.scrollSpeed;
1043
+ }
1044
+ }
1045
+
1046
+ } else {
1047
+
1048
+ if ( !o.axis || o.axis !== "x" ) {
1049
+ if ( event.pageY - $( document ).scrollTop() < o.scrollSensitivity ) {
1050
+ scrolled = $( document ).scrollTop( $( document ).scrollTop() - o.scrollSpeed );
1051
+ } else if ( $( window ).height() - ( event.pageY - $( document ).scrollTop() ) <
1052
+ o.scrollSensitivity ) {
1053
+ scrolled = $( document ).scrollTop( $( document ).scrollTop() + o.scrollSpeed );
1054
+ }
1055
+ }
1056
+
1057
+ if ( !o.axis || o.axis !== "y" ) {
1058
+ if ( event.pageX - $( document ).scrollLeft() < o.scrollSensitivity ) {
1059
+ scrolled = $( document ).scrollLeft(
1060
+ $( document ).scrollLeft() - o.scrollSpeed
1061
+ );
1062
+ } else if ( $( window ).width() - ( event.pageX - $( document ).scrollLeft() ) <
1063
+ o.scrollSensitivity ) {
1064
+ scrolled = $( document ).scrollLeft(
1065
+ $( document ).scrollLeft() + o.scrollSpeed
1066
+ );
1067
+ }
1068
+ }
1069
+
1070
+ }
1071
+
1072
+ if ( scrolled !== false && $.ui.ddmanager && !o.dropBehaviour ) {
1073
+ $.ui.ddmanager.prepareOffsets( i, event );
1074
+ }
1075
+
1076
+ }
1077
+ } );
1078
+
1079
+ $.ui.plugin.add( "draggable", "snap", {
1080
+ start: function( event, ui, i ) {
1081
+
1082
+ var o = i.options;
1083
+
1084
+ i.snapElements = [];
1085
+
1086
+ $( o.snap.constructor !== String ? ( o.snap.items || ":data(ui-draggable)" ) : o.snap )
1087
+ .each( function() {
1088
+ var $t = $( this ),
1089
+ $o = $t.offset();
1090
+ if ( this !== i.element[ 0 ] ) {
1091
+ i.snapElements.push( {
1092
+ item: this,
1093
+ width: $t.outerWidth(), height: $t.outerHeight(),
1094
+ top: $o.top, left: $o.left
1095
+ } );
1096
+ }
1097
+ } );
1098
+
1099
+ },
1100
+ drag: function( event, ui, inst ) {
1101
+
1102
+ var ts, bs, ls, rs, l, r, t, b, i, first,
1103
+ o = inst.options,
1104
+ d = o.snapTolerance,
1105
+ x1 = ui.offset.left, x2 = x1 + inst.helperProportions.width,
1106
+ y1 = ui.offset.top, y2 = y1 + inst.helperProportions.height;
1107
+
1108
+ for ( i = inst.snapElements.length - 1; i >= 0; i-- ) {
1109
+
1110
+ l = inst.snapElements[ i ].left - inst.margins.left;
1111
+ r = l + inst.snapElements[ i ].width;
1112
+ t = inst.snapElements[ i ].top - inst.margins.top;
1113
+ b = t + inst.snapElements[ i ].height;
1114
+
1115
+ if ( x2 < l - d || x1 > r + d || y2 < t - d || y1 > b + d ||
1116
+ !$.contains( inst.snapElements[ i ].item.ownerDocument,
1117
+ inst.snapElements[ i ].item ) ) {
1118
+ if ( inst.snapElements[ i ].snapping ) {
1119
+ ( inst.options.snap.release &&
1120
+ inst.options.snap.release.call(
1121
+ inst.element,
1122
+ event,
1123
+ $.extend( inst._uiHash(), { snapItem: inst.snapElements[ i ].item } )
1124
+ ) );
1125
+ }
1126
+ inst.snapElements[ i ].snapping = false;
1127
+ continue;
1128
+ }
1129
+
1130
+ if ( o.snapMode !== "inner" ) {
1131
+ ts = Math.abs( t - y2 ) <= d;
1132
+ bs = Math.abs( b - y1 ) <= d;
1133
+ ls = Math.abs( l - x2 ) <= d;
1134
+ rs = Math.abs( r - x1 ) <= d;
1135
+ if ( ts ) {
1136
+ ui.position.top = inst._convertPositionTo( "relative", {
1137
+ top: t - inst.helperProportions.height,
1138
+ left: 0
1139
+ } ).top;
1140
+ }
1141
+ if ( bs ) {
1142
+ ui.position.top = inst._convertPositionTo( "relative", {
1143
+ top: b,
1144
+ left: 0
1145
+ } ).top;
1146
+ }
1147
+ if ( ls ) {
1148
+ ui.position.left = inst._convertPositionTo( "relative", {
1149
+ top: 0,
1150
+ left: l - inst.helperProportions.width
1151
+ } ).left;
1152
+ }
1153
+ if ( rs ) {
1154
+ ui.position.left = inst._convertPositionTo( "relative", {
1155
+ top: 0,
1156
+ left: r
1157
+ } ).left;
1158
+ }
1159
+ }
1160
+
1161
+ first = ( ts || bs || ls || rs );
1162
+
1163
+ if ( o.snapMode !== "outer" ) {
1164
+ ts = Math.abs( t - y1 ) <= d;
1165
+ bs = Math.abs( b - y2 ) <= d;
1166
+ ls = Math.abs( l - x1 ) <= d;
1167
+ rs = Math.abs( r - x2 ) <= d;
1168
+ if ( ts ) {
1169
+ ui.position.top = inst._convertPositionTo( "relative", {
1170
+ top: t,
1171
+ left: 0
1172
+ } ).top;
1173
+ }
1174
+ if ( bs ) {
1175
+ ui.position.top = inst._convertPositionTo( "relative", {
1176
+ top: b - inst.helperProportions.height,
1177
+ left: 0
1178
+ } ).top;
1179
+ }
1180
+ if ( ls ) {
1181
+ ui.position.left = inst._convertPositionTo( "relative", {
1182
+ top: 0,
1183
+ left: l
1184
+ } ).left;
1185
+ }
1186
+ if ( rs ) {
1187
+ ui.position.left = inst._convertPositionTo( "relative", {
1188
+ top: 0,
1189
+ left: r - inst.helperProportions.width
1190
+ } ).left;
1191
+ }
1192
+ }
1193
+
1194
+ if ( !inst.snapElements[ i ].snapping && ( ts || bs || ls || rs || first ) ) {
1195
+ ( inst.options.snap.snap &&
1196
+ inst.options.snap.snap.call(
1197
+ inst.element,
1198
+ event,
1199
+ $.extend( inst._uiHash(), {
1200
+ snapItem: inst.snapElements[ i ].item
1201
+ } ) ) );
1202
+ }
1203
+ inst.snapElements[ i ].snapping = ( ts || bs || ls || rs || first );
1204
+
1205
+ }
1206
+
1207
+ }
1208
+ } );
1209
+
1210
+ $.ui.plugin.add( "draggable", "stack", {
1211
+ start: function( event, ui, instance ) {
1212
+ var min,
1213
+ o = instance.options,
1214
+ group = $.makeArray( $( o.stack ) ).sort( function( a, b ) {
1215
+ return ( parseInt( $( a ).css( "zIndex" ), 10 ) || 0 ) -
1216
+ ( parseInt( $( b ).css( "zIndex" ), 10 ) || 0 );
1217
+ } );
1218
+
1219
+ if ( !group.length ) { return; }
1220
+
1221
+ min = parseInt( $( group[ 0 ] ).css( "zIndex" ), 10 ) || 0;
1222
+ $( group ).each( function( i ) {
1223
+ $( this ).css( "zIndex", min + i );
1224
+ } );
1225
+ this.css( "zIndex", ( min + group.length ) );
1226
+ }
1227
+ } );
1228
+
1229
+ $.ui.plugin.add( "draggable", "zIndex", {
1230
+ start: function( event, ui, instance ) {
1231
+ var t = $( ui.helper ),
1232
+ o = instance.options;
1233
+
1234
+ if ( t.css( "zIndex" ) ) {
1235
+ o._zIndex = t.css( "zIndex" );
1236
+ }
1237
+ t.css( "zIndex", o.zIndex );
1238
+ },
1239
+ stop: function( event, ui, instance ) {
1240
+ var o = instance.options;
1241
+
1242
+ if ( o._zIndex ) {
1243
+ $( ui.helper ).css( "zIndex", o._zIndex );
1244
+ }
1245
+ }
1246
+ } );
1247
+
1248
+ return $.ui.draggable;
1249
+
1250
+ } ) );