utopia-wiki 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (415) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/development.yml +62 -0
  3. data/.gitignore +18 -0
  4. data/.rspec +2 -0
  5. data/.yarnrc +1 -0
  6. data/Gemfile +4 -0
  7. data/README.md +46 -0
  8. data/bake/utopia/wiki.rb +13 -0
  9. data/lib/components/.yarn-integrity +19 -0
  10. data/lib/components/jquery-litebox/README.md +66 -0
  11. data/lib/components/jquery-litebox/bower.json +27 -0
  12. data/lib/components/jquery-litebox/dist/jquery.litebox.css +23 -0
  13. data/lib/components/jquery-litebox/dist/jquery.litebox.gallery.css +48 -0
  14. data/lib/components/jquery-litebox/dist/jquery.litebox.js +30 -0
  15. data/lib/components/jquery-litebox/example/index.html +69 -0
  16. data/lib/components/jquery-litebox/example/jquery.min.js +4 -0
  17. data/lib/components/jquery-litebox/example/sample_images/large/IMG_3340.jpg +0 -0
  18. data/lib/components/jquery-litebox/example/sample_images/large/IMG_3341.jpg +0 -0
  19. data/lib/components/jquery-litebox/example/sample_images/large/IMG_3344.jpg +0 -0
  20. data/lib/components/jquery-litebox/example/sample_images/large/IMG_3351.jpg +0 -0
  21. data/lib/components/jquery-litebox/example/sample_images/medium/IMG_3340.jpg +0 -0
  22. data/lib/components/jquery-litebox/example/sample_images/medium/IMG_3341.jpg +0 -0
  23. data/lib/components/jquery-litebox/example/sample_images/medium/IMG_3344.jpg +0 -0
  24. data/lib/components/jquery-litebox/example/sample_images/medium/IMG_3351.jpg +0 -0
  25. data/lib/components/jquery-litebox/example/sample_images/small/IMG_3340.jpg +0 -0
  26. data/lib/components/jquery-litebox/example/sample_images/small/IMG_3341.jpg +0 -0
  27. data/lib/components/jquery-litebox/example/sample_images/small/IMG_3344.jpg +0 -0
  28. data/lib/components/jquery-litebox/example/sample_images/small/IMG_3351.jpg +0 -0
  29. data/lib/components/jquery-litebox/package.json +29 -0
  30. data/lib/components/jquery-syntax/Gemfile +5 -0
  31. data/lib/components/jquery-syntax/LICENSE.txt +19 -0
  32. data/lib/components/jquery-syntax/NOTES.txt +20 -0
  33. data/lib/components/jquery-syntax/README.md +95 -0
  34. data/lib/components/jquery-syntax/Rakefile +211 -0
  35. data/lib/components/jquery-syntax/bower.json +25 -0
  36. data/lib/components/jquery-syntax/config.ru +4 -0
  37. data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.apache.css +12 -0
  38. data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.applescript.css +5 -0
  39. data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.assembly.css +8 -0
  40. data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.bash-script.css +6 -0
  41. data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.bash.css +4 -0
  42. data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.clang.css +6 -0
  43. data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.css.css +14 -0
  44. data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.diff.css +16 -0
  45. data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.html.css +5 -0
  46. data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.ocaml.css +3 -0
  47. data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.protobuf.css +2 -0
  48. data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.python.css +6 -0
  49. data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.ruby.css +2 -0
  50. data/lib/components/jquery-syntax/dist/base/jquery.syntax.brush.xml.css +18 -0
  51. data/lib/components/jquery-syntax/dist/base/jquery.syntax.core.css +58 -0
  52. data/lib/components/jquery-syntax/dist/base/jquery.syntax.editor.css +6 -0
  53. data/lib/components/jquery-syntax/dist/base/theme.js +1 -0
  54. data/lib/components/jquery-syntax/dist/bright/jquery.syntax.core.css +27 -0
  55. data/lib/components/jquery-syntax/dist/bright/theme.js +1 -0
  56. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.apache.js +3 -0
  57. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.applescript.js +5 -0
  58. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.assembly.js +3 -0
  59. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.bash-script.js +4 -0
  60. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.bash.js +2 -0
  61. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.basic.js +5 -0
  62. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.clang.js +5 -0
  63. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.csharp.js +4 -0
  64. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.css.js +5 -0
  65. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.diff.js +2 -0
  66. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.go.js +3 -0
  67. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.haskell.js +3 -0
  68. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.html.js +4 -0
  69. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.io.js +3 -0
  70. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.java.js +4 -0
  71. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.javascript.js +3 -0
  72. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.kai.js +2 -0
  73. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.lisp.js +2 -0
  74. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.lua.js +3 -0
  75. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.nginx.js +2 -0
  76. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.ocaml.js +4 -0
  77. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.ooc.js +4 -0
  78. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.pascal.js +4 -0
  79. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.perl5.js +3 -0
  80. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.php-script.js +4 -0
  81. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.php.js +2 -0
  82. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.plain.js +2 -0
  83. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.protobuf.js +3 -0
  84. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.python.js +5 -0
  85. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.ruby.js +5 -0
  86. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.scala.js +4 -0
  87. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.smalltalk.js +2 -0
  88. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.sql.js +4 -0
  89. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.super-collider.js +3 -0
  90. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.swift.js +3 -0
  91. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.trenni.js +2 -0
  92. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.xml.js +4 -0
  93. data/lib/components/jquery-syntax/dist/jquery.syntax.brush.yaml.js +2 -0
  94. data/lib/components/jquery-syntax/dist/jquery.syntax.cache.js +7 -0
  95. data/lib/components/jquery-syntax/dist/jquery.syntax.core.js +34 -0
  96. data/lib/components/jquery-syntax/dist/jquery.syntax.editor.js +11 -0
  97. data/lib/components/jquery-syntax/dist/jquery.syntax.js +8 -0
  98. data/lib/components/jquery-syntax/dist/jquery.syntax.min.js +13 -0
  99. data/lib/components/jquery-syntax/dist/paper/jquery.syntax.core.css +31 -0
  100. data/lib/components/jquery-syntax/dist/paper/theme.js +1 -0
  101. data/lib/components/jquery-syntax/examples/ex.applescript.html +120 -0
  102. data/lib/components/jquery-syntax/examples/ex.asm.html +43 -0
  103. data/lib/components/jquery-syntax/examples/ex.bash.html +139 -0
  104. data/lib/components/jquery-syntax/examples/ex.clang.html +337 -0
  105. data/lib/components/jquery-syntax/examples/ex.css.html +48 -0
  106. data/lib/components/jquery-syntax/examples/ex.diff.html +1226 -0
  107. data/lib/components/jquery-syntax/examples/ex.editor.html +28 -0
  108. data/lib/components/jquery-syntax/examples/ex.html.html +134 -0
  109. data/lib/components/jquery-syntax/examples/ex.javascript.html +330 -0
  110. data/lib/components/jquery-syntax/examples/ex.ooc.html +119 -0
  111. data/lib/components/jquery-syntax/examples/ex.php.html +54 -0
  112. data/lib/components/jquery-syntax/examples/ex.python.html +1510 -0
  113. data/lib/components/jquery-syntax/examples/ex.ruby.html +358 -0
  114. data/lib/components/jquery-syntax/examples/ex.swift.html +90 -0
  115. data/lib/components/jquery-syntax/examples/index.css +18 -0
  116. data/lib/components/jquery-syntax/examples/jquery-1.6.min.js +16 -0
  117. data/lib/components/jquery-syntax/examples/tests.html +71 -0
  118. data/lib/components/jquery-syntax/examples/wrapping-flex.html +71 -0
  119. data/lib/components/jquery-syntax/examples/wrapping.html +181 -0
  120. data/lib/components/jquery-syntax/ext/closure/COPYING +202 -0
  121. data/lib/components/jquery-syntax/ext/closure/README +292 -0
  122. data/lib/components/jquery-syntax/ext/closure/compiler.jar +0 -0
  123. data/lib/components/jquery-syntax/ext/theme.rb +85 -0
  124. data/lib/components/jquery-syntax/install.yaml +9 -0
  125. data/lib/components/jquery-syntax/jQuery.Syntax.artx/Preview/preview.png +0 -0
  126. data/lib/components/jquery-syntax/jQuery.Syntax.artx/doc.thread +0 -0
  127. data/lib/components/jquery-syntax/package.json +31 -0
  128. data/lib/components/jquery-syntax/source/jquery.syntax.brush.apache.js +41 -0
  129. data/lib/components/jquery-syntax/source/jquery.syntax.brush.applescript.js +57 -0
  130. data/lib/components/jquery-syntax/source/jquery.syntax.brush.assembly.js +37 -0
  131. data/lib/components/jquery-syntax/source/jquery.syntax.brush.bash-script.js +67 -0
  132. data/lib/components/jquery-syntax/source/jquery.syntax.brush.bash.js +33 -0
  133. data/lib/components/jquery-syntax/source/jquery.syntax.brush.basic.js +51 -0
  134. data/lib/components/jquery-syntax/source/jquery.syntax.brush.clang.js +89 -0
  135. data/lib/components/jquery-syntax/source/jquery.syntax.brush.csharp.js +47 -0
  136. data/lib/components/jquery-syntax/source/jquery.syntax.brush.css.js +80 -0
  137. data/lib/components/jquery-syntax/source/jquery.syntax.brush.diff.js +24 -0
  138. data/lib/components/jquery-syntax/source/jquery.syntax.brush.go.js +47 -0
  139. data/lib/components/jquery-syntax/source/jquery.syntax.brush.haskell.js +45 -0
  140. data/lib/components/jquery-syntax/source/jquery.syntax.brush.html.js +66 -0
  141. data/lib/components/jquery-syntax/source/jquery.syntax.brush.io.js +45 -0
  142. data/lib/components/jquery-syntax/source/jquery.syntax.brush.java.js +45 -0
  143. data/lib/components/jquery-syntax/source/jquery.syntax.brush.javascript.js +42 -0
  144. data/lib/components/jquery-syntax/source/jquery.syntax.brush.kai.js +29 -0
  145. data/lib/components/jquery-syntax/source/jquery.syntax.brush.lisp.js +34 -0
  146. data/lib/components/jquery-syntax/source/jquery.syntax.brush.lua.js +44 -0
  147. data/lib/components/jquery-syntax/source/jquery.syntax.brush.nginx.js +30 -0
  148. data/lib/components/jquery-syntax/source/jquery.syntax.brush.ocaml.js +73 -0
  149. data/lib/components/jquery-syntax/source/jquery.syntax.brush.ooc.js +46 -0
  150. data/lib/components/jquery-syntax/source/jquery.syntax.brush.pascal.js +51 -0
  151. data/lib/components/jquery-syntax/source/jquery.syntax.brush.perl5.js +52 -0
  152. data/lib/components/jquery-syntax/source/jquery.syntax.brush.php-script.js +48 -0
  153. data/lib/components/jquery-syntax/source/jquery.syntax.brush.php.js +15 -0
  154. data/lib/components/jquery-syntax/source/jquery.syntax.brush.plain.js +10 -0
  155. data/lib/components/jquery-syntax/source/jquery.syntax.brush.protobuf.js +43 -0
  156. data/lib/components/jquery-syntax/source/jquery.syntax.brush.python.js +44 -0
  157. data/lib/components/jquery-syntax/source/jquery.syntax.brush.ruby.js +77 -0
  158. data/lib/components/jquery-syntax/source/jquery.syntax.brush.scala.js +44 -0
  159. data/lib/components/jquery-syntax/source/jquery.syntax.brush.smalltalk.js +29 -0
  160. data/lib/components/jquery-syntax/source/jquery.syntax.brush.sql.js +31 -0
  161. data/lib/components/jquery-syntax/source/jquery.syntax.brush.super-collider.js +57 -0
  162. data/lib/components/jquery-syntax/source/jquery.syntax.brush.swift.js +55 -0
  163. data/lib/components/jquery-syntax/source/jquery.syntax.brush.trenni.js +35 -0
  164. data/lib/components/jquery-syntax/source/jquery.syntax.brush.xml.js +50 -0
  165. data/lib/components/jquery-syntax/source/jquery.syntax.brush.yaml.js +29 -0
  166. data/lib/components/jquery-syntax/source/jquery.syntax.core.js +1114 -0
  167. data/lib/components/jquery-syntax/source/jquery.syntax.editor.js +291 -0
  168. data/lib/components/jquery-syntax/source/jquery.syntax.js +258 -0
  169. data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.apache.sass +23 -0
  170. data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.applescript.sass +11 -0
  171. data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.assembly.sass +16 -0
  172. data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.bash-script.sass +14 -0
  173. data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.bash.sass +11 -0
  174. data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.clang.sass +12 -0
  175. data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.css.sass +25 -0
  176. data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.diff.sass +25 -0
  177. data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.html.sass +12 -0
  178. data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.ocaml.sass +8 -0
  179. data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.protobuf.sass +7 -0
  180. data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.python.sass +12 -0
  181. data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.ruby.sass +9 -0
  182. data/lib/components/jquery-syntax/themes/base/jquery.syntax.brush.xml.sass +30 -0
  183. data/lib/components/jquery-syntax/themes/base/jquery.syntax.core.sass +86 -0
  184. data/lib/components/jquery-syntax/themes/base/jquery.syntax.editor.sass +12 -0
  185. data/lib/components/jquery-syntax/themes/bright/_config.yaml +2 -0
  186. data/lib/components/jquery-syntax/themes/bright/jquery.syntax.core.sass +42 -0
  187. data/lib/components/jquery-syntax/themes/paper/_config.yaml +2 -0
  188. data/lib/components/jquery-syntax/themes/paper/jquery.syntax.core.sass +47 -0
  189. data/lib/components/jquery/AUTHORS.txt +327 -0
  190. data/lib/components/jquery/LICENSE.txt +20 -0
  191. data/lib/components/jquery/README.md +62 -0
  192. data/lib/components/jquery/bower.json +14 -0
  193. data/lib/components/jquery/dist/jquery.js +10872 -0
  194. data/lib/components/jquery/dist/jquery.min.js +2 -0
  195. data/lib/components/jquery/dist/jquery.min.map +1 -0
  196. data/lib/components/jquery/dist/jquery.slim.js +8777 -0
  197. data/lib/components/jquery/dist/jquery.slim.min.js +2 -0
  198. data/lib/components/jquery/dist/jquery.slim.min.map +1 -0
  199. data/lib/components/jquery/external/sizzle/LICENSE.txt +36 -0
  200. data/lib/components/jquery/external/sizzle/dist/sizzle.js +2478 -0
  201. data/lib/components/jquery/external/sizzle/dist/sizzle.min.js +3 -0
  202. data/lib/components/jquery/external/sizzle/dist/sizzle.min.map +1 -0
  203. data/lib/components/jquery/package.json +117 -0
  204. data/lib/components/jquery/src/ajax.js +873 -0
  205. data/lib/components/jquery/src/ajax/jsonp.js +103 -0
  206. data/lib/components/jquery/src/ajax/load.js +77 -0
  207. data/lib/components/jquery/src/ajax/script.js +74 -0
  208. data/lib/components/jquery/src/ajax/var/location.js +5 -0
  209. data/lib/components/jquery/src/ajax/var/nonce.js +5 -0
  210. data/lib/components/jquery/src/ajax/var/rquery.js +5 -0
  211. data/lib/components/jquery/src/ajax/xhr.js +170 -0
  212. data/lib/components/jquery/src/attributes.js +13 -0
  213. data/lib/components/jquery/src/attributes/attr.js +141 -0
  214. data/lib/components/jquery/src/attributes/classes.js +186 -0
  215. data/lib/components/jquery/src/attributes/prop.js +143 -0
  216. data/lib/components/jquery/src/attributes/support.js +33 -0
  217. data/lib/components/jquery/src/attributes/val.js +191 -0
  218. data/lib/components/jquery/src/callbacks.js +236 -0
  219. data/lib/components/jquery/src/core.js +400 -0
  220. data/lib/components/jquery/src/core/DOMEval.js +43 -0
  221. data/lib/components/jquery/src/core/access.js +72 -0
  222. data/lib/components/jquery/src/core/camelCase.js +23 -0
  223. data/lib/components/jquery/src/core/init.js +129 -0
  224. data/lib/components/jquery/src/core/isAttached.js +26 -0
  225. data/lib/components/jquery/src/core/nodeName.js +13 -0
  226. data/lib/components/jquery/src/core/parseHTML.js +65 -0
  227. data/lib/components/jquery/src/core/parseXML.js +30 -0
  228. data/lib/components/jquery/src/core/ready-no-deferred.js +97 -0
  229. data/lib/components/jquery/src/core/ready.js +86 -0
  230. data/lib/components/jquery/src/core/readyException.js +13 -0
  231. data/lib/components/jquery/src/core/stripAndCollapse.js +14 -0
  232. data/lib/components/jquery/src/core/support.js +20 -0
  233. data/lib/components/jquery/src/core/toType.js +20 -0
  234. data/lib/components/jquery/src/core/var/rsingleTag.js +7 -0
  235. data/lib/components/jquery/src/css.js +494 -0
  236. data/lib/components/jquery/src/css/addGetHookIf.js +26 -0
  237. data/lib/components/jquery/src/css/adjustCSS.js +74 -0
  238. data/lib/components/jquery/src/css/curCSS.js +65 -0
  239. data/lib/components/jquery/src/css/finalPropName.js +42 -0
  240. data/lib/components/jquery/src/css/hiddenVisibleSelectors.js +15 -0
  241. data/lib/components/jquery/src/css/showHide.js +105 -0
  242. data/lib/components/jquery/src/css/support.js +133 -0
  243. data/lib/components/jquery/src/css/var/cssExpand.js +5 -0
  244. data/lib/components/jquery/src/css/var/getStyles.js +17 -0
  245. data/lib/components/jquery/src/css/var/isHiddenWithinTree.js +34 -0
  246. data/lib/components/jquery/src/css/var/rboxStyle.js +7 -0
  247. data/lib/components/jquery/src/css/var/rnumnonpx.js +7 -0
  248. data/lib/components/jquery/src/css/var/swap.js +26 -0
  249. data/lib/components/jquery/src/data.js +180 -0
  250. data/lib/components/jquery/src/data/Data.js +162 -0
  251. data/lib/components/jquery/src/data/var/acceptData.js +19 -0
  252. data/lib/components/jquery/src/data/var/dataPriv.js +7 -0
  253. data/lib/components/jquery/src/data/var/dataUser.js +7 -0
  254. data/lib/components/jquery/src/deferred.js +399 -0
  255. data/lib/components/jquery/src/deferred/exceptionHook.js +21 -0
  256. data/lib/components/jquery/src/deprecated.js +87 -0
  257. data/lib/components/jquery/src/deprecated/ajax-event-alias.js +22 -0
  258. data/lib/components/jquery/src/deprecated/event.js +48 -0
  259. data/lib/components/jquery/src/dimensions.js +57 -0
  260. data/lib/components/jquery/src/effects.js +701 -0
  261. data/lib/components/jquery/src/effects/Tween.js +125 -0
  262. data/lib/components/jquery/src/effects/animatedSelector.js +15 -0
  263. data/lib/components/jquery/src/event.js +892 -0
  264. data/lib/components/jquery/src/event/focusin.js +58 -0
  265. data/lib/components/jquery/src/event/support.js +11 -0
  266. data/lib/components/jquery/src/event/trigger.js +201 -0
  267. data/lib/components/jquery/src/exports/amd.js +26 -0
  268. data/lib/components/jquery/src/exports/global.js +34 -0
  269. data/lib/components/jquery/src/jquery.js +41 -0
  270. data/lib/components/jquery/src/manipulation.js +480 -0
  271. data/lib/components/jquery/src/manipulation/_evalUrl.js +32 -0
  272. data/lib/components/jquery/src/manipulation/buildFragment.js +106 -0
  273. data/lib/components/jquery/src/manipulation/getAll.js +32 -0
  274. data/lib/components/jquery/src/manipulation/setGlobalEval.js +22 -0
  275. data/lib/components/jquery/src/manipulation/support.js +41 -0
  276. data/lib/components/jquery/src/manipulation/var/rscriptType.js +5 -0
  277. data/lib/components/jquery/src/manipulation/var/rtagName.js +8 -0
  278. data/lib/components/jquery/src/manipulation/wrapMap.js +30 -0
  279. data/lib/components/jquery/src/offset.js +238 -0
  280. data/lib/components/jquery/src/queue.js +145 -0
  281. data/lib/components/jquery/src/queue/delay.js +24 -0
  282. data/lib/components/jquery/src/selector-native.js +241 -0
  283. data/lib/components/jquery/src/selector-sizzle.js +19 -0
  284. data/lib/components/jquery/src/selector.js +3 -0
  285. data/lib/components/jquery/src/serialize.js +136 -0
  286. data/lib/components/jquery/src/traversing.js +198 -0
  287. data/lib/components/jquery/src/traversing/findFilter.js +97 -0
  288. data/lib/components/jquery/src/traversing/var/dir.js +22 -0
  289. data/lib/components/jquery/src/traversing/var/rneedsContext.js +8 -0
  290. data/lib/components/jquery/src/traversing/var/siblings.js +17 -0
  291. data/lib/components/jquery/src/var/ObjectFunctionString.js +7 -0
  292. data/lib/components/jquery/src/var/arr.js +5 -0
  293. data/lib/components/jquery/src/var/class2type.js +6 -0
  294. data/lib/components/jquery/src/var/document.js +5 -0
  295. data/lib/components/jquery/src/var/documentElement.js +7 -0
  296. data/lib/components/jquery/src/var/flat.js +16 -0
  297. data/lib/components/jquery/src/var/fnToString.js +7 -0
  298. data/lib/components/jquery/src/var/getProto.js +5 -0
  299. data/lib/components/jquery/src/var/hasOwn.js +7 -0
  300. data/lib/components/jquery/src/var/indexOf.js +7 -0
  301. data/lib/components/jquery/src/var/isFunction.js +13 -0
  302. data/lib/components/jquery/src/var/isWindow.js +8 -0
  303. data/lib/components/jquery/src/var/pnum.js +5 -0
  304. data/lib/components/jquery/src/var/push.js +7 -0
  305. data/lib/components/jquery/src/var/rcheckableType.js +5 -0
  306. data/lib/components/jquery/src/var/rcssNum.js +9 -0
  307. data/lib/components/jquery/src/var/rnothtmlwhite.js +8 -0
  308. data/lib/components/jquery/src/var/slice.js +7 -0
  309. data/lib/components/jquery/src/var/support.js +6 -0
  310. data/lib/components/jquery/src/var/toString.js +7 -0
  311. data/lib/components/jquery/src/wrap.js +78 -0
  312. data/lib/utopia/wiki.rb +80 -0
  313. data/lib/utopia/wiki/version.rb +27 -0
  314. data/package.json +6 -0
  315. data/pages/_editor.xnode +21 -0
  316. data/pages/_heading.xnode +2 -0
  317. data/pages/_listing.xnode +23 -0
  318. data/pages/_navigation.xnode +33 -0
  319. data/pages/_page.xnode +32 -0
  320. data/pages/_thumbnail.xnode +8 -0
  321. data/pages/controller.rb +77 -0
  322. data/pages/create.xnode +15 -0
  323. data/pages/edit.xnode +10 -0
  324. data/pages/errors/exception.xnode +5 -0
  325. data/pages/errors/file-not-found.xnode +5 -0
  326. data/pages/links.yaml +2 -0
  327. data/pages/show.xnode +15 -0
  328. data/public/.nojekyll +0 -0
  329. data/public/_components/jquery-litebox/jquery.litebox.css +23 -0
  330. data/public/_components/jquery-litebox/jquery.litebox.gallery.css +48 -0
  331. data/public/_components/jquery-litebox/jquery.litebox.js +30 -0
  332. data/public/_components/jquery-syntax/base/jquery.syntax.brush.apache.css +12 -0
  333. data/public/_components/jquery-syntax/base/jquery.syntax.brush.applescript.css +5 -0
  334. data/public/_components/jquery-syntax/base/jquery.syntax.brush.assembly.css +8 -0
  335. data/public/_components/jquery-syntax/base/jquery.syntax.brush.bash-script.css +6 -0
  336. data/public/_components/jquery-syntax/base/jquery.syntax.brush.bash.css +4 -0
  337. data/public/_components/jquery-syntax/base/jquery.syntax.brush.clang.css +6 -0
  338. data/public/_components/jquery-syntax/base/jquery.syntax.brush.css.css +14 -0
  339. data/public/_components/jquery-syntax/base/jquery.syntax.brush.diff.css +16 -0
  340. data/public/_components/jquery-syntax/base/jquery.syntax.brush.html.css +5 -0
  341. data/public/_components/jquery-syntax/base/jquery.syntax.brush.ocaml.css +3 -0
  342. data/public/_components/jquery-syntax/base/jquery.syntax.brush.protobuf.css +2 -0
  343. data/public/_components/jquery-syntax/base/jquery.syntax.brush.python.css +6 -0
  344. data/public/_components/jquery-syntax/base/jquery.syntax.brush.ruby.css +2 -0
  345. data/public/_components/jquery-syntax/base/jquery.syntax.brush.xml.css +18 -0
  346. data/public/_components/jquery-syntax/base/jquery.syntax.core.css +58 -0
  347. data/public/_components/jquery-syntax/base/jquery.syntax.editor.css +6 -0
  348. data/public/_components/jquery-syntax/base/theme.js +1 -0
  349. data/public/_components/jquery-syntax/bright/jquery.syntax.core.css +27 -0
  350. data/public/_components/jquery-syntax/bright/theme.js +1 -0
  351. data/public/_components/jquery-syntax/jquery.syntax.brush.apache.js +3 -0
  352. data/public/_components/jquery-syntax/jquery.syntax.brush.applescript.js +5 -0
  353. data/public/_components/jquery-syntax/jquery.syntax.brush.assembly.js +3 -0
  354. data/public/_components/jquery-syntax/jquery.syntax.brush.bash-script.js +4 -0
  355. data/public/_components/jquery-syntax/jquery.syntax.brush.bash.js +2 -0
  356. data/public/_components/jquery-syntax/jquery.syntax.brush.basic.js +5 -0
  357. data/public/_components/jquery-syntax/jquery.syntax.brush.clang.js +5 -0
  358. data/public/_components/jquery-syntax/jquery.syntax.brush.csharp.js +4 -0
  359. data/public/_components/jquery-syntax/jquery.syntax.brush.css.js +5 -0
  360. data/public/_components/jquery-syntax/jquery.syntax.brush.diff.js +2 -0
  361. data/public/_components/jquery-syntax/jquery.syntax.brush.go.js +3 -0
  362. data/public/_components/jquery-syntax/jquery.syntax.brush.haskell.js +3 -0
  363. data/public/_components/jquery-syntax/jquery.syntax.brush.html.js +4 -0
  364. data/public/_components/jquery-syntax/jquery.syntax.brush.io.js +3 -0
  365. data/public/_components/jquery-syntax/jquery.syntax.brush.java.js +4 -0
  366. data/public/_components/jquery-syntax/jquery.syntax.brush.javascript.js +3 -0
  367. data/public/_components/jquery-syntax/jquery.syntax.brush.kai.js +2 -0
  368. data/public/_components/jquery-syntax/jquery.syntax.brush.lisp.js +2 -0
  369. data/public/_components/jquery-syntax/jquery.syntax.brush.lua.js +3 -0
  370. data/public/_components/jquery-syntax/jquery.syntax.brush.nginx.js +2 -0
  371. data/public/_components/jquery-syntax/jquery.syntax.brush.ocaml.js +4 -0
  372. data/public/_components/jquery-syntax/jquery.syntax.brush.ooc.js +4 -0
  373. data/public/_components/jquery-syntax/jquery.syntax.brush.pascal.js +4 -0
  374. data/public/_components/jquery-syntax/jquery.syntax.brush.perl5.js +3 -0
  375. data/public/_components/jquery-syntax/jquery.syntax.brush.php-script.js +4 -0
  376. data/public/_components/jquery-syntax/jquery.syntax.brush.php.js +2 -0
  377. data/public/_components/jquery-syntax/jquery.syntax.brush.plain.js +2 -0
  378. data/public/_components/jquery-syntax/jquery.syntax.brush.protobuf.js +3 -0
  379. data/public/_components/jquery-syntax/jquery.syntax.brush.python.js +5 -0
  380. data/public/_components/jquery-syntax/jquery.syntax.brush.ruby.js +5 -0
  381. data/public/_components/jquery-syntax/jquery.syntax.brush.scala.js +4 -0
  382. data/public/_components/jquery-syntax/jquery.syntax.brush.smalltalk.js +2 -0
  383. data/public/_components/jquery-syntax/jquery.syntax.brush.sql.js +4 -0
  384. data/public/_components/jquery-syntax/jquery.syntax.brush.super-collider.js +3 -0
  385. data/public/_components/jquery-syntax/jquery.syntax.brush.swift.js +3 -0
  386. data/public/_components/jquery-syntax/jquery.syntax.brush.trenni.js +2 -0
  387. data/public/_components/jquery-syntax/jquery.syntax.brush.xml.js +4 -0
  388. data/public/_components/jquery-syntax/jquery.syntax.brush.yaml.js +2 -0
  389. data/public/_components/jquery-syntax/jquery.syntax.cache.js +7 -0
  390. data/public/_components/jquery-syntax/jquery.syntax.core.js +34 -0
  391. data/public/_components/jquery-syntax/jquery.syntax.editor.js +11 -0
  392. data/public/_components/jquery-syntax/jquery.syntax.js +8 -0
  393. data/public/_components/jquery-syntax/jquery.syntax.min.js +13 -0
  394. data/public/_components/jquery-syntax/paper/jquery.syntax.core.css +31 -0
  395. data/public/_components/jquery-syntax/paper/theme.js +1 -0
  396. data/public/_components/jquery/jquery.js +10872 -0
  397. data/public/_components/jquery/jquery.min.js +2 -0
  398. data/public/_components/jquery/jquery.min.map +1 -0
  399. data/public/_components/jquery/jquery.slim.js +8777 -0
  400. data/public/_components/jquery/jquery.slim.min.js +2 -0
  401. data/public/_components/jquery/jquery.slim.min.map +1 -0
  402. data/public/_static/icon.png +0 -0
  403. data/public/_static/site.css +191 -0
  404. data/utopia-wiki.gemspec +39 -0
  405. data/wiki/Gemfile +10 -0
  406. data/wiki/config.ru +7 -0
  407. data/wiki/pages/_logos/Async.png +0 -0
  408. data/wiki/pages/_logos/Falcon.png +0 -0
  409. data/wiki/pages/_logos/Utopia.png +0 -0
  410. data/wiki/pages/index.en.md +62 -0
  411. data/wiki/pages/index.md +57 -0
  412. data/wiki/pages/links.yaml +2 -0
  413. data/wiki/pages/usage/merging/index.md +3 -0
  414. data/yarn.lock +22 -0
  415. metadata +675 -0
