yui-rails-asset 2.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (398) hide show
  1. data/LICENSE +21 -0
  2. data/README +17 -0
  3. data/lib/yui/rails.rb +29 -0
  4. data/lib/yui/rails/engine.rb +10 -0
  5. data/lib/yui/rails/version.rb +6 -0
  6. data/vendor/assets/javascripts/yui-2.8.1/build/animation/animation-debug.js +1396 -0
  7. data/vendor/assets/javascripts/yui-2.8.1/build/animation/animation-min.js +23 -0
  8. data/vendor/assets/javascripts/yui-2.8.1/build/animation/animation.js +1392 -0
  9. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/ajax-loader.gif +0 -0
  10. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/asc.gif +0 -0
  11. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/autocomplete.css +7 -0
  12. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/back-h.png +0 -0
  13. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/back-v.png +0 -0
  14. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/bar-h.png +0 -0
  15. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/bar-v.png +0 -0
  16. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/bg-h.gif +0 -0
  17. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/bg-v.gif +0 -0
  18. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/blankimage.png +0 -0
  19. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/button.css +7 -0
  20. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/calendar.css +8 -0
  21. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/carousel.css +7 -0
  22. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/check0.gif +0 -0
  23. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/check1.gif +0 -0
  24. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/check2.gif +0 -0
  25. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/colorpicker.css +7 -0
  26. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/container.css +7 -0
  27. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/datatable.css +8 -0
  28. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/desc.gif +0 -0
  29. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/dt-arrow-dn.png +0 -0
  30. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/dt-arrow-up.png +0 -0
  31. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/editor-knob.gif +0 -0
  32. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/editor-sprite-active.gif +0 -0
  33. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/editor-sprite.gif +0 -0
  34. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/editor.css +10 -0
  35. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/header_background.png +0 -0
  36. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/hue_bg.png +0 -0
  37. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/imagecropper.css +7 -0
  38. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/layout.css +7 -0
  39. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/layout_sprite.png +0 -0
  40. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/loading.gif +0 -0
  41. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/logger.css +7 -0
  42. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menu-button-arrow-disabled.png +0 -0
  43. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menu-button-arrow.png +0 -0
  44. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menu.css +7 -0
  45. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menubaritem_submenuindicator.png +0 -0
  46. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menubaritem_submenuindicator_disabled.png +0 -0
  47. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menuitem_checkbox.png +0 -0
  48. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menuitem_checkbox_disabled.png +0 -0
  49. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menuitem_submenuindicator.png +0 -0
  50. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menuitem_submenuindicator_disabled.png +0 -0
  51. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/paginator.css +7 -0
  52. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/picker_mask.png +0 -0
  53. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/profilerviewer.css +7 -0
  54. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/progressbar.css +7 -0
  55. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/resize.css +7 -0
  56. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/simpleeditor.css +10 -0
  57. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/skin.css +36 -0
  58. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/slider.css +7 -0
  59. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/split-button-arrow-active.png +0 -0
  60. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/split-button-arrow-disabled.png +0 -0
  61. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/split-button-arrow-focus.png +0 -0
  62. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/split-button-arrow-hover.png +0 -0
  63. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/split-button-arrow.png +0 -0
  64. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/sprite.png +0 -0
  65. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/sprite.psd +0 -0
  66. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/tabview.css +8 -0
  67. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/treeview-loading.gif +0 -0
  68. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/treeview-sprite.gif +0 -0
  69. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/treeview.css +7 -0
  70. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/wait.gif +0 -0
  71. data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/yuitest.css +7 -0
  72. data/vendor/assets/javascripts/yui-2.8.1/build/autocomplete/assets/autocomplete-core.css +7 -0
  73. data/vendor/assets/javascripts/yui-2.8.1/build/autocomplete/assets/skins/sam/autocomplete-skin.css +57 -0
  74. data/vendor/assets/javascripts/yui-2.8.1/build/autocomplete/assets/skins/sam/autocomplete.css +7 -0
  75. data/vendor/assets/javascripts/yui-2.8.1/build/autocomplete/autocomplete-debug.js +3009 -0
  76. data/vendor/assets/javascripts/yui-2.8.1/build/autocomplete/autocomplete-min.js +12 -0
  77. data/vendor/assets/javascripts/yui-2.8.1/build/autocomplete/autocomplete.js +2966 -0
  78. data/vendor/assets/javascripts/yui-2.8.1/build/base/base-min.css +7 -0
  79. data/vendor/assets/javascripts/yui-2.8.1/build/base/base.css +131 -0
  80. data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/button-core.css +44 -0
  81. data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/button-skin.css +219 -0
  82. data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/button.css +7 -0
  83. data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/menu-button-arrow-disabled.png +0 -0
  84. data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/menu-button-arrow.png +0 -0
  85. data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/split-button-arrow-active.png +0 -0
  86. data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/split-button-arrow-disabled.png +0 -0
  87. data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/split-button-arrow-focus.png +0 -0
  88. data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/split-button-arrow-hover.png +0 -0
  89. data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/split-button-arrow.png +0 -0
  90. data/vendor/assets/javascripts/yui-2.8.1/build/button/button-debug.js +4694 -0
  91. data/vendor/assets/javascripts/yui-2.8.1/build/button/button-min.js +11 -0
  92. data/vendor/assets/javascripts/yui-2.8.1/build/button/button.js +4633 -0
  93. data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/calendar-core.css +132 -0
  94. data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/calendar.css +320 -0
  95. data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/calgrad.png +0 -0
  96. data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/callt.gif +0 -0
  97. data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/calrt.gif +0 -0
  98. data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/calx.gif +0 -0
  99. data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/skins/sam/calendar-skin.css +361 -0
  100. data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/skins/sam/calendar.css +8 -0
  101. data/vendor/assets/javascripts/yui-2.8.1/build/calendar/calendar-debug.js +7324 -0
  102. data/vendor/assets/javascripts/yui-2.8.1/build/calendar/calendar-min.js +18 -0
  103. data/vendor/assets/javascripts/yui-2.8.1/build/calendar/calendar.js +7294 -0
  104. data/vendor/assets/javascripts/yui-2.8.1/build/carousel/assets/ajax-loader.gif +0 -0
  105. data/vendor/assets/javascripts/yui-2.8.1/build/carousel/assets/carousel-core.css +88 -0
  106. data/vendor/assets/javascripts/yui-2.8.1/build/carousel/assets/skins/sam/ajax-loader.gif +0 -0
  107. data/vendor/assets/javascripts/yui-2.8.1/build/carousel/assets/skins/sam/carousel-skin.css +142 -0
  108. data/vendor/assets/javascripts/yui-2.8.1/build/carousel/assets/skins/sam/carousel.css +7 -0
  109. data/vendor/assets/javascripts/yui-2.8.1/build/carousel/carousel-debug.js +4390 -0
  110. data/vendor/assets/javascripts/yui-2.8.1/build/carousel/carousel-min.js +12 -0
  111. data/vendor/assets/javascripts/yui-2.8.1/build/carousel/carousel.js +4349 -0
  112. data/vendor/assets/javascripts/yui-2.8.1/build/charts/assets/charts.swf +0 -0
  113. data/vendor/assets/javascripts/yui-2.8.1/build/charts/charts-debug.js +2061 -0
  114. data/vendor/assets/javascripts/yui-2.8.1/build/charts/charts-min.js +9 -0
  115. data/vendor/assets/javascripts/yui-2.8.1/build/charts/charts.js +2060 -0
  116. data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/colorpicker-core.css +6 -0
  117. data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/hue_thumb.png +0 -0
  118. data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/picker_mask.png +0 -0
  119. data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/picker_thumb.png +0 -0
  120. data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/skins/sam/colorpicker-skin.css +105 -0
  121. data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/skins/sam/colorpicker.css +7 -0
  122. data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/skins/sam/hue_bg.png +0 -0
  123. data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/skins/sam/picker_mask.png +0 -0
  124. data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/colorpicker-debug.js +1783 -0
  125. data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/colorpicker-min.js +9 -0
  126. data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/colorpicker.js +1763 -0
  127. data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection-debug.js +1576 -0
  128. data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection-min.js +9 -0
  129. data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection.js +1546 -0
  130. data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection.swf +0 -0
  131. data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection_core-debug.js +980 -0
  132. data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection_core-min.js +8 -0
  133. data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection_core.js +957 -0
  134. data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/alrt16_1.gif +0 -0
  135. data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/blck16_1.gif +0 -0
  136. data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/close12_1.gif +0 -0
  137. data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/container-core.css +176 -0
  138. data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/container.css +324 -0
  139. data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/hlp16_1.gif +0 -0
  140. data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/info16_1.gif +0 -0
  141. data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/skins/sam/container-skin.css +242 -0
  142. data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/skins/sam/container.css +7 -0
  143. data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/tip16_1.gif +0 -0
  144. data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/warn16_1.gif +0 -0
  145. data/vendor/assets/javascripts/yui-2.8.1/build/container/container-debug.js +9076 -0
  146. data/vendor/assets/javascripts/yui-2.8.1/build/container/container-min.js +19 -0
  147. data/vendor/assets/javascripts/yui-2.8.1/build/container/container.js +9052 -0
  148. data/vendor/assets/javascripts/yui-2.8.1/build/container/container_core-debug.js +5136 -0
  149. data/vendor/assets/javascripts/yui-2.8.1/build/container/container_core-min.js +14 -0
  150. data/vendor/assets/javascripts/yui-2.8.1/build/container/container_core.js +5126 -0
  151. data/vendor/assets/javascripts/yui-2.8.1/build/cookie/cookie-debug.js +482 -0
  152. data/vendor/assets/javascripts/yui-2.8.1/build/cookie/cookie-min.js +7 -0
  153. data/vendor/assets/javascripts/yui-2.8.1/build/cookie/cookie.js +482 -0
  154. data/vendor/assets/javascripts/yui-2.8.1/build/datasource/datasource-debug.js +3067 -0
  155. data/vendor/assets/javascripts/yui-2.8.1/build/datasource/datasource-min.js +12 -0
  156. data/vendor/assets/javascripts/yui-2.8.1/build/datasource/datasource.js +2996 -0
  157. data/vendor/assets/javascripts/yui-2.8.1/build/datatable/assets/datatable-core.css +93 -0
  158. data/vendor/assets/javascripts/yui-2.8.1/build/datatable/assets/datatable.css +49 -0
  159. data/vendor/assets/javascripts/yui-2.8.1/build/datatable/assets/skins/sam/datatable-skin.css +240 -0
  160. data/vendor/assets/javascripts/yui-2.8.1/build/datatable/assets/skins/sam/datatable.css +8 -0
  161. data/vendor/assets/javascripts/yui-2.8.1/build/datatable/assets/skins/sam/dt-arrow-dn.png +0 -0
  162. data/vendor/assets/javascripts/yui-2.8.1/build/datatable/assets/skins/sam/dt-arrow-up.png +0 -0
  163. data/vendor/assets/javascripts/yui-2.8.1/build/datatable/datatable-debug.js +17360 -0
  164. data/vendor/assets/javascripts/yui-2.8.1/build/datatable/datatable-min.js +29 -0
  165. data/vendor/assets/javascripts/yui-2.8.1/build/datatable/datatable.js +17122 -0
  166. data/vendor/assets/javascripts/yui-2.8.1/build/datemath/datemath-debug.js +408 -0
  167. data/vendor/assets/javascripts/yui-2.8.1/build/datemath/datemath-min.js +7 -0
  168. data/vendor/assets/javascripts/yui-2.8.1/build/datemath/datemath.js +408 -0
  169. data/vendor/assets/javascripts/yui-2.8.1/build/dom/dom-debug.js +1872 -0
  170. data/vendor/assets/javascripts/yui-2.8.1/build/dom/dom-min.js +9 -0
  171. data/vendor/assets/javascripts/yui-2.8.1/build/dom/dom.js +1832 -0
  172. data/vendor/assets/javascripts/yui-2.8.1/build/dragdrop/dragdrop-debug.js +3710 -0
  173. data/vendor/assets/javascripts/yui-2.8.1/build/dragdrop/dragdrop-min.js +10 -0
  174. data/vendor/assets/javascripts/yui-2.8.1/build/dragdrop/dragdrop.js +3601 -0
  175. data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/editor-core.css +602 -0
  176. data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/simpleeditor-core.css +602 -0
  177. data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/blankimage.png +0 -0
  178. data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/editor-knob.gif +0 -0
  179. data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/editor-skin.css +711 -0
  180. data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/editor-sprite-active.gif +0 -0
  181. data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/editor-sprite.gif +0 -0
  182. data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/editor.css +10 -0
  183. data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/simpleeditor-skin.css +711 -0
  184. data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/simpleeditor.css +10 -0
  185. data/vendor/assets/javascripts/yui-2.8.1/build/editor/editor-debug.js +9557 -0
  186. data/vendor/assets/javascripts/yui-2.8.1/build/editor/editor-min.js +30 -0
  187. data/vendor/assets/javascripts/yui-2.8.1/build/editor/editor.js +9447 -0
  188. data/vendor/assets/javascripts/yui-2.8.1/build/editor/simpleeditor-debug.js +7493 -0
  189. data/vendor/assets/javascripts/yui-2.8.1/build/editor/simpleeditor-min.js +24 -0
  190. data/vendor/assets/javascripts/yui-2.8.1/build/editor/simpleeditor.js +7406 -0
  191. data/vendor/assets/javascripts/yui-2.8.1/build/element-delegate/element-delegate-debug.js +141 -0
  192. data/vendor/assets/javascripts/yui-2.8.1/build/element-delegate/element-delegate-min.js +7 -0
  193. data/vendor/assets/javascripts/yui-2.8.1/build/element-delegate/element-delegate.js +138 -0
  194. data/vendor/assets/javascripts/yui-2.8.1/build/element/element-debug.js +1106 -0
  195. data/vendor/assets/javascripts/yui-2.8.1/build/element/element-min.js +8 -0
  196. data/vendor/assets/javascripts/yui-2.8.1/build/element/element.js +1090 -0
  197. data/vendor/assets/javascripts/yui-2.8.1/build/event-delegate/event-delegate-debug.js +283 -0
  198. data/vendor/assets/javascripts/yui-2.8.1/build/event-delegate/event-delegate-min.js +7 -0
  199. data/vendor/assets/javascripts/yui-2.8.1/build/event-delegate/event-delegate.js +281 -0
  200. data/vendor/assets/javascripts/yui-2.8.1/build/event-mouseenter/event-mouseenter-debug.js +219 -0
  201. data/vendor/assets/javascripts/yui-2.8.1/build/event-mouseenter/event-mouseenter-min.js +7 -0
  202. data/vendor/assets/javascripts/yui-2.8.1/build/event-mouseenter/event-mouseenter.js +219 -0
  203. data/vendor/assets/javascripts/yui-2.8.1/build/event-simulate/event-simulate-debug.js +622 -0
  204. data/vendor/assets/javascripts/yui-2.8.1/build/event-simulate/event-simulate-min.js +7 -0
  205. data/vendor/assets/javascripts/yui-2.8.1/build/event-simulate/event-simulate.js +622 -0
  206. data/vendor/assets/javascripts/yui-2.8.1/build/event/event-debug.js +2524 -0
  207. data/vendor/assets/javascripts/yui-2.8.1/build/event/event-min.js +11 -0
  208. data/vendor/assets/javascripts/yui-2.8.1/build/event/event.js +2500 -0
  209. data/vendor/assets/javascripts/yui-2.8.1/build/fonts/fonts-min.css +7 -0
  210. data/vendor/assets/javascripts/yui-2.8.1/build/fonts/fonts.css +56 -0
  211. data/vendor/assets/javascripts/yui-2.8.1/build/get/get-debug.js +773 -0
  212. data/vendor/assets/javascripts/yui-2.8.1/build/get/get-min.js +7 -0
  213. data/vendor/assets/javascripts/yui-2.8.1/build/get/get.js +755 -0
  214. data/vendor/assets/javascripts/yui-2.8.1/build/grids/grids-min.css +7 -0
  215. data/vendor/assets/javascripts/yui-2.8.1/build/grids/grids.css +467 -0
  216. data/vendor/assets/javascripts/yui-2.8.1/build/history/assets/blank.html +1 -0
  217. data/vendor/assets/javascripts/yui-2.8.1/build/history/history-debug.js +808 -0
  218. data/vendor/assets/javascripts/yui-2.8.1/build/history/history-min.js +7 -0
  219. data/vendor/assets/javascripts/yui-2.8.1/build/history/history.js +808 -0
  220. data/vendor/assets/javascripts/yui-2.8.1/build/imagecropper/assets/imagecropper-core.css +33 -0
  221. data/vendor/assets/javascripts/yui-2.8.1/build/imagecropper/assets/skins/sam/imagecropper-skin.css +16 -0
  222. data/vendor/assets/javascripts/yui-2.8.1/build/imagecropper/assets/skins/sam/imagecropper.css +7 -0
  223. data/vendor/assets/javascripts/yui-2.8.1/build/imagecropper/imagecropper-debug.js +907 -0
  224. data/vendor/assets/javascripts/yui-2.8.1/build/imagecropper/imagecropper-min.js +8 -0
  225. data/vendor/assets/javascripts/yui-2.8.1/build/imagecropper/imagecropper.js +889 -0
  226. data/vendor/assets/javascripts/yui-2.8.1/build/imageloader/imageloader-debug.js +487 -0
  227. data/vendor/assets/javascripts/yui-2.8.1/build/imageloader/imageloader-min.js +7 -0
  228. data/vendor/assets/javascripts/yui-2.8.1/build/imageloader/imageloader.js +481 -0
  229. data/vendor/assets/javascripts/yui-2.8.1/build/json/json-debug.js +538 -0
  230. data/vendor/assets/javascripts/yui-2.8.1/build/json/json-min.js +7 -0
  231. data/vendor/assets/javascripts/yui-2.8.1/build/json/json.js +538 -0
  232. data/vendor/assets/javascripts/yui-2.8.1/build/layout/assets/layout-core.css +158 -0
  233. data/vendor/assets/javascripts/yui-2.8.1/build/layout/assets/skins/sam/layout-skin.css +207 -0
  234. data/vendor/assets/javascripts/yui-2.8.1/build/layout/assets/skins/sam/layout.css +7 -0
  235. data/vendor/assets/javascripts/yui-2.8.1/build/layout/assets/skins/sam/layout_sprite.png +0 -0
  236. data/vendor/assets/javascripts/yui-2.8.1/build/layout/layout-debug.js +2305 -0
  237. data/vendor/assets/javascripts/yui-2.8.1/build/layout/layout-min.js +11 -0
  238. data/vendor/assets/javascripts/yui-2.8.1/build/layout/layout.js +2290 -0
  239. data/vendor/assets/javascripts/yui-2.8.1/build/logger/assets/logger-core.css +7 -0
  240. data/vendor/assets/javascripts/yui-2.8.1/build/logger/assets/logger.css +57 -0
  241. data/vendor/assets/javascripts/yui-2.8.1/build/logger/assets/skins/sam/logger-skin.css +55 -0
  242. data/vendor/assets/javascripts/yui-2.8.1/build/logger/assets/skins/sam/logger.css +7 -0
  243. data/vendor/assets/javascripts/yui-2.8.1/build/logger/logger-debug.js +2104 -0
  244. data/vendor/assets/javascripts/yui-2.8.1/build/logger/logger-min.js +9 -0
  245. data/vendor/assets/javascripts/yui-2.8.1/build/logger/logger.js +2104 -0
  246. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menu-core.css +242 -0
  247. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menu.css +503 -0
  248. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menu_down_arrow.png +0 -0
  249. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menu_down_arrow_disabled.png +0 -0
  250. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menu_up_arrow.png +0 -0
  251. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menu_up_arrow_disabled.png +0 -0
  252. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menubaritem_submenuindicator.png +0 -0
  253. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menubaritem_submenuindicator_disabled.png +0 -0
  254. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menubaritem_submenuindicator_selected.png +0 -0
  255. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menuitem_checkbox.png +0 -0
  256. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menuitem_checkbox_disabled.png +0 -0
  257. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menuitem_checkbox_selected.png +0 -0
  258. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menuitem_submenuindicator.png +0 -0
  259. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menuitem_submenuindicator_disabled.png +0 -0
  260. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menuitem_submenuindicator_selected.png +0 -0
  261. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menu-skin.css +339 -0
  262. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menu.css +7 -0
  263. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menubaritem_submenuindicator.png +0 -0
  264. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menubaritem_submenuindicator_disabled.png +0 -0
  265. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menuitem_checkbox.png +0 -0
  266. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menuitem_checkbox_disabled.png +0 -0
  267. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menuitem_submenuindicator.png +0 -0
  268. data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menuitem_submenuindicator_disabled.png +0 -0
  269. data/vendor/assets/javascripts/yui-2.8.1/build/menu/menu-debug.js +9870 -0
  270. data/vendor/assets/javascripts/yui-2.8.1/build/menu/menu-min.js +16 -0
  271. data/vendor/assets/javascripts/yui-2.8.1/build/menu/menu.js +9823 -0
  272. data/vendor/assets/javascripts/yui-2.8.1/build/paginator/assets/paginator-core.css +6 -0
  273. data/vendor/assets/javascripts/yui-2.8.1/build/paginator/assets/skins/sam/paginator-skin.css +78 -0
  274. data/vendor/assets/javascripts/yui-2.8.1/build/paginator/assets/skins/sam/paginator.css +7 -0
  275. data/vendor/assets/javascripts/yui-2.8.1/build/paginator/paginator-debug.js +2393 -0
  276. data/vendor/assets/javascripts/yui-2.8.1/build/paginator/paginator-min.js +10 -0
  277. data/vendor/assets/javascripts/yui-2.8.1/build/paginator/paginator.js +2393 -0
  278. data/vendor/assets/javascripts/yui-2.8.1/build/profiler/profiler-debug.js +557 -0
  279. data/vendor/assets/javascripts/yui-2.8.1/build/profiler/profiler-min.js +7 -0
  280. data/vendor/assets/javascripts/yui-2.8.1/build/profiler/profiler.js +557 -0
  281. data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/profilerviewer-core.css +6 -0
  282. data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/skins/sam/asc.gif +0 -0
  283. data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/skins/sam/desc.gif +0 -0
  284. data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/skins/sam/header_background.png +0 -0
  285. data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/skins/sam/profilerviewer-skin.css +167 -0
  286. data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/skins/sam/profilerviewer.css +7 -0
  287. data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/skins/sam/wait.gif +0 -0
  288. data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/profilerviewer-debug.js +1229 -0
  289. data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/profilerviewer-min.js +9 -0
  290. data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/profilerviewer.js +1192 -0
  291. data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/progressbar-core.css +85 -0
  292. data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/skins/sam/back-h.png +0 -0
  293. data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/skins/sam/back-v.png +0 -0
  294. data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/skins/sam/bar-h.png +0 -0
  295. data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/skins/sam/bar-v.png +0 -0
  296. data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/skins/sam/progressbar-skin.css +56 -0
  297. data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/skins/sam/progressbar.css +7 -0
  298. data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/progressbar-debug.js +691 -0
  299. data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/progressbar-min.js +8 -0
  300. data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/progressbar.js +677 -0
  301. data/vendor/assets/javascripts/yui-2.8.1/build/reset-fonts-grids/reset-fonts-grids.css +7 -0
  302. data/vendor/assets/javascripts/yui-2.8.1/build/reset-fonts/reset-fonts.css +7 -0
  303. data/vendor/assets/javascripts/yui-2.8.1/build/reset/reset-min.css +7 -0
  304. data/vendor/assets/javascripts/yui-2.8.1/build/reset/reset.css +142 -0
  305. data/vendor/assets/javascripts/yui-2.8.1/build/resize/assets/resize-core.css +173 -0
  306. data/vendor/assets/javascripts/yui-2.8.1/build/resize/assets/skins/sam/layout_sprite.png +0 -0
  307. data/vendor/assets/javascripts/yui-2.8.1/build/resize/assets/skins/sam/resize-skin.css +142 -0
  308. data/vendor/assets/javascripts/yui-2.8.1/build/resize/assets/skins/sam/resize.css +7 -0
  309. data/vendor/assets/javascripts/yui-2.8.1/build/resize/resize-debug.js +1749 -0
  310. data/vendor/assets/javascripts/yui-2.8.1/build/resize/resize-min.js +10 -0
  311. data/vendor/assets/javascripts/yui-2.8.1/build/resize/resize.js +1689 -0
  312. data/vendor/assets/javascripts/yui-2.8.1/build/selector/selector-debug.js +651 -0
  313. data/vendor/assets/javascripts/yui-2.8.1/build/selector/selector-min.js +8 -0
  314. data/vendor/assets/javascripts/yui-2.8.1/build/selector/selector.js +644 -0
  315. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/bg-fader.gif +0 -0
  316. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/bg-h.gif +0 -0
  317. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/bg-v-e.gif +0 -0
  318. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/bg-v.gif +0 -0
  319. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/left-thumb.png +0 -0
  320. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/right-thumb.png +0 -0
  321. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/skins/sam/bg-h.gif +0 -0
  322. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/skins/sam/bg-v.gif +0 -0
  323. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/skins/sam/slider-skin.css +24 -0
  324. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/skins/sam/slider.css +7 -0
  325. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/slider-core.css +17 -0
  326. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/slider-skin.css +20 -0
  327. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/thumb-bar.gif +0 -0
  328. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/thumb-e.gif +0 -0
  329. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/thumb-fader.gif +0 -0
  330. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/thumb-n.gif +0 -0
  331. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/thumb-s.gif +0 -0
  332. data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/thumb-w.gif +0 -0
  333. data/vendor/assets/javascripts/yui-2.8.1/build/slider/slider-debug.js +2114 -0
  334. data/vendor/assets/javascripts/yui-2.8.1/build/slider/slider-min.js +9 -0
  335. data/vendor/assets/javascripts/yui-2.8.1/build/slider/slider.js +2068 -0
  336. data/vendor/assets/javascripts/yui-2.8.1/build/storage/storage-debug.js +1185 -0
  337. data/vendor/assets/javascripts/yui-2.8.1/build/storage/storage-min.js +8 -0
  338. data/vendor/assets/javascripts/yui-2.8.1/build/storage/storage.js +1183 -0
  339. data/vendor/assets/javascripts/yui-2.8.1/build/stylesheet/stylesheet-debug.js +648 -0
  340. data/vendor/assets/javascripts/yui-2.8.1/build/stylesheet/stylesheet-min.js +7 -0
  341. data/vendor/assets/javascripts/yui-2.8.1/build/stylesheet/stylesheet.js +645 -0
  342. data/vendor/assets/javascripts/yui-2.8.1/build/swf/swf-debug.js +269 -0
  343. data/vendor/assets/javascripts/yui-2.8.1/build/swf/swf-min.js +7 -0
  344. data/vendor/assets/javascripts/yui-2.8.1/build/swf/swf.js +268 -0
  345. data/vendor/assets/javascripts/yui-2.8.1/build/swfdetect/swfdetect-debug.js +93 -0
  346. data/vendor/assets/javascripts/yui-2.8.1/build/swfdetect/swfdetect-min.js +7 -0
  347. data/vendor/assets/javascripts/yui-2.8.1/build/swfdetect/swfdetect.js +93 -0
  348. data/vendor/assets/javascripts/yui-2.8.1/build/swfstore/swf.js +238 -0
  349. data/vendor/assets/javascripts/yui-2.8.1/build/swfstore/swfstore-debug.js +470 -0
  350. data/vendor/assets/javascripts/yui-2.8.1/build/swfstore/swfstore-min.js +7 -0
  351. data/vendor/assets/javascripts/yui-2.8.1/build/swfstore/swfstore.js +453 -0
  352. data/vendor/assets/javascripts/yui-2.8.1/build/swfstore/swfstore.swf +0 -0
  353. data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/border_tabs.css +54 -0
  354. data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/loading.gif +0 -0
  355. data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/skin-sam.css +77 -0
  356. data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/skins/sam/tabview-skin.css +186 -0
  357. data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/skins/sam/tabview.css +8 -0
  358. data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/tabview-core.css +133 -0
  359. data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/tabview.css +77 -0
  360. data/vendor/assets/javascripts/yui-2.8.1/build/tabview/tabview-debug.js +995 -0
  361. data/vendor/assets/javascripts/yui-2.8.1/build/tabview/tabview-min.js +8 -0
  362. data/vendor/assets/javascripts/yui-2.8.1/build/tabview/tabview.js +987 -0
  363. data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/check0.gif +0 -0
  364. data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/check1.gif +0 -0
  365. data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/check2.gif +0 -0
  366. data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/loading.gif +0 -0
  367. data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/treeview-loading.gif +0 -0
  368. data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/treeview-skin.css +249 -0
  369. data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/treeview-sprite.gif +0 -0
  370. data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/treeview.css +7 -0
  371. data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/treeview-core.css +6 -0
  372. data/vendor/assets/javascripts/yui-2.8.1/build/treeview/treeview-debug.js +4058 -0
  373. data/vendor/assets/javascripts/yui-2.8.1/build/treeview/treeview-min.js +12 -0
  374. data/vendor/assets/javascripts/yui-2.8.1/build/treeview/treeview.js +3989 -0
  375. data/vendor/assets/javascripts/yui-2.8.1/build/uploader/assets/uploader.swf +0 -0
  376. data/vendor/assets/javascripts/yui-2.8.1/build/uploader/uploader-debug.js +1072 -0
  377. data/vendor/assets/javascripts/yui-2.8.1/build/uploader/uploader-min.js +15 -0
  378. data/vendor/assets/javascripts/yui-2.8.1/build/uploader/uploader.js +1069 -0
  379. data/vendor/assets/javascripts/yui-2.8.1/build/utilities/utilities.js +39 -0
  380. data/vendor/assets/javascripts/yui-2.8.1/build/yahoo-dom-event/yahoo-dom-event.js +14 -0
  381. data/vendor/assets/javascripts/yui-2.8.1/build/yahoo/yahoo-debug.js +1075 -0
  382. data/vendor/assets/javascripts/yui-2.8.1/build/yahoo/yahoo-min.js +7 -0
  383. data/vendor/assets/javascripts/yui-2.8.1/build/yahoo/yahoo.js +1075 -0
  384. data/vendor/assets/javascripts/yui-2.8.1/build/yuiloader-dom-event/yuiloader-dom-event.js +17 -0
  385. data/vendor/assets/javascripts/yui-2.8.1/build/yuiloader/yuiloader-debug.js +3879 -0
  386. data/vendor/assets/javascripts/yui-2.8.1/build/yuiloader/yuiloader-min.js +10 -0
  387. data/vendor/assets/javascripts/yui-2.8.1/build/yuiloader/yuiloader.js +3879 -0
  388. data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/assets/skins/sam/yuitest-skin.css +7 -0
  389. data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/assets/skins/sam/yuitest.css +7 -0
  390. data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/assets/testlogger.css +7 -0
  391. data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/assets/yuitest-core.css +7 -0
  392. data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/yuitest-debug.js +2741 -0
  393. data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/yuitest-min.js +10 -0
  394. data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/yuitest.js +2741 -0
  395. data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/yuitest_core-debug.js +1976 -0
  396. data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/yuitest_core-min.js +9 -0
  397. data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/yuitest_core.js +1976 -0
  398. metadata +470 -0
