Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Kill jsdom because it was hopelessly outdated anyway

  • Loading branch information...
commit 429a7e7b50f1031a6daba31809a61b903f3cec02 1 parent 6aa86b0
@andreyvit andreyvit authored
Showing with 0 additions and 155,781 deletions.
  1. +0 −6 node_modules/jsdom/.gitignore
  2. +0 −22 node_modules/jsdom/LICENSE.txt
  3. +0 −273 node_modules/jsdom/README.md
  4. +0 −23 node_modules/jsdom/benchmark/mark.js
  5. 0  node_modules/jsdom/benchmark/stats.json
  6. +0 −95 node_modules/jsdom/changelog
  7. +0 −37 node_modules/jsdom/example/browser/browser.js
  8. +0 −1,170 node_modules/jsdom/example/ender/ender.js
  9. +0 −10 node_modules/jsdom/example/ender/run.js
  10. +0 −167 node_modules/jsdom/example/jquery/jquery.js
  11. +0 −9 node_modules/jsdom/example/jquery/run.js
  12. +0 −243 node_modules/jsdom/example/node-xml/example.xml
  13. +0 −46 node_modules/jsdom/example/node-xml/run.js
  14. +0 −743 node_modules/jsdom/example/pure/pure.js
  15. +0 −96 node_modules/jsdom/example/pure/run.js
  16. +0 −10 node_modules/jsdom/example/pure/sax-test.js
  17. +0 −535 node_modules/jsdom/example/pure/sax.js
  18. +0 −166 node_modules/jsdom/example/sizzle/run.js
  19. +0 −534 node_modules/jsdom/example/sizzle/sax.js
  20. +0 −1,066 node_modules/jsdom/example/sizzle/sizzle.js
  21. +0 −347 node_modules/jsdom/lib/jsdom.js
  22. +0 −52 node_modules/jsdom/lib/jsdom/browser/documentfeatures.js
  23. +0 −182 node_modules/jsdom/lib/jsdom/browser/domtohtml.js
  24. +0 −151 node_modules/jsdom/lib/jsdom/browser/htmlencoding.js
  25. +0 −178 node_modules/jsdom/lib/jsdom/browser/htmltodom.js
  26. +0 −563 node_modules/jsdom/lib/jsdom/browser/index.js
  27. +0 −1,741 node_modules/jsdom/lib/jsdom/level1/core.js
  28. +0 −639 node_modules/jsdom/lib/jsdom/level2/core.js
  29. +0 −421 node_modules/jsdom/lib/jsdom/level2/events.js
  30. +0 −1,758 node_modules/jsdom/lib/jsdom/level2/html.js
  31. +0 −7 node_modules/jsdom/lib/jsdom/level2/index.js
  32. +0 −13 node_modules/jsdom/lib/jsdom/level2/languages/javascript.js
  33. +0 −236 node_modules/jsdom/lib/jsdom/level2/style.js
  34. +0 −646 node_modules/jsdom/lib/jsdom/level3/core.js
  35. +0 −296 node_modules/jsdom/lib/jsdom/level3/events.js
  36. +0 −9 node_modules/jsdom/lib/jsdom/level3/html.js
  37. +0 −10 node_modules/jsdom/lib/jsdom/level3/index.js
  38. +0 −221 node_modules/jsdom/lib/jsdom/level3/ls.js
  39. +0 −1,859 node_modules/jsdom/lib/jsdom/level3/xpath.js
  40. +0 −28 node_modules/jsdom/lib/jsdom/selectors/index.js
  41. +0 −1,016 node_modules/jsdom/lib/jsdom/selectors/sizzle.js
  42. +0 −27 node_modules/jsdom/lib/jsdom/utils.js
  43. +0 −158 node_modules/jsdom/package.json
  44. +0 −22 node_modules/jsdom/status.json
  45. +0 −279 node_modules/jsdom/test/DOMTestCase.js
  46. +0 −4 node_modules/jsdom/test/LICENSE.txt
  47. +0 −31 node_modules/jsdom/test/all.js
  48. +0 −6,883 node_modules/jsdom/test/browser/files/js/jquery.js
  49. +0 −252 node_modules/jsdom/test/browser/files/site.html
  50. +0 −243 node_modules/jsdom/test/browser/index.js
  51. +0 −36 node_modules/jsdom/test/collector.php
  52. +0 −46 node_modules/jsdom/test/jsdom/files/ctx-script1.js
  53. +0 −24 node_modules/jsdom/test/jsdom/files/ctx-script2.js
  54. +0 −23 node_modules/jsdom/test/jsdom/files/ctx-test.html
  55. +0 −457 node_modules/jsdom/test/jsdom/files/ender-qwery.js
  56. +0 −8 node_modules/jsdom/test/jsdom/files/env.html
  57. +0 −1  node_modules/jsdom/test/jsdom/files/hello.js
  58. +0 −13 node_modules/jsdom/test/jsdom/files/iframe.html
  59. +0 −8,981 node_modules/jsdom/test/jsdom/files/jquery.js
  60. +0 −1,046 node_modules/jsdom/test/jsdom/index.js
  61. +0 −12 node_modules/jsdom/test/jsdom/leak.js
  62. +0 −21,822 node_modules/jsdom/test/level1/core.js
  63. +0 −13 node_modules/jsdom/test/level1/core/files/extra.xml.js
  64. +0 −27 node_modules/jsdom/test/level1/core/files/hc_nodtdstaff.xml.js
  65. +0 −236 node_modules/jsdom/test/level1/core/files/hc_staff.xml.js
  66. +0 −153 node_modules/jsdom/test/level1/core/files/staff.xml.js
  67. +0 −7,778 node_modules/jsdom/test/level1/html.js
  68. +0 −27 node_modules/jsdom/test/level1/html/files/hc_nodtdstaff.html.js
  69. +0 −235 node_modules/jsdom/test/level1/html/files/hc_staff.html.js
  70. +0 −21,720 node_modules/jsdom/test/level1/svg.js
  71. +0 −27 node_modules/jsdom/test/level1/svg/files/hc_nodtdstaff.svg.js
  72. +0 −259 node_modules/jsdom/test/level1/svg/files/hc_staff.svg.js
  73. +0 −275 node_modules/jsdom/test/level1/svg/files/staff.svg.js
  74. +0 −10,924 node_modules/jsdom/test/level2/core.js
  75. +0 −159 node_modules/jsdom/test/level2/core/files/hc_staff.xml.js
  76. +0 −48 node_modules/jsdom/test/level2/core/files/orig/hc_staff.html
  77. +0 −72 node_modules/jsdom/test/level2/core/files/orig/hc_staff.svg
  78. +0 −60 node_modules/jsdom/test/level2/core/files/orig/hc_staff.xhtml
  79. +0 −60 node_modules/jsdom/test/level2/core/files/orig/hc_staff.xml
  80. +0 −37 node_modules/jsdom/test/level2/core/files/orig/index.html
  81. 0  node_modules/jsdom/test/level2/core/files/orig/internalSubset01.js
  82. +0 −11 node_modules/jsdom/test/level2/core/files/orig/nodtdstaff.svg
  83. +0 −11 node_modules/jsdom/test/level2/core/files/orig/nodtdstaff.xml
  84. +0 −67 node_modules/jsdom/test/level2/core/files/orig/robots.txt
  85. +0 −17 node_modules/jsdom/test/level2/core/files/orig/staff.dtd
  86. +0 −72 node_modules/jsdom/test/level2/core/files/orig/staff.svg
  87. +0 −57 node_modules/jsdom/test/level2/core/files/orig/staff.xml
  88. +0 −24 node_modules/jsdom/test/level2/core/files/orig/staff2.dtd
  89. +0 −13 node_modules/jsdom/test/level2/core/files/orig/staff2.svg
  90. +0 −13 node_modules/jsdom/test/level2/core/files/orig/staff2.xml
  91. +0 −45 node_modules/jsdom/test/level2/core/files/orig/staffNS.dtd
  92. +0 −73 node_modules/jsdom/test/level2/core/files/orig/staffNS.svg
  93. +0 −68 node_modules/jsdom/test/level2/core/files/orig/staffNS.xml
  94. 0  node_modules/jsdom/test/level2/core/files/orig/svgtest.js
  95. 0  node_modules/jsdom/test/level2/core/files/orig/svgunit.js
  96. +0 −196 node_modules/jsdom/test/level2/core/files/orig/xhtml-lat1.ent
  97. +0 −80 node_modules/jsdom/test/level2/core/files/orig/xhtml-special.ent
  98. +0 −237 node_modules/jsdom/test/level2/core/files/orig/xhtml-symbol.ent
  99. +0 −1,235 node_modules/jsdom/test/level2/core/files/orig/xhtml1-frameset.dtd
  100. +0 −65 node_modules/jsdom/test/level2/core/files/orig/xhtml1-strict.dtd
  101. +0 −1,201 node_modules/jsdom/test/level2/core/files/orig/xhtml1-transitional.dtd
  102. +0 −153 node_modules/jsdom/test/level2/core/files/staff.xml.js
  103. +0 −159 node_modules/jsdom/test/level2/core/files/staff2.xml.js
  104. +0 −250 node_modules/jsdom/test/level2/core/files/staffNS.xml.js
  105. +0 −454 node_modules/jsdom/test/level2/events.js
  106. +0 −162 node_modules/jsdom/test/level2/events/files/hc_staff.xml.js
  107. +0 −32 node_modules/jsdom/test/level2/extra.js
  108. +0 −19,652 node_modules/jsdom/test/level2/html.js
  109. +0 −12 node_modules/jsdom/test/level2/html/files/anchor.html
  110. +0 −13 node_modules/jsdom/test/level2/html/files/anchor2.html
  111. +0 −12 node_modules/jsdom/test/level2/html/files/applet.html
  112. +0 −12 node_modules/jsdom/test/level2/html/files/applet2.html
  113. +0 −14 node_modules/jsdom/test/level2/html/files/area.html
  114. +0 −15 node_modules/jsdom/test/level2/html/files/area2.html
  115. +0 −11 node_modules/jsdom/test/level2/html/files/base.html
  116. +0 −15 node_modules/jsdom/test/level2/html/files/base2.html
  117. +0 −12 node_modules/jsdom/test/level2/html/files/basefont.html
  118. +0 −10 node_modules/jsdom/test/level2/html/files/body.html
  119. +0 −12 node_modules/jsdom/test/level2/html/files/br.html
  120. +0 −21 node_modules/jsdom/test/level2/html/files/button.html
  121. +0 −79 node_modules/jsdom/test/level2/html/files/collection.html
  122. +0 −14 node_modules/jsdom/test/level2/html/files/directory.html
  123. +0 −10 node_modules/jsdom/test/level2/html/files/div.html
  124. +0 −15 node_modules/jsdom/test/level2/html/files/dl.html
  125. +0 −36 node_modules/jsdom/test/level2/html/files/document.html
  126. +0 −81 node_modules/jsdom/test/level2/html/files/element.html
  127. +0 −23 node_modules/jsdom/test/level2/html/files/fieldset.html
  128. +0 −10 node_modules/jsdom/test/level2/html/files/font.html
  129. +0 −17 node_modules/jsdom/test/level2/html/files/form.html
  130. +0 −17 node_modules/jsdom/test/level2/html/files/form2.html
  131. +0 −17 node_modules/jsdom/test/level2/html/files/form3.html
  132. +0 −15 node_modules/jsdom/test/level2/html/files/frame.html
  133. +0 −16 node_modules/jsdom/test/level2/html/files/frame2.html
  134. +0 −15 node_modules/jsdom/test/level2/html/files/frameset.html
  135. +0 −11 node_modules/jsdom/test/level2/html/files/head.html
  136. +0 −16 node_modules/jsdom/test/level2/html/files/heading.html
  137. +0 −11 node_modules/jsdom/test/level2/html/files/hr.html
  138. +0 −12 node_modules/jsdom/test/level2/html/files/html.html
  139. +0 −11 node_modules/jsdom/test/level2/html/files/iframe.html
  140. +0 −13 node_modules/jsdom/test/level2/html/files/iframe2.html
  141. +0 −13 node_modules/jsdom/test/level2/html/files/img.html
  142. 0  node_modules/jsdom/test/level2/html/files/img/right.png
  143. 0  node_modules/jsdom/test/level2/html/files/img/w3c_main.png
  144. +0 −60 node_modules/jsdom/test/level2/html/files/input.html
  145. +0 −14 node_modules/jsdom/test/level2/html/files/isindex.html
  146. 0  node_modules/jsdom/test/level2/html/files/js/script1.js
  147. +0 −21 node_modules/jsdom/test/level2/html/files/label.html
  148. +0 −22 node_modules/jsdom/test/level2/html/files/legend.html
  149. +0 −23 node_modules/jsdom/test/level2/html/files/li.html
  150. +0 −15 node_modules/jsdom/test/level2/html/files/link.html
  151. +0 −15 node_modules/jsdom/test/level2/html/files/link2.html
  152. +0 −16 node_modules/jsdom/test/level2/html/files/map.html
  153. +0 −15 node_modules/jsdom/test/level2/html/files/menu.html
  154. +0 −13 node_modules/jsdom/test/level2/html/files/meta.html
  155. +0 −15 node_modules/jsdom/test/level2/html/files/mod.html
  156. +0 −17 node_modules/jsdom/test/level2/html/files/object.html
  157. +0 −17 node_modules/jsdom/test/level2/html/files/object2.html
  158. +0 −32 node_modules/jsdom/test/level2/html/files/olist.html
  159. +0 −25 node_modules/jsdom/test/level2/html/files/optgroup.html
  160. +0 −36 node_modules/jsdom/test/level2/html/files/option.html
  161. +0 −36 node_modules/jsdom/test/level2/html/files/optionscollection.html
  162. +0 −13 node_modules/jsdom/test/level2/html/files/paragraph.html
  163. +0 −14 node_modules/jsdom/test/level2/html/files/param.html
  164. +0 −17 node_modules/jsdom/test/level2/html/files/pre.html
  165. +0 −16 node_modules/jsdom/test/level2/html/files/quote.html
  166. BIN  node_modules/jsdom/test/level2/html/files/right.png
  167. +0 −11 node_modules/jsdom/test/level2/html/files/script.html
  168. +0 −44 node_modules/jsdom/test/level2/html/files/select.html
  169. +0 −12 node_modules/jsdom/test/level2/html/files/style.html
  170. +0 −78 node_modules/jsdom/test/level2/html/files/table.html
  171. +0 −12 node_modules/jsdom/test/level2/html/files/table1.html
  172. +0 −25 node_modules/jsdom/test/level2/html/files/tablecaption.html
  173. +0 −23 node_modules/jsdom/test/level2/html/files/tablecell.html
  174. +0 −35 node_modules/jsdom/test/level2/html/files/tablecol.html
  175. +0 −59 node_modules/jsdom/test/level2/html/files/tablerow.html
  176. +0 −62 node_modules/jsdom/test/level2/html/files/tablesection.html
  177. +0 −26 node_modules/jsdom/test/level2/html/files/textarea.html
  178. +0 −13 node_modules/jsdom/test/level2/html/files/title.html
  179. +0 −36 node_modules/jsdom/test/level2/html/files/ulist.html
  180. BIN  node_modules/jsdom/test/level2/html/files/w3c_main.png
  181. +0 −65 node_modules/jsdom/test/level2/style.js
  182. +0 −28,860 node_modules/jsdom/test/level3/core.js
  183. +0 −25 node_modules/jsdom/test/level3/core/files/barfoo.xml.js
  184. +0 −27 node_modules/jsdom/test/level3/core/files/barfoo_nodefaultns.xml.js
  185. +0 −27 node_modules/jsdom/test/level3/core/files/barfoo_standalone_no.xml.js
  186. +0 −27 node_modules/jsdom/test/level3/core/files/barfoo_standalone_yes.xml.js
  187. +0 −68 node_modules/jsdom/test/level3/core/files/barfoo_utf16.xml.js
  188. +0 −73 node_modules/jsdom/test/level3/core/files/barfoo_utf8.xml.js
  189. +0 −90 node_modules/jsdom/test/level3/core/files/datatype_normalization.xml.js
  190. +0 −33 node_modules/jsdom/test/level3/core/files/datatype_normalization2.xml.js
  191. +0 −33 node_modules/jsdom/test/level3/core/files/external_barfoo.xml.js
  192. +0 −159 node_modules/jsdom/test/level3/core/files/hc_nodtdstaff.xml.js
  193. +0 −160 node_modules/jsdom/test/level3/core/files/hc_staff.xml.js
  194. +0 −28 node_modules/jsdom/test/level3/core/files/orig/Yes
  195. BIN  node_modules/jsdom/test/level3/core/files/orig/back.gif
  196. +0 −27 node_modules/jsdom/test/level3/core/files/orig/barfoo.svg
  197. +0 −25 node_modules/jsdom/test/level3/core/files/orig/barfoo.xhtml
  198. +0 −25 node_modules/jsdom/test/level3/core/files/orig/barfoo.xml
  199. +0 −37 node_modules/jsdom/test/level3/core/files/orig/barfoo_base.svg
  200. +0 −29 node_modules/jsdom/test/level3/core/files/orig/barfoo_base.xhtml
  201. +0 −29 node_modules/jsdom/test/level3/core/files/orig/barfoo_base.xml
  202. +0 −30 node_modules/jsdom/test/level3/core/files/orig/barfoo_base.xml.js
  203. +0 −28 node_modules/jsdom/test/level3/core/files/orig/barfoo_nodefaultns.svg
  204. +0 −26 node_modules/jsdom/test/level3/core/files/orig/barfoo_nodefaultns.xhtml
  205. +0 −26 node_modules/jsdom/test/level3/core/files/orig/barfoo_nodefaultns.xml
  206. +0 −28 node_modules/jsdom/test/level3/core/files/orig/barfoo_standalone_no.svg
  207. +0 −26 node_modules/jsdom/test/level3/core/files/orig/barfoo_standalone_no.xhtml
  208. +0 −26 node_modules/jsdom/test/level3/core/files/orig/barfoo_standalone_no.xml
  209. +0 −24 node_modules/jsdom/test/level3/core/files/orig/barfoo_standalone_yes.svg
  210. +0 −26 node_modules/jsdom/test/level3/core/files/orig/barfoo_standalone_yes.xhtml
  211. +0 −26 node_modules/jsdom/test/level3/core/files/orig/barfoo_standalone_yes.xml
  212. BIN  node_modules/jsdom/test/level3/core/files/orig/barfoo_utf16.svg
  213. BIN  node_modules/jsdom/test/level3/core/files/orig/barfoo_utf16.xhtml
  214. BIN  node_modules/jsdom/test/level3/core/files/orig/barfoo_utf16.xml
  215. +0 −30 node_modules/jsdom/test/level3/core/files/orig/barfoo_utf8.svg
  216. +0 −28 node_modules/jsdom/test/level3/core/files/orig/barfoo_utf8.xhtml
  217. +0 −28 node_modules/jsdom/test/level3/core/files/orig/barfoo_utf8.xml
  218. BIN  node_modules/jsdom/test/level3/core/files/orig/blank.gif
  219. +0 −17 node_modules/jsdom/test/level3/core/files/orig/canonicalform01.svg
  220. +0 −14 node_modules/jsdom/test/level3/core/files/orig/canonicalform01.xhtml
  221. +0 −14 node_modules/jsdom/test/level3/core/files/orig/canonicalform01.xml
  222. +0 −14 node_modules/jsdom/test/level3/core/files/orig/canonicalform02.svg
  223. +0 −11 node_modules/jsdom/test/level3/core/files/orig/canonicalform02.xhtml
  224. +0 −11 node_modules/jsdom/test/level3/core/files/orig/canonicalform02.xml
  225. +0 −22 node_modules/jsdom/test/level3/core/files/orig/canonicalform03.svg
  226. +0 −18 node_modules/jsdom/test/level3/core/files/orig/canonicalform03.xhtml
  227. +0 −18 node_modules/jsdom/test/level3/core/files/orig/canonicalform03.xml
  228. +0 −15 node_modules/jsdom/test/level3/core/files/orig/canonicalform04.svg
  229. +0 −13 node_modules/jsdom/test/level3/core/files/orig/canonicalform04.xhtml
  230. +0 −13 node_modules/jsdom/test/level3/core/files/orig/canonicalform04.xml
  231. +0 −15 node_modules/jsdom/test/level3/core/files/orig/canonicalform05.svg
  232. +0 −13 node_modules/jsdom/test/level3/core/files/orig/canonicalform05.xhtml
  233. +0 −13 node_modules/jsdom/test/level3/core/files/orig/canonicalform05.xml
  234. +0 −89 node_modules/jsdom/test/level3/core/files/orig/datatype_normalization.svg
  235. +0 −60 node_modules/jsdom/test/level3/core/files/orig/datatype_normalization.svg.xsd
  236. +0 −90 node_modules/jsdom/test/level3/core/files/orig/datatype_normalization.xml
  237. +0 −212 node_modules/jsdom/test/level3/core/files/orig/datatype_normalization.xsd
  238. +0 −45 node_modules/jsdom/test/level3/core/files/orig/datatype_normalization2.svg
  239. +0 −60 node_modules/jsdom/test/level3/core/files/orig/datatype_normalization2.svg.xsd
  240. +0 −33 node_modules/jsdom/test/level3/core/files/orig/datatype_normalization2.xhtml
  241. +0 −33 node_modules/jsdom/test/level3/core/files/orig/datatype_normalization2.xml
  242. +0 −99 node_modules/jsdom/test/level3/core/files/orig/datatype_normalization2.xsd
  243. +0 −31 node_modules/jsdom/test/level3/core/files/orig/external_barfoo.svg
  244. +0 −33 node_modules/jsdom/test/level3/core/files/orig/external_barfoo.xhtml
  245. +0 −33 node_modules/jsdom/test/level3/core/files/orig/external_barfoo.xml
  246. BIN  node_modules/jsdom/test/level3/core/files/orig/external_foo.ent
  247. +0 −1  node_modules/jsdom/test/level3/core/files/orig/external_foobr.ent
  248. +0 −1  node_modules/jsdom/test/level3/core/files/orig/external_widget.ent
  249. +0 −10 node_modules/jsdom/test/level3/core/files/orig/hc_nodtdstaff.html
  250. +0 −10 node_modules/jsdom/test/level3/core/files/orig/hc_nodtdstaff.html.1
  251. +0 −10 node_modules/jsdom/test/level3/core/files/orig/hc_nodtdstaff.svg
  252. +0 −10 node_modules/jsdom/test/level3/core/files/orig/hc_nodtdstaff.xhtml
  253. +0 −10 node_modules/jsdom/test/level3/core/files/orig/hc_nodtdstaff.xml
  254. +0 −87 node_modules/jsdom/test/level3/core/files/orig/hc_staff.svg
  255. +0 −60 node_modules/jsdom/test/level3/core/files/orig/hc_staff.svg.xsd
  256. +0 −73 node_modules/jsdom/test/level3/core/files/orig/hc_staff.xhtml
  257. +0 −73 node_modules/jsdom/test/level3/core/files/orig/hc_staff.xml
  258. +0 −250 node_modules/jsdom/test/level3/core/files/orig/hc_staff.xsd
  259. BIN  node_modules/jsdom/test/level3/core/files/orig/image2.gif
