olelo 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (282) hide show
  1. data/.gitignore +10 -0
  2. data/.gitmodules +3 -0
  3. data/Gemfile +3 -0
  4. data/README.markdown +104 -0
  5. data/Rakefile +92 -0
  6. data/bin/olelo +5 -0
  7. data/config.ru +86 -0
  8. data/config/aspects.rb +256 -0
  9. data/config/config.yml.default +154 -0
  10. data/config/initializers/00-mime_types.rb +29 -0
  11. data/config/initializers/01-slim.rb +2 -0
  12. data/config/interwiki.yml +11 -0
  13. data/doc/AUTHORS +7 -0
  14. data/doc/LICENSE +22 -0
  15. data/lib/olelo.rb +39 -0
  16. data/lib/olelo/application.rb +294 -0
  17. data/lib/olelo/attributes.rb +285 -0
  18. data/lib/olelo/config.rb +88 -0
  19. data/lib/olelo/extensions.rb +252 -0
  20. data/lib/olelo/helper.rb +290 -0
  21. data/lib/olelo/hooks.rb +142 -0
  22. data/lib/olelo/html_safe.rb +29 -0
  23. data/lib/olelo/initializer.rb +76 -0
  24. data/lib/olelo/locale.rb +63 -0
  25. data/lib/olelo/locale.yml +284 -0
  26. data/lib/olelo/menu.rb +101 -0
  27. data/lib/olelo/middleware/blacklist.rb +25 -0
  28. data/lib/olelo/middleware/degrade_mime_type.rb +19 -0
  29. data/lib/olelo/middleware/flash.rb +97 -0
  30. data/lib/olelo/middleware/force_encoding.rb +41 -0
  31. data/lib/olelo/page.rb +266 -0
  32. data/lib/olelo/patch.rb +311 -0
  33. data/lib/olelo/plugin.rb +188 -0
  34. data/lib/olelo/repository.rb +225 -0
  35. data/lib/olelo/routing.rb +223 -0
  36. data/lib/olelo/templates.rb +30 -0
  37. data/lib/olelo/user.rb +132 -0
  38. data/lib/olelo/util.rb +233 -0
  39. data/lib/olelo/version.rb +3 -0
  40. data/lib/olelo/virtualfs.rb +161 -0
  41. data/lib/rack/olelo_patches.rb +33 -0
  42. data/lib/rack/relative_redirect.rb +44 -0
  43. data/lib/rack/static_cache.rb +93 -0
  44. data/lib/yard/addons.rb +1 -0
  45. data/lib/yard/addons/hook_handler.rb +25 -0
  46. data/lib/yard/addons/override_tag.rb +14 -0
  47. data/lib/yard/addons/route_handler.rb +33 -0
  48. data/lib/yard/addons/sanitize_anchor.rb +16 -0
  49. data/olelo.gemspec +31 -0
  50. data/plugins/aspects/changelog.rb +45 -0
  51. data/plugins/aspects/documentbrowser.rb +57 -0
  52. data/plugins/aspects/download.rb +11 -0
  53. data/plugins/aspects/highlight.rb +8 -0
  54. data/plugins/aspects/image.rb +41 -0
  55. data/plugins/aspects/imageinfo.rb +64 -0
  56. data/plugins/aspects/locale.yml +60 -0
  57. data/plugins/aspects/main.rb +199 -0
  58. data/plugins/aspects/pageinfo.rb +37 -0
  59. data/plugins/aspects/source.rb +6 -0
  60. data/plugins/aspects/subpages.rb +44 -0
  61. data/plugins/aspects/text.rb +9 -0
  62. data/plugins/blog/blog.css +1 -0
  63. data/plugins/blog/blog.scss +37 -0
  64. data/plugins/blog/locale.yml +12 -0
  65. data/plugins/blog/main.rb +85 -0
  66. data/plugins/editor/locale.yml +18 -0
  67. data/plugins/editor/markup/main.rb +3 -0
  68. data/plugins/editor/markup/script.js +10 -0
  69. data/plugins/editor/markup/script/00-jquery.textselection.js +267 -0
  70. data/plugins/editor/markup/script/01-olelo.markupeditor.js +116 -0
  71. data/plugins/editor/markup/script/init.js +10 -0
  72. data/plugins/editor/preview.rb +52 -0
  73. data/plugins/editor/recaptcha.rb +56 -0
  74. data/plugins/filters/creole.rb +37 -0
  75. data/plugins/filters/disposition.rb +9 -0
  76. data/plugins/filters/editsection.rb +67 -0
  77. data/plugins/filters/fix_img_tag.rb +16 -0
  78. data/plugins/filters/html_wrapper.rb +12 -0
  79. data/plugins/filters/interwiki.rb +19 -0
  80. data/plugins/filters/link_classifier.rb +26 -0
  81. data/plugins/filters/locale.yml +15 -0
  82. data/plugins/filters/main.rb +202 -0
  83. data/plugins/filters/markdown_nowiki.rb +15 -0
  84. data/plugins/filters/numbering.xsl +93 -0
  85. data/plugins/filters/orgmode.rb +6 -0
  86. data/plugins/filters/rubypants.rb +6 -0
  87. data/plugins/filters/s5/main.rb +32 -0
  88. data/plugins/filters/s5/s5.xsl +118 -0
  89. data/plugins/filters/tilt.rb +17 -0
  90. data/plugins/filters/toc.rb +50 -0
  91. data/plugins/filters/xhtml2latex.xsl +232 -0
  92. data/plugins/filters/xslt.rb +22 -0
  93. data/plugins/gallery/gallery.css +1 -0
  94. data/plugins/gallery/gallery.scss +28 -0
  95. data/plugins/gallery/main.rb +34 -0
  96. data/plugins/misc/fancybox/images/blank.gif +0 -0
  97. data/plugins/misc/fancybox/images/fancy_close.png +0 -0
  98. data/plugins/misc/fancybox/images/fancy_loading.png +0 -0
  99. data/plugins/misc/fancybox/images/fancy_nav_left.png +0 -0
  100. data/plugins/misc/fancybox/images/fancy_nav_right.png +0 -0
  101. data/plugins/misc/fancybox/images/fancy_shadow_e.png +0 -0
  102. data/plugins/misc/fancybox/images/fancy_shadow_n.png +0 -0
  103. data/plugins/misc/fancybox/images/fancy_shadow_ne.png +0 -0
  104. data/plugins/misc/fancybox/images/fancy_shadow_nw.png +0 -0
  105. data/plugins/misc/fancybox/images/fancy_shadow_s.png +0 -0
  106. data/plugins/misc/fancybox/images/fancy_shadow_se.png +0 -0
  107. data/plugins/misc/fancybox/images/fancy_shadow_sw.png +0 -0
  108. data/plugins/misc/fancybox/images/fancy_shadow_w.png +0 -0
  109. data/plugins/misc/fancybox/images/fancy_title_left.png +0 -0
  110. data/plugins/misc/fancybox/images/fancy_title_main.png +0 -0
  111. data/plugins/misc/fancybox/images/fancy_title_over.png +0 -0
  112. data/plugins/misc/fancybox/images/fancy_title_right.png +0 -0
  113. data/plugins/misc/fancybox/images/fancybox-x.png +0 -0
  114. data/plugins/misc/fancybox/images/fancybox-y.png +0 -0
  115. data/plugins/misc/fancybox/images/fancybox.png +0 -0
  116. data/plugins/misc/fancybox/jquery.fancybox.css +1 -0
  117. data/plugins/misc/fancybox/jquery.fancybox.scss +323 -0
  118. data/plugins/misc/fancybox/main.rb +4 -0
  119. data/plugins/misc/fancybox/script.js +37 -0
  120. data/plugins/misc/fancybox/script/00-jquery.mousewheel.js +84 -0
  121. data/plugins/misc/fancybox/script/01-jquery.easing.js +205 -0
  122. data/plugins/misc/fancybox/script/02-jquery.fancybox.js +1156 -0
  123. data/plugins/misc/fancybox/script/init.js +18 -0
  124. data/plugins/misc/system.rb +192 -0
  125. data/plugins/misc/variables.rb +29 -0
  126. data/plugins/misc/webdav.rb +45 -0
  127. data/plugins/repositories/git_grep.rb +69 -0
  128. data/plugins/repositories/gitrb_repository.rb +204 -0
  129. data/plugins/repositories/locale.yml +12 -0
  130. data/plugins/repositories/rugged_repository.rb +454 -0
  131. data/plugins/security/acl.rb +57 -0
  132. data/plugins/security/basic_auth.rb +21 -0
  133. data/plugins/security/locale.yml +21 -0
  134. data/plugins/security/persistent_login.rb +32 -0
  135. data/plugins/security/portal.rb +28 -0
  136. data/plugins/security/private_wiki.rb +24 -0
  137. data/plugins/security/readonly_wiki.rb +25 -0
  138. data/plugins/security/stack.rb +20 -0
  139. data/plugins/security/yamlfile.rb +66 -0
  140. data/plugins/tags/code.rb +6 -0
  141. data/plugins/tags/footnotes.rb +35 -0
  142. data/plugins/tags/gist-embed.css +123 -0
  143. data/plugins/tags/gist.rb +13 -0
  144. data/plugins/tags/html.rb +57 -0
  145. data/plugins/tags/include.rb +20 -0
  146. data/plugins/tags/main.rb +353 -0
  147. data/plugins/tags/math.rb +117 -0
  148. data/plugins/tags/scripting.rb +64 -0
  149. data/plugins/tags/sort.rb +7 -0
  150. data/plugins/tags/tabs.rb +20 -0
  151. data/plugins/treeview/images/collapsed.png +0 -0
  152. data/plugins/treeview/images/expanded.png +0 -0
  153. data/plugins/treeview/images/menu.png +0 -0
  154. data/plugins/treeview/images/tree.png +0 -0
  155. data/plugins/treeview/images/wait.gif +0 -0
  156. data/plugins/treeview/main.rb +16 -0
  157. data/plugins/treeview/script.js +5 -0
  158. data/plugins/treeview/script/00-jquery.treeview.js +164 -0
  159. data/plugins/treeview/script/init.js +25 -0
  160. data/plugins/treeview/treeview.css +1 -0
  161. data/plugins/treeview/treeview.scss +113 -0
  162. data/plugins/utils/assets.rb +74 -0
  163. data/plugins/utils/cache.rb +53 -0
  164. data/plugins/utils/image_magick.rb +34 -0
  165. data/plugins/utils/pygments.css +1 -0
  166. data/plugins/utils/pygments.rb +50 -0
  167. data/plugins/utils/pygments.scss +83 -0
  168. data/plugins/utils/semaphore.rb +50 -0
  169. data/plugins/utils/shell.rb +45 -0
  170. data/plugins/utils/store.rb +315 -0
  171. data/plugins/utils/worker.rb +36 -0
  172. data/plugins/utils/xml.rb +29 -0
  173. data/static/images/favicon.png +0 -0
  174. data/static/script.js +267 -0
  175. data/static/script/00-json2.js +486 -0
  176. data/static/script/01-jstorage.js +217 -0
  177. data/static/script/02-jquery.js +9440 -0
  178. data/static/script/03-jquery.ui.core.js +337 -0
  179. data/static/script/04-jquery.ui.widget.js +502 -0
  180. data/static/script/05-jquery.ui.position.js +517 -0
  181. data/static/script/06-jquery.ui.menu.js +609 -0
  182. data/static/script/07-jquery.ui.autocomplete.js +601 -0
  183. data/static/script/08-olelo.i18n.js +37 -0
  184. data/static/script/09-olelo.unsaved.js +68 -0
  185. data/static/script/10-olelo.historytable.js +40 -0
  186. data/static/script/11-olelo.pagination.js +18 -0
  187. data/static/script/13-olelo.tabwidget.js +57 -0
  188. data/static/script/14-olelo.timeago.js +70 -0
  189. data/static/script/15-olelo.underliner.js +31 -0
  190. data/static/script/16-olelo.ui.combobox.js +32 -0
  191. data/static/script/init.js +48 -0
  192. data/static/themes/atlantis/constants.scss +15 -0
  193. data/static/themes/atlantis/iehacks.scss +38 -0
  194. data/static/themes/atlantis/images/actions/delete.png +0 -0
  195. data/static/themes/atlantis/images/actions/edit.png +0 -0
  196. data/static/themes/atlantis/images/actions/history.png +0 -0
  197. data/static/themes/atlantis/images/actions/home.png +0 -0
  198. data/static/themes/atlantis/images/actions/move.png +0 -0
  199. data/static/themes/atlantis/images/actions/new.png +0 -0
  200. data/static/themes/atlantis/images/actions/page.png +0 -0
  201. data/static/themes/atlantis/images/bg/button.png +0 -0
  202. data/static/themes/atlantis/images/bg/container.png +0 -0
  203. data/static/themes/atlantis/images/bg/content.png +0 -0
  204. data/static/themes/atlantis/images/bg/footer.png +0 -0
  205. data/static/themes/atlantis/images/bg/header.jpg +0 -0
  206. data/static/themes/atlantis/images/bg/header.orig.jpg +0 -0
  207. data/static/themes/atlantis/images/bg/header_gray.jpg +0 -0
  208. data/static/themes/atlantis/images/bug.png +0 -0
  209. data/static/themes/atlantis/images/filetypes/7z.png +0 -0
  210. data/static/themes/atlantis/images/filetypes/_archive.png +0 -0
  211. data/static/themes/atlantis/images/filetypes/_audio.png +0 -0
  212. data/static/themes/atlantis/images/filetypes/_code.png +0 -0
  213. data/static/themes/atlantis/images/filetypes/_linux.png +0 -0
  214. data/static/themes/atlantis/images/filetypes/_picture.png +0 -0
  215. data/static/themes/atlantis/images/filetypes/_video.png +0 -0
  216. data/static/themes/atlantis/images/filetypes/bz2.png +0 -0
  217. data/static/themes/atlantis/images/filetypes/doc.png +0 -0
  218. data/static/themes/atlantis/images/filetypes/flac.png +0 -0
  219. data/static/themes/atlantis/images/filetypes/gz.png +0 -0
  220. data/static/themes/atlantis/images/filetypes/html.png +0 -0
  221. data/static/themes/atlantis/images/filetypes/java.png +0 -0
  222. data/static/themes/atlantis/images/filetypes/jpg.png +0 -0
  223. data/static/themes/atlantis/images/filetypes/midi.png +0 -0
  224. data/static/themes/atlantis/images/filetypes/mp3.png +0 -0
  225. data/static/themes/atlantis/images/filetypes/ogg.png +0 -0
  226. data/static/themes/atlantis/images/filetypes/pdf.png +0 -0
  227. data/static/themes/atlantis/images/filetypes/php.png +0 -0
  228. data/static/themes/atlantis/images/filetypes/png.png +0 -0
  229. data/static/themes/atlantis/images/filetypes/ppt.png +0 -0
  230. data/static/themes/atlantis/images/filetypes/psd.png +0 -0
  231. data/static/themes/atlantis/images/filetypes/rar.png +0 -0
  232. data/static/themes/atlantis/images/filetypes/rb.png +0 -0
  233. data/static/themes/atlantis/images/filetypes/sh.png +0 -0
  234. data/static/themes/atlantis/images/filetypes/tar.png +0 -0
  235. data/static/themes/atlantis/images/filetypes/txt.png +0 -0
  236. data/static/themes/atlantis/images/filetypes/wma.png +0 -0
  237. data/static/themes/atlantis/images/filetypes/xls.png +0 -0
  238. data/static/themes/atlantis/images/filetypes/zip.png +0 -0
  239. data/static/themes/atlantis/images/folder.png +0 -0
  240. data/static/themes/atlantis/images/folder_open.png +0 -0
  241. data/static/themes/atlantis/images/loading.gif +0 -0
  242. data/static/themes/atlantis/images/loading.xcf +0 -0
  243. data/static/themes/atlantis/images/not_found.png +0 -0
  244. data/static/themes/atlantis/images/page.png +0 -0
  245. data/static/themes/atlantis/images/search.png +0 -0
  246. data/static/themes/atlantis/layout.scss +115 -0
  247. data/static/themes/atlantis/menu.scss +99 -0
  248. data/static/themes/atlantis/print.scss +129 -0
  249. data/static/themes/atlantis/screen.scss +495 -0
  250. data/static/themes/atlantis/style.css +3 -0
  251. data/static/themes/lib/autocomplete.scss +39 -0
  252. data/static/themes/lib/headlines.scss +10 -0
  253. data/static/themes/lib/horizontal-list.scss +31 -0
  254. data/static/themes/lib/patch.scss +88 -0
  255. data/static/themes/lib/reset.scss +114 -0
  256. data/static/themes/lib/rounded.scss +46 -0
  257. data/static/themes/lib/shadow.scss +14 -0
  258. data/test/config_test.rb +28 -0
  259. data/test/factory_test.rb +29 -0
  260. data/test/hash_extensions_test.rb +16 -0
  261. data/test/helper.rb +38 -0
  262. data/test/hooks_test.rb +85 -0
  263. data/test/object_extensions_test.rb +20 -0
  264. data/test/page_test.rb +168 -0
  265. data/test/request_test.rb +166 -0
  266. data/test/string_extensions_test.rb +32 -0
  267. data/test/templates_test.rb +39 -0
  268. data/test/util_test.rb +71 -0
  269. data/views/changes.slim +22 -0
  270. data/views/compare.slim +8 -0
  271. data/views/delete.slim +9 -0
  272. data/views/deleted.slim +2 -0
  273. data/views/edit.slim +65 -0
  274. data/views/error.slim +6 -0
  275. data/views/history.slim +20 -0
  276. data/views/layout.slim +38 -0
  277. data/views/login.slim +37 -0
  278. data/views/move.slim +10 -0
  279. data/views/not_found.slim +6 -0
  280. data/views/profile.slim +26 -0
  281. data/views/show.slim +9 -0
  282. metadata +488 -0
