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,58 @@
1
+ define( [
2
+ "../core",
3
+ "../data/var/dataPriv",
4
+ "./support",
5
+
6
+ "../event",
7
+ "./trigger"
8
+ ], function( jQuery, dataPriv, support ) {
9
+
10
+ "use strict";
11
+
12
+ // Support: Firefox <=44
13
+ // Firefox doesn't have focus(in | out) events
14
+ // Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787
15
+ //
16
+ // Support: Chrome <=48 - 49, Safari <=9.0 - 9.1
17
+ // focus(in | out) events fire after focus & blur events,
18
+ // which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order
19
+ // Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857
20
+ if ( !support.focusin ) {
21
+ jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) {
22
+
23
+ // Attach a single capturing handler on the document while someone wants focusin/focusout
24
+ var handler = function( event ) {
25
+ jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) );
26
+ };
27
+
28
+ jQuery.event.special[ fix ] = {
29
+ setup: function() {
30
+
31
+ // Handle: regular nodes (via `this.ownerDocument`), window
32
+ // (via `this.document`) & document (via `this`).
33
+ var doc = this.ownerDocument || this.document || this,
34
+ attaches = dataPriv.access( doc, fix );
35
+
36
+ if ( !attaches ) {
37
+ doc.addEventListener( orig, handler, true );
38
+ }
39
+ dataPriv.access( doc, fix, ( attaches || 0 ) + 1 );
40
+ },
41
+ teardown: function() {
42
+ var doc = this.ownerDocument || this.document || this,
43
+ attaches = dataPriv.access( doc, fix ) - 1;
44
+
45
+ if ( !attaches ) {
46
+ doc.removeEventListener( orig, handler, true );
47
+ dataPriv.remove( doc, fix );
48
+
49
+ } else {
50
+ dataPriv.access( doc, fix, attaches );
51
+ }
52
+ }
53
+ };
54
+ } );
55
+ }
56
+
57
+ return jQuery;
58
+ } );
@@ -0,0 +1,11 @@
1
+ define( [
2
+ "../var/support"
3
+ ], function( support ) {
4
+
5
+ "use strict";
6
+
7
+ support.focusin = "onfocusin" in window;
8
+
9
+ return support;
10
+
11
+ } );
@@ -0,0 +1,201 @@
1
+ define( [
2
+ "../core",
3
+ "../var/document",
4
+ "../data/var/dataPriv",
5
+ "../data/var/acceptData",
6
+ "../var/hasOwn",
7
+ "../var/isFunction",
8
+ "../var/isWindow",
9
+ "../event"
10
+ ], function( jQuery, document, dataPriv, acceptData, hasOwn, isFunction, isWindow ) {
11
+
12
+ "use strict";
13
+
14
+ var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
15
+ stopPropagationCallback = function( e ) {
16
+ e.stopPropagation();
17
+ };
18
+
19
+ jQuery.extend( jQuery.event, {
20
+
21
+ trigger: function( event, data, elem, onlyHandlers ) {
22
+
23
+ var i, cur, tmp, bubbleType, ontype, handle, special, lastElement,
24
+ eventPath = [ elem || document ],
25
+ type = hasOwn.call( event, "type" ) ? event.type : event,
26
+ namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : [];
27
+
28
+ cur = lastElement = tmp = elem = elem || document;
29
+
30
+ // Don't do events on text and comment nodes
31
+ if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
32
+ return;
33
+ }
34
+
35
+ // focus/blur morphs to focusin/out; ensure we're not firing them right now
36
+ if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
37
+ return;
38
+ }
39
+
40
+ if ( type.indexOf( "." ) > -1 ) {
41
+
42
+ // Namespaced trigger; create a regexp to match event type in handle()
43
+ namespaces = type.split( "." );
44
+ type = namespaces.shift();
45
+ namespaces.sort();
46
+ }
47
+ ontype = type.indexOf( ":" ) < 0 && "on" + type;
48
+
49
+ // Caller can pass in a jQuery.Event object, Object, or just an event type string
50
+ event = event[ jQuery.expando ] ?
51
+ event :
52
+ new jQuery.Event( type, typeof event === "object" && event );
53
+
54
+ // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)
55
+ event.isTrigger = onlyHandlers ? 2 : 3;
56
+ event.namespace = namespaces.join( "." );
57
+ event.rnamespace = event.namespace ?
58
+ new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) :
59
+ null;
60
+
61
+ // Clean up the event in case it is being reused
62
+ event.result = undefined;
63
+ if ( !event.target ) {
64
+ event.target = elem;
65
+ }
66
+
67
+ // Clone any incoming data and prepend the event, creating the handler arg list
68
+ data = data == null ?
69
+ [ event ] :
70
+ jQuery.makeArray( data, [ event ] );
71
+
72
+ // Allow special events to draw outside the lines
73
+ special = jQuery.event.special[ type ] || {};
74
+ if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {
75
+ return;
76
+ }
77
+
78
+ // Determine event propagation path in advance, per W3C events spec (#9951)
79
+ // Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
80
+ if ( !onlyHandlers && !special.noBubble && !isWindow( elem ) ) {
81
+
82
+ bubbleType = special.delegateType || type;
83
+ if ( !rfocusMorph.test( bubbleType + type ) ) {
84
+ cur = cur.parentNode;
85
+ }
86
+ for ( ; cur; cur = cur.parentNode ) {
87
+ eventPath.push( cur );
88
+ tmp = cur;
89
+ }
90
+
91
+ // Only add window if we got to document (e.g., not plain obj or detached DOM)
92
+ if ( tmp === ( elem.ownerDocument || document ) ) {
93
+ eventPath.push( tmp.defaultView || tmp.parentWindow || window );
94
+ }
95
+ }
96
+
97
+ // Fire handlers on the event path
98
+ i = 0;
99
+ while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) {
100
+ lastElement = cur;
101
+ event.type = i > 1 ?
102
+ bubbleType :
103
+ special.bindType || type;
104
+
105
+ // jQuery handler
106
+ handle = (
107
+ dataPriv.get( cur, "events" ) || Object.create( null )
108
+ )[ event.type ] &&
109
+ dataPriv.get( cur, "handle" );
110
+ if ( handle ) {
111
+ handle.apply( cur, data );
112
+ }
113
+
114
+ // Native handler
115
+ handle = ontype && cur[ ontype ];
116
+ if ( handle && handle.apply && acceptData( cur ) ) {
117
+ event.result = handle.apply( cur, data );
118
+ if ( event.result === false ) {
119
+ event.preventDefault();
120
+ }
121
+ }
122
+ }
123
+ event.type = type;
124
+
125
+ // If nobody prevented the default action, do it now
126
+ if ( !onlyHandlers && !event.isDefaultPrevented() ) {
127
+
128
+ if ( ( !special._default ||
129
+ special._default.apply( eventPath.pop(), data ) === false ) &&
130
+ acceptData( elem ) ) {
131
+
132
+ // Call a native DOM method on the target with the same name as the event.
133
+ // Don't do default actions on window, that's where global variables be (#6170)
134
+ if ( ontype && isFunction( elem[ type ] ) && !isWindow( elem ) ) {
135
+
136
+ // Don't re-trigger an onFOO event when we call its FOO() method
137
+ tmp = elem[ ontype ];
138
+
139
+ if ( tmp ) {
140
+ elem[ ontype ] = null;
141
+ }
142
+
143
+ // Prevent re-triggering of the same event, since we already bubbled it above
144
+ jQuery.event.triggered = type;
145
+
146
+ if ( event.isPropagationStopped() ) {
147
+ lastElement.addEventListener( type, stopPropagationCallback );
148
+ }
149
+
150
+ elem[ type ]();
151
+
152
+ if ( event.isPropagationStopped() ) {
153
+ lastElement.removeEventListener( type, stopPropagationCallback );
154
+ }
155
+
156
+ jQuery.event.triggered = undefined;
157
+
158
+ if ( tmp ) {
159
+ elem[ ontype ] = tmp;
160
+ }
161
+ }
162
+ }
163
+ }
164
+
165
+ return event.result;
166
+ },
167
+
168
+ // Piggyback on a donor event to simulate a different one
169
+ // Used only for `focus(in | out)` events
170
+ simulate: function( type, elem, event ) {
171
+ var e = jQuery.extend(
172
+ new jQuery.Event(),
173
+ event,
174
+ {
175
+ type: type,
176
+ isSimulated: true
177
+ }
178
+ );
179
+
180
+ jQuery.event.trigger( e, null, elem );
181
+ }
182
+
183
+ } );
184
+
185
+ jQuery.fn.extend( {
186
+
187
+ trigger: function( type, data ) {
188
+ return this.each( function() {
189
+ jQuery.event.trigger( type, data, this );
190
+ } );
191
+ },
192
+ triggerHandler: function( type, data ) {
193
+ var elem = this[ 0 ];
194
+ if ( elem ) {
195
+ return jQuery.event.trigger( type, data, elem, true );
196
+ }
197
+ }
198
+ } );
199
+
200
+ return jQuery;
201
+ } );
@@ -0,0 +1,26 @@
1
+ define( [
2
+ "../core"
3
+ ], function( jQuery ) {
4
+
5
+ "use strict";
6
+
7
+ // Register as a named AMD module, since jQuery can be concatenated with other
8
+ // files that may use define, but not via a proper concatenation script that
9
+ // understands anonymous AMD modules. A named AMD is safest and most robust
10
+ // way to register. Lowercase jquery is used because AMD module names are
11
+ // derived from file names, and jQuery is normally delivered in a lowercase
12
+ // file name. Do this after creating the global so that if an AMD module wants
13
+ // to call noConflict to hide this version of jQuery, it will work.
14
+
15
+ // Note that for maximum portability, libraries that are not jQuery should
16
+ // declare themselves as anonymous modules, and avoid setting a global if an
17
+ // AMD loader is present. jQuery is a special case. For more information, see
18
+ // https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon
19
+
20
+ if ( typeof define === "function" && define.amd ) {
21
+ define( "jquery", [], function() {
22
+ return jQuery;
23
+ } );
24
+ }
25
+
26
+ } );
@@ -0,0 +1,34 @@
1
+ define( [
2
+ "../core"
3
+ ], function( jQuery ) {
4
+
5
+ "use strict";
6
+
7
+ var
8
+
9
+ // Map over jQuery in case of overwrite
10
+ _jQuery = window.jQuery,
11
+
12
+ // Map over the $ in case of overwrite
13
+ _$ = window.$;
14
+
15
+ jQuery.noConflict = function( deep ) {
16
+ if ( window.$ === jQuery ) {
17
+ window.$ = _$;
18
+ }
19
+
20
+ if ( deep && window.jQuery === jQuery ) {
21
+ window.jQuery = _jQuery;
22
+ }
23
+
24
+ return jQuery;
25
+ };
26
+
27
+ // Expose jQuery and $ identifiers, even in AMD
28
+ // (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
29
+ // and CommonJS for browser emulators (#13566)
30
+ if ( typeof noGlobal === "undefined" ) {
31
+ window.jQuery = window.$ = jQuery;
32
+ }
33
+
34
+ } );
@@ -0,0 +1,41 @@
1
+ define( [
2
+ "./core",
3
+ "./selector",
4
+ "./traversing",
5
+ "./callbacks",
6
+ "./deferred",
7
+ "./deferred/exceptionHook",
8
+ "./core/ready",
9
+ "./data",
10
+ "./queue",
11
+ "./queue/delay",
12
+ "./attributes",
13
+ "./event",
14
+ "./event/focusin",
15
+ "./manipulation",
16
+ "./manipulation/_evalUrl",
17
+ "./wrap",
18
+ "./css",
19
+ "./css/hiddenVisibleSelectors",
20
+ "./serialize",
21
+ "./ajax",
22
+ "./ajax/xhr",
23
+ "./ajax/script",
24
+ "./ajax/jsonp",
25
+ "./ajax/load",
26
+ "./core/parseXML",
27
+ "./core/parseHTML",
28
+ "./effects",
29
+ "./effects/animatedSelector",
30
+ "./offset",
31
+ "./dimensions",
32
+ "./deprecated",
33
+ "./exports/amd",
34
+ "./exports/global"
35
+ ], function( jQuery ) {
36
+
37
+ "use strict";
38
+
39
+ return jQuery;
40
+
41
+ } );
@@ -0,0 +1,480 @@
1
+ define( [
2
+ "./core",
3
+ "./core/isAttached",
4
+ "./var/flat",
5
+ "./var/isFunction",
6
+ "./var/push",
7
+ "./var/rcheckableType",
8
+ "./core/access",
9
+ "./manipulation/var/rtagName",
10
+ "./manipulation/var/rscriptType",
11
+ "./manipulation/wrapMap",
12
+ "./manipulation/getAll",
13
+ "./manipulation/setGlobalEval",
14
+ "./manipulation/buildFragment",
15
+ "./manipulation/support",
16
+
17
+ "./data/var/dataPriv",
18
+ "./data/var/dataUser",
19
+ "./data/var/acceptData",
20
+ "./core/DOMEval",
21
+ "./core/nodeName",
22
+
23
+ "./core/init",
24
+ "./traversing",
25
+ "./selector",
26
+ "./event"
27
+ ], function( jQuery, isAttached, flat, isFunction, push, rcheckableType,
28
+ access, rtagName, rscriptType,
29
+ wrapMap, getAll, setGlobalEval, buildFragment, support,
30
+ dataPriv, dataUser, acceptData, DOMEval, nodeName ) {
31
+
32
+ "use strict";
33
+
34
+ var
35
+
36
+ // Support: IE <=10 - 11, Edge 12 - 13 only
37
+ // In IE/Edge using regex groups here causes severe slowdowns.
38
+ // See https://connect.microsoft.com/IE/feedback/details/1736512/
39
+ rnoInnerhtml = /<script|<style|<link/i,
40
+
41
+ // checked="checked" or checked
42
+ rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
43
+ rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
44
+
45
+ // Prefer a tbody over its parent table for containing new rows
46
+ function manipulationTarget( elem, content ) {
47
+ if ( nodeName( elem, "table" ) &&
48
+ nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) {
49
+
50
+ return jQuery( elem ).children( "tbody" )[ 0 ] || elem;
51
+ }
52
+
53
+ return elem;
54
+ }
55
+
56
+ // Replace/restore the type attribute of script elements for safe DOM manipulation
57
+ function disableScript( elem ) {
58
+ elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type;
59
+ return elem;
60
+ }
61
+ function restoreScript( elem ) {
62
+ if ( ( elem.type || "" ).slice( 0, 5 ) === "true/" ) {
63
+ elem.type = elem.type.slice( 5 );
64
+ } else {
65
+ elem.removeAttribute( "type" );
66
+ }
67
+
68
+ return elem;
69
+ }
70
+
71
+ function cloneCopyEvent( src, dest ) {
72
+ var i, l, type, pdataOld, udataOld, udataCur, events;
73
+
74
+ if ( dest.nodeType !== 1 ) {
75
+ return;
76
+ }
77
+
78
+ // 1. Copy private data: events, handlers, etc.
79
+ if ( dataPriv.hasData( src ) ) {
80
+ pdataOld = dataPriv.get( src );
81
+ events = pdataOld.events;
82
+
83
+ if ( events ) {
84
+ dataPriv.remove( dest, "handle events" );
85
+
86
+ for ( type in events ) {
87
+ for ( i = 0, l = events[ type ].length; i < l; i++ ) {
88
+ jQuery.event.add( dest, type, events[ type ][ i ] );
89
+ }
90
+ }
91
+ }
92
+ }
93
+
94
+ // 2. Copy user data
95
+ if ( dataUser.hasData( src ) ) {
96
+ udataOld = dataUser.access( src );
97
+ udataCur = jQuery.extend( {}, udataOld );
98
+
99
+ dataUser.set( dest, udataCur );
100
+ }
101
+ }
102
+
103
+ // Fix IE bugs, see support tests
104
+ function fixInput( src, dest ) {
105
+ var nodeName = dest.nodeName.toLowerCase();
106
+
107
+ // Fails to persist the checked state of a cloned checkbox or radio button.
108
+ if ( nodeName === "input" && rcheckableType.test( src.type ) ) {
109
+ dest.checked = src.checked;
110
+
111
+ // Fails to return the selected option to the default selected state when cloning options
112
+ } else if ( nodeName === "input" || nodeName === "textarea" ) {
113
+ dest.defaultValue = src.defaultValue;
114
+ }
115
+ }
116
+
117
+ function domManip( collection, args, callback, ignored ) {
118
+
119
+ // Flatten any nested arrays
120
+ args = flat( args );
121
+
122
+ var fragment, first, scripts, hasScripts, node, doc,
123
+ i = 0,
124
+ l = collection.length,
125
+ iNoClone = l - 1,
126
+ value = args[ 0 ],
127
+ valueIsFunction = isFunction( value );
128
+
129
+ // We can't cloneNode fragments that contain checked, in WebKit
130
+ if ( valueIsFunction ||
131
+ ( l > 1 && typeof value === "string" &&
132
+ !support.checkClone && rchecked.test( value ) ) ) {
133
+ return collection.each( function( index ) {
134
+ var self = collection.eq( index );
135
+ if ( valueIsFunction ) {
136
+ args[ 0 ] = value.call( this, index, self.html() );
137
+ }
138
+ domManip( self, args, callback, ignored );
139
+ } );
140
+ }
141
+
142
+ if ( l ) {
143
+ fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored );
144
+ first = fragment.firstChild;
145
+
146
+ if ( fragment.childNodes.length === 1 ) {
147
+ fragment = first;
148
+ }
149
+
150
+ // Require either new content or an interest in ignored elements to invoke the callback
151
+ if ( first || ignored ) {
152
+ scripts = jQuery.map( getAll( fragment, "script" ), disableScript );
153
+ hasScripts = scripts.length;
154
+
155
+ // Use the original fragment for the last item
156
+ // instead of the first because it can end up
157
+ // being emptied incorrectly in certain situations (#8070).
158
+ for ( ; i < l; i++ ) {
159
+ node = fragment;
160
+
161
+ if ( i !== iNoClone ) {
162
+ node = jQuery.clone( node, true, true );
163
+
164
+ // Keep references to cloned scripts for later restoration
165
+ if ( hasScripts ) {
166
+
167
+ // Support: Android <=4.0 only, PhantomJS 1 only
168
+ // push.apply(_, arraylike) throws on ancient WebKit
169
+ jQuery.merge( scripts, getAll( node, "script" ) );
170
+ }
171
+ }
172
+
173
+ callback.call( collection[ i ], node, i );
174
+ }
175
+
176
+ if ( hasScripts ) {
177
+ doc = scripts[ scripts.length - 1 ].ownerDocument;
178
+
179
+ // Reenable scripts
180
+ jQuery.map( scripts, restoreScript );
181
+
182
+ // Evaluate executable scripts on first document insertion
183
+ for ( i = 0; i < hasScripts; i++ ) {
184
+ node = scripts[ i ];
185
+ if ( rscriptType.test( node.type || "" ) &&
186
+ !dataPriv.access( node, "globalEval" ) &&
187
+ jQuery.contains( doc, node ) ) {
188
+
189
+ if ( node.src && ( node.type || "" ).toLowerCase() !== "module" ) {
190
+
191
+ // Optional AJAX dependency, but won't run scripts if not present
192
+ if ( jQuery._evalUrl && !node.noModule ) {
193
+ jQuery._evalUrl( node.src, {
194
+ nonce: node.nonce || node.getAttribute( "nonce" )
195
+ }, doc );
196
+ }
197
+ } else {
198
+ DOMEval( node.textContent.replace( rcleanScript, "" ), node, doc );
199
+ }
200
+ }
201
+ }
202
+ }
203
+ }
204
+ }
205
+
206
+ return collection;
207
+ }
208
+
209
+ function remove( elem, selector, keepData ) {
210
+ var node,
211
+ nodes = selector ? jQuery.filter( selector, elem ) : elem,
212
+ i = 0;
213
+
214
+ for ( ; ( node = nodes[ i ] ) != null; i++ ) {
215
+ if ( !keepData && node.nodeType === 1 ) {
216
+ jQuery.cleanData( getAll( node ) );
217
+ }
218
+
219
+ if ( node.parentNode ) {
220
+ if ( keepData && isAttached( node ) ) {
221
+ setGlobalEval( getAll( node, "script" ) );
222
+ }
223
+ node.parentNode.removeChild( node );
224
+ }
225
+ }
226
+
227
+ return elem;
228
+ }
229
+
230
+ jQuery.extend( {
231
+ htmlPrefilter: function( html ) {
232
+ return html;
233
+ },
234
+
235
+ clone: function( elem, dataAndEvents, deepDataAndEvents ) {
236
+ var i, l, srcElements, destElements,
237
+ clone = elem.cloneNode( true ),
238
+ inPage = isAttached( elem );
239
+
240
+ // Fix IE cloning issues
241
+ if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) &&
242
+ !jQuery.isXMLDoc( elem ) ) {
243
+
244
+ // We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2
245
+ destElements = getAll( clone );
246
+ srcElements = getAll( elem );
247
+
248
+ for ( i = 0, l = srcElements.length; i < l; i++ ) {
249
+ fixInput( srcElements[ i ], destElements[ i ] );
250
+ }
251
+ }
252
+
253
+ // Copy the events from the original to the clone
254
+ if ( dataAndEvents ) {
255
+ if ( deepDataAndEvents ) {
256
+ srcElements = srcElements || getAll( elem );
257
+ destElements = destElements || getAll( clone );
258
+
259
+ for ( i = 0, l = srcElements.length; i < l; i++ ) {
260
+ cloneCopyEvent( srcElements[ i ], destElements[ i ] );
261
+ }
262
+ } else {
263
+ cloneCopyEvent( elem, clone );
264
+ }
265
+ }
266
+
267
+ // Preserve script evaluation history
268
+ destElements = getAll( clone, "script" );
269
+ if ( destElements.length > 0 ) {
270
+ setGlobalEval( destElements, !inPage && getAll( elem, "script" ) );
271
+ }
272
+
273
+ // Return the cloned set
274
+ return clone;
275
+ },
276
+
277
+ cleanData: function( elems ) {
278
+ var data, elem, type,
279
+ special = jQuery.event.special,
280
+ i = 0;
281
+
282
+ for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) {
283
+ if ( acceptData( elem ) ) {
284
+ if ( ( data = elem[ dataPriv.expando ] ) ) {
285
+ if ( data.events ) {
286
+ for ( type in data.events ) {
287
+ if ( special[ type ] ) {
288
+ jQuery.event.remove( elem, type );
289
+
290
+ // This is a shortcut to avoid jQuery.event.remove's overhead
291
+ } else {
292
+ jQuery.removeEvent( elem, type, data.handle );
293
+ }
294
+ }
295
+ }
296
+
297
+ // Support: Chrome <=35 - 45+
298
+ // Assign undefined instead of using delete, see Data#remove
299
+ elem[ dataPriv.expando ] = undefined;
300
+ }
301
+ if ( elem[ dataUser.expando ] ) {
302
+
303
+ // Support: Chrome <=35 - 45+
304
+ // Assign undefined instead of using delete, see Data#remove
305
+ elem[ dataUser.expando ] = undefined;
306
+ }
307
+ }
308
+ }
309
+ }
310
+ } );
311
+
312
+ jQuery.fn.extend( {
313
+ detach: function( selector ) {
314
+ return remove( this, selector, true );
315
+ },
316
+
317
+ remove: function( selector ) {
318
+ return remove( this, selector );
319
+ },
320
+
321
+ text: function( value ) {
322
+ return access( this, function( value ) {
323
+ return value === undefined ?
324
+ jQuery.text( this ) :
325
+ this.empty().each( function() {
326
+ if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
327
+ this.textContent = value;
328
+ }
329
+ } );
330
+ }, null, value, arguments.length );
331
+ },
332
+
333
+ append: function() {
334
+ return domManip( this, arguments, function( elem ) {
335
+ if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
336
+ var target = manipulationTarget( this, elem );
337
+ target.appendChild( elem );
338
+ }
339
+ } );
340
+ },
341
+
342
+ prepend: function() {
343
+ return domManip( this, arguments, function( elem ) {
344
+ if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
345
+ var target = manipulationTarget( this, elem );
346
+ target.insertBefore( elem, target.firstChild );
347
+ }
348
+ } );
349
+ },
350
+
351
+ before: function() {
352
+ return domManip( this, arguments, function( elem ) {
353
+ if ( this.parentNode ) {
354
+ this.parentNode.insertBefore( elem, this );
355
+ }
356
+ } );
357
+ },
358
+
359
+ after: function() {
360
+ return domManip( this, arguments, function( elem ) {
361
+ if ( this.parentNode ) {
362
+ this.parentNode.insertBefore( elem, this.nextSibling );
363
+ }
364
+ } );
365
+ },
366
+
367
+ empty: function() {
368
+ var elem,
369
+ i = 0;
370
+
371
+ for ( ; ( elem = this[ i ] ) != null; i++ ) {
372
+ if ( elem.nodeType === 1 ) {
373
+
374
+ // Prevent memory leaks
375
+ jQuery.cleanData( getAll( elem, false ) );
376
+
377
+ // Remove any remaining nodes
378
+ elem.textContent = "";
379
+ }
380
+ }
381
+
382
+ return this;
383
+ },
384
+
385
+ clone: function( dataAndEvents, deepDataAndEvents ) {
386
+ dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
387
+ deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
388
+
389
+ return this.map( function() {
390
+ return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
391
+ } );
392
+ },
393
+
394
+ html: function( value ) {
395
+ return access( this, function( value ) {
396
+ var elem = this[ 0 ] || {},
397
+ i = 0,
398
+ l = this.length;
399
+
400
+ if ( value === undefined && elem.nodeType === 1 ) {
401
+ return elem.innerHTML;
402
+ }
403
+
404
+ // See if we can take a shortcut and just use innerHTML
405
+ if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
406
+ !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) {
407
+
408
+ value = jQuery.htmlPrefilter( value );
409
+
410
+ try {
411
+ for ( ; i < l; i++ ) {
412
+ elem = this[ i ] || {};
413
+
414
+ // Remove element nodes and prevent memory leaks
415
+ if ( elem.nodeType === 1 ) {
416
+ jQuery.cleanData( getAll( elem, false ) );
417
+ elem.innerHTML = value;
418
+ }
419
+ }
420
+
421
+ elem = 0;
422
+
423
+ // If using innerHTML throws an exception, use the fallback method
424
+ } catch ( e ) {}
425
+ }
426
+
427
+ if ( elem ) {
428
+ this.empty().append( value );
429
+ }
430
+ }, null, value, arguments.length );
431
+ },
432
+
433
+ replaceWith: function() {
434
+ var ignored = [];
435
+
436
+ // Make the changes, replacing each non-ignored context element with the new content
437
+ return domManip( this, arguments, function( elem ) {
438
+ var parent = this.parentNode;
439
+
440
+ if ( jQuery.inArray( this, ignored ) < 0 ) {
441
+ jQuery.cleanData( getAll( this ) );
442
+ if ( parent ) {
443
+ parent.replaceChild( elem, this );
444
+ }
445
+ }
446
+
447
+ // Force callback invocation
448
+ }, ignored );
449
+ }
450
+ } );
451
+
452
+ jQuery.each( {
453
+ appendTo: "append",
454
+ prependTo: "prepend",
455
+ insertBefore: "before",
456
+ insertAfter: "after",
457
+ replaceAll: "replaceWith"
458
+ }, function( name, original ) {
459
+ jQuery.fn[ name ] = function( selector ) {
460
+ var elems,
461
+ ret = [],
462
+ insert = jQuery( selector ),
463
+ last = insert.length - 1,
464
+ i = 0;
465
+
466
+ for ( ; i <= last; i++ ) {
467
+ elems = i === last ? this : this.clone( true );
468
+ jQuery( insert[ i ] )[ original ]( elems );
469
+
470
+ // Support: Android <=4.0 only, PhantomJS 1 only
471
+ // .get() because push.apply(_, arraylike) throws on ancient WebKit
472
+ push.apply( ret, elems.get() );
473
+ }
474
+
475
+ return this.pushStack( ret );
476
+ };
477
+ } );
478
+
479
+ return jQuery;
480
+ } );