Sorry, we could not display the entire diff because too many files (304) changed.
View
6 node_modules/jsdom/.gitignore
@@ -1,6 +0,0 @@
-.DS_Store
-.svn
-.*.swp
-gmon.out
-v8.log
-node_modules
View
22 node_modules/jsdom/LICENSE.txt
@@ -1,22 +0,0 @@
-Copyright (c) 2010 Elijah Insua
-
-Permission is hereby granted, free of charge, to any person
-obtaining a copy of this software and associated documentation
-files (the "Software"), to deal in the Software without
-restriction, including without limitation the rights to use,
-copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the
-Software is furnished to do so, subject to the following
-conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
-HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-OTHER DEALINGS IN THE SOFTWARE.
View
273 node_modules/jsdom/README.md
@@ -1,273 +0,0 @@
-# jsdom
-
-A javascript implementation of the W3C DOM.
-
-## Install
-
- npm install jsdom
-
-or
-
- git clone http://github.com/tmpvar/jsdom.git
- cd jsdom
- npm link
-
-## Easymode
-
-Bootstrapping a DOM is generally a difficult process involving many error prone steps. We didn't want jsdom to fall into the same trap and that is why a new method, `jsdom.env()`, has been added in jsdom 0.2.0 which should make everyone's lives easier.
-
-with URL
-
- // Count all of the links from the nodejs build page
- var jsdom = require("jsdom");
-
- jsdom.env("http://nodejs.org/dist/", [
- 'http://code.jquery.com/jquery-1.5.min.js'
- ],
- function(errors, window) {
- console.log("there have been", window.$("a").length, "nodejs releases!");
- });
-
-or with raw html
-
- // Run some jQuery on a html fragment
- var jsdom = require('jsdom');
-
- jsdom.env('<p><a class="the-link" href="http://jsdom.org>JSDOM\'s Homepage</a></p>', [
- 'http://code.jquery.com/jquery-1.5.min.js'
- ],
- function(errors, window) {
- console.log("contents of a.the-link:", window.$("a.the-link").text());
- });
-
-
-or with a configuration object
-
- // Print all of the news items on hackernews
- var jsdom = require('jsdom');
-
- jsdom.env({
- html: 'http://news.ycombinator.com/',
- scripts: [
- 'http://code.jquery.com/jquery-1.5.min.js'
- ],
- done: function(errors, window) {
- var $ = window.$;
- console.log('HN Links');
- $('td.title:not(:last) a').each(function() {
- console.log(' -', $(this).text());
- });
- }
- });
-
-or with raw javascript source
-
- // Print all of the news items on hackernews
- var jsdom = require('jsdom');
- var fs = require('fs');
- var jquery = fs.readFileSync("./jquery-1.6.2.min.js").toString();
-
- jsdom.env({
- html: 'http://news.ycombinator.com/',
- src: [
- jquery
- ],
- done: function(errors, window) {
- var $ = window.$;
- console.log('HN Links');
- $('td.title:not(:last) a').each(function() {
- console.log(' -', $(this).text());
- });
- }
- });
-
-### How it works
- `jsdom.env` is built for ease of use, which is rare in the world of the DOM! Since the web has some absolutely horrible javascript on it, as of jsdom 0.2.0 `jsdom.env` will not process external resources (scripts, images, etc). If you want to process the javascript use one of the methods below (`jsdom.jsdom` or `jsdom.jQueryify`)
-
- jsdom.env(html, [scripts], [config], callback)
-
- - `html` (**required**)
- May be a url, html fragment, or file
-
- - `scripts` (**optional**)
- May contain files or urls
-
- - `callback` (**required**)
- Takes 2 arguments:
- - `errors` : array of errors
- - `window` : a brand new window
-
- _example:_ jsdom.env(html, function(`errors`, `window`) {})
-
-
-If you would like to specify a configuration object
-
- jsdom.env({ /* config */ })
-
- - config.html : see `html` above
- - config.scripts : see `scripts` above
- - config.src : An array of javascript strings that will be evaluated against the resulting document. Similar to `scripts`, but it accepts javascript instead of paths/urls.
- - config.done : see `callback` above
-
-## For the hardcore
-
-If you want to spawn a document/window and specify all sorts of options this is the section for you. This section covers the `jsdom.jsdom` method:
-
- var jsdom = require("jsdom").jsdom,
- doc = jsdom(markup, level, options),
- window = doc.createWindow();
-
- - `markup` is an html/xml document to be parsed. You can also pass `null` or an undefined value to get a basic document with empty head and body tags. Document fragments are also supported (including `""`), and will behave as sanely as possible (eg. the resulting document will lack the `head`, `body` and `documentElement` properties if the corresponding elements aren't included).
- - `level` is `null` (which means level3) by default, but you can pass another level if you'd like.
-
-
- var jsdom = require('jsdom'),
- doc = jsdom.jsdom('<html><body></body></html>', jsdom.dom.level1.core)
-
- - `options` see the **Flexibility** section below
-
-### Flexibility
-
-One of the goals of jsdom is to be as minimal and light as possible. This section details how
-someone can change the behavior of `Document`s on the fly. These features are baked into
-the `DOMImplementation` that every `Document` has, and may be tweaked in two ways:
-
-1. When you create a new `Document` using the jsdom builder (`require('jsdom').jsdom()`)
-
- var jsdom = require('jsdom').jsdom,
- doc = jsdom("<html><body></body></html>", null, {
- features: {
- FetchExternalResources : ['img']
- }
- });
-
- Do note, that this will only affect the document that is currently being created. All other documents
-will use the defaults specified below (see: Default Features)
-
-2. Previous to creating any documents you can modify the defaults for all future documents
-
- require('jsdom').defaultDocumentFeatures = {
- FetchExternalResources : ['script'],
- ProcessExternalResources : false,
- MutationEvents : false,
- QuerySelector : false
- }
-
-
-
-#### Default Features
-
-Default features are extremely important for jsdom as they lower the configuration requirement and present developers a set of consistent default behaviors. The following sections detail the available features, their defaults, and the values that jsdom uses.
-
-
-`FetchExternalResources`
-_Default_: ['script']
-_Allowed_: ['script', 'img', 'css', 'frame', 'link'] or false
-
-Enables/Disables fetching files over the filesystem/http
-
-`ProcessExternalResources`
-_default_: ['script']
-_allowed_: ['script'] or false
-
-Disabling this will disable script execution (currently only javascript).
-
-`MutationEvents`
-_default_: '2.0'
-_allowed_ : '2.0' or false
-
-Initially enabled to be up to spec. Disable this if you do not need mutation events and want jsdom to be a bit more efficient.
-
-**Note**: `ProcessExternalResources` requires this to be enabled
-
-`QuerySelector`
-_default_ : false
-_allowed_ : true
-
-This feature is backed by [sizzle][] but currently causes problems with some libraries. Enable this if you want `document.querySelector` and friends, but be aware that many libraries feature detect for this, and it may cause you a bit of trouble.
-
-[sizzle]:http://sizzlejs.com/
-
-# More Examples
-
-## Creating a document-less window
-
- var jsdom = require("jsdom"),
- window = jsdom.createWindow();
-
- console.log(window.document);
- // output: undefined
-
-## Creating a document
- var jsdom = require("jsdom"),
- doc = new (jsdom.dom.level1.core.Document)();
- console.log(doc.nodeName);
- // outputs: #document
-
-## Creating a browser-like BOM/DOM/Window
-
- var jsdom = require("./lib/jsdom").jsdom,
- document = jsdom("<html><head></head><body>hello world</body></html>"),
- window = document.createWindow();
-
- console.log(window.document.innerHTML);
- // output: '<html><head></head><body>hello world</body></html>'
-
- console.log(window.innerWidth)
- // output: 1024
-
- console.log(typeof window.document.getElementsByClassName);
- // outputs: function
-
-
-## jQueryify
-
- var jsdom = require("jsdom"),
- window = jsdom.jsdom().createWindow();
-
- jsdom.jQueryify(window, 'http://code.jquery.com/jquery-1.4.2.min.js' , function() {
- window.$('body').append('<div class="testing">Hello World, It works</div>');
- console.log(window.$('.testing').text());
- });
-
-# Test Compliance:
-
- level1/core 529/529 100%
- level1/html 238/238 100%
- level1/svg 527/527 100%
- level2/core 283/283 100%
- level2/html 687/687 100%
- level2/style 3/3 100%
- level2/extra 4/4 100%
- level3/xpath 93/93 100%
- window 2/2 100%
- sizzle/index 12/15 80%
- jsdom/index 44/44 100%
- -------------------------------------
- TOTALS: 3/2425 failed; 99% success
- TIME: 9373ms
-
-
-## Running the tests
-
-First you'll want to `npm install -g nodeunit` then `npm install --dev`
-
-Using `test/runner` you can slice and dice which tests your want to run from different levels. Usage is as follows:
-
- test/runner --help
- Run the jsdom test suite
-
- Options:
- -s, --suites suites that you want to run. ie: -s level1/core,1/html,html [string]
- -f, --fail-fast stop on the first failed test
- -h, --help show the help
- -t, --tests choose the test cases to run. ie: -t jquery
-
-# More
-
-see: [mailing list][]
-see: [project site][] for additional information
-
- [mailing list]: http://groups.google.com/group/jsdom
- [project site]: http://www.jsdom.org
-
View
23 node_modules/jsdom/benchmark/mark.js
@@ -1,23 +0,0 @@
-// Taken from: http://ejohn.org/blog/javascript-benchmark-quality/
-module.exports = runTest(name, test, next, callback){
- var runs = [], r = 0;
- setTimeout(function(){
- var start = Date.now(), diff = 0;
-
- for ( var n = 0; diff < 1000; n++ ) {
- test();
- diff = Date.now() - start;
- }
-
- runs.push( n );
-
- if ( r++ < 4 )
- setTimeout( arguments.callee, 0 );
- else {
- done(name, runs);
- if ( next )
- setTimeout( next, 0 );
- }
- }, 0);
-}
-
View
0  node_modules/jsdom/benchmark/stats.json
No changes.
View
95 node_modules/jsdom/changelog
@@ -1,95 +0,0 @@
-0.2.5
- * Fix: serialize special characters in Element.textContent/Element.attributes like a grade A browser (Jason Priestley)
- * Fix: ensure Element.getElementById only returns elements that are attached to the document
- * Fix: ensure an Element's id is updated when changing the nodeValue of the 'id' attribute (Felix Gnass)
- * Add: stacktrace to error reporter (Josh Marshall)
- * Fix: events now bubble up to the window (Jason Davies)
- * Add: initial window.location.hash support (Josh Marshall)
- * Add: Node#insertBefore should do nothing when both params are the same node (Jason Davies)
- * Add: fixes for DOMAttrModified mutation events (Felix Gnass)
-
-0.2.4
- * Fix: adding script to invalid/incomplete dom (document.documentElement) now catches the error and passes it in the `.env` callback (Gregory Tomlinson)
- * Cleanup: trigger and html tests
- * Add: support for inline event handlers (ie: <div onclick='some.horrible.string()'>) (Brian McDaniel)
- * Fix: script loading over https (Brian McDaniel) #280
- * Add: using style.setProperty updates the style attribute (Jimmy Mabey).
- * Add: invalid markup is reported as an error and attached to the associated element and document
- * Fix: crash when setChild() failes to create new DOM element (John Hurliman)
- * Added test for issue #287.
- * Added support for inline event handlers.
- * Moved frame tests to test/window/frame.js and cleaned up formatting.
- * Moved script execution tests to test/window/script.js.
- * Fix a crash when setChild() fails to create a new DOM element
- * Override CSSOM to update style attribute
-
-0.2.3
- * Fix: segfault due to window being garbage collected prematurely
- NOTE: you must manually close the window to free memory (window.close())
-
-0.2.2
- * Switch to Contextify to manage the window's script execution.
- * Fix: allow nodelists to have a length of 0 and toArray to return an empty array
- * Fix: style serialization; issues #230 and #259
- * Fix: Incomplete DOCTYPE causes JavaScript error
- * Fix: indentation, removed outdated debug code and trailing whitespace.
- * Prevent JavaScript error when parsing incomplete <!DOCTYPE>. Closes #259.
- * Adding a test from brianmcd that ensures that setTimeout callbacks execute in the context of the window
- * Fixes issue 250: make document.parentWindow===window work
- * Added test to ensure that timer callbacks execute in the window context.
- * Fixes 2 issues in ResourceQueue
- * Make frame/iframe load/process scripts if the parent has the features enabled
-
-0.2.1
- * Javascript execution fixes [#248, #163, #179]
- * XPath (Yonathan and Daniel Cassidy)
- * Start of cssom integration (Yonathan)
- * Conversion of tests to nodeunit! (Martin Davis)
- * Added sizzle tests, only failing 3/15
- * Set the title node's textContent rather than its innerHTML [#242]. (Andreas Lind Petersen)
- * The textContent getter now walks the DOM and extract the text properly. (Andreas Lind Petersen)
- * Empty scripts won't cause jsdom.env to hang [#172] (Karuna Sagar)
- * Every document has either a body or a frameset [#82]. (Karuna Sagar)
- * Added the ability to grab a level by string + feature. ie: jsdom.level(2, 'html') (Aria Stewart)
- * Cleaned up htmlencoding and fixed character (de)entification [#147, #177] (Andreas Lind Petersen)
- * htmlencoding.HTMLDecode: Fixed decoding of `&lt;`, `&gt;`, `&amp;`, and `&apos;`. Closes #147 and #177. ()
- * Require dom level as a string or object. (Aria Stewart)
- * JS errors ar triggered on the script element, not document. (Yonathan)
- * Added configuration property 'headers' for HTTP request headers. (antonj)
- * Attr.specified is readonly - Karuna Sagar
- * Removed return value from setAttributeNS() [#207] (Karuna Sagar)
- * Pass the correct script filename to runInContext. (robin)
- * Add http referrer support for the download() function. (Robin)
- * First attempt at fixing the horrible memory leak via window.stopTimers() (d-ash)
- * Use vm instead of evals binding (d-ash)
- * Add a way to set the encoding of the jsdom.env html request.
- * Fixed various typos/lint problems (d-ash)
- * The first parameter download is now the object returned by URL.parse(). (Robin)
- * Fixed serialization of elements with a style attribute.
- * Added src config option to jsdom.env() (Jerry Sievert)
- * Removed dead code from getNamedItemNS() (Karuna Sagar)
- * Changes to language/javascript so jsdom would work on v0.5.0-pre (Gord Tanner)
- * Correct spelling of "Hierarchy request error" (Daniel Cassidy)
- * Node and Exception type constants are available in all levels. (Daniel Cassidy)
- * Use \n instead of \r\n during serialization
- * Fixed auto-insertion of body/html tags (Adrian Makowski)
- * Adopt unowned nodes when added to the tree. (Aria Stewart)
- * Fix the selected and defaultSelected fields of `option` element. - Yonathan
- * Fix: EventTarget.getListeners() now returns a shallow copy so that listeners can be safely removed while an event is being dispatched. (Felix Gnass)
- * Added removeEventListener() to DOMWindow (Felix Gnass)
- * Added the ability to pre-load scripts for jsdom.env() (Jerry Sievert)
- * Mutation event tests/fixes (Felix Gnass)
- * Changed HTML serialization code to (optionally) pretty print while traversing the tree instead of doing a regexp-based postprocessing. (Andreas Lind Petersen)
- * Relative and absolute urls now work as expected
- * setNamedItem no longer sets Node.parentNode [#153] (Karuna Sagar)
- * Added missing semicolon after entity name - Felix Gnass
- * Added NodeList#indexOf implementation/tests (Karuna Sagar)
- * resourceLoader.download now works correctly with https and redirects (waslogic)
- * Scheme-less URLs default to the current protocol [#87] (Alexander Flatter)
- * Simplification the prevSibling(), appendChild(), insertBefore() and replaceChild() code (Karuna Sagar)
- * Javascript errors use core.Node.trigger (Alexander Flatter)
- * Add core.Document.trigger in level1/core and level2/events; Make DOMWindow.console use it (Alexander Flatter)
- * Resource resolver fixes (Alexander Flatter)
- * Fix serialization of doctypes with new lines [#148] (Karuna Sagar)
- * Child nodes are calculated immediately instead of after .length is called [#169, #171, #176] (Karuna Sagar)
-
View
37 node_modules/jsdom/example/browser/browser.js
@@ -1,37 +0,0 @@
-
-var sys = require('sys');
-
-var dom = require('../../lib/jsdom/level2/html').dom.level2.html;
-var browser = require('../../lib/jsdom/browser/index').windowAugmentation(dom);
-
-var document = browser.document;
-var window = browser.window;
-var self = browser.self;
-var navigator = browser.navigator;
-var location = browser.location;
-
-document.title = 'Test Title';
-
-//GLOBAL
-var el = document.createElement('div');
-el.id = 'foo';
-el.innerHTML = '<em>This is a test</em> This <strong class="odd">is another</strong> test ';
-document.body.appendChild(el);
-
-//SCOPED
-var el2 = browser.document.createElement('div');
-el2.id = 'foo2bar';
-el2.innerHTML = '<em class="odd">This is a test</em> This <strong>is another</strong> test ';
-browser.document.body.appendChild(el2);
-
-sys.puts('getElementByid(foo2bar): ' + browser.document.getElementById('foo2bar'));
-sys.puts('getElementByid(foo): ' + browser.document.getElementById('foo'));
-sys.puts('getElementByTagName(em): ' + browser.document.getElementsByTagName('em'));
-sys.puts('getElementByClassName(odd): ' + browser.document.getElementsByClassName('odd'));
-
-sys.puts('');
-sys.puts('document.body.outerHTML: ');
-sys.puts(document.body.outerHTML);
-
-sys.puts('document.outerHTML: ');
-sys.puts(document.outerHTML);
View
1,170 node_modules/jsdom/example/ender/ender.js
@@ -1,1170 +0,0 @@
-/*!
- * Ender-JS: open module JavaScript framework (client-lib)
- * copyright Dustin Diaz & Jacob Thornton 2011 (@ded @fat)
- * https://ender.no.de
- * License MIT
- * Build: ender -b qwery bonzo
- */
-!function (context) {
-
- // Implements simple module system
- // losely based on CommonJS Modules spec v1.1.1
- // ============================================
-
- var modules = {};
-
- function require (identifier) {
- var module = modules[identifier] || window[identifier];
- if (!module) throw new Error("Requested module has not been defined.");
- return module;
- }
-
- function provide (name, what) {
- return modules[name] = what;
- }
-
- context['provide'] = provide;
- context['require'] = require;
-
- // Implements Ender's $ global access object
- // =========================================
-
- function aug(o, o2) {
- for (var k in o2) {
- k != 'noConflict' && k != '_VERSION' && (o[k] = o2[k]);
- }
- return o;
- }
-
- function boosh(s, r, els) {
- // string || node || nodelist || window
- if (ender._select && (typeof s == 'string' || s.nodeName || s.length && 'item' in s || s == window)) {
- els = ender._select(s, r);
- els.selector = s;
- } else {
- els = isFinite(s.length) ? s : [s];
- }
- return aug(els, boosh);
- }
-
- function ender(s, r) {
- return boosh(s, r);
- }
-
- aug(ender, {
- _VERSION: '0.2.5',
- ender: function (o, chain) {
- aug(chain ? boosh : ender, o);
- },
- fn: context.$ && context.$.fn || {} // for easy compat to jQuery plugins
- });
-
- aug(boosh, {
- forEach: function (fn, scope, i) {
- // opt out of native forEach so we can intentionally call our own scope
- // defaulting to the current item and be able to return self
- for (i = 0, l = this.length; i < l; ++i) {
- i in this && fn.call(scope || this[i], this[i], i, this);
- }
- // return self for chaining
- return this;
- },
- $: ender // handy reference to self
- });
-
- var old = context.$;
- ender.noConflict = function () {
- context.$ = old;
- return this;
- };
-
- (typeof module !== 'undefined') && module.exports && (module.exports = ender);
- // use subscript notation as extern for Closure compilation
- context['ender'] = context['$'] = ender;
-
-}(this);
-/*!
- * Qwery - A Blazing Fast query selector engine
- * https://github.com/ded/qwery
- * copyright Dustin Diaz & Jacob Thornton 2011
- * MIT License
- */
-
-!function (context, doc) {
-
- var c, i, j, k, l, m, o, p, r, v,
- el, node, len, found, classes, item, items, token,
- html = doc.documentElement,
- id = /#([\w\-]+)/,
- clas = /\.[\w\-]+/g,
- idOnly = /^#([\w\-]+$)/,
- classOnly = /^\.([\w\-]+)$/,
- tagOnly = /^([\w\-]+)$/,
- tagAndOrClass = /^([\w]+)?\.([\w\-]+)$/,
- normalizr = /\s*([\s\+\~>])\s*/g,
- splitters = /[\s\>\+\~]/,
- splittersMore = /(?![\s\w\-\/\?\&\=\:\.\(\)\!,@#%<>\{\}\$\*\^'"]*\])/,
- dividers = new RegExp('(' + splitters.source + ')' + splittersMore.source, 'g'),
- tokenizr = new RegExp(splitters.source + splittersMore.source),
- specialChars = /([.*+?\^=!:${}()|\[\]\/\\])/g,
- simple = /^([a-z0-9]+)?(?:([\.\#]+[\w\-\.#]+)?)/,
- attr = /\[([\w\-]+)(?:([\|\^\$\*\~]?\=)['"]?([ \w\-\/\?\&\=\:\.\(\)\!,@#%<>\{\}\$\*\^]+)["']?)?\]/,
- pseudo = /:([\w\-]+)(\(['"]?(\w+)['"]?\))?/,
- chunker = new RegExp(simple.source + '(' + attr.source + ')?' + '(' + pseudo.source + ')?'),
- walker = {
- ' ': function (node) {
- return node && node !== html && node.parentNode
- },
- '>': function (node, contestant) {
- return node && node.parentNode == contestant.parentNode && node.parentNode;
- },
- '~': function (node) {
- return node && node.previousSibling;
- },
- '+': function (node, contestant, p1, p2) {
- if (!node) {
- return false;
- }
- p1 = previous(node);
- p2 = previous(contestant);
- return p1 && p2 && p1 == p2 && p1;
- }
- };
- function cache() {
- this.c = {};
- }
- cache.prototype = {
- g: function (k) {
- return this.c[k] || undefined;
- },
- s: function (k, v) {
- this.c[k] = v;
- return v;
- }
- };
-
- var classCache = new cache(),
- cleanCache = new cache(),
- attrCache = new cache(),
- tokenCache = new cache();
-
- function array(ar) {
- r = [];
- for (i = 0, len = ar.length; i < len; i++) {
- r[i] = ar[i];
- }
- return r;
- }
-
- function previous(n) {
- while (n = n.previousSibling) {
- if (n.nodeType == 1) {
- break;
- }
- }
- return n
- }
-
- function q(query) {
- return query.match(chunker);
- }
-
- // this next method expect at most these args
- // given => div.hello[title="world"]:foo('bar')
-
- // div.hello[title="world"]:foo('bar'), div, .hello, [title="world"], title, =, world, :foo('bar'), foo, ('bar'), bar]
-
- function interpret(whole, tag, idsAndClasses, wholeAttribute, attribute, qualifier, value, wholePseudo, pseudo, wholePseudoVal, pseudoVal) {
- var m, c, k;
- if (tag && this.tagName.toLowerCase() !== tag) {
- return false;
- }
- if (idsAndClasses && (m = idsAndClasses.match(id)) && m[1] !== this.id) {
- return false;
- }
- if (idsAndClasses && (classes = idsAndClasses.match(clas))) {
- for (i = classes.length; i--;) {
- c = classes[i].slice(1);
- if (!(classCache.g(c) || classCache.s(c, new RegExp('(^|\\s+)' + c + '(\\s+|$)'))).test(this.className)) {
- return false;
- }
- }
- }
- if (pseudo && qwery.pseudos[pseudo] && !qwery.pseudos[pseudo](this, pseudoVal)) {
- return false;
- }
- if (wholeAttribute && !value) {
- o = this.attributes;
- for (k in o) {
- if (Object.prototype.hasOwnProperty.call(o, k) && (o[k].name || k) == attribute) {
- return this;
- }
- }
- }
- if (wholeAttribute && !checkAttr(qualifier, this.getAttribute(attribute) || '', value)) {
- return false;
- }
- return this;
- }
-
- function clean(s) {
- return cleanCache.g(s) || cleanCache.s(s, s.replace(specialChars, '\\$1'));
- }
-
- function checkAttr(qualify, actual, val) {
- switch (qualify) {
- case '=':
- return actual == val;
- case '^=':
- return actual.match(attrCache.g('^=' + val) || attrCache.s('^=' + val, new RegExp('^' + clean(val))));
- case '$=':
- return actual.match(attrCache.g('$=' + val) || attrCache.s('$=' + val, new RegExp(clean(val) + '$')));
- case '*=':
- return actual.match(attrCache.g(val) || attrCache.s(val, new RegExp(clean(val))));
- case '~=':
- return actual.match(attrCache.g('~=' + val) || attrCache.s('~=' + val, new RegExp('(?:^|\\s+)' + clean(val) + '(?:\\s+|$)')));
- case '|=':
- return actual.match(attrCache.g('|=' + val) || attrCache.s('|=' + val, new RegExp('^' + clean(val) + '(-|$)')));
- }
- return 0;
- }
-
- function _qwery(selector) {
- var r = [], ret = [], i, j = 0, k, l, m, p, token, tag, els, root, intr, item, children,
- tokens = tokenCache.g(selector) || tokenCache.s(selector, selector.split(tokenizr)),
- dividedTokens = selector.match(dividers), dividedToken;
- tokens = tokens.slice(0); // this makes a copy of the array so the cached original is not effected
- if (!tokens.length) {
- return r;
- }
-
- token = tokens.pop();
- root = tokens.length && (m = tokens[tokens.length - 1].match(idOnly)) ? doc.getElementById(m[1]) : doc;
- if (!root) {
- return r;
- }
- intr = q(token);
- els = dividedTokens && /^[+~]$/.test(dividedTokens[dividedTokens.length - 1]) ? function (r) {
- while (root = root.nextSibling) {
- root.nodeType == 1 && (intr[1] ? intr[1] == root.tagName.toLowerCase() : 1) && r.push(root)
- }
- return r
- }([]) :
- root.getElementsByTagName(intr[1] || '*');
- for (i = 0, l = els.length; i < l; i++) {
- if (item = interpret.apply(els[i], intr)) {
- r[j++] = item;
- }
- }
- if (!tokens.length) {
- return r;
- }
-
- // loop through all descendent tokens
- for (j = 0, l = r.length, k = 0; j < l; j++) {
- p = r[j];
- // loop through each token backwards crawling up tree
- for (i = tokens.length; i--;) {
- // loop through parent nodes
- while (p = walker[dividedTokens[i]](p, r[j])) {
- if (found = interpret.apply(p, q(tokens[i]))) {
- break;
- }
- }
- }
- found && (ret[k++] = r[j]);
- }
- return ret;
- }
-
- function boilerPlate(selector, _root, fn) {
- var root = (typeof _root == 'string') ? fn(_root)[0] : (_root || doc);
- if (selector === window || isNode(selector)) {
- return !_root || (selector !== window && isNode(root) && isAncestor(selector, root)) ? [selector] : [];
- }
- if (selector && typeof selector === 'object' && isFinite(selector.length)) {
- return array(selector);
- }
- if (m = selector.match(idOnly)) {
- return (el = doc.getElementById(m[1])) ? [el] : [];
- }
- if (m = selector.match(tagOnly)) {
- return array(root.getElementsByTagName(m[1]));
- }
- return false;
- }
-
- function isNode(el) {
- return (el && el.nodeType && (el.nodeType == 1 || el.nodeType == 9));
- }
-
- function uniq(ar) {
- var a = [], i, j;
- label:
- for (i = 0; i < ar.length; i++) {
- for (j = 0; j < a.length; j++) {
- if (a[j] == ar[i]) {
- continue label;
- }
- }
- a[a.length] = ar[i];
- }
- return a;
- }
-
- function qwery(selector, _root) {
- var root = (typeof _root == 'string') ? qwery(_root)[0] : (_root || doc);
- if (!root || !selector) {
- return [];
- }
- if (m = boilerPlate(selector, _root, qwery)) {
- return m;
- }
- return select(selector, root);
- }
-
- var isAncestor = 'compareDocumentPosition' in html ?
- function (element, container) {
- return (container.compareDocumentPosition(element) & 16) == 16;
- } : 'contains' in html ?
- function (element, container) {
- container = container == doc || container == window ? html : container;
- return container !== element && container.contains(element);
- } :
- function (element, container) {
- while (element = element.parentNode) {
- if (element === container) {
- return 1;
- }
- }
- return 0;
- },
-
- select = (doc.querySelector && doc.querySelectorAll) ?
- function (selector, root) {
- if (doc.getElementsByClassName && (m = selector.match(classOnly))) {
- return array((root).getElementsByClassName(m[1]));
- }
- return array((root).querySelectorAll(selector));
- } :
- function (selector, root) {
- selector = selector.replace(normalizr, '$1');
- var result = [], collection, collections = [], i;
- if (m = selector.match(tagAndOrClass)) {
- items = root.getElementsByTagName(m[1] || '*');
- r = classCache.g(m[2]) || classCache.s(m[2], new RegExp('(^|\\s+)' + m[2] + '(\\s+|$)'));
- for (i = 0, l = items.length, j = 0; i < l; i++) {
- r.test(items[i].className) && (result[j++] = items[i]);
- }
- return result;
- }
- for (i = 0, items = selector.split(','), l = items.length; i < l; i++) {
- collections[i] = _qwery(items[i]);
- }
- for (i = 0, l = collections.length; i < l && (collection = collections[i]); i++) {
- var ret = collection;
- if (root !== doc) {
- ret = [];
- for (j = 0, m = collection.length; j < m && (element = collection[j]); j++) {
- // make sure element is a descendent of root
- isAncestor(element, root) && ret.push(element);
- }
- }
- result = result.concat(ret);
- }
- return uniq(result);
- };
-
- qwery.uniq = uniq;
- qwery.pseudos = {};
-
- var oldQwery = context.qwery;
- qwery.noConflict = function () {
- context.qwery = oldQwery;
- return this;
- };
- context['qwery'] = qwery;
-
-}(this, document);!function (doc) {
- var q = qwery.noConflict();
- var table = 'table',
- nodeMap = {
- thead: table,
- tbody: table,
- tfoot: table,
- tr: 'tbody',
- th: 'tr',
- td: 'tr',
- fieldset: 'form',
- option: 'select'
- }
- function create(node, root) {
- var tag = /^<([^\s>]+)/.exec(node)[1]
- var el = (root || doc).createElement(nodeMap[tag] || 'div'), els = [];
- el.innerHTML = node;
- var nodes = el.childNodes;
- el = el.firstChild;
- els.push(el);
- while (el = el.nextSibling) {
- (el.nodeType == 1) && els.push(el);
- }
- return els;
- }
- $._select = function (s, r) {
- return /^\s*</.test(s) ? create(s, r) : q(s, r);
- };
- $.pseudos = q.pseudos;
- $.ender({
- find: function (s) {
- var r = [], i, l, j, k, els;
- for (i = 0, l = this.length; i < l; i++) {
- els = q(s, this[i]);
- for (j = 0, k = els.length; j < k; j++) {
- r.push(els[j]);
- }
- }
- return $(q.uniq(r));
- }
- , and: function (s) {
- var plus = $(s);
- for (var i = this.length, j = 0, l = this.length + plus.length; i < l; i++, j++) {
- this[i] = plus[j];
- }
- return this;
- }
- }, true);
-}(document);
-/*!
- * bonzo.js - copyright @dedfat 2011
- * https://github.com/ded/bonzo
- * Follow our software http://twitter.com/dedfat
- * MIT License
- */
-!function (context, win) {
-
- var doc = context.document,
- html = doc.documentElement,
- parentNode = 'parentNode',
- query = null,
- byTag = 'getElementsByTagName',
- specialAttributes = /^checked|value|selected$/,
- specialTags = /select|fieldset|table|tbody|tfoot|td|tr|colgroup/i,
- table = 'table',
- tagMap = { thead: table, tbody: table, tfoot: table, tr: 'tbody', th: 'tr', td: 'tr', fieldset: 'form', option: 'select' },
- stateAttributes = /^checked|selected$/,
- ie = /msie/i.test(navigator.userAgent),
- uidList = [],
- uuids = 0,
- digit = /^-?[\d\.]+$/,
- px = 'px',
- // commonly used methods
- setAttribute = 'setAttribute',
- getAttribute = 'getAttribute',
- trimReplace = /(^\s*|\s*$)/g,
- unitless = { lineHeight: 1, zoom: 1, zIndex: 1, opacity: 1 };
-
- function classReg(c) {
- return new RegExp("(^|\\s+)" + c + "(\\s+|$)");
- }
-
- function each(ar, fn, scope) {
- for (var i = 0, l = ar.length; i < l; i++) {
- fn.call(scope || ar[i], ar[i], i, ar);
- }
- return ar;
- }
-
- var trim = String.prototype.trim ?
- function (s) {
- return s.trim();
- } :
- function (s) {
- return s.replace(trimReplace, '');
- };
-
- function camelize(s) {
- return s.replace(/-(.)/g, function (m, m1) {
- return m1.toUpperCase();
- });
- }
-
- function is(node) {
- return node && node.nodeName && node.nodeType == 1;
- }
-
- function some(ar, fn, scope) {
- for (var i = 0, j = ar.length; i < j; ++i) {
- if (fn.call(scope, ar[i], i, ar)) {
- return true;
- }
- }
- return false;
- }
-
- var getStyle = doc.defaultView && doc.defaultView.getComputedStyle ?
- function (el, property) {
- var value = null;
- if (property == 'float') {
- property = 'cssFloat';
- }
- var computed = doc.defaultView.getComputedStyle(el, '');
- computed && (value = computed[camelize(property)]);
- return el.style[property] || value;
-
- } : (ie && html.currentStyle) ?
-
- function (el, property) {
- property = camelize(property);
- property = property == 'float' ? 'styleFloat' : property;
-
- if (property == 'opacity') {
- var val = 100;
- try {
- val = el.filters['DXImageTransform.Microsoft.Alpha'].opacity;
- } catch (e1) {
- try {
- val = el.filters('alpha').opacity;
- } catch (e2) {}
- }
- return val / 100;
- }
- var value = el.currentStyle ? el.currentStyle[property] : null;
- return el.style[property] || value;
- } :
-
- function (el, property) {
- return el.style[camelize(property)];
- };
-
- function insert(target, host, fn) {
- var i = 0, self = host || this, r = [],
- nodes = query && typeof target == 'string' && target.charAt(0) != '<' ? function (n) {
- return (n = query(target)) && (n.selected = 1) && n;
- }() : target;
- each(normalize(nodes), function (t) {
- each(self, function (el) {
- var n = !el[parentNode] || (el[parentNode] && !el[parentNode][parentNode]) ?
- function () {
- var c = el.cloneNode(true);
- self.$ && self.cloneEvents && self.$(c).cloneEvents(el);
- return c;
- }() :
- el;
- fn(t, n);
- r[i] = n;
- i++;
- });
- }, this);
- each(r, function (e, i) {
- self[i] = e;
- });
- self.length = i;
- return self;
- }
-
- function xy(el, x, y) {
- var $el = bonzo(el),
- style = $el.css('position'),
- offset = $el.offset(),
- rel = 'relative',
- isRel = style == rel,
- delta = [parseInt($el.css('left'), 10), parseInt($el.css('top'), 10)];
-
- if (style == 'static') {
- $el.css('position', rel);
- style = rel;
- }
-
- isNaN(delta[0]) && (delta[0] = isRel ? 0 : el.offsetLeft);
- isNaN(delta[1]) && (delta[1] = isRel ? 0 : el.offsetTop);
-
- x !== null && (el.style.left = x - offset.left + delta[0] + 'px');
- y !== null && (el.style.top = y - offset.top + delta[1] + 'px');
-
- }
-
- function Bonzo(elements) {
- this.length = 0;
- if (elements) {
- elements = typeof elements !== 'string' &&
- !elements.nodeType &&
- typeof elements.length !== 'undefined' ?
- elements :
- [elements];
- this.length = elements.length;
- for (var i = 0; i < elements.length; i++) {
- this[i] = elements[i];
- }
- }
- }
-
- Bonzo.prototype = {
-
- each: function (fn, scope) {
- return each(this, fn, scope);
- },
-
- map: function (fn, reject) {
- var m = [], n, i;
- for (i = 0; i < this.length; i++) {
- n = fn.call(this, this[i]);
- reject ? (reject(n) && m.push(n)) : m.push(n);
- }
- return m;
- },
-
- first: function () {
- return bonzo(this[0]);
- },
-
- last: function () {
- return bonzo(this[this.length - 1]);
- },
-
- html: function (h, text) {
- var method = text ?
- html.textContent == null ?
- 'innerText' :
- 'textContent' :
- 'innerHTML', m;
- function append(el) {
- while (el.firstChild) {
- el.removeChild(el.firstChild);
- }
- each(normalize(h), function (node) {
- el.appendChild(node);
- });
- }
- return typeof h !== 'undefined' ?
- this.each(function (el) {
- (m = el.tagName.match(specialTags)) ?
- append(el, m[0]) :
- (el[method] = h);
- }) :
- this[0] ? this[0][method] : '';
- },
-
- text: function (text) {
- return this.html(text, 1);
- },
-
- addClass: function (c) {
- return this.each(function (el) {
- this.hasClass(el, c) || (el.className = trim(el.className + ' ' + c));
- }, this);
- },
-
- removeClass: function (c) {
- return this.each(function (el) {
- this.hasClass(el, c) && (el.className = trim(el.className.replace(classReg(c), ' ')));
- }, this);
- },
-
- hasClass: function (el, c) {
- return typeof c == 'undefined' ?
- some(this, function (i) {
- return classReg(el).test(i.className);
- }) :
- classReg(c).test(el.className);
- },
-
- toggleClass: function (c, condition) {
- if (typeof condition !== 'undefined' && !condition) {
- return this;
- }
- return this.each(function (el) {
- this.hasClass(el, c) ?
- (el.className = trim(el.className.replace(classReg(c), ' '))) :
- (el.className = trim(el.className + ' ' + c));
- }, this);
- },
-
- show: function (type) {
- return this.each(function (el) {
- el.style.display = type || '';
- });
- },
-
- hide: function (elements) {
- return this.each(function (el) {
- el.style.display = 'none';
- });
- },
-
- append: function (node) {
- return this.each(function (el) {
- each(normalize(node), function (i) {
- el.appendChild(i);
- });
- });
- },
-
- prepend: function (node) {
- return this.each(function (el) {
- var first = el.firstChild;
- each(normalize(node), function (i) {
- el.insertBefore(i, first);
- });
- });
- },
-
- appendTo: function (target, host) {
- return insert.call(this, target, host, function (t, el) {
- t.appendChild(el);
- });
- },
-
- prependTo: function (target, host) {
- return insert.call(this, target, host, function (t, el) {
- t.insertBefore(el, t.firstChild);
- });
- },
-
- next: function () {
- return this.related('nextSibling');
- },
-
- previous: function () {
- return this.related('previousSibling');
- },
-
- related: function (method) {
- return this.map(
- function (el) {
- el = el[method];
- while (el && el.nodeType !== 1) {
- el = el[method];
- }
- return el || 0;
- },
- function (el) {
- return el;
- }
- );
- },
-
- before: function (node) {
- return this.each(function (el) {
- each(bonzo.create(node), function (i) {
- el[parentNode].insertBefore(i, el);
- });
- });
- },
-
- after: function (node) {
- return this.each(function (el) {
- each(bonzo.create(node), function (i) {
- el[parentNode].insertBefore(i, el.nextSibling);
- });
- });
- },
-
- insertBefore: function (target, host) {
- return insert.call(this, target, host, function (t, el) {
- t[parentNode].insertBefore(el, t);
- });
- },
-
- insertAfter: function (target, host) {
- return insert.call(this, target, host, function (t, el) {
- var sibling = t.nextSibling;
- if (sibling) {
- t[parentNode].insertBefore(el, sibling);
- }
- else {
- t[parentNode].appendChild(el);
- }
- });
- },
-
- css: function (o, v, p) {
- // is this a request for just getting a style?
- if (v === undefined && typeof o == 'string') {
- // repurpose 'v'
- v = this[0];
- if (!v) {
- return null;
- }
- if (v == doc || v == win) {
- p = (v == doc) ? bonzo.doc() : bonzo.viewport();
- return o == 'width' ? p.width :
- o == 'height' ? p.height : '';
- }
- return getStyle(v, o);
- }
- var iter = o;
- if (typeof o == 'string') {
- iter = {};
- iter[o] = v;
- }
-
- if (ie && iter.opacity) {
- // oh this 'ol gamut
- iter.filter = 'alpha(opacity=' + (iter.opacity * 100) + ')';
- // give it layout
- iter.zoom = o.zoom || 1;
- delete iter.opacity;
- }
-
- if (v = iter['float']) {
- // float is a reserved style word. w3 uses cssFloat, ie uses styleFloat
- ie ? (iter.styleFloat = v) : (iter.cssFloat = v);
- delete iter['float'];
- }
-
- var fn = function (el, p, v) {
- for (var k in iter) {
- if (iter.hasOwnProperty(k)) {
- v = iter[k];
- // change "5" to "5px" - unless you're line-height, which is allowed
- (p = camelize(k)) && digit.test(v) && !(p in unitless) && (v += px);
- el.style[p] = v;
- }
- }
- };
- return this.each(fn);
- },
-
- offset: function (x, y) {
- if (x || y) {
- return this.each(function (el) {
- xy(el, x, y);
- });
- }
- var el = this[0];
- var width = el.offsetWidth;
- var height = el.offsetHeight;
- var top = el.offsetTop;
- var left = el.offsetLeft;
- while (el = el.offsetParent) {
- top = top + el.offsetTop;
- left = left + el.offsetLeft;
- }
-
- return {
- top: top,
- left: left,
- height: height,
- width: width
- };
- },
-
- attr: function (k, v) {
- var el = this[0];
- return typeof v == 'undefined' ?
- specialAttributes.test(k) ?
- stateAttributes.test(k) && typeof el[k] == 'string' ?
- true : el[k] : el[getAttribute](k) :
- this.each(function (el) {
- k == 'value' ? (el.value = v) : el[setAttribute](k, v);
- });
- },
-
- val: function (s) {
- return (typeof s == 'string') ? this.attr('value', s) : this[0].value;
- },
-
- removeAttr: function (k) {
- return this.each(function (el) {
- el.removeAttribute(k);
- });
- },
-
- data: function (k, v) {
- var el = this[0];
- if (typeof v === 'undefined') {
- el[getAttribute]('data-node-uid') || el[setAttribute]('data-node-uid', ++uuids);
- var uid = el[getAttribute]('data-node-uid');
- uidList[uid] || (uidList[uid] = {});
- return uidList[uid][k];
- } else {
- return this.each(function (el) {
- el[getAttribute]('data-node-uid') || el[setAttribute]('data-node-uid', ++uuids);
- var uid = el[getAttribute]('data-node-uid');
- var o = {};
- o[k] = v;
- uidList[uid] = o;
- });
- }
- },
-
- remove: function () {
- return this.each(function (el) {
- el[parentNode] && el[parentNode].removeChild(el);
- });
- },
-
- empty: function () {
- return this.each(function (el) {
- while (el.firstChild) {
- el.removeChild(el.firstChild);
- }
- });
- },
-
- detach: function () {
- return this.map(function (el) {
- return el[parentNode].removeChild(el);
- });
- },
-
- scrollTop: function (y) {
- return scroll.call(this, null, y, 'y');
- },
-
- scrollLeft: function (x) {
- return scroll.call(this, x, null, 'x');
- }
- };
-
- function normalize(node) {
- return typeof node == 'string' ? bonzo.create(node) : is(node) ? [node] : node; // assume [nodes]
- }
-
- function scroll(x, y, type) {
- var el = this[0];
- if (x == null && y == null) {
- return (isBody(el) ? getWindowScroll() : { x: el.scrollLeft, y: el.scrollTop })[type];
- }
- if (isBody(el)) {
- win.scrollTo(x, y);
- } else {
- x != null && (el.scrollLeft = x);
- y != null && (el.scrollTop = y);
- }
- return this;
- }
-
- function isBody(element) {
- return element === win || (/^(?:body|html)$/i).test(element.tagName);
- }
-
- function getWindowScroll() {
- return { x: win.pageXOffset || html.scrollLeft, y: win.pageYOffset || html.scrollTop };
- }
-
- function bonzo(els, host) {
- return new Bonzo(els, host);
- }
-
- bonzo.setQueryEngine = function (q) {
- query = q;
- delete bonzo.setQueryEngine;
- };
-
- bonzo.aug = function (o, target) {
- for (var k in o) {
- o.hasOwnProperty(k) && ((target || Bonzo.prototype)[k] = o[k]);
- }
- };
-
- bonzo.create = function (node) {
- return typeof node == 'string' ?
- function () {
- var tag = /^<([^\s>]+)/.exec(node);
- var el = doc.createElement(tag && tagMap[tag[1].toLowerCase()] || 'div'), els = [];
- el.innerHTML = node;
- var nodes = el.childNodes;
- el = el.firstChild;
- els.push(el);
- while (el = el.nextSibling) {
- (el.nodeType == 1) && els.push(el);
- }
- return els;
-
- }() : is(node) ? [node.cloneNode(true)] : [];
- };
-
- bonzo.doc = function () {
- var w = html.scrollWidth,
- h = html.scrollHeight,
- vp = this.viewport();
- return {
- width: Math.max(w, vp.width),
- height: Math.max(h, vp.height)
- };
- };
-
- bonzo.firstChild = function (el) {
- for (var c = el.childNodes, i = 0, j = (c && c.length) || 0, e; i < j; i++) {
- if (c[i].nodeType === 1) {
- e = c[j = i];
- }
- }
- return e;
- };
-
- bonzo.viewport = function () {
- var h = self.innerHeight,
- w = self.innerWidth;
- if (ie) {
- h = html.clientHeight;
- w = html.clientWidth;
- }
- return {
- width: w,
- height: h
- };
- };
-
- bonzo.isAncestor = 'compareDocumentPosition' in html ?
- function (container, element) {
- return (container.compareDocumentPosition(element) & 16) == 16;
- } : 'contains' in html ?
- function (container, element) {
- return container !== element && container.contains(element);
- } :
- function (container, element) {
- while (element = element[parentNode]) {
- if (element === container) {
- return true;
- }
- }
- return false;
- };
-
- var old = context.bonzo;
- bonzo.noConflict = function () {
- context.bonzo = old;
- return this;
- };
- context['bonzo'] = bonzo;
-
-}(this, window);!function ($) {
-
- var b = bonzo;
- b.setQueryEngine($);
- $.ender(b);
- $.ender(b(), true);
- $.ender({
- create: function (node) {
- return $(b.create(node));
- }
- });
-
- $.id = function (id) {
- return $([document.getElementById(id)]);
- };
-
- function indexOf(ar, val) {
- for (var i = 0; i < ar.length; i++) {
- if (ar[i] === val) {
- return i;
- }
- }
- return -1;
- }
-
- function uniq(ar) {
- var a = [], i, j;
- label:
- for (i = 0; i < ar.length; i++) {
- for (j = 0; j < a.length; j++) {
- if (a[j] == ar[i]) {
- continue label;
- }
- }
- a[a.length] = ar[i];
- }
- return a;
- }
-
- $.ender({
- parents: function (selector, closest) {
- var collection = $(selector), j, k, p, r = [];
- for (j = 0, k = this.length; j < k; j++) {
- p = this[j];
- while (p = p.parentNode) {
- if (indexOf(collection, p) !== -1) {
- r.push(p);
- if (closest) break;
- }
- }
- }
- return $(uniq(r));
- },
-
- closest: function (selector) {
- return this.parents(selector, true);
- },
-
- first: function () {
- return $(this[0]);
- },
-
- last: function () {
- return $(this[this.length - 1]);
- },
-
- next: function () {
- return $(b(this).next());
- },
-
- previous: function () {
- return $(b(this).previous());
- },
-
- appendTo: function (t) {
- return b(this.selector).appendTo(t, this);
- },
-
- prependTo: function (t) {
- return b(this.selector).prependTo(t, this);
- },
-
- insertAfter: function (t) {
- return b(this.selector).insertAfter(t, this);
- },
-
- insertBefore: function (t) {
- return b(this.selector).insertBefore(t, this);
- },
-
- siblings: function () {
- var i, l, p, r = [];
- for (i = 0, l = this.length; i < l; i++) {
- p = this[i];
- while (p = p.previousSibling) {
- p.nodeType == 1 && r.push(p);
- }
- p = this[i];
- while (p = p.nextSibling) {
- p.nodeType == 1 && r.push(p);
- }
- }
- return $(r);
- },
-
- children: function () {
- var i, el, r = [];
- for (i = 0, l = this.length; i < l; i++) {
- if (!(el = b.firstChild(this[i]))) {
- continue;
- }
- r.push(el);
- while (el = el.nextSibling) {
- el.nodeType == 1 && r.push(el);
- }
- }
- return $(uniq(r));
- },
-
- height: function (v) {
- return dimension(v, this, 'height')
- },
-
- width: function (v) {
- return dimension(v, this, 'width')
- }
- }, true);
-
- function dimension(v, self, which) {
- return v ?
- self.css(which, v) :
- function (r) {
- r = parseInt(self.css(which), 10);
- return isNaN(r) ? self[0]['offset' + which.replace(/^\w/, function (m) {return m.toUpperCase()})] : r
- }()
- }
-
-}(ender || $);
View
10 node_modules/jsdom/example/ender/run.js
@@ -1,10 +0,0 @@
-var jsdom = require("../../lib/jsdom");
-
-jsdom.env("<html><body></body></html>", ["ender.js"], function(errors, window) {
- if (errors) {
- console.error(errors);
- return;
- }
- window.$('body').append("<div class='testing'>Hello World, It works!</div>");
- console.log(window.$(".testing").text());
-});
View
167 node_modules/jsdom/example/jquery/jquery.js
@@ -1,167 +0,0 @@
-/*!
- * jQuery JavaScript Library v1.4.4
- * http://jquery.com/
- *
- * Copyright 2010, John Resig
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * Includes Sizzle.js
- * http://sizzlejs.com/
- * Copyright 2010, The Dojo Foundation
- * Released under the MIT, BSD, and GPL Licenses.
- *
- * Date: Thu Nov 11 19:04:53 2010 -0500
- */
-(function(E,B){function ka(a,b,d){if(d===B&&a.nodeType===1){d=a.getAttribute("data-"+b);if(typeof d==="string"){try{d=d==="true"?true:d==="false"?false:d==="null"?null:!c.isNaN(d)?parseFloat(d):Ja.test(d)?c.parseJSON(d):d}catch(e){}c.data(a,b,d)}else d=B}return d}function U(){return false}function ca(){return true}function la(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function Ka(a){var b,d,e,f,h,l,k,o,x,r,A,C=[];f=[];h=c.data(this,this.nodeType?"events":"__events__");if(typeof h==="function")h=
-h.events;if(!(a.liveFired===this||!h||!h.live||a.button&&a.type==="click")){if(a.namespace)A=RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");a.liveFired=this;var J=h.live.slice(0);for(k=0;k<J.length;k++){h=J[k];h.origType.replace(X,"")===a.type?f.push(h.selector):J.splice(k--,1)}f=c(a.target).closest(f,a.currentTarget);o=0;for(x=f.length;o<x;o++){r=f[o];for(k=0;k<J.length;k++){h=J[k];if(r.selector===h.selector&&(!A||A.test(h.namespace))){l=r.elem;e=null;if(h.preType==="mouseenter"||
-h.preType==="mouseleave"){a.type=h.preType;e=c(a.relatedTarget).closest(h.selector)[0]}if(!e||e!==l)C.push({elem:l,handleObj:h,level:r.level})}}}o=0;for(x=C.length;o<x;o++){f=C[o];if(d&&f.level>d)break;a.currentTarget=f.elem;a.data=f.handleObj.data;a.handleObj=f.handleObj;A=f.handleObj.origHandler.apply(f.elem,arguments);if(A===false||a.isPropagationStopped()){d=f.level;if(A===false)b=false;if(a.isImmediatePropagationStopped())break}}return b}}function Y(a,b){return(a&&a!=="*"?a+".":"")+b.replace(La,
-"`").replace(Ma,"&")}function ma(a,b,d){if(c.isFunction(b))return c.grep(a,function(f,h){return!!b.call(f,h,f)===d});else if(b.nodeType)return c.grep(a,function(f){return f===b===d});else if(typeof b==="string"){var e=c.grep(a,function(f){return f.nodeType===1});if(Na.test(b))return c.filter(b,e,!d);else b=c.filter(b,e)}return c.grep(a,function(f){return c.inArray(f,b)>=0===d})}function na(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var e=c.data(a[d++]),f=c.data(this,
-e);if(e=e&&e.events){delete f.handle;f.events={};for(var h in e)for(var l in e[h])c.event.add(this,h,e[h][l],e[h][l].data)}}})}function Oa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function oa(a,b,d){var e=b==="width"?a.offsetWidth:a.offsetHeight;if(d==="border")return e;c.each(b==="width"?Pa:Qa,function(){d||(e-=parseFloat(c.css(a,"padding"+this))||0);if(d==="margin")e+=parseFloat(c.css(a,
-"margin"+this))||0;else e-=parseFloat(c.css(a,"border"+this+"Width"))||0});return e}function da(a,b,d,e){if(c.isArray(b)&&b.length)c.each(b,function(f,h){d||Ra.test(a)?e(a,h):da(a+"["+(typeof h==="object"||c.isArray(h)?f:"")+"]",h,d,e)});else if(!d&&b!=null&&typeof b==="object")c.isEmptyObject(b)?e(a,""):c.each(b,function(f,h){da(a+"["+f+"]",h,d,e)});else e(a,b)}function S(a,b){var d={};c.each(pa.concat.apply([],pa.slice(0,b)),function(){d[this]=a});return d}function qa(a){if(!ea[a]){var b=c("<"+
-a+">").appendTo("body"),d=b.css("display");b.remove();if(d==="none"||d==="")d="block";ea[a]=d}return ea[a]}function fa(a){return c.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var t=E.document,c=function(){function a(){if(!b.isReady){try{t.documentElement.doScroll("left")}catch(j){setTimeout(a,1);return}b.ready()}}var b=function(j,s){return new b.fn.init(j,s)},d=E.jQuery,e=E.$,f,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,l=/\S/,k=/^\s+/,o=/\s+$/,x=/\W/,r=/\d/,A=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,
-C=/^[\],:{}\s]*$/,J=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,w=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,I=/(?:^|:|,)(?:\s*\[)+/g,L=/(webkit)[ \/]([\w.]+)/,g=/(opera)(?:.*version)?[ \/]([\w.]+)/,i=/(msie) ([\w.]+)/,n=/(mozilla)(?:.*? rv:([\w.]+))?/,m=navigator.userAgent,p=false,q=[],u,y=Object.prototype.toString,F=Object.prototype.hasOwnProperty,M=Array.prototype.push,N=Array.prototype.slice,O=String.prototype.trim,D=Array.prototype.indexOf,R={};b.fn=b.prototype={init:function(j,
-s){var v,z,H;if(!j)return this;if(j.nodeType){this.context=this[0]=j;this.length=1;return this}if(j==="body"&&!s&&t.body){this.context=t;this[0]=t.body;this.selector="body";this.length=1;return this}if(typeof j==="string")if((v=h.exec(j))&&(v[1]||!s))if(v[1]){H=s?s.ownerDocument||s:t;if(z=A.exec(j))if(b.isPlainObject(s)){j=[t.createElement(z[1])];b.fn.attr.call(j,s,true)}else j=[H.createElement(z[1])];else{z=b.buildFragment([v[1]],[H]);j=(z.cacheable?z.fragment.cloneNode(true):z.fragment).childNodes}return b.merge(this,
-j)}else{if((z=t.getElementById(v[2]))&&z.parentNode){if(z.id!==v[2])return f.find(j);this.length=1;this[0]=z}this.context=t;this.selector=j;return this}else if(!s&&!x.test(j)){this.selector=j;this.context=t;j=t.getElementsByTagName(j);return b.merge(this,j)}else return!s||s.jquery?(s||f).find(j):b(s).find(j);else if(b.isFunction(j))return f.ready(j);if(j.selector!==B){this.selector=j.selector;this.context=j.context}return b.makeArray(j,this)},selector:"",jquery:"1.4.4",length:0,size:function(){return this.length},
-toArray:function(){return N.call(this,0)},get:function(j){return j==null?this.toArray():j<0?this.slice(j)[0]:this[j]},pushStack:function(j,s,v){var z=b();b.isArray(j)?M.apply(z,j):b.merge(z,j);z.prevObject=this;z.context=this.context;if(s==="find")z.selector=this.selector+(this.selector?" ":"")+v;else if(s)z.selector=this.selector+"."+s+"("+v+")";return z},each:function(j,s){return b.each(this,j,s)},ready:function(j){b.bindReady();if(b.isReady)j.call(t,b);else q&&q.push(j);return this},eq:function(j){return j===
--1?this.slice(j):this.slice(j,+j+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(N.apply(this,arguments),"slice",N.call(arguments).join(","))},map:function(j){return this.pushStack(b.map(this,function(s,v){return j.call(s,v,s)}))},end:function(){return this.prevObject||b(null)},push:M,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var j,s,v,z,H,G=arguments[0]||{},K=1,Q=arguments.length,ga=false;
-if(typeof G==="boolean"){ga=G;G=arguments[1]||{};K=2}if(typeof G!=="object"&&!b.isFunction(G))G={};if(Q===K){G=this;--K}for(;K<Q;K++)if((j=arguments[K])!=null)for(s in j){v=G[s];z=j[s];if(G!==z)if(ga&&z&&(b.isPlainObject(z)||(H=b.isArray(z)))){if(H){H=false;v=v&&b.isArray(v)?v:[]}else v=v&&b.isPlainObject(v)?v:{};G[s]=b.extend(ga,v,z)}else if(z!==B)G[s]=z}return G};b.extend({noConflict:function(j){E.$=e;if(j)E.jQuery=d;return b},isReady:false,readyWait:1,ready:function(j){j===true&&b.readyWait--;
-if(!b.readyWait||j!==true&&!b.isReady){if(!t.body)return setTimeout(b.ready,1);b.isReady=true;if(!(j!==true&&--b.readyWait>0))if(q){var s=0,v=q;for(q=null;j=v[s++];)j.call(t,b);b.fn.trigger&&b(t).trigger("ready").unbind("ready")}}},bindReady:function(){if(!p){p=true;if(t.readyState==="complete")return setTimeout(b.ready,1);if(t.addEventListener){t.addEventListener("DOMContentLoaded",u,false);E.addEventListener("load",b.ready,false)}else if(t.attachEvent){t.attachEvent("onreadystatechange",u);E.attachEvent("onload",
-b.ready);var j=false;try{j=E.frameElement==null}catch(s){}t.documentElement.doScroll&&j&&a()}}},isFunction:function(j){return b.type(j)==="function"},isArray:Array.isArray||function(j){return b.type(j)==="array"},isWindow:function(j){return j&&typeof j==="object"&&"setInterval"in j},isNaN:function(j){return j==null||!r.test(j)||isNaN(j)},type:function(j){return j==null?String(j):R[y.call(j)]||"object"},isPlainObject:function(j){if(!j||b.type(j)!=="object"||j.nodeType||b.isWindow(j))return false;if(j.constructor&&
-!F.call(j,"constructor")&&!F.call(j.constructor.prototype,"isPrototypeOf"))return false;for(var s in j);return s===B||F.call(j,s)},isEmptyObject:function(j){for(var s in j)return false;return true},error:function(j){throw j;},parseJSON:function(j){if(typeof j!=="string"||!j)return null;j=b.trim(j);if(C.test(j.replace(J,"@").replace(w,"]").replace(I,"")))return E.JSON&&E.JSON.parse?E.JSON.parse(j):(new Function("return "+j))();else b.error("Invalid JSON: "+j)},noop:function(){},globalEval:function(j){if(j&&
-l.test(j)){var s=t.getElementsByTagName("head")[0]||t.documentElement,v=t.createElement("script");v.type="text/javascript";if(b.support.scriptEval)v.appendChild(t.createTextNode(j));else v.text=j;s.insertBefore(v,s.firstChild);s.removeChild(v)}},nodeName:function(j,s){return j.nodeName&&j.nodeName.toUpperCase()===s.toUpperCase()},each:function(j,s,v){var z,H=0,G=j.length,K=G===B||b.isFunction(j);if(v)if(K)for(z in j){if(s.apply(j[z],v)===false)break}else for(;H<G;){if(s.apply(j[H++],v)===false)break}else if(K)for(z in j){if(s.call(j[z],
-z,j[z])===false)break}else for(v=j[0];H<G&&s.call(v,H,v)!==false;v=j[++H]);return j},trim:O?function(j){return j==null?"":O.call(j)}:function(j){return j==null?"":j.toString().replace(k,"").replace(o,"")},makeArray:function(j,s){var v=s||[];if(j!=null){var z=b.type(j);j.length==null||z==="string"||z==="function"||z==="regexp"||b.isWindow(j)?M.call(v,j):b.merge(v,j)}return v},inArray:function(j,s){if(s.indexOf)return s.indexOf(j);for(var v=0,z=s.length;v<z;v++)if(s[v]===j)return v;return-1},merge:function(j,
-s){var v=j.length,z=0;if(typeof s.length==="number")for(var H=s.length;z<H;z++)j[v++]=s[z];else for(;s[z]!==B;)j[v++]=s[z++];j.length=v;return j},grep:function(j,s,v){var z=[],H;v=!!v;for(var G=0,K=j.length;G<K;G++){H=!!s(j[G],G);v!==H&&z.push(j[G])}return z},map:function(j,s,v){for(var z=[],H,G=0,K=j.length;G<K;G++){H=s(j[G],G,v);if(H!=null)z[z.length]=H}return z.concat.apply([],z)},guid:1,proxy:function(j,s,v){if(arguments.length===2)if(typeof s==="string"){v=j;j=v[s];s=B}else if(s&&!b.isFunction(s)){v=
-s;s=B}if(!s&&j)s=function(){return j.apply(v||this,arguments)};if(j)s.guid=j.guid=j.guid||s.guid||b.guid++;return s},access:function(j,s,v,z,H,G){var K=j.length;if(typeof s==="object"){for(var Q in s)b.access(j,Q,s[Q],z,H,v);return j}if(v!==B){z=!G&&z&&b.isFunction(v);for(Q=0;Q<K;Q++)H(j[Q],s,z?v.call(j[Q],Q,H(j[Q],s)):v,G);return j}return K?H(j[0],s):B},now:function(){return(new Date).getTime()},uaMatch:function(j){j=j.toLowerCase();j=L.exec(j)||g.exec(j)||i.exec(j)||j.indexOf("compatible")<0&&n.exec(j)||
-[];return{browser:j[1]||"",version:j[2]||"0"}},browser:{}});b.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(j,s){R["[object "+s+"]"]=s.toLowerCase()});m=b.uaMatch(m);if(m.browser){b.browser[m.browser]=true;b.browser.version=m.version}if(b.browser.webkit)b.browser.safari=true;if(D)b.inArray=function(j,s){return D.call(s,j)};if(!/\s/.test("\u00a0")){k=/^[\s\xA0]+/;o=/[\s\xA0]+$/}f=b(t);if(t.addEventListener)u=function(){t.removeEventListener("DOMContentLoaded",u,
-false);b.ready()};else if(t.attachEvent)u=function(){if(t.readyState==="complete"){t.detachEvent("onreadystatechange",u);b.ready()}};return E.jQuery=E.$=b}();(function(){c.support={};var a=t.documentElement,b=t.createElement("script"),d=t.createElement("div"),e="script"+c.now();d.style.display="none";d.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var f=d.getElementsByTagName("*"),h=d.getElementsByTagName("a")[0],l=t.createElement("select"),
-k=l.appendChild(t.createElement("option"));if(!(!f||!f.length||!h)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(h.getAttribute("style")),hrefNormalized:h.getAttribute("href")==="/a",opacity:/^0.55$/.test(h.style.opacity),cssFloat:!!h.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:k.selected,deleteExpando:true,optDisabled:false,checkClone:false,
-scriptEval:false,noCloneEvent:true,boxModel:null,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableHiddenOffsets:true};l.disabled=true;c.support.optDisabled=!k.disabled;b.type="text/javascript";try{b.appendChild(t.createTextNode("window."+e+"=1;"))}catch(o){}a.insertBefore(b,a.firstChild);if(E[e]){c.support.scriptEval=true;delete E[e]}try{delete b.test}catch(x){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function r(){c.support.noCloneEvent=
-false;d.detachEvent("onclick",r)});d.cloneNode(true).fireEvent("onclick")}d=t.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=t.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var r=t.createElement("div");r.style.width=r.style.paddingLeft="1px";t.body.appendChild(r);c.boxModel=c.support.boxModel=r.offsetWidth===2;if("zoom"in r.style){r.style.display="inline";r.style.zoom=
-1;c.support.inlineBlockNeedsLayout=r.offsetWidth===2;r.style.display="";r.innerHTML="<div style='width:4px;'></div>";c.support.shrinkWrapBlocks=r.offsetWidth!==2}r.innerHTML="<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>";var A=r.getElementsByTagName("td");c.support.reliableHiddenOffsets=A[0].offsetHeight===0;A[0].style.display="";A[1].style.display="none";c.support.reliableHiddenOffsets=c.support.reliableHiddenOffsets&&A[0].offsetHeight===0;r.innerHTML="";t.body.removeChild(r).style.display=
-"none"});a=function(r){var A=t.createElement("div");r="on"+r;var C=r in A;if(!C){A.setAttribute(r,"return;");C=typeof A[r]==="function"}return C};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=f=h=null}})();var ra={},Ja=/^(?:\{.*\}|\[.*\])$/;c.extend({cache:{},uuid:0,expando:"jQuery"+c.now(),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},data:function(a,b,d){if(c.acceptData(a)){a=a==E?ra:a;var e=a.nodeType,f=e?a[c.expando]:null,h=
-c.cache;if(!(e&&!f&&typeof b==="string"&&d===B)){if(e)f||(a[c.expando]=f=++c.uuid);else h=a;if(typeof b==="object")if(e)h[f]=c.extend(h[f],b);else c.extend(h,b);else if(e&&!h[f])h[f]={};a=e?h[f]:h;if(d!==B)a[b]=d;return typeof b==="string"?a[b]:a}}},removeData:function(a,b){if(c.acceptData(a)){a=a==E?ra:a;var d=a.nodeType,e=d?a[c.expando]:a,f=c.cache,h=d?f[e]:e;if(b){if(h){delete h[b];d&&c.isEmptyObject(h)&&c.removeData(a)}}else if(d&&c.support.deleteExpando)delete a[c.expando];else if(a.removeAttribute)a.removeAttribute(c.expando);
-else if(d)delete f[e];else for(var l in a)delete a[l]}},acceptData:function(a){if(a.nodeName){var b=c.noData[a.nodeName.toLowerCase()];if(b)return!(b===true||a.getAttribute("classid")!==b)}return true}});c.fn.extend({data:function(a,b){var d=null;if(typeof a==="undefined"){if(this.length){var e=this[0].attributes,f;d=c.data(this[0]);for(var h=0,l=e.length;h<l;h++){f=e[h].name;if(f.indexOf("data-")===0){f=f.substr(5);ka(this[0],f,d[f])}}}return d}else if(typeof a==="object")return this.each(function(){c.data(this,
-a)});var k=a.split(".");k[1]=k[1]?"."+k[1]:"";if(b===B){d=this.triggerHandler("getData"+k[1]+"!",[k[0]]);if(d===B&&this.length){d=c.data(this[0],a);d=ka(this[0],a,d)}return d===B&&k[1]?this.data(k[0]):d}else return this.each(function(){var o=c(this),x=[k[0],b];o.triggerHandler("setData"+k[1]+"!",x);c.data(this,a,b);o.triggerHandler("changeData"+k[1]+"!",x)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var e=
-c.data(a,b);if(!d)return e||[];if(!e||c.isArray(d))e=c.data(a,b,c.makeArray(d));else e.push(d);return e}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),e=d.shift();if(e==="inprogress")e=d.shift();if(e){b==="fx"&&d.unshift("inprogress");e.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===B)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,
-a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var sa=/[\n\t]/g,ha=/\s+/,Sa=/\r/g,Ta=/^(?:href|src|style)$/,Ua=/^(?:button|input)$/i,Va=/^(?:button|input|object|select|textarea)$/i,Wa=/^a(?:rea)?$/i,ta=/^(?:radio|checkbox)$/i;c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",
-colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};c.fn.extend({attr:function(a,b){return c.access(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(x){var r=c(this);r.addClass(a.call(this,x,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ha),d=0,e=this.length;d<e;d++){var f=this[d];if(f.nodeType===
-1)if(f.className){for(var h=" "+f.className+" ",l=f.className,k=0,o=b.length;k<o;k++)if(h.indexOf(" "+b[k]+" ")<0)l+=" "+b[k];f.className=c.trim(l)}else f.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(o){var x=c(this);x.removeClass(a.call(this,o,x.attr("class")))});if(a&&typeof a==="string"||a===B)for(var b=(a||"").split(ha),d=0,e=this.length;d<e;d++){var f=this[d];if(f.nodeType===1&&f.className)if(a){for(var h=(" "+f.className+" ").replace(sa," "),
-l=0,k=b.length;l<k;l++)h=h.replace(" "+b[l]+" "," ");f.className=c.trim(h)}else f.className=""}return this},toggleClass:function(a,b){var d=typeof a,e=typeof b==="boolean";if(c.isFunction(a))return this.each(function(f){var h=c(this);h.toggleClass(a.call(this,f,h.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var f,h=0,l=c(this),k=b,o=a.split(ha);f=o[h++];){k=e?k:!l.hasClass(f);l[k?"addClass":"removeClass"](f)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,
-"__className__",this.className);this.className=this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(sa," ").indexOf(a)>-1)return true;return false},val:function(a){if(!arguments.length){var b=this[0];if(b){if(c.nodeName(b,"option")){var d=b.attributes.value;return!d||d.specified?b.value:b.text}if(c.nodeName(b,"select")){var e=b.selectedIndex;d=[];var f=b.options;b=b.type==="select-one";
-if(e<0)return null;var h=b?e:0;for(e=b?e+1:f.length;h<e;h++){var l=f[h];if(l.selected&&(c.support.optDisabled?!l.disabled:l.getAttribute("disabled")===null)&&(!l.parentNode.disabled||!c.nodeName(l.parentNode,"optgroup"))){a=c(l).val();if(b)return a;d.push(a)}}return d}if(ta.test(b.type)&&!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Sa,"")}return B}var k=c.isFunction(a);return this.each(function(o){var x=c(this),r=a;if(this.nodeType===1){if(k)r=
-a.call(this,o,x.val());if(r==null)r="";else if(typeof r==="number")r+="";else if(c.isArray(r))r=c.map(r,function(C){return C==null?"":C+""});if(c.isArray(r)&&ta.test(this.type))this.checked=c.inArray(x.val(),r)>=0;else if(c.nodeName(this,"select")){var A=c.makeArray(r);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),A)>=0});if(!A.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},
-attr:function(a,b,d,e){if(!a||a.nodeType===3||a.nodeType===8)return B;if(e&&b in c.attrFn)return c(a)[b](d);e=a.nodeType!==1||!c.isXMLDoc(a);var f=d!==B;b=e&&c.props[b]||b;var h=Ta.test(b);if((b in a||a[b]!==B)&&e&&!h){if(f){b==="type"&&Ua.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");if(d===null)a.nodeType===1&&a.removeAttribute(b);else a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&
-b.specified?b.value:Va.test(a.nodeName)||Wa.test(a.nodeName)&&a.href?0:B;return a[b]}if(!c.support.style&&e&&b==="style"){if(f)a.style.cssText=""+d;return a.style.cssText}f&&a.setAttribute(b,""+d);if(!a.attributes[b]&&a.hasAttribute&&!a.hasAttribute(b))return B;a=!c.support.hrefNormalized&&e&&h?a.getAttribute(b,2):a.getAttribute(b);return a===null?B:a}});var X=/\.(.*)$/,ia=/^(?:textarea|input|select)$/i,La=/\./g,Ma=/ /g,Xa=/[^\w\s.|`]/g,Ya=function(a){return a.replace(Xa,"\\$&")},ua={focusin:0,focusout:0};
-c.event={add:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(c.isWindow(a)&&a!==E&&!a.frameElement)a=E;if(d===false)d=U;else if(!d)return;var f,h;if(d.handler){f=d;d=f.handler}if(!d.guid)d.guid=c.guid++;if(h=c.data(a)){var l=a.nodeType?"events":"__events__",k=h[l],o=h.handle;if(typeof k==="function"){o=k.handle;k=k.events}else if(!k){a.nodeType||(h[l]=h=function(){});h.events=k={}}if(!o)h.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,
-arguments):B};o.elem=a;b=b.split(" ");for(var x=0,r;l=b[x++];){h=f?c.extend({},f):{handler:d,data:e};if(l.indexOf(".")>-1){r=l.split(".");l=r.shift();h.namespace=r.slice(0).sort().join(".")}else{r=[];h.namespace=""}h.type=l;if(!h.guid)h.guid=d.guid;var A=k[l],C=c.event.special[l]||{};if(!A){A=k[l]=[];if(!C.setup||C.setup.call(a,e,r,o)===false)if(a.addEventListener)a.addEventListener(l,o,false);else a.attachEvent&&a.attachEvent("on"+l,o)}if(C.add){C.add.call(a,h);if(!h.handler.guid)h.handler.guid=
-d.guid}A.push(h);c.event.global[l]=true}a=null}}},global:{},remove:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(d===false)d=U;var f,h,l=0,k,o,x,r,A,C,J=a.nodeType?"events":"__events__",w=c.data(a),I=w&&w[J];if(w&&I){if(typeof I==="function"){w=I;I=I.events}if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(f in I)c.event.remove(a,f+b)}else{for(b=b.split(" ");f=b[l++];){r=f;k=f.indexOf(".")<0;o=[];if(!k){o=f.split(".");f=o.shift();x=RegExp("(^|\\.)"+
-c.map(o.slice(0).sort(),Ya).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(A=I[f])if(d){r=c.event.special[f]||{};for(h=e||0;h<A.length;h++){C=A[h];if(d.guid===C.guid){if(k||x.test(C.namespace)){e==null&&A.splice(h--,1);r.remove&&r.remove.call(a,C)}if(e!=null)break}}if(A.length===0||e!=null&&A.length===1){if(!r.teardown||r.teardown.call(a,o)===false)c.removeEvent(a,f,w.handle);delete I[f]}}else for(h=0;h<A.length;h++){C=A[h];if(k||x.test(C.namespace)){c.event.remove(a,r,C.handler,h);A.splice(h--,1)}}}if(c.isEmptyObject(I)){if(b=
-w.handle)b.elem=null;delete w.events;delete w.handle;if(typeof w==="function")c.removeData(a,J);else c.isEmptyObject(w)&&c.removeData(a)}}}}},trigger:function(a,b,d,e){var f=a.type||a;if(!e){a=typeof a==="object"?a[c.expando]?a:c.extend(c.Event(f),a):c.Event(f);if(f.indexOf("!")>=0){a.type=f=f.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[f]&&c.each(c.cache,function(){this.events&&this.events[f]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===
-8)return B;a.result=B;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(e=d.nodeType?c.data(d,"handle"):(c.data(d,"__events__")||{}).handle)&&e.apply(d,b);e=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+f]&&d["on"+f].apply(d,b)===false){a.result=false;a.preventDefault()}}catch(h){}if(!a.isPropagationStopped()&&e)c.event.trigger(a,b,e,true);else if(!a.isDefaultPrevented()){var l;e=a.target;var k=f.replace(X,""),o=c.nodeName(e,"a")&&k===
-"click",x=c.event.special[k]||{};if((!x._default||x._default.call(d,a)===false)&&!o&&!(e&&e.nodeName&&c.noData[e.nodeName.toLowerCase()])){try{if(e[k]){if(l=e["on"+k])e["on"+k]=null;c.event.triggered=true;e[k]()}}catch(r){}if(l)e["on"+k]=l;c.event.triggered=false}}},handle:function(a){var b,d,e,f;d=[];var h=c.makeArray(arguments);a=h[0]=c.event.fix(a||E.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b){e=a.type.split(".");a.type=e.shift();d=e.slice(0).sort();e=RegExp("(^|\\.)"+
-d.join("\\.(?:.*\\.)?")+"(\\.|$)")}a.namespace=a.namespace||d.join(".");f=c.data(this,this.nodeType?"events":"__events__");if(typeof f==="function")f=f.events;d=(f||{})[a.type];if(f&&d){d=d.slice(0);f=0;for(var l=d.length;f<l;f++){var k=d[f];if(b||e.test(k.namespace)){a.handler=k.handler;a.data=k.data;a.handleObj=k;k=k.handler.apply(this,h);if(k!==B){a.result=k;if(k===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
-fix:function(a){if(a[c.expando])return a;var b=a;a=c.Event(b);for(var d=this