@@ -0,0 +1,87 @@
1
+ define( [
2
+ "./core",
3
+ "./core/nodeName",
4
+ "./core/camelCase",
5
+ "./core/toType",
6
+ "./var/isFunction",
7
+ "./var/isWindow",
8
+ "./var/slice",
9
+
10
+ "./deprecated/ajax-event-alias",
11
+ "./deprecated/event"
12
+ ], function( jQuery, nodeName, camelCase, toType, isFunction, isWindow, slice ) {
13
+
14
+ "use strict";
15
+
16
+ // Support: Android <=4.0 only
17
+ // Make sure we trim BOM and NBSP
18
+ var rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
19
+
20
+ // Bind a function to a context, optionally partially applying any
21
+ // arguments.
22
+ // jQuery.proxy is deprecated to promote standards (specifically Function#bind)
23
+ // However, it is not slated for removal any time soon
24
+ jQuery.proxy = function( fn, context ) {
25
+ var tmp, args, proxy;
26
+
27
+ if ( typeof context === "string" ) {
28
+ tmp = fn[ context ];
29
+ context = fn;
30
+ fn = tmp;
31
+ }
32
+
33
+ // Quick check to determine if target is callable, in the spec
34
+ // this throws a TypeError, but we will just return undefined.
35
+ if ( !isFunction( fn ) ) {
36
+ return undefined;
37
+ }
38
+
39
+ // Simulated bind
40
+ args = slice.call( arguments, 2 );
41
+ proxy = function() {
42
+ return fn.apply( context || this, args.concat( slice.call( arguments ) ) );
43
+ };
44
+
45
+ // Set the guid of unique handler to the same of original handler, so it can be removed
46
+ proxy.guid = fn.guid = fn.guid || jQuery.guid++;
47
+
48
+ return proxy;
49
+ };
50
+
51
+ jQuery.holdReady = function( hold ) {
52
+ if ( hold ) {
53
+ jQuery.readyWait++;
54
+ } else {
55
+ jQuery.ready( true );
56
+ }
57
+ };
58
+ jQuery.isArray = Array.isArray;
59
+ jQuery.parseJSON = JSON.parse;
60
+ jQuery.nodeName = nodeName;
61
+ jQuery.isFunction = isFunction;
62
+ jQuery.isWindow = isWindow;
63
+ jQuery.camelCase = camelCase;
64
+ jQuery.type = toType;
65
+
66
+ jQuery.now = Date.now;
67
+
68
+ jQuery.isNumeric = function( obj ) {
69
+
70
+ // As of jQuery 3.0, isNumeric is limited to
71
+ // strings and numbers (primitives or objects)
72
+ // that can be coerced to finite numbers (gh-2662)
73
+ var type = jQuery.type( obj );
74
+ return ( type === "number" || type === "string" ) &&
75
+
76
+ // parseFloat NaNs numeric-cast false positives ("")
77
+ // ...but misinterprets leading-number strings, particularly hex literals ("0x...")
78
+ // subtraction forces infinities to NaN
79
+ !isNaN( obj - parseFloat( obj ) );
80
+ };
81
+
82
+ jQuery.trim = function( text ) {
83
+ return text == null ?
84
+ "" :
85
+ ( text + "" ).replace( rtrim, "" );
86
+ };
87
+ } );
@@ -0,0 +1,22 @@
1
+ define( [
2
+ "../core",
3
+ "../ajax",
4
+ "../event"
5
+ ], function( jQuery ) {
6
+
7
+ "use strict";
8
+
9
+ jQuery.each( [
10
+ "ajaxStart",
11
+ "ajaxStop",
12
+ "ajaxComplete",
13
+ "ajaxError",
14
+ "ajaxSuccess",
15
+ "ajaxSend"
16
+ ], function( _i, type ) {
17
+ jQuery.fn[ type ] = function( fn ) {
18
+ return this.on( type, fn );
19
+ };
20
+ } );
21
+
22
+ } );
@@ -0,0 +1,48 @@
1
+ define( [
2
+ "../core",
3
+
4
+ "../event",
5
+ "../event/trigger"
6
+ ], function( jQuery ) {
7
+
8
+ "use strict";
9
+
10
+ jQuery.fn.extend( {
11
+
12
+ bind: function( types, data, fn ) {
13
+ return this.on( types, null, data, fn );
14
+ },
15
+ unbind: function( types, fn ) {
16
+ return this.off( types, null, fn );
17
+ },
18
+
19
+ delegate: function( selector, types, data, fn ) {
20
+ return this.on( types, selector, data, fn );
21
+ },
22
+ undelegate: function( selector, types, fn ) {
23
+
24
+ // ( namespace ) or ( selector, types [, fn] )
25
+ return arguments.length === 1 ?
26
+ this.off( selector, "**" ) :
27
+ this.off( types, selector || "**", fn );
28
+ },
29
+
30
+ hover: function( fnOver, fnOut ) {
31
+ return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
32
+ }
33
+ } );
34
+
35
+ jQuery.each( ( "blur focus focusin focusout resize scroll click dblclick " +
36
+ "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
37
+ "change select submit keydown keypress keyup contextmenu" ).split( " " ),
38
+ function( _i, name ) {
39
+
40
+ // Handle event binding
41
+ jQuery.fn[ name ] = function( data, fn ) {
42
+ return arguments.length > 0 ?
43
+ this.on( name, null, data, fn ) :
44
+ this.trigger( name );
45
+ };
46
+ } );
47
+
48
+ } );
@@ -0,0 +1,57 @@
1
+ define( [
2
+ "./core",
3
+ "./core/access",
4
+ "./var/isWindow",
5
+ "./css"
6
+ ], function( jQuery, access, isWindow ) {
7
+
8
+ "use strict";
9
+
10
+ // Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
11
+ jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
12
+ jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name },
13
+ function( defaultExtra, funcName ) {
14
+
15
+ // Margin is only for outerHeight, outerWidth
16
+ jQuery.fn[ funcName ] = function( margin, value ) {
17
+ var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ),
18
+ extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" );
19
+
20
+ return access( this, function( elem, type, value ) {
21
+ var doc;
22
+
23
+ if ( isWindow( elem ) ) {
24
+
25
+ // $( window ).outerWidth/Height return w/h including scrollbars (gh-1729)
26
+ return funcName.indexOf( "outer" ) === 0 ?
27
+ elem[ "inner" + name ] :
28
+ elem.document.documentElement[ "client" + name ];
29
+ }
30
+
31
+ // Get document width or height
32
+ if ( elem.nodeType === 9 ) {
33
+ doc = elem.documentElement;
34
+
35
+ // Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height],
36
+ // whichever is greatest
37
+ return Math.max(
38
+ elem.body[ "scroll" + name ], doc[ "scroll" + name ],
39
+ elem.body[ "offset" + name ], doc[ "offset" + name ],
40
+ doc[ "client" + name ]
41
+ );
42
+ }
43
+
44
+ return value === undefined ?
45
+
46
+ // Get width or height on the element, requesting but not forcing parseFloat
47
+ jQuery.css( elem, type, extra ) :
48
+
49
+ // Set width or height on the element
50
+ jQuery.style( elem, type, value, extra );
51
+ }, type, chainable ? margin : undefined, chainable );
52
+ };
53
+ } );
54
+ } );
55
+
56
+ return jQuery;
57
+ } );
@@ -0,0 +1,701 @@
1
+ define( [
2
+ "./core",
3
+ "./core/camelCase",
4
+ "./var/document",
5
+ "./var/isFunction",
6
+ "./var/rcssNum",
7
+ "./var/rnothtmlwhite",
8
+ "./css/var/cssExpand",
9
+ "./css/var/isHiddenWithinTree",
10
+ "./css/adjustCSS",
11
+ "./data/var/dataPriv",
12
+ "./css/showHide",
13
+
14
+ "./core/init",
15
+ "./queue",
16
+ "./deferred",
17
+ "./traversing",
18
+ "./manipulation",
19
+ "./css",
20
+ "./effects/Tween"
21
+ ], function( jQuery, camelCase, document, isFunction, rcssNum, rnothtmlwhite, cssExpand,
22
+ isHiddenWithinTree, adjustCSS, dataPriv, showHide ) {
23
+
24
+ "use strict";
25
+
26
+ var
27
+ fxNow, inProgress,
28
+ rfxtypes = /^(?:toggle|show|hide)$/,
29
+ rrun = /queueHooks$/;
30
+
31
+ function schedule() {
32
+ if ( inProgress ) {
33
+ if ( document.hidden === false && window.requestAnimationFrame ) {
34
+ window.requestAnimationFrame( schedule );
35
+ } else {
36
+ window.setTimeout( schedule, jQuery.fx.interval );
37
+ }
38
+
39
+ jQuery.fx.tick();
40
+ }
41
+ }
42
+
43
+ // Animations created synchronously will run synchronously
44
+ function createFxNow() {
45
+ window.setTimeout( function() {
46
+ fxNow = undefined;
47
+ } );
48
+ return ( fxNow = Date.now() );
49
+ }
50
+
51
+ // Generate parameters to create a standard animation
52
+ function genFx( type, includeWidth ) {
53
+ var which,
54
+ i = 0,
55
+ attrs = { height: type };
56
+
57
+ // If we include width, step value is 1 to do all cssExpand values,
58
+ // otherwise step value is 2 to skip over Left and Right
59
+ includeWidth = includeWidth ? 1 : 0;
60
+ for ( ; i < 4; i += 2 - includeWidth ) {
61
+ which = cssExpand[ i ];
62
+ attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
63
+ }
64
+
65
+ if ( includeWidth ) {
66
+ attrs.opacity = attrs.width = type;
67
+ }
68
+
69
+ return attrs;
70
+ }
71
+
72
+ function createTween( value, prop, animation ) {
73
+ var tween,
74
+ collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ),
75
+ index = 0,
76
+ length = collection.length;
77
+ for ( ; index < length; index++ ) {
78
+ if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) {
79
+
80
+ // We're done with this property
81
+ return tween;
82
+ }
83
+ }
84
+ }
85
+
86
+ function defaultPrefilter( elem, props, opts ) {
87
+ var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display,
88
+ isBox = "width" in props || "height" in props,
89
+ anim = this,
90
+ orig = {},
91
+ style = elem.style,
92
+ hidden = elem.nodeType && isHiddenWithinTree( elem ),
93
+ dataShow = dataPriv.get( elem, "fxshow" );
94
+
95
+ // Queue-skipping animations hijack the fx hooks
96
+ if ( !opts.queue ) {
97
+ hooks = jQuery._queueHooks( elem, "fx" );
98
+ if ( hooks.unqueued == null ) {
99
+ hooks.unqueued = 0;
100
+ oldfire = hooks.empty.fire;
101
+ hooks.empty.fire = function() {
102
+ if ( !hooks.unqueued ) {
103
+ oldfire();
104
+ }
105
+ };
106
+ }
107
+ hooks.unqueued++;
108
+
109
+ anim.always( function() {
110
+
111
+ // Ensure the complete handler is called before this completes
112
+ anim.always( function() {
113
+ hooks.unqueued--;
114
+ if ( !jQuery.queue( elem, "fx" ).length ) {
115
+ hooks.empty.fire();
116
+ }
117
+ } );
118
+ } );
119
+ }
120
+
121
+ // Detect show/hide animations
122
+ for ( prop in props ) {
123
+ value = props[ prop ];
124
+ if ( rfxtypes.test( value ) ) {
125
+ delete props[ prop ];
126
+ toggle = toggle || value === "toggle";
127
+ if ( value === ( hidden ? "hide" : "show" ) ) {
128
+
129
+ // Pretend to be hidden if this is a "show" and
130
+ // there is still data from a stopped show/hide
131
+ if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) {
132
+ hidden = true;
133
+
134
+ // Ignore all other no-op show/hide data
135
+ } else {
136
+ continue;
137
+ }
138
+ }
139
+ orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );
140
+ }
141
+ }
142
+
143
+ // Bail out if this is a no-op like .hide().hide()
144
+ propTween = !jQuery.isEmptyObject( props );
145
+ if ( !propTween && jQuery.isEmptyObject( orig ) ) {
146
+ return;
147
+ }
148
+
149
+ // Restrict "overflow" and "display" styles during box animations
150
+ if ( isBox && elem.nodeType === 1 ) {
151
+
152
+ // Support: IE <=9 - 11, Edge 12 - 15
153
+ // Record all 3 overflow attributes because IE does not infer the shorthand
154
+ // from identically-valued overflowX and overflowY and Edge just mirrors
155
+ // the overflowX value there.
156
+ opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];
157
+
158
+ // Identify a display type, preferring old show/hide data over the CSS cascade
159
+ restoreDisplay = dataShow && dataShow.display;
160
+ if ( restoreDisplay == null ) {
161
+ restoreDisplay = dataPriv.get( elem, "display" );
162
+ }
163
+ display = jQuery.css( elem, "display" );
164
+ if ( display === "none" ) {
165
+ if ( restoreDisplay ) {
166
+ display = restoreDisplay;
167
+ } else {
168
+
169
+ // Get nonempty value(s) by temporarily forcing visibility
170
+ showHide( [ elem ], true );
171
+ restoreDisplay = elem.style.display || restoreDisplay;
172
+ display = jQuery.css( elem, "display" );
173
+ showHide( [ elem ] );
174
+ }
175
+ }
176
+
177
+ // Animate inline elements as inline-block
178
+ if ( display === "inline" || display === "inline-block" && restoreDisplay != null ) {
179
+ if ( jQuery.css( elem, "float" ) === "none" ) {
180
+
181
+ // Restore the original display value at the end of pure show/hide animations
182
+ if ( !propTween ) {
183
+ anim.done( function() {
184
+ style.display = restoreDisplay;
185
+ } );
186
+ if ( restoreDisplay == null ) {
187
+ display = style.display;
188
+ restoreDisplay = display === "none" ? "" : display;
189
+ }
190
+ }
191
+ style.display = "inline-block";
192
+ }
193
+ }
194
+ }
195
+
196
+ if ( opts.overflow ) {
197
+ style.overflow = "hidden";
198
+ anim.always( function() {
199
+ style.overflow = opts.overflow[ 0 ];
200
+ style.overflowX = opts.overflow[ 1 ];
201
+ style.overflowY = opts.overflow[ 2 ];
202
+ } );
203
+ }
204
+
205
+ // Implement show/hide animations
206
+ propTween = false;
207
+ for ( prop in orig ) {
208
+
209
+ // General show/hide setup for this element animation
210
+ if ( !propTween ) {
211
+ if ( dataShow ) {
212
+ if ( "hidden" in dataShow ) {
213
+ hidden = dataShow.hidden;
214
+ }
215
+ } else {
216
+ dataShow = dataPriv.access( elem, "fxshow", { display: restoreDisplay } );
217
+ }
218
+
219
+ // Store hidden/visible for toggle so `.stop().toggle()` "reverses"
220
+ if ( toggle ) {
221
+ dataShow.hidden = !hidden;
222
+ }
223
+
224
+ // Show elements before animating them
225
+ if ( hidden ) {
226
+ showHide( [ elem ], true );
227
+ }
228
+
229
+ /* eslint-disable no-loop-func */
230
+
231
+ anim.done( function() {
232
+
233
+ /* eslint-enable no-loop-func */
234
+
235
+ // The final step of a "hide" animation is actually hiding the element
236
+ if ( !hidden ) {
237
+ showHide( [ elem ] );
238
+ }
239
+ dataPriv.remove( elem, "fxshow" );
240
+ for ( prop in orig ) {
241
+ jQuery.style( elem, prop, orig[ prop ] );
242
+ }
243
+ } );
244
+ }
245
+
246
+ // Per-property setup
247
+ propTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );
248
+ if ( !( prop in dataShow ) ) {
249
+ dataShow[ prop ] = propTween.start;
250
+ if ( hidden ) {
251
+ propTween.end = propTween.start;
252
+ propTween.start = 0;
253
+ }
254
+ }
255
+ }
256
+ }
257
+
258
+ function propFilter( props, specialEasing ) {
259
+ var index, name, easing, value, hooks;
260
+
261
+ // camelCase, specialEasing and expand cssHook pass
262
+ for ( index in props ) {
263
+ name = camelCase( index );
264
+ easing = specialEasing[ name ];
265
+ value = props[ index ];
266
+ if ( Array.isArray( value ) ) {
267
+ easing = value[ 1 ];
268
+ value = props[ index ] = value[ 0 ];
269
+ }
270
+
271
+ if ( index !== name ) {
272
+ props[ name ] = value;
273
+ delete props[ index ];
274
+ }
275
+
276
+ hooks = jQuery.cssHooks[ name ];
277
+ if ( hooks && "expand" in hooks ) {
278
+ value = hooks.expand( value );
279
+ delete props[ name ];
280
+
281
+ // Not quite $.extend, this won't overwrite existing keys.
282
+ // Reusing 'index' because we have the correct "name"
283
+ for ( index in value ) {
284
+ if ( !( index in props ) ) {
285
+ props[ index ] = value[ index ];
286
+ specialEasing[ index ] = easing;
287
+ }
288
+ }
289
+ } else {
290
+ specialEasing[ name ] = easing;
291
+ }
292
+ }
293
+ }
294
+
295
+ function Animation( elem, properties, options ) {
296
+ var result,
297
+ stopped,
298
+ index = 0,
299
+ length = Animation.prefilters.length,
300
+ deferred = jQuery.Deferred().always( function() {
301
+
302
+ // Don't match elem in the :animated selector
303
+ delete tick.elem;
304
+ } ),
305
+ tick = function() {
306
+ if ( stopped ) {
307
+ return false;
308
+ }
309
+ var currentTime = fxNow || createFxNow(),
310
+ remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
311
+
312
+ // Support: Android 2.3 only
313
+ // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497)
314
+ temp = remaining / animation.duration || 0,
315
+ percent = 1 - temp,
316
+ index = 0,
317
+ length = animation.tweens.length;
318
+
319
+ for ( ; index < length; index++ ) {
320
+ animation.tweens[ index ].run( percent );
321
+ }
322
+
323
+ deferred.notifyWith( elem, [ animation, percent, remaining ] );
324
+
325
+ // If there's more to do, yield
326
+ if ( percent < 1 && length ) {
327
+ return remaining;
328
+ }
329
+
330
+ // If this was an empty animation, synthesize a final progress notification
331
+ if ( !length ) {
332
+ deferred.notifyWith( elem, [ animation, 1, 0 ] );
333
+ }
334
+
335
+ // Resolve the animation and report its conclusion
336
+ deferred.resolveWith( elem, [ animation ] );
337
+ return false;
338
+ },
339
+ animation = deferred.promise( {
340
+ elem: elem,
341
+ props: jQuery.extend( {}, properties ),
342
+ opts: jQuery.extend( true, {
343
+ specialEasing: {},
344
+ easing: jQuery.easing._default
345
+ }, options ),
346
+ originalProperties: properties,
347
+ originalOptions: options,
348
+ startTime: fxNow || createFxNow(),
349
+ duration: options.duration,
350
+ tweens: [],
351
+ createTween: function( prop, end ) {
352
+ var tween = jQuery.Tween( elem, animation.opts, prop, end,
353
+ animation.opts.specialEasing[ prop ] || animation.opts.easing );
354
+ animation.tweens.push( tween );
355
+ return tween;
356
+ },
357
+ stop: function( gotoEnd ) {
358
+ var index = 0,
359
+
360
+ // If we are going to the end, we want to run all the tweens
361
+ // otherwise we skip this part
362
+ length = gotoEnd ? animation.tweens.length : 0;
363
+ if ( stopped ) {
364
+ return this;
365
+ }
366
+ stopped = true;
367
+ for ( ; index < length; index++ ) {
368
+ animation.tweens[ index ].run( 1 );
369
+ }
370
+
371
+ // Resolve when we played the last frame; otherwise, reject
372
+ if ( gotoEnd ) {
373
+ deferred.notifyWith( elem, [ animation, 1, 0 ] );
374
+ deferred.resolveWith( elem, [ animation, gotoEnd ] );
375
+ } else {
376
+ deferred.rejectWith( elem, [ animation, gotoEnd ] );
377
+ }
378
+ return this;
379
+ }
380
+ } ),
381
+ props = animation.props;
382
+
383
+ propFilter( props, animation.opts.specialEasing );
384
+
385
+ for ( ; index < length; index++ ) {
386
+ result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts );
387
+ if ( result ) {
388
+ if ( isFunction( result.stop ) ) {
389
+ jQuery._queueHooks( animation.elem, animation.opts.queue ).stop =
390
+ result.stop.bind( result );
391
+ }
392
+ return result;
393
+ }
394
+ }
395
+
396
+ jQuery.map( props, createTween, animation );
397
+
398
+ if ( isFunction( animation.opts.start ) ) {
399
+ animation.opts.start.call( elem, animation );
400
+ }
401
+
402
+ // Attach callbacks from options
403
+ animation
404
+ .progress( animation.opts.progress )
405
+ .done( animation.opts.done, animation.opts.complete )
406
+ .fail( animation.opts.fail )
407
+ .always( animation.opts.always );
408
+
409
+ jQuery.fx.timer(
410
+ jQuery.extend( tick, {
411
+ elem: elem,
412
+ anim: animation,
413
+ queue: animation.opts.queue
414
+ } )
415
+ );
416
+
417
+ return animation;
418
+ }
419
+
420
+ jQuery.Animation = jQuery.extend( Animation, {
421
+
422
+ tweeners: {
423
+ "*": [ function( prop, value ) {
424
+ var tween = this.createTween( prop, value );
425
+ adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween );
426
+ return tween;
427
+ } ]
428
+ },
429
+
430
+ tweener: function( props, callback ) {
431
+ if ( isFunction( props ) ) {
432
+ callback = props;
433
+ props = [ "*" ];
434
+ } else {
435
+ props = props.match( rnothtmlwhite );
436
+ }
437
+
438
+ var prop,
439
+ index = 0,
440
+ length = props.length;
441
+
442
+ for ( ; index < length; index++ ) {
443
+ prop = props[ index ];
444
+ Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || [];
445
+ Animation.tweeners[ prop ].unshift( callback );
446
+ }
447
+ },
448
+
449
+ prefilters: [ defaultPrefilter ],
450
+
451
+ prefilter: function( callback, prepend ) {
452
+ if ( prepend ) {
453
+ Animation.prefilters.unshift( callback );
454
+ } else {
455
+ Animation.prefilters.push( callback );
456
+ }
457
+ }
458
+ } );
459
+
460
+ jQuery.speed = function( speed, easing, fn ) {
461
+ var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
462
+ complete: fn || !fn && easing ||
463
+ isFunction( speed ) && speed,
464
+ duration: speed,
465
+ easing: fn && easing || easing && !isFunction( easing ) && easing
466
+ };
467
+
468
+ // Go to the end state if fx are off
469
+ if ( jQuery.fx.off ) {
470
+ opt.duration = 0;
471
+
472
+ } else {
473
+ if ( typeof opt.duration !== "number" ) {
474
+ if ( opt.duration in jQuery.fx.speeds ) {
475
+ opt.duration = jQuery.fx.speeds[ opt.duration ];
476
+
477
+ } else {
478
+ opt.duration = jQuery.fx.speeds._default;
479
+ }
480
+ }
481
+ }
482
+
483
+ // Normalize opt.queue - true/undefined/null -> "fx"
484
+ if ( opt.queue == null || opt.queue === true ) {
485
+ opt.queue = "fx";
486
+ }
487
+
488
+ // Queueing
489
+ opt.old = opt.complete;
490
+
491
+ opt.complete = function() {
492
+ if ( isFunction( opt.old ) ) {
493
+ opt.old.call( this );
494
+ }
495
+
496
+ if ( opt.queue ) {
497
+ jQuery.dequeue( this, opt.queue );
498
+ }
499
+ };
500
+
501
+ return opt;
502
+ };
503
+
504
+ jQuery.fn.extend( {
505
+ fadeTo: function( speed, to, easing, callback ) {
506
+
507
+ // Show any hidden elements after setting opacity to 0
508
+ return this.filter( isHiddenWithinTree ).css( "opacity", 0 ).show()
509
+
510
+ // Animate to the value specified
511
+ .end().animate( { opacity: to }, speed, easing, callback );
512
+ },
513
+ animate: function( prop, speed, easing, callback ) {
514
+ var empty = jQuery.isEmptyObject( prop ),
515
+ optall = jQuery.speed( speed, easing, callback ),
516
+ doAnimation = function() {
517
+
518
+ // Operate on a copy of prop so per-property easing won't be lost
519
+ var anim = Animation( this, jQuery.extend( {}, prop ), optall );
520
+
521
+ // Empty animations, or finishing resolves immediately
522
+ if ( empty || dataPriv.get( this, "finish" ) ) {
523
+ anim.stop( true );
524
+ }
525
+ };
526
+ doAnimation.finish = doAnimation;
527
+
528
+ return empty || optall.queue === false ?
529
+ this.each( doAnimation ) :
530
+ this.queue( optall.queue, doAnimation );
531
+ },
532
+ stop: function( type, clearQueue, gotoEnd ) {
533
+ var stopQueue = function( hooks ) {
534
+ var stop = hooks.stop;
535
+ delete hooks.stop;
536
+ stop( gotoEnd );
537
+ };
538
+
539
+ if ( typeof type !== "string" ) {
540
+ gotoEnd = clearQueue;
541
+ clearQueue = type;
542
+ type = undefined;
543
+ }
544
+ if ( clearQueue ) {
545
+ this.queue( type || "fx", [] );
546
+ }
547
+
548
+ return this.each( function() {
549
+ var dequeue = true,
550
+ index = type != null && type + "queueHooks",
551
+ timers = jQuery.timers,
552
+ data = dataPriv.get( this );
553
+
554
+ if ( index ) {
555
+ if ( data[ index ] && data[ index ].stop ) {
556
+ stopQueue( data[ index ] );
557
+ }
558
+ } else {
559
+ for ( index in data ) {
560
+ if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {
561
+ stopQueue( data[ index ] );
562
+ }
563
+ }
564
+ }
565
+
566
+ for ( index = timers.length; index--; ) {
567
+ if ( timers[ index ].elem === this &&
568
+ ( type == null || timers[ index ].queue === type ) ) {
569
+
570
+ timers[ index ].anim.stop( gotoEnd );
571
+ dequeue = false;
572
+ timers.splice( index, 1 );
573
+ }
574
+ }
575
+
576
+ // Start the next in the queue if the last step wasn't forced.
577
+ // Timers currently will call their complete callbacks, which
578
+ // will dequeue but only if they were gotoEnd.
579
+ if ( dequeue || !gotoEnd ) {
580
+ jQuery.dequeue( this, type );
581
+ }
582
+ } );
583
+ },
584
+ finish: function( type ) {
585
+ if ( type !== false ) {
586
+ type = type || "fx";
587
+ }
588
+ return this.each( function() {
589
+ var index,
590
+ data = dataPriv.get( this ),
591
+ queue = data[ type + "queue" ],
592
+ hooks = data[ type + "queueHooks" ],
593
+ timers = jQuery.timers,
594
+ length = queue ? queue.length : 0;
595
+
596
+ // Enable finishing flag on private data
597
+ data.finish = true;
598
+
599
+ // Empty the queue first
600
+ jQuery.queue( this, type, [] );
601
+
602
+ if ( hooks && hooks.stop ) {
603
+ hooks.stop.call( this, true );
604
+ }
605
+
606
+ // Look for any active animations, and finish them
607
+ for ( index = timers.length; index--; ) {
608
+ if ( timers[ index ].elem === this && timers[ index ].queue === type ) {
609
+ timers[ index ].anim.stop( true );
610
+ timers.splice( index, 1 );
611
+ }
612
+ }
613
+
614
+ // Look for any animations in the old queue and finish them
615
+ for ( index = 0; index < length; index++ ) {
616
+ if ( queue[ index ] && queue[ index ].finish ) {
617
+ queue[ index ].finish.call( this );
618
+ }
619
+ }
620
+
621
+ // Turn off finishing flag
622
+ delete data.finish;
623
+ } );
624
+ }
625
+ } );
626
+
627
+ jQuery.each( [ "toggle", "show", "hide" ], function( _i, name ) {
628
+ var cssFn = jQuery.fn[ name ];
629
+ jQuery.fn[ name ] = function( speed, easing, callback ) {
630
+ return speed == null || typeof speed === "boolean" ?
631
+ cssFn.apply( this, arguments ) :
632
+ this.animate( genFx( name, true ), speed, easing, callback );
633
+ };
634
+ } );
635
+
636
+ // Generate shortcuts for custom animations
637
+ jQuery.each( {
638
+ slideDown: genFx( "show" ),
639
+ slideUp: genFx( "hide" ),
640
+ slideToggle: genFx( "toggle" ),
641
+ fadeIn: { opacity: "show" },
642
+ fadeOut: { opacity: "hide" },
643
+ fadeToggle: { opacity: "toggle" }
644
+ }, function( name, props ) {
645
+ jQuery.fn[ name ] = function( speed, easing, callback ) {
646
+ return this.animate( props, speed, easing, callback );
647
+ };
648
+ } );
649
+
650
+ jQuery.timers = [];
651
+ jQuery.fx.tick = function() {
652
+ var timer,
653
+ i = 0,
654
+ timers = jQuery.timers;
655
+
656
+ fxNow = Date.now();
657
+
658
+ for ( ; i < timers.length; i++ ) {
659
+ timer = timers[ i ];
660
+
661
+ // Run the timer and safely remove it when done (allowing for external removal)
662
+ if ( !timer() && timers[ i ] === timer ) {
663
+ timers.splice( i--, 1 );
664
+ }
665
+ }
666
+
667
+ if ( !timers.length ) {
668
+ jQuery.fx.stop();
669
+ }
670
+ fxNow = undefined;
671
+ };
672
+
673
+ jQuery.fx.timer = function( timer ) {
674
+ jQuery.timers.push( timer );
675
+ jQuery.fx.start();
676
+ };
677
+
678
+ jQuery.fx.interval = 13;
679
+ jQuery.fx.start = function() {
680
+ if ( inProgress ) {
681
+ return;
682
+ }
683
+
684
+ inProgress = true;
685
+ schedule();
686
+ };
687
+
688
+ jQuery.fx.stop = function() {
689
+ inProgress = null;
690
+ };
691
+
692
+ jQuery.fx.speeds = {
693
+ slow: 600,
694
+ fast: 200,
695
+
696
+ // Default speed
697
+ _default: 400
698
+ };
699
+
700
+ return jQuery;
701
+ } );