@@ -0,0 +1,651 @@
1
+ /*
2
+ Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3
+ Code licensed under the BSD License:
4
+ http://developer.yahoo.com/yui/license.html
5
+ version: 2.8.1
6
+ */
7
+ /**
8
+ * The selector module provides helper methods allowing CSS3 Selectors to be used with DOM elements.
9
+ * @module selector
10
+ * @title Selector Utility
11
+ * @namespace YAHOO.util
12
+ * @requires yahoo, dom
13
+ */
14
+
15
+ (function() {
16
+ var Y = YAHOO.util;
17
+
18
+ /**
19
+ * Provides helper methods for collecting and filtering DOM elements.
20
+ * @namespace YAHOO.util
21
+ * @class Selector
22
+ * @static
23
+ */
24
+
25
+ Y.Selector = {
26
+ _foundCache: [],
27
+ _regexCache: {},
28
+
29
+ _re: {
30
+ nth: /^(?:([-]?\d*)(n){1}|(odd|even)$)*([-+]?\d*)$/,
31
+ attr: /(\[.*\])/g,
32
+ urls: /^(?:href|src)/
33
+ },
34
+
35
+ /**
36
+ * Default document for use queries
37
+ * @property document
38
+ * @type object
39
+ * @default window.document
40
+ */
41
+ document: window.document,
42
+ /**
43
+ * Mapping of attributes to aliases, normally to work around HTMLAttributes
44
+ * that conflict with JS reserved words.
45
+ * @property attrAliases
46
+ * @type object
47
+ */
48
+ attrAliases: {
49
+ },
50
+
51
+ /**
52
+ * Mapping of shorthand tokens to corresponding attribute selector
53
+ * @property shorthand
54
+ * @type object
55
+ */
56
+ shorthand: {
57
+ //'(?:(?:[^\\)\\]\\s*>+~,]+)(?:-?[_a-z]+[-\\w]))+#(-?[_a-z]+[-\\w]*)': '[id=$1]',
58
+ '\\#(-?[_a-z]+[-\\w]*)': '[id=$1]',
59
+ '\\.(-?[_a-z]+[-\\w]*)': '[class~=$1]'
60
+ },
61
+
62
+ /**
63
+ * List of operators and corresponding boolean functions.
64
+ * These functions are passed the attribute and the current node's value of the attribute.
65
+ * @property operators
66
+ * @type object
67
+ */
68
+ operators: {
69
+ '=': function(attr, val) { return attr === val; }, // Equality
70
+ '!=': function(attr, val) { return attr !== val; }, // Inequality
71
+ '~=': function(attr, val) { // Match one of space seperated words
72
+ var s = ' ';
73
+ return (s + attr + s).indexOf((s + val + s)) > -1;
74
+ },
75
+ '|=': function(attr, val) { return attr === val || attr.slice(0, val.length + 1) === val + '-'; }, // Matches value followed by optional hyphen
76
+ '^=': function(attr, val) { return attr.indexOf(val) === 0; }, // Match starts with value
77
+ '$=': function(attr, val) { return attr.slice(-val.length) === val; }, // Match ends with value
78
+ '*=': function(attr, val) { return attr.indexOf(val) > -1; }, // Match contains value as substring
79
+ '': function(attr, val) { return attr; } // Just test for existence of attribute
80
+ },
81
+
82
+ /**
83
+ * List of pseudo-classes and corresponding boolean functions.
84
+ * These functions are called with the current node, and any value that was parsed with the pseudo regex.
85
+ * @property pseudos
86
+ * @type object
87
+ */
88
+ pseudos: {
89
+ 'root': function(node) {
90
+ return node === node.ownerDocument.documentElement;
91
+ },
92
+
93
+ 'nth-child': function(node, val) {
94
+ return Y.Selector._getNth(node, val);
95
+ },
96
+
97
+ 'nth-last-child': function(node, val) {
98
+ return Y.Selector._getNth(node, val, null, true);
99
+ },
100
+
101
+ 'nth-of-type': function(node, val) {
102
+ return Y.Selector._getNth(node, val, node.tagName);
103
+ },
104
+
105
+ 'nth-last-of-type': function(node, val) {
106
+ return Y.Selector._getNth(node, val, node.tagName, true);
107
+ },
108
+
109
+ 'first-child': function(node) {
110
+ return Y.Selector._getChildren(node.parentNode)[0] === node;
111
+ },
112
+
113
+ 'last-child': function(node) {
114
+ var children = Y.Selector._getChildren(node.parentNode);
115
+ return children[children.length - 1] === node;
116
+ },
117
+
118
+ 'first-of-type': function(node, val) {
119
+ return Y.Selector._getChildren(node.parentNode, node.tagName)[0];
120
+ },
121
+
122
+ 'last-of-type': function(node, val) {
123
+ var children = Y.Selector._getChildren(node.parentNode, node.tagName);
124
+ return children[children.length - 1];
125
+ },
126
+
127
+ 'only-child': function(node) {
128
+ var children = Y.Selector._getChildren(node.parentNode);
129
+ return children.length === 1 && children[0] === node;
130
+ },
131
+
132
+ 'only-of-type': function(node) {
133
+ return Y.Selector._getChildren(node.parentNode, node.tagName).length === 1;
134
+ },
135
+
136
+ 'empty': function(node) {
137
+ return node.childNodes.length === 0;
138
+ },
139
+
140
+ 'not': function(node, simple) {
141
+ return !Y.Selector.test(node, simple);
142
+ },
143
+
144
+ 'contains': function(node, str) {
145
+ var text = node.innerText || node.textContent || '';
146
+ return text.indexOf(str) > -1;
147
+ },
148
+ 'checked': function(node) {
149
+ return node.checked === true;
150
+ }
151
+ },
152
+
153
+ /**
154
+ * Test if the supplied node matches the supplied selector.
155
+ * @method test
156
+ *
157
+ * @param {HTMLElement | String} node An id or node reference to the HTMLElement being tested.
158
+ * @param {string} selector The CSS Selector to test the node against.
159
+ * @return{boolean} Whether or not the node matches the selector.
160
+ * @static
161
+
162
+ */
163
+ test: function(node, selector) {
164
+ node = Y.Selector.document.getElementById(node) || node;
165
+
166
+ if (!node) {
167
+ return false;
168
+ }
169
+
170
+ var groups = selector ? selector.split(',') : [];
171
+ if (groups.length) {
172
+ for (var i = 0, len = groups.length; i < len; ++i) {
173
+ if ( Y.Selector._test(node, groups[i]) ) { // passes if ANY group matches
174
+ return true;
175
+ }
176
+ }
177
+ return false;
178
+ }
179
+ return Y.Selector._test(node, selector);
180
+ },
181
+
182
+ _test: function(node, selector, token, deDupe) {
183
+ token = token || Y.Selector._tokenize(selector).pop() || {};
184
+
185
+ if (!node.tagName ||
186
+ (token.tag !== '*' && node.tagName !== token.tag) ||
187
+ (deDupe && node._found) ) {
188
+ return false;
189
+ }
190
+
191
+ if (token.attributes.length) {
192
+ var val,
193
+ ieFlag,
194
+ re_urls = Y.Selector._re.urls;
195
+
196
+ if (!node.attributes || !node.attributes.length) {
197
+ return false;
198
+ }
199
+ for (var i = 0, attr; attr = token.attributes[i++];) {
200
+ ieFlag = (re_urls.test(attr[0])) ? 2 : 0;
201
+ val = node.getAttribute(attr[0], ieFlag);
202
+ if (val === null || val === undefined) {
203
+ return false;
204
+ }
205
+ if ( Y.Selector.operators[attr[1]] &&
206
+ !Y.Selector.operators[attr[1]](val, attr[2])) {
207
+ return false;
208
+ }
209
+ }
210
+ }
211
+
212
+ if (token.pseudos.length) {
213
+ for (var i = 0, len = token.pseudos.length; i < len; ++i) {
214
+ if (Y.Selector.pseudos[token.pseudos[i][0]] &&
215
+ !Y.Selector.pseudos[token.pseudos[i][0]](node, token.pseudos[i][1])) {
216
+ return false;
217
+ }
218
+ }
219
+ }
220
+
221
+ return (token.previous && token.previous.combinator !== ',') ?
222
+ Y.Selector._combinators[token.previous.combinator](node, token) :
223
+ true;
224
+ },
225
+
226
+ /**
227
+ * Filters a set of nodes based on a given CSS selector.
228
+ * @method filter
229
+ *
230
+ * @param {array} nodes A set of nodes/ids to filter.
231
+ * @param {string} selector The selector used to test each node.
232
+ * @return{array} An array of nodes from the supplied array that match the given selector.
233
+ * @static
234
+ */
235
+ filter: function(nodes, selector) {
236
+ nodes = nodes || [];
237
+
238
+ var node,
239
+ result = [],
240
+ tokens = Y.Selector._tokenize(selector);
241
+
242
+ if (!nodes.item) { // if not HTMLCollection, handle arrays of ids and/or nodes
243
+ YAHOO.log('filter: scanning input for HTMLElements/IDs', 'info', 'Selector');
244
+ for (var i = 0, len = nodes.length; i < len; ++i) {
245
+ if (!nodes[i].tagName) { // tagName limits to HTMLElements
246
+ node = Y.Selector.document.getElementById(nodes[i]);
247
+ if (node) { // skip IDs that return null
248
+ nodes[i] = node;
249
+ } else {
250
+ YAHOO.log('filter: skipping invalid node', 'warn', 'Selector');
251
+ }
252
+ }
253
+ }
254
+ }
255
+ result = Y.Selector._filter(nodes, Y.Selector._tokenize(selector)[0]);
256
+ YAHOO.log('filter: returning:' + result.length, 'info', 'Selector');
257
+ return result;
258
+ },
259
+
260
+ _filter: function(nodes, token, firstOnly, deDupe) {
261
+ var result = firstOnly ? null : [],
262
+ foundCache = Y.Selector._foundCache;
263
+
264
+ for (var i = 0, len = nodes.length; i < len; i++) {
265
+ if (! Y.Selector._test(nodes[i], '', token, deDupe)) {
266
+ continue;
267
+ }
268
+
269
+ if (firstOnly) {
270
+ return nodes[i];
271
+ }
272
+ if (deDupe) {
273
+ if (nodes[i]._found) {
274
+ continue;
275
+ }
276
+ nodes[i]._found = true;
277
+ foundCache[foundCache.length] = nodes[i];
278
+ }
279
+
280
+ result[result.length] = nodes[i];
281
+ }
282
+
283
+ return result;
284
+ },
285
+
286
+ /**
287
+ * Retrieves a set of nodes based on a given CSS selector.
288
+ * @method query
289
+ *
290
+ * @param {string} selector The CSS Selector to test the node against.
291
+ * @param {HTMLElement | String} root optional An id or HTMLElement to start the query from. Defaults to Selector.document.
292
+ * @param {Boolean} firstOnly optional Whether or not to return only the first match.
293
+ * @return {Array} An array of nodes that match the given selector.
294
+ * @static
295
+ */
296
+ query: function(selector, root, firstOnly) {
297
+ var result = Y.Selector._query(selector, root, firstOnly);
298
+ YAHOO.log('query: returning ' + result, 'info', 'Selector');
299
+ return result;
300
+ },
301
+
302
+
303
+ _query: function(selector, root, firstOnly, deDupe) {
304
+ var result = (firstOnly) ? null : [],
305
+ node;
306
+
307
+ if (!selector) {
308
+ return result;
309
+ }
310
+
311
+ var groups = selector.split(','); // TODO: handle comma in attribute/pseudo
312
+
313
+ if (groups.length > 1) {
314
+ var found;
315
+ for (var i = 0, len = groups.length; i < len; ++i) {
316
+ found = Y.Selector._query(groups[i], root, firstOnly, true);
317
+ result = firstOnly ? found : result.concat(found);
318
+ }
319
+ Y.Selector._clearFoundCache();
320
+ return result;
321
+ }
322
+
323
+ if (root && !root.nodeName) { // assume ID
324
+ root = Y.Selector.document.getElementById(root);
325
+ if (!root) {
326
+ YAHOO.log('invalid root node provided', 'warn', 'Selector');
327
+ return result;
328
+ }
329
+ }
330
+
331
+ root = root || Y.Selector.document;
332
+
333
+ if (root.nodeName !== '#document') { // prepend with root selector
334
+ Y.Dom.generateId(root); // TODO: cleanup after?
335
+ selector = root.tagName + '#' + root.id + ' ' + selector;
336
+ node = root;
337
+ root = root.ownerDocument;
338
+ }
339
+
340
+ var tokens = Y.Selector._tokenize(selector);
341
+ var idToken = tokens[Y.Selector._getIdTokenIndex(tokens)],
342
+ nodes = [],
343
+ id,
344
+ token = tokens.pop() || {};
345
+
346
+ if (idToken) {
347
+ id = Y.Selector._getId(idToken.attributes);
348
+ }
349
+
350
+ // use id shortcut when possible
351
+ if (id) {
352
+ node = node || Y.Selector.document.getElementById(id);
353
+
354
+ if (node && (root.nodeName === '#document' || Y.Dom.isAncestor(root, node))) {
355
+ if ( Y.Selector._test(node, null, idToken) ) {
356
+ if (idToken === token) {
357
+ nodes = [node]; // simple selector
358
+ } else if (idToken.combinator === ' ' || idToken.combinator === '>') {
359
+ root = node; // start from here
360
+ }
361
+ }
362
+ } else {
363
+ return result;
364
+ }
365
+ }
366
+
367
+ if (root && !nodes.length) {
368
+ nodes = root.getElementsByTagName(token.tag);
369
+ }
370
+
371
+ if (nodes.length) {
372
+ result = Y.Selector._filter(nodes, token, firstOnly, deDupe);
373
+ }
374
+
375
+ return result;
376
+ },
377
+
378
+
379
+ _clearFoundCache: function() {
380
+ var foundCache = Y.Selector._foundCache;
381
+ YAHOO.log('getBySelector: clearing found cache of ' + foundCache.length + ' elements');
382
+ for (var i = 0, len = foundCache.length; i < len; ++i) {
383
+ try { // IE no like delete
384
+ delete foundCache[i]._found;
385
+ } catch(e) {
386
+ foundCache[i].removeAttribute('_found');
387
+ }
388
+ }
389
+ foundCache = [];
390
+ YAHOO.log('getBySelector: done clearing foundCache');
391
+ },
392
+
393
+
394
+ _getRegExp: function(str, flags) {
395
+ var regexCache = Y.Selector._regexCache;
396
+ flags = flags || '';
397
+ if (!regexCache[str + flags]) {
398
+ regexCache[str + flags] = new RegExp(str, flags);
399
+ }
400
+ return regexCache[str + flags];
401
+ },
402
+
403
+ _getChildren: function() {
404
+ if (document.documentElement.children && document.documentElement.children.tags) { // document for capability test
405
+ return function(node, tag) {
406
+ return (tag) ? node.children.tags(tag) : node.children || [];
407
+ };
408
+ } else {
409
+ return function(node, tag) {
410
+ var children = [],
411
+ childNodes = node.childNodes;
412
+
413
+ for (var i = 0, len = childNodes.length; i < len; ++i) {
414
+ if (childNodes[i].tagName) {
415
+ if (!tag || childNodes[i].tagName === tag) {
416
+ children.push(childNodes[i]);
417
+ }
418
+ }
419
+ }
420
+ return children;
421
+ };
422
+ }
423
+ }(),
424
+
425
+ _combinators: {
426
+ ' ': function(node, token) {
427
+ while ( (node = node.parentNode) ) {
428
+ if (Y.Selector._test(node, '', token.previous)) {
429
+ return true;
430
+ }
431
+ }
432
+ return false;
433
+ },
434
+
435
+ '>': function(node, token) {
436
+ return Y.Selector._test(node.parentNode, null, token.previous);
437
+ },
438
+
439
+ '+': function(node, token) {
440
+ var sib = node.previousSibling;
441
+ while (sib && sib.nodeType !== 1) {
442
+ sib = sib.previousSibling;
443
+ }
444
+
445
+ if (sib && Y.Selector._test(sib, null, token.previous)) {
446
+ return true;
447
+ }
448
+ return false;
449
+ },
450
+
451
+ '~': function(node, token) {
452
+ var sib = node.previousSibling;
453
+ while (sib) {
454
+ if (sib.nodeType === 1 && Y.Selector._test(sib, null, token.previous)) {
455
+ return true;
456
+ }
457
+ sib = sib.previousSibling;
458
+ }
459
+
460
+ return false;
461
+ }
462
+ },
463
+
464
+
465
+ /*
466
+ an+b = get every _a_th node starting at the _b_th
467
+ 0n+b = no repeat ("0" and "n" may both be omitted (together) , e.g. "0n+1" or "1", not "0+1"), return only the _b_th element
468
+ 1n+b = get every element starting from b ("1" may may be omitted, e.g. "1n+0" or "n+0" or "n")
469
+ an+0 = get every _a_th element, "0" may be omitted
470
+ */
471
+ _getNth: function(node, expr, tag, reverse) {
472
+ Y.Selector._re.nth.test(expr);
473
+ var a = parseInt(RegExp.$1, 10), // include every _a_ elements (zero means no repeat, just first _a_)
474
+ n = RegExp.$2, // "n"
475
+ oddeven = RegExp.$3, // "odd" or "even"
476
+ b = parseInt(RegExp.$4, 10) || 0, // start scan from element _b_
477
+ result = [],
478
+ op;
479
+
480
+ var siblings = Y.Selector._getChildren(node.parentNode, tag);
481
+
482
+ if (oddeven) {
483
+ a = 2; // always every other
484
+ op = '+';
485
+ n = 'n';
486
+ b = (oddeven === 'odd') ? 1 : 0;
487
+ } else if ( isNaN(a) ) {
488
+ a = (n) ? 1 : 0; // start from the first or no repeat
489
+ }
490
+
491
+ if (a === 0) { // just the first
492
+ if (reverse) {
493
+ b = siblings.length - b + 1;
494
+ }
495
+
496
+ if (siblings[b - 1] === node) {
497
+ return true;
498
+ } else {
499
+ return false;
500
+ }
501
+
502
+ } else if (a < 0) {
503
+ reverse = !!reverse;
504
+ a = Math.abs(a);
505
+ }
506
+
507
+ if (!reverse) {
508
+ for (var i = b - 1, len = siblings.length; i < len; i += a) {
509
+ if ( i >= 0 && siblings[i] === node ) {
510
+ return true;
511
+ }
512
+ }
513
+ } else {
514
+ for (var i = siblings.length - b, len = siblings.length; i >= 0; i -= a) {
515
+ if ( i < len && siblings[i] === node ) {
516
+ return true;
517
+ }
518
+ }
519
+ }
520
+ return false;
521
+ },
522
+
523
+ _getId: function(attr) {
524
+ for (var i = 0, len = attr.length; i < len; ++i) {
525
+ if (attr[i][0] == 'id' && attr[i][1] === '=') {
526
+ return attr[i][2];
527
+ }
528
+ }
529
+ },
530
+
531
+ _getIdTokenIndex: function(tokens) {
532
+ for (var i = 0, len = tokens.length; i < len; ++i) {
533
+ if (Y.Selector._getId(tokens[i].attributes)) {
534
+ return i;
535
+ }
536
+ }
537
+ return -1;
538
+ },
539
+
540
+ _patterns: {
541
+ tag: /^((?:-?[_a-z]+[\w-]*)|\*)/i,
542
+ attributes: /^\[([a-z]+\w*)+([~\|\^\$\*!=]=?)?['"]?([^\]]*?)['"]?\]/i,
543
+ pseudos: /^:([-\w]+)(?:\(['"]?(.+)['"]?\))*/i,
544
+ combinator: /^\s*([>+~]|\s)\s*/
545
+ },
546
+
547
+ /**
548
+ Break selector into token units per simple selector.
549
+ Combinator is attached to left-hand selector.
550
+ */
551
+ _tokenize: function(selector) {
552
+ var token = {}, // one token per simple selector (left selector holds combinator)
553
+ tokens = [], // array of tokens
554
+ id, // unique id for the simple selector (if found)
555
+ found = false, // whether or not any matches were found this pass
556
+ patterns = Y.Selector._patterns,
557
+ match; // the regex match
558
+
559
+ selector = Y.Selector._replaceShorthand(selector); // convert ID and CLASS shortcuts to attributes
560
+
561
+ /*
562
+ Search for selector patterns, store, and strip them from the selector string
563
+ until no patterns match (invalid selector) or we run out of chars.
564
+
565
+ Multiple attributes and pseudos are allowed, in any order.
566
+ for example:
567
+ 'form:first-child[type=button]:not(button)[lang|=en]'
568
+ */
569
+ do {
570
+ found = false; // reset after full pass
571
+ for (var re in patterns) {
572
+ if (YAHOO.lang.hasOwnProperty(patterns, re)) {
573
+ if (re != 'tag' && re != 'combinator') { // only one allowed
574
+ token[re] = token[re] || [];
575
+ }
576
+ if ( (match = patterns[re].exec(selector)) ) { // note assignment
577
+ found = true;
578
+ if (re != 'tag' && re != 'combinator') { // only one allowed
579
+ // capture ID for fast path to element
580
+ if (re === 'attributes' && match[1] === 'id') {
581
+ token.id = match[3];
582
+ }
583
+
584
+ token[re].push(match.slice(1));
585
+ } else { // single selector (tag, combinator)
586
+ token[re] = match[1];
587
+ }
588
+ selector = selector.replace(match[0], ''); // strip current match from selector
589
+ if (re === 'combinator' || !selector.length) { // next token or done
590
+ token.attributes = Y.Selector._fixAttributes(token.attributes);
591
+ token.pseudos = token.pseudos || [];
592
+ token.tag = token.tag ? token.tag.toUpperCase() : '*';
593
+ tokens.push(token);
594
+
595
+ token = { // prep next token
596
+ previous: token
597
+ };
598
+ }
599
+ }
600
+ }
601
+ }
602
+ } while (found);
603
+
604
+ return tokens;
605
+ },
606
+
607
+
608
+ _fixAttributes: function(attr) {
609
+ var aliases = Y.Selector.attrAliases;
610
+ attr = attr || [];
611
+ for (var i = 0, len = attr.length; i < len; ++i) {
612
+ if (aliases[attr[i][0]]) { // convert reserved words, etc
613
+ attr[i][0] = aliases[attr[i][0]];
614
+ }
615
+ if (!attr[i][1]) { // use exists operator
616
+ attr[i][1] = '';
617
+ }
618
+ }
619
+ return attr;
620
+ },
621
+
622
+ _replaceShorthand: function(selector) {
623
+ var shorthand = Y.Selector.shorthand;
624
+
625
+ //var attrs = selector.match(Y.Selector._patterns.attributes); // pull attributes to avoid false pos on "." and "#"
626
+ var attrs = selector.match(Y.Selector._re.attr); // pull attributes to avoid false pos on "." and "#"
627
+ if (attrs) {
628
+ selector = selector.replace(Y.Selector._re.attr, 'REPLACED_ATTRIBUTE');
629
+ }
630
+ for (var re in shorthand) {
631
+ if (YAHOO.lang.hasOwnProperty(shorthand, re)) {
632
+ selector = selector.replace(Y.Selector._getRegExp(re, 'gi'), shorthand[re]);
633
+ }
634
+ }
635
+
636
+ if (attrs) {
637
+ for (var i = 0, len = attrs.length; i < len; ++i) {
638
+ selector = selector.replace('REPLACED_ATTRIBUTE', attrs[i]);
639
+ }
640
+ }
641
+ return selector;
642
+ }
643
+ };
644
+
645
+ if (YAHOO.env.ua.ie && YAHOO.env.ua.ie < 8) { // rewrite class for IE < 8
646
+ Y.Selector.attrAliases['class'] = 'className';
647
+ Y.Selector.attrAliases['for'] = 'htmlFor';
648
+ }
649
+
650
+ })();
651
+ YAHOO.register("selector", YAHOO.util.Selector, {version: "2.8.1", build: "19"});