@@ -0,0 +1,36 @@
1
+ description 'Background worker'
2
+ require 'thread'
3
+
4
+ module Worker
5
+ @queue = Queue.new
6
+
7
+ def self.start
8
+ Thread.new do
9
+ loop do
10
+ begin
11
+ user, task = @queue.pop
12
+ User.current = user
13
+ task.call
14
+ rescue => ex
15
+ Olelo.logger.error(ex)
16
+ ensure
17
+ User.current = nil
18
+ end
19
+ end
20
+ end
21
+ end
22
+
23
+ def self.jobs
24
+ @queue.length
25
+ end
26
+
27
+ def self.defer(&block)
28
+ @queue << [User.current, block]
29
+ end
30
+ end
31
+
32
+ setup do
33
+ Worker.start
34
+ end
35
+
36
+ Olelo::Worker = Worker
@@ -0,0 +1,29 @@
1
+ description 'XML support'
2
+ require 'nokogiri'
3
+
4
+ # Nokogiri uses dump_html instead of serialize for broken libxml versions
5
+ # Unfortunately this breaks some things here.
6
+ # FIXME: Remove this check as soon as nokogiri works correctly.
7
+ raise 'The libxml version used by nokogiri is broken, upgrade to 2.7' if Nokogiri.uses_libxml? && %w[2 6] === Nokogiri::LIBXML_VERSION.split('.')[0..1]
8
+
9
+ module XML
10
+ extend self
11
+
12
+ # Parse xml document string and return DOM object (Nokogiri)
13
+ #
14
+ # @param [String] xml document string
15
+ # @return [Nokogiri::HTML::Document] Nokogiri Document
16
+ def Document(xml)
17
+ Nokogiri::HTML(xml, nil, 'UTF-8')
18
+ end
19
+
20
+ # Parse xml fragment and return DOM object (Nokogiri)
21
+ #
22
+ # @param [String] xml fragment string
23
+ # @return [Nokogiri::HTML::DocumentFragment] Nokogiri Document Fragment
24
+ def Fragment(xml)
25
+ Nokogiri::HTML::DocumentFragment.new(Document(nil), xml)
26
+ end
27
+ end
28
+
29
+ Olelo::XML = XML
Binary file
data/static/script.js ADDED
@@ -0,0 +1,267 @@
1
+ if(typeof JSON!=="object")JSON={};
2
+ (function(){function i(F){return F<10?"0"+F:F}function s(F){A.lastIndex=0;return A.test(F)?'"'+F.replace(A,function(M){var O=u[M];return typeof O==="string"?O:"\\u"+("0000"+M.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+F+'"'}function l(F,M){var O,N,R,y,D=o,B,E=M[F];if(E&&typeof E==="object"&&typeof E.toJSON==="function")E=E.toJSON(F);if(typeof z==="function")E=z.call(M,F,E);switch(typeof E){case "string":return s(E);case "number":return isFinite(E)?String(E):"null";case "boolean":case "null":return String(E);
3
+ case "object":if(!E)return"null";o+=m;B=[];if(Object.prototype.toString.apply(E)==="[object Array]"){y=E.length;for(O=0;O<y;O+=1)B[O]=l(O,E)||"null";R=B.length===0?"[]":o?"[\n"+o+B.join(",\n"+o)+"\n"+D+"]":"["+B.join(",")+"]";o=D;return R}if(z&&typeof z==="object"){y=z.length;for(O=0;O<y;O+=1)if(typeof z[O]==="string"){N=z[O];if(R=l(N,E))B.push(s(N)+(o?": ":":")+R)}}else for(N in E)if(Object.prototype.hasOwnProperty.call(E,N))if(R=l(N,E))B.push(s(N)+(o?": ":":")+R);R=B.length===0?"{}":o?"{\n"+o+B.join(",\n"+
4
+ o)+"\n"+D+"}":"{"+B.join(",")+"}";o=D;return R}}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+i(this.getUTCMonth()+1)+"-"+i(this.getUTCDate())+"T"+i(this.getUTCHours())+":"+i(this.getUTCMinutes())+":"+i(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}}var q=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
5
+ A=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o,m,u={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},z;if(typeof JSON.stringify!=="function")JSON.stringify=function(F,M,O){var N;m=o="";if(typeof O==="number")for(N=0;N<O;N+=1)m+=" ";else if(typeof O==="string")m=O;if((z=M)&&typeof M!=="function"&&(typeof M!=="object"||typeof M.length!=="number"))throw Error("JSON.stringify");return l("",
6
+ {"":F})};if(typeof JSON.parse!=="function")JSON.parse=function(F,M){function O(R,y){var D,B,E=R[y];if(E&&typeof E==="object")for(D in E)if(Object.prototype.hasOwnProperty.call(E,D)){B=O(E,D);if(B!==undefined)E[D]=B;else delete E[D]}return M.call(R,y,E)}var N;F=String(F);q.lastIndex=0;if(q.test(F))F=F.replace(q,function(R){return"\\u"+("0000"+R.charCodeAt(0).toString(16)).slice(-4)});if(/^[\],:{}\s]*$/.test(F.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
7
+ "]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){N=eval("("+F+")");return typeof M==="function"?O({"":N},""):N}throw new SyntaxError("JSON.parse");}})();(function(){function i(){try{q.jStorage=JSON.stringify(l);if(A){A.setAttribute("jStorage",q.jStorage);A.save("jStorage")}}catch(m){}}function s(m){if(typeof m!="string"&&typeof m!="number")throw new TypeError("Key name must be string or numeric");}var l={},q=null,A=null,o={set:function(m,u){s(m);l[m]=u;i();return u},get:function(m,u){s(m);if(m in l)return l[m];return typeof u=="undefined"?null:u},remove:function(m){s(m);if(m in l){delete l[m];i();return true}return false},flush:function(){l={};i();
8
+ if(window.localStorage)try{localStorage.clear()}catch(m){}}};(function(){try{if(window.localStorage)q=window.localStorage;else if(window.globalStorage)q=window.globalStorage[window.location.hostname]}catch(m){}if(!q){A=document.createElement("link");if(A.addBehavior){A.style.behavior="url(#default#userData)";document.getElementsByTagName("head")[0].appendChild(A);A.load("jStorage");var u="{}";try{u=A.getAttribute("jStorage")}catch(z){}q.jStorage=u}else{A=null;return}}q||(q={jStorage:"{}"});if(q.jStorage)try{l=
9
+ JSON.parse(q.jStorage)}catch(F){q.jStorage="{}"}else q.jStorage="{}"})();window.jStorage=o})();(function(i,s){function l(a){var b=Hb[a]={};d.each(a.split(Pa),function(c,e){b[e]=true});return b}function q(a,b,c){if(c===s&&a.nodeType===1){c="data-"+b.replace(mc,"-$1").toLowerCase();c=a.getAttribute(c);if(typeof c==="string"){try{c=c==="true"?true:c==="false"?false:c==="null"?null:+c+""===c?+c:nc.test(c)?d.parseJSON(c):c}catch(e){}d.data(a,b,c)}else c=s}return c}function A(a){var b;for(b in a)if(!(b==="data"&&d.isEmptyObject(a[b])))if(b!=="toJSON")return false;return true}function o(){return false}
10
+ function m(){return true}function u(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function z(a,b){do a=a[b];while(a&&a.nodeType!==1);return a}function F(a,b,c){b=b||0;if(d.isFunction(b))return d.grep(a,function(f,g){return!!b.call(f,g,f)===c});else if(b.nodeType)return d.grep(a,function(f){return f===b===c});else if(typeof b==="string"){var e=d.grep(a,function(f){return f.nodeType===1});if(oc.test(b))return d.filter(b,e,!c);else b=d.filter(b,e)}return d.grep(a,function(f){return d.inArray(f,
11
+ b)>=0===c})}function M(a){var b=Ib.split("|");a=a.createDocumentFragment();if(a.createElement)for(;b.length;)a.createElement(b.pop());return a}function O(a,b){if(!(b.nodeType!==1||!d.hasData(a))){var c,e,f;e=d._data(a);var g=d._data(b,e),h=e.events;if(h){delete g.handle;g.events={};for(c in h){e=0;for(f=h[c].length;e<f;e++)d.event.add(b,c,h[c][e])}}if(g.data)g.data=d.extend({},g.data)}}function N(a,b){var c;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes();b.mergeAttributes&&b.mergeAttributes(a);
12
+ c=b.nodeName.toLowerCase();if(c==="object"){if(b.parentNode)b.outerHTML=a.outerHTML;if(d.support.html5Clone&&a.innerHTML&&!d.trim(b.innerHTML))b.innerHTML=a.innerHTML}else if(c==="input"&&Jb.test(a.type)){b.defaultChecked=b.checked=a.checked;if(b.value!==a.value)b.value=a.value}else if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue;else if(c==="script"&&b.text!==a.text)b.text=a.text;b.removeAttribute(d.expando)}}function R(a){return typeof a.getElementsByTagName!==
13
+ "undefined"?a.getElementsByTagName("*"):typeof a.querySelectorAll!=="undefined"?a.querySelectorAll("*"):[]}function y(a){if(Jb.test(a.type))a.defaultChecked=a.checked}function D(a,b){if(b in a)return b;for(var c=b.charAt(0).toUpperCase()+b.slice(1),e=b,f=Kb.length;f--;){b=Kb[f]+c;if(b in a)return b}return e}function B(a,b){a=b||a;return d.css(a,"display")==="none"||!d.contains(a.ownerDocument,a)}function E(a,b){for(var c,e,f=[],g=0,h=a.length;g<h;g++){c=a[g];if(c.style){f[g]=d._data(c,"olddisplay");
14
+ if(b){if(!f[g]&&c.style.display==="none")c.style.display="";if(c.style.display===""&&B(c))f[g]=d._data(c,"olddisplay",Fa(c.nodeName))}else{e=xa(c,"display");!f[g]&&e!=="none"&&d._data(c,"olddisplay",e)}}}for(g=0;g<h;g++){c=a[g];if(c.style)if(!b||c.style.display==="none"||c.style.display==="")c.style.display=b?f[g]||"":"none"}return a}function S(a,b,c){return(a=pc.exec(b))?Math.max(0,a[1]-(c||0))+(a[2]||"px"):b}function W(a,b,c,e){b=c===(e?"border":"content")?4:b==="width"?1:0;for(var f=0;b<4;b+=2){if(c===
15
+ "margin")f+=d.css(a,c+Qa[b],true);if(e){if(c==="content")f-=parseFloat(xa(a,"padding"+Qa[b]))||0;if(c!=="margin")f-=parseFloat(xa(a,"border"+Qa[b]+"Width"))||0}else{f+=parseFloat(xa(a,"padding"+Qa[b]))||0;if(c!=="padding")f+=parseFloat(xa(a,"border"+Qa[b]+"Width"))||0}}return f}function Q(a,b,c){var e=b==="width"?a.offsetWidth:a.offsetHeight,f=true,g=d.support.boxSizing&&d.css(a,"boxSizing")==="border-box";if(e<=0||e==null){e=xa(a,b);if(e<0||e==null)e=a.style[b];if(kb.test(e))return e;f=g&&(d.support.boxSizingReliable||
16
+ e===a.style[b]);e=parseFloat(e)||0}return e+W(a,b,c||(g?"border":"content"),f)+"px"}function Fa(a){if(wb[a])return wb[a];var b=d("<"+a+">").appendTo(L.body),c=b.css("display");b.remove();if(c==="none"||c===""){Wa=L.body.appendChild(Wa||d.extend(L.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!Xa||!Wa.createElement){Xa=(Wa.contentWindow||Wa.contentDocument).document;Xa.write("<!doctype html><html><body>");Xa.close()}b=Xa.body.appendChild(Xa.createElement(a));c=xa(b,"display");L.body.removeChild(Wa)}return wb[a]=
17
+ c}function na(a,b,c,e){var f;if(d.isArray(b))d.each(b,function(g,h){c||qc.test(a)?e(a,h):na(a+"["+(typeof h==="object"?g:"")+"]",h,c,e)});else if(!c&&d.type(b)==="object")for(f in b)na(a+"["+f+"]",b[f],c,e);else e(a,b)}function la(a){return function(b,c){if(typeof b!=="string"){c=b;b="*"}var e,f,g=b.toLowerCase().split(Pa),h=0,k=g.length;if(d.isFunction(c))for(;h<k;h++){e=g[h];if(f=/^\+/.test(e))e=e.substr(1)||"*";e=a[e]=a[e]||[];e[f?"unshift":"push"](c)}}}function Ha(a,b,c,e,f,g){f=f||b.dataTypes[0];
18
+ g=g||{};g[f]=true;var h;f=a[f];for(var k=0,r=f?f.length:0,v=a===xb;k<r&&(v||!h);k++){h=f[k](b,c,e);if(typeof h==="string")if(!v||g[h])h=s;else{b.dataTypes.unshift(h);h=Ha(a,b,c,e,h,g)}}if((v||!h)&&!g["*"])h=Ha(a,b,c,e,"*",g);return h}function Ya(a,b){var c,e,f=d.ajaxSettings.flatOptions||{};for(c in b)if(b[c]!==s)(f[c]?a:e||(e={}))[c]=b[c];e&&d.extend(true,a,e)}function ia(){try{return new i.XMLHttpRequest}catch(a){}}function Ja(){setTimeout(function(){lb=s},0);return lb=d.now()}function Aa(a,b){d.each(b,
19
+ function(c,e){for(var f=(gb[c]||[]).concat(gb["*"]),g=0,h=f.length;g<h;g++)if(f[g].call(a,c,e))return})}function Ia(a,b,c){var e=0,f=mb.length,g=d.Deferred().always(function(){delete h.elem}),h=function(){var r=lb||Ja();r=Math.max(0,k.startTime+k.duration-r);for(var v=1-(r/k.duration||0),w=0,t=k.tweens.length;w<t;w++)k.tweens[w].run(v);g.notifyWith(a,[k,v,r]);if(v<1&&t)return r;else{g.resolveWith(a,[k]);return false}},k=g.promise({elem:a,props:d.extend({},b),opts:d.extend(true,{specialEasing:{}},
20
+ c),originalProperties:b,originalOptions:c,startTime:lb||Ja(),duration:c.duration,tweens:[],createTween:function(r,v){var w=d.Tween(a,k.opts,r,v,k.opts.specialEasing[r]||k.opts.easing);k.tweens.push(w);return w},stop:function(r){for(var v=0,w=r?k.tweens.length:0;v<w;v++)k.tweens[v].run(1);r?g.resolveWith(a,[k,r]):g.rejectWith(a,[k,r]);return this}});c=k.props;for(Ka(c,k.opts.specialEasing);e<f;e++)if(b=mb[e].call(k,a,c,k.opts))return b;Aa(k,c);d.isFunction(k.opts.start)&&k.opts.start.call(a,k);d.fx.timer(d.extend(h,
21
+ {anim:k,queue:k.opts.queue,elem:a}));return k.progress(k.opts.progress).done(k.opts.done,k.opts.complete).fail(k.opts.fail).always(k.opts.always)}function Ka(a,b){var c,e,f,g,h;for(c in a){e=d.camelCase(c);f=b[e];g=a[c];if(d.isArray(g)){f=g[1];g=a[c]=g[0]}if(c!==e){a[e]=g;delete a[c]}if((h=d.cssHooks[e])&&"expand"in h){g=h.expand(g);delete a[e];for(c in g)if(!(c in a)){a[c]=g[c];b[c]=f}}else b[e]=f}}function ra(a,b,c,e,f){return new ra.prototype.init(a,b,c,e,f)}function Ra(a,b){var c,e={height:a},
22
+ f=0;for(b=b?1:0;f<4;f+=2-b){c=Qa[f];e["margin"+c]=e["padding"+c]=a}if(b)e.opacity=e.width=a;return e}function nb(a){return d.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var ob,ja,L=i.document,Za=i.location,La=i.navigator,hb=i.jQuery,$a=i.$,ab=Array.prototype.push,Ba=Array.prototype.slice,Lb=Array.prototype.indexOf,rc=Object.prototype.toString,yb=Object.prototype.hasOwnProperty,zb=String.prototype.trim,d=function(a,b){return new d.fn.init(a,b,ob)},pb=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,
23
+ sc=/\S/,Pa=/\s+/,tc=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,uc=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,Mb=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,vc=/^[\],:{}\s]*$/,wc=/(?:^|:|,)(?:\s*\[)+/g,xc=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,yc=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,zc=/^-ms-/,Ac=/-([\da-z])/gi,Bc=function(a,b){return(b+"").toUpperCase()},qb=function(){if(L.addEventListener){L.removeEventListener("DOMContentLoaded",qb,false);d.ready()}else if(L.readyState==="complete"){L.detachEvent("onreadystatechange",
24
+ qb);d.ready()}},Nb={};d.fn=d.prototype={constructor:d,init:function(a,b,c){var e;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(typeof a==="string")if((e=a.charAt(0)==="<"&&a.charAt(a.length-1)===">"&&a.length>=3?[null,a,null]:uc.exec(a))&&(e[1]||!b))if(e[1]){a=(b=b instanceof d?b[0]:b)&&b.nodeType?b.ownerDocument||b:L;a=d.parseHTML(e[1],a,true);Mb.test(e[1])&&d.isPlainObject(b)&&this.attr.call(a,b,true);return d.merge(this,a)}else{if((b=L.getElementById(e[2]))&&
25
+ b.parentNode){if(b.id!==e[2])return c.find(a);this.length=1;this[0]=b}this.context=L;this.selector=a;return this}else return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);else if(d.isFunction(a))return c.ready(a);if(a.selector!==s){this.selector=a.selector;this.context=a.context}return d.makeArray(a,this)},selector:"",jquery:"1.8.2",length:0,size:function(){return this.length},toArray:function(){return Ba.call(this)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},
26
+ pushStack:function(a,b,c){a=d.merge(this.constructor(),a);a.prevObject=this;a.context=this.context;if(b==="find")a.selector=this.selector+(this.selector?" ":"")+c;else if(b)a.selector=this.selector+"."+b+"("+c+")";return a},each:function(a,b){return d.each(this,a,b)},ready:function(a){d.ready.promise().done(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(Ba.apply(this,
27
+ arguments),"slice",Ba.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:ab,sort:[].sort,splice:[].splice};d.fn.init.prototype=d.fn;d.extend=d.fn.extend=function(){var a,b,c,e,f,g=arguments[0]||{},h=1,k=arguments.length,r=false;if(typeof g==="boolean"){r=g;g=arguments[1]||{};h=2}if(typeof g!=="object"&&!d.isFunction(g))g={};if(k===h){g=this;--h}for(;h<k;h++)if((a=arguments[h])!=
28
+ null)for(b in a){c=g[b];e=a[b];if(g!==e)if(r&&e&&(d.isPlainObject(e)||(f=d.isArray(e)))){if(f){f=false;c=c&&d.isArray(c)?c:[]}else c=c&&d.isPlainObject(c)?c:{};g[b]=d.extend(r,c,e)}else if(e!==s)g[b]=e}return g};d.extend({noConflict:function(a){if(i.$===d)i.$=$a;if(a&&i.jQuery===d)i.jQuery=hb;return d},isReady:false,readyWait:1,holdReady:function(a){if(a)d.readyWait++;else d.ready(true)},ready:function(a){if(!(a===true?--d.readyWait:d.isReady)){if(!L.body)return setTimeout(d.ready,1);d.isReady=true;
29
+ if(!(a!==true&&--d.readyWait>0)){ja.resolveWith(L,[d]);d.fn.trigger&&d(L).trigger("ready").off("ready")}}},isFunction:function(a){return d.type(a)==="function"},isArray:Array.isArray||function(a){return d.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):Nb[rc.call(a)]||"object"},isPlainObject:function(a){if(!a||d.type(a)!=="object"||a.nodeType||d.isWindow(a))return false;try{if(a.constructor&&
30
+ !yb.call(a,"constructor")&&!yb.call(a.constructor.prototype,"isPrototypeOf"))return false}catch(b){return false}var c;for(c in a);return c===s||yb.call(a,c)},isEmptyObject:function(a){var b;for(b in a)return false;return true},error:function(a){throw Error(a);},parseHTML:function(a,b,c){var e;if(!a||typeof a!=="string")return null;if(typeof b==="boolean"){c=b;b=0}b=b||L;if(e=Mb.exec(a))return[b.createElement(e[1])];e=d.buildFragment([a],b,c?null:[]);return d.merge([],(e.cacheable?d.clone(e.fragment):
31
+ e.fragment).childNodes)},parseJSON:function(a){if(!a||typeof a!=="string")return null;a=d.trim(a);if(i.JSON&&i.JSON.parse)return i.JSON.parse(a);if(vc.test(a.replace(xc,"@").replace(yc,"]").replace(wc,"")))return(new Function("return "+a))();d.error("Invalid JSON: "+a)},parseXML:function(a){var b,c;if(!a||typeof a!=="string")return null;try{if(i.DOMParser){c=new DOMParser;b=c.parseFromString(a,"text/xml")}else{b=new ActiveXObject("Microsoft.XMLDOM");b.async="false";b.loadXML(a)}}catch(e){b=s}if(!b||
32
+ !b.documentElement||b.getElementsByTagName("parsererror").length)d.error("Invalid XML: "+a);return b},noop:function(){},globalEval:function(a){if(a&&sc.test(a))(i.execScript||function(b){i.eval.call(i,b)})(a)},camelCase:function(a){return a.replace(zc,"ms-").replace(Ac,Bc)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var e,f=0,g=a.length,h=g===s||d.isFunction(a);if(c)if(h)for(e in a){if(b.apply(a[e],c)===false)break}else for(;f<g;){if(b.apply(a[f++],
33
+ c)===false)break}else if(h)for(e in a){if(b.call(a[e],e,a[e])===false)break}else for(;f<g;)if(b.call(a[f],f,a[f++])===false)break;return a},trim:zb&&!zb.call("\ufeff\u00a0")?function(a){return a==null?"":zb.call(a)}:function(a){return a==null?"":(a+"").replace(tc,"")},makeArray:function(a,b){var c,e=b||[];if(a!=null){c=d.type(a);a.length==null||c==="string"||c==="function"||c==="regexp"||d.isWindow(a)?ab.call(e,a):d.merge(e,a)}return e},inArray:function(a,b,c){var e;if(b){if(Lb)return Lb.call(b,a,
34
+ c);e=b.length;for(c=c?c<0?Math.max(0,e+c):c:0;c<e;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=b.length,e=a.length,f=0;if(typeof c==="number")for(;f<c;f++)a[e++]=b[f];else for(;b[f]!==s;)a[e++]=b[f++];a.length=e;return a},grep:function(a,b,c){var e,f=[],g=0,h=a.length;for(c=!!c;g<h;g++){e=!!b(a[g],g);c!==e&&f.push(a[g])}return f},map:function(a,b,c){var e,f,g=[],h=0,k=a.length;if(a instanceof d||k!==s&&typeof k==="number"&&(k>0&&a[0]&&a[k-1]||k===0||d.isArray(a)))for(;h<k;h++){e=
35
+ b(a[h],h,c);if(e!=null)g[g.length]=e}else for(f in a){e=b(a[f],f,c);if(e!=null)g[g.length]=e}return g.concat.apply([],g)},guid:1,proxy:function(a,b){var c,e;if(typeof b==="string"){c=a[b];b=a;a=c}if(!d.isFunction(a))return s;e=Ba.call(arguments,2);c=function(){return a.apply(b,e.concat(Ba.call(arguments)))};c.guid=a.guid=a.guid||d.guid++;return c},access:function(a,b,c,e,f,g,h){var k,r=c==null,v=0,w=a.length;if(c&&typeof c==="object"){for(v in c)d.access(a,b,v,c[v],1,g,e);f=1}else if(e!==s){k=h===
36
+ s&&d.isFunction(e);if(r)if(k){k=b;b=function(t,I,P){return k.call(d(t),P)}}else{b.call(a,e);b=null}if(b)for(;v<w;v++)b(a[v],c,k?e.call(a[v],v,b(a[v],c)):e,h);f=1}return f?a:r?b.call(a):w?b(a[0],c):g},now:function(){return(new Date).getTime()}});d.ready.promise=function(a){if(!ja){ja=d.Deferred();if(L.readyState==="complete")setTimeout(d.ready,1);else if(L.addEventListener){L.addEventListener("DOMContentLoaded",qb,false);i.addEventListener("load",d.ready,false)}else{L.attachEvent("onreadystatechange",
37
+ qb);i.attachEvent("onload",d.ready);var b=false;try{b=i.frameElement==null&&L.documentElement}catch(c){}b&&b.doScroll&&function e(){if(!d.isReady){try{b.doScroll("left")}catch(f){return setTimeout(e,50)}d.ready()}}()}}return ja.promise(a)};d.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){Nb["[object "+b+"]"]=b.toLowerCase()});ob=d(L);var Hb={};d.Callbacks=function(a){a=typeof a==="string"?Hb[a]||l(a):d.extend({},a);var b,c,e,f,g,h,k=[],r=!a.once&&[],v=function(t){b=
38
+ a.memory&&t;c=true;h=f||0;f=0;g=k.length;for(e=true;k&&h<g;h++)if(k[h].apply(t[0],t[1])===false&&a.stopOnFalse){b=false;break}e=false;if(k)if(r)r.length&&v(r.shift());else if(b)k=[];else w.disable()},w={add:function(){if(k){var t=k.length;(function I(P){d.each(P,function(Z,ma){var Ga=d.type(ma);if(Ga==="function"&&(!a.unique||!w.has(ma)))k.push(ma);else ma&&ma.length&&Ga!=="string"&&I(ma)})})(arguments);if(e)g=k.length;else if(b){f=t;v(b)}}return this},remove:function(){k&&d.each(arguments,function(t,
39
+ I){for(var P;(P=d.inArray(I,k,P))>-1;){k.splice(P,1);if(e){P<=g&&g--;P<=h&&h--}}});return this},has:function(t){return d.inArray(t,k)>-1},empty:function(){k=[];return this},disable:function(){k=r=b=s;return this},disabled:function(){return!k},lock:function(){r=s;b||w.disable();return this},locked:function(){return!r},fireWith:function(t,I){I=I||[];I=[t,I.slice?I.slice():I];if(k&&(!c||r))e?r.push(I):v(I);return this},fire:function(){w.fireWith(this,arguments);return this},fired:function(){return!!c}};
40
+ return w};d.extend({Deferred:function(a){var b=[["resolve","done",d.Callbacks("once memory"),"resolved"],["reject","fail",d.Callbacks("once memory"),"rejected"],["notify","progress",d.Callbacks("memory")]],c="pending",e={state:function(){return c},always:function(){f.done(arguments).fail(arguments);return this},then:function(){var g=arguments;return d.Deferred(function(h){d.each(b,function(k,r){var v=r[0],w=g[k];f[r[1]](d.isFunction(w)?function(){var t=w.apply(this,arguments);t&&d.isFunction(t.promise)?
41
+ t.promise().done(h.resolve).fail(h.reject).progress(h.notify):h[v+"With"](this===f?h:this,[t])}:h[v])});g=null}).promise()},promise:function(g){return g!=null?d.extend(g,e):e}},f={};e.pipe=e.then;d.each(b,function(g,h){var k=h[2],r=h[3];e[h[1]]=k.add;r&&k.add(function(){c=r},b[g^1][2].disable,b[2][2].lock);f[h[0]]=k.fire;f[h[0]+"With"]=k.fireWith});e.promise(f);a&&a.call(f,f);return f},when:function(a){var b=0,c=Ba.call(arguments),e=c.length,f=e!==1||a&&d.isFunction(a.promise)?e:0,g=f===1?a:d.Deferred(),
42
+ h=function(w,t,I){return function(P){t[w]=this;I[w]=arguments.length>1?Ba.call(arguments):P;if(I===k)g.notifyWith(t,I);else--f||g.resolveWith(t,I)}},k,r,v;if(e>1){k=Array(e);r=Array(e);for(v=Array(e);b<e;b++)if(c[b]&&d.isFunction(c[b].promise))c[b].promise().done(h(b,v,c)).fail(g.reject).progress(h(b,r,k));else--f}f||g.resolveWith(v,c);return g.promise()}});d.support=function(){var a,b,c,e,f,g,h,k=L.createElement("div");k.setAttribute("className","t");k.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";
43
+ b=k.getElementsByTagName("*");c=k.getElementsByTagName("a")[0];c.style.cssText="top:1px;float:left;opacity:.5";if(!b||!b.length)return{};e=L.createElement("select");f=e.appendChild(L.createElement("option"));b=k.getElementsByTagName("input")[0];a={leadingWhitespace:k.firstChild.nodeType===3,tbody:!k.getElementsByTagName("tbody").length,htmlSerialize:!!k.getElementsByTagName("link").length,style:/top/.test(c.getAttribute("style")),hrefNormalized:c.getAttribute("href")==="/a",opacity:/^0.5/.test(c.style.opacity),
44
+ cssFloat:!!c.style.cssFloat,checkOn:b.value==="on",optSelected:f.selected,getSetAttribute:k.className!=="t",enctype:!!L.createElement("form").enctype,html5Clone:L.createElement("nav").cloneNode(true).outerHTML!=="<:nav></:nav>",boxModel:L.compatMode==="CSS1Compat",submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true,boxSizingReliable:true,pixelPosition:false};b.checked=true;a.noCloneChecked=
45
+ b.cloneNode(true).checked;e.disabled=true;a.optDisabled=!f.disabled;try{delete k.test}catch(r){a.deleteExpando=false}if(!k.addEventListener&&k.attachEvent&&k.fireEvent){k.attachEvent("onclick",c=function(){a.noCloneEvent=false});k.cloneNode(true).fireEvent("onclick");k.detachEvent("onclick",c)}b=L.createElement("input");b.value="t";b.setAttribute("type","radio");a.radioValue=b.value==="t";b.setAttribute("checked","checked");b.setAttribute("name","t");k.appendChild(b);c=L.createDocumentFragment();
46
+ c.appendChild(k.lastChild);a.checkClone=c.cloneNode(true).cloneNode(true).lastChild.checked;a.appendChecked=b.checked;c.removeChild(b);c.appendChild(k);if(k.attachEvent)for(g in{submit:true,change:true,focusin:true}){b="on"+g;h=b in k;if(!h){k.setAttribute(b,"return;");h=typeof k[b]==="function"}a[g+"Bubbles"]=h}d(function(){var v,w,t,I=L.getElementsByTagName("body")[0];if(I){v=L.createElement("div");v.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px";
47
+ I.insertBefore(v,I.firstChild);w=L.createElement("div");v.appendChild(w);w.innerHTML="<table><tr><td></td><td>t</td></tr></table>";t=w.getElementsByTagName("td");t[0].style.cssText="padding:0;margin:0;border:0;display:none";h=t[0].offsetHeight===0;t[0].style.display="";t[1].style.display="none";a.reliableHiddenOffsets=h&&t[0].offsetHeight===0;w.innerHTML="";w.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;";
48
+ a.boxSizing=w.offsetWidth===4;a.doesNotIncludeMarginInBodyOffset=I.offsetTop!==1;if(i.getComputedStyle){a.pixelPosition=(i.getComputedStyle(w,null)||{}).top!=="1%";a.boxSizingReliable=(i.getComputedStyle(w,null)||{width:"4px"}).width==="4px";t=L.createElement("div");t.style.cssText=w.style.cssText="padding:0;margin:0;border:0;display:block;overflow:hidden;";t.style.marginRight=t.style.width="0";w.style.width="1px";w.appendChild(t);a.reliableMarginRight=!parseFloat((i.getComputedStyle(t,null)||{}).marginRight)}if(typeof w.style.zoom!==
49
+ "undefined"){w.innerHTML="";w.style.cssText="padding:0;margin:0;border:0;display:block;overflow:hidden;width:1px;padding:1px;display:inline;zoom:1";a.inlineBlockNeedsLayout=w.offsetWidth===3;w.style.display="block";w.style.overflow="visible";w.innerHTML="<div></div>";w.firstChild.style.width="5px";a.shrinkWrapBlocks=w.offsetWidth!==3;v.style.zoom=1}I.removeChild(v)}});c.removeChild(k);b=c=e=f=b=c=k=null;return a}();var nc=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,mc=/([A-Z])/g;d.extend({cache:{},deletedIds:[],
50
+ uuid:0,expando:"jQuery"+(d.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(a){a=a.nodeType?d.cache[a[d.expando]]:a[d.expando];return!!a&&!A(a)},data:function(a,b,c,e){if(d.acceptData(a)){var f=d.expando,g=typeof b==="string",h=a.nodeType,k=h?d.cache:a,r=h?a[f]:a[f]&&f;if(!((!r||!k[r]||!e&&!k[r].data)&&g&&c===s)){if(!r)if(h)a[f]=r=d.deletedIds.pop()||d.guid++;else r=f;if(!k[r]){k[r]={};if(!h)k[r].toJSON=
51
+ d.noop}if(typeof b==="object"||typeof b==="function")if(e)k[r]=d.extend(k[r],b);else k[r].data=d.extend(k[r].data,b);a=k[r];if(!e){if(!a.data)a.data={};a=a.data}if(c!==s)a[d.camelCase(b)]=c;if(g){c=a[b];if(c==null)c=a[d.camelCase(b)]}else c=a;return c}}},removeData:function(a,b,c){if(d.acceptData(a)){var e,f,g,h=a.nodeType,k=h?d.cache:a,r=h?a[d.expando]:d.expando;if(k[r]){if(b)if(e=c?k[r]:k[r].data){if(!d.isArray(b))if(b in e)b=[b];else{b=d.camelCase(b);b=b in e?[b]:b.split(" ")}f=0;for(g=b.length;f<
52
+ g;f++)delete e[b[f]];if(!(c?A:d.isEmptyObject)(e))return}if(!c){delete k[r].data;if(!A(k[r]))return}if(h)d.cleanData([a],true);else if(d.support.deleteExpando||k!=k.window)delete k[r];else k[r]=null}}},_data:function(a,b,c){return d.data(a,b,c,true)},acceptData:function(a){var b=a.nodeName&&d.noData[a.nodeName.toLowerCase()];return!b||b!==true&&a.getAttribute("classid")===b}});d.fn.extend({data:function(a,b){var c,e,f,g,h,k=this[0],r=0,v=null;if(a===s){if(this.length){v=d.data(k);if(k.nodeType===
53
+ 1&&!d._data(k,"parsedAttrs")){f=k.attributes;for(h=f.length;r<h;r++){g=f[r].name;if(!g.indexOf("data-")){g=d.camelCase(g.substring(5));q(k,g,v[g])}}d._data(k,"parsedAttrs",true)}}return v}if(typeof a==="object")return this.each(function(){d.data(this,a)});c=a.split(".",2);c[1]=c[1]?"."+c[1]:"";e=c[1]+"!";return d.access(this,function(w){if(w===s){v=this.triggerHandler("getData"+e,[c[0]]);if(v===s&&k){v=d.data(k,a);v=q(k,a,v)}return v===s&&c[1]?this.data(c[0]):v}c[1]=w;this.each(function(){var t=d(this);
54
+ t.triggerHandler("setData"+e,c);d.data(this,a,w);t.triggerHandler("changeData"+e,c)})},null,b,arguments.length>1,null,false)},removeData:function(a){return this.each(function(){d.removeData(this,a)})}});d.extend({queue:function(a,b,c){var e;if(a){b=(b||"fx")+"queue";e=d._data(a,b);if(c)if(!e||d.isArray(c))e=d._data(a,b,d.makeArray(c));else e.push(c);return e||[]}},dequeue:function(a,b){b=b||"fx";var c=d.queue(a,b),e=c.length,f=c.shift(),g=d._queueHooks(a,b),h=function(){d.dequeue(a,b)};if(f==="inprogress"){f=
55
+ c.shift();e--}if(f){b==="fx"&&c.unshift("inprogress");delete g.stop;f.call(a,h,g)}!e&&g&&g.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return d._data(a,c)||d._data(a,c,{empty:d.Callbacks("once memory").add(function(){d.removeData(a,b+"queue",true);d.removeData(a,c,true)})})}});d.fn.extend({queue:function(a,b){var c=2;if(typeof a!=="string"){b=a;a="fx";c--}if(arguments.length<c)return d.queue(this[0],a);return b===s?this:this.each(function(){var e=d.queue(this,a,b);d._queueHooks(this,
56
+ a);a==="fx"&&e[0]!=="inprogress"&&d.dequeue(this,a)})},dequeue:function(a){return this.each(function(){d.dequeue(this,a)})},delay:function(a,b){a=d.fx?d.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(c,e){var f=setTimeout(c,a);e.stop=function(){clearTimeout(f)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,e=1,f=d.Deferred(),g=this,h=this.length,k=function(){--e||f.resolveWith(g,[g])};if(typeof a!=="string"){b=a;a=s}for(a=a||"fx";h--;)if((c=d._data(g[h],
57
+ a+"queueHooks"))&&c.empty){e++;c.empty.add(k)}k();return f.promise(b)}});var Ma,Ob,Pb,Qb=/[\t\r\n]/g,Cc=/\r/g,Dc=/^(?:button|input)$/i,Ec=/^(?:button|input|object|select|textarea)$/i,Fc=/^a(?:rea|)$/i,Rb=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,Sb=d.support.getSetAttribute;d.fn.extend({attr:function(a,b){return d.access(this,d.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){d.removeAttr(this,
58
+ a)})},prop:function(a,b){return d.access(this,d.prop,a,b,arguments.length>1)},removeProp:function(a){a=d.propFix[a]||a;return this.each(function(){try{this[a]=s;delete this[a]}catch(b){}})},addClass:function(a){var b,c,e,f,g,h,k;if(d.isFunction(a))return this.each(function(r){d(this).addClass(a.call(this,r,this.className))});if(a&&typeof a==="string"){b=a.split(Pa);c=0;for(e=this.length;c<e;c++){f=this[c];if(f.nodeType===1)if(!f.className&&b.length===1)f.className=a;else{g=" "+f.className+" ";h=0;
59
+ for(k=b.length;h<k;h++)if(g.indexOf(" "+b[h]+" ")<0)g+=b[h]+" ";f.className=d.trim(g)}}}return this},removeClass:function(a){var b,c,e,f,g,h,k;if(d.isFunction(a))return this.each(function(r){d(this).removeClass(a.call(this,r,this.className))});if(a&&typeof a==="string"||a===s){b=(a||"").split(Pa);h=0;for(k=this.length;h<k;h++){e=this[h];if(e.nodeType===1&&e.className){c=(" "+e.className+" ").replace(Qb," ");f=0;for(g=b.length;f<g;f++)for(;c.indexOf(" "+b[f]+" ")>=0;)c=c.replace(" "+b[f]+" "," ");
60
+ e.className=a?d.trim(c):""}}}return this},toggleClass:function(a,b){var c=typeof a,e=typeof b==="boolean";if(d.isFunction(a))return this.each(function(f){d(this).toggleClass(a.call(this,f,this.className,b),b)});return this.each(function(){if(c==="string")for(var f,g=0,h=d(this),k=b,r=a.split(Pa);f=r[g++];){k=e?k:!h.hasClass(f);h[k?"addClass":"removeClass"](f)}else if(c==="undefined"||c==="boolean"){this.className&&d._data(this,"__className__",this.className);this.className=this.className||a===false?
61
+ "":d._data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,c=this.length;b<c;b++)if(this[b].nodeType===1&&(" "+this[b].className+" ").replace(Qb," ").indexOf(a)>=0)return true;return false},val:function(a){var b,c,e,f=this[0];if(arguments.length){e=d.isFunction(a);return this.each(function(g){var h=d(this);if(this.nodeType===1){g=e?a.call(this,g,h.val()):a;if(g==null)g="";else if(typeof g==="number")g+="";else if(d.isArray(g))g=d.map(g,function(k){return k==null?"":k+""});
62
+ b=d.valHooks[this.type]||d.valHooks[this.nodeName.toLowerCase()];if(!b||!("set"in b)||b.set(this,g,"value")===s)this.value=g}})}else if(f){if((b=d.valHooks[f.type]||d.valHooks[f.nodeName.toLowerCase()])&&"get"in b&&(c=b.get(f,"value"))!==s)return c;c=f.value;return typeof c==="string"?c.replace(Cc,""):c==null?"":c}}});d.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,e=a.selectedIndex,f=[],g=a.options,h=a.type===
63
+ "select-one";if(e<0)return null;a=h?e:0;for(c=h?e+1:g.length;a<c;a++){b=g[a];if(b.selected&&(d.support.optDisabled?!b.disabled:b.getAttribute("disabled")===null)&&(!b.parentNode.disabled||!d.nodeName(b.parentNode,"optgroup"))){b=d(b).val();if(h)return b;f.push(b)}}if(h&&!f.length&&g.length)return d(g[e]).val();return f},set:function(a,b){var c=d.makeArray(b);d(a).find("option").each(function(){this.selected=d.inArray(d(this).val(),c)>=0});if(!c.length)a.selectedIndex=-1;return c}}},attrFn:{},attr:function(a,
64
+ b,c,e){var f,g,h=a.nodeType;if(!(!a||h===3||h===8||h===2)){if(e&&d.isFunction(d.fn[b]))return d(a)[b](c);if(typeof a.getAttribute==="undefined")return d.prop(a,b,c);if(e=h!==1||!d.isXMLDoc(a)){b=b.toLowerCase();g=d.attrHooks[b]||(Rb.test(b)?Ob:Ma)}if(c!==s)if(c===null)d.removeAttr(a,b);else if(g&&"set"in g&&e&&(f=g.set(a,c,b))!==s)return f;else{a.setAttribute(b,c+"");return c}else if(g&&"get"in g&&e&&(f=g.get(a,b))!==null)return f;else{f=a.getAttribute(b);return f===null?s:f}}},removeAttr:function(a,
65
+ b){var c,e,f,g,h=0;if(b&&a.nodeType===1)for(e=b.split(Pa);h<e.length;h++)if(f=e[h]){c=d.propFix[f]||f;(g=Rb.test(f))||d.attr(a,f,"");a.removeAttribute(Sb?f:c);if(g&&c in a)a[c]=false}},attrHooks:{type:{set:function(a,b){if(Dc.test(a.nodeName)&&a.parentNode)d.error("type property can't be changed");else if(!d.support.radioValue&&b==="radio"&&d.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b);if(c)a.value=c;return b}}},value:{get:function(a,b){if(Ma&&d.nodeName(a,"button"))return Ma.get(a,
66
+ b);return b in a?a.value:null},set:function(a,b,c){if(Ma&&d.nodeName(a,"button"))return Ma.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,b,c){var e,f,g=a.nodeType;if(!(!a||g===3||g===8||g===2)){if(g!==1||!d.isXMLDoc(a)){b=d.propFix[b]||
67
+ b;f=d.propHooks[b]}return c!==s?f&&"set"in f&&(e=f.set(a,c,b))!==s?e:a[b]=c:f&&"get"in f&&(e=f.get(a,b))!==null?e:a[b]}},propHooks:{tabIndex:{get:function(a){var b=a.getAttributeNode("tabindex");return b&&b.specified?parseInt(b.value,10):Ec.test(a.nodeName)||Fc.test(a.nodeName)&&a.href?0:s}}}});Ob={get:function(a,b){var c,e=d.prop(a,b);return e===true||typeof e!=="boolean"&&(c=a.getAttributeNode(b))&&c.nodeValue!==false?b.toLowerCase():s},set:function(a,b,c){if(b===false)d.removeAttr(a,c);else{b=
68
+ d.propFix[c]||c;if(b in a)a[b]=true;a.setAttribute(c,c.toLowerCase())}return c}};if(!Sb){Pb={name:true,id:true,coords:true};Ma=d.valHooks.button={get:function(a,b){var c;return(c=a.getAttributeNode(b))&&(Pb[b]?c.value!=="":c.specified)?c.value:s},set:function(a,b,c){var e=a.getAttributeNode(c);if(!e){e=L.createAttribute(c);a.setAttributeNode(e)}return e.value=b+""}};d.each(["width","height"],function(a,b){d.attrHooks[b]=d.extend(d.attrHooks[b],{set:function(c,e){if(e===""){c.setAttribute(b,"auto");
69
+ return e}}})});d.attrHooks.contenteditable={get:Ma.get,set:function(a,b,c){if(b==="")b="false";Ma.set(a,b,c)}}}d.support.hrefNormalized||d.each(["href","src","width","height"],function(a,b){d.attrHooks[b]=d.extend(d.attrHooks[b],{get:function(c){c=c.getAttribute(b,2);return c===null?s:c}})});if(!d.support.style)d.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||s},set:function(a,b){return a.style.cssText=b+""}};if(!d.support.optSelected)d.propHooks.selected=d.extend(d.propHooks.selected,
70
+ {get:function(){return null}});if(!d.support.enctype)d.propFix.enctype="encoding";d.support.checkOn||d.each(["radio","checkbox"],function(){d.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}});d.each(["radio","checkbox"],function(){d.valHooks[this]=d.extend(d.valHooks[this],{set:function(a,b){if(d.isArray(b))return a.checked=d.inArray(d(a).val(),b)>=0}})});var Ab=/^(?:textarea|input|select)$/i,Tb=/^([^\.]*|)(?:\.(.+)|)$/,Gc=/(?:^|\s)hover(\.\S+|)\b/,Hc=/^key/,Ic=
71
+ /^(?:mouse|contextmenu)|click/,Ub=/^(?:focusinfocus|focusoutblur)$/,Vb=function(a){return d.event.special.hover?a:a.replace(Gc,"mouseenter$1 mouseleave$1")};d.event={add:function(a,b,c,e,f){var g,h,k,r,v,w,t,I,P;if(!(a.nodeType===3||a.nodeType===8||!b||!c||!(g=d._data(a)))){if(c.handler){t=c;c=t.handler;f=t.selector}if(!c.guid)c.guid=d.guid++;k=g.events;if(!k)g.events=k={};h=g.handle;if(!h){g.handle=h=function(Z){return typeof d!=="undefined"&&(!Z||d.event.triggered!==Z.type)?d.event.dispatch.apply(h.elem,
72
+ arguments):s};h.elem=a}b=d.trim(Vb(b)).split(" ");for(g=0;g<b.length;g++){r=Tb.exec(b[g])||[];v=r[1];w=(r[2]||"").split(".").sort();P=d.event.special[v]||{};v=(f?P.delegateType:P.bindType)||v;P=d.event.special[v]||{};r=d.extend({type:v,origType:r[1],data:e,handler:c,guid:c.guid,selector:f,needsContext:f&&d.expr.match.needsContext.test(f),namespace:w.join(".")},t);I=k[v];if(!I){I=k[v]=[];I.delegateCount=0;if(!P.setup||P.setup.call(a,e,w,h)===false)if(a.addEventListener)a.addEventListener(v,h,false);
73
+ else a.attachEvent&&a.attachEvent("on"+v,h)}if(P.add){P.add.call(a,r);if(!r.handler.guid)r.handler.guid=c.guid}f?I.splice(I.delegateCount++,0,r):I.push(r);d.event.global[v]=true}a=null}},global:{},remove:function(a,b,c,e,f){var g,h,k,r,v,w,t,I,P,Z,ma=d.hasData(a)&&d._data(a);if(ma&&(t=ma.events)){b=d.trim(Vb(b||"")).split(" ");for(g=0;g<b.length;g++){h=Tb.exec(b[g])||[];k=r=h[1];h=h[2];if(k){I=d.event.special[k]||{};k=(e?I.delegateType:I.bindType)||k;P=t[k]||[];v=P.length;h=h?RegExp("(^|\\.)"+h.split(".").sort().join("\\.(?:.*\\.|)")+
74
+ "(\\.|$)"):null;for(w=0;w<P.length;w++){Z=P[w];if((f||r===Z.origType)&&(!c||c.guid===Z.guid)&&(!h||h.test(Z.namespace))&&(!e||e===Z.selector||e==="**"&&Z.selector)){P.splice(w--,1);Z.selector&&P.delegateCount--;I.remove&&I.remove.call(a,Z)}}if(P.length===0&&v!==P.length){if(!I.teardown||I.teardown.call(a,h,ma.handle)===false)d.removeEvent(a,k,ma.handle);delete t[k]}}else for(k in t)d.event.remove(a,k+b[g],c,e,true)}if(d.isEmptyObject(t)){delete ma.handle;d.removeData(a,"events",true)}}},customEvent:{getData:true,
75
+ setData:true,changeData:true},trigger:function(a,b,c,e){if(!(c&&(c.nodeType===3||c.nodeType===8))){var f,g,h,k,r,v,w=a.type||a;h=[];if(!Ub.test(w+d.event.triggered)){if(w.indexOf("!")>=0){w=w.slice(0,-1);f=true}if(w.indexOf(".")>=0){h=w.split(".");w=h.shift();h.sort()}if(!((!c||d.event.customEvent[w])&&!d.event.global[w])){a=typeof a==="object"?a[d.expando]?a:new d.Event(w,a):new d.Event(w);a.type=w;a.isTrigger=true;a.exclusive=f;a.namespace=h.join(".");a.namespace_re=a.namespace?RegExp("(^|\\.)"+
76
+ h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;h=w.indexOf(":")<0?"on"+w:"";if(c){a.result=s;if(!a.target)a.target=c;b=b!=null?d.makeArray(b):[];b.unshift(a);k=d.event.special[w]||{};if(!(k.trigger&&k.trigger.apply(c,b)===false)){v=[[c,k.bindType||w]];if(!e&&!k.noBubble&&!d.isWindow(c)){r=k.delegateType||w;f=Ub.test(r+w)?c:c.parentNode;for(g=c;f;f=f.parentNode){v.push([f,r]);g=f}if(g===(c.ownerDocument||L))v.push([g.defaultView||g.parentWindow||i,r])}for(g=0;g<v.length&&!a.isPropagationStopped();g++){f=
77
+ v[g][0];a.type=v[g][1];(r=(d._data(f,"events")||{})[a.type]&&d._data(f,"handle"))&&r.apply(f,b);(r=h&&f[h])&&d.acceptData(f)&&r.apply&&r.apply(f,b)===false&&a.preventDefault()}a.type=w;if(!e&&!a.isDefaultPrevented())if((!k._default||k._default.apply(c.ownerDocument,b)===false)&&!(w==="click"&&d.nodeName(c,"a"))&&d.acceptData(c))if(h&&c[w]&&(w!=="focus"&&w!=="blur"||a.target.offsetWidth!==0)&&!d.isWindow(c)){if(g=c[h])c[h]=null;d.event.triggered=w;c[w]();d.event.triggered=s;if(g)c[h]=g}return a.result}}else{c=
78
+ d.cache;for(g in c)c[g].events&&c[g].events[w]&&d.event.trigger(a,b,c[g].handle.elem,true)}}}}},dispatch:function(a){a=d.event.fix(a||i.event);var b,c,e,f,g,h,k=(d._data(this,"events")||{})[a.type]||[],r=k.delegateCount,v=Ba.call(arguments),w=!a.exclusive&&!a.namespace,t=d.event.special[a.type]||{},I=[];v[0]=a;a.delegateTarget=this;if(!(t.preDispatch&&t.preDispatch.call(this,a)===false)){if(r&&!(a.button&&a.type==="click"))for(c=a.target;c!=this;c=c.parentNode||this)if(c.disabled!==true||a.type!==
79
+ "click"){f={};g=[];for(b=0;b<r;b++){e=k[b];h=e.selector;if(f[h]===s)f[h]=e.needsContext?d(h,this).index(c)>=0:d.find(h,this,null,[c]).length;f[h]&&g.push(e)}g.length&&I.push({elem:c,matches:g})}k.length>r&&I.push({elem:this,matches:k.slice(r)});for(b=0;b<I.length&&!a.isPropagationStopped();b++){f=I[b];a.currentTarget=f.elem;for(c=0;c<f.matches.length&&!a.isImmediatePropagationStopped();c++){e=f.matches[c];if(w||!a.namespace&&!e.namespace||a.namespace_re&&a.namespace_re.test(e.namespace)){a.data=e.data;
80
+ a.handleObj=e;e=((d.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,v);if(e!==s){a.result=e;if(e===false){a.preventDefault();a.stopPropagation()}}}}}t.postDispatch&&t.postDispatch.call(this,a);return a.result}},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){if(a.which==
81
+ null)a.which=b.charCode!=null?b.charCode:b.keyCode;return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,e,f=b.button,g=b.fromElement;if(a.pageX==null&&b.clientX!=null){c=a.target.ownerDocument||L;e=c.documentElement;c=c.body;a.pageX=b.clientX+(e&&e.scrollLeft||c&&c.scrollLeft||0)-(e&&e.clientLeft||c&&c.clientLeft||0);a.pageY=b.clientY+(e&&e.scrollTop||c&&c.scrollTop||0)-(e&&e.clientTop||
82
+ c&&c.clientTop||0)}if(!a.relatedTarget&&g)a.relatedTarget=g===a.target?b.toElement:g;if(!a.which&&f!==s)a.which=f&1?1:f&2?3:f&4?2:0;return a}},fix:function(a){if(a[d.expando])return a;var b,c,e=a,f=d.event.fixHooks[a.type]||{},g=f.props?this.props.concat(f.props):this.props;a=d.Event(e);for(b=g.length;b;){c=g[--b];a[c]=e[c]}if(!a.target)a.target=e.srcElement||L;if(a.target.nodeType===3)a.target=a.target.parentNode;a.metaKey=!!a.metaKey;return f.filter?f.filter(a,e):a},special:{load:{noBubble:true},
83
+ focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,c){if(d.isWindow(this))this.onbeforeunload=c},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}},simulate:function(a,b,c,e){a=d.extend(new d.Event,c,{type:a,isSimulated:true,originalEvent:{}});e?d.event.trigger(a,null,b):d.event.dispatch.call(b,a);a.isDefaultPrevented()&&c.preventDefault()}};d.event.handle=d.event.dispatch;d.removeEvent=L.removeEventListener?function(a,b,c){a.removeEventListener&&
84
+ a.removeEventListener(b,c,false)}:function(a,b,c){b="on"+b;if(a.detachEvent){if(typeof a[b]==="undefined")a[b]=null;a.detachEvent(b,c)}};d.Event=function(a,b){if(!(this instanceof d.Event))return new d.Event(a,b);if(a&&a.type){this.originalEvent=a;this.type=a.type;this.isDefaultPrevented=a.defaultPrevented||a.returnValue===false||a.getPreventDefault&&a.getPreventDefault()?m:o}else this.type=a;b&&d.extend(this,b);this.timeStamp=a&&a.timeStamp||d.now();this[d.expando]=true};d.Event.prototype={preventDefault:function(){this.isDefaultPrevented=
85
+ m;var a=this.originalEvent;if(a)if(a.preventDefault)a.preventDefault();else a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=m;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=m;this.stopPropagation()},isDefaultPrevented:o,isPropagationStopped:o,isImmediatePropagationStopped:o};d.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){d.event.special[a]=
86
+ {delegateType:b,bindType:b,handle:function(c){var e,f=c.relatedTarget,g=c.handleObj;if(!f||f!==this&&!d.contains(this,f)){c.type=g.origType;e=g.handler.apply(this,arguments);c.type=b}return e}}});if(!d.support.submitBubbles)d.event.special.submit={setup:function(){if(d.nodeName(this,"form"))return false;d.event.add(this,"click._submit keypress._submit",function(a){a=a.target;if((a=d.nodeName(a,"input")||d.nodeName(a,"button")?a.form:s)&&!d._data(a,"_submit_attached")){d.event.add(a,"submit._submit",
87
+ function(b){b._submit_bubble=true});d._data(a,"_submit_attached",true)}})},postDispatch:function(a){if(a._submit_bubble){delete a._submit_bubble;this.parentNode&&!a.isTrigger&&d.event.simulate("submit",this.parentNode,a,true)}},teardown:function(){if(d.nodeName(this,"form"))return false;d.event.remove(this,"._submit")}};if(!d.support.changeBubbles)d.event.special.change={setup:function(){if(Ab.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio"){d.event.add(this,"propertychange._change",
88
+ function(a){if(a.originalEvent.propertyName==="checked")this._just_changed=true});d.event.add(this,"click._change",function(a){if(this._just_changed&&!a.isTrigger)this._just_changed=false;d.event.simulate("change",this,a,true)})}return false}d.event.add(this,"beforeactivate._change",function(a){a=a.target;if(Ab.test(a.nodeName)&&!d._data(a,"_change_attached")){d.event.add(a,"change._change",function(b){this.parentNode&&!b.isSimulated&&!b.isTrigger&&d.event.simulate("change",this.parentNode,b,true)});
89
+ d._data(a,"_change_attached",true)}})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||b.type!=="radio"&&b.type!=="checkbox")return a.handleObj.handler.apply(this,arguments)},teardown:function(){d.event.remove(this,"._change");return!Ab.test(this.nodeName)}};d.support.focusinBubbles||d.each({focus:"focusin",blur:"focusout"},function(a,b){var c=0,e=function(f){d.event.simulate(b,f.target,d.event.fix(f),true)};d.event.special[b]={setup:function(){c++===0&&L.addEventListener(a,
90
+ e,true)},teardown:function(){--c===0&&L.removeEventListener(a,e,true)}}});d.fn.extend({on:function(a,b,c,e,f){var g,h;if(typeof a==="object"){if(typeof b!=="string"){c=c||b;b=s}for(h in a)this.on(h,b,c,a[h],f);return this}if(c==null&&e==null){e=b;c=b=s}else if(e==null)if(typeof b==="string"){e=c;c=s}else{e=c;c=b;b=s}if(e===false)e=o;else if(!e)return this;if(f===1){g=e;e=function(k){d().off(k);return g.apply(this,arguments)};e.guid=g.guid||(g.guid=d.guid++)}return this.each(function(){d.event.add(this,
91
+ a,e,c,b)})},one:function(a,b,c,e){return this.on(a,b,c,e,1)},off:function(a,b,c){var e;if(a&&a.preventDefault&&a.handleObj){e=a.handleObj;d(a.delegateTarget).off(e.namespace?e.origType+"."+e.namespace:e.origType,e.selector,e.handler);return this}if(typeof a==="object"){for(e in a)this.off(e,b,a[e]);return this}if(b===false||typeof b==="function"){c=b;b=s}if(c===false)c=o;return this.each(function(){d.event.remove(this,a,c,b)})},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,
92
+ null,b)},live:function(a,b,c){d(this.context).on(a,this.selector,b,c);return this},die:function(a,b){d(this.context).off(a,this.selector||"**",b);return this},delegate:function(a,b,c,e){return this.on(b,a,c,e)},undelegate:function(a,b,c){return arguments.length===1?this.off(a,"**"):this.off(b,a||"**",c)},trigger:function(a,b){return this.each(function(){d.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return d.event.trigger(a,b,this[0],true)},toggle:function(a){var b=arguments,
93
+ c=a.guid||d.guid++,e=0,f=function(g){var h=(d._data(this,"lastToggle"+a.guid)||0)%e;d._data(this,"lastToggle"+a.guid,h+1);g.preventDefault();return b[h].apply(this,arguments)||false};for(f.guid=c;e<b.length;)b[e++].guid=c;return this.click(f)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});d.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),
94
+ function(a,b){d.fn[b]=function(c,e){if(e==null){e=c;c=null}return arguments.length>0?this.on(b,null,c,e):this.trigger(b)};if(Hc.test(b))d.event.fixHooks[b]=d.event.keyHooks;if(Ic.test(b))d.event.fixHooks[b]=d.event.mouseHooks});(function(a,b){function c(j,n,p,C){p=p||[];n=n||ga;var G,H,x,K,J=n.nodeType;if(!j||typeof j!=="string")return p;if(J!==1&&J!==9)return[];x=Sa(n);if(!x&&!C)if(G=Jc.exec(j))if(K=G[1])if(J===9)if((H=n.getElementById(K))&&H.parentNode){if(H.id===K){p.push(H);return p}}else return p;
95
+ else{if(n.ownerDocument&&(H=n.ownerDocument.getElementById(K))&&T(n,H)&&H.id===K){p.push(H);return p}}else if(G[2]){aa.apply(p,oa.call(n.getElementsByTagName(j),0));return p}else if((K=G[3])&&Wb&&n.getElementsByClassName){aa.apply(p,oa.call(n.getElementsByClassName(K),0));return p}return Z(j.replace(rb,"$1"),n,p,C,x)}function e(j){return function(n){return n.nodeName.toLowerCase()==="input"&&n.type===j}}function f(j){return function(n){var p=n.nodeName.toLowerCase();return(p==="input"||p==="button")&&
96
+ n.type===j}}function g(j){return ya(function(n){n=+n;return ya(function(p,C){for(var G,H=j([],p.length,n),x=H.length;x--;)if(p[G=H[x]])p[G]=!(C[G]=p[G])})})}function h(j,n,p){if(j===n)return p;for(j=j.nextSibling;j;){if(j===n)return-1;j=j.nextSibling}return 1}function k(j,n){var p,C,G,H,x,K,J;if(x=ua[fa][j])return n?0:x.slice(0);x=j;K=[];for(J=ba.preFilter;x;){if(!p||(C=Kc.exec(x))){if(C)x=x.slice(C[0].length);K.push(G=[])}p=false;if(C=Lc.exec(x)){G.push(p=new pa(C.shift()));x=x.slice(p.length);p.type=
97
+ C[0].replace(rb," ")}for(H in ba.filter)if((C=sb[H].exec(x))&&(!J[H]||(C=J[H](C,ga,true)))){G.push(p=new pa(C.shift()));x=x.slice(p.length);p.type=H;p.matches=C}if(!p)break}return n?x.length:x?c.error(j):ua(j,K).slice(0)}function r(j,n,p){var C=n.dir,G=p&&n.dir==="parentNode",H=va++;return n.first?function(x,K,J){for(;x=x[C];)if(G||x.nodeType===1)return j(x,K,J)}:function(x,K,J){if(J)for(;x=x[C];){if(G||x.nodeType===1)if(j(x,K,J))return x}else for(var U,X=Ca+" "+H+" ",Y=X+Ga;x=x[C];)if(G||x.nodeType===
98
+ 1)if((U=x[fa])===Y)return x.sizset;else if(typeof U==="string"&&U.indexOf(X)===0){if(x.sizset)return x}else{x[fa]=Y;if(j(x,K,J)){x.sizset=true;return x}x.sizset=false}}}function v(j){return j.length>1?function(n,p,C){for(var G=j.length;G--;)if(!j[G](n,p,C))return false;return true}:j[0]}function w(j,n,p,C,G){for(var H,x=[],K=0,J=j.length,U=n!=null;K<J;K++)if(H=j[K])if(!p||p(H,C,G)){x.push(H);U&&n.push(K)}return x}function t(j,n,p,C,G,H){if(C&&!C[fa])C=t(C);if(G&&!G[fa])G=t(G,H);return ya(function(x,
99
+ K,J,U){if(!(x&&G)){var X,Y,ea=[],sa=[],za=K.length;if(!(Y=x)){Y=n||"*";var ta=J.nodeType?[J]:J,ka=[];X=0;for(var tb=ta.length;X<tb;X++)c(Y,ta[X],ka,x);Y=ka}Y=Y;ta=j&&(x||!n)?w(Y,ea,j,J,U):Y;ka=p?G||(x?j:za||C)?[]:K:ta;p&&p(ta,ka,J,U);if(C){Y=w(ka,sa);C(Y,[],J,U);for(J=Y.length;J--;)if(X=Y[J])ka[sa[J]]=!(ta[sa[J]]=X)}if(x)for(J=j&&ka.length;J--;){if(X=ka[J])x[ea[J]]=!(K[ea[J]]=X)}else{ka=w(ka===K?ka.splice(za,ka.length):ka);G?G(null,K,ka,U):aa.apply(K,ka)}}})}function I(j){var n,p,C,G=j.length,H=ba.relative[j[0].type];
100
+ p=H||ba.relative[" "];for(var x=H?1:0,K=r(function(X){return X===n},p,true),J=r(function(X){return bb.call(n,X)>-1},p,true),U=[function(X,Y,ea){return!H&&(ea||Y!==ha)||((n=Y).nodeType?K(X,Y,ea):J(X,Y,ea))}];x<G;x++)if(p=ba.relative[j[x].type])U=[r(v(U),p)];else{p=ba.filter[j[x].type].apply(null,j[x].matches);if(p[fa]){for(C=++x;C<G;C++)if(ba.relative[j[C].type])break;return t(x>1&&v(U),x>1&&j.slice(0,x-1).join("").replace(rb,"$1"),p,x<C&&I(j.slice(x,C)),C<G&&I(j=j.slice(C)),C<G&&j.join(""))}U.push(p)}return v(U)}
101
+ function P(j,n){var p=n.length>0,C=j.length>0,G=function(H,x,K,J,U){var X,Y,ea=[],sa=0,za="0",ta=H&&[],ka=U!=null,tb=ha,Mc=H||C&&ba.find.TAG("*",U&&x.parentNode||x),Xb=Ca+=tb==null?1:Math.E;if(ka){ha=x!==ga&&x;Ga=G.el}for(;(U=Mc[za])!=null;za++){if(C&&U){for(X=0;Y=j[X];X++)if(Y(U,x,K)){J.push(U);break}if(ka){Ca=Xb;Ga=++G.el}}if(p){if(U=!Y&&U)sa--;H&&ta.push(U)}}sa+=za;if(p&&za!==sa){for(X=0;Y=n[X];X++)Y(ta,ea,x,K);if(H){if(sa>0)for(;za--;)ta[za]||ea[za]||(ea[za]=Da.call(J));ea=w(ea)}aa.apply(J,ea);
102
+ ka&&!H&&ea.length>0&&sa+n.length>1&&c.uniqueSort(J)}if(ka){Ca=Xb;ha=tb}return ta};G.el=0;return p?ya(G):G}function Z(j,n,p,C,G){var H,x,K,J,U=k(j);if(!C)if(U.length===1){x=U[0]=U[0].slice(0);if(x.length>2&&(K=x[0]).type==="ID"&&n.nodeType===9&&!G&&ba.relative[x[1].type]){n=ba.find.ID(K.matches[0].replace(Ta,""),n,G)[0];if(!n)return p;j=j.slice(x.shift().length)}for(H=sb.POS.test(j)?-1:x.length-1;H>=0;H--){K=x[H];if(ba.relative[J=K.type])break;if(J=ba.find[J])if(C=J(K.matches[0].replace(Ta,""),Bb.test(x[0].type)&&
103
+ n.parentNode||n,G)){x.splice(H,1);j=C.length&&x.join("");if(!j){aa.apply(p,oa.call(C,0));return p}break}}}cb(j,U)(C,n,G,p,Bb.test(j));return p}function ma(){}var Ga,Na,ba,wa,Sa,T,cb,db,V,ha,ca=true,fa=("sizcache"+Math.random()).replace(".",""),pa=String,ga=a.document,da=ga.documentElement,Ca=0,va=0,Da=[].pop,aa=[].push,oa=[].slice,bb=[].indexOf||function(j){for(var n=0,p=this.length;n<p;n++)if(this[n]===j)return n;return-1},ya=function(j,n){j[fa]=n==null||n;return j},qa=function(){var j={},n=[];return ya(function(p,
104
+ C){n.push(p)>ba.cacheLength&&delete j[n.shift()];return j[p]=C},j)},ib=qa(),ua=qa(),Ua=qa();qa="\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[-\\w]|[^\\x00-\\xa0])+)[\\x20\\t\\r\\n\\f]*(?:([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+"(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+".replace("w","w#")+")|)|)[\\x20\\t\\r\\n\\f]*\\]";var jb=":((?:\\\\.|[-\\w]|[^\\x00-\\xa0])+)(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+qa+")|[^:]|\\\\.)*|.*))\\)|)",rb=RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$",
105
+ "g"),Kc=/^[\x20\t\r\n\f]*,[\x20\t\r\n\f]*/,Lc=/^[\x20\t\r\n\f]*([\x20\t\r\n\f>+~])[\x20\t\r\n\f]*/,Nc=RegExp(jb),Jc=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,Bb=/[\x20\t\r\n\f]*[+~]/,Oc=/h\d/i,Pc=/input|select|textarea|button/i,Ta=/\\(?!\\)/g,sb={ID:/^#((?:\\.|[-\w]|[^\x00-\xa0])+)/,CLASS:/^\.((?:\\.|[-\w]|[^\x00-\xa0])+)/,NAME:/^\[name=['"]?((?:\\.|[-\w]|[^\x00-\xa0])+)['"]?\]/,TAG:RegExp("^("+"(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+".replace("w","w*")+")"),ATTR:RegExp("^"+qa),PSEUDO:RegExp("^"+jb),POS:/:(even|odd|eq|gt|lt|nth|first|last)(?:\([\x20\t\r\n\f]*((?:-\d)?\d*)[\x20\t\r\n\f]*\)|)(?=[^-]|$)/i,
106
+ CHILD:RegExp("^:(only|nth|first|last)-child(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),needsContext:RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},Oa=function(j){var n=ga.createElement("div");try{return j(n)}catch(p){return false}finally{}};qa=Oa(function(j){j.appendChild(ga.createComment(""));
107
+ return!j.getElementsByTagName("*").length});var Qc=Oa(function(j){j.innerHTML="<a href='#'></a>";return j.firstChild&&typeof j.firstChild.getAttribute!=="undefined"&&j.firstChild.getAttribute("href")==="#"}),Rc=Oa(function(j){j.innerHTML="<select></select>";j=typeof j.lastChild.getAttribute("multiple");return j!=="boolean"&&j!=="string"}),Wb=Oa(function(j){j.innerHTML="<div class='hidden e'></div><div class='hidden'></div>";if(!j.getElementsByClassName||!j.getElementsByClassName("e").length)return false;
108
+ j.lastChild.className="e";return j.getElementsByClassName("e").length===2}),Sc=Oa(function(j){j.id=fa+0;j.innerHTML="<a name='"+fa+"'></a><div name='"+fa+"'></div>";da.insertBefore(j,da.firstChild);var n=ga.getElementsByName&&ga.getElementsByName(fa).length===2+ga.getElementsByName(fa+0).length;Na=!ga.getElementById(fa);da.removeChild(j);return n});try{oa.call(da.childNodes,0)}catch(xd){oa=function(j){for(var n,p=[];n=this[j];j++)p.push(n);return p}}c.matches=function(j,n){return c(j,null,null,n)};
109
+ c.matchesSelector=function(j,n){return c(n,null,null,[j]).length>0};wa=c.getText=function(j){var n,p="",C=0;if(n=j.nodeType)if(n===1||n===9||n===11)if(typeof j.textContent==="string")return j.textContent;else for(j=j.firstChild;j;j=j.nextSibling)p+=wa(j);else{if(n===3||n===4)return j.nodeValue}else for(;n=j[C];C++)p+=wa(n);return p};Sa=c.isXML=function(j){return(j=j&&(j.ownerDocument||j).documentElement)?j.nodeName!=="HTML":false};T=c.contains=da.contains?function(j,n){var p=j.nodeType===9?j.documentElement:
110
+ j,C=n&&n.parentNode;return j===C||!!(C&&C.nodeType===1&&p.contains&&p.contains(C))}:da.compareDocumentPosition?function(j,n){return n&&!!(j.compareDocumentPosition(n)&16)}:function(j,n){for(;n=n.parentNode;)if(n===j)return true;return false};c.attr=function(j,n){var p,C=Sa(j);C||(n=n.toLowerCase());if(p=ba.attrHandle[n])return p(j);if(C||Rc)return j.getAttribute(n);return(p=j.getAttributeNode(n))?typeof j[n]==="boolean"?j[n]?n:null:p.specified?p.value:null:null};ba=c.selectors={cacheLength:50,createPseudo:ya,
111
+ match:sb,attrHandle:Qc?{}:{href:function(j){return j.getAttribute("href",2)},type:function(j){return j.getAttribute("type")}},find:{ID:Na?function(j,n,p){if(typeof n.getElementById!=="undefined"&&!p)return(j=n.getElementById(j))&&j.parentNode?[j]:[]}:function(j,n,p){if(typeof n.getElementById!=="undefined"&&!p)return(n=n.getElementById(j))?n.id===j||typeof n.getAttributeNode!=="undefined"&&n.getAttributeNode("id").value===j?[n]:b:[]},TAG:qa?function(j,n){if(typeof n.getElementsByTagName!=="undefined")return n.getElementsByTagName(j)}:
112
+ function(j,n){var p=n.getElementsByTagName(j);if(j==="*"){for(var C,G=[],H=0;C=p[H];H++)C.nodeType===1&&G.push(C);return G}return p},NAME:Sc&&function(j,n){if(typeof n.getElementsByName!=="undefined")return n.getElementsByName(name)},CLASS:Wb&&function(j,n,p){if(typeof n.getElementsByClassName!=="undefined"&&!p)return n.getElementsByClassName(j)}},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(j){j[1]=
113
+ j[1].replace(Ta,"");j[3]=(j[4]||j[5]||"").replace(Ta,"");if(j[2]==="~=")j[3]=" "+j[3]+" ";return j.slice(0,4)},CHILD:function(j){j[1]=j[1].toLowerCase();if(j[1]==="nth"){j[2]||c.error(j[0]);j[3]=+(j[3]?j[4]+(j[5]||1):2*(j[2]==="even"||j[2]==="odd"));j[4]=+(j[6]+j[7]||j[2]==="odd")}else j[2]&&c.error(j[0]);return j},PSEUDO:function(j){var n,p;if(sb.CHILD.test(j[0]))return null;if(j[3])j[2]=j[3];else if(n=j[4]){if(Nc.test(n)&&(p=k(n,true))&&(p=n.indexOf(")",n.length-p)-n.length)){n=n.slice(0,p);j[0]=
114
+ j[0].slice(0,p)}j[2]=n}return j.slice(0,3)}},filter:{ID:Na?function(j){j=j.replace(Ta,"");return function(n){return n.getAttribute("id")===j}}:function(j){j=j.replace(Ta,"");return function(n){return(n=typeof n.getAttributeNode!=="undefined"&&n.getAttributeNode("id"))&&n.value===j}},TAG:function(j){if(j==="*")return function(){return true};j=j.replace(Ta,"").toLowerCase();return function(n){return n.nodeName&&n.nodeName.toLowerCase()===j}},CLASS:function(j){var n=ib[fa][j];n||(n=ib(j,RegExp("(^|[\\x20\\t\\r\\n\\f])"+
115
+ j+"([\\x20\\t\\r\\n\\f]|$)")));return function(p){return n.test(p.className||typeof p.getAttribute!=="undefined"&&p.getAttribute("class")||"")}},ATTR:function(j,n,p){return function(C){C=c.attr(C,j);if(C==null)return n==="!=";if(!n)return true;C+="";return n==="="?C===p:n==="!="?C!==p:n==="^="?p&&C.indexOf(p)===0:n==="*="?p&&C.indexOf(p)>-1:n==="$="?p&&C.substr(C.length-p.length)===p:n==="~="?(" "+C+" ").indexOf(p)>-1:n==="|="?C===p||C.substr(0,p.length+1)===p+"-":false}},CHILD:function(j,n,p,C){if(j===
116
+ "nth")return function(G){var H,x;H=G.parentNode;if(p===1&&C===0)return true;if(H){x=0;for(H=H.firstChild;H;H=H.nextSibling)if(H.nodeType===1){x++;if(G===H)break}}x-=C;return x===p||x%p===0&&x/p>=0};return function(G){var H=G;switch(j){case "only":case "first":for(;H=H.previousSibling;)if(H.nodeType===1)return false;if(j==="first")return true;H=G;case "last":for(;H=H.nextSibling;)if(H.nodeType===1)return false;return true}}},PSEUDO:function(j,n){var p,C=ba.pseudos[j]||ba.setFilters[j.toLowerCase()]||
117
+ c.error("unsupported pseudo: "+j);if(C[fa])return C(n);if(C.length>1){p=[j,j,"",n];return ba.setFilters.hasOwnProperty(j.toLowerCase())?ya(function(G,H){for(var x,K=C(G,n),J=K.length;J--;){x=bb.call(G,K[J]);G[x]=!(H[x]=K[J])}}):function(G){return C(G,0,p)}}return C}},pseudos:{not:ya(function(j){var n=[],p=[],C=cb(j.replace(rb,"$1"));return C[fa]?ya(function(G,H,x,K){K=C(G,null,K,[]);for(var J=G.length;J--;)if(x=K[J])G[J]=!(H[J]=x)}):function(G,H,x){n[0]=G;C(n,null,x,p);return!p.pop()}}),has:ya(function(j){return function(n){return c(j,
118
+ n).length>0}}),contains:ya(function(j){return function(n){return(n.textContent||n.innerText||wa(n)).indexOf(j)>-1}}),enabled:function(j){return j.disabled===false},disabled:function(j){return j.disabled===true},checked:function(j){var n=j.nodeName.toLowerCase();return n==="input"&&!!j.checked||n==="option"&&!!j.selected},selected:function(j){return j.selected===true},parent:function(j){return!ba.pseudos.empty(j)},empty:function(j){var n;for(j=j.firstChild;j;){if(j.nodeName>"@"||(n=j.nodeType)===3||
119
+ n===4)return false;j=j.nextSibling}return true},header:function(j){return Oc.test(j.nodeName)},text:function(j){var n,p;return j.nodeName.toLowerCase()==="input"&&(n=j.type)==="text"&&((p=j.getAttribute("type"))==null||p.toLowerCase()===n)},radio:e("radio"),checkbox:e("checkbox"),file:e("file"),password:e("password"),image:e("image"),submit:f("submit"),reset:f("reset"),button:function(j){var n=j.nodeName.toLowerCase();return n==="input"&&j.type==="button"||n==="button"},input:function(j){return Pc.test(j.nodeName)},
120
+ focus:function(j){var n=j.ownerDocument;return j===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(j.type||j.href)},active:function(j){return j===j.ownerDocument.activeElement},first:g(function(){return[0]}),last:g(function(j,n){return[n-1]}),eq:g(function(j,n,p){return[p<0?p+n:p]}),even:g(function(j,n){for(var p=0;p<n;p+=2)j.push(p);return j}),odd:g(function(j,n){for(var p=1;p<n;p+=2)j.push(p);return j}),lt:g(function(j,n,p){for(n=p<0?p+n:p;--n>=0;)j.push(n);return j}),gt:g(function(j,n,p){for(p=
121
+ p<0?p+n:p;++p<n;)j.push(p);return j})}};db=da.compareDocumentPosition?function(j,n){if(j===n){V=true;return 0}return(!j.compareDocumentPosition||!n.compareDocumentPosition?j.compareDocumentPosition:j.compareDocumentPosition(n)&4)?-1:1}:function(j,n){if(j===n){V=true;return 0}else if(j.sourceIndex&&n.sourceIndex)return j.sourceIndex-n.sourceIndex;var p,C,G=[],H=[];p=j.parentNode;C=n.parentNode;var x=p;if(p===C)return h(j,n);else if(p){if(!C)return 1}else return-1;for(;x;){G.unshift(x);x=x.parentNode}for(x=
122
+ C;x;){H.unshift(x);x=x.parentNode}p=G.length;C=H.length;for(x=0;x<p&&x<C;x++)if(G[x]!==H[x])return h(G[x],H[x]);return x===p?h(j,H[x],-1):h(G[x],n,1)};[0,0].sort(db);ca=!V;c.uniqueSort=function(j){var n,p=1;V=ca;j.sort(db);if(V)for(;n=j[p];p++)n===j[p-1]&&j.splice(p--,1);return j};c.error=function(j){throw Error("Syntax error, unrecognized expression: "+j);};cb=c.compile=function(j,n){var p,C=[],G=[],H=Ua[fa][j];if(!H){n||(n=k(j));for(p=n.length;p--;){H=I(n[p]);H[fa]?C.push(H):G.push(H)}H=Ua(j,P(G,
123
+ C))}return H};ga.querySelectorAll&&function(){var j,n=Z,p=/'|\\/g,C=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,G=[":focus"],H=[":active",":focus"],x=da.matchesSelector||da.mozMatchesSelector||da.webkitMatchesSelector||da.oMatchesSelector||da.msMatchesSelector;Oa(function(K){K.innerHTML="<select><option selected=''></option></select>";K.querySelectorAll("[selected]").length||G.push("\\[[\\x20\\t\\r\\n\\f]*(?:checked|disabled|ismap|multiple|readonly|selected|value)");K.querySelectorAll(":checked").length||
124
+ G.push(":checked")});Oa(function(K){K.innerHTML="<p test=''></p>";K.querySelectorAll("[test^='']").length&&G.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:\"\"|'')");K.innerHTML="<input type='hidden'/>";K.querySelectorAll(":enabled").length||G.push(":enabled",":disabled")});G=RegExp(G.join("|"));Z=function(K,J,U,X,Y){if(!X&&!Y&&(!G||!G.test(K))){var ea,sa,za=true,ta=fa;sa=J;ea=J.nodeType===9&&K;if(J.nodeType===1&&J.nodeName.toLowerCase()!=="object"){ea=k(K);if(za=J.getAttribute("id"))ta=za.replace(p,"\\$&");
125
+ else J.setAttribute("id",ta);ta="[id='"+ta+"'] ";for(sa=ea.length;sa--;)ea[sa]=ta+ea[sa].join("");sa=Bb.test(K)&&J.parentNode||J;ea=ea.join(",")}if(ea)try{aa.apply(U,oa.call(sa.querySelectorAll(ea),0));return U}catch(ka){}finally{za||J.removeAttribute("id")}}return n(K,J,U,X,Y)};if(x){Oa(function(K){j=x.call(K,"div");try{x.call(K,"[test!='']:sizzle");H.push("!=",jb)}catch(J){}});H=RegExp(H.join("|"));c.matchesSelector=function(K,J){J=J.replace(C,"='$1']");if(!Sa(K)&&!H.test(J)&&(!G||!G.test(J)))try{var U=
126
+ x.call(K,J);if(U||j||K.document&&K.document.nodeType!==11)return U}catch(X){}return c(J,null,null,[K]).length>0}}}();ba.pseudos.nth=ba.pseudos.eq;ba.filters=ma.prototype=ba.pseudos;ba.setFilters=new ma;c.attr=d.attr;d.find=c;d.expr=c.selectors;d.expr[":"]=d.expr.pseudos;d.unique=c.uniqueSort;d.text=c.getText;d.isXMLDoc=c.isXML;d.contains=c.contains})(i);var Tc=/Until$/,Uc=/^(?:parents|prev(?:Until|All))/,oc=/^.[^:#\[\.,]*$/,Yb=d.expr.match.needsContext,Vc={children:true,contents:true,next:true,prev:true};
127
+ d.fn.extend({find:function(a){var b,c,e,f,g,h,k=this;if(typeof a!=="string")return d(a).filter(function(){b=0;for(c=k.length;b<c;b++)if(d.contains(k[b],this))return true});h=this.pushStack("","find",a);b=0;for(c=this.length;b<c;b++){e=h.length;d.find(a,this[b],h);if(b>0)for(f=e;f<h.length;f++)for(g=0;g<e;g++)if(h[g]===h[f]){h.splice(f--,1);break}}return h},has:function(a){var b,c=d(a,this),e=c.length;return this.filter(function(){for(b=0;b<e;b++)if(d.contains(this,c[b]))return true})},not:function(a){return this.pushStack(F(this,
128
+ a,false),"not",a)},filter:function(a){return this.pushStack(F(this,a,true),"filter",a)},is:function(a){return!!a&&(typeof a==="string"?Yb.test(a)?d(a,this.context).index(this[0])>=0:d.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){for(var c,e=0,f=this.length,g=[],h=Yb.test(a)||typeof a!=="string"?d(a,b||this.context):0;e<f;e++)for(c=this[e];c&&c.ownerDocument&&c!==b&&c.nodeType!==11;){if(h?h.index(c)>-1:d.find.matchesSelector(c,a)){g.push(c);break}c=c.parentNode}g=g.length>
129
+ 1?d.unique(g):g;return this.pushStack(g,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a==="string")return d.inArray(this[0],d(a));return d.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a==="string"?d(a,b):d.makeArray(a&&a.nodeType?[a]:a),e=d.merge(this.get(),c);return this.pushStack(u(c[0])||u(e[0])?e:d.unique(e))},addBack:function(a){return this.add(a==null?this.prevObject:this.prevObject.filter(a))}});d.fn.andSelf=d.fn.addBack;
130
+ d.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,c){return d.dir(a,"parentNode",c)},next:function(a){return z(a,"nextSibling")},prev:function(a){return z(a,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,c){return d.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return d.dir(a,"previousSibling",
131
+ c)},siblings:function(a){return d.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.merge([],a.childNodes)}},function(a,b){d.fn[a]=function(c,e){var f=d.map(this,b,c);Tc.test(a)||(e=c);if(e&&typeof e==="string")f=d.filter(e,f);f=this.length>1&&!Vc[a]?d.unique(f):f;if(this.length>1&&Uc.test(a))f=f.reverse();return this.pushStack(f,a,Ba.call(arguments).join(","))}});
132
+ d.extend({filter:function(a,b,c){if(c)a=":not("+a+")";return b.length===1?d.find.matchesSelector(b[0],a)?[b[0]]:[]:d.find.matches(a,b)},dir:function(a,b,c){var e=[];for(a=a[b];a&&a.nodeType!==9&&(c===s||a.nodeType!==1||!d(a).is(c));){a.nodeType===1&&e.push(a);a=a[b]}return e},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var Ib="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
133
+ Wc=/ jQuery\d+="(?:null|\d+)"/g,Cb=/^\s+/,Zb=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,$b=/<([\w:]+)/,Xc=/<tbody/i,Yc=/<|&#?\w+;/,Zc=/<(?:script|style|link)/i,$c=/<(?:script|object|embed|option|style)/i,Db=RegExp("<(?:"+Ib+")[\\s/>]","i"),Jb=/^(?:checkbox|radio)$/,ac=/checked\s*(?:[^=]|=\s*.checked.)/i,ad=/\/(java|ecma)script/i,bd=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,Ea={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],
134
+ thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},bc=M(L),Eb=bc.appendChild(L.createElement("div"));Ea.optgroup=Ea.option;Ea.tbody=Ea.tfoot=Ea.colgroup=Ea.caption=Ea.thead;Ea.th=Ea.td;if(!d.support.htmlSerialize)Ea._default=[1,"X<div>","</div>"];d.fn.extend({text:function(a){return d.access(this,function(b){return b===
135
+ s?d.text(this):this.empty().append((this[0]&&this[0].ownerDocument||L).createTextNode(b))},null,a,arguments.length)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(c){d(this).wrapAll(a.call(this,c))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var c=this;c.firstChild&&c.firstChild.nodeType===1;)c=c.firstChild;return c}).append(this)}return this},wrapInner:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapInner(a.call(this,
136
+ b))});return this.each(function(){var b=d(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=d.isFunction(a);return this.each(function(c){d(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){if(this.nodeType===1||this.nodeType===11)this.appendChild(a)})},prepend:function(){return this.domManip(arguments,
137
+ true,function(a){if(this.nodeType===1||this.nodeType===11)this.insertBefore(a,this.firstChild)})},before:function(){if(!u(this[0]))return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});if(arguments.length){var a=d.clean(arguments);return this.pushStack(d.merge(a,this),"before",this.selector)}},after:function(){if(!u(this[0]))return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});if(arguments.length){var a=d.clean(arguments);
138
+ return this.pushStack(d.merge(this,a),"after",this.selector)}},remove:function(a,b){for(var c,e=0;(c=this[e])!=null;e++)if(!a||d.filter(a,[c]).length){if(!b&&c.nodeType===1){d.cleanData(c.getElementsByTagName("*"));d.cleanData([c])}c.parentNode&&c.parentNode.removeChild(c)}return this},empty:function(){for(var a,b=0;(a=this[b])!=null;b++)for(a.nodeType===1&&d.cleanData(a.getElementsByTagName("*"));a.firstChild;)a.removeChild(a.firstChild);return this},clone:function(a,b){a=a==null?false:a;b=b==null?
139
+ a:b;return this.map(function(){return d.clone(this,a,b)})},html:function(a){return d.access(this,function(b){var c=this[0]||{},e=0,f=this.length;if(b===s)return c.nodeType===1?c.innerHTML.replace(Wc,""):s;if(typeof b==="string"&&!Zc.test(b)&&(d.support.htmlSerialize||!Db.test(b))&&(d.support.leadingWhitespace||!Cb.test(b))&&!Ea[($b.exec(b)||["",""])[1].toLowerCase()]){b=b.replace(Zb,"<$1></$2>");try{for(;e<f;e++){c=this[e]||{};if(c.nodeType===1){d.cleanData(c.getElementsByTagName("*"));c.innerHTML=
140
+ b}}c=0}catch(g){}}c&&this.empty().append(b)},null,a,arguments.length)},replaceWith:function(a){if(!u(this[0])){if(d.isFunction(a))return this.each(function(b){var c=d(this),e=c.html();c.replaceWith(a.call(this,b,e))});if(typeof a!=="string")a=d(a).detach();return this.each(function(){var b=this.nextSibling,c=this.parentNode;d(this).remove();b?d(b).before(a):d(c).append(a)})}return this.length?this.pushStack(d(d.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,true)},
141
+ domManip:function(a,b,c){a=[].concat.apply([],a);var e,f,g,h=0,k=a[0],r=[],v=this.length;if(!d.support.checkClone&&v>1&&typeof k==="string"&&ac.test(k))return this.each(function(){d(this).domManip(a,b,c)});if(d.isFunction(k))return this.each(function(w){var t=d(this);a[0]=k.call(this,w,b?t.html():s);t.domManip(a,b,c)});if(this[0]){e=d.buildFragment(a,this,r);g=e.fragment;f=g.firstChild;if(g.childNodes.length===1)g=f;if(f){b=b&&d.nodeName(f,"tr");for(e=e.cacheable||v-1;h<v;h++)c.call(b&&d.nodeName(this[h],
142
+ "table")?this[h].getElementsByTagName("tbody")[0]||this[h].appendChild(this[h].ownerDocument.createElement("tbody")):this[h],h===e?g:d.clone(g,true,true))}g=f=null;r.length&&d.each(r,function(w,t){if(t.src)d.ajax?d.ajax({url:t.src,type:"GET",dataType:"script",async:false,global:false,"throws":true}):d.error("no ajax");else d.globalEval((t.text||t.textContent||t.innerHTML||"").replace(bd,""));t.parentNode&&t.parentNode.removeChild(t)})}return this}});d.buildFragment=function(a,b,c){var e,f,g,h=a[0];
143
+ b=b||L;b=!b.nodeType&&b[0]||b;b=b.ownerDocument||b;if(a.length===1&&typeof h==="string"&&h.length<512&&b===L&&h.charAt(0)==="<"&&!$c.test(h)&&(d.support.checkClone||!ac.test(h))&&(d.support.html5Clone||!Db.test(h))){f=true;e=d.fragments[h];g=e!==s}if(!e){e=b.createDocumentFragment();d.clean(a,b,e,c);if(f)d.fragments[h]=g&&e}return{fragment:e,cacheable:f}};d.fragments={};d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){d.fn[a]=
144
+ function(c){var e,f=0,g=[];c=d(c);var h=c.length;e=this.length===1&&this[0].parentNode;if((e==null||e&&e.nodeType===11&&e.childNodes.length===1)&&h===1){c[b](this[0]);return this}else{for(;f<h;f++){e=(f>0?this.clone(true):this).get();d(c[f])[b](e);g=g.concat(e)}return this.pushStack(g,a,c.selector)}}});d.extend({clone:function(a,b,c){var e,f,g,h;if(d.support.html5Clone||d.isXMLDoc(a)||!Db.test("<"+a.nodeName+">"))h=a.cloneNode(true);else{Eb.innerHTML=a.outerHTML;Eb.removeChild(h=Eb.firstChild)}if((!d.support.noCloneEvent||
145
+ !d.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!d.isXMLDoc(a)){N(a,h);e=R(a);f=R(h);for(g=0;e[g];++g)f[g]&&N(e[g],f[g])}if(b){O(a,h);if(c){e=R(a);f=R(h);for(g=0;e[g];++g)O(e[g],f[g])}}return h},clean:function(a,b,c,e){var f,g,h,k,r,v,w=b===L&&bc,t=[];if(!b||typeof b.createDocumentFragment==="undefined")b=L;for(f=0;(h=a[f])!=null;f++){if(typeof h==="number")h+="";if(h){if(typeof h==="string")if(Yc.test(h)){w=w||M(b);v=b.createElement("div");w.appendChild(v);h=h.replace(Zb,"<$1></$2>");
146
+ g=($b.exec(h)||["",""])[1].toLowerCase();k=Ea[g]||Ea._default;r=k[0];for(v.innerHTML=k[1]+h+k[2];r--;)v=v.lastChild;if(!d.support.tbody){r=Xc.test(h);k=g==="table"&&!r?v.firstChild&&v.firstChild.childNodes:k[1]==="<table>"&&!r?v.childNodes:[];for(g=k.length-1;g>=0;--g)d.nodeName(k[g],"tbody")&&!k[g].childNodes.length&&k[g].parentNode.removeChild(k[g])}!d.support.leadingWhitespace&&Cb.test(h)&&v.insertBefore(b.createTextNode(Cb.exec(h)[0]),v.firstChild);h=v.childNodes;v.parentNode.removeChild(v)}else h=
147
+ b.createTextNode(h);h.nodeType?t.push(h):d.merge(t,h)}}if(v)h=v=w=null;if(!d.support.appendChecked)for(f=0;(h=t[f])!=null;f++)if(d.nodeName(h,"input"))y(h);else typeof h.getElementsByTagName!=="undefined"&&d.grep(h.getElementsByTagName("input"),y);if(c){a=function(I){if(!I.type||ad.test(I.type))return e?e.push(I.parentNode?I.parentNode.removeChild(I):I):c.appendChild(I)};for(f=0;(h=t[f])!=null;f++)if(!(d.nodeName(h,"script")&&a(h))){c.appendChild(h);if(typeof h.getElementsByTagName!=="undefined"){h=
148
+ d.grep(d.merge([],h.getElementsByTagName("script")),a);t.splice.apply(t,[f+1,0].concat(h));f+=h.length}}}return t},cleanData:function(a,b){for(var c,e,f,g,h=0,k=d.expando,r=d.cache,v=d.support.deleteExpando,w=d.event.special;(f=a[h])!=null;h++)if(b||d.acceptData(f))if(c=(e=f[k])&&r[e]){if(c.events)for(g in c.events)w[g]?d.event.remove(f,g):d.removeEvent(f,g,c.handle);if(r[e]){delete r[e];if(v)delete f[k];else if(f.removeAttribute)f.removeAttribute(k);else f[k]=null;d.deletedIds.push(e)}}}});(function(){var a,
149
+ b;d.uaMatch=function(c){c=c.toLowerCase();c=/(chrome)[ \/]([\w.]+)/.exec(c)||/(webkit)[ \/]([\w.]+)/.exec(c)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(c)||/(msie) ([\w.]+)/.exec(c)||c.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(c)||[];return{browser:c[1]||"",version:c[2]||"0"}};a=d.uaMatch(La.userAgent);b={};if(a.browser){b[a.browser]=true;b.version=a.version}if(b.chrome)b.webkit=true;else if(b.webkit)b.safari=true;d.browser=b;d.sub=function(){function c(f,g){return new c.fn.init(f,
150
+ g)}d.extend(true,c,this);c.superclass=this;c.fn=c.prototype=this();c.fn.constructor=c;c.sub=this.sub;c.fn.init=function(f,g){if(g&&g instanceof d&&!(g instanceof c))g=c(g);return d.fn.init.call(this,f,g,e)};c.fn.init.prototype=c.fn;var e=c(L);return c}})();var xa,Wa,Xa,Fb=/alpha\([^)]*\)/i,cd=/opacity=([^)]*)/,dd=/^(top|right|bottom|left)$/,ed=/^(none|table(?!-c[ea]).+)/,cc=/^margin/,pc=RegExp("^("+pb+")(.*)$","i"),kb=RegExp("^("+pb+")(?!px)[a-z%]+$","i"),fd=RegExp("^([-+])=("+pb+")","i"),wb={},gd=
151
+ {position:"absolute",visibility:"hidden",display:"block"},dc={letterSpacing:0,fontWeight:400},Qa=["Top","Right","Bottom","Left"],Kb=["Webkit","O","Moz","ms"],hd=d.fn.toggle;d.fn.extend({css:function(a,b){return d.access(this,function(c,e,f){return f!==s?d.style(c,e,f):d.css(c,e)},a,b,arguments.length>1)},show:function(){return E(this,true)},hide:function(){return E(this)},toggle:function(a,b){var c=typeof a==="boolean";if(d.isFunction(a)&&d.isFunction(b))return hd.apply(this,arguments);return this.each(function(){(c?
152
+ a:B(this))?d(this).show():d(this).hide()})}});d.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=xa(a,"opacity");return c===""?"1":c}}}},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":d.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,e){if(!(!a||a.nodeType===3||a.nodeType===8||!a.style)){var f,g,h,k=d.camelCase(b),r=a.style;b=d.cssProps[k]||(d.cssProps[k]=D(r,k));h=d.cssHooks[b]||d.cssHooks[k];
153
+ if(c!==s){g=typeof c;if(g==="string"&&(f=fd.exec(c))){c=(f[1]+1)*f[2]+parseFloat(d.css(a,b));g="number"}if(!(c==null||g==="number"&&isNaN(c))){if(g==="number"&&!d.cssNumber[k])c+="px";if(!h||!("set"in h)||(c=h.set(a,c,e))!==s)try{r[b]=c}catch(v){}}}else{if(h&&"get"in h&&(f=h.get(a,false,e))!==s)return f;return r[b]}}},css:function(a,b,c,e){var f,g;g=d.camelCase(b);b=d.cssProps[g]||(d.cssProps[g]=D(a.style,g));if((g=d.cssHooks[b]||d.cssHooks[g])&&"get"in g)f=g.get(a,true,e);if(f===s)f=xa(a,b);if(f===
154
+ "normal"&&b in dc)f=dc[b];if(c||e!==s){a=parseFloat(f);return c||d.isNumeric(a)?a||0:f}return f},swap:function(a,b,c){var e,f={};for(e in b){f[e]=a.style[e];a.style[e]=b[e]}c=c.call(a);for(e in b)a.style[e]=f[e];return c}});if(i.getComputedStyle)xa=function(a,b){var c,e,f,g,h=i.getComputedStyle(a,null),k=a.style;if(h){c=h[b];if(c===""&&!d.contains(a.ownerDocument,a))c=d.style(a,b);if(kb.test(c)&&cc.test(b)){e=k.width;f=k.minWidth;g=k.maxWidth;k.minWidth=k.maxWidth=k.width=c;c=h.width;k.width=e;k.minWidth=
155
+ f;k.maxWidth=g}}return c};else if(L.documentElement.currentStyle)xa=function(a,b){var c,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;if(f==null&&g&&g[b])f=g[b];if(kb.test(f)&&!dd.test(b)){c=g.left;if(e=a.runtimeStyle&&a.runtimeStyle.left)a.runtimeStyle.left=a.currentStyle.left;g.left=b==="fontSize"?"1em":f;f=g.pixelLeft+"px";g.left=c;if(e)a.runtimeStyle.left=e}return f===""?"auto":f};d.each(["height","width"],function(a,b){d.cssHooks[b]={get:function(c,e,f){if(e)return c.offsetWidth===0&&ed.test(xa(c,
156
+ "display"))?d.swap(c,gd,function(){return Q(c,b,f)}):Q(c,b,f)},set:function(c,e,f){return S(c,e,f?W(c,b,f,d.support.boxSizing&&d.css(c,"boxSizing")==="border-box"):0)}}});if(!d.support.opacity)d.cssHooks.opacity={get:function(a,b){return cd.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?0.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,e=a.currentStyle,f=d.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=e&&e.filter||c.filter||"";c.zoom=1;if(b>=1&&d.trim(g.replace(Fb,
157
+ ""))===""&&c.removeAttribute){c.removeAttribute("filter");if(e&&!e.filter)return}c.filter=Fb.test(g)?g.replace(Fb,f):g+" "+f}};d(function(){if(!d.support.reliableMarginRight)d.cssHooks.marginRight={get:function(a,b){return d.swap(a,{display:"inline-block"},function(){if(b)return xa(a,"marginRight")})}};!d.support.pixelPosition&&d.fn.position&&d.each(["top","left"],function(a,b){d.cssHooks[b]={get:function(c,e){if(e){var f=xa(c,b);return kb.test(f)?d(c).position()[b]+"px":f}}}})});if(d.expr&&d.expr.filters){d.expr.filters.hidden=
158
+ function(a){return a.offsetWidth===0&&a.offsetHeight===0||!d.support.reliableHiddenOffsets&&(a.style&&a.style.display||xa(a,"display"))==="none"};d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)}}d.each({margin:"",padding:"",border:"Width"},function(a,b){d.cssHooks[a+b]={expand:function(c){var e=typeof c==="string"?c.split(" "):[c],f={};for(c=0;c<4;c++)f[a+Qa[c]+b]=e[c]||e[c-2]||e[0];return f}};if(!cc.test(a))d.cssHooks[a+b].set=S});var id=/%20/g,qc=/\[\]$/,ec=/\r?\n/g,jd=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
159
+ kd=/^(?:select|textarea)/i;d.fn.extend({serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?d.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||kd.test(this.nodeName)||jd.test(this.type))}).map(function(a,b){var c=d(this).val();return c==null?null:d.isArray(c)?d.map(c,function(e){return{name:b.name,value:e.replace(ec,"\r\n")}}):{name:b.name,value:c.replace(ec,"\r\n")}}).get()}});
160
+ d.param=function(a,b){var c,e=[],f=function(g,h){h=d.isFunction(h)?h():h==null?"":h;e[e.length]=encodeURIComponent(g)+"="+encodeURIComponent(h)};if(b===s)b=d.ajaxSettings&&d.ajaxSettings.traditional;if(d.isArray(a)||a.jquery&&!d.isPlainObject(a))d.each(a,function(){f(this.name,this.value)});else for(c in a)na(c,a[c],b,f);return e.join("&").replace(id,"+")};var eb,Va,ld=/#.*$/,md=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,nd=/^(?:GET|HEAD)$/,od=/^\/\//,fc=/\?/,pd=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
161
+ qd=/([?&])_=[^&]*/,gc=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,hc=d.fn.load,xb={},ic={},jc=["*/"]+["*"];try{Va=Za.href}catch(yd){Va=L.createElement("a");Va.href="";Va=Va.href}eb=gc.exec(Va.toLowerCase())||[];d.fn.load=function(a,b,c){if(typeof a!=="string"&&hc)return hc.apply(this,arguments);if(!this.length)return this;var e,f,g,h=this,k=a.indexOf(" ");if(k>=0){e=a.slice(k,a.length);a=a.slice(0,k)}if(d.isFunction(b)){c=b;b=s}else if(b&&typeof b==="object")f="POST";d.ajax({url:a,type:f,dataType:"html",
162
+ data:b,complete:function(r,v){if(c)h.each(c,g||[r.responseText,v,r])}}).done(function(r){g=arguments;h.html(e?d("<div>").append(r.replace(pd,"")).find(e):r)});return this};d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){d.fn[b]=function(c){return this.on(b,c)}});d.each(["get","post"],function(a,b){d[b]=function(c,e,f,g){if(d.isFunction(e)){g=g||f;f=e;e=s}return d.ajax({type:b,url:c,data:e,success:f,dataType:g})}});d.extend({getScript:function(a,b){return d.get(a,
163
+ s,b,"script")},getJSON:function(a,b,c){return d.get(a,b,c,"json")},ajaxSetup:function(a,b){if(b)Ya(a,d.ajaxSettings);else{b=a;a=d.ajaxSettings}Ya(a,b);return a},ajaxSettings:{url:Va,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(eb[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":jc},
164
+ contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":i.String,"text html":true,"text json":d.parseJSON,"text xml":d.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:la(xb),ajaxTransport:la(ic),ajax:function(a,b){function c(V,ha,ca,fa){var pa,ga,da,Ca,va=ha;if(wa!==2){wa=2;k&&clearTimeout(k);h=s;f=fa||"";T.readyState=V>0?4:0;if(ca){Ca=t;fa=T;var Da,aa,oa,bb,ya=Ca.contents,qa=Ca.dataTypes,ib=Ca.responseFields;for(aa in ib)if(aa in
165
+ ca)fa[ib[aa]]=ca[aa];for(;qa[0]==="*";){qa.shift();if(Da===s)Da=Ca.mimeType||fa.getResponseHeader("content-type")}if(Da)for(aa in ya)if(ya[aa]&&ya[aa].test(Da)){qa.unshift(aa);break}if(qa[0]in ca)oa=qa[0];else{for(aa in ca){if(!qa[0]||Ca.converters[aa+" "+qa[0]]){oa=aa;break}bb||(bb=aa)}oa=oa||bb}if(oa){oa!==qa[0]&&qa.unshift(oa);Ca=ca[oa]}else Ca=void 0}if(V>=200&&V<300||V===304){if(t.ifModified){if(ca=T.getResponseHeader("Last-Modified"))d.lastModified[e]=ca;if(ca=T.getResponseHeader("Etag"))d.etag[e]=
166
+ ca}if(V===304){va="notmodified";pa=true}else{a:{ga=t;da=Ca;var ua,Ua;va=ga.dataTypes.slice();Da=va[0];aa={};oa=0;if(ga.dataFilter)da=ga.dataFilter(da,ga.dataType);if(va[1])for(ua in ga.converters)aa[ua.toLowerCase()]=ga.converters[ua];for(;ca=va[++oa];)if(ca!=="*"){if(Da!=="*"&&Da!==ca){ua=aa[Da+" "+ca]||aa["* "+ca];if(!ua)for(Ua in aa){pa=Ua.split(" ");if(pa[1]===ca)if(ua=aa[Da+" "+pa[0]]||aa["* "+pa[0]]){if(ua===true)ua=aa[Ua];else if(aa[Ua]!==true){ca=pa[0];va.splice(oa--,0,ca)}break}}if(ua!==
167
+ true)if(ua&&ga["throws"])da=ua(da);else try{da=ua(da)}catch(jb){pa={state:"parsererror",error:ua?jb:"No conversion from "+Da+" to "+ca};break a}}Da=ca}pa={state:"success",data:da}}va=pa.state;ga=pa.data;da=pa.error;pa=!da}}else{da=va;if(!va||V){va="error";if(V<0)V=0}}T.status=V;T.statusText=(ha||va)+"";pa?Z.resolveWith(I,[ga,va,T]):Z.rejectWith(I,[T,va,da]);T.statusCode(Ga);Ga=s;if(v)P.trigger("ajax"+(pa?"Success":"Error"),[T,t,pa?ga:da]);ma.fireWith(I,[T,va]);if(v){P.trigger("ajaxComplete",[T,t]);
168
+ --d.active||d.event.trigger("ajaxStop")}}}if(typeof a==="object"){b=a;a=s}b=b||{};var e,f,g,h,k,r,v,w,t=d.ajaxSetup({},b),I=t.context||t,P=I!==t&&(I.nodeType||I instanceof d)?d(I):d.event,Z=d.Deferred(),ma=d.Callbacks("once memory"),Ga=t.statusCode||{},Na={},ba={},wa=0,Sa="canceled",T={readyState:0,setRequestHeader:function(V,ha){if(!wa){var ca=V.toLowerCase();V=ba[ca]=ba[ca]||V;Na[V]=ha}return this},getAllResponseHeaders:function(){return wa===2?f:null},getResponseHeader:function(V){var ha;if(wa===
169
+ 2){if(!g)for(g={};ha=md.exec(f);)g[ha[1].toLowerCase()]=ha[2];ha=g[V.toLowerCase()]}return ha===s?null:ha},overrideMimeType:function(V){if(!wa)t.mimeType=V;return this},abort:function(V){V=V||Sa;h&&h.abort(V);c(0,V);return this}};Z.promise(T);T.success=T.done;T.error=T.fail;T.complete=ma.add;T.statusCode=function(V){if(V){var ha;if(wa<2)for(ha in V)Ga[ha]=[Ga[ha],V[ha]];else{ha=V[T.status];T.always(ha)}}return this};t.url=((a||t.url)+"").replace(ld,"").replace(od,eb[1]+"//");t.dataTypes=d.trim(t.dataType||
170
+ "*").toLowerCase().split(Pa);if(t.crossDomain==null){r=gc.exec(t.url.toLowerCase())||false;t.crossDomain=r&&r.join(":")+(r[3]?"":r[1]==="http:"?80:443)!==eb.join(":")+(eb[3]?"":eb[1]==="http:"?80:443)}if(t.data&&t.processData&&typeof t.data!=="string")t.data=d.param(t.data,t.traditional);Ha(xb,t,b,T);if(wa===2)return T;v=t.global;t.type=t.type.toUpperCase();t.hasContent=!nd.test(t.type);v&&d.active++===0&&d.event.trigger("ajaxStart");if(!t.hasContent){if(t.data){t.url+=(fc.test(t.url)?"&":"?")+t.data;
171
+ delete t.data}e=t.url;if(t.cache===false){r=d.now();var cb=t.url.replace(qd,"$1_="+r);t.url=cb+(cb===t.url?(fc.test(t.url)?"&":"?")+"_="+r:"")}}if(t.data&&t.hasContent&&t.contentType!==false||b.contentType)T.setRequestHeader("Content-Type",t.contentType);if(t.ifModified){e=e||t.url;d.lastModified[e]&&T.setRequestHeader("If-Modified-Since",d.lastModified[e]);d.etag[e]&&T.setRequestHeader("If-None-Match",d.etag[e])}T.setRequestHeader("Accept",t.dataTypes[0]&&t.accepts[t.dataTypes[0]]?t.accepts[t.dataTypes[0]]+
172
+ (t.dataTypes[0]!=="*"?", "+jc+"; q=0.01":""):t.accepts["*"]);for(w in t.headers)T.setRequestHeader(w,t.headers[w]);if(t.beforeSend&&(t.beforeSend.call(I,T,t)===false||wa===2))return T.abort();Sa="abort";for(w in{success:1,error:1,complete:1})T[w](t[w]);if(h=Ha(ic,t,b,T)){T.readyState=1;v&&P.trigger("ajaxSend",[T,t]);if(t.async&&t.timeout>0)k=setTimeout(function(){T.abort("timeout")},t.timeout);try{wa=1;h.send(Na,c)}catch(db){if(wa<2)c(-1,db);else throw db;}}else c(-1,"No Transport");return T},active:0,
173
+ lastModified:{},etag:{}});var kc=[],rd=/\?/,ub=/(=)\?(?=&|$)|\?\?/,sd=d.now();d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=kc.pop()||d.expando+"_"+sd++;this[a]=true;return a}});d.ajaxPrefilter("json jsonp",function(a,b,c){var e,f,g,h=a.data,k=a.url,r=a.jsonp!==false,v=r&&ub.test(k),w=r&&!v&&typeof h==="string"&&!(a.contentType||"").indexOf("application/x-www-form-urlencoded")&&ub.test(h);if(a.dataTypes[0]==="jsonp"||v||w){e=a.jsonpCallback=d.isFunction(a.jsonpCallback)?a.jsonpCallback():
174
+ a.jsonpCallback;f=i[e];if(v)a.url=k.replace(ub,"$1"+e);else if(w)a.data=h.replace(ub,"$1"+e);else if(r)a.url+=(rd.test(k)?"&":"?")+a.jsonp+"="+e;a.converters["script json"]=function(){g||d.error(e+" was not called");return g[0]};a.dataTypes[0]="json";i[e]=function(){g=arguments};c.always(function(){i[e]=f;if(a[e]){a.jsonpCallback=b.jsonpCallback;kc.push(e)}g&&d.isFunction(f)&&f(g[0]);g=f=s});return"script"}});d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},
175
+ contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){d.globalEval(a);return a}}});d.ajaxPrefilter("script",function(a){if(a.cache===s)a.cache=false;if(a.crossDomain){a.type="GET";a.global=false}});d.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=L.head||L.getElementsByTagName("head")[0]||L.documentElement;return{send:function(e,f){b=L.createElement("script");b.async="async";if(a.scriptCharset)b.charset=a.scriptCharset;b.src=a.url;b.onload=b.onreadystatechange=
176
+ function(g,h){if(h||!b.readyState||/loaded|complete/.test(b.readyState)){b.onload=b.onreadystatechange=null;c&&b.parentNode&&c.removeChild(b);b=s;h||f(200,"success")}};c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(0,1)}}}});var fb,Gb=i.ActiveXObject?function(){for(var a in fb)fb[a](0,1)}:false,td=0;d.ajaxSettings.xhr=i.ActiveXObject?function(){var a;if(!(a=!this.isLocal&&ia()))a:{try{a=new i.ActiveXObject("Microsoft.XMLHTTP");break a}catch(b){}a=void 0}return a}:ia;(function(a){d.extend(d.support,
177
+ {ajax:!!a,cors:!!a&&"withCredentials"in a})})(d.ajaxSettings.xhr());d.support.ajax&&d.ajaxTransport(function(a){if(!a.crossDomain||d.support.cors){var b;return{send:function(c,e){var f,g,h=a.xhr();a.username?h.open(a.type,a.url,a.async,a.username,a.password):h.open(a.type,a.url,a.async);if(a.xhrFields)for(g in a.xhrFields)h[g]=a.xhrFields[g];a.mimeType&&h.overrideMimeType&&h.overrideMimeType(a.mimeType);if(!a.crossDomain&&!c["X-Requested-With"])c["X-Requested-With"]="XMLHttpRequest";try{for(g in c)h.setRequestHeader(g,
178
+ c[g])}catch(k){}h.send(a.hasContent&&a.data||null);b=function(r,v){var w,t,I,P,Z;try{if(b&&(v||h.readyState===4)){b=s;if(f){h.onreadystatechange=d.noop;Gb&&delete fb[f]}if(v)h.readyState!==4&&h.abort();else{w=h.status;I=h.getAllResponseHeaders();P={};if((Z=h.responseXML)&&Z.documentElement)P.xml=Z;try{P.text=h.responseText}catch(ma){}try{t=h.statusText}catch(Ga){t=""}if(!w&&a.isLocal&&!a.crossDomain)w=P.text?200:404;else if(w===1223)w=204}}}catch(Na){v||e(-1,Na)}P&&e(w,t,P,I)};if(a.async)if(h.readyState===
179
+ 4)setTimeout(b,0);else{f=++td;if(Gb){if(!fb){fb={};d(i).unload(Gb)}fb[f]=b}h.onreadystatechange=b}else b()},abort:function(){b&&b(0,1)}}}});var lb,vb,ud=/^(?:toggle|show|hide)$/,vd=RegExp("^(?:([-+])=|)("+pb+")([a-z%]*)$","i"),wd=/queueHooks$/,mb=[function(a,b,c){var e,f,g,h,k,r,v=this,w=a.style,t={},I=[],P=a.nodeType&&B(a);if(!c.queue){k=d._queueHooks(a,"fx");if(k.unqueued==null){k.unqueued=0;r=k.empty.fire;k.empty.fire=function(){k.unqueued||r()}}k.unqueued++;v.always(function(){v.always(function(){k.unqueued--;
180
+ d.queue(a,"fx").length||k.empty.fire()})})}if(a.nodeType===1&&("height"in b||"width"in b)){c.overflow=[w.overflow,w.overflowX,w.overflowY];if(d.css(a,"display")==="inline"&&d.css(a,"float")==="none")if(!d.support.inlineBlockNeedsLayout||Fa(a.nodeName)==="inline")w.display="inline-block";else w.zoom=1}if(c.overflow){w.overflow="hidden";d.support.shrinkWrapBlocks||v.done(function(){w.overflow=c.overflow[0];w.overflowX=c.overflow[1];w.overflowY=c.overflow[2]})}for(e in b){f=b[e];if(ud.exec(f)){delete b[e];
181
+ if(f!==(P?"hide":"show"))I.push(e)}}if(f=I.length){g=d._data(a,"fxshow")||d._data(a,"fxshow",{});P?d(a).show():v.done(function(){d(a).hide()});v.done(function(){var Z;d.removeData(a,"fxshow",true);for(Z in t)d.style(a,Z,t[Z])});for(e=0;e<f;e++){b=I[e];h=v.createTween(b,P?g[b]:0);t[b]=g[b]||d.style(a,b);if(!(b in g)){g[b]=h.start;if(P){h.end=h.start;h.start=b==="width"||b==="height"?1:0}}}}}],gb={"*":[function(a,b){var c,e,f=this.createTween(a,b),g=vd.exec(b),h=f.cur(),k=+h||0,r=1,v=20;if(g){c=+g[2];
182
+ e=g[3]||(d.cssNumber[a]?"":"px");if(e!=="px"&&k){k=d.css(f.elem,a,true)||c||1;do{r=r||".5";k/=r;d.style(f.elem,a,k+e)}while(r!==(r=f.cur()/h)&&r!==1&&--v)}f.unit=e;f.start=k;f.end=g[1]?k+(g[1]+1)*c:c}return f}]};d.Animation=d.extend(Ia,{tweener:function(a,b){if(d.isFunction(a)){b=a;a=["*"]}else a=a.split(" ");for(var c,e=0,f=a.length;e<f;e++){c=a[e];gb[c]=gb[c]||[];gb[c].unshift(b)}},prefilter:function(a,b){b?mb.unshift(a):mb.push(a)}});d.Tween=ra;ra.prototype={constructor:ra,init:function(a,b,c,
183
+ e,f,g){this.elem=a;this.prop=c;this.easing=f||"swing";this.options=b;this.start=this.now=this.cur();this.end=e;this.unit=g||(d.cssNumber[c]?"":"px")},cur:function(){var a=ra.propHooks[this.prop];return a&&a.get?a.get(this):ra.propHooks._default.get(this)},run:function(a){var b,c=ra.propHooks[this.prop];this.pos=this.options.duration?b=d.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):b=a;this.now=(this.end-this.start)*b+this.start;this.options.step&&this.options.step.call(this.elem,
184
+ this.now,this);c&&c.set?c.set(this):ra.propHooks._default.set(this);return this}};ra.prototype.init.prototype=ra.prototype;ra.propHooks={_default:{get:function(a){if(a.elem[a.prop]!=null&&(!a.elem.style||a.elem.style[a.prop]==null))return a.elem[a.prop];a=d.css(a.elem,a.prop,false,"");return!a||a==="auto"?0:a},set:function(a){if(d.fx.step[a.prop])d.fx.step[a.prop](a);else if(a.elem.style&&(a.elem.style[d.cssProps[a.prop]]!=null||d.cssHooks[a.prop]))d.style(a.elem,a.prop,a.now+a.unit);else a.elem[a.prop]=
185
+ a.now}}};ra.propHooks.scrollTop=ra.propHooks.scrollLeft={set:function(a){if(a.elem.nodeType&&a.elem.parentNode)a.elem[a.prop]=a.now}};d.each(["toggle","show","hide"],function(a,b){var c=d.fn[b];d.fn[b]=function(e,f,g){return e==null||typeof e==="boolean"||!a&&d.isFunction(e)&&d.isFunction(f)?c.apply(this,arguments):this.animate(Ra(b,true),e,f,g)}});d.fn.extend({fadeTo:function(a,b,c,e){return this.filter(B).css("opacity",0).show().end().animate({opacity:b},a,c,e)},animate:function(a,b,c,e){var f=
186
+ d.isEmptyObject(a),g=d.speed(b,c,e);b=function(){var h=Ia(this,d.extend({},a),g);f&&h.stop(true)};return f||g.queue===false?this.each(b):this.queue(g.queue,b)},stop:function(a,b,c){var e=function(f){var g=f.stop;delete f.stop;g(c)};if(typeof a!=="string"){c=b;b=a;a=s}if(b&&a!==false)this.queue(a||"fx",[]);return this.each(function(){var f=true,g=a!=null&&a+"queueHooks",h=d.timers,k=d._data(this);if(g)k[g]&&k[g].stop&&e(k[g]);else for(g in k)k[g]&&k[g].stop&&wd.test(g)&&e(k[g]);for(g=h.length;g--;)if(h[g].elem===
187
+ this&&(a==null||h[g].queue===a)){h[g].anim.stop(c);f=false;h.splice(g,1)}if(f||!c)d.dequeue(this,a)})}});d.each({slideDown:Ra("show"),slideUp:Ra("hide"),slideToggle:Ra("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){d.fn[a]=function(c,e,f){return this.animate(b,c,e,f)}});d.speed=function(a,b,c){var e=a&&typeof a==="object"?d.extend({},a):{complete:c||!c&&b||d.isFunction(a)&&a,duration:a,easing:c&&b||b&&!d.isFunction(b)&&b};e.duration=d.fx.off?
188
+ 0:typeof e.duration==="number"?e.duration:e.duration in d.fx.speeds?d.fx.speeds[e.duration]:d.fx.speeds._default;if(e.queue==null||e.queue===true)e.queue="fx";e.old=e.complete;e.complete=function(){d.isFunction(e.old)&&e.old.call(this);e.queue&&d.dequeue(this,e.queue)};return e};d.easing={linear:function(a){return a},swing:function(a){return 0.5-Math.cos(a*Math.PI)/2}};d.timers=[];d.fx=ra.prototype.init;d.fx.tick=function(){for(var a,b=d.timers,c=0;c<b.length;c++){a=b[c];!a()&&b[c]===a&&b.splice(c--,
189
+ 1)}b.length||d.fx.stop()};d.fx.timer=function(a){if(a()&&d.timers.push(a)&&!vb)vb=setInterval(d.fx.tick,d.fx.interval)};d.fx.interval=13;d.fx.stop=function(){clearInterval(vb);vb=null};d.fx.speeds={slow:600,fast:200,_default:400};d.fx.step={};if(d.expr&&d.expr.filters)d.expr.filters.animated=function(a){return d.grep(d.timers,function(b){return a===b.elem}).length};var lc=/^(?:body|html)$/i;d.fn.offset=function(a){if(arguments.length)return a===s?this:this.each(function(k){d.offset.setOffset(this,
190
+ a,k)});var b,c,e,f,g,h={top:0,left:0};if(f=(e=this[0])&&e.ownerDocument){if((c=f.body)===e)return d.offset.bodyOffset(e);b=f.documentElement;if(!d.contains(b,e))return h;if(typeof e.getBoundingClientRect!=="undefined")h=e.getBoundingClientRect();e=nb(f);f=b.clientTop||c.clientTop||0;c=b.clientLeft||c.clientLeft||0;g=e.pageYOffset||b.scrollTop;return{top:h.top+g-f,left:h.left+(e.pageXOffset||b.scrollLeft)-c}}};d.offset={bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;if(d.support.doesNotIncludeMarginInBodyOffset){b+=
191
+ parseFloat(d.css(a,"marginTop"))||0;c+=parseFloat(d.css(a,"marginLeft"))||0}return{top:b,left:c}},setOffset:function(a,b,c){var e=d.css(a,"position");if(e==="static")a.style.position="relative";var f=d(a),g=f.offset(),h=d.css(a,"top"),k=d.css(a,"left"),r={},v={};if((e==="absolute"||e==="fixed")&&d.inArray("auto",[h,k])>-1){v=f.position();e=v.top;k=v.left}else{e=parseFloat(h)||0;k=parseFloat(k)||0}if(d.isFunction(b))b=b.call(a,c,g);if(b.top!=null)r.top=b.top-g.top+e;if(b.left!=null)r.left=b.left-g.left+
192
+ k;"using"in b?b.using.call(a,r):f.css(r)}};d.fn.extend({position:function(){if(this[0]){var a=this[0],b=this.offsetParent(),c=this.offset(),e=lc.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(d.css(a,"marginTop"))||0;c.left-=parseFloat(d.css(a,"marginLeft"))||0;e.top+=parseFloat(d.css(b[0],"borderTopWidth"))||0;e.left+=parseFloat(d.css(b[0],"borderLeftWidth"))||0;return{top:c.top-e.top,left:c.left-e.left}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||
193
+ L.body;a&&!lc.test(a.nodeName)&&d.css(a,"position")==="static";)a=a.offsetParent;return a||L.body})}});d.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);d.fn[a]=function(e){return d.access(this,function(f,g,h){var k=nb(f);if(h===s)return k?b in k?k[b]:k.document.documentElement[g]:f[g];if(k)k.scrollTo(!c?h:d(k).scrollLeft(),c?h:d(k).scrollTop());else f[g]=h},a,e,arguments.length,null)}});d.each({Height:"height",Width:"width"},function(a,b){d.each({padding:"inner"+
194
+ a,content:b,"":"outer"+a},function(c,e){d.fn[e]=function(f,g){var h=arguments.length&&(c||typeof f!=="boolean"),k=c||(f===true||g===true?"margin":"border");return d.access(this,function(r,v,w){if(d.isWindow(r))return r.document.documentElement["client"+a];if(r.nodeType===9){v=r.documentElement;return Math.max(r.body["scroll"+a],v["scroll"+a],r.body["offset"+a],v["offset"+a],v["client"+a])}return w===s?d.css(r,v,w,k):d.style(r,v,w,k)},b,h?f:s,h,null)}})});i.jQuery=i.$=d;typeof define==="function"&&
195
+ define.amd&&define.amd.jQuery&&define("jquery",[],function(){return d})})(window);(function(i,s){function l(m,u){var z,F;z=m.nodeName.toLowerCase();if("area"===z){z=m.parentNode;F=z.name;if(!m.href||!F||z.nodeName.toLowerCase()!=="map")return false;z=i("img[usemap=#"+F+"]")[0];return!!z&&q(z)}return(/input|select|textarea|button|object/.test(z)?!m.disabled:"a"===z?m.href||u:u)&&q(m)}function q(m){return!i(m).parents().andSelf().filter(function(){return i.css(this,"visibility")==="hidden"||i.expr.filters.hidden(this)}).length}var A=0,o=/^ui-id-\d+$/;i.ui=i.ui||{};if(!i.ui.version){i.extend(i.ui,
196
+ {version:"1.9.0",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}});i.fn.extend({_focus:i.fn.focus,focus:function(m,u){return typeof m==="number"?this.each(function(){var z=this;setTimeout(function(){i(z).focus();u&&u.call(z)},m)}):this._focus.apply(this,arguments)},scrollParent:function(){var m;
197
+ m=i.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(i.css(this,"position"))&&/(auto|scroll)/.test(i.css(this,"overflow")+i.css(this,"overflow-y")+i.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(i.css(this,"overflow")+i.css(this,"overflow-y")+i.css(this,"overflow-x"))}).eq(0);return/fixed/.test(this.css("position"))||!m.length?i(document):
198
+ m},zIndex:function(m){if(m!==s)return this.css("zIndex",m);if(this.length){m=i(this[0]);for(var u;m.length&&m[0]!==document;){u=m.css("position");if(u==="absolute"||u==="relative"||u==="fixed"){u=parseInt(m.css("zIndex"),10);if(!isNaN(u)&&u!==0)return u}m=m.parent()}}return 0},uniqueId:function(){return this.each(function(){if(!this.id)this.id="ui-id-"+ ++A})},removeUniqueId:function(){return this.each(function(){o.test(this.id)&&i(this).removeAttr("id")})}});i("<a>").outerWidth(1).jquery||i.each(["Width",
199
+ "Height"],function(m,u){function z(N,R,y,D){i.each(F,function(){R-=parseFloat(i.css(N,"padding"+this))||0;if(y)R-=parseFloat(i.css(N,"border"+this+"Width"))||0;if(D)R-=parseFloat(i.css(N,"margin"+this))||0});return R}var F=u==="Width"?["Left","Right"]:["Top","Bottom"],M=u.toLowerCase(),O={innerWidth:i.fn.innerWidth,innerHeight:i.fn.innerHeight,outerWidth:i.fn.outerWidth,outerHeight:i.fn.outerHeight};i.fn["inner"+u]=function(N){if(N===s)return O["inner"+u].call(this);return this.each(function(){i(this).css(M,
200
+ z(this,N)+"px")})};i.fn["outer"+u]=function(N,R){if(typeof N!=="number")return O["outer"+u].call(this,N);return this.each(function(){i(this).css(M,z(this,N,true,R)+"px")})}});i.extend(i.expr[":"],{data:i.expr.createPseudo?i.expr.createPseudo(function(m){return function(u){return!!i.data(u,m)}}):function(m,u,z){return!!i.data(m,z[3])},focusable:function(m){return l(m,!isNaN(i.attr(m,"tabindex")))},tabbable:function(m){var u=i.attr(m,"tabindex"),z=isNaN(u);return(z||u>=0)&&l(m,!z)}});i(function(){var m=
201
+ document.body,u=m.appendChild(u=document.createElement("div"));i.extend(u.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});i.support.minHeight=u.offsetHeight===100;i.support.selectstart="onselectstart"in u;m.removeChild(u).style.display="none"});i.fn.extend({disableSelection:function(){return this.bind((i.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(m){m.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});i.extend(i.ui,
202
+ {plugin:{add:function(m,u,z){var F;m=i.ui[m].prototype;for(F in z){m.plugins[F]=m.plugins[F]||[];m.plugins[F].push([u,z[F]])}},call:function(m,u,z){var F=m.plugins[u];if(!(!F||!m.element[0].parentNode||m.element[0].parentNode.nodeType===11))for(u=0;u<F.length;u++)m.options[F[u][0]]&&F[u][1].apply(m.element,z)}},contains:i.contains,hasScroll:function(m,u){if(i(m).css("overflow")==="hidden")return false;var z=u&&u==="left"?"scrollLeft":"scrollTop",F=false;if(m[z]>0)return true;m[z]=1;F=m[z]>0;m[z]=
203
+ 0;return F},isOverAxis:function(m,u,z){return m>u&&m<u+z},isOver:function(m,u,z,F,M,O){return i.ui.isOverAxis(m,z,M)&&i.ui.isOverAxis(u,F,O)}})}})(jQuery);(function(i,s){var l=0,q=Array.prototype.slice,A=i.cleanData;i.cleanData=function(o){for(var m=0,u;(u=o[m])!=null;m++)try{i(u).triggerHandler("remove")}catch(z){}A(o)};i.widget=function(o,m,u){var z,F,M,O,N=o.split(".")[0];o=o.split(".")[1];z=N+"-"+o;if(!u){u=m;m=i.Widget}i.expr[":"][z.toLowerCase()]=function(R){return!!i.data(R,z)};i[N]=i[N]||{};F=i[N][o];M=i[N][o]=function(R,y){if(!this._createWidget)return new M(R,y);arguments.length&&this._createWidget(R,y)};i.extend(M,F,{version:u.version,_proto:i.extend({},
204
+ u),_childConstructors:[]});O=new m;O.options=i.widget.extend({},O.options);i.each(u,function(R,y){if(i.isFunction(y))u[R]=function(){var D=function(){return m.prototype[R].apply(this,arguments)},B=function(E){return m.prototype[R].apply(this,E)};return function(){var E=this._super,S=this._superApply,W;this._super=D;this._superApply=B;W=y.apply(this,arguments);this._super=E;this._superApply=S;return W}}()});M.prototype=i.widget.extend(O,{widgetEventPrefix:o},u,{constructor:M,namespace:N,widgetName:o,
205
+ widgetBaseClass:z,widgetFullName:z});if(F){i.each(F._childConstructors,function(R,y){var D=y.prototype;i.widget(D.namespace+"."+D.widgetName,M,y._proto)});delete F._childConstructors}else m._childConstructors.push(M);i.widget.bridge(o,M)};i.widget.extend=function(o){for(var m=q.call(arguments,1),u=0,z=m.length,F,M;u<z;u++)for(F in m[u]){M=m[u][F];if(m[u].hasOwnProperty(F)&&M!==s)o[F]=i.isPlainObject(M)?i.widget.extend({},o[F],M):M}return o};i.widget.bridge=function(o,m){var u=m.prototype.widgetFullName;
206
+ i.fn[o]=function(z){var F=typeof z==="string",M=q.call(arguments,1),O=this;z=!F&&M.length?i.widget.extend.apply(null,[z].concat(M)):z;F?this.each(function(){var N,R=i.data(this,u);if(!R)return i.error("cannot call methods on "+o+" prior to initialization; attempted to call method '"+z+"'");if(!i.isFunction(R[z])||z.charAt(0)==="_")return i.error("no such method '"+z+"' for "+o+" widget instance");N=R[z].apply(R,M);if(N!==R&&N!==s){O=N&&N.jquery?O.pushStack(N.get()):N;return false}}):this.each(function(){var N=
207
+ i.data(this,u);if(N)N.option(z||{})._init();else new m(z,this)});return O}};i.Widget=function(){};i.Widget._childConstructors=[];i.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:false,create:null},_createWidget:function(o,m){m=i(m||this.defaultElement||this)[0];this.element=i(m);this.uuid=l++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=i.widget.extend({},this.options,this._getCreateOptions(),o);this.bindings=i();this.hoverable=
208
+ i();this.focusable=i();if(m!==this){i.data(m,this.widgetName,this);i.data(m,this.widgetFullName,this);this._on({remove:"destroy"});this.document=i(m.style?m.ownerDocument:m.document||m);this.window=i(this.document[0].defaultView||this.document[0].parentWindow)}this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:i.noop,_getCreateEventData:i.noop,_create:i.noop,_init:i.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(i.camelCase(this.widgetFullName));
209
+ this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled");this.bindings.unbind(this.eventNamespace);this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")},_destroy:i.noop,widget:function(){return this.element},option:function(o,m){var u=o,z,F,M;if(arguments.length===0)return i.widget.extend({},this.options);if(typeof o==="string"){u={};z=o.split(".");o=z.shift();if(z.length){F=u[o]=i.widget.extend({},
210
+ this.options[o]);for(M=0;M<z.length-1;M++){F[z[M]]=F[z[M]]||{};F=F[z[M]]}o=z.pop();if(m===s)return F[o]===s?null:F[o];F[o]=m}else{if(m===s)return this.options[o]===s?null:this.options[o];u[o]=m}}this._setOptions(u);return this},_setOptions:function(o){var m;for(m in o)this._setOption(m,o[m]);return this},_setOption:function(o,m){this.options[o]=m;if(o==="disabled"){this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!m).attr("aria-disabled",m);this.hoverable.removeClass("ui-state-hover");
211
+ this.focusable.removeClass("ui-state-focus")}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_on:function(o,m){if(m){o=i(o);this.bindings=this.bindings.add(o)}else{m=o;o=this.element}var u=this;i.each(m,function(z,F){function M(){if(!(u.options.disabled===true||i(this).hasClass("ui-state-disabled")))return(typeof F==="string"?u[F]:F).apply(u,arguments)}if(typeof F!=="string")M.guid=F.guid=F.guid||M.guid||i.guid++;
212
+ var O=z.match(/^(\w+)\s*(.*)$/),N=O[1]+u.eventNamespace;(O=O[2])?u.widget().delegate(O,N,M):o.bind(N,M)})},_off:function(o,m){m=(m||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;o.unbind(m).undelegate(m)},_delay:function(o,m){var u=this;return setTimeout(function(){return(typeof o==="string"?u[o]:o).apply(u,arguments)},m||0)},_hoverable:function(o){this.hoverable=this.hoverable.add(o);this._on(o,{mouseenter:function(m){i(m.currentTarget).addClass("ui-state-hover")},mouseleave:function(m){i(m.currentTarget).removeClass("ui-state-hover")}})},
213
+ _focusable:function(o){this.focusable=this.focusable.add(o);this._on(o,{focusin:function(m){i(m.currentTarget).addClass("ui-state-focus")},focusout:function(m){i(m.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(o,m,u){var z,F=this.options[o];u=u||{};m=i.Event(m);m.type=(o===this.widgetEventPrefix?o:this.widgetEventPrefix+o).toLowerCase();m.target=this.element[0];if(o=m.originalEvent)for(z in o)z in m||(m[z]=o[z]);this.element.trigger(m,u);return!(i.isFunction(F)&&F.apply(this.element[0],
214
+ [m].concat(u))===false||m.isDefaultPrevented())}};i.each({show:"fadeIn",hide:"fadeOut"},function(o,m){i.Widget.prototype["_"+o]=function(u,z,F){if(typeof z==="string")z={effect:z};var M,O=!z?o:z===true||typeof z==="number"?m:z.effect||m;z=z||{};if(typeof z==="number")z={duration:z};M=!i.isEmptyObject(z);z.complete=F;z.delay&&u.delay(z.delay);if(M&&i.effects&&(i.effects.effect[O]||i.uiBackCompat!==false&&i.effects[O]))u[o](z);else O!==o&&u[O]?u[O](z.duration,z.easing,F):u.queue(function(N){i(this)[o]();
215
+ F&&F.call(u[0]);N()})}});if(i.uiBackCompat!==false)i.Widget.prototype._getCreateOptions=function(){return i.metadata&&i.metadata.get(this.element[0])[this.widgetName]}})(jQuery);(function(i,s){function l(y,D,B){return[parseInt(y[0],10)*(N.test(y[0])?D/100:1),parseInt(y[1],10)*(N.test(y[1])?B/100:1)]}function q(y,D){return parseInt(i.css(y,D),10)||0}i.ui=i.ui||{};var A,o=Math.max,m=Math.abs,u=Math.round,z=/left|center|right/,F=/top|center|bottom/,M=/[\+\-]\d+%?/,O=/^\w+/,N=/%$/,R=i.fn.position;i.position={scrollbarWidth:function(){if(A!==s)return A;var y,D,B=i("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>");
216
+ D=B.children()[0];i("body").append(B);y=D.offsetWidth;B.css("overflow","scroll");D=D.offsetWidth;if(y===D)D=B[0].clientWidth;B.remove();return A=y-D},getScrollInfo:function(y){var D=y.isWindow?"":y.element.css("overflow-x"),B=y.isWindow?"":y.element.css("overflow-y");B=B==="scroll"||B==="auto"&&y.height<y.element[0].scrollHeight;return{width:D==="scroll"||D==="auto"&&y.width<y.element[0].scrollWidth?i.position.scrollbarWidth():0,height:B?i.position.scrollbarWidth():0}},getWithinInfo:function(y){y=
217
+ i(y||window);var D=i.isWindow(y[0]);return{element:y,isWindow:D,offset:y.offset()||{left:0,top:0},scrollLeft:y.scrollLeft(),scrollTop:y.scrollTop(),width:D?y.width():y.outerWidth(),height:D?y.height():y.outerHeight()}}};i.fn.position=function(y){if(!y||!y.of)return R.apply(this,arguments);y=i.extend({},y);var D,B,E,S,W,Q=i(y.of),Fa=i.position.getWithinInfo(y.within),na=i.position.getScrollInfo(Fa),la=Q[0],Ha=(y.collision||"flip").split(" "),Ya={};if(la.nodeType===9){B=Q.width();E=Q.height();S={top:0,
218
+ left:0}}else if(i.isWindow(la)){B=Q.width();E=Q.height();S={top:Q.scrollTop(),left:Q.scrollLeft()}}else if(la.preventDefault){y.at="left top";B=E=0;S={top:la.pageY,left:la.pageX}}else{B=Q.outerWidth();E=Q.outerHeight();S=Q.offset()}W=i.extend({},S);i.each(["my","at"],function(){var ia=(y[this]||"").split(" "),Ja,Aa;if(ia.length===1)ia=z.test(ia[0])?ia.concat(["center"]):F.test(ia[0])?["center"].concat(ia):["center","center"];ia[0]=z.test(ia[0])?ia[0]:"center";ia[1]=F.test(ia[1])?ia[1]:"center";Ja=
219
+ M.exec(ia[0]);Aa=M.exec(ia[1]);Ya[this]=[Ja?Ja[0]:0,Aa?Aa[0]:0];y[this]=[O.exec(ia[0])[0],O.exec(ia[1])[0]]});if(Ha.length===1)Ha[1]=Ha[0];if(y.at[0]==="right")W.left+=B;else if(y.at[0]==="center")W.left+=B/2;if(y.at[1]==="bottom")W.top+=E;else if(y.at[1]==="center")W.top+=E/2;D=l(Ya.at,B,E);W.left+=D[0];W.top+=D[1];return this.each(function(){var ia,Ja,Aa=i(this),Ia=Aa.outerWidth(),Ka=Aa.outerHeight(),ra=q(this,"marginLeft"),Ra=q(this,"marginTop"),nb=Ia+ra+q(this,"marginRight")+na.width,ob=Ka+Ra+
220
+ q(this,"marginBottom")+na.height,ja=i.extend({},W),L=l(Ya.my,Aa.outerWidth(),Aa.outerHeight());if(y.my[0]==="right")ja.left-=Ia;else if(y.my[0]==="center")ja.left-=Ia/2;if(y.my[1]==="bottom")ja.top-=Ka;else if(y.my[1]==="center")ja.top-=Ka/2;ja.left+=L[0];ja.top+=L[1];if(!i.support.offsetFractions){ja.left=u(ja.left);ja.top=u(ja.top)}ia={marginLeft:ra,marginTop:Ra};i.each(["left","top"],function(Za,La){i.ui.position[Ha[Za]]&&i.ui.position[Ha[Za]][La](ja,{targetWidth:B,targetHeight:E,elemWidth:Ia,
221
+ elemHeight:Ka,collisionPosition:ia,collisionWidth:nb,collisionHeight:ob,offset:[D[0]+L[0],D[1]+L[1]],my:y.my,at:y.at,within:Fa,elem:Aa})});i.fn.bgiframe&&Aa.bgiframe();if(y.using)Ja=function(Za){var La=S.left-ja.left,hb=La+B-Ia,$a=S.top-ja.top,ab=$a+E-Ka,Ba={target:{element:Q,left:S.left,top:S.top,width:B,height:E},element:{element:Aa,left:ja.left,top:ja.top,width:Ia,height:Ka},horizontal:hb<0?"left":La>0?"right":"center",vertical:ab<0?"top":$a>0?"bottom":"middle"};if(B<Ia&&m(La+hb)<B)Ba.horizontal=
222
+ "center";if(E<Ka&&m($a+ab)<E)Ba.vertical="middle";Ba.important=o(m(La),m(hb))>o(m($a),m(ab))?"horizontal":"vertical";y.using.call(this,Za,Ba)};Aa.offset(i.extend(ja,{using:Ja}))})};i.ui.position={fit:{left:function(y,D){var B=D.within,E=B.isWindow?B.scrollLeft:B.offset.left,S=B.width,W=y.left-D.collisionPosition.marginLeft;B=E-W;var Q=W+D.collisionWidth-S-E;if(D.collisionWidth>S)if(B>0&&Q<=0){E=y.left+B+D.collisionWidth-S-E;y.left+=B-E}else y.left=Q>0&&B<=0?E:B>Q?E+S-D.collisionWidth:E;else if(B>
223
+ 0)y.left+=B;else if(Q>0)y.left-=Q;else y.left=o(y.left-W,y.left)},top:function(y,D){var B=D.within,E=B.isWindow?B.scrollTop:B.offset.top,S=D.within.height,W=y.top-D.collisionPosition.marginTop;B=E-W;var Q=W+D.collisionHeight-S-E;if(D.collisionHeight>S)if(B>0&&Q<=0){E=y.top+B+D.collisionHeight-S-E;y.top+=B-E}else y.top=Q>0&&B<=0?E:B>Q?E+S-D.collisionHeight:E;else if(B>0)y.top+=B;else if(Q>0)y.top-=Q;else y.top=o(y.top-W,y.top)}},flip:{left:function(y,D){var B=D.within,E=B.offset.left+B.scrollLeft,
224
+ S=B.width,W=B.isWindow?B.scrollLeft:B.offset.left,Q=y.left-D.collisionPosition.marginLeft;B=Q-W;var Fa=Q+D.collisionWidth-S-W;Q=D.my[0]==="left"?-D.elemWidth:D.my[0]==="right"?D.elemWidth:0;var na=D.at[0]==="left"?D.targetWidth:D.at[0]==="right"?-D.targetWidth:0,la=-2*D.offset[0];if(B<0){E=y.left+Q+na+la+D.collisionWidth-S-E;if(E<0||E<m(B))y.left+=Q+na+la}else if(Fa>0){E=y.left-D.collisionPosition.marginLeft+Q+na+la-W;if(E>0||m(E)<Fa)y.left+=Q+na+la}},top:function(y,D){var B=D.within,E=B.offset.top+
225
+ B.scrollTop,S=B.height,W=B.isWindow?B.scrollTop:B.offset.top,Q=y.top-D.collisionPosition.marginTop;B=Q-W;var Fa=Q+D.collisionHeight-S-W;Q=D.my[1]==="top"?-D.elemHeight:D.my[1]==="bottom"?D.elemHeight:0;var na=D.at[1]==="top"?D.targetHeight:D.at[1]==="bottom"?-D.targetHeight:0,la=-2*D.offset[1];if(B<0){E=y.top+Q+na+la+D.collisionHeight-S-E;if(y.top+Q+na+la>B&&(E<0||E<m(B)))y.top+=Q+na+la}else if(Fa>0){E=y.top-D.collisionPosition.marginTop+Q+na+la-W;if(y.top+Q+na+la>Fa&&(E>0||m(E)<Fa))y.top+=Q+na+la}}},
226
+ flipfit:{left:function(){i.ui.position.flip.left.apply(this,arguments);i.ui.position.fit.left.apply(this,arguments)},top:function(){i.ui.position.flip.top.apply(this,arguments);i.ui.position.fit.top.apply(this,arguments)}}};(function(){var y,D,B,E,S=document.getElementsByTagName("body")[0];B=document.createElement("div");y=document.createElement(S?"div":"body");D={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};S&&i.extend(D,{position:"absolute",left:"-1000px",top:"-1000px"});
227
+ for(E in D)y.style[E]=D[E];y.appendChild(B);D=S||document.documentElement;D.insertBefore(y,D.firstChild);B.style.cssText="position: absolute; left: 10.7432222px;";B=i(B).offset().left;i.support.offsetFractions=B>10&&B<11;y.innerHTML="";D.removeChild(y)})();i.uiBackCompat!==false&&function(y){var D=y.fn.position;y.fn.position=function(B){if(!B||!B.offset)return D.call(this,B);var E=B.offset.split(" "),S=B.at.split(" ");if(E.length===1)E[1]=E[0];if(/^\d/.test(E[0]))E[0]="+"+E[0];if(/^\d/.test(E[1]))E[1]=
228
+ "+"+E[1];if(S.length===1)if(/left|center|right/.test(S[0]))S[1]="center";else{S[1]=S[0];S[0]="center"}return D.call(this,y.extend(B,{at:S[0]+E[0]+" "+S[1]+E[1],offset:s}))}}(jQuery)})(jQuery);(function(i){var s=false;i.widget("ui.menu",{version:"1.9.0",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element;this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,
229
+ i.proxy(function(l){this.options.disabled&&l.preventDefault()},this));this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true");this._on({"mousedown .ui-menu-item > a":function(l){l.preventDefault()},"click .ui-state-disabled > a":function(l){l.preventDefault()},"click .ui-menu-item:has(a)":function(l){var q=i(l.target).closest(".ui-menu-item");if(!s&&q.not(".ui-state-disabled").length){s=true;this.select(l);if(q.has(".ui-menu").length)this.expand(l);else if(!this.element.is(":focus")){this.element.trigger("focus",
230
+ [true]);this.active&&this.active.parents(".ui-menu").length===1&&clearTimeout(this.timer)}}},"mouseenter .ui-menu-item":function(l){var q=i(l.currentTarget);q.siblings().children(".ui-state-active").removeClass("ui-state-active");this.focus(l,q)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(l,q){var A=this.active||this.element.children(".ui-menu-item").eq(0);q||this.focus(l,A)},blur:function(l){this._delay(function(){i.contains(this.element[0],this.document[0].activeElement)||
231
+ this.collapseAll(l)})},keydown:"_keydown"});this.refresh();this._on(this.document,{click:function(l){i(l.target).closest(".ui-menu").length||this.collapseAll(l);s=false}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").andSelf().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show();
232
+ this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var l=i(this);l.data("ui-menu-submenu-carat")&&l.remove()});this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(l){function q(F){return F.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,
233
+ "\\$&")}var A,o,m,u,z=true;switch(l.keyCode){case i.ui.keyCode.PAGE_UP:this.previousPage(l);break;case i.ui.keyCode.PAGE_DOWN:this.nextPage(l);break;case i.ui.keyCode.HOME:this._move("first","first",l);break;case i.ui.keyCode.END:this._move("last","last",l);break;case i.ui.keyCode.UP:this.previous(l);break;case i.ui.keyCode.DOWN:this.next(l);break;case i.ui.keyCode.LEFT:this.collapse(l);break;case i.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(l);break;case i.ui.keyCode.ENTER:case i.ui.keyCode.SPACE:this._activate(l);
234
+ break;case i.ui.keyCode.ESCAPE:this.collapse(l);break;default:z=false;A=this.previousFilter||"";o=String.fromCharCode(l.keyCode);m=false;clearTimeout(this.filterTimer);if(o===A)m=true;else o=A+o;u=RegExp("^"+q(o),"i");A=this.activeMenu.children(".ui-menu-item").filter(function(){return u.test(i(this).children("a").text())});A=m&&A.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):A;if(!A.length){o=String.fromCharCode(l.keyCode);u=RegExp("^"+q(o),"i");A=this.activeMenu.children(".ui-menu-item").filter(function(){return u.test(i(this).children("a").text())})}if(A.length){this.focus(l,
235
+ A);if(A.length>1){this.previousFilter=o;this.filterTimer=this._delay(function(){delete this.previousFilter},1E3)}else delete this.previousFilter}else delete this.previousFilter}z&&l.preventDefault()},_activate:function(l){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(l):this.select(l))},refresh:function(){var l,q=this.options.icons.submenu,A=this.element.find(this.options.menus+":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,
236
+ "aria-hidden":"true","aria-expanded":"false"});l=A.add(this.element);l.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()});l.children(":not(.ui-menu-item)").each(function(){var o=i(this);/[^\-\u2014\u2013\s]/.test(o.text())||o.addClass("ui-widget-content ui-menu-divider")});l.children(".ui-state-disabled").attr("aria-disabled","true");A.each(function(){var o=i(this),
237
+ m=o.prev("a"),u=i("<span>").addClass("ui-menu-icon ui-icon "+q).data("ui-menu-submenu-carat",true);m.attr("aria-haspopup","true").prepend(u);o.attr("aria-labelledby",m.attr("id"))});this.active&&!i.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},focus:function(l,q){var A;this.blur(l,l&&l.type==="focus");this._scrollIntoView(q);this.active=q.first();A=this.active.children("a").addClass("ui-state-focus");this.options.role&&
238
+ this.element.attr("aria-activedescendant",A.attr("id"));this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active");if(l&&l.type==="keydown")this._close();else this.timer=this._delay(function(){this._close()},this.delay);A=q.children(".ui-menu");A.length&&/^mouse/.test(l.type)&&this._startOpening(A);this.activeMenu=q.parent();this._trigger("focus",l,{item:q})},_scrollIntoView:function(l){var q,A,o;if(this._hasScroll()){q=parseFloat(i.css(this.activeMenu[0],"borderTopWidth"))||
239
+ 0;A=parseFloat(i.css(this.activeMenu[0],"paddingTop"))||0;q=l.offset().top-this.activeMenu.offset().top-q-A;A=this.activeMenu.scrollTop();o=this.activeMenu.height();l=l.height();if(q<0)this.activeMenu.scrollTop(A+q);else q+l>o&&this.activeMenu.scrollTop(A+q-o+l)}},blur:function(l,q){q||clearTimeout(this.timer);if(this.active){this.active.children("a").removeClass("ui-state-focus");this.active=null;this._trigger("blur",l,{item:this.active})}},_startOpening:function(l){clearTimeout(this.timer);if(l.attr("aria-hidden")===
240
+ "true")this.timer=this._delay(function(){this._close();this._open(l)},this.delay)},_open:function(l){var q=i.extend({of:this.active},this.options.position);clearTimeout(this.timer);this.element.find(".ui-menu").not(l.parents(".ui-menu")).hide().attr("aria-hidden","true");l.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(q)},collapseAll:function(l,q){clearTimeout(this.timer);this.timer=this._delay(function(){var A=q?this.element:i(l&&l.target).closest(this.element.find(".ui-menu"));
241
+ if(!A.length)A=this.element;this._close(A);this.blur(l);this.activeMenu=A},this.delay)},_close:function(l){l||(l=this.active?this.active.parent():this.element);l.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(l){var q=this.active&&this.active.parent().closest(".ui-menu-item",this.element);if(q&&q.length){this._close();this.focus(l,q)}},expand:function(l){var q=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();
242
+ if(q&&q.length){this._open(q.parent());this._delay(function(){this.focus(l,q)})}},next:function(l){this._move("next","first",l)},previous:function(l){this._move("prev","last",l)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(l,q,A){var o;if(this.active)o=l==="first"||l==="last"?this.active[l==="first"?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[l+
243
+ "All"](".ui-menu-item").eq(0);if(!o||!o.length||!this.active)o=this.activeMenu.children(".ui-menu-item")[q]();this.focus(A,o)},nextPage:function(l){var q,A,o;if(this.active){if(!this.isLastItem())if(this._hasScroll()){A=this.active.offset().top;o=this.element.height();this.active.nextAll(".ui-menu-item").each(function(){q=i(this);return q.offset().top-A-o<0});this.focus(l,q)}else this.focus(l,this.activeMenu.children(".ui-menu-item")[!this.active?"first":"last"]())}else this.next(l)},previousPage:function(l){var q,
244
+ A,o;if(this.active){if(!this.isFirstItem())if(this._hasScroll()){A=this.active.offset().top;o=this.element.height();this.active.prevAll(".ui-menu-item").each(function(){q=i(this);return q.offset().top-A+o>0});this.focus(l,q)}else this.focus(l,this.activeMenu.children(".ui-menu-item").first())}else this.next(l)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(l){this.active=this.active||i(l.target).closest(".ui-menu-item");var q={item:this.active};
245
+ this.active.has(".ui-menu").length||this.collapseAll(l,true);this._trigger("select",l,q)}})})(jQuery);(function(i){var s=0;i.widget("ui.autocomplete",{version:"1.9.0",defaultElement:"<input>",options:{appendTo:"body",autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var l,q,A;this.isMultiLine=this._isMultiLine();this.valueMethod=this.element[this.element.is("input,textarea")?"val":"text"];this.isNewMenu=true;this.element.addClass("ui-autocomplete-input").attr("autocomplete",
246
+ "off");this._on({keydown:function(o){if(this.element.prop("readOnly"))q=A=l=true;else{q=A=l=false;var m=i.ui.keyCode;switch(o.keyCode){case m.PAGE_UP:l=true;this._move("previousPage",o);break;case m.PAGE_DOWN:l=true;this._move("nextPage",o);break;case m.UP:l=true;this._keyEvent("previous",o);break;case m.DOWN:l=true;this._keyEvent("next",o);break;case m.ENTER:case m.NUMPAD_ENTER:if(this.menu.active){l=true;o.preventDefault();this.menu.select(o)}break;case m.TAB:this.menu.active&&this.menu.select(o);
247
+ break;case m.ESCAPE:if(this.menu.element.is(":visible")){this._value(this.term);this.close(o);o.preventDefault()}break;default:q=true;this._searchTimeout(o);break}}},keypress:function(o){if(l){l=false;o.preventDefault()}else if(!q){var m=i.ui.keyCode;switch(o.keyCode){case m.PAGE_UP:this._move("previousPage",o);break;case m.PAGE_DOWN:this._move("nextPage",o);break;case m.UP:this._keyEvent("previous",o);break;case m.DOWN:this._keyEvent("next",o);break}}},input:function(o){if(A){A=false;o.preventDefault()}else this._searchTimeout(o)},
248
+ focus:function(){this.selectedItem=null;this.previous=this._value()},blur:function(o){if(this.cancelBlur)delete this.cancelBlur;else{clearTimeout(this.searching);this.close(o);this._change(o)}}});this._initSource();this.menu=i("<ul>").addClass("ui-autocomplete").appendTo(this.document.find(this.options.appendTo||"body")[0]).menu({input:i(),role:null}).zIndex(this.element.zIndex()+1).hide().data("menu");this._on(this.menu.element,{mousedown:function(o){o.preventDefault();this.cancelBlur=true;this._delay(function(){delete this.cancelBlur});
249
+ var m=this.menu.element[0];i(o.target).closest(".ui-menu-item").length||this._delay(function(){var u=this;this.document.one("mousedown",function(z){z.target!==u.element[0]&&z.target!==m&&!i.contains(m,z.target)&&u.close()})})},menufocus:function(o,m){if(this.isNewMenu){this.isNewMenu=false;if(o.originalEvent&&/^mouse/.test(o.originalEvent.type)){this.menu.blur();this.document.one("mousemove",function(){i(o.target).trigger(o.originalEvent)});return}}var u=m.item.data("ui-autocomplete-item")||m.item.data("item.autocomplete");
250
+ if(false!==this._trigger("focus",o,{item:u}))o.originalEvent&&/^key/.test(o.originalEvent.type)&&this._value(u.value);else this.liveRegion.text(u.value)},menuselect:function(o,m){var u=m.item.data("ui-autocomplete-item")||m.item.data("item.autocomplete"),z=this.previous;if(this.element[0]!==this.document[0].activeElement){this.element.focus();this.previous=z;this._delay(function(){this.previous=z;this.selectedItem=u})}false!==this._trigger("select",o,{item:u})&&this._value(u.value);this.term=this._value();
251
+ this.close(o);this.selectedItem=u}});this.liveRegion=i("<span>",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertAfter(this.element);i.fn.bgiframe&&this.menu.element.bgiframe();this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching);this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete");this.menu.element.remove();this.liveRegion.remove()},_setOption:function(l,
252
+ q){this._super(l,q);l==="source"&&this._initSource();if(l==="appendTo")this.menu.element.appendTo(this.document.find(q||"body")[0]);l==="disabled"&&q&&this.xhr&&this.xhr.abort()},_isMultiLine:function(){if(this.element.is("textarea"))return true;if(this.element.is("input"))return false;return this.element.prop("isContentEditable")},_initSource:function(){var l,q,A=this;if(i.isArray(this.options.source)){l=this.options.source;this.source=function(o,m){m(i.ui.autocomplete.filter(l,o.term))}}else if(typeof this.options.source===
253
+ "string"){q=this.options.source;this.source=function(o,m){A.xhr&&A.xhr.abort();A.xhr=i.ajax({url:q,data:o,dataType:"json",success:function(u){m(u)},error:function(){m([])}})}}else this.source=this.options.source},_searchTimeout:function(l){clearTimeout(this.searching);this.searching=this._delay(function(){if(this.term!==this._value()){this.selectedItem=null;this.search(null,l)}},this.options.delay)},search:function(l,q){l=l!=null?l:this._value();this.term=this._value();if(l.length<this.options.minLength)return this.close(q);
254
+ if(this._trigger("search",q)!==false)return this._search(l)},_search:function(l){this.pending++;this.element.addClass("ui-autocomplete-loading");this.cancelSearch=false;this.source({term:l},this._response())},_response:function(){var l=this,q=++s;return function(A){q===s&&l.__response(A);l.pending--;l.pending||l.element.removeClass("ui-autocomplete-loading")}},__response:function(l){if(l)l=this._normalize(l);this._trigger("response",null,{content:l});if(!this.options.disabled&&l&&l.length&&!this.cancelSearch){this._suggest(l);
255
+ this._trigger("open")}else this._close()},close:function(l){this.cancelSearch=true;this._close(l)},_close:function(l){if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.blur();this.isNewMenu=true;this._trigger("close",l)}},_change:function(l){this.previous!==this._value()&&this._trigger("change",l,{item:this.selectedItem})},_normalize:function(l){if(l.length&&l[0].label&&l[0].value)return l;return i.map(l,function(q){if(typeof q==="string")return{label:q,value:q};return i.extend({label:q.label||
256
+ q.value,value:q.value||q.label},q)})},_suggest:function(l){var q=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(q,l);this.menu.refresh();q.show();this._resizeMenu();q.position(i.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var l=this.menu.element;l.outerWidth(Math.max(l.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(l,q){var A=this;i.each(q,function(o,m){A._renderItemData(l,
257
+ m)})},_renderItemData:function(l,q){return this._renderItem(l,q).data("ui-autocomplete-item",q)},_renderItem:function(l,q){return i("<li>").append(i("<a>").text(q.label)).appendTo(l)},_move:function(l,q){if(this.menu.element.is(":visible"))if(this.menu.isFirstItem()&&/^previous/.test(l)||this.menu.isLastItem()&&/^next/.test(l)){this._value(this.term);this.menu.blur()}else this.menu[l](q);else this.search(null,q)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,
258
+ arguments)},_keyEvent:function(l,q){if(!this.isMultiLine||this.menu.element.is(":visible")){this._move(l,q);q.preventDefault()}}});i.extend(i.ui.autocomplete,{escapeRegex:function(l){return l.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(l,q){var A=RegExp(i.ui.autocomplete.escapeRegex(q),"i");return i.grep(l,function(o){return A.test(o.label||o.value||o)})}});i.widget("ui.autocomplete",i.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(l){return l+
259
+ (l>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(l){this._superApply(arguments);this.options.disabled||this.cancelSearch||this.liveRegion.text(l&&l.length?this.options.messages.results(l.length):this.options.messages.noResults)}})})(jQuery);(function(i){function s(A,o){var m=q[A];return m&&m[o]}var l=null,q={};i.translations=function(A){for(var o in A)if(q[o])for(var m in A[o])q[o][m]=A[o][m];else q[o]=A[o]};i.t=function(A,o){if(!l){var m=i("html");l=m.attr("lang")||m.attr("xml:lang")||"en"}var u;m=s(l,A);if(!m&&(u=l.indexOf("-")))m=s(l.substr(0,u),A);if(m){for(var z in o)m=m.replace(RegExp("#{"+z+"}","g"),o[z]);return m}return"#"+A}})(jQuery);(function(i){function s(){var A=false;switch(this.type){case "checkbox":case "radio":A=this.checked!=this.defaultChecked;break;case "hidden":case "password":case "text":case "textarea":case "file":A=this.value!=this.defaultValue;break;case "select-one":case "select-multiple":for(var o=0;o<this.options.length&&!A;++o)A=this.options[o].selected!=this.options[o].defaultSelected;break}i("label[for="+this.id+"]").toggleClass("unsaved",A);i(this).toggleClass("unsaved",A)}function l(A){i("input.observe, textarea.observe, select.observe").each(function(){s.call(this)});
260
+ return i(".unsaved",A).size()!==0}i.translations({en:{confirmUnsaved:"The page was not saved. Continue?",pageUnsaved:"The page was not saved."},de:{confirmUnsaved:"Die Seite wurde nicht gespeichert. Fortsetzen?",pageUnsaved:"Die Seite wurde nicht gespeichert."},cs:{confirmUnsaved:"Str\u00e1nka nebyla ulo\u017eena. Pokra\u010dovat?",pageUnsaved:"Str\u00e1nka nebyla ulo\u017eena."}});i.fn.confirmUnsaved=function(){return!l(this)||confirm(i.t("confirmUnsaved"))};i("input.observe, textarea.observe, select.observe").live("change autocompletechange",
261
+ s);var q=false;i("form").live("submit",function(){q=true}).bind("reset",function(){i(".unsaved",this).removeClass("unsaved")});i(window).bind("beforeunload",function(){if(!q&&l(document))return i.t("pageUnsaved")})})(jQuery);(function(i){i.fn.historyTable=function(){function s(){var m=[];A.each(function(){this.checked&&m.push(this.name)});return m}i("thead tr",this).prepend('<th class="compare"><button>&#177;</button></th>');i("tbody tr",this).each(function(){var m=i(this).attr("id").substr(8);i(this).prepend('<td class="compare"><input type="checkbox" name="'+m+'"/></td>')});var l=jStorage.get("historyTable");if(l)for(var q=0;q<l.length;++q)i("input[name="+l[q]+"]").attr("checked","checked");var A=i("tbody input",this),
262
+ o=i("th button",this);o.click(function(){var m=s();jStorage.set("historyTable",m);location.href=location.pathname.replace("/history","/compare/"+m[m.length-1]+"..."+m[0])});i("td input",this).change(function(){s().length>1?o.removeAttr("disabled"):o.attr("disabled","disabled")}).change()}})(jQuery);(function(i){i.fn.pagination=function(s){s=i(s);this.live("click",function(){i(this).addClass("loading");var l=this.href;l+=(l.indexOf("?")<0?"?":"&")+"no_layout=1";s.load(l,function(){s.trigger("pageLoaded",[l])});return false})}})(jQuery);(function(i){i.fn.tabWidget=function(s){var l=s&&s.store,q=null;i("> a[href^='#']",this).click(function(){if(q.data("tab")==i(this).data("tab"))return false;if(!q.data("tab").confirmUnsaved())return false;q.data("tab").hide();q.parent().removeClass("selected");q=i(this);q.data("tab").show();q.parent().addClass("selected");l&&jStorage.set(l,q.data("tab").attr("id"));return false});if(l)if(s=jStorage.get(l))q=i("> a[href='#"+s+"']",this);if(!q||q.size()===0)q=i(this).filter(".selected").find("> a[href^='#']");
263
+ if(!q||q.size()===0)q=i(this).filter(":first").find("> a[href^='#']");i("> a[href^='#']",this).each(function(){var A=i(this.href.match(/(#.*)$/)[1]);A.hide();i(this).data("tab",A)});this.removeClass("selected");q.parent().addClass("selected");q.data("tab").show()}})(jQuery);(function(i){function s(l){l=Math.floor(((new Date).getTime()-new Date(l*1E3))/6E4);if(l<=0)return i.t("less_than_a_minute_ago");if(l==1)return i.t("a_minute_ago");if(l<45)return i.t("n_minutes_ago",{n:l});if(l<90)return i.t("one_hour_ago");if(l<1440)return i.t("n_hours_ago",{n:Math.round(l/60)});if(l<2880)return i.t("one_day_ago");if(l<43200)return i.t("n_days_ago",{n:Math.round(l/1440)});if(l<86400)return i.t("one_month_ago");if(l<525960)return i.t("n_months_ago",{n:Math.round(l/43200)});if(l<1051920)return i.t("one_year_ago");
264
+ return i.t("over_n_years_ago",{n:Math.round(l/525960)})}i.translations({en:{less_than_a_minute_ago:"less than a minute ago",a_minute_ago:"a minute ago",n_minutes_ago:"#{n} minutes ago",one_hour_ago:"1 hour ago",n_hours_ago:"#{n} hours ago",one_day_ago:"1 day ago",n_days_ago:"#{n} days ago",one_month_ago:"1 month ago",n_months_ago:"#{n} months ago",one_year_ago:"1 year ago",over_n_years_ago:"over #{n} years ago"},de:{less_than_a_minute_ago:"vor weniger als einer Minute",a_minute_ago:"vor einer Minute",
265
+ n_minutes_ago:"vor #{n} Minuten",one_hour_ago:"vor einer Stunde",n_hours_ago:"vor #{n} Stunden",one_day_ago:"vor einem Tag",n_days_ago:"vor #{n} Tagen",one_month_ago:"vor einem Monat",n_months_ago:"vor #{n} Monaten",one_year_ago:"vor einem Jahr",over_n_years_ago:"vor \u00fcber #{n} Jahren"},cs:{less_than_a_minute_ago:"m\u00e9n\u011b ne\u017e 1 minuta",a_minute_ago:"p\u0159ed minutou",n_minutes_ago:"p\u0159ed #{n} minutami",one_hour_ago:"p\u0159ed hodinou",n_hours_ago:"p\u0159ed #{n} hodinami",one_day_ago:"jeden den",
266
+ n_days_ago:"p\u0159ed #{n} dny",one_month_ago:"jeden m\u011bs\u00edc",n_months_ago:"p\u0159ed #{n} m\u011bs\u00edci",one_year_ago:"1 rok",over_n_years_ago:"p\u0159ed #{n} lety"}});i.fn.timeAgo=function(){this.each(function(){var l=i(this),q=l.data("epoch");q&&l.attr("title",l.text()).html(s(q))})}})(jQuery);(function(i){i.extend(i.fn,{underlineText:function(s){this.each(function(){var l=i(this),q,A;if(l.children().size()===0){q=l.text();A=q.toLowerCase().indexOf(s.toLowerCase());A>=0&&l.html(q.substr(0,A)+'<span style="text-decoration: underline">'+q.substr(A,s.length)+"</span>"+q.substr(A+s.length))}else l.children().underlineText(s)})},underlineAccessKey:function(){this.each(function(){var s=i(this).attr("accesskey");s&&i(this).underlineText(s)})}})})(jQuery);(function(i){i.widget("ui.combobox",{_create:function(){var s=this.element;s.autocomplete({delay:0,minLength:0,source:this.options.source}).click(function(){s.autocomplete("widget").is(":visible")?s.autocomplete("close"):s.autocomplete("search",this.value)});i('<button class="ui-combo-button"/>').attr("tabIndex",-1).insertAfter(s).click(function(l){l.preventDefault();if(s.autocomplete("widget").is(":visible"))s.autocomplete("close");else{s.autocomplete("search","");s.focus()}})}})})(jQuery);$(function(){function i(s){$("#upload-path",s).each(function(){var l=this,q=l.value,A=l.value;if(A.length===0||A.match(/\/$/))$("#upload-file").change(function(){if(l.value==q){l.value=A+this.value;q=l.value}})});$("label, #menu, .tabhead, .pagination, .button-bar",s).disableSelection();$("#history-table",s).historyTable();$(".date",s).timeAgo();$(".tabs",s).each(function(){$("> li",this).tabWidget()});$("*[accesskey]",s).underlineAccessKey()}$("html").removeClass("no-js").addClass("js");$(".pagination a").pagination("#content");
267
+ $("#content").bind("pageLoaded",function(){i(this)});i();$("button[data-target]").live("click",function(){var s=$(this),l=$(this.form);s.addClass("loading");$.ajax({type:l.attr("method")||"get",url:l.attr("action")||window.location.href,data:l.serialize()+"&"+s.attr("name")+"="+s.attr("value")+"&no_layout=1",success:function(q){$("#"+s.data("target")).html(q);s.removeClass("loading");window.MathJax&&MathJax.Hub.Queue(["Typeset",MathJax.Hub,s.data("target")])}});return false})});
@@ -0,0 +1,486 @@
1
+ /*
2
+ json2.js
3
+ 2012-10-08
4
+
5
+ Public Domain.
6
+
7
+ NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
8
+
9
+ See http://www.JSON.org/js.html
10
+
11
+
12
+ This code should be minified before deployment.
13
+ See http://javascript.crockford.com/jsmin.html
14
+
15
+ USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO
16
+ NOT CONTROL.
17
+
18
+
19
+ This file creates a global JSON object containing two methods: stringify
20
+ and parse.
21
+
22
+ JSON.stringify(value, replacer, space)
23
+ value any JavaScript value, usually an object or array.
24
+
25
+ replacer an optional parameter that determines how object
26
+ values are stringified for objects. It can be a
27
+ function or an array of strings.
28
+
29
+ space an optional parameter that specifies the indentation
30
+ of nested structures. If it is omitted, the text will
31
+ be packed without extra whitespace. If it is a number,
32
+ it will specify the number of spaces to indent at each
33
+ level. If it is a string (such as '\t' or '&nbsp;'),
34
+ it contains the characters used to indent at each level.
35
+
36
+ This method produces a JSON text from a JavaScript value.
37
+
38
+ When an object value is found, if the object contains a toJSON
39
+ method, its toJSON method will be called and the result will be
40
+ stringified. A toJSON method does not serialize: it returns the
41
+ value represented by the name/value pair that should be serialized,
42
+ or undefined if nothing should be serialized. The toJSON method
43
+ will be passed the key associated with the value, and this will be
44
+ bound to the value
45
+
46
+ For example, this would serialize Dates as ISO strings.
47
+
48
+ Date.prototype.toJSON = function (key) {
49
+ function f(n) {
50
+ // Format integers to have at least two digits.
51
+ return n < 10 ? '0' + n : n;
52
+ }
53
+
54
+ return this.getUTCFullYear() + '-' +
55
+ f(this.getUTCMonth() + 1) + '-' +
56
+ f(this.getUTCDate()) + 'T' +
57
+ f(this.getUTCHours()) + ':' +
58
+ f(this.getUTCMinutes()) + ':' +
59
+ f(this.getUTCSeconds()) + 'Z';
60
+ };
61
+
62
+ You can provide an optional replacer method. It will be passed the
63
+ key and value of each member, with this bound to the containing
64
+ object. The value that is returned from your method will be
65
+ serialized. If your method returns undefined, then the member will
66
+ be excluded from the serialization.
67
+
68
+ If the replacer parameter is an array of strings, then it will be
69
+ used to select the members to be serialized. It filters the results
70
+ such that only members with keys listed in the replacer array are
71
+ stringified.
72
+
73
+ Values that do not have JSON representations, such as undefined or
74
+ functions, will not be serialized. Such values in objects will be
75
+ dropped; in arrays they will be replaced with null. You can use
76
+ a replacer function to replace those with JSON values.
77
+ JSON.stringify(undefined) returns undefined.
78
+
79
+ The optional space parameter produces a stringification of the
80
+ value that is filled with line breaks and indentation to make it
81
+ easier to read.
82
+
83
+ If the space parameter is a non-empty string, then that string will
84
+ be used for indentation. If the space parameter is a number, then
85
+ the indentation will be that many spaces.
86
+
87
+ Example:
88
+
89
+ text = JSON.stringify(['e', {pluribus: 'unum'}]);
90
+ // text is '["e",{"pluribus":"unum"}]'
91
+
92
+
93
+ text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t');
94
+ // text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]'
95
+
96
+ text = JSON.stringify([new Date()], function (key, value) {
97
+ return this[key] instanceof Date ?
98
+ 'Date(' + this[key] + ')' : value;
99
+ });
100
+ // text is '["Date(---current time---)"]'
101
+
102
+
103
+ JSON.parse(text, reviver)
104
+ This method parses a JSON text to produce an object or array.
105
+ It can throw a SyntaxError exception.
106
+
107
+ The optional reviver parameter is a function that can filter and
108
+ transform the results. It receives each of the keys and values,
109
+ and its return value is used instead of the original value.
110
+ If it returns what it received, then the structure is not modified.
111
+ If it returns undefined then the member is deleted.
112
+
113
+ Example:
114
+
115
+ // Parse the text. Values that look like ISO date strings will
116
+ // be converted to Date objects.
117
+
118
+ myData = JSON.parse(text, function (key, value) {
119
+ var a;
120
+ if (typeof value === 'string') {
121
+ a =
122
+ /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value);
123
+ if (a) {
124
+ return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4],
125
+ +a[5], +a[6]));
126
+ }
127
+ }
128
+ return value;
129
+ });
130
+
131
+ myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) {
132
+ var d;
133
+ if (typeof value === 'string' &&
134
+ value.slice(0, 5) === 'Date(' &&
135
+ value.slice(-1) === ')') {
136
+ d = new Date(value.slice(5, -1));
137
+ if (d) {
138
+ return d;
139
+ }
140
+ }
141
+ return value;
142
+ });
143
+
144
+
145
+ This is a reference implementation. You are free to copy, modify, or
146
+ redistribute.
147
+ */
148
+
149
+ /*jslint evil: true, regexp: true */
150
+
151
+ /*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply,
152
+ call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours,
153
+ getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join,
154
+ lastIndex, length, parse, prototype, push, replace, slice, stringify,
155
+ test, toJSON, toString, valueOf
156
+ */
157
+
158
+
159
+ // Create a JSON object only if one does not already exist. We create the
160
+ // methods in a closure to avoid creating global variables.
161
+
162
+ if (typeof JSON !== 'object') {
163
+ JSON = {};
164
+ }
165
+
166
+ (function () {
167
+ 'use strict';
168
+
169
+ function f(n) {
170
+ // Format integers to have at least two digits.
171
+ return n < 10 ? '0' + n : n;
172
+ }
173
+
174
+ if (typeof Date.prototype.toJSON !== 'function') {
175
+
176
+ Date.prototype.toJSON = function (key) {
177
+
178
+ return isFinite(this.valueOf())
179
+ ? this.getUTCFullYear() + '-' +
180
+ f(this.getUTCMonth() + 1) + '-' +
181
+ f(this.getUTCDate()) + 'T' +
182
+ f(this.getUTCHours()) + ':' +
183
+ f(this.getUTCMinutes()) + ':' +
184
+ f(this.getUTCSeconds()) + 'Z'
185
+ : null;
186
+ };
187
+
188
+ String.prototype.toJSON =
189
+ Number.prototype.toJSON =
190
+ Boolean.prototype.toJSON = function (key) {
191
+ return this.valueOf();
192
+ };
193
+ }
194
+
195
+ var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
196
+ escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
197
+ gap,
198
+ indent,
199
+ meta = { // table of character substitutions
200
+ '\b': '\\b',
201
+ '\t': '\\t',
202
+ '\n': '\\n',
203
+ '\f': '\\f',
204
+ '\r': '\\r',
205
+ '"' : '\\"',
206
+ '\\': '\\\\'
207
+ },
208
+ rep;
209
+
210
+
211
+ function quote(string) {
212
+
213
+ // If the string contains no control characters, no quote characters, and no
214
+ // backslash characters, then we can safely slap some quotes around it.
215
+ // Otherwise we must also replace the offending characters with safe escape
216
+ // sequences.
217
+
218
+ escapable.lastIndex = 0;
219
+ return escapable.test(string) ? '"' + string.replace(escapable, function (a) {
220
+ var c = meta[a];
221
+ return typeof c === 'string'
222
+ ? c
223
+ : '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
224
+ }) + '"' : '"' + string + '"';
225
+ }
226
+
227
+
228
+ function str(key, holder) {
229
+
230
+ // Produce a string from holder[key].
231
+
232
+ var i, // The loop counter.
233
+ k, // The member key.
234
+ v, // The member value.
235
+ length,
236
+ mind = gap,
237
+ partial,
238
+ value = holder[key];
239
+
240
+ // If the value has a toJSON method, call it to obtain a replacement value.
241
+
242
+ if (value && typeof value === 'object' &&
243
+ typeof value.toJSON === 'function') {
244
+ value = value.toJSON(key);
245
+ }
246
+
247
+ // If we were called with a replacer function, then call the replacer to
248
+ // obtain a replacement value.
249
+
250
+ if (typeof rep === 'function') {
251
+ value = rep.call(holder, key, value);
252
+ }
253
+
254
+ // What happens next depends on the value's type.
255
+
256
+ switch (typeof value) {
257
+ case 'string':
258
+ return quote(value);
259
+
260
+ case 'number':
261
+
262
+ // JSON numbers must be finite. Encode non-finite numbers as null.
263
+
264
+ return isFinite(value) ? String(value) : 'null';
265
+
266
+ case 'boolean':
267
+ case 'null':
268
+
269
+ // If the value is a boolean or null, convert it to a string. Note:
270
+ // typeof null does not produce 'null'. The case is included here in
271
+ // the remote chance that this gets fixed someday.
272
+
273
+ return String(value);
274
+
275
+ // If the type is 'object', we might be dealing with an object or an array or
276
+ // null.
277
+
278
+ case 'object':
279
+
280
+ // Due to a specification blunder in ECMAScript, typeof null is 'object',
281
+ // so watch out for that case.
282
+
283
+ if (!value) {
284
+ return 'null';
285
+ }
286
+
287
+ // Make an array to hold the partial results of stringifying this object value.
288
+
289
+ gap += indent;
290
+ partial = [];
291
+
292
+ // Is the value an array?
293
+
294
+ if (Object.prototype.toString.apply(value) === '[object Array]') {
295
+
296
+ // The value is an array. Stringify every element. Use null as a placeholder
297
+ // for non-JSON values.
298
+
299
+ length = value.length;
300
+ for (i = 0; i < length; i += 1) {
301
+ partial[i] = str(i, value) || 'null';
302
+ }
303
+
304
+ // Join all of the elements together, separated with commas, and wrap them in
305
+ // brackets.
306
+
307
+ v = partial.length === 0
308
+ ? '[]'
309
+ : gap
310
+ ? '[\n' + gap + partial.join(',\n' + gap) + '\n' + mind + ']'
311
+ : '[' + partial.join(',') + ']';
312
+ gap = mind;
313
+ return v;
314
+ }
315
+
316
+ // If the replacer is an array, use it to select the members to be stringified.
317
+
318
+ if (rep && typeof rep === 'object') {
319
+ length = rep.length;
320
+ for (i = 0; i < length; i += 1) {
321
+ if (typeof rep[i] === 'string') {
322
+ k = rep[i];
323
+ v = str(k, value);
324
+ if (v) {
325
+ partial.push(quote(k) + (gap ? ': ' : ':') + v);
326
+ }
327
+ }
328
+ }
329
+ } else {
330
+
331
+ // Otherwise, iterate through all of the keys in the object.
332
+
333
+ for (k in value) {
334
+ if (Object.prototype.hasOwnProperty.call(value, k)) {
335
+ v = str(k, value);
336
+ if (v) {
337
+ partial.push(quote(k) + (gap ? ': ' : ':') + v);
338
+ }
339
+ }
340
+ }
341
+ }
342
+
343
+ // Join all of the member texts together, separated with commas,
344
+ // and wrap them in braces.
345
+
346
+ v = partial.length === 0
347
+ ? '{}'
348
+ : gap
349
+ ? '{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}'
350
+ : '{' + partial.join(',') + '}';
351
+ gap = mind;
352
+ return v;
353
+ }
354
+ }
355
+
356
+ // If the JSON object does not yet have a stringify method, give it one.
357
+
358
+ if (typeof JSON.stringify !== 'function') {
359
+ JSON.stringify = function (value, replacer, space) {
360
+
361
+ // The stringify method takes a value and an optional replacer, and an optional
362
+ // space parameter, and returns a JSON text. The replacer can be a function
363
+ // that can replace values, or an array of strings that will select the keys.
364
+ // A default replacer method can be provided. Use of the space parameter can
365
+ // produce text that is more easily readable.
366
+
367
+ var i;
368
+ gap = '';
369
+ indent = '';
370
+
371
+ // If the space parameter is a number, make an indent string containing that
372
+ // many spaces.
373
+
374
+ if (typeof space === 'number') {
375
+ for (i = 0; i < space; i += 1) {
376
+ indent += ' ';
377
+ }
378
+
379
+ // If the space parameter is a string, it will be used as the indent string.
380
+
381
+ } else if (typeof space === 'string') {
382
+ indent = space;
383
+ }
384
+
385
+ // If there is a replacer, it must be a function or an array.
386
+ // Otherwise, throw an error.
387
+
388
+ rep = replacer;
389
+ if (replacer && typeof replacer !== 'function' &&
390
+ (typeof replacer !== 'object' ||
391
+ typeof replacer.length !== 'number')) {
392
+ throw new Error('JSON.stringify');
393
+ }
394
+
395
+ // Make a fake root object containing our value under the key of ''.
396
+ // Return the result of stringifying the value.
397
+
398
+ return str('', {'': value});
399
+ };
400
+ }
401
+
402
+
403
+ // If the JSON object does not yet have a parse method, give it one.
404
+
405
+ if (typeof JSON.parse !== 'function') {
406
+ JSON.parse = function (text, reviver) {
407
+
408
+ // The parse method takes a text and an optional reviver function, and returns
409
+ // a JavaScript value if the text is a valid JSON text.
410
+
411
+ var j;
412
+
413
+ function walk(holder, key) {
414
+
415
+ // The walk method is used to recursively walk the resulting structure so
416
+ // that modifications can be made.
417
+
418
+ var k, v, value = holder[key];
419
+ if (value && typeof value === 'object') {
420
+ for (k in value) {
421
+ if (Object.prototype.hasOwnProperty.call(value, k)) {
422
+ v = walk(value, k);
423
+ if (v !== undefined) {
424
+ value[k] = v;
425
+ } else {
426
+ delete value[k];
427
+ }
428
+ }
429
+ }
430
+ }
431
+ return reviver.call(holder, key, value);
432
+ }
433
+
434
+
435
+ // Parsing happens in four stages. In the first stage, we replace certain
436
+ // Unicode characters with escape sequences. JavaScript handles many characters
437
+ // incorrectly, either silently deleting them, or treating them as line endings.
438
+
439
+ text = String(text);
440
+ cx.lastIndex = 0;
441
+ if (cx.test(text)) {
442
+ text = text.replace(cx, function (a) {
443
+ return '\\u' +
444
+ ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
445
+ });
446
+ }
447
+
448
+ // In the second stage, we run the text against regular expressions that look
449
+ // for non-JSON patterns. We are especially concerned with '()' and 'new'
450
+ // because they can cause invocation, and '=' because it can cause mutation.
451
+ // But just to be safe, we want to reject all unexpected forms.
452
+
453
+ // We split the second stage into 4 regexp operations in order to work around
454
+ // crippling inefficiencies in IE's and Safari's regexp engines. First we
455
+ // replace the JSON backslash pairs with '@' (a non-JSON character). Second, we
456
+ // replace all simple value tokens with ']' characters. Third, we delete all
457
+ // open brackets that follow a colon or comma or that begin the text. Finally,
458
+ // we look to see that the remaining characters are only whitespace or ']' or
459
+ // ',' or ':' or '{' or '}'. If that is so, then the text is safe for eval.
460
+
461
+ if (/^[\],:{}\s]*$/
462
+ .test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@')
463
+ .replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']')
464
+ .replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) {
465
+
466
+ // In the third stage we use the eval function to compile the text into a
467
+ // JavaScript structure. The '{' operator is subject to a syntactic ambiguity
468
+ // in JavaScript: it can begin a block or an object literal. We wrap the text
469
+ // in parens to eliminate the ambiguity.
470
+
471
+ j = eval('(' + text + ')');
472
+
473
+ // In the optional fourth stage, we recursively walk the new structure, passing
474
+ // each name/value pair to a reviver function for possible transformation.
475
+
476
+ return typeof reviver === 'function'
477
+ ? walk({'': j}, '')
478
+ : j;
479
+ }
480
+
481
+ // If the text is not JSON parseable, then a SyntaxError is thrown.
482
+
483
+ throw new SyntaxError('JSON.parse');
484
+ };
485
+ }
486
